annotate src/portaudio_20140130/bindings/cpp/configure @ 83:ae30d91d2ffe

Replace these with versions built using an older toolset (so as to avoid ABI compatibilities when linking on Ubuntu 14.04 for packaging purposes)
author Chris Cannam
date Fri, 07 Feb 2020 11:51:13 +0000
parents 7ddb4fc30dac
children
rev   line source
Chris@39 1 #! /bin/sh
Chris@39 2 # Guess values for system-dependent variables and create Makefiles.
Chris@39 3 # Generated by GNU Autoconf 2.68 for PortAudioCpp 12.
Chris@39 4 #
Chris@39 5 #
Chris@39 6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Chris@39 7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
Chris@39 8 # Foundation, Inc.
Chris@39 9 #
Chris@39 10 #
Chris@39 11 # This configure script is free software; the Free Software Foundation
Chris@39 12 # gives unlimited permission to copy, distribute and modify it.
Chris@39 13 ## -------------------- ##
Chris@39 14 ## M4sh Initialization. ##
Chris@39 15 ## -------------------- ##
Chris@39 16
Chris@39 17 # Be more Bourne compatible
Chris@39 18 DUALCASE=1; export DUALCASE # for MKS sh
Chris@39 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Chris@39 20 emulate sh
Chris@39 21 NULLCMD=:
Chris@39 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Chris@39 23 # is contrary to our usage. Disable this feature.
Chris@39 24 alias -g '${1+"$@"}'='"$@"'
Chris@39 25 setopt NO_GLOB_SUBST
Chris@39 26 else
Chris@39 27 case `(set -o) 2>/dev/null` in #(
Chris@39 28 *posix*) :
Chris@39 29 set -o posix ;; #(
Chris@39 30 *) :
Chris@39 31 ;;
Chris@39 32 esac
Chris@39 33 fi
Chris@39 34
Chris@39 35
Chris@39 36 as_nl='
Chris@39 37 '
Chris@39 38 export as_nl
Chris@39 39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
Chris@39 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@39 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@39 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@39 43 # Prefer a ksh shell builtin over an external printf program on Solaris,
Chris@39 44 # but without wasting forks for bash or zsh.
Chris@39 45 if test -z "$BASH_VERSION$ZSH_VERSION" \
Chris@39 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@39 47 as_echo='print -r --'
Chris@39 48 as_echo_n='print -rn --'
Chris@39 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@39 50 as_echo='printf %s\n'
Chris@39 51 as_echo_n='printf %s'
Chris@39 52 else
Chris@39 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
Chris@39 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
Chris@39 55 as_echo_n='/usr/ucb/echo -n'
Chris@39 56 else
Chris@39 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
Chris@39 58 as_echo_n_body='eval
Chris@39 59 arg=$1;
Chris@39 60 case $arg in #(
Chris@39 61 *"$as_nl"*)
Chris@39 62 expr "X$arg" : "X\\(.*\\)$as_nl";
Chris@39 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
Chris@39 64 esac;
Chris@39 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
Chris@39 66 '
Chris@39 67 export as_echo_n_body
Chris@39 68 as_echo_n='sh -c $as_echo_n_body as_echo'
Chris@39 69 fi
Chris@39 70 export as_echo_body
Chris@39 71 as_echo='sh -c $as_echo_body as_echo'
Chris@39 72 fi
Chris@39 73
Chris@39 74 # The user is always right.
Chris@39 75 if test "${PATH_SEPARATOR+set}" != set; then
Chris@39 76 PATH_SEPARATOR=:
Chris@39 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
Chris@39 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
Chris@39 79 PATH_SEPARATOR=';'
Chris@39 80 }
Chris@39 81 fi
Chris@39 82
Chris@39 83
Chris@39 84 # IFS
Chris@39 85 # We need space, tab and new line, in precisely that order. Quoting is
Chris@39 86 # there to prevent editors from complaining about space-tab.
Chris@39 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
Chris@39 88 # splitting by setting IFS to empty value.)
Chris@39 89 IFS=" "" $as_nl"
Chris@39 90
Chris@39 91 # Find who we are. Look in the path if we contain no directory separator.
Chris@39 92 as_myself=
Chris@39 93 case $0 in #((
Chris@39 94 *[\\/]* ) as_myself=$0 ;;
Chris@39 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 96 for as_dir in $PATH
Chris@39 97 do
Chris@39 98 IFS=$as_save_IFS
Chris@39 99 test -z "$as_dir" && as_dir=.
Chris@39 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
Chris@39 101 done
Chris@39 102 IFS=$as_save_IFS
Chris@39 103
Chris@39 104 ;;
Chris@39 105 esac
Chris@39 106 # We did not find ourselves, most probably we were run as `sh COMMAND'
Chris@39 107 # in which case we are not to be found in the path.
Chris@39 108 if test "x$as_myself" = x; then
Chris@39 109 as_myself=$0
Chris@39 110 fi
Chris@39 111 if test ! -f "$as_myself"; then
Chris@39 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Chris@39 113 exit 1
Chris@39 114 fi
Chris@39 115
Chris@39 116 # Unset variables that we do not need and which cause bugs (e.g. in
Chris@39 117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
Chris@39 118 # suppresses any "Segmentation fault" message there. '((' could
Chris@39 119 # trigger a bug in pdksh 5.2.14.
Chris@39 120 for as_var in BASH_ENV ENV MAIL MAILPATH
Chris@39 121 do eval test x\${$as_var+set} = xset \
Chris@39 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Chris@39 123 done
Chris@39 124 PS1='$ '
Chris@39 125 PS2='> '
Chris@39 126 PS4='+ '
Chris@39 127
Chris@39 128 # NLS nuisances.
Chris@39 129 LC_ALL=C
Chris@39 130 export LC_ALL
Chris@39 131 LANGUAGE=C
Chris@39 132 export LANGUAGE
Chris@39 133
Chris@39 134 # CDPATH.
Chris@39 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@39 136
Chris@39 137 if test "x$CONFIG_SHELL" = x; then
Chris@39 138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
Chris@39 139 emulate sh
Chris@39 140 NULLCMD=:
Chris@39 141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
Chris@39 142 # is contrary to our usage. Disable this feature.
Chris@39 143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
Chris@39 144 setopt NO_GLOB_SUBST
Chris@39 145 else
Chris@39 146 case \`(set -o) 2>/dev/null\` in #(
Chris@39 147 *posix*) :
Chris@39 148 set -o posix ;; #(
Chris@39 149 *) :
Chris@39 150 ;;
Chris@39 151 esac
Chris@39 152 fi
Chris@39 153 "
Chris@39 154 as_required="as_fn_return () { (exit \$1); }
Chris@39 155 as_fn_success () { as_fn_return 0; }
Chris@39 156 as_fn_failure () { as_fn_return 1; }
Chris@39 157 as_fn_ret_success () { return 0; }
Chris@39 158 as_fn_ret_failure () { return 1; }
Chris@39 159
Chris@39 160 exitcode=0
Chris@39 161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
Chris@39 162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
Chris@39 163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
Chris@39 164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
Chris@39 165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
Chris@39 166
Chris@39 167 else
Chris@39 168 exitcode=1; echo positional parameters were not saved.
Chris@39 169 fi
Chris@39 170 test x\$exitcode = x0 || exit 1"
Chris@39 171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
Chris@39 172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
Chris@39 173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
Chris@39 174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
Chris@39 175
Chris@39 176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
Chris@39 177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@39 178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
Chris@39 179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
Chris@39 180 PATH=/empty FPATH=/empty; export PATH FPATH
Chris@39 181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
Chris@39 182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
Chris@39 183 test \$(( 1 + 1 )) = 2 || exit 1"
Chris@39 184 if (eval "$as_required") 2>/dev/null; then :
Chris@39 185 as_have_required=yes
Chris@39 186 else
Chris@39 187 as_have_required=no
Chris@39 188 fi
Chris@39 189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
Chris@39 190
Chris@39 191 else
Chris@39 192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 193 as_found=false
Chris@39 194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Chris@39 195 do
Chris@39 196 IFS=$as_save_IFS
Chris@39 197 test -z "$as_dir" && as_dir=.
Chris@39 198 as_found=:
Chris@39 199 case $as_dir in #(
Chris@39 200 /*)
Chris@39 201 for as_base in sh bash ksh sh5; do
Chris@39 202 # Try only shells that exist, to save several forks.
Chris@39 203 as_shell=$as_dir/$as_base
Chris@39 204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
Chris@39 205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
Chris@39 206 CONFIG_SHELL=$as_shell as_have_required=yes
Chris@39 207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
Chris@39 208 break 2
Chris@39 209 fi
Chris@39 210 fi
Chris@39 211 done;;
Chris@39 212 esac
Chris@39 213 as_found=false
Chris@39 214 done
Chris@39 215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
Chris@39 216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
Chris@39 217 CONFIG_SHELL=$SHELL as_have_required=yes
Chris@39 218 fi; }
Chris@39 219 IFS=$as_save_IFS
Chris@39 220
Chris@39 221
Chris@39 222 if test "x$CONFIG_SHELL" != x; then :
Chris@39 223 # We cannot yet assume a decent shell, so we have to provide a
Chris@39 224 # neutralization value for shells without unset; and this also
Chris@39 225 # works around shells that cannot unset nonexistent variables.
Chris@39 226 # Preserve -v and -x to the replacement shell.
Chris@39 227 BASH_ENV=/dev/null
Chris@39 228 ENV=/dev/null
Chris@39 229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
Chris@39 230 export CONFIG_SHELL
Chris@39 231 case $- in # ((((
Chris@39 232 *v*x* | *x*v* ) as_opts=-vx ;;
Chris@39 233 *v* ) as_opts=-v ;;
Chris@39 234 *x* ) as_opts=-x ;;
Chris@39 235 * ) as_opts= ;;
Chris@39 236 esac
Chris@39 237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
Chris@39 238 fi
Chris@39 239
Chris@39 240 if test x$as_have_required = xno; then :
Chris@39 241 $as_echo "$0: This script requires a shell more modern than all"
Chris@39 242 $as_echo "$0: the shells that I found on your system."
Chris@39 243 if test x${ZSH_VERSION+set} = xset ; then
Chris@39 244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
Chris@39 245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
Chris@39 246 else
Chris@39 247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
Chris@39 248 $0: including any error possibly output before this
Chris@39 249 $0: message. Then install a modern shell, or manually run
Chris@39 250 $0: the script under such a shell if you do have one."
Chris@39 251 fi
Chris@39 252 exit 1
Chris@39 253 fi
Chris@39 254 fi
Chris@39 255 fi
Chris@39 256 SHELL=${CONFIG_SHELL-/bin/sh}
Chris@39 257 export SHELL
Chris@39 258 # Unset more variables known to interfere with behavior of common tools.
Chris@39 259 CLICOLOR_FORCE= GREP_OPTIONS=
Chris@39 260 unset CLICOLOR_FORCE GREP_OPTIONS
Chris@39 261
Chris@39 262 ## --------------------- ##
Chris@39 263 ## M4sh Shell Functions. ##
Chris@39 264 ## --------------------- ##
Chris@39 265 # as_fn_unset VAR
Chris@39 266 # ---------------
Chris@39 267 # Portably unset VAR.
Chris@39 268 as_fn_unset ()
Chris@39 269 {
Chris@39 270 { eval $1=; unset $1;}
Chris@39 271 }
Chris@39 272 as_unset=as_fn_unset
Chris@39 273
Chris@39 274 # as_fn_set_status STATUS
Chris@39 275 # -----------------------
Chris@39 276 # Set $? to STATUS, without forking.
Chris@39 277 as_fn_set_status ()
Chris@39 278 {
Chris@39 279 return $1
Chris@39 280 } # as_fn_set_status
Chris@39 281
Chris@39 282 # as_fn_exit STATUS
Chris@39 283 # -----------------
Chris@39 284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
Chris@39 285 as_fn_exit ()
Chris@39 286 {
Chris@39 287 set +e
Chris@39 288 as_fn_set_status $1
Chris@39 289 exit $1
Chris@39 290 } # as_fn_exit
Chris@39 291
Chris@39 292 # as_fn_mkdir_p
Chris@39 293 # -------------
Chris@39 294 # Create "$as_dir" as a directory, including parents if necessary.
Chris@39 295 as_fn_mkdir_p ()
Chris@39 296 {
Chris@39 297
Chris@39 298 case $as_dir in #(
Chris@39 299 -*) as_dir=./$as_dir;;
Chris@39 300 esac
Chris@39 301 test -d "$as_dir" || eval $as_mkdir_p || {
Chris@39 302 as_dirs=
Chris@39 303 while :; do
Chris@39 304 case $as_dir in #(
Chris@39 305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Chris@39 306 *) as_qdir=$as_dir;;
Chris@39 307 esac
Chris@39 308 as_dirs="'$as_qdir' $as_dirs"
Chris@39 309 as_dir=`$as_dirname -- "$as_dir" ||
Chris@39 310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@39 311 X"$as_dir" : 'X\(//\)[^/]' \| \
Chris@39 312 X"$as_dir" : 'X\(//\)$' \| \
Chris@39 313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Chris@39 314 $as_echo X"$as_dir" |
Chris@39 315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@39 316 s//\1/
Chris@39 317 q
Chris@39 318 }
Chris@39 319 /^X\(\/\/\)[^/].*/{
Chris@39 320 s//\1/
Chris@39 321 q
Chris@39 322 }
Chris@39 323 /^X\(\/\/\)$/{
Chris@39 324 s//\1/
Chris@39 325 q
Chris@39 326 }
Chris@39 327 /^X\(\/\).*/{
Chris@39 328 s//\1/
Chris@39 329 q
Chris@39 330 }
Chris@39 331 s/.*/./; q'`
Chris@39 332 test -d "$as_dir" && break
Chris@39 333 done
Chris@39 334 test -z "$as_dirs" || eval "mkdir $as_dirs"
Chris@39 335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Chris@39 336
Chris@39 337
Chris@39 338 } # as_fn_mkdir_p
Chris@39 339 # as_fn_append VAR VALUE
Chris@39 340 # ----------------------
Chris@39 341 # Append the text in VALUE to the end of the definition contained in VAR. Take
Chris@39 342 # advantage of any shell optimizations that allow amortized linear growth over
Chris@39 343 # repeated appends, instead of the typical quadratic growth present in naive
Chris@39 344 # implementations.
Chris@39 345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
Chris@39 346 eval 'as_fn_append ()
Chris@39 347 {
Chris@39 348 eval $1+=\$2
Chris@39 349 }'
Chris@39 350 else
Chris@39 351 as_fn_append ()
Chris@39 352 {
Chris@39 353 eval $1=\$$1\$2
Chris@39 354 }
Chris@39 355 fi # as_fn_append
Chris@39 356
Chris@39 357 # as_fn_arith ARG...
Chris@39 358 # ------------------
Chris@39 359 # Perform arithmetic evaluation on the ARGs, and store the result in the
Chris@39 360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
Chris@39 361 # must be portable across $(()) and expr.
Chris@39 362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
Chris@39 363 eval 'as_fn_arith ()
Chris@39 364 {
Chris@39 365 as_val=$(( $* ))
Chris@39 366 }'
Chris@39 367 else
Chris@39 368 as_fn_arith ()
Chris@39 369 {
Chris@39 370 as_val=`expr "$@" || test $? -eq 1`
Chris@39 371 }
Chris@39 372 fi # as_fn_arith
Chris@39 373
Chris@39 374
Chris@39 375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
Chris@39 376 # ----------------------------------------
Chris@39 377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
Chris@39 378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Chris@39 379 # script with STATUS, using 1 if that was 0.
Chris@39 380 as_fn_error ()
Chris@39 381 {
Chris@39 382 as_status=$1; test $as_status -eq 0 && as_status=1
Chris@39 383 if test "$4"; then
Chris@39 384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@39 385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Chris@39 386 fi
Chris@39 387 $as_echo "$as_me: error: $2" >&2
Chris@39 388 as_fn_exit $as_status
Chris@39 389 } # as_fn_error
Chris@39 390
Chris@39 391 if expr a : '\(a\)' >/dev/null 2>&1 &&
Chris@39 392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Chris@39 393 as_expr=expr
Chris@39 394 else
Chris@39 395 as_expr=false
Chris@39 396 fi
Chris@39 397
Chris@39 398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Chris@39 399 as_basename=basename
Chris@39 400 else
Chris@39 401 as_basename=false
Chris@39 402 fi
Chris@39 403
Chris@39 404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
Chris@39 405 as_dirname=dirname
Chris@39 406 else
Chris@39 407 as_dirname=false
Chris@39 408 fi
Chris@39 409
Chris@39 410 as_me=`$as_basename -- "$0" ||
Chris@39 411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
Chris@39 412 X"$0" : 'X\(//\)$' \| \
Chris@39 413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Chris@39 414 $as_echo X/"$0" |
Chris@39 415 sed '/^.*\/\([^/][^/]*\)\/*$/{
Chris@39 416 s//\1/
Chris@39 417 q
Chris@39 418 }
Chris@39 419 /^X\/\(\/\/\)$/{
Chris@39 420 s//\1/
Chris@39 421 q
Chris@39 422 }
Chris@39 423 /^X\/\(\/\).*/{
Chris@39 424 s//\1/
Chris@39 425 q
Chris@39 426 }
Chris@39 427 s/.*/./; q'`
Chris@39 428
Chris@39 429 # Avoid depending upon Character Ranges.
Chris@39 430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
Chris@39 431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
Chris@39 432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
Chris@39 433 as_cr_digits='0123456789'
Chris@39 434 as_cr_alnum=$as_cr_Letters$as_cr_digits
Chris@39 435
Chris@39 436
Chris@39 437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
Chris@39 438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
Chris@39 439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
Chris@39 440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
Chris@39 441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Chris@39 442 sed -n '
Chris@39 443 p
Chris@39 444 /[$]LINENO/=
Chris@39 445 ' <$as_myself |
Chris@39 446 sed '
Chris@39 447 s/[$]LINENO.*/&-/
Chris@39 448 t lineno
Chris@39 449 b
Chris@39 450 :lineno
Chris@39 451 N
Chris@39 452 :loop
Chris@39 453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Chris@39 454 t loop
Chris@39 455 s/-\n.*//
Chris@39 456 ' >$as_me.lineno &&
Chris@39 457 chmod +x "$as_me.lineno" ||
Chris@39 458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Chris@39 459
Chris@39 460 # Don't try to exec as it changes $[0], causing all sort of problems
Chris@39 461 # (the dirname of $[0] is not the place where we might find the
Chris@39 462 # original and so on. Autoconf is especially sensitive to this).
Chris@39 463 . "./$as_me.lineno"
Chris@39 464 # Exit status is that of the last command.
Chris@39 465 exit
Chris@39 466 }
Chris@39 467
Chris@39 468 ECHO_C= ECHO_N= ECHO_T=
Chris@39 469 case `echo -n x` in #(((((
Chris@39 470 -n*)
Chris@39 471 case `echo 'xy\c'` in
Chris@39 472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Chris@39 473 xy) ECHO_C='\c';;
Chris@39 474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
Chris@39 475 ECHO_T=' ';;
Chris@39 476 esac;;
Chris@39 477 *)
Chris@39 478 ECHO_N='-n';;
Chris@39 479 esac
Chris@39 480
Chris@39 481 rm -f conf$$ conf$$.exe conf$$.file
Chris@39 482 if test -d conf$$.dir; then
Chris@39 483 rm -f conf$$.dir/conf$$.file
Chris@39 484 else
Chris@39 485 rm -f conf$$.dir
Chris@39 486 mkdir conf$$.dir 2>/dev/null
Chris@39 487 fi
Chris@39 488 if (echo >conf$$.file) 2>/dev/null; then
Chris@39 489 if ln -s conf$$.file conf$$ 2>/dev/null; then
Chris@39 490 as_ln_s='ln -s'
Chris@39 491 # ... but there are two gotchas:
Chris@39 492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
Chris@39 493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Chris@39 494 # In both cases, we have to default to `cp -p'.
Chris@39 495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Chris@39 496 as_ln_s='cp -p'
Chris@39 497 elif ln conf$$.file conf$$ 2>/dev/null; then
Chris@39 498 as_ln_s=ln
Chris@39 499 else
Chris@39 500 as_ln_s='cp -p'
Chris@39 501 fi
Chris@39 502 else
Chris@39 503 as_ln_s='cp -p'
Chris@39 504 fi
Chris@39 505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
Chris@39 506 rmdir conf$$.dir 2>/dev/null
Chris@39 507
Chris@39 508 if mkdir -p . 2>/dev/null; then
Chris@39 509 as_mkdir_p='mkdir -p "$as_dir"'
Chris@39 510 else
Chris@39 511 test -d ./-p && rmdir ./-p
Chris@39 512 as_mkdir_p=false
Chris@39 513 fi
Chris@39 514
Chris@39 515 if test -x / >/dev/null 2>&1; then
Chris@39 516 as_test_x='test -x'
Chris@39 517 else
Chris@39 518 if ls -dL / >/dev/null 2>&1; then
Chris@39 519 as_ls_L_option=L
Chris@39 520 else
Chris@39 521 as_ls_L_option=
Chris@39 522 fi
Chris@39 523 as_test_x='
Chris@39 524 eval sh -c '\''
Chris@39 525 if test -d "$1"; then
Chris@39 526 test -d "$1/.";
Chris@39 527 else
Chris@39 528 case $1 in #(
Chris@39 529 -*)set "./$1";;
Chris@39 530 esac;
Chris@39 531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Chris@39 532 ???[sx]*):;;*)false;;esac;fi
Chris@39 533 '\'' sh
Chris@39 534 '
Chris@39 535 fi
Chris@39 536 as_executable_p=$as_test_x
Chris@39 537
Chris@39 538 # Sed expression to map a string onto a valid CPP name.
Chris@39 539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Chris@39 540
Chris@39 541 # Sed expression to map a string onto a valid variable name.
Chris@39 542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Chris@39 543
Chris@39 544 SHELL=${CONFIG_SHELL-/bin/sh}
Chris@39 545
Chris@39 546
Chris@39 547 test -n "$DJDIR" || exec 7<&0 </dev/null
Chris@39 548 exec 6>&1
Chris@39 549
Chris@39 550 # Name of the host.
Chris@39 551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Chris@39 552 # so uname gets run too.
Chris@39 553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@39 554
Chris@39 555 #
Chris@39 556 # Initializations.
Chris@39 557 #
Chris@39 558 ac_default_prefix=/usr/local
Chris@39 559 ac_clean_files=
Chris@39 560 ac_config_libobj_dir=.
Chris@39 561 LIBOBJS=
Chris@39 562 cross_compiling=no
Chris@39 563 subdirs=
Chris@39 564 MFLAGS=
Chris@39 565 MAKEFLAGS=
Chris@39 566
Chris@39 567 # Identity of this package.
Chris@39 568 PACKAGE_NAME='PortAudioCpp'
Chris@39 569 PACKAGE_TARNAME='portaudiocpp'
Chris@39 570 PACKAGE_VERSION='12'
Chris@39 571 PACKAGE_STRING='PortAudioCpp 12'
Chris@39 572 PACKAGE_BUGREPORT=''
Chris@39 573 PACKAGE_URL=''
Chris@39 574
Chris@39 575 ac_unique_file="include/portaudiocpp/PortAudioCpp.hxx"
Chris@39 576 # Factoring default headers for most tests.
Chris@39 577 ac_includes_default="\
Chris@39 578 #include <stdio.h>
Chris@39 579 #ifdef HAVE_SYS_TYPES_H
Chris@39 580 # include <sys/types.h>
Chris@39 581 #endif
Chris@39 582 #ifdef HAVE_SYS_STAT_H
Chris@39 583 # include <sys/stat.h>
Chris@39 584 #endif
Chris@39 585 #ifdef STDC_HEADERS
Chris@39 586 # include <stdlib.h>
Chris@39 587 # include <stddef.h>
Chris@39 588 #else
Chris@39 589 # ifdef HAVE_STDLIB_H
Chris@39 590 # include <stdlib.h>
Chris@39 591 # endif
Chris@39 592 #endif
Chris@39 593 #ifdef HAVE_STRING_H
Chris@39 594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Chris@39 595 # include <memory.h>
Chris@39 596 # endif
Chris@39 597 # include <string.h>
Chris@39 598 #endif
Chris@39 599 #ifdef HAVE_STRINGS_H
Chris@39 600 # include <strings.h>
Chris@39 601 #endif
Chris@39 602 #ifdef HAVE_INTTYPES_H
Chris@39 603 # include <inttypes.h>
Chris@39 604 #endif
Chris@39 605 #ifdef HAVE_STDINT_H
Chris@39 606 # include <stdint.h>
Chris@39 607 #endif
Chris@39 608 #ifdef HAVE_UNISTD_H
Chris@39 609 # include <unistd.h>
Chris@39 610 #endif"
Chris@39 611
Chris@39 612 ac_subst_vars='am__EXEEXT_FALSE
Chris@39 613 am__EXEEXT_TRUE
Chris@39 614 LTLIBOBJS
Chris@39 615 LIBOBJS
Chris@39 616 LT_VERSION_INFO
Chris@39 617 PORTAUDIO_ROOT
Chris@39 618 DEFAULT_INCLUDES
Chris@39 619 CXXCPP
Chris@39 620 CPP
Chris@39 621 OTOOL64
Chris@39 622 OTOOL
Chris@39 623 LIPO
Chris@39 624 NMEDIT
Chris@39 625 DSYMUTIL
Chris@39 626 MANIFEST_TOOL
Chris@39 627 RANLIB
Chris@39 628 ac_ct_AR
Chris@39 629 AR
Chris@39 630 LN_S
Chris@39 631 NM
Chris@39 632 ac_ct_DUMPBIN
Chris@39 633 DUMPBIN
Chris@39 634 LD
Chris@39 635 FGREP
Chris@39 636 EGREP
Chris@39 637 GREP
Chris@39 638 SED
Chris@39 639 LIBTOOL
Chris@39 640 OBJDUMP
Chris@39 641 DLLTOOL
Chris@39 642 AS
Chris@39 643 host_os
Chris@39 644 host_vendor
Chris@39 645 host_cpu
Chris@39 646 host
Chris@39 647 build_os
Chris@39 648 build_vendor
Chris@39 649 build_cpu
Chris@39 650 build
Chris@39 651 am__fastdepCXX_FALSE
Chris@39 652 am__fastdepCXX_TRUE
Chris@39 653 CXXDEPMODE
Chris@39 654 ac_ct_CXX
Chris@39 655 CXXFLAGS
Chris@39 656 CXX
Chris@39 657 am__fastdepCC_FALSE
Chris@39 658 am__fastdepCC_TRUE
Chris@39 659 CCDEPMODE
Chris@39 660 AMDEPBACKSLASH
Chris@39 661 AMDEP_FALSE
Chris@39 662 AMDEP_TRUE
Chris@39 663 am__quote
Chris@39 664 am__include
Chris@39 665 DEPDIR
Chris@39 666 OBJEXT
Chris@39 667 EXEEXT
Chris@39 668 ac_ct_CC
Chris@39 669 CPPFLAGS
Chris@39 670 LDFLAGS
Chris@39 671 CFLAGS
Chris@39 672 CC
Chris@39 673 MAINT
Chris@39 674 MAINTAINER_MODE_FALSE
Chris@39 675 MAINTAINER_MODE_TRUE
Chris@39 676 am__untar
Chris@39 677 am__tar
Chris@39 678 AMTAR
Chris@39 679 am__leading_dot
Chris@39 680 SET_MAKE
Chris@39 681 AWK
Chris@39 682 mkdir_p
Chris@39 683 MKDIR_P
Chris@39 684 INSTALL_STRIP_PROGRAM
Chris@39 685 STRIP
Chris@39 686 install_sh
Chris@39 687 MAKEINFO
Chris@39 688 AUTOHEADER
Chris@39 689 AUTOMAKE
Chris@39 690 AUTOCONF
Chris@39 691 ACLOCAL
Chris@39 692 VERSION
Chris@39 693 PACKAGE
Chris@39 694 CYGPATH_W
Chris@39 695 am__isrc
Chris@39 696 INSTALL_DATA
Chris@39 697 INSTALL_SCRIPT
Chris@39 698 INSTALL_PROGRAM
Chris@39 699 target_alias
Chris@39 700 host_alias
Chris@39 701 build_alias
Chris@39 702 LIBS
Chris@39 703 ECHO_T
Chris@39 704 ECHO_N
Chris@39 705 ECHO_C
Chris@39 706 DEFS
Chris@39 707 mandir
Chris@39 708 localedir
Chris@39 709 libdir
Chris@39 710 psdir
Chris@39 711 pdfdir
Chris@39 712 dvidir
Chris@39 713 htmldir
Chris@39 714 infodir
Chris@39 715 docdir
Chris@39 716 oldincludedir
Chris@39 717 includedir
Chris@39 718 localstatedir
Chris@39 719 sharedstatedir
Chris@39 720 sysconfdir
Chris@39 721 datadir
Chris@39 722 datarootdir
Chris@39 723 libexecdir
Chris@39 724 sbindir
Chris@39 725 bindir
Chris@39 726 program_transform_name
Chris@39 727 prefix
Chris@39 728 exec_prefix
Chris@39 729 PACKAGE_URL
Chris@39 730 PACKAGE_BUGREPORT
Chris@39 731 PACKAGE_STRING
Chris@39 732 PACKAGE_VERSION
Chris@39 733 PACKAGE_TARNAME
Chris@39 734 PACKAGE_NAME
Chris@39 735 PATH_SEPARATOR
Chris@39 736 SHELL'
Chris@39 737 ac_subst_files=''
Chris@39 738 ac_user_opts='
Chris@39 739 enable_option_checking
Chris@39 740 enable_maintainer_mode
Chris@39 741 enable_dependency_tracking
Chris@39 742 enable_shared
Chris@39 743 enable_static
Chris@39 744 with_pic
Chris@39 745 enable_fast_install
Chris@39 746 with_gnu_ld
Chris@39 747 with_sysroot
Chris@39 748 enable_libtool_lock
Chris@39 749 '
Chris@39 750 ac_precious_vars='build_alias
Chris@39 751 host_alias
Chris@39 752 target_alias
Chris@39 753 CC
Chris@39 754 CFLAGS
Chris@39 755 LDFLAGS
Chris@39 756 LIBS
Chris@39 757 CPPFLAGS
Chris@39 758 CXX
Chris@39 759 CXXFLAGS
Chris@39 760 CCC
Chris@39 761 CPP
Chris@39 762 CXXCPP'
Chris@39 763
Chris@39 764
Chris@39 765 # Initialize some variables set by options.
Chris@39 766 ac_init_help=
Chris@39 767 ac_init_version=false
Chris@39 768 ac_unrecognized_opts=
Chris@39 769 ac_unrecognized_sep=
Chris@39 770 # The variables have the same names as the options, with
Chris@39 771 # dashes changed to underlines.
Chris@39 772 cache_file=/dev/null
Chris@39 773 exec_prefix=NONE
Chris@39 774 no_create=
Chris@39 775 no_recursion=
Chris@39 776 prefix=NONE
Chris@39 777 program_prefix=NONE
Chris@39 778 program_suffix=NONE
Chris@39 779 program_transform_name=s,x,x,
Chris@39 780 silent=
Chris@39 781 site=
Chris@39 782 srcdir=
Chris@39 783 verbose=
Chris@39 784 x_includes=NONE
Chris@39 785 x_libraries=NONE
Chris@39 786
Chris@39 787 # Installation directory options.
Chris@39 788 # These are left unexpanded so users can "make install exec_prefix=/foo"
Chris@39 789 # and all the variables that are supposed to be based on exec_prefix
Chris@39 790 # by default will actually change.
Chris@39 791 # Use braces instead of parens because sh, perl, etc. also accept them.
Chris@39 792 # (The list follows the same order as the GNU Coding Standards.)
Chris@39 793 bindir='${exec_prefix}/bin'
Chris@39 794 sbindir='${exec_prefix}/sbin'
Chris@39 795 libexecdir='${exec_prefix}/libexec'
Chris@39 796 datarootdir='${prefix}/share'
Chris@39 797 datadir='${datarootdir}'
Chris@39 798 sysconfdir='${prefix}/etc'
Chris@39 799 sharedstatedir='${prefix}/com'
Chris@39 800 localstatedir='${prefix}/var'
Chris@39 801 includedir='${prefix}/include'
Chris@39 802 oldincludedir='/usr/include'
Chris@39 803 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
Chris@39 804 infodir='${datarootdir}/info'
Chris@39 805 htmldir='${docdir}'
Chris@39 806 dvidir='${docdir}'
Chris@39 807 pdfdir='${docdir}'
Chris@39 808 psdir='${docdir}'
Chris@39 809 libdir='${exec_prefix}/lib'
Chris@39 810 localedir='${datarootdir}/locale'
Chris@39 811 mandir='${datarootdir}/man'
Chris@39 812
Chris@39 813 ac_prev=
Chris@39 814 ac_dashdash=
Chris@39 815 for ac_option
Chris@39 816 do
Chris@39 817 # If the previous option needs an argument, assign it.
Chris@39 818 if test -n "$ac_prev"; then
Chris@39 819 eval $ac_prev=\$ac_option
Chris@39 820 ac_prev=
Chris@39 821 continue
Chris@39 822 fi
Chris@39 823
Chris@39 824 case $ac_option in
Chris@39 825 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
Chris@39 826 *=) ac_optarg= ;;
Chris@39 827 *) ac_optarg=yes ;;
Chris@39 828 esac
Chris@39 829
Chris@39 830 # Accept the important Cygnus configure options, so we can diagnose typos.
Chris@39 831
Chris@39 832 case $ac_dashdash$ac_option in
Chris@39 833 --)
Chris@39 834 ac_dashdash=yes ;;
Chris@39 835
Chris@39 836 -bindir | --bindir | --bindi | --bind | --bin | --bi)
Chris@39 837 ac_prev=bindir ;;
Chris@39 838 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Chris@39 839 bindir=$ac_optarg ;;
Chris@39 840
Chris@39 841 -build | --build | --buil | --bui | --bu)
Chris@39 842 ac_prev=build_alias ;;
Chris@39 843 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Chris@39 844 build_alias=$ac_optarg ;;
Chris@39 845
Chris@39 846 -cache-file | --cache-file | --cache-fil | --cache-fi \
Chris@39 847 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
Chris@39 848 ac_prev=cache_file ;;
Chris@39 849 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
Chris@39 850 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Chris@39 851 cache_file=$ac_optarg ;;
Chris@39 852
Chris@39 853 --config-cache | -C)
Chris@39 854 cache_file=config.cache ;;
Chris@39 855
Chris@39 856 -datadir | --datadir | --datadi | --datad)
Chris@39 857 ac_prev=datadir ;;
Chris@39 858 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Chris@39 859 datadir=$ac_optarg ;;
Chris@39 860
Chris@39 861 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
Chris@39 862 | --dataroo | --dataro | --datar)
Chris@39 863 ac_prev=datarootdir ;;
Chris@39 864 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
Chris@39 865 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
Chris@39 866 datarootdir=$ac_optarg ;;
Chris@39 867
Chris@39 868 -disable-* | --disable-*)
Chris@39 869 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Chris@39 870 # Reject names that are not valid shell variable names.
Chris@39 871 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@39 872 as_fn_error $? "invalid feature name: $ac_useropt"
Chris@39 873 ac_useropt_orig=$ac_useropt
Chris@39 874 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@39 875 case $ac_user_opts in
Chris@39 876 *"
Chris@39 877 "enable_$ac_useropt"
Chris@39 878 "*) ;;
Chris@39 879 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
Chris@39 880 ac_unrecognized_sep=', ';;
Chris@39 881 esac
Chris@39 882 eval enable_$ac_useropt=no ;;
Chris@39 883
Chris@39 884 -docdir | --docdir | --docdi | --doc | --do)
Chris@39 885 ac_prev=docdir ;;
Chris@39 886 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
Chris@39 887 docdir=$ac_optarg ;;
Chris@39 888
Chris@39 889 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
Chris@39 890 ac_prev=dvidir ;;
Chris@39 891 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
Chris@39 892 dvidir=$ac_optarg ;;
Chris@39 893
Chris@39 894 -enable-* | --enable-*)
Chris@39 895 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Chris@39 896 # Reject names that are not valid shell variable names.
Chris@39 897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@39 898 as_fn_error $? "invalid feature name: $ac_useropt"
Chris@39 899 ac_useropt_orig=$ac_useropt
Chris@39 900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@39 901 case $ac_user_opts in
Chris@39 902 *"
Chris@39 903 "enable_$ac_useropt"
Chris@39 904 "*) ;;
Chris@39 905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
Chris@39 906 ac_unrecognized_sep=', ';;
Chris@39 907 esac
Chris@39 908 eval enable_$ac_useropt=\$ac_optarg ;;
Chris@39 909
Chris@39 910 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
Chris@39 911 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
Chris@39 912 | --exec | --exe | --ex)
Chris@39 913 ac_prev=exec_prefix ;;
Chris@39 914 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
Chris@39 915 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
Chris@39 916 | --exec=* | --exe=* | --ex=*)
Chris@39 917 exec_prefix=$ac_optarg ;;
Chris@39 918
Chris@39 919 -gas | --gas | --ga | --g)
Chris@39 920 # Obsolete; use --with-gas.
Chris@39 921 with_gas=yes ;;
Chris@39 922
Chris@39 923 -help | --help | --hel | --he | -h)
Chris@39 924 ac_init_help=long ;;
Chris@39 925 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
Chris@39 926 ac_init_help=recursive ;;
Chris@39 927 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
Chris@39 928 ac_init_help=short ;;
Chris@39 929
Chris@39 930 -host | --host | --hos | --ho)
Chris@39 931 ac_prev=host_alias ;;
Chris@39 932 -host=* | --host=* | --hos=* | --ho=*)
Chris@39 933 host_alias=$ac_optarg ;;
Chris@39 934
Chris@39 935 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
Chris@39 936 ac_prev=htmldir ;;
Chris@39 937 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
Chris@39 938 | --ht=*)
Chris@39 939 htmldir=$ac_optarg ;;
Chris@39 940
Chris@39 941 -includedir | --includedir | --includedi | --included | --include \
Chris@39 942 | --includ | --inclu | --incl | --inc)
Chris@39 943 ac_prev=includedir ;;
Chris@39 944 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
Chris@39 945 | --includ=* | --inclu=* | --incl=* | --inc=*)
Chris@39 946 includedir=$ac_optarg ;;
Chris@39 947
Chris@39 948 -infodir | --infodir | --infodi | --infod | --info | --inf)
Chris@39 949 ac_prev=infodir ;;
Chris@39 950 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Chris@39 951 infodir=$ac_optarg ;;
Chris@39 952
Chris@39 953 -libdir | --libdir | --libdi | --libd)
Chris@39 954 ac_prev=libdir ;;
Chris@39 955 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Chris@39 956 libdir=$ac_optarg ;;
Chris@39 957
Chris@39 958 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
Chris@39 959 | --libexe | --libex | --libe)
Chris@39 960 ac_prev=libexecdir ;;
Chris@39 961 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
Chris@39 962 | --libexe=* | --libex=* | --libe=*)
Chris@39 963 libexecdir=$ac_optarg ;;
Chris@39 964
Chris@39 965 -localedir | --localedir | --localedi | --localed | --locale)
Chris@39 966 ac_prev=localedir ;;
Chris@39 967 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
Chris@39 968 localedir=$ac_optarg ;;
Chris@39 969
Chris@39 970 -localstatedir | --localstatedir | --localstatedi | --localstated \
Chris@39 971 | --localstate | --localstat | --localsta | --localst | --locals)
Chris@39 972 ac_prev=localstatedir ;;
Chris@39 973 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Chris@39 974 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Chris@39 975 localstatedir=$ac_optarg ;;
Chris@39 976
Chris@39 977 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
Chris@39 978 ac_prev=mandir ;;
Chris@39 979 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Chris@39 980 mandir=$ac_optarg ;;
Chris@39 981
Chris@39 982 -nfp | --nfp | --nf)
Chris@39 983 # Obsolete; use --without-fp.
Chris@39 984 with_fp=no ;;
Chris@39 985
Chris@39 986 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Chris@39 987 | --no-cr | --no-c | -n)
Chris@39 988 no_create=yes ;;
Chris@39 989
Chris@39 990 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
Chris@39 991 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
Chris@39 992 no_recursion=yes ;;
Chris@39 993
Chris@39 994 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
Chris@39 995 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
Chris@39 996 | --oldin | --oldi | --old | --ol | --o)
Chris@39 997 ac_prev=oldincludedir ;;
Chris@39 998 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
Chris@39 999 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
Chris@39 1000 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Chris@39 1001 oldincludedir=$ac_optarg ;;
Chris@39 1002
Chris@39 1003 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
Chris@39 1004 ac_prev=prefix ;;
Chris@39 1005 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Chris@39 1006 prefix=$ac_optarg ;;
Chris@39 1007
Chris@39 1008 -program-prefix | --program-prefix | --program-prefi | --program-pref \
Chris@39 1009 | --program-pre | --program-pr | --program-p)
Chris@39 1010 ac_prev=program_prefix ;;
Chris@39 1011 -program-prefix=* | --program-prefix=* | --program-prefi=* \
Chris@39 1012 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Chris@39 1013 program_prefix=$ac_optarg ;;
Chris@39 1014
Chris@39 1015 -program-suffix | --program-suffix | --program-suffi | --program-suff \
Chris@39 1016 | --program-suf | --program-su | --program-s)
Chris@39 1017 ac_prev=program_suffix ;;
Chris@39 1018 -program-suffix=* | --program-suffix=* | --program-suffi=* \
Chris@39 1019 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Chris@39 1020 program_suffix=$ac_optarg ;;
Chris@39 1021
Chris@39 1022 -program-transform-name | --program-transform-name \
Chris@39 1023 | --program-transform-nam | --program-transform-na \
Chris@39 1024 | --program-transform-n | --program-transform- \
Chris@39 1025 | --program-transform | --program-transfor \
Chris@39 1026 | --program-transfo | --program-transf \
Chris@39 1027 | --program-trans | --program-tran \
Chris@39 1028 | --progr-tra | --program-tr | --program-t)
Chris@39 1029 ac_prev=program_transform_name ;;
Chris@39 1030 -program-transform-name=* | --program-transform-name=* \
Chris@39 1031 | --program-transform-nam=* | --program-transform-na=* \
Chris@39 1032 | --program-transform-n=* | --program-transform-=* \
Chris@39 1033 | --program-transform=* | --program-transfor=* \
Chris@39 1034 | --program-transfo=* | --program-transf=* \
Chris@39 1035 | --program-trans=* | --program-tran=* \
Chris@39 1036 | --progr-tra=* | --program-tr=* | --program-t=*)
Chris@39 1037 program_transform_name=$ac_optarg ;;
Chris@39 1038
Chris@39 1039 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
Chris@39 1040 ac_prev=pdfdir ;;
Chris@39 1041 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
Chris@39 1042 pdfdir=$ac_optarg ;;
Chris@39 1043
Chris@39 1044 -psdir | --psdir | --psdi | --psd | --ps)
Chris@39 1045 ac_prev=psdir ;;
Chris@39 1046 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
Chris@39 1047 psdir=$ac_optarg ;;
Chris@39 1048
Chris@39 1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@39 1050 | -silent | --silent | --silen | --sile | --sil)
Chris@39 1051 silent=yes ;;
Chris@39 1052
Chris@39 1053 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
Chris@39 1054 ac_prev=sbindir ;;
Chris@39 1055 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
Chris@39 1056 | --sbi=* | --sb=*)
Chris@39 1057 sbindir=$ac_optarg ;;
Chris@39 1058
Chris@39 1059 -sharedstatedir | --sharedstatedir | --sharedstatedi \
Chris@39 1060 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
Chris@39 1061 | --sharedst | --shareds | --shared | --share | --shar \
Chris@39 1062 | --sha | --sh)
Chris@39 1063 ac_prev=sharedstatedir ;;
Chris@39 1064 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
Chris@39 1065 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
Chris@39 1066 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
Chris@39 1067 | --sha=* | --sh=*)
Chris@39 1068 sharedstatedir=$ac_optarg ;;
Chris@39 1069
Chris@39 1070 -site | --site | --sit)
Chris@39 1071 ac_prev=site ;;
Chris@39 1072 -site=* | --site=* | --sit=*)
Chris@39 1073 site=$ac_optarg ;;
Chris@39 1074
Chris@39 1075 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
Chris@39 1076 ac_prev=srcdir ;;
Chris@39 1077 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Chris@39 1078 srcdir=$ac_optarg ;;
Chris@39 1079
Chris@39 1080 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
Chris@39 1081 | --syscon | --sysco | --sysc | --sys | --sy)
Chris@39 1082 ac_prev=sysconfdir ;;
Chris@39 1083 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
Chris@39 1084 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Chris@39 1085 sysconfdir=$ac_optarg ;;
Chris@39 1086
Chris@39 1087 -target | --target | --targe | --targ | --tar | --ta | --t)
Chris@39 1088 ac_prev=target_alias ;;
Chris@39 1089 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Chris@39 1090 target_alias=$ac_optarg ;;
Chris@39 1091
Chris@39 1092 -v | -verbose | --verbose | --verbos | --verbo | --verb)
Chris@39 1093 verbose=yes ;;
Chris@39 1094
Chris@39 1095 -version | --version | --versio | --versi | --vers | -V)
Chris@39 1096 ac_init_version=: ;;
Chris@39 1097
Chris@39 1098 -with-* | --with-*)
Chris@39 1099 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Chris@39 1100 # Reject names that are not valid shell variable names.
Chris@39 1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@39 1102 as_fn_error $? "invalid package name: $ac_useropt"
Chris@39 1103 ac_useropt_orig=$ac_useropt
Chris@39 1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@39 1105 case $ac_user_opts in
Chris@39 1106 *"
Chris@39 1107 "with_$ac_useropt"
Chris@39 1108 "*) ;;
Chris@39 1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
Chris@39 1110 ac_unrecognized_sep=', ';;
Chris@39 1111 esac
Chris@39 1112 eval with_$ac_useropt=\$ac_optarg ;;
Chris@39 1113
Chris@39 1114 -without-* | --without-*)
Chris@39 1115 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Chris@39 1116 # Reject names that are not valid shell variable names.
Chris@39 1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@39 1118 as_fn_error $? "invalid package name: $ac_useropt"
Chris@39 1119 ac_useropt_orig=$ac_useropt
Chris@39 1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@39 1121 case $ac_user_opts in
Chris@39 1122 *"
Chris@39 1123 "with_$ac_useropt"
Chris@39 1124 "*) ;;
Chris@39 1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
Chris@39 1126 ac_unrecognized_sep=', ';;
Chris@39 1127 esac
Chris@39 1128 eval with_$ac_useropt=no ;;
Chris@39 1129
Chris@39 1130 --x)
Chris@39 1131 # Obsolete; use --with-x.
Chris@39 1132 with_x=yes ;;
Chris@39 1133
Chris@39 1134 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
Chris@39 1135 | --x-incl | --x-inc | --x-in | --x-i)
Chris@39 1136 ac_prev=x_includes ;;
Chris@39 1137 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
Chris@39 1138 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Chris@39 1139 x_includes=$ac_optarg ;;
Chris@39 1140
Chris@39 1141 -x-libraries | --x-libraries | --x-librarie | --x-librari \
Chris@39 1142 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
Chris@39 1143 ac_prev=x_libraries ;;
Chris@39 1144 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
Chris@39 1145 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Chris@39 1146 x_libraries=$ac_optarg ;;
Chris@39 1147
Chris@39 1148 -*) as_fn_error $? "unrecognized option: \`$ac_option'
Chris@39 1149 Try \`$0 --help' for more information"
Chris@39 1150 ;;
Chris@39 1151
Chris@39 1152 *=*)
Chris@39 1153 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
Chris@39 1154 # Reject names that are not valid shell variable names.
Chris@39 1155 case $ac_envvar in #(
Chris@39 1156 '' | [0-9]* | *[!_$as_cr_alnum]* )
Chris@39 1157 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Chris@39 1158 esac
Chris@39 1159 eval $ac_envvar=\$ac_optarg
Chris@39 1160 export $ac_envvar ;;
Chris@39 1161
Chris@39 1162 *)
Chris@39 1163 # FIXME: should be removed in autoconf 3.0.
Chris@39 1164 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Chris@39 1165 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Chris@39 1166 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Chris@39 1167 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Chris@39 1168 ;;
Chris@39 1169
Chris@39 1170 esac
Chris@39 1171 done
Chris@39 1172
Chris@39 1173 if test -n "$ac_prev"; then
Chris@39 1174 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Chris@39 1175 as_fn_error $? "missing argument to $ac_option"
Chris@39 1176 fi
Chris@39 1177
Chris@39 1178 if test -n "$ac_unrecognized_opts"; then
Chris@39 1179 case $enable_option_checking in
Chris@39 1180 no) ;;
Chris@39 1181 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Chris@39 1182 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Chris@39 1183 esac
Chris@39 1184 fi
Chris@39 1185
Chris@39 1186 # Check all directory arguments for consistency.
Chris@39 1187 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
Chris@39 1188 datadir sysconfdir sharedstatedir localstatedir includedir \
Chris@39 1189 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Chris@39 1190 libdir localedir mandir
Chris@39 1191 do
Chris@39 1192 eval ac_val=\$$ac_var
Chris@39 1193 # Remove trailing slashes.
Chris@39 1194 case $ac_val in
Chris@39 1195 */ )
Chris@39 1196 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
Chris@39 1197 eval $ac_var=\$ac_val;;
Chris@39 1198 esac
Chris@39 1199 # Be sure to have absolute directory names.
Chris@39 1200 case $ac_val in
Chris@39 1201 [\\/$]* | ?:[\\/]* ) continue;;
Chris@39 1202 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Chris@39 1203 esac
Chris@39 1204 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Chris@39 1205 done
Chris@39 1206
Chris@39 1207 # There might be people who depend on the old broken behavior: `$host'
Chris@39 1208 # used to hold the argument of --host etc.
Chris@39 1209 # FIXME: To remove some day.
Chris@39 1210 build=$build_alias
Chris@39 1211 host=$host_alias
Chris@39 1212 target=$target_alias
Chris@39 1213
Chris@39 1214 # FIXME: To remove some day.
Chris@39 1215 if test "x$host_alias" != x; then
Chris@39 1216 if test "x$build_alias" = x; then
Chris@39 1217 cross_compiling=maybe
Chris@39 1218 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
Chris@39 1219 If a cross compiler is detected then cross compile mode will be used" >&2
Chris@39 1220 elif test "x$build_alias" != "x$host_alias"; then
Chris@39 1221 cross_compiling=yes
Chris@39 1222 fi
Chris@39 1223 fi
Chris@39 1224
Chris@39 1225 ac_tool_prefix=
Chris@39 1226 test -n "$host_alias" && ac_tool_prefix=$host_alias-
Chris@39 1227
Chris@39 1228 test "$silent" = yes && exec 6>/dev/null
Chris@39 1229
Chris@39 1230
Chris@39 1231 ac_pwd=`pwd` && test -n "$ac_pwd" &&
Chris@39 1232 ac_ls_di=`ls -di .` &&
Chris@39 1233 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Chris@39 1234 as_fn_error $? "working directory cannot be determined"
Chris@39 1235 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Chris@39 1236 as_fn_error $? "pwd does not report name of working directory"
Chris@39 1237
Chris@39 1238
Chris@39 1239 # Find the source files, if location was not specified.
Chris@39 1240 if test -z "$srcdir"; then
Chris@39 1241 ac_srcdir_defaulted=yes
Chris@39 1242 # Try the directory containing this script, then the parent directory.
Chris@39 1243 ac_confdir=`$as_dirname -- "$as_myself" ||
Chris@39 1244 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@39 1245 X"$as_myself" : 'X\(//\)[^/]' \| \
Chris@39 1246 X"$as_myself" : 'X\(//\)$' \| \
Chris@39 1247 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
Chris@39 1248 $as_echo X"$as_myself" |
Chris@39 1249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@39 1250 s//\1/
Chris@39 1251 q
Chris@39 1252 }
Chris@39 1253 /^X\(\/\/\)[^/].*/{
Chris@39 1254 s//\1/
Chris@39 1255 q
Chris@39 1256 }
Chris@39 1257 /^X\(\/\/\)$/{
Chris@39 1258 s//\1/
Chris@39 1259 q
Chris@39 1260 }
Chris@39 1261 /^X\(\/\).*/{
Chris@39 1262 s//\1/
Chris@39 1263 q
Chris@39 1264 }
Chris@39 1265 s/.*/./; q'`
Chris@39 1266 srcdir=$ac_confdir
Chris@39 1267 if test ! -r "$srcdir/$ac_unique_file"; then
Chris@39 1268 srcdir=..
Chris@39 1269 fi
Chris@39 1270 else
Chris@39 1271 ac_srcdir_defaulted=no
Chris@39 1272 fi
Chris@39 1273 if test ! -r "$srcdir/$ac_unique_file"; then
Chris@39 1274 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Chris@39 1275 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Chris@39 1276 fi
Chris@39 1277 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
Chris@39 1278 ac_abs_confdir=`(
Chris@39 1279 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Chris@39 1280 pwd)`
Chris@39 1281 # When building in place, set srcdir=.
Chris@39 1282 if test "$ac_abs_confdir" = "$ac_pwd"; then
Chris@39 1283 srcdir=.
Chris@39 1284 fi
Chris@39 1285 # Remove unnecessary trailing slashes from srcdir.
Chris@39 1286 # Double slashes in file names in object file debugging info
Chris@39 1287 # mess up M-x gdb in Emacs.
Chris@39 1288 case $srcdir in
Chris@39 1289 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
Chris@39 1290 esac
Chris@39 1291 for ac_var in $ac_precious_vars; do
Chris@39 1292 eval ac_env_${ac_var}_set=\${${ac_var}+set}
Chris@39 1293 eval ac_env_${ac_var}_value=\$${ac_var}
Chris@39 1294 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
Chris@39 1295 eval ac_cv_env_${ac_var}_value=\$${ac_var}
Chris@39 1296 done
Chris@39 1297
Chris@39 1298 #
Chris@39 1299 # Report the --help message.
Chris@39 1300 #
Chris@39 1301 if test "$ac_init_help" = "long"; then
Chris@39 1302 # Omit some internal or obsolete options to make the list less imposing.
Chris@39 1303 # This message is too long to be a string in the A/UX 3.1 sh.
Chris@39 1304 cat <<_ACEOF
Chris@39 1305 \`configure' configures PortAudioCpp 12 to adapt to many kinds of systems.
Chris@39 1306
Chris@39 1307 Usage: $0 [OPTION]... [VAR=VALUE]...
Chris@39 1308
Chris@39 1309 To assign environment variables (e.g., CC, CFLAGS...), specify them as
Chris@39 1310 VAR=VALUE. See below for descriptions of some of the useful variables.
Chris@39 1311
Chris@39 1312 Defaults for the options are specified in brackets.
Chris@39 1313
Chris@39 1314 Configuration:
Chris@39 1315 -h, --help display this help and exit
Chris@39 1316 --help=short display options specific to this package
Chris@39 1317 --help=recursive display the short help of all the included packages
Chris@39 1318 -V, --version display version information and exit
Chris@39 1319 -q, --quiet, --silent do not print \`checking ...' messages
Chris@39 1320 --cache-file=FILE cache test results in FILE [disabled]
Chris@39 1321 -C, --config-cache alias for \`--cache-file=config.cache'
Chris@39 1322 -n, --no-create do not create output files
Chris@39 1323 --srcdir=DIR find the sources in DIR [configure dir or \`..']
Chris@39 1324
Chris@39 1325 Installation directories:
Chris@39 1326 --prefix=PREFIX install architecture-independent files in PREFIX
Chris@39 1327 [$ac_default_prefix]
Chris@39 1328 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Chris@39 1329 [PREFIX]
Chris@39 1330
Chris@39 1331 By default, \`make install' will install all the files in
Chris@39 1332 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
Chris@39 1333 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
Chris@39 1334 for instance \`--prefix=\$HOME'.
Chris@39 1335
Chris@39 1336 For better control, use the options below.
Chris@39 1337
Chris@39 1338 Fine tuning of the installation directories:
Chris@39 1339 --bindir=DIR user executables [EPREFIX/bin]
Chris@39 1340 --sbindir=DIR system admin executables [EPREFIX/sbin]
Chris@39 1341 --libexecdir=DIR program executables [EPREFIX/libexec]
Chris@39 1342 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
Chris@39 1343 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
Chris@39 1344 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Chris@39 1345 --libdir=DIR object code libraries [EPREFIX/lib]
Chris@39 1346 --includedir=DIR C header files [PREFIX/include]
Chris@39 1347 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Chris@39 1348 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
Chris@39 1349 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
Chris@39 1350 --infodir=DIR info documentation [DATAROOTDIR/info]
Chris@39 1351 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
Chris@39 1352 --mandir=DIR man documentation [DATAROOTDIR/man]
Chris@39 1353 --docdir=DIR documentation root [DATAROOTDIR/doc/portaudiocpp]
Chris@39 1354 --htmldir=DIR html documentation [DOCDIR]
Chris@39 1355 --dvidir=DIR dvi documentation [DOCDIR]
Chris@39 1356 --pdfdir=DIR pdf documentation [DOCDIR]
Chris@39 1357 --psdir=DIR ps documentation [DOCDIR]
Chris@39 1358 _ACEOF
Chris@39 1359
Chris@39 1360 cat <<\_ACEOF
Chris@39 1361
Chris@39 1362 Program names:
Chris@39 1363 --program-prefix=PREFIX prepend PREFIX to installed program names
Chris@39 1364 --program-suffix=SUFFIX append SUFFIX to installed program names
Chris@39 1365 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
Chris@39 1366
Chris@39 1367 System types:
Chris@39 1368 --build=BUILD configure for building on BUILD [guessed]
Chris@39 1369 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Chris@39 1370 _ACEOF
Chris@39 1371 fi
Chris@39 1372
Chris@39 1373 if test -n "$ac_init_help"; then
Chris@39 1374 case $ac_init_help in
Chris@39 1375 short | recursive ) echo "Configuration of PortAudioCpp 12:";;
Chris@39 1376 esac
Chris@39 1377 cat <<\_ACEOF
Chris@39 1378
Chris@39 1379 Optional Features:
Chris@39 1380 --disable-option-checking ignore unrecognized --enable/--with options
Chris@39 1381 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
Chris@39 1382 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Chris@39 1383 --enable-maintainer-mode enable make rules and dependencies not useful
Chris@39 1384 (and sometimes confusing) to the casual installer
Chris@39 1385 --disable-dependency-tracking speeds up one-time build
Chris@39 1386 --enable-dependency-tracking do not reject slow dependency extractors
Chris@39 1387 --enable-shared[=PKGS] build shared libraries [default=yes]
Chris@39 1388 --enable-static[=PKGS] build static libraries [default=yes]
Chris@39 1389 --enable-fast-install[=PKGS]
Chris@39 1390 optimize for fast installation [default=yes]
Chris@39 1391 --disable-libtool-lock avoid locking (might break parallel builds)
Chris@39 1392
Chris@39 1393 Optional Packages:
Chris@39 1394 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
Chris@39 1395 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Chris@39 1396 --with-pic try to use only PIC/non-PIC objects [default=use
Chris@39 1397 both]
Chris@39 1398 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Chris@39 1399 --with-sysroot=DIR Search for dependent libraries within DIR
Chris@39 1400 (or the compiler's sysroot if not specified).
Chris@39 1401
Chris@39 1402 Some influential environment variables:
Chris@39 1403 CC C compiler command
Chris@39 1404 CFLAGS C compiler flags
Chris@39 1405 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
Chris@39 1406 nonstandard directory <lib dir>
Chris@39 1407 LIBS libraries to pass to the linker, e.g. -l<library>
Chris@39 1408 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Chris@39 1409 you have headers in a nonstandard directory <include dir>
Chris@39 1410 CXX C++ compiler command
Chris@39 1411 CXXFLAGS C++ compiler flags
Chris@39 1412 CPP C preprocessor
Chris@39 1413 CXXCPP C++ preprocessor
Chris@39 1414
Chris@39 1415 Use these variables to override the choices made by `configure' or to help
Chris@39 1416 it to find libraries and programs with nonstandard names/locations.
Chris@39 1417
Chris@39 1418 Report bugs to the package provider.
Chris@39 1419 _ACEOF
Chris@39 1420 ac_status=$?
Chris@39 1421 fi
Chris@39 1422
Chris@39 1423 if test "$ac_init_help" = "recursive"; then
Chris@39 1424 # If there are subdirs, report their specific --help.
Chris@39 1425 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Chris@39 1426 test -d "$ac_dir" ||
Chris@39 1427 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
Chris@39 1428 continue
Chris@39 1429 ac_builddir=.
Chris@39 1430
Chris@39 1431 case "$ac_dir" in
Chris@39 1432 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@39 1433 *)
Chris@39 1434 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Chris@39 1435 # A ".." for each directory in $ac_dir_suffix.
Chris@39 1436 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Chris@39 1437 case $ac_top_builddir_sub in
Chris@39 1438 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@39 1439 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
Chris@39 1440 esac ;;
Chris@39 1441 esac
Chris@39 1442 ac_abs_top_builddir=$ac_pwd
Chris@39 1443 ac_abs_builddir=$ac_pwd$ac_dir_suffix
Chris@39 1444 # for backward compatibility:
Chris@39 1445 ac_top_builddir=$ac_top_build_prefix
Chris@39 1446
Chris@39 1447 case $srcdir in
Chris@39 1448 .) # We are building in place.
Chris@39 1449 ac_srcdir=.
Chris@39 1450 ac_top_srcdir=$ac_top_builddir_sub
Chris@39 1451 ac_abs_top_srcdir=$ac_pwd ;;
Chris@39 1452 [\\/]* | ?:[\\/]* ) # Absolute name.
Chris@39 1453 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@39 1454 ac_top_srcdir=$srcdir
Chris@39 1455 ac_abs_top_srcdir=$srcdir ;;
Chris@39 1456 *) # Relative name.
Chris@39 1457 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
Chris@39 1458 ac_top_srcdir=$ac_top_build_prefix$srcdir
Chris@39 1459 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Chris@39 1460 esac
Chris@39 1461 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Chris@39 1462
Chris@39 1463 cd "$ac_dir" || { ac_status=$?; continue; }
Chris@39 1464 # Check for guested configure.
Chris@39 1465 if test -f "$ac_srcdir/configure.gnu"; then
Chris@39 1466 echo &&
Chris@39 1467 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
Chris@39 1468 elif test -f "$ac_srcdir/configure"; then
Chris@39 1469 echo &&
Chris@39 1470 $SHELL "$ac_srcdir/configure" --help=recursive
Chris@39 1471 else
Chris@39 1472 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Chris@39 1473 fi || ac_status=$?
Chris@39 1474 cd "$ac_pwd" || { ac_status=$?; break; }
Chris@39 1475 done
Chris@39 1476 fi
Chris@39 1477
Chris@39 1478 test -n "$ac_init_help" && exit $ac_status
Chris@39 1479 if $ac_init_version; then
Chris@39 1480 cat <<\_ACEOF
Chris@39 1481 PortAudioCpp configure 12
Chris@39 1482 generated by GNU Autoconf 2.68
Chris@39 1483
Chris@39 1484 Copyright (C) 2010 Free Software Foundation, Inc.
Chris@39 1485 This configure script is free software; the Free Software Foundation
Chris@39 1486 gives unlimited permission to copy, distribute and modify it.
Chris@39 1487 _ACEOF
Chris@39 1488 exit
Chris@39 1489 fi
Chris@39 1490
Chris@39 1491 ## ------------------------ ##
Chris@39 1492 ## Autoconf initialization. ##
Chris@39 1493 ## ------------------------ ##
Chris@39 1494
Chris@39 1495 # ac_fn_c_try_compile LINENO
Chris@39 1496 # --------------------------
Chris@39 1497 # Try to compile conftest.$ac_ext, and return whether this succeeded.
Chris@39 1498 ac_fn_c_try_compile ()
Chris@39 1499 {
Chris@39 1500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@39 1501 rm -f conftest.$ac_objext
Chris@39 1502 if { { ac_try="$ac_compile"
Chris@39 1503 case "(($ac_try" in
Chris@39 1504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@39 1505 *) ac_try_echo=$ac_try;;
Chris@39 1506 esac
Chris@39 1507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@39 1508 $as_echo "$ac_try_echo"; } >&5
Chris@39 1509 (eval "$ac_compile") 2>conftest.err
Chris@39 1510 ac_status=$?
Chris@39 1511 if test -s conftest.err; then
Chris@39 1512 grep -v '^ *+' conftest.err >conftest.er1
Chris@39 1513 cat conftest.er1 >&5
Chris@39 1514 mv -f conftest.er1 conftest.err
Chris@39 1515 fi
Chris@39 1516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 1517 test $ac_status = 0; } && {
Chris@39 1518 test -z "$ac_c_werror_flag" ||
Chris@39 1519 test ! -s conftest.err
Chris@39 1520 } && test -s conftest.$ac_objext; then :
Chris@39 1521 ac_retval=0
Chris@39 1522 else
Chris@39 1523 $as_echo "$as_me: failed program was:" >&5
Chris@39 1524 sed 's/^/| /' conftest.$ac_ext >&5
Chris@39 1525
Chris@39 1526 ac_retval=1
Chris@39 1527 fi
Chris@39 1528 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@39 1529 as_fn_set_status $ac_retval
Chris@39 1530
Chris@39 1531 } # ac_fn_c_try_compile
Chris@39 1532
Chris@39 1533 # ac_fn_cxx_try_compile LINENO
Chris@39 1534 # ----------------------------
Chris@39 1535 # Try to compile conftest.$ac_ext, and return whether this succeeded.
Chris@39 1536 ac_fn_cxx_try_compile ()
Chris@39 1537 {
Chris@39 1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@39 1539 rm -f conftest.$ac_objext
Chris@39 1540 if { { ac_try="$ac_compile"
Chris@39 1541 case "(($ac_try" in
Chris@39 1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@39 1543 *) ac_try_echo=$ac_try;;
Chris@39 1544 esac
Chris@39 1545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@39 1546 $as_echo "$ac_try_echo"; } >&5
Chris@39 1547 (eval "$ac_compile") 2>conftest.err
Chris@39 1548 ac_status=$?
Chris@39 1549 if test -s conftest.err; then
Chris@39 1550 grep -v '^ *+' conftest.err >conftest.er1
Chris@39 1551 cat conftest.er1 >&5
Chris@39 1552 mv -f conftest.er1 conftest.err
Chris@39 1553 fi
Chris@39 1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 1555 test $ac_status = 0; } && {
Chris@39 1556 test -z "$ac_cxx_werror_flag" ||
Chris@39 1557 test ! -s conftest.err
Chris@39 1558 } && test -s conftest.$ac_objext; then :
Chris@39 1559 ac_retval=0
Chris@39 1560 else
Chris@39 1561 $as_echo "$as_me: failed program was:" >&5
Chris@39 1562 sed 's/^/| /' conftest.$ac_ext >&5
Chris@39 1563
Chris@39 1564 ac_retval=1
Chris@39 1565 fi
Chris@39 1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@39 1567 as_fn_set_status $ac_retval
Chris@39 1568
Chris@39 1569 } # ac_fn_cxx_try_compile
Chris@39 1570
Chris@39 1571 # ac_fn_c_try_link LINENO
Chris@39 1572 # -----------------------
Chris@39 1573 # Try to link conftest.$ac_ext, and return whether this succeeded.
Chris@39 1574 ac_fn_c_try_link ()
Chris@39 1575 {
Chris@39 1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@39 1577 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@39 1578 if { { ac_try="$ac_link"
Chris@39 1579 case "(($ac_try" in
Chris@39 1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@39 1581 *) ac_try_echo=$ac_try;;
Chris@39 1582 esac
Chris@39 1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@39 1584 $as_echo "$ac_try_echo"; } >&5
Chris@39 1585 (eval "$ac_link") 2>conftest.err
Chris@39 1586 ac_status=$?
Chris@39 1587 if test -s conftest.err; then
Chris@39 1588 grep -v '^ *+' conftest.err >conftest.er1
Chris@39 1589 cat conftest.er1 >&5
Chris@39 1590 mv -f conftest.er1 conftest.err
Chris@39 1591 fi
Chris@39 1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 1593 test $ac_status = 0; } && {
Chris@39 1594 test -z "$ac_c_werror_flag" ||
Chris@39 1595 test ! -s conftest.err
Chris@39 1596 } && test -s conftest$ac_exeext && {
Chris@39 1597 test "$cross_compiling" = yes ||
Chris@39 1598 $as_test_x conftest$ac_exeext
Chris@39 1599 }; then :
Chris@39 1600 ac_retval=0
Chris@39 1601 else
Chris@39 1602 $as_echo "$as_me: failed program was:" >&5
Chris@39 1603 sed 's/^/| /' conftest.$ac_ext >&5
Chris@39 1604
Chris@39 1605 ac_retval=1
Chris@39 1606 fi
Chris@39 1607 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
Chris@39 1608 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
Chris@39 1609 # interfere with the next link command; also delete a directory that is
Chris@39 1610 # left behind by Apple's compiler. We do this before executing the actions.
Chris@39 1611 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris@39 1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@39 1613 as_fn_set_status $ac_retval
Chris@39 1614
Chris@39 1615 } # ac_fn_c_try_link
Chris@39 1616
Chris@39 1617 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
Chris@39 1618 # -------------------------------------------------------
Chris@39 1619 # Tests whether HEADER exists and can be compiled using the include files in
Chris@39 1620 # INCLUDES, setting the cache variable VAR accordingly.
Chris@39 1621 ac_fn_c_check_header_compile ()
Chris@39 1622 {
Chris@39 1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@39 1624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@39 1625 $as_echo_n "checking for $2... " >&6; }
Chris@39 1626 if eval \${$3+:} false; then :
Chris@39 1627 $as_echo_n "(cached) " >&6
Chris@39 1628 else
Chris@39 1629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 1630 /* end confdefs.h. */
Chris@39 1631 $4
Chris@39 1632 #include <$2>
Chris@39 1633 _ACEOF
Chris@39 1634 if ac_fn_c_try_compile "$LINENO"; then :
Chris@39 1635 eval "$3=yes"
Chris@39 1636 else
Chris@39 1637 eval "$3=no"
Chris@39 1638 fi
Chris@39 1639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 1640 fi
Chris@39 1641 eval ac_res=\$$3
Chris@39 1642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@39 1643 $as_echo "$ac_res" >&6; }
Chris@39 1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@39 1645
Chris@39 1646 } # ac_fn_c_check_header_compile
Chris@39 1647
Chris@39 1648 # ac_fn_c_try_cpp LINENO
Chris@39 1649 # ----------------------
Chris@39 1650 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
Chris@39 1651 ac_fn_c_try_cpp ()
Chris@39 1652 {
Chris@39 1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@39 1654 if { { ac_try="$ac_cpp conftest.$ac_ext"
Chris@39 1655 case "(($ac_try" in
Chris@39 1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@39 1657 *) ac_try_echo=$ac_try;;
Chris@39 1658 esac
Chris@39 1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@39 1660 $as_echo "$ac_try_echo"; } >&5
Chris@39 1661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
Chris@39 1662 ac_status=$?
Chris@39 1663 if test -s conftest.err; then
Chris@39 1664 grep -v '^ *+' conftest.err >conftest.er1
Chris@39 1665 cat conftest.er1 >&5
Chris@39 1666 mv -f conftest.er1 conftest.err
Chris@39 1667 fi
Chris@39 1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 1669 test $ac_status = 0; } > conftest.i && {
Chris@39 1670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
Chris@39 1671 test ! -s conftest.err
Chris@39 1672 }; then :
Chris@39 1673 ac_retval=0
Chris@39 1674 else
Chris@39 1675 $as_echo "$as_me: failed program was:" >&5
Chris@39 1676 sed 's/^/| /' conftest.$ac_ext >&5
Chris@39 1677
Chris@39 1678 ac_retval=1
Chris@39 1679 fi
Chris@39 1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@39 1681 as_fn_set_status $ac_retval
Chris@39 1682
Chris@39 1683 } # ac_fn_c_try_cpp
Chris@39 1684
Chris@39 1685 # ac_fn_c_try_run LINENO
Chris@39 1686 # ----------------------
Chris@39 1687 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
Chris@39 1688 # that executables *can* be run.
Chris@39 1689 ac_fn_c_try_run ()
Chris@39 1690 {
Chris@39 1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@39 1692 if { { ac_try="$ac_link"
Chris@39 1693 case "(($ac_try" in
Chris@39 1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@39 1695 *) ac_try_echo=$ac_try;;
Chris@39 1696 esac
Chris@39 1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@39 1698 $as_echo "$ac_try_echo"; } >&5
Chris@39 1699 (eval "$ac_link") 2>&5
Chris@39 1700 ac_status=$?
Chris@39 1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 1702 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
Chris@39 1703 { { case "(($ac_try" in
Chris@39 1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@39 1705 *) ac_try_echo=$ac_try;;
Chris@39 1706 esac
Chris@39 1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@39 1708 $as_echo "$ac_try_echo"; } >&5
Chris@39 1709 (eval "$ac_try") 2>&5
Chris@39 1710 ac_status=$?
Chris@39 1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 1712 test $ac_status = 0; }; }; then :
Chris@39 1713 ac_retval=0
Chris@39 1714 else
Chris@39 1715 $as_echo "$as_me: program exited with status $ac_status" >&5
Chris@39 1716 $as_echo "$as_me: failed program was:" >&5
Chris@39 1717 sed 's/^/| /' conftest.$ac_ext >&5
Chris@39 1718
Chris@39 1719 ac_retval=$ac_status
Chris@39 1720 fi
Chris@39 1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris@39 1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@39 1723 as_fn_set_status $ac_retval
Chris@39 1724
Chris@39 1725 } # ac_fn_c_try_run
Chris@39 1726
Chris@39 1727 # ac_fn_c_check_func LINENO FUNC VAR
Chris@39 1728 # ----------------------------------
Chris@39 1729 # Tests whether FUNC exists, setting the cache variable VAR accordingly
Chris@39 1730 ac_fn_c_check_func ()
Chris@39 1731 {
Chris@39 1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@39 1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@39 1734 $as_echo_n "checking for $2... " >&6; }
Chris@39 1735 if eval \${$3+:} false; then :
Chris@39 1736 $as_echo_n "(cached) " >&6
Chris@39 1737 else
Chris@39 1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 1739 /* end confdefs.h. */
Chris@39 1740 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
Chris@39 1741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
Chris@39 1742 #define $2 innocuous_$2
Chris@39 1743
Chris@39 1744 /* System header to define __stub macros and hopefully few prototypes,
Chris@39 1745 which can conflict with char $2 (); below.
Chris@39 1746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@39 1747 <limits.h> exists even on freestanding compilers. */
Chris@39 1748
Chris@39 1749 #ifdef __STDC__
Chris@39 1750 # include <limits.h>
Chris@39 1751 #else
Chris@39 1752 # include <assert.h>
Chris@39 1753 #endif
Chris@39 1754
Chris@39 1755 #undef $2
Chris@39 1756
Chris@39 1757 /* Override any GCC internal prototype to avoid an error.
Chris@39 1758 Use char because int might match the return type of a GCC
Chris@39 1759 builtin and then its argument prototype would still apply. */
Chris@39 1760 #ifdef __cplusplus
Chris@39 1761 extern "C"
Chris@39 1762 #endif
Chris@39 1763 char $2 ();
Chris@39 1764 /* The GNU C library defines this for functions which it implements
Chris@39 1765 to always fail with ENOSYS. Some functions are actually named
Chris@39 1766 something starting with __ and the normal name is an alias. */
Chris@39 1767 #if defined __stub_$2 || defined __stub___$2
Chris@39 1768 choke me
Chris@39 1769 #endif
Chris@39 1770
Chris@39 1771 int
Chris@39 1772 main ()
Chris@39 1773 {
Chris@39 1774 return $2 ();
Chris@39 1775 ;
Chris@39 1776 return 0;
Chris@39 1777 }
Chris@39 1778 _ACEOF
Chris@39 1779 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 1780 eval "$3=yes"
Chris@39 1781 else
Chris@39 1782 eval "$3=no"
Chris@39 1783 fi
Chris@39 1784 rm -f core conftest.err conftest.$ac_objext \
Chris@39 1785 conftest$ac_exeext conftest.$ac_ext
Chris@39 1786 fi
Chris@39 1787 eval ac_res=\$$3
Chris@39 1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@39 1789 $as_echo "$ac_res" >&6; }
Chris@39 1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@39 1791
Chris@39 1792 } # ac_fn_c_check_func
Chris@39 1793
Chris@39 1794 # ac_fn_cxx_try_cpp LINENO
Chris@39 1795 # ------------------------
Chris@39 1796 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
Chris@39 1797 ac_fn_cxx_try_cpp ()
Chris@39 1798 {
Chris@39 1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@39 1800 if { { ac_try="$ac_cpp conftest.$ac_ext"
Chris@39 1801 case "(($ac_try" in
Chris@39 1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@39 1803 *) ac_try_echo=$ac_try;;
Chris@39 1804 esac
Chris@39 1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@39 1806 $as_echo "$ac_try_echo"; } >&5
Chris@39 1807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
Chris@39 1808 ac_status=$?
Chris@39 1809 if test -s conftest.err; then
Chris@39 1810 grep -v '^ *+' conftest.err >conftest.er1
Chris@39 1811 cat conftest.er1 >&5
Chris@39 1812 mv -f conftest.er1 conftest.err
Chris@39 1813 fi
Chris@39 1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 1815 test $ac_status = 0; } > conftest.i && {
Chris@39 1816 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
Chris@39 1817 test ! -s conftest.err
Chris@39 1818 }; then :
Chris@39 1819 ac_retval=0
Chris@39 1820 else
Chris@39 1821 $as_echo "$as_me: failed program was:" >&5
Chris@39 1822 sed 's/^/| /' conftest.$ac_ext >&5
Chris@39 1823
Chris@39 1824 ac_retval=1
Chris@39 1825 fi
Chris@39 1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@39 1827 as_fn_set_status $ac_retval
Chris@39 1828
Chris@39 1829 } # ac_fn_cxx_try_cpp
Chris@39 1830
Chris@39 1831 # ac_fn_cxx_try_link LINENO
Chris@39 1832 # -------------------------
Chris@39 1833 # Try to link conftest.$ac_ext, and return whether this succeeded.
Chris@39 1834 ac_fn_cxx_try_link ()
Chris@39 1835 {
Chris@39 1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@39 1837 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@39 1838 if { { ac_try="$ac_link"
Chris@39 1839 case "(($ac_try" in
Chris@39 1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@39 1841 *) ac_try_echo=$ac_try;;
Chris@39 1842 esac
Chris@39 1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@39 1844 $as_echo "$ac_try_echo"; } >&5
Chris@39 1845 (eval "$ac_link") 2>conftest.err
Chris@39 1846 ac_status=$?
Chris@39 1847 if test -s conftest.err; then
Chris@39 1848 grep -v '^ *+' conftest.err >conftest.er1
Chris@39 1849 cat conftest.er1 >&5
Chris@39 1850 mv -f conftest.er1 conftest.err
Chris@39 1851 fi
Chris@39 1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 1853 test $ac_status = 0; } && {
Chris@39 1854 test -z "$ac_cxx_werror_flag" ||
Chris@39 1855 test ! -s conftest.err
Chris@39 1856 } && test -s conftest$ac_exeext && {
Chris@39 1857 test "$cross_compiling" = yes ||
Chris@39 1858 $as_test_x conftest$ac_exeext
Chris@39 1859 }; then :
Chris@39 1860 ac_retval=0
Chris@39 1861 else
Chris@39 1862 $as_echo "$as_me: failed program was:" >&5
Chris@39 1863 sed 's/^/| /' conftest.$ac_ext >&5
Chris@39 1864
Chris@39 1865 ac_retval=1
Chris@39 1866 fi
Chris@39 1867 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
Chris@39 1868 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
Chris@39 1869 # interfere with the next link command; also delete a directory that is
Chris@39 1870 # left behind by Apple's compiler. We do this before executing the actions.
Chris@39 1871 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris@39 1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@39 1873 as_fn_set_status $ac_retval
Chris@39 1874
Chris@39 1875 } # ac_fn_cxx_try_link
Chris@39 1876 cat >config.log <<_ACEOF
Chris@39 1877 This file contains any messages produced by compilers while
Chris@39 1878 running configure, to aid debugging if configure makes a mistake.
Chris@39 1879
Chris@39 1880 It was created by PortAudioCpp $as_me 12, which was
Chris@39 1881 generated by GNU Autoconf 2.68. Invocation command line was
Chris@39 1882
Chris@39 1883 $ $0 $@
Chris@39 1884
Chris@39 1885 _ACEOF
Chris@39 1886 exec 5>>config.log
Chris@39 1887 {
Chris@39 1888 cat <<_ASUNAME
Chris@39 1889 ## --------- ##
Chris@39 1890 ## Platform. ##
Chris@39 1891 ## --------- ##
Chris@39 1892
Chris@39 1893 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@39 1894 uname -m = `(uname -m) 2>/dev/null || echo unknown`
Chris@39 1895 uname -r = `(uname -r) 2>/dev/null || echo unknown`
Chris@39 1896 uname -s = `(uname -s) 2>/dev/null || echo unknown`
Chris@39 1897 uname -v = `(uname -v) 2>/dev/null || echo unknown`
Chris@39 1898
Chris@39 1899 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
Chris@39 1900 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
Chris@39 1901
Chris@39 1902 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
Chris@39 1903 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
Chris@39 1904 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Chris@39 1905 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Chris@39 1906 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
Chris@39 1907 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
Chris@39 1908 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
Chris@39 1909
Chris@39 1910 _ASUNAME
Chris@39 1911
Chris@39 1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 1913 for as_dir in $PATH
Chris@39 1914 do
Chris@39 1915 IFS=$as_save_IFS
Chris@39 1916 test -z "$as_dir" && as_dir=.
Chris@39 1917 $as_echo "PATH: $as_dir"
Chris@39 1918 done
Chris@39 1919 IFS=$as_save_IFS
Chris@39 1920
Chris@39 1921 } >&5
Chris@39 1922
Chris@39 1923 cat >&5 <<_ACEOF
Chris@39 1924
Chris@39 1925
Chris@39 1926 ## ----------- ##
Chris@39 1927 ## Core tests. ##
Chris@39 1928 ## ----------- ##
Chris@39 1929
Chris@39 1930 _ACEOF
Chris@39 1931
Chris@39 1932
Chris@39 1933 # Keep a trace of the command line.
Chris@39 1934 # Strip out --no-create and --no-recursion so they do not pile up.
Chris@39 1935 # Strip out --silent because we don't want to record it for future runs.
Chris@39 1936 # Also quote any args containing shell meta-characters.
Chris@39 1937 # Make two passes to allow for proper duplicate-argument suppression.
Chris@39 1938 ac_configure_args=
Chris@39 1939 ac_configure_args0=
Chris@39 1940 ac_configure_args1=
Chris@39 1941 ac_must_keep_next=false
Chris@39 1942 for ac_pass in 1 2
Chris@39 1943 do
Chris@39 1944 for ac_arg
Chris@39 1945 do
Chris@39 1946 case $ac_arg in
Chris@39 1947 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
Chris@39 1948 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@39 1949 | -silent | --silent | --silen | --sile | --sil)
Chris@39 1950 continue ;;
Chris@39 1951 *\'*)
Chris@39 1952 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@39 1953 esac
Chris@39 1954 case $ac_pass in
Chris@39 1955 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Chris@39 1956 2)
Chris@39 1957 as_fn_append ac_configure_args1 " '$ac_arg'"
Chris@39 1958 if test $ac_must_keep_next = true; then
Chris@39 1959 ac_must_keep_next=false # Got value, back to normal.
Chris@39 1960 else
Chris@39 1961 case $ac_arg in
Chris@39 1962 *=* | --config-cache | -C | -disable-* | --disable-* \
Chris@39 1963 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
Chris@39 1964 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
Chris@39 1965 | -with-* | --with-* | -without-* | --without-* | --x)
Chris@39 1966 case "$ac_configure_args0 " in
Chris@39 1967 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
Chris@39 1968 esac
Chris@39 1969 ;;
Chris@39 1970 -* ) ac_must_keep_next=true ;;
Chris@39 1971 esac
Chris@39 1972 fi
Chris@39 1973 as_fn_append ac_configure_args " '$ac_arg'"
Chris@39 1974 ;;
Chris@39 1975 esac
Chris@39 1976 done
Chris@39 1977 done
Chris@39 1978 { ac_configure_args0=; unset ac_configure_args0;}
Chris@39 1979 { ac_configure_args1=; unset ac_configure_args1;}
Chris@39 1980
Chris@39 1981 # When interrupted or exit'd, cleanup temporary files, and complete
Chris@39 1982 # config.log. We remove comments because anyway the quotes in there
Chris@39 1983 # would cause problems or look ugly.
Chris@39 1984 # WARNING: Use '\'' to represent an apostrophe within the trap.
Chris@39 1985 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Chris@39 1986 trap 'exit_status=$?
Chris@39 1987 # Save into config.log some information that might help in debugging.
Chris@39 1988 {
Chris@39 1989 echo
Chris@39 1990
Chris@39 1991 $as_echo "## ---------------- ##
Chris@39 1992 ## Cache variables. ##
Chris@39 1993 ## ---------------- ##"
Chris@39 1994 echo
Chris@39 1995 # The following way of writing the cache mishandles newlines in values,
Chris@39 1996 (
Chris@39 1997 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
Chris@39 1998 eval ac_val=\$$ac_var
Chris@39 1999 case $ac_val in #(
Chris@39 2000 *${as_nl}*)
Chris@39 2001 case $ac_var in #(
Chris@39 2002 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Chris@39 2003 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Chris@39 2004 esac
Chris@39 2005 case $ac_var in #(
Chris@39 2006 _ | IFS | as_nl) ;; #(
Chris@39 2007 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Chris@39 2008 *) { eval $ac_var=; unset $ac_var;} ;;
Chris@39 2009 esac ;;
Chris@39 2010 esac
Chris@39 2011 done
Chris@39 2012 (set) 2>&1 |
Chris@39 2013 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
Chris@39 2014 *${as_nl}ac_space=\ *)
Chris@39 2015 sed -n \
Chris@39 2016 "s/'\''/'\''\\\\'\'''\''/g;
Chris@39 2017 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
Chris@39 2018 ;; #(
Chris@39 2019 *)
Chris@39 2020 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Chris@39 2021 ;;
Chris@39 2022 esac |
Chris@39 2023 sort
Chris@39 2024 )
Chris@39 2025 echo
Chris@39 2026
Chris@39 2027 $as_echo "## ----------------- ##
Chris@39 2028 ## Output variables. ##
Chris@39 2029 ## ----------------- ##"
Chris@39 2030 echo
Chris@39 2031 for ac_var in $ac_subst_vars
Chris@39 2032 do
Chris@39 2033 eval ac_val=\$$ac_var
Chris@39 2034 case $ac_val in
Chris@39 2035 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Chris@39 2036 esac
Chris@39 2037 $as_echo "$ac_var='\''$ac_val'\''"
Chris@39 2038 done | sort
Chris@39 2039 echo
Chris@39 2040
Chris@39 2041 if test -n "$ac_subst_files"; then
Chris@39 2042 $as_echo "## ------------------- ##
Chris@39 2043 ## File substitutions. ##
Chris@39 2044 ## ------------------- ##"
Chris@39 2045 echo
Chris@39 2046 for ac_var in $ac_subst_files
Chris@39 2047 do
Chris@39 2048 eval ac_val=\$$ac_var
Chris@39 2049 case $ac_val in
Chris@39 2050 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Chris@39 2051 esac
Chris@39 2052 $as_echo "$ac_var='\''$ac_val'\''"
Chris@39 2053 done | sort
Chris@39 2054 echo
Chris@39 2055 fi
Chris@39 2056
Chris@39 2057 if test -s confdefs.h; then
Chris@39 2058 $as_echo "## ----------- ##
Chris@39 2059 ## confdefs.h. ##
Chris@39 2060 ## ----------- ##"
Chris@39 2061 echo
Chris@39 2062 cat confdefs.h
Chris@39 2063 echo
Chris@39 2064 fi
Chris@39 2065 test "$ac_signal" != 0 &&
Chris@39 2066 $as_echo "$as_me: caught signal $ac_signal"
Chris@39 2067 $as_echo "$as_me: exit $exit_status"
Chris@39 2068 } >&5
Chris@39 2069 rm -f core *.core core.conftest.* &&
Chris@39 2070 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Chris@39 2071 exit $exit_status
Chris@39 2072 ' 0
Chris@39 2073 for ac_signal in 1 2 13 15; do
Chris@39 2074 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Chris@39 2075 done
Chris@39 2076 ac_signal=0
Chris@39 2077
Chris@39 2078 # confdefs.h avoids OS command line length limits that DEFS can exceed.
Chris@39 2079 rm -f -r conftest* confdefs.h
Chris@39 2080
Chris@39 2081 $as_echo "/* confdefs.h */" > confdefs.h
Chris@39 2082
Chris@39 2083 # Predefined preprocessor variables.
Chris@39 2084
Chris@39 2085 cat >>confdefs.h <<_ACEOF
Chris@39 2086 #define PACKAGE_NAME "$PACKAGE_NAME"
Chris@39 2087 _ACEOF
Chris@39 2088
Chris@39 2089 cat >>confdefs.h <<_ACEOF
Chris@39 2090 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
Chris@39 2091 _ACEOF
Chris@39 2092
Chris@39 2093 cat >>confdefs.h <<_ACEOF
Chris@39 2094 #define PACKAGE_VERSION "$PACKAGE_VERSION"
Chris@39 2095 _ACEOF
Chris@39 2096
Chris@39 2097 cat >>confdefs.h <<_ACEOF
Chris@39 2098 #define PACKAGE_STRING "$PACKAGE_STRING"
Chris@39 2099 _ACEOF
Chris@39 2100
Chris@39 2101 cat >>confdefs.h <<_ACEOF
Chris@39 2102 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
Chris@39 2103 _ACEOF
Chris@39 2104
Chris@39 2105 cat >>confdefs.h <<_ACEOF
Chris@39 2106 #define PACKAGE_URL "$PACKAGE_URL"
Chris@39 2107 _ACEOF
Chris@39 2108
Chris@39 2109
Chris@39 2110 # Let the site file select an alternate cache file if it wants to.
Chris@39 2111 # Prefer an explicitly selected file to automatically selected ones.
Chris@39 2112 ac_site_file1=NONE
Chris@39 2113 ac_site_file2=NONE
Chris@39 2114 if test -n "$CONFIG_SITE"; then
Chris@39 2115 # We do not want a PATH search for config.site.
Chris@39 2116 case $CONFIG_SITE in #((
Chris@39 2117 -*) ac_site_file1=./$CONFIG_SITE;;
Chris@39 2118 */*) ac_site_file1=$CONFIG_SITE;;
Chris@39 2119 *) ac_site_file1=./$CONFIG_SITE;;
Chris@39 2120 esac
Chris@39 2121 elif test "x$prefix" != xNONE; then
Chris@39 2122 ac_site_file1=$prefix/share/config.site
Chris@39 2123 ac_site_file2=$prefix/etc/config.site
Chris@39 2124 else
Chris@39 2125 ac_site_file1=$ac_default_prefix/share/config.site
Chris@39 2126 ac_site_file2=$ac_default_prefix/etc/config.site
Chris@39 2127 fi
Chris@39 2128 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Chris@39 2129 do
Chris@39 2130 test "x$ac_site_file" = xNONE && continue
Chris@39 2131 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Chris@39 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Chris@39 2133 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
Chris@39 2134 sed 's/^/| /' "$ac_site_file" >&5
Chris@39 2135 . "$ac_site_file" \
Chris@39 2136 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@39 2137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@39 2138 as_fn_error $? "failed to load site script $ac_site_file
Chris@39 2139 See \`config.log' for more details" "$LINENO" 5; }
Chris@39 2140 fi
Chris@39 2141 done
Chris@39 2142
Chris@39 2143 if test -r "$cache_file"; then
Chris@39 2144 # Some versions of bash will fail to source /dev/null (special files
Chris@39 2145 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
Chris@39 2146 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Chris@39 2147 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Chris@39 2148 $as_echo "$as_me: loading cache $cache_file" >&6;}
Chris@39 2149 case $cache_file in
Chris@39 2150 [\\/]* | ?:[\\/]* ) . "$cache_file";;
Chris@39 2151 *) . "./$cache_file";;
Chris@39 2152 esac
Chris@39 2153 fi
Chris@39 2154 else
Chris@39 2155 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Chris@39 2156 $as_echo "$as_me: creating cache $cache_file" >&6;}
Chris@39 2157 >$cache_file
Chris@39 2158 fi
Chris@39 2159
Chris@39 2160 # Check that the precious variables saved in the cache have kept the same
Chris@39 2161 # value.
Chris@39 2162 ac_cache_corrupted=false
Chris@39 2163 for ac_var in $ac_precious_vars; do
Chris@39 2164 eval ac_old_set=\$ac_cv_env_${ac_var}_set
Chris@39 2165 eval ac_new_set=\$ac_env_${ac_var}_set
Chris@39 2166 eval ac_old_val=\$ac_cv_env_${ac_var}_value
Chris@39 2167 eval ac_new_val=\$ac_env_${ac_var}_value
Chris@39 2168 case $ac_old_set,$ac_new_set in
Chris@39 2169 set,)
Chris@39 2170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Chris@39 2171 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Chris@39 2172 ac_cache_corrupted=: ;;
Chris@39 2173 ,set)
Chris@39 2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
Chris@39 2175 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Chris@39 2176 ac_cache_corrupted=: ;;
Chris@39 2177 ,);;
Chris@39 2178 *)
Chris@39 2179 if test "x$ac_old_val" != "x$ac_new_val"; then
Chris@39 2180 # differences in whitespace do not lead to failure.
Chris@39 2181 ac_old_val_w=`echo x $ac_old_val`
Chris@39 2182 ac_new_val_w=`echo x $ac_new_val`
Chris@39 2183 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Chris@39 2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Chris@39 2185 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Chris@39 2186 ac_cache_corrupted=:
Chris@39 2187 else
Chris@39 2188 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Chris@39 2189 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
Chris@39 2190 eval $ac_var=\$ac_old_val
Chris@39 2191 fi
Chris@39 2192 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Chris@39 2193 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Chris@39 2194 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Chris@39 2195 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Chris@39 2196 fi;;
Chris@39 2197 esac
Chris@39 2198 # Pass precious variables to config.status.
Chris@39 2199 if test "$ac_new_set" = set; then
Chris@39 2200 case $ac_new_val in
Chris@39 2201 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@39 2202 *) ac_arg=$ac_var=$ac_new_val ;;
Chris@39 2203 esac
Chris@39 2204 case " $ac_configure_args " in
Chris@39 2205 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Chris@39 2206 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Chris@39 2207 esac
Chris@39 2208 fi
Chris@39 2209 done
Chris@39 2210 if $ac_cache_corrupted; then
Chris@39 2211 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@39 2212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@39 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Chris@39 2214 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Chris@39 2215 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Chris@39 2216 fi
Chris@39 2217 ## -------------------- ##
Chris@39 2218 ## Main body of script. ##
Chris@39 2219 ## -------------------- ##
Chris@39 2220
Chris@39 2221 ac_ext=c
Chris@39 2222 ac_cpp='$CPP $CPPFLAGS'
Chris@39 2223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@39 2224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@39 2225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@39 2226
Chris@39 2227
Chris@39 2228
Chris@39 2229 am__api_version='1.11'
Chris@39 2230
Chris@39 2231 ac_aux_dir=
Chris@39 2232 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Chris@39 2233 if test -f "$ac_dir/install-sh"; then
Chris@39 2234 ac_aux_dir=$ac_dir
Chris@39 2235 ac_install_sh="$ac_aux_dir/install-sh -c"
Chris@39 2236 break
Chris@39 2237 elif test -f "$ac_dir/install.sh"; then
Chris@39 2238 ac_aux_dir=$ac_dir
Chris@39 2239 ac_install_sh="$ac_aux_dir/install.sh -c"
Chris@39 2240 break
Chris@39 2241 elif test -f "$ac_dir/shtool"; then
Chris@39 2242 ac_aux_dir=$ac_dir
Chris@39 2243 ac_install_sh="$ac_aux_dir/shtool install -c"
Chris@39 2244 break
Chris@39 2245 fi
Chris@39 2246 done
Chris@39 2247 if test -z "$ac_aux_dir"; then
Chris@39 2248 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Chris@39 2249 fi
Chris@39 2250
Chris@39 2251 # These three variables are undocumented and unsupported,
Chris@39 2252 # and are intended to be withdrawn in a future Autoconf release.
Chris@39 2253 # They can cause serious problems if a builder's source tree is in a directory
Chris@39 2254 # whose full name contains unusual characters.
Chris@39 2255 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
Chris@39 2256 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
Chris@39 2257 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
Chris@39 2258
Chris@39 2259
Chris@39 2260 # Find a good install program. We prefer a C program (faster),
Chris@39 2261 # so one script is as good as another. But avoid the broken or
Chris@39 2262 # incompatible versions:
Chris@39 2263 # SysV /etc/install, /usr/sbin/install
Chris@39 2264 # SunOS /usr/etc/install
Chris@39 2265 # IRIX /sbin/install
Chris@39 2266 # AIX /bin/install
Chris@39 2267 # AmigaOS /C/install, which installs bootblocks on floppy discs
Chris@39 2268 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Chris@39 2269 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
Chris@39 2270 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Chris@39 2271 # OS/2's system install, which has a completely different semantic
Chris@39 2272 # ./install, which can be erroneously created by make from ./install.sh.
Chris@39 2273 # Reject install programs that cannot install multiple files.
Chris@39 2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Chris@39 2275 $as_echo_n "checking for a BSD-compatible install... " >&6; }
Chris@39 2276 if test -z "$INSTALL"; then
Chris@39 2277 if ${ac_cv_path_install+:} false; then :
Chris@39 2278 $as_echo_n "(cached) " >&6
Chris@39 2279 else
Chris@39 2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 2281 for as_dir in $PATH
Chris@39 2282 do
Chris@39 2283 IFS=$as_save_IFS
Chris@39 2284 test -z "$as_dir" && as_dir=.
Chris@39 2285 # Account for people who put trailing slashes in PATH elements.
Chris@39 2286 case $as_dir/ in #((
Chris@39 2287 ./ | .// | /[cC]/* | \
Chris@39 2288 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Chris@39 2289 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Chris@39 2290 /usr/ucb/* ) ;;
Chris@39 2291 *)
Chris@39 2292 # OSF1 and SCO ODT 3.0 have their own names for install.
Chris@39 2293 # Don't use installbsd from OSF since it installs stuff as root
Chris@39 2294 # by default.
Chris@39 2295 for ac_prog in ginstall scoinst install; do
Chris@39 2296 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 2297 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Chris@39 2298 if test $ac_prog = install &&
Chris@39 2299 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Chris@39 2300 # AIX install. It has an incompatible calling convention.
Chris@39 2301 :
Chris@39 2302 elif test $ac_prog = install &&
Chris@39 2303 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Chris@39 2304 # program-specific install script used by HP pwplus--don't use.
Chris@39 2305 :
Chris@39 2306 else
Chris@39 2307 rm -rf conftest.one conftest.two conftest.dir
Chris@39 2308 echo one > conftest.one
Chris@39 2309 echo two > conftest.two
Chris@39 2310 mkdir conftest.dir
Chris@39 2311 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
Chris@39 2312 test -s conftest.one && test -s conftest.two &&
Chris@39 2313 test -s conftest.dir/conftest.one &&
Chris@39 2314 test -s conftest.dir/conftest.two
Chris@39 2315 then
Chris@39 2316 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
Chris@39 2317 break 3
Chris@39 2318 fi
Chris@39 2319 fi
Chris@39 2320 fi
Chris@39 2321 done
Chris@39 2322 done
Chris@39 2323 ;;
Chris@39 2324 esac
Chris@39 2325
Chris@39 2326 done
Chris@39 2327 IFS=$as_save_IFS
Chris@39 2328
Chris@39 2329 rm -rf conftest.one conftest.two conftest.dir
Chris@39 2330
Chris@39 2331 fi
Chris@39 2332 if test "${ac_cv_path_install+set}" = set; then
Chris@39 2333 INSTALL=$ac_cv_path_install
Chris@39 2334 else
Chris@39 2335 # As a last resort, use the slow shell script. Don't cache a
Chris@39 2336 # value for INSTALL within a source directory, because that will
Chris@39 2337 # break other packages using the cache if that directory is
Chris@39 2338 # removed, or if the value is a relative name.
Chris@39 2339 INSTALL=$ac_install_sh
Chris@39 2340 fi
Chris@39 2341 fi
Chris@39 2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Chris@39 2343 $as_echo "$INSTALL" >&6; }
Chris@39 2344
Chris@39 2345 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
Chris@39 2346 # It thinks the first close brace ends the variable substitution.
Chris@39 2347 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Chris@39 2348
Chris@39 2349 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Chris@39 2350
Chris@39 2351 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Chris@39 2352
Chris@39 2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
Chris@39 2354 $as_echo_n "checking whether build environment is sane... " >&6; }
Chris@39 2355 # Just in case
Chris@39 2356 sleep 1
Chris@39 2357 echo timestamp > conftest.file
Chris@39 2358 # Reject unsafe characters in $srcdir or the absolute working directory
Chris@39 2359 # name. Accept space and tab only in the latter.
Chris@39 2360 am_lf='
Chris@39 2361 '
Chris@39 2362 case `pwd` in
Chris@39 2363 *[\\\"\#\$\&\'\`$am_lf]*)
Chris@39 2364 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
Chris@39 2365 esac
Chris@39 2366 case $srcdir in
Chris@39 2367 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Chris@39 2368 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
Chris@39 2369 esac
Chris@39 2370
Chris@39 2371 # Do `set' in a subshell so we don't clobber the current shell's
Chris@39 2372 # arguments. Must try -L first in case configure is actually a
Chris@39 2373 # symlink; some systems play weird games with the mod time of symlinks
Chris@39 2374 # (eg FreeBSD returns the mod time of the symlink's containing
Chris@39 2375 # directory).
Chris@39 2376 if (
Chris@39 2377 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Chris@39 2378 if test "$*" = "X"; then
Chris@39 2379 # -L didn't work.
Chris@39 2380 set X `ls -t "$srcdir/configure" conftest.file`
Chris@39 2381 fi
Chris@39 2382 rm -f conftest.file
Chris@39 2383 if test "$*" != "X $srcdir/configure conftest.file" \
Chris@39 2384 && test "$*" != "X conftest.file $srcdir/configure"; then
Chris@39 2385
Chris@39 2386 # If neither matched, then we have a broken ls. This can happen
Chris@39 2387 # if, for instance, CONFIG_SHELL is bash and it inherits a
Chris@39 2388 # broken ls alias from the environment. This has actually
Chris@39 2389 # happened. Such a system could not be considered "sane".
Chris@39 2390 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
Chris@39 2391 alias in your environment" "$LINENO" 5
Chris@39 2392 fi
Chris@39 2393
Chris@39 2394 test "$2" = conftest.file
Chris@39 2395 )
Chris@39 2396 then
Chris@39 2397 # Ok.
Chris@39 2398 :
Chris@39 2399 else
Chris@39 2400 as_fn_error $? "newly created file is older than distributed files!
Chris@39 2401 Check your system clock" "$LINENO" 5
Chris@39 2402 fi
Chris@39 2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@39 2404 $as_echo "yes" >&6; }
Chris@39 2405 test "$program_prefix" != NONE &&
Chris@39 2406 program_transform_name="s&^&$program_prefix&;$program_transform_name"
Chris@39 2407 # Use a double $ so make ignores it.
Chris@39 2408 test "$program_suffix" != NONE &&
Chris@39 2409 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Chris@39 2410 # Double any \ or $.
Chris@39 2411 # By default was `s,x,x', remove it if useless.
Chris@39 2412 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
Chris@39 2413 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Chris@39 2414
Chris@39 2415 # expand $ac_aux_dir to an absolute path
Chris@39 2416 am_aux_dir=`cd $ac_aux_dir && pwd`
Chris@39 2417
Chris@39 2418 if test x"${MISSING+set}" != xset; then
Chris@39 2419 case $am_aux_dir in
Chris@39 2420 *\ * | *\ *)
Chris@39 2421 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
Chris@39 2422 *)
Chris@39 2423 MISSING="\${SHELL} $am_aux_dir/missing" ;;
Chris@39 2424 esac
Chris@39 2425 fi
Chris@39 2426 # Use eval to expand $SHELL
Chris@39 2427 if eval "$MISSING --run true"; then
Chris@39 2428 am_missing_run="$MISSING --run "
Chris@39 2429 else
Chris@39 2430 am_missing_run=
Chris@39 2431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
Chris@39 2432 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
Chris@39 2433 fi
Chris@39 2434
Chris@39 2435 if test x"${install_sh}" != xset; then
Chris@39 2436 case $am_aux_dir in
Chris@39 2437 *\ * | *\ *)
Chris@39 2438 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
Chris@39 2439 *)
Chris@39 2440 install_sh="\${SHELL} $am_aux_dir/install-sh"
Chris@39 2441 esac
Chris@39 2442 fi
Chris@39 2443
Chris@39 2444 # Installed binaries are usually stripped using `strip' when the user
Chris@39 2445 # run `make install-strip'. However `strip' might not be the right
Chris@39 2446 # tool to use in cross-compilation environments, therefore Automake
Chris@39 2447 # will honor the `STRIP' environment variable to overrule this program.
Chris@39 2448 if test "$cross_compiling" != no; then
Chris@39 2449 if test -n "$ac_tool_prefix"; then
Chris@39 2450 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
Chris@39 2451 set dummy ${ac_tool_prefix}strip; ac_word=$2
Chris@39 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 2453 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 2454 if ${ac_cv_prog_STRIP+:} false; then :
Chris@39 2455 $as_echo_n "(cached) " >&6
Chris@39 2456 else
Chris@39 2457 if test -n "$STRIP"; then
Chris@39 2458 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
Chris@39 2459 else
Chris@39 2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 2461 for as_dir in $PATH
Chris@39 2462 do
Chris@39 2463 IFS=$as_save_IFS
Chris@39 2464 test -z "$as_dir" && as_dir=.
Chris@39 2465 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 2466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 2467 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Chris@39 2468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 2469 break 2
Chris@39 2470 fi
Chris@39 2471 done
Chris@39 2472 done
Chris@39 2473 IFS=$as_save_IFS
Chris@39 2474
Chris@39 2475 fi
Chris@39 2476 fi
Chris@39 2477 STRIP=$ac_cv_prog_STRIP
Chris@39 2478 if test -n "$STRIP"; then
Chris@39 2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Chris@39 2480 $as_echo "$STRIP" >&6; }
Chris@39 2481 else
Chris@39 2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 2483 $as_echo "no" >&6; }
Chris@39 2484 fi
Chris@39 2485
Chris@39 2486
Chris@39 2487 fi
Chris@39 2488 if test -z "$ac_cv_prog_STRIP"; then
Chris@39 2489 ac_ct_STRIP=$STRIP
Chris@39 2490 # Extract the first word of "strip", so it can be a program name with args.
Chris@39 2491 set dummy strip; ac_word=$2
Chris@39 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 2493 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 2494 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Chris@39 2495 $as_echo_n "(cached) " >&6
Chris@39 2496 else
Chris@39 2497 if test -n "$ac_ct_STRIP"; then
Chris@39 2498 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Chris@39 2499 else
Chris@39 2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 2501 for as_dir in $PATH
Chris@39 2502 do
Chris@39 2503 IFS=$as_save_IFS
Chris@39 2504 test -z "$as_dir" && as_dir=.
Chris@39 2505 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 2506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 2507 ac_cv_prog_ac_ct_STRIP="strip"
Chris@39 2508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 2509 break 2
Chris@39 2510 fi
Chris@39 2511 done
Chris@39 2512 done
Chris@39 2513 IFS=$as_save_IFS
Chris@39 2514
Chris@39 2515 fi
Chris@39 2516 fi
Chris@39 2517 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
Chris@39 2518 if test -n "$ac_ct_STRIP"; then
Chris@39 2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Chris@39 2520 $as_echo "$ac_ct_STRIP" >&6; }
Chris@39 2521 else
Chris@39 2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 2523 $as_echo "no" >&6; }
Chris@39 2524 fi
Chris@39 2525
Chris@39 2526 if test "x$ac_ct_STRIP" = x; then
Chris@39 2527 STRIP=":"
Chris@39 2528 else
Chris@39 2529 case $cross_compiling:$ac_tool_warned in
Chris@39 2530 yes:)
Chris@39 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 2532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 2533 ac_tool_warned=yes ;;
Chris@39 2534 esac
Chris@39 2535 STRIP=$ac_ct_STRIP
Chris@39 2536 fi
Chris@39 2537 else
Chris@39 2538 STRIP="$ac_cv_prog_STRIP"
Chris@39 2539 fi
Chris@39 2540
Chris@39 2541 fi
Chris@39 2542 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
Chris@39 2543
Chris@39 2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
Chris@39 2545 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
Chris@39 2546 if test -z "$MKDIR_P"; then
Chris@39 2547 if ${ac_cv_path_mkdir+:} false; then :
Chris@39 2548 $as_echo_n "(cached) " >&6
Chris@39 2549 else
Chris@39 2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 2551 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
Chris@39 2552 do
Chris@39 2553 IFS=$as_save_IFS
Chris@39 2554 test -z "$as_dir" && as_dir=.
Chris@39 2555 for ac_prog in mkdir gmkdir; do
Chris@39 2556 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 2557 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
Chris@39 2558 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
Chris@39 2559 'mkdir (GNU coreutils) '* | \
Chris@39 2560 'mkdir (coreutils) '* | \
Chris@39 2561 'mkdir (fileutils) '4.1*)
Chris@39 2562 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
Chris@39 2563 break 3;;
Chris@39 2564 esac
Chris@39 2565 done
Chris@39 2566 done
Chris@39 2567 done
Chris@39 2568 IFS=$as_save_IFS
Chris@39 2569
Chris@39 2570 fi
Chris@39 2571
Chris@39 2572 test -d ./--version && rmdir ./--version
Chris@39 2573 if test "${ac_cv_path_mkdir+set}" = set; then
Chris@39 2574 MKDIR_P="$ac_cv_path_mkdir -p"
Chris@39 2575 else
Chris@39 2576 # As a last resort, use the slow shell script. Don't cache a
Chris@39 2577 # value for MKDIR_P within a source directory, because that will
Chris@39 2578 # break other packages using the cache if that directory is
Chris@39 2579 # removed, or if the value is a relative name.
Chris@39 2580 MKDIR_P="$ac_install_sh -d"
Chris@39 2581 fi
Chris@39 2582 fi
Chris@39 2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
Chris@39 2584 $as_echo "$MKDIR_P" >&6; }
Chris@39 2585
Chris@39 2586 mkdir_p="$MKDIR_P"
Chris@39 2587 case $mkdir_p in
Chris@39 2588 [\\/$]* | ?:[\\/]*) ;;
Chris@39 2589 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
Chris@39 2590 esac
Chris@39 2591
Chris@39 2592 for ac_prog in gawk mawk nawk awk
Chris@39 2593 do
Chris@39 2594 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@39 2595 set dummy $ac_prog; ac_word=$2
Chris@39 2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 2597 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 2598 if ${ac_cv_prog_AWK+:} false; then :
Chris@39 2599 $as_echo_n "(cached) " >&6
Chris@39 2600 else
Chris@39 2601 if test -n "$AWK"; then
Chris@39 2602 ac_cv_prog_AWK="$AWK" # Let the user override the test.
Chris@39 2603 else
Chris@39 2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 2605 for as_dir in $PATH
Chris@39 2606 do
Chris@39 2607 IFS=$as_save_IFS
Chris@39 2608 test -z "$as_dir" && as_dir=.
Chris@39 2609 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 2610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 2611 ac_cv_prog_AWK="$ac_prog"
Chris@39 2612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 2613 break 2
Chris@39 2614 fi
Chris@39 2615 done
Chris@39 2616 done
Chris@39 2617 IFS=$as_save_IFS
Chris@39 2618
Chris@39 2619 fi
Chris@39 2620 fi
Chris@39 2621 AWK=$ac_cv_prog_AWK
Chris@39 2622 if test -n "$AWK"; then
Chris@39 2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Chris@39 2624 $as_echo "$AWK" >&6; }
Chris@39 2625 else
Chris@39 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 2627 $as_echo "no" >&6; }
Chris@39 2628 fi
Chris@39 2629
Chris@39 2630
Chris@39 2631 test -n "$AWK" && break
Chris@39 2632 done
Chris@39 2633
Chris@39 2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Chris@39 2635 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
Chris@39 2636 set x ${MAKE-make}
Chris@39 2637 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Chris@39 2638 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Chris@39 2639 $as_echo_n "(cached) " >&6
Chris@39 2640 else
Chris@39 2641 cat >conftest.make <<\_ACEOF
Chris@39 2642 SHELL = /bin/sh
Chris@39 2643 all:
Chris@39 2644 @echo '@@@%%%=$(MAKE)=@@@%%%'
Chris@39 2645 _ACEOF
Chris@39 2646 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Chris@39 2647 case `${MAKE-make} -f conftest.make 2>/dev/null` in
Chris@39 2648 *@@@%%%=?*=@@@%%%*)
Chris@39 2649 eval ac_cv_prog_make_${ac_make}_set=yes;;
Chris@39 2650 *)
Chris@39 2651 eval ac_cv_prog_make_${ac_make}_set=no;;
Chris@39 2652 esac
Chris@39 2653 rm -f conftest.make
Chris@39 2654 fi
Chris@39 2655 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Chris@39 2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@39 2657 $as_echo "yes" >&6; }
Chris@39 2658 SET_MAKE=
Chris@39 2659 else
Chris@39 2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 2661 $as_echo "no" >&6; }
Chris@39 2662 SET_MAKE="MAKE=${MAKE-make}"
Chris@39 2663 fi
Chris@39 2664
Chris@39 2665 rm -rf .tst 2>/dev/null
Chris@39 2666 mkdir .tst 2>/dev/null
Chris@39 2667 if test -d .tst; then
Chris@39 2668 am__leading_dot=.
Chris@39 2669 else
Chris@39 2670 am__leading_dot=_
Chris@39 2671 fi
Chris@39 2672 rmdir .tst 2>/dev/null
Chris@39 2673
Chris@39 2674 if test "`cd $srcdir && pwd`" != "`pwd`"; then
Chris@39 2675 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
Chris@39 2676 # is not polluted with repeated "-I."
Chris@39 2677 am__isrc=' -I$(srcdir)'
Chris@39 2678 # test to see if srcdir already configured
Chris@39 2679 if test -f $srcdir/config.status; then
Chris@39 2680 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Chris@39 2681 fi
Chris@39 2682 fi
Chris@39 2683
Chris@39 2684 # test whether we have cygpath
Chris@39 2685 if test -z "$CYGPATH_W"; then
Chris@39 2686 if (cygpath --version) >/dev/null 2>/dev/null; then
Chris@39 2687 CYGPATH_W='cygpath -w'
Chris@39 2688 else
Chris@39 2689 CYGPATH_W=echo
Chris@39 2690 fi
Chris@39 2691 fi
Chris@39 2692
Chris@39 2693
Chris@39 2694 # Define the identity of the package.
Chris@39 2695 PACKAGE='portaudiocpp'
Chris@39 2696 VERSION='12'
Chris@39 2697
Chris@39 2698
Chris@39 2699 cat >>confdefs.h <<_ACEOF
Chris@39 2700 #define PACKAGE "$PACKAGE"
Chris@39 2701 _ACEOF
Chris@39 2702
Chris@39 2703
Chris@39 2704 cat >>confdefs.h <<_ACEOF
Chris@39 2705 #define VERSION "$VERSION"
Chris@39 2706 _ACEOF
Chris@39 2707
Chris@39 2708 # Some tools Automake needs.
Chris@39 2709
Chris@39 2710 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
Chris@39 2711
Chris@39 2712
Chris@39 2713 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
Chris@39 2714
Chris@39 2715
Chris@39 2716 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
Chris@39 2717
Chris@39 2718
Chris@39 2719 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
Chris@39 2720
Chris@39 2721
Chris@39 2722 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
Chris@39 2723
Chris@39 2724 # We need awk for the "check" target. The system "awk" is bad on
Chris@39 2725 # some platforms.
Chris@39 2726 # Always define AMTAR for backward compatibility.
Chris@39 2727
Chris@39 2728 AMTAR=${AMTAR-"${am_missing_run}tar"}
Chris@39 2729
Chris@39 2730 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
Chris@39 2731
Chris@39 2732
Chris@39 2733
Chris@39 2734
Chris@39 2735
Chris@39 2736
Chris@39 2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
Chris@39 2738 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
Chris@39 2739 # Check whether --enable-maintainer-mode was given.
Chris@39 2740 if test "${enable_maintainer_mode+set}" = set; then :
Chris@39 2741 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
Chris@39 2742 else
Chris@39 2743 USE_MAINTAINER_MODE=no
Chris@39 2744 fi
Chris@39 2745
Chris@39 2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
Chris@39 2747 $as_echo "$USE_MAINTAINER_MODE" >&6; }
Chris@39 2748 if test $USE_MAINTAINER_MODE = yes; then
Chris@39 2749 MAINTAINER_MODE_TRUE=
Chris@39 2750 MAINTAINER_MODE_FALSE='#'
Chris@39 2751 else
Chris@39 2752 MAINTAINER_MODE_TRUE='#'
Chris@39 2753 MAINTAINER_MODE_FALSE=
Chris@39 2754 fi
Chris@39 2755
Chris@39 2756 MAINT=$MAINTAINER_MODE_TRUE
Chris@39 2757
Chris@39 2758
Chris@39 2759
Chris@39 2760 ###### Top-level directory of pacpp
Chris@39 2761 ###### This makes it easy to shuffle the build directories
Chris@39 2762 ###### Also edit AC_CONFIG_SRCDIR above (wouldn't accept this variable)!
Chris@39 2763 PACPP_ROOT="\$(top_srcdir)"
Chris@39 2764 PORTAUDIO_ROOT="../.."
Chris@39 2765
Chris@39 2766 # Various other variables and flags
Chris@39 2767 DEFAULT_INCLUDES="-I$PACPP_ROOT/include -I$PACPP_ROOT/$PORTAUDIO_ROOT/include"
Chris@39 2768 CFLAGS=${CFLAGS-"-g -O2 -Wall -ansi -pedantic"}
Chris@39 2769 CXXFLAGS=${CXXFLAGS-"${CFLAGS}"}
Chris@39 2770
Chris@39 2771 LT_VERSION_INFO="0:12:0"
Chris@39 2772
Chris@39 2773 # Checks for programs
Chris@39 2774
Chris@39 2775 ac_ext=c
Chris@39 2776 ac_cpp='$CPP $CPPFLAGS'
Chris@39 2777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@39 2778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@39 2779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@39 2780 if test -n "$ac_tool_prefix"; then
Chris@39 2781 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
Chris@39 2782 set dummy ${ac_tool_prefix}gcc; ac_word=$2
Chris@39 2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 2784 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 2785 if ${ac_cv_prog_CC+:} false; then :
Chris@39 2786 $as_echo_n "(cached) " >&6
Chris@39 2787 else
Chris@39 2788 if test -n "$CC"; then
Chris@39 2789 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@39 2790 else
Chris@39 2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 2792 for as_dir in $PATH
Chris@39 2793 do
Chris@39 2794 IFS=$as_save_IFS
Chris@39 2795 test -z "$as_dir" && as_dir=.
Chris@39 2796 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 2797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 2798 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Chris@39 2799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 2800 break 2
Chris@39 2801 fi
Chris@39 2802 done
Chris@39 2803 done
Chris@39 2804 IFS=$as_save_IFS
Chris@39 2805
Chris@39 2806 fi
Chris@39 2807 fi
Chris@39 2808 CC=$ac_cv_prog_CC
Chris@39 2809 if test -n "$CC"; then
Chris@39 2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@39 2811 $as_echo "$CC" >&6; }
Chris@39 2812 else
Chris@39 2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 2814 $as_echo "no" >&6; }
Chris@39 2815 fi
Chris@39 2816
Chris@39 2817
Chris@39 2818 fi
Chris@39 2819 if test -z "$ac_cv_prog_CC"; then
Chris@39 2820 ac_ct_CC=$CC
Chris@39 2821 # Extract the first word of "gcc", so it can be a program name with args.
Chris@39 2822 set dummy gcc; ac_word=$2
Chris@39 2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 2824 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 2825 if ${ac_cv_prog_ac_ct_CC+:} false; then :
Chris@39 2826 $as_echo_n "(cached) " >&6
Chris@39 2827 else
Chris@39 2828 if test -n "$ac_ct_CC"; then
Chris@39 2829 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
Chris@39 2830 else
Chris@39 2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 2832 for as_dir in $PATH
Chris@39 2833 do
Chris@39 2834 IFS=$as_save_IFS
Chris@39 2835 test -z "$as_dir" && as_dir=.
Chris@39 2836 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 2838 ac_cv_prog_ac_ct_CC="gcc"
Chris@39 2839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 2840 break 2
Chris@39 2841 fi
Chris@39 2842 done
Chris@39 2843 done
Chris@39 2844 IFS=$as_save_IFS
Chris@39 2845
Chris@39 2846 fi
Chris@39 2847 fi
Chris@39 2848 ac_ct_CC=$ac_cv_prog_ac_ct_CC
Chris@39 2849 if test -n "$ac_ct_CC"; then
Chris@39 2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Chris@39 2851 $as_echo "$ac_ct_CC" >&6; }
Chris@39 2852 else
Chris@39 2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 2854 $as_echo "no" >&6; }
Chris@39 2855 fi
Chris@39 2856
Chris@39 2857 if test "x$ac_ct_CC" = x; then
Chris@39 2858 CC=""
Chris@39 2859 else
Chris@39 2860 case $cross_compiling:$ac_tool_warned in
Chris@39 2861 yes:)
Chris@39 2862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 2863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 2864 ac_tool_warned=yes ;;
Chris@39 2865 esac
Chris@39 2866 CC=$ac_ct_CC
Chris@39 2867 fi
Chris@39 2868 else
Chris@39 2869 CC="$ac_cv_prog_CC"
Chris@39 2870 fi
Chris@39 2871
Chris@39 2872 if test -z "$CC"; then
Chris@39 2873 if test -n "$ac_tool_prefix"; then
Chris@39 2874 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Chris@39 2875 set dummy ${ac_tool_prefix}cc; ac_word=$2
Chris@39 2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 2877 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 2878 if ${ac_cv_prog_CC+:} false; then :
Chris@39 2879 $as_echo_n "(cached) " >&6
Chris@39 2880 else
Chris@39 2881 if test -n "$CC"; then
Chris@39 2882 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@39 2883 else
Chris@39 2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 2885 for as_dir in $PATH
Chris@39 2886 do
Chris@39 2887 IFS=$as_save_IFS
Chris@39 2888 test -z "$as_dir" && as_dir=.
Chris@39 2889 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 2890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 2891 ac_cv_prog_CC="${ac_tool_prefix}cc"
Chris@39 2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 2893 break 2
Chris@39 2894 fi
Chris@39 2895 done
Chris@39 2896 done
Chris@39 2897 IFS=$as_save_IFS
Chris@39 2898
Chris@39 2899 fi
Chris@39 2900 fi
Chris@39 2901 CC=$ac_cv_prog_CC
Chris@39 2902 if test -n "$CC"; then
Chris@39 2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@39 2904 $as_echo "$CC" >&6; }
Chris@39 2905 else
Chris@39 2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 2907 $as_echo "no" >&6; }
Chris@39 2908 fi
Chris@39 2909
Chris@39 2910
Chris@39 2911 fi
Chris@39 2912 fi
Chris@39 2913 if test -z "$CC"; then
Chris@39 2914 # Extract the first word of "cc", so it can be a program name with args.
Chris@39 2915 set dummy cc; ac_word=$2
Chris@39 2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 2917 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 2918 if ${ac_cv_prog_CC+:} false; then :
Chris@39 2919 $as_echo_n "(cached) " >&6
Chris@39 2920 else
Chris@39 2921 if test -n "$CC"; then
Chris@39 2922 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@39 2923 else
Chris@39 2924 ac_prog_rejected=no
Chris@39 2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 2926 for as_dir in $PATH
Chris@39 2927 do
Chris@39 2928 IFS=$as_save_IFS
Chris@39 2929 test -z "$as_dir" && as_dir=.
Chris@39 2930 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 2931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 2932 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
Chris@39 2933 ac_prog_rejected=yes
Chris@39 2934 continue
Chris@39 2935 fi
Chris@39 2936 ac_cv_prog_CC="cc"
Chris@39 2937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 2938 break 2
Chris@39 2939 fi
Chris@39 2940 done
Chris@39 2941 done
Chris@39 2942 IFS=$as_save_IFS
Chris@39 2943
Chris@39 2944 if test $ac_prog_rejected = yes; then
Chris@39 2945 # We found a bogon in the path, so make sure we never use it.
Chris@39 2946 set dummy $ac_cv_prog_CC
Chris@39 2947 shift
Chris@39 2948 if test $# != 0; then
Chris@39 2949 # We chose a different compiler from the bogus one.
Chris@39 2950 # However, it has the same basename, so the bogon will be chosen
Chris@39 2951 # first if we set CC to just the basename; use the full file name.
Chris@39 2952 shift
Chris@39 2953 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Chris@39 2954 fi
Chris@39 2955 fi
Chris@39 2956 fi
Chris@39 2957 fi
Chris@39 2958 CC=$ac_cv_prog_CC
Chris@39 2959 if test -n "$CC"; then
Chris@39 2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@39 2961 $as_echo "$CC" >&6; }
Chris@39 2962 else
Chris@39 2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 2964 $as_echo "no" >&6; }
Chris@39 2965 fi
Chris@39 2966
Chris@39 2967
Chris@39 2968 fi
Chris@39 2969 if test -z "$CC"; then
Chris@39 2970 if test -n "$ac_tool_prefix"; then
Chris@39 2971 for ac_prog in cl.exe
Chris@39 2972 do
Chris@39 2973 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@39 2974 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@39 2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 2976 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 2977 if ${ac_cv_prog_CC+:} false; then :
Chris@39 2978 $as_echo_n "(cached) " >&6
Chris@39 2979 else
Chris@39 2980 if test -n "$CC"; then
Chris@39 2981 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@39 2982 else
Chris@39 2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 2984 for as_dir in $PATH
Chris@39 2985 do
Chris@39 2986 IFS=$as_save_IFS
Chris@39 2987 test -z "$as_dir" && as_dir=.
Chris@39 2988 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 2989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 2990 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Chris@39 2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 2992 break 2
Chris@39 2993 fi
Chris@39 2994 done
Chris@39 2995 done
Chris@39 2996 IFS=$as_save_IFS
Chris@39 2997
Chris@39 2998 fi
Chris@39 2999 fi
Chris@39 3000 CC=$ac_cv_prog_CC
Chris@39 3001 if test -n "$CC"; then
Chris@39 3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@39 3003 $as_echo "$CC" >&6; }
Chris@39 3004 else
Chris@39 3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 3006 $as_echo "no" >&6; }
Chris@39 3007 fi
Chris@39 3008
Chris@39 3009
Chris@39 3010 test -n "$CC" && break
Chris@39 3011 done
Chris@39 3012 fi
Chris@39 3013 if test -z "$CC"; then
Chris@39 3014 ac_ct_CC=$CC
Chris@39 3015 for ac_prog in cl.exe
Chris@39 3016 do
Chris@39 3017 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@39 3018 set dummy $ac_prog; ac_word=$2
Chris@39 3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 3020 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 3021 if ${ac_cv_prog_ac_ct_CC+:} false; then :
Chris@39 3022 $as_echo_n "(cached) " >&6
Chris@39 3023 else
Chris@39 3024 if test -n "$ac_ct_CC"; then
Chris@39 3025 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
Chris@39 3026 else
Chris@39 3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 3028 for as_dir in $PATH
Chris@39 3029 do
Chris@39 3030 IFS=$as_save_IFS
Chris@39 3031 test -z "$as_dir" && as_dir=.
Chris@39 3032 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 3033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 3034 ac_cv_prog_ac_ct_CC="$ac_prog"
Chris@39 3035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 3036 break 2
Chris@39 3037 fi
Chris@39 3038 done
Chris@39 3039 done
Chris@39 3040 IFS=$as_save_IFS
Chris@39 3041
Chris@39 3042 fi
Chris@39 3043 fi
Chris@39 3044 ac_ct_CC=$ac_cv_prog_ac_ct_CC
Chris@39 3045 if test -n "$ac_ct_CC"; then
Chris@39 3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Chris@39 3047 $as_echo "$ac_ct_CC" >&6; }
Chris@39 3048 else
Chris@39 3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 3050 $as_echo "no" >&6; }
Chris@39 3051 fi
Chris@39 3052
Chris@39 3053
Chris@39 3054 test -n "$ac_ct_CC" && break
Chris@39 3055 done
Chris@39 3056
Chris@39 3057 if test "x$ac_ct_CC" = x; then
Chris@39 3058 CC=""
Chris@39 3059 else
Chris@39 3060 case $cross_compiling:$ac_tool_warned in
Chris@39 3061 yes:)
Chris@39 3062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 3063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 3064 ac_tool_warned=yes ;;
Chris@39 3065 esac
Chris@39 3066 CC=$ac_ct_CC
Chris@39 3067 fi
Chris@39 3068 fi
Chris@39 3069
Chris@39 3070 fi
Chris@39 3071
Chris@39 3072
Chris@39 3073 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@39 3074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@39 3075 as_fn_error $? "no acceptable C compiler found in \$PATH
Chris@39 3076 See \`config.log' for more details" "$LINENO" 5; }
Chris@39 3077
Chris@39 3078 # Provide some information about the compiler.
Chris@39 3079 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Chris@39 3080 set X $ac_compile
Chris@39 3081 ac_compiler=$2
Chris@39 3082 for ac_option in --version -v -V -qversion; do
Chris@39 3083 { { ac_try="$ac_compiler $ac_option >&5"
Chris@39 3084 case "(($ac_try" in
Chris@39 3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@39 3086 *) ac_try_echo=$ac_try;;
Chris@39 3087 esac
Chris@39 3088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@39 3089 $as_echo "$ac_try_echo"; } >&5
Chris@39 3090 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Chris@39 3091 ac_status=$?
Chris@39 3092 if test -s conftest.err; then
Chris@39 3093 sed '10a\
Chris@39 3094 ... rest of stderr output deleted ...
Chris@39 3095 10q' conftest.err >conftest.er1
Chris@39 3096 cat conftest.er1 >&5
Chris@39 3097 fi
Chris@39 3098 rm -f conftest.er1 conftest.err
Chris@39 3099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 3100 test $ac_status = 0; }
Chris@39 3101 done
Chris@39 3102
Chris@39 3103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 3104 /* end confdefs.h. */
Chris@39 3105
Chris@39 3106 int
Chris@39 3107 main ()
Chris@39 3108 {
Chris@39 3109
Chris@39 3110 ;
Chris@39 3111 return 0;
Chris@39 3112 }
Chris@39 3113 _ACEOF
Chris@39 3114 ac_clean_files_save=$ac_clean_files
Chris@39 3115 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Chris@39 3116 # Try to create an executable without -o first, disregard a.out.
Chris@39 3117 # It will help us diagnose broken compilers, and finding out an intuition
Chris@39 3118 # of exeext.
Chris@39 3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
Chris@39 3120 $as_echo_n "checking whether the C compiler works... " >&6; }
Chris@39 3121 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Chris@39 3122
Chris@39 3123 # The possible output files:
Chris@39 3124 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
Chris@39 3125
Chris@39 3126 ac_rmfiles=
Chris@39 3127 for ac_file in $ac_files
Chris@39 3128 do
Chris@39 3129 case $ac_file in
Chris@39 3130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Chris@39 3131 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
Chris@39 3132 esac
Chris@39 3133 done
Chris@39 3134 rm -f $ac_rmfiles
Chris@39 3135
Chris@39 3136 if { { ac_try="$ac_link_default"
Chris@39 3137 case "(($ac_try" in
Chris@39 3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@39 3139 *) ac_try_echo=$ac_try;;
Chris@39 3140 esac
Chris@39 3141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@39 3142 $as_echo "$ac_try_echo"; } >&5
Chris@39 3143 (eval "$ac_link_default") 2>&5
Chris@39 3144 ac_status=$?
Chris@39 3145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 3146 test $ac_status = 0; }; then :
Chris@39 3147 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
Chris@39 3148 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
Chris@39 3149 # in a Makefile. We should not override ac_cv_exeext if it was cached,
Chris@39 3150 # so that the user can short-circuit this test for compilers unknown to
Chris@39 3151 # Autoconf.
Chris@39 3152 for ac_file in $ac_files ''
Chris@39 3153 do
Chris@39 3154 test -f "$ac_file" || continue
Chris@39 3155 case $ac_file in
Chris@39 3156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Chris@39 3157 ;;
Chris@39 3158 [ab].out )
Chris@39 3159 # We found the default executable, but exeext='' is most
Chris@39 3160 # certainly right.
Chris@39 3161 break;;
Chris@39 3162 *.* )
Chris@39 3163 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Chris@39 3164 then :; else
Chris@39 3165 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Chris@39 3166 fi
Chris@39 3167 # We set ac_cv_exeext here because the later test for it is not
Chris@39 3168 # safe: cross compilers may not add the suffix if given an `-o'
Chris@39 3169 # argument, so we may need to know it at that point already.
Chris@39 3170 # Even if this section looks crufty: it has the advantage of
Chris@39 3171 # actually working.
Chris@39 3172 break;;
Chris@39 3173 * )
Chris@39 3174 break;;
Chris@39 3175 esac
Chris@39 3176 done
Chris@39 3177 test "$ac_cv_exeext" = no && ac_cv_exeext=
Chris@39 3178
Chris@39 3179 else
Chris@39 3180 ac_file=''
Chris@39 3181 fi
Chris@39 3182 if test -z "$ac_file"; then :
Chris@39 3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 3184 $as_echo "no" >&6; }
Chris@39 3185 $as_echo "$as_me: failed program was:" >&5
Chris@39 3186 sed 's/^/| /' conftest.$ac_ext >&5
Chris@39 3187
Chris@39 3188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@39 3189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@39 3190 as_fn_error 77 "C compiler cannot create executables
Chris@39 3191 See \`config.log' for more details" "$LINENO" 5; }
Chris@39 3192 else
Chris@39 3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@39 3194 $as_echo "yes" >&6; }
Chris@39 3195 fi
Chris@39 3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
Chris@39 3197 $as_echo_n "checking for C compiler default output file name... " >&6; }
Chris@39 3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
Chris@39 3199 $as_echo "$ac_file" >&6; }
Chris@39 3200 ac_exeext=$ac_cv_exeext
Chris@39 3201
Chris@39 3202 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Chris@39 3203 ac_clean_files=$ac_clean_files_save
Chris@39 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Chris@39 3205 $as_echo_n "checking for suffix of executables... " >&6; }
Chris@39 3206 if { { ac_try="$ac_link"
Chris@39 3207 case "(($ac_try" in
Chris@39 3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@39 3209 *) ac_try_echo=$ac_try;;
Chris@39 3210 esac
Chris@39 3211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@39 3212 $as_echo "$ac_try_echo"; } >&5
Chris@39 3213 (eval "$ac_link") 2>&5
Chris@39 3214 ac_status=$?
Chris@39 3215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 3216 test $ac_status = 0; }; then :
Chris@39 3217 # If both `conftest.exe' and `conftest' are `present' (well, observable)
Chris@39 3218 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
Chris@39 3219 # work properly (i.e., refer to `conftest.exe'), while it won't with
Chris@39 3220 # `rm'.
Chris@39 3221 for ac_file in conftest.exe conftest conftest.*; do
Chris@39 3222 test -f "$ac_file" || continue
Chris@39 3223 case $ac_file in
Chris@39 3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Chris@39 3225 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Chris@39 3226 break;;
Chris@39 3227 * ) break;;
Chris@39 3228 esac
Chris@39 3229 done
Chris@39 3230 else
Chris@39 3231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@39 3232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@39 3233 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
Chris@39 3234 See \`config.log' for more details" "$LINENO" 5; }
Chris@39 3235 fi
Chris@39 3236 rm -f conftest conftest$ac_cv_exeext
Chris@39 3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Chris@39 3238 $as_echo "$ac_cv_exeext" >&6; }
Chris@39 3239
Chris@39 3240 rm -f conftest.$ac_ext
Chris@39 3241 EXEEXT=$ac_cv_exeext
Chris@39 3242 ac_exeext=$EXEEXT
Chris@39 3243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 3244 /* end confdefs.h. */
Chris@39 3245 #include <stdio.h>
Chris@39 3246 int
Chris@39 3247 main ()
Chris@39 3248 {
Chris@39 3249 FILE *f = fopen ("conftest.out", "w");
Chris@39 3250 return ferror (f) || fclose (f) != 0;
Chris@39 3251
Chris@39 3252 ;
Chris@39 3253 return 0;
Chris@39 3254 }
Chris@39 3255 _ACEOF
Chris@39 3256 ac_clean_files="$ac_clean_files conftest.out"
Chris@39 3257 # Check that the compiler produces executables we can run. If not, either
Chris@39 3258 # the compiler is broken, or we cross compile.
Chris@39 3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
Chris@39 3260 $as_echo_n "checking whether we are cross compiling... " >&6; }
Chris@39 3261 if test "$cross_compiling" != yes; then
Chris@39 3262 { { ac_try="$ac_link"
Chris@39 3263 case "(($ac_try" in
Chris@39 3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@39 3265 *) ac_try_echo=$ac_try;;
Chris@39 3266 esac
Chris@39 3267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@39 3268 $as_echo "$ac_try_echo"; } >&5
Chris@39 3269 (eval "$ac_link") 2>&5
Chris@39 3270 ac_status=$?
Chris@39 3271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 3272 test $ac_status = 0; }
Chris@39 3273 if { ac_try='./conftest$ac_cv_exeext'
Chris@39 3274 { { case "(($ac_try" in
Chris@39 3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@39 3276 *) ac_try_echo=$ac_try;;
Chris@39 3277 esac
Chris@39 3278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@39 3279 $as_echo "$ac_try_echo"; } >&5
Chris@39 3280 (eval "$ac_try") 2>&5
Chris@39 3281 ac_status=$?
Chris@39 3282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 3283 test $ac_status = 0; }; }; then
Chris@39 3284 cross_compiling=no
Chris@39 3285 else
Chris@39 3286 if test "$cross_compiling" = maybe; then
Chris@39 3287 cross_compiling=yes
Chris@39 3288 else
Chris@39 3289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@39 3290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@39 3291 as_fn_error $? "cannot run C compiled programs.
Chris@39 3292 If you meant to cross compile, use \`--host'.
Chris@39 3293 See \`config.log' for more details" "$LINENO" 5; }
Chris@39 3294 fi
Chris@39 3295 fi
Chris@39 3296 fi
Chris@39 3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
Chris@39 3298 $as_echo "$cross_compiling" >&6; }
Chris@39 3299
Chris@39 3300 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
Chris@39 3301 ac_clean_files=$ac_clean_files_save
Chris@39 3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Chris@39 3303 $as_echo_n "checking for suffix of object files... " >&6; }
Chris@39 3304 if ${ac_cv_objext+:} false; then :
Chris@39 3305 $as_echo_n "(cached) " >&6
Chris@39 3306 else
Chris@39 3307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 3308 /* end confdefs.h. */
Chris@39 3309
Chris@39 3310 int
Chris@39 3311 main ()
Chris@39 3312 {
Chris@39 3313
Chris@39 3314 ;
Chris@39 3315 return 0;
Chris@39 3316 }
Chris@39 3317 _ACEOF
Chris@39 3318 rm -f conftest.o conftest.obj
Chris@39 3319 if { { ac_try="$ac_compile"
Chris@39 3320 case "(($ac_try" in
Chris@39 3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@39 3322 *) ac_try_echo=$ac_try;;
Chris@39 3323 esac
Chris@39 3324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@39 3325 $as_echo "$ac_try_echo"; } >&5
Chris@39 3326 (eval "$ac_compile") 2>&5
Chris@39 3327 ac_status=$?
Chris@39 3328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 3329 test $ac_status = 0; }; then :
Chris@39 3330 for ac_file in conftest.o conftest.obj conftest.*; do
Chris@39 3331 test -f "$ac_file" || continue;
Chris@39 3332 case $ac_file in
Chris@39 3333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Chris@39 3334 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
Chris@39 3335 break;;
Chris@39 3336 esac
Chris@39 3337 done
Chris@39 3338 else
Chris@39 3339 $as_echo "$as_me: failed program was:" >&5
Chris@39 3340 sed 's/^/| /' conftest.$ac_ext >&5
Chris@39 3341
Chris@39 3342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@39 3343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@39 3344 as_fn_error $? "cannot compute suffix of object files: cannot compile
Chris@39 3345 See \`config.log' for more details" "$LINENO" 5; }
Chris@39 3346 fi
Chris@39 3347 rm -f conftest.$ac_cv_objext conftest.$ac_ext
Chris@39 3348 fi
Chris@39 3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Chris@39 3350 $as_echo "$ac_cv_objext" >&6; }
Chris@39 3351 OBJEXT=$ac_cv_objext
Chris@39 3352 ac_objext=$OBJEXT
Chris@39 3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Chris@39 3354 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Chris@39 3355 if ${ac_cv_c_compiler_gnu+:} false; then :
Chris@39 3356 $as_echo_n "(cached) " >&6
Chris@39 3357 else
Chris@39 3358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 3359 /* end confdefs.h. */
Chris@39 3360
Chris@39 3361 int
Chris@39 3362 main ()
Chris@39 3363 {
Chris@39 3364 #ifndef __GNUC__
Chris@39 3365 choke me
Chris@39 3366 #endif
Chris@39 3367
Chris@39 3368 ;
Chris@39 3369 return 0;
Chris@39 3370 }
Chris@39 3371 _ACEOF
Chris@39 3372 if ac_fn_c_try_compile "$LINENO"; then :
Chris@39 3373 ac_compiler_gnu=yes
Chris@39 3374 else
Chris@39 3375 ac_compiler_gnu=no
Chris@39 3376 fi
Chris@39 3377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 3378 ac_cv_c_compiler_gnu=$ac_compiler_gnu
Chris@39 3379
Chris@39 3380 fi
Chris@39 3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Chris@39 3382 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
Chris@39 3383 if test $ac_compiler_gnu = yes; then
Chris@39 3384 GCC=yes
Chris@39 3385 else
Chris@39 3386 GCC=
Chris@39 3387 fi
Chris@39 3388 ac_test_CFLAGS=${CFLAGS+set}
Chris@39 3389 ac_save_CFLAGS=$CFLAGS
Chris@39 3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Chris@39 3391 $as_echo_n "checking whether $CC accepts -g... " >&6; }
Chris@39 3392 if ${ac_cv_prog_cc_g+:} false; then :
Chris@39 3393 $as_echo_n "(cached) " >&6
Chris@39 3394 else
Chris@39 3395 ac_save_c_werror_flag=$ac_c_werror_flag
Chris@39 3396 ac_c_werror_flag=yes
Chris@39 3397 ac_cv_prog_cc_g=no
Chris@39 3398 CFLAGS="-g"
Chris@39 3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 3400 /* end confdefs.h. */
Chris@39 3401
Chris@39 3402 int
Chris@39 3403 main ()
Chris@39 3404 {
Chris@39 3405
Chris@39 3406 ;
Chris@39 3407 return 0;
Chris@39 3408 }
Chris@39 3409 _ACEOF
Chris@39 3410 if ac_fn_c_try_compile "$LINENO"; then :
Chris@39 3411 ac_cv_prog_cc_g=yes
Chris@39 3412 else
Chris@39 3413 CFLAGS=""
Chris@39 3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 3415 /* end confdefs.h. */
Chris@39 3416
Chris@39 3417 int
Chris@39 3418 main ()
Chris@39 3419 {
Chris@39 3420
Chris@39 3421 ;
Chris@39 3422 return 0;
Chris@39 3423 }
Chris@39 3424 _ACEOF
Chris@39 3425 if ac_fn_c_try_compile "$LINENO"; then :
Chris@39 3426
Chris@39 3427 else
Chris@39 3428 ac_c_werror_flag=$ac_save_c_werror_flag
Chris@39 3429 CFLAGS="-g"
Chris@39 3430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 3431 /* end confdefs.h. */
Chris@39 3432
Chris@39 3433 int
Chris@39 3434 main ()
Chris@39 3435 {
Chris@39 3436
Chris@39 3437 ;
Chris@39 3438 return 0;
Chris@39 3439 }
Chris@39 3440 _ACEOF
Chris@39 3441 if ac_fn_c_try_compile "$LINENO"; then :
Chris@39 3442 ac_cv_prog_cc_g=yes
Chris@39 3443 fi
Chris@39 3444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 3445 fi
Chris@39 3446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 3447 fi
Chris@39 3448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 3449 ac_c_werror_flag=$ac_save_c_werror_flag
Chris@39 3450 fi
Chris@39 3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Chris@39 3452 $as_echo "$ac_cv_prog_cc_g" >&6; }
Chris@39 3453 if test "$ac_test_CFLAGS" = set; then
Chris@39 3454 CFLAGS=$ac_save_CFLAGS
Chris@39 3455 elif test $ac_cv_prog_cc_g = yes; then
Chris@39 3456 if test "$GCC" = yes; then
Chris@39 3457 CFLAGS="-g -O2"
Chris@39 3458 else
Chris@39 3459 CFLAGS="-g"
Chris@39 3460 fi
Chris@39 3461 else
Chris@39 3462 if test "$GCC" = yes; then
Chris@39 3463 CFLAGS="-O2"
Chris@39 3464 else
Chris@39 3465 CFLAGS=
Chris@39 3466 fi
Chris@39 3467 fi
Chris@39 3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Chris@39 3469 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Chris@39 3470 if ${ac_cv_prog_cc_c89+:} false; then :
Chris@39 3471 $as_echo_n "(cached) " >&6
Chris@39 3472 else
Chris@39 3473 ac_cv_prog_cc_c89=no
Chris@39 3474 ac_save_CC=$CC
Chris@39 3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 3476 /* end confdefs.h. */
Chris@39 3477 #include <stdarg.h>
Chris@39 3478 #include <stdio.h>
Chris@39 3479 #include <sys/types.h>
Chris@39 3480 #include <sys/stat.h>
Chris@39 3481 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
Chris@39 3482 struct buf { int x; };
Chris@39 3483 FILE * (*rcsopen) (struct buf *, struct stat *, int);
Chris@39 3484 static char *e (p, i)
Chris@39 3485 char **p;
Chris@39 3486 int i;
Chris@39 3487 {
Chris@39 3488 return p[i];
Chris@39 3489 }
Chris@39 3490 static char *f (char * (*g) (char **, int), char **p, ...)
Chris@39 3491 {
Chris@39 3492 char *s;
Chris@39 3493 va_list v;
Chris@39 3494 va_start (v,p);
Chris@39 3495 s = g (p, va_arg (v,int));
Chris@39 3496 va_end (v);
Chris@39 3497 return s;
Chris@39 3498 }
Chris@39 3499
Chris@39 3500 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
Chris@39 3501 function prototypes and stuff, but not '\xHH' hex character constants.
Chris@39 3502 These don't provoke an error unfortunately, instead are silently treated
Chris@39 3503 as 'x'. The following induces an error, until -std is added to get
Chris@39 3504 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
Chris@39 3505 array size at least. It's necessary to write '\x00'==0 to get something
Chris@39 3506 that's true only with -std. */
Chris@39 3507 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
Chris@39 3508
Chris@39 3509 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
Chris@39 3510 inside strings and character constants. */
Chris@39 3511 #define FOO(x) 'x'
Chris@39 3512 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
Chris@39 3513
Chris@39 3514 int test (int i, double x);
Chris@39 3515 struct s1 {int (*f) (int a);};
Chris@39 3516 struct s2 {int (*f) (double a);};
Chris@39 3517 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
Chris@39 3518 int argc;
Chris@39 3519 char **argv;
Chris@39 3520 int
Chris@39 3521 main ()
Chris@39 3522 {
Chris@39 3523 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
Chris@39 3524 ;
Chris@39 3525 return 0;
Chris@39 3526 }
Chris@39 3527 _ACEOF
Chris@39 3528 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
Chris@39 3529 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Chris@39 3530 do
Chris@39 3531 CC="$ac_save_CC $ac_arg"
Chris@39 3532 if ac_fn_c_try_compile "$LINENO"; then :
Chris@39 3533 ac_cv_prog_cc_c89=$ac_arg
Chris@39 3534 fi
Chris@39 3535 rm -f core conftest.err conftest.$ac_objext
Chris@39 3536 test "x$ac_cv_prog_cc_c89" != "xno" && break
Chris@39 3537 done
Chris@39 3538 rm -f conftest.$ac_ext
Chris@39 3539 CC=$ac_save_CC
Chris@39 3540
Chris@39 3541 fi
Chris@39 3542 # AC_CACHE_VAL
Chris@39 3543 case "x$ac_cv_prog_cc_c89" in
Chris@39 3544 x)
Chris@39 3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Chris@39 3546 $as_echo "none needed" >&6; } ;;
Chris@39 3547 xno)
Chris@39 3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Chris@39 3549 $as_echo "unsupported" >&6; } ;;
Chris@39 3550 *)
Chris@39 3551 CC="$CC $ac_cv_prog_cc_c89"
Chris@39 3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Chris@39 3553 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Chris@39 3554 esac
Chris@39 3555 if test "x$ac_cv_prog_cc_c89" != xno; then :
Chris@39 3556
Chris@39 3557 fi
Chris@39 3558
Chris@39 3559 ac_ext=c
Chris@39 3560 ac_cpp='$CPP $CPPFLAGS'
Chris@39 3561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@39 3562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@39 3563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@39 3564 DEPDIR="${am__leading_dot}deps"
Chris@39 3565
Chris@39 3566 ac_config_commands="$ac_config_commands depfiles"
Chris@39 3567
Chris@39 3568
Chris@39 3569 am_make=${MAKE-make}
Chris@39 3570 cat > confinc << 'END'
Chris@39 3571 am__doit:
Chris@39 3572 @echo this is the am__doit target
Chris@39 3573 .PHONY: am__doit
Chris@39 3574 END
Chris@39 3575 # If we don't find an include directive, just comment out the code.
Chris@39 3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
Chris@39 3577 $as_echo_n "checking for style of include used by $am_make... " >&6; }
Chris@39 3578 am__include="#"
Chris@39 3579 am__quote=
Chris@39 3580 _am_result=none
Chris@39 3581 # First try GNU make style include.
Chris@39 3582 echo "include confinc" > confmf
Chris@39 3583 # Ignore all kinds of additional output from `make'.
Chris@39 3584 case `$am_make -s -f confmf 2> /dev/null` in #(
Chris@39 3585 *the\ am__doit\ target*)
Chris@39 3586 am__include=include
Chris@39 3587 am__quote=
Chris@39 3588 _am_result=GNU
Chris@39 3589 ;;
Chris@39 3590 esac
Chris@39 3591 # Now try BSD make style include.
Chris@39 3592 if test "$am__include" = "#"; then
Chris@39 3593 echo '.include "confinc"' > confmf
Chris@39 3594 case `$am_make -s -f confmf 2> /dev/null` in #(
Chris@39 3595 *the\ am__doit\ target*)
Chris@39 3596 am__include=.include
Chris@39 3597 am__quote="\""
Chris@39 3598 _am_result=BSD
Chris@39 3599 ;;
Chris@39 3600 esac
Chris@39 3601 fi
Chris@39 3602
Chris@39 3603
Chris@39 3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
Chris@39 3605 $as_echo "$_am_result" >&6; }
Chris@39 3606 rm -f confinc confmf
Chris@39 3607
Chris@39 3608 # Check whether --enable-dependency-tracking was given.
Chris@39 3609 if test "${enable_dependency_tracking+set}" = set; then :
Chris@39 3610 enableval=$enable_dependency_tracking;
Chris@39 3611 fi
Chris@39 3612
Chris@39 3613 if test "x$enable_dependency_tracking" != xno; then
Chris@39 3614 am_depcomp="$ac_aux_dir/depcomp"
Chris@39 3615 AMDEPBACKSLASH='\'
Chris@39 3616 fi
Chris@39 3617 if test "x$enable_dependency_tracking" != xno; then
Chris@39 3618 AMDEP_TRUE=
Chris@39 3619 AMDEP_FALSE='#'
Chris@39 3620 else
Chris@39 3621 AMDEP_TRUE='#'
Chris@39 3622 AMDEP_FALSE=
Chris@39 3623 fi
Chris@39 3624
Chris@39 3625
Chris@39 3626
Chris@39 3627 depcc="$CC" am_compiler_list=
Chris@39 3628
Chris@39 3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Chris@39 3630 $as_echo_n "checking dependency style of $depcc... " >&6; }
Chris@39 3631 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
Chris@39 3632 $as_echo_n "(cached) " >&6
Chris@39 3633 else
Chris@39 3634 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
Chris@39 3635 # We make a subdir and do the tests there. Otherwise we can end up
Chris@39 3636 # making bogus files that we don't know about and never remove. For
Chris@39 3637 # instance it was reported that on HP-UX the gcc test will end up
Chris@39 3638 # making a dummy file named `D' -- because `-MD' means `put the output
Chris@39 3639 # in D'.
Chris@39 3640 mkdir conftest.dir
Chris@39 3641 # Copy depcomp to subdir because otherwise we won't find it if we're
Chris@39 3642 # using a relative directory.
Chris@39 3643 cp "$am_depcomp" conftest.dir
Chris@39 3644 cd conftest.dir
Chris@39 3645 # We will build objects and dependencies in a subdirectory because
Chris@39 3646 # it helps to detect inapplicable dependency modes. For instance
Chris@39 3647 # both Tru64's cc and ICC support -MD to output dependencies as a
Chris@39 3648 # side effect of compilation, but ICC will put the dependencies in
Chris@39 3649 # the current directory while Tru64 will put them in the object
Chris@39 3650 # directory.
Chris@39 3651 mkdir sub
Chris@39 3652
Chris@39 3653 am_cv_CC_dependencies_compiler_type=none
Chris@39 3654 if test "$am_compiler_list" = ""; then
Chris@39 3655 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
Chris@39 3656 fi
Chris@39 3657 am__universal=false
Chris@39 3658 case " $depcc " in #(
Chris@39 3659 *\ -arch\ *\ -arch\ *) am__universal=true ;;
Chris@39 3660 esac
Chris@39 3661
Chris@39 3662 for depmode in $am_compiler_list; do
Chris@39 3663 # Setup a source with many dependencies, because some compilers
Chris@39 3664 # like to wrap large dependency lists on column 80 (with \), and
Chris@39 3665 # we should not choose a depcomp mode which is confused by this.
Chris@39 3666 #
Chris@39 3667 # We need to recreate these files for each test, as the compiler may
Chris@39 3668 # overwrite some of them when testing with obscure command lines.
Chris@39 3669 # This happens at least with the AIX C compiler.
Chris@39 3670 : > sub/conftest.c
Chris@39 3671 for i in 1 2 3 4 5 6; do
Chris@39 3672 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Chris@39 3673 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
Chris@39 3674 # Solaris 8's {/usr,}/bin/sh.
Chris@39 3675 touch sub/conftst$i.h
Chris@39 3676 done
Chris@39 3677 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Chris@39 3678
Chris@39 3679 # We check with `-c' and `-o' for the sake of the "dashmstdout"
Chris@39 3680 # mode. It turns out that the SunPro C++ compiler does not properly
Chris@39 3681 # handle `-M -o', and we need to detect this. Also, some Intel
Chris@39 3682 # versions had trouble with output in subdirs
Chris@39 3683 am__obj=sub/conftest.${OBJEXT-o}
Chris@39 3684 am__minus_obj="-o $am__obj"
Chris@39 3685 case $depmode in
Chris@39 3686 gcc)
Chris@39 3687 # This depmode causes a compiler race in universal mode.
Chris@39 3688 test "$am__universal" = false || continue
Chris@39 3689 ;;
Chris@39 3690 nosideeffect)
Chris@39 3691 # after this tag, mechanisms are not by side-effect, so they'll
Chris@39 3692 # only be used when explicitly requested
Chris@39 3693 if test "x$enable_dependency_tracking" = xyes; then
Chris@39 3694 continue
Chris@39 3695 else
Chris@39 3696 break
Chris@39 3697 fi
Chris@39 3698 ;;
Chris@39 3699 msvisualcpp | msvcmsys)
Chris@39 3700 # This compiler won't grok `-c -o', but also, the minuso test has
Chris@39 3701 # not run yet. These depmodes are late enough in the game, and
Chris@39 3702 # so weak that their functioning should not be impacted.
Chris@39 3703 am__obj=conftest.${OBJEXT-o}
Chris@39 3704 am__minus_obj=
Chris@39 3705 ;;
Chris@39 3706 none) break ;;
Chris@39 3707 esac
Chris@39 3708 if depmode=$depmode \
Chris@39 3709 source=sub/conftest.c object=$am__obj \
Chris@39 3710 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Chris@39 3711 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Chris@39 3712 >/dev/null 2>conftest.err &&
Chris@39 3713 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Chris@39 3714 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Chris@39 3715 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Chris@39 3716 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Chris@39 3717 # icc doesn't choke on unknown options, it will just issue warnings
Chris@39 3718 # or remarks (even with -Werror). So we grep stderr for any message
Chris@39 3719 # that says an option was ignored or not supported.
Chris@39 3720 # When given -MP, icc 7.0 and 7.1 complain thusly:
Chris@39 3721 # icc: Command line warning: ignoring option '-M'; no argument required
Chris@39 3722 # The diagnosis changed in icc 8.0:
Chris@39 3723 # icc: Command line remark: option '-MP' not supported
Chris@39 3724 if (grep 'ignoring option' conftest.err ||
Chris@39 3725 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Chris@39 3726 am_cv_CC_dependencies_compiler_type=$depmode
Chris@39 3727 break
Chris@39 3728 fi
Chris@39 3729 fi
Chris@39 3730 done
Chris@39 3731
Chris@39 3732 cd ..
Chris@39 3733 rm -rf conftest.dir
Chris@39 3734 else
Chris@39 3735 am_cv_CC_dependencies_compiler_type=none
Chris@39 3736 fi
Chris@39 3737
Chris@39 3738 fi
Chris@39 3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
Chris@39 3740 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Chris@39 3741 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
Chris@39 3742
Chris@39 3743 if
Chris@39 3744 test "x$enable_dependency_tracking" != xno \
Chris@39 3745 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
Chris@39 3746 am__fastdepCC_TRUE=
Chris@39 3747 am__fastdepCC_FALSE='#'
Chris@39 3748 else
Chris@39 3749 am__fastdepCC_TRUE='#'
Chris@39 3750 am__fastdepCC_FALSE=
Chris@39 3751 fi
Chris@39 3752
Chris@39 3753
Chris@39 3754 ac_ext=cpp
Chris@39 3755 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@39 3756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@39 3757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@39 3758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@39 3759 if test -z "$CXX"; then
Chris@39 3760 if test -n "$CCC"; then
Chris@39 3761 CXX=$CCC
Chris@39 3762 else
Chris@39 3763 if test -n "$ac_tool_prefix"; then
Chris@39 3764 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Chris@39 3765 do
Chris@39 3766 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@39 3767 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@39 3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 3769 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 3770 if ${ac_cv_prog_CXX+:} false; then :
Chris@39 3771 $as_echo_n "(cached) " >&6
Chris@39 3772 else
Chris@39 3773 if test -n "$CXX"; then
Chris@39 3774 ac_cv_prog_CXX="$CXX" # Let the user override the test.
Chris@39 3775 else
Chris@39 3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 3777 for as_dir in $PATH
Chris@39 3778 do
Chris@39 3779 IFS=$as_save_IFS
Chris@39 3780 test -z "$as_dir" && as_dir=.
Chris@39 3781 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 3782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 3783 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Chris@39 3784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 3785 break 2
Chris@39 3786 fi
Chris@39 3787 done
Chris@39 3788 done
Chris@39 3789 IFS=$as_save_IFS
Chris@39 3790
Chris@39 3791 fi
Chris@39 3792 fi
Chris@39 3793 CXX=$ac_cv_prog_CXX
Chris@39 3794 if test -n "$CXX"; then
Chris@39 3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
Chris@39 3796 $as_echo "$CXX" >&6; }
Chris@39 3797 else
Chris@39 3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 3799 $as_echo "no" >&6; }
Chris@39 3800 fi
Chris@39 3801
Chris@39 3802
Chris@39 3803 test -n "$CXX" && break
Chris@39 3804 done
Chris@39 3805 fi
Chris@39 3806 if test -z "$CXX"; then
Chris@39 3807 ac_ct_CXX=$CXX
Chris@39 3808 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Chris@39 3809 do
Chris@39 3810 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@39 3811 set dummy $ac_prog; ac_word=$2
Chris@39 3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 3813 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 3814 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
Chris@39 3815 $as_echo_n "(cached) " >&6
Chris@39 3816 else
Chris@39 3817 if test -n "$ac_ct_CXX"; then
Chris@39 3818 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
Chris@39 3819 else
Chris@39 3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 3821 for as_dir in $PATH
Chris@39 3822 do
Chris@39 3823 IFS=$as_save_IFS
Chris@39 3824 test -z "$as_dir" && as_dir=.
Chris@39 3825 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 3826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 3827 ac_cv_prog_ac_ct_CXX="$ac_prog"
Chris@39 3828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 3829 break 2
Chris@39 3830 fi
Chris@39 3831 done
Chris@39 3832 done
Chris@39 3833 IFS=$as_save_IFS
Chris@39 3834
Chris@39 3835 fi
Chris@39 3836 fi
Chris@39 3837 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
Chris@39 3838 if test -n "$ac_ct_CXX"; then
Chris@39 3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
Chris@39 3840 $as_echo "$ac_ct_CXX" >&6; }
Chris@39 3841 else
Chris@39 3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 3843 $as_echo "no" >&6; }
Chris@39 3844 fi
Chris@39 3845
Chris@39 3846
Chris@39 3847 test -n "$ac_ct_CXX" && break
Chris@39 3848 done
Chris@39 3849
Chris@39 3850 if test "x$ac_ct_CXX" = x; then
Chris@39 3851 CXX="g++"
Chris@39 3852 else
Chris@39 3853 case $cross_compiling:$ac_tool_warned in
Chris@39 3854 yes:)
Chris@39 3855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 3856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 3857 ac_tool_warned=yes ;;
Chris@39 3858 esac
Chris@39 3859 CXX=$ac_ct_CXX
Chris@39 3860 fi
Chris@39 3861 fi
Chris@39 3862
Chris@39 3863 fi
Chris@39 3864 fi
Chris@39 3865 # Provide some information about the compiler.
Chris@39 3866 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
Chris@39 3867 set X $ac_compile
Chris@39 3868 ac_compiler=$2
Chris@39 3869 for ac_option in --version -v -V -qversion; do
Chris@39 3870 { { ac_try="$ac_compiler $ac_option >&5"
Chris@39 3871 case "(($ac_try" in
Chris@39 3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@39 3873 *) ac_try_echo=$ac_try;;
Chris@39 3874 esac
Chris@39 3875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@39 3876 $as_echo "$ac_try_echo"; } >&5
Chris@39 3877 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Chris@39 3878 ac_status=$?
Chris@39 3879 if test -s conftest.err; then
Chris@39 3880 sed '10a\
Chris@39 3881 ... rest of stderr output deleted ...
Chris@39 3882 10q' conftest.err >conftest.er1
Chris@39 3883 cat conftest.er1 >&5
Chris@39 3884 fi
Chris@39 3885 rm -f conftest.er1 conftest.err
Chris@39 3886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 3887 test $ac_status = 0; }
Chris@39 3888 done
Chris@39 3889
Chris@39 3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
Chris@39 3891 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
Chris@39 3892 if ${ac_cv_cxx_compiler_gnu+:} false; then :
Chris@39 3893 $as_echo_n "(cached) " >&6
Chris@39 3894 else
Chris@39 3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 3896 /* end confdefs.h. */
Chris@39 3897
Chris@39 3898 int
Chris@39 3899 main ()
Chris@39 3900 {
Chris@39 3901 #ifndef __GNUC__
Chris@39 3902 choke me
Chris@39 3903 #endif
Chris@39 3904
Chris@39 3905 ;
Chris@39 3906 return 0;
Chris@39 3907 }
Chris@39 3908 _ACEOF
Chris@39 3909 if ac_fn_cxx_try_compile "$LINENO"; then :
Chris@39 3910 ac_compiler_gnu=yes
Chris@39 3911 else
Chris@39 3912 ac_compiler_gnu=no
Chris@39 3913 fi
Chris@39 3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 3915 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
Chris@39 3916
Chris@39 3917 fi
Chris@39 3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
Chris@39 3919 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
Chris@39 3920 if test $ac_compiler_gnu = yes; then
Chris@39 3921 GXX=yes
Chris@39 3922 else
Chris@39 3923 GXX=
Chris@39 3924 fi
Chris@39 3925 ac_test_CXXFLAGS=${CXXFLAGS+set}
Chris@39 3926 ac_save_CXXFLAGS=$CXXFLAGS
Chris@39 3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
Chris@39 3928 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
Chris@39 3929 if ${ac_cv_prog_cxx_g+:} false; then :
Chris@39 3930 $as_echo_n "(cached) " >&6
Chris@39 3931 else
Chris@39 3932 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
Chris@39 3933 ac_cxx_werror_flag=yes
Chris@39 3934 ac_cv_prog_cxx_g=no
Chris@39 3935 CXXFLAGS="-g"
Chris@39 3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 3937 /* end confdefs.h. */
Chris@39 3938
Chris@39 3939 int
Chris@39 3940 main ()
Chris@39 3941 {
Chris@39 3942
Chris@39 3943 ;
Chris@39 3944 return 0;
Chris@39 3945 }
Chris@39 3946 _ACEOF
Chris@39 3947 if ac_fn_cxx_try_compile "$LINENO"; then :
Chris@39 3948 ac_cv_prog_cxx_g=yes
Chris@39 3949 else
Chris@39 3950 CXXFLAGS=""
Chris@39 3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 3952 /* end confdefs.h. */
Chris@39 3953
Chris@39 3954 int
Chris@39 3955 main ()
Chris@39 3956 {
Chris@39 3957
Chris@39 3958 ;
Chris@39 3959 return 0;
Chris@39 3960 }
Chris@39 3961 _ACEOF
Chris@39 3962 if ac_fn_cxx_try_compile "$LINENO"; then :
Chris@39 3963
Chris@39 3964 else
Chris@39 3965 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Chris@39 3966 CXXFLAGS="-g"
Chris@39 3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 3968 /* end confdefs.h. */
Chris@39 3969
Chris@39 3970 int
Chris@39 3971 main ()
Chris@39 3972 {
Chris@39 3973
Chris@39 3974 ;
Chris@39 3975 return 0;
Chris@39 3976 }
Chris@39 3977 _ACEOF
Chris@39 3978 if ac_fn_cxx_try_compile "$LINENO"; then :
Chris@39 3979 ac_cv_prog_cxx_g=yes
Chris@39 3980 fi
Chris@39 3981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 3982 fi
Chris@39 3983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 3984 fi
Chris@39 3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 3986 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Chris@39 3987 fi
Chris@39 3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
Chris@39 3989 $as_echo "$ac_cv_prog_cxx_g" >&6; }
Chris@39 3990 if test "$ac_test_CXXFLAGS" = set; then
Chris@39 3991 CXXFLAGS=$ac_save_CXXFLAGS
Chris@39 3992 elif test $ac_cv_prog_cxx_g = yes; then
Chris@39 3993 if test "$GXX" = yes; then
Chris@39 3994 CXXFLAGS="-g -O2"
Chris@39 3995 else
Chris@39 3996 CXXFLAGS="-g"
Chris@39 3997 fi
Chris@39 3998 else
Chris@39 3999 if test "$GXX" = yes; then
Chris@39 4000 CXXFLAGS="-O2"
Chris@39 4001 else
Chris@39 4002 CXXFLAGS=
Chris@39 4003 fi
Chris@39 4004 fi
Chris@39 4005 ac_ext=c
Chris@39 4006 ac_cpp='$CPP $CPPFLAGS'
Chris@39 4007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@39 4008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@39 4009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@39 4010
Chris@39 4011 depcc="$CXX" am_compiler_list=
Chris@39 4012
Chris@39 4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Chris@39 4014 $as_echo_n "checking dependency style of $depcc... " >&6; }
Chris@39 4015 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
Chris@39 4016 $as_echo_n "(cached) " >&6
Chris@39 4017 else
Chris@39 4018 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
Chris@39 4019 # We make a subdir and do the tests there. Otherwise we can end up
Chris@39 4020 # making bogus files that we don't know about and never remove. For
Chris@39 4021 # instance it was reported that on HP-UX the gcc test will end up
Chris@39 4022 # making a dummy file named `D' -- because `-MD' means `put the output
Chris@39 4023 # in D'.
Chris@39 4024 mkdir conftest.dir
Chris@39 4025 # Copy depcomp to subdir because otherwise we won't find it if we're
Chris@39 4026 # using a relative directory.
Chris@39 4027 cp "$am_depcomp" conftest.dir
Chris@39 4028 cd conftest.dir
Chris@39 4029 # We will build objects and dependencies in a subdirectory because
Chris@39 4030 # it helps to detect inapplicable dependency modes. For instance
Chris@39 4031 # both Tru64's cc and ICC support -MD to output dependencies as a
Chris@39 4032 # side effect of compilation, but ICC will put the dependencies in
Chris@39 4033 # the current directory while Tru64 will put them in the object
Chris@39 4034 # directory.
Chris@39 4035 mkdir sub
Chris@39 4036
Chris@39 4037 am_cv_CXX_dependencies_compiler_type=none
Chris@39 4038 if test "$am_compiler_list" = ""; then
Chris@39 4039 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
Chris@39 4040 fi
Chris@39 4041 am__universal=false
Chris@39 4042 case " $depcc " in #(
Chris@39 4043 *\ -arch\ *\ -arch\ *) am__universal=true ;;
Chris@39 4044 esac
Chris@39 4045
Chris@39 4046 for depmode in $am_compiler_list; do
Chris@39 4047 # Setup a source with many dependencies, because some compilers
Chris@39 4048 # like to wrap large dependency lists on column 80 (with \), and
Chris@39 4049 # we should not choose a depcomp mode which is confused by this.
Chris@39 4050 #
Chris@39 4051 # We need to recreate these files for each test, as the compiler may
Chris@39 4052 # overwrite some of them when testing with obscure command lines.
Chris@39 4053 # This happens at least with the AIX C compiler.
Chris@39 4054 : > sub/conftest.c
Chris@39 4055 for i in 1 2 3 4 5 6; do
Chris@39 4056 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Chris@39 4057 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
Chris@39 4058 # Solaris 8's {/usr,}/bin/sh.
Chris@39 4059 touch sub/conftst$i.h
Chris@39 4060 done
Chris@39 4061 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Chris@39 4062
Chris@39 4063 # We check with `-c' and `-o' for the sake of the "dashmstdout"
Chris@39 4064 # mode. It turns out that the SunPro C++ compiler does not properly
Chris@39 4065 # handle `-M -o', and we need to detect this. Also, some Intel
Chris@39 4066 # versions had trouble with output in subdirs
Chris@39 4067 am__obj=sub/conftest.${OBJEXT-o}
Chris@39 4068 am__minus_obj="-o $am__obj"
Chris@39 4069 case $depmode in
Chris@39 4070 gcc)
Chris@39 4071 # This depmode causes a compiler race in universal mode.
Chris@39 4072 test "$am__universal" = false || continue
Chris@39 4073 ;;
Chris@39 4074 nosideeffect)
Chris@39 4075 # after this tag, mechanisms are not by side-effect, so they'll
Chris@39 4076 # only be used when explicitly requested
Chris@39 4077 if test "x$enable_dependency_tracking" = xyes; then
Chris@39 4078 continue
Chris@39 4079 else
Chris@39 4080 break
Chris@39 4081 fi
Chris@39 4082 ;;
Chris@39 4083 msvisualcpp | msvcmsys)
Chris@39 4084 # This compiler won't grok `-c -o', but also, the minuso test has
Chris@39 4085 # not run yet. These depmodes are late enough in the game, and
Chris@39 4086 # so weak that their functioning should not be impacted.
Chris@39 4087 am__obj=conftest.${OBJEXT-o}
Chris@39 4088 am__minus_obj=
Chris@39 4089 ;;
Chris@39 4090 none) break ;;
Chris@39 4091 esac
Chris@39 4092 if depmode=$depmode \
Chris@39 4093 source=sub/conftest.c object=$am__obj \
Chris@39 4094 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Chris@39 4095 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Chris@39 4096 >/dev/null 2>conftest.err &&
Chris@39 4097 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Chris@39 4098 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Chris@39 4099 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Chris@39 4100 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Chris@39 4101 # icc doesn't choke on unknown options, it will just issue warnings
Chris@39 4102 # or remarks (even with -Werror). So we grep stderr for any message
Chris@39 4103 # that says an option was ignored or not supported.
Chris@39 4104 # When given -MP, icc 7.0 and 7.1 complain thusly:
Chris@39 4105 # icc: Command line warning: ignoring option '-M'; no argument required
Chris@39 4106 # The diagnosis changed in icc 8.0:
Chris@39 4107 # icc: Command line remark: option '-MP' not supported
Chris@39 4108 if (grep 'ignoring option' conftest.err ||
Chris@39 4109 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Chris@39 4110 am_cv_CXX_dependencies_compiler_type=$depmode
Chris@39 4111 break
Chris@39 4112 fi
Chris@39 4113 fi
Chris@39 4114 done
Chris@39 4115
Chris@39 4116 cd ..
Chris@39 4117 rm -rf conftest.dir
Chris@39 4118 else
Chris@39 4119 am_cv_CXX_dependencies_compiler_type=none
Chris@39 4120 fi
Chris@39 4121
Chris@39 4122 fi
Chris@39 4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
Chris@39 4124 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
Chris@39 4125 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
Chris@39 4126
Chris@39 4127 if
Chris@39 4128 test "x$enable_dependency_tracking" != xno \
Chris@39 4129 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
Chris@39 4130 am__fastdepCXX_TRUE=
Chris@39 4131 am__fastdepCXX_FALSE='#'
Chris@39 4132 else
Chris@39 4133 am__fastdepCXX_TRUE='#'
Chris@39 4134 am__fastdepCXX_FALSE=
Chris@39 4135 fi
Chris@39 4136
Chris@39 4137
Chris@39 4138 # Make sure we can run config.sub.
Chris@39 4139 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Chris@39 4140 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Chris@39 4141
Chris@39 4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Chris@39 4143 $as_echo_n "checking build system type... " >&6; }
Chris@39 4144 if ${ac_cv_build+:} false; then :
Chris@39 4145 $as_echo_n "(cached) " >&6
Chris@39 4146 else
Chris@39 4147 ac_build_alias=$build_alias
Chris@39 4148 test "x$ac_build_alias" = x &&
Chris@39 4149 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
Chris@39 4150 test "x$ac_build_alias" = x &&
Chris@39 4151 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Chris@39 4152 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Chris@39 4153 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Chris@39 4154
Chris@39 4155 fi
Chris@39 4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Chris@39 4157 $as_echo "$ac_cv_build" >&6; }
Chris@39 4158 case $ac_cv_build in
Chris@39 4159 *-*-*) ;;
Chris@39 4160 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Chris@39 4161 esac
Chris@39 4162 build=$ac_cv_build
Chris@39 4163 ac_save_IFS=$IFS; IFS='-'
Chris@39 4164 set x $ac_cv_build
Chris@39 4165 shift
Chris@39 4166 build_cpu=$1
Chris@39 4167 build_vendor=$2
Chris@39 4168 shift; shift
Chris@39 4169 # Remember, the first character of IFS is used to create $*,
Chris@39 4170 # except with old shells:
Chris@39 4171 build_os=$*
Chris@39 4172 IFS=$ac_save_IFS
Chris@39 4173 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Chris@39 4174
Chris@39 4175
Chris@39 4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Chris@39 4177 $as_echo_n "checking host system type... " >&6; }
Chris@39 4178 if ${ac_cv_host+:} false; then :
Chris@39 4179 $as_echo_n "(cached) " >&6
Chris@39 4180 else
Chris@39 4181 if test "x$host_alias" = x; then
Chris@39 4182 ac_cv_host=$ac_cv_build
Chris@39 4183 else
Chris@39 4184 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Chris@39 4185 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Chris@39 4186 fi
Chris@39 4187
Chris@39 4188 fi
Chris@39 4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Chris@39 4190 $as_echo "$ac_cv_host" >&6; }
Chris@39 4191 case $ac_cv_host in
Chris@39 4192 *-*-*) ;;
Chris@39 4193 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Chris@39 4194 esac
Chris@39 4195 host=$ac_cv_host
Chris@39 4196 ac_save_IFS=$IFS; IFS='-'
Chris@39 4197 set x $ac_cv_host
Chris@39 4198 shift
Chris@39 4199 host_cpu=$1
Chris@39 4200 host_vendor=$2
Chris@39 4201 shift; shift
Chris@39 4202 # Remember, the first character of IFS is used to create $*,
Chris@39 4203 # except with old shells:
Chris@39 4204 host_os=$*
Chris@39 4205 IFS=$ac_save_IFS
Chris@39 4206 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Chris@39 4207
Chris@39 4208
Chris@39 4209 enable_win32_dll=yes
Chris@39 4210
Chris@39 4211 case $host in
Chris@39 4212 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
Chris@39 4213 if test -n "$ac_tool_prefix"; then
Chris@39 4214 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
Chris@39 4215 set dummy ${ac_tool_prefix}as; ac_word=$2
Chris@39 4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 4217 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 4218 if ${ac_cv_prog_AS+:} false; then :
Chris@39 4219 $as_echo_n "(cached) " >&6
Chris@39 4220 else
Chris@39 4221 if test -n "$AS"; then
Chris@39 4222 ac_cv_prog_AS="$AS" # Let the user override the test.
Chris@39 4223 else
Chris@39 4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 4225 for as_dir in $PATH
Chris@39 4226 do
Chris@39 4227 IFS=$as_save_IFS
Chris@39 4228 test -z "$as_dir" && as_dir=.
Chris@39 4229 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 4230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 4231 ac_cv_prog_AS="${ac_tool_prefix}as"
Chris@39 4232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 4233 break 2
Chris@39 4234 fi
Chris@39 4235 done
Chris@39 4236 done
Chris@39 4237 IFS=$as_save_IFS
Chris@39 4238
Chris@39 4239 fi
Chris@39 4240 fi
Chris@39 4241 AS=$ac_cv_prog_AS
Chris@39 4242 if test -n "$AS"; then
Chris@39 4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
Chris@39 4244 $as_echo "$AS" >&6; }
Chris@39 4245 else
Chris@39 4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 4247 $as_echo "no" >&6; }
Chris@39 4248 fi
Chris@39 4249
Chris@39 4250
Chris@39 4251 fi
Chris@39 4252 if test -z "$ac_cv_prog_AS"; then
Chris@39 4253 ac_ct_AS=$AS
Chris@39 4254 # Extract the first word of "as", so it can be a program name with args.
Chris@39 4255 set dummy as; ac_word=$2
Chris@39 4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 4257 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 4258 if ${ac_cv_prog_ac_ct_AS+:} false; then :
Chris@39 4259 $as_echo_n "(cached) " >&6
Chris@39 4260 else
Chris@39 4261 if test -n "$ac_ct_AS"; then
Chris@39 4262 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
Chris@39 4263 else
Chris@39 4264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 4265 for as_dir in $PATH
Chris@39 4266 do
Chris@39 4267 IFS=$as_save_IFS
Chris@39 4268 test -z "$as_dir" && as_dir=.
Chris@39 4269 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 4270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 4271 ac_cv_prog_ac_ct_AS="as"
Chris@39 4272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 4273 break 2
Chris@39 4274 fi
Chris@39 4275 done
Chris@39 4276 done
Chris@39 4277 IFS=$as_save_IFS
Chris@39 4278
Chris@39 4279 fi
Chris@39 4280 fi
Chris@39 4281 ac_ct_AS=$ac_cv_prog_ac_ct_AS
Chris@39 4282 if test -n "$ac_ct_AS"; then
Chris@39 4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
Chris@39 4284 $as_echo "$ac_ct_AS" >&6; }
Chris@39 4285 else
Chris@39 4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 4287 $as_echo "no" >&6; }
Chris@39 4288 fi
Chris@39 4289
Chris@39 4290 if test "x$ac_ct_AS" = x; then
Chris@39 4291 AS="false"
Chris@39 4292 else
Chris@39 4293 case $cross_compiling:$ac_tool_warned in
Chris@39 4294 yes:)
Chris@39 4295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 4296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 4297 ac_tool_warned=yes ;;
Chris@39 4298 esac
Chris@39 4299 AS=$ac_ct_AS
Chris@39 4300 fi
Chris@39 4301 else
Chris@39 4302 AS="$ac_cv_prog_AS"
Chris@39 4303 fi
Chris@39 4304
Chris@39 4305 if test -n "$ac_tool_prefix"; then
Chris@39 4306 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
Chris@39 4307 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Chris@39 4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 4309 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 4310 if ${ac_cv_prog_DLLTOOL+:} false; then :
Chris@39 4311 $as_echo_n "(cached) " >&6
Chris@39 4312 else
Chris@39 4313 if test -n "$DLLTOOL"; then
Chris@39 4314 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
Chris@39 4315 else
Chris@39 4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 4317 for as_dir in $PATH
Chris@39 4318 do
Chris@39 4319 IFS=$as_save_IFS
Chris@39 4320 test -z "$as_dir" && as_dir=.
Chris@39 4321 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 4322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 4323 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
Chris@39 4324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 4325 break 2
Chris@39 4326 fi
Chris@39 4327 done
Chris@39 4328 done
Chris@39 4329 IFS=$as_save_IFS
Chris@39 4330
Chris@39 4331 fi
Chris@39 4332 fi
Chris@39 4333 DLLTOOL=$ac_cv_prog_DLLTOOL
Chris@39 4334 if test -n "$DLLTOOL"; then
Chris@39 4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
Chris@39 4336 $as_echo "$DLLTOOL" >&6; }
Chris@39 4337 else
Chris@39 4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 4339 $as_echo "no" >&6; }
Chris@39 4340 fi
Chris@39 4341
Chris@39 4342
Chris@39 4343 fi
Chris@39 4344 if test -z "$ac_cv_prog_DLLTOOL"; then
Chris@39 4345 ac_ct_DLLTOOL=$DLLTOOL
Chris@39 4346 # Extract the first word of "dlltool", so it can be a program name with args.
Chris@39 4347 set dummy dlltool; ac_word=$2
Chris@39 4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 4349 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 4350 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
Chris@39 4351 $as_echo_n "(cached) " >&6
Chris@39 4352 else
Chris@39 4353 if test -n "$ac_ct_DLLTOOL"; then
Chris@39 4354 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
Chris@39 4355 else
Chris@39 4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 4357 for as_dir in $PATH
Chris@39 4358 do
Chris@39 4359 IFS=$as_save_IFS
Chris@39 4360 test -z "$as_dir" && as_dir=.
Chris@39 4361 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 4362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 4363 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
Chris@39 4364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 4365 break 2
Chris@39 4366 fi
Chris@39 4367 done
Chris@39 4368 done
Chris@39 4369 IFS=$as_save_IFS
Chris@39 4370
Chris@39 4371 fi
Chris@39 4372 fi
Chris@39 4373 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
Chris@39 4374 if test -n "$ac_ct_DLLTOOL"; then
Chris@39 4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
Chris@39 4376 $as_echo "$ac_ct_DLLTOOL" >&6; }
Chris@39 4377 else
Chris@39 4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 4379 $as_echo "no" >&6; }
Chris@39 4380 fi
Chris@39 4381
Chris@39 4382 if test "x$ac_ct_DLLTOOL" = x; then
Chris@39 4383 DLLTOOL="false"
Chris@39 4384 else
Chris@39 4385 case $cross_compiling:$ac_tool_warned in
Chris@39 4386 yes:)
Chris@39 4387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 4388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 4389 ac_tool_warned=yes ;;
Chris@39 4390 esac
Chris@39 4391 DLLTOOL=$ac_ct_DLLTOOL
Chris@39 4392 fi
Chris@39 4393 else
Chris@39 4394 DLLTOOL="$ac_cv_prog_DLLTOOL"
Chris@39 4395 fi
Chris@39 4396
Chris@39 4397 if test -n "$ac_tool_prefix"; then
Chris@39 4398 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
Chris@39 4399 set dummy ${ac_tool_prefix}objdump; ac_word=$2
Chris@39 4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 4401 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 4402 if ${ac_cv_prog_OBJDUMP+:} false; then :
Chris@39 4403 $as_echo_n "(cached) " >&6
Chris@39 4404 else
Chris@39 4405 if test -n "$OBJDUMP"; then
Chris@39 4406 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
Chris@39 4407 else
Chris@39 4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 4409 for as_dir in $PATH
Chris@39 4410 do
Chris@39 4411 IFS=$as_save_IFS
Chris@39 4412 test -z "$as_dir" && as_dir=.
Chris@39 4413 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 4414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 4415 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Chris@39 4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 4417 break 2
Chris@39 4418 fi
Chris@39 4419 done
Chris@39 4420 done
Chris@39 4421 IFS=$as_save_IFS
Chris@39 4422
Chris@39 4423 fi
Chris@39 4424 fi
Chris@39 4425 OBJDUMP=$ac_cv_prog_OBJDUMP
Chris@39 4426 if test -n "$OBJDUMP"; then
Chris@39 4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
Chris@39 4428 $as_echo "$OBJDUMP" >&6; }
Chris@39 4429 else
Chris@39 4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 4431 $as_echo "no" >&6; }
Chris@39 4432 fi
Chris@39 4433
Chris@39 4434
Chris@39 4435 fi
Chris@39 4436 if test -z "$ac_cv_prog_OBJDUMP"; then
Chris@39 4437 ac_ct_OBJDUMP=$OBJDUMP
Chris@39 4438 # Extract the first word of "objdump", so it can be a program name with args.
Chris@39 4439 set dummy objdump; ac_word=$2
Chris@39 4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 4441 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 4442 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Chris@39 4443 $as_echo_n "(cached) " >&6
Chris@39 4444 else
Chris@39 4445 if test -n "$ac_ct_OBJDUMP"; then
Chris@39 4446 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
Chris@39 4447 else
Chris@39 4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 4449 for as_dir in $PATH
Chris@39 4450 do
Chris@39 4451 IFS=$as_save_IFS
Chris@39 4452 test -z "$as_dir" && as_dir=.
Chris@39 4453 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 4455 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Chris@39 4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 4457 break 2
Chris@39 4458 fi
Chris@39 4459 done
Chris@39 4460 done
Chris@39 4461 IFS=$as_save_IFS
Chris@39 4462
Chris@39 4463 fi
Chris@39 4464 fi
Chris@39 4465 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
Chris@39 4466 if test -n "$ac_ct_OBJDUMP"; then
Chris@39 4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
Chris@39 4468 $as_echo "$ac_ct_OBJDUMP" >&6; }
Chris@39 4469 else
Chris@39 4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 4471 $as_echo "no" >&6; }
Chris@39 4472 fi
Chris@39 4473
Chris@39 4474 if test "x$ac_ct_OBJDUMP" = x; then
Chris@39 4475 OBJDUMP="false"
Chris@39 4476 else
Chris@39 4477 case $cross_compiling:$ac_tool_warned in
Chris@39 4478 yes:)
Chris@39 4479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 4480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 4481 ac_tool_warned=yes ;;
Chris@39 4482 esac
Chris@39 4483 OBJDUMP=$ac_ct_OBJDUMP
Chris@39 4484 fi
Chris@39 4485 else
Chris@39 4486 OBJDUMP="$ac_cv_prog_OBJDUMP"
Chris@39 4487 fi
Chris@39 4488
Chris@39 4489 ;;
Chris@39 4490 esac
Chris@39 4491
Chris@39 4492 test -z "$AS" && AS=as
Chris@39 4493
Chris@39 4494
Chris@39 4495
Chris@39 4496
Chris@39 4497
Chris@39 4498 test -z "$DLLTOOL" && DLLTOOL=dlltool
Chris@39 4499
Chris@39 4500
Chris@39 4501
Chris@39 4502
Chris@39 4503
Chris@39 4504 test -z "$OBJDUMP" && OBJDUMP=objdump
Chris@39 4505
Chris@39 4506
Chris@39 4507
Chris@39 4508
Chris@39 4509
Chris@39 4510
Chris@39 4511
Chris@39 4512 case `pwd` in
Chris@39 4513 *\ * | *\ *)
Chris@39 4514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
Chris@39 4515 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
Chris@39 4516 esac
Chris@39 4517
Chris@39 4518
Chris@39 4519
Chris@39 4520 macro_version='2.4'
Chris@39 4521 macro_revision='1.3293'
Chris@39 4522
Chris@39 4523
Chris@39 4524
Chris@39 4525
Chris@39 4526
Chris@39 4527
Chris@39 4528
Chris@39 4529
Chris@39 4530
Chris@39 4531
Chris@39 4532
Chris@39 4533
Chris@39 4534
Chris@39 4535 ltmain="$ac_aux_dir/ltmain.sh"
Chris@39 4536
Chris@39 4537 # Backslashify metacharacters that are still active within
Chris@39 4538 # double-quoted strings.
Chris@39 4539 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
Chris@39 4540
Chris@39 4541 # Same as above, but do not quote variable references.
Chris@39 4542 double_quote_subst='s/\(["`\\]\)/\\\1/g'
Chris@39 4543
Chris@39 4544 # Sed substitution to delay expansion of an escaped shell variable in a
Chris@39 4545 # double_quote_subst'ed string.
Chris@39 4546 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
Chris@39 4547
Chris@39 4548 # Sed substitution to delay expansion of an escaped single quote.
Chris@39 4549 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
Chris@39 4550
Chris@39 4551 # Sed substitution to avoid accidental globbing in evaled expressions
Chris@39 4552 no_glob_subst='s/\*/\\\*/g'
Chris@39 4553
Chris@39 4554 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@39 4555 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
Chris@39 4556 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
Chris@39 4557
Chris@39 4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
Chris@39 4559 $as_echo_n "checking how to print strings... " >&6; }
Chris@39 4560 # Test print first, because it will be a builtin if present.
Chris@39 4561 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
Chris@39 4562 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
Chris@39 4563 ECHO='print -r --'
Chris@39 4564 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
Chris@39 4565 ECHO='printf %s\n'
Chris@39 4566 else
Chris@39 4567 # Use this function as a fallback that always works.
Chris@39 4568 func_fallback_echo ()
Chris@39 4569 {
Chris@39 4570 eval 'cat <<_LTECHO_EOF
Chris@39 4571 $1
Chris@39 4572 _LTECHO_EOF'
Chris@39 4573 }
Chris@39 4574 ECHO='func_fallback_echo'
Chris@39 4575 fi
Chris@39 4576
Chris@39 4577 # func_echo_all arg...
Chris@39 4578 # Invoke $ECHO with all args, space-separated.
Chris@39 4579 func_echo_all ()
Chris@39 4580 {
Chris@39 4581 $ECHO ""
Chris@39 4582 }
Chris@39 4583
Chris@39 4584 case "$ECHO" in
Chris@39 4585 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
Chris@39 4586 $as_echo "printf" >&6; } ;;
Chris@39 4587 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
Chris@39 4588 $as_echo "print -r" >&6; } ;;
Chris@39 4589 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
Chris@39 4590 $as_echo "cat" >&6; } ;;
Chris@39 4591 esac
Chris@39 4592
Chris@39 4593
Chris@39 4594
Chris@39 4595
Chris@39 4596
Chris@39 4597
Chris@39 4598
Chris@39 4599
Chris@39 4600
Chris@39 4601
Chris@39 4602
Chris@39 4603
Chris@39 4604
Chris@39 4605
Chris@39 4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
Chris@39 4607 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
Chris@39 4608 if ${ac_cv_path_SED+:} false; then :
Chris@39 4609 $as_echo_n "(cached) " >&6
Chris@39 4610 else
Chris@39 4611 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
Chris@39 4612 for ac_i in 1 2 3 4 5 6 7; do
Chris@39 4613 ac_script="$ac_script$as_nl$ac_script"
Chris@39 4614 done
Chris@39 4615 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
Chris@39 4616 { ac_script=; unset ac_script;}
Chris@39 4617 if test -z "$SED"; then
Chris@39 4618 ac_path_SED_found=false
Chris@39 4619 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@39 4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 4621 for as_dir in $PATH
Chris@39 4622 do
Chris@39 4623 IFS=$as_save_IFS
Chris@39 4624 test -z "$as_dir" && as_dir=.
Chris@39 4625 for ac_prog in sed gsed; do
Chris@39 4626 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 4627 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Chris@39 4628 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
Chris@39 4629 # Check for GNU ac_path_SED and select it if it is found.
Chris@39 4630 # Check for GNU $ac_path_SED
Chris@39 4631 case `"$ac_path_SED" --version 2>&1` in
Chris@39 4632 *GNU*)
Chris@39 4633 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
Chris@39 4634 *)
Chris@39 4635 ac_count=0
Chris@39 4636 $as_echo_n 0123456789 >"conftest.in"
Chris@39 4637 while :
Chris@39 4638 do
Chris@39 4639 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@39 4640 mv "conftest.tmp" "conftest.in"
Chris@39 4641 cp "conftest.in" "conftest.nl"
Chris@39 4642 $as_echo '' >> "conftest.nl"
Chris@39 4643 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@39 4644 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@39 4645 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@39 4646 if test $ac_count -gt ${ac_path_SED_max-0}; then
Chris@39 4647 # Best one so far, save it but keep looking for a better one
Chris@39 4648 ac_cv_path_SED="$ac_path_SED"
Chris@39 4649 ac_path_SED_max=$ac_count
Chris@39 4650 fi
Chris@39 4651 # 10*(2^10) chars as input seems more than enough
Chris@39 4652 test $ac_count -gt 10 && break
Chris@39 4653 done
Chris@39 4654 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@39 4655 esac
Chris@39 4656
Chris@39 4657 $ac_path_SED_found && break 3
Chris@39 4658 done
Chris@39 4659 done
Chris@39 4660 done
Chris@39 4661 IFS=$as_save_IFS
Chris@39 4662 if test -z "$ac_cv_path_SED"; then
Chris@39 4663 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Chris@39 4664 fi
Chris@39 4665 else
Chris@39 4666 ac_cv_path_SED=$SED
Chris@39 4667 fi
Chris@39 4668
Chris@39 4669 fi
Chris@39 4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
Chris@39 4671 $as_echo "$ac_cv_path_SED" >&6; }
Chris@39 4672 SED="$ac_cv_path_SED"
Chris@39 4673 rm -f conftest.sed
Chris@39 4674
Chris@39 4675 test -z "$SED" && SED=sed
Chris@39 4676 Xsed="$SED -e 1s/^X//"
Chris@39 4677
Chris@39 4678
Chris@39 4679
Chris@39 4680
Chris@39 4681
Chris@39 4682
Chris@39 4683
Chris@39 4684
Chris@39 4685
Chris@39 4686
Chris@39 4687
Chris@39 4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Chris@39 4689 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Chris@39 4690 if ${ac_cv_path_GREP+:} false; then :
Chris@39 4691 $as_echo_n "(cached) " >&6
Chris@39 4692 else
Chris@39 4693 if test -z "$GREP"; then
Chris@39 4694 ac_path_GREP_found=false
Chris@39 4695 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@39 4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 4697 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@39 4698 do
Chris@39 4699 IFS=$as_save_IFS
Chris@39 4700 test -z "$as_dir" && as_dir=.
Chris@39 4701 for ac_prog in grep ggrep; do
Chris@39 4702 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 4703 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@39 4704 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Chris@39 4705 # Check for GNU ac_path_GREP and select it if it is found.
Chris@39 4706 # Check for GNU $ac_path_GREP
Chris@39 4707 case `"$ac_path_GREP" --version 2>&1` in
Chris@39 4708 *GNU*)
Chris@39 4709 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
Chris@39 4710 *)
Chris@39 4711 ac_count=0
Chris@39 4712 $as_echo_n 0123456789 >"conftest.in"
Chris@39 4713 while :
Chris@39 4714 do
Chris@39 4715 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@39 4716 mv "conftest.tmp" "conftest.in"
Chris@39 4717 cp "conftest.in" "conftest.nl"
Chris@39 4718 $as_echo 'GREP' >> "conftest.nl"
Chris@39 4719 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@39 4720 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@39 4721 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@39 4722 if test $ac_count -gt ${ac_path_GREP_max-0}; then
Chris@39 4723 # Best one so far, save it but keep looking for a better one
Chris@39 4724 ac_cv_path_GREP="$ac_path_GREP"
Chris@39 4725 ac_path_GREP_max=$ac_count
Chris@39 4726 fi
Chris@39 4727 # 10*(2^10) chars as input seems more than enough
Chris@39 4728 test $ac_count -gt 10 && break
Chris@39 4729 done
Chris@39 4730 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@39 4731 esac
Chris@39 4732
Chris@39 4733 $ac_path_GREP_found && break 3
Chris@39 4734 done
Chris@39 4735 done
Chris@39 4736 done
Chris@39 4737 IFS=$as_save_IFS
Chris@39 4738 if test -z "$ac_cv_path_GREP"; then
Chris@39 4739 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@39 4740 fi
Chris@39 4741 else
Chris@39 4742 ac_cv_path_GREP=$GREP
Chris@39 4743 fi
Chris@39 4744
Chris@39 4745 fi
Chris@39 4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Chris@39 4747 $as_echo "$ac_cv_path_GREP" >&6; }
Chris@39 4748 GREP="$ac_cv_path_GREP"
Chris@39 4749
Chris@39 4750
Chris@39 4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Chris@39 4752 $as_echo_n "checking for egrep... " >&6; }
Chris@39 4753 if ${ac_cv_path_EGREP+:} false; then :
Chris@39 4754 $as_echo_n "(cached) " >&6
Chris@39 4755 else
Chris@39 4756 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
Chris@39 4757 then ac_cv_path_EGREP="$GREP -E"
Chris@39 4758 else
Chris@39 4759 if test -z "$EGREP"; then
Chris@39 4760 ac_path_EGREP_found=false
Chris@39 4761 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@39 4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 4763 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@39 4764 do
Chris@39 4765 IFS=$as_save_IFS
Chris@39 4766 test -z "$as_dir" && as_dir=.
Chris@39 4767 for ac_prog in egrep; do
Chris@39 4768 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 4769 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@39 4770 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Chris@39 4771 # Check for GNU ac_path_EGREP and select it if it is found.
Chris@39 4772 # Check for GNU $ac_path_EGREP
Chris@39 4773 case `"$ac_path_EGREP" --version 2>&1` in
Chris@39 4774 *GNU*)
Chris@39 4775 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
Chris@39 4776 *)
Chris@39 4777 ac_count=0
Chris@39 4778 $as_echo_n 0123456789 >"conftest.in"
Chris@39 4779 while :
Chris@39 4780 do
Chris@39 4781 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@39 4782 mv "conftest.tmp" "conftest.in"
Chris@39 4783 cp "conftest.in" "conftest.nl"
Chris@39 4784 $as_echo 'EGREP' >> "conftest.nl"
Chris@39 4785 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@39 4786 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@39 4787 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@39 4788 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
Chris@39 4789 # Best one so far, save it but keep looking for a better one
Chris@39 4790 ac_cv_path_EGREP="$ac_path_EGREP"
Chris@39 4791 ac_path_EGREP_max=$ac_count
Chris@39 4792 fi
Chris@39 4793 # 10*(2^10) chars as input seems more than enough
Chris@39 4794 test $ac_count -gt 10 && break
Chris@39 4795 done
Chris@39 4796 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@39 4797 esac
Chris@39 4798
Chris@39 4799 $ac_path_EGREP_found && break 3
Chris@39 4800 done
Chris@39 4801 done
Chris@39 4802 done
Chris@39 4803 IFS=$as_save_IFS
Chris@39 4804 if test -z "$ac_cv_path_EGREP"; then
Chris@39 4805 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@39 4806 fi
Chris@39 4807 else
Chris@39 4808 ac_cv_path_EGREP=$EGREP
Chris@39 4809 fi
Chris@39 4810
Chris@39 4811 fi
Chris@39 4812 fi
Chris@39 4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Chris@39 4814 $as_echo "$ac_cv_path_EGREP" >&6; }
Chris@39 4815 EGREP="$ac_cv_path_EGREP"
Chris@39 4816
Chris@39 4817
Chris@39 4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
Chris@39 4819 $as_echo_n "checking for fgrep... " >&6; }
Chris@39 4820 if ${ac_cv_path_FGREP+:} false; then :
Chris@39 4821 $as_echo_n "(cached) " >&6
Chris@39 4822 else
Chris@39 4823 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
Chris@39 4824 then ac_cv_path_FGREP="$GREP -F"
Chris@39 4825 else
Chris@39 4826 if test -z "$FGREP"; then
Chris@39 4827 ac_path_FGREP_found=false
Chris@39 4828 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@39 4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 4830 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@39 4831 do
Chris@39 4832 IFS=$as_save_IFS
Chris@39 4833 test -z "$as_dir" && as_dir=.
Chris@39 4834 for ac_prog in fgrep; do
Chris@39 4835 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 4836 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@39 4837 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
Chris@39 4838 # Check for GNU ac_path_FGREP and select it if it is found.
Chris@39 4839 # Check for GNU $ac_path_FGREP
Chris@39 4840 case `"$ac_path_FGREP" --version 2>&1` in
Chris@39 4841 *GNU*)
Chris@39 4842 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
Chris@39 4843 *)
Chris@39 4844 ac_count=0
Chris@39 4845 $as_echo_n 0123456789 >"conftest.in"
Chris@39 4846 while :
Chris@39 4847 do
Chris@39 4848 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@39 4849 mv "conftest.tmp" "conftest.in"
Chris@39 4850 cp "conftest.in" "conftest.nl"
Chris@39 4851 $as_echo 'FGREP' >> "conftest.nl"
Chris@39 4852 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@39 4853 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@39 4854 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@39 4855 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
Chris@39 4856 # Best one so far, save it but keep looking for a better one
Chris@39 4857 ac_cv_path_FGREP="$ac_path_FGREP"
Chris@39 4858 ac_path_FGREP_max=$ac_count
Chris@39 4859 fi
Chris@39 4860 # 10*(2^10) chars as input seems more than enough
Chris@39 4861 test $ac_count -gt 10 && break
Chris@39 4862 done
Chris@39 4863 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@39 4864 esac
Chris@39 4865
Chris@39 4866 $ac_path_FGREP_found && break 3
Chris@39 4867 done
Chris@39 4868 done
Chris@39 4869 done
Chris@39 4870 IFS=$as_save_IFS
Chris@39 4871 if test -z "$ac_cv_path_FGREP"; then
Chris@39 4872 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@39 4873 fi
Chris@39 4874 else
Chris@39 4875 ac_cv_path_FGREP=$FGREP
Chris@39 4876 fi
Chris@39 4877
Chris@39 4878 fi
Chris@39 4879 fi
Chris@39 4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
Chris@39 4881 $as_echo "$ac_cv_path_FGREP" >&6; }
Chris@39 4882 FGREP="$ac_cv_path_FGREP"
Chris@39 4883
Chris@39 4884
Chris@39 4885 test -z "$GREP" && GREP=grep
Chris@39 4886
Chris@39 4887
Chris@39 4888
Chris@39 4889
Chris@39 4890
Chris@39 4891
Chris@39 4892
Chris@39 4893
Chris@39 4894
Chris@39 4895
Chris@39 4896
Chris@39 4897
Chris@39 4898
Chris@39 4899
Chris@39 4900
Chris@39 4901
Chris@39 4902
Chris@39 4903
Chris@39 4904
Chris@39 4905 # Check whether --with-gnu-ld was given.
Chris@39 4906 if test "${with_gnu_ld+set}" = set; then :
Chris@39 4907 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Chris@39 4908 else
Chris@39 4909 with_gnu_ld=no
Chris@39 4910 fi
Chris@39 4911
Chris@39 4912 ac_prog=ld
Chris@39 4913 if test "$GCC" = yes; then
Chris@39 4914 # Check if gcc -print-prog-name=ld gives a path.
Chris@39 4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
Chris@39 4916 $as_echo_n "checking for ld used by $CC... " >&6; }
Chris@39 4917 case $host in
Chris@39 4918 *-*-mingw*)
Chris@39 4919 # gcc leaves a trailing carriage return which upsets mingw
Chris@39 4920 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
Chris@39 4921 *)
Chris@39 4922 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
Chris@39 4923 esac
Chris@39 4924 case $ac_prog in
Chris@39 4925 # Accept absolute paths.
Chris@39 4926 [\\/]* | ?:[\\/]*)
Chris@39 4927 re_direlt='/[^/][^/]*/\.\./'
Chris@39 4928 # Canonicalize the pathname of ld
Chris@39 4929 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
Chris@39 4930 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
Chris@39 4931 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Chris@39 4932 done
Chris@39 4933 test -z "$LD" && LD="$ac_prog"
Chris@39 4934 ;;
Chris@39 4935 "")
Chris@39 4936 # If it fails, then pretend we aren't using GCC.
Chris@39 4937 ac_prog=ld
Chris@39 4938 ;;
Chris@39 4939 *)
Chris@39 4940 # If it is relative, then search for the first ld in PATH.
Chris@39 4941 with_gnu_ld=unknown
Chris@39 4942 ;;
Chris@39 4943 esac
Chris@39 4944 elif test "$with_gnu_ld" = yes; then
Chris@39 4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Chris@39 4946 $as_echo_n "checking for GNU ld... " >&6; }
Chris@39 4947 else
Chris@39 4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Chris@39 4949 $as_echo_n "checking for non-GNU ld... " >&6; }
Chris@39 4950 fi
Chris@39 4951 if ${lt_cv_path_LD+:} false; then :
Chris@39 4952 $as_echo_n "(cached) " >&6
Chris@39 4953 else
Chris@39 4954 if test -z "$LD"; then
Chris@39 4955 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@39 4956 for ac_dir in $PATH; do
Chris@39 4957 IFS="$lt_save_ifs"
Chris@39 4958 test -z "$ac_dir" && ac_dir=.
Chris@39 4959 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Chris@39 4960 lt_cv_path_LD="$ac_dir/$ac_prog"
Chris@39 4961 # Check to see if the program is GNU ld. I'd rather use --version,
Chris@39 4962 # but apparently some variants of GNU ld only accept -v.
Chris@39 4963 # Break only if it was the GNU/non-GNU ld that we prefer.
Chris@39 4964 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
Chris@39 4965 *GNU* | *'with BFD'*)
Chris@39 4966 test "$with_gnu_ld" != no && break
Chris@39 4967 ;;
Chris@39 4968 *)
Chris@39 4969 test "$with_gnu_ld" != yes && break
Chris@39 4970 ;;
Chris@39 4971 esac
Chris@39 4972 fi
Chris@39 4973 done
Chris@39 4974 IFS="$lt_save_ifs"
Chris@39 4975 else
Chris@39 4976 lt_cv_path_LD="$LD" # Let the user override the test with a path.
Chris@39 4977 fi
Chris@39 4978 fi
Chris@39 4979
Chris@39 4980 LD="$lt_cv_path_LD"
Chris@39 4981 if test -n "$LD"; then
Chris@39 4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Chris@39 4983 $as_echo "$LD" >&6; }
Chris@39 4984 else
Chris@39 4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 4986 $as_echo "no" >&6; }
Chris@39 4987 fi
Chris@39 4988 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Chris@39 4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Chris@39 4990 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Chris@39 4991 if ${lt_cv_prog_gnu_ld+:} false; then :
Chris@39 4992 $as_echo_n "(cached) " >&6
Chris@39 4993 else
Chris@39 4994 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Chris@39 4995 case `$LD -v 2>&1 </dev/null` in
Chris@39 4996 *GNU* | *'with BFD'*)
Chris@39 4997 lt_cv_prog_gnu_ld=yes
Chris@39 4998 ;;
Chris@39 4999 *)
Chris@39 5000 lt_cv_prog_gnu_ld=no
Chris@39 5001 ;;
Chris@39 5002 esac
Chris@39 5003 fi
Chris@39 5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
Chris@39 5005 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
Chris@39 5006 with_gnu_ld=$lt_cv_prog_gnu_ld
Chris@39 5007
Chris@39 5008
Chris@39 5009
Chris@39 5010
Chris@39 5011
Chris@39 5012
Chris@39 5013
Chris@39 5014
Chris@39 5015
Chris@39 5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
Chris@39 5017 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Chris@39 5018 if ${lt_cv_path_NM+:} false; then :
Chris@39 5019 $as_echo_n "(cached) " >&6
Chris@39 5020 else
Chris@39 5021 if test -n "$NM"; then
Chris@39 5022 # Let the user override the test.
Chris@39 5023 lt_cv_path_NM="$NM"
Chris@39 5024 else
Chris@39 5025 lt_nm_to_check="${ac_tool_prefix}nm"
Chris@39 5026 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
Chris@39 5027 lt_nm_to_check="$lt_nm_to_check nm"
Chris@39 5028 fi
Chris@39 5029 for lt_tmp_nm in $lt_nm_to_check; do
Chris@39 5030 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@39 5031 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
Chris@39 5032 IFS="$lt_save_ifs"
Chris@39 5033 test -z "$ac_dir" && ac_dir=.
Chris@39 5034 tmp_nm="$ac_dir/$lt_tmp_nm"
Chris@39 5035 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
Chris@39 5036 # Check to see if the nm accepts a BSD-compat flag.
Chris@39 5037 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
Chris@39 5038 # nm: unknown option "B" ignored
Chris@39 5039 # Tru64's nm complains that /dev/null is an invalid object file
Chris@39 5040 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
Chris@39 5041 */dev/null* | *'Invalid file or object type'*)
Chris@39 5042 lt_cv_path_NM="$tmp_nm -B"
Chris@39 5043 break
Chris@39 5044 ;;
Chris@39 5045 *)
Chris@39 5046 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
Chris@39 5047 */dev/null*)
Chris@39 5048 lt_cv_path_NM="$tmp_nm -p"
Chris@39 5049 break
Chris@39 5050 ;;
Chris@39 5051 *)
Chris@39 5052 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
Chris@39 5053 continue # so that we can try to find one that supports BSD flags
Chris@39 5054 ;;
Chris@39 5055 esac
Chris@39 5056 ;;
Chris@39 5057 esac
Chris@39 5058 fi
Chris@39 5059 done
Chris@39 5060 IFS="$lt_save_ifs"
Chris@39 5061 done
Chris@39 5062 : ${lt_cv_path_NM=no}
Chris@39 5063 fi
Chris@39 5064 fi
Chris@39 5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
Chris@39 5066 $as_echo "$lt_cv_path_NM" >&6; }
Chris@39 5067 if test "$lt_cv_path_NM" != "no"; then
Chris@39 5068 NM="$lt_cv_path_NM"
Chris@39 5069 else
Chris@39 5070 # Didn't find any BSD compatible name lister, look for dumpbin.
Chris@39 5071 if test -n "$DUMPBIN"; then :
Chris@39 5072 # Let the user override the test.
Chris@39 5073 else
Chris@39 5074 if test -n "$ac_tool_prefix"; then
Chris@39 5075 for ac_prog in dumpbin "link -dump"
Chris@39 5076 do
Chris@39 5077 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@39 5078 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@39 5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 5080 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 5081 if ${ac_cv_prog_DUMPBIN+:} false; then :
Chris@39 5082 $as_echo_n "(cached) " >&6
Chris@39 5083 else
Chris@39 5084 if test -n "$DUMPBIN"; then
Chris@39 5085 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
Chris@39 5086 else
Chris@39 5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 5088 for as_dir in $PATH
Chris@39 5089 do
Chris@39 5090 IFS=$as_save_IFS
Chris@39 5091 test -z "$as_dir" && as_dir=.
Chris@39 5092 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 5093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 5094 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Chris@39 5095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 5096 break 2
Chris@39 5097 fi
Chris@39 5098 done
Chris@39 5099 done
Chris@39 5100 IFS=$as_save_IFS
Chris@39 5101
Chris@39 5102 fi
Chris@39 5103 fi
Chris@39 5104 DUMPBIN=$ac_cv_prog_DUMPBIN
Chris@39 5105 if test -n "$DUMPBIN"; then
Chris@39 5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
Chris@39 5107 $as_echo "$DUMPBIN" >&6; }
Chris@39 5108 else
Chris@39 5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 5110 $as_echo "no" >&6; }
Chris@39 5111 fi
Chris@39 5112
Chris@39 5113
Chris@39 5114 test -n "$DUMPBIN" && break
Chris@39 5115 done
Chris@39 5116 fi
Chris@39 5117 if test -z "$DUMPBIN"; then
Chris@39 5118 ac_ct_DUMPBIN=$DUMPBIN
Chris@39 5119 for ac_prog in dumpbin "link -dump"
Chris@39 5120 do
Chris@39 5121 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@39 5122 set dummy $ac_prog; ac_word=$2
Chris@39 5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 5124 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 5125 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Chris@39 5126 $as_echo_n "(cached) " >&6
Chris@39 5127 else
Chris@39 5128 if test -n "$ac_ct_DUMPBIN"; then
Chris@39 5129 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
Chris@39 5130 else
Chris@39 5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 5132 for as_dir in $PATH
Chris@39 5133 do
Chris@39 5134 IFS=$as_save_IFS
Chris@39 5135 test -z "$as_dir" && as_dir=.
Chris@39 5136 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 5137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 5138 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Chris@39 5139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 5140 break 2
Chris@39 5141 fi
Chris@39 5142 done
Chris@39 5143 done
Chris@39 5144 IFS=$as_save_IFS
Chris@39 5145
Chris@39 5146 fi
Chris@39 5147 fi
Chris@39 5148 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
Chris@39 5149 if test -n "$ac_ct_DUMPBIN"; then
Chris@39 5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
Chris@39 5151 $as_echo "$ac_ct_DUMPBIN" >&6; }
Chris@39 5152 else
Chris@39 5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 5154 $as_echo "no" >&6; }
Chris@39 5155 fi
Chris@39 5156
Chris@39 5157
Chris@39 5158 test -n "$ac_ct_DUMPBIN" && break
Chris@39 5159 done
Chris@39 5160
Chris@39 5161 if test "x$ac_ct_DUMPBIN" = x; then
Chris@39 5162 DUMPBIN=":"
Chris@39 5163 else
Chris@39 5164 case $cross_compiling:$ac_tool_warned in
Chris@39 5165 yes:)
Chris@39 5166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 5167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 5168 ac_tool_warned=yes ;;
Chris@39 5169 esac
Chris@39 5170 DUMPBIN=$ac_ct_DUMPBIN
Chris@39 5171 fi
Chris@39 5172 fi
Chris@39 5173
Chris@39 5174 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
Chris@39 5175 *COFF*)
Chris@39 5176 DUMPBIN="$DUMPBIN -symbols"
Chris@39 5177 ;;
Chris@39 5178 *)
Chris@39 5179 DUMPBIN=:
Chris@39 5180 ;;
Chris@39 5181 esac
Chris@39 5182 fi
Chris@39 5183
Chris@39 5184 if test "$DUMPBIN" != ":"; then
Chris@39 5185 NM="$DUMPBIN"
Chris@39 5186 fi
Chris@39 5187 fi
Chris@39 5188 test -z "$NM" && NM=nm
Chris@39 5189
Chris@39 5190
Chris@39 5191
Chris@39 5192
Chris@39 5193
Chris@39 5194
Chris@39 5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
Chris@39 5196 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
Chris@39 5197 if ${lt_cv_nm_interface+:} false; then :
Chris@39 5198 $as_echo_n "(cached) " >&6
Chris@39 5199 else
Chris@39 5200 lt_cv_nm_interface="BSD nm"
Chris@39 5201 echo "int some_variable = 0;" > conftest.$ac_ext
Chris@39 5202 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
Chris@39 5203 (eval "$ac_compile" 2>conftest.err)
Chris@39 5204 cat conftest.err >&5
Chris@39 5205 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Chris@39 5206 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
Chris@39 5207 cat conftest.err >&5
Chris@39 5208 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
Chris@39 5209 cat conftest.out >&5
Chris@39 5210 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
Chris@39 5211 lt_cv_nm_interface="MS dumpbin"
Chris@39 5212 fi
Chris@39 5213 rm -f conftest*
Chris@39 5214 fi
Chris@39 5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
Chris@39 5216 $as_echo "$lt_cv_nm_interface" >&6; }
Chris@39 5217
Chris@39 5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Chris@39 5219 $as_echo_n "checking whether ln -s works... " >&6; }
Chris@39 5220 LN_S=$as_ln_s
Chris@39 5221 if test "$LN_S" = "ln -s"; then
Chris@39 5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@39 5223 $as_echo "yes" >&6; }
Chris@39 5224 else
Chris@39 5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Chris@39 5226 $as_echo "no, using $LN_S" >&6; }
Chris@39 5227 fi
Chris@39 5228
Chris@39 5229 # find the maximum length of command line arguments
Chris@39 5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
Chris@39 5231 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
Chris@39 5232 if ${lt_cv_sys_max_cmd_len+:} false; then :
Chris@39 5233 $as_echo_n "(cached) " >&6
Chris@39 5234 else
Chris@39 5235 i=0
Chris@39 5236 teststring="ABCD"
Chris@39 5237
Chris@39 5238 case $build_os in
Chris@39 5239 msdosdjgpp*)
Chris@39 5240 # On DJGPP, this test can blow up pretty badly due to problems in libc
Chris@39 5241 # (any single argument exceeding 2000 bytes causes a buffer overrun
Chris@39 5242 # during glob expansion). Even if it were fixed, the result of this
Chris@39 5243 # check would be larger than it should be.
Chris@39 5244 lt_cv_sys_max_cmd_len=12288; # 12K is about right
Chris@39 5245 ;;
Chris@39 5246
Chris@39 5247 gnu*)
Chris@39 5248 # Under GNU Hurd, this test is not required because there is
Chris@39 5249 # no limit to the length of command line arguments.
Chris@39 5250 # Libtool will interpret -1 as no limit whatsoever
Chris@39 5251 lt_cv_sys_max_cmd_len=-1;
Chris@39 5252 ;;
Chris@39 5253
Chris@39 5254 cygwin* | mingw* | cegcc*)
Chris@39 5255 # On Win9x/ME, this test blows up -- it succeeds, but takes
Chris@39 5256 # about 5 minutes as the teststring grows exponentially.
Chris@39 5257 # Worse, since 9x/ME are not pre-emptively multitasking,
Chris@39 5258 # you end up with a "frozen" computer, even though with patience
Chris@39 5259 # the test eventually succeeds (with a max line length of 256k).
Chris@39 5260 # Instead, let's just punt: use the minimum linelength reported by
Chris@39 5261 # all of the supported platforms: 8192 (on NT/2K/XP).
Chris@39 5262 lt_cv_sys_max_cmd_len=8192;
Chris@39 5263 ;;
Chris@39 5264
Chris@39 5265 mint*)
Chris@39 5266 # On MiNT this can take a long time and run out of memory.
Chris@39 5267 lt_cv_sys_max_cmd_len=8192;
Chris@39 5268 ;;
Chris@39 5269
Chris@39 5270 amigaos*)
Chris@39 5271 # On AmigaOS with pdksh, this test takes hours, literally.
Chris@39 5272 # So we just punt and use a minimum line length of 8192.
Chris@39 5273 lt_cv_sys_max_cmd_len=8192;
Chris@39 5274 ;;
Chris@39 5275
Chris@39 5276 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Chris@39 5277 # This has been around since 386BSD, at least. Likely further.
Chris@39 5278 if test -x /sbin/sysctl; then
Chris@39 5279 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
Chris@39 5280 elif test -x /usr/sbin/sysctl; then
Chris@39 5281 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
Chris@39 5282 else
Chris@39 5283 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Chris@39 5284 fi
Chris@39 5285 # And add a safety zone
Chris@39 5286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Chris@39 5287 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Chris@39 5288 ;;
Chris@39 5289
Chris@39 5290 interix*)
Chris@39 5291 # We know the value 262144 and hardcode it with a safety zone (like BSD)
Chris@39 5292 lt_cv_sys_max_cmd_len=196608
Chris@39 5293 ;;
Chris@39 5294
Chris@39 5295 osf*)
Chris@39 5296 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
Chris@39 5297 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
Chris@39 5298 # nice to cause kernel panics so lets avoid the loop below.
Chris@39 5299 # First set a reasonable default.
Chris@39 5300 lt_cv_sys_max_cmd_len=16384
Chris@39 5301 #
Chris@39 5302 if test -x /sbin/sysconfig; then
Chris@39 5303 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
Chris@39 5304 *1*) lt_cv_sys_max_cmd_len=-1 ;;
Chris@39 5305 esac
Chris@39 5306 fi
Chris@39 5307 ;;
Chris@39 5308 sco3.2v5*)
Chris@39 5309 lt_cv_sys_max_cmd_len=102400
Chris@39 5310 ;;
Chris@39 5311 sysv5* | sco5v6* | sysv4.2uw2*)
Chris@39 5312 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
Chris@39 5313 if test -n "$kargmax"; then
Chris@39 5314 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
Chris@39 5315 else
Chris@39 5316 lt_cv_sys_max_cmd_len=32768
Chris@39 5317 fi
Chris@39 5318 ;;
Chris@39 5319 *)
Chris@39 5320 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
Chris@39 5321 if test -n "$lt_cv_sys_max_cmd_len"; then
Chris@39 5322 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Chris@39 5323 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Chris@39 5324 else
Chris@39 5325 # Make teststring a little bigger before we do anything with it.
Chris@39 5326 # a 1K string should be a reasonable start.
Chris@39 5327 for i in 1 2 3 4 5 6 7 8 ; do
Chris@39 5328 teststring=$teststring$teststring
Chris@39 5329 done
Chris@39 5330 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
Chris@39 5331 # If test is not a shell built-in, we'll probably end up computing a
Chris@39 5332 # maximum length that is only half of the actual maximum length, but
Chris@39 5333 # we can't tell.
Chris@39 5334 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
Chris@39 5335 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Chris@39 5336 test $i != 17 # 1/2 MB should be enough
Chris@39 5337 do
Chris@39 5338 i=`expr $i + 1`
Chris@39 5339 teststring=$teststring$teststring
Chris@39 5340 done
Chris@39 5341 # Only check the string length outside the loop.
Chris@39 5342 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
Chris@39 5343 teststring=
Chris@39 5344 # Add a significant safety factor because C++ compilers can tack on
Chris@39 5345 # massive amounts of additional arguments before passing them to the
Chris@39 5346 # linker. It appears as though 1/2 is a usable value.
Chris@39 5347 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
Chris@39 5348 fi
Chris@39 5349 ;;
Chris@39 5350 esac
Chris@39 5351
Chris@39 5352 fi
Chris@39 5353
Chris@39 5354 if test -n $lt_cv_sys_max_cmd_len ; then
Chris@39 5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
Chris@39 5356 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
Chris@39 5357 else
Chris@39 5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
Chris@39 5359 $as_echo "none" >&6; }
Chris@39 5360 fi
Chris@39 5361 max_cmd_len=$lt_cv_sys_max_cmd_len
Chris@39 5362
Chris@39 5363
Chris@39 5364
Chris@39 5365
Chris@39 5366
Chris@39 5367
Chris@39 5368 : ${CP="cp -f"}
Chris@39 5369 : ${MV="mv -f"}
Chris@39 5370 : ${RM="rm -f"}
Chris@39 5371
Chris@39 5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
Chris@39 5373 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
Chris@39 5374 # Try some XSI features
Chris@39 5375 xsi_shell=no
Chris@39 5376 ( _lt_dummy="a/b/c"
Chris@39 5377 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
Chris@39 5378 = c,a/b,b/c, \
Chris@39 5379 && eval 'test $(( 1 + 1 )) -eq 2 \
Chris@39 5380 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
Chris@39 5381 && xsi_shell=yes
Chris@39 5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
Chris@39 5383 $as_echo "$xsi_shell" >&6; }
Chris@39 5384
Chris@39 5385
Chris@39 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
Chris@39 5387 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
Chris@39 5388 lt_shell_append=no
Chris@39 5389 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
Chris@39 5390 >/dev/null 2>&1 \
Chris@39 5391 && lt_shell_append=yes
Chris@39 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
Chris@39 5393 $as_echo "$lt_shell_append" >&6; }
Chris@39 5394
Chris@39 5395
Chris@39 5396 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Chris@39 5397 lt_unset=unset
Chris@39 5398 else
Chris@39 5399 lt_unset=false
Chris@39 5400 fi
Chris@39 5401
Chris@39 5402
Chris@39 5403
Chris@39 5404
Chris@39 5405
Chris@39 5406 # test EBCDIC or ASCII
Chris@39 5407 case `echo X|tr X '\101'` in
Chris@39 5408 A) # ASCII based system
Chris@39 5409 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
Chris@39 5410 lt_SP2NL='tr \040 \012'
Chris@39 5411 lt_NL2SP='tr \015\012 \040\040'
Chris@39 5412 ;;
Chris@39 5413 *) # EBCDIC based system
Chris@39 5414 lt_SP2NL='tr \100 \n'
Chris@39 5415 lt_NL2SP='tr \r\n \100\100'
Chris@39 5416 ;;
Chris@39 5417 esac
Chris@39 5418
Chris@39 5419
Chris@39 5420
Chris@39 5421
Chris@39 5422
Chris@39 5423
Chris@39 5424
Chris@39 5425
Chris@39 5426
Chris@39 5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
Chris@39 5428 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
Chris@39 5429 if ${lt_cv_to_host_file_cmd+:} false; then :
Chris@39 5430 $as_echo_n "(cached) " >&6
Chris@39 5431 else
Chris@39 5432 case $host in
Chris@39 5433 *-*-mingw* )
Chris@39 5434 case $build in
Chris@39 5435 *-*-mingw* ) # actually msys
Chris@39 5436 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
Chris@39 5437 ;;
Chris@39 5438 *-*-cygwin* )
Chris@39 5439 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
Chris@39 5440 ;;
Chris@39 5441 * ) # otherwise, assume *nix
Chris@39 5442 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
Chris@39 5443 ;;
Chris@39 5444 esac
Chris@39 5445 ;;
Chris@39 5446 *-*-cygwin* )
Chris@39 5447 case $build in
Chris@39 5448 *-*-mingw* ) # actually msys
Chris@39 5449 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
Chris@39 5450 ;;
Chris@39 5451 *-*-cygwin* )
Chris@39 5452 lt_cv_to_host_file_cmd=func_convert_file_noop
Chris@39 5453 ;;
Chris@39 5454 * ) # otherwise, assume *nix
Chris@39 5455 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
Chris@39 5456 ;;
Chris@39 5457 esac
Chris@39 5458 ;;
Chris@39 5459 * ) # unhandled hosts (and "normal" native builds)
Chris@39 5460 lt_cv_to_host_file_cmd=func_convert_file_noop
Chris@39 5461 ;;
Chris@39 5462 esac
Chris@39 5463
Chris@39 5464 fi
Chris@39 5465
Chris@39 5466 to_host_file_cmd=$lt_cv_to_host_file_cmd
Chris@39 5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
Chris@39 5468 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
Chris@39 5469
Chris@39 5470
Chris@39 5471
Chris@39 5472
Chris@39 5473
Chris@39 5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
Chris@39 5475 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
Chris@39 5476 if ${lt_cv_to_tool_file_cmd+:} false; then :
Chris@39 5477 $as_echo_n "(cached) " >&6
Chris@39 5478 else
Chris@39 5479 #assume ordinary cross tools, or native build.
Chris@39 5480 lt_cv_to_tool_file_cmd=func_convert_file_noop
Chris@39 5481 case $host in
Chris@39 5482 *-*-mingw* )
Chris@39 5483 case $build in
Chris@39 5484 *-*-mingw* ) # actually msys
Chris@39 5485 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
Chris@39 5486 ;;
Chris@39 5487 esac
Chris@39 5488 ;;
Chris@39 5489 esac
Chris@39 5490
Chris@39 5491 fi
Chris@39 5492
Chris@39 5493 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Chris@39 5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
Chris@39 5495 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
Chris@39 5496
Chris@39 5497
Chris@39 5498
Chris@39 5499
Chris@39 5500
Chris@39 5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
Chris@39 5502 $as_echo_n "checking for $LD option to reload object files... " >&6; }
Chris@39 5503 if ${lt_cv_ld_reload_flag+:} false; then :
Chris@39 5504 $as_echo_n "(cached) " >&6
Chris@39 5505 else
Chris@39 5506 lt_cv_ld_reload_flag='-r'
Chris@39 5507 fi
Chris@39 5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
Chris@39 5509 $as_echo "$lt_cv_ld_reload_flag" >&6; }
Chris@39 5510 reload_flag=$lt_cv_ld_reload_flag
Chris@39 5511 case $reload_flag in
Chris@39 5512 "" | " "*) ;;
Chris@39 5513 *) reload_flag=" $reload_flag" ;;
Chris@39 5514 esac
Chris@39 5515 reload_cmds='$LD$reload_flag -o $output$reload_objs'
Chris@39 5516 case $host_os in
Chris@39 5517 cygwin* | mingw* | pw32* | cegcc*)
Chris@39 5518 if test "$GCC" != yes; then
Chris@39 5519 reload_cmds=false
Chris@39 5520 fi
Chris@39 5521 ;;
Chris@39 5522 darwin*)
Chris@39 5523 if test "$GCC" = yes; then
Chris@39 5524 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
Chris@39 5525 else
Chris@39 5526 reload_cmds='$LD$reload_flag -o $output$reload_objs'
Chris@39 5527 fi
Chris@39 5528 ;;
Chris@39 5529 esac
Chris@39 5530
Chris@39 5531
Chris@39 5532
Chris@39 5533
Chris@39 5534
Chris@39 5535
Chris@39 5536
Chris@39 5537
Chris@39 5538
Chris@39 5539 if test -n "$ac_tool_prefix"; then
Chris@39 5540 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
Chris@39 5541 set dummy ${ac_tool_prefix}objdump; ac_word=$2
Chris@39 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 5543 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 5544 if ${ac_cv_prog_OBJDUMP+:} false; then :
Chris@39 5545 $as_echo_n "(cached) " >&6
Chris@39 5546 else
Chris@39 5547 if test -n "$OBJDUMP"; then
Chris@39 5548 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
Chris@39 5549 else
Chris@39 5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 5551 for as_dir in $PATH
Chris@39 5552 do
Chris@39 5553 IFS=$as_save_IFS
Chris@39 5554 test -z "$as_dir" && as_dir=.
Chris@39 5555 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 5556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 5557 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Chris@39 5558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 5559 break 2
Chris@39 5560 fi
Chris@39 5561 done
Chris@39 5562 done
Chris@39 5563 IFS=$as_save_IFS
Chris@39 5564
Chris@39 5565 fi
Chris@39 5566 fi
Chris@39 5567 OBJDUMP=$ac_cv_prog_OBJDUMP
Chris@39 5568 if test -n "$OBJDUMP"; then
Chris@39 5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
Chris@39 5570 $as_echo "$OBJDUMP" >&6; }
Chris@39 5571 else
Chris@39 5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 5573 $as_echo "no" >&6; }
Chris@39 5574 fi
Chris@39 5575
Chris@39 5576
Chris@39 5577 fi
Chris@39 5578 if test -z "$ac_cv_prog_OBJDUMP"; then
Chris@39 5579 ac_ct_OBJDUMP=$OBJDUMP
Chris@39 5580 # Extract the first word of "objdump", so it can be a program name with args.
Chris@39 5581 set dummy objdump; ac_word=$2
Chris@39 5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 5583 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 5584 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Chris@39 5585 $as_echo_n "(cached) " >&6
Chris@39 5586 else
Chris@39 5587 if test -n "$ac_ct_OBJDUMP"; then
Chris@39 5588 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
Chris@39 5589 else
Chris@39 5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 5591 for as_dir in $PATH
Chris@39 5592 do
Chris@39 5593 IFS=$as_save_IFS
Chris@39 5594 test -z "$as_dir" && as_dir=.
Chris@39 5595 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 5596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 5597 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Chris@39 5598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 5599 break 2
Chris@39 5600 fi
Chris@39 5601 done
Chris@39 5602 done
Chris@39 5603 IFS=$as_save_IFS
Chris@39 5604
Chris@39 5605 fi
Chris@39 5606 fi
Chris@39 5607 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
Chris@39 5608 if test -n "$ac_ct_OBJDUMP"; then
Chris@39 5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
Chris@39 5610 $as_echo "$ac_ct_OBJDUMP" >&6; }
Chris@39 5611 else
Chris@39 5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 5613 $as_echo "no" >&6; }
Chris@39 5614 fi
Chris@39 5615
Chris@39 5616 if test "x$ac_ct_OBJDUMP" = x; then
Chris@39 5617 OBJDUMP="false"
Chris@39 5618 else
Chris@39 5619 case $cross_compiling:$ac_tool_warned in
Chris@39 5620 yes:)
Chris@39 5621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 5622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 5623 ac_tool_warned=yes ;;
Chris@39 5624 esac
Chris@39 5625 OBJDUMP=$ac_ct_OBJDUMP
Chris@39 5626 fi
Chris@39 5627 else
Chris@39 5628 OBJDUMP="$ac_cv_prog_OBJDUMP"
Chris@39 5629 fi
Chris@39 5630
Chris@39 5631 test -z "$OBJDUMP" && OBJDUMP=objdump
Chris@39 5632
Chris@39 5633
Chris@39 5634
Chris@39 5635
Chris@39 5636
Chris@39 5637
Chris@39 5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
Chris@39 5639 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
Chris@39 5640 if ${lt_cv_deplibs_check_method+:} false; then :
Chris@39 5641 $as_echo_n "(cached) " >&6
Chris@39 5642 else
Chris@39 5643 lt_cv_file_magic_cmd='$MAGIC_CMD'
Chris@39 5644 lt_cv_file_magic_test_file=
Chris@39 5645 lt_cv_deplibs_check_method='unknown'
Chris@39 5646 # Need to set the preceding variable on all platforms that support
Chris@39 5647 # interlibrary dependencies.
Chris@39 5648 # 'none' -- dependencies not supported.
Chris@39 5649 # `unknown' -- same as none, but documents that we really don't know.
Chris@39 5650 # 'pass_all' -- all dependencies passed with no checks.
Chris@39 5651 # 'test_compile' -- check by making test program.
Chris@39 5652 # 'file_magic [[regex]]' -- check by looking for files in library path
Chris@39 5653 # which responds to the $file_magic_cmd with a given extended regex.
Chris@39 5654 # If you have `file' or equivalent on your system and you're not sure
Chris@39 5655 # whether `pass_all' will *always* work, you probably want this one.
Chris@39 5656
Chris@39 5657 case $host_os in
Chris@39 5658 aix[4-9]*)
Chris@39 5659 lt_cv_deplibs_check_method=pass_all
Chris@39 5660 ;;
Chris@39 5661
Chris@39 5662 beos*)
Chris@39 5663 lt_cv_deplibs_check_method=pass_all
Chris@39 5664 ;;
Chris@39 5665
Chris@39 5666 bsdi[45]*)
Chris@39 5667 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
Chris@39 5668 lt_cv_file_magic_cmd='/usr/bin/file -L'
Chris@39 5669 lt_cv_file_magic_test_file=/shlib/libc.so
Chris@39 5670 ;;
Chris@39 5671
Chris@39 5672 cygwin*)
Chris@39 5673 # func_win32_libid is a shell function defined in ltmain.sh
Chris@39 5674 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Chris@39 5675 lt_cv_file_magic_cmd='func_win32_libid'
Chris@39 5676 ;;
Chris@39 5677
Chris@39 5678 mingw* | pw32*)
Chris@39 5679 # Base MSYS/MinGW do not provide the 'file' command needed by
Chris@39 5680 # func_win32_libid shell function, so use a weaker test based on 'objdump',
Chris@39 5681 # unless we find 'file', for example because we are cross-compiling.
Chris@39 5682 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
Chris@39 5683 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
Chris@39 5684 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Chris@39 5685 lt_cv_file_magic_cmd='func_win32_libid'
Chris@39 5686 else
Chris@39 5687 # Keep this pattern in sync with the one in func_win32_libid.
Chris@39 5688 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
Chris@39 5689 lt_cv_file_magic_cmd='$OBJDUMP -f'
Chris@39 5690 fi
Chris@39 5691 ;;
Chris@39 5692
Chris@39 5693 cegcc*)
Chris@39 5694 # use the weaker test based on 'objdump'. See mingw*.
Chris@39 5695 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
Chris@39 5696 lt_cv_file_magic_cmd='$OBJDUMP -f'
Chris@39 5697 ;;
Chris@39 5698
Chris@39 5699 darwin* | rhapsody*)
Chris@39 5700 lt_cv_deplibs_check_method=pass_all
Chris@39 5701 ;;
Chris@39 5702
Chris@39 5703 freebsd* | dragonfly*)
Chris@39 5704 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Chris@39 5705 case $host_cpu in
Chris@39 5706 i*86 )
Chris@39 5707 # Not sure whether the presence of OpenBSD here was a mistake.
Chris@39 5708 # Let's accept both of them until this is cleared up.
Chris@39 5709 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
Chris@39 5710 lt_cv_file_magic_cmd=/usr/bin/file
Chris@39 5711 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
Chris@39 5712 ;;
Chris@39 5713 esac
Chris@39 5714 else
Chris@39 5715 lt_cv_deplibs_check_method=pass_all
Chris@39 5716 fi
Chris@39 5717 ;;
Chris@39 5718
Chris@39 5719 gnu*)
Chris@39 5720 lt_cv_deplibs_check_method=pass_all
Chris@39 5721 ;;
Chris@39 5722
Chris@39 5723 haiku*)
Chris@39 5724 lt_cv_deplibs_check_method=pass_all
Chris@39 5725 ;;
Chris@39 5726
Chris@39 5727 hpux10.20* | hpux11*)
Chris@39 5728 lt_cv_file_magic_cmd=/usr/bin/file
Chris@39 5729 case $host_cpu in
Chris@39 5730 ia64*)
Chris@39 5731 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
Chris@39 5732 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
Chris@39 5733 ;;
Chris@39 5734 hppa*64*)
Chris@39 5735 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
Chris@39 5736 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
Chris@39 5737 ;;
Chris@39 5738 *)
Chris@39 5739 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
Chris@39 5740 lt_cv_file_magic_test_file=/usr/lib/libc.sl
Chris@39 5741 ;;
Chris@39 5742 esac
Chris@39 5743 ;;
Chris@39 5744
Chris@39 5745 interix[3-9]*)
Chris@39 5746 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
Chris@39 5747 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
Chris@39 5748 ;;
Chris@39 5749
Chris@39 5750 irix5* | irix6* | nonstopux*)
Chris@39 5751 case $LD in
Chris@39 5752 *-32|*"-32 ") libmagic=32-bit;;
Chris@39 5753 *-n32|*"-n32 ") libmagic=N32;;
Chris@39 5754 *-64|*"-64 ") libmagic=64-bit;;
Chris@39 5755 *) libmagic=never-match;;
Chris@39 5756 esac
Chris@39 5757 lt_cv_deplibs_check_method=pass_all
Chris@39 5758 ;;
Chris@39 5759
Chris@39 5760 # This must be Linux ELF.
Chris@39 5761 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@39 5762 lt_cv_deplibs_check_method=pass_all
Chris@39 5763 ;;
Chris@39 5764
Chris@39 5765 netbsd* | netbsdelf*-gnu)
Chris@39 5766 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Chris@39 5767 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Chris@39 5768 else
Chris@39 5769 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
Chris@39 5770 fi
Chris@39 5771 ;;
Chris@39 5772
Chris@39 5773 newos6*)
Chris@39 5774 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
Chris@39 5775 lt_cv_file_magic_cmd=/usr/bin/file
Chris@39 5776 lt_cv_file_magic_test_file=/usr/lib/libnls.so
Chris@39 5777 ;;
Chris@39 5778
Chris@39 5779 *nto* | *qnx*)
Chris@39 5780 lt_cv_deplibs_check_method=pass_all
Chris@39 5781 ;;
Chris@39 5782
Chris@39 5783 openbsd*)
Chris@39 5784 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@39 5785 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
Chris@39 5786 else
Chris@39 5787 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Chris@39 5788 fi
Chris@39 5789 ;;
Chris@39 5790
Chris@39 5791 osf3* | osf4* | osf5*)
Chris@39 5792 lt_cv_deplibs_check_method=pass_all
Chris@39 5793 ;;
Chris@39 5794
Chris@39 5795 rdos*)
Chris@39 5796 lt_cv_deplibs_check_method=pass_all
Chris@39 5797 ;;
Chris@39 5798
Chris@39 5799 solaris*)
Chris@39 5800 lt_cv_deplibs_check_method=pass_all
Chris@39 5801 ;;
Chris@39 5802
Chris@39 5803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Chris@39 5804 lt_cv_deplibs_check_method=pass_all
Chris@39 5805 ;;
Chris@39 5806
Chris@39 5807 sysv4 | sysv4.3*)
Chris@39 5808 case $host_vendor in
Chris@39 5809 motorola)
Chris@39 5810 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]'
Chris@39 5811 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
Chris@39 5812 ;;
Chris@39 5813 ncr)
Chris@39 5814 lt_cv_deplibs_check_method=pass_all
Chris@39 5815 ;;
Chris@39 5816 sequent)
Chris@39 5817 lt_cv_file_magic_cmd='/bin/file'
Chris@39 5818 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
Chris@39 5819 ;;
Chris@39 5820 sni)
Chris@39 5821 lt_cv_file_magic_cmd='/bin/file'
Chris@39 5822 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
Chris@39 5823 lt_cv_file_magic_test_file=/lib/libc.so
Chris@39 5824 ;;
Chris@39 5825 siemens)
Chris@39 5826 lt_cv_deplibs_check_method=pass_all
Chris@39 5827 ;;
Chris@39 5828 pc)
Chris@39 5829 lt_cv_deplibs_check_method=pass_all
Chris@39 5830 ;;
Chris@39 5831 esac
Chris@39 5832 ;;
Chris@39 5833
Chris@39 5834 tpf*)
Chris@39 5835 lt_cv_deplibs_check_method=pass_all
Chris@39 5836 ;;
Chris@39 5837 esac
Chris@39 5838
Chris@39 5839 fi
Chris@39 5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
Chris@39 5841 $as_echo "$lt_cv_deplibs_check_method" >&6; }
Chris@39 5842
Chris@39 5843 file_magic_glob=
Chris@39 5844 want_nocaseglob=no
Chris@39 5845 if test "$build" = "$host"; then
Chris@39 5846 case $host_os in
Chris@39 5847 mingw* | pw32*)
Chris@39 5848 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
Chris@39 5849 want_nocaseglob=yes
Chris@39 5850 else
Chris@39 5851 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
Chris@39 5852 fi
Chris@39 5853 ;;
Chris@39 5854 esac
Chris@39 5855 fi
Chris@39 5856
Chris@39 5857 file_magic_cmd=$lt_cv_file_magic_cmd
Chris@39 5858 deplibs_check_method=$lt_cv_deplibs_check_method
Chris@39 5859 test -z "$deplibs_check_method" && deplibs_check_method=unknown
Chris@39 5860
Chris@39 5861
Chris@39 5862
Chris@39 5863
Chris@39 5864
Chris@39 5865
Chris@39 5866
Chris@39 5867
Chris@39 5868
Chris@39 5869
Chris@39 5870
Chris@39 5871
Chris@39 5872
Chris@39 5873
Chris@39 5874
Chris@39 5875
Chris@39 5876
Chris@39 5877
Chris@39 5878
Chris@39 5879
Chris@39 5880
Chris@39 5881
Chris@39 5882 if test -n "$ac_tool_prefix"; then
Chris@39 5883 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
Chris@39 5884 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Chris@39 5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 5886 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 5887 if ${ac_cv_prog_DLLTOOL+:} false; then :
Chris@39 5888 $as_echo_n "(cached) " >&6
Chris@39 5889 else
Chris@39 5890 if test -n "$DLLTOOL"; then
Chris@39 5891 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
Chris@39 5892 else
Chris@39 5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 5894 for as_dir in $PATH
Chris@39 5895 do
Chris@39 5896 IFS=$as_save_IFS
Chris@39 5897 test -z "$as_dir" && as_dir=.
Chris@39 5898 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 5899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 5900 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
Chris@39 5901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 5902 break 2
Chris@39 5903 fi
Chris@39 5904 done
Chris@39 5905 done
Chris@39 5906 IFS=$as_save_IFS
Chris@39 5907
Chris@39 5908 fi
Chris@39 5909 fi
Chris@39 5910 DLLTOOL=$ac_cv_prog_DLLTOOL
Chris@39 5911 if test -n "$DLLTOOL"; then
Chris@39 5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
Chris@39 5913 $as_echo "$DLLTOOL" >&6; }
Chris@39 5914 else
Chris@39 5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 5916 $as_echo "no" >&6; }
Chris@39 5917 fi
Chris@39 5918
Chris@39 5919
Chris@39 5920 fi
Chris@39 5921 if test -z "$ac_cv_prog_DLLTOOL"; then
Chris@39 5922 ac_ct_DLLTOOL=$DLLTOOL
Chris@39 5923 # Extract the first word of "dlltool", so it can be a program name with args.
Chris@39 5924 set dummy dlltool; ac_word=$2
Chris@39 5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 5926 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 5927 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
Chris@39 5928 $as_echo_n "(cached) " >&6
Chris@39 5929 else
Chris@39 5930 if test -n "$ac_ct_DLLTOOL"; then
Chris@39 5931 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
Chris@39 5932 else
Chris@39 5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 5934 for as_dir in $PATH
Chris@39 5935 do
Chris@39 5936 IFS=$as_save_IFS
Chris@39 5937 test -z "$as_dir" && as_dir=.
Chris@39 5938 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 5939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 5940 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
Chris@39 5941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 5942 break 2
Chris@39 5943 fi
Chris@39 5944 done
Chris@39 5945 done
Chris@39 5946 IFS=$as_save_IFS
Chris@39 5947
Chris@39 5948 fi
Chris@39 5949 fi
Chris@39 5950 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
Chris@39 5951 if test -n "$ac_ct_DLLTOOL"; then
Chris@39 5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
Chris@39 5953 $as_echo "$ac_ct_DLLTOOL" >&6; }
Chris@39 5954 else
Chris@39 5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 5956 $as_echo "no" >&6; }
Chris@39 5957 fi
Chris@39 5958
Chris@39 5959 if test "x$ac_ct_DLLTOOL" = x; then
Chris@39 5960 DLLTOOL="false"
Chris@39 5961 else
Chris@39 5962 case $cross_compiling:$ac_tool_warned in
Chris@39 5963 yes:)
Chris@39 5964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 5965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 5966 ac_tool_warned=yes ;;
Chris@39 5967 esac
Chris@39 5968 DLLTOOL=$ac_ct_DLLTOOL
Chris@39 5969 fi
Chris@39 5970 else
Chris@39 5971 DLLTOOL="$ac_cv_prog_DLLTOOL"
Chris@39 5972 fi
Chris@39 5973
Chris@39 5974 test -z "$DLLTOOL" && DLLTOOL=dlltool
Chris@39 5975
Chris@39 5976
Chris@39 5977
Chris@39 5978
Chris@39 5979
Chris@39 5980
Chris@39 5981
Chris@39 5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
Chris@39 5983 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
Chris@39 5984 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
Chris@39 5985 $as_echo_n "(cached) " >&6
Chris@39 5986 else
Chris@39 5987 lt_cv_sharedlib_from_linklib_cmd='unknown'
Chris@39 5988
Chris@39 5989 case $host_os in
Chris@39 5990 cygwin* | mingw* | pw32* | cegcc*)
Chris@39 5991 # two different shell functions defined in ltmain.sh
Chris@39 5992 # decide which to use based on capabilities of $DLLTOOL
Chris@39 5993 case `$DLLTOOL --help 2>&1` in
Chris@39 5994 *--identify-strict*)
Chris@39 5995 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
Chris@39 5996 ;;
Chris@39 5997 *)
Chris@39 5998 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
Chris@39 5999 ;;
Chris@39 6000 esac
Chris@39 6001 ;;
Chris@39 6002 *)
Chris@39 6003 # fallback: assume linklib IS sharedlib
Chris@39 6004 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
Chris@39 6005 ;;
Chris@39 6006 esac
Chris@39 6007
Chris@39 6008 fi
Chris@39 6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
Chris@39 6010 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
Chris@39 6011 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
Chris@39 6012 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
Chris@39 6013
Chris@39 6014
Chris@39 6015
Chris@39 6016
Chris@39 6017
Chris@39 6018
Chris@39 6019
Chris@39 6020
Chris@39 6021 if test -n "$ac_tool_prefix"; then
Chris@39 6022 for ac_prog in ar
Chris@39 6023 do
Chris@39 6024 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@39 6025 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@39 6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 6027 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 6028 if ${ac_cv_prog_AR+:} false; then :
Chris@39 6029 $as_echo_n "(cached) " >&6
Chris@39 6030 else
Chris@39 6031 if test -n "$AR"; then
Chris@39 6032 ac_cv_prog_AR="$AR" # Let the user override the test.
Chris@39 6033 else
Chris@39 6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 6035 for as_dir in $PATH
Chris@39 6036 do
Chris@39 6037 IFS=$as_save_IFS
Chris@39 6038 test -z "$as_dir" && as_dir=.
Chris@39 6039 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 6040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 6041 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Chris@39 6042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 6043 break 2
Chris@39 6044 fi
Chris@39 6045 done
Chris@39 6046 done
Chris@39 6047 IFS=$as_save_IFS
Chris@39 6048
Chris@39 6049 fi
Chris@39 6050 fi
Chris@39 6051 AR=$ac_cv_prog_AR
Chris@39 6052 if test -n "$AR"; then
Chris@39 6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Chris@39 6054 $as_echo "$AR" >&6; }
Chris@39 6055 else
Chris@39 6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 6057 $as_echo "no" >&6; }
Chris@39 6058 fi
Chris@39 6059
Chris@39 6060
Chris@39 6061 test -n "$AR" && break
Chris@39 6062 done
Chris@39 6063 fi
Chris@39 6064 if test -z "$AR"; then
Chris@39 6065 ac_ct_AR=$AR
Chris@39 6066 for ac_prog in ar
Chris@39 6067 do
Chris@39 6068 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@39 6069 set dummy $ac_prog; ac_word=$2
Chris@39 6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 6071 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 6072 if ${ac_cv_prog_ac_ct_AR+:} false; then :
Chris@39 6073 $as_echo_n "(cached) " >&6
Chris@39 6074 else
Chris@39 6075 if test -n "$ac_ct_AR"; then
Chris@39 6076 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Chris@39 6077 else
Chris@39 6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 6079 for as_dir in $PATH
Chris@39 6080 do
Chris@39 6081 IFS=$as_save_IFS
Chris@39 6082 test -z "$as_dir" && as_dir=.
Chris@39 6083 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 6084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 6085 ac_cv_prog_ac_ct_AR="$ac_prog"
Chris@39 6086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 6087 break 2
Chris@39 6088 fi
Chris@39 6089 done
Chris@39 6090 done
Chris@39 6091 IFS=$as_save_IFS
Chris@39 6092
Chris@39 6093 fi
Chris@39 6094 fi
Chris@39 6095 ac_ct_AR=$ac_cv_prog_ac_ct_AR
Chris@39 6096 if test -n "$ac_ct_AR"; then
Chris@39 6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Chris@39 6098 $as_echo "$ac_ct_AR" >&6; }
Chris@39 6099 else
Chris@39 6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 6101 $as_echo "no" >&6; }
Chris@39 6102 fi
Chris@39 6103
Chris@39 6104
Chris@39 6105 test -n "$ac_ct_AR" && break
Chris@39 6106 done
Chris@39 6107
Chris@39 6108 if test "x$ac_ct_AR" = x; then
Chris@39 6109 AR="false"
Chris@39 6110 else
Chris@39 6111 case $cross_compiling:$ac_tool_warned in
Chris@39 6112 yes:)
Chris@39 6113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 6114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 6115 ac_tool_warned=yes ;;
Chris@39 6116 esac
Chris@39 6117 AR=$ac_ct_AR
Chris@39 6118 fi
Chris@39 6119 fi
Chris@39 6120
Chris@39 6121 : ${AR=ar}
Chris@39 6122 : ${AR_FLAGS=cru}
Chris@39 6123
Chris@39 6124
Chris@39 6125
Chris@39 6126
Chris@39 6127
Chris@39 6128
Chris@39 6129
Chris@39 6130
Chris@39 6131
Chris@39 6132
Chris@39 6133
Chris@39 6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
Chris@39 6135 $as_echo_n "checking for archiver @FILE support... " >&6; }
Chris@39 6136 if ${lt_cv_ar_at_file+:} false; then :
Chris@39 6137 $as_echo_n "(cached) " >&6
Chris@39 6138 else
Chris@39 6139 lt_cv_ar_at_file=no
Chris@39 6140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 6141 /* end confdefs.h. */
Chris@39 6142
Chris@39 6143 int
Chris@39 6144 main ()
Chris@39 6145 {
Chris@39 6146
Chris@39 6147 ;
Chris@39 6148 return 0;
Chris@39 6149 }
Chris@39 6150 _ACEOF
Chris@39 6151 if ac_fn_c_try_compile "$LINENO"; then :
Chris@39 6152 echo conftest.$ac_objext > conftest.lst
Chris@39 6153 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
Chris@39 6154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
Chris@39 6155 (eval $lt_ar_try) 2>&5
Chris@39 6156 ac_status=$?
Chris@39 6157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 6158 test $ac_status = 0; }
Chris@39 6159 if test "$ac_status" -eq 0; then
Chris@39 6160 # Ensure the archiver fails upon bogus file names.
Chris@39 6161 rm -f conftest.$ac_objext libconftest.a
Chris@39 6162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
Chris@39 6163 (eval $lt_ar_try) 2>&5
Chris@39 6164 ac_status=$?
Chris@39 6165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 6166 test $ac_status = 0; }
Chris@39 6167 if test "$ac_status" -ne 0; then
Chris@39 6168 lt_cv_ar_at_file=@
Chris@39 6169 fi
Chris@39 6170 fi
Chris@39 6171 rm -f conftest.* libconftest.a
Chris@39 6172
Chris@39 6173 fi
Chris@39 6174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 6175
Chris@39 6176 fi
Chris@39 6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
Chris@39 6178 $as_echo "$lt_cv_ar_at_file" >&6; }
Chris@39 6179
Chris@39 6180 if test "x$lt_cv_ar_at_file" = xno; then
Chris@39 6181 archiver_list_spec=
Chris@39 6182 else
Chris@39 6183 archiver_list_spec=$lt_cv_ar_at_file
Chris@39 6184 fi
Chris@39 6185
Chris@39 6186
Chris@39 6187
Chris@39 6188
Chris@39 6189
Chris@39 6190
Chris@39 6191
Chris@39 6192 if test -n "$ac_tool_prefix"; then
Chris@39 6193 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
Chris@39 6194 set dummy ${ac_tool_prefix}strip; ac_word=$2
Chris@39 6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 6196 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 6197 if ${ac_cv_prog_STRIP+:} false; then :
Chris@39 6198 $as_echo_n "(cached) " >&6
Chris@39 6199 else
Chris@39 6200 if test -n "$STRIP"; then
Chris@39 6201 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
Chris@39 6202 else
Chris@39 6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 6204 for as_dir in $PATH
Chris@39 6205 do
Chris@39 6206 IFS=$as_save_IFS
Chris@39 6207 test -z "$as_dir" && as_dir=.
Chris@39 6208 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 6209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 6210 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Chris@39 6211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 6212 break 2
Chris@39 6213 fi
Chris@39 6214 done
Chris@39 6215 done
Chris@39 6216 IFS=$as_save_IFS
Chris@39 6217
Chris@39 6218 fi
Chris@39 6219 fi
Chris@39 6220 STRIP=$ac_cv_prog_STRIP
Chris@39 6221 if test -n "$STRIP"; then
Chris@39 6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Chris@39 6223 $as_echo "$STRIP" >&6; }
Chris@39 6224 else
Chris@39 6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 6226 $as_echo "no" >&6; }
Chris@39 6227 fi
Chris@39 6228
Chris@39 6229
Chris@39 6230 fi
Chris@39 6231 if test -z "$ac_cv_prog_STRIP"; then
Chris@39 6232 ac_ct_STRIP=$STRIP
Chris@39 6233 # Extract the first word of "strip", so it can be a program name with args.
Chris@39 6234 set dummy strip; ac_word=$2
Chris@39 6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 6236 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 6237 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Chris@39 6238 $as_echo_n "(cached) " >&6
Chris@39 6239 else
Chris@39 6240 if test -n "$ac_ct_STRIP"; then
Chris@39 6241 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Chris@39 6242 else
Chris@39 6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 6244 for as_dir in $PATH
Chris@39 6245 do
Chris@39 6246 IFS=$as_save_IFS
Chris@39 6247 test -z "$as_dir" && as_dir=.
Chris@39 6248 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 6249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 6250 ac_cv_prog_ac_ct_STRIP="strip"
Chris@39 6251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 6252 break 2
Chris@39 6253 fi
Chris@39 6254 done
Chris@39 6255 done
Chris@39 6256 IFS=$as_save_IFS
Chris@39 6257
Chris@39 6258 fi
Chris@39 6259 fi
Chris@39 6260 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
Chris@39 6261 if test -n "$ac_ct_STRIP"; then
Chris@39 6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Chris@39 6263 $as_echo "$ac_ct_STRIP" >&6; }
Chris@39 6264 else
Chris@39 6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 6266 $as_echo "no" >&6; }
Chris@39 6267 fi
Chris@39 6268
Chris@39 6269 if test "x$ac_ct_STRIP" = x; then
Chris@39 6270 STRIP=":"
Chris@39 6271 else
Chris@39 6272 case $cross_compiling:$ac_tool_warned in
Chris@39 6273 yes:)
Chris@39 6274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 6275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 6276 ac_tool_warned=yes ;;
Chris@39 6277 esac
Chris@39 6278 STRIP=$ac_ct_STRIP
Chris@39 6279 fi
Chris@39 6280 else
Chris@39 6281 STRIP="$ac_cv_prog_STRIP"
Chris@39 6282 fi
Chris@39 6283
Chris@39 6284 test -z "$STRIP" && STRIP=:
Chris@39 6285
Chris@39 6286
Chris@39 6287
Chris@39 6288
Chris@39 6289
Chris@39 6290
Chris@39 6291 if test -n "$ac_tool_prefix"; then
Chris@39 6292 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
Chris@39 6293 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Chris@39 6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 6295 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 6296 if ${ac_cv_prog_RANLIB+:} false; then :
Chris@39 6297 $as_echo_n "(cached) " >&6
Chris@39 6298 else
Chris@39 6299 if test -n "$RANLIB"; then
Chris@39 6300 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
Chris@39 6301 else
Chris@39 6302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 6303 for as_dir in $PATH
Chris@39 6304 do
Chris@39 6305 IFS=$as_save_IFS
Chris@39 6306 test -z "$as_dir" && as_dir=.
Chris@39 6307 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 6308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 6309 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Chris@39 6310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 6311 break 2
Chris@39 6312 fi
Chris@39 6313 done
Chris@39 6314 done
Chris@39 6315 IFS=$as_save_IFS
Chris@39 6316
Chris@39 6317 fi
Chris@39 6318 fi
Chris@39 6319 RANLIB=$ac_cv_prog_RANLIB
Chris@39 6320 if test -n "$RANLIB"; then
Chris@39 6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Chris@39 6322 $as_echo "$RANLIB" >&6; }
Chris@39 6323 else
Chris@39 6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 6325 $as_echo "no" >&6; }
Chris@39 6326 fi
Chris@39 6327
Chris@39 6328
Chris@39 6329 fi
Chris@39 6330 if test -z "$ac_cv_prog_RANLIB"; then
Chris@39 6331 ac_ct_RANLIB=$RANLIB
Chris@39 6332 # Extract the first word of "ranlib", so it can be a program name with args.
Chris@39 6333 set dummy ranlib; ac_word=$2
Chris@39 6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 6335 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 6336 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Chris@39 6337 $as_echo_n "(cached) " >&6
Chris@39 6338 else
Chris@39 6339 if test -n "$ac_ct_RANLIB"; then
Chris@39 6340 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Chris@39 6341 else
Chris@39 6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 6343 for as_dir in $PATH
Chris@39 6344 do
Chris@39 6345 IFS=$as_save_IFS
Chris@39 6346 test -z "$as_dir" && as_dir=.
Chris@39 6347 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 6348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 6349 ac_cv_prog_ac_ct_RANLIB="ranlib"
Chris@39 6350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 6351 break 2
Chris@39 6352 fi
Chris@39 6353 done
Chris@39 6354 done
Chris@39 6355 IFS=$as_save_IFS
Chris@39 6356
Chris@39 6357 fi
Chris@39 6358 fi
Chris@39 6359 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
Chris@39 6360 if test -n "$ac_ct_RANLIB"; then
Chris@39 6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Chris@39 6362 $as_echo "$ac_ct_RANLIB" >&6; }
Chris@39 6363 else
Chris@39 6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 6365 $as_echo "no" >&6; }
Chris@39 6366 fi
Chris@39 6367
Chris@39 6368 if test "x$ac_ct_RANLIB" = x; then
Chris@39 6369 RANLIB=":"
Chris@39 6370 else
Chris@39 6371 case $cross_compiling:$ac_tool_warned in
Chris@39 6372 yes:)
Chris@39 6373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 6374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 6375 ac_tool_warned=yes ;;
Chris@39 6376 esac
Chris@39 6377 RANLIB=$ac_ct_RANLIB
Chris@39 6378 fi
Chris@39 6379 else
Chris@39 6380 RANLIB="$ac_cv_prog_RANLIB"
Chris@39 6381 fi
Chris@39 6382
Chris@39 6383 test -z "$RANLIB" && RANLIB=:
Chris@39 6384
Chris@39 6385
Chris@39 6386
Chris@39 6387
Chris@39 6388
Chris@39 6389
Chris@39 6390 # Determine commands to create old-style static archives.
Chris@39 6391 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
Chris@39 6392 old_postinstall_cmds='chmod 644 $oldlib'
Chris@39 6393 old_postuninstall_cmds=
Chris@39 6394
Chris@39 6395 if test -n "$RANLIB"; then
Chris@39 6396 case $host_os in
Chris@39 6397 openbsd*)
Chris@39 6398 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
Chris@39 6399 ;;
Chris@39 6400 *)
Chris@39 6401 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
Chris@39 6402 ;;
Chris@39 6403 esac
Chris@39 6404 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
Chris@39 6405 fi
Chris@39 6406
Chris@39 6407 case $host_os in
Chris@39 6408 darwin*)
Chris@39 6409 lock_old_archive_extraction=yes ;;
Chris@39 6410 *)
Chris@39 6411 lock_old_archive_extraction=no ;;
Chris@39 6412 esac
Chris@39 6413
Chris@39 6414
Chris@39 6415
Chris@39 6416
Chris@39 6417
Chris@39 6418
Chris@39 6419
Chris@39 6420
Chris@39 6421
Chris@39 6422
Chris@39 6423
Chris@39 6424
Chris@39 6425
Chris@39 6426
Chris@39 6427
Chris@39 6428
Chris@39 6429
Chris@39 6430
Chris@39 6431
Chris@39 6432
Chris@39 6433
Chris@39 6434
Chris@39 6435
Chris@39 6436
Chris@39 6437
Chris@39 6438
Chris@39 6439
Chris@39 6440
Chris@39 6441
Chris@39 6442
Chris@39 6443
Chris@39 6444
Chris@39 6445
Chris@39 6446
Chris@39 6447
Chris@39 6448
Chris@39 6449
Chris@39 6450
Chris@39 6451
Chris@39 6452 # If no C compiler was specified, use CC.
Chris@39 6453 LTCC=${LTCC-"$CC"}
Chris@39 6454
Chris@39 6455 # If no C compiler flags were specified, use CFLAGS.
Chris@39 6456 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Chris@39 6457
Chris@39 6458 # Allow CC to be a program name with arguments.
Chris@39 6459 compiler=$CC
Chris@39 6460
Chris@39 6461
Chris@39 6462 # Check for command to grab the raw symbol name followed by C symbol from nm.
Chris@39 6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
Chris@39 6464 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Chris@39 6465 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Chris@39 6466 $as_echo_n "(cached) " >&6
Chris@39 6467 else
Chris@39 6468
Chris@39 6469 # These are sane defaults that work on at least a few old systems.
Chris@39 6470 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
Chris@39 6471
Chris@39 6472 # Character class describing NM global symbol codes.
Chris@39 6473 symcode='[BCDEGRST]'
Chris@39 6474
Chris@39 6475 # Regexp to match symbols that can be accessed directly from C.
Chris@39 6476 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
Chris@39 6477
Chris@39 6478 # Define system-specific variables.
Chris@39 6479 case $host_os in
Chris@39 6480 aix*)
Chris@39 6481 symcode='[BCDT]'
Chris@39 6482 ;;
Chris@39 6483 cygwin* | mingw* | pw32* | cegcc*)
Chris@39 6484 symcode='[ABCDGISTW]'
Chris@39 6485 ;;
Chris@39 6486 hpux*)
Chris@39 6487 if test "$host_cpu" = ia64; then
Chris@39 6488 symcode='[ABCDEGRST]'
Chris@39 6489 fi
Chris@39 6490 ;;
Chris@39 6491 irix* | nonstopux*)
Chris@39 6492 symcode='[BCDEGRST]'
Chris@39 6493 ;;
Chris@39 6494 osf*)
Chris@39 6495 symcode='[BCDEGQRST]'
Chris@39 6496 ;;
Chris@39 6497 solaris*)
Chris@39 6498 symcode='[BDRT]'
Chris@39 6499 ;;
Chris@39 6500 sco3.2v5*)
Chris@39 6501 symcode='[DT]'
Chris@39 6502 ;;
Chris@39 6503 sysv4.2uw2*)
Chris@39 6504 symcode='[DT]'
Chris@39 6505 ;;
Chris@39 6506 sysv5* | sco5v6* | unixware* | OpenUNIX*)
Chris@39 6507 symcode='[ABDT]'
Chris@39 6508 ;;
Chris@39 6509 sysv4)
Chris@39 6510 symcode='[DFNSTU]'
Chris@39 6511 ;;
Chris@39 6512 esac
Chris@39 6513
Chris@39 6514 # If we're using GNU nm, then use its standard symbol codes.
Chris@39 6515 case `$NM -V 2>&1` in
Chris@39 6516 *GNU* | *'with BFD'*)
Chris@39 6517 symcode='[ABCDGIRSTW]' ;;
Chris@39 6518 esac
Chris@39 6519
Chris@39 6520 # Transform an extracted symbol line into a proper C declaration.
Chris@39 6521 # Some systems (esp. on ia64) link data and code symbols differently,
Chris@39 6522 # so use this general approach.
Chris@39 6523 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
Chris@39 6524
Chris@39 6525 # Transform an extracted symbol line into symbol name and symbol address
Chris@39 6526 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
Chris@39 6527 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'"
Chris@39 6528
Chris@39 6529 # Handle CRLF in mingw tool chain
Chris@39 6530 opt_cr=
Chris@39 6531 case $build_os in
Chris@39 6532 mingw*)
Chris@39 6533 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
Chris@39 6534 ;;
Chris@39 6535 esac
Chris@39 6536
Chris@39 6537 # Try without a prefix underscore, then with it.
Chris@39 6538 for ac_symprfx in "" "_"; do
Chris@39 6539
Chris@39 6540 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
Chris@39 6541 symxfrm="\\1 $ac_symprfx\\2 \\2"
Chris@39 6542
Chris@39 6543 # Write the raw and C identifiers.
Chris@39 6544 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Chris@39 6545 # Fake it for dumpbin and say T for any non-static function
Chris@39 6546 # and D for any global variable.
Chris@39 6547 # Also find C++ and __fastcall symbols from MSVC++,
Chris@39 6548 # which start with @ or ?.
Chris@39 6549 lt_cv_sys_global_symbol_pipe="$AWK '"\
Chris@39 6550 " {last_section=section; section=\$ 3};"\
Chris@39 6551 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
Chris@39 6552 " \$ 0!~/External *\|/{next};"\
Chris@39 6553 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
Chris@39 6554 " {if(hide[section]) next};"\
Chris@39 6555 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
Chris@39 6556 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
Chris@39 6557 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
Chris@39 6558 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
Chris@39 6559 " ' prfx=^$ac_symprfx"
Chris@39 6560 else
Chris@39 6561 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
Chris@39 6562 fi
Chris@39 6563 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
Chris@39 6564
Chris@39 6565 # Check to see that the pipe works correctly.
Chris@39 6566 pipe_works=no
Chris@39 6567
Chris@39 6568 rm -f conftest*
Chris@39 6569 cat > conftest.$ac_ext <<_LT_EOF
Chris@39 6570 #ifdef __cplusplus
Chris@39 6571 extern "C" {
Chris@39 6572 #endif
Chris@39 6573 char nm_test_var;
Chris@39 6574 void nm_test_func(void);
Chris@39 6575 void nm_test_func(void){}
Chris@39 6576 #ifdef __cplusplus
Chris@39 6577 }
Chris@39 6578 #endif
Chris@39 6579 int main(){nm_test_var='a';nm_test_func();return(0);}
Chris@39 6580 _LT_EOF
Chris@39 6581
Chris@39 6582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@39 6583 (eval $ac_compile) 2>&5
Chris@39 6584 ac_status=$?
Chris@39 6585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 6586 test $ac_status = 0; }; then
Chris@39 6587 # Now try to grab the symbols.
Chris@39 6588 nlist=conftest.nm
Chris@39 6589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
Chris@39 6590 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
Chris@39 6591 ac_status=$?
Chris@39 6592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 6593 test $ac_status = 0; } && test -s "$nlist"; then
Chris@39 6594 # Try sorting and uniquifying the output.
Chris@39 6595 if sort "$nlist" | uniq > "$nlist"T; then
Chris@39 6596 mv -f "$nlist"T "$nlist"
Chris@39 6597 else
Chris@39 6598 rm -f "$nlist"T
Chris@39 6599 fi
Chris@39 6600
Chris@39 6601 # Make sure that we snagged all the symbols we need.
Chris@39 6602 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
Chris@39 6603 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
Chris@39 6604 cat <<_LT_EOF > conftest.$ac_ext
Chris@39 6605 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
Chris@39 6606 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
Chris@39 6607 /* DATA imports from DLLs on WIN32 con't be const, because runtime
Chris@39 6608 relocations are performed -- see ld's documentation on pseudo-relocs. */
Chris@39 6609 # define LT_DLSYM_CONST
Chris@39 6610 #elif defined(__osf__)
Chris@39 6611 /* This system does not cope well with relocations in const data. */
Chris@39 6612 # define LT_DLSYM_CONST
Chris@39 6613 #else
Chris@39 6614 # define LT_DLSYM_CONST const
Chris@39 6615 #endif
Chris@39 6616
Chris@39 6617 #ifdef __cplusplus
Chris@39 6618 extern "C" {
Chris@39 6619 #endif
Chris@39 6620
Chris@39 6621 _LT_EOF
Chris@39 6622 # Now generate the symbol file.
Chris@39 6623 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
Chris@39 6624
Chris@39 6625 cat <<_LT_EOF >> conftest.$ac_ext
Chris@39 6626
Chris@39 6627 /* The mapping between symbol names and symbols. */
Chris@39 6628 LT_DLSYM_CONST struct {
Chris@39 6629 const char *name;
Chris@39 6630 void *address;
Chris@39 6631 }
Chris@39 6632 lt__PROGRAM__LTX_preloaded_symbols[] =
Chris@39 6633 {
Chris@39 6634 { "@PROGRAM@", (void *) 0 },
Chris@39 6635 _LT_EOF
Chris@39 6636 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
Chris@39 6637 cat <<\_LT_EOF >> conftest.$ac_ext
Chris@39 6638 {0, (void *) 0}
Chris@39 6639 };
Chris@39 6640
Chris@39 6641 /* This works around a problem in FreeBSD linker */
Chris@39 6642 #ifdef FREEBSD_WORKAROUND
Chris@39 6643 static const void *lt_preloaded_setup() {
Chris@39 6644 return lt__PROGRAM__LTX_preloaded_symbols;
Chris@39 6645 }
Chris@39 6646 #endif
Chris@39 6647
Chris@39 6648 #ifdef __cplusplus
Chris@39 6649 }
Chris@39 6650 #endif
Chris@39 6651 _LT_EOF
Chris@39 6652 # Now try linking the two files.
Chris@39 6653 mv conftest.$ac_objext conftstm.$ac_objext
Chris@39 6654 lt_globsym_save_LIBS=$LIBS
Chris@39 6655 lt_globsym_save_CFLAGS=$CFLAGS
Chris@39 6656 LIBS="conftstm.$ac_objext"
Chris@39 6657 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Chris@39 6658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Chris@39 6659 (eval $ac_link) 2>&5
Chris@39 6660 ac_status=$?
Chris@39 6661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 6662 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
Chris@39 6663 pipe_works=yes
Chris@39 6664 fi
Chris@39 6665 LIBS=$lt_globsym_save_LIBS
Chris@39 6666 CFLAGS=$lt_globsym_save_CFLAGS
Chris@39 6667 else
Chris@39 6668 echo "cannot find nm_test_func in $nlist" >&5
Chris@39 6669 fi
Chris@39 6670 else
Chris@39 6671 echo "cannot find nm_test_var in $nlist" >&5
Chris@39 6672 fi
Chris@39 6673 else
Chris@39 6674 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
Chris@39 6675 fi
Chris@39 6676 else
Chris@39 6677 echo "$progname: failed program was:" >&5
Chris@39 6678 cat conftest.$ac_ext >&5
Chris@39 6679 fi
Chris@39 6680 rm -rf conftest* conftst*
Chris@39 6681
Chris@39 6682 # Do not use the global_symbol_pipe unless it works.
Chris@39 6683 if test "$pipe_works" = yes; then
Chris@39 6684 break
Chris@39 6685 else
Chris@39 6686 lt_cv_sys_global_symbol_pipe=
Chris@39 6687 fi
Chris@39 6688 done
Chris@39 6689
Chris@39 6690 fi
Chris@39 6691
Chris@39 6692 if test -z "$lt_cv_sys_global_symbol_pipe"; then
Chris@39 6693 lt_cv_sys_global_symbol_to_cdecl=
Chris@39 6694 fi
Chris@39 6695 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Chris@39 6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
Chris@39 6697 $as_echo "failed" >&6; }
Chris@39 6698 else
Chris@39 6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
Chris@39 6700 $as_echo "ok" >&6; }
Chris@39 6701 fi
Chris@39 6702
Chris@39 6703 # Response file support.
Chris@39 6704 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Chris@39 6705 nm_file_list_spec='@'
Chris@39 6706 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
Chris@39 6707 nm_file_list_spec='@'
Chris@39 6708 fi
Chris@39 6709
Chris@39 6710
Chris@39 6711
Chris@39 6712
Chris@39 6713
Chris@39 6714
Chris@39 6715
Chris@39 6716
Chris@39 6717
Chris@39 6718
Chris@39 6719
Chris@39 6720
Chris@39 6721
Chris@39 6722
Chris@39 6723
Chris@39 6724
Chris@39 6725
Chris@39 6726
Chris@39 6727
Chris@39 6728
Chris@39 6729
Chris@39 6730
Chris@39 6731
Chris@39 6732
Chris@39 6733
Chris@39 6734
Chris@39 6735
Chris@39 6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
Chris@39 6737 $as_echo_n "checking for sysroot... " >&6; }
Chris@39 6738
Chris@39 6739 # Check whether --with-sysroot was given.
Chris@39 6740 if test "${with_sysroot+set}" = set; then :
Chris@39 6741 withval=$with_sysroot;
Chris@39 6742 else
Chris@39 6743 with_sysroot=no
Chris@39 6744 fi
Chris@39 6745
Chris@39 6746
Chris@39 6747 lt_sysroot=
Chris@39 6748 case ${with_sysroot} in #(
Chris@39 6749 yes)
Chris@39 6750 if test "$GCC" = yes; then
Chris@39 6751 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
Chris@39 6752 fi
Chris@39 6753 ;; #(
Chris@39 6754 /*)
Chris@39 6755 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
Chris@39 6756 ;; #(
Chris@39 6757 no|'')
Chris@39 6758 ;; #(
Chris@39 6759 *)
Chris@39 6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
Chris@39 6761 $as_echo "${with_sysroot}" >&6; }
Chris@39 6762 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
Chris@39 6763 ;;
Chris@39 6764 esac
Chris@39 6765
Chris@39 6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
Chris@39 6767 $as_echo "${lt_sysroot:-no}" >&6; }
Chris@39 6768
Chris@39 6769
Chris@39 6770
Chris@39 6771
Chris@39 6772
Chris@39 6773 # Check whether --enable-libtool-lock was given.
Chris@39 6774 if test "${enable_libtool_lock+set}" = set; then :
Chris@39 6775 enableval=$enable_libtool_lock;
Chris@39 6776 fi
Chris@39 6777
Chris@39 6778 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Chris@39 6779
Chris@39 6780 # Some flags need to be propagated to the compiler or linker for good
Chris@39 6781 # libtool support.
Chris@39 6782 case $host in
Chris@39 6783 ia64-*-hpux*)
Chris@39 6784 # Find out which ABI we are using.
Chris@39 6785 echo 'int i;' > conftest.$ac_ext
Chris@39 6786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@39 6787 (eval $ac_compile) 2>&5
Chris@39 6788 ac_status=$?
Chris@39 6789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 6790 test $ac_status = 0; }; then
Chris@39 6791 case `/usr/bin/file conftest.$ac_objext` in
Chris@39 6792 *ELF-32*)
Chris@39 6793 HPUX_IA64_MODE="32"
Chris@39 6794 ;;
Chris@39 6795 *ELF-64*)
Chris@39 6796 HPUX_IA64_MODE="64"
Chris@39 6797 ;;
Chris@39 6798 esac
Chris@39 6799 fi
Chris@39 6800 rm -rf conftest*
Chris@39 6801 ;;
Chris@39 6802 *-*-irix6*)
Chris@39 6803 # Find out which ABI we are using.
Chris@39 6804 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
Chris@39 6805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@39 6806 (eval $ac_compile) 2>&5
Chris@39 6807 ac_status=$?
Chris@39 6808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 6809 test $ac_status = 0; }; then
Chris@39 6810 if test "$lt_cv_prog_gnu_ld" = yes; then
Chris@39 6811 case `/usr/bin/file conftest.$ac_objext` in
Chris@39 6812 *32-bit*)
Chris@39 6813 LD="${LD-ld} -melf32bsmip"
Chris@39 6814 ;;
Chris@39 6815 *N32*)
Chris@39 6816 LD="${LD-ld} -melf32bmipn32"
Chris@39 6817 ;;
Chris@39 6818 *64-bit*)
Chris@39 6819 LD="${LD-ld} -melf64bmip"
Chris@39 6820 ;;
Chris@39 6821 esac
Chris@39 6822 else
Chris@39 6823 case `/usr/bin/file conftest.$ac_objext` in
Chris@39 6824 *32-bit*)
Chris@39 6825 LD="${LD-ld} -32"
Chris@39 6826 ;;
Chris@39 6827 *N32*)
Chris@39 6828 LD="${LD-ld} -n32"
Chris@39 6829 ;;
Chris@39 6830 *64-bit*)
Chris@39 6831 LD="${LD-ld} -64"
Chris@39 6832 ;;
Chris@39 6833 esac
Chris@39 6834 fi
Chris@39 6835 fi
Chris@39 6836 rm -rf conftest*
Chris@39 6837 ;;
Chris@39 6838
Chris@39 6839 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
Chris@39 6840 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Chris@39 6841 # Find out which ABI we are using.
Chris@39 6842 echo 'int i;' > conftest.$ac_ext
Chris@39 6843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@39 6844 (eval $ac_compile) 2>&5
Chris@39 6845 ac_status=$?
Chris@39 6846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 6847 test $ac_status = 0; }; then
Chris@39 6848 case `/usr/bin/file conftest.o` in
Chris@39 6849 *32-bit*)
Chris@39 6850 case $host in
Chris@39 6851 x86_64-*kfreebsd*-gnu)
Chris@39 6852 LD="${LD-ld} -m elf_i386_fbsd"
Chris@39 6853 ;;
Chris@39 6854 x86_64-*linux*)
Chris@39 6855 LD="${LD-ld} -m elf_i386"
Chris@39 6856 ;;
Chris@39 6857 ppc64-*linux*|powerpc64-*linux*)
Chris@39 6858 LD="${LD-ld} -m elf32ppclinux"
Chris@39 6859 ;;
Chris@39 6860 s390x-*linux*)
Chris@39 6861 LD="${LD-ld} -m elf_s390"
Chris@39 6862 ;;
Chris@39 6863 sparc64-*linux*)
Chris@39 6864 LD="${LD-ld} -m elf32_sparc"
Chris@39 6865 ;;
Chris@39 6866 esac
Chris@39 6867 ;;
Chris@39 6868 *64-bit*)
Chris@39 6869 case $host in
Chris@39 6870 x86_64-*kfreebsd*-gnu)
Chris@39 6871 LD="${LD-ld} -m elf_x86_64_fbsd"
Chris@39 6872 ;;
Chris@39 6873 x86_64-*linux*)
Chris@39 6874 LD="${LD-ld} -m elf_x86_64"
Chris@39 6875 ;;
Chris@39 6876 ppc*-*linux*|powerpc*-*linux*)
Chris@39 6877 LD="${LD-ld} -m elf64ppc"
Chris@39 6878 ;;
Chris@39 6879 s390*-*linux*|s390*-*tpf*)
Chris@39 6880 LD="${LD-ld} -m elf64_s390"
Chris@39 6881 ;;
Chris@39 6882 sparc*-*linux*)
Chris@39 6883 LD="${LD-ld} -m elf64_sparc"
Chris@39 6884 ;;
Chris@39 6885 esac
Chris@39 6886 ;;
Chris@39 6887 esac
Chris@39 6888 fi
Chris@39 6889 rm -rf conftest*
Chris@39 6890 ;;
Chris@39 6891
Chris@39 6892 *-*-sco3.2v5*)
Chris@39 6893 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
Chris@39 6894 SAVE_CFLAGS="$CFLAGS"
Chris@39 6895 CFLAGS="$CFLAGS -belf"
Chris@39 6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
Chris@39 6897 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Chris@39 6898 if ${lt_cv_cc_needs_belf+:} false; then :
Chris@39 6899 $as_echo_n "(cached) " >&6
Chris@39 6900 else
Chris@39 6901 ac_ext=c
Chris@39 6902 ac_cpp='$CPP $CPPFLAGS'
Chris@39 6903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@39 6904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@39 6905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@39 6906
Chris@39 6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 6908 /* end confdefs.h. */
Chris@39 6909
Chris@39 6910 int
Chris@39 6911 main ()
Chris@39 6912 {
Chris@39 6913
Chris@39 6914 ;
Chris@39 6915 return 0;
Chris@39 6916 }
Chris@39 6917 _ACEOF
Chris@39 6918 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 6919 lt_cv_cc_needs_belf=yes
Chris@39 6920 else
Chris@39 6921 lt_cv_cc_needs_belf=no
Chris@39 6922 fi
Chris@39 6923 rm -f core conftest.err conftest.$ac_objext \
Chris@39 6924 conftest$ac_exeext conftest.$ac_ext
Chris@39 6925 ac_ext=c
Chris@39 6926 ac_cpp='$CPP $CPPFLAGS'
Chris@39 6927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@39 6928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@39 6929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@39 6930
Chris@39 6931 fi
Chris@39 6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
Chris@39 6933 $as_echo "$lt_cv_cc_needs_belf" >&6; }
Chris@39 6934 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
Chris@39 6935 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
Chris@39 6936 CFLAGS="$SAVE_CFLAGS"
Chris@39 6937 fi
Chris@39 6938 ;;
Chris@39 6939 sparc*-*solaris*)
Chris@39 6940 # Find out which ABI we are using.
Chris@39 6941 echo 'int i;' > conftest.$ac_ext
Chris@39 6942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@39 6943 (eval $ac_compile) 2>&5
Chris@39 6944 ac_status=$?
Chris@39 6945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 6946 test $ac_status = 0; }; then
Chris@39 6947 case `/usr/bin/file conftest.o` in
Chris@39 6948 *64-bit*)
Chris@39 6949 case $lt_cv_prog_gnu_ld in
Chris@39 6950 yes*) LD="${LD-ld} -m elf64_sparc" ;;
Chris@39 6951 *)
Chris@39 6952 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
Chris@39 6953 LD="${LD-ld} -64"
Chris@39 6954 fi
Chris@39 6955 ;;
Chris@39 6956 esac
Chris@39 6957 ;;
Chris@39 6958 esac
Chris@39 6959 fi
Chris@39 6960 rm -rf conftest*
Chris@39 6961 ;;
Chris@39 6962 esac
Chris@39 6963
Chris@39 6964 need_locks="$enable_libtool_lock"
Chris@39 6965
Chris@39 6966 if test -n "$ac_tool_prefix"; then
Chris@39 6967 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
Chris@39 6968 set dummy ${ac_tool_prefix}mt; ac_word=$2
Chris@39 6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 6970 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 6971 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
Chris@39 6972 $as_echo_n "(cached) " >&6
Chris@39 6973 else
Chris@39 6974 if test -n "$MANIFEST_TOOL"; then
Chris@39 6975 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
Chris@39 6976 else
Chris@39 6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 6978 for as_dir in $PATH
Chris@39 6979 do
Chris@39 6980 IFS=$as_save_IFS
Chris@39 6981 test -z "$as_dir" && as_dir=.
Chris@39 6982 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 6983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 6984 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
Chris@39 6985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 6986 break 2
Chris@39 6987 fi
Chris@39 6988 done
Chris@39 6989 done
Chris@39 6990 IFS=$as_save_IFS
Chris@39 6991
Chris@39 6992 fi
Chris@39 6993 fi
Chris@39 6994 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
Chris@39 6995 if test -n "$MANIFEST_TOOL"; then
Chris@39 6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
Chris@39 6997 $as_echo "$MANIFEST_TOOL" >&6; }
Chris@39 6998 else
Chris@39 6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 7000 $as_echo "no" >&6; }
Chris@39 7001 fi
Chris@39 7002
Chris@39 7003
Chris@39 7004 fi
Chris@39 7005 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
Chris@39 7006 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
Chris@39 7007 # Extract the first word of "mt", so it can be a program name with args.
Chris@39 7008 set dummy mt; ac_word=$2
Chris@39 7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 7010 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 7011 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
Chris@39 7012 $as_echo_n "(cached) " >&6
Chris@39 7013 else
Chris@39 7014 if test -n "$ac_ct_MANIFEST_TOOL"; then
Chris@39 7015 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
Chris@39 7016 else
Chris@39 7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 7018 for as_dir in $PATH
Chris@39 7019 do
Chris@39 7020 IFS=$as_save_IFS
Chris@39 7021 test -z "$as_dir" && as_dir=.
Chris@39 7022 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 7023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 7024 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
Chris@39 7025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 7026 break 2
Chris@39 7027 fi
Chris@39 7028 done
Chris@39 7029 done
Chris@39 7030 IFS=$as_save_IFS
Chris@39 7031
Chris@39 7032 fi
Chris@39 7033 fi
Chris@39 7034 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
Chris@39 7035 if test -n "$ac_ct_MANIFEST_TOOL"; then
Chris@39 7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
Chris@39 7037 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
Chris@39 7038 else
Chris@39 7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 7040 $as_echo "no" >&6; }
Chris@39 7041 fi
Chris@39 7042
Chris@39 7043 if test "x$ac_ct_MANIFEST_TOOL" = x; then
Chris@39 7044 MANIFEST_TOOL=":"
Chris@39 7045 else
Chris@39 7046 case $cross_compiling:$ac_tool_warned in
Chris@39 7047 yes:)
Chris@39 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 7049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 7050 ac_tool_warned=yes ;;
Chris@39 7051 esac
Chris@39 7052 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
Chris@39 7053 fi
Chris@39 7054 else
Chris@39 7055 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
Chris@39 7056 fi
Chris@39 7057
Chris@39 7058 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
Chris@39 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
Chris@39 7060 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
Chris@39 7061 if ${lt_cv_path_mainfest_tool+:} false; then :
Chris@39 7062 $as_echo_n "(cached) " >&6
Chris@39 7063 else
Chris@39 7064 lt_cv_path_mainfest_tool=no
Chris@39 7065 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
Chris@39 7066 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
Chris@39 7067 cat conftest.err >&5
Chris@39 7068 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
Chris@39 7069 lt_cv_path_mainfest_tool=yes
Chris@39 7070 fi
Chris@39 7071 rm -f conftest*
Chris@39 7072 fi
Chris@39 7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
Chris@39 7074 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
Chris@39 7075 if test "x$lt_cv_path_mainfest_tool" != xyes; then
Chris@39 7076 MANIFEST_TOOL=:
Chris@39 7077 fi
Chris@39 7078
Chris@39 7079
Chris@39 7080
Chris@39 7081
Chris@39 7082
Chris@39 7083
Chris@39 7084 case $host_os in
Chris@39 7085 rhapsody* | darwin*)
Chris@39 7086 if test -n "$ac_tool_prefix"; then
Chris@39 7087 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
Chris@39 7088 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Chris@39 7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 7090 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 7091 if ${ac_cv_prog_DSYMUTIL+:} false; then :
Chris@39 7092 $as_echo_n "(cached) " >&6
Chris@39 7093 else
Chris@39 7094 if test -n "$DSYMUTIL"; then
Chris@39 7095 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
Chris@39 7096 else
Chris@39 7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 7098 for as_dir in $PATH
Chris@39 7099 do
Chris@39 7100 IFS=$as_save_IFS
Chris@39 7101 test -z "$as_dir" && as_dir=.
Chris@39 7102 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 7103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 7104 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Chris@39 7105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 7106 break 2
Chris@39 7107 fi
Chris@39 7108 done
Chris@39 7109 done
Chris@39 7110 IFS=$as_save_IFS
Chris@39 7111
Chris@39 7112 fi
Chris@39 7113 fi
Chris@39 7114 DSYMUTIL=$ac_cv_prog_DSYMUTIL
Chris@39 7115 if test -n "$DSYMUTIL"; then
Chris@39 7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
Chris@39 7117 $as_echo "$DSYMUTIL" >&6; }
Chris@39 7118 else
Chris@39 7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 7120 $as_echo "no" >&6; }
Chris@39 7121 fi
Chris@39 7122
Chris@39 7123
Chris@39 7124 fi
Chris@39 7125 if test -z "$ac_cv_prog_DSYMUTIL"; then
Chris@39 7126 ac_ct_DSYMUTIL=$DSYMUTIL
Chris@39 7127 # Extract the first word of "dsymutil", so it can be a program name with args.
Chris@39 7128 set dummy dsymutil; ac_word=$2
Chris@39 7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 7130 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 7131 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Chris@39 7132 $as_echo_n "(cached) " >&6
Chris@39 7133 else
Chris@39 7134 if test -n "$ac_ct_DSYMUTIL"; then
Chris@39 7135 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
Chris@39 7136 else
Chris@39 7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 7138 for as_dir in $PATH
Chris@39 7139 do
Chris@39 7140 IFS=$as_save_IFS
Chris@39 7141 test -z "$as_dir" && as_dir=.
Chris@39 7142 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 7143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 7144 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Chris@39 7145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 7146 break 2
Chris@39 7147 fi
Chris@39 7148 done
Chris@39 7149 done
Chris@39 7150 IFS=$as_save_IFS
Chris@39 7151
Chris@39 7152 fi
Chris@39 7153 fi
Chris@39 7154 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
Chris@39 7155 if test -n "$ac_ct_DSYMUTIL"; then
Chris@39 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
Chris@39 7157 $as_echo "$ac_ct_DSYMUTIL" >&6; }
Chris@39 7158 else
Chris@39 7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 7160 $as_echo "no" >&6; }
Chris@39 7161 fi
Chris@39 7162
Chris@39 7163 if test "x$ac_ct_DSYMUTIL" = x; then
Chris@39 7164 DSYMUTIL=":"
Chris@39 7165 else
Chris@39 7166 case $cross_compiling:$ac_tool_warned in
Chris@39 7167 yes:)
Chris@39 7168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 7169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 7170 ac_tool_warned=yes ;;
Chris@39 7171 esac
Chris@39 7172 DSYMUTIL=$ac_ct_DSYMUTIL
Chris@39 7173 fi
Chris@39 7174 else
Chris@39 7175 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
Chris@39 7176 fi
Chris@39 7177
Chris@39 7178 if test -n "$ac_tool_prefix"; then
Chris@39 7179 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
Chris@39 7180 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Chris@39 7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 7182 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 7183 if ${ac_cv_prog_NMEDIT+:} false; then :
Chris@39 7184 $as_echo_n "(cached) " >&6
Chris@39 7185 else
Chris@39 7186 if test -n "$NMEDIT"; then
Chris@39 7187 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
Chris@39 7188 else
Chris@39 7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 7190 for as_dir in $PATH
Chris@39 7191 do
Chris@39 7192 IFS=$as_save_IFS
Chris@39 7193 test -z "$as_dir" && as_dir=.
Chris@39 7194 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 7195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 7196 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Chris@39 7197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 7198 break 2
Chris@39 7199 fi
Chris@39 7200 done
Chris@39 7201 done
Chris@39 7202 IFS=$as_save_IFS
Chris@39 7203
Chris@39 7204 fi
Chris@39 7205 fi
Chris@39 7206 NMEDIT=$ac_cv_prog_NMEDIT
Chris@39 7207 if test -n "$NMEDIT"; then
Chris@39 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
Chris@39 7209 $as_echo "$NMEDIT" >&6; }
Chris@39 7210 else
Chris@39 7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 7212 $as_echo "no" >&6; }
Chris@39 7213 fi
Chris@39 7214
Chris@39 7215
Chris@39 7216 fi
Chris@39 7217 if test -z "$ac_cv_prog_NMEDIT"; then
Chris@39 7218 ac_ct_NMEDIT=$NMEDIT
Chris@39 7219 # Extract the first word of "nmedit", so it can be a program name with args.
Chris@39 7220 set dummy nmedit; ac_word=$2
Chris@39 7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 7222 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 7223 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Chris@39 7224 $as_echo_n "(cached) " >&6
Chris@39 7225 else
Chris@39 7226 if test -n "$ac_ct_NMEDIT"; then
Chris@39 7227 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
Chris@39 7228 else
Chris@39 7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 7230 for as_dir in $PATH
Chris@39 7231 do
Chris@39 7232 IFS=$as_save_IFS
Chris@39 7233 test -z "$as_dir" && as_dir=.
Chris@39 7234 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 7235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 7236 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Chris@39 7237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 7238 break 2
Chris@39 7239 fi
Chris@39 7240 done
Chris@39 7241 done
Chris@39 7242 IFS=$as_save_IFS
Chris@39 7243
Chris@39 7244 fi
Chris@39 7245 fi
Chris@39 7246 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
Chris@39 7247 if test -n "$ac_ct_NMEDIT"; then
Chris@39 7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
Chris@39 7249 $as_echo "$ac_ct_NMEDIT" >&6; }
Chris@39 7250 else
Chris@39 7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 7252 $as_echo "no" >&6; }
Chris@39 7253 fi
Chris@39 7254
Chris@39 7255 if test "x$ac_ct_NMEDIT" = x; then
Chris@39 7256 NMEDIT=":"
Chris@39 7257 else
Chris@39 7258 case $cross_compiling:$ac_tool_warned in
Chris@39 7259 yes:)
Chris@39 7260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 7261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 7262 ac_tool_warned=yes ;;
Chris@39 7263 esac
Chris@39 7264 NMEDIT=$ac_ct_NMEDIT
Chris@39 7265 fi
Chris@39 7266 else
Chris@39 7267 NMEDIT="$ac_cv_prog_NMEDIT"
Chris@39 7268 fi
Chris@39 7269
Chris@39 7270 if test -n "$ac_tool_prefix"; then
Chris@39 7271 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
Chris@39 7272 set dummy ${ac_tool_prefix}lipo; ac_word=$2
Chris@39 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 7274 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 7275 if ${ac_cv_prog_LIPO+:} false; then :
Chris@39 7276 $as_echo_n "(cached) " >&6
Chris@39 7277 else
Chris@39 7278 if test -n "$LIPO"; then
Chris@39 7279 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
Chris@39 7280 else
Chris@39 7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 7282 for as_dir in $PATH
Chris@39 7283 do
Chris@39 7284 IFS=$as_save_IFS
Chris@39 7285 test -z "$as_dir" && as_dir=.
Chris@39 7286 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 7287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 7288 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Chris@39 7289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 7290 break 2
Chris@39 7291 fi
Chris@39 7292 done
Chris@39 7293 done
Chris@39 7294 IFS=$as_save_IFS
Chris@39 7295
Chris@39 7296 fi
Chris@39 7297 fi
Chris@39 7298 LIPO=$ac_cv_prog_LIPO
Chris@39 7299 if test -n "$LIPO"; then
Chris@39 7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
Chris@39 7301 $as_echo "$LIPO" >&6; }
Chris@39 7302 else
Chris@39 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 7304 $as_echo "no" >&6; }
Chris@39 7305 fi
Chris@39 7306
Chris@39 7307
Chris@39 7308 fi
Chris@39 7309 if test -z "$ac_cv_prog_LIPO"; then
Chris@39 7310 ac_ct_LIPO=$LIPO
Chris@39 7311 # Extract the first word of "lipo", so it can be a program name with args.
Chris@39 7312 set dummy lipo; ac_word=$2
Chris@39 7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 7314 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 7315 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Chris@39 7316 $as_echo_n "(cached) " >&6
Chris@39 7317 else
Chris@39 7318 if test -n "$ac_ct_LIPO"; then
Chris@39 7319 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
Chris@39 7320 else
Chris@39 7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 7322 for as_dir in $PATH
Chris@39 7323 do
Chris@39 7324 IFS=$as_save_IFS
Chris@39 7325 test -z "$as_dir" && as_dir=.
Chris@39 7326 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 7327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 7328 ac_cv_prog_ac_ct_LIPO="lipo"
Chris@39 7329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 7330 break 2
Chris@39 7331 fi
Chris@39 7332 done
Chris@39 7333 done
Chris@39 7334 IFS=$as_save_IFS
Chris@39 7335
Chris@39 7336 fi
Chris@39 7337 fi
Chris@39 7338 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
Chris@39 7339 if test -n "$ac_ct_LIPO"; then
Chris@39 7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
Chris@39 7341 $as_echo "$ac_ct_LIPO" >&6; }
Chris@39 7342 else
Chris@39 7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 7344 $as_echo "no" >&6; }
Chris@39 7345 fi
Chris@39 7346
Chris@39 7347 if test "x$ac_ct_LIPO" = x; then
Chris@39 7348 LIPO=":"
Chris@39 7349 else
Chris@39 7350 case $cross_compiling:$ac_tool_warned in
Chris@39 7351 yes:)
Chris@39 7352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 7353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 7354 ac_tool_warned=yes ;;
Chris@39 7355 esac
Chris@39 7356 LIPO=$ac_ct_LIPO
Chris@39 7357 fi
Chris@39 7358 else
Chris@39 7359 LIPO="$ac_cv_prog_LIPO"
Chris@39 7360 fi
Chris@39 7361
Chris@39 7362 if test -n "$ac_tool_prefix"; then
Chris@39 7363 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
Chris@39 7364 set dummy ${ac_tool_prefix}otool; ac_word=$2
Chris@39 7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 7366 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 7367 if ${ac_cv_prog_OTOOL+:} false; then :
Chris@39 7368 $as_echo_n "(cached) " >&6
Chris@39 7369 else
Chris@39 7370 if test -n "$OTOOL"; then
Chris@39 7371 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
Chris@39 7372 else
Chris@39 7373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 7374 for as_dir in $PATH
Chris@39 7375 do
Chris@39 7376 IFS=$as_save_IFS
Chris@39 7377 test -z "$as_dir" && as_dir=.
Chris@39 7378 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 7379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 7380 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Chris@39 7381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 7382 break 2
Chris@39 7383 fi
Chris@39 7384 done
Chris@39 7385 done
Chris@39 7386 IFS=$as_save_IFS
Chris@39 7387
Chris@39 7388 fi
Chris@39 7389 fi
Chris@39 7390 OTOOL=$ac_cv_prog_OTOOL
Chris@39 7391 if test -n "$OTOOL"; then
Chris@39 7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
Chris@39 7393 $as_echo "$OTOOL" >&6; }
Chris@39 7394 else
Chris@39 7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 7396 $as_echo "no" >&6; }
Chris@39 7397 fi
Chris@39 7398
Chris@39 7399
Chris@39 7400 fi
Chris@39 7401 if test -z "$ac_cv_prog_OTOOL"; then
Chris@39 7402 ac_ct_OTOOL=$OTOOL
Chris@39 7403 # Extract the first word of "otool", so it can be a program name with args.
Chris@39 7404 set dummy otool; ac_word=$2
Chris@39 7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 7406 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 7407 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Chris@39 7408 $as_echo_n "(cached) " >&6
Chris@39 7409 else
Chris@39 7410 if test -n "$ac_ct_OTOOL"; then
Chris@39 7411 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
Chris@39 7412 else
Chris@39 7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 7414 for as_dir in $PATH
Chris@39 7415 do
Chris@39 7416 IFS=$as_save_IFS
Chris@39 7417 test -z "$as_dir" && as_dir=.
Chris@39 7418 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 7419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 7420 ac_cv_prog_ac_ct_OTOOL="otool"
Chris@39 7421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 7422 break 2
Chris@39 7423 fi
Chris@39 7424 done
Chris@39 7425 done
Chris@39 7426 IFS=$as_save_IFS
Chris@39 7427
Chris@39 7428 fi
Chris@39 7429 fi
Chris@39 7430 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
Chris@39 7431 if test -n "$ac_ct_OTOOL"; then
Chris@39 7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
Chris@39 7433 $as_echo "$ac_ct_OTOOL" >&6; }
Chris@39 7434 else
Chris@39 7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 7436 $as_echo "no" >&6; }
Chris@39 7437 fi
Chris@39 7438
Chris@39 7439 if test "x$ac_ct_OTOOL" = x; then
Chris@39 7440 OTOOL=":"
Chris@39 7441 else
Chris@39 7442 case $cross_compiling:$ac_tool_warned in
Chris@39 7443 yes:)
Chris@39 7444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 7445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 7446 ac_tool_warned=yes ;;
Chris@39 7447 esac
Chris@39 7448 OTOOL=$ac_ct_OTOOL
Chris@39 7449 fi
Chris@39 7450 else
Chris@39 7451 OTOOL="$ac_cv_prog_OTOOL"
Chris@39 7452 fi
Chris@39 7453
Chris@39 7454 if test -n "$ac_tool_prefix"; then
Chris@39 7455 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
Chris@39 7456 set dummy ${ac_tool_prefix}otool64; ac_word=$2
Chris@39 7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 7458 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 7459 if ${ac_cv_prog_OTOOL64+:} false; then :
Chris@39 7460 $as_echo_n "(cached) " >&6
Chris@39 7461 else
Chris@39 7462 if test -n "$OTOOL64"; then
Chris@39 7463 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
Chris@39 7464 else
Chris@39 7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 7466 for as_dir in $PATH
Chris@39 7467 do
Chris@39 7468 IFS=$as_save_IFS
Chris@39 7469 test -z "$as_dir" && as_dir=.
Chris@39 7470 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 7471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 7472 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Chris@39 7473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 7474 break 2
Chris@39 7475 fi
Chris@39 7476 done
Chris@39 7477 done
Chris@39 7478 IFS=$as_save_IFS
Chris@39 7479
Chris@39 7480 fi
Chris@39 7481 fi
Chris@39 7482 OTOOL64=$ac_cv_prog_OTOOL64
Chris@39 7483 if test -n "$OTOOL64"; then
Chris@39 7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
Chris@39 7485 $as_echo "$OTOOL64" >&6; }
Chris@39 7486 else
Chris@39 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 7488 $as_echo "no" >&6; }
Chris@39 7489 fi
Chris@39 7490
Chris@39 7491
Chris@39 7492 fi
Chris@39 7493 if test -z "$ac_cv_prog_OTOOL64"; then
Chris@39 7494 ac_ct_OTOOL64=$OTOOL64
Chris@39 7495 # Extract the first word of "otool64", so it can be a program name with args.
Chris@39 7496 set dummy otool64; ac_word=$2
Chris@39 7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 7498 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 7499 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Chris@39 7500 $as_echo_n "(cached) " >&6
Chris@39 7501 else
Chris@39 7502 if test -n "$ac_ct_OTOOL64"; then
Chris@39 7503 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
Chris@39 7504 else
Chris@39 7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 7506 for as_dir in $PATH
Chris@39 7507 do
Chris@39 7508 IFS=$as_save_IFS
Chris@39 7509 test -z "$as_dir" && as_dir=.
Chris@39 7510 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 7511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@39 7512 ac_cv_prog_ac_ct_OTOOL64="otool64"
Chris@39 7513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 7514 break 2
Chris@39 7515 fi
Chris@39 7516 done
Chris@39 7517 done
Chris@39 7518 IFS=$as_save_IFS
Chris@39 7519
Chris@39 7520 fi
Chris@39 7521 fi
Chris@39 7522 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
Chris@39 7523 if test -n "$ac_ct_OTOOL64"; then
Chris@39 7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
Chris@39 7525 $as_echo "$ac_ct_OTOOL64" >&6; }
Chris@39 7526 else
Chris@39 7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 7528 $as_echo "no" >&6; }
Chris@39 7529 fi
Chris@39 7530
Chris@39 7531 if test "x$ac_ct_OTOOL64" = x; then
Chris@39 7532 OTOOL64=":"
Chris@39 7533 else
Chris@39 7534 case $cross_compiling:$ac_tool_warned in
Chris@39 7535 yes:)
Chris@39 7536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 7537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 7538 ac_tool_warned=yes ;;
Chris@39 7539 esac
Chris@39 7540 OTOOL64=$ac_ct_OTOOL64
Chris@39 7541 fi
Chris@39 7542 else
Chris@39 7543 OTOOL64="$ac_cv_prog_OTOOL64"
Chris@39 7544 fi
Chris@39 7545
Chris@39 7546
Chris@39 7547
Chris@39 7548
Chris@39 7549
Chris@39 7550
Chris@39 7551
Chris@39 7552
Chris@39 7553
Chris@39 7554
Chris@39 7555
Chris@39 7556
Chris@39 7557
Chris@39 7558
Chris@39 7559
Chris@39 7560
Chris@39 7561
Chris@39 7562
Chris@39 7563
Chris@39 7564
Chris@39 7565
Chris@39 7566
Chris@39 7567
Chris@39 7568
Chris@39 7569
Chris@39 7570
Chris@39 7571
Chris@39 7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
Chris@39 7573 $as_echo_n "checking for -single_module linker flag... " >&6; }
Chris@39 7574 if ${lt_cv_apple_cc_single_mod+:} false; then :
Chris@39 7575 $as_echo_n "(cached) " >&6
Chris@39 7576 else
Chris@39 7577 lt_cv_apple_cc_single_mod=no
Chris@39 7578 if test -z "${LT_MULTI_MODULE}"; then
Chris@39 7579 # By default we will add the -single_module flag. You can override
Chris@39 7580 # by either setting the environment variable LT_MULTI_MODULE
Chris@39 7581 # non-empty at configure time, or by adding -multi_module to the
Chris@39 7582 # link flags.
Chris@39 7583 rm -rf libconftest.dylib*
Chris@39 7584 echo "int foo(void){return 1;}" > conftest.c
Chris@39 7585 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
Chris@39 7586 -dynamiclib -Wl,-single_module conftest.c" >&5
Chris@39 7587 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
Chris@39 7588 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
Chris@39 7589 _lt_result=$?
Chris@39 7590 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
Chris@39 7591 lt_cv_apple_cc_single_mod=yes
Chris@39 7592 else
Chris@39 7593 cat conftest.err >&5
Chris@39 7594 fi
Chris@39 7595 rm -rf libconftest.dylib*
Chris@39 7596 rm -f conftest.*
Chris@39 7597 fi
Chris@39 7598 fi
Chris@39 7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
Chris@39 7600 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Chris@39 7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
Chris@39 7602 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Chris@39 7603 if ${lt_cv_ld_exported_symbols_list+:} false; then :
Chris@39 7604 $as_echo_n "(cached) " >&6
Chris@39 7605 else
Chris@39 7606 lt_cv_ld_exported_symbols_list=no
Chris@39 7607 save_LDFLAGS=$LDFLAGS
Chris@39 7608 echo "_main" > conftest.sym
Chris@39 7609 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Chris@39 7610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 7611 /* end confdefs.h. */
Chris@39 7612
Chris@39 7613 int
Chris@39 7614 main ()
Chris@39 7615 {
Chris@39 7616
Chris@39 7617 ;
Chris@39 7618 return 0;
Chris@39 7619 }
Chris@39 7620 _ACEOF
Chris@39 7621 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 7622 lt_cv_ld_exported_symbols_list=yes
Chris@39 7623 else
Chris@39 7624 lt_cv_ld_exported_symbols_list=no
Chris@39 7625 fi
Chris@39 7626 rm -f core conftest.err conftest.$ac_objext \
Chris@39 7627 conftest$ac_exeext conftest.$ac_ext
Chris@39 7628 LDFLAGS="$save_LDFLAGS"
Chris@39 7629
Chris@39 7630 fi
Chris@39 7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
Chris@39 7632 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Chris@39 7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
Chris@39 7634 $as_echo_n "checking for -force_load linker flag... " >&6; }
Chris@39 7635 if ${lt_cv_ld_force_load+:} false; then :
Chris@39 7636 $as_echo_n "(cached) " >&6
Chris@39 7637 else
Chris@39 7638 lt_cv_ld_force_load=no
Chris@39 7639 cat > conftest.c << _LT_EOF
Chris@39 7640 int forced_loaded() { return 2;}
Chris@39 7641 _LT_EOF
Chris@39 7642 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
Chris@39 7643 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
Chris@39 7644 echo "$AR cru libconftest.a conftest.o" >&5
Chris@39 7645 $AR cru libconftest.a conftest.o 2>&5
Chris@39 7646 echo "$RANLIB libconftest.a" >&5
Chris@39 7647 $RANLIB libconftest.a 2>&5
Chris@39 7648 cat > conftest.c << _LT_EOF
Chris@39 7649 int main() { return 0;}
Chris@39 7650 _LT_EOF
Chris@39 7651 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
Chris@39 7652 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
Chris@39 7653 _lt_result=$?
Chris@39 7654 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
Chris@39 7655 lt_cv_ld_force_load=yes
Chris@39 7656 else
Chris@39 7657 cat conftest.err >&5
Chris@39 7658 fi
Chris@39 7659 rm -f conftest.err libconftest.a conftest conftest.c
Chris@39 7660 rm -rf conftest.dSYM
Chris@39 7661
Chris@39 7662 fi
Chris@39 7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
Chris@39 7664 $as_echo "$lt_cv_ld_force_load" >&6; }
Chris@39 7665 case $host_os in
Chris@39 7666 rhapsody* | darwin1.[012])
Chris@39 7667 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
Chris@39 7668 darwin1.*)
Chris@39 7669 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
Chris@39 7670 darwin*) # darwin 5.x on
Chris@39 7671 # if running on 10.5 or later, the deployment target defaults
Chris@39 7672 # to the OS version, if on x86, and 10.4, the deployment
Chris@39 7673 # target defaults to 10.4. Don't you love it?
Chris@39 7674 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
Chris@39 7675 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
Chris@39 7676 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
Chris@39 7677 10.[012]*)
Chris@39 7678 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
Chris@39 7679 10.*)
Chris@39 7680 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
Chris@39 7681 esac
Chris@39 7682 ;;
Chris@39 7683 esac
Chris@39 7684 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
Chris@39 7685 _lt_dar_single_mod='$single_module'
Chris@39 7686 fi
Chris@39 7687 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
Chris@39 7688 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
Chris@39 7689 else
Chris@39 7690 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
Chris@39 7691 fi
Chris@39 7692 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
Chris@39 7693 _lt_dsymutil='~$DSYMUTIL $lib || :'
Chris@39 7694 else
Chris@39 7695 _lt_dsymutil=
Chris@39 7696 fi
Chris@39 7697 ;;
Chris@39 7698 esac
Chris@39 7699
Chris@39 7700 ac_ext=c
Chris@39 7701 ac_cpp='$CPP $CPPFLAGS'
Chris@39 7702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@39 7703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@39 7704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@39 7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Chris@39 7706 $as_echo_n "checking how to run the C preprocessor... " >&6; }
Chris@39 7707 # On Suns, sometimes $CPP names a directory.
Chris@39 7708 if test -n "$CPP" && test -d "$CPP"; then
Chris@39 7709 CPP=
Chris@39 7710 fi
Chris@39 7711 if test -z "$CPP"; then
Chris@39 7712 if ${ac_cv_prog_CPP+:} false; then :
Chris@39 7713 $as_echo_n "(cached) " >&6
Chris@39 7714 else
Chris@39 7715 # Double quotes because CPP needs to be expanded
Chris@39 7716 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
Chris@39 7717 do
Chris@39 7718 ac_preproc_ok=false
Chris@39 7719 for ac_c_preproc_warn_flag in '' yes
Chris@39 7720 do
Chris@39 7721 # Use a header file that comes with gcc, so configuring glibc
Chris@39 7722 # with a fresh cross-compiler works.
Chris@39 7723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@39 7724 # <limits.h> exists even on freestanding compilers.
Chris@39 7725 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@39 7726 # not just through cpp. "Syntax error" is here to catch this case.
Chris@39 7727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 7728 /* end confdefs.h. */
Chris@39 7729 #ifdef __STDC__
Chris@39 7730 # include <limits.h>
Chris@39 7731 #else
Chris@39 7732 # include <assert.h>
Chris@39 7733 #endif
Chris@39 7734 Syntax error
Chris@39 7735 _ACEOF
Chris@39 7736 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@39 7737
Chris@39 7738 else
Chris@39 7739 # Broken: fails on valid input.
Chris@39 7740 continue
Chris@39 7741 fi
Chris@39 7742 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@39 7743
Chris@39 7744 # OK, works on sane cases. Now check whether nonexistent headers
Chris@39 7745 # can be detected and how.
Chris@39 7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 7747 /* end confdefs.h. */
Chris@39 7748 #include <ac_nonexistent.h>
Chris@39 7749 _ACEOF
Chris@39 7750 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@39 7751 # Broken: success on invalid input.
Chris@39 7752 continue
Chris@39 7753 else
Chris@39 7754 # Passes both tests.
Chris@39 7755 ac_preproc_ok=:
Chris@39 7756 break
Chris@39 7757 fi
Chris@39 7758 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@39 7759
Chris@39 7760 done
Chris@39 7761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@39 7762 rm -f conftest.i conftest.err conftest.$ac_ext
Chris@39 7763 if $ac_preproc_ok; then :
Chris@39 7764 break
Chris@39 7765 fi
Chris@39 7766
Chris@39 7767 done
Chris@39 7768 ac_cv_prog_CPP=$CPP
Chris@39 7769
Chris@39 7770 fi
Chris@39 7771 CPP=$ac_cv_prog_CPP
Chris@39 7772 else
Chris@39 7773 ac_cv_prog_CPP=$CPP
Chris@39 7774 fi
Chris@39 7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Chris@39 7776 $as_echo "$CPP" >&6; }
Chris@39 7777 ac_preproc_ok=false
Chris@39 7778 for ac_c_preproc_warn_flag in '' yes
Chris@39 7779 do
Chris@39 7780 # Use a header file that comes with gcc, so configuring glibc
Chris@39 7781 # with a fresh cross-compiler works.
Chris@39 7782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@39 7783 # <limits.h> exists even on freestanding compilers.
Chris@39 7784 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@39 7785 # not just through cpp. "Syntax error" is here to catch this case.
Chris@39 7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 7787 /* end confdefs.h. */
Chris@39 7788 #ifdef __STDC__
Chris@39 7789 # include <limits.h>
Chris@39 7790 #else
Chris@39 7791 # include <assert.h>
Chris@39 7792 #endif
Chris@39 7793 Syntax error
Chris@39 7794 _ACEOF
Chris@39 7795 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@39 7796
Chris@39 7797 else
Chris@39 7798 # Broken: fails on valid input.
Chris@39 7799 continue
Chris@39 7800 fi
Chris@39 7801 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@39 7802
Chris@39 7803 # OK, works on sane cases. Now check whether nonexistent headers
Chris@39 7804 # can be detected and how.
Chris@39 7805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 7806 /* end confdefs.h. */
Chris@39 7807 #include <ac_nonexistent.h>
Chris@39 7808 _ACEOF
Chris@39 7809 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@39 7810 # Broken: success on invalid input.
Chris@39 7811 continue
Chris@39 7812 else
Chris@39 7813 # Passes both tests.
Chris@39 7814 ac_preproc_ok=:
Chris@39 7815 break
Chris@39 7816 fi
Chris@39 7817 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@39 7818
Chris@39 7819 done
Chris@39 7820 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@39 7821 rm -f conftest.i conftest.err conftest.$ac_ext
Chris@39 7822 if $ac_preproc_ok; then :
Chris@39 7823
Chris@39 7824 else
Chris@39 7825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@39 7826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@39 7827 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
Chris@39 7828 See \`config.log' for more details" "$LINENO" 5; }
Chris@39 7829 fi
Chris@39 7830
Chris@39 7831 ac_ext=c
Chris@39 7832 ac_cpp='$CPP $CPPFLAGS'
Chris@39 7833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@39 7834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@39 7835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@39 7836
Chris@39 7837
Chris@39 7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Chris@39 7839 $as_echo_n "checking for ANSI C header files... " >&6; }
Chris@39 7840 if ${ac_cv_header_stdc+:} false; then :
Chris@39 7841 $as_echo_n "(cached) " >&6
Chris@39 7842 else
Chris@39 7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 7844 /* end confdefs.h. */
Chris@39 7845 #include <stdlib.h>
Chris@39 7846 #include <stdarg.h>
Chris@39 7847 #include <string.h>
Chris@39 7848 #include <float.h>
Chris@39 7849
Chris@39 7850 int
Chris@39 7851 main ()
Chris@39 7852 {
Chris@39 7853
Chris@39 7854 ;
Chris@39 7855 return 0;
Chris@39 7856 }
Chris@39 7857 _ACEOF
Chris@39 7858 if ac_fn_c_try_compile "$LINENO"; then :
Chris@39 7859 ac_cv_header_stdc=yes
Chris@39 7860 else
Chris@39 7861 ac_cv_header_stdc=no
Chris@39 7862 fi
Chris@39 7863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 7864
Chris@39 7865 if test $ac_cv_header_stdc = yes; then
Chris@39 7866 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Chris@39 7867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 7868 /* end confdefs.h. */
Chris@39 7869 #include <string.h>
Chris@39 7870
Chris@39 7871 _ACEOF
Chris@39 7872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@39 7873 $EGREP "memchr" >/dev/null 2>&1; then :
Chris@39 7874
Chris@39 7875 else
Chris@39 7876 ac_cv_header_stdc=no
Chris@39 7877 fi
Chris@39 7878 rm -f conftest*
Chris@39 7879
Chris@39 7880 fi
Chris@39 7881
Chris@39 7882 if test $ac_cv_header_stdc = yes; then
Chris@39 7883 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Chris@39 7884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 7885 /* end confdefs.h. */
Chris@39 7886 #include <stdlib.h>
Chris@39 7887
Chris@39 7888 _ACEOF
Chris@39 7889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@39 7890 $EGREP "free" >/dev/null 2>&1; then :
Chris@39 7891
Chris@39 7892 else
Chris@39 7893 ac_cv_header_stdc=no
Chris@39 7894 fi
Chris@39 7895 rm -f conftest*
Chris@39 7896
Chris@39 7897 fi
Chris@39 7898
Chris@39 7899 if test $ac_cv_header_stdc = yes; then
Chris@39 7900 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Chris@39 7901 if test "$cross_compiling" = yes; then :
Chris@39 7902 :
Chris@39 7903 else
Chris@39 7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 7905 /* end confdefs.h. */
Chris@39 7906 #include <ctype.h>
Chris@39 7907 #include <stdlib.h>
Chris@39 7908 #if ((' ' & 0x0FF) == 0x020)
Chris@39 7909 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
Chris@39 7910 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Chris@39 7911 #else
Chris@39 7912 # define ISLOWER(c) \
Chris@39 7913 (('a' <= (c) && (c) <= 'i') \
Chris@39 7914 || ('j' <= (c) && (c) <= 'r') \
Chris@39 7915 || ('s' <= (c) && (c) <= 'z'))
Chris@39 7916 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
Chris@39 7917 #endif
Chris@39 7918
Chris@39 7919 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Chris@39 7920 int
Chris@39 7921 main ()
Chris@39 7922 {
Chris@39 7923 int i;
Chris@39 7924 for (i = 0; i < 256; i++)
Chris@39 7925 if (XOR (islower (i), ISLOWER (i))
Chris@39 7926 || toupper (i) != TOUPPER (i))
Chris@39 7927 return 2;
Chris@39 7928 return 0;
Chris@39 7929 }
Chris@39 7930 _ACEOF
Chris@39 7931 if ac_fn_c_try_run "$LINENO"; then :
Chris@39 7932
Chris@39 7933 else
Chris@39 7934 ac_cv_header_stdc=no
Chris@39 7935 fi
Chris@39 7936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@39 7937 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@39 7938 fi
Chris@39 7939
Chris@39 7940 fi
Chris@39 7941 fi
Chris@39 7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Chris@39 7943 $as_echo "$ac_cv_header_stdc" >&6; }
Chris@39 7944 if test $ac_cv_header_stdc = yes; then
Chris@39 7945
Chris@39 7946 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
Chris@39 7947
Chris@39 7948 fi
Chris@39 7949
Chris@39 7950 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
Chris@39 7951 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Chris@39 7952 inttypes.h stdint.h unistd.h
Chris@39 7953 do :
Chris@39 7954 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Chris@39 7955 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
Chris@39 7956 "
Chris@39 7957 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@39 7958 cat >>confdefs.h <<_ACEOF
Chris@39 7959 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris@39 7960 _ACEOF
Chris@39 7961
Chris@39 7962 fi
Chris@39 7963
Chris@39 7964 done
Chris@39 7965
Chris@39 7966
Chris@39 7967 for ac_header in dlfcn.h
Chris@39 7968 do :
Chris@39 7969 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
Chris@39 7970 "
Chris@39 7971 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Chris@39 7972 cat >>confdefs.h <<_ACEOF
Chris@39 7973 #define HAVE_DLFCN_H 1
Chris@39 7974 _ACEOF
Chris@39 7975
Chris@39 7976 fi
Chris@39 7977
Chris@39 7978 done
Chris@39 7979
Chris@39 7980
Chris@39 7981
Chris@39 7982
Chris@39 7983 func_stripname_cnf ()
Chris@39 7984 {
Chris@39 7985 case ${2} in
Chris@39 7986 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
Chris@39 7987 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
Chris@39 7988 esac
Chris@39 7989 } # func_stripname_cnf
Chris@39 7990
Chris@39 7991
Chris@39 7992
Chris@39 7993
Chris@39 7994
Chris@39 7995 # Set options
Chris@39 7996
Chris@39 7997
Chris@39 7998
Chris@39 7999 enable_dlopen=no
Chris@39 8000
Chris@39 8001
Chris@39 8002
Chris@39 8003 # Check whether --enable-shared was given.
Chris@39 8004 if test "${enable_shared+set}" = set; then :
Chris@39 8005 enableval=$enable_shared; p=${PACKAGE-default}
Chris@39 8006 case $enableval in
Chris@39 8007 yes) enable_shared=yes ;;
Chris@39 8008 no) enable_shared=no ;;
Chris@39 8009 *)
Chris@39 8010 enable_shared=no
Chris@39 8011 # Look at the argument we got. We use all the common list separators.
Chris@39 8012 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
Chris@39 8013 for pkg in $enableval; do
Chris@39 8014 IFS="$lt_save_ifs"
Chris@39 8015 if test "X$pkg" = "X$p"; then
Chris@39 8016 enable_shared=yes
Chris@39 8017 fi
Chris@39 8018 done
Chris@39 8019 IFS="$lt_save_ifs"
Chris@39 8020 ;;
Chris@39 8021 esac
Chris@39 8022 else
Chris@39 8023 enable_shared=yes
Chris@39 8024 fi
Chris@39 8025
Chris@39 8026
Chris@39 8027
Chris@39 8028
Chris@39 8029
Chris@39 8030
Chris@39 8031
Chris@39 8032
Chris@39 8033
Chris@39 8034 # Check whether --enable-static was given.
Chris@39 8035 if test "${enable_static+set}" = set; then :
Chris@39 8036 enableval=$enable_static; p=${PACKAGE-default}
Chris@39 8037 case $enableval in
Chris@39 8038 yes) enable_static=yes ;;
Chris@39 8039 no) enable_static=no ;;
Chris@39 8040 *)
Chris@39 8041 enable_static=no
Chris@39 8042 # Look at the argument we got. We use all the common list separators.
Chris@39 8043 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
Chris@39 8044 for pkg in $enableval; do
Chris@39 8045 IFS="$lt_save_ifs"
Chris@39 8046 if test "X$pkg" = "X$p"; then
Chris@39 8047 enable_static=yes
Chris@39 8048 fi
Chris@39 8049 done
Chris@39 8050 IFS="$lt_save_ifs"
Chris@39 8051 ;;
Chris@39 8052 esac
Chris@39 8053 else
Chris@39 8054 enable_static=yes
Chris@39 8055 fi
Chris@39 8056
Chris@39 8057
Chris@39 8058
Chris@39 8059
Chris@39 8060
Chris@39 8061
Chris@39 8062
Chris@39 8063
Chris@39 8064
Chris@39 8065
Chris@39 8066 # Check whether --with-pic was given.
Chris@39 8067 if test "${with_pic+set}" = set; then :
Chris@39 8068 withval=$with_pic; pic_mode="$withval"
Chris@39 8069 else
Chris@39 8070 pic_mode=default
Chris@39 8071 fi
Chris@39 8072
Chris@39 8073
Chris@39 8074 test -z "$pic_mode" && pic_mode=default
Chris@39 8075
Chris@39 8076
Chris@39 8077
Chris@39 8078
Chris@39 8079
Chris@39 8080
Chris@39 8081
Chris@39 8082 # Check whether --enable-fast-install was given.
Chris@39 8083 if test "${enable_fast_install+set}" = set; then :
Chris@39 8084 enableval=$enable_fast_install; p=${PACKAGE-default}
Chris@39 8085 case $enableval in
Chris@39 8086 yes) enable_fast_install=yes ;;
Chris@39 8087 no) enable_fast_install=no ;;
Chris@39 8088 *)
Chris@39 8089 enable_fast_install=no
Chris@39 8090 # Look at the argument we got. We use all the common list separators.
Chris@39 8091 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
Chris@39 8092 for pkg in $enableval; do
Chris@39 8093 IFS="$lt_save_ifs"
Chris@39 8094 if test "X$pkg" = "X$p"; then
Chris@39 8095 enable_fast_install=yes
Chris@39 8096 fi
Chris@39 8097 done
Chris@39 8098 IFS="$lt_save_ifs"
Chris@39 8099 ;;
Chris@39 8100 esac
Chris@39 8101 else
Chris@39 8102 enable_fast_install=yes
Chris@39 8103 fi
Chris@39 8104
Chris@39 8105
Chris@39 8106
Chris@39 8107
Chris@39 8108
Chris@39 8109
Chris@39 8110
Chris@39 8111
Chris@39 8112
Chris@39 8113
Chris@39 8114
Chris@39 8115 # This can be used to rebuild libtool when needed
Chris@39 8116 LIBTOOL_DEPS="$ltmain"
Chris@39 8117
Chris@39 8118 # Always use our own libtool.
Chris@39 8119 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
Chris@39 8120
Chris@39 8121
Chris@39 8122
Chris@39 8123
Chris@39 8124
Chris@39 8125
Chris@39 8126
Chris@39 8127
Chris@39 8128
Chris@39 8129
Chris@39 8130
Chris@39 8131
Chris@39 8132
Chris@39 8133
Chris@39 8134
Chris@39 8135
Chris@39 8136
Chris@39 8137
Chris@39 8138
Chris@39 8139
Chris@39 8140
Chris@39 8141
Chris@39 8142
Chris@39 8143
Chris@39 8144
Chris@39 8145
Chris@39 8146 test -z "$LN_S" && LN_S="ln -s"
Chris@39 8147
Chris@39 8148
Chris@39 8149
Chris@39 8150
Chris@39 8151
Chris@39 8152
Chris@39 8153
Chris@39 8154
Chris@39 8155
Chris@39 8156
Chris@39 8157
Chris@39 8158
Chris@39 8159
Chris@39 8160
Chris@39 8161 if test -n "${ZSH_VERSION+set}" ; then
Chris@39 8162 setopt NO_GLOB_SUBST
Chris@39 8163 fi
Chris@39 8164
Chris@39 8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
Chris@39 8166 $as_echo_n "checking for objdir... " >&6; }
Chris@39 8167 if ${lt_cv_objdir+:} false; then :
Chris@39 8168 $as_echo_n "(cached) " >&6
Chris@39 8169 else
Chris@39 8170 rm -f .libs 2>/dev/null
Chris@39 8171 mkdir .libs 2>/dev/null
Chris@39 8172 if test -d .libs; then
Chris@39 8173 lt_cv_objdir=.libs
Chris@39 8174 else
Chris@39 8175 # MS-DOS does not allow filenames that begin with a dot.
Chris@39 8176 lt_cv_objdir=_libs
Chris@39 8177 fi
Chris@39 8178 rmdir .libs 2>/dev/null
Chris@39 8179 fi
Chris@39 8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
Chris@39 8181 $as_echo "$lt_cv_objdir" >&6; }
Chris@39 8182 objdir=$lt_cv_objdir
Chris@39 8183
Chris@39 8184
Chris@39 8185
Chris@39 8186
Chris@39 8187
Chris@39 8188 cat >>confdefs.h <<_ACEOF
Chris@39 8189 #define LT_OBJDIR "$lt_cv_objdir/"
Chris@39 8190 _ACEOF
Chris@39 8191
Chris@39 8192
Chris@39 8193
Chris@39 8194
Chris@39 8195 case $host_os in
Chris@39 8196 aix3*)
Chris@39 8197 # AIX sometimes has problems with the GCC collect2 program. For some
Chris@39 8198 # reason, if we set the COLLECT_NAMES environment variable, the problems
Chris@39 8199 # vanish in a puff of smoke.
Chris@39 8200 if test "X${COLLECT_NAMES+set}" != Xset; then
Chris@39 8201 COLLECT_NAMES=
Chris@39 8202 export COLLECT_NAMES
Chris@39 8203 fi
Chris@39 8204 ;;
Chris@39 8205 esac
Chris@39 8206
Chris@39 8207 # Global variables:
Chris@39 8208 ofile=libtool
Chris@39 8209 can_build_shared=yes
Chris@39 8210
Chris@39 8211 # All known linkers require a `.a' archive for static linking (except MSVC,
Chris@39 8212 # which needs '.lib').
Chris@39 8213 libext=a
Chris@39 8214
Chris@39 8215 with_gnu_ld="$lt_cv_prog_gnu_ld"
Chris@39 8216
Chris@39 8217 old_CC="$CC"
Chris@39 8218 old_CFLAGS="$CFLAGS"
Chris@39 8219
Chris@39 8220 # Set sane defaults for various variables
Chris@39 8221 test -z "$CC" && CC=cc
Chris@39 8222 test -z "$LTCC" && LTCC=$CC
Chris@39 8223 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
Chris@39 8224 test -z "$LD" && LD=ld
Chris@39 8225 test -z "$ac_objext" && ac_objext=o
Chris@39 8226
Chris@39 8227 for cc_temp in $compiler""; do
Chris@39 8228 case $cc_temp in
Chris@39 8229 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
Chris@39 8230 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
Chris@39 8231 \-*) ;;
Chris@39 8232 *) break;;
Chris@39 8233 esac
Chris@39 8234 done
Chris@39 8235 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Chris@39 8236
Chris@39 8237
Chris@39 8238 # Only perform the check for file, if the check method requires it
Chris@39 8239 test -z "$MAGIC_CMD" && MAGIC_CMD=file
Chris@39 8240 case $deplibs_check_method in
Chris@39 8241 file_magic*)
Chris@39 8242 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Chris@39 8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
Chris@39 8244 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Chris@39 8245 if ${lt_cv_path_MAGIC_CMD+:} false; then :
Chris@39 8246 $as_echo_n "(cached) " >&6
Chris@39 8247 else
Chris@39 8248 case $MAGIC_CMD in
Chris@39 8249 [\\/*] | ?:[\\/]*)
Chris@39 8250 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
Chris@39 8251 ;;
Chris@39 8252 *)
Chris@39 8253 lt_save_MAGIC_CMD="$MAGIC_CMD"
Chris@39 8254 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@39 8255 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
Chris@39 8256 for ac_dir in $ac_dummy; do
Chris@39 8257 IFS="$lt_save_ifs"
Chris@39 8258 test -z "$ac_dir" && ac_dir=.
Chris@39 8259 if test -f $ac_dir/${ac_tool_prefix}file; then
Chris@39 8260 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
Chris@39 8261 if test -n "$file_magic_test_file"; then
Chris@39 8262 case $deplibs_check_method in
Chris@39 8263 "file_magic "*)
Chris@39 8264 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Chris@39 8265 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Chris@39 8266 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
Chris@39 8267 $EGREP "$file_magic_regex" > /dev/null; then
Chris@39 8268 :
Chris@39 8269 else
Chris@39 8270 cat <<_LT_EOF 1>&2
Chris@39 8271
Chris@39 8272 *** Warning: the command libtool uses to detect shared libraries,
Chris@39 8273 *** $file_magic_cmd, produces output that libtool cannot recognize.
Chris@39 8274 *** The result is that libtool may fail to recognize shared libraries
Chris@39 8275 *** as such. This will affect the creation of libtool libraries that
Chris@39 8276 *** depend on shared libraries, but programs linked with such libtool
Chris@39 8277 *** libraries will work regardless of this problem. Nevertheless, you
Chris@39 8278 *** may want to report the problem to your system manager and/or to
Chris@39 8279 *** bug-libtool@gnu.org
Chris@39 8280
Chris@39 8281 _LT_EOF
Chris@39 8282 fi ;;
Chris@39 8283 esac
Chris@39 8284 fi
Chris@39 8285 break
Chris@39 8286 fi
Chris@39 8287 done
Chris@39 8288 IFS="$lt_save_ifs"
Chris@39 8289 MAGIC_CMD="$lt_save_MAGIC_CMD"
Chris@39 8290 ;;
Chris@39 8291 esac
Chris@39 8292 fi
Chris@39 8293
Chris@39 8294 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Chris@39 8295 if test -n "$MAGIC_CMD"; then
Chris@39 8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Chris@39 8297 $as_echo "$MAGIC_CMD" >&6; }
Chris@39 8298 else
Chris@39 8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 8300 $as_echo "no" >&6; }
Chris@39 8301 fi
Chris@39 8302
Chris@39 8303
Chris@39 8304
Chris@39 8305
Chris@39 8306
Chris@39 8307 if test -z "$lt_cv_path_MAGIC_CMD"; then
Chris@39 8308 if test -n "$ac_tool_prefix"; then
Chris@39 8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
Chris@39 8310 $as_echo_n "checking for file... " >&6; }
Chris@39 8311 if ${lt_cv_path_MAGIC_CMD+:} false; then :
Chris@39 8312 $as_echo_n "(cached) " >&6
Chris@39 8313 else
Chris@39 8314 case $MAGIC_CMD in
Chris@39 8315 [\\/*] | ?:[\\/]*)
Chris@39 8316 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
Chris@39 8317 ;;
Chris@39 8318 *)
Chris@39 8319 lt_save_MAGIC_CMD="$MAGIC_CMD"
Chris@39 8320 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@39 8321 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
Chris@39 8322 for ac_dir in $ac_dummy; do
Chris@39 8323 IFS="$lt_save_ifs"
Chris@39 8324 test -z "$ac_dir" && ac_dir=.
Chris@39 8325 if test -f $ac_dir/file; then
Chris@39 8326 lt_cv_path_MAGIC_CMD="$ac_dir/file"
Chris@39 8327 if test -n "$file_magic_test_file"; then
Chris@39 8328 case $deplibs_check_method in
Chris@39 8329 "file_magic "*)
Chris@39 8330 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Chris@39 8331 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Chris@39 8332 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
Chris@39 8333 $EGREP "$file_magic_regex" > /dev/null; then
Chris@39 8334 :
Chris@39 8335 else
Chris@39 8336 cat <<_LT_EOF 1>&2
Chris@39 8337
Chris@39 8338 *** Warning: the command libtool uses to detect shared libraries,
Chris@39 8339 *** $file_magic_cmd, produces output that libtool cannot recognize.
Chris@39 8340 *** The result is that libtool may fail to recognize shared libraries
Chris@39 8341 *** as such. This will affect the creation of libtool libraries that
Chris@39 8342 *** depend on shared libraries, but programs linked with such libtool
Chris@39 8343 *** libraries will work regardless of this problem. Nevertheless, you
Chris@39 8344 *** may want to report the problem to your system manager and/or to
Chris@39 8345 *** bug-libtool@gnu.org
Chris@39 8346
Chris@39 8347 _LT_EOF
Chris@39 8348 fi ;;
Chris@39 8349 esac
Chris@39 8350 fi
Chris@39 8351 break
Chris@39 8352 fi
Chris@39 8353 done
Chris@39 8354 IFS="$lt_save_ifs"
Chris@39 8355 MAGIC_CMD="$lt_save_MAGIC_CMD"
Chris@39 8356 ;;
Chris@39 8357 esac
Chris@39 8358 fi
Chris@39 8359
Chris@39 8360 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Chris@39 8361 if test -n "$MAGIC_CMD"; then
Chris@39 8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Chris@39 8363 $as_echo "$MAGIC_CMD" >&6; }
Chris@39 8364 else
Chris@39 8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 8366 $as_echo "no" >&6; }
Chris@39 8367 fi
Chris@39 8368
Chris@39 8369
Chris@39 8370 else
Chris@39 8371 MAGIC_CMD=:
Chris@39 8372 fi
Chris@39 8373 fi
Chris@39 8374
Chris@39 8375 fi
Chris@39 8376 ;;
Chris@39 8377 esac
Chris@39 8378
Chris@39 8379 # Use C for the default configuration in the libtool script
Chris@39 8380
Chris@39 8381 lt_save_CC="$CC"
Chris@39 8382 ac_ext=c
Chris@39 8383 ac_cpp='$CPP $CPPFLAGS'
Chris@39 8384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@39 8385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@39 8386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@39 8387
Chris@39 8388
Chris@39 8389 # Source file extension for C test sources.
Chris@39 8390 ac_ext=c
Chris@39 8391
Chris@39 8392 # Object file extension for compiled C test sources.
Chris@39 8393 objext=o
Chris@39 8394 objext=$objext
Chris@39 8395
Chris@39 8396 # Code to be used in simple compile tests
Chris@39 8397 lt_simple_compile_test_code="int some_variable = 0;"
Chris@39 8398
Chris@39 8399 # Code to be used in simple link tests
Chris@39 8400 lt_simple_link_test_code='int main(){return(0);}'
Chris@39 8401
Chris@39 8402
Chris@39 8403
Chris@39 8404
Chris@39 8405
Chris@39 8406
Chris@39 8407
Chris@39 8408 # If no C compiler was specified, use CC.
Chris@39 8409 LTCC=${LTCC-"$CC"}
Chris@39 8410
Chris@39 8411 # If no C compiler flags were specified, use CFLAGS.
Chris@39 8412 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Chris@39 8413
Chris@39 8414 # Allow CC to be a program name with arguments.
Chris@39 8415 compiler=$CC
Chris@39 8416
Chris@39 8417 # Save the default compiler, since it gets overwritten when the other
Chris@39 8418 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
Chris@39 8419 compiler_DEFAULT=$CC
Chris@39 8420
Chris@39 8421 # save warnings/boilerplate of simple test code
Chris@39 8422 ac_outfile=conftest.$ac_objext
Chris@39 8423 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Chris@39 8424 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@39 8425 _lt_compiler_boilerplate=`cat conftest.err`
Chris@39 8426 $RM conftest*
Chris@39 8427
Chris@39 8428 ac_outfile=conftest.$ac_objext
Chris@39 8429 echo "$lt_simple_link_test_code" >conftest.$ac_ext
Chris@39 8430 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@39 8431 _lt_linker_boilerplate=`cat conftest.err`
Chris@39 8432 $RM -r conftest*
Chris@39 8433
Chris@39 8434
Chris@39 8435 if test -n "$compiler"; then
Chris@39 8436
Chris@39 8437 lt_prog_compiler_no_builtin_flag=
Chris@39 8438
Chris@39 8439 if test "$GCC" = yes; then
Chris@39 8440 case $cc_basename in
Chris@39 8441 nvcc*)
Chris@39 8442 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
Chris@39 8443 *)
Chris@39 8444 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
Chris@39 8445 esac
Chris@39 8446
Chris@39 8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Chris@39 8448 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Chris@39 8449 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Chris@39 8450 $as_echo_n "(cached) " >&6
Chris@39 8451 else
Chris@39 8452 lt_cv_prog_compiler_rtti_exceptions=no
Chris@39 8453 ac_outfile=conftest.$ac_objext
Chris@39 8454 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@39 8455 lt_compiler_flag="-fno-rtti -fno-exceptions"
Chris@39 8456 # Insert the option either (1) after the last *FLAGS variable, or
Chris@39 8457 # (2) before a word containing "conftest.", or (3) at the end.
Chris@39 8458 # Note that $ac_compile itself does not contain backslashes and begins
Chris@39 8459 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@39 8460 # The option is referenced via a variable to avoid confusing sed.
Chris@39 8461 lt_compile=`echo "$ac_compile" | $SED \
Chris@39 8462 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@39 8463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@39 8464 -e 's:$: $lt_compiler_flag:'`
Chris@39 8465 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@39 8466 (eval "$lt_compile" 2>conftest.err)
Chris@39 8467 ac_status=$?
Chris@39 8468 cat conftest.err >&5
Chris@39 8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@39 8470 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@39 8471 # The compiler can only warn and ignore the option if not recognized
Chris@39 8472 # So say no if there are warnings other than the usual output.
Chris@39 8473 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Chris@39 8474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@39 8475 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Chris@39 8476 lt_cv_prog_compiler_rtti_exceptions=yes
Chris@39 8477 fi
Chris@39 8478 fi
Chris@39 8479 $RM conftest*
Chris@39 8480
Chris@39 8481 fi
Chris@39 8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Chris@39 8483 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Chris@39 8484
Chris@39 8485 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
Chris@39 8486 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
Chris@39 8487 else
Chris@39 8488 :
Chris@39 8489 fi
Chris@39 8490
Chris@39 8491 fi
Chris@39 8492
Chris@39 8493
Chris@39 8494
Chris@39 8495
Chris@39 8496
Chris@39 8497
Chris@39 8498 lt_prog_compiler_wl=
Chris@39 8499 lt_prog_compiler_pic=
Chris@39 8500 lt_prog_compiler_static=
Chris@39 8501
Chris@39 8502
Chris@39 8503 if test "$GCC" = yes; then
Chris@39 8504 lt_prog_compiler_wl='-Wl,'
Chris@39 8505 lt_prog_compiler_static='-static'
Chris@39 8506
Chris@39 8507 case $host_os in
Chris@39 8508 aix*)
Chris@39 8509 # All AIX code is PIC.
Chris@39 8510 if test "$host_cpu" = ia64; then
Chris@39 8511 # AIX 5 now supports IA64 processor
Chris@39 8512 lt_prog_compiler_static='-Bstatic'
Chris@39 8513 fi
Chris@39 8514 ;;
Chris@39 8515
Chris@39 8516 amigaos*)
Chris@39 8517 case $host_cpu in
Chris@39 8518 powerpc)
Chris@39 8519 # see comment about AmigaOS4 .so support
Chris@39 8520 lt_prog_compiler_pic='-fPIC'
Chris@39 8521 ;;
Chris@39 8522 m68k)
Chris@39 8523 # FIXME: we need at least 68020 code to build shared libraries, but
Chris@39 8524 # adding the `-m68020' flag to GCC prevents building anything better,
Chris@39 8525 # like `-m68040'.
Chris@39 8526 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
Chris@39 8527 ;;
Chris@39 8528 esac
Chris@39 8529 ;;
Chris@39 8530
Chris@39 8531 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Chris@39 8532 # PIC is the default for these OSes.
Chris@39 8533 ;;
Chris@39 8534
Chris@39 8535 mingw* | cygwin* | pw32* | os2* | cegcc*)
Chris@39 8536 # This hack is so that the source file can tell whether it is being
Chris@39 8537 # built for inclusion in a dll (and should export symbols for example).
Chris@39 8538 # Although the cygwin gcc ignores -fPIC, still need this for old-style
Chris@39 8539 # (--disable-auto-import) libraries
Chris@39 8540 lt_prog_compiler_pic='-DDLL_EXPORT'
Chris@39 8541 ;;
Chris@39 8542
Chris@39 8543 darwin* | rhapsody*)
Chris@39 8544 # PIC is the default on this platform
Chris@39 8545 # Common symbols not allowed in MH_DYLIB files
Chris@39 8546 lt_prog_compiler_pic='-fno-common'
Chris@39 8547 ;;
Chris@39 8548
Chris@39 8549 haiku*)
Chris@39 8550 # PIC is the default for Haiku.
Chris@39 8551 # The "-static" flag exists, but is broken.
Chris@39 8552 lt_prog_compiler_static=
Chris@39 8553 ;;
Chris@39 8554
Chris@39 8555 hpux*)
Chris@39 8556 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
Chris@39 8557 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
Chris@39 8558 # sets the default TLS model and affects inlining.
Chris@39 8559 case $host_cpu in
Chris@39 8560 hppa*64*)
Chris@39 8561 # +Z the default
Chris@39 8562 ;;
Chris@39 8563 *)
Chris@39 8564 lt_prog_compiler_pic='-fPIC'
Chris@39 8565 ;;
Chris@39 8566 esac
Chris@39 8567 ;;
Chris@39 8568
Chris@39 8569 interix[3-9]*)
Chris@39 8570 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
Chris@39 8571 # Instead, we relocate shared libraries at runtime.
Chris@39 8572 ;;
Chris@39 8573
Chris@39 8574 msdosdjgpp*)
Chris@39 8575 # Just because we use GCC doesn't mean we suddenly get shared libraries
Chris@39 8576 # on systems that don't support them.
Chris@39 8577 lt_prog_compiler_can_build_shared=no
Chris@39 8578 enable_shared=no
Chris@39 8579 ;;
Chris@39 8580
Chris@39 8581 *nto* | *qnx*)
Chris@39 8582 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@39 8583 # it will coredump.
Chris@39 8584 lt_prog_compiler_pic='-fPIC -shared'
Chris@39 8585 ;;
Chris@39 8586
Chris@39 8587 sysv4*MP*)
Chris@39 8588 if test -d /usr/nec; then
Chris@39 8589 lt_prog_compiler_pic=-Kconform_pic
Chris@39 8590 fi
Chris@39 8591 ;;
Chris@39 8592
Chris@39 8593 *)
Chris@39 8594 lt_prog_compiler_pic='-fPIC'
Chris@39 8595 ;;
Chris@39 8596 esac
Chris@39 8597
Chris@39 8598 case $cc_basename in
Chris@39 8599 nvcc*) # Cuda Compiler Driver 2.2
Chris@39 8600 lt_prog_compiler_wl='-Xlinker '
Chris@39 8601 lt_prog_compiler_pic='-Xcompiler -fPIC'
Chris@39 8602 ;;
Chris@39 8603 esac
Chris@39 8604 else
Chris@39 8605 # PORTME Check for flag to pass linker flags through the system compiler.
Chris@39 8606 case $host_os in
Chris@39 8607 aix*)
Chris@39 8608 lt_prog_compiler_wl='-Wl,'
Chris@39 8609 if test "$host_cpu" = ia64; then
Chris@39 8610 # AIX 5 now supports IA64 processor
Chris@39 8611 lt_prog_compiler_static='-Bstatic'
Chris@39 8612 else
Chris@39 8613 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
Chris@39 8614 fi
Chris@39 8615 ;;
Chris@39 8616
Chris@39 8617 mingw* | cygwin* | pw32* | os2* | cegcc*)
Chris@39 8618 # This hack is so that the source file can tell whether it is being
Chris@39 8619 # built for inclusion in a dll (and should export symbols for example).
Chris@39 8620 lt_prog_compiler_pic='-DDLL_EXPORT'
Chris@39 8621 ;;
Chris@39 8622
Chris@39 8623 hpux9* | hpux10* | hpux11*)
Chris@39 8624 lt_prog_compiler_wl='-Wl,'
Chris@39 8625 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
Chris@39 8626 # not for PA HP-UX.
Chris@39 8627 case $host_cpu in
Chris@39 8628 hppa*64*|ia64*)
Chris@39 8629 # +Z the default
Chris@39 8630 ;;
Chris@39 8631 *)
Chris@39 8632 lt_prog_compiler_pic='+Z'
Chris@39 8633 ;;
Chris@39 8634 esac
Chris@39 8635 # Is there a better lt_prog_compiler_static that works with the bundled CC?
Chris@39 8636 lt_prog_compiler_static='${wl}-a ${wl}archive'
Chris@39 8637 ;;
Chris@39 8638
Chris@39 8639 irix5* | irix6* | nonstopux*)
Chris@39 8640 lt_prog_compiler_wl='-Wl,'
Chris@39 8641 # PIC (with -KPIC) is the default.
Chris@39 8642 lt_prog_compiler_static='-non_shared'
Chris@39 8643 ;;
Chris@39 8644
Chris@39 8645 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@39 8646 case $cc_basename in
Chris@39 8647 # old Intel for x86_64 which still supported -KPIC.
Chris@39 8648 ecc*)
Chris@39 8649 lt_prog_compiler_wl='-Wl,'
Chris@39 8650 lt_prog_compiler_pic='-KPIC'
Chris@39 8651 lt_prog_compiler_static='-static'
Chris@39 8652 ;;
Chris@39 8653 # icc used to be incompatible with GCC.
Chris@39 8654 # ICC 10 doesn't accept -KPIC any more.
Chris@39 8655 icc* | ifort*)
Chris@39 8656 lt_prog_compiler_wl='-Wl,'
Chris@39 8657 lt_prog_compiler_pic='-fPIC'
Chris@39 8658 lt_prog_compiler_static='-static'
Chris@39 8659 ;;
Chris@39 8660 # Lahey Fortran 8.1.
Chris@39 8661 lf95*)
Chris@39 8662 lt_prog_compiler_wl='-Wl,'
Chris@39 8663 lt_prog_compiler_pic='--shared'
Chris@39 8664 lt_prog_compiler_static='--static'
Chris@39 8665 ;;
Chris@39 8666 nagfor*)
Chris@39 8667 # NAG Fortran compiler
Chris@39 8668 lt_prog_compiler_wl='-Wl,-Wl,,'
Chris@39 8669 lt_prog_compiler_pic='-PIC'
Chris@39 8670 lt_prog_compiler_static='-Bstatic'
Chris@39 8671 ;;
Chris@39 8672 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Chris@39 8673 # Portland Group compilers (*not* the Pentium gcc compiler,
Chris@39 8674 # which looks to be a dead project)
Chris@39 8675 lt_prog_compiler_wl='-Wl,'
Chris@39 8676 lt_prog_compiler_pic='-fpic'
Chris@39 8677 lt_prog_compiler_static='-Bstatic'
Chris@39 8678 ;;
Chris@39 8679 ccc*)
Chris@39 8680 lt_prog_compiler_wl='-Wl,'
Chris@39 8681 # All Alpha code is PIC.
Chris@39 8682 lt_prog_compiler_static='-non_shared'
Chris@39 8683 ;;
Chris@39 8684 xl* | bgxl* | bgf* | mpixl*)
Chris@39 8685 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Chris@39 8686 lt_prog_compiler_wl='-Wl,'
Chris@39 8687 lt_prog_compiler_pic='-qpic'
Chris@39 8688 lt_prog_compiler_static='-qstaticlink'
Chris@39 8689 ;;
Chris@39 8690 *)
Chris@39 8691 case `$CC -V 2>&1 | sed 5q` in
Chris@39 8692 *Sun\ F* | *Sun*Fortran*)
Chris@39 8693 # Sun Fortran 8.3 passes all unrecognized flags to the linker
Chris@39 8694 lt_prog_compiler_pic='-KPIC'
Chris@39 8695 lt_prog_compiler_static='-Bstatic'
Chris@39 8696 lt_prog_compiler_wl=''
Chris@39 8697 ;;
Chris@39 8698 *Sun\ C*)
Chris@39 8699 # Sun C 5.9
Chris@39 8700 lt_prog_compiler_pic='-KPIC'
Chris@39 8701 lt_prog_compiler_static='-Bstatic'
Chris@39 8702 lt_prog_compiler_wl='-Wl,'
Chris@39 8703 ;;
Chris@39 8704 esac
Chris@39 8705 ;;
Chris@39 8706 esac
Chris@39 8707 ;;
Chris@39 8708
Chris@39 8709 newsos6)
Chris@39 8710 lt_prog_compiler_pic='-KPIC'
Chris@39 8711 lt_prog_compiler_static='-Bstatic'
Chris@39 8712 ;;
Chris@39 8713
Chris@39 8714 *nto* | *qnx*)
Chris@39 8715 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@39 8716 # it will coredump.
Chris@39 8717 lt_prog_compiler_pic='-fPIC -shared'
Chris@39 8718 ;;
Chris@39 8719
Chris@39 8720 osf3* | osf4* | osf5*)
Chris@39 8721 lt_prog_compiler_wl='-Wl,'
Chris@39 8722 # All OSF/1 code is PIC.
Chris@39 8723 lt_prog_compiler_static='-non_shared'
Chris@39 8724 ;;
Chris@39 8725
Chris@39 8726 rdos*)
Chris@39 8727 lt_prog_compiler_static='-non_shared'
Chris@39 8728 ;;
Chris@39 8729
Chris@39 8730 solaris*)
Chris@39 8731 lt_prog_compiler_pic='-KPIC'
Chris@39 8732 lt_prog_compiler_static='-Bstatic'
Chris@39 8733 case $cc_basename in
Chris@39 8734 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Chris@39 8735 lt_prog_compiler_wl='-Qoption ld ';;
Chris@39 8736 *)
Chris@39 8737 lt_prog_compiler_wl='-Wl,';;
Chris@39 8738 esac
Chris@39 8739 ;;
Chris@39 8740
Chris@39 8741 sunos4*)
Chris@39 8742 lt_prog_compiler_wl='-Qoption ld '
Chris@39 8743 lt_prog_compiler_pic='-PIC'
Chris@39 8744 lt_prog_compiler_static='-Bstatic'
Chris@39 8745 ;;
Chris@39 8746
Chris@39 8747 sysv4 | sysv4.2uw2* | sysv4.3*)
Chris@39 8748 lt_prog_compiler_wl='-Wl,'
Chris@39 8749 lt_prog_compiler_pic='-KPIC'
Chris@39 8750 lt_prog_compiler_static='-Bstatic'
Chris@39 8751 ;;
Chris@39 8752
Chris@39 8753 sysv4*MP*)
Chris@39 8754 if test -d /usr/nec ;then
Chris@39 8755 lt_prog_compiler_pic='-Kconform_pic'
Chris@39 8756 lt_prog_compiler_static='-Bstatic'
Chris@39 8757 fi
Chris@39 8758 ;;
Chris@39 8759
Chris@39 8760 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
Chris@39 8761 lt_prog_compiler_wl='-Wl,'
Chris@39 8762 lt_prog_compiler_pic='-KPIC'
Chris@39 8763 lt_prog_compiler_static='-Bstatic'
Chris@39 8764 ;;
Chris@39 8765
Chris@39 8766 unicos*)
Chris@39 8767 lt_prog_compiler_wl='-Wl,'
Chris@39 8768 lt_prog_compiler_can_build_shared=no
Chris@39 8769 ;;
Chris@39 8770
Chris@39 8771 uts4*)
Chris@39 8772 lt_prog_compiler_pic='-pic'
Chris@39 8773 lt_prog_compiler_static='-Bstatic'
Chris@39 8774 ;;
Chris@39 8775
Chris@39 8776 *)
Chris@39 8777 lt_prog_compiler_can_build_shared=no
Chris@39 8778 ;;
Chris@39 8779 esac
Chris@39 8780 fi
Chris@39 8781
Chris@39 8782 case $host_os in
Chris@39 8783 # For platforms which do not support PIC, -DPIC is meaningless:
Chris@39 8784 *djgpp*)
Chris@39 8785 lt_prog_compiler_pic=
Chris@39 8786 ;;
Chris@39 8787 *)
Chris@39 8788 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
Chris@39 8789 ;;
Chris@39 8790 esac
Chris@39 8791
Chris@39 8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
Chris@39 8793 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Chris@39 8794 if ${lt_cv_prog_compiler_pic+:} false; then :
Chris@39 8795 $as_echo_n "(cached) " >&6
Chris@39 8796 else
Chris@39 8797 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
Chris@39 8798 fi
Chris@39 8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
Chris@39 8800 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
Chris@39 8801 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
Chris@39 8802
Chris@39 8803 #
Chris@39 8804 # Check to make sure the PIC flag actually works.
Chris@39 8805 #
Chris@39 8806 if test -n "$lt_prog_compiler_pic"; then
Chris@39 8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
Chris@39 8808 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Chris@39 8809 if ${lt_cv_prog_compiler_pic_works+:} false; then :
Chris@39 8810 $as_echo_n "(cached) " >&6
Chris@39 8811 else
Chris@39 8812 lt_cv_prog_compiler_pic_works=no
Chris@39 8813 ac_outfile=conftest.$ac_objext
Chris@39 8814 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@39 8815 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
Chris@39 8816 # Insert the option either (1) after the last *FLAGS variable, or
Chris@39 8817 # (2) before a word containing "conftest.", or (3) at the end.
Chris@39 8818 # Note that $ac_compile itself does not contain backslashes and begins
Chris@39 8819 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@39 8820 # The option is referenced via a variable to avoid confusing sed.
Chris@39 8821 lt_compile=`echo "$ac_compile" | $SED \
Chris@39 8822 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@39 8823 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@39 8824 -e 's:$: $lt_compiler_flag:'`
Chris@39 8825 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@39 8826 (eval "$lt_compile" 2>conftest.err)
Chris@39 8827 ac_status=$?
Chris@39 8828 cat conftest.err >&5
Chris@39 8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@39 8830 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@39 8831 # The compiler can only warn and ignore the option if not recognized
Chris@39 8832 # So say no if there are warnings other than the usual output.
Chris@39 8833 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Chris@39 8834 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@39 8835 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Chris@39 8836 lt_cv_prog_compiler_pic_works=yes
Chris@39 8837 fi
Chris@39 8838 fi
Chris@39 8839 $RM conftest*
Chris@39 8840
Chris@39 8841 fi
Chris@39 8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
Chris@39 8843 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
Chris@39 8844
Chris@39 8845 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
Chris@39 8846 case $lt_prog_compiler_pic in
Chris@39 8847 "" | " "*) ;;
Chris@39 8848 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
Chris@39 8849 esac
Chris@39 8850 else
Chris@39 8851 lt_prog_compiler_pic=
Chris@39 8852 lt_prog_compiler_can_build_shared=no
Chris@39 8853 fi
Chris@39 8854
Chris@39 8855 fi
Chris@39 8856
Chris@39 8857
Chris@39 8858
Chris@39 8859
Chris@39 8860
Chris@39 8861
Chris@39 8862
Chris@39 8863
Chris@39 8864
Chris@39 8865
Chris@39 8866
Chris@39 8867 #
Chris@39 8868 # Check to make sure the static flag actually works.
Chris@39 8869 #
Chris@39 8870 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Chris@39 8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
Chris@39 8872 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Chris@39 8873 if ${lt_cv_prog_compiler_static_works+:} false; then :
Chris@39 8874 $as_echo_n "(cached) " >&6
Chris@39 8875 else
Chris@39 8876 lt_cv_prog_compiler_static_works=no
Chris@39 8877 save_LDFLAGS="$LDFLAGS"
Chris@39 8878 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Chris@39 8879 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Chris@39 8880 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Chris@39 8881 # The linker can only warn and ignore the option if not recognized
Chris@39 8882 # So say no if there are warnings
Chris@39 8883 if test -s conftest.err; then
Chris@39 8884 # Append any errors to the config.log.
Chris@39 8885 cat conftest.err 1>&5
Chris@39 8886 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Chris@39 8887 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@39 8888 if diff conftest.exp conftest.er2 >/dev/null; then
Chris@39 8889 lt_cv_prog_compiler_static_works=yes
Chris@39 8890 fi
Chris@39 8891 else
Chris@39 8892 lt_cv_prog_compiler_static_works=yes
Chris@39 8893 fi
Chris@39 8894 fi
Chris@39 8895 $RM -r conftest*
Chris@39 8896 LDFLAGS="$save_LDFLAGS"
Chris@39 8897
Chris@39 8898 fi
Chris@39 8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
Chris@39 8900 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
Chris@39 8901
Chris@39 8902 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
Chris@39 8903 :
Chris@39 8904 else
Chris@39 8905 lt_prog_compiler_static=
Chris@39 8906 fi
Chris@39 8907
Chris@39 8908
Chris@39 8909
Chris@39 8910
Chris@39 8911
Chris@39 8912
Chris@39 8913
Chris@39 8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@39 8915 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@39 8916 if ${lt_cv_prog_compiler_c_o+:} false; then :
Chris@39 8917 $as_echo_n "(cached) " >&6
Chris@39 8918 else
Chris@39 8919 lt_cv_prog_compiler_c_o=no
Chris@39 8920 $RM -r conftest 2>/dev/null
Chris@39 8921 mkdir conftest
Chris@39 8922 cd conftest
Chris@39 8923 mkdir out
Chris@39 8924 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@39 8925
Chris@39 8926 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@39 8927 # Insert the option either (1) after the last *FLAGS variable, or
Chris@39 8928 # (2) before a word containing "conftest.", or (3) at the end.
Chris@39 8929 # Note that $ac_compile itself does not contain backslashes and begins
Chris@39 8930 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@39 8931 lt_compile=`echo "$ac_compile" | $SED \
Chris@39 8932 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@39 8933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@39 8934 -e 's:$: $lt_compiler_flag:'`
Chris@39 8935 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@39 8936 (eval "$lt_compile" 2>out/conftest.err)
Chris@39 8937 ac_status=$?
Chris@39 8938 cat out/conftest.err >&5
Chris@39 8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@39 8940 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@39 8941 then
Chris@39 8942 # The compiler can only warn and ignore the option if not recognized
Chris@39 8943 # So say no if there are warnings
Chris@39 8944 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@39 8945 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@39 8946 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@39 8947 lt_cv_prog_compiler_c_o=yes
Chris@39 8948 fi
Chris@39 8949 fi
Chris@39 8950 chmod u+w . 2>&5
Chris@39 8951 $RM conftest*
Chris@39 8952 # SGI C++ compiler will create directory out/ii_files/ for
Chris@39 8953 # template instantiation
Chris@39 8954 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@39 8955 $RM out/* && rmdir out
Chris@39 8956 cd ..
Chris@39 8957 $RM -r conftest
Chris@39 8958 $RM conftest*
Chris@39 8959
Chris@39 8960 fi
Chris@39 8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Chris@39 8962 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Chris@39 8963
Chris@39 8964
Chris@39 8965
Chris@39 8966
Chris@39 8967
Chris@39 8968
Chris@39 8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@39 8970 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@39 8971 if ${lt_cv_prog_compiler_c_o+:} false; then :
Chris@39 8972 $as_echo_n "(cached) " >&6
Chris@39 8973 else
Chris@39 8974 lt_cv_prog_compiler_c_o=no
Chris@39 8975 $RM -r conftest 2>/dev/null
Chris@39 8976 mkdir conftest
Chris@39 8977 cd conftest
Chris@39 8978 mkdir out
Chris@39 8979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@39 8980
Chris@39 8981 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@39 8982 # Insert the option either (1) after the last *FLAGS variable, or
Chris@39 8983 # (2) before a word containing "conftest.", or (3) at the end.
Chris@39 8984 # Note that $ac_compile itself does not contain backslashes and begins
Chris@39 8985 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@39 8986 lt_compile=`echo "$ac_compile" | $SED \
Chris@39 8987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@39 8988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@39 8989 -e 's:$: $lt_compiler_flag:'`
Chris@39 8990 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@39 8991 (eval "$lt_compile" 2>out/conftest.err)
Chris@39 8992 ac_status=$?
Chris@39 8993 cat out/conftest.err >&5
Chris@39 8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@39 8995 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@39 8996 then
Chris@39 8997 # The compiler can only warn and ignore the option if not recognized
Chris@39 8998 # So say no if there are warnings
Chris@39 8999 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@39 9000 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@39 9001 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@39 9002 lt_cv_prog_compiler_c_o=yes
Chris@39 9003 fi
Chris@39 9004 fi
Chris@39 9005 chmod u+w . 2>&5
Chris@39 9006 $RM conftest*
Chris@39 9007 # SGI C++ compiler will create directory out/ii_files/ for
Chris@39 9008 # template instantiation
Chris@39 9009 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@39 9010 $RM out/* && rmdir out
Chris@39 9011 cd ..
Chris@39 9012 $RM -r conftest
Chris@39 9013 $RM conftest*
Chris@39 9014
Chris@39 9015 fi
Chris@39 9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Chris@39 9017 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Chris@39 9018
Chris@39 9019
Chris@39 9020
Chris@39 9021
Chris@39 9022 hard_links="nottested"
Chris@39 9023 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
Chris@39 9024 # do not overwrite the value of need_locks provided by the user
Chris@39 9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Chris@39 9026 $as_echo_n "checking if we can lock with hard links... " >&6; }
Chris@39 9027 hard_links=yes
Chris@39 9028 $RM conftest*
Chris@39 9029 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@39 9030 touch conftest.a
Chris@39 9031 ln conftest.a conftest.b 2>&5 || hard_links=no
Chris@39 9032 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@39 9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Chris@39 9034 $as_echo "$hard_links" >&6; }
Chris@39 9035 if test "$hard_links" = no; then
Chris@39 9036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
Chris@39 9037 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
Chris@39 9038 need_locks=warn
Chris@39 9039 fi
Chris@39 9040 else
Chris@39 9041 need_locks=no
Chris@39 9042 fi
Chris@39 9043
Chris@39 9044
Chris@39 9045
Chris@39 9046
Chris@39 9047
Chris@39 9048
Chris@39 9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Chris@39 9050 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Chris@39 9051
Chris@39 9052 runpath_var=
Chris@39 9053 allow_undefined_flag=
Chris@39 9054 always_export_symbols=no
Chris@39 9055 archive_cmds=
Chris@39 9056 archive_expsym_cmds=
Chris@39 9057 compiler_needs_object=no
Chris@39 9058 enable_shared_with_static_runtimes=no
Chris@39 9059 export_dynamic_flag_spec=
Chris@39 9060 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Chris@39 9061 hardcode_automatic=no
Chris@39 9062 hardcode_direct=no
Chris@39 9063 hardcode_direct_absolute=no
Chris@39 9064 hardcode_libdir_flag_spec=
Chris@39 9065 hardcode_libdir_flag_spec_ld=
Chris@39 9066 hardcode_libdir_separator=
Chris@39 9067 hardcode_minus_L=no
Chris@39 9068 hardcode_shlibpath_var=unsupported
Chris@39 9069 inherit_rpath=no
Chris@39 9070 link_all_deplibs=unknown
Chris@39 9071 module_cmds=
Chris@39 9072 module_expsym_cmds=
Chris@39 9073 old_archive_from_new_cmds=
Chris@39 9074 old_archive_from_expsyms_cmds=
Chris@39 9075 thread_safe_flag_spec=
Chris@39 9076 whole_archive_flag_spec=
Chris@39 9077 # include_expsyms should be a list of space-separated symbols to be *always*
Chris@39 9078 # included in the symbol list
Chris@39 9079 include_expsyms=
Chris@39 9080 # exclude_expsyms can be an extended regexp of symbols to exclude
Chris@39 9081 # it will be wrapped by ` (' and `)$', so one must not match beginning or
Chris@39 9082 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
Chris@39 9083 # as well as any symbol that contains `d'.
Chris@39 9084 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Chris@39 9085 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
Chris@39 9086 # platforms (ab)use it in PIC code, but their linkers get confused if
Chris@39 9087 # the symbol is explicitly referenced. Since portable code cannot
Chris@39 9088 # rely on this symbol name, it's probably fine to never include it in
Chris@39 9089 # preloaded symbol tables.
Chris@39 9090 # Exclude shared library initialization/finalization symbols.
Chris@39 9091 extract_expsyms_cmds=
Chris@39 9092
Chris@39 9093 case $host_os in
Chris@39 9094 cygwin* | mingw* | pw32* | cegcc*)
Chris@39 9095 # FIXME: the MSVC++ port hasn't been tested in a loooong time
Chris@39 9096 # When not using gcc, we currently assume that we are using
Chris@39 9097 # Microsoft Visual C++.
Chris@39 9098 if test "$GCC" != yes; then
Chris@39 9099 with_gnu_ld=no
Chris@39 9100 fi
Chris@39 9101 ;;
Chris@39 9102 interix*)
Chris@39 9103 # we just hope/assume this is gcc and not c89 (= MSVC++)
Chris@39 9104 with_gnu_ld=yes
Chris@39 9105 ;;
Chris@39 9106 openbsd*)
Chris@39 9107 with_gnu_ld=no
Chris@39 9108 ;;
Chris@39 9109 linux* | k*bsd*-gnu | gnu*)
Chris@39 9110 link_all_deplibs=no
Chris@39 9111 ;;
Chris@39 9112 esac
Chris@39 9113
Chris@39 9114 ld_shlibs=yes
Chris@39 9115
Chris@39 9116 # On some targets, GNU ld is compatible enough with the native linker
Chris@39 9117 # that we're better off using the native interface for both.
Chris@39 9118 lt_use_gnu_ld_interface=no
Chris@39 9119 if test "$with_gnu_ld" = yes; then
Chris@39 9120 case $host_os in
Chris@39 9121 aix*)
Chris@39 9122 # The AIX port of GNU ld has always aspired to compatibility
Chris@39 9123 # with the native linker. However, as the warning in the GNU ld
Chris@39 9124 # block says, versions before 2.19.5* couldn't really create working
Chris@39 9125 # shared libraries, regardless of the interface used.
Chris@39 9126 case `$LD -v 2>&1` in
Chris@39 9127 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
Chris@39 9128 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
Chris@39 9129 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
Chris@39 9130 *)
Chris@39 9131 lt_use_gnu_ld_interface=yes
Chris@39 9132 ;;
Chris@39 9133 esac
Chris@39 9134 ;;
Chris@39 9135 *)
Chris@39 9136 lt_use_gnu_ld_interface=yes
Chris@39 9137 ;;
Chris@39 9138 esac
Chris@39 9139 fi
Chris@39 9140
Chris@39 9141 if test "$lt_use_gnu_ld_interface" = yes; then
Chris@39 9142 # If archive_cmds runs LD, not CC, wlarc should be empty
Chris@39 9143 wlarc='${wl}'
Chris@39 9144
Chris@39 9145 # Set some defaults for GNU ld with shared library support. These
Chris@39 9146 # are reset later if shared libraries are not supported. Putting them
Chris@39 9147 # here allows them to be overridden if necessary.
Chris@39 9148 runpath_var=LD_RUN_PATH
Chris@39 9149 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@39 9150 export_dynamic_flag_spec='${wl}--export-dynamic'
Chris@39 9151 # ancient GNU ld didn't support --whole-archive et. al.
Chris@39 9152 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
Chris@39 9153 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
Chris@39 9154 else
Chris@39 9155 whole_archive_flag_spec=
Chris@39 9156 fi
Chris@39 9157 supports_anon_versioning=no
Chris@39 9158 case `$LD -v 2>&1` in
Chris@39 9159 *GNU\ gold*) supports_anon_versioning=yes ;;
Chris@39 9160 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
Chris@39 9161 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
Chris@39 9162 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
Chris@39 9163 *\ 2.11.*) ;; # other 2.11 versions
Chris@39 9164 *) supports_anon_versioning=yes ;;
Chris@39 9165 esac
Chris@39 9166
Chris@39 9167 # See if GNU ld supports shared libraries.
Chris@39 9168 case $host_os in
Chris@39 9169 aix[3-9]*)
Chris@39 9170 # On AIX/PPC, the GNU linker is very broken
Chris@39 9171 if test "$host_cpu" != ia64; then
Chris@39 9172 ld_shlibs=no
Chris@39 9173 cat <<_LT_EOF 1>&2
Chris@39 9174
Chris@39 9175 *** Warning: the GNU linker, at least up to release 2.19, is reported
Chris@39 9176 *** to be unable to reliably create shared libraries on AIX.
Chris@39 9177 *** Therefore, libtool is disabling shared libraries support. If you
Chris@39 9178 *** really care for shared libraries, you may want to install binutils
Chris@39 9179 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
Chris@39 9180 *** You will then need to restart the configuration process.
Chris@39 9181
Chris@39 9182 _LT_EOF
Chris@39 9183 fi
Chris@39 9184 ;;
Chris@39 9185
Chris@39 9186 amigaos*)
Chris@39 9187 case $host_cpu in
Chris@39 9188 powerpc)
Chris@39 9189 # see comment about AmigaOS4 .so support
Chris@39 9190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 9191 archive_expsym_cmds=''
Chris@39 9192 ;;
Chris@39 9193 m68k)
Chris@39 9194 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)'
Chris@39 9195 hardcode_libdir_flag_spec='-L$libdir'
Chris@39 9196 hardcode_minus_L=yes
Chris@39 9197 ;;
Chris@39 9198 esac
Chris@39 9199 ;;
Chris@39 9200
Chris@39 9201 beos*)
Chris@39 9202 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@39 9203 allow_undefined_flag=unsupported
Chris@39 9204 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
Chris@39 9205 # support --undefined. This deserves some investigation. FIXME
Chris@39 9206 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 9207 else
Chris@39 9208 ld_shlibs=no
Chris@39 9209 fi
Chris@39 9210 ;;
Chris@39 9211
Chris@39 9212 cygwin* | mingw* | pw32* | cegcc*)
Chris@39 9213 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
Chris@39 9214 # as there is no search path for DLLs.
Chris@39 9215 hardcode_libdir_flag_spec='-L$libdir'
Chris@39 9216 export_dynamic_flag_spec='${wl}--export-all-symbols'
Chris@39 9217 allow_undefined_flag=unsupported
Chris@39 9218 always_export_symbols=no
Chris@39 9219 enable_shared_with_static_runtimes=yes
Chris@39 9220 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
Chris@39 9221 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
Chris@39 9222
Chris@39 9223 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Chris@39 9224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Chris@39 9225 # If the export-symbols file already is a .def file (1st line
Chris@39 9226 # is EXPORTS), use it as is; otherwise, prepend...
Chris@39 9227 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
Chris@39 9228 cp $export_symbols $output_objdir/$soname.def;
Chris@39 9229 else
Chris@39 9230 echo EXPORTS > $output_objdir/$soname.def;
Chris@39 9231 cat $export_symbols >> $output_objdir/$soname.def;
Chris@39 9232 fi~
Chris@39 9233 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Chris@39 9234 else
Chris@39 9235 ld_shlibs=no
Chris@39 9236 fi
Chris@39 9237 ;;
Chris@39 9238
Chris@39 9239 haiku*)
Chris@39 9240 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 9241 link_all_deplibs=yes
Chris@39 9242 ;;
Chris@39 9243
Chris@39 9244 interix[3-9]*)
Chris@39 9245 hardcode_direct=no
Chris@39 9246 hardcode_shlibpath_var=no
Chris@39 9247 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
Chris@39 9248 export_dynamic_flag_spec='${wl}-E'
Chris@39 9249 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
Chris@39 9250 # Instead, shared libraries are loaded at an image base (0x10000000 by
Chris@39 9251 # default) and relocated if they conflict, which is a slow very memory
Chris@39 9252 # consuming and fragmenting process. To avoid this, we pick a random,
Chris@39 9253 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
Chris@39 9254 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Chris@39 9255 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
Chris@39 9256 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'
Chris@39 9257 ;;
Chris@39 9258
Chris@39 9259 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@39 9260 tmp_diet=no
Chris@39 9261 if test "$host_os" = linux-dietlibc; then
Chris@39 9262 case $cc_basename in
Chris@39 9263 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
Chris@39 9264 esac
Chris@39 9265 fi
Chris@39 9266 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
Chris@39 9267 && test "$tmp_diet" = no
Chris@39 9268 then
Chris@39 9269 tmp_addflag=' $pic_flag'
Chris@39 9270 tmp_sharedflag='-shared'
Chris@39 9271 case $cc_basename,$host_cpu in
Chris@39 9272 pgcc*) # Portland Group C compiler
Chris@39 9273 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Chris@39 9274 tmp_addflag=' $pic_flag'
Chris@39 9275 ;;
Chris@39 9276 pgf77* | pgf90* | pgf95* | pgfortran*)
Chris@39 9277 # Portland Group f77 and f90 compilers
Chris@39 9278 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Chris@39 9279 tmp_addflag=' $pic_flag -Mnomain' ;;
Chris@39 9280 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Chris@39 9281 tmp_addflag=' -i_dynamic' ;;
Chris@39 9282 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
Chris@39 9283 tmp_addflag=' -i_dynamic -nofor_main' ;;
Chris@39 9284 ifc* | ifort*) # Intel Fortran compiler
Chris@39 9285 tmp_addflag=' -nofor_main' ;;
Chris@39 9286 lf95*) # Lahey Fortran 8.1
Chris@39 9287 whole_archive_flag_spec=
Chris@39 9288 tmp_sharedflag='--shared' ;;
Chris@39 9289 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Chris@39 9290 tmp_sharedflag='-qmkshrobj'
Chris@39 9291 tmp_addflag= ;;
Chris@39 9292 nvcc*) # Cuda Compiler Driver 2.2
Chris@39 9293 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Chris@39 9294 compiler_needs_object=yes
Chris@39 9295 ;;
Chris@39 9296 esac
Chris@39 9297 case `$CC -V 2>&1 | sed 5q` in
Chris@39 9298 *Sun\ C*) # Sun C 5.9
Chris@39 9299 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Chris@39 9300 compiler_needs_object=yes
Chris@39 9301 tmp_sharedflag='-G' ;;
Chris@39 9302 *Sun\ F*) # Sun Fortran 8.3
Chris@39 9303 tmp_sharedflag='-G' ;;
Chris@39 9304 esac
Chris@39 9305 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 9306
Chris@39 9307 if test "x$supports_anon_versioning" = xyes; then
Chris@39 9308 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Chris@39 9309 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@39 9310 echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@39 9311 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
Chris@39 9312 fi
Chris@39 9313
Chris@39 9314 case $cc_basename in
Chris@39 9315 xlf* | bgf* | bgxlf* | mpixlf*)
Chris@39 9316 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
Chris@39 9317 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
Chris@39 9318 hardcode_libdir_flag_spec=
Chris@39 9319 hardcode_libdir_flag_spec_ld='-rpath $libdir'
Chris@39 9320 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Chris@39 9321 if test "x$supports_anon_versioning" = xyes; then
Chris@39 9322 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Chris@39 9323 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@39 9324 echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@39 9325 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Chris@39 9326 fi
Chris@39 9327 ;;
Chris@39 9328 esac
Chris@39 9329 else
Chris@39 9330 ld_shlibs=no
Chris@39 9331 fi
Chris@39 9332 ;;
Chris@39 9333
Chris@39 9334 netbsd* | netbsdelf*-gnu)
Chris@39 9335 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@39 9336 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
Chris@39 9337 wlarc=
Chris@39 9338 else
Chris@39 9339 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 9340 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@39 9341 fi
Chris@39 9342 ;;
Chris@39 9343
Chris@39 9344 solaris*)
Chris@39 9345 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Chris@39 9346 ld_shlibs=no
Chris@39 9347 cat <<_LT_EOF 1>&2
Chris@39 9348
Chris@39 9349 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
Chris@39 9350 *** create shared libraries on Solaris systems. Therefore, libtool
Chris@39 9351 *** is disabling shared libraries support. We urge you to upgrade GNU
Chris@39 9352 *** binutils to release 2.9.1 or newer. Another option is to modify
Chris@39 9353 *** your PATH or compiler configuration so that the native linker is
Chris@39 9354 *** used, and then restart.
Chris@39 9355
Chris@39 9356 _LT_EOF
Chris@39 9357 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@39 9358 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 9359 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@39 9360 else
Chris@39 9361 ld_shlibs=no
Chris@39 9362 fi
Chris@39 9363 ;;
Chris@39 9364
Chris@39 9365 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
Chris@39 9366 case `$LD -v 2>&1` in
Chris@39 9367 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
Chris@39 9368 ld_shlibs=no
Chris@39 9369 cat <<_LT_EOF 1>&2
Chris@39 9370
Chris@39 9371 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
Chris@39 9372 *** reliably create shared libraries on SCO systems. Therefore, libtool
Chris@39 9373 *** is disabling shared libraries support. We urge you to upgrade GNU
Chris@39 9374 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
Chris@39 9375 *** your PATH or compiler configuration so that the native linker is
Chris@39 9376 *** used, and then restart.
Chris@39 9377
Chris@39 9378 _LT_EOF
Chris@39 9379 ;;
Chris@39 9380 *)
Chris@39 9381 # For security reasons, it is highly recommended that you always
Chris@39 9382 # use absolute paths for naming shared libraries, and exclude the
Chris@39 9383 # DT_RUNPATH tag from executables and libraries. But doing so
Chris@39 9384 # requires that you compile everything twice, which is a pain.
Chris@39 9385 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@39 9386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@39 9387 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 9388 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@39 9389 else
Chris@39 9390 ld_shlibs=no
Chris@39 9391 fi
Chris@39 9392 ;;
Chris@39 9393 esac
Chris@39 9394 ;;
Chris@39 9395
Chris@39 9396 sunos4*)
Chris@39 9397 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@39 9398 wlarc=
Chris@39 9399 hardcode_direct=yes
Chris@39 9400 hardcode_shlibpath_var=no
Chris@39 9401 ;;
Chris@39 9402
Chris@39 9403 *)
Chris@39 9404 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@39 9405 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 9406 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@39 9407 else
Chris@39 9408 ld_shlibs=no
Chris@39 9409 fi
Chris@39 9410 ;;
Chris@39 9411 esac
Chris@39 9412
Chris@39 9413 if test "$ld_shlibs" = no; then
Chris@39 9414 runpath_var=
Chris@39 9415 hardcode_libdir_flag_spec=
Chris@39 9416 export_dynamic_flag_spec=
Chris@39 9417 whole_archive_flag_spec=
Chris@39 9418 fi
Chris@39 9419 else
Chris@39 9420 # PORTME fill in a description of your system's linker (not GNU ld)
Chris@39 9421 case $host_os in
Chris@39 9422 aix3*)
Chris@39 9423 allow_undefined_flag=unsupported
Chris@39 9424 always_export_symbols=yes
Chris@39 9425 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'
Chris@39 9426 # Note: this linker hardcodes the directories in LIBPATH if there
Chris@39 9427 # are no directories specified by -L.
Chris@39 9428 hardcode_minus_L=yes
Chris@39 9429 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
Chris@39 9430 # Neither direct hardcoding nor static linking is supported with a
Chris@39 9431 # broken collect2.
Chris@39 9432 hardcode_direct=unsupported
Chris@39 9433 fi
Chris@39 9434 ;;
Chris@39 9435
Chris@39 9436 aix[4-9]*)
Chris@39 9437 if test "$host_cpu" = ia64; then
Chris@39 9438 # On IA64, the linker does run time linking by default, so we don't
Chris@39 9439 # have to do anything special.
Chris@39 9440 aix_use_runtimelinking=no
Chris@39 9441 exp_sym_flag='-Bexport'
Chris@39 9442 no_entry_flag=""
Chris@39 9443 else
Chris@39 9444 # If we're using GNU nm, then we don't want the "-C" option.
Chris@39 9445 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Chris@39 9446 # Also, AIX nm treats weak defined symbols like other global
Chris@39 9447 # defined symbols, whereas GNU nm marks them as "W".
Chris@39 9448 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Chris@39 9449 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Chris@39 9450 else
Chris@39 9451 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'
Chris@39 9452 fi
Chris@39 9453 aix_use_runtimelinking=no
Chris@39 9454
Chris@39 9455 # Test if we are trying to use run time linking or normal
Chris@39 9456 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Chris@39 9457 # need to do runtime linking.
Chris@39 9458 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Chris@39 9459 for ld_flag in $LDFLAGS; do
Chris@39 9460 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
Chris@39 9461 aix_use_runtimelinking=yes
Chris@39 9462 break
Chris@39 9463 fi
Chris@39 9464 done
Chris@39 9465 ;;
Chris@39 9466 esac
Chris@39 9467
Chris@39 9468 exp_sym_flag='-bexport'
Chris@39 9469 no_entry_flag='-bnoentry'
Chris@39 9470 fi
Chris@39 9471
Chris@39 9472 # When large executables or shared objects are built, AIX ld can
Chris@39 9473 # have problems creating the table of contents. If linking a library
Chris@39 9474 # or program results in "error TOC overflow" add -mminimal-toc to
Chris@39 9475 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
Chris@39 9476 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
Chris@39 9477
Chris@39 9478 archive_cmds=''
Chris@39 9479 hardcode_direct=yes
Chris@39 9480 hardcode_direct_absolute=yes
Chris@39 9481 hardcode_libdir_separator=':'
Chris@39 9482 link_all_deplibs=yes
Chris@39 9483 file_list_spec='${wl}-f,'
Chris@39 9484
Chris@39 9485 if test "$GCC" = yes; then
Chris@39 9486 case $host_os in aix4.[012]|aix4.[012].*)
Chris@39 9487 # We only want to do this on AIX 4.2 and lower, the check
Chris@39 9488 # below for broken collect2 doesn't work under 4.3+
Chris@39 9489 collect2name=`${CC} -print-prog-name=collect2`
Chris@39 9490 if test -f "$collect2name" &&
Chris@39 9491 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Chris@39 9492 then
Chris@39 9493 # We have reworked collect2
Chris@39 9494 :
Chris@39 9495 else
Chris@39 9496 # We have old collect2
Chris@39 9497 hardcode_direct=unsupported
Chris@39 9498 # It fails to find uninstalled libraries when the uninstalled
Chris@39 9499 # path is not listed in the libpath. Setting hardcode_minus_L
Chris@39 9500 # to unsupported forces relinking
Chris@39 9501 hardcode_minus_L=yes
Chris@39 9502 hardcode_libdir_flag_spec='-L$libdir'
Chris@39 9503 hardcode_libdir_separator=
Chris@39 9504 fi
Chris@39 9505 ;;
Chris@39 9506 esac
Chris@39 9507 shared_flag='-shared'
Chris@39 9508 if test "$aix_use_runtimelinking" = yes; then
Chris@39 9509 shared_flag="$shared_flag "'${wl}-G'
Chris@39 9510 fi
Chris@39 9511 link_all_deplibs=no
Chris@39 9512 else
Chris@39 9513 # not using gcc
Chris@39 9514 if test "$host_cpu" = ia64; then
Chris@39 9515 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
Chris@39 9516 # chokes on -Wl,-G. The following line is correct:
Chris@39 9517 shared_flag='-G'
Chris@39 9518 else
Chris@39 9519 if test "$aix_use_runtimelinking" = yes; then
Chris@39 9520 shared_flag='${wl}-G'
Chris@39 9521 else
Chris@39 9522 shared_flag='${wl}-bM:SRE'
Chris@39 9523 fi
Chris@39 9524 fi
Chris@39 9525 fi
Chris@39 9526
Chris@39 9527 export_dynamic_flag_spec='${wl}-bexpall'
Chris@39 9528 # It seems that -bexpall does not export symbols beginning with
Chris@39 9529 # underscore (_), so it is better to generate a list of symbols to export.
Chris@39 9530 always_export_symbols=yes
Chris@39 9531 if test "$aix_use_runtimelinking" = yes; then
Chris@39 9532 # Warning - without using the other runtime loading flags (-brtl),
Chris@39 9533 # -berok will link without error, but may produce a broken library.
Chris@39 9534 allow_undefined_flag='-berok'
Chris@39 9535 # Determine the default libpath from the value encoded in an
Chris@39 9536 # empty executable.
Chris@39 9537 if test "${lt_cv_aix_libpath+set}" = set; then
Chris@39 9538 aix_libpath=$lt_cv_aix_libpath
Chris@39 9539 else
Chris@39 9540 if ${lt_cv_aix_libpath_+:} false; then :
Chris@39 9541 $as_echo_n "(cached) " >&6
Chris@39 9542 else
Chris@39 9543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 9544 /* end confdefs.h. */
Chris@39 9545
Chris@39 9546 int
Chris@39 9547 main ()
Chris@39 9548 {
Chris@39 9549
Chris@39 9550 ;
Chris@39 9551 return 0;
Chris@39 9552 }
Chris@39 9553 _ACEOF
Chris@39 9554 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 9555
Chris@39 9556 lt_aix_libpath_sed='
Chris@39 9557 /Import File Strings/,/^$/ {
Chris@39 9558 /^0/ {
Chris@39 9559 s/^0 *\([^ ]*\) *$/\1/
Chris@39 9560 p
Chris@39 9561 }
Chris@39 9562 }'
Chris@39 9563 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@39 9564 # Check for a 64-bit object if we didn't find anything.
Chris@39 9565 if test -z "$lt_cv_aix_libpath_"; then
Chris@39 9566 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@39 9567 fi
Chris@39 9568 fi
Chris@39 9569 rm -f core conftest.err conftest.$ac_objext \
Chris@39 9570 conftest$ac_exeext conftest.$ac_ext
Chris@39 9571 if test -z "$lt_cv_aix_libpath_"; then
Chris@39 9572 lt_cv_aix_libpath_="/usr/lib:/lib"
Chris@39 9573 fi
Chris@39 9574
Chris@39 9575 fi
Chris@39 9576
Chris@39 9577 aix_libpath=$lt_cv_aix_libpath_
Chris@39 9578 fi
Chris@39 9579
Chris@39 9580 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Chris@39 9581 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
Chris@39 9582 else
Chris@39 9583 if test "$host_cpu" = ia64; then
Chris@39 9584 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
Chris@39 9585 allow_undefined_flag="-z nodefs"
Chris@39 9586 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"
Chris@39 9587 else
Chris@39 9588 # Determine the default libpath from the value encoded in an
Chris@39 9589 # empty executable.
Chris@39 9590 if test "${lt_cv_aix_libpath+set}" = set; then
Chris@39 9591 aix_libpath=$lt_cv_aix_libpath
Chris@39 9592 else
Chris@39 9593 if ${lt_cv_aix_libpath_+:} false; then :
Chris@39 9594 $as_echo_n "(cached) " >&6
Chris@39 9595 else
Chris@39 9596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 9597 /* end confdefs.h. */
Chris@39 9598
Chris@39 9599 int
Chris@39 9600 main ()
Chris@39 9601 {
Chris@39 9602
Chris@39 9603 ;
Chris@39 9604 return 0;
Chris@39 9605 }
Chris@39 9606 _ACEOF
Chris@39 9607 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 9608
Chris@39 9609 lt_aix_libpath_sed='
Chris@39 9610 /Import File Strings/,/^$/ {
Chris@39 9611 /^0/ {
Chris@39 9612 s/^0 *\([^ ]*\) *$/\1/
Chris@39 9613 p
Chris@39 9614 }
Chris@39 9615 }'
Chris@39 9616 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@39 9617 # Check for a 64-bit object if we didn't find anything.
Chris@39 9618 if test -z "$lt_cv_aix_libpath_"; then
Chris@39 9619 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@39 9620 fi
Chris@39 9621 fi
Chris@39 9622 rm -f core conftest.err conftest.$ac_objext \
Chris@39 9623 conftest$ac_exeext conftest.$ac_ext
Chris@39 9624 if test -z "$lt_cv_aix_libpath_"; then
Chris@39 9625 lt_cv_aix_libpath_="/usr/lib:/lib"
Chris@39 9626 fi
Chris@39 9627
Chris@39 9628 fi
Chris@39 9629
Chris@39 9630 aix_libpath=$lt_cv_aix_libpath_
Chris@39 9631 fi
Chris@39 9632
Chris@39 9633 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Chris@39 9634 # Warning - without using the other run time loading flags,
Chris@39 9635 # -berok will link without error, but may produce a broken library.
Chris@39 9636 no_undefined_flag=' ${wl}-bernotok'
Chris@39 9637 allow_undefined_flag=' ${wl}-berok'
Chris@39 9638 if test "$with_gnu_ld" = yes; then
Chris@39 9639 # We only use this code for GNU lds that support --whole-archive.
Chris@39 9640 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
Chris@39 9641 else
Chris@39 9642 # Exported symbols can be pulled into shared objects from archives
Chris@39 9643 whole_archive_flag_spec='$convenience'
Chris@39 9644 fi
Chris@39 9645 archive_cmds_need_lc=yes
Chris@39 9646 # This is similar to how AIX traditionally builds its shared libraries.
Chris@39 9647 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'
Chris@39 9648 fi
Chris@39 9649 fi
Chris@39 9650 ;;
Chris@39 9651
Chris@39 9652 amigaos*)
Chris@39 9653 case $host_cpu in
Chris@39 9654 powerpc)
Chris@39 9655 # see comment about AmigaOS4 .so support
Chris@39 9656 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 9657 archive_expsym_cmds=''
Chris@39 9658 ;;
Chris@39 9659 m68k)
Chris@39 9660 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)'
Chris@39 9661 hardcode_libdir_flag_spec='-L$libdir'
Chris@39 9662 hardcode_minus_L=yes
Chris@39 9663 ;;
Chris@39 9664 esac
Chris@39 9665 ;;
Chris@39 9666
Chris@39 9667 bsdi[45]*)
Chris@39 9668 export_dynamic_flag_spec=-rdynamic
Chris@39 9669 ;;
Chris@39 9670
Chris@39 9671 cygwin* | mingw* | pw32* | cegcc*)
Chris@39 9672 # When not using gcc, we currently assume that we are using
Chris@39 9673 # Microsoft Visual C++.
Chris@39 9674 # hardcode_libdir_flag_spec is actually meaningless, as there is
Chris@39 9675 # no search path for DLLs.
Chris@39 9676 case $cc_basename in
Chris@39 9677 cl*)
Chris@39 9678 # Native MSVC
Chris@39 9679 hardcode_libdir_flag_spec=' '
Chris@39 9680 allow_undefined_flag=unsupported
Chris@39 9681 always_export_symbols=yes
Chris@39 9682 file_list_spec='@'
Chris@39 9683 # Tell ltmain to make .lib files, not .a files.
Chris@39 9684 libext=lib
Chris@39 9685 # Tell ltmain to make .dll files, not .so files.
Chris@39 9686 shrext_cmds=".dll"
Chris@39 9687 # FIXME: Setting linknames here is a bad hack.
Chris@39 9688 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
Chris@39 9689 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
Chris@39 9690 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
Chris@39 9691 else
Chris@39 9692 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
Chris@39 9693 fi~
Chris@39 9694 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
Chris@39 9695 linknames='
Chris@39 9696 # The linker will not automatically build a static lib if we build a DLL.
Chris@39 9697 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
Chris@39 9698 enable_shared_with_static_runtimes=yes
Chris@39 9699 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
Chris@39 9700 # Don't use ranlib
Chris@39 9701 old_postinstall_cmds='chmod 644 $oldlib'
Chris@39 9702 postlink_cmds='lt_outputfile="@OUTPUT@"~
Chris@39 9703 lt_tool_outputfile="@TOOL_OUTPUT@"~
Chris@39 9704 case $lt_outputfile in
Chris@39 9705 *.exe|*.EXE) ;;
Chris@39 9706 *)
Chris@39 9707 lt_outputfile="$lt_outputfile.exe"
Chris@39 9708 lt_tool_outputfile="$lt_tool_outputfile.exe"
Chris@39 9709 ;;
Chris@39 9710 esac~
Chris@39 9711 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
Chris@39 9712 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
Chris@39 9713 $RM "$lt_outputfile.manifest";
Chris@39 9714 fi'
Chris@39 9715 ;;
Chris@39 9716 *)
Chris@39 9717 # Assume MSVC wrapper
Chris@39 9718 hardcode_libdir_flag_spec=' '
Chris@39 9719 allow_undefined_flag=unsupported
Chris@39 9720 # Tell ltmain to make .lib files, not .a files.
Chris@39 9721 libext=lib
Chris@39 9722 # Tell ltmain to make .dll files, not .so files.
Chris@39 9723 shrext_cmds=".dll"
Chris@39 9724 # FIXME: Setting linknames here is a bad hack.
Chris@39 9725 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
Chris@39 9726 # The linker will automatically build a .lib file if we build a DLL.
Chris@39 9727 old_archive_from_new_cmds='true'
Chris@39 9728 # FIXME: Should let the user specify the lib program.
Chris@39 9729 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
Chris@39 9730 enable_shared_with_static_runtimes=yes
Chris@39 9731 ;;
Chris@39 9732 esac
Chris@39 9733 ;;
Chris@39 9734
Chris@39 9735 darwin* | rhapsody*)
Chris@39 9736
Chris@39 9737
Chris@39 9738 archive_cmds_need_lc=no
Chris@39 9739 hardcode_direct=no
Chris@39 9740 hardcode_automatic=yes
Chris@39 9741 hardcode_shlibpath_var=unsupported
Chris@39 9742 if test "$lt_cv_ld_force_load" = "yes"; then
Chris@39 9743 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
Chris@39 9744 else
Chris@39 9745 whole_archive_flag_spec=''
Chris@39 9746 fi
Chris@39 9747 link_all_deplibs=yes
Chris@39 9748 allow_undefined_flag="$_lt_dar_allow_undefined"
Chris@39 9749 case $cc_basename in
Chris@39 9750 ifort*) _lt_dar_can_shared=yes ;;
Chris@39 9751 *) _lt_dar_can_shared=$GCC ;;
Chris@39 9752 esac
Chris@39 9753 if test "$_lt_dar_can_shared" = "yes"; then
Chris@39 9754 output_verbose_link_cmd=func_echo_all
Chris@39 9755 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
Chris@39 9756 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
Chris@39 9757 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}"
Chris@39 9758 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}"
Chris@39 9759
Chris@39 9760 else
Chris@39 9761 ld_shlibs=no
Chris@39 9762 fi
Chris@39 9763
Chris@39 9764 ;;
Chris@39 9765
Chris@39 9766 dgux*)
Chris@39 9767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@39 9768 hardcode_libdir_flag_spec='-L$libdir'
Chris@39 9769 hardcode_shlibpath_var=no
Chris@39 9770 ;;
Chris@39 9771
Chris@39 9772 freebsd1*)
Chris@39 9773 ld_shlibs=no
Chris@39 9774 ;;
Chris@39 9775
Chris@39 9776 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
Chris@39 9777 # support. Future versions do this automatically, but an explicit c++rt0.o
Chris@39 9778 # does not break anything, and helps significantly (at the cost of a little
Chris@39 9779 # extra space).
Chris@39 9780 freebsd2.2*)
Chris@39 9781 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
Chris@39 9782 hardcode_libdir_flag_spec='-R$libdir'
Chris@39 9783 hardcode_direct=yes
Chris@39 9784 hardcode_shlibpath_var=no
Chris@39 9785 ;;
Chris@39 9786
Chris@39 9787 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Chris@39 9788 freebsd2*)
Chris@39 9789 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@39 9790 hardcode_direct=yes
Chris@39 9791 hardcode_minus_L=yes
Chris@39 9792 hardcode_shlibpath_var=no
Chris@39 9793 ;;
Chris@39 9794
Chris@39 9795 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Chris@39 9796 freebsd* | dragonfly*)
Chris@39 9797 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 9798 hardcode_libdir_flag_spec='-R$libdir'
Chris@39 9799 hardcode_direct=yes
Chris@39 9800 hardcode_shlibpath_var=no
Chris@39 9801 ;;
Chris@39 9802
Chris@39 9803 hpux9*)
Chris@39 9804 if test "$GCC" = yes; then
Chris@39 9805 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
Chris@39 9806 else
Chris@39 9807 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'
Chris@39 9808 fi
Chris@39 9809 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Chris@39 9810 hardcode_libdir_separator=:
Chris@39 9811 hardcode_direct=yes
Chris@39 9812
Chris@39 9813 # hardcode_minus_L: Not really in the search PATH,
Chris@39 9814 # but as the default location of the library.
Chris@39 9815 hardcode_minus_L=yes
Chris@39 9816 export_dynamic_flag_spec='${wl}-E'
Chris@39 9817 ;;
Chris@39 9818
Chris@39 9819 hpux10*)
Chris@39 9820 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
Chris@39 9821 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 9822 else
Chris@39 9823 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
Chris@39 9824 fi
Chris@39 9825 if test "$with_gnu_ld" = no; then
Chris@39 9826 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Chris@39 9827 hardcode_libdir_flag_spec_ld='+b $libdir'
Chris@39 9828 hardcode_libdir_separator=:
Chris@39 9829 hardcode_direct=yes
Chris@39 9830 hardcode_direct_absolute=yes
Chris@39 9831 export_dynamic_flag_spec='${wl}-E'
Chris@39 9832 # hardcode_minus_L: Not really in the search PATH,
Chris@39 9833 # but as the default location of the library.
Chris@39 9834 hardcode_minus_L=yes
Chris@39 9835 fi
Chris@39 9836 ;;
Chris@39 9837
Chris@39 9838 hpux11*)
Chris@39 9839 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
Chris@39 9840 case $host_cpu in
Chris@39 9841 hppa*64*)
Chris@39 9842 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 9843 ;;
Chris@39 9844 ia64*)
Chris@39 9845 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 9846 ;;
Chris@39 9847 *)
Chris@39 9848 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 9849 ;;
Chris@39 9850 esac
Chris@39 9851 else
Chris@39 9852 case $host_cpu in
Chris@39 9853 hppa*64*)
Chris@39 9854 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 9855 ;;
Chris@39 9856 ia64*)
Chris@39 9857 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 9858 ;;
Chris@39 9859 *)
Chris@39 9860
Chris@39 9861 # Older versions of the 11.00 compiler do not understand -b yet
Chris@39 9862 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
Chris@39 9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
Chris@39 9864 $as_echo_n "checking if $CC understands -b... " >&6; }
Chris@39 9865 if ${lt_cv_prog_compiler__b+:} false; then :
Chris@39 9866 $as_echo_n "(cached) " >&6
Chris@39 9867 else
Chris@39 9868 lt_cv_prog_compiler__b=no
Chris@39 9869 save_LDFLAGS="$LDFLAGS"
Chris@39 9870 LDFLAGS="$LDFLAGS -b"
Chris@39 9871 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Chris@39 9872 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Chris@39 9873 # The linker can only warn and ignore the option if not recognized
Chris@39 9874 # So say no if there are warnings
Chris@39 9875 if test -s conftest.err; then
Chris@39 9876 # Append any errors to the config.log.
Chris@39 9877 cat conftest.err 1>&5
Chris@39 9878 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Chris@39 9879 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@39 9880 if diff conftest.exp conftest.er2 >/dev/null; then
Chris@39 9881 lt_cv_prog_compiler__b=yes
Chris@39 9882 fi
Chris@39 9883 else
Chris@39 9884 lt_cv_prog_compiler__b=yes
Chris@39 9885 fi
Chris@39 9886 fi
Chris@39 9887 $RM -r conftest*
Chris@39 9888 LDFLAGS="$save_LDFLAGS"
Chris@39 9889
Chris@39 9890 fi
Chris@39 9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
Chris@39 9892 $as_echo "$lt_cv_prog_compiler__b" >&6; }
Chris@39 9893
Chris@39 9894 if test x"$lt_cv_prog_compiler__b" = xyes; then
Chris@39 9895 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 9896 else
Chris@39 9897 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
Chris@39 9898 fi
Chris@39 9899
Chris@39 9900 ;;
Chris@39 9901 esac
Chris@39 9902 fi
Chris@39 9903 if test "$with_gnu_ld" = no; then
Chris@39 9904 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Chris@39 9905 hardcode_libdir_separator=:
Chris@39 9906
Chris@39 9907 case $host_cpu in
Chris@39 9908 hppa*64*|ia64*)
Chris@39 9909 hardcode_direct=no
Chris@39 9910 hardcode_shlibpath_var=no
Chris@39 9911 ;;
Chris@39 9912 *)
Chris@39 9913 hardcode_direct=yes
Chris@39 9914 hardcode_direct_absolute=yes
Chris@39 9915 export_dynamic_flag_spec='${wl}-E'
Chris@39 9916
Chris@39 9917 # hardcode_minus_L: Not really in the search PATH,
Chris@39 9918 # but as the default location of the library.
Chris@39 9919 hardcode_minus_L=yes
Chris@39 9920 ;;
Chris@39 9921 esac
Chris@39 9922 fi
Chris@39 9923 ;;
Chris@39 9924
Chris@39 9925 irix5* | irix6* | nonstopux*)
Chris@39 9926 if test "$GCC" = yes; then
Chris@39 9927 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Chris@39 9928 # Try to use the -exported_symbol ld option, if it does not
Chris@39 9929 # work, assume that -exports_file does not work either and
Chris@39 9930 # implicitly export all symbols.
Chris@39 9931 # This should be the same for all languages, so no per-tag cache variable.
Chris@39 9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
Chris@39 9933 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
Chris@39 9934 if ${lt_cv_irix_exported_symbol+:} false; then :
Chris@39 9935 $as_echo_n "(cached) " >&6
Chris@39 9936 else
Chris@39 9937 save_LDFLAGS="$LDFLAGS"
Chris@39 9938 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
Chris@39 9939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 9940 /* end confdefs.h. */
Chris@39 9941 int foo (void) { return 0; }
Chris@39 9942 _ACEOF
Chris@39 9943 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 9944 lt_cv_irix_exported_symbol=yes
Chris@39 9945 else
Chris@39 9946 lt_cv_irix_exported_symbol=no
Chris@39 9947 fi
Chris@39 9948 rm -f core conftest.err conftest.$ac_objext \
Chris@39 9949 conftest$ac_exeext conftest.$ac_ext
Chris@39 9950 LDFLAGS="$save_LDFLAGS"
Chris@39 9951 fi
Chris@39 9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
Chris@39 9953 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
Chris@39 9954 if test "$lt_cv_irix_exported_symbol" = yes; then
Chris@39 9955 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
Chris@39 9956 fi
Chris@39 9957 else
Chris@39 9958 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
Chris@39 9959 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
Chris@39 9960 fi
Chris@39 9961 archive_cmds_need_lc='no'
Chris@39 9962 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@39 9963 hardcode_libdir_separator=:
Chris@39 9964 inherit_rpath=yes
Chris@39 9965 link_all_deplibs=yes
Chris@39 9966 ;;
Chris@39 9967
Chris@39 9968 netbsd* | netbsdelf*-gnu)
Chris@39 9969 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@39 9970 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
Chris@39 9971 else
Chris@39 9972 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
Chris@39 9973 fi
Chris@39 9974 hardcode_libdir_flag_spec='-R$libdir'
Chris@39 9975 hardcode_direct=yes
Chris@39 9976 hardcode_shlibpath_var=no
Chris@39 9977 ;;
Chris@39 9978
Chris@39 9979 newsos6)
Chris@39 9980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@39 9981 hardcode_direct=yes
Chris@39 9982 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@39 9983 hardcode_libdir_separator=:
Chris@39 9984 hardcode_shlibpath_var=no
Chris@39 9985 ;;
Chris@39 9986
Chris@39 9987 *nto* | *qnx*)
Chris@39 9988 ;;
Chris@39 9989
Chris@39 9990 openbsd*)
Chris@39 9991 if test -f /usr/libexec/ld.so; then
Chris@39 9992 hardcode_direct=yes
Chris@39 9993 hardcode_shlibpath_var=no
Chris@39 9994 hardcode_direct_absolute=yes
Chris@39 9995 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@39 9996 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 9997 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
Chris@39 9998 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
Chris@39 9999 export_dynamic_flag_spec='${wl}-E'
Chris@39 10000 else
Chris@39 10001 case $host_os in
Chris@39 10002 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
Chris@39 10003 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@39 10004 hardcode_libdir_flag_spec='-R$libdir'
Chris@39 10005 ;;
Chris@39 10006 *)
Chris@39 10007 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 10008 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
Chris@39 10009 ;;
Chris@39 10010 esac
Chris@39 10011 fi
Chris@39 10012 else
Chris@39 10013 ld_shlibs=no
Chris@39 10014 fi
Chris@39 10015 ;;
Chris@39 10016
Chris@39 10017 os2*)
Chris@39 10018 hardcode_libdir_flag_spec='-L$libdir'
Chris@39 10019 hardcode_minus_L=yes
Chris@39 10020 allow_undefined_flag=unsupported
Chris@39 10021 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'
Chris@39 10022 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
Chris@39 10023 ;;
Chris@39 10024
Chris@39 10025 osf3*)
Chris@39 10026 if test "$GCC" = yes; then
Chris@39 10027 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Chris@39 10028 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Chris@39 10029 else
Chris@39 10030 allow_undefined_flag=' -expect_unresolved \*'
Chris@39 10031 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
Chris@39 10032 fi
Chris@39 10033 archive_cmds_need_lc='no'
Chris@39 10034 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@39 10035 hardcode_libdir_separator=:
Chris@39 10036 ;;
Chris@39 10037
Chris@39 10038 osf4* | osf5*) # as osf3* with the addition of -msym flag
Chris@39 10039 if test "$GCC" = yes; then
Chris@39 10040 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Chris@39 10041 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Chris@39 10042 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@39 10043 else
Chris@39 10044 allow_undefined_flag=' -expect_unresolved \*'
Chris@39 10045 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
Chris@39 10046 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~
Chris@39 10047 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
Chris@39 10048
Chris@39 10049 # Both c and cxx compiler support -rpath directly
Chris@39 10050 hardcode_libdir_flag_spec='-rpath $libdir'
Chris@39 10051 fi
Chris@39 10052 archive_cmds_need_lc='no'
Chris@39 10053 hardcode_libdir_separator=:
Chris@39 10054 ;;
Chris@39 10055
Chris@39 10056 solaris*)
Chris@39 10057 no_undefined_flag=' -z defs'
Chris@39 10058 if test "$GCC" = yes; then
Chris@39 10059 wlarc='${wl}'
Chris@39 10060 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 10061 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@39 10062 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Chris@39 10063 else
Chris@39 10064 case `$CC -V 2>&1` in
Chris@39 10065 *"Compilers 5.0"*)
Chris@39 10066 wlarc=''
Chris@39 10067 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@39 10068 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@39 10069 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
Chris@39 10070 ;;
Chris@39 10071 *)
Chris@39 10072 wlarc='${wl}'
Chris@39 10073 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 10074 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@39 10075 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Chris@39 10076 ;;
Chris@39 10077 esac
Chris@39 10078 fi
Chris@39 10079 hardcode_libdir_flag_spec='-R$libdir'
Chris@39 10080 hardcode_shlibpath_var=no
Chris@39 10081 case $host_os in
Chris@39 10082 solaris2.[0-5] | solaris2.[0-5].*) ;;
Chris@39 10083 *)
Chris@39 10084 # The compiler driver will combine and reorder linker options,
Chris@39 10085 # but understands `-z linker_flag'. GCC discards it without `$wl',
Chris@39 10086 # but is careful enough not to reorder.
Chris@39 10087 # Supported since Solaris 2.6 (maybe 2.5.1?)
Chris@39 10088 if test "$GCC" = yes; then
Chris@39 10089 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
Chris@39 10090 else
Chris@39 10091 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
Chris@39 10092 fi
Chris@39 10093 ;;
Chris@39 10094 esac
Chris@39 10095 link_all_deplibs=yes
Chris@39 10096 ;;
Chris@39 10097
Chris@39 10098 sunos4*)
Chris@39 10099 if test "x$host_vendor" = xsequent; then
Chris@39 10100 # Use $CC to link under sequent, because it throws in some extra .o
Chris@39 10101 # files that make .init and .fini sections work.
Chris@39 10102 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 10103 else
Chris@39 10104 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
Chris@39 10105 fi
Chris@39 10106 hardcode_libdir_flag_spec='-L$libdir'
Chris@39 10107 hardcode_direct=yes
Chris@39 10108 hardcode_minus_L=yes
Chris@39 10109 hardcode_shlibpath_var=no
Chris@39 10110 ;;
Chris@39 10111
Chris@39 10112 sysv4)
Chris@39 10113 case $host_vendor in
Chris@39 10114 sni)
Chris@39 10115 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@39 10116 hardcode_direct=yes # is this really true???
Chris@39 10117 ;;
Chris@39 10118 siemens)
Chris@39 10119 ## LD is ld it makes a PLAMLIB
Chris@39 10120 ## CC just makes a GrossModule.
Chris@39 10121 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
Chris@39 10122 reload_cmds='$CC -r -o $output$reload_objs'
Chris@39 10123 hardcode_direct=no
Chris@39 10124 ;;
Chris@39 10125 motorola)
Chris@39 10126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@39 10127 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
Chris@39 10128 ;;
Chris@39 10129 esac
Chris@39 10130 runpath_var='LD_RUN_PATH'
Chris@39 10131 hardcode_shlibpath_var=no
Chris@39 10132 ;;
Chris@39 10133
Chris@39 10134 sysv4.3*)
Chris@39 10135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@39 10136 hardcode_shlibpath_var=no
Chris@39 10137 export_dynamic_flag_spec='-Bexport'
Chris@39 10138 ;;
Chris@39 10139
Chris@39 10140 sysv4*MP*)
Chris@39 10141 if test -d /usr/nec; then
Chris@39 10142 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@39 10143 hardcode_shlibpath_var=no
Chris@39 10144 runpath_var=LD_RUN_PATH
Chris@39 10145 hardcode_runpath_var=yes
Chris@39 10146 ld_shlibs=yes
Chris@39 10147 fi
Chris@39 10148 ;;
Chris@39 10149
Chris@39 10150 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Chris@39 10151 no_undefined_flag='${wl}-z,text'
Chris@39 10152 archive_cmds_need_lc=no
Chris@39 10153 hardcode_shlibpath_var=no
Chris@39 10154 runpath_var='LD_RUN_PATH'
Chris@39 10155
Chris@39 10156 if test "$GCC" = yes; then
Chris@39 10157 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 10158 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 10159 else
Chris@39 10160 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 10161 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 10162 fi
Chris@39 10163 ;;
Chris@39 10164
Chris@39 10165 sysv5* | sco3.2v5* | sco5v6*)
Chris@39 10166 # Note: We can NOT use -z defs as we might desire, because we do not
Chris@39 10167 # link with -lc, and that would cause any symbols used from libc to
Chris@39 10168 # always be unresolved, which means just about no library would
Chris@39 10169 # ever link correctly. If we're not using GNU ld we use -z text
Chris@39 10170 # though, which does catch some bad symbols but isn't as heavy-handed
Chris@39 10171 # as -z defs.
Chris@39 10172 no_undefined_flag='${wl}-z,text'
Chris@39 10173 allow_undefined_flag='${wl}-z,nodefs'
Chris@39 10174 archive_cmds_need_lc=no
Chris@39 10175 hardcode_shlibpath_var=no
Chris@39 10176 hardcode_libdir_flag_spec='${wl}-R,$libdir'
Chris@39 10177 hardcode_libdir_separator=':'
Chris@39 10178 link_all_deplibs=yes
Chris@39 10179 export_dynamic_flag_spec='${wl}-Bexport'
Chris@39 10180 runpath_var='LD_RUN_PATH'
Chris@39 10181
Chris@39 10182 if test "$GCC" = yes; then
Chris@39 10183 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 10184 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 10185 else
Chris@39 10186 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 10187 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 10188 fi
Chris@39 10189 ;;
Chris@39 10190
Chris@39 10191 uts4*)
Chris@39 10192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@39 10193 hardcode_libdir_flag_spec='-L$libdir'
Chris@39 10194 hardcode_shlibpath_var=no
Chris@39 10195 ;;
Chris@39 10196
Chris@39 10197 *)
Chris@39 10198 ld_shlibs=no
Chris@39 10199 ;;
Chris@39 10200 esac
Chris@39 10201
Chris@39 10202 if test x$host_vendor = xsni; then
Chris@39 10203 case $host in
Chris@39 10204 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Chris@39 10205 export_dynamic_flag_spec='${wl}-Blargedynsym'
Chris@39 10206 ;;
Chris@39 10207 esac
Chris@39 10208 fi
Chris@39 10209 fi
Chris@39 10210
Chris@39 10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
Chris@39 10212 $as_echo "$ld_shlibs" >&6; }
Chris@39 10213 test "$ld_shlibs" = no && can_build_shared=no
Chris@39 10214
Chris@39 10215 with_gnu_ld=$with_gnu_ld
Chris@39 10216
Chris@39 10217
Chris@39 10218
Chris@39 10219
Chris@39 10220
Chris@39 10221
Chris@39 10222
Chris@39 10223
Chris@39 10224
Chris@39 10225
Chris@39 10226
Chris@39 10227
Chris@39 10228
Chris@39 10229
Chris@39 10230
Chris@39 10231 #
Chris@39 10232 # Do we need to explicitly link libc?
Chris@39 10233 #
Chris@39 10234 case "x$archive_cmds_need_lc" in
Chris@39 10235 x|xyes)
Chris@39 10236 # Assume -lc should be added
Chris@39 10237 archive_cmds_need_lc=yes
Chris@39 10238
Chris@39 10239 if test "$enable_shared" = yes && test "$GCC" = yes; then
Chris@39 10240 case $archive_cmds in
Chris@39 10241 *'~'*)
Chris@39 10242 # FIXME: we may have to deal with multi-command sequences.
Chris@39 10243 ;;
Chris@39 10244 '$CC '*)
Chris@39 10245 # Test whether the compiler implicitly links with -lc since on some
Chris@39 10246 # systems, -lgcc has to come before -lc. If gcc already passes -lc
Chris@39 10247 # to ld, don't add -lc before -lgcc.
Chris@39 10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Chris@39 10249 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Chris@39 10250 if ${lt_cv_archive_cmds_need_lc+:} false; then :
Chris@39 10251 $as_echo_n "(cached) " >&6
Chris@39 10252 else
Chris@39 10253 $RM conftest*
Chris@39 10254 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@39 10255
Chris@39 10256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@39 10257 (eval $ac_compile) 2>&5
Chris@39 10258 ac_status=$?
Chris@39 10259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 10260 test $ac_status = 0; } 2>conftest.err; then
Chris@39 10261 soname=conftest
Chris@39 10262 lib=conftest
Chris@39 10263 libobjs=conftest.$ac_objext
Chris@39 10264 deplibs=
Chris@39 10265 wl=$lt_prog_compiler_wl
Chris@39 10266 pic_flag=$lt_prog_compiler_pic
Chris@39 10267 compiler_flags=-v
Chris@39 10268 linker_flags=-v
Chris@39 10269 verstring=
Chris@39 10270 output_objdir=.
Chris@39 10271 libname=conftest
Chris@39 10272 lt_save_allow_undefined_flag=$allow_undefined_flag
Chris@39 10273 allow_undefined_flag=
Chris@39 10274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Chris@39 10275 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Chris@39 10276 ac_status=$?
Chris@39 10277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 10278 test $ac_status = 0; }
Chris@39 10279 then
Chris@39 10280 lt_cv_archive_cmds_need_lc=no
Chris@39 10281 else
Chris@39 10282 lt_cv_archive_cmds_need_lc=yes
Chris@39 10283 fi
Chris@39 10284 allow_undefined_flag=$lt_save_allow_undefined_flag
Chris@39 10285 else
Chris@39 10286 cat conftest.err 1>&5
Chris@39 10287 fi
Chris@39 10288 $RM conftest*
Chris@39 10289
Chris@39 10290 fi
Chris@39 10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
Chris@39 10292 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
Chris@39 10293 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Chris@39 10294 ;;
Chris@39 10295 esac
Chris@39 10296 fi
Chris@39 10297 ;;
Chris@39 10298 esac
Chris@39 10299
Chris@39 10300
Chris@39 10301
Chris@39 10302
Chris@39 10303
Chris@39 10304
Chris@39 10305
Chris@39 10306
Chris@39 10307
Chris@39 10308
Chris@39 10309
Chris@39 10310
Chris@39 10311
Chris@39 10312
Chris@39 10313
Chris@39 10314
Chris@39 10315
Chris@39 10316
Chris@39 10317
Chris@39 10318
Chris@39 10319
Chris@39 10320
Chris@39 10321
Chris@39 10322
Chris@39 10323
Chris@39 10324
Chris@39 10325
Chris@39 10326
Chris@39 10327
Chris@39 10328
Chris@39 10329
Chris@39 10330
Chris@39 10331
Chris@39 10332
Chris@39 10333
Chris@39 10334
Chris@39 10335
Chris@39 10336
Chris@39 10337
Chris@39 10338
Chris@39 10339
Chris@39 10340
Chris@39 10341
Chris@39 10342
Chris@39 10343
Chris@39 10344
Chris@39 10345
Chris@39 10346
Chris@39 10347
Chris@39 10348
Chris@39 10349
Chris@39 10350
Chris@39 10351
Chris@39 10352
Chris@39 10353
Chris@39 10354
Chris@39 10355
Chris@39 10356
Chris@39 10357
Chris@39 10358
Chris@39 10359
Chris@39 10360
Chris@39 10361
Chris@39 10362
Chris@39 10363
Chris@39 10364
Chris@39 10365
Chris@39 10366
Chris@39 10367
Chris@39 10368
Chris@39 10369
Chris@39 10370
Chris@39 10371
Chris@39 10372
Chris@39 10373
Chris@39 10374
Chris@39 10375
Chris@39 10376
Chris@39 10377
Chris@39 10378
Chris@39 10379
Chris@39 10380
Chris@39 10381
Chris@39 10382
Chris@39 10383
Chris@39 10384
Chris@39 10385
Chris@39 10386
Chris@39 10387
Chris@39 10388
Chris@39 10389
Chris@39 10390
Chris@39 10391
Chris@39 10392
Chris@39 10393
Chris@39 10394
Chris@39 10395
Chris@39 10396
Chris@39 10397
Chris@39 10398
Chris@39 10399
Chris@39 10400
Chris@39 10401
Chris@39 10402
Chris@39 10403
Chris@39 10404
Chris@39 10405
Chris@39 10406
Chris@39 10407
Chris@39 10408
Chris@39 10409
Chris@39 10410
Chris@39 10411
Chris@39 10412
Chris@39 10413
Chris@39 10414
Chris@39 10415
Chris@39 10416
Chris@39 10417
Chris@39 10418
Chris@39 10419
Chris@39 10420
Chris@39 10421
Chris@39 10422
Chris@39 10423
Chris@39 10424
Chris@39 10425
Chris@39 10426
Chris@39 10427
Chris@39 10428
Chris@39 10429
Chris@39 10430
Chris@39 10431
Chris@39 10432
Chris@39 10433
Chris@39 10434
Chris@39 10435
Chris@39 10436
Chris@39 10437
Chris@39 10438
Chris@39 10439
Chris@39 10440
Chris@39 10441
Chris@39 10442
Chris@39 10443
Chris@39 10444
Chris@39 10445
Chris@39 10446
Chris@39 10447
Chris@39 10448
Chris@39 10449
Chris@39 10450
Chris@39 10451
Chris@39 10452
Chris@39 10453
Chris@39 10454
Chris@39 10455
Chris@39 10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Chris@39 10457 $as_echo_n "checking dynamic linker characteristics... " >&6; }
Chris@39 10458
Chris@39 10459 if test "$GCC" = yes; then
Chris@39 10460 case $host_os in
Chris@39 10461 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
Chris@39 10462 *) lt_awk_arg="/^libraries:/" ;;
Chris@39 10463 esac
Chris@39 10464 case $host_os in
Chris@39 10465 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
Chris@39 10466 *) lt_sed_strip_eq="s,=/,/,g" ;;
Chris@39 10467 esac
Chris@39 10468 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
Chris@39 10469 case $lt_search_path_spec in
Chris@39 10470 *\;*)
Chris@39 10471 # if the path contains ";" then we assume it to be the separator
Chris@39 10472 # otherwise default to the standard path separator (i.e. ":") - it is
Chris@39 10473 # assumed that no part of a normal pathname contains ";" but that should
Chris@39 10474 # okay in the real world where ";" in dirpaths is itself problematic.
Chris@39 10475 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
Chris@39 10476 ;;
Chris@39 10477 *)
Chris@39 10478 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
Chris@39 10479 ;;
Chris@39 10480 esac
Chris@39 10481 # Ok, now we have the path, separated by spaces, we can step through it
Chris@39 10482 # and add multilib dir if necessary.
Chris@39 10483 lt_tmp_lt_search_path_spec=
Chris@39 10484 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
Chris@39 10485 for lt_sys_path in $lt_search_path_spec; do
Chris@39 10486 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
Chris@39 10487 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
Chris@39 10488 else
Chris@39 10489 test -d "$lt_sys_path" && \
Chris@39 10490 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
Chris@39 10491 fi
Chris@39 10492 done
Chris@39 10493 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Chris@39 10494 BEGIN {RS=" "; FS="/|\n";} {
Chris@39 10495 lt_foo="";
Chris@39 10496 lt_count=0;
Chris@39 10497 for (lt_i = NF; lt_i > 0; lt_i--) {
Chris@39 10498 if ($lt_i != "" && $lt_i != ".") {
Chris@39 10499 if ($lt_i == "..") {
Chris@39 10500 lt_count++;
Chris@39 10501 } else {
Chris@39 10502 if (lt_count == 0) {
Chris@39 10503 lt_foo="/" $lt_i lt_foo;
Chris@39 10504 } else {
Chris@39 10505 lt_count--;
Chris@39 10506 }
Chris@39 10507 }
Chris@39 10508 }
Chris@39 10509 }
Chris@39 10510 if (lt_foo != "") { lt_freq[lt_foo]++; }
Chris@39 10511 if (lt_freq[lt_foo] == 1) { print lt_foo; }
Chris@39 10512 }'`
Chris@39 10513 # AWK program above erroneously prepends '/' to C:/dos/paths
Chris@39 10514 # for these hosts.
Chris@39 10515 case $host_os in
Chris@39 10516 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
Chris@39 10517 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
Chris@39 10518 esac
Chris@39 10519 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Chris@39 10520 else
Chris@39 10521 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Chris@39 10522 fi
Chris@39 10523 library_names_spec=
Chris@39 10524 libname_spec='lib$name'
Chris@39 10525 soname_spec=
Chris@39 10526 shrext_cmds=".so"
Chris@39 10527 postinstall_cmds=
Chris@39 10528 postuninstall_cmds=
Chris@39 10529 finish_cmds=
Chris@39 10530 finish_eval=
Chris@39 10531 shlibpath_var=
Chris@39 10532 shlibpath_overrides_runpath=unknown
Chris@39 10533 version_type=none
Chris@39 10534 dynamic_linker="$host_os ld.so"
Chris@39 10535 sys_lib_dlsearch_path_spec="/lib /usr/lib"
Chris@39 10536 need_lib_prefix=unknown
Chris@39 10537 hardcode_into_libs=no
Chris@39 10538
Chris@39 10539 # when you set need_version to no, make sure it does not cause -set_version
Chris@39 10540 # flags to be left without arguments
Chris@39 10541 need_version=unknown
Chris@39 10542
Chris@39 10543 case $host_os in
Chris@39 10544 aix3*)
Chris@39 10545 version_type=linux
Chris@39 10546 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
Chris@39 10547 shlibpath_var=LIBPATH
Chris@39 10548
Chris@39 10549 # AIX 3 has no versioning support, so we append a major version to the name.
Chris@39 10550 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10551 ;;
Chris@39 10552
Chris@39 10553 aix[4-9]*)
Chris@39 10554 version_type=linux
Chris@39 10555 need_lib_prefix=no
Chris@39 10556 need_version=no
Chris@39 10557 hardcode_into_libs=yes
Chris@39 10558 if test "$host_cpu" = ia64; then
Chris@39 10559 # AIX 5 supports IA64
Chris@39 10560 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
Chris@39 10561 shlibpath_var=LD_LIBRARY_PATH
Chris@39 10562 else
Chris@39 10563 # With GCC up to 2.95.x, collect2 would create an import file
Chris@39 10564 # for dependence libraries. The import file would start with
Chris@39 10565 # the line `#! .'. This would cause the generated library to
Chris@39 10566 # depend on `.', always an invalid library. This was fixed in
Chris@39 10567 # development snapshots of GCC prior to 3.0.
Chris@39 10568 case $host_os in
Chris@39 10569 aix4 | aix4.[01] | aix4.[01].*)
Chris@39 10570 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
Chris@39 10571 echo ' yes '
Chris@39 10572 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
Chris@39 10573 :
Chris@39 10574 else
Chris@39 10575 can_build_shared=no
Chris@39 10576 fi
Chris@39 10577 ;;
Chris@39 10578 esac
Chris@39 10579 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
Chris@39 10580 # soname into executable. Probably we can add versioning support to
Chris@39 10581 # collect2, so additional links can be useful in future.
Chris@39 10582 if test "$aix_use_runtimelinking" = yes; then
Chris@39 10583 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
Chris@39 10584 # instead of lib<name>.a to let people know that these are not
Chris@39 10585 # typical AIX shared libraries.
Chris@39 10586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 10587 else
Chris@39 10588 # We preserve .a as extension for shared libraries through AIX4.2
Chris@39 10589 # and later when we are not doing run time linking.
Chris@39 10590 library_names_spec='${libname}${release}.a $libname.a'
Chris@39 10591 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10592 fi
Chris@39 10593 shlibpath_var=LIBPATH
Chris@39 10594 fi
Chris@39 10595 ;;
Chris@39 10596
Chris@39 10597 amigaos*)
Chris@39 10598 case $host_cpu in
Chris@39 10599 powerpc)
Chris@39 10600 # Since July 2007 AmigaOS4 officially supports .so libraries.
Chris@39 10601 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Chris@39 10602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 10603 ;;
Chris@39 10604 m68k)
Chris@39 10605 library_names_spec='$libname.ixlibrary $libname.a'
Chris@39 10606 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Chris@39 10607 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
Chris@39 10608 ;;
Chris@39 10609 esac
Chris@39 10610 ;;
Chris@39 10611
Chris@39 10612 beos*)
Chris@39 10613 library_names_spec='${libname}${shared_ext}'
Chris@39 10614 dynamic_linker="$host_os ld.so"
Chris@39 10615 shlibpath_var=LIBRARY_PATH
Chris@39 10616 ;;
Chris@39 10617
Chris@39 10618 bsdi[45]*)
Chris@39 10619 version_type=linux
Chris@39 10620 need_version=no
Chris@39 10621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 10622 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10623 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
Chris@39 10624 shlibpath_var=LD_LIBRARY_PATH
Chris@39 10625 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
Chris@39 10626 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
Chris@39 10627 # the default ld.so.conf also contains /usr/contrib/lib and
Chris@39 10628 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
Chris@39 10629 # libtool to hard-code these into programs
Chris@39 10630 ;;
Chris@39 10631
Chris@39 10632 cygwin* | mingw* | pw32* | cegcc*)
Chris@39 10633 version_type=windows
Chris@39 10634 shrext_cmds=".dll"
Chris@39 10635 need_version=no
Chris@39 10636 need_lib_prefix=no
Chris@39 10637
Chris@39 10638 case $GCC,$cc_basename in
Chris@39 10639 yes,*)
Chris@39 10640 # gcc
Chris@39 10641 library_names_spec='$libname.dll.a'
Chris@39 10642 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@39 10643 postinstall_cmds='base_file=`basename \${file}`~
Chris@39 10644 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Chris@39 10645 dldir=$destdir/`dirname \$dlpath`~
Chris@39 10646 test -d \$dldir || mkdir -p \$dldir~
Chris@39 10647 $install_prog $dir/$dlname \$dldir/$dlname~
Chris@39 10648 chmod a+x \$dldir/$dlname~
Chris@39 10649 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
Chris@39 10650 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
Chris@39 10651 fi'
Chris@39 10652 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@39 10653 dlpath=$dir/\$dldll~
Chris@39 10654 $RM \$dlpath'
Chris@39 10655 shlibpath_overrides_runpath=yes
Chris@39 10656
Chris@39 10657 case $host_os in
Chris@39 10658 cygwin*)
Chris@39 10659 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Chris@39 10660 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@39 10661
Chris@39 10662 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Chris@39 10663 ;;
Chris@39 10664 mingw* | cegcc*)
Chris@39 10665 # MinGW DLLs use traditional 'lib' prefix
Chris@39 10666 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@39 10667 ;;
Chris@39 10668 pw32*)
Chris@39 10669 # pw32 DLLs use 'pw' prefix rather than 'lib'
Chris@39 10670 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@39 10671 ;;
Chris@39 10672 esac
Chris@39 10673 dynamic_linker='Win32 ld.exe'
Chris@39 10674 ;;
Chris@39 10675
Chris@39 10676 *,cl*)
Chris@39 10677 # Native MSVC
Chris@39 10678 libname_spec='$name'
Chris@39 10679 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@39 10680 library_names_spec='${libname}.dll.lib'
Chris@39 10681
Chris@39 10682 case $build_os in
Chris@39 10683 mingw*)
Chris@39 10684 sys_lib_search_path_spec=
Chris@39 10685 lt_save_ifs=$IFS
Chris@39 10686 IFS=';'
Chris@39 10687 for lt_path in $LIB
Chris@39 10688 do
Chris@39 10689 IFS=$lt_save_ifs
Chris@39 10690 # Let DOS variable expansion print the short 8.3 style file name.
Chris@39 10691 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
Chris@39 10692 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
Chris@39 10693 done
Chris@39 10694 IFS=$lt_save_ifs
Chris@39 10695 # Convert to MSYS style.
Chris@39 10696 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
Chris@39 10697 ;;
Chris@39 10698 cygwin*)
Chris@39 10699 # Convert to unix form, then to dos form, then back to unix form
Chris@39 10700 # but this time dos style (no spaces!) so that the unix form looks
Chris@39 10701 # like /cygdrive/c/PROGRA~1:/cygdr...
Chris@39 10702 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
Chris@39 10703 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
Chris@39 10704 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@39 10705 ;;
Chris@39 10706 *)
Chris@39 10707 sys_lib_search_path_spec="$LIB"
Chris@39 10708 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
Chris@39 10709 # It is most probably a Windows format PATH.
Chris@39 10710 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Chris@39 10711 else
Chris@39 10712 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@39 10713 fi
Chris@39 10714 # FIXME: find the short name or the path components, as spaces are
Chris@39 10715 # common. (e.g. "Program Files" -> "PROGRA~1")
Chris@39 10716 ;;
Chris@39 10717 esac
Chris@39 10718
Chris@39 10719 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@39 10720 postinstall_cmds='base_file=`basename \${file}`~
Chris@39 10721 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Chris@39 10722 dldir=$destdir/`dirname \$dlpath`~
Chris@39 10723 test -d \$dldir || mkdir -p \$dldir~
Chris@39 10724 $install_prog $dir/$dlname \$dldir/$dlname'
Chris@39 10725 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@39 10726 dlpath=$dir/\$dldll~
Chris@39 10727 $RM \$dlpath'
Chris@39 10728 shlibpath_overrides_runpath=yes
Chris@39 10729 dynamic_linker='Win32 link.exe'
Chris@39 10730 ;;
Chris@39 10731
Chris@39 10732 *)
Chris@39 10733 # Assume MSVC wrapper
Chris@39 10734 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Chris@39 10735 dynamic_linker='Win32 ld.exe'
Chris@39 10736 ;;
Chris@39 10737 esac
Chris@39 10738 # FIXME: first we should search . and the directory the executable is in
Chris@39 10739 shlibpath_var=PATH
Chris@39 10740 ;;
Chris@39 10741
Chris@39 10742 darwin* | rhapsody*)
Chris@39 10743 dynamic_linker="$host_os dyld"
Chris@39 10744 version_type=darwin
Chris@39 10745 need_lib_prefix=no
Chris@39 10746 need_version=no
Chris@39 10747 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Chris@39 10748 soname_spec='${libname}${release}${major}$shared_ext'
Chris@39 10749 shlibpath_overrides_runpath=yes
Chris@39 10750 shlibpath_var=DYLD_LIBRARY_PATH
Chris@39 10751 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Chris@39 10752
Chris@39 10753 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
Chris@39 10754 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
Chris@39 10755 ;;
Chris@39 10756
Chris@39 10757 dgux*)
Chris@39 10758 version_type=linux
Chris@39 10759 need_lib_prefix=no
Chris@39 10760 need_version=no
Chris@39 10761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
Chris@39 10762 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10763 shlibpath_var=LD_LIBRARY_PATH
Chris@39 10764 ;;
Chris@39 10765
Chris@39 10766 freebsd1*)
Chris@39 10767 dynamic_linker=no
Chris@39 10768 ;;
Chris@39 10769
Chris@39 10770 freebsd* | dragonfly*)
Chris@39 10771 # DragonFly does not have aout. When/if they implement a new
Chris@39 10772 # versioning mechanism, adjust this.
Chris@39 10773 if test -x /usr/bin/objformat; then
Chris@39 10774 objformat=`/usr/bin/objformat`
Chris@39 10775 else
Chris@39 10776 case $host_os in
Chris@39 10777 freebsd[123]*) objformat=aout ;;
Chris@39 10778 *) objformat=elf ;;
Chris@39 10779 esac
Chris@39 10780 fi
Chris@39 10781 version_type=freebsd-$objformat
Chris@39 10782 case $version_type in
Chris@39 10783 freebsd-elf*)
Chris@39 10784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@39 10785 need_version=no
Chris@39 10786 need_lib_prefix=no
Chris@39 10787 ;;
Chris@39 10788 freebsd-*)
Chris@39 10789 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
Chris@39 10790 need_version=yes
Chris@39 10791 ;;
Chris@39 10792 esac
Chris@39 10793 shlibpath_var=LD_LIBRARY_PATH
Chris@39 10794 case $host_os in
Chris@39 10795 freebsd2*)
Chris@39 10796 shlibpath_overrides_runpath=yes
Chris@39 10797 ;;
Chris@39 10798 freebsd3.[01]* | freebsdelf3.[01]*)
Chris@39 10799 shlibpath_overrides_runpath=yes
Chris@39 10800 hardcode_into_libs=yes
Chris@39 10801 ;;
Chris@39 10802 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
Chris@39 10803 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Chris@39 10804 shlibpath_overrides_runpath=no
Chris@39 10805 hardcode_into_libs=yes
Chris@39 10806 ;;
Chris@39 10807 *) # from 4.6 on, and DragonFly
Chris@39 10808 shlibpath_overrides_runpath=yes
Chris@39 10809 hardcode_into_libs=yes
Chris@39 10810 ;;
Chris@39 10811 esac
Chris@39 10812 ;;
Chris@39 10813
Chris@39 10814 gnu*)
Chris@39 10815 version_type=linux
Chris@39 10816 need_lib_prefix=no
Chris@39 10817 need_version=no
Chris@39 10818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
Chris@39 10819 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10820 shlibpath_var=LD_LIBRARY_PATH
Chris@39 10821 shlibpath_overrides_runpath=no
Chris@39 10822 hardcode_into_libs=yes
Chris@39 10823 ;;
Chris@39 10824
Chris@39 10825 haiku*)
Chris@39 10826 version_type=linux
Chris@39 10827 need_lib_prefix=no
Chris@39 10828 need_version=no
Chris@39 10829 dynamic_linker="$host_os runtime_loader"
Chris@39 10830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
Chris@39 10831 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10832 shlibpath_var=LIBRARY_PATH
Chris@39 10833 shlibpath_overrides_runpath=yes
Chris@39 10834 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Chris@39 10835 hardcode_into_libs=yes
Chris@39 10836 ;;
Chris@39 10837
Chris@39 10838 hpux9* | hpux10* | hpux11*)
Chris@39 10839 # Give a soname corresponding to the major version so that dld.sl refuses to
Chris@39 10840 # link against other versions.
Chris@39 10841 version_type=sunos
Chris@39 10842 need_lib_prefix=no
Chris@39 10843 need_version=no
Chris@39 10844 case $host_cpu in
Chris@39 10845 ia64*)
Chris@39 10846 shrext_cmds='.so'
Chris@39 10847 hardcode_into_libs=yes
Chris@39 10848 dynamic_linker="$host_os dld.so"
Chris@39 10849 shlibpath_var=LD_LIBRARY_PATH
Chris@39 10850 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@39 10851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 10852 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10853 if test "X$HPUX_IA64_MODE" = X32; then
Chris@39 10854 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Chris@39 10855 else
Chris@39 10856 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Chris@39 10857 fi
Chris@39 10858 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@39 10859 ;;
Chris@39 10860 hppa*64*)
Chris@39 10861 shrext_cmds='.sl'
Chris@39 10862 hardcode_into_libs=yes
Chris@39 10863 dynamic_linker="$host_os dld.sl"
Chris@39 10864 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
Chris@39 10865 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@39 10866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 10867 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10868 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
Chris@39 10869 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@39 10870 ;;
Chris@39 10871 *)
Chris@39 10872 shrext_cmds='.sl'
Chris@39 10873 dynamic_linker="$host_os dld.sl"
Chris@39 10874 shlibpath_var=SHLIB_PATH
Chris@39 10875 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Chris@39 10876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 10877 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10878 ;;
Chris@39 10879 esac
Chris@39 10880 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Chris@39 10881 postinstall_cmds='chmod 555 $lib'
Chris@39 10882 # or fails outright, so override atomically:
Chris@39 10883 install_override_mode=555
Chris@39 10884 ;;
Chris@39 10885
Chris@39 10886 interix[3-9]*)
Chris@39 10887 version_type=linux
Chris@39 10888 need_lib_prefix=no
Chris@39 10889 need_version=no
Chris@39 10890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@39 10891 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10892 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
Chris@39 10893 shlibpath_var=LD_LIBRARY_PATH
Chris@39 10894 shlibpath_overrides_runpath=no
Chris@39 10895 hardcode_into_libs=yes
Chris@39 10896 ;;
Chris@39 10897
Chris@39 10898 irix5* | irix6* | nonstopux*)
Chris@39 10899 case $host_os in
Chris@39 10900 nonstopux*) version_type=nonstopux ;;
Chris@39 10901 *)
Chris@39 10902 if test "$lt_cv_prog_gnu_ld" = yes; then
Chris@39 10903 version_type=linux
Chris@39 10904 else
Chris@39 10905 version_type=irix
Chris@39 10906 fi ;;
Chris@39 10907 esac
Chris@39 10908 need_lib_prefix=no
Chris@39 10909 need_version=no
Chris@39 10910 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@39 10912 case $host_os in
Chris@39 10913 irix5* | nonstopux*)
Chris@39 10914 libsuff= shlibsuff=
Chris@39 10915 ;;
Chris@39 10916 *)
Chris@39 10917 case $LD in # libtool.m4 will add one of these switches to LD
Chris@39 10918 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
Chris@39 10919 libsuff= shlibsuff= libmagic=32-bit;;
Chris@39 10920 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
Chris@39 10921 libsuff=32 shlibsuff=N32 libmagic=N32;;
Chris@39 10922 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
Chris@39 10923 libsuff=64 shlibsuff=64 libmagic=64-bit;;
Chris@39 10924 *) libsuff= shlibsuff= libmagic=never-match;;
Chris@39 10925 esac
Chris@39 10926 ;;
Chris@39 10927 esac
Chris@39 10928 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
Chris@39 10929 shlibpath_overrides_runpath=no
Chris@39 10930 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
Chris@39 10931 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
Chris@39 10932 hardcode_into_libs=yes
Chris@39 10933 ;;
Chris@39 10934
Chris@39 10935 # No shared lib support for Linux oldld, aout, or coff.
Chris@39 10936 linux*oldld* | linux*aout* | linux*coff*)
Chris@39 10937 dynamic_linker=no
Chris@39 10938 ;;
Chris@39 10939
Chris@39 10940 # This must be Linux ELF.
Chris@39 10941 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@39 10942 version_type=linux
Chris@39 10943 need_lib_prefix=no
Chris@39 10944 need_version=no
Chris@39 10945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 10946 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10947 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
Chris@39 10948 shlibpath_var=LD_LIBRARY_PATH
Chris@39 10949 shlibpath_overrides_runpath=no
Chris@39 10950
Chris@39 10951 # Some binutils ld are patched to set DT_RUNPATH
Chris@39 10952 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
Chris@39 10953 $as_echo_n "(cached) " >&6
Chris@39 10954 else
Chris@39 10955 lt_cv_shlibpath_overrides_runpath=no
Chris@39 10956 save_LDFLAGS=$LDFLAGS
Chris@39 10957 save_libdir=$libdir
Chris@39 10958 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
Chris@39 10959 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
Chris@39 10960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 10961 /* end confdefs.h. */
Chris@39 10962
Chris@39 10963 int
Chris@39 10964 main ()
Chris@39 10965 {
Chris@39 10966
Chris@39 10967 ;
Chris@39 10968 return 0;
Chris@39 10969 }
Chris@39 10970 _ACEOF
Chris@39 10971 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 10972 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
Chris@39 10973 lt_cv_shlibpath_overrides_runpath=yes
Chris@39 10974 fi
Chris@39 10975 fi
Chris@39 10976 rm -f core conftest.err conftest.$ac_objext \
Chris@39 10977 conftest$ac_exeext conftest.$ac_ext
Chris@39 10978 LDFLAGS=$save_LDFLAGS
Chris@39 10979 libdir=$save_libdir
Chris@39 10980
Chris@39 10981 fi
Chris@39 10982
Chris@39 10983 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Chris@39 10984
Chris@39 10985 # This implies no fast_install, which is unacceptable.
Chris@39 10986 # Some rework will be needed to allow for fast_install
Chris@39 10987 # before this can be enabled.
Chris@39 10988 hardcode_into_libs=yes
Chris@39 10989
Chris@39 10990 # Append ld.so.conf contents to the search path
Chris@39 10991 if test -f /etc/ld.so.conf; then
Chris@39 10992 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;s/"//g;/^$/d' | tr '\n' ' '`
Chris@39 10993 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
Chris@39 10994 fi
Chris@39 10995
Chris@39 10996 # We used to test for /lib/ld.so.1 and disable shared libraries on
Chris@39 10997 # powerpc, because MkLinux only supported shared libraries with the
Chris@39 10998 # GNU dynamic linker. Since this was broken with cross compilers,
Chris@39 10999 # most powerpc-linux boxes support dynamic linking these days and
Chris@39 11000 # people can always --disable-shared, the test was removed, and we
Chris@39 11001 # assume the GNU/Linux dynamic linker is in use.
Chris@39 11002 dynamic_linker='GNU/Linux ld.so'
Chris@39 11003 ;;
Chris@39 11004
Chris@39 11005 netbsdelf*-gnu)
Chris@39 11006 version_type=linux
Chris@39 11007 need_lib_prefix=no
Chris@39 11008 need_version=no
Chris@39 11009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@39 11010 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 11011 shlibpath_var=LD_LIBRARY_PATH
Chris@39 11012 shlibpath_overrides_runpath=no
Chris@39 11013 hardcode_into_libs=yes
Chris@39 11014 dynamic_linker='NetBSD ld.elf_so'
Chris@39 11015 ;;
Chris@39 11016
Chris@39 11017 netbsd*)
Chris@39 11018 version_type=sunos
Chris@39 11019 need_lib_prefix=no
Chris@39 11020 need_version=no
Chris@39 11021 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@39 11022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@39 11023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@39 11024 dynamic_linker='NetBSD (a.out) ld.so'
Chris@39 11025 else
Chris@39 11026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@39 11027 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 11028 dynamic_linker='NetBSD ld.elf_so'
Chris@39 11029 fi
Chris@39 11030 shlibpath_var=LD_LIBRARY_PATH
Chris@39 11031 shlibpath_overrides_runpath=yes
Chris@39 11032 hardcode_into_libs=yes
Chris@39 11033 ;;
Chris@39 11034
Chris@39 11035 newsos6)
Chris@39 11036 version_type=linux
Chris@39 11037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 11038 shlibpath_var=LD_LIBRARY_PATH
Chris@39 11039 shlibpath_overrides_runpath=yes
Chris@39 11040 ;;
Chris@39 11041
Chris@39 11042 *nto* | *qnx*)
Chris@39 11043 version_type=qnx
Chris@39 11044 need_lib_prefix=no
Chris@39 11045 need_version=no
Chris@39 11046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 11047 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 11048 shlibpath_var=LD_LIBRARY_PATH
Chris@39 11049 shlibpath_overrides_runpath=no
Chris@39 11050 hardcode_into_libs=yes
Chris@39 11051 dynamic_linker='ldqnx.so'
Chris@39 11052 ;;
Chris@39 11053
Chris@39 11054 openbsd*)
Chris@39 11055 version_type=sunos
Chris@39 11056 sys_lib_dlsearch_path_spec="/usr/lib"
Chris@39 11057 need_lib_prefix=no
Chris@39 11058 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
Chris@39 11059 case $host_os in
Chris@39 11060 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
Chris@39 11061 *) need_version=no ;;
Chris@39 11062 esac
Chris@39 11063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@39 11064 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@39 11065 shlibpath_var=LD_LIBRARY_PATH
Chris@39 11066 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@39 11067 case $host_os in
Chris@39 11068 openbsd2.[89] | openbsd2.[89].*)
Chris@39 11069 shlibpath_overrides_runpath=no
Chris@39 11070 ;;
Chris@39 11071 *)
Chris@39 11072 shlibpath_overrides_runpath=yes
Chris@39 11073 ;;
Chris@39 11074 esac
Chris@39 11075 else
Chris@39 11076 shlibpath_overrides_runpath=yes
Chris@39 11077 fi
Chris@39 11078 ;;
Chris@39 11079
Chris@39 11080 os2*)
Chris@39 11081 libname_spec='$name'
Chris@39 11082 shrext_cmds=".dll"
Chris@39 11083 need_lib_prefix=no
Chris@39 11084 library_names_spec='$libname${shared_ext} $libname.a'
Chris@39 11085 dynamic_linker='OS/2 ld.exe'
Chris@39 11086 shlibpath_var=LIBPATH
Chris@39 11087 ;;
Chris@39 11088
Chris@39 11089 osf3* | osf4* | osf5*)
Chris@39 11090 version_type=osf
Chris@39 11091 need_lib_prefix=no
Chris@39 11092 need_version=no
Chris@39 11093 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 11094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 11095 shlibpath_var=LD_LIBRARY_PATH
Chris@39 11096 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Chris@39 11097 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
Chris@39 11098 ;;
Chris@39 11099
Chris@39 11100 rdos*)
Chris@39 11101 dynamic_linker=no
Chris@39 11102 ;;
Chris@39 11103
Chris@39 11104 solaris*)
Chris@39 11105 version_type=linux
Chris@39 11106 need_lib_prefix=no
Chris@39 11107 need_version=no
Chris@39 11108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 11109 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 11110 shlibpath_var=LD_LIBRARY_PATH
Chris@39 11111 shlibpath_overrides_runpath=yes
Chris@39 11112 hardcode_into_libs=yes
Chris@39 11113 # ldd complains unless libraries are executable
Chris@39 11114 postinstall_cmds='chmod +x $lib'
Chris@39 11115 ;;
Chris@39 11116
Chris@39 11117 sunos4*)
Chris@39 11118 version_type=sunos
Chris@39 11119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@39 11120 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
Chris@39 11121 shlibpath_var=LD_LIBRARY_PATH
Chris@39 11122 shlibpath_overrides_runpath=yes
Chris@39 11123 if test "$with_gnu_ld" = yes; then
Chris@39 11124 need_lib_prefix=no
Chris@39 11125 fi
Chris@39 11126 need_version=yes
Chris@39 11127 ;;
Chris@39 11128
Chris@39 11129 sysv4 | sysv4.3*)
Chris@39 11130 version_type=linux
Chris@39 11131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 11132 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 11133 shlibpath_var=LD_LIBRARY_PATH
Chris@39 11134 case $host_vendor in
Chris@39 11135 sni)
Chris@39 11136 shlibpath_overrides_runpath=no
Chris@39 11137 need_lib_prefix=no
Chris@39 11138 runpath_var=LD_RUN_PATH
Chris@39 11139 ;;
Chris@39 11140 siemens)
Chris@39 11141 need_lib_prefix=no
Chris@39 11142 ;;
Chris@39 11143 motorola)
Chris@39 11144 need_lib_prefix=no
Chris@39 11145 need_version=no
Chris@39 11146 shlibpath_overrides_runpath=no
Chris@39 11147 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
Chris@39 11148 ;;
Chris@39 11149 esac
Chris@39 11150 ;;
Chris@39 11151
Chris@39 11152 sysv4*MP*)
Chris@39 11153 if test -d /usr/nec ;then
Chris@39 11154 version_type=linux
Chris@39 11155 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
Chris@39 11156 soname_spec='$libname${shared_ext}.$major'
Chris@39 11157 shlibpath_var=LD_LIBRARY_PATH
Chris@39 11158 fi
Chris@39 11159 ;;
Chris@39 11160
Chris@39 11161 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Chris@39 11162 version_type=freebsd-elf
Chris@39 11163 need_lib_prefix=no
Chris@39 11164 need_version=no
Chris@39 11165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@39 11166 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 11167 shlibpath_var=LD_LIBRARY_PATH
Chris@39 11168 shlibpath_overrides_runpath=yes
Chris@39 11169 hardcode_into_libs=yes
Chris@39 11170 if test "$with_gnu_ld" = yes; then
Chris@39 11171 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Chris@39 11172 else
Chris@39 11173 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Chris@39 11174 case $host_os in
Chris@39 11175 sco3.2v5*)
Chris@39 11176 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
Chris@39 11177 ;;
Chris@39 11178 esac
Chris@39 11179 fi
Chris@39 11180 sys_lib_dlsearch_path_spec='/usr/lib'
Chris@39 11181 ;;
Chris@39 11182
Chris@39 11183 tpf*)
Chris@39 11184 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Chris@39 11185 version_type=linux
Chris@39 11186 need_lib_prefix=no
Chris@39 11187 need_version=no
Chris@39 11188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 11189 shlibpath_var=LD_LIBRARY_PATH
Chris@39 11190 shlibpath_overrides_runpath=no
Chris@39 11191 hardcode_into_libs=yes
Chris@39 11192 ;;
Chris@39 11193
Chris@39 11194 uts4*)
Chris@39 11195 version_type=linux
Chris@39 11196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 11197 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 11198 shlibpath_var=LD_LIBRARY_PATH
Chris@39 11199 ;;
Chris@39 11200
Chris@39 11201 *)
Chris@39 11202 dynamic_linker=no
Chris@39 11203 ;;
Chris@39 11204 esac
Chris@39 11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Chris@39 11206 $as_echo "$dynamic_linker" >&6; }
Chris@39 11207 test "$dynamic_linker" = no && can_build_shared=no
Chris@39 11208
Chris@39 11209 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Chris@39 11210 if test "$GCC" = yes; then
Chris@39 11211 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
Chris@39 11212 fi
Chris@39 11213
Chris@39 11214 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
Chris@39 11215 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
Chris@39 11216 fi
Chris@39 11217 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
Chris@39 11218 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
Chris@39 11219 fi
Chris@39 11220
Chris@39 11221
Chris@39 11222
Chris@39 11223
Chris@39 11224
Chris@39 11225
Chris@39 11226
Chris@39 11227
Chris@39 11228
Chris@39 11229
Chris@39 11230
Chris@39 11231
Chris@39 11232
Chris@39 11233
Chris@39 11234
Chris@39 11235
Chris@39 11236
Chris@39 11237
Chris@39 11238
Chris@39 11239
Chris@39 11240
Chris@39 11241
Chris@39 11242
Chris@39 11243
Chris@39 11244
Chris@39 11245
Chris@39 11246
Chris@39 11247
Chris@39 11248
Chris@39 11249
Chris@39 11250
Chris@39 11251
Chris@39 11252
Chris@39 11253
Chris@39 11254
Chris@39 11255
Chris@39 11256
Chris@39 11257
Chris@39 11258
Chris@39 11259
Chris@39 11260
Chris@39 11261
Chris@39 11262
Chris@39 11263
Chris@39 11264
Chris@39 11265
Chris@39 11266
Chris@39 11267
Chris@39 11268
Chris@39 11269
Chris@39 11270
Chris@39 11271
Chris@39 11272
Chris@39 11273
Chris@39 11274
Chris@39 11275
Chris@39 11276
Chris@39 11277
Chris@39 11278
Chris@39 11279
Chris@39 11280
Chris@39 11281
Chris@39 11282
Chris@39 11283
Chris@39 11284
Chris@39 11285
Chris@39 11286
Chris@39 11287
Chris@39 11288
Chris@39 11289
Chris@39 11290
Chris@39 11291
Chris@39 11292
Chris@39 11293
Chris@39 11294
Chris@39 11295
Chris@39 11296
Chris@39 11297
Chris@39 11298
Chris@39 11299
Chris@39 11300
Chris@39 11301
Chris@39 11302
Chris@39 11303
Chris@39 11304
Chris@39 11305
Chris@39 11306
Chris@39 11307
Chris@39 11308
Chris@39 11309
Chris@39 11310
Chris@39 11311
Chris@39 11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Chris@39 11313 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Chris@39 11314 hardcode_action=
Chris@39 11315 if test -n "$hardcode_libdir_flag_spec" ||
Chris@39 11316 test -n "$runpath_var" ||
Chris@39 11317 test "X$hardcode_automatic" = "Xyes" ; then
Chris@39 11318
Chris@39 11319 # We can hardcode non-existent directories.
Chris@39 11320 if test "$hardcode_direct" != no &&
Chris@39 11321 # If the only mechanism to avoid hardcoding is shlibpath_var, we
Chris@39 11322 # have to relink, otherwise we might link with an installed library
Chris@39 11323 # when we should be linking with a yet-to-be-installed one
Chris@39 11324 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
Chris@39 11325 test "$hardcode_minus_L" != no; then
Chris@39 11326 # Linking always hardcodes the temporary library directory.
Chris@39 11327 hardcode_action=relink
Chris@39 11328 else
Chris@39 11329 # We can link without hardcoding, and we can hardcode nonexisting dirs.
Chris@39 11330 hardcode_action=immediate
Chris@39 11331 fi
Chris@39 11332 else
Chris@39 11333 # We cannot hardcode anything, or else we can only hardcode existing
Chris@39 11334 # directories.
Chris@39 11335 hardcode_action=unsupported
Chris@39 11336 fi
Chris@39 11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
Chris@39 11338 $as_echo "$hardcode_action" >&6; }
Chris@39 11339
Chris@39 11340 if test "$hardcode_action" = relink ||
Chris@39 11341 test "$inherit_rpath" = yes; then
Chris@39 11342 # Fast installation is not supported
Chris@39 11343 enable_fast_install=no
Chris@39 11344 elif test "$shlibpath_overrides_runpath" = yes ||
Chris@39 11345 test "$enable_shared" = no; then
Chris@39 11346 # Fast installation is not necessary
Chris@39 11347 enable_fast_install=needless
Chris@39 11348 fi
Chris@39 11349
Chris@39 11350
Chris@39 11351
Chris@39 11352
Chris@39 11353
Chris@39 11354
Chris@39 11355 if test "x$enable_dlopen" != xyes; then
Chris@39 11356 enable_dlopen=unknown
Chris@39 11357 enable_dlopen_self=unknown
Chris@39 11358 enable_dlopen_self_static=unknown
Chris@39 11359 else
Chris@39 11360 lt_cv_dlopen=no
Chris@39 11361 lt_cv_dlopen_libs=
Chris@39 11362
Chris@39 11363 case $host_os in
Chris@39 11364 beos*)
Chris@39 11365 lt_cv_dlopen="load_add_on"
Chris@39 11366 lt_cv_dlopen_libs=
Chris@39 11367 lt_cv_dlopen_self=yes
Chris@39 11368 ;;
Chris@39 11369
Chris@39 11370 mingw* | pw32* | cegcc*)
Chris@39 11371 lt_cv_dlopen="LoadLibrary"
Chris@39 11372 lt_cv_dlopen_libs=
Chris@39 11373 ;;
Chris@39 11374
Chris@39 11375 cygwin*)
Chris@39 11376 lt_cv_dlopen="dlopen"
Chris@39 11377 lt_cv_dlopen_libs=
Chris@39 11378 ;;
Chris@39 11379
Chris@39 11380 darwin*)
Chris@39 11381 # if libdl is installed we need to link against it
Chris@39 11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Chris@39 11383 $as_echo_n "checking for dlopen in -ldl... " >&6; }
Chris@39 11384 if ${ac_cv_lib_dl_dlopen+:} false; then :
Chris@39 11385 $as_echo_n "(cached) " >&6
Chris@39 11386 else
Chris@39 11387 ac_check_lib_save_LIBS=$LIBS
Chris@39 11388 LIBS="-ldl $LIBS"
Chris@39 11389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 11390 /* end confdefs.h. */
Chris@39 11391
Chris@39 11392 /* Override any GCC internal prototype to avoid an error.
Chris@39 11393 Use char because int might match the return type of a GCC
Chris@39 11394 builtin and then its argument prototype would still apply. */
Chris@39 11395 #ifdef __cplusplus
Chris@39 11396 extern "C"
Chris@39 11397 #endif
Chris@39 11398 char dlopen ();
Chris@39 11399 int
Chris@39 11400 main ()
Chris@39 11401 {
Chris@39 11402 return dlopen ();
Chris@39 11403 ;
Chris@39 11404 return 0;
Chris@39 11405 }
Chris@39 11406 _ACEOF
Chris@39 11407 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 11408 ac_cv_lib_dl_dlopen=yes
Chris@39 11409 else
Chris@39 11410 ac_cv_lib_dl_dlopen=no
Chris@39 11411 fi
Chris@39 11412 rm -f core conftest.err conftest.$ac_objext \
Chris@39 11413 conftest$ac_exeext conftest.$ac_ext
Chris@39 11414 LIBS=$ac_check_lib_save_LIBS
Chris@39 11415 fi
Chris@39 11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Chris@39 11417 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Chris@39 11418 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Chris@39 11419 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
Chris@39 11420 else
Chris@39 11421
Chris@39 11422 lt_cv_dlopen="dyld"
Chris@39 11423 lt_cv_dlopen_libs=
Chris@39 11424 lt_cv_dlopen_self=yes
Chris@39 11425
Chris@39 11426 fi
Chris@39 11427
Chris@39 11428 ;;
Chris@39 11429
Chris@39 11430 *)
Chris@39 11431 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
Chris@39 11432 if test "x$ac_cv_func_shl_load" = xyes; then :
Chris@39 11433 lt_cv_dlopen="shl_load"
Chris@39 11434 else
Chris@39 11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
Chris@39 11436 $as_echo_n "checking for shl_load in -ldld... " >&6; }
Chris@39 11437 if ${ac_cv_lib_dld_shl_load+:} false; then :
Chris@39 11438 $as_echo_n "(cached) " >&6
Chris@39 11439 else
Chris@39 11440 ac_check_lib_save_LIBS=$LIBS
Chris@39 11441 LIBS="-ldld $LIBS"
Chris@39 11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 11443 /* end confdefs.h. */
Chris@39 11444
Chris@39 11445 /* Override any GCC internal prototype to avoid an error.
Chris@39 11446 Use char because int might match the return type of a GCC
Chris@39 11447 builtin and then its argument prototype would still apply. */
Chris@39 11448 #ifdef __cplusplus
Chris@39 11449 extern "C"
Chris@39 11450 #endif
Chris@39 11451 char shl_load ();
Chris@39 11452 int
Chris@39 11453 main ()
Chris@39 11454 {
Chris@39 11455 return shl_load ();
Chris@39 11456 ;
Chris@39 11457 return 0;
Chris@39 11458 }
Chris@39 11459 _ACEOF
Chris@39 11460 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 11461 ac_cv_lib_dld_shl_load=yes
Chris@39 11462 else
Chris@39 11463 ac_cv_lib_dld_shl_load=no
Chris@39 11464 fi
Chris@39 11465 rm -f core conftest.err conftest.$ac_objext \
Chris@39 11466 conftest$ac_exeext conftest.$ac_ext
Chris@39 11467 LIBS=$ac_check_lib_save_LIBS
Chris@39 11468 fi
Chris@39 11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
Chris@39 11470 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Chris@39 11471 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Chris@39 11472 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
Chris@39 11473 else
Chris@39 11474 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
Chris@39 11475 if test "x$ac_cv_func_dlopen" = xyes; then :
Chris@39 11476 lt_cv_dlopen="dlopen"
Chris@39 11477 else
Chris@39 11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Chris@39 11479 $as_echo_n "checking for dlopen in -ldl... " >&6; }
Chris@39 11480 if ${ac_cv_lib_dl_dlopen+:} false; then :
Chris@39 11481 $as_echo_n "(cached) " >&6
Chris@39 11482 else
Chris@39 11483 ac_check_lib_save_LIBS=$LIBS
Chris@39 11484 LIBS="-ldl $LIBS"
Chris@39 11485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 11486 /* end confdefs.h. */
Chris@39 11487
Chris@39 11488 /* Override any GCC internal prototype to avoid an error.
Chris@39 11489 Use char because int might match the return type of a GCC
Chris@39 11490 builtin and then its argument prototype would still apply. */
Chris@39 11491 #ifdef __cplusplus
Chris@39 11492 extern "C"
Chris@39 11493 #endif
Chris@39 11494 char dlopen ();
Chris@39 11495 int
Chris@39 11496 main ()
Chris@39 11497 {
Chris@39 11498 return dlopen ();
Chris@39 11499 ;
Chris@39 11500 return 0;
Chris@39 11501 }
Chris@39 11502 _ACEOF
Chris@39 11503 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 11504 ac_cv_lib_dl_dlopen=yes
Chris@39 11505 else
Chris@39 11506 ac_cv_lib_dl_dlopen=no
Chris@39 11507 fi
Chris@39 11508 rm -f core conftest.err conftest.$ac_objext \
Chris@39 11509 conftest$ac_exeext conftest.$ac_ext
Chris@39 11510 LIBS=$ac_check_lib_save_LIBS
Chris@39 11511 fi
Chris@39 11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Chris@39 11513 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Chris@39 11514 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Chris@39 11515 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
Chris@39 11516 else
Chris@39 11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
Chris@39 11518 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
Chris@39 11519 if ${ac_cv_lib_svld_dlopen+:} false; then :
Chris@39 11520 $as_echo_n "(cached) " >&6
Chris@39 11521 else
Chris@39 11522 ac_check_lib_save_LIBS=$LIBS
Chris@39 11523 LIBS="-lsvld $LIBS"
Chris@39 11524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 11525 /* end confdefs.h. */
Chris@39 11526
Chris@39 11527 /* Override any GCC internal prototype to avoid an error.
Chris@39 11528 Use char because int might match the return type of a GCC
Chris@39 11529 builtin and then its argument prototype would still apply. */
Chris@39 11530 #ifdef __cplusplus
Chris@39 11531 extern "C"
Chris@39 11532 #endif
Chris@39 11533 char dlopen ();
Chris@39 11534 int
Chris@39 11535 main ()
Chris@39 11536 {
Chris@39 11537 return dlopen ();
Chris@39 11538 ;
Chris@39 11539 return 0;
Chris@39 11540 }
Chris@39 11541 _ACEOF
Chris@39 11542 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 11543 ac_cv_lib_svld_dlopen=yes
Chris@39 11544 else
Chris@39 11545 ac_cv_lib_svld_dlopen=no
Chris@39 11546 fi
Chris@39 11547 rm -f core conftest.err conftest.$ac_objext \
Chris@39 11548 conftest$ac_exeext conftest.$ac_ext
Chris@39 11549 LIBS=$ac_check_lib_save_LIBS
Chris@39 11550 fi
Chris@39 11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
Chris@39 11552 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Chris@39 11553 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Chris@39 11554 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
Chris@39 11555 else
Chris@39 11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
Chris@39 11557 $as_echo_n "checking for dld_link in -ldld... " >&6; }
Chris@39 11558 if ${ac_cv_lib_dld_dld_link+:} false; then :
Chris@39 11559 $as_echo_n "(cached) " >&6
Chris@39 11560 else
Chris@39 11561 ac_check_lib_save_LIBS=$LIBS
Chris@39 11562 LIBS="-ldld $LIBS"
Chris@39 11563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 11564 /* end confdefs.h. */
Chris@39 11565
Chris@39 11566 /* Override any GCC internal prototype to avoid an error.
Chris@39 11567 Use char because int might match the return type of a GCC
Chris@39 11568 builtin and then its argument prototype would still apply. */
Chris@39 11569 #ifdef __cplusplus
Chris@39 11570 extern "C"
Chris@39 11571 #endif
Chris@39 11572 char dld_link ();
Chris@39 11573 int
Chris@39 11574 main ()
Chris@39 11575 {
Chris@39 11576 return dld_link ();
Chris@39 11577 ;
Chris@39 11578 return 0;
Chris@39 11579 }
Chris@39 11580 _ACEOF
Chris@39 11581 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 11582 ac_cv_lib_dld_dld_link=yes
Chris@39 11583 else
Chris@39 11584 ac_cv_lib_dld_dld_link=no
Chris@39 11585 fi
Chris@39 11586 rm -f core conftest.err conftest.$ac_objext \
Chris@39 11587 conftest$ac_exeext conftest.$ac_ext
Chris@39 11588 LIBS=$ac_check_lib_save_LIBS
Chris@39 11589 fi
Chris@39 11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
Chris@39 11591 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Chris@39 11592 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Chris@39 11593 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
Chris@39 11594 fi
Chris@39 11595
Chris@39 11596
Chris@39 11597 fi
Chris@39 11598
Chris@39 11599
Chris@39 11600 fi
Chris@39 11601
Chris@39 11602
Chris@39 11603 fi
Chris@39 11604
Chris@39 11605
Chris@39 11606 fi
Chris@39 11607
Chris@39 11608
Chris@39 11609 fi
Chris@39 11610
Chris@39 11611 ;;
Chris@39 11612 esac
Chris@39 11613
Chris@39 11614 if test "x$lt_cv_dlopen" != xno; then
Chris@39 11615 enable_dlopen=yes
Chris@39 11616 else
Chris@39 11617 enable_dlopen=no
Chris@39 11618 fi
Chris@39 11619
Chris@39 11620 case $lt_cv_dlopen in
Chris@39 11621 dlopen)
Chris@39 11622 save_CPPFLAGS="$CPPFLAGS"
Chris@39 11623 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Chris@39 11624
Chris@39 11625 save_LDFLAGS="$LDFLAGS"
Chris@39 11626 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Chris@39 11627
Chris@39 11628 save_LIBS="$LIBS"
Chris@39 11629 LIBS="$lt_cv_dlopen_libs $LIBS"
Chris@39 11630
Chris@39 11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
Chris@39 11632 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
Chris@39 11633 if ${lt_cv_dlopen_self+:} false; then :
Chris@39 11634 $as_echo_n "(cached) " >&6
Chris@39 11635 else
Chris@39 11636 if test "$cross_compiling" = yes; then :
Chris@39 11637 lt_cv_dlopen_self=cross
Chris@39 11638 else
Chris@39 11639 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Chris@39 11640 lt_status=$lt_dlunknown
Chris@39 11641 cat > conftest.$ac_ext <<_LT_EOF
Chris@39 11642 #line $LINENO "configure"
Chris@39 11643 #include "confdefs.h"
Chris@39 11644
Chris@39 11645 #if HAVE_DLFCN_H
Chris@39 11646 #include <dlfcn.h>
Chris@39 11647 #endif
Chris@39 11648
Chris@39 11649 #include <stdio.h>
Chris@39 11650
Chris@39 11651 #ifdef RTLD_GLOBAL
Chris@39 11652 # define LT_DLGLOBAL RTLD_GLOBAL
Chris@39 11653 #else
Chris@39 11654 # ifdef DL_GLOBAL
Chris@39 11655 # define LT_DLGLOBAL DL_GLOBAL
Chris@39 11656 # else
Chris@39 11657 # define LT_DLGLOBAL 0
Chris@39 11658 # endif
Chris@39 11659 #endif
Chris@39 11660
Chris@39 11661 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Chris@39 11662 find out it does not work in some platform. */
Chris@39 11663 #ifndef LT_DLLAZY_OR_NOW
Chris@39 11664 # ifdef RTLD_LAZY
Chris@39 11665 # define LT_DLLAZY_OR_NOW RTLD_LAZY
Chris@39 11666 # else
Chris@39 11667 # ifdef DL_LAZY
Chris@39 11668 # define LT_DLLAZY_OR_NOW DL_LAZY
Chris@39 11669 # else
Chris@39 11670 # ifdef RTLD_NOW
Chris@39 11671 # define LT_DLLAZY_OR_NOW RTLD_NOW
Chris@39 11672 # else
Chris@39 11673 # ifdef DL_NOW
Chris@39 11674 # define LT_DLLAZY_OR_NOW DL_NOW
Chris@39 11675 # else
Chris@39 11676 # define LT_DLLAZY_OR_NOW 0
Chris@39 11677 # endif
Chris@39 11678 # endif
Chris@39 11679 # endif
Chris@39 11680 # endif
Chris@39 11681 #endif
Chris@39 11682
Chris@39 11683 /* When -fvisbility=hidden is used, assume the code has been annotated
Chris@39 11684 correspondingly for the symbols needed. */
Chris@39 11685 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Chris@39 11686 int fnord () __attribute__((visibility("default")));
Chris@39 11687 #endif
Chris@39 11688
Chris@39 11689 int fnord () { return 42; }
Chris@39 11690 int main ()
Chris@39 11691 {
Chris@39 11692 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Chris@39 11693 int status = $lt_dlunknown;
Chris@39 11694
Chris@39 11695 if (self)
Chris@39 11696 {
Chris@39 11697 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Chris@39 11698 else
Chris@39 11699 {
Chris@39 11700 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Chris@39 11701 else puts (dlerror ());
Chris@39 11702 }
Chris@39 11703 /* dlclose (self); */
Chris@39 11704 }
Chris@39 11705 else
Chris@39 11706 puts (dlerror ());
Chris@39 11707
Chris@39 11708 return status;
Chris@39 11709 }
Chris@39 11710 _LT_EOF
Chris@39 11711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Chris@39 11712 (eval $ac_link) 2>&5
Chris@39 11713 ac_status=$?
Chris@39 11714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 11715 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Chris@39 11716 (./conftest; exit; ) >&5 2>/dev/null
Chris@39 11717 lt_status=$?
Chris@39 11718 case x$lt_status in
Chris@39 11719 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
Chris@39 11720 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Chris@39 11721 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
Chris@39 11722 esac
Chris@39 11723 else :
Chris@39 11724 # compilation failed
Chris@39 11725 lt_cv_dlopen_self=no
Chris@39 11726 fi
Chris@39 11727 fi
Chris@39 11728 rm -fr conftest*
Chris@39 11729
Chris@39 11730
Chris@39 11731 fi
Chris@39 11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
Chris@39 11733 $as_echo "$lt_cv_dlopen_self" >&6; }
Chris@39 11734
Chris@39 11735 if test "x$lt_cv_dlopen_self" = xyes; then
Chris@39 11736 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Chris@39 11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
Chris@39 11738 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Chris@39 11739 if ${lt_cv_dlopen_self_static+:} false; then :
Chris@39 11740 $as_echo_n "(cached) " >&6
Chris@39 11741 else
Chris@39 11742 if test "$cross_compiling" = yes; then :
Chris@39 11743 lt_cv_dlopen_self_static=cross
Chris@39 11744 else
Chris@39 11745 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Chris@39 11746 lt_status=$lt_dlunknown
Chris@39 11747 cat > conftest.$ac_ext <<_LT_EOF
Chris@39 11748 #line $LINENO "configure"
Chris@39 11749 #include "confdefs.h"
Chris@39 11750
Chris@39 11751 #if HAVE_DLFCN_H
Chris@39 11752 #include <dlfcn.h>
Chris@39 11753 #endif
Chris@39 11754
Chris@39 11755 #include <stdio.h>
Chris@39 11756
Chris@39 11757 #ifdef RTLD_GLOBAL
Chris@39 11758 # define LT_DLGLOBAL RTLD_GLOBAL
Chris@39 11759 #else
Chris@39 11760 # ifdef DL_GLOBAL
Chris@39 11761 # define LT_DLGLOBAL DL_GLOBAL
Chris@39 11762 # else
Chris@39 11763 # define LT_DLGLOBAL 0
Chris@39 11764 # endif
Chris@39 11765 #endif
Chris@39 11766
Chris@39 11767 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Chris@39 11768 find out it does not work in some platform. */
Chris@39 11769 #ifndef LT_DLLAZY_OR_NOW
Chris@39 11770 # ifdef RTLD_LAZY
Chris@39 11771 # define LT_DLLAZY_OR_NOW RTLD_LAZY
Chris@39 11772 # else
Chris@39 11773 # ifdef DL_LAZY
Chris@39 11774 # define LT_DLLAZY_OR_NOW DL_LAZY
Chris@39 11775 # else
Chris@39 11776 # ifdef RTLD_NOW
Chris@39 11777 # define LT_DLLAZY_OR_NOW RTLD_NOW
Chris@39 11778 # else
Chris@39 11779 # ifdef DL_NOW
Chris@39 11780 # define LT_DLLAZY_OR_NOW DL_NOW
Chris@39 11781 # else
Chris@39 11782 # define LT_DLLAZY_OR_NOW 0
Chris@39 11783 # endif
Chris@39 11784 # endif
Chris@39 11785 # endif
Chris@39 11786 # endif
Chris@39 11787 #endif
Chris@39 11788
Chris@39 11789 /* When -fvisbility=hidden is used, assume the code has been annotated
Chris@39 11790 correspondingly for the symbols needed. */
Chris@39 11791 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Chris@39 11792 int fnord () __attribute__((visibility("default")));
Chris@39 11793 #endif
Chris@39 11794
Chris@39 11795 int fnord () { return 42; }
Chris@39 11796 int main ()
Chris@39 11797 {
Chris@39 11798 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Chris@39 11799 int status = $lt_dlunknown;
Chris@39 11800
Chris@39 11801 if (self)
Chris@39 11802 {
Chris@39 11803 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Chris@39 11804 else
Chris@39 11805 {
Chris@39 11806 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Chris@39 11807 else puts (dlerror ());
Chris@39 11808 }
Chris@39 11809 /* dlclose (self); */
Chris@39 11810 }
Chris@39 11811 else
Chris@39 11812 puts (dlerror ());
Chris@39 11813
Chris@39 11814 return status;
Chris@39 11815 }
Chris@39 11816 _LT_EOF
Chris@39 11817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Chris@39 11818 (eval $ac_link) 2>&5
Chris@39 11819 ac_status=$?
Chris@39 11820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 11821 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Chris@39 11822 (./conftest; exit; ) >&5 2>/dev/null
Chris@39 11823 lt_status=$?
Chris@39 11824 case x$lt_status in
Chris@39 11825 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
Chris@39 11826 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Chris@39 11827 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
Chris@39 11828 esac
Chris@39 11829 else :
Chris@39 11830 # compilation failed
Chris@39 11831 lt_cv_dlopen_self_static=no
Chris@39 11832 fi
Chris@39 11833 fi
Chris@39 11834 rm -fr conftest*
Chris@39 11835
Chris@39 11836
Chris@39 11837 fi
Chris@39 11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
Chris@39 11839 $as_echo "$lt_cv_dlopen_self_static" >&6; }
Chris@39 11840 fi
Chris@39 11841
Chris@39 11842 CPPFLAGS="$save_CPPFLAGS"
Chris@39 11843 LDFLAGS="$save_LDFLAGS"
Chris@39 11844 LIBS="$save_LIBS"
Chris@39 11845 ;;
Chris@39 11846 esac
Chris@39 11847
Chris@39 11848 case $lt_cv_dlopen_self in
Chris@39 11849 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
Chris@39 11850 *) enable_dlopen_self=unknown ;;
Chris@39 11851 esac
Chris@39 11852
Chris@39 11853 case $lt_cv_dlopen_self_static in
Chris@39 11854 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
Chris@39 11855 *) enable_dlopen_self_static=unknown ;;
Chris@39 11856 esac
Chris@39 11857 fi
Chris@39 11858
Chris@39 11859
Chris@39 11860
Chris@39 11861
Chris@39 11862
Chris@39 11863
Chris@39 11864
Chris@39 11865
Chris@39 11866
Chris@39 11867
Chris@39 11868
Chris@39 11869
Chris@39 11870
Chris@39 11871
Chris@39 11872
Chris@39 11873
Chris@39 11874
Chris@39 11875 striplib=
Chris@39 11876 old_striplib=
Chris@39 11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
Chris@39 11878 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
Chris@39 11879 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
Chris@39 11880 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
Chris@39 11881 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Chris@39 11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@39 11883 $as_echo "yes" >&6; }
Chris@39 11884 else
Chris@39 11885 # FIXME - insert some real tests, host_os isn't really good enough
Chris@39 11886 case $host_os in
Chris@39 11887 darwin*)
Chris@39 11888 if test -n "$STRIP" ; then
Chris@39 11889 striplib="$STRIP -x"
Chris@39 11890 old_striplib="$STRIP -S"
Chris@39 11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@39 11892 $as_echo "yes" >&6; }
Chris@39 11893 else
Chris@39 11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 11895 $as_echo "no" >&6; }
Chris@39 11896 fi
Chris@39 11897 ;;
Chris@39 11898 *)
Chris@39 11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 11900 $as_echo "no" >&6; }
Chris@39 11901 ;;
Chris@39 11902 esac
Chris@39 11903 fi
Chris@39 11904
Chris@39 11905
Chris@39 11906
Chris@39 11907
Chris@39 11908
Chris@39 11909
Chris@39 11910
Chris@39 11911
Chris@39 11912
Chris@39 11913
Chris@39 11914
Chris@39 11915
Chris@39 11916 # Report which library types will actually be built
Chris@39 11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
Chris@39 11918 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
Chris@39 11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
Chris@39 11920 $as_echo "$can_build_shared" >&6; }
Chris@39 11921
Chris@39 11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
Chris@39 11923 $as_echo_n "checking whether to build shared libraries... " >&6; }
Chris@39 11924 test "$can_build_shared" = "no" && enable_shared=no
Chris@39 11925
Chris@39 11926 # On AIX, shared libraries and static libraries use the same namespace, and
Chris@39 11927 # are all built from PIC.
Chris@39 11928 case $host_os in
Chris@39 11929 aix3*)
Chris@39 11930 test "$enable_shared" = yes && enable_static=no
Chris@39 11931 if test -n "$RANLIB"; then
Chris@39 11932 archive_cmds="$archive_cmds~\$RANLIB \$lib"
Chris@39 11933 postinstall_cmds='$RANLIB $lib'
Chris@39 11934 fi
Chris@39 11935 ;;
Chris@39 11936
Chris@39 11937 aix[4-9]*)
Chris@39 11938 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
Chris@39 11939 test "$enable_shared" = yes && enable_static=no
Chris@39 11940 fi
Chris@39 11941 ;;
Chris@39 11942 esac
Chris@39 11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
Chris@39 11944 $as_echo "$enable_shared" >&6; }
Chris@39 11945
Chris@39 11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
Chris@39 11947 $as_echo_n "checking whether to build static libraries... " >&6; }
Chris@39 11948 # Make sure either enable_shared or enable_static is yes.
Chris@39 11949 test "$enable_shared" = yes || enable_static=yes
Chris@39 11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
Chris@39 11951 $as_echo "$enable_static" >&6; }
Chris@39 11952
Chris@39 11953
Chris@39 11954
Chris@39 11955
Chris@39 11956 fi
Chris@39 11957 ac_ext=c
Chris@39 11958 ac_cpp='$CPP $CPPFLAGS'
Chris@39 11959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@39 11960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@39 11961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@39 11962
Chris@39 11963 CC="$lt_save_CC"
Chris@39 11964
Chris@39 11965 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
Chris@39 11966 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
Chris@39 11967 (test "X$CXX" != "Xg++"))) ; then
Chris@39 11968 ac_ext=cpp
Chris@39 11969 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@39 11970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@39 11971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@39 11972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@39 11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
Chris@39 11974 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
Chris@39 11975 if test -z "$CXXCPP"; then
Chris@39 11976 if ${ac_cv_prog_CXXCPP+:} false; then :
Chris@39 11977 $as_echo_n "(cached) " >&6
Chris@39 11978 else
Chris@39 11979 # Double quotes because CXXCPP needs to be expanded
Chris@39 11980 for CXXCPP in "$CXX -E" "/lib/cpp"
Chris@39 11981 do
Chris@39 11982 ac_preproc_ok=false
Chris@39 11983 for ac_cxx_preproc_warn_flag in '' yes
Chris@39 11984 do
Chris@39 11985 # Use a header file that comes with gcc, so configuring glibc
Chris@39 11986 # with a fresh cross-compiler works.
Chris@39 11987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@39 11988 # <limits.h> exists even on freestanding compilers.
Chris@39 11989 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@39 11990 # not just through cpp. "Syntax error" is here to catch this case.
Chris@39 11991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 11992 /* end confdefs.h. */
Chris@39 11993 #ifdef __STDC__
Chris@39 11994 # include <limits.h>
Chris@39 11995 #else
Chris@39 11996 # include <assert.h>
Chris@39 11997 #endif
Chris@39 11998 Syntax error
Chris@39 11999 _ACEOF
Chris@39 12000 if ac_fn_cxx_try_cpp "$LINENO"; then :
Chris@39 12001
Chris@39 12002 else
Chris@39 12003 # Broken: fails on valid input.
Chris@39 12004 continue
Chris@39 12005 fi
Chris@39 12006 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@39 12007
Chris@39 12008 # OK, works on sane cases. Now check whether nonexistent headers
Chris@39 12009 # can be detected and how.
Chris@39 12010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 12011 /* end confdefs.h. */
Chris@39 12012 #include <ac_nonexistent.h>
Chris@39 12013 _ACEOF
Chris@39 12014 if ac_fn_cxx_try_cpp "$LINENO"; then :
Chris@39 12015 # Broken: success on invalid input.
Chris@39 12016 continue
Chris@39 12017 else
Chris@39 12018 # Passes both tests.
Chris@39 12019 ac_preproc_ok=:
Chris@39 12020 break
Chris@39 12021 fi
Chris@39 12022 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@39 12023
Chris@39 12024 done
Chris@39 12025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@39 12026 rm -f conftest.i conftest.err conftest.$ac_ext
Chris@39 12027 if $ac_preproc_ok; then :
Chris@39 12028 break
Chris@39 12029 fi
Chris@39 12030
Chris@39 12031 done
Chris@39 12032 ac_cv_prog_CXXCPP=$CXXCPP
Chris@39 12033
Chris@39 12034 fi
Chris@39 12035 CXXCPP=$ac_cv_prog_CXXCPP
Chris@39 12036 else
Chris@39 12037 ac_cv_prog_CXXCPP=$CXXCPP
Chris@39 12038 fi
Chris@39 12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
Chris@39 12040 $as_echo "$CXXCPP" >&6; }
Chris@39 12041 ac_preproc_ok=false
Chris@39 12042 for ac_cxx_preproc_warn_flag in '' yes
Chris@39 12043 do
Chris@39 12044 # Use a header file that comes with gcc, so configuring glibc
Chris@39 12045 # with a fresh cross-compiler works.
Chris@39 12046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@39 12047 # <limits.h> exists even on freestanding compilers.
Chris@39 12048 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@39 12049 # not just through cpp. "Syntax error" is here to catch this case.
Chris@39 12050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 12051 /* end confdefs.h. */
Chris@39 12052 #ifdef __STDC__
Chris@39 12053 # include <limits.h>
Chris@39 12054 #else
Chris@39 12055 # include <assert.h>
Chris@39 12056 #endif
Chris@39 12057 Syntax error
Chris@39 12058 _ACEOF
Chris@39 12059 if ac_fn_cxx_try_cpp "$LINENO"; then :
Chris@39 12060
Chris@39 12061 else
Chris@39 12062 # Broken: fails on valid input.
Chris@39 12063 continue
Chris@39 12064 fi
Chris@39 12065 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@39 12066
Chris@39 12067 # OK, works on sane cases. Now check whether nonexistent headers
Chris@39 12068 # can be detected and how.
Chris@39 12069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 12070 /* end confdefs.h. */
Chris@39 12071 #include <ac_nonexistent.h>
Chris@39 12072 _ACEOF
Chris@39 12073 if ac_fn_cxx_try_cpp "$LINENO"; then :
Chris@39 12074 # Broken: success on invalid input.
Chris@39 12075 continue
Chris@39 12076 else
Chris@39 12077 # Passes both tests.
Chris@39 12078 ac_preproc_ok=:
Chris@39 12079 break
Chris@39 12080 fi
Chris@39 12081 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@39 12082
Chris@39 12083 done
Chris@39 12084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@39 12085 rm -f conftest.i conftest.err conftest.$ac_ext
Chris@39 12086 if $ac_preproc_ok; then :
Chris@39 12087
Chris@39 12088 else
Chris@39 12089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@39 12090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@39 12091 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
Chris@39 12092 See \`config.log' for more details" "$LINENO" 5; }
Chris@39 12093 fi
Chris@39 12094
Chris@39 12095 ac_ext=c
Chris@39 12096 ac_cpp='$CPP $CPPFLAGS'
Chris@39 12097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@39 12098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@39 12099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@39 12100
Chris@39 12101 else
Chris@39 12102 _lt_caught_CXX_error=yes
Chris@39 12103 fi
Chris@39 12104
Chris@39 12105 ac_ext=cpp
Chris@39 12106 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@39 12107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@39 12108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@39 12109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@39 12110
Chris@39 12111 archive_cmds_need_lc_CXX=no
Chris@39 12112 allow_undefined_flag_CXX=
Chris@39 12113 always_export_symbols_CXX=no
Chris@39 12114 archive_expsym_cmds_CXX=
Chris@39 12115 compiler_needs_object_CXX=no
Chris@39 12116 export_dynamic_flag_spec_CXX=
Chris@39 12117 hardcode_direct_CXX=no
Chris@39 12118 hardcode_direct_absolute_CXX=no
Chris@39 12119 hardcode_libdir_flag_spec_CXX=
Chris@39 12120 hardcode_libdir_flag_spec_ld_CXX=
Chris@39 12121 hardcode_libdir_separator_CXX=
Chris@39 12122 hardcode_minus_L_CXX=no
Chris@39 12123 hardcode_shlibpath_var_CXX=unsupported
Chris@39 12124 hardcode_automatic_CXX=no
Chris@39 12125 inherit_rpath_CXX=no
Chris@39 12126 module_cmds_CXX=
Chris@39 12127 module_expsym_cmds_CXX=
Chris@39 12128 link_all_deplibs_CXX=unknown
Chris@39 12129 old_archive_cmds_CXX=$old_archive_cmds
Chris@39 12130 reload_flag_CXX=$reload_flag
Chris@39 12131 reload_cmds_CXX=$reload_cmds
Chris@39 12132 no_undefined_flag_CXX=
Chris@39 12133 whole_archive_flag_spec_CXX=
Chris@39 12134 enable_shared_with_static_runtimes_CXX=no
Chris@39 12135
Chris@39 12136 # Source file extension for C++ test sources.
Chris@39 12137 ac_ext=cpp
Chris@39 12138
Chris@39 12139 # Object file extension for compiled C++ test sources.
Chris@39 12140 objext=o
Chris@39 12141 objext_CXX=$objext
Chris@39 12142
Chris@39 12143 # No sense in running all these tests if we already determined that
Chris@39 12144 # the CXX compiler isn't working. Some variables (like enable_shared)
Chris@39 12145 # are currently assumed to apply to all compilers on this platform,
Chris@39 12146 # and will be corrupted by setting them based on a non-working compiler.
Chris@39 12147 if test "$_lt_caught_CXX_error" != yes; then
Chris@39 12148 # Code to be used in simple compile tests
Chris@39 12149 lt_simple_compile_test_code="int some_variable = 0;"
Chris@39 12150
Chris@39 12151 # Code to be used in simple link tests
Chris@39 12152 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
Chris@39 12153
Chris@39 12154 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
Chris@39 12155
Chris@39 12156
Chris@39 12157
Chris@39 12158
Chris@39 12159
Chris@39 12160
Chris@39 12161 # If no C compiler was specified, use CC.
Chris@39 12162 LTCC=${LTCC-"$CC"}
Chris@39 12163
Chris@39 12164 # If no C compiler flags were specified, use CFLAGS.
Chris@39 12165 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Chris@39 12166
Chris@39 12167 # Allow CC to be a program name with arguments.
Chris@39 12168 compiler=$CC
Chris@39 12169
Chris@39 12170
Chris@39 12171 # save warnings/boilerplate of simple test code
Chris@39 12172 ac_outfile=conftest.$ac_objext
Chris@39 12173 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Chris@39 12174 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@39 12175 _lt_compiler_boilerplate=`cat conftest.err`
Chris@39 12176 $RM conftest*
Chris@39 12177
Chris@39 12178 ac_outfile=conftest.$ac_objext
Chris@39 12179 echo "$lt_simple_link_test_code" >conftest.$ac_ext
Chris@39 12180 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@39 12181 _lt_linker_boilerplate=`cat conftest.err`
Chris@39 12182 $RM -r conftest*
Chris@39 12183
Chris@39 12184
Chris@39 12185 # Allow CC to be a program name with arguments.
Chris@39 12186 lt_save_CC=$CC
Chris@39 12187 lt_save_CFLAGS=$CFLAGS
Chris@39 12188 lt_save_LD=$LD
Chris@39 12189 lt_save_GCC=$GCC
Chris@39 12190 GCC=$GXX
Chris@39 12191 lt_save_with_gnu_ld=$with_gnu_ld
Chris@39 12192 lt_save_path_LD=$lt_cv_path_LD
Chris@39 12193 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
Chris@39 12194 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
Chris@39 12195 else
Chris@39 12196 $as_unset lt_cv_prog_gnu_ld
Chris@39 12197 fi
Chris@39 12198 if test -n "${lt_cv_path_LDCXX+set}"; then
Chris@39 12199 lt_cv_path_LD=$lt_cv_path_LDCXX
Chris@39 12200 else
Chris@39 12201 $as_unset lt_cv_path_LD
Chris@39 12202 fi
Chris@39 12203 test -z "${LDCXX+set}" || LD=$LDCXX
Chris@39 12204 CC=${CXX-"c++"}
Chris@39 12205 CFLAGS=$CXXFLAGS
Chris@39 12206 compiler=$CC
Chris@39 12207 compiler_CXX=$CC
Chris@39 12208 for cc_temp in $compiler""; do
Chris@39 12209 case $cc_temp in
Chris@39 12210 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
Chris@39 12211 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
Chris@39 12212 \-*) ;;
Chris@39 12213 *) break;;
Chris@39 12214 esac
Chris@39 12215 done
Chris@39 12216 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Chris@39 12217
Chris@39 12218
Chris@39 12219 if test -n "$compiler"; then
Chris@39 12220 # We don't want -fno-exception when compiling C++ code, so set the
Chris@39 12221 # no_builtin_flag separately
Chris@39 12222 if test "$GXX" = yes; then
Chris@39 12223 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
Chris@39 12224 else
Chris@39 12225 lt_prog_compiler_no_builtin_flag_CXX=
Chris@39 12226 fi
Chris@39 12227
Chris@39 12228 if test "$GXX" = yes; then
Chris@39 12229 # Set up default GNU C++ configuration
Chris@39 12230
Chris@39 12231
Chris@39 12232
Chris@39 12233 # Check whether --with-gnu-ld was given.
Chris@39 12234 if test "${with_gnu_ld+set}" = set; then :
Chris@39 12235 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Chris@39 12236 else
Chris@39 12237 with_gnu_ld=no
Chris@39 12238 fi
Chris@39 12239
Chris@39 12240 ac_prog=ld
Chris@39 12241 if test "$GCC" = yes; then
Chris@39 12242 # Check if gcc -print-prog-name=ld gives a path.
Chris@39 12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
Chris@39 12244 $as_echo_n "checking for ld used by $CC... " >&6; }
Chris@39 12245 case $host in
Chris@39 12246 *-*-mingw*)
Chris@39 12247 # gcc leaves a trailing carriage return which upsets mingw
Chris@39 12248 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
Chris@39 12249 *)
Chris@39 12250 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
Chris@39 12251 esac
Chris@39 12252 case $ac_prog in
Chris@39 12253 # Accept absolute paths.
Chris@39 12254 [\\/]* | ?:[\\/]*)
Chris@39 12255 re_direlt='/[^/][^/]*/\.\./'
Chris@39 12256 # Canonicalize the pathname of ld
Chris@39 12257 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
Chris@39 12258 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
Chris@39 12259 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Chris@39 12260 done
Chris@39 12261 test -z "$LD" && LD="$ac_prog"
Chris@39 12262 ;;
Chris@39 12263 "")
Chris@39 12264 # If it fails, then pretend we aren't using GCC.
Chris@39 12265 ac_prog=ld
Chris@39 12266 ;;
Chris@39 12267 *)
Chris@39 12268 # If it is relative, then search for the first ld in PATH.
Chris@39 12269 with_gnu_ld=unknown
Chris@39 12270 ;;
Chris@39 12271 esac
Chris@39 12272 elif test "$with_gnu_ld" = yes; then
Chris@39 12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Chris@39 12274 $as_echo_n "checking for GNU ld... " >&6; }
Chris@39 12275 else
Chris@39 12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Chris@39 12277 $as_echo_n "checking for non-GNU ld... " >&6; }
Chris@39 12278 fi
Chris@39 12279 if ${lt_cv_path_LD+:} false; then :
Chris@39 12280 $as_echo_n "(cached) " >&6
Chris@39 12281 else
Chris@39 12282 if test -z "$LD"; then
Chris@39 12283 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@39 12284 for ac_dir in $PATH; do
Chris@39 12285 IFS="$lt_save_ifs"
Chris@39 12286 test -z "$ac_dir" && ac_dir=.
Chris@39 12287 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Chris@39 12288 lt_cv_path_LD="$ac_dir/$ac_prog"
Chris@39 12289 # Check to see if the program is GNU ld. I'd rather use --version,
Chris@39 12290 # but apparently some variants of GNU ld only accept -v.
Chris@39 12291 # Break only if it was the GNU/non-GNU ld that we prefer.
Chris@39 12292 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
Chris@39 12293 *GNU* | *'with BFD'*)
Chris@39 12294 test "$with_gnu_ld" != no && break
Chris@39 12295 ;;
Chris@39 12296 *)
Chris@39 12297 test "$with_gnu_ld" != yes && break
Chris@39 12298 ;;
Chris@39 12299 esac
Chris@39 12300 fi
Chris@39 12301 done
Chris@39 12302 IFS="$lt_save_ifs"
Chris@39 12303 else
Chris@39 12304 lt_cv_path_LD="$LD" # Let the user override the test with a path.
Chris@39 12305 fi
Chris@39 12306 fi
Chris@39 12307
Chris@39 12308 LD="$lt_cv_path_LD"
Chris@39 12309 if test -n "$LD"; then
Chris@39 12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Chris@39 12311 $as_echo "$LD" >&6; }
Chris@39 12312 else
Chris@39 12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 12314 $as_echo "no" >&6; }
Chris@39 12315 fi
Chris@39 12316 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Chris@39 12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Chris@39 12318 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Chris@39 12319 if ${lt_cv_prog_gnu_ld+:} false; then :
Chris@39 12320 $as_echo_n "(cached) " >&6
Chris@39 12321 else
Chris@39 12322 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Chris@39 12323 case `$LD -v 2>&1 </dev/null` in
Chris@39 12324 *GNU* | *'with BFD'*)
Chris@39 12325 lt_cv_prog_gnu_ld=yes
Chris@39 12326 ;;
Chris@39 12327 *)
Chris@39 12328 lt_cv_prog_gnu_ld=no
Chris@39 12329 ;;
Chris@39 12330 esac
Chris@39 12331 fi
Chris@39 12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
Chris@39 12333 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
Chris@39 12334 with_gnu_ld=$lt_cv_prog_gnu_ld
Chris@39 12335
Chris@39 12336
Chris@39 12337
Chris@39 12338
Chris@39 12339
Chris@39 12340
Chris@39 12341
Chris@39 12342 # Check if GNU C++ uses GNU ld as the underlying linker, since the
Chris@39 12343 # archiving commands below assume that GNU ld is being used.
Chris@39 12344 if test "$with_gnu_ld" = yes; then
Chris@39 12345 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 12346 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@39 12347
Chris@39 12348 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
Chris@39 12349 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
Chris@39 12350
Chris@39 12351 # If archive_cmds runs LD, not CC, wlarc should be empty
Chris@39 12352 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
Chris@39 12353 # investigate it a little bit more. (MM)
Chris@39 12354 wlarc='${wl}'
Chris@39 12355
Chris@39 12356 # ancient GNU ld didn't support --whole-archive et. al.
Chris@39 12357 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
Chris@39 12358 $GREP 'no-whole-archive' > /dev/null; then
Chris@39 12359 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
Chris@39 12360 else
Chris@39 12361 whole_archive_flag_spec_CXX=
Chris@39 12362 fi
Chris@39 12363 else
Chris@39 12364 with_gnu_ld=no
Chris@39 12365 wlarc=
Chris@39 12366
Chris@39 12367 # A generic and very simple default shared library creation
Chris@39 12368 # command for GNU C++ for the case where it uses the native
Chris@39 12369 # linker, instead of GNU ld. If possible, this setting should
Chris@39 12370 # overridden to take advantage of the native linker features on
Chris@39 12371 # the platform it is being used on.
Chris@39 12372 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
Chris@39 12373 fi
Chris@39 12374
Chris@39 12375 # Commands to make compiler produce verbose output that lists
Chris@39 12376 # what "hidden" libraries, object files and flags are used when
Chris@39 12377 # linking a shared library.
Chris@39 12378 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
Chris@39 12379
Chris@39 12380 else
Chris@39 12381 GXX=no
Chris@39 12382 with_gnu_ld=no
Chris@39 12383 wlarc=
Chris@39 12384 fi
Chris@39 12385
Chris@39 12386 # PORTME: fill in a description of your system's C++ link characteristics
Chris@39 12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Chris@39 12388 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Chris@39 12389 ld_shlibs_CXX=yes
Chris@39 12390 case $host_os in
Chris@39 12391 aix3*)
Chris@39 12392 # FIXME: insert proper C++ library support
Chris@39 12393 ld_shlibs_CXX=no
Chris@39 12394 ;;
Chris@39 12395 aix[4-9]*)
Chris@39 12396 if test "$host_cpu" = ia64; then
Chris@39 12397 # On IA64, the linker does run time linking by default, so we don't
Chris@39 12398 # have to do anything special.
Chris@39 12399 aix_use_runtimelinking=no
Chris@39 12400 exp_sym_flag='-Bexport'
Chris@39 12401 no_entry_flag=""
Chris@39 12402 else
Chris@39 12403 aix_use_runtimelinking=no
Chris@39 12404
Chris@39 12405 # Test if we are trying to use run time linking or normal
Chris@39 12406 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Chris@39 12407 # need to do runtime linking.
Chris@39 12408 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Chris@39 12409 for ld_flag in $LDFLAGS; do
Chris@39 12410 case $ld_flag in
Chris@39 12411 *-brtl*)
Chris@39 12412 aix_use_runtimelinking=yes
Chris@39 12413 break
Chris@39 12414 ;;
Chris@39 12415 esac
Chris@39 12416 done
Chris@39 12417 ;;
Chris@39 12418 esac
Chris@39 12419
Chris@39 12420 exp_sym_flag='-bexport'
Chris@39 12421 no_entry_flag='-bnoentry'
Chris@39 12422 fi
Chris@39 12423
Chris@39 12424 # When large executables or shared objects are built, AIX ld can
Chris@39 12425 # have problems creating the table of contents. If linking a library
Chris@39 12426 # or program results in "error TOC overflow" add -mminimal-toc to
Chris@39 12427 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
Chris@39 12428 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
Chris@39 12429
Chris@39 12430 archive_cmds_CXX=''
Chris@39 12431 hardcode_direct_CXX=yes
Chris@39 12432 hardcode_direct_absolute_CXX=yes
Chris@39 12433 hardcode_libdir_separator_CXX=':'
Chris@39 12434 link_all_deplibs_CXX=yes
Chris@39 12435 file_list_spec_CXX='${wl}-f,'
Chris@39 12436
Chris@39 12437 if test "$GXX" = yes; then
Chris@39 12438 case $host_os in aix4.[012]|aix4.[012].*)
Chris@39 12439 # We only want to do this on AIX 4.2 and lower, the check
Chris@39 12440 # below for broken collect2 doesn't work under 4.3+
Chris@39 12441 collect2name=`${CC} -print-prog-name=collect2`
Chris@39 12442 if test -f "$collect2name" &&
Chris@39 12443 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Chris@39 12444 then
Chris@39 12445 # We have reworked collect2
Chris@39 12446 :
Chris@39 12447 else
Chris@39 12448 # We have old collect2
Chris@39 12449 hardcode_direct_CXX=unsupported
Chris@39 12450 # It fails to find uninstalled libraries when the uninstalled
Chris@39 12451 # path is not listed in the libpath. Setting hardcode_minus_L
Chris@39 12452 # to unsupported forces relinking
Chris@39 12453 hardcode_minus_L_CXX=yes
Chris@39 12454 hardcode_libdir_flag_spec_CXX='-L$libdir'
Chris@39 12455 hardcode_libdir_separator_CXX=
Chris@39 12456 fi
Chris@39 12457 esac
Chris@39 12458 shared_flag='-shared'
Chris@39 12459 if test "$aix_use_runtimelinking" = yes; then
Chris@39 12460 shared_flag="$shared_flag "'${wl}-G'
Chris@39 12461 fi
Chris@39 12462 else
Chris@39 12463 # not using gcc
Chris@39 12464 if test "$host_cpu" = ia64; then
Chris@39 12465 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
Chris@39 12466 # chokes on -Wl,-G. The following line is correct:
Chris@39 12467 shared_flag='-G'
Chris@39 12468 else
Chris@39 12469 if test "$aix_use_runtimelinking" = yes; then
Chris@39 12470 shared_flag='${wl}-G'
Chris@39 12471 else
Chris@39 12472 shared_flag='${wl}-bM:SRE'
Chris@39 12473 fi
Chris@39 12474 fi
Chris@39 12475 fi
Chris@39 12476
Chris@39 12477 export_dynamic_flag_spec_CXX='${wl}-bexpall'
Chris@39 12478 # It seems that -bexpall does not export symbols beginning with
Chris@39 12479 # underscore (_), so it is better to generate a list of symbols to
Chris@39 12480 # export.
Chris@39 12481 always_export_symbols_CXX=yes
Chris@39 12482 if test "$aix_use_runtimelinking" = yes; then
Chris@39 12483 # Warning - without using the other runtime loading flags (-brtl),
Chris@39 12484 # -berok will link without error, but may produce a broken library.
Chris@39 12485 allow_undefined_flag_CXX='-berok'
Chris@39 12486 # Determine the default libpath from the value encoded in an empty
Chris@39 12487 # executable.
Chris@39 12488 if test "${lt_cv_aix_libpath+set}" = set; then
Chris@39 12489 aix_libpath=$lt_cv_aix_libpath
Chris@39 12490 else
Chris@39 12491 if ${lt_cv_aix_libpath__CXX+:} false; then :
Chris@39 12492 $as_echo_n "(cached) " >&6
Chris@39 12493 else
Chris@39 12494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 12495 /* end confdefs.h. */
Chris@39 12496
Chris@39 12497 int
Chris@39 12498 main ()
Chris@39 12499 {
Chris@39 12500
Chris@39 12501 ;
Chris@39 12502 return 0;
Chris@39 12503 }
Chris@39 12504 _ACEOF
Chris@39 12505 if ac_fn_cxx_try_link "$LINENO"; then :
Chris@39 12506
Chris@39 12507 lt_aix_libpath_sed='
Chris@39 12508 /Import File Strings/,/^$/ {
Chris@39 12509 /^0/ {
Chris@39 12510 s/^0 *\([^ ]*\) *$/\1/
Chris@39 12511 p
Chris@39 12512 }
Chris@39 12513 }'
Chris@39 12514 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@39 12515 # Check for a 64-bit object if we didn't find anything.
Chris@39 12516 if test -z "$lt_cv_aix_libpath__CXX"; then
Chris@39 12517 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@39 12518 fi
Chris@39 12519 fi
Chris@39 12520 rm -f core conftest.err conftest.$ac_objext \
Chris@39 12521 conftest$ac_exeext conftest.$ac_ext
Chris@39 12522 if test -z "$lt_cv_aix_libpath__CXX"; then
Chris@39 12523 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
Chris@39 12524 fi
Chris@39 12525
Chris@39 12526 fi
Chris@39 12527
Chris@39 12528 aix_libpath=$lt_cv_aix_libpath__CXX
Chris@39 12529 fi
Chris@39 12530
Chris@39 12531 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
Chris@39 12532
Chris@39 12533 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
Chris@39 12534 else
Chris@39 12535 if test "$host_cpu" = ia64; then
Chris@39 12536 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
Chris@39 12537 allow_undefined_flag_CXX="-z nodefs"
Chris@39 12538 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"
Chris@39 12539 else
Chris@39 12540 # Determine the default libpath from the value encoded in an
Chris@39 12541 # empty executable.
Chris@39 12542 if test "${lt_cv_aix_libpath+set}" = set; then
Chris@39 12543 aix_libpath=$lt_cv_aix_libpath
Chris@39 12544 else
Chris@39 12545 if ${lt_cv_aix_libpath__CXX+:} false; then :
Chris@39 12546 $as_echo_n "(cached) " >&6
Chris@39 12547 else
Chris@39 12548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 12549 /* end confdefs.h. */
Chris@39 12550
Chris@39 12551 int
Chris@39 12552 main ()
Chris@39 12553 {
Chris@39 12554
Chris@39 12555 ;
Chris@39 12556 return 0;
Chris@39 12557 }
Chris@39 12558 _ACEOF
Chris@39 12559 if ac_fn_cxx_try_link "$LINENO"; then :
Chris@39 12560
Chris@39 12561 lt_aix_libpath_sed='
Chris@39 12562 /Import File Strings/,/^$/ {
Chris@39 12563 /^0/ {
Chris@39 12564 s/^0 *\([^ ]*\) *$/\1/
Chris@39 12565 p
Chris@39 12566 }
Chris@39 12567 }'
Chris@39 12568 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@39 12569 # Check for a 64-bit object if we didn't find anything.
Chris@39 12570 if test -z "$lt_cv_aix_libpath__CXX"; then
Chris@39 12571 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@39 12572 fi
Chris@39 12573 fi
Chris@39 12574 rm -f core conftest.err conftest.$ac_objext \
Chris@39 12575 conftest$ac_exeext conftest.$ac_ext
Chris@39 12576 if test -z "$lt_cv_aix_libpath__CXX"; then
Chris@39 12577 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
Chris@39 12578 fi
Chris@39 12579
Chris@39 12580 fi
Chris@39 12581
Chris@39 12582 aix_libpath=$lt_cv_aix_libpath__CXX
Chris@39 12583 fi
Chris@39 12584
Chris@39 12585 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
Chris@39 12586 # Warning - without using the other run time loading flags,
Chris@39 12587 # -berok will link without error, but may produce a broken library.
Chris@39 12588 no_undefined_flag_CXX=' ${wl}-bernotok'
Chris@39 12589 allow_undefined_flag_CXX=' ${wl}-berok'
Chris@39 12590 if test "$with_gnu_ld" = yes; then
Chris@39 12591 # We only use this code for GNU lds that support --whole-archive.
Chris@39 12592 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
Chris@39 12593 else
Chris@39 12594 # Exported symbols can be pulled into shared objects from archives
Chris@39 12595 whole_archive_flag_spec_CXX='$convenience'
Chris@39 12596 fi
Chris@39 12597 archive_cmds_need_lc_CXX=yes
Chris@39 12598 # This is similar to how AIX traditionally builds its shared
Chris@39 12599 # libraries.
Chris@39 12600 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'
Chris@39 12601 fi
Chris@39 12602 fi
Chris@39 12603 ;;
Chris@39 12604
Chris@39 12605 beos*)
Chris@39 12606 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@39 12607 allow_undefined_flag_CXX=unsupported
Chris@39 12608 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
Chris@39 12609 # support --undefined. This deserves some investigation. FIXME
Chris@39 12610 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 12611 else
Chris@39 12612 ld_shlibs_CXX=no
Chris@39 12613 fi
Chris@39 12614 ;;
Chris@39 12615
Chris@39 12616 chorus*)
Chris@39 12617 case $cc_basename in
Chris@39 12618 *)
Chris@39 12619 # FIXME: insert proper C++ library support
Chris@39 12620 ld_shlibs_CXX=no
Chris@39 12621 ;;
Chris@39 12622 esac
Chris@39 12623 ;;
Chris@39 12624
Chris@39 12625 cygwin* | mingw* | pw32* | cegcc*)
Chris@39 12626 case $GXX,$cc_basename in
Chris@39 12627 ,cl* | no,cl*)
Chris@39 12628 # Native MSVC
Chris@39 12629 # hardcode_libdir_flag_spec is actually meaningless, as there is
Chris@39 12630 # no search path for DLLs.
Chris@39 12631 hardcode_libdir_flag_spec_CXX=' '
Chris@39 12632 allow_undefined_flag_CXX=unsupported
Chris@39 12633 always_export_symbols_CXX=yes
Chris@39 12634 file_list_spec_CXX='@'
Chris@39 12635 # Tell ltmain to make .lib files, not .a files.
Chris@39 12636 libext=lib
Chris@39 12637 # Tell ltmain to make .dll files, not .so files.
Chris@39 12638 shrext_cmds=".dll"
Chris@39 12639 # FIXME: Setting linknames here is a bad hack.
Chris@39 12640 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
Chris@39 12641 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
Chris@39 12642 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
Chris@39 12643 else
Chris@39 12644 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
Chris@39 12645 fi~
Chris@39 12646 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
Chris@39 12647 linknames='
Chris@39 12648 # The linker will not automatically build a static lib if we build a DLL.
Chris@39 12649 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
Chris@39 12650 enable_shared_with_static_runtimes_CXX=yes
Chris@39 12651 # Don't use ranlib
Chris@39 12652 old_postinstall_cmds_CXX='chmod 644 $oldlib'
Chris@39 12653 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
Chris@39 12654 lt_tool_outputfile="@TOOL_OUTPUT@"~
Chris@39 12655 case $lt_outputfile in
Chris@39 12656 *.exe|*.EXE) ;;
Chris@39 12657 *)
Chris@39 12658 lt_outputfile="$lt_outputfile.exe"
Chris@39 12659 lt_tool_outputfile="$lt_tool_outputfile.exe"
Chris@39 12660 ;;
Chris@39 12661 esac~
Chris@39 12662 func_to_tool_file "$lt_outputfile"~
Chris@39 12663 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
Chris@39 12664 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
Chris@39 12665 $RM "$lt_outputfile.manifest";
Chris@39 12666 fi'
Chris@39 12667 ;;
Chris@39 12668 *)
Chris@39 12669 # g++
Chris@39 12670 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
Chris@39 12671 # as there is no search path for DLLs.
Chris@39 12672 hardcode_libdir_flag_spec_CXX='-L$libdir'
Chris@39 12673 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
Chris@39 12674 allow_undefined_flag_CXX=unsupported
Chris@39 12675 always_export_symbols_CXX=no
Chris@39 12676 enable_shared_with_static_runtimes_CXX=yes
Chris@39 12677
Chris@39 12678 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Chris@39 12679 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'
Chris@39 12680 # If the export-symbols file already is a .def file (1st line
Chris@39 12681 # is EXPORTS), use it as is; otherwise, prepend...
Chris@39 12682 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
Chris@39 12683 cp $export_symbols $output_objdir/$soname.def;
Chris@39 12684 else
Chris@39 12685 echo EXPORTS > $output_objdir/$soname.def;
Chris@39 12686 cat $export_symbols >> $output_objdir/$soname.def;
Chris@39 12687 fi~
Chris@39 12688 $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'
Chris@39 12689 else
Chris@39 12690 ld_shlibs_CXX=no
Chris@39 12691 fi
Chris@39 12692 ;;
Chris@39 12693 esac
Chris@39 12694 ;;
Chris@39 12695 darwin* | rhapsody*)
Chris@39 12696
Chris@39 12697
Chris@39 12698 archive_cmds_need_lc_CXX=no
Chris@39 12699 hardcode_direct_CXX=no
Chris@39 12700 hardcode_automatic_CXX=yes
Chris@39 12701 hardcode_shlibpath_var_CXX=unsupported
Chris@39 12702 if test "$lt_cv_ld_force_load" = "yes"; then
Chris@39 12703 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
Chris@39 12704 else
Chris@39 12705 whole_archive_flag_spec_CXX=''
Chris@39 12706 fi
Chris@39 12707 link_all_deplibs_CXX=yes
Chris@39 12708 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
Chris@39 12709 case $cc_basename in
Chris@39 12710 ifort*) _lt_dar_can_shared=yes ;;
Chris@39 12711 *) _lt_dar_can_shared=$GCC ;;
Chris@39 12712 esac
Chris@39 12713 if test "$_lt_dar_can_shared" = "yes"; then
Chris@39 12714 output_verbose_link_cmd=func_echo_all
Chris@39 12715 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}"
Chris@39 12716 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
Chris@39 12717 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}"
Chris@39 12718 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}"
Chris@39 12719 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
Chris@39 12720 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}"
Chris@39 12721 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}"
Chris@39 12722 fi
Chris@39 12723
Chris@39 12724 else
Chris@39 12725 ld_shlibs_CXX=no
Chris@39 12726 fi
Chris@39 12727
Chris@39 12728 ;;
Chris@39 12729
Chris@39 12730 dgux*)
Chris@39 12731 case $cc_basename in
Chris@39 12732 ec++*)
Chris@39 12733 # FIXME: insert proper C++ library support
Chris@39 12734 ld_shlibs_CXX=no
Chris@39 12735 ;;
Chris@39 12736 ghcx*)
Chris@39 12737 # Green Hills C++ Compiler
Chris@39 12738 # FIXME: insert proper C++ library support
Chris@39 12739 ld_shlibs_CXX=no
Chris@39 12740 ;;
Chris@39 12741 *)
Chris@39 12742 # FIXME: insert proper C++ library support
Chris@39 12743 ld_shlibs_CXX=no
Chris@39 12744 ;;
Chris@39 12745 esac
Chris@39 12746 ;;
Chris@39 12747
Chris@39 12748 freebsd[12]*)
Chris@39 12749 # C++ shared libraries reported to be fairly broken before
Chris@39 12750 # switch to ELF
Chris@39 12751 ld_shlibs_CXX=no
Chris@39 12752 ;;
Chris@39 12753
Chris@39 12754 freebsd-elf*)
Chris@39 12755 archive_cmds_need_lc_CXX=no
Chris@39 12756 ;;
Chris@39 12757
Chris@39 12758 freebsd* | dragonfly*)
Chris@39 12759 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
Chris@39 12760 # conventions
Chris@39 12761 ld_shlibs_CXX=yes
Chris@39 12762 ;;
Chris@39 12763
Chris@39 12764 gnu*)
Chris@39 12765 ;;
Chris@39 12766
Chris@39 12767 haiku*)
Chris@39 12768 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 12769 link_all_deplibs_CXX=yes
Chris@39 12770 ;;
Chris@39 12771
Chris@39 12772 hpux9*)
Chris@39 12773 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
Chris@39 12774 hardcode_libdir_separator_CXX=:
Chris@39 12775 export_dynamic_flag_spec_CXX='${wl}-E'
Chris@39 12776 hardcode_direct_CXX=yes
Chris@39 12777 hardcode_minus_L_CXX=yes # Not in the search PATH,
Chris@39 12778 # but as the default
Chris@39 12779 # location of the library.
Chris@39 12780
Chris@39 12781 case $cc_basename in
Chris@39 12782 CC*)
Chris@39 12783 # FIXME: insert proper C++ library support
Chris@39 12784 ld_shlibs_CXX=no
Chris@39 12785 ;;
Chris@39 12786 aCC*)
Chris@39 12787 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'
Chris@39 12788 # Commands to make compiler produce verbose output that lists
Chris@39 12789 # what "hidden" libraries, object files and flags are used when
Chris@39 12790 # linking a shared library.
Chris@39 12791 #
Chris@39 12792 # There doesn't appear to be a way to prevent this compiler from
Chris@39 12793 # explicitly linking system object files so we need to strip them
Chris@39 12794 # from the output so that they don't get included in the library
Chris@39 12795 # dependencies.
Chris@39 12796 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; func_echo_all "$list"'
Chris@39 12797 ;;
Chris@39 12798 *)
Chris@39 12799 if test "$GXX" = yes; then
Chris@39 12800 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
Chris@39 12801 else
Chris@39 12802 # FIXME: insert proper C++ library support
Chris@39 12803 ld_shlibs_CXX=no
Chris@39 12804 fi
Chris@39 12805 ;;
Chris@39 12806 esac
Chris@39 12807 ;;
Chris@39 12808
Chris@39 12809 hpux10*|hpux11*)
Chris@39 12810 if test $with_gnu_ld = no; then
Chris@39 12811 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
Chris@39 12812 hardcode_libdir_separator_CXX=:
Chris@39 12813
Chris@39 12814 case $host_cpu in
Chris@39 12815 hppa*64*|ia64*)
Chris@39 12816 ;;
Chris@39 12817 *)
Chris@39 12818 export_dynamic_flag_spec_CXX='${wl}-E'
Chris@39 12819 ;;
Chris@39 12820 esac
Chris@39 12821 fi
Chris@39 12822 case $host_cpu in
Chris@39 12823 hppa*64*|ia64*)
Chris@39 12824 hardcode_direct_CXX=no
Chris@39 12825 hardcode_shlibpath_var_CXX=no
Chris@39 12826 ;;
Chris@39 12827 *)
Chris@39 12828 hardcode_direct_CXX=yes
Chris@39 12829 hardcode_direct_absolute_CXX=yes
Chris@39 12830 hardcode_minus_L_CXX=yes # Not in the search PATH,
Chris@39 12831 # but as the default
Chris@39 12832 # location of the library.
Chris@39 12833 ;;
Chris@39 12834 esac
Chris@39 12835
Chris@39 12836 case $cc_basename in
Chris@39 12837 CC*)
Chris@39 12838 # FIXME: insert proper C++ library support
Chris@39 12839 ld_shlibs_CXX=no
Chris@39 12840 ;;
Chris@39 12841 aCC*)
Chris@39 12842 case $host_cpu in
Chris@39 12843 hppa*64*)
Chris@39 12844 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Chris@39 12845 ;;
Chris@39 12846 ia64*)
Chris@39 12847 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Chris@39 12848 ;;
Chris@39 12849 *)
Chris@39 12850 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Chris@39 12851 ;;
Chris@39 12852 esac
Chris@39 12853 # Commands to make compiler produce verbose output that lists
Chris@39 12854 # what "hidden" libraries, object files and flags are used when
Chris@39 12855 # linking a shared library.
Chris@39 12856 #
Chris@39 12857 # There doesn't appear to be a way to prevent this compiler from
Chris@39 12858 # explicitly linking system object files so we need to strip them
Chris@39 12859 # from the output so that they don't get included in the library
Chris@39 12860 # dependencies.
Chris@39 12861 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; func_echo_all "$list"'
Chris@39 12862 ;;
Chris@39 12863 *)
Chris@39 12864 if test "$GXX" = yes; then
Chris@39 12865 if test $with_gnu_ld = no; then
Chris@39 12866 case $host_cpu in
Chris@39 12867 hppa*64*)
Chris@39 12868 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Chris@39 12869 ;;
Chris@39 12870 ia64*)
Chris@39 12871 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Chris@39 12872 ;;
Chris@39 12873 *)
Chris@39 12874 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Chris@39 12875 ;;
Chris@39 12876 esac
Chris@39 12877 fi
Chris@39 12878 else
Chris@39 12879 # FIXME: insert proper C++ library support
Chris@39 12880 ld_shlibs_CXX=no
Chris@39 12881 fi
Chris@39 12882 ;;
Chris@39 12883 esac
Chris@39 12884 ;;
Chris@39 12885
Chris@39 12886 interix[3-9]*)
Chris@39 12887 hardcode_direct_CXX=no
Chris@39 12888 hardcode_shlibpath_var_CXX=no
Chris@39 12889 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
Chris@39 12890 export_dynamic_flag_spec_CXX='${wl}-E'
Chris@39 12891 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
Chris@39 12892 # Instead, shared libraries are loaded at an image base (0x10000000 by
Chris@39 12893 # default) and relocated if they conflict, which is a slow very memory
Chris@39 12894 # consuming and fragmenting process. To avoid this, we pick a random,
Chris@39 12895 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
Chris@39 12896 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Chris@39 12897 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'
Chris@39 12898 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'
Chris@39 12899 ;;
Chris@39 12900 irix5* | irix6*)
Chris@39 12901 case $cc_basename in
Chris@39 12902 CC*)
Chris@39 12903 # SGI C++
Chris@39 12904 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
Chris@39 12905
Chris@39 12906 # Archives containing C++ object files must be created using
Chris@39 12907 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
Chris@39 12908 # necessary to make sure instantiated templates are included
Chris@39 12909 # in the archive.
Chris@39 12910 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
Chris@39 12911 ;;
Chris@39 12912 *)
Chris@39 12913 if test "$GXX" = yes; then
Chris@39 12914 if test "$with_gnu_ld" = no; then
Chris@39 12915 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Chris@39 12916 else
Chris@39 12917 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
Chris@39 12918 fi
Chris@39 12919 fi
Chris@39 12920 link_all_deplibs_CXX=yes
Chris@39 12921 ;;
Chris@39 12922 esac
Chris@39 12923 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
Chris@39 12924 hardcode_libdir_separator_CXX=:
Chris@39 12925 inherit_rpath_CXX=yes
Chris@39 12926 ;;
Chris@39 12927
Chris@39 12928 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@39 12929 case $cc_basename in
Chris@39 12930 KCC*)
Chris@39 12931 # Kuck and Associates, Inc. (KAI) C++ Compiler
Chris@39 12932
Chris@39 12933 # KCC will only create a shared library if the output file
Chris@39 12934 # ends with ".so" (or ".sl" for HP-UX), so rename the library
Chris@39 12935 # to its proper name (with version) after linking.
Chris@39 12936 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'
Chris@39 12937 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'
Chris@39 12938 # Commands to make compiler produce verbose output that lists
Chris@39 12939 # what "hidden" libraries, object files and flags are used when
Chris@39 12940 # linking a shared library.
Chris@39 12941 #
Chris@39 12942 # There doesn't appear to be a way to prevent this compiler from
Chris@39 12943 # explicitly linking system object files so we need to strip them
Chris@39 12944 # from the output so that they don't get included in the library
Chris@39 12945 # dependencies.
Chris@39 12946 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; func_echo_all "$list"'
Chris@39 12947
Chris@39 12948 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
Chris@39 12949 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
Chris@39 12950
Chris@39 12951 # Archives containing C++ object files must be created using
Chris@39 12952 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
Chris@39 12953 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
Chris@39 12954 ;;
Chris@39 12955 icpc* | ecpc* )
Chris@39 12956 # Intel C++
Chris@39 12957 with_gnu_ld=yes
Chris@39 12958 # version 8.0 and above of icpc choke on multiply defined symbols
Chris@39 12959 # if we add $predep_objects and $postdep_objects, however 7.1 and
Chris@39 12960 # earlier do not add the objects themselves.
Chris@39 12961 case `$CC -V 2>&1` in
Chris@39 12962 *"Version 7."*)
Chris@39 12963 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 12964 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'
Chris@39 12965 ;;
Chris@39 12966 *) # Version 8.0 or newer
Chris@39 12967 tmp_idyn=
Chris@39 12968 case $host_cpu in
Chris@39 12969 ia64*) tmp_idyn=' -i_dynamic';;
Chris@39 12970 esac
Chris@39 12971 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 12972 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'
Chris@39 12973 ;;
Chris@39 12974 esac
Chris@39 12975 archive_cmds_need_lc_CXX=no
Chris@39 12976 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
Chris@39 12977 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
Chris@39 12978 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
Chris@39 12979 ;;
Chris@39 12980 pgCC* | pgcpp*)
Chris@39 12981 # Portland Group C++ compiler
Chris@39 12982 case `$CC -V` in
Chris@39 12983 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
Chris@39 12984 prelink_cmds_CXX='tpldir=Template.dir~
Chris@39 12985 rm -rf $tpldir~
Chris@39 12986 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
Chris@39 12987 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
Chris@39 12988 old_archive_cmds_CXX='tpldir=Template.dir~
Chris@39 12989 rm -rf $tpldir~
Chris@39 12990 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
Chris@39 12991 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
Chris@39 12992 $RANLIB $oldlib'
Chris@39 12993 archive_cmds_CXX='tpldir=Template.dir~
Chris@39 12994 rm -rf $tpldir~
Chris@39 12995 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
Chris@39 12996 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
Chris@39 12997 archive_expsym_cmds_CXX='tpldir=Template.dir~
Chris@39 12998 rm -rf $tpldir~
Chris@39 12999 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
Chris@39 13000 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
Chris@39 13001 ;;
Chris@39 13002 *) # Version 6 and above use weak symbols
Chris@39 13003 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
Chris@39 13004 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'
Chris@39 13005 ;;
Chris@39 13006 esac
Chris@39 13007
Chris@39 13008 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
Chris@39 13009 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
Chris@39 13010 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Chris@39 13011 ;;
Chris@39 13012 cxx*)
Chris@39 13013 # Compaq C++
Chris@39 13014 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 13015 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'
Chris@39 13016
Chris@39 13017 runpath_var=LD_RUN_PATH
Chris@39 13018 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
Chris@39 13019 hardcode_libdir_separator_CXX=:
Chris@39 13020
Chris@39 13021 # Commands to make compiler produce verbose output that lists
Chris@39 13022 # what "hidden" libraries, object files and flags are used when
Chris@39 13023 # linking a shared library.
Chris@39 13024 #
Chris@39 13025 # There doesn't appear to be a way to prevent this compiler from
Chris@39 13026 # explicitly linking system object files so we need to strip them
Chris@39 13027 # from the output so that they don't get included in the library
Chris@39 13028 # dependencies.
Chris@39 13029 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
Chris@39 13030 ;;
Chris@39 13031 xl* | mpixl* | bgxl*)
Chris@39 13032 # IBM XL 8.0 on PPC, with GNU ld
Chris@39 13033 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
Chris@39 13034 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
Chris@39 13035 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 13036 if test "x$supports_anon_versioning" = xyes; then
Chris@39 13037 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
Chris@39 13038 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@39 13039 echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@39 13040 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
Chris@39 13041 fi
Chris@39 13042 ;;
Chris@39 13043 *)
Chris@39 13044 case `$CC -V 2>&1 | sed 5q` in
Chris@39 13045 *Sun\ C*)
Chris@39 13046 # Sun C++ 5.9
Chris@39 13047 no_undefined_flag_CXX=' -zdefs'
Chris@39 13048 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Chris@39 13049 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'
Chris@39 13050 hardcode_libdir_flag_spec_CXX='-R$libdir'
Chris@39 13051 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Chris@39 13052 compiler_needs_object_CXX=yes
Chris@39 13053
Chris@39 13054 # Not sure whether something based on
Chris@39 13055 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
Chris@39 13056 # would be better.
Chris@39 13057 output_verbose_link_cmd='func_echo_all'
Chris@39 13058
Chris@39 13059 # Archives containing C++ object files must be created using
Chris@39 13060 # "CC -xar", where "CC" is the Sun C++ compiler. This is
Chris@39 13061 # necessary to make sure instantiated templates are included
Chris@39 13062 # in the archive.
Chris@39 13063 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
Chris@39 13064 ;;
Chris@39 13065 esac
Chris@39 13066 ;;
Chris@39 13067 esac
Chris@39 13068 ;;
Chris@39 13069
Chris@39 13070 lynxos*)
Chris@39 13071 # FIXME: insert proper C++ library support
Chris@39 13072 ld_shlibs_CXX=no
Chris@39 13073 ;;
Chris@39 13074
Chris@39 13075 m88k*)
Chris@39 13076 # FIXME: insert proper C++ library support
Chris@39 13077 ld_shlibs_CXX=no
Chris@39 13078 ;;
Chris@39 13079
Chris@39 13080 mvs*)
Chris@39 13081 case $cc_basename in
Chris@39 13082 cxx*)
Chris@39 13083 # FIXME: insert proper C++ library support
Chris@39 13084 ld_shlibs_CXX=no
Chris@39 13085 ;;
Chris@39 13086 *)
Chris@39 13087 # FIXME: insert proper C++ library support
Chris@39 13088 ld_shlibs_CXX=no
Chris@39 13089 ;;
Chris@39 13090 esac
Chris@39 13091 ;;
Chris@39 13092
Chris@39 13093 netbsd*)
Chris@39 13094 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@39 13095 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
Chris@39 13096 wlarc=
Chris@39 13097 hardcode_libdir_flag_spec_CXX='-R$libdir'
Chris@39 13098 hardcode_direct_CXX=yes
Chris@39 13099 hardcode_shlibpath_var_CXX=no
Chris@39 13100 fi
Chris@39 13101 # Workaround some broken pre-1.5 toolchains
Chris@39 13102 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
Chris@39 13103 ;;
Chris@39 13104
Chris@39 13105 *nto* | *qnx*)
Chris@39 13106 ld_shlibs_CXX=yes
Chris@39 13107 ;;
Chris@39 13108
Chris@39 13109 openbsd2*)
Chris@39 13110 # C++ shared libraries are fairly broken
Chris@39 13111 ld_shlibs_CXX=no
Chris@39 13112 ;;
Chris@39 13113
Chris@39 13114 openbsd*)
Chris@39 13115 if test -f /usr/libexec/ld.so; then
Chris@39 13116 hardcode_direct_CXX=yes
Chris@39 13117 hardcode_shlibpath_var_CXX=no
Chris@39 13118 hardcode_direct_absolute_CXX=yes
Chris@39 13119 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
Chris@39 13120 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
Chris@39 13121 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@39 13122 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
Chris@39 13123 export_dynamic_flag_spec_CXX='${wl}-E'
Chris@39 13124 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
Chris@39 13125 fi
Chris@39 13126 output_verbose_link_cmd=func_echo_all
Chris@39 13127 else
Chris@39 13128 ld_shlibs_CXX=no
Chris@39 13129 fi
Chris@39 13130 ;;
Chris@39 13131
Chris@39 13132 osf3* | osf4* | osf5*)
Chris@39 13133 case $cc_basename in
Chris@39 13134 KCC*)
Chris@39 13135 # Kuck and Associates, Inc. (KAI) C++ Compiler
Chris@39 13136
Chris@39 13137 # KCC will only create a shared library if the output file
Chris@39 13138 # ends with ".so" (or ".sl" for HP-UX), so rename the library
Chris@39 13139 # to its proper name (with version) after linking.
Chris@39 13140 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'
Chris@39 13141
Chris@39 13142 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
Chris@39 13143 hardcode_libdir_separator_CXX=:
Chris@39 13144
Chris@39 13145 # Archives containing C++ object files must be created using
Chris@39 13146 # the KAI C++ compiler.
Chris@39 13147 case $host in
Chris@39 13148 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
Chris@39 13149 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
Chris@39 13150 esac
Chris@39 13151 ;;
Chris@39 13152 RCC*)
Chris@39 13153 # Rational C++ 2.4.1
Chris@39 13154 # FIXME: insert proper C++ library support
Chris@39 13155 ld_shlibs_CXX=no
Chris@39 13156 ;;
Chris@39 13157 cxx*)
Chris@39 13158 case $host in
Chris@39 13159 osf3*)
Chris@39 13160 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Chris@39 13161 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
Chris@39 13162 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
Chris@39 13163 ;;
Chris@39 13164 *)
Chris@39 13165 allow_undefined_flag_CXX=' -expect_unresolved \*'
Chris@39 13166 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
Chris@39 13167 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
Chris@39 13168 echo "-hidden">> $lib.exp~
Chris@39 13169 $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 "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
Chris@39 13170 $RM $lib.exp'
Chris@39 13171 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
Chris@39 13172 ;;
Chris@39 13173 esac
Chris@39 13174
Chris@39 13175 hardcode_libdir_separator_CXX=:
Chris@39 13176
Chris@39 13177 # Commands to make compiler produce verbose output that lists
Chris@39 13178 # what "hidden" libraries, object files and flags are used when
Chris@39 13179 # linking a shared library.
Chris@39 13180 #
Chris@39 13181 # There doesn't appear to be a way to prevent this compiler from
Chris@39 13182 # explicitly linking system object files so we need to strip them
Chris@39 13183 # from the output so that they don't get included in the library
Chris@39 13184 # dependencies.
Chris@39 13185 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
Chris@39 13186 ;;
Chris@39 13187 *)
Chris@39 13188 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
Chris@39 13189 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Chris@39 13190 case $host in
Chris@39 13191 osf3*)
Chris@39 13192 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Chris@39 13193 ;;
Chris@39 13194 *)
Chris@39 13195 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Chris@39 13196 ;;
Chris@39 13197 esac
Chris@39 13198
Chris@39 13199 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
Chris@39 13200 hardcode_libdir_separator_CXX=:
Chris@39 13201
Chris@39 13202 # Commands to make compiler produce verbose output that lists
Chris@39 13203 # what "hidden" libraries, object files and flags are used when
Chris@39 13204 # linking a shared library.
Chris@39 13205 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
Chris@39 13206
Chris@39 13207 else
Chris@39 13208 # FIXME: insert proper C++ library support
Chris@39 13209 ld_shlibs_CXX=no
Chris@39 13210 fi
Chris@39 13211 ;;
Chris@39 13212 esac
Chris@39 13213 ;;
Chris@39 13214
Chris@39 13215 psos*)
Chris@39 13216 # FIXME: insert proper C++ library support
Chris@39 13217 ld_shlibs_CXX=no
Chris@39 13218 ;;
Chris@39 13219
Chris@39 13220 sunos4*)
Chris@39 13221 case $cc_basename in
Chris@39 13222 CC*)
Chris@39 13223 # Sun C++ 4.x
Chris@39 13224 # FIXME: insert proper C++ library support
Chris@39 13225 ld_shlibs_CXX=no
Chris@39 13226 ;;
Chris@39 13227 lcc*)
Chris@39 13228 # Lucid
Chris@39 13229 # FIXME: insert proper C++ library support
Chris@39 13230 ld_shlibs_CXX=no
Chris@39 13231 ;;
Chris@39 13232 *)
Chris@39 13233 # FIXME: insert proper C++ library support
Chris@39 13234 ld_shlibs_CXX=no
Chris@39 13235 ;;
Chris@39 13236 esac
Chris@39 13237 ;;
Chris@39 13238
Chris@39 13239 solaris*)
Chris@39 13240 case $cc_basename in
Chris@39 13241 CC* | sunCC*)
Chris@39 13242 # Sun C++ 4.2, 5.x and Centerline C++
Chris@39 13243 archive_cmds_need_lc_CXX=yes
Chris@39 13244 no_undefined_flag_CXX=' -zdefs'
Chris@39 13245 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Chris@39 13246 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@39 13247 $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'
Chris@39 13248
Chris@39 13249 hardcode_libdir_flag_spec_CXX='-R$libdir'
Chris@39 13250 hardcode_shlibpath_var_CXX=no
Chris@39 13251 case $host_os in
Chris@39 13252 solaris2.[0-5] | solaris2.[0-5].*) ;;
Chris@39 13253 *)
Chris@39 13254 # The compiler driver will combine and reorder linker options,
Chris@39 13255 # but understands `-z linker_flag'.
Chris@39 13256 # Supported since Solaris 2.6 (maybe 2.5.1?)
Chris@39 13257 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
Chris@39 13258 ;;
Chris@39 13259 esac
Chris@39 13260 link_all_deplibs_CXX=yes
Chris@39 13261
Chris@39 13262 output_verbose_link_cmd='func_echo_all'
Chris@39 13263
Chris@39 13264 # Archives containing C++ object files must be created using
Chris@39 13265 # "CC -xar", where "CC" is the Sun C++ compiler. This is
Chris@39 13266 # necessary to make sure instantiated templates are included
Chris@39 13267 # in the archive.
Chris@39 13268 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
Chris@39 13269 ;;
Chris@39 13270 gcx*)
Chris@39 13271 # Green Hills C++ Compiler
Chris@39 13272 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Chris@39 13273
Chris@39 13274 # The C++ compiler must be used to create the archive.
Chris@39 13275 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
Chris@39 13276 ;;
Chris@39 13277 *)
Chris@39 13278 # GNU C++ compiler with Solaris linker
Chris@39 13279 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
Chris@39 13280 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
Chris@39 13281 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
Chris@39 13282 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Chris@39 13283 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@39 13284 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
Chris@39 13285
Chris@39 13286 # Commands to make compiler produce verbose output that lists
Chris@39 13287 # what "hidden" libraries, object files and flags are used when
Chris@39 13288 # linking a shared library.
Chris@39 13289 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
Chris@39 13290 else
Chris@39 13291 # g++ 2.7 appears to require `-G' NOT `-shared' on this
Chris@39 13292 # platform.
Chris@39 13293 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Chris@39 13294 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@39 13295 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
Chris@39 13296
Chris@39 13297 # Commands to make compiler produce verbose output that lists
Chris@39 13298 # what "hidden" libraries, object files and flags are used when
Chris@39 13299 # linking a shared library.
Chris@39 13300 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
Chris@39 13301 fi
Chris@39 13302
Chris@39 13303 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
Chris@39 13304 case $host_os in
Chris@39 13305 solaris2.[0-5] | solaris2.[0-5].*) ;;
Chris@39 13306 *)
Chris@39 13307 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
Chris@39 13308 ;;
Chris@39 13309 esac
Chris@39 13310 fi
Chris@39 13311 ;;
Chris@39 13312 esac
Chris@39 13313 ;;
Chris@39 13314
Chris@39 13315 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Chris@39 13316 no_undefined_flag_CXX='${wl}-z,text'
Chris@39 13317 archive_cmds_need_lc_CXX=no
Chris@39 13318 hardcode_shlibpath_var_CXX=no
Chris@39 13319 runpath_var='LD_RUN_PATH'
Chris@39 13320
Chris@39 13321 case $cc_basename in
Chris@39 13322 CC*)
Chris@39 13323 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 13324 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 13325 ;;
Chris@39 13326 *)
Chris@39 13327 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 13328 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 13329 ;;
Chris@39 13330 esac
Chris@39 13331 ;;
Chris@39 13332
Chris@39 13333 sysv5* | sco3.2v5* | sco5v6*)
Chris@39 13334 # Note: We can NOT use -z defs as we might desire, because we do not
Chris@39 13335 # link with -lc, and that would cause any symbols used from libc to
Chris@39 13336 # always be unresolved, which means just about no library would
Chris@39 13337 # ever link correctly. If we're not using GNU ld we use -z text
Chris@39 13338 # though, which does catch some bad symbols but isn't as heavy-handed
Chris@39 13339 # as -z defs.
Chris@39 13340 no_undefined_flag_CXX='${wl}-z,text'
Chris@39 13341 allow_undefined_flag_CXX='${wl}-z,nodefs'
Chris@39 13342 archive_cmds_need_lc_CXX=no
Chris@39 13343 hardcode_shlibpath_var_CXX=no
Chris@39 13344 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
Chris@39 13345 hardcode_libdir_separator_CXX=':'
Chris@39 13346 link_all_deplibs_CXX=yes
Chris@39 13347 export_dynamic_flag_spec_CXX='${wl}-Bexport'
Chris@39 13348 runpath_var='LD_RUN_PATH'
Chris@39 13349
Chris@39 13350 case $cc_basename in
Chris@39 13351 CC*)
Chris@39 13352 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 13353 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 13354 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
Chris@39 13355 '"$old_archive_cmds_CXX"
Chris@39 13356 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
Chris@39 13357 '"$reload_cmds_CXX"
Chris@39 13358 ;;
Chris@39 13359 *)
Chris@39 13360 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 13361 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 13362 ;;
Chris@39 13363 esac
Chris@39 13364 ;;
Chris@39 13365
Chris@39 13366 tandem*)
Chris@39 13367 case $cc_basename in
Chris@39 13368 NCC*)
Chris@39 13369 # NonStop-UX NCC 3.20
Chris@39 13370 # FIXME: insert proper C++ library support
Chris@39 13371 ld_shlibs_CXX=no
Chris@39 13372 ;;
Chris@39 13373 *)
Chris@39 13374 # FIXME: insert proper C++ library support
Chris@39 13375 ld_shlibs_CXX=no
Chris@39 13376 ;;
Chris@39 13377 esac
Chris@39 13378 ;;
Chris@39 13379
Chris@39 13380 vxworks*)
Chris@39 13381 # FIXME: insert proper C++ library support
Chris@39 13382 ld_shlibs_CXX=no
Chris@39 13383 ;;
Chris@39 13384
Chris@39 13385 *)
Chris@39 13386 # FIXME: insert proper C++ library support
Chris@39 13387 ld_shlibs_CXX=no
Chris@39 13388 ;;
Chris@39 13389 esac
Chris@39 13390
Chris@39 13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
Chris@39 13392 $as_echo "$ld_shlibs_CXX" >&6; }
Chris@39 13393 test "$ld_shlibs_CXX" = no && can_build_shared=no
Chris@39 13394
Chris@39 13395 GCC_CXX="$GXX"
Chris@39 13396 LD_CXX="$LD"
Chris@39 13397
Chris@39 13398 ## CAVEAT EMPTOR:
Chris@39 13399 ## There is no encapsulation within the following macros, do not change
Chris@39 13400 ## the running order or otherwise move them around unless you know exactly
Chris@39 13401 ## what you are doing...
Chris@39 13402 # Dependencies to place before and after the object being linked:
Chris@39 13403 predep_objects_CXX=
Chris@39 13404 postdep_objects_CXX=
Chris@39 13405 predeps_CXX=
Chris@39 13406 postdeps_CXX=
Chris@39 13407 compiler_lib_search_path_CXX=
Chris@39 13408
Chris@39 13409 cat > conftest.$ac_ext <<_LT_EOF
Chris@39 13410 class Foo
Chris@39 13411 {
Chris@39 13412 public:
Chris@39 13413 Foo (void) { a = 0; }
Chris@39 13414 private:
Chris@39 13415 int a;
Chris@39 13416 };
Chris@39 13417 _LT_EOF
Chris@39 13418
Chris@39 13419
Chris@39 13420 _lt_libdeps_save_CFLAGS=$CFLAGS
Chris@39 13421 case "$CC $CFLAGS " in #(
Chris@39 13422 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
Chris@39 13423 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
Chris@39 13424 esac
Chris@39 13425
Chris@39 13426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@39 13427 (eval $ac_compile) 2>&5
Chris@39 13428 ac_status=$?
Chris@39 13429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 13430 test $ac_status = 0; }; then
Chris@39 13431 # Parse the compiler output and extract the necessary
Chris@39 13432 # objects, libraries and library flags.
Chris@39 13433
Chris@39 13434 # Sentinel used to keep track of whether or not we are before
Chris@39 13435 # the conftest object file.
Chris@39 13436 pre_test_object_deps_done=no
Chris@39 13437
Chris@39 13438 for p in `eval "$output_verbose_link_cmd"`; do
Chris@39 13439 case ${prev}${p} in
Chris@39 13440
Chris@39 13441 -L* | -R* | -l*)
Chris@39 13442 # Some compilers place space between "-{L,R}" and the path.
Chris@39 13443 # Remove the space.
Chris@39 13444 if test $p = "-L" ||
Chris@39 13445 test $p = "-R"; then
Chris@39 13446 prev=$p
Chris@39 13447 continue
Chris@39 13448 fi
Chris@39 13449
Chris@39 13450 # Expand the sysroot to ease extracting the directories later.
Chris@39 13451 if test -z "$prev"; then
Chris@39 13452 case $p in
Chris@39 13453 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
Chris@39 13454 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
Chris@39 13455 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
Chris@39 13456 esac
Chris@39 13457 fi
Chris@39 13458 case $p in
Chris@39 13459 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
Chris@39 13460 esac
Chris@39 13461 if test "$pre_test_object_deps_done" = no; then
Chris@39 13462 case ${prev} in
Chris@39 13463 -L | -R)
Chris@39 13464 # Internal compiler library paths should come after those
Chris@39 13465 # provided the user. The postdeps already come after the
Chris@39 13466 # user supplied libs so there is no need to process them.
Chris@39 13467 if test -z "$compiler_lib_search_path_CXX"; then
Chris@39 13468 compiler_lib_search_path_CXX="${prev}${p}"
Chris@39 13469 else
Chris@39 13470 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
Chris@39 13471 fi
Chris@39 13472 ;;
Chris@39 13473 # The "-l" case would never come before the object being
Chris@39 13474 # linked, so don't bother handling this case.
Chris@39 13475 esac
Chris@39 13476 else
Chris@39 13477 if test -z "$postdeps_CXX"; then
Chris@39 13478 postdeps_CXX="${prev}${p}"
Chris@39 13479 else
Chris@39 13480 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
Chris@39 13481 fi
Chris@39 13482 fi
Chris@39 13483 prev=
Chris@39 13484 ;;
Chris@39 13485
Chris@39 13486 *.lto.$objext) ;; # Ignore GCC LTO objects
Chris@39 13487 *.$objext)
Chris@39 13488 # This assumes that the test object file only shows up
Chris@39 13489 # once in the compiler output.
Chris@39 13490 if test "$p" = "conftest.$objext"; then
Chris@39 13491 pre_test_object_deps_done=yes
Chris@39 13492 continue
Chris@39 13493 fi
Chris@39 13494
Chris@39 13495 if test "$pre_test_object_deps_done" = no; then
Chris@39 13496 if test -z "$predep_objects_CXX"; then
Chris@39 13497 predep_objects_CXX="$p"
Chris@39 13498 else
Chris@39 13499 predep_objects_CXX="$predep_objects_CXX $p"
Chris@39 13500 fi
Chris@39 13501 else
Chris@39 13502 if test -z "$postdep_objects_CXX"; then
Chris@39 13503 postdep_objects_CXX="$p"
Chris@39 13504 else
Chris@39 13505 postdep_objects_CXX="$postdep_objects_CXX $p"
Chris@39 13506 fi
Chris@39 13507 fi
Chris@39 13508 ;;
Chris@39 13509
Chris@39 13510 *) ;; # Ignore the rest.
Chris@39 13511
Chris@39 13512 esac
Chris@39 13513 done
Chris@39 13514
Chris@39 13515 # Clean up.
Chris@39 13516 rm -f a.out a.exe
Chris@39 13517 else
Chris@39 13518 echo "libtool.m4: error: problem compiling CXX test program"
Chris@39 13519 fi
Chris@39 13520
Chris@39 13521 $RM -f confest.$objext
Chris@39 13522 CFLAGS=$_lt_libdeps_save_CFLAGS
Chris@39 13523
Chris@39 13524 # PORTME: override above test on systems where it is broken
Chris@39 13525 case $host_os in
Chris@39 13526 interix[3-9]*)
Chris@39 13527 # Interix 3.5 installs completely hosed .la files for C++, so rather than
Chris@39 13528 # hack all around it, let's just trust "g++" to DTRT.
Chris@39 13529 predep_objects_CXX=
Chris@39 13530 postdep_objects_CXX=
Chris@39 13531 postdeps_CXX=
Chris@39 13532 ;;
Chris@39 13533
Chris@39 13534 linux*)
Chris@39 13535 case `$CC -V 2>&1 | sed 5q` in
Chris@39 13536 *Sun\ C*)
Chris@39 13537 # Sun C++ 5.9
Chris@39 13538
Chris@39 13539 # The more standards-conforming stlport4 library is
Chris@39 13540 # incompatible with the Cstd library. Avoid specifying
Chris@39 13541 # it if it's in CXXFLAGS. Ignore libCrun as
Chris@39 13542 # -library=stlport4 depends on it.
Chris@39 13543 case " $CXX $CXXFLAGS " in
Chris@39 13544 *" -library=stlport4 "*)
Chris@39 13545 solaris_use_stlport4=yes
Chris@39 13546 ;;
Chris@39 13547 esac
Chris@39 13548
Chris@39 13549 if test "$solaris_use_stlport4" != yes; then
Chris@39 13550 postdeps_CXX='-library=Cstd -library=Crun'
Chris@39 13551 fi
Chris@39 13552 ;;
Chris@39 13553 esac
Chris@39 13554 ;;
Chris@39 13555
Chris@39 13556 solaris*)
Chris@39 13557 case $cc_basename in
Chris@39 13558 CC* | sunCC*)
Chris@39 13559 # The more standards-conforming stlport4 library is
Chris@39 13560 # incompatible with the Cstd library. Avoid specifying
Chris@39 13561 # it if it's in CXXFLAGS. Ignore libCrun as
Chris@39 13562 # -library=stlport4 depends on it.
Chris@39 13563 case " $CXX $CXXFLAGS " in
Chris@39 13564 *" -library=stlport4 "*)
Chris@39 13565 solaris_use_stlport4=yes
Chris@39 13566 ;;
Chris@39 13567 esac
Chris@39 13568
Chris@39 13569 # Adding this requires a known-good setup of shared libraries for
Chris@39 13570 # Sun compiler versions before 5.6, else PIC objects from an old
Chris@39 13571 # archive will be linked into the output, leading to subtle bugs.
Chris@39 13572 if test "$solaris_use_stlport4" != yes; then
Chris@39 13573 postdeps_CXX='-library=Cstd -library=Crun'
Chris@39 13574 fi
Chris@39 13575 ;;
Chris@39 13576 esac
Chris@39 13577 ;;
Chris@39 13578 esac
Chris@39 13579
Chris@39 13580
Chris@39 13581 case " $postdeps_CXX " in
Chris@39 13582 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
Chris@39 13583 esac
Chris@39 13584 compiler_lib_search_dirs_CXX=
Chris@39 13585 if test -n "${compiler_lib_search_path_CXX}"; then
Chris@39 13586 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
Chris@39 13587 fi
Chris@39 13588
Chris@39 13589
Chris@39 13590
Chris@39 13591
Chris@39 13592
Chris@39 13593
Chris@39 13594
Chris@39 13595
Chris@39 13596
Chris@39 13597
Chris@39 13598
Chris@39 13599
Chris@39 13600
Chris@39 13601
Chris@39 13602
Chris@39 13603
Chris@39 13604
Chris@39 13605
Chris@39 13606
Chris@39 13607
Chris@39 13608
Chris@39 13609
Chris@39 13610
Chris@39 13611
Chris@39 13612
Chris@39 13613
Chris@39 13614
Chris@39 13615
Chris@39 13616
Chris@39 13617
Chris@39 13618
Chris@39 13619 lt_prog_compiler_wl_CXX=
Chris@39 13620 lt_prog_compiler_pic_CXX=
Chris@39 13621 lt_prog_compiler_static_CXX=
Chris@39 13622
Chris@39 13623
Chris@39 13624 # C++ specific cases for pic, static, wl, etc.
Chris@39 13625 if test "$GXX" = yes; then
Chris@39 13626 lt_prog_compiler_wl_CXX='-Wl,'
Chris@39 13627 lt_prog_compiler_static_CXX='-static'
Chris@39 13628
Chris@39 13629 case $host_os in
Chris@39 13630 aix*)
Chris@39 13631 # All AIX code is PIC.
Chris@39 13632 if test "$host_cpu" = ia64; then
Chris@39 13633 # AIX 5 now supports IA64 processor
Chris@39 13634 lt_prog_compiler_static_CXX='-Bstatic'
Chris@39 13635 fi
Chris@39 13636 ;;
Chris@39 13637
Chris@39 13638 amigaos*)
Chris@39 13639 case $host_cpu in
Chris@39 13640 powerpc)
Chris@39 13641 # see comment about AmigaOS4 .so support
Chris@39 13642 lt_prog_compiler_pic_CXX='-fPIC'
Chris@39 13643 ;;
Chris@39 13644 m68k)
Chris@39 13645 # FIXME: we need at least 68020 code to build shared libraries, but
Chris@39 13646 # adding the `-m68020' flag to GCC prevents building anything better,
Chris@39 13647 # like `-m68040'.
Chris@39 13648 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
Chris@39 13649 ;;
Chris@39 13650 esac
Chris@39 13651 ;;
Chris@39 13652
Chris@39 13653 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Chris@39 13654 # PIC is the default for these OSes.
Chris@39 13655 ;;
Chris@39 13656 mingw* | cygwin* | os2* | pw32* | cegcc*)
Chris@39 13657 # This hack is so that the source file can tell whether it is being
Chris@39 13658 # built for inclusion in a dll (and should export symbols for example).
Chris@39 13659 # Although the cygwin gcc ignores -fPIC, still need this for old-style
Chris@39 13660 # (--disable-auto-import) libraries
Chris@39 13661 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
Chris@39 13662 ;;
Chris@39 13663 darwin* | rhapsody*)
Chris@39 13664 # PIC is the default on this platform
Chris@39 13665 # Common symbols not allowed in MH_DYLIB files
Chris@39 13666 lt_prog_compiler_pic_CXX='-fno-common'
Chris@39 13667 ;;
Chris@39 13668 *djgpp*)
Chris@39 13669 # DJGPP does not support shared libraries at all
Chris@39 13670 lt_prog_compiler_pic_CXX=
Chris@39 13671 ;;
Chris@39 13672 haiku*)
Chris@39 13673 # PIC is the default for Haiku.
Chris@39 13674 # The "-static" flag exists, but is broken.
Chris@39 13675 lt_prog_compiler_static_CXX=
Chris@39 13676 ;;
Chris@39 13677 interix[3-9]*)
Chris@39 13678 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
Chris@39 13679 # Instead, we relocate shared libraries at runtime.
Chris@39 13680 ;;
Chris@39 13681 sysv4*MP*)
Chris@39 13682 if test -d /usr/nec; then
Chris@39 13683 lt_prog_compiler_pic_CXX=-Kconform_pic
Chris@39 13684 fi
Chris@39 13685 ;;
Chris@39 13686 hpux*)
Chris@39 13687 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
Chris@39 13688 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
Chris@39 13689 # sets the default TLS model and affects inlining.
Chris@39 13690 case $host_cpu in
Chris@39 13691 hppa*64*)
Chris@39 13692 ;;
Chris@39 13693 *)
Chris@39 13694 lt_prog_compiler_pic_CXX='-fPIC'
Chris@39 13695 ;;
Chris@39 13696 esac
Chris@39 13697 ;;
Chris@39 13698 *qnx* | *nto*)
Chris@39 13699 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@39 13700 # it will coredump.
Chris@39 13701 lt_prog_compiler_pic_CXX='-fPIC -shared'
Chris@39 13702 ;;
Chris@39 13703 *)
Chris@39 13704 lt_prog_compiler_pic_CXX='-fPIC'
Chris@39 13705 ;;
Chris@39 13706 esac
Chris@39 13707 else
Chris@39 13708 case $host_os in
Chris@39 13709 aix[4-9]*)
Chris@39 13710 # All AIX code is PIC.
Chris@39 13711 if test "$host_cpu" = ia64; then
Chris@39 13712 # AIX 5 now supports IA64 processor
Chris@39 13713 lt_prog_compiler_static_CXX='-Bstatic'
Chris@39 13714 else
Chris@39 13715 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
Chris@39 13716 fi
Chris@39 13717 ;;
Chris@39 13718 chorus*)
Chris@39 13719 case $cc_basename in
Chris@39 13720 cxch68*)
Chris@39 13721 # Green Hills C++ Compiler
Chris@39 13722 # _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"
Chris@39 13723 ;;
Chris@39 13724 esac
Chris@39 13725 ;;
Chris@39 13726 mingw* | cygwin* | os2* | pw32* | cegcc*)
Chris@39 13727 # This hack is so that the source file can tell whether it is being
Chris@39 13728 # built for inclusion in a dll (and should export symbols for example).
Chris@39 13729 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
Chris@39 13730 ;;
Chris@39 13731 dgux*)
Chris@39 13732 case $cc_basename in
Chris@39 13733 ec++*)
Chris@39 13734 lt_prog_compiler_pic_CXX='-KPIC'
Chris@39 13735 ;;
Chris@39 13736 ghcx*)
Chris@39 13737 # Green Hills C++ Compiler
Chris@39 13738 lt_prog_compiler_pic_CXX='-pic'
Chris@39 13739 ;;
Chris@39 13740 *)
Chris@39 13741 ;;
Chris@39 13742 esac
Chris@39 13743 ;;
Chris@39 13744 freebsd* | dragonfly*)
Chris@39 13745 # FreeBSD uses GNU C++
Chris@39 13746 ;;
Chris@39 13747 hpux9* | hpux10* | hpux11*)
Chris@39 13748 case $cc_basename in
Chris@39 13749 CC*)
Chris@39 13750 lt_prog_compiler_wl_CXX='-Wl,'
Chris@39 13751 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
Chris@39 13752 if test "$host_cpu" != ia64; then
Chris@39 13753 lt_prog_compiler_pic_CXX='+Z'
Chris@39 13754 fi
Chris@39 13755 ;;
Chris@39 13756 aCC*)
Chris@39 13757 lt_prog_compiler_wl_CXX='-Wl,'
Chris@39 13758 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
Chris@39 13759 case $host_cpu in
Chris@39 13760 hppa*64*|ia64*)
Chris@39 13761 # +Z the default
Chris@39 13762 ;;
Chris@39 13763 *)
Chris@39 13764 lt_prog_compiler_pic_CXX='+Z'
Chris@39 13765 ;;
Chris@39 13766 esac
Chris@39 13767 ;;
Chris@39 13768 *)
Chris@39 13769 ;;
Chris@39 13770 esac
Chris@39 13771 ;;
Chris@39 13772 interix*)
Chris@39 13773 # This is c89, which is MS Visual C++ (no shared libs)
Chris@39 13774 # Anyone wants to do a port?
Chris@39 13775 ;;
Chris@39 13776 irix5* | irix6* | nonstopux*)
Chris@39 13777 case $cc_basename in
Chris@39 13778 CC*)
Chris@39 13779 lt_prog_compiler_wl_CXX='-Wl,'
Chris@39 13780 lt_prog_compiler_static_CXX='-non_shared'
Chris@39 13781 # CC pic flag -KPIC is the default.
Chris@39 13782 ;;
Chris@39 13783 *)
Chris@39 13784 ;;
Chris@39 13785 esac
Chris@39 13786 ;;
Chris@39 13787 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@39 13788 case $cc_basename in
Chris@39 13789 KCC*)
Chris@39 13790 # KAI C++ Compiler
Chris@39 13791 lt_prog_compiler_wl_CXX='--backend -Wl,'
Chris@39 13792 lt_prog_compiler_pic_CXX='-fPIC'
Chris@39 13793 ;;
Chris@39 13794 ecpc* )
Chris@39 13795 # old Intel C++ for x86_64 which still supported -KPIC.
Chris@39 13796 lt_prog_compiler_wl_CXX='-Wl,'
Chris@39 13797 lt_prog_compiler_pic_CXX='-KPIC'
Chris@39 13798 lt_prog_compiler_static_CXX='-static'
Chris@39 13799 ;;
Chris@39 13800 icpc* )
Chris@39 13801 # Intel C++, used to be incompatible with GCC.
Chris@39 13802 # ICC 10 doesn't accept -KPIC any more.
Chris@39 13803 lt_prog_compiler_wl_CXX='-Wl,'
Chris@39 13804 lt_prog_compiler_pic_CXX='-fPIC'
Chris@39 13805 lt_prog_compiler_static_CXX='-static'
Chris@39 13806 ;;
Chris@39 13807 pgCC* | pgcpp*)
Chris@39 13808 # Portland Group C++ compiler
Chris@39 13809 lt_prog_compiler_wl_CXX='-Wl,'
Chris@39 13810 lt_prog_compiler_pic_CXX='-fpic'
Chris@39 13811 lt_prog_compiler_static_CXX='-Bstatic'
Chris@39 13812 ;;
Chris@39 13813 cxx*)
Chris@39 13814 # Compaq C++
Chris@39 13815 # Make sure the PIC flag is empty. It appears that all Alpha
Chris@39 13816 # Linux and Compaq Tru64 Unix objects are PIC.
Chris@39 13817 lt_prog_compiler_pic_CXX=
Chris@39 13818 lt_prog_compiler_static_CXX='-non_shared'
Chris@39 13819 ;;
Chris@39 13820 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
Chris@39 13821 # IBM XL 8.0, 9.0 on PPC and BlueGene
Chris@39 13822 lt_prog_compiler_wl_CXX='-Wl,'
Chris@39 13823 lt_prog_compiler_pic_CXX='-qpic'
Chris@39 13824 lt_prog_compiler_static_CXX='-qstaticlink'
Chris@39 13825 ;;
Chris@39 13826 *)
Chris@39 13827 case `$CC -V 2>&1 | sed 5q` in
Chris@39 13828 *Sun\ C*)
Chris@39 13829 # Sun C++ 5.9
Chris@39 13830 lt_prog_compiler_pic_CXX='-KPIC'
Chris@39 13831 lt_prog_compiler_static_CXX='-Bstatic'
Chris@39 13832 lt_prog_compiler_wl_CXX='-Qoption ld '
Chris@39 13833 ;;
Chris@39 13834 esac
Chris@39 13835 ;;
Chris@39 13836 esac
Chris@39 13837 ;;
Chris@39 13838 lynxos*)
Chris@39 13839 ;;
Chris@39 13840 m88k*)
Chris@39 13841 ;;
Chris@39 13842 mvs*)
Chris@39 13843 case $cc_basename in
Chris@39 13844 cxx*)
Chris@39 13845 lt_prog_compiler_pic_CXX='-W c,exportall'
Chris@39 13846 ;;
Chris@39 13847 *)
Chris@39 13848 ;;
Chris@39 13849 esac
Chris@39 13850 ;;
Chris@39 13851 netbsd* | netbsdelf*-gnu)
Chris@39 13852 ;;
Chris@39 13853 *qnx* | *nto*)
Chris@39 13854 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@39 13855 # it will coredump.
Chris@39 13856 lt_prog_compiler_pic_CXX='-fPIC -shared'
Chris@39 13857 ;;
Chris@39 13858 osf3* | osf4* | osf5*)
Chris@39 13859 case $cc_basename in
Chris@39 13860 KCC*)
Chris@39 13861 lt_prog_compiler_wl_CXX='--backend -Wl,'
Chris@39 13862 ;;
Chris@39 13863 RCC*)
Chris@39 13864 # Rational C++ 2.4.1
Chris@39 13865 lt_prog_compiler_pic_CXX='-pic'
Chris@39 13866 ;;
Chris@39 13867 cxx*)
Chris@39 13868 # Digital/Compaq C++
Chris@39 13869 lt_prog_compiler_wl_CXX='-Wl,'
Chris@39 13870 # Make sure the PIC flag is empty. It appears that all Alpha
Chris@39 13871 # Linux and Compaq Tru64 Unix objects are PIC.
Chris@39 13872 lt_prog_compiler_pic_CXX=
Chris@39 13873 lt_prog_compiler_static_CXX='-non_shared'
Chris@39 13874 ;;
Chris@39 13875 *)
Chris@39 13876 ;;
Chris@39 13877 esac
Chris@39 13878 ;;
Chris@39 13879 psos*)
Chris@39 13880 ;;
Chris@39 13881 solaris*)
Chris@39 13882 case $cc_basename in
Chris@39 13883 CC* | sunCC*)
Chris@39 13884 # Sun C++ 4.2, 5.x and Centerline C++
Chris@39 13885 lt_prog_compiler_pic_CXX='-KPIC'
Chris@39 13886 lt_prog_compiler_static_CXX='-Bstatic'
Chris@39 13887 lt_prog_compiler_wl_CXX='-Qoption ld '
Chris@39 13888 ;;
Chris@39 13889 gcx*)
Chris@39 13890 # Green Hills C++ Compiler
Chris@39 13891 lt_prog_compiler_pic_CXX='-PIC'
Chris@39 13892 ;;
Chris@39 13893 *)
Chris@39 13894 ;;
Chris@39 13895 esac
Chris@39 13896 ;;
Chris@39 13897 sunos4*)
Chris@39 13898 case $cc_basename in
Chris@39 13899 CC*)
Chris@39 13900 # Sun C++ 4.x
Chris@39 13901 lt_prog_compiler_pic_CXX='-pic'
Chris@39 13902 lt_prog_compiler_static_CXX='-Bstatic'
Chris@39 13903 ;;
Chris@39 13904 lcc*)
Chris@39 13905 # Lucid
Chris@39 13906 lt_prog_compiler_pic_CXX='-pic'
Chris@39 13907 ;;
Chris@39 13908 *)
Chris@39 13909 ;;
Chris@39 13910 esac
Chris@39 13911 ;;
Chris@39 13912 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
Chris@39 13913 case $cc_basename in
Chris@39 13914 CC*)
Chris@39 13915 lt_prog_compiler_wl_CXX='-Wl,'
Chris@39 13916 lt_prog_compiler_pic_CXX='-KPIC'
Chris@39 13917 lt_prog_compiler_static_CXX='-Bstatic'
Chris@39 13918 ;;
Chris@39 13919 esac
Chris@39 13920 ;;
Chris@39 13921 tandem*)
Chris@39 13922 case $cc_basename in
Chris@39 13923 NCC*)
Chris@39 13924 # NonStop-UX NCC 3.20
Chris@39 13925 lt_prog_compiler_pic_CXX='-KPIC'
Chris@39 13926 ;;
Chris@39 13927 *)
Chris@39 13928 ;;
Chris@39 13929 esac
Chris@39 13930 ;;
Chris@39 13931 vxworks*)
Chris@39 13932 ;;
Chris@39 13933 *)
Chris@39 13934 lt_prog_compiler_can_build_shared_CXX=no
Chris@39 13935 ;;
Chris@39 13936 esac
Chris@39 13937 fi
Chris@39 13938
Chris@39 13939 case $host_os in
Chris@39 13940 # For platforms which do not support PIC, -DPIC is meaningless:
Chris@39 13941 *djgpp*)
Chris@39 13942 lt_prog_compiler_pic_CXX=
Chris@39 13943 ;;
Chris@39 13944 *)
Chris@39 13945 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
Chris@39 13946 ;;
Chris@39 13947 esac
Chris@39 13948
Chris@39 13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
Chris@39 13950 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Chris@39 13951 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
Chris@39 13952 $as_echo_n "(cached) " >&6
Chris@39 13953 else
Chris@39 13954 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
Chris@39 13955 fi
Chris@39 13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
Chris@39 13957 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
Chris@39 13958 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
Chris@39 13959
Chris@39 13960 #
Chris@39 13961 # Check to make sure the PIC flag actually works.
Chris@39 13962 #
Chris@39 13963 if test -n "$lt_prog_compiler_pic_CXX"; then
Chris@39 13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
Chris@39 13965 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
Chris@39 13966 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
Chris@39 13967 $as_echo_n "(cached) " >&6
Chris@39 13968 else
Chris@39 13969 lt_cv_prog_compiler_pic_works_CXX=no
Chris@39 13970 ac_outfile=conftest.$ac_objext
Chris@39 13971 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@39 13972 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
Chris@39 13973 # Insert the option either (1) after the last *FLAGS variable, or
Chris@39 13974 # (2) before a word containing "conftest.", or (3) at the end.
Chris@39 13975 # Note that $ac_compile itself does not contain backslashes and begins
Chris@39 13976 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@39 13977 # The option is referenced via a variable to avoid confusing sed.
Chris@39 13978 lt_compile=`echo "$ac_compile" | $SED \
Chris@39 13979 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@39 13980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@39 13981 -e 's:$: $lt_compiler_flag:'`
Chris@39 13982 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@39 13983 (eval "$lt_compile" 2>conftest.err)
Chris@39 13984 ac_status=$?
Chris@39 13985 cat conftest.err >&5
Chris@39 13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@39 13987 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@39 13988 # The compiler can only warn and ignore the option if not recognized
Chris@39 13989 # So say no if there are warnings other than the usual output.
Chris@39 13990 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Chris@39 13991 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@39 13992 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Chris@39 13993 lt_cv_prog_compiler_pic_works_CXX=yes
Chris@39 13994 fi
Chris@39 13995 fi
Chris@39 13996 $RM conftest*
Chris@39 13997
Chris@39 13998 fi
Chris@39 13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
Chris@39 14000 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
Chris@39 14001
Chris@39 14002 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
Chris@39 14003 case $lt_prog_compiler_pic_CXX in
Chris@39 14004 "" | " "*) ;;
Chris@39 14005 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
Chris@39 14006 esac
Chris@39 14007 else
Chris@39 14008 lt_prog_compiler_pic_CXX=
Chris@39 14009 lt_prog_compiler_can_build_shared_CXX=no
Chris@39 14010 fi
Chris@39 14011
Chris@39 14012 fi
Chris@39 14013
Chris@39 14014
Chris@39 14015
Chris@39 14016
Chris@39 14017
Chris@39 14018 #
Chris@39 14019 # Check to make sure the static flag actually works.
Chris@39 14020 #
Chris@39 14021 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
Chris@39 14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
Chris@39 14023 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Chris@39 14024 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
Chris@39 14025 $as_echo_n "(cached) " >&6
Chris@39 14026 else
Chris@39 14027 lt_cv_prog_compiler_static_works_CXX=no
Chris@39 14028 save_LDFLAGS="$LDFLAGS"
Chris@39 14029 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Chris@39 14030 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Chris@39 14031 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Chris@39 14032 # The linker can only warn and ignore the option if not recognized
Chris@39 14033 # So say no if there are warnings
Chris@39 14034 if test -s conftest.err; then
Chris@39 14035 # Append any errors to the config.log.
Chris@39 14036 cat conftest.err 1>&5
Chris@39 14037 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Chris@39 14038 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@39 14039 if diff conftest.exp conftest.er2 >/dev/null; then
Chris@39 14040 lt_cv_prog_compiler_static_works_CXX=yes
Chris@39 14041 fi
Chris@39 14042 else
Chris@39 14043 lt_cv_prog_compiler_static_works_CXX=yes
Chris@39 14044 fi
Chris@39 14045 fi
Chris@39 14046 $RM -r conftest*
Chris@39 14047 LDFLAGS="$save_LDFLAGS"
Chris@39 14048
Chris@39 14049 fi
Chris@39 14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
Chris@39 14051 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
Chris@39 14052
Chris@39 14053 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
Chris@39 14054 :
Chris@39 14055 else
Chris@39 14056 lt_prog_compiler_static_CXX=
Chris@39 14057 fi
Chris@39 14058
Chris@39 14059
Chris@39 14060
Chris@39 14061
Chris@39 14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@39 14063 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@39 14064 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
Chris@39 14065 $as_echo_n "(cached) " >&6
Chris@39 14066 else
Chris@39 14067 lt_cv_prog_compiler_c_o_CXX=no
Chris@39 14068 $RM -r conftest 2>/dev/null
Chris@39 14069 mkdir conftest
Chris@39 14070 cd conftest
Chris@39 14071 mkdir out
Chris@39 14072 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@39 14073
Chris@39 14074 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@39 14075 # Insert the option either (1) after the last *FLAGS variable, or
Chris@39 14076 # (2) before a word containing "conftest.", or (3) at the end.
Chris@39 14077 # Note that $ac_compile itself does not contain backslashes and begins
Chris@39 14078 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@39 14079 lt_compile=`echo "$ac_compile" | $SED \
Chris@39 14080 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@39 14081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@39 14082 -e 's:$: $lt_compiler_flag:'`
Chris@39 14083 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@39 14084 (eval "$lt_compile" 2>out/conftest.err)
Chris@39 14085 ac_status=$?
Chris@39 14086 cat out/conftest.err >&5
Chris@39 14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@39 14088 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@39 14089 then
Chris@39 14090 # The compiler can only warn and ignore the option if not recognized
Chris@39 14091 # So say no if there are warnings
Chris@39 14092 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@39 14093 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@39 14094 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@39 14095 lt_cv_prog_compiler_c_o_CXX=yes
Chris@39 14096 fi
Chris@39 14097 fi
Chris@39 14098 chmod u+w . 2>&5
Chris@39 14099 $RM conftest*
Chris@39 14100 # SGI C++ compiler will create directory out/ii_files/ for
Chris@39 14101 # template instantiation
Chris@39 14102 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@39 14103 $RM out/* && rmdir out
Chris@39 14104 cd ..
Chris@39 14105 $RM -r conftest
Chris@39 14106 $RM conftest*
Chris@39 14107
Chris@39 14108 fi
Chris@39 14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
Chris@39 14110 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
Chris@39 14111
Chris@39 14112
Chris@39 14113
Chris@39 14114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@39 14115 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@39 14116 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
Chris@39 14117 $as_echo_n "(cached) " >&6
Chris@39 14118 else
Chris@39 14119 lt_cv_prog_compiler_c_o_CXX=no
Chris@39 14120 $RM -r conftest 2>/dev/null
Chris@39 14121 mkdir conftest
Chris@39 14122 cd conftest
Chris@39 14123 mkdir out
Chris@39 14124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@39 14125
Chris@39 14126 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@39 14127 # Insert the option either (1) after the last *FLAGS variable, or
Chris@39 14128 # (2) before a word containing "conftest.", or (3) at the end.
Chris@39 14129 # Note that $ac_compile itself does not contain backslashes and begins
Chris@39 14130 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@39 14131 lt_compile=`echo "$ac_compile" | $SED \
Chris@39 14132 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@39 14133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@39 14134 -e 's:$: $lt_compiler_flag:'`
Chris@39 14135 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@39 14136 (eval "$lt_compile" 2>out/conftest.err)
Chris@39 14137 ac_status=$?
Chris@39 14138 cat out/conftest.err >&5
Chris@39 14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@39 14140 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@39 14141 then
Chris@39 14142 # The compiler can only warn and ignore the option if not recognized
Chris@39 14143 # So say no if there are warnings
Chris@39 14144 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@39 14145 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@39 14146 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@39 14147 lt_cv_prog_compiler_c_o_CXX=yes
Chris@39 14148 fi
Chris@39 14149 fi
Chris@39 14150 chmod u+w . 2>&5
Chris@39 14151 $RM conftest*
Chris@39 14152 # SGI C++ compiler will create directory out/ii_files/ for
Chris@39 14153 # template instantiation
Chris@39 14154 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@39 14155 $RM out/* && rmdir out
Chris@39 14156 cd ..
Chris@39 14157 $RM -r conftest
Chris@39 14158 $RM conftest*
Chris@39 14159
Chris@39 14160 fi
Chris@39 14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
Chris@39 14162 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
Chris@39 14163
Chris@39 14164
Chris@39 14165
Chris@39 14166
Chris@39 14167 hard_links="nottested"
Chris@39 14168 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
Chris@39 14169 # do not overwrite the value of need_locks provided by the user
Chris@39 14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Chris@39 14171 $as_echo_n "checking if we can lock with hard links... " >&6; }
Chris@39 14172 hard_links=yes
Chris@39 14173 $RM conftest*
Chris@39 14174 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@39 14175 touch conftest.a
Chris@39 14176 ln conftest.a conftest.b 2>&5 || hard_links=no
Chris@39 14177 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@39 14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Chris@39 14179 $as_echo "$hard_links" >&6; }
Chris@39 14180 if test "$hard_links" = no; then
Chris@39 14181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
Chris@39 14182 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
Chris@39 14183 need_locks=warn
Chris@39 14184 fi
Chris@39 14185 else
Chris@39 14186 need_locks=no
Chris@39 14187 fi
Chris@39 14188
Chris@39 14189
Chris@39 14190
Chris@39 14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Chris@39 14192 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Chris@39 14193
Chris@39 14194 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Chris@39 14195 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Chris@39 14196 case $host_os in
Chris@39 14197 aix[4-9]*)
Chris@39 14198 # If we're using GNU nm, then we don't want the "-C" option.
Chris@39 14199 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Chris@39 14200 # Also, AIX nm treats weak defined symbols like other global defined
Chris@39 14201 # symbols, whereas GNU nm marks them as "W".
Chris@39 14202 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Chris@39 14203 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Chris@39 14204 else
Chris@39 14205 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'
Chris@39 14206 fi
Chris@39 14207 ;;
Chris@39 14208 pw32*)
Chris@39 14209 export_symbols_cmds_CXX="$ltdll_cmds"
Chris@39 14210 ;;
Chris@39 14211 cygwin* | mingw* | cegcc*)
Chris@39 14212 case $cc_basename in
Chris@39 14213 cl*) ;;
Chris@39 14214 *)
Chris@39 14215 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
Chris@39 14216 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
Chris@39 14217 ;;
Chris@39 14218 esac
Chris@39 14219 ;;
Chris@39 14220 linux* | k*bsd*-gnu | gnu*)
Chris@39 14221 link_all_deplibs_CXX=no
Chris@39 14222 ;;
Chris@39 14223 *)
Chris@39 14224 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Chris@39 14225 ;;
Chris@39 14226 esac
Chris@39 14227
Chris@39 14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
Chris@39 14229 $as_echo "$ld_shlibs_CXX" >&6; }
Chris@39 14230 test "$ld_shlibs_CXX" = no && can_build_shared=no
Chris@39 14231
Chris@39 14232 with_gnu_ld_CXX=$with_gnu_ld
Chris@39 14233
Chris@39 14234
Chris@39 14235
Chris@39 14236
Chris@39 14237
Chris@39 14238
Chris@39 14239 #
Chris@39 14240 # Do we need to explicitly link libc?
Chris@39 14241 #
Chris@39 14242 case "x$archive_cmds_need_lc_CXX" in
Chris@39 14243 x|xyes)
Chris@39 14244 # Assume -lc should be added
Chris@39 14245 archive_cmds_need_lc_CXX=yes
Chris@39 14246
Chris@39 14247 if test "$enable_shared" = yes && test "$GCC" = yes; then
Chris@39 14248 case $archive_cmds_CXX in
Chris@39 14249 *'~'*)
Chris@39 14250 # FIXME: we may have to deal with multi-command sequences.
Chris@39 14251 ;;
Chris@39 14252 '$CC '*)
Chris@39 14253 # Test whether the compiler implicitly links with -lc since on some
Chris@39 14254 # systems, -lgcc has to come before -lc. If gcc already passes -lc
Chris@39 14255 # to ld, don't add -lc before -lgcc.
Chris@39 14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Chris@39 14257 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Chris@39 14258 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
Chris@39 14259 $as_echo_n "(cached) " >&6
Chris@39 14260 else
Chris@39 14261 $RM conftest*
Chris@39 14262 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@39 14263
Chris@39 14264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@39 14265 (eval $ac_compile) 2>&5
Chris@39 14266 ac_status=$?
Chris@39 14267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 14268 test $ac_status = 0; } 2>conftest.err; then
Chris@39 14269 soname=conftest
Chris@39 14270 lib=conftest
Chris@39 14271 libobjs=conftest.$ac_objext
Chris@39 14272 deplibs=
Chris@39 14273 wl=$lt_prog_compiler_wl_CXX
Chris@39 14274 pic_flag=$lt_prog_compiler_pic_CXX
Chris@39 14275 compiler_flags=-v
Chris@39 14276 linker_flags=-v
Chris@39 14277 verstring=
Chris@39 14278 output_objdir=.
Chris@39 14279 libname=conftest
Chris@39 14280 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
Chris@39 14281 allow_undefined_flag_CXX=
Chris@39 14282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Chris@39 14283 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Chris@39 14284 ac_status=$?
Chris@39 14285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 14286 test $ac_status = 0; }
Chris@39 14287 then
Chris@39 14288 lt_cv_archive_cmds_need_lc_CXX=no
Chris@39 14289 else
Chris@39 14290 lt_cv_archive_cmds_need_lc_CXX=yes
Chris@39 14291 fi
Chris@39 14292 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
Chris@39 14293 else
Chris@39 14294 cat conftest.err 1>&5
Chris@39 14295 fi
Chris@39 14296 $RM conftest*
Chris@39 14297
Chris@39 14298 fi
Chris@39 14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
Chris@39 14300 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
Chris@39 14301 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
Chris@39 14302 ;;
Chris@39 14303 esac
Chris@39 14304 fi
Chris@39 14305 ;;
Chris@39 14306 esac
Chris@39 14307
Chris@39 14308
Chris@39 14309
Chris@39 14310
Chris@39 14311
Chris@39 14312
Chris@39 14313
Chris@39 14314
Chris@39 14315
Chris@39 14316
Chris@39 14317
Chris@39 14318
Chris@39 14319
Chris@39 14320
Chris@39 14321
Chris@39 14322
Chris@39 14323
Chris@39 14324
Chris@39 14325
Chris@39 14326
Chris@39 14327
Chris@39 14328
Chris@39 14329
Chris@39 14330
Chris@39 14331
Chris@39 14332
Chris@39 14333
Chris@39 14334
Chris@39 14335
Chris@39 14336
Chris@39 14337
Chris@39 14338
Chris@39 14339
Chris@39 14340
Chris@39 14341
Chris@39 14342
Chris@39 14343
Chris@39 14344
Chris@39 14345
Chris@39 14346
Chris@39 14347
Chris@39 14348
Chris@39 14349
Chris@39 14350
Chris@39 14351
Chris@39 14352
Chris@39 14353
Chris@39 14354
Chris@39 14355
Chris@39 14356
Chris@39 14357
Chris@39 14358
Chris@39 14359
Chris@39 14360
Chris@39 14361
Chris@39 14362
Chris@39 14363
Chris@39 14364
Chris@39 14365
Chris@39 14366
Chris@39 14367
Chris@39 14368
Chris@39 14369
Chris@39 14370
Chris@39 14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Chris@39 14372 $as_echo_n "checking dynamic linker characteristics... " >&6; }
Chris@39 14373
Chris@39 14374 library_names_spec=
Chris@39 14375 libname_spec='lib$name'
Chris@39 14376 soname_spec=
Chris@39 14377 shrext_cmds=".so"
Chris@39 14378 postinstall_cmds=
Chris@39 14379 postuninstall_cmds=
Chris@39 14380 finish_cmds=
Chris@39 14381 finish_eval=
Chris@39 14382 shlibpath_var=
Chris@39 14383 shlibpath_overrides_runpath=unknown
Chris@39 14384 version_type=none
Chris@39 14385 dynamic_linker="$host_os ld.so"
Chris@39 14386 sys_lib_dlsearch_path_spec="/lib /usr/lib"
Chris@39 14387 need_lib_prefix=unknown
Chris@39 14388 hardcode_into_libs=no
Chris@39 14389
Chris@39 14390 # when you set need_version to no, make sure it does not cause -set_version
Chris@39 14391 # flags to be left without arguments
Chris@39 14392 need_version=unknown
Chris@39 14393
Chris@39 14394 case $host_os in
Chris@39 14395 aix3*)
Chris@39 14396 version_type=linux
Chris@39 14397 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
Chris@39 14398 shlibpath_var=LIBPATH
Chris@39 14399
Chris@39 14400 # AIX 3 has no versioning support, so we append a major version to the name.
Chris@39 14401 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14402 ;;
Chris@39 14403
Chris@39 14404 aix[4-9]*)
Chris@39 14405 version_type=linux
Chris@39 14406 need_lib_prefix=no
Chris@39 14407 need_version=no
Chris@39 14408 hardcode_into_libs=yes
Chris@39 14409 if test "$host_cpu" = ia64; then
Chris@39 14410 # AIX 5 supports IA64
Chris@39 14411 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
Chris@39 14412 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14413 else
Chris@39 14414 # With GCC up to 2.95.x, collect2 would create an import file
Chris@39 14415 # for dependence libraries. The import file would start with
Chris@39 14416 # the line `#! .'. This would cause the generated library to
Chris@39 14417 # depend on `.', always an invalid library. This was fixed in
Chris@39 14418 # development snapshots of GCC prior to 3.0.
Chris@39 14419 case $host_os in
Chris@39 14420 aix4 | aix4.[01] | aix4.[01].*)
Chris@39 14421 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
Chris@39 14422 echo ' yes '
Chris@39 14423 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
Chris@39 14424 :
Chris@39 14425 else
Chris@39 14426 can_build_shared=no
Chris@39 14427 fi
Chris@39 14428 ;;
Chris@39 14429 esac
Chris@39 14430 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
Chris@39 14431 # soname into executable. Probably we can add versioning support to
Chris@39 14432 # collect2, so additional links can be useful in future.
Chris@39 14433 if test "$aix_use_runtimelinking" = yes; then
Chris@39 14434 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
Chris@39 14435 # instead of lib<name>.a to let people know that these are not
Chris@39 14436 # typical AIX shared libraries.
Chris@39 14437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 14438 else
Chris@39 14439 # We preserve .a as extension for shared libraries through AIX4.2
Chris@39 14440 # and later when we are not doing run time linking.
Chris@39 14441 library_names_spec='${libname}${release}.a $libname.a'
Chris@39 14442 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14443 fi
Chris@39 14444 shlibpath_var=LIBPATH
Chris@39 14445 fi
Chris@39 14446 ;;
Chris@39 14447
Chris@39 14448 amigaos*)
Chris@39 14449 case $host_cpu in
Chris@39 14450 powerpc)
Chris@39 14451 # Since July 2007 AmigaOS4 officially supports .so libraries.
Chris@39 14452 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Chris@39 14453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 14454 ;;
Chris@39 14455 m68k)
Chris@39 14456 library_names_spec='$libname.ixlibrary $libname.a'
Chris@39 14457 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Chris@39 14458 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
Chris@39 14459 ;;
Chris@39 14460 esac
Chris@39 14461 ;;
Chris@39 14462
Chris@39 14463 beos*)
Chris@39 14464 library_names_spec='${libname}${shared_ext}'
Chris@39 14465 dynamic_linker="$host_os ld.so"
Chris@39 14466 shlibpath_var=LIBRARY_PATH
Chris@39 14467 ;;
Chris@39 14468
Chris@39 14469 bsdi[45]*)
Chris@39 14470 version_type=linux
Chris@39 14471 need_version=no
Chris@39 14472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 14473 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14474 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
Chris@39 14475 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14476 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
Chris@39 14477 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
Chris@39 14478 # the default ld.so.conf also contains /usr/contrib/lib and
Chris@39 14479 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
Chris@39 14480 # libtool to hard-code these into programs
Chris@39 14481 ;;
Chris@39 14482
Chris@39 14483 cygwin* | mingw* | pw32* | cegcc*)
Chris@39 14484 version_type=windows
Chris@39 14485 shrext_cmds=".dll"
Chris@39 14486 need_version=no
Chris@39 14487 need_lib_prefix=no
Chris@39 14488
Chris@39 14489 case $GCC,$cc_basename in
Chris@39 14490 yes,*)
Chris@39 14491 # gcc
Chris@39 14492 library_names_spec='$libname.dll.a'
Chris@39 14493 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@39 14494 postinstall_cmds='base_file=`basename \${file}`~
Chris@39 14495 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Chris@39 14496 dldir=$destdir/`dirname \$dlpath`~
Chris@39 14497 test -d \$dldir || mkdir -p \$dldir~
Chris@39 14498 $install_prog $dir/$dlname \$dldir/$dlname~
Chris@39 14499 chmod a+x \$dldir/$dlname~
Chris@39 14500 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
Chris@39 14501 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
Chris@39 14502 fi'
Chris@39 14503 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@39 14504 dlpath=$dir/\$dldll~
Chris@39 14505 $RM \$dlpath'
Chris@39 14506 shlibpath_overrides_runpath=yes
Chris@39 14507
Chris@39 14508 case $host_os in
Chris@39 14509 cygwin*)
Chris@39 14510 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Chris@39 14511 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@39 14512
Chris@39 14513 ;;
Chris@39 14514 mingw* | cegcc*)
Chris@39 14515 # MinGW DLLs use traditional 'lib' prefix
Chris@39 14516 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@39 14517 ;;
Chris@39 14518 pw32*)
Chris@39 14519 # pw32 DLLs use 'pw' prefix rather than 'lib'
Chris@39 14520 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@39 14521 ;;
Chris@39 14522 esac
Chris@39 14523 dynamic_linker='Win32 ld.exe'
Chris@39 14524 ;;
Chris@39 14525
Chris@39 14526 *,cl*)
Chris@39 14527 # Native MSVC
Chris@39 14528 libname_spec='$name'
Chris@39 14529 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@39 14530 library_names_spec='${libname}.dll.lib'
Chris@39 14531
Chris@39 14532 case $build_os in
Chris@39 14533 mingw*)
Chris@39 14534 sys_lib_search_path_spec=
Chris@39 14535 lt_save_ifs=$IFS
Chris@39 14536 IFS=';'
Chris@39 14537 for lt_path in $LIB
Chris@39 14538 do
Chris@39 14539 IFS=$lt_save_ifs
Chris@39 14540 # Let DOS variable expansion print the short 8.3 style file name.
Chris@39 14541 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
Chris@39 14542 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
Chris@39 14543 done
Chris@39 14544 IFS=$lt_save_ifs
Chris@39 14545 # Convert to MSYS style.
Chris@39 14546 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
Chris@39 14547 ;;
Chris@39 14548 cygwin*)
Chris@39 14549 # Convert to unix form, then to dos form, then back to unix form
Chris@39 14550 # but this time dos style (no spaces!) so that the unix form looks
Chris@39 14551 # like /cygdrive/c/PROGRA~1:/cygdr...
Chris@39 14552 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
Chris@39 14553 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
Chris@39 14554 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@39 14555 ;;
Chris@39 14556 *)
Chris@39 14557 sys_lib_search_path_spec="$LIB"
Chris@39 14558 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
Chris@39 14559 # It is most probably a Windows format PATH.
Chris@39 14560 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Chris@39 14561 else
Chris@39 14562 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@39 14563 fi
Chris@39 14564 # FIXME: find the short name or the path components, as spaces are
Chris@39 14565 # common. (e.g. "Program Files" -> "PROGRA~1")
Chris@39 14566 ;;
Chris@39 14567 esac
Chris@39 14568
Chris@39 14569 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@39 14570 postinstall_cmds='base_file=`basename \${file}`~
Chris@39 14571 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Chris@39 14572 dldir=$destdir/`dirname \$dlpath`~
Chris@39 14573 test -d \$dldir || mkdir -p \$dldir~
Chris@39 14574 $install_prog $dir/$dlname \$dldir/$dlname'
Chris@39 14575 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@39 14576 dlpath=$dir/\$dldll~
Chris@39 14577 $RM \$dlpath'
Chris@39 14578 shlibpath_overrides_runpath=yes
Chris@39 14579 dynamic_linker='Win32 link.exe'
Chris@39 14580 ;;
Chris@39 14581
Chris@39 14582 *)
Chris@39 14583 # Assume MSVC wrapper
Chris@39 14584 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Chris@39 14585 dynamic_linker='Win32 ld.exe'
Chris@39 14586 ;;
Chris@39 14587 esac
Chris@39 14588 # FIXME: first we should search . and the directory the executable is in
Chris@39 14589 shlibpath_var=PATH
Chris@39 14590 ;;
Chris@39 14591
Chris@39 14592 darwin* | rhapsody*)
Chris@39 14593 dynamic_linker="$host_os dyld"
Chris@39 14594 version_type=darwin
Chris@39 14595 need_lib_prefix=no
Chris@39 14596 need_version=no
Chris@39 14597 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Chris@39 14598 soname_spec='${libname}${release}${major}$shared_ext'
Chris@39 14599 shlibpath_overrides_runpath=yes
Chris@39 14600 shlibpath_var=DYLD_LIBRARY_PATH
Chris@39 14601 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Chris@39 14602
Chris@39 14603 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
Chris@39 14604 ;;
Chris@39 14605
Chris@39 14606 dgux*)
Chris@39 14607 version_type=linux
Chris@39 14608 need_lib_prefix=no
Chris@39 14609 need_version=no
Chris@39 14610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
Chris@39 14611 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14612 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14613 ;;
Chris@39 14614
Chris@39 14615 freebsd1*)
Chris@39 14616 dynamic_linker=no
Chris@39 14617 ;;
Chris@39 14618
Chris@39 14619 freebsd* | dragonfly*)
Chris@39 14620 # DragonFly does not have aout. When/if they implement a new
Chris@39 14621 # versioning mechanism, adjust this.
Chris@39 14622 if test -x /usr/bin/objformat; then
Chris@39 14623 objformat=`/usr/bin/objformat`
Chris@39 14624 else
Chris@39 14625 case $host_os in
Chris@39 14626 freebsd[123]*) objformat=aout ;;
Chris@39 14627 *) objformat=elf ;;
Chris@39 14628 esac
Chris@39 14629 fi
Chris@39 14630 version_type=freebsd-$objformat
Chris@39 14631 case $version_type in
Chris@39 14632 freebsd-elf*)
Chris@39 14633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@39 14634 need_version=no
Chris@39 14635 need_lib_prefix=no
Chris@39 14636 ;;
Chris@39 14637 freebsd-*)
Chris@39 14638 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
Chris@39 14639 need_version=yes
Chris@39 14640 ;;
Chris@39 14641 esac
Chris@39 14642 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14643 case $host_os in
Chris@39 14644 freebsd2*)
Chris@39 14645 shlibpath_overrides_runpath=yes
Chris@39 14646 ;;
Chris@39 14647 freebsd3.[01]* | freebsdelf3.[01]*)
Chris@39 14648 shlibpath_overrides_runpath=yes
Chris@39 14649 hardcode_into_libs=yes
Chris@39 14650 ;;
Chris@39 14651 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
Chris@39 14652 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Chris@39 14653 shlibpath_overrides_runpath=no
Chris@39 14654 hardcode_into_libs=yes
Chris@39 14655 ;;
Chris@39 14656 *) # from 4.6 on, and DragonFly
Chris@39 14657 shlibpath_overrides_runpath=yes
Chris@39 14658 hardcode_into_libs=yes
Chris@39 14659 ;;
Chris@39 14660 esac
Chris@39 14661 ;;
Chris@39 14662
Chris@39 14663 gnu*)
Chris@39 14664 version_type=linux
Chris@39 14665 need_lib_prefix=no
Chris@39 14666 need_version=no
Chris@39 14667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
Chris@39 14668 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14669 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14670 shlibpath_overrides_runpath=no
Chris@39 14671 hardcode_into_libs=yes
Chris@39 14672 ;;
Chris@39 14673
Chris@39 14674 haiku*)
Chris@39 14675 version_type=linux
Chris@39 14676 need_lib_prefix=no
Chris@39 14677 need_version=no
Chris@39 14678 dynamic_linker="$host_os runtime_loader"
Chris@39 14679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
Chris@39 14680 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14681 shlibpath_var=LIBRARY_PATH
Chris@39 14682 shlibpath_overrides_runpath=yes
Chris@39 14683 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Chris@39 14684 hardcode_into_libs=yes
Chris@39 14685 ;;
Chris@39 14686
Chris@39 14687 hpux9* | hpux10* | hpux11*)
Chris@39 14688 # Give a soname corresponding to the major version so that dld.sl refuses to
Chris@39 14689 # link against other versions.
Chris@39 14690 version_type=sunos
Chris@39 14691 need_lib_prefix=no
Chris@39 14692 need_version=no
Chris@39 14693 case $host_cpu in
Chris@39 14694 ia64*)
Chris@39 14695 shrext_cmds='.so'
Chris@39 14696 hardcode_into_libs=yes
Chris@39 14697 dynamic_linker="$host_os dld.so"
Chris@39 14698 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14699 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@39 14700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 14701 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14702 if test "X$HPUX_IA64_MODE" = X32; then
Chris@39 14703 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Chris@39 14704 else
Chris@39 14705 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Chris@39 14706 fi
Chris@39 14707 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@39 14708 ;;
Chris@39 14709 hppa*64*)
Chris@39 14710 shrext_cmds='.sl'
Chris@39 14711 hardcode_into_libs=yes
Chris@39 14712 dynamic_linker="$host_os dld.sl"
Chris@39 14713 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
Chris@39 14714 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@39 14715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 14716 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14717 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
Chris@39 14718 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@39 14719 ;;
Chris@39 14720 *)
Chris@39 14721 shrext_cmds='.sl'
Chris@39 14722 dynamic_linker="$host_os dld.sl"
Chris@39 14723 shlibpath_var=SHLIB_PATH
Chris@39 14724 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Chris@39 14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 14726 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14727 ;;
Chris@39 14728 esac
Chris@39 14729 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Chris@39 14730 postinstall_cmds='chmod 555 $lib'
Chris@39 14731 # or fails outright, so override atomically:
Chris@39 14732 install_override_mode=555
Chris@39 14733 ;;
Chris@39 14734
Chris@39 14735 interix[3-9]*)
Chris@39 14736 version_type=linux
Chris@39 14737 need_lib_prefix=no
Chris@39 14738 need_version=no
Chris@39 14739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@39 14740 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14741 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
Chris@39 14742 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14743 shlibpath_overrides_runpath=no
Chris@39 14744 hardcode_into_libs=yes
Chris@39 14745 ;;
Chris@39 14746
Chris@39 14747 irix5* | irix6* | nonstopux*)
Chris@39 14748 case $host_os in
Chris@39 14749 nonstopux*) version_type=nonstopux ;;
Chris@39 14750 *)
Chris@39 14751 if test "$lt_cv_prog_gnu_ld" = yes; then
Chris@39 14752 version_type=linux
Chris@39 14753 else
Chris@39 14754 version_type=irix
Chris@39 14755 fi ;;
Chris@39 14756 esac
Chris@39 14757 need_lib_prefix=no
Chris@39 14758 need_version=no
Chris@39 14759 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@39 14761 case $host_os in
Chris@39 14762 irix5* | nonstopux*)
Chris@39 14763 libsuff= shlibsuff=
Chris@39 14764 ;;
Chris@39 14765 *)
Chris@39 14766 case $LD in # libtool.m4 will add one of these switches to LD
Chris@39 14767 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
Chris@39 14768 libsuff= shlibsuff= libmagic=32-bit;;
Chris@39 14769 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
Chris@39 14770 libsuff=32 shlibsuff=N32 libmagic=N32;;
Chris@39 14771 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
Chris@39 14772 libsuff=64 shlibsuff=64 libmagic=64-bit;;
Chris@39 14773 *) libsuff= shlibsuff= libmagic=never-match;;
Chris@39 14774 esac
Chris@39 14775 ;;
Chris@39 14776 esac
Chris@39 14777 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
Chris@39 14778 shlibpath_overrides_runpath=no
Chris@39 14779 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
Chris@39 14780 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
Chris@39 14781 hardcode_into_libs=yes
Chris@39 14782 ;;
Chris@39 14783
Chris@39 14784 # No shared lib support for Linux oldld, aout, or coff.
Chris@39 14785 linux*oldld* | linux*aout* | linux*coff*)
Chris@39 14786 dynamic_linker=no
Chris@39 14787 ;;
Chris@39 14788
Chris@39 14789 # This must be Linux ELF.
Chris@39 14790 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@39 14791 version_type=linux
Chris@39 14792 need_lib_prefix=no
Chris@39 14793 need_version=no
Chris@39 14794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 14795 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14796 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
Chris@39 14797 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14798 shlibpath_overrides_runpath=no
Chris@39 14799
Chris@39 14800 # Some binutils ld are patched to set DT_RUNPATH
Chris@39 14801 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
Chris@39 14802 $as_echo_n "(cached) " >&6
Chris@39 14803 else
Chris@39 14804 lt_cv_shlibpath_overrides_runpath=no
Chris@39 14805 save_LDFLAGS=$LDFLAGS
Chris@39 14806 save_libdir=$libdir
Chris@39 14807 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
Chris@39 14808 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
Chris@39 14809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 14810 /* end confdefs.h. */
Chris@39 14811
Chris@39 14812 int
Chris@39 14813 main ()
Chris@39 14814 {
Chris@39 14815
Chris@39 14816 ;
Chris@39 14817 return 0;
Chris@39 14818 }
Chris@39 14819 _ACEOF
Chris@39 14820 if ac_fn_cxx_try_link "$LINENO"; then :
Chris@39 14821 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
Chris@39 14822 lt_cv_shlibpath_overrides_runpath=yes
Chris@39 14823 fi
Chris@39 14824 fi
Chris@39 14825 rm -f core conftest.err conftest.$ac_objext \
Chris@39 14826 conftest$ac_exeext conftest.$ac_ext
Chris@39 14827 LDFLAGS=$save_LDFLAGS
Chris@39 14828 libdir=$save_libdir
Chris@39 14829
Chris@39 14830 fi
Chris@39 14831
Chris@39 14832 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Chris@39 14833
Chris@39 14834 # This implies no fast_install, which is unacceptable.
Chris@39 14835 # Some rework will be needed to allow for fast_install
Chris@39 14836 # before this can be enabled.
Chris@39 14837 hardcode_into_libs=yes
Chris@39 14838
Chris@39 14839 # Append ld.so.conf contents to the search path
Chris@39 14840 if test -f /etc/ld.so.conf; then
Chris@39 14841 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;s/"//g;/^$/d' | tr '\n' ' '`
Chris@39 14842 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
Chris@39 14843 fi
Chris@39 14844
Chris@39 14845 # We used to test for /lib/ld.so.1 and disable shared libraries on
Chris@39 14846 # powerpc, because MkLinux only supported shared libraries with the
Chris@39 14847 # GNU dynamic linker. Since this was broken with cross compilers,
Chris@39 14848 # most powerpc-linux boxes support dynamic linking these days and
Chris@39 14849 # people can always --disable-shared, the test was removed, and we
Chris@39 14850 # assume the GNU/Linux dynamic linker is in use.
Chris@39 14851 dynamic_linker='GNU/Linux ld.so'
Chris@39 14852 ;;
Chris@39 14853
Chris@39 14854 netbsdelf*-gnu)
Chris@39 14855 version_type=linux
Chris@39 14856 need_lib_prefix=no
Chris@39 14857 need_version=no
Chris@39 14858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@39 14859 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14860 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14861 shlibpath_overrides_runpath=no
Chris@39 14862 hardcode_into_libs=yes
Chris@39 14863 dynamic_linker='NetBSD ld.elf_so'
Chris@39 14864 ;;
Chris@39 14865
Chris@39 14866 netbsd*)
Chris@39 14867 version_type=sunos
Chris@39 14868 need_lib_prefix=no
Chris@39 14869 need_version=no
Chris@39 14870 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@39 14871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@39 14872 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@39 14873 dynamic_linker='NetBSD (a.out) ld.so'
Chris@39 14874 else
Chris@39 14875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@39 14876 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14877 dynamic_linker='NetBSD ld.elf_so'
Chris@39 14878 fi
Chris@39 14879 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14880 shlibpath_overrides_runpath=yes
Chris@39 14881 hardcode_into_libs=yes
Chris@39 14882 ;;
Chris@39 14883
Chris@39 14884 newsos6)
Chris@39 14885 version_type=linux
Chris@39 14886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 14887 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14888 shlibpath_overrides_runpath=yes
Chris@39 14889 ;;
Chris@39 14890
Chris@39 14891 *nto* | *qnx*)
Chris@39 14892 version_type=qnx
Chris@39 14893 need_lib_prefix=no
Chris@39 14894 need_version=no
Chris@39 14895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 14896 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14897 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14898 shlibpath_overrides_runpath=no
Chris@39 14899 hardcode_into_libs=yes
Chris@39 14900 dynamic_linker='ldqnx.so'
Chris@39 14901 ;;
Chris@39 14902
Chris@39 14903 openbsd*)
Chris@39 14904 version_type=sunos
Chris@39 14905 sys_lib_dlsearch_path_spec="/usr/lib"
Chris@39 14906 need_lib_prefix=no
Chris@39 14907 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
Chris@39 14908 case $host_os in
Chris@39 14909 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
Chris@39 14910 *) need_version=no ;;
Chris@39 14911 esac
Chris@39 14912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@39 14913 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@39 14914 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14915 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@39 14916 case $host_os in
Chris@39 14917 openbsd2.[89] | openbsd2.[89].*)
Chris@39 14918 shlibpath_overrides_runpath=no
Chris@39 14919 ;;
Chris@39 14920 *)
Chris@39 14921 shlibpath_overrides_runpath=yes
Chris@39 14922 ;;
Chris@39 14923 esac
Chris@39 14924 else
Chris@39 14925 shlibpath_overrides_runpath=yes
Chris@39 14926 fi
Chris@39 14927 ;;
Chris@39 14928
Chris@39 14929 os2*)
Chris@39 14930 libname_spec='$name'
Chris@39 14931 shrext_cmds=".dll"
Chris@39 14932 need_lib_prefix=no
Chris@39 14933 library_names_spec='$libname${shared_ext} $libname.a'
Chris@39 14934 dynamic_linker='OS/2 ld.exe'
Chris@39 14935 shlibpath_var=LIBPATH
Chris@39 14936 ;;
Chris@39 14937
Chris@39 14938 osf3* | osf4* | osf5*)
Chris@39 14939 version_type=osf
Chris@39 14940 need_lib_prefix=no
Chris@39 14941 need_version=no
Chris@39 14942 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 14944 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14945 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Chris@39 14946 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
Chris@39 14947 ;;
Chris@39 14948
Chris@39 14949 rdos*)
Chris@39 14950 dynamic_linker=no
Chris@39 14951 ;;
Chris@39 14952
Chris@39 14953 solaris*)
Chris@39 14954 version_type=linux
Chris@39 14955 need_lib_prefix=no
Chris@39 14956 need_version=no
Chris@39 14957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 14958 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14959 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14960 shlibpath_overrides_runpath=yes
Chris@39 14961 hardcode_into_libs=yes
Chris@39 14962 # ldd complains unless libraries are executable
Chris@39 14963 postinstall_cmds='chmod +x $lib'
Chris@39 14964 ;;
Chris@39 14965
Chris@39 14966 sunos4*)
Chris@39 14967 version_type=sunos
Chris@39 14968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@39 14969 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
Chris@39 14970 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14971 shlibpath_overrides_runpath=yes
Chris@39 14972 if test "$with_gnu_ld" = yes; then
Chris@39 14973 need_lib_prefix=no
Chris@39 14974 fi
Chris@39 14975 need_version=yes
Chris@39 14976 ;;
Chris@39 14977
Chris@39 14978 sysv4 | sysv4.3*)
Chris@39 14979 version_type=linux
Chris@39 14980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 14981 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14982 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14983 case $host_vendor in
Chris@39 14984 sni)
Chris@39 14985 shlibpath_overrides_runpath=no
Chris@39 14986 need_lib_prefix=no
Chris@39 14987 runpath_var=LD_RUN_PATH
Chris@39 14988 ;;
Chris@39 14989 siemens)
Chris@39 14990 need_lib_prefix=no
Chris@39 14991 ;;
Chris@39 14992 motorola)
Chris@39 14993 need_lib_prefix=no
Chris@39 14994 need_version=no
Chris@39 14995 shlibpath_overrides_runpath=no
Chris@39 14996 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
Chris@39 14997 ;;
Chris@39 14998 esac
Chris@39 14999 ;;
Chris@39 15000
Chris@39 15001 sysv4*MP*)
Chris@39 15002 if test -d /usr/nec ;then
Chris@39 15003 version_type=linux
Chris@39 15004 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
Chris@39 15005 soname_spec='$libname${shared_ext}.$major'
Chris@39 15006 shlibpath_var=LD_LIBRARY_PATH
Chris@39 15007 fi
Chris@39 15008 ;;
Chris@39 15009
Chris@39 15010 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Chris@39 15011 version_type=freebsd-elf
Chris@39 15012 need_lib_prefix=no
Chris@39 15013 need_version=no
Chris@39 15014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@39 15015 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 15016 shlibpath_var=LD_LIBRARY_PATH
Chris@39 15017 shlibpath_overrides_runpath=yes
Chris@39 15018 hardcode_into_libs=yes
Chris@39 15019 if test "$with_gnu_ld" = yes; then
Chris@39 15020 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Chris@39 15021 else
Chris@39 15022 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Chris@39 15023 case $host_os in
Chris@39 15024 sco3.2v5*)
Chris@39 15025 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
Chris@39 15026 ;;
Chris@39 15027 esac
Chris@39 15028 fi
Chris@39 15029 sys_lib_dlsearch_path_spec='/usr/lib'
Chris@39 15030 ;;
Chris@39 15031
Chris@39 15032 tpf*)
Chris@39 15033 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Chris@39 15034 version_type=linux
Chris@39 15035 need_lib_prefix=no
Chris@39 15036 need_version=no
Chris@39 15037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 15038 shlibpath_var=LD_LIBRARY_PATH
Chris@39 15039 shlibpath_overrides_runpath=no
Chris@39 15040 hardcode_into_libs=yes
Chris@39 15041 ;;
Chris@39 15042
Chris@39 15043 uts4*)
Chris@39 15044 version_type=linux
Chris@39 15045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 15046 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 15047 shlibpath_var=LD_LIBRARY_PATH
Chris@39 15048 ;;
Chris@39 15049
Chris@39 15050 *)
Chris@39 15051 dynamic_linker=no
Chris@39 15052 ;;
Chris@39 15053 esac
Chris@39 15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Chris@39 15055 $as_echo "$dynamic_linker" >&6; }
Chris@39 15056 test "$dynamic_linker" = no && can_build_shared=no
Chris@39 15057
Chris@39 15058 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Chris@39 15059 if test "$GCC" = yes; then
Chris@39 15060 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
Chris@39 15061 fi
Chris@39 15062
Chris@39 15063 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
Chris@39 15064 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
Chris@39 15065 fi
Chris@39 15066 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
Chris@39 15067 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
Chris@39 15068 fi
Chris@39 15069
Chris@39 15070
Chris@39 15071
Chris@39 15072
Chris@39 15073
Chris@39 15074
Chris@39 15075
Chris@39 15076
Chris@39 15077
Chris@39 15078
Chris@39 15079
Chris@39 15080
Chris@39 15081
Chris@39 15082
Chris@39 15083
Chris@39 15084
Chris@39 15085
Chris@39 15086
Chris@39 15087
Chris@39 15088
Chris@39 15089
Chris@39 15090
Chris@39 15091
Chris@39 15092
Chris@39 15093
Chris@39 15094
Chris@39 15095
Chris@39 15096
Chris@39 15097
Chris@39 15098
Chris@39 15099
Chris@39 15100
Chris@39 15101
Chris@39 15102
Chris@39 15103
Chris@39 15104
Chris@39 15105
Chris@39 15106
Chris@39 15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Chris@39 15108 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Chris@39 15109 hardcode_action_CXX=
Chris@39 15110 if test -n "$hardcode_libdir_flag_spec_CXX" ||
Chris@39 15111 test -n "$runpath_var_CXX" ||
Chris@39 15112 test "X$hardcode_automatic_CXX" = "Xyes" ; then
Chris@39 15113
Chris@39 15114 # We can hardcode non-existent directories.
Chris@39 15115 if test "$hardcode_direct_CXX" != no &&
Chris@39 15116 # If the only mechanism to avoid hardcoding is shlibpath_var, we
Chris@39 15117 # have to relink, otherwise we might link with an installed library
Chris@39 15118 # when we should be linking with a yet-to-be-installed one
Chris@39 15119 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
Chris@39 15120 test "$hardcode_minus_L_CXX" != no; then
Chris@39 15121 # Linking always hardcodes the temporary library directory.
Chris@39 15122 hardcode_action_CXX=relink
Chris@39 15123 else
Chris@39 15124 # We can link without hardcoding, and we can hardcode nonexisting dirs.
Chris@39 15125 hardcode_action_CXX=immediate
Chris@39 15126 fi
Chris@39 15127 else
Chris@39 15128 # We cannot hardcode anything, or else we can only hardcode existing
Chris@39 15129 # directories.
Chris@39 15130 hardcode_action_CXX=unsupported
Chris@39 15131 fi
Chris@39 15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
Chris@39 15133 $as_echo "$hardcode_action_CXX" >&6; }
Chris@39 15134
Chris@39 15135 if test "$hardcode_action_CXX" = relink ||
Chris@39 15136 test "$inherit_rpath_CXX" = yes; then
Chris@39 15137 # Fast installation is not supported
Chris@39 15138 enable_fast_install=no
Chris@39 15139 elif test "$shlibpath_overrides_runpath" = yes ||
Chris@39 15140 test "$enable_shared" = no; then
Chris@39 15141 # Fast installation is not necessary
Chris@39 15142 enable_fast_install=needless
Chris@39 15143 fi
Chris@39 15144
Chris@39 15145
Chris@39 15146
Chris@39 15147
Chris@39 15148
Chris@39 15149
Chris@39 15150
Chris@39 15151 fi # test -n "$compiler"
Chris@39 15152
Chris@39 15153 CC=$lt_save_CC
Chris@39 15154 CFLAGS=$lt_save_CFLAGS
Chris@39 15155 LDCXX=$LD
Chris@39 15156 LD=$lt_save_LD
Chris@39 15157 GCC=$lt_save_GCC
Chris@39 15158 with_gnu_ld=$lt_save_with_gnu_ld
Chris@39 15159 lt_cv_path_LDCXX=$lt_cv_path_LD
Chris@39 15160 lt_cv_path_LD=$lt_save_path_LD
Chris@39 15161 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
Chris@39 15162 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
Chris@39 15163 fi # test "$_lt_caught_CXX_error" != yes
Chris@39 15164
Chris@39 15165 ac_ext=c
Chris@39 15166 ac_cpp='$CPP $CPPFLAGS'
Chris@39 15167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@39 15168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@39 15169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@39 15170
Chris@39 15171
Chris@39 15172
Chris@39 15173
Chris@39 15174
Chris@39 15175
Chris@39 15176
Chris@39 15177
Chris@39 15178
Chris@39 15179
Chris@39 15180
Chris@39 15181
Chris@39 15182
Chris@39 15183 ac_config_commands="$ac_config_commands libtool"
Chris@39 15184
Chris@39 15185
Chris@39 15186
Chris@39 15187
Chris@39 15188 # Only expand once:
Chris@39 15189
Chris@39 15190
Chris@39 15191
Chris@39 15192 # Transfer these variables to the Makefile
Chris@39 15193
Chris@39 15194
Chris@39 15195
Chris@39 15196
Chris@39 15197
Chris@39 15198 ac_config_files="$ac_config_files Makefile lib/Makefile include/Makefile bin/Makefile doc/Makefile portaudiocpp.pc"
Chris@39 15199
Chris@39 15200 cat >confcache <<\_ACEOF
Chris@39 15201 # This file is a shell script that caches the results of configure
Chris@39 15202 # tests run on this system so they can be shared between configure
Chris@39 15203 # scripts and configure runs, see configure's option --config-cache.
Chris@39 15204 # It is not useful on other systems. If it contains results you don't
Chris@39 15205 # want to keep, you may remove or edit it.
Chris@39 15206 #
Chris@39 15207 # config.status only pays attention to the cache file if you give it
Chris@39 15208 # the --recheck option to rerun configure.
Chris@39 15209 #
Chris@39 15210 # `ac_cv_env_foo' variables (set or unset) will be overridden when
Chris@39 15211 # loading this file, other *unset* `ac_cv_foo' will be assigned the
Chris@39 15212 # following values.
Chris@39 15213
Chris@39 15214 _ACEOF
Chris@39 15215
Chris@39 15216 # The following way of writing the cache mishandles newlines in values,
Chris@39 15217 # but we know of no workaround that is simple, portable, and efficient.
Chris@39 15218 # So, we kill variables containing newlines.
Chris@39 15219 # Ultrix sh set writes to stderr and can't be redirected directly,
Chris@39 15220 # and sets the high bit in the cache file unless we assign to the vars.
Chris@39 15221 (
Chris@39 15222 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
Chris@39 15223 eval ac_val=\$$ac_var
Chris@39 15224 case $ac_val in #(
Chris@39 15225 *${as_nl}*)
Chris@39 15226 case $ac_var in #(
Chris@39 15227 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Chris@39 15228 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Chris@39 15229 esac
Chris@39 15230 case $ac_var in #(
Chris@39 15231 _ | IFS | as_nl) ;; #(
Chris@39 15232 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Chris@39 15233 *) { eval $ac_var=; unset $ac_var;} ;;
Chris@39 15234 esac ;;
Chris@39 15235 esac
Chris@39 15236 done
Chris@39 15237
Chris@39 15238 (set) 2>&1 |
Chris@39 15239 case $as_nl`(ac_space=' '; set) 2>&1` in #(
Chris@39 15240 *${as_nl}ac_space=\ *)
Chris@39 15241 # `set' does not quote correctly, so add quotes: double-quote
Chris@39 15242 # substitution turns \\\\ into \\, and sed turns \\ into \.
Chris@39 15243 sed -n \
Chris@39 15244 "s/'/'\\\\''/g;
Chris@39 15245 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Chris@39 15246 ;; #(
Chris@39 15247 *)
Chris@39 15248 # `set' quotes correctly as required by POSIX, so do not add quotes.
Chris@39 15249 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Chris@39 15250 ;;
Chris@39 15251 esac |
Chris@39 15252 sort
Chris@39 15253 ) |
Chris@39 15254 sed '
Chris@39 15255 /^ac_cv_env_/b end
Chris@39 15256 t clear
Chris@39 15257 :clear
Chris@39 15258 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
Chris@39 15259 t end
Chris@39 15260 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
Chris@39 15261 :end' >>confcache
Chris@39 15262 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
Chris@39 15263 if test -w "$cache_file"; then
Chris@39 15264 if test "x$cache_file" != "x/dev/null"; then
Chris@39 15265 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Chris@39 15266 $as_echo "$as_me: updating cache $cache_file" >&6;}
Chris@39 15267 if test ! -f "$cache_file" || test -h "$cache_file"; then
Chris@39 15268 cat confcache >"$cache_file"
Chris@39 15269 else
Chris@39 15270 case $cache_file in #(
Chris@39 15271 */* | ?:*)
Chris@39 15272 mv -f confcache "$cache_file"$$ &&
Chris@39 15273 mv -f "$cache_file"$$ "$cache_file" ;; #(
Chris@39 15274 *)
Chris@39 15275 mv -f confcache "$cache_file" ;;
Chris@39 15276 esac
Chris@39 15277 fi
Chris@39 15278 fi
Chris@39 15279 else
Chris@39 15280 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Chris@39 15281 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Chris@39 15282 fi
Chris@39 15283 fi
Chris@39 15284 rm -f confcache
Chris@39 15285
Chris@39 15286 test "x$prefix" = xNONE && prefix=$ac_default_prefix
Chris@39 15287 # Let make expand exec_prefix.
Chris@39 15288 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
Chris@39 15289
Chris@39 15290 # Transform confdefs.h into DEFS.
Chris@39 15291 # Protect against shell expansion while executing Makefile rules.
Chris@39 15292 # Protect against Makefile macro expansion.
Chris@39 15293 #
Chris@39 15294 # If the first sed substitution is executed (which looks for macros that
Chris@39 15295 # take arguments), then branch to the quote section. Otherwise,
Chris@39 15296 # look for a macro that doesn't take arguments.
Chris@39 15297 ac_script='
Chris@39 15298 :mline
Chris@39 15299 /\\$/{
Chris@39 15300 N
Chris@39 15301 s,\\\n,,
Chris@39 15302 b mline
Chris@39 15303 }
Chris@39 15304 t clear
Chris@39 15305 :clear
Chris@39 15306 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Chris@39 15307 t quote
Chris@39 15308 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Chris@39 15309 t quote
Chris@39 15310 b any
Chris@39 15311 :quote
Chris@39 15312 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
Chris@39 15313 s/\[/\\&/g
Chris@39 15314 s/\]/\\&/g
Chris@39 15315 s/\$/$$/g
Chris@39 15316 H
Chris@39 15317 :any
Chris@39 15318 ${
Chris@39 15319 g
Chris@39 15320 s/^\n//
Chris@39 15321 s/\n/ /g
Chris@39 15322 p
Chris@39 15323 }
Chris@39 15324 '
Chris@39 15325 DEFS=`sed -n "$ac_script" confdefs.h`
Chris@39 15326
Chris@39 15327
Chris@39 15328 ac_libobjs=
Chris@39 15329 ac_ltlibobjs=
Chris@39 15330 U=
Chris@39 15331 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
Chris@39 15332 # 1. Remove the extension, and $U if already installed.
Chris@39 15333 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Chris@39 15334 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Chris@39 15335 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
Chris@39 15336 # will be set to the directory where LIBOBJS objects are built.
Chris@39 15337 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
Chris@39 15338 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Chris@39 15339 done
Chris@39 15340 LIBOBJS=$ac_libobjs
Chris@39 15341
Chris@39 15342 LTLIBOBJS=$ac_ltlibobjs
Chris@39 15343
Chris@39 15344
Chris@39 15345 if test -n "$EXEEXT"; then
Chris@39 15346 am__EXEEXT_TRUE=
Chris@39 15347 am__EXEEXT_FALSE='#'
Chris@39 15348 else
Chris@39 15349 am__EXEEXT_TRUE='#'
Chris@39 15350 am__EXEEXT_FALSE=
Chris@39 15351 fi
Chris@39 15352
Chris@39 15353 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
Chris@39 15354 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
Chris@39 15355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@39 15356 fi
Chris@39 15357 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Chris@39 15358 as_fn_error $? "conditional \"AMDEP\" was never defined.
Chris@39 15359 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@39 15360 fi
Chris@39 15361 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Chris@39 15362 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Chris@39 15363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@39 15364 fi
Chris@39 15365 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
Chris@39 15366 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
Chris@39 15367 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@39 15368 fi
Chris@39 15369
Chris@39 15370 : "${CONFIG_STATUS=./config.status}"
Chris@39 15371 ac_write_fail=0
Chris@39 15372 ac_clean_files_save=$ac_clean_files
Chris@39 15373 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Chris@39 15374 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Chris@39 15375 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Chris@39 15376 as_write_fail=0
Chris@39 15377 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Chris@39 15378 #! $SHELL
Chris@39 15379 # Generated by $as_me.
Chris@39 15380 # Run this file to recreate the current configuration.
Chris@39 15381 # Compiler output produced by configure, useful for debugging
Chris@39 15382 # configure, is in config.log if it exists.
Chris@39 15383
Chris@39 15384 debug=false
Chris@39 15385 ac_cs_recheck=false
Chris@39 15386 ac_cs_silent=false
Chris@39 15387
Chris@39 15388 SHELL=\${CONFIG_SHELL-$SHELL}
Chris@39 15389 export SHELL
Chris@39 15390 _ASEOF
Chris@39 15391 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
Chris@39 15392 ## -------------------- ##
Chris@39 15393 ## M4sh Initialization. ##
Chris@39 15394 ## -------------------- ##
Chris@39 15395
Chris@39 15396 # Be more Bourne compatible
Chris@39 15397 DUALCASE=1; export DUALCASE # for MKS sh
Chris@39 15398 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Chris@39 15399 emulate sh
Chris@39 15400 NULLCMD=:
Chris@39 15401 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Chris@39 15402 # is contrary to our usage. Disable this feature.
Chris@39 15403 alias -g '${1+"$@"}'='"$@"'
Chris@39 15404 setopt NO_GLOB_SUBST
Chris@39 15405 else
Chris@39 15406 case `(set -o) 2>/dev/null` in #(
Chris@39 15407 *posix*) :
Chris@39 15408 set -o posix ;; #(
Chris@39 15409 *) :
Chris@39 15410 ;;
Chris@39 15411 esac
Chris@39 15412 fi
Chris@39 15413
Chris@39 15414
Chris@39 15415 as_nl='
Chris@39 15416 '
Chris@39 15417 export as_nl
Chris@39 15418 # Printing a long string crashes Solaris 7 /usr/bin/printf.
Chris@39 15419 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@39 15420 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@39 15421 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@39 15422 # Prefer a ksh shell builtin over an external printf program on Solaris,
Chris@39 15423 # but without wasting forks for bash or zsh.
Chris@39 15424 if test -z "$BASH_VERSION$ZSH_VERSION" \
Chris@39 15425 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@39 15426 as_echo='print -r --'
Chris@39 15427 as_echo_n='print -rn --'
Chris@39 15428 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@39 15429 as_echo='printf %s\n'
Chris@39 15430 as_echo_n='printf %s'
Chris@39 15431 else
Chris@39 15432 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
Chris@39 15433 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
Chris@39 15434 as_echo_n='/usr/ucb/echo -n'
Chris@39 15435 else
Chris@39 15436 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
Chris@39 15437 as_echo_n_body='eval
Chris@39 15438 arg=$1;
Chris@39 15439 case $arg in #(
Chris@39 15440 *"$as_nl"*)
Chris@39 15441 expr "X$arg" : "X\\(.*\\)$as_nl";
Chris@39 15442 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
Chris@39 15443 esac;
Chris@39 15444 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
Chris@39 15445 '
Chris@39 15446 export as_echo_n_body
Chris@39 15447 as_echo_n='sh -c $as_echo_n_body as_echo'
Chris@39 15448 fi
Chris@39 15449 export as_echo_body
Chris@39 15450 as_echo='sh -c $as_echo_body as_echo'
Chris@39 15451 fi
Chris@39 15452
Chris@39 15453 # The user is always right.
Chris@39 15454 if test "${PATH_SEPARATOR+set}" != set; then
Chris@39 15455 PATH_SEPARATOR=:
Chris@39 15456 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
Chris@39 15457 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
Chris@39 15458 PATH_SEPARATOR=';'
Chris@39 15459 }
Chris@39 15460 fi
Chris@39 15461
Chris@39 15462
Chris@39 15463 # IFS
Chris@39 15464 # We need space, tab and new line, in precisely that order. Quoting is
Chris@39 15465 # there to prevent editors from complaining about space-tab.
Chris@39 15466 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
Chris@39 15467 # splitting by setting IFS to empty value.)
Chris@39 15468 IFS=" "" $as_nl"
Chris@39 15469
Chris@39 15470 # Find who we are. Look in the path if we contain no directory separator.
Chris@39 15471 as_myself=
Chris@39 15472 case $0 in #((
Chris@39 15473 *[\\/]* ) as_myself=$0 ;;
Chris@39 15474 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 15475 for as_dir in $PATH
Chris@39 15476 do
Chris@39 15477 IFS=$as_save_IFS
Chris@39 15478 test -z "$as_dir" && as_dir=.
Chris@39 15479 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
Chris@39 15480 done
Chris@39 15481 IFS=$as_save_IFS
Chris@39 15482
Chris@39 15483 ;;
Chris@39 15484 esac
Chris@39 15485 # We did not find ourselves, most probably we were run as `sh COMMAND'
Chris@39 15486 # in which case we are not to be found in the path.
Chris@39 15487 if test "x$as_myself" = x; then
Chris@39 15488 as_myself=$0
Chris@39 15489 fi
Chris@39 15490 if test ! -f "$as_myself"; then
Chris@39 15491 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Chris@39 15492 exit 1
Chris@39 15493 fi
Chris@39 15494
Chris@39 15495 # Unset variables that we do not need and which cause bugs (e.g. in
Chris@39 15496 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
Chris@39 15497 # suppresses any "Segmentation fault" message there. '((' could
Chris@39 15498 # trigger a bug in pdksh 5.2.14.
Chris@39 15499 for as_var in BASH_ENV ENV MAIL MAILPATH
Chris@39 15500 do eval test x\${$as_var+set} = xset \
Chris@39 15501 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Chris@39 15502 done
Chris@39 15503 PS1='$ '
Chris@39 15504 PS2='> '
Chris@39 15505 PS4='+ '
Chris@39 15506
Chris@39 15507 # NLS nuisances.
Chris@39 15508 LC_ALL=C
Chris@39 15509 export LC_ALL
Chris@39 15510 LANGUAGE=C
Chris@39 15511 export LANGUAGE
Chris@39 15512
Chris@39 15513 # CDPATH.
Chris@39 15514 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@39 15515
Chris@39 15516
Chris@39 15517 # as_fn_error STATUS ERROR [LINENO LOG_FD]
Chris@39 15518 # ----------------------------------------
Chris@39 15519 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
Chris@39 15520 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Chris@39 15521 # script with STATUS, using 1 if that was 0.
Chris@39 15522 as_fn_error ()
Chris@39 15523 {
Chris@39 15524 as_status=$1; test $as_status -eq 0 && as_status=1
Chris@39 15525 if test "$4"; then
Chris@39 15526 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@39 15527 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Chris@39 15528 fi
Chris@39 15529 $as_echo "$as_me: error: $2" >&2
Chris@39 15530 as_fn_exit $as_status
Chris@39 15531 } # as_fn_error
Chris@39 15532
Chris@39 15533
Chris@39 15534 # as_fn_set_status STATUS
Chris@39 15535 # -----------------------
Chris@39 15536 # Set $? to STATUS, without forking.
Chris@39 15537 as_fn_set_status ()
Chris@39 15538 {
Chris@39 15539 return $1
Chris@39 15540 } # as_fn_set_status
Chris@39 15541
Chris@39 15542 # as_fn_exit STATUS
Chris@39 15543 # -----------------
Chris@39 15544 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
Chris@39 15545 as_fn_exit ()
Chris@39 15546 {
Chris@39 15547 set +e
Chris@39 15548 as_fn_set_status $1
Chris@39 15549 exit $1
Chris@39 15550 } # as_fn_exit
Chris@39 15551
Chris@39 15552 # as_fn_unset VAR
Chris@39 15553 # ---------------
Chris@39 15554 # Portably unset VAR.
Chris@39 15555 as_fn_unset ()
Chris@39 15556 {
Chris@39 15557 { eval $1=; unset $1;}
Chris@39 15558 }
Chris@39 15559 as_unset=as_fn_unset
Chris@39 15560 # as_fn_append VAR VALUE
Chris@39 15561 # ----------------------
Chris@39 15562 # Append the text in VALUE to the end of the definition contained in VAR. Take
Chris@39 15563 # advantage of any shell optimizations that allow amortized linear growth over
Chris@39 15564 # repeated appends, instead of the typical quadratic growth present in naive
Chris@39 15565 # implementations.
Chris@39 15566 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
Chris@39 15567 eval 'as_fn_append ()
Chris@39 15568 {
Chris@39 15569 eval $1+=\$2
Chris@39 15570 }'
Chris@39 15571 else
Chris@39 15572 as_fn_append ()
Chris@39 15573 {
Chris@39 15574 eval $1=\$$1\$2
Chris@39 15575 }
Chris@39 15576 fi # as_fn_append
Chris@39 15577
Chris@39 15578 # as_fn_arith ARG...
Chris@39 15579 # ------------------
Chris@39 15580 # Perform arithmetic evaluation on the ARGs, and store the result in the
Chris@39 15581 # global $as_val. Take advantage of shells that can avoid forks. The arguments
Chris@39 15582 # must be portable across $(()) and expr.
Chris@39 15583 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
Chris@39 15584 eval 'as_fn_arith ()
Chris@39 15585 {
Chris@39 15586 as_val=$(( $* ))
Chris@39 15587 }'
Chris@39 15588 else
Chris@39 15589 as_fn_arith ()
Chris@39 15590 {
Chris@39 15591 as_val=`expr "$@" || test $? -eq 1`
Chris@39 15592 }
Chris@39 15593 fi # as_fn_arith
Chris@39 15594
Chris@39 15595
Chris@39 15596 if expr a : '\(a\)' >/dev/null 2>&1 &&
Chris@39 15597 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Chris@39 15598 as_expr=expr
Chris@39 15599 else
Chris@39 15600 as_expr=false
Chris@39 15601 fi
Chris@39 15602
Chris@39 15603 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Chris@39 15604 as_basename=basename
Chris@39 15605 else
Chris@39 15606 as_basename=false
Chris@39 15607 fi
Chris@39 15608
Chris@39 15609 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
Chris@39 15610 as_dirname=dirname
Chris@39 15611 else
Chris@39 15612 as_dirname=false
Chris@39 15613 fi
Chris@39 15614
Chris@39 15615 as_me=`$as_basename -- "$0" ||
Chris@39 15616 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
Chris@39 15617 X"$0" : 'X\(//\)$' \| \
Chris@39 15618 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Chris@39 15619 $as_echo X/"$0" |
Chris@39 15620 sed '/^.*\/\([^/][^/]*\)\/*$/{
Chris@39 15621 s//\1/
Chris@39 15622 q
Chris@39 15623 }
Chris@39 15624 /^X\/\(\/\/\)$/{
Chris@39 15625 s//\1/
Chris@39 15626 q
Chris@39 15627 }
Chris@39 15628 /^X\/\(\/\).*/{
Chris@39 15629 s//\1/
Chris@39 15630 q
Chris@39 15631 }
Chris@39 15632 s/.*/./; q'`
Chris@39 15633
Chris@39 15634 # Avoid depending upon Character Ranges.
Chris@39 15635 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
Chris@39 15636 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
Chris@39 15637 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
Chris@39 15638 as_cr_digits='0123456789'
Chris@39 15639 as_cr_alnum=$as_cr_Letters$as_cr_digits
Chris@39 15640
Chris@39 15641 ECHO_C= ECHO_N= ECHO_T=
Chris@39 15642 case `echo -n x` in #(((((
Chris@39 15643 -n*)
Chris@39 15644 case `echo 'xy\c'` in
Chris@39 15645 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Chris@39 15646 xy) ECHO_C='\c';;
Chris@39 15647 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
Chris@39 15648 ECHO_T=' ';;
Chris@39 15649 esac;;
Chris@39 15650 *)
Chris@39 15651 ECHO_N='-n';;
Chris@39 15652 esac
Chris@39 15653
Chris@39 15654 rm -f conf$$ conf$$.exe conf$$.file
Chris@39 15655 if test -d conf$$.dir; then
Chris@39 15656 rm -f conf$$.dir/conf$$.file
Chris@39 15657 else
Chris@39 15658 rm -f conf$$.dir
Chris@39 15659 mkdir conf$$.dir 2>/dev/null
Chris@39 15660 fi
Chris@39 15661 if (echo >conf$$.file) 2>/dev/null; then
Chris@39 15662 if ln -s conf$$.file conf$$ 2>/dev/null; then
Chris@39 15663 as_ln_s='ln -s'
Chris@39 15664 # ... but there are two gotchas:
Chris@39 15665 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
Chris@39 15666 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Chris@39 15667 # In both cases, we have to default to `cp -p'.
Chris@39 15668 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Chris@39 15669 as_ln_s='cp -p'
Chris@39 15670 elif ln conf$$.file conf$$ 2>/dev/null; then
Chris@39 15671 as_ln_s=ln
Chris@39 15672 else
Chris@39 15673 as_ln_s='cp -p'
Chris@39 15674 fi
Chris@39 15675 else
Chris@39 15676 as_ln_s='cp -p'
Chris@39 15677 fi
Chris@39 15678 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
Chris@39 15679 rmdir conf$$.dir 2>/dev/null
Chris@39 15680
Chris@39 15681
Chris@39 15682 # as_fn_mkdir_p
Chris@39 15683 # -------------
Chris@39 15684 # Create "$as_dir" as a directory, including parents if necessary.
Chris@39 15685 as_fn_mkdir_p ()
Chris@39 15686 {
Chris@39 15687
Chris@39 15688 case $as_dir in #(
Chris@39 15689 -*) as_dir=./$as_dir;;
Chris@39 15690 esac
Chris@39 15691 test -d "$as_dir" || eval $as_mkdir_p || {
Chris@39 15692 as_dirs=
Chris@39 15693 while :; do
Chris@39 15694 case $as_dir in #(
Chris@39 15695 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Chris@39 15696 *) as_qdir=$as_dir;;
Chris@39 15697 esac
Chris@39 15698 as_dirs="'$as_qdir' $as_dirs"
Chris@39 15699 as_dir=`$as_dirname -- "$as_dir" ||
Chris@39 15700 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@39 15701 X"$as_dir" : 'X\(//\)[^/]' \| \
Chris@39 15702 X"$as_dir" : 'X\(//\)$' \| \
Chris@39 15703 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Chris@39 15704 $as_echo X"$as_dir" |
Chris@39 15705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@39 15706 s//\1/
Chris@39 15707 q
Chris@39 15708 }
Chris@39 15709 /^X\(\/\/\)[^/].*/{
Chris@39 15710 s//\1/
Chris@39 15711 q
Chris@39 15712 }
Chris@39 15713 /^X\(\/\/\)$/{
Chris@39 15714 s//\1/
Chris@39 15715 q
Chris@39 15716 }
Chris@39 15717 /^X\(\/\).*/{
Chris@39 15718 s//\1/
Chris@39 15719 q
Chris@39 15720 }
Chris@39 15721 s/.*/./; q'`
Chris@39 15722 test -d "$as_dir" && break
Chris@39 15723 done
Chris@39 15724 test -z "$as_dirs" || eval "mkdir $as_dirs"
Chris@39 15725 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Chris@39 15726
Chris@39 15727
Chris@39 15728 } # as_fn_mkdir_p
Chris@39 15729 if mkdir -p . 2>/dev/null; then
Chris@39 15730 as_mkdir_p='mkdir -p "$as_dir"'
Chris@39 15731 else
Chris@39 15732 test -d ./-p && rmdir ./-p
Chris@39 15733 as_mkdir_p=false
Chris@39 15734 fi
Chris@39 15735
Chris@39 15736 if test -x / >/dev/null 2>&1; then
Chris@39 15737 as_test_x='test -x'
Chris@39 15738 else
Chris@39 15739 if ls -dL / >/dev/null 2>&1; then
Chris@39 15740 as_ls_L_option=L
Chris@39 15741 else
Chris@39 15742 as_ls_L_option=
Chris@39 15743 fi
Chris@39 15744 as_test_x='
Chris@39 15745 eval sh -c '\''
Chris@39 15746 if test -d "$1"; then
Chris@39 15747 test -d "$1/.";
Chris@39 15748 else
Chris@39 15749 case $1 in #(
Chris@39 15750 -*)set "./$1";;
Chris@39 15751 esac;
Chris@39 15752 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Chris@39 15753 ???[sx]*):;;*)false;;esac;fi
Chris@39 15754 '\'' sh
Chris@39 15755 '
Chris@39 15756 fi
Chris@39 15757 as_executable_p=$as_test_x
Chris@39 15758
Chris@39 15759 # Sed expression to map a string onto a valid CPP name.
Chris@39 15760 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Chris@39 15761
Chris@39 15762 # Sed expression to map a string onto a valid variable name.
Chris@39 15763 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Chris@39 15764
Chris@39 15765
Chris@39 15766 exec 6>&1
Chris@39 15767 ## ----------------------------------- ##
Chris@39 15768 ## Main body of $CONFIG_STATUS script. ##
Chris@39 15769 ## ----------------------------------- ##
Chris@39 15770 _ASEOF
Chris@39 15771 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Chris@39 15772
Chris@39 15773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@39 15774 # Save the log message, to keep $0 and so on meaningful, and to
Chris@39 15775 # report actual input values of CONFIG_FILES etc. instead of their
Chris@39 15776 # values after options handling.
Chris@39 15777 ac_log="
Chris@39 15778 This file was extended by PortAudioCpp $as_me 12, which was
Chris@39 15779 generated by GNU Autoconf 2.68. Invocation command line was
Chris@39 15780
Chris@39 15781 CONFIG_FILES = $CONFIG_FILES
Chris@39 15782 CONFIG_HEADERS = $CONFIG_HEADERS
Chris@39 15783 CONFIG_LINKS = $CONFIG_LINKS
Chris@39 15784 CONFIG_COMMANDS = $CONFIG_COMMANDS
Chris@39 15785 $ $0 $@
Chris@39 15786
Chris@39 15787 on `(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@39 15788 "
Chris@39 15789
Chris@39 15790 _ACEOF
Chris@39 15791
Chris@39 15792 case $ac_config_files in *"
Chris@39 15793 "*) set x $ac_config_files; shift; ac_config_files=$*;;
Chris@39 15794 esac
Chris@39 15795
Chris@39 15796
Chris@39 15797
Chris@39 15798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@39 15799 # Files that config.status was made for.
Chris@39 15800 config_files="$ac_config_files"
Chris@39 15801 config_commands="$ac_config_commands"
Chris@39 15802
Chris@39 15803 _ACEOF
Chris@39 15804
Chris@39 15805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@39 15806 ac_cs_usage="\
Chris@39 15807 \`$as_me' instantiates files and other configuration actions
Chris@39 15808 from templates according to the current configuration. Unless the files
Chris@39 15809 and actions are specified as TAGs, all are instantiated by default.
Chris@39 15810
Chris@39 15811 Usage: $0 [OPTION]... [TAG]...
Chris@39 15812
Chris@39 15813 -h, --help print this help, then exit
Chris@39 15814 -V, --version print version number and configuration settings, then exit
Chris@39 15815 --config print configuration, then exit
Chris@39 15816 -q, --quiet, --silent
Chris@39 15817 do not print progress messages
Chris@39 15818 -d, --debug don't remove temporary files
Chris@39 15819 --recheck update $as_me by reconfiguring in the same conditions
Chris@39 15820 --file=FILE[:TEMPLATE]
Chris@39 15821 instantiate the configuration file FILE
Chris@39 15822
Chris@39 15823 Configuration files:
Chris@39 15824 $config_files
Chris@39 15825
Chris@39 15826 Configuration commands:
Chris@39 15827 $config_commands
Chris@39 15828
Chris@39 15829 Report bugs to the package provider."
Chris@39 15830
Chris@39 15831 _ACEOF
Chris@39 15832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@39 15833 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Chris@39 15834 ac_cs_version="\\
Chris@39 15835 PortAudioCpp config.status 12
Chris@39 15836 configured by $0, generated by GNU Autoconf 2.68,
Chris@39 15837 with options \\"\$ac_cs_config\\"
Chris@39 15838
Chris@39 15839 Copyright (C) 2010 Free Software Foundation, Inc.
Chris@39 15840 This config.status script is free software; the Free Software Foundation
Chris@39 15841 gives unlimited permission to copy, distribute and modify it."
Chris@39 15842
Chris@39 15843 ac_pwd='$ac_pwd'
Chris@39 15844 srcdir='$srcdir'
Chris@39 15845 INSTALL='$INSTALL'
Chris@39 15846 MKDIR_P='$MKDIR_P'
Chris@39 15847 AWK='$AWK'
Chris@39 15848 test -n "\$AWK" || AWK=awk
Chris@39 15849 _ACEOF
Chris@39 15850
Chris@39 15851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@39 15852 # The default lists apply if the user does not specify any file.
Chris@39 15853 ac_need_defaults=:
Chris@39 15854 while test $# != 0
Chris@39 15855 do
Chris@39 15856 case $1 in
Chris@39 15857 --*=?*)
Chris@39 15858 ac_option=`expr "X$1" : 'X\([^=]*\)='`
Chris@39 15859 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Chris@39 15860 ac_shift=:
Chris@39 15861 ;;
Chris@39 15862 --*=)
Chris@39 15863 ac_option=`expr "X$1" : 'X\([^=]*\)='`
Chris@39 15864 ac_optarg=
Chris@39 15865 ac_shift=:
Chris@39 15866 ;;
Chris@39 15867 *)
Chris@39 15868 ac_option=$1
Chris@39 15869 ac_optarg=$2
Chris@39 15870 ac_shift=shift
Chris@39 15871 ;;
Chris@39 15872 esac
Chris@39 15873
Chris@39 15874 case $ac_option in
Chris@39 15875 # Handling of the options.
Chris@39 15876 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Chris@39 15877 ac_cs_recheck=: ;;
Chris@39 15878 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Chris@39 15879 $as_echo "$ac_cs_version"; exit ;;
Chris@39 15880 --config | --confi | --conf | --con | --co | --c )
Chris@39 15881 $as_echo "$ac_cs_config"; exit ;;
Chris@39 15882 --debug | --debu | --deb | --de | --d | -d )
Chris@39 15883 debug=: ;;
Chris@39 15884 --file | --fil | --fi | --f )
Chris@39 15885 $ac_shift
Chris@39 15886 case $ac_optarg in
Chris@39 15887 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@39 15888 '') as_fn_error $? "missing file argument" ;;
Chris@39 15889 esac
Chris@39 15890 as_fn_append CONFIG_FILES " '$ac_optarg'"
Chris@39 15891 ac_need_defaults=false;;
Chris@39 15892 --he | --h | --help | --hel | -h )
Chris@39 15893 $as_echo "$ac_cs_usage"; exit ;;
Chris@39 15894 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@39 15895 | -silent | --silent | --silen | --sile | --sil | --si | --s)
Chris@39 15896 ac_cs_silent=: ;;
Chris@39 15897
Chris@39 15898 # This is an error.
Chris@39 15899 -*) as_fn_error $? "unrecognized option: \`$1'
Chris@39 15900 Try \`$0 --help' for more information." ;;
Chris@39 15901
Chris@39 15902 *) as_fn_append ac_config_targets " $1"
Chris@39 15903 ac_need_defaults=false ;;
Chris@39 15904
Chris@39 15905 esac
Chris@39 15906 shift
Chris@39 15907 done
Chris@39 15908
Chris@39 15909 ac_configure_extra_args=
Chris@39 15910
Chris@39 15911 if $ac_cs_silent; then
Chris@39 15912 exec 6>/dev/null
Chris@39 15913 ac_configure_extra_args="$ac_configure_extra_args --silent"
Chris@39 15914 fi
Chris@39 15915
Chris@39 15916 _ACEOF
Chris@39 15917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@39 15918 if \$ac_cs_recheck; then
Chris@39 15919 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Chris@39 15920 shift
Chris@39 15921 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
Chris@39 15922 CONFIG_SHELL='$SHELL'
Chris@39 15923 export CONFIG_SHELL
Chris@39 15924 exec "\$@"
Chris@39 15925 fi
Chris@39 15926
Chris@39 15927 _ACEOF
Chris@39 15928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@39 15929 exec 5>>config.log
Chris@39 15930 {
Chris@39 15931 echo
Chris@39 15932 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
Chris@39 15933 ## Running $as_me. ##
Chris@39 15934 _ASBOX
Chris@39 15935 $as_echo "$ac_log"
Chris@39 15936 } >&5
Chris@39 15937
Chris@39 15938 _ACEOF
Chris@39 15939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@39 15940 #
Chris@39 15941 # INIT-COMMANDS
Chris@39 15942 #
Chris@39 15943 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
Chris@39 15944
Chris@39 15945
Chris@39 15946 # The HP-UX ksh and POSIX shell print the target directory to stdout
Chris@39 15947 # if CDPATH is set.
Chris@39 15948 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@39 15949
Chris@39 15950 sed_quote_subst='$sed_quote_subst'
Chris@39 15951 double_quote_subst='$double_quote_subst'
Chris@39 15952 delay_variable_subst='$delay_variable_subst'
Chris@39 15953 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
Chris@39 15954 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
Chris@39 15955 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
Chris@39 15956 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
Chris@39 15957 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
Chris@39 15958 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
Chris@39 15959 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
Chris@39 15960 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
Chris@39 15961 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
Chris@39 15962 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
Chris@39 15963 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
Chris@39 15964 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
Chris@39 15965 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
Chris@39 15966 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
Chris@39 15967 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
Chris@39 15968 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
Chris@39 15969 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
Chris@39 15970 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
Chris@39 15971 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
Chris@39 15972 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
Chris@39 15973 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
Chris@39 15974 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
Chris@39 15975 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
Chris@39 15976 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
Chris@39 15977 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
Chris@39 15978 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
Chris@39 15979 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
Chris@39 15980 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
Chris@39 15981 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
Chris@39 15982 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
Chris@39 15983 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
Chris@39 15984 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
Chris@39 15985 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
Chris@39 15986 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
Chris@39 15987 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 15988 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
Chris@39 15989 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
Chris@39 15990 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
Chris@39 15991 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
Chris@39 15992 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
Chris@39 15993 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
Chris@39 15994 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
Chris@39 15995 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
Chris@39 15996 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
Chris@39 15997 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
Chris@39 15998 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 15999 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 16000 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 16001 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
Chris@39 16002 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
Chris@39 16003 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
Chris@39 16004 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
Chris@39 16005 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
Chris@39 16006 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
Chris@39 16007 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
Chris@39 16008 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
Chris@39 16009 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
Chris@39 16010 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
Chris@39 16011 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
Chris@39 16012 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
Chris@39 16013 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
Chris@39 16014 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
Chris@39 16015 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
Chris@39 16016 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
Chris@39 16017 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
Chris@39 16018 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
Chris@39 16019 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
Chris@39 16020 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
Chris@39 16021 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
Chris@39 16022 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
Chris@39 16023 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
Chris@39 16024 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
Chris@39 16025 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
Chris@39 16026 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
Chris@39 16027 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 16028 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 16029 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
Chris@39 16030 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
Chris@39 16031 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
Chris@39 16032 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
Chris@39 16033 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
Chris@39 16034 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 16035 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 16036 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 16037 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 16038 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 16039 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 16040 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
Chris@39 16041 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
Chris@39 16042 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
Chris@39 16043 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
Chris@39 16044 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
Chris@39 16045 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
Chris@39 16046 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
Chris@39 16047 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
Chris@39 16048 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
Chris@39 16049 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
Chris@39 16050 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
Chris@39 16051 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
Chris@39 16052 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
Chris@39 16053 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
Chris@39 16054 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 16055 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
Chris@39 16056 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
Chris@39 16057 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 16058 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 16059 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
Chris@39 16060 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
Chris@39 16061 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
Chris@39 16062 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
Chris@39 16063 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
Chris@39 16064 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
Chris@39 16065 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
Chris@39 16066 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
Chris@39 16067 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
Chris@39 16068 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
Chris@39 16069 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
Chris@39 16070 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
Chris@39 16071 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 16072 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 16073 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 16074 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
Chris@39 16075 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
Chris@39 16076 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
Chris@39 16077 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
Chris@39 16078 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
Chris@39 16079 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
Chris@39 16080 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
Chris@39 16081 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
Chris@39 16082 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
Chris@39 16083 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
Chris@39 16084 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
Chris@39 16085 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
Chris@39 16086 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
Chris@39 16087 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
Chris@39 16088 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
Chris@39 16089 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
Chris@39 16090 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16091 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16092 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16093 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16094 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16095 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16096 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16097 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16098 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16099 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16100 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16101 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16102 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16103 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16104 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16105 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16106 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16107 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16108 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16109 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16110 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16111 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16112 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16113 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16114 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16115 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16116 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16117 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16118 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16119 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16120 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16121 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16122 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16123 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16124 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16125 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16126 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16127 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16128 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16129 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16130 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16131 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16132 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16133 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16134 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16135 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16136 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16137 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16138 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 16139
Chris@39 16140 LTCC='$LTCC'
Chris@39 16141 LTCFLAGS='$LTCFLAGS'
Chris@39 16142 compiler='$compiler_DEFAULT'
Chris@39 16143
Chris@39 16144 # A function that is used when there is no print builtin or printf.
Chris@39 16145 func_fallback_echo ()
Chris@39 16146 {
Chris@39 16147 eval 'cat <<_LTECHO_EOF
Chris@39 16148 \$1
Chris@39 16149 _LTECHO_EOF'
Chris@39 16150 }
Chris@39 16151
Chris@39 16152 # Quote evaled strings.
Chris@39 16153 for var in AS \
Chris@39 16154 DLLTOOL \
Chris@39 16155 OBJDUMP \
Chris@39 16156 SHELL \
Chris@39 16157 ECHO \
Chris@39 16158 SED \
Chris@39 16159 GREP \
Chris@39 16160 EGREP \
Chris@39 16161 FGREP \
Chris@39 16162 LD \
Chris@39 16163 NM \
Chris@39 16164 LN_S \
Chris@39 16165 lt_SP2NL \
Chris@39 16166 lt_NL2SP \
Chris@39 16167 reload_flag \
Chris@39 16168 deplibs_check_method \
Chris@39 16169 file_magic_cmd \
Chris@39 16170 file_magic_glob \
Chris@39 16171 want_nocaseglob \
Chris@39 16172 sharedlib_from_linklib_cmd \
Chris@39 16173 AR \
Chris@39 16174 AR_FLAGS \
Chris@39 16175 archiver_list_spec \
Chris@39 16176 STRIP \
Chris@39 16177 RANLIB \
Chris@39 16178 CC \
Chris@39 16179 CFLAGS \
Chris@39 16180 compiler \
Chris@39 16181 lt_cv_sys_global_symbol_pipe \
Chris@39 16182 lt_cv_sys_global_symbol_to_cdecl \
Chris@39 16183 lt_cv_sys_global_symbol_to_c_name_address \
Chris@39 16184 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Chris@39 16185 nm_file_list_spec \
Chris@39 16186 lt_prog_compiler_no_builtin_flag \
Chris@39 16187 lt_prog_compiler_pic \
Chris@39 16188 lt_prog_compiler_wl \
Chris@39 16189 lt_prog_compiler_static \
Chris@39 16190 lt_cv_prog_compiler_c_o \
Chris@39 16191 need_locks \
Chris@39 16192 MANIFEST_TOOL \
Chris@39 16193 DSYMUTIL \
Chris@39 16194 NMEDIT \
Chris@39 16195 LIPO \
Chris@39 16196 OTOOL \
Chris@39 16197 OTOOL64 \
Chris@39 16198 shrext_cmds \
Chris@39 16199 export_dynamic_flag_spec \
Chris@39 16200 whole_archive_flag_spec \
Chris@39 16201 compiler_needs_object \
Chris@39 16202 with_gnu_ld \
Chris@39 16203 allow_undefined_flag \
Chris@39 16204 no_undefined_flag \
Chris@39 16205 hardcode_libdir_flag_spec \
Chris@39 16206 hardcode_libdir_flag_spec_ld \
Chris@39 16207 hardcode_libdir_separator \
Chris@39 16208 exclude_expsyms \
Chris@39 16209 include_expsyms \
Chris@39 16210 file_list_spec \
Chris@39 16211 variables_saved_for_relink \
Chris@39 16212 libname_spec \
Chris@39 16213 library_names_spec \
Chris@39 16214 soname_spec \
Chris@39 16215 install_override_mode \
Chris@39 16216 finish_eval \
Chris@39 16217 old_striplib \
Chris@39 16218 striplib \
Chris@39 16219 compiler_lib_search_dirs \
Chris@39 16220 predep_objects \
Chris@39 16221 postdep_objects \
Chris@39 16222 predeps \
Chris@39 16223 postdeps \
Chris@39 16224 compiler_lib_search_path \
Chris@39 16225 LD_CXX \
Chris@39 16226 reload_flag_CXX \
Chris@39 16227 compiler_CXX \
Chris@39 16228 lt_prog_compiler_no_builtin_flag_CXX \
Chris@39 16229 lt_prog_compiler_pic_CXX \
Chris@39 16230 lt_prog_compiler_wl_CXX \
Chris@39 16231 lt_prog_compiler_static_CXX \
Chris@39 16232 lt_cv_prog_compiler_c_o_CXX \
Chris@39 16233 export_dynamic_flag_spec_CXX \
Chris@39 16234 whole_archive_flag_spec_CXX \
Chris@39 16235 compiler_needs_object_CXX \
Chris@39 16236 with_gnu_ld_CXX \
Chris@39 16237 allow_undefined_flag_CXX \
Chris@39 16238 no_undefined_flag_CXX \
Chris@39 16239 hardcode_libdir_flag_spec_CXX \
Chris@39 16240 hardcode_libdir_flag_spec_ld_CXX \
Chris@39 16241 hardcode_libdir_separator_CXX \
Chris@39 16242 exclude_expsyms_CXX \
Chris@39 16243 include_expsyms_CXX \
Chris@39 16244 file_list_spec_CXX \
Chris@39 16245 compiler_lib_search_dirs_CXX \
Chris@39 16246 predep_objects_CXX \
Chris@39 16247 postdep_objects_CXX \
Chris@39 16248 predeps_CXX \
Chris@39 16249 postdeps_CXX \
Chris@39 16250 compiler_lib_search_path_CXX; do
Chris@39 16251 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Chris@39 16252 *[\\\\\\\`\\"\\\$]*)
Chris@39 16253 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
Chris@39 16254 ;;
Chris@39 16255 *)
Chris@39 16256 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
Chris@39 16257 ;;
Chris@39 16258 esac
Chris@39 16259 done
Chris@39 16260
Chris@39 16261 # Double-quote double-evaled strings.
Chris@39 16262 for var in reload_cmds \
Chris@39 16263 old_postinstall_cmds \
Chris@39 16264 old_postuninstall_cmds \
Chris@39 16265 old_archive_cmds \
Chris@39 16266 extract_expsyms_cmds \
Chris@39 16267 old_archive_from_new_cmds \
Chris@39 16268 old_archive_from_expsyms_cmds \
Chris@39 16269 archive_cmds \
Chris@39 16270 archive_expsym_cmds \
Chris@39 16271 module_cmds \
Chris@39 16272 module_expsym_cmds \
Chris@39 16273 export_symbols_cmds \
Chris@39 16274 prelink_cmds \
Chris@39 16275 postlink_cmds \
Chris@39 16276 postinstall_cmds \
Chris@39 16277 postuninstall_cmds \
Chris@39 16278 finish_cmds \
Chris@39 16279 sys_lib_search_path_spec \
Chris@39 16280 sys_lib_dlsearch_path_spec \
Chris@39 16281 reload_cmds_CXX \
Chris@39 16282 old_archive_cmds_CXX \
Chris@39 16283 old_archive_from_new_cmds_CXX \
Chris@39 16284 old_archive_from_expsyms_cmds_CXX \
Chris@39 16285 archive_cmds_CXX \
Chris@39 16286 archive_expsym_cmds_CXX \
Chris@39 16287 module_cmds_CXX \
Chris@39 16288 module_expsym_cmds_CXX \
Chris@39 16289 export_symbols_cmds_CXX \
Chris@39 16290 prelink_cmds_CXX \
Chris@39 16291 postlink_cmds_CXX; do
Chris@39 16292 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Chris@39 16293 *[\\\\\\\`\\"\\\$]*)
Chris@39 16294 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
Chris@39 16295 ;;
Chris@39 16296 *)
Chris@39 16297 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
Chris@39 16298 ;;
Chris@39 16299 esac
Chris@39 16300 done
Chris@39 16301
Chris@39 16302 ac_aux_dir='$ac_aux_dir'
Chris@39 16303 xsi_shell='$xsi_shell'
Chris@39 16304 lt_shell_append='$lt_shell_append'
Chris@39 16305
Chris@39 16306 # See if we are running on zsh, and set the options which allow our
Chris@39 16307 # commands through without removal of \ escapes INIT.
Chris@39 16308 if test -n "\${ZSH_VERSION+set}" ; then
Chris@39 16309 setopt NO_GLOB_SUBST
Chris@39 16310 fi
Chris@39 16311
Chris@39 16312
Chris@39 16313 PACKAGE='$PACKAGE'
Chris@39 16314 VERSION='$VERSION'
Chris@39 16315 TIMESTAMP='$TIMESTAMP'
Chris@39 16316 RM='$RM'
Chris@39 16317 ofile='$ofile'
Chris@39 16318
Chris@39 16319
Chris@39 16320
Chris@39 16321
Chris@39 16322
Chris@39 16323
Chris@39 16324 _ACEOF
Chris@39 16325
Chris@39 16326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@39 16327
Chris@39 16328 # Handling of arguments.
Chris@39 16329 for ac_config_target in $ac_config_targets
Chris@39 16330 do
Chris@39 16331 case $ac_config_target in
Chris@39 16332 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Chris@39 16333 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Chris@39 16334 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Chris@39 16335 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
Chris@39 16336 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
Chris@39 16337 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
Chris@39 16338 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
Chris@39 16339 "portaudiocpp.pc") CONFIG_FILES="$CONFIG_FILES portaudiocpp.pc" ;;
Chris@39 16340
Chris@39 16341 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Chris@39 16342 esac
Chris@39 16343 done
Chris@39 16344
Chris@39 16345
Chris@39 16346 # If the user did not use the arguments to specify the items to instantiate,
Chris@39 16347 # then the envvar interface is used. Set only those that are not.
Chris@39 16348 # We use the long form for the default assignment because of an extremely
Chris@39 16349 # bizarre bug on SunOS 4.1.3.
Chris@39 16350 if $ac_need_defaults; then
Chris@39 16351 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Chris@39 16352 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
Chris@39 16353 fi
Chris@39 16354
Chris@39 16355 # Have a temporary directory for convenience. Make it in the build tree
Chris@39 16356 # simply because there is no reason against having it here, and in addition,
Chris@39 16357 # creating and moving files from /tmp can sometimes cause problems.
Chris@39 16358 # Hook for its removal unless debugging.
Chris@39 16359 # Note that there is a small window in which the directory will not be cleaned:
Chris@39 16360 # after its creation but before its name has been assigned to `$tmp'.
Chris@39 16361 $debug ||
Chris@39 16362 {
Chris@39 16363 tmp= ac_tmp=
Chris@39 16364 trap 'exit_status=$?
Chris@39 16365 : "${ac_tmp:=$tmp}"
Chris@39 16366 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Chris@39 16367 ' 0
Chris@39 16368 trap 'as_fn_exit 1' 1 2 13 15
Chris@39 16369 }
Chris@39 16370 # Create a (secure) tmp directory for tmp files.
Chris@39 16371
Chris@39 16372 {
Chris@39 16373 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Chris@39 16374 test -d "$tmp"
Chris@39 16375 } ||
Chris@39 16376 {
Chris@39 16377 tmp=./conf$$-$RANDOM
Chris@39 16378 (umask 077 && mkdir "$tmp")
Chris@39 16379 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Chris@39 16380 ac_tmp=$tmp
Chris@39 16381
Chris@39 16382 # Set up the scripts for CONFIG_FILES section.
Chris@39 16383 # No need to generate them if there are no CONFIG_FILES.
Chris@39 16384 # This happens for instance with `./config.status config.h'.
Chris@39 16385 if test -n "$CONFIG_FILES"; then
Chris@39 16386
Chris@39 16387
Chris@39 16388 ac_cr=`echo X | tr X '\015'`
Chris@39 16389 # On cygwin, bash can eat \r inside `` if the user requested igncr.
Chris@39 16390 # But we know of no other shell where ac_cr would be empty at this
Chris@39 16391 # point, so we can use a bashism as a fallback.
Chris@39 16392 if test "x$ac_cr" = x; then
Chris@39 16393 eval ac_cr=\$\'\\r\'
Chris@39 16394 fi
Chris@39 16395 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
Chris@39 16396 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Chris@39 16397 ac_cs_awk_cr='\\r'
Chris@39 16398 else
Chris@39 16399 ac_cs_awk_cr=$ac_cr
Chris@39 16400 fi
Chris@39 16401
Chris@39 16402 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Chris@39 16403 _ACEOF
Chris@39 16404
Chris@39 16405
Chris@39 16406 {
Chris@39 16407 echo "cat >conf$$subs.awk <<_ACEOF" &&
Chris@39 16408 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
Chris@39 16409 echo "_ACEOF"
Chris@39 16410 } >conf$$subs.sh ||
Chris@39 16411 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@39 16412 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Chris@39 16413 ac_delim='%!_!# '
Chris@39 16414 for ac_last_try in false false false false false :; do
Chris@39 16415 . ./conf$$subs.sh ||
Chris@39 16416 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@39 16417
Chris@39 16418 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
Chris@39 16419 if test $ac_delim_n = $ac_delim_num; then
Chris@39 16420 break
Chris@39 16421 elif $ac_last_try; then
Chris@39 16422 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@39 16423 else
Chris@39 16424 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Chris@39 16425 fi
Chris@39 16426 done
Chris@39 16427 rm -f conf$$subs.sh
Chris@39 16428
Chris@39 16429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@39 16430 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Chris@39 16431 _ACEOF
Chris@39 16432 sed -n '
Chris@39 16433 h
Chris@39 16434 s/^/S["/; s/!.*/"]=/
Chris@39 16435 p
Chris@39 16436 g
Chris@39 16437 s/^[^!]*!//
Chris@39 16438 :repl
Chris@39 16439 t repl
Chris@39 16440 s/'"$ac_delim"'$//
Chris@39 16441 t delim
Chris@39 16442 :nl
Chris@39 16443 h
Chris@39 16444 s/\(.\{148\}\)..*/\1/
Chris@39 16445 t more1
Chris@39 16446 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
Chris@39 16447 p
Chris@39 16448 n
Chris@39 16449 b repl
Chris@39 16450 :more1
Chris@39 16451 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
Chris@39 16452 p
Chris@39 16453 g
Chris@39 16454 s/.\{148\}//
Chris@39 16455 t nl
Chris@39 16456 :delim
Chris@39 16457 h
Chris@39 16458 s/\(.\{148\}\)..*/\1/
Chris@39 16459 t more2
Chris@39 16460 s/["\\]/\\&/g; s/^/"/; s/$/"/
Chris@39 16461 p
Chris@39 16462 b
Chris@39 16463 :more2
Chris@39 16464 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
Chris@39 16465 p
Chris@39 16466 g
Chris@39 16467 s/.\{148\}//
Chris@39 16468 t delim
Chris@39 16469 ' <conf$$subs.awk | sed '
Chris@39 16470 /^[^""]/{
Chris@39 16471 N
Chris@39 16472 s/\n//
Chris@39 16473 }
Chris@39 16474 ' >>$CONFIG_STATUS || ac_write_fail=1
Chris@39 16475 rm -f conf$$subs.awk
Chris@39 16476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@39 16477 _ACAWK
Chris@39 16478 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Chris@39 16479 for (key in S) S_is_set[key] = 1
Chris@39 16480 FS = ""
Chris@39 16481
Chris@39 16482 }
Chris@39 16483 {
Chris@39 16484 line = $ 0
Chris@39 16485 nfields = split(line, field, "@")
Chris@39 16486 substed = 0
Chris@39 16487 len = length(field[1])
Chris@39 16488 for (i = 2; i < nfields; i++) {
Chris@39 16489 key = field[i]
Chris@39 16490 keylen = length(key)
Chris@39 16491 if (S_is_set[key]) {
Chris@39 16492 value = S[key]
Chris@39 16493 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
Chris@39 16494 len += length(value) + length(field[++i])
Chris@39 16495 substed = 1
Chris@39 16496 } else
Chris@39 16497 len += 1 + keylen
Chris@39 16498 }
Chris@39 16499
Chris@39 16500 print line
Chris@39 16501 }
Chris@39 16502
Chris@39 16503 _ACAWK
Chris@39 16504 _ACEOF
Chris@39 16505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@39 16506 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
Chris@39 16507 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
Chris@39 16508 else
Chris@39 16509 cat
Chris@39 16510 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
Chris@39 16511 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Chris@39 16512 _ACEOF
Chris@39 16513
Chris@39 16514 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
Chris@39 16515 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Chris@39 16516 # trailing colons and then remove the whole line if VPATH becomes empty
Chris@39 16517 # (actually we leave an empty line to preserve line numbers).
Chris@39 16518 if test "x$srcdir" = x.; then
Chris@39 16519 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
Chris@39 16520 h
Chris@39 16521 s///
Chris@39 16522 s/^/:/
Chris@39 16523 s/[ ]*$/:/
Chris@39 16524 s/:\$(srcdir):/:/g
Chris@39 16525 s/:\${srcdir}:/:/g
Chris@39 16526 s/:@srcdir@:/:/g
Chris@39 16527 s/^:*//
Chris@39 16528 s/:*$//
Chris@39 16529 x
Chris@39 16530 s/\(=[ ]*\).*/\1/
Chris@39 16531 G
Chris@39 16532 s/\n//
Chris@39 16533 s/^[^=]*=[ ]*$//
Chris@39 16534 }'
Chris@39 16535 fi
Chris@39 16536
Chris@39 16537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@39 16538 fi # test -n "$CONFIG_FILES"
Chris@39 16539
Chris@39 16540
Chris@39 16541 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
Chris@39 16542 shift
Chris@39 16543 for ac_tag
Chris@39 16544 do
Chris@39 16545 case $ac_tag in
Chris@39 16546 :[FHLC]) ac_mode=$ac_tag; continue;;
Chris@39 16547 esac
Chris@39 16548 case $ac_mode$ac_tag in
Chris@39 16549 :[FHL]*:*);;
Chris@39 16550 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Chris@39 16551 :[FH]-) ac_tag=-:-;;
Chris@39 16552 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
Chris@39 16553 esac
Chris@39 16554 ac_save_IFS=$IFS
Chris@39 16555 IFS=:
Chris@39 16556 set x $ac_tag
Chris@39 16557 IFS=$ac_save_IFS
Chris@39 16558 shift
Chris@39 16559 ac_file=$1
Chris@39 16560 shift
Chris@39 16561
Chris@39 16562 case $ac_mode in
Chris@39 16563 :L) ac_source=$1;;
Chris@39 16564 :[FH])
Chris@39 16565 ac_file_inputs=
Chris@39 16566 for ac_f
Chris@39 16567 do
Chris@39 16568 case $ac_f in
Chris@39 16569 -) ac_f="$ac_tmp/stdin";;
Chris@39 16570 *) # Look for the file first in the build tree, then in the source tree
Chris@39 16571 # (if the path is not absolute). The absolute path cannot be DOS-style,
Chris@39 16572 # because $ac_f cannot contain `:'.
Chris@39 16573 test -f "$ac_f" ||
Chris@39 16574 case $ac_f in
Chris@39 16575 [\\/$]*) false;;
Chris@39 16576 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
Chris@39 16577 esac ||
Chris@39 16578 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Chris@39 16579 esac
Chris@39 16580 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Chris@39 16581 as_fn_append ac_file_inputs " '$ac_f'"
Chris@39 16582 done
Chris@39 16583
Chris@39 16584 # Let's still pretend it is `configure' which instantiates (i.e., don't
Chris@39 16585 # use $as_me), people would be surprised to read:
Chris@39 16586 # /* config.h. Generated by config.status. */
Chris@39 16587 configure_input='Generated from '`
Chris@39 16588 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
Chris@39 16589 `' by configure.'
Chris@39 16590 if test x"$ac_file" != x-; then
Chris@39 16591 configure_input="$ac_file. $configure_input"
Chris@39 16592 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Chris@39 16593 $as_echo "$as_me: creating $ac_file" >&6;}
Chris@39 16594 fi
Chris@39 16595 # Neutralize special characters interpreted by sed in replacement strings.
Chris@39 16596 case $configure_input in #(
Chris@39 16597 *\&* | *\|* | *\\* )
Chris@39 16598 ac_sed_conf_input=`$as_echo "$configure_input" |
Chris@39 16599 sed 's/[\\\\&|]/\\\\&/g'`;; #(
Chris@39 16600 *) ac_sed_conf_input=$configure_input;;
Chris@39 16601 esac
Chris@39 16602
Chris@39 16603 case $ac_tag in
Chris@39 16604 *:-:* | *:-) cat >"$ac_tmp/stdin" \
Chris@39 16605 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Chris@39 16606 esac
Chris@39 16607 ;;
Chris@39 16608 esac
Chris@39 16609
Chris@39 16610 ac_dir=`$as_dirname -- "$ac_file" ||
Chris@39 16611 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@39 16612 X"$ac_file" : 'X\(//\)[^/]' \| \
Chris@39 16613 X"$ac_file" : 'X\(//\)$' \| \
Chris@39 16614 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Chris@39 16615 $as_echo X"$ac_file" |
Chris@39 16616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@39 16617 s//\1/
Chris@39 16618 q
Chris@39 16619 }
Chris@39 16620 /^X\(\/\/\)[^/].*/{
Chris@39 16621 s//\1/
Chris@39 16622 q
Chris@39 16623 }
Chris@39 16624 /^X\(\/\/\)$/{
Chris@39 16625 s//\1/
Chris@39 16626 q
Chris@39 16627 }
Chris@39 16628 /^X\(\/\).*/{
Chris@39 16629 s//\1/
Chris@39 16630 q
Chris@39 16631 }
Chris@39 16632 s/.*/./; q'`
Chris@39 16633 as_dir="$ac_dir"; as_fn_mkdir_p
Chris@39 16634 ac_builddir=.
Chris@39 16635
Chris@39 16636 case "$ac_dir" in
Chris@39 16637 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@39 16638 *)
Chris@39 16639 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Chris@39 16640 # A ".." for each directory in $ac_dir_suffix.
Chris@39 16641 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Chris@39 16642 case $ac_top_builddir_sub in
Chris@39 16643 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@39 16644 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
Chris@39 16645 esac ;;
Chris@39 16646 esac
Chris@39 16647 ac_abs_top_builddir=$ac_pwd
Chris@39 16648 ac_abs_builddir=$ac_pwd$ac_dir_suffix
Chris@39 16649 # for backward compatibility:
Chris@39 16650 ac_top_builddir=$ac_top_build_prefix
Chris@39 16651
Chris@39 16652 case $srcdir in
Chris@39 16653 .) # We are building in place.
Chris@39 16654 ac_srcdir=.
Chris@39 16655 ac_top_srcdir=$ac_top_builddir_sub
Chris@39 16656 ac_abs_top_srcdir=$ac_pwd ;;
Chris@39 16657 [\\/]* | ?:[\\/]* ) # Absolute name.
Chris@39 16658 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@39 16659 ac_top_srcdir=$srcdir
Chris@39 16660 ac_abs_top_srcdir=$srcdir ;;
Chris@39 16661 *) # Relative name.
Chris@39 16662 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
Chris@39 16663 ac_top_srcdir=$ac_top_build_prefix$srcdir
Chris@39 16664 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Chris@39 16665 esac
Chris@39 16666 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Chris@39 16667
Chris@39 16668
Chris@39 16669 case $ac_mode in
Chris@39 16670 :F)
Chris@39 16671 #
Chris@39 16672 # CONFIG_FILE
Chris@39 16673 #
Chris@39 16674
Chris@39 16675 case $INSTALL in
Chris@39 16676 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Chris@39 16677 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Chris@39 16678 esac
Chris@39 16679 ac_MKDIR_P=$MKDIR_P
Chris@39 16680 case $MKDIR_P in
Chris@39 16681 [\\/$]* | ?:[\\/]* ) ;;
Chris@39 16682 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
Chris@39 16683 esac
Chris@39 16684 _ACEOF
Chris@39 16685
Chris@39 16686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@39 16687 # If the template does not know about datarootdir, expand it.
Chris@39 16688 # FIXME: This hack should be removed a few years after 2.60.
Chris@39 16689 ac_datarootdir_hack=; ac_datarootdir_seen=
Chris@39 16690 ac_sed_dataroot='
Chris@39 16691 /datarootdir/ {
Chris@39 16692 p
Chris@39 16693 q
Chris@39 16694 }
Chris@39 16695 /@datadir@/p
Chris@39 16696 /@docdir@/p
Chris@39 16697 /@infodir@/p
Chris@39 16698 /@localedir@/p
Chris@39 16699 /@mandir@/p'
Chris@39 16700 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Chris@39 16701 *datarootdir*) ac_datarootdir_seen=yes;;
Chris@39 16702 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Chris@39 16703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
Chris@39 16704 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Chris@39 16705 _ACEOF
Chris@39 16706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@39 16707 ac_datarootdir_hack='
Chris@39 16708 s&@datadir@&$datadir&g
Chris@39 16709 s&@docdir@&$docdir&g
Chris@39 16710 s&@infodir@&$infodir&g
Chris@39 16711 s&@localedir@&$localedir&g
Chris@39 16712 s&@mandir@&$mandir&g
Chris@39 16713 s&\\\${datarootdir}&$datarootdir&g' ;;
Chris@39 16714 esac
Chris@39 16715 _ACEOF
Chris@39 16716
Chris@39 16717 # Neutralize VPATH when `$srcdir' = `.'.
Chris@39 16718 # Shell code in configure.ac might set extrasub.
Chris@39 16719 # FIXME: do we really want to maintain this feature?
Chris@39 16720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@39 16721 ac_sed_extra="$ac_vpsub
Chris@39 16722 $extrasub
Chris@39 16723 _ACEOF
Chris@39 16724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@39 16725 :t
Chris@39 16726 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Chris@39 16727 s|@configure_input@|$ac_sed_conf_input|;t t
Chris@39 16728 s&@top_builddir@&$ac_top_builddir_sub&;t t
Chris@39 16729 s&@top_build_prefix@&$ac_top_build_prefix&;t t
Chris@39 16730 s&@srcdir@&$ac_srcdir&;t t
Chris@39 16731 s&@abs_srcdir@&$ac_abs_srcdir&;t t
Chris@39 16732 s&@top_srcdir@&$ac_top_srcdir&;t t
Chris@39 16733 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
Chris@39 16734 s&@builddir@&$ac_builddir&;t t
Chris@39 16735 s&@abs_builddir@&$ac_abs_builddir&;t t
Chris@39 16736 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Chris@39 16737 s&@INSTALL@&$ac_INSTALL&;t t
Chris@39 16738 s&@MKDIR_P@&$ac_MKDIR_P&;t t
Chris@39 16739 $ac_datarootdir_hack
Chris@39 16740 "
Chris@39 16741 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
Chris@39 16742 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@39 16743
Chris@39 16744 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Chris@39 16745 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
Chris@39 16746 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
Chris@39 16747 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Chris@39 16748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Chris@39 16749 which seems to be undefined. Please make sure it is defined" >&5
Chris@39 16750 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Chris@39 16751 which seems to be undefined. Please make sure it is defined" >&2;}
Chris@39 16752
Chris@39 16753 rm -f "$ac_tmp/stdin"
Chris@39 16754 case $ac_file in
Chris@39 16755 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
Chris@39 16756 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Chris@39 16757 esac \
Chris@39 16758 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@39 16759 ;;
Chris@39 16760
Chris@39 16761
Chris@39 16762 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Chris@39 16763 $as_echo "$as_me: executing $ac_file commands" >&6;}
Chris@39 16764 ;;
Chris@39 16765 esac
Chris@39 16766
Chris@39 16767
Chris@39 16768 case $ac_file$ac_mode in
Chris@39 16769 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
Chris@39 16770 # Autoconf 2.62 quotes --file arguments for eval, but not when files
Chris@39 16771 # are listed without --file. Let's play safe and only enable the eval
Chris@39 16772 # if we detect the quoting.
Chris@39 16773 case $CONFIG_FILES in
Chris@39 16774 *\'*) eval set x "$CONFIG_FILES" ;;
Chris@39 16775 *) set x $CONFIG_FILES ;;
Chris@39 16776 esac
Chris@39 16777 shift
Chris@39 16778 for mf
Chris@39 16779 do
Chris@39 16780 # Strip MF so we end up with the name of the file.
Chris@39 16781 mf=`echo "$mf" | sed -e 's/:.*$//'`
Chris@39 16782 # Check whether this is an Automake generated Makefile or not.
Chris@39 16783 # We used to match only the files named `Makefile.in', but
Chris@39 16784 # some people rename them; so instead we look at the file content.
Chris@39 16785 # Grep'ing the first line is not enough: some people post-process
Chris@39 16786 # each Makefile.in and add a new line on top of each file to say so.
Chris@39 16787 # Grep'ing the whole file is not good either: AIX grep has a line
Chris@39 16788 # limit of 2048, but all sed's we know have understand at least 4000.
Chris@39 16789 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
Chris@39 16790 dirpart=`$as_dirname -- "$mf" ||
Chris@39 16791 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@39 16792 X"$mf" : 'X\(//\)[^/]' \| \
Chris@39 16793 X"$mf" : 'X\(//\)$' \| \
Chris@39 16794 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Chris@39 16795 $as_echo X"$mf" |
Chris@39 16796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@39 16797 s//\1/
Chris@39 16798 q
Chris@39 16799 }
Chris@39 16800 /^X\(\/\/\)[^/].*/{
Chris@39 16801 s//\1/
Chris@39 16802 q
Chris@39 16803 }
Chris@39 16804 /^X\(\/\/\)$/{
Chris@39 16805 s//\1/
Chris@39 16806 q
Chris@39 16807 }
Chris@39 16808 /^X\(\/\).*/{
Chris@39 16809 s//\1/
Chris@39 16810 q
Chris@39 16811 }
Chris@39 16812 s/.*/./; q'`
Chris@39 16813 else
Chris@39 16814 continue
Chris@39 16815 fi
Chris@39 16816 # Extract the definition of DEPDIR, am__include, and am__quote
Chris@39 16817 # from the Makefile without running `make'.
Chris@39 16818 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
Chris@39 16819 test -z "$DEPDIR" && continue
Chris@39 16820 am__include=`sed -n 's/^am__include = //p' < "$mf"`
Chris@39 16821 test -z "am__include" && continue
Chris@39 16822 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Chris@39 16823 # When using ansi2knr, U may be empty or an underscore; expand it
Chris@39 16824 U=`sed -n 's/^U = //p' < "$mf"`
Chris@39 16825 # Find all dependency output files, they are included files with
Chris@39 16826 # $(DEPDIR) in their names. We invoke sed twice because it is the
Chris@39 16827 # simplest approach to changing $(DEPDIR) to its actual value in the
Chris@39 16828 # expansion.
Chris@39 16829 for file in `sed -n "
Chris@39 16830 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Chris@39 16831 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
Chris@39 16832 # Make sure the directory exists.
Chris@39 16833 test -f "$dirpart/$file" && continue
Chris@39 16834 fdir=`$as_dirname -- "$file" ||
Chris@39 16835 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@39 16836 X"$file" : 'X\(//\)[^/]' \| \
Chris@39 16837 X"$file" : 'X\(//\)$' \| \
Chris@39 16838 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Chris@39 16839 $as_echo X"$file" |
Chris@39 16840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@39 16841 s//\1/
Chris@39 16842 q
Chris@39 16843 }
Chris@39 16844 /^X\(\/\/\)[^/].*/{
Chris@39 16845 s//\1/
Chris@39 16846 q
Chris@39 16847 }
Chris@39 16848 /^X\(\/\/\)$/{
Chris@39 16849 s//\1/
Chris@39 16850 q
Chris@39 16851 }
Chris@39 16852 /^X\(\/\).*/{
Chris@39 16853 s//\1/
Chris@39 16854 q
Chris@39 16855 }
Chris@39 16856 s/.*/./; q'`
Chris@39 16857 as_dir=$dirpart/$fdir; as_fn_mkdir_p
Chris@39 16858 # echo "creating $dirpart/$file"
Chris@39 16859 echo '# dummy' > "$dirpart/$file"
Chris@39 16860 done
Chris@39 16861 done
Chris@39 16862 }
Chris@39 16863 ;;
Chris@39 16864 "libtool":C)
Chris@39 16865
Chris@39 16866 # See if we are running on zsh, and set the options which allow our
Chris@39 16867 # commands through without removal of \ escapes.
Chris@39 16868 if test -n "${ZSH_VERSION+set}" ; then
Chris@39 16869 setopt NO_GLOB_SUBST
Chris@39 16870 fi
Chris@39 16871
Chris@39 16872 cfgfile="${ofile}T"
Chris@39 16873 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
Chris@39 16874 $RM "$cfgfile"
Chris@39 16875
Chris@39 16876 cat <<_LT_EOF >> "$cfgfile"
Chris@39 16877 #! $SHELL
Chris@39 16878
Chris@39 16879 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
Chris@39 16880 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
Chris@39 16881 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
Chris@39 16882 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
Chris@39 16883 #
Chris@39 16884 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
Chris@39 16885 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
Chris@39 16886 # Inc.
Chris@39 16887 # Written by Gordon Matzigkeit, 1996
Chris@39 16888 #
Chris@39 16889 # This file is part of GNU Libtool.
Chris@39 16890 #
Chris@39 16891 # GNU Libtool is free software; you can redistribute it and/or
Chris@39 16892 # modify it under the terms of the GNU General Public License as
Chris@39 16893 # published by the Free Software Foundation; either version 2 of
Chris@39 16894 # the License, or (at your option) any later version.
Chris@39 16895 #
Chris@39 16896 # As a special exception to the GNU General Public License,
Chris@39 16897 # if you distribute this file as part of a program or library that
Chris@39 16898 # is built using GNU Libtool, you may include this file under the
Chris@39 16899 # same distribution terms that you use for the rest of that program.
Chris@39 16900 #
Chris@39 16901 # GNU Libtool is distributed in the hope that it will be useful,
Chris@39 16902 # but WITHOUT ANY WARRANTY; without even the implied warranty of
Chris@39 16903 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Chris@39 16904 # GNU General Public License for more details.
Chris@39 16905 #
Chris@39 16906 # You should have received a copy of the GNU General Public License
Chris@39 16907 # along with GNU Libtool; see the file COPYING. If not, a copy
Chris@39 16908 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
Chris@39 16909 # obtained by writing to the Free Software Foundation, Inc.,
Chris@39 16910 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Chris@39 16911
Chris@39 16912
Chris@39 16913 # The names of the tagged configurations supported by this script.
Chris@39 16914 available_tags="CXX "
Chris@39 16915
Chris@39 16916 # ### BEGIN LIBTOOL CONFIG
Chris@39 16917
Chris@39 16918 # Assembler program.
Chris@39 16919 AS=$lt_AS
Chris@39 16920
Chris@39 16921 # DLL creation program.
Chris@39 16922 DLLTOOL=$lt_DLLTOOL
Chris@39 16923
Chris@39 16924 # Object dumper program.
Chris@39 16925 OBJDUMP=$lt_OBJDUMP
Chris@39 16926
Chris@39 16927 # Which release of libtool.m4 was used?
Chris@39 16928 macro_version=$macro_version
Chris@39 16929 macro_revision=$macro_revision
Chris@39 16930
Chris@39 16931 # Whether or not to build shared libraries.
Chris@39 16932 build_libtool_libs=$enable_shared
Chris@39 16933
Chris@39 16934 # Whether or not to build static libraries.
Chris@39 16935 build_old_libs=$enable_static
Chris@39 16936
Chris@39 16937 # What type of objects to build.
Chris@39 16938 pic_mode=$pic_mode
Chris@39 16939
Chris@39 16940 # Whether or not to optimize for fast installation.
Chris@39 16941 fast_install=$enable_fast_install
Chris@39 16942
Chris@39 16943 # Shell to use when invoking shell scripts.
Chris@39 16944 SHELL=$lt_SHELL
Chris@39 16945
Chris@39 16946 # An echo program that protects backslashes.
Chris@39 16947 ECHO=$lt_ECHO
Chris@39 16948
Chris@39 16949 # The host system.
Chris@39 16950 host_alias=$host_alias
Chris@39 16951 host=$host
Chris@39 16952 host_os=$host_os
Chris@39 16953
Chris@39 16954 # The build system.
Chris@39 16955 build_alias=$build_alias
Chris@39 16956 build=$build
Chris@39 16957 build_os=$build_os
Chris@39 16958
Chris@39 16959 # A sed program that does not truncate output.
Chris@39 16960 SED=$lt_SED
Chris@39 16961
Chris@39 16962 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
Chris@39 16963 Xsed="\$SED -e 1s/^X//"
Chris@39 16964
Chris@39 16965 # A grep program that handles long lines.
Chris@39 16966 GREP=$lt_GREP
Chris@39 16967
Chris@39 16968 # An ERE matcher.
Chris@39 16969 EGREP=$lt_EGREP
Chris@39 16970
Chris@39 16971 # A literal string matcher.
Chris@39 16972 FGREP=$lt_FGREP
Chris@39 16973
Chris@39 16974 # A BSD- or MS-compatible name lister.
Chris@39 16975 NM=$lt_NM
Chris@39 16976
Chris@39 16977 # Whether we need soft or hard links.
Chris@39 16978 LN_S=$lt_LN_S
Chris@39 16979
Chris@39 16980 # What is the maximum length of a command?
Chris@39 16981 max_cmd_len=$max_cmd_len
Chris@39 16982
Chris@39 16983 # Object file suffix (normally "o").
Chris@39 16984 objext=$ac_objext
Chris@39 16985
Chris@39 16986 # Executable file suffix (normally "").
Chris@39 16987 exeext=$exeext
Chris@39 16988
Chris@39 16989 # whether the shell understands "unset".
Chris@39 16990 lt_unset=$lt_unset
Chris@39 16991
Chris@39 16992 # turn spaces into newlines.
Chris@39 16993 SP2NL=$lt_lt_SP2NL
Chris@39 16994
Chris@39 16995 # turn newlines into spaces.
Chris@39 16996 NL2SP=$lt_lt_NL2SP
Chris@39 16997
Chris@39 16998 # convert \$build file names to \$host format.
Chris@39 16999 to_host_file_cmd=$lt_cv_to_host_file_cmd
Chris@39 17000
Chris@39 17001 # convert \$build files to toolchain format.
Chris@39 17002 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Chris@39 17003
Chris@39 17004 # Method to check whether dependent libraries are shared objects.
Chris@39 17005 deplibs_check_method=$lt_deplibs_check_method
Chris@39 17006
Chris@39 17007 # Command to use when deplibs_check_method = "file_magic".
Chris@39 17008 file_magic_cmd=$lt_file_magic_cmd
Chris@39 17009
Chris@39 17010 # How to find potential files when deplibs_check_method = "file_magic".
Chris@39 17011 file_magic_glob=$lt_file_magic_glob
Chris@39 17012
Chris@39 17013 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
Chris@39 17014 want_nocaseglob=$lt_want_nocaseglob
Chris@39 17015
Chris@39 17016 # Command to associate shared and link libraries.
Chris@39 17017 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
Chris@39 17018
Chris@39 17019 # The archiver.
Chris@39 17020 AR=$lt_AR
Chris@39 17021
Chris@39 17022 # Flags to create an archive.
Chris@39 17023 AR_FLAGS=$lt_AR_FLAGS
Chris@39 17024
Chris@39 17025 # How to feed a file listing to the archiver.
Chris@39 17026 archiver_list_spec=$lt_archiver_list_spec
Chris@39 17027
Chris@39 17028 # A symbol stripping program.
Chris@39 17029 STRIP=$lt_STRIP
Chris@39 17030
Chris@39 17031 # Commands used to install an old-style archive.
Chris@39 17032 RANLIB=$lt_RANLIB
Chris@39 17033 old_postinstall_cmds=$lt_old_postinstall_cmds
Chris@39 17034 old_postuninstall_cmds=$lt_old_postuninstall_cmds
Chris@39 17035
Chris@39 17036 # Whether to use a lock for old archive extraction.
Chris@39 17037 lock_old_archive_extraction=$lock_old_archive_extraction
Chris@39 17038
Chris@39 17039 # A C compiler.
Chris@39 17040 LTCC=$lt_CC
Chris@39 17041
Chris@39 17042 # LTCC compiler flags.
Chris@39 17043 LTCFLAGS=$lt_CFLAGS
Chris@39 17044
Chris@39 17045 # Take the output of nm and produce a listing of raw symbols and C names.
Chris@39 17046 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
Chris@39 17047
Chris@39 17048 # Transform the output of nm in a proper C declaration.
Chris@39 17049 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
Chris@39 17050
Chris@39 17051 # Transform the output of nm in a C name address pair.
Chris@39 17052 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
Chris@39 17053
Chris@39 17054 # Transform the output of nm in a C name address pair when lib prefix is needed.
Chris@39 17055 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
Chris@39 17056
Chris@39 17057 # Specify filename containing input files for \$NM.
Chris@39 17058 nm_file_list_spec=$lt_nm_file_list_spec
Chris@39 17059
Chris@39 17060 # The root where to search for dependent libraries,and in which our libraries should be installed.
Chris@39 17061 lt_sysroot=$lt_sysroot
Chris@39 17062
Chris@39 17063 # The name of the directory that contains temporary libtool files.
Chris@39 17064 objdir=$objdir
Chris@39 17065
Chris@39 17066 # Used to examine libraries when file_magic_cmd begins with "file".
Chris@39 17067 MAGIC_CMD=$MAGIC_CMD
Chris@39 17068
Chris@39 17069 # Must we lock files when doing compilation?
Chris@39 17070 need_locks=$lt_need_locks
Chris@39 17071
Chris@39 17072 # Manifest tool.
Chris@39 17073 MANIFEST_TOOL=$lt_MANIFEST_TOOL
Chris@39 17074
Chris@39 17075 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
Chris@39 17076 DSYMUTIL=$lt_DSYMUTIL
Chris@39 17077
Chris@39 17078 # Tool to change global to local symbols on Mac OS X.
Chris@39 17079 NMEDIT=$lt_NMEDIT
Chris@39 17080
Chris@39 17081 # Tool to manipulate fat objects and archives on Mac OS X.
Chris@39 17082 LIPO=$lt_LIPO
Chris@39 17083
Chris@39 17084 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
Chris@39 17085 OTOOL=$lt_OTOOL
Chris@39 17086
Chris@39 17087 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
Chris@39 17088 OTOOL64=$lt_OTOOL64
Chris@39 17089
Chris@39 17090 # Old archive suffix (normally "a").
Chris@39 17091 libext=$libext
Chris@39 17092
Chris@39 17093 # Shared library suffix (normally ".so").
Chris@39 17094 shrext_cmds=$lt_shrext_cmds
Chris@39 17095
Chris@39 17096 # The commands to extract the exported symbol list from a shared archive.
Chris@39 17097 extract_expsyms_cmds=$lt_extract_expsyms_cmds
Chris@39 17098
Chris@39 17099 # Variables whose values should be saved in libtool wrapper scripts and
Chris@39 17100 # restored at link time.
Chris@39 17101 variables_saved_for_relink=$lt_variables_saved_for_relink
Chris@39 17102
Chris@39 17103 # Do we need the "lib" prefix for modules?
Chris@39 17104 need_lib_prefix=$need_lib_prefix
Chris@39 17105
Chris@39 17106 # Do we need a version for libraries?
Chris@39 17107 need_version=$need_version
Chris@39 17108
Chris@39 17109 # Library versioning type.
Chris@39 17110 version_type=$version_type
Chris@39 17111
Chris@39 17112 # Shared library runtime path variable.
Chris@39 17113 runpath_var=$runpath_var
Chris@39 17114
Chris@39 17115 # Shared library path variable.
Chris@39 17116 shlibpath_var=$shlibpath_var
Chris@39 17117
Chris@39 17118 # Is shlibpath searched before the hard-coded library search path?
Chris@39 17119 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
Chris@39 17120
Chris@39 17121 # Format of library name prefix.
Chris@39 17122 libname_spec=$lt_libname_spec
Chris@39 17123
Chris@39 17124 # List of archive names. First name is the real one, the rest are links.
Chris@39 17125 # The last name is the one that the linker finds with -lNAME
Chris@39 17126 library_names_spec=$lt_library_names_spec
Chris@39 17127
Chris@39 17128 # The coded name of the library, if different from the real name.
Chris@39 17129 soname_spec=$lt_soname_spec
Chris@39 17130
Chris@39 17131 # Permission mode override for installation of shared libraries.
Chris@39 17132 install_override_mode=$lt_install_override_mode
Chris@39 17133
Chris@39 17134 # Command to use after installation of a shared archive.
Chris@39 17135 postinstall_cmds=$lt_postinstall_cmds
Chris@39 17136
Chris@39 17137 # Command to use after uninstallation of a shared archive.
Chris@39 17138 postuninstall_cmds=$lt_postuninstall_cmds
Chris@39 17139
Chris@39 17140 # Commands used to finish a libtool library installation in a directory.
Chris@39 17141 finish_cmds=$lt_finish_cmds
Chris@39 17142
Chris@39 17143 # As "finish_cmds", except a single script fragment to be evaled but
Chris@39 17144 # not shown.
Chris@39 17145 finish_eval=$lt_finish_eval
Chris@39 17146
Chris@39 17147 # Whether we should hardcode library paths into libraries.
Chris@39 17148 hardcode_into_libs=$hardcode_into_libs
Chris@39 17149
Chris@39 17150 # Compile-time system search path for libraries.
Chris@39 17151 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
Chris@39 17152
Chris@39 17153 # Run-time system search path for libraries.
Chris@39 17154 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
Chris@39 17155
Chris@39 17156 # Whether dlopen is supported.
Chris@39 17157 dlopen_support=$enable_dlopen
Chris@39 17158
Chris@39 17159 # Whether dlopen of programs is supported.
Chris@39 17160 dlopen_self=$enable_dlopen_self
Chris@39 17161
Chris@39 17162 # Whether dlopen of statically linked programs is supported.
Chris@39 17163 dlopen_self_static=$enable_dlopen_self_static
Chris@39 17164
Chris@39 17165 # Commands to strip libraries.
Chris@39 17166 old_striplib=$lt_old_striplib
Chris@39 17167 striplib=$lt_striplib
Chris@39 17168
Chris@39 17169
Chris@39 17170 # The linker used to build libraries.
Chris@39 17171 LD=$lt_LD
Chris@39 17172
Chris@39 17173 # How to create reloadable object files.
Chris@39 17174 reload_flag=$lt_reload_flag
Chris@39 17175 reload_cmds=$lt_reload_cmds
Chris@39 17176
Chris@39 17177 # Commands used to build an old-style archive.
Chris@39 17178 old_archive_cmds=$lt_old_archive_cmds
Chris@39 17179
Chris@39 17180 # A language specific compiler.
Chris@39 17181 CC=$lt_compiler
Chris@39 17182
Chris@39 17183 # Is the compiler the GNU compiler?
Chris@39 17184 with_gcc=$GCC
Chris@39 17185
Chris@39 17186 # Compiler flag to turn off builtin functions.
Chris@39 17187 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
Chris@39 17188
Chris@39 17189 # Additional compiler flags for building library objects.
Chris@39 17190 pic_flag=$lt_lt_prog_compiler_pic
Chris@39 17191
Chris@39 17192 # How to pass a linker flag through the compiler.
Chris@39 17193 wl=$lt_lt_prog_compiler_wl
Chris@39 17194
Chris@39 17195 # Compiler flag to prevent dynamic linking.
Chris@39 17196 link_static_flag=$lt_lt_prog_compiler_static
Chris@39 17197
Chris@39 17198 # Does compiler simultaneously support -c and -o options?
Chris@39 17199 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
Chris@39 17200
Chris@39 17201 # Whether or not to add -lc for building shared libraries.
Chris@39 17202 build_libtool_need_lc=$archive_cmds_need_lc
Chris@39 17203
Chris@39 17204 # Whether or not to disallow shared libs when runtime libs are static.
Chris@39 17205 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
Chris@39 17206
Chris@39 17207 # Compiler flag to allow reflexive dlopens.
Chris@39 17208 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
Chris@39 17209
Chris@39 17210 # Compiler flag to generate shared objects directly from archives.
Chris@39 17211 whole_archive_flag_spec=$lt_whole_archive_flag_spec
Chris@39 17212
Chris@39 17213 # Whether the compiler copes with passing no objects directly.
Chris@39 17214 compiler_needs_object=$lt_compiler_needs_object
Chris@39 17215
Chris@39 17216 # Create an old-style archive from a shared archive.
Chris@39 17217 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
Chris@39 17218
Chris@39 17219 # Create a temporary old-style archive to link instead of a shared archive.
Chris@39 17220 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
Chris@39 17221
Chris@39 17222 # Commands used to build a shared archive.
Chris@39 17223 archive_cmds=$lt_archive_cmds
Chris@39 17224 archive_expsym_cmds=$lt_archive_expsym_cmds
Chris@39 17225
Chris@39 17226 # Commands used to build a loadable module if different from building
Chris@39 17227 # a shared archive.
Chris@39 17228 module_cmds=$lt_module_cmds
Chris@39 17229 module_expsym_cmds=$lt_module_expsym_cmds
Chris@39 17230
Chris@39 17231 # Whether we are building with GNU ld or not.
Chris@39 17232 with_gnu_ld=$lt_with_gnu_ld
Chris@39 17233
Chris@39 17234 # Flag that allows shared libraries with undefined symbols to be built.
Chris@39 17235 allow_undefined_flag=$lt_allow_undefined_flag
Chris@39 17236
Chris@39 17237 # Flag that enforces no undefined symbols.
Chris@39 17238 no_undefined_flag=$lt_no_undefined_flag
Chris@39 17239
Chris@39 17240 # Flag to hardcode \$libdir into a binary during linking.
Chris@39 17241 # This must work even if \$libdir does not exist
Chris@39 17242 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
Chris@39 17243
Chris@39 17244 # If ld is used when linking, flag to hardcode \$libdir into a binary
Chris@39 17245 # during linking. This must work even if \$libdir does not exist.
Chris@39 17246 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
Chris@39 17247
Chris@39 17248 # Whether we need a single "-rpath" flag with a separated argument.
Chris@39 17249 hardcode_libdir_separator=$lt_hardcode_libdir_separator
Chris@39 17250
Chris@39 17251 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
Chris@39 17252 # DIR into the resulting binary.
Chris@39 17253 hardcode_direct=$hardcode_direct
Chris@39 17254
Chris@39 17255 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
Chris@39 17256 # DIR into the resulting binary and the resulting library dependency is
Chris@39 17257 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
Chris@39 17258 # library is relocated.
Chris@39 17259 hardcode_direct_absolute=$hardcode_direct_absolute
Chris@39 17260
Chris@39 17261 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
Chris@39 17262 # into the resulting binary.
Chris@39 17263 hardcode_minus_L=$hardcode_minus_L
Chris@39 17264
Chris@39 17265 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
Chris@39 17266 # into the resulting binary.
Chris@39 17267 hardcode_shlibpath_var=$hardcode_shlibpath_var
Chris@39 17268
Chris@39 17269 # Set to "yes" if building a shared library automatically hardcodes DIR
Chris@39 17270 # into the library and all subsequent libraries and executables linked
Chris@39 17271 # against it.
Chris@39 17272 hardcode_automatic=$hardcode_automatic
Chris@39 17273
Chris@39 17274 # Set to yes if linker adds runtime paths of dependent libraries
Chris@39 17275 # to runtime path list.
Chris@39 17276 inherit_rpath=$inherit_rpath
Chris@39 17277
Chris@39 17278 # Whether libtool must link a program against all its dependency libraries.
Chris@39 17279 link_all_deplibs=$link_all_deplibs
Chris@39 17280
Chris@39 17281 # Set to "yes" if exported symbols are required.
Chris@39 17282 always_export_symbols=$always_export_symbols
Chris@39 17283
Chris@39 17284 # The commands to list exported symbols.
Chris@39 17285 export_symbols_cmds=$lt_export_symbols_cmds
Chris@39 17286
Chris@39 17287 # Symbols that should not be listed in the preloaded symbols.
Chris@39 17288 exclude_expsyms=$lt_exclude_expsyms
Chris@39 17289
Chris@39 17290 # Symbols that must always be exported.
Chris@39 17291 include_expsyms=$lt_include_expsyms
Chris@39 17292
Chris@39 17293 # Commands necessary for linking programs (against libraries) with templates.
Chris@39 17294 prelink_cmds=$lt_prelink_cmds
Chris@39 17295
Chris@39 17296 # Commands necessary for finishing linking programs.
Chris@39 17297 postlink_cmds=$lt_postlink_cmds
Chris@39 17298
Chris@39 17299 # Specify filename containing input files.
Chris@39 17300 file_list_spec=$lt_file_list_spec
Chris@39 17301
Chris@39 17302 # How to hardcode a shared library path into an executable.
Chris@39 17303 hardcode_action=$hardcode_action
Chris@39 17304
Chris@39 17305 # The directories searched by this compiler when creating a shared library.
Chris@39 17306 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
Chris@39 17307
Chris@39 17308 # Dependencies to place before and after the objects being linked to
Chris@39 17309 # create a shared library.
Chris@39 17310 predep_objects=$lt_predep_objects
Chris@39 17311 postdep_objects=$lt_postdep_objects
Chris@39 17312 predeps=$lt_predeps
Chris@39 17313 postdeps=$lt_postdeps
Chris@39 17314
Chris@39 17315 # The library search path used internally by the compiler when linking
Chris@39 17316 # a shared library.
Chris@39 17317 compiler_lib_search_path=$lt_compiler_lib_search_path
Chris@39 17318
Chris@39 17319 # ### END LIBTOOL CONFIG
Chris@39 17320
Chris@39 17321 _LT_EOF
Chris@39 17322
Chris@39 17323 case $host_os in
Chris@39 17324 aix3*)
Chris@39 17325 cat <<\_LT_EOF >> "$cfgfile"
Chris@39 17326 # AIX sometimes has problems with the GCC collect2 program. For some
Chris@39 17327 # reason, if we set the COLLECT_NAMES environment variable, the problems
Chris@39 17328 # vanish in a puff of smoke.
Chris@39 17329 if test "X${COLLECT_NAMES+set}" != Xset; then
Chris@39 17330 COLLECT_NAMES=
Chris@39 17331 export COLLECT_NAMES
Chris@39 17332 fi
Chris@39 17333 _LT_EOF
Chris@39 17334 ;;
Chris@39 17335 esac
Chris@39 17336
Chris@39 17337
Chris@39 17338 ltmain="$ac_aux_dir/ltmain.sh"
Chris@39 17339
Chris@39 17340
Chris@39 17341 # We use sed instead of cat because bash on DJGPP gets confused if
Chris@39 17342 # if finds mixed CR/LF and LF-only lines. Since sed operates in
Chris@39 17343 # text mode, it properly converts lines to CR/LF. This bash problem
Chris@39 17344 # is reportedly fixed, but why not run on old versions too?
Chris@39 17345 sed '$q' "$ltmain" >> "$cfgfile" \
Chris@39 17346 || (rm -f "$cfgfile"; exit 1)
Chris@39 17347
Chris@39 17348 if test x"$xsi_shell" = xyes; then
Chris@39 17349 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
Chris@39 17350 func_dirname ()\
Chris@39 17351 {\
Chris@39 17352 \ case ${1} in\
Chris@39 17353 \ */*) func_dirname_result="${1%/*}${2}" ;;\
Chris@39 17354 \ * ) func_dirname_result="${3}" ;;\
Chris@39 17355 \ esac\
Chris@39 17356 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
Chris@39 17357 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@39 17358 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@39 17359 test 0 -eq $? || _lt_function_replace_fail=:
Chris@39 17360
Chris@39 17361
Chris@39 17362 sed -e '/^func_basename ()$/,/^} # func_basename /c\
Chris@39 17363 func_basename ()\
Chris@39 17364 {\
Chris@39 17365 \ func_basename_result="${1##*/}"\
Chris@39 17366 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
Chris@39 17367 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@39 17368 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@39 17369 test 0 -eq $? || _lt_function_replace_fail=:
Chris@39 17370
Chris@39 17371
Chris@39 17372 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
Chris@39 17373 func_dirname_and_basename ()\
Chris@39 17374 {\
Chris@39 17375 \ case ${1} in\
Chris@39 17376 \ */*) func_dirname_result="${1%/*}${2}" ;;\
Chris@39 17377 \ * ) func_dirname_result="${3}" ;;\
Chris@39 17378 \ esac\
Chris@39 17379 \ func_basename_result="${1##*/}"\
Chris@39 17380 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
Chris@39 17381 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@39 17382 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@39 17383 test 0 -eq $? || _lt_function_replace_fail=:
Chris@39 17384
Chris@39 17385
Chris@39 17386 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
Chris@39 17387 func_stripname ()\
Chris@39 17388 {\
Chris@39 17389 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
Chris@39 17390 \ # positional parameters, so assign one to ordinary parameter first.\
Chris@39 17391 \ func_stripname_result=${3}\
Chris@39 17392 \ func_stripname_result=${func_stripname_result#"${1}"}\
Chris@39 17393 \ func_stripname_result=${func_stripname_result%"${2}"}\
Chris@39 17394 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
Chris@39 17395 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@39 17396 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@39 17397 test 0 -eq $? || _lt_function_replace_fail=:
Chris@39 17398
Chris@39 17399
Chris@39 17400 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
Chris@39 17401 func_split_long_opt ()\
Chris@39 17402 {\
Chris@39 17403 \ func_split_long_opt_name=${1%%=*}\
Chris@39 17404 \ func_split_long_opt_arg=${1#*=}\
Chris@39 17405 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
Chris@39 17406 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@39 17407 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@39 17408 test 0 -eq $? || _lt_function_replace_fail=:
Chris@39 17409
Chris@39 17410
Chris@39 17411 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
Chris@39 17412 func_split_short_opt ()\
Chris@39 17413 {\
Chris@39 17414 \ func_split_short_opt_arg=${1#??}\
Chris@39 17415 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
Chris@39 17416 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
Chris@39 17417 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@39 17418 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@39 17419 test 0 -eq $? || _lt_function_replace_fail=:
Chris@39 17420
Chris@39 17421
Chris@39 17422 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
Chris@39 17423 func_lo2o ()\
Chris@39 17424 {\
Chris@39 17425 \ case ${1} in\
Chris@39 17426 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
Chris@39 17427 \ *) func_lo2o_result=${1} ;;\
Chris@39 17428 \ esac\
Chris@39 17429 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
Chris@39 17430 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@39 17431 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@39 17432 test 0 -eq $? || _lt_function_replace_fail=:
Chris@39 17433
Chris@39 17434
Chris@39 17435 sed -e '/^func_xform ()$/,/^} # func_xform /c\
Chris@39 17436 func_xform ()\
Chris@39 17437 {\
Chris@39 17438 func_xform_result=${1%.*}.lo\
Chris@39 17439 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
Chris@39 17440 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@39 17441 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@39 17442 test 0 -eq $? || _lt_function_replace_fail=:
Chris@39 17443
Chris@39 17444
Chris@39 17445 sed -e '/^func_arith ()$/,/^} # func_arith /c\
Chris@39 17446 func_arith ()\
Chris@39 17447 {\
Chris@39 17448 func_arith_result=$(( $* ))\
Chris@39 17449 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
Chris@39 17450 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@39 17451 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@39 17452 test 0 -eq $? || _lt_function_replace_fail=:
Chris@39 17453
Chris@39 17454
Chris@39 17455 sed -e '/^func_len ()$/,/^} # func_len /c\
Chris@39 17456 func_len ()\
Chris@39 17457 {\
Chris@39 17458 func_len_result=${#1}\
Chris@39 17459 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
Chris@39 17460 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@39 17461 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@39 17462 test 0 -eq $? || _lt_function_replace_fail=:
Chris@39 17463
Chris@39 17464 fi
Chris@39 17465
Chris@39 17466 if test x"$lt_shell_append" = xyes; then
Chris@39 17467 sed -e '/^func_append ()$/,/^} # func_append /c\
Chris@39 17468 func_append ()\
Chris@39 17469 {\
Chris@39 17470 eval "${1}+=\\${2}"\
Chris@39 17471 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
Chris@39 17472 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@39 17473 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@39 17474 test 0 -eq $? || _lt_function_replace_fail=:
Chris@39 17475
Chris@39 17476
Chris@39 17477 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
Chris@39 17478 func_append_quoted ()\
Chris@39 17479 {\
Chris@39 17480 \ func_quote_for_eval "${2}"\
Chris@39 17481 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
Chris@39 17482 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
Chris@39 17483 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@39 17484 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@39 17485 test 0 -eq $? || _lt_function_replace_fail=:
Chris@39 17486
Chris@39 17487
Chris@39 17488 # Save a `func_append' function call where possible by direct use of '+='
Chris@39 17489 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
Chris@39 17490 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@39 17491 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@39 17492 test 0 -eq $? || _lt_function_replace_fail=:
Chris@39 17493 else
Chris@39 17494 # Save a `func_append' function call even when '+=' is not available
Chris@39 17495 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
Chris@39 17496 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@39 17497 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@39 17498 test 0 -eq $? || _lt_function_replace_fail=:
Chris@39 17499 fi
Chris@39 17500
Chris@39 17501 if test x"$_lt_function_replace_fail" = x":"; then
Chris@39 17502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
Chris@39 17503 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
Chris@39 17504 fi
Chris@39 17505
Chris@39 17506
Chris@39 17507 mv -f "$cfgfile" "$ofile" ||
Chris@39 17508 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
Chris@39 17509 chmod +x "$ofile"
Chris@39 17510
Chris@39 17511
Chris@39 17512 cat <<_LT_EOF >> "$ofile"
Chris@39 17513
Chris@39 17514 # ### BEGIN LIBTOOL TAG CONFIG: CXX
Chris@39 17515
Chris@39 17516 # The linker used to build libraries.
Chris@39 17517 LD=$lt_LD_CXX
Chris@39 17518
Chris@39 17519 # How to create reloadable object files.
Chris@39 17520 reload_flag=$lt_reload_flag_CXX
Chris@39 17521 reload_cmds=$lt_reload_cmds_CXX
Chris@39 17522
Chris@39 17523 # Commands used to build an old-style archive.
Chris@39 17524 old_archive_cmds=$lt_old_archive_cmds_CXX
Chris@39 17525
Chris@39 17526 # A language specific compiler.
Chris@39 17527 CC=$lt_compiler_CXX
Chris@39 17528
Chris@39 17529 # Is the compiler the GNU compiler?
Chris@39 17530 with_gcc=$GCC_CXX
Chris@39 17531
Chris@39 17532 # Compiler flag to turn off builtin functions.
Chris@39 17533 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
Chris@39 17534
Chris@39 17535 # Additional compiler flags for building library objects.
Chris@39 17536 pic_flag=$lt_lt_prog_compiler_pic_CXX
Chris@39 17537
Chris@39 17538 # How to pass a linker flag through the compiler.
Chris@39 17539 wl=$lt_lt_prog_compiler_wl_CXX
Chris@39 17540
Chris@39 17541 # Compiler flag to prevent dynamic linking.
Chris@39 17542 link_static_flag=$lt_lt_prog_compiler_static_CXX
Chris@39 17543
Chris@39 17544 # Does compiler simultaneously support -c and -o options?
Chris@39 17545 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
Chris@39 17546
Chris@39 17547 # Whether or not to add -lc for building shared libraries.
Chris@39 17548 build_libtool_need_lc=$archive_cmds_need_lc_CXX
Chris@39 17549
Chris@39 17550 # Whether or not to disallow shared libs when runtime libs are static.
Chris@39 17551 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
Chris@39 17552
Chris@39 17553 # Compiler flag to allow reflexive dlopens.
Chris@39 17554 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
Chris@39 17555
Chris@39 17556 # Compiler flag to generate shared objects directly from archives.
Chris@39 17557 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
Chris@39 17558
Chris@39 17559 # Whether the compiler copes with passing no objects directly.
Chris@39 17560 compiler_needs_object=$lt_compiler_needs_object_CXX
Chris@39 17561
Chris@39 17562 # Create an old-style archive from a shared archive.
Chris@39 17563 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
Chris@39 17564
Chris@39 17565 # Create a temporary old-style archive to link instead of a shared archive.
Chris@39 17566 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
Chris@39 17567
Chris@39 17568 # Commands used to build a shared archive.
Chris@39 17569 archive_cmds=$lt_archive_cmds_CXX
Chris@39 17570 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
Chris@39 17571
Chris@39 17572 # Commands used to build a loadable module if different from building
Chris@39 17573 # a shared archive.
Chris@39 17574 module_cmds=$lt_module_cmds_CXX
Chris@39 17575 module_expsym_cmds=$lt_module_expsym_cmds_CXX
Chris@39 17576
Chris@39 17577 # Whether we are building with GNU ld or not.
Chris@39 17578 with_gnu_ld=$lt_with_gnu_ld_CXX
Chris@39 17579
Chris@39 17580 # Flag that allows shared libraries with undefined symbols to be built.
Chris@39 17581 allow_undefined_flag=$lt_allow_undefined_flag_CXX
Chris@39 17582
Chris@39 17583 # Flag that enforces no undefined symbols.
Chris@39 17584 no_undefined_flag=$lt_no_undefined_flag_CXX
Chris@39 17585
Chris@39 17586 # Flag to hardcode \$libdir into a binary during linking.
Chris@39 17587 # This must work even if \$libdir does not exist
Chris@39 17588 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
Chris@39 17589
Chris@39 17590 # If ld is used when linking, flag to hardcode \$libdir into a binary
Chris@39 17591 # during linking. This must work even if \$libdir does not exist.
Chris@39 17592 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
Chris@39 17593
Chris@39 17594 # Whether we need a single "-rpath" flag with a separated argument.
Chris@39 17595 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
Chris@39 17596
Chris@39 17597 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
Chris@39 17598 # DIR into the resulting binary.
Chris@39 17599 hardcode_direct=$hardcode_direct_CXX
Chris@39 17600
Chris@39 17601 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
Chris@39 17602 # DIR into the resulting binary and the resulting library dependency is
Chris@39 17603 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
Chris@39 17604 # library is relocated.
Chris@39 17605 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
Chris@39 17606
Chris@39 17607 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
Chris@39 17608 # into the resulting binary.
Chris@39 17609 hardcode_minus_L=$hardcode_minus_L_CXX
Chris@39 17610
Chris@39 17611 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
Chris@39 17612 # into the resulting binary.
Chris@39 17613 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
Chris@39 17614
Chris@39 17615 # Set to "yes" if building a shared library automatically hardcodes DIR
Chris@39 17616 # into the library and all subsequent libraries and executables linked
Chris@39 17617 # against it.
Chris@39 17618 hardcode_automatic=$hardcode_automatic_CXX
Chris@39 17619
Chris@39 17620 # Set to yes if linker adds runtime paths of dependent libraries
Chris@39 17621 # to runtime path list.
Chris@39 17622 inherit_rpath=$inherit_rpath_CXX
Chris@39 17623
Chris@39 17624 # Whether libtool must link a program against all its dependency libraries.
Chris@39 17625 link_all_deplibs=$link_all_deplibs_CXX
Chris@39 17626
Chris@39 17627 # Set to "yes" if exported symbols are required.
Chris@39 17628 always_export_symbols=$always_export_symbols_CXX
Chris@39 17629
Chris@39 17630 # The commands to list exported symbols.
Chris@39 17631 export_symbols_cmds=$lt_export_symbols_cmds_CXX
Chris@39 17632
Chris@39 17633 # Symbols that should not be listed in the preloaded symbols.
Chris@39 17634 exclude_expsyms=$lt_exclude_expsyms_CXX
Chris@39 17635
Chris@39 17636 # Symbols that must always be exported.
Chris@39 17637 include_expsyms=$lt_include_expsyms_CXX
Chris@39 17638
Chris@39 17639 # Commands necessary for linking programs (against libraries) with templates.
Chris@39 17640 prelink_cmds=$lt_prelink_cmds_CXX
Chris@39 17641
Chris@39 17642 # Commands necessary for finishing linking programs.
Chris@39 17643 postlink_cmds=$lt_postlink_cmds_CXX
Chris@39 17644
Chris@39 17645 # Specify filename containing input files.
Chris@39 17646 file_list_spec=$lt_file_list_spec_CXX
Chris@39 17647
Chris@39 17648 # How to hardcode a shared library path into an executable.
Chris@39 17649 hardcode_action=$hardcode_action_CXX
Chris@39 17650
Chris@39 17651 # The directories searched by this compiler when creating a shared library.
Chris@39 17652 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
Chris@39 17653
Chris@39 17654 # Dependencies to place before and after the objects being linked to
Chris@39 17655 # create a shared library.
Chris@39 17656 predep_objects=$lt_predep_objects_CXX
Chris@39 17657 postdep_objects=$lt_postdep_objects_CXX
Chris@39 17658 predeps=$lt_predeps_CXX
Chris@39 17659 postdeps=$lt_postdeps_CXX
Chris@39 17660
Chris@39 17661 # The library search path used internally by the compiler when linking
Chris@39 17662 # a shared library.
Chris@39 17663 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
Chris@39 17664
Chris@39 17665 # ### END LIBTOOL TAG CONFIG: CXX
Chris@39 17666 _LT_EOF
Chris@39 17667
Chris@39 17668 ;;
Chris@39 17669
Chris@39 17670 esac
Chris@39 17671 done # for ac_tag
Chris@39 17672
Chris@39 17673
Chris@39 17674 as_fn_exit 0
Chris@39 17675 _ACEOF
Chris@39 17676 ac_clean_files=$ac_clean_files_save
Chris@39 17677
Chris@39 17678 test $ac_write_fail = 0 ||
Chris@39 17679 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Chris@39 17680
Chris@39 17681
Chris@39 17682 # configure is writing to config.log, and then calls config.status.
Chris@39 17683 # config.status does its own redirection, appending to config.log.
Chris@39 17684 # Unfortunately, on DOS this fails, as config.log is still kept open
Chris@39 17685 # by configure, so config.status won't be able to write to it; its
Chris@39 17686 # output is simply discarded. So we exec the FD to /dev/null,
Chris@39 17687 # effectively closing config.log, so it can be properly (re)opened and
Chris@39 17688 # appended to by config.status. When coming back to configure, we
Chris@39 17689 # need to make the FD available again.
Chris@39 17690 if test "$no_create" != yes; then
Chris@39 17691 ac_cs_success=:
Chris@39 17692 ac_config_status_args=
Chris@39 17693 test "$silent" = yes &&
Chris@39 17694 ac_config_status_args="$ac_config_status_args --quiet"
Chris@39 17695 exec 5>/dev/null
Chris@39 17696 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Chris@39 17697 exec 5>>config.log
Chris@39 17698 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
Chris@39 17699 # would make configure fail if this is the last instruction.
Chris@39 17700 $ac_cs_success || as_fn_exit 1
Chris@39 17701 fi
Chris@39 17702 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Chris@39 17703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Chris@39 17704 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Chris@39 17705 fi
Chris@39 17706