toolkit/crashreporter/google-breakpad/src/third_party/glog/configure

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rwxr-xr-x

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 #! /bin/sh
michael@0 2 # Guess values for system-dependent variables and create Makefiles.
michael@0 3 # Generated by GNU Autoconf 2.65 for glog 0.3.1.
michael@0 4 #
michael@0 5 # Report bugs to <opensource@google.com>.
michael@0 6 #
michael@0 7 #
michael@0 8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
michael@0 9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
michael@0 10 # Inc.
michael@0 11 #
michael@0 12 #
michael@0 13 # This configure script is free software; the Free Software Foundation
michael@0 14 # gives unlimited permission to copy, distribute and modify it.
michael@0 15 ## -------------------- ##
michael@0 16 ## M4sh Initialization. ##
michael@0 17 ## -------------------- ##
michael@0 18
michael@0 19 # Be more Bourne compatible
michael@0 20 DUALCASE=1; export DUALCASE # for MKS sh
michael@0 21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
michael@0 22 emulate sh
michael@0 23 NULLCMD=:
michael@0 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
michael@0 25 # is contrary to our usage. Disable this feature.
michael@0 26 alias -g '${1+"$@"}'='"$@"'
michael@0 27 setopt NO_GLOB_SUBST
michael@0 28 else
michael@0 29 case `(set -o) 2>/dev/null` in #(
michael@0 30 *posix*) :
michael@0 31 set -o posix ;; #(
michael@0 32 *) :
michael@0 33 ;;
michael@0 34 esac
michael@0 35 fi
michael@0 36
michael@0 37
michael@0 38 as_nl='
michael@0 39 '
michael@0 40 export as_nl
michael@0 41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
michael@0 42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
michael@0 43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
michael@0 44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
michael@0 45 # Prefer a ksh shell builtin over an external printf program on Solaris,
michael@0 46 # but without wasting forks for bash or zsh.
michael@0 47 if test -z "$BASH_VERSION$ZSH_VERSION" \
michael@0 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
michael@0 49 as_echo='print -r --'
michael@0 50 as_echo_n='print -rn --'
michael@0 51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
michael@0 52 as_echo='printf %s\n'
michael@0 53 as_echo_n='printf %s'
michael@0 54 else
michael@0 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
michael@0 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
michael@0 57 as_echo_n='/usr/ucb/echo -n'
michael@0 58 else
michael@0 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
michael@0 60 as_echo_n_body='eval
michael@0 61 arg=$1;
michael@0 62 case $arg in #(
michael@0 63 *"$as_nl"*)
michael@0 64 expr "X$arg" : "X\\(.*\\)$as_nl";
michael@0 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
michael@0 66 esac;
michael@0 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
michael@0 68 '
michael@0 69 export as_echo_n_body
michael@0 70 as_echo_n='sh -c $as_echo_n_body as_echo'
michael@0 71 fi
michael@0 72 export as_echo_body
michael@0 73 as_echo='sh -c $as_echo_body as_echo'
michael@0 74 fi
michael@0 75
michael@0 76 # The user is always right.
michael@0 77 if test "${PATH_SEPARATOR+set}" != set; then
michael@0 78 PATH_SEPARATOR=:
michael@0 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
michael@0 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
michael@0 81 PATH_SEPARATOR=';'
michael@0 82 }
michael@0 83 fi
michael@0 84
michael@0 85
michael@0 86 # IFS
michael@0 87 # We need space, tab and new line, in precisely that order. Quoting is
michael@0 88 # there to prevent editors from complaining about space-tab.
michael@0 89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
michael@0 90 # splitting by setting IFS to empty value.)
michael@0 91 IFS=" "" $as_nl"
michael@0 92
michael@0 93 # Find who we are. Look in the path if we contain no directory separator.
michael@0 94 case $0 in #((
michael@0 95 *[\\/]* ) as_myself=$0 ;;
michael@0 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 97 for as_dir in $PATH
michael@0 98 do
michael@0 99 IFS=$as_save_IFS
michael@0 100 test -z "$as_dir" && as_dir=.
michael@0 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
michael@0 102 done
michael@0 103 IFS=$as_save_IFS
michael@0 104
michael@0 105 ;;
michael@0 106 esac
michael@0 107 # We did not find ourselves, most probably we were run as `sh COMMAND'
michael@0 108 # in which case we are not to be found in the path.
michael@0 109 if test "x$as_myself" = x; then
michael@0 110 as_myself=$0
michael@0 111 fi
michael@0 112 if test ! -f "$as_myself"; then
michael@0 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
michael@0 114 exit 1
michael@0 115 fi
michael@0 116
michael@0 117 # Unset variables that we do not need and which cause bugs (e.g. in
michael@0 118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
michael@0 119 # suppresses any "Segmentation fault" message there. '((' could
michael@0 120 # trigger a bug in pdksh 5.2.14.
michael@0 121 for as_var in BASH_ENV ENV MAIL MAILPATH
michael@0 122 do eval test x\${$as_var+set} = xset \
michael@0 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
michael@0 124 done
michael@0 125 PS1='$ '
michael@0 126 PS2='> '
michael@0 127 PS4='+ '
michael@0 128
michael@0 129 # NLS nuisances.
michael@0 130 LC_ALL=C
michael@0 131 export LC_ALL
michael@0 132 LANGUAGE=C
michael@0 133 export LANGUAGE
michael@0 134
michael@0 135 # CDPATH.
michael@0 136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
michael@0 137
michael@0 138 if test "x$CONFIG_SHELL" = x; then
michael@0 139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
michael@0 140 emulate sh
michael@0 141 NULLCMD=:
michael@0 142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
michael@0 143 # is contrary to our usage. Disable this feature.
michael@0 144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
michael@0 145 setopt NO_GLOB_SUBST
michael@0 146 else
michael@0 147 case \`(set -o) 2>/dev/null\` in #(
michael@0 148 *posix*) :
michael@0 149 set -o posix ;; #(
michael@0 150 *) :
michael@0 151 ;;
michael@0 152 esac
michael@0 153 fi
michael@0 154 "
michael@0 155 as_required="as_fn_return () { (exit \$1); }
michael@0 156 as_fn_success () { as_fn_return 0; }
michael@0 157 as_fn_failure () { as_fn_return 1; }
michael@0 158 as_fn_ret_success () { return 0; }
michael@0 159 as_fn_ret_failure () { return 1; }
michael@0 160
michael@0 161 exitcode=0
michael@0 162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
michael@0 163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
michael@0 164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
michael@0 165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
michael@0 166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
michael@0 167
michael@0 168 else
michael@0 169 exitcode=1; echo positional parameters were not saved.
michael@0 170 fi
michael@0 171 test x\$exitcode = x0 || exit 1"
michael@0 172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
michael@0 173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
michael@0 174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
michael@0 175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
michael@0 176 test \$(( 1 + 1 )) = 2 || exit 1"
michael@0 177 if (eval "$as_required") 2>/dev/null; then :
michael@0 178 as_have_required=yes
michael@0 179 else
michael@0 180 as_have_required=no
michael@0 181 fi
michael@0 182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
michael@0 183
michael@0 184 else
michael@0 185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 186 as_found=false
michael@0 187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
michael@0 188 do
michael@0 189 IFS=$as_save_IFS
michael@0 190 test -z "$as_dir" && as_dir=.
michael@0 191 as_found=:
michael@0 192 case $as_dir in #(
michael@0 193 /*)
michael@0 194 for as_base in sh bash ksh sh5; do
michael@0 195 # Try only shells that exist, to save several forks.
michael@0 196 as_shell=$as_dir/$as_base
michael@0 197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
michael@0 198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
michael@0 199 CONFIG_SHELL=$as_shell as_have_required=yes
michael@0 200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
michael@0 201 break 2
michael@0 202 fi
michael@0 203 fi
michael@0 204 done;;
michael@0 205 esac
michael@0 206 as_found=false
michael@0 207 done
michael@0 208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
michael@0 209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
michael@0 210 CONFIG_SHELL=$SHELL as_have_required=yes
michael@0 211 fi; }
michael@0 212 IFS=$as_save_IFS
michael@0 213
michael@0 214
michael@0 215 if test "x$CONFIG_SHELL" != x; then :
michael@0 216 # We cannot yet assume a decent shell, so we have to provide a
michael@0 217 # neutralization value for shells without unset; and this also
michael@0 218 # works around shells that cannot unset nonexistent variables.
michael@0 219 BASH_ENV=/dev/null
michael@0 220 ENV=/dev/null
michael@0 221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
michael@0 222 export CONFIG_SHELL
michael@0 223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
michael@0 224 fi
michael@0 225
michael@0 226 if test x$as_have_required = xno; then :
michael@0 227 $as_echo "$0: This script requires a shell more modern than all"
michael@0 228 $as_echo "$0: the shells that I found on your system."
michael@0 229 if test x${ZSH_VERSION+set} = xset ; then
michael@0 230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
michael@0 231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
michael@0 232 else
michael@0 233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
michael@0 234 $0: opensource@google.com about your system, including any
michael@0 235 $0: error possibly output before this message. Then install
michael@0 236 $0: a modern shell, or manually run the script under such a
michael@0 237 $0: shell if you do have one."
michael@0 238 fi
michael@0 239 exit 1
michael@0 240 fi
michael@0 241 fi
michael@0 242 fi
michael@0 243 SHELL=${CONFIG_SHELL-/bin/sh}
michael@0 244 export SHELL
michael@0 245 # Unset more variables known to interfere with behavior of common tools.
michael@0 246 CLICOLOR_FORCE= GREP_OPTIONS=
michael@0 247 unset CLICOLOR_FORCE GREP_OPTIONS
michael@0 248
michael@0 249 ## --------------------- ##
michael@0 250 ## M4sh Shell Functions. ##
michael@0 251 ## --------------------- ##
michael@0 252 # as_fn_unset VAR
michael@0 253 # ---------------
michael@0 254 # Portably unset VAR.
michael@0 255 as_fn_unset ()
michael@0 256 {
michael@0 257 { eval $1=; unset $1;}
michael@0 258 }
michael@0 259 as_unset=as_fn_unset
michael@0 260
michael@0 261 # as_fn_set_status STATUS
michael@0 262 # -----------------------
michael@0 263 # Set $? to STATUS, without forking.
michael@0 264 as_fn_set_status ()
michael@0 265 {
michael@0 266 return $1
michael@0 267 } # as_fn_set_status
michael@0 268
michael@0 269 # as_fn_exit STATUS
michael@0 270 # -----------------
michael@0 271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
michael@0 272 as_fn_exit ()
michael@0 273 {
michael@0 274 set +e
michael@0 275 as_fn_set_status $1
michael@0 276 exit $1
michael@0 277 } # as_fn_exit
michael@0 278
michael@0 279 # as_fn_mkdir_p
michael@0 280 # -------------
michael@0 281 # Create "$as_dir" as a directory, including parents if necessary.
michael@0 282 as_fn_mkdir_p ()
michael@0 283 {
michael@0 284
michael@0 285 case $as_dir in #(
michael@0 286 -*) as_dir=./$as_dir;;
michael@0 287 esac
michael@0 288 test -d "$as_dir" || eval $as_mkdir_p || {
michael@0 289 as_dirs=
michael@0 290 while :; do
michael@0 291 case $as_dir in #(
michael@0 292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
michael@0 293 *) as_qdir=$as_dir;;
michael@0 294 esac
michael@0 295 as_dirs="'$as_qdir' $as_dirs"
michael@0 296 as_dir=`$as_dirname -- "$as_dir" ||
michael@0 297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
michael@0 298 X"$as_dir" : 'X\(//\)[^/]' \| \
michael@0 299 X"$as_dir" : 'X\(//\)$' \| \
michael@0 300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
michael@0 301 $as_echo X"$as_dir" |
michael@0 302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
michael@0 303 s//\1/
michael@0 304 q
michael@0 305 }
michael@0 306 /^X\(\/\/\)[^/].*/{
michael@0 307 s//\1/
michael@0 308 q
michael@0 309 }
michael@0 310 /^X\(\/\/\)$/{
michael@0 311 s//\1/
michael@0 312 q
michael@0 313 }
michael@0 314 /^X\(\/\).*/{
michael@0 315 s//\1/
michael@0 316 q
michael@0 317 }
michael@0 318 s/.*/./; q'`
michael@0 319 test -d "$as_dir" && break
michael@0 320 done
michael@0 321 test -z "$as_dirs" || eval "mkdir $as_dirs"
michael@0 322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
michael@0 323
michael@0 324
michael@0 325 } # as_fn_mkdir_p
michael@0 326 # as_fn_append VAR VALUE
michael@0 327 # ----------------------
michael@0 328 # Append the text in VALUE to the end of the definition contained in VAR. Take
michael@0 329 # advantage of any shell optimizations that allow amortized linear growth over
michael@0 330 # repeated appends, instead of the typical quadratic growth present in naive
michael@0 331 # implementations.
michael@0 332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
michael@0 333 eval 'as_fn_append ()
michael@0 334 {
michael@0 335 eval $1+=\$2
michael@0 336 }'
michael@0 337 else
michael@0 338 as_fn_append ()
michael@0 339 {
michael@0 340 eval $1=\$$1\$2
michael@0 341 }
michael@0 342 fi # as_fn_append
michael@0 343
michael@0 344 # as_fn_arith ARG...
michael@0 345 # ------------------
michael@0 346 # Perform arithmetic evaluation on the ARGs, and store the result in the
michael@0 347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
michael@0 348 # must be portable across $(()) and expr.
michael@0 349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
michael@0 350 eval 'as_fn_arith ()
michael@0 351 {
michael@0 352 as_val=$(( $* ))
michael@0 353 }'
michael@0 354 else
michael@0 355 as_fn_arith ()
michael@0 356 {
michael@0 357 as_val=`expr "$@" || test $? -eq 1`
michael@0 358 }
michael@0 359 fi # as_fn_arith
michael@0 360
michael@0 361
michael@0 362 # as_fn_error ERROR [LINENO LOG_FD]
michael@0 363 # ---------------------------------
michael@0 364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
michael@0 365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
michael@0 366 # script with status $?, using 1 if that was 0.
michael@0 367 as_fn_error ()
michael@0 368 {
michael@0 369 as_status=$?; test $as_status -eq 0 && as_status=1
michael@0 370 if test "$3"; then
michael@0 371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
michael@0 372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
michael@0 373 fi
michael@0 374 $as_echo "$as_me: error: $1" >&2
michael@0 375 as_fn_exit $as_status
michael@0 376 } # as_fn_error
michael@0 377
michael@0 378 if expr a : '\(a\)' >/dev/null 2>&1 &&
michael@0 379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
michael@0 380 as_expr=expr
michael@0 381 else
michael@0 382 as_expr=false
michael@0 383 fi
michael@0 384
michael@0 385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
michael@0 386 as_basename=basename
michael@0 387 else
michael@0 388 as_basename=false
michael@0 389 fi
michael@0 390
michael@0 391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
michael@0 392 as_dirname=dirname
michael@0 393 else
michael@0 394 as_dirname=false
michael@0 395 fi
michael@0 396
michael@0 397 as_me=`$as_basename -- "$0" ||
michael@0 398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
michael@0 399 X"$0" : 'X\(//\)$' \| \
michael@0 400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
michael@0 401 $as_echo X/"$0" |
michael@0 402 sed '/^.*\/\([^/][^/]*\)\/*$/{
michael@0 403 s//\1/
michael@0 404 q
michael@0 405 }
michael@0 406 /^X\/\(\/\/\)$/{
michael@0 407 s//\1/
michael@0 408 q
michael@0 409 }
michael@0 410 /^X\/\(\/\).*/{
michael@0 411 s//\1/
michael@0 412 q
michael@0 413 }
michael@0 414 s/.*/./; q'`
michael@0 415
michael@0 416 # Avoid depending upon Character Ranges.
michael@0 417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
michael@0 418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
michael@0 419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
michael@0 420 as_cr_digits='0123456789'
michael@0 421 as_cr_alnum=$as_cr_Letters$as_cr_digits
michael@0 422
michael@0 423
michael@0 424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
michael@0 425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
michael@0 426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
michael@0 427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
michael@0 428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
michael@0 429 sed -n '
michael@0 430 p
michael@0 431 /[$]LINENO/=
michael@0 432 ' <$as_myself |
michael@0 433 sed '
michael@0 434 s/[$]LINENO.*/&-/
michael@0 435 t lineno
michael@0 436 b
michael@0 437 :lineno
michael@0 438 N
michael@0 439 :loop
michael@0 440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
michael@0 441 t loop
michael@0 442 s/-\n.*//
michael@0 443 ' >$as_me.lineno &&
michael@0 444 chmod +x "$as_me.lineno" ||
michael@0 445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
michael@0 446
michael@0 447 # Don't try to exec as it changes $[0], causing all sort of problems
michael@0 448 # (the dirname of $[0] is not the place where we might find the
michael@0 449 # original and so on. Autoconf is especially sensitive to this).
michael@0 450 . "./$as_me.lineno"
michael@0 451 # Exit status is that of the last command.
michael@0 452 exit
michael@0 453 }
michael@0 454
michael@0 455 ECHO_C= ECHO_N= ECHO_T=
michael@0 456 case `echo -n x` in #(((((
michael@0 457 -n*)
michael@0 458 case `echo 'xy\c'` in
michael@0 459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
michael@0 460 xy) ECHO_C='\c';;
michael@0 461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
michael@0 462 ECHO_T=' ';;
michael@0 463 esac;;
michael@0 464 *)
michael@0 465 ECHO_N='-n';;
michael@0 466 esac
michael@0 467
michael@0 468 rm -f conf$$ conf$$.exe conf$$.file
michael@0 469 if test -d conf$$.dir; then
michael@0 470 rm -f conf$$.dir/conf$$.file
michael@0 471 else
michael@0 472 rm -f conf$$.dir
michael@0 473 mkdir conf$$.dir 2>/dev/null
michael@0 474 fi
michael@0 475 if (echo >conf$$.file) 2>/dev/null; then
michael@0 476 if ln -s conf$$.file conf$$ 2>/dev/null; then
michael@0 477 as_ln_s='ln -s'
michael@0 478 # ... but there are two gotchas:
michael@0 479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
michael@0 480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
michael@0 481 # In both cases, we have to default to `cp -p'.
michael@0 482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
michael@0 483 as_ln_s='cp -p'
michael@0 484 elif ln conf$$.file conf$$ 2>/dev/null; then
michael@0 485 as_ln_s=ln
michael@0 486 else
michael@0 487 as_ln_s='cp -p'
michael@0 488 fi
michael@0 489 else
michael@0 490 as_ln_s='cp -p'
michael@0 491 fi
michael@0 492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
michael@0 493 rmdir conf$$.dir 2>/dev/null
michael@0 494
michael@0 495 if mkdir -p . 2>/dev/null; then
michael@0 496 as_mkdir_p='mkdir -p "$as_dir"'
michael@0 497 else
michael@0 498 test -d ./-p && rmdir ./-p
michael@0 499 as_mkdir_p=false
michael@0 500 fi
michael@0 501
michael@0 502 if test -x / >/dev/null 2>&1; then
michael@0 503 as_test_x='test -x'
michael@0 504 else
michael@0 505 if ls -dL / >/dev/null 2>&1; then
michael@0 506 as_ls_L_option=L
michael@0 507 else
michael@0 508 as_ls_L_option=
michael@0 509 fi
michael@0 510 as_test_x='
michael@0 511 eval sh -c '\''
michael@0 512 if test -d "$1"; then
michael@0 513 test -d "$1/.";
michael@0 514 else
michael@0 515 case $1 in #(
michael@0 516 -*)set "./$1";;
michael@0 517 esac;
michael@0 518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
michael@0 519 ???[sx]*):;;*)false;;esac;fi
michael@0 520 '\'' sh
michael@0 521 '
michael@0 522 fi
michael@0 523 as_executable_p=$as_test_x
michael@0 524
michael@0 525 # Sed expression to map a string onto a valid CPP name.
michael@0 526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
michael@0 527
michael@0 528 # Sed expression to map a string onto a valid variable name.
michael@0 529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
michael@0 530
michael@0 531
michael@0 532
michael@0 533 # Check that we are running under the correct shell.
michael@0 534 SHELL=${CONFIG_SHELL-/bin/sh}
michael@0 535
michael@0 536 case X$lt_ECHO in
michael@0 537 X*--fallback-echo)
michael@0 538 # Remove one level of quotation (which was required for Make).
michael@0 539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
michael@0 540 ;;
michael@0 541 esac
michael@0 542
michael@0 543 ECHO=${lt_ECHO-echo}
michael@0 544 if test "X$1" = X--no-reexec; then
michael@0 545 # Discard the --no-reexec flag, and continue.
michael@0 546 shift
michael@0 547 elif test "X$1" = X--fallback-echo; then
michael@0 548 # Avoid inline document here, it may be left over
michael@0 549 :
michael@0 550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
michael@0 551 # Yippee, $ECHO works!
michael@0 552 :
michael@0 553 else
michael@0 554 # Restart under the correct shell.
michael@0 555 exec $SHELL "$0" --no-reexec ${1+"$@"}
michael@0 556 fi
michael@0 557
michael@0 558 if test "X$1" = X--fallback-echo; then
michael@0 559 # used as fallback echo
michael@0 560 shift
michael@0 561 cat <<_LT_EOF
michael@0 562 $*
michael@0 563 _LT_EOF
michael@0 564 exit 0
michael@0 565 fi
michael@0 566
michael@0 567 # The HP-UX ksh and POSIX shell print the target directory to stdout
michael@0 568 # if CDPATH is set.
michael@0 569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
michael@0 570
michael@0 571 if test -z "$lt_ECHO"; then
michael@0 572 if test "X${echo_test_string+set}" != Xset; then
michael@0 573 # find a string as large as possible, as long as the shell can cope with it
michael@0 574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
michael@0 575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
michael@0 576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
michael@0 577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
michael@0 578 then
michael@0 579 break
michael@0 580 fi
michael@0 581 done
michael@0 582 fi
michael@0 583
michael@0 584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
michael@0 585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
michael@0 586 test "X$echo_testing_string" = "X$echo_test_string"; then
michael@0 587 :
michael@0 588 else
michael@0 589 # The Solaris, AIX, and Digital Unix default echo programs unquote
michael@0 590 # backslashes. This makes it impossible to quote backslashes using
michael@0 591 # echo "$something" | sed 's/\\/\\\\/g'
michael@0 592 #
michael@0 593 # So, first we look for a working echo in the user's PATH.
michael@0 594
michael@0 595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
michael@0 596 for dir in $PATH /usr/ucb; do
michael@0 597 IFS="$lt_save_ifs"
michael@0 598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
michael@0 599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
michael@0 600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
michael@0 601 test "X$echo_testing_string" = "X$echo_test_string"; then
michael@0 602 ECHO="$dir/echo"
michael@0 603 break
michael@0 604 fi
michael@0 605 done
michael@0 606 IFS="$lt_save_ifs"
michael@0 607
michael@0 608 if test "X$ECHO" = Xecho; then
michael@0 609 # We didn't find a better echo, so look for alternatives.
michael@0 610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
michael@0 611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
michael@0 612 test "X$echo_testing_string" = "X$echo_test_string"; then
michael@0 613 # This shell has a builtin print -r that does the trick.
michael@0 614 ECHO='print -r'
michael@0 615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
michael@0 616 test "X$CONFIG_SHELL" != X/bin/ksh; then
michael@0 617 # If we have ksh, try running configure again with it.
michael@0 618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
michael@0 619 export ORIGINAL_CONFIG_SHELL
michael@0 620 CONFIG_SHELL=/bin/ksh
michael@0 621 export CONFIG_SHELL
michael@0 622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
michael@0 623 else
michael@0 624 # Try using printf.
michael@0 625 ECHO='printf %s\n'
michael@0 626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
michael@0 627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
michael@0 628 test "X$echo_testing_string" = "X$echo_test_string"; then
michael@0 629 # Cool, printf works
michael@0 630 :
michael@0 631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
michael@0 632 test "X$echo_testing_string" = 'X\t' &&
michael@0 633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
michael@0 634 test "X$echo_testing_string" = "X$echo_test_string"; then
michael@0 635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
michael@0 636 export CONFIG_SHELL
michael@0 637 SHELL="$CONFIG_SHELL"
michael@0 638 export SHELL
michael@0 639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
michael@0 640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
michael@0 641 test "X$echo_testing_string" = 'X\t' &&
michael@0 642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
michael@0 643 test "X$echo_testing_string" = "X$echo_test_string"; then
michael@0 644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
michael@0 645 else
michael@0 646 # maybe with a smaller string...
michael@0 647 prev=:
michael@0 648
michael@0 649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
michael@0 650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
michael@0 651 then
michael@0 652 break
michael@0 653 fi
michael@0 654 prev="$cmd"
michael@0 655 done
michael@0 656
michael@0 657 if test "$prev" != 'sed 50q "$0"'; then
michael@0 658 echo_test_string=`eval $prev`
michael@0 659 export echo_test_string
michael@0 660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
michael@0 661 else
michael@0 662 # Oops. We lost completely, so just stick with echo.
michael@0 663 ECHO=echo
michael@0 664 fi
michael@0 665 fi
michael@0 666 fi
michael@0 667 fi
michael@0 668 fi
michael@0 669 fi
michael@0 670
michael@0 671 # Copy echo and quote the copy suitably for passing to libtool from
michael@0 672 # the Makefile, instead of quoting the original, which is used later.
michael@0 673 lt_ECHO=$ECHO
michael@0 674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
michael@0 675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
michael@0 676 fi
michael@0 677
michael@0 678
michael@0 679
michael@0 680
michael@0 681 test -n "$DJDIR" || exec 7<&0 </dev/null
michael@0 682 exec 6>&1
michael@0 683
michael@0 684 # Name of the host.
michael@0 685 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
michael@0 686 # so uname gets run too.
michael@0 687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
michael@0 688
michael@0 689 #
michael@0 690 # Initializations.
michael@0 691 #
michael@0 692 ac_default_prefix=/usr/local
michael@0 693 ac_clean_files=
michael@0 694 ac_config_libobj_dir=.
michael@0 695 LIBOBJS=
michael@0 696 cross_compiling=no
michael@0 697 subdirs=
michael@0 698 MFLAGS=
michael@0 699 MAKEFLAGS=
michael@0 700
michael@0 701 # Identity of this package.
michael@0 702 PACKAGE_NAME='glog'
michael@0 703 PACKAGE_TARNAME='glog'
michael@0 704 PACKAGE_VERSION='0.3.1'
michael@0 705 PACKAGE_STRING='glog 0.3.1'
michael@0 706 PACKAGE_BUGREPORT='opensource@google.com'
michael@0 707 PACKAGE_URL=''
michael@0 708
michael@0 709 ac_unique_file="README"
michael@0 710 # Factoring default headers for most tests.
michael@0 711 ac_includes_default="\
michael@0 712 #include <stdio.h>
michael@0 713 #ifdef HAVE_SYS_TYPES_H
michael@0 714 # include <sys/types.h>
michael@0 715 #endif
michael@0 716 #ifdef HAVE_SYS_STAT_H
michael@0 717 # include <sys/stat.h>
michael@0 718 #endif
michael@0 719 #ifdef STDC_HEADERS
michael@0 720 # include <stdlib.h>
michael@0 721 # include <stddef.h>
michael@0 722 #else
michael@0 723 # ifdef HAVE_STDLIB_H
michael@0 724 # include <stdlib.h>
michael@0 725 # endif
michael@0 726 #endif
michael@0 727 #ifdef HAVE_STRING_H
michael@0 728 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
michael@0 729 # include <memory.h>
michael@0 730 # endif
michael@0 731 # include <string.h>
michael@0 732 #endif
michael@0 733 #ifdef HAVE_STRINGS_H
michael@0 734 # include <strings.h>
michael@0 735 #endif
michael@0 736 #ifdef HAVE_INTTYPES_H
michael@0 737 # include <inttypes.h>
michael@0 738 #endif
michael@0 739 #ifdef HAVE_STDINT_H
michael@0 740 # include <stdint.h>
michael@0 741 #endif
michael@0 742 #ifdef HAVE_UNISTD_H
michael@0 743 # include <unistd.h>
michael@0 744 #endif"
michael@0 745
michael@0 746 ac_subst_vars='am__EXEEXT_FALSE
michael@0 747 am__EXEEXT_TRUE
michael@0 748 LTLIBOBJS
michael@0 749 LIBOBJS
michael@0 750 GMOCK_LIBS
michael@0 751 GTEST_LIBS
michael@0 752 GFLAGS_LIBS
michael@0 753 GMOCK_CFLAGS
michael@0 754 GTEST_CFLAGS
michael@0 755 GFLAGS_CFLAGS
michael@0 756 ac_cv_have_libgflags
michael@0 757 ac_cv_have___uint16
michael@0 758 ac_cv_have_u_int16_t
michael@0 759 ac_cv_have_uint16_t
michael@0 760 ac_cv_have_unistd_h
michael@0 761 ac_cv_have_inttypes_h
michael@0 762 ac_cv_have_systypes_h
michael@0 763 ac_cv_have_stdint_h
michael@0 764 ac_cv_have___builtin_expect
michael@0 765 ac_cv___attribute___printf_4_5
michael@0 766 ac_cv___attribute___noreturn
michael@0 767 ac_cv_cxx_using_operator
michael@0 768 ac_google_namespace
michael@0 769 ac_google_end_namespace
michael@0 770 ac_google_start_namespace
michael@0 771 UNWIND_LIBS
michael@0 772 HAVE_GMOCK_FALSE
michael@0 773 HAVE_GMOCK_TRUE
michael@0 774 GMOCK_CONFIG
michael@0 775 GTEST_CONFIG
michael@0 776 PTHREAD_CFLAGS
michael@0 777 PTHREAD_LIBS
michael@0 778 PTHREAD_CC
michael@0 779 acx_pthread_config
michael@0 780 X86_64_FALSE
michael@0 781 X86_64_TRUE
michael@0 782 ENABLE_FRAME_POINTERS_FALSE
michael@0 783 ENABLE_FRAME_POINTERS_TRUE
michael@0 784 LIBTOOL_DEPS
michael@0 785 CXXCPP
michael@0 786 OTOOL64
michael@0 787 OTOOL
michael@0 788 LIPO
michael@0 789 NMEDIT
michael@0 790 DSYMUTIL
michael@0 791 lt_ECHO
michael@0 792 RANLIB
michael@0 793 AR
michael@0 794 OBJDUMP
michael@0 795 LN_S
michael@0 796 NM
michael@0 797 ac_ct_DUMPBIN
michael@0 798 DUMPBIN
michael@0 799 LD
michael@0 800 FGREP
michael@0 801 EGREP
michael@0 802 GREP
michael@0 803 SED
michael@0 804 host_os
michael@0 805 host_vendor
michael@0 806 host_cpu
michael@0 807 host
michael@0 808 build_os
michael@0 809 build_vendor
michael@0 810 build_cpu
michael@0 811 build
michael@0 812 LIBTOOL
michael@0 813 GCC_FALSE
michael@0 814 GCC_TRUE
michael@0 815 am__fastdepCXX_FALSE
michael@0 816 am__fastdepCXX_TRUE
michael@0 817 CXXDEPMODE
michael@0 818 ac_ct_CXX
michael@0 819 CXXFLAGS
michael@0 820 CXX
michael@0 821 CPP
michael@0 822 am__fastdepCC_FALSE
michael@0 823 am__fastdepCC_TRUE
michael@0 824 CCDEPMODE
michael@0 825 AMDEPBACKSLASH
michael@0 826 AMDEP_FALSE
michael@0 827 AMDEP_TRUE
michael@0 828 am__quote
michael@0 829 am__include
michael@0 830 DEPDIR
michael@0 831 OBJEXT
michael@0 832 EXEEXT
michael@0 833 ac_ct_CC
michael@0 834 CPPFLAGS
michael@0 835 LDFLAGS
michael@0 836 CFLAGS
michael@0 837 CC
michael@0 838 am__untar
michael@0 839 am__tar
michael@0 840 AMTAR
michael@0 841 am__leading_dot
michael@0 842 SET_MAKE
michael@0 843 AWK
michael@0 844 mkdir_p
michael@0 845 MKDIR_P
michael@0 846 INSTALL_STRIP_PROGRAM
michael@0 847 STRIP
michael@0 848 install_sh
michael@0 849 MAKEINFO
michael@0 850 AUTOHEADER
michael@0 851 AUTOMAKE
michael@0 852 AUTOCONF
michael@0 853 ACLOCAL
michael@0 854 VERSION
michael@0 855 PACKAGE
michael@0 856 CYGPATH_W
michael@0 857 am__isrc
michael@0 858 INSTALL_DATA
michael@0 859 INSTALL_SCRIPT
michael@0 860 INSTALL_PROGRAM
michael@0 861 target_alias
michael@0 862 host_alias
michael@0 863 build_alias
michael@0 864 LIBS
michael@0 865 ECHO_T
michael@0 866 ECHO_N
michael@0 867 ECHO_C
michael@0 868 DEFS
michael@0 869 mandir
michael@0 870 localedir
michael@0 871 libdir
michael@0 872 psdir
michael@0 873 pdfdir
michael@0 874 dvidir
michael@0 875 htmldir
michael@0 876 infodir
michael@0 877 docdir
michael@0 878 oldincludedir
michael@0 879 includedir
michael@0 880 localstatedir
michael@0 881 sharedstatedir
michael@0 882 sysconfdir
michael@0 883 datadir
michael@0 884 datarootdir
michael@0 885 libexecdir
michael@0 886 sbindir
michael@0 887 bindir
michael@0 888 program_transform_name
michael@0 889 prefix
michael@0 890 exec_prefix
michael@0 891 PACKAGE_URL
michael@0 892 PACKAGE_BUGREPORT
michael@0 893 PACKAGE_STRING
michael@0 894 PACKAGE_VERSION
michael@0 895 PACKAGE_TARNAME
michael@0 896 PACKAGE_NAME
michael@0 897 PATH_SEPARATOR
michael@0 898 SHELL'
michael@0 899 ac_subst_files=''
michael@0 900 ac_user_opts='
michael@0 901 enable_option_checking
michael@0 902 enable_dependency_tracking
michael@0 903 enable_shared
michael@0 904 enable_static
michael@0 905 with_pic
michael@0 906 enable_fast_install
michael@0 907 with_gnu_ld
michael@0 908 enable_libtool_lock
michael@0 909 enable_frame_pointers
michael@0 910 with_gflags
michael@0 911 enable_namespace
michael@0 912 '
michael@0 913 ac_precious_vars='build_alias
michael@0 914 host_alias
michael@0 915 target_alias
michael@0 916 CC
michael@0 917 CFLAGS
michael@0 918 LDFLAGS
michael@0 919 LIBS
michael@0 920 CPPFLAGS
michael@0 921 CPP
michael@0 922 CXX
michael@0 923 CXXFLAGS
michael@0 924 CCC
michael@0 925 CXXCPP'
michael@0 926
michael@0 927
michael@0 928 # Initialize some variables set by options.
michael@0 929 ac_init_help=
michael@0 930 ac_init_version=false
michael@0 931 ac_unrecognized_opts=
michael@0 932 ac_unrecognized_sep=
michael@0 933 # The variables have the same names as the options, with
michael@0 934 # dashes changed to underlines.
michael@0 935 cache_file=/dev/null
michael@0 936 exec_prefix=NONE
michael@0 937 no_create=
michael@0 938 no_recursion=
michael@0 939 prefix=NONE
michael@0 940 program_prefix=NONE
michael@0 941 program_suffix=NONE
michael@0 942 program_transform_name=s,x,x,
michael@0 943 silent=
michael@0 944 site=
michael@0 945 srcdir=
michael@0 946 verbose=
michael@0 947 x_includes=NONE
michael@0 948 x_libraries=NONE
michael@0 949
michael@0 950 # Installation directory options.
michael@0 951 # These are left unexpanded so users can "make install exec_prefix=/foo"
michael@0 952 # and all the variables that are supposed to be based on exec_prefix
michael@0 953 # by default will actually change.
michael@0 954 # Use braces instead of parens because sh, perl, etc. also accept them.
michael@0 955 # (The list follows the same order as the GNU Coding Standards.)
michael@0 956 bindir='${exec_prefix}/bin'
michael@0 957 sbindir='${exec_prefix}/sbin'
michael@0 958 libexecdir='${exec_prefix}/libexec'
michael@0 959 datarootdir='${prefix}/share'
michael@0 960 datadir='${datarootdir}'
michael@0 961 sysconfdir='${prefix}/etc'
michael@0 962 sharedstatedir='${prefix}/com'
michael@0 963 localstatedir='${prefix}/var'
michael@0 964 includedir='${prefix}/include'
michael@0 965 oldincludedir='/usr/include'
michael@0 966 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
michael@0 967 infodir='${datarootdir}/info'
michael@0 968 htmldir='${docdir}'
michael@0 969 dvidir='${docdir}'
michael@0 970 pdfdir='${docdir}'
michael@0 971 psdir='${docdir}'
michael@0 972 libdir='${exec_prefix}/lib'
michael@0 973 localedir='${datarootdir}/locale'
michael@0 974 mandir='${datarootdir}/man'
michael@0 975
michael@0 976 ac_prev=
michael@0 977 ac_dashdash=
michael@0 978 for ac_option
michael@0 979 do
michael@0 980 # If the previous option needs an argument, assign it.
michael@0 981 if test -n "$ac_prev"; then
michael@0 982 eval $ac_prev=\$ac_option
michael@0 983 ac_prev=
michael@0 984 continue
michael@0 985 fi
michael@0 986
michael@0 987 case $ac_option in
michael@0 988 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
michael@0 989 *) ac_optarg=yes ;;
michael@0 990 esac
michael@0 991
michael@0 992 # Accept the important Cygnus configure options, so we can diagnose typos.
michael@0 993
michael@0 994 case $ac_dashdash$ac_option in
michael@0 995 --)
michael@0 996 ac_dashdash=yes ;;
michael@0 997
michael@0 998 -bindir | --bindir | --bindi | --bind | --bin | --bi)
michael@0 999 ac_prev=bindir ;;
michael@0 1000 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
michael@0 1001 bindir=$ac_optarg ;;
michael@0 1002
michael@0 1003 -build | --build | --buil | --bui | --bu)
michael@0 1004 ac_prev=build_alias ;;
michael@0 1005 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
michael@0 1006 build_alias=$ac_optarg ;;
michael@0 1007
michael@0 1008 -cache-file | --cache-file | --cache-fil | --cache-fi \
michael@0 1009 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
michael@0 1010 ac_prev=cache_file ;;
michael@0 1011 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
michael@0 1012 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
michael@0 1013 cache_file=$ac_optarg ;;
michael@0 1014
michael@0 1015 --config-cache | -C)
michael@0 1016 cache_file=config.cache ;;
michael@0 1017
michael@0 1018 -datadir | --datadir | --datadi | --datad)
michael@0 1019 ac_prev=datadir ;;
michael@0 1020 -datadir=* | --datadir=* | --datadi=* | --datad=*)
michael@0 1021 datadir=$ac_optarg ;;
michael@0 1022
michael@0 1023 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
michael@0 1024 | --dataroo | --dataro | --datar)
michael@0 1025 ac_prev=datarootdir ;;
michael@0 1026 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
michael@0 1027 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
michael@0 1028 datarootdir=$ac_optarg ;;
michael@0 1029
michael@0 1030 -disable-* | --disable-*)
michael@0 1031 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
michael@0 1032 # Reject names that are not valid shell variable names.
michael@0 1033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
michael@0 1034 as_fn_error "invalid feature name: $ac_useropt"
michael@0 1035 ac_useropt_orig=$ac_useropt
michael@0 1036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
michael@0 1037 case $ac_user_opts in
michael@0 1038 *"
michael@0 1039 "enable_$ac_useropt"
michael@0 1040 "*) ;;
michael@0 1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
michael@0 1042 ac_unrecognized_sep=', ';;
michael@0 1043 esac
michael@0 1044 eval enable_$ac_useropt=no ;;
michael@0 1045
michael@0 1046 -docdir | --docdir | --docdi | --doc | --do)
michael@0 1047 ac_prev=docdir ;;
michael@0 1048 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
michael@0 1049 docdir=$ac_optarg ;;
michael@0 1050
michael@0 1051 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
michael@0 1052 ac_prev=dvidir ;;
michael@0 1053 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
michael@0 1054 dvidir=$ac_optarg ;;
michael@0 1055
michael@0 1056 -enable-* | --enable-*)
michael@0 1057 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
michael@0 1058 # Reject names that are not valid shell variable names.
michael@0 1059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
michael@0 1060 as_fn_error "invalid feature name: $ac_useropt"
michael@0 1061 ac_useropt_orig=$ac_useropt
michael@0 1062 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
michael@0 1063 case $ac_user_opts in
michael@0 1064 *"
michael@0 1065 "enable_$ac_useropt"
michael@0 1066 "*) ;;
michael@0 1067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
michael@0 1068 ac_unrecognized_sep=', ';;
michael@0 1069 esac
michael@0 1070 eval enable_$ac_useropt=\$ac_optarg ;;
michael@0 1071
michael@0 1072 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
michael@0 1073 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
michael@0 1074 | --exec | --exe | --ex)
michael@0 1075 ac_prev=exec_prefix ;;
michael@0 1076 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
michael@0 1077 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
michael@0 1078 | --exec=* | --exe=* | --ex=*)
michael@0 1079 exec_prefix=$ac_optarg ;;
michael@0 1080
michael@0 1081 -gas | --gas | --ga | --g)
michael@0 1082 # Obsolete; use --with-gas.
michael@0 1083 with_gas=yes ;;
michael@0 1084
michael@0 1085 -help | --help | --hel | --he | -h)
michael@0 1086 ac_init_help=long ;;
michael@0 1087 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
michael@0 1088 ac_init_help=recursive ;;
michael@0 1089 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
michael@0 1090 ac_init_help=short ;;
michael@0 1091
michael@0 1092 -host | --host | --hos | --ho)
michael@0 1093 ac_prev=host_alias ;;
michael@0 1094 -host=* | --host=* | --hos=* | --ho=*)
michael@0 1095 host_alias=$ac_optarg ;;
michael@0 1096
michael@0 1097 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
michael@0 1098 ac_prev=htmldir ;;
michael@0 1099 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
michael@0 1100 | --ht=*)
michael@0 1101 htmldir=$ac_optarg ;;
michael@0 1102
michael@0 1103 -includedir | --includedir | --includedi | --included | --include \
michael@0 1104 | --includ | --inclu | --incl | --inc)
michael@0 1105 ac_prev=includedir ;;
michael@0 1106 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
michael@0 1107 | --includ=* | --inclu=* | --incl=* | --inc=*)
michael@0 1108 includedir=$ac_optarg ;;
michael@0 1109
michael@0 1110 -infodir | --infodir | --infodi | --infod | --info | --inf)
michael@0 1111 ac_prev=infodir ;;
michael@0 1112 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
michael@0 1113 infodir=$ac_optarg ;;
michael@0 1114
michael@0 1115 -libdir | --libdir | --libdi | --libd)
michael@0 1116 ac_prev=libdir ;;
michael@0 1117 -libdir=* | --libdir=* | --libdi=* | --libd=*)
michael@0 1118 libdir=$ac_optarg ;;
michael@0 1119
michael@0 1120 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
michael@0 1121 | --libexe | --libex | --libe)
michael@0 1122 ac_prev=libexecdir ;;
michael@0 1123 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
michael@0 1124 | --libexe=* | --libex=* | --libe=*)
michael@0 1125 libexecdir=$ac_optarg ;;
michael@0 1126
michael@0 1127 -localedir | --localedir | --localedi | --localed | --locale)
michael@0 1128 ac_prev=localedir ;;
michael@0 1129 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
michael@0 1130 localedir=$ac_optarg ;;
michael@0 1131
michael@0 1132 -localstatedir | --localstatedir | --localstatedi | --localstated \
michael@0 1133 | --localstate | --localstat | --localsta | --localst | --locals)
michael@0 1134 ac_prev=localstatedir ;;
michael@0 1135 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
michael@0 1136 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
michael@0 1137 localstatedir=$ac_optarg ;;
michael@0 1138
michael@0 1139 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
michael@0 1140 ac_prev=mandir ;;
michael@0 1141 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
michael@0 1142 mandir=$ac_optarg ;;
michael@0 1143
michael@0 1144 -nfp | --nfp | --nf)
michael@0 1145 # Obsolete; use --without-fp.
michael@0 1146 with_fp=no ;;
michael@0 1147
michael@0 1148 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
michael@0 1149 | --no-cr | --no-c | -n)
michael@0 1150 no_create=yes ;;
michael@0 1151
michael@0 1152 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
michael@0 1153 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
michael@0 1154 no_recursion=yes ;;
michael@0 1155
michael@0 1156 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
michael@0 1157 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
michael@0 1158 | --oldin | --oldi | --old | --ol | --o)
michael@0 1159 ac_prev=oldincludedir ;;
michael@0 1160 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
michael@0 1161 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
michael@0 1162 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
michael@0 1163 oldincludedir=$ac_optarg ;;
michael@0 1164
michael@0 1165 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
michael@0 1166 ac_prev=prefix ;;
michael@0 1167 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
michael@0 1168 prefix=$ac_optarg ;;
michael@0 1169
michael@0 1170 -program-prefix | --program-prefix | --program-prefi | --program-pref \
michael@0 1171 | --program-pre | --program-pr | --program-p)
michael@0 1172 ac_prev=program_prefix ;;
michael@0 1173 -program-prefix=* | --program-prefix=* | --program-prefi=* \
michael@0 1174 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
michael@0 1175 program_prefix=$ac_optarg ;;
michael@0 1176
michael@0 1177 -program-suffix | --program-suffix | --program-suffi | --program-suff \
michael@0 1178 | --program-suf | --program-su | --program-s)
michael@0 1179 ac_prev=program_suffix ;;
michael@0 1180 -program-suffix=* | --program-suffix=* | --program-suffi=* \
michael@0 1181 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
michael@0 1182 program_suffix=$ac_optarg ;;
michael@0 1183
michael@0 1184 -program-transform-name | --program-transform-name \
michael@0 1185 | --program-transform-nam | --program-transform-na \
michael@0 1186 | --program-transform-n | --program-transform- \
michael@0 1187 | --program-transform | --program-transfor \
michael@0 1188 | --program-transfo | --program-transf \
michael@0 1189 | --program-trans | --program-tran \
michael@0 1190 | --progr-tra | --program-tr | --program-t)
michael@0 1191 ac_prev=program_transform_name ;;
michael@0 1192 -program-transform-name=* | --program-transform-name=* \
michael@0 1193 | --program-transform-nam=* | --program-transform-na=* \
michael@0 1194 | --program-transform-n=* | --program-transform-=* \
michael@0 1195 | --program-transform=* | --program-transfor=* \
michael@0 1196 | --program-transfo=* | --program-transf=* \
michael@0 1197 | --program-trans=* | --program-tran=* \
michael@0 1198 | --progr-tra=* | --program-tr=* | --program-t=*)
michael@0 1199 program_transform_name=$ac_optarg ;;
michael@0 1200
michael@0 1201 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
michael@0 1202 ac_prev=pdfdir ;;
michael@0 1203 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
michael@0 1204 pdfdir=$ac_optarg ;;
michael@0 1205
michael@0 1206 -psdir | --psdir | --psdi | --psd | --ps)
michael@0 1207 ac_prev=psdir ;;
michael@0 1208 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
michael@0 1209 psdir=$ac_optarg ;;
michael@0 1210
michael@0 1211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
michael@0 1212 | -silent | --silent | --silen | --sile | --sil)
michael@0 1213 silent=yes ;;
michael@0 1214
michael@0 1215 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
michael@0 1216 ac_prev=sbindir ;;
michael@0 1217 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
michael@0 1218 | --sbi=* | --sb=*)
michael@0 1219 sbindir=$ac_optarg ;;
michael@0 1220
michael@0 1221 -sharedstatedir | --sharedstatedir | --sharedstatedi \
michael@0 1222 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
michael@0 1223 | --sharedst | --shareds | --shared | --share | --shar \
michael@0 1224 | --sha | --sh)
michael@0 1225 ac_prev=sharedstatedir ;;
michael@0 1226 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
michael@0 1227 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
michael@0 1228 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
michael@0 1229 | --sha=* | --sh=*)
michael@0 1230 sharedstatedir=$ac_optarg ;;
michael@0 1231
michael@0 1232 -site | --site | --sit)
michael@0 1233 ac_prev=site ;;
michael@0 1234 -site=* | --site=* | --sit=*)
michael@0 1235 site=$ac_optarg ;;
michael@0 1236
michael@0 1237 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
michael@0 1238 ac_prev=srcdir ;;
michael@0 1239 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
michael@0 1240 srcdir=$ac_optarg ;;
michael@0 1241
michael@0 1242 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
michael@0 1243 | --syscon | --sysco | --sysc | --sys | --sy)
michael@0 1244 ac_prev=sysconfdir ;;
michael@0 1245 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
michael@0 1246 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
michael@0 1247 sysconfdir=$ac_optarg ;;
michael@0 1248
michael@0 1249 -target | --target | --targe | --targ | --tar | --ta | --t)
michael@0 1250 ac_prev=target_alias ;;
michael@0 1251 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
michael@0 1252 target_alias=$ac_optarg ;;
michael@0 1253
michael@0 1254 -v | -verbose | --verbose | --verbos | --verbo | --verb)
michael@0 1255 verbose=yes ;;
michael@0 1256
michael@0 1257 -version | --version | --versio | --versi | --vers | -V)
michael@0 1258 ac_init_version=: ;;
michael@0 1259
michael@0 1260 -with-* | --with-*)
michael@0 1261 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
michael@0 1262 # Reject names that are not valid shell variable names.
michael@0 1263 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
michael@0 1264 as_fn_error "invalid package name: $ac_useropt"
michael@0 1265 ac_useropt_orig=$ac_useropt
michael@0 1266 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
michael@0 1267 case $ac_user_opts in
michael@0 1268 *"
michael@0 1269 "with_$ac_useropt"
michael@0 1270 "*) ;;
michael@0 1271 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
michael@0 1272 ac_unrecognized_sep=', ';;
michael@0 1273 esac
michael@0 1274 eval with_$ac_useropt=\$ac_optarg ;;
michael@0 1275
michael@0 1276 -without-* | --without-*)
michael@0 1277 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
michael@0 1278 # Reject names that are not valid shell variable names.
michael@0 1279 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
michael@0 1280 as_fn_error "invalid package name: $ac_useropt"
michael@0 1281 ac_useropt_orig=$ac_useropt
michael@0 1282 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
michael@0 1283 case $ac_user_opts in
michael@0 1284 *"
michael@0 1285 "with_$ac_useropt"
michael@0 1286 "*) ;;
michael@0 1287 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
michael@0 1288 ac_unrecognized_sep=', ';;
michael@0 1289 esac
michael@0 1290 eval with_$ac_useropt=no ;;
michael@0 1291
michael@0 1292 --x)
michael@0 1293 # Obsolete; use --with-x.
michael@0 1294 with_x=yes ;;
michael@0 1295
michael@0 1296 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
michael@0 1297 | --x-incl | --x-inc | --x-in | --x-i)
michael@0 1298 ac_prev=x_includes ;;
michael@0 1299 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
michael@0 1300 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
michael@0 1301 x_includes=$ac_optarg ;;
michael@0 1302
michael@0 1303 -x-libraries | --x-libraries | --x-librarie | --x-librari \
michael@0 1304 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
michael@0 1305 ac_prev=x_libraries ;;
michael@0 1306 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
michael@0 1307 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
michael@0 1308 x_libraries=$ac_optarg ;;
michael@0 1309
michael@0 1310 -*) as_fn_error "unrecognized option: \`$ac_option'
michael@0 1311 Try \`$0 --help' for more information."
michael@0 1312 ;;
michael@0 1313
michael@0 1314 *=*)
michael@0 1315 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
michael@0 1316 # Reject names that are not valid shell variable names.
michael@0 1317 case $ac_envvar in #(
michael@0 1318 '' | [0-9]* | *[!_$as_cr_alnum]* )
michael@0 1319 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
michael@0 1320 esac
michael@0 1321 eval $ac_envvar=\$ac_optarg
michael@0 1322 export $ac_envvar ;;
michael@0 1323
michael@0 1324 *)
michael@0 1325 # FIXME: should be removed in autoconf 3.0.
michael@0 1326 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
michael@0 1327 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
michael@0 1328 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
michael@0 1329 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
michael@0 1330 ;;
michael@0 1331
michael@0 1332 esac
michael@0 1333 done
michael@0 1334
michael@0 1335 if test -n "$ac_prev"; then
michael@0 1336 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
michael@0 1337 as_fn_error "missing argument to $ac_option"
michael@0 1338 fi
michael@0 1339
michael@0 1340 if test -n "$ac_unrecognized_opts"; then
michael@0 1341 case $enable_option_checking in
michael@0 1342 no) ;;
michael@0 1343 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
michael@0 1344 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
michael@0 1345 esac
michael@0 1346 fi
michael@0 1347
michael@0 1348 # Check all directory arguments for consistency.
michael@0 1349 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
michael@0 1350 datadir sysconfdir sharedstatedir localstatedir includedir \
michael@0 1351 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
michael@0 1352 libdir localedir mandir
michael@0 1353 do
michael@0 1354 eval ac_val=\$$ac_var
michael@0 1355 # Remove trailing slashes.
michael@0 1356 case $ac_val in
michael@0 1357 */ )
michael@0 1358 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
michael@0 1359 eval $ac_var=\$ac_val;;
michael@0 1360 esac
michael@0 1361 # Be sure to have absolute directory names.
michael@0 1362 case $ac_val in
michael@0 1363 [\\/$]* | ?:[\\/]* ) continue;;
michael@0 1364 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
michael@0 1365 esac
michael@0 1366 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
michael@0 1367 done
michael@0 1368
michael@0 1369 # There might be people who depend on the old broken behavior: `$host'
michael@0 1370 # used to hold the argument of --host etc.
michael@0 1371 # FIXME: To remove some day.
michael@0 1372 build=$build_alias
michael@0 1373 host=$host_alias
michael@0 1374 target=$target_alias
michael@0 1375
michael@0 1376 # FIXME: To remove some day.
michael@0 1377 if test "x$host_alias" != x; then
michael@0 1378 if test "x$build_alias" = x; then
michael@0 1379 cross_compiling=maybe
michael@0 1380 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
michael@0 1381 If a cross compiler is detected then cross compile mode will be used." >&2
michael@0 1382 elif test "x$build_alias" != "x$host_alias"; then
michael@0 1383 cross_compiling=yes
michael@0 1384 fi
michael@0 1385 fi
michael@0 1386
michael@0 1387 ac_tool_prefix=
michael@0 1388 test -n "$host_alias" && ac_tool_prefix=$host_alias-
michael@0 1389
michael@0 1390 test "$silent" = yes && exec 6>/dev/null
michael@0 1391
michael@0 1392
michael@0 1393 ac_pwd=`pwd` && test -n "$ac_pwd" &&
michael@0 1394 ac_ls_di=`ls -di .` &&
michael@0 1395 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
michael@0 1396 as_fn_error "working directory cannot be determined"
michael@0 1397 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
michael@0 1398 as_fn_error "pwd does not report name of working directory"
michael@0 1399
michael@0 1400
michael@0 1401 # Find the source files, if location was not specified.
michael@0 1402 if test -z "$srcdir"; then
michael@0 1403 ac_srcdir_defaulted=yes
michael@0 1404 # Try the directory containing this script, then the parent directory.
michael@0 1405 ac_confdir=`$as_dirname -- "$as_myself" ||
michael@0 1406 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
michael@0 1407 X"$as_myself" : 'X\(//\)[^/]' \| \
michael@0 1408 X"$as_myself" : 'X\(//\)$' \| \
michael@0 1409 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
michael@0 1410 $as_echo X"$as_myself" |
michael@0 1411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
michael@0 1412 s//\1/
michael@0 1413 q
michael@0 1414 }
michael@0 1415 /^X\(\/\/\)[^/].*/{
michael@0 1416 s//\1/
michael@0 1417 q
michael@0 1418 }
michael@0 1419 /^X\(\/\/\)$/{
michael@0 1420 s//\1/
michael@0 1421 q
michael@0 1422 }
michael@0 1423 /^X\(\/\).*/{
michael@0 1424 s//\1/
michael@0 1425 q
michael@0 1426 }
michael@0 1427 s/.*/./; q'`
michael@0 1428 srcdir=$ac_confdir
michael@0 1429 if test ! -r "$srcdir/$ac_unique_file"; then
michael@0 1430 srcdir=..
michael@0 1431 fi
michael@0 1432 else
michael@0 1433 ac_srcdir_defaulted=no
michael@0 1434 fi
michael@0 1435 if test ! -r "$srcdir/$ac_unique_file"; then
michael@0 1436 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
michael@0 1437 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
michael@0 1438 fi
michael@0 1439 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
michael@0 1440 ac_abs_confdir=`(
michael@0 1441 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
michael@0 1442 pwd)`
michael@0 1443 # When building in place, set srcdir=.
michael@0 1444 if test "$ac_abs_confdir" = "$ac_pwd"; then
michael@0 1445 srcdir=.
michael@0 1446 fi
michael@0 1447 # Remove unnecessary trailing slashes from srcdir.
michael@0 1448 # Double slashes in file names in object file debugging info
michael@0 1449 # mess up M-x gdb in Emacs.
michael@0 1450 case $srcdir in
michael@0 1451 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
michael@0 1452 esac
michael@0 1453 for ac_var in $ac_precious_vars; do
michael@0 1454 eval ac_env_${ac_var}_set=\${${ac_var}+set}
michael@0 1455 eval ac_env_${ac_var}_value=\$${ac_var}
michael@0 1456 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
michael@0 1457 eval ac_cv_env_${ac_var}_value=\$${ac_var}
michael@0 1458 done
michael@0 1459
michael@0 1460 #
michael@0 1461 # Report the --help message.
michael@0 1462 #
michael@0 1463 if test "$ac_init_help" = "long"; then
michael@0 1464 # Omit some internal or obsolete options to make the list less imposing.
michael@0 1465 # This message is too long to be a string in the A/UX 3.1 sh.
michael@0 1466 cat <<_ACEOF
michael@0 1467 \`configure' configures glog 0.3.1 to adapt to many kinds of systems.
michael@0 1468
michael@0 1469 Usage: $0 [OPTION]... [VAR=VALUE]...
michael@0 1470
michael@0 1471 To assign environment variables (e.g., CC, CFLAGS...), specify them as
michael@0 1472 VAR=VALUE. See below for descriptions of some of the useful variables.
michael@0 1473
michael@0 1474 Defaults for the options are specified in brackets.
michael@0 1475
michael@0 1476 Configuration:
michael@0 1477 -h, --help display this help and exit
michael@0 1478 --help=short display options specific to this package
michael@0 1479 --help=recursive display the short help of all the included packages
michael@0 1480 -V, --version display version information and exit
michael@0 1481 -q, --quiet, --silent do not print \`checking...' messages
michael@0 1482 --cache-file=FILE cache test results in FILE [disabled]
michael@0 1483 -C, --config-cache alias for \`--cache-file=config.cache'
michael@0 1484 -n, --no-create do not create output files
michael@0 1485 --srcdir=DIR find the sources in DIR [configure dir or \`..']
michael@0 1486
michael@0 1487 Installation directories:
michael@0 1488 --prefix=PREFIX install architecture-independent files in PREFIX
michael@0 1489 [$ac_default_prefix]
michael@0 1490 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
michael@0 1491 [PREFIX]
michael@0 1492
michael@0 1493 By default, \`make install' will install all the files in
michael@0 1494 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
michael@0 1495 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
michael@0 1496 for instance \`--prefix=\$HOME'.
michael@0 1497
michael@0 1498 For better control, use the options below.
michael@0 1499
michael@0 1500 Fine tuning of the installation directories:
michael@0 1501 --bindir=DIR user executables [EPREFIX/bin]
michael@0 1502 --sbindir=DIR system admin executables [EPREFIX/sbin]
michael@0 1503 --libexecdir=DIR program executables [EPREFIX/libexec]
michael@0 1504 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
michael@0 1505 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
michael@0 1506 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
michael@0 1507 --libdir=DIR object code libraries [EPREFIX/lib]
michael@0 1508 --includedir=DIR C header files [PREFIX/include]
michael@0 1509 --oldincludedir=DIR C header files for non-gcc [/usr/include]
michael@0 1510 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
michael@0 1511 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
michael@0 1512 --infodir=DIR info documentation [DATAROOTDIR/info]
michael@0 1513 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
michael@0 1514 --mandir=DIR man documentation [DATAROOTDIR/man]
michael@0 1515 --docdir=DIR documentation root [DATAROOTDIR/doc/glog]
michael@0 1516 --htmldir=DIR html documentation [DOCDIR]
michael@0 1517 --dvidir=DIR dvi documentation [DOCDIR]
michael@0 1518 --pdfdir=DIR pdf documentation [DOCDIR]
michael@0 1519 --psdir=DIR ps documentation [DOCDIR]
michael@0 1520 _ACEOF
michael@0 1521
michael@0 1522 cat <<\_ACEOF
michael@0 1523
michael@0 1524 Program names:
michael@0 1525 --program-prefix=PREFIX prepend PREFIX to installed program names
michael@0 1526 --program-suffix=SUFFIX append SUFFIX to installed program names
michael@0 1527 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
michael@0 1528
michael@0 1529 System types:
michael@0 1530 --build=BUILD configure for building on BUILD [guessed]
michael@0 1531 --host=HOST cross-compile to build programs to run on HOST [BUILD]
michael@0 1532 _ACEOF
michael@0 1533 fi
michael@0 1534
michael@0 1535 if test -n "$ac_init_help"; then
michael@0 1536 case $ac_init_help in
michael@0 1537 short | recursive ) echo "Configuration of glog 0.3.1:";;
michael@0 1538 esac
michael@0 1539 cat <<\_ACEOF
michael@0 1540
michael@0 1541 Optional Features:
michael@0 1542 --disable-option-checking ignore unrecognized --enable/--with options
michael@0 1543 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
michael@0 1544 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
michael@0 1545 --disable-dependency-tracking speeds up one-time build
michael@0 1546 --enable-dependency-tracking do not reject slow dependency extractors
michael@0 1547 --enable-shared[=PKGS] build shared libraries [default=yes]
michael@0 1548 --enable-static[=PKGS] build static libraries [default=yes]
michael@0 1549 --enable-fast-install[=PKGS]
michael@0 1550 optimize for fast installation [default=yes]
michael@0 1551 --disable-libtool-lock avoid locking (might break parallel builds)
michael@0 1552 --enable-frame-pointers On x86_64 systems, compile with
michael@0 1553 -fno-omit-frame-pointer (see INSTALL)
michael@0 1554 --enable-namespace=FOO to define these Google
michael@0 1555 classes in the FOO namespace. --disable-namespace
michael@0 1556 to define them in the global namespace. Default
michael@0 1557 is to define them in namespace google.
michael@0 1558
michael@0 1559 Optional Packages:
michael@0 1560 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
michael@0 1561 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
michael@0 1562 --with-pic try to use only PIC/non-PIC objects [default=use
michael@0 1563 both]
michael@0 1564 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
michael@0 1565 --with-gflags=GFLAGS_DIR
michael@0 1566
michael@0 1567 Some influential environment variables:
michael@0 1568 CC C compiler command
michael@0 1569 CFLAGS C compiler flags
michael@0 1570 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
michael@0 1571 nonstandard directory <lib dir>
michael@0 1572 LIBS libraries to pass to the linker, e.g. -l<library>
michael@0 1573 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
michael@0 1574 you have headers in a nonstandard directory <include dir>
michael@0 1575 CPP C preprocessor
michael@0 1576 CXX C++ compiler command
michael@0 1577 CXXFLAGS C++ compiler flags
michael@0 1578 CXXCPP C++ preprocessor
michael@0 1579
michael@0 1580 Use these variables to override the choices made by `configure' or to help
michael@0 1581 it to find libraries and programs with nonstandard names/locations.
michael@0 1582
michael@0 1583 Report bugs to <opensource@google.com>.
michael@0 1584 _ACEOF
michael@0 1585 ac_status=$?
michael@0 1586 fi
michael@0 1587
michael@0 1588 if test "$ac_init_help" = "recursive"; then
michael@0 1589 # If there are subdirs, report their specific --help.
michael@0 1590 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
michael@0 1591 test -d "$ac_dir" ||
michael@0 1592 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
michael@0 1593 continue
michael@0 1594 ac_builddir=.
michael@0 1595
michael@0 1596 case "$ac_dir" in
michael@0 1597 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
michael@0 1598 *)
michael@0 1599 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
michael@0 1600 # A ".." for each directory in $ac_dir_suffix.
michael@0 1601 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
michael@0 1602 case $ac_top_builddir_sub in
michael@0 1603 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
michael@0 1604 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
michael@0 1605 esac ;;
michael@0 1606 esac
michael@0 1607 ac_abs_top_builddir=$ac_pwd
michael@0 1608 ac_abs_builddir=$ac_pwd$ac_dir_suffix
michael@0 1609 # for backward compatibility:
michael@0 1610 ac_top_builddir=$ac_top_build_prefix
michael@0 1611
michael@0 1612 case $srcdir in
michael@0 1613 .) # We are building in place.
michael@0 1614 ac_srcdir=.
michael@0 1615 ac_top_srcdir=$ac_top_builddir_sub
michael@0 1616 ac_abs_top_srcdir=$ac_pwd ;;
michael@0 1617 [\\/]* | ?:[\\/]* ) # Absolute name.
michael@0 1618 ac_srcdir=$srcdir$ac_dir_suffix;
michael@0 1619 ac_top_srcdir=$srcdir
michael@0 1620 ac_abs_top_srcdir=$srcdir ;;
michael@0 1621 *) # Relative name.
michael@0 1622 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
michael@0 1623 ac_top_srcdir=$ac_top_build_prefix$srcdir
michael@0 1624 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
michael@0 1625 esac
michael@0 1626 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
michael@0 1627
michael@0 1628 cd "$ac_dir" || { ac_status=$?; continue; }
michael@0 1629 # Check for guested configure.
michael@0 1630 if test -f "$ac_srcdir/configure.gnu"; then
michael@0 1631 echo &&
michael@0 1632 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
michael@0 1633 elif test -f "$ac_srcdir/configure"; then
michael@0 1634 echo &&
michael@0 1635 $SHELL "$ac_srcdir/configure" --help=recursive
michael@0 1636 else
michael@0 1637 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
michael@0 1638 fi || ac_status=$?
michael@0 1639 cd "$ac_pwd" || { ac_status=$?; break; }
michael@0 1640 done
michael@0 1641 fi
michael@0 1642
michael@0 1643 test -n "$ac_init_help" && exit $ac_status
michael@0 1644 if $ac_init_version; then
michael@0 1645 cat <<\_ACEOF
michael@0 1646 glog configure 0.3.1
michael@0 1647 generated by GNU Autoconf 2.65
michael@0 1648
michael@0 1649 Copyright (C) 2009 Free Software Foundation, Inc.
michael@0 1650 This configure script is free software; the Free Software Foundation
michael@0 1651 gives unlimited permission to copy, distribute and modify it.
michael@0 1652 _ACEOF
michael@0 1653 exit
michael@0 1654 fi
michael@0 1655
michael@0 1656 ## ------------------------ ##
michael@0 1657 ## Autoconf initialization. ##
michael@0 1658 ## ------------------------ ##
michael@0 1659
michael@0 1660 # ac_fn_c_try_compile LINENO
michael@0 1661 # --------------------------
michael@0 1662 # Try to compile conftest.$ac_ext, and return whether this succeeded.
michael@0 1663 ac_fn_c_try_compile ()
michael@0 1664 {
michael@0 1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
michael@0 1666 rm -f conftest.$ac_objext
michael@0 1667 if { { ac_try="$ac_compile"
michael@0 1668 case "(($ac_try" in
michael@0 1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
michael@0 1670 *) ac_try_echo=$ac_try;;
michael@0 1671 esac
michael@0 1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
michael@0 1673 $as_echo "$ac_try_echo"; } >&5
michael@0 1674 (eval "$ac_compile") 2>conftest.err
michael@0 1675 ac_status=$?
michael@0 1676 if test -s conftest.err; then
michael@0 1677 grep -v '^ *+' conftest.err >conftest.er1
michael@0 1678 cat conftest.er1 >&5
michael@0 1679 mv -f conftest.er1 conftest.err
michael@0 1680 fi
michael@0 1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 1682 test $ac_status = 0; } && {
michael@0 1683 test -z "$ac_c_werror_flag" ||
michael@0 1684 test ! -s conftest.err
michael@0 1685 } && test -s conftest.$ac_objext; then :
michael@0 1686 ac_retval=0
michael@0 1687 else
michael@0 1688 $as_echo "$as_me: failed program was:" >&5
michael@0 1689 sed 's/^/| /' conftest.$ac_ext >&5
michael@0 1690
michael@0 1691 ac_retval=1
michael@0 1692 fi
michael@0 1693 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
michael@0 1694 as_fn_set_status $ac_retval
michael@0 1695
michael@0 1696 } # ac_fn_c_try_compile
michael@0 1697
michael@0 1698 # ac_fn_c_try_cpp LINENO
michael@0 1699 # ----------------------
michael@0 1700 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
michael@0 1701 ac_fn_c_try_cpp ()
michael@0 1702 {
michael@0 1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
michael@0 1704 if { { ac_try="$ac_cpp conftest.$ac_ext"
michael@0 1705 case "(($ac_try" in
michael@0 1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
michael@0 1707 *) ac_try_echo=$ac_try;;
michael@0 1708 esac
michael@0 1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
michael@0 1710 $as_echo "$ac_try_echo"; } >&5
michael@0 1711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
michael@0 1712 ac_status=$?
michael@0 1713 if test -s conftest.err; then
michael@0 1714 grep -v '^ *+' conftest.err >conftest.er1
michael@0 1715 cat conftest.er1 >&5
michael@0 1716 mv -f conftest.er1 conftest.err
michael@0 1717 fi
michael@0 1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 1719 test $ac_status = 0; } >/dev/null && {
michael@0 1720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
michael@0 1721 test ! -s conftest.err
michael@0 1722 }; then :
michael@0 1723 ac_retval=0
michael@0 1724 else
michael@0 1725 $as_echo "$as_me: failed program was:" >&5
michael@0 1726 sed 's/^/| /' conftest.$ac_ext >&5
michael@0 1727
michael@0 1728 ac_retval=1
michael@0 1729 fi
michael@0 1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
michael@0 1731 as_fn_set_status $ac_retval
michael@0 1732
michael@0 1733 } # ac_fn_c_try_cpp
michael@0 1734
michael@0 1735 # ac_fn_cxx_try_compile LINENO
michael@0 1736 # ----------------------------
michael@0 1737 # Try to compile conftest.$ac_ext, and return whether this succeeded.
michael@0 1738 ac_fn_cxx_try_compile ()
michael@0 1739 {
michael@0 1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
michael@0 1741 rm -f conftest.$ac_objext
michael@0 1742 if { { ac_try="$ac_compile"
michael@0 1743 case "(($ac_try" in
michael@0 1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
michael@0 1745 *) ac_try_echo=$ac_try;;
michael@0 1746 esac
michael@0 1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
michael@0 1748 $as_echo "$ac_try_echo"; } >&5
michael@0 1749 (eval "$ac_compile") 2>conftest.err
michael@0 1750 ac_status=$?
michael@0 1751 if test -s conftest.err; then
michael@0 1752 grep -v '^ *+' conftest.err >conftest.er1
michael@0 1753 cat conftest.er1 >&5
michael@0 1754 mv -f conftest.er1 conftest.err
michael@0 1755 fi
michael@0 1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 1757 test $ac_status = 0; } && {
michael@0 1758 test -z "$ac_cxx_werror_flag" ||
michael@0 1759 test ! -s conftest.err
michael@0 1760 } && test -s conftest.$ac_objext; then :
michael@0 1761 ac_retval=0
michael@0 1762 else
michael@0 1763 $as_echo "$as_me: failed program was:" >&5
michael@0 1764 sed 's/^/| /' conftest.$ac_ext >&5
michael@0 1765
michael@0 1766 ac_retval=1
michael@0 1767 fi
michael@0 1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
michael@0 1769 as_fn_set_status $ac_retval
michael@0 1770
michael@0 1771 } # ac_fn_cxx_try_compile
michael@0 1772
michael@0 1773 # ac_fn_c_try_link LINENO
michael@0 1774 # -----------------------
michael@0 1775 # Try to link conftest.$ac_ext, and return whether this succeeded.
michael@0 1776 ac_fn_c_try_link ()
michael@0 1777 {
michael@0 1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
michael@0 1779 rm -f conftest.$ac_objext conftest$ac_exeext
michael@0 1780 if { { ac_try="$ac_link"
michael@0 1781 case "(($ac_try" in
michael@0 1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
michael@0 1783 *) ac_try_echo=$ac_try;;
michael@0 1784 esac
michael@0 1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
michael@0 1786 $as_echo "$ac_try_echo"; } >&5
michael@0 1787 (eval "$ac_link") 2>conftest.err
michael@0 1788 ac_status=$?
michael@0 1789 if test -s conftest.err; then
michael@0 1790 grep -v '^ *+' conftest.err >conftest.er1
michael@0 1791 cat conftest.er1 >&5
michael@0 1792 mv -f conftest.er1 conftest.err
michael@0 1793 fi
michael@0 1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 1795 test $ac_status = 0; } && {
michael@0 1796 test -z "$ac_c_werror_flag" ||
michael@0 1797 test ! -s conftest.err
michael@0 1798 } && test -s conftest$ac_exeext && {
michael@0 1799 test "$cross_compiling" = yes ||
michael@0 1800 $as_test_x conftest$ac_exeext
michael@0 1801 }; then :
michael@0 1802 ac_retval=0
michael@0 1803 else
michael@0 1804 $as_echo "$as_me: failed program was:" >&5
michael@0 1805 sed 's/^/| /' conftest.$ac_ext >&5
michael@0 1806
michael@0 1807 ac_retval=1
michael@0 1808 fi
michael@0 1809 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
michael@0 1810 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
michael@0 1811 # interfere with the next link command; also delete a directory that is
michael@0 1812 # left behind by Apple's compiler. We do this before executing the actions.
michael@0 1813 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
michael@0 1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
michael@0 1815 as_fn_set_status $ac_retval
michael@0 1816
michael@0 1817 } # ac_fn_c_try_link
michael@0 1818
michael@0 1819 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
michael@0 1820 # -------------------------------------------------------
michael@0 1821 # Tests whether HEADER exists and can be compiled using the include files in
michael@0 1822 # INCLUDES, setting the cache variable VAR accordingly.
michael@0 1823 ac_fn_c_check_header_compile ()
michael@0 1824 {
michael@0 1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
michael@0 1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
michael@0 1827 $as_echo_n "checking for $2... " >&6; }
michael@0 1828 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
michael@0 1829 $as_echo_n "(cached) " >&6
michael@0 1830 else
michael@0 1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 1832 /* end confdefs.h. */
michael@0 1833 $4
michael@0 1834 #include <$2>
michael@0 1835 _ACEOF
michael@0 1836 if ac_fn_c_try_compile "$LINENO"; then :
michael@0 1837 eval "$3=yes"
michael@0 1838 else
michael@0 1839 eval "$3=no"
michael@0 1840 fi
michael@0 1841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 1842 fi
michael@0 1843 eval ac_res=\$$3
michael@0 1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
michael@0 1845 $as_echo "$ac_res" >&6; }
michael@0 1846 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
michael@0 1847
michael@0 1848 } # ac_fn_c_check_header_compile
michael@0 1849
michael@0 1850 # ac_fn_c_try_run LINENO
michael@0 1851 # ----------------------
michael@0 1852 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
michael@0 1853 # that executables *can* be run.
michael@0 1854 ac_fn_c_try_run ()
michael@0 1855 {
michael@0 1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
michael@0 1857 if { { ac_try="$ac_link"
michael@0 1858 case "(($ac_try" in
michael@0 1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
michael@0 1860 *) ac_try_echo=$ac_try;;
michael@0 1861 esac
michael@0 1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
michael@0 1863 $as_echo "$ac_try_echo"; } >&5
michael@0 1864 (eval "$ac_link") 2>&5
michael@0 1865 ac_status=$?
michael@0 1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 1867 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
michael@0 1868 { { case "(($ac_try" in
michael@0 1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
michael@0 1870 *) ac_try_echo=$ac_try;;
michael@0 1871 esac
michael@0 1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
michael@0 1873 $as_echo "$ac_try_echo"; } >&5
michael@0 1874 (eval "$ac_try") 2>&5
michael@0 1875 ac_status=$?
michael@0 1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 1877 test $ac_status = 0; }; }; then :
michael@0 1878 ac_retval=0
michael@0 1879 else
michael@0 1880 $as_echo "$as_me: program exited with status $ac_status" >&5
michael@0 1881 $as_echo "$as_me: failed program was:" >&5
michael@0 1882 sed 's/^/| /' conftest.$ac_ext >&5
michael@0 1883
michael@0 1884 ac_retval=$ac_status
michael@0 1885 fi
michael@0 1886 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
michael@0 1887 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
michael@0 1888 as_fn_set_status $ac_retval
michael@0 1889
michael@0 1890 } # ac_fn_c_try_run
michael@0 1891
michael@0 1892 # ac_fn_c_check_func LINENO FUNC VAR
michael@0 1893 # ----------------------------------
michael@0 1894 # Tests whether FUNC exists, setting the cache variable VAR accordingly
michael@0 1895 ac_fn_c_check_func ()
michael@0 1896 {
michael@0 1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
michael@0 1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
michael@0 1899 $as_echo_n "checking for $2... " >&6; }
michael@0 1900 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
michael@0 1901 $as_echo_n "(cached) " >&6
michael@0 1902 else
michael@0 1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 1904 /* end confdefs.h. */
michael@0 1905 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
michael@0 1906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
michael@0 1907 #define $2 innocuous_$2
michael@0 1908
michael@0 1909 /* System header to define __stub macros and hopefully few prototypes,
michael@0 1910 which can conflict with char $2 (); below.
michael@0 1911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
michael@0 1912 <limits.h> exists even on freestanding compilers. */
michael@0 1913
michael@0 1914 #ifdef __STDC__
michael@0 1915 # include <limits.h>
michael@0 1916 #else
michael@0 1917 # include <assert.h>
michael@0 1918 #endif
michael@0 1919
michael@0 1920 #undef $2
michael@0 1921
michael@0 1922 /* Override any GCC internal prototype to avoid an error.
michael@0 1923 Use char because int might match the return type of a GCC
michael@0 1924 builtin and then its argument prototype would still apply. */
michael@0 1925 #ifdef __cplusplus
michael@0 1926 extern "C"
michael@0 1927 #endif
michael@0 1928 char $2 ();
michael@0 1929 /* The GNU C library defines this for functions which it implements
michael@0 1930 to always fail with ENOSYS. Some functions are actually named
michael@0 1931 something starting with __ and the normal name is an alias. */
michael@0 1932 #if defined __stub_$2 || defined __stub___$2
michael@0 1933 choke me
michael@0 1934 #endif
michael@0 1935
michael@0 1936 int
michael@0 1937 main ()
michael@0 1938 {
michael@0 1939 return $2 ();
michael@0 1940 ;
michael@0 1941 return 0;
michael@0 1942 }
michael@0 1943 _ACEOF
michael@0 1944 if ac_fn_c_try_link "$LINENO"; then :
michael@0 1945 eval "$3=yes"
michael@0 1946 else
michael@0 1947 eval "$3=no"
michael@0 1948 fi
michael@0 1949 rm -f core conftest.err conftest.$ac_objext \
michael@0 1950 conftest$ac_exeext conftest.$ac_ext
michael@0 1951 fi
michael@0 1952 eval ac_res=\$$3
michael@0 1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
michael@0 1954 $as_echo "$ac_res" >&6; }
michael@0 1955 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
michael@0 1956
michael@0 1957 } # ac_fn_c_check_func
michael@0 1958
michael@0 1959 # ac_fn_cxx_try_cpp LINENO
michael@0 1960 # ------------------------
michael@0 1961 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
michael@0 1962 ac_fn_cxx_try_cpp ()
michael@0 1963 {
michael@0 1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
michael@0 1965 if { { ac_try="$ac_cpp conftest.$ac_ext"
michael@0 1966 case "(($ac_try" in
michael@0 1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
michael@0 1968 *) ac_try_echo=$ac_try;;
michael@0 1969 esac
michael@0 1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
michael@0 1971 $as_echo "$ac_try_echo"; } >&5
michael@0 1972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
michael@0 1973 ac_status=$?
michael@0 1974 if test -s conftest.err; then
michael@0 1975 grep -v '^ *+' conftest.err >conftest.er1
michael@0 1976 cat conftest.er1 >&5
michael@0 1977 mv -f conftest.er1 conftest.err
michael@0 1978 fi
michael@0 1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 1980 test $ac_status = 0; } >/dev/null && {
michael@0 1981 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
michael@0 1982 test ! -s conftest.err
michael@0 1983 }; then :
michael@0 1984 ac_retval=0
michael@0 1985 else
michael@0 1986 $as_echo "$as_me: failed program was:" >&5
michael@0 1987 sed 's/^/| /' conftest.$ac_ext >&5
michael@0 1988
michael@0 1989 ac_retval=1
michael@0 1990 fi
michael@0 1991 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
michael@0 1992 as_fn_set_status $ac_retval
michael@0 1993
michael@0 1994 } # ac_fn_cxx_try_cpp
michael@0 1995
michael@0 1996 # ac_fn_cxx_try_link LINENO
michael@0 1997 # -------------------------
michael@0 1998 # Try to link conftest.$ac_ext, and return whether this succeeded.
michael@0 1999 ac_fn_cxx_try_link ()
michael@0 2000 {
michael@0 2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
michael@0 2002 rm -f conftest.$ac_objext conftest$ac_exeext
michael@0 2003 if { { ac_try="$ac_link"
michael@0 2004 case "(($ac_try" in
michael@0 2005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
michael@0 2006 *) ac_try_echo=$ac_try;;
michael@0 2007 esac
michael@0 2008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
michael@0 2009 $as_echo "$ac_try_echo"; } >&5
michael@0 2010 (eval "$ac_link") 2>conftest.err
michael@0 2011 ac_status=$?
michael@0 2012 if test -s conftest.err; then
michael@0 2013 grep -v '^ *+' conftest.err >conftest.er1
michael@0 2014 cat conftest.er1 >&5
michael@0 2015 mv -f conftest.er1 conftest.err
michael@0 2016 fi
michael@0 2017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 2018 test $ac_status = 0; } && {
michael@0 2019 test -z "$ac_cxx_werror_flag" ||
michael@0 2020 test ! -s conftest.err
michael@0 2021 } && test -s conftest$ac_exeext && {
michael@0 2022 test "$cross_compiling" = yes ||
michael@0 2023 $as_test_x conftest$ac_exeext
michael@0 2024 }; then :
michael@0 2025 ac_retval=0
michael@0 2026 else
michael@0 2027 $as_echo "$as_me: failed program was:" >&5
michael@0 2028 sed 's/^/| /' conftest.$ac_ext >&5
michael@0 2029
michael@0 2030 ac_retval=1
michael@0 2031 fi
michael@0 2032 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
michael@0 2033 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
michael@0 2034 # interfere with the next link command; also delete a directory that is
michael@0 2035 # left behind by Apple's compiler. We do this before executing the actions.
michael@0 2036 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
michael@0 2037 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
michael@0 2038 as_fn_set_status $ac_retval
michael@0 2039
michael@0 2040 } # ac_fn_cxx_try_link
michael@0 2041
michael@0 2042 # ac_fn_cxx_try_run LINENO
michael@0 2043 # ------------------------
michael@0 2044 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
michael@0 2045 # that executables *can* be run.
michael@0 2046 ac_fn_cxx_try_run ()
michael@0 2047 {
michael@0 2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
michael@0 2049 if { { ac_try="$ac_link"
michael@0 2050 case "(($ac_try" in
michael@0 2051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
michael@0 2052 *) ac_try_echo=$ac_try;;
michael@0 2053 esac
michael@0 2054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
michael@0 2055 $as_echo "$ac_try_echo"; } >&5
michael@0 2056 (eval "$ac_link") 2>&5
michael@0 2057 ac_status=$?
michael@0 2058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 2059 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
michael@0 2060 { { case "(($ac_try" in
michael@0 2061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
michael@0 2062 *) ac_try_echo=$ac_try;;
michael@0 2063 esac
michael@0 2064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
michael@0 2065 $as_echo "$ac_try_echo"; } >&5
michael@0 2066 (eval "$ac_try") 2>&5
michael@0 2067 ac_status=$?
michael@0 2068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 2069 test $ac_status = 0; }; }; then :
michael@0 2070 ac_retval=0
michael@0 2071 else
michael@0 2072 $as_echo "$as_me: program exited with status $ac_status" >&5
michael@0 2073 $as_echo "$as_me: failed program was:" >&5
michael@0 2074 sed 's/^/| /' conftest.$ac_ext >&5
michael@0 2075
michael@0 2076 ac_retval=$ac_status
michael@0 2077 fi
michael@0 2078 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
michael@0 2079 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
michael@0 2080 as_fn_set_status $ac_retval
michael@0 2081
michael@0 2082 } # ac_fn_cxx_try_run
michael@0 2083
michael@0 2084 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
michael@0 2085 # ---------------------------------------------------------
michael@0 2086 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
michael@0 2087 # the include files in INCLUDES and setting the cache variable VAR
michael@0 2088 # accordingly.
michael@0 2089 ac_fn_cxx_check_header_mongrel ()
michael@0 2090 {
michael@0 2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
michael@0 2092 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
michael@0 2093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
michael@0 2094 $as_echo_n "checking for $2... " >&6; }
michael@0 2095 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
michael@0 2096 $as_echo_n "(cached) " >&6
michael@0 2097 fi
michael@0 2098 eval ac_res=\$$3
michael@0 2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
michael@0 2100 $as_echo "$ac_res" >&6; }
michael@0 2101 else
michael@0 2102 # Is the header compilable?
michael@0 2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
michael@0 2104 $as_echo_n "checking $2 usability... " >&6; }
michael@0 2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 2106 /* end confdefs.h. */
michael@0 2107 $4
michael@0 2108 #include <$2>
michael@0 2109 _ACEOF
michael@0 2110 if ac_fn_cxx_try_compile "$LINENO"; then :
michael@0 2111 ac_header_compiler=yes
michael@0 2112 else
michael@0 2113 ac_header_compiler=no
michael@0 2114 fi
michael@0 2115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 2116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
michael@0 2117 $as_echo "$ac_header_compiler" >&6; }
michael@0 2118
michael@0 2119 # Is the header present?
michael@0 2120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
michael@0 2121 $as_echo_n "checking $2 presence... " >&6; }
michael@0 2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 2123 /* end confdefs.h. */
michael@0 2124 #include <$2>
michael@0 2125 _ACEOF
michael@0 2126 if ac_fn_cxx_try_cpp "$LINENO"; then :
michael@0 2127 ac_header_preproc=yes
michael@0 2128 else
michael@0 2129 ac_header_preproc=no
michael@0 2130 fi
michael@0 2131 rm -f conftest.err conftest.$ac_ext
michael@0 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
michael@0 2133 $as_echo "$ac_header_preproc" >&6; }
michael@0 2134
michael@0 2135 # So? What about this header?
michael@0 2136 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
michael@0 2137 yes:no: )
michael@0 2138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
michael@0 2139 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
michael@0 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
michael@0 2141 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
michael@0 2142 ;;
michael@0 2143 no:yes:* )
michael@0 2144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
michael@0 2145 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
michael@0 2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
michael@0 2147 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
michael@0 2148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
michael@0 2149 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
michael@0 2150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
michael@0 2151 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
michael@0 2152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
michael@0 2153 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
michael@0 2154 ( cat <<\_ASBOX
michael@0 2155 ## ------------------------------------ ##
michael@0 2156 ## Report this to opensource@google.com ##
michael@0 2157 ## ------------------------------------ ##
michael@0 2158 _ASBOX
michael@0 2159 ) | sed "s/^/$as_me: WARNING: /" >&2
michael@0 2160 ;;
michael@0 2161 esac
michael@0 2162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
michael@0 2163 $as_echo_n "checking for $2... " >&6; }
michael@0 2164 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
michael@0 2165 $as_echo_n "(cached) " >&6
michael@0 2166 else
michael@0 2167 eval "$3=\$ac_header_compiler"
michael@0 2168 fi
michael@0 2169 eval ac_res=\$$3
michael@0 2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
michael@0 2171 $as_echo "$ac_res" >&6; }
michael@0 2172 fi
michael@0 2173 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
michael@0 2174
michael@0 2175 } # ac_fn_cxx_check_header_mongrel
michael@0 2176
michael@0 2177 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
michael@0 2178 # ----------------------------------------------
michael@0 2179 # Tries to find the compile-time value of EXPR in a program that includes
michael@0 2180 # INCLUDES, setting VAR accordingly. Returns whether the value could be
michael@0 2181 # computed
michael@0 2182 ac_fn_cxx_compute_int ()
michael@0 2183 {
michael@0 2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
michael@0 2185 if test "$cross_compiling" = yes; then
michael@0 2186 # Depending upon the size, compute the lo and hi bounds.
michael@0 2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 2188 /* end confdefs.h. */
michael@0 2189 $4
michael@0 2190 int
michael@0 2191 main ()
michael@0 2192 {
michael@0 2193 static int test_array [1 - 2 * !(($2) >= 0)];
michael@0 2194 test_array [0] = 0
michael@0 2195
michael@0 2196 ;
michael@0 2197 return 0;
michael@0 2198 }
michael@0 2199 _ACEOF
michael@0 2200 if ac_fn_cxx_try_compile "$LINENO"; then :
michael@0 2201 ac_lo=0 ac_mid=0
michael@0 2202 while :; do
michael@0 2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 2204 /* end confdefs.h. */
michael@0 2205 $4
michael@0 2206 int
michael@0 2207 main ()
michael@0 2208 {
michael@0 2209 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
michael@0 2210 test_array [0] = 0
michael@0 2211
michael@0 2212 ;
michael@0 2213 return 0;
michael@0 2214 }
michael@0 2215 _ACEOF
michael@0 2216 if ac_fn_cxx_try_compile "$LINENO"; then :
michael@0 2217 ac_hi=$ac_mid; break
michael@0 2218 else
michael@0 2219 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
michael@0 2220 if test $ac_lo -le $ac_mid; then
michael@0 2221 ac_lo= ac_hi=
michael@0 2222 break
michael@0 2223 fi
michael@0 2224 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
michael@0 2225 fi
michael@0 2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 2227 done
michael@0 2228 else
michael@0 2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 2230 /* end confdefs.h. */
michael@0 2231 $4
michael@0 2232 int
michael@0 2233 main ()
michael@0 2234 {
michael@0 2235 static int test_array [1 - 2 * !(($2) < 0)];
michael@0 2236 test_array [0] = 0
michael@0 2237
michael@0 2238 ;
michael@0 2239 return 0;
michael@0 2240 }
michael@0 2241 _ACEOF
michael@0 2242 if ac_fn_cxx_try_compile "$LINENO"; then :
michael@0 2243 ac_hi=-1 ac_mid=-1
michael@0 2244 while :; do
michael@0 2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 2246 /* end confdefs.h. */
michael@0 2247 $4
michael@0 2248 int
michael@0 2249 main ()
michael@0 2250 {
michael@0 2251 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
michael@0 2252 test_array [0] = 0
michael@0 2253
michael@0 2254 ;
michael@0 2255 return 0;
michael@0 2256 }
michael@0 2257 _ACEOF
michael@0 2258 if ac_fn_cxx_try_compile "$LINENO"; then :
michael@0 2259 ac_lo=$ac_mid; break
michael@0 2260 else
michael@0 2261 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
michael@0 2262 if test $ac_mid -le $ac_hi; then
michael@0 2263 ac_lo= ac_hi=
michael@0 2264 break
michael@0 2265 fi
michael@0 2266 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
michael@0 2267 fi
michael@0 2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 2269 done
michael@0 2270 else
michael@0 2271 ac_lo= ac_hi=
michael@0 2272 fi
michael@0 2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 2274 fi
michael@0 2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 2276 # Binary search between lo and hi bounds.
michael@0 2277 while test "x$ac_lo" != "x$ac_hi"; do
michael@0 2278 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
michael@0 2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 2280 /* end confdefs.h. */
michael@0 2281 $4
michael@0 2282 int
michael@0 2283 main ()
michael@0 2284 {
michael@0 2285 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
michael@0 2286 test_array [0] = 0
michael@0 2287
michael@0 2288 ;
michael@0 2289 return 0;
michael@0 2290 }
michael@0 2291 _ACEOF
michael@0 2292 if ac_fn_cxx_try_compile "$LINENO"; then :
michael@0 2293 ac_hi=$ac_mid
michael@0 2294 else
michael@0 2295 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
michael@0 2296 fi
michael@0 2297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 2298 done
michael@0 2299 case $ac_lo in #((
michael@0 2300 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
michael@0 2301 '') ac_retval=1 ;;
michael@0 2302 esac
michael@0 2303 else
michael@0 2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 2305 /* end confdefs.h. */
michael@0 2306 $4
michael@0 2307 static long int longval () { return $2; }
michael@0 2308 static unsigned long int ulongval () { return $2; }
michael@0 2309 #include <stdio.h>
michael@0 2310 #include <stdlib.h>
michael@0 2311 int
michael@0 2312 main ()
michael@0 2313 {
michael@0 2314
michael@0 2315 FILE *f = fopen ("conftest.val", "w");
michael@0 2316 if (! f)
michael@0 2317 return 1;
michael@0 2318 if (($2) < 0)
michael@0 2319 {
michael@0 2320 long int i = longval ();
michael@0 2321 if (i != ($2))
michael@0 2322 return 1;
michael@0 2323 fprintf (f, "%ld", i);
michael@0 2324 }
michael@0 2325 else
michael@0 2326 {
michael@0 2327 unsigned long int i = ulongval ();
michael@0 2328 if (i != ($2))
michael@0 2329 return 1;
michael@0 2330 fprintf (f, "%lu", i);
michael@0 2331 }
michael@0 2332 /* Do not output a trailing newline, as this causes \r\n confusion
michael@0 2333 on some platforms. */
michael@0 2334 return ferror (f) || fclose (f) != 0;
michael@0 2335
michael@0 2336 ;
michael@0 2337 return 0;
michael@0 2338 }
michael@0 2339 _ACEOF
michael@0 2340 if ac_fn_cxx_try_run "$LINENO"; then :
michael@0 2341 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
michael@0 2342 else
michael@0 2343 ac_retval=1
michael@0 2344 fi
michael@0 2345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
michael@0 2346 conftest.$ac_objext conftest.beam conftest.$ac_ext
michael@0 2347 rm -f conftest.val
michael@0 2348
michael@0 2349 fi
michael@0 2350 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
michael@0 2351 as_fn_set_status $ac_retval
michael@0 2352
michael@0 2353 } # ac_fn_cxx_compute_int
michael@0 2354
michael@0 2355 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
michael@0 2356 # ---------------------------------------------
michael@0 2357 # Tests whether TYPE exists after having included INCLUDES, setting cache
michael@0 2358 # variable VAR accordingly.
michael@0 2359 ac_fn_cxx_check_type ()
michael@0 2360 {
michael@0 2361 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
michael@0 2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
michael@0 2363 $as_echo_n "checking for $2... " >&6; }
michael@0 2364 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
michael@0 2365 $as_echo_n "(cached) " >&6
michael@0 2366 else
michael@0 2367 eval "$3=no"
michael@0 2368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 2369 /* end confdefs.h. */
michael@0 2370 $4
michael@0 2371 int
michael@0 2372 main ()
michael@0 2373 {
michael@0 2374 if (sizeof ($2))
michael@0 2375 return 0;
michael@0 2376 ;
michael@0 2377 return 0;
michael@0 2378 }
michael@0 2379 _ACEOF
michael@0 2380 if ac_fn_cxx_try_compile "$LINENO"; then :
michael@0 2381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 2382 /* end confdefs.h. */
michael@0 2383 $4
michael@0 2384 int
michael@0 2385 main ()
michael@0 2386 {
michael@0 2387 if (sizeof (($2)))
michael@0 2388 return 0;
michael@0 2389 ;
michael@0 2390 return 0;
michael@0 2391 }
michael@0 2392 _ACEOF
michael@0 2393 if ac_fn_cxx_try_compile "$LINENO"; then :
michael@0 2394
michael@0 2395 else
michael@0 2396 eval "$3=yes"
michael@0 2397 fi
michael@0 2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 2399 fi
michael@0 2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 2401 fi
michael@0 2402 eval ac_res=\$$3
michael@0 2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
michael@0 2404 $as_echo "$ac_res" >&6; }
michael@0 2405 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
michael@0 2406
michael@0 2407 } # ac_fn_cxx_check_type
michael@0 2408
michael@0 2409 # ac_fn_cxx_check_func LINENO FUNC VAR
michael@0 2410 # ------------------------------------
michael@0 2411 # Tests whether FUNC exists, setting the cache variable VAR accordingly
michael@0 2412 ac_fn_cxx_check_func ()
michael@0 2413 {
michael@0 2414 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
michael@0 2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
michael@0 2416 $as_echo_n "checking for $2... " >&6; }
michael@0 2417 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
michael@0 2418 $as_echo_n "(cached) " >&6
michael@0 2419 else
michael@0 2420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 2421 /* end confdefs.h. */
michael@0 2422 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
michael@0 2423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
michael@0 2424 #define $2 innocuous_$2
michael@0 2425
michael@0 2426 /* System header to define __stub macros and hopefully few prototypes,
michael@0 2427 which can conflict with char $2 (); below.
michael@0 2428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
michael@0 2429 <limits.h> exists even on freestanding compilers. */
michael@0 2430
michael@0 2431 #ifdef __STDC__
michael@0 2432 # include <limits.h>
michael@0 2433 #else
michael@0 2434 # include <assert.h>
michael@0 2435 #endif
michael@0 2436
michael@0 2437 #undef $2
michael@0 2438
michael@0 2439 /* Override any GCC internal prototype to avoid an error.
michael@0 2440 Use char because int might match the return type of a GCC
michael@0 2441 builtin and then its argument prototype would still apply. */
michael@0 2442 #ifdef __cplusplus
michael@0 2443 extern "C"
michael@0 2444 #endif
michael@0 2445 char $2 ();
michael@0 2446 /* The GNU C library defines this for functions which it implements
michael@0 2447 to always fail with ENOSYS. Some functions are actually named
michael@0 2448 something starting with __ and the normal name is an alias. */
michael@0 2449 #if defined __stub_$2 || defined __stub___$2
michael@0 2450 choke me
michael@0 2451 #endif
michael@0 2452
michael@0 2453 int
michael@0 2454 main ()
michael@0 2455 {
michael@0 2456 return $2 ();
michael@0 2457 ;
michael@0 2458 return 0;
michael@0 2459 }
michael@0 2460 _ACEOF
michael@0 2461 if ac_fn_cxx_try_link "$LINENO"; then :
michael@0 2462 eval "$3=yes"
michael@0 2463 else
michael@0 2464 eval "$3=no"
michael@0 2465 fi
michael@0 2466 rm -f core conftest.err conftest.$ac_objext \
michael@0 2467 conftest$ac_exeext conftest.$ac_ext
michael@0 2468 fi
michael@0 2469 eval ac_res=\$$3
michael@0 2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
michael@0 2471 $as_echo "$ac_res" >&6; }
michael@0 2472 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
michael@0 2473
michael@0 2474 } # ac_fn_cxx_check_func
michael@0 2475 cat >config.log <<_ACEOF
michael@0 2476 This file contains any messages produced by compilers while
michael@0 2477 running configure, to aid debugging if configure makes a mistake.
michael@0 2478
michael@0 2479 It was created by glog $as_me 0.3.1, which was
michael@0 2480 generated by GNU Autoconf 2.65. Invocation command line was
michael@0 2481
michael@0 2482 $ $0 $@
michael@0 2483
michael@0 2484 _ACEOF
michael@0 2485 exec 5>>config.log
michael@0 2486 {
michael@0 2487 cat <<_ASUNAME
michael@0 2488 ## --------- ##
michael@0 2489 ## Platform. ##
michael@0 2490 ## --------- ##
michael@0 2491
michael@0 2492 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
michael@0 2493 uname -m = `(uname -m) 2>/dev/null || echo unknown`
michael@0 2494 uname -r = `(uname -r) 2>/dev/null || echo unknown`
michael@0 2495 uname -s = `(uname -s) 2>/dev/null || echo unknown`
michael@0 2496 uname -v = `(uname -v) 2>/dev/null || echo unknown`
michael@0 2497
michael@0 2498 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
michael@0 2499 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
michael@0 2500
michael@0 2501 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
michael@0 2502 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
michael@0 2503 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
michael@0 2504 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
michael@0 2505 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
michael@0 2506 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
michael@0 2507 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
michael@0 2508
michael@0 2509 _ASUNAME
michael@0 2510
michael@0 2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 2512 for as_dir in $PATH
michael@0 2513 do
michael@0 2514 IFS=$as_save_IFS
michael@0 2515 test -z "$as_dir" && as_dir=.
michael@0 2516 $as_echo "PATH: $as_dir"
michael@0 2517 done
michael@0 2518 IFS=$as_save_IFS
michael@0 2519
michael@0 2520 } >&5
michael@0 2521
michael@0 2522 cat >&5 <<_ACEOF
michael@0 2523
michael@0 2524
michael@0 2525 ## ----------- ##
michael@0 2526 ## Core tests. ##
michael@0 2527 ## ----------- ##
michael@0 2528
michael@0 2529 _ACEOF
michael@0 2530
michael@0 2531
michael@0 2532 # Keep a trace of the command line.
michael@0 2533 # Strip out --no-create and --no-recursion so they do not pile up.
michael@0 2534 # Strip out --silent because we don't want to record it for future runs.
michael@0 2535 # Also quote any args containing shell meta-characters.
michael@0 2536 # Make two passes to allow for proper duplicate-argument suppression.
michael@0 2537 ac_configure_args=
michael@0 2538 ac_configure_args0=
michael@0 2539 ac_configure_args1=
michael@0 2540 ac_must_keep_next=false
michael@0 2541 for ac_pass in 1 2
michael@0 2542 do
michael@0 2543 for ac_arg
michael@0 2544 do
michael@0 2545 case $ac_arg in
michael@0 2546 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
michael@0 2547 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
michael@0 2548 | -silent | --silent | --silen | --sile | --sil)
michael@0 2549 continue ;;
michael@0 2550 *\'*)
michael@0 2551 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
michael@0 2552 esac
michael@0 2553 case $ac_pass in
michael@0 2554 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
michael@0 2555 2)
michael@0 2556 as_fn_append ac_configure_args1 " '$ac_arg'"
michael@0 2557 if test $ac_must_keep_next = true; then
michael@0 2558 ac_must_keep_next=false # Got value, back to normal.
michael@0 2559 else
michael@0 2560 case $ac_arg in
michael@0 2561 *=* | --config-cache | -C | -disable-* | --disable-* \
michael@0 2562 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
michael@0 2563 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
michael@0 2564 | -with-* | --with-* | -without-* | --without-* | --x)
michael@0 2565 case "$ac_configure_args0 " in
michael@0 2566 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
michael@0 2567 esac
michael@0 2568 ;;
michael@0 2569 -* ) ac_must_keep_next=true ;;
michael@0 2570 esac
michael@0 2571 fi
michael@0 2572 as_fn_append ac_configure_args " '$ac_arg'"
michael@0 2573 ;;
michael@0 2574 esac
michael@0 2575 done
michael@0 2576 done
michael@0 2577 { ac_configure_args0=; unset ac_configure_args0;}
michael@0 2578 { ac_configure_args1=; unset ac_configure_args1;}
michael@0 2579
michael@0 2580 # When interrupted or exit'd, cleanup temporary files, and complete
michael@0 2581 # config.log. We remove comments because anyway the quotes in there
michael@0 2582 # would cause problems or look ugly.
michael@0 2583 # WARNING: Use '\'' to represent an apostrophe within the trap.
michael@0 2584 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
michael@0 2585 trap 'exit_status=$?
michael@0 2586 # Save into config.log some information that might help in debugging.
michael@0 2587 {
michael@0 2588 echo
michael@0 2589
michael@0 2590 cat <<\_ASBOX
michael@0 2591 ## ---------------- ##
michael@0 2592 ## Cache variables. ##
michael@0 2593 ## ---------------- ##
michael@0 2594 _ASBOX
michael@0 2595 echo
michael@0 2596 # The following way of writing the cache mishandles newlines in values,
michael@0 2597 (
michael@0 2598 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
michael@0 2599 eval ac_val=\$$ac_var
michael@0 2600 case $ac_val in #(
michael@0 2601 *${as_nl}*)
michael@0 2602 case $ac_var in #(
michael@0 2603 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
michael@0 2604 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
michael@0 2605 esac
michael@0 2606 case $ac_var in #(
michael@0 2607 _ | IFS | as_nl) ;; #(
michael@0 2608 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
michael@0 2609 *) { eval $ac_var=; unset $ac_var;} ;;
michael@0 2610 esac ;;
michael@0 2611 esac
michael@0 2612 done
michael@0 2613 (set) 2>&1 |
michael@0 2614 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
michael@0 2615 *${as_nl}ac_space=\ *)
michael@0 2616 sed -n \
michael@0 2617 "s/'\''/'\''\\\\'\'''\''/g;
michael@0 2618 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
michael@0 2619 ;; #(
michael@0 2620 *)
michael@0 2621 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
michael@0 2622 ;;
michael@0 2623 esac |
michael@0 2624 sort
michael@0 2625 )
michael@0 2626 echo
michael@0 2627
michael@0 2628 cat <<\_ASBOX
michael@0 2629 ## ----------------- ##
michael@0 2630 ## Output variables. ##
michael@0 2631 ## ----------------- ##
michael@0 2632 _ASBOX
michael@0 2633 echo
michael@0 2634 for ac_var in $ac_subst_vars
michael@0 2635 do
michael@0 2636 eval ac_val=\$$ac_var
michael@0 2637 case $ac_val in
michael@0 2638 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
michael@0 2639 esac
michael@0 2640 $as_echo "$ac_var='\''$ac_val'\''"
michael@0 2641 done | sort
michael@0 2642 echo
michael@0 2643
michael@0 2644 if test -n "$ac_subst_files"; then
michael@0 2645 cat <<\_ASBOX
michael@0 2646 ## ------------------- ##
michael@0 2647 ## File substitutions. ##
michael@0 2648 ## ------------------- ##
michael@0 2649 _ASBOX
michael@0 2650 echo
michael@0 2651 for ac_var in $ac_subst_files
michael@0 2652 do
michael@0 2653 eval ac_val=\$$ac_var
michael@0 2654 case $ac_val in
michael@0 2655 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
michael@0 2656 esac
michael@0 2657 $as_echo "$ac_var='\''$ac_val'\''"
michael@0 2658 done | sort
michael@0 2659 echo
michael@0 2660 fi
michael@0 2661
michael@0 2662 if test -s confdefs.h; then
michael@0 2663 cat <<\_ASBOX
michael@0 2664 ## ----------- ##
michael@0 2665 ## confdefs.h. ##
michael@0 2666 ## ----------- ##
michael@0 2667 _ASBOX
michael@0 2668 echo
michael@0 2669 cat confdefs.h
michael@0 2670 echo
michael@0 2671 fi
michael@0 2672 test "$ac_signal" != 0 &&
michael@0 2673 $as_echo "$as_me: caught signal $ac_signal"
michael@0 2674 $as_echo "$as_me: exit $exit_status"
michael@0 2675 } >&5
michael@0 2676 rm -f core *.core core.conftest.* &&
michael@0 2677 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
michael@0 2678 exit $exit_status
michael@0 2679 ' 0
michael@0 2680 for ac_signal in 1 2 13 15; do
michael@0 2681 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
michael@0 2682 done
michael@0 2683 ac_signal=0
michael@0 2684
michael@0 2685 # confdefs.h avoids OS command line length limits that DEFS can exceed.
michael@0 2686 rm -f -r conftest* confdefs.h
michael@0 2687
michael@0 2688 $as_echo "/* confdefs.h */" > confdefs.h
michael@0 2689
michael@0 2690 # Predefined preprocessor variables.
michael@0 2691
michael@0 2692 cat >>confdefs.h <<_ACEOF
michael@0 2693 #define PACKAGE_NAME "$PACKAGE_NAME"
michael@0 2694 _ACEOF
michael@0 2695
michael@0 2696 cat >>confdefs.h <<_ACEOF
michael@0 2697 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
michael@0 2698 _ACEOF
michael@0 2699
michael@0 2700 cat >>confdefs.h <<_ACEOF
michael@0 2701 #define PACKAGE_VERSION "$PACKAGE_VERSION"
michael@0 2702 _ACEOF
michael@0 2703
michael@0 2704 cat >>confdefs.h <<_ACEOF
michael@0 2705 #define PACKAGE_STRING "$PACKAGE_STRING"
michael@0 2706 _ACEOF
michael@0 2707
michael@0 2708 cat >>confdefs.h <<_ACEOF
michael@0 2709 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
michael@0 2710 _ACEOF
michael@0 2711
michael@0 2712 cat >>confdefs.h <<_ACEOF
michael@0 2713 #define PACKAGE_URL "$PACKAGE_URL"
michael@0 2714 _ACEOF
michael@0 2715
michael@0 2716
michael@0 2717 # Let the site file select an alternate cache file if it wants to.
michael@0 2718 # Prefer an explicitly selected file to automatically selected ones.
michael@0 2719 ac_site_file1=NONE
michael@0 2720 ac_site_file2=NONE
michael@0 2721 if test -n "$CONFIG_SITE"; then
michael@0 2722 ac_site_file1=$CONFIG_SITE
michael@0 2723 elif test "x$prefix" != xNONE; then
michael@0 2724 ac_site_file1=$prefix/share/config.site
michael@0 2725 ac_site_file2=$prefix/etc/config.site
michael@0 2726 else
michael@0 2727 ac_site_file1=$ac_default_prefix/share/config.site
michael@0 2728 ac_site_file2=$ac_default_prefix/etc/config.site
michael@0 2729 fi
michael@0 2730 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
michael@0 2731 do
michael@0 2732 test "x$ac_site_file" = xNONE && continue
michael@0 2733 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
michael@0 2734 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
michael@0 2735 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
michael@0 2736 sed 's/^/| /' "$ac_site_file" >&5
michael@0 2737 . "$ac_site_file"
michael@0 2738 fi
michael@0 2739 done
michael@0 2740
michael@0 2741 if test -r "$cache_file"; then
michael@0 2742 # Some versions of bash will fail to source /dev/null (special files
michael@0 2743 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
michael@0 2744 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
michael@0 2745 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
michael@0 2746 $as_echo "$as_me: loading cache $cache_file" >&6;}
michael@0 2747 case $cache_file in
michael@0 2748 [\\/]* | ?:[\\/]* ) . "$cache_file";;
michael@0 2749 *) . "./$cache_file";;
michael@0 2750 esac
michael@0 2751 fi
michael@0 2752 else
michael@0 2753 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
michael@0 2754 $as_echo "$as_me: creating cache $cache_file" >&6;}
michael@0 2755 >$cache_file
michael@0 2756 fi
michael@0 2757
michael@0 2758 # Check that the precious variables saved in the cache have kept the same
michael@0 2759 # value.
michael@0 2760 ac_cache_corrupted=false
michael@0 2761 for ac_var in $ac_precious_vars; do
michael@0 2762 eval ac_old_set=\$ac_cv_env_${ac_var}_set
michael@0 2763 eval ac_new_set=\$ac_env_${ac_var}_set
michael@0 2764 eval ac_old_val=\$ac_cv_env_${ac_var}_value
michael@0 2765 eval ac_new_val=\$ac_env_${ac_var}_value
michael@0 2766 case $ac_old_set,$ac_new_set in
michael@0 2767 set,)
michael@0 2768 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
michael@0 2769 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
michael@0 2770 ac_cache_corrupted=: ;;
michael@0 2771 ,set)
michael@0 2772 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
michael@0 2773 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
michael@0 2774 ac_cache_corrupted=: ;;
michael@0 2775 ,);;
michael@0 2776 *)
michael@0 2777 if test "x$ac_old_val" != "x$ac_new_val"; then
michael@0 2778 # differences in whitespace do not lead to failure.
michael@0 2779 ac_old_val_w=`echo x $ac_old_val`
michael@0 2780 ac_new_val_w=`echo x $ac_new_val`
michael@0 2781 if test "$ac_old_val_w" != "$ac_new_val_w"; then
michael@0 2782 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
michael@0 2783 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
michael@0 2784 ac_cache_corrupted=:
michael@0 2785 else
michael@0 2786 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
michael@0 2787 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
michael@0 2788 eval $ac_var=\$ac_old_val
michael@0 2789 fi
michael@0 2790 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
michael@0 2791 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
michael@0 2792 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
michael@0 2793 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
michael@0 2794 fi;;
michael@0 2795 esac
michael@0 2796 # Pass precious variables to config.status.
michael@0 2797 if test "$ac_new_set" = set; then
michael@0 2798 case $ac_new_val in
michael@0 2799 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
michael@0 2800 *) ac_arg=$ac_var=$ac_new_val ;;
michael@0 2801 esac
michael@0 2802 case " $ac_configure_args " in
michael@0 2803 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
michael@0 2804 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
michael@0 2805 esac
michael@0 2806 fi
michael@0 2807 done
michael@0 2808 if $ac_cache_corrupted; then
michael@0 2809 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
michael@0 2810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
michael@0 2811 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
michael@0 2812 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
michael@0 2813 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
michael@0 2814 fi
michael@0 2815 ## -------------------- ##
michael@0 2816 ## Main body of script. ##
michael@0 2817 ## -------------------- ##
michael@0 2818
michael@0 2819 ac_ext=c
michael@0 2820 ac_cpp='$CPP $CPPFLAGS'
michael@0 2821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
michael@0 2822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
michael@0 2823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
michael@0 2824
michael@0 2825
michael@0 2826 # The argument here is just something that should be in the current directory
michael@0 2827 # (for sanity checking)
michael@0 2828
michael@0 2829
michael@0 2830 am__api_version='1.11'
michael@0 2831
michael@0 2832 ac_aux_dir=
michael@0 2833 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
michael@0 2834 for ac_t in install-sh install.sh shtool; do
michael@0 2835 if test -f "$ac_dir/$ac_t"; then
michael@0 2836 ac_aux_dir=$ac_dir
michael@0 2837 ac_install_sh="$ac_aux_dir/$ac_t -c"
michael@0 2838 break 2
michael@0 2839 fi
michael@0 2840 done
michael@0 2841 done
michael@0 2842 if test -z "$ac_aux_dir"; then
michael@0 2843 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
michael@0 2844 fi
michael@0 2845
michael@0 2846 # These three variables are undocumented and unsupported,
michael@0 2847 # and are intended to be withdrawn in a future Autoconf release.
michael@0 2848 # They can cause serious problems if a builder's source tree is in a directory
michael@0 2849 # whose full name contains unusual characters.
michael@0 2850 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
michael@0 2851 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
michael@0 2852 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
michael@0 2853
michael@0 2854
michael@0 2855 # Find a good install program. We prefer a C program (faster),
michael@0 2856 # so one script is as good as another. But avoid the broken or
michael@0 2857 # incompatible versions:
michael@0 2858 # SysV /etc/install, /usr/sbin/install
michael@0 2859 # SunOS /usr/etc/install
michael@0 2860 # IRIX /sbin/install
michael@0 2861 # AIX /bin/install
michael@0 2862 # AmigaOS /C/install, which installs bootblocks on floppy discs
michael@0 2863 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
michael@0 2864 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
michael@0 2865 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
michael@0 2866 # OS/2's system install, which has a completely different semantic
michael@0 2867 # ./install, which can be erroneously created by make from ./install.sh.
michael@0 2868 # Reject install programs that cannot install multiple files.
michael@0 2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
michael@0 2870 $as_echo_n "checking for a BSD-compatible install... " >&6; }
michael@0 2871 if test -z "$INSTALL"; then
michael@0 2872 if test "${ac_cv_path_install+set}" = set; then :
michael@0 2873 $as_echo_n "(cached) " >&6
michael@0 2874 else
michael@0 2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 2876 for as_dir in $PATH
michael@0 2877 do
michael@0 2878 IFS=$as_save_IFS
michael@0 2879 test -z "$as_dir" && as_dir=.
michael@0 2880 # Account for people who put trailing slashes in PATH elements.
michael@0 2881 case $as_dir/ in #((
michael@0 2882 ./ | .// | /[cC]/* | \
michael@0 2883 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
michael@0 2884 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
michael@0 2885 /usr/ucb/* ) ;;
michael@0 2886 *)
michael@0 2887 # OSF1 and SCO ODT 3.0 have their own names for install.
michael@0 2888 # Don't use installbsd from OSF since it installs stuff as root
michael@0 2889 # by default.
michael@0 2890 for ac_prog in ginstall scoinst install; do
michael@0 2891 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 2892 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
michael@0 2893 if test $ac_prog = install &&
michael@0 2894 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
michael@0 2895 # AIX install. It has an incompatible calling convention.
michael@0 2896 :
michael@0 2897 elif test $ac_prog = install &&
michael@0 2898 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
michael@0 2899 # program-specific install script used by HP pwplus--don't use.
michael@0 2900 :
michael@0 2901 else
michael@0 2902 rm -rf conftest.one conftest.two conftest.dir
michael@0 2903 echo one > conftest.one
michael@0 2904 echo two > conftest.two
michael@0 2905 mkdir conftest.dir
michael@0 2906 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
michael@0 2907 test -s conftest.one && test -s conftest.two &&
michael@0 2908 test -s conftest.dir/conftest.one &&
michael@0 2909 test -s conftest.dir/conftest.two
michael@0 2910 then
michael@0 2911 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
michael@0 2912 break 3
michael@0 2913 fi
michael@0 2914 fi
michael@0 2915 fi
michael@0 2916 done
michael@0 2917 done
michael@0 2918 ;;
michael@0 2919 esac
michael@0 2920
michael@0 2921 done
michael@0 2922 IFS=$as_save_IFS
michael@0 2923
michael@0 2924 rm -rf conftest.one conftest.two conftest.dir
michael@0 2925
michael@0 2926 fi
michael@0 2927 if test "${ac_cv_path_install+set}" = set; then
michael@0 2928 INSTALL=$ac_cv_path_install
michael@0 2929 else
michael@0 2930 # As a last resort, use the slow shell script. Don't cache a
michael@0 2931 # value for INSTALL within a source directory, because that will
michael@0 2932 # break other packages using the cache if that directory is
michael@0 2933 # removed, or if the value is a relative name.
michael@0 2934 INSTALL=$ac_install_sh
michael@0 2935 fi
michael@0 2936 fi
michael@0 2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
michael@0 2938 $as_echo "$INSTALL" >&6; }
michael@0 2939
michael@0 2940 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
michael@0 2941 # It thinks the first close brace ends the variable substitution.
michael@0 2942 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
michael@0 2943
michael@0 2944 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
michael@0 2945
michael@0 2946 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
michael@0 2947
michael@0 2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
michael@0 2949 $as_echo_n "checking whether build environment is sane... " >&6; }
michael@0 2950 # Just in case
michael@0 2951 sleep 1
michael@0 2952 echo timestamp > conftest.file
michael@0 2953 # Reject unsafe characters in $srcdir or the absolute working directory
michael@0 2954 # name. Accept space and tab only in the latter.
michael@0 2955 am_lf='
michael@0 2956 '
michael@0 2957 case `pwd` in
michael@0 2958 *[\\\"\#\$\&\'\`$am_lf]*)
michael@0 2959 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
michael@0 2960 esac
michael@0 2961 case $srcdir in
michael@0 2962 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
michael@0 2963 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
michael@0 2964 esac
michael@0 2965
michael@0 2966 # Do `set' in a subshell so we don't clobber the current shell's
michael@0 2967 # arguments. Must try -L first in case configure is actually a
michael@0 2968 # symlink; some systems play weird games with the mod time of symlinks
michael@0 2969 # (eg FreeBSD returns the mod time of the symlink's containing
michael@0 2970 # directory).
michael@0 2971 if (
michael@0 2972 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
michael@0 2973 if test "$*" = "X"; then
michael@0 2974 # -L didn't work.
michael@0 2975 set X `ls -t "$srcdir/configure" conftest.file`
michael@0 2976 fi
michael@0 2977 rm -f conftest.file
michael@0 2978 if test "$*" != "X $srcdir/configure conftest.file" \
michael@0 2979 && test "$*" != "X conftest.file $srcdir/configure"; then
michael@0 2980
michael@0 2981 # If neither matched, then we have a broken ls. This can happen
michael@0 2982 # if, for instance, CONFIG_SHELL is bash and it inherits a
michael@0 2983 # broken ls alias from the environment. This has actually
michael@0 2984 # happened. Such a system could not be considered "sane".
michael@0 2985 as_fn_error "ls -t appears to fail. Make sure there is not a broken
michael@0 2986 alias in your environment" "$LINENO" 5
michael@0 2987 fi
michael@0 2988
michael@0 2989 test "$2" = conftest.file
michael@0 2990 )
michael@0 2991 then
michael@0 2992 # Ok.
michael@0 2993 :
michael@0 2994 else
michael@0 2995 as_fn_error "newly created file is older than distributed files!
michael@0 2996 Check your system clock" "$LINENO" 5
michael@0 2997 fi
michael@0 2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
michael@0 2999 $as_echo "yes" >&6; }
michael@0 3000 test "$program_prefix" != NONE &&
michael@0 3001 program_transform_name="s&^&$program_prefix&;$program_transform_name"
michael@0 3002 # Use a double $ so make ignores it.
michael@0 3003 test "$program_suffix" != NONE &&
michael@0 3004 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
michael@0 3005 # Double any \ or $.
michael@0 3006 # By default was `s,x,x', remove it if useless.
michael@0 3007 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
michael@0 3008 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
michael@0 3009
michael@0 3010 # expand $ac_aux_dir to an absolute path
michael@0 3011 am_aux_dir=`cd $ac_aux_dir && pwd`
michael@0 3012
michael@0 3013 if test x"${MISSING+set}" != xset; then
michael@0 3014 case $am_aux_dir in
michael@0 3015 *\ * | *\ *)
michael@0 3016 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
michael@0 3017 *)
michael@0 3018 MISSING="\${SHELL} $am_aux_dir/missing" ;;
michael@0 3019 esac
michael@0 3020 fi
michael@0 3021 # Use eval to expand $SHELL
michael@0 3022 if eval "$MISSING --run true"; then
michael@0 3023 am_missing_run="$MISSING --run "
michael@0 3024 else
michael@0 3025 am_missing_run=
michael@0 3026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
michael@0 3027 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
michael@0 3028 fi
michael@0 3029
michael@0 3030 if test x"${install_sh}" != xset; then
michael@0 3031 case $am_aux_dir in
michael@0 3032 *\ * | *\ *)
michael@0 3033 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
michael@0 3034 *)
michael@0 3035 install_sh="\${SHELL} $am_aux_dir/install-sh"
michael@0 3036 esac
michael@0 3037 fi
michael@0 3038
michael@0 3039 # Installed binaries are usually stripped using `strip' when the user
michael@0 3040 # run `make install-strip'. However `strip' might not be the right
michael@0 3041 # tool to use in cross-compilation environments, therefore Automake
michael@0 3042 # will honor the `STRIP' environment variable to overrule this program.
michael@0 3043 if test "$cross_compiling" != no; then
michael@0 3044 if test -n "$ac_tool_prefix"; then
michael@0 3045 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
michael@0 3046 set dummy ${ac_tool_prefix}strip; ac_word=$2
michael@0 3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 3048 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 3049 if test "${ac_cv_prog_STRIP+set}" = set; then :
michael@0 3050 $as_echo_n "(cached) " >&6
michael@0 3051 else
michael@0 3052 if test -n "$STRIP"; then
michael@0 3053 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
michael@0 3054 else
michael@0 3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 3056 for as_dir in $PATH
michael@0 3057 do
michael@0 3058 IFS=$as_save_IFS
michael@0 3059 test -z "$as_dir" && as_dir=.
michael@0 3060 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 3061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 3062 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
michael@0 3063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 3064 break 2
michael@0 3065 fi
michael@0 3066 done
michael@0 3067 done
michael@0 3068 IFS=$as_save_IFS
michael@0 3069
michael@0 3070 fi
michael@0 3071 fi
michael@0 3072 STRIP=$ac_cv_prog_STRIP
michael@0 3073 if test -n "$STRIP"; then
michael@0 3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
michael@0 3075 $as_echo "$STRIP" >&6; }
michael@0 3076 else
michael@0 3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 3078 $as_echo "no" >&6; }
michael@0 3079 fi
michael@0 3080
michael@0 3081
michael@0 3082 fi
michael@0 3083 if test -z "$ac_cv_prog_STRIP"; then
michael@0 3084 ac_ct_STRIP=$STRIP
michael@0 3085 # Extract the first word of "strip", so it can be a program name with args.
michael@0 3086 set dummy strip; ac_word=$2
michael@0 3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 3088 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 3089 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
michael@0 3090 $as_echo_n "(cached) " >&6
michael@0 3091 else
michael@0 3092 if test -n "$ac_ct_STRIP"; then
michael@0 3093 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
michael@0 3094 else
michael@0 3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 3096 for as_dir in $PATH
michael@0 3097 do
michael@0 3098 IFS=$as_save_IFS
michael@0 3099 test -z "$as_dir" && as_dir=.
michael@0 3100 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 3101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 3102 ac_cv_prog_ac_ct_STRIP="strip"
michael@0 3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 3104 break 2
michael@0 3105 fi
michael@0 3106 done
michael@0 3107 done
michael@0 3108 IFS=$as_save_IFS
michael@0 3109
michael@0 3110 fi
michael@0 3111 fi
michael@0 3112 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
michael@0 3113 if test -n "$ac_ct_STRIP"; then
michael@0 3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
michael@0 3115 $as_echo "$ac_ct_STRIP" >&6; }
michael@0 3116 else
michael@0 3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 3118 $as_echo "no" >&6; }
michael@0 3119 fi
michael@0 3120
michael@0 3121 if test "x$ac_ct_STRIP" = x; then
michael@0 3122 STRIP=":"
michael@0 3123 else
michael@0 3124 case $cross_compiling:$ac_tool_warned in
michael@0 3125 yes:)
michael@0 3126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
michael@0 3127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
michael@0 3128 ac_tool_warned=yes ;;
michael@0 3129 esac
michael@0 3130 STRIP=$ac_ct_STRIP
michael@0 3131 fi
michael@0 3132 else
michael@0 3133 STRIP="$ac_cv_prog_STRIP"
michael@0 3134 fi
michael@0 3135
michael@0 3136 fi
michael@0 3137 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
michael@0 3138
michael@0 3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
michael@0 3140 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
michael@0 3141 if test -z "$MKDIR_P"; then
michael@0 3142 if test "${ac_cv_path_mkdir+set}" = set; then :
michael@0 3143 $as_echo_n "(cached) " >&6
michael@0 3144 else
michael@0 3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 3146 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
michael@0 3147 do
michael@0 3148 IFS=$as_save_IFS
michael@0 3149 test -z "$as_dir" && as_dir=.
michael@0 3150 for ac_prog in mkdir gmkdir; do
michael@0 3151 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 3152 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
michael@0 3153 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
michael@0 3154 'mkdir (GNU coreutils) '* | \
michael@0 3155 'mkdir (coreutils) '* | \
michael@0 3156 'mkdir (fileutils) '4.1*)
michael@0 3157 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
michael@0 3158 break 3;;
michael@0 3159 esac
michael@0 3160 done
michael@0 3161 done
michael@0 3162 done
michael@0 3163 IFS=$as_save_IFS
michael@0 3164
michael@0 3165 fi
michael@0 3166
michael@0 3167 test -d ./--version && rmdir ./--version
michael@0 3168 if test "${ac_cv_path_mkdir+set}" = set; then
michael@0 3169 MKDIR_P="$ac_cv_path_mkdir -p"
michael@0 3170 else
michael@0 3171 # As a last resort, use the slow shell script. Don't cache a
michael@0 3172 # value for MKDIR_P within a source directory, because that will
michael@0 3173 # break other packages using the cache if that directory is
michael@0 3174 # removed, or if the value is a relative name.
michael@0 3175 MKDIR_P="$ac_install_sh -d"
michael@0 3176 fi
michael@0 3177 fi
michael@0 3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
michael@0 3179 $as_echo "$MKDIR_P" >&6; }
michael@0 3180
michael@0 3181 mkdir_p="$MKDIR_P"
michael@0 3182 case $mkdir_p in
michael@0 3183 [\\/$]* | ?:[\\/]*) ;;
michael@0 3184 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
michael@0 3185 esac
michael@0 3186
michael@0 3187 for ac_prog in gawk mawk nawk awk
michael@0 3188 do
michael@0 3189 # Extract the first word of "$ac_prog", so it can be a program name with args.
michael@0 3190 set dummy $ac_prog; ac_word=$2
michael@0 3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 3192 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 3193 if test "${ac_cv_prog_AWK+set}" = set; then :
michael@0 3194 $as_echo_n "(cached) " >&6
michael@0 3195 else
michael@0 3196 if test -n "$AWK"; then
michael@0 3197 ac_cv_prog_AWK="$AWK" # Let the user override the test.
michael@0 3198 else
michael@0 3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 3200 for as_dir in $PATH
michael@0 3201 do
michael@0 3202 IFS=$as_save_IFS
michael@0 3203 test -z "$as_dir" && as_dir=.
michael@0 3204 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 3205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 3206 ac_cv_prog_AWK="$ac_prog"
michael@0 3207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 3208 break 2
michael@0 3209 fi
michael@0 3210 done
michael@0 3211 done
michael@0 3212 IFS=$as_save_IFS
michael@0 3213
michael@0 3214 fi
michael@0 3215 fi
michael@0 3216 AWK=$ac_cv_prog_AWK
michael@0 3217 if test -n "$AWK"; then
michael@0 3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
michael@0 3219 $as_echo "$AWK" >&6; }
michael@0 3220 else
michael@0 3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 3222 $as_echo "no" >&6; }
michael@0 3223 fi
michael@0 3224
michael@0 3225
michael@0 3226 test -n "$AWK" && break
michael@0 3227 done
michael@0 3228
michael@0 3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
michael@0 3230 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
michael@0 3231 set x ${MAKE-make}
michael@0 3232 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
michael@0 3233 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
michael@0 3234 $as_echo_n "(cached) " >&6
michael@0 3235 else
michael@0 3236 cat >conftest.make <<\_ACEOF
michael@0 3237 SHELL = /bin/sh
michael@0 3238 all:
michael@0 3239 @echo '@@@%%%=$(MAKE)=@@@%%%'
michael@0 3240 _ACEOF
michael@0 3241 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
michael@0 3242 case `${MAKE-make} -f conftest.make 2>/dev/null` in
michael@0 3243 *@@@%%%=?*=@@@%%%*)
michael@0 3244 eval ac_cv_prog_make_${ac_make}_set=yes;;
michael@0 3245 *)
michael@0 3246 eval ac_cv_prog_make_${ac_make}_set=no;;
michael@0 3247 esac
michael@0 3248 rm -f conftest.make
michael@0 3249 fi
michael@0 3250 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
michael@0 3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
michael@0 3252 $as_echo "yes" >&6; }
michael@0 3253 SET_MAKE=
michael@0 3254 else
michael@0 3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 3256 $as_echo "no" >&6; }
michael@0 3257 SET_MAKE="MAKE=${MAKE-make}"
michael@0 3258 fi
michael@0 3259
michael@0 3260 rm -rf .tst 2>/dev/null
michael@0 3261 mkdir .tst 2>/dev/null
michael@0 3262 if test -d .tst; then
michael@0 3263 am__leading_dot=.
michael@0 3264 else
michael@0 3265 am__leading_dot=_
michael@0 3266 fi
michael@0 3267 rmdir .tst 2>/dev/null
michael@0 3268
michael@0 3269 if test "`cd $srcdir && pwd`" != "`pwd`"; then
michael@0 3270 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
michael@0 3271 # is not polluted with repeated "-I."
michael@0 3272 am__isrc=' -I$(srcdir)'
michael@0 3273 # test to see if srcdir already configured
michael@0 3274 if test -f $srcdir/config.status; then
michael@0 3275 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
michael@0 3276 fi
michael@0 3277 fi
michael@0 3278
michael@0 3279 # test whether we have cygpath
michael@0 3280 if test -z "$CYGPATH_W"; then
michael@0 3281 if (cygpath --version) >/dev/null 2>/dev/null; then
michael@0 3282 CYGPATH_W='cygpath -w'
michael@0 3283 else
michael@0 3284 CYGPATH_W=echo
michael@0 3285 fi
michael@0 3286 fi
michael@0 3287
michael@0 3288
michael@0 3289 # Define the identity of the package.
michael@0 3290 PACKAGE='glog'
michael@0 3291 VERSION='0.3.1'
michael@0 3292
michael@0 3293
michael@0 3294 cat >>confdefs.h <<_ACEOF
michael@0 3295 #define PACKAGE "$PACKAGE"
michael@0 3296 _ACEOF
michael@0 3297
michael@0 3298
michael@0 3299 cat >>confdefs.h <<_ACEOF
michael@0 3300 #define VERSION "$VERSION"
michael@0 3301 _ACEOF
michael@0 3302
michael@0 3303 # Some tools Automake needs.
michael@0 3304
michael@0 3305 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
michael@0 3306
michael@0 3307
michael@0 3308 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
michael@0 3309
michael@0 3310
michael@0 3311 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
michael@0 3312
michael@0 3313
michael@0 3314 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
michael@0 3315
michael@0 3316
michael@0 3317 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
michael@0 3318
michael@0 3319 # We need awk for the "check" target. The system "awk" is bad on
michael@0 3320 # some platforms.
michael@0 3321 # Always define AMTAR for backward compatibility.
michael@0 3322
michael@0 3323 AMTAR=${AMTAR-"${am_missing_run}tar"}
michael@0 3324
michael@0 3325 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
michael@0 3326
michael@0 3327
michael@0 3328
michael@0 3329
michael@0 3330
michael@0 3331 ac_config_headers="$ac_config_headers src/config.h"
michael@0 3332
michael@0 3333
michael@0 3334 ac_ext=cpp
michael@0 3335 ac_cpp='$CXXCPP $CPPFLAGS'
michael@0 3336 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
michael@0 3337 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
michael@0 3338 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
michael@0 3339
michael@0 3340
michael@0 3341 # Checks for programs.
michael@0 3342 ac_ext=c
michael@0 3343 ac_cpp='$CPP $CPPFLAGS'
michael@0 3344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
michael@0 3345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
michael@0 3346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
michael@0 3347 if test -n "$ac_tool_prefix"; then
michael@0 3348 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
michael@0 3349 set dummy ${ac_tool_prefix}gcc; ac_word=$2
michael@0 3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 3351 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 3352 if test "${ac_cv_prog_CC+set}" = set; then :
michael@0 3353 $as_echo_n "(cached) " >&6
michael@0 3354 else
michael@0 3355 if test -n "$CC"; then
michael@0 3356 ac_cv_prog_CC="$CC" # Let the user override the test.
michael@0 3357 else
michael@0 3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 3359 for as_dir in $PATH
michael@0 3360 do
michael@0 3361 IFS=$as_save_IFS
michael@0 3362 test -z "$as_dir" && as_dir=.
michael@0 3363 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 3364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 3365 ac_cv_prog_CC="${ac_tool_prefix}gcc"
michael@0 3366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 3367 break 2
michael@0 3368 fi
michael@0 3369 done
michael@0 3370 done
michael@0 3371 IFS=$as_save_IFS
michael@0 3372
michael@0 3373 fi
michael@0 3374 fi
michael@0 3375 CC=$ac_cv_prog_CC
michael@0 3376 if test -n "$CC"; then
michael@0 3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
michael@0 3378 $as_echo "$CC" >&6; }
michael@0 3379 else
michael@0 3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 3381 $as_echo "no" >&6; }
michael@0 3382 fi
michael@0 3383
michael@0 3384
michael@0 3385 fi
michael@0 3386 if test -z "$ac_cv_prog_CC"; then
michael@0 3387 ac_ct_CC=$CC
michael@0 3388 # Extract the first word of "gcc", so it can be a program name with args.
michael@0 3389 set dummy gcc; ac_word=$2
michael@0 3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 3391 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 3392 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
michael@0 3393 $as_echo_n "(cached) " >&6
michael@0 3394 else
michael@0 3395 if test -n "$ac_ct_CC"; then
michael@0 3396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
michael@0 3397 else
michael@0 3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 3399 for as_dir in $PATH
michael@0 3400 do
michael@0 3401 IFS=$as_save_IFS
michael@0 3402 test -z "$as_dir" && as_dir=.
michael@0 3403 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 3404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 3405 ac_cv_prog_ac_ct_CC="gcc"
michael@0 3406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 3407 break 2
michael@0 3408 fi
michael@0 3409 done
michael@0 3410 done
michael@0 3411 IFS=$as_save_IFS
michael@0 3412
michael@0 3413 fi
michael@0 3414 fi
michael@0 3415 ac_ct_CC=$ac_cv_prog_ac_ct_CC
michael@0 3416 if test -n "$ac_ct_CC"; then
michael@0 3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
michael@0 3418 $as_echo "$ac_ct_CC" >&6; }
michael@0 3419 else
michael@0 3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 3421 $as_echo "no" >&6; }
michael@0 3422 fi
michael@0 3423
michael@0 3424 if test "x$ac_ct_CC" = x; then
michael@0 3425 CC=""
michael@0 3426 else
michael@0 3427 case $cross_compiling:$ac_tool_warned in
michael@0 3428 yes:)
michael@0 3429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
michael@0 3430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
michael@0 3431 ac_tool_warned=yes ;;
michael@0 3432 esac
michael@0 3433 CC=$ac_ct_CC
michael@0 3434 fi
michael@0 3435 else
michael@0 3436 CC="$ac_cv_prog_CC"
michael@0 3437 fi
michael@0 3438
michael@0 3439 if test -z "$CC"; then
michael@0 3440 if test -n "$ac_tool_prefix"; then
michael@0 3441 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
michael@0 3442 set dummy ${ac_tool_prefix}cc; ac_word=$2
michael@0 3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 3444 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 3445 if test "${ac_cv_prog_CC+set}" = set; then :
michael@0 3446 $as_echo_n "(cached) " >&6
michael@0 3447 else
michael@0 3448 if test -n "$CC"; then
michael@0 3449 ac_cv_prog_CC="$CC" # Let the user override the test.
michael@0 3450 else
michael@0 3451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 3452 for as_dir in $PATH
michael@0 3453 do
michael@0 3454 IFS=$as_save_IFS
michael@0 3455 test -z "$as_dir" && as_dir=.
michael@0 3456 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 3457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 3458 ac_cv_prog_CC="${ac_tool_prefix}cc"
michael@0 3459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 3460 break 2
michael@0 3461 fi
michael@0 3462 done
michael@0 3463 done
michael@0 3464 IFS=$as_save_IFS
michael@0 3465
michael@0 3466 fi
michael@0 3467 fi
michael@0 3468 CC=$ac_cv_prog_CC
michael@0 3469 if test -n "$CC"; then
michael@0 3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
michael@0 3471 $as_echo "$CC" >&6; }
michael@0 3472 else
michael@0 3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 3474 $as_echo "no" >&6; }
michael@0 3475 fi
michael@0 3476
michael@0 3477
michael@0 3478 fi
michael@0 3479 fi
michael@0 3480 if test -z "$CC"; then
michael@0 3481 # Extract the first word of "cc", so it can be a program name with args.
michael@0 3482 set dummy cc; ac_word=$2
michael@0 3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 3484 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 3485 if test "${ac_cv_prog_CC+set}" = set; then :
michael@0 3486 $as_echo_n "(cached) " >&6
michael@0 3487 else
michael@0 3488 if test -n "$CC"; then
michael@0 3489 ac_cv_prog_CC="$CC" # Let the user override the test.
michael@0 3490 else
michael@0 3491 ac_prog_rejected=no
michael@0 3492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 3493 for as_dir in $PATH
michael@0 3494 do
michael@0 3495 IFS=$as_save_IFS
michael@0 3496 test -z "$as_dir" && as_dir=.
michael@0 3497 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 3498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 3499 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
michael@0 3500 ac_prog_rejected=yes
michael@0 3501 continue
michael@0 3502 fi
michael@0 3503 ac_cv_prog_CC="cc"
michael@0 3504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 3505 break 2
michael@0 3506 fi
michael@0 3507 done
michael@0 3508 done
michael@0 3509 IFS=$as_save_IFS
michael@0 3510
michael@0 3511 if test $ac_prog_rejected = yes; then
michael@0 3512 # We found a bogon in the path, so make sure we never use it.
michael@0 3513 set dummy $ac_cv_prog_CC
michael@0 3514 shift
michael@0 3515 if test $# != 0; then
michael@0 3516 # We chose a different compiler from the bogus one.
michael@0 3517 # However, it has the same basename, so the bogon will be chosen
michael@0 3518 # first if we set CC to just the basename; use the full file name.
michael@0 3519 shift
michael@0 3520 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
michael@0 3521 fi
michael@0 3522 fi
michael@0 3523 fi
michael@0 3524 fi
michael@0 3525 CC=$ac_cv_prog_CC
michael@0 3526 if test -n "$CC"; then
michael@0 3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
michael@0 3528 $as_echo "$CC" >&6; }
michael@0 3529 else
michael@0 3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 3531 $as_echo "no" >&6; }
michael@0 3532 fi
michael@0 3533
michael@0 3534
michael@0 3535 fi
michael@0 3536 if test -z "$CC"; then
michael@0 3537 if test -n "$ac_tool_prefix"; then
michael@0 3538 for ac_prog in cl.exe
michael@0 3539 do
michael@0 3540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
michael@0 3541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
michael@0 3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 3543 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 3544 if test "${ac_cv_prog_CC+set}" = set; then :
michael@0 3545 $as_echo_n "(cached) " >&6
michael@0 3546 else
michael@0 3547 if test -n "$CC"; then
michael@0 3548 ac_cv_prog_CC="$CC" # Let the user override the test.
michael@0 3549 else
michael@0 3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 3551 for as_dir in $PATH
michael@0 3552 do
michael@0 3553 IFS=$as_save_IFS
michael@0 3554 test -z "$as_dir" && as_dir=.
michael@0 3555 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 3556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 3557 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
michael@0 3558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 3559 break 2
michael@0 3560 fi
michael@0 3561 done
michael@0 3562 done
michael@0 3563 IFS=$as_save_IFS
michael@0 3564
michael@0 3565 fi
michael@0 3566 fi
michael@0 3567 CC=$ac_cv_prog_CC
michael@0 3568 if test -n "$CC"; then
michael@0 3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
michael@0 3570 $as_echo "$CC" >&6; }
michael@0 3571 else
michael@0 3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 3573 $as_echo "no" >&6; }
michael@0 3574 fi
michael@0 3575
michael@0 3576
michael@0 3577 test -n "$CC" && break
michael@0 3578 done
michael@0 3579 fi
michael@0 3580 if test -z "$CC"; then
michael@0 3581 ac_ct_CC=$CC
michael@0 3582 for ac_prog in cl.exe
michael@0 3583 do
michael@0 3584 # Extract the first word of "$ac_prog", so it can be a program name with args.
michael@0 3585 set dummy $ac_prog; ac_word=$2
michael@0 3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 3587 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 3588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
michael@0 3589 $as_echo_n "(cached) " >&6
michael@0 3590 else
michael@0 3591 if test -n "$ac_ct_CC"; then
michael@0 3592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
michael@0 3593 else
michael@0 3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 3595 for as_dir in $PATH
michael@0 3596 do
michael@0 3597 IFS=$as_save_IFS
michael@0 3598 test -z "$as_dir" && as_dir=.
michael@0 3599 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 3600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 3601 ac_cv_prog_ac_ct_CC="$ac_prog"
michael@0 3602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 3603 break 2
michael@0 3604 fi
michael@0 3605 done
michael@0 3606 done
michael@0 3607 IFS=$as_save_IFS
michael@0 3608
michael@0 3609 fi
michael@0 3610 fi
michael@0 3611 ac_ct_CC=$ac_cv_prog_ac_ct_CC
michael@0 3612 if test -n "$ac_ct_CC"; then
michael@0 3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
michael@0 3614 $as_echo "$ac_ct_CC" >&6; }
michael@0 3615 else
michael@0 3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 3617 $as_echo "no" >&6; }
michael@0 3618 fi
michael@0 3619
michael@0 3620
michael@0 3621 test -n "$ac_ct_CC" && break
michael@0 3622 done
michael@0 3623
michael@0 3624 if test "x$ac_ct_CC" = x; then
michael@0 3625 CC=""
michael@0 3626 else
michael@0 3627 case $cross_compiling:$ac_tool_warned in
michael@0 3628 yes:)
michael@0 3629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
michael@0 3630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
michael@0 3631 ac_tool_warned=yes ;;
michael@0 3632 esac
michael@0 3633 CC=$ac_ct_CC
michael@0 3634 fi
michael@0 3635 fi
michael@0 3636
michael@0 3637 fi
michael@0 3638
michael@0 3639
michael@0 3640 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
michael@0 3641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
michael@0 3642 as_fn_error "no acceptable C compiler found in \$PATH
michael@0 3643 See \`config.log' for more details." "$LINENO" 5; }
michael@0 3644
michael@0 3645 # Provide some information about the compiler.
michael@0 3646 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
michael@0 3647 set X $ac_compile
michael@0 3648 ac_compiler=$2
michael@0 3649 for ac_option in --version -v -V -qversion; do
michael@0 3650 { { ac_try="$ac_compiler $ac_option >&5"
michael@0 3651 case "(($ac_try" in
michael@0 3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
michael@0 3653 *) ac_try_echo=$ac_try;;
michael@0 3654 esac
michael@0 3655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
michael@0 3656 $as_echo "$ac_try_echo"; } >&5
michael@0 3657 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
michael@0 3658 ac_status=$?
michael@0 3659 if test -s conftest.err; then
michael@0 3660 sed '10a\
michael@0 3661 ... rest of stderr output deleted ...
michael@0 3662 10q' conftest.err >conftest.er1
michael@0 3663 cat conftest.er1 >&5
michael@0 3664 fi
michael@0 3665 rm -f conftest.er1 conftest.err
michael@0 3666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 3667 test $ac_status = 0; }
michael@0 3668 done
michael@0 3669
michael@0 3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 3671 /* end confdefs.h. */
michael@0 3672
michael@0 3673 int
michael@0 3674 main ()
michael@0 3675 {
michael@0 3676
michael@0 3677 ;
michael@0 3678 return 0;
michael@0 3679 }
michael@0 3680 _ACEOF
michael@0 3681 ac_clean_files_save=$ac_clean_files
michael@0 3682 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
michael@0 3683 # Try to create an executable without -o first, disregard a.out.
michael@0 3684 # It will help us diagnose broken compilers, and finding out an intuition
michael@0 3685 # of exeext.
michael@0 3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
michael@0 3687 $as_echo_n "checking whether the C compiler works... " >&6; }
michael@0 3688 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
michael@0 3689
michael@0 3690 # The possible output files:
michael@0 3691 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
michael@0 3692
michael@0 3693 ac_rmfiles=
michael@0 3694 for ac_file in $ac_files
michael@0 3695 do
michael@0 3696 case $ac_file in
michael@0 3697 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
michael@0 3698 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
michael@0 3699 esac
michael@0 3700 done
michael@0 3701 rm -f $ac_rmfiles
michael@0 3702
michael@0 3703 if { { ac_try="$ac_link_default"
michael@0 3704 case "(($ac_try" in
michael@0 3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
michael@0 3706 *) ac_try_echo=$ac_try;;
michael@0 3707 esac
michael@0 3708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
michael@0 3709 $as_echo "$ac_try_echo"; } >&5
michael@0 3710 (eval "$ac_link_default") 2>&5
michael@0 3711 ac_status=$?
michael@0 3712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 3713 test $ac_status = 0; }; then :
michael@0 3714 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
michael@0 3715 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
michael@0 3716 # in a Makefile. We should not override ac_cv_exeext if it was cached,
michael@0 3717 # so that the user can short-circuit this test for compilers unknown to
michael@0 3718 # Autoconf.
michael@0 3719 for ac_file in $ac_files ''
michael@0 3720 do
michael@0 3721 test -f "$ac_file" || continue
michael@0 3722 case $ac_file in
michael@0 3723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
michael@0 3724 ;;
michael@0 3725 [ab].out )
michael@0 3726 # We found the default executable, but exeext='' is most
michael@0 3727 # certainly right.
michael@0 3728 break;;
michael@0 3729 *.* )
michael@0 3730 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
michael@0 3731 then :; else
michael@0 3732 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
michael@0 3733 fi
michael@0 3734 # We set ac_cv_exeext here because the later test for it is not
michael@0 3735 # safe: cross compilers may not add the suffix if given an `-o'
michael@0 3736 # argument, so we may need to know it at that point already.
michael@0 3737 # Even if this section looks crufty: it has the advantage of
michael@0 3738 # actually working.
michael@0 3739 break;;
michael@0 3740 * )
michael@0 3741 break;;
michael@0 3742 esac
michael@0 3743 done
michael@0 3744 test "$ac_cv_exeext" = no && ac_cv_exeext=
michael@0 3745
michael@0 3746 else
michael@0 3747 ac_file=''
michael@0 3748 fi
michael@0 3749 if test -z "$ac_file"; then :
michael@0 3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 3751 $as_echo "no" >&6; }
michael@0 3752 $as_echo "$as_me: failed program was:" >&5
michael@0 3753 sed 's/^/| /' conftest.$ac_ext >&5
michael@0 3754
michael@0 3755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
michael@0 3756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
michael@0 3757 { as_fn_set_status 77
michael@0 3758 as_fn_error "C compiler cannot create executables
michael@0 3759 See \`config.log' for more details." "$LINENO" 5; }; }
michael@0 3760 else
michael@0 3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
michael@0 3762 $as_echo "yes" >&6; }
michael@0 3763 fi
michael@0 3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
michael@0 3765 $as_echo_n "checking for C compiler default output file name... " >&6; }
michael@0 3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
michael@0 3767 $as_echo "$ac_file" >&6; }
michael@0 3768 ac_exeext=$ac_cv_exeext
michael@0 3769
michael@0 3770 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
michael@0 3771 ac_clean_files=$ac_clean_files_save
michael@0 3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
michael@0 3773 $as_echo_n "checking for suffix of executables... " >&6; }
michael@0 3774 if { { ac_try="$ac_link"
michael@0 3775 case "(($ac_try" in
michael@0 3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
michael@0 3777 *) ac_try_echo=$ac_try;;
michael@0 3778 esac
michael@0 3779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
michael@0 3780 $as_echo "$ac_try_echo"; } >&5
michael@0 3781 (eval "$ac_link") 2>&5
michael@0 3782 ac_status=$?
michael@0 3783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 3784 test $ac_status = 0; }; then :
michael@0 3785 # If both `conftest.exe' and `conftest' are `present' (well, observable)
michael@0 3786 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
michael@0 3787 # work properly (i.e., refer to `conftest.exe'), while it won't with
michael@0 3788 # `rm'.
michael@0 3789 for ac_file in conftest.exe conftest conftest.*; do
michael@0 3790 test -f "$ac_file" || continue
michael@0 3791 case $ac_file in
michael@0 3792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
michael@0 3793 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
michael@0 3794 break;;
michael@0 3795 * ) break;;
michael@0 3796 esac
michael@0 3797 done
michael@0 3798 else
michael@0 3799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
michael@0 3800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
michael@0 3801 as_fn_error "cannot compute suffix of executables: cannot compile and link
michael@0 3802 See \`config.log' for more details." "$LINENO" 5; }
michael@0 3803 fi
michael@0 3804 rm -f conftest conftest$ac_cv_exeext
michael@0 3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
michael@0 3806 $as_echo "$ac_cv_exeext" >&6; }
michael@0 3807
michael@0 3808 rm -f conftest.$ac_ext
michael@0 3809 EXEEXT=$ac_cv_exeext
michael@0 3810 ac_exeext=$EXEEXT
michael@0 3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 3812 /* end confdefs.h. */
michael@0 3813 #include <stdio.h>
michael@0 3814 int
michael@0 3815 main ()
michael@0 3816 {
michael@0 3817 FILE *f = fopen ("conftest.out", "w");
michael@0 3818 return ferror (f) || fclose (f) != 0;
michael@0 3819
michael@0 3820 ;
michael@0 3821 return 0;
michael@0 3822 }
michael@0 3823 _ACEOF
michael@0 3824 ac_clean_files="$ac_clean_files conftest.out"
michael@0 3825 # Check that the compiler produces executables we can run. If not, either
michael@0 3826 # the compiler is broken, or we cross compile.
michael@0 3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
michael@0 3828 $as_echo_n "checking whether we are cross compiling... " >&6; }
michael@0 3829 if test "$cross_compiling" != yes; then
michael@0 3830 { { ac_try="$ac_link"
michael@0 3831 case "(($ac_try" in
michael@0 3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
michael@0 3833 *) ac_try_echo=$ac_try;;
michael@0 3834 esac
michael@0 3835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
michael@0 3836 $as_echo "$ac_try_echo"; } >&5
michael@0 3837 (eval "$ac_link") 2>&5
michael@0 3838 ac_status=$?
michael@0 3839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 3840 test $ac_status = 0; }
michael@0 3841 if { ac_try='./conftest$ac_cv_exeext'
michael@0 3842 { { case "(($ac_try" in
michael@0 3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
michael@0 3844 *) ac_try_echo=$ac_try;;
michael@0 3845 esac
michael@0 3846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
michael@0 3847 $as_echo "$ac_try_echo"; } >&5
michael@0 3848 (eval "$ac_try") 2>&5
michael@0 3849 ac_status=$?
michael@0 3850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 3851 test $ac_status = 0; }; }; then
michael@0 3852 cross_compiling=no
michael@0 3853 else
michael@0 3854 if test "$cross_compiling" = maybe; then
michael@0 3855 cross_compiling=yes
michael@0 3856 else
michael@0 3857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
michael@0 3858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
michael@0 3859 as_fn_error "cannot run C compiled programs.
michael@0 3860 If you meant to cross compile, use \`--host'.
michael@0 3861 See \`config.log' for more details." "$LINENO" 5; }
michael@0 3862 fi
michael@0 3863 fi
michael@0 3864 fi
michael@0 3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
michael@0 3866 $as_echo "$cross_compiling" >&6; }
michael@0 3867
michael@0 3868 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
michael@0 3869 ac_clean_files=$ac_clean_files_save
michael@0 3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
michael@0 3871 $as_echo_n "checking for suffix of object files... " >&6; }
michael@0 3872 if test "${ac_cv_objext+set}" = set; then :
michael@0 3873 $as_echo_n "(cached) " >&6
michael@0 3874 else
michael@0 3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 3876 /* end confdefs.h. */
michael@0 3877
michael@0 3878 int
michael@0 3879 main ()
michael@0 3880 {
michael@0 3881
michael@0 3882 ;
michael@0 3883 return 0;
michael@0 3884 }
michael@0 3885 _ACEOF
michael@0 3886 rm -f conftest.o conftest.obj
michael@0 3887 if { { ac_try="$ac_compile"
michael@0 3888 case "(($ac_try" in
michael@0 3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
michael@0 3890 *) ac_try_echo=$ac_try;;
michael@0 3891 esac
michael@0 3892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
michael@0 3893 $as_echo "$ac_try_echo"; } >&5
michael@0 3894 (eval "$ac_compile") 2>&5
michael@0 3895 ac_status=$?
michael@0 3896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 3897 test $ac_status = 0; }; then :
michael@0 3898 for ac_file in conftest.o conftest.obj conftest.*; do
michael@0 3899 test -f "$ac_file" || continue;
michael@0 3900 case $ac_file in
michael@0 3901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
michael@0 3902 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
michael@0 3903 break;;
michael@0 3904 esac
michael@0 3905 done
michael@0 3906 else
michael@0 3907 $as_echo "$as_me: failed program was:" >&5
michael@0 3908 sed 's/^/| /' conftest.$ac_ext >&5
michael@0 3909
michael@0 3910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
michael@0 3911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
michael@0 3912 as_fn_error "cannot compute suffix of object files: cannot compile
michael@0 3913 See \`config.log' for more details." "$LINENO" 5; }
michael@0 3914 fi
michael@0 3915 rm -f conftest.$ac_cv_objext conftest.$ac_ext
michael@0 3916 fi
michael@0 3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
michael@0 3918 $as_echo "$ac_cv_objext" >&6; }
michael@0 3919 OBJEXT=$ac_cv_objext
michael@0 3920 ac_objext=$OBJEXT
michael@0 3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
michael@0 3922 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
michael@0 3923 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
michael@0 3924 $as_echo_n "(cached) " >&6
michael@0 3925 else
michael@0 3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 3927 /* end confdefs.h. */
michael@0 3928
michael@0 3929 int
michael@0 3930 main ()
michael@0 3931 {
michael@0 3932 #ifndef __GNUC__
michael@0 3933 choke me
michael@0 3934 #endif
michael@0 3935
michael@0 3936 ;
michael@0 3937 return 0;
michael@0 3938 }
michael@0 3939 _ACEOF
michael@0 3940 if ac_fn_c_try_compile "$LINENO"; then :
michael@0 3941 ac_compiler_gnu=yes
michael@0 3942 else
michael@0 3943 ac_compiler_gnu=no
michael@0 3944 fi
michael@0 3945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 3946 ac_cv_c_compiler_gnu=$ac_compiler_gnu
michael@0 3947
michael@0 3948 fi
michael@0 3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
michael@0 3950 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
michael@0 3951 if test $ac_compiler_gnu = yes; then
michael@0 3952 GCC=yes
michael@0 3953 else
michael@0 3954 GCC=
michael@0 3955 fi
michael@0 3956 ac_test_CFLAGS=${CFLAGS+set}
michael@0 3957 ac_save_CFLAGS=$CFLAGS
michael@0 3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
michael@0 3959 $as_echo_n "checking whether $CC accepts -g... " >&6; }
michael@0 3960 if test "${ac_cv_prog_cc_g+set}" = set; then :
michael@0 3961 $as_echo_n "(cached) " >&6
michael@0 3962 else
michael@0 3963 ac_save_c_werror_flag=$ac_c_werror_flag
michael@0 3964 ac_c_werror_flag=yes
michael@0 3965 ac_cv_prog_cc_g=no
michael@0 3966 CFLAGS="-g"
michael@0 3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 3968 /* end confdefs.h. */
michael@0 3969
michael@0 3970 int
michael@0 3971 main ()
michael@0 3972 {
michael@0 3973
michael@0 3974 ;
michael@0 3975 return 0;
michael@0 3976 }
michael@0 3977 _ACEOF
michael@0 3978 if ac_fn_c_try_compile "$LINENO"; then :
michael@0 3979 ac_cv_prog_cc_g=yes
michael@0 3980 else
michael@0 3981 CFLAGS=""
michael@0 3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 3983 /* end confdefs.h. */
michael@0 3984
michael@0 3985 int
michael@0 3986 main ()
michael@0 3987 {
michael@0 3988
michael@0 3989 ;
michael@0 3990 return 0;
michael@0 3991 }
michael@0 3992 _ACEOF
michael@0 3993 if ac_fn_c_try_compile "$LINENO"; then :
michael@0 3994
michael@0 3995 else
michael@0 3996 ac_c_werror_flag=$ac_save_c_werror_flag
michael@0 3997 CFLAGS="-g"
michael@0 3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 3999 /* end confdefs.h. */
michael@0 4000
michael@0 4001 int
michael@0 4002 main ()
michael@0 4003 {
michael@0 4004
michael@0 4005 ;
michael@0 4006 return 0;
michael@0 4007 }
michael@0 4008 _ACEOF
michael@0 4009 if ac_fn_c_try_compile "$LINENO"; then :
michael@0 4010 ac_cv_prog_cc_g=yes
michael@0 4011 fi
michael@0 4012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 4013 fi
michael@0 4014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 4015 fi
michael@0 4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 4017 ac_c_werror_flag=$ac_save_c_werror_flag
michael@0 4018 fi
michael@0 4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
michael@0 4020 $as_echo "$ac_cv_prog_cc_g" >&6; }
michael@0 4021 if test "$ac_test_CFLAGS" = set; then
michael@0 4022 CFLAGS=$ac_save_CFLAGS
michael@0 4023 elif test $ac_cv_prog_cc_g = yes; then
michael@0 4024 if test "$GCC" = yes; then
michael@0 4025 CFLAGS="-g -O2"
michael@0 4026 else
michael@0 4027 CFLAGS="-g"
michael@0 4028 fi
michael@0 4029 else
michael@0 4030 if test "$GCC" = yes; then
michael@0 4031 CFLAGS="-O2"
michael@0 4032 else
michael@0 4033 CFLAGS=
michael@0 4034 fi
michael@0 4035 fi
michael@0 4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
michael@0 4037 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
michael@0 4038 if test "${ac_cv_prog_cc_c89+set}" = set; then :
michael@0 4039 $as_echo_n "(cached) " >&6
michael@0 4040 else
michael@0 4041 ac_cv_prog_cc_c89=no
michael@0 4042 ac_save_CC=$CC
michael@0 4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 4044 /* end confdefs.h. */
michael@0 4045 #include <stdarg.h>
michael@0 4046 #include <stdio.h>
michael@0 4047 #include <sys/types.h>
michael@0 4048 #include <sys/stat.h>
michael@0 4049 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
michael@0 4050 struct buf { int x; };
michael@0 4051 FILE * (*rcsopen) (struct buf *, struct stat *, int);
michael@0 4052 static char *e (p, i)
michael@0 4053 char **p;
michael@0 4054 int i;
michael@0 4055 {
michael@0 4056 return p[i];
michael@0 4057 }
michael@0 4058 static char *f (char * (*g) (char **, int), char **p, ...)
michael@0 4059 {
michael@0 4060 char *s;
michael@0 4061 va_list v;
michael@0 4062 va_start (v,p);
michael@0 4063 s = g (p, va_arg (v,int));
michael@0 4064 va_end (v);
michael@0 4065 return s;
michael@0 4066 }
michael@0 4067
michael@0 4068 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
michael@0 4069 function prototypes and stuff, but not '\xHH' hex character constants.
michael@0 4070 These don't provoke an error unfortunately, instead are silently treated
michael@0 4071 as 'x'. The following induces an error, until -std is added to get
michael@0 4072 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
michael@0 4073 array size at least. It's necessary to write '\x00'==0 to get something
michael@0 4074 that's true only with -std. */
michael@0 4075 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
michael@0 4076
michael@0 4077 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
michael@0 4078 inside strings and character constants. */
michael@0 4079 #define FOO(x) 'x'
michael@0 4080 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
michael@0 4081
michael@0 4082 int test (int i, double x);
michael@0 4083 struct s1 {int (*f) (int a);};
michael@0 4084 struct s2 {int (*f) (double a);};
michael@0 4085 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
michael@0 4086 int argc;
michael@0 4087 char **argv;
michael@0 4088 int
michael@0 4089 main ()
michael@0 4090 {
michael@0 4091 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
michael@0 4092 ;
michael@0 4093 return 0;
michael@0 4094 }
michael@0 4095 _ACEOF
michael@0 4096 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
michael@0 4097 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
michael@0 4098 do
michael@0 4099 CC="$ac_save_CC $ac_arg"
michael@0 4100 if ac_fn_c_try_compile "$LINENO"; then :
michael@0 4101 ac_cv_prog_cc_c89=$ac_arg
michael@0 4102 fi
michael@0 4103 rm -f core conftest.err conftest.$ac_objext
michael@0 4104 test "x$ac_cv_prog_cc_c89" != "xno" && break
michael@0 4105 done
michael@0 4106 rm -f conftest.$ac_ext
michael@0 4107 CC=$ac_save_CC
michael@0 4108
michael@0 4109 fi
michael@0 4110 # AC_CACHE_VAL
michael@0 4111 case "x$ac_cv_prog_cc_c89" in
michael@0 4112 x)
michael@0 4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
michael@0 4114 $as_echo "none needed" >&6; } ;;
michael@0 4115 xno)
michael@0 4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
michael@0 4117 $as_echo "unsupported" >&6; } ;;
michael@0 4118 *)
michael@0 4119 CC="$CC $ac_cv_prog_cc_c89"
michael@0 4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
michael@0 4121 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
michael@0 4122 esac
michael@0 4123 if test "x$ac_cv_prog_cc_c89" != xno; then :
michael@0 4124
michael@0 4125 fi
michael@0 4126
michael@0 4127 ac_ext=cpp
michael@0 4128 ac_cpp='$CXXCPP $CPPFLAGS'
michael@0 4129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
michael@0 4130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
michael@0 4131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
michael@0 4132 DEPDIR="${am__leading_dot}deps"
michael@0 4133
michael@0 4134 ac_config_commands="$ac_config_commands depfiles"
michael@0 4135
michael@0 4136
michael@0 4137 am_make=${MAKE-make}
michael@0 4138 cat > confinc << 'END'
michael@0 4139 am__doit:
michael@0 4140 @echo this is the am__doit target
michael@0 4141 .PHONY: am__doit
michael@0 4142 END
michael@0 4143 # If we don't find an include directive, just comment out the code.
michael@0 4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
michael@0 4145 $as_echo_n "checking for style of include used by $am_make... " >&6; }
michael@0 4146 am__include="#"
michael@0 4147 am__quote=
michael@0 4148 _am_result=none
michael@0 4149 # First try GNU make style include.
michael@0 4150 echo "include confinc" > confmf
michael@0 4151 # Ignore all kinds of additional output from `make'.
michael@0 4152 case `$am_make -s -f confmf 2> /dev/null` in #(
michael@0 4153 *the\ am__doit\ target*)
michael@0 4154 am__include=include
michael@0 4155 am__quote=
michael@0 4156 _am_result=GNU
michael@0 4157 ;;
michael@0 4158 esac
michael@0 4159 # Now try BSD make style include.
michael@0 4160 if test "$am__include" = "#"; then
michael@0 4161 echo '.include "confinc"' > confmf
michael@0 4162 case `$am_make -s -f confmf 2> /dev/null` in #(
michael@0 4163 *the\ am__doit\ target*)
michael@0 4164 am__include=.include
michael@0 4165 am__quote="\""
michael@0 4166 _am_result=BSD
michael@0 4167 ;;
michael@0 4168 esac
michael@0 4169 fi
michael@0 4170
michael@0 4171
michael@0 4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
michael@0 4173 $as_echo "$_am_result" >&6; }
michael@0 4174 rm -f confinc confmf
michael@0 4175
michael@0 4176 # Check whether --enable-dependency-tracking was given.
michael@0 4177 if test "${enable_dependency_tracking+set}" = set; then :
michael@0 4178 enableval=$enable_dependency_tracking;
michael@0 4179 fi
michael@0 4180
michael@0 4181 if test "x$enable_dependency_tracking" != xno; then
michael@0 4182 am_depcomp="$ac_aux_dir/depcomp"
michael@0 4183 AMDEPBACKSLASH='\'
michael@0 4184 fi
michael@0 4185 if test "x$enable_dependency_tracking" != xno; then
michael@0 4186 AMDEP_TRUE=
michael@0 4187 AMDEP_FALSE='#'
michael@0 4188 else
michael@0 4189 AMDEP_TRUE='#'
michael@0 4190 AMDEP_FALSE=
michael@0 4191 fi
michael@0 4192
michael@0 4193
michael@0 4194
michael@0 4195 depcc="$CC" am_compiler_list=
michael@0 4196
michael@0 4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
michael@0 4198 $as_echo_n "checking dependency style of $depcc... " >&6; }
michael@0 4199 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
michael@0 4200 $as_echo_n "(cached) " >&6
michael@0 4201 else
michael@0 4202 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
michael@0 4203 # We make a subdir and do the tests there. Otherwise we can end up
michael@0 4204 # making bogus files that we don't know about and never remove. For
michael@0 4205 # instance it was reported that on HP-UX the gcc test will end up
michael@0 4206 # making a dummy file named `D' -- because `-MD' means `put the output
michael@0 4207 # in D'.
michael@0 4208 mkdir conftest.dir
michael@0 4209 # Copy depcomp to subdir because otherwise we won't find it if we're
michael@0 4210 # using a relative directory.
michael@0 4211 cp "$am_depcomp" conftest.dir
michael@0 4212 cd conftest.dir
michael@0 4213 # We will build objects and dependencies in a subdirectory because
michael@0 4214 # it helps to detect inapplicable dependency modes. For instance
michael@0 4215 # both Tru64's cc and ICC support -MD to output dependencies as a
michael@0 4216 # side effect of compilation, but ICC will put the dependencies in
michael@0 4217 # the current directory while Tru64 will put them in the object
michael@0 4218 # directory.
michael@0 4219 mkdir sub
michael@0 4220
michael@0 4221 am_cv_CC_dependencies_compiler_type=none
michael@0 4222 if test "$am_compiler_list" = ""; then
michael@0 4223 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
michael@0 4224 fi
michael@0 4225 am__universal=false
michael@0 4226 case " $depcc " in #(
michael@0 4227 *\ -arch\ *\ -arch\ *) am__universal=true ;;
michael@0 4228 esac
michael@0 4229
michael@0 4230 for depmode in $am_compiler_list; do
michael@0 4231 # Setup a source with many dependencies, because some compilers
michael@0 4232 # like to wrap large dependency lists on column 80 (with \), and
michael@0 4233 # we should not choose a depcomp mode which is confused by this.
michael@0 4234 #
michael@0 4235 # We need to recreate these files for each test, as the compiler may
michael@0 4236 # overwrite some of them when testing with obscure command lines.
michael@0 4237 # This happens at least with the AIX C compiler.
michael@0 4238 : > sub/conftest.c
michael@0 4239 for i in 1 2 3 4 5 6; do
michael@0 4240 echo '#include "conftst'$i'.h"' >> sub/conftest.c
michael@0 4241 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
michael@0 4242 # Solaris 8's {/usr,}/bin/sh.
michael@0 4243 touch sub/conftst$i.h
michael@0 4244 done
michael@0 4245 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
michael@0 4246
michael@0 4247 # We check with `-c' and `-o' for the sake of the "dashmstdout"
michael@0 4248 # mode. It turns out that the SunPro C++ compiler does not properly
michael@0 4249 # handle `-M -o', and we need to detect this. Also, some Intel
michael@0 4250 # versions had trouble with output in subdirs
michael@0 4251 am__obj=sub/conftest.${OBJEXT-o}
michael@0 4252 am__minus_obj="-o $am__obj"
michael@0 4253 case $depmode in
michael@0 4254 gcc)
michael@0 4255 # This depmode causes a compiler race in universal mode.
michael@0 4256 test "$am__universal" = false || continue
michael@0 4257 ;;
michael@0 4258 nosideeffect)
michael@0 4259 # after this tag, mechanisms are not by side-effect, so they'll
michael@0 4260 # only be used when explicitly requested
michael@0 4261 if test "x$enable_dependency_tracking" = xyes; then
michael@0 4262 continue
michael@0 4263 else
michael@0 4264 break
michael@0 4265 fi
michael@0 4266 ;;
michael@0 4267 msvisualcpp | msvcmsys)
michael@0 4268 # This compiler won't grok `-c -o', but also, the minuso test has
michael@0 4269 # not run yet. These depmodes are late enough in the game, and
michael@0 4270 # so weak that their functioning should not be impacted.
michael@0 4271 am__obj=conftest.${OBJEXT-o}
michael@0 4272 am__minus_obj=
michael@0 4273 ;;
michael@0 4274 none) break ;;
michael@0 4275 esac
michael@0 4276 if depmode=$depmode \
michael@0 4277 source=sub/conftest.c object=$am__obj \
michael@0 4278 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
michael@0 4279 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
michael@0 4280 >/dev/null 2>conftest.err &&
michael@0 4281 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
michael@0 4282 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
michael@0 4283 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
michael@0 4284 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
michael@0 4285 # icc doesn't choke on unknown options, it will just issue warnings
michael@0 4286 # or remarks (even with -Werror). So we grep stderr for any message
michael@0 4287 # that says an option was ignored or not supported.
michael@0 4288 # When given -MP, icc 7.0 and 7.1 complain thusly:
michael@0 4289 # icc: Command line warning: ignoring option '-M'; no argument required
michael@0 4290 # The diagnosis changed in icc 8.0:
michael@0 4291 # icc: Command line remark: option '-MP' not supported
michael@0 4292 if (grep 'ignoring option' conftest.err ||
michael@0 4293 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
michael@0 4294 am_cv_CC_dependencies_compiler_type=$depmode
michael@0 4295 break
michael@0 4296 fi
michael@0 4297 fi
michael@0 4298 done
michael@0 4299
michael@0 4300 cd ..
michael@0 4301 rm -rf conftest.dir
michael@0 4302 else
michael@0 4303 am_cv_CC_dependencies_compiler_type=none
michael@0 4304 fi
michael@0 4305
michael@0 4306 fi
michael@0 4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
michael@0 4308 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
michael@0 4309 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
michael@0 4310
michael@0 4311 if
michael@0 4312 test "x$enable_dependency_tracking" != xno \
michael@0 4313 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
michael@0 4314 am__fastdepCC_TRUE=
michael@0 4315 am__fastdepCC_FALSE='#'
michael@0 4316 else
michael@0 4317 am__fastdepCC_TRUE='#'
michael@0 4318 am__fastdepCC_FALSE=
michael@0 4319 fi
michael@0 4320
michael@0 4321
michael@0 4322 ac_ext=c
michael@0 4323 ac_cpp='$CPP $CPPFLAGS'
michael@0 4324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
michael@0 4325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
michael@0 4326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
michael@0 4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
michael@0 4328 $as_echo_n "checking how to run the C preprocessor... " >&6; }
michael@0 4329 # On Suns, sometimes $CPP names a directory.
michael@0 4330 if test -n "$CPP" && test -d "$CPP"; then
michael@0 4331 CPP=
michael@0 4332 fi
michael@0 4333 if test -z "$CPP"; then
michael@0 4334 if test "${ac_cv_prog_CPP+set}" = set; then :
michael@0 4335 $as_echo_n "(cached) " >&6
michael@0 4336 else
michael@0 4337 # Double quotes because CPP needs to be expanded
michael@0 4338 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
michael@0 4339 do
michael@0 4340 ac_preproc_ok=false
michael@0 4341 for ac_c_preproc_warn_flag in '' yes
michael@0 4342 do
michael@0 4343 # Use a header file that comes with gcc, so configuring glibc
michael@0 4344 # with a fresh cross-compiler works.
michael@0 4345 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
michael@0 4346 # <limits.h> exists even on freestanding compilers.
michael@0 4347 # On the NeXT, cc -E runs the code through the compiler's parser,
michael@0 4348 # not just through cpp. "Syntax error" is here to catch this case.
michael@0 4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 4350 /* end confdefs.h. */
michael@0 4351 #ifdef __STDC__
michael@0 4352 # include <limits.h>
michael@0 4353 #else
michael@0 4354 # include <assert.h>
michael@0 4355 #endif
michael@0 4356 Syntax error
michael@0 4357 _ACEOF
michael@0 4358 if ac_fn_c_try_cpp "$LINENO"; then :
michael@0 4359
michael@0 4360 else
michael@0 4361 # Broken: fails on valid input.
michael@0 4362 continue
michael@0 4363 fi
michael@0 4364 rm -f conftest.err conftest.$ac_ext
michael@0 4365
michael@0 4366 # OK, works on sane cases. Now check whether nonexistent headers
michael@0 4367 # can be detected and how.
michael@0 4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 4369 /* end confdefs.h. */
michael@0 4370 #include <ac_nonexistent.h>
michael@0 4371 _ACEOF
michael@0 4372 if ac_fn_c_try_cpp "$LINENO"; then :
michael@0 4373 # Broken: success on invalid input.
michael@0 4374 continue
michael@0 4375 else
michael@0 4376 # Passes both tests.
michael@0 4377 ac_preproc_ok=:
michael@0 4378 break
michael@0 4379 fi
michael@0 4380 rm -f conftest.err conftest.$ac_ext
michael@0 4381
michael@0 4382 done
michael@0 4383 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
michael@0 4384 rm -f conftest.err conftest.$ac_ext
michael@0 4385 if $ac_preproc_ok; then :
michael@0 4386 break
michael@0 4387 fi
michael@0 4388
michael@0 4389 done
michael@0 4390 ac_cv_prog_CPP=$CPP
michael@0 4391
michael@0 4392 fi
michael@0 4393 CPP=$ac_cv_prog_CPP
michael@0 4394 else
michael@0 4395 ac_cv_prog_CPP=$CPP
michael@0 4396 fi
michael@0 4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
michael@0 4398 $as_echo "$CPP" >&6; }
michael@0 4399 ac_preproc_ok=false
michael@0 4400 for ac_c_preproc_warn_flag in '' yes
michael@0 4401 do
michael@0 4402 # Use a header file that comes with gcc, so configuring glibc
michael@0 4403 # with a fresh cross-compiler works.
michael@0 4404 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
michael@0 4405 # <limits.h> exists even on freestanding compilers.
michael@0 4406 # On the NeXT, cc -E runs the code through the compiler's parser,
michael@0 4407 # not just through cpp. "Syntax error" is here to catch this case.
michael@0 4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 4409 /* end confdefs.h. */
michael@0 4410 #ifdef __STDC__
michael@0 4411 # include <limits.h>
michael@0 4412 #else
michael@0 4413 # include <assert.h>
michael@0 4414 #endif
michael@0 4415 Syntax error
michael@0 4416 _ACEOF
michael@0 4417 if ac_fn_c_try_cpp "$LINENO"; then :
michael@0 4418
michael@0 4419 else
michael@0 4420 # Broken: fails on valid input.
michael@0 4421 continue
michael@0 4422 fi
michael@0 4423 rm -f conftest.err conftest.$ac_ext
michael@0 4424
michael@0 4425 # OK, works on sane cases. Now check whether nonexistent headers
michael@0 4426 # can be detected and how.
michael@0 4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 4428 /* end confdefs.h. */
michael@0 4429 #include <ac_nonexistent.h>
michael@0 4430 _ACEOF
michael@0 4431 if ac_fn_c_try_cpp "$LINENO"; then :
michael@0 4432 # Broken: success on invalid input.
michael@0 4433 continue
michael@0 4434 else
michael@0 4435 # Passes both tests.
michael@0 4436 ac_preproc_ok=:
michael@0 4437 break
michael@0 4438 fi
michael@0 4439 rm -f conftest.err conftest.$ac_ext
michael@0 4440
michael@0 4441 done
michael@0 4442 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
michael@0 4443 rm -f conftest.err conftest.$ac_ext
michael@0 4444 if $ac_preproc_ok; then :
michael@0 4445
michael@0 4446 else
michael@0 4447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
michael@0 4448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
michael@0 4449 as_fn_error "C preprocessor \"$CPP\" fails sanity check
michael@0 4450 See \`config.log' for more details." "$LINENO" 5; }
michael@0 4451 fi
michael@0 4452
michael@0 4453 ac_ext=cpp
michael@0 4454 ac_cpp='$CXXCPP $CPPFLAGS'
michael@0 4455 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
michael@0 4456 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
michael@0 4457 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
michael@0 4458
michael@0 4459 ac_ext=cpp
michael@0 4460 ac_cpp='$CXXCPP $CPPFLAGS'
michael@0 4461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
michael@0 4462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
michael@0 4463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
michael@0 4464 if test -z "$CXX"; then
michael@0 4465 if test -n "$CCC"; then
michael@0 4466 CXX=$CCC
michael@0 4467 else
michael@0 4468 if test -n "$ac_tool_prefix"; then
michael@0 4469 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
michael@0 4470 do
michael@0 4471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
michael@0 4472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
michael@0 4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 4474 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 4475 if test "${ac_cv_prog_CXX+set}" = set; then :
michael@0 4476 $as_echo_n "(cached) " >&6
michael@0 4477 else
michael@0 4478 if test -n "$CXX"; then
michael@0 4479 ac_cv_prog_CXX="$CXX" # Let the user override the test.
michael@0 4480 else
michael@0 4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 4482 for as_dir in $PATH
michael@0 4483 do
michael@0 4484 IFS=$as_save_IFS
michael@0 4485 test -z "$as_dir" && as_dir=.
michael@0 4486 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 4487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 4488 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
michael@0 4489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 4490 break 2
michael@0 4491 fi
michael@0 4492 done
michael@0 4493 done
michael@0 4494 IFS=$as_save_IFS
michael@0 4495
michael@0 4496 fi
michael@0 4497 fi
michael@0 4498 CXX=$ac_cv_prog_CXX
michael@0 4499 if test -n "$CXX"; then
michael@0 4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
michael@0 4501 $as_echo "$CXX" >&6; }
michael@0 4502 else
michael@0 4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 4504 $as_echo "no" >&6; }
michael@0 4505 fi
michael@0 4506
michael@0 4507
michael@0 4508 test -n "$CXX" && break
michael@0 4509 done
michael@0 4510 fi
michael@0 4511 if test -z "$CXX"; then
michael@0 4512 ac_ct_CXX=$CXX
michael@0 4513 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
michael@0 4514 do
michael@0 4515 # Extract the first word of "$ac_prog", so it can be a program name with args.
michael@0 4516 set dummy $ac_prog; ac_word=$2
michael@0 4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 4518 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 4519 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
michael@0 4520 $as_echo_n "(cached) " >&6
michael@0 4521 else
michael@0 4522 if test -n "$ac_ct_CXX"; then
michael@0 4523 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
michael@0 4524 else
michael@0 4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 4526 for as_dir in $PATH
michael@0 4527 do
michael@0 4528 IFS=$as_save_IFS
michael@0 4529 test -z "$as_dir" && as_dir=.
michael@0 4530 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 4531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 4532 ac_cv_prog_ac_ct_CXX="$ac_prog"
michael@0 4533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 4534 break 2
michael@0 4535 fi
michael@0 4536 done
michael@0 4537 done
michael@0 4538 IFS=$as_save_IFS
michael@0 4539
michael@0 4540 fi
michael@0 4541 fi
michael@0 4542 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
michael@0 4543 if test -n "$ac_ct_CXX"; then
michael@0 4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
michael@0 4545 $as_echo "$ac_ct_CXX" >&6; }
michael@0 4546 else
michael@0 4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 4548 $as_echo "no" >&6; }
michael@0 4549 fi
michael@0 4550
michael@0 4551
michael@0 4552 test -n "$ac_ct_CXX" && break
michael@0 4553 done
michael@0 4554
michael@0 4555 if test "x$ac_ct_CXX" = x; then
michael@0 4556 CXX="g++"
michael@0 4557 else
michael@0 4558 case $cross_compiling:$ac_tool_warned in
michael@0 4559 yes:)
michael@0 4560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
michael@0 4561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
michael@0 4562 ac_tool_warned=yes ;;
michael@0 4563 esac
michael@0 4564 CXX=$ac_ct_CXX
michael@0 4565 fi
michael@0 4566 fi
michael@0 4567
michael@0 4568 fi
michael@0 4569 fi
michael@0 4570 # Provide some information about the compiler.
michael@0 4571 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
michael@0 4572 set X $ac_compile
michael@0 4573 ac_compiler=$2
michael@0 4574 for ac_option in --version -v -V -qversion; do
michael@0 4575 { { ac_try="$ac_compiler $ac_option >&5"
michael@0 4576 case "(($ac_try" in
michael@0 4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
michael@0 4578 *) ac_try_echo=$ac_try;;
michael@0 4579 esac
michael@0 4580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
michael@0 4581 $as_echo "$ac_try_echo"; } >&5
michael@0 4582 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
michael@0 4583 ac_status=$?
michael@0 4584 if test -s conftest.err; then
michael@0 4585 sed '10a\
michael@0 4586 ... rest of stderr output deleted ...
michael@0 4587 10q' conftest.err >conftest.er1
michael@0 4588 cat conftest.er1 >&5
michael@0 4589 fi
michael@0 4590 rm -f conftest.er1 conftest.err
michael@0 4591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 4592 test $ac_status = 0; }
michael@0 4593 done
michael@0 4594
michael@0 4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
michael@0 4596 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
michael@0 4597 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
michael@0 4598 $as_echo_n "(cached) " >&6
michael@0 4599 else
michael@0 4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 4601 /* end confdefs.h. */
michael@0 4602
michael@0 4603 int
michael@0 4604 main ()
michael@0 4605 {
michael@0 4606 #ifndef __GNUC__
michael@0 4607 choke me
michael@0 4608 #endif
michael@0 4609
michael@0 4610 ;
michael@0 4611 return 0;
michael@0 4612 }
michael@0 4613 _ACEOF
michael@0 4614 if ac_fn_cxx_try_compile "$LINENO"; then :
michael@0 4615 ac_compiler_gnu=yes
michael@0 4616 else
michael@0 4617 ac_compiler_gnu=no
michael@0 4618 fi
michael@0 4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 4620 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
michael@0 4621
michael@0 4622 fi
michael@0 4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
michael@0 4624 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
michael@0 4625 if test $ac_compiler_gnu = yes; then
michael@0 4626 GXX=yes
michael@0 4627 else
michael@0 4628 GXX=
michael@0 4629 fi
michael@0 4630 ac_test_CXXFLAGS=${CXXFLAGS+set}
michael@0 4631 ac_save_CXXFLAGS=$CXXFLAGS
michael@0 4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
michael@0 4633 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
michael@0 4634 if test "${ac_cv_prog_cxx_g+set}" = set; then :
michael@0 4635 $as_echo_n "(cached) " >&6
michael@0 4636 else
michael@0 4637 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
michael@0 4638 ac_cxx_werror_flag=yes
michael@0 4639 ac_cv_prog_cxx_g=no
michael@0 4640 CXXFLAGS="-g"
michael@0 4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 4642 /* end confdefs.h. */
michael@0 4643
michael@0 4644 int
michael@0 4645 main ()
michael@0 4646 {
michael@0 4647
michael@0 4648 ;
michael@0 4649 return 0;
michael@0 4650 }
michael@0 4651 _ACEOF
michael@0 4652 if ac_fn_cxx_try_compile "$LINENO"; then :
michael@0 4653 ac_cv_prog_cxx_g=yes
michael@0 4654 else
michael@0 4655 CXXFLAGS=""
michael@0 4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 4657 /* end confdefs.h. */
michael@0 4658
michael@0 4659 int
michael@0 4660 main ()
michael@0 4661 {
michael@0 4662
michael@0 4663 ;
michael@0 4664 return 0;
michael@0 4665 }
michael@0 4666 _ACEOF
michael@0 4667 if ac_fn_cxx_try_compile "$LINENO"; then :
michael@0 4668
michael@0 4669 else
michael@0 4670 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
michael@0 4671 CXXFLAGS="-g"
michael@0 4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 4673 /* end confdefs.h. */
michael@0 4674
michael@0 4675 int
michael@0 4676 main ()
michael@0 4677 {
michael@0 4678
michael@0 4679 ;
michael@0 4680 return 0;
michael@0 4681 }
michael@0 4682 _ACEOF
michael@0 4683 if ac_fn_cxx_try_compile "$LINENO"; then :
michael@0 4684 ac_cv_prog_cxx_g=yes
michael@0 4685 fi
michael@0 4686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 4687 fi
michael@0 4688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 4689 fi
michael@0 4690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 4691 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
michael@0 4692 fi
michael@0 4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
michael@0 4694 $as_echo "$ac_cv_prog_cxx_g" >&6; }
michael@0 4695 if test "$ac_test_CXXFLAGS" = set; then
michael@0 4696 CXXFLAGS=$ac_save_CXXFLAGS
michael@0 4697 elif test $ac_cv_prog_cxx_g = yes; then
michael@0 4698 if test "$GXX" = yes; then
michael@0 4699 CXXFLAGS="-g -O2"
michael@0 4700 else
michael@0 4701 CXXFLAGS="-g"
michael@0 4702 fi
michael@0 4703 else
michael@0 4704 if test "$GXX" = yes; then
michael@0 4705 CXXFLAGS="-O2"
michael@0 4706 else
michael@0 4707 CXXFLAGS=
michael@0 4708 fi
michael@0 4709 fi
michael@0 4710 ac_ext=cpp
michael@0 4711 ac_cpp='$CXXCPP $CPPFLAGS'
michael@0 4712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
michael@0 4713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
michael@0 4714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
michael@0 4715
michael@0 4716 depcc="$CXX" am_compiler_list=
michael@0 4717
michael@0 4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
michael@0 4719 $as_echo_n "checking dependency style of $depcc... " >&6; }
michael@0 4720 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
michael@0 4721 $as_echo_n "(cached) " >&6
michael@0 4722 else
michael@0 4723 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
michael@0 4724 # We make a subdir and do the tests there. Otherwise we can end up
michael@0 4725 # making bogus files that we don't know about and never remove. For
michael@0 4726 # instance it was reported that on HP-UX the gcc test will end up
michael@0 4727 # making a dummy file named `D' -- because `-MD' means `put the output
michael@0 4728 # in D'.
michael@0 4729 mkdir conftest.dir
michael@0 4730 # Copy depcomp to subdir because otherwise we won't find it if we're
michael@0 4731 # using a relative directory.
michael@0 4732 cp "$am_depcomp" conftest.dir
michael@0 4733 cd conftest.dir
michael@0 4734 # We will build objects and dependencies in a subdirectory because
michael@0 4735 # it helps to detect inapplicable dependency modes. For instance
michael@0 4736 # both Tru64's cc and ICC support -MD to output dependencies as a
michael@0 4737 # side effect of compilation, but ICC will put the dependencies in
michael@0 4738 # the current directory while Tru64 will put them in the object
michael@0 4739 # directory.
michael@0 4740 mkdir sub
michael@0 4741
michael@0 4742 am_cv_CXX_dependencies_compiler_type=none
michael@0 4743 if test "$am_compiler_list" = ""; then
michael@0 4744 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
michael@0 4745 fi
michael@0 4746 am__universal=false
michael@0 4747 case " $depcc " in #(
michael@0 4748 *\ -arch\ *\ -arch\ *) am__universal=true ;;
michael@0 4749 esac
michael@0 4750
michael@0 4751 for depmode in $am_compiler_list; do
michael@0 4752 # Setup a source with many dependencies, because some compilers
michael@0 4753 # like to wrap large dependency lists on column 80 (with \), and
michael@0 4754 # we should not choose a depcomp mode which is confused by this.
michael@0 4755 #
michael@0 4756 # We need to recreate these files for each test, as the compiler may
michael@0 4757 # overwrite some of them when testing with obscure command lines.
michael@0 4758 # This happens at least with the AIX C compiler.
michael@0 4759 : > sub/conftest.c
michael@0 4760 for i in 1 2 3 4 5 6; do
michael@0 4761 echo '#include "conftst'$i'.h"' >> sub/conftest.c
michael@0 4762 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
michael@0 4763 # Solaris 8's {/usr,}/bin/sh.
michael@0 4764 touch sub/conftst$i.h
michael@0 4765 done
michael@0 4766 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
michael@0 4767
michael@0 4768 # We check with `-c' and `-o' for the sake of the "dashmstdout"
michael@0 4769 # mode. It turns out that the SunPro C++ compiler does not properly
michael@0 4770 # handle `-M -o', and we need to detect this. Also, some Intel
michael@0 4771 # versions had trouble with output in subdirs
michael@0 4772 am__obj=sub/conftest.${OBJEXT-o}
michael@0 4773 am__minus_obj="-o $am__obj"
michael@0 4774 case $depmode in
michael@0 4775 gcc)
michael@0 4776 # This depmode causes a compiler race in universal mode.
michael@0 4777 test "$am__universal" = false || continue
michael@0 4778 ;;
michael@0 4779 nosideeffect)
michael@0 4780 # after this tag, mechanisms are not by side-effect, so they'll
michael@0 4781 # only be used when explicitly requested
michael@0 4782 if test "x$enable_dependency_tracking" = xyes; then
michael@0 4783 continue
michael@0 4784 else
michael@0 4785 break
michael@0 4786 fi
michael@0 4787 ;;
michael@0 4788 msvisualcpp | msvcmsys)
michael@0 4789 # This compiler won't grok `-c -o', but also, the minuso test has
michael@0 4790 # not run yet. These depmodes are late enough in the game, and
michael@0 4791 # so weak that their functioning should not be impacted.
michael@0 4792 am__obj=conftest.${OBJEXT-o}
michael@0 4793 am__minus_obj=
michael@0 4794 ;;
michael@0 4795 none) break ;;
michael@0 4796 esac
michael@0 4797 if depmode=$depmode \
michael@0 4798 source=sub/conftest.c object=$am__obj \
michael@0 4799 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
michael@0 4800 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
michael@0 4801 >/dev/null 2>conftest.err &&
michael@0 4802 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
michael@0 4803 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
michael@0 4804 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
michael@0 4805 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
michael@0 4806 # icc doesn't choke on unknown options, it will just issue warnings
michael@0 4807 # or remarks (even with -Werror). So we grep stderr for any message
michael@0 4808 # that says an option was ignored or not supported.
michael@0 4809 # When given -MP, icc 7.0 and 7.1 complain thusly:
michael@0 4810 # icc: Command line warning: ignoring option '-M'; no argument required
michael@0 4811 # The diagnosis changed in icc 8.0:
michael@0 4812 # icc: Command line remark: option '-MP' not supported
michael@0 4813 if (grep 'ignoring option' conftest.err ||
michael@0 4814 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
michael@0 4815 am_cv_CXX_dependencies_compiler_type=$depmode
michael@0 4816 break
michael@0 4817 fi
michael@0 4818 fi
michael@0 4819 done
michael@0 4820
michael@0 4821 cd ..
michael@0 4822 rm -rf conftest.dir
michael@0 4823 else
michael@0 4824 am_cv_CXX_dependencies_compiler_type=none
michael@0 4825 fi
michael@0 4826
michael@0 4827 fi
michael@0 4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
michael@0 4829 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
michael@0 4830 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
michael@0 4831
michael@0 4832 if
michael@0 4833 test "x$enable_dependency_tracking" != xno \
michael@0 4834 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
michael@0 4835 am__fastdepCXX_TRUE=
michael@0 4836 am__fastdepCXX_FALSE='#'
michael@0 4837 else
michael@0 4838 am__fastdepCXX_TRUE='#'
michael@0 4839 am__fastdepCXX_FALSE=
michael@0 4840 fi
michael@0 4841
michael@0 4842
michael@0 4843 if test "$GCC" = yes; then
michael@0 4844 GCC_TRUE=
michael@0 4845 GCC_FALSE='#'
michael@0 4846 else
michael@0 4847 GCC_TRUE='#'
michael@0 4848 GCC_FALSE=
michael@0 4849 fi
michael@0 4850 # let the Makefile know if we're gcc
michael@0 4851
michael@0 4852 case `pwd` in
michael@0 4853 *\ * | *\ *)
michael@0 4854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
michael@0 4855 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
michael@0 4856 esac
michael@0 4857
michael@0 4858
michael@0 4859
michael@0 4860 macro_version='2.2.6b'
michael@0 4861 macro_revision='1.3017'
michael@0 4862
michael@0 4863
michael@0 4864
michael@0 4865
michael@0 4866
michael@0 4867
michael@0 4868
michael@0 4869
michael@0 4870
michael@0 4871
michael@0 4872
michael@0 4873
michael@0 4874
michael@0 4875 ltmain="$ac_aux_dir/ltmain.sh"
michael@0 4876
michael@0 4877 # Make sure we can run config.sub.
michael@0 4878 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
michael@0 4879 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
michael@0 4880
michael@0 4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
michael@0 4882 $as_echo_n "checking build system type... " >&6; }
michael@0 4883 if test "${ac_cv_build+set}" = set; then :
michael@0 4884 $as_echo_n "(cached) " >&6
michael@0 4885 else
michael@0 4886 ac_build_alias=$build_alias
michael@0 4887 test "x$ac_build_alias" = x &&
michael@0 4888 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
michael@0 4889 test "x$ac_build_alias" = x &&
michael@0 4890 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
michael@0 4891 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
michael@0 4892 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
michael@0 4893
michael@0 4894 fi
michael@0 4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
michael@0 4896 $as_echo "$ac_cv_build" >&6; }
michael@0 4897 case $ac_cv_build in
michael@0 4898 *-*-*) ;;
michael@0 4899 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
michael@0 4900 esac
michael@0 4901 build=$ac_cv_build
michael@0 4902 ac_save_IFS=$IFS; IFS='-'
michael@0 4903 set x $ac_cv_build
michael@0 4904 shift
michael@0 4905 build_cpu=$1
michael@0 4906 build_vendor=$2
michael@0 4907 shift; shift
michael@0 4908 # Remember, the first character of IFS is used to create $*,
michael@0 4909 # except with old shells:
michael@0 4910 build_os=$*
michael@0 4911 IFS=$ac_save_IFS
michael@0 4912 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
michael@0 4913
michael@0 4914
michael@0 4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
michael@0 4916 $as_echo_n "checking host system type... " >&6; }
michael@0 4917 if test "${ac_cv_host+set}" = set; then :
michael@0 4918 $as_echo_n "(cached) " >&6
michael@0 4919 else
michael@0 4920 if test "x$host_alias" = x; then
michael@0 4921 ac_cv_host=$ac_cv_build
michael@0 4922 else
michael@0 4923 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
michael@0 4924 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
michael@0 4925 fi
michael@0 4926
michael@0 4927 fi
michael@0 4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
michael@0 4929 $as_echo "$ac_cv_host" >&6; }
michael@0 4930 case $ac_cv_host in
michael@0 4931 *-*-*) ;;
michael@0 4932 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
michael@0 4933 esac
michael@0 4934 host=$ac_cv_host
michael@0 4935 ac_save_IFS=$IFS; IFS='-'
michael@0 4936 set x $ac_cv_host
michael@0 4937 shift
michael@0 4938 host_cpu=$1
michael@0 4939 host_vendor=$2
michael@0 4940 shift; shift
michael@0 4941 # Remember, the first character of IFS is used to create $*,
michael@0 4942 # except with old shells:
michael@0 4943 host_os=$*
michael@0 4944 IFS=$ac_save_IFS
michael@0 4945 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
michael@0 4946
michael@0 4947
michael@0 4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
michael@0 4949 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
michael@0 4950 if test "${ac_cv_path_SED+set}" = set; then :
michael@0 4951 $as_echo_n "(cached) " >&6
michael@0 4952 else
michael@0 4953 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
michael@0 4954 for ac_i in 1 2 3 4 5 6 7; do
michael@0 4955 ac_script="$ac_script$as_nl$ac_script"
michael@0 4956 done
michael@0 4957 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
michael@0 4958 { ac_script=; unset ac_script;}
michael@0 4959 if test -z "$SED"; then
michael@0 4960 ac_path_SED_found=false
michael@0 4961 # Loop through the user's path and test for each of PROGNAME-LIST
michael@0 4962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 4963 for as_dir in $PATH
michael@0 4964 do
michael@0 4965 IFS=$as_save_IFS
michael@0 4966 test -z "$as_dir" && as_dir=.
michael@0 4967 for ac_prog in sed gsed; do
michael@0 4968 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 4969 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
michael@0 4970 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
michael@0 4971 # Check for GNU ac_path_SED and select it if it is found.
michael@0 4972 # Check for GNU $ac_path_SED
michael@0 4973 case `"$ac_path_SED" --version 2>&1` in
michael@0 4974 *GNU*)
michael@0 4975 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
michael@0 4976 *)
michael@0 4977 ac_count=0
michael@0 4978 $as_echo_n 0123456789 >"conftest.in"
michael@0 4979 while :
michael@0 4980 do
michael@0 4981 cat "conftest.in" "conftest.in" >"conftest.tmp"
michael@0 4982 mv "conftest.tmp" "conftest.in"
michael@0 4983 cp "conftest.in" "conftest.nl"
michael@0 4984 $as_echo '' >> "conftest.nl"
michael@0 4985 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
michael@0 4986 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
michael@0 4987 as_fn_arith $ac_count + 1 && ac_count=$as_val
michael@0 4988 if test $ac_count -gt ${ac_path_SED_max-0}; then
michael@0 4989 # Best one so far, save it but keep looking for a better one
michael@0 4990 ac_cv_path_SED="$ac_path_SED"
michael@0 4991 ac_path_SED_max=$ac_count
michael@0 4992 fi
michael@0 4993 # 10*(2^10) chars as input seems more than enough
michael@0 4994 test $ac_count -gt 10 && break
michael@0 4995 done
michael@0 4996 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
michael@0 4997 esac
michael@0 4998
michael@0 4999 $ac_path_SED_found && break 3
michael@0 5000 done
michael@0 5001 done
michael@0 5002 done
michael@0 5003 IFS=$as_save_IFS
michael@0 5004 if test -z "$ac_cv_path_SED"; then
michael@0 5005 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
michael@0 5006 fi
michael@0 5007 else
michael@0 5008 ac_cv_path_SED=$SED
michael@0 5009 fi
michael@0 5010
michael@0 5011 fi
michael@0 5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
michael@0 5013 $as_echo "$ac_cv_path_SED" >&6; }
michael@0 5014 SED="$ac_cv_path_SED"
michael@0 5015 rm -f conftest.sed
michael@0 5016
michael@0 5017 test -z "$SED" && SED=sed
michael@0 5018 Xsed="$SED -e 1s/^X//"
michael@0 5019
michael@0 5020
michael@0 5021
michael@0 5022
michael@0 5023
michael@0 5024
michael@0 5025
michael@0 5026
michael@0 5027
michael@0 5028
michael@0 5029
michael@0 5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
michael@0 5031 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
michael@0 5032 if test "${ac_cv_path_GREP+set}" = set; then :
michael@0 5033 $as_echo_n "(cached) " >&6
michael@0 5034 else
michael@0 5035 if test -z "$GREP"; then
michael@0 5036 ac_path_GREP_found=false
michael@0 5037 # Loop through the user's path and test for each of PROGNAME-LIST
michael@0 5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 5039 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
michael@0 5040 do
michael@0 5041 IFS=$as_save_IFS
michael@0 5042 test -z "$as_dir" && as_dir=.
michael@0 5043 for ac_prog in grep ggrep; do
michael@0 5044 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 5045 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
michael@0 5046 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
michael@0 5047 # Check for GNU ac_path_GREP and select it if it is found.
michael@0 5048 # Check for GNU $ac_path_GREP
michael@0 5049 case `"$ac_path_GREP" --version 2>&1` in
michael@0 5050 *GNU*)
michael@0 5051 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
michael@0 5052 *)
michael@0 5053 ac_count=0
michael@0 5054 $as_echo_n 0123456789 >"conftest.in"
michael@0 5055 while :
michael@0 5056 do
michael@0 5057 cat "conftest.in" "conftest.in" >"conftest.tmp"
michael@0 5058 mv "conftest.tmp" "conftest.in"
michael@0 5059 cp "conftest.in" "conftest.nl"
michael@0 5060 $as_echo 'GREP' >> "conftest.nl"
michael@0 5061 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
michael@0 5062 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
michael@0 5063 as_fn_arith $ac_count + 1 && ac_count=$as_val
michael@0 5064 if test $ac_count -gt ${ac_path_GREP_max-0}; then
michael@0 5065 # Best one so far, save it but keep looking for a better one
michael@0 5066 ac_cv_path_GREP="$ac_path_GREP"
michael@0 5067 ac_path_GREP_max=$ac_count
michael@0 5068 fi
michael@0 5069 # 10*(2^10) chars as input seems more than enough
michael@0 5070 test $ac_count -gt 10 && break
michael@0 5071 done
michael@0 5072 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
michael@0 5073 esac
michael@0 5074
michael@0 5075 $ac_path_GREP_found && break 3
michael@0 5076 done
michael@0 5077 done
michael@0 5078 done
michael@0 5079 IFS=$as_save_IFS
michael@0 5080 if test -z "$ac_cv_path_GREP"; then
michael@0 5081 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
michael@0 5082 fi
michael@0 5083 else
michael@0 5084 ac_cv_path_GREP=$GREP
michael@0 5085 fi
michael@0 5086
michael@0 5087 fi
michael@0 5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
michael@0 5089 $as_echo "$ac_cv_path_GREP" >&6; }
michael@0 5090 GREP="$ac_cv_path_GREP"
michael@0 5091
michael@0 5092
michael@0 5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
michael@0 5094 $as_echo_n "checking for egrep... " >&6; }
michael@0 5095 if test "${ac_cv_path_EGREP+set}" = set; then :
michael@0 5096 $as_echo_n "(cached) " >&6
michael@0 5097 else
michael@0 5098 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
michael@0 5099 then ac_cv_path_EGREP="$GREP -E"
michael@0 5100 else
michael@0 5101 if test -z "$EGREP"; then
michael@0 5102 ac_path_EGREP_found=false
michael@0 5103 # Loop through the user's path and test for each of PROGNAME-LIST
michael@0 5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 5105 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
michael@0 5106 do
michael@0 5107 IFS=$as_save_IFS
michael@0 5108 test -z "$as_dir" && as_dir=.
michael@0 5109 for ac_prog in egrep; do
michael@0 5110 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 5111 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
michael@0 5112 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
michael@0 5113 # Check for GNU ac_path_EGREP and select it if it is found.
michael@0 5114 # Check for GNU $ac_path_EGREP
michael@0 5115 case `"$ac_path_EGREP" --version 2>&1` in
michael@0 5116 *GNU*)
michael@0 5117 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
michael@0 5118 *)
michael@0 5119 ac_count=0
michael@0 5120 $as_echo_n 0123456789 >"conftest.in"
michael@0 5121 while :
michael@0 5122 do
michael@0 5123 cat "conftest.in" "conftest.in" >"conftest.tmp"
michael@0 5124 mv "conftest.tmp" "conftest.in"
michael@0 5125 cp "conftest.in" "conftest.nl"
michael@0 5126 $as_echo 'EGREP' >> "conftest.nl"
michael@0 5127 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
michael@0 5128 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
michael@0 5129 as_fn_arith $ac_count + 1 && ac_count=$as_val
michael@0 5130 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
michael@0 5131 # Best one so far, save it but keep looking for a better one
michael@0 5132 ac_cv_path_EGREP="$ac_path_EGREP"
michael@0 5133 ac_path_EGREP_max=$ac_count
michael@0 5134 fi
michael@0 5135 # 10*(2^10) chars as input seems more than enough
michael@0 5136 test $ac_count -gt 10 && break
michael@0 5137 done
michael@0 5138 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
michael@0 5139 esac
michael@0 5140
michael@0 5141 $ac_path_EGREP_found && break 3
michael@0 5142 done
michael@0 5143 done
michael@0 5144 done
michael@0 5145 IFS=$as_save_IFS
michael@0 5146 if test -z "$ac_cv_path_EGREP"; then
michael@0 5147 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
michael@0 5148 fi
michael@0 5149 else
michael@0 5150 ac_cv_path_EGREP=$EGREP
michael@0 5151 fi
michael@0 5152
michael@0 5153 fi
michael@0 5154 fi
michael@0 5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
michael@0 5156 $as_echo "$ac_cv_path_EGREP" >&6; }
michael@0 5157 EGREP="$ac_cv_path_EGREP"
michael@0 5158
michael@0 5159
michael@0 5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
michael@0 5161 $as_echo_n "checking for fgrep... " >&6; }
michael@0 5162 if test "${ac_cv_path_FGREP+set}" = set; then :
michael@0 5163 $as_echo_n "(cached) " >&6
michael@0 5164 else
michael@0 5165 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
michael@0 5166 then ac_cv_path_FGREP="$GREP -F"
michael@0 5167 else
michael@0 5168 if test -z "$FGREP"; then
michael@0 5169 ac_path_FGREP_found=false
michael@0 5170 # Loop through the user's path and test for each of PROGNAME-LIST
michael@0 5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 5172 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
michael@0 5173 do
michael@0 5174 IFS=$as_save_IFS
michael@0 5175 test -z "$as_dir" && as_dir=.
michael@0 5176 for ac_prog in fgrep; do
michael@0 5177 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 5178 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
michael@0 5179 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
michael@0 5180 # Check for GNU ac_path_FGREP and select it if it is found.
michael@0 5181 # Check for GNU $ac_path_FGREP
michael@0 5182 case `"$ac_path_FGREP" --version 2>&1` in
michael@0 5183 *GNU*)
michael@0 5184 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
michael@0 5185 *)
michael@0 5186 ac_count=0
michael@0 5187 $as_echo_n 0123456789 >"conftest.in"
michael@0 5188 while :
michael@0 5189 do
michael@0 5190 cat "conftest.in" "conftest.in" >"conftest.tmp"
michael@0 5191 mv "conftest.tmp" "conftest.in"
michael@0 5192 cp "conftest.in" "conftest.nl"
michael@0 5193 $as_echo 'FGREP' >> "conftest.nl"
michael@0 5194 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
michael@0 5195 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
michael@0 5196 as_fn_arith $ac_count + 1 && ac_count=$as_val
michael@0 5197 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
michael@0 5198 # Best one so far, save it but keep looking for a better one
michael@0 5199 ac_cv_path_FGREP="$ac_path_FGREP"
michael@0 5200 ac_path_FGREP_max=$ac_count
michael@0 5201 fi
michael@0 5202 # 10*(2^10) chars as input seems more than enough
michael@0 5203 test $ac_count -gt 10 && break
michael@0 5204 done
michael@0 5205 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
michael@0 5206 esac
michael@0 5207
michael@0 5208 $ac_path_FGREP_found && break 3
michael@0 5209 done
michael@0 5210 done
michael@0 5211 done
michael@0 5212 IFS=$as_save_IFS
michael@0 5213 if test -z "$ac_cv_path_FGREP"; then
michael@0 5214 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
michael@0 5215 fi
michael@0 5216 else
michael@0 5217 ac_cv_path_FGREP=$FGREP
michael@0 5218 fi
michael@0 5219
michael@0 5220 fi
michael@0 5221 fi
michael@0 5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
michael@0 5223 $as_echo "$ac_cv_path_FGREP" >&6; }
michael@0 5224 FGREP="$ac_cv_path_FGREP"
michael@0 5225
michael@0 5226
michael@0 5227 test -z "$GREP" && GREP=grep
michael@0 5228
michael@0 5229
michael@0 5230
michael@0 5231
michael@0 5232
michael@0 5233
michael@0 5234
michael@0 5235
michael@0 5236
michael@0 5237
michael@0 5238
michael@0 5239
michael@0 5240
michael@0 5241
michael@0 5242
michael@0 5243
michael@0 5244
michael@0 5245
michael@0 5246
michael@0 5247 # Check whether --with-gnu-ld was given.
michael@0 5248 if test "${with_gnu_ld+set}" = set; then :
michael@0 5249 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
michael@0 5250 else
michael@0 5251 with_gnu_ld=no
michael@0 5252 fi
michael@0 5253
michael@0 5254 ac_prog=ld
michael@0 5255 if test "$GCC" = yes; then
michael@0 5256 # Check if gcc -print-prog-name=ld gives a path.
michael@0 5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
michael@0 5258 $as_echo_n "checking for ld used by $CC... " >&6; }
michael@0 5259 case $host in
michael@0 5260 *-*-mingw*)
michael@0 5261 # gcc leaves a trailing carriage return which upsets mingw
michael@0 5262 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
michael@0 5263 *)
michael@0 5264 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
michael@0 5265 esac
michael@0 5266 case $ac_prog in
michael@0 5267 # Accept absolute paths.
michael@0 5268 [\\/]* | ?:[\\/]*)
michael@0 5269 re_direlt='/[^/][^/]*/\.\./'
michael@0 5270 # Canonicalize the pathname of ld
michael@0 5271 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
michael@0 5272 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
michael@0 5273 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
michael@0 5274 done
michael@0 5275 test -z "$LD" && LD="$ac_prog"
michael@0 5276 ;;
michael@0 5277 "")
michael@0 5278 # If it fails, then pretend we aren't using GCC.
michael@0 5279 ac_prog=ld
michael@0 5280 ;;
michael@0 5281 *)
michael@0 5282 # If it is relative, then search for the first ld in PATH.
michael@0 5283 with_gnu_ld=unknown
michael@0 5284 ;;
michael@0 5285 esac
michael@0 5286 elif test "$with_gnu_ld" = yes; then
michael@0 5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
michael@0 5288 $as_echo_n "checking for GNU ld... " >&6; }
michael@0 5289 else
michael@0 5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
michael@0 5291 $as_echo_n "checking for non-GNU ld... " >&6; }
michael@0 5292 fi
michael@0 5293 if test "${lt_cv_path_LD+set}" = set; then :
michael@0 5294 $as_echo_n "(cached) " >&6
michael@0 5295 else
michael@0 5296 if test -z "$LD"; then
michael@0 5297 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
michael@0 5298 for ac_dir in $PATH; do
michael@0 5299 IFS="$lt_save_ifs"
michael@0 5300 test -z "$ac_dir" && ac_dir=.
michael@0 5301 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
michael@0 5302 lt_cv_path_LD="$ac_dir/$ac_prog"
michael@0 5303 # Check to see if the program is GNU ld. I'd rather use --version,
michael@0 5304 # but apparently some variants of GNU ld only accept -v.
michael@0 5305 # Break only if it was the GNU/non-GNU ld that we prefer.
michael@0 5306 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
michael@0 5307 *GNU* | *'with BFD'*)
michael@0 5308 test "$with_gnu_ld" != no && break
michael@0 5309 ;;
michael@0 5310 *)
michael@0 5311 test "$with_gnu_ld" != yes && break
michael@0 5312 ;;
michael@0 5313 esac
michael@0 5314 fi
michael@0 5315 done
michael@0 5316 IFS="$lt_save_ifs"
michael@0 5317 else
michael@0 5318 lt_cv_path_LD="$LD" # Let the user override the test with a path.
michael@0 5319 fi
michael@0 5320 fi
michael@0 5321
michael@0 5322 LD="$lt_cv_path_LD"
michael@0 5323 if test -n "$LD"; then
michael@0 5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
michael@0 5325 $as_echo "$LD" >&6; }
michael@0 5326 else
michael@0 5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 5328 $as_echo "no" >&6; }
michael@0 5329 fi
michael@0 5330 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
michael@0 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
michael@0 5332 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
michael@0 5333 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
michael@0 5334 $as_echo_n "(cached) " >&6
michael@0 5335 else
michael@0 5336 # I'd rather use --version here, but apparently some GNU lds only accept -v.
michael@0 5337 case `$LD -v 2>&1 </dev/null` in
michael@0 5338 *GNU* | *'with BFD'*)
michael@0 5339 lt_cv_prog_gnu_ld=yes
michael@0 5340 ;;
michael@0 5341 *)
michael@0 5342 lt_cv_prog_gnu_ld=no
michael@0 5343 ;;
michael@0 5344 esac
michael@0 5345 fi
michael@0 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
michael@0 5347 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
michael@0 5348 with_gnu_ld=$lt_cv_prog_gnu_ld
michael@0 5349
michael@0 5350
michael@0 5351
michael@0 5352
michael@0 5353
michael@0 5354
michael@0 5355
michael@0 5356
michael@0 5357
michael@0 5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
michael@0 5359 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
michael@0 5360 if test "${lt_cv_path_NM+set}" = set; then :
michael@0 5361 $as_echo_n "(cached) " >&6
michael@0 5362 else
michael@0 5363 if test -n "$NM"; then
michael@0 5364 # Let the user override the test.
michael@0 5365 lt_cv_path_NM="$NM"
michael@0 5366 else
michael@0 5367 lt_nm_to_check="${ac_tool_prefix}nm"
michael@0 5368 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
michael@0 5369 lt_nm_to_check="$lt_nm_to_check nm"
michael@0 5370 fi
michael@0 5371 for lt_tmp_nm in $lt_nm_to_check; do
michael@0 5372 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
michael@0 5373 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
michael@0 5374 IFS="$lt_save_ifs"
michael@0 5375 test -z "$ac_dir" && ac_dir=.
michael@0 5376 tmp_nm="$ac_dir/$lt_tmp_nm"
michael@0 5377 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
michael@0 5378 # Check to see if the nm accepts a BSD-compat flag.
michael@0 5379 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
michael@0 5380 # nm: unknown option "B" ignored
michael@0 5381 # Tru64's nm complains that /dev/null is an invalid object file
michael@0 5382 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
michael@0 5383 */dev/null* | *'Invalid file or object type'*)
michael@0 5384 lt_cv_path_NM="$tmp_nm -B"
michael@0 5385 break
michael@0 5386 ;;
michael@0 5387 *)
michael@0 5388 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
michael@0 5389 */dev/null*)
michael@0 5390 lt_cv_path_NM="$tmp_nm -p"
michael@0 5391 break
michael@0 5392 ;;
michael@0 5393 *)
michael@0 5394 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
michael@0 5395 continue # so that we can try to find one that supports BSD flags
michael@0 5396 ;;
michael@0 5397 esac
michael@0 5398 ;;
michael@0 5399 esac
michael@0 5400 fi
michael@0 5401 done
michael@0 5402 IFS="$lt_save_ifs"
michael@0 5403 done
michael@0 5404 : ${lt_cv_path_NM=no}
michael@0 5405 fi
michael@0 5406 fi
michael@0 5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
michael@0 5408 $as_echo "$lt_cv_path_NM" >&6; }
michael@0 5409 if test "$lt_cv_path_NM" != "no"; then
michael@0 5410 NM="$lt_cv_path_NM"
michael@0 5411 else
michael@0 5412 # Didn't find any BSD compatible name lister, look for dumpbin.
michael@0 5413 if test -n "$ac_tool_prefix"; then
michael@0 5414 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
michael@0 5415 do
michael@0 5416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
michael@0 5417 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
michael@0 5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 5419 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 5420 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
michael@0 5421 $as_echo_n "(cached) " >&6
michael@0 5422 else
michael@0 5423 if test -n "$DUMPBIN"; then
michael@0 5424 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
michael@0 5425 else
michael@0 5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 5427 for as_dir in $PATH
michael@0 5428 do
michael@0 5429 IFS=$as_save_IFS
michael@0 5430 test -z "$as_dir" && as_dir=.
michael@0 5431 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 5432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 5433 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
michael@0 5434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 5435 break 2
michael@0 5436 fi
michael@0 5437 done
michael@0 5438 done
michael@0 5439 IFS=$as_save_IFS
michael@0 5440
michael@0 5441 fi
michael@0 5442 fi
michael@0 5443 DUMPBIN=$ac_cv_prog_DUMPBIN
michael@0 5444 if test -n "$DUMPBIN"; then
michael@0 5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
michael@0 5446 $as_echo "$DUMPBIN" >&6; }
michael@0 5447 else
michael@0 5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 5449 $as_echo "no" >&6; }
michael@0 5450 fi
michael@0 5451
michael@0 5452
michael@0 5453 test -n "$DUMPBIN" && break
michael@0 5454 done
michael@0 5455 fi
michael@0 5456 if test -z "$DUMPBIN"; then
michael@0 5457 ac_ct_DUMPBIN=$DUMPBIN
michael@0 5458 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
michael@0 5459 do
michael@0 5460 # Extract the first word of "$ac_prog", so it can be a program name with args.
michael@0 5461 set dummy $ac_prog; ac_word=$2
michael@0 5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 5463 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 5464 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
michael@0 5465 $as_echo_n "(cached) " >&6
michael@0 5466 else
michael@0 5467 if test -n "$ac_ct_DUMPBIN"; then
michael@0 5468 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
michael@0 5469 else
michael@0 5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 5471 for as_dir in $PATH
michael@0 5472 do
michael@0 5473 IFS=$as_save_IFS
michael@0 5474 test -z "$as_dir" && as_dir=.
michael@0 5475 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 5477 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
michael@0 5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 5479 break 2
michael@0 5480 fi
michael@0 5481 done
michael@0 5482 done
michael@0 5483 IFS=$as_save_IFS
michael@0 5484
michael@0 5485 fi
michael@0 5486 fi
michael@0 5487 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
michael@0 5488 if test -n "$ac_ct_DUMPBIN"; then
michael@0 5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
michael@0 5490 $as_echo "$ac_ct_DUMPBIN" >&6; }
michael@0 5491 else
michael@0 5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 5493 $as_echo "no" >&6; }
michael@0 5494 fi
michael@0 5495
michael@0 5496
michael@0 5497 test -n "$ac_ct_DUMPBIN" && break
michael@0 5498 done
michael@0 5499
michael@0 5500 if test "x$ac_ct_DUMPBIN" = x; then
michael@0 5501 DUMPBIN=":"
michael@0 5502 else
michael@0 5503 case $cross_compiling:$ac_tool_warned in
michael@0 5504 yes:)
michael@0 5505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
michael@0 5506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
michael@0 5507 ac_tool_warned=yes ;;
michael@0 5508 esac
michael@0 5509 DUMPBIN=$ac_ct_DUMPBIN
michael@0 5510 fi
michael@0 5511 fi
michael@0 5512
michael@0 5513
michael@0 5514 if test "$DUMPBIN" != ":"; then
michael@0 5515 NM="$DUMPBIN"
michael@0 5516 fi
michael@0 5517 fi
michael@0 5518 test -z "$NM" && NM=nm
michael@0 5519
michael@0 5520
michael@0 5521
michael@0 5522
michael@0 5523
michael@0 5524
michael@0 5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
michael@0 5526 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
michael@0 5527 if test "${lt_cv_nm_interface+set}" = set; then :
michael@0 5528 $as_echo_n "(cached) " >&6
michael@0 5529 else
michael@0 5530 lt_cv_nm_interface="BSD nm"
michael@0 5531 echo "int some_variable = 0;" > conftest.$ac_ext
michael@0 5532 (eval echo "\"\$as_me:5532: $ac_compile\"" >&5)
michael@0 5533 (eval "$ac_compile" 2>conftest.err)
michael@0 5534 cat conftest.err >&5
michael@0 5535 (eval echo "\"\$as_me:5535: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
michael@0 5536 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
michael@0 5537 cat conftest.err >&5
michael@0 5538 (eval echo "\"\$as_me:5538: output\"" >&5)
michael@0 5539 cat conftest.out >&5
michael@0 5540 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
michael@0 5541 lt_cv_nm_interface="MS dumpbin"
michael@0 5542 fi
michael@0 5543 rm -f conftest*
michael@0 5544 fi
michael@0 5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
michael@0 5546 $as_echo "$lt_cv_nm_interface" >&6; }
michael@0 5547
michael@0 5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
michael@0 5549 $as_echo_n "checking whether ln -s works... " >&6; }
michael@0 5550 LN_S=$as_ln_s
michael@0 5551 if test "$LN_S" = "ln -s"; then
michael@0 5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
michael@0 5553 $as_echo "yes" >&6; }
michael@0 5554 else
michael@0 5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
michael@0 5556 $as_echo "no, using $LN_S" >&6; }
michael@0 5557 fi
michael@0 5558
michael@0 5559 # find the maximum length of command line arguments
michael@0 5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
michael@0 5561 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
michael@0 5562 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
michael@0 5563 $as_echo_n "(cached) " >&6
michael@0 5564 else
michael@0 5565 i=0
michael@0 5566 teststring="ABCD"
michael@0 5567
michael@0 5568 case $build_os in
michael@0 5569 msdosdjgpp*)
michael@0 5570 # On DJGPP, this test can blow up pretty badly due to problems in libc
michael@0 5571 # (any single argument exceeding 2000 bytes causes a buffer overrun
michael@0 5572 # during glob expansion). Even if it were fixed, the result of this
michael@0 5573 # check would be larger than it should be.
michael@0 5574 lt_cv_sys_max_cmd_len=12288; # 12K is about right
michael@0 5575 ;;
michael@0 5576
michael@0 5577 gnu*)
michael@0 5578 # Under GNU Hurd, this test is not required because there is
michael@0 5579 # no limit to the length of command line arguments.
michael@0 5580 # Libtool will interpret -1 as no limit whatsoever
michael@0 5581 lt_cv_sys_max_cmd_len=-1;
michael@0 5582 ;;
michael@0 5583
michael@0 5584 cygwin* | mingw* | cegcc*)
michael@0 5585 # On Win9x/ME, this test blows up -- it succeeds, but takes
michael@0 5586 # about 5 minutes as the teststring grows exponentially.
michael@0 5587 # Worse, since 9x/ME are not pre-emptively multitasking,
michael@0 5588 # you end up with a "frozen" computer, even though with patience
michael@0 5589 # the test eventually succeeds (with a max line length of 256k).
michael@0 5590 # Instead, let's just punt: use the minimum linelength reported by
michael@0 5591 # all of the supported platforms: 8192 (on NT/2K/XP).
michael@0 5592 lt_cv_sys_max_cmd_len=8192;
michael@0 5593 ;;
michael@0 5594
michael@0 5595 amigaos*)
michael@0 5596 # On AmigaOS with pdksh, this test takes hours, literally.
michael@0 5597 # So we just punt and use a minimum line length of 8192.
michael@0 5598 lt_cv_sys_max_cmd_len=8192;
michael@0 5599 ;;
michael@0 5600
michael@0 5601 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
michael@0 5602 # This has been around since 386BSD, at least. Likely further.
michael@0 5603 if test -x /sbin/sysctl; then
michael@0 5604 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
michael@0 5605 elif test -x /usr/sbin/sysctl; then
michael@0 5606 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
michael@0 5607 else
michael@0 5608 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
michael@0 5609 fi
michael@0 5610 # And add a safety zone
michael@0 5611 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
michael@0 5612 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
michael@0 5613 ;;
michael@0 5614
michael@0 5615 interix*)
michael@0 5616 # We know the value 262144 and hardcode it with a safety zone (like BSD)
michael@0 5617 lt_cv_sys_max_cmd_len=196608
michael@0 5618 ;;
michael@0 5619
michael@0 5620 osf*)
michael@0 5621 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
michael@0 5622 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
michael@0 5623 # nice to cause kernel panics so lets avoid the loop below.
michael@0 5624 # First set a reasonable default.
michael@0 5625 lt_cv_sys_max_cmd_len=16384
michael@0 5626 #
michael@0 5627 if test -x /sbin/sysconfig; then
michael@0 5628 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
michael@0 5629 *1*) lt_cv_sys_max_cmd_len=-1 ;;
michael@0 5630 esac
michael@0 5631 fi
michael@0 5632 ;;
michael@0 5633 sco3.2v5*)
michael@0 5634 lt_cv_sys_max_cmd_len=102400
michael@0 5635 ;;
michael@0 5636 sysv5* | sco5v6* | sysv4.2uw2*)
michael@0 5637 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
michael@0 5638 if test -n "$kargmax"; then
michael@0 5639 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
michael@0 5640 else
michael@0 5641 lt_cv_sys_max_cmd_len=32768
michael@0 5642 fi
michael@0 5643 ;;
michael@0 5644 *)
michael@0 5645 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
michael@0 5646 if test -n "$lt_cv_sys_max_cmd_len"; then
michael@0 5647 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
michael@0 5648 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
michael@0 5649 else
michael@0 5650 # Make teststring a little bigger before we do anything with it.
michael@0 5651 # a 1K string should be a reasonable start.
michael@0 5652 for i in 1 2 3 4 5 6 7 8 ; do
michael@0 5653 teststring=$teststring$teststring
michael@0 5654 done
michael@0 5655 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
michael@0 5656 # If test is not a shell built-in, we'll probably end up computing a
michael@0 5657 # maximum length that is only half of the actual maximum length, but
michael@0 5658 # we can't tell.
michael@0 5659 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
michael@0 5660 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
michael@0 5661 test $i != 17 # 1/2 MB should be enough
michael@0 5662 do
michael@0 5663 i=`expr $i + 1`
michael@0 5664 teststring=$teststring$teststring
michael@0 5665 done
michael@0 5666 # Only check the string length outside the loop.
michael@0 5667 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
michael@0 5668 teststring=
michael@0 5669 # Add a significant safety factor because C++ compilers can tack on
michael@0 5670 # massive amounts of additional arguments before passing them to the
michael@0 5671 # linker. It appears as though 1/2 is a usable value.
michael@0 5672 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
michael@0 5673 fi
michael@0 5674 ;;
michael@0 5675 esac
michael@0 5676
michael@0 5677 fi
michael@0 5678
michael@0 5679 if test -n $lt_cv_sys_max_cmd_len ; then
michael@0 5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
michael@0 5681 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
michael@0 5682 else
michael@0 5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
michael@0 5684 $as_echo "none" >&6; }
michael@0 5685 fi
michael@0 5686 max_cmd_len=$lt_cv_sys_max_cmd_len
michael@0 5687
michael@0 5688
michael@0 5689
michael@0 5690
michael@0 5691
michael@0 5692
michael@0 5693 : ${CP="cp -f"}
michael@0 5694 : ${MV="mv -f"}
michael@0 5695 : ${RM="rm -f"}
michael@0 5696
michael@0 5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
michael@0 5698 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
michael@0 5699 # Try some XSI features
michael@0 5700 xsi_shell=no
michael@0 5701 ( _lt_dummy="a/b/c"
michael@0 5702 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
michael@0 5703 = c,a/b,, \
michael@0 5704 && eval 'test $(( 1 + 1 )) -eq 2 \
michael@0 5705 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
michael@0 5706 && xsi_shell=yes
michael@0 5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
michael@0 5708 $as_echo "$xsi_shell" >&6; }
michael@0 5709
michael@0 5710
michael@0 5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
michael@0 5712 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
michael@0 5713 lt_shell_append=no
michael@0 5714 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
michael@0 5715 >/dev/null 2>&1 \
michael@0 5716 && lt_shell_append=yes
michael@0 5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
michael@0 5718 $as_echo "$lt_shell_append" >&6; }
michael@0 5719
michael@0 5720
michael@0 5721 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
michael@0 5722 lt_unset=unset
michael@0 5723 else
michael@0 5724 lt_unset=false
michael@0 5725 fi
michael@0 5726
michael@0 5727
michael@0 5728
michael@0 5729
michael@0 5730
michael@0 5731 # test EBCDIC or ASCII
michael@0 5732 case `echo X|tr X '\101'` in
michael@0 5733 A) # ASCII based system
michael@0 5734 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
michael@0 5735 lt_SP2NL='tr \040 \012'
michael@0 5736 lt_NL2SP='tr \015\012 \040\040'
michael@0 5737 ;;
michael@0 5738 *) # EBCDIC based system
michael@0 5739 lt_SP2NL='tr \100 \n'
michael@0 5740 lt_NL2SP='tr \r\n \100\100'
michael@0 5741 ;;
michael@0 5742 esac
michael@0 5743
michael@0 5744
michael@0 5745
michael@0 5746
michael@0 5747
michael@0 5748
michael@0 5749
michael@0 5750
michael@0 5751
michael@0 5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
michael@0 5753 $as_echo_n "checking for $LD option to reload object files... " >&6; }
michael@0 5754 if test "${lt_cv_ld_reload_flag+set}" = set; then :
michael@0 5755 $as_echo_n "(cached) " >&6
michael@0 5756 else
michael@0 5757 lt_cv_ld_reload_flag='-r'
michael@0 5758 fi
michael@0 5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
michael@0 5760 $as_echo "$lt_cv_ld_reload_flag" >&6; }
michael@0 5761 reload_flag=$lt_cv_ld_reload_flag
michael@0 5762 case $reload_flag in
michael@0 5763 "" | " "*) ;;
michael@0 5764 *) reload_flag=" $reload_flag" ;;
michael@0 5765 esac
michael@0 5766 reload_cmds='$LD$reload_flag -o $output$reload_objs'
michael@0 5767 case $host_os in
michael@0 5768 darwin*)
michael@0 5769 if test "$GCC" = yes; then
michael@0 5770 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
michael@0 5771 else
michael@0 5772 reload_cmds='$LD$reload_flag -o $output$reload_objs'
michael@0 5773 fi
michael@0 5774 ;;
michael@0 5775 esac
michael@0 5776
michael@0 5777
michael@0 5778
michael@0 5779
michael@0 5780
michael@0 5781
michael@0 5782
michael@0 5783
michael@0 5784
michael@0 5785 if test -n "$ac_tool_prefix"; then
michael@0 5786 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
michael@0 5787 set dummy ${ac_tool_prefix}objdump; ac_word=$2
michael@0 5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 5789 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 5790 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
michael@0 5791 $as_echo_n "(cached) " >&6
michael@0 5792 else
michael@0 5793 if test -n "$OBJDUMP"; then
michael@0 5794 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
michael@0 5795 else
michael@0 5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 5797 for as_dir in $PATH
michael@0 5798 do
michael@0 5799 IFS=$as_save_IFS
michael@0 5800 test -z "$as_dir" && as_dir=.
michael@0 5801 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 5802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 5803 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
michael@0 5804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 5805 break 2
michael@0 5806 fi
michael@0 5807 done
michael@0 5808 done
michael@0 5809 IFS=$as_save_IFS
michael@0 5810
michael@0 5811 fi
michael@0 5812 fi
michael@0 5813 OBJDUMP=$ac_cv_prog_OBJDUMP
michael@0 5814 if test -n "$OBJDUMP"; then
michael@0 5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
michael@0 5816 $as_echo "$OBJDUMP" >&6; }
michael@0 5817 else
michael@0 5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 5819 $as_echo "no" >&6; }
michael@0 5820 fi
michael@0 5821
michael@0 5822
michael@0 5823 fi
michael@0 5824 if test -z "$ac_cv_prog_OBJDUMP"; then
michael@0 5825 ac_ct_OBJDUMP=$OBJDUMP
michael@0 5826 # Extract the first word of "objdump", so it can be a program name with args.
michael@0 5827 set dummy objdump; ac_word=$2
michael@0 5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 5829 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 5830 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
michael@0 5831 $as_echo_n "(cached) " >&6
michael@0 5832 else
michael@0 5833 if test -n "$ac_ct_OBJDUMP"; then
michael@0 5834 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
michael@0 5835 else
michael@0 5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 5837 for as_dir in $PATH
michael@0 5838 do
michael@0 5839 IFS=$as_save_IFS
michael@0 5840 test -z "$as_dir" && as_dir=.
michael@0 5841 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 5842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 5843 ac_cv_prog_ac_ct_OBJDUMP="objdump"
michael@0 5844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 5845 break 2
michael@0 5846 fi
michael@0 5847 done
michael@0 5848 done
michael@0 5849 IFS=$as_save_IFS
michael@0 5850
michael@0 5851 fi
michael@0 5852 fi
michael@0 5853 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
michael@0 5854 if test -n "$ac_ct_OBJDUMP"; then
michael@0 5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
michael@0 5856 $as_echo "$ac_ct_OBJDUMP" >&6; }
michael@0 5857 else
michael@0 5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 5859 $as_echo "no" >&6; }
michael@0 5860 fi
michael@0 5861
michael@0 5862 if test "x$ac_ct_OBJDUMP" = x; then
michael@0 5863 OBJDUMP="false"
michael@0 5864 else
michael@0 5865 case $cross_compiling:$ac_tool_warned in
michael@0 5866 yes:)
michael@0 5867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
michael@0 5868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
michael@0 5869 ac_tool_warned=yes ;;
michael@0 5870 esac
michael@0 5871 OBJDUMP=$ac_ct_OBJDUMP
michael@0 5872 fi
michael@0 5873 else
michael@0 5874 OBJDUMP="$ac_cv_prog_OBJDUMP"
michael@0 5875 fi
michael@0 5876
michael@0 5877 test -z "$OBJDUMP" && OBJDUMP=objdump
michael@0 5878
michael@0 5879
michael@0 5880
michael@0 5881
michael@0 5882
michael@0 5883
michael@0 5884
michael@0 5885
michael@0 5886
michael@0 5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
michael@0 5888 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
michael@0 5889 if test "${lt_cv_deplibs_check_method+set}" = set; then :
michael@0 5890 $as_echo_n "(cached) " >&6
michael@0 5891 else
michael@0 5892 lt_cv_file_magic_cmd='$MAGIC_CMD'
michael@0 5893 lt_cv_file_magic_test_file=
michael@0 5894 lt_cv_deplibs_check_method='unknown'
michael@0 5895 # Need to set the preceding variable on all platforms that support
michael@0 5896 # interlibrary dependencies.
michael@0 5897 # 'none' -- dependencies not supported.
michael@0 5898 # `unknown' -- same as none, but documents that we really don't know.
michael@0 5899 # 'pass_all' -- all dependencies passed with no checks.
michael@0 5900 # 'test_compile' -- check by making test program.
michael@0 5901 # 'file_magic [[regex]]' -- check by looking for files in library path
michael@0 5902 # which responds to the $file_magic_cmd with a given extended regex.
michael@0 5903 # If you have `file' or equivalent on your system and you're not sure
michael@0 5904 # whether `pass_all' will *always* work, you probably want this one.
michael@0 5905
michael@0 5906 case $host_os in
michael@0 5907 aix[4-9]*)
michael@0 5908 lt_cv_deplibs_check_method=pass_all
michael@0 5909 ;;
michael@0 5910
michael@0 5911 beos*)
michael@0 5912 lt_cv_deplibs_check_method=pass_all
michael@0 5913 ;;
michael@0 5914
michael@0 5915 bsdi[45]*)
michael@0 5916 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
michael@0 5917 lt_cv_file_magic_cmd='/usr/bin/file -L'
michael@0 5918 lt_cv_file_magic_test_file=/shlib/libc.so
michael@0 5919 ;;
michael@0 5920
michael@0 5921 cygwin*)
michael@0 5922 # func_win32_libid is a shell function defined in ltmain.sh
michael@0 5923 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
michael@0 5924 lt_cv_file_magic_cmd='func_win32_libid'
michael@0 5925 ;;
michael@0 5926
michael@0 5927 mingw* | pw32*)
michael@0 5928 # Base MSYS/MinGW do not provide the 'file' command needed by
michael@0 5929 # func_win32_libid shell function, so use a weaker test based on 'objdump',
michael@0 5930 # unless we find 'file', for example because we are cross-compiling.
michael@0 5931 if ( file / ) >/dev/null 2>&1; then
michael@0 5932 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
michael@0 5933 lt_cv_file_magic_cmd='func_win32_libid'
michael@0 5934 else
michael@0 5935 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
michael@0 5936 lt_cv_file_magic_cmd='$OBJDUMP -f'
michael@0 5937 fi
michael@0 5938 ;;
michael@0 5939
michael@0 5940 cegcc)
michael@0 5941 # use the weaker test based on 'objdump'. See mingw*.
michael@0 5942 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
michael@0 5943 lt_cv_file_magic_cmd='$OBJDUMP -f'
michael@0 5944 ;;
michael@0 5945
michael@0 5946 darwin* | rhapsody*)
michael@0 5947 lt_cv_deplibs_check_method=pass_all
michael@0 5948 ;;
michael@0 5949
michael@0 5950 freebsd* | dragonfly*)
michael@0 5951 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
michael@0 5952 case $host_cpu in
michael@0 5953 i*86 )
michael@0 5954 # Not sure whether the presence of OpenBSD here was a mistake.
michael@0 5955 # Let's accept both of them until this is cleared up.
michael@0 5956 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
michael@0 5957 lt_cv_file_magic_cmd=/usr/bin/file
michael@0 5958 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
michael@0 5959 ;;
michael@0 5960 esac
michael@0 5961 else
michael@0 5962 lt_cv_deplibs_check_method=pass_all
michael@0 5963 fi
michael@0 5964 ;;
michael@0 5965
michael@0 5966 gnu*)
michael@0 5967 lt_cv_deplibs_check_method=pass_all
michael@0 5968 ;;
michael@0 5969
michael@0 5970 hpux10.20* | hpux11*)
michael@0 5971 lt_cv_file_magic_cmd=/usr/bin/file
michael@0 5972 case $host_cpu in
michael@0 5973 ia64*)
michael@0 5974 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
michael@0 5975 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
michael@0 5976 ;;
michael@0 5977 hppa*64*)
michael@0 5978 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
michael@0 5979 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
michael@0 5980 ;;
michael@0 5981 *)
michael@0 5982 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
michael@0 5983 lt_cv_file_magic_test_file=/usr/lib/libc.sl
michael@0 5984 ;;
michael@0 5985 esac
michael@0 5986 ;;
michael@0 5987
michael@0 5988 interix[3-9]*)
michael@0 5989 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
michael@0 5990 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
michael@0 5991 ;;
michael@0 5992
michael@0 5993 irix5* | irix6* | nonstopux*)
michael@0 5994 case $LD in
michael@0 5995 *-32|*"-32 ") libmagic=32-bit;;
michael@0 5996 *-n32|*"-n32 ") libmagic=N32;;
michael@0 5997 *-64|*"-64 ") libmagic=64-bit;;
michael@0 5998 *) libmagic=never-match;;
michael@0 5999 esac
michael@0 6000 lt_cv_deplibs_check_method=pass_all
michael@0 6001 ;;
michael@0 6002
michael@0 6003 # This must be Linux ELF.
michael@0 6004 linux* | k*bsd*-gnu | kopensolaris*-gnu)
michael@0 6005 lt_cv_deplibs_check_method=pass_all
michael@0 6006 ;;
michael@0 6007
michael@0 6008 netbsd* | netbsdelf*-gnu)
michael@0 6009 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
michael@0 6010 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
michael@0 6011 else
michael@0 6012 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
michael@0 6013 fi
michael@0 6014 ;;
michael@0 6015
michael@0 6016 newos6*)
michael@0 6017 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
michael@0 6018 lt_cv_file_magic_cmd=/usr/bin/file
michael@0 6019 lt_cv_file_magic_test_file=/usr/lib/libnls.so
michael@0 6020 ;;
michael@0 6021
michael@0 6022 *nto* | *qnx*)
michael@0 6023 lt_cv_deplibs_check_method=pass_all
michael@0 6024 ;;
michael@0 6025
michael@0 6026 openbsd*)
michael@0 6027 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
michael@0 6028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
michael@0 6029 else
michael@0 6030 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
michael@0 6031 fi
michael@0 6032 ;;
michael@0 6033
michael@0 6034 osf3* | osf4* | osf5*)
michael@0 6035 lt_cv_deplibs_check_method=pass_all
michael@0 6036 ;;
michael@0 6037
michael@0 6038 rdos*)
michael@0 6039 lt_cv_deplibs_check_method=pass_all
michael@0 6040 ;;
michael@0 6041
michael@0 6042 solaris*)
michael@0 6043 lt_cv_deplibs_check_method=pass_all
michael@0 6044 ;;
michael@0 6045
michael@0 6046 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
michael@0 6047 lt_cv_deplibs_check_method=pass_all
michael@0 6048 ;;
michael@0 6049
michael@0 6050 sysv4 | sysv4.3*)
michael@0 6051 case $host_vendor in
michael@0 6052 motorola)
michael@0 6053 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
michael@0 6054 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
michael@0 6055 ;;
michael@0 6056 ncr)
michael@0 6057 lt_cv_deplibs_check_method=pass_all
michael@0 6058 ;;
michael@0 6059 sequent)
michael@0 6060 lt_cv_file_magic_cmd='/bin/file'
michael@0 6061 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
michael@0 6062 ;;
michael@0 6063 sni)
michael@0 6064 lt_cv_file_magic_cmd='/bin/file'
michael@0 6065 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
michael@0 6066 lt_cv_file_magic_test_file=/lib/libc.so
michael@0 6067 ;;
michael@0 6068 siemens)
michael@0 6069 lt_cv_deplibs_check_method=pass_all
michael@0 6070 ;;
michael@0 6071 pc)
michael@0 6072 lt_cv_deplibs_check_method=pass_all
michael@0 6073 ;;
michael@0 6074 esac
michael@0 6075 ;;
michael@0 6076
michael@0 6077 tpf*)
michael@0 6078 lt_cv_deplibs_check_method=pass_all
michael@0 6079 ;;
michael@0 6080 esac
michael@0 6081
michael@0 6082 fi
michael@0 6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
michael@0 6084 $as_echo "$lt_cv_deplibs_check_method" >&6; }
michael@0 6085 file_magic_cmd=$lt_cv_file_magic_cmd
michael@0 6086 deplibs_check_method=$lt_cv_deplibs_check_method
michael@0 6087 test -z "$deplibs_check_method" && deplibs_check_method=unknown
michael@0 6088
michael@0 6089
michael@0 6090
michael@0 6091
michael@0 6092
michael@0 6093
michael@0 6094
michael@0 6095
michael@0 6096
michael@0 6097
michael@0 6098
michael@0 6099
michael@0 6100 if test -n "$ac_tool_prefix"; then
michael@0 6101 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
michael@0 6102 set dummy ${ac_tool_prefix}ar; ac_word=$2
michael@0 6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 6104 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 6105 if test "${ac_cv_prog_AR+set}" = set; then :
michael@0 6106 $as_echo_n "(cached) " >&6
michael@0 6107 else
michael@0 6108 if test -n "$AR"; then
michael@0 6109 ac_cv_prog_AR="$AR" # Let the user override the test.
michael@0 6110 else
michael@0 6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 6112 for as_dir in $PATH
michael@0 6113 do
michael@0 6114 IFS=$as_save_IFS
michael@0 6115 test -z "$as_dir" && as_dir=.
michael@0 6116 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 6117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 6118 ac_cv_prog_AR="${ac_tool_prefix}ar"
michael@0 6119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 6120 break 2
michael@0 6121 fi
michael@0 6122 done
michael@0 6123 done
michael@0 6124 IFS=$as_save_IFS
michael@0 6125
michael@0 6126 fi
michael@0 6127 fi
michael@0 6128 AR=$ac_cv_prog_AR
michael@0 6129 if test -n "$AR"; then
michael@0 6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
michael@0 6131 $as_echo "$AR" >&6; }
michael@0 6132 else
michael@0 6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 6134 $as_echo "no" >&6; }
michael@0 6135 fi
michael@0 6136
michael@0 6137
michael@0 6138 fi
michael@0 6139 if test -z "$ac_cv_prog_AR"; then
michael@0 6140 ac_ct_AR=$AR
michael@0 6141 # Extract the first word of "ar", so it can be a program name with args.
michael@0 6142 set dummy ar; ac_word=$2
michael@0 6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 6144 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 6145 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
michael@0 6146 $as_echo_n "(cached) " >&6
michael@0 6147 else
michael@0 6148 if test -n "$ac_ct_AR"; then
michael@0 6149 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
michael@0 6150 else
michael@0 6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 6152 for as_dir in $PATH
michael@0 6153 do
michael@0 6154 IFS=$as_save_IFS
michael@0 6155 test -z "$as_dir" && as_dir=.
michael@0 6156 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 6158 ac_cv_prog_ac_ct_AR="ar"
michael@0 6159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 6160 break 2
michael@0 6161 fi
michael@0 6162 done
michael@0 6163 done
michael@0 6164 IFS=$as_save_IFS
michael@0 6165
michael@0 6166 fi
michael@0 6167 fi
michael@0 6168 ac_ct_AR=$ac_cv_prog_ac_ct_AR
michael@0 6169 if test -n "$ac_ct_AR"; then
michael@0 6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
michael@0 6171 $as_echo "$ac_ct_AR" >&6; }
michael@0 6172 else
michael@0 6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 6174 $as_echo "no" >&6; }
michael@0 6175 fi
michael@0 6176
michael@0 6177 if test "x$ac_ct_AR" = x; then
michael@0 6178 AR="false"
michael@0 6179 else
michael@0 6180 case $cross_compiling:$ac_tool_warned in
michael@0 6181 yes:)
michael@0 6182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
michael@0 6183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
michael@0 6184 ac_tool_warned=yes ;;
michael@0 6185 esac
michael@0 6186 AR=$ac_ct_AR
michael@0 6187 fi
michael@0 6188 else
michael@0 6189 AR="$ac_cv_prog_AR"
michael@0 6190 fi
michael@0 6191
michael@0 6192 test -z "$AR" && AR=ar
michael@0 6193 test -z "$AR_FLAGS" && AR_FLAGS=cru
michael@0 6194
michael@0 6195
michael@0 6196
michael@0 6197
michael@0 6198
michael@0 6199
michael@0 6200
michael@0 6201
michael@0 6202
michael@0 6203
michael@0 6204
michael@0 6205 if test -n "$ac_tool_prefix"; then
michael@0 6206 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
michael@0 6207 set dummy ${ac_tool_prefix}strip; ac_word=$2
michael@0 6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 6209 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 6210 if test "${ac_cv_prog_STRIP+set}" = set; then :
michael@0 6211 $as_echo_n "(cached) " >&6
michael@0 6212 else
michael@0 6213 if test -n "$STRIP"; then
michael@0 6214 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
michael@0 6215 else
michael@0 6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 6217 for as_dir in $PATH
michael@0 6218 do
michael@0 6219 IFS=$as_save_IFS
michael@0 6220 test -z "$as_dir" && as_dir=.
michael@0 6221 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 6222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 6223 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
michael@0 6224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 6225 break 2
michael@0 6226 fi
michael@0 6227 done
michael@0 6228 done
michael@0 6229 IFS=$as_save_IFS
michael@0 6230
michael@0 6231 fi
michael@0 6232 fi
michael@0 6233 STRIP=$ac_cv_prog_STRIP
michael@0 6234 if test -n "$STRIP"; then
michael@0 6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
michael@0 6236 $as_echo "$STRIP" >&6; }
michael@0 6237 else
michael@0 6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 6239 $as_echo "no" >&6; }
michael@0 6240 fi
michael@0 6241
michael@0 6242
michael@0 6243 fi
michael@0 6244 if test -z "$ac_cv_prog_STRIP"; then
michael@0 6245 ac_ct_STRIP=$STRIP
michael@0 6246 # Extract the first word of "strip", so it can be a program name with args.
michael@0 6247 set dummy strip; ac_word=$2
michael@0 6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 6249 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 6250 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
michael@0 6251 $as_echo_n "(cached) " >&6
michael@0 6252 else
michael@0 6253 if test -n "$ac_ct_STRIP"; then
michael@0 6254 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
michael@0 6255 else
michael@0 6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 6257 for as_dir in $PATH
michael@0 6258 do
michael@0 6259 IFS=$as_save_IFS
michael@0 6260 test -z "$as_dir" && as_dir=.
michael@0 6261 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 6262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 6263 ac_cv_prog_ac_ct_STRIP="strip"
michael@0 6264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 6265 break 2
michael@0 6266 fi
michael@0 6267 done
michael@0 6268 done
michael@0 6269 IFS=$as_save_IFS
michael@0 6270
michael@0 6271 fi
michael@0 6272 fi
michael@0 6273 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
michael@0 6274 if test -n "$ac_ct_STRIP"; then
michael@0 6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
michael@0 6276 $as_echo "$ac_ct_STRIP" >&6; }
michael@0 6277 else
michael@0 6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 6279 $as_echo "no" >&6; }
michael@0 6280 fi
michael@0 6281
michael@0 6282 if test "x$ac_ct_STRIP" = x; then
michael@0 6283 STRIP=":"
michael@0 6284 else
michael@0 6285 case $cross_compiling:$ac_tool_warned in
michael@0 6286 yes:)
michael@0 6287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
michael@0 6288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
michael@0 6289 ac_tool_warned=yes ;;
michael@0 6290 esac
michael@0 6291 STRIP=$ac_ct_STRIP
michael@0 6292 fi
michael@0 6293 else
michael@0 6294 STRIP="$ac_cv_prog_STRIP"
michael@0 6295 fi
michael@0 6296
michael@0 6297 test -z "$STRIP" && STRIP=:
michael@0 6298
michael@0 6299
michael@0 6300
michael@0 6301
michael@0 6302
michael@0 6303
michael@0 6304 if test -n "$ac_tool_prefix"; then
michael@0 6305 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
michael@0 6306 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
michael@0 6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 6308 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 6309 if test "${ac_cv_prog_RANLIB+set}" = set; then :
michael@0 6310 $as_echo_n "(cached) " >&6
michael@0 6311 else
michael@0 6312 if test -n "$RANLIB"; then
michael@0 6313 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
michael@0 6314 else
michael@0 6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 6316 for as_dir in $PATH
michael@0 6317 do
michael@0 6318 IFS=$as_save_IFS
michael@0 6319 test -z "$as_dir" && as_dir=.
michael@0 6320 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 6321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 6322 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
michael@0 6323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 6324 break 2
michael@0 6325 fi
michael@0 6326 done
michael@0 6327 done
michael@0 6328 IFS=$as_save_IFS
michael@0 6329
michael@0 6330 fi
michael@0 6331 fi
michael@0 6332 RANLIB=$ac_cv_prog_RANLIB
michael@0 6333 if test -n "$RANLIB"; then
michael@0 6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
michael@0 6335 $as_echo "$RANLIB" >&6; }
michael@0 6336 else
michael@0 6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 6338 $as_echo "no" >&6; }
michael@0 6339 fi
michael@0 6340
michael@0 6341
michael@0 6342 fi
michael@0 6343 if test -z "$ac_cv_prog_RANLIB"; then
michael@0 6344 ac_ct_RANLIB=$RANLIB
michael@0 6345 # Extract the first word of "ranlib", so it can be a program name with args.
michael@0 6346 set dummy ranlib; ac_word=$2
michael@0 6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 6348 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 6349 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
michael@0 6350 $as_echo_n "(cached) " >&6
michael@0 6351 else
michael@0 6352 if test -n "$ac_ct_RANLIB"; then
michael@0 6353 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
michael@0 6354 else
michael@0 6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 6356 for as_dir in $PATH
michael@0 6357 do
michael@0 6358 IFS=$as_save_IFS
michael@0 6359 test -z "$as_dir" && as_dir=.
michael@0 6360 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 6361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 6362 ac_cv_prog_ac_ct_RANLIB="ranlib"
michael@0 6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 6364 break 2
michael@0 6365 fi
michael@0 6366 done
michael@0 6367 done
michael@0 6368 IFS=$as_save_IFS
michael@0 6369
michael@0 6370 fi
michael@0 6371 fi
michael@0 6372 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
michael@0 6373 if test -n "$ac_ct_RANLIB"; then
michael@0 6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
michael@0 6375 $as_echo "$ac_ct_RANLIB" >&6; }
michael@0 6376 else
michael@0 6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 6378 $as_echo "no" >&6; }
michael@0 6379 fi
michael@0 6380
michael@0 6381 if test "x$ac_ct_RANLIB" = x; then
michael@0 6382 RANLIB=":"
michael@0 6383 else
michael@0 6384 case $cross_compiling:$ac_tool_warned in
michael@0 6385 yes:)
michael@0 6386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
michael@0 6387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
michael@0 6388 ac_tool_warned=yes ;;
michael@0 6389 esac
michael@0 6390 RANLIB=$ac_ct_RANLIB
michael@0 6391 fi
michael@0 6392 else
michael@0 6393 RANLIB="$ac_cv_prog_RANLIB"
michael@0 6394 fi
michael@0 6395
michael@0 6396 test -z "$RANLIB" && RANLIB=:
michael@0 6397
michael@0 6398
michael@0 6399
michael@0 6400
michael@0 6401
michael@0 6402
michael@0 6403 # Determine commands to create old-style static archives.
michael@0 6404 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
michael@0 6405 old_postinstall_cmds='chmod 644 $oldlib'
michael@0 6406 old_postuninstall_cmds=
michael@0 6407
michael@0 6408 if test -n "$RANLIB"; then
michael@0 6409 case $host_os in
michael@0 6410 openbsd*)
michael@0 6411 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
michael@0 6412 ;;
michael@0 6413 *)
michael@0 6414 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
michael@0 6415 ;;
michael@0 6416 esac
michael@0 6417 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
michael@0 6418 fi
michael@0 6419
michael@0 6420
michael@0 6421
michael@0 6422
michael@0 6423
michael@0 6424
michael@0 6425
michael@0 6426
michael@0 6427
michael@0 6428
michael@0 6429
michael@0 6430
michael@0 6431
michael@0 6432
michael@0 6433
michael@0 6434
michael@0 6435
michael@0 6436
michael@0 6437
michael@0 6438
michael@0 6439
michael@0 6440
michael@0 6441
michael@0 6442
michael@0 6443
michael@0 6444
michael@0 6445
michael@0 6446
michael@0 6447
michael@0 6448
michael@0 6449
michael@0 6450
michael@0 6451
michael@0 6452
michael@0 6453 # If no C compiler was specified, use CC.
michael@0 6454 LTCC=${LTCC-"$CC"}
michael@0 6455
michael@0 6456 # If no C compiler flags were specified, use CFLAGS.
michael@0 6457 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
michael@0 6458
michael@0 6459 # Allow CC to be a program name with arguments.
michael@0 6460 compiler=$CC
michael@0 6461
michael@0 6462
michael@0 6463 # Check for command to grab the raw symbol name followed by C symbol from nm.
michael@0 6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
michael@0 6465 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
michael@0 6466 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
michael@0 6467 $as_echo_n "(cached) " >&6
michael@0 6468 else
michael@0 6469
michael@0 6470 # These are sane defaults that work on at least a few old systems.
michael@0 6471 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
michael@0 6472
michael@0 6473 # Character class describing NM global symbol codes.
michael@0 6474 symcode='[BCDEGRST]'
michael@0 6475
michael@0 6476 # Regexp to match symbols that can be accessed directly from C.
michael@0 6477 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
michael@0 6478
michael@0 6479 # Define system-specific variables.
michael@0 6480 case $host_os in
michael@0 6481 aix*)
michael@0 6482 symcode='[BCDT]'
michael@0 6483 ;;
michael@0 6484 cygwin* | mingw* | pw32* | cegcc*)
michael@0 6485 symcode='[ABCDGISTW]'
michael@0 6486 ;;
michael@0 6487 hpux*)
michael@0 6488 if test "$host_cpu" = ia64; then
michael@0 6489 symcode='[ABCDEGRST]'
michael@0 6490 fi
michael@0 6491 ;;
michael@0 6492 irix* | nonstopux*)
michael@0 6493 symcode='[BCDEGRST]'
michael@0 6494 ;;
michael@0 6495 osf*)
michael@0 6496 symcode='[BCDEGQRST]'
michael@0 6497 ;;
michael@0 6498 solaris*)
michael@0 6499 symcode='[BDRT]'
michael@0 6500 ;;
michael@0 6501 sco3.2v5*)
michael@0 6502 symcode='[DT]'
michael@0 6503 ;;
michael@0 6504 sysv4.2uw2*)
michael@0 6505 symcode='[DT]'
michael@0 6506 ;;
michael@0 6507 sysv5* | sco5v6* | unixware* | OpenUNIX*)
michael@0 6508 symcode='[ABDT]'
michael@0 6509 ;;
michael@0 6510 sysv4)
michael@0 6511 symcode='[DFNSTU]'
michael@0 6512 ;;
michael@0 6513 esac
michael@0 6514
michael@0 6515 # If we're using GNU nm, then use its standard symbol codes.
michael@0 6516 case `$NM -V 2>&1` in
michael@0 6517 *GNU* | *'with BFD'*)
michael@0 6518 symcode='[ABCDGIRSTW]' ;;
michael@0 6519 esac
michael@0 6520
michael@0 6521 # Transform an extracted symbol line into a proper C declaration.
michael@0 6522 # Some systems (esp. on ia64) link data and code symbols differently,
michael@0 6523 # so use this general approach.
michael@0 6524 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
michael@0 6525
michael@0 6526 # Transform an extracted symbol line into symbol name and symbol address
michael@0 6527 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
michael@0 6528 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
michael@0 6529
michael@0 6530 # Handle CRLF in mingw tool chain
michael@0 6531 opt_cr=
michael@0 6532 case $build_os in
michael@0 6533 mingw*)
michael@0 6534 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
michael@0 6535 ;;
michael@0 6536 esac
michael@0 6537
michael@0 6538 # Try without a prefix underscore, then with it.
michael@0 6539 for ac_symprfx in "" "_"; do
michael@0 6540
michael@0 6541 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
michael@0 6542 symxfrm="\\1 $ac_symprfx\\2 \\2"
michael@0 6543
michael@0 6544 # Write the raw and C identifiers.
michael@0 6545 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
michael@0 6546 # Fake it for dumpbin and say T for any non-static function
michael@0 6547 # and D for any global variable.
michael@0 6548 # Also find C++ and __fastcall symbols from MSVC++,
michael@0 6549 # which start with @ or ?.
michael@0 6550 lt_cv_sys_global_symbol_pipe="$AWK '"\
michael@0 6551 " {last_section=section; section=\$ 3};"\
michael@0 6552 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
michael@0 6553 " \$ 0!~/External *\|/{next};"\
michael@0 6554 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
michael@0 6555 " {if(hide[section]) next};"\
michael@0 6556 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
michael@0 6557 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
michael@0 6558 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
michael@0 6559 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
michael@0 6560 " ' prfx=^$ac_symprfx"
michael@0 6561 else
michael@0 6562 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
michael@0 6563 fi
michael@0 6564
michael@0 6565 # Check to see that the pipe works correctly.
michael@0 6566 pipe_works=no
michael@0 6567
michael@0 6568 rm -f conftest*
michael@0 6569 cat > conftest.$ac_ext <<_LT_EOF
michael@0 6570 #ifdef __cplusplus
michael@0 6571 extern "C" {
michael@0 6572 #endif
michael@0 6573 char nm_test_var;
michael@0 6574 void nm_test_func(void);
michael@0 6575 void nm_test_func(void){}
michael@0 6576 #ifdef __cplusplus
michael@0 6577 }
michael@0 6578 #endif
michael@0 6579 int main(){nm_test_var='a';nm_test_func();return(0);}
michael@0 6580 _LT_EOF
michael@0 6581
michael@0 6582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
michael@0 6583 (eval $ac_compile) 2>&5
michael@0 6584 ac_status=$?
michael@0 6585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 6586 test $ac_status = 0; }; then
michael@0 6587 # Now try to grab the symbols.
michael@0 6588 nlist=conftest.nm
michael@0 6589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
michael@0 6590 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
michael@0 6591 ac_status=$?
michael@0 6592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 6593 test $ac_status = 0; } && test -s "$nlist"; then
michael@0 6594 # Try sorting and uniquifying the output.
michael@0 6595 if sort "$nlist" | uniq > "$nlist"T; then
michael@0 6596 mv -f "$nlist"T "$nlist"
michael@0 6597 else
michael@0 6598 rm -f "$nlist"T
michael@0 6599 fi
michael@0 6600
michael@0 6601 # Make sure that we snagged all the symbols we need.
michael@0 6602 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
michael@0 6603 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
michael@0 6604 cat <<_LT_EOF > conftest.$ac_ext
michael@0 6605 #ifdef __cplusplus
michael@0 6606 extern "C" {
michael@0 6607 #endif
michael@0 6608
michael@0 6609 _LT_EOF
michael@0 6610 # Now generate the symbol file.
michael@0 6611 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
michael@0 6612
michael@0 6613 cat <<_LT_EOF >> conftest.$ac_ext
michael@0 6614
michael@0 6615 /* The mapping between symbol names and symbols. */
michael@0 6616 const struct {
michael@0 6617 const char *name;
michael@0 6618 void *address;
michael@0 6619 }
michael@0 6620 lt__PROGRAM__LTX_preloaded_symbols[] =
michael@0 6621 {
michael@0 6622 { "@PROGRAM@", (void *) 0 },
michael@0 6623 _LT_EOF
michael@0 6624 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
michael@0 6625 cat <<\_LT_EOF >> conftest.$ac_ext
michael@0 6626 {0, (void *) 0}
michael@0 6627 };
michael@0 6628
michael@0 6629 /* This works around a problem in FreeBSD linker */
michael@0 6630 #ifdef FREEBSD_WORKAROUND
michael@0 6631 static const void *lt_preloaded_setup() {
michael@0 6632 return lt__PROGRAM__LTX_preloaded_symbols;
michael@0 6633 }
michael@0 6634 #endif
michael@0 6635
michael@0 6636 #ifdef __cplusplus
michael@0 6637 }
michael@0 6638 #endif
michael@0 6639 _LT_EOF
michael@0 6640 # Now try linking the two files.
michael@0 6641 mv conftest.$ac_objext conftstm.$ac_objext
michael@0 6642 lt_save_LIBS="$LIBS"
michael@0 6643 lt_save_CFLAGS="$CFLAGS"
michael@0 6644 LIBS="conftstm.$ac_objext"
michael@0 6645 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
michael@0 6646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
michael@0 6647 (eval $ac_link) 2>&5
michael@0 6648 ac_status=$?
michael@0 6649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 6650 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
michael@0 6651 pipe_works=yes
michael@0 6652 fi
michael@0 6653 LIBS="$lt_save_LIBS"
michael@0 6654 CFLAGS="$lt_save_CFLAGS"
michael@0 6655 else
michael@0 6656 echo "cannot find nm_test_func in $nlist" >&5
michael@0 6657 fi
michael@0 6658 else
michael@0 6659 echo "cannot find nm_test_var in $nlist" >&5
michael@0 6660 fi
michael@0 6661 else
michael@0 6662 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
michael@0 6663 fi
michael@0 6664 else
michael@0 6665 echo "$progname: failed program was:" >&5
michael@0 6666 cat conftest.$ac_ext >&5
michael@0 6667 fi
michael@0 6668 rm -rf conftest* conftst*
michael@0 6669
michael@0 6670 # Do not use the global_symbol_pipe unless it works.
michael@0 6671 if test "$pipe_works" = yes; then
michael@0 6672 break
michael@0 6673 else
michael@0 6674 lt_cv_sys_global_symbol_pipe=
michael@0 6675 fi
michael@0 6676 done
michael@0 6677
michael@0 6678 fi
michael@0 6679
michael@0 6680 if test -z "$lt_cv_sys_global_symbol_pipe"; then
michael@0 6681 lt_cv_sys_global_symbol_to_cdecl=
michael@0 6682 fi
michael@0 6683 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
michael@0 6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
michael@0 6685 $as_echo "failed" >&6; }
michael@0 6686 else
michael@0 6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
michael@0 6688 $as_echo "ok" >&6; }
michael@0 6689 fi
michael@0 6690
michael@0 6691
michael@0 6692
michael@0 6693
michael@0 6694
michael@0 6695
michael@0 6696
michael@0 6697
michael@0 6698
michael@0 6699
michael@0 6700
michael@0 6701
michael@0 6702
michael@0 6703
michael@0 6704
michael@0 6705
michael@0 6706
michael@0 6707
michael@0 6708
michael@0 6709
michael@0 6710
michael@0 6711
michael@0 6712
michael@0 6713 # Check whether --enable-libtool-lock was given.
michael@0 6714 if test "${enable_libtool_lock+set}" = set; then :
michael@0 6715 enableval=$enable_libtool_lock;
michael@0 6716 fi
michael@0 6717
michael@0 6718 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
michael@0 6719
michael@0 6720 # Some flags need to be propagated to the compiler or linker for good
michael@0 6721 # libtool support.
michael@0 6722 case $host in
michael@0 6723 ia64-*-hpux*)
michael@0 6724 # Find out which ABI we are using.
michael@0 6725 echo 'int i;' > conftest.$ac_ext
michael@0 6726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
michael@0 6727 (eval $ac_compile) 2>&5
michael@0 6728 ac_status=$?
michael@0 6729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 6730 test $ac_status = 0; }; then
michael@0 6731 case `/usr/bin/file conftest.$ac_objext` in
michael@0 6732 *ELF-32*)
michael@0 6733 HPUX_IA64_MODE="32"
michael@0 6734 ;;
michael@0 6735 *ELF-64*)
michael@0 6736 HPUX_IA64_MODE="64"
michael@0 6737 ;;
michael@0 6738 esac
michael@0 6739 fi
michael@0 6740 rm -rf conftest*
michael@0 6741 ;;
michael@0 6742 *-*-irix6*)
michael@0 6743 # Find out which ABI we are using.
michael@0 6744 echo '#line 6744 "configure"' > conftest.$ac_ext
michael@0 6745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
michael@0 6746 (eval $ac_compile) 2>&5
michael@0 6747 ac_status=$?
michael@0 6748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 6749 test $ac_status = 0; }; then
michael@0 6750 if test "$lt_cv_prog_gnu_ld" = yes; then
michael@0 6751 case `/usr/bin/file conftest.$ac_objext` in
michael@0 6752 *32-bit*)
michael@0 6753 LD="${LD-ld} -melf32bsmip"
michael@0 6754 ;;
michael@0 6755 *N32*)
michael@0 6756 LD="${LD-ld} -melf32bmipn32"
michael@0 6757 ;;
michael@0 6758 *64-bit*)
michael@0 6759 LD="${LD-ld} -melf64bmip"
michael@0 6760 ;;
michael@0 6761 esac
michael@0 6762 else
michael@0 6763 case `/usr/bin/file conftest.$ac_objext` in
michael@0 6764 *32-bit*)
michael@0 6765 LD="${LD-ld} -32"
michael@0 6766 ;;
michael@0 6767 *N32*)
michael@0 6768 LD="${LD-ld} -n32"
michael@0 6769 ;;
michael@0 6770 *64-bit*)
michael@0 6771 LD="${LD-ld} -64"
michael@0 6772 ;;
michael@0 6773 esac
michael@0 6774 fi
michael@0 6775 fi
michael@0 6776 rm -rf conftest*
michael@0 6777 ;;
michael@0 6778
michael@0 6779 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
michael@0 6780 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
michael@0 6781 # Find out which ABI we are using.
michael@0 6782 echo 'int i;' > conftest.$ac_ext
michael@0 6783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
michael@0 6784 (eval $ac_compile) 2>&5
michael@0 6785 ac_status=$?
michael@0 6786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 6787 test $ac_status = 0; }; then
michael@0 6788 case `/usr/bin/file conftest.o` in
michael@0 6789 *32-bit*)
michael@0 6790 case $host in
michael@0 6791 x86_64-*kfreebsd*-gnu)
michael@0 6792 LD="${LD-ld} -m elf_i386_fbsd"
michael@0 6793 ;;
michael@0 6794 x86_64-*linux*)
michael@0 6795 LD="${LD-ld} -m elf_i386"
michael@0 6796 ;;
michael@0 6797 ppc64-*linux*|powerpc64-*linux*)
michael@0 6798 LD="${LD-ld} -m elf32ppclinux"
michael@0 6799 ;;
michael@0 6800 s390x-*linux*)
michael@0 6801 LD="${LD-ld} -m elf_s390"
michael@0 6802 ;;
michael@0 6803 sparc64-*linux*)
michael@0 6804 LD="${LD-ld} -m elf32_sparc"
michael@0 6805 ;;
michael@0 6806 esac
michael@0 6807 ;;
michael@0 6808 *64-bit*)
michael@0 6809 case $host in
michael@0 6810 x86_64-*kfreebsd*-gnu)
michael@0 6811 LD="${LD-ld} -m elf_x86_64_fbsd"
michael@0 6812 ;;
michael@0 6813 x86_64-*linux*)
michael@0 6814 LD="${LD-ld} -m elf_x86_64"
michael@0 6815 ;;
michael@0 6816 ppc*-*linux*|powerpc*-*linux*)
michael@0 6817 LD="${LD-ld} -m elf64ppc"
michael@0 6818 ;;
michael@0 6819 s390*-*linux*|s390*-*tpf*)
michael@0 6820 LD="${LD-ld} -m elf64_s390"
michael@0 6821 ;;
michael@0 6822 sparc*-*linux*)
michael@0 6823 LD="${LD-ld} -m elf64_sparc"
michael@0 6824 ;;
michael@0 6825 esac
michael@0 6826 ;;
michael@0 6827 esac
michael@0 6828 fi
michael@0 6829 rm -rf conftest*
michael@0 6830 ;;
michael@0 6831
michael@0 6832 *-*-sco3.2v5*)
michael@0 6833 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
michael@0 6834 SAVE_CFLAGS="$CFLAGS"
michael@0 6835 CFLAGS="$CFLAGS -belf"
michael@0 6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
michael@0 6837 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
michael@0 6838 if test "${lt_cv_cc_needs_belf+set}" = set; then :
michael@0 6839 $as_echo_n "(cached) " >&6
michael@0 6840 else
michael@0 6841 ac_ext=c
michael@0 6842 ac_cpp='$CPP $CPPFLAGS'
michael@0 6843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
michael@0 6844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
michael@0 6845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
michael@0 6846
michael@0 6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 6848 /* end confdefs.h. */
michael@0 6849
michael@0 6850 int
michael@0 6851 main ()
michael@0 6852 {
michael@0 6853
michael@0 6854 ;
michael@0 6855 return 0;
michael@0 6856 }
michael@0 6857 _ACEOF
michael@0 6858 if ac_fn_c_try_link "$LINENO"; then :
michael@0 6859 lt_cv_cc_needs_belf=yes
michael@0 6860 else
michael@0 6861 lt_cv_cc_needs_belf=no
michael@0 6862 fi
michael@0 6863 rm -f core conftest.err conftest.$ac_objext \
michael@0 6864 conftest$ac_exeext conftest.$ac_ext
michael@0 6865 ac_ext=c
michael@0 6866 ac_cpp='$CPP $CPPFLAGS'
michael@0 6867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
michael@0 6868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
michael@0 6869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
michael@0 6870
michael@0 6871 fi
michael@0 6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
michael@0 6873 $as_echo "$lt_cv_cc_needs_belf" >&6; }
michael@0 6874 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
michael@0 6875 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
michael@0 6876 CFLAGS="$SAVE_CFLAGS"
michael@0 6877 fi
michael@0 6878 ;;
michael@0 6879 sparc*-*solaris*)
michael@0 6880 # Find out which ABI we are using.
michael@0 6881 echo 'int i;' > conftest.$ac_ext
michael@0 6882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
michael@0 6883 (eval $ac_compile) 2>&5
michael@0 6884 ac_status=$?
michael@0 6885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 6886 test $ac_status = 0; }; then
michael@0 6887 case `/usr/bin/file conftest.o` in
michael@0 6888 *64-bit*)
michael@0 6889 case $lt_cv_prog_gnu_ld in
michael@0 6890 yes*) LD="${LD-ld} -m elf64_sparc" ;;
michael@0 6891 *)
michael@0 6892 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
michael@0 6893 LD="${LD-ld} -64"
michael@0 6894 fi
michael@0 6895 ;;
michael@0 6896 esac
michael@0 6897 ;;
michael@0 6898 esac
michael@0 6899 fi
michael@0 6900 rm -rf conftest*
michael@0 6901 ;;
michael@0 6902 esac
michael@0 6903
michael@0 6904 need_locks="$enable_libtool_lock"
michael@0 6905
michael@0 6906
michael@0 6907 case $host_os in
michael@0 6908 rhapsody* | darwin*)
michael@0 6909 if test -n "$ac_tool_prefix"; then
michael@0 6910 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
michael@0 6911 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
michael@0 6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 6913 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 6914 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
michael@0 6915 $as_echo_n "(cached) " >&6
michael@0 6916 else
michael@0 6917 if test -n "$DSYMUTIL"; then
michael@0 6918 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
michael@0 6919 else
michael@0 6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 6921 for as_dir in $PATH
michael@0 6922 do
michael@0 6923 IFS=$as_save_IFS
michael@0 6924 test -z "$as_dir" && as_dir=.
michael@0 6925 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 6926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 6927 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
michael@0 6928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 6929 break 2
michael@0 6930 fi
michael@0 6931 done
michael@0 6932 done
michael@0 6933 IFS=$as_save_IFS
michael@0 6934
michael@0 6935 fi
michael@0 6936 fi
michael@0 6937 DSYMUTIL=$ac_cv_prog_DSYMUTIL
michael@0 6938 if test -n "$DSYMUTIL"; then
michael@0 6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
michael@0 6940 $as_echo "$DSYMUTIL" >&6; }
michael@0 6941 else
michael@0 6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 6943 $as_echo "no" >&6; }
michael@0 6944 fi
michael@0 6945
michael@0 6946
michael@0 6947 fi
michael@0 6948 if test -z "$ac_cv_prog_DSYMUTIL"; then
michael@0 6949 ac_ct_DSYMUTIL=$DSYMUTIL
michael@0 6950 # Extract the first word of "dsymutil", so it can be a program name with args.
michael@0 6951 set dummy dsymutil; ac_word=$2
michael@0 6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 6953 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 6954 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
michael@0 6955 $as_echo_n "(cached) " >&6
michael@0 6956 else
michael@0 6957 if test -n "$ac_ct_DSYMUTIL"; then
michael@0 6958 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
michael@0 6959 else
michael@0 6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 6961 for as_dir in $PATH
michael@0 6962 do
michael@0 6963 IFS=$as_save_IFS
michael@0 6964 test -z "$as_dir" && as_dir=.
michael@0 6965 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 6966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 6967 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
michael@0 6968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 6969 break 2
michael@0 6970 fi
michael@0 6971 done
michael@0 6972 done
michael@0 6973 IFS=$as_save_IFS
michael@0 6974
michael@0 6975 fi
michael@0 6976 fi
michael@0 6977 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
michael@0 6978 if test -n "$ac_ct_DSYMUTIL"; then
michael@0 6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
michael@0 6980 $as_echo "$ac_ct_DSYMUTIL" >&6; }
michael@0 6981 else
michael@0 6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 6983 $as_echo "no" >&6; }
michael@0 6984 fi
michael@0 6985
michael@0 6986 if test "x$ac_ct_DSYMUTIL" = x; then
michael@0 6987 DSYMUTIL=":"
michael@0 6988 else
michael@0 6989 case $cross_compiling:$ac_tool_warned in
michael@0 6990 yes:)
michael@0 6991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
michael@0 6992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
michael@0 6993 ac_tool_warned=yes ;;
michael@0 6994 esac
michael@0 6995 DSYMUTIL=$ac_ct_DSYMUTIL
michael@0 6996 fi
michael@0 6997 else
michael@0 6998 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
michael@0 6999 fi
michael@0 7000
michael@0 7001 if test -n "$ac_tool_prefix"; then
michael@0 7002 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
michael@0 7003 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
michael@0 7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 7005 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 7006 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
michael@0 7007 $as_echo_n "(cached) " >&6
michael@0 7008 else
michael@0 7009 if test -n "$NMEDIT"; then
michael@0 7010 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
michael@0 7011 else
michael@0 7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 7013 for as_dir in $PATH
michael@0 7014 do
michael@0 7015 IFS=$as_save_IFS
michael@0 7016 test -z "$as_dir" && as_dir=.
michael@0 7017 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 7018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 7019 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
michael@0 7020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 7021 break 2
michael@0 7022 fi
michael@0 7023 done
michael@0 7024 done
michael@0 7025 IFS=$as_save_IFS
michael@0 7026
michael@0 7027 fi
michael@0 7028 fi
michael@0 7029 NMEDIT=$ac_cv_prog_NMEDIT
michael@0 7030 if test -n "$NMEDIT"; then
michael@0 7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
michael@0 7032 $as_echo "$NMEDIT" >&6; }
michael@0 7033 else
michael@0 7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 7035 $as_echo "no" >&6; }
michael@0 7036 fi
michael@0 7037
michael@0 7038
michael@0 7039 fi
michael@0 7040 if test -z "$ac_cv_prog_NMEDIT"; then
michael@0 7041 ac_ct_NMEDIT=$NMEDIT
michael@0 7042 # Extract the first word of "nmedit", so it can be a program name with args.
michael@0 7043 set dummy nmedit; ac_word=$2
michael@0 7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 7045 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 7046 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
michael@0 7047 $as_echo_n "(cached) " >&6
michael@0 7048 else
michael@0 7049 if test -n "$ac_ct_NMEDIT"; then
michael@0 7050 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
michael@0 7051 else
michael@0 7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 7053 for as_dir in $PATH
michael@0 7054 do
michael@0 7055 IFS=$as_save_IFS
michael@0 7056 test -z "$as_dir" && as_dir=.
michael@0 7057 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 7058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 7059 ac_cv_prog_ac_ct_NMEDIT="nmedit"
michael@0 7060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 7061 break 2
michael@0 7062 fi
michael@0 7063 done
michael@0 7064 done
michael@0 7065 IFS=$as_save_IFS
michael@0 7066
michael@0 7067 fi
michael@0 7068 fi
michael@0 7069 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
michael@0 7070 if test -n "$ac_ct_NMEDIT"; then
michael@0 7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
michael@0 7072 $as_echo "$ac_ct_NMEDIT" >&6; }
michael@0 7073 else
michael@0 7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 7075 $as_echo "no" >&6; }
michael@0 7076 fi
michael@0 7077
michael@0 7078 if test "x$ac_ct_NMEDIT" = x; then
michael@0 7079 NMEDIT=":"
michael@0 7080 else
michael@0 7081 case $cross_compiling:$ac_tool_warned in
michael@0 7082 yes:)
michael@0 7083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
michael@0 7084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
michael@0 7085 ac_tool_warned=yes ;;
michael@0 7086 esac
michael@0 7087 NMEDIT=$ac_ct_NMEDIT
michael@0 7088 fi
michael@0 7089 else
michael@0 7090 NMEDIT="$ac_cv_prog_NMEDIT"
michael@0 7091 fi
michael@0 7092
michael@0 7093 if test -n "$ac_tool_prefix"; then
michael@0 7094 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
michael@0 7095 set dummy ${ac_tool_prefix}lipo; ac_word=$2
michael@0 7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 7097 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 7098 if test "${ac_cv_prog_LIPO+set}" = set; then :
michael@0 7099 $as_echo_n "(cached) " >&6
michael@0 7100 else
michael@0 7101 if test -n "$LIPO"; then
michael@0 7102 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
michael@0 7103 else
michael@0 7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 7105 for as_dir in $PATH
michael@0 7106 do
michael@0 7107 IFS=$as_save_IFS
michael@0 7108 test -z "$as_dir" && as_dir=.
michael@0 7109 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 7111 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
michael@0 7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 7113 break 2
michael@0 7114 fi
michael@0 7115 done
michael@0 7116 done
michael@0 7117 IFS=$as_save_IFS
michael@0 7118
michael@0 7119 fi
michael@0 7120 fi
michael@0 7121 LIPO=$ac_cv_prog_LIPO
michael@0 7122 if test -n "$LIPO"; then
michael@0 7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
michael@0 7124 $as_echo "$LIPO" >&6; }
michael@0 7125 else
michael@0 7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 7127 $as_echo "no" >&6; }
michael@0 7128 fi
michael@0 7129
michael@0 7130
michael@0 7131 fi
michael@0 7132 if test -z "$ac_cv_prog_LIPO"; then
michael@0 7133 ac_ct_LIPO=$LIPO
michael@0 7134 # Extract the first word of "lipo", so it can be a program name with args.
michael@0 7135 set dummy lipo; ac_word=$2
michael@0 7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 7137 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 7138 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
michael@0 7139 $as_echo_n "(cached) " >&6
michael@0 7140 else
michael@0 7141 if test -n "$ac_ct_LIPO"; then
michael@0 7142 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
michael@0 7143 else
michael@0 7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 7145 for as_dir in $PATH
michael@0 7146 do
michael@0 7147 IFS=$as_save_IFS
michael@0 7148 test -z "$as_dir" && as_dir=.
michael@0 7149 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 7151 ac_cv_prog_ac_ct_LIPO="lipo"
michael@0 7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 7153 break 2
michael@0 7154 fi
michael@0 7155 done
michael@0 7156 done
michael@0 7157 IFS=$as_save_IFS
michael@0 7158
michael@0 7159 fi
michael@0 7160 fi
michael@0 7161 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
michael@0 7162 if test -n "$ac_ct_LIPO"; then
michael@0 7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
michael@0 7164 $as_echo "$ac_ct_LIPO" >&6; }
michael@0 7165 else
michael@0 7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 7167 $as_echo "no" >&6; }
michael@0 7168 fi
michael@0 7169
michael@0 7170 if test "x$ac_ct_LIPO" = x; then
michael@0 7171 LIPO=":"
michael@0 7172 else
michael@0 7173 case $cross_compiling:$ac_tool_warned in
michael@0 7174 yes:)
michael@0 7175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
michael@0 7176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
michael@0 7177 ac_tool_warned=yes ;;
michael@0 7178 esac
michael@0 7179 LIPO=$ac_ct_LIPO
michael@0 7180 fi
michael@0 7181 else
michael@0 7182 LIPO="$ac_cv_prog_LIPO"
michael@0 7183 fi
michael@0 7184
michael@0 7185 if test -n "$ac_tool_prefix"; then
michael@0 7186 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
michael@0 7187 set dummy ${ac_tool_prefix}otool; ac_word=$2
michael@0 7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 7189 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 7190 if test "${ac_cv_prog_OTOOL+set}" = set; then :
michael@0 7191 $as_echo_n "(cached) " >&6
michael@0 7192 else
michael@0 7193 if test -n "$OTOOL"; then
michael@0 7194 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
michael@0 7195 else
michael@0 7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 7197 for as_dir in $PATH
michael@0 7198 do
michael@0 7199 IFS=$as_save_IFS
michael@0 7200 test -z "$as_dir" && as_dir=.
michael@0 7201 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 7202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 7203 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
michael@0 7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 7205 break 2
michael@0 7206 fi
michael@0 7207 done
michael@0 7208 done
michael@0 7209 IFS=$as_save_IFS
michael@0 7210
michael@0 7211 fi
michael@0 7212 fi
michael@0 7213 OTOOL=$ac_cv_prog_OTOOL
michael@0 7214 if test -n "$OTOOL"; then
michael@0 7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
michael@0 7216 $as_echo "$OTOOL" >&6; }
michael@0 7217 else
michael@0 7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 7219 $as_echo "no" >&6; }
michael@0 7220 fi
michael@0 7221
michael@0 7222
michael@0 7223 fi
michael@0 7224 if test -z "$ac_cv_prog_OTOOL"; then
michael@0 7225 ac_ct_OTOOL=$OTOOL
michael@0 7226 # Extract the first word of "otool", so it can be a program name with args.
michael@0 7227 set dummy otool; ac_word=$2
michael@0 7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 7229 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 7230 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
michael@0 7231 $as_echo_n "(cached) " >&6
michael@0 7232 else
michael@0 7233 if test -n "$ac_ct_OTOOL"; then
michael@0 7234 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
michael@0 7235 else
michael@0 7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 7237 for as_dir in $PATH
michael@0 7238 do
michael@0 7239 IFS=$as_save_IFS
michael@0 7240 test -z "$as_dir" && as_dir=.
michael@0 7241 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 7243 ac_cv_prog_ac_ct_OTOOL="otool"
michael@0 7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 7245 break 2
michael@0 7246 fi
michael@0 7247 done
michael@0 7248 done
michael@0 7249 IFS=$as_save_IFS
michael@0 7250
michael@0 7251 fi
michael@0 7252 fi
michael@0 7253 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
michael@0 7254 if test -n "$ac_ct_OTOOL"; then
michael@0 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
michael@0 7256 $as_echo "$ac_ct_OTOOL" >&6; }
michael@0 7257 else
michael@0 7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 7259 $as_echo "no" >&6; }
michael@0 7260 fi
michael@0 7261
michael@0 7262 if test "x$ac_ct_OTOOL" = x; then
michael@0 7263 OTOOL=":"
michael@0 7264 else
michael@0 7265 case $cross_compiling:$ac_tool_warned in
michael@0 7266 yes:)
michael@0 7267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
michael@0 7268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
michael@0 7269 ac_tool_warned=yes ;;
michael@0 7270 esac
michael@0 7271 OTOOL=$ac_ct_OTOOL
michael@0 7272 fi
michael@0 7273 else
michael@0 7274 OTOOL="$ac_cv_prog_OTOOL"
michael@0 7275 fi
michael@0 7276
michael@0 7277 if test -n "$ac_tool_prefix"; then
michael@0 7278 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
michael@0 7279 set dummy ${ac_tool_prefix}otool64; ac_word=$2
michael@0 7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 7281 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 7282 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
michael@0 7283 $as_echo_n "(cached) " >&6
michael@0 7284 else
michael@0 7285 if test -n "$OTOOL64"; then
michael@0 7286 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
michael@0 7287 else
michael@0 7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 7289 for as_dir in $PATH
michael@0 7290 do
michael@0 7291 IFS=$as_save_IFS
michael@0 7292 test -z "$as_dir" && as_dir=.
michael@0 7293 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 7294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 7295 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
michael@0 7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 7297 break 2
michael@0 7298 fi
michael@0 7299 done
michael@0 7300 done
michael@0 7301 IFS=$as_save_IFS
michael@0 7302
michael@0 7303 fi
michael@0 7304 fi
michael@0 7305 OTOOL64=$ac_cv_prog_OTOOL64
michael@0 7306 if test -n "$OTOOL64"; then
michael@0 7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
michael@0 7308 $as_echo "$OTOOL64" >&6; }
michael@0 7309 else
michael@0 7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 7311 $as_echo "no" >&6; }
michael@0 7312 fi
michael@0 7313
michael@0 7314
michael@0 7315 fi
michael@0 7316 if test -z "$ac_cv_prog_OTOOL64"; then
michael@0 7317 ac_ct_OTOOL64=$OTOOL64
michael@0 7318 # Extract the first word of "otool64", so it can be a program name with args.
michael@0 7319 set dummy otool64; ac_word=$2
michael@0 7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 7321 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 7322 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
michael@0 7323 $as_echo_n "(cached) " >&6
michael@0 7324 else
michael@0 7325 if test -n "$ac_ct_OTOOL64"; then
michael@0 7326 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
michael@0 7327 else
michael@0 7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 7329 for as_dir in $PATH
michael@0 7330 do
michael@0 7331 IFS=$as_save_IFS
michael@0 7332 test -z "$as_dir" && as_dir=.
michael@0 7333 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 7334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 7335 ac_cv_prog_ac_ct_OTOOL64="otool64"
michael@0 7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 7337 break 2
michael@0 7338 fi
michael@0 7339 done
michael@0 7340 done
michael@0 7341 IFS=$as_save_IFS
michael@0 7342
michael@0 7343 fi
michael@0 7344 fi
michael@0 7345 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
michael@0 7346 if test -n "$ac_ct_OTOOL64"; then
michael@0 7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
michael@0 7348 $as_echo "$ac_ct_OTOOL64" >&6; }
michael@0 7349 else
michael@0 7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 7351 $as_echo "no" >&6; }
michael@0 7352 fi
michael@0 7353
michael@0 7354 if test "x$ac_ct_OTOOL64" = x; then
michael@0 7355 OTOOL64=":"
michael@0 7356 else
michael@0 7357 case $cross_compiling:$ac_tool_warned in
michael@0 7358 yes:)
michael@0 7359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
michael@0 7360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
michael@0 7361 ac_tool_warned=yes ;;
michael@0 7362 esac
michael@0 7363 OTOOL64=$ac_ct_OTOOL64
michael@0 7364 fi
michael@0 7365 else
michael@0 7366 OTOOL64="$ac_cv_prog_OTOOL64"
michael@0 7367 fi
michael@0 7368
michael@0 7369
michael@0 7370
michael@0 7371
michael@0 7372
michael@0 7373
michael@0 7374
michael@0 7375
michael@0 7376
michael@0 7377
michael@0 7378
michael@0 7379
michael@0 7380
michael@0 7381
michael@0 7382
michael@0 7383
michael@0 7384
michael@0 7385
michael@0 7386
michael@0 7387
michael@0 7388
michael@0 7389
michael@0 7390
michael@0 7391
michael@0 7392
michael@0 7393
michael@0 7394
michael@0 7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
michael@0 7396 $as_echo_n "checking for -single_module linker flag... " >&6; }
michael@0 7397 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
michael@0 7398 $as_echo_n "(cached) " >&6
michael@0 7399 else
michael@0 7400 lt_cv_apple_cc_single_mod=no
michael@0 7401 if test -z "${LT_MULTI_MODULE}"; then
michael@0 7402 # By default we will add the -single_module flag. You can override
michael@0 7403 # by either setting the environment variable LT_MULTI_MODULE
michael@0 7404 # non-empty at configure time, or by adding -multi_module to the
michael@0 7405 # link flags.
michael@0 7406 rm -rf libconftest.dylib*
michael@0 7407 echo "int foo(void){return 1;}" > conftest.c
michael@0 7408 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
michael@0 7409 -dynamiclib -Wl,-single_module conftest.c" >&5
michael@0 7410 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
michael@0 7411 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
michael@0 7412 _lt_result=$?
michael@0 7413 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
michael@0 7414 lt_cv_apple_cc_single_mod=yes
michael@0 7415 else
michael@0 7416 cat conftest.err >&5
michael@0 7417 fi
michael@0 7418 rm -rf libconftest.dylib*
michael@0 7419 rm -f conftest.*
michael@0 7420 fi
michael@0 7421 fi
michael@0 7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
michael@0 7423 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
michael@0 7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
michael@0 7425 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
michael@0 7426 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
michael@0 7427 $as_echo_n "(cached) " >&6
michael@0 7428 else
michael@0 7429 lt_cv_ld_exported_symbols_list=no
michael@0 7430 save_LDFLAGS=$LDFLAGS
michael@0 7431 echo "_main" > conftest.sym
michael@0 7432 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
michael@0 7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 7434 /* end confdefs.h. */
michael@0 7435
michael@0 7436 int
michael@0 7437 main ()
michael@0 7438 {
michael@0 7439
michael@0 7440 ;
michael@0 7441 return 0;
michael@0 7442 }
michael@0 7443 _ACEOF
michael@0 7444 if ac_fn_c_try_link "$LINENO"; then :
michael@0 7445 lt_cv_ld_exported_symbols_list=yes
michael@0 7446 else
michael@0 7447 lt_cv_ld_exported_symbols_list=no
michael@0 7448 fi
michael@0 7449 rm -f core conftest.err conftest.$ac_objext \
michael@0 7450 conftest$ac_exeext conftest.$ac_ext
michael@0 7451 LDFLAGS="$save_LDFLAGS"
michael@0 7452
michael@0 7453 fi
michael@0 7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
michael@0 7455 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
michael@0 7456 case $host_os in
michael@0 7457 rhapsody* | darwin1.[012])
michael@0 7458 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
michael@0 7459 darwin1.*)
michael@0 7460 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
michael@0 7461 darwin*) # darwin 5.x on
michael@0 7462 # if running on 10.5 or later, the deployment target defaults
michael@0 7463 # to the OS version, if on x86, and 10.4, the deployment
michael@0 7464 # target defaults to 10.4. Don't you love it?
michael@0 7465 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
michael@0 7466 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
michael@0 7467 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
michael@0 7468 10.[012]*)
michael@0 7469 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
michael@0 7470 10.*)
michael@0 7471 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
michael@0 7472 esac
michael@0 7473 ;;
michael@0 7474 esac
michael@0 7475 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
michael@0 7476 _lt_dar_single_mod='$single_module'
michael@0 7477 fi
michael@0 7478 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
michael@0 7479 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
michael@0 7480 else
michael@0 7481 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
michael@0 7482 fi
michael@0 7483 if test "$DSYMUTIL" != ":"; then
michael@0 7484 _lt_dsymutil='~$DSYMUTIL $lib || :'
michael@0 7485 else
michael@0 7486 _lt_dsymutil=
michael@0 7487 fi
michael@0 7488 ;;
michael@0 7489 esac
michael@0 7490
michael@0 7491
michael@0 7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
michael@0 7493 $as_echo_n "checking for ANSI C header files... " >&6; }
michael@0 7494 if test "${ac_cv_header_stdc+set}" = set; then :
michael@0 7495 $as_echo_n "(cached) " >&6
michael@0 7496 else
michael@0 7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 7498 /* end confdefs.h. */
michael@0 7499 #include <stdlib.h>
michael@0 7500 #include <stdarg.h>
michael@0 7501 #include <string.h>
michael@0 7502 #include <float.h>
michael@0 7503
michael@0 7504 int
michael@0 7505 main ()
michael@0 7506 {
michael@0 7507
michael@0 7508 ;
michael@0 7509 return 0;
michael@0 7510 }
michael@0 7511 _ACEOF
michael@0 7512 if ac_fn_c_try_compile "$LINENO"; then :
michael@0 7513 ac_cv_header_stdc=yes
michael@0 7514 else
michael@0 7515 ac_cv_header_stdc=no
michael@0 7516 fi
michael@0 7517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 7518
michael@0 7519 if test $ac_cv_header_stdc = yes; then
michael@0 7520 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
michael@0 7521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 7522 /* end confdefs.h. */
michael@0 7523 #include <string.h>
michael@0 7524
michael@0 7525 _ACEOF
michael@0 7526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
michael@0 7527 $EGREP "memchr" >/dev/null 2>&1; then :
michael@0 7528
michael@0 7529 else
michael@0 7530 ac_cv_header_stdc=no
michael@0 7531 fi
michael@0 7532 rm -f conftest*
michael@0 7533
michael@0 7534 fi
michael@0 7535
michael@0 7536 if test $ac_cv_header_stdc = yes; then
michael@0 7537 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
michael@0 7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 7539 /* end confdefs.h. */
michael@0 7540 #include <stdlib.h>
michael@0 7541
michael@0 7542 _ACEOF
michael@0 7543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
michael@0 7544 $EGREP "free" >/dev/null 2>&1; then :
michael@0 7545
michael@0 7546 else
michael@0 7547 ac_cv_header_stdc=no
michael@0 7548 fi
michael@0 7549 rm -f conftest*
michael@0 7550
michael@0 7551 fi
michael@0 7552
michael@0 7553 if test $ac_cv_header_stdc = yes; then
michael@0 7554 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
michael@0 7555 if test "$cross_compiling" = yes; then :
michael@0 7556 :
michael@0 7557 else
michael@0 7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 7559 /* end confdefs.h. */
michael@0 7560 #include <ctype.h>
michael@0 7561 #include <stdlib.h>
michael@0 7562 #if ((' ' & 0x0FF) == 0x020)
michael@0 7563 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
michael@0 7564 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
michael@0 7565 #else
michael@0 7566 # define ISLOWER(c) \
michael@0 7567 (('a' <= (c) && (c) <= 'i') \
michael@0 7568 || ('j' <= (c) && (c) <= 'r') \
michael@0 7569 || ('s' <= (c) && (c) <= 'z'))
michael@0 7570 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
michael@0 7571 #endif
michael@0 7572
michael@0 7573 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
michael@0 7574 int
michael@0 7575 main ()
michael@0 7576 {
michael@0 7577 int i;
michael@0 7578 for (i = 0; i < 256; i++)
michael@0 7579 if (XOR (islower (i), ISLOWER (i))
michael@0 7580 || toupper (i) != TOUPPER (i))
michael@0 7581 return 2;
michael@0 7582 return 0;
michael@0 7583 }
michael@0 7584 _ACEOF
michael@0 7585 if ac_fn_c_try_run "$LINENO"; then :
michael@0 7586
michael@0 7587 else
michael@0 7588 ac_cv_header_stdc=no
michael@0 7589 fi
michael@0 7590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
michael@0 7591 conftest.$ac_objext conftest.beam conftest.$ac_ext
michael@0 7592 fi
michael@0 7593
michael@0 7594 fi
michael@0 7595 fi
michael@0 7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
michael@0 7597 $as_echo "$ac_cv_header_stdc" >&6; }
michael@0 7598 if test $ac_cv_header_stdc = yes; then
michael@0 7599
michael@0 7600 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
michael@0 7601
michael@0 7602 fi
michael@0 7603
michael@0 7604 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
michael@0 7605 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
michael@0 7606 inttypes.h stdint.h unistd.h
michael@0 7607 do :
michael@0 7608 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
michael@0 7609 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
michael@0 7610 "
michael@0 7611 eval as_val=\$$as_ac_Header
michael@0 7612 if test "x$as_val" = x""yes; then :
michael@0 7613 cat >>confdefs.h <<_ACEOF
michael@0 7614 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
michael@0 7615 _ACEOF
michael@0 7616
michael@0 7617 fi
michael@0 7618
michael@0 7619 done
michael@0 7620
michael@0 7621
michael@0 7622 for ac_header in dlfcn.h
michael@0 7623 do :
michael@0 7624 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
michael@0 7625 "
michael@0 7626 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
michael@0 7627 cat >>confdefs.h <<_ACEOF
michael@0 7628 #define HAVE_DLFCN_H 1
michael@0 7629 _ACEOF
michael@0 7630
michael@0 7631 fi
michael@0 7632
michael@0 7633 done
michael@0 7634
michael@0 7635
michael@0 7636
michael@0 7637 ac_ext=cpp
michael@0 7638 ac_cpp='$CXXCPP $CPPFLAGS'
michael@0 7639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
michael@0 7640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
michael@0 7641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
michael@0 7642 if test -z "$CXX"; then
michael@0 7643 if test -n "$CCC"; then
michael@0 7644 CXX=$CCC
michael@0 7645 else
michael@0 7646 if test -n "$ac_tool_prefix"; then
michael@0 7647 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
michael@0 7648 do
michael@0 7649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
michael@0 7650 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
michael@0 7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 7652 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 7653 if test "${ac_cv_prog_CXX+set}" = set; then :
michael@0 7654 $as_echo_n "(cached) " >&6
michael@0 7655 else
michael@0 7656 if test -n "$CXX"; then
michael@0 7657 ac_cv_prog_CXX="$CXX" # Let the user override the test.
michael@0 7658 else
michael@0 7659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 7660 for as_dir in $PATH
michael@0 7661 do
michael@0 7662 IFS=$as_save_IFS
michael@0 7663 test -z "$as_dir" && as_dir=.
michael@0 7664 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 7665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 7666 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
michael@0 7667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 7668 break 2
michael@0 7669 fi
michael@0 7670 done
michael@0 7671 done
michael@0 7672 IFS=$as_save_IFS
michael@0 7673
michael@0 7674 fi
michael@0 7675 fi
michael@0 7676 CXX=$ac_cv_prog_CXX
michael@0 7677 if test -n "$CXX"; then
michael@0 7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
michael@0 7679 $as_echo "$CXX" >&6; }
michael@0 7680 else
michael@0 7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 7682 $as_echo "no" >&6; }
michael@0 7683 fi
michael@0 7684
michael@0 7685
michael@0 7686 test -n "$CXX" && break
michael@0 7687 done
michael@0 7688 fi
michael@0 7689 if test -z "$CXX"; then
michael@0 7690 ac_ct_CXX=$CXX
michael@0 7691 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
michael@0 7692 do
michael@0 7693 # Extract the first word of "$ac_prog", so it can be a program name with args.
michael@0 7694 set dummy $ac_prog; ac_word=$2
michael@0 7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 7696 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 7697 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
michael@0 7698 $as_echo_n "(cached) " >&6
michael@0 7699 else
michael@0 7700 if test -n "$ac_ct_CXX"; then
michael@0 7701 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
michael@0 7702 else
michael@0 7703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 7704 for as_dir in $PATH
michael@0 7705 do
michael@0 7706 IFS=$as_save_IFS
michael@0 7707 test -z "$as_dir" && as_dir=.
michael@0 7708 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 7709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 7710 ac_cv_prog_ac_ct_CXX="$ac_prog"
michael@0 7711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 7712 break 2
michael@0 7713 fi
michael@0 7714 done
michael@0 7715 done
michael@0 7716 IFS=$as_save_IFS
michael@0 7717
michael@0 7718 fi
michael@0 7719 fi
michael@0 7720 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
michael@0 7721 if test -n "$ac_ct_CXX"; then
michael@0 7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
michael@0 7723 $as_echo "$ac_ct_CXX" >&6; }
michael@0 7724 else
michael@0 7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 7726 $as_echo "no" >&6; }
michael@0 7727 fi
michael@0 7728
michael@0 7729
michael@0 7730 test -n "$ac_ct_CXX" && break
michael@0 7731 done
michael@0 7732
michael@0 7733 if test "x$ac_ct_CXX" = x; then
michael@0 7734 CXX="g++"
michael@0 7735 else
michael@0 7736 case $cross_compiling:$ac_tool_warned in
michael@0 7737 yes:)
michael@0 7738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
michael@0 7739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
michael@0 7740 ac_tool_warned=yes ;;
michael@0 7741 esac
michael@0 7742 CXX=$ac_ct_CXX
michael@0 7743 fi
michael@0 7744 fi
michael@0 7745
michael@0 7746 fi
michael@0 7747 fi
michael@0 7748 # Provide some information about the compiler.
michael@0 7749 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
michael@0 7750 set X $ac_compile
michael@0 7751 ac_compiler=$2
michael@0 7752 for ac_option in --version -v -V -qversion; do
michael@0 7753 { { ac_try="$ac_compiler $ac_option >&5"
michael@0 7754 case "(($ac_try" in
michael@0 7755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
michael@0 7756 *) ac_try_echo=$ac_try;;
michael@0 7757 esac
michael@0 7758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
michael@0 7759 $as_echo "$ac_try_echo"; } >&5
michael@0 7760 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
michael@0 7761 ac_status=$?
michael@0 7762 if test -s conftest.err; then
michael@0 7763 sed '10a\
michael@0 7764 ... rest of stderr output deleted ...
michael@0 7765 10q' conftest.err >conftest.er1
michael@0 7766 cat conftest.er1 >&5
michael@0 7767 fi
michael@0 7768 rm -f conftest.er1 conftest.err
michael@0 7769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 7770 test $ac_status = 0; }
michael@0 7771 done
michael@0 7772
michael@0 7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
michael@0 7774 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
michael@0 7775 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
michael@0 7776 $as_echo_n "(cached) " >&6
michael@0 7777 else
michael@0 7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 7779 /* end confdefs.h. */
michael@0 7780
michael@0 7781 int
michael@0 7782 main ()
michael@0 7783 {
michael@0 7784 #ifndef __GNUC__
michael@0 7785 choke me
michael@0 7786 #endif
michael@0 7787
michael@0 7788 ;
michael@0 7789 return 0;
michael@0 7790 }
michael@0 7791 _ACEOF
michael@0 7792 if ac_fn_cxx_try_compile "$LINENO"; then :
michael@0 7793 ac_compiler_gnu=yes
michael@0 7794 else
michael@0 7795 ac_compiler_gnu=no
michael@0 7796 fi
michael@0 7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 7798 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
michael@0 7799
michael@0 7800 fi
michael@0 7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
michael@0 7802 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
michael@0 7803 if test $ac_compiler_gnu = yes; then
michael@0 7804 GXX=yes
michael@0 7805 else
michael@0 7806 GXX=
michael@0 7807 fi
michael@0 7808 ac_test_CXXFLAGS=${CXXFLAGS+set}
michael@0 7809 ac_save_CXXFLAGS=$CXXFLAGS
michael@0 7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
michael@0 7811 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
michael@0 7812 if test "${ac_cv_prog_cxx_g+set}" = set; then :
michael@0 7813 $as_echo_n "(cached) " >&6
michael@0 7814 else
michael@0 7815 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
michael@0 7816 ac_cxx_werror_flag=yes
michael@0 7817 ac_cv_prog_cxx_g=no
michael@0 7818 CXXFLAGS="-g"
michael@0 7819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 7820 /* end confdefs.h. */
michael@0 7821
michael@0 7822 int
michael@0 7823 main ()
michael@0 7824 {
michael@0 7825
michael@0 7826 ;
michael@0 7827 return 0;
michael@0 7828 }
michael@0 7829 _ACEOF
michael@0 7830 if ac_fn_cxx_try_compile "$LINENO"; then :
michael@0 7831 ac_cv_prog_cxx_g=yes
michael@0 7832 else
michael@0 7833 CXXFLAGS=""
michael@0 7834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 7835 /* end confdefs.h. */
michael@0 7836
michael@0 7837 int
michael@0 7838 main ()
michael@0 7839 {
michael@0 7840
michael@0 7841 ;
michael@0 7842 return 0;
michael@0 7843 }
michael@0 7844 _ACEOF
michael@0 7845 if ac_fn_cxx_try_compile "$LINENO"; then :
michael@0 7846
michael@0 7847 else
michael@0 7848 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
michael@0 7849 CXXFLAGS="-g"
michael@0 7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 7851 /* end confdefs.h. */
michael@0 7852
michael@0 7853 int
michael@0 7854 main ()
michael@0 7855 {
michael@0 7856
michael@0 7857 ;
michael@0 7858 return 0;
michael@0 7859 }
michael@0 7860 _ACEOF
michael@0 7861 if ac_fn_cxx_try_compile "$LINENO"; then :
michael@0 7862 ac_cv_prog_cxx_g=yes
michael@0 7863 fi
michael@0 7864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 7865 fi
michael@0 7866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 7867 fi
michael@0 7868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 7869 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
michael@0 7870 fi
michael@0 7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
michael@0 7872 $as_echo "$ac_cv_prog_cxx_g" >&6; }
michael@0 7873 if test "$ac_test_CXXFLAGS" = set; then
michael@0 7874 CXXFLAGS=$ac_save_CXXFLAGS
michael@0 7875 elif test $ac_cv_prog_cxx_g = yes; then
michael@0 7876 if test "$GXX" = yes; then
michael@0 7877 CXXFLAGS="-g -O2"
michael@0 7878 else
michael@0 7879 CXXFLAGS="-g"
michael@0 7880 fi
michael@0 7881 else
michael@0 7882 if test "$GXX" = yes; then
michael@0 7883 CXXFLAGS="-O2"
michael@0 7884 else
michael@0 7885 CXXFLAGS=
michael@0 7886 fi
michael@0 7887 fi
michael@0 7888 ac_ext=cpp
michael@0 7889 ac_cpp='$CXXCPP $CPPFLAGS'
michael@0 7890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
michael@0 7891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
michael@0 7892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
michael@0 7893
michael@0 7894 depcc="$CXX" am_compiler_list=
michael@0 7895
michael@0 7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
michael@0 7897 $as_echo_n "checking dependency style of $depcc... " >&6; }
michael@0 7898 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
michael@0 7899 $as_echo_n "(cached) " >&6
michael@0 7900 else
michael@0 7901 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
michael@0 7902 # We make a subdir and do the tests there. Otherwise we can end up
michael@0 7903 # making bogus files that we don't know about and never remove. For
michael@0 7904 # instance it was reported that on HP-UX the gcc test will end up
michael@0 7905 # making a dummy file named `D' -- because `-MD' means `put the output
michael@0 7906 # in D'.
michael@0 7907 mkdir conftest.dir
michael@0 7908 # Copy depcomp to subdir because otherwise we won't find it if we're
michael@0 7909 # using a relative directory.
michael@0 7910 cp "$am_depcomp" conftest.dir
michael@0 7911 cd conftest.dir
michael@0 7912 # We will build objects and dependencies in a subdirectory because
michael@0 7913 # it helps to detect inapplicable dependency modes. For instance
michael@0 7914 # both Tru64's cc and ICC support -MD to output dependencies as a
michael@0 7915 # side effect of compilation, but ICC will put the dependencies in
michael@0 7916 # the current directory while Tru64 will put them in the object
michael@0 7917 # directory.
michael@0 7918 mkdir sub
michael@0 7919
michael@0 7920 am_cv_CXX_dependencies_compiler_type=none
michael@0 7921 if test "$am_compiler_list" = ""; then
michael@0 7922 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
michael@0 7923 fi
michael@0 7924 am__universal=false
michael@0 7925 case " $depcc " in #(
michael@0 7926 *\ -arch\ *\ -arch\ *) am__universal=true ;;
michael@0 7927 esac
michael@0 7928
michael@0 7929 for depmode in $am_compiler_list; do
michael@0 7930 # Setup a source with many dependencies, because some compilers
michael@0 7931 # like to wrap large dependency lists on column 80 (with \), and
michael@0 7932 # we should not choose a depcomp mode which is confused by this.
michael@0 7933 #
michael@0 7934 # We need to recreate these files for each test, as the compiler may
michael@0 7935 # overwrite some of them when testing with obscure command lines.
michael@0 7936 # This happens at least with the AIX C compiler.
michael@0 7937 : > sub/conftest.c
michael@0 7938 for i in 1 2 3 4 5 6; do
michael@0 7939 echo '#include "conftst'$i'.h"' >> sub/conftest.c
michael@0 7940 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
michael@0 7941 # Solaris 8's {/usr,}/bin/sh.
michael@0 7942 touch sub/conftst$i.h
michael@0 7943 done
michael@0 7944 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
michael@0 7945
michael@0 7946 # We check with `-c' and `-o' for the sake of the "dashmstdout"
michael@0 7947 # mode. It turns out that the SunPro C++ compiler does not properly
michael@0 7948 # handle `-M -o', and we need to detect this. Also, some Intel
michael@0 7949 # versions had trouble with output in subdirs
michael@0 7950 am__obj=sub/conftest.${OBJEXT-o}
michael@0 7951 am__minus_obj="-o $am__obj"
michael@0 7952 case $depmode in
michael@0 7953 gcc)
michael@0 7954 # This depmode causes a compiler race in universal mode.
michael@0 7955 test "$am__universal" = false || continue
michael@0 7956 ;;
michael@0 7957 nosideeffect)
michael@0 7958 # after this tag, mechanisms are not by side-effect, so they'll
michael@0 7959 # only be used when explicitly requested
michael@0 7960 if test "x$enable_dependency_tracking" = xyes; then
michael@0 7961 continue
michael@0 7962 else
michael@0 7963 break
michael@0 7964 fi
michael@0 7965 ;;
michael@0 7966 msvisualcpp | msvcmsys)
michael@0 7967 # This compiler won't grok `-c -o', but also, the minuso test has
michael@0 7968 # not run yet. These depmodes are late enough in the game, and
michael@0 7969 # so weak that their functioning should not be impacted.
michael@0 7970 am__obj=conftest.${OBJEXT-o}
michael@0 7971 am__minus_obj=
michael@0 7972 ;;
michael@0 7973 none) break ;;
michael@0 7974 esac
michael@0 7975 if depmode=$depmode \
michael@0 7976 source=sub/conftest.c object=$am__obj \
michael@0 7977 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
michael@0 7978 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
michael@0 7979 >/dev/null 2>conftest.err &&
michael@0 7980 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
michael@0 7981 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
michael@0 7982 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
michael@0 7983 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
michael@0 7984 # icc doesn't choke on unknown options, it will just issue warnings
michael@0 7985 # or remarks (even with -Werror). So we grep stderr for any message
michael@0 7986 # that says an option was ignored or not supported.
michael@0 7987 # When given -MP, icc 7.0 and 7.1 complain thusly:
michael@0 7988 # icc: Command line warning: ignoring option '-M'; no argument required
michael@0 7989 # The diagnosis changed in icc 8.0:
michael@0 7990 # icc: Command line remark: option '-MP' not supported
michael@0 7991 if (grep 'ignoring option' conftest.err ||
michael@0 7992 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
michael@0 7993 am_cv_CXX_dependencies_compiler_type=$depmode
michael@0 7994 break
michael@0 7995 fi
michael@0 7996 fi
michael@0 7997 done
michael@0 7998
michael@0 7999 cd ..
michael@0 8000 rm -rf conftest.dir
michael@0 8001 else
michael@0 8002 am_cv_CXX_dependencies_compiler_type=none
michael@0 8003 fi
michael@0 8004
michael@0 8005 fi
michael@0 8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
michael@0 8007 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
michael@0 8008 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
michael@0 8009
michael@0 8010 if
michael@0 8011 test "x$enable_dependency_tracking" != xno \
michael@0 8012 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
michael@0 8013 am__fastdepCXX_TRUE=
michael@0 8014 am__fastdepCXX_FALSE='#'
michael@0 8015 else
michael@0 8016 am__fastdepCXX_TRUE='#'
michael@0 8017 am__fastdepCXX_FALSE=
michael@0 8018 fi
michael@0 8019
michael@0 8020
michael@0 8021 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
michael@0 8022 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
michael@0 8023 (test "X$CXX" != "Xg++"))) ; then
michael@0 8024 ac_ext=cpp
michael@0 8025 ac_cpp='$CXXCPP $CPPFLAGS'
michael@0 8026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
michael@0 8027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
michael@0 8028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
michael@0 8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
michael@0 8030 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
michael@0 8031 if test -z "$CXXCPP"; then
michael@0 8032 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
michael@0 8033 $as_echo_n "(cached) " >&6
michael@0 8034 else
michael@0 8035 # Double quotes because CXXCPP needs to be expanded
michael@0 8036 for CXXCPP in "$CXX -E" "/lib/cpp"
michael@0 8037 do
michael@0 8038 ac_preproc_ok=false
michael@0 8039 for ac_cxx_preproc_warn_flag in '' yes
michael@0 8040 do
michael@0 8041 # Use a header file that comes with gcc, so configuring glibc
michael@0 8042 # with a fresh cross-compiler works.
michael@0 8043 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
michael@0 8044 # <limits.h> exists even on freestanding compilers.
michael@0 8045 # On the NeXT, cc -E runs the code through the compiler's parser,
michael@0 8046 # not just through cpp. "Syntax error" is here to catch this case.
michael@0 8047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 8048 /* end confdefs.h. */
michael@0 8049 #ifdef __STDC__
michael@0 8050 # include <limits.h>
michael@0 8051 #else
michael@0 8052 # include <assert.h>
michael@0 8053 #endif
michael@0 8054 Syntax error
michael@0 8055 _ACEOF
michael@0 8056 if ac_fn_cxx_try_cpp "$LINENO"; then :
michael@0 8057
michael@0 8058 else
michael@0 8059 # Broken: fails on valid input.
michael@0 8060 continue
michael@0 8061 fi
michael@0 8062 rm -f conftest.err conftest.$ac_ext
michael@0 8063
michael@0 8064 # OK, works on sane cases. Now check whether nonexistent headers
michael@0 8065 # can be detected and how.
michael@0 8066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 8067 /* end confdefs.h. */
michael@0 8068 #include <ac_nonexistent.h>
michael@0 8069 _ACEOF
michael@0 8070 if ac_fn_cxx_try_cpp "$LINENO"; then :
michael@0 8071 # Broken: success on invalid input.
michael@0 8072 continue
michael@0 8073 else
michael@0 8074 # Passes both tests.
michael@0 8075 ac_preproc_ok=:
michael@0 8076 break
michael@0 8077 fi
michael@0 8078 rm -f conftest.err conftest.$ac_ext
michael@0 8079
michael@0 8080 done
michael@0 8081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
michael@0 8082 rm -f conftest.err conftest.$ac_ext
michael@0 8083 if $ac_preproc_ok; then :
michael@0 8084 break
michael@0 8085 fi
michael@0 8086
michael@0 8087 done
michael@0 8088 ac_cv_prog_CXXCPP=$CXXCPP
michael@0 8089
michael@0 8090 fi
michael@0 8091 CXXCPP=$ac_cv_prog_CXXCPP
michael@0 8092 else
michael@0 8093 ac_cv_prog_CXXCPP=$CXXCPP
michael@0 8094 fi
michael@0 8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
michael@0 8096 $as_echo "$CXXCPP" >&6; }
michael@0 8097 ac_preproc_ok=false
michael@0 8098 for ac_cxx_preproc_warn_flag in '' yes
michael@0 8099 do
michael@0 8100 # Use a header file that comes with gcc, so configuring glibc
michael@0 8101 # with a fresh cross-compiler works.
michael@0 8102 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
michael@0 8103 # <limits.h> exists even on freestanding compilers.
michael@0 8104 # On the NeXT, cc -E runs the code through the compiler's parser,
michael@0 8105 # not just through cpp. "Syntax error" is here to catch this case.
michael@0 8106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 8107 /* end confdefs.h. */
michael@0 8108 #ifdef __STDC__
michael@0 8109 # include <limits.h>
michael@0 8110 #else
michael@0 8111 # include <assert.h>
michael@0 8112 #endif
michael@0 8113 Syntax error
michael@0 8114 _ACEOF
michael@0 8115 if ac_fn_cxx_try_cpp "$LINENO"; then :
michael@0 8116
michael@0 8117 else
michael@0 8118 # Broken: fails on valid input.
michael@0 8119 continue
michael@0 8120 fi
michael@0 8121 rm -f conftest.err conftest.$ac_ext
michael@0 8122
michael@0 8123 # OK, works on sane cases. Now check whether nonexistent headers
michael@0 8124 # can be detected and how.
michael@0 8125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 8126 /* end confdefs.h. */
michael@0 8127 #include <ac_nonexistent.h>
michael@0 8128 _ACEOF
michael@0 8129 if ac_fn_cxx_try_cpp "$LINENO"; then :
michael@0 8130 # Broken: success on invalid input.
michael@0 8131 continue
michael@0 8132 else
michael@0 8133 # Passes both tests.
michael@0 8134 ac_preproc_ok=:
michael@0 8135 break
michael@0 8136 fi
michael@0 8137 rm -f conftest.err conftest.$ac_ext
michael@0 8138
michael@0 8139 done
michael@0 8140 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
michael@0 8141 rm -f conftest.err conftest.$ac_ext
michael@0 8142 if $ac_preproc_ok; then :
michael@0 8143
michael@0 8144 else
michael@0 8145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
michael@0 8146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
michael@0 8147 _lt_caught_CXX_error=yes; }
michael@0 8148 fi
michael@0 8149
michael@0 8150 ac_ext=cpp
michael@0 8151 ac_cpp='$CXXCPP $CPPFLAGS'
michael@0 8152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
michael@0 8153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
michael@0 8154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
michael@0 8155
michael@0 8156 else
michael@0 8157 _lt_caught_CXX_error=yes
michael@0 8158 fi
michael@0 8159
michael@0 8160
michael@0 8161
michael@0 8162
michael@0 8163
michael@0 8164 # Set options
michael@0 8165
michael@0 8166
michael@0 8167
michael@0 8168 enable_dlopen=no
michael@0 8169
michael@0 8170
michael@0 8171 enable_win32_dll=no
michael@0 8172
michael@0 8173
michael@0 8174 # Check whether --enable-shared was given.
michael@0 8175 if test "${enable_shared+set}" = set; then :
michael@0 8176 enableval=$enable_shared; p=${PACKAGE-default}
michael@0 8177 case $enableval in
michael@0 8178 yes) enable_shared=yes ;;
michael@0 8179 no) enable_shared=no ;;
michael@0 8180 *)
michael@0 8181 enable_shared=no
michael@0 8182 # Look at the argument we got. We use all the common list separators.
michael@0 8183 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
michael@0 8184 for pkg in $enableval; do
michael@0 8185 IFS="$lt_save_ifs"
michael@0 8186 if test "X$pkg" = "X$p"; then
michael@0 8187 enable_shared=yes
michael@0 8188 fi
michael@0 8189 done
michael@0 8190 IFS="$lt_save_ifs"
michael@0 8191 ;;
michael@0 8192 esac
michael@0 8193 else
michael@0 8194 enable_shared=yes
michael@0 8195 fi
michael@0 8196
michael@0 8197
michael@0 8198
michael@0 8199
michael@0 8200
michael@0 8201
michael@0 8202
michael@0 8203
michael@0 8204
michael@0 8205 # Check whether --enable-static was given.
michael@0 8206 if test "${enable_static+set}" = set; then :
michael@0 8207 enableval=$enable_static; p=${PACKAGE-default}
michael@0 8208 case $enableval in
michael@0 8209 yes) enable_static=yes ;;
michael@0 8210 no) enable_static=no ;;
michael@0 8211 *)
michael@0 8212 enable_static=no
michael@0 8213 # Look at the argument we got. We use all the common list separators.
michael@0 8214 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
michael@0 8215 for pkg in $enableval; do
michael@0 8216 IFS="$lt_save_ifs"
michael@0 8217 if test "X$pkg" = "X$p"; then
michael@0 8218 enable_static=yes
michael@0 8219 fi
michael@0 8220 done
michael@0 8221 IFS="$lt_save_ifs"
michael@0 8222 ;;
michael@0 8223 esac
michael@0 8224 else
michael@0 8225 enable_static=yes
michael@0 8226 fi
michael@0 8227
michael@0 8228
michael@0 8229
michael@0 8230
michael@0 8231
michael@0 8232
michael@0 8233
michael@0 8234
michael@0 8235
michael@0 8236
michael@0 8237 # Check whether --with-pic was given.
michael@0 8238 if test "${with_pic+set}" = set; then :
michael@0 8239 withval=$with_pic; pic_mode="$withval"
michael@0 8240 else
michael@0 8241 pic_mode=default
michael@0 8242 fi
michael@0 8243
michael@0 8244
michael@0 8245 test -z "$pic_mode" && pic_mode=default
michael@0 8246
michael@0 8247
michael@0 8248
michael@0 8249
michael@0 8250
michael@0 8251
michael@0 8252
michael@0 8253 # Check whether --enable-fast-install was given.
michael@0 8254 if test "${enable_fast_install+set}" = set; then :
michael@0 8255 enableval=$enable_fast_install; p=${PACKAGE-default}
michael@0 8256 case $enableval in
michael@0 8257 yes) enable_fast_install=yes ;;
michael@0 8258 no) enable_fast_install=no ;;
michael@0 8259 *)
michael@0 8260 enable_fast_install=no
michael@0 8261 # Look at the argument we got. We use all the common list separators.
michael@0 8262 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
michael@0 8263 for pkg in $enableval; do
michael@0 8264 IFS="$lt_save_ifs"
michael@0 8265 if test "X$pkg" = "X$p"; then
michael@0 8266 enable_fast_install=yes
michael@0 8267 fi
michael@0 8268 done
michael@0 8269 IFS="$lt_save_ifs"
michael@0 8270 ;;
michael@0 8271 esac
michael@0 8272 else
michael@0 8273 enable_fast_install=yes
michael@0 8274 fi
michael@0 8275
michael@0 8276
michael@0 8277
michael@0 8278
michael@0 8279
michael@0 8280
michael@0 8281
michael@0 8282
michael@0 8283
michael@0 8284
michael@0 8285
michael@0 8286 # This can be used to rebuild libtool when needed
michael@0 8287 LIBTOOL_DEPS="$ltmain"
michael@0 8288
michael@0 8289 # Always use our own libtool.
michael@0 8290 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
michael@0 8291
michael@0 8292
michael@0 8293
michael@0 8294
michael@0 8295
michael@0 8296
michael@0 8297
michael@0 8298
michael@0 8299
michael@0 8300
michael@0 8301
michael@0 8302
michael@0 8303
michael@0 8304
michael@0 8305
michael@0 8306
michael@0 8307
michael@0 8308
michael@0 8309
michael@0 8310
michael@0 8311
michael@0 8312
michael@0 8313
michael@0 8314
michael@0 8315
michael@0 8316 test -z "$LN_S" && LN_S="ln -s"
michael@0 8317
michael@0 8318
michael@0 8319
michael@0 8320
michael@0 8321
michael@0 8322
michael@0 8323
michael@0 8324
michael@0 8325
michael@0 8326
michael@0 8327
michael@0 8328
michael@0 8329
michael@0 8330
michael@0 8331 if test -n "${ZSH_VERSION+set}" ; then
michael@0 8332 setopt NO_GLOB_SUBST
michael@0 8333 fi
michael@0 8334
michael@0 8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
michael@0 8336 $as_echo_n "checking for objdir... " >&6; }
michael@0 8337 if test "${lt_cv_objdir+set}" = set; then :
michael@0 8338 $as_echo_n "(cached) " >&6
michael@0 8339 else
michael@0 8340 rm -f .libs 2>/dev/null
michael@0 8341 mkdir .libs 2>/dev/null
michael@0 8342 if test -d .libs; then
michael@0 8343 lt_cv_objdir=.libs
michael@0 8344 else
michael@0 8345 # MS-DOS does not allow filenames that begin with a dot.
michael@0 8346 lt_cv_objdir=_libs
michael@0 8347 fi
michael@0 8348 rmdir .libs 2>/dev/null
michael@0 8349 fi
michael@0 8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
michael@0 8351 $as_echo "$lt_cv_objdir" >&6; }
michael@0 8352 objdir=$lt_cv_objdir
michael@0 8353
michael@0 8354
michael@0 8355
michael@0 8356
michael@0 8357
michael@0 8358 cat >>confdefs.h <<_ACEOF
michael@0 8359 #define LT_OBJDIR "$lt_cv_objdir/"
michael@0 8360 _ACEOF
michael@0 8361
michael@0 8362
michael@0 8363
michael@0 8364
michael@0 8365
michael@0 8366
michael@0 8367
michael@0 8368
michael@0 8369
michael@0 8370
michael@0 8371
michael@0 8372
michael@0 8373
michael@0 8374
michael@0 8375
michael@0 8376
michael@0 8377
michael@0 8378 case $host_os in
michael@0 8379 aix3*)
michael@0 8380 # AIX sometimes has problems with the GCC collect2 program. For some
michael@0 8381 # reason, if we set the COLLECT_NAMES environment variable, the problems
michael@0 8382 # vanish in a puff of smoke.
michael@0 8383 if test "X${COLLECT_NAMES+set}" != Xset; then
michael@0 8384 COLLECT_NAMES=
michael@0 8385 export COLLECT_NAMES
michael@0 8386 fi
michael@0 8387 ;;
michael@0 8388 esac
michael@0 8389
michael@0 8390 # Sed substitution that helps us do robust quoting. It backslashifies
michael@0 8391 # metacharacters that are still active within double-quoted strings.
michael@0 8392 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
michael@0 8393
michael@0 8394 # Same as above, but do not quote variable references.
michael@0 8395 double_quote_subst='s/\(["`\\]\)/\\\1/g'
michael@0 8396
michael@0 8397 # Sed substitution to delay expansion of an escaped shell variable in a
michael@0 8398 # double_quote_subst'ed string.
michael@0 8399 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
michael@0 8400
michael@0 8401 # Sed substitution to delay expansion of an escaped single quote.
michael@0 8402 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
michael@0 8403
michael@0 8404 # Sed substitution to avoid accidental globbing in evaled expressions
michael@0 8405 no_glob_subst='s/\*/\\\*/g'
michael@0 8406
michael@0 8407 # Global variables:
michael@0 8408 ofile=libtool
michael@0 8409 can_build_shared=yes
michael@0 8410
michael@0 8411 # All known linkers require a `.a' archive for static linking (except MSVC,
michael@0 8412 # which needs '.lib').
michael@0 8413 libext=a
michael@0 8414
michael@0 8415 with_gnu_ld="$lt_cv_prog_gnu_ld"
michael@0 8416
michael@0 8417 old_CC="$CC"
michael@0 8418 old_CFLAGS="$CFLAGS"
michael@0 8419
michael@0 8420 # Set sane defaults for various variables
michael@0 8421 test -z "$CC" && CC=cc
michael@0 8422 test -z "$LTCC" && LTCC=$CC
michael@0 8423 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
michael@0 8424 test -z "$LD" && LD=ld
michael@0 8425 test -z "$ac_objext" && ac_objext=o
michael@0 8426
michael@0 8427 for cc_temp in $compiler""; do
michael@0 8428 case $cc_temp in
michael@0 8429 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
michael@0 8430 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
michael@0 8431 \-*) ;;
michael@0 8432 *) break;;
michael@0 8433 esac
michael@0 8434 done
michael@0 8435 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
michael@0 8436
michael@0 8437
michael@0 8438 # Only perform the check for file, if the check method requires it
michael@0 8439 test -z "$MAGIC_CMD" && MAGIC_CMD=file
michael@0 8440 case $deplibs_check_method in
michael@0 8441 file_magic*)
michael@0 8442 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
michael@0 8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
michael@0 8444 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
michael@0 8445 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
michael@0 8446 $as_echo_n "(cached) " >&6
michael@0 8447 else
michael@0 8448 case $MAGIC_CMD in
michael@0 8449 [\\/*] | ?:[\\/]*)
michael@0 8450 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
michael@0 8451 ;;
michael@0 8452 *)
michael@0 8453 lt_save_MAGIC_CMD="$MAGIC_CMD"
michael@0 8454 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
michael@0 8455 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
michael@0 8456 for ac_dir in $ac_dummy; do
michael@0 8457 IFS="$lt_save_ifs"
michael@0 8458 test -z "$ac_dir" && ac_dir=.
michael@0 8459 if test -f $ac_dir/${ac_tool_prefix}file; then
michael@0 8460 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
michael@0 8461 if test -n "$file_magic_test_file"; then
michael@0 8462 case $deplibs_check_method in
michael@0 8463 "file_magic "*)
michael@0 8464 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
michael@0 8465 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
michael@0 8466 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
michael@0 8467 $EGREP "$file_magic_regex" > /dev/null; then
michael@0 8468 :
michael@0 8469 else
michael@0 8470 cat <<_LT_EOF 1>&2
michael@0 8471
michael@0 8472 *** Warning: the command libtool uses to detect shared libraries,
michael@0 8473 *** $file_magic_cmd, produces output that libtool cannot recognize.
michael@0 8474 *** The result is that libtool may fail to recognize shared libraries
michael@0 8475 *** as such. This will affect the creation of libtool libraries that
michael@0 8476 *** depend on shared libraries, but programs linked with such libtool
michael@0 8477 *** libraries will work regardless of this problem. Nevertheless, you
michael@0 8478 *** may want to report the problem to your system manager and/or to
michael@0 8479 *** bug-libtool@gnu.org
michael@0 8480
michael@0 8481 _LT_EOF
michael@0 8482 fi ;;
michael@0 8483 esac
michael@0 8484 fi
michael@0 8485 break
michael@0 8486 fi
michael@0 8487 done
michael@0 8488 IFS="$lt_save_ifs"
michael@0 8489 MAGIC_CMD="$lt_save_MAGIC_CMD"
michael@0 8490 ;;
michael@0 8491 esac
michael@0 8492 fi
michael@0 8493
michael@0 8494 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
michael@0 8495 if test -n "$MAGIC_CMD"; then
michael@0 8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
michael@0 8497 $as_echo "$MAGIC_CMD" >&6; }
michael@0 8498 else
michael@0 8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 8500 $as_echo "no" >&6; }
michael@0 8501 fi
michael@0 8502
michael@0 8503
michael@0 8504
michael@0 8505
michael@0 8506
michael@0 8507 if test -z "$lt_cv_path_MAGIC_CMD"; then
michael@0 8508 if test -n "$ac_tool_prefix"; then
michael@0 8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
michael@0 8510 $as_echo_n "checking for file... " >&6; }
michael@0 8511 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
michael@0 8512 $as_echo_n "(cached) " >&6
michael@0 8513 else
michael@0 8514 case $MAGIC_CMD in
michael@0 8515 [\\/*] | ?:[\\/]*)
michael@0 8516 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
michael@0 8517 ;;
michael@0 8518 *)
michael@0 8519 lt_save_MAGIC_CMD="$MAGIC_CMD"
michael@0 8520 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
michael@0 8521 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
michael@0 8522 for ac_dir in $ac_dummy; do
michael@0 8523 IFS="$lt_save_ifs"
michael@0 8524 test -z "$ac_dir" && ac_dir=.
michael@0 8525 if test -f $ac_dir/file; then
michael@0 8526 lt_cv_path_MAGIC_CMD="$ac_dir/file"
michael@0 8527 if test -n "$file_magic_test_file"; then
michael@0 8528 case $deplibs_check_method in
michael@0 8529 "file_magic "*)
michael@0 8530 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
michael@0 8531 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
michael@0 8532 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
michael@0 8533 $EGREP "$file_magic_regex" > /dev/null; then
michael@0 8534 :
michael@0 8535 else
michael@0 8536 cat <<_LT_EOF 1>&2
michael@0 8537
michael@0 8538 *** Warning: the command libtool uses to detect shared libraries,
michael@0 8539 *** $file_magic_cmd, produces output that libtool cannot recognize.
michael@0 8540 *** The result is that libtool may fail to recognize shared libraries
michael@0 8541 *** as such. This will affect the creation of libtool libraries that
michael@0 8542 *** depend on shared libraries, but programs linked with such libtool
michael@0 8543 *** libraries will work regardless of this problem. Nevertheless, you
michael@0 8544 *** may want to report the problem to your system manager and/or to
michael@0 8545 *** bug-libtool@gnu.org
michael@0 8546
michael@0 8547 _LT_EOF
michael@0 8548 fi ;;
michael@0 8549 esac
michael@0 8550 fi
michael@0 8551 break
michael@0 8552 fi
michael@0 8553 done
michael@0 8554 IFS="$lt_save_ifs"
michael@0 8555 MAGIC_CMD="$lt_save_MAGIC_CMD"
michael@0 8556 ;;
michael@0 8557 esac
michael@0 8558 fi
michael@0 8559
michael@0 8560 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
michael@0 8561 if test -n "$MAGIC_CMD"; then
michael@0 8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
michael@0 8563 $as_echo "$MAGIC_CMD" >&6; }
michael@0 8564 else
michael@0 8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 8566 $as_echo "no" >&6; }
michael@0 8567 fi
michael@0 8568
michael@0 8569
michael@0 8570 else
michael@0 8571 MAGIC_CMD=:
michael@0 8572 fi
michael@0 8573 fi
michael@0 8574
michael@0 8575 fi
michael@0 8576 ;;
michael@0 8577 esac
michael@0 8578
michael@0 8579 # Use C for the default configuration in the libtool script
michael@0 8580
michael@0 8581 lt_save_CC="$CC"
michael@0 8582 ac_ext=c
michael@0 8583 ac_cpp='$CPP $CPPFLAGS'
michael@0 8584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
michael@0 8585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
michael@0 8586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
michael@0 8587
michael@0 8588
michael@0 8589 # Source file extension for C test sources.
michael@0 8590 ac_ext=c
michael@0 8591
michael@0 8592 # Object file extension for compiled C test sources.
michael@0 8593 objext=o
michael@0 8594 objext=$objext
michael@0 8595
michael@0 8596 # Code to be used in simple compile tests
michael@0 8597 lt_simple_compile_test_code="int some_variable = 0;"
michael@0 8598
michael@0 8599 # Code to be used in simple link tests
michael@0 8600 lt_simple_link_test_code='int main(){return(0);}'
michael@0 8601
michael@0 8602
michael@0 8603
michael@0 8604
michael@0 8605
michael@0 8606
michael@0 8607
michael@0 8608 # If no C compiler was specified, use CC.
michael@0 8609 LTCC=${LTCC-"$CC"}
michael@0 8610
michael@0 8611 # If no C compiler flags were specified, use CFLAGS.
michael@0 8612 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
michael@0 8613
michael@0 8614 # Allow CC to be a program name with arguments.
michael@0 8615 compiler=$CC
michael@0 8616
michael@0 8617 # Save the default compiler, since it gets overwritten when the other
michael@0 8618 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
michael@0 8619 compiler_DEFAULT=$CC
michael@0 8620
michael@0 8621 # save warnings/boilerplate of simple test code
michael@0 8622 ac_outfile=conftest.$ac_objext
michael@0 8623 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
michael@0 8624 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
michael@0 8625 _lt_compiler_boilerplate=`cat conftest.err`
michael@0 8626 $RM conftest*
michael@0 8627
michael@0 8628 ac_outfile=conftest.$ac_objext
michael@0 8629 echo "$lt_simple_link_test_code" >conftest.$ac_ext
michael@0 8630 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
michael@0 8631 _lt_linker_boilerplate=`cat conftest.err`
michael@0 8632 $RM -r conftest*
michael@0 8633
michael@0 8634
michael@0 8635 ## CAVEAT EMPTOR:
michael@0 8636 ## There is no encapsulation within the following macros, do not change
michael@0 8637 ## the running order or otherwise move them around unless you know exactly
michael@0 8638 ## what you are doing...
michael@0 8639 if test -n "$compiler"; then
michael@0 8640
michael@0 8641 lt_prog_compiler_no_builtin_flag=
michael@0 8642
michael@0 8643 if test "$GCC" = yes; then
michael@0 8644 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
michael@0 8645
michael@0 8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
michael@0 8647 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
michael@0 8648 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
michael@0 8649 $as_echo_n "(cached) " >&6
michael@0 8650 else
michael@0 8651 lt_cv_prog_compiler_rtti_exceptions=no
michael@0 8652 ac_outfile=conftest.$ac_objext
michael@0 8653 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
michael@0 8654 lt_compiler_flag="-fno-rtti -fno-exceptions"
michael@0 8655 # Insert the option either (1) after the last *FLAGS variable, or
michael@0 8656 # (2) before a word containing "conftest.", or (3) at the end.
michael@0 8657 # Note that $ac_compile itself does not contain backslashes and begins
michael@0 8658 # with a dollar sign (not a hyphen), so the echo should work correctly.
michael@0 8659 # The option is referenced via a variable to avoid confusing sed.
michael@0 8660 lt_compile=`echo "$ac_compile" | $SED \
michael@0 8661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
michael@0 8662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
michael@0 8663 -e 's:$: $lt_compiler_flag:'`
michael@0 8664 (eval echo "\"\$as_me:8664: $lt_compile\"" >&5)
michael@0 8665 (eval "$lt_compile" 2>conftest.err)
michael@0 8666 ac_status=$?
michael@0 8667 cat conftest.err >&5
michael@0 8668 echo "$as_me:8668: \$? = $ac_status" >&5
michael@0 8669 if (exit $ac_status) && test -s "$ac_outfile"; then
michael@0 8670 # The compiler can only warn and ignore the option if not recognized
michael@0 8671 # So say no if there are warnings other than the usual output.
michael@0 8672 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
michael@0 8673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
michael@0 8674 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
michael@0 8675 lt_cv_prog_compiler_rtti_exceptions=yes
michael@0 8676 fi
michael@0 8677 fi
michael@0 8678 $RM conftest*
michael@0 8679
michael@0 8680 fi
michael@0 8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
michael@0 8682 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
michael@0 8683
michael@0 8684 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
michael@0 8685 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
michael@0 8686 else
michael@0 8687 :
michael@0 8688 fi
michael@0 8689
michael@0 8690 fi
michael@0 8691
michael@0 8692
michael@0 8693
michael@0 8694
michael@0 8695
michael@0 8696
michael@0 8697 lt_prog_compiler_wl=
michael@0 8698 lt_prog_compiler_pic=
michael@0 8699 lt_prog_compiler_static=
michael@0 8700
michael@0 8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
michael@0 8702 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
michael@0 8703
michael@0 8704 if test "$GCC" = yes; then
michael@0 8705 lt_prog_compiler_wl='-Wl,'
michael@0 8706 lt_prog_compiler_static='-static'
michael@0 8707
michael@0 8708 case $host_os in
michael@0 8709 aix*)
michael@0 8710 # All AIX code is PIC.
michael@0 8711 if test "$host_cpu" = ia64; then
michael@0 8712 # AIX 5 now supports IA64 processor
michael@0 8713 lt_prog_compiler_static='-Bstatic'
michael@0 8714 fi
michael@0 8715 ;;
michael@0 8716
michael@0 8717 amigaos*)
michael@0 8718 case $host_cpu in
michael@0 8719 powerpc)
michael@0 8720 # see comment about AmigaOS4 .so support
michael@0 8721 lt_prog_compiler_pic='-fPIC'
michael@0 8722 ;;
michael@0 8723 m68k)
michael@0 8724 # FIXME: we need at least 68020 code to build shared libraries, but
michael@0 8725 # adding the `-m68020' flag to GCC prevents building anything better,
michael@0 8726 # like `-m68040'.
michael@0 8727 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
michael@0 8728 ;;
michael@0 8729 esac
michael@0 8730 ;;
michael@0 8731
michael@0 8732 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
michael@0 8733 # PIC is the default for these OSes.
michael@0 8734 ;;
michael@0 8735
michael@0 8736 mingw* | cygwin* | pw32* | os2* | cegcc*)
michael@0 8737 # This hack is so that the source file can tell whether it is being
michael@0 8738 # built for inclusion in a dll (and should export symbols for example).
michael@0 8739 # Although the cygwin gcc ignores -fPIC, still need this for old-style
michael@0 8740 # (--disable-auto-import) libraries
michael@0 8741 lt_prog_compiler_pic='-DDLL_EXPORT'
michael@0 8742 ;;
michael@0 8743
michael@0 8744 darwin* | rhapsody*)
michael@0 8745 # PIC is the default on this platform
michael@0 8746 # Common symbols not allowed in MH_DYLIB files
michael@0 8747 lt_prog_compiler_pic='-fno-common'
michael@0 8748 ;;
michael@0 8749
michael@0 8750 hpux*)
michael@0 8751 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
michael@0 8752 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
michael@0 8753 # sets the default TLS model and affects inlining.
michael@0 8754 case $host_cpu in
michael@0 8755 hppa*64*)
michael@0 8756 # +Z the default
michael@0 8757 ;;
michael@0 8758 *)
michael@0 8759 lt_prog_compiler_pic='-fPIC'
michael@0 8760 ;;
michael@0 8761 esac
michael@0 8762 ;;
michael@0 8763
michael@0 8764 interix[3-9]*)
michael@0 8765 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
michael@0 8766 # Instead, we relocate shared libraries at runtime.
michael@0 8767 ;;
michael@0 8768
michael@0 8769 msdosdjgpp*)
michael@0 8770 # Just because we use GCC doesn't mean we suddenly get shared libraries
michael@0 8771 # on systems that don't support them.
michael@0 8772 lt_prog_compiler_can_build_shared=no
michael@0 8773 enable_shared=no
michael@0 8774 ;;
michael@0 8775
michael@0 8776 *nto* | *qnx*)
michael@0 8777 # QNX uses GNU C++, but need to define -shared option too, otherwise
michael@0 8778 # it will coredump.
michael@0 8779 lt_prog_compiler_pic='-fPIC -shared'
michael@0 8780 ;;
michael@0 8781
michael@0 8782 sysv4*MP*)
michael@0 8783 if test -d /usr/nec; then
michael@0 8784 lt_prog_compiler_pic=-Kconform_pic
michael@0 8785 fi
michael@0 8786 ;;
michael@0 8787
michael@0 8788 *)
michael@0 8789 lt_prog_compiler_pic='-fPIC'
michael@0 8790 ;;
michael@0 8791 esac
michael@0 8792 else
michael@0 8793 # PORTME Check for flag to pass linker flags through the system compiler.
michael@0 8794 case $host_os in
michael@0 8795 aix*)
michael@0 8796 lt_prog_compiler_wl='-Wl,'
michael@0 8797 if test "$host_cpu" = ia64; then
michael@0 8798 # AIX 5 now supports IA64 processor
michael@0 8799 lt_prog_compiler_static='-Bstatic'
michael@0 8800 else
michael@0 8801 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
michael@0 8802 fi
michael@0 8803 ;;
michael@0 8804
michael@0 8805 mingw* | cygwin* | pw32* | os2* | cegcc*)
michael@0 8806 # This hack is so that the source file can tell whether it is being
michael@0 8807 # built for inclusion in a dll (and should export symbols for example).
michael@0 8808 lt_prog_compiler_pic='-DDLL_EXPORT'
michael@0 8809 ;;
michael@0 8810
michael@0 8811 hpux9* | hpux10* | hpux11*)
michael@0 8812 lt_prog_compiler_wl='-Wl,'
michael@0 8813 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
michael@0 8814 # not for PA HP-UX.
michael@0 8815 case $host_cpu in
michael@0 8816 hppa*64*|ia64*)
michael@0 8817 # +Z the default
michael@0 8818 ;;
michael@0 8819 *)
michael@0 8820 lt_prog_compiler_pic='+Z'
michael@0 8821 ;;
michael@0 8822 esac
michael@0 8823 # Is there a better lt_prog_compiler_static that works with the bundled CC?
michael@0 8824 lt_prog_compiler_static='${wl}-a ${wl}archive'
michael@0 8825 ;;
michael@0 8826
michael@0 8827 irix5* | irix6* | nonstopux*)
michael@0 8828 lt_prog_compiler_wl='-Wl,'
michael@0 8829 # PIC (with -KPIC) is the default.
michael@0 8830 lt_prog_compiler_static='-non_shared'
michael@0 8831 ;;
michael@0 8832
michael@0 8833 linux* | k*bsd*-gnu | kopensolaris*-gnu)
michael@0 8834 case $cc_basename in
michael@0 8835 # old Intel for x86_64 which still supported -KPIC.
michael@0 8836 ecc*)
michael@0 8837 lt_prog_compiler_wl='-Wl,'
michael@0 8838 lt_prog_compiler_pic='-KPIC'
michael@0 8839 lt_prog_compiler_static='-static'
michael@0 8840 ;;
michael@0 8841 # icc used to be incompatible with GCC.
michael@0 8842 # ICC 10 doesn't accept -KPIC any more.
michael@0 8843 icc* | ifort*)
michael@0 8844 lt_prog_compiler_wl='-Wl,'
michael@0 8845 lt_prog_compiler_pic='-fPIC'
michael@0 8846 lt_prog_compiler_static='-static'
michael@0 8847 ;;
michael@0 8848 # Lahey Fortran 8.1.
michael@0 8849 lf95*)
michael@0 8850 lt_prog_compiler_wl='-Wl,'
michael@0 8851 lt_prog_compiler_pic='--shared'
michael@0 8852 lt_prog_compiler_static='--static'
michael@0 8853 ;;
michael@0 8854 pgcc* | pgf77* | pgf90* | pgf95*)
michael@0 8855 # Portland Group compilers (*not* the Pentium gcc compiler,
michael@0 8856 # which looks to be a dead project)
michael@0 8857 lt_prog_compiler_wl='-Wl,'
michael@0 8858 lt_prog_compiler_pic='-fpic'
michael@0 8859 lt_prog_compiler_static='-Bstatic'
michael@0 8860 ;;
michael@0 8861 ccc*)
michael@0 8862 lt_prog_compiler_wl='-Wl,'
michael@0 8863 # All Alpha code is PIC.
michael@0 8864 lt_prog_compiler_static='-non_shared'
michael@0 8865 ;;
michael@0 8866 xl*)
michael@0 8867 # IBM XL C 8.0/Fortran 10.1 on PPC
michael@0 8868 lt_prog_compiler_wl='-Wl,'
michael@0 8869 lt_prog_compiler_pic='-qpic'
michael@0 8870 lt_prog_compiler_static='-qstaticlink'
michael@0 8871 ;;
michael@0 8872 *)
michael@0 8873 case `$CC -V 2>&1 | sed 5q` in
michael@0 8874 *Sun\ C*)
michael@0 8875 # Sun C 5.9
michael@0 8876 lt_prog_compiler_pic='-KPIC'
michael@0 8877 lt_prog_compiler_static='-Bstatic'
michael@0 8878 lt_prog_compiler_wl='-Wl,'
michael@0 8879 ;;
michael@0 8880 *Sun\ F*)
michael@0 8881 # Sun Fortran 8.3 passes all unrecognized flags to the linker
michael@0 8882 lt_prog_compiler_pic='-KPIC'
michael@0 8883 lt_prog_compiler_static='-Bstatic'
michael@0 8884 lt_prog_compiler_wl=''
michael@0 8885 ;;
michael@0 8886 esac
michael@0 8887 ;;
michael@0 8888 esac
michael@0 8889 ;;
michael@0 8890
michael@0 8891 newsos6)
michael@0 8892 lt_prog_compiler_pic='-KPIC'
michael@0 8893 lt_prog_compiler_static='-Bstatic'
michael@0 8894 ;;
michael@0 8895
michael@0 8896 *nto* | *qnx*)
michael@0 8897 # QNX uses GNU C++, but need to define -shared option too, otherwise
michael@0 8898 # it will coredump.
michael@0 8899 lt_prog_compiler_pic='-fPIC -shared'
michael@0 8900 ;;
michael@0 8901
michael@0 8902 osf3* | osf4* | osf5*)
michael@0 8903 lt_prog_compiler_wl='-Wl,'
michael@0 8904 # All OSF/1 code is PIC.
michael@0 8905 lt_prog_compiler_static='-non_shared'
michael@0 8906 ;;
michael@0 8907
michael@0 8908 rdos*)
michael@0 8909 lt_prog_compiler_static='-non_shared'
michael@0 8910 ;;
michael@0 8911
michael@0 8912 solaris*)
michael@0 8913 lt_prog_compiler_pic='-KPIC'
michael@0 8914 lt_prog_compiler_static='-Bstatic'
michael@0 8915 case $cc_basename in
michael@0 8916 f77* | f90* | f95*)
michael@0 8917 lt_prog_compiler_wl='-Qoption ld ';;
michael@0 8918 *)
michael@0 8919 lt_prog_compiler_wl='-Wl,';;
michael@0 8920 esac
michael@0 8921 ;;
michael@0 8922
michael@0 8923 sunos4*)
michael@0 8924 lt_prog_compiler_wl='-Qoption ld '
michael@0 8925 lt_prog_compiler_pic='-PIC'
michael@0 8926 lt_prog_compiler_static='-Bstatic'
michael@0 8927 ;;
michael@0 8928
michael@0 8929 sysv4 | sysv4.2uw2* | sysv4.3*)
michael@0 8930 lt_prog_compiler_wl='-Wl,'
michael@0 8931 lt_prog_compiler_pic='-KPIC'
michael@0 8932 lt_prog_compiler_static='-Bstatic'
michael@0 8933 ;;
michael@0 8934
michael@0 8935 sysv4*MP*)
michael@0 8936 if test -d /usr/nec ;then
michael@0 8937 lt_prog_compiler_pic='-Kconform_pic'
michael@0 8938 lt_prog_compiler_static='-Bstatic'
michael@0 8939 fi
michael@0 8940 ;;
michael@0 8941
michael@0 8942 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
michael@0 8943 lt_prog_compiler_wl='-Wl,'
michael@0 8944 lt_prog_compiler_pic='-KPIC'
michael@0 8945 lt_prog_compiler_static='-Bstatic'
michael@0 8946 ;;
michael@0 8947
michael@0 8948 unicos*)
michael@0 8949 lt_prog_compiler_wl='-Wl,'
michael@0 8950 lt_prog_compiler_can_build_shared=no
michael@0 8951 ;;
michael@0 8952
michael@0 8953 uts4*)
michael@0 8954 lt_prog_compiler_pic='-pic'
michael@0 8955 lt_prog_compiler_static='-Bstatic'
michael@0 8956 ;;
michael@0 8957
michael@0 8958 *)
michael@0 8959 lt_prog_compiler_can_build_shared=no
michael@0 8960 ;;
michael@0 8961 esac
michael@0 8962 fi
michael@0 8963
michael@0 8964 case $host_os in
michael@0 8965 # For platforms which do not support PIC, -DPIC is meaningless:
michael@0 8966 *djgpp*)
michael@0 8967 lt_prog_compiler_pic=
michael@0 8968 ;;
michael@0 8969 *)
michael@0 8970 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
michael@0 8971 ;;
michael@0 8972 esac
michael@0 8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
michael@0 8974 $as_echo "$lt_prog_compiler_pic" >&6; }
michael@0 8975
michael@0 8976
michael@0 8977
michael@0 8978
michael@0 8979
michael@0 8980
michael@0 8981 #
michael@0 8982 # Check to make sure the PIC flag actually works.
michael@0 8983 #
michael@0 8984 if test -n "$lt_prog_compiler_pic"; then
michael@0 8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
michael@0 8986 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
michael@0 8987 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
michael@0 8988 $as_echo_n "(cached) " >&6
michael@0 8989 else
michael@0 8990 lt_cv_prog_compiler_pic_works=no
michael@0 8991 ac_outfile=conftest.$ac_objext
michael@0 8992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
michael@0 8993 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
michael@0 8994 # Insert the option either (1) after the last *FLAGS variable, or
michael@0 8995 # (2) before a word containing "conftest.", or (3) at the end.
michael@0 8996 # Note that $ac_compile itself does not contain backslashes and begins
michael@0 8997 # with a dollar sign (not a hyphen), so the echo should work correctly.
michael@0 8998 # The option is referenced via a variable to avoid confusing sed.
michael@0 8999 lt_compile=`echo "$ac_compile" | $SED \
michael@0 9000 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
michael@0 9001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
michael@0 9002 -e 's:$: $lt_compiler_flag:'`
michael@0 9003 (eval echo "\"\$as_me:9003: $lt_compile\"" >&5)
michael@0 9004 (eval "$lt_compile" 2>conftest.err)
michael@0 9005 ac_status=$?
michael@0 9006 cat conftest.err >&5
michael@0 9007 echo "$as_me:9007: \$? = $ac_status" >&5
michael@0 9008 if (exit $ac_status) && test -s "$ac_outfile"; then
michael@0 9009 # The compiler can only warn and ignore the option if not recognized
michael@0 9010 # So say no if there are warnings other than the usual output.
michael@0 9011 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
michael@0 9012 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
michael@0 9013 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
michael@0 9014 lt_cv_prog_compiler_pic_works=yes
michael@0 9015 fi
michael@0 9016 fi
michael@0 9017 $RM conftest*
michael@0 9018
michael@0 9019 fi
michael@0 9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
michael@0 9021 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
michael@0 9022
michael@0 9023 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
michael@0 9024 case $lt_prog_compiler_pic in
michael@0 9025 "" | " "*) ;;
michael@0 9026 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
michael@0 9027 esac
michael@0 9028 else
michael@0 9029 lt_prog_compiler_pic=
michael@0 9030 lt_prog_compiler_can_build_shared=no
michael@0 9031 fi
michael@0 9032
michael@0 9033 fi
michael@0 9034
michael@0 9035
michael@0 9036
michael@0 9037
michael@0 9038
michael@0 9039
michael@0 9040 #
michael@0 9041 # Check to make sure the static flag actually works.
michael@0 9042 #
michael@0 9043 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
michael@0 9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
michael@0 9045 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
michael@0 9046 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
michael@0 9047 $as_echo_n "(cached) " >&6
michael@0 9048 else
michael@0 9049 lt_cv_prog_compiler_static_works=no
michael@0 9050 save_LDFLAGS="$LDFLAGS"
michael@0 9051 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
michael@0 9052 echo "$lt_simple_link_test_code" > conftest.$ac_ext
michael@0 9053 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
michael@0 9054 # The linker can only warn and ignore the option if not recognized
michael@0 9055 # So say no if there are warnings
michael@0 9056 if test -s conftest.err; then
michael@0 9057 # Append any errors to the config.log.
michael@0 9058 cat conftest.err 1>&5
michael@0 9059 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
michael@0 9060 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
michael@0 9061 if diff conftest.exp conftest.er2 >/dev/null; then
michael@0 9062 lt_cv_prog_compiler_static_works=yes
michael@0 9063 fi
michael@0 9064 else
michael@0 9065 lt_cv_prog_compiler_static_works=yes
michael@0 9066 fi
michael@0 9067 fi
michael@0 9068 $RM -r conftest*
michael@0 9069 LDFLAGS="$save_LDFLAGS"
michael@0 9070
michael@0 9071 fi
michael@0 9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
michael@0 9073 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
michael@0 9074
michael@0 9075 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
michael@0 9076 :
michael@0 9077 else
michael@0 9078 lt_prog_compiler_static=
michael@0 9079 fi
michael@0 9080
michael@0 9081
michael@0 9082
michael@0 9083
michael@0 9084
michael@0 9085
michael@0 9086
michael@0 9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
michael@0 9088 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
michael@0 9089 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
michael@0 9090 $as_echo_n "(cached) " >&6
michael@0 9091 else
michael@0 9092 lt_cv_prog_compiler_c_o=no
michael@0 9093 $RM -r conftest 2>/dev/null
michael@0 9094 mkdir conftest
michael@0 9095 cd conftest
michael@0 9096 mkdir out
michael@0 9097 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
michael@0 9098
michael@0 9099 lt_compiler_flag="-o out/conftest2.$ac_objext"
michael@0 9100 # Insert the option either (1) after the last *FLAGS variable, or
michael@0 9101 # (2) before a word containing "conftest.", or (3) at the end.
michael@0 9102 # Note that $ac_compile itself does not contain backslashes and begins
michael@0 9103 # with a dollar sign (not a hyphen), so the echo should work correctly.
michael@0 9104 lt_compile=`echo "$ac_compile" | $SED \
michael@0 9105 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
michael@0 9106 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
michael@0 9107 -e 's:$: $lt_compiler_flag:'`
michael@0 9108 (eval echo "\"\$as_me:9108: $lt_compile\"" >&5)
michael@0 9109 (eval "$lt_compile" 2>out/conftest.err)
michael@0 9110 ac_status=$?
michael@0 9111 cat out/conftest.err >&5
michael@0 9112 echo "$as_me:9112: \$? = $ac_status" >&5
michael@0 9113 if (exit $ac_status) && test -s out/conftest2.$ac_objext
michael@0 9114 then
michael@0 9115 # The compiler can only warn and ignore the option if not recognized
michael@0 9116 # So say no if there are warnings
michael@0 9117 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
michael@0 9118 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
michael@0 9119 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
michael@0 9120 lt_cv_prog_compiler_c_o=yes
michael@0 9121 fi
michael@0 9122 fi
michael@0 9123 chmod u+w . 2>&5
michael@0 9124 $RM conftest*
michael@0 9125 # SGI C++ compiler will create directory out/ii_files/ for
michael@0 9126 # template instantiation
michael@0 9127 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
michael@0 9128 $RM out/* && rmdir out
michael@0 9129 cd ..
michael@0 9130 $RM -r conftest
michael@0 9131 $RM conftest*
michael@0 9132
michael@0 9133 fi
michael@0 9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
michael@0 9135 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
michael@0 9136
michael@0 9137
michael@0 9138
michael@0 9139
michael@0 9140
michael@0 9141
michael@0 9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
michael@0 9143 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
michael@0 9144 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
michael@0 9145 $as_echo_n "(cached) " >&6
michael@0 9146 else
michael@0 9147 lt_cv_prog_compiler_c_o=no
michael@0 9148 $RM -r conftest 2>/dev/null
michael@0 9149 mkdir conftest
michael@0 9150 cd conftest
michael@0 9151 mkdir out
michael@0 9152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
michael@0 9153
michael@0 9154 lt_compiler_flag="-o out/conftest2.$ac_objext"
michael@0 9155 # Insert the option either (1) after the last *FLAGS variable, or
michael@0 9156 # (2) before a word containing "conftest.", or (3) at the end.
michael@0 9157 # Note that $ac_compile itself does not contain backslashes and begins
michael@0 9158 # with a dollar sign (not a hyphen), so the echo should work correctly.
michael@0 9159 lt_compile=`echo "$ac_compile" | $SED \
michael@0 9160 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
michael@0 9161 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
michael@0 9162 -e 's:$: $lt_compiler_flag:'`
michael@0 9163 (eval echo "\"\$as_me:9163: $lt_compile\"" >&5)
michael@0 9164 (eval "$lt_compile" 2>out/conftest.err)
michael@0 9165 ac_status=$?
michael@0 9166 cat out/conftest.err >&5
michael@0 9167 echo "$as_me:9167: \$? = $ac_status" >&5
michael@0 9168 if (exit $ac_status) && test -s out/conftest2.$ac_objext
michael@0 9169 then
michael@0 9170 # The compiler can only warn and ignore the option if not recognized
michael@0 9171 # So say no if there are warnings
michael@0 9172 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
michael@0 9173 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
michael@0 9174 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
michael@0 9175 lt_cv_prog_compiler_c_o=yes
michael@0 9176 fi
michael@0 9177 fi
michael@0 9178 chmod u+w . 2>&5
michael@0 9179 $RM conftest*
michael@0 9180 # SGI C++ compiler will create directory out/ii_files/ for
michael@0 9181 # template instantiation
michael@0 9182 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
michael@0 9183 $RM out/* && rmdir out
michael@0 9184 cd ..
michael@0 9185 $RM -r conftest
michael@0 9186 $RM conftest*
michael@0 9187
michael@0 9188 fi
michael@0 9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
michael@0 9190 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
michael@0 9191
michael@0 9192
michael@0 9193
michael@0 9194
michael@0 9195 hard_links="nottested"
michael@0 9196 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
michael@0 9197 # do not overwrite the value of need_locks provided by the user
michael@0 9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
michael@0 9199 $as_echo_n "checking if we can lock with hard links... " >&6; }
michael@0 9200 hard_links=yes
michael@0 9201 $RM conftest*
michael@0 9202 ln conftest.a conftest.b 2>/dev/null && hard_links=no
michael@0 9203 touch conftest.a
michael@0 9204 ln conftest.a conftest.b 2>&5 || hard_links=no
michael@0 9205 ln conftest.a conftest.b 2>/dev/null && hard_links=no
michael@0 9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
michael@0 9207 $as_echo "$hard_links" >&6; }
michael@0 9208 if test "$hard_links" = no; then
michael@0 9209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
michael@0 9210 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
michael@0 9211 need_locks=warn
michael@0 9212 fi
michael@0 9213 else
michael@0 9214 need_locks=no
michael@0 9215 fi
michael@0 9216
michael@0 9217
michael@0 9218
michael@0 9219
michael@0 9220
michael@0 9221
michael@0 9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
michael@0 9223 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
michael@0 9224
michael@0 9225 runpath_var=
michael@0 9226 allow_undefined_flag=
michael@0 9227 always_export_symbols=no
michael@0 9228 archive_cmds=
michael@0 9229 archive_expsym_cmds=
michael@0 9230 compiler_needs_object=no
michael@0 9231 enable_shared_with_static_runtimes=no
michael@0 9232 export_dynamic_flag_spec=
michael@0 9233 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
michael@0 9234 hardcode_automatic=no
michael@0 9235 hardcode_direct=no
michael@0 9236 hardcode_direct_absolute=no
michael@0 9237 hardcode_libdir_flag_spec=
michael@0 9238 hardcode_libdir_flag_spec_ld=
michael@0 9239 hardcode_libdir_separator=
michael@0 9240 hardcode_minus_L=no
michael@0 9241 hardcode_shlibpath_var=unsupported
michael@0 9242 inherit_rpath=no
michael@0 9243 link_all_deplibs=unknown
michael@0 9244 module_cmds=
michael@0 9245 module_expsym_cmds=
michael@0 9246 old_archive_from_new_cmds=
michael@0 9247 old_archive_from_expsyms_cmds=
michael@0 9248 thread_safe_flag_spec=
michael@0 9249 whole_archive_flag_spec=
michael@0 9250 # include_expsyms should be a list of space-separated symbols to be *always*
michael@0 9251 # included in the symbol list
michael@0 9252 include_expsyms=
michael@0 9253 # exclude_expsyms can be an extended regexp of symbols to exclude
michael@0 9254 # it will be wrapped by ` (' and `)$', so one must not match beginning or
michael@0 9255 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
michael@0 9256 # as well as any symbol that contains `d'.
michael@0 9257 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
michael@0 9258 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
michael@0 9259 # platforms (ab)use it in PIC code, but their linkers get confused if
michael@0 9260 # the symbol is explicitly referenced. Since portable code cannot
michael@0 9261 # rely on this symbol name, it's probably fine to never include it in
michael@0 9262 # preloaded symbol tables.
michael@0 9263 # Exclude shared library initialization/finalization symbols.
michael@0 9264 extract_expsyms_cmds=
michael@0 9265
michael@0 9266 case $host_os in
michael@0 9267 cygwin* | mingw* | pw32* | cegcc*)
michael@0 9268 # FIXME: the MSVC++ port hasn't been tested in a loooong time
michael@0 9269 # When not using gcc, we currently assume that we are using
michael@0 9270 # Microsoft Visual C++.
michael@0 9271 if test "$GCC" != yes; then
michael@0 9272 with_gnu_ld=no
michael@0 9273 fi
michael@0 9274 ;;
michael@0 9275 interix*)
michael@0 9276 # we just hope/assume this is gcc and not c89 (= MSVC++)
michael@0 9277 with_gnu_ld=yes
michael@0 9278 ;;
michael@0 9279 openbsd*)
michael@0 9280 with_gnu_ld=no
michael@0 9281 ;;
michael@0 9282 linux* | k*bsd*-gnu)
michael@0 9283 link_all_deplibs=no
michael@0 9284 ;;
michael@0 9285 esac
michael@0 9286
michael@0 9287 ld_shlibs=yes
michael@0 9288 if test "$with_gnu_ld" = yes; then
michael@0 9289 # If archive_cmds runs LD, not CC, wlarc should be empty
michael@0 9290 wlarc='${wl}'
michael@0 9291
michael@0 9292 # Set some defaults for GNU ld with shared library support. These
michael@0 9293 # are reset later if shared libraries are not supported. Putting them
michael@0 9294 # here allows them to be overridden if necessary.
michael@0 9295 runpath_var=LD_RUN_PATH
michael@0 9296 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
michael@0 9297 export_dynamic_flag_spec='${wl}--export-dynamic'
michael@0 9298 # ancient GNU ld didn't support --whole-archive et. al.
michael@0 9299 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
michael@0 9300 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
michael@0 9301 else
michael@0 9302 whole_archive_flag_spec=
michael@0 9303 fi
michael@0 9304 supports_anon_versioning=no
michael@0 9305 case `$LD -v 2>&1` in
michael@0 9306 *GNU\ gold*) supports_anon_versioning=yes ;;
michael@0 9307 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
michael@0 9308 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
michael@0 9309 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
michael@0 9310 *\ 2.11.*) ;; # other 2.11 versions
michael@0 9311 *) supports_anon_versioning=yes ;;
michael@0 9312 esac
michael@0 9313
michael@0 9314 # See if GNU ld supports shared libraries.
michael@0 9315 case $host_os in
michael@0 9316 aix[3-9]*)
michael@0 9317 # On AIX/PPC, the GNU linker is very broken
michael@0 9318 if test "$host_cpu" != ia64; then
michael@0 9319 ld_shlibs=no
michael@0 9320 cat <<_LT_EOF 1>&2
michael@0 9321
michael@0 9322 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
michael@0 9323 *** to be unable to reliably create shared libraries on AIX.
michael@0 9324 *** Therefore, libtool is disabling shared libraries support. If you
michael@0 9325 *** really care for shared libraries, you may want to modify your PATH
michael@0 9326 *** so that a non-GNU linker is found, and then restart.
michael@0 9327
michael@0 9328 _LT_EOF
michael@0 9329 fi
michael@0 9330 ;;
michael@0 9331
michael@0 9332 amigaos*)
michael@0 9333 case $host_cpu in
michael@0 9334 powerpc)
michael@0 9335 # see comment about AmigaOS4 .so support
michael@0 9336 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
michael@0 9337 archive_expsym_cmds=''
michael@0 9338 ;;
michael@0 9339 m68k)
michael@0 9340 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
michael@0 9341 hardcode_libdir_flag_spec='-L$libdir'
michael@0 9342 hardcode_minus_L=yes
michael@0 9343 ;;
michael@0 9344 esac
michael@0 9345 ;;
michael@0 9346
michael@0 9347 beos*)
michael@0 9348 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
michael@0 9349 allow_undefined_flag=unsupported
michael@0 9350 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
michael@0 9351 # support --undefined. This deserves some investigation. FIXME
michael@0 9352 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
michael@0 9353 else
michael@0 9354 ld_shlibs=no
michael@0 9355 fi
michael@0 9356 ;;
michael@0 9357
michael@0 9358 cygwin* | mingw* | pw32* | cegcc*)
michael@0 9359 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
michael@0 9360 # as there is no search path for DLLs.
michael@0 9361 hardcode_libdir_flag_spec='-L$libdir'
michael@0 9362 allow_undefined_flag=unsupported
michael@0 9363 always_export_symbols=no
michael@0 9364 enable_shared_with_static_runtimes=yes
michael@0 9365 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
michael@0 9366
michael@0 9367 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
michael@0 9368 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
michael@0 9369 # If the export-symbols file already is a .def file (1st line
michael@0 9370 # is EXPORTS), use it as is; otherwise, prepend...
michael@0 9371 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
michael@0 9372 cp $export_symbols $output_objdir/$soname.def;
michael@0 9373 else
michael@0 9374 echo EXPORTS > $output_objdir/$soname.def;
michael@0 9375 cat $export_symbols >> $output_objdir/$soname.def;
michael@0 9376 fi~
michael@0 9377 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
michael@0 9378 else
michael@0 9379 ld_shlibs=no
michael@0 9380 fi
michael@0 9381 ;;
michael@0 9382
michael@0 9383 interix[3-9]*)
michael@0 9384 hardcode_direct=no
michael@0 9385 hardcode_shlibpath_var=no
michael@0 9386 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
michael@0 9387 export_dynamic_flag_spec='${wl}-E'
michael@0 9388 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
michael@0 9389 # Instead, shared libraries are loaded at an image base (0x10000000 by
michael@0 9390 # default) and relocated if they conflict, which is a slow very memory
michael@0 9391 # consuming and fragmenting process. To avoid this, we pick a random,
michael@0 9392 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
michael@0 9393 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
michael@0 9394 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
michael@0 9395 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
michael@0 9396 ;;
michael@0 9397
michael@0 9398 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
michael@0 9399 tmp_diet=no
michael@0 9400 if test "$host_os" = linux-dietlibc; then
michael@0 9401 case $cc_basename in
michael@0 9402 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
michael@0 9403 esac
michael@0 9404 fi
michael@0 9405 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
michael@0 9406 && test "$tmp_diet" = no
michael@0 9407 then
michael@0 9408 tmp_addflag=
michael@0 9409 tmp_sharedflag='-shared'
michael@0 9410 case $cc_basename,$host_cpu in
michael@0 9411 pgcc*) # Portland Group C compiler
michael@0 9412 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
michael@0 9413 tmp_addflag=' $pic_flag'
michael@0 9414 ;;
michael@0 9415 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
michael@0 9416 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
michael@0 9417 tmp_addflag=' $pic_flag -Mnomain' ;;
michael@0 9418 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
michael@0 9419 tmp_addflag=' -i_dynamic' ;;
michael@0 9420 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
michael@0 9421 tmp_addflag=' -i_dynamic -nofor_main' ;;
michael@0 9422 ifc* | ifort*) # Intel Fortran compiler
michael@0 9423 tmp_addflag=' -nofor_main' ;;
michael@0 9424 lf95*) # Lahey Fortran 8.1
michael@0 9425 whole_archive_flag_spec=
michael@0 9426 tmp_sharedflag='--shared' ;;
michael@0 9427 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
michael@0 9428 tmp_sharedflag='-qmkshrobj'
michael@0 9429 tmp_addflag= ;;
michael@0 9430 esac
michael@0 9431 case `$CC -V 2>&1 | sed 5q` in
michael@0 9432 *Sun\ C*) # Sun C 5.9
michael@0 9433 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
michael@0 9434 compiler_needs_object=yes
michael@0 9435 tmp_sharedflag='-G' ;;
michael@0 9436 *Sun\ F*) # Sun Fortran 8.3
michael@0 9437 tmp_sharedflag='-G' ;;
michael@0 9438 esac
michael@0 9439 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
michael@0 9440
michael@0 9441 if test "x$supports_anon_versioning" = xyes; then
michael@0 9442 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
michael@0 9443 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
michael@0 9444 echo "local: *; };" >> $output_objdir/$libname.ver~
michael@0 9445 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
michael@0 9446 fi
michael@0 9447
michael@0 9448 case $cc_basename in
michael@0 9449 xlf*)
michael@0 9450 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
michael@0 9451 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
michael@0 9452 hardcode_libdir_flag_spec=
michael@0 9453 hardcode_libdir_flag_spec_ld='-rpath $libdir'
michael@0 9454 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
michael@0 9455 if test "x$supports_anon_versioning" = xyes; then
michael@0 9456 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
michael@0 9457 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
michael@0 9458 echo "local: *; };" >> $output_objdir/$libname.ver~
michael@0 9459 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
michael@0 9460 fi
michael@0 9461 ;;
michael@0 9462 esac
michael@0 9463 else
michael@0 9464 ld_shlibs=no
michael@0 9465 fi
michael@0 9466 ;;
michael@0 9467
michael@0 9468 netbsd* | netbsdelf*-gnu)
michael@0 9469 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
michael@0 9470 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
michael@0 9471 wlarc=
michael@0 9472 else
michael@0 9473 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
michael@0 9474 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
michael@0 9475 fi
michael@0 9476 ;;
michael@0 9477
michael@0 9478 solaris*)
michael@0 9479 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
michael@0 9480 ld_shlibs=no
michael@0 9481 cat <<_LT_EOF 1>&2
michael@0 9482
michael@0 9483 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
michael@0 9484 *** create shared libraries on Solaris systems. Therefore, libtool
michael@0 9485 *** is disabling shared libraries support. We urge you to upgrade GNU
michael@0 9486 *** binutils to release 2.9.1 or newer. Another option is to modify
michael@0 9487 *** your PATH or compiler configuration so that the native linker is
michael@0 9488 *** used, and then restart.
michael@0 9489
michael@0 9490 _LT_EOF
michael@0 9491 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
michael@0 9492 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
michael@0 9493 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
michael@0 9494 else
michael@0 9495 ld_shlibs=no
michael@0 9496 fi
michael@0 9497 ;;
michael@0 9498
michael@0 9499 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
michael@0 9500 case `$LD -v 2>&1` in
michael@0 9501 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
michael@0 9502 ld_shlibs=no
michael@0 9503 cat <<_LT_EOF 1>&2
michael@0 9504
michael@0 9505 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
michael@0 9506 *** reliably create shared libraries on SCO systems. Therefore, libtool
michael@0 9507 *** is disabling shared libraries support. We urge you to upgrade GNU
michael@0 9508 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
michael@0 9509 *** your PATH or compiler configuration so that the native linker is
michael@0 9510 *** used, and then restart.
michael@0 9511
michael@0 9512 _LT_EOF
michael@0 9513 ;;
michael@0 9514 *)
michael@0 9515 # For security reasons, it is highly recommended that you always
michael@0 9516 # use absolute paths for naming shared libraries, and exclude the
michael@0 9517 # DT_RUNPATH tag from executables and libraries. But doing so
michael@0 9518 # requires that you compile everything twice, which is a pain.
michael@0 9519 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
michael@0 9520 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
michael@0 9521 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
michael@0 9522 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
michael@0 9523 else
michael@0 9524 ld_shlibs=no
michael@0 9525 fi
michael@0 9526 ;;
michael@0 9527 esac
michael@0 9528 ;;
michael@0 9529
michael@0 9530 sunos4*)
michael@0 9531 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
michael@0 9532 wlarc=
michael@0 9533 hardcode_direct=yes
michael@0 9534 hardcode_shlibpath_var=no
michael@0 9535 ;;
michael@0 9536
michael@0 9537 *)
michael@0 9538 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
michael@0 9539 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
michael@0 9540 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
michael@0 9541 else
michael@0 9542 ld_shlibs=no
michael@0 9543 fi
michael@0 9544 ;;
michael@0 9545 esac
michael@0 9546
michael@0 9547 if test "$ld_shlibs" = no; then
michael@0 9548 runpath_var=
michael@0 9549 hardcode_libdir_flag_spec=
michael@0 9550 export_dynamic_flag_spec=
michael@0 9551 whole_archive_flag_spec=
michael@0 9552 fi
michael@0 9553 else
michael@0 9554 # PORTME fill in a description of your system's linker (not GNU ld)
michael@0 9555 case $host_os in
michael@0 9556 aix3*)
michael@0 9557 allow_undefined_flag=unsupported
michael@0 9558 always_export_symbols=yes
michael@0 9559 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
michael@0 9560 # Note: this linker hardcodes the directories in LIBPATH if there
michael@0 9561 # are no directories specified by -L.
michael@0 9562 hardcode_minus_L=yes
michael@0 9563 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
michael@0 9564 # Neither direct hardcoding nor static linking is supported with a
michael@0 9565 # broken collect2.
michael@0 9566 hardcode_direct=unsupported
michael@0 9567 fi
michael@0 9568 ;;
michael@0 9569
michael@0 9570 aix[4-9]*)
michael@0 9571 if test "$host_cpu" = ia64; then
michael@0 9572 # On IA64, the linker does run time linking by default, so we don't
michael@0 9573 # have to do anything special.
michael@0 9574 aix_use_runtimelinking=no
michael@0 9575 exp_sym_flag='-Bexport'
michael@0 9576 no_entry_flag=""
michael@0 9577 else
michael@0 9578 # If we're using GNU nm, then we don't want the "-C" option.
michael@0 9579 # -C means demangle to AIX nm, but means don't demangle with GNU nm
michael@0 9580 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
michael@0 9581 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
michael@0 9582 else
michael@0 9583 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
michael@0 9584 fi
michael@0 9585 aix_use_runtimelinking=no
michael@0 9586
michael@0 9587 # Test if we are trying to use run time linking or normal
michael@0 9588 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
michael@0 9589 # need to do runtime linking.
michael@0 9590 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
michael@0 9591 for ld_flag in $LDFLAGS; do
michael@0 9592 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
michael@0 9593 aix_use_runtimelinking=yes
michael@0 9594 break
michael@0 9595 fi
michael@0 9596 done
michael@0 9597 ;;
michael@0 9598 esac
michael@0 9599
michael@0 9600 exp_sym_flag='-bexport'
michael@0 9601 no_entry_flag='-bnoentry'
michael@0 9602 fi
michael@0 9603
michael@0 9604 # When large executables or shared objects are built, AIX ld can
michael@0 9605 # have problems creating the table of contents. If linking a library
michael@0 9606 # or program results in "error TOC overflow" add -mminimal-toc to
michael@0 9607 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
michael@0 9608 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
michael@0 9609
michael@0 9610 archive_cmds=''
michael@0 9611 hardcode_direct=yes
michael@0 9612 hardcode_direct_absolute=yes
michael@0 9613 hardcode_libdir_separator=':'
michael@0 9614 link_all_deplibs=yes
michael@0 9615 file_list_spec='${wl}-f,'
michael@0 9616
michael@0 9617 if test "$GCC" = yes; then
michael@0 9618 case $host_os in aix4.[012]|aix4.[012].*)
michael@0 9619 # We only want to do this on AIX 4.2 and lower, the check
michael@0 9620 # below for broken collect2 doesn't work under 4.3+
michael@0 9621 collect2name=`${CC} -print-prog-name=collect2`
michael@0 9622 if test -f "$collect2name" &&
michael@0 9623 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
michael@0 9624 then
michael@0 9625 # We have reworked collect2
michael@0 9626 :
michael@0 9627 else
michael@0 9628 # We have old collect2
michael@0 9629 hardcode_direct=unsupported
michael@0 9630 # It fails to find uninstalled libraries when the uninstalled
michael@0 9631 # path is not listed in the libpath. Setting hardcode_minus_L
michael@0 9632 # to unsupported forces relinking
michael@0 9633 hardcode_minus_L=yes
michael@0 9634 hardcode_libdir_flag_spec='-L$libdir'
michael@0 9635 hardcode_libdir_separator=
michael@0 9636 fi
michael@0 9637 ;;
michael@0 9638 esac
michael@0 9639 shared_flag='-shared'
michael@0 9640 if test "$aix_use_runtimelinking" = yes; then
michael@0 9641 shared_flag="$shared_flag "'${wl}-G'
michael@0 9642 fi
michael@0 9643 link_all_deplibs=no
michael@0 9644 else
michael@0 9645 # not using gcc
michael@0 9646 if test "$host_cpu" = ia64; then
michael@0 9647 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
michael@0 9648 # chokes on -Wl,-G. The following line is correct:
michael@0 9649 shared_flag='-G'
michael@0 9650 else
michael@0 9651 if test "$aix_use_runtimelinking" = yes; then
michael@0 9652 shared_flag='${wl}-G'
michael@0 9653 else
michael@0 9654 shared_flag='${wl}-bM:SRE'
michael@0 9655 fi
michael@0 9656 fi
michael@0 9657 fi
michael@0 9658
michael@0 9659 export_dynamic_flag_spec='${wl}-bexpall'
michael@0 9660 # It seems that -bexpall does not export symbols beginning with
michael@0 9661 # underscore (_), so it is better to generate a list of symbols to export.
michael@0 9662 always_export_symbols=yes
michael@0 9663 if test "$aix_use_runtimelinking" = yes; then
michael@0 9664 # Warning - without using the other runtime loading flags (-brtl),
michael@0 9665 # -berok will link without error, but may produce a broken library.
michael@0 9666 allow_undefined_flag='-berok'
michael@0 9667 # Determine the default libpath from the value encoded in an
michael@0 9668 # empty executable.
michael@0 9669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 9670 /* end confdefs.h. */
michael@0 9671
michael@0 9672 int
michael@0 9673 main ()
michael@0 9674 {
michael@0 9675
michael@0 9676 ;
michael@0 9677 return 0;
michael@0 9678 }
michael@0 9679 _ACEOF
michael@0 9680 if ac_fn_c_try_link "$LINENO"; then :
michael@0 9681
michael@0 9682 lt_aix_libpath_sed='
michael@0 9683 /Import File Strings/,/^$/ {
michael@0 9684 /^0/ {
michael@0 9685 s/^0 *\(.*\)$/\1/
michael@0 9686 p
michael@0 9687 }
michael@0 9688 }'
michael@0 9689 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
michael@0 9690 # Check for a 64-bit object if we didn't find anything.
michael@0 9691 if test -z "$aix_libpath"; then
michael@0 9692 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
michael@0 9693 fi
michael@0 9694 fi
michael@0 9695 rm -f core conftest.err conftest.$ac_objext \
michael@0 9696 conftest$ac_exeext conftest.$ac_ext
michael@0 9697 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
michael@0 9698
michael@0 9699 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
michael@0 9700 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
michael@0 9701 else
michael@0 9702 if test "$host_cpu" = ia64; then
michael@0 9703 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
michael@0 9704 allow_undefined_flag="-z nodefs"
michael@0 9705 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
michael@0 9706 else
michael@0 9707 # Determine the default libpath from the value encoded in an
michael@0 9708 # empty executable.
michael@0 9709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 9710 /* end confdefs.h. */
michael@0 9711
michael@0 9712 int
michael@0 9713 main ()
michael@0 9714 {
michael@0 9715
michael@0 9716 ;
michael@0 9717 return 0;
michael@0 9718 }
michael@0 9719 _ACEOF
michael@0 9720 if ac_fn_c_try_link "$LINENO"; then :
michael@0 9721
michael@0 9722 lt_aix_libpath_sed='
michael@0 9723 /Import File Strings/,/^$/ {
michael@0 9724 /^0/ {
michael@0 9725 s/^0 *\(.*\)$/\1/
michael@0 9726 p
michael@0 9727 }
michael@0 9728 }'
michael@0 9729 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
michael@0 9730 # Check for a 64-bit object if we didn't find anything.
michael@0 9731 if test -z "$aix_libpath"; then
michael@0 9732 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
michael@0 9733 fi
michael@0 9734 fi
michael@0 9735 rm -f core conftest.err conftest.$ac_objext \
michael@0 9736 conftest$ac_exeext conftest.$ac_ext
michael@0 9737 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
michael@0 9738
michael@0 9739 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
michael@0 9740 # Warning - without using the other run time loading flags,
michael@0 9741 # -berok will link without error, but may produce a broken library.
michael@0 9742 no_undefined_flag=' ${wl}-bernotok'
michael@0 9743 allow_undefined_flag=' ${wl}-berok'
michael@0 9744 # Exported symbols can be pulled into shared objects from archives
michael@0 9745 whole_archive_flag_spec='$convenience'
michael@0 9746 archive_cmds_need_lc=yes
michael@0 9747 # This is similar to how AIX traditionally builds its shared libraries.
michael@0 9748 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
michael@0 9749 fi
michael@0 9750 fi
michael@0 9751 ;;
michael@0 9752
michael@0 9753 amigaos*)
michael@0 9754 case $host_cpu in
michael@0 9755 powerpc)
michael@0 9756 # see comment about AmigaOS4 .so support
michael@0 9757 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
michael@0 9758 archive_expsym_cmds=''
michael@0 9759 ;;
michael@0 9760 m68k)
michael@0 9761 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
michael@0 9762 hardcode_libdir_flag_spec='-L$libdir'
michael@0 9763 hardcode_minus_L=yes
michael@0 9764 ;;
michael@0 9765 esac
michael@0 9766 ;;
michael@0 9767
michael@0 9768 bsdi[45]*)
michael@0 9769 export_dynamic_flag_spec=-rdynamic
michael@0 9770 ;;
michael@0 9771
michael@0 9772 cygwin* | mingw* | pw32* | cegcc*)
michael@0 9773 # When not using gcc, we currently assume that we are using
michael@0 9774 # Microsoft Visual C++.
michael@0 9775 # hardcode_libdir_flag_spec is actually meaningless, as there is
michael@0 9776 # no search path for DLLs.
michael@0 9777 hardcode_libdir_flag_spec=' '
michael@0 9778 allow_undefined_flag=unsupported
michael@0 9779 # Tell ltmain to make .lib files, not .a files.
michael@0 9780 libext=lib
michael@0 9781 # Tell ltmain to make .dll files, not .so files.
michael@0 9782 shrext_cmds=".dll"
michael@0 9783 # FIXME: Setting linknames here is a bad hack.
michael@0 9784 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
michael@0 9785 # The linker will automatically build a .lib file if we build a DLL.
michael@0 9786 old_archive_from_new_cmds='true'
michael@0 9787 # FIXME: Should let the user specify the lib program.
michael@0 9788 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
michael@0 9789 fix_srcfile_path='`cygpath -w "$srcfile"`'
michael@0 9790 enable_shared_with_static_runtimes=yes
michael@0 9791 ;;
michael@0 9792
michael@0 9793 darwin* | rhapsody*)
michael@0 9794
michael@0 9795
michael@0 9796 archive_cmds_need_lc=no
michael@0 9797 hardcode_direct=no
michael@0 9798 hardcode_automatic=yes
michael@0 9799 hardcode_shlibpath_var=unsupported
michael@0 9800 whole_archive_flag_spec=''
michael@0 9801 link_all_deplibs=yes
michael@0 9802 allow_undefined_flag="$_lt_dar_allow_undefined"
michael@0 9803 case $cc_basename in
michael@0 9804 ifort*) _lt_dar_can_shared=yes ;;
michael@0 9805 *) _lt_dar_can_shared=$GCC ;;
michael@0 9806 esac
michael@0 9807 if test "$_lt_dar_can_shared" = "yes"; then
michael@0 9808 output_verbose_link_cmd=echo
michael@0 9809 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
michael@0 9810 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
michael@0 9811 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
michael@0 9812 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
michael@0 9813
michael@0 9814 else
michael@0 9815 ld_shlibs=no
michael@0 9816 fi
michael@0 9817
michael@0 9818 ;;
michael@0 9819
michael@0 9820 dgux*)
michael@0 9821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
michael@0 9822 hardcode_libdir_flag_spec='-L$libdir'
michael@0 9823 hardcode_shlibpath_var=no
michael@0 9824 ;;
michael@0 9825
michael@0 9826 freebsd1*)
michael@0 9827 ld_shlibs=no
michael@0 9828 ;;
michael@0 9829
michael@0 9830 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
michael@0 9831 # support. Future versions do this automatically, but an explicit c++rt0.o
michael@0 9832 # does not break anything, and helps significantly (at the cost of a little
michael@0 9833 # extra space).
michael@0 9834 freebsd2.2*)
michael@0 9835 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
michael@0 9836 hardcode_libdir_flag_spec='-R$libdir'
michael@0 9837 hardcode_direct=yes
michael@0 9838 hardcode_shlibpath_var=no
michael@0 9839 ;;
michael@0 9840
michael@0 9841 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
michael@0 9842 freebsd2*)
michael@0 9843 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
michael@0 9844 hardcode_direct=yes
michael@0 9845 hardcode_minus_L=yes
michael@0 9846 hardcode_shlibpath_var=no
michael@0 9847 ;;
michael@0 9848
michael@0 9849 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
michael@0 9850 freebsd* | dragonfly*)
michael@0 9851 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
michael@0 9852 hardcode_libdir_flag_spec='-R$libdir'
michael@0 9853 hardcode_direct=yes
michael@0 9854 hardcode_shlibpath_var=no
michael@0 9855 ;;
michael@0 9856
michael@0 9857 hpux9*)
michael@0 9858 if test "$GCC" = yes; then
michael@0 9859 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
michael@0 9860 else
michael@0 9861 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
michael@0 9862 fi
michael@0 9863 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
michael@0 9864 hardcode_libdir_separator=:
michael@0 9865 hardcode_direct=yes
michael@0 9866
michael@0 9867 # hardcode_minus_L: Not really in the search PATH,
michael@0 9868 # but as the default location of the library.
michael@0 9869 hardcode_minus_L=yes
michael@0 9870 export_dynamic_flag_spec='${wl}-E'
michael@0 9871 ;;
michael@0 9872
michael@0 9873 hpux10*)
michael@0 9874 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
michael@0 9875 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
michael@0 9876 else
michael@0 9877 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
michael@0 9878 fi
michael@0 9879 if test "$with_gnu_ld" = no; then
michael@0 9880 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
michael@0 9881 hardcode_libdir_flag_spec_ld='+b $libdir'
michael@0 9882 hardcode_libdir_separator=:
michael@0 9883 hardcode_direct=yes
michael@0 9884 hardcode_direct_absolute=yes
michael@0 9885 export_dynamic_flag_spec='${wl}-E'
michael@0 9886 # hardcode_minus_L: Not really in the search PATH,
michael@0 9887 # but as the default location of the library.
michael@0 9888 hardcode_minus_L=yes
michael@0 9889 fi
michael@0 9890 ;;
michael@0 9891
michael@0 9892 hpux11*)
michael@0 9893 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
michael@0 9894 case $host_cpu in
michael@0 9895 hppa*64*)
michael@0 9896 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
michael@0 9897 ;;
michael@0 9898 ia64*)
michael@0 9899 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
michael@0 9900 ;;
michael@0 9901 *)
michael@0 9902 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
michael@0 9903 ;;
michael@0 9904 esac
michael@0 9905 else
michael@0 9906 case $host_cpu in
michael@0 9907 hppa*64*)
michael@0 9908 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
michael@0 9909 ;;
michael@0 9910 ia64*)
michael@0 9911 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
michael@0 9912 ;;
michael@0 9913 *)
michael@0 9914 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
michael@0 9915 ;;
michael@0 9916 esac
michael@0 9917 fi
michael@0 9918 if test "$with_gnu_ld" = no; then
michael@0 9919 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
michael@0 9920 hardcode_libdir_separator=:
michael@0 9921
michael@0 9922 case $host_cpu in
michael@0 9923 hppa*64*|ia64*)
michael@0 9924 hardcode_direct=no
michael@0 9925 hardcode_shlibpath_var=no
michael@0 9926 ;;
michael@0 9927 *)
michael@0 9928 hardcode_direct=yes
michael@0 9929 hardcode_direct_absolute=yes
michael@0 9930 export_dynamic_flag_spec='${wl}-E'
michael@0 9931
michael@0 9932 # hardcode_minus_L: Not really in the search PATH,
michael@0 9933 # but as the default location of the library.
michael@0 9934 hardcode_minus_L=yes
michael@0 9935 ;;
michael@0 9936 esac
michael@0 9937 fi
michael@0 9938 ;;
michael@0 9939
michael@0 9940 irix5* | irix6* | nonstopux*)
michael@0 9941 if test "$GCC" = yes; then
michael@0 9942 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
michael@0 9943 # Try to use the -exported_symbol ld option, if it does not
michael@0 9944 # work, assume that -exports_file does not work either and
michael@0 9945 # implicitly export all symbols.
michael@0 9946 save_LDFLAGS="$LDFLAGS"
michael@0 9947 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
michael@0 9948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 9949 /* end confdefs.h. */
michael@0 9950 int foo(void) {}
michael@0 9951 _ACEOF
michael@0 9952 if ac_fn_c_try_link "$LINENO"; then :
michael@0 9953 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
michael@0 9954
michael@0 9955 fi
michael@0 9956 rm -f core conftest.err conftest.$ac_objext \
michael@0 9957 conftest$ac_exeext conftest.$ac_ext
michael@0 9958 LDFLAGS="$save_LDFLAGS"
michael@0 9959 else
michael@0 9960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
michael@0 9961 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
michael@0 9962 fi
michael@0 9963 archive_cmds_need_lc='no'
michael@0 9964 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
michael@0 9965 hardcode_libdir_separator=:
michael@0 9966 inherit_rpath=yes
michael@0 9967 link_all_deplibs=yes
michael@0 9968 ;;
michael@0 9969
michael@0 9970 netbsd* | netbsdelf*-gnu)
michael@0 9971 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
michael@0 9972 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
michael@0 9973 else
michael@0 9974 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
michael@0 9975 fi
michael@0 9976 hardcode_libdir_flag_spec='-R$libdir'
michael@0 9977 hardcode_direct=yes
michael@0 9978 hardcode_shlibpath_var=no
michael@0 9979 ;;
michael@0 9980
michael@0 9981 newsos6)
michael@0 9982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
michael@0 9983 hardcode_direct=yes
michael@0 9984 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
michael@0 9985 hardcode_libdir_separator=:
michael@0 9986 hardcode_shlibpath_var=no
michael@0 9987 ;;
michael@0 9988
michael@0 9989 *nto* | *qnx*)
michael@0 9990 ;;
michael@0 9991
michael@0 9992 openbsd*)
michael@0 9993 if test -f /usr/libexec/ld.so; then
michael@0 9994 hardcode_direct=yes
michael@0 9995 hardcode_shlibpath_var=no
michael@0 9996 hardcode_direct_absolute=yes
michael@0 9997 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
michael@0 9998 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
michael@0 9999 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
michael@0 10000 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
michael@0 10001 export_dynamic_flag_spec='${wl}-E'
michael@0 10002 else
michael@0 10003 case $host_os in
michael@0 10004 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
michael@0 10005 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
michael@0 10006 hardcode_libdir_flag_spec='-R$libdir'
michael@0 10007 ;;
michael@0 10008 *)
michael@0 10009 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
michael@0 10010 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
michael@0 10011 ;;
michael@0 10012 esac
michael@0 10013 fi
michael@0 10014 else
michael@0 10015 ld_shlibs=no
michael@0 10016 fi
michael@0 10017 ;;
michael@0 10018
michael@0 10019 os2*)
michael@0 10020 hardcode_libdir_flag_spec='-L$libdir'
michael@0 10021 hardcode_minus_L=yes
michael@0 10022 allow_undefined_flag=unsupported
michael@0 10023 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
michael@0 10024 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
michael@0 10025 ;;
michael@0 10026
michael@0 10027 osf3*)
michael@0 10028 if test "$GCC" = yes; then
michael@0 10029 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
michael@0 10030 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
michael@0 10031 else
michael@0 10032 allow_undefined_flag=' -expect_unresolved \*'
michael@0 10033 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
michael@0 10034 fi
michael@0 10035 archive_cmds_need_lc='no'
michael@0 10036 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
michael@0 10037 hardcode_libdir_separator=:
michael@0 10038 ;;
michael@0 10039
michael@0 10040 osf4* | osf5*) # as osf3* with the addition of -msym flag
michael@0 10041 if test "$GCC" = yes; then
michael@0 10042 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
michael@0 10043 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
michael@0 10044 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
michael@0 10045 else
michael@0 10046 allow_undefined_flag=' -expect_unresolved \*'
michael@0 10047 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
michael@0 10048 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
michael@0 10049 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
michael@0 10050
michael@0 10051 # Both c and cxx compiler support -rpath directly
michael@0 10052 hardcode_libdir_flag_spec='-rpath $libdir'
michael@0 10053 fi
michael@0 10054 archive_cmds_need_lc='no'
michael@0 10055 hardcode_libdir_separator=:
michael@0 10056 ;;
michael@0 10057
michael@0 10058 solaris*)
michael@0 10059 no_undefined_flag=' -z defs'
michael@0 10060 if test "$GCC" = yes; then
michael@0 10061 wlarc='${wl}'
michael@0 10062 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
michael@0 10063 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
michael@0 10064 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
michael@0 10065 else
michael@0 10066 case `$CC -V 2>&1` in
michael@0 10067 *"Compilers 5.0"*)
michael@0 10068 wlarc=''
michael@0 10069 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
michael@0 10070 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
michael@0 10071 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
michael@0 10072 ;;
michael@0 10073 *)
michael@0 10074 wlarc='${wl}'
michael@0 10075 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
michael@0 10076 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
michael@0 10077 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
michael@0 10078 ;;
michael@0 10079 esac
michael@0 10080 fi
michael@0 10081 hardcode_libdir_flag_spec='-R$libdir'
michael@0 10082 hardcode_shlibpath_var=no
michael@0 10083 case $host_os in
michael@0 10084 solaris2.[0-5] | solaris2.[0-5].*) ;;
michael@0 10085 *)
michael@0 10086 # The compiler driver will combine and reorder linker options,
michael@0 10087 # but understands `-z linker_flag'. GCC discards it without `$wl',
michael@0 10088 # but is careful enough not to reorder.
michael@0 10089 # Supported since Solaris 2.6 (maybe 2.5.1?)
michael@0 10090 if test "$GCC" = yes; then
michael@0 10091 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
michael@0 10092 else
michael@0 10093 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
michael@0 10094 fi
michael@0 10095 ;;
michael@0 10096 esac
michael@0 10097 link_all_deplibs=yes
michael@0 10098 ;;
michael@0 10099
michael@0 10100 sunos4*)
michael@0 10101 if test "x$host_vendor" = xsequent; then
michael@0 10102 # Use $CC to link under sequent, because it throws in some extra .o
michael@0 10103 # files that make .init and .fini sections work.
michael@0 10104 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
michael@0 10105 else
michael@0 10106 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
michael@0 10107 fi
michael@0 10108 hardcode_libdir_flag_spec='-L$libdir'
michael@0 10109 hardcode_direct=yes
michael@0 10110 hardcode_minus_L=yes
michael@0 10111 hardcode_shlibpath_var=no
michael@0 10112 ;;
michael@0 10113
michael@0 10114 sysv4)
michael@0 10115 case $host_vendor in
michael@0 10116 sni)
michael@0 10117 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
michael@0 10118 hardcode_direct=yes # is this really true???
michael@0 10119 ;;
michael@0 10120 siemens)
michael@0 10121 ## LD is ld it makes a PLAMLIB
michael@0 10122 ## CC just makes a GrossModule.
michael@0 10123 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
michael@0 10124 reload_cmds='$CC -r -o $output$reload_objs'
michael@0 10125 hardcode_direct=no
michael@0 10126 ;;
michael@0 10127 motorola)
michael@0 10128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
michael@0 10129 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
michael@0 10130 ;;
michael@0 10131 esac
michael@0 10132 runpath_var='LD_RUN_PATH'
michael@0 10133 hardcode_shlibpath_var=no
michael@0 10134 ;;
michael@0 10135
michael@0 10136 sysv4.3*)
michael@0 10137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
michael@0 10138 hardcode_shlibpath_var=no
michael@0 10139 export_dynamic_flag_spec='-Bexport'
michael@0 10140 ;;
michael@0 10141
michael@0 10142 sysv4*MP*)
michael@0 10143 if test -d /usr/nec; then
michael@0 10144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
michael@0 10145 hardcode_shlibpath_var=no
michael@0 10146 runpath_var=LD_RUN_PATH
michael@0 10147 hardcode_runpath_var=yes
michael@0 10148 ld_shlibs=yes
michael@0 10149 fi
michael@0 10150 ;;
michael@0 10151
michael@0 10152 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
michael@0 10153 no_undefined_flag='${wl}-z,text'
michael@0 10154 archive_cmds_need_lc=no
michael@0 10155 hardcode_shlibpath_var=no
michael@0 10156 runpath_var='LD_RUN_PATH'
michael@0 10157
michael@0 10158 if test "$GCC" = yes; then
michael@0 10159 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
michael@0 10160 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
michael@0 10161 else
michael@0 10162 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
michael@0 10163 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
michael@0 10164 fi
michael@0 10165 ;;
michael@0 10166
michael@0 10167 sysv5* | sco3.2v5* | sco5v6*)
michael@0 10168 # Note: We can NOT use -z defs as we might desire, because we do not
michael@0 10169 # link with -lc, and that would cause any symbols used from libc to
michael@0 10170 # always be unresolved, which means just about no library would
michael@0 10171 # ever link correctly. If we're not using GNU ld we use -z text
michael@0 10172 # though, which does catch some bad symbols but isn't as heavy-handed
michael@0 10173 # as -z defs.
michael@0 10174 no_undefined_flag='${wl}-z,text'
michael@0 10175 allow_undefined_flag='${wl}-z,nodefs'
michael@0 10176 archive_cmds_need_lc=no
michael@0 10177 hardcode_shlibpath_var=no
michael@0 10178 hardcode_libdir_flag_spec='${wl}-R,$libdir'
michael@0 10179 hardcode_libdir_separator=':'
michael@0 10180 link_all_deplibs=yes
michael@0 10181 export_dynamic_flag_spec='${wl}-Bexport'
michael@0 10182 runpath_var='LD_RUN_PATH'
michael@0 10183
michael@0 10184 if test "$GCC" = yes; then
michael@0 10185 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
michael@0 10186 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
michael@0 10187 else
michael@0 10188 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
michael@0 10189 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
michael@0 10190 fi
michael@0 10191 ;;
michael@0 10192
michael@0 10193 uts4*)
michael@0 10194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
michael@0 10195 hardcode_libdir_flag_spec='-L$libdir'
michael@0 10196 hardcode_shlibpath_var=no
michael@0 10197 ;;
michael@0 10198
michael@0 10199 *)
michael@0 10200 ld_shlibs=no
michael@0 10201 ;;
michael@0 10202 esac
michael@0 10203
michael@0 10204 if test x$host_vendor = xsni; then
michael@0 10205 case $host in
michael@0 10206 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
michael@0 10207 export_dynamic_flag_spec='${wl}-Blargedynsym'
michael@0 10208 ;;
michael@0 10209 esac
michael@0 10210 fi
michael@0 10211 fi
michael@0 10212
michael@0 10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
michael@0 10214 $as_echo "$ld_shlibs" >&6; }
michael@0 10215 test "$ld_shlibs" = no && can_build_shared=no
michael@0 10216
michael@0 10217 with_gnu_ld=$with_gnu_ld
michael@0 10218
michael@0 10219
michael@0 10220
michael@0 10221
michael@0 10222
michael@0 10223
michael@0 10224
michael@0 10225
michael@0 10226
michael@0 10227
michael@0 10228
michael@0 10229
michael@0 10230
michael@0 10231
michael@0 10232
michael@0 10233 #
michael@0 10234 # Do we need to explicitly link libc?
michael@0 10235 #
michael@0 10236 case "x$archive_cmds_need_lc" in
michael@0 10237 x|xyes)
michael@0 10238 # Assume -lc should be added
michael@0 10239 archive_cmds_need_lc=yes
michael@0 10240
michael@0 10241 if test "$enable_shared" = yes && test "$GCC" = yes; then
michael@0 10242 case $archive_cmds in
michael@0 10243 *'~'*)
michael@0 10244 # FIXME: we may have to deal with multi-command sequences.
michael@0 10245 ;;
michael@0 10246 '$CC '*)
michael@0 10247 # Test whether the compiler implicitly links with -lc since on some
michael@0 10248 # systems, -lgcc has to come before -lc. If gcc already passes -lc
michael@0 10249 # to ld, don't add -lc before -lgcc.
michael@0 10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
michael@0 10251 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
michael@0 10252 $RM conftest*
michael@0 10253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
michael@0 10254
michael@0 10255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
michael@0 10256 (eval $ac_compile) 2>&5
michael@0 10257 ac_status=$?
michael@0 10258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 10259 test $ac_status = 0; } 2>conftest.err; then
michael@0 10260 soname=conftest
michael@0 10261 lib=conftest
michael@0 10262 libobjs=conftest.$ac_objext
michael@0 10263 deplibs=
michael@0 10264 wl=$lt_prog_compiler_wl
michael@0 10265 pic_flag=$lt_prog_compiler_pic
michael@0 10266 compiler_flags=-v
michael@0 10267 linker_flags=-v
michael@0 10268 verstring=
michael@0 10269 output_objdir=.
michael@0 10270 libname=conftest
michael@0 10271 lt_save_allow_undefined_flag=$allow_undefined_flag
michael@0 10272 allow_undefined_flag=
michael@0 10273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
michael@0 10274 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
michael@0 10275 ac_status=$?
michael@0 10276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 10277 test $ac_status = 0; }
michael@0 10278 then
michael@0 10279 archive_cmds_need_lc=no
michael@0 10280 else
michael@0 10281 archive_cmds_need_lc=yes
michael@0 10282 fi
michael@0 10283 allow_undefined_flag=$lt_save_allow_undefined_flag
michael@0 10284 else
michael@0 10285 cat conftest.err 1>&5
michael@0 10286 fi
michael@0 10287 $RM conftest*
michael@0 10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
michael@0 10289 $as_echo "$archive_cmds_need_lc" >&6; }
michael@0 10290 ;;
michael@0 10291 esac
michael@0 10292 fi
michael@0 10293 ;;
michael@0 10294 esac
michael@0 10295
michael@0 10296
michael@0 10297
michael@0 10298
michael@0 10299
michael@0 10300
michael@0 10301
michael@0 10302
michael@0 10303
michael@0 10304
michael@0 10305
michael@0 10306
michael@0 10307
michael@0 10308
michael@0 10309
michael@0 10310
michael@0 10311
michael@0 10312
michael@0 10313
michael@0 10314
michael@0 10315
michael@0 10316
michael@0 10317
michael@0 10318
michael@0 10319
michael@0 10320
michael@0 10321
michael@0 10322
michael@0 10323
michael@0 10324
michael@0 10325
michael@0 10326
michael@0 10327
michael@0 10328
michael@0 10329
michael@0 10330
michael@0 10331
michael@0 10332
michael@0 10333
michael@0 10334
michael@0 10335
michael@0 10336
michael@0 10337
michael@0 10338
michael@0 10339
michael@0 10340
michael@0 10341
michael@0 10342
michael@0 10343
michael@0 10344
michael@0 10345
michael@0 10346
michael@0 10347
michael@0 10348
michael@0 10349
michael@0 10350
michael@0 10351
michael@0 10352
michael@0 10353
michael@0 10354
michael@0 10355
michael@0 10356
michael@0 10357
michael@0 10358
michael@0 10359
michael@0 10360
michael@0 10361
michael@0 10362
michael@0 10363
michael@0 10364
michael@0 10365
michael@0 10366
michael@0 10367
michael@0 10368
michael@0 10369
michael@0 10370
michael@0 10371
michael@0 10372
michael@0 10373
michael@0 10374
michael@0 10375
michael@0 10376
michael@0 10377
michael@0 10378
michael@0 10379
michael@0 10380
michael@0 10381
michael@0 10382
michael@0 10383
michael@0 10384
michael@0 10385
michael@0 10386
michael@0 10387
michael@0 10388
michael@0 10389
michael@0 10390
michael@0 10391
michael@0 10392
michael@0 10393
michael@0 10394
michael@0 10395
michael@0 10396
michael@0 10397
michael@0 10398
michael@0 10399
michael@0 10400
michael@0 10401
michael@0 10402
michael@0 10403
michael@0 10404
michael@0 10405
michael@0 10406
michael@0 10407
michael@0 10408
michael@0 10409
michael@0 10410
michael@0 10411
michael@0 10412
michael@0 10413
michael@0 10414
michael@0 10415
michael@0 10416
michael@0 10417
michael@0 10418
michael@0 10419
michael@0 10420
michael@0 10421
michael@0 10422
michael@0 10423
michael@0 10424
michael@0 10425
michael@0 10426
michael@0 10427
michael@0 10428
michael@0 10429
michael@0 10430
michael@0 10431
michael@0 10432
michael@0 10433
michael@0 10434
michael@0 10435
michael@0 10436
michael@0 10437
michael@0 10438
michael@0 10439
michael@0 10440
michael@0 10441
michael@0 10442
michael@0 10443
michael@0 10444
michael@0 10445
michael@0 10446
michael@0 10447
michael@0 10448
michael@0 10449
michael@0 10450
michael@0 10451
michael@0 10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
michael@0 10453 $as_echo_n "checking dynamic linker characteristics... " >&6; }
michael@0 10454
michael@0 10455 if test "$GCC" = yes; then
michael@0 10456 case $host_os in
michael@0 10457 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
michael@0 10458 *) lt_awk_arg="/^libraries:/" ;;
michael@0 10459 esac
michael@0 10460 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
michael@0 10461 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
michael@0 10462 # if the path contains ";" then we assume it to be the separator
michael@0 10463 # otherwise default to the standard path separator (i.e. ":") - it is
michael@0 10464 # assumed that no part of a normal pathname contains ";" but that should
michael@0 10465 # okay in the real world where ";" in dirpaths is itself problematic.
michael@0 10466 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
michael@0 10467 else
michael@0 10468 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
michael@0 10469 fi
michael@0 10470 # Ok, now we have the path, separated by spaces, we can step through it
michael@0 10471 # and add multilib dir if necessary.
michael@0 10472 lt_tmp_lt_search_path_spec=
michael@0 10473 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
michael@0 10474 for lt_sys_path in $lt_search_path_spec; do
michael@0 10475 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
michael@0 10476 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
michael@0 10477 else
michael@0 10478 test -d "$lt_sys_path" && \
michael@0 10479 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
michael@0 10480 fi
michael@0 10481 done
michael@0 10482 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
michael@0 10483 BEGIN {RS=" "; FS="/|\n";} {
michael@0 10484 lt_foo="";
michael@0 10485 lt_count=0;
michael@0 10486 for (lt_i = NF; lt_i > 0; lt_i--) {
michael@0 10487 if ($lt_i != "" && $lt_i != ".") {
michael@0 10488 if ($lt_i == "..") {
michael@0 10489 lt_count++;
michael@0 10490 } else {
michael@0 10491 if (lt_count == 0) {
michael@0 10492 lt_foo="/" $lt_i lt_foo;
michael@0 10493 } else {
michael@0 10494 lt_count--;
michael@0 10495 }
michael@0 10496 }
michael@0 10497 }
michael@0 10498 }
michael@0 10499 if (lt_foo != "") { lt_freq[lt_foo]++; }
michael@0 10500 if (lt_freq[lt_foo] == 1) { print lt_foo; }
michael@0 10501 }'`
michael@0 10502 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
michael@0 10503 else
michael@0 10504 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
michael@0 10505 fi
michael@0 10506 library_names_spec=
michael@0 10507 libname_spec='lib$name'
michael@0 10508 soname_spec=
michael@0 10509 shrext_cmds=".so"
michael@0 10510 postinstall_cmds=
michael@0 10511 postuninstall_cmds=
michael@0 10512 finish_cmds=
michael@0 10513 finish_eval=
michael@0 10514 shlibpath_var=
michael@0 10515 shlibpath_overrides_runpath=unknown
michael@0 10516 version_type=none
michael@0 10517 dynamic_linker="$host_os ld.so"
michael@0 10518 sys_lib_dlsearch_path_spec="/lib /usr/lib"
michael@0 10519 need_lib_prefix=unknown
michael@0 10520 hardcode_into_libs=no
michael@0 10521
michael@0 10522 # when you set need_version to no, make sure it does not cause -set_version
michael@0 10523 # flags to be left without arguments
michael@0 10524 need_version=unknown
michael@0 10525
michael@0 10526 case $host_os in
michael@0 10527 aix3*)
michael@0 10528 version_type=linux
michael@0 10529 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
michael@0 10530 shlibpath_var=LIBPATH
michael@0 10531
michael@0 10532 # AIX 3 has no versioning support, so we append a major version to the name.
michael@0 10533 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 10534 ;;
michael@0 10535
michael@0 10536 aix[4-9]*)
michael@0 10537 version_type=linux
michael@0 10538 need_lib_prefix=no
michael@0 10539 need_version=no
michael@0 10540 hardcode_into_libs=yes
michael@0 10541 if test "$host_cpu" = ia64; then
michael@0 10542 # AIX 5 supports IA64
michael@0 10543 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
michael@0 10544 shlibpath_var=LD_LIBRARY_PATH
michael@0 10545 else
michael@0 10546 # With GCC up to 2.95.x, collect2 would create an import file
michael@0 10547 # for dependence libraries. The import file would start with
michael@0 10548 # the line `#! .'. This would cause the generated library to
michael@0 10549 # depend on `.', always an invalid library. This was fixed in
michael@0 10550 # development snapshots of GCC prior to 3.0.
michael@0 10551 case $host_os in
michael@0 10552 aix4 | aix4.[01] | aix4.[01].*)
michael@0 10553 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
michael@0 10554 echo ' yes '
michael@0 10555 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
michael@0 10556 :
michael@0 10557 else
michael@0 10558 can_build_shared=no
michael@0 10559 fi
michael@0 10560 ;;
michael@0 10561 esac
michael@0 10562 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
michael@0 10563 # soname into executable. Probably we can add versioning support to
michael@0 10564 # collect2, so additional links can be useful in future.
michael@0 10565 if test "$aix_use_runtimelinking" = yes; then
michael@0 10566 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
michael@0 10567 # instead of lib<name>.a to let people know that these are not
michael@0 10568 # typical AIX shared libraries.
michael@0 10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
michael@0 10570 else
michael@0 10571 # We preserve .a as extension for shared libraries through AIX4.2
michael@0 10572 # and later when we are not doing run time linking.
michael@0 10573 library_names_spec='${libname}${release}.a $libname.a'
michael@0 10574 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 10575 fi
michael@0 10576 shlibpath_var=LIBPATH
michael@0 10577 fi
michael@0 10578 ;;
michael@0 10579
michael@0 10580 amigaos*)
michael@0 10581 case $host_cpu in
michael@0 10582 powerpc)
michael@0 10583 # Since July 2007 AmigaOS4 officially supports .so libraries.
michael@0 10584 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
michael@0 10585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
michael@0 10586 ;;
michael@0 10587 m68k)
michael@0 10588 library_names_spec='$libname.ixlibrary $libname.a'
michael@0 10589 # Create ${libname}_ixlibrary.a entries in /sys/libs.
michael@0 10590 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
michael@0 10591 ;;
michael@0 10592 esac
michael@0 10593 ;;
michael@0 10594
michael@0 10595 beos*)
michael@0 10596 library_names_spec='${libname}${shared_ext}'
michael@0 10597 dynamic_linker="$host_os ld.so"
michael@0 10598 shlibpath_var=LIBRARY_PATH
michael@0 10599 ;;
michael@0 10600
michael@0 10601 bsdi[45]*)
michael@0 10602 version_type=linux
michael@0 10603 need_version=no
michael@0 10604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
michael@0 10605 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 10606 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
michael@0 10607 shlibpath_var=LD_LIBRARY_PATH
michael@0 10608 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
michael@0 10609 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
michael@0 10610 # the default ld.so.conf also contains /usr/contrib/lib and
michael@0 10611 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
michael@0 10612 # libtool to hard-code these into programs
michael@0 10613 ;;
michael@0 10614
michael@0 10615 cygwin* | mingw* | pw32* | cegcc*)
michael@0 10616 version_type=windows
michael@0 10617 shrext_cmds=".dll"
michael@0 10618 need_version=no
michael@0 10619 need_lib_prefix=no
michael@0 10620
michael@0 10621 case $GCC,$host_os in
michael@0 10622 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
michael@0 10623 library_names_spec='$libname.dll.a'
michael@0 10624 # DLL is installed to $(libdir)/../bin by postinstall_cmds
michael@0 10625 postinstall_cmds='base_file=`basename \${file}`~
michael@0 10626 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
michael@0 10627 dldir=$destdir/`dirname \$dlpath`~
michael@0 10628 test -d \$dldir || mkdir -p \$dldir~
michael@0 10629 $install_prog $dir/$dlname \$dldir/$dlname~
michael@0 10630 chmod a+x \$dldir/$dlname~
michael@0 10631 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
michael@0 10632 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
michael@0 10633 fi'
michael@0 10634 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
michael@0 10635 dlpath=$dir/\$dldll~
michael@0 10636 $RM \$dlpath'
michael@0 10637 shlibpath_overrides_runpath=yes
michael@0 10638
michael@0 10639 case $host_os in
michael@0 10640 cygwin*)
michael@0 10641 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
michael@0 10642 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
michael@0 10643 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
michael@0 10644 ;;
michael@0 10645 mingw* | cegcc*)
michael@0 10646 # MinGW DLLs use traditional 'lib' prefix
michael@0 10647 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
michael@0 10648 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
michael@0 10649 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
michael@0 10650 # It is most probably a Windows format PATH printed by
michael@0 10651 # mingw gcc, but we are running on Cygwin. Gcc prints its search
michael@0 10652 # path with ; separators, and with drive letters. We can handle the
michael@0 10653 # drive letters (cygwin fileutils understands them), so leave them,
michael@0 10654 # especially as we might pass files found there to a mingw objdump,
michael@0 10655 # which wouldn't understand a cygwinified path. Ahh.
michael@0 10656 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
michael@0 10657 else
michael@0 10658 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
michael@0 10659 fi
michael@0 10660 ;;
michael@0 10661 pw32*)
michael@0 10662 # pw32 DLLs use 'pw' prefix rather than 'lib'
michael@0 10663 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
michael@0 10664 ;;
michael@0 10665 esac
michael@0 10666 ;;
michael@0 10667
michael@0 10668 *)
michael@0 10669 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
michael@0 10670 ;;
michael@0 10671 esac
michael@0 10672 dynamic_linker='Win32 ld.exe'
michael@0 10673 # FIXME: first we should search . and the directory the executable is in
michael@0 10674 shlibpath_var=PATH
michael@0 10675 ;;
michael@0 10676
michael@0 10677 darwin* | rhapsody*)
michael@0 10678 dynamic_linker="$host_os dyld"
michael@0 10679 version_type=darwin
michael@0 10680 need_lib_prefix=no
michael@0 10681 need_version=no
michael@0 10682 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
michael@0 10683 soname_spec='${libname}${release}${major}$shared_ext'
michael@0 10684 shlibpath_overrides_runpath=yes
michael@0 10685 shlibpath_var=DYLD_LIBRARY_PATH
michael@0 10686 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
michael@0 10687
michael@0 10688 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
michael@0 10689 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
michael@0 10690 ;;
michael@0 10691
michael@0 10692 dgux*)
michael@0 10693 version_type=linux
michael@0 10694 need_lib_prefix=no
michael@0 10695 need_version=no
michael@0 10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
michael@0 10697 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 10698 shlibpath_var=LD_LIBRARY_PATH
michael@0 10699 ;;
michael@0 10700
michael@0 10701 freebsd1*)
michael@0 10702 dynamic_linker=no
michael@0 10703 ;;
michael@0 10704
michael@0 10705 freebsd* | dragonfly*)
michael@0 10706 # DragonFly does not have aout. When/if they implement a new
michael@0 10707 # versioning mechanism, adjust this.
michael@0 10708 if test -x /usr/bin/objformat; then
michael@0 10709 objformat=`/usr/bin/objformat`
michael@0 10710 else
michael@0 10711 case $host_os in
michael@0 10712 freebsd[123]*) objformat=aout ;;
michael@0 10713 *) objformat=elf ;;
michael@0 10714 esac
michael@0 10715 fi
michael@0 10716 version_type=freebsd-$objformat
michael@0 10717 case $version_type in
michael@0 10718 freebsd-elf*)
michael@0 10719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
michael@0 10720 need_version=no
michael@0 10721 need_lib_prefix=no
michael@0 10722 ;;
michael@0 10723 freebsd-*)
michael@0 10724 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
michael@0 10725 need_version=yes
michael@0 10726 ;;
michael@0 10727 esac
michael@0 10728 shlibpath_var=LD_LIBRARY_PATH
michael@0 10729 case $host_os in
michael@0 10730 freebsd2*)
michael@0 10731 shlibpath_overrides_runpath=yes
michael@0 10732 ;;
michael@0 10733 freebsd3.[01]* | freebsdelf3.[01]*)
michael@0 10734 shlibpath_overrides_runpath=yes
michael@0 10735 hardcode_into_libs=yes
michael@0 10736 ;;
michael@0 10737 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
michael@0 10738 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
michael@0 10739 shlibpath_overrides_runpath=no
michael@0 10740 hardcode_into_libs=yes
michael@0 10741 ;;
michael@0 10742 *) # from 4.6 on, and DragonFly
michael@0 10743 shlibpath_overrides_runpath=yes
michael@0 10744 hardcode_into_libs=yes
michael@0 10745 ;;
michael@0 10746 esac
michael@0 10747 ;;
michael@0 10748
michael@0 10749 gnu*)
michael@0 10750 version_type=linux
michael@0 10751 need_lib_prefix=no
michael@0 10752 need_version=no
michael@0 10753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
michael@0 10754 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 10755 shlibpath_var=LD_LIBRARY_PATH
michael@0 10756 hardcode_into_libs=yes
michael@0 10757 ;;
michael@0 10758
michael@0 10759 hpux9* | hpux10* | hpux11*)
michael@0 10760 # Give a soname corresponding to the major version so that dld.sl refuses to
michael@0 10761 # link against other versions.
michael@0 10762 version_type=sunos
michael@0 10763 need_lib_prefix=no
michael@0 10764 need_version=no
michael@0 10765 case $host_cpu in
michael@0 10766 ia64*)
michael@0 10767 shrext_cmds='.so'
michael@0 10768 hardcode_into_libs=yes
michael@0 10769 dynamic_linker="$host_os dld.so"
michael@0 10770 shlibpath_var=LD_LIBRARY_PATH
michael@0 10771 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
michael@0 10772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
michael@0 10773 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 10774 if test "X$HPUX_IA64_MODE" = X32; then
michael@0 10775 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
michael@0 10776 else
michael@0 10777 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
michael@0 10778 fi
michael@0 10779 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
michael@0 10780 ;;
michael@0 10781 hppa*64*)
michael@0 10782 shrext_cmds='.sl'
michael@0 10783 hardcode_into_libs=yes
michael@0 10784 dynamic_linker="$host_os dld.sl"
michael@0 10785 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
michael@0 10786 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
michael@0 10787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
michael@0 10788 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 10789 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
michael@0 10790 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
michael@0 10791 ;;
michael@0 10792 *)
michael@0 10793 shrext_cmds='.sl'
michael@0 10794 dynamic_linker="$host_os dld.sl"
michael@0 10795 shlibpath_var=SHLIB_PATH
michael@0 10796 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
michael@0 10797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
michael@0 10798 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 10799 ;;
michael@0 10800 esac
michael@0 10801 # HP-UX runs *really* slowly unless shared libraries are mode 555.
michael@0 10802 postinstall_cmds='chmod 555 $lib'
michael@0 10803 ;;
michael@0 10804
michael@0 10805 interix[3-9]*)
michael@0 10806 version_type=linux
michael@0 10807 need_lib_prefix=no
michael@0 10808 need_version=no
michael@0 10809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
michael@0 10810 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 10811 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
michael@0 10812 shlibpath_var=LD_LIBRARY_PATH
michael@0 10813 shlibpath_overrides_runpath=no
michael@0 10814 hardcode_into_libs=yes
michael@0 10815 ;;
michael@0 10816
michael@0 10817 irix5* | irix6* | nonstopux*)
michael@0 10818 case $host_os in
michael@0 10819 nonstopux*) version_type=nonstopux ;;
michael@0 10820 *)
michael@0 10821 if test "$lt_cv_prog_gnu_ld" = yes; then
michael@0 10822 version_type=linux
michael@0 10823 else
michael@0 10824 version_type=irix
michael@0 10825 fi ;;
michael@0 10826 esac
michael@0 10827 need_lib_prefix=no
michael@0 10828 need_version=no
michael@0 10829 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 10830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
michael@0 10831 case $host_os in
michael@0 10832 irix5* | nonstopux*)
michael@0 10833 libsuff= shlibsuff=
michael@0 10834 ;;
michael@0 10835 *)
michael@0 10836 case $LD in # libtool.m4 will add one of these switches to LD
michael@0 10837 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
michael@0 10838 libsuff= shlibsuff= libmagic=32-bit;;
michael@0 10839 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
michael@0 10840 libsuff=32 shlibsuff=N32 libmagic=N32;;
michael@0 10841 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
michael@0 10842 libsuff=64 shlibsuff=64 libmagic=64-bit;;
michael@0 10843 *) libsuff= shlibsuff= libmagic=never-match;;
michael@0 10844 esac
michael@0 10845 ;;
michael@0 10846 esac
michael@0 10847 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
michael@0 10848 shlibpath_overrides_runpath=no
michael@0 10849 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
michael@0 10850 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
michael@0 10851 hardcode_into_libs=yes
michael@0 10852 ;;
michael@0 10853
michael@0 10854 # No shared lib support for Linux oldld, aout, or coff.
michael@0 10855 linux*oldld* | linux*aout* | linux*coff*)
michael@0 10856 dynamic_linker=no
michael@0 10857 ;;
michael@0 10858
michael@0 10859 # This must be Linux ELF.
michael@0 10860 linux* | k*bsd*-gnu | kopensolaris*-gnu)
michael@0 10861 version_type=linux
michael@0 10862 need_lib_prefix=no
michael@0 10863 need_version=no
michael@0 10864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
michael@0 10865 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 10866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
michael@0 10867 shlibpath_var=LD_LIBRARY_PATH
michael@0 10868 shlibpath_overrides_runpath=no
michael@0 10869 # Some binutils ld are patched to set DT_RUNPATH
michael@0 10870 save_LDFLAGS=$LDFLAGS
michael@0 10871 save_libdir=$libdir
michael@0 10872 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
michael@0 10873 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
michael@0 10874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 10875 /* end confdefs.h. */
michael@0 10876
michael@0 10877 int
michael@0 10878 main ()
michael@0 10879 {
michael@0 10880
michael@0 10881 ;
michael@0 10882 return 0;
michael@0 10883 }
michael@0 10884 _ACEOF
michael@0 10885 if ac_fn_c_try_link "$LINENO"; then :
michael@0 10886 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
michael@0 10887 shlibpath_overrides_runpath=yes
michael@0 10888 fi
michael@0 10889 fi
michael@0 10890 rm -f core conftest.err conftest.$ac_objext \
michael@0 10891 conftest$ac_exeext conftest.$ac_ext
michael@0 10892 LDFLAGS=$save_LDFLAGS
michael@0 10893 libdir=$save_libdir
michael@0 10894
michael@0 10895 # This implies no fast_install, which is unacceptable.
michael@0 10896 # Some rework will be needed to allow for fast_install
michael@0 10897 # before this can be enabled.
michael@0 10898 hardcode_into_libs=yes
michael@0 10899
michael@0 10900 # Append ld.so.conf contents to the search path
michael@0 10901 if test -f /etc/ld.so.conf; then
michael@0 10902 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
michael@0 10903 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
michael@0 10904 fi
michael@0 10905
michael@0 10906 # We used to test for /lib/ld.so.1 and disable shared libraries on
michael@0 10907 # powerpc, because MkLinux only supported shared libraries with the
michael@0 10908 # GNU dynamic linker. Since this was broken with cross compilers,
michael@0 10909 # most powerpc-linux boxes support dynamic linking these days and
michael@0 10910 # people can always --disable-shared, the test was removed, and we
michael@0 10911 # assume the GNU/Linux dynamic linker is in use.
michael@0 10912 dynamic_linker='GNU/Linux ld.so'
michael@0 10913 ;;
michael@0 10914
michael@0 10915 netbsdelf*-gnu)
michael@0 10916 version_type=linux
michael@0 10917 need_lib_prefix=no
michael@0 10918 need_version=no
michael@0 10919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
michael@0 10920 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 10921 shlibpath_var=LD_LIBRARY_PATH
michael@0 10922 shlibpath_overrides_runpath=no
michael@0 10923 hardcode_into_libs=yes
michael@0 10924 dynamic_linker='NetBSD ld.elf_so'
michael@0 10925 ;;
michael@0 10926
michael@0 10927 netbsd*)
michael@0 10928 version_type=sunos
michael@0 10929 need_lib_prefix=no
michael@0 10930 need_version=no
michael@0 10931 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
michael@0 10932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
michael@0 10933 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
michael@0 10934 dynamic_linker='NetBSD (a.out) ld.so'
michael@0 10935 else
michael@0 10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
michael@0 10937 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 10938 dynamic_linker='NetBSD ld.elf_so'
michael@0 10939 fi
michael@0 10940 shlibpath_var=LD_LIBRARY_PATH
michael@0 10941 shlibpath_overrides_runpath=yes
michael@0 10942 hardcode_into_libs=yes
michael@0 10943 ;;
michael@0 10944
michael@0 10945 newsos6)
michael@0 10946 version_type=linux
michael@0 10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
michael@0 10948 shlibpath_var=LD_LIBRARY_PATH
michael@0 10949 shlibpath_overrides_runpath=yes
michael@0 10950 ;;
michael@0 10951
michael@0 10952 *nto* | *qnx*)
michael@0 10953 version_type=qnx
michael@0 10954 need_lib_prefix=no
michael@0 10955 need_version=no
michael@0 10956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
michael@0 10957 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 10958 shlibpath_var=LD_LIBRARY_PATH
michael@0 10959 shlibpath_overrides_runpath=no
michael@0 10960 hardcode_into_libs=yes
michael@0 10961 dynamic_linker='ldqnx.so'
michael@0 10962 ;;
michael@0 10963
michael@0 10964 openbsd*)
michael@0 10965 version_type=sunos
michael@0 10966 sys_lib_dlsearch_path_spec="/usr/lib"
michael@0 10967 need_lib_prefix=no
michael@0 10968 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
michael@0 10969 case $host_os in
michael@0 10970 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
michael@0 10971 *) need_version=no ;;
michael@0 10972 esac
michael@0 10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
michael@0 10974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
michael@0 10975 shlibpath_var=LD_LIBRARY_PATH
michael@0 10976 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
michael@0 10977 case $host_os in
michael@0 10978 openbsd2.[89] | openbsd2.[89].*)
michael@0 10979 shlibpath_overrides_runpath=no
michael@0 10980 ;;
michael@0 10981 *)
michael@0 10982 shlibpath_overrides_runpath=yes
michael@0 10983 ;;
michael@0 10984 esac
michael@0 10985 else
michael@0 10986 shlibpath_overrides_runpath=yes
michael@0 10987 fi
michael@0 10988 ;;
michael@0 10989
michael@0 10990 os2*)
michael@0 10991 libname_spec='$name'
michael@0 10992 shrext_cmds=".dll"
michael@0 10993 need_lib_prefix=no
michael@0 10994 library_names_spec='$libname${shared_ext} $libname.a'
michael@0 10995 dynamic_linker='OS/2 ld.exe'
michael@0 10996 shlibpath_var=LIBPATH
michael@0 10997 ;;
michael@0 10998
michael@0 10999 osf3* | osf4* | osf5*)
michael@0 11000 version_type=osf
michael@0 11001 need_lib_prefix=no
michael@0 11002 need_version=no
michael@0 11003 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 11004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
michael@0 11005 shlibpath_var=LD_LIBRARY_PATH
michael@0 11006 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
michael@0 11007 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
michael@0 11008 ;;
michael@0 11009
michael@0 11010 rdos*)
michael@0 11011 dynamic_linker=no
michael@0 11012 ;;
michael@0 11013
michael@0 11014 solaris*)
michael@0 11015 version_type=linux
michael@0 11016 need_lib_prefix=no
michael@0 11017 need_version=no
michael@0 11018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
michael@0 11019 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 11020 shlibpath_var=LD_LIBRARY_PATH
michael@0 11021 shlibpath_overrides_runpath=yes
michael@0 11022 hardcode_into_libs=yes
michael@0 11023 # ldd complains unless libraries are executable
michael@0 11024 postinstall_cmds='chmod +x $lib'
michael@0 11025 ;;
michael@0 11026
michael@0 11027 sunos4*)
michael@0 11028 version_type=sunos
michael@0 11029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
michael@0 11030 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
michael@0 11031 shlibpath_var=LD_LIBRARY_PATH
michael@0 11032 shlibpath_overrides_runpath=yes
michael@0 11033 if test "$with_gnu_ld" = yes; then
michael@0 11034 need_lib_prefix=no
michael@0 11035 fi
michael@0 11036 need_version=yes
michael@0 11037 ;;
michael@0 11038
michael@0 11039 sysv4 | sysv4.3*)
michael@0 11040 version_type=linux
michael@0 11041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
michael@0 11042 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 11043 shlibpath_var=LD_LIBRARY_PATH
michael@0 11044 case $host_vendor in
michael@0 11045 sni)
michael@0 11046 shlibpath_overrides_runpath=no
michael@0 11047 need_lib_prefix=no
michael@0 11048 runpath_var=LD_RUN_PATH
michael@0 11049 ;;
michael@0 11050 siemens)
michael@0 11051 need_lib_prefix=no
michael@0 11052 ;;
michael@0 11053 motorola)
michael@0 11054 need_lib_prefix=no
michael@0 11055 need_version=no
michael@0 11056 shlibpath_overrides_runpath=no
michael@0 11057 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
michael@0 11058 ;;
michael@0 11059 esac
michael@0 11060 ;;
michael@0 11061
michael@0 11062 sysv4*MP*)
michael@0 11063 if test -d /usr/nec ;then
michael@0 11064 version_type=linux
michael@0 11065 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
michael@0 11066 soname_spec='$libname${shared_ext}.$major'
michael@0 11067 shlibpath_var=LD_LIBRARY_PATH
michael@0 11068 fi
michael@0 11069 ;;
michael@0 11070
michael@0 11071 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
michael@0 11072 version_type=freebsd-elf
michael@0 11073 need_lib_prefix=no
michael@0 11074 need_version=no
michael@0 11075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
michael@0 11076 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 11077 shlibpath_var=LD_LIBRARY_PATH
michael@0 11078 shlibpath_overrides_runpath=yes
michael@0 11079 hardcode_into_libs=yes
michael@0 11080 if test "$with_gnu_ld" = yes; then
michael@0 11081 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
michael@0 11082 else
michael@0 11083 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
michael@0 11084 case $host_os in
michael@0 11085 sco3.2v5*)
michael@0 11086 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
michael@0 11087 ;;
michael@0 11088 esac
michael@0 11089 fi
michael@0 11090 sys_lib_dlsearch_path_spec='/usr/lib'
michael@0 11091 ;;
michael@0 11092
michael@0 11093 tpf*)
michael@0 11094 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
michael@0 11095 version_type=linux
michael@0 11096 need_lib_prefix=no
michael@0 11097 need_version=no
michael@0 11098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
michael@0 11099 shlibpath_var=LD_LIBRARY_PATH
michael@0 11100 shlibpath_overrides_runpath=no
michael@0 11101 hardcode_into_libs=yes
michael@0 11102 ;;
michael@0 11103
michael@0 11104 uts4*)
michael@0 11105 version_type=linux
michael@0 11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
michael@0 11107 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 11108 shlibpath_var=LD_LIBRARY_PATH
michael@0 11109 ;;
michael@0 11110
michael@0 11111 *)
michael@0 11112 dynamic_linker=no
michael@0 11113 ;;
michael@0 11114 esac
michael@0 11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
michael@0 11116 $as_echo "$dynamic_linker" >&6; }
michael@0 11117 test "$dynamic_linker" = no && can_build_shared=no
michael@0 11118
michael@0 11119 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
michael@0 11120 if test "$GCC" = yes; then
michael@0 11121 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
michael@0 11122 fi
michael@0 11123
michael@0 11124 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
michael@0 11125 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
michael@0 11126 fi
michael@0 11127 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
michael@0 11128 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
michael@0 11129 fi
michael@0 11130
michael@0 11131
michael@0 11132
michael@0 11133
michael@0 11134
michael@0 11135
michael@0 11136
michael@0 11137
michael@0 11138
michael@0 11139
michael@0 11140
michael@0 11141
michael@0 11142
michael@0 11143
michael@0 11144
michael@0 11145
michael@0 11146
michael@0 11147
michael@0 11148
michael@0 11149
michael@0 11150
michael@0 11151
michael@0 11152
michael@0 11153
michael@0 11154
michael@0 11155
michael@0 11156
michael@0 11157
michael@0 11158
michael@0 11159
michael@0 11160
michael@0 11161
michael@0 11162
michael@0 11163
michael@0 11164
michael@0 11165
michael@0 11166
michael@0 11167
michael@0 11168
michael@0 11169
michael@0 11170
michael@0 11171
michael@0 11172
michael@0 11173
michael@0 11174
michael@0 11175
michael@0 11176
michael@0 11177
michael@0 11178
michael@0 11179
michael@0 11180
michael@0 11181
michael@0 11182
michael@0 11183
michael@0 11184
michael@0 11185
michael@0 11186
michael@0 11187
michael@0 11188
michael@0 11189
michael@0 11190
michael@0 11191
michael@0 11192
michael@0 11193
michael@0 11194
michael@0 11195
michael@0 11196
michael@0 11197
michael@0 11198
michael@0 11199
michael@0 11200
michael@0 11201
michael@0 11202
michael@0 11203
michael@0 11204
michael@0 11205
michael@0 11206
michael@0 11207
michael@0 11208
michael@0 11209
michael@0 11210
michael@0 11211
michael@0 11212
michael@0 11213
michael@0 11214
michael@0 11215
michael@0 11216
michael@0 11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
michael@0 11218 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
michael@0 11219 hardcode_action=
michael@0 11220 if test -n "$hardcode_libdir_flag_spec" ||
michael@0 11221 test -n "$runpath_var" ||
michael@0 11222 test "X$hardcode_automatic" = "Xyes" ; then
michael@0 11223
michael@0 11224 # We can hardcode non-existent directories.
michael@0 11225 if test "$hardcode_direct" != no &&
michael@0 11226 # If the only mechanism to avoid hardcoding is shlibpath_var, we
michael@0 11227 # have to relink, otherwise we might link with an installed library
michael@0 11228 # when we should be linking with a yet-to-be-installed one
michael@0 11229 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
michael@0 11230 test "$hardcode_minus_L" != no; then
michael@0 11231 # Linking always hardcodes the temporary library directory.
michael@0 11232 hardcode_action=relink
michael@0 11233 else
michael@0 11234 # We can link without hardcoding, and we can hardcode nonexisting dirs.
michael@0 11235 hardcode_action=immediate
michael@0 11236 fi
michael@0 11237 else
michael@0 11238 # We cannot hardcode anything, or else we can only hardcode existing
michael@0 11239 # directories.
michael@0 11240 hardcode_action=unsupported
michael@0 11241 fi
michael@0 11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
michael@0 11243 $as_echo "$hardcode_action" >&6; }
michael@0 11244
michael@0 11245 if test "$hardcode_action" = relink ||
michael@0 11246 test "$inherit_rpath" = yes; then
michael@0 11247 # Fast installation is not supported
michael@0 11248 enable_fast_install=no
michael@0 11249 elif test "$shlibpath_overrides_runpath" = yes ||
michael@0 11250 test "$enable_shared" = no; then
michael@0 11251 # Fast installation is not necessary
michael@0 11252 enable_fast_install=needless
michael@0 11253 fi
michael@0 11254
michael@0 11255
michael@0 11256
michael@0 11257
michael@0 11258
michael@0 11259
michael@0 11260 if test "x$enable_dlopen" != xyes; then
michael@0 11261 enable_dlopen=unknown
michael@0 11262 enable_dlopen_self=unknown
michael@0 11263 enable_dlopen_self_static=unknown
michael@0 11264 else
michael@0 11265 lt_cv_dlopen=no
michael@0 11266 lt_cv_dlopen_libs=
michael@0 11267
michael@0 11268 case $host_os in
michael@0 11269 beos*)
michael@0 11270 lt_cv_dlopen="load_add_on"
michael@0 11271 lt_cv_dlopen_libs=
michael@0 11272 lt_cv_dlopen_self=yes
michael@0 11273 ;;
michael@0 11274
michael@0 11275 mingw* | pw32* | cegcc*)
michael@0 11276 lt_cv_dlopen="LoadLibrary"
michael@0 11277 lt_cv_dlopen_libs=
michael@0 11278 ;;
michael@0 11279
michael@0 11280 cygwin*)
michael@0 11281 lt_cv_dlopen="dlopen"
michael@0 11282 lt_cv_dlopen_libs=
michael@0 11283 ;;
michael@0 11284
michael@0 11285 darwin*)
michael@0 11286 # if libdl is installed we need to link against it
michael@0 11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
michael@0 11288 $as_echo_n "checking for dlopen in -ldl... " >&6; }
michael@0 11289 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
michael@0 11290 $as_echo_n "(cached) " >&6
michael@0 11291 else
michael@0 11292 ac_check_lib_save_LIBS=$LIBS
michael@0 11293 LIBS="-ldl $LIBS"
michael@0 11294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 11295 /* end confdefs.h. */
michael@0 11296
michael@0 11297 /* Override any GCC internal prototype to avoid an error.
michael@0 11298 Use char because int might match the return type of a GCC
michael@0 11299 builtin and then its argument prototype would still apply. */
michael@0 11300 #ifdef __cplusplus
michael@0 11301 extern "C"
michael@0 11302 #endif
michael@0 11303 char dlopen ();
michael@0 11304 int
michael@0 11305 main ()
michael@0 11306 {
michael@0 11307 return dlopen ();
michael@0 11308 ;
michael@0 11309 return 0;
michael@0 11310 }
michael@0 11311 _ACEOF
michael@0 11312 if ac_fn_c_try_link "$LINENO"; then :
michael@0 11313 ac_cv_lib_dl_dlopen=yes
michael@0 11314 else
michael@0 11315 ac_cv_lib_dl_dlopen=no
michael@0 11316 fi
michael@0 11317 rm -f core conftest.err conftest.$ac_objext \
michael@0 11318 conftest$ac_exeext conftest.$ac_ext
michael@0 11319 LIBS=$ac_check_lib_save_LIBS
michael@0 11320 fi
michael@0 11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
michael@0 11322 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
michael@0 11323 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
michael@0 11324 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
michael@0 11325 else
michael@0 11326
michael@0 11327 lt_cv_dlopen="dyld"
michael@0 11328 lt_cv_dlopen_libs=
michael@0 11329 lt_cv_dlopen_self=yes
michael@0 11330
michael@0 11331 fi
michael@0 11332
michael@0 11333 ;;
michael@0 11334
michael@0 11335 *)
michael@0 11336 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
michael@0 11337 if test "x$ac_cv_func_shl_load" = x""yes; then :
michael@0 11338 lt_cv_dlopen="shl_load"
michael@0 11339 else
michael@0 11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
michael@0 11341 $as_echo_n "checking for shl_load in -ldld... " >&6; }
michael@0 11342 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
michael@0 11343 $as_echo_n "(cached) " >&6
michael@0 11344 else
michael@0 11345 ac_check_lib_save_LIBS=$LIBS
michael@0 11346 LIBS="-ldld $LIBS"
michael@0 11347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 11348 /* end confdefs.h. */
michael@0 11349
michael@0 11350 /* Override any GCC internal prototype to avoid an error.
michael@0 11351 Use char because int might match the return type of a GCC
michael@0 11352 builtin and then its argument prototype would still apply. */
michael@0 11353 #ifdef __cplusplus
michael@0 11354 extern "C"
michael@0 11355 #endif
michael@0 11356 char shl_load ();
michael@0 11357 int
michael@0 11358 main ()
michael@0 11359 {
michael@0 11360 return shl_load ();
michael@0 11361 ;
michael@0 11362 return 0;
michael@0 11363 }
michael@0 11364 _ACEOF
michael@0 11365 if ac_fn_c_try_link "$LINENO"; then :
michael@0 11366 ac_cv_lib_dld_shl_load=yes
michael@0 11367 else
michael@0 11368 ac_cv_lib_dld_shl_load=no
michael@0 11369 fi
michael@0 11370 rm -f core conftest.err conftest.$ac_objext \
michael@0 11371 conftest$ac_exeext conftest.$ac_ext
michael@0 11372 LIBS=$ac_check_lib_save_LIBS
michael@0 11373 fi
michael@0 11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
michael@0 11375 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
michael@0 11376 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
michael@0 11377 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
michael@0 11378 else
michael@0 11379 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
michael@0 11380 if test "x$ac_cv_func_dlopen" = x""yes; then :
michael@0 11381 lt_cv_dlopen="dlopen"
michael@0 11382 else
michael@0 11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
michael@0 11384 $as_echo_n "checking for dlopen in -ldl... " >&6; }
michael@0 11385 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
michael@0 11386 $as_echo_n "(cached) " >&6
michael@0 11387 else
michael@0 11388 ac_check_lib_save_LIBS=$LIBS
michael@0 11389 LIBS="-ldl $LIBS"
michael@0 11390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 11391 /* end confdefs.h. */
michael@0 11392
michael@0 11393 /* Override any GCC internal prototype to avoid an error.
michael@0 11394 Use char because int might match the return type of a GCC
michael@0 11395 builtin and then its argument prototype would still apply. */
michael@0 11396 #ifdef __cplusplus
michael@0 11397 extern "C"
michael@0 11398 #endif
michael@0 11399 char dlopen ();
michael@0 11400 int
michael@0 11401 main ()
michael@0 11402 {
michael@0 11403 return dlopen ();
michael@0 11404 ;
michael@0 11405 return 0;
michael@0 11406 }
michael@0 11407 _ACEOF
michael@0 11408 if ac_fn_c_try_link "$LINENO"; then :
michael@0 11409 ac_cv_lib_dl_dlopen=yes
michael@0 11410 else
michael@0 11411 ac_cv_lib_dl_dlopen=no
michael@0 11412 fi
michael@0 11413 rm -f core conftest.err conftest.$ac_objext \
michael@0 11414 conftest$ac_exeext conftest.$ac_ext
michael@0 11415 LIBS=$ac_check_lib_save_LIBS
michael@0 11416 fi
michael@0 11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
michael@0 11418 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
michael@0 11419 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
michael@0 11420 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
michael@0 11421 else
michael@0 11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
michael@0 11423 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
michael@0 11424 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
michael@0 11425 $as_echo_n "(cached) " >&6
michael@0 11426 else
michael@0 11427 ac_check_lib_save_LIBS=$LIBS
michael@0 11428 LIBS="-lsvld $LIBS"
michael@0 11429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 11430 /* end confdefs.h. */
michael@0 11431
michael@0 11432 /* Override any GCC internal prototype to avoid an error.
michael@0 11433 Use char because int might match the return type of a GCC
michael@0 11434 builtin and then its argument prototype would still apply. */
michael@0 11435 #ifdef __cplusplus
michael@0 11436 extern "C"
michael@0 11437 #endif
michael@0 11438 char dlopen ();
michael@0 11439 int
michael@0 11440 main ()
michael@0 11441 {
michael@0 11442 return dlopen ();
michael@0 11443 ;
michael@0 11444 return 0;
michael@0 11445 }
michael@0 11446 _ACEOF
michael@0 11447 if ac_fn_c_try_link "$LINENO"; then :
michael@0 11448 ac_cv_lib_svld_dlopen=yes
michael@0 11449 else
michael@0 11450 ac_cv_lib_svld_dlopen=no
michael@0 11451 fi
michael@0 11452 rm -f core conftest.err conftest.$ac_objext \
michael@0 11453 conftest$ac_exeext conftest.$ac_ext
michael@0 11454 LIBS=$ac_check_lib_save_LIBS
michael@0 11455 fi
michael@0 11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
michael@0 11457 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
michael@0 11458 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
michael@0 11459 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
michael@0 11460 else
michael@0 11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
michael@0 11462 $as_echo_n "checking for dld_link in -ldld... " >&6; }
michael@0 11463 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
michael@0 11464 $as_echo_n "(cached) " >&6
michael@0 11465 else
michael@0 11466 ac_check_lib_save_LIBS=$LIBS
michael@0 11467 LIBS="-ldld $LIBS"
michael@0 11468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 11469 /* end confdefs.h. */
michael@0 11470
michael@0 11471 /* Override any GCC internal prototype to avoid an error.
michael@0 11472 Use char because int might match the return type of a GCC
michael@0 11473 builtin and then its argument prototype would still apply. */
michael@0 11474 #ifdef __cplusplus
michael@0 11475 extern "C"
michael@0 11476 #endif
michael@0 11477 char dld_link ();
michael@0 11478 int
michael@0 11479 main ()
michael@0 11480 {
michael@0 11481 return dld_link ();
michael@0 11482 ;
michael@0 11483 return 0;
michael@0 11484 }
michael@0 11485 _ACEOF
michael@0 11486 if ac_fn_c_try_link "$LINENO"; then :
michael@0 11487 ac_cv_lib_dld_dld_link=yes
michael@0 11488 else
michael@0 11489 ac_cv_lib_dld_dld_link=no
michael@0 11490 fi
michael@0 11491 rm -f core conftest.err conftest.$ac_objext \
michael@0 11492 conftest$ac_exeext conftest.$ac_ext
michael@0 11493 LIBS=$ac_check_lib_save_LIBS
michael@0 11494 fi
michael@0 11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
michael@0 11496 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
michael@0 11497 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
michael@0 11498 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
michael@0 11499 fi
michael@0 11500
michael@0 11501
michael@0 11502 fi
michael@0 11503
michael@0 11504
michael@0 11505 fi
michael@0 11506
michael@0 11507
michael@0 11508 fi
michael@0 11509
michael@0 11510
michael@0 11511 fi
michael@0 11512
michael@0 11513
michael@0 11514 fi
michael@0 11515
michael@0 11516 ;;
michael@0 11517 esac
michael@0 11518
michael@0 11519 if test "x$lt_cv_dlopen" != xno; then
michael@0 11520 enable_dlopen=yes
michael@0 11521 else
michael@0 11522 enable_dlopen=no
michael@0 11523 fi
michael@0 11524
michael@0 11525 case $lt_cv_dlopen in
michael@0 11526 dlopen)
michael@0 11527 save_CPPFLAGS="$CPPFLAGS"
michael@0 11528 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
michael@0 11529
michael@0 11530 save_LDFLAGS="$LDFLAGS"
michael@0 11531 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
michael@0 11532
michael@0 11533 save_LIBS="$LIBS"
michael@0 11534 LIBS="$lt_cv_dlopen_libs $LIBS"
michael@0 11535
michael@0 11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
michael@0 11537 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
michael@0 11538 if test "${lt_cv_dlopen_self+set}" = set; then :
michael@0 11539 $as_echo_n "(cached) " >&6
michael@0 11540 else
michael@0 11541 if test "$cross_compiling" = yes; then :
michael@0 11542 lt_cv_dlopen_self=cross
michael@0 11543 else
michael@0 11544 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
michael@0 11545 lt_status=$lt_dlunknown
michael@0 11546 cat > conftest.$ac_ext <<_LT_EOF
michael@0 11547 #line 11547 "configure"
michael@0 11548 #include "confdefs.h"
michael@0 11549
michael@0 11550 #if HAVE_DLFCN_H
michael@0 11551 #include <dlfcn.h>
michael@0 11552 #endif
michael@0 11553
michael@0 11554 #include <stdio.h>
michael@0 11555
michael@0 11556 #ifdef RTLD_GLOBAL
michael@0 11557 # define LT_DLGLOBAL RTLD_GLOBAL
michael@0 11558 #else
michael@0 11559 # ifdef DL_GLOBAL
michael@0 11560 # define LT_DLGLOBAL DL_GLOBAL
michael@0 11561 # else
michael@0 11562 # define LT_DLGLOBAL 0
michael@0 11563 # endif
michael@0 11564 #endif
michael@0 11565
michael@0 11566 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
michael@0 11567 find out it does not work in some platform. */
michael@0 11568 #ifndef LT_DLLAZY_OR_NOW
michael@0 11569 # ifdef RTLD_LAZY
michael@0 11570 # define LT_DLLAZY_OR_NOW RTLD_LAZY
michael@0 11571 # else
michael@0 11572 # ifdef DL_LAZY
michael@0 11573 # define LT_DLLAZY_OR_NOW DL_LAZY
michael@0 11574 # else
michael@0 11575 # ifdef RTLD_NOW
michael@0 11576 # define LT_DLLAZY_OR_NOW RTLD_NOW
michael@0 11577 # else
michael@0 11578 # ifdef DL_NOW
michael@0 11579 # define LT_DLLAZY_OR_NOW DL_NOW
michael@0 11580 # else
michael@0 11581 # define LT_DLLAZY_OR_NOW 0
michael@0 11582 # endif
michael@0 11583 # endif
michael@0 11584 # endif
michael@0 11585 # endif
michael@0 11586 #endif
michael@0 11587
michael@0 11588 void fnord() { int i=42;}
michael@0 11589 int main ()
michael@0 11590 {
michael@0 11591 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
michael@0 11592 int status = $lt_dlunknown;
michael@0 11593
michael@0 11594 if (self)
michael@0 11595 {
michael@0 11596 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
michael@0 11597 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
michael@0 11598 /* dlclose (self); */
michael@0 11599 }
michael@0 11600 else
michael@0 11601 puts (dlerror ());
michael@0 11602
michael@0 11603 return status;
michael@0 11604 }
michael@0 11605 _LT_EOF
michael@0 11606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
michael@0 11607 (eval $ac_link) 2>&5
michael@0 11608 ac_status=$?
michael@0 11609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 11610 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
michael@0 11611 (./conftest; exit; ) >&5 2>/dev/null
michael@0 11612 lt_status=$?
michael@0 11613 case x$lt_status in
michael@0 11614 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
michael@0 11615 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
michael@0 11616 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
michael@0 11617 esac
michael@0 11618 else :
michael@0 11619 # compilation failed
michael@0 11620 lt_cv_dlopen_self=no
michael@0 11621 fi
michael@0 11622 fi
michael@0 11623 rm -fr conftest*
michael@0 11624
michael@0 11625
michael@0 11626 fi
michael@0 11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
michael@0 11628 $as_echo "$lt_cv_dlopen_self" >&6; }
michael@0 11629
michael@0 11630 if test "x$lt_cv_dlopen_self" = xyes; then
michael@0 11631 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
michael@0 11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
michael@0 11633 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
michael@0 11634 if test "${lt_cv_dlopen_self_static+set}" = set; then :
michael@0 11635 $as_echo_n "(cached) " >&6
michael@0 11636 else
michael@0 11637 if test "$cross_compiling" = yes; then :
michael@0 11638 lt_cv_dlopen_self_static=cross
michael@0 11639 else
michael@0 11640 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
michael@0 11641 lt_status=$lt_dlunknown
michael@0 11642 cat > conftest.$ac_ext <<_LT_EOF
michael@0 11643 #line 11643 "configure"
michael@0 11644 #include "confdefs.h"
michael@0 11645
michael@0 11646 #if HAVE_DLFCN_H
michael@0 11647 #include <dlfcn.h>
michael@0 11648 #endif
michael@0 11649
michael@0 11650 #include <stdio.h>
michael@0 11651
michael@0 11652 #ifdef RTLD_GLOBAL
michael@0 11653 # define LT_DLGLOBAL RTLD_GLOBAL
michael@0 11654 #else
michael@0 11655 # ifdef DL_GLOBAL
michael@0 11656 # define LT_DLGLOBAL DL_GLOBAL
michael@0 11657 # else
michael@0 11658 # define LT_DLGLOBAL 0
michael@0 11659 # endif
michael@0 11660 #endif
michael@0 11661
michael@0 11662 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
michael@0 11663 find out it does not work in some platform. */
michael@0 11664 #ifndef LT_DLLAZY_OR_NOW
michael@0 11665 # ifdef RTLD_LAZY
michael@0 11666 # define LT_DLLAZY_OR_NOW RTLD_LAZY
michael@0 11667 # else
michael@0 11668 # ifdef DL_LAZY
michael@0 11669 # define LT_DLLAZY_OR_NOW DL_LAZY
michael@0 11670 # else
michael@0 11671 # ifdef RTLD_NOW
michael@0 11672 # define LT_DLLAZY_OR_NOW RTLD_NOW
michael@0 11673 # else
michael@0 11674 # ifdef DL_NOW
michael@0 11675 # define LT_DLLAZY_OR_NOW DL_NOW
michael@0 11676 # else
michael@0 11677 # define LT_DLLAZY_OR_NOW 0
michael@0 11678 # endif
michael@0 11679 # endif
michael@0 11680 # endif
michael@0 11681 # endif
michael@0 11682 #endif
michael@0 11683
michael@0 11684 void fnord() { int i=42;}
michael@0 11685 int main ()
michael@0 11686 {
michael@0 11687 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
michael@0 11688 int status = $lt_dlunknown;
michael@0 11689
michael@0 11690 if (self)
michael@0 11691 {
michael@0 11692 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
michael@0 11693 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
michael@0 11694 /* dlclose (self); */
michael@0 11695 }
michael@0 11696 else
michael@0 11697 puts (dlerror ());
michael@0 11698
michael@0 11699 return status;
michael@0 11700 }
michael@0 11701 _LT_EOF
michael@0 11702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
michael@0 11703 (eval $ac_link) 2>&5
michael@0 11704 ac_status=$?
michael@0 11705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 11706 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
michael@0 11707 (./conftest; exit; ) >&5 2>/dev/null
michael@0 11708 lt_status=$?
michael@0 11709 case x$lt_status in
michael@0 11710 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
michael@0 11711 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
michael@0 11712 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
michael@0 11713 esac
michael@0 11714 else :
michael@0 11715 # compilation failed
michael@0 11716 lt_cv_dlopen_self_static=no
michael@0 11717 fi
michael@0 11718 fi
michael@0 11719 rm -fr conftest*
michael@0 11720
michael@0 11721
michael@0 11722 fi
michael@0 11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
michael@0 11724 $as_echo "$lt_cv_dlopen_self_static" >&6; }
michael@0 11725 fi
michael@0 11726
michael@0 11727 CPPFLAGS="$save_CPPFLAGS"
michael@0 11728 LDFLAGS="$save_LDFLAGS"
michael@0 11729 LIBS="$save_LIBS"
michael@0 11730 ;;
michael@0 11731 esac
michael@0 11732
michael@0 11733 case $lt_cv_dlopen_self in
michael@0 11734 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
michael@0 11735 *) enable_dlopen_self=unknown ;;
michael@0 11736 esac
michael@0 11737
michael@0 11738 case $lt_cv_dlopen_self_static in
michael@0 11739 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
michael@0 11740 *) enable_dlopen_self_static=unknown ;;
michael@0 11741 esac
michael@0 11742 fi
michael@0 11743
michael@0 11744
michael@0 11745
michael@0 11746
michael@0 11747
michael@0 11748
michael@0 11749
michael@0 11750
michael@0 11751
michael@0 11752
michael@0 11753
michael@0 11754
michael@0 11755
michael@0 11756
michael@0 11757
michael@0 11758
michael@0 11759
michael@0 11760 striplib=
michael@0 11761 old_striplib=
michael@0 11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
michael@0 11763 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
michael@0 11764 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
michael@0 11765 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
michael@0 11766 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
michael@0 11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
michael@0 11768 $as_echo "yes" >&6; }
michael@0 11769 else
michael@0 11770 # FIXME - insert some real tests, host_os isn't really good enough
michael@0 11771 case $host_os in
michael@0 11772 darwin*)
michael@0 11773 if test -n "$STRIP" ; then
michael@0 11774 striplib="$STRIP -x"
michael@0 11775 old_striplib="$STRIP -S"
michael@0 11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
michael@0 11777 $as_echo "yes" >&6; }
michael@0 11778 else
michael@0 11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 11780 $as_echo "no" >&6; }
michael@0 11781 fi
michael@0 11782 ;;
michael@0 11783 *)
michael@0 11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 11785 $as_echo "no" >&6; }
michael@0 11786 ;;
michael@0 11787 esac
michael@0 11788 fi
michael@0 11789
michael@0 11790
michael@0 11791
michael@0 11792
michael@0 11793
michael@0 11794
michael@0 11795
michael@0 11796
michael@0 11797
michael@0 11798
michael@0 11799
michael@0 11800
michael@0 11801 # Report which library types will actually be built
michael@0 11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
michael@0 11803 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
michael@0 11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
michael@0 11805 $as_echo "$can_build_shared" >&6; }
michael@0 11806
michael@0 11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
michael@0 11808 $as_echo_n "checking whether to build shared libraries... " >&6; }
michael@0 11809 test "$can_build_shared" = "no" && enable_shared=no
michael@0 11810
michael@0 11811 # On AIX, shared libraries and static libraries use the same namespace, and
michael@0 11812 # are all built from PIC.
michael@0 11813 case $host_os in
michael@0 11814 aix3*)
michael@0 11815 test "$enable_shared" = yes && enable_static=no
michael@0 11816 if test -n "$RANLIB"; then
michael@0 11817 archive_cmds="$archive_cmds~\$RANLIB \$lib"
michael@0 11818 postinstall_cmds='$RANLIB $lib'
michael@0 11819 fi
michael@0 11820 ;;
michael@0 11821
michael@0 11822 aix[4-9]*)
michael@0 11823 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
michael@0 11824 test "$enable_shared" = yes && enable_static=no
michael@0 11825 fi
michael@0 11826 ;;
michael@0 11827 esac
michael@0 11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
michael@0 11829 $as_echo "$enable_shared" >&6; }
michael@0 11830
michael@0 11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
michael@0 11832 $as_echo_n "checking whether to build static libraries... " >&6; }
michael@0 11833 # Make sure either enable_shared or enable_static is yes.
michael@0 11834 test "$enable_shared" = yes || enable_static=yes
michael@0 11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
michael@0 11836 $as_echo "$enable_static" >&6; }
michael@0 11837
michael@0 11838
michael@0 11839
michael@0 11840
michael@0 11841 fi
michael@0 11842 ac_ext=cpp
michael@0 11843 ac_cpp='$CXXCPP $CPPFLAGS'
michael@0 11844 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
michael@0 11845 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
michael@0 11846 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
michael@0 11847
michael@0 11848 CC="$lt_save_CC"
michael@0 11849
michael@0 11850
michael@0 11851 ac_ext=cpp
michael@0 11852 ac_cpp='$CXXCPP $CPPFLAGS'
michael@0 11853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
michael@0 11854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
michael@0 11855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
michael@0 11856
michael@0 11857 archive_cmds_need_lc_CXX=no
michael@0 11858 allow_undefined_flag_CXX=
michael@0 11859 always_export_symbols_CXX=no
michael@0 11860 archive_expsym_cmds_CXX=
michael@0 11861 compiler_needs_object_CXX=no
michael@0 11862 export_dynamic_flag_spec_CXX=
michael@0 11863 hardcode_direct_CXX=no
michael@0 11864 hardcode_direct_absolute_CXX=no
michael@0 11865 hardcode_libdir_flag_spec_CXX=
michael@0 11866 hardcode_libdir_flag_spec_ld_CXX=
michael@0 11867 hardcode_libdir_separator_CXX=
michael@0 11868 hardcode_minus_L_CXX=no
michael@0 11869 hardcode_shlibpath_var_CXX=unsupported
michael@0 11870 hardcode_automatic_CXX=no
michael@0 11871 inherit_rpath_CXX=no
michael@0 11872 module_cmds_CXX=
michael@0 11873 module_expsym_cmds_CXX=
michael@0 11874 link_all_deplibs_CXX=unknown
michael@0 11875 old_archive_cmds_CXX=$old_archive_cmds
michael@0 11876 no_undefined_flag_CXX=
michael@0 11877 whole_archive_flag_spec_CXX=
michael@0 11878 enable_shared_with_static_runtimes_CXX=no
michael@0 11879
michael@0 11880 # Source file extension for C++ test sources.
michael@0 11881 ac_ext=cpp
michael@0 11882
michael@0 11883 # Object file extension for compiled C++ test sources.
michael@0 11884 objext=o
michael@0 11885 objext_CXX=$objext
michael@0 11886
michael@0 11887 # No sense in running all these tests if we already determined that
michael@0 11888 # the CXX compiler isn't working. Some variables (like enable_shared)
michael@0 11889 # are currently assumed to apply to all compilers on this platform,
michael@0 11890 # and will be corrupted by setting them based on a non-working compiler.
michael@0 11891 if test "$_lt_caught_CXX_error" != yes; then
michael@0 11892 # Code to be used in simple compile tests
michael@0 11893 lt_simple_compile_test_code="int some_variable = 0;"
michael@0 11894
michael@0 11895 # Code to be used in simple link tests
michael@0 11896 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
michael@0 11897
michael@0 11898 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
michael@0 11899
michael@0 11900
michael@0 11901
michael@0 11902
michael@0 11903
michael@0 11904
michael@0 11905 # If no C compiler was specified, use CC.
michael@0 11906 LTCC=${LTCC-"$CC"}
michael@0 11907
michael@0 11908 # If no C compiler flags were specified, use CFLAGS.
michael@0 11909 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
michael@0 11910
michael@0 11911 # Allow CC to be a program name with arguments.
michael@0 11912 compiler=$CC
michael@0 11913
michael@0 11914
michael@0 11915 # save warnings/boilerplate of simple test code
michael@0 11916 ac_outfile=conftest.$ac_objext
michael@0 11917 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
michael@0 11918 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
michael@0 11919 _lt_compiler_boilerplate=`cat conftest.err`
michael@0 11920 $RM conftest*
michael@0 11921
michael@0 11922 ac_outfile=conftest.$ac_objext
michael@0 11923 echo "$lt_simple_link_test_code" >conftest.$ac_ext
michael@0 11924 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
michael@0 11925 _lt_linker_boilerplate=`cat conftest.err`
michael@0 11926 $RM -r conftest*
michael@0 11927
michael@0 11928
michael@0 11929 # Allow CC to be a program name with arguments.
michael@0 11930 lt_save_CC=$CC
michael@0 11931 lt_save_LD=$LD
michael@0 11932 lt_save_GCC=$GCC
michael@0 11933 GCC=$GXX
michael@0 11934 lt_save_with_gnu_ld=$with_gnu_ld
michael@0 11935 lt_save_path_LD=$lt_cv_path_LD
michael@0 11936 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
michael@0 11937 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
michael@0 11938 else
michael@0 11939 $as_unset lt_cv_prog_gnu_ld
michael@0 11940 fi
michael@0 11941 if test -n "${lt_cv_path_LDCXX+set}"; then
michael@0 11942 lt_cv_path_LD=$lt_cv_path_LDCXX
michael@0 11943 else
michael@0 11944 $as_unset lt_cv_path_LD
michael@0 11945 fi
michael@0 11946 test -z "${LDCXX+set}" || LD=$LDCXX
michael@0 11947 CC=${CXX-"c++"}
michael@0 11948 compiler=$CC
michael@0 11949 compiler_CXX=$CC
michael@0 11950 for cc_temp in $compiler""; do
michael@0 11951 case $cc_temp in
michael@0 11952 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
michael@0 11953 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
michael@0 11954 \-*) ;;
michael@0 11955 *) break;;
michael@0 11956 esac
michael@0 11957 done
michael@0 11958 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
michael@0 11959
michael@0 11960
michael@0 11961 if test -n "$compiler"; then
michael@0 11962 # We don't want -fno-exception when compiling C++ code, so set the
michael@0 11963 # no_builtin_flag separately
michael@0 11964 if test "$GXX" = yes; then
michael@0 11965 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
michael@0 11966 else
michael@0 11967 lt_prog_compiler_no_builtin_flag_CXX=
michael@0 11968 fi
michael@0 11969
michael@0 11970 if test "$GXX" = yes; then
michael@0 11971 # Set up default GNU C++ configuration
michael@0 11972
michael@0 11973
michael@0 11974
michael@0 11975 # Check whether --with-gnu-ld was given.
michael@0 11976 if test "${with_gnu_ld+set}" = set; then :
michael@0 11977 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
michael@0 11978 else
michael@0 11979 with_gnu_ld=no
michael@0 11980 fi
michael@0 11981
michael@0 11982 ac_prog=ld
michael@0 11983 if test "$GCC" = yes; then
michael@0 11984 # Check if gcc -print-prog-name=ld gives a path.
michael@0 11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
michael@0 11986 $as_echo_n "checking for ld used by $CC... " >&6; }
michael@0 11987 case $host in
michael@0 11988 *-*-mingw*)
michael@0 11989 # gcc leaves a trailing carriage return which upsets mingw
michael@0 11990 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
michael@0 11991 *)
michael@0 11992 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
michael@0 11993 esac
michael@0 11994 case $ac_prog in
michael@0 11995 # Accept absolute paths.
michael@0 11996 [\\/]* | ?:[\\/]*)
michael@0 11997 re_direlt='/[^/][^/]*/\.\./'
michael@0 11998 # Canonicalize the pathname of ld
michael@0 11999 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
michael@0 12000 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
michael@0 12001 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
michael@0 12002 done
michael@0 12003 test -z "$LD" && LD="$ac_prog"
michael@0 12004 ;;
michael@0 12005 "")
michael@0 12006 # If it fails, then pretend we aren't using GCC.
michael@0 12007 ac_prog=ld
michael@0 12008 ;;
michael@0 12009 *)
michael@0 12010 # If it is relative, then search for the first ld in PATH.
michael@0 12011 with_gnu_ld=unknown
michael@0 12012 ;;
michael@0 12013 esac
michael@0 12014 elif test "$with_gnu_ld" = yes; then
michael@0 12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
michael@0 12016 $as_echo_n "checking for GNU ld... " >&6; }
michael@0 12017 else
michael@0 12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
michael@0 12019 $as_echo_n "checking for non-GNU ld... " >&6; }
michael@0 12020 fi
michael@0 12021 if test "${lt_cv_path_LD+set}" = set; then :
michael@0 12022 $as_echo_n "(cached) " >&6
michael@0 12023 else
michael@0 12024 if test -z "$LD"; then
michael@0 12025 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
michael@0 12026 for ac_dir in $PATH; do
michael@0 12027 IFS="$lt_save_ifs"
michael@0 12028 test -z "$ac_dir" && ac_dir=.
michael@0 12029 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
michael@0 12030 lt_cv_path_LD="$ac_dir/$ac_prog"
michael@0 12031 # Check to see if the program is GNU ld. I'd rather use --version,
michael@0 12032 # but apparently some variants of GNU ld only accept -v.
michael@0 12033 # Break only if it was the GNU/non-GNU ld that we prefer.
michael@0 12034 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
michael@0 12035 *GNU* | *'with BFD'*)
michael@0 12036 test "$with_gnu_ld" != no && break
michael@0 12037 ;;
michael@0 12038 *)
michael@0 12039 test "$with_gnu_ld" != yes && break
michael@0 12040 ;;
michael@0 12041 esac
michael@0 12042 fi
michael@0 12043 done
michael@0 12044 IFS="$lt_save_ifs"
michael@0 12045 else
michael@0 12046 lt_cv_path_LD="$LD" # Let the user override the test with a path.
michael@0 12047 fi
michael@0 12048 fi
michael@0 12049
michael@0 12050 LD="$lt_cv_path_LD"
michael@0 12051 if test -n "$LD"; then
michael@0 12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
michael@0 12053 $as_echo "$LD" >&6; }
michael@0 12054 else
michael@0 12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 12056 $as_echo "no" >&6; }
michael@0 12057 fi
michael@0 12058 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
michael@0 12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
michael@0 12060 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
michael@0 12061 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
michael@0 12062 $as_echo_n "(cached) " >&6
michael@0 12063 else
michael@0 12064 # I'd rather use --version here, but apparently some GNU lds only accept -v.
michael@0 12065 case `$LD -v 2>&1 </dev/null` in
michael@0 12066 *GNU* | *'with BFD'*)
michael@0 12067 lt_cv_prog_gnu_ld=yes
michael@0 12068 ;;
michael@0 12069 *)
michael@0 12070 lt_cv_prog_gnu_ld=no
michael@0 12071 ;;
michael@0 12072 esac
michael@0 12073 fi
michael@0 12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
michael@0 12075 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
michael@0 12076 with_gnu_ld=$lt_cv_prog_gnu_ld
michael@0 12077
michael@0 12078
michael@0 12079
michael@0 12080
michael@0 12081
michael@0 12082
michael@0 12083
michael@0 12084 # Check if GNU C++ uses GNU ld as the underlying linker, since the
michael@0 12085 # archiving commands below assume that GNU ld is being used.
michael@0 12086 if test "$with_gnu_ld" = yes; then
michael@0 12087 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
michael@0 12088 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
michael@0 12089
michael@0 12090 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
michael@0 12091 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
michael@0 12092
michael@0 12093 # If archive_cmds runs LD, not CC, wlarc should be empty
michael@0 12094 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
michael@0 12095 # investigate it a little bit more. (MM)
michael@0 12096 wlarc='${wl}'
michael@0 12097
michael@0 12098 # ancient GNU ld didn't support --whole-archive et. al.
michael@0 12099 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
michael@0 12100 $GREP 'no-whole-archive' > /dev/null; then
michael@0 12101 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
michael@0 12102 else
michael@0 12103 whole_archive_flag_spec_CXX=
michael@0 12104 fi
michael@0 12105 else
michael@0 12106 with_gnu_ld=no
michael@0 12107 wlarc=
michael@0 12108
michael@0 12109 # A generic and very simple default shared library creation
michael@0 12110 # command for GNU C++ for the case where it uses the native
michael@0 12111 # linker, instead of GNU ld. If possible, this setting should
michael@0 12112 # overridden to take advantage of the native linker features on
michael@0 12113 # the platform it is being used on.
michael@0 12114 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
michael@0 12115 fi
michael@0 12116
michael@0 12117 # Commands to make compiler produce verbose output that lists
michael@0 12118 # what "hidden" libraries, object files and flags are used when
michael@0 12119 # linking a shared library.
michael@0 12120 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
michael@0 12121
michael@0 12122 else
michael@0 12123 GXX=no
michael@0 12124 with_gnu_ld=no
michael@0 12125 wlarc=
michael@0 12126 fi
michael@0 12127
michael@0 12128 # PORTME: fill in a description of your system's C++ link characteristics
michael@0 12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
michael@0 12130 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
michael@0 12131 ld_shlibs_CXX=yes
michael@0 12132 case $host_os in
michael@0 12133 aix3*)
michael@0 12134 # FIXME: insert proper C++ library support
michael@0 12135 ld_shlibs_CXX=no
michael@0 12136 ;;
michael@0 12137 aix[4-9]*)
michael@0 12138 if test "$host_cpu" = ia64; then
michael@0 12139 # On IA64, the linker does run time linking by default, so we don't
michael@0 12140 # have to do anything special.
michael@0 12141 aix_use_runtimelinking=no
michael@0 12142 exp_sym_flag='-Bexport'
michael@0 12143 no_entry_flag=""
michael@0 12144 else
michael@0 12145 aix_use_runtimelinking=no
michael@0 12146
michael@0 12147 # Test if we are trying to use run time linking or normal
michael@0 12148 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
michael@0 12149 # need to do runtime linking.
michael@0 12150 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
michael@0 12151 for ld_flag in $LDFLAGS; do
michael@0 12152 case $ld_flag in
michael@0 12153 *-brtl*)
michael@0 12154 aix_use_runtimelinking=yes
michael@0 12155 break
michael@0 12156 ;;
michael@0 12157 esac
michael@0 12158 done
michael@0 12159 ;;
michael@0 12160 esac
michael@0 12161
michael@0 12162 exp_sym_flag='-bexport'
michael@0 12163 no_entry_flag='-bnoentry'
michael@0 12164 fi
michael@0 12165
michael@0 12166 # When large executables or shared objects are built, AIX ld can
michael@0 12167 # have problems creating the table of contents. If linking a library
michael@0 12168 # or program results in "error TOC overflow" add -mminimal-toc to
michael@0 12169 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
michael@0 12170 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
michael@0 12171
michael@0 12172 archive_cmds_CXX=''
michael@0 12173 hardcode_direct_CXX=yes
michael@0 12174 hardcode_direct_absolute_CXX=yes
michael@0 12175 hardcode_libdir_separator_CXX=':'
michael@0 12176 link_all_deplibs_CXX=yes
michael@0 12177 file_list_spec_CXX='${wl}-f,'
michael@0 12178
michael@0 12179 if test "$GXX" = yes; then
michael@0 12180 case $host_os in aix4.[012]|aix4.[012].*)
michael@0 12181 # We only want to do this on AIX 4.2 and lower, the check
michael@0 12182 # below for broken collect2 doesn't work under 4.3+
michael@0 12183 collect2name=`${CC} -print-prog-name=collect2`
michael@0 12184 if test -f "$collect2name" &&
michael@0 12185 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
michael@0 12186 then
michael@0 12187 # We have reworked collect2
michael@0 12188 :
michael@0 12189 else
michael@0 12190 # We have old collect2
michael@0 12191 hardcode_direct_CXX=unsupported
michael@0 12192 # It fails to find uninstalled libraries when the uninstalled
michael@0 12193 # path is not listed in the libpath. Setting hardcode_minus_L
michael@0 12194 # to unsupported forces relinking
michael@0 12195 hardcode_minus_L_CXX=yes
michael@0 12196 hardcode_libdir_flag_spec_CXX='-L$libdir'
michael@0 12197 hardcode_libdir_separator_CXX=
michael@0 12198 fi
michael@0 12199 esac
michael@0 12200 shared_flag='-shared'
michael@0 12201 if test "$aix_use_runtimelinking" = yes; then
michael@0 12202 shared_flag="$shared_flag "'${wl}-G'
michael@0 12203 fi
michael@0 12204 else
michael@0 12205 # not using gcc
michael@0 12206 if test "$host_cpu" = ia64; then
michael@0 12207 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
michael@0 12208 # chokes on -Wl,-G. The following line is correct:
michael@0 12209 shared_flag='-G'
michael@0 12210 else
michael@0 12211 if test "$aix_use_runtimelinking" = yes; then
michael@0 12212 shared_flag='${wl}-G'
michael@0 12213 else
michael@0 12214 shared_flag='${wl}-bM:SRE'
michael@0 12215 fi
michael@0 12216 fi
michael@0 12217 fi
michael@0 12218
michael@0 12219 export_dynamic_flag_spec_CXX='${wl}-bexpall'
michael@0 12220 # It seems that -bexpall does not export symbols beginning with
michael@0 12221 # underscore (_), so it is better to generate a list of symbols to
michael@0 12222 # export.
michael@0 12223 always_export_symbols_CXX=yes
michael@0 12224 if test "$aix_use_runtimelinking" = yes; then
michael@0 12225 # Warning - without using the other runtime loading flags (-brtl),
michael@0 12226 # -berok will link without error, but may produce a broken library.
michael@0 12227 allow_undefined_flag_CXX='-berok'
michael@0 12228 # Determine the default libpath from the value encoded in an empty
michael@0 12229 # executable.
michael@0 12230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 12231 /* end confdefs.h. */
michael@0 12232
michael@0 12233 int
michael@0 12234 main ()
michael@0 12235 {
michael@0 12236
michael@0 12237 ;
michael@0 12238 return 0;
michael@0 12239 }
michael@0 12240 _ACEOF
michael@0 12241 if ac_fn_cxx_try_link "$LINENO"; then :
michael@0 12242
michael@0 12243 lt_aix_libpath_sed='
michael@0 12244 /Import File Strings/,/^$/ {
michael@0 12245 /^0/ {
michael@0 12246 s/^0 *\(.*\)$/\1/
michael@0 12247 p
michael@0 12248 }
michael@0 12249 }'
michael@0 12250 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
michael@0 12251 # Check for a 64-bit object if we didn't find anything.
michael@0 12252 if test -z "$aix_libpath"; then
michael@0 12253 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
michael@0 12254 fi
michael@0 12255 fi
michael@0 12256 rm -f core conftest.err conftest.$ac_objext \
michael@0 12257 conftest$ac_exeext conftest.$ac_ext
michael@0 12258 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
michael@0 12259
michael@0 12260 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
michael@0 12261
michael@0 12262 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
michael@0 12263 else
michael@0 12264 if test "$host_cpu" = ia64; then
michael@0 12265 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
michael@0 12266 allow_undefined_flag_CXX="-z nodefs"
michael@0 12267 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
michael@0 12268 else
michael@0 12269 # Determine the default libpath from the value encoded in an
michael@0 12270 # empty executable.
michael@0 12271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 12272 /* end confdefs.h. */
michael@0 12273
michael@0 12274 int
michael@0 12275 main ()
michael@0 12276 {
michael@0 12277
michael@0 12278 ;
michael@0 12279 return 0;
michael@0 12280 }
michael@0 12281 _ACEOF
michael@0 12282 if ac_fn_cxx_try_link "$LINENO"; then :
michael@0 12283
michael@0 12284 lt_aix_libpath_sed='
michael@0 12285 /Import File Strings/,/^$/ {
michael@0 12286 /^0/ {
michael@0 12287 s/^0 *\(.*\)$/\1/
michael@0 12288 p
michael@0 12289 }
michael@0 12290 }'
michael@0 12291 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
michael@0 12292 # Check for a 64-bit object if we didn't find anything.
michael@0 12293 if test -z "$aix_libpath"; then
michael@0 12294 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
michael@0 12295 fi
michael@0 12296 fi
michael@0 12297 rm -f core conftest.err conftest.$ac_objext \
michael@0 12298 conftest$ac_exeext conftest.$ac_ext
michael@0 12299 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
michael@0 12300
michael@0 12301 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
michael@0 12302 # Warning - without using the other run time loading flags,
michael@0 12303 # -berok will link without error, but may produce a broken library.
michael@0 12304 no_undefined_flag_CXX=' ${wl}-bernotok'
michael@0 12305 allow_undefined_flag_CXX=' ${wl}-berok'
michael@0 12306 # Exported symbols can be pulled into shared objects from archives
michael@0 12307 whole_archive_flag_spec_CXX='$convenience'
michael@0 12308 archive_cmds_need_lc_CXX=yes
michael@0 12309 # This is similar to how AIX traditionally builds its shared
michael@0 12310 # libraries.
michael@0 12311 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
michael@0 12312 fi
michael@0 12313 fi
michael@0 12314 ;;
michael@0 12315
michael@0 12316 beos*)
michael@0 12317 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
michael@0 12318 allow_undefined_flag_CXX=unsupported
michael@0 12319 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
michael@0 12320 # support --undefined. This deserves some investigation. FIXME
michael@0 12321 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
michael@0 12322 else
michael@0 12323 ld_shlibs_CXX=no
michael@0 12324 fi
michael@0 12325 ;;
michael@0 12326
michael@0 12327 chorus*)
michael@0 12328 case $cc_basename in
michael@0 12329 *)
michael@0 12330 # FIXME: insert proper C++ library support
michael@0 12331 ld_shlibs_CXX=no
michael@0 12332 ;;
michael@0 12333 esac
michael@0 12334 ;;
michael@0 12335
michael@0 12336 cygwin* | mingw* | pw32* | cegcc*)
michael@0 12337 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
michael@0 12338 # as there is no search path for DLLs.
michael@0 12339 hardcode_libdir_flag_spec_CXX='-L$libdir'
michael@0 12340 allow_undefined_flag_CXX=unsupported
michael@0 12341 always_export_symbols_CXX=no
michael@0 12342 enable_shared_with_static_runtimes_CXX=yes
michael@0 12343
michael@0 12344 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
michael@0 12345 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
michael@0 12346 # If the export-symbols file already is a .def file (1st line
michael@0 12347 # is EXPORTS), use it as is; otherwise, prepend...
michael@0 12348 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
michael@0 12349 cp $export_symbols $output_objdir/$soname.def;
michael@0 12350 else
michael@0 12351 echo EXPORTS > $output_objdir/$soname.def;
michael@0 12352 cat $export_symbols >> $output_objdir/$soname.def;
michael@0 12353 fi~
michael@0 12354 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
michael@0 12355 else
michael@0 12356 ld_shlibs_CXX=no
michael@0 12357 fi
michael@0 12358 ;;
michael@0 12359 darwin* | rhapsody*)
michael@0 12360
michael@0 12361
michael@0 12362 archive_cmds_need_lc_CXX=no
michael@0 12363 hardcode_direct_CXX=no
michael@0 12364 hardcode_automatic_CXX=yes
michael@0 12365 hardcode_shlibpath_var_CXX=unsupported
michael@0 12366 whole_archive_flag_spec_CXX=''
michael@0 12367 link_all_deplibs_CXX=yes
michael@0 12368 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
michael@0 12369 case $cc_basename in
michael@0 12370 ifort*) _lt_dar_can_shared=yes ;;
michael@0 12371 *) _lt_dar_can_shared=$GCC ;;
michael@0 12372 esac
michael@0 12373 if test "$_lt_dar_can_shared" = "yes"; then
michael@0 12374 output_verbose_link_cmd=echo
michael@0 12375 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
michael@0 12376 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
michael@0 12377 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
michael@0 12378 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
michael@0 12379 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
michael@0 12380 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
michael@0 12381 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
michael@0 12382 fi
michael@0 12383
michael@0 12384 else
michael@0 12385 ld_shlibs_CXX=no
michael@0 12386 fi
michael@0 12387
michael@0 12388 ;;
michael@0 12389
michael@0 12390 dgux*)
michael@0 12391 case $cc_basename in
michael@0 12392 ec++*)
michael@0 12393 # FIXME: insert proper C++ library support
michael@0 12394 ld_shlibs_CXX=no
michael@0 12395 ;;
michael@0 12396 ghcx*)
michael@0 12397 # Green Hills C++ Compiler
michael@0 12398 # FIXME: insert proper C++ library support
michael@0 12399 ld_shlibs_CXX=no
michael@0 12400 ;;
michael@0 12401 *)
michael@0 12402 # FIXME: insert proper C++ library support
michael@0 12403 ld_shlibs_CXX=no
michael@0 12404 ;;
michael@0 12405 esac
michael@0 12406 ;;
michael@0 12407
michael@0 12408 freebsd[12]*)
michael@0 12409 # C++ shared libraries reported to be fairly broken before
michael@0 12410 # switch to ELF
michael@0 12411 ld_shlibs_CXX=no
michael@0 12412 ;;
michael@0 12413
michael@0 12414 freebsd-elf*)
michael@0 12415 archive_cmds_need_lc_CXX=no
michael@0 12416 ;;
michael@0 12417
michael@0 12418 freebsd* | dragonfly*)
michael@0 12419 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
michael@0 12420 # conventions
michael@0 12421 ld_shlibs_CXX=yes
michael@0 12422 ;;
michael@0 12423
michael@0 12424 gnu*)
michael@0 12425 ;;
michael@0 12426
michael@0 12427 hpux9*)
michael@0 12428 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
michael@0 12429 hardcode_libdir_separator_CXX=:
michael@0 12430 export_dynamic_flag_spec_CXX='${wl}-E'
michael@0 12431 hardcode_direct_CXX=yes
michael@0 12432 hardcode_minus_L_CXX=yes # Not in the search PATH,
michael@0 12433 # but as the default
michael@0 12434 # location of the library.
michael@0 12435
michael@0 12436 case $cc_basename in
michael@0 12437 CC*)
michael@0 12438 # FIXME: insert proper C++ library support
michael@0 12439 ld_shlibs_CXX=no
michael@0 12440 ;;
michael@0 12441 aCC*)
michael@0 12442 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
michael@0 12443 # Commands to make compiler produce verbose output that lists
michael@0 12444 # what "hidden" libraries, object files and flags are used when
michael@0 12445 # linking a shared library.
michael@0 12446 #
michael@0 12447 # There doesn't appear to be a way to prevent this compiler from
michael@0 12448 # explicitly linking system object files so we need to strip them
michael@0 12449 # from the output so that they don't get included in the library
michael@0 12450 # dependencies.
michael@0 12451 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
michael@0 12452 ;;
michael@0 12453 *)
michael@0 12454 if test "$GXX" = yes; then
michael@0 12455 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
michael@0 12456 else
michael@0 12457 # FIXME: insert proper C++ library support
michael@0 12458 ld_shlibs_CXX=no
michael@0 12459 fi
michael@0 12460 ;;
michael@0 12461 esac
michael@0 12462 ;;
michael@0 12463
michael@0 12464 hpux10*|hpux11*)
michael@0 12465 if test $with_gnu_ld = no; then
michael@0 12466 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
michael@0 12467 hardcode_libdir_separator_CXX=:
michael@0 12468
michael@0 12469 case $host_cpu in
michael@0 12470 hppa*64*|ia64*)
michael@0 12471 ;;
michael@0 12472 *)
michael@0 12473 export_dynamic_flag_spec_CXX='${wl}-E'
michael@0 12474 ;;
michael@0 12475 esac
michael@0 12476 fi
michael@0 12477 case $host_cpu in
michael@0 12478 hppa*64*|ia64*)
michael@0 12479 hardcode_direct_CXX=no
michael@0 12480 hardcode_shlibpath_var_CXX=no
michael@0 12481 ;;
michael@0 12482 *)
michael@0 12483 hardcode_direct_CXX=yes
michael@0 12484 hardcode_direct_absolute_CXX=yes
michael@0 12485 hardcode_minus_L_CXX=yes # Not in the search PATH,
michael@0 12486 # but as the default
michael@0 12487 # location of the library.
michael@0 12488 ;;
michael@0 12489 esac
michael@0 12490
michael@0 12491 case $cc_basename in
michael@0 12492 CC*)
michael@0 12493 # FIXME: insert proper C++ library support
michael@0 12494 ld_shlibs_CXX=no
michael@0 12495 ;;
michael@0 12496 aCC*)
michael@0 12497 case $host_cpu in
michael@0 12498 hppa*64*)
michael@0 12499 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
michael@0 12500 ;;
michael@0 12501 ia64*)
michael@0 12502 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
michael@0 12503 ;;
michael@0 12504 *)
michael@0 12505 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
michael@0 12506 ;;
michael@0 12507 esac
michael@0 12508 # Commands to make compiler produce verbose output that lists
michael@0 12509 # what "hidden" libraries, object files and flags are used when
michael@0 12510 # linking a shared library.
michael@0 12511 #
michael@0 12512 # There doesn't appear to be a way to prevent this compiler from
michael@0 12513 # explicitly linking system object files so we need to strip them
michael@0 12514 # from the output so that they don't get included in the library
michael@0 12515 # dependencies.
michael@0 12516 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
michael@0 12517 ;;
michael@0 12518 *)
michael@0 12519 if test "$GXX" = yes; then
michael@0 12520 if test $with_gnu_ld = no; then
michael@0 12521 case $host_cpu in
michael@0 12522 hppa*64*)
michael@0 12523 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
michael@0 12524 ;;
michael@0 12525 ia64*)
michael@0 12526 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
michael@0 12527 ;;
michael@0 12528 *)
michael@0 12529 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
michael@0 12530 ;;
michael@0 12531 esac
michael@0 12532 fi
michael@0 12533 else
michael@0 12534 # FIXME: insert proper C++ library support
michael@0 12535 ld_shlibs_CXX=no
michael@0 12536 fi
michael@0 12537 ;;
michael@0 12538 esac
michael@0 12539 ;;
michael@0 12540
michael@0 12541 interix[3-9]*)
michael@0 12542 hardcode_direct_CXX=no
michael@0 12543 hardcode_shlibpath_var_CXX=no
michael@0 12544 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
michael@0 12545 export_dynamic_flag_spec_CXX='${wl}-E'
michael@0 12546 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
michael@0 12547 # Instead, shared libraries are loaded at an image base (0x10000000 by
michael@0 12548 # default) and relocated if they conflict, which is a slow very memory
michael@0 12549 # consuming and fragmenting process. To avoid this, we pick a random,
michael@0 12550 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
michael@0 12551 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
michael@0 12552 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
michael@0 12553 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
michael@0 12554 ;;
michael@0 12555 irix5* | irix6*)
michael@0 12556 case $cc_basename in
michael@0 12557 CC*)
michael@0 12558 # SGI C++
michael@0 12559 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
michael@0 12560
michael@0 12561 # Archives containing C++ object files must be created using
michael@0 12562 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
michael@0 12563 # necessary to make sure instantiated templates are included
michael@0 12564 # in the archive.
michael@0 12565 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
michael@0 12566 ;;
michael@0 12567 *)
michael@0 12568 if test "$GXX" = yes; then
michael@0 12569 if test "$with_gnu_ld" = no; then
michael@0 12570 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
michael@0 12571 else
michael@0 12572 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
michael@0 12573 fi
michael@0 12574 fi
michael@0 12575 link_all_deplibs_CXX=yes
michael@0 12576 ;;
michael@0 12577 esac
michael@0 12578 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
michael@0 12579 hardcode_libdir_separator_CXX=:
michael@0 12580 inherit_rpath_CXX=yes
michael@0 12581 ;;
michael@0 12582
michael@0 12583 linux* | k*bsd*-gnu | kopensolaris*-gnu)
michael@0 12584 case $cc_basename in
michael@0 12585 KCC*)
michael@0 12586 # Kuck and Associates, Inc. (KAI) C++ Compiler
michael@0 12587
michael@0 12588 # KCC will only create a shared library if the output file
michael@0 12589 # ends with ".so" (or ".sl" for HP-UX), so rename the library
michael@0 12590 # to its proper name (with version) after linking.
michael@0 12591 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
michael@0 12592 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
michael@0 12593 # Commands to make compiler produce verbose output that lists
michael@0 12594 # what "hidden" libraries, object files and flags are used when
michael@0 12595 # linking a shared library.
michael@0 12596 #
michael@0 12597 # There doesn't appear to be a way to prevent this compiler from
michael@0 12598 # explicitly linking system object files so we need to strip them
michael@0 12599 # from the output so that they don't get included in the library
michael@0 12600 # dependencies.
michael@0 12601 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
michael@0 12602
michael@0 12603 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
michael@0 12604 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
michael@0 12605
michael@0 12606 # Archives containing C++ object files must be created using
michael@0 12607 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
michael@0 12608 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
michael@0 12609 ;;
michael@0 12610 icpc* | ecpc* )
michael@0 12611 # Intel C++
michael@0 12612 with_gnu_ld=yes
michael@0 12613 # version 8.0 and above of icpc choke on multiply defined symbols
michael@0 12614 # if we add $predep_objects and $postdep_objects, however 7.1 and
michael@0 12615 # earlier do not add the objects themselves.
michael@0 12616 case `$CC -V 2>&1` in
michael@0 12617 *"Version 7."*)
michael@0 12618 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
michael@0 12619 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
michael@0 12620 ;;
michael@0 12621 *) # Version 8.0 or newer
michael@0 12622 tmp_idyn=
michael@0 12623 case $host_cpu in
michael@0 12624 ia64*) tmp_idyn=' -i_dynamic';;
michael@0 12625 esac
michael@0 12626 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
michael@0 12627 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
michael@0 12628 ;;
michael@0 12629 esac
michael@0 12630 archive_cmds_need_lc_CXX=no
michael@0 12631 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
michael@0 12632 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
michael@0 12633 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
michael@0 12634 ;;
michael@0 12635 pgCC* | pgcpp*)
michael@0 12636 # Portland Group C++ compiler
michael@0 12637 case `$CC -V` in
michael@0 12638 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
michael@0 12639 prelink_cmds_CXX='tpldir=Template.dir~
michael@0 12640 rm -rf $tpldir~
michael@0 12641 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
michael@0 12642 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
michael@0 12643 old_archive_cmds_CXX='tpldir=Template.dir~
michael@0 12644 rm -rf $tpldir~
michael@0 12645 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
michael@0 12646 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
michael@0 12647 $RANLIB $oldlib'
michael@0 12648 archive_cmds_CXX='tpldir=Template.dir~
michael@0 12649 rm -rf $tpldir~
michael@0 12650 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
michael@0 12651 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
michael@0 12652 archive_expsym_cmds_CXX='tpldir=Template.dir~
michael@0 12653 rm -rf $tpldir~
michael@0 12654 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
michael@0 12655 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
michael@0 12656 ;;
michael@0 12657 *) # Version 6 will use weak symbols
michael@0 12658 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
michael@0 12659 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
michael@0 12660 ;;
michael@0 12661 esac
michael@0 12662
michael@0 12663 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
michael@0 12664 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
michael@0 12665 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
michael@0 12666 ;;
michael@0 12667 cxx*)
michael@0 12668 # Compaq C++
michael@0 12669 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
michael@0 12670 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
michael@0 12671
michael@0 12672 runpath_var=LD_RUN_PATH
michael@0 12673 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
michael@0 12674 hardcode_libdir_separator_CXX=:
michael@0 12675
michael@0 12676 # Commands to make compiler produce verbose output that lists
michael@0 12677 # what "hidden" libraries, object files and flags are used when
michael@0 12678 # linking a shared library.
michael@0 12679 #
michael@0 12680 # There doesn't appear to be a way to prevent this compiler from
michael@0 12681 # explicitly linking system object files so we need to strip them
michael@0 12682 # from the output so that they don't get included in the library
michael@0 12683 # dependencies.
michael@0 12684 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
michael@0 12685 ;;
michael@0 12686 xl*)
michael@0 12687 # IBM XL 8.0 on PPC, with GNU ld
michael@0 12688 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
michael@0 12689 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
michael@0 12690 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
michael@0 12691 if test "x$supports_anon_versioning" = xyes; then
michael@0 12692 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
michael@0 12693 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
michael@0 12694 echo "local: *; };" >> $output_objdir/$libname.ver~
michael@0 12695 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
michael@0 12696 fi
michael@0 12697 ;;
michael@0 12698 *)
michael@0 12699 case `$CC -V 2>&1 | sed 5q` in
michael@0 12700 *Sun\ C*)
michael@0 12701 # Sun C++ 5.9
michael@0 12702 no_undefined_flag_CXX=' -zdefs'
michael@0 12703 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
michael@0 12704 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
michael@0 12705 hardcode_libdir_flag_spec_CXX='-R$libdir'
michael@0 12706 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
michael@0 12707 compiler_needs_object_CXX=yes
michael@0 12708
michael@0 12709 # Not sure whether something based on
michael@0 12710 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
michael@0 12711 # would be better.
michael@0 12712 output_verbose_link_cmd='echo'
michael@0 12713
michael@0 12714 # Archives containing C++ object files must be created using
michael@0 12715 # "CC -xar", where "CC" is the Sun C++ compiler. This is
michael@0 12716 # necessary to make sure instantiated templates are included
michael@0 12717 # in the archive.
michael@0 12718 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
michael@0 12719 ;;
michael@0 12720 esac
michael@0 12721 ;;
michael@0 12722 esac
michael@0 12723 ;;
michael@0 12724
michael@0 12725 lynxos*)
michael@0 12726 # FIXME: insert proper C++ library support
michael@0 12727 ld_shlibs_CXX=no
michael@0 12728 ;;
michael@0 12729
michael@0 12730 m88k*)
michael@0 12731 # FIXME: insert proper C++ library support
michael@0 12732 ld_shlibs_CXX=no
michael@0 12733 ;;
michael@0 12734
michael@0 12735 mvs*)
michael@0 12736 case $cc_basename in
michael@0 12737 cxx*)
michael@0 12738 # FIXME: insert proper C++ library support
michael@0 12739 ld_shlibs_CXX=no
michael@0 12740 ;;
michael@0 12741 *)
michael@0 12742 # FIXME: insert proper C++ library support
michael@0 12743 ld_shlibs_CXX=no
michael@0 12744 ;;
michael@0 12745 esac
michael@0 12746 ;;
michael@0 12747
michael@0 12748 netbsd*)
michael@0 12749 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
michael@0 12750 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
michael@0 12751 wlarc=
michael@0 12752 hardcode_libdir_flag_spec_CXX='-R$libdir'
michael@0 12753 hardcode_direct_CXX=yes
michael@0 12754 hardcode_shlibpath_var_CXX=no
michael@0 12755 fi
michael@0 12756 # Workaround some broken pre-1.5 toolchains
michael@0 12757 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
michael@0 12758 ;;
michael@0 12759
michael@0 12760 *nto* | *qnx*)
michael@0 12761 ld_shlibs_CXX=yes
michael@0 12762 ;;
michael@0 12763
michael@0 12764 openbsd2*)
michael@0 12765 # C++ shared libraries are fairly broken
michael@0 12766 ld_shlibs_CXX=no
michael@0 12767 ;;
michael@0 12768
michael@0 12769 openbsd*)
michael@0 12770 if test -f /usr/libexec/ld.so; then
michael@0 12771 hardcode_direct_CXX=yes
michael@0 12772 hardcode_shlibpath_var_CXX=no
michael@0 12773 hardcode_direct_absolute_CXX=yes
michael@0 12774 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
michael@0 12775 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
michael@0 12776 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
michael@0 12777 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
michael@0 12778 export_dynamic_flag_spec_CXX='${wl}-E'
michael@0 12779 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
michael@0 12780 fi
michael@0 12781 output_verbose_link_cmd=echo
michael@0 12782 else
michael@0 12783 ld_shlibs_CXX=no
michael@0 12784 fi
michael@0 12785 ;;
michael@0 12786
michael@0 12787 osf3* | osf4* | osf5*)
michael@0 12788 case $cc_basename in
michael@0 12789 KCC*)
michael@0 12790 # Kuck and Associates, Inc. (KAI) C++ Compiler
michael@0 12791
michael@0 12792 # KCC will only create a shared library if the output file
michael@0 12793 # ends with ".so" (or ".sl" for HP-UX), so rename the library
michael@0 12794 # to its proper name (with version) after linking.
michael@0 12795 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
michael@0 12796
michael@0 12797 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
michael@0 12798 hardcode_libdir_separator_CXX=:
michael@0 12799
michael@0 12800 # Archives containing C++ object files must be created using
michael@0 12801 # the KAI C++ compiler.
michael@0 12802 case $host in
michael@0 12803 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
michael@0 12804 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
michael@0 12805 esac
michael@0 12806 ;;
michael@0 12807 RCC*)
michael@0 12808 # Rational C++ 2.4.1
michael@0 12809 # FIXME: insert proper C++ library support
michael@0 12810 ld_shlibs_CXX=no
michael@0 12811 ;;
michael@0 12812 cxx*)
michael@0 12813 case $host in
michael@0 12814 osf3*)
michael@0 12815 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
michael@0 12816 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
michael@0 12817 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
michael@0 12818 ;;
michael@0 12819 *)
michael@0 12820 allow_undefined_flag_CXX=' -expect_unresolved \*'
michael@0 12821 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
michael@0 12822 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
michael@0 12823 echo "-hidden">> $lib.exp~
michael@0 12824 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
michael@0 12825 $RM $lib.exp'
michael@0 12826 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
michael@0 12827 ;;
michael@0 12828 esac
michael@0 12829
michael@0 12830 hardcode_libdir_separator_CXX=:
michael@0 12831
michael@0 12832 # Commands to make compiler produce verbose output that lists
michael@0 12833 # what "hidden" libraries, object files and flags are used when
michael@0 12834 # linking a shared library.
michael@0 12835 #
michael@0 12836 # There doesn't appear to be a way to prevent this compiler from
michael@0 12837 # explicitly linking system object files so we need to strip them
michael@0 12838 # from the output so that they don't get included in the library
michael@0 12839 # dependencies.
michael@0 12840 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
michael@0 12841 ;;
michael@0 12842 *)
michael@0 12843 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
michael@0 12844 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
michael@0 12845 case $host in
michael@0 12846 osf3*)
michael@0 12847 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
michael@0 12848 ;;
michael@0 12849 *)
michael@0 12850 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
michael@0 12851 ;;
michael@0 12852 esac
michael@0 12853
michael@0 12854 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
michael@0 12855 hardcode_libdir_separator_CXX=:
michael@0 12856
michael@0 12857 # Commands to make compiler produce verbose output that lists
michael@0 12858 # what "hidden" libraries, object files and flags are used when
michael@0 12859 # linking a shared library.
michael@0 12860 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
michael@0 12861
michael@0 12862 else
michael@0 12863 # FIXME: insert proper C++ library support
michael@0 12864 ld_shlibs_CXX=no
michael@0 12865 fi
michael@0 12866 ;;
michael@0 12867 esac
michael@0 12868 ;;
michael@0 12869
michael@0 12870 psos*)
michael@0 12871 # FIXME: insert proper C++ library support
michael@0 12872 ld_shlibs_CXX=no
michael@0 12873 ;;
michael@0 12874
michael@0 12875 sunos4*)
michael@0 12876 case $cc_basename in
michael@0 12877 CC*)
michael@0 12878 # Sun C++ 4.x
michael@0 12879 # FIXME: insert proper C++ library support
michael@0 12880 ld_shlibs_CXX=no
michael@0 12881 ;;
michael@0 12882 lcc*)
michael@0 12883 # Lucid
michael@0 12884 # FIXME: insert proper C++ library support
michael@0 12885 ld_shlibs_CXX=no
michael@0 12886 ;;
michael@0 12887 *)
michael@0 12888 # FIXME: insert proper C++ library support
michael@0 12889 ld_shlibs_CXX=no
michael@0 12890 ;;
michael@0 12891 esac
michael@0 12892 ;;
michael@0 12893
michael@0 12894 solaris*)
michael@0 12895 case $cc_basename in
michael@0 12896 CC*)
michael@0 12897 # Sun C++ 4.2, 5.x and Centerline C++
michael@0 12898 archive_cmds_need_lc_CXX=yes
michael@0 12899 no_undefined_flag_CXX=' -zdefs'
michael@0 12900 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
michael@0 12901 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
michael@0 12902 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
michael@0 12903
michael@0 12904 hardcode_libdir_flag_spec_CXX='-R$libdir'
michael@0 12905 hardcode_shlibpath_var_CXX=no
michael@0 12906 case $host_os in
michael@0 12907 solaris2.[0-5] | solaris2.[0-5].*) ;;
michael@0 12908 *)
michael@0 12909 # The compiler driver will combine and reorder linker options,
michael@0 12910 # but understands `-z linker_flag'.
michael@0 12911 # Supported since Solaris 2.6 (maybe 2.5.1?)
michael@0 12912 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
michael@0 12913 ;;
michael@0 12914 esac
michael@0 12915 link_all_deplibs_CXX=yes
michael@0 12916
michael@0 12917 output_verbose_link_cmd='echo'
michael@0 12918
michael@0 12919 # Archives containing C++ object files must be created using
michael@0 12920 # "CC -xar", where "CC" is the Sun C++ compiler. This is
michael@0 12921 # necessary to make sure instantiated templates are included
michael@0 12922 # in the archive.
michael@0 12923 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
michael@0 12924 ;;
michael@0 12925 gcx*)
michael@0 12926 # Green Hills C++ Compiler
michael@0 12927 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
michael@0 12928
michael@0 12929 # The C++ compiler must be used to create the archive.
michael@0 12930 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
michael@0 12931 ;;
michael@0 12932 *)
michael@0 12933 # GNU C++ compiler with Solaris linker
michael@0 12934 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
michael@0 12935 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
michael@0 12936 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
michael@0 12937 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
michael@0 12938 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
michael@0 12939 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
michael@0 12940
michael@0 12941 # Commands to make compiler produce verbose output that lists
michael@0 12942 # what "hidden" libraries, object files and flags are used when
michael@0 12943 # linking a shared library.
michael@0 12944 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
michael@0 12945 else
michael@0 12946 # g++ 2.7 appears to require `-G' NOT `-shared' on this
michael@0 12947 # platform.
michael@0 12948 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
michael@0 12949 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
michael@0 12950 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
michael@0 12951
michael@0 12952 # Commands to make compiler produce verbose output that lists
michael@0 12953 # what "hidden" libraries, object files and flags are used when
michael@0 12954 # linking a shared library.
michael@0 12955 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
michael@0 12956 fi
michael@0 12957
michael@0 12958 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
michael@0 12959 case $host_os in
michael@0 12960 solaris2.[0-5] | solaris2.[0-5].*) ;;
michael@0 12961 *)
michael@0 12962 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
michael@0 12963 ;;
michael@0 12964 esac
michael@0 12965 fi
michael@0 12966 ;;
michael@0 12967 esac
michael@0 12968 ;;
michael@0 12969
michael@0 12970 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
michael@0 12971 no_undefined_flag_CXX='${wl}-z,text'
michael@0 12972 archive_cmds_need_lc_CXX=no
michael@0 12973 hardcode_shlibpath_var_CXX=no
michael@0 12974 runpath_var='LD_RUN_PATH'
michael@0 12975
michael@0 12976 case $cc_basename in
michael@0 12977 CC*)
michael@0 12978 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
michael@0 12979 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
michael@0 12980 ;;
michael@0 12981 *)
michael@0 12982 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
michael@0 12983 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
michael@0 12984 ;;
michael@0 12985 esac
michael@0 12986 ;;
michael@0 12987
michael@0 12988 sysv5* | sco3.2v5* | sco5v6*)
michael@0 12989 # Note: We can NOT use -z defs as we might desire, because we do not
michael@0 12990 # link with -lc, and that would cause any symbols used from libc to
michael@0 12991 # always be unresolved, which means just about no library would
michael@0 12992 # ever link correctly. If we're not using GNU ld we use -z text
michael@0 12993 # though, which does catch some bad symbols but isn't as heavy-handed
michael@0 12994 # as -z defs.
michael@0 12995 no_undefined_flag_CXX='${wl}-z,text'
michael@0 12996 allow_undefined_flag_CXX='${wl}-z,nodefs'
michael@0 12997 archive_cmds_need_lc_CXX=no
michael@0 12998 hardcode_shlibpath_var_CXX=no
michael@0 12999 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
michael@0 13000 hardcode_libdir_separator_CXX=':'
michael@0 13001 link_all_deplibs_CXX=yes
michael@0 13002 export_dynamic_flag_spec_CXX='${wl}-Bexport'
michael@0 13003 runpath_var='LD_RUN_PATH'
michael@0 13004
michael@0 13005 case $cc_basename in
michael@0 13006 CC*)
michael@0 13007 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
michael@0 13008 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
michael@0 13009 ;;
michael@0 13010 *)
michael@0 13011 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
michael@0 13012 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
michael@0 13013 ;;
michael@0 13014 esac
michael@0 13015 ;;
michael@0 13016
michael@0 13017 tandem*)
michael@0 13018 case $cc_basename in
michael@0 13019 NCC*)
michael@0 13020 # NonStop-UX NCC 3.20
michael@0 13021 # FIXME: insert proper C++ library support
michael@0 13022 ld_shlibs_CXX=no
michael@0 13023 ;;
michael@0 13024 *)
michael@0 13025 # FIXME: insert proper C++ library support
michael@0 13026 ld_shlibs_CXX=no
michael@0 13027 ;;
michael@0 13028 esac
michael@0 13029 ;;
michael@0 13030
michael@0 13031 vxworks*)
michael@0 13032 # FIXME: insert proper C++ library support
michael@0 13033 ld_shlibs_CXX=no
michael@0 13034 ;;
michael@0 13035
michael@0 13036 *)
michael@0 13037 # FIXME: insert proper C++ library support
michael@0 13038 ld_shlibs_CXX=no
michael@0 13039 ;;
michael@0 13040 esac
michael@0 13041
michael@0 13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
michael@0 13043 $as_echo "$ld_shlibs_CXX" >&6; }
michael@0 13044 test "$ld_shlibs_CXX" = no && can_build_shared=no
michael@0 13045
michael@0 13046 GCC_CXX="$GXX"
michael@0 13047 LD_CXX="$LD"
michael@0 13048
michael@0 13049 ## CAVEAT EMPTOR:
michael@0 13050 ## There is no encapsulation within the following macros, do not change
michael@0 13051 ## the running order or otherwise move them around unless you know exactly
michael@0 13052 ## what you are doing...
michael@0 13053 # Dependencies to place before and after the object being linked:
michael@0 13054 predep_objects_CXX=
michael@0 13055 postdep_objects_CXX=
michael@0 13056 predeps_CXX=
michael@0 13057 postdeps_CXX=
michael@0 13058 compiler_lib_search_path_CXX=
michael@0 13059
michael@0 13060 cat > conftest.$ac_ext <<_LT_EOF
michael@0 13061 class Foo
michael@0 13062 {
michael@0 13063 public:
michael@0 13064 Foo (void) { a = 0; }
michael@0 13065 private:
michael@0 13066 int a;
michael@0 13067 };
michael@0 13068 _LT_EOF
michael@0 13069
michael@0 13070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
michael@0 13071 (eval $ac_compile) 2>&5
michael@0 13072 ac_status=$?
michael@0 13073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 13074 test $ac_status = 0; }; then
michael@0 13075 # Parse the compiler output and extract the necessary
michael@0 13076 # objects, libraries and library flags.
michael@0 13077
michael@0 13078 # Sentinel used to keep track of whether or not we are before
michael@0 13079 # the conftest object file.
michael@0 13080 pre_test_object_deps_done=no
michael@0 13081
michael@0 13082 for p in `eval "$output_verbose_link_cmd"`; do
michael@0 13083 case $p in
michael@0 13084
michael@0 13085 -L* | -R* | -l*)
michael@0 13086 # Some compilers place space between "-{L,R}" and the path.
michael@0 13087 # Remove the space.
michael@0 13088 if test $p = "-L" ||
michael@0 13089 test $p = "-R"; then
michael@0 13090 prev=$p
michael@0 13091 continue
michael@0 13092 else
michael@0 13093 prev=
michael@0 13094 fi
michael@0 13095
michael@0 13096 if test "$pre_test_object_deps_done" = no; then
michael@0 13097 case $p in
michael@0 13098 -L* | -R*)
michael@0 13099 # Internal compiler library paths should come after those
michael@0 13100 # provided the user. The postdeps already come after the
michael@0 13101 # user supplied libs so there is no need to process them.
michael@0 13102 if test -z "$compiler_lib_search_path_CXX"; then
michael@0 13103 compiler_lib_search_path_CXX="${prev}${p}"
michael@0 13104 else
michael@0 13105 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
michael@0 13106 fi
michael@0 13107 ;;
michael@0 13108 # The "-l" case would never come before the object being
michael@0 13109 # linked, so don't bother handling this case.
michael@0 13110 esac
michael@0 13111 else
michael@0 13112 if test -z "$postdeps_CXX"; then
michael@0 13113 postdeps_CXX="${prev}${p}"
michael@0 13114 else
michael@0 13115 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
michael@0 13116 fi
michael@0 13117 fi
michael@0 13118 ;;
michael@0 13119
michael@0 13120 *.$objext)
michael@0 13121 # This assumes that the test object file only shows up
michael@0 13122 # once in the compiler output.
michael@0 13123 if test "$p" = "conftest.$objext"; then
michael@0 13124 pre_test_object_deps_done=yes
michael@0 13125 continue
michael@0 13126 fi
michael@0 13127
michael@0 13128 if test "$pre_test_object_deps_done" = no; then
michael@0 13129 if test -z "$predep_objects_CXX"; then
michael@0 13130 predep_objects_CXX="$p"
michael@0 13131 else
michael@0 13132 predep_objects_CXX="$predep_objects_CXX $p"
michael@0 13133 fi
michael@0 13134 else
michael@0 13135 if test -z "$postdep_objects_CXX"; then
michael@0 13136 postdep_objects_CXX="$p"
michael@0 13137 else
michael@0 13138 postdep_objects_CXX="$postdep_objects_CXX $p"
michael@0 13139 fi
michael@0 13140 fi
michael@0 13141 ;;
michael@0 13142
michael@0 13143 *) ;; # Ignore the rest.
michael@0 13144
michael@0 13145 esac
michael@0 13146 done
michael@0 13147
michael@0 13148 # Clean up.
michael@0 13149 rm -f a.out a.exe
michael@0 13150 else
michael@0 13151 echo "libtool.m4: error: problem compiling CXX test program"
michael@0 13152 fi
michael@0 13153
michael@0 13154 $RM -f confest.$objext
michael@0 13155
michael@0 13156 # PORTME: override above test on systems where it is broken
michael@0 13157 case $host_os in
michael@0 13158 interix[3-9]*)
michael@0 13159 # Interix 3.5 installs completely hosed .la files for C++, so rather than
michael@0 13160 # hack all around it, let's just trust "g++" to DTRT.
michael@0 13161 predep_objects_CXX=
michael@0 13162 postdep_objects_CXX=
michael@0 13163 postdeps_CXX=
michael@0 13164 ;;
michael@0 13165
michael@0 13166 linux*)
michael@0 13167 case `$CC -V 2>&1 | sed 5q` in
michael@0 13168 *Sun\ C*)
michael@0 13169 # Sun C++ 5.9
michael@0 13170
michael@0 13171 # The more standards-conforming stlport4 library is
michael@0 13172 # incompatible with the Cstd library. Avoid specifying
michael@0 13173 # it if it's in CXXFLAGS. Ignore libCrun as
michael@0 13174 # -library=stlport4 depends on it.
michael@0 13175 case " $CXX $CXXFLAGS " in
michael@0 13176 *" -library=stlport4 "*)
michael@0 13177 solaris_use_stlport4=yes
michael@0 13178 ;;
michael@0 13179 esac
michael@0 13180
michael@0 13181 if test "$solaris_use_stlport4" != yes; then
michael@0 13182 postdeps_CXX='-library=Cstd -library=Crun'
michael@0 13183 fi
michael@0 13184 ;;
michael@0 13185 esac
michael@0 13186 ;;
michael@0 13187
michael@0 13188 solaris*)
michael@0 13189 case $cc_basename in
michael@0 13190 CC*)
michael@0 13191 # The more standards-conforming stlport4 library is
michael@0 13192 # incompatible with the Cstd library. Avoid specifying
michael@0 13193 # it if it's in CXXFLAGS. Ignore libCrun as
michael@0 13194 # -library=stlport4 depends on it.
michael@0 13195 case " $CXX $CXXFLAGS " in
michael@0 13196 *" -library=stlport4 "*)
michael@0 13197 solaris_use_stlport4=yes
michael@0 13198 ;;
michael@0 13199 esac
michael@0 13200
michael@0 13201 # Adding this requires a known-good setup of shared libraries for
michael@0 13202 # Sun compiler versions before 5.6, else PIC objects from an old
michael@0 13203 # archive will be linked into the output, leading to subtle bugs.
michael@0 13204 if test "$solaris_use_stlport4" != yes; then
michael@0 13205 postdeps_CXX='-library=Cstd -library=Crun'
michael@0 13206 fi
michael@0 13207 ;;
michael@0 13208 esac
michael@0 13209 ;;
michael@0 13210 esac
michael@0 13211
michael@0 13212
michael@0 13213 case " $postdeps_CXX " in
michael@0 13214 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
michael@0 13215 esac
michael@0 13216 compiler_lib_search_dirs_CXX=
michael@0 13217 if test -n "${compiler_lib_search_path_CXX}"; then
michael@0 13218 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
michael@0 13219 fi
michael@0 13220
michael@0 13221
michael@0 13222
michael@0 13223
michael@0 13224
michael@0 13225
michael@0 13226
michael@0 13227
michael@0 13228
michael@0 13229
michael@0 13230
michael@0 13231
michael@0 13232
michael@0 13233
michael@0 13234
michael@0 13235
michael@0 13236
michael@0 13237
michael@0 13238
michael@0 13239
michael@0 13240
michael@0 13241
michael@0 13242
michael@0 13243
michael@0 13244
michael@0 13245
michael@0 13246
michael@0 13247
michael@0 13248
michael@0 13249
michael@0 13250
michael@0 13251 lt_prog_compiler_wl_CXX=
michael@0 13252 lt_prog_compiler_pic_CXX=
michael@0 13253 lt_prog_compiler_static_CXX=
michael@0 13254
michael@0 13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
michael@0 13256 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
michael@0 13257
michael@0 13258 # C++ specific cases for pic, static, wl, etc.
michael@0 13259 if test "$GXX" = yes; then
michael@0 13260 lt_prog_compiler_wl_CXX='-Wl,'
michael@0 13261 lt_prog_compiler_static_CXX='-static'
michael@0 13262
michael@0 13263 case $host_os in
michael@0 13264 aix*)
michael@0 13265 # All AIX code is PIC.
michael@0 13266 if test "$host_cpu" = ia64; then
michael@0 13267 # AIX 5 now supports IA64 processor
michael@0 13268 lt_prog_compiler_static_CXX='-Bstatic'
michael@0 13269 fi
michael@0 13270 ;;
michael@0 13271
michael@0 13272 amigaos*)
michael@0 13273 case $host_cpu in
michael@0 13274 powerpc)
michael@0 13275 # see comment about AmigaOS4 .so support
michael@0 13276 lt_prog_compiler_pic_CXX='-fPIC'
michael@0 13277 ;;
michael@0 13278 m68k)
michael@0 13279 # FIXME: we need at least 68020 code to build shared libraries, but
michael@0 13280 # adding the `-m68020' flag to GCC prevents building anything better,
michael@0 13281 # like `-m68040'.
michael@0 13282 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
michael@0 13283 ;;
michael@0 13284 esac
michael@0 13285 ;;
michael@0 13286
michael@0 13287 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
michael@0 13288 # PIC is the default for these OSes.
michael@0 13289 ;;
michael@0 13290 mingw* | cygwin* | os2* | pw32* | cegcc*)
michael@0 13291 # This hack is so that the source file can tell whether it is being
michael@0 13292 # built for inclusion in a dll (and should export symbols for example).
michael@0 13293 # Although the cygwin gcc ignores -fPIC, still need this for old-style
michael@0 13294 # (--disable-auto-import) libraries
michael@0 13295 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
michael@0 13296 ;;
michael@0 13297 darwin* | rhapsody*)
michael@0 13298 # PIC is the default on this platform
michael@0 13299 # Common symbols not allowed in MH_DYLIB files
michael@0 13300 lt_prog_compiler_pic_CXX='-fno-common'
michael@0 13301 ;;
michael@0 13302 *djgpp*)
michael@0 13303 # DJGPP does not support shared libraries at all
michael@0 13304 lt_prog_compiler_pic_CXX=
michael@0 13305 ;;
michael@0 13306 interix[3-9]*)
michael@0 13307 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
michael@0 13308 # Instead, we relocate shared libraries at runtime.
michael@0 13309 ;;
michael@0 13310 sysv4*MP*)
michael@0 13311 if test -d /usr/nec; then
michael@0 13312 lt_prog_compiler_pic_CXX=-Kconform_pic
michael@0 13313 fi
michael@0 13314 ;;
michael@0 13315 hpux*)
michael@0 13316 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
michael@0 13317 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
michael@0 13318 # sets the default TLS model and affects inlining.
michael@0 13319 case $host_cpu in
michael@0 13320 hppa*64*)
michael@0 13321 ;;
michael@0 13322 *)
michael@0 13323 lt_prog_compiler_pic_CXX='-fPIC'
michael@0 13324 ;;
michael@0 13325 esac
michael@0 13326 ;;
michael@0 13327 *qnx* | *nto*)
michael@0 13328 # QNX uses GNU C++, but need to define -shared option too, otherwise
michael@0 13329 # it will coredump.
michael@0 13330 lt_prog_compiler_pic_CXX='-fPIC -shared'
michael@0 13331 ;;
michael@0 13332 *)
michael@0 13333 lt_prog_compiler_pic_CXX='-fPIC'
michael@0 13334 ;;
michael@0 13335 esac
michael@0 13336 else
michael@0 13337 case $host_os in
michael@0 13338 aix[4-9]*)
michael@0 13339 # All AIX code is PIC.
michael@0 13340 if test "$host_cpu" = ia64; then
michael@0 13341 # AIX 5 now supports IA64 processor
michael@0 13342 lt_prog_compiler_static_CXX='-Bstatic'
michael@0 13343 else
michael@0 13344 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
michael@0 13345 fi
michael@0 13346 ;;
michael@0 13347 chorus*)
michael@0 13348 case $cc_basename in
michael@0 13349 cxch68*)
michael@0 13350 # Green Hills C++ Compiler
michael@0 13351 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
michael@0 13352 ;;
michael@0 13353 esac
michael@0 13354 ;;
michael@0 13355 dgux*)
michael@0 13356 case $cc_basename in
michael@0 13357 ec++*)
michael@0 13358 lt_prog_compiler_pic_CXX='-KPIC'
michael@0 13359 ;;
michael@0 13360 ghcx*)
michael@0 13361 # Green Hills C++ Compiler
michael@0 13362 lt_prog_compiler_pic_CXX='-pic'
michael@0 13363 ;;
michael@0 13364 *)
michael@0 13365 ;;
michael@0 13366 esac
michael@0 13367 ;;
michael@0 13368 freebsd* | dragonfly*)
michael@0 13369 # FreeBSD uses GNU C++
michael@0 13370 ;;
michael@0 13371 hpux9* | hpux10* | hpux11*)
michael@0 13372 case $cc_basename in
michael@0 13373 CC*)
michael@0 13374 lt_prog_compiler_wl_CXX='-Wl,'
michael@0 13375 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
michael@0 13376 if test "$host_cpu" != ia64; then
michael@0 13377 lt_prog_compiler_pic_CXX='+Z'
michael@0 13378 fi
michael@0 13379 ;;
michael@0 13380 aCC*)
michael@0 13381 lt_prog_compiler_wl_CXX='-Wl,'
michael@0 13382 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
michael@0 13383 case $host_cpu in
michael@0 13384 hppa*64*|ia64*)
michael@0 13385 # +Z the default
michael@0 13386 ;;
michael@0 13387 *)
michael@0 13388 lt_prog_compiler_pic_CXX='+Z'
michael@0 13389 ;;
michael@0 13390 esac
michael@0 13391 ;;
michael@0 13392 *)
michael@0 13393 ;;
michael@0 13394 esac
michael@0 13395 ;;
michael@0 13396 interix*)
michael@0 13397 # This is c89, which is MS Visual C++ (no shared libs)
michael@0 13398 # Anyone wants to do a port?
michael@0 13399 ;;
michael@0 13400 irix5* | irix6* | nonstopux*)
michael@0 13401 case $cc_basename in
michael@0 13402 CC*)
michael@0 13403 lt_prog_compiler_wl_CXX='-Wl,'
michael@0 13404 lt_prog_compiler_static_CXX='-non_shared'
michael@0 13405 # CC pic flag -KPIC is the default.
michael@0 13406 ;;
michael@0 13407 *)
michael@0 13408 ;;
michael@0 13409 esac
michael@0 13410 ;;
michael@0 13411 linux* | k*bsd*-gnu | kopensolaris*-gnu)
michael@0 13412 case $cc_basename in
michael@0 13413 KCC*)
michael@0 13414 # KAI C++ Compiler
michael@0 13415 lt_prog_compiler_wl_CXX='--backend -Wl,'
michael@0 13416 lt_prog_compiler_pic_CXX='-fPIC'
michael@0 13417 ;;
michael@0 13418 ecpc* )
michael@0 13419 # old Intel C++ for x86_64 which still supported -KPIC.
michael@0 13420 lt_prog_compiler_wl_CXX='-Wl,'
michael@0 13421 lt_prog_compiler_pic_CXX='-KPIC'
michael@0 13422 lt_prog_compiler_static_CXX='-static'
michael@0 13423 ;;
michael@0 13424 icpc* )
michael@0 13425 # Intel C++, used to be incompatible with GCC.
michael@0 13426 # ICC 10 doesn't accept -KPIC any more.
michael@0 13427 lt_prog_compiler_wl_CXX='-Wl,'
michael@0 13428 lt_prog_compiler_pic_CXX='-fPIC'
michael@0 13429 lt_prog_compiler_static_CXX='-static'
michael@0 13430 ;;
michael@0 13431 pgCC* | pgcpp*)
michael@0 13432 # Portland Group C++ compiler
michael@0 13433 lt_prog_compiler_wl_CXX='-Wl,'
michael@0 13434 lt_prog_compiler_pic_CXX='-fpic'
michael@0 13435 lt_prog_compiler_static_CXX='-Bstatic'
michael@0 13436 ;;
michael@0 13437 cxx*)
michael@0 13438 # Compaq C++
michael@0 13439 # Make sure the PIC flag is empty. It appears that all Alpha
michael@0 13440 # Linux and Compaq Tru64 Unix objects are PIC.
michael@0 13441 lt_prog_compiler_pic_CXX=
michael@0 13442 lt_prog_compiler_static_CXX='-non_shared'
michael@0 13443 ;;
michael@0 13444 xlc* | xlC*)
michael@0 13445 # IBM XL 8.0 on PPC
michael@0 13446 lt_prog_compiler_wl_CXX='-Wl,'
michael@0 13447 lt_prog_compiler_pic_CXX='-qpic'
michael@0 13448 lt_prog_compiler_static_CXX='-qstaticlink'
michael@0 13449 ;;
michael@0 13450 *)
michael@0 13451 case `$CC -V 2>&1 | sed 5q` in
michael@0 13452 *Sun\ C*)
michael@0 13453 # Sun C++ 5.9
michael@0 13454 lt_prog_compiler_pic_CXX='-KPIC'
michael@0 13455 lt_prog_compiler_static_CXX='-Bstatic'
michael@0 13456 lt_prog_compiler_wl_CXX='-Qoption ld '
michael@0 13457 ;;
michael@0 13458 esac
michael@0 13459 ;;
michael@0 13460 esac
michael@0 13461 ;;
michael@0 13462 lynxos*)
michael@0 13463 ;;
michael@0 13464 m88k*)
michael@0 13465 ;;
michael@0 13466 mvs*)
michael@0 13467 case $cc_basename in
michael@0 13468 cxx*)
michael@0 13469 lt_prog_compiler_pic_CXX='-W c,exportall'
michael@0 13470 ;;
michael@0 13471 *)
michael@0 13472 ;;
michael@0 13473 esac
michael@0 13474 ;;
michael@0 13475 netbsd* | netbsdelf*-gnu)
michael@0 13476 ;;
michael@0 13477 *qnx* | *nto*)
michael@0 13478 # QNX uses GNU C++, but need to define -shared option too, otherwise
michael@0 13479 # it will coredump.
michael@0 13480 lt_prog_compiler_pic_CXX='-fPIC -shared'
michael@0 13481 ;;
michael@0 13482 osf3* | osf4* | osf5*)
michael@0 13483 case $cc_basename in
michael@0 13484 KCC*)
michael@0 13485 lt_prog_compiler_wl_CXX='--backend -Wl,'
michael@0 13486 ;;
michael@0 13487 RCC*)
michael@0 13488 # Rational C++ 2.4.1
michael@0 13489 lt_prog_compiler_pic_CXX='-pic'
michael@0 13490 ;;
michael@0 13491 cxx*)
michael@0 13492 # Digital/Compaq C++
michael@0 13493 lt_prog_compiler_wl_CXX='-Wl,'
michael@0 13494 # Make sure the PIC flag is empty. It appears that all Alpha
michael@0 13495 # Linux and Compaq Tru64 Unix objects are PIC.
michael@0 13496 lt_prog_compiler_pic_CXX=
michael@0 13497 lt_prog_compiler_static_CXX='-non_shared'
michael@0 13498 ;;
michael@0 13499 *)
michael@0 13500 ;;
michael@0 13501 esac
michael@0 13502 ;;
michael@0 13503 psos*)
michael@0 13504 ;;
michael@0 13505 solaris*)
michael@0 13506 case $cc_basename in
michael@0 13507 CC*)
michael@0 13508 # Sun C++ 4.2, 5.x and Centerline C++
michael@0 13509 lt_prog_compiler_pic_CXX='-KPIC'
michael@0 13510 lt_prog_compiler_static_CXX='-Bstatic'
michael@0 13511 lt_prog_compiler_wl_CXX='-Qoption ld '
michael@0 13512 ;;
michael@0 13513 gcx*)
michael@0 13514 # Green Hills C++ Compiler
michael@0 13515 lt_prog_compiler_pic_CXX='-PIC'
michael@0 13516 ;;
michael@0 13517 *)
michael@0 13518 ;;
michael@0 13519 esac
michael@0 13520 ;;
michael@0 13521 sunos4*)
michael@0 13522 case $cc_basename in
michael@0 13523 CC*)
michael@0 13524 # Sun C++ 4.x
michael@0 13525 lt_prog_compiler_pic_CXX='-pic'
michael@0 13526 lt_prog_compiler_static_CXX='-Bstatic'
michael@0 13527 ;;
michael@0 13528 lcc*)
michael@0 13529 # Lucid
michael@0 13530 lt_prog_compiler_pic_CXX='-pic'
michael@0 13531 ;;
michael@0 13532 *)
michael@0 13533 ;;
michael@0 13534 esac
michael@0 13535 ;;
michael@0 13536 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
michael@0 13537 case $cc_basename in
michael@0 13538 CC*)
michael@0 13539 lt_prog_compiler_wl_CXX='-Wl,'
michael@0 13540 lt_prog_compiler_pic_CXX='-KPIC'
michael@0 13541 lt_prog_compiler_static_CXX='-Bstatic'
michael@0 13542 ;;
michael@0 13543 esac
michael@0 13544 ;;
michael@0 13545 tandem*)
michael@0 13546 case $cc_basename in
michael@0 13547 NCC*)
michael@0 13548 # NonStop-UX NCC 3.20
michael@0 13549 lt_prog_compiler_pic_CXX='-KPIC'
michael@0 13550 ;;
michael@0 13551 *)
michael@0 13552 ;;
michael@0 13553 esac
michael@0 13554 ;;
michael@0 13555 vxworks*)
michael@0 13556 ;;
michael@0 13557 *)
michael@0 13558 lt_prog_compiler_can_build_shared_CXX=no
michael@0 13559 ;;
michael@0 13560 esac
michael@0 13561 fi
michael@0 13562
michael@0 13563 case $host_os in
michael@0 13564 # For platforms which do not support PIC, -DPIC is meaningless:
michael@0 13565 *djgpp*)
michael@0 13566 lt_prog_compiler_pic_CXX=
michael@0 13567 ;;
michael@0 13568 *)
michael@0 13569 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
michael@0 13570 ;;
michael@0 13571 esac
michael@0 13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
michael@0 13573 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
michael@0 13574
michael@0 13575
michael@0 13576
michael@0 13577 #
michael@0 13578 # Check to make sure the PIC flag actually works.
michael@0 13579 #
michael@0 13580 if test -n "$lt_prog_compiler_pic_CXX"; then
michael@0 13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
michael@0 13582 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
michael@0 13583 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
michael@0 13584 $as_echo_n "(cached) " >&6
michael@0 13585 else
michael@0 13586 lt_cv_prog_compiler_pic_works_CXX=no
michael@0 13587 ac_outfile=conftest.$ac_objext
michael@0 13588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
michael@0 13589 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
michael@0 13590 # Insert the option either (1) after the last *FLAGS variable, or
michael@0 13591 # (2) before a word containing "conftest.", or (3) at the end.
michael@0 13592 # Note that $ac_compile itself does not contain backslashes and begins
michael@0 13593 # with a dollar sign (not a hyphen), so the echo should work correctly.
michael@0 13594 # The option is referenced via a variable to avoid confusing sed.
michael@0 13595 lt_compile=`echo "$ac_compile" | $SED \
michael@0 13596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
michael@0 13597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
michael@0 13598 -e 's:$: $lt_compiler_flag:'`
michael@0 13599 (eval echo "\"\$as_me:13599: $lt_compile\"" >&5)
michael@0 13600 (eval "$lt_compile" 2>conftest.err)
michael@0 13601 ac_status=$?
michael@0 13602 cat conftest.err >&5
michael@0 13603 echo "$as_me:13603: \$? = $ac_status" >&5
michael@0 13604 if (exit $ac_status) && test -s "$ac_outfile"; then
michael@0 13605 # The compiler can only warn and ignore the option if not recognized
michael@0 13606 # So say no if there are warnings other than the usual output.
michael@0 13607 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
michael@0 13608 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
michael@0 13609 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
michael@0 13610 lt_cv_prog_compiler_pic_works_CXX=yes
michael@0 13611 fi
michael@0 13612 fi
michael@0 13613 $RM conftest*
michael@0 13614
michael@0 13615 fi
michael@0 13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
michael@0 13617 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
michael@0 13618
michael@0 13619 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
michael@0 13620 case $lt_prog_compiler_pic_CXX in
michael@0 13621 "" | " "*) ;;
michael@0 13622 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
michael@0 13623 esac
michael@0 13624 else
michael@0 13625 lt_prog_compiler_pic_CXX=
michael@0 13626 lt_prog_compiler_can_build_shared_CXX=no
michael@0 13627 fi
michael@0 13628
michael@0 13629 fi
michael@0 13630
michael@0 13631
michael@0 13632
michael@0 13633 #
michael@0 13634 # Check to make sure the static flag actually works.
michael@0 13635 #
michael@0 13636 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
michael@0 13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
michael@0 13638 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
michael@0 13639 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
michael@0 13640 $as_echo_n "(cached) " >&6
michael@0 13641 else
michael@0 13642 lt_cv_prog_compiler_static_works_CXX=no
michael@0 13643 save_LDFLAGS="$LDFLAGS"
michael@0 13644 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
michael@0 13645 echo "$lt_simple_link_test_code" > conftest.$ac_ext
michael@0 13646 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
michael@0 13647 # The linker can only warn and ignore the option if not recognized
michael@0 13648 # So say no if there are warnings
michael@0 13649 if test -s conftest.err; then
michael@0 13650 # Append any errors to the config.log.
michael@0 13651 cat conftest.err 1>&5
michael@0 13652 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
michael@0 13653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
michael@0 13654 if diff conftest.exp conftest.er2 >/dev/null; then
michael@0 13655 lt_cv_prog_compiler_static_works_CXX=yes
michael@0 13656 fi
michael@0 13657 else
michael@0 13658 lt_cv_prog_compiler_static_works_CXX=yes
michael@0 13659 fi
michael@0 13660 fi
michael@0 13661 $RM -r conftest*
michael@0 13662 LDFLAGS="$save_LDFLAGS"
michael@0 13663
michael@0 13664 fi
michael@0 13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
michael@0 13666 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
michael@0 13667
michael@0 13668 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
michael@0 13669 :
michael@0 13670 else
michael@0 13671 lt_prog_compiler_static_CXX=
michael@0 13672 fi
michael@0 13673
michael@0 13674
michael@0 13675
michael@0 13676
michael@0 13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
michael@0 13678 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
michael@0 13679 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
michael@0 13680 $as_echo_n "(cached) " >&6
michael@0 13681 else
michael@0 13682 lt_cv_prog_compiler_c_o_CXX=no
michael@0 13683 $RM -r conftest 2>/dev/null
michael@0 13684 mkdir conftest
michael@0 13685 cd conftest
michael@0 13686 mkdir out
michael@0 13687 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
michael@0 13688
michael@0 13689 lt_compiler_flag="-o out/conftest2.$ac_objext"
michael@0 13690 # Insert the option either (1) after the last *FLAGS variable, or
michael@0 13691 # (2) before a word containing "conftest.", or (3) at the end.
michael@0 13692 # Note that $ac_compile itself does not contain backslashes and begins
michael@0 13693 # with a dollar sign (not a hyphen), so the echo should work correctly.
michael@0 13694 lt_compile=`echo "$ac_compile" | $SED \
michael@0 13695 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
michael@0 13696 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
michael@0 13697 -e 's:$: $lt_compiler_flag:'`
michael@0 13698 (eval echo "\"\$as_me:13698: $lt_compile\"" >&5)
michael@0 13699 (eval "$lt_compile" 2>out/conftest.err)
michael@0 13700 ac_status=$?
michael@0 13701 cat out/conftest.err >&5
michael@0 13702 echo "$as_me:13702: \$? = $ac_status" >&5
michael@0 13703 if (exit $ac_status) && test -s out/conftest2.$ac_objext
michael@0 13704 then
michael@0 13705 # The compiler can only warn and ignore the option if not recognized
michael@0 13706 # So say no if there are warnings
michael@0 13707 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
michael@0 13708 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
michael@0 13709 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
michael@0 13710 lt_cv_prog_compiler_c_o_CXX=yes
michael@0 13711 fi
michael@0 13712 fi
michael@0 13713 chmod u+w . 2>&5
michael@0 13714 $RM conftest*
michael@0 13715 # SGI C++ compiler will create directory out/ii_files/ for
michael@0 13716 # template instantiation
michael@0 13717 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
michael@0 13718 $RM out/* && rmdir out
michael@0 13719 cd ..
michael@0 13720 $RM -r conftest
michael@0 13721 $RM conftest*
michael@0 13722
michael@0 13723 fi
michael@0 13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
michael@0 13725 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
michael@0 13726
michael@0 13727
michael@0 13728
michael@0 13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
michael@0 13730 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
michael@0 13731 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
michael@0 13732 $as_echo_n "(cached) " >&6
michael@0 13733 else
michael@0 13734 lt_cv_prog_compiler_c_o_CXX=no
michael@0 13735 $RM -r conftest 2>/dev/null
michael@0 13736 mkdir conftest
michael@0 13737 cd conftest
michael@0 13738 mkdir out
michael@0 13739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
michael@0 13740
michael@0 13741 lt_compiler_flag="-o out/conftest2.$ac_objext"
michael@0 13742 # Insert the option either (1) after the last *FLAGS variable, or
michael@0 13743 # (2) before a word containing "conftest.", or (3) at the end.
michael@0 13744 # Note that $ac_compile itself does not contain backslashes and begins
michael@0 13745 # with a dollar sign (not a hyphen), so the echo should work correctly.
michael@0 13746 lt_compile=`echo "$ac_compile" | $SED \
michael@0 13747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
michael@0 13748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
michael@0 13749 -e 's:$: $lt_compiler_flag:'`
michael@0 13750 (eval echo "\"\$as_me:13750: $lt_compile\"" >&5)
michael@0 13751 (eval "$lt_compile" 2>out/conftest.err)
michael@0 13752 ac_status=$?
michael@0 13753 cat out/conftest.err >&5
michael@0 13754 echo "$as_me:13754: \$? = $ac_status" >&5
michael@0 13755 if (exit $ac_status) && test -s out/conftest2.$ac_objext
michael@0 13756 then
michael@0 13757 # The compiler can only warn and ignore the option if not recognized
michael@0 13758 # So say no if there are warnings
michael@0 13759 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
michael@0 13760 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
michael@0 13761 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
michael@0 13762 lt_cv_prog_compiler_c_o_CXX=yes
michael@0 13763 fi
michael@0 13764 fi
michael@0 13765 chmod u+w . 2>&5
michael@0 13766 $RM conftest*
michael@0 13767 # SGI C++ compiler will create directory out/ii_files/ for
michael@0 13768 # template instantiation
michael@0 13769 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
michael@0 13770 $RM out/* && rmdir out
michael@0 13771 cd ..
michael@0 13772 $RM -r conftest
michael@0 13773 $RM conftest*
michael@0 13774
michael@0 13775 fi
michael@0 13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
michael@0 13777 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
michael@0 13778
michael@0 13779
michael@0 13780
michael@0 13781
michael@0 13782 hard_links="nottested"
michael@0 13783 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
michael@0 13784 # do not overwrite the value of need_locks provided by the user
michael@0 13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
michael@0 13786 $as_echo_n "checking if we can lock with hard links... " >&6; }
michael@0 13787 hard_links=yes
michael@0 13788 $RM conftest*
michael@0 13789 ln conftest.a conftest.b 2>/dev/null && hard_links=no
michael@0 13790 touch conftest.a
michael@0 13791 ln conftest.a conftest.b 2>&5 || hard_links=no
michael@0 13792 ln conftest.a conftest.b 2>/dev/null && hard_links=no
michael@0 13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
michael@0 13794 $as_echo "$hard_links" >&6; }
michael@0 13795 if test "$hard_links" = no; then
michael@0 13796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
michael@0 13797 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
michael@0 13798 need_locks=warn
michael@0 13799 fi
michael@0 13800 else
michael@0 13801 need_locks=no
michael@0 13802 fi
michael@0 13803
michael@0 13804
michael@0 13805
michael@0 13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
michael@0 13807 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
michael@0 13808
michael@0 13809 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
michael@0 13810 case $host_os in
michael@0 13811 aix[4-9]*)
michael@0 13812 # If we're using GNU nm, then we don't want the "-C" option.
michael@0 13813 # -C means demangle to AIX nm, but means don't demangle with GNU nm
michael@0 13814 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
michael@0 13815 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
michael@0 13816 else
michael@0 13817 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
michael@0 13818 fi
michael@0 13819 ;;
michael@0 13820 pw32*)
michael@0 13821 export_symbols_cmds_CXX="$ltdll_cmds"
michael@0 13822 ;;
michael@0 13823 cygwin* | mingw* | cegcc*)
michael@0 13824 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
michael@0 13825 ;;
michael@0 13826 linux* | k*bsd*-gnu)
michael@0 13827 link_all_deplibs_CXX=no
michael@0 13828 ;;
michael@0 13829 *)
michael@0 13830 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
michael@0 13831 ;;
michael@0 13832 esac
michael@0 13833 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
michael@0 13834
michael@0 13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
michael@0 13836 $as_echo "$ld_shlibs_CXX" >&6; }
michael@0 13837 test "$ld_shlibs_CXX" = no && can_build_shared=no
michael@0 13838
michael@0 13839 with_gnu_ld_CXX=$with_gnu_ld
michael@0 13840
michael@0 13841
michael@0 13842
michael@0 13843
michael@0 13844
michael@0 13845
michael@0 13846 #
michael@0 13847 # Do we need to explicitly link libc?
michael@0 13848 #
michael@0 13849 case "x$archive_cmds_need_lc_CXX" in
michael@0 13850 x|xyes)
michael@0 13851 # Assume -lc should be added
michael@0 13852 archive_cmds_need_lc_CXX=yes
michael@0 13853
michael@0 13854 if test "$enable_shared" = yes && test "$GCC" = yes; then
michael@0 13855 case $archive_cmds_CXX in
michael@0 13856 *'~'*)
michael@0 13857 # FIXME: we may have to deal with multi-command sequences.
michael@0 13858 ;;
michael@0 13859 '$CC '*)
michael@0 13860 # Test whether the compiler implicitly links with -lc since on some
michael@0 13861 # systems, -lgcc has to come before -lc. If gcc already passes -lc
michael@0 13862 # to ld, don't add -lc before -lgcc.
michael@0 13863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
michael@0 13864 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
michael@0 13865 $RM conftest*
michael@0 13866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
michael@0 13867
michael@0 13868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
michael@0 13869 (eval $ac_compile) 2>&5
michael@0 13870 ac_status=$?
michael@0 13871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 13872 test $ac_status = 0; } 2>conftest.err; then
michael@0 13873 soname=conftest
michael@0 13874 lib=conftest
michael@0 13875 libobjs=conftest.$ac_objext
michael@0 13876 deplibs=
michael@0 13877 wl=$lt_prog_compiler_wl_CXX
michael@0 13878 pic_flag=$lt_prog_compiler_pic_CXX
michael@0 13879 compiler_flags=-v
michael@0 13880 linker_flags=-v
michael@0 13881 verstring=
michael@0 13882 output_objdir=.
michael@0 13883 libname=conftest
michael@0 13884 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
michael@0 13885 allow_undefined_flag_CXX=
michael@0 13886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
michael@0 13887 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
michael@0 13888 ac_status=$?
michael@0 13889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
michael@0 13890 test $ac_status = 0; }
michael@0 13891 then
michael@0 13892 archive_cmds_need_lc_CXX=no
michael@0 13893 else
michael@0 13894 archive_cmds_need_lc_CXX=yes
michael@0 13895 fi
michael@0 13896 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
michael@0 13897 else
michael@0 13898 cat conftest.err 1>&5
michael@0 13899 fi
michael@0 13900 $RM conftest*
michael@0 13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
michael@0 13902 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
michael@0 13903 ;;
michael@0 13904 esac
michael@0 13905 fi
michael@0 13906 ;;
michael@0 13907 esac
michael@0 13908
michael@0 13909
michael@0 13910
michael@0 13911
michael@0 13912
michael@0 13913
michael@0 13914
michael@0 13915
michael@0 13916
michael@0 13917
michael@0 13918
michael@0 13919
michael@0 13920
michael@0 13921
michael@0 13922
michael@0 13923
michael@0 13924
michael@0 13925
michael@0 13926
michael@0 13927
michael@0 13928
michael@0 13929
michael@0 13930
michael@0 13931
michael@0 13932
michael@0 13933
michael@0 13934
michael@0 13935
michael@0 13936
michael@0 13937
michael@0 13938
michael@0 13939
michael@0 13940
michael@0 13941
michael@0 13942
michael@0 13943
michael@0 13944
michael@0 13945
michael@0 13946
michael@0 13947
michael@0 13948
michael@0 13949
michael@0 13950
michael@0 13951
michael@0 13952
michael@0 13953
michael@0 13954
michael@0 13955
michael@0 13956
michael@0 13957
michael@0 13958
michael@0 13959
michael@0 13960
michael@0 13961
michael@0 13962
michael@0 13963
michael@0 13964
michael@0 13965
michael@0 13966
michael@0 13967
michael@0 13968
michael@0 13969
michael@0 13970
michael@0 13971
michael@0 13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
michael@0 13973 $as_echo_n "checking dynamic linker characteristics... " >&6; }
michael@0 13974
michael@0 13975 library_names_spec=
michael@0 13976 libname_spec='lib$name'
michael@0 13977 soname_spec=
michael@0 13978 shrext_cmds=".so"
michael@0 13979 postinstall_cmds=
michael@0 13980 postuninstall_cmds=
michael@0 13981 finish_cmds=
michael@0 13982 finish_eval=
michael@0 13983 shlibpath_var=
michael@0 13984 shlibpath_overrides_runpath=unknown
michael@0 13985 version_type=none
michael@0 13986 dynamic_linker="$host_os ld.so"
michael@0 13987 sys_lib_dlsearch_path_spec="/lib /usr/lib"
michael@0 13988 need_lib_prefix=unknown
michael@0 13989 hardcode_into_libs=no
michael@0 13990
michael@0 13991 # when you set need_version to no, make sure it does not cause -set_version
michael@0 13992 # flags to be left without arguments
michael@0 13993 need_version=unknown
michael@0 13994
michael@0 13995 case $host_os in
michael@0 13996 aix3*)
michael@0 13997 version_type=linux
michael@0 13998 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
michael@0 13999 shlibpath_var=LIBPATH
michael@0 14000
michael@0 14001 # AIX 3 has no versioning support, so we append a major version to the name.
michael@0 14002 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 14003 ;;
michael@0 14004
michael@0 14005 aix[4-9]*)
michael@0 14006 version_type=linux
michael@0 14007 need_lib_prefix=no
michael@0 14008 need_version=no
michael@0 14009 hardcode_into_libs=yes
michael@0 14010 if test "$host_cpu" = ia64; then
michael@0 14011 # AIX 5 supports IA64
michael@0 14012 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
michael@0 14013 shlibpath_var=LD_LIBRARY_PATH
michael@0 14014 else
michael@0 14015 # With GCC up to 2.95.x, collect2 would create an import file
michael@0 14016 # for dependence libraries. The import file would start with
michael@0 14017 # the line `#! .'. This would cause the generated library to
michael@0 14018 # depend on `.', always an invalid library. This was fixed in
michael@0 14019 # development snapshots of GCC prior to 3.0.
michael@0 14020 case $host_os in
michael@0 14021 aix4 | aix4.[01] | aix4.[01].*)
michael@0 14022 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
michael@0 14023 echo ' yes '
michael@0 14024 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
michael@0 14025 :
michael@0 14026 else
michael@0 14027 can_build_shared=no
michael@0 14028 fi
michael@0 14029 ;;
michael@0 14030 esac
michael@0 14031 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
michael@0 14032 # soname into executable. Probably we can add versioning support to
michael@0 14033 # collect2, so additional links can be useful in future.
michael@0 14034 if test "$aix_use_runtimelinking" = yes; then
michael@0 14035 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
michael@0 14036 # instead of lib<name>.a to let people know that these are not
michael@0 14037 # typical AIX shared libraries.
michael@0 14038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
michael@0 14039 else
michael@0 14040 # We preserve .a as extension for shared libraries through AIX4.2
michael@0 14041 # and later when we are not doing run time linking.
michael@0 14042 library_names_spec='${libname}${release}.a $libname.a'
michael@0 14043 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 14044 fi
michael@0 14045 shlibpath_var=LIBPATH
michael@0 14046 fi
michael@0 14047 ;;
michael@0 14048
michael@0 14049 amigaos*)
michael@0 14050 case $host_cpu in
michael@0 14051 powerpc)
michael@0 14052 # Since July 2007 AmigaOS4 officially supports .so libraries.
michael@0 14053 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
michael@0 14054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
michael@0 14055 ;;
michael@0 14056 m68k)
michael@0 14057 library_names_spec='$libname.ixlibrary $libname.a'
michael@0 14058 # Create ${libname}_ixlibrary.a entries in /sys/libs.
michael@0 14059 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
michael@0 14060 ;;
michael@0 14061 esac
michael@0 14062 ;;
michael@0 14063
michael@0 14064 beos*)
michael@0 14065 library_names_spec='${libname}${shared_ext}'
michael@0 14066 dynamic_linker="$host_os ld.so"
michael@0 14067 shlibpath_var=LIBRARY_PATH
michael@0 14068 ;;
michael@0 14069
michael@0 14070 bsdi[45]*)
michael@0 14071 version_type=linux
michael@0 14072 need_version=no
michael@0 14073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
michael@0 14074 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 14075 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
michael@0 14076 shlibpath_var=LD_LIBRARY_PATH
michael@0 14077 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
michael@0 14078 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
michael@0 14079 # the default ld.so.conf also contains /usr/contrib/lib and
michael@0 14080 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
michael@0 14081 # libtool to hard-code these into programs
michael@0 14082 ;;
michael@0 14083
michael@0 14084 cygwin* | mingw* | pw32* | cegcc*)
michael@0 14085 version_type=windows
michael@0 14086 shrext_cmds=".dll"
michael@0 14087 need_version=no
michael@0 14088 need_lib_prefix=no
michael@0 14089
michael@0 14090 case $GCC,$host_os in
michael@0 14091 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
michael@0 14092 library_names_spec='$libname.dll.a'
michael@0 14093 # DLL is installed to $(libdir)/../bin by postinstall_cmds
michael@0 14094 postinstall_cmds='base_file=`basename \${file}`~
michael@0 14095 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
michael@0 14096 dldir=$destdir/`dirname \$dlpath`~
michael@0 14097 test -d \$dldir || mkdir -p \$dldir~
michael@0 14098 $install_prog $dir/$dlname \$dldir/$dlname~
michael@0 14099 chmod a+x \$dldir/$dlname~
michael@0 14100 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
michael@0 14101 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
michael@0 14102 fi'
michael@0 14103 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
michael@0 14104 dlpath=$dir/\$dldll~
michael@0 14105 $RM \$dlpath'
michael@0 14106 shlibpath_overrides_runpath=yes
michael@0 14107
michael@0 14108 case $host_os in
michael@0 14109 cygwin*)
michael@0 14110 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
michael@0 14111 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
michael@0 14112 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
michael@0 14113 ;;
michael@0 14114 mingw* | cegcc*)
michael@0 14115 # MinGW DLLs use traditional 'lib' prefix
michael@0 14116 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
michael@0 14117 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
michael@0 14118 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
michael@0 14119 # It is most probably a Windows format PATH printed by
michael@0 14120 # mingw gcc, but we are running on Cygwin. Gcc prints its search
michael@0 14121 # path with ; separators, and with drive letters. We can handle the
michael@0 14122 # drive letters (cygwin fileutils understands them), so leave them,
michael@0 14123 # especially as we might pass files found there to a mingw objdump,
michael@0 14124 # which wouldn't understand a cygwinified path. Ahh.
michael@0 14125 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
michael@0 14126 else
michael@0 14127 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
michael@0 14128 fi
michael@0 14129 ;;
michael@0 14130 pw32*)
michael@0 14131 # pw32 DLLs use 'pw' prefix rather than 'lib'
michael@0 14132 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
michael@0 14133 ;;
michael@0 14134 esac
michael@0 14135 ;;
michael@0 14136
michael@0 14137 *)
michael@0 14138 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
michael@0 14139 ;;
michael@0 14140 esac
michael@0 14141 dynamic_linker='Win32 ld.exe'
michael@0 14142 # FIXME: first we should search . and the directory the executable is in
michael@0 14143 shlibpath_var=PATH
michael@0 14144 ;;
michael@0 14145
michael@0 14146 darwin* | rhapsody*)
michael@0 14147 dynamic_linker="$host_os dyld"
michael@0 14148 version_type=darwin
michael@0 14149 need_lib_prefix=no
michael@0 14150 need_version=no
michael@0 14151 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
michael@0 14152 soname_spec='${libname}${release}${major}$shared_ext'
michael@0 14153 shlibpath_overrides_runpath=yes
michael@0 14154 shlibpath_var=DYLD_LIBRARY_PATH
michael@0 14155 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
michael@0 14156
michael@0 14157 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
michael@0 14158 ;;
michael@0 14159
michael@0 14160 dgux*)
michael@0 14161 version_type=linux
michael@0 14162 need_lib_prefix=no
michael@0 14163 need_version=no
michael@0 14164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
michael@0 14165 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 14166 shlibpath_var=LD_LIBRARY_PATH
michael@0 14167 ;;
michael@0 14168
michael@0 14169 freebsd1*)
michael@0 14170 dynamic_linker=no
michael@0 14171 ;;
michael@0 14172
michael@0 14173 freebsd* | dragonfly*)
michael@0 14174 # DragonFly does not have aout. When/if they implement a new
michael@0 14175 # versioning mechanism, adjust this.
michael@0 14176 if test -x /usr/bin/objformat; then
michael@0 14177 objformat=`/usr/bin/objformat`
michael@0 14178 else
michael@0 14179 case $host_os in
michael@0 14180 freebsd[123]*) objformat=aout ;;
michael@0 14181 *) objformat=elf ;;
michael@0 14182 esac
michael@0 14183 fi
michael@0 14184 version_type=freebsd-$objformat
michael@0 14185 case $version_type in
michael@0 14186 freebsd-elf*)
michael@0 14187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
michael@0 14188 need_version=no
michael@0 14189 need_lib_prefix=no
michael@0 14190 ;;
michael@0 14191 freebsd-*)
michael@0 14192 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
michael@0 14193 need_version=yes
michael@0 14194 ;;
michael@0 14195 esac
michael@0 14196 shlibpath_var=LD_LIBRARY_PATH
michael@0 14197 case $host_os in
michael@0 14198 freebsd2*)
michael@0 14199 shlibpath_overrides_runpath=yes
michael@0 14200 ;;
michael@0 14201 freebsd3.[01]* | freebsdelf3.[01]*)
michael@0 14202 shlibpath_overrides_runpath=yes
michael@0 14203 hardcode_into_libs=yes
michael@0 14204 ;;
michael@0 14205 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
michael@0 14206 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
michael@0 14207 shlibpath_overrides_runpath=no
michael@0 14208 hardcode_into_libs=yes
michael@0 14209 ;;
michael@0 14210 *) # from 4.6 on, and DragonFly
michael@0 14211 shlibpath_overrides_runpath=yes
michael@0 14212 hardcode_into_libs=yes
michael@0 14213 ;;
michael@0 14214 esac
michael@0 14215 ;;
michael@0 14216
michael@0 14217 gnu*)
michael@0 14218 version_type=linux
michael@0 14219 need_lib_prefix=no
michael@0 14220 need_version=no
michael@0 14221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
michael@0 14222 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 14223 shlibpath_var=LD_LIBRARY_PATH
michael@0 14224 hardcode_into_libs=yes
michael@0 14225 ;;
michael@0 14226
michael@0 14227 hpux9* | hpux10* | hpux11*)
michael@0 14228 # Give a soname corresponding to the major version so that dld.sl refuses to
michael@0 14229 # link against other versions.
michael@0 14230 version_type=sunos
michael@0 14231 need_lib_prefix=no
michael@0 14232 need_version=no
michael@0 14233 case $host_cpu in
michael@0 14234 ia64*)
michael@0 14235 shrext_cmds='.so'
michael@0 14236 hardcode_into_libs=yes
michael@0 14237 dynamic_linker="$host_os dld.so"
michael@0 14238 shlibpath_var=LD_LIBRARY_PATH
michael@0 14239 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
michael@0 14240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
michael@0 14241 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 14242 if test "X$HPUX_IA64_MODE" = X32; then
michael@0 14243 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
michael@0 14244 else
michael@0 14245 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
michael@0 14246 fi
michael@0 14247 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
michael@0 14248 ;;
michael@0 14249 hppa*64*)
michael@0 14250 shrext_cmds='.sl'
michael@0 14251 hardcode_into_libs=yes
michael@0 14252 dynamic_linker="$host_os dld.sl"
michael@0 14253 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
michael@0 14254 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
michael@0 14255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
michael@0 14256 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 14257 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
michael@0 14258 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
michael@0 14259 ;;
michael@0 14260 *)
michael@0 14261 shrext_cmds='.sl'
michael@0 14262 dynamic_linker="$host_os dld.sl"
michael@0 14263 shlibpath_var=SHLIB_PATH
michael@0 14264 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
michael@0 14265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
michael@0 14266 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 14267 ;;
michael@0 14268 esac
michael@0 14269 # HP-UX runs *really* slowly unless shared libraries are mode 555.
michael@0 14270 postinstall_cmds='chmod 555 $lib'
michael@0 14271 ;;
michael@0 14272
michael@0 14273 interix[3-9]*)
michael@0 14274 version_type=linux
michael@0 14275 need_lib_prefix=no
michael@0 14276 need_version=no
michael@0 14277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
michael@0 14278 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 14279 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
michael@0 14280 shlibpath_var=LD_LIBRARY_PATH
michael@0 14281 shlibpath_overrides_runpath=no
michael@0 14282 hardcode_into_libs=yes
michael@0 14283 ;;
michael@0 14284
michael@0 14285 irix5* | irix6* | nonstopux*)
michael@0 14286 case $host_os in
michael@0 14287 nonstopux*) version_type=nonstopux ;;
michael@0 14288 *)
michael@0 14289 if test "$lt_cv_prog_gnu_ld" = yes; then
michael@0 14290 version_type=linux
michael@0 14291 else
michael@0 14292 version_type=irix
michael@0 14293 fi ;;
michael@0 14294 esac
michael@0 14295 need_lib_prefix=no
michael@0 14296 need_version=no
michael@0 14297 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 14298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
michael@0 14299 case $host_os in
michael@0 14300 irix5* | nonstopux*)
michael@0 14301 libsuff= shlibsuff=
michael@0 14302 ;;
michael@0 14303 *)
michael@0 14304 case $LD in # libtool.m4 will add one of these switches to LD
michael@0 14305 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
michael@0 14306 libsuff= shlibsuff= libmagic=32-bit;;
michael@0 14307 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
michael@0 14308 libsuff=32 shlibsuff=N32 libmagic=N32;;
michael@0 14309 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
michael@0 14310 libsuff=64 shlibsuff=64 libmagic=64-bit;;
michael@0 14311 *) libsuff= shlibsuff= libmagic=never-match;;
michael@0 14312 esac
michael@0 14313 ;;
michael@0 14314 esac
michael@0 14315 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
michael@0 14316 shlibpath_overrides_runpath=no
michael@0 14317 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
michael@0 14318 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
michael@0 14319 hardcode_into_libs=yes
michael@0 14320 ;;
michael@0 14321
michael@0 14322 # No shared lib support for Linux oldld, aout, or coff.
michael@0 14323 linux*oldld* | linux*aout* | linux*coff*)
michael@0 14324 dynamic_linker=no
michael@0 14325 ;;
michael@0 14326
michael@0 14327 # This must be Linux ELF.
michael@0 14328 linux* | k*bsd*-gnu | kopensolaris*-gnu)
michael@0 14329 version_type=linux
michael@0 14330 need_lib_prefix=no
michael@0 14331 need_version=no
michael@0 14332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
michael@0 14333 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 14334 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
michael@0 14335 shlibpath_var=LD_LIBRARY_PATH
michael@0 14336 shlibpath_overrides_runpath=no
michael@0 14337 # Some binutils ld are patched to set DT_RUNPATH
michael@0 14338 save_LDFLAGS=$LDFLAGS
michael@0 14339 save_libdir=$libdir
michael@0 14340 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
michael@0 14341 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
michael@0 14342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 14343 /* end confdefs.h. */
michael@0 14344
michael@0 14345 int
michael@0 14346 main ()
michael@0 14347 {
michael@0 14348
michael@0 14349 ;
michael@0 14350 return 0;
michael@0 14351 }
michael@0 14352 _ACEOF
michael@0 14353 if ac_fn_cxx_try_link "$LINENO"; then :
michael@0 14354 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
michael@0 14355 shlibpath_overrides_runpath=yes
michael@0 14356 fi
michael@0 14357 fi
michael@0 14358 rm -f core conftest.err conftest.$ac_objext \
michael@0 14359 conftest$ac_exeext conftest.$ac_ext
michael@0 14360 LDFLAGS=$save_LDFLAGS
michael@0 14361 libdir=$save_libdir
michael@0 14362
michael@0 14363 # This implies no fast_install, which is unacceptable.
michael@0 14364 # Some rework will be needed to allow for fast_install
michael@0 14365 # before this can be enabled.
michael@0 14366 hardcode_into_libs=yes
michael@0 14367
michael@0 14368 # Append ld.so.conf contents to the search path
michael@0 14369 if test -f /etc/ld.so.conf; then
michael@0 14370 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
michael@0 14371 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
michael@0 14372 fi
michael@0 14373
michael@0 14374 # We used to test for /lib/ld.so.1 and disable shared libraries on
michael@0 14375 # powerpc, because MkLinux only supported shared libraries with the
michael@0 14376 # GNU dynamic linker. Since this was broken with cross compilers,
michael@0 14377 # most powerpc-linux boxes support dynamic linking these days and
michael@0 14378 # people can always --disable-shared, the test was removed, and we
michael@0 14379 # assume the GNU/Linux dynamic linker is in use.
michael@0 14380 dynamic_linker='GNU/Linux ld.so'
michael@0 14381 ;;
michael@0 14382
michael@0 14383 netbsdelf*-gnu)
michael@0 14384 version_type=linux
michael@0 14385 need_lib_prefix=no
michael@0 14386 need_version=no
michael@0 14387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
michael@0 14388 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 14389 shlibpath_var=LD_LIBRARY_PATH
michael@0 14390 shlibpath_overrides_runpath=no
michael@0 14391 hardcode_into_libs=yes
michael@0 14392 dynamic_linker='NetBSD ld.elf_so'
michael@0 14393 ;;
michael@0 14394
michael@0 14395 netbsd*)
michael@0 14396 version_type=sunos
michael@0 14397 need_lib_prefix=no
michael@0 14398 need_version=no
michael@0 14399 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
michael@0 14400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
michael@0 14401 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
michael@0 14402 dynamic_linker='NetBSD (a.out) ld.so'
michael@0 14403 else
michael@0 14404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
michael@0 14405 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 14406 dynamic_linker='NetBSD ld.elf_so'
michael@0 14407 fi
michael@0 14408 shlibpath_var=LD_LIBRARY_PATH
michael@0 14409 shlibpath_overrides_runpath=yes
michael@0 14410 hardcode_into_libs=yes
michael@0 14411 ;;
michael@0 14412
michael@0 14413 newsos6)
michael@0 14414 version_type=linux
michael@0 14415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
michael@0 14416 shlibpath_var=LD_LIBRARY_PATH
michael@0 14417 shlibpath_overrides_runpath=yes
michael@0 14418 ;;
michael@0 14419
michael@0 14420 *nto* | *qnx*)
michael@0 14421 version_type=qnx
michael@0 14422 need_lib_prefix=no
michael@0 14423 need_version=no
michael@0 14424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
michael@0 14425 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 14426 shlibpath_var=LD_LIBRARY_PATH
michael@0 14427 shlibpath_overrides_runpath=no
michael@0 14428 hardcode_into_libs=yes
michael@0 14429 dynamic_linker='ldqnx.so'
michael@0 14430 ;;
michael@0 14431
michael@0 14432 openbsd*)
michael@0 14433 version_type=sunos
michael@0 14434 sys_lib_dlsearch_path_spec="/usr/lib"
michael@0 14435 need_lib_prefix=no
michael@0 14436 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
michael@0 14437 case $host_os in
michael@0 14438 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
michael@0 14439 *) need_version=no ;;
michael@0 14440 esac
michael@0 14441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
michael@0 14442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
michael@0 14443 shlibpath_var=LD_LIBRARY_PATH
michael@0 14444 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
michael@0 14445 case $host_os in
michael@0 14446 openbsd2.[89] | openbsd2.[89].*)
michael@0 14447 shlibpath_overrides_runpath=no
michael@0 14448 ;;
michael@0 14449 *)
michael@0 14450 shlibpath_overrides_runpath=yes
michael@0 14451 ;;
michael@0 14452 esac
michael@0 14453 else
michael@0 14454 shlibpath_overrides_runpath=yes
michael@0 14455 fi
michael@0 14456 ;;
michael@0 14457
michael@0 14458 os2*)
michael@0 14459 libname_spec='$name'
michael@0 14460 shrext_cmds=".dll"
michael@0 14461 need_lib_prefix=no
michael@0 14462 library_names_spec='$libname${shared_ext} $libname.a'
michael@0 14463 dynamic_linker='OS/2 ld.exe'
michael@0 14464 shlibpath_var=LIBPATH
michael@0 14465 ;;
michael@0 14466
michael@0 14467 osf3* | osf4* | osf5*)
michael@0 14468 version_type=osf
michael@0 14469 need_lib_prefix=no
michael@0 14470 need_version=no
michael@0 14471 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 14472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
michael@0 14473 shlibpath_var=LD_LIBRARY_PATH
michael@0 14474 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
michael@0 14475 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
michael@0 14476 ;;
michael@0 14477
michael@0 14478 rdos*)
michael@0 14479 dynamic_linker=no
michael@0 14480 ;;
michael@0 14481
michael@0 14482 solaris*)
michael@0 14483 version_type=linux
michael@0 14484 need_lib_prefix=no
michael@0 14485 need_version=no
michael@0 14486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
michael@0 14487 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 14488 shlibpath_var=LD_LIBRARY_PATH
michael@0 14489 shlibpath_overrides_runpath=yes
michael@0 14490 hardcode_into_libs=yes
michael@0 14491 # ldd complains unless libraries are executable
michael@0 14492 postinstall_cmds='chmod +x $lib'
michael@0 14493 ;;
michael@0 14494
michael@0 14495 sunos4*)
michael@0 14496 version_type=sunos
michael@0 14497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
michael@0 14498 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
michael@0 14499 shlibpath_var=LD_LIBRARY_PATH
michael@0 14500 shlibpath_overrides_runpath=yes
michael@0 14501 if test "$with_gnu_ld" = yes; then
michael@0 14502 need_lib_prefix=no
michael@0 14503 fi
michael@0 14504 need_version=yes
michael@0 14505 ;;
michael@0 14506
michael@0 14507 sysv4 | sysv4.3*)
michael@0 14508 version_type=linux
michael@0 14509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
michael@0 14510 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 14511 shlibpath_var=LD_LIBRARY_PATH
michael@0 14512 case $host_vendor in
michael@0 14513 sni)
michael@0 14514 shlibpath_overrides_runpath=no
michael@0 14515 need_lib_prefix=no
michael@0 14516 runpath_var=LD_RUN_PATH
michael@0 14517 ;;
michael@0 14518 siemens)
michael@0 14519 need_lib_prefix=no
michael@0 14520 ;;
michael@0 14521 motorola)
michael@0 14522 need_lib_prefix=no
michael@0 14523 need_version=no
michael@0 14524 shlibpath_overrides_runpath=no
michael@0 14525 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
michael@0 14526 ;;
michael@0 14527 esac
michael@0 14528 ;;
michael@0 14529
michael@0 14530 sysv4*MP*)
michael@0 14531 if test -d /usr/nec ;then
michael@0 14532 version_type=linux
michael@0 14533 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
michael@0 14534 soname_spec='$libname${shared_ext}.$major'
michael@0 14535 shlibpath_var=LD_LIBRARY_PATH
michael@0 14536 fi
michael@0 14537 ;;
michael@0 14538
michael@0 14539 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
michael@0 14540 version_type=freebsd-elf
michael@0 14541 need_lib_prefix=no
michael@0 14542 need_version=no
michael@0 14543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
michael@0 14544 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 14545 shlibpath_var=LD_LIBRARY_PATH
michael@0 14546 shlibpath_overrides_runpath=yes
michael@0 14547 hardcode_into_libs=yes
michael@0 14548 if test "$with_gnu_ld" = yes; then
michael@0 14549 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
michael@0 14550 else
michael@0 14551 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
michael@0 14552 case $host_os in
michael@0 14553 sco3.2v5*)
michael@0 14554 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
michael@0 14555 ;;
michael@0 14556 esac
michael@0 14557 fi
michael@0 14558 sys_lib_dlsearch_path_spec='/usr/lib'
michael@0 14559 ;;
michael@0 14560
michael@0 14561 tpf*)
michael@0 14562 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
michael@0 14563 version_type=linux
michael@0 14564 need_lib_prefix=no
michael@0 14565 need_version=no
michael@0 14566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
michael@0 14567 shlibpath_var=LD_LIBRARY_PATH
michael@0 14568 shlibpath_overrides_runpath=no
michael@0 14569 hardcode_into_libs=yes
michael@0 14570 ;;
michael@0 14571
michael@0 14572 uts4*)
michael@0 14573 version_type=linux
michael@0 14574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
michael@0 14575 soname_spec='${libname}${release}${shared_ext}$major'
michael@0 14576 shlibpath_var=LD_LIBRARY_PATH
michael@0 14577 ;;
michael@0 14578
michael@0 14579 *)
michael@0 14580 dynamic_linker=no
michael@0 14581 ;;
michael@0 14582 esac
michael@0 14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
michael@0 14584 $as_echo "$dynamic_linker" >&6; }
michael@0 14585 test "$dynamic_linker" = no && can_build_shared=no
michael@0 14586
michael@0 14587 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
michael@0 14588 if test "$GCC" = yes; then
michael@0 14589 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
michael@0 14590 fi
michael@0 14591
michael@0 14592 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
michael@0 14593 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
michael@0 14594 fi
michael@0 14595 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
michael@0 14596 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
michael@0 14597 fi
michael@0 14598
michael@0 14599
michael@0 14600
michael@0 14601
michael@0 14602
michael@0 14603
michael@0 14604
michael@0 14605
michael@0 14606
michael@0 14607
michael@0 14608
michael@0 14609
michael@0 14610
michael@0 14611
michael@0 14612
michael@0 14613
michael@0 14614
michael@0 14615
michael@0 14616
michael@0 14617
michael@0 14618
michael@0 14619
michael@0 14620
michael@0 14621
michael@0 14622
michael@0 14623
michael@0 14624
michael@0 14625
michael@0 14626
michael@0 14627
michael@0 14628
michael@0 14629
michael@0 14630
michael@0 14631
michael@0 14632
michael@0 14633
michael@0 14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
michael@0 14635 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
michael@0 14636 hardcode_action_CXX=
michael@0 14637 if test -n "$hardcode_libdir_flag_spec_CXX" ||
michael@0 14638 test -n "$runpath_var_CXX" ||
michael@0 14639 test "X$hardcode_automatic_CXX" = "Xyes" ; then
michael@0 14640
michael@0 14641 # We can hardcode non-existent directories.
michael@0 14642 if test "$hardcode_direct_CXX" != no &&
michael@0 14643 # If the only mechanism to avoid hardcoding is shlibpath_var, we
michael@0 14644 # have to relink, otherwise we might link with an installed library
michael@0 14645 # when we should be linking with a yet-to-be-installed one
michael@0 14646 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
michael@0 14647 test "$hardcode_minus_L_CXX" != no; then
michael@0 14648 # Linking always hardcodes the temporary library directory.
michael@0 14649 hardcode_action_CXX=relink
michael@0 14650 else
michael@0 14651 # We can link without hardcoding, and we can hardcode nonexisting dirs.
michael@0 14652 hardcode_action_CXX=immediate
michael@0 14653 fi
michael@0 14654 else
michael@0 14655 # We cannot hardcode anything, or else we can only hardcode existing
michael@0 14656 # directories.
michael@0 14657 hardcode_action_CXX=unsupported
michael@0 14658 fi
michael@0 14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
michael@0 14660 $as_echo "$hardcode_action_CXX" >&6; }
michael@0 14661
michael@0 14662 if test "$hardcode_action_CXX" = relink ||
michael@0 14663 test "$inherit_rpath_CXX" = yes; then
michael@0 14664 # Fast installation is not supported
michael@0 14665 enable_fast_install=no
michael@0 14666 elif test "$shlibpath_overrides_runpath" = yes ||
michael@0 14667 test "$enable_shared" = no; then
michael@0 14668 # Fast installation is not necessary
michael@0 14669 enable_fast_install=needless
michael@0 14670 fi
michael@0 14671
michael@0 14672
michael@0 14673
michael@0 14674
michael@0 14675
michael@0 14676
michael@0 14677
michael@0 14678 fi # test -n "$compiler"
michael@0 14679
michael@0 14680 CC=$lt_save_CC
michael@0 14681 LDCXX=$LD
michael@0 14682 LD=$lt_save_LD
michael@0 14683 GCC=$lt_save_GCC
michael@0 14684 with_gnu_ld=$lt_save_with_gnu_ld
michael@0 14685 lt_cv_path_LDCXX=$lt_cv_path_LD
michael@0 14686 lt_cv_path_LD=$lt_save_path_LD
michael@0 14687 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
michael@0 14688 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
michael@0 14689 fi # test "$_lt_caught_CXX_error" != yes
michael@0 14690
michael@0 14691 ac_ext=cpp
michael@0 14692 ac_cpp='$CXXCPP $CPPFLAGS'
michael@0 14693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
michael@0 14694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
michael@0 14695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
michael@0 14696
michael@0 14697
michael@0 14698
michael@0 14699
michael@0 14700
michael@0 14701
michael@0 14702
michael@0 14703
michael@0 14704
michael@0 14705
michael@0 14706
michael@0 14707
michael@0 14708
michael@0 14709 ac_config_commands="$ac_config_commands libtool"
michael@0 14710
michael@0 14711
michael@0 14712
michael@0 14713
michael@0 14714 # Only expand once:
michael@0 14715
michael@0 14716
michael@0 14717
michael@0 14718
michael@0 14719 # Check whether some low-level functions/files are available
michael@0 14720
michael@0 14721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
michael@0 14722 $as_echo_n "checking for ANSI C header files... " >&6; }
michael@0 14723 if test "${ac_cv_header_stdc+set}" = set; then :
michael@0 14724 $as_echo_n "(cached) " >&6
michael@0 14725 else
michael@0 14726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 14727 /* end confdefs.h. */
michael@0 14728 #include <stdlib.h>
michael@0 14729 #include <stdarg.h>
michael@0 14730 #include <string.h>
michael@0 14731 #include <float.h>
michael@0 14732
michael@0 14733 int
michael@0 14734 main ()
michael@0 14735 {
michael@0 14736
michael@0 14737 ;
michael@0 14738 return 0;
michael@0 14739 }
michael@0 14740 _ACEOF
michael@0 14741 if ac_fn_cxx_try_compile "$LINENO"; then :
michael@0 14742 ac_cv_header_stdc=yes
michael@0 14743 else
michael@0 14744 ac_cv_header_stdc=no
michael@0 14745 fi
michael@0 14746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 14747
michael@0 14748 if test $ac_cv_header_stdc = yes; then
michael@0 14749 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
michael@0 14750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 14751 /* end confdefs.h. */
michael@0 14752 #include <string.h>
michael@0 14753
michael@0 14754 _ACEOF
michael@0 14755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
michael@0 14756 $EGREP "memchr" >/dev/null 2>&1; then :
michael@0 14757
michael@0 14758 else
michael@0 14759 ac_cv_header_stdc=no
michael@0 14760 fi
michael@0 14761 rm -f conftest*
michael@0 14762
michael@0 14763 fi
michael@0 14764
michael@0 14765 if test $ac_cv_header_stdc = yes; then
michael@0 14766 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
michael@0 14767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 14768 /* end confdefs.h. */
michael@0 14769 #include <stdlib.h>
michael@0 14770
michael@0 14771 _ACEOF
michael@0 14772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
michael@0 14773 $EGREP "free" >/dev/null 2>&1; then :
michael@0 14774
michael@0 14775 else
michael@0 14776 ac_cv_header_stdc=no
michael@0 14777 fi
michael@0 14778 rm -f conftest*
michael@0 14779
michael@0 14780 fi
michael@0 14781
michael@0 14782 if test $ac_cv_header_stdc = yes; then
michael@0 14783 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
michael@0 14784 if test "$cross_compiling" = yes; then :
michael@0 14785 :
michael@0 14786 else
michael@0 14787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 14788 /* end confdefs.h. */
michael@0 14789 #include <ctype.h>
michael@0 14790 #include <stdlib.h>
michael@0 14791 #if ((' ' & 0x0FF) == 0x020)
michael@0 14792 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
michael@0 14793 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
michael@0 14794 #else
michael@0 14795 # define ISLOWER(c) \
michael@0 14796 (('a' <= (c) && (c) <= 'i') \
michael@0 14797 || ('j' <= (c) && (c) <= 'r') \
michael@0 14798 || ('s' <= (c) && (c) <= 'z'))
michael@0 14799 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
michael@0 14800 #endif
michael@0 14801
michael@0 14802 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
michael@0 14803 int
michael@0 14804 main ()
michael@0 14805 {
michael@0 14806 int i;
michael@0 14807 for (i = 0; i < 256; i++)
michael@0 14808 if (XOR (islower (i), ISLOWER (i))
michael@0 14809 || toupper (i) != TOUPPER (i))
michael@0 14810 return 2;
michael@0 14811 return 0;
michael@0 14812 }
michael@0 14813 _ACEOF
michael@0 14814 if ac_fn_cxx_try_run "$LINENO"; then :
michael@0 14815
michael@0 14816 else
michael@0 14817 ac_cv_header_stdc=no
michael@0 14818 fi
michael@0 14819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
michael@0 14820 conftest.$ac_objext conftest.beam conftest.$ac_ext
michael@0 14821 fi
michael@0 14822
michael@0 14823 fi
michael@0 14824 fi
michael@0 14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
michael@0 14826 $as_echo "$ac_cv_header_stdc" >&6; }
michael@0 14827 if test $ac_cv_header_stdc = yes; then
michael@0 14828
michael@0 14829 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
michael@0 14830
michael@0 14831 fi
michael@0 14832
michael@0 14833
michael@0 14834 # These are tested for by AC_HEADER_STDC, but I check again to set the var
michael@0 14835 ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
michael@0 14836 if test "x$ac_cv_header_stdint_h" = x""yes; then :
michael@0 14837 ac_cv_have_stdint_h=1
michael@0 14838 else
michael@0 14839 ac_cv_have_stdint_h=0
michael@0 14840 fi
michael@0 14841
michael@0 14842
michael@0 14843 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
michael@0 14844 if test "x$ac_cv_header_sys_types_h" = x""yes; then :
michael@0 14845 ac_cv_have_systypes_h=1
michael@0 14846 else
michael@0 14847 ac_cv_have_systypes_h=0
michael@0 14848 fi
michael@0 14849
michael@0 14850
michael@0 14851 ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
michael@0 14852 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
michael@0 14853 ac_cv_have_inttypes_h=1
michael@0 14854 else
michael@0 14855 ac_cv_have_inttypes_h=0
michael@0 14856 fi
michael@0 14857
michael@0 14858
michael@0 14859 for ac_header in unistd.h
michael@0 14860 do :
michael@0 14861 ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
michael@0 14862 if test "x$ac_cv_header_unistd_h" = x""yes; then :
michael@0 14863 cat >>confdefs.h <<_ACEOF
michael@0 14864 #define HAVE_UNISTD_H 1
michael@0 14865 _ACEOF
michael@0 14866 ac_cv_have_unistd_h=1
michael@0 14867 else
michael@0 14868 ac_cv_have_unistd_h=0
michael@0 14869 fi
michael@0 14870
michael@0 14871 done
michael@0 14872
michael@0 14873 for ac_header in syscall.h
michael@0 14874 do :
michael@0 14875 ac_fn_cxx_check_header_mongrel "$LINENO" "syscall.h" "ac_cv_header_syscall_h" "$ac_includes_default"
michael@0 14876 if test "x$ac_cv_header_syscall_h" = x""yes; then :
michael@0 14877 cat >>confdefs.h <<_ACEOF
michael@0 14878 #define HAVE_SYSCALL_H 1
michael@0 14879 _ACEOF
michael@0 14880
michael@0 14881 fi
michael@0 14882
michael@0 14883 done
michael@0 14884
michael@0 14885 for ac_header in sys/syscall.h
michael@0 14886 do :
michael@0 14887 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
michael@0 14888 if test "x$ac_cv_header_sys_syscall_h" = x""yes; then :
michael@0 14889 cat >>confdefs.h <<_ACEOF
michael@0 14890 #define HAVE_SYS_SYSCALL_H 1
michael@0 14891 _ACEOF
michael@0 14892
michael@0 14893 fi
michael@0 14894
michael@0 14895 done
michael@0 14896
michael@0 14897 # For backtrace with glibc.
michael@0 14898 for ac_header in execinfo.h
michael@0 14899 do :
michael@0 14900 ac_fn_cxx_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
michael@0 14901 if test "x$ac_cv_header_execinfo_h" = x""yes; then :
michael@0 14902 cat >>confdefs.h <<_ACEOF
michael@0 14903 #define HAVE_EXECINFO_H 1
michael@0 14904 _ACEOF
michael@0 14905
michael@0 14906 fi
michael@0 14907
michael@0 14908 done
michael@0 14909
michael@0 14910 # For backtrace with libunwind.
michael@0 14911 for ac_header in libunwind.h
michael@0 14912 do :
michael@0 14913 ac_fn_cxx_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
michael@0 14914 if test "x$ac_cv_header_libunwind_h" = x""yes; then :
michael@0 14915 cat >>confdefs.h <<_ACEOF
michael@0 14916 #define HAVE_LIBUNWIND_H 1
michael@0 14917 _ACEOF
michael@0 14918 ac_cv_have_libunwind_h=1
michael@0 14919 else
michael@0 14920 ac_cv_have_libunwind_h=0
michael@0 14921 fi
michael@0 14922
michael@0 14923 done
michael@0 14924
michael@0 14925 for ac_header in ucontext.h
michael@0 14926 do :
michael@0 14927 ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
michael@0 14928 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
michael@0 14929 cat >>confdefs.h <<_ACEOF
michael@0 14930 #define HAVE_UCONTEXT_H 1
michael@0 14931 _ACEOF
michael@0 14932
michael@0 14933 fi
michael@0 14934
michael@0 14935 done
michael@0 14936
michael@0 14937 for ac_header in sys/utsname.h
michael@0 14938 do :
michael@0 14939 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
michael@0 14940 if test "x$ac_cv_header_sys_utsname_h" = x""yes; then :
michael@0 14941 cat >>confdefs.h <<_ACEOF
michael@0 14942 #define HAVE_SYS_UTSNAME_H 1
michael@0 14943 _ACEOF
michael@0 14944
michael@0 14945 fi
michael@0 14946
michael@0 14947 done
michael@0 14948
michael@0 14949 for ac_header in pwd.h
michael@0 14950 do :
michael@0 14951 ac_fn_cxx_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
michael@0 14952 if test "x$ac_cv_header_pwd_h" = x""yes; then :
michael@0 14953 cat >>confdefs.h <<_ACEOF
michael@0 14954 #define HAVE_PWD_H 1
michael@0 14955 _ACEOF
michael@0 14956
michael@0 14957 fi
michael@0 14958
michael@0 14959 done
michael@0 14960
michael@0 14961 for ac_header in syslog.h
michael@0 14962 do :
michael@0 14963 ac_fn_cxx_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
michael@0 14964 if test "x$ac_cv_header_syslog_h" = x""yes; then :
michael@0 14965 cat >>confdefs.h <<_ACEOF
michael@0 14966 #define HAVE_SYSLOG_H 1
michael@0 14967 _ACEOF
michael@0 14968
michael@0 14969 fi
michael@0 14970
michael@0 14971 done
michael@0 14972
michael@0 14973 for ac_header in sys/time.h
michael@0 14974 do :
michael@0 14975 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
michael@0 14976 if test "x$ac_cv_header_sys_time_h" = x""yes; then :
michael@0 14977 cat >>confdefs.h <<_ACEOF
michael@0 14978 #define HAVE_SYS_TIME_H 1
michael@0 14979 _ACEOF
michael@0 14980
michael@0 14981 fi
michael@0 14982
michael@0 14983 done
michael@0 14984
michael@0 14985 for ac_header in glob.h
michael@0 14986 do :
michael@0 14987 ac_fn_cxx_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
michael@0 14988 if test "x$ac_cv_header_glob_h" = x""yes; then :
michael@0 14989 cat >>confdefs.h <<_ACEOF
michael@0 14990 #define HAVE_GLOB_H 1
michael@0 14991 _ACEOF
michael@0 14992
michael@0 14993 fi
michael@0 14994
michael@0 14995 done
michael@0 14996
michael@0 14997
michael@0 14998 # The cast to long int works around a bug in the HP C Compiler
michael@0 14999 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
michael@0 15000 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
michael@0 15001 # This bug is HP SR number 8606223364.
michael@0 15002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
michael@0 15003 $as_echo_n "checking size of void *... " >&6; }
michael@0 15004 if test "${ac_cv_sizeof_void_p+set}" = set; then :
michael@0 15005 $as_echo_n "(cached) " >&6
michael@0 15006 else
michael@0 15007 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
michael@0 15008
michael@0 15009 else
michael@0 15010 if test "$ac_cv_type_void_p" = yes; then
michael@0 15011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
michael@0 15012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
michael@0 15013 { as_fn_set_status 77
michael@0 15014 as_fn_error "cannot compute sizeof (void *)
michael@0 15015 See \`config.log' for more details." "$LINENO" 5; }; }
michael@0 15016 else
michael@0 15017 ac_cv_sizeof_void_p=0
michael@0 15018 fi
michael@0 15019 fi
michael@0 15020
michael@0 15021 fi
michael@0 15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
michael@0 15023 $as_echo "$ac_cv_sizeof_void_p" >&6; }
michael@0 15024
michael@0 15025
michael@0 15026
michael@0 15027 cat >>confdefs.h <<_ACEOF
michael@0 15028 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
michael@0 15029 _ACEOF
michael@0 15030
michael@0 15031
michael@0 15032
michael@0 15033 # These are the types I need. We look for them in either stdint.h,
michael@0 15034 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
michael@0 15035 ac_fn_cxx_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
michael@0 15036 if test "x$ac_cv_type_uint16_t" = x""yes; then :
michael@0 15037 ac_cv_have_uint16_t=1
michael@0 15038 else
michael@0 15039 ac_cv_have_uint16_t=0
michael@0 15040 fi
michael@0 15041
michael@0 15042 ac_fn_cxx_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
michael@0 15043 if test "x$ac_cv_type_u_int16_t" = x""yes; then :
michael@0 15044 ac_cv_have_u_int16_t=1
michael@0 15045 else
michael@0 15046 ac_cv_have_u_int16_t=0
michael@0 15047 fi
michael@0 15048
michael@0 15049 ac_fn_cxx_check_type "$LINENO" "__uint16" "ac_cv_type___uint16" "$ac_includes_default"
michael@0 15050 if test "x$ac_cv_type___uint16" = x""yes; then :
michael@0 15051 ac_cv_have___uint16=1
michael@0 15052 else
michael@0 15053 ac_cv_have___uint16=0
michael@0 15054 fi
michael@0 15055
michael@0 15056
michael@0 15057 ac_fn_cxx_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack"
michael@0 15058 if test "x$ac_cv_func_sigaltstack" = x""yes; then :
michael@0 15059
michael@0 15060 $as_echo "#define HAVE_SIGALTSTACK 1" >>confdefs.h
michael@0 15061
michael@0 15062 fi
michael@0 15063
michael@0 15064 ac_fn_cxx_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
michael@0 15065 if test "x$ac_cv_func_dladdr" = x""yes; then :
michael@0 15066
michael@0 15067 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
michael@0 15068
michael@0 15069 fi
michael@0 15070
michael@0 15071 ac_fn_cxx_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
michael@0 15072 if test "x$ac_cv_func_fcntl" = x""yes; then :
michael@0 15073
michael@0 15074 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
michael@0 15075
michael@0 15076 fi
michael@0 15077
michael@0 15078
michael@0 15079
michael@0 15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
michael@0 15081 $as_echo_n "checking for __attribute__... " >&6; }
michael@0 15082 if test "${ac_cv___attribute__+set}" = set; then :
michael@0 15083 $as_echo_n "(cached) " >&6
michael@0 15084 else
michael@0 15085
michael@0 15086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 15087 /* end confdefs.h. */
michael@0 15088 #include <stdlib.h>
michael@0 15089 static void foo(void) __attribute__ ((unused));
michael@0 15090 void foo(void) { exit(1); }
michael@0 15091 int
michael@0 15092 main ()
michael@0 15093 {
michael@0 15094
michael@0 15095 ;
michael@0 15096 return 0;
michael@0 15097 }
michael@0 15098 _ACEOF
michael@0 15099 if ac_fn_cxx_try_compile "$LINENO"; then :
michael@0 15100 ac_cv___attribute__=yes
michael@0 15101 else
michael@0 15102 ac_cv___attribute__=no
michael@0 15103
michael@0 15104 fi
michael@0 15105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 15106 fi
michael@0 15107
michael@0 15108 if test "$ac_cv___attribute__" = "yes"; then
michael@0 15109
michael@0 15110 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
michael@0 15111
michael@0 15112 fi
michael@0 15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
michael@0 15114 $as_echo "$ac_cv___attribute__" >&6; }
michael@0 15115
michael@0 15116 # We only care about these two attributes.
michael@0 15117 if test x"$ac_cv___attribute__" = x"yes"; then
michael@0 15118 ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
michael@0 15119 ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
michael@0 15120 else
michael@0 15121 ac_cv___attribute___noreturn=
michael@0 15122 ac_cv___attribute___printf_4_5=
michael@0 15123 fi
michael@0 15124
michael@0 15125
michael@0 15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
michael@0 15127 $as_echo_n "checking for __builtin_expect... " >&6; }
michael@0 15128 if test "${ac_cv___builtin_expect+set}" = set; then :
michael@0 15129 $as_echo_n "(cached) " >&6
michael@0 15130 else
michael@0 15131
michael@0 15132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 15133 /* end confdefs.h. */
michael@0 15134 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
michael@0 15135 int
michael@0 15136 main ()
michael@0 15137 {
michael@0 15138
michael@0 15139 ;
michael@0 15140 return 0;
michael@0 15141 }
michael@0 15142 _ACEOF
michael@0 15143 if ac_fn_cxx_try_compile "$LINENO"; then :
michael@0 15144 ac_cv___builtin_expect=yes
michael@0 15145 else
michael@0 15146 ac_cv___builtin_expect=no
michael@0 15147
michael@0 15148 fi
michael@0 15149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 15150 fi
michael@0 15151
michael@0 15152 if test "$ac_cv___builtin_expect" = "yes"; then
michael@0 15153
michael@0 15154 $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
michael@0 15155
michael@0 15156 fi
michael@0 15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___builtin_expect" >&5
michael@0 15158 $as_echo "$ac_cv___builtin_expect" >&6; }
michael@0 15159
michael@0 15160 if test x"$ac_cv___builtin_expect" = x"yes"; then
michael@0 15161 ac_cv_have___builtin_expect=1
michael@0 15162 else
michael@0 15163 ac_cv_have___builtin_expect=0
michael@0 15164 fi
michael@0 15165
michael@0 15166
michael@0 15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_val_compare_and_swap" >&5
michael@0 15168 $as_echo_n "checking for __sync_val_compare_and_swap... " >&6; }
michael@0 15169 if test "${ac_cv___sync_val_compare_and_swap+set}" = set; then :
michael@0 15170 $as_echo_n "(cached) " >&6
michael@0 15171 else
michael@0 15172
michael@0 15173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 15174 /* end confdefs.h. */
michael@0 15175 int main() { int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0; }
michael@0 15176 int
michael@0 15177 main ()
michael@0 15178 {
michael@0 15179
michael@0 15180 ;
michael@0 15181 return 0;
michael@0 15182 }
michael@0 15183 _ACEOF
michael@0 15184 if ac_fn_cxx_try_link "$LINENO"; then :
michael@0 15185 ac_cv___sync_val_compare_and_swap=yes
michael@0 15186 else
michael@0 15187 ac_cv___sync_val_compare_and_swap=no
michael@0 15188
michael@0 15189 fi
michael@0 15190 rm -f core conftest.err conftest.$ac_objext \
michael@0 15191 conftest$ac_exeext conftest.$ac_ext
michael@0 15192 fi
michael@0 15193
michael@0 15194 if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then
michael@0 15195
michael@0 15196 $as_echo "#define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1" >>confdefs.h
michael@0 15197
michael@0 15198 fi
michael@0 15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___sync_val_compare_and_swap" >&5
michael@0 15200 $as_echo "$ac_cv___sync_val_compare_and_swap" >&6; }
michael@0 15201
michael@0 15202
michael@0 15203 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
michael@0 15204 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
michael@0 15205 # Check whether --enable-frame_pointers was given.
michael@0 15206 if test "${enable_frame_pointers+set}" = set; then :
michael@0 15207 enableval=$enable_frame_pointers;
michael@0 15208 else
michael@0 15209 enable_frame_pointers=no
michael@0 15210 fi
michael@0 15211
michael@0 15212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 15213 /* end confdefs.h. */
michael@0 15214
michael@0 15215 int
michael@0 15216 main ()
michael@0 15217 {
michael@0 15218 return __x86_64__ == 1 ? 0 : 1
michael@0 15219 ;
michael@0 15220 return 0;
michael@0 15221 }
michael@0 15222 _ACEOF
michael@0 15223 if ac_fn_cxx_try_compile "$LINENO"; then :
michael@0 15224 is_x86_64=yes
michael@0 15225 else
michael@0 15226 is_x86_64=no
michael@0 15227 fi
michael@0 15228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 15229 if test "$enable_frame_pointers" = yes; then
michael@0 15230 ENABLE_FRAME_POINTERS_TRUE=
michael@0 15231 ENABLE_FRAME_POINTERS_FALSE='#'
michael@0 15232 else
michael@0 15233 ENABLE_FRAME_POINTERS_TRUE='#'
michael@0 15234 ENABLE_FRAME_POINTERS_FALSE=
michael@0 15235 fi
michael@0 15236
michael@0 15237 if test "$is_x86_64" = yes; then
michael@0 15238 X86_64_TRUE=
michael@0 15239 X86_64_FALSE='#'
michael@0 15240 else
michael@0 15241 X86_64_TRUE='#'
michael@0 15242 X86_64_FALSE=
michael@0 15243 fi
michael@0 15244
michael@0 15245
michael@0 15246 # Some of the code in this directory depends on pthreads
michael@0 15247
michael@0 15248
michael@0 15249
michael@0 15250 ac_ext=c
michael@0 15251 ac_cpp='$CPP $CPPFLAGS'
michael@0 15252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
michael@0 15253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
michael@0 15254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
michael@0 15255
michael@0 15256 acx_pthread_ok=no
michael@0 15257
michael@0 15258 # We used to check for pthread.h first, but this fails if pthread.h
michael@0 15259 # requires special compiler flags (e.g. on True64 or Sequent).
michael@0 15260 # It gets checked for in the link test anyway.
michael@0 15261
michael@0 15262 # First of all, check if the user has set any of the PTHREAD_LIBS,
michael@0 15263 # etcetera environment variables, and if threads linking works using
michael@0 15264 # them:
michael@0 15265 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
michael@0 15266 save_CFLAGS="$CFLAGS"
michael@0 15267 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
michael@0 15268 save_LIBS="$LIBS"
michael@0 15269 LIBS="$PTHREAD_LIBS $LIBS"
michael@0 15270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
michael@0 15271 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
michael@0 15272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 15273 /* end confdefs.h. */
michael@0 15274
michael@0 15275 /* Override any GCC internal prototype to avoid an error.
michael@0 15276 Use char because int might match the return type of a GCC
michael@0 15277 builtin and then its argument prototype would still apply. */
michael@0 15278 #ifdef __cplusplus
michael@0 15279 extern "C"
michael@0 15280 #endif
michael@0 15281 char pthread_join ();
michael@0 15282 int
michael@0 15283 main ()
michael@0 15284 {
michael@0 15285 return pthread_join ();
michael@0 15286 ;
michael@0 15287 return 0;
michael@0 15288 }
michael@0 15289 _ACEOF
michael@0 15290 if ac_fn_c_try_link "$LINENO"; then :
michael@0 15291 acx_pthread_ok=yes
michael@0 15292 fi
michael@0 15293 rm -f core conftest.err conftest.$ac_objext \
michael@0 15294 conftest$ac_exeext conftest.$ac_ext
michael@0 15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
michael@0 15296 $as_echo "$acx_pthread_ok" >&6; }
michael@0 15297 if test x"$acx_pthread_ok" = xno; then
michael@0 15298 PTHREAD_LIBS=""
michael@0 15299 PTHREAD_CFLAGS=""
michael@0 15300 fi
michael@0 15301 LIBS="$save_LIBS"
michael@0 15302 CFLAGS="$save_CFLAGS"
michael@0 15303 fi
michael@0 15304
michael@0 15305 # We must check for the threads library under a number of different
michael@0 15306 # names; the ordering is very important because some systems
michael@0 15307 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
michael@0 15308 # libraries is broken (non-POSIX).
michael@0 15309
michael@0 15310 # Create a list of thread flags to try. Items starting with a "-" are
michael@0 15311 # C compiler flags, and other items are library names, except for "none"
michael@0 15312 # which indicates that we try without any flags at all, and "pthread-config"
michael@0 15313 # which is a program returning the flags for the Pth emulation library.
michael@0 15314
michael@0 15315 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
michael@0 15316
michael@0 15317 # The ordering *is* (sometimes) important. Some notes on the
michael@0 15318 # individual items follow:
michael@0 15319
michael@0 15320 # pthreads: AIX (must check this before -lpthread)
michael@0 15321 # none: in case threads are in libc; should be tried before -Kthread and
michael@0 15322 # other compiler flags to prevent continual compiler warnings
michael@0 15323 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
michael@0 15324 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
michael@0 15325 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
michael@0 15326 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
michael@0 15327 # -pthreads: Solaris/gcc
michael@0 15328 # -mthreads: Mingw32/gcc, Lynx/gcc
michael@0 15329 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
michael@0 15330 # doesn't hurt to check since this sometimes defines pthreads too;
michael@0 15331 # also defines -D_REENTRANT)
michael@0 15332 # ... -mt is also the pthreads flag for HP/aCC
michael@0 15333 # pthread: Linux, etcetera
michael@0 15334 # --thread-safe: KAI C++
michael@0 15335 # pthread-config: use pthread-config program (for GNU Pth library)
michael@0 15336
michael@0 15337 case "${host_cpu}-${host_os}" in
michael@0 15338 *solaris*)
michael@0 15339
michael@0 15340 # On Solaris (at least, for some versions), libc contains stubbed
michael@0 15341 # (non-functional) versions of the pthreads routines, so link-based
michael@0 15342 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
michael@0 15343 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
michael@0 15344 # a function called by this macro, so we could check for that, but
michael@0 15345 # who knows whether they'll stub that too in a future libc.) So,
michael@0 15346 # we'll just look for -pthreads and -lpthread first:
michael@0 15347
michael@0 15348 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
michael@0 15349 ;;
michael@0 15350 esac
michael@0 15351
michael@0 15352 if test x"$acx_pthread_ok" = xno; then
michael@0 15353 for flag in $acx_pthread_flags; do
michael@0 15354
michael@0 15355 case $flag in
michael@0 15356 none)
michael@0 15357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
michael@0 15358 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
michael@0 15359 ;;
michael@0 15360
michael@0 15361 -*)
michael@0 15362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
michael@0 15363 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
michael@0 15364 PTHREAD_CFLAGS="$flag"
michael@0 15365 ;;
michael@0 15366
michael@0 15367 pthread-config)
michael@0 15368 # Extract the first word of "pthread-config", so it can be a program name with args.
michael@0 15369 set dummy pthread-config; ac_word=$2
michael@0 15370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 15371 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 15372 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
michael@0 15373 $as_echo_n "(cached) " >&6
michael@0 15374 else
michael@0 15375 if test -n "$acx_pthread_config"; then
michael@0 15376 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
michael@0 15377 else
michael@0 15378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 15379 for as_dir in $PATH
michael@0 15380 do
michael@0 15381 IFS=$as_save_IFS
michael@0 15382 test -z "$as_dir" && as_dir=.
michael@0 15383 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 15384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 15385 ac_cv_prog_acx_pthread_config="yes"
michael@0 15386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 15387 break 2
michael@0 15388 fi
michael@0 15389 done
michael@0 15390 done
michael@0 15391 IFS=$as_save_IFS
michael@0 15392
michael@0 15393 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
michael@0 15394 fi
michael@0 15395 fi
michael@0 15396 acx_pthread_config=$ac_cv_prog_acx_pthread_config
michael@0 15397 if test -n "$acx_pthread_config"; then
michael@0 15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
michael@0 15399 $as_echo "$acx_pthread_config" >&6; }
michael@0 15400 else
michael@0 15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 15402 $as_echo "no" >&6; }
michael@0 15403 fi
michael@0 15404
michael@0 15405
michael@0 15406 if test x"$acx_pthread_config" = xno; then continue; fi
michael@0 15407 PTHREAD_CFLAGS="`pthread-config --cflags`"
michael@0 15408 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
michael@0 15409 ;;
michael@0 15410
michael@0 15411 *)
michael@0 15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
michael@0 15413 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
michael@0 15414 PTHREAD_LIBS="-l$flag"
michael@0 15415 ;;
michael@0 15416 esac
michael@0 15417
michael@0 15418 save_LIBS="$LIBS"
michael@0 15419 save_CFLAGS="$CFLAGS"
michael@0 15420 LIBS="$PTHREAD_LIBS $LIBS"
michael@0 15421 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
michael@0 15422
michael@0 15423 # Check for various functions. We must include pthread.h,
michael@0 15424 # since some functions may be macros. (On the Sequent, we
michael@0 15425 # need a special flag -Kthread to make this header compile.)
michael@0 15426 # We check for pthread_join because it is in -lpthread on IRIX
michael@0 15427 # while pthread_create is in libc. We check for pthread_attr_init
michael@0 15428 # due to DEC craziness with -lpthreads. We check for
michael@0 15429 # pthread_cleanup_push because it is one of the few pthread
michael@0 15430 # functions on Solaris that doesn't have a non-functional libc stub.
michael@0 15431 # We try pthread_create on general principles.
michael@0 15432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 15433 /* end confdefs.h. */
michael@0 15434 #include <pthread.h>
michael@0 15435 int
michael@0 15436 main ()
michael@0 15437 {
michael@0 15438 pthread_t th; pthread_join(th, 0);
michael@0 15439 pthread_attr_init(0); pthread_cleanup_push(0, 0);
michael@0 15440 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
michael@0 15441 ;
michael@0 15442 return 0;
michael@0 15443 }
michael@0 15444 _ACEOF
michael@0 15445 if ac_fn_c_try_link "$LINENO"; then :
michael@0 15446 acx_pthread_ok=yes
michael@0 15447 fi
michael@0 15448 rm -f core conftest.err conftest.$ac_objext \
michael@0 15449 conftest$ac_exeext conftest.$ac_ext
michael@0 15450
michael@0 15451 LIBS="$save_LIBS"
michael@0 15452 CFLAGS="$save_CFLAGS"
michael@0 15453
michael@0 15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
michael@0 15455 $as_echo "$acx_pthread_ok" >&6; }
michael@0 15456 if test "x$acx_pthread_ok" = xyes; then
michael@0 15457 break;
michael@0 15458 fi
michael@0 15459
michael@0 15460 PTHREAD_LIBS=""
michael@0 15461 PTHREAD_CFLAGS=""
michael@0 15462 done
michael@0 15463 fi
michael@0 15464
michael@0 15465 # Various other checks:
michael@0 15466 if test "x$acx_pthread_ok" = xyes; then
michael@0 15467 save_LIBS="$LIBS"
michael@0 15468 LIBS="$PTHREAD_LIBS $LIBS"
michael@0 15469 save_CFLAGS="$CFLAGS"
michael@0 15470 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
michael@0 15471
michael@0 15472 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
michael@0 15473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
michael@0 15474 $as_echo_n "checking for joinable pthread attribute... " >&6; }
michael@0 15475 attr_name=unknown
michael@0 15476 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
michael@0 15477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 15478 /* end confdefs.h. */
michael@0 15479 #include <pthread.h>
michael@0 15480 int
michael@0 15481 main ()
michael@0 15482 {
michael@0 15483 int attr=$attr; return attr;
michael@0 15484 ;
michael@0 15485 return 0;
michael@0 15486 }
michael@0 15487 _ACEOF
michael@0 15488 if ac_fn_c_try_link "$LINENO"; then :
michael@0 15489 attr_name=$attr; break
michael@0 15490 fi
michael@0 15491 rm -f core conftest.err conftest.$ac_objext \
michael@0 15492 conftest$ac_exeext conftest.$ac_ext
michael@0 15493 done
michael@0 15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
michael@0 15495 $as_echo "$attr_name" >&6; }
michael@0 15496 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
michael@0 15497
michael@0 15498 cat >>confdefs.h <<_ACEOF
michael@0 15499 #define PTHREAD_CREATE_JOINABLE $attr_name
michael@0 15500 _ACEOF
michael@0 15501
michael@0 15502 fi
michael@0 15503
michael@0 15504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
michael@0 15505 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
michael@0 15506 flag=no
michael@0 15507 case "${host_cpu}-${host_os}" in
michael@0 15508 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
michael@0 15509 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
michael@0 15510 esac
michael@0 15511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
michael@0 15512 $as_echo "${flag}" >&6; }
michael@0 15513 if test "x$flag" != xno; then
michael@0 15514 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
michael@0 15515 fi
michael@0 15516
michael@0 15517 LIBS="$save_LIBS"
michael@0 15518 CFLAGS="$save_CFLAGS"
michael@0 15519 # More AIX lossage: must compile with xlc_r or cc_r
michael@0 15520 if test x"$GCC" != xyes; then
michael@0 15521 for ac_prog in xlc_r cc_r
michael@0 15522 do
michael@0 15523 # Extract the first word of "$ac_prog", so it can be a program name with args.
michael@0 15524 set dummy $ac_prog; ac_word=$2
michael@0 15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 15526 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 15527 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
michael@0 15528 $as_echo_n "(cached) " >&6
michael@0 15529 else
michael@0 15530 if test -n "$PTHREAD_CC"; then
michael@0 15531 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
michael@0 15532 else
michael@0 15533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 15534 for as_dir in $PATH
michael@0 15535 do
michael@0 15536 IFS=$as_save_IFS
michael@0 15537 test -z "$as_dir" && as_dir=.
michael@0 15538 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 15539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 15540 ac_cv_prog_PTHREAD_CC="$ac_prog"
michael@0 15541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 15542 break 2
michael@0 15543 fi
michael@0 15544 done
michael@0 15545 done
michael@0 15546 IFS=$as_save_IFS
michael@0 15547
michael@0 15548 fi
michael@0 15549 fi
michael@0 15550 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
michael@0 15551 if test -n "$PTHREAD_CC"; then
michael@0 15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
michael@0 15553 $as_echo "$PTHREAD_CC" >&6; }
michael@0 15554 else
michael@0 15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 15556 $as_echo "no" >&6; }
michael@0 15557 fi
michael@0 15558
michael@0 15559
michael@0 15560 test -n "$PTHREAD_CC" && break
michael@0 15561 done
michael@0 15562 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
michael@0 15563
michael@0 15564 else
michael@0 15565 PTHREAD_CC=$CC
michael@0 15566 fi
michael@0 15567
michael@0 15568 # The next part tries to detect GCC inconsistency with -shared on some
michael@0 15569 # architectures and systems. The problem is that in certain
michael@0 15570 # configurations, when -shared is specified, GCC "forgets" to
michael@0 15571 # internally use various flags which are still necessary.
michael@0 15572
michael@0 15573 #
michael@0 15574 # Prepare the flags
michael@0 15575 #
michael@0 15576 save_CFLAGS="$CFLAGS"
michael@0 15577 save_LIBS="$LIBS"
michael@0 15578 save_CC="$CC"
michael@0 15579
michael@0 15580 # Try with the flags determined by the earlier checks.
michael@0 15581 #
michael@0 15582 # -Wl,-z,defs forces link-time symbol resolution, so that the
michael@0 15583 # linking checks with -shared actually have any value
michael@0 15584 #
michael@0 15585 # FIXME: -fPIC is required for -shared on many architectures,
michael@0 15586 # so we specify it here, but the right way would probably be to
michael@0 15587 # properly detect whether it is actually required.
michael@0 15588 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
michael@0 15589 LIBS="$PTHREAD_LIBS $LIBS"
michael@0 15590 CC="$PTHREAD_CC"
michael@0 15591
michael@0 15592 # In order not to create several levels of indentation, we test
michael@0 15593 # the value of "$done" until we find the cure or run out of ideas.
michael@0 15594 done="no"
michael@0 15595
michael@0 15596 # First, make sure the CFLAGS we added are actually accepted by our
michael@0 15597 # compiler. If not (and OS X's ld, for instance, does not accept -z),
michael@0 15598 # then we can't do this test.
michael@0 15599 if test x"$done" = xno; then
michael@0 15600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
michael@0 15601 $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
michael@0 15602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 15603 /* end confdefs.h. */
michael@0 15604
michael@0 15605 int
michael@0 15606 main ()
michael@0 15607 {
michael@0 15608
michael@0 15609 ;
michael@0 15610 return 0;
michael@0 15611 }
michael@0 15612 _ACEOF
michael@0 15613 if ac_fn_c_try_link "$LINENO"; then :
michael@0 15614
michael@0 15615 else
michael@0 15616 done=yes
michael@0 15617 fi
michael@0 15618 rm -f core conftest.err conftest.$ac_objext \
michael@0 15619 conftest$ac_exeext conftest.$ac_ext
michael@0 15620
michael@0 15621 if test "x$done" = xyes ; then
michael@0 15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 15623 $as_echo "no" >&6; }
michael@0 15624 else
michael@0 15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
michael@0 15626 $as_echo "yes" >&6; }
michael@0 15627 fi
michael@0 15628 fi
michael@0 15629
michael@0 15630 if test x"$done" = xno; then
michael@0 15631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
michael@0 15632 $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
michael@0 15633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 15634 /* end confdefs.h. */
michael@0 15635 #include <pthread.h>
michael@0 15636 int
michael@0 15637 main ()
michael@0 15638 {
michael@0 15639 pthread_t th; pthread_join(th, 0);
michael@0 15640 pthread_attr_init(0); pthread_cleanup_push(0, 0);
michael@0 15641 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
michael@0 15642 ;
michael@0 15643 return 0;
michael@0 15644 }
michael@0 15645 _ACEOF
michael@0 15646 if ac_fn_c_try_link "$LINENO"; then :
michael@0 15647 done=yes
michael@0 15648 fi
michael@0 15649 rm -f core conftest.err conftest.$ac_objext \
michael@0 15650 conftest$ac_exeext conftest.$ac_ext
michael@0 15651
michael@0 15652 if test "x$done" = xyes; then
michael@0 15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
michael@0 15654 $as_echo "yes" >&6; }
michael@0 15655 else
michael@0 15656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 15657 $as_echo "no" >&6; }
michael@0 15658 fi
michael@0 15659 fi
michael@0 15660
michael@0 15661 #
michael@0 15662 # Linux gcc on some architectures such as mips/mipsel forgets
michael@0 15663 # about -lpthread
michael@0 15664 #
michael@0 15665 if test x"$done" = xno; then
michael@0 15666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
michael@0 15667 $as_echo_n "checking whether -lpthread fixes that... " >&6; }
michael@0 15668 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
michael@0 15669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 15670 /* end confdefs.h. */
michael@0 15671 #include <pthread.h>
michael@0 15672 int
michael@0 15673 main ()
michael@0 15674 {
michael@0 15675 pthread_t th; pthread_join(th, 0);
michael@0 15676 pthread_attr_init(0); pthread_cleanup_push(0, 0);
michael@0 15677 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
michael@0 15678 ;
michael@0 15679 return 0;
michael@0 15680 }
michael@0 15681 _ACEOF
michael@0 15682 if ac_fn_c_try_link "$LINENO"; then :
michael@0 15683 done=yes
michael@0 15684 fi
michael@0 15685 rm -f core conftest.err conftest.$ac_objext \
michael@0 15686 conftest$ac_exeext conftest.$ac_ext
michael@0 15687
michael@0 15688 if test "x$done" = xyes; then
michael@0 15689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
michael@0 15690 $as_echo "yes" >&6; }
michael@0 15691 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
michael@0 15692 else
michael@0 15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 15694 $as_echo "no" >&6; }
michael@0 15695 fi
michael@0 15696 fi
michael@0 15697 #
michael@0 15698 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
michael@0 15699 #
michael@0 15700 if test x"$done" = xno; then
michael@0 15701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
michael@0 15702 $as_echo_n "checking whether -lc_r fixes that... " >&6; }
michael@0 15703 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
michael@0 15704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 15705 /* end confdefs.h. */
michael@0 15706 #include <pthread.h>
michael@0 15707 int
michael@0 15708 main ()
michael@0 15709 {
michael@0 15710 pthread_t th; pthread_join(th, 0);
michael@0 15711 pthread_attr_init(0); pthread_cleanup_push(0, 0);
michael@0 15712 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
michael@0 15713 ;
michael@0 15714 return 0;
michael@0 15715 }
michael@0 15716 _ACEOF
michael@0 15717 if ac_fn_c_try_link "$LINENO"; then :
michael@0 15718 done=yes
michael@0 15719 fi
michael@0 15720 rm -f core conftest.err conftest.$ac_objext \
michael@0 15721 conftest$ac_exeext conftest.$ac_ext
michael@0 15722
michael@0 15723 if test "x$done" = xyes; then
michael@0 15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
michael@0 15725 $as_echo "yes" >&6; }
michael@0 15726 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
michael@0 15727 else
michael@0 15728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 15729 $as_echo "no" >&6; }
michael@0 15730 fi
michael@0 15731 fi
michael@0 15732 if test x"$done" = xno; then
michael@0 15733 # OK, we have run out of ideas
michael@0 15734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
michael@0 15735 $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
michael@0 15736
michael@0 15737 # so it's not safe to assume that we may use pthreads
michael@0 15738 acx_pthread_ok=no
michael@0 15739 fi
michael@0 15740
michael@0 15741 CFLAGS="$save_CFLAGS"
michael@0 15742 LIBS="$save_LIBS"
michael@0 15743 CC="$save_CC"
michael@0 15744 else
michael@0 15745 PTHREAD_CC="$CC"
michael@0 15746 fi
michael@0 15747
michael@0 15748
michael@0 15749
michael@0 15750
michael@0 15751
michael@0 15752 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
michael@0 15753 if test x"$acx_pthread_ok" = xyes; then
michael@0 15754
michael@0 15755 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
michael@0 15756
michael@0 15757 :
michael@0 15758 else
michael@0 15759 acx_pthread_ok=no
michael@0 15760
michael@0 15761 fi
michael@0 15762 ac_ext=cpp
michael@0 15763 ac_cpp='$CXXCPP $CPPFLAGS'
michael@0 15764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
michael@0 15765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
michael@0 15766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
michael@0 15767
michael@0 15768
michael@0 15769 if test x"$acx_pthread_ok" = x"yes"; then
michael@0 15770 # To make libglog depend on libpthread on Linux, we need to add
michael@0 15771 # -lpthread in addition to -pthread.
michael@0 15772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
michael@0 15773 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
michael@0 15774 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
michael@0 15775 $as_echo_n "(cached) " >&6
michael@0 15776 else
michael@0 15777 ac_check_lib_save_LIBS=$LIBS
michael@0 15778 LIBS="-lpthread $LIBS"
michael@0 15779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 15780 /* end confdefs.h. */
michael@0 15781
michael@0 15782 /* Override any GCC internal prototype to avoid an error.
michael@0 15783 Use char because int might match the return type of a GCC
michael@0 15784 builtin and then its argument prototype would still apply. */
michael@0 15785 #ifdef __cplusplus
michael@0 15786 extern "C"
michael@0 15787 #endif
michael@0 15788 char pthread_self ();
michael@0 15789 int
michael@0 15790 main ()
michael@0 15791 {
michael@0 15792 return pthread_self ();
michael@0 15793 ;
michael@0 15794 return 0;
michael@0 15795 }
michael@0 15796 _ACEOF
michael@0 15797 if ac_fn_cxx_try_link "$LINENO"; then :
michael@0 15798 ac_cv_lib_pthread_pthread_self=yes
michael@0 15799 else
michael@0 15800 ac_cv_lib_pthread_pthread_self=no
michael@0 15801 fi
michael@0 15802 rm -f core conftest.err conftest.$ac_objext \
michael@0 15803 conftest$ac_exeext conftest.$ac_ext
michael@0 15804 LIBS=$ac_check_lib_save_LIBS
michael@0 15805 fi
michael@0 15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
michael@0 15807 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
michael@0 15808 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
michael@0 15809 cat >>confdefs.h <<_ACEOF
michael@0 15810 #define HAVE_LIBPTHREAD 1
michael@0 15811 _ACEOF
michael@0 15812
michael@0 15813 LIBS="-lpthread $LIBS"
michael@0 15814
michael@0 15815 fi
michael@0 15816
michael@0 15817 fi
michael@0 15818
michael@0 15819 # Check if there is google-gflags library installed.
michael@0 15820 SAVE_CFLAGS="$CFLAGS"
michael@0 15821 SAVE_LIBS="$LIBS"
michael@0 15822
michael@0 15823 # Check whether --with-gflags was given.
michael@0 15824 if test "${with_gflags+set}" = set; then :
michael@0 15825 withval=$with_gflags; GFLAGS_CFLAGS="-I${with_gflags}/include"
michael@0 15826 GFLAGS_LIBS="-L${with_gflags}/lib -lgflags"
michael@0 15827 CFLAGS="$CFLAGS $GFLAGS_CFLAGS"
michael@0 15828 LIBS="$LIBS $GFLAGS_LIBS"
michael@0 15829
michael@0 15830 fi
michael@0 15831
michael@0 15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgflags" >&5
michael@0 15833 $as_echo_n "checking for main in -lgflags... " >&6; }
michael@0 15834 if test "${ac_cv_lib_gflags_main+set}" = set; then :
michael@0 15835 $as_echo_n "(cached) " >&6
michael@0 15836 else
michael@0 15837 ac_check_lib_save_LIBS=$LIBS
michael@0 15838 LIBS="-lgflags $LIBS"
michael@0 15839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 15840 /* end confdefs.h. */
michael@0 15841
michael@0 15842
michael@0 15843 int
michael@0 15844 main ()
michael@0 15845 {
michael@0 15846 return main ();
michael@0 15847 ;
michael@0 15848 return 0;
michael@0 15849 }
michael@0 15850 _ACEOF
michael@0 15851 if ac_fn_cxx_try_link "$LINENO"; then :
michael@0 15852 ac_cv_lib_gflags_main=yes
michael@0 15853 else
michael@0 15854 ac_cv_lib_gflags_main=no
michael@0 15855 fi
michael@0 15856 rm -f core conftest.err conftest.$ac_objext \
michael@0 15857 conftest$ac_exeext conftest.$ac_ext
michael@0 15858 LIBS=$ac_check_lib_save_LIBS
michael@0 15859 fi
michael@0 15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gflags_main" >&5
michael@0 15861 $as_echo "$ac_cv_lib_gflags_main" >&6; }
michael@0 15862 if test "x$ac_cv_lib_gflags_main" = x""yes; then :
michael@0 15863 ac_cv_have_libgflags=1
michael@0 15864 else
michael@0 15865 ac_cv_have_libgflags=0
michael@0 15866 fi
michael@0 15867
michael@0 15868 if test x"$ac_cv_have_libgflags" = x"1"; then
michael@0 15869
michael@0 15870 $as_echo "#define HAVE_LIB_GFLAGS 1" >>confdefs.h
michael@0 15871
michael@0 15872 if test x"$GFLAGS_LIBS" = x""; then
michael@0 15873 GFLAGS_LIBS="-lgflags"
michael@0 15874 fi
michael@0 15875 else
michael@0 15876 GFLAGS_CFLAGS=
michael@0 15877 GFLAGS_LIBS=
michael@0 15878 fi
michael@0 15879 CFLAGS="$SAVE_CFLAGS"
michael@0 15880 LIBS="$SAVE_LIBS"
michael@0 15881
michael@0 15882 # TODO(hamaji): Use official m4 macros provided by testing libraries
michael@0 15883 # once the m4 macro of Google Mocking becomes ready.
michael@0 15884 # Check if there is Google Test library installed.
michael@0 15885 # Extract the first word of "gtest-config", so it can be a program name with args.
michael@0 15886 set dummy gtest-config; ac_word=$2
michael@0 15887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 15888 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 15889 if test "${ac_cv_prog_GTEST_CONFIG+set}" = set; then :
michael@0 15890 $as_echo_n "(cached) " >&6
michael@0 15891 else
michael@0 15892 if test -n "$GTEST_CONFIG"; then
michael@0 15893 ac_cv_prog_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test.
michael@0 15894 else
michael@0 15895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 15896 for as_dir in $PATH
michael@0 15897 do
michael@0 15898 IFS=$as_save_IFS
michael@0 15899 test -z "$as_dir" && as_dir=.
michael@0 15900 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 15901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 15902 ac_cv_prog_GTEST_CONFIG=""yes""
michael@0 15903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 15904 break 2
michael@0 15905 fi
michael@0 15906 done
michael@0 15907 done
michael@0 15908 IFS=$as_save_IFS
michael@0 15909
michael@0 15910 fi
michael@0 15911 fi
michael@0 15912 GTEST_CONFIG=$ac_cv_prog_GTEST_CONFIG
michael@0 15913 if test -n "$GTEST_CONFIG"; then
michael@0 15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
michael@0 15915 $as_echo "$GTEST_CONFIG" >&6; }
michael@0 15916 else
michael@0 15917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 15918 $as_echo "no" >&6; }
michael@0 15919 fi
michael@0 15920
michael@0 15921
michael@0 15922 if test x"$GTEST_CONFIG" = "xyes"; then
michael@0 15923 GTEST_CFLAGS=`gtest-config --cppflags --cxxflags`
michael@0 15924 GTEST_LIBS=`gtest-config --ldflags --libs`
michael@0 15925
michael@0 15926 $as_echo "#define HAVE_LIB_GTEST 1" >>confdefs.h
michael@0 15927
michael@0 15928
michael@0 15929 # Check if there is Google Mocking library installed.
michael@0 15930 # Extract the first word of "gmock-config", so it can be a program name with args.
michael@0 15931 set dummy gmock-config; ac_word=$2
michael@0 15932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
michael@0 15933 $as_echo_n "checking for $ac_word... " >&6; }
michael@0 15934 if test "${ac_cv_prog_GMOCK_CONFIG+set}" = set; then :
michael@0 15935 $as_echo_n "(cached) " >&6
michael@0 15936 else
michael@0 15937 if test -n "$GMOCK_CONFIG"; then
michael@0 15938 ac_cv_prog_GMOCK_CONFIG="$GMOCK_CONFIG" # Let the user override the test.
michael@0 15939 else
michael@0 15940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 15941 for as_dir in $PATH
michael@0 15942 do
michael@0 15943 IFS=$as_save_IFS
michael@0 15944 test -z "$as_dir" && as_dir=.
michael@0 15945 for ac_exec_ext in '' $ac_executable_extensions; do
michael@0 15946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
michael@0 15947 ac_cv_prog_GMOCK_CONFIG=""yes""
michael@0 15948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
michael@0 15949 break 2
michael@0 15950 fi
michael@0 15951 done
michael@0 15952 done
michael@0 15953 IFS=$as_save_IFS
michael@0 15954
michael@0 15955 fi
michael@0 15956 fi
michael@0 15957 GMOCK_CONFIG=$ac_cv_prog_GMOCK_CONFIG
michael@0 15958 if test -n "$GMOCK_CONFIG"; then
michael@0 15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMOCK_CONFIG" >&5
michael@0 15960 $as_echo "$GMOCK_CONFIG" >&6; }
michael@0 15961 else
michael@0 15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
michael@0 15963 $as_echo "no" >&6; }
michael@0 15964 fi
michael@0 15965
michael@0 15966
michael@0 15967 if test x"$GMOCK_CONFIG" = "xyes"; then
michael@0 15968 GMOCK_CFLAGS=`gmock-config --cppflags --cxxflags`
michael@0 15969 GMOCK_LIBS=`gmock-config --ldflags --libs`
michael@0 15970
michael@0 15971 $as_echo "#define HAVE_LIB_GMOCK 1" >>confdefs.h
michael@0 15972
michael@0 15973 else
michael@0 15974 # We don't run test cases which use Google Mocking framework.
michael@0 15975 GMOCK_CFLAGS=
michael@0 15976 GMOCK_LIBS=
michael@0 15977 fi
michael@0 15978 else
michael@0 15979 # We'll use src/googletest.h for our unittests.
michael@0 15980 GTEST_CFLAGS=
michael@0 15981 GTEST_LIBS=
michael@0 15982 fi
michael@0 15983 if test x"$GMOCK_CONFIG" = "xyes"; then
michael@0 15984 HAVE_GMOCK_TRUE=
michael@0 15985 HAVE_GMOCK_FALSE='#'
michael@0 15986 else
michael@0 15987 HAVE_GMOCK_TRUE='#'
michael@0 15988 HAVE_GMOCK_FALSE=
michael@0 15989 fi
michael@0 15990
michael@0 15991
michael@0 15992 # We want to link in libunwind if it exists
michael@0 15993 UNWIND_LIBS=
michael@0 15994 # Unfortunately, we need to check the header file in addition to the
michael@0 15995 # lib file to check if libunwind is available since libunwind-0.98
michael@0 15996 # doesn't install all necessary header files.
michael@0 15997 if test x"$ac_cv_have_libunwind_h" = x"1"; then
michael@0 15998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5
michael@0 15999 $as_echo_n "checking for backtrace in -lunwind... " >&6; }
michael@0 16000 if test "${ac_cv_lib_unwind_backtrace+set}" = set; then :
michael@0 16001 $as_echo_n "(cached) " >&6
michael@0 16002 else
michael@0 16003 ac_check_lib_save_LIBS=$LIBS
michael@0 16004 LIBS="-lunwind $LIBS"
michael@0 16005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 16006 /* end confdefs.h. */
michael@0 16007
michael@0 16008 /* Override any GCC internal prototype to avoid an error.
michael@0 16009 Use char because int might match the return type of a GCC
michael@0 16010 builtin and then its argument prototype would still apply. */
michael@0 16011 #ifdef __cplusplus
michael@0 16012 extern "C"
michael@0 16013 #endif
michael@0 16014 char backtrace ();
michael@0 16015 int
michael@0 16016 main ()
michael@0 16017 {
michael@0 16018 return backtrace ();
michael@0 16019 ;
michael@0 16020 return 0;
michael@0 16021 }
michael@0 16022 _ACEOF
michael@0 16023 if ac_fn_cxx_try_link "$LINENO"; then :
michael@0 16024 ac_cv_lib_unwind_backtrace=yes
michael@0 16025 else
michael@0 16026 ac_cv_lib_unwind_backtrace=no
michael@0 16027 fi
michael@0 16028 rm -f core conftest.err conftest.$ac_objext \
michael@0 16029 conftest$ac_exeext conftest.$ac_ext
michael@0 16030 LIBS=$ac_check_lib_save_LIBS
michael@0 16031 fi
michael@0 16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5
michael@0 16033 $as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
michael@0 16034 if test "x$ac_cv_lib_unwind_backtrace" = x""yes; then :
michael@0 16035 UNWIND_LIBS=-lunwind
michael@0 16036 fi
michael@0 16037
michael@0 16038 fi
michael@0 16039
michael@0 16040 if test x"$UNWIND_LIBS" != x""; then
michael@0 16041
michael@0 16042 $as_echo "#define HAVE_LIB_UNWIND 1" >>confdefs.h
michael@0 16043
michael@0 16044 fi
michael@0 16045
michael@0 16046 # We'd like to use read/write locks in several places in the code.
michael@0 16047 # See if our pthreads support extends to that. Note: for linux, it
michael@0 16048 # does as long as you define _XOPEN_SOURCE appropriately.
michael@0 16049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for pthread_rwlock_* functions" >&5
michael@0 16050 $as_echo_n "checking support for pthread_rwlock_* functions... " >&6; }
michael@0 16051 if test "${ac_cv_rwlock+set}" = set; then :
michael@0 16052 $as_echo_n "(cached) " >&6
michael@0 16053 else
michael@0 16054
michael@0 16055 ac_ext=c
michael@0 16056 ac_cpp='$CPP $CPPFLAGS'
michael@0 16057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
michael@0 16058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
michael@0 16059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
michael@0 16060
michael@0 16061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 16062 /* end confdefs.h. */
michael@0 16063 #define _XOPEN_SOURCE 500
michael@0 16064 #include <pthread.h>
michael@0 16065 int
michael@0 16066 main ()
michael@0 16067 {
michael@0 16068 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
michael@0 16069 pthread_rwlock_rdlock(&l);
michael@0 16070 return 0;
michael@0 16071 ;
michael@0 16072 return 0;
michael@0 16073 }
michael@0 16074 _ACEOF
michael@0 16075 if ac_fn_c_try_compile "$LINENO"; then :
michael@0 16076 ac_cv_rwlock=yes
michael@0 16077 else
michael@0 16078 ac_cv_rwlock=no
michael@0 16079 fi
michael@0 16080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 16081 ac_ext=cpp
michael@0 16082 ac_cpp='$CXXCPP $CPPFLAGS'
michael@0 16083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
michael@0 16084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
michael@0 16085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
michael@0 16086
michael@0 16087
michael@0 16088 fi
michael@0 16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rwlock" >&5
michael@0 16090 $as_echo "$ac_cv_rwlock" >&6; }
michael@0 16091 if test "$ac_cv_rwlock" = yes; then
michael@0 16092
michael@0 16093 $as_echo "#define HAVE_RWLOCK 1" >>confdefs.h
michael@0 16094
michael@0 16095 fi
michael@0 16096
michael@0 16097
michael@0 16098 # Find out what namespace 'normal' STL code lives in, and also what namespace
michael@0 16099 # the user wants our classes to be defined in
michael@0 16100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
michael@0 16101 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
michael@0 16102 if test "${ac_cv_cxx_namespaces+set}" = set; then :
michael@0 16103 $as_echo_n "(cached) " >&6
michael@0 16104 else
michael@0 16105
michael@0 16106 ac_ext=cpp
michael@0 16107 ac_cpp='$CXXCPP $CPPFLAGS'
michael@0 16108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
michael@0 16109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
michael@0 16110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
michael@0 16111
michael@0 16112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 16113 /* end confdefs.h. */
michael@0 16114 namespace Outer {
michael@0 16115 namespace Inner { int i = 0; }}
michael@0 16116 int
michael@0 16117 main ()
michael@0 16118 {
michael@0 16119 using namespace Outer::Inner; return i;
michael@0 16120 ;
michael@0 16121 return 0;
michael@0 16122 }
michael@0 16123 _ACEOF
michael@0 16124 if ac_fn_cxx_try_compile "$LINENO"; then :
michael@0 16125 ac_cv_cxx_namespaces=yes
michael@0 16126 else
michael@0 16127 ac_cv_cxx_namespaces=no
michael@0 16128 fi
michael@0 16129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 16130 ac_ext=cpp
michael@0 16131 ac_cpp='$CXXCPP $CPPFLAGS'
michael@0 16132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
michael@0 16133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
michael@0 16134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
michael@0 16135
michael@0 16136 fi
michael@0 16137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
michael@0 16138 $as_echo "$ac_cv_cxx_namespaces" >&6; }
michael@0 16139 if test "$ac_cv_cxx_namespaces" = yes; then
michael@0 16140
michael@0 16141 $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
michael@0 16142
michael@0 16143 fi
michael@0 16144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what namespace STL code is in" >&5
michael@0 16145 $as_echo_n "checking what namespace STL code is in... " >&6; }
michael@0 16146 if test "${ac_cv_cxx_stl_namespace+set}" = set; then :
michael@0 16147 $as_echo_n "(cached) " >&6
michael@0 16148 else
michael@0 16149
michael@0 16150
michael@0 16151 ac_ext=cpp
michael@0 16152 ac_cpp='$CXXCPP $CPPFLAGS'
michael@0 16153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
michael@0 16154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
michael@0 16155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
michael@0 16156
michael@0 16157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 16158 /* end confdefs.h. */
michael@0 16159 #include <vector>
michael@0 16160 int
michael@0 16161 main ()
michael@0 16162 {
michael@0 16163 vector<int> t; return 0;
michael@0 16164 ;
michael@0 16165 return 0;
michael@0 16166 }
michael@0 16167 _ACEOF
michael@0 16168 if ac_fn_cxx_try_compile "$LINENO"; then :
michael@0 16169 ac_cv_cxx_stl_namespace=none
michael@0 16170 fi
michael@0 16171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 16172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 16173 /* end confdefs.h. */
michael@0 16174 #include <vector>
michael@0 16175 int
michael@0 16176 main ()
michael@0 16177 {
michael@0 16178 std::vector<int> t; return 0;
michael@0 16179 ;
michael@0 16180 return 0;
michael@0 16181 }
michael@0 16182 _ACEOF
michael@0 16183 if ac_fn_cxx_try_compile "$LINENO"; then :
michael@0 16184 ac_cv_cxx_stl_namespace=std
michael@0 16185 fi
michael@0 16186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 16187 ac_ext=cpp
michael@0 16188 ac_cpp='$CXXCPP $CPPFLAGS'
michael@0 16189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
michael@0 16190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
michael@0 16191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
michael@0 16192
michael@0 16193 fi
michael@0 16194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_stl_namespace" >&5
michael@0 16195 $as_echo "$ac_cv_cxx_stl_namespace" >&6; }
michael@0 16196 if test "$ac_cv_cxx_stl_namespace" = none; then
michael@0 16197
michael@0 16198 $as_echo "#define STL_NAMESPACE /**/" >>confdefs.h
michael@0 16199
michael@0 16200 fi
michael@0 16201 if test "$ac_cv_cxx_stl_namespace" = std; then
michael@0 16202
michael@0 16203 $as_echo "#define STL_NAMESPACE std" >>confdefs.h
michael@0 16204
michael@0 16205 fi
michael@0 16206
michael@0 16207 google_namespace_default=google
michael@0 16208 # Check whether --enable-namespace was given.
michael@0 16209 if test "${enable_namespace+set}" = set; then :
michael@0 16210 enableval=$enable_namespace; case "$enableval" in
michael@0 16211 yes) google_namespace="$google_namespace_default" ;;
michael@0 16212 no) google_namespace="" ;;
michael@0 16213 *) google_namespace="$enableval" ;;
michael@0 16214 esac
michael@0 16215 else
michael@0 16216 google_namespace="$google_namespace_default"
michael@0 16217 fi
michael@0 16218
michael@0 16219 if test -n "$google_namespace"; then
michael@0 16220 ac_google_namespace="$google_namespace"
michael@0 16221 ac_google_start_namespace="namespace $google_namespace {"
michael@0 16222 ac_google_end_namespace="}"
michael@0 16223 else
michael@0 16224 ac_google_namespace=""
michael@0 16225 ac_google_start_namespace=""
michael@0 16226 ac_google_end_namespace=""
michael@0 16227 fi
michael@0 16228
michael@0 16229 cat >>confdefs.h <<_ACEOF
michael@0 16230 #define GOOGLE_NAMESPACE $ac_google_namespace
michael@0 16231 _ACEOF
michael@0 16232
michael@0 16233
michael@0 16234 cat >>confdefs.h <<_ACEOF
michael@0 16235 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
michael@0 16236 _ACEOF
michael@0 16237
michael@0 16238
michael@0 16239 cat >>confdefs.h <<_ACEOF
michael@0 16240 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
michael@0 16241 _ACEOF
michael@0 16242
michael@0 16243
michael@0 16244
michael@0 16245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports using ::operator<<" >&5
michael@0 16246 $as_echo_n "checking whether compiler supports using ::operator<<... " >&6; }
michael@0 16247 if test "${ac_cv_cxx_using_operator+set}" = set; then :
michael@0 16248 $as_echo_n "(cached) " >&6
michael@0 16249 else
michael@0 16250
michael@0 16251 ac_ext=cpp
michael@0 16252 ac_cpp='$CXXCPP $CPPFLAGS'
michael@0 16253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
michael@0 16254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
michael@0 16255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
michael@0 16256
michael@0 16257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 16258 /* end confdefs.h. */
michael@0 16259 #include <iostream>
michael@0 16260 std::ostream& operator<<(std::ostream&, struct s);
michael@0 16261 int
michael@0 16262 main ()
michael@0 16263 {
michael@0 16264 using ::operator<<; return 0;
michael@0 16265 ;
michael@0 16266 return 0;
michael@0 16267 }
michael@0 16268 _ACEOF
michael@0 16269 if ac_fn_cxx_try_compile "$LINENO"; then :
michael@0 16270 ac_cv_cxx_using_operator=1
michael@0 16271 else
michael@0 16272 ac_cv_cxx_using_operator=0
michael@0 16273 fi
michael@0 16274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 16275 ac_ext=cpp
michael@0 16276 ac_cpp='$CXXCPP $CPPFLAGS'
michael@0 16277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
michael@0 16278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
michael@0 16279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
michael@0 16280
michael@0 16281 fi
michael@0 16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_using_operator" >&5
michael@0 16283 $as_echo "$ac_cv_cxx_using_operator" >&6; }
michael@0 16284 if test "$ac_cv_cxx_using_operator" = 1; then
michael@0 16285
michael@0 16286 $as_echo "#define HAVE_USING_OPERATOR 1" >>confdefs.h
michael@0 16287
michael@0 16288 fi
michael@0 16289
michael@0 16290 for ac_header in ucontext.h
michael@0 16291 do :
michael@0 16292 ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
michael@0 16293 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
michael@0 16294 cat >>confdefs.h <<_ACEOF
michael@0 16295 #define HAVE_UCONTEXT_H 1
michael@0 16296 _ACEOF
michael@0 16297
michael@0 16298 fi
michael@0 16299
michael@0 16300 done
michael@0 16301
michael@0 16302 for ac_header in sys/ucontext.h
michael@0 16303 do :
michael@0 16304 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "$ac_includes_default"
michael@0 16305 if test "x$ac_cv_header_sys_ucontext_h" = x""yes; then :
michael@0 16306 cat >>confdefs.h <<_ACEOF
michael@0 16307 #define HAVE_SYS_UCONTEXT_H 1
michael@0 16308 _ACEOF
michael@0 16309
michael@0 16310 fi
michael@0 16311
michael@0 16312 done
michael@0 16313 # ucontext on OS X 10.6 (at least)
michael@0 16314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to access the program counter from a struct ucontext" >&5
michael@0 16315 $as_echo_n "checking how to access the program counter from a struct ucontext... " >&6; }
michael@0 16316 pc_fields=" uc_mcontext.gregs[REG_PC]" # Solaris x86 (32 + 64 bit)
michael@0 16317 pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
michael@0 16318 pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
michael@0 16319 pc_fields="$pc_fields uc_mcontext.sc_ip" # Linux (ia64)
michael@0 16320 pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
michael@0 16321 pc_fields="$pc_fields uc_mcontext.gregs[R15]" # Linux (arm old [untested])
michael@0 16322 pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm new [untested])
michael@0 16323 pc_fields="$pc_fields uc_mcontext.mc_eip" # FreeBSD (i386)
michael@0 16324 pc_fields="$pc_fields uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested])
michael@0 16325 pc_fields="$pc_fields uc_mcontext.__gregs[_REG_EIP]" # NetBSD (i386)
michael@0 16326 pc_fields="$pc_fields uc_mcontext.__gregs[_REG_RIP]" # NetBSD (x86_64)
michael@0 16327 pc_fields="$pc_fields uc_mcontext->ss.eip" # OS X (i386, <=10.4)
michael@0 16328 pc_fields="$pc_fields uc_mcontext->__ss.__eip" # OS X (i386, >=10.5)
michael@0 16329 pc_fields="$pc_fields uc_mcontext->ss.rip" # OS X (x86_64)
michael@0 16330 pc_fields="$pc_fields uc_mcontext->__ss.__rip" # OS X (>=10.5 [untested])
michael@0 16331 pc_fields="$pc_fields uc_mcontext->ss.srr0" # OS X (ppc, ppc64 [untested])
michael@0 16332 pc_fields="$pc_fields uc_mcontext->__ss.__srr0" # OS X (>=10.5 [untested])
michael@0 16333 pc_field_found=false
michael@0 16334 for pc_field in $pc_fields; do
michael@0 16335 if ! $pc_field_found; then
michael@0 16336 if test "x$ac_cv_header_sys_ucontext_h" = xyes; then
michael@0 16337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 16338 /* end confdefs.h. */
michael@0 16339 #define _GNU_SOURCE 1
michael@0 16340 #include <sys/ucontext.h>
michael@0 16341 int
michael@0 16342 main ()
michael@0 16343 {
michael@0 16344 ucontext_t u; return u.$pc_field == 0;
michael@0 16345 ;
michael@0 16346 return 0;
michael@0 16347 }
michael@0 16348 _ACEOF
michael@0 16349 if ac_fn_cxx_try_compile "$LINENO"; then :
michael@0 16350
michael@0 16351 cat >>confdefs.h <<_ACEOF
michael@0 16352 #define PC_FROM_UCONTEXT $pc_field
michael@0 16353 _ACEOF
michael@0 16354
michael@0 16355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
michael@0 16356 $as_echo "$pc_field" >&6; }
michael@0 16357 pc_field_found=true
michael@0 16358 fi
michael@0 16359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 16360 else
michael@0 16361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 16362 /* end confdefs.h. */
michael@0 16363 #define _GNU_SOURCE 1
michael@0 16364 #include <ucontext.h>
michael@0 16365 int
michael@0 16366 main ()
michael@0 16367 {
michael@0 16368 ucontext_t u; return u.$pc_field == 0;
michael@0 16369 ;
michael@0 16370 return 0;
michael@0 16371 }
michael@0 16372 _ACEOF
michael@0 16373 if ac_fn_cxx_try_compile "$LINENO"; then :
michael@0 16374
michael@0 16375 cat >>confdefs.h <<_ACEOF
michael@0 16376 #define PC_FROM_UCONTEXT $pc_field
michael@0 16377 _ACEOF
michael@0 16378
michael@0 16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
michael@0 16380 $as_echo "$pc_field" >&6; }
michael@0 16381 pc_field_found=true
michael@0 16382 fi
michael@0 16383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 16384 fi
michael@0 16385 fi
michael@0 16386 done
michael@0 16387 if ! $pc_field_found; then
michael@0 16388 pc_fields=" sc_eip" # OpenBSD (i386)
michael@0 16389 pc_fields="$pc_fields sc_rip" # OpenBSD (x86_64)
michael@0 16390 for pc_field in $pc_fields; do
michael@0 16391 if ! $pc_field_found; then
michael@0 16392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
michael@0 16393 /* end confdefs.h. */
michael@0 16394 #include <signal.h>
michael@0 16395 int
michael@0 16396 main ()
michael@0 16397 {
michael@0 16398 ucontext_t u; return u.$pc_field == 0;
michael@0 16399 ;
michael@0 16400 return 0;
michael@0 16401 }
michael@0 16402 _ACEOF
michael@0 16403 if ac_fn_cxx_try_compile "$LINENO"; then :
michael@0 16404
michael@0 16405 cat >>confdefs.h <<_ACEOF
michael@0 16406 #define PC_FROM_UCONTEXT $pc_field
michael@0 16407 _ACEOF
michael@0 16408
michael@0 16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
michael@0 16410 $as_echo "$pc_field" >&6; }
michael@0 16411 pc_field_found=true
michael@0 16412 fi
michael@0 16413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
michael@0 16414 fi
michael@0 16415 done
michael@0 16416 fi
michael@0 16417 if ! $pc_field_found; then
michael@0 16418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the PC. Will not output failed addresses..." >&5
michael@0 16419 $as_echo "$as_me: WARNING: Could not find the PC. Will not output failed addresses..." >&2;}
michael@0 16420 fi
michael@0 16421
michael@0 16422
michael@0 16423 cat >>confdefs.h <<_ACEOF
michael@0 16424 #define TEST_SRC_DIR "$srcdir"
michael@0 16425 _ACEOF
michael@0 16426
michael@0 16427
michael@0 16428 # These are what's needed by logging.h.in and raw_logging.h.in
michael@0 16429
michael@0 16430
michael@0 16431
michael@0 16432
michael@0 16433
michael@0 16434
michael@0 16435
michael@0 16436
michael@0 16437
michael@0 16438
michael@0 16439
michael@0 16440
michael@0 16441
michael@0 16442
michael@0 16443
michael@0 16444
michael@0 16445
michael@0 16446
michael@0 16447
michael@0 16448
michael@0 16449
michael@0 16450
michael@0 16451 # Write generated configuration file
michael@0 16452 ac_config_files="$ac_config_files Makefile src/glog/logging.h src/glog/raw_logging.h src/glog/vlog_is_on.h src/glog/stl_logging.h"
michael@0 16453
michael@0 16454 ac_config_files="$ac_config_files libglog.pc"
michael@0 16455
michael@0 16456 cat >confcache <<\_ACEOF
michael@0 16457 # This file is a shell script that caches the results of configure
michael@0 16458 # tests run on this system so they can be shared between configure
michael@0 16459 # scripts and configure runs, see configure's option --config-cache.
michael@0 16460 # It is not useful on other systems. If it contains results you don't
michael@0 16461 # want to keep, you may remove or edit it.
michael@0 16462 #
michael@0 16463 # config.status only pays attention to the cache file if you give it
michael@0 16464 # the --recheck option to rerun configure.
michael@0 16465 #
michael@0 16466 # `ac_cv_env_foo' variables (set or unset) will be overridden when
michael@0 16467 # loading this file, other *unset* `ac_cv_foo' will be assigned the
michael@0 16468 # following values.
michael@0 16469
michael@0 16470 _ACEOF
michael@0 16471
michael@0 16472 # The following way of writing the cache mishandles newlines in values,
michael@0 16473 # but we know of no workaround that is simple, portable, and efficient.
michael@0 16474 # So, we kill variables containing newlines.
michael@0 16475 # Ultrix sh set writes to stderr and can't be redirected directly,
michael@0 16476 # and sets the high bit in the cache file unless we assign to the vars.
michael@0 16477 (
michael@0 16478 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
michael@0 16479 eval ac_val=\$$ac_var
michael@0 16480 case $ac_val in #(
michael@0 16481 *${as_nl}*)
michael@0 16482 case $ac_var in #(
michael@0 16483 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
michael@0 16484 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
michael@0 16485 esac
michael@0 16486 case $ac_var in #(
michael@0 16487 _ | IFS | as_nl) ;; #(
michael@0 16488 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
michael@0 16489 *) { eval $ac_var=; unset $ac_var;} ;;
michael@0 16490 esac ;;
michael@0 16491 esac
michael@0 16492 done
michael@0 16493
michael@0 16494 (set) 2>&1 |
michael@0 16495 case $as_nl`(ac_space=' '; set) 2>&1` in #(
michael@0 16496 *${as_nl}ac_space=\ *)
michael@0 16497 # `set' does not quote correctly, so add quotes: double-quote
michael@0 16498 # substitution turns \\\\ into \\, and sed turns \\ into \.
michael@0 16499 sed -n \
michael@0 16500 "s/'/'\\\\''/g;
michael@0 16501 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
michael@0 16502 ;; #(
michael@0 16503 *)
michael@0 16504 # `set' quotes correctly as required by POSIX, so do not add quotes.
michael@0 16505 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
michael@0 16506 ;;
michael@0 16507 esac |
michael@0 16508 sort
michael@0 16509 ) |
michael@0 16510 sed '
michael@0 16511 /^ac_cv_env_/b end
michael@0 16512 t clear
michael@0 16513 :clear
michael@0 16514 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
michael@0 16515 t end
michael@0 16516 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
michael@0 16517 :end' >>confcache
michael@0 16518 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
michael@0 16519 if test -w "$cache_file"; then
michael@0 16520 test "x$cache_file" != "x/dev/null" &&
michael@0 16521 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
michael@0 16522 $as_echo "$as_me: updating cache $cache_file" >&6;}
michael@0 16523 cat confcache >$cache_file
michael@0 16524 else
michael@0 16525 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
michael@0 16526 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
michael@0 16527 fi
michael@0 16528 fi
michael@0 16529 rm -f confcache
michael@0 16530
michael@0 16531 test "x$prefix" = xNONE && prefix=$ac_default_prefix
michael@0 16532 # Let make expand exec_prefix.
michael@0 16533 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
michael@0 16534
michael@0 16535 DEFS=-DHAVE_CONFIG_H
michael@0 16536
michael@0 16537 ac_libobjs=
michael@0 16538 ac_ltlibobjs=
michael@0 16539 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
michael@0 16540 # 1. Remove the extension, and $U if already installed.
michael@0 16541 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
michael@0 16542 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
michael@0 16543 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
michael@0 16544 # will be set to the directory where LIBOBJS objects are built.
michael@0 16545 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
michael@0 16546 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
michael@0 16547 done
michael@0 16548 LIBOBJS=$ac_libobjs
michael@0 16549
michael@0 16550 LTLIBOBJS=$ac_ltlibobjs
michael@0 16551
michael@0 16552
michael@0 16553 if test -n "$EXEEXT"; then
michael@0 16554 am__EXEEXT_TRUE=
michael@0 16555 am__EXEEXT_FALSE='#'
michael@0 16556 else
michael@0 16557 am__EXEEXT_TRUE='#'
michael@0 16558 am__EXEEXT_FALSE=
michael@0 16559 fi
michael@0 16560
michael@0 16561 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
michael@0 16562 as_fn_error "conditional \"AMDEP\" was never defined.
michael@0 16563 Usually this means the macro was only invoked conditionally." "$LINENO" 5
michael@0 16564 fi
michael@0 16565 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
michael@0 16566 as_fn_error "conditional \"am__fastdepCC\" was never defined.
michael@0 16567 Usually this means the macro was only invoked conditionally." "$LINENO" 5
michael@0 16568 fi
michael@0 16569 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
michael@0 16570 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
michael@0 16571 Usually this means the macro was only invoked conditionally." "$LINENO" 5
michael@0 16572 fi
michael@0 16573 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
michael@0 16574 as_fn_error "conditional \"GCC\" was never defined.
michael@0 16575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
michael@0 16576 fi
michael@0 16577 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
michael@0 16578 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
michael@0 16579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
michael@0 16580 fi
michael@0 16581 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
michael@0 16582 as_fn_error "conditional \"ENABLE_FRAME_POINTERS\" was never defined.
michael@0 16583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
michael@0 16584 fi
michael@0 16585 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
michael@0 16586 as_fn_error "conditional \"X86_64\" was never defined.
michael@0 16587 Usually this means the macro was only invoked conditionally." "$LINENO" 5
michael@0 16588 fi
michael@0 16589 if test -z "${HAVE_GMOCK_TRUE}" && test -z "${HAVE_GMOCK_FALSE}"; then
michael@0 16590 as_fn_error "conditional \"HAVE_GMOCK\" was never defined.
michael@0 16591 Usually this means the macro was only invoked conditionally." "$LINENO" 5
michael@0 16592 fi
michael@0 16593
michael@0 16594 : ${CONFIG_STATUS=./config.status}
michael@0 16595 ac_write_fail=0
michael@0 16596 ac_clean_files_save=$ac_clean_files
michael@0 16597 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
michael@0 16598 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
michael@0 16599 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
michael@0 16600 as_write_fail=0
michael@0 16601 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
michael@0 16602 #! $SHELL
michael@0 16603 # Generated by $as_me.
michael@0 16604 # Run this file to recreate the current configuration.
michael@0 16605 # Compiler output produced by configure, useful for debugging
michael@0 16606 # configure, is in config.log if it exists.
michael@0 16607
michael@0 16608 debug=false
michael@0 16609 ac_cs_recheck=false
michael@0 16610 ac_cs_silent=false
michael@0 16611
michael@0 16612 SHELL=\${CONFIG_SHELL-$SHELL}
michael@0 16613 export SHELL
michael@0 16614 _ASEOF
michael@0 16615 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
michael@0 16616 ## -------------------- ##
michael@0 16617 ## M4sh Initialization. ##
michael@0 16618 ## -------------------- ##
michael@0 16619
michael@0 16620 # Be more Bourne compatible
michael@0 16621 DUALCASE=1; export DUALCASE # for MKS sh
michael@0 16622 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
michael@0 16623 emulate sh
michael@0 16624 NULLCMD=:
michael@0 16625 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
michael@0 16626 # is contrary to our usage. Disable this feature.
michael@0 16627 alias -g '${1+"$@"}'='"$@"'
michael@0 16628 setopt NO_GLOB_SUBST
michael@0 16629 else
michael@0 16630 case `(set -o) 2>/dev/null` in #(
michael@0 16631 *posix*) :
michael@0 16632 set -o posix ;; #(
michael@0 16633 *) :
michael@0 16634 ;;
michael@0 16635 esac
michael@0 16636 fi
michael@0 16637
michael@0 16638
michael@0 16639 as_nl='
michael@0 16640 '
michael@0 16641 export as_nl
michael@0 16642 # Printing a long string crashes Solaris 7 /usr/bin/printf.
michael@0 16643 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
michael@0 16644 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
michael@0 16645 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
michael@0 16646 # Prefer a ksh shell builtin over an external printf program on Solaris,
michael@0 16647 # but without wasting forks for bash or zsh.
michael@0 16648 if test -z "$BASH_VERSION$ZSH_VERSION" \
michael@0 16649 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
michael@0 16650 as_echo='print -r --'
michael@0 16651 as_echo_n='print -rn --'
michael@0 16652 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
michael@0 16653 as_echo='printf %s\n'
michael@0 16654 as_echo_n='printf %s'
michael@0 16655 else
michael@0 16656 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
michael@0 16657 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
michael@0 16658 as_echo_n='/usr/ucb/echo -n'
michael@0 16659 else
michael@0 16660 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
michael@0 16661 as_echo_n_body='eval
michael@0 16662 arg=$1;
michael@0 16663 case $arg in #(
michael@0 16664 *"$as_nl"*)
michael@0 16665 expr "X$arg" : "X\\(.*\\)$as_nl";
michael@0 16666 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
michael@0 16667 esac;
michael@0 16668 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
michael@0 16669 '
michael@0 16670 export as_echo_n_body
michael@0 16671 as_echo_n='sh -c $as_echo_n_body as_echo'
michael@0 16672 fi
michael@0 16673 export as_echo_body
michael@0 16674 as_echo='sh -c $as_echo_body as_echo'
michael@0 16675 fi
michael@0 16676
michael@0 16677 # The user is always right.
michael@0 16678 if test "${PATH_SEPARATOR+set}" != set; then
michael@0 16679 PATH_SEPARATOR=:
michael@0 16680 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
michael@0 16681 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
michael@0 16682 PATH_SEPARATOR=';'
michael@0 16683 }
michael@0 16684 fi
michael@0 16685
michael@0 16686
michael@0 16687 # IFS
michael@0 16688 # We need space, tab and new line, in precisely that order. Quoting is
michael@0 16689 # there to prevent editors from complaining about space-tab.
michael@0 16690 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
michael@0 16691 # splitting by setting IFS to empty value.)
michael@0 16692 IFS=" "" $as_nl"
michael@0 16693
michael@0 16694 # Find who we are. Look in the path if we contain no directory separator.
michael@0 16695 case $0 in #((
michael@0 16696 *[\\/]* ) as_myself=$0 ;;
michael@0 16697 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
michael@0 16698 for as_dir in $PATH
michael@0 16699 do
michael@0 16700 IFS=$as_save_IFS
michael@0 16701 test -z "$as_dir" && as_dir=.
michael@0 16702 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
michael@0 16703 done
michael@0 16704 IFS=$as_save_IFS
michael@0 16705
michael@0 16706 ;;
michael@0 16707 esac
michael@0 16708 # We did not find ourselves, most probably we were run as `sh COMMAND'
michael@0 16709 # in which case we are not to be found in the path.
michael@0 16710 if test "x$as_myself" = x; then
michael@0 16711 as_myself=$0
michael@0 16712 fi
michael@0 16713 if test ! -f "$as_myself"; then
michael@0 16714 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
michael@0 16715 exit 1
michael@0 16716 fi
michael@0 16717
michael@0 16718 # Unset variables that we do not need and which cause bugs (e.g. in
michael@0 16719 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
michael@0 16720 # suppresses any "Segmentation fault" message there. '((' could
michael@0 16721 # trigger a bug in pdksh 5.2.14.
michael@0 16722 for as_var in BASH_ENV ENV MAIL MAILPATH
michael@0 16723 do eval test x\${$as_var+set} = xset \
michael@0 16724 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
michael@0 16725 done
michael@0 16726 PS1='$ '
michael@0 16727 PS2='> '
michael@0 16728 PS4='+ '
michael@0 16729
michael@0 16730 # NLS nuisances.
michael@0 16731 LC_ALL=C
michael@0 16732 export LC_ALL
michael@0 16733 LANGUAGE=C
michael@0 16734 export LANGUAGE
michael@0 16735
michael@0 16736 # CDPATH.
michael@0 16737 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
michael@0 16738
michael@0 16739
michael@0 16740 # as_fn_error ERROR [LINENO LOG_FD]
michael@0 16741 # ---------------------------------
michael@0 16742 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
michael@0 16743 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
michael@0 16744 # script with status $?, using 1 if that was 0.
michael@0 16745 as_fn_error ()
michael@0 16746 {
michael@0 16747 as_status=$?; test $as_status -eq 0 && as_status=1
michael@0 16748 if test "$3"; then
michael@0 16749 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
michael@0 16750 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
michael@0 16751 fi
michael@0 16752 $as_echo "$as_me: error: $1" >&2
michael@0 16753 as_fn_exit $as_status
michael@0 16754 } # as_fn_error
michael@0 16755
michael@0 16756
michael@0 16757 # as_fn_set_status STATUS
michael@0 16758 # -----------------------
michael@0 16759 # Set $? to STATUS, without forking.
michael@0 16760 as_fn_set_status ()
michael@0 16761 {
michael@0 16762 return $1
michael@0 16763 } # as_fn_set_status
michael@0 16764
michael@0 16765 # as_fn_exit STATUS
michael@0 16766 # -----------------
michael@0 16767 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
michael@0 16768 as_fn_exit ()
michael@0 16769 {
michael@0 16770 set +e
michael@0 16771 as_fn_set_status $1
michael@0 16772 exit $1
michael@0 16773 } # as_fn_exit
michael@0 16774
michael@0 16775 # as_fn_unset VAR
michael@0 16776 # ---------------
michael@0 16777 # Portably unset VAR.
michael@0 16778 as_fn_unset ()
michael@0 16779 {
michael@0 16780 { eval $1=; unset $1;}
michael@0 16781 }
michael@0 16782 as_unset=as_fn_unset
michael@0 16783 # as_fn_append VAR VALUE
michael@0 16784 # ----------------------
michael@0 16785 # Append the text in VALUE to the end of the definition contained in VAR. Take
michael@0 16786 # advantage of any shell optimizations that allow amortized linear growth over
michael@0 16787 # repeated appends, instead of the typical quadratic growth present in naive
michael@0 16788 # implementations.
michael@0 16789 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
michael@0 16790 eval 'as_fn_append ()
michael@0 16791 {
michael@0 16792 eval $1+=\$2
michael@0 16793 }'
michael@0 16794 else
michael@0 16795 as_fn_append ()
michael@0 16796 {
michael@0 16797 eval $1=\$$1\$2
michael@0 16798 }
michael@0 16799 fi # as_fn_append
michael@0 16800
michael@0 16801 # as_fn_arith ARG...
michael@0 16802 # ------------------
michael@0 16803 # Perform arithmetic evaluation on the ARGs, and store the result in the
michael@0 16804 # global $as_val. Take advantage of shells that can avoid forks. The arguments
michael@0 16805 # must be portable across $(()) and expr.
michael@0 16806 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
michael@0 16807 eval 'as_fn_arith ()
michael@0 16808 {
michael@0 16809 as_val=$(( $* ))
michael@0 16810 }'
michael@0 16811 else
michael@0 16812 as_fn_arith ()
michael@0 16813 {
michael@0 16814 as_val=`expr "$@" || test $? -eq 1`
michael@0 16815 }
michael@0 16816 fi # as_fn_arith
michael@0 16817
michael@0 16818
michael@0 16819 if expr a : '\(a\)' >/dev/null 2>&1 &&
michael@0 16820 test "X`expr 00001 : '.*\(...\)'`" = X001; then
michael@0 16821 as_expr=expr
michael@0 16822 else
michael@0 16823 as_expr=false
michael@0 16824 fi
michael@0 16825
michael@0 16826 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
michael@0 16827 as_basename=basename
michael@0 16828 else
michael@0 16829 as_basename=false
michael@0 16830 fi
michael@0 16831
michael@0 16832 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
michael@0 16833 as_dirname=dirname
michael@0 16834 else
michael@0 16835 as_dirname=false
michael@0 16836 fi
michael@0 16837
michael@0 16838 as_me=`$as_basename -- "$0" ||
michael@0 16839 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
michael@0 16840 X"$0" : 'X\(//\)$' \| \
michael@0 16841 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
michael@0 16842 $as_echo X/"$0" |
michael@0 16843 sed '/^.*\/\([^/][^/]*\)\/*$/{
michael@0 16844 s//\1/
michael@0 16845 q
michael@0 16846 }
michael@0 16847 /^X\/\(\/\/\)$/{
michael@0 16848 s//\1/
michael@0 16849 q
michael@0 16850 }
michael@0 16851 /^X\/\(\/\).*/{
michael@0 16852 s//\1/
michael@0 16853 q
michael@0 16854 }
michael@0 16855 s/.*/./; q'`
michael@0 16856
michael@0 16857 # Avoid depending upon Character Ranges.
michael@0 16858 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
michael@0 16859 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
michael@0 16860 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
michael@0 16861 as_cr_digits='0123456789'
michael@0 16862 as_cr_alnum=$as_cr_Letters$as_cr_digits
michael@0 16863
michael@0 16864 ECHO_C= ECHO_N= ECHO_T=
michael@0 16865 case `echo -n x` in #(((((
michael@0 16866 -n*)
michael@0 16867 case `echo 'xy\c'` in
michael@0 16868 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
michael@0 16869 xy) ECHO_C='\c';;
michael@0 16870 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
michael@0 16871 ECHO_T=' ';;
michael@0 16872 esac;;
michael@0 16873 *)
michael@0 16874 ECHO_N='-n';;
michael@0 16875 esac
michael@0 16876
michael@0 16877 rm -f conf$$ conf$$.exe conf$$.file
michael@0 16878 if test -d conf$$.dir; then
michael@0 16879 rm -f conf$$.dir/conf$$.file
michael@0 16880 else
michael@0 16881 rm -f conf$$.dir
michael@0 16882 mkdir conf$$.dir 2>/dev/null
michael@0 16883 fi
michael@0 16884 if (echo >conf$$.file) 2>/dev/null; then
michael@0 16885 if ln -s conf$$.file conf$$ 2>/dev/null; then
michael@0 16886 as_ln_s='ln -s'
michael@0 16887 # ... but there are two gotchas:
michael@0 16888 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
michael@0 16889 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
michael@0 16890 # In both cases, we have to default to `cp -p'.
michael@0 16891 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
michael@0 16892 as_ln_s='cp -p'
michael@0 16893 elif ln conf$$.file conf$$ 2>/dev/null; then
michael@0 16894 as_ln_s=ln
michael@0 16895 else
michael@0 16896 as_ln_s='cp -p'
michael@0 16897 fi
michael@0 16898 else
michael@0 16899 as_ln_s='cp -p'
michael@0 16900 fi
michael@0 16901 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
michael@0 16902 rmdir conf$$.dir 2>/dev/null
michael@0 16903
michael@0 16904
michael@0 16905 # as_fn_mkdir_p
michael@0 16906 # -------------
michael@0 16907 # Create "$as_dir" as a directory, including parents if necessary.
michael@0 16908 as_fn_mkdir_p ()
michael@0 16909 {
michael@0 16910
michael@0 16911 case $as_dir in #(
michael@0 16912 -*) as_dir=./$as_dir;;
michael@0 16913 esac
michael@0 16914 test -d "$as_dir" || eval $as_mkdir_p || {
michael@0 16915 as_dirs=
michael@0 16916 while :; do
michael@0 16917 case $as_dir in #(
michael@0 16918 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
michael@0 16919 *) as_qdir=$as_dir;;
michael@0 16920 esac
michael@0 16921 as_dirs="'$as_qdir' $as_dirs"
michael@0 16922 as_dir=`$as_dirname -- "$as_dir" ||
michael@0 16923 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
michael@0 16924 X"$as_dir" : 'X\(//\)[^/]' \| \
michael@0 16925 X"$as_dir" : 'X\(//\)$' \| \
michael@0 16926 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
michael@0 16927 $as_echo X"$as_dir" |
michael@0 16928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
michael@0 16929 s//\1/
michael@0 16930 q
michael@0 16931 }
michael@0 16932 /^X\(\/\/\)[^/].*/{
michael@0 16933 s//\1/
michael@0 16934 q
michael@0 16935 }
michael@0 16936 /^X\(\/\/\)$/{
michael@0 16937 s//\1/
michael@0 16938 q
michael@0 16939 }
michael@0 16940 /^X\(\/\).*/{
michael@0 16941 s//\1/
michael@0 16942 q
michael@0 16943 }
michael@0 16944 s/.*/./; q'`
michael@0 16945 test -d "$as_dir" && break
michael@0 16946 done
michael@0 16947 test -z "$as_dirs" || eval "mkdir $as_dirs"
michael@0 16948 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
michael@0 16949
michael@0 16950
michael@0 16951 } # as_fn_mkdir_p
michael@0 16952 if mkdir -p . 2>/dev/null; then
michael@0 16953 as_mkdir_p='mkdir -p "$as_dir"'
michael@0 16954 else
michael@0 16955 test -d ./-p && rmdir ./-p
michael@0 16956 as_mkdir_p=false
michael@0 16957 fi
michael@0 16958
michael@0 16959 if test -x / >/dev/null 2>&1; then
michael@0 16960 as_test_x='test -x'
michael@0 16961 else
michael@0 16962 if ls -dL / >/dev/null 2>&1; then
michael@0 16963 as_ls_L_option=L
michael@0 16964 else
michael@0 16965 as_ls_L_option=
michael@0 16966 fi
michael@0 16967 as_test_x='
michael@0 16968 eval sh -c '\''
michael@0 16969 if test -d "$1"; then
michael@0 16970 test -d "$1/.";
michael@0 16971 else
michael@0 16972 case $1 in #(
michael@0 16973 -*)set "./$1";;
michael@0 16974 esac;
michael@0 16975 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
michael@0 16976 ???[sx]*):;;*)false;;esac;fi
michael@0 16977 '\'' sh
michael@0 16978 '
michael@0 16979 fi
michael@0 16980 as_executable_p=$as_test_x
michael@0 16981
michael@0 16982 # Sed expression to map a string onto a valid CPP name.
michael@0 16983 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
michael@0 16984
michael@0 16985 # Sed expression to map a string onto a valid variable name.
michael@0 16986 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
michael@0 16987
michael@0 16988
michael@0 16989 exec 6>&1
michael@0 16990 ## ----------------------------------- ##
michael@0 16991 ## Main body of $CONFIG_STATUS script. ##
michael@0 16992 ## ----------------------------------- ##
michael@0 16993 _ASEOF
michael@0 16994 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
michael@0 16995
michael@0 16996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
michael@0 16997 # Save the log message, to keep $0 and so on meaningful, and to
michael@0 16998 # report actual input values of CONFIG_FILES etc. instead of their
michael@0 16999 # values after options handling.
michael@0 17000 ac_log="
michael@0 17001 This file was extended by glog $as_me 0.3.1, which was
michael@0 17002 generated by GNU Autoconf 2.65. Invocation command line was
michael@0 17003
michael@0 17004 CONFIG_FILES = $CONFIG_FILES
michael@0 17005 CONFIG_HEADERS = $CONFIG_HEADERS
michael@0 17006 CONFIG_LINKS = $CONFIG_LINKS
michael@0 17007 CONFIG_COMMANDS = $CONFIG_COMMANDS
michael@0 17008 $ $0 $@
michael@0 17009
michael@0 17010 on `(hostname || uname -n) 2>/dev/null | sed 1q`
michael@0 17011 "
michael@0 17012
michael@0 17013 _ACEOF
michael@0 17014
michael@0 17015 case $ac_config_files in *"
michael@0 17016 "*) set x $ac_config_files; shift; ac_config_files=$*;;
michael@0 17017 esac
michael@0 17018
michael@0 17019 case $ac_config_headers in *"
michael@0 17020 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
michael@0 17021 esac
michael@0 17022
michael@0 17023
michael@0 17024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
michael@0 17025 # Files that config.status was made for.
michael@0 17026 config_files="$ac_config_files"
michael@0 17027 config_headers="$ac_config_headers"
michael@0 17028 config_commands="$ac_config_commands"
michael@0 17029
michael@0 17030 _ACEOF
michael@0 17031
michael@0 17032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
michael@0 17033 ac_cs_usage="\
michael@0 17034 \`$as_me' instantiates files and other configuration actions
michael@0 17035 from templates according to the current configuration. Unless the files
michael@0 17036 and actions are specified as TAGs, all are instantiated by default.
michael@0 17037
michael@0 17038 Usage: $0 [OPTION]... [TAG]...
michael@0 17039
michael@0 17040 -h, --help print this help, then exit
michael@0 17041 -V, --version print version number and configuration settings, then exit
michael@0 17042 --config print configuration, then exit
michael@0 17043 -q, --quiet, --silent
michael@0 17044 do not print progress messages
michael@0 17045 -d, --debug don't remove temporary files
michael@0 17046 --recheck update $as_me by reconfiguring in the same conditions
michael@0 17047 --file=FILE[:TEMPLATE]
michael@0 17048 instantiate the configuration file FILE
michael@0 17049 --header=FILE[:TEMPLATE]
michael@0 17050 instantiate the configuration header FILE
michael@0 17051
michael@0 17052 Configuration files:
michael@0 17053 $config_files
michael@0 17054
michael@0 17055 Configuration headers:
michael@0 17056 $config_headers
michael@0 17057
michael@0 17058 Configuration commands:
michael@0 17059 $config_commands
michael@0 17060
michael@0 17061 Report bugs to <opensource@google.com>."
michael@0 17062
michael@0 17063 _ACEOF
michael@0 17064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
michael@0 17065 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
michael@0 17066 ac_cs_version="\\
michael@0 17067 glog config.status 0.3.1
michael@0 17068 configured by $0, generated by GNU Autoconf 2.65,
michael@0 17069 with options \\"\$ac_cs_config\\"
michael@0 17070
michael@0 17071 Copyright (C) 2009 Free Software Foundation, Inc.
michael@0 17072 This config.status script is free software; the Free Software Foundation
michael@0 17073 gives unlimited permission to copy, distribute and modify it."
michael@0 17074
michael@0 17075 ac_pwd='$ac_pwd'
michael@0 17076 srcdir='$srcdir'
michael@0 17077 INSTALL='$INSTALL'
michael@0 17078 MKDIR_P='$MKDIR_P'
michael@0 17079 AWK='$AWK'
michael@0 17080 test -n "\$AWK" || AWK=awk
michael@0 17081 _ACEOF
michael@0 17082
michael@0 17083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
michael@0 17084 # The default lists apply if the user does not specify any file.
michael@0 17085 ac_need_defaults=:
michael@0 17086 while test $# != 0
michael@0 17087 do
michael@0 17088 case $1 in
michael@0 17089 --*=*)
michael@0 17090 ac_option=`expr "X$1" : 'X\([^=]*\)='`
michael@0 17091 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
michael@0 17092 ac_shift=:
michael@0 17093 ;;
michael@0 17094 *)
michael@0 17095 ac_option=$1
michael@0 17096 ac_optarg=$2
michael@0 17097 ac_shift=shift
michael@0 17098 ;;
michael@0 17099 esac
michael@0 17100
michael@0 17101 case $ac_option in
michael@0 17102 # Handling of the options.
michael@0 17103 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
michael@0 17104 ac_cs_recheck=: ;;
michael@0 17105 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
michael@0 17106 $as_echo "$ac_cs_version"; exit ;;
michael@0 17107 --config | --confi | --conf | --con | --co | --c )
michael@0 17108 $as_echo "$ac_cs_config"; exit ;;
michael@0 17109 --debug | --debu | --deb | --de | --d | -d )
michael@0 17110 debug=: ;;
michael@0 17111 --file | --fil | --fi | --f )
michael@0 17112 $ac_shift
michael@0 17113 case $ac_optarg in
michael@0 17114 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
michael@0 17115 esac
michael@0 17116 as_fn_append CONFIG_FILES " '$ac_optarg'"
michael@0 17117 ac_need_defaults=false;;
michael@0 17118 --header | --heade | --head | --hea )
michael@0 17119 $ac_shift
michael@0 17120 case $ac_optarg in
michael@0 17121 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
michael@0 17122 esac
michael@0 17123 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
michael@0 17124 ac_need_defaults=false;;
michael@0 17125 --he | --h)
michael@0 17126 # Conflict between --help and --header
michael@0 17127 as_fn_error "ambiguous option: \`$1'
michael@0 17128 Try \`$0 --help' for more information.";;
michael@0 17129 --help | --hel | -h )
michael@0 17130 $as_echo "$ac_cs_usage"; exit ;;
michael@0 17131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
michael@0 17132 | -silent | --silent | --silen | --sile | --sil | --si | --s)
michael@0 17133 ac_cs_silent=: ;;
michael@0 17134
michael@0 17135 # This is an error.
michael@0 17136 -*) as_fn_error "unrecognized option: \`$1'
michael@0 17137 Try \`$0 --help' for more information." ;;
michael@0 17138
michael@0 17139 *) as_fn_append ac_config_targets " $1"
michael@0 17140 ac_need_defaults=false ;;
michael@0 17141
michael@0 17142 esac
michael@0 17143 shift
michael@0 17144 done
michael@0 17145
michael@0 17146 ac_configure_extra_args=
michael@0 17147
michael@0 17148 if $ac_cs_silent; then
michael@0 17149 exec 6>/dev/null
michael@0 17150 ac_configure_extra_args="$ac_configure_extra_args --silent"
michael@0 17151 fi
michael@0 17152
michael@0 17153 _ACEOF
michael@0 17154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
michael@0 17155 if \$ac_cs_recheck; then
michael@0 17156 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
michael@0 17157 shift
michael@0 17158 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
michael@0 17159 CONFIG_SHELL='$SHELL'
michael@0 17160 export CONFIG_SHELL
michael@0 17161 exec "\$@"
michael@0 17162 fi
michael@0 17163
michael@0 17164 _ACEOF
michael@0 17165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
michael@0 17166 exec 5>>config.log
michael@0 17167 {
michael@0 17168 echo
michael@0 17169 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
michael@0 17170 ## Running $as_me. ##
michael@0 17171 _ASBOX
michael@0 17172 $as_echo "$ac_log"
michael@0 17173 } >&5
michael@0 17174
michael@0 17175 _ACEOF
michael@0 17176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
michael@0 17177 #
michael@0 17178 # INIT-COMMANDS
michael@0 17179 #
michael@0 17180 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
michael@0 17181
michael@0 17182
michael@0 17183 # The HP-UX ksh and POSIX shell print the target directory to stdout
michael@0 17184 # if CDPATH is set.
michael@0 17185 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
michael@0 17186
michael@0 17187 sed_quote_subst='$sed_quote_subst'
michael@0 17188 double_quote_subst='$double_quote_subst'
michael@0 17189 delay_variable_subst='$delay_variable_subst'
michael@0 17190 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17191 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17192 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17193 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17194 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17195 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17196 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17197 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17198 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17199 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17200 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17201 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17202 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17203 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17204 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17205 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17206 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17207 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17208 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17209 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17210 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17211 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17212 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17213 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17214 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17215 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17216 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17217 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17218 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17219 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17220 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17221 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17222 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17223 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17224 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17225 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17226 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17227 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17228 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17229 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17230 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17231 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17232 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17233 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17234 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17235 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17236 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17237 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17238 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17239 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17240 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17241 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17242 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17243 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17244 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17245 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17246 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17247 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17248 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17249 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17250 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17251 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17252 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17253 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17254 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17255 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17256 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17257 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17258 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17259 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17260 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17261 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17262 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17263 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17264 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17265 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17266 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17267 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17268 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17269 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17270 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17271 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17272 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17273 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17274 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17275 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17276 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17277 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17278 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17279 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17280 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17281 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17282 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17283 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17284 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17285 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17286 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17287 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17288 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17289 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17290 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17291 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17292 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17293 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17294 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17295 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17296 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17297 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17298 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17299 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17300 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17301 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17302 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17303 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17304 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17305 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17306 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17307 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17308 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17309 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17310 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17311 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17312 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17313 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17314 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17315 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17316 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17317 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17318 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17319 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17320 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17321 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17322 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17323 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17324 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17325 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17326 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17327 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17328 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17329 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17330 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17331 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17332 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17333 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17334 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17335 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17336 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17337 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17338 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17339 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17340 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17341 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17342 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17343 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17344 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17345 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17346 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17347 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17348 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17349 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17350 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17351 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17352 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17353 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17354 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17355 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17356 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17357 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17358 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17359 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17360 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
michael@0 17361
michael@0 17362 LTCC='$LTCC'
michael@0 17363 LTCFLAGS='$LTCFLAGS'
michael@0 17364 compiler='$compiler_DEFAULT'
michael@0 17365
michael@0 17366 # Quote evaled strings.
michael@0 17367 for var in SED \
michael@0 17368 GREP \
michael@0 17369 EGREP \
michael@0 17370 FGREP \
michael@0 17371 LD \
michael@0 17372 NM \
michael@0 17373 LN_S \
michael@0 17374 lt_SP2NL \
michael@0 17375 lt_NL2SP \
michael@0 17376 reload_flag \
michael@0 17377 OBJDUMP \
michael@0 17378 deplibs_check_method \
michael@0 17379 file_magic_cmd \
michael@0 17380 AR \
michael@0 17381 AR_FLAGS \
michael@0 17382 STRIP \
michael@0 17383 RANLIB \
michael@0 17384 CC \
michael@0 17385 CFLAGS \
michael@0 17386 compiler \
michael@0 17387 lt_cv_sys_global_symbol_pipe \
michael@0 17388 lt_cv_sys_global_symbol_to_cdecl \
michael@0 17389 lt_cv_sys_global_symbol_to_c_name_address \
michael@0 17390 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
michael@0 17391 SHELL \
michael@0 17392 ECHO \
michael@0 17393 lt_prog_compiler_no_builtin_flag \
michael@0 17394 lt_prog_compiler_wl \
michael@0 17395 lt_prog_compiler_pic \
michael@0 17396 lt_prog_compiler_static \
michael@0 17397 lt_cv_prog_compiler_c_o \
michael@0 17398 need_locks \
michael@0 17399 DSYMUTIL \
michael@0 17400 NMEDIT \
michael@0 17401 LIPO \
michael@0 17402 OTOOL \
michael@0 17403 OTOOL64 \
michael@0 17404 shrext_cmds \
michael@0 17405 export_dynamic_flag_spec \
michael@0 17406 whole_archive_flag_spec \
michael@0 17407 compiler_needs_object \
michael@0 17408 with_gnu_ld \
michael@0 17409 allow_undefined_flag \
michael@0 17410 no_undefined_flag \
michael@0 17411 hardcode_libdir_flag_spec \
michael@0 17412 hardcode_libdir_flag_spec_ld \
michael@0 17413 hardcode_libdir_separator \
michael@0 17414 fix_srcfile_path \
michael@0 17415 exclude_expsyms \
michael@0 17416 include_expsyms \
michael@0 17417 file_list_spec \
michael@0 17418 variables_saved_for_relink \
michael@0 17419 libname_spec \
michael@0 17420 library_names_spec \
michael@0 17421 soname_spec \
michael@0 17422 finish_eval \
michael@0 17423 old_striplib \
michael@0 17424 striplib \
michael@0 17425 compiler_lib_search_dirs \
michael@0 17426 predep_objects \
michael@0 17427 postdep_objects \
michael@0 17428 predeps \
michael@0 17429 postdeps \
michael@0 17430 compiler_lib_search_path \
michael@0 17431 LD_CXX \
michael@0 17432 compiler_CXX \
michael@0 17433 lt_prog_compiler_no_builtin_flag_CXX \
michael@0 17434 lt_prog_compiler_wl_CXX \
michael@0 17435 lt_prog_compiler_pic_CXX \
michael@0 17436 lt_prog_compiler_static_CXX \
michael@0 17437 lt_cv_prog_compiler_c_o_CXX \
michael@0 17438 export_dynamic_flag_spec_CXX \
michael@0 17439 whole_archive_flag_spec_CXX \
michael@0 17440 compiler_needs_object_CXX \
michael@0 17441 with_gnu_ld_CXX \
michael@0 17442 allow_undefined_flag_CXX \
michael@0 17443 no_undefined_flag_CXX \
michael@0 17444 hardcode_libdir_flag_spec_CXX \
michael@0 17445 hardcode_libdir_flag_spec_ld_CXX \
michael@0 17446 hardcode_libdir_separator_CXX \
michael@0 17447 fix_srcfile_path_CXX \
michael@0 17448 exclude_expsyms_CXX \
michael@0 17449 include_expsyms_CXX \
michael@0 17450 file_list_spec_CXX \
michael@0 17451 compiler_lib_search_dirs_CXX \
michael@0 17452 predep_objects_CXX \
michael@0 17453 postdep_objects_CXX \
michael@0 17454 predeps_CXX \
michael@0 17455 postdeps_CXX \
michael@0 17456 compiler_lib_search_path_CXX; do
michael@0 17457 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
michael@0 17458 *[\\\\\\\`\\"\\\$]*)
michael@0 17459 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
michael@0 17460 ;;
michael@0 17461 *)
michael@0 17462 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
michael@0 17463 ;;
michael@0 17464 esac
michael@0 17465 done
michael@0 17466
michael@0 17467 # Double-quote double-evaled strings.
michael@0 17468 for var in reload_cmds \
michael@0 17469 old_postinstall_cmds \
michael@0 17470 old_postuninstall_cmds \
michael@0 17471 old_archive_cmds \
michael@0 17472 extract_expsyms_cmds \
michael@0 17473 old_archive_from_new_cmds \
michael@0 17474 old_archive_from_expsyms_cmds \
michael@0 17475 archive_cmds \
michael@0 17476 archive_expsym_cmds \
michael@0 17477 module_cmds \
michael@0 17478 module_expsym_cmds \
michael@0 17479 export_symbols_cmds \
michael@0 17480 prelink_cmds \
michael@0 17481 postinstall_cmds \
michael@0 17482 postuninstall_cmds \
michael@0 17483 finish_cmds \
michael@0 17484 sys_lib_search_path_spec \
michael@0 17485 sys_lib_dlsearch_path_spec \
michael@0 17486 old_archive_cmds_CXX \
michael@0 17487 old_archive_from_new_cmds_CXX \
michael@0 17488 old_archive_from_expsyms_cmds_CXX \
michael@0 17489 archive_cmds_CXX \
michael@0 17490 archive_expsym_cmds_CXX \
michael@0 17491 module_cmds_CXX \
michael@0 17492 module_expsym_cmds_CXX \
michael@0 17493 export_symbols_cmds_CXX \
michael@0 17494 prelink_cmds_CXX; do
michael@0 17495 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
michael@0 17496 *[\\\\\\\`\\"\\\$]*)
michael@0 17497 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
michael@0 17498 ;;
michael@0 17499 *)
michael@0 17500 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
michael@0 17501 ;;
michael@0 17502 esac
michael@0 17503 done
michael@0 17504
michael@0 17505 # Fix-up fallback echo if it was mangled by the above quoting rules.
michael@0 17506 case \$lt_ECHO in
michael@0 17507 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
michael@0 17508 ;;
michael@0 17509 esac
michael@0 17510
michael@0 17511 ac_aux_dir='$ac_aux_dir'
michael@0 17512 xsi_shell='$xsi_shell'
michael@0 17513 lt_shell_append='$lt_shell_append'
michael@0 17514
michael@0 17515 # See if we are running on zsh, and set the options which allow our
michael@0 17516 # commands through without removal of \ escapes INIT.
michael@0 17517 if test -n "\${ZSH_VERSION+set}" ; then
michael@0 17518 setopt NO_GLOB_SUBST
michael@0 17519 fi
michael@0 17520
michael@0 17521
michael@0 17522 PACKAGE='$PACKAGE'
michael@0 17523 VERSION='$VERSION'
michael@0 17524 TIMESTAMP='$TIMESTAMP'
michael@0 17525 RM='$RM'
michael@0 17526 ofile='$ofile'
michael@0 17527
michael@0 17528
michael@0 17529
michael@0 17530
michael@0 17531
michael@0 17532
michael@0 17533 _ACEOF
michael@0 17534
michael@0 17535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
michael@0 17536
michael@0 17537 # Handling of arguments.
michael@0 17538 for ac_config_target in $ac_config_targets
michael@0 17539 do
michael@0 17540 case $ac_config_target in
michael@0 17541 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
michael@0 17542 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
michael@0 17543 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
michael@0 17544 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
michael@0 17545 "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
michael@0 17546 "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
michael@0 17547 "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
michael@0 17548 "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
michael@0 17549 "libglog.pc") CONFIG_FILES="$CONFIG_FILES libglog.pc" ;;
michael@0 17550
michael@0 17551 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
michael@0 17552 esac
michael@0 17553 done
michael@0 17554
michael@0 17555
michael@0 17556 # If the user did not use the arguments to specify the items to instantiate,
michael@0 17557 # then the envvar interface is used. Set only those that are not.
michael@0 17558 # We use the long form for the default assignment because of an extremely
michael@0 17559 # bizarre bug on SunOS 4.1.3.
michael@0 17560 if $ac_need_defaults; then
michael@0 17561 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
michael@0 17562 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
michael@0 17563 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
michael@0 17564 fi
michael@0 17565
michael@0 17566 # Have a temporary directory for convenience. Make it in the build tree
michael@0 17567 # simply because there is no reason against having it here, and in addition,
michael@0 17568 # creating and moving files from /tmp can sometimes cause problems.
michael@0 17569 # Hook for its removal unless debugging.
michael@0 17570 # Note that there is a small window in which the directory will not be cleaned:
michael@0 17571 # after its creation but before its name has been assigned to `$tmp'.
michael@0 17572 $debug ||
michael@0 17573 {
michael@0 17574 tmp=
michael@0 17575 trap 'exit_status=$?
michael@0 17576 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
michael@0 17577 ' 0
michael@0 17578 trap 'as_fn_exit 1' 1 2 13 15
michael@0 17579 }
michael@0 17580 # Create a (secure) tmp directory for tmp files.
michael@0 17581
michael@0 17582 {
michael@0 17583 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
michael@0 17584 test -n "$tmp" && test -d "$tmp"
michael@0 17585 } ||
michael@0 17586 {
michael@0 17587 tmp=./conf$$-$RANDOM
michael@0 17588 (umask 077 && mkdir "$tmp")
michael@0 17589 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
michael@0 17590
michael@0 17591 # Set up the scripts for CONFIG_FILES section.
michael@0 17592 # No need to generate them if there are no CONFIG_FILES.
michael@0 17593 # This happens for instance with `./config.status config.h'.
michael@0 17594 if test -n "$CONFIG_FILES"; then
michael@0 17595
michael@0 17596
michael@0 17597 ac_cr=`echo X | tr X '\015'`
michael@0 17598 # On cygwin, bash can eat \r inside `` if the user requested igncr.
michael@0 17599 # But we know of no other shell where ac_cr would be empty at this
michael@0 17600 # point, so we can use a bashism as a fallback.
michael@0 17601 if test "x$ac_cr" = x; then
michael@0 17602 eval ac_cr=\$\'\\r\'
michael@0 17603 fi
michael@0 17604 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
michael@0 17605 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
michael@0 17606 ac_cs_awk_cr='\r'
michael@0 17607 else
michael@0 17608 ac_cs_awk_cr=$ac_cr
michael@0 17609 fi
michael@0 17610
michael@0 17611 echo 'BEGIN {' >"$tmp/subs1.awk" &&
michael@0 17612 _ACEOF
michael@0 17613
michael@0 17614
michael@0 17615 {
michael@0 17616 echo "cat >conf$$subs.awk <<_ACEOF" &&
michael@0 17617 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
michael@0 17618 echo "_ACEOF"
michael@0 17619 } >conf$$subs.sh ||
michael@0 17620 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
michael@0 17621 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
michael@0 17622 ac_delim='%!_!# '
michael@0 17623 for ac_last_try in false false false false false :; do
michael@0 17624 . ./conf$$subs.sh ||
michael@0 17625 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
michael@0 17626
michael@0 17627 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
michael@0 17628 if test $ac_delim_n = $ac_delim_num; then
michael@0 17629 break
michael@0 17630 elif $ac_last_try; then
michael@0 17631 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
michael@0 17632 else
michael@0 17633 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
michael@0 17634 fi
michael@0 17635 done
michael@0 17636 rm -f conf$$subs.sh
michael@0 17637
michael@0 17638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
michael@0 17639 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
michael@0 17640 _ACEOF
michael@0 17641 sed -n '
michael@0 17642 h
michael@0 17643 s/^/S["/; s/!.*/"]=/
michael@0 17644 p
michael@0 17645 g
michael@0 17646 s/^[^!]*!//
michael@0 17647 :repl
michael@0 17648 t repl
michael@0 17649 s/'"$ac_delim"'$//
michael@0 17650 t delim
michael@0 17651 :nl
michael@0 17652 h
michael@0 17653 s/\(.\{148\}\)..*/\1/
michael@0 17654 t more1
michael@0 17655 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
michael@0 17656 p
michael@0 17657 n
michael@0 17658 b repl
michael@0 17659 :more1
michael@0 17660 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
michael@0 17661 p
michael@0 17662 g
michael@0 17663 s/.\{148\}//
michael@0 17664 t nl
michael@0 17665 :delim
michael@0 17666 h
michael@0 17667 s/\(.\{148\}\)..*/\1/
michael@0 17668 t more2
michael@0 17669 s/["\\]/\\&/g; s/^/"/; s/$/"/
michael@0 17670 p
michael@0 17671 b
michael@0 17672 :more2
michael@0 17673 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
michael@0 17674 p
michael@0 17675 g
michael@0 17676 s/.\{148\}//
michael@0 17677 t delim
michael@0 17678 ' <conf$$subs.awk | sed '
michael@0 17679 /^[^""]/{
michael@0 17680 N
michael@0 17681 s/\n//
michael@0 17682 }
michael@0 17683 ' >>$CONFIG_STATUS || ac_write_fail=1
michael@0 17684 rm -f conf$$subs.awk
michael@0 17685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
michael@0 17686 _ACAWK
michael@0 17687 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
michael@0 17688 for (key in S) S_is_set[key] = 1
michael@0 17689 FS = ""
michael@0 17690
michael@0 17691 }
michael@0 17692 {
michael@0 17693 line = $ 0
michael@0 17694 nfields = split(line, field, "@")
michael@0 17695 substed = 0
michael@0 17696 len = length(field[1])
michael@0 17697 for (i = 2; i < nfields; i++) {
michael@0 17698 key = field[i]
michael@0 17699 keylen = length(key)
michael@0 17700 if (S_is_set[key]) {
michael@0 17701 value = S[key]
michael@0 17702 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
michael@0 17703 len += length(value) + length(field[++i])
michael@0 17704 substed = 1
michael@0 17705 } else
michael@0 17706 len += 1 + keylen
michael@0 17707 }
michael@0 17708
michael@0 17709 print line
michael@0 17710 }
michael@0 17711
michael@0 17712 _ACAWK
michael@0 17713 _ACEOF
michael@0 17714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
michael@0 17715 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
michael@0 17716 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
michael@0 17717 else
michael@0 17718 cat
michael@0 17719 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
michael@0 17720 || as_fn_error "could not setup config files machinery" "$LINENO" 5
michael@0 17721 _ACEOF
michael@0 17722
michael@0 17723 # VPATH may cause trouble with some makes, so we remove $(srcdir),
michael@0 17724 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
michael@0 17725 # trailing colons and then remove the whole line if VPATH becomes empty
michael@0 17726 # (actually we leave an empty line to preserve line numbers).
michael@0 17727 if test "x$srcdir" = x.; then
michael@0 17728 ac_vpsub='/^[ ]*VPATH[ ]*=/{
michael@0 17729 s/:*\$(srcdir):*/:/
michael@0 17730 s/:*\${srcdir}:*/:/
michael@0 17731 s/:*@srcdir@:*/:/
michael@0 17732 s/^\([^=]*=[ ]*\):*/\1/
michael@0 17733 s/:*$//
michael@0 17734 s/^[^=]*=[ ]*$//
michael@0 17735 }'
michael@0 17736 fi
michael@0 17737
michael@0 17738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
michael@0 17739 fi # test -n "$CONFIG_FILES"
michael@0 17740
michael@0 17741 # Set up the scripts for CONFIG_HEADERS section.
michael@0 17742 # No need to generate them if there are no CONFIG_HEADERS.
michael@0 17743 # This happens for instance with `./config.status Makefile'.
michael@0 17744 if test -n "$CONFIG_HEADERS"; then
michael@0 17745 cat >"$tmp/defines.awk" <<\_ACAWK ||
michael@0 17746 BEGIN {
michael@0 17747 _ACEOF
michael@0 17748
michael@0 17749 # Transform confdefs.h into an awk script `defines.awk', embedded as
michael@0 17750 # here-document in config.status, that substitutes the proper values into
michael@0 17751 # config.h.in to produce config.h.
michael@0 17752
michael@0 17753 # Create a delimiter string that does not exist in confdefs.h, to ease
michael@0 17754 # handling of long lines.
michael@0 17755 ac_delim='%!_!# '
michael@0 17756 for ac_last_try in false false :; do
michael@0 17757 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
michael@0 17758 if test -z "$ac_t"; then
michael@0 17759 break
michael@0 17760 elif $ac_last_try; then
michael@0 17761 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
michael@0 17762 else
michael@0 17763 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
michael@0 17764 fi
michael@0 17765 done
michael@0 17766
michael@0 17767 # For the awk script, D is an array of macro values keyed by name,
michael@0 17768 # likewise P contains macro parameters if any. Preserve backslash
michael@0 17769 # newline sequences.
michael@0 17770
michael@0 17771 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
michael@0 17772 sed -n '
michael@0 17773 s/.\{148\}/&'"$ac_delim"'/g
michael@0 17774 t rset
michael@0 17775 :rset
michael@0 17776 s/^[ ]*#[ ]*define[ ][ ]*/ /
michael@0 17777 t def
michael@0 17778 d
michael@0 17779 :def
michael@0 17780 s/\\$//
michael@0 17781 t bsnl
michael@0 17782 s/["\\]/\\&/g
michael@0 17783 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
michael@0 17784 D["\1"]=" \3"/p
michael@0 17785 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
michael@0 17786 d
michael@0 17787 :bsnl
michael@0 17788 s/["\\]/\\&/g
michael@0 17789 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
michael@0 17790 D["\1"]=" \3\\\\\\n"\\/p
michael@0 17791 t cont
michael@0 17792 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
michael@0 17793 t cont
michael@0 17794 d
michael@0 17795 :cont
michael@0 17796 n
michael@0 17797 s/.\{148\}/&'"$ac_delim"'/g
michael@0 17798 t clear
michael@0 17799 :clear
michael@0 17800 s/\\$//
michael@0 17801 t bsnlc
michael@0 17802 s/["\\]/\\&/g; s/^/"/; s/$/"/p
michael@0 17803 d
michael@0 17804 :bsnlc
michael@0 17805 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
michael@0 17806 b cont
michael@0 17807 ' <confdefs.h | sed '
michael@0 17808 s/'"$ac_delim"'/"\\\
michael@0 17809 "/g' >>$CONFIG_STATUS || ac_write_fail=1
michael@0 17810
michael@0 17811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
michael@0 17812 for (key in D) D_is_set[key] = 1
michael@0 17813 FS = ""
michael@0 17814 }
michael@0 17815 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
michael@0 17816 line = \$ 0
michael@0 17817 split(line, arg, " ")
michael@0 17818 if (arg[1] == "#") {
michael@0 17819 defundef = arg[2]
michael@0 17820 mac1 = arg[3]
michael@0 17821 } else {
michael@0 17822 defundef = substr(arg[1], 2)
michael@0 17823 mac1 = arg[2]
michael@0 17824 }
michael@0 17825 split(mac1, mac2, "(") #)
michael@0 17826 macro = mac2[1]
michael@0 17827 prefix = substr(line, 1, index(line, defundef) - 1)
michael@0 17828 if (D_is_set[macro]) {
michael@0 17829 # Preserve the white space surrounding the "#".
michael@0 17830 print prefix "define", macro P[macro] D[macro]
michael@0 17831 next
michael@0 17832 } else {
michael@0 17833 # Replace #undef with comments. This is necessary, for example,
michael@0 17834 # in the case of _POSIX_SOURCE, which is predefined and required
michael@0 17835 # on some systems where configure will not decide to define it.
michael@0 17836 if (defundef == "undef") {
michael@0 17837 print "/*", prefix defundef, macro, "*/"
michael@0 17838 next
michael@0 17839 }
michael@0 17840 }
michael@0 17841 }
michael@0 17842 { print }
michael@0 17843 _ACAWK
michael@0 17844 _ACEOF
michael@0 17845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
michael@0 17846 as_fn_error "could not setup config headers machinery" "$LINENO" 5
michael@0 17847 fi # test -n "$CONFIG_HEADERS"
michael@0 17848
michael@0 17849
michael@0 17850 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
michael@0 17851 shift
michael@0 17852 for ac_tag
michael@0 17853 do
michael@0 17854 case $ac_tag in
michael@0 17855 :[FHLC]) ac_mode=$ac_tag; continue;;
michael@0 17856 esac
michael@0 17857 case $ac_mode$ac_tag in
michael@0 17858 :[FHL]*:*);;
michael@0 17859 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
michael@0 17860 :[FH]-) ac_tag=-:-;;
michael@0 17861 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
michael@0 17862 esac
michael@0 17863 ac_save_IFS=$IFS
michael@0 17864 IFS=:
michael@0 17865 set x $ac_tag
michael@0 17866 IFS=$ac_save_IFS
michael@0 17867 shift
michael@0 17868 ac_file=$1
michael@0 17869 shift
michael@0 17870
michael@0 17871 case $ac_mode in
michael@0 17872 :L) ac_source=$1;;
michael@0 17873 :[FH])
michael@0 17874 ac_file_inputs=
michael@0 17875 for ac_f
michael@0 17876 do
michael@0 17877 case $ac_f in
michael@0 17878 -) ac_f="$tmp/stdin";;
michael@0 17879 *) # Look for the file first in the build tree, then in the source tree
michael@0 17880 # (if the path is not absolute). The absolute path cannot be DOS-style,
michael@0 17881 # because $ac_f cannot contain `:'.
michael@0 17882 test -f "$ac_f" ||
michael@0 17883 case $ac_f in
michael@0 17884 [\\/$]*) false;;
michael@0 17885 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
michael@0 17886 esac ||
michael@0 17887 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
michael@0 17888 esac
michael@0 17889 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
michael@0 17890 as_fn_append ac_file_inputs " '$ac_f'"
michael@0 17891 done
michael@0 17892
michael@0 17893 # Let's still pretend it is `configure' which instantiates (i.e., don't
michael@0 17894 # use $as_me), people would be surprised to read:
michael@0 17895 # /* config.h. Generated by config.status. */
michael@0 17896 configure_input='Generated from '`
michael@0 17897 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
michael@0 17898 `' by configure.'
michael@0 17899 if test x"$ac_file" != x-; then
michael@0 17900 configure_input="$ac_file. $configure_input"
michael@0 17901 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
michael@0 17902 $as_echo "$as_me: creating $ac_file" >&6;}
michael@0 17903 fi
michael@0 17904 # Neutralize special characters interpreted by sed in replacement strings.
michael@0 17905 case $configure_input in #(
michael@0 17906 *\&* | *\|* | *\\* )
michael@0 17907 ac_sed_conf_input=`$as_echo "$configure_input" |
michael@0 17908 sed 's/[\\\\&|]/\\\\&/g'`;; #(
michael@0 17909 *) ac_sed_conf_input=$configure_input;;
michael@0 17910 esac
michael@0 17911
michael@0 17912 case $ac_tag in
michael@0 17913 *:-:* | *:-) cat >"$tmp/stdin" \
michael@0 17914 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
michael@0 17915 esac
michael@0 17916 ;;
michael@0 17917 esac
michael@0 17918
michael@0 17919 ac_dir=`$as_dirname -- "$ac_file" ||
michael@0 17920 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
michael@0 17921 X"$ac_file" : 'X\(//\)[^/]' \| \
michael@0 17922 X"$ac_file" : 'X\(//\)$' \| \
michael@0 17923 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
michael@0 17924 $as_echo X"$ac_file" |
michael@0 17925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
michael@0 17926 s//\1/
michael@0 17927 q
michael@0 17928 }
michael@0 17929 /^X\(\/\/\)[^/].*/{
michael@0 17930 s//\1/
michael@0 17931 q
michael@0 17932 }
michael@0 17933 /^X\(\/\/\)$/{
michael@0 17934 s//\1/
michael@0 17935 q
michael@0 17936 }
michael@0 17937 /^X\(\/\).*/{
michael@0 17938 s//\1/
michael@0 17939 q
michael@0 17940 }
michael@0 17941 s/.*/./; q'`
michael@0 17942 as_dir="$ac_dir"; as_fn_mkdir_p
michael@0 17943 ac_builddir=.
michael@0 17944
michael@0 17945 case "$ac_dir" in
michael@0 17946 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
michael@0 17947 *)
michael@0 17948 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
michael@0 17949 # A ".." for each directory in $ac_dir_suffix.
michael@0 17950 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
michael@0 17951 case $ac_top_builddir_sub in
michael@0 17952 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
michael@0 17953 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
michael@0 17954 esac ;;
michael@0 17955 esac
michael@0 17956 ac_abs_top_builddir=$ac_pwd
michael@0 17957 ac_abs_builddir=$ac_pwd$ac_dir_suffix
michael@0 17958 # for backward compatibility:
michael@0 17959 ac_top_builddir=$ac_top_build_prefix
michael@0 17960
michael@0 17961 case $srcdir in
michael@0 17962 .) # We are building in place.
michael@0 17963 ac_srcdir=.
michael@0 17964 ac_top_srcdir=$ac_top_builddir_sub
michael@0 17965 ac_abs_top_srcdir=$ac_pwd ;;
michael@0 17966 [\\/]* | ?:[\\/]* ) # Absolute name.
michael@0 17967 ac_srcdir=$srcdir$ac_dir_suffix;
michael@0 17968 ac_top_srcdir=$srcdir
michael@0 17969 ac_abs_top_srcdir=$srcdir ;;
michael@0 17970 *) # Relative name.
michael@0 17971 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
michael@0 17972 ac_top_srcdir=$ac_top_build_prefix$srcdir
michael@0 17973 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
michael@0 17974 esac
michael@0 17975 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
michael@0 17976
michael@0 17977
michael@0 17978 case $ac_mode in
michael@0 17979 :F)
michael@0 17980 #
michael@0 17981 # CONFIG_FILE
michael@0 17982 #
michael@0 17983
michael@0 17984 case $INSTALL in
michael@0 17985 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
michael@0 17986 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
michael@0 17987 esac
michael@0 17988 ac_MKDIR_P=$MKDIR_P
michael@0 17989 case $MKDIR_P in
michael@0 17990 [\\/$]* | ?:[\\/]* ) ;;
michael@0 17991 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
michael@0 17992 esac
michael@0 17993 _ACEOF
michael@0 17994
michael@0 17995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
michael@0 17996 # If the template does not know about datarootdir, expand it.
michael@0 17997 # FIXME: This hack should be removed a few years after 2.60.
michael@0 17998 ac_datarootdir_hack=; ac_datarootdir_seen=
michael@0 17999 ac_sed_dataroot='
michael@0 18000 /datarootdir/ {
michael@0 18001 p
michael@0 18002 q
michael@0 18003 }
michael@0 18004 /@datadir@/p
michael@0 18005 /@docdir@/p
michael@0 18006 /@infodir@/p
michael@0 18007 /@localedir@/p
michael@0 18008 /@mandir@/p'
michael@0 18009 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
michael@0 18010 *datarootdir*) ac_datarootdir_seen=yes;;
michael@0 18011 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
michael@0 18012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
michael@0 18013 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
michael@0 18014 _ACEOF
michael@0 18015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
michael@0 18016 ac_datarootdir_hack='
michael@0 18017 s&@datadir@&$datadir&g
michael@0 18018 s&@docdir@&$docdir&g
michael@0 18019 s&@infodir@&$infodir&g
michael@0 18020 s&@localedir@&$localedir&g
michael@0 18021 s&@mandir@&$mandir&g
michael@0 18022 s&\\\${datarootdir}&$datarootdir&g' ;;
michael@0 18023 esac
michael@0 18024 _ACEOF
michael@0 18025
michael@0 18026 # Neutralize VPATH when `$srcdir' = `.'.
michael@0 18027 # Shell code in configure.ac might set extrasub.
michael@0 18028 # FIXME: do we really want to maintain this feature?
michael@0 18029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
michael@0 18030 ac_sed_extra="$ac_vpsub
michael@0 18031 $extrasub
michael@0 18032 _ACEOF
michael@0 18033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
michael@0 18034 :t
michael@0 18035 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
michael@0 18036 s|@configure_input@|$ac_sed_conf_input|;t t
michael@0 18037 s&@top_builddir@&$ac_top_builddir_sub&;t t
michael@0 18038 s&@top_build_prefix@&$ac_top_build_prefix&;t t
michael@0 18039 s&@srcdir@&$ac_srcdir&;t t
michael@0 18040 s&@abs_srcdir@&$ac_abs_srcdir&;t t
michael@0 18041 s&@top_srcdir@&$ac_top_srcdir&;t t
michael@0 18042 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
michael@0 18043 s&@builddir@&$ac_builddir&;t t
michael@0 18044 s&@abs_builddir@&$ac_abs_builddir&;t t
michael@0 18045 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
michael@0 18046 s&@INSTALL@&$ac_INSTALL&;t t
michael@0 18047 s&@MKDIR_P@&$ac_MKDIR_P&;t t
michael@0 18048 $ac_datarootdir_hack
michael@0 18049 "
michael@0 18050 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
michael@0 18051 || as_fn_error "could not create $ac_file" "$LINENO" 5
michael@0 18052
michael@0 18053 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
michael@0 18054 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
michael@0 18055 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
michael@0 18056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
michael@0 18057 which seems to be undefined. Please make sure it is defined." >&5
michael@0 18058 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
michael@0 18059 which seems to be undefined. Please make sure it is defined." >&2;}
michael@0 18060
michael@0 18061 rm -f "$tmp/stdin"
michael@0 18062 case $ac_file in
michael@0 18063 -) cat "$tmp/out" && rm -f "$tmp/out";;
michael@0 18064 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
michael@0 18065 esac \
michael@0 18066 || as_fn_error "could not create $ac_file" "$LINENO" 5
michael@0 18067 ;;
michael@0 18068 :H)
michael@0 18069 #
michael@0 18070 # CONFIG_HEADER
michael@0 18071 #
michael@0 18072 if test x"$ac_file" != x-; then
michael@0 18073 {
michael@0 18074 $as_echo "/* $configure_input */" \
michael@0 18075 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
michael@0 18076 } >"$tmp/config.h" \
michael@0 18077 || as_fn_error "could not create $ac_file" "$LINENO" 5
michael@0 18078 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
michael@0 18079 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
michael@0 18080 $as_echo "$as_me: $ac_file is unchanged" >&6;}
michael@0 18081 else
michael@0 18082 rm -f "$ac_file"
michael@0 18083 mv "$tmp/config.h" "$ac_file" \
michael@0 18084 || as_fn_error "could not create $ac_file" "$LINENO" 5
michael@0 18085 fi
michael@0 18086 else
michael@0 18087 $as_echo "/* $configure_input */" \
michael@0 18088 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
michael@0 18089 || as_fn_error "could not create -" "$LINENO" 5
michael@0 18090 fi
michael@0 18091 # Compute "$ac_file"'s index in $config_headers.
michael@0 18092 _am_arg="$ac_file"
michael@0 18093 _am_stamp_count=1
michael@0 18094 for _am_header in $config_headers :; do
michael@0 18095 case $_am_header in
michael@0 18096 $_am_arg | $_am_arg:* )
michael@0 18097 break ;;
michael@0 18098 * )
michael@0 18099 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
michael@0 18100 esac
michael@0 18101 done
michael@0 18102 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
michael@0 18103 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
michael@0 18104 X"$_am_arg" : 'X\(//\)[^/]' \| \
michael@0 18105 X"$_am_arg" : 'X\(//\)$' \| \
michael@0 18106 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
michael@0 18107 $as_echo X"$_am_arg" |
michael@0 18108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
michael@0 18109 s//\1/
michael@0 18110 q
michael@0 18111 }
michael@0 18112 /^X\(\/\/\)[^/].*/{
michael@0 18113 s//\1/
michael@0 18114 q
michael@0 18115 }
michael@0 18116 /^X\(\/\/\)$/{
michael@0 18117 s//\1/
michael@0 18118 q
michael@0 18119 }
michael@0 18120 /^X\(\/\).*/{
michael@0 18121 s//\1/
michael@0 18122 q
michael@0 18123 }
michael@0 18124 s/.*/./; q'`/stamp-h$_am_stamp_count
michael@0 18125 ;;
michael@0 18126
michael@0 18127 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
michael@0 18128 $as_echo "$as_me: executing $ac_file commands" >&6;}
michael@0 18129 ;;
michael@0 18130 esac
michael@0 18131
michael@0 18132
michael@0 18133 case $ac_file$ac_mode in
michael@0 18134 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
michael@0 18135 # Autoconf 2.62 quotes --file arguments for eval, but not when files
michael@0 18136 # are listed without --file. Let's play safe and only enable the eval
michael@0 18137 # if we detect the quoting.
michael@0 18138 case $CONFIG_FILES in
michael@0 18139 *\'*) eval set x "$CONFIG_FILES" ;;
michael@0 18140 *) set x $CONFIG_FILES ;;
michael@0 18141 esac
michael@0 18142 shift
michael@0 18143 for mf
michael@0 18144 do
michael@0 18145 # Strip MF so we end up with the name of the file.
michael@0 18146 mf=`echo "$mf" | sed -e 's/:.*$//'`
michael@0 18147 # Check whether this is an Automake generated Makefile or not.
michael@0 18148 # We used to match only the files named `Makefile.in', but
michael@0 18149 # some people rename them; so instead we look at the file content.
michael@0 18150 # Grep'ing the first line is not enough: some people post-process
michael@0 18151 # each Makefile.in and add a new line on top of each file to say so.
michael@0 18152 # Grep'ing the whole file is not good either: AIX grep has a line
michael@0 18153 # limit of 2048, but all sed's we know have understand at least 4000.
michael@0 18154 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
michael@0 18155 dirpart=`$as_dirname -- "$mf" ||
michael@0 18156 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
michael@0 18157 X"$mf" : 'X\(//\)[^/]' \| \
michael@0 18158 X"$mf" : 'X\(//\)$' \| \
michael@0 18159 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
michael@0 18160 $as_echo X"$mf" |
michael@0 18161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
michael@0 18162 s//\1/
michael@0 18163 q
michael@0 18164 }
michael@0 18165 /^X\(\/\/\)[^/].*/{
michael@0 18166 s//\1/
michael@0 18167 q
michael@0 18168 }
michael@0 18169 /^X\(\/\/\)$/{
michael@0 18170 s//\1/
michael@0 18171 q
michael@0 18172 }
michael@0 18173 /^X\(\/\).*/{
michael@0 18174 s//\1/
michael@0 18175 q
michael@0 18176 }
michael@0 18177 s/.*/./; q'`
michael@0 18178 else
michael@0 18179 continue
michael@0 18180 fi
michael@0 18181 # Extract the definition of DEPDIR, am__include, and am__quote
michael@0 18182 # from the Makefile without running `make'.
michael@0 18183 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
michael@0 18184 test -z "$DEPDIR" && continue
michael@0 18185 am__include=`sed -n 's/^am__include = //p' < "$mf"`
michael@0 18186 test -z "am__include" && continue
michael@0 18187 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
michael@0 18188 # When using ansi2knr, U may be empty or an underscore; expand it
michael@0 18189 U=`sed -n 's/^U = //p' < "$mf"`
michael@0 18190 # Find all dependency output files, they are included files with
michael@0 18191 # $(DEPDIR) in their names. We invoke sed twice because it is the
michael@0 18192 # simplest approach to changing $(DEPDIR) to its actual value in the
michael@0 18193 # expansion.
michael@0 18194 for file in `sed -n "
michael@0 18195 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
michael@0 18196 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
michael@0 18197 # Make sure the directory exists.
michael@0 18198 test -f "$dirpart/$file" && continue
michael@0 18199 fdir=`$as_dirname -- "$file" ||
michael@0 18200 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
michael@0 18201 X"$file" : 'X\(//\)[^/]' \| \
michael@0 18202 X"$file" : 'X\(//\)$' \| \
michael@0 18203 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
michael@0 18204 $as_echo X"$file" |
michael@0 18205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
michael@0 18206 s//\1/
michael@0 18207 q
michael@0 18208 }
michael@0 18209 /^X\(\/\/\)[^/].*/{
michael@0 18210 s//\1/
michael@0 18211 q
michael@0 18212 }
michael@0 18213 /^X\(\/\/\)$/{
michael@0 18214 s//\1/
michael@0 18215 q
michael@0 18216 }
michael@0 18217 /^X\(\/\).*/{
michael@0 18218 s//\1/
michael@0 18219 q
michael@0 18220 }
michael@0 18221 s/.*/./; q'`
michael@0 18222 as_dir=$dirpart/$fdir; as_fn_mkdir_p
michael@0 18223 # echo "creating $dirpart/$file"
michael@0 18224 echo '# dummy' > "$dirpart/$file"
michael@0 18225 done
michael@0 18226 done
michael@0 18227 }
michael@0 18228 ;;
michael@0 18229 "libtool":C)
michael@0 18230
michael@0 18231 # See if we are running on zsh, and set the options which allow our
michael@0 18232 # commands through without removal of \ escapes.
michael@0 18233 if test -n "${ZSH_VERSION+set}" ; then
michael@0 18234 setopt NO_GLOB_SUBST
michael@0 18235 fi
michael@0 18236
michael@0 18237 cfgfile="${ofile}T"
michael@0 18238 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
michael@0 18239 $RM "$cfgfile"
michael@0 18240
michael@0 18241 cat <<_LT_EOF >> "$cfgfile"
michael@0 18242 #! $SHELL
michael@0 18243
michael@0 18244 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
michael@0 18245 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
michael@0 18246 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
michael@0 18247 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
michael@0 18248 #
michael@0 18249 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
michael@0 18250 # 2006, 2007, 2008 Free Software Foundation, Inc.
michael@0 18251 # Written by Gordon Matzigkeit, 1996
michael@0 18252 #
michael@0 18253 # This file is part of GNU Libtool.
michael@0 18254 #
michael@0 18255 # GNU Libtool is free software; you can redistribute it and/or
michael@0 18256 # modify it under the terms of the GNU General Public License as
michael@0 18257 # published by the Free Software Foundation; either version 2 of
michael@0 18258 # the License, or (at your option) any later version.
michael@0 18259 #
michael@0 18260 # As a special exception to the GNU General Public License,
michael@0 18261 # if you distribute this file as part of a program or library that
michael@0 18262 # is built using GNU Libtool, you may include this file under the
michael@0 18263 # same distribution terms that you use for the rest of that program.
michael@0 18264 #
michael@0 18265 # GNU Libtool is distributed in the hope that it will be useful,
michael@0 18266 # but WITHOUT ANY WARRANTY; without even the implied warranty of
michael@0 18267 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
michael@0 18268 # GNU General Public License for more details.
michael@0 18269 #
michael@0 18270 # You should have received a copy of the GNU General Public License
michael@0 18271 # along with GNU Libtool; see the file COPYING. If not, a copy
michael@0 18272 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
michael@0 18273 # obtained by writing to the Free Software Foundation, Inc.,
michael@0 18274 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
michael@0 18275
michael@0 18276
michael@0 18277 # The names of the tagged configurations supported by this script.
michael@0 18278 available_tags="CXX "
michael@0 18279
michael@0 18280 # ### BEGIN LIBTOOL CONFIG
michael@0 18281
michael@0 18282 # Which release of libtool.m4 was used?
michael@0 18283 macro_version=$macro_version
michael@0 18284 macro_revision=$macro_revision
michael@0 18285
michael@0 18286 # Whether or not to build shared libraries.
michael@0 18287 build_libtool_libs=$enable_shared
michael@0 18288
michael@0 18289 # Whether or not to build static libraries.
michael@0 18290 build_old_libs=$enable_static
michael@0 18291
michael@0 18292 # What type of objects to build.
michael@0 18293 pic_mode=$pic_mode
michael@0 18294
michael@0 18295 # Whether or not to optimize for fast installation.
michael@0 18296 fast_install=$enable_fast_install
michael@0 18297
michael@0 18298 # The host system.
michael@0 18299 host_alias=$host_alias
michael@0 18300 host=$host
michael@0 18301 host_os=$host_os
michael@0 18302
michael@0 18303 # The build system.
michael@0 18304 build_alias=$build_alias
michael@0 18305 build=$build
michael@0 18306 build_os=$build_os
michael@0 18307
michael@0 18308 # A sed program that does not truncate output.
michael@0 18309 SED=$lt_SED
michael@0 18310
michael@0 18311 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
michael@0 18312 Xsed="\$SED -e 1s/^X//"
michael@0 18313
michael@0 18314 # A grep program that handles long lines.
michael@0 18315 GREP=$lt_GREP
michael@0 18316
michael@0 18317 # An ERE matcher.
michael@0 18318 EGREP=$lt_EGREP
michael@0 18319
michael@0 18320 # A literal string matcher.
michael@0 18321 FGREP=$lt_FGREP
michael@0 18322
michael@0 18323 # A BSD- or MS-compatible name lister.
michael@0 18324 NM=$lt_NM
michael@0 18325
michael@0 18326 # Whether we need soft or hard links.
michael@0 18327 LN_S=$lt_LN_S
michael@0 18328
michael@0 18329 # What is the maximum length of a command?
michael@0 18330 max_cmd_len=$max_cmd_len
michael@0 18331
michael@0 18332 # Object file suffix (normally "o").
michael@0 18333 objext=$ac_objext
michael@0 18334
michael@0 18335 # Executable file suffix (normally "").
michael@0 18336 exeext=$exeext
michael@0 18337
michael@0 18338 # whether the shell understands "unset".
michael@0 18339 lt_unset=$lt_unset
michael@0 18340
michael@0 18341 # turn spaces into newlines.
michael@0 18342 SP2NL=$lt_lt_SP2NL
michael@0 18343
michael@0 18344 # turn newlines into spaces.
michael@0 18345 NL2SP=$lt_lt_NL2SP
michael@0 18346
michael@0 18347 # How to create reloadable object files.
michael@0 18348 reload_flag=$lt_reload_flag
michael@0 18349 reload_cmds=$lt_reload_cmds
michael@0 18350
michael@0 18351 # An object symbol dumper.
michael@0 18352 OBJDUMP=$lt_OBJDUMP
michael@0 18353
michael@0 18354 # Method to check whether dependent libraries are shared objects.
michael@0 18355 deplibs_check_method=$lt_deplibs_check_method
michael@0 18356
michael@0 18357 # Command to use when deplibs_check_method == "file_magic".
michael@0 18358 file_magic_cmd=$lt_file_magic_cmd
michael@0 18359
michael@0 18360 # The archiver.
michael@0 18361 AR=$lt_AR
michael@0 18362 AR_FLAGS=$lt_AR_FLAGS
michael@0 18363
michael@0 18364 # A symbol stripping program.
michael@0 18365 STRIP=$lt_STRIP
michael@0 18366
michael@0 18367 # Commands used to install an old-style archive.
michael@0 18368 RANLIB=$lt_RANLIB
michael@0 18369 old_postinstall_cmds=$lt_old_postinstall_cmds
michael@0 18370 old_postuninstall_cmds=$lt_old_postuninstall_cmds
michael@0 18371
michael@0 18372 # A C compiler.
michael@0 18373 LTCC=$lt_CC
michael@0 18374
michael@0 18375 # LTCC compiler flags.
michael@0 18376 LTCFLAGS=$lt_CFLAGS
michael@0 18377
michael@0 18378 # Take the output of nm and produce a listing of raw symbols and C names.
michael@0 18379 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
michael@0 18380
michael@0 18381 # Transform the output of nm in a proper C declaration.
michael@0 18382 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
michael@0 18383
michael@0 18384 # Transform the output of nm in a C name address pair.
michael@0 18385 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
michael@0 18386
michael@0 18387 # Transform the output of nm in a C name address pair when lib prefix is needed.
michael@0 18388 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
michael@0 18389
michael@0 18390 # The name of the directory that contains temporary libtool files.
michael@0 18391 objdir=$objdir
michael@0 18392
michael@0 18393 # Shell to use when invoking shell scripts.
michael@0 18394 SHELL=$lt_SHELL
michael@0 18395
michael@0 18396 # An echo program that does not interpret backslashes.
michael@0 18397 ECHO=$lt_ECHO
michael@0 18398
michael@0 18399 # Used to examine libraries when file_magic_cmd begins with "file".
michael@0 18400 MAGIC_CMD=$MAGIC_CMD
michael@0 18401
michael@0 18402 # Must we lock files when doing compilation?
michael@0 18403 need_locks=$lt_need_locks
michael@0 18404
michael@0 18405 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
michael@0 18406 DSYMUTIL=$lt_DSYMUTIL
michael@0 18407
michael@0 18408 # Tool to change global to local symbols on Mac OS X.
michael@0 18409 NMEDIT=$lt_NMEDIT
michael@0 18410
michael@0 18411 # Tool to manipulate fat objects and archives on Mac OS X.
michael@0 18412 LIPO=$lt_LIPO
michael@0 18413
michael@0 18414 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
michael@0 18415 OTOOL=$lt_OTOOL
michael@0 18416
michael@0 18417 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
michael@0 18418 OTOOL64=$lt_OTOOL64
michael@0 18419
michael@0 18420 # Old archive suffix (normally "a").
michael@0 18421 libext=$libext
michael@0 18422
michael@0 18423 # Shared library suffix (normally ".so").
michael@0 18424 shrext_cmds=$lt_shrext_cmds
michael@0 18425
michael@0 18426 # The commands to extract the exported symbol list from a shared archive.
michael@0 18427 extract_expsyms_cmds=$lt_extract_expsyms_cmds
michael@0 18428
michael@0 18429 # Variables whose values should be saved in libtool wrapper scripts and
michael@0 18430 # restored at link time.
michael@0 18431 variables_saved_for_relink=$lt_variables_saved_for_relink
michael@0 18432
michael@0 18433 # Do we need the "lib" prefix for modules?
michael@0 18434 need_lib_prefix=$need_lib_prefix
michael@0 18435
michael@0 18436 # Do we need a version for libraries?
michael@0 18437 need_version=$need_version
michael@0 18438
michael@0 18439 # Library versioning type.
michael@0 18440 version_type=$version_type
michael@0 18441
michael@0 18442 # Shared library runtime path variable.
michael@0 18443 runpath_var=$runpath_var
michael@0 18444
michael@0 18445 # Shared library path variable.
michael@0 18446 shlibpath_var=$shlibpath_var
michael@0 18447
michael@0 18448 # Is shlibpath searched before the hard-coded library search path?
michael@0 18449 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
michael@0 18450
michael@0 18451 # Format of library name prefix.
michael@0 18452 libname_spec=$lt_libname_spec
michael@0 18453
michael@0 18454 # List of archive names. First name is the real one, the rest are links.
michael@0 18455 # The last name is the one that the linker finds with -lNAME
michael@0 18456 library_names_spec=$lt_library_names_spec
michael@0 18457
michael@0 18458 # The coded name of the library, if different from the real name.
michael@0 18459 soname_spec=$lt_soname_spec
michael@0 18460
michael@0 18461 # Command to use after installation of a shared archive.
michael@0 18462 postinstall_cmds=$lt_postinstall_cmds
michael@0 18463
michael@0 18464 # Command to use after uninstallation of a shared archive.
michael@0 18465 postuninstall_cmds=$lt_postuninstall_cmds
michael@0 18466
michael@0 18467 # Commands used to finish a libtool library installation in a directory.
michael@0 18468 finish_cmds=$lt_finish_cmds
michael@0 18469
michael@0 18470 # As "finish_cmds", except a single script fragment to be evaled but
michael@0 18471 # not shown.
michael@0 18472 finish_eval=$lt_finish_eval
michael@0 18473
michael@0 18474 # Whether we should hardcode library paths into libraries.
michael@0 18475 hardcode_into_libs=$hardcode_into_libs
michael@0 18476
michael@0 18477 # Compile-time system search path for libraries.
michael@0 18478 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
michael@0 18479
michael@0 18480 # Run-time system search path for libraries.
michael@0 18481 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
michael@0 18482
michael@0 18483 # Whether dlopen is supported.
michael@0 18484 dlopen_support=$enable_dlopen
michael@0 18485
michael@0 18486 # Whether dlopen of programs is supported.
michael@0 18487 dlopen_self=$enable_dlopen_self
michael@0 18488
michael@0 18489 # Whether dlopen of statically linked programs is supported.
michael@0 18490 dlopen_self_static=$enable_dlopen_self_static
michael@0 18491
michael@0 18492 # Commands to strip libraries.
michael@0 18493 old_striplib=$lt_old_striplib
michael@0 18494 striplib=$lt_striplib
michael@0 18495
michael@0 18496
michael@0 18497 # The linker used to build libraries.
michael@0 18498 LD=$lt_LD
michael@0 18499
michael@0 18500 # Commands used to build an old-style archive.
michael@0 18501 old_archive_cmds=$lt_old_archive_cmds
michael@0 18502
michael@0 18503 # A language specific compiler.
michael@0 18504 CC=$lt_compiler
michael@0 18505
michael@0 18506 # Is the compiler the GNU compiler?
michael@0 18507 with_gcc=$GCC
michael@0 18508
michael@0 18509 # Compiler flag to turn off builtin functions.
michael@0 18510 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
michael@0 18511
michael@0 18512 # How to pass a linker flag through the compiler.
michael@0 18513 wl=$lt_lt_prog_compiler_wl
michael@0 18514
michael@0 18515 # Additional compiler flags for building library objects.
michael@0 18516 pic_flag=$lt_lt_prog_compiler_pic
michael@0 18517
michael@0 18518 # Compiler flag to prevent dynamic linking.
michael@0 18519 link_static_flag=$lt_lt_prog_compiler_static
michael@0 18520
michael@0 18521 # Does compiler simultaneously support -c and -o options?
michael@0 18522 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
michael@0 18523
michael@0 18524 # Whether or not to add -lc for building shared libraries.
michael@0 18525 build_libtool_need_lc=$archive_cmds_need_lc
michael@0 18526
michael@0 18527 # Whether or not to disallow shared libs when runtime libs are static.
michael@0 18528 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
michael@0 18529
michael@0 18530 # Compiler flag to allow reflexive dlopens.
michael@0 18531 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
michael@0 18532
michael@0 18533 # Compiler flag to generate shared objects directly from archives.
michael@0 18534 whole_archive_flag_spec=$lt_whole_archive_flag_spec
michael@0 18535
michael@0 18536 # Whether the compiler copes with passing no objects directly.
michael@0 18537 compiler_needs_object=$lt_compiler_needs_object
michael@0 18538
michael@0 18539 # Create an old-style archive from a shared archive.
michael@0 18540 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
michael@0 18541
michael@0 18542 # Create a temporary old-style archive to link instead of a shared archive.
michael@0 18543 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
michael@0 18544
michael@0 18545 # Commands used to build a shared archive.
michael@0 18546 archive_cmds=$lt_archive_cmds
michael@0 18547 archive_expsym_cmds=$lt_archive_expsym_cmds
michael@0 18548
michael@0 18549 # Commands used to build a loadable module if different from building
michael@0 18550 # a shared archive.
michael@0 18551 module_cmds=$lt_module_cmds
michael@0 18552 module_expsym_cmds=$lt_module_expsym_cmds
michael@0 18553
michael@0 18554 # Whether we are building with GNU ld or not.
michael@0 18555 with_gnu_ld=$lt_with_gnu_ld
michael@0 18556
michael@0 18557 # Flag that allows shared libraries with undefined symbols to be built.
michael@0 18558 allow_undefined_flag=$lt_allow_undefined_flag
michael@0 18559
michael@0 18560 # Flag that enforces no undefined symbols.
michael@0 18561 no_undefined_flag=$lt_no_undefined_flag
michael@0 18562
michael@0 18563 # Flag to hardcode \$libdir into a binary during linking.
michael@0 18564 # This must work even if \$libdir does not exist
michael@0 18565 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
michael@0 18566
michael@0 18567 # If ld is used when linking, flag to hardcode \$libdir into a binary
michael@0 18568 # during linking. This must work even if \$libdir does not exist.
michael@0 18569 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
michael@0 18570
michael@0 18571 # Whether we need a single "-rpath" flag with a separated argument.
michael@0 18572 hardcode_libdir_separator=$lt_hardcode_libdir_separator
michael@0 18573
michael@0 18574 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
michael@0 18575 # DIR into the resulting binary.
michael@0 18576 hardcode_direct=$hardcode_direct
michael@0 18577
michael@0 18578 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
michael@0 18579 # DIR into the resulting binary and the resulting library dependency is
michael@0 18580 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
michael@0 18581 # library is relocated.
michael@0 18582 hardcode_direct_absolute=$hardcode_direct_absolute
michael@0 18583
michael@0 18584 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
michael@0 18585 # into the resulting binary.
michael@0 18586 hardcode_minus_L=$hardcode_minus_L
michael@0 18587
michael@0 18588 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
michael@0 18589 # into the resulting binary.
michael@0 18590 hardcode_shlibpath_var=$hardcode_shlibpath_var
michael@0 18591
michael@0 18592 # Set to "yes" if building a shared library automatically hardcodes DIR
michael@0 18593 # into the library and all subsequent libraries and executables linked
michael@0 18594 # against it.
michael@0 18595 hardcode_automatic=$hardcode_automatic
michael@0 18596
michael@0 18597 # Set to yes if linker adds runtime paths of dependent libraries
michael@0 18598 # to runtime path list.
michael@0 18599 inherit_rpath=$inherit_rpath
michael@0 18600
michael@0 18601 # Whether libtool must link a program against all its dependency libraries.
michael@0 18602 link_all_deplibs=$link_all_deplibs
michael@0 18603
michael@0 18604 # Fix the shell variable \$srcfile for the compiler.
michael@0 18605 fix_srcfile_path=$lt_fix_srcfile_path
michael@0 18606
michael@0 18607 # Set to "yes" if exported symbols are required.
michael@0 18608 always_export_symbols=$always_export_symbols
michael@0 18609
michael@0 18610 # The commands to list exported symbols.
michael@0 18611 export_symbols_cmds=$lt_export_symbols_cmds
michael@0 18612
michael@0 18613 # Symbols that should not be listed in the preloaded symbols.
michael@0 18614 exclude_expsyms=$lt_exclude_expsyms
michael@0 18615
michael@0 18616 # Symbols that must always be exported.
michael@0 18617 include_expsyms=$lt_include_expsyms
michael@0 18618
michael@0 18619 # Commands necessary for linking programs (against libraries) with templates.
michael@0 18620 prelink_cmds=$lt_prelink_cmds
michael@0 18621
michael@0 18622 # Specify filename containing input files.
michael@0 18623 file_list_spec=$lt_file_list_spec
michael@0 18624
michael@0 18625 # How to hardcode a shared library path into an executable.
michael@0 18626 hardcode_action=$hardcode_action
michael@0 18627
michael@0 18628 # The directories searched by this compiler when creating a shared library.
michael@0 18629 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
michael@0 18630
michael@0 18631 # Dependencies to place before and after the objects being linked to
michael@0 18632 # create a shared library.
michael@0 18633 predep_objects=$lt_predep_objects
michael@0 18634 postdep_objects=$lt_postdep_objects
michael@0 18635 predeps=$lt_predeps
michael@0 18636 postdeps=$lt_postdeps
michael@0 18637
michael@0 18638 # The library search path used internally by the compiler when linking
michael@0 18639 # a shared library.
michael@0 18640 compiler_lib_search_path=$lt_compiler_lib_search_path
michael@0 18641
michael@0 18642 # ### END LIBTOOL CONFIG
michael@0 18643
michael@0 18644 _LT_EOF
michael@0 18645
michael@0 18646 case $host_os in
michael@0 18647 aix3*)
michael@0 18648 cat <<\_LT_EOF >> "$cfgfile"
michael@0 18649 # AIX sometimes has problems with the GCC collect2 program. For some
michael@0 18650 # reason, if we set the COLLECT_NAMES environment variable, the problems
michael@0 18651 # vanish in a puff of smoke.
michael@0 18652 if test "X${COLLECT_NAMES+set}" != Xset; then
michael@0 18653 COLLECT_NAMES=
michael@0 18654 export COLLECT_NAMES
michael@0 18655 fi
michael@0 18656 _LT_EOF
michael@0 18657 ;;
michael@0 18658 esac
michael@0 18659
michael@0 18660
michael@0 18661 ltmain="$ac_aux_dir/ltmain.sh"
michael@0 18662
michael@0 18663
michael@0 18664 # We use sed instead of cat because bash on DJGPP gets confused if
michael@0 18665 # if finds mixed CR/LF and LF-only lines. Since sed operates in
michael@0 18666 # text mode, it properly converts lines to CR/LF. This bash problem
michael@0 18667 # is reportedly fixed, but why not run on old versions too?
michael@0 18668 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
michael@0 18669 || (rm -f "$cfgfile"; exit 1)
michael@0 18670
michael@0 18671 case $xsi_shell in
michael@0 18672 yes)
michael@0 18673 cat << \_LT_EOF >> "$cfgfile"
michael@0 18674
michael@0 18675 # func_dirname file append nondir_replacement
michael@0 18676 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
michael@0 18677 # otherwise set result to NONDIR_REPLACEMENT.
michael@0 18678 func_dirname ()
michael@0 18679 {
michael@0 18680 case ${1} in
michael@0 18681 */*) func_dirname_result="${1%/*}${2}" ;;
michael@0 18682 * ) func_dirname_result="${3}" ;;
michael@0 18683 esac
michael@0 18684 }
michael@0 18685
michael@0 18686 # func_basename file
michael@0 18687 func_basename ()
michael@0 18688 {
michael@0 18689 func_basename_result="${1##*/}"
michael@0 18690 }
michael@0 18691
michael@0 18692 # func_dirname_and_basename file append nondir_replacement
michael@0 18693 # perform func_basename and func_dirname in a single function
michael@0 18694 # call:
michael@0 18695 # dirname: Compute the dirname of FILE. If nonempty,
michael@0 18696 # add APPEND to the result, otherwise set result
michael@0 18697 # to NONDIR_REPLACEMENT.
michael@0 18698 # value returned in "$func_dirname_result"
michael@0 18699 # basename: Compute filename of FILE.
michael@0 18700 # value retuned in "$func_basename_result"
michael@0 18701 # Implementation must be kept synchronized with func_dirname
michael@0 18702 # and func_basename. For efficiency, we do not delegate to
michael@0 18703 # those functions but instead duplicate the functionality here.
michael@0 18704 func_dirname_and_basename ()
michael@0 18705 {
michael@0 18706 case ${1} in
michael@0 18707 */*) func_dirname_result="${1%/*}${2}" ;;
michael@0 18708 * ) func_dirname_result="${3}" ;;
michael@0 18709 esac
michael@0 18710 func_basename_result="${1##*/}"
michael@0 18711 }
michael@0 18712
michael@0 18713 # func_stripname prefix suffix name
michael@0 18714 # strip PREFIX and SUFFIX off of NAME.
michael@0 18715 # PREFIX and SUFFIX must not contain globbing or regex special
michael@0 18716 # characters, hashes, percent signs, but SUFFIX may contain a leading
michael@0 18717 # dot (in which case that matches only a dot).
michael@0 18718 func_stripname ()
michael@0 18719 {
michael@0 18720 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
michael@0 18721 # positional parameters, so assign one to ordinary parameter first.
michael@0 18722 func_stripname_result=${3}
michael@0 18723 func_stripname_result=${func_stripname_result#"${1}"}
michael@0 18724 func_stripname_result=${func_stripname_result%"${2}"}
michael@0 18725 }
michael@0 18726
michael@0 18727 # func_opt_split
michael@0 18728 func_opt_split ()
michael@0 18729 {
michael@0 18730 func_opt_split_opt=${1%%=*}
michael@0 18731 func_opt_split_arg=${1#*=}
michael@0 18732 }
michael@0 18733
michael@0 18734 # func_lo2o object
michael@0 18735 func_lo2o ()
michael@0 18736 {
michael@0 18737 case ${1} in
michael@0 18738 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
michael@0 18739 *) func_lo2o_result=${1} ;;
michael@0 18740 esac
michael@0 18741 }
michael@0 18742
michael@0 18743 # func_xform libobj-or-source
michael@0 18744 func_xform ()
michael@0 18745 {
michael@0 18746 func_xform_result=${1%.*}.lo
michael@0 18747 }
michael@0 18748
michael@0 18749 # func_arith arithmetic-term...
michael@0 18750 func_arith ()
michael@0 18751 {
michael@0 18752 func_arith_result=$(( $* ))
michael@0 18753 }
michael@0 18754
michael@0 18755 # func_len string
michael@0 18756 # STRING may not start with a hyphen.
michael@0 18757 func_len ()
michael@0 18758 {
michael@0 18759 func_len_result=${#1}
michael@0 18760 }
michael@0 18761
michael@0 18762 _LT_EOF
michael@0 18763 ;;
michael@0 18764 *) # Bourne compatible functions.
michael@0 18765 cat << \_LT_EOF >> "$cfgfile"
michael@0 18766
michael@0 18767 # func_dirname file append nondir_replacement
michael@0 18768 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
michael@0 18769 # otherwise set result to NONDIR_REPLACEMENT.
michael@0 18770 func_dirname ()
michael@0 18771 {
michael@0 18772 # Extract subdirectory from the argument.
michael@0 18773 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
michael@0 18774 if test "X$func_dirname_result" = "X${1}"; then
michael@0 18775 func_dirname_result="${3}"
michael@0 18776 else
michael@0 18777 func_dirname_result="$func_dirname_result${2}"
michael@0 18778 fi
michael@0 18779 }
michael@0 18780
michael@0 18781 # func_basename file
michael@0 18782 func_basename ()
michael@0 18783 {
michael@0 18784 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
michael@0 18785 }
michael@0 18786
michael@0 18787
michael@0 18788 # func_stripname prefix suffix name
michael@0 18789 # strip PREFIX and SUFFIX off of NAME.
michael@0 18790 # PREFIX and SUFFIX must not contain globbing or regex special
michael@0 18791 # characters, hashes, percent signs, but SUFFIX may contain a leading
michael@0 18792 # dot (in which case that matches only a dot).
michael@0 18793 # func_strip_suffix prefix name
michael@0 18794 func_stripname ()
michael@0 18795 {
michael@0 18796 case ${2} in
michael@0 18797 .*) func_stripname_result=`$ECHO "X${3}" \
michael@0 18798 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
michael@0 18799 *) func_stripname_result=`$ECHO "X${3}" \
michael@0 18800 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
michael@0 18801 esac
michael@0 18802 }
michael@0 18803
michael@0 18804 # sed scripts:
michael@0 18805 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
michael@0 18806 my_sed_long_arg='1s/^-[^=]*=//'
michael@0 18807
michael@0 18808 # func_opt_split
michael@0 18809 func_opt_split ()
michael@0 18810 {
michael@0 18811 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
michael@0 18812 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
michael@0 18813 }
michael@0 18814
michael@0 18815 # func_lo2o object
michael@0 18816 func_lo2o ()
michael@0 18817 {
michael@0 18818 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
michael@0 18819 }
michael@0 18820
michael@0 18821 # func_xform libobj-or-source
michael@0 18822 func_xform ()
michael@0 18823 {
michael@0 18824 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
michael@0 18825 }
michael@0 18826
michael@0 18827 # func_arith arithmetic-term...
michael@0 18828 func_arith ()
michael@0 18829 {
michael@0 18830 func_arith_result=`expr "$@"`
michael@0 18831 }
michael@0 18832
michael@0 18833 # func_len string
michael@0 18834 # STRING may not start with a hyphen.
michael@0 18835 func_len ()
michael@0 18836 {
michael@0 18837 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
michael@0 18838 }
michael@0 18839
michael@0 18840 _LT_EOF
michael@0 18841 esac
michael@0 18842
michael@0 18843 case $lt_shell_append in
michael@0 18844 yes)
michael@0 18845 cat << \_LT_EOF >> "$cfgfile"
michael@0 18846
michael@0 18847 # func_append var value
michael@0 18848 # Append VALUE to the end of shell variable VAR.
michael@0 18849 func_append ()
michael@0 18850 {
michael@0 18851 eval "$1+=\$2"
michael@0 18852 }
michael@0 18853 _LT_EOF
michael@0 18854 ;;
michael@0 18855 *)
michael@0 18856 cat << \_LT_EOF >> "$cfgfile"
michael@0 18857
michael@0 18858 # func_append var value
michael@0 18859 # Append VALUE to the end of shell variable VAR.
michael@0 18860 func_append ()
michael@0 18861 {
michael@0 18862 eval "$1=\$$1\$2"
michael@0 18863 }
michael@0 18864
michael@0 18865 _LT_EOF
michael@0 18866 ;;
michael@0 18867 esac
michael@0 18868
michael@0 18869
michael@0 18870 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
michael@0 18871 || (rm -f "$cfgfile"; exit 1)
michael@0 18872
michael@0 18873 mv -f "$cfgfile" "$ofile" ||
michael@0 18874 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
michael@0 18875 chmod +x "$ofile"
michael@0 18876
michael@0 18877
michael@0 18878 cat <<_LT_EOF >> "$ofile"
michael@0 18879
michael@0 18880 # ### BEGIN LIBTOOL TAG CONFIG: CXX
michael@0 18881
michael@0 18882 # The linker used to build libraries.
michael@0 18883 LD=$lt_LD_CXX
michael@0 18884
michael@0 18885 # Commands used to build an old-style archive.
michael@0 18886 old_archive_cmds=$lt_old_archive_cmds_CXX
michael@0 18887
michael@0 18888 # A language specific compiler.
michael@0 18889 CC=$lt_compiler_CXX
michael@0 18890
michael@0 18891 # Is the compiler the GNU compiler?
michael@0 18892 with_gcc=$GCC_CXX
michael@0 18893
michael@0 18894 # Compiler flag to turn off builtin functions.
michael@0 18895 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
michael@0 18896
michael@0 18897 # How to pass a linker flag through the compiler.
michael@0 18898 wl=$lt_lt_prog_compiler_wl_CXX
michael@0 18899
michael@0 18900 # Additional compiler flags for building library objects.
michael@0 18901 pic_flag=$lt_lt_prog_compiler_pic_CXX
michael@0 18902
michael@0 18903 # Compiler flag to prevent dynamic linking.
michael@0 18904 link_static_flag=$lt_lt_prog_compiler_static_CXX
michael@0 18905
michael@0 18906 # Does compiler simultaneously support -c and -o options?
michael@0 18907 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
michael@0 18908
michael@0 18909 # Whether or not to add -lc for building shared libraries.
michael@0 18910 build_libtool_need_lc=$archive_cmds_need_lc_CXX
michael@0 18911
michael@0 18912 # Whether or not to disallow shared libs when runtime libs are static.
michael@0 18913 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
michael@0 18914
michael@0 18915 # Compiler flag to allow reflexive dlopens.
michael@0 18916 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
michael@0 18917
michael@0 18918 # Compiler flag to generate shared objects directly from archives.
michael@0 18919 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
michael@0 18920
michael@0 18921 # Whether the compiler copes with passing no objects directly.
michael@0 18922 compiler_needs_object=$lt_compiler_needs_object_CXX
michael@0 18923
michael@0 18924 # Create an old-style archive from a shared archive.
michael@0 18925 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
michael@0 18926
michael@0 18927 # Create a temporary old-style archive to link instead of a shared archive.
michael@0 18928 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
michael@0 18929
michael@0 18930 # Commands used to build a shared archive.
michael@0 18931 archive_cmds=$lt_archive_cmds_CXX
michael@0 18932 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
michael@0 18933
michael@0 18934 # Commands used to build a loadable module if different from building
michael@0 18935 # a shared archive.
michael@0 18936 module_cmds=$lt_module_cmds_CXX
michael@0 18937 module_expsym_cmds=$lt_module_expsym_cmds_CXX
michael@0 18938
michael@0 18939 # Whether we are building with GNU ld or not.
michael@0 18940 with_gnu_ld=$lt_with_gnu_ld_CXX
michael@0 18941
michael@0 18942 # Flag that allows shared libraries with undefined symbols to be built.
michael@0 18943 allow_undefined_flag=$lt_allow_undefined_flag_CXX
michael@0 18944
michael@0 18945 # Flag that enforces no undefined symbols.
michael@0 18946 no_undefined_flag=$lt_no_undefined_flag_CXX
michael@0 18947
michael@0 18948 # Flag to hardcode \$libdir into a binary during linking.
michael@0 18949 # This must work even if \$libdir does not exist
michael@0 18950 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
michael@0 18951
michael@0 18952 # If ld is used when linking, flag to hardcode \$libdir into a binary
michael@0 18953 # during linking. This must work even if \$libdir does not exist.
michael@0 18954 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
michael@0 18955
michael@0 18956 # Whether we need a single "-rpath" flag with a separated argument.
michael@0 18957 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
michael@0 18958
michael@0 18959 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
michael@0 18960 # DIR into the resulting binary.
michael@0 18961 hardcode_direct=$hardcode_direct_CXX
michael@0 18962
michael@0 18963 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
michael@0 18964 # DIR into the resulting binary and the resulting library dependency is
michael@0 18965 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
michael@0 18966 # library is relocated.
michael@0 18967 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
michael@0 18968
michael@0 18969 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
michael@0 18970 # into the resulting binary.
michael@0 18971 hardcode_minus_L=$hardcode_minus_L_CXX
michael@0 18972
michael@0 18973 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
michael@0 18974 # into the resulting binary.
michael@0 18975 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
michael@0 18976
michael@0 18977 # Set to "yes" if building a shared library automatically hardcodes DIR
michael@0 18978 # into the library and all subsequent libraries and executables linked
michael@0 18979 # against it.
michael@0 18980 hardcode_automatic=$hardcode_automatic_CXX
michael@0 18981
michael@0 18982 # Set to yes if linker adds runtime paths of dependent libraries
michael@0 18983 # to runtime path list.
michael@0 18984 inherit_rpath=$inherit_rpath_CXX
michael@0 18985
michael@0 18986 # Whether libtool must link a program against all its dependency libraries.
michael@0 18987 link_all_deplibs=$link_all_deplibs_CXX
michael@0 18988
michael@0 18989 # Fix the shell variable \$srcfile for the compiler.
michael@0 18990 fix_srcfile_path=$lt_fix_srcfile_path_CXX
michael@0 18991
michael@0 18992 # Set to "yes" if exported symbols are required.
michael@0 18993 always_export_symbols=$always_export_symbols_CXX
michael@0 18994
michael@0 18995 # The commands to list exported symbols.
michael@0 18996 export_symbols_cmds=$lt_export_symbols_cmds_CXX
michael@0 18997
michael@0 18998 # Symbols that should not be listed in the preloaded symbols.
michael@0 18999 exclude_expsyms=$lt_exclude_expsyms_CXX
michael@0 19000
michael@0 19001 # Symbols that must always be exported.
michael@0 19002 include_expsyms=$lt_include_expsyms_CXX
michael@0 19003
michael@0 19004 # Commands necessary for linking programs (against libraries) with templates.
michael@0 19005 prelink_cmds=$lt_prelink_cmds_CXX
michael@0 19006
michael@0 19007 # Specify filename containing input files.
michael@0 19008 file_list_spec=$lt_file_list_spec_CXX
michael@0 19009
michael@0 19010 # How to hardcode a shared library path into an executable.
michael@0 19011 hardcode_action=$hardcode_action_CXX
michael@0 19012
michael@0 19013 # The directories searched by this compiler when creating a shared library.
michael@0 19014 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
michael@0 19015
michael@0 19016 # Dependencies to place before and after the objects being linked to
michael@0 19017 # create a shared library.
michael@0 19018 predep_objects=$lt_predep_objects_CXX
michael@0 19019 postdep_objects=$lt_postdep_objects_CXX
michael@0 19020 predeps=$lt_predeps_CXX
michael@0 19021 postdeps=$lt_postdeps_CXX
michael@0 19022
michael@0 19023 # The library search path used internally by the compiler when linking
michael@0 19024 # a shared library.
michael@0 19025 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
michael@0 19026
michael@0 19027 # ### END LIBTOOL TAG CONFIG: CXX
michael@0 19028 _LT_EOF
michael@0 19029
michael@0 19030 ;;
michael@0 19031
michael@0 19032 esac
michael@0 19033 done # for ac_tag
michael@0 19034
michael@0 19035
michael@0 19036 as_fn_exit 0
michael@0 19037 _ACEOF
michael@0 19038 ac_clean_files=$ac_clean_files_save
michael@0 19039
michael@0 19040 test $ac_write_fail = 0 ||
michael@0 19041 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
michael@0 19042
michael@0 19043
michael@0 19044 # configure is writing to config.log, and then calls config.status.
michael@0 19045 # config.status does its own redirection, appending to config.log.
michael@0 19046 # Unfortunately, on DOS this fails, as config.log is still kept open
michael@0 19047 # by configure, so config.status won't be able to write to it; its
michael@0 19048 # output is simply discarded. So we exec the FD to /dev/null,
michael@0 19049 # effectively closing config.log, so it can be properly (re)opened and
michael@0 19050 # appended to by config.status. When coming back to configure, we
michael@0 19051 # need to make the FD available again.
michael@0 19052 if test "$no_create" != yes; then
michael@0 19053 ac_cs_success=:
michael@0 19054 ac_config_status_args=
michael@0 19055 test "$silent" = yes &&
michael@0 19056 ac_config_status_args="$ac_config_status_args --quiet"
michael@0 19057 exec 5>/dev/null
michael@0 19058 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
michael@0 19059 exec 5>>config.log
michael@0 19060 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
michael@0 19061 # would make configure fail if this is the last instruction.
michael@0 19062 $ac_cs_success || as_fn_exit $?
michael@0 19063 fi
michael@0 19064 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
michael@0 19065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
michael@0 19066 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
michael@0 19067 fi
michael@0 19068

mercurial