annotate src/libsamplerate-0.1.9/configure @ 41:481f5f8c5634

Current libsamplerate source
author Chris Cannam
date Tue, 18 Oct 2016 13:24:45 +0100
parents
children
rev   line source
Chris@41 1 #! /bin/sh
Chris@41 2 # Guess values for system-dependent variables and create Makefiles.
Chris@41 3 # Generated by GNU Autoconf 2.69 for libsamplerate 0.1.9.
Chris@41 4 #
Chris@41 5 # Report bugs to <erikd@mega-nerd.com>.
Chris@41 6 #
Chris@41 7 #
Chris@41 8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Chris@41 9 #
Chris@41 10 #
Chris@41 11 # This configure script is free software; the Free Software Foundation
Chris@41 12 # gives unlimited permission to copy, distribute and modify it.
Chris@41 13 ## -------------------- ##
Chris@41 14 ## M4sh Initialization. ##
Chris@41 15 ## -------------------- ##
Chris@41 16
Chris@41 17 # Be more Bourne compatible
Chris@41 18 DUALCASE=1; export DUALCASE # for MKS sh
Chris@41 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Chris@41 20 emulate sh
Chris@41 21 NULLCMD=:
Chris@41 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Chris@41 23 # is contrary to our usage. Disable this feature.
Chris@41 24 alias -g '${1+"$@"}'='"$@"'
Chris@41 25 setopt NO_GLOB_SUBST
Chris@41 26 else
Chris@41 27 case `(set -o) 2>/dev/null` in #(
Chris@41 28 *posix*) :
Chris@41 29 set -o posix ;; #(
Chris@41 30 *) :
Chris@41 31 ;;
Chris@41 32 esac
Chris@41 33 fi
Chris@41 34
Chris@41 35
Chris@41 36 as_nl='
Chris@41 37 '
Chris@41 38 export as_nl
Chris@41 39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
Chris@41 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@41 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@41 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@41 43 # Prefer a ksh shell builtin over an external printf program on Solaris,
Chris@41 44 # but without wasting forks for bash or zsh.
Chris@41 45 if test -z "$BASH_VERSION$ZSH_VERSION" \
Chris@41 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@41 47 as_echo='print -r --'
Chris@41 48 as_echo_n='print -rn --'
Chris@41 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@41 50 as_echo='printf %s\n'
Chris@41 51 as_echo_n='printf %s'
Chris@41 52 else
Chris@41 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
Chris@41 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
Chris@41 55 as_echo_n='/usr/ucb/echo -n'
Chris@41 56 else
Chris@41 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
Chris@41 58 as_echo_n_body='eval
Chris@41 59 arg=$1;
Chris@41 60 case $arg in #(
Chris@41 61 *"$as_nl"*)
Chris@41 62 expr "X$arg" : "X\\(.*\\)$as_nl";
Chris@41 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
Chris@41 64 esac;
Chris@41 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
Chris@41 66 '
Chris@41 67 export as_echo_n_body
Chris@41 68 as_echo_n='sh -c $as_echo_n_body as_echo'
Chris@41 69 fi
Chris@41 70 export as_echo_body
Chris@41 71 as_echo='sh -c $as_echo_body as_echo'
Chris@41 72 fi
Chris@41 73
Chris@41 74 # The user is always right.
Chris@41 75 if test "${PATH_SEPARATOR+set}" != set; then
Chris@41 76 PATH_SEPARATOR=:
Chris@41 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
Chris@41 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
Chris@41 79 PATH_SEPARATOR=';'
Chris@41 80 }
Chris@41 81 fi
Chris@41 82
Chris@41 83
Chris@41 84 # IFS
Chris@41 85 # We need space, tab and new line, in precisely that order. Quoting is
Chris@41 86 # there to prevent editors from complaining about space-tab.
Chris@41 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
Chris@41 88 # splitting by setting IFS to empty value.)
Chris@41 89 IFS=" "" $as_nl"
Chris@41 90
Chris@41 91 # Find who we are. Look in the path if we contain no directory separator.
Chris@41 92 as_myself=
Chris@41 93 case $0 in #((
Chris@41 94 *[\\/]* ) as_myself=$0 ;;
Chris@41 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 96 for as_dir in $PATH
Chris@41 97 do
Chris@41 98 IFS=$as_save_IFS
Chris@41 99 test -z "$as_dir" && as_dir=.
Chris@41 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
Chris@41 101 done
Chris@41 102 IFS=$as_save_IFS
Chris@41 103
Chris@41 104 ;;
Chris@41 105 esac
Chris@41 106 # We did not find ourselves, most probably we were run as `sh COMMAND'
Chris@41 107 # in which case we are not to be found in the path.
Chris@41 108 if test "x$as_myself" = x; then
Chris@41 109 as_myself=$0
Chris@41 110 fi
Chris@41 111 if test ! -f "$as_myself"; then
Chris@41 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Chris@41 113 exit 1
Chris@41 114 fi
Chris@41 115
Chris@41 116 # Unset variables that we do not need and which cause bugs (e.g. in
Chris@41 117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
Chris@41 118 # suppresses any "Segmentation fault" message there. '((' could
Chris@41 119 # trigger a bug in pdksh 5.2.14.
Chris@41 120 for as_var in BASH_ENV ENV MAIL MAILPATH
Chris@41 121 do eval test x\${$as_var+set} = xset \
Chris@41 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Chris@41 123 done
Chris@41 124 PS1='$ '
Chris@41 125 PS2='> '
Chris@41 126 PS4='+ '
Chris@41 127
Chris@41 128 # NLS nuisances.
Chris@41 129 LC_ALL=C
Chris@41 130 export LC_ALL
Chris@41 131 LANGUAGE=C
Chris@41 132 export LANGUAGE
Chris@41 133
Chris@41 134 # CDPATH.
Chris@41 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@41 136
Chris@41 137 # Use a proper internal environment variable to ensure we don't fall
Chris@41 138 # into an infinite loop, continuously re-executing ourselves.
Chris@41 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
Chris@41 140 _as_can_reexec=no; export _as_can_reexec;
Chris@41 141 # We cannot yet assume a decent shell, so we have to provide a
Chris@41 142 # neutralization value for shells without unset; and this also
Chris@41 143 # works around shells that cannot unset nonexistent variables.
Chris@41 144 # Preserve -v and -x to the replacement shell.
Chris@41 145 BASH_ENV=/dev/null
Chris@41 146 ENV=/dev/null
Chris@41 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
Chris@41 148 case $- in # ((((
Chris@41 149 *v*x* | *x*v* ) as_opts=-vx ;;
Chris@41 150 *v* ) as_opts=-v ;;
Chris@41 151 *x* ) as_opts=-x ;;
Chris@41 152 * ) as_opts= ;;
Chris@41 153 esac
Chris@41 154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
Chris@41 155 # Admittedly, this is quite paranoid, since all the known shells bail
Chris@41 156 # out after a failed `exec'.
Chris@41 157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
Chris@41 158 as_fn_exit 255
Chris@41 159 fi
Chris@41 160 # We don't want this to propagate to other subprocesses.
Chris@41 161 { _as_can_reexec=; unset _as_can_reexec;}
Chris@41 162 if test "x$CONFIG_SHELL" = x; then
Chris@41 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
Chris@41 164 emulate sh
Chris@41 165 NULLCMD=:
Chris@41 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
Chris@41 167 # is contrary to our usage. Disable this feature.
Chris@41 168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
Chris@41 169 setopt NO_GLOB_SUBST
Chris@41 170 else
Chris@41 171 case \`(set -o) 2>/dev/null\` in #(
Chris@41 172 *posix*) :
Chris@41 173 set -o posix ;; #(
Chris@41 174 *) :
Chris@41 175 ;;
Chris@41 176 esac
Chris@41 177 fi
Chris@41 178 "
Chris@41 179 as_required="as_fn_return () { (exit \$1); }
Chris@41 180 as_fn_success () { as_fn_return 0; }
Chris@41 181 as_fn_failure () { as_fn_return 1; }
Chris@41 182 as_fn_ret_success () { return 0; }
Chris@41 183 as_fn_ret_failure () { return 1; }
Chris@41 184
Chris@41 185 exitcode=0
Chris@41 186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
Chris@41 187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
Chris@41 188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
Chris@41 189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
Chris@41 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
Chris@41 191
Chris@41 192 else
Chris@41 193 exitcode=1; echo positional parameters were not saved.
Chris@41 194 fi
Chris@41 195 test x\$exitcode = x0 || exit 1
Chris@41 196 test -x / || exit 1"
Chris@41 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
Chris@41 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
Chris@41 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
Chris@41 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
Chris@41 201 test \$(( 1 + 1 )) = 2 || exit 1
Chris@41 202
Chris@41 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
Chris@41 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@41 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
Chris@41 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
Chris@41 207 PATH=/empty FPATH=/empty; export PATH FPATH
Chris@41 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
Chris@41 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
Chris@41 210 if (eval "$as_required") 2>/dev/null; then :
Chris@41 211 as_have_required=yes
Chris@41 212 else
Chris@41 213 as_have_required=no
Chris@41 214 fi
Chris@41 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
Chris@41 216
Chris@41 217 else
Chris@41 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 219 as_found=false
Chris@41 220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Chris@41 221 do
Chris@41 222 IFS=$as_save_IFS
Chris@41 223 test -z "$as_dir" && as_dir=.
Chris@41 224 as_found=:
Chris@41 225 case $as_dir in #(
Chris@41 226 /*)
Chris@41 227 for as_base in sh bash ksh sh5; do
Chris@41 228 # Try only shells that exist, to save several forks.
Chris@41 229 as_shell=$as_dir/$as_base
Chris@41 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
Chris@41 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
Chris@41 232 CONFIG_SHELL=$as_shell as_have_required=yes
Chris@41 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
Chris@41 234 break 2
Chris@41 235 fi
Chris@41 236 fi
Chris@41 237 done;;
Chris@41 238 esac
Chris@41 239 as_found=false
Chris@41 240 done
Chris@41 241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
Chris@41 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
Chris@41 243 CONFIG_SHELL=$SHELL as_have_required=yes
Chris@41 244 fi; }
Chris@41 245 IFS=$as_save_IFS
Chris@41 246
Chris@41 247
Chris@41 248 if test "x$CONFIG_SHELL" != x; then :
Chris@41 249 export CONFIG_SHELL
Chris@41 250 # We cannot yet assume a decent shell, so we have to provide a
Chris@41 251 # neutralization value for shells without unset; and this also
Chris@41 252 # works around shells that cannot unset nonexistent variables.
Chris@41 253 # Preserve -v and -x to the replacement shell.
Chris@41 254 BASH_ENV=/dev/null
Chris@41 255 ENV=/dev/null
Chris@41 256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
Chris@41 257 case $- in # ((((
Chris@41 258 *v*x* | *x*v* ) as_opts=-vx ;;
Chris@41 259 *v* ) as_opts=-v ;;
Chris@41 260 *x* ) as_opts=-x ;;
Chris@41 261 * ) as_opts= ;;
Chris@41 262 esac
Chris@41 263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
Chris@41 264 # Admittedly, this is quite paranoid, since all the known shells bail
Chris@41 265 # out after a failed `exec'.
Chris@41 266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
Chris@41 267 exit 255
Chris@41 268 fi
Chris@41 269
Chris@41 270 if test x$as_have_required = xno; then :
Chris@41 271 $as_echo "$0: This script requires a shell more modern than all"
Chris@41 272 $as_echo "$0: the shells that I found on your system."
Chris@41 273 if test x${ZSH_VERSION+set} = xset ; then
Chris@41 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
Chris@41 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
Chris@41 276 else
Chris@41 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
Chris@41 278 $0: erikd@mega-nerd.com about your system, including any
Chris@41 279 $0: error possibly output before this message. Then install
Chris@41 280 $0: a modern shell, or manually run the script under such a
Chris@41 281 $0: shell if you do have one."
Chris@41 282 fi
Chris@41 283 exit 1
Chris@41 284 fi
Chris@41 285 fi
Chris@41 286 fi
Chris@41 287 SHELL=${CONFIG_SHELL-/bin/sh}
Chris@41 288 export SHELL
Chris@41 289 # Unset more variables known to interfere with behavior of common tools.
Chris@41 290 CLICOLOR_FORCE= GREP_OPTIONS=
Chris@41 291 unset CLICOLOR_FORCE GREP_OPTIONS
Chris@41 292
Chris@41 293 ## --------------------- ##
Chris@41 294 ## M4sh Shell Functions. ##
Chris@41 295 ## --------------------- ##
Chris@41 296 # as_fn_unset VAR
Chris@41 297 # ---------------
Chris@41 298 # Portably unset VAR.
Chris@41 299 as_fn_unset ()
Chris@41 300 {
Chris@41 301 { eval $1=; unset $1;}
Chris@41 302 }
Chris@41 303 as_unset=as_fn_unset
Chris@41 304
Chris@41 305 # as_fn_set_status STATUS
Chris@41 306 # -----------------------
Chris@41 307 # Set $? to STATUS, without forking.
Chris@41 308 as_fn_set_status ()
Chris@41 309 {
Chris@41 310 return $1
Chris@41 311 } # as_fn_set_status
Chris@41 312
Chris@41 313 # as_fn_exit STATUS
Chris@41 314 # -----------------
Chris@41 315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
Chris@41 316 as_fn_exit ()
Chris@41 317 {
Chris@41 318 set +e
Chris@41 319 as_fn_set_status $1
Chris@41 320 exit $1
Chris@41 321 } # as_fn_exit
Chris@41 322
Chris@41 323 # as_fn_mkdir_p
Chris@41 324 # -------------
Chris@41 325 # Create "$as_dir" as a directory, including parents if necessary.
Chris@41 326 as_fn_mkdir_p ()
Chris@41 327 {
Chris@41 328
Chris@41 329 case $as_dir in #(
Chris@41 330 -*) as_dir=./$as_dir;;
Chris@41 331 esac
Chris@41 332 test -d "$as_dir" || eval $as_mkdir_p || {
Chris@41 333 as_dirs=
Chris@41 334 while :; do
Chris@41 335 case $as_dir in #(
Chris@41 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Chris@41 337 *) as_qdir=$as_dir;;
Chris@41 338 esac
Chris@41 339 as_dirs="'$as_qdir' $as_dirs"
Chris@41 340 as_dir=`$as_dirname -- "$as_dir" ||
Chris@41 341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@41 342 X"$as_dir" : 'X\(//\)[^/]' \| \
Chris@41 343 X"$as_dir" : 'X\(//\)$' \| \
Chris@41 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Chris@41 345 $as_echo X"$as_dir" |
Chris@41 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@41 347 s//\1/
Chris@41 348 q
Chris@41 349 }
Chris@41 350 /^X\(\/\/\)[^/].*/{
Chris@41 351 s//\1/
Chris@41 352 q
Chris@41 353 }
Chris@41 354 /^X\(\/\/\)$/{
Chris@41 355 s//\1/
Chris@41 356 q
Chris@41 357 }
Chris@41 358 /^X\(\/\).*/{
Chris@41 359 s//\1/
Chris@41 360 q
Chris@41 361 }
Chris@41 362 s/.*/./; q'`
Chris@41 363 test -d "$as_dir" && break
Chris@41 364 done
Chris@41 365 test -z "$as_dirs" || eval "mkdir $as_dirs"
Chris@41 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Chris@41 367
Chris@41 368
Chris@41 369 } # as_fn_mkdir_p
Chris@41 370
Chris@41 371 # as_fn_executable_p FILE
Chris@41 372 # -----------------------
Chris@41 373 # Test if FILE is an executable regular file.
Chris@41 374 as_fn_executable_p ()
Chris@41 375 {
Chris@41 376 test -f "$1" && test -x "$1"
Chris@41 377 } # as_fn_executable_p
Chris@41 378 # as_fn_append VAR VALUE
Chris@41 379 # ----------------------
Chris@41 380 # Append the text in VALUE to the end of the definition contained in VAR. Take
Chris@41 381 # advantage of any shell optimizations that allow amortized linear growth over
Chris@41 382 # repeated appends, instead of the typical quadratic growth present in naive
Chris@41 383 # implementations.
Chris@41 384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
Chris@41 385 eval 'as_fn_append ()
Chris@41 386 {
Chris@41 387 eval $1+=\$2
Chris@41 388 }'
Chris@41 389 else
Chris@41 390 as_fn_append ()
Chris@41 391 {
Chris@41 392 eval $1=\$$1\$2
Chris@41 393 }
Chris@41 394 fi # as_fn_append
Chris@41 395
Chris@41 396 # as_fn_arith ARG...
Chris@41 397 # ------------------
Chris@41 398 # Perform arithmetic evaluation on the ARGs, and store the result in the
Chris@41 399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
Chris@41 400 # must be portable across $(()) and expr.
Chris@41 401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
Chris@41 402 eval 'as_fn_arith ()
Chris@41 403 {
Chris@41 404 as_val=$(( $* ))
Chris@41 405 }'
Chris@41 406 else
Chris@41 407 as_fn_arith ()
Chris@41 408 {
Chris@41 409 as_val=`expr "$@" || test $? -eq 1`
Chris@41 410 }
Chris@41 411 fi # as_fn_arith
Chris@41 412
Chris@41 413
Chris@41 414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
Chris@41 415 # ----------------------------------------
Chris@41 416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
Chris@41 417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Chris@41 418 # script with STATUS, using 1 if that was 0.
Chris@41 419 as_fn_error ()
Chris@41 420 {
Chris@41 421 as_status=$1; test $as_status -eq 0 && as_status=1
Chris@41 422 if test "$4"; then
Chris@41 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@41 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Chris@41 425 fi
Chris@41 426 $as_echo "$as_me: error: $2" >&2
Chris@41 427 as_fn_exit $as_status
Chris@41 428 } # as_fn_error
Chris@41 429
Chris@41 430 if expr a : '\(a\)' >/dev/null 2>&1 &&
Chris@41 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Chris@41 432 as_expr=expr
Chris@41 433 else
Chris@41 434 as_expr=false
Chris@41 435 fi
Chris@41 436
Chris@41 437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Chris@41 438 as_basename=basename
Chris@41 439 else
Chris@41 440 as_basename=false
Chris@41 441 fi
Chris@41 442
Chris@41 443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
Chris@41 444 as_dirname=dirname
Chris@41 445 else
Chris@41 446 as_dirname=false
Chris@41 447 fi
Chris@41 448
Chris@41 449 as_me=`$as_basename -- "$0" ||
Chris@41 450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
Chris@41 451 X"$0" : 'X\(//\)$' \| \
Chris@41 452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Chris@41 453 $as_echo X/"$0" |
Chris@41 454 sed '/^.*\/\([^/][^/]*\)\/*$/{
Chris@41 455 s//\1/
Chris@41 456 q
Chris@41 457 }
Chris@41 458 /^X\/\(\/\/\)$/{
Chris@41 459 s//\1/
Chris@41 460 q
Chris@41 461 }
Chris@41 462 /^X\/\(\/\).*/{
Chris@41 463 s//\1/
Chris@41 464 q
Chris@41 465 }
Chris@41 466 s/.*/./; q'`
Chris@41 467
Chris@41 468 # Avoid depending upon Character Ranges.
Chris@41 469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
Chris@41 470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
Chris@41 471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
Chris@41 472 as_cr_digits='0123456789'
Chris@41 473 as_cr_alnum=$as_cr_Letters$as_cr_digits
Chris@41 474
Chris@41 475
Chris@41 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
Chris@41 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
Chris@41 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
Chris@41 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
Chris@41 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Chris@41 481 sed -n '
Chris@41 482 p
Chris@41 483 /[$]LINENO/=
Chris@41 484 ' <$as_myself |
Chris@41 485 sed '
Chris@41 486 s/[$]LINENO.*/&-/
Chris@41 487 t lineno
Chris@41 488 b
Chris@41 489 :lineno
Chris@41 490 N
Chris@41 491 :loop
Chris@41 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Chris@41 493 t loop
Chris@41 494 s/-\n.*//
Chris@41 495 ' >$as_me.lineno &&
Chris@41 496 chmod +x "$as_me.lineno" ||
Chris@41 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Chris@41 498
Chris@41 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
Chris@41 500 # already done that, so ensure we don't try to do so again and fall
Chris@41 501 # in an infinite loop. This has already happened in practice.
Chris@41 502 _as_can_reexec=no; export _as_can_reexec
Chris@41 503 # Don't try to exec as it changes $[0], causing all sort of problems
Chris@41 504 # (the dirname of $[0] is not the place where we might find the
Chris@41 505 # original and so on. Autoconf is especially sensitive to this).
Chris@41 506 . "./$as_me.lineno"
Chris@41 507 # Exit status is that of the last command.
Chris@41 508 exit
Chris@41 509 }
Chris@41 510
Chris@41 511 ECHO_C= ECHO_N= ECHO_T=
Chris@41 512 case `echo -n x` in #(((((
Chris@41 513 -n*)
Chris@41 514 case `echo 'xy\c'` in
Chris@41 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Chris@41 516 xy) ECHO_C='\c';;
Chris@41 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
Chris@41 518 ECHO_T=' ';;
Chris@41 519 esac;;
Chris@41 520 *)
Chris@41 521 ECHO_N='-n';;
Chris@41 522 esac
Chris@41 523
Chris@41 524 rm -f conf$$ conf$$.exe conf$$.file
Chris@41 525 if test -d conf$$.dir; then
Chris@41 526 rm -f conf$$.dir/conf$$.file
Chris@41 527 else
Chris@41 528 rm -f conf$$.dir
Chris@41 529 mkdir conf$$.dir 2>/dev/null
Chris@41 530 fi
Chris@41 531 if (echo >conf$$.file) 2>/dev/null; then
Chris@41 532 if ln -s conf$$.file conf$$ 2>/dev/null; then
Chris@41 533 as_ln_s='ln -s'
Chris@41 534 # ... but there are two gotchas:
Chris@41 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
Chris@41 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Chris@41 537 # In both cases, we have to default to `cp -pR'.
Chris@41 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Chris@41 539 as_ln_s='cp -pR'
Chris@41 540 elif ln conf$$.file conf$$ 2>/dev/null; then
Chris@41 541 as_ln_s=ln
Chris@41 542 else
Chris@41 543 as_ln_s='cp -pR'
Chris@41 544 fi
Chris@41 545 else
Chris@41 546 as_ln_s='cp -pR'
Chris@41 547 fi
Chris@41 548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
Chris@41 549 rmdir conf$$.dir 2>/dev/null
Chris@41 550
Chris@41 551 if mkdir -p . 2>/dev/null; then
Chris@41 552 as_mkdir_p='mkdir -p "$as_dir"'
Chris@41 553 else
Chris@41 554 test -d ./-p && rmdir ./-p
Chris@41 555 as_mkdir_p=false
Chris@41 556 fi
Chris@41 557
Chris@41 558 as_test_x='test -x'
Chris@41 559 as_executable_p=as_fn_executable_p
Chris@41 560
Chris@41 561 # Sed expression to map a string onto a valid CPP name.
Chris@41 562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Chris@41 563
Chris@41 564 # Sed expression to map a string onto a valid variable name.
Chris@41 565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Chris@41 566
Chris@41 567 SHELL=${CONFIG_SHELL-/bin/sh}
Chris@41 568
Chris@41 569
Chris@41 570 test -n "$DJDIR" || exec 7<&0 </dev/null
Chris@41 571 exec 6>&1
Chris@41 572
Chris@41 573 # Name of the host.
Chris@41 574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Chris@41 575 # so uname gets run too.
Chris@41 576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@41 577
Chris@41 578 #
Chris@41 579 # Initializations.
Chris@41 580 #
Chris@41 581 ac_default_prefix=/usr/local
Chris@41 582 ac_clean_files=
Chris@41 583 ac_config_libobj_dir=.
Chris@41 584 LIBOBJS=
Chris@41 585 cross_compiling=no
Chris@41 586 subdirs=
Chris@41 587 MFLAGS=
Chris@41 588 MAKEFLAGS=
Chris@41 589
Chris@41 590 # Identity of this package.
Chris@41 591 PACKAGE_NAME='libsamplerate'
Chris@41 592 PACKAGE_TARNAME='libsamplerate'
Chris@41 593 PACKAGE_VERSION='0.1.9'
Chris@41 594 PACKAGE_STRING='libsamplerate 0.1.9'
Chris@41 595 PACKAGE_BUGREPORT='erikd@mega-nerd.com'
Chris@41 596 PACKAGE_URL='http://www.mega-nerd.com/libsamplerate/'
Chris@41 597
Chris@41 598 ac_unique_file="src/samplerate.c"
Chris@41 599 # Factoring default headers for most tests.
Chris@41 600 ac_includes_default="\
Chris@41 601 #include <stdio.h>
Chris@41 602 #ifdef HAVE_SYS_TYPES_H
Chris@41 603 # include <sys/types.h>
Chris@41 604 #endif
Chris@41 605 #ifdef HAVE_SYS_STAT_H
Chris@41 606 # include <sys/stat.h>
Chris@41 607 #endif
Chris@41 608 #ifdef STDC_HEADERS
Chris@41 609 # include <stdlib.h>
Chris@41 610 # include <stddef.h>
Chris@41 611 #else
Chris@41 612 # ifdef HAVE_STDLIB_H
Chris@41 613 # include <stdlib.h>
Chris@41 614 # endif
Chris@41 615 #endif
Chris@41 616 #ifdef HAVE_STRING_H
Chris@41 617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Chris@41 618 # include <memory.h>
Chris@41 619 # endif
Chris@41 620 # include <string.h>
Chris@41 621 #endif
Chris@41 622 #ifdef HAVE_STRINGS_H
Chris@41 623 # include <strings.h>
Chris@41 624 #endif
Chris@41 625 #ifdef HAVE_INTTYPES_H
Chris@41 626 # include <inttypes.h>
Chris@41 627 #endif
Chris@41 628 #ifdef HAVE_STDINT_H
Chris@41 629 # include <stdint.h>
Chris@41 630 #endif
Chris@41 631 #ifdef HAVE_UNISTD_H
Chris@41 632 # include <unistd.h>
Chris@41 633 #endif"
Chris@41 634
Chris@41 635 ac_subst_vars='am__EXEEXT_FALSE
Chris@41 636 am__EXEEXT_TRUE
Chris@41 637 LTLIBOBJS
Chris@41 638 LIBOBJS
Chris@41 639 ALSA_LIBS
Chris@41 640 HAVE_SNDFILE
Chris@41 641 HAVE_FFTW3
Chris@41 642 GCC_MAJOR_VERSION
Chris@41 643 COMPILER_IS_GCC
Chris@41 644 OS_SPECIFIC_LINKS
Chris@41 645 OS_SPECIFIC_INCLUDES
Chris@41 646 SHARED_VERSION_INFO
Chris@41 647 SHLIB_VERSION_ARG
Chris@41 648 htmldocdir
Chris@41 649 FFTW3_LIBS
Chris@41 650 FFTW3_CFLAGS
Chris@41 651 SNDFILE_LIBS
Chris@41 652 SNDFILE_CFLAGS
Chris@41 653 PKG_CONFIG_LIBDIR
Chris@41 654 PKG_CONFIG_PATH
Chris@41 655 PKG_CONFIG
Chris@41 656 PEXPORTS
Chris@41 657 DLLWRAP
Chris@41 658 RC
Chris@41 659 CXXCPP
Chris@41 660 CPP
Chris@41 661 LT_SYS_LIBRARY_PATH
Chris@41 662 OTOOL64
Chris@41 663 OTOOL
Chris@41 664 LIPO
Chris@41 665 NMEDIT
Chris@41 666 DSYMUTIL
Chris@41 667 MANIFEST_TOOL
Chris@41 668 RANLIB
Chris@41 669 ac_ct_AR
Chris@41 670 AR
Chris@41 671 DLLTOOL
Chris@41 672 OBJDUMP
Chris@41 673 LN_S
Chris@41 674 NM
Chris@41 675 ac_ct_DUMPBIN
Chris@41 676 DUMPBIN
Chris@41 677 LD
Chris@41 678 FGREP
Chris@41 679 EGREP
Chris@41 680 GREP
Chris@41 681 LIBTOOL
Chris@41 682 SED
Chris@41 683 am__fastdepCXX_FALSE
Chris@41 684 am__fastdepCXX_TRUE
Chris@41 685 CXXDEPMODE
Chris@41 686 ac_ct_CXX
Chris@41 687 CXXFLAGS
Chris@41 688 CXX
Chris@41 689 am__fastdepCC_FALSE
Chris@41 690 am__fastdepCC_TRUE
Chris@41 691 CCDEPMODE
Chris@41 692 am__nodep
Chris@41 693 AMDEPBACKSLASH
Chris@41 694 AMDEP_FALSE
Chris@41 695 AMDEP_TRUE
Chris@41 696 am__quote
Chris@41 697 am__include
Chris@41 698 DEPDIR
Chris@41 699 OBJEXT
Chris@41 700 EXEEXT
Chris@41 701 ac_ct_CC
Chris@41 702 CPPFLAGS
Chris@41 703 LDFLAGS
Chris@41 704 CFLAGS
Chris@41 705 CC
Chris@41 706 ACLOCAL_AMFLAGS
Chris@41 707 AM_BACKSLASH
Chris@41 708 AM_DEFAULT_VERBOSITY
Chris@41 709 AM_DEFAULT_V
Chris@41 710 AM_V
Chris@41 711 am__untar
Chris@41 712 am__tar
Chris@41 713 AMTAR
Chris@41 714 am__leading_dot
Chris@41 715 SET_MAKE
Chris@41 716 AWK
Chris@41 717 mkdir_p
Chris@41 718 MKDIR_P
Chris@41 719 INSTALL_STRIP_PROGRAM
Chris@41 720 STRIP
Chris@41 721 install_sh
Chris@41 722 MAKEINFO
Chris@41 723 AUTOHEADER
Chris@41 724 AUTOMAKE
Chris@41 725 AUTOCONF
Chris@41 726 ACLOCAL
Chris@41 727 VERSION
Chris@41 728 PACKAGE
Chris@41 729 CYGPATH_W
Chris@41 730 am__isrc
Chris@41 731 INSTALL_DATA
Chris@41 732 INSTALL_SCRIPT
Chris@41 733 INSTALL_PROGRAM
Chris@41 734 target_os
Chris@41 735 target_vendor
Chris@41 736 target_cpu
Chris@41 737 target
Chris@41 738 host_os
Chris@41 739 host_vendor
Chris@41 740 host_cpu
Chris@41 741 host
Chris@41 742 build_os
Chris@41 743 build_vendor
Chris@41 744 build_cpu
Chris@41 745 build
Chris@41 746 target_alias
Chris@41 747 host_alias
Chris@41 748 build_alias
Chris@41 749 LIBS
Chris@41 750 ECHO_T
Chris@41 751 ECHO_N
Chris@41 752 ECHO_C
Chris@41 753 DEFS
Chris@41 754 mandir
Chris@41 755 localedir
Chris@41 756 libdir
Chris@41 757 psdir
Chris@41 758 pdfdir
Chris@41 759 dvidir
Chris@41 760 htmldir
Chris@41 761 infodir
Chris@41 762 docdir
Chris@41 763 oldincludedir
Chris@41 764 includedir
Chris@41 765 runstatedir
Chris@41 766 localstatedir
Chris@41 767 sharedstatedir
Chris@41 768 sysconfdir
Chris@41 769 datadir
Chris@41 770 datarootdir
Chris@41 771 libexecdir
Chris@41 772 sbindir
Chris@41 773 bindir
Chris@41 774 program_transform_name
Chris@41 775 prefix
Chris@41 776 exec_prefix
Chris@41 777 PACKAGE_URL
Chris@41 778 PACKAGE_BUGREPORT
Chris@41 779 PACKAGE_STRING
Chris@41 780 PACKAGE_VERSION
Chris@41 781 PACKAGE_TARNAME
Chris@41 782 PACKAGE_NAME
Chris@41 783 PATH_SEPARATOR
Chris@41 784 SHELL'
Chris@41 785 ac_subst_files=''
Chris@41 786 ac_user_opts='
Chris@41 787 enable_option_checking
Chris@41 788 enable_silent_rules
Chris@41 789 enable_dependency_tracking
Chris@41 790 enable_shared
Chris@41 791 enable_static
Chris@41 792 with_pic
Chris@41 793 enable_fast_install
Chris@41 794 with_aix_soname
Chris@41 795 with_gnu_ld
Chris@41 796 with_sysroot
Chris@41 797 enable_libtool_lock
Chris@41 798 enable_gcc_werror
Chris@41 799 enable_gcc_pipe
Chris@41 800 enable_gcc_opt
Chris@41 801 enable_fftw
Chris@41 802 enable_cpu_clip
Chris@41 803 enable_sndfile
Chris@41 804 '
Chris@41 805 ac_precious_vars='build_alias
Chris@41 806 host_alias
Chris@41 807 target_alias
Chris@41 808 CC
Chris@41 809 CFLAGS
Chris@41 810 LDFLAGS
Chris@41 811 LIBS
Chris@41 812 CPPFLAGS
Chris@41 813 CXX
Chris@41 814 CXXFLAGS
Chris@41 815 CCC
Chris@41 816 LT_SYS_LIBRARY_PATH
Chris@41 817 CPP
Chris@41 818 CXXCPP
Chris@41 819 PKG_CONFIG
Chris@41 820 PKG_CONFIG_PATH
Chris@41 821 PKG_CONFIG_LIBDIR
Chris@41 822 SNDFILE_CFLAGS
Chris@41 823 SNDFILE_LIBS
Chris@41 824 FFTW3_CFLAGS
Chris@41 825 FFTW3_LIBS'
Chris@41 826
Chris@41 827
Chris@41 828 # Initialize some variables set by options.
Chris@41 829 ac_init_help=
Chris@41 830 ac_init_version=false
Chris@41 831 ac_unrecognized_opts=
Chris@41 832 ac_unrecognized_sep=
Chris@41 833 # The variables have the same names as the options, with
Chris@41 834 # dashes changed to underlines.
Chris@41 835 cache_file=/dev/null
Chris@41 836 exec_prefix=NONE
Chris@41 837 no_create=
Chris@41 838 no_recursion=
Chris@41 839 prefix=NONE
Chris@41 840 program_prefix=NONE
Chris@41 841 program_suffix=NONE
Chris@41 842 program_transform_name=s,x,x,
Chris@41 843 silent=
Chris@41 844 site=
Chris@41 845 srcdir=
Chris@41 846 verbose=
Chris@41 847 x_includes=NONE
Chris@41 848 x_libraries=NONE
Chris@41 849
Chris@41 850 # Installation directory options.
Chris@41 851 # These are left unexpanded so users can "make install exec_prefix=/foo"
Chris@41 852 # and all the variables that are supposed to be based on exec_prefix
Chris@41 853 # by default will actually change.
Chris@41 854 # Use braces instead of parens because sh, perl, etc. also accept them.
Chris@41 855 # (The list follows the same order as the GNU Coding Standards.)
Chris@41 856 bindir='${exec_prefix}/bin'
Chris@41 857 sbindir='${exec_prefix}/sbin'
Chris@41 858 libexecdir='${exec_prefix}/libexec'
Chris@41 859 datarootdir='${prefix}/share'
Chris@41 860 datadir='${datarootdir}'
Chris@41 861 sysconfdir='${prefix}/etc'
Chris@41 862 sharedstatedir='${prefix}/com'
Chris@41 863 localstatedir='${prefix}/var'
Chris@41 864 runstatedir='${localstatedir}/run'
Chris@41 865 includedir='${prefix}/include'
Chris@41 866 oldincludedir='/usr/include'
Chris@41 867 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
Chris@41 868 infodir='${datarootdir}/info'
Chris@41 869 htmldir='${docdir}'
Chris@41 870 dvidir='${docdir}'
Chris@41 871 pdfdir='${docdir}'
Chris@41 872 psdir='${docdir}'
Chris@41 873 libdir='${exec_prefix}/lib'
Chris@41 874 localedir='${datarootdir}/locale'
Chris@41 875 mandir='${datarootdir}/man'
Chris@41 876
Chris@41 877 ac_prev=
Chris@41 878 ac_dashdash=
Chris@41 879 for ac_option
Chris@41 880 do
Chris@41 881 # If the previous option needs an argument, assign it.
Chris@41 882 if test -n "$ac_prev"; then
Chris@41 883 eval $ac_prev=\$ac_option
Chris@41 884 ac_prev=
Chris@41 885 continue
Chris@41 886 fi
Chris@41 887
Chris@41 888 case $ac_option in
Chris@41 889 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
Chris@41 890 *=) ac_optarg= ;;
Chris@41 891 *) ac_optarg=yes ;;
Chris@41 892 esac
Chris@41 893
Chris@41 894 # Accept the important Cygnus configure options, so we can diagnose typos.
Chris@41 895
Chris@41 896 case $ac_dashdash$ac_option in
Chris@41 897 --)
Chris@41 898 ac_dashdash=yes ;;
Chris@41 899
Chris@41 900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
Chris@41 901 ac_prev=bindir ;;
Chris@41 902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Chris@41 903 bindir=$ac_optarg ;;
Chris@41 904
Chris@41 905 -build | --build | --buil | --bui | --bu)
Chris@41 906 ac_prev=build_alias ;;
Chris@41 907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Chris@41 908 build_alias=$ac_optarg ;;
Chris@41 909
Chris@41 910 -cache-file | --cache-file | --cache-fil | --cache-fi \
Chris@41 911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
Chris@41 912 ac_prev=cache_file ;;
Chris@41 913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
Chris@41 914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Chris@41 915 cache_file=$ac_optarg ;;
Chris@41 916
Chris@41 917 --config-cache | -C)
Chris@41 918 cache_file=config.cache ;;
Chris@41 919
Chris@41 920 -datadir | --datadir | --datadi | --datad)
Chris@41 921 ac_prev=datadir ;;
Chris@41 922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Chris@41 923 datadir=$ac_optarg ;;
Chris@41 924
Chris@41 925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
Chris@41 926 | --dataroo | --dataro | --datar)
Chris@41 927 ac_prev=datarootdir ;;
Chris@41 928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
Chris@41 929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
Chris@41 930 datarootdir=$ac_optarg ;;
Chris@41 931
Chris@41 932 -disable-* | --disable-*)
Chris@41 933 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Chris@41 934 # Reject names that are not valid shell variable names.
Chris@41 935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@41 936 as_fn_error $? "invalid feature name: $ac_useropt"
Chris@41 937 ac_useropt_orig=$ac_useropt
Chris@41 938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@41 939 case $ac_user_opts in
Chris@41 940 *"
Chris@41 941 "enable_$ac_useropt"
Chris@41 942 "*) ;;
Chris@41 943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
Chris@41 944 ac_unrecognized_sep=', ';;
Chris@41 945 esac
Chris@41 946 eval enable_$ac_useropt=no ;;
Chris@41 947
Chris@41 948 -docdir | --docdir | --docdi | --doc | --do)
Chris@41 949 ac_prev=docdir ;;
Chris@41 950 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
Chris@41 951 docdir=$ac_optarg ;;
Chris@41 952
Chris@41 953 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
Chris@41 954 ac_prev=dvidir ;;
Chris@41 955 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
Chris@41 956 dvidir=$ac_optarg ;;
Chris@41 957
Chris@41 958 -enable-* | --enable-*)
Chris@41 959 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Chris@41 960 # Reject names that are not valid shell variable names.
Chris@41 961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@41 962 as_fn_error $? "invalid feature name: $ac_useropt"
Chris@41 963 ac_useropt_orig=$ac_useropt
Chris@41 964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@41 965 case $ac_user_opts in
Chris@41 966 *"
Chris@41 967 "enable_$ac_useropt"
Chris@41 968 "*) ;;
Chris@41 969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
Chris@41 970 ac_unrecognized_sep=', ';;
Chris@41 971 esac
Chris@41 972 eval enable_$ac_useropt=\$ac_optarg ;;
Chris@41 973
Chris@41 974 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
Chris@41 975 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
Chris@41 976 | --exec | --exe | --ex)
Chris@41 977 ac_prev=exec_prefix ;;
Chris@41 978 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
Chris@41 979 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
Chris@41 980 | --exec=* | --exe=* | --ex=*)
Chris@41 981 exec_prefix=$ac_optarg ;;
Chris@41 982
Chris@41 983 -gas | --gas | --ga | --g)
Chris@41 984 # Obsolete; use --with-gas.
Chris@41 985 with_gas=yes ;;
Chris@41 986
Chris@41 987 -help | --help | --hel | --he | -h)
Chris@41 988 ac_init_help=long ;;
Chris@41 989 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
Chris@41 990 ac_init_help=recursive ;;
Chris@41 991 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
Chris@41 992 ac_init_help=short ;;
Chris@41 993
Chris@41 994 -host | --host | --hos | --ho)
Chris@41 995 ac_prev=host_alias ;;
Chris@41 996 -host=* | --host=* | --hos=* | --ho=*)
Chris@41 997 host_alias=$ac_optarg ;;
Chris@41 998
Chris@41 999 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
Chris@41 1000 ac_prev=htmldir ;;
Chris@41 1001 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
Chris@41 1002 | --ht=*)
Chris@41 1003 htmldir=$ac_optarg ;;
Chris@41 1004
Chris@41 1005 -includedir | --includedir | --includedi | --included | --include \
Chris@41 1006 | --includ | --inclu | --incl | --inc)
Chris@41 1007 ac_prev=includedir ;;
Chris@41 1008 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
Chris@41 1009 | --includ=* | --inclu=* | --incl=* | --inc=*)
Chris@41 1010 includedir=$ac_optarg ;;
Chris@41 1011
Chris@41 1012 -infodir | --infodir | --infodi | --infod | --info | --inf)
Chris@41 1013 ac_prev=infodir ;;
Chris@41 1014 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Chris@41 1015 infodir=$ac_optarg ;;
Chris@41 1016
Chris@41 1017 -libdir | --libdir | --libdi | --libd)
Chris@41 1018 ac_prev=libdir ;;
Chris@41 1019 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Chris@41 1020 libdir=$ac_optarg ;;
Chris@41 1021
Chris@41 1022 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
Chris@41 1023 | --libexe | --libex | --libe)
Chris@41 1024 ac_prev=libexecdir ;;
Chris@41 1025 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
Chris@41 1026 | --libexe=* | --libex=* | --libe=*)
Chris@41 1027 libexecdir=$ac_optarg ;;
Chris@41 1028
Chris@41 1029 -localedir | --localedir | --localedi | --localed | --locale)
Chris@41 1030 ac_prev=localedir ;;
Chris@41 1031 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
Chris@41 1032 localedir=$ac_optarg ;;
Chris@41 1033
Chris@41 1034 -localstatedir | --localstatedir | --localstatedi | --localstated \
Chris@41 1035 | --localstate | --localstat | --localsta | --localst | --locals)
Chris@41 1036 ac_prev=localstatedir ;;
Chris@41 1037 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Chris@41 1038 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Chris@41 1039 localstatedir=$ac_optarg ;;
Chris@41 1040
Chris@41 1041 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
Chris@41 1042 ac_prev=mandir ;;
Chris@41 1043 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Chris@41 1044 mandir=$ac_optarg ;;
Chris@41 1045
Chris@41 1046 -nfp | --nfp | --nf)
Chris@41 1047 # Obsolete; use --without-fp.
Chris@41 1048 with_fp=no ;;
Chris@41 1049
Chris@41 1050 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Chris@41 1051 | --no-cr | --no-c | -n)
Chris@41 1052 no_create=yes ;;
Chris@41 1053
Chris@41 1054 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
Chris@41 1055 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
Chris@41 1056 no_recursion=yes ;;
Chris@41 1057
Chris@41 1058 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
Chris@41 1059 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
Chris@41 1060 | --oldin | --oldi | --old | --ol | --o)
Chris@41 1061 ac_prev=oldincludedir ;;
Chris@41 1062 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
Chris@41 1063 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
Chris@41 1064 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Chris@41 1065 oldincludedir=$ac_optarg ;;
Chris@41 1066
Chris@41 1067 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
Chris@41 1068 ac_prev=prefix ;;
Chris@41 1069 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Chris@41 1070 prefix=$ac_optarg ;;
Chris@41 1071
Chris@41 1072 -program-prefix | --program-prefix | --program-prefi | --program-pref \
Chris@41 1073 | --program-pre | --program-pr | --program-p)
Chris@41 1074 ac_prev=program_prefix ;;
Chris@41 1075 -program-prefix=* | --program-prefix=* | --program-prefi=* \
Chris@41 1076 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Chris@41 1077 program_prefix=$ac_optarg ;;
Chris@41 1078
Chris@41 1079 -program-suffix | --program-suffix | --program-suffi | --program-suff \
Chris@41 1080 | --program-suf | --program-su | --program-s)
Chris@41 1081 ac_prev=program_suffix ;;
Chris@41 1082 -program-suffix=* | --program-suffix=* | --program-suffi=* \
Chris@41 1083 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Chris@41 1084 program_suffix=$ac_optarg ;;
Chris@41 1085
Chris@41 1086 -program-transform-name | --program-transform-name \
Chris@41 1087 | --program-transform-nam | --program-transform-na \
Chris@41 1088 | --program-transform-n | --program-transform- \
Chris@41 1089 | --program-transform | --program-transfor \
Chris@41 1090 | --program-transfo | --program-transf \
Chris@41 1091 | --program-trans | --program-tran \
Chris@41 1092 | --progr-tra | --program-tr | --program-t)
Chris@41 1093 ac_prev=program_transform_name ;;
Chris@41 1094 -program-transform-name=* | --program-transform-name=* \
Chris@41 1095 | --program-transform-nam=* | --program-transform-na=* \
Chris@41 1096 | --program-transform-n=* | --program-transform-=* \
Chris@41 1097 | --program-transform=* | --program-transfor=* \
Chris@41 1098 | --program-transfo=* | --program-transf=* \
Chris@41 1099 | --program-trans=* | --program-tran=* \
Chris@41 1100 | --progr-tra=* | --program-tr=* | --program-t=*)
Chris@41 1101 program_transform_name=$ac_optarg ;;
Chris@41 1102
Chris@41 1103 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
Chris@41 1104 ac_prev=pdfdir ;;
Chris@41 1105 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
Chris@41 1106 pdfdir=$ac_optarg ;;
Chris@41 1107
Chris@41 1108 -psdir | --psdir | --psdi | --psd | --ps)
Chris@41 1109 ac_prev=psdir ;;
Chris@41 1110 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
Chris@41 1111 psdir=$ac_optarg ;;
Chris@41 1112
Chris@41 1113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@41 1114 | -silent | --silent | --silen | --sile | --sil)
Chris@41 1115 silent=yes ;;
Chris@41 1116
Chris@41 1117 -runstatedir | --runstatedir | --runstatedi | --runstated \
Chris@41 1118 | --runstate | --runstat | --runsta | --runst | --runs \
Chris@41 1119 | --run | --ru | --r)
Chris@41 1120 ac_prev=runstatedir ;;
Chris@41 1121 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
Chris@41 1122 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
Chris@41 1123 | --run=* | --ru=* | --r=*)
Chris@41 1124 runstatedir=$ac_optarg ;;
Chris@41 1125
Chris@41 1126 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
Chris@41 1127 ac_prev=sbindir ;;
Chris@41 1128 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
Chris@41 1129 | --sbi=* | --sb=*)
Chris@41 1130 sbindir=$ac_optarg ;;
Chris@41 1131
Chris@41 1132 -sharedstatedir | --sharedstatedir | --sharedstatedi \
Chris@41 1133 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
Chris@41 1134 | --sharedst | --shareds | --shared | --share | --shar \
Chris@41 1135 | --sha | --sh)
Chris@41 1136 ac_prev=sharedstatedir ;;
Chris@41 1137 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
Chris@41 1138 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
Chris@41 1139 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
Chris@41 1140 | --sha=* | --sh=*)
Chris@41 1141 sharedstatedir=$ac_optarg ;;
Chris@41 1142
Chris@41 1143 -site | --site | --sit)
Chris@41 1144 ac_prev=site ;;
Chris@41 1145 -site=* | --site=* | --sit=*)
Chris@41 1146 site=$ac_optarg ;;
Chris@41 1147
Chris@41 1148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
Chris@41 1149 ac_prev=srcdir ;;
Chris@41 1150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Chris@41 1151 srcdir=$ac_optarg ;;
Chris@41 1152
Chris@41 1153 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
Chris@41 1154 | --syscon | --sysco | --sysc | --sys | --sy)
Chris@41 1155 ac_prev=sysconfdir ;;
Chris@41 1156 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
Chris@41 1157 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Chris@41 1158 sysconfdir=$ac_optarg ;;
Chris@41 1159
Chris@41 1160 -target | --target | --targe | --targ | --tar | --ta | --t)
Chris@41 1161 ac_prev=target_alias ;;
Chris@41 1162 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Chris@41 1163 target_alias=$ac_optarg ;;
Chris@41 1164
Chris@41 1165 -v | -verbose | --verbose | --verbos | --verbo | --verb)
Chris@41 1166 verbose=yes ;;
Chris@41 1167
Chris@41 1168 -version | --version | --versio | --versi | --vers | -V)
Chris@41 1169 ac_init_version=: ;;
Chris@41 1170
Chris@41 1171 -with-* | --with-*)
Chris@41 1172 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Chris@41 1173 # Reject names that are not valid shell variable names.
Chris@41 1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@41 1175 as_fn_error $? "invalid package name: $ac_useropt"
Chris@41 1176 ac_useropt_orig=$ac_useropt
Chris@41 1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@41 1178 case $ac_user_opts in
Chris@41 1179 *"
Chris@41 1180 "with_$ac_useropt"
Chris@41 1181 "*) ;;
Chris@41 1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
Chris@41 1183 ac_unrecognized_sep=', ';;
Chris@41 1184 esac
Chris@41 1185 eval with_$ac_useropt=\$ac_optarg ;;
Chris@41 1186
Chris@41 1187 -without-* | --without-*)
Chris@41 1188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Chris@41 1189 # Reject names that are not valid shell variable names.
Chris@41 1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@41 1191 as_fn_error $? "invalid package name: $ac_useropt"
Chris@41 1192 ac_useropt_orig=$ac_useropt
Chris@41 1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@41 1194 case $ac_user_opts in
Chris@41 1195 *"
Chris@41 1196 "with_$ac_useropt"
Chris@41 1197 "*) ;;
Chris@41 1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
Chris@41 1199 ac_unrecognized_sep=', ';;
Chris@41 1200 esac
Chris@41 1201 eval with_$ac_useropt=no ;;
Chris@41 1202
Chris@41 1203 --x)
Chris@41 1204 # Obsolete; use --with-x.
Chris@41 1205 with_x=yes ;;
Chris@41 1206
Chris@41 1207 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
Chris@41 1208 | --x-incl | --x-inc | --x-in | --x-i)
Chris@41 1209 ac_prev=x_includes ;;
Chris@41 1210 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
Chris@41 1211 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Chris@41 1212 x_includes=$ac_optarg ;;
Chris@41 1213
Chris@41 1214 -x-libraries | --x-libraries | --x-librarie | --x-librari \
Chris@41 1215 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
Chris@41 1216 ac_prev=x_libraries ;;
Chris@41 1217 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
Chris@41 1218 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Chris@41 1219 x_libraries=$ac_optarg ;;
Chris@41 1220
Chris@41 1221 -*) as_fn_error $? "unrecognized option: \`$ac_option'
Chris@41 1222 Try \`$0 --help' for more information"
Chris@41 1223 ;;
Chris@41 1224
Chris@41 1225 *=*)
Chris@41 1226 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
Chris@41 1227 # Reject names that are not valid shell variable names.
Chris@41 1228 case $ac_envvar in #(
Chris@41 1229 '' | [0-9]* | *[!_$as_cr_alnum]* )
Chris@41 1230 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Chris@41 1231 esac
Chris@41 1232 eval $ac_envvar=\$ac_optarg
Chris@41 1233 export $ac_envvar ;;
Chris@41 1234
Chris@41 1235 *)
Chris@41 1236 # FIXME: should be removed in autoconf 3.0.
Chris@41 1237 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Chris@41 1238 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Chris@41 1239 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Chris@41 1240 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Chris@41 1241 ;;
Chris@41 1242
Chris@41 1243 esac
Chris@41 1244 done
Chris@41 1245
Chris@41 1246 if test -n "$ac_prev"; then
Chris@41 1247 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Chris@41 1248 as_fn_error $? "missing argument to $ac_option"
Chris@41 1249 fi
Chris@41 1250
Chris@41 1251 if test -n "$ac_unrecognized_opts"; then
Chris@41 1252 case $enable_option_checking in
Chris@41 1253 no) ;;
Chris@41 1254 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Chris@41 1255 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Chris@41 1256 esac
Chris@41 1257 fi
Chris@41 1258
Chris@41 1259 # Check all directory arguments for consistency.
Chris@41 1260 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
Chris@41 1261 datadir sysconfdir sharedstatedir localstatedir includedir \
Chris@41 1262 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Chris@41 1263 libdir localedir mandir runstatedir
Chris@41 1264 do
Chris@41 1265 eval ac_val=\$$ac_var
Chris@41 1266 # Remove trailing slashes.
Chris@41 1267 case $ac_val in
Chris@41 1268 */ )
Chris@41 1269 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
Chris@41 1270 eval $ac_var=\$ac_val;;
Chris@41 1271 esac
Chris@41 1272 # Be sure to have absolute directory names.
Chris@41 1273 case $ac_val in
Chris@41 1274 [\\/$]* | ?:[\\/]* ) continue;;
Chris@41 1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Chris@41 1276 esac
Chris@41 1277 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Chris@41 1278 done
Chris@41 1279
Chris@41 1280 # There might be people who depend on the old broken behavior: `$host'
Chris@41 1281 # used to hold the argument of --host etc.
Chris@41 1282 # FIXME: To remove some day.
Chris@41 1283 build=$build_alias
Chris@41 1284 host=$host_alias
Chris@41 1285 target=$target_alias
Chris@41 1286
Chris@41 1287 # FIXME: To remove some day.
Chris@41 1288 if test "x$host_alias" != x; then
Chris@41 1289 if test "x$build_alias" = x; then
Chris@41 1290 cross_compiling=maybe
Chris@41 1291 elif test "x$build_alias" != "x$host_alias"; then
Chris@41 1292 cross_compiling=yes
Chris@41 1293 fi
Chris@41 1294 fi
Chris@41 1295
Chris@41 1296 ac_tool_prefix=
Chris@41 1297 test -n "$host_alias" && ac_tool_prefix=$host_alias-
Chris@41 1298
Chris@41 1299 test "$silent" = yes && exec 6>/dev/null
Chris@41 1300
Chris@41 1301
Chris@41 1302 ac_pwd=`pwd` && test -n "$ac_pwd" &&
Chris@41 1303 ac_ls_di=`ls -di .` &&
Chris@41 1304 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Chris@41 1305 as_fn_error $? "working directory cannot be determined"
Chris@41 1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Chris@41 1307 as_fn_error $? "pwd does not report name of working directory"
Chris@41 1308
Chris@41 1309
Chris@41 1310 # Find the source files, if location was not specified.
Chris@41 1311 if test -z "$srcdir"; then
Chris@41 1312 ac_srcdir_defaulted=yes
Chris@41 1313 # Try the directory containing this script, then the parent directory.
Chris@41 1314 ac_confdir=`$as_dirname -- "$as_myself" ||
Chris@41 1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@41 1316 X"$as_myself" : 'X\(//\)[^/]' \| \
Chris@41 1317 X"$as_myself" : 'X\(//\)$' \| \
Chris@41 1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
Chris@41 1319 $as_echo X"$as_myself" |
Chris@41 1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@41 1321 s//\1/
Chris@41 1322 q
Chris@41 1323 }
Chris@41 1324 /^X\(\/\/\)[^/].*/{
Chris@41 1325 s//\1/
Chris@41 1326 q
Chris@41 1327 }
Chris@41 1328 /^X\(\/\/\)$/{
Chris@41 1329 s//\1/
Chris@41 1330 q
Chris@41 1331 }
Chris@41 1332 /^X\(\/\).*/{
Chris@41 1333 s//\1/
Chris@41 1334 q
Chris@41 1335 }
Chris@41 1336 s/.*/./; q'`
Chris@41 1337 srcdir=$ac_confdir
Chris@41 1338 if test ! -r "$srcdir/$ac_unique_file"; then
Chris@41 1339 srcdir=..
Chris@41 1340 fi
Chris@41 1341 else
Chris@41 1342 ac_srcdir_defaulted=no
Chris@41 1343 fi
Chris@41 1344 if test ! -r "$srcdir/$ac_unique_file"; then
Chris@41 1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Chris@41 1346 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Chris@41 1347 fi
Chris@41 1348 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
Chris@41 1349 ac_abs_confdir=`(
Chris@41 1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Chris@41 1351 pwd)`
Chris@41 1352 # When building in place, set srcdir=.
Chris@41 1353 if test "$ac_abs_confdir" = "$ac_pwd"; then
Chris@41 1354 srcdir=.
Chris@41 1355 fi
Chris@41 1356 # Remove unnecessary trailing slashes from srcdir.
Chris@41 1357 # Double slashes in file names in object file debugging info
Chris@41 1358 # mess up M-x gdb in Emacs.
Chris@41 1359 case $srcdir in
Chris@41 1360 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
Chris@41 1361 esac
Chris@41 1362 for ac_var in $ac_precious_vars; do
Chris@41 1363 eval ac_env_${ac_var}_set=\${${ac_var}+set}
Chris@41 1364 eval ac_env_${ac_var}_value=\$${ac_var}
Chris@41 1365 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
Chris@41 1366 eval ac_cv_env_${ac_var}_value=\$${ac_var}
Chris@41 1367 done
Chris@41 1368
Chris@41 1369 #
Chris@41 1370 # Report the --help message.
Chris@41 1371 #
Chris@41 1372 if test "$ac_init_help" = "long"; then
Chris@41 1373 # Omit some internal or obsolete options to make the list less imposing.
Chris@41 1374 # This message is too long to be a string in the A/UX 3.1 sh.
Chris@41 1375 cat <<_ACEOF
Chris@41 1376 \`configure' configures libsamplerate 0.1.9 to adapt to many kinds of systems.
Chris@41 1377
Chris@41 1378 Usage: $0 [OPTION]... [VAR=VALUE]...
Chris@41 1379
Chris@41 1380 To assign environment variables (e.g., CC, CFLAGS...), specify them as
Chris@41 1381 VAR=VALUE. See below for descriptions of some of the useful variables.
Chris@41 1382
Chris@41 1383 Defaults for the options are specified in brackets.
Chris@41 1384
Chris@41 1385 Configuration:
Chris@41 1386 -h, --help display this help and exit
Chris@41 1387 --help=short display options specific to this package
Chris@41 1388 --help=recursive display the short help of all the included packages
Chris@41 1389 -V, --version display version information and exit
Chris@41 1390 -q, --quiet, --silent do not print \`checking ...' messages
Chris@41 1391 --cache-file=FILE cache test results in FILE [disabled]
Chris@41 1392 -C, --config-cache alias for \`--cache-file=config.cache'
Chris@41 1393 -n, --no-create do not create output files
Chris@41 1394 --srcdir=DIR find the sources in DIR [configure dir or \`..']
Chris@41 1395
Chris@41 1396 Installation directories:
Chris@41 1397 --prefix=PREFIX install architecture-independent files in PREFIX
Chris@41 1398 [$ac_default_prefix]
Chris@41 1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Chris@41 1400 [PREFIX]
Chris@41 1401
Chris@41 1402 By default, \`make install' will install all the files in
Chris@41 1403 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
Chris@41 1404 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
Chris@41 1405 for instance \`--prefix=\$HOME'.
Chris@41 1406
Chris@41 1407 For better control, use the options below.
Chris@41 1408
Chris@41 1409 Fine tuning of the installation directories:
Chris@41 1410 --bindir=DIR user executables [EPREFIX/bin]
Chris@41 1411 --sbindir=DIR system admin executables [EPREFIX/sbin]
Chris@41 1412 --libexecdir=DIR program executables [EPREFIX/libexec]
Chris@41 1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
Chris@41 1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
Chris@41 1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Chris@41 1416 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
Chris@41 1417 --libdir=DIR object code libraries [EPREFIX/lib]
Chris@41 1418 --includedir=DIR C header files [PREFIX/include]
Chris@41 1419 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Chris@41 1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
Chris@41 1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
Chris@41 1422 --infodir=DIR info documentation [DATAROOTDIR/info]
Chris@41 1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
Chris@41 1424 --mandir=DIR man documentation [DATAROOTDIR/man]
Chris@41 1425 --docdir=DIR documentation root [DATAROOTDIR/doc/libsamplerate]
Chris@41 1426 --htmldir=DIR html documentation [DOCDIR]
Chris@41 1427 --dvidir=DIR dvi documentation [DOCDIR]
Chris@41 1428 --pdfdir=DIR pdf documentation [DOCDIR]
Chris@41 1429 --psdir=DIR ps documentation [DOCDIR]
Chris@41 1430 _ACEOF
Chris@41 1431
Chris@41 1432 cat <<\_ACEOF
Chris@41 1433
Chris@41 1434 Program names:
Chris@41 1435 --program-prefix=PREFIX prepend PREFIX to installed program names
Chris@41 1436 --program-suffix=SUFFIX append SUFFIX to installed program names
Chris@41 1437 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
Chris@41 1438
Chris@41 1439 System types:
Chris@41 1440 --build=BUILD configure for building on BUILD [guessed]
Chris@41 1441 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Chris@41 1442 --target=TARGET configure for building compilers for TARGET [HOST]
Chris@41 1443 _ACEOF
Chris@41 1444 fi
Chris@41 1445
Chris@41 1446 if test -n "$ac_init_help"; then
Chris@41 1447 case $ac_init_help in
Chris@41 1448 short | recursive ) echo "Configuration of libsamplerate 0.1.9:";;
Chris@41 1449 esac
Chris@41 1450 cat <<\_ACEOF
Chris@41 1451
Chris@41 1452 Optional Features:
Chris@41 1453 --disable-option-checking ignore unrecognized --enable/--with options
Chris@41 1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
Chris@41 1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Chris@41 1456 --enable-silent-rules less verbose build output (undo: "make V=1")
Chris@41 1457 --disable-silent-rules verbose build output (undo: "make V=0")
Chris@41 1458 --enable-dependency-tracking
Chris@41 1459 do not reject slow dependency extractors
Chris@41 1460 --disable-dependency-tracking
Chris@41 1461 speeds up one-time build
Chris@41 1462 --enable-shared[=PKGS] build shared libraries [default=yes]
Chris@41 1463 --enable-static[=PKGS] build static libraries [default=yes]
Chris@41 1464 --enable-fast-install[=PKGS]
Chris@41 1465 optimize for fast installation [default=yes]
Chris@41 1466 --disable-libtool-lock avoid locking (might break parallel builds)
Chris@41 1467 --enable-gcc-werror enable -Werror in all Makefiles
Chris@41 1468 --disable-gcc-pipe disable gcc -pipe option
Chris@41 1469 --disable-gcc-opt disable gcc optimisations
Chris@41 1470 --disable-fftw disable usage of FFTW
Chris@41 1471 --disable-cpu-clip disable tricky cpu specific clipper
Chris@41 1472 --disable-sndfile disable support for sndfile (default=autodetect)
Chris@41 1473
Chris@41 1474 Optional Packages:
Chris@41 1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
Chris@41 1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Chris@41 1477 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
Chris@41 1478 both]
Chris@41 1479 --with-aix-soname=aix|svr4|both
Chris@41 1480 shared library versioning (aka "SONAME") variant to
Chris@41 1481 provide on AIX, [default=aix].
Chris@41 1482 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Chris@41 1483 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
Chris@41 1484 compiler's sysroot if not specified).
Chris@41 1485
Chris@41 1486 Some influential environment variables:
Chris@41 1487 CC C compiler command
Chris@41 1488 CFLAGS C compiler flags
Chris@41 1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
Chris@41 1490 nonstandard directory <lib dir>
Chris@41 1491 LIBS libraries to pass to the linker, e.g. -l<library>
Chris@41 1492 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Chris@41 1493 you have headers in a nonstandard directory <include dir>
Chris@41 1494 CXX C++ compiler command
Chris@41 1495 CXXFLAGS C++ compiler flags
Chris@41 1496 LT_SYS_LIBRARY_PATH
Chris@41 1497 User-defined run-time library search path.
Chris@41 1498 CPP C preprocessor
Chris@41 1499 CXXCPP C++ preprocessor
Chris@41 1500 PKG_CONFIG path to pkg-config utility
Chris@41 1501 PKG_CONFIG_PATH
Chris@41 1502 directories to add to pkg-config's search path
Chris@41 1503 PKG_CONFIG_LIBDIR
Chris@41 1504 path overriding pkg-config's built-in search path
Chris@41 1505 SNDFILE_CFLAGS
Chris@41 1506 C compiler flags for SNDFILE, overriding pkg-config
Chris@41 1507 SNDFILE_LIBS
Chris@41 1508 linker flags for SNDFILE, overriding pkg-config
Chris@41 1509 FFTW3_CFLAGS
Chris@41 1510 C compiler flags for FFTW3, overriding pkg-config
Chris@41 1511 FFTW3_LIBS linker flags for FFTW3, overriding pkg-config
Chris@41 1512
Chris@41 1513 Use these variables to override the choices made by `configure' or to help
Chris@41 1514 it to find libraries and programs with nonstandard names/locations.
Chris@41 1515
Chris@41 1516 Report bugs to <erikd@mega-nerd.com>.
Chris@41 1517 libsamplerate home page: <http://www.mega-nerd.com/libsamplerate/>.
Chris@41 1518 _ACEOF
Chris@41 1519 ac_status=$?
Chris@41 1520 fi
Chris@41 1521
Chris@41 1522 if test "$ac_init_help" = "recursive"; then
Chris@41 1523 # If there are subdirs, report their specific --help.
Chris@41 1524 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Chris@41 1525 test -d "$ac_dir" ||
Chris@41 1526 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
Chris@41 1527 continue
Chris@41 1528 ac_builddir=.
Chris@41 1529
Chris@41 1530 case "$ac_dir" in
Chris@41 1531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@41 1532 *)
Chris@41 1533 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Chris@41 1534 # A ".." for each directory in $ac_dir_suffix.
Chris@41 1535 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Chris@41 1536 case $ac_top_builddir_sub in
Chris@41 1537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@41 1538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
Chris@41 1539 esac ;;
Chris@41 1540 esac
Chris@41 1541 ac_abs_top_builddir=$ac_pwd
Chris@41 1542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
Chris@41 1543 # for backward compatibility:
Chris@41 1544 ac_top_builddir=$ac_top_build_prefix
Chris@41 1545
Chris@41 1546 case $srcdir in
Chris@41 1547 .) # We are building in place.
Chris@41 1548 ac_srcdir=.
Chris@41 1549 ac_top_srcdir=$ac_top_builddir_sub
Chris@41 1550 ac_abs_top_srcdir=$ac_pwd ;;
Chris@41 1551 [\\/]* | ?:[\\/]* ) # Absolute name.
Chris@41 1552 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@41 1553 ac_top_srcdir=$srcdir
Chris@41 1554 ac_abs_top_srcdir=$srcdir ;;
Chris@41 1555 *) # Relative name.
Chris@41 1556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
Chris@41 1557 ac_top_srcdir=$ac_top_build_prefix$srcdir
Chris@41 1558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Chris@41 1559 esac
Chris@41 1560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Chris@41 1561
Chris@41 1562 cd "$ac_dir" || { ac_status=$?; continue; }
Chris@41 1563 # Check for guested configure.
Chris@41 1564 if test -f "$ac_srcdir/configure.gnu"; then
Chris@41 1565 echo &&
Chris@41 1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
Chris@41 1567 elif test -f "$ac_srcdir/configure"; then
Chris@41 1568 echo &&
Chris@41 1569 $SHELL "$ac_srcdir/configure" --help=recursive
Chris@41 1570 else
Chris@41 1571 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Chris@41 1572 fi || ac_status=$?
Chris@41 1573 cd "$ac_pwd" || { ac_status=$?; break; }
Chris@41 1574 done
Chris@41 1575 fi
Chris@41 1576
Chris@41 1577 test -n "$ac_init_help" && exit $ac_status
Chris@41 1578 if $ac_init_version; then
Chris@41 1579 cat <<\_ACEOF
Chris@41 1580 libsamplerate configure 0.1.9
Chris@41 1581 generated by GNU Autoconf 2.69
Chris@41 1582
Chris@41 1583 Copyright (C) 2012 Free Software Foundation, Inc.
Chris@41 1584 This configure script is free software; the Free Software Foundation
Chris@41 1585 gives unlimited permission to copy, distribute and modify it.
Chris@41 1586 _ACEOF
Chris@41 1587 exit
Chris@41 1588 fi
Chris@41 1589
Chris@41 1590 ## ------------------------ ##
Chris@41 1591 ## Autoconf initialization. ##
Chris@41 1592 ## ------------------------ ##
Chris@41 1593
Chris@41 1594 # ac_fn_c_try_compile LINENO
Chris@41 1595 # --------------------------
Chris@41 1596 # Try to compile conftest.$ac_ext, and return whether this succeeded.
Chris@41 1597 ac_fn_c_try_compile ()
Chris@41 1598 {
Chris@41 1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@41 1600 rm -f conftest.$ac_objext
Chris@41 1601 if { { ac_try="$ac_compile"
Chris@41 1602 case "(($ac_try" in
Chris@41 1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@41 1604 *) ac_try_echo=$ac_try;;
Chris@41 1605 esac
Chris@41 1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@41 1607 $as_echo "$ac_try_echo"; } >&5
Chris@41 1608 (eval "$ac_compile") 2>conftest.err
Chris@41 1609 ac_status=$?
Chris@41 1610 if test -s conftest.err; then
Chris@41 1611 grep -v '^ *+' conftest.err >conftest.er1
Chris@41 1612 cat conftest.er1 >&5
Chris@41 1613 mv -f conftest.er1 conftest.err
Chris@41 1614 fi
Chris@41 1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 1616 test $ac_status = 0; } && {
Chris@41 1617 test -z "$ac_c_werror_flag" ||
Chris@41 1618 test ! -s conftest.err
Chris@41 1619 } && test -s conftest.$ac_objext; then :
Chris@41 1620 ac_retval=0
Chris@41 1621 else
Chris@41 1622 $as_echo "$as_me: failed program was:" >&5
Chris@41 1623 sed 's/^/| /' conftest.$ac_ext >&5
Chris@41 1624
Chris@41 1625 ac_retval=1
Chris@41 1626 fi
Chris@41 1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@41 1628 as_fn_set_status $ac_retval
Chris@41 1629
Chris@41 1630 } # ac_fn_c_try_compile
Chris@41 1631
Chris@41 1632 # ac_fn_cxx_try_compile LINENO
Chris@41 1633 # ----------------------------
Chris@41 1634 # Try to compile conftest.$ac_ext, and return whether this succeeded.
Chris@41 1635 ac_fn_cxx_try_compile ()
Chris@41 1636 {
Chris@41 1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@41 1638 rm -f conftest.$ac_objext
Chris@41 1639 if { { ac_try="$ac_compile"
Chris@41 1640 case "(($ac_try" in
Chris@41 1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@41 1642 *) ac_try_echo=$ac_try;;
Chris@41 1643 esac
Chris@41 1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@41 1645 $as_echo "$ac_try_echo"; } >&5
Chris@41 1646 (eval "$ac_compile") 2>conftest.err
Chris@41 1647 ac_status=$?
Chris@41 1648 if test -s conftest.err; then
Chris@41 1649 grep -v '^ *+' conftest.err >conftest.er1
Chris@41 1650 cat conftest.er1 >&5
Chris@41 1651 mv -f conftest.er1 conftest.err
Chris@41 1652 fi
Chris@41 1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 1654 test $ac_status = 0; } && {
Chris@41 1655 test -z "$ac_cxx_werror_flag" ||
Chris@41 1656 test ! -s conftest.err
Chris@41 1657 } && test -s conftest.$ac_objext; then :
Chris@41 1658 ac_retval=0
Chris@41 1659 else
Chris@41 1660 $as_echo "$as_me: failed program was:" >&5
Chris@41 1661 sed 's/^/| /' conftest.$ac_ext >&5
Chris@41 1662
Chris@41 1663 ac_retval=1
Chris@41 1664 fi
Chris@41 1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@41 1666 as_fn_set_status $ac_retval
Chris@41 1667
Chris@41 1668 } # ac_fn_cxx_try_compile
Chris@41 1669
Chris@41 1670 # ac_fn_c_try_link LINENO
Chris@41 1671 # -----------------------
Chris@41 1672 # Try to link conftest.$ac_ext, and return whether this succeeded.
Chris@41 1673 ac_fn_c_try_link ()
Chris@41 1674 {
Chris@41 1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@41 1676 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@41 1677 if { { ac_try="$ac_link"
Chris@41 1678 case "(($ac_try" in
Chris@41 1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@41 1680 *) ac_try_echo=$ac_try;;
Chris@41 1681 esac
Chris@41 1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@41 1683 $as_echo "$ac_try_echo"; } >&5
Chris@41 1684 (eval "$ac_link") 2>conftest.err
Chris@41 1685 ac_status=$?
Chris@41 1686 if test -s conftest.err; then
Chris@41 1687 grep -v '^ *+' conftest.err >conftest.er1
Chris@41 1688 cat conftest.er1 >&5
Chris@41 1689 mv -f conftest.er1 conftest.err
Chris@41 1690 fi
Chris@41 1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 1692 test $ac_status = 0; } && {
Chris@41 1693 test -z "$ac_c_werror_flag" ||
Chris@41 1694 test ! -s conftest.err
Chris@41 1695 } && test -s conftest$ac_exeext && {
Chris@41 1696 test "$cross_compiling" = yes ||
Chris@41 1697 test -x conftest$ac_exeext
Chris@41 1698 }; then :
Chris@41 1699 ac_retval=0
Chris@41 1700 else
Chris@41 1701 $as_echo "$as_me: failed program was:" >&5
Chris@41 1702 sed 's/^/| /' conftest.$ac_ext >&5
Chris@41 1703
Chris@41 1704 ac_retval=1
Chris@41 1705 fi
Chris@41 1706 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
Chris@41 1707 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
Chris@41 1708 # interfere with the next link command; also delete a directory that is
Chris@41 1709 # left behind by Apple's compiler. We do this before executing the actions.
Chris@41 1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris@41 1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@41 1712 as_fn_set_status $ac_retval
Chris@41 1713
Chris@41 1714 } # ac_fn_c_try_link
Chris@41 1715
Chris@41 1716 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
Chris@41 1717 # -------------------------------------------------------
Chris@41 1718 # Tests whether HEADER exists and can be compiled using the include files in
Chris@41 1719 # INCLUDES, setting the cache variable VAR accordingly.
Chris@41 1720 ac_fn_c_check_header_compile ()
Chris@41 1721 {
Chris@41 1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@41 1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@41 1724 $as_echo_n "checking for $2... " >&6; }
Chris@41 1725 if eval \${$3+:} false; then :
Chris@41 1726 $as_echo_n "(cached) " >&6
Chris@41 1727 else
Chris@41 1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 1729 /* end confdefs.h. */
Chris@41 1730 $4
Chris@41 1731 #include <$2>
Chris@41 1732 _ACEOF
Chris@41 1733 if ac_fn_c_try_compile "$LINENO"; then :
Chris@41 1734 eval "$3=yes"
Chris@41 1735 else
Chris@41 1736 eval "$3=no"
Chris@41 1737 fi
Chris@41 1738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@41 1739 fi
Chris@41 1740 eval ac_res=\$$3
Chris@41 1741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@41 1742 $as_echo "$ac_res" >&6; }
Chris@41 1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@41 1744
Chris@41 1745 } # ac_fn_c_check_header_compile
Chris@41 1746
Chris@41 1747 # ac_fn_c_try_cpp LINENO
Chris@41 1748 # ----------------------
Chris@41 1749 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
Chris@41 1750 ac_fn_c_try_cpp ()
Chris@41 1751 {
Chris@41 1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@41 1753 if { { ac_try="$ac_cpp conftest.$ac_ext"
Chris@41 1754 case "(($ac_try" in
Chris@41 1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@41 1756 *) ac_try_echo=$ac_try;;
Chris@41 1757 esac
Chris@41 1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@41 1759 $as_echo "$ac_try_echo"; } >&5
Chris@41 1760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
Chris@41 1761 ac_status=$?
Chris@41 1762 if test -s conftest.err; then
Chris@41 1763 grep -v '^ *+' conftest.err >conftest.er1
Chris@41 1764 cat conftest.er1 >&5
Chris@41 1765 mv -f conftest.er1 conftest.err
Chris@41 1766 fi
Chris@41 1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 1768 test $ac_status = 0; } > conftest.i && {
Chris@41 1769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
Chris@41 1770 test ! -s conftest.err
Chris@41 1771 }; then :
Chris@41 1772 ac_retval=0
Chris@41 1773 else
Chris@41 1774 $as_echo "$as_me: failed program was:" >&5
Chris@41 1775 sed 's/^/| /' conftest.$ac_ext >&5
Chris@41 1776
Chris@41 1777 ac_retval=1
Chris@41 1778 fi
Chris@41 1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@41 1780 as_fn_set_status $ac_retval
Chris@41 1781
Chris@41 1782 } # ac_fn_c_try_cpp
Chris@41 1783
Chris@41 1784 # ac_fn_c_try_run LINENO
Chris@41 1785 # ----------------------
Chris@41 1786 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
Chris@41 1787 # that executables *can* be run.
Chris@41 1788 ac_fn_c_try_run ()
Chris@41 1789 {
Chris@41 1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@41 1791 if { { ac_try="$ac_link"
Chris@41 1792 case "(($ac_try" in
Chris@41 1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@41 1794 *) ac_try_echo=$ac_try;;
Chris@41 1795 esac
Chris@41 1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@41 1797 $as_echo "$ac_try_echo"; } >&5
Chris@41 1798 (eval "$ac_link") 2>&5
Chris@41 1799 ac_status=$?
Chris@41 1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 1801 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
Chris@41 1802 { { case "(($ac_try" in
Chris@41 1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@41 1804 *) ac_try_echo=$ac_try;;
Chris@41 1805 esac
Chris@41 1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@41 1807 $as_echo "$ac_try_echo"; } >&5
Chris@41 1808 (eval "$ac_try") 2>&5
Chris@41 1809 ac_status=$?
Chris@41 1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 1811 test $ac_status = 0; }; }; then :
Chris@41 1812 ac_retval=0
Chris@41 1813 else
Chris@41 1814 $as_echo "$as_me: program exited with status $ac_status" >&5
Chris@41 1815 $as_echo "$as_me: failed program was:" >&5
Chris@41 1816 sed 's/^/| /' conftest.$ac_ext >&5
Chris@41 1817
Chris@41 1818 ac_retval=$ac_status
Chris@41 1819 fi
Chris@41 1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris@41 1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@41 1822 as_fn_set_status $ac_retval
Chris@41 1823
Chris@41 1824 } # ac_fn_c_try_run
Chris@41 1825
Chris@41 1826 # ac_fn_c_check_func LINENO FUNC VAR
Chris@41 1827 # ----------------------------------
Chris@41 1828 # Tests whether FUNC exists, setting the cache variable VAR accordingly
Chris@41 1829 ac_fn_c_check_func ()
Chris@41 1830 {
Chris@41 1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@41 1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@41 1833 $as_echo_n "checking for $2... " >&6; }
Chris@41 1834 if eval \${$3+:} false; then :
Chris@41 1835 $as_echo_n "(cached) " >&6
Chris@41 1836 else
Chris@41 1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 1838 /* end confdefs.h. */
Chris@41 1839 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
Chris@41 1840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
Chris@41 1841 #define $2 innocuous_$2
Chris@41 1842
Chris@41 1843 /* System header to define __stub macros and hopefully few prototypes,
Chris@41 1844 which can conflict with char $2 (); below.
Chris@41 1845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@41 1846 <limits.h> exists even on freestanding compilers. */
Chris@41 1847
Chris@41 1848 #ifdef __STDC__
Chris@41 1849 # include <limits.h>
Chris@41 1850 #else
Chris@41 1851 # include <assert.h>
Chris@41 1852 #endif
Chris@41 1853
Chris@41 1854 #undef $2
Chris@41 1855
Chris@41 1856 /* Override any GCC internal prototype to avoid an error.
Chris@41 1857 Use char because int might match the return type of a GCC
Chris@41 1858 builtin and then its argument prototype would still apply. */
Chris@41 1859 #ifdef __cplusplus
Chris@41 1860 extern "C"
Chris@41 1861 #endif
Chris@41 1862 char $2 ();
Chris@41 1863 /* The GNU C library defines this for functions which it implements
Chris@41 1864 to always fail with ENOSYS. Some functions are actually named
Chris@41 1865 something starting with __ and the normal name is an alias. */
Chris@41 1866 #if defined __stub_$2 || defined __stub___$2
Chris@41 1867 choke me
Chris@41 1868 #endif
Chris@41 1869
Chris@41 1870 int
Chris@41 1871 main ()
Chris@41 1872 {
Chris@41 1873 return $2 ();
Chris@41 1874 ;
Chris@41 1875 return 0;
Chris@41 1876 }
Chris@41 1877 _ACEOF
Chris@41 1878 if ac_fn_c_try_link "$LINENO"; then :
Chris@41 1879 eval "$3=yes"
Chris@41 1880 else
Chris@41 1881 eval "$3=no"
Chris@41 1882 fi
Chris@41 1883 rm -f core conftest.err conftest.$ac_objext \
Chris@41 1884 conftest$ac_exeext conftest.$ac_ext
Chris@41 1885 fi
Chris@41 1886 eval ac_res=\$$3
Chris@41 1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@41 1888 $as_echo "$ac_res" >&6; }
Chris@41 1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@41 1890
Chris@41 1891 } # ac_fn_c_check_func
Chris@41 1892
Chris@41 1893 # ac_fn_cxx_try_cpp LINENO
Chris@41 1894 # ------------------------
Chris@41 1895 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
Chris@41 1896 ac_fn_cxx_try_cpp ()
Chris@41 1897 {
Chris@41 1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@41 1899 if { { ac_try="$ac_cpp conftest.$ac_ext"
Chris@41 1900 case "(($ac_try" in
Chris@41 1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@41 1902 *) ac_try_echo=$ac_try;;
Chris@41 1903 esac
Chris@41 1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@41 1905 $as_echo "$ac_try_echo"; } >&5
Chris@41 1906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
Chris@41 1907 ac_status=$?
Chris@41 1908 if test -s conftest.err; then
Chris@41 1909 grep -v '^ *+' conftest.err >conftest.er1
Chris@41 1910 cat conftest.er1 >&5
Chris@41 1911 mv -f conftest.er1 conftest.err
Chris@41 1912 fi
Chris@41 1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 1914 test $ac_status = 0; } > conftest.i && {
Chris@41 1915 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
Chris@41 1916 test ! -s conftest.err
Chris@41 1917 }; then :
Chris@41 1918 ac_retval=0
Chris@41 1919 else
Chris@41 1920 $as_echo "$as_me: failed program was:" >&5
Chris@41 1921 sed 's/^/| /' conftest.$ac_ext >&5
Chris@41 1922
Chris@41 1923 ac_retval=1
Chris@41 1924 fi
Chris@41 1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@41 1926 as_fn_set_status $ac_retval
Chris@41 1927
Chris@41 1928 } # ac_fn_cxx_try_cpp
Chris@41 1929
Chris@41 1930 # ac_fn_cxx_try_link LINENO
Chris@41 1931 # -------------------------
Chris@41 1932 # Try to link conftest.$ac_ext, and return whether this succeeded.
Chris@41 1933 ac_fn_cxx_try_link ()
Chris@41 1934 {
Chris@41 1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@41 1936 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@41 1937 if { { ac_try="$ac_link"
Chris@41 1938 case "(($ac_try" in
Chris@41 1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@41 1940 *) ac_try_echo=$ac_try;;
Chris@41 1941 esac
Chris@41 1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@41 1943 $as_echo "$ac_try_echo"; } >&5
Chris@41 1944 (eval "$ac_link") 2>conftest.err
Chris@41 1945 ac_status=$?
Chris@41 1946 if test -s conftest.err; then
Chris@41 1947 grep -v '^ *+' conftest.err >conftest.er1
Chris@41 1948 cat conftest.er1 >&5
Chris@41 1949 mv -f conftest.er1 conftest.err
Chris@41 1950 fi
Chris@41 1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 1952 test $ac_status = 0; } && {
Chris@41 1953 test -z "$ac_cxx_werror_flag" ||
Chris@41 1954 test ! -s conftest.err
Chris@41 1955 } && test -s conftest$ac_exeext && {
Chris@41 1956 test "$cross_compiling" = yes ||
Chris@41 1957 test -x conftest$ac_exeext
Chris@41 1958 }; then :
Chris@41 1959 ac_retval=0
Chris@41 1960 else
Chris@41 1961 $as_echo "$as_me: failed program was:" >&5
Chris@41 1962 sed 's/^/| /' conftest.$ac_ext >&5
Chris@41 1963
Chris@41 1964 ac_retval=1
Chris@41 1965 fi
Chris@41 1966 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
Chris@41 1967 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
Chris@41 1968 # interfere with the next link command; also delete a directory that is
Chris@41 1969 # left behind by Apple's compiler. We do this before executing the actions.
Chris@41 1970 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris@41 1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@41 1972 as_fn_set_status $ac_retval
Chris@41 1973
Chris@41 1974 } # ac_fn_cxx_try_link
Chris@41 1975
Chris@41 1976 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
Chris@41 1977 # -------------------------------------------------------
Chris@41 1978 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
Chris@41 1979 # the include files in INCLUDES and setting the cache variable VAR
Chris@41 1980 # accordingly.
Chris@41 1981 ac_fn_c_check_header_mongrel ()
Chris@41 1982 {
Chris@41 1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@41 1984 if eval \${$3+:} false; then :
Chris@41 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@41 1986 $as_echo_n "checking for $2... " >&6; }
Chris@41 1987 if eval \${$3+:} false; then :
Chris@41 1988 $as_echo_n "(cached) " >&6
Chris@41 1989 fi
Chris@41 1990 eval ac_res=\$$3
Chris@41 1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@41 1992 $as_echo "$ac_res" >&6; }
Chris@41 1993 else
Chris@41 1994 # Is the header compilable?
Chris@41 1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
Chris@41 1996 $as_echo_n "checking $2 usability... " >&6; }
Chris@41 1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 1998 /* end confdefs.h. */
Chris@41 1999 $4
Chris@41 2000 #include <$2>
Chris@41 2001 _ACEOF
Chris@41 2002 if ac_fn_c_try_compile "$LINENO"; then :
Chris@41 2003 ac_header_compiler=yes
Chris@41 2004 else
Chris@41 2005 ac_header_compiler=no
Chris@41 2006 fi
Chris@41 2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@41 2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
Chris@41 2009 $as_echo "$ac_header_compiler" >&6; }
Chris@41 2010
Chris@41 2011 # Is the header present?
Chris@41 2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
Chris@41 2013 $as_echo_n "checking $2 presence... " >&6; }
Chris@41 2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 2015 /* end confdefs.h. */
Chris@41 2016 #include <$2>
Chris@41 2017 _ACEOF
Chris@41 2018 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@41 2019 ac_header_preproc=yes
Chris@41 2020 else
Chris@41 2021 ac_header_preproc=no
Chris@41 2022 fi
Chris@41 2023 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@41 2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
Chris@41 2025 $as_echo "$ac_header_preproc" >&6; }
Chris@41 2026
Chris@41 2027 # So? What about this header?
Chris@41 2028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
Chris@41 2029 yes:no: )
Chris@41 2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
Chris@41 2031 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
Chris@41 2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
Chris@41 2033 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Chris@41 2034 ;;
Chris@41 2035 no:yes:* )
Chris@41 2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
Chris@41 2037 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
Chris@41 2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
Chris@41 2039 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
Chris@41 2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
Chris@41 2041 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
Chris@41 2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
Chris@41 2043 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
Chris@41 2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
Chris@41 2045 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Chris@41 2046 ( $as_echo "## ---------------------------------- ##
Chris@41 2047 ## Report this to erikd@mega-nerd.com ##
Chris@41 2048 ## ---------------------------------- ##"
Chris@41 2049 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris@41 2050 ;;
Chris@41 2051 esac
Chris@41 2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@41 2053 $as_echo_n "checking for $2... " >&6; }
Chris@41 2054 if eval \${$3+:} false; then :
Chris@41 2055 $as_echo_n "(cached) " >&6
Chris@41 2056 else
Chris@41 2057 eval "$3=\$ac_header_compiler"
Chris@41 2058 fi
Chris@41 2059 eval ac_res=\$$3
Chris@41 2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@41 2061 $as_echo "$ac_res" >&6; }
Chris@41 2062 fi
Chris@41 2063 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@41 2064
Chris@41 2065 } # ac_fn_c_check_header_mongrel
Chris@41 2066
Chris@41 2067 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
Chris@41 2068 # --------------------------------------------
Chris@41 2069 # Tries to find the compile-time value of EXPR in a program that includes
Chris@41 2070 # INCLUDES, setting VAR accordingly. Returns whether the value could be
Chris@41 2071 # computed
Chris@41 2072 ac_fn_c_compute_int ()
Chris@41 2073 {
Chris@41 2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@41 2075 if test "$cross_compiling" = yes; then
Chris@41 2076 # Depending upon the size, compute the lo and hi bounds.
Chris@41 2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 2078 /* end confdefs.h. */
Chris@41 2079 $4
Chris@41 2080 int
Chris@41 2081 main ()
Chris@41 2082 {
Chris@41 2083 static int test_array [1 - 2 * !(($2) >= 0)];
Chris@41 2084 test_array [0] = 0;
Chris@41 2085 return test_array [0];
Chris@41 2086
Chris@41 2087 ;
Chris@41 2088 return 0;
Chris@41 2089 }
Chris@41 2090 _ACEOF
Chris@41 2091 if ac_fn_c_try_compile "$LINENO"; then :
Chris@41 2092 ac_lo=0 ac_mid=0
Chris@41 2093 while :; do
Chris@41 2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 2095 /* end confdefs.h. */
Chris@41 2096 $4
Chris@41 2097 int
Chris@41 2098 main ()
Chris@41 2099 {
Chris@41 2100 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Chris@41 2101 test_array [0] = 0;
Chris@41 2102 return test_array [0];
Chris@41 2103
Chris@41 2104 ;
Chris@41 2105 return 0;
Chris@41 2106 }
Chris@41 2107 _ACEOF
Chris@41 2108 if ac_fn_c_try_compile "$LINENO"; then :
Chris@41 2109 ac_hi=$ac_mid; break
Chris@41 2110 else
Chris@41 2111 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
Chris@41 2112 if test $ac_lo -le $ac_mid; then
Chris@41 2113 ac_lo= ac_hi=
Chris@41 2114 break
Chris@41 2115 fi
Chris@41 2116 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
Chris@41 2117 fi
Chris@41 2118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@41 2119 done
Chris@41 2120 else
Chris@41 2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 2122 /* end confdefs.h. */
Chris@41 2123 $4
Chris@41 2124 int
Chris@41 2125 main ()
Chris@41 2126 {
Chris@41 2127 static int test_array [1 - 2 * !(($2) < 0)];
Chris@41 2128 test_array [0] = 0;
Chris@41 2129 return test_array [0];
Chris@41 2130
Chris@41 2131 ;
Chris@41 2132 return 0;
Chris@41 2133 }
Chris@41 2134 _ACEOF
Chris@41 2135 if ac_fn_c_try_compile "$LINENO"; then :
Chris@41 2136 ac_hi=-1 ac_mid=-1
Chris@41 2137 while :; do
Chris@41 2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 2139 /* end confdefs.h. */
Chris@41 2140 $4
Chris@41 2141 int
Chris@41 2142 main ()
Chris@41 2143 {
Chris@41 2144 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Chris@41 2145 test_array [0] = 0;
Chris@41 2146 return test_array [0];
Chris@41 2147
Chris@41 2148 ;
Chris@41 2149 return 0;
Chris@41 2150 }
Chris@41 2151 _ACEOF
Chris@41 2152 if ac_fn_c_try_compile "$LINENO"; then :
Chris@41 2153 ac_lo=$ac_mid; break
Chris@41 2154 else
Chris@41 2155 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
Chris@41 2156 if test $ac_mid -le $ac_hi; then
Chris@41 2157 ac_lo= ac_hi=
Chris@41 2158 break
Chris@41 2159 fi
Chris@41 2160 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
Chris@41 2161 fi
Chris@41 2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@41 2163 done
Chris@41 2164 else
Chris@41 2165 ac_lo= ac_hi=
Chris@41 2166 fi
Chris@41 2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@41 2168 fi
Chris@41 2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@41 2170 # Binary search between lo and hi bounds.
Chris@41 2171 while test "x$ac_lo" != "x$ac_hi"; do
Chris@41 2172 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
Chris@41 2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 2174 /* end confdefs.h. */
Chris@41 2175 $4
Chris@41 2176 int
Chris@41 2177 main ()
Chris@41 2178 {
Chris@41 2179 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Chris@41 2180 test_array [0] = 0;
Chris@41 2181 return test_array [0];
Chris@41 2182
Chris@41 2183 ;
Chris@41 2184 return 0;
Chris@41 2185 }
Chris@41 2186 _ACEOF
Chris@41 2187 if ac_fn_c_try_compile "$LINENO"; then :
Chris@41 2188 ac_hi=$ac_mid
Chris@41 2189 else
Chris@41 2190 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
Chris@41 2191 fi
Chris@41 2192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@41 2193 done
Chris@41 2194 case $ac_lo in #((
Chris@41 2195 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
Chris@41 2196 '') ac_retval=1 ;;
Chris@41 2197 esac
Chris@41 2198 else
Chris@41 2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 2200 /* end confdefs.h. */
Chris@41 2201 $4
Chris@41 2202 static long int longval () { return $2; }
Chris@41 2203 static unsigned long int ulongval () { return $2; }
Chris@41 2204 #include <stdio.h>
Chris@41 2205 #include <stdlib.h>
Chris@41 2206 int
Chris@41 2207 main ()
Chris@41 2208 {
Chris@41 2209
Chris@41 2210 FILE *f = fopen ("conftest.val", "w");
Chris@41 2211 if (! f)
Chris@41 2212 return 1;
Chris@41 2213 if (($2) < 0)
Chris@41 2214 {
Chris@41 2215 long int i = longval ();
Chris@41 2216 if (i != ($2))
Chris@41 2217 return 1;
Chris@41 2218 fprintf (f, "%ld", i);
Chris@41 2219 }
Chris@41 2220 else
Chris@41 2221 {
Chris@41 2222 unsigned long int i = ulongval ();
Chris@41 2223 if (i != ($2))
Chris@41 2224 return 1;
Chris@41 2225 fprintf (f, "%lu", i);
Chris@41 2226 }
Chris@41 2227 /* Do not output a trailing newline, as this causes \r\n confusion
Chris@41 2228 on some platforms. */
Chris@41 2229 return ferror (f) || fclose (f) != 0;
Chris@41 2230
Chris@41 2231 ;
Chris@41 2232 return 0;
Chris@41 2233 }
Chris@41 2234 _ACEOF
Chris@41 2235 if ac_fn_c_try_run "$LINENO"; then :
Chris@41 2236 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
Chris@41 2237 else
Chris@41 2238 ac_retval=1
Chris@41 2239 fi
Chris@41 2240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@41 2241 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@41 2242 rm -f conftest.val
Chris@41 2243
Chris@41 2244 fi
Chris@41 2245 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@41 2246 as_fn_set_status $ac_retval
Chris@41 2247
Chris@41 2248 } # ac_fn_c_compute_int
Chris@41 2249 cat >config.log <<_ACEOF
Chris@41 2250 This file contains any messages produced by compilers while
Chris@41 2251 running configure, to aid debugging if configure makes a mistake.
Chris@41 2252
Chris@41 2253 It was created by libsamplerate $as_me 0.1.9, which was
Chris@41 2254 generated by GNU Autoconf 2.69. Invocation command line was
Chris@41 2255
Chris@41 2256 $ $0 $@
Chris@41 2257
Chris@41 2258 _ACEOF
Chris@41 2259 exec 5>>config.log
Chris@41 2260 {
Chris@41 2261 cat <<_ASUNAME
Chris@41 2262 ## --------- ##
Chris@41 2263 ## Platform. ##
Chris@41 2264 ## --------- ##
Chris@41 2265
Chris@41 2266 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@41 2267 uname -m = `(uname -m) 2>/dev/null || echo unknown`
Chris@41 2268 uname -r = `(uname -r) 2>/dev/null || echo unknown`
Chris@41 2269 uname -s = `(uname -s) 2>/dev/null || echo unknown`
Chris@41 2270 uname -v = `(uname -v) 2>/dev/null || echo unknown`
Chris@41 2271
Chris@41 2272 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
Chris@41 2273 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
Chris@41 2274
Chris@41 2275 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
Chris@41 2276 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
Chris@41 2277 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Chris@41 2278 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Chris@41 2279 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
Chris@41 2280 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
Chris@41 2281 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
Chris@41 2282
Chris@41 2283 _ASUNAME
Chris@41 2284
Chris@41 2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 2286 for as_dir in $PATH
Chris@41 2287 do
Chris@41 2288 IFS=$as_save_IFS
Chris@41 2289 test -z "$as_dir" && as_dir=.
Chris@41 2290 $as_echo "PATH: $as_dir"
Chris@41 2291 done
Chris@41 2292 IFS=$as_save_IFS
Chris@41 2293
Chris@41 2294 } >&5
Chris@41 2295
Chris@41 2296 cat >&5 <<_ACEOF
Chris@41 2297
Chris@41 2298
Chris@41 2299 ## ----------- ##
Chris@41 2300 ## Core tests. ##
Chris@41 2301 ## ----------- ##
Chris@41 2302
Chris@41 2303 _ACEOF
Chris@41 2304
Chris@41 2305
Chris@41 2306 # Keep a trace of the command line.
Chris@41 2307 # Strip out --no-create and --no-recursion so they do not pile up.
Chris@41 2308 # Strip out --silent because we don't want to record it for future runs.
Chris@41 2309 # Also quote any args containing shell meta-characters.
Chris@41 2310 # Make two passes to allow for proper duplicate-argument suppression.
Chris@41 2311 ac_configure_args=
Chris@41 2312 ac_configure_args0=
Chris@41 2313 ac_configure_args1=
Chris@41 2314 ac_must_keep_next=false
Chris@41 2315 for ac_pass in 1 2
Chris@41 2316 do
Chris@41 2317 for ac_arg
Chris@41 2318 do
Chris@41 2319 case $ac_arg in
Chris@41 2320 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
Chris@41 2321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@41 2322 | -silent | --silent | --silen | --sile | --sil)
Chris@41 2323 continue ;;
Chris@41 2324 *\'*)
Chris@41 2325 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@41 2326 esac
Chris@41 2327 case $ac_pass in
Chris@41 2328 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Chris@41 2329 2)
Chris@41 2330 as_fn_append ac_configure_args1 " '$ac_arg'"
Chris@41 2331 if test $ac_must_keep_next = true; then
Chris@41 2332 ac_must_keep_next=false # Got value, back to normal.
Chris@41 2333 else
Chris@41 2334 case $ac_arg in
Chris@41 2335 *=* | --config-cache | -C | -disable-* | --disable-* \
Chris@41 2336 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
Chris@41 2337 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
Chris@41 2338 | -with-* | --with-* | -without-* | --without-* | --x)
Chris@41 2339 case "$ac_configure_args0 " in
Chris@41 2340 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
Chris@41 2341 esac
Chris@41 2342 ;;
Chris@41 2343 -* ) ac_must_keep_next=true ;;
Chris@41 2344 esac
Chris@41 2345 fi
Chris@41 2346 as_fn_append ac_configure_args " '$ac_arg'"
Chris@41 2347 ;;
Chris@41 2348 esac
Chris@41 2349 done
Chris@41 2350 done
Chris@41 2351 { ac_configure_args0=; unset ac_configure_args0;}
Chris@41 2352 { ac_configure_args1=; unset ac_configure_args1;}
Chris@41 2353
Chris@41 2354 # When interrupted or exit'd, cleanup temporary files, and complete
Chris@41 2355 # config.log. We remove comments because anyway the quotes in there
Chris@41 2356 # would cause problems or look ugly.
Chris@41 2357 # WARNING: Use '\'' to represent an apostrophe within the trap.
Chris@41 2358 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Chris@41 2359 trap 'exit_status=$?
Chris@41 2360 # Save into config.log some information that might help in debugging.
Chris@41 2361 {
Chris@41 2362 echo
Chris@41 2363
Chris@41 2364 $as_echo "## ---------------- ##
Chris@41 2365 ## Cache variables. ##
Chris@41 2366 ## ---------------- ##"
Chris@41 2367 echo
Chris@41 2368 # The following way of writing the cache mishandles newlines in values,
Chris@41 2369 (
Chris@41 2370 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
Chris@41 2371 eval ac_val=\$$ac_var
Chris@41 2372 case $ac_val in #(
Chris@41 2373 *${as_nl}*)
Chris@41 2374 case $ac_var in #(
Chris@41 2375 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Chris@41 2376 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Chris@41 2377 esac
Chris@41 2378 case $ac_var in #(
Chris@41 2379 _ | IFS | as_nl) ;; #(
Chris@41 2380 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Chris@41 2381 *) { eval $ac_var=; unset $ac_var;} ;;
Chris@41 2382 esac ;;
Chris@41 2383 esac
Chris@41 2384 done
Chris@41 2385 (set) 2>&1 |
Chris@41 2386 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
Chris@41 2387 *${as_nl}ac_space=\ *)
Chris@41 2388 sed -n \
Chris@41 2389 "s/'\''/'\''\\\\'\'''\''/g;
Chris@41 2390 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
Chris@41 2391 ;; #(
Chris@41 2392 *)
Chris@41 2393 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Chris@41 2394 ;;
Chris@41 2395 esac |
Chris@41 2396 sort
Chris@41 2397 )
Chris@41 2398 echo
Chris@41 2399
Chris@41 2400 $as_echo "## ----------------- ##
Chris@41 2401 ## Output variables. ##
Chris@41 2402 ## ----------------- ##"
Chris@41 2403 echo
Chris@41 2404 for ac_var in $ac_subst_vars
Chris@41 2405 do
Chris@41 2406 eval ac_val=\$$ac_var
Chris@41 2407 case $ac_val in
Chris@41 2408 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Chris@41 2409 esac
Chris@41 2410 $as_echo "$ac_var='\''$ac_val'\''"
Chris@41 2411 done | sort
Chris@41 2412 echo
Chris@41 2413
Chris@41 2414 if test -n "$ac_subst_files"; then
Chris@41 2415 $as_echo "## ------------------- ##
Chris@41 2416 ## File substitutions. ##
Chris@41 2417 ## ------------------- ##"
Chris@41 2418 echo
Chris@41 2419 for ac_var in $ac_subst_files
Chris@41 2420 do
Chris@41 2421 eval ac_val=\$$ac_var
Chris@41 2422 case $ac_val in
Chris@41 2423 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Chris@41 2424 esac
Chris@41 2425 $as_echo "$ac_var='\''$ac_val'\''"
Chris@41 2426 done | sort
Chris@41 2427 echo
Chris@41 2428 fi
Chris@41 2429
Chris@41 2430 if test -s confdefs.h; then
Chris@41 2431 $as_echo "## ----------- ##
Chris@41 2432 ## confdefs.h. ##
Chris@41 2433 ## ----------- ##"
Chris@41 2434 echo
Chris@41 2435 cat confdefs.h
Chris@41 2436 echo
Chris@41 2437 fi
Chris@41 2438 test "$ac_signal" != 0 &&
Chris@41 2439 $as_echo "$as_me: caught signal $ac_signal"
Chris@41 2440 $as_echo "$as_me: exit $exit_status"
Chris@41 2441 } >&5
Chris@41 2442 rm -f core *.core core.conftest.* &&
Chris@41 2443 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Chris@41 2444 exit $exit_status
Chris@41 2445 ' 0
Chris@41 2446 for ac_signal in 1 2 13 15; do
Chris@41 2447 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Chris@41 2448 done
Chris@41 2449 ac_signal=0
Chris@41 2450
Chris@41 2451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
Chris@41 2452 rm -f -r conftest* confdefs.h
Chris@41 2453
Chris@41 2454 $as_echo "/* confdefs.h */" > confdefs.h
Chris@41 2455
Chris@41 2456 # Predefined preprocessor variables.
Chris@41 2457
Chris@41 2458 cat >>confdefs.h <<_ACEOF
Chris@41 2459 #define PACKAGE_NAME "$PACKAGE_NAME"
Chris@41 2460 _ACEOF
Chris@41 2461
Chris@41 2462 cat >>confdefs.h <<_ACEOF
Chris@41 2463 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
Chris@41 2464 _ACEOF
Chris@41 2465
Chris@41 2466 cat >>confdefs.h <<_ACEOF
Chris@41 2467 #define PACKAGE_VERSION "$PACKAGE_VERSION"
Chris@41 2468 _ACEOF
Chris@41 2469
Chris@41 2470 cat >>confdefs.h <<_ACEOF
Chris@41 2471 #define PACKAGE_STRING "$PACKAGE_STRING"
Chris@41 2472 _ACEOF
Chris@41 2473
Chris@41 2474 cat >>confdefs.h <<_ACEOF
Chris@41 2475 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
Chris@41 2476 _ACEOF
Chris@41 2477
Chris@41 2478 cat >>confdefs.h <<_ACEOF
Chris@41 2479 #define PACKAGE_URL "$PACKAGE_URL"
Chris@41 2480 _ACEOF
Chris@41 2481
Chris@41 2482
Chris@41 2483 # Let the site file select an alternate cache file if it wants to.
Chris@41 2484 # Prefer an explicitly selected file to automatically selected ones.
Chris@41 2485 ac_site_file1=NONE
Chris@41 2486 ac_site_file2=NONE
Chris@41 2487 if test -n "$CONFIG_SITE"; then
Chris@41 2488 # We do not want a PATH search for config.site.
Chris@41 2489 case $CONFIG_SITE in #((
Chris@41 2490 -*) ac_site_file1=./$CONFIG_SITE;;
Chris@41 2491 */*) ac_site_file1=$CONFIG_SITE;;
Chris@41 2492 *) ac_site_file1=./$CONFIG_SITE;;
Chris@41 2493 esac
Chris@41 2494 elif test "x$prefix" != xNONE; then
Chris@41 2495 ac_site_file1=$prefix/share/config.site
Chris@41 2496 ac_site_file2=$prefix/etc/config.site
Chris@41 2497 else
Chris@41 2498 ac_site_file1=$ac_default_prefix/share/config.site
Chris@41 2499 ac_site_file2=$ac_default_prefix/etc/config.site
Chris@41 2500 fi
Chris@41 2501 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Chris@41 2502 do
Chris@41 2503 test "x$ac_site_file" = xNONE && continue
Chris@41 2504 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Chris@41 2505 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Chris@41 2506 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
Chris@41 2507 sed 's/^/| /' "$ac_site_file" >&5
Chris@41 2508 . "$ac_site_file" \
Chris@41 2509 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@41 2510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@41 2511 as_fn_error $? "failed to load site script $ac_site_file
Chris@41 2512 See \`config.log' for more details" "$LINENO" 5; }
Chris@41 2513 fi
Chris@41 2514 done
Chris@41 2515
Chris@41 2516 if test -r "$cache_file"; then
Chris@41 2517 # Some versions of bash will fail to source /dev/null (special files
Chris@41 2518 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
Chris@41 2519 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Chris@41 2520 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Chris@41 2521 $as_echo "$as_me: loading cache $cache_file" >&6;}
Chris@41 2522 case $cache_file in
Chris@41 2523 [\\/]* | ?:[\\/]* ) . "$cache_file";;
Chris@41 2524 *) . "./$cache_file";;
Chris@41 2525 esac
Chris@41 2526 fi
Chris@41 2527 else
Chris@41 2528 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Chris@41 2529 $as_echo "$as_me: creating cache $cache_file" >&6;}
Chris@41 2530 >$cache_file
Chris@41 2531 fi
Chris@41 2532
Chris@41 2533 # Check that the precious variables saved in the cache have kept the same
Chris@41 2534 # value.
Chris@41 2535 ac_cache_corrupted=false
Chris@41 2536 for ac_var in $ac_precious_vars; do
Chris@41 2537 eval ac_old_set=\$ac_cv_env_${ac_var}_set
Chris@41 2538 eval ac_new_set=\$ac_env_${ac_var}_set
Chris@41 2539 eval ac_old_val=\$ac_cv_env_${ac_var}_value
Chris@41 2540 eval ac_new_val=\$ac_env_${ac_var}_value
Chris@41 2541 case $ac_old_set,$ac_new_set in
Chris@41 2542 set,)
Chris@41 2543 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Chris@41 2544 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Chris@41 2545 ac_cache_corrupted=: ;;
Chris@41 2546 ,set)
Chris@41 2547 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
Chris@41 2548 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Chris@41 2549 ac_cache_corrupted=: ;;
Chris@41 2550 ,);;
Chris@41 2551 *)
Chris@41 2552 if test "x$ac_old_val" != "x$ac_new_val"; then
Chris@41 2553 # differences in whitespace do not lead to failure.
Chris@41 2554 ac_old_val_w=`echo x $ac_old_val`
Chris@41 2555 ac_new_val_w=`echo x $ac_new_val`
Chris@41 2556 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Chris@41 2557 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Chris@41 2558 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Chris@41 2559 ac_cache_corrupted=:
Chris@41 2560 else
Chris@41 2561 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Chris@41 2562 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
Chris@41 2563 eval $ac_var=\$ac_old_val
Chris@41 2564 fi
Chris@41 2565 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Chris@41 2566 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Chris@41 2567 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Chris@41 2568 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Chris@41 2569 fi;;
Chris@41 2570 esac
Chris@41 2571 # Pass precious variables to config.status.
Chris@41 2572 if test "$ac_new_set" = set; then
Chris@41 2573 case $ac_new_val in
Chris@41 2574 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@41 2575 *) ac_arg=$ac_var=$ac_new_val ;;
Chris@41 2576 esac
Chris@41 2577 case " $ac_configure_args " in
Chris@41 2578 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Chris@41 2579 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Chris@41 2580 esac
Chris@41 2581 fi
Chris@41 2582 done
Chris@41 2583 if $ac_cache_corrupted; then
Chris@41 2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@41 2585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@41 2586 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Chris@41 2587 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Chris@41 2588 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Chris@41 2589 fi
Chris@41 2590 ## -------------------- ##
Chris@41 2591 ## Main body of script. ##
Chris@41 2592 ## -------------------- ##
Chris@41 2593
Chris@41 2594 ac_ext=c
Chris@41 2595 ac_cpp='$CPP $CPPFLAGS'
Chris@41 2596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@41 2597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@41 2598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@41 2599
Chris@41 2600
Chris@41 2601
Chris@41 2602 # Put config stuff in Cfg.
Chris@41 2603 ac_aux_dir=
Chris@41 2604 for ac_dir in Cfg "$srcdir"/Cfg; do
Chris@41 2605 if test -f "$ac_dir/install-sh"; then
Chris@41 2606 ac_aux_dir=$ac_dir
Chris@41 2607 ac_install_sh="$ac_aux_dir/install-sh -c"
Chris@41 2608 break
Chris@41 2609 elif test -f "$ac_dir/install.sh"; then
Chris@41 2610 ac_aux_dir=$ac_dir
Chris@41 2611 ac_install_sh="$ac_aux_dir/install.sh -c"
Chris@41 2612 break
Chris@41 2613 elif test -f "$ac_dir/shtool"; then
Chris@41 2614 ac_aux_dir=$ac_dir
Chris@41 2615 ac_install_sh="$ac_aux_dir/shtool install -c"
Chris@41 2616 break
Chris@41 2617 fi
Chris@41 2618 done
Chris@41 2619 if test -z "$ac_aux_dir"; then
Chris@41 2620 as_fn_error $? "cannot find install-sh, install.sh, or shtool in Cfg \"$srcdir\"/Cfg" "$LINENO" 5
Chris@41 2621 fi
Chris@41 2622
Chris@41 2623 # These three variables are undocumented and unsupported,
Chris@41 2624 # and are intended to be withdrawn in a future Autoconf release.
Chris@41 2625 # They can cause serious problems if a builder's source tree is in a directory
Chris@41 2626 # whose full name contains unusual characters.
Chris@41 2627 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
Chris@41 2628 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
Chris@41 2629 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
Chris@41 2630
Chris@41 2631
Chris@41 2632
Chris@41 2633
Chris@41 2634 # Make sure we can run config.sub.
Chris@41 2635 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Chris@41 2636 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Chris@41 2637
Chris@41 2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Chris@41 2639 $as_echo_n "checking build system type... " >&6; }
Chris@41 2640 if ${ac_cv_build+:} false; then :
Chris@41 2641 $as_echo_n "(cached) " >&6
Chris@41 2642 else
Chris@41 2643 ac_build_alias=$build_alias
Chris@41 2644 test "x$ac_build_alias" = x &&
Chris@41 2645 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
Chris@41 2646 test "x$ac_build_alias" = x &&
Chris@41 2647 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Chris@41 2648 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Chris@41 2649 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Chris@41 2650
Chris@41 2651 fi
Chris@41 2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Chris@41 2653 $as_echo "$ac_cv_build" >&6; }
Chris@41 2654 case $ac_cv_build in
Chris@41 2655 *-*-*) ;;
Chris@41 2656 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Chris@41 2657 esac
Chris@41 2658 build=$ac_cv_build
Chris@41 2659 ac_save_IFS=$IFS; IFS='-'
Chris@41 2660 set x $ac_cv_build
Chris@41 2661 shift
Chris@41 2662 build_cpu=$1
Chris@41 2663 build_vendor=$2
Chris@41 2664 shift; shift
Chris@41 2665 # Remember, the first character of IFS is used to create $*,
Chris@41 2666 # except with old shells:
Chris@41 2667 build_os=$*
Chris@41 2668 IFS=$ac_save_IFS
Chris@41 2669 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Chris@41 2670
Chris@41 2671
Chris@41 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Chris@41 2673 $as_echo_n "checking host system type... " >&6; }
Chris@41 2674 if ${ac_cv_host+:} false; then :
Chris@41 2675 $as_echo_n "(cached) " >&6
Chris@41 2676 else
Chris@41 2677 if test "x$host_alias" = x; then
Chris@41 2678 ac_cv_host=$ac_cv_build
Chris@41 2679 else
Chris@41 2680 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Chris@41 2681 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Chris@41 2682 fi
Chris@41 2683
Chris@41 2684 fi
Chris@41 2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Chris@41 2686 $as_echo "$ac_cv_host" >&6; }
Chris@41 2687 case $ac_cv_host in
Chris@41 2688 *-*-*) ;;
Chris@41 2689 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Chris@41 2690 esac
Chris@41 2691 host=$ac_cv_host
Chris@41 2692 ac_save_IFS=$IFS; IFS='-'
Chris@41 2693 set x $ac_cv_host
Chris@41 2694 shift
Chris@41 2695 host_cpu=$1
Chris@41 2696 host_vendor=$2
Chris@41 2697 shift; shift
Chris@41 2698 # Remember, the first character of IFS is used to create $*,
Chris@41 2699 # except with old shells:
Chris@41 2700 host_os=$*
Chris@41 2701 IFS=$ac_save_IFS
Chris@41 2702 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Chris@41 2703
Chris@41 2704
Chris@41 2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
Chris@41 2706 $as_echo_n "checking target system type... " >&6; }
Chris@41 2707 if ${ac_cv_target+:} false; then :
Chris@41 2708 $as_echo_n "(cached) " >&6
Chris@41 2709 else
Chris@41 2710 if test "x$target_alias" = x; then
Chris@41 2711 ac_cv_target=$ac_cv_host
Chris@41 2712 else
Chris@41 2713 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Chris@41 2714 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
Chris@41 2715 fi
Chris@41 2716
Chris@41 2717 fi
Chris@41 2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
Chris@41 2719 $as_echo "$ac_cv_target" >&6; }
Chris@41 2720 case $ac_cv_target in
Chris@41 2721 *-*-*) ;;
Chris@41 2722 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
Chris@41 2723 esac
Chris@41 2724 target=$ac_cv_target
Chris@41 2725 ac_save_IFS=$IFS; IFS='-'
Chris@41 2726 set x $ac_cv_target
Chris@41 2727 shift
Chris@41 2728 target_cpu=$1
Chris@41 2729 target_vendor=$2
Chris@41 2730 shift; shift
Chris@41 2731 # Remember, the first character of IFS is used to create $*,
Chris@41 2732 # except with old shells:
Chris@41 2733 target_os=$*
Chris@41 2734 IFS=$ac_save_IFS
Chris@41 2735 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
Chris@41 2736
Chris@41 2737
Chris@41 2738 # The aliases save the names the user supplied, while $host etc.
Chris@41 2739 # will get canonicalized.
Chris@41 2740 test -n "$target_alias" &&
Chris@41 2741 test "$program_prefix$program_suffix$program_transform_name" = \
Chris@41 2742 NONENONEs,x,x, &&
Chris@41 2743 program_prefix=${target_alias}-
Chris@41 2744
Chris@41 2745
Chris@41 2746 ac_config_headers="$ac_config_headers src/config.h"
Chris@41 2747
Chris@41 2748
Chris@41 2749 am__api_version='1.15'
Chris@41 2750
Chris@41 2751 # Find a good install program. We prefer a C program (faster),
Chris@41 2752 # so one script is as good as another. But avoid the broken or
Chris@41 2753 # incompatible versions:
Chris@41 2754 # SysV /etc/install, /usr/sbin/install
Chris@41 2755 # SunOS /usr/etc/install
Chris@41 2756 # IRIX /sbin/install
Chris@41 2757 # AIX /bin/install
Chris@41 2758 # AmigaOS /C/install, which installs bootblocks on floppy discs
Chris@41 2759 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Chris@41 2760 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
Chris@41 2761 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Chris@41 2762 # OS/2's system install, which has a completely different semantic
Chris@41 2763 # ./install, which can be erroneously created by make from ./install.sh.
Chris@41 2764 # Reject install programs that cannot install multiple files.
Chris@41 2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Chris@41 2766 $as_echo_n "checking for a BSD-compatible install... " >&6; }
Chris@41 2767 if test -z "$INSTALL"; then
Chris@41 2768 if ${ac_cv_path_install+:} false; then :
Chris@41 2769 $as_echo_n "(cached) " >&6
Chris@41 2770 else
Chris@41 2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 2772 for as_dir in $PATH
Chris@41 2773 do
Chris@41 2774 IFS=$as_save_IFS
Chris@41 2775 test -z "$as_dir" && as_dir=.
Chris@41 2776 # Account for people who put trailing slashes in PATH elements.
Chris@41 2777 case $as_dir/ in #((
Chris@41 2778 ./ | .// | /[cC]/* | \
Chris@41 2779 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Chris@41 2780 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Chris@41 2781 /usr/ucb/* ) ;;
Chris@41 2782 *)
Chris@41 2783 # OSF1 and SCO ODT 3.0 have their own names for install.
Chris@41 2784 # Don't use installbsd from OSF since it installs stuff as root
Chris@41 2785 # by default.
Chris@41 2786 for ac_prog in ginstall scoinst install; do
Chris@41 2787 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 2788 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Chris@41 2789 if test $ac_prog = install &&
Chris@41 2790 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Chris@41 2791 # AIX install. It has an incompatible calling convention.
Chris@41 2792 :
Chris@41 2793 elif test $ac_prog = install &&
Chris@41 2794 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Chris@41 2795 # program-specific install script used by HP pwplus--don't use.
Chris@41 2796 :
Chris@41 2797 else
Chris@41 2798 rm -rf conftest.one conftest.two conftest.dir
Chris@41 2799 echo one > conftest.one
Chris@41 2800 echo two > conftest.two
Chris@41 2801 mkdir conftest.dir
Chris@41 2802 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
Chris@41 2803 test -s conftest.one && test -s conftest.two &&
Chris@41 2804 test -s conftest.dir/conftest.one &&
Chris@41 2805 test -s conftest.dir/conftest.two
Chris@41 2806 then
Chris@41 2807 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
Chris@41 2808 break 3
Chris@41 2809 fi
Chris@41 2810 fi
Chris@41 2811 fi
Chris@41 2812 done
Chris@41 2813 done
Chris@41 2814 ;;
Chris@41 2815 esac
Chris@41 2816
Chris@41 2817 done
Chris@41 2818 IFS=$as_save_IFS
Chris@41 2819
Chris@41 2820 rm -rf conftest.one conftest.two conftest.dir
Chris@41 2821
Chris@41 2822 fi
Chris@41 2823 if test "${ac_cv_path_install+set}" = set; then
Chris@41 2824 INSTALL=$ac_cv_path_install
Chris@41 2825 else
Chris@41 2826 # As a last resort, use the slow shell script. Don't cache a
Chris@41 2827 # value for INSTALL within a source directory, because that will
Chris@41 2828 # break other packages using the cache if that directory is
Chris@41 2829 # removed, or if the value is a relative name.
Chris@41 2830 INSTALL=$ac_install_sh
Chris@41 2831 fi
Chris@41 2832 fi
Chris@41 2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Chris@41 2834 $as_echo "$INSTALL" >&6; }
Chris@41 2835
Chris@41 2836 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
Chris@41 2837 # It thinks the first close brace ends the variable substitution.
Chris@41 2838 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Chris@41 2839
Chris@41 2840 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Chris@41 2841
Chris@41 2842 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Chris@41 2843
Chris@41 2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
Chris@41 2845 $as_echo_n "checking whether build environment is sane... " >&6; }
Chris@41 2846 # Reject unsafe characters in $srcdir or the absolute working directory
Chris@41 2847 # name. Accept space and tab only in the latter.
Chris@41 2848 am_lf='
Chris@41 2849 '
Chris@41 2850 case `pwd` in
Chris@41 2851 *[\\\"\#\$\&\'\`$am_lf]*)
Chris@41 2852 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
Chris@41 2853 esac
Chris@41 2854 case $srcdir in
Chris@41 2855 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Chris@41 2856 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
Chris@41 2857 esac
Chris@41 2858
Chris@41 2859 # Do 'set' in a subshell so we don't clobber the current shell's
Chris@41 2860 # arguments. Must try -L first in case configure is actually a
Chris@41 2861 # symlink; some systems play weird games with the mod time of symlinks
Chris@41 2862 # (eg FreeBSD returns the mod time of the symlink's containing
Chris@41 2863 # directory).
Chris@41 2864 if (
Chris@41 2865 am_has_slept=no
Chris@41 2866 for am_try in 1 2; do
Chris@41 2867 echo "timestamp, slept: $am_has_slept" > conftest.file
Chris@41 2868 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Chris@41 2869 if test "$*" = "X"; then
Chris@41 2870 # -L didn't work.
Chris@41 2871 set X `ls -t "$srcdir/configure" conftest.file`
Chris@41 2872 fi
Chris@41 2873 if test "$*" != "X $srcdir/configure conftest.file" \
Chris@41 2874 && test "$*" != "X conftest.file $srcdir/configure"; then
Chris@41 2875
Chris@41 2876 # If neither matched, then we have a broken ls. This can happen
Chris@41 2877 # if, for instance, CONFIG_SHELL is bash and it inherits a
Chris@41 2878 # broken ls alias from the environment. This has actually
Chris@41 2879 # happened. Such a system could not be considered "sane".
Chris@41 2880 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
Chris@41 2881 alias in your environment" "$LINENO" 5
Chris@41 2882 fi
Chris@41 2883 if test "$2" = conftest.file || test $am_try -eq 2; then
Chris@41 2884 break
Chris@41 2885 fi
Chris@41 2886 # Just in case.
Chris@41 2887 sleep 1
Chris@41 2888 am_has_slept=yes
Chris@41 2889 done
Chris@41 2890 test "$2" = conftest.file
Chris@41 2891 )
Chris@41 2892 then
Chris@41 2893 # Ok.
Chris@41 2894 :
Chris@41 2895 else
Chris@41 2896 as_fn_error $? "newly created file is older than distributed files!
Chris@41 2897 Check your system clock" "$LINENO" 5
Chris@41 2898 fi
Chris@41 2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@41 2900 $as_echo "yes" >&6; }
Chris@41 2901 # If we didn't sleep, we still need to ensure time stamps of config.status and
Chris@41 2902 # generated files are strictly newer.
Chris@41 2903 am_sleep_pid=
Chris@41 2904 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
Chris@41 2905 ( sleep 1 ) &
Chris@41 2906 am_sleep_pid=$!
Chris@41 2907 fi
Chris@41 2908
Chris@41 2909 rm -f conftest.file
Chris@41 2910
Chris@41 2911 test "$program_prefix" != NONE &&
Chris@41 2912 program_transform_name="s&^&$program_prefix&;$program_transform_name"
Chris@41 2913 # Use a double $ so make ignores it.
Chris@41 2914 test "$program_suffix" != NONE &&
Chris@41 2915 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Chris@41 2916 # Double any \ or $.
Chris@41 2917 # By default was `s,x,x', remove it if useless.
Chris@41 2918 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
Chris@41 2919 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Chris@41 2920
Chris@41 2921 # Expand $ac_aux_dir to an absolute path.
Chris@41 2922 am_aux_dir=`cd "$ac_aux_dir" && pwd`
Chris@41 2923
Chris@41 2924 if test x"${MISSING+set}" != xset; then
Chris@41 2925 case $am_aux_dir in
Chris@41 2926 *\ * | *\ *)
Chris@41 2927 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
Chris@41 2928 *)
Chris@41 2929 MISSING="\${SHELL} $am_aux_dir/missing" ;;
Chris@41 2930 esac
Chris@41 2931 fi
Chris@41 2932 # Use eval to expand $SHELL
Chris@41 2933 if eval "$MISSING --is-lightweight"; then
Chris@41 2934 am_missing_run="$MISSING "
Chris@41 2935 else
Chris@41 2936 am_missing_run=
Chris@41 2937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
Chris@41 2938 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
Chris@41 2939 fi
Chris@41 2940
Chris@41 2941 if test x"${install_sh+set}" != xset; then
Chris@41 2942 case $am_aux_dir in
Chris@41 2943 *\ * | *\ *)
Chris@41 2944 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
Chris@41 2945 *)
Chris@41 2946 install_sh="\${SHELL} $am_aux_dir/install-sh"
Chris@41 2947 esac
Chris@41 2948 fi
Chris@41 2949
Chris@41 2950 # Installed binaries are usually stripped using 'strip' when the user
Chris@41 2951 # run "make install-strip". However 'strip' might not be the right
Chris@41 2952 # tool to use in cross-compilation environments, therefore Automake
Chris@41 2953 # will honor the 'STRIP' environment variable to overrule this program.
Chris@41 2954 if test "$cross_compiling" != no; then
Chris@41 2955 if test -n "$ac_tool_prefix"; then
Chris@41 2956 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
Chris@41 2957 set dummy ${ac_tool_prefix}strip; ac_word=$2
Chris@41 2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 2959 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 2960 if ${ac_cv_prog_STRIP+:} false; then :
Chris@41 2961 $as_echo_n "(cached) " >&6
Chris@41 2962 else
Chris@41 2963 if test -n "$STRIP"; then
Chris@41 2964 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
Chris@41 2965 else
Chris@41 2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 2967 for as_dir in $PATH
Chris@41 2968 do
Chris@41 2969 IFS=$as_save_IFS
Chris@41 2970 test -z "$as_dir" && as_dir=.
Chris@41 2971 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 2972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 2973 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Chris@41 2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 2975 break 2
Chris@41 2976 fi
Chris@41 2977 done
Chris@41 2978 done
Chris@41 2979 IFS=$as_save_IFS
Chris@41 2980
Chris@41 2981 fi
Chris@41 2982 fi
Chris@41 2983 STRIP=$ac_cv_prog_STRIP
Chris@41 2984 if test -n "$STRIP"; then
Chris@41 2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Chris@41 2986 $as_echo "$STRIP" >&6; }
Chris@41 2987 else
Chris@41 2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 2989 $as_echo "no" >&6; }
Chris@41 2990 fi
Chris@41 2991
Chris@41 2992
Chris@41 2993 fi
Chris@41 2994 if test -z "$ac_cv_prog_STRIP"; then
Chris@41 2995 ac_ct_STRIP=$STRIP
Chris@41 2996 # Extract the first word of "strip", so it can be a program name with args.
Chris@41 2997 set dummy strip; ac_word=$2
Chris@41 2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 2999 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 3000 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Chris@41 3001 $as_echo_n "(cached) " >&6
Chris@41 3002 else
Chris@41 3003 if test -n "$ac_ct_STRIP"; then
Chris@41 3004 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Chris@41 3005 else
Chris@41 3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 3007 for as_dir in $PATH
Chris@41 3008 do
Chris@41 3009 IFS=$as_save_IFS
Chris@41 3010 test -z "$as_dir" && as_dir=.
Chris@41 3011 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 3012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 3013 ac_cv_prog_ac_ct_STRIP="strip"
Chris@41 3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 3015 break 2
Chris@41 3016 fi
Chris@41 3017 done
Chris@41 3018 done
Chris@41 3019 IFS=$as_save_IFS
Chris@41 3020
Chris@41 3021 fi
Chris@41 3022 fi
Chris@41 3023 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
Chris@41 3024 if test -n "$ac_ct_STRIP"; then
Chris@41 3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Chris@41 3026 $as_echo "$ac_ct_STRIP" >&6; }
Chris@41 3027 else
Chris@41 3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 3029 $as_echo "no" >&6; }
Chris@41 3030 fi
Chris@41 3031
Chris@41 3032 if test "x$ac_ct_STRIP" = x; then
Chris@41 3033 STRIP=":"
Chris@41 3034 else
Chris@41 3035 case $cross_compiling:$ac_tool_warned in
Chris@41 3036 yes:)
Chris@41 3037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@41 3038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@41 3039 ac_tool_warned=yes ;;
Chris@41 3040 esac
Chris@41 3041 STRIP=$ac_ct_STRIP
Chris@41 3042 fi
Chris@41 3043 else
Chris@41 3044 STRIP="$ac_cv_prog_STRIP"
Chris@41 3045 fi
Chris@41 3046
Chris@41 3047 fi
Chris@41 3048 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
Chris@41 3049
Chris@41 3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
Chris@41 3051 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
Chris@41 3052 if test -z "$MKDIR_P"; then
Chris@41 3053 if ${ac_cv_path_mkdir+:} false; then :
Chris@41 3054 $as_echo_n "(cached) " >&6
Chris@41 3055 else
Chris@41 3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 3057 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
Chris@41 3058 do
Chris@41 3059 IFS=$as_save_IFS
Chris@41 3060 test -z "$as_dir" && as_dir=.
Chris@41 3061 for ac_prog in mkdir gmkdir; do
Chris@41 3062 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 3063 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Chris@41 3064 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
Chris@41 3065 'mkdir (GNU coreutils) '* | \
Chris@41 3066 'mkdir (coreutils) '* | \
Chris@41 3067 'mkdir (fileutils) '4.1*)
Chris@41 3068 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
Chris@41 3069 break 3;;
Chris@41 3070 esac
Chris@41 3071 done
Chris@41 3072 done
Chris@41 3073 done
Chris@41 3074 IFS=$as_save_IFS
Chris@41 3075
Chris@41 3076 fi
Chris@41 3077
Chris@41 3078 test -d ./--version && rmdir ./--version
Chris@41 3079 if test "${ac_cv_path_mkdir+set}" = set; then
Chris@41 3080 MKDIR_P="$ac_cv_path_mkdir -p"
Chris@41 3081 else
Chris@41 3082 # As a last resort, use the slow shell script. Don't cache a
Chris@41 3083 # value for MKDIR_P within a source directory, because that will
Chris@41 3084 # break other packages using the cache if that directory is
Chris@41 3085 # removed, or if the value is a relative name.
Chris@41 3086 MKDIR_P="$ac_install_sh -d"
Chris@41 3087 fi
Chris@41 3088 fi
Chris@41 3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
Chris@41 3090 $as_echo "$MKDIR_P" >&6; }
Chris@41 3091
Chris@41 3092 for ac_prog in gawk mawk nawk awk
Chris@41 3093 do
Chris@41 3094 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@41 3095 set dummy $ac_prog; ac_word=$2
Chris@41 3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 3097 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 3098 if ${ac_cv_prog_AWK+:} false; then :
Chris@41 3099 $as_echo_n "(cached) " >&6
Chris@41 3100 else
Chris@41 3101 if test -n "$AWK"; then
Chris@41 3102 ac_cv_prog_AWK="$AWK" # Let the user override the test.
Chris@41 3103 else
Chris@41 3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 3105 for as_dir in $PATH
Chris@41 3106 do
Chris@41 3107 IFS=$as_save_IFS
Chris@41 3108 test -z "$as_dir" && as_dir=.
Chris@41 3109 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 3110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 3111 ac_cv_prog_AWK="$ac_prog"
Chris@41 3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 3113 break 2
Chris@41 3114 fi
Chris@41 3115 done
Chris@41 3116 done
Chris@41 3117 IFS=$as_save_IFS
Chris@41 3118
Chris@41 3119 fi
Chris@41 3120 fi
Chris@41 3121 AWK=$ac_cv_prog_AWK
Chris@41 3122 if test -n "$AWK"; then
Chris@41 3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Chris@41 3124 $as_echo "$AWK" >&6; }
Chris@41 3125 else
Chris@41 3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 3127 $as_echo "no" >&6; }
Chris@41 3128 fi
Chris@41 3129
Chris@41 3130
Chris@41 3131 test -n "$AWK" && break
Chris@41 3132 done
Chris@41 3133
Chris@41 3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Chris@41 3135 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
Chris@41 3136 set x ${MAKE-make}
Chris@41 3137 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Chris@41 3138 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Chris@41 3139 $as_echo_n "(cached) " >&6
Chris@41 3140 else
Chris@41 3141 cat >conftest.make <<\_ACEOF
Chris@41 3142 SHELL = /bin/sh
Chris@41 3143 all:
Chris@41 3144 @echo '@@@%%%=$(MAKE)=@@@%%%'
Chris@41 3145 _ACEOF
Chris@41 3146 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Chris@41 3147 case `${MAKE-make} -f conftest.make 2>/dev/null` in
Chris@41 3148 *@@@%%%=?*=@@@%%%*)
Chris@41 3149 eval ac_cv_prog_make_${ac_make}_set=yes;;
Chris@41 3150 *)
Chris@41 3151 eval ac_cv_prog_make_${ac_make}_set=no;;
Chris@41 3152 esac
Chris@41 3153 rm -f conftest.make
Chris@41 3154 fi
Chris@41 3155 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Chris@41 3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@41 3157 $as_echo "yes" >&6; }
Chris@41 3158 SET_MAKE=
Chris@41 3159 else
Chris@41 3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 3161 $as_echo "no" >&6; }
Chris@41 3162 SET_MAKE="MAKE=${MAKE-make}"
Chris@41 3163 fi
Chris@41 3164
Chris@41 3165 rm -rf .tst 2>/dev/null
Chris@41 3166 mkdir .tst 2>/dev/null
Chris@41 3167 if test -d .tst; then
Chris@41 3168 am__leading_dot=.
Chris@41 3169 else
Chris@41 3170 am__leading_dot=_
Chris@41 3171 fi
Chris@41 3172 rmdir .tst 2>/dev/null
Chris@41 3173
Chris@41 3174 # Check whether --enable-silent-rules was given.
Chris@41 3175 if test "${enable_silent_rules+set}" = set; then :
Chris@41 3176 enableval=$enable_silent_rules;
Chris@41 3177 fi
Chris@41 3178
Chris@41 3179 case $enable_silent_rules in # (((
Chris@41 3180 yes) AM_DEFAULT_VERBOSITY=0;;
Chris@41 3181 no) AM_DEFAULT_VERBOSITY=1;;
Chris@41 3182 *) AM_DEFAULT_VERBOSITY=1;;
Chris@41 3183 esac
Chris@41 3184 am_make=${MAKE-make}
Chris@41 3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
Chris@41 3186 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
Chris@41 3187 if ${am_cv_make_support_nested_variables+:} false; then :
Chris@41 3188 $as_echo_n "(cached) " >&6
Chris@41 3189 else
Chris@41 3190 if $as_echo 'TRUE=$(BAR$(V))
Chris@41 3191 BAR0=false
Chris@41 3192 BAR1=true
Chris@41 3193 V=1
Chris@41 3194 am__doit:
Chris@41 3195 @$(TRUE)
Chris@41 3196 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
Chris@41 3197 am_cv_make_support_nested_variables=yes
Chris@41 3198 else
Chris@41 3199 am_cv_make_support_nested_variables=no
Chris@41 3200 fi
Chris@41 3201 fi
Chris@41 3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
Chris@41 3203 $as_echo "$am_cv_make_support_nested_variables" >&6; }
Chris@41 3204 if test $am_cv_make_support_nested_variables = yes; then
Chris@41 3205 AM_V='$(V)'
Chris@41 3206 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
Chris@41 3207 else
Chris@41 3208 AM_V=$AM_DEFAULT_VERBOSITY
Chris@41 3209 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
Chris@41 3210 fi
Chris@41 3211 AM_BACKSLASH='\'
Chris@41 3212
Chris@41 3213 if test "`cd $srcdir && pwd`" != "`pwd`"; then
Chris@41 3214 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
Chris@41 3215 # is not polluted with repeated "-I."
Chris@41 3216 am__isrc=' -I$(srcdir)'
Chris@41 3217 # test to see if srcdir already configured
Chris@41 3218 if test -f $srcdir/config.status; then
Chris@41 3219 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Chris@41 3220 fi
Chris@41 3221 fi
Chris@41 3222
Chris@41 3223 # test whether we have cygpath
Chris@41 3224 if test -z "$CYGPATH_W"; then
Chris@41 3225 if (cygpath --version) >/dev/null 2>/dev/null; then
Chris@41 3226 CYGPATH_W='cygpath -w'
Chris@41 3227 else
Chris@41 3228 CYGPATH_W=echo
Chris@41 3229 fi
Chris@41 3230 fi
Chris@41 3231
Chris@41 3232
Chris@41 3233 # Define the identity of the package.
Chris@41 3234
Chris@41 3235 PACKAGE=$PACKAGE_NAME
Chris@41 3236 VERSION=$PACKAGE_VERSION
Chris@41 3237
Chris@41 3238
Chris@41 3239 cat >>confdefs.h <<_ACEOF
Chris@41 3240 #define PACKAGE "$PACKAGE"
Chris@41 3241 _ACEOF
Chris@41 3242
Chris@41 3243
Chris@41 3244 cat >>confdefs.h <<_ACEOF
Chris@41 3245 #define VERSION "$VERSION"
Chris@41 3246 _ACEOF
Chris@41 3247
Chris@41 3248 # Some tools Automake needs.
Chris@41 3249
Chris@41 3250 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
Chris@41 3251
Chris@41 3252
Chris@41 3253 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
Chris@41 3254
Chris@41 3255
Chris@41 3256 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
Chris@41 3257
Chris@41 3258
Chris@41 3259 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
Chris@41 3260
Chris@41 3261
Chris@41 3262 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
Chris@41 3263
Chris@41 3264 # For better backward compatibility. To be removed once Automake 1.9.x
Chris@41 3265 # dies out for good. For more background, see:
Chris@41 3266 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
Chris@41 3267 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
Chris@41 3268 mkdir_p='$(MKDIR_P)'
Chris@41 3269
Chris@41 3270 # We need awk for the "check" target (and possibly the TAP driver). The
Chris@41 3271 # system "awk" is bad on some platforms.
Chris@41 3272 # Always define AMTAR for backward compatibility. Yes, it's still used
Chris@41 3273 # in the wild :-( We should find a proper way to deprecate it ...
Chris@41 3274 AMTAR='$${TAR-tar}'
Chris@41 3275
Chris@41 3276
Chris@41 3277 # We'll loop over all known methods to create a tar archive until one works.
Chris@41 3278 _am_tools='gnutar pax cpio none'
Chris@41 3279
Chris@41 3280 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
Chris@41 3281
Chris@41 3282
Chris@41 3283
Chris@41 3284
Chris@41 3285
Chris@41 3286
Chris@41 3287 # POSIX will say in a future version that running "rm -f" with no argument
Chris@41 3288 # is OK; and we want to be able to make that assumption in our Makefile
Chris@41 3289 # recipes. So use an aggressive probe to check that the usage we want is
Chris@41 3290 # actually supported "in the wild" to an acceptable degree.
Chris@41 3291 # See automake bug#10828.
Chris@41 3292 # To make any issue more visible, cause the running configure to be aborted
Chris@41 3293 # by default if the 'rm' program in use doesn't match our expectations; the
Chris@41 3294 # user can still override this though.
Chris@41 3295 if rm -f && rm -fr && rm -rf; then : OK; else
Chris@41 3296 cat >&2 <<'END'
Chris@41 3297 Oops!
Chris@41 3298
Chris@41 3299 Your 'rm' program seems unable to run without file operands specified
Chris@41 3300 on the command line, even when the '-f' option is present. This is contrary
Chris@41 3301 to the behaviour of most rm programs out there, and not conforming with
Chris@41 3302 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
Chris@41 3303
Chris@41 3304 Please tell bug-automake@gnu.org about your system, including the value
Chris@41 3305 of your $PATH and any error possibly output before this message. This
Chris@41 3306 can help us improve future automake versions.
Chris@41 3307
Chris@41 3308 END
Chris@41 3309 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
Chris@41 3310 echo 'Configuration will proceed anyway, since you have set the' >&2
Chris@41 3311 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
Chris@41 3312 echo >&2
Chris@41 3313 else
Chris@41 3314 cat >&2 <<'END'
Chris@41 3315 Aborting the configuration process, to ensure you take notice of the issue.
Chris@41 3316
Chris@41 3317 You can download and install GNU coreutils to get an 'rm' implementation
Chris@41 3318 that behaves properly: <http://www.gnu.org/software/coreutils/>.
Chris@41 3319
Chris@41 3320 If you want to complete the configuration process using your problematic
Chris@41 3321 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
Chris@41 3322 to "yes", and re-run configure.
Chris@41 3323
Chris@41 3324 END
Chris@41 3325 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
Chris@41 3326 fi
Chris@41 3327 fi
Chris@41 3328
Chris@41 3329 # Check whether --enable-silent-rules was given.
Chris@41 3330 if test "${enable_silent_rules+set}" = set; then :
Chris@41 3331 enableval=$enable_silent_rules;
Chris@41 3332 fi
Chris@41 3333
Chris@41 3334 case $enable_silent_rules in # (((
Chris@41 3335 yes) AM_DEFAULT_VERBOSITY=0;;
Chris@41 3336 no) AM_DEFAULT_VERBOSITY=1;;
Chris@41 3337 *) AM_DEFAULT_VERBOSITY=0;;
Chris@41 3338 esac
Chris@41 3339 am_make=${MAKE-make}
Chris@41 3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
Chris@41 3341 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
Chris@41 3342 if ${am_cv_make_support_nested_variables+:} false; then :
Chris@41 3343 $as_echo_n "(cached) " >&6
Chris@41 3344 else
Chris@41 3345 if $as_echo 'TRUE=$(BAR$(V))
Chris@41 3346 BAR0=false
Chris@41 3347 BAR1=true
Chris@41 3348 V=1
Chris@41 3349 am__doit:
Chris@41 3350 @$(TRUE)
Chris@41 3351 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
Chris@41 3352 am_cv_make_support_nested_variables=yes
Chris@41 3353 else
Chris@41 3354 am_cv_make_support_nested_variables=no
Chris@41 3355 fi
Chris@41 3356 fi
Chris@41 3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
Chris@41 3358 $as_echo "$am_cv_make_support_nested_variables" >&6; }
Chris@41 3359 if test $am_cv_make_support_nested_variables = yes; then
Chris@41 3360 AM_V='$(V)'
Chris@41 3361 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
Chris@41 3362 else
Chris@41 3363 AM_V=$AM_DEFAULT_VERBOSITY
Chris@41 3364 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
Chris@41 3365 fi
Chris@41 3366 AM_BACKSLASH='\'
Chris@41 3367
Chris@41 3368
Chris@41 3369 ACLOCAL_AMFLAGS="-I M4"
Chris@41 3370
Chris@41 3371
Chris@41 3372 ac_ext=c
Chris@41 3373 ac_cpp='$CPP $CPPFLAGS'
Chris@41 3374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@41 3375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@41 3376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@41 3377
Chris@41 3378
Chris@41 3379 ac_ext=c
Chris@41 3380 ac_cpp='$CPP $CPPFLAGS'
Chris@41 3381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@41 3382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@41 3383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@41 3384 if test -n "$ac_tool_prefix"; then
Chris@41 3385 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
Chris@41 3386 set dummy ${ac_tool_prefix}gcc; ac_word=$2
Chris@41 3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 3388 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 3389 if ${ac_cv_prog_CC+:} false; then :
Chris@41 3390 $as_echo_n "(cached) " >&6
Chris@41 3391 else
Chris@41 3392 if test -n "$CC"; then
Chris@41 3393 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@41 3394 else
Chris@41 3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 3396 for as_dir in $PATH
Chris@41 3397 do
Chris@41 3398 IFS=$as_save_IFS
Chris@41 3399 test -z "$as_dir" && as_dir=.
Chris@41 3400 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 3401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 3402 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Chris@41 3403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 3404 break 2
Chris@41 3405 fi
Chris@41 3406 done
Chris@41 3407 done
Chris@41 3408 IFS=$as_save_IFS
Chris@41 3409
Chris@41 3410 fi
Chris@41 3411 fi
Chris@41 3412 CC=$ac_cv_prog_CC
Chris@41 3413 if test -n "$CC"; then
Chris@41 3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@41 3415 $as_echo "$CC" >&6; }
Chris@41 3416 else
Chris@41 3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 3418 $as_echo "no" >&6; }
Chris@41 3419 fi
Chris@41 3420
Chris@41 3421
Chris@41 3422 fi
Chris@41 3423 if test -z "$ac_cv_prog_CC"; then
Chris@41 3424 ac_ct_CC=$CC
Chris@41 3425 # Extract the first word of "gcc", so it can be a program name with args.
Chris@41 3426 set dummy gcc; ac_word=$2
Chris@41 3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 3428 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 3429 if ${ac_cv_prog_ac_ct_CC+:} false; then :
Chris@41 3430 $as_echo_n "(cached) " >&6
Chris@41 3431 else
Chris@41 3432 if test -n "$ac_ct_CC"; then
Chris@41 3433 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
Chris@41 3434 else
Chris@41 3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 3436 for as_dir in $PATH
Chris@41 3437 do
Chris@41 3438 IFS=$as_save_IFS
Chris@41 3439 test -z "$as_dir" && as_dir=.
Chris@41 3440 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 3441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 3442 ac_cv_prog_ac_ct_CC="gcc"
Chris@41 3443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 3444 break 2
Chris@41 3445 fi
Chris@41 3446 done
Chris@41 3447 done
Chris@41 3448 IFS=$as_save_IFS
Chris@41 3449
Chris@41 3450 fi
Chris@41 3451 fi
Chris@41 3452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
Chris@41 3453 if test -n "$ac_ct_CC"; then
Chris@41 3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Chris@41 3455 $as_echo "$ac_ct_CC" >&6; }
Chris@41 3456 else
Chris@41 3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 3458 $as_echo "no" >&6; }
Chris@41 3459 fi
Chris@41 3460
Chris@41 3461 if test "x$ac_ct_CC" = x; then
Chris@41 3462 CC=""
Chris@41 3463 else
Chris@41 3464 case $cross_compiling:$ac_tool_warned in
Chris@41 3465 yes:)
Chris@41 3466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@41 3467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@41 3468 ac_tool_warned=yes ;;
Chris@41 3469 esac
Chris@41 3470 CC=$ac_ct_CC
Chris@41 3471 fi
Chris@41 3472 else
Chris@41 3473 CC="$ac_cv_prog_CC"
Chris@41 3474 fi
Chris@41 3475
Chris@41 3476 if test -z "$CC"; then
Chris@41 3477 if test -n "$ac_tool_prefix"; then
Chris@41 3478 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Chris@41 3479 set dummy ${ac_tool_prefix}cc; ac_word=$2
Chris@41 3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 3481 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 3482 if ${ac_cv_prog_CC+:} false; then :
Chris@41 3483 $as_echo_n "(cached) " >&6
Chris@41 3484 else
Chris@41 3485 if test -n "$CC"; then
Chris@41 3486 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@41 3487 else
Chris@41 3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 3489 for as_dir in $PATH
Chris@41 3490 do
Chris@41 3491 IFS=$as_save_IFS
Chris@41 3492 test -z "$as_dir" && as_dir=.
Chris@41 3493 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 3494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 3495 ac_cv_prog_CC="${ac_tool_prefix}cc"
Chris@41 3496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 3497 break 2
Chris@41 3498 fi
Chris@41 3499 done
Chris@41 3500 done
Chris@41 3501 IFS=$as_save_IFS
Chris@41 3502
Chris@41 3503 fi
Chris@41 3504 fi
Chris@41 3505 CC=$ac_cv_prog_CC
Chris@41 3506 if test -n "$CC"; then
Chris@41 3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@41 3508 $as_echo "$CC" >&6; }
Chris@41 3509 else
Chris@41 3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 3511 $as_echo "no" >&6; }
Chris@41 3512 fi
Chris@41 3513
Chris@41 3514
Chris@41 3515 fi
Chris@41 3516 fi
Chris@41 3517 if test -z "$CC"; then
Chris@41 3518 # Extract the first word of "cc", so it can be a program name with args.
Chris@41 3519 set dummy cc; ac_word=$2
Chris@41 3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 3521 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 3522 if ${ac_cv_prog_CC+:} false; then :
Chris@41 3523 $as_echo_n "(cached) " >&6
Chris@41 3524 else
Chris@41 3525 if test -n "$CC"; then
Chris@41 3526 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@41 3527 else
Chris@41 3528 ac_prog_rejected=no
Chris@41 3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 3530 for as_dir in $PATH
Chris@41 3531 do
Chris@41 3532 IFS=$as_save_IFS
Chris@41 3533 test -z "$as_dir" && as_dir=.
Chris@41 3534 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 3535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 3536 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
Chris@41 3537 ac_prog_rejected=yes
Chris@41 3538 continue
Chris@41 3539 fi
Chris@41 3540 ac_cv_prog_CC="cc"
Chris@41 3541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 3542 break 2
Chris@41 3543 fi
Chris@41 3544 done
Chris@41 3545 done
Chris@41 3546 IFS=$as_save_IFS
Chris@41 3547
Chris@41 3548 if test $ac_prog_rejected = yes; then
Chris@41 3549 # We found a bogon in the path, so make sure we never use it.
Chris@41 3550 set dummy $ac_cv_prog_CC
Chris@41 3551 shift
Chris@41 3552 if test $# != 0; then
Chris@41 3553 # We chose a different compiler from the bogus one.
Chris@41 3554 # However, it has the same basename, so the bogon will be chosen
Chris@41 3555 # first if we set CC to just the basename; use the full file name.
Chris@41 3556 shift
Chris@41 3557 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Chris@41 3558 fi
Chris@41 3559 fi
Chris@41 3560 fi
Chris@41 3561 fi
Chris@41 3562 CC=$ac_cv_prog_CC
Chris@41 3563 if test -n "$CC"; then
Chris@41 3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@41 3565 $as_echo "$CC" >&6; }
Chris@41 3566 else
Chris@41 3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 3568 $as_echo "no" >&6; }
Chris@41 3569 fi
Chris@41 3570
Chris@41 3571
Chris@41 3572 fi
Chris@41 3573 if test -z "$CC"; then
Chris@41 3574 if test -n "$ac_tool_prefix"; then
Chris@41 3575 for ac_prog in cl.exe
Chris@41 3576 do
Chris@41 3577 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@41 3578 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@41 3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 3580 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 3581 if ${ac_cv_prog_CC+:} false; then :
Chris@41 3582 $as_echo_n "(cached) " >&6
Chris@41 3583 else
Chris@41 3584 if test -n "$CC"; then
Chris@41 3585 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@41 3586 else
Chris@41 3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 3588 for as_dir in $PATH
Chris@41 3589 do
Chris@41 3590 IFS=$as_save_IFS
Chris@41 3591 test -z "$as_dir" && as_dir=.
Chris@41 3592 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 3593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 3594 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Chris@41 3595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 3596 break 2
Chris@41 3597 fi
Chris@41 3598 done
Chris@41 3599 done
Chris@41 3600 IFS=$as_save_IFS
Chris@41 3601
Chris@41 3602 fi
Chris@41 3603 fi
Chris@41 3604 CC=$ac_cv_prog_CC
Chris@41 3605 if test -n "$CC"; then
Chris@41 3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@41 3607 $as_echo "$CC" >&6; }
Chris@41 3608 else
Chris@41 3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 3610 $as_echo "no" >&6; }
Chris@41 3611 fi
Chris@41 3612
Chris@41 3613
Chris@41 3614 test -n "$CC" && break
Chris@41 3615 done
Chris@41 3616 fi
Chris@41 3617 if test -z "$CC"; then
Chris@41 3618 ac_ct_CC=$CC
Chris@41 3619 for ac_prog in cl.exe
Chris@41 3620 do
Chris@41 3621 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@41 3622 set dummy $ac_prog; ac_word=$2
Chris@41 3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 3624 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 3625 if ${ac_cv_prog_ac_ct_CC+:} false; then :
Chris@41 3626 $as_echo_n "(cached) " >&6
Chris@41 3627 else
Chris@41 3628 if test -n "$ac_ct_CC"; then
Chris@41 3629 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
Chris@41 3630 else
Chris@41 3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 3632 for as_dir in $PATH
Chris@41 3633 do
Chris@41 3634 IFS=$as_save_IFS
Chris@41 3635 test -z "$as_dir" && as_dir=.
Chris@41 3636 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 3637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 3638 ac_cv_prog_ac_ct_CC="$ac_prog"
Chris@41 3639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 3640 break 2
Chris@41 3641 fi
Chris@41 3642 done
Chris@41 3643 done
Chris@41 3644 IFS=$as_save_IFS
Chris@41 3645
Chris@41 3646 fi
Chris@41 3647 fi
Chris@41 3648 ac_ct_CC=$ac_cv_prog_ac_ct_CC
Chris@41 3649 if test -n "$ac_ct_CC"; then
Chris@41 3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Chris@41 3651 $as_echo "$ac_ct_CC" >&6; }
Chris@41 3652 else
Chris@41 3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 3654 $as_echo "no" >&6; }
Chris@41 3655 fi
Chris@41 3656
Chris@41 3657
Chris@41 3658 test -n "$ac_ct_CC" && break
Chris@41 3659 done
Chris@41 3660
Chris@41 3661 if test "x$ac_ct_CC" = x; then
Chris@41 3662 CC=""
Chris@41 3663 else
Chris@41 3664 case $cross_compiling:$ac_tool_warned in
Chris@41 3665 yes:)
Chris@41 3666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@41 3667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@41 3668 ac_tool_warned=yes ;;
Chris@41 3669 esac
Chris@41 3670 CC=$ac_ct_CC
Chris@41 3671 fi
Chris@41 3672 fi
Chris@41 3673
Chris@41 3674 fi
Chris@41 3675
Chris@41 3676
Chris@41 3677 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@41 3678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@41 3679 as_fn_error $? "no acceptable C compiler found in \$PATH
Chris@41 3680 See \`config.log' for more details" "$LINENO" 5; }
Chris@41 3681
Chris@41 3682 # Provide some information about the compiler.
Chris@41 3683 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Chris@41 3684 set X $ac_compile
Chris@41 3685 ac_compiler=$2
Chris@41 3686 for ac_option in --version -v -V -qversion; do
Chris@41 3687 { { ac_try="$ac_compiler $ac_option >&5"
Chris@41 3688 case "(($ac_try" in
Chris@41 3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@41 3690 *) ac_try_echo=$ac_try;;
Chris@41 3691 esac
Chris@41 3692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@41 3693 $as_echo "$ac_try_echo"; } >&5
Chris@41 3694 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Chris@41 3695 ac_status=$?
Chris@41 3696 if test -s conftest.err; then
Chris@41 3697 sed '10a\
Chris@41 3698 ... rest of stderr output deleted ...
Chris@41 3699 10q' conftest.err >conftest.er1
Chris@41 3700 cat conftest.er1 >&5
Chris@41 3701 fi
Chris@41 3702 rm -f conftest.er1 conftest.err
Chris@41 3703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 3704 test $ac_status = 0; }
Chris@41 3705 done
Chris@41 3706
Chris@41 3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 3708 /* end confdefs.h. */
Chris@41 3709
Chris@41 3710 int
Chris@41 3711 main ()
Chris@41 3712 {
Chris@41 3713
Chris@41 3714 ;
Chris@41 3715 return 0;
Chris@41 3716 }
Chris@41 3717 _ACEOF
Chris@41 3718 ac_clean_files_save=$ac_clean_files
Chris@41 3719 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Chris@41 3720 # Try to create an executable without -o first, disregard a.out.
Chris@41 3721 # It will help us diagnose broken compilers, and finding out an intuition
Chris@41 3722 # of exeext.
Chris@41 3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
Chris@41 3724 $as_echo_n "checking whether the C compiler works... " >&6; }
Chris@41 3725 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Chris@41 3726
Chris@41 3727 # The possible output files:
Chris@41 3728 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
Chris@41 3729
Chris@41 3730 ac_rmfiles=
Chris@41 3731 for ac_file in $ac_files
Chris@41 3732 do
Chris@41 3733 case $ac_file in
Chris@41 3734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Chris@41 3735 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
Chris@41 3736 esac
Chris@41 3737 done
Chris@41 3738 rm -f $ac_rmfiles
Chris@41 3739
Chris@41 3740 if { { ac_try="$ac_link_default"
Chris@41 3741 case "(($ac_try" in
Chris@41 3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@41 3743 *) ac_try_echo=$ac_try;;
Chris@41 3744 esac
Chris@41 3745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@41 3746 $as_echo "$ac_try_echo"; } >&5
Chris@41 3747 (eval "$ac_link_default") 2>&5
Chris@41 3748 ac_status=$?
Chris@41 3749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 3750 test $ac_status = 0; }; then :
Chris@41 3751 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
Chris@41 3752 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
Chris@41 3753 # in a Makefile. We should not override ac_cv_exeext if it was cached,
Chris@41 3754 # so that the user can short-circuit this test for compilers unknown to
Chris@41 3755 # Autoconf.
Chris@41 3756 for ac_file in $ac_files ''
Chris@41 3757 do
Chris@41 3758 test -f "$ac_file" || continue
Chris@41 3759 case $ac_file in
Chris@41 3760 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Chris@41 3761 ;;
Chris@41 3762 [ab].out )
Chris@41 3763 # We found the default executable, but exeext='' is most
Chris@41 3764 # certainly right.
Chris@41 3765 break;;
Chris@41 3766 *.* )
Chris@41 3767 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Chris@41 3768 then :; else
Chris@41 3769 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Chris@41 3770 fi
Chris@41 3771 # We set ac_cv_exeext here because the later test for it is not
Chris@41 3772 # safe: cross compilers may not add the suffix if given an `-o'
Chris@41 3773 # argument, so we may need to know it at that point already.
Chris@41 3774 # Even if this section looks crufty: it has the advantage of
Chris@41 3775 # actually working.
Chris@41 3776 break;;
Chris@41 3777 * )
Chris@41 3778 break;;
Chris@41 3779 esac
Chris@41 3780 done
Chris@41 3781 test "$ac_cv_exeext" = no && ac_cv_exeext=
Chris@41 3782
Chris@41 3783 else
Chris@41 3784 ac_file=''
Chris@41 3785 fi
Chris@41 3786 if test -z "$ac_file"; then :
Chris@41 3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 3788 $as_echo "no" >&6; }
Chris@41 3789 $as_echo "$as_me: failed program was:" >&5
Chris@41 3790 sed 's/^/| /' conftest.$ac_ext >&5
Chris@41 3791
Chris@41 3792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@41 3793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@41 3794 as_fn_error 77 "C compiler cannot create executables
Chris@41 3795 See \`config.log' for more details" "$LINENO" 5; }
Chris@41 3796 else
Chris@41 3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@41 3798 $as_echo "yes" >&6; }
Chris@41 3799 fi
Chris@41 3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
Chris@41 3801 $as_echo_n "checking for C compiler default output file name... " >&6; }
Chris@41 3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
Chris@41 3803 $as_echo "$ac_file" >&6; }
Chris@41 3804 ac_exeext=$ac_cv_exeext
Chris@41 3805
Chris@41 3806 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Chris@41 3807 ac_clean_files=$ac_clean_files_save
Chris@41 3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Chris@41 3809 $as_echo_n "checking for suffix of executables... " >&6; }
Chris@41 3810 if { { ac_try="$ac_link"
Chris@41 3811 case "(($ac_try" in
Chris@41 3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@41 3813 *) ac_try_echo=$ac_try;;
Chris@41 3814 esac
Chris@41 3815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@41 3816 $as_echo "$ac_try_echo"; } >&5
Chris@41 3817 (eval "$ac_link") 2>&5
Chris@41 3818 ac_status=$?
Chris@41 3819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 3820 test $ac_status = 0; }; then :
Chris@41 3821 # If both `conftest.exe' and `conftest' are `present' (well, observable)
Chris@41 3822 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
Chris@41 3823 # work properly (i.e., refer to `conftest.exe'), while it won't with
Chris@41 3824 # `rm'.
Chris@41 3825 for ac_file in conftest.exe conftest conftest.*; do
Chris@41 3826 test -f "$ac_file" || continue
Chris@41 3827 case $ac_file in
Chris@41 3828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Chris@41 3829 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Chris@41 3830 break;;
Chris@41 3831 * ) break;;
Chris@41 3832 esac
Chris@41 3833 done
Chris@41 3834 else
Chris@41 3835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@41 3836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@41 3837 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
Chris@41 3838 See \`config.log' for more details" "$LINENO" 5; }
Chris@41 3839 fi
Chris@41 3840 rm -f conftest conftest$ac_cv_exeext
Chris@41 3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Chris@41 3842 $as_echo "$ac_cv_exeext" >&6; }
Chris@41 3843
Chris@41 3844 rm -f conftest.$ac_ext
Chris@41 3845 EXEEXT=$ac_cv_exeext
Chris@41 3846 ac_exeext=$EXEEXT
Chris@41 3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 3848 /* end confdefs.h. */
Chris@41 3849 #include <stdio.h>
Chris@41 3850 int
Chris@41 3851 main ()
Chris@41 3852 {
Chris@41 3853 FILE *f = fopen ("conftest.out", "w");
Chris@41 3854 return ferror (f) || fclose (f) != 0;
Chris@41 3855
Chris@41 3856 ;
Chris@41 3857 return 0;
Chris@41 3858 }
Chris@41 3859 _ACEOF
Chris@41 3860 ac_clean_files="$ac_clean_files conftest.out"
Chris@41 3861 # Check that the compiler produces executables we can run. If not, either
Chris@41 3862 # the compiler is broken, or we cross compile.
Chris@41 3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
Chris@41 3864 $as_echo_n "checking whether we are cross compiling... " >&6; }
Chris@41 3865 if test "$cross_compiling" != yes; then
Chris@41 3866 { { ac_try="$ac_link"
Chris@41 3867 case "(($ac_try" in
Chris@41 3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@41 3869 *) ac_try_echo=$ac_try;;
Chris@41 3870 esac
Chris@41 3871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@41 3872 $as_echo "$ac_try_echo"; } >&5
Chris@41 3873 (eval "$ac_link") 2>&5
Chris@41 3874 ac_status=$?
Chris@41 3875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 3876 test $ac_status = 0; }
Chris@41 3877 if { ac_try='./conftest$ac_cv_exeext'
Chris@41 3878 { { case "(($ac_try" in
Chris@41 3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@41 3880 *) ac_try_echo=$ac_try;;
Chris@41 3881 esac
Chris@41 3882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@41 3883 $as_echo "$ac_try_echo"; } >&5
Chris@41 3884 (eval "$ac_try") 2>&5
Chris@41 3885 ac_status=$?
Chris@41 3886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 3887 test $ac_status = 0; }; }; then
Chris@41 3888 cross_compiling=no
Chris@41 3889 else
Chris@41 3890 if test "$cross_compiling" = maybe; then
Chris@41 3891 cross_compiling=yes
Chris@41 3892 else
Chris@41 3893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@41 3894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@41 3895 as_fn_error $? "cannot run C compiled programs.
Chris@41 3896 If you meant to cross compile, use \`--host'.
Chris@41 3897 See \`config.log' for more details" "$LINENO" 5; }
Chris@41 3898 fi
Chris@41 3899 fi
Chris@41 3900 fi
Chris@41 3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
Chris@41 3902 $as_echo "$cross_compiling" >&6; }
Chris@41 3903
Chris@41 3904 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
Chris@41 3905 ac_clean_files=$ac_clean_files_save
Chris@41 3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Chris@41 3907 $as_echo_n "checking for suffix of object files... " >&6; }
Chris@41 3908 if ${ac_cv_objext+:} false; then :
Chris@41 3909 $as_echo_n "(cached) " >&6
Chris@41 3910 else
Chris@41 3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 3912 /* end confdefs.h. */
Chris@41 3913
Chris@41 3914 int
Chris@41 3915 main ()
Chris@41 3916 {
Chris@41 3917
Chris@41 3918 ;
Chris@41 3919 return 0;
Chris@41 3920 }
Chris@41 3921 _ACEOF
Chris@41 3922 rm -f conftest.o conftest.obj
Chris@41 3923 if { { ac_try="$ac_compile"
Chris@41 3924 case "(($ac_try" in
Chris@41 3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@41 3926 *) ac_try_echo=$ac_try;;
Chris@41 3927 esac
Chris@41 3928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@41 3929 $as_echo "$ac_try_echo"; } >&5
Chris@41 3930 (eval "$ac_compile") 2>&5
Chris@41 3931 ac_status=$?
Chris@41 3932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 3933 test $ac_status = 0; }; then :
Chris@41 3934 for ac_file in conftest.o conftest.obj conftest.*; do
Chris@41 3935 test -f "$ac_file" || continue;
Chris@41 3936 case $ac_file in
Chris@41 3937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Chris@41 3938 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
Chris@41 3939 break;;
Chris@41 3940 esac
Chris@41 3941 done
Chris@41 3942 else
Chris@41 3943 $as_echo "$as_me: failed program was:" >&5
Chris@41 3944 sed 's/^/| /' conftest.$ac_ext >&5
Chris@41 3945
Chris@41 3946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@41 3947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@41 3948 as_fn_error $? "cannot compute suffix of object files: cannot compile
Chris@41 3949 See \`config.log' for more details" "$LINENO" 5; }
Chris@41 3950 fi
Chris@41 3951 rm -f conftest.$ac_cv_objext conftest.$ac_ext
Chris@41 3952 fi
Chris@41 3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Chris@41 3954 $as_echo "$ac_cv_objext" >&6; }
Chris@41 3955 OBJEXT=$ac_cv_objext
Chris@41 3956 ac_objext=$OBJEXT
Chris@41 3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Chris@41 3958 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Chris@41 3959 if ${ac_cv_c_compiler_gnu+:} false; then :
Chris@41 3960 $as_echo_n "(cached) " >&6
Chris@41 3961 else
Chris@41 3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 3963 /* end confdefs.h. */
Chris@41 3964
Chris@41 3965 int
Chris@41 3966 main ()
Chris@41 3967 {
Chris@41 3968 #ifndef __GNUC__
Chris@41 3969 choke me
Chris@41 3970 #endif
Chris@41 3971
Chris@41 3972 ;
Chris@41 3973 return 0;
Chris@41 3974 }
Chris@41 3975 _ACEOF
Chris@41 3976 if ac_fn_c_try_compile "$LINENO"; then :
Chris@41 3977 ac_compiler_gnu=yes
Chris@41 3978 else
Chris@41 3979 ac_compiler_gnu=no
Chris@41 3980 fi
Chris@41 3981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@41 3982 ac_cv_c_compiler_gnu=$ac_compiler_gnu
Chris@41 3983
Chris@41 3984 fi
Chris@41 3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Chris@41 3986 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
Chris@41 3987 if test $ac_compiler_gnu = yes; then
Chris@41 3988 GCC=yes
Chris@41 3989 else
Chris@41 3990 GCC=
Chris@41 3991 fi
Chris@41 3992 ac_test_CFLAGS=${CFLAGS+set}
Chris@41 3993 ac_save_CFLAGS=$CFLAGS
Chris@41 3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Chris@41 3995 $as_echo_n "checking whether $CC accepts -g... " >&6; }
Chris@41 3996 if ${ac_cv_prog_cc_g+:} false; then :
Chris@41 3997 $as_echo_n "(cached) " >&6
Chris@41 3998 else
Chris@41 3999 ac_save_c_werror_flag=$ac_c_werror_flag
Chris@41 4000 ac_c_werror_flag=yes
Chris@41 4001 ac_cv_prog_cc_g=no
Chris@41 4002 CFLAGS="-g"
Chris@41 4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 4004 /* end confdefs.h. */
Chris@41 4005
Chris@41 4006 int
Chris@41 4007 main ()
Chris@41 4008 {
Chris@41 4009
Chris@41 4010 ;
Chris@41 4011 return 0;
Chris@41 4012 }
Chris@41 4013 _ACEOF
Chris@41 4014 if ac_fn_c_try_compile "$LINENO"; then :
Chris@41 4015 ac_cv_prog_cc_g=yes
Chris@41 4016 else
Chris@41 4017 CFLAGS=""
Chris@41 4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 4019 /* end confdefs.h. */
Chris@41 4020
Chris@41 4021 int
Chris@41 4022 main ()
Chris@41 4023 {
Chris@41 4024
Chris@41 4025 ;
Chris@41 4026 return 0;
Chris@41 4027 }
Chris@41 4028 _ACEOF
Chris@41 4029 if ac_fn_c_try_compile "$LINENO"; then :
Chris@41 4030
Chris@41 4031 else
Chris@41 4032 ac_c_werror_flag=$ac_save_c_werror_flag
Chris@41 4033 CFLAGS="-g"
Chris@41 4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 4035 /* end confdefs.h. */
Chris@41 4036
Chris@41 4037 int
Chris@41 4038 main ()
Chris@41 4039 {
Chris@41 4040
Chris@41 4041 ;
Chris@41 4042 return 0;
Chris@41 4043 }
Chris@41 4044 _ACEOF
Chris@41 4045 if ac_fn_c_try_compile "$LINENO"; then :
Chris@41 4046 ac_cv_prog_cc_g=yes
Chris@41 4047 fi
Chris@41 4048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@41 4049 fi
Chris@41 4050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@41 4051 fi
Chris@41 4052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@41 4053 ac_c_werror_flag=$ac_save_c_werror_flag
Chris@41 4054 fi
Chris@41 4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Chris@41 4056 $as_echo "$ac_cv_prog_cc_g" >&6; }
Chris@41 4057 if test "$ac_test_CFLAGS" = set; then
Chris@41 4058 CFLAGS=$ac_save_CFLAGS
Chris@41 4059 elif test $ac_cv_prog_cc_g = yes; then
Chris@41 4060 if test "$GCC" = yes; then
Chris@41 4061 CFLAGS="-g -O2"
Chris@41 4062 else
Chris@41 4063 CFLAGS="-g"
Chris@41 4064 fi
Chris@41 4065 else
Chris@41 4066 if test "$GCC" = yes; then
Chris@41 4067 CFLAGS="-O2"
Chris@41 4068 else
Chris@41 4069 CFLAGS=
Chris@41 4070 fi
Chris@41 4071 fi
Chris@41 4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Chris@41 4073 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Chris@41 4074 if ${ac_cv_prog_cc_c89+:} false; then :
Chris@41 4075 $as_echo_n "(cached) " >&6
Chris@41 4076 else
Chris@41 4077 ac_cv_prog_cc_c89=no
Chris@41 4078 ac_save_CC=$CC
Chris@41 4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 4080 /* end confdefs.h. */
Chris@41 4081 #include <stdarg.h>
Chris@41 4082 #include <stdio.h>
Chris@41 4083 struct stat;
Chris@41 4084 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
Chris@41 4085 struct buf { int x; };
Chris@41 4086 FILE * (*rcsopen) (struct buf *, struct stat *, int);
Chris@41 4087 static char *e (p, i)
Chris@41 4088 char **p;
Chris@41 4089 int i;
Chris@41 4090 {
Chris@41 4091 return p[i];
Chris@41 4092 }
Chris@41 4093 static char *f (char * (*g) (char **, int), char **p, ...)
Chris@41 4094 {
Chris@41 4095 char *s;
Chris@41 4096 va_list v;
Chris@41 4097 va_start (v,p);
Chris@41 4098 s = g (p, va_arg (v,int));
Chris@41 4099 va_end (v);
Chris@41 4100 return s;
Chris@41 4101 }
Chris@41 4102
Chris@41 4103 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
Chris@41 4104 function prototypes and stuff, but not '\xHH' hex character constants.
Chris@41 4105 These don't provoke an error unfortunately, instead are silently treated
Chris@41 4106 as 'x'. The following induces an error, until -std is added to get
Chris@41 4107 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
Chris@41 4108 array size at least. It's necessary to write '\x00'==0 to get something
Chris@41 4109 that's true only with -std. */
Chris@41 4110 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
Chris@41 4111
Chris@41 4112 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
Chris@41 4113 inside strings and character constants. */
Chris@41 4114 #define FOO(x) 'x'
Chris@41 4115 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
Chris@41 4116
Chris@41 4117 int test (int i, double x);
Chris@41 4118 struct s1 {int (*f) (int a);};
Chris@41 4119 struct s2 {int (*f) (double a);};
Chris@41 4120 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
Chris@41 4121 int argc;
Chris@41 4122 char **argv;
Chris@41 4123 int
Chris@41 4124 main ()
Chris@41 4125 {
Chris@41 4126 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
Chris@41 4127 ;
Chris@41 4128 return 0;
Chris@41 4129 }
Chris@41 4130 _ACEOF
Chris@41 4131 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
Chris@41 4132 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Chris@41 4133 do
Chris@41 4134 CC="$ac_save_CC $ac_arg"
Chris@41 4135 if ac_fn_c_try_compile "$LINENO"; then :
Chris@41 4136 ac_cv_prog_cc_c89=$ac_arg
Chris@41 4137 fi
Chris@41 4138 rm -f core conftest.err conftest.$ac_objext
Chris@41 4139 test "x$ac_cv_prog_cc_c89" != "xno" && break
Chris@41 4140 done
Chris@41 4141 rm -f conftest.$ac_ext
Chris@41 4142 CC=$ac_save_CC
Chris@41 4143
Chris@41 4144 fi
Chris@41 4145 # AC_CACHE_VAL
Chris@41 4146 case "x$ac_cv_prog_cc_c89" in
Chris@41 4147 x)
Chris@41 4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Chris@41 4149 $as_echo "none needed" >&6; } ;;
Chris@41 4150 xno)
Chris@41 4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Chris@41 4152 $as_echo "unsupported" >&6; } ;;
Chris@41 4153 *)
Chris@41 4154 CC="$CC $ac_cv_prog_cc_c89"
Chris@41 4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Chris@41 4156 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Chris@41 4157 esac
Chris@41 4158 if test "x$ac_cv_prog_cc_c89" != xno; then :
Chris@41 4159
Chris@41 4160 fi
Chris@41 4161
Chris@41 4162 ac_ext=c
Chris@41 4163 ac_cpp='$CPP $CPPFLAGS'
Chris@41 4164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@41 4165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@41 4166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@41 4167
Chris@41 4168 ac_ext=c
Chris@41 4169 ac_cpp='$CPP $CPPFLAGS'
Chris@41 4170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@41 4171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@41 4172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@41 4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
Chris@41 4174 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
Chris@41 4175 if ${am_cv_prog_cc_c_o+:} false; then :
Chris@41 4176 $as_echo_n "(cached) " >&6
Chris@41 4177 else
Chris@41 4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 4179 /* end confdefs.h. */
Chris@41 4180
Chris@41 4181 int
Chris@41 4182 main ()
Chris@41 4183 {
Chris@41 4184
Chris@41 4185 ;
Chris@41 4186 return 0;
Chris@41 4187 }
Chris@41 4188 _ACEOF
Chris@41 4189 # Make sure it works both with $CC and with simple cc.
Chris@41 4190 # Following AC_PROG_CC_C_O, we do the test twice because some
Chris@41 4191 # compilers refuse to overwrite an existing .o file with -o,
Chris@41 4192 # though they will create one.
Chris@41 4193 am_cv_prog_cc_c_o=yes
Chris@41 4194 for am_i in 1 2; do
Chris@41 4195 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
Chris@41 4196 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
Chris@41 4197 ac_status=$?
Chris@41 4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@41 4199 (exit $ac_status); } \
Chris@41 4200 && test -f conftest2.$ac_objext; then
Chris@41 4201 : OK
Chris@41 4202 else
Chris@41 4203 am_cv_prog_cc_c_o=no
Chris@41 4204 break
Chris@41 4205 fi
Chris@41 4206 done
Chris@41 4207 rm -f core conftest*
Chris@41 4208 unset am_i
Chris@41 4209 fi
Chris@41 4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
Chris@41 4211 $as_echo "$am_cv_prog_cc_c_o" >&6; }
Chris@41 4212 if test "$am_cv_prog_cc_c_o" != yes; then
Chris@41 4213 # Losing compiler, so override with the script.
Chris@41 4214 # FIXME: It is wrong to rewrite CC.
Chris@41 4215 # But if we don't then we get into trouble of one sort or another.
Chris@41 4216 # A longer-term fix would be to have automake use am__CC in this case,
Chris@41 4217 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
Chris@41 4218 CC="$am_aux_dir/compile $CC"
Chris@41 4219 fi
Chris@41 4220 ac_ext=c
Chris@41 4221 ac_cpp='$CPP $CPPFLAGS'
Chris@41 4222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@41 4223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@41 4224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@41 4225
Chris@41 4226 DEPDIR="${am__leading_dot}deps"
Chris@41 4227
Chris@41 4228 ac_config_commands="$ac_config_commands depfiles"
Chris@41 4229
Chris@41 4230
Chris@41 4231 am_make=${MAKE-make}
Chris@41 4232 cat > confinc << 'END'
Chris@41 4233 am__doit:
Chris@41 4234 @echo this is the am__doit target
Chris@41 4235 .PHONY: am__doit
Chris@41 4236 END
Chris@41 4237 # If we don't find an include directive, just comment out the code.
Chris@41 4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
Chris@41 4239 $as_echo_n "checking for style of include used by $am_make... " >&6; }
Chris@41 4240 am__include="#"
Chris@41 4241 am__quote=
Chris@41 4242 _am_result=none
Chris@41 4243 # First try GNU make style include.
Chris@41 4244 echo "include confinc" > confmf
Chris@41 4245 # Ignore all kinds of additional output from 'make'.
Chris@41 4246 case `$am_make -s -f confmf 2> /dev/null` in #(
Chris@41 4247 *the\ am__doit\ target*)
Chris@41 4248 am__include=include
Chris@41 4249 am__quote=
Chris@41 4250 _am_result=GNU
Chris@41 4251 ;;
Chris@41 4252 esac
Chris@41 4253 # Now try BSD make style include.
Chris@41 4254 if test "$am__include" = "#"; then
Chris@41 4255 echo '.include "confinc"' > confmf
Chris@41 4256 case `$am_make -s -f confmf 2> /dev/null` in #(
Chris@41 4257 *the\ am__doit\ target*)
Chris@41 4258 am__include=.include
Chris@41 4259 am__quote="\""
Chris@41 4260 _am_result=BSD
Chris@41 4261 ;;
Chris@41 4262 esac
Chris@41 4263 fi
Chris@41 4264
Chris@41 4265
Chris@41 4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
Chris@41 4267 $as_echo "$_am_result" >&6; }
Chris@41 4268 rm -f confinc confmf
Chris@41 4269
Chris@41 4270 # Check whether --enable-dependency-tracking was given.
Chris@41 4271 if test "${enable_dependency_tracking+set}" = set; then :
Chris@41 4272 enableval=$enable_dependency_tracking;
Chris@41 4273 fi
Chris@41 4274
Chris@41 4275 if test "x$enable_dependency_tracking" != xno; then
Chris@41 4276 am_depcomp="$ac_aux_dir/depcomp"
Chris@41 4277 AMDEPBACKSLASH='\'
Chris@41 4278 am__nodep='_no'
Chris@41 4279 fi
Chris@41 4280 if test "x$enable_dependency_tracking" != xno; then
Chris@41 4281 AMDEP_TRUE=
Chris@41 4282 AMDEP_FALSE='#'
Chris@41 4283 else
Chris@41 4284 AMDEP_TRUE='#'
Chris@41 4285 AMDEP_FALSE=
Chris@41 4286 fi
Chris@41 4287
Chris@41 4288
Chris@41 4289
Chris@41 4290 depcc="$CC" am_compiler_list=
Chris@41 4291
Chris@41 4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Chris@41 4293 $as_echo_n "checking dependency style of $depcc... " >&6; }
Chris@41 4294 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
Chris@41 4295 $as_echo_n "(cached) " >&6
Chris@41 4296 else
Chris@41 4297 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
Chris@41 4298 # We make a subdir and do the tests there. Otherwise we can end up
Chris@41 4299 # making bogus files that we don't know about and never remove. For
Chris@41 4300 # instance it was reported that on HP-UX the gcc test will end up
Chris@41 4301 # making a dummy file named 'D' -- because '-MD' means "put the output
Chris@41 4302 # in D".
Chris@41 4303 rm -rf conftest.dir
Chris@41 4304 mkdir conftest.dir
Chris@41 4305 # Copy depcomp to subdir because otherwise we won't find it if we're
Chris@41 4306 # using a relative directory.
Chris@41 4307 cp "$am_depcomp" conftest.dir
Chris@41 4308 cd conftest.dir
Chris@41 4309 # We will build objects and dependencies in a subdirectory because
Chris@41 4310 # it helps to detect inapplicable dependency modes. For instance
Chris@41 4311 # both Tru64's cc and ICC support -MD to output dependencies as a
Chris@41 4312 # side effect of compilation, but ICC will put the dependencies in
Chris@41 4313 # the current directory while Tru64 will put them in the object
Chris@41 4314 # directory.
Chris@41 4315 mkdir sub
Chris@41 4316
Chris@41 4317 am_cv_CC_dependencies_compiler_type=none
Chris@41 4318 if test "$am_compiler_list" = ""; then
Chris@41 4319 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
Chris@41 4320 fi
Chris@41 4321 am__universal=false
Chris@41 4322 case " $depcc " in #(
Chris@41 4323 *\ -arch\ *\ -arch\ *) am__universal=true ;;
Chris@41 4324 esac
Chris@41 4325
Chris@41 4326 for depmode in $am_compiler_list; do
Chris@41 4327 # Setup a source with many dependencies, because some compilers
Chris@41 4328 # like to wrap large dependency lists on column 80 (with \), and
Chris@41 4329 # we should not choose a depcomp mode which is confused by this.
Chris@41 4330 #
Chris@41 4331 # We need to recreate these files for each test, as the compiler may
Chris@41 4332 # overwrite some of them when testing with obscure command lines.
Chris@41 4333 # This happens at least with the AIX C compiler.
Chris@41 4334 : > sub/conftest.c
Chris@41 4335 for i in 1 2 3 4 5 6; do
Chris@41 4336 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Chris@41 4337 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
Chris@41 4338 # Solaris 10 /bin/sh.
Chris@41 4339 echo '/* dummy */' > sub/conftst$i.h
Chris@41 4340 done
Chris@41 4341 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Chris@41 4342
Chris@41 4343 # We check with '-c' and '-o' for the sake of the "dashmstdout"
Chris@41 4344 # mode. It turns out that the SunPro C++ compiler does not properly
Chris@41 4345 # handle '-M -o', and we need to detect this. Also, some Intel
Chris@41 4346 # versions had trouble with output in subdirs.
Chris@41 4347 am__obj=sub/conftest.${OBJEXT-o}
Chris@41 4348 am__minus_obj="-o $am__obj"
Chris@41 4349 case $depmode in
Chris@41 4350 gcc)
Chris@41 4351 # This depmode causes a compiler race in universal mode.
Chris@41 4352 test "$am__universal" = false || continue
Chris@41 4353 ;;
Chris@41 4354 nosideeffect)
Chris@41 4355 # After this tag, mechanisms are not by side-effect, so they'll
Chris@41 4356 # only be used when explicitly requested.
Chris@41 4357 if test "x$enable_dependency_tracking" = xyes; then
Chris@41 4358 continue
Chris@41 4359 else
Chris@41 4360 break
Chris@41 4361 fi
Chris@41 4362 ;;
Chris@41 4363 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
Chris@41 4364 # This compiler won't grok '-c -o', but also, the minuso test has
Chris@41 4365 # not run yet. These depmodes are late enough in the game, and
Chris@41 4366 # so weak that their functioning should not be impacted.
Chris@41 4367 am__obj=conftest.${OBJEXT-o}
Chris@41 4368 am__minus_obj=
Chris@41 4369 ;;
Chris@41 4370 none) break ;;
Chris@41 4371 esac
Chris@41 4372 if depmode=$depmode \
Chris@41 4373 source=sub/conftest.c object=$am__obj \
Chris@41 4374 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Chris@41 4375 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Chris@41 4376 >/dev/null 2>conftest.err &&
Chris@41 4377 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Chris@41 4378 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Chris@41 4379 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Chris@41 4380 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Chris@41 4381 # icc doesn't choke on unknown options, it will just issue warnings
Chris@41 4382 # or remarks (even with -Werror). So we grep stderr for any message
Chris@41 4383 # that says an option was ignored or not supported.
Chris@41 4384 # When given -MP, icc 7.0 and 7.1 complain thusly:
Chris@41 4385 # icc: Command line warning: ignoring option '-M'; no argument required
Chris@41 4386 # The diagnosis changed in icc 8.0:
Chris@41 4387 # icc: Command line remark: option '-MP' not supported
Chris@41 4388 if (grep 'ignoring option' conftest.err ||
Chris@41 4389 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Chris@41 4390 am_cv_CC_dependencies_compiler_type=$depmode
Chris@41 4391 break
Chris@41 4392 fi
Chris@41 4393 fi
Chris@41 4394 done
Chris@41 4395
Chris@41 4396 cd ..
Chris@41 4397 rm -rf conftest.dir
Chris@41 4398 else
Chris@41 4399 am_cv_CC_dependencies_compiler_type=none
Chris@41 4400 fi
Chris@41 4401
Chris@41 4402 fi
Chris@41 4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
Chris@41 4404 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Chris@41 4405 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
Chris@41 4406
Chris@41 4407 if
Chris@41 4408 test "x$enable_dependency_tracking" != xno \
Chris@41 4409 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
Chris@41 4410 am__fastdepCC_TRUE=
Chris@41 4411 am__fastdepCC_FALSE='#'
Chris@41 4412 else
Chris@41 4413 am__fastdepCC_TRUE='#'
Chris@41 4414 am__fastdepCC_FALSE=
Chris@41 4415 fi
Chris@41 4416
Chris@41 4417
Chris@41 4418
Chris@41 4419 ac_ext=cpp
Chris@41 4420 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@41 4421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@41 4422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@41 4423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@41 4424 if test -z "$CXX"; then
Chris@41 4425 if test -n "$CCC"; then
Chris@41 4426 CXX=$CCC
Chris@41 4427 else
Chris@41 4428 if test -n "$ac_tool_prefix"; then
Chris@41 4429 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Chris@41 4430 do
Chris@41 4431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@41 4432 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@41 4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 4434 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 4435 if ${ac_cv_prog_CXX+:} false; then :
Chris@41 4436 $as_echo_n "(cached) " >&6
Chris@41 4437 else
Chris@41 4438 if test -n "$CXX"; then
Chris@41 4439 ac_cv_prog_CXX="$CXX" # Let the user override the test.
Chris@41 4440 else
Chris@41 4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 4442 for as_dir in $PATH
Chris@41 4443 do
Chris@41 4444 IFS=$as_save_IFS
Chris@41 4445 test -z "$as_dir" && as_dir=.
Chris@41 4446 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 4447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 4448 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Chris@41 4449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 4450 break 2
Chris@41 4451 fi
Chris@41 4452 done
Chris@41 4453 done
Chris@41 4454 IFS=$as_save_IFS
Chris@41 4455
Chris@41 4456 fi
Chris@41 4457 fi
Chris@41 4458 CXX=$ac_cv_prog_CXX
Chris@41 4459 if test -n "$CXX"; then
Chris@41 4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
Chris@41 4461 $as_echo "$CXX" >&6; }
Chris@41 4462 else
Chris@41 4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 4464 $as_echo "no" >&6; }
Chris@41 4465 fi
Chris@41 4466
Chris@41 4467
Chris@41 4468 test -n "$CXX" && break
Chris@41 4469 done
Chris@41 4470 fi
Chris@41 4471 if test -z "$CXX"; then
Chris@41 4472 ac_ct_CXX=$CXX
Chris@41 4473 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Chris@41 4474 do
Chris@41 4475 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@41 4476 set dummy $ac_prog; ac_word=$2
Chris@41 4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 4478 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 4479 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
Chris@41 4480 $as_echo_n "(cached) " >&6
Chris@41 4481 else
Chris@41 4482 if test -n "$ac_ct_CXX"; then
Chris@41 4483 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
Chris@41 4484 else
Chris@41 4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 4486 for as_dir in $PATH
Chris@41 4487 do
Chris@41 4488 IFS=$as_save_IFS
Chris@41 4489 test -z "$as_dir" && as_dir=.
Chris@41 4490 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 4491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 4492 ac_cv_prog_ac_ct_CXX="$ac_prog"
Chris@41 4493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 4494 break 2
Chris@41 4495 fi
Chris@41 4496 done
Chris@41 4497 done
Chris@41 4498 IFS=$as_save_IFS
Chris@41 4499
Chris@41 4500 fi
Chris@41 4501 fi
Chris@41 4502 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
Chris@41 4503 if test -n "$ac_ct_CXX"; then
Chris@41 4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
Chris@41 4505 $as_echo "$ac_ct_CXX" >&6; }
Chris@41 4506 else
Chris@41 4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 4508 $as_echo "no" >&6; }
Chris@41 4509 fi
Chris@41 4510
Chris@41 4511
Chris@41 4512 test -n "$ac_ct_CXX" && break
Chris@41 4513 done
Chris@41 4514
Chris@41 4515 if test "x$ac_ct_CXX" = x; then
Chris@41 4516 CXX="g++"
Chris@41 4517 else
Chris@41 4518 case $cross_compiling:$ac_tool_warned in
Chris@41 4519 yes:)
Chris@41 4520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@41 4521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@41 4522 ac_tool_warned=yes ;;
Chris@41 4523 esac
Chris@41 4524 CXX=$ac_ct_CXX
Chris@41 4525 fi
Chris@41 4526 fi
Chris@41 4527
Chris@41 4528 fi
Chris@41 4529 fi
Chris@41 4530 # Provide some information about the compiler.
Chris@41 4531 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
Chris@41 4532 set X $ac_compile
Chris@41 4533 ac_compiler=$2
Chris@41 4534 for ac_option in --version -v -V -qversion; do
Chris@41 4535 { { ac_try="$ac_compiler $ac_option >&5"
Chris@41 4536 case "(($ac_try" in
Chris@41 4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@41 4538 *) ac_try_echo=$ac_try;;
Chris@41 4539 esac
Chris@41 4540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@41 4541 $as_echo "$ac_try_echo"; } >&5
Chris@41 4542 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Chris@41 4543 ac_status=$?
Chris@41 4544 if test -s conftest.err; then
Chris@41 4545 sed '10a\
Chris@41 4546 ... rest of stderr output deleted ...
Chris@41 4547 10q' conftest.err >conftest.er1
Chris@41 4548 cat conftest.er1 >&5
Chris@41 4549 fi
Chris@41 4550 rm -f conftest.er1 conftest.err
Chris@41 4551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 4552 test $ac_status = 0; }
Chris@41 4553 done
Chris@41 4554
Chris@41 4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
Chris@41 4556 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
Chris@41 4557 if ${ac_cv_cxx_compiler_gnu+:} false; then :
Chris@41 4558 $as_echo_n "(cached) " >&6
Chris@41 4559 else
Chris@41 4560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 4561 /* end confdefs.h. */
Chris@41 4562
Chris@41 4563 int
Chris@41 4564 main ()
Chris@41 4565 {
Chris@41 4566 #ifndef __GNUC__
Chris@41 4567 choke me
Chris@41 4568 #endif
Chris@41 4569
Chris@41 4570 ;
Chris@41 4571 return 0;
Chris@41 4572 }
Chris@41 4573 _ACEOF
Chris@41 4574 if ac_fn_cxx_try_compile "$LINENO"; then :
Chris@41 4575 ac_compiler_gnu=yes
Chris@41 4576 else
Chris@41 4577 ac_compiler_gnu=no
Chris@41 4578 fi
Chris@41 4579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@41 4580 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
Chris@41 4581
Chris@41 4582 fi
Chris@41 4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
Chris@41 4584 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
Chris@41 4585 if test $ac_compiler_gnu = yes; then
Chris@41 4586 GXX=yes
Chris@41 4587 else
Chris@41 4588 GXX=
Chris@41 4589 fi
Chris@41 4590 ac_test_CXXFLAGS=${CXXFLAGS+set}
Chris@41 4591 ac_save_CXXFLAGS=$CXXFLAGS
Chris@41 4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
Chris@41 4593 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
Chris@41 4594 if ${ac_cv_prog_cxx_g+:} false; then :
Chris@41 4595 $as_echo_n "(cached) " >&6
Chris@41 4596 else
Chris@41 4597 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
Chris@41 4598 ac_cxx_werror_flag=yes
Chris@41 4599 ac_cv_prog_cxx_g=no
Chris@41 4600 CXXFLAGS="-g"
Chris@41 4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 4602 /* end confdefs.h. */
Chris@41 4603
Chris@41 4604 int
Chris@41 4605 main ()
Chris@41 4606 {
Chris@41 4607
Chris@41 4608 ;
Chris@41 4609 return 0;
Chris@41 4610 }
Chris@41 4611 _ACEOF
Chris@41 4612 if ac_fn_cxx_try_compile "$LINENO"; then :
Chris@41 4613 ac_cv_prog_cxx_g=yes
Chris@41 4614 else
Chris@41 4615 CXXFLAGS=""
Chris@41 4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 4617 /* end confdefs.h. */
Chris@41 4618
Chris@41 4619 int
Chris@41 4620 main ()
Chris@41 4621 {
Chris@41 4622
Chris@41 4623 ;
Chris@41 4624 return 0;
Chris@41 4625 }
Chris@41 4626 _ACEOF
Chris@41 4627 if ac_fn_cxx_try_compile "$LINENO"; then :
Chris@41 4628
Chris@41 4629 else
Chris@41 4630 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Chris@41 4631 CXXFLAGS="-g"
Chris@41 4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 4633 /* end confdefs.h. */
Chris@41 4634
Chris@41 4635 int
Chris@41 4636 main ()
Chris@41 4637 {
Chris@41 4638
Chris@41 4639 ;
Chris@41 4640 return 0;
Chris@41 4641 }
Chris@41 4642 _ACEOF
Chris@41 4643 if ac_fn_cxx_try_compile "$LINENO"; then :
Chris@41 4644 ac_cv_prog_cxx_g=yes
Chris@41 4645 fi
Chris@41 4646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@41 4647 fi
Chris@41 4648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@41 4649 fi
Chris@41 4650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@41 4651 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Chris@41 4652 fi
Chris@41 4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
Chris@41 4654 $as_echo "$ac_cv_prog_cxx_g" >&6; }
Chris@41 4655 if test "$ac_test_CXXFLAGS" = set; then
Chris@41 4656 CXXFLAGS=$ac_save_CXXFLAGS
Chris@41 4657 elif test $ac_cv_prog_cxx_g = yes; then
Chris@41 4658 if test "$GXX" = yes; then
Chris@41 4659 CXXFLAGS="-g -O2"
Chris@41 4660 else
Chris@41 4661 CXXFLAGS="-g"
Chris@41 4662 fi
Chris@41 4663 else
Chris@41 4664 if test "$GXX" = yes; then
Chris@41 4665 CXXFLAGS="-O2"
Chris@41 4666 else
Chris@41 4667 CXXFLAGS=
Chris@41 4668 fi
Chris@41 4669 fi
Chris@41 4670 ac_ext=c
Chris@41 4671 ac_cpp='$CPP $CPPFLAGS'
Chris@41 4672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@41 4673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@41 4674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@41 4675
Chris@41 4676 depcc="$CXX" am_compiler_list=
Chris@41 4677
Chris@41 4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Chris@41 4679 $as_echo_n "checking dependency style of $depcc... " >&6; }
Chris@41 4680 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
Chris@41 4681 $as_echo_n "(cached) " >&6
Chris@41 4682 else
Chris@41 4683 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
Chris@41 4684 # We make a subdir and do the tests there. Otherwise we can end up
Chris@41 4685 # making bogus files that we don't know about and never remove. For
Chris@41 4686 # instance it was reported that on HP-UX the gcc test will end up
Chris@41 4687 # making a dummy file named 'D' -- because '-MD' means "put the output
Chris@41 4688 # in D".
Chris@41 4689 rm -rf conftest.dir
Chris@41 4690 mkdir conftest.dir
Chris@41 4691 # Copy depcomp to subdir because otherwise we won't find it if we're
Chris@41 4692 # using a relative directory.
Chris@41 4693 cp "$am_depcomp" conftest.dir
Chris@41 4694 cd conftest.dir
Chris@41 4695 # We will build objects and dependencies in a subdirectory because
Chris@41 4696 # it helps to detect inapplicable dependency modes. For instance
Chris@41 4697 # both Tru64's cc and ICC support -MD to output dependencies as a
Chris@41 4698 # side effect of compilation, but ICC will put the dependencies in
Chris@41 4699 # the current directory while Tru64 will put them in the object
Chris@41 4700 # directory.
Chris@41 4701 mkdir sub
Chris@41 4702
Chris@41 4703 am_cv_CXX_dependencies_compiler_type=none
Chris@41 4704 if test "$am_compiler_list" = ""; then
Chris@41 4705 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
Chris@41 4706 fi
Chris@41 4707 am__universal=false
Chris@41 4708 case " $depcc " in #(
Chris@41 4709 *\ -arch\ *\ -arch\ *) am__universal=true ;;
Chris@41 4710 esac
Chris@41 4711
Chris@41 4712 for depmode in $am_compiler_list; do
Chris@41 4713 # Setup a source with many dependencies, because some compilers
Chris@41 4714 # like to wrap large dependency lists on column 80 (with \), and
Chris@41 4715 # we should not choose a depcomp mode which is confused by this.
Chris@41 4716 #
Chris@41 4717 # We need to recreate these files for each test, as the compiler may
Chris@41 4718 # overwrite some of them when testing with obscure command lines.
Chris@41 4719 # This happens at least with the AIX C compiler.
Chris@41 4720 : > sub/conftest.c
Chris@41 4721 for i in 1 2 3 4 5 6; do
Chris@41 4722 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Chris@41 4723 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
Chris@41 4724 # Solaris 10 /bin/sh.
Chris@41 4725 echo '/* dummy */' > sub/conftst$i.h
Chris@41 4726 done
Chris@41 4727 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Chris@41 4728
Chris@41 4729 # We check with '-c' and '-o' for the sake of the "dashmstdout"
Chris@41 4730 # mode. It turns out that the SunPro C++ compiler does not properly
Chris@41 4731 # handle '-M -o', and we need to detect this. Also, some Intel
Chris@41 4732 # versions had trouble with output in subdirs.
Chris@41 4733 am__obj=sub/conftest.${OBJEXT-o}
Chris@41 4734 am__minus_obj="-o $am__obj"
Chris@41 4735 case $depmode in
Chris@41 4736 gcc)
Chris@41 4737 # This depmode causes a compiler race in universal mode.
Chris@41 4738 test "$am__universal" = false || continue
Chris@41 4739 ;;
Chris@41 4740 nosideeffect)
Chris@41 4741 # After this tag, mechanisms are not by side-effect, so they'll
Chris@41 4742 # only be used when explicitly requested.
Chris@41 4743 if test "x$enable_dependency_tracking" = xyes; then
Chris@41 4744 continue
Chris@41 4745 else
Chris@41 4746 break
Chris@41 4747 fi
Chris@41 4748 ;;
Chris@41 4749 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
Chris@41 4750 # This compiler won't grok '-c -o', but also, the minuso test has
Chris@41 4751 # not run yet. These depmodes are late enough in the game, and
Chris@41 4752 # so weak that their functioning should not be impacted.
Chris@41 4753 am__obj=conftest.${OBJEXT-o}
Chris@41 4754 am__minus_obj=
Chris@41 4755 ;;
Chris@41 4756 none) break ;;
Chris@41 4757 esac
Chris@41 4758 if depmode=$depmode \
Chris@41 4759 source=sub/conftest.c object=$am__obj \
Chris@41 4760 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Chris@41 4761 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Chris@41 4762 >/dev/null 2>conftest.err &&
Chris@41 4763 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Chris@41 4764 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Chris@41 4765 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Chris@41 4766 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Chris@41 4767 # icc doesn't choke on unknown options, it will just issue warnings
Chris@41 4768 # or remarks (even with -Werror). So we grep stderr for any message
Chris@41 4769 # that says an option was ignored or not supported.
Chris@41 4770 # When given -MP, icc 7.0 and 7.1 complain thusly:
Chris@41 4771 # icc: Command line warning: ignoring option '-M'; no argument required
Chris@41 4772 # The diagnosis changed in icc 8.0:
Chris@41 4773 # icc: Command line remark: option '-MP' not supported
Chris@41 4774 if (grep 'ignoring option' conftest.err ||
Chris@41 4775 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Chris@41 4776 am_cv_CXX_dependencies_compiler_type=$depmode
Chris@41 4777 break
Chris@41 4778 fi
Chris@41 4779 fi
Chris@41 4780 done
Chris@41 4781
Chris@41 4782 cd ..
Chris@41 4783 rm -rf conftest.dir
Chris@41 4784 else
Chris@41 4785 am_cv_CXX_dependencies_compiler_type=none
Chris@41 4786 fi
Chris@41 4787
Chris@41 4788 fi
Chris@41 4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
Chris@41 4790 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
Chris@41 4791 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
Chris@41 4792
Chris@41 4793 if
Chris@41 4794 test "x$enable_dependency_tracking" != xno \
Chris@41 4795 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
Chris@41 4796 am__fastdepCXX_TRUE=
Chris@41 4797 am__fastdepCXX_FALSE='#'
Chris@41 4798 else
Chris@41 4799 am__fastdepCXX_TRUE='#'
Chris@41 4800 am__fastdepCXX_FALSE=
Chris@41 4801 fi
Chris@41 4802
Chris@41 4803
Chris@41 4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
Chris@41 4805 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
Chris@41 4806 if ${ac_cv_path_SED+:} false; then :
Chris@41 4807 $as_echo_n "(cached) " >&6
Chris@41 4808 else
Chris@41 4809 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
Chris@41 4810 for ac_i in 1 2 3 4 5 6 7; do
Chris@41 4811 ac_script="$ac_script$as_nl$ac_script"
Chris@41 4812 done
Chris@41 4813 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
Chris@41 4814 { ac_script=; unset ac_script;}
Chris@41 4815 if test -z "$SED"; then
Chris@41 4816 ac_path_SED_found=false
Chris@41 4817 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@41 4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 4819 for as_dir in $PATH
Chris@41 4820 do
Chris@41 4821 IFS=$as_save_IFS
Chris@41 4822 test -z "$as_dir" && as_dir=.
Chris@41 4823 for ac_prog in sed gsed; do
Chris@41 4824 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 4825 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Chris@41 4826 as_fn_executable_p "$ac_path_SED" || continue
Chris@41 4827 # Check for GNU ac_path_SED and select it if it is found.
Chris@41 4828 # Check for GNU $ac_path_SED
Chris@41 4829 case `"$ac_path_SED" --version 2>&1` in
Chris@41 4830 *GNU*)
Chris@41 4831 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
Chris@41 4832 *)
Chris@41 4833 ac_count=0
Chris@41 4834 $as_echo_n 0123456789 >"conftest.in"
Chris@41 4835 while :
Chris@41 4836 do
Chris@41 4837 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@41 4838 mv "conftest.tmp" "conftest.in"
Chris@41 4839 cp "conftest.in" "conftest.nl"
Chris@41 4840 $as_echo '' >> "conftest.nl"
Chris@41 4841 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@41 4842 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@41 4843 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@41 4844 if test $ac_count -gt ${ac_path_SED_max-0}; then
Chris@41 4845 # Best one so far, save it but keep looking for a better one
Chris@41 4846 ac_cv_path_SED="$ac_path_SED"
Chris@41 4847 ac_path_SED_max=$ac_count
Chris@41 4848 fi
Chris@41 4849 # 10*(2^10) chars as input seems more than enough
Chris@41 4850 test $ac_count -gt 10 && break
Chris@41 4851 done
Chris@41 4852 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@41 4853 esac
Chris@41 4854
Chris@41 4855 $ac_path_SED_found && break 3
Chris@41 4856 done
Chris@41 4857 done
Chris@41 4858 done
Chris@41 4859 IFS=$as_save_IFS
Chris@41 4860 if test -z "$ac_cv_path_SED"; then
Chris@41 4861 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Chris@41 4862 fi
Chris@41 4863 else
Chris@41 4864 ac_cv_path_SED=$SED
Chris@41 4865 fi
Chris@41 4866
Chris@41 4867 fi
Chris@41 4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
Chris@41 4869 $as_echo "$ac_cv_path_SED" >&6; }
Chris@41 4870 SED="$ac_cv_path_SED"
Chris@41 4871 rm -f conftest.sed
Chris@41 4872
Chris@41 4873
Chris@41 4874 # Do not check for F77.
Chris@41 4875
Chris@41 4876 case `pwd` in
Chris@41 4877 *\ * | *\ *)
Chris@41 4878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
Chris@41 4879 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
Chris@41 4880 esac
Chris@41 4881
Chris@41 4882
Chris@41 4883
Chris@41 4884 macro_version='2.4.6'
Chris@41 4885 macro_revision='2.4.6'
Chris@41 4886
Chris@41 4887
Chris@41 4888
Chris@41 4889
Chris@41 4890
Chris@41 4891
Chris@41 4892
Chris@41 4893
Chris@41 4894
Chris@41 4895
Chris@41 4896
Chris@41 4897
Chris@41 4898
Chris@41 4899 ltmain=$ac_aux_dir/ltmain.sh
Chris@41 4900
Chris@41 4901 # Backslashify metacharacters that are still active within
Chris@41 4902 # double-quoted strings.
Chris@41 4903 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
Chris@41 4904
Chris@41 4905 # Same as above, but do not quote variable references.
Chris@41 4906 double_quote_subst='s/\(["`\\]\)/\\\1/g'
Chris@41 4907
Chris@41 4908 # Sed substitution to delay expansion of an escaped shell variable in a
Chris@41 4909 # double_quote_subst'ed string.
Chris@41 4910 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
Chris@41 4911
Chris@41 4912 # Sed substitution to delay expansion of an escaped single quote.
Chris@41 4913 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
Chris@41 4914
Chris@41 4915 # Sed substitution to avoid accidental globbing in evaled expressions
Chris@41 4916 no_glob_subst='s/\*/\\\*/g'
Chris@41 4917
Chris@41 4918 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@41 4919 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
Chris@41 4920 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
Chris@41 4921
Chris@41 4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
Chris@41 4923 $as_echo_n "checking how to print strings... " >&6; }
Chris@41 4924 # Test print first, because it will be a builtin if present.
Chris@41 4925 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
Chris@41 4926 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
Chris@41 4927 ECHO='print -r --'
Chris@41 4928 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
Chris@41 4929 ECHO='printf %s\n'
Chris@41 4930 else
Chris@41 4931 # Use this function as a fallback that always works.
Chris@41 4932 func_fallback_echo ()
Chris@41 4933 {
Chris@41 4934 eval 'cat <<_LTECHO_EOF
Chris@41 4935 $1
Chris@41 4936 _LTECHO_EOF'
Chris@41 4937 }
Chris@41 4938 ECHO='func_fallback_echo'
Chris@41 4939 fi
Chris@41 4940
Chris@41 4941 # func_echo_all arg...
Chris@41 4942 # Invoke $ECHO with all args, space-separated.
Chris@41 4943 func_echo_all ()
Chris@41 4944 {
Chris@41 4945 $ECHO ""
Chris@41 4946 }
Chris@41 4947
Chris@41 4948 case $ECHO in
Chris@41 4949 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
Chris@41 4950 $as_echo "printf" >&6; } ;;
Chris@41 4951 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
Chris@41 4952 $as_echo "print -r" >&6; } ;;
Chris@41 4953 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
Chris@41 4954 $as_echo "cat" >&6; } ;;
Chris@41 4955 esac
Chris@41 4956
Chris@41 4957
Chris@41 4958
Chris@41 4959
Chris@41 4960
Chris@41 4961
Chris@41 4962
Chris@41 4963
Chris@41 4964
Chris@41 4965
Chris@41 4966
Chris@41 4967
Chris@41 4968
Chris@41 4969
Chris@41 4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
Chris@41 4971 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
Chris@41 4972 if ${ac_cv_path_SED+:} false; then :
Chris@41 4973 $as_echo_n "(cached) " >&6
Chris@41 4974 else
Chris@41 4975 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
Chris@41 4976 for ac_i in 1 2 3 4 5 6 7; do
Chris@41 4977 ac_script="$ac_script$as_nl$ac_script"
Chris@41 4978 done
Chris@41 4979 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
Chris@41 4980 { ac_script=; unset ac_script;}
Chris@41 4981 if test -z "$SED"; then
Chris@41 4982 ac_path_SED_found=false
Chris@41 4983 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@41 4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 4985 for as_dir in $PATH
Chris@41 4986 do
Chris@41 4987 IFS=$as_save_IFS
Chris@41 4988 test -z "$as_dir" && as_dir=.
Chris@41 4989 for ac_prog in sed gsed; do
Chris@41 4990 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 4991 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Chris@41 4992 as_fn_executable_p "$ac_path_SED" || continue
Chris@41 4993 # Check for GNU ac_path_SED and select it if it is found.
Chris@41 4994 # Check for GNU $ac_path_SED
Chris@41 4995 case `"$ac_path_SED" --version 2>&1` in
Chris@41 4996 *GNU*)
Chris@41 4997 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
Chris@41 4998 *)
Chris@41 4999 ac_count=0
Chris@41 5000 $as_echo_n 0123456789 >"conftest.in"
Chris@41 5001 while :
Chris@41 5002 do
Chris@41 5003 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@41 5004 mv "conftest.tmp" "conftest.in"
Chris@41 5005 cp "conftest.in" "conftest.nl"
Chris@41 5006 $as_echo '' >> "conftest.nl"
Chris@41 5007 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@41 5008 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@41 5009 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@41 5010 if test $ac_count -gt ${ac_path_SED_max-0}; then
Chris@41 5011 # Best one so far, save it but keep looking for a better one
Chris@41 5012 ac_cv_path_SED="$ac_path_SED"
Chris@41 5013 ac_path_SED_max=$ac_count
Chris@41 5014 fi
Chris@41 5015 # 10*(2^10) chars as input seems more than enough
Chris@41 5016 test $ac_count -gt 10 && break
Chris@41 5017 done
Chris@41 5018 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@41 5019 esac
Chris@41 5020
Chris@41 5021 $ac_path_SED_found && break 3
Chris@41 5022 done
Chris@41 5023 done
Chris@41 5024 done
Chris@41 5025 IFS=$as_save_IFS
Chris@41 5026 if test -z "$ac_cv_path_SED"; then
Chris@41 5027 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Chris@41 5028 fi
Chris@41 5029 else
Chris@41 5030 ac_cv_path_SED=$SED
Chris@41 5031 fi
Chris@41 5032
Chris@41 5033 fi
Chris@41 5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
Chris@41 5035 $as_echo "$ac_cv_path_SED" >&6; }
Chris@41 5036 SED="$ac_cv_path_SED"
Chris@41 5037 rm -f conftest.sed
Chris@41 5038
Chris@41 5039 test -z "$SED" && SED=sed
Chris@41 5040 Xsed="$SED -e 1s/^X//"
Chris@41 5041
Chris@41 5042
Chris@41 5043
Chris@41 5044
Chris@41 5045
Chris@41 5046
Chris@41 5047
Chris@41 5048
Chris@41 5049
Chris@41 5050
Chris@41 5051
Chris@41 5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Chris@41 5053 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Chris@41 5054 if ${ac_cv_path_GREP+:} false; then :
Chris@41 5055 $as_echo_n "(cached) " >&6
Chris@41 5056 else
Chris@41 5057 if test -z "$GREP"; then
Chris@41 5058 ac_path_GREP_found=false
Chris@41 5059 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@41 5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 5061 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@41 5062 do
Chris@41 5063 IFS=$as_save_IFS
Chris@41 5064 test -z "$as_dir" && as_dir=.
Chris@41 5065 for ac_prog in grep ggrep; do
Chris@41 5066 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 5067 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@41 5068 as_fn_executable_p "$ac_path_GREP" || continue
Chris@41 5069 # Check for GNU ac_path_GREP and select it if it is found.
Chris@41 5070 # Check for GNU $ac_path_GREP
Chris@41 5071 case `"$ac_path_GREP" --version 2>&1` in
Chris@41 5072 *GNU*)
Chris@41 5073 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
Chris@41 5074 *)
Chris@41 5075 ac_count=0
Chris@41 5076 $as_echo_n 0123456789 >"conftest.in"
Chris@41 5077 while :
Chris@41 5078 do
Chris@41 5079 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@41 5080 mv "conftest.tmp" "conftest.in"
Chris@41 5081 cp "conftest.in" "conftest.nl"
Chris@41 5082 $as_echo 'GREP' >> "conftest.nl"
Chris@41 5083 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@41 5084 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@41 5085 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@41 5086 if test $ac_count -gt ${ac_path_GREP_max-0}; then
Chris@41 5087 # Best one so far, save it but keep looking for a better one
Chris@41 5088 ac_cv_path_GREP="$ac_path_GREP"
Chris@41 5089 ac_path_GREP_max=$ac_count
Chris@41 5090 fi
Chris@41 5091 # 10*(2^10) chars as input seems more than enough
Chris@41 5092 test $ac_count -gt 10 && break
Chris@41 5093 done
Chris@41 5094 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@41 5095 esac
Chris@41 5096
Chris@41 5097 $ac_path_GREP_found && break 3
Chris@41 5098 done
Chris@41 5099 done
Chris@41 5100 done
Chris@41 5101 IFS=$as_save_IFS
Chris@41 5102 if test -z "$ac_cv_path_GREP"; then
Chris@41 5103 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@41 5104 fi
Chris@41 5105 else
Chris@41 5106 ac_cv_path_GREP=$GREP
Chris@41 5107 fi
Chris@41 5108
Chris@41 5109 fi
Chris@41 5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Chris@41 5111 $as_echo "$ac_cv_path_GREP" >&6; }
Chris@41 5112 GREP="$ac_cv_path_GREP"
Chris@41 5113
Chris@41 5114
Chris@41 5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Chris@41 5116 $as_echo_n "checking for egrep... " >&6; }
Chris@41 5117 if ${ac_cv_path_EGREP+:} false; then :
Chris@41 5118 $as_echo_n "(cached) " >&6
Chris@41 5119 else
Chris@41 5120 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
Chris@41 5121 then ac_cv_path_EGREP="$GREP -E"
Chris@41 5122 else
Chris@41 5123 if test -z "$EGREP"; then
Chris@41 5124 ac_path_EGREP_found=false
Chris@41 5125 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@41 5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 5127 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@41 5128 do
Chris@41 5129 IFS=$as_save_IFS
Chris@41 5130 test -z "$as_dir" && as_dir=.
Chris@41 5131 for ac_prog in egrep; do
Chris@41 5132 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 5133 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@41 5134 as_fn_executable_p "$ac_path_EGREP" || continue
Chris@41 5135 # Check for GNU ac_path_EGREP and select it if it is found.
Chris@41 5136 # Check for GNU $ac_path_EGREP
Chris@41 5137 case `"$ac_path_EGREP" --version 2>&1` in
Chris@41 5138 *GNU*)
Chris@41 5139 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
Chris@41 5140 *)
Chris@41 5141 ac_count=0
Chris@41 5142 $as_echo_n 0123456789 >"conftest.in"
Chris@41 5143 while :
Chris@41 5144 do
Chris@41 5145 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@41 5146 mv "conftest.tmp" "conftest.in"
Chris@41 5147 cp "conftest.in" "conftest.nl"
Chris@41 5148 $as_echo 'EGREP' >> "conftest.nl"
Chris@41 5149 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@41 5150 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@41 5151 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@41 5152 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
Chris@41 5153 # Best one so far, save it but keep looking for a better one
Chris@41 5154 ac_cv_path_EGREP="$ac_path_EGREP"
Chris@41 5155 ac_path_EGREP_max=$ac_count
Chris@41 5156 fi
Chris@41 5157 # 10*(2^10) chars as input seems more than enough
Chris@41 5158 test $ac_count -gt 10 && break
Chris@41 5159 done
Chris@41 5160 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@41 5161 esac
Chris@41 5162
Chris@41 5163 $ac_path_EGREP_found && break 3
Chris@41 5164 done
Chris@41 5165 done
Chris@41 5166 done
Chris@41 5167 IFS=$as_save_IFS
Chris@41 5168 if test -z "$ac_cv_path_EGREP"; then
Chris@41 5169 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@41 5170 fi
Chris@41 5171 else
Chris@41 5172 ac_cv_path_EGREP=$EGREP
Chris@41 5173 fi
Chris@41 5174
Chris@41 5175 fi
Chris@41 5176 fi
Chris@41 5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Chris@41 5178 $as_echo "$ac_cv_path_EGREP" >&6; }
Chris@41 5179 EGREP="$ac_cv_path_EGREP"
Chris@41 5180
Chris@41 5181
Chris@41 5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
Chris@41 5183 $as_echo_n "checking for fgrep... " >&6; }
Chris@41 5184 if ${ac_cv_path_FGREP+:} false; then :
Chris@41 5185 $as_echo_n "(cached) " >&6
Chris@41 5186 else
Chris@41 5187 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
Chris@41 5188 then ac_cv_path_FGREP="$GREP -F"
Chris@41 5189 else
Chris@41 5190 if test -z "$FGREP"; then
Chris@41 5191 ac_path_FGREP_found=false
Chris@41 5192 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@41 5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 5194 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@41 5195 do
Chris@41 5196 IFS=$as_save_IFS
Chris@41 5197 test -z "$as_dir" && as_dir=.
Chris@41 5198 for ac_prog in fgrep; do
Chris@41 5199 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 5200 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@41 5201 as_fn_executable_p "$ac_path_FGREP" || continue
Chris@41 5202 # Check for GNU ac_path_FGREP and select it if it is found.
Chris@41 5203 # Check for GNU $ac_path_FGREP
Chris@41 5204 case `"$ac_path_FGREP" --version 2>&1` in
Chris@41 5205 *GNU*)
Chris@41 5206 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
Chris@41 5207 *)
Chris@41 5208 ac_count=0
Chris@41 5209 $as_echo_n 0123456789 >"conftest.in"
Chris@41 5210 while :
Chris@41 5211 do
Chris@41 5212 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@41 5213 mv "conftest.tmp" "conftest.in"
Chris@41 5214 cp "conftest.in" "conftest.nl"
Chris@41 5215 $as_echo 'FGREP' >> "conftest.nl"
Chris@41 5216 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@41 5217 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@41 5218 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@41 5219 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
Chris@41 5220 # Best one so far, save it but keep looking for a better one
Chris@41 5221 ac_cv_path_FGREP="$ac_path_FGREP"
Chris@41 5222 ac_path_FGREP_max=$ac_count
Chris@41 5223 fi
Chris@41 5224 # 10*(2^10) chars as input seems more than enough
Chris@41 5225 test $ac_count -gt 10 && break
Chris@41 5226 done
Chris@41 5227 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@41 5228 esac
Chris@41 5229
Chris@41 5230 $ac_path_FGREP_found && break 3
Chris@41 5231 done
Chris@41 5232 done
Chris@41 5233 done
Chris@41 5234 IFS=$as_save_IFS
Chris@41 5235 if test -z "$ac_cv_path_FGREP"; then
Chris@41 5236 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@41 5237 fi
Chris@41 5238 else
Chris@41 5239 ac_cv_path_FGREP=$FGREP
Chris@41 5240 fi
Chris@41 5241
Chris@41 5242 fi
Chris@41 5243 fi
Chris@41 5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
Chris@41 5245 $as_echo "$ac_cv_path_FGREP" >&6; }
Chris@41 5246 FGREP="$ac_cv_path_FGREP"
Chris@41 5247
Chris@41 5248
Chris@41 5249 test -z "$GREP" && GREP=grep
Chris@41 5250
Chris@41 5251
Chris@41 5252
Chris@41 5253
Chris@41 5254
Chris@41 5255
Chris@41 5256
Chris@41 5257
Chris@41 5258
Chris@41 5259
Chris@41 5260
Chris@41 5261
Chris@41 5262
Chris@41 5263
Chris@41 5264
Chris@41 5265
Chris@41 5266
Chris@41 5267
Chris@41 5268
Chris@41 5269 # Check whether --with-gnu-ld was given.
Chris@41 5270 if test "${with_gnu_ld+set}" = set; then :
Chris@41 5271 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
Chris@41 5272 else
Chris@41 5273 with_gnu_ld=no
Chris@41 5274 fi
Chris@41 5275
Chris@41 5276 ac_prog=ld
Chris@41 5277 if test yes = "$GCC"; then
Chris@41 5278 # Check if gcc -print-prog-name=ld gives a path.
Chris@41 5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
Chris@41 5280 $as_echo_n "checking for ld used by $CC... " >&6; }
Chris@41 5281 case $host in
Chris@41 5282 *-*-mingw*)
Chris@41 5283 # gcc leaves a trailing carriage return, which upsets mingw
Chris@41 5284 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
Chris@41 5285 *)
Chris@41 5286 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
Chris@41 5287 esac
Chris@41 5288 case $ac_prog in
Chris@41 5289 # Accept absolute paths.
Chris@41 5290 [\\/]* | ?:[\\/]*)
Chris@41 5291 re_direlt='/[^/][^/]*/\.\./'
Chris@41 5292 # Canonicalize the pathname of ld
Chris@41 5293 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
Chris@41 5294 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
Chris@41 5295 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Chris@41 5296 done
Chris@41 5297 test -z "$LD" && LD=$ac_prog
Chris@41 5298 ;;
Chris@41 5299 "")
Chris@41 5300 # If it fails, then pretend we aren't using GCC.
Chris@41 5301 ac_prog=ld
Chris@41 5302 ;;
Chris@41 5303 *)
Chris@41 5304 # If it is relative, then search for the first ld in PATH.
Chris@41 5305 with_gnu_ld=unknown
Chris@41 5306 ;;
Chris@41 5307 esac
Chris@41 5308 elif test yes = "$with_gnu_ld"; then
Chris@41 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Chris@41 5310 $as_echo_n "checking for GNU ld... " >&6; }
Chris@41 5311 else
Chris@41 5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Chris@41 5313 $as_echo_n "checking for non-GNU ld... " >&6; }
Chris@41 5314 fi
Chris@41 5315 if ${lt_cv_path_LD+:} false; then :
Chris@41 5316 $as_echo_n "(cached) " >&6
Chris@41 5317 else
Chris@41 5318 if test -z "$LD"; then
Chris@41 5319 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Chris@41 5320 for ac_dir in $PATH; do
Chris@41 5321 IFS=$lt_save_ifs
Chris@41 5322 test -z "$ac_dir" && ac_dir=.
Chris@41 5323 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Chris@41 5324 lt_cv_path_LD=$ac_dir/$ac_prog
Chris@41 5325 # Check to see if the program is GNU ld. I'd rather use --version,
Chris@41 5326 # but apparently some variants of GNU ld only accept -v.
Chris@41 5327 # Break only if it was the GNU/non-GNU ld that we prefer.
Chris@41 5328 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
Chris@41 5329 *GNU* | *'with BFD'*)
Chris@41 5330 test no != "$with_gnu_ld" && break
Chris@41 5331 ;;
Chris@41 5332 *)
Chris@41 5333 test yes != "$with_gnu_ld" && break
Chris@41 5334 ;;
Chris@41 5335 esac
Chris@41 5336 fi
Chris@41 5337 done
Chris@41 5338 IFS=$lt_save_ifs
Chris@41 5339 else
Chris@41 5340 lt_cv_path_LD=$LD # Let the user override the test with a path.
Chris@41 5341 fi
Chris@41 5342 fi
Chris@41 5343
Chris@41 5344 LD=$lt_cv_path_LD
Chris@41 5345 if test -n "$LD"; then
Chris@41 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Chris@41 5347 $as_echo "$LD" >&6; }
Chris@41 5348 else
Chris@41 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 5350 $as_echo "no" >&6; }
Chris@41 5351 fi
Chris@41 5352 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Chris@41 5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Chris@41 5354 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Chris@41 5355 if ${lt_cv_prog_gnu_ld+:} false; then :
Chris@41 5356 $as_echo_n "(cached) " >&6
Chris@41 5357 else
Chris@41 5358 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Chris@41 5359 case `$LD -v 2>&1 </dev/null` in
Chris@41 5360 *GNU* | *'with BFD'*)
Chris@41 5361 lt_cv_prog_gnu_ld=yes
Chris@41 5362 ;;
Chris@41 5363 *)
Chris@41 5364 lt_cv_prog_gnu_ld=no
Chris@41 5365 ;;
Chris@41 5366 esac
Chris@41 5367 fi
Chris@41 5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
Chris@41 5369 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
Chris@41 5370 with_gnu_ld=$lt_cv_prog_gnu_ld
Chris@41 5371
Chris@41 5372
Chris@41 5373
Chris@41 5374
Chris@41 5375
Chris@41 5376
Chris@41 5377
Chris@41 5378
Chris@41 5379
Chris@41 5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
Chris@41 5381 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Chris@41 5382 if ${lt_cv_path_NM+:} false; then :
Chris@41 5383 $as_echo_n "(cached) " >&6
Chris@41 5384 else
Chris@41 5385 if test -n "$NM"; then
Chris@41 5386 # Let the user override the test.
Chris@41 5387 lt_cv_path_NM=$NM
Chris@41 5388 else
Chris@41 5389 lt_nm_to_check=${ac_tool_prefix}nm
Chris@41 5390 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
Chris@41 5391 lt_nm_to_check="$lt_nm_to_check nm"
Chris@41 5392 fi
Chris@41 5393 for lt_tmp_nm in $lt_nm_to_check; do
Chris@41 5394 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Chris@41 5395 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
Chris@41 5396 IFS=$lt_save_ifs
Chris@41 5397 test -z "$ac_dir" && ac_dir=.
Chris@41 5398 tmp_nm=$ac_dir/$lt_tmp_nm
Chris@41 5399 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
Chris@41 5400 # Check to see if the nm accepts a BSD-compat flag.
Chris@41 5401 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
Chris@41 5402 # nm: unknown option "B" ignored
Chris@41 5403 # Tru64's nm complains that /dev/null is an invalid object file
Chris@41 5404 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
Chris@41 5405 case $build_os in
Chris@41 5406 mingw*) lt_bad_file=conftest.nm/nofile ;;
Chris@41 5407 *) lt_bad_file=/dev/null ;;
Chris@41 5408 esac
Chris@41 5409 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
Chris@41 5410 *$lt_bad_file* | *'Invalid file or object type'*)
Chris@41 5411 lt_cv_path_NM="$tmp_nm -B"
Chris@41 5412 break 2
Chris@41 5413 ;;
Chris@41 5414 *)
Chris@41 5415 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
Chris@41 5416 */dev/null*)
Chris@41 5417 lt_cv_path_NM="$tmp_nm -p"
Chris@41 5418 break 2
Chris@41 5419 ;;
Chris@41 5420 *)
Chris@41 5421 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
Chris@41 5422 continue # so that we can try to find one that supports BSD flags
Chris@41 5423 ;;
Chris@41 5424 esac
Chris@41 5425 ;;
Chris@41 5426 esac
Chris@41 5427 fi
Chris@41 5428 done
Chris@41 5429 IFS=$lt_save_ifs
Chris@41 5430 done
Chris@41 5431 : ${lt_cv_path_NM=no}
Chris@41 5432 fi
Chris@41 5433 fi
Chris@41 5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
Chris@41 5435 $as_echo "$lt_cv_path_NM" >&6; }
Chris@41 5436 if test no != "$lt_cv_path_NM"; then
Chris@41 5437 NM=$lt_cv_path_NM
Chris@41 5438 else
Chris@41 5439 # Didn't find any BSD compatible name lister, look for dumpbin.
Chris@41 5440 if test -n "$DUMPBIN"; then :
Chris@41 5441 # Let the user override the test.
Chris@41 5442 else
Chris@41 5443 if test -n "$ac_tool_prefix"; then
Chris@41 5444 for ac_prog in dumpbin "link -dump"
Chris@41 5445 do
Chris@41 5446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@41 5447 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@41 5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 5449 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 5450 if ${ac_cv_prog_DUMPBIN+:} false; then :
Chris@41 5451 $as_echo_n "(cached) " >&6
Chris@41 5452 else
Chris@41 5453 if test -n "$DUMPBIN"; then
Chris@41 5454 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
Chris@41 5455 else
Chris@41 5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 5457 for as_dir in $PATH
Chris@41 5458 do
Chris@41 5459 IFS=$as_save_IFS
Chris@41 5460 test -z "$as_dir" && as_dir=.
Chris@41 5461 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 5462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 5463 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Chris@41 5464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 5465 break 2
Chris@41 5466 fi
Chris@41 5467 done
Chris@41 5468 done
Chris@41 5469 IFS=$as_save_IFS
Chris@41 5470
Chris@41 5471 fi
Chris@41 5472 fi
Chris@41 5473 DUMPBIN=$ac_cv_prog_DUMPBIN
Chris@41 5474 if test -n "$DUMPBIN"; then
Chris@41 5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
Chris@41 5476 $as_echo "$DUMPBIN" >&6; }
Chris@41 5477 else
Chris@41 5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 5479 $as_echo "no" >&6; }
Chris@41 5480 fi
Chris@41 5481
Chris@41 5482
Chris@41 5483 test -n "$DUMPBIN" && break
Chris@41 5484 done
Chris@41 5485 fi
Chris@41 5486 if test -z "$DUMPBIN"; then
Chris@41 5487 ac_ct_DUMPBIN=$DUMPBIN
Chris@41 5488 for ac_prog in dumpbin "link -dump"
Chris@41 5489 do
Chris@41 5490 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@41 5491 set dummy $ac_prog; ac_word=$2
Chris@41 5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 5493 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 5494 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Chris@41 5495 $as_echo_n "(cached) " >&6
Chris@41 5496 else
Chris@41 5497 if test -n "$ac_ct_DUMPBIN"; then
Chris@41 5498 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
Chris@41 5499 else
Chris@41 5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 5501 for as_dir in $PATH
Chris@41 5502 do
Chris@41 5503 IFS=$as_save_IFS
Chris@41 5504 test -z "$as_dir" && as_dir=.
Chris@41 5505 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 5506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 5507 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Chris@41 5508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 5509 break 2
Chris@41 5510 fi
Chris@41 5511 done
Chris@41 5512 done
Chris@41 5513 IFS=$as_save_IFS
Chris@41 5514
Chris@41 5515 fi
Chris@41 5516 fi
Chris@41 5517 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
Chris@41 5518 if test -n "$ac_ct_DUMPBIN"; then
Chris@41 5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
Chris@41 5520 $as_echo "$ac_ct_DUMPBIN" >&6; }
Chris@41 5521 else
Chris@41 5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 5523 $as_echo "no" >&6; }
Chris@41 5524 fi
Chris@41 5525
Chris@41 5526
Chris@41 5527 test -n "$ac_ct_DUMPBIN" && break
Chris@41 5528 done
Chris@41 5529
Chris@41 5530 if test "x$ac_ct_DUMPBIN" = x; then
Chris@41 5531 DUMPBIN=":"
Chris@41 5532 else
Chris@41 5533 case $cross_compiling:$ac_tool_warned in
Chris@41 5534 yes:)
Chris@41 5535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@41 5536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@41 5537 ac_tool_warned=yes ;;
Chris@41 5538 esac
Chris@41 5539 DUMPBIN=$ac_ct_DUMPBIN
Chris@41 5540 fi
Chris@41 5541 fi
Chris@41 5542
Chris@41 5543 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
Chris@41 5544 *COFF*)
Chris@41 5545 DUMPBIN="$DUMPBIN -symbols -headers"
Chris@41 5546 ;;
Chris@41 5547 *)
Chris@41 5548 DUMPBIN=:
Chris@41 5549 ;;
Chris@41 5550 esac
Chris@41 5551 fi
Chris@41 5552
Chris@41 5553 if test : != "$DUMPBIN"; then
Chris@41 5554 NM=$DUMPBIN
Chris@41 5555 fi
Chris@41 5556 fi
Chris@41 5557 test -z "$NM" && NM=nm
Chris@41 5558
Chris@41 5559
Chris@41 5560
Chris@41 5561
Chris@41 5562
Chris@41 5563
Chris@41 5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
Chris@41 5565 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
Chris@41 5566 if ${lt_cv_nm_interface+:} false; then :
Chris@41 5567 $as_echo_n "(cached) " >&6
Chris@41 5568 else
Chris@41 5569 lt_cv_nm_interface="BSD nm"
Chris@41 5570 echo "int some_variable = 0;" > conftest.$ac_ext
Chris@41 5571 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
Chris@41 5572 (eval "$ac_compile" 2>conftest.err)
Chris@41 5573 cat conftest.err >&5
Chris@41 5574 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Chris@41 5575 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
Chris@41 5576 cat conftest.err >&5
Chris@41 5577 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
Chris@41 5578 cat conftest.out >&5
Chris@41 5579 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
Chris@41 5580 lt_cv_nm_interface="MS dumpbin"
Chris@41 5581 fi
Chris@41 5582 rm -f conftest*
Chris@41 5583 fi
Chris@41 5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
Chris@41 5585 $as_echo "$lt_cv_nm_interface" >&6; }
Chris@41 5586
Chris@41 5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Chris@41 5588 $as_echo_n "checking whether ln -s works... " >&6; }
Chris@41 5589 LN_S=$as_ln_s
Chris@41 5590 if test "$LN_S" = "ln -s"; then
Chris@41 5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@41 5592 $as_echo "yes" >&6; }
Chris@41 5593 else
Chris@41 5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Chris@41 5595 $as_echo "no, using $LN_S" >&6; }
Chris@41 5596 fi
Chris@41 5597
Chris@41 5598 # find the maximum length of command line arguments
Chris@41 5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
Chris@41 5600 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
Chris@41 5601 if ${lt_cv_sys_max_cmd_len+:} false; then :
Chris@41 5602 $as_echo_n "(cached) " >&6
Chris@41 5603 else
Chris@41 5604 i=0
Chris@41 5605 teststring=ABCD
Chris@41 5606
Chris@41 5607 case $build_os in
Chris@41 5608 msdosdjgpp*)
Chris@41 5609 # On DJGPP, this test can blow up pretty badly due to problems in libc
Chris@41 5610 # (any single argument exceeding 2000 bytes causes a buffer overrun
Chris@41 5611 # during glob expansion). Even if it were fixed, the result of this
Chris@41 5612 # check would be larger than it should be.
Chris@41 5613 lt_cv_sys_max_cmd_len=12288; # 12K is about right
Chris@41 5614 ;;
Chris@41 5615
Chris@41 5616 gnu*)
Chris@41 5617 # Under GNU Hurd, this test is not required because there is
Chris@41 5618 # no limit to the length of command line arguments.
Chris@41 5619 # Libtool will interpret -1 as no limit whatsoever
Chris@41 5620 lt_cv_sys_max_cmd_len=-1;
Chris@41 5621 ;;
Chris@41 5622
Chris@41 5623 cygwin* | mingw* | cegcc*)
Chris@41 5624 # On Win9x/ME, this test blows up -- it succeeds, but takes
Chris@41 5625 # about 5 minutes as the teststring grows exponentially.
Chris@41 5626 # Worse, since 9x/ME are not pre-emptively multitasking,
Chris@41 5627 # you end up with a "frozen" computer, even though with patience
Chris@41 5628 # the test eventually succeeds (with a max line length of 256k).
Chris@41 5629 # Instead, let's just punt: use the minimum linelength reported by
Chris@41 5630 # all of the supported platforms: 8192 (on NT/2K/XP).
Chris@41 5631 lt_cv_sys_max_cmd_len=8192;
Chris@41 5632 ;;
Chris@41 5633
Chris@41 5634 mint*)
Chris@41 5635 # On MiNT this can take a long time and run out of memory.
Chris@41 5636 lt_cv_sys_max_cmd_len=8192;
Chris@41 5637 ;;
Chris@41 5638
Chris@41 5639 amigaos*)
Chris@41 5640 # On AmigaOS with pdksh, this test takes hours, literally.
Chris@41 5641 # So we just punt and use a minimum line length of 8192.
Chris@41 5642 lt_cv_sys_max_cmd_len=8192;
Chris@41 5643 ;;
Chris@41 5644
Chris@41 5645 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
Chris@41 5646 # This has been around since 386BSD, at least. Likely further.
Chris@41 5647 if test -x /sbin/sysctl; then
Chris@41 5648 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
Chris@41 5649 elif test -x /usr/sbin/sysctl; then
Chris@41 5650 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
Chris@41 5651 else
Chris@41 5652 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Chris@41 5653 fi
Chris@41 5654 # And add a safety zone
Chris@41 5655 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Chris@41 5656 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Chris@41 5657 ;;
Chris@41 5658
Chris@41 5659 interix*)
Chris@41 5660 # We know the value 262144 and hardcode it with a safety zone (like BSD)
Chris@41 5661 lt_cv_sys_max_cmd_len=196608
Chris@41 5662 ;;
Chris@41 5663
Chris@41 5664 os2*)
Chris@41 5665 # The test takes a long time on OS/2.
Chris@41 5666 lt_cv_sys_max_cmd_len=8192
Chris@41 5667 ;;
Chris@41 5668
Chris@41 5669 osf*)
Chris@41 5670 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
Chris@41 5671 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
Chris@41 5672 # nice to cause kernel panics so lets avoid the loop below.
Chris@41 5673 # First set a reasonable default.
Chris@41 5674 lt_cv_sys_max_cmd_len=16384
Chris@41 5675 #
Chris@41 5676 if test -x /sbin/sysconfig; then
Chris@41 5677 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
Chris@41 5678 *1*) lt_cv_sys_max_cmd_len=-1 ;;
Chris@41 5679 esac
Chris@41 5680 fi
Chris@41 5681 ;;
Chris@41 5682 sco3.2v5*)
Chris@41 5683 lt_cv_sys_max_cmd_len=102400
Chris@41 5684 ;;
Chris@41 5685 sysv5* | sco5v6* | sysv4.2uw2*)
Chris@41 5686 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
Chris@41 5687 if test -n "$kargmax"; then
Chris@41 5688 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
Chris@41 5689 else
Chris@41 5690 lt_cv_sys_max_cmd_len=32768
Chris@41 5691 fi
Chris@41 5692 ;;
Chris@41 5693 *)
Chris@41 5694 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
Chris@41 5695 if test -n "$lt_cv_sys_max_cmd_len" && \
Chris@41 5696 test undefined != "$lt_cv_sys_max_cmd_len"; then
Chris@41 5697 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Chris@41 5698 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Chris@41 5699 else
Chris@41 5700 # Make teststring a little bigger before we do anything with it.
Chris@41 5701 # a 1K string should be a reasonable start.
Chris@41 5702 for i in 1 2 3 4 5 6 7 8; do
Chris@41 5703 teststring=$teststring$teststring
Chris@41 5704 done
Chris@41 5705 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
Chris@41 5706 # If test is not a shell built-in, we'll probably end up computing a
Chris@41 5707 # maximum length that is only half of the actual maximum length, but
Chris@41 5708 # we can't tell.
Chris@41 5709 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
Chris@41 5710 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Chris@41 5711 test 17 != "$i" # 1/2 MB should be enough
Chris@41 5712 do
Chris@41 5713 i=`expr $i + 1`
Chris@41 5714 teststring=$teststring$teststring
Chris@41 5715 done
Chris@41 5716 # Only check the string length outside the loop.
Chris@41 5717 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
Chris@41 5718 teststring=
Chris@41 5719 # Add a significant safety factor because C++ compilers can tack on
Chris@41 5720 # massive amounts of additional arguments before passing them to the
Chris@41 5721 # linker. It appears as though 1/2 is a usable value.
Chris@41 5722 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
Chris@41 5723 fi
Chris@41 5724 ;;
Chris@41 5725 esac
Chris@41 5726
Chris@41 5727 fi
Chris@41 5728
Chris@41 5729 if test -n "$lt_cv_sys_max_cmd_len"; then
Chris@41 5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
Chris@41 5731 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
Chris@41 5732 else
Chris@41 5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
Chris@41 5734 $as_echo "none" >&6; }
Chris@41 5735 fi
Chris@41 5736 max_cmd_len=$lt_cv_sys_max_cmd_len
Chris@41 5737
Chris@41 5738
Chris@41 5739
Chris@41 5740
Chris@41 5741
Chris@41 5742
Chris@41 5743 : ${CP="cp -f"}
Chris@41 5744 : ${MV="mv -f"}
Chris@41 5745 : ${RM="rm -f"}
Chris@41 5746
Chris@41 5747 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Chris@41 5748 lt_unset=unset
Chris@41 5749 else
Chris@41 5750 lt_unset=false
Chris@41 5751 fi
Chris@41 5752
Chris@41 5753
Chris@41 5754
Chris@41 5755
Chris@41 5756
Chris@41 5757 # test EBCDIC or ASCII
Chris@41 5758 case `echo X|tr X '\101'` in
Chris@41 5759 A) # ASCII based system
Chris@41 5760 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
Chris@41 5761 lt_SP2NL='tr \040 \012'
Chris@41 5762 lt_NL2SP='tr \015\012 \040\040'
Chris@41 5763 ;;
Chris@41 5764 *) # EBCDIC based system
Chris@41 5765 lt_SP2NL='tr \100 \n'
Chris@41 5766 lt_NL2SP='tr \r\n \100\100'
Chris@41 5767 ;;
Chris@41 5768 esac
Chris@41 5769
Chris@41 5770
Chris@41 5771
Chris@41 5772
Chris@41 5773
Chris@41 5774
Chris@41 5775
Chris@41 5776
Chris@41 5777
Chris@41 5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
Chris@41 5779 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
Chris@41 5780 if ${lt_cv_to_host_file_cmd+:} false; then :
Chris@41 5781 $as_echo_n "(cached) " >&6
Chris@41 5782 else
Chris@41 5783 case $host in
Chris@41 5784 *-*-mingw* )
Chris@41 5785 case $build in
Chris@41 5786 *-*-mingw* ) # actually msys
Chris@41 5787 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
Chris@41 5788 ;;
Chris@41 5789 *-*-cygwin* )
Chris@41 5790 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
Chris@41 5791 ;;
Chris@41 5792 * ) # otherwise, assume *nix
Chris@41 5793 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
Chris@41 5794 ;;
Chris@41 5795 esac
Chris@41 5796 ;;
Chris@41 5797 *-*-cygwin* )
Chris@41 5798 case $build in
Chris@41 5799 *-*-mingw* ) # actually msys
Chris@41 5800 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
Chris@41 5801 ;;
Chris@41 5802 *-*-cygwin* )
Chris@41 5803 lt_cv_to_host_file_cmd=func_convert_file_noop
Chris@41 5804 ;;
Chris@41 5805 * ) # otherwise, assume *nix
Chris@41 5806 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
Chris@41 5807 ;;
Chris@41 5808 esac
Chris@41 5809 ;;
Chris@41 5810 * ) # unhandled hosts (and "normal" native builds)
Chris@41 5811 lt_cv_to_host_file_cmd=func_convert_file_noop
Chris@41 5812 ;;
Chris@41 5813 esac
Chris@41 5814
Chris@41 5815 fi
Chris@41 5816
Chris@41 5817 to_host_file_cmd=$lt_cv_to_host_file_cmd
Chris@41 5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
Chris@41 5819 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
Chris@41 5820
Chris@41 5821
Chris@41 5822
Chris@41 5823
Chris@41 5824
Chris@41 5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
Chris@41 5826 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
Chris@41 5827 if ${lt_cv_to_tool_file_cmd+:} false; then :
Chris@41 5828 $as_echo_n "(cached) " >&6
Chris@41 5829 else
Chris@41 5830 #assume ordinary cross tools, or native build.
Chris@41 5831 lt_cv_to_tool_file_cmd=func_convert_file_noop
Chris@41 5832 case $host in
Chris@41 5833 *-*-mingw* )
Chris@41 5834 case $build in
Chris@41 5835 *-*-mingw* ) # actually msys
Chris@41 5836 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
Chris@41 5837 ;;
Chris@41 5838 esac
Chris@41 5839 ;;
Chris@41 5840 esac
Chris@41 5841
Chris@41 5842 fi
Chris@41 5843
Chris@41 5844 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Chris@41 5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
Chris@41 5846 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
Chris@41 5847
Chris@41 5848
Chris@41 5849
Chris@41 5850
Chris@41 5851
Chris@41 5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
Chris@41 5853 $as_echo_n "checking for $LD option to reload object files... " >&6; }
Chris@41 5854 if ${lt_cv_ld_reload_flag+:} false; then :
Chris@41 5855 $as_echo_n "(cached) " >&6
Chris@41 5856 else
Chris@41 5857 lt_cv_ld_reload_flag='-r'
Chris@41 5858 fi
Chris@41 5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
Chris@41 5860 $as_echo "$lt_cv_ld_reload_flag" >&6; }
Chris@41 5861 reload_flag=$lt_cv_ld_reload_flag
Chris@41 5862 case $reload_flag in
Chris@41 5863 "" | " "*) ;;
Chris@41 5864 *) reload_flag=" $reload_flag" ;;
Chris@41 5865 esac
Chris@41 5866 reload_cmds='$LD$reload_flag -o $output$reload_objs'
Chris@41 5867 case $host_os in
Chris@41 5868 cygwin* | mingw* | pw32* | cegcc*)
Chris@41 5869 if test yes != "$GCC"; then
Chris@41 5870 reload_cmds=false
Chris@41 5871 fi
Chris@41 5872 ;;
Chris@41 5873 darwin*)
Chris@41 5874 if test yes = "$GCC"; then
Chris@41 5875 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
Chris@41 5876 else
Chris@41 5877 reload_cmds='$LD$reload_flag -o $output$reload_objs'
Chris@41 5878 fi
Chris@41 5879 ;;
Chris@41 5880 esac
Chris@41 5881
Chris@41 5882
Chris@41 5883
Chris@41 5884
Chris@41 5885
Chris@41 5886
Chris@41 5887
Chris@41 5888
Chris@41 5889
Chris@41 5890 if test -n "$ac_tool_prefix"; then
Chris@41 5891 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
Chris@41 5892 set dummy ${ac_tool_prefix}objdump; ac_word=$2
Chris@41 5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 5894 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 5895 if ${ac_cv_prog_OBJDUMP+:} false; then :
Chris@41 5896 $as_echo_n "(cached) " >&6
Chris@41 5897 else
Chris@41 5898 if test -n "$OBJDUMP"; then
Chris@41 5899 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
Chris@41 5900 else
Chris@41 5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 5902 for as_dir in $PATH
Chris@41 5903 do
Chris@41 5904 IFS=$as_save_IFS
Chris@41 5905 test -z "$as_dir" && as_dir=.
Chris@41 5906 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 5907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 5908 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Chris@41 5909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 5910 break 2
Chris@41 5911 fi
Chris@41 5912 done
Chris@41 5913 done
Chris@41 5914 IFS=$as_save_IFS
Chris@41 5915
Chris@41 5916 fi
Chris@41 5917 fi
Chris@41 5918 OBJDUMP=$ac_cv_prog_OBJDUMP
Chris@41 5919 if test -n "$OBJDUMP"; then
Chris@41 5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
Chris@41 5921 $as_echo "$OBJDUMP" >&6; }
Chris@41 5922 else
Chris@41 5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 5924 $as_echo "no" >&6; }
Chris@41 5925 fi
Chris@41 5926
Chris@41 5927
Chris@41 5928 fi
Chris@41 5929 if test -z "$ac_cv_prog_OBJDUMP"; then
Chris@41 5930 ac_ct_OBJDUMP=$OBJDUMP
Chris@41 5931 # Extract the first word of "objdump", so it can be a program name with args.
Chris@41 5932 set dummy objdump; ac_word=$2
Chris@41 5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 5934 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 5935 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Chris@41 5936 $as_echo_n "(cached) " >&6
Chris@41 5937 else
Chris@41 5938 if test -n "$ac_ct_OBJDUMP"; then
Chris@41 5939 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
Chris@41 5940 else
Chris@41 5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 5942 for as_dir in $PATH
Chris@41 5943 do
Chris@41 5944 IFS=$as_save_IFS
Chris@41 5945 test -z "$as_dir" && as_dir=.
Chris@41 5946 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 5947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 5948 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Chris@41 5949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 5950 break 2
Chris@41 5951 fi
Chris@41 5952 done
Chris@41 5953 done
Chris@41 5954 IFS=$as_save_IFS
Chris@41 5955
Chris@41 5956 fi
Chris@41 5957 fi
Chris@41 5958 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
Chris@41 5959 if test -n "$ac_ct_OBJDUMP"; then
Chris@41 5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
Chris@41 5961 $as_echo "$ac_ct_OBJDUMP" >&6; }
Chris@41 5962 else
Chris@41 5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 5964 $as_echo "no" >&6; }
Chris@41 5965 fi
Chris@41 5966
Chris@41 5967 if test "x$ac_ct_OBJDUMP" = x; then
Chris@41 5968 OBJDUMP="false"
Chris@41 5969 else
Chris@41 5970 case $cross_compiling:$ac_tool_warned in
Chris@41 5971 yes:)
Chris@41 5972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@41 5973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@41 5974 ac_tool_warned=yes ;;
Chris@41 5975 esac
Chris@41 5976 OBJDUMP=$ac_ct_OBJDUMP
Chris@41 5977 fi
Chris@41 5978 else
Chris@41 5979 OBJDUMP="$ac_cv_prog_OBJDUMP"
Chris@41 5980 fi
Chris@41 5981
Chris@41 5982 test -z "$OBJDUMP" && OBJDUMP=objdump
Chris@41 5983
Chris@41 5984
Chris@41 5985
Chris@41 5986
Chris@41 5987
Chris@41 5988
Chris@41 5989
Chris@41 5990
Chris@41 5991
Chris@41 5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
Chris@41 5993 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
Chris@41 5994 if ${lt_cv_deplibs_check_method+:} false; then :
Chris@41 5995 $as_echo_n "(cached) " >&6
Chris@41 5996 else
Chris@41 5997 lt_cv_file_magic_cmd='$MAGIC_CMD'
Chris@41 5998 lt_cv_file_magic_test_file=
Chris@41 5999 lt_cv_deplibs_check_method='unknown'
Chris@41 6000 # Need to set the preceding variable on all platforms that support
Chris@41 6001 # interlibrary dependencies.
Chris@41 6002 # 'none' -- dependencies not supported.
Chris@41 6003 # 'unknown' -- same as none, but documents that we really don't know.
Chris@41 6004 # 'pass_all' -- all dependencies passed with no checks.
Chris@41 6005 # 'test_compile' -- check by making test program.
Chris@41 6006 # 'file_magic [[regex]]' -- check by looking for files in library path
Chris@41 6007 # that responds to the $file_magic_cmd with a given extended regex.
Chris@41 6008 # If you have 'file' or equivalent on your system and you're not sure
Chris@41 6009 # whether 'pass_all' will *always* work, you probably want this one.
Chris@41 6010
Chris@41 6011 case $host_os in
Chris@41 6012 aix[4-9]*)
Chris@41 6013 lt_cv_deplibs_check_method=pass_all
Chris@41 6014 ;;
Chris@41 6015
Chris@41 6016 beos*)
Chris@41 6017 lt_cv_deplibs_check_method=pass_all
Chris@41 6018 ;;
Chris@41 6019
Chris@41 6020 bsdi[45]*)
Chris@41 6021 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
Chris@41 6022 lt_cv_file_magic_cmd='/usr/bin/file -L'
Chris@41 6023 lt_cv_file_magic_test_file=/shlib/libc.so
Chris@41 6024 ;;
Chris@41 6025
Chris@41 6026 cygwin*)
Chris@41 6027 # func_win32_libid is a shell function defined in ltmain.sh
Chris@41 6028 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Chris@41 6029 lt_cv_file_magic_cmd='func_win32_libid'
Chris@41 6030 ;;
Chris@41 6031
Chris@41 6032 mingw* | pw32*)
Chris@41 6033 # Base MSYS/MinGW do not provide the 'file' command needed by
Chris@41 6034 # func_win32_libid shell function, so use a weaker test based on 'objdump',
Chris@41 6035 # unless we find 'file', for example because we are cross-compiling.
Chris@41 6036 if ( file / ) >/dev/null 2>&1; then
Chris@41 6037 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Chris@41 6038 lt_cv_file_magic_cmd='func_win32_libid'
Chris@41 6039 else
Chris@41 6040 # Keep this pattern in sync with the one in func_win32_libid.
Chris@41 6041 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
Chris@41 6042 lt_cv_file_magic_cmd='$OBJDUMP -f'
Chris@41 6043 fi
Chris@41 6044 ;;
Chris@41 6045
Chris@41 6046 cegcc*)
Chris@41 6047 # use the weaker test based on 'objdump'. See mingw*.
Chris@41 6048 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
Chris@41 6049 lt_cv_file_magic_cmd='$OBJDUMP -f'
Chris@41 6050 ;;
Chris@41 6051
Chris@41 6052 darwin* | rhapsody*)
Chris@41 6053 lt_cv_deplibs_check_method=pass_all
Chris@41 6054 ;;
Chris@41 6055
Chris@41 6056 freebsd* | dragonfly*)
Chris@41 6057 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Chris@41 6058 case $host_cpu in
Chris@41 6059 i*86 )
Chris@41 6060 # Not sure whether the presence of OpenBSD here was a mistake.
Chris@41 6061 # Let's accept both of them until this is cleared up.
Chris@41 6062 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
Chris@41 6063 lt_cv_file_magic_cmd=/usr/bin/file
Chris@41 6064 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
Chris@41 6065 ;;
Chris@41 6066 esac
Chris@41 6067 else
Chris@41 6068 lt_cv_deplibs_check_method=pass_all
Chris@41 6069 fi
Chris@41 6070 ;;
Chris@41 6071
Chris@41 6072 haiku*)
Chris@41 6073 lt_cv_deplibs_check_method=pass_all
Chris@41 6074 ;;
Chris@41 6075
Chris@41 6076 hpux10.20* | hpux11*)
Chris@41 6077 lt_cv_file_magic_cmd=/usr/bin/file
Chris@41 6078 case $host_cpu in
Chris@41 6079 ia64*)
Chris@41 6080 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
Chris@41 6081 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
Chris@41 6082 ;;
Chris@41 6083 hppa*64*)
Chris@41 6084 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@41 6085 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
Chris@41 6086 ;;
Chris@41 6087 *)
Chris@41 6088 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
Chris@41 6089 lt_cv_file_magic_test_file=/usr/lib/libc.sl
Chris@41 6090 ;;
Chris@41 6091 esac
Chris@41 6092 ;;
Chris@41 6093
Chris@41 6094 interix[3-9]*)
Chris@41 6095 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
Chris@41 6096 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
Chris@41 6097 ;;
Chris@41 6098
Chris@41 6099 irix5* | irix6* | nonstopux*)
Chris@41 6100 case $LD in
Chris@41 6101 *-32|*"-32 ") libmagic=32-bit;;
Chris@41 6102 *-n32|*"-n32 ") libmagic=N32;;
Chris@41 6103 *-64|*"-64 ") libmagic=64-bit;;
Chris@41 6104 *) libmagic=never-match;;
Chris@41 6105 esac
Chris@41 6106 lt_cv_deplibs_check_method=pass_all
Chris@41 6107 ;;
Chris@41 6108
Chris@41 6109 # This must be glibc/ELF.
Chris@41 6110 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Chris@41 6111 lt_cv_deplibs_check_method=pass_all
Chris@41 6112 ;;
Chris@41 6113
Chris@41 6114 netbsd* | netbsdelf*-gnu)
Chris@41 6115 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Chris@41 6116 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Chris@41 6117 else
Chris@41 6118 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
Chris@41 6119 fi
Chris@41 6120 ;;
Chris@41 6121
Chris@41 6122 newos6*)
Chris@41 6123 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
Chris@41 6124 lt_cv_file_magic_cmd=/usr/bin/file
Chris@41 6125 lt_cv_file_magic_test_file=/usr/lib/libnls.so
Chris@41 6126 ;;
Chris@41 6127
Chris@41 6128 *nto* | *qnx*)
Chris@41 6129 lt_cv_deplibs_check_method=pass_all
Chris@41 6130 ;;
Chris@41 6131
Chris@41 6132 openbsd* | bitrig*)
Chris@41 6133 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Chris@41 6134 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
Chris@41 6135 else
Chris@41 6136 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Chris@41 6137 fi
Chris@41 6138 ;;
Chris@41 6139
Chris@41 6140 osf3* | osf4* | osf5*)
Chris@41 6141 lt_cv_deplibs_check_method=pass_all
Chris@41 6142 ;;
Chris@41 6143
Chris@41 6144 rdos*)
Chris@41 6145 lt_cv_deplibs_check_method=pass_all
Chris@41 6146 ;;
Chris@41 6147
Chris@41 6148 solaris*)
Chris@41 6149 lt_cv_deplibs_check_method=pass_all
Chris@41 6150 ;;
Chris@41 6151
Chris@41 6152 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Chris@41 6153 lt_cv_deplibs_check_method=pass_all
Chris@41 6154 ;;
Chris@41 6155
Chris@41 6156 sysv4 | sysv4.3*)
Chris@41 6157 case $host_vendor in
Chris@41 6158 motorola)
Chris@41 6159 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@41 6160 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
Chris@41 6161 ;;
Chris@41 6162 ncr)
Chris@41 6163 lt_cv_deplibs_check_method=pass_all
Chris@41 6164 ;;
Chris@41 6165 sequent)
Chris@41 6166 lt_cv_file_magic_cmd='/bin/file'
Chris@41 6167 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
Chris@41 6168 ;;
Chris@41 6169 sni)
Chris@41 6170 lt_cv_file_magic_cmd='/bin/file'
Chris@41 6171 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
Chris@41 6172 lt_cv_file_magic_test_file=/lib/libc.so
Chris@41 6173 ;;
Chris@41 6174 siemens)
Chris@41 6175 lt_cv_deplibs_check_method=pass_all
Chris@41 6176 ;;
Chris@41 6177 pc)
Chris@41 6178 lt_cv_deplibs_check_method=pass_all
Chris@41 6179 ;;
Chris@41 6180 esac
Chris@41 6181 ;;
Chris@41 6182
Chris@41 6183 tpf*)
Chris@41 6184 lt_cv_deplibs_check_method=pass_all
Chris@41 6185 ;;
Chris@41 6186 os2*)
Chris@41 6187 lt_cv_deplibs_check_method=pass_all
Chris@41 6188 ;;
Chris@41 6189 esac
Chris@41 6190
Chris@41 6191 fi
Chris@41 6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
Chris@41 6193 $as_echo "$lt_cv_deplibs_check_method" >&6; }
Chris@41 6194
Chris@41 6195 file_magic_glob=
Chris@41 6196 want_nocaseglob=no
Chris@41 6197 if test "$build" = "$host"; then
Chris@41 6198 case $host_os in
Chris@41 6199 mingw* | pw32*)
Chris@41 6200 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
Chris@41 6201 want_nocaseglob=yes
Chris@41 6202 else
Chris@41 6203 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
Chris@41 6204 fi
Chris@41 6205 ;;
Chris@41 6206 esac
Chris@41 6207 fi
Chris@41 6208
Chris@41 6209 file_magic_cmd=$lt_cv_file_magic_cmd
Chris@41 6210 deplibs_check_method=$lt_cv_deplibs_check_method
Chris@41 6211 test -z "$deplibs_check_method" && deplibs_check_method=unknown
Chris@41 6212
Chris@41 6213
Chris@41 6214
Chris@41 6215
Chris@41 6216
Chris@41 6217
Chris@41 6218
Chris@41 6219
Chris@41 6220
Chris@41 6221
Chris@41 6222
Chris@41 6223
Chris@41 6224
Chris@41 6225
Chris@41 6226
Chris@41 6227
Chris@41 6228
Chris@41 6229
Chris@41 6230
Chris@41 6231
Chris@41 6232
Chris@41 6233
Chris@41 6234 if test -n "$ac_tool_prefix"; then
Chris@41 6235 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
Chris@41 6236 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Chris@41 6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 6238 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 6239 if ${ac_cv_prog_DLLTOOL+:} false; then :
Chris@41 6240 $as_echo_n "(cached) " >&6
Chris@41 6241 else
Chris@41 6242 if test -n "$DLLTOOL"; then
Chris@41 6243 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
Chris@41 6244 else
Chris@41 6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 6246 for as_dir in $PATH
Chris@41 6247 do
Chris@41 6248 IFS=$as_save_IFS
Chris@41 6249 test -z "$as_dir" && as_dir=.
Chris@41 6250 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 6251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 6252 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
Chris@41 6253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 6254 break 2
Chris@41 6255 fi
Chris@41 6256 done
Chris@41 6257 done
Chris@41 6258 IFS=$as_save_IFS
Chris@41 6259
Chris@41 6260 fi
Chris@41 6261 fi
Chris@41 6262 DLLTOOL=$ac_cv_prog_DLLTOOL
Chris@41 6263 if test -n "$DLLTOOL"; then
Chris@41 6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
Chris@41 6265 $as_echo "$DLLTOOL" >&6; }
Chris@41 6266 else
Chris@41 6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 6268 $as_echo "no" >&6; }
Chris@41 6269 fi
Chris@41 6270
Chris@41 6271
Chris@41 6272 fi
Chris@41 6273 if test -z "$ac_cv_prog_DLLTOOL"; then
Chris@41 6274 ac_ct_DLLTOOL=$DLLTOOL
Chris@41 6275 # Extract the first word of "dlltool", so it can be a program name with args.
Chris@41 6276 set dummy dlltool; ac_word=$2
Chris@41 6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 6278 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 6279 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
Chris@41 6280 $as_echo_n "(cached) " >&6
Chris@41 6281 else
Chris@41 6282 if test -n "$ac_ct_DLLTOOL"; then
Chris@41 6283 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
Chris@41 6284 else
Chris@41 6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 6286 for as_dir in $PATH
Chris@41 6287 do
Chris@41 6288 IFS=$as_save_IFS
Chris@41 6289 test -z "$as_dir" && as_dir=.
Chris@41 6290 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 6291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 6292 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
Chris@41 6293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 6294 break 2
Chris@41 6295 fi
Chris@41 6296 done
Chris@41 6297 done
Chris@41 6298 IFS=$as_save_IFS
Chris@41 6299
Chris@41 6300 fi
Chris@41 6301 fi
Chris@41 6302 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
Chris@41 6303 if test -n "$ac_ct_DLLTOOL"; then
Chris@41 6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
Chris@41 6305 $as_echo "$ac_ct_DLLTOOL" >&6; }
Chris@41 6306 else
Chris@41 6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 6308 $as_echo "no" >&6; }
Chris@41 6309 fi
Chris@41 6310
Chris@41 6311 if test "x$ac_ct_DLLTOOL" = x; then
Chris@41 6312 DLLTOOL="false"
Chris@41 6313 else
Chris@41 6314 case $cross_compiling:$ac_tool_warned in
Chris@41 6315 yes:)
Chris@41 6316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@41 6317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@41 6318 ac_tool_warned=yes ;;
Chris@41 6319 esac
Chris@41 6320 DLLTOOL=$ac_ct_DLLTOOL
Chris@41 6321 fi
Chris@41 6322 else
Chris@41 6323 DLLTOOL="$ac_cv_prog_DLLTOOL"
Chris@41 6324 fi
Chris@41 6325
Chris@41 6326 test -z "$DLLTOOL" && DLLTOOL=dlltool
Chris@41 6327
Chris@41 6328
Chris@41 6329
Chris@41 6330
Chris@41 6331
Chris@41 6332
Chris@41 6333
Chris@41 6334
Chris@41 6335
Chris@41 6336
Chris@41 6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
Chris@41 6338 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
Chris@41 6339 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
Chris@41 6340 $as_echo_n "(cached) " >&6
Chris@41 6341 else
Chris@41 6342 lt_cv_sharedlib_from_linklib_cmd='unknown'
Chris@41 6343
Chris@41 6344 case $host_os in
Chris@41 6345 cygwin* | mingw* | pw32* | cegcc*)
Chris@41 6346 # two different shell functions defined in ltmain.sh;
Chris@41 6347 # decide which one to use based on capabilities of $DLLTOOL
Chris@41 6348 case `$DLLTOOL --help 2>&1` in
Chris@41 6349 *--identify-strict*)
Chris@41 6350 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
Chris@41 6351 ;;
Chris@41 6352 *)
Chris@41 6353 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
Chris@41 6354 ;;
Chris@41 6355 esac
Chris@41 6356 ;;
Chris@41 6357 *)
Chris@41 6358 # fallback: assume linklib IS sharedlib
Chris@41 6359 lt_cv_sharedlib_from_linklib_cmd=$ECHO
Chris@41 6360 ;;
Chris@41 6361 esac
Chris@41 6362
Chris@41 6363 fi
Chris@41 6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
Chris@41 6365 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
Chris@41 6366 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
Chris@41 6367 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
Chris@41 6368
Chris@41 6369
Chris@41 6370
Chris@41 6371
Chris@41 6372
Chris@41 6373
Chris@41 6374
Chris@41 6375
Chris@41 6376 if test -n "$ac_tool_prefix"; then
Chris@41 6377 for ac_prog in ar
Chris@41 6378 do
Chris@41 6379 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@41 6380 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@41 6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 6382 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 6383 if ${ac_cv_prog_AR+:} false; then :
Chris@41 6384 $as_echo_n "(cached) " >&6
Chris@41 6385 else
Chris@41 6386 if test -n "$AR"; then
Chris@41 6387 ac_cv_prog_AR="$AR" # Let the user override the test.
Chris@41 6388 else
Chris@41 6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 6390 for as_dir in $PATH
Chris@41 6391 do
Chris@41 6392 IFS=$as_save_IFS
Chris@41 6393 test -z "$as_dir" && as_dir=.
Chris@41 6394 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 6395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 6396 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Chris@41 6397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 6398 break 2
Chris@41 6399 fi
Chris@41 6400 done
Chris@41 6401 done
Chris@41 6402 IFS=$as_save_IFS
Chris@41 6403
Chris@41 6404 fi
Chris@41 6405 fi
Chris@41 6406 AR=$ac_cv_prog_AR
Chris@41 6407 if test -n "$AR"; then
Chris@41 6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Chris@41 6409 $as_echo "$AR" >&6; }
Chris@41 6410 else
Chris@41 6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 6412 $as_echo "no" >&6; }
Chris@41 6413 fi
Chris@41 6414
Chris@41 6415
Chris@41 6416 test -n "$AR" && break
Chris@41 6417 done
Chris@41 6418 fi
Chris@41 6419 if test -z "$AR"; then
Chris@41 6420 ac_ct_AR=$AR
Chris@41 6421 for ac_prog in ar
Chris@41 6422 do
Chris@41 6423 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@41 6424 set dummy $ac_prog; ac_word=$2
Chris@41 6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 6426 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 6427 if ${ac_cv_prog_ac_ct_AR+:} false; then :
Chris@41 6428 $as_echo_n "(cached) " >&6
Chris@41 6429 else
Chris@41 6430 if test -n "$ac_ct_AR"; then
Chris@41 6431 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Chris@41 6432 else
Chris@41 6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 6434 for as_dir in $PATH
Chris@41 6435 do
Chris@41 6436 IFS=$as_save_IFS
Chris@41 6437 test -z "$as_dir" && as_dir=.
Chris@41 6438 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 6439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 6440 ac_cv_prog_ac_ct_AR="$ac_prog"
Chris@41 6441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 6442 break 2
Chris@41 6443 fi
Chris@41 6444 done
Chris@41 6445 done
Chris@41 6446 IFS=$as_save_IFS
Chris@41 6447
Chris@41 6448 fi
Chris@41 6449 fi
Chris@41 6450 ac_ct_AR=$ac_cv_prog_ac_ct_AR
Chris@41 6451 if test -n "$ac_ct_AR"; then
Chris@41 6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Chris@41 6453 $as_echo "$ac_ct_AR" >&6; }
Chris@41 6454 else
Chris@41 6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 6456 $as_echo "no" >&6; }
Chris@41 6457 fi
Chris@41 6458
Chris@41 6459
Chris@41 6460 test -n "$ac_ct_AR" && break
Chris@41 6461 done
Chris@41 6462
Chris@41 6463 if test "x$ac_ct_AR" = x; then
Chris@41 6464 AR="false"
Chris@41 6465 else
Chris@41 6466 case $cross_compiling:$ac_tool_warned in
Chris@41 6467 yes:)
Chris@41 6468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@41 6469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@41 6470 ac_tool_warned=yes ;;
Chris@41 6471 esac
Chris@41 6472 AR=$ac_ct_AR
Chris@41 6473 fi
Chris@41 6474 fi
Chris@41 6475
Chris@41 6476 : ${AR=ar}
Chris@41 6477 : ${AR_FLAGS=cru}
Chris@41 6478
Chris@41 6479
Chris@41 6480
Chris@41 6481
Chris@41 6482
Chris@41 6483
Chris@41 6484
Chris@41 6485
Chris@41 6486
Chris@41 6487
Chris@41 6488
Chris@41 6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
Chris@41 6490 $as_echo_n "checking for archiver @FILE support... " >&6; }
Chris@41 6491 if ${lt_cv_ar_at_file+:} false; then :
Chris@41 6492 $as_echo_n "(cached) " >&6
Chris@41 6493 else
Chris@41 6494 lt_cv_ar_at_file=no
Chris@41 6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 6496 /* end confdefs.h. */
Chris@41 6497
Chris@41 6498 int
Chris@41 6499 main ()
Chris@41 6500 {
Chris@41 6501
Chris@41 6502 ;
Chris@41 6503 return 0;
Chris@41 6504 }
Chris@41 6505 _ACEOF
Chris@41 6506 if ac_fn_c_try_compile "$LINENO"; then :
Chris@41 6507 echo conftest.$ac_objext > conftest.lst
Chris@41 6508 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
Chris@41 6509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
Chris@41 6510 (eval $lt_ar_try) 2>&5
Chris@41 6511 ac_status=$?
Chris@41 6512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 6513 test $ac_status = 0; }
Chris@41 6514 if test 0 -eq "$ac_status"; then
Chris@41 6515 # Ensure the archiver fails upon bogus file names.
Chris@41 6516 rm -f conftest.$ac_objext libconftest.a
Chris@41 6517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
Chris@41 6518 (eval $lt_ar_try) 2>&5
Chris@41 6519 ac_status=$?
Chris@41 6520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 6521 test $ac_status = 0; }
Chris@41 6522 if test 0 -ne "$ac_status"; then
Chris@41 6523 lt_cv_ar_at_file=@
Chris@41 6524 fi
Chris@41 6525 fi
Chris@41 6526 rm -f conftest.* libconftest.a
Chris@41 6527
Chris@41 6528 fi
Chris@41 6529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@41 6530
Chris@41 6531 fi
Chris@41 6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
Chris@41 6533 $as_echo "$lt_cv_ar_at_file" >&6; }
Chris@41 6534
Chris@41 6535 if test no = "$lt_cv_ar_at_file"; then
Chris@41 6536 archiver_list_spec=
Chris@41 6537 else
Chris@41 6538 archiver_list_spec=$lt_cv_ar_at_file
Chris@41 6539 fi
Chris@41 6540
Chris@41 6541
Chris@41 6542
Chris@41 6543
Chris@41 6544
Chris@41 6545
Chris@41 6546
Chris@41 6547 if test -n "$ac_tool_prefix"; then
Chris@41 6548 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
Chris@41 6549 set dummy ${ac_tool_prefix}strip; ac_word=$2
Chris@41 6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 6551 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 6552 if ${ac_cv_prog_STRIP+:} false; then :
Chris@41 6553 $as_echo_n "(cached) " >&6
Chris@41 6554 else
Chris@41 6555 if test -n "$STRIP"; then
Chris@41 6556 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
Chris@41 6557 else
Chris@41 6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 6559 for as_dir in $PATH
Chris@41 6560 do
Chris@41 6561 IFS=$as_save_IFS
Chris@41 6562 test -z "$as_dir" && as_dir=.
Chris@41 6563 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 6564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 6565 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Chris@41 6566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 6567 break 2
Chris@41 6568 fi
Chris@41 6569 done
Chris@41 6570 done
Chris@41 6571 IFS=$as_save_IFS
Chris@41 6572
Chris@41 6573 fi
Chris@41 6574 fi
Chris@41 6575 STRIP=$ac_cv_prog_STRIP
Chris@41 6576 if test -n "$STRIP"; then
Chris@41 6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Chris@41 6578 $as_echo "$STRIP" >&6; }
Chris@41 6579 else
Chris@41 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 6581 $as_echo "no" >&6; }
Chris@41 6582 fi
Chris@41 6583
Chris@41 6584
Chris@41 6585 fi
Chris@41 6586 if test -z "$ac_cv_prog_STRIP"; then
Chris@41 6587 ac_ct_STRIP=$STRIP
Chris@41 6588 # Extract the first word of "strip", so it can be a program name with args.
Chris@41 6589 set dummy strip; ac_word=$2
Chris@41 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 6591 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 6592 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Chris@41 6593 $as_echo_n "(cached) " >&6
Chris@41 6594 else
Chris@41 6595 if test -n "$ac_ct_STRIP"; then
Chris@41 6596 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Chris@41 6597 else
Chris@41 6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 6599 for as_dir in $PATH
Chris@41 6600 do
Chris@41 6601 IFS=$as_save_IFS
Chris@41 6602 test -z "$as_dir" && as_dir=.
Chris@41 6603 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 6604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 6605 ac_cv_prog_ac_ct_STRIP="strip"
Chris@41 6606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 6607 break 2
Chris@41 6608 fi
Chris@41 6609 done
Chris@41 6610 done
Chris@41 6611 IFS=$as_save_IFS
Chris@41 6612
Chris@41 6613 fi
Chris@41 6614 fi
Chris@41 6615 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
Chris@41 6616 if test -n "$ac_ct_STRIP"; then
Chris@41 6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Chris@41 6618 $as_echo "$ac_ct_STRIP" >&6; }
Chris@41 6619 else
Chris@41 6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 6621 $as_echo "no" >&6; }
Chris@41 6622 fi
Chris@41 6623
Chris@41 6624 if test "x$ac_ct_STRIP" = x; then
Chris@41 6625 STRIP=":"
Chris@41 6626 else
Chris@41 6627 case $cross_compiling:$ac_tool_warned in
Chris@41 6628 yes:)
Chris@41 6629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@41 6630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@41 6631 ac_tool_warned=yes ;;
Chris@41 6632 esac
Chris@41 6633 STRIP=$ac_ct_STRIP
Chris@41 6634 fi
Chris@41 6635 else
Chris@41 6636 STRIP="$ac_cv_prog_STRIP"
Chris@41 6637 fi
Chris@41 6638
Chris@41 6639 test -z "$STRIP" && STRIP=:
Chris@41 6640
Chris@41 6641
Chris@41 6642
Chris@41 6643
Chris@41 6644
Chris@41 6645
Chris@41 6646 if test -n "$ac_tool_prefix"; then
Chris@41 6647 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
Chris@41 6648 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Chris@41 6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 6650 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 6651 if ${ac_cv_prog_RANLIB+:} false; then :
Chris@41 6652 $as_echo_n "(cached) " >&6
Chris@41 6653 else
Chris@41 6654 if test -n "$RANLIB"; then
Chris@41 6655 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
Chris@41 6656 else
Chris@41 6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 6658 for as_dir in $PATH
Chris@41 6659 do
Chris@41 6660 IFS=$as_save_IFS
Chris@41 6661 test -z "$as_dir" && as_dir=.
Chris@41 6662 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 6663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 6664 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Chris@41 6665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 6666 break 2
Chris@41 6667 fi
Chris@41 6668 done
Chris@41 6669 done
Chris@41 6670 IFS=$as_save_IFS
Chris@41 6671
Chris@41 6672 fi
Chris@41 6673 fi
Chris@41 6674 RANLIB=$ac_cv_prog_RANLIB
Chris@41 6675 if test -n "$RANLIB"; then
Chris@41 6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Chris@41 6677 $as_echo "$RANLIB" >&6; }
Chris@41 6678 else
Chris@41 6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 6680 $as_echo "no" >&6; }
Chris@41 6681 fi
Chris@41 6682
Chris@41 6683
Chris@41 6684 fi
Chris@41 6685 if test -z "$ac_cv_prog_RANLIB"; then
Chris@41 6686 ac_ct_RANLIB=$RANLIB
Chris@41 6687 # Extract the first word of "ranlib", so it can be a program name with args.
Chris@41 6688 set dummy ranlib; ac_word=$2
Chris@41 6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 6690 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 6691 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Chris@41 6692 $as_echo_n "(cached) " >&6
Chris@41 6693 else
Chris@41 6694 if test -n "$ac_ct_RANLIB"; then
Chris@41 6695 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Chris@41 6696 else
Chris@41 6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 6698 for as_dir in $PATH
Chris@41 6699 do
Chris@41 6700 IFS=$as_save_IFS
Chris@41 6701 test -z "$as_dir" && as_dir=.
Chris@41 6702 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 6703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 6704 ac_cv_prog_ac_ct_RANLIB="ranlib"
Chris@41 6705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 6706 break 2
Chris@41 6707 fi
Chris@41 6708 done
Chris@41 6709 done
Chris@41 6710 IFS=$as_save_IFS
Chris@41 6711
Chris@41 6712 fi
Chris@41 6713 fi
Chris@41 6714 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
Chris@41 6715 if test -n "$ac_ct_RANLIB"; then
Chris@41 6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Chris@41 6717 $as_echo "$ac_ct_RANLIB" >&6; }
Chris@41 6718 else
Chris@41 6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 6720 $as_echo "no" >&6; }
Chris@41 6721 fi
Chris@41 6722
Chris@41 6723 if test "x$ac_ct_RANLIB" = x; then
Chris@41 6724 RANLIB=":"
Chris@41 6725 else
Chris@41 6726 case $cross_compiling:$ac_tool_warned in
Chris@41 6727 yes:)
Chris@41 6728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@41 6729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@41 6730 ac_tool_warned=yes ;;
Chris@41 6731 esac
Chris@41 6732 RANLIB=$ac_ct_RANLIB
Chris@41 6733 fi
Chris@41 6734 else
Chris@41 6735 RANLIB="$ac_cv_prog_RANLIB"
Chris@41 6736 fi
Chris@41 6737
Chris@41 6738 test -z "$RANLIB" && RANLIB=:
Chris@41 6739
Chris@41 6740
Chris@41 6741
Chris@41 6742
Chris@41 6743
Chris@41 6744
Chris@41 6745 # Determine commands to create old-style static archives.
Chris@41 6746 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
Chris@41 6747 old_postinstall_cmds='chmod 644 $oldlib'
Chris@41 6748 old_postuninstall_cmds=
Chris@41 6749
Chris@41 6750 if test -n "$RANLIB"; then
Chris@41 6751 case $host_os in
Chris@41 6752 bitrig* | openbsd*)
Chris@41 6753 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
Chris@41 6754 ;;
Chris@41 6755 *)
Chris@41 6756 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
Chris@41 6757 ;;
Chris@41 6758 esac
Chris@41 6759 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
Chris@41 6760 fi
Chris@41 6761
Chris@41 6762 case $host_os in
Chris@41 6763 darwin*)
Chris@41 6764 lock_old_archive_extraction=yes ;;
Chris@41 6765 *)
Chris@41 6766 lock_old_archive_extraction=no ;;
Chris@41 6767 esac
Chris@41 6768
Chris@41 6769
Chris@41 6770
Chris@41 6771
Chris@41 6772
Chris@41 6773
Chris@41 6774
Chris@41 6775
Chris@41 6776
Chris@41 6777
Chris@41 6778
Chris@41 6779
Chris@41 6780
Chris@41 6781
Chris@41 6782
Chris@41 6783
Chris@41 6784
Chris@41 6785
Chris@41 6786
Chris@41 6787
Chris@41 6788
Chris@41 6789
Chris@41 6790
Chris@41 6791
Chris@41 6792
Chris@41 6793
Chris@41 6794
Chris@41 6795
Chris@41 6796
Chris@41 6797
Chris@41 6798
Chris@41 6799
Chris@41 6800
Chris@41 6801
Chris@41 6802
Chris@41 6803
Chris@41 6804
Chris@41 6805
Chris@41 6806
Chris@41 6807 # If no C compiler was specified, use CC.
Chris@41 6808 LTCC=${LTCC-"$CC"}
Chris@41 6809
Chris@41 6810 # If no C compiler flags were specified, use CFLAGS.
Chris@41 6811 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Chris@41 6812
Chris@41 6813 # Allow CC to be a program name with arguments.
Chris@41 6814 compiler=$CC
Chris@41 6815
Chris@41 6816
Chris@41 6817 # Check for command to grab the raw symbol name followed by C symbol from nm.
Chris@41 6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
Chris@41 6819 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Chris@41 6820 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Chris@41 6821 $as_echo_n "(cached) " >&6
Chris@41 6822 else
Chris@41 6823
Chris@41 6824 # These are sane defaults that work on at least a few old systems.
Chris@41 6825 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
Chris@41 6826
Chris@41 6827 # Character class describing NM global symbol codes.
Chris@41 6828 symcode='[BCDEGRST]'
Chris@41 6829
Chris@41 6830 # Regexp to match symbols that can be accessed directly from C.
Chris@41 6831 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
Chris@41 6832
Chris@41 6833 # Define system-specific variables.
Chris@41 6834 case $host_os in
Chris@41 6835 aix*)
Chris@41 6836 symcode='[BCDT]'
Chris@41 6837 ;;
Chris@41 6838 cygwin* | mingw* | pw32* | cegcc*)
Chris@41 6839 symcode='[ABCDGISTW]'
Chris@41 6840 ;;
Chris@41 6841 hpux*)
Chris@41 6842 if test ia64 = "$host_cpu"; then
Chris@41 6843 symcode='[ABCDEGRST]'
Chris@41 6844 fi
Chris@41 6845 ;;
Chris@41 6846 irix* | nonstopux*)
Chris@41 6847 symcode='[BCDEGRST]'
Chris@41 6848 ;;
Chris@41 6849 osf*)
Chris@41 6850 symcode='[BCDEGQRST]'
Chris@41 6851 ;;
Chris@41 6852 solaris*)
Chris@41 6853 symcode='[BDRT]'
Chris@41 6854 ;;
Chris@41 6855 sco3.2v5*)
Chris@41 6856 symcode='[DT]'
Chris@41 6857 ;;
Chris@41 6858 sysv4.2uw2*)
Chris@41 6859 symcode='[DT]'
Chris@41 6860 ;;
Chris@41 6861 sysv5* | sco5v6* | unixware* | OpenUNIX*)
Chris@41 6862 symcode='[ABDT]'
Chris@41 6863 ;;
Chris@41 6864 sysv4)
Chris@41 6865 symcode='[DFNSTU]'
Chris@41 6866 ;;
Chris@41 6867 esac
Chris@41 6868
Chris@41 6869 # If we're using GNU nm, then use its standard symbol codes.
Chris@41 6870 case `$NM -V 2>&1` in
Chris@41 6871 *GNU* | *'with BFD'*)
Chris@41 6872 symcode='[ABCDGIRSTW]' ;;
Chris@41 6873 esac
Chris@41 6874
Chris@41 6875 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Chris@41 6876 # Gets list of data symbols to import.
Chris@41 6877 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
Chris@41 6878 # Adjust the below global symbol transforms to fixup imported variables.
Chris@41 6879 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
Chris@41 6880 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
Chris@41 6881 lt_c_name_lib_hook="\
Chris@41 6882 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
Chris@41 6883 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
Chris@41 6884 else
Chris@41 6885 # Disable hooks by default.
Chris@41 6886 lt_cv_sys_global_symbol_to_import=
Chris@41 6887 lt_cdecl_hook=
Chris@41 6888 lt_c_name_hook=
Chris@41 6889 lt_c_name_lib_hook=
Chris@41 6890 fi
Chris@41 6891
Chris@41 6892 # Transform an extracted symbol line into a proper C declaration.
Chris@41 6893 # Some systems (esp. on ia64) link data and code symbols differently,
Chris@41 6894 # so use this general approach.
Chris@41 6895 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
Chris@41 6896 $lt_cdecl_hook\
Chris@41 6897 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
Chris@41 6898 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
Chris@41 6899
Chris@41 6900 # Transform an extracted symbol line into symbol name and symbol address
Chris@41 6901 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
Chris@41 6902 $lt_c_name_hook\
Chris@41 6903 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
Chris@41 6904 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
Chris@41 6905
Chris@41 6906 # Transform an extracted symbol line into symbol name with lib prefix and
Chris@41 6907 # symbol address.
Chris@41 6908 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
Chris@41 6909 $lt_c_name_lib_hook\
Chris@41 6910 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
Chris@41 6911 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
Chris@41 6912 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
Chris@41 6913
Chris@41 6914 # Handle CRLF in mingw tool chain
Chris@41 6915 opt_cr=
Chris@41 6916 case $build_os in
Chris@41 6917 mingw*)
Chris@41 6918 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
Chris@41 6919 ;;
Chris@41 6920 esac
Chris@41 6921
Chris@41 6922 # Try without a prefix underscore, then with it.
Chris@41 6923 for ac_symprfx in "" "_"; do
Chris@41 6924
Chris@41 6925 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
Chris@41 6926 symxfrm="\\1 $ac_symprfx\\2 \\2"
Chris@41 6927
Chris@41 6928 # Write the raw and C identifiers.
Chris@41 6929 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Chris@41 6930 # Fake it for dumpbin and say T for any non-static function,
Chris@41 6931 # D for any global variable and I for any imported variable.
Chris@41 6932 # Also find C++ and __fastcall symbols from MSVC++,
Chris@41 6933 # which start with @ or ?.
Chris@41 6934 lt_cv_sys_global_symbol_pipe="$AWK '"\
Chris@41 6935 " {last_section=section; section=\$ 3};"\
Chris@41 6936 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
Chris@41 6937 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
Chris@41 6938 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
Chris@41 6939 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
Chris@41 6940 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
Chris@41 6941 " \$ 0!~/External *\|/{next};"\
Chris@41 6942 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
Chris@41 6943 " {if(hide[section]) next};"\
Chris@41 6944 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
Chris@41 6945 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
Chris@41 6946 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
Chris@41 6947 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
Chris@41 6948 " ' prfx=^$ac_symprfx"
Chris@41 6949 else
Chris@41 6950 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
Chris@41 6951 fi
Chris@41 6952 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
Chris@41 6953
Chris@41 6954 # Check to see that the pipe works correctly.
Chris@41 6955 pipe_works=no
Chris@41 6956
Chris@41 6957 rm -f conftest*
Chris@41 6958 cat > conftest.$ac_ext <<_LT_EOF
Chris@41 6959 #ifdef __cplusplus
Chris@41 6960 extern "C" {
Chris@41 6961 #endif
Chris@41 6962 char nm_test_var;
Chris@41 6963 void nm_test_func(void);
Chris@41 6964 void nm_test_func(void){}
Chris@41 6965 #ifdef __cplusplus
Chris@41 6966 }
Chris@41 6967 #endif
Chris@41 6968 int main(){nm_test_var='a';nm_test_func();return(0);}
Chris@41 6969 _LT_EOF
Chris@41 6970
Chris@41 6971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@41 6972 (eval $ac_compile) 2>&5
Chris@41 6973 ac_status=$?
Chris@41 6974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 6975 test $ac_status = 0; }; then
Chris@41 6976 # Now try to grab the symbols.
Chris@41 6977 nlist=conftest.nm
Chris@41 6978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
Chris@41 6979 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
Chris@41 6980 ac_status=$?
Chris@41 6981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 6982 test $ac_status = 0; } && test -s "$nlist"; then
Chris@41 6983 # Try sorting and uniquifying the output.
Chris@41 6984 if sort "$nlist" | uniq > "$nlist"T; then
Chris@41 6985 mv -f "$nlist"T "$nlist"
Chris@41 6986 else
Chris@41 6987 rm -f "$nlist"T
Chris@41 6988 fi
Chris@41 6989
Chris@41 6990 # Make sure that we snagged all the symbols we need.
Chris@41 6991 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
Chris@41 6992 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
Chris@41 6993 cat <<_LT_EOF > conftest.$ac_ext
Chris@41 6994 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
Chris@41 6995 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
Chris@41 6996 /* DATA imports from DLLs on WIN32 can't be const, because runtime
Chris@41 6997 relocations are performed -- see ld's documentation on pseudo-relocs. */
Chris@41 6998 # define LT_DLSYM_CONST
Chris@41 6999 #elif defined __osf__
Chris@41 7000 /* This system does not cope well with relocations in const data. */
Chris@41 7001 # define LT_DLSYM_CONST
Chris@41 7002 #else
Chris@41 7003 # define LT_DLSYM_CONST const
Chris@41 7004 #endif
Chris@41 7005
Chris@41 7006 #ifdef __cplusplus
Chris@41 7007 extern "C" {
Chris@41 7008 #endif
Chris@41 7009
Chris@41 7010 _LT_EOF
Chris@41 7011 # Now generate the symbol file.
Chris@41 7012 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
Chris@41 7013
Chris@41 7014 cat <<_LT_EOF >> conftest.$ac_ext
Chris@41 7015
Chris@41 7016 /* The mapping between symbol names and symbols. */
Chris@41 7017 LT_DLSYM_CONST struct {
Chris@41 7018 const char *name;
Chris@41 7019 void *address;
Chris@41 7020 }
Chris@41 7021 lt__PROGRAM__LTX_preloaded_symbols[] =
Chris@41 7022 {
Chris@41 7023 { "@PROGRAM@", (void *) 0 },
Chris@41 7024 _LT_EOF
Chris@41 7025 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
Chris@41 7026 cat <<\_LT_EOF >> conftest.$ac_ext
Chris@41 7027 {0, (void *) 0}
Chris@41 7028 };
Chris@41 7029
Chris@41 7030 /* This works around a problem in FreeBSD linker */
Chris@41 7031 #ifdef FREEBSD_WORKAROUND
Chris@41 7032 static const void *lt_preloaded_setup() {
Chris@41 7033 return lt__PROGRAM__LTX_preloaded_symbols;
Chris@41 7034 }
Chris@41 7035 #endif
Chris@41 7036
Chris@41 7037 #ifdef __cplusplus
Chris@41 7038 }
Chris@41 7039 #endif
Chris@41 7040 _LT_EOF
Chris@41 7041 # Now try linking the two files.
Chris@41 7042 mv conftest.$ac_objext conftstm.$ac_objext
Chris@41 7043 lt_globsym_save_LIBS=$LIBS
Chris@41 7044 lt_globsym_save_CFLAGS=$CFLAGS
Chris@41 7045 LIBS=conftstm.$ac_objext
Chris@41 7046 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Chris@41 7047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Chris@41 7048 (eval $ac_link) 2>&5
Chris@41 7049 ac_status=$?
Chris@41 7050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 7051 test $ac_status = 0; } && test -s conftest$ac_exeext; then
Chris@41 7052 pipe_works=yes
Chris@41 7053 fi
Chris@41 7054 LIBS=$lt_globsym_save_LIBS
Chris@41 7055 CFLAGS=$lt_globsym_save_CFLAGS
Chris@41 7056 else
Chris@41 7057 echo "cannot find nm_test_func in $nlist" >&5
Chris@41 7058 fi
Chris@41 7059 else
Chris@41 7060 echo "cannot find nm_test_var in $nlist" >&5
Chris@41 7061 fi
Chris@41 7062 else
Chris@41 7063 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
Chris@41 7064 fi
Chris@41 7065 else
Chris@41 7066 echo "$progname: failed program was:" >&5
Chris@41 7067 cat conftest.$ac_ext >&5
Chris@41 7068 fi
Chris@41 7069 rm -rf conftest* conftst*
Chris@41 7070
Chris@41 7071 # Do not use the global_symbol_pipe unless it works.
Chris@41 7072 if test yes = "$pipe_works"; then
Chris@41 7073 break
Chris@41 7074 else
Chris@41 7075 lt_cv_sys_global_symbol_pipe=
Chris@41 7076 fi
Chris@41 7077 done
Chris@41 7078
Chris@41 7079 fi
Chris@41 7080
Chris@41 7081 if test -z "$lt_cv_sys_global_symbol_pipe"; then
Chris@41 7082 lt_cv_sys_global_symbol_to_cdecl=
Chris@41 7083 fi
Chris@41 7084 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Chris@41 7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
Chris@41 7086 $as_echo "failed" >&6; }
Chris@41 7087 else
Chris@41 7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
Chris@41 7089 $as_echo "ok" >&6; }
Chris@41 7090 fi
Chris@41 7091
Chris@41 7092 # Response file support.
Chris@41 7093 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Chris@41 7094 nm_file_list_spec='@'
Chris@41 7095 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
Chris@41 7096 nm_file_list_spec='@'
Chris@41 7097 fi
Chris@41 7098
Chris@41 7099
Chris@41 7100
Chris@41 7101
Chris@41 7102
Chris@41 7103
Chris@41 7104
Chris@41 7105
Chris@41 7106
Chris@41 7107
Chris@41 7108
Chris@41 7109
Chris@41 7110
Chris@41 7111
Chris@41 7112
Chris@41 7113
Chris@41 7114
Chris@41 7115
Chris@41 7116
Chris@41 7117
Chris@41 7118
Chris@41 7119
Chris@41 7120
Chris@41 7121
Chris@41 7122
Chris@41 7123
Chris@41 7124
Chris@41 7125
Chris@41 7126
Chris@41 7127
Chris@41 7128
Chris@41 7129
Chris@41 7130
Chris@41 7131
Chris@41 7132
Chris@41 7133
Chris@41 7134
Chris@41 7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
Chris@41 7136 $as_echo_n "checking for sysroot... " >&6; }
Chris@41 7137
Chris@41 7138 # Check whether --with-sysroot was given.
Chris@41 7139 if test "${with_sysroot+set}" = set; then :
Chris@41 7140 withval=$with_sysroot;
Chris@41 7141 else
Chris@41 7142 with_sysroot=no
Chris@41 7143 fi
Chris@41 7144
Chris@41 7145
Chris@41 7146 lt_sysroot=
Chris@41 7147 case $with_sysroot in #(
Chris@41 7148 yes)
Chris@41 7149 if test yes = "$GCC"; then
Chris@41 7150 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
Chris@41 7151 fi
Chris@41 7152 ;; #(
Chris@41 7153 /*)
Chris@41 7154 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
Chris@41 7155 ;; #(
Chris@41 7156 no|'')
Chris@41 7157 ;; #(
Chris@41 7158 *)
Chris@41 7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
Chris@41 7160 $as_echo "$with_sysroot" >&6; }
Chris@41 7161 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
Chris@41 7162 ;;
Chris@41 7163 esac
Chris@41 7164
Chris@41 7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
Chris@41 7166 $as_echo "${lt_sysroot:-no}" >&6; }
Chris@41 7167
Chris@41 7168
Chris@41 7169
Chris@41 7170
Chris@41 7171
Chris@41 7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
Chris@41 7173 $as_echo_n "checking for a working dd... " >&6; }
Chris@41 7174 if ${ac_cv_path_lt_DD+:} false; then :
Chris@41 7175 $as_echo_n "(cached) " >&6
Chris@41 7176 else
Chris@41 7177 printf 0123456789abcdef0123456789abcdef >conftest.i
Chris@41 7178 cat conftest.i conftest.i >conftest2.i
Chris@41 7179 : ${lt_DD:=$DD}
Chris@41 7180 if test -z "$lt_DD"; then
Chris@41 7181 ac_path_lt_DD_found=false
Chris@41 7182 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@41 7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 7184 for as_dir in $PATH
Chris@41 7185 do
Chris@41 7186 IFS=$as_save_IFS
Chris@41 7187 test -z "$as_dir" && as_dir=.
Chris@41 7188 for ac_prog in dd; do
Chris@41 7189 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 7190 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
Chris@41 7191 as_fn_executable_p "$ac_path_lt_DD" || continue
Chris@41 7192 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
Chris@41 7193 cmp -s conftest.i conftest.out \
Chris@41 7194 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
Chris@41 7195 fi
Chris@41 7196 $ac_path_lt_DD_found && break 3
Chris@41 7197 done
Chris@41 7198 done
Chris@41 7199 done
Chris@41 7200 IFS=$as_save_IFS
Chris@41 7201 if test -z "$ac_cv_path_lt_DD"; then
Chris@41 7202 :
Chris@41 7203 fi
Chris@41 7204 else
Chris@41 7205 ac_cv_path_lt_DD=$lt_DD
Chris@41 7206 fi
Chris@41 7207
Chris@41 7208 rm -f conftest.i conftest2.i conftest.out
Chris@41 7209 fi
Chris@41 7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
Chris@41 7211 $as_echo "$ac_cv_path_lt_DD" >&6; }
Chris@41 7212
Chris@41 7213
Chris@41 7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
Chris@41 7215 $as_echo_n "checking how to truncate binary pipes... " >&6; }
Chris@41 7216 if ${lt_cv_truncate_bin+:} false; then :
Chris@41 7217 $as_echo_n "(cached) " >&6
Chris@41 7218 else
Chris@41 7219 printf 0123456789abcdef0123456789abcdef >conftest.i
Chris@41 7220 cat conftest.i conftest.i >conftest2.i
Chris@41 7221 lt_cv_truncate_bin=
Chris@41 7222 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
Chris@41 7223 cmp -s conftest.i conftest.out \
Chris@41 7224 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
Chris@41 7225 fi
Chris@41 7226 rm -f conftest.i conftest2.i conftest.out
Chris@41 7227 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
Chris@41 7228 fi
Chris@41 7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
Chris@41 7230 $as_echo "$lt_cv_truncate_bin" >&6; }
Chris@41 7231
Chris@41 7232
Chris@41 7233
Chris@41 7234
Chris@41 7235
Chris@41 7236
Chris@41 7237
Chris@41 7238 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
Chris@41 7239 func_cc_basename ()
Chris@41 7240 {
Chris@41 7241 for cc_temp in $*""; do
Chris@41 7242 case $cc_temp in
Chris@41 7243 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
Chris@41 7244 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
Chris@41 7245 \-*) ;;
Chris@41 7246 *) break;;
Chris@41 7247 esac
Chris@41 7248 done
Chris@41 7249 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Chris@41 7250 }
Chris@41 7251
Chris@41 7252 # Check whether --enable-libtool-lock was given.
Chris@41 7253 if test "${enable_libtool_lock+set}" = set; then :
Chris@41 7254 enableval=$enable_libtool_lock;
Chris@41 7255 fi
Chris@41 7256
Chris@41 7257 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
Chris@41 7258
Chris@41 7259 # Some flags need to be propagated to the compiler or linker for good
Chris@41 7260 # libtool support.
Chris@41 7261 case $host in
Chris@41 7262 ia64-*-hpux*)
Chris@41 7263 # Find out what ABI is being produced by ac_compile, and set mode
Chris@41 7264 # options accordingly.
Chris@41 7265 echo 'int i;' > conftest.$ac_ext
Chris@41 7266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@41 7267 (eval $ac_compile) 2>&5
Chris@41 7268 ac_status=$?
Chris@41 7269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 7270 test $ac_status = 0; }; then
Chris@41 7271 case `/usr/bin/file conftest.$ac_objext` in
Chris@41 7272 *ELF-32*)
Chris@41 7273 HPUX_IA64_MODE=32
Chris@41 7274 ;;
Chris@41 7275 *ELF-64*)
Chris@41 7276 HPUX_IA64_MODE=64
Chris@41 7277 ;;
Chris@41 7278 esac
Chris@41 7279 fi
Chris@41 7280 rm -rf conftest*
Chris@41 7281 ;;
Chris@41 7282 *-*-irix6*)
Chris@41 7283 # Find out what ABI is being produced by ac_compile, and set linker
Chris@41 7284 # options accordingly.
Chris@41 7285 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
Chris@41 7286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@41 7287 (eval $ac_compile) 2>&5
Chris@41 7288 ac_status=$?
Chris@41 7289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 7290 test $ac_status = 0; }; then
Chris@41 7291 if test yes = "$lt_cv_prog_gnu_ld"; then
Chris@41 7292 case `/usr/bin/file conftest.$ac_objext` in
Chris@41 7293 *32-bit*)
Chris@41 7294 LD="${LD-ld} -melf32bsmip"
Chris@41 7295 ;;
Chris@41 7296 *N32*)
Chris@41 7297 LD="${LD-ld} -melf32bmipn32"
Chris@41 7298 ;;
Chris@41 7299 *64-bit*)
Chris@41 7300 LD="${LD-ld} -melf64bmip"
Chris@41 7301 ;;
Chris@41 7302 esac
Chris@41 7303 else
Chris@41 7304 case `/usr/bin/file conftest.$ac_objext` in
Chris@41 7305 *32-bit*)
Chris@41 7306 LD="${LD-ld} -32"
Chris@41 7307 ;;
Chris@41 7308 *N32*)
Chris@41 7309 LD="${LD-ld} -n32"
Chris@41 7310 ;;
Chris@41 7311 *64-bit*)
Chris@41 7312 LD="${LD-ld} -64"
Chris@41 7313 ;;
Chris@41 7314 esac
Chris@41 7315 fi
Chris@41 7316 fi
Chris@41 7317 rm -rf conftest*
Chris@41 7318 ;;
Chris@41 7319
Chris@41 7320 mips64*-*linux*)
Chris@41 7321 # Find out what ABI is being produced by ac_compile, and set linker
Chris@41 7322 # options accordingly.
Chris@41 7323 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
Chris@41 7324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@41 7325 (eval $ac_compile) 2>&5
Chris@41 7326 ac_status=$?
Chris@41 7327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 7328 test $ac_status = 0; }; then
Chris@41 7329 emul=elf
Chris@41 7330 case `/usr/bin/file conftest.$ac_objext` in
Chris@41 7331 *32-bit*)
Chris@41 7332 emul="${emul}32"
Chris@41 7333 ;;
Chris@41 7334 *64-bit*)
Chris@41 7335 emul="${emul}64"
Chris@41 7336 ;;
Chris@41 7337 esac
Chris@41 7338 case `/usr/bin/file conftest.$ac_objext` in
Chris@41 7339 *MSB*)
Chris@41 7340 emul="${emul}btsmip"
Chris@41 7341 ;;
Chris@41 7342 *LSB*)
Chris@41 7343 emul="${emul}ltsmip"
Chris@41 7344 ;;
Chris@41 7345 esac
Chris@41 7346 case `/usr/bin/file conftest.$ac_objext` in
Chris@41 7347 *N32*)
Chris@41 7348 emul="${emul}n32"
Chris@41 7349 ;;
Chris@41 7350 esac
Chris@41 7351 LD="${LD-ld} -m $emul"
Chris@41 7352 fi
Chris@41 7353 rm -rf conftest*
Chris@41 7354 ;;
Chris@41 7355
Chris@41 7356 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
Chris@41 7357 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Chris@41 7358 # Find out what ABI is being produced by ac_compile, and set linker
Chris@41 7359 # options accordingly. Note that the listed cases only cover the
Chris@41 7360 # situations where additional linker options are needed (such as when
Chris@41 7361 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
Chris@41 7362 # vice versa); the common cases where no linker options are needed do
Chris@41 7363 # not appear in the list.
Chris@41 7364 echo 'int i;' > conftest.$ac_ext
Chris@41 7365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@41 7366 (eval $ac_compile) 2>&5
Chris@41 7367 ac_status=$?
Chris@41 7368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 7369 test $ac_status = 0; }; then
Chris@41 7370 case `/usr/bin/file conftest.o` in
Chris@41 7371 *32-bit*)
Chris@41 7372 case $host in
Chris@41 7373 x86_64-*kfreebsd*-gnu)
Chris@41 7374 LD="${LD-ld} -m elf_i386_fbsd"
Chris@41 7375 ;;
Chris@41 7376 x86_64-*linux*)
Chris@41 7377 case `/usr/bin/file conftest.o` in
Chris@41 7378 *x86-64*)
Chris@41 7379 LD="${LD-ld} -m elf32_x86_64"
Chris@41 7380 ;;
Chris@41 7381 *)
Chris@41 7382 LD="${LD-ld} -m elf_i386"
Chris@41 7383 ;;
Chris@41 7384 esac
Chris@41 7385 ;;
Chris@41 7386 powerpc64le-*linux*)
Chris@41 7387 LD="${LD-ld} -m elf32lppclinux"
Chris@41 7388 ;;
Chris@41 7389 powerpc64-*linux*)
Chris@41 7390 LD="${LD-ld} -m elf32ppclinux"
Chris@41 7391 ;;
Chris@41 7392 s390x-*linux*)
Chris@41 7393 LD="${LD-ld} -m elf_s390"
Chris@41 7394 ;;
Chris@41 7395 sparc64-*linux*)
Chris@41 7396 LD="${LD-ld} -m elf32_sparc"
Chris@41 7397 ;;
Chris@41 7398 esac
Chris@41 7399 ;;
Chris@41 7400 *64-bit*)
Chris@41 7401 case $host in
Chris@41 7402 x86_64-*kfreebsd*-gnu)
Chris@41 7403 LD="${LD-ld} -m elf_x86_64_fbsd"
Chris@41 7404 ;;
Chris@41 7405 x86_64-*linux*)
Chris@41 7406 LD="${LD-ld} -m elf_x86_64"
Chris@41 7407 ;;
Chris@41 7408 powerpcle-*linux*)
Chris@41 7409 LD="${LD-ld} -m elf64lppc"
Chris@41 7410 ;;
Chris@41 7411 powerpc-*linux*)
Chris@41 7412 LD="${LD-ld} -m elf64ppc"
Chris@41 7413 ;;
Chris@41 7414 s390*-*linux*|s390*-*tpf*)
Chris@41 7415 LD="${LD-ld} -m elf64_s390"
Chris@41 7416 ;;
Chris@41 7417 sparc*-*linux*)
Chris@41 7418 LD="${LD-ld} -m elf64_sparc"
Chris@41 7419 ;;
Chris@41 7420 esac
Chris@41 7421 ;;
Chris@41 7422 esac
Chris@41 7423 fi
Chris@41 7424 rm -rf conftest*
Chris@41 7425 ;;
Chris@41 7426
Chris@41 7427 *-*-sco3.2v5*)
Chris@41 7428 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
Chris@41 7429 SAVE_CFLAGS=$CFLAGS
Chris@41 7430 CFLAGS="$CFLAGS -belf"
Chris@41 7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
Chris@41 7432 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Chris@41 7433 if ${lt_cv_cc_needs_belf+:} false; then :
Chris@41 7434 $as_echo_n "(cached) " >&6
Chris@41 7435 else
Chris@41 7436 ac_ext=c
Chris@41 7437 ac_cpp='$CPP $CPPFLAGS'
Chris@41 7438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@41 7439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@41 7440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@41 7441
Chris@41 7442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 7443 /* end confdefs.h. */
Chris@41 7444
Chris@41 7445 int
Chris@41 7446 main ()
Chris@41 7447 {
Chris@41 7448
Chris@41 7449 ;
Chris@41 7450 return 0;
Chris@41 7451 }
Chris@41 7452 _ACEOF
Chris@41 7453 if ac_fn_c_try_link "$LINENO"; then :
Chris@41 7454 lt_cv_cc_needs_belf=yes
Chris@41 7455 else
Chris@41 7456 lt_cv_cc_needs_belf=no
Chris@41 7457 fi
Chris@41 7458 rm -f core conftest.err conftest.$ac_objext \
Chris@41 7459 conftest$ac_exeext conftest.$ac_ext
Chris@41 7460 ac_ext=c
Chris@41 7461 ac_cpp='$CPP $CPPFLAGS'
Chris@41 7462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@41 7463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@41 7464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@41 7465
Chris@41 7466 fi
Chris@41 7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
Chris@41 7468 $as_echo "$lt_cv_cc_needs_belf" >&6; }
Chris@41 7469 if test yes != "$lt_cv_cc_needs_belf"; then
Chris@41 7470 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
Chris@41 7471 CFLAGS=$SAVE_CFLAGS
Chris@41 7472 fi
Chris@41 7473 ;;
Chris@41 7474 *-*solaris*)
Chris@41 7475 # Find out what ABI is being produced by ac_compile, and set linker
Chris@41 7476 # options accordingly.
Chris@41 7477 echo 'int i;' > conftest.$ac_ext
Chris@41 7478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@41 7479 (eval $ac_compile) 2>&5
Chris@41 7480 ac_status=$?
Chris@41 7481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 7482 test $ac_status = 0; }; then
Chris@41 7483 case `/usr/bin/file conftest.o` in
Chris@41 7484 *64-bit*)
Chris@41 7485 case $lt_cv_prog_gnu_ld in
Chris@41 7486 yes*)
Chris@41 7487 case $host in
Chris@41 7488 i?86-*-solaris*|x86_64-*-solaris*)
Chris@41 7489 LD="${LD-ld} -m elf_x86_64"
Chris@41 7490 ;;
Chris@41 7491 sparc*-*-solaris*)
Chris@41 7492 LD="${LD-ld} -m elf64_sparc"
Chris@41 7493 ;;
Chris@41 7494 esac
Chris@41 7495 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
Chris@41 7496 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
Chris@41 7497 LD=${LD-ld}_sol2
Chris@41 7498 fi
Chris@41 7499 ;;
Chris@41 7500 *)
Chris@41 7501 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
Chris@41 7502 LD="${LD-ld} -64"
Chris@41 7503 fi
Chris@41 7504 ;;
Chris@41 7505 esac
Chris@41 7506 ;;
Chris@41 7507 esac
Chris@41 7508 fi
Chris@41 7509 rm -rf conftest*
Chris@41 7510 ;;
Chris@41 7511 esac
Chris@41 7512
Chris@41 7513 need_locks=$enable_libtool_lock
Chris@41 7514
Chris@41 7515 if test -n "$ac_tool_prefix"; then
Chris@41 7516 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
Chris@41 7517 set dummy ${ac_tool_prefix}mt; ac_word=$2
Chris@41 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 7519 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 7520 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
Chris@41 7521 $as_echo_n "(cached) " >&6
Chris@41 7522 else
Chris@41 7523 if test -n "$MANIFEST_TOOL"; then
Chris@41 7524 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
Chris@41 7525 else
Chris@41 7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 7527 for as_dir in $PATH
Chris@41 7528 do
Chris@41 7529 IFS=$as_save_IFS
Chris@41 7530 test -z "$as_dir" && as_dir=.
Chris@41 7531 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 7532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 7533 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
Chris@41 7534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 7535 break 2
Chris@41 7536 fi
Chris@41 7537 done
Chris@41 7538 done
Chris@41 7539 IFS=$as_save_IFS
Chris@41 7540
Chris@41 7541 fi
Chris@41 7542 fi
Chris@41 7543 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
Chris@41 7544 if test -n "$MANIFEST_TOOL"; then
Chris@41 7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
Chris@41 7546 $as_echo "$MANIFEST_TOOL" >&6; }
Chris@41 7547 else
Chris@41 7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 7549 $as_echo "no" >&6; }
Chris@41 7550 fi
Chris@41 7551
Chris@41 7552
Chris@41 7553 fi
Chris@41 7554 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
Chris@41 7555 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
Chris@41 7556 # Extract the first word of "mt", so it can be a program name with args.
Chris@41 7557 set dummy mt; ac_word=$2
Chris@41 7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 7559 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 7560 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
Chris@41 7561 $as_echo_n "(cached) " >&6
Chris@41 7562 else
Chris@41 7563 if test -n "$ac_ct_MANIFEST_TOOL"; then
Chris@41 7564 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
Chris@41 7565 else
Chris@41 7566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 7567 for as_dir in $PATH
Chris@41 7568 do
Chris@41 7569 IFS=$as_save_IFS
Chris@41 7570 test -z "$as_dir" && as_dir=.
Chris@41 7571 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 7572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 7573 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
Chris@41 7574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 7575 break 2
Chris@41 7576 fi
Chris@41 7577 done
Chris@41 7578 done
Chris@41 7579 IFS=$as_save_IFS
Chris@41 7580
Chris@41 7581 fi
Chris@41 7582 fi
Chris@41 7583 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
Chris@41 7584 if test -n "$ac_ct_MANIFEST_TOOL"; then
Chris@41 7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
Chris@41 7586 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
Chris@41 7587 else
Chris@41 7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 7589 $as_echo "no" >&6; }
Chris@41 7590 fi
Chris@41 7591
Chris@41 7592 if test "x$ac_ct_MANIFEST_TOOL" = x; then
Chris@41 7593 MANIFEST_TOOL=":"
Chris@41 7594 else
Chris@41 7595 case $cross_compiling:$ac_tool_warned in
Chris@41 7596 yes:)
Chris@41 7597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@41 7598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@41 7599 ac_tool_warned=yes ;;
Chris@41 7600 esac
Chris@41 7601 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
Chris@41 7602 fi
Chris@41 7603 else
Chris@41 7604 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
Chris@41 7605 fi
Chris@41 7606
Chris@41 7607 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
Chris@41 7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
Chris@41 7609 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
Chris@41 7610 if ${lt_cv_path_mainfest_tool+:} false; then :
Chris@41 7611 $as_echo_n "(cached) " >&6
Chris@41 7612 else
Chris@41 7613 lt_cv_path_mainfest_tool=no
Chris@41 7614 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
Chris@41 7615 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
Chris@41 7616 cat conftest.err >&5
Chris@41 7617 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
Chris@41 7618 lt_cv_path_mainfest_tool=yes
Chris@41 7619 fi
Chris@41 7620 rm -f conftest*
Chris@41 7621 fi
Chris@41 7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
Chris@41 7623 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
Chris@41 7624 if test yes != "$lt_cv_path_mainfest_tool"; then
Chris@41 7625 MANIFEST_TOOL=:
Chris@41 7626 fi
Chris@41 7627
Chris@41 7628
Chris@41 7629
Chris@41 7630
Chris@41 7631
Chris@41 7632
Chris@41 7633 case $host_os in
Chris@41 7634 rhapsody* | darwin*)
Chris@41 7635 if test -n "$ac_tool_prefix"; then
Chris@41 7636 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
Chris@41 7637 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Chris@41 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 7639 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 7640 if ${ac_cv_prog_DSYMUTIL+:} false; then :
Chris@41 7641 $as_echo_n "(cached) " >&6
Chris@41 7642 else
Chris@41 7643 if test -n "$DSYMUTIL"; then
Chris@41 7644 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
Chris@41 7645 else
Chris@41 7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 7647 for as_dir in $PATH
Chris@41 7648 do
Chris@41 7649 IFS=$as_save_IFS
Chris@41 7650 test -z "$as_dir" && as_dir=.
Chris@41 7651 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 7652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 7653 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Chris@41 7654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 7655 break 2
Chris@41 7656 fi
Chris@41 7657 done
Chris@41 7658 done
Chris@41 7659 IFS=$as_save_IFS
Chris@41 7660
Chris@41 7661 fi
Chris@41 7662 fi
Chris@41 7663 DSYMUTIL=$ac_cv_prog_DSYMUTIL
Chris@41 7664 if test -n "$DSYMUTIL"; then
Chris@41 7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
Chris@41 7666 $as_echo "$DSYMUTIL" >&6; }
Chris@41 7667 else
Chris@41 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 7669 $as_echo "no" >&6; }
Chris@41 7670 fi
Chris@41 7671
Chris@41 7672
Chris@41 7673 fi
Chris@41 7674 if test -z "$ac_cv_prog_DSYMUTIL"; then
Chris@41 7675 ac_ct_DSYMUTIL=$DSYMUTIL
Chris@41 7676 # Extract the first word of "dsymutil", so it can be a program name with args.
Chris@41 7677 set dummy dsymutil; ac_word=$2
Chris@41 7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 7679 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 7680 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Chris@41 7681 $as_echo_n "(cached) " >&6
Chris@41 7682 else
Chris@41 7683 if test -n "$ac_ct_DSYMUTIL"; then
Chris@41 7684 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
Chris@41 7685 else
Chris@41 7686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 7687 for as_dir in $PATH
Chris@41 7688 do
Chris@41 7689 IFS=$as_save_IFS
Chris@41 7690 test -z "$as_dir" && as_dir=.
Chris@41 7691 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 7692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 7693 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Chris@41 7694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 7695 break 2
Chris@41 7696 fi
Chris@41 7697 done
Chris@41 7698 done
Chris@41 7699 IFS=$as_save_IFS
Chris@41 7700
Chris@41 7701 fi
Chris@41 7702 fi
Chris@41 7703 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
Chris@41 7704 if test -n "$ac_ct_DSYMUTIL"; then
Chris@41 7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
Chris@41 7706 $as_echo "$ac_ct_DSYMUTIL" >&6; }
Chris@41 7707 else
Chris@41 7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 7709 $as_echo "no" >&6; }
Chris@41 7710 fi
Chris@41 7711
Chris@41 7712 if test "x$ac_ct_DSYMUTIL" = x; then
Chris@41 7713 DSYMUTIL=":"
Chris@41 7714 else
Chris@41 7715 case $cross_compiling:$ac_tool_warned in
Chris@41 7716 yes:)
Chris@41 7717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@41 7718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@41 7719 ac_tool_warned=yes ;;
Chris@41 7720 esac
Chris@41 7721 DSYMUTIL=$ac_ct_DSYMUTIL
Chris@41 7722 fi
Chris@41 7723 else
Chris@41 7724 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
Chris@41 7725 fi
Chris@41 7726
Chris@41 7727 if test -n "$ac_tool_prefix"; then
Chris@41 7728 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
Chris@41 7729 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Chris@41 7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 7731 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 7732 if ${ac_cv_prog_NMEDIT+:} false; then :
Chris@41 7733 $as_echo_n "(cached) " >&6
Chris@41 7734 else
Chris@41 7735 if test -n "$NMEDIT"; then
Chris@41 7736 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
Chris@41 7737 else
Chris@41 7738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 7739 for as_dir in $PATH
Chris@41 7740 do
Chris@41 7741 IFS=$as_save_IFS
Chris@41 7742 test -z "$as_dir" && as_dir=.
Chris@41 7743 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 7744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 7745 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Chris@41 7746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 7747 break 2
Chris@41 7748 fi
Chris@41 7749 done
Chris@41 7750 done
Chris@41 7751 IFS=$as_save_IFS
Chris@41 7752
Chris@41 7753 fi
Chris@41 7754 fi
Chris@41 7755 NMEDIT=$ac_cv_prog_NMEDIT
Chris@41 7756 if test -n "$NMEDIT"; then
Chris@41 7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
Chris@41 7758 $as_echo "$NMEDIT" >&6; }
Chris@41 7759 else
Chris@41 7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 7761 $as_echo "no" >&6; }
Chris@41 7762 fi
Chris@41 7763
Chris@41 7764
Chris@41 7765 fi
Chris@41 7766 if test -z "$ac_cv_prog_NMEDIT"; then
Chris@41 7767 ac_ct_NMEDIT=$NMEDIT
Chris@41 7768 # Extract the first word of "nmedit", so it can be a program name with args.
Chris@41 7769 set dummy nmedit; ac_word=$2
Chris@41 7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 7771 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 7772 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Chris@41 7773 $as_echo_n "(cached) " >&6
Chris@41 7774 else
Chris@41 7775 if test -n "$ac_ct_NMEDIT"; then
Chris@41 7776 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
Chris@41 7777 else
Chris@41 7778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 7779 for as_dir in $PATH
Chris@41 7780 do
Chris@41 7781 IFS=$as_save_IFS
Chris@41 7782 test -z "$as_dir" && as_dir=.
Chris@41 7783 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 7784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 7785 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Chris@41 7786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 7787 break 2
Chris@41 7788 fi
Chris@41 7789 done
Chris@41 7790 done
Chris@41 7791 IFS=$as_save_IFS
Chris@41 7792
Chris@41 7793 fi
Chris@41 7794 fi
Chris@41 7795 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
Chris@41 7796 if test -n "$ac_ct_NMEDIT"; then
Chris@41 7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
Chris@41 7798 $as_echo "$ac_ct_NMEDIT" >&6; }
Chris@41 7799 else
Chris@41 7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 7801 $as_echo "no" >&6; }
Chris@41 7802 fi
Chris@41 7803
Chris@41 7804 if test "x$ac_ct_NMEDIT" = x; then
Chris@41 7805 NMEDIT=":"
Chris@41 7806 else
Chris@41 7807 case $cross_compiling:$ac_tool_warned in
Chris@41 7808 yes:)
Chris@41 7809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@41 7810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@41 7811 ac_tool_warned=yes ;;
Chris@41 7812 esac
Chris@41 7813 NMEDIT=$ac_ct_NMEDIT
Chris@41 7814 fi
Chris@41 7815 else
Chris@41 7816 NMEDIT="$ac_cv_prog_NMEDIT"
Chris@41 7817 fi
Chris@41 7818
Chris@41 7819 if test -n "$ac_tool_prefix"; then
Chris@41 7820 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
Chris@41 7821 set dummy ${ac_tool_prefix}lipo; ac_word=$2
Chris@41 7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 7823 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 7824 if ${ac_cv_prog_LIPO+:} false; then :
Chris@41 7825 $as_echo_n "(cached) " >&6
Chris@41 7826 else
Chris@41 7827 if test -n "$LIPO"; then
Chris@41 7828 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
Chris@41 7829 else
Chris@41 7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 7831 for as_dir in $PATH
Chris@41 7832 do
Chris@41 7833 IFS=$as_save_IFS
Chris@41 7834 test -z "$as_dir" && as_dir=.
Chris@41 7835 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 7836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 7837 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Chris@41 7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 7839 break 2
Chris@41 7840 fi
Chris@41 7841 done
Chris@41 7842 done
Chris@41 7843 IFS=$as_save_IFS
Chris@41 7844
Chris@41 7845 fi
Chris@41 7846 fi
Chris@41 7847 LIPO=$ac_cv_prog_LIPO
Chris@41 7848 if test -n "$LIPO"; then
Chris@41 7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
Chris@41 7850 $as_echo "$LIPO" >&6; }
Chris@41 7851 else
Chris@41 7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 7853 $as_echo "no" >&6; }
Chris@41 7854 fi
Chris@41 7855
Chris@41 7856
Chris@41 7857 fi
Chris@41 7858 if test -z "$ac_cv_prog_LIPO"; then
Chris@41 7859 ac_ct_LIPO=$LIPO
Chris@41 7860 # Extract the first word of "lipo", so it can be a program name with args.
Chris@41 7861 set dummy lipo; ac_word=$2
Chris@41 7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 7863 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 7864 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Chris@41 7865 $as_echo_n "(cached) " >&6
Chris@41 7866 else
Chris@41 7867 if test -n "$ac_ct_LIPO"; then
Chris@41 7868 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
Chris@41 7869 else
Chris@41 7870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 7871 for as_dir in $PATH
Chris@41 7872 do
Chris@41 7873 IFS=$as_save_IFS
Chris@41 7874 test -z "$as_dir" && as_dir=.
Chris@41 7875 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 7876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 7877 ac_cv_prog_ac_ct_LIPO="lipo"
Chris@41 7878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 7879 break 2
Chris@41 7880 fi
Chris@41 7881 done
Chris@41 7882 done
Chris@41 7883 IFS=$as_save_IFS
Chris@41 7884
Chris@41 7885 fi
Chris@41 7886 fi
Chris@41 7887 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
Chris@41 7888 if test -n "$ac_ct_LIPO"; then
Chris@41 7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
Chris@41 7890 $as_echo "$ac_ct_LIPO" >&6; }
Chris@41 7891 else
Chris@41 7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 7893 $as_echo "no" >&6; }
Chris@41 7894 fi
Chris@41 7895
Chris@41 7896 if test "x$ac_ct_LIPO" = x; then
Chris@41 7897 LIPO=":"
Chris@41 7898 else
Chris@41 7899 case $cross_compiling:$ac_tool_warned in
Chris@41 7900 yes:)
Chris@41 7901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@41 7902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@41 7903 ac_tool_warned=yes ;;
Chris@41 7904 esac
Chris@41 7905 LIPO=$ac_ct_LIPO
Chris@41 7906 fi
Chris@41 7907 else
Chris@41 7908 LIPO="$ac_cv_prog_LIPO"
Chris@41 7909 fi
Chris@41 7910
Chris@41 7911 if test -n "$ac_tool_prefix"; then
Chris@41 7912 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
Chris@41 7913 set dummy ${ac_tool_prefix}otool; ac_word=$2
Chris@41 7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 7915 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 7916 if ${ac_cv_prog_OTOOL+:} false; then :
Chris@41 7917 $as_echo_n "(cached) " >&6
Chris@41 7918 else
Chris@41 7919 if test -n "$OTOOL"; then
Chris@41 7920 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
Chris@41 7921 else
Chris@41 7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 7923 for as_dir in $PATH
Chris@41 7924 do
Chris@41 7925 IFS=$as_save_IFS
Chris@41 7926 test -z "$as_dir" && as_dir=.
Chris@41 7927 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 7928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 7929 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Chris@41 7930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 7931 break 2
Chris@41 7932 fi
Chris@41 7933 done
Chris@41 7934 done
Chris@41 7935 IFS=$as_save_IFS
Chris@41 7936
Chris@41 7937 fi
Chris@41 7938 fi
Chris@41 7939 OTOOL=$ac_cv_prog_OTOOL
Chris@41 7940 if test -n "$OTOOL"; then
Chris@41 7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
Chris@41 7942 $as_echo "$OTOOL" >&6; }
Chris@41 7943 else
Chris@41 7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 7945 $as_echo "no" >&6; }
Chris@41 7946 fi
Chris@41 7947
Chris@41 7948
Chris@41 7949 fi
Chris@41 7950 if test -z "$ac_cv_prog_OTOOL"; then
Chris@41 7951 ac_ct_OTOOL=$OTOOL
Chris@41 7952 # Extract the first word of "otool", so it can be a program name with args.
Chris@41 7953 set dummy otool; ac_word=$2
Chris@41 7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 7955 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 7956 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Chris@41 7957 $as_echo_n "(cached) " >&6
Chris@41 7958 else
Chris@41 7959 if test -n "$ac_ct_OTOOL"; then
Chris@41 7960 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
Chris@41 7961 else
Chris@41 7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 7963 for as_dir in $PATH
Chris@41 7964 do
Chris@41 7965 IFS=$as_save_IFS
Chris@41 7966 test -z "$as_dir" && as_dir=.
Chris@41 7967 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 7968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 7969 ac_cv_prog_ac_ct_OTOOL="otool"
Chris@41 7970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 7971 break 2
Chris@41 7972 fi
Chris@41 7973 done
Chris@41 7974 done
Chris@41 7975 IFS=$as_save_IFS
Chris@41 7976
Chris@41 7977 fi
Chris@41 7978 fi
Chris@41 7979 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
Chris@41 7980 if test -n "$ac_ct_OTOOL"; then
Chris@41 7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
Chris@41 7982 $as_echo "$ac_ct_OTOOL" >&6; }
Chris@41 7983 else
Chris@41 7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 7985 $as_echo "no" >&6; }
Chris@41 7986 fi
Chris@41 7987
Chris@41 7988 if test "x$ac_ct_OTOOL" = x; then
Chris@41 7989 OTOOL=":"
Chris@41 7990 else
Chris@41 7991 case $cross_compiling:$ac_tool_warned in
Chris@41 7992 yes:)
Chris@41 7993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@41 7994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@41 7995 ac_tool_warned=yes ;;
Chris@41 7996 esac
Chris@41 7997 OTOOL=$ac_ct_OTOOL
Chris@41 7998 fi
Chris@41 7999 else
Chris@41 8000 OTOOL="$ac_cv_prog_OTOOL"
Chris@41 8001 fi
Chris@41 8002
Chris@41 8003 if test -n "$ac_tool_prefix"; then
Chris@41 8004 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
Chris@41 8005 set dummy ${ac_tool_prefix}otool64; ac_word=$2
Chris@41 8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 8007 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 8008 if ${ac_cv_prog_OTOOL64+:} false; then :
Chris@41 8009 $as_echo_n "(cached) " >&6
Chris@41 8010 else
Chris@41 8011 if test -n "$OTOOL64"; then
Chris@41 8012 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
Chris@41 8013 else
Chris@41 8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 8015 for as_dir in $PATH
Chris@41 8016 do
Chris@41 8017 IFS=$as_save_IFS
Chris@41 8018 test -z "$as_dir" && as_dir=.
Chris@41 8019 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 8020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 8021 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Chris@41 8022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 8023 break 2
Chris@41 8024 fi
Chris@41 8025 done
Chris@41 8026 done
Chris@41 8027 IFS=$as_save_IFS
Chris@41 8028
Chris@41 8029 fi
Chris@41 8030 fi
Chris@41 8031 OTOOL64=$ac_cv_prog_OTOOL64
Chris@41 8032 if test -n "$OTOOL64"; then
Chris@41 8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
Chris@41 8034 $as_echo "$OTOOL64" >&6; }
Chris@41 8035 else
Chris@41 8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 8037 $as_echo "no" >&6; }
Chris@41 8038 fi
Chris@41 8039
Chris@41 8040
Chris@41 8041 fi
Chris@41 8042 if test -z "$ac_cv_prog_OTOOL64"; then
Chris@41 8043 ac_ct_OTOOL64=$OTOOL64
Chris@41 8044 # Extract the first word of "otool64", so it can be a program name with args.
Chris@41 8045 set dummy otool64; ac_word=$2
Chris@41 8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 8047 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 8048 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Chris@41 8049 $as_echo_n "(cached) " >&6
Chris@41 8050 else
Chris@41 8051 if test -n "$ac_ct_OTOOL64"; then
Chris@41 8052 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
Chris@41 8053 else
Chris@41 8054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 8055 for as_dir in $PATH
Chris@41 8056 do
Chris@41 8057 IFS=$as_save_IFS
Chris@41 8058 test -z "$as_dir" && as_dir=.
Chris@41 8059 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 8060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 8061 ac_cv_prog_ac_ct_OTOOL64="otool64"
Chris@41 8062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 8063 break 2
Chris@41 8064 fi
Chris@41 8065 done
Chris@41 8066 done
Chris@41 8067 IFS=$as_save_IFS
Chris@41 8068
Chris@41 8069 fi
Chris@41 8070 fi
Chris@41 8071 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
Chris@41 8072 if test -n "$ac_ct_OTOOL64"; then
Chris@41 8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
Chris@41 8074 $as_echo "$ac_ct_OTOOL64" >&6; }
Chris@41 8075 else
Chris@41 8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 8077 $as_echo "no" >&6; }
Chris@41 8078 fi
Chris@41 8079
Chris@41 8080 if test "x$ac_ct_OTOOL64" = x; then
Chris@41 8081 OTOOL64=":"
Chris@41 8082 else
Chris@41 8083 case $cross_compiling:$ac_tool_warned in
Chris@41 8084 yes:)
Chris@41 8085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@41 8086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@41 8087 ac_tool_warned=yes ;;
Chris@41 8088 esac
Chris@41 8089 OTOOL64=$ac_ct_OTOOL64
Chris@41 8090 fi
Chris@41 8091 else
Chris@41 8092 OTOOL64="$ac_cv_prog_OTOOL64"
Chris@41 8093 fi
Chris@41 8094
Chris@41 8095
Chris@41 8096
Chris@41 8097
Chris@41 8098
Chris@41 8099
Chris@41 8100
Chris@41 8101
Chris@41 8102
Chris@41 8103
Chris@41 8104
Chris@41 8105
Chris@41 8106
Chris@41 8107
Chris@41 8108
Chris@41 8109
Chris@41 8110
Chris@41 8111
Chris@41 8112
Chris@41 8113
Chris@41 8114
Chris@41 8115
Chris@41 8116
Chris@41 8117
Chris@41 8118
Chris@41 8119
Chris@41 8120
Chris@41 8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
Chris@41 8122 $as_echo_n "checking for -single_module linker flag... " >&6; }
Chris@41 8123 if ${lt_cv_apple_cc_single_mod+:} false; then :
Chris@41 8124 $as_echo_n "(cached) " >&6
Chris@41 8125 else
Chris@41 8126 lt_cv_apple_cc_single_mod=no
Chris@41 8127 if test -z "$LT_MULTI_MODULE"; then
Chris@41 8128 # By default we will add the -single_module flag. You can override
Chris@41 8129 # by either setting the environment variable LT_MULTI_MODULE
Chris@41 8130 # non-empty at configure time, or by adding -multi_module to the
Chris@41 8131 # link flags.
Chris@41 8132 rm -rf libconftest.dylib*
Chris@41 8133 echo "int foo(void){return 1;}" > conftest.c
Chris@41 8134 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
Chris@41 8135 -dynamiclib -Wl,-single_module conftest.c" >&5
Chris@41 8136 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
Chris@41 8137 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
Chris@41 8138 _lt_result=$?
Chris@41 8139 # If there is a non-empty error log, and "single_module"
Chris@41 8140 # appears in it, assume the flag caused a linker warning
Chris@41 8141 if test -s conftest.err && $GREP single_module conftest.err; then
Chris@41 8142 cat conftest.err >&5
Chris@41 8143 # Otherwise, if the output was created with a 0 exit code from
Chris@41 8144 # the compiler, it worked.
Chris@41 8145 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
Chris@41 8146 lt_cv_apple_cc_single_mod=yes
Chris@41 8147 else
Chris@41 8148 cat conftest.err >&5
Chris@41 8149 fi
Chris@41 8150 rm -rf libconftest.dylib*
Chris@41 8151 rm -f conftest.*
Chris@41 8152 fi
Chris@41 8153 fi
Chris@41 8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
Chris@41 8155 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Chris@41 8156
Chris@41 8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
Chris@41 8158 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Chris@41 8159 if ${lt_cv_ld_exported_symbols_list+:} false; then :
Chris@41 8160 $as_echo_n "(cached) " >&6
Chris@41 8161 else
Chris@41 8162 lt_cv_ld_exported_symbols_list=no
Chris@41 8163 save_LDFLAGS=$LDFLAGS
Chris@41 8164 echo "_main" > conftest.sym
Chris@41 8165 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Chris@41 8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 8167 /* end confdefs.h. */
Chris@41 8168
Chris@41 8169 int
Chris@41 8170 main ()
Chris@41 8171 {
Chris@41 8172
Chris@41 8173 ;
Chris@41 8174 return 0;
Chris@41 8175 }
Chris@41 8176 _ACEOF
Chris@41 8177 if ac_fn_c_try_link "$LINENO"; then :
Chris@41 8178 lt_cv_ld_exported_symbols_list=yes
Chris@41 8179 else
Chris@41 8180 lt_cv_ld_exported_symbols_list=no
Chris@41 8181 fi
Chris@41 8182 rm -f core conftest.err conftest.$ac_objext \
Chris@41 8183 conftest$ac_exeext conftest.$ac_ext
Chris@41 8184 LDFLAGS=$save_LDFLAGS
Chris@41 8185
Chris@41 8186 fi
Chris@41 8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
Chris@41 8188 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Chris@41 8189
Chris@41 8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
Chris@41 8191 $as_echo_n "checking for -force_load linker flag... " >&6; }
Chris@41 8192 if ${lt_cv_ld_force_load+:} false; then :
Chris@41 8193 $as_echo_n "(cached) " >&6
Chris@41 8194 else
Chris@41 8195 lt_cv_ld_force_load=no
Chris@41 8196 cat > conftest.c << _LT_EOF
Chris@41 8197 int forced_loaded() { return 2;}
Chris@41 8198 _LT_EOF
Chris@41 8199 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
Chris@41 8200 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
Chris@41 8201 echo "$AR cru libconftest.a conftest.o" >&5
Chris@41 8202 $AR cru libconftest.a conftest.o 2>&5
Chris@41 8203 echo "$RANLIB libconftest.a" >&5
Chris@41 8204 $RANLIB libconftest.a 2>&5
Chris@41 8205 cat > conftest.c << _LT_EOF
Chris@41 8206 int main() { return 0;}
Chris@41 8207 _LT_EOF
Chris@41 8208 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
Chris@41 8209 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
Chris@41 8210 _lt_result=$?
Chris@41 8211 if test -s conftest.err && $GREP force_load conftest.err; then
Chris@41 8212 cat conftest.err >&5
Chris@41 8213 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
Chris@41 8214 lt_cv_ld_force_load=yes
Chris@41 8215 else
Chris@41 8216 cat conftest.err >&5
Chris@41 8217 fi
Chris@41 8218 rm -f conftest.err libconftest.a conftest conftest.c
Chris@41 8219 rm -rf conftest.dSYM
Chris@41 8220
Chris@41 8221 fi
Chris@41 8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
Chris@41 8223 $as_echo "$lt_cv_ld_force_load" >&6; }
Chris@41 8224 case $host_os in
Chris@41 8225 rhapsody* | darwin1.[012])
Chris@41 8226 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
Chris@41 8227 darwin1.*)
Chris@41 8228 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
Chris@41 8229 darwin*) # darwin 5.x on
Chris@41 8230 # if running on 10.5 or later, the deployment target defaults
Chris@41 8231 # to the OS version, if on x86, and 10.4, the deployment
Chris@41 8232 # target defaults to 10.4. Don't you love it?
Chris@41 8233 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
Chris@41 8234 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
Chris@41 8235 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
Chris@41 8236 10.[012][,.]*)
Chris@41 8237 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
Chris@41 8238 10.*)
Chris@41 8239 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
Chris@41 8240 esac
Chris@41 8241 ;;
Chris@41 8242 esac
Chris@41 8243 if test yes = "$lt_cv_apple_cc_single_mod"; then
Chris@41 8244 _lt_dar_single_mod='$single_module'
Chris@41 8245 fi
Chris@41 8246 if test yes = "$lt_cv_ld_exported_symbols_list"; then
Chris@41 8247 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
Chris@41 8248 else
Chris@41 8249 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
Chris@41 8250 fi
Chris@41 8251 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
Chris@41 8252 _lt_dsymutil='~$DSYMUTIL $lib || :'
Chris@41 8253 else
Chris@41 8254 _lt_dsymutil=
Chris@41 8255 fi
Chris@41 8256 ;;
Chris@41 8257 esac
Chris@41 8258
Chris@41 8259 # func_munge_path_list VARIABLE PATH
Chris@41 8260 # -----------------------------------
Chris@41 8261 # VARIABLE is name of variable containing _space_ separated list of
Chris@41 8262 # directories to be munged by the contents of PATH, which is string
Chris@41 8263 # having a format:
Chris@41 8264 # "DIR[:DIR]:"
Chris@41 8265 # string "DIR[ DIR]" will be prepended to VARIABLE
Chris@41 8266 # ":DIR[:DIR]"
Chris@41 8267 # string "DIR[ DIR]" will be appended to VARIABLE
Chris@41 8268 # "DIRP[:DIRP]::[DIRA:]DIRA"
Chris@41 8269 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
Chris@41 8270 # "DIRA[ DIRA]" will be appended to VARIABLE
Chris@41 8271 # "DIR[:DIR]"
Chris@41 8272 # VARIABLE will be replaced by "DIR[ DIR]"
Chris@41 8273 func_munge_path_list ()
Chris@41 8274 {
Chris@41 8275 case x$2 in
Chris@41 8276 x)
Chris@41 8277 ;;
Chris@41 8278 *:)
Chris@41 8279 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
Chris@41 8280 ;;
Chris@41 8281 x:*)
Chris@41 8282 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
Chris@41 8283 ;;
Chris@41 8284 *::*)
Chris@41 8285 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
Chris@41 8286 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
Chris@41 8287 ;;
Chris@41 8288 *)
Chris@41 8289 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
Chris@41 8290 ;;
Chris@41 8291 esac
Chris@41 8292 }
Chris@41 8293
Chris@41 8294 ac_ext=c
Chris@41 8295 ac_cpp='$CPP $CPPFLAGS'
Chris@41 8296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@41 8297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@41 8298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@41 8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Chris@41 8300 $as_echo_n "checking how to run the C preprocessor... " >&6; }
Chris@41 8301 # On Suns, sometimes $CPP names a directory.
Chris@41 8302 if test -n "$CPP" && test -d "$CPP"; then
Chris@41 8303 CPP=
Chris@41 8304 fi
Chris@41 8305 if test -z "$CPP"; then
Chris@41 8306 if ${ac_cv_prog_CPP+:} false; then :
Chris@41 8307 $as_echo_n "(cached) " >&6
Chris@41 8308 else
Chris@41 8309 # Double quotes because CPP needs to be expanded
Chris@41 8310 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
Chris@41 8311 do
Chris@41 8312 ac_preproc_ok=false
Chris@41 8313 for ac_c_preproc_warn_flag in '' yes
Chris@41 8314 do
Chris@41 8315 # Use a header file that comes with gcc, so configuring glibc
Chris@41 8316 # with a fresh cross-compiler works.
Chris@41 8317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@41 8318 # <limits.h> exists even on freestanding compilers.
Chris@41 8319 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@41 8320 # not just through cpp. "Syntax error" is here to catch this case.
Chris@41 8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 8322 /* end confdefs.h. */
Chris@41 8323 #ifdef __STDC__
Chris@41 8324 # include <limits.h>
Chris@41 8325 #else
Chris@41 8326 # include <assert.h>
Chris@41 8327 #endif
Chris@41 8328 Syntax error
Chris@41 8329 _ACEOF
Chris@41 8330 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@41 8331
Chris@41 8332 else
Chris@41 8333 # Broken: fails on valid input.
Chris@41 8334 continue
Chris@41 8335 fi
Chris@41 8336 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@41 8337
Chris@41 8338 # OK, works on sane cases. Now check whether nonexistent headers
Chris@41 8339 # can be detected and how.
Chris@41 8340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 8341 /* end confdefs.h. */
Chris@41 8342 #include <ac_nonexistent.h>
Chris@41 8343 _ACEOF
Chris@41 8344 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@41 8345 # Broken: success on invalid input.
Chris@41 8346 continue
Chris@41 8347 else
Chris@41 8348 # Passes both tests.
Chris@41 8349 ac_preproc_ok=:
Chris@41 8350 break
Chris@41 8351 fi
Chris@41 8352 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@41 8353
Chris@41 8354 done
Chris@41 8355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@41 8356 rm -f conftest.i conftest.err conftest.$ac_ext
Chris@41 8357 if $ac_preproc_ok; then :
Chris@41 8358 break
Chris@41 8359 fi
Chris@41 8360
Chris@41 8361 done
Chris@41 8362 ac_cv_prog_CPP=$CPP
Chris@41 8363
Chris@41 8364 fi
Chris@41 8365 CPP=$ac_cv_prog_CPP
Chris@41 8366 else
Chris@41 8367 ac_cv_prog_CPP=$CPP
Chris@41 8368 fi
Chris@41 8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Chris@41 8370 $as_echo "$CPP" >&6; }
Chris@41 8371 ac_preproc_ok=false
Chris@41 8372 for ac_c_preproc_warn_flag in '' yes
Chris@41 8373 do
Chris@41 8374 # Use a header file that comes with gcc, so configuring glibc
Chris@41 8375 # with a fresh cross-compiler works.
Chris@41 8376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@41 8377 # <limits.h> exists even on freestanding compilers.
Chris@41 8378 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@41 8379 # not just through cpp. "Syntax error" is here to catch this case.
Chris@41 8380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 8381 /* end confdefs.h. */
Chris@41 8382 #ifdef __STDC__
Chris@41 8383 # include <limits.h>
Chris@41 8384 #else
Chris@41 8385 # include <assert.h>
Chris@41 8386 #endif
Chris@41 8387 Syntax error
Chris@41 8388 _ACEOF
Chris@41 8389 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@41 8390
Chris@41 8391 else
Chris@41 8392 # Broken: fails on valid input.
Chris@41 8393 continue
Chris@41 8394 fi
Chris@41 8395 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@41 8396
Chris@41 8397 # OK, works on sane cases. Now check whether nonexistent headers
Chris@41 8398 # can be detected and how.
Chris@41 8399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 8400 /* end confdefs.h. */
Chris@41 8401 #include <ac_nonexistent.h>
Chris@41 8402 _ACEOF
Chris@41 8403 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@41 8404 # Broken: success on invalid input.
Chris@41 8405 continue
Chris@41 8406 else
Chris@41 8407 # Passes both tests.
Chris@41 8408 ac_preproc_ok=:
Chris@41 8409 break
Chris@41 8410 fi
Chris@41 8411 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@41 8412
Chris@41 8413 done
Chris@41 8414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@41 8415 rm -f conftest.i conftest.err conftest.$ac_ext
Chris@41 8416 if $ac_preproc_ok; then :
Chris@41 8417
Chris@41 8418 else
Chris@41 8419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@41 8420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@41 8421 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
Chris@41 8422 See \`config.log' for more details" "$LINENO" 5; }
Chris@41 8423 fi
Chris@41 8424
Chris@41 8425 ac_ext=c
Chris@41 8426 ac_cpp='$CPP $CPPFLAGS'
Chris@41 8427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@41 8428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@41 8429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@41 8430
Chris@41 8431
Chris@41 8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Chris@41 8433 $as_echo_n "checking for ANSI C header files... " >&6; }
Chris@41 8434 if ${ac_cv_header_stdc+:} false; then :
Chris@41 8435 $as_echo_n "(cached) " >&6
Chris@41 8436 else
Chris@41 8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 8438 /* end confdefs.h. */
Chris@41 8439 #include <stdlib.h>
Chris@41 8440 #include <stdarg.h>
Chris@41 8441 #include <string.h>
Chris@41 8442 #include <float.h>
Chris@41 8443
Chris@41 8444 int
Chris@41 8445 main ()
Chris@41 8446 {
Chris@41 8447
Chris@41 8448 ;
Chris@41 8449 return 0;
Chris@41 8450 }
Chris@41 8451 _ACEOF
Chris@41 8452 if ac_fn_c_try_compile "$LINENO"; then :
Chris@41 8453 ac_cv_header_stdc=yes
Chris@41 8454 else
Chris@41 8455 ac_cv_header_stdc=no
Chris@41 8456 fi
Chris@41 8457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@41 8458
Chris@41 8459 if test $ac_cv_header_stdc = yes; then
Chris@41 8460 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Chris@41 8461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 8462 /* end confdefs.h. */
Chris@41 8463 #include <string.h>
Chris@41 8464
Chris@41 8465 _ACEOF
Chris@41 8466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@41 8467 $EGREP "memchr" >/dev/null 2>&1; then :
Chris@41 8468
Chris@41 8469 else
Chris@41 8470 ac_cv_header_stdc=no
Chris@41 8471 fi
Chris@41 8472 rm -f conftest*
Chris@41 8473
Chris@41 8474 fi
Chris@41 8475
Chris@41 8476 if test $ac_cv_header_stdc = yes; then
Chris@41 8477 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Chris@41 8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 8479 /* end confdefs.h. */
Chris@41 8480 #include <stdlib.h>
Chris@41 8481
Chris@41 8482 _ACEOF
Chris@41 8483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@41 8484 $EGREP "free" >/dev/null 2>&1; then :
Chris@41 8485
Chris@41 8486 else
Chris@41 8487 ac_cv_header_stdc=no
Chris@41 8488 fi
Chris@41 8489 rm -f conftest*
Chris@41 8490
Chris@41 8491 fi
Chris@41 8492
Chris@41 8493 if test $ac_cv_header_stdc = yes; then
Chris@41 8494 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Chris@41 8495 if test "$cross_compiling" = yes; then :
Chris@41 8496 :
Chris@41 8497 else
Chris@41 8498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 8499 /* end confdefs.h. */
Chris@41 8500 #include <ctype.h>
Chris@41 8501 #include <stdlib.h>
Chris@41 8502 #if ((' ' & 0x0FF) == 0x020)
Chris@41 8503 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
Chris@41 8504 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Chris@41 8505 #else
Chris@41 8506 # define ISLOWER(c) \
Chris@41 8507 (('a' <= (c) && (c) <= 'i') \
Chris@41 8508 || ('j' <= (c) && (c) <= 'r') \
Chris@41 8509 || ('s' <= (c) && (c) <= 'z'))
Chris@41 8510 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
Chris@41 8511 #endif
Chris@41 8512
Chris@41 8513 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Chris@41 8514 int
Chris@41 8515 main ()
Chris@41 8516 {
Chris@41 8517 int i;
Chris@41 8518 for (i = 0; i < 256; i++)
Chris@41 8519 if (XOR (islower (i), ISLOWER (i))
Chris@41 8520 || toupper (i) != TOUPPER (i))
Chris@41 8521 return 2;
Chris@41 8522 return 0;
Chris@41 8523 }
Chris@41 8524 _ACEOF
Chris@41 8525 if ac_fn_c_try_run "$LINENO"; then :
Chris@41 8526
Chris@41 8527 else
Chris@41 8528 ac_cv_header_stdc=no
Chris@41 8529 fi
Chris@41 8530 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@41 8531 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@41 8532 fi
Chris@41 8533
Chris@41 8534 fi
Chris@41 8535 fi
Chris@41 8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Chris@41 8537 $as_echo "$ac_cv_header_stdc" >&6; }
Chris@41 8538 if test $ac_cv_header_stdc = yes; then
Chris@41 8539
Chris@41 8540 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
Chris@41 8541
Chris@41 8542 fi
Chris@41 8543
Chris@41 8544 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
Chris@41 8545 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Chris@41 8546 inttypes.h stdint.h unistd.h
Chris@41 8547 do :
Chris@41 8548 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Chris@41 8549 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
Chris@41 8550 "
Chris@41 8551 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@41 8552 cat >>confdefs.h <<_ACEOF
Chris@41 8553 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris@41 8554 _ACEOF
Chris@41 8555
Chris@41 8556 fi
Chris@41 8557
Chris@41 8558 done
Chris@41 8559
Chris@41 8560
Chris@41 8561 for ac_header in dlfcn.h
Chris@41 8562 do :
Chris@41 8563 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
Chris@41 8564 "
Chris@41 8565 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Chris@41 8566 cat >>confdefs.h <<_ACEOF
Chris@41 8567 #define HAVE_DLFCN_H 1
Chris@41 8568 _ACEOF
Chris@41 8569
Chris@41 8570 fi
Chris@41 8571
Chris@41 8572 done
Chris@41 8573
Chris@41 8574
Chris@41 8575
Chris@41 8576
Chris@41 8577 func_stripname_cnf ()
Chris@41 8578 {
Chris@41 8579 case $2 in
Chris@41 8580 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
Chris@41 8581 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
Chris@41 8582 esac
Chris@41 8583 } # func_stripname_cnf
Chris@41 8584
Chris@41 8585
Chris@41 8586
Chris@41 8587
Chris@41 8588
Chris@41 8589 # Set options
Chris@41 8590
Chris@41 8591
Chris@41 8592
Chris@41 8593 enable_dlopen=no
Chris@41 8594
Chris@41 8595
Chris@41 8596 enable_win32_dll=no
Chris@41 8597
Chris@41 8598
Chris@41 8599 # Check whether --enable-shared was given.
Chris@41 8600 if test "${enable_shared+set}" = set; then :
Chris@41 8601 enableval=$enable_shared; p=${PACKAGE-default}
Chris@41 8602 case $enableval in
Chris@41 8603 yes) enable_shared=yes ;;
Chris@41 8604 no) enable_shared=no ;;
Chris@41 8605 *)
Chris@41 8606 enable_shared=no
Chris@41 8607 # Look at the argument we got. We use all the common list separators.
Chris@41 8608 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Chris@41 8609 for pkg in $enableval; do
Chris@41 8610 IFS=$lt_save_ifs
Chris@41 8611 if test "X$pkg" = "X$p"; then
Chris@41 8612 enable_shared=yes
Chris@41 8613 fi
Chris@41 8614 done
Chris@41 8615 IFS=$lt_save_ifs
Chris@41 8616 ;;
Chris@41 8617 esac
Chris@41 8618 else
Chris@41 8619 enable_shared=yes
Chris@41 8620 fi
Chris@41 8621
Chris@41 8622
Chris@41 8623
Chris@41 8624
Chris@41 8625
Chris@41 8626
Chris@41 8627
Chris@41 8628
Chris@41 8629
Chris@41 8630 # Check whether --enable-static was given.
Chris@41 8631 if test "${enable_static+set}" = set; then :
Chris@41 8632 enableval=$enable_static; p=${PACKAGE-default}
Chris@41 8633 case $enableval in
Chris@41 8634 yes) enable_static=yes ;;
Chris@41 8635 no) enable_static=no ;;
Chris@41 8636 *)
Chris@41 8637 enable_static=no
Chris@41 8638 # Look at the argument we got. We use all the common list separators.
Chris@41 8639 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Chris@41 8640 for pkg in $enableval; do
Chris@41 8641 IFS=$lt_save_ifs
Chris@41 8642 if test "X$pkg" = "X$p"; then
Chris@41 8643 enable_static=yes
Chris@41 8644 fi
Chris@41 8645 done
Chris@41 8646 IFS=$lt_save_ifs
Chris@41 8647 ;;
Chris@41 8648 esac
Chris@41 8649 else
Chris@41 8650 enable_static=yes
Chris@41 8651 fi
Chris@41 8652
Chris@41 8653
Chris@41 8654
Chris@41 8655
Chris@41 8656
Chris@41 8657
Chris@41 8658
Chris@41 8659
Chris@41 8660
Chris@41 8661
Chris@41 8662 # Check whether --with-pic was given.
Chris@41 8663 if test "${with_pic+set}" = set; then :
Chris@41 8664 withval=$with_pic; lt_p=${PACKAGE-default}
Chris@41 8665 case $withval in
Chris@41 8666 yes|no) pic_mode=$withval ;;
Chris@41 8667 *)
Chris@41 8668 pic_mode=default
Chris@41 8669 # Look at the argument we got. We use all the common list separators.
Chris@41 8670 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Chris@41 8671 for lt_pkg in $withval; do
Chris@41 8672 IFS=$lt_save_ifs
Chris@41 8673 if test "X$lt_pkg" = "X$lt_p"; then
Chris@41 8674 pic_mode=yes
Chris@41 8675 fi
Chris@41 8676 done
Chris@41 8677 IFS=$lt_save_ifs
Chris@41 8678 ;;
Chris@41 8679 esac
Chris@41 8680 else
Chris@41 8681 pic_mode=default
Chris@41 8682 fi
Chris@41 8683
Chris@41 8684
Chris@41 8685
Chris@41 8686
Chris@41 8687
Chris@41 8688
Chris@41 8689
Chris@41 8690
Chris@41 8691 # Check whether --enable-fast-install was given.
Chris@41 8692 if test "${enable_fast_install+set}" = set; then :
Chris@41 8693 enableval=$enable_fast_install; p=${PACKAGE-default}
Chris@41 8694 case $enableval in
Chris@41 8695 yes) enable_fast_install=yes ;;
Chris@41 8696 no) enable_fast_install=no ;;
Chris@41 8697 *)
Chris@41 8698 enable_fast_install=no
Chris@41 8699 # Look at the argument we got. We use all the common list separators.
Chris@41 8700 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Chris@41 8701 for pkg in $enableval; do
Chris@41 8702 IFS=$lt_save_ifs
Chris@41 8703 if test "X$pkg" = "X$p"; then
Chris@41 8704 enable_fast_install=yes
Chris@41 8705 fi
Chris@41 8706 done
Chris@41 8707 IFS=$lt_save_ifs
Chris@41 8708 ;;
Chris@41 8709 esac
Chris@41 8710 else
Chris@41 8711 enable_fast_install=yes
Chris@41 8712 fi
Chris@41 8713
Chris@41 8714
Chris@41 8715
Chris@41 8716
Chris@41 8717
Chris@41 8718
Chris@41 8719
Chris@41 8720
Chris@41 8721 shared_archive_member_spec=
Chris@41 8722 case $host,$enable_shared in
Chris@41 8723 power*-*-aix[5-9]*,yes)
Chris@41 8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
Chris@41 8725 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
Chris@41 8726
Chris@41 8727 # Check whether --with-aix-soname was given.
Chris@41 8728 if test "${with_aix_soname+set}" = set; then :
Chris@41 8729 withval=$with_aix_soname; case $withval in
Chris@41 8730 aix|svr4|both)
Chris@41 8731 ;;
Chris@41 8732 *)
Chris@41 8733 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
Chris@41 8734 ;;
Chris@41 8735 esac
Chris@41 8736 lt_cv_with_aix_soname=$with_aix_soname
Chris@41 8737 else
Chris@41 8738 if ${lt_cv_with_aix_soname+:} false; then :
Chris@41 8739 $as_echo_n "(cached) " >&6
Chris@41 8740 else
Chris@41 8741 lt_cv_with_aix_soname=aix
Chris@41 8742 fi
Chris@41 8743
Chris@41 8744 with_aix_soname=$lt_cv_with_aix_soname
Chris@41 8745 fi
Chris@41 8746
Chris@41 8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
Chris@41 8748 $as_echo "$with_aix_soname" >&6; }
Chris@41 8749 if test aix != "$with_aix_soname"; then
Chris@41 8750 # For the AIX way of multilib, we name the shared archive member
Chris@41 8751 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
Chris@41 8752 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
Chris@41 8753 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
Chris@41 8754 # the AIX toolchain works better with OBJECT_MODE set (default 32).
Chris@41 8755 if test 64 = "${OBJECT_MODE-32}"; then
Chris@41 8756 shared_archive_member_spec=shr_64
Chris@41 8757 else
Chris@41 8758 shared_archive_member_spec=shr
Chris@41 8759 fi
Chris@41 8760 fi
Chris@41 8761 ;;
Chris@41 8762 *)
Chris@41 8763 with_aix_soname=aix
Chris@41 8764 ;;
Chris@41 8765 esac
Chris@41 8766
Chris@41 8767
Chris@41 8768
Chris@41 8769
Chris@41 8770
Chris@41 8771
Chris@41 8772
Chris@41 8773
Chris@41 8774
Chris@41 8775
Chris@41 8776 # This can be used to rebuild libtool when needed
Chris@41 8777 LIBTOOL_DEPS=$ltmain
Chris@41 8778
Chris@41 8779 # Always use our own libtool.
Chris@41 8780 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
Chris@41 8781
Chris@41 8782
Chris@41 8783
Chris@41 8784
Chris@41 8785
Chris@41 8786
Chris@41 8787
Chris@41 8788
Chris@41 8789
Chris@41 8790
Chris@41 8791
Chris@41 8792
Chris@41 8793
Chris@41 8794
Chris@41 8795
Chris@41 8796
Chris@41 8797
Chris@41 8798
Chris@41 8799
Chris@41 8800
Chris@41 8801
Chris@41 8802
Chris@41 8803
Chris@41 8804
Chris@41 8805
Chris@41 8806
Chris@41 8807
Chris@41 8808
Chris@41 8809
Chris@41 8810
Chris@41 8811 test -z "$LN_S" && LN_S="ln -s"
Chris@41 8812
Chris@41 8813
Chris@41 8814
Chris@41 8815
Chris@41 8816
Chris@41 8817
Chris@41 8818
Chris@41 8819
Chris@41 8820
Chris@41 8821
Chris@41 8822
Chris@41 8823
Chris@41 8824
Chris@41 8825
Chris@41 8826 if test -n "${ZSH_VERSION+set}"; then
Chris@41 8827 setopt NO_GLOB_SUBST
Chris@41 8828 fi
Chris@41 8829
Chris@41 8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
Chris@41 8831 $as_echo_n "checking for objdir... " >&6; }
Chris@41 8832 if ${lt_cv_objdir+:} false; then :
Chris@41 8833 $as_echo_n "(cached) " >&6
Chris@41 8834 else
Chris@41 8835 rm -f .libs 2>/dev/null
Chris@41 8836 mkdir .libs 2>/dev/null
Chris@41 8837 if test -d .libs; then
Chris@41 8838 lt_cv_objdir=.libs
Chris@41 8839 else
Chris@41 8840 # MS-DOS does not allow filenames that begin with a dot.
Chris@41 8841 lt_cv_objdir=_libs
Chris@41 8842 fi
Chris@41 8843 rmdir .libs 2>/dev/null
Chris@41 8844 fi
Chris@41 8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
Chris@41 8846 $as_echo "$lt_cv_objdir" >&6; }
Chris@41 8847 objdir=$lt_cv_objdir
Chris@41 8848
Chris@41 8849
Chris@41 8850
Chris@41 8851
Chris@41 8852
Chris@41 8853 cat >>confdefs.h <<_ACEOF
Chris@41 8854 #define LT_OBJDIR "$lt_cv_objdir/"
Chris@41 8855 _ACEOF
Chris@41 8856
Chris@41 8857
Chris@41 8858
Chris@41 8859
Chris@41 8860 case $host_os in
Chris@41 8861 aix3*)
Chris@41 8862 # AIX sometimes has problems with the GCC collect2 program. For some
Chris@41 8863 # reason, if we set the COLLECT_NAMES environment variable, the problems
Chris@41 8864 # vanish in a puff of smoke.
Chris@41 8865 if test set != "${COLLECT_NAMES+set}"; then
Chris@41 8866 COLLECT_NAMES=
Chris@41 8867 export COLLECT_NAMES
Chris@41 8868 fi
Chris@41 8869 ;;
Chris@41 8870 esac
Chris@41 8871
Chris@41 8872 # Global variables:
Chris@41 8873 ofile=libtool
Chris@41 8874 can_build_shared=yes
Chris@41 8875
Chris@41 8876 # All known linkers require a '.a' archive for static linking (except MSVC,
Chris@41 8877 # which needs '.lib').
Chris@41 8878 libext=a
Chris@41 8879
Chris@41 8880 with_gnu_ld=$lt_cv_prog_gnu_ld
Chris@41 8881
Chris@41 8882 old_CC=$CC
Chris@41 8883 old_CFLAGS=$CFLAGS
Chris@41 8884
Chris@41 8885 # Set sane defaults for various variables
Chris@41 8886 test -z "$CC" && CC=cc
Chris@41 8887 test -z "$LTCC" && LTCC=$CC
Chris@41 8888 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
Chris@41 8889 test -z "$LD" && LD=ld
Chris@41 8890 test -z "$ac_objext" && ac_objext=o
Chris@41 8891
Chris@41 8892 func_cc_basename $compiler
Chris@41 8893 cc_basename=$func_cc_basename_result
Chris@41 8894
Chris@41 8895
Chris@41 8896 # Only perform the check for file, if the check method requires it
Chris@41 8897 test -z "$MAGIC_CMD" && MAGIC_CMD=file
Chris@41 8898 case $deplibs_check_method in
Chris@41 8899 file_magic*)
Chris@41 8900 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Chris@41 8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
Chris@41 8902 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Chris@41 8903 if ${lt_cv_path_MAGIC_CMD+:} false; then :
Chris@41 8904 $as_echo_n "(cached) " >&6
Chris@41 8905 else
Chris@41 8906 case $MAGIC_CMD in
Chris@41 8907 [\\/*] | ?:[\\/]*)
Chris@41 8908 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
Chris@41 8909 ;;
Chris@41 8910 *)
Chris@41 8911 lt_save_MAGIC_CMD=$MAGIC_CMD
Chris@41 8912 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Chris@41 8913 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
Chris@41 8914 for ac_dir in $ac_dummy; do
Chris@41 8915 IFS=$lt_save_ifs
Chris@41 8916 test -z "$ac_dir" && ac_dir=.
Chris@41 8917 if test -f "$ac_dir/${ac_tool_prefix}file"; then
Chris@41 8918 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
Chris@41 8919 if test -n "$file_magic_test_file"; then
Chris@41 8920 case $deplibs_check_method in
Chris@41 8921 "file_magic "*)
Chris@41 8922 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Chris@41 8923 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Chris@41 8924 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
Chris@41 8925 $EGREP "$file_magic_regex" > /dev/null; then
Chris@41 8926 :
Chris@41 8927 else
Chris@41 8928 cat <<_LT_EOF 1>&2
Chris@41 8929
Chris@41 8930 *** Warning: the command libtool uses to detect shared libraries,
Chris@41 8931 *** $file_magic_cmd, produces output that libtool cannot recognize.
Chris@41 8932 *** The result is that libtool may fail to recognize shared libraries
Chris@41 8933 *** as such. This will affect the creation of libtool libraries that
Chris@41 8934 *** depend on shared libraries, but programs linked with such libtool
Chris@41 8935 *** libraries will work regardless of this problem. Nevertheless, you
Chris@41 8936 *** may want to report the problem to your system manager and/or to
Chris@41 8937 *** bug-libtool@gnu.org
Chris@41 8938
Chris@41 8939 _LT_EOF
Chris@41 8940 fi ;;
Chris@41 8941 esac
Chris@41 8942 fi
Chris@41 8943 break
Chris@41 8944 fi
Chris@41 8945 done
Chris@41 8946 IFS=$lt_save_ifs
Chris@41 8947 MAGIC_CMD=$lt_save_MAGIC_CMD
Chris@41 8948 ;;
Chris@41 8949 esac
Chris@41 8950 fi
Chris@41 8951
Chris@41 8952 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Chris@41 8953 if test -n "$MAGIC_CMD"; then
Chris@41 8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Chris@41 8955 $as_echo "$MAGIC_CMD" >&6; }
Chris@41 8956 else
Chris@41 8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 8958 $as_echo "no" >&6; }
Chris@41 8959 fi
Chris@41 8960
Chris@41 8961
Chris@41 8962
Chris@41 8963
Chris@41 8964
Chris@41 8965 if test -z "$lt_cv_path_MAGIC_CMD"; then
Chris@41 8966 if test -n "$ac_tool_prefix"; then
Chris@41 8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
Chris@41 8968 $as_echo_n "checking for file... " >&6; }
Chris@41 8969 if ${lt_cv_path_MAGIC_CMD+:} false; then :
Chris@41 8970 $as_echo_n "(cached) " >&6
Chris@41 8971 else
Chris@41 8972 case $MAGIC_CMD in
Chris@41 8973 [\\/*] | ?:[\\/]*)
Chris@41 8974 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
Chris@41 8975 ;;
Chris@41 8976 *)
Chris@41 8977 lt_save_MAGIC_CMD=$MAGIC_CMD
Chris@41 8978 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Chris@41 8979 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
Chris@41 8980 for ac_dir in $ac_dummy; do
Chris@41 8981 IFS=$lt_save_ifs
Chris@41 8982 test -z "$ac_dir" && ac_dir=.
Chris@41 8983 if test -f "$ac_dir/file"; then
Chris@41 8984 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
Chris@41 8985 if test -n "$file_magic_test_file"; then
Chris@41 8986 case $deplibs_check_method in
Chris@41 8987 "file_magic "*)
Chris@41 8988 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Chris@41 8989 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Chris@41 8990 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
Chris@41 8991 $EGREP "$file_magic_regex" > /dev/null; then
Chris@41 8992 :
Chris@41 8993 else
Chris@41 8994 cat <<_LT_EOF 1>&2
Chris@41 8995
Chris@41 8996 *** Warning: the command libtool uses to detect shared libraries,
Chris@41 8997 *** $file_magic_cmd, produces output that libtool cannot recognize.
Chris@41 8998 *** The result is that libtool may fail to recognize shared libraries
Chris@41 8999 *** as such. This will affect the creation of libtool libraries that
Chris@41 9000 *** depend on shared libraries, but programs linked with such libtool
Chris@41 9001 *** libraries will work regardless of this problem. Nevertheless, you
Chris@41 9002 *** may want to report the problem to your system manager and/or to
Chris@41 9003 *** bug-libtool@gnu.org
Chris@41 9004
Chris@41 9005 _LT_EOF
Chris@41 9006 fi ;;
Chris@41 9007 esac
Chris@41 9008 fi
Chris@41 9009 break
Chris@41 9010 fi
Chris@41 9011 done
Chris@41 9012 IFS=$lt_save_ifs
Chris@41 9013 MAGIC_CMD=$lt_save_MAGIC_CMD
Chris@41 9014 ;;
Chris@41 9015 esac
Chris@41 9016 fi
Chris@41 9017
Chris@41 9018 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Chris@41 9019 if test -n "$MAGIC_CMD"; then
Chris@41 9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Chris@41 9021 $as_echo "$MAGIC_CMD" >&6; }
Chris@41 9022 else
Chris@41 9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 9024 $as_echo "no" >&6; }
Chris@41 9025 fi
Chris@41 9026
Chris@41 9027
Chris@41 9028 else
Chris@41 9029 MAGIC_CMD=:
Chris@41 9030 fi
Chris@41 9031 fi
Chris@41 9032
Chris@41 9033 fi
Chris@41 9034 ;;
Chris@41 9035 esac
Chris@41 9036
Chris@41 9037 # Use C for the default configuration in the libtool script
Chris@41 9038
Chris@41 9039 lt_save_CC=$CC
Chris@41 9040 ac_ext=c
Chris@41 9041 ac_cpp='$CPP $CPPFLAGS'
Chris@41 9042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@41 9043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@41 9044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@41 9045
Chris@41 9046
Chris@41 9047 # Source file extension for C test sources.
Chris@41 9048 ac_ext=c
Chris@41 9049
Chris@41 9050 # Object file extension for compiled C test sources.
Chris@41 9051 objext=o
Chris@41 9052 objext=$objext
Chris@41 9053
Chris@41 9054 # Code to be used in simple compile tests
Chris@41 9055 lt_simple_compile_test_code="int some_variable = 0;"
Chris@41 9056
Chris@41 9057 # Code to be used in simple link tests
Chris@41 9058 lt_simple_link_test_code='int main(){return(0);}'
Chris@41 9059
Chris@41 9060
Chris@41 9061
Chris@41 9062
Chris@41 9063
Chris@41 9064
Chris@41 9065
Chris@41 9066 # If no C compiler was specified, use CC.
Chris@41 9067 LTCC=${LTCC-"$CC"}
Chris@41 9068
Chris@41 9069 # If no C compiler flags were specified, use CFLAGS.
Chris@41 9070 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Chris@41 9071
Chris@41 9072 # Allow CC to be a program name with arguments.
Chris@41 9073 compiler=$CC
Chris@41 9074
Chris@41 9075 # Save the default compiler, since it gets overwritten when the other
Chris@41 9076 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
Chris@41 9077 compiler_DEFAULT=$CC
Chris@41 9078
Chris@41 9079 # save warnings/boilerplate of simple test code
Chris@41 9080 ac_outfile=conftest.$ac_objext
Chris@41 9081 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Chris@41 9082 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@41 9083 _lt_compiler_boilerplate=`cat conftest.err`
Chris@41 9084 $RM conftest*
Chris@41 9085
Chris@41 9086 ac_outfile=conftest.$ac_objext
Chris@41 9087 echo "$lt_simple_link_test_code" >conftest.$ac_ext
Chris@41 9088 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@41 9089 _lt_linker_boilerplate=`cat conftest.err`
Chris@41 9090 $RM -r conftest*
Chris@41 9091
Chris@41 9092
Chris@41 9093 ## CAVEAT EMPTOR:
Chris@41 9094 ## There is no encapsulation within the following macros, do not change
Chris@41 9095 ## the running order or otherwise move them around unless you know exactly
Chris@41 9096 ## what you are doing...
Chris@41 9097 if test -n "$compiler"; then
Chris@41 9098
Chris@41 9099 lt_prog_compiler_no_builtin_flag=
Chris@41 9100
Chris@41 9101 if test yes = "$GCC"; then
Chris@41 9102 case $cc_basename in
Chris@41 9103 nvcc*)
Chris@41 9104 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
Chris@41 9105 *)
Chris@41 9106 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
Chris@41 9107 esac
Chris@41 9108
Chris@41 9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Chris@41 9110 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Chris@41 9111 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Chris@41 9112 $as_echo_n "(cached) " >&6
Chris@41 9113 else
Chris@41 9114 lt_cv_prog_compiler_rtti_exceptions=no
Chris@41 9115 ac_outfile=conftest.$ac_objext
Chris@41 9116 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@41 9117 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
Chris@41 9118 # Insert the option either (1) after the last *FLAGS variable, or
Chris@41 9119 # (2) before a word containing "conftest.", or (3) at the end.
Chris@41 9120 # Note that $ac_compile itself does not contain backslashes and begins
Chris@41 9121 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@41 9122 # The option is referenced via a variable to avoid confusing sed.
Chris@41 9123 lt_compile=`echo "$ac_compile" | $SED \
Chris@41 9124 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@41 9125 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@41 9126 -e 's:$: $lt_compiler_flag:'`
Chris@41 9127 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@41 9128 (eval "$lt_compile" 2>conftest.err)
Chris@41 9129 ac_status=$?
Chris@41 9130 cat conftest.err >&5
Chris@41 9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@41 9132 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@41 9133 # The compiler can only warn and ignore the option if not recognized
Chris@41 9134 # So say no if there are warnings other than the usual output.
Chris@41 9135 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Chris@41 9136 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@41 9137 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Chris@41 9138 lt_cv_prog_compiler_rtti_exceptions=yes
Chris@41 9139 fi
Chris@41 9140 fi
Chris@41 9141 $RM conftest*
Chris@41 9142
Chris@41 9143 fi
Chris@41 9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Chris@41 9145 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Chris@41 9146
Chris@41 9147 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
Chris@41 9148 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
Chris@41 9149 else
Chris@41 9150 :
Chris@41 9151 fi
Chris@41 9152
Chris@41 9153 fi
Chris@41 9154
Chris@41 9155
Chris@41 9156
Chris@41 9157
Chris@41 9158
Chris@41 9159
Chris@41 9160 lt_prog_compiler_wl=
Chris@41 9161 lt_prog_compiler_pic=
Chris@41 9162 lt_prog_compiler_static=
Chris@41 9163
Chris@41 9164
Chris@41 9165 if test yes = "$GCC"; then
Chris@41 9166 lt_prog_compiler_wl='-Wl,'
Chris@41 9167 lt_prog_compiler_static='-static'
Chris@41 9168
Chris@41 9169 case $host_os in
Chris@41 9170 aix*)
Chris@41 9171 # All AIX code is PIC.
Chris@41 9172 if test ia64 = "$host_cpu"; then
Chris@41 9173 # AIX 5 now supports IA64 processor
Chris@41 9174 lt_prog_compiler_static='-Bstatic'
Chris@41 9175 fi
Chris@41 9176 lt_prog_compiler_pic='-fPIC'
Chris@41 9177 ;;
Chris@41 9178
Chris@41 9179 amigaos*)
Chris@41 9180 case $host_cpu in
Chris@41 9181 powerpc)
Chris@41 9182 # see comment about AmigaOS4 .so support
Chris@41 9183 lt_prog_compiler_pic='-fPIC'
Chris@41 9184 ;;
Chris@41 9185 m68k)
Chris@41 9186 # FIXME: we need at least 68020 code to build shared libraries, but
Chris@41 9187 # adding the '-m68020' flag to GCC prevents building anything better,
Chris@41 9188 # like '-m68040'.
Chris@41 9189 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
Chris@41 9190 ;;
Chris@41 9191 esac
Chris@41 9192 ;;
Chris@41 9193
Chris@41 9194 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Chris@41 9195 # PIC is the default for these OSes.
Chris@41 9196 ;;
Chris@41 9197
Chris@41 9198 mingw* | cygwin* | pw32* | os2* | cegcc*)
Chris@41 9199 # This hack is so that the source file can tell whether it is being
Chris@41 9200 # built for inclusion in a dll (and should export symbols for example).
Chris@41 9201 # Although the cygwin gcc ignores -fPIC, still need this for old-style
Chris@41 9202 # (--disable-auto-import) libraries
Chris@41 9203 lt_prog_compiler_pic='-DDLL_EXPORT'
Chris@41 9204 case $host_os in
Chris@41 9205 os2*)
Chris@41 9206 lt_prog_compiler_static='$wl-static'
Chris@41 9207 ;;
Chris@41 9208 esac
Chris@41 9209 ;;
Chris@41 9210
Chris@41 9211 darwin* | rhapsody*)
Chris@41 9212 # PIC is the default on this platform
Chris@41 9213 # Common symbols not allowed in MH_DYLIB files
Chris@41 9214 lt_prog_compiler_pic='-fno-common'
Chris@41 9215 ;;
Chris@41 9216
Chris@41 9217 haiku*)
Chris@41 9218 # PIC is the default for Haiku.
Chris@41 9219 # The "-static" flag exists, but is broken.
Chris@41 9220 lt_prog_compiler_static=
Chris@41 9221 ;;
Chris@41 9222
Chris@41 9223 hpux*)
Chris@41 9224 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
Chris@41 9225 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
Chris@41 9226 # sets the default TLS model and affects inlining.
Chris@41 9227 case $host_cpu in
Chris@41 9228 hppa*64*)
Chris@41 9229 # +Z the default
Chris@41 9230 ;;
Chris@41 9231 *)
Chris@41 9232 lt_prog_compiler_pic='-fPIC'
Chris@41 9233 ;;
Chris@41 9234 esac
Chris@41 9235 ;;
Chris@41 9236
Chris@41 9237 interix[3-9]*)
Chris@41 9238 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
Chris@41 9239 # Instead, we relocate shared libraries at runtime.
Chris@41 9240 ;;
Chris@41 9241
Chris@41 9242 msdosdjgpp*)
Chris@41 9243 # Just because we use GCC doesn't mean we suddenly get shared libraries
Chris@41 9244 # on systems that don't support them.
Chris@41 9245 lt_prog_compiler_can_build_shared=no
Chris@41 9246 enable_shared=no
Chris@41 9247 ;;
Chris@41 9248
Chris@41 9249 *nto* | *qnx*)
Chris@41 9250 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@41 9251 # it will coredump.
Chris@41 9252 lt_prog_compiler_pic='-fPIC -shared'
Chris@41 9253 ;;
Chris@41 9254
Chris@41 9255 sysv4*MP*)
Chris@41 9256 if test -d /usr/nec; then
Chris@41 9257 lt_prog_compiler_pic=-Kconform_pic
Chris@41 9258 fi
Chris@41 9259 ;;
Chris@41 9260
Chris@41 9261 *)
Chris@41 9262 lt_prog_compiler_pic='-fPIC'
Chris@41 9263 ;;
Chris@41 9264 esac
Chris@41 9265
Chris@41 9266 case $cc_basename in
Chris@41 9267 nvcc*) # Cuda Compiler Driver 2.2
Chris@41 9268 lt_prog_compiler_wl='-Xlinker '
Chris@41 9269 if test -n "$lt_prog_compiler_pic"; then
Chris@41 9270 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
Chris@41 9271 fi
Chris@41 9272 ;;
Chris@41 9273 esac
Chris@41 9274 else
Chris@41 9275 # PORTME Check for flag to pass linker flags through the system compiler.
Chris@41 9276 case $host_os in
Chris@41 9277 aix*)
Chris@41 9278 lt_prog_compiler_wl='-Wl,'
Chris@41 9279 if test ia64 = "$host_cpu"; then
Chris@41 9280 # AIX 5 now supports IA64 processor
Chris@41 9281 lt_prog_compiler_static='-Bstatic'
Chris@41 9282 else
Chris@41 9283 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
Chris@41 9284 fi
Chris@41 9285 ;;
Chris@41 9286
Chris@41 9287 darwin* | rhapsody*)
Chris@41 9288 # PIC is the default on this platform
Chris@41 9289 # Common symbols not allowed in MH_DYLIB files
Chris@41 9290 lt_prog_compiler_pic='-fno-common'
Chris@41 9291 case $cc_basename in
Chris@41 9292 nagfor*)
Chris@41 9293 # NAG Fortran compiler
Chris@41 9294 lt_prog_compiler_wl='-Wl,-Wl,,'
Chris@41 9295 lt_prog_compiler_pic='-PIC'
Chris@41 9296 lt_prog_compiler_static='-Bstatic'
Chris@41 9297 ;;
Chris@41 9298 esac
Chris@41 9299 ;;
Chris@41 9300
Chris@41 9301 mingw* | cygwin* | pw32* | os2* | cegcc*)
Chris@41 9302 # This hack is so that the source file can tell whether it is being
Chris@41 9303 # built for inclusion in a dll (and should export symbols for example).
Chris@41 9304 lt_prog_compiler_pic='-DDLL_EXPORT'
Chris@41 9305 case $host_os in
Chris@41 9306 os2*)
Chris@41 9307 lt_prog_compiler_static='$wl-static'
Chris@41 9308 ;;
Chris@41 9309 esac
Chris@41 9310 ;;
Chris@41 9311
Chris@41 9312 hpux9* | hpux10* | hpux11*)
Chris@41 9313 lt_prog_compiler_wl='-Wl,'
Chris@41 9314 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
Chris@41 9315 # not for PA HP-UX.
Chris@41 9316 case $host_cpu in
Chris@41 9317 hppa*64*|ia64*)
Chris@41 9318 # +Z the default
Chris@41 9319 ;;
Chris@41 9320 *)
Chris@41 9321 lt_prog_compiler_pic='+Z'
Chris@41 9322 ;;
Chris@41 9323 esac
Chris@41 9324 # Is there a better lt_prog_compiler_static that works with the bundled CC?
Chris@41 9325 lt_prog_compiler_static='$wl-a ${wl}archive'
Chris@41 9326 ;;
Chris@41 9327
Chris@41 9328 irix5* | irix6* | nonstopux*)
Chris@41 9329 lt_prog_compiler_wl='-Wl,'
Chris@41 9330 # PIC (with -KPIC) is the default.
Chris@41 9331 lt_prog_compiler_static='-non_shared'
Chris@41 9332 ;;
Chris@41 9333
Chris@41 9334 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Chris@41 9335 case $cc_basename in
Chris@41 9336 # old Intel for x86_64, which still supported -KPIC.
Chris@41 9337 ecc*)
Chris@41 9338 lt_prog_compiler_wl='-Wl,'
Chris@41 9339 lt_prog_compiler_pic='-KPIC'
Chris@41 9340 lt_prog_compiler_static='-static'
Chris@41 9341 ;;
Chris@41 9342 # icc used to be incompatible with GCC.
Chris@41 9343 # ICC 10 doesn't accept -KPIC any more.
Chris@41 9344 icc* | ifort*)
Chris@41 9345 lt_prog_compiler_wl='-Wl,'
Chris@41 9346 lt_prog_compiler_pic='-fPIC'
Chris@41 9347 lt_prog_compiler_static='-static'
Chris@41 9348 ;;
Chris@41 9349 # Lahey Fortran 8.1.
Chris@41 9350 lf95*)
Chris@41 9351 lt_prog_compiler_wl='-Wl,'
Chris@41 9352 lt_prog_compiler_pic='--shared'
Chris@41 9353 lt_prog_compiler_static='--static'
Chris@41 9354 ;;
Chris@41 9355 nagfor*)
Chris@41 9356 # NAG Fortran compiler
Chris@41 9357 lt_prog_compiler_wl='-Wl,-Wl,,'
Chris@41 9358 lt_prog_compiler_pic='-PIC'
Chris@41 9359 lt_prog_compiler_static='-Bstatic'
Chris@41 9360 ;;
Chris@41 9361 tcc*)
Chris@41 9362 # Fabrice Bellard et al's Tiny C Compiler
Chris@41 9363 lt_prog_compiler_wl='-Wl,'
Chris@41 9364 lt_prog_compiler_pic='-fPIC'
Chris@41 9365 lt_prog_compiler_static='-static'
Chris@41 9366 ;;
Chris@41 9367 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Chris@41 9368 # Portland Group compilers (*not* the Pentium gcc compiler,
Chris@41 9369 # which looks to be a dead project)
Chris@41 9370 lt_prog_compiler_wl='-Wl,'
Chris@41 9371 lt_prog_compiler_pic='-fpic'
Chris@41 9372 lt_prog_compiler_static='-Bstatic'
Chris@41 9373 ;;
Chris@41 9374 ccc*)
Chris@41 9375 lt_prog_compiler_wl='-Wl,'
Chris@41 9376 # All Alpha code is PIC.
Chris@41 9377 lt_prog_compiler_static='-non_shared'
Chris@41 9378 ;;
Chris@41 9379 xl* | bgxl* | bgf* | mpixl*)
Chris@41 9380 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Chris@41 9381 lt_prog_compiler_wl='-Wl,'
Chris@41 9382 lt_prog_compiler_pic='-qpic'
Chris@41 9383 lt_prog_compiler_static='-qstaticlink'
Chris@41 9384 ;;
Chris@41 9385 *)
Chris@41 9386 case `$CC -V 2>&1 | sed 5q` in
Chris@41 9387 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
Chris@41 9388 # Sun Fortran 8.3 passes all unrecognized flags to the linker
Chris@41 9389 lt_prog_compiler_pic='-KPIC'
Chris@41 9390 lt_prog_compiler_static='-Bstatic'
Chris@41 9391 lt_prog_compiler_wl=''
Chris@41 9392 ;;
Chris@41 9393 *Sun\ F* | *Sun*Fortran*)
Chris@41 9394 lt_prog_compiler_pic='-KPIC'
Chris@41 9395 lt_prog_compiler_static='-Bstatic'
Chris@41 9396 lt_prog_compiler_wl='-Qoption ld '
Chris@41 9397 ;;
Chris@41 9398 *Sun\ C*)
Chris@41 9399 # Sun C 5.9
Chris@41 9400 lt_prog_compiler_pic='-KPIC'
Chris@41 9401 lt_prog_compiler_static='-Bstatic'
Chris@41 9402 lt_prog_compiler_wl='-Wl,'
Chris@41 9403 ;;
Chris@41 9404 *Intel*\ [CF]*Compiler*)
Chris@41 9405 lt_prog_compiler_wl='-Wl,'
Chris@41 9406 lt_prog_compiler_pic='-fPIC'
Chris@41 9407 lt_prog_compiler_static='-static'
Chris@41 9408 ;;
Chris@41 9409 *Portland\ Group*)
Chris@41 9410 lt_prog_compiler_wl='-Wl,'
Chris@41 9411 lt_prog_compiler_pic='-fpic'
Chris@41 9412 lt_prog_compiler_static='-Bstatic'
Chris@41 9413 ;;
Chris@41 9414 esac
Chris@41 9415 ;;
Chris@41 9416 esac
Chris@41 9417 ;;
Chris@41 9418
Chris@41 9419 newsos6)
Chris@41 9420 lt_prog_compiler_pic='-KPIC'
Chris@41 9421 lt_prog_compiler_static='-Bstatic'
Chris@41 9422 ;;
Chris@41 9423
Chris@41 9424 *nto* | *qnx*)
Chris@41 9425 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@41 9426 # it will coredump.
Chris@41 9427 lt_prog_compiler_pic='-fPIC -shared'
Chris@41 9428 ;;
Chris@41 9429
Chris@41 9430 osf3* | osf4* | osf5*)
Chris@41 9431 lt_prog_compiler_wl='-Wl,'
Chris@41 9432 # All OSF/1 code is PIC.
Chris@41 9433 lt_prog_compiler_static='-non_shared'
Chris@41 9434 ;;
Chris@41 9435
Chris@41 9436 rdos*)
Chris@41 9437 lt_prog_compiler_static='-non_shared'
Chris@41 9438 ;;
Chris@41 9439
Chris@41 9440 solaris*)
Chris@41 9441 lt_prog_compiler_pic='-KPIC'
Chris@41 9442 lt_prog_compiler_static='-Bstatic'
Chris@41 9443 case $cc_basename in
Chris@41 9444 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Chris@41 9445 lt_prog_compiler_wl='-Qoption ld ';;
Chris@41 9446 *)
Chris@41 9447 lt_prog_compiler_wl='-Wl,';;
Chris@41 9448 esac
Chris@41 9449 ;;
Chris@41 9450
Chris@41 9451 sunos4*)
Chris@41 9452 lt_prog_compiler_wl='-Qoption ld '
Chris@41 9453 lt_prog_compiler_pic='-PIC'
Chris@41 9454 lt_prog_compiler_static='-Bstatic'
Chris@41 9455 ;;
Chris@41 9456
Chris@41 9457 sysv4 | sysv4.2uw2* | sysv4.3*)
Chris@41 9458 lt_prog_compiler_wl='-Wl,'
Chris@41 9459 lt_prog_compiler_pic='-KPIC'
Chris@41 9460 lt_prog_compiler_static='-Bstatic'
Chris@41 9461 ;;
Chris@41 9462
Chris@41 9463 sysv4*MP*)
Chris@41 9464 if test -d /usr/nec; then
Chris@41 9465 lt_prog_compiler_pic='-Kconform_pic'
Chris@41 9466 lt_prog_compiler_static='-Bstatic'
Chris@41 9467 fi
Chris@41 9468 ;;
Chris@41 9469
Chris@41 9470 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
Chris@41 9471 lt_prog_compiler_wl='-Wl,'
Chris@41 9472 lt_prog_compiler_pic='-KPIC'
Chris@41 9473 lt_prog_compiler_static='-Bstatic'
Chris@41 9474 ;;
Chris@41 9475
Chris@41 9476 unicos*)
Chris@41 9477 lt_prog_compiler_wl='-Wl,'
Chris@41 9478 lt_prog_compiler_can_build_shared=no
Chris@41 9479 ;;
Chris@41 9480
Chris@41 9481 uts4*)
Chris@41 9482 lt_prog_compiler_pic='-pic'
Chris@41 9483 lt_prog_compiler_static='-Bstatic'
Chris@41 9484 ;;
Chris@41 9485
Chris@41 9486 *)
Chris@41 9487 lt_prog_compiler_can_build_shared=no
Chris@41 9488 ;;
Chris@41 9489 esac
Chris@41 9490 fi
Chris@41 9491
Chris@41 9492 case $host_os in
Chris@41 9493 # For platforms that do not support PIC, -DPIC is meaningless:
Chris@41 9494 *djgpp*)
Chris@41 9495 lt_prog_compiler_pic=
Chris@41 9496 ;;
Chris@41 9497 *)
Chris@41 9498 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
Chris@41 9499 ;;
Chris@41 9500 esac
Chris@41 9501
Chris@41 9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
Chris@41 9503 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Chris@41 9504 if ${lt_cv_prog_compiler_pic+:} false; then :
Chris@41 9505 $as_echo_n "(cached) " >&6
Chris@41 9506 else
Chris@41 9507 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
Chris@41 9508 fi
Chris@41 9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
Chris@41 9510 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
Chris@41 9511 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
Chris@41 9512
Chris@41 9513 #
Chris@41 9514 # Check to make sure the PIC flag actually works.
Chris@41 9515 #
Chris@41 9516 if test -n "$lt_prog_compiler_pic"; then
Chris@41 9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
Chris@41 9518 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Chris@41 9519 if ${lt_cv_prog_compiler_pic_works+:} false; then :
Chris@41 9520 $as_echo_n "(cached) " >&6
Chris@41 9521 else
Chris@41 9522 lt_cv_prog_compiler_pic_works=no
Chris@41 9523 ac_outfile=conftest.$ac_objext
Chris@41 9524 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@41 9525 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
Chris@41 9526 # Insert the option either (1) after the last *FLAGS variable, or
Chris@41 9527 # (2) before a word containing "conftest.", or (3) at the end.
Chris@41 9528 # Note that $ac_compile itself does not contain backslashes and begins
Chris@41 9529 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@41 9530 # The option is referenced via a variable to avoid confusing sed.
Chris@41 9531 lt_compile=`echo "$ac_compile" | $SED \
Chris@41 9532 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@41 9533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@41 9534 -e 's:$: $lt_compiler_flag:'`
Chris@41 9535 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@41 9536 (eval "$lt_compile" 2>conftest.err)
Chris@41 9537 ac_status=$?
Chris@41 9538 cat conftest.err >&5
Chris@41 9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@41 9540 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@41 9541 # The compiler can only warn and ignore the option if not recognized
Chris@41 9542 # So say no if there are warnings other than the usual output.
Chris@41 9543 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Chris@41 9544 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@41 9545 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Chris@41 9546 lt_cv_prog_compiler_pic_works=yes
Chris@41 9547 fi
Chris@41 9548 fi
Chris@41 9549 $RM conftest*
Chris@41 9550
Chris@41 9551 fi
Chris@41 9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
Chris@41 9553 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
Chris@41 9554
Chris@41 9555 if test yes = "$lt_cv_prog_compiler_pic_works"; then
Chris@41 9556 case $lt_prog_compiler_pic in
Chris@41 9557 "" | " "*) ;;
Chris@41 9558 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
Chris@41 9559 esac
Chris@41 9560 else
Chris@41 9561 lt_prog_compiler_pic=
Chris@41 9562 lt_prog_compiler_can_build_shared=no
Chris@41 9563 fi
Chris@41 9564
Chris@41 9565 fi
Chris@41 9566
Chris@41 9567
Chris@41 9568
Chris@41 9569
Chris@41 9570
Chris@41 9571
Chris@41 9572
Chris@41 9573
Chris@41 9574
Chris@41 9575
Chris@41 9576
Chris@41 9577 #
Chris@41 9578 # Check to make sure the static flag actually works.
Chris@41 9579 #
Chris@41 9580 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Chris@41 9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
Chris@41 9582 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Chris@41 9583 if ${lt_cv_prog_compiler_static_works+:} false; then :
Chris@41 9584 $as_echo_n "(cached) " >&6
Chris@41 9585 else
Chris@41 9586 lt_cv_prog_compiler_static_works=no
Chris@41 9587 save_LDFLAGS=$LDFLAGS
Chris@41 9588 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Chris@41 9589 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Chris@41 9590 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Chris@41 9591 # The linker can only warn and ignore the option if not recognized
Chris@41 9592 # So say no if there are warnings
Chris@41 9593 if test -s conftest.err; then
Chris@41 9594 # Append any errors to the config.log.
Chris@41 9595 cat conftest.err 1>&5
Chris@41 9596 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Chris@41 9597 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@41 9598 if diff conftest.exp conftest.er2 >/dev/null; then
Chris@41 9599 lt_cv_prog_compiler_static_works=yes
Chris@41 9600 fi
Chris@41 9601 else
Chris@41 9602 lt_cv_prog_compiler_static_works=yes
Chris@41 9603 fi
Chris@41 9604 fi
Chris@41 9605 $RM -r conftest*
Chris@41 9606 LDFLAGS=$save_LDFLAGS
Chris@41 9607
Chris@41 9608 fi
Chris@41 9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
Chris@41 9610 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
Chris@41 9611
Chris@41 9612 if test yes = "$lt_cv_prog_compiler_static_works"; then
Chris@41 9613 :
Chris@41 9614 else
Chris@41 9615 lt_prog_compiler_static=
Chris@41 9616 fi
Chris@41 9617
Chris@41 9618
Chris@41 9619
Chris@41 9620
Chris@41 9621
Chris@41 9622
Chris@41 9623
Chris@41 9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@41 9625 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@41 9626 if ${lt_cv_prog_compiler_c_o+:} false; then :
Chris@41 9627 $as_echo_n "(cached) " >&6
Chris@41 9628 else
Chris@41 9629 lt_cv_prog_compiler_c_o=no
Chris@41 9630 $RM -r conftest 2>/dev/null
Chris@41 9631 mkdir conftest
Chris@41 9632 cd conftest
Chris@41 9633 mkdir out
Chris@41 9634 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@41 9635
Chris@41 9636 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@41 9637 # Insert the option either (1) after the last *FLAGS variable, or
Chris@41 9638 # (2) before a word containing "conftest.", or (3) at the end.
Chris@41 9639 # Note that $ac_compile itself does not contain backslashes and begins
Chris@41 9640 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@41 9641 lt_compile=`echo "$ac_compile" | $SED \
Chris@41 9642 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@41 9643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@41 9644 -e 's:$: $lt_compiler_flag:'`
Chris@41 9645 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@41 9646 (eval "$lt_compile" 2>out/conftest.err)
Chris@41 9647 ac_status=$?
Chris@41 9648 cat out/conftest.err >&5
Chris@41 9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@41 9650 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@41 9651 then
Chris@41 9652 # The compiler can only warn and ignore the option if not recognized
Chris@41 9653 # So say no if there are warnings
Chris@41 9654 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@41 9655 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@41 9656 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@41 9657 lt_cv_prog_compiler_c_o=yes
Chris@41 9658 fi
Chris@41 9659 fi
Chris@41 9660 chmod u+w . 2>&5
Chris@41 9661 $RM conftest*
Chris@41 9662 # SGI C++ compiler will create directory out/ii_files/ for
Chris@41 9663 # template instantiation
Chris@41 9664 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@41 9665 $RM out/* && rmdir out
Chris@41 9666 cd ..
Chris@41 9667 $RM -r conftest
Chris@41 9668 $RM conftest*
Chris@41 9669
Chris@41 9670 fi
Chris@41 9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Chris@41 9672 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Chris@41 9673
Chris@41 9674
Chris@41 9675
Chris@41 9676
Chris@41 9677
Chris@41 9678
Chris@41 9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@41 9680 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@41 9681 if ${lt_cv_prog_compiler_c_o+:} false; then :
Chris@41 9682 $as_echo_n "(cached) " >&6
Chris@41 9683 else
Chris@41 9684 lt_cv_prog_compiler_c_o=no
Chris@41 9685 $RM -r conftest 2>/dev/null
Chris@41 9686 mkdir conftest
Chris@41 9687 cd conftest
Chris@41 9688 mkdir out
Chris@41 9689 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@41 9690
Chris@41 9691 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@41 9692 # Insert the option either (1) after the last *FLAGS variable, or
Chris@41 9693 # (2) before a word containing "conftest.", or (3) at the end.
Chris@41 9694 # Note that $ac_compile itself does not contain backslashes and begins
Chris@41 9695 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@41 9696 lt_compile=`echo "$ac_compile" | $SED \
Chris@41 9697 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@41 9698 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@41 9699 -e 's:$: $lt_compiler_flag:'`
Chris@41 9700 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@41 9701 (eval "$lt_compile" 2>out/conftest.err)
Chris@41 9702 ac_status=$?
Chris@41 9703 cat out/conftest.err >&5
Chris@41 9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@41 9705 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@41 9706 then
Chris@41 9707 # The compiler can only warn and ignore the option if not recognized
Chris@41 9708 # So say no if there are warnings
Chris@41 9709 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@41 9710 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@41 9711 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@41 9712 lt_cv_prog_compiler_c_o=yes
Chris@41 9713 fi
Chris@41 9714 fi
Chris@41 9715 chmod u+w . 2>&5
Chris@41 9716 $RM conftest*
Chris@41 9717 # SGI C++ compiler will create directory out/ii_files/ for
Chris@41 9718 # template instantiation
Chris@41 9719 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@41 9720 $RM out/* && rmdir out
Chris@41 9721 cd ..
Chris@41 9722 $RM -r conftest
Chris@41 9723 $RM conftest*
Chris@41 9724
Chris@41 9725 fi
Chris@41 9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Chris@41 9727 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Chris@41 9728
Chris@41 9729
Chris@41 9730
Chris@41 9731
Chris@41 9732 hard_links=nottested
Chris@41 9733 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
Chris@41 9734 # do not overwrite the value of need_locks provided by the user
Chris@41 9735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Chris@41 9736 $as_echo_n "checking if we can lock with hard links... " >&6; }
Chris@41 9737 hard_links=yes
Chris@41 9738 $RM conftest*
Chris@41 9739 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@41 9740 touch conftest.a
Chris@41 9741 ln conftest.a conftest.b 2>&5 || hard_links=no
Chris@41 9742 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@41 9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Chris@41 9744 $as_echo "$hard_links" >&6; }
Chris@41 9745 if test no = "$hard_links"; then
Chris@41 9746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
Chris@41 9747 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
Chris@41 9748 need_locks=warn
Chris@41 9749 fi
Chris@41 9750 else
Chris@41 9751 need_locks=no
Chris@41 9752 fi
Chris@41 9753
Chris@41 9754
Chris@41 9755
Chris@41 9756
Chris@41 9757
Chris@41 9758
Chris@41 9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Chris@41 9760 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Chris@41 9761
Chris@41 9762 runpath_var=
Chris@41 9763 allow_undefined_flag=
Chris@41 9764 always_export_symbols=no
Chris@41 9765 archive_cmds=
Chris@41 9766 archive_expsym_cmds=
Chris@41 9767 compiler_needs_object=no
Chris@41 9768 enable_shared_with_static_runtimes=no
Chris@41 9769 export_dynamic_flag_spec=
Chris@41 9770 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Chris@41 9771 hardcode_automatic=no
Chris@41 9772 hardcode_direct=no
Chris@41 9773 hardcode_direct_absolute=no
Chris@41 9774 hardcode_libdir_flag_spec=
Chris@41 9775 hardcode_libdir_separator=
Chris@41 9776 hardcode_minus_L=no
Chris@41 9777 hardcode_shlibpath_var=unsupported
Chris@41 9778 inherit_rpath=no
Chris@41 9779 link_all_deplibs=unknown
Chris@41 9780 module_cmds=
Chris@41 9781 module_expsym_cmds=
Chris@41 9782 old_archive_from_new_cmds=
Chris@41 9783 old_archive_from_expsyms_cmds=
Chris@41 9784 thread_safe_flag_spec=
Chris@41 9785 whole_archive_flag_spec=
Chris@41 9786 # include_expsyms should be a list of space-separated symbols to be *always*
Chris@41 9787 # included in the symbol list
Chris@41 9788 include_expsyms=
Chris@41 9789 # exclude_expsyms can be an extended regexp of symbols to exclude
Chris@41 9790 # it will be wrapped by ' (' and ')$', so one must not match beginning or
Chris@41 9791 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
Chris@41 9792 # as well as any symbol that contains 'd'.
Chris@41 9793 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Chris@41 9794 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
Chris@41 9795 # platforms (ab)use it in PIC code, but their linkers get confused if
Chris@41 9796 # the symbol is explicitly referenced. Since portable code cannot
Chris@41 9797 # rely on this symbol name, it's probably fine to never include it in
Chris@41 9798 # preloaded symbol tables.
Chris@41 9799 # Exclude shared library initialization/finalization symbols.
Chris@41 9800 extract_expsyms_cmds=
Chris@41 9801
Chris@41 9802 case $host_os in
Chris@41 9803 cygwin* | mingw* | pw32* | cegcc*)
Chris@41 9804 # FIXME: the MSVC++ port hasn't been tested in a loooong time
Chris@41 9805 # When not using gcc, we currently assume that we are using
Chris@41 9806 # Microsoft Visual C++.
Chris@41 9807 if test yes != "$GCC"; then
Chris@41 9808 with_gnu_ld=no
Chris@41 9809 fi
Chris@41 9810 ;;
Chris@41 9811 interix*)
Chris@41 9812 # we just hope/assume this is gcc and not c89 (= MSVC++)
Chris@41 9813 with_gnu_ld=yes
Chris@41 9814 ;;
Chris@41 9815 openbsd* | bitrig*)
Chris@41 9816 with_gnu_ld=no
Chris@41 9817 ;;
Chris@41 9818 linux* | k*bsd*-gnu | gnu*)
Chris@41 9819 link_all_deplibs=no
Chris@41 9820 ;;
Chris@41 9821 esac
Chris@41 9822
Chris@41 9823 ld_shlibs=yes
Chris@41 9824
Chris@41 9825 # On some targets, GNU ld is compatible enough with the native linker
Chris@41 9826 # that we're better off using the native interface for both.
Chris@41 9827 lt_use_gnu_ld_interface=no
Chris@41 9828 if test yes = "$with_gnu_ld"; then
Chris@41 9829 case $host_os in
Chris@41 9830 aix*)
Chris@41 9831 # The AIX port of GNU ld has always aspired to compatibility
Chris@41 9832 # with the native linker. However, as the warning in the GNU ld
Chris@41 9833 # block says, versions before 2.19.5* couldn't really create working
Chris@41 9834 # shared libraries, regardless of the interface used.
Chris@41 9835 case `$LD -v 2>&1` in
Chris@41 9836 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
Chris@41 9837 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
Chris@41 9838 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
Chris@41 9839 *)
Chris@41 9840 lt_use_gnu_ld_interface=yes
Chris@41 9841 ;;
Chris@41 9842 esac
Chris@41 9843 ;;
Chris@41 9844 *)
Chris@41 9845 lt_use_gnu_ld_interface=yes
Chris@41 9846 ;;
Chris@41 9847 esac
Chris@41 9848 fi
Chris@41 9849
Chris@41 9850 if test yes = "$lt_use_gnu_ld_interface"; then
Chris@41 9851 # If archive_cmds runs LD, not CC, wlarc should be empty
Chris@41 9852 wlarc='$wl'
Chris@41 9853
Chris@41 9854 # Set some defaults for GNU ld with shared library support. These
Chris@41 9855 # are reset later if shared libraries are not supported. Putting them
Chris@41 9856 # here allows them to be overridden if necessary.
Chris@41 9857 runpath_var=LD_RUN_PATH
Chris@41 9858 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Chris@41 9859 export_dynamic_flag_spec='$wl--export-dynamic'
Chris@41 9860 # ancient GNU ld didn't support --whole-archive et. al.
Chris@41 9861 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
Chris@41 9862 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
Chris@41 9863 else
Chris@41 9864 whole_archive_flag_spec=
Chris@41 9865 fi
Chris@41 9866 supports_anon_versioning=no
Chris@41 9867 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
Chris@41 9868 *GNU\ gold*) supports_anon_versioning=yes ;;
Chris@41 9869 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
Chris@41 9870 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
Chris@41 9871 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
Chris@41 9872 *\ 2.11.*) ;; # other 2.11 versions
Chris@41 9873 *) supports_anon_versioning=yes ;;
Chris@41 9874 esac
Chris@41 9875
Chris@41 9876 # See if GNU ld supports shared libraries.
Chris@41 9877 case $host_os in
Chris@41 9878 aix[3-9]*)
Chris@41 9879 # On AIX/PPC, the GNU linker is very broken
Chris@41 9880 if test ia64 != "$host_cpu"; then
Chris@41 9881 ld_shlibs=no
Chris@41 9882 cat <<_LT_EOF 1>&2
Chris@41 9883
Chris@41 9884 *** Warning: the GNU linker, at least up to release 2.19, is reported
Chris@41 9885 *** to be unable to reliably create shared libraries on AIX.
Chris@41 9886 *** Therefore, libtool is disabling shared libraries support. If you
Chris@41 9887 *** really care for shared libraries, you may want to install binutils
Chris@41 9888 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
Chris@41 9889 *** You will then need to restart the configuration process.
Chris@41 9890
Chris@41 9891 _LT_EOF
Chris@41 9892 fi
Chris@41 9893 ;;
Chris@41 9894
Chris@41 9895 amigaos*)
Chris@41 9896 case $host_cpu in
Chris@41 9897 powerpc)
Chris@41 9898 # see comment about AmigaOS4 .so support
Chris@41 9899 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@41 9900 archive_expsym_cmds=''
Chris@41 9901 ;;
Chris@41 9902 m68k)
Chris@41 9903 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@41 9904 hardcode_libdir_flag_spec='-L$libdir'
Chris@41 9905 hardcode_minus_L=yes
Chris@41 9906 ;;
Chris@41 9907 esac
Chris@41 9908 ;;
Chris@41 9909
Chris@41 9910 beos*)
Chris@41 9911 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@41 9912 allow_undefined_flag=unsupported
Chris@41 9913 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
Chris@41 9914 # support --undefined. This deserves some investigation. FIXME
Chris@41 9915 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@41 9916 else
Chris@41 9917 ld_shlibs=no
Chris@41 9918 fi
Chris@41 9919 ;;
Chris@41 9920
Chris@41 9921 cygwin* | mingw* | pw32* | cegcc*)
Chris@41 9922 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
Chris@41 9923 # as there is no search path for DLLs.
Chris@41 9924 hardcode_libdir_flag_spec='-L$libdir'
Chris@41 9925 export_dynamic_flag_spec='$wl--export-all-symbols'
Chris@41 9926 allow_undefined_flag=unsupported
Chris@41 9927 always_export_symbols=no
Chris@41 9928 enable_shared_with_static_runtimes=yes
Chris@41 9929 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@41 9930 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
Chris@41 9931
Chris@41 9932 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Chris@41 9933 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Chris@41 9934 # If the export-symbols file already is a .def file, use it as
Chris@41 9935 # is; otherwise, prepend EXPORTS...
Chris@41 9936 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
Chris@41 9937 cp $export_symbols $output_objdir/$soname.def;
Chris@41 9938 else
Chris@41 9939 echo EXPORTS > $output_objdir/$soname.def;
Chris@41 9940 cat $export_symbols >> $output_objdir/$soname.def;
Chris@41 9941 fi~
Chris@41 9942 $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@41 9943 else
Chris@41 9944 ld_shlibs=no
Chris@41 9945 fi
Chris@41 9946 ;;
Chris@41 9947
Chris@41 9948 haiku*)
Chris@41 9949 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@41 9950 link_all_deplibs=yes
Chris@41 9951 ;;
Chris@41 9952
Chris@41 9953 os2*)
Chris@41 9954 hardcode_libdir_flag_spec='-L$libdir'
Chris@41 9955 hardcode_minus_L=yes
Chris@41 9956 allow_undefined_flag=unsupported
Chris@41 9957 shrext_cmds=.dll
Chris@41 9958 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
Chris@41 9959 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
Chris@41 9960 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
Chris@41 9961 $ECHO EXPORTS >> $output_objdir/$libname.def~
Chris@41 9962 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
Chris@41 9963 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
Chris@41 9964 emximp -o $lib $output_objdir/$libname.def'
Chris@41 9965 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
Chris@41 9966 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
Chris@41 9967 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
Chris@41 9968 $ECHO EXPORTS >> $output_objdir/$libname.def~
Chris@41 9969 prefix_cmds="$SED"~
Chris@41 9970 if test EXPORTS = "`$SED 1q $export_symbols`"; then
Chris@41 9971 prefix_cmds="$prefix_cmds -e 1d";
Chris@41 9972 fi~
Chris@41 9973 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
Chris@41 9974 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
Chris@41 9975 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
Chris@41 9976 emximp -o $lib $output_objdir/$libname.def'
Chris@41 9977 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
Chris@41 9978 enable_shared_with_static_runtimes=yes
Chris@41 9979 ;;
Chris@41 9980
Chris@41 9981 interix[3-9]*)
Chris@41 9982 hardcode_direct=no
Chris@41 9983 hardcode_shlibpath_var=no
Chris@41 9984 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
Chris@41 9985 export_dynamic_flag_spec='$wl-E'
Chris@41 9986 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
Chris@41 9987 # Instead, shared libraries are loaded at an image base (0x10000000 by
Chris@41 9988 # default) and relocated if they conflict, which is a slow very memory
Chris@41 9989 # consuming and fragmenting process. To avoid this, we pick a random,
Chris@41 9990 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
Chris@41 9991 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Chris@41 9992 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@41 9993 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@41 9994 ;;
Chris@41 9995
Chris@41 9996 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@41 9997 tmp_diet=no
Chris@41 9998 if test linux-dietlibc = "$host_os"; then
Chris@41 9999 case $cc_basename in
Chris@41 10000 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
Chris@41 10001 esac
Chris@41 10002 fi
Chris@41 10003 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
Chris@41 10004 && test no = "$tmp_diet"
Chris@41 10005 then
Chris@41 10006 tmp_addflag=' $pic_flag'
Chris@41 10007 tmp_sharedflag='-shared'
Chris@41 10008 case $cc_basename,$host_cpu in
Chris@41 10009 pgcc*) # Portland Group C compiler
Chris@41 10010 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@41 10011 tmp_addflag=' $pic_flag'
Chris@41 10012 ;;
Chris@41 10013 pgf77* | pgf90* | pgf95* | pgfortran*)
Chris@41 10014 # Portland Group f77 and f90 compilers
Chris@41 10015 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@41 10016 tmp_addflag=' $pic_flag -Mnomain' ;;
Chris@41 10017 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Chris@41 10018 tmp_addflag=' -i_dynamic' ;;
Chris@41 10019 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
Chris@41 10020 tmp_addflag=' -i_dynamic -nofor_main' ;;
Chris@41 10021 ifc* | ifort*) # Intel Fortran compiler
Chris@41 10022 tmp_addflag=' -nofor_main' ;;
Chris@41 10023 lf95*) # Lahey Fortran 8.1
Chris@41 10024 whole_archive_flag_spec=
Chris@41 10025 tmp_sharedflag='--shared' ;;
Chris@41 10026 nagfor*) # NAGFOR 5.3
Chris@41 10027 tmp_sharedflag='-Wl,-shared' ;;
Chris@41 10028 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Chris@41 10029 tmp_sharedflag='-qmkshrobj'
Chris@41 10030 tmp_addflag= ;;
Chris@41 10031 nvcc*) # Cuda Compiler Driver 2.2
Chris@41 10032 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@41 10033 compiler_needs_object=yes
Chris@41 10034 ;;
Chris@41 10035 esac
Chris@41 10036 case `$CC -V 2>&1 | sed 5q` in
Chris@41 10037 *Sun\ C*) # Sun C 5.9
Chris@41 10038 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@41 10039 compiler_needs_object=yes
Chris@41 10040 tmp_sharedflag='-G' ;;
Chris@41 10041 *Sun\ F*) # Sun Fortran 8.3
Chris@41 10042 tmp_sharedflag='-G' ;;
Chris@41 10043 esac
Chris@41 10044 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@41 10045
Chris@41 10046 if test yes = "$supports_anon_versioning"; then
Chris@41 10047 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Chris@41 10048 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@41 10049 echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@41 10050 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
Chris@41 10051 fi
Chris@41 10052
Chris@41 10053 case $cc_basename in
Chris@41 10054 tcc*)
Chris@41 10055 export_dynamic_flag_spec='-rdynamic'
Chris@41 10056 ;;
Chris@41 10057 xlf* | bgf* | bgxlf* | mpixlf*)
Chris@41 10058 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
Chris@41 10059 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
Chris@41 10060 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Chris@41 10061 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Chris@41 10062 if test yes = "$supports_anon_versioning"; then
Chris@41 10063 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Chris@41 10064 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@41 10065 echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@41 10066 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Chris@41 10067 fi
Chris@41 10068 ;;
Chris@41 10069 esac
Chris@41 10070 else
Chris@41 10071 ld_shlibs=no
Chris@41 10072 fi
Chris@41 10073 ;;
Chris@41 10074
Chris@41 10075 netbsd* | netbsdelf*-gnu)
Chris@41 10076 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@41 10077 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
Chris@41 10078 wlarc=
Chris@41 10079 else
Chris@41 10080 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@41 10081 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@41 10082 fi
Chris@41 10083 ;;
Chris@41 10084
Chris@41 10085 solaris*)
Chris@41 10086 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Chris@41 10087 ld_shlibs=no
Chris@41 10088 cat <<_LT_EOF 1>&2
Chris@41 10089
Chris@41 10090 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
Chris@41 10091 *** create shared libraries on Solaris systems. Therefore, libtool
Chris@41 10092 *** is disabling shared libraries support. We urge you to upgrade GNU
Chris@41 10093 *** binutils to release 2.9.1 or newer. Another option is to modify
Chris@41 10094 *** your PATH or compiler configuration so that the native linker is
Chris@41 10095 *** used, and then restart.
Chris@41 10096
Chris@41 10097 _LT_EOF
Chris@41 10098 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@41 10099 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@41 10100 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@41 10101 else
Chris@41 10102 ld_shlibs=no
Chris@41 10103 fi
Chris@41 10104 ;;
Chris@41 10105
Chris@41 10106 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
Chris@41 10107 case `$LD -v 2>&1` in
Chris@41 10108 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
Chris@41 10109 ld_shlibs=no
Chris@41 10110 cat <<_LT_EOF 1>&2
Chris@41 10111
Chris@41 10112 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
Chris@41 10113 *** reliably create shared libraries on SCO systems. Therefore, libtool
Chris@41 10114 *** is disabling shared libraries support. We urge you to upgrade GNU
Chris@41 10115 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
Chris@41 10116 *** your PATH or compiler configuration so that the native linker is
Chris@41 10117 *** used, and then restart.
Chris@41 10118
Chris@41 10119 _LT_EOF
Chris@41 10120 ;;
Chris@41 10121 *)
Chris@41 10122 # For security reasons, it is highly recommended that you always
Chris@41 10123 # use absolute paths for naming shared libraries, and exclude the
Chris@41 10124 # DT_RUNPATH tag from executables and libraries. But doing so
Chris@41 10125 # requires that you compile everything twice, which is a pain.
Chris@41 10126 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@41 10127 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Chris@41 10128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@41 10129 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Chris@41 10130 else
Chris@41 10131 ld_shlibs=no
Chris@41 10132 fi
Chris@41 10133 ;;
Chris@41 10134 esac
Chris@41 10135 ;;
Chris@41 10136
Chris@41 10137 sunos4*)
Chris@41 10138 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@41 10139 wlarc=
Chris@41 10140 hardcode_direct=yes
Chris@41 10141 hardcode_shlibpath_var=no
Chris@41 10142 ;;
Chris@41 10143
Chris@41 10144 *)
Chris@41 10145 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@41 10146 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@41 10147 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@41 10148 else
Chris@41 10149 ld_shlibs=no
Chris@41 10150 fi
Chris@41 10151 ;;
Chris@41 10152 esac
Chris@41 10153
Chris@41 10154 if test no = "$ld_shlibs"; then
Chris@41 10155 runpath_var=
Chris@41 10156 hardcode_libdir_flag_spec=
Chris@41 10157 export_dynamic_flag_spec=
Chris@41 10158 whole_archive_flag_spec=
Chris@41 10159 fi
Chris@41 10160 else
Chris@41 10161 # PORTME fill in a description of your system's linker (not GNU ld)
Chris@41 10162 case $host_os in
Chris@41 10163 aix3*)
Chris@41 10164 allow_undefined_flag=unsupported
Chris@41 10165 always_export_symbols=yes
Chris@41 10166 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@41 10167 # Note: this linker hardcodes the directories in LIBPATH if there
Chris@41 10168 # are no directories specified by -L.
Chris@41 10169 hardcode_minus_L=yes
Chris@41 10170 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
Chris@41 10171 # Neither direct hardcoding nor static linking is supported with a
Chris@41 10172 # broken collect2.
Chris@41 10173 hardcode_direct=unsupported
Chris@41 10174 fi
Chris@41 10175 ;;
Chris@41 10176
Chris@41 10177 aix[4-9]*)
Chris@41 10178 if test ia64 = "$host_cpu"; then
Chris@41 10179 # On IA64, the linker does run time linking by default, so we don't
Chris@41 10180 # have to do anything special.
Chris@41 10181 aix_use_runtimelinking=no
Chris@41 10182 exp_sym_flag='-Bexport'
Chris@41 10183 no_entry_flag=
Chris@41 10184 else
Chris@41 10185 # If we're using GNU nm, then we don't want the "-C" option.
Chris@41 10186 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
Chris@41 10187 # Without the "-l" option, or with the "-B" option, AIX nm treats
Chris@41 10188 # weak defined symbols like other global defined symbols, whereas
Chris@41 10189 # GNU nm marks them as "W".
Chris@41 10190 # While the 'weak' keyword is ignored in the Export File, we need
Chris@41 10191 # it in the Import File for the 'aix-soname' feature, so we have
Chris@41 10192 # to replace the "-B" option with "-P" for AIX nm.
Chris@41 10193 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Chris@41 10194 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
Chris@41 10195 else
Chris@41 10196 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
Chris@41 10197 fi
Chris@41 10198 aix_use_runtimelinking=no
Chris@41 10199
Chris@41 10200 # Test if we are trying to use run time linking or normal
Chris@41 10201 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Chris@41 10202 # have runtime linking enabled, and use it for executables.
Chris@41 10203 # For shared libraries, we enable/disable runtime linking
Chris@41 10204 # depending on the kind of the shared library created -
Chris@41 10205 # when "with_aix_soname,aix_use_runtimelinking" is:
Chris@41 10206 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
Chris@41 10207 # "aix,yes" lib.so shared, rtl:yes, for executables
Chris@41 10208 # lib.a static archive
Chris@41 10209 # "both,no" lib.so.V(shr.o) shared, rtl:yes
Chris@41 10210 # lib.a(lib.so.V) shared, rtl:no, for executables
Chris@41 10211 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
Chris@41 10212 # lib.a(lib.so.V) shared, rtl:no
Chris@41 10213 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
Chris@41 10214 # lib.a static archive
Chris@41 10215 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Chris@41 10216 for ld_flag in $LDFLAGS; do
Chris@41 10217 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
Chris@41 10218 aix_use_runtimelinking=yes
Chris@41 10219 break
Chris@41 10220 fi
Chris@41 10221 done
Chris@41 10222 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
Chris@41 10223 # With aix-soname=svr4, we create the lib.so.V shared archives only,
Chris@41 10224 # so we don't have lib.a shared libs to link our executables.
Chris@41 10225 # We have to force runtime linking in this case.
Chris@41 10226 aix_use_runtimelinking=yes
Chris@41 10227 LDFLAGS="$LDFLAGS -Wl,-brtl"
Chris@41 10228 fi
Chris@41 10229 ;;
Chris@41 10230 esac
Chris@41 10231
Chris@41 10232 exp_sym_flag='-bexport'
Chris@41 10233 no_entry_flag='-bnoentry'
Chris@41 10234 fi
Chris@41 10235
Chris@41 10236 # When large executables or shared objects are built, AIX ld can
Chris@41 10237 # have problems creating the table of contents. If linking a library
Chris@41 10238 # or program results in "error TOC overflow" add -mminimal-toc to
Chris@41 10239 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
Chris@41 10240 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
Chris@41 10241
Chris@41 10242 archive_cmds=''
Chris@41 10243 hardcode_direct=yes
Chris@41 10244 hardcode_direct_absolute=yes
Chris@41 10245 hardcode_libdir_separator=':'
Chris@41 10246 link_all_deplibs=yes
Chris@41 10247 file_list_spec='$wl-f,'
Chris@41 10248 case $with_aix_soname,$aix_use_runtimelinking in
Chris@41 10249 aix,*) ;; # traditional, no import file
Chris@41 10250 svr4,* | *,yes) # use import file
Chris@41 10251 # The Import File defines what to hardcode.
Chris@41 10252 hardcode_direct=no
Chris@41 10253 hardcode_direct_absolute=no
Chris@41 10254 ;;
Chris@41 10255 esac
Chris@41 10256
Chris@41 10257 if test yes = "$GCC"; then
Chris@41 10258 case $host_os in aix4.[012]|aix4.[012].*)
Chris@41 10259 # We only want to do this on AIX 4.2 and lower, the check
Chris@41 10260 # below for broken collect2 doesn't work under 4.3+
Chris@41 10261 collect2name=`$CC -print-prog-name=collect2`
Chris@41 10262 if test -f "$collect2name" &&
Chris@41 10263 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Chris@41 10264 then
Chris@41 10265 # We have reworked collect2
Chris@41 10266 :
Chris@41 10267 else
Chris@41 10268 # We have old collect2
Chris@41 10269 hardcode_direct=unsupported
Chris@41 10270 # It fails to find uninstalled libraries when the uninstalled
Chris@41 10271 # path is not listed in the libpath. Setting hardcode_minus_L
Chris@41 10272 # to unsupported forces relinking
Chris@41 10273 hardcode_minus_L=yes
Chris@41 10274 hardcode_libdir_flag_spec='-L$libdir'
Chris@41 10275 hardcode_libdir_separator=
Chris@41 10276 fi
Chris@41 10277 ;;
Chris@41 10278 esac
Chris@41 10279 shared_flag='-shared'
Chris@41 10280 if test yes = "$aix_use_runtimelinking"; then
Chris@41 10281 shared_flag="$shared_flag "'$wl-G'
Chris@41 10282 fi
Chris@41 10283 # Need to ensure runtime linking is disabled for the traditional
Chris@41 10284 # shared library, or the linker may eventually find shared libraries
Chris@41 10285 # /with/ Import File - we do not want to mix them.
Chris@41 10286 shared_flag_aix='-shared'
Chris@41 10287 shared_flag_svr4='-shared $wl-G'
Chris@41 10288 else
Chris@41 10289 # not using gcc
Chris@41 10290 if test ia64 = "$host_cpu"; then
Chris@41 10291 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
Chris@41 10292 # chokes on -Wl,-G. The following line is correct:
Chris@41 10293 shared_flag='-G'
Chris@41 10294 else
Chris@41 10295 if test yes = "$aix_use_runtimelinking"; then
Chris@41 10296 shared_flag='$wl-G'
Chris@41 10297 else
Chris@41 10298 shared_flag='$wl-bM:SRE'
Chris@41 10299 fi
Chris@41 10300 shared_flag_aix='$wl-bM:SRE'
Chris@41 10301 shared_flag_svr4='$wl-G'
Chris@41 10302 fi
Chris@41 10303 fi
Chris@41 10304
Chris@41 10305 export_dynamic_flag_spec='$wl-bexpall'
Chris@41 10306 # It seems that -bexpall does not export symbols beginning with
Chris@41 10307 # underscore (_), so it is better to generate a list of symbols to export.
Chris@41 10308 always_export_symbols=yes
Chris@41 10309 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
Chris@41 10310 # Warning - without using the other runtime loading flags (-brtl),
Chris@41 10311 # -berok will link without error, but may produce a broken library.
Chris@41 10312 allow_undefined_flag='-berok'
Chris@41 10313 # Determine the default libpath from the value encoded in an
Chris@41 10314 # empty executable.
Chris@41 10315 if test set = "${lt_cv_aix_libpath+set}"; then
Chris@41 10316 aix_libpath=$lt_cv_aix_libpath
Chris@41 10317 else
Chris@41 10318 if ${lt_cv_aix_libpath_+:} false; then :
Chris@41 10319 $as_echo_n "(cached) " >&6
Chris@41 10320 else
Chris@41 10321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 10322 /* end confdefs.h. */
Chris@41 10323
Chris@41 10324 int
Chris@41 10325 main ()
Chris@41 10326 {
Chris@41 10327
Chris@41 10328 ;
Chris@41 10329 return 0;
Chris@41 10330 }
Chris@41 10331 _ACEOF
Chris@41 10332 if ac_fn_c_try_link "$LINENO"; then :
Chris@41 10333
Chris@41 10334 lt_aix_libpath_sed='
Chris@41 10335 /Import File Strings/,/^$/ {
Chris@41 10336 /^0/ {
Chris@41 10337 s/^0 *\([^ ]*\) *$/\1/
Chris@41 10338 p
Chris@41 10339 }
Chris@41 10340 }'
Chris@41 10341 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@41 10342 # Check for a 64-bit object if we didn't find anything.
Chris@41 10343 if test -z "$lt_cv_aix_libpath_"; then
Chris@41 10344 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@41 10345 fi
Chris@41 10346 fi
Chris@41 10347 rm -f core conftest.err conftest.$ac_objext \
Chris@41 10348 conftest$ac_exeext conftest.$ac_ext
Chris@41 10349 if test -z "$lt_cv_aix_libpath_"; then
Chris@41 10350 lt_cv_aix_libpath_=/usr/lib:/lib
Chris@41 10351 fi
Chris@41 10352
Chris@41 10353 fi
Chris@41 10354
Chris@41 10355 aix_libpath=$lt_cv_aix_libpath_
Chris@41 10356 fi
Chris@41 10357
Chris@41 10358 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
Chris@41 10359 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
Chris@41 10360 else
Chris@41 10361 if test ia64 = "$host_cpu"; then
Chris@41 10362 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
Chris@41 10363 allow_undefined_flag="-z nodefs"
Chris@41 10364 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@41 10365 else
Chris@41 10366 # Determine the default libpath from the value encoded in an
Chris@41 10367 # empty executable.
Chris@41 10368 if test set = "${lt_cv_aix_libpath+set}"; then
Chris@41 10369 aix_libpath=$lt_cv_aix_libpath
Chris@41 10370 else
Chris@41 10371 if ${lt_cv_aix_libpath_+:} false; then :
Chris@41 10372 $as_echo_n "(cached) " >&6
Chris@41 10373 else
Chris@41 10374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 10375 /* end confdefs.h. */
Chris@41 10376
Chris@41 10377 int
Chris@41 10378 main ()
Chris@41 10379 {
Chris@41 10380
Chris@41 10381 ;
Chris@41 10382 return 0;
Chris@41 10383 }
Chris@41 10384 _ACEOF
Chris@41 10385 if ac_fn_c_try_link "$LINENO"; then :
Chris@41 10386
Chris@41 10387 lt_aix_libpath_sed='
Chris@41 10388 /Import File Strings/,/^$/ {
Chris@41 10389 /^0/ {
Chris@41 10390 s/^0 *\([^ ]*\) *$/\1/
Chris@41 10391 p
Chris@41 10392 }
Chris@41 10393 }'
Chris@41 10394 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@41 10395 # Check for a 64-bit object if we didn't find anything.
Chris@41 10396 if test -z "$lt_cv_aix_libpath_"; then
Chris@41 10397 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@41 10398 fi
Chris@41 10399 fi
Chris@41 10400 rm -f core conftest.err conftest.$ac_objext \
Chris@41 10401 conftest$ac_exeext conftest.$ac_ext
Chris@41 10402 if test -z "$lt_cv_aix_libpath_"; then
Chris@41 10403 lt_cv_aix_libpath_=/usr/lib:/lib
Chris@41 10404 fi
Chris@41 10405
Chris@41 10406 fi
Chris@41 10407
Chris@41 10408 aix_libpath=$lt_cv_aix_libpath_
Chris@41 10409 fi
Chris@41 10410
Chris@41 10411 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
Chris@41 10412 # Warning - without using the other run time loading flags,
Chris@41 10413 # -berok will link without error, but may produce a broken library.
Chris@41 10414 no_undefined_flag=' $wl-bernotok'
Chris@41 10415 allow_undefined_flag=' $wl-berok'
Chris@41 10416 if test yes = "$with_gnu_ld"; then
Chris@41 10417 # We only use this code for GNU lds that support --whole-archive.
Chris@41 10418 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
Chris@41 10419 else
Chris@41 10420 # Exported symbols can be pulled into shared objects from archives
Chris@41 10421 whole_archive_flag_spec='$convenience'
Chris@41 10422 fi
Chris@41 10423 archive_cmds_need_lc=yes
Chris@41 10424 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
Chris@41 10425 # -brtl affects multiple linker settings, -berok does not and is overridden later
Chris@41 10426 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
Chris@41 10427 if test svr4 != "$with_aix_soname"; then
Chris@41 10428 # This is similar to how AIX traditionally builds its shared libraries.
Chris@41 10429 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
Chris@41 10430 fi
Chris@41 10431 if test aix != "$with_aix_soname"; then
Chris@41 10432 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
Chris@41 10433 else
Chris@41 10434 # used by -dlpreopen to get the symbols
Chris@41 10435 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
Chris@41 10436 fi
Chris@41 10437 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
Chris@41 10438 fi
Chris@41 10439 fi
Chris@41 10440 ;;
Chris@41 10441
Chris@41 10442 amigaos*)
Chris@41 10443 case $host_cpu in
Chris@41 10444 powerpc)
Chris@41 10445 # see comment about AmigaOS4 .so support
Chris@41 10446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@41 10447 archive_expsym_cmds=''
Chris@41 10448 ;;
Chris@41 10449 m68k)
Chris@41 10450 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@41 10451 hardcode_libdir_flag_spec='-L$libdir'
Chris@41 10452 hardcode_minus_L=yes
Chris@41 10453 ;;
Chris@41 10454 esac
Chris@41 10455 ;;
Chris@41 10456
Chris@41 10457 bsdi[45]*)
Chris@41 10458 export_dynamic_flag_spec=-rdynamic
Chris@41 10459 ;;
Chris@41 10460
Chris@41 10461 cygwin* | mingw* | pw32* | cegcc*)
Chris@41 10462 # When not using gcc, we currently assume that we are using
Chris@41 10463 # Microsoft Visual C++.
Chris@41 10464 # hardcode_libdir_flag_spec is actually meaningless, as there is
Chris@41 10465 # no search path for DLLs.
Chris@41 10466 case $cc_basename in
Chris@41 10467 cl*)
Chris@41 10468 # Native MSVC
Chris@41 10469 hardcode_libdir_flag_spec=' '
Chris@41 10470 allow_undefined_flag=unsupported
Chris@41 10471 always_export_symbols=yes
Chris@41 10472 file_list_spec='@'
Chris@41 10473 # Tell ltmain to make .lib files, not .a files.
Chris@41 10474 libext=lib
Chris@41 10475 # Tell ltmain to make .dll files, not .so files.
Chris@41 10476 shrext_cmds=.dll
Chris@41 10477 # FIXME: Setting linknames here is a bad hack.
Chris@41 10478 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
Chris@41 10479 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
Chris@41 10480 cp "$export_symbols" "$output_objdir/$soname.def";
Chris@41 10481 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
Chris@41 10482 else
Chris@41 10483 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
Chris@41 10484 fi~
Chris@41 10485 $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@41 10486 linknames='
Chris@41 10487 # The linker will not automatically build a static lib if we build a DLL.
Chris@41 10488 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
Chris@41 10489 enable_shared_with_static_runtimes=yes
Chris@41 10490 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
Chris@41 10491 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
Chris@41 10492 # Don't use ranlib
Chris@41 10493 old_postinstall_cmds='chmod 644 $oldlib'
Chris@41 10494 postlink_cmds='lt_outputfile="@OUTPUT@"~
Chris@41 10495 lt_tool_outputfile="@TOOL_OUTPUT@"~
Chris@41 10496 case $lt_outputfile in
Chris@41 10497 *.exe|*.EXE) ;;
Chris@41 10498 *)
Chris@41 10499 lt_outputfile=$lt_outputfile.exe
Chris@41 10500 lt_tool_outputfile=$lt_tool_outputfile.exe
Chris@41 10501 ;;
Chris@41 10502 esac~
Chris@41 10503 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
Chris@41 10504 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
Chris@41 10505 $RM "$lt_outputfile.manifest";
Chris@41 10506 fi'
Chris@41 10507 ;;
Chris@41 10508 *)
Chris@41 10509 # Assume MSVC wrapper
Chris@41 10510 hardcode_libdir_flag_spec=' '
Chris@41 10511 allow_undefined_flag=unsupported
Chris@41 10512 # Tell ltmain to make .lib files, not .a files.
Chris@41 10513 libext=lib
Chris@41 10514 # Tell ltmain to make .dll files, not .so files.
Chris@41 10515 shrext_cmds=.dll
Chris@41 10516 # FIXME: Setting linknames here is a bad hack.
Chris@41 10517 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
Chris@41 10518 # The linker will automatically build a .lib file if we build a DLL.
Chris@41 10519 old_archive_from_new_cmds='true'
Chris@41 10520 # FIXME: Should let the user specify the lib program.
Chris@41 10521 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
Chris@41 10522 enable_shared_with_static_runtimes=yes
Chris@41 10523 ;;
Chris@41 10524 esac
Chris@41 10525 ;;
Chris@41 10526
Chris@41 10527 darwin* | rhapsody*)
Chris@41 10528
Chris@41 10529
Chris@41 10530 archive_cmds_need_lc=no
Chris@41 10531 hardcode_direct=no
Chris@41 10532 hardcode_automatic=yes
Chris@41 10533 hardcode_shlibpath_var=unsupported
Chris@41 10534 if test yes = "$lt_cv_ld_force_load"; then
Chris@41 10535 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@41 10536
Chris@41 10537 else
Chris@41 10538 whole_archive_flag_spec=''
Chris@41 10539 fi
Chris@41 10540 link_all_deplibs=yes
Chris@41 10541 allow_undefined_flag=$_lt_dar_allow_undefined
Chris@41 10542 case $cc_basename in
Chris@41 10543 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
Chris@41 10544 *) _lt_dar_can_shared=$GCC ;;
Chris@41 10545 esac
Chris@41 10546 if test yes = "$_lt_dar_can_shared"; then
Chris@41 10547 output_verbose_link_cmd=func_echo_all
Chris@41 10548 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@41 10549 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
Chris@41 10550 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@41 10551 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@41 10552
Chris@41 10553 else
Chris@41 10554 ld_shlibs=no
Chris@41 10555 fi
Chris@41 10556
Chris@41 10557 ;;
Chris@41 10558
Chris@41 10559 dgux*)
Chris@41 10560 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@41 10561 hardcode_libdir_flag_spec='-L$libdir'
Chris@41 10562 hardcode_shlibpath_var=no
Chris@41 10563 ;;
Chris@41 10564
Chris@41 10565 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
Chris@41 10566 # support. Future versions do this automatically, but an explicit c++rt0.o
Chris@41 10567 # does not break anything, and helps significantly (at the cost of a little
Chris@41 10568 # extra space).
Chris@41 10569 freebsd2.2*)
Chris@41 10570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
Chris@41 10571 hardcode_libdir_flag_spec='-R$libdir'
Chris@41 10572 hardcode_direct=yes
Chris@41 10573 hardcode_shlibpath_var=no
Chris@41 10574 ;;
Chris@41 10575
Chris@41 10576 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Chris@41 10577 freebsd2.*)
Chris@41 10578 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@41 10579 hardcode_direct=yes
Chris@41 10580 hardcode_minus_L=yes
Chris@41 10581 hardcode_shlibpath_var=no
Chris@41 10582 ;;
Chris@41 10583
Chris@41 10584 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Chris@41 10585 freebsd* | dragonfly*)
Chris@41 10586 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@41 10587 hardcode_libdir_flag_spec='-R$libdir'
Chris@41 10588 hardcode_direct=yes
Chris@41 10589 hardcode_shlibpath_var=no
Chris@41 10590 ;;
Chris@41 10591
Chris@41 10592 hpux9*)
Chris@41 10593 if test yes = "$GCC"; then
Chris@41 10594 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
Chris@41 10595 else
Chris@41 10596 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
Chris@41 10597 fi
Chris@41 10598 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Chris@41 10599 hardcode_libdir_separator=:
Chris@41 10600 hardcode_direct=yes
Chris@41 10601
Chris@41 10602 # hardcode_minus_L: Not really in the search PATH,
Chris@41 10603 # but as the default location of the library.
Chris@41 10604 hardcode_minus_L=yes
Chris@41 10605 export_dynamic_flag_spec='$wl-E'
Chris@41 10606 ;;
Chris@41 10607
Chris@41 10608 hpux10*)
Chris@41 10609 if test yes,no = "$GCC,$with_gnu_ld"; then
Chris@41 10610 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@41 10611 else
Chris@41 10612 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
Chris@41 10613 fi
Chris@41 10614 if test no = "$with_gnu_ld"; then
Chris@41 10615 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Chris@41 10616 hardcode_libdir_separator=:
Chris@41 10617 hardcode_direct=yes
Chris@41 10618 hardcode_direct_absolute=yes
Chris@41 10619 export_dynamic_flag_spec='$wl-E'
Chris@41 10620 # hardcode_minus_L: Not really in the search PATH,
Chris@41 10621 # but as the default location of the library.
Chris@41 10622 hardcode_minus_L=yes
Chris@41 10623 fi
Chris@41 10624 ;;
Chris@41 10625
Chris@41 10626 hpux11*)
Chris@41 10627 if test yes,no = "$GCC,$with_gnu_ld"; then
Chris@41 10628 case $host_cpu in
Chris@41 10629 hppa*64*)
Chris@41 10630 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@41 10631 ;;
Chris@41 10632 ia64*)
Chris@41 10633 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Chris@41 10634 ;;
Chris@41 10635 *)
Chris@41 10636 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@41 10637 ;;
Chris@41 10638 esac
Chris@41 10639 else
Chris@41 10640 case $host_cpu in
Chris@41 10641 hppa*64*)
Chris@41 10642 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@41 10643 ;;
Chris@41 10644 ia64*)
Chris@41 10645 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Chris@41 10646 ;;
Chris@41 10647 *)
Chris@41 10648
Chris@41 10649 # Older versions of the 11.00 compiler do not understand -b yet
Chris@41 10650 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
Chris@41 10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
Chris@41 10652 $as_echo_n "checking if $CC understands -b... " >&6; }
Chris@41 10653 if ${lt_cv_prog_compiler__b+:} false; then :
Chris@41 10654 $as_echo_n "(cached) " >&6
Chris@41 10655 else
Chris@41 10656 lt_cv_prog_compiler__b=no
Chris@41 10657 save_LDFLAGS=$LDFLAGS
Chris@41 10658 LDFLAGS="$LDFLAGS -b"
Chris@41 10659 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Chris@41 10660 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Chris@41 10661 # The linker can only warn and ignore the option if not recognized
Chris@41 10662 # So say no if there are warnings
Chris@41 10663 if test -s conftest.err; then
Chris@41 10664 # Append any errors to the config.log.
Chris@41 10665 cat conftest.err 1>&5
Chris@41 10666 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Chris@41 10667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@41 10668 if diff conftest.exp conftest.er2 >/dev/null; then
Chris@41 10669 lt_cv_prog_compiler__b=yes
Chris@41 10670 fi
Chris@41 10671 else
Chris@41 10672 lt_cv_prog_compiler__b=yes
Chris@41 10673 fi
Chris@41 10674 fi
Chris@41 10675 $RM -r conftest*
Chris@41 10676 LDFLAGS=$save_LDFLAGS
Chris@41 10677
Chris@41 10678 fi
Chris@41 10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
Chris@41 10680 $as_echo "$lt_cv_prog_compiler__b" >&6; }
Chris@41 10681
Chris@41 10682 if test yes = "$lt_cv_prog_compiler__b"; then
Chris@41 10683 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@41 10684 else
Chris@41 10685 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
Chris@41 10686 fi
Chris@41 10687
Chris@41 10688 ;;
Chris@41 10689 esac
Chris@41 10690 fi
Chris@41 10691 if test no = "$with_gnu_ld"; then
Chris@41 10692 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Chris@41 10693 hardcode_libdir_separator=:
Chris@41 10694
Chris@41 10695 case $host_cpu in
Chris@41 10696 hppa*64*|ia64*)
Chris@41 10697 hardcode_direct=no
Chris@41 10698 hardcode_shlibpath_var=no
Chris@41 10699 ;;
Chris@41 10700 *)
Chris@41 10701 hardcode_direct=yes
Chris@41 10702 hardcode_direct_absolute=yes
Chris@41 10703 export_dynamic_flag_spec='$wl-E'
Chris@41 10704
Chris@41 10705 # hardcode_minus_L: Not really in the search PATH,
Chris@41 10706 # but as the default location of the library.
Chris@41 10707 hardcode_minus_L=yes
Chris@41 10708 ;;
Chris@41 10709 esac
Chris@41 10710 fi
Chris@41 10711 ;;
Chris@41 10712
Chris@41 10713 irix5* | irix6* | nonstopux*)
Chris@41 10714 if test yes = "$GCC"; then
Chris@41 10715 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@41 10716 # Try to use the -exported_symbol ld option, if it does not
Chris@41 10717 # work, assume that -exports_file does not work either and
Chris@41 10718 # implicitly export all symbols.
Chris@41 10719 # This should be the same for all languages, so no per-tag cache variable.
Chris@41 10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
Chris@41 10721 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
Chris@41 10722 if ${lt_cv_irix_exported_symbol+:} false; then :
Chris@41 10723 $as_echo_n "(cached) " >&6
Chris@41 10724 else
Chris@41 10725 save_LDFLAGS=$LDFLAGS
Chris@41 10726 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
Chris@41 10727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 10728 /* end confdefs.h. */
Chris@41 10729 int foo (void) { return 0; }
Chris@41 10730 _ACEOF
Chris@41 10731 if ac_fn_c_try_link "$LINENO"; then :
Chris@41 10732 lt_cv_irix_exported_symbol=yes
Chris@41 10733 else
Chris@41 10734 lt_cv_irix_exported_symbol=no
Chris@41 10735 fi
Chris@41 10736 rm -f core conftest.err conftest.$ac_objext \
Chris@41 10737 conftest$ac_exeext conftest.$ac_ext
Chris@41 10738 LDFLAGS=$save_LDFLAGS
Chris@41 10739 fi
Chris@41 10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
Chris@41 10741 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
Chris@41 10742 if test yes = "$lt_cv_irix_exported_symbol"; then
Chris@41 10743 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@41 10744 fi
Chris@41 10745 link_all_deplibs=no
Chris@41 10746 else
Chris@41 10747 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@41 10748 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@41 10749 fi
Chris@41 10750 archive_cmds_need_lc='no'
Chris@41 10751 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Chris@41 10752 hardcode_libdir_separator=:
Chris@41 10753 inherit_rpath=yes
Chris@41 10754 link_all_deplibs=yes
Chris@41 10755 ;;
Chris@41 10756
Chris@41 10757 linux*)
Chris@41 10758 case $cc_basename in
Chris@41 10759 tcc*)
Chris@41 10760 # Fabrice Bellard et al's Tiny C Compiler
Chris@41 10761 ld_shlibs=yes
Chris@41 10762 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@41 10763 ;;
Chris@41 10764 esac
Chris@41 10765 ;;
Chris@41 10766
Chris@41 10767 netbsd* | netbsdelf*-gnu)
Chris@41 10768 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@41 10769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
Chris@41 10770 else
Chris@41 10771 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
Chris@41 10772 fi
Chris@41 10773 hardcode_libdir_flag_spec='-R$libdir'
Chris@41 10774 hardcode_direct=yes
Chris@41 10775 hardcode_shlibpath_var=no
Chris@41 10776 ;;
Chris@41 10777
Chris@41 10778 newsos6)
Chris@41 10779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@41 10780 hardcode_direct=yes
Chris@41 10781 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Chris@41 10782 hardcode_libdir_separator=:
Chris@41 10783 hardcode_shlibpath_var=no
Chris@41 10784 ;;
Chris@41 10785
Chris@41 10786 *nto* | *qnx*)
Chris@41 10787 ;;
Chris@41 10788
Chris@41 10789 openbsd* | bitrig*)
Chris@41 10790 if test -f /usr/libexec/ld.so; then
Chris@41 10791 hardcode_direct=yes
Chris@41 10792 hardcode_shlibpath_var=no
Chris@41 10793 hardcode_direct_absolute=yes
Chris@41 10794 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Chris@41 10795 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@41 10796 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
Chris@41 10797 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
Chris@41 10798 export_dynamic_flag_spec='$wl-E'
Chris@41 10799 else
Chris@41 10800 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@41 10801 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
Chris@41 10802 fi
Chris@41 10803 else
Chris@41 10804 ld_shlibs=no
Chris@41 10805 fi
Chris@41 10806 ;;
Chris@41 10807
Chris@41 10808 os2*)
Chris@41 10809 hardcode_libdir_flag_spec='-L$libdir'
Chris@41 10810 hardcode_minus_L=yes
Chris@41 10811 allow_undefined_flag=unsupported
Chris@41 10812 shrext_cmds=.dll
Chris@41 10813 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
Chris@41 10814 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
Chris@41 10815 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
Chris@41 10816 $ECHO EXPORTS >> $output_objdir/$libname.def~
Chris@41 10817 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
Chris@41 10818 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
Chris@41 10819 emximp -o $lib $output_objdir/$libname.def'
Chris@41 10820 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
Chris@41 10821 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
Chris@41 10822 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
Chris@41 10823 $ECHO EXPORTS >> $output_objdir/$libname.def~
Chris@41 10824 prefix_cmds="$SED"~
Chris@41 10825 if test EXPORTS = "`$SED 1q $export_symbols`"; then
Chris@41 10826 prefix_cmds="$prefix_cmds -e 1d";
Chris@41 10827 fi~
Chris@41 10828 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
Chris@41 10829 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
Chris@41 10830 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
Chris@41 10831 emximp -o $lib $output_objdir/$libname.def'
Chris@41 10832 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
Chris@41 10833 enable_shared_with_static_runtimes=yes
Chris@41 10834 ;;
Chris@41 10835
Chris@41 10836 osf3*)
Chris@41 10837 if test yes = "$GCC"; then
Chris@41 10838 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
Chris@41 10839 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@41 10840 else
Chris@41 10841 allow_undefined_flag=' -expect_unresolved \*'
Chris@41 10842 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@41 10843 fi
Chris@41 10844 archive_cmds_need_lc='no'
Chris@41 10845 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Chris@41 10846 hardcode_libdir_separator=:
Chris@41 10847 ;;
Chris@41 10848
Chris@41 10849 osf4* | osf5*) # as osf3* with the addition of -msym flag
Chris@41 10850 if test yes = "$GCC"; then
Chris@41 10851 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
Chris@41 10852 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@41 10853 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Chris@41 10854 else
Chris@41 10855 allow_undefined_flag=' -expect_unresolved \*'
Chris@41 10856 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@41 10857 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@41 10858 $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@41 10859
Chris@41 10860 # Both c and cxx compiler support -rpath directly
Chris@41 10861 hardcode_libdir_flag_spec='-rpath $libdir'
Chris@41 10862 fi
Chris@41 10863 archive_cmds_need_lc='no'
Chris@41 10864 hardcode_libdir_separator=:
Chris@41 10865 ;;
Chris@41 10866
Chris@41 10867 solaris*)
Chris@41 10868 no_undefined_flag=' -z defs'
Chris@41 10869 if test yes = "$GCC"; then
Chris@41 10870 wlarc='$wl'
Chris@41 10871 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@41 10872 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@41 10873 $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@41 10874 else
Chris@41 10875 case `$CC -V 2>&1` in
Chris@41 10876 *"Compilers 5.0"*)
Chris@41 10877 wlarc=''
Chris@41 10878 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@41 10879 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@41 10880 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
Chris@41 10881 ;;
Chris@41 10882 *)
Chris@41 10883 wlarc='$wl'
Chris@41 10884 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@41 10885 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@41 10886 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Chris@41 10887 ;;
Chris@41 10888 esac
Chris@41 10889 fi
Chris@41 10890 hardcode_libdir_flag_spec='-R$libdir'
Chris@41 10891 hardcode_shlibpath_var=no
Chris@41 10892 case $host_os in
Chris@41 10893 solaris2.[0-5] | solaris2.[0-5].*) ;;
Chris@41 10894 *)
Chris@41 10895 # The compiler driver will combine and reorder linker options,
Chris@41 10896 # but understands '-z linker_flag'. GCC discards it without '$wl',
Chris@41 10897 # but is careful enough not to reorder.
Chris@41 10898 # Supported since Solaris 2.6 (maybe 2.5.1?)
Chris@41 10899 if test yes = "$GCC"; then
Chris@41 10900 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
Chris@41 10901 else
Chris@41 10902 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
Chris@41 10903 fi
Chris@41 10904 ;;
Chris@41 10905 esac
Chris@41 10906 link_all_deplibs=yes
Chris@41 10907 ;;
Chris@41 10908
Chris@41 10909 sunos4*)
Chris@41 10910 if test sequent = "$host_vendor"; then
Chris@41 10911 # Use $CC to link under sequent, because it throws in some extra .o
Chris@41 10912 # files that make .init and .fini sections work.
Chris@41 10913 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@41 10914 else
Chris@41 10915 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
Chris@41 10916 fi
Chris@41 10917 hardcode_libdir_flag_spec='-L$libdir'
Chris@41 10918 hardcode_direct=yes
Chris@41 10919 hardcode_minus_L=yes
Chris@41 10920 hardcode_shlibpath_var=no
Chris@41 10921 ;;
Chris@41 10922
Chris@41 10923 sysv4)
Chris@41 10924 case $host_vendor in
Chris@41 10925 sni)
Chris@41 10926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@41 10927 hardcode_direct=yes # is this really true???
Chris@41 10928 ;;
Chris@41 10929 siemens)
Chris@41 10930 ## LD is ld it makes a PLAMLIB
Chris@41 10931 ## CC just makes a GrossModule.
Chris@41 10932 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
Chris@41 10933 reload_cmds='$CC -r -o $output$reload_objs'
Chris@41 10934 hardcode_direct=no
Chris@41 10935 ;;
Chris@41 10936 motorola)
Chris@41 10937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@41 10938 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
Chris@41 10939 ;;
Chris@41 10940 esac
Chris@41 10941 runpath_var='LD_RUN_PATH'
Chris@41 10942 hardcode_shlibpath_var=no
Chris@41 10943 ;;
Chris@41 10944
Chris@41 10945 sysv4.3*)
Chris@41 10946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@41 10947 hardcode_shlibpath_var=no
Chris@41 10948 export_dynamic_flag_spec='-Bexport'
Chris@41 10949 ;;
Chris@41 10950
Chris@41 10951 sysv4*MP*)
Chris@41 10952 if test -d /usr/nec; then
Chris@41 10953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@41 10954 hardcode_shlibpath_var=no
Chris@41 10955 runpath_var=LD_RUN_PATH
Chris@41 10956 hardcode_runpath_var=yes
Chris@41 10957 ld_shlibs=yes
Chris@41 10958 fi
Chris@41 10959 ;;
Chris@41 10960
Chris@41 10961 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Chris@41 10962 no_undefined_flag='$wl-z,text'
Chris@41 10963 archive_cmds_need_lc=no
Chris@41 10964 hardcode_shlibpath_var=no
Chris@41 10965 runpath_var='LD_RUN_PATH'
Chris@41 10966
Chris@41 10967 if test yes = "$GCC"; then
Chris@41 10968 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@41 10969 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@41 10970 else
Chris@41 10971 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@41 10972 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@41 10973 fi
Chris@41 10974 ;;
Chris@41 10975
Chris@41 10976 sysv5* | sco3.2v5* | sco5v6*)
Chris@41 10977 # Note: We CANNOT use -z defs as we might desire, because we do not
Chris@41 10978 # link with -lc, and that would cause any symbols used from libc to
Chris@41 10979 # always be unresolved, which means just about no library would
Chris@41 10980 # ever link correctly. If we're not using GNU ld we use -z text
Chris@41 10981 # though, which does catch some bad symbols but isn't as heavy-handed
Chris@41 10982 # as -z defs.
Chris@41 10983 no_undefined_flag='$wl-z,text'
Chris@41 10984 allow_undefined_flag='$wl-z,nodefs'
Chris@41 10985 archive_cmds_need_lc=no
Chris@41 10986 hardcode_shlibpath_var=no
Chris@41 10987 hardcode_libdir_flag_spec='$wl-R,$libdir'
Chris@41 10988 hardcode_libdir_separator=':'
Chris@41 10989 link_all_deplibs=yes
Chris@41 10990 export_dynamic_flag_spec='$wl-Bexport'
Chris@41 10991 runpath_var='LD_RUN_PATH'
Chris@41 10992
Chris@41 10993 if test yes = "$GCC"; then
Chris@41 10994 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@41 10995 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@41 10996 else
Chris@41 10997 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@41 10998 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@41 10999 fi
Chris@41 11000 ;;
Chris@41 11001
Chris@41 11002 uts4*)
Chris@41 11003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@41 11004 hardcode_libdir_flag_spec='-L$libdir'
Chris@41 11005 hardcode_shlibpath_var=no
Chris@41 11006 ;;
Chris@41 11007
Chris@41 11008 *)
Chris@41 11009 ld_shlibs=no
Chris@41 11010 ;;
Chris@41 11011 esac
Chris@41 11012
Chris@41 11013 if test sni = "$host_vendor"; then
Chris@41 11014 case $host in
Chris@41 11015 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Chris@41 11016 export_dynamic_flag_spec='$wl-Blargedynsym'
Chris@41 11017 ;;
Chris@41 11018 esac
Chris@41 11019 fi
Chris@41 11020 fi
Chris@41 11021
Chris@41 11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
Chris@41 11023 $as_echo "$ld_shlibs" >&6; }
Chris@41 11024 test no = "$ld_shlibs" && can_build_shared=no
Chris@41 11025
Chris@41 11026 with_gnu_ld=$with_gnu_ld
Chris@41 11027
Chris@41 11028
Chris@41 11029
Chris@41 11030
Chris@41 11031
Chris@41 11032
Chris@41 11033
Chris@41 11034
Chris@41 11035
Chris@41 11036
Chris@41 11037
Chris@41 11038
Chris@41 11039
Chris@41 11040
Chris@41 11041
Chris@41 11042 #
Chris@41 11043 # Do we need to explicitly link libc?
Chris@41 11044 #
Chris@41 11045 case "x$archive_cmds_need_lc" in
Chris@41 11046 x|xyes)
Chris@41 11047 # Assume -lc should be added
Chris@41 11048 archive_cmds_need_lc=yes
Chris@41 11049
Chris@41 11050 if test yes,yes = "$GCC,$enable_shared"; then
Chris@41 11051 case $archive_cmds in
Chris@41 11052 *'~'*)
Chris@41 11053 # FIXME: we may have to deal with multi-command sequences.
Chris@41 11054 ;;
Chris@41 11055 '$CC '*)
Chris@41 11056 # Test whether the compiler implicitly links with -lc since on some
Chris@41 11057 # systems, -lgcc has to come before -lc. If gcc already passes -lc
Chris@41 11058 # to ld, don't add -lc before -lgcc.
Chris@41 11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Chris@41 11060 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Chris@41 11061 if ${lt_cv_archive_cmds_need_lc+:} false; then :
Chris@41 11062 $as_echo_n "(cached) " >&6
Chris@41 11063 else
Chris@41 11064 $RM conftest*
Chris@41 11065 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@41 11066
Chris@41 11067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@41 11068 (eval $ac_compile) 2>&5
Chris@41 11069 ac_status=$?
Chris@41 11070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 11071 test $ac_status = 0; } 2>conftest.err; then
Chris@41 11072 soname=conftest
Chris@41 11073 lib=conftest
Chris@41 11074 libobjs=conftest.$ac_objext
Chris@41 11075 deplibs=
Chris@41 11076 wl=$lt_prog_compiler_wl
Chris@41 11077 pic_flag=$lt_prog_compiler_pic
Chris@41 11078 compiler_flags=-v
Chris@41 11079 linker_flags=-v
Chris@41 11080 verstring=
Chris@41 11081 output_objdir=.
Chris@41 11082 libname=conftest
Chris@41 11083 lt_save_allow_undefined_flag=$allow_undefined_flag
Chris@41 11084 allow_undefined_flag=
Chris@41 11085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Chris@41 11086 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Chris@41 11087 ac_status=$?
Chris@41 11088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 11089 test $ac_status = 0; }
Chris@41 11090 then
Chris@41 11091 lt_cv_archive_cmds_need_lc=no
Chris@41 11092 else
Chris@41 11093 lt_cv_archive_cmds_need_lc=yes
Chris@41 11094 fi
Chris@41 11095 allow_undefined_flag=$lt_save_allow_undefined_flag
Chris@41 11096 else
Chris@41 11097 cat conftest.err 1>&5
Chris@41 11098 fi
Chris@41 11099 $RM conftest*
Chris@41 11100
Chris@41 11101 fi
Chris@41 11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
Chris@41 11103 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
Chris@41 11104 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Chris@41 11105 ;;
Chris@41 11106 esac
Chris@41 11107 fi
Chris@41 11108 ;;
Chris@41 11109 esac
Chris@41 11110
Chris@41 11111
Chris@41 11112
Chris@41 11113
Chris@41 11114
Chris@41 11115
Chris@41 11116
Chris@41 11117
Chris@41 11118
Chris@41 11119
Chris@41 11120
Chris@41 11121
Chris@41 11122
Chris@41 11123
Chris@41 11124
Chris@41 11125
Chris@41 11126
Chris@41 11127
Chris@41 11128
Chris@41 11129
Chris@41 11130
Chris@41 11131
Chris@41 11132
Chris@41 11133
Chris@41 11134
Chris@41 11135
Chris@41 11136
Chris@41 11137
Chris@41 11138
Chris@41 11139
Chris@41 11140
Chris@41 11141
Chris@41 11142
Chris@41 11143
Chris@41 11144
Chris@41 11145
Chris@41 11146
Chris@41 11147
Chris@41 11148
Chris@41 11149
Chris@41 11150
Chris@41 11151
Chris@41 11152
Chris@41 11153
Chris@41 11154
Chris@41 11155
Chris@41 11156
Chris@41 11157
Chris@41 11158
Chris@41 11159
Chris@41 11160
Chris@41 11161
Chris@41 11162
Chris@41 11163
Chris@41 11164
Chris@41 11165
Chris@41 11166
Chris@41 11167
Chris@41 11168
Chris@41 11169
Chris@41 11170
Chris@41 11171
Chris@41 11172
Chris@41 11173
Chris@41 11174
Chris@41 11175
Chris@41 11176
Chris@41 11177
Chris@41 11178
Chris@41 11179
Chris@41 11180
Chris@41 11181
Chris@41 11182
Chris@41 11183
Chris@41 11184
Chris@41 11185
Chris@41 11186
Chris@41 11187
Chris@41 11188
Chris@41 11189
Chris@41 11190
Chris@41 11191
Chris@41 11192
Chris@41 11193
Chris@41 11194
Chris@41 11195
Chris@41 11196
Chris@41 11197
Chris@41 11198
Chris@41 11199
Chris@41 11200
Chris@41 11201
Chris@41 11202
Chris@41 11203
Chris@41 11204
Chris@41 11205
Chris@41 11206
Chris@41 11207
Chris@41 11208
Chris@41 11209
Chris@41 11210
Chris@41 11211
Chris@41 11212
Chris@41 11213
Chris@41 11214
Chris@41 11215
Chris@41 11216
Chris@41 11217
Chris@41 11218
Chris@41 11219
Chris@41 11220
Chris@41 11221
Chris@41 11222
Chris@41 11223
Chris@41 11224
Chris@41 11225
Chris@41 11226
Chris@41 11227
Chris@41 11228
Chris@41 11229
Chris@41 11230
Chris@41 11231
Chris@41 11232
Chris@41 11233
Chris@41 11234
Chris@41 11235
Chris@41 11236
Chris@41 11237
Chris@41 11238
Chris@41 11239
Chris@41 11240
Chris@41 11241
Chris@41 11242
Chris@41 11243
Chris@41 11244
Chris@41 11245
Chris@41 11246
Chris@41 11247
Chris@41 11248
Chris@41 11249
Chris@41 11250
Chris@41 11251
Chris@41 11252
Chris@41 11253
Chris@41 11254
Chris@41 11255
Chris@41 11256
Chris@41 11257
Chris@41 11258
Chris@41 11259
Chris@41 11260
Chris@41 11261
Chris@41 11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Chris@41 11263 $as_echo_n "checking dynamic linker characteristics... " >&6; }
Chris@41 11264
Chris@41 11265 if test yes = "$GCC"; then
Chris@41 11266 case $host_os in
Chris@41 11267 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
Chris@41 11268 *) lt_awk_arg='/^libraries:/' ;;
Chris@41 11269 esac
Chris@41 11270 case $host_os in
Chris@41 11271 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
Chris@41 11272 *) lt_sed_strip_eq='s|=/|/|g' ;;
Chris@41 11273 esac
Chris@41 11274 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
Chris@41 11275 case $lt_search_path_spec in
Chris@41 11276 *\;*)
Chris@41 11277 # if the path contains ";" then we assume it to be the separator
Chris@41 11278 # otherwise default to the standard path separator (i.e. ":") - it is
Chris@41 11279 # assumed that no part of a normal pathname contains ";" but that should
Chris@41 11280 # okay in the real world where ";" in dirpaths is itself problematic.
Chris@41 11281 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
Chris@41 11282 ;;
Chris@41 11283 *)
Chris@41 11284 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
Chris@41 11285 ;;
Chris@41 11286 esac
Chris@41 11287 # Ok, now we have the path, separated by spaces, we can step through it
Chris@41 11288 # and add multilib dir if necessary...
Chris@41 11289 lt_tmp_lt_search_path_spec=
Chris@41 11290 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
Chris@41 11291 # ...but if some path component already ends with the multilib dir we assume
Chris@41 11292 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
Chris@41 11293 case "$lt_multi_os_dir; $lt_search_path_spec " in
Chris@41 11294 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
Chris@41 11295 lt_multi_os_dir=
Chris@41 11296 ;;
Chris@41 11297 esac
Chris@41 11298 for lt_sys_path in $lt_search_path_spec; do
Chris@41 11299 if test -d "$lt_sys_path$lt_multi_os_dir"; then
Chris@41 11300 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
Chris@41 11301 elif test -n "$lt_multi_os_dir"; then
Chris@41 11302 test -d "$lt_sys_path" && \
Chris@41 11303 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
Chris@41 11304 fi
Chris@41 11305 done
Chris@41 11306 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Chris@41 11307 BEGIN {RS = " "; FS = "/|\n";} {
Chris@41 11308 lt_foo = "";
Chris@41 11309 lt_count = 0;
Chris@41 11310 for (lt_i = NF; lt_i > 0; lt_i--) {
Chris@41 11311 if ($lt_i != "" && $lt_i != ".") {
Chris@41 11312 if ($lt_i == "..") {
Chris@41 11313 lt_count++;
Chris@41 11314 } else {
Chris@41 11315 if (lt_count == 0) {
Chris@41 11316 lt_foo = "/" $lt_i lt_foo;
Chris@41 11317 } else {
Chris@41 11318 lt_count--;
Chris@41 11319 }
Chris@41 11320 }
Chris@41 11321 }
Chris@41 11322 }
Chris@41 11323 if (lt_foo != "") { lt_freq[lt_foo]++; }
Chris@41 11324 if (lt_freq[lt_foo] == 1) { print lt_foo; }
Chris@41 11325 }'`
Chris@41 11326 # AWK program above erroneously prepends '/' to C:/dos/paths
Chris@41 11327 # for these hosts.
Chris@41 11328 case $host_os in
Chris@41 11329 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
Chris@41 11330 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
Chris@41 11331 esac
Chris@41 11332 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Chris@41 11333 else
Chris@41 11334 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Chris@41 11335 fi
Chris@41 11336 library_names_spec=
Chris@41 11337 libname_spec='lib$name'
Chris@41 11338 soname_spec=
Chris@41 11339 shrext_cmds=.so
Chris@41 11340 postinstall_cmds=
Chris@41 11341 postuninstall_cmds=
Chris@41 11342 finish_cmds=
Chris@41 11343 finish_eval=
Chris@41 11344 shlibpath_var=
Chris@41 11345 shlibpath_overrides_runpath=unknown
Chris@41 11346 version_type=none
Chris@41 11347 dynamic_linker="$host_os ld.so"
Chris@41 11348 sys_lib_dlsearch_path_spec="/lib /usr/lib"
Chris@41 11349 need_lib_prefix=unknown
Chris@41 11350 hardcode_into_libs=no
Chris@41 11351
Chris@41 11352 # when you set need_version to no, make sure it does not cause -set_version
Chris@41 11353 # flags to be left without arguments
Chris@41 11354 need_version=unknown
Chris@41 11355
Chris@41 11356
Chris@41 11357
Chris@41 11358 case $host_os in
Chris@41 11359 aix3*)
Chris@41 11360 version_type=linux # correct to gnu/linux during the next big refactor
Chris@41 11361 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
Chris@41 11362 shlibpath_var=LIBPATH
Chris@41 11363
Chris@41 11364 # AIX 3 has no versioning support, so we append a major version to the name.
Chris@41 11365 soname_spec='$libname$release$shared_ext$major'
Chris@41 11366 ;;
Chris@41 11367
Chris@41 11368 aix[4-9]*)
Chris@41 11369 version_type=linux # correct to gnu/linux during the next big refactor
Chris@41 11370 need_lib_prefix=no
Chris@41 11371 need_version=no
Chris@41 11372 hardcode_into_libs=yes
Chris@41 11373 if test ia64 = "$host_cpu"; then
Chris@41 11374 # AIX 5 supports IA64
Chris@41 11375 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
Chris@41 11376 shlibpath_var=LD_LIBRARY_PATH
Chris@41 11377 else
Chris@41 11378 # With GCC up to 2.95.x, collect2 would create an import file
Chris@41 11379 # for dependence libraries. The import file would start with
Chris@41 11380 # the line '#! .'. This would cause the generated library to
Chris@41 11381 # depend on '.', always an invalid library. This was fixed in
Chris@41 11382 # development snapshots of GCC prior to 3.0.
Chris@41 11383 case $host_os in
Chris@41 11384 aix4 | aix4.[01] | aix4.[01].*)
Chris@41 11385 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
Chris@41 11386 echo ' yes '
Chris@41 11387 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
Chris@41 11388 :
Chris@41 11389 else
Chris@41 11390 can_build_shared=no
Chris@41 11391 fi
Chris@41 11392 ;;
Chris@41 11393 esac
Chris@41 11394 # Using Import Files as archive members, it is possible to support
Chris@41 11395 # filename-based versioning of shared library archives on AIX. While
Chris@41 11396 # this would work for both with and without runtime linking, it will
Chris@41 11397 # prevent static linking of such archives. So we do filename-based
Chris@41 11398 # shared library versioning with .so extension only, which is used
Chris@41 11399 # when both runtime linking and shared linking is enabled.
Chris@41 11400 # Unfortunately, runtime linking may impact performance, so we do
Chris@41 11401 # not want this to be the default eventually. Also, we use the
Chris@41 11402 # versioned .so libs for executables only if there is the -brtl
Chris@41 11403 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
Chris@41 11404 # To allow for filename-based versioning support, we need to create
Chris@41 11405 # libNAME.so.V as an archive file, containing:
Chris@41 11406 # *) an Import File, referring to the versioned filename of the
Chris@41 11407 # archive as well as the shared archive member, telling the
Chris@41 11408 # bitwidth (32 or 64) of that shared object, and providing the
Chris@41 11409 # list of exported symbols of that shared object, eventually
Chris@41 11410 # decorated with the 'weak' keyword
Chris@41 11411 # *) the shared object with the F_LOADONLY flag set, to really avoid
Chris@41 11412 # it being seen by the linker.
Chris@41 11413 # At run time we better use the real file rather than another symlink,
Chris@41 11414 # but for link time we create the symlink libNAME.so -> libNAME.so.V
Chris@41 11415
Chris@41 11416 case $with_aix_soname,$aix_use_runtimelinking in
Chris@41 11417 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
Chris@41 11418 # soname into executable. Probably we can add versioning support to
Chris@41 11419 # collect2, so additional links can be useful in future.
Chris@41 11420 aix,yes) # traditional libtool
Chris@41 11421 dynamic_linker='AIX unversionable lib.so'
Chris@41 11422 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
Chris@41 11423 # instead of lib<name>.a to let people know that these are not
Chris@41 11424 # typical AIX shared libraries.
Chris@41 11425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 11426 ;;
Chris@41 11427 aix,no) # traditional AIX only
Chris@41 11428 dynamic_linker='AIX lib.a(lib.so.V)'
Chris@41 11429 # We preserve .a as extension for shared libraries through AIX4.2
Chris@41 11430 # and later when we are not doing run time linking.
Chris@41 11431 library_names_spec='$libname$release.a $libname.a'
Chris@41 11432 soname_spec='$libname$release$shared_ext$major'
Chris@41 11433 ;;
Chris@41 11434 svr4,*) # full svr4 only
Chris@41 11435 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
Chris@41 11436 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
Chris@41 11437 # We do not specify a path in Import Files, so LIBPATH fires.
Chris@41 11438 shlibpath_overrides_runpath=yes
Chris@41 11439 ;;
Chris@41 11440 *,yes) # both, prefer svr4
Chris@41 11441 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
Chris@41 11442 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
Chris@41 11443 # unpreferred sharedlib libNAME.a needs extra handling
Chris@41 11444 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
Chris@41 11445 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
Chris@41 11446 # We do not specify a path in Import Files, so LIBPATH fires.
Chris@41 11447 shlibpath_overrides_runpath=yes
Chris@41 11448 ;;
Chris@41 11449 *,no) # both, prefer aix
Chris@41 11450 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
Chris@41 11451 library_names_spec='$libname$release.a $libname.a'
Chris@41 11452 soname_spec='$libname$release$shared_ext$major'
Chris@41 11453 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
Chris@41 11454 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
Chris@41 11455 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
Chris@41 11456 ;;
Chris@41 11457 esac
Chris@41 11458 shlibpath_var=LIBPATH
Chris@41 11459 fi
Chris@41 11460 ;;
Chris@41 11461
Chris@41 11462 amigaos*)
Chris@41 11463 case $host_cpu in
Chris@41 11464 powerpc)
Chris@41 11465 # Since July 2007 AmigaOS4 officially supports .so libraries.
Chris@41 11466 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Chris@41 11467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 11468 ;;
Chris@41 11469 m68k)
Chris@41 11470 library_names_spec='$libname.ixlibrary $libname.a'
Chris@41 11471 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Chris@41 11472 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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@41 11473 ;;
Chris@41 11474 esac
Chris@41 11475 ;;
Chris@41 11476
Chris@41 11477 beos*)
Chris@41 11478 library_names_spec='$libname$shared_ext'
Chris@41 11479 dynamic_linker="$host_os ld.so"
Chris@41 11480 shlibpath_var=LIBRARY_PATH
Chris@41 11481 ;;
Chris@41 11482
Chris@41 11483 bsdi[45]*)
Chris@41 11484 version_type=linux # correct to gnu/linux during the next big refactor
Chris@41 11485 need_version=no
Chris@41 11486 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 11487 soname_spec='$libname$release$shared_ext$major'
Chris@41 11488 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
Chris@41 11489 shlibpath_var=LD_LIBRARY_PATH
Chris@41 11490 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
Chris@41 11491 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
Chris@41 11492 # the default ld.so.conf also contains /usr/contrib/lib and
Chris@41 11493 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
Chris@41 11494 # libtool to hard-code these into programs
Chris@41 11495 ;;
Chris@41 11496
Chris@41 11497 cygwin* | mingw* | pw32* | cegcc*)
Chris@41 11498 version_type=windows
Chris@41 11499 shrext_cmds=.dll
Chris@41 11500 need_version=no
Chris@41 11501 need_lib_prefix=no
Chris@41 11502
Chris@41 11503 case $GCC,$cc_basename in
Chris@41 11504 yes,*)
Chris@41 11505 # gcc
Chris@41 11506 library_names_spec='$libname.dll.a'
Chris@41 11507 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@41 11508 postinstall_cmds='base_file=`basename \$file`~
Chris@41 11509 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Chris@41 11510 dldir=$destdir/`dirname \$dlpath`~
Chris@41 11511 test -d \$dldir || mkdir -p \$dldir~
Chris@41 11512 $install_prog $dir/$dlname \$dldir/$dlname~
Chris@41 11513 chmod a+x \$dldir/$dlname~
Chris@41 11514 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
Chris@41 11515 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
Chris@41 11516 fi'
Chris@41 11517 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@41 11518 dlpath=$dir/\$dldll~
Chris@41 11519 $RM \$dlpath'
Chris@41 11520 shlibpath_overrides_runpath=yes
Chris@41 11521
Chris@41 11522 case $host_os in
Chris@41 11523 cygwin*)
Chris@41 11524 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Chris@41 11525 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Chris@41 11526
Chris@41 11527 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Chris@41 11528 ;;
Chris@41 11529 mingw* | cegcc*)
Chris@41 11530 # MinGW DLLs use traditional 'lib' prefix
Chris@41 11531 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Chris@41 11532 ;;
Chris@41 11533 pw32*)
Chris@41 11534 # pw32 DLLs use 'pw' prefix rather than 'lib'
Chris@41 11535 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Chris@41 11536 ;;
Chris@41 11537 esac
Chris@41 11538 dynamic_linker='Win32 ld.exe'
Chris@41 11539 ;;
Chris@41 11540
Chris@41 11541 *,cl*)
Chris@41 11542 # Native MSVC
Chris@41 11543 libname_spec='$name'
Chris@41 11544 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Chris@41 11545 library_names_spec='$libname.dll.lib'
Chris@41 11546
Chris@41 11547 case $build_os in
Chris@41 11548 mingw*)
Chris@41 11549 sys_lib_search_path_spec=
Chris@41 11550 lt_save_ifs=$IFS
Chris@41 11551 IFS=';'
Chris@41 11552 for lt_path in $LIB
Chris@41 11553 do
Chris@41 11554 IFS=$lt_save_ifs
Chris@41 11555 # Let DOS variable expansion print the short 8.3 style file name.
Chris@41 11556 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
Chris@41 11557 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
Chris@41 11558 done
Chris@41 11559 IFS=$lt_save_ifs
Chris@41 11560 # Convert to MSYS style.
Chris@41 11561 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@41 11562 ;;
Chris@41 11563 cygwin*)
Chris@41 11564 # Convert to unix form, then to dos form, then back to unix form
Chris@41 11565 # but this time dos style (no spaces!) so that the unix form looks
Chris@41 11566 # like /cygdrive/c/PROGRA~1:/cygdr...
Chris@41 11567 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
Chris@41 11568 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
Chris@41 11569 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@41 11570 ;;
Chris@41 11571 *)
Chris@41 11572 sys_lib_search_path_spec=$LIB
Chris@41 11573 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
Chris@41 11574 # It is most probably a Windows format PATH.
Chris@41 11575 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Chris@41 11576 else
Chris@41 11577 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@41 11578 fi
Chris@41 11579 # FIXME: find the short name or the path components, as spaces are
Chris@41 11580 # common. (e.g. "Program Files" -> "PROGRA~1")
Chris@41 11581 ;;
Chris@41 11582 esac
Chris@41 11583
Chris@41 11584 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@41 11585 postinstall_cmds='base_file=`basename \$file`~
Chris@41 11586 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Chris@41 11587 dldir=$destdir/`dirname \$dlpath`~
Chris@41 11588 test -d \$dldir || mkdir -p \$dldir~
Chris@41 11589 $install_prog $dir/$dlname \$dldir/$dlname'
Chris@41 11590 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@41 11591 dlpath=$dir/\$dldll~
Chris@41 11592 $RM \$dlpath'
Chris@41 11593 shlibpath_overrides_runpath=yes
Chris@41 11594 dynamic_linker='Win32 link.exe'
Chris@41 11595 ;;
Chris@41 11596
Chris@41 11597 *)
Chris@41 11598 # Assume MSVC wrapper
Chris@41 11599 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
Chris@41 11600 dynamic_linker='Win32 ld.exe'
Chris@41 11601 ;;
Chris@41 11602 esac
Chris@41 11603 # FIXME: first we should search . and the directory the executable is in
Chris@41 11604 shlibpath_var=PATH
Chris@41 11605 ;;
Chris@41 11606
Chris@41 11607 darwin* | rhapsody*)
Chris@41 11608 dynamic_linker="$host_os dyld"
Chris@41 11609 version_type=darwin
Chris@41 11610 need_lib_prefix=no
Chris@41 11611 need_version=no
Chris@41 11612 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
Chris@41 11613 soname_spec='$libname$release$major$shared_ext'
Chris@41 11614 shlibpath_overrides_runpath=yes
Chris@41 11615 shlibpath_var=DYLD_LIBRARY_PATH
Chris@41 11616 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Chris@41 11617
Chris@41 11618 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
Chris@41 11619 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
Chris@41 11620 ;;
Chris@41 11621
Chris@41 11622 dgux*)
Chris@41 11623 version_type=linux # correct to gnu/linux during the next big refactor
Chris@41 11624 need_lib_prefix=no
Chris@41 11625 need_version=no
Chris@41 11626 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 11627 soname_spec='$libname$release$shared_ext$major'
Chris@41 11628 shlibpath_var=LD_LIBRARY_PATH
Chris@41 11629 ;;
Chris@41 11630
Chris@41 11631 freebsd* | dragonfly*)
Chris@41 11632 # DragonFly does not have aout. When/if they implement a new
Chris@41 11633 # versioning mechanism, adjust this.
Chris@41 11634 if test -x /usr/bin/objformat; then
Chris@41 11635 objformat=`/usr/bin/objformat`
Chris@41 11636 else
Chris@41 11637 case $host_os in
Chris@41 11638 freebsd[23].*) objformat=aout ;;
Chris@41 11639 *) objformat=elf ;;
Chris@41 11640 esac
Chris@41 11641 fi
Chris@41 11642 version_type=freebsd-$objformat
Chris@41 11643 case $version_type in
Chris@41 11644 freebsd-elf*)
Chris@41 11645 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 11646 soname_spec='$libname$release$shared_ext$major'
Chris@41 11647 need_version=no
Chris@41 11648 need_lib_prefix=no
Chris@41 11649 ;;
Chris@41 11650 freebsd-*)
Chris@41 11651 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Chris@41 11652 need_version=yes
Chris@41 11653 ;;
Chris@41 11654 esac
Chris@41 11655 shlibpath_var=LD_LIBRARY_PATH
Chris@41 11656 case $host_os in
Chris@41 11657 freebsd2.*)
Chris@41 11658 shlibpath_overrides_runpath=yes
Chris@41 11659 ;;
Chris@41 11660 freebsd3.[01]* | freebsdelf3.[01]*)
Chris@41 11661 shlibpath_overrides_runpath=yes
Chris@41 11662 hardcode_into_libs=yes
Chris@41 11663 ;;
Chris@41 11664 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
Chris@41 11665 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Chris@41 11666 shlibpath_overrides_runpath=no
Chris@41 11667 hardcode_into_libs=yes
Chris@41 11668 ;;
Chris@41 11669 *) # from 4.6 on, and DragonFly
Chris@41 11670 shlibpath_overrides_runpath=yes
Chris@41 11671 hardcode_into_libs=yes
Chris@41 11672 ;;
Chris@41 11673 esac
Chris@41 11674 ;;
Chris@41 11675
Chris@41 11676 haiku*)
Chris@41 11677 version_type=linux # correct to gnu/linux during the next big refactor
Chris@41 11678 need_lib_prefix=no
Chris@41 11679 need_version=no
Chris@41 11680 dynamic_linker="$host_os runtime_loader"
Chris@41 11681 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 11682 soname_spec='$libname$release$shared_ext$major'
Chris@41 11683 shlibpath_var=LIBRARY_PATH
Chris@41 11684 shlibpath_overrides_runpath=no
Chris@41 11685 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Chris@41 11686 hardcode_into_libs=yes
Chris@41 11687 ;;
Chris@41 11688
Chris@41 11689 hpux9* | hpux10* | hpux11*)
Chris@41 11690 # Give a soname corresponding to the major version so that dld.sl refuses to
Chris@41 11691 # link against other versions.
Chris@41 11692 version_type=sunos
Chris@41 11693 need_lib_prefix=no
Chris@41 11694 need_version=no
Chris@41 11695 case $host_cpu in
Chris@41 11696 ia64*)
Chris@41 11697 shrext_cmds='.so'
Chris@41 11698 hardcode_into_libs=yes
Chris@41 11699 dynamic_linker="$host_os dld.so"
Chris@41 11700 shlibpath_var=LD_LIBRARY_PATH
Chris@41 11701 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@41 11702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 11703 soname_spec='$libname$release$shared_ext$major'
Chris@41 11704 if test 32 = "$HPUX_IA64_MODE"; then
Chris@41 11705 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Chris@41 11706 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
Chris@41 11707 else
Chris@41 11708 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Chris@41 11709 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
Chris@41 11710 fi
Chris@41 11711 ;;
Chris@41 11712 hppa*64*)
Chris@41 11713 shrext_cmds='.sl'
Chris@41 11714 hardcode_into_libs=yes
Chris@41 11715 dynamic_linker="$host_os dld.sl"
Chris@41 11716 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
Chris@41 11717 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@41 11718 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 11719 soname_spec='$libname$release$shared_ext$major'
Chris@41 11720 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
Chris@41 11721 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@41 11722 ;;
Chris@41 11723 *)
Chris@41 11724 shrext_cmds='.sl'
Chris@41 11725 dynamic_linker="$host_os dld.sl"
Chris@41 11726 shlibpath_var=SHLIB_PATH
Chris@41 11727 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Chris@41 11728 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 11729 soname_spec='$libname$release$shared_ext$major'
Chris@41 11730 ;;
Chris@41 11731 esac
Chris@41 11732 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Chris@41 11733 postinstall_cmds='chmod 555 $lib'
Chris@41 11734 # or fails outright, so override atomically:
Chris@41 11735 install_override_mode=555
Chris@41 11736 ;;
Chris@41 11737
Chris@41 11738 interix[3-9]*)
Chris@41 11739 version_type=linux # correct to gnu/linux during the next big refactor
Chris@41 11740 need_lib_prefix=no
Chris@41 11741 need_version=no
Chris@41 11742 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 11743 soname_spec='$libname$release$shared_ext$major'
Chris@41 11744 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
Chris@41 11745 shlibpath_var=LD_LIBRARY_PATH
Chris@41 11746 shlibpath_overrides_runpath=no
Chris@41 11747 hardcode_into_libs=yes
Chris@41 11748 ;;
Chris@41 11749
Chris@41 11750 irix5* | irix6* | nonstopux*)
Chris@41 11751 case $host_os in
Chris@41 11752 nonstopux*) version_type=nonstopux ;;
Chris@41 11753 *)
Chris@41 11754 if test yes = "$lt_cv_prog_gnu_ld"; then
Chris@41 11755 version_type=linux # correct to gnu/linux during the next big refactor
Chris@41 11756 else
Chris@41 11757 version_type=irix
Chris@41 11758 fi ;;
Chris@41 11759 esac
Chris@41 11760 need_lib_prefix=no
Chris@41 11761 need_version=no
Chris@41 11762 soname_spec='$libname$release$shared_ext$major'
Chris@41 11763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
Chris@41 11764 case $host_os in
Chris@41 11765 irix5* | nonstopux*)
Chris@41 11766 libsuff= shlibsuff=
Chris@41 11767 ;;
Chris@41 11768 *)
Chris@41 11769 case $LD in # libtool.m4 will add one of these switches to LD
Chris@41 11770 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
Chris@41 11771 libsuff= shlibsuff= libmagic=32-bit;;
Chris@41 11772 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
Chris@41 11773 libsuff=32 shlibsuff=N32 libmagic=N32;;
Chris@41 11774 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
Chris@41 11775 libsuff=64 shlibsuff=64 libmagic=64-bit;;
Chris@41 11776 *) libsuff= shlibsuff= libmagic=never-match;;
Chris@41 11777 esac
Chris@41 11778 ;;
Chris@41 11779 esac
Chris@41 11780 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
Chris@41 11781 shlibpath_overrides_runpath=no
Chris@41 11782 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
Chris@41 11783 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
Chris@41 11784 hardcode_into_libs=yes
Chris@41 11785 ;;
Chris@41 11786
Chris@41 11787 # No shared lib support for Linux oldld, aout, or coff.
Chris@41 11788 linux*oldld* | linux*aout* | linux*coff*)
Chris@41 11789 dynamic_linker=no
Chris@41 11790 ;;
Chris@41 11791
Chris@41 11792 linux*android*)
Chris@41 11793 version_type=none # Android doesn't support versioned libraries.
Chris@41 11794 need_lib_prefix=no
Chris@41 11795 need_version=no
Chris@41 11796 library_names_spec='$libname$release$shared_ext'
Chris@41 11797 soname_spec='$libname$release$shared_ext'
Chris@41 11798 finish_cmds=
Chris@41 11799 shlibpath_var=LD_LIBRARY_PATH
Chris@41 11800 shlibpath_overrides_runpath=yes
Chris@41 11801
Chris@41 11802 # This implies no fast_install, which is unacceptable.
Chris@41 11803 # Some rework will be needed to allow for fast_install
Chris@41 11804 # before this can be enabled.
Chris@41 11805 hardcode_into_libs=yes
Chris@41 11806
Chris@41 11807 dynamic_linker='Android linker'
Chris@41 11808 # Don't embed -rpath directories since the linker doesn't support them.
Chris@41 11809 hardcode_libdir_flag_spec='-L$libdir'
Chris@41 11810 ;;
Chris@41 11811
Chris@41 11812 # This must be glibc/ELF.
Chris@41 11813 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Chris@41 11814 version_type=linux # correct to gnu/linux during the next big refactor
Chris@41 11815 need_lib_prefix=no
Chris@41 11816 need_version=no
Chris@41 11817 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 11818 soname_spec='$libname$release$shared_ext$major'
Chris@41 11819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
Chris@41 11820 shlibpath_var=LD_LIBRARY_PATH
Chris@41 11821 shlibpath_overrides_runpath=no
Chris@41 11822
Chris@41 11823 # Some binutils ld are patched to set DT_RUNPATH
Chris@41 11824 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
Chris@41 11825 $as_echo_n "(cached) " >&6
Chris@41 11826 else
Chris@41 11827 lt_cv_shlibpath_overrides_runpath=no
Chris@41 11828 save_LDFLAGS=$LDFLAGS
Chris@41 11829 save_libdir=$libdir
Chris@41 11830 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
Chris@41 11831 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
Chris@41 11832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 11833 /* end confdefs.h. */
Chris@41 11834
Chris@41 11835 int
Chris@41 11836 main ()
Chris@41 11837 {
Chris@41 11838
Chris@41 11839 ;
Chris@41 11840 return 0;
Chris@41 11841 }
Chris@41 11842 _ACEOF
Chris@41 11843 if ac_fn_c_try_link "$LINENO"; then :
Chris@41 11844 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
Chris@41 11845 lt_cv_shlibpath_overrides_runpath=yes
Chris@41 11846 fi
Chris@41 11847 fi
Chris@41 11848 rm -f core conftest.err conftest.$ac_objext \
Chris@41 11849 conftest$ac_exeext conftest.$ac_ext
Chris@41 11850 LDFLAGS=$save_LDFLAGS
Chris@41 11851 libdir=$save_libdir
Chris@41 11852
Chris@41 11853 fi
Chris@41 11854
Chris@41 11855 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Chris@41 11856
Chris@41 11857 # This implies no fast_install, which is unacceptable.
Chris@41 11858 # Some rework will be needed to allow for fast_install
Chris@41 11859 # before this can be enabled.
Chris@41 11860 hardcode_into_libs=yes
Chris@41 11861
Chris@41 11862 # Ideally, we could use ldconfig to report *all* directores which are
Chris@41 11863 # searched for libraries, however this is still not possible. Aside from not
Chris@41 11864 # being certain /sbin/ldconfig is available, command
Chris@41 11865 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
Chris@41 11866 # even though it is searched at run-time. Try to do the best guess by
Chris@41 11867 # appending ld.so.conf contents (and includes) to the search path.
Chris@41 11868 if test -f /etc/ld.so.conf; then
Chris@41 11869 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@41 11870 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
Chris@41 11871 fi
Chris@41 11872
Chris@41 11873 # We used to test for /lib/ld.so.1 and disable shared libraries on
Chris@41 11874 # powerpc, because MkLinux only supported shared libraries with the
Chris@41 11875 # GNU dynamic linker. Since this was broken with cross compilers,
Chris@41 11876 # most powerpc-linux boxes support dynamic linking these days and
Chris@41 11877 # people can always --disable-shared, the test was removed, and we
Chris@41 11878 # assume the GNU/Linux dynamic linker is in use.
Chris@41 11879 dynamic_linker='GNU/Linux ld.so'
Chris@41 11880 ;;
Chris@41 11881
Chris@41 11882 netbsdelf*-gnu)
Chris@41 11883 version_type=linux
Chris@41 11884 need_lib_prefix=no
Chris@41 11885 need_version=no
Chris@41 11886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@41 11887 soname_spec='${libname}${release}${shared_ext}$major'
Chris@41 11888 shlibpath_var=LD_LIBRARY_PATH
Chris@41 11889 shlibpath_overrides_runpath=no
Chris@41 11890 hardcode_into_libs=yes
Chris@41 11891 dynamic_linker='NetBSD ld.elf_so'
Chris@41 11892 ;;
Chris@41 11893
Chris@41 11894 netbsd*)
Chris@41 11895 version_type=sunos
Chris@41 11896 need_lib_prefix=no
Chris@41 11897 need_version=no
Chris@41 11898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@41 11899 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Chris@41 11900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@41 11901 dynamic_linker='NetBSD (a.out) ld.so'
Chris@41 11902 else
Chris@41 11903 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 11904 soname_spec='$libname$release$shared_ext$major'
Chris@41 11905 dynamic_linker='NetBSD ld.elf_so'
Chris@41 11906 fi
Chris@41 11907 shlibpath_var=LD_LIBRARY_PATH
Chris@41 11908 shlibpath_overrides_runpath=yes
Chris@41 11909 hardcode_into_libs=yes
Chris@41 11910 ;;
Chris@41 11911
Chris@41 11912 newsos6)
Chris@41 11913 version_type=linux # correct to gnu/linux during the next big refactor
Chris@41 11914 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 11915 shlibpath_var=LD_LIBRARY_PATH
Chris@41 11916 shlibpath_overrides_runpath=yes
Chris@41 11917 ;;
Chris@41 11918
Chris@41 11919 *nto* | *qnx*)
Chris@41 11920 version_type=qnx
Chris@41 11921 need_lib_prefix=no
Chris@41 11922 need_version=no
Chris@41 11923 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 11924 soname_spec='$libname$release$shared_ext$major'
Chris@41 11925 shlibpath_var=LD_LIBRARY_PATH
Chris@41 11926 shlibpath_overrides_runpath=no
Chris@41 11927 hardcode_into_libs=yes
Chris@41 11928 dynamic_linker='ldqnx.so'
Chris@41 11929 ;;
Chris@41 11930
Chris@41 11931 openbsd* | bitrig*)
Chris@41 11932 version_type=sunos
Chris@41 11933 sys_lib_dlsearch_path_spec=/usr/lib
Chris@41 11934 need_lib_prefix=no
Chris@41 11935 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Chris@41 11936 need_version=no
Chris@41 11937 else
Chris@41 11938 need_version=yes
Chris@41 11939 fi
Chris@41 11940 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Chris@41 11941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@41 11942 shlibpath_var=LD_LIBRARY_PATH
Chris@41 11943 shlibpath_overrides_runpath=yes
Chris@41 11944 ;;
Chris@41 11945
Chris@41 11946 os2*)
Chris@41 11947 libname_spec='$name'
Chris@41 11948 version_type=windows
Chris@41 11949 shrext_cmds=.dll
Chris@41 11950 need_version=no
Chris@41 11951 need_lib_prefix=no
Chris@41 11952 # OS/2 can only load a DLL with a base name of 8 characters or less.
Chris@41 11953 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
Chris@41 11954 v=$($ECHO $release$versuffix | tr -d .-);
Chris@41 11955 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
Chris@41 11956 $ECHO $n$v`$shared_ext'
Chris@41 11957 library_names_spec='${libname}_dll.$libext'
Chris@41 11958 dynamic_linker='OS/2 ld.exe'
Chris@41 11959 shlibpath_var=BEGINLIBPATH
Chris@41 11960 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Chris@41 11961 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@41 11962 postinstall_cmds='base_file=`basename \$file`~
Chris@41 11963 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
Chris@41 11964 dldir=$destdir/`dirname \$dlpath`~
Chris@41 11965 test -d \$dldir || mkdir -p \$dldir~
Chris@41 11966 $install_prog $dir/$dlname \$dldir/$dlname~
Chris@41 11967 chmod a+x \$dldir/$dlname~
Chris@41 11968 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
Chris@41 11969 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
Chris@41 11970 fi'
Chris@41 11971 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
Chris@41 11972 dlpath=$dir/\$dldll~
Chris@41 11973 $RM \$dlpath'
Chris@41 11974 ;;
Chris@41 11975
Chris@41 11976 osf3* | osf4* | osf5*)
Chris@41 11977 version_type=osf
Chris@41 11978 need_lib_prefix=no
Chris@41 11979 need_version=no
Chris@41 11980 soname_spec='$libname$release$shared_ext$major'
Chris@41 11981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 11982 shlibpath_var=LD_LIBRARY_PATH
Chris@41 11983 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Chris@41 11984 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@41 11985 ;;
Chris@41 11986
Chris@41 11987 rdos*)
Chris@41 11988 dynamic_linker=no
Chris@41 11989 ;;
Chris@41 11990
Chris@41 11991 solaris*)
Chris@41 11992 version_type=linux # correct to gnu/linux during the next big refactor
Chris@41 11993 need_lib_prefix=no
Chris@41 11994 need_version=no
Chris@41 11995 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 11996 soname_spec='$libname$release$shared_ext$major'
Chris@41 11997 shlibpath_var=LD_LIBRARY_PATH
Chris@41 11998 shlibpath_overrides_runpath=yes
Chris@41 11999 hardcode_into_libs=yes
Chris@41 12000 # ldd complains unless libraries are executable
Chris@41 12001 postinstall_cmds='chmod +x $lib'
Chris@41 12002 ;;
Chris@41 12003
Chris@41 12004 sunos4*)
Chris@41 12005 version_type=sunos
Chris@41 12006 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Chris@41 12007 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
Chris@41 12008 shlibpath_var=LD_LIBRARY_PATH
Chris@41 12009 shlibpath_overrides_runpath=yes
Chris@41 12010 if test yes = "$with_gnu_ld"; then
Chris@41 12011 need_lib_prefix=no
Chris@41 12012 fi
Chris@41 12013 need_version=yes
Chris@41 12014 ;;
Chris@41 12015
Chris@41 12016 sysv4 | sysv4.3*)
Chris@41 12017 version_type=linux # correct to gnu/linux during the next big refactor
Chris@41 12018 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 12019 soname_spec='$libname$release$shared_ext$major'
Chris@41 12020 shlibpath_var=LD_LIBRARY_PATH
Chris@41 12021 case $host_vendor in
Chris@41 12022 sni)
Chris@41 12023 shlibpath_overrides_runpath=no
Chris@41 12024 need_lib_prefix=no
Chris@41 12025 runpath_var=LD_RUN_PATH
Chris@41 12026 ;;
Chris@41 12027 siemens)
Chris@41 12028 need_lib_prefix=no
Chris@41 12029 ;;
Chris@41 12030 motorola)
Chris@41 12031 need_lib_prefix=no
Chris@41 12032 need_version=no
Chris@41 12033 shlibpath_overrides_runpath=no
Chris@41 12034 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
Chris@41 12035 ;;
Chris@41 12036 esac
Chris@41 12037 ;;
Chris@41 12038
Chris@41 12039 sysv4*MP*)
Chris@41 12040 if test -d /usr/nec; then
Chris@41 12041 version_type=linux # correct to gnu/linux during the next big refactor
Chris@41 12042 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
Chris@41 12043 soname_spec='$libname$shared_ext.$major'
Chris@41 12044 shlibpath_var=LD_LIBRARY_PATH
Chris@41 12045 fi
Chris@41 12046 ;;
Chris@41 12047
Chris@41 12048 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Chris@41 12049 version_type=sco
Chris@41 12050 need_lib_prefix=no
Chris@41 12051 need_version=no
Chris@41 12052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
Chris@41 12053 soname_spec='$libname$release$shared_ext$major'
Chris@41 12054 shlibpath_var=LD_LIBRARY_PATH
Chris@41 12055 shlibpath_overrides_runpath=yes
Chris@41 12056 hardcode_into_libs=yes
Chris@41 12057 if test yes = "$with_gnu_ld"; then
Chris@41 12058 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Chris@41 12059 else
Chris@41 12060 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Chris@41 12061 case $host_os in
Chris@41 12062 sco3.2v5*)
Chris@41 12063 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
Chris@41 12064 ;;
Chris@41 12065 esac
Chris@41 12066 fi
Chris@41 12067 sys_lib_dlsearch_path_spec='/usr/lib'
Chris@41 12068 ;;
Chris@41 12069
Chris@41 12070 tpf*)
Chris@41 12071 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Chris@41 12072 version_type=linux # correct to gnu/linux during the next big refactor
Chris@41 12073 need_lib_prefix=no
Chris@41 12074 need_version=no
Chris@41 12075 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 12076 shlibpath_var=LD_LIBRARY_PATH
Chris@41 12077 shlibpath_overrides_runpath=no
Chris@41 12078 hardcode_into_libs=yes
Chris@41 12079 ;;
Chris@41 12080
Chris@41 12081 uts4*)
Chris@41 12082 version_type=linux # correct to gnu/linux during the next big refactor
Chris@41 12083 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 12084 soname_spec='$libname$release$shared_ext$major'
Chris@41 12085 shlibpath_var=LD_LIBRARY_PATH
Chris@41 12086 ;;
Chris@41 12087
Chris@41 12088 *)
Chris@41 12089 dynamic_linker=no
Chris@41 12090 ;;
Chris@41 12091 esac
Chris@41 12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Chris@41 12093 $as_echo "$dynamic_linker" >&6; }
Chris@41 12094 test no = "$dynamic_linker" && can_build_shared=no
Chris@41 12095
Chris@41 12096 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Chris@41 12097 if test yes = "$GCC"; then
Chris@41 12098 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
Chris@41 12099 fi
Chris@41 12100
Chris@41 12101 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
Chris@41 12102 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
Chris@41 12103 fi
Chris@41 12104
Chris@41 12105 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
Chris@41 12106 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
Chris@41 12107 fi
Chris@41 12108
Chris@41 12109 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
Chris@41 12110 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
Chris@41 12111
Chris@41 12112 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
Chris@41 12113 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
Chris@41 12114
Chris@41 12115 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
Chris@41 12116 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
Chris@41 12117
Chris@41 12118
Chris@41 12119
Chris@41 12120
Chris@41 12121
Chris@41 12122
Chris@41 12123
Chris@41 12124
Chris@41 12125
Chris@41 12126
Chris@41 12127
Chris@41 12128
Chris@41 12129
Chris@41 12130
Chris@41 12131
Chris@41 12132
Chris@41 12133
Chris@41 12134
Chris@41 12135
Chris@41 12136
Chris@41 12137
Chris@41 12138
Chris@41 12139
Chris@41 12140
Chris@41 12141
Chris@41 12142
Chris@41 12143
Chris@41 12144
Chris@41 12145
Chris@41 12146
Chris@41 12147
Chris@41 12148
Chris@41 12149
Chris@41 12150
Chris@41 12151
Chris@41 12152
Chris@41 12153
Chris@41 12154
Chris@41 12155
Chris@41 12156
Chris@41 12157
Chris@41 12158
Chris@41 12159
Chris@41 12160
Chris@41 12161
Chris@41 12162
Chris@41 12163
Chris@41 12164
Chris@41 12165
Chris@41 12166
Chris@41 12167
Chris@41 12168
Chris@41 12169
Chris@41 12170
Chris@41 12171
Chris@41 12172
Chris@41 12173
Chris@41 12174
Chris@41 12175
Chris@41 12176
Chris@41 12177
Chris@41 12178
Chris@41 12179
Chris@41 12180
Chris@41 12181
Chris@41 12182
Chris@41 12183
Chris@41 12184
Chris@41 12185
Chris@41 12186
Chris@41 12187
Chris@41 12188
Chris@41 12189
Chris@41 12190
Chris@41 12191
Chris@41 12192
Chris@41 12193
Chris@41 12194
Chris@41 12195
Chris@41 12196
Chris@41 12197
Chris@41 12198
Chris@41 12199
Chris@41 12200
Chris@41 12201
Chris@41 12202
Chris@41 12203
Chris@41 12204
Chris@41 12205
Chris@41 12206
Chris@41 12207
Chris@41 12208
Chris@41 12209
Chris@41 12210
Chris@41 12211
Chris@41 12212
Chris@41 12213
Chris@41 12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Chris@41 12215 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Chris@41 12216 hardcode_action=
Chris@41 12217 if test -n "$hardcode_libdir_flag_spec" ||
Chris@41 12218 test -n "$runpath_var" ||
Chris@41 12219 test yes = "$hardcode_automatic"; then
Chris@41 12220
Chris@41 12221 # We can hardcode non-existent directories.
Chris@41 12222 if test no != "$hardcode_direct" &&
Chris@41 12223 # If the only mechanism to avoid hardcoding is shlibpath_var, we
Chris@41 12224 # have to relink, otherwise we might link with an installed library
Chris@41 12225 # when we should be linking with a yet-to-be-installed one
Chris@41 12226 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
Chris@41 12227 test no != "$hardcode_minus_L"; then
Chris@41 12228 # Linking always hardcodes the temporary library directory.
Chris@41 12229 hardcode_action=relink
Chris@41 12230 else
Chris@41 12231 # We can link without hardcoding, and we can hardcode nonexisting dirs.
Chris@41 12232 hardcode_action=immediate
Chris@41 12233 fi
Chris@41 12234 else
Chris@41 12235 # We cannot hardcode anything, or else we can only hardcode existing
Chris@41 12236 # directories.
Chris@41 12237 hardcode_action=unsupported
Chris@41 12238 fi
Chris@41 12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
Chris@41 12240 $as_echo "$hardcode_action" >&6; }
Chris@41 12241
Chris@41 12242 if test relink = "$hardcode_action" ||
Chris@41 12243 test yes = "$inherit_rpath"; then
Chris@41 12244 # Fast installation is not supported
Chris@41 12245 enable_fast_install=no
Chris@41 12246 elif test yes = "$shlibpath_overrides_runpath" ||
Chris@41 12247 test no = "$enable_shared"; then
Chris@41 12248 # Fast installation is not necessary
Chris@41 12249 enable_fast_install=needless
Chris@41 12250 fi
Chris@41 12251
Chris@41 12252
Chris@41 12253
Chris@41 12254
Chris@41 12255
Chris@41 12256
Chris@41 12257 if test yes != "$enable_dlopen"; then
Chris@41 12258 enable_dlopen=unknown
Chris@41 12259 enable_dlopen_self=unknown
Chris@41 12260 enable_dlopen_self_static=unknown
Chris@41 12261 else
Chris@41 12262 lt_cv_dlopen=no
Chris@41 12263 lt_cv_dlopen_libs=
Chris@41 12264
Chris@41 12265 case $host_os in
Chris@41 12266 beos*)
Chris@41 12267 lt_cv_dlopen=load_add_on
Chris@41 12268 lt_cv_dlopen_libs=
Chris@41 12269 lt_cv_dlopen_self=yes
Chris@41 12270 ;;
Chris@41 12271
Chris@41 12272 mingw* | pw32* | cegcc*)
Chris@41 12273 lt_cv_dlopen=LoadLibrary
Chris@41 12274 lt_cv_dlopen_libs=
Chris@41 12275 ;;
Chris@41 12276
Chris@41 12277 cygwin*)
Chris@41 12278 lt_cv_dlopen=dlopen
Chris@41 12279 lt_cv_dlopen_libs=
Chris@41 12280 ;;
Chris@41 12281
Chris@41 12282 darwin*)
Chris@41 12283 # if libdl is installed we need to link against it
Chris@41 12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Chris@41 12285 $as_echo_n "checking for dlopen in -ldl... " >&6; }
Chris@41 12286 if ${ac_cv_lib_dl_dlopen+:} false; then :
Chris@41 12287 $as_echo_n "(cached) " >&6
Chris@41 12288 else
Chris@41 12289 ac_check_lib_save_LIBS=$LIBS
Chris@41 12290 LIBS="-ldl $LIBS"
Chris@41 12291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 12292 /* end confdefs.h. */
Chris@41 12293
Chris@41 12294 /* Override any GCC internal prototype to avoid an error.
Chris@41 12295 Use char because int might match the return type of a GCC
Chris@41 12296 builtin and then its argument prototype would still apply. */
Chris@41 12297 #ifdef __cplusplus
Chris@41 12298 extern "C"
Chris@41 12299 #endif
Chris@41 12300 char dlopen ();
Chris@41 12301 int
Chris@41 12302 main ()
Chris@41 12303 {
Chris@41 12304 return dlopen ();
Chris@41 12305 ;
Chris@41 12306 return 0;
Chris@41 12307 }
Chris@41 12308 _ACEOF
Chris@41 12309 if ac_fn_c_try_link "$LINENO"; then :
Chris@41 12310 ac_cv_lib_dl_dlopen=yes
Chris@41 12311 else
Chris@41 12312 ac_cv_lib_dl_dlopen=no
Chris@41 12313 fi
Chris@41 12314 rm -f core conftest.err conftest.$ac_objext \
Chris@41 12315 conftest$ac_exeext conftest.$ac_ext
Chris@41 12316 LIBS=$ac_check_lib_save_LIBS
Chris@41 12317 fi
Chris@41 12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Chris@41 12319 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Chris@41 12320 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Chris@41 12321 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
Chris@41 12322 else
Chris@41 12323
Chris@41 12324 lt_cv_dlopen=dyld
Chris@41 12325 lt_cv_dlopen_libs=
Chris@41 12326 lt_cv_dlopen_self=yes
Chris@41 12327
Chris@41 12328 fi
Chris@41 12329
Chris@41 12330 ;;
Chris@41 12331
Chris@41 12332 tpf*)
Chris@41 12333 # Don't try to run any link tests for TPF. We know it's impossible
Chris@41 12334 # because TPF is a cross-compiler, and we know how we open DSOs.
Chris@41 12335 lt_cv_dlopen=dlopen
Chris@41 12336 lt_cv_dlopen_libs=
Chris@41 12337 lt_cv_dlopen_self=no
Chris@41 12338 ;;
Chris@41 12339
Chris@41 12340 *)
Chris@41 12341 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
Chris@41 12342 if test "x$ac_cv_func_shl_load" = xyes; then :
Chris@41 12343 lt_cv_dlopen=shl_load
Chris@41 12344 else
Chris@41 12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
Chris@41 12346 $as_echo_n "checking for shl_load in -ldld... " >&6; }
Chris@41 12347 if ${ac_cv_lib_dld_shl_load+:} false; then :
Chris@41 12348 $as_echo_n "(cached) " >&6
Chris@41 12349 else
Chris@41 12350 ac_check_lib_save_LIBS=$LIBS
Chris@41 12351 LIBS="-ldld $LIBS"
Chris@41 12352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 12353 /* end confdefs.h. */
Chris@41 12354
Chris@41 12355 /* Override any GCC internal prototype to avoid an error.
Chris@41 12356 Use char because int might match the return type of a GCC
Chris@41 12357 builtin and then its argument prototype would still apply. */
Chris@41 12358 #ifdef __cplusplus
Chris@41 12359 extern "C"
Chris@41 12360 #endif
Chris@41 12361 char shl_load ();
Chris@41 12362 int
Chris@41 12363 main ()
Chris@41 12364 {
Chris@41 12365 return shl_load ();
Chris@41 12366 ;
Chris@41 12367 return 0;
Chris@41 12368 }
Chris@41 12369 _ACEOF
Chris@41 12370 if ac_fn_c_try_link "$LINENO"; then :
Chris@41 12371 ac_cv_lib_dld_shl_load=yes
Chris@41 12372 else
Chris@41 12373 ac_cv_lib_dld_shl_load=no
Chris@41 12374 fi
Chris@41 12375 rm -f core conftest.err conftest.$ac_objext \
Chris@41 12376 conftest$ac_exeext conftest.$ac_ext
Chris@41 12377 LIBS=$ac_check_lib_save_LIBS
Chris@41 12378 fi
Chris@41 12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
Chris@41 12380 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Chris@41 12381 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Chris@41 12382 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
Chris@41 12383 else
Chris@41 12384 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
Chris@41 12385 if test "x$ac_cv_func_dlopen" = xyes; then :
Chris@41 12386 lt_cv_dlopen=dlopen
Chris@41 12387 else
Chris@41 12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Chris@41 12389 $as_echo_n "checking for dlopen in -ldl... " >&6; }
Chris@41 12390 if ${ac_cv_lib_dl_dlopen+:} false; then :
Chris@41 12391 $as_echo_n "(cached) " >&6
Chris@41 12392 else
Chris@41 12393 ac_check_lib_save_LIBS=$LIBS
Chris@41 12394 LIBS="-ldl $LIBS"
Chris@41 12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 12396 /* end confdefs.h. */
Chris@41 12397
Chris@41 12398 /* Override any GCC internal prototype to avoid an error.
Chris@41 12399 Use char because int might match the return type of a GCC
Chris@41 12400 builtin and then its argument prototype would still apply. */
Chris@41 12401 #ifdef __cplusplus
Chris@41 12402 extern "C"
Chris@41 12403 #endif
Chris@41 12404 char dlopen ();
Chris@41 12405 int
Chris@41 12406 main ()
Chris@41 12407 {
Chris@41 12408 return dlopen ();
Chris@41 12409 ;
Chris@41 12410 return 0;
Chris@41 12411 }
Chris@41 12412 _ACEOF
Chris@41 12413 if ac_fn_c_try_link "$LINENO"; then :
Chris@41 12414 ac_cv_lib_dl_dlopen=yes
Chris@41 12415 else
Chris@41 12416 ac_cv_lib_dl_dlopen=no
Chris@41 12417 fi
Chris@41 12418 rm -f core conftest.err conftest.$ac_objext \
Chris@41 12419 conftest$ac_exeext conftest.$ac_ext
Chris@41 12420 LIBS=$ac_check_lib_save_LIBS
Chris@41 12421 fi
Chris@41 12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Chris@41 12423 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Chris@41 12424 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Chris@41 12425 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
Chris@41 12426 else
Chris@41 12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
Chris@41 12428 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
Chris@41 12429 if ${ac_cv_lib_svld_dlopen+:} false; then :
Chris@41 12430 $as_echo_n "(cached) " >&6
Chris@41 12431 else
Chris@41 12432 ac_check_lib_save_LIBS=$LIBS
Chris@41 12433 LIBS="-lsvld $LIBS"
Chris@41 12434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 12435 /* end confdefs.h. */
Chris@41 12436
Chris@41 12437 /* Override any GCC internal prototype to avoid an error.
Chris@41 12438 Use char because int might match the return type of a GCC
Chris@41 12439 builtin and then its argument prototype would still apply. */
Chris@41 12440 #ifdef __cplusplus
Chris@41 12441 extern "C"
Chris@41 12442 #endif
Chris@41 12443 char dlopen ();
Chris@41 12444 int
Chris@41 12445 main ()
Chris@41 12446 {
Chris@41 12447 return dlopen ();
Chris@41 12448 ;
Chris@41 12449 return 0;
Chris@41 12450 }
Chris@41 12451 _ACEOF
Chris@41 12452 if ac_fn_c_try_link "$LINENO"; then :
Chris@41 12453 ac_cv_lib_svld_dlopen=yes
Chris@41 12454 else
Chris@41 12455 ac_cv_lib_svld_dlopen=no
Chris@41 12456 fi
Chris@41 12457 rm -f core conftest.err conftest.$ac_objext \
Chris@41 12458 conftest$ac_exeext conftest.$ac_ext
Chris@41 12459 LIBS=$ac_check_lib_save_LIBS
Chris@41 12460 fi
Chris@41 12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
Chris@41 12462 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Chris@41 12463 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Chris@41 12464 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
Chris@41 12465 else
Chris@41 12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
Chris@41 12467 $as_echo_n "checking for dld_link in -ldld... " >&6; }
Chris@41 12468 if ${ac_cv_lib_dld_dld_link+:} false; then :
Chris@41 12469 $as_echo_n "(cached) " >&6
Chris@41 12470 else
Chris@41 12471 ac_check_lib_save_LIBS=$LIBS
Chris@41 12472 LIBS="-ldld $LIBS"
Chris@41 12473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 12474 /* end confdefs.h. */
Chris@41 12475
Chris@41 12476 /* Override any GCC internal prototype to avoid an error.
Chris@41 12477 Use char because int might match the return type of a GCC
Chris@41 12478 builtin and then its argument prototype would still apply. */
Chris@41 12479 #ifdef __cplusplus
Chris@41 12480 extern "C"
Chris@41 12481 #endif
Chris@41 12482 char dld_link ();
Chris@41 12483 int
Chris@41 12484 main ()
Chris@41 12485 {
Chris@41 12486 return dld_link ();
Chris@41 12487 ;
Chris@41 12488 return 0;
Chris@41 12489 }
Chris@41 12490 _ACEOF
Chris@41 12491 if ac_fn_c_try_link "$LINENO"; then :
Chris@41 12492 ac_cv_lib_dld_dld_link=yes
Chris@41 12493 else
Chris@41 12494 ac_cv_lib_dld_dld_link=no
Chris@41 12495 fi
Chris@41 12496 rm -f core conftest.err conftest.$ac_objext \
Chris@41 12497 conftest$ac_exeext conftest.$ac_ext
Chris@41 12498 LIBS=$ac_check_lib_save_LIBS
Chris@41 12499 fi
Chris@41 12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
Chris@41 12501 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Chris@41 12502 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Chris@41 12503 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
Chris@41 12504 fi
Chris@41 12505
Chris@41 12506
Chris@41 12507 fi
Chris@41 12508
Chris@41 12509
Chris@41 12510 fi
Chris@41 12511
Chris@41 12512
Chris@41 12513 fi
Chris@41 12514
Chris@41 12515
Chris@41 12516 fi
Chris@41 12517
Chris@41 12518
Chris@41 12519 fi
Chris@41 12520
Chris@41 12521 ;;
Chris@41 12522 esac
Chris@41 12523
Chris@41 12524 if test no = "$lt_cv_dlopen"; then
Chris@41 12525 enable_dlopen=no
Chris@41 12526 else
Chris@41 12527 enable_dlopen=yes
Chris@41 12528 fi
Chris@41 12529
Chris@41 12530 case $lt_cv_dlopen in
Chris@41 12531 dlopen)
Chris@41 12532 save_CPPFLAGS=$CPPFLAGS
Chris@41 12533 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Chris@41 12534
Chris@41 12535 save_LDFLAGS=$LDFLAGS
Chris@41 12536 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Chris@41 12537
Chris@41 12538 save_LIBS=$LIBS
Chris@41 12539 LIBS="$lt_cv_dlopen_libs $LIBS"
Chris@41 12540
Chris@41 12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
Chris@41 12542 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
Chris@41 12543 if ${lt_cv_dlopen_self+:} false; then :
Chris@41 12544 $as_echo_n "(cached) " >&6
Chris@41 12545 else
Chris@41 12546 if test yes = "$cross_compiling"; then :
Chris@41 12547 lt_cv_dlopen_self=cross
Chris@41 12548 else
Chris@41 12549 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Chris@41 12550 lt_status=$lt_dlunknown
Chris@41 12551 cat > conftest.$ac_ext <<_LT_EOF
Chris@41 12552 #line $LINENO "configure"
Chris@41 12553 #include "confdefs.h"
Chris@41 12554
Chris@41 12555 #if HAVE_DLFCN_H
Chris@41 12556 #include <dlfcn.h>
Chris@41 12557 #endif
Chris@41 12558
Chris@41 12559 #include <stdio.h>
Chris@41 12560
Chris@41 12561 #ifdef RTLD_GLOBAL
Chris@41 12562 # define LT_DLGLOBAL RTLD_GLOBAL
Chris@41 12563 #else
Chris@41 12564 # ifdef DL_GLOBAL
Chris@41 12565 # define LT_DLGLOBAL DL_GLOBAL
Chris@41 12566 # else
Chris@41 12567 # define LT_DLGLOBAL 0
Chris@41 12568 # endif
Chris@41 12569 #endif
Chris@41 12570
Chris@41 12571 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Chris@41 12572 find out it does not work in some platform. */
Chris@41 12573 #ifndef LT_DLLAZY_OR_NOW
Chris@41 12574 # ifdef RTLD_LAZY
Chris@41 12575 # define LT_DLLAZY_OR_NOW RTLD_LAZY
Chris@41 12576 # else
Chris@41 12577 # ifdef DL_LAZY
Chris@41 12578 # define LT_DLLAZY_OR_NOW DL_LAZY
Chris@41 12579 # else
Chris@41 12580 # ifdef RTLD_NOW
Chris@41 12581 # define LT_DLLAZY_OR_NOW RTLD_NOW
Chris@41 12582 # else
Chris@41 12583 # ifdef DL_NOW
Chris@41 12584 # define LT_DLLAZY_OR_NOW DL_NOW
Chris@41 12585 # else
Chris@41 12586 # define LT_DLLAZY_OR_NOW 0
Chris@41 12587 # endif
Chris@41 12588 # endif
Chris@41 12589 # endif
Chris@41 12590 # endif
Chris@41 12591 #endif
Chris@41 12592
Chris@41 12593 /* When -fvisibility=hidden is used, assume the code has been annotated
Chris@41 12594 correspondingly for the symbols needed. */
Chris@41 12595 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Chris@41 12596 int fnord () __attribute__((visibility("default")));
Chris@41 12597 #endif
Chris@41 12598
Chris@41 12599 int fnord () { return 42; }
Chris@41 12600 int main ()
Chris@41 12601 {
Chris@41 12602 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Chris@41 12603 int status = $lt_dlunknown;
Chris@41 12604
Chris@41 12605 if (self)
Chris@41 12606 {
Chris@41 12607 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Chris@41 12608 else
Chris@41 12609 {
Chris@41 12610 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Chris@41 12611 else puts (dlerror ());
Chris@41 12612 }
Chris@41 12613 /* dlclose (self); */
Chris@41 12614 }
Chris@41 12615 else
Chris@41 12616 puts (dlerror ());
Chris@41 12617
Chris@41 12618 return status;
Chris@41 12619 }
Chris@41 12620 _LT_EOF
Chris@41 12621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Chris@41 12622 (eval $ac_link) 2>&5
Chris@41 12623 ac_status=$?
Chris@41 12624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 12625 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
Chris@41 12626 (./conftest; exit; ) >&5 2>/dev/null
Chris@41 12627 lt_status=$?
Chris@41 12628 case x$lt_status in
Chris@41 12629 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
Chris@41 12630 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Chris@41 12631 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
Chris@41 12632 esac
Chris@41 12633 else :
Chris@41 12634 # compilation failed
Chris@41 12635 lt_cv_dlopen_self=no
Chris@41 12636 fi
Chris@41 12637 fi
Chris@41 12638 rm -fr conftest*
Chris@41 12639
Chris@41 12640
Chris@41 12641 fi
Chris@41 12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
Chris@41 12643 $as_echo "$lt_cv_dlopen_self" >&6; }
Chris@41 12644
Chris@41 12645 if test yes = "$lt_cv_dlopen_self"; then
Chris@41 12646 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Chris@41 12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
Chris@41 12648 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Chris@41 12649 if ${lt_cv_dlopen_self_static+:} false; then :
Chris@41 12650 $as_echo_n "(cached) " >&6
Chris@41 12651 else
Chris@41 12652 if test yes = "$cross_compiling"; then :
Chris@41 12653 lt_cv_dlopen_self_static=cross
Chris@41 12654 else
Chris@41 12655 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Chris@41 12656 lt_status=$lt_dlunknown
Chris@41 12657 cat > conftest.$ac_ext <<_LT_EOF
Chris@41 12658 #line $LINENO "configure"
Chris@41 12659 #include "confdefs.h"
Chris@41 12660
Chris@41 12661 #if HAVE_DLFCN_H
Chris@41 12662 #include <dlfcn.h>
Chris@41 12663 #endif
Chris@41 12664
Chris@41 12665 #include <stdio.h>
Chris@41 12666
Chris@41 12667 #ifdef RTLD_GLOBAL
Chris@41 12668 # define LT_DLGLOBAL RTLD_GLOBAL
Chris@41 12669 #else
Chris@41 12670 # ifdef DL_GLOBAL
Chris@41 12671 # define LT_DLGLOBAL DL_GLOBAL
Chris@41 12672 # else
Chris@41 12673 # define LT_DLGLOBAL 0
Chris@41 12674 # endif
Chris@41 12675 #endif
Chris@41 12676
Chris@41 12677 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Chris@41 12678 find out it does not work in some platform. */
Chris@41 12679 #ifndef LT_DLLAZY_OR_NOW
Chris@41 12680 # ifdef RTLD_LAZY
Chris@41 12681 # define LT_DLLAZY_OR_NOW RTLD_LAZY
Chris@41 12682 # else
Chris@41 12683 # ifdef DL_LAZY
Chris@41 12684 # define LT_DLLAZY_OR_NOW DL_LAZY
Chris@41 12685 # else
Chris@41 12686 # ifdef RTLD_NOW
Chris@41 12687 # define LT_DLLAZY_OR_NOW RTLD_NOW
Chris@41 12688 # else
Chris@41 12689 # ifdef DL_NOW
Chris@41 12690 # define LT_DLLAZY_OR_NOW DL_NOW
Chris@41 12691 # else
Chris@41 12692 # define LT_DLLAZY_OR_NOW 0
Chris@41 12693 # endif
Chris@41 12694 # endif
Chris@41 12695 # endif
Chris@41 12696 # endif
Chris@41 12697 #endif
Chris@41 12698
Chris@41 12699 /* When -fvisibility=hidden is used, assume the code has been annotated
Chris@41 12700 correspondingly for the symbols needed. */
Chris@41 12701 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Chris@41 12702 int fnord () __attribute__((visibility("default")));
Chris@41 12703 #endif
Chris@41 12704
Chris@41 12705 int fnord () { return 42; }
Chris@41 12706 int main ()
Chris@41 12707 {
Chris@41 12708 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Chris@41 12709 int status = $lt_dlunknown;
Chris@41 12710
Chris@41 12711 if (self)
Chris@41 12712 {
Chris@41 12713 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Chris@41 12714 else
Chris@41 12715 {
Chris@41 12716 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Chris@41 12717 else puts (dlerror ());
Chris@41 12718 }
Chris@41 12719 /* dlclose (self); */
Chris@41 12720 }
Chris@41 12721 else
Chris@41 12722 puts (dlerror ());
Chris@41 12723
Chris@41 12724 return status;
Chris@41 12725 }
Chris@41 12726 _LT_EOF
Chris@41 12727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Chris@41 12728 (eval $ac_link) 2>&5
Chris@41 12729 ac_status=$?
Chris@41 12730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 12731 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
Chris@41 12732 (./conftest; exit; ) >&5 2>/dev/null
Chris@41 12733 lt_status=$?
Chris@41 12734 case x$lt_status in
Chris@41 12735 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
Chris@41 12736 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Chris@41 12737 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
Chris@41 12738 esac
Chris@41 12739 else :
Chris@41 12740 # compilation failed
Chris@41 12741 lt_cv_dlopen_self_static=no
Chris@41 12742 fi
Chris@41 12743 fi
Chris@41 12744 rm -fr conftest*
Chris@41 12745
Chris@41 12746
Chris@41 12747 fi
Chris@41 12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
Chris@41 12749 $as_echo "$lt_cv_dlopen_self_static" >&6; }
Chris@41 12750 fi
Chris@41 12751
Chris@41 12752 CPPFLAGS=$save_CPPFLAGS
Chris@41 12753 LDFLAGS=$save_LDFLAGS
Chris@41 12754 LIBS=$save_LIBS
Chris@41 12755 ;;
Chris@41 12756 esac
Chris@41 12757
Chris@41 12758 case $lt_cv_dlopen_self in
Chris@41 12759 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
Chris@41 12760 *) enable_dlopen_self=unknown ;;
Chris@41 12761 esac
Chris@41 12762
Chris@41 12763 case $lt_cv_dlopen_self_static in
Chris@41 12764 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
Chris@41 12765 *) enable_dlopen_self_static=unknown ;;
Chris@41 12766 esac
Chris@41 12767 fi
Chris@41 12768
Chris@41 12769
Chris@41 12770
Chris@41 12771
Chris@41 12772
Chris@41 12773
Chris@41 12774
Chris@41 12775
Chris@41 12776
Chris@41 12777
Chris@41 12778
Chris@41 12779
Chris@41 12780
Chris@41 12781
Chris@41 12782
Chris@41 12783
Chris@41 12784
Chris@41 12785 striplib=
Chris@41 12786 old_striplib=
Chris@41 12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
Chris@41 12788 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
Chris@41 12789 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
Chris@41 12790 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
Chris@41 12791 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Chris@41 12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@41 12793 $as_echo "yes" >&6; }
Chris@41 12794 else
Chris@41 12795 # FIXME - insert some real tests, host_os isn't really good enough
Chris@41 12796 case $host_os in
Chris@41 12797 darwin*)
Chris@41 12798 if test -n "$STRIP"; then
Chris@41 12799 striplib="$STRIP -x"
Chris@41 12800 old_striplib="$STRIP -S"
Chris@41 12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@41 12802 $as_echo "yes" >&6; }
Chris@41 12803 else
Chris@41 12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 12805 $as_echo "no" >&6; }
Chris@41 12806 fi
Chris@41 12807 ;;
Chris@41 12808 *)
Chris@41 12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 12810 $as_echo "no" >&6; }
Chris@41 12811 ;;
Chris@41 12812 esac
Chris@41 12813 fi
Chris@41 12814
Chris@41 12815
Chris@41 12816
Chris@41 12817
Chris@41 12818
Chris@41 12819
Chris@41 12820
Chris@41 12821
Chris@41 12822
Chris@41 12823
Chris@41 12824
Chris@41 12825
Chris@41 12826 # Report what library types will actually be built
Chris@41 12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
Chris@41 12828 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
Chris@41 12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
Chris@41 12830 $as_echo "$can_build_shared" >&6; }
Chris@41 12831
Chris@41 12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
Chris@41 12833 $as_echo_n "checking whether to build shared libraries... " >&6; }
Chris@41 12834 test no = "$can_build_shared" && enable_shared=no
Chris@41 12835
Chris@41 12836 # On AIX, shared libraries and static libraries use the same namespace, and
Chris@41 12837 # are all built from PIC.
Chris@41 12838 case $host_os in
Chris@41 12839 aix3*)
Chris@41 12840 test yes = "$enable_shared" && enable_static=no
Chris@41 12841 if test -n "$RANLIB"; then
Chris@41 12842 archive_cmds="$archive_cmds~\$RANLIB \$lib"
Chris@41 12843 postinstall_cmds='$RANLIB $lib'
Chris@41 12844 fi
Chris@41 12845 ;;
Chris@41 12846
Chris@41 12847 aix[4-9]*)
Chris@41 12848 if test ia64 != "$host_cpu"; then
Chris@41 12849 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
Chris@41 12850 yes,aix,yes) ;; # shared object as lib.so file only
Chris@41 12851 yes,svr4,*) ;; # shared object as lib.so archive member only
Chris@41 12852 yes,*) enable_static=no ;; # shared object in lib.a archive as well
Chris@41 12853 esac
Chris@41 12854 fi
Chris@41 12855 ;;
Chris@41 12856 esac
Chris@41 12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
Chris@41 12858 $as_echo "$enable_shared" >&6; }
Chris@41 12859
Chris@41 12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
Chris@41 12861 $as_echo_n "checking whether to build static libraries... " >&6; }
Chris@41 12862 # Make sure either enable_shared or enable_static is yes.
Chris@41 12863 test yes = "$enable_shared" || enable_static=yes
Chris@41 12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
Chris@41 12865 $as_echo "$enable_static" >&6; }
Chris@41 12866
Chris@41 12867
Chris@41 12868
Chris@41 12869
Chris@41 12870 fi
Chris@41 12871 ac_ext=c
Chris@41 12872 ac_cpp='$CPP $CPPFLAGS'
Chris@41 12873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@41 12874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@41 12875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@41 12876
Chris@41 12877 CC=$lt_save_CC
Chris@41 12878
Chris@41 12879 if test -n "$CXX" && ( test no != "$CXX" &&
Chris@41 12880 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
Chris@41 12881 (test g++ != "$CXX"))); then
Chris@41 12882 ac_ext=cpp
Chris@41 12883 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@41 12884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@41 12885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@41 12886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@41 12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
Chris@41 12888 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
Chris@41 12889 if test -z "$CXXCPP"; then
Chris@41 12890 if ${ac_cv_prog_CXXCPP+:} false; then :
Chris@41 12891 $as_echo_n "(cached) " >&6
Chris@41 12892 else
Chris@41 12893 # Double quotes because CXXCPP needs to be expanded
Chris@41 12894 for CXXCPP in "$CXX -E" "/lib/cpp"
Chris@41 12895 do
Chris@41 12896 ac_preproc_ok=false
Chris@41 12897 for ac_cxx_preproc_warn_flag in '' yes
Chris@41 12898 do
Chris@41 12899 # Use a header file that comes with gcc, so configuring glibc
Chris@41 12900 # with a fresh cross-compiler works.
Chris@41 12901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@41 12902 # <limits.h> exists even on freestanding compilers.
Chris@41 12903 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@41 12904 # not just through cpp. "Syntax error" is here to catch this case.
Chris@41 12905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 12906 /* end confdefs.h. */
Chris@41 12907 #ifdef __STDC__
Chris@41 12908 # include <limits.h>
Chris@41 12909 #else
Chris@41 12910 # include <assert.h>
Chris@41 12911 #endif
Chris@41 12912 Syntax error
Chris@41 12913 _ACEOF
Chris@41 12914 if ac_fn_cxx_try_cpp "$LINENO"; then :
Chris@41 12915
Chris@41 12916 else
Chris@41 12917 # Broken: fails on valid input.
Chris@41 12918 continue
Chris@41 12919 fi
Chris@41 12920 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@41 12921
Chris@41 12922 # OK, works on sane cases. Now check whether nonexistent headers
Chris@41 12923 # can be detected and how.
Chris@41 12924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 12925 /* end confdefs.h. */
Chris@41 12926 #include <ac_nonexistent.h>
Chris@41 12927 _ACEOF
Chris@41 12928 if ac_fn_cxx_try_cpp "$LINENO"; then :
Chris@41 12929 # Broken: success on invalid input.
Chris@41 12930 continue
Chris@41 12931 else
Chris@41 12932 # Passes both tests.
Chris@41 12933 ac_preproc_ok=:
Chris@41 12934 break
Chris@41 12935 fi
Chris@41 12936 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@41 12937
Chris@41 12938 done
Chris@41 12939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@41 12940 rm -f conftest.i conftest.err conftest.$ac_ext
Chris@41 12941 if $ac_preproc_ok; then :
Chris@41 12942 break
Chris@41 12943 fi
Chris@41 12944
Chris@41 12945 done
Chris@41 12946 ac_cv_prog_CXXCPP=$CXXCPP
Chris@41 12947
Chris@41 12948 fi
Chris@41 12949 CXXCPP=$ac_cv_prog_CXXCPP
Chris@41 12950 else
Chris@41 12951 ac_cv_prog_CXXCPP=$CXXCPP
Chris@41 12952 fi
Chris@41 12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
Chris@41 12954 $as_echo "$CXXCPP" >&6; }
Chris@41 12955 ac_preproc_ok=false
Chris@41 12956 for ac_cxx_preproc_warn_flag in '' yes
Chris@41 12957 do
Chris@41 12958 # Use a header file that comes with gcc, so configuring glibc
Chris@41 12959 # with a fresh cross-compiler works.
Chris@41 12960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@41 12961 # <limits.h> exists even on freestanding compilers.
Chris@41 12962 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@41 12963 # not just through cpp. "Syntax error" is here to catch this case.
Chris@41 12964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 12965 /* end confdefs.h. */
Chris@41 12966 #ifdef __STDC__
Chris@41 12967 # include <limits.h>
Chris@41 12968 #else
Chris@41 12969 # include <assert.h>
Chris@41 12970 #endif
Chris@41 12971 Syntax error
Chris@41 12972 _ACEOF
Chris@41 12973 if ac_fn_cxx_try_cpp "$LINENO"; then :
Chris@41 12974
Chris@41 12975 else
Chris@41 12976 # Broken: fails on valid input.
Chris@41 12977 continue
Chris@41 12978 fi
Chris@41 12979 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@41 12980
Chris@41 12981 # OK, works on sane cases. Now check whether nonexistent headers
Chris@41 12982 # can be detected and how.
Chris@41 12983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 12984 /* end confdefs.h. */
Chris@41 12985 #include <ac_nonexistent.h>
Chris@41 12986 _ACEOF
Chris@41 12987 if ac_fn_cxx_try_cpp "$LINENO"; then :
Chris@41 12988 # Broken: success on invalid input.
Chris@41 12989 continue
Chris@41 12990 else
Chris@41 12991 # Passes both tests.
Chris@41 12992 ac_preproc_ok=:
Chris@41 12993 break
Chris@41 12994 fi
Chris@41 12995 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@41 12996
Chris@41 12997 done
Chris@41 12998 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@41 12999 rm -f conftest.i conftest.err conftest.$ac_ext
Chris@41 13000 if $ac_preproc_ok; then :
Chris@41 13001
Chris@41 13002 else
Chris@41 13003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@41 13004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@41 13005 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
Chris@41 13006 See \`config.log' for more details" "$LINENO" 5; }
Chris@41 13007 fi
Chris@41 13008
Chris@41 13009 ac_ext=c
Chris@41 13010 ac_cpp='$CPP $CPPFLAGS'
Chris@41 13011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@41 13012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@41 13013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@41 13014
Chris@41 13015 else
Chris@41 13016 _lt_caught_CXX_error=yes
Chris@41 13017 fi
Chris@41 13018
Chris@41 13019 ac_ext=cpp
Chris@41 13020 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@41 13021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@41 13022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@41 13023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@41 13024
Chris@41 13025 archive_cmds_need_lc_CXX=no
Chris@41 13026 allow_undefined_flag_CXX=
Chris@41 13027 always_export_symbols_CXX=no
Chris@41 13028 archive_expsym_cmds_CXX=
Chris@41 13029 compiler_needs_object_CXX=no
Chris@41 13030 export_dynamic_flag_spec_CXX=
Chris@41 13031 hardcode_direct_CXX=no
Chris@41 13032 hardcode_direct_absolute_CXX=no
Chris@41 13033 hardcode_libdir_flag_spec_CXX=
Chris@41 13034 hardcode_libdir_separator_CXX=
Chris@41 13035 hardcode_minus_L_CXX=no
Chris@41 13036 hardcode_shlibpath_var_CXX=unsupported
Chris@41 13037 hardcode_automatic_CXX=no
Chris@41 13038 inherit_rpath_CXX=no
Chris@41 13039 module_cmds_CXX=
Chris@41 13040 module_expsym_cmds_CXX=
Chris@41 13041 link_all_deplibs_CXX=unknown
Chris@41 13042 old_archive_cmds_CXX=$old_archive_cmds
Chris@41 13043 reload_flag_CXX=$reload_flag
Chris@41 13044 reload_cmds_CXX=$reload_cmds
Chris@41 13045 no_undefined_flag_CXX=
Chris@41 13046 whole_archive_flag_spec_CXX=
Chris@41 13047 enable_shared_with_static_runtimes_CXX=no
Chris@41 13048
Chris@41 13049 # Source file extension for C++ test sources.
Chris@41 13050 ac_ext=cpp
Chris@41 13051
Chris@41 13052 # Object file extension for compiled C++ test sources.
Chris@41 13053 objext=o
Chris@41 13054 objext_CXX=$objext
Chris@41 13055
Chris@41 13056 # No sense in running all these tests if we already determined that
Chris@41 13057 # the CXX compiler isn't working. Some variables (like enable_shared)
Chris@41 13058 # are currently assumed to apply to all compilers on this platform,
Chris@41 13059 # and will be corrupted by setting them based on a non-working compiler.
Chris@41 13060 if test yes != "$_lt_caught_CXX_error"; then
Chris@41 13061 # Code to be used in simple compile tests
Chris@41 13062 lt_simple_compile_test_code="int some_variable = 0;"
Chris@41 13063
Chris@41 13064 # Code to be used in simple link tests
Chris@41 13065 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
Chris@41 13066
Chris@41 13067 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
Chris@41 13068
Chris@41 13069
Chris@41 13070
Chris@41 13071
Chris@41 13072
Chris@41 13073
Chris@41 13074 # If no C compiler was specified, use CC.
Chris@41 13075 LTCC=${LTCC-"$CC"}
Chris@41 13076
Chris@41 13077 # If no C compiler flags were specified, use CFLAGS.
Chris@41 13078 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Chris@41 13079
Chris@41 13080 # Allow CC to be a program name with arguments.
Chris@41 13081 compiler=$CC
Chris@41 13082
Chris@41 13083
Chris@41 13084 # save warnings/boilerplate of simple test code
Chris@41 13085 ac_outfile=conftest.$ac_objext
Chris@41 13086 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Chris@41 13087 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@41 13088 _lt_compiler_boilerplate=`cat conftest.err`
Chris@41 13089 $RM conftest*
Chris@41 13090
Chris@41 13091 ac_outfile=conftest.$ac_objext
Chris@41 13092 echo "$lt_simple_link_test_code" >conftest.$ac_ext
Chris@41 13093 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@41 13094 _lt_linker_boilerplate=`cat conftest.err`
Chris@41 13095 $RM -r conftest*
Chris@41 13096
Chris@41 13097
Chris@41 13098 # Allow CC to be a program name with arguments.
Chris@41 13099 lt_save_CC=$CC
Chris@41 13100 lt_save_CFLAGS=$CFLAGS
Chris@41 13101 lt_save_LD=$LD
Chris@41 13102 lt_save_GCC=$GCC
Chris@41 13103 GCC=$GXX
Chris@41 13104 lt_save_with_gnu_ld=$with_gnu_ld
Chris@41 13105 lt_save_path_LD=$lt_cv_path_LD
Chris@41 13106 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
Chris@41 13107 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
Chris@41 13108 else
Chris@41 13109 $as_unset lt_cv_prog_gnu_ld
Chris@41 13110 fi
Chris@41 13111 if test -n "${lt_cv_path_LDCXX+set}"; then
Chris@41 13112 lt_cv_path_LD=$lt_cv_path_LDCXX
Chris@41 13113 else
Chris@41 13114 $as_unset lt_cv_path_LD
Chris@41 13115 fi
Chris@41 13116 test -z "${LDCXX+set}" || LD=$LDCXX
Chris@41 13117 CC=${CXX-"c++"}
Chris@41 13118 CFLAGS=$CXXFLAGS
Chris@41 13119 compiler=$CC
Chris@41 13120 compiler_CXX=$CC
Chris@41 13121 func_cc_basename $compiler
Chris@41 13122 cc_basename=$func_cc_basename_result
Chris@41 13123
Chris@41 13124
Chris@41 13125 if test -n "$compiler"; then
Chris@41 13126 # We don't want -fno-exception when compiling C++ code, so set the
Chris@41 13127 # no_builtin_flag separately
Chris@41 13128 if test yes = "$GXX"; then
Chris@41 13129 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
Chris@41 13130 else
Chris@41 13131 lt_prog_compiler_no_builtin_flag_CXX=
Chris@41 13132 fi
Chris@41 13133
Chris@41 13134 if test yes = "$GXX"; then
Chris@41 13135 # Set up default GNU C++ configuration
Chris@41 13136
Chris@41 13137
Chris@41 13138
Chris@41 13139 # Check whether --with-gnu-ld was given.
Chris@41 13140 if test "${with_gnu_ld+set}" = set; then :
Chris@41 13141 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
Chris@41 13142 else
Chris@41 13143 with_gnu_ld=no
Chris@41 13144 fi
Chris@41 13145
Chris@41 13146 ac_prog=ld
Chris@41 13147 if test yes = "$GCC"; then
Chris@41 13148 # Check if gcc -print-prog-name=ld gives a path.
Chris@41 13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
Chris@41 13150 $as_echo_n "checking for ld used by $CC... " >&6; }
Chris@41 13151 case $host in
Chris@41 13152 *-*-mingw*)
Chris@41 13153 # gcc leaves a trailing carriage return, which upsets mingw
Chris@41 13154 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
Chris@41 13155 *)
Chris@41 13156 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
Chris@41 13157 esac
Chris@41 13158 case $ac_prog in
Chris@41 13159 # Accept absolute paths.
Chris@41 13160 [\\/]* | ?:[\\/]*)
Chris@41 13161 re_direlt='/[^/][^/]*/\.\./'
Chris@41 13162 # Canonicalize the pathname of ld
Chris@41 13163 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
Chris@41 13164 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
Chris@41 13165 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Chris@41 13166 done
Chris@41 13167 test -z "$LD" && LD=$ac_prog
Chris@41 13168 ;;
Chris@41 13169 "")
Chris@41 13170 # If it fails, then pretend we aren't using GCC.
Chris@41 13171 ac_prog=ld
Chris@41 13172 ;;
Chris@41 13173 *)
Chris@41 13174 # If it is relative, then search for the first ld in PATH.
Chris@41 13175 with_gnu_ld=unknown
Chris@41 13176 ;;
Chris@41 13177 esac
Chris@41 13178 elif test yes = "$with_gnu_ld"; then
Chris@41 13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Chris@41 13180 $as_echo_n "checking for GNU ld... " >&6; }
Chris@41 13181 else
Chris@41 13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Chris@41 13183 $as_echo_n "checking for non-GNU ld... " >&6; }
Chris@41 13184 fi
Chris@41 13185 if ${lt_cv_path_LD+:} false; then :
Chris@41 13186 $as_echo_n "(cached) " >&6
Chris@41 13187 else
Chris@41 13188 if test -z "$LD"; then
Chris@41 13189 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Chris@41 13190 for ac_dir in $PATH; do
Chris@41 13191 IFS=$lt_save_ifs
Chris@41 13192 test -z "$ac_dir" && ac_dir=.
Chris@41 13193 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Chris@41 13194 lt_cv_path_LD=$ac_dir/$ac_prog
Chris@41 13195 # Check to see if the program is GNU ld. I'd rather use --version,
Chris@41 13196 # but apparently some variants of GNU ld only accept -v.
Chris@41 13197 # Break only if it was the GNU/non-GNU ld that we prefer.
Chris@41 13198 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
Chris@41 13199 *GNU* | *'with BFD'*)
Chris@41 13200 test no != "$with_gnu_ld" && break
Chris@41 13201 ;;
Chris@41 13202 *)
Chris@41 13203 test yes != "$with_gnu_ld" && break
Chris@41 13204 ;;
Chris@41 13205 esac
Chris@41 13206 fi
Chris@41 13207 done
Chris@41 13208 IFS=$lt_save_ifs
Chris@41 13209 else
Chris@41 13210 lt_cv_path_LD=$LD # Let the user override the test with a path.
Chris@41 13211 fi
Chris@41 13212 fi
Chris@41 13213
Chris@41 13214 LD=$lt_cv_path_LD
Chris@41 13215 if test -n "$LD"; then
Chris@41 13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Chris@41 13217 $as_echo "$LD" >&6; }
Chris@41 13218 else
Chris@41 13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 13220 $as_echo "no" >&6; }
Chris@41 13221 fi
Chris@41 13222 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Chris@41 13223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Chris@41 13224 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Chris@41 13225 if ${lt_cv_prog_gnu_ld+:} false; then :
Chris@41 13226 $as_echo_n "(cached) " >&6
Chris@41 13227 else
Chris@41 13228 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Chris@41 13229 case `$LD -v 2>&1 </dev/null` in
Chris@41 13230 *GNU* | *'with BFD'*)
Chris@41 13231 lt_cv_prog_gnu_ld=yes
Chris@41 13232 ;;
Chris@41 13233 *)
Chris@41 13234 lt_cv_prog_gnu_ld=no
Chris@41 13235 ;;
Chris@41 13236 esac
Chris@41 13237 fi
Chris@41 13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
Chris@41 13239 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
Chris@41 13240 with_gnu_ld=$lt_cv_prog_gnu_ld
Chris@41 13241
Chris@41 13242
Chris@41 13243
Chris@41 13244
Chris@41 13245
Chris@41 13246
Chris@41 13247
Chris@41 13248 # Check if GNU C++ uses GNU ld as the underlying linker, since the
Chris@41 13249 # archiving commands below assume that GNU ld is being used.
Chris@41 13250 if test yes = "$with_gnu_ld"; then
Chris@41 13251 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@41 13252 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@41 13253
Chris@41 13254 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
Chris@41 13255 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
Chris@41 13256
Chris@41 13257 # If archive_cmds runs LD, not CC, wlarc should be empty
Chris@41 13258 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
Chris@41 13259 # investigate it a little bit more. (MM)
Chris@41 13260 wlarc='$wl'
Chris@41 13261
Chris@41 13262 # ancient GNU ld didn't support --whole-archive et. al.
Chris@41 13263 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
Chris@41 13264 $GREP 'no-whole-archive' > /dev/null; then
Chris@41 13265 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
Chris@41 13266 else
Chris@41 13267 whole_archive_flag_spec_CXX=
Chris@41 13268 fi
Chris@41 13269 else
Chris@41 13270 with_gnu_ld=no
Chris@41 13271 wlarc=
Chris@41 13272
Chris@41 13273 # A generic and very simple default shared library creation
Chris@41 13274 # command for GNU C++ for the case where it uses the native
Chris@41 13275 # linker, instead of GNU ld. If possible, this setting should
Chris@41 13276 # overridden to take advantage of the native linker features on
Chris@41 13277 # the platform it is being used on.
Chris@41 13278 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
Chris@41 13279 fi
Chris@41 13280
Chris@41 13281 # Commands to make compiler produce verbose output that lists
Chris@41 13282 # what "hidden" libraries, object files and flags are used when
Chris@41 13283 # linking a shared library.
Chris@41 13284 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
Chris@41 13285
Chris@41 13286 else
Chris@41 13287 GXX=no
Chris@41 13288 with_gnu_ld=no
Chris@41 13289 wlarc=
Chris@41 13290 fi
Chris@41 13291
Chris@41 13292 # PORTME: fill in a description of your system's C++ link characteristics
Chris@41 13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Chris@41 13294 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Chris@41 13295 ld_shlibs_CXX=yes
Chris@41 13296 case $host_os in
Chris@41 13297 aix3*)
Chris@41 13298 # FIXME: insert proper C++ library support
Chris@41 13299 ld_shlibs_CXX=no
Chris@41 13300 ;;
Chris@41 13301 aix[4-9]*)
Chris@41 13302 if test ia64 = "$host_cpu"; then
Chris@41 13303 # On IA64, the linker does run time linking by default, so we don't
Chris@41 13304 # have to do anything special.
Chris@41 13305 aix_use_runtimelinking=no
Chris@41 13306 exp_sym_flag='-Bexport'
Chris@41 13307 no_entry_flag=
Chris@41 13308 else
Chris@41 13309 aix_use_runtimelinking=no
Chris@41 13310
Chris@41 13311 # Test if we are trying to use run time linking or normal
Chris@41 13312 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Chris@41 13313 # have runtime linking enabled, and use it for executables.
Chris@41 13314 # For shared libraries, we enable/disable runtime linking
Chris@41 13315 # depending on the kind of the shared library created -
Chris@41 13316 # when "with_aix_soname,aix_use_runtimelinking" is:
Chris@41 13317 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
Chris@41 13318 # "aix,yes" lib.so shared, rtl:yes, for executables
Chris@41 13319 # lib.a static archive
Chris@41 13320 # "both,no" lib.so.V(shr.o) shared, rtl:yes
Chris@41 13321 # lib.a(lib.so.V) shared, rtl:no, for executables
Chris@41 13322 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
Chris@41 13323 # lib.a(lib.so.V) shared, rtl:no
Chris@41 13324 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
Chris@41 13325 # lib.a static archive
Chris@41 13326 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Chris@41 13327 for ld_flag in $LDFLAGS; do
Chris@41 13328 case $ld_flag in
Chris@41 13329 *-brtl*)
Chris@41 13330 aix_use_runtimelinking=yes
Chris@41 13331 break
Chris@41 13332 ;;
Chris@41 13333 esac
Chris@41 13334 done
Chris@41 13335 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
Chris@41 13336 # With aix-soname=svr4, we create the lib.so.V shared archives only,
Chris@41 13337 # so we don't have lib.a shared libs to link our executables.
Chris@41 13338 # We have to force runtime linking in this case.
Chris@41 13339 aix_use_runtimelinking=yes
Chris@41 13340 LDFLAGS="$LDFLAGS -Wl,-brtl"
Chris@41 13341 fi
Chris@41 13342 ;;
Chris@41 13343 esac
Chris@41 13344
Chris@41 13345 exp_sym_flag='-bexport'
Chris@41 13346 no_entry_flag='-bnoentry'
Chris@41 13347 fi
Chris@41 13348
Chris@41 13349 # When large executables or shared objects are built, AIX ld can
Chris@41 13350 # have problems creating the table of contents. If linking a library
Chris@41 13351 # or program results in "error TOC overflow" add -mminimal-toc to
Chris@41 13352 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
Chris@41 13353 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
Chris@41 13354
Chris@41 13355 archive_cmds_CXX=''
Chris@41 13356 hardcode_direct_CXX=yes
Chris@41 13357 hardcode_direct_absolute_CXX=yes
Chris@41 13358 hardcode_libdir_separator_CXX=':'
Chris@41 13359 link_all_deplibs_CXX=yes
Chris@41 13360 file_list_spec_CXX='$wl-f,'
Chris@41 13361 case $with_aix_soname,$aix_use_runtimelinking in
Chris@41 13362 aix,*) ;; # no import file
Chris@41 13363 svr4,* | *,yes) # use import file
Chris@41 13364 # The Import File defines what to hardcode.
Chris@41 13365 hardcode_direct_CXX=no
Chris@41 13366 hardcode_direct_absolute_CXX=no
Chris@41 13367 ;;
Chris@41 13368 esac
Chris@41 13369
Chris@41 13370 if test yes = "$GXX"; then
Chris@41 13371 case $host_os in aix4.[012]|aix4.[012].*)
Chris@41 13372 # We only want to do this on AIX 4.2 and lower, the check
Chris@41 13373 # below for broken collect2 doesn't work under 4.3+
Chris@41 13374 collect2name=`$CC -print-prog-name=collect2`
Chris@41 13375 if test -f "$collect2name" &&
Chris@41 13376 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Chris@41 13377 then
Chris@41 13378 # We have reworked collect2
Chris@41 13379 :
Chris@41 13380 else
Chris@41 13381 # We have old collect2
Chris@41 13382 hardcode_direct_CXX=unsupported
Chris@41 13383 # It fails to find uninstalled libraries when the uninstalled
Chris@41 13384 # path is not listed in the libpath. Setting hardcode_minus_L
Chris@41 13385 # to unsupported forces relinking
Chris@41 13386 hardcode_minus_L_CXX=yes
Chris@41 13387 hardcode_libdir_flag_spec_CXX='-L$libdir'
Chris@41 13388 hardcode_libdir_separator_CXX=
Chris@41 13389 fi
Chris@41 13390 esac
Chris@41 13391 shared_flag='-shared'
Chris@41 13392 if test yes = "$aix_use_runtimelinking"; then
Chris@41 13393 shared_flag=$shared_flag' $wl-G'
Chris@41 13394 fi
Chris@41 13395 # Need to ensure runtime linking is disabled for the traditional
Chris@41 13396 # shared library, or the linker may eventually find shared libraries
Chris@41 13397 # /with/ Import File - we do not want to mix them.
Chris@41 13398 shared_flag_aix='-shared'
Chris@41 13399 shared_flag_svr4='-shared $wl-G'
Chris@41 13400 else
Chris@41 13401 # not using gcc
Chris@41 13402 if test ia64 = "$host_cpu"; then
Chris@41 13403 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
Chris@41 13404 # chokes on -Wl,-G. The following line is correct:
Chris@41 13405 shared_flag='-G'
Chris@41 13406 else
Chris@41 13407 if test yes = "$aix_use_runtimelinking"; then
Chris@41 13408 shared_flag='$wl-G'
Chris@41 13409 else
Chris@41 13410 shared_flag='$wl-bM:SRE'
Chris@41 13411 fi
Chris@41 13412 shared_flag_aix='$wl-bM:SRE'
Chris@41 13413 shared_flag_svr4='$wl-G'
Chris@41 13414 fi
Chris@41 13415 fi
Chris@41 13416
Chris@41 13417 export_dynamic_flag_spec_CXX='$wl-bexpall'
Chris@41 13418 # It seems that -bexpall does not export symbols beginning with
Chris@41 13419 # underscore (_), so it is better to generate a list of symbols to
Chris@41 13420 # export.
Chris@41 13421 always_export_symbols_CXX=yes
Chris@41 13422 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
Chris@41 13423 # Warning - without using the other runtime loading flags (-brtl),
Chris@41 13424 # -berok will link without error, but may produce a broken library.
Chris@41 13425 # The "-G" linker flag allows undefined symbols.
Chris@41 13426 no_undefined_flag_CXX='-bernotok'
Chris@41 13427 # Determine the default libpath from the value encoded in an empty
Chris@41 13428 # executable.
Chris@41 13429 if test set = "${lt_cv_aix_libpath+set}"; then
Chris@41 13430 aix_libpath=$lt_cv_aix_libpath
Chris@41 13431 else
Chris@41 13432 if ${lt_cv_aix_libpath__CXX+:} false; then :
Chris@41 13433 $as_echo_n "(cached) " >&6
Chris@41 13434 else
Chris@41 13435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 13436 /* end confdefs.h. */
Chris@41 13437
Chris@41 13438 int
Chris@41 13439 main ()
Chris@41 13440 {
Chris@41 13441
Chris@41 13442 ;
Chris@41 13443 return 0;
Chris@41 13444 }
Chris@41 13445 _ACEOF
Chris@41 13446 if ac_fn_cxx_try_link "$LINENO"; then :
Chris@41 13447
Chris@41 13448 lt_aix_libpath_sed='
Chris@41 13449 /Import File Strings/,/^$/ {
Chris@41 13450 /^0/ {
Chris@41 13451 s/^0 *\([^ ]*\) *$/\1/
Chris@41 13452 p
Chris@41 13453 }
Chris@41 13454 }'
Chris@41 13455 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@41 13456 # Check for a 64-bit object if we didn't find anything.
Chris@41 13457 if test -z "$lt_cv_aix_libpath__CXX"; then
Chris@41 13458 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@41 13459 fi
Chris@41 13460 fi
Chris@41 13461 rm -f core conftest.err conftest.$ac_objext \
Chris@41 13462 conftest$ac_exeext conftest.$ac_ext
Chris@41 13463 if test -z "$lt_cv_aix_libpath__CXX"; then
Chris@41 13464 lt_cv_aix_libpath__CXX=/usr/lib:/lib
Chris@41 13465 fi
Chris@41 13466
Chris@41 13467 fi
Chris@41 13468
Chris@41 13469 aix_libpath=$lt_cv_aix_libpath__CXX
Chris@41 13470 fi
Chris@41 13471
Chris@41 13472 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
Chris@41 13473
Chris@41 13474 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
Chris@41 13475 else
Chris@41 13476 if test ia64 = "$host_cpu"; then
Chris@41 13477 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
Chris@41 13478 allow_undefined_flag_CXX="-z nodefs"
Chris@41 13479 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@41 13480 else
Chris@41 13481 # Determine the default libpath from the value encoded in an
Chris@41 13482 # empty executable.
Chris@41 13483 if test set = "${lt_cv_aix_libpath+set}"; then
Chris@41 13484 aix_libpath=$lt_cv_aix_libpath
Chris@41 13485 else
Chris@41 13486 if ${lt_cv_aix_libpath__CXX+:} false; then :
Chris@41 13487 $as_echo_n "(cached) " >&6
Chris@41 13488 else
Chris@41 13489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 13490 /* end confdefs.h. */
Chris@41 13491
Chris@41 13492 int
Chris@41 13493 main ()
Chris@41 13494 {
Chris@41 13495
Chris@41 13496 ;
Chris@41 13497 return 0;
Chris@41 13498 }
Chris@41 13499 _ACEOF
Chris@41 13500 if ac_fn_cxx_try_link "$LINENO"; then :
Chris@41 13501
Chris@41 13502 lt_aix_libpath_sed='
Chris@41 13503 /Import File Strings/,/^$/ {
Chris@41 13504 /^0/ {
Chris@41 13505 s/^0 *\([^ ]*\) *$/\1/
Chris@41 13506 p
Chris@41 13507 }
Chris@41 13508 }'
Chris@41 13509 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@41 13510 # Check for a 64-bit object if we didn't find anything.
Chris@41 13511 if test -z "$lt_cv_aix_libpath__CXX"; then
Chris@41 13512 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@41 13513 fi
Chris@41 13514 fi
Chris@41 13515 rm -f core conftest.err conftest.$ac_objext \
Chris@41 13516 conftest$ac_exeext conftest.$ac_ext
Chris@41 13517 if test -z "$lt_cv_aix_libpath__CXX"; then
Chris@41 13518 lt_cv_aix_libpath__CXX=/usr/lib:/lib
Chris@41 13519 fi
Chris@41 13520
Chris@41 13521 fi
Chris@41 13522
Chris@41 13523 aix_libpath=$lt_cv_aix_libpath__CXX
Chris@41 13524 fi
Chris@41 13525
Chris@41 13526 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
Chris@41 13527 # Warning - without using the other run time loading flags,
Chris@41 13528 # -berok will link without error, but may produce a broken library.
Chris@41 13529 no_undefined_flag_CXX=' $wl-bernotok'
Chris@41 13530 allow_undefined_flag_CXX=' $wl-berok'
Chris@41 13531 if test yes = "$with_gnu_ld"; then
Chris@41 13532 # We only use this code for GNU lds that support --whole-archive.
Chris@41 13533 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
Chris@41 13534 else
Chris@41 13535 # Exported symbols can be pulled into shared objects from archives
Chris@41 13536 whole_archive_flag_spec_CXX='$convenience'
Chris@41 13537 fi
Chris@41 13538 archive_cmds_need_lc_CXX=yes
Chris@41 13539 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
Chris@41 13540 # -brtl affects multiple linker settings, -berok does not and is overridden later
Chris@41 13541 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
Chris@41 13542 if test svr4 != "$with_aix_soname"; then
Chris@41 13543 # This is similar to how AIX traditionally builds its shared
Chris@41 13544 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
Chris@41 13545 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
Chris@41 13546 fi
Chris@41 13547 if test aix != "$with_aix_soname"; then
Chris@41 13548 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
Chris@41 13549 else
Chris@41 13550 # used by -dlpreopen to get the symbols
Chris@41 13551 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
Chris@41 13552 fi
Chris@41 13553 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
Chris@41 13554 fi
Chris@41 13555 fi
Chris@41 13556 ;;
Chris@41 13557
Chris@41 13558 beos*)
Chris@41 13559 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@41 13560 allow_undefined_flag_CXX=unsupported
Chris@41 13561 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
Chris@41 13562 # support --undefined. This deserves some investigation. FIXME
Chris@41 13563 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@41 13564 else
Chris@41 13565 ld_shlibs_CXX=no
Chris@41 13566 fi
Chris@41 13567 ;;
Chris@41 13568
Chris@41 13569 chorus*)
Chris@41 13570 case $cc_basename in
Chris@41 13571 *)
Chris@41 13572 # FIXME: insert proper C++ library support
Chris@41 13573 ld_shlibs_CXX=no
Chris@41 13574 ;;
Chris@41 13575 esac
Chris@41 13576 ;;
Chris@41 13577
Chris@41 13578 cygwin* | mingw* | pw32* | cegcc*)
Chris@41 13579 case $GXX,$cc_basename in
Chris@41 13580 ,cl* | no,cl*)
Chris@41 13581 # Native MSVC
Chris@41 13582 # hardcode_libdir_flag_spec is actually meaningless, as there is
Chris@41 13583 # no search path for DLLs.
Chris@41 13584 hardcode_libdir_flag_spec_CXX=' '
Chris@41 13585 allow_undefined_flag_CXX=unsupported
Chris@41 13586 always_export_symbols_CXX=yes
Chris@41 13587 file_list_spec_CXX='@'
Chris@41 13588 # Tell ltmain to make .lib files, not .a files.
Chris@41 13589 libext=lib
Chris@41 13590 # Tell ltmain to make .dll files, not .so files.
Chris@41 13591 shrext_cmds=.dll
Chris@41 13592 # FIXME: Setting linknames here is a bad hack.
Chris@41 13593 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
Chris@41 13594 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
Chris@41 13595 cp "$export_symbols" "$output_objdir/$soname.def";
Chris@41 13596 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
Chris@41 13597 else
Chris@41 13598 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
Chris@41 13599 fi~
Chris@41 13600 $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@41 13601 linknames='
Chris@41 13602 # The linker will not automatically build a static lib if we build a DLL.
Chris@41 13603 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
Chris@41 13604 enable_shared_with_static_runtimes_CXX=yes
Chris@41 13605 # Don't use ranlib
Chris@41 13606 old_postinstall_cmds_CXX='chmod 644 $oldlib'
Chris@41 13607 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
Chris@41 13608 lt_tool_outputfile="@TOOL_OUTPUT@"~
Chris@41 13609 case $lt_outputfile in
Chris@41 13610 *.exe|*.EXE) ;;
Chris@41 13611 *)
Chris@41 13612 lt_outputfile=$lt_outputfile.exe
Chris@41 13613 lt_tool_outputfile=$lt_tool_outputfile.exe
Chris@41 13614 ;;
Chris@41 13615 esac~
Chris@41 13616 func_to_tool_file "$lt_outputfile"~
Chris@41 13617 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
Chris@41 13618 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
Chris@41 13619 $RM "$lt_outputfile.manifest";
Chris@41 13620 fi'
Chris@41 13621 ;;
Chris@41 13622 *)
Chris@41 13623 # g++
Chris@41 13624 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
Chris@41 13625 # as there is no search path for DLLs.
Chris@41 13626 hardcode_libdir_flag_spec_CXX='-L$libdir'
Chris@41 13627 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
Chris@41 13628 allow_undefined_flag_CXX=unsupported
Chris@41 13629 always_export_symbols_CXX=no
Chris@41 13630 enable_shared_with_static_runtimes_CXX=yes
Chris@41 13631
Chris@41 13632 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Chris@41 13633 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@41 13634 # If the export-symbols file already is a .def file, use it as
Chris@41 13635 # is; otherwise, prepend EXPORTS...
Chris@41 13636 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
Chris@41 13637 cp $export_symbols $output_objdir/$soname.def;
Chris@41 13638 else
Chris@41 13639 echo EXPORTS > $output_objdir/$soname.def;
Chris@41 13640 cat $export_symbols >> $output_objdir/$soname.def;
Chris@41 13641 fi~
Chris@41 13642 $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@41 13643 else
Chris@41 13644 ld_shlibs_CXX=no
Chris@41 13645 fi
Chris@41 13646 ;;
Chris@41 13647 esac
Chris@41 13648 ;;
Chris@41 13649 darwin* | rhapsody*)
Chris@41 13650
Chris@41 13651
Chris@41 13652 archive_cmds_need_lc_CXX=no
Chris@41 13653 hardcode_direct_CXX=no
Chris@41 13654 hardcode_automatic_CXX=yes
Chris@41 13655 hardcode_shlibpath_var_CXX=unsupported
Chris@41 13656 if test yes = "$lt_cv_ld_force_load"; then
Chris@41 13657 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@41 13658
Chris@41 13659 else
Chris@41 13660 whole_archive_flag_spec_CXX=''
Chris@41 13661 fi
Chris@41 13662 link_all_deplibs_CXX=yes
Chris@41 13663 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
Chris@41 13664 case $cc_basename in
Chris@41 13665 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
Chris@41 13666 *) _lt_dar_can_shared=$GCC ;;
Chris@41 13667 esac
Chris@41 13668 if test yes = "$_lt_dar_can_shared"; then
Chris@41 13669 output_verbose_link_cmd=func_echo_all
Chris@41 13670 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@41 13671 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
Chris@41 13672 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@41 13673 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@41 13674 if test yes != "$lt_cv_apple_cc_single_mod"; then
Chris@41 13675 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@41 13676 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@41 13677 fi
Chris@41 13678
Chris@41 13679 else
Chris@41 13680 ld_shlibs_CXX=no
Chris@41 13681 fi
Chris@41 13682
Chris@41 13683 ;;
Chris@41 13684
Chris@41 13685 os2*)
Chris@41 13686 hardcode_libdir_flag_spec_CXX='-L$libdir'
Chris@41 13687 hardcode_minus_L_CXX=yes
Chris@41 13688 allow_undefined_flag_CXX=unsupported
Chris@41 13689 shrext_cmds=.dll
Chris@41 13690 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
Chris@41 13691 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
Chris@41 13692 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
Chris@41 13693 $ECHO EXPORTS >> $output_objdir/$libname.def~
Chris@41 13694 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
Chris@41 13695 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
Chris@41 13696 emximp -o $lib $output_objdir/$libname.def'
Chris@41 13697 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
Chris@41 13698 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
Chris@41 13699 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
Chris@41 13700 $ECHO EXPORTS >> $output_objdir/$libname.def~
Chris@41 13701 prefix_cmds="$SED"~
Chris@41 13702 if test EXPORTS = "`$SED 1q $export_symbols`"; then
Chris@41 13703 prefix_cmds="$prefix_cmds -e 1d";
Chris@41 13704 fi~
Chris@41 13705 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
Chris@41 13706 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
Chris@41 13707 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
Chris@41 13708 emximp -o $lib $output_objdir/$libname.def'
Chris@41 13709 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
Chris@41 13710 enable_shared_with_static_runtimes_CXX=yes
Chris@41 13711 ;;
Chris@41 13712
Chris@41 13713 dgux*)
Chris@41 13714 case $cc_basename in
Chris@41 13715 ec++*)
Chris@41 13716 # FIXME: insert proper C++ library support
Chris@41 13717 ld_shlibs_CXX=no
Chris@41 13718 ;;
Chris@41 13719 ghcx*)
Chris@41 13720 # Green Hills C++ Compiler
Chris@41 13721 # FIXME: insert proper C++ library support
Chris@41 13722 ld_shlibs_CXX=no
Chris@41 13723 ;;
Chris@41 13724 *)
Chris@41 13725 # FIXME: insert proper C++ library support
Chris@41 13726 ld_shlibs_CXX=no
Chris@41 13727 ;;
Chris@41 13728 esac
Chris@41 13729 ;;
Chris@41 13730
Chris@41 13731 freebsd2.*)
Chris@41 13732 # C++ shared libraries reported to be fairly broken before
Chris@41 13733 # switch to ELF
Chris@41 13734 ld_shlibs_CXX=no
Chris@41 13735 ;;
Chris@41 13736
Chris@41 13737 freebsd-elf*)
Chris@41 13738 archive_cmds_need_lc_CXX=no
Chris@41 13739 ;;
Chris@41 13740
Chris@41 13741 freebsd* | dragonfly*)
Chris@41 13742 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
Chris@41 13743 # conventions
Chris@41 13744 ld_shlibs_CXX=yes
Chris@41 13745 ;;
Chris@41 13746
Chris@41 13747 haiku*)
Chris@41 13748 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@41 13749 link_all_deplibs_CXX=yes
Chris@41 13750 ;;
Chris@41 13751
Chris@41 13752 hpux9*)
Chris@41 13753 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
Chris@41 13754 hardcode_libdir_separator_CXX=:
Chris@41 13755 export_dynamic_flag_spec_CXX='$wl-E'
Chris@41 13756 hardcode_direct_CXX=yes
Chris@41 13757 hardcode_minus_L_CXX=yes # Not in the search PATH,
Chris@41 13758 # but as the default
Chris@41 13759 # location of the library.
Chris@41 13760
Chris@41 13761 case $cc_basename in
Chris@41 13762 CC*)
Chris@41 13763 # FIXME: insert proper C++ library support
Chris@41 13764 ld_shlibs_CXX=no
Chris@41 13765 ;;
Chris@41 13766 aCC*)
Chris@41 13767 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
Chris@41 13768 # Commands to make compiler produce verbose output that lists
Chris@41 13769 # what "hidden" libraries, object files and flags are used when
Chris@41 13770 # linking a shared library.
Chris@41 13771 #
Chris@41 13772 # There doesn't appear to be a way to prevent this compiler from
Chris@41 13773 # explicitly linking system object files so we need to strip them
Chris@41 13774 # from the output so that they don't get included in the library
Chris@41 13775 # dependencies.
Chris@41 13776 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@41 13777 ;;
Chris@41 13778 *)
Chris@41 13779 if test yes = "$GXX"; then
Chris@41 13780 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
Chris@41 13781 else
Chris@41 13782 # FIXME: insert proper C++ library support
Chris@41 13783 ld_shlibs_CXX=no
Chris@41 13784 fi
Chris@41 13785 ;;
Chris@41 13786 esac
Chris@41 13787 ;;
Chris@41 13788
Chris@41 13789 hpux10*|hpux11*)
Chris@41 13790 if test no = "$with_gnu_ld"; then
Chris@41 13791 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
Chris@41 13792 hardcode_libdir_separator_CXX=:
Chris@41 13793
Chris@41 13794 case $host_cpu in
Chris@41 13795 hppa*64*|ia64*)
Chris@41 13796 ;;
Chris@41 13797 *)
Chris@41 13798 export_dynamic_flag_spec_CXX='$wl-E'
Chris@41 13799 ;;
Chris@41 13800 esac
Chris@41 13801 fi
Chris@41 13802 case $host_cpu in
Chris@41 13803 hppa*64*|ia64*)
Chris@41 13804 hardcode_direct_CXX=no
Chris@41 13805 hardcode_shlibpath_var_CXX=no
Chris@41 13806 ;;
Chris@41 13807 *)
Chris@41 13808 hardcode_direct_CXX=yes
Chris@41 13809 hardcode_direct_absolute_CXX=yes
Chris@41 13810 hardcode_minus_L_CXX=yes # Not in the search PATH,
Chris@41 13811 # but as the default
Chris@41 13812 # location of the library.
Chris@41 13813 ;;
Chris@41 13814 esac
Chris@41 13815
Chris@41 13816 case $cc_basename in
Chris@41 13817 CC*)
Chris@41 13818 # FIXME: insert proper C++ library support
Chris@41 13819 ld_shlibs_CXX=no
Chris@41 13820 ;;
Chris@41 13821 aCC*)
Chris@41 13822 case $host_cpu in
Chris@41 13823 hppa*64*)
Chris@41 13824 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Chris@41 13825 ;;
Chris@41 13826 ia64*)
Chris@41 13827 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Chris@41 13828 ;;
Chris@41 13829 *)
Chris@41 13830 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@41 13831 ;;
Chris@41 13832 esac
Chris@41 13833 # Commands to make compiler produce verbose output that lists
Chris@41 13834 # what "hidden" libraries, object files and flags are used when
Chris@41 13835 # linking a shared library.
Chris@41 13836 #
Chris@41 13837 # There doesn't appear to be a way to prevent this compiler from
Chris@41 13838 # explicitly linking system object files so we need to strip them
Chris@41 13839 # from the output so that they don't get included in the library
Chris@41 13840 # dependencies.
Chris@41 13841 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@41 13842 ;;
Chris@41 13843 *)
Chris@41 13844 if test yes = "$GXX"; then
Chris@41 13845 if test no = "$with_gnu_ld"; then
Chris@41 13846 case $host_cpu in
Chris@41 13847 hppa*64*)
Chris@41 13848 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Chris@41 13849 ;;
Chris@41 13850 ia64*)
Chris@41 13851 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@41 13852 ;;
Chris@41 13853 *)
Chris@41 13854 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@41 13855 ;;
Chris@41 13856 esac
Chris@41 13857 fi
Chris@41 13858 else
Chris@41 13859 # FIXME: insert proper C++ library support
Chris@41 13860 ld_shlibs_CXX=no
Chris@41 13861 fi
Chris@41 13862 ;;
Chris@41 13863 esac
Chris@41 13864 ;;
Chris@41 13865
Chris@41 13866 interix[3-9]*)
Chris@41 13867 hardcode_direct_CXX=no
Chris@41 13868 hardcode_shlibpath_var_CXX=no
Chris@41 13869 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
Chris@41 13870 export_dynamic_flag_spec_CXX='$wl-E'
Chris@41 13871 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
Chris@41 13872 # Instead, shared libraries are loaded at an image base (0x10000000 by
Chris@41 13873 # default) and relocated if they conflict, which is a slow very memory
Chris@41 13874 # consuming and fragmenting process. To avoid this, we pick a random,
Chris@41 13875 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
Chris@41 13876 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Chris@41 13877 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@41 13878 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@41 13879 ;;
Chris@41 13880 irix5* | irix6*)
Chris@41 13881 case $cc_basename in
Chris@41 13882 CC*)
Chris@41 13883 # SGI C++
Chris@41 13884 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@41 13885
Chris@41 13886 # Archives containing C++ object files must be created using
Chris@41 13887 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
Chris@41 13888 # necessary to make sure instantiated templates are included
Chris@41 13889 # in the archive.
Chris@41 13890 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
Chris@41 13891 ;;
Chris@41 13892 *)
Chris@41 13893 if test yes = "$GXX"; then
Chris@41 13894 if test no = "$with_gnu_ld"; then
Chris@41 13895 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@41 13896 else
Chris@41 13897 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@41 13898 fi
Chris@41 13899 fi
Chris@41 13900 link_all_deplibs_CXX=yes
Chris@41 13901 ;;
Chris@41 13902 esac
Chris@41 13903 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
Chris@41 13904 hardcode_libdir_separator_CXX=:
Chris@41 13905 inherit_rpath_CXX=yes
Chris@41 13906 ;;
Chris@41 13907
Chris@41 13908 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Chris@41 13909 case $cc_basename in
Chris@41 13910 KCC*)
Chris@41 13911 # Kuck and Associates, Inc. (KAI) C++ Compiler
Chris@41 13912
Chris@41 13913 # KCC will only create a shared library if the output file
Chris@41 13914 # ends with ".so" (or ".sl" for HP-UX), so rename the library
Chris@41 13915 # to its proper name (with version) after linking.
Chris@41 13916 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@41 13917 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@41 13918 # Commands to make compiler produce verbose output that lists
Chris@41 13919 # what "hidden" libraries, object files and flags are used when
Chris@41 13920 # linking a shared library.
Chris@41 13921 #
Chris@41 13922 # There doesn't appear to be a way to prevent this compiler from
Chris@41 13923 # explicitly linking system object files so we need to strip them
Chris@41 13924 # from the output so that they don't get included in the library
Chris@41 13925 # dependencies.
Chris@41 13926 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@41 13927
Chris@41 13928 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
Chris@41 13929 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
Chris@41 13930
Chris@41 13931 # Archives containing C++ object files must be created using
Chris@41 13932 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
Chris@41 13933 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
Chris@41 13934 ;;
Chris@41 13935 icpc* | ecpc* )
Chris@41 13936 # Intel C++
Chris@41 13937 with_gnu_ld=yes
Chris@41 13938 # version 8.0 and above of icpc choke on multiply defined symbols
Chris@41 13939 # if we add $predep_objects and $postdep_objects, however 7.1 and
Chris@41 13940 # earlier do not add the objects themselves.
Chris@41 13941 case `$CC -V 2>&1` in
Chris@41 13942 *"Version 7."*)
Chris@41 13943 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@41 13944 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@41 13945 ;;
Chris@41 13946 *) # Version 8.0 or newer
Chris@41 13947 tmp_idyn=
Chris@41 13948 case $host_cpu in
Chris@41 13949 ia64*) tmp_idyn=' -i_dynamic';;
Chris@41 13950 esac
Chris@41 13951 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@41 13952 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@41 13953 ;;
Chris@41 13954 esac
Chris@41 13955 archive_cmds_need_lc_CXX=no
Chris@41 13956 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
Chris@41 13957 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
Chris@41 13958 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
Chris@41 13959 ;;
Chris@41 13960 pgCC* | pgcpp*)
Chris@41 13961 # Portland Group C++ compiler
Chris@41 13962 case `$CC -V` in
Chris@41 13963 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
Chris@41 13964 prelink_cmds_CXX='tpldir=Template.dir~
Chris@41 13965 rm -rf $tpldir~
Chris@41 13966 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
Chris@41 13967 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
Chris@41 13968 old_archive_cmds_CXX='tpldir=Template.dir~
Chris@41 13969 rm -rf $tpldir~
Chris@41 13970 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
Chris@41 13971 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
Chris@41 13972 $RANLIB $oldlib'
Chris@41 13973 archive_cmds_CXX='tpldir=Template.dir~
Chris@41 13974 rm -rf $tpldir~
Chris@41 13975 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
Chris@41 13976 $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@41 13977 archive_expsym_cmds_CXX='tpldir=Template.dir~
Chris@41 13978 rm -rf $tpldir~
Chris@41 13979 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
Chris@41 13980 $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@41 13981 ;;
Chris@41 13982 *) # Version 6 and above use weak symbols
Chris@41 13983 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@41 13984 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@41 13985 ;;
Chris@41 13986 esac
Chris@41 13987
Chris@41 13988 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
Chris@41 13989 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
Chris@41 13990 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@41 13991 ;;
Chris@41 13992 cxx*)
Chris@41 13993 # Compaq C++
Chris@41 13994 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@41 13995 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@41 13996
Chris@41 13997 runpath_var=LD_RUN_PATH
Chris@41 13998 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
Chris@41 13999 hardcode_libdir_separator_CXX=:
Chris@41 14000
Chris@41 14001 # Commands to make compiler produce verbose output that lists
Chris@41 14002 # what "hidden" libraries, object files and flags are used when
Chris@41 14003 # linking a shared library.
Chris@41 14004 #
Chris@41 14005 # There doesn't appear to be a way to prevent this compiler from
Chris@41 14006 # explicitly linking system object files so we need to strip them
Chris@41 14007 # from the output so that they don't get included in the library
Chris@41 14008 # dependencies.
Chris@41 14009 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@41 14010 ;;
Chris@41 14011 xl* | mpixl* | bgxl*)
Chris@41 14012 # IBM XL 8.0 on PPC, with GNU ld
Chris@41 14013 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
Chris@41 14014 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
Chris@41 14015 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@41 14016 if test yes = "$supports_anon_versioning"; then
Chris@41 14017 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
Chris@41 14018 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@41 14019 echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@41 14020 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
Chris@41 14021 fi
Chris@41 14022 ;;
Chris@41 14023 *)
Chris@41 14024 case `$CC -V 2>&1 | sed 5q` in
Chris@41 14025 *Sun\ C*)
Chris@41 14026 # Sun C++ 5.9
Chris@41 14027 no_undefined_flag_CXX=' -zdefs'
Chris@41 14028 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Chris@41 14029 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@41 14030 hardcode_libdir_flag_spec_CXX='-R$libdir'
Chris@41 14031 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@41 14032 compiler_needs_object_CXX=yes
Chris@41 14033
Chris@41 14034 # Not sure whether something based on
Chris@41 14035 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
Chris@41 14036 # would be better.
Chris@41 14037 output_verbose_link_cmd='func_echo_all'
Chris@41 14038
Chris@41 14039 # Archives containing C++ object files must be created using
Chris@41 14040 # "CC -xar", where "CC" is the Sun C++ compiler. This is
Chris@41 14041 # necessary to make sure instantiated templates are included
Chris@41 14042 # in the archive.
Chris@41 14043 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
Chris@41 14044 ;;
Chris@41 14045 esac
Chris@41 14046 ;;
Chris@41 14047 esac
Chris@41 14048 ;;
Chris@41 14049
Chris@41 14050 lynxos*)
Chris@41 14051 # FIXME: insert proper C++ library support
Chris@41 14052 ld_shlibs_CXX=no
Chris@41 14053 ;;
Chris@41 14054
Chris@41 14055 m88k*)
Chris@41 14056 # FIXME: insert proper C++ library support
Chris@41 14057 ld_shlibs_CXX=no
Chris@41 14058 ;;
Chris@41 14059
Chris@41 14060 mvs*)
Chris@41 14061 case $cc_basename in
Chris@41 14062 cxx*)
Chris@41 14063 # FIXME: insert proper C++ library support
Chris@41 14064 ld_shlibs_CXX=no
Chris@41 14065 ;;
Chris@41 14066 *)
Chris@41 14067 # FIXME: insert proper C++ library support
Chris@41 14068 ld_shlibs_CXX=no
Chris@41 14069 ;;
Chris@41 14070 esac
Chris@41 14071 ;;
Chris@41 14072
Chris@41 14073 netbsd*)
Chris@41 14074 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@41 14075 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
Chris@41 14076 wlarc=
Chris@41 14077 hardcode_libdir_flag_spec_CXX='-R$libdir'
Chris@41 14078 hardcode_direct_CXX=yes
Chris@41 14079 hardcode_shlibpath_var_CXX=no
Chris@41 14080 fi
Chris@41 14081 # Workaround some broken pre-1.5 toolchains
Chris@41 14082 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
Chris@41 14083 ;;
Chris@41 14084
Chris@41 14085 *nto* | *qnx*)
Chris@41 14086 ld_shlibs_CXX=yes
Chris@41 14087 ;;
Chris@41 14088
Chris@41 14089 openbsd* | bitrig*)
Chris@41 14090 if test -f /usr/libexec/ld.so; then
Chris@41 14091 hardcode_direct_CXX=yes
Chris@41 14092 hardcode_shlibpath_var_CXX=no
Chris@41 14093 hardcode_direct_absolute_CXX=yes
Chris@41 14094 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
Chris@41 14095 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
Chris@41 14096 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
Chris@41 14097 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@41 14098 export_dynamic_flag_spec_CXX='$wl-E'
Chris@41 14099 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
Chris@41 14100 fi
Chris@41 14101 output_verbose_link_cmd=func_echo_all
Chris@41 14102 else
Chris@41 14103 ld_shlibs_CXX=no
Chris@41 14104 fi
Chris@41 14105 ;;
Chris@41 14106
Chris@41 14107 osf3* | osf4* | osf5*)
Chris@41 14108 case $cc_basename in
Chris@41 14109 KCC*)
Chris@41 14110 # Kuck and Associates, Inc. (KAI) C++ Compiler
Chris@41 14111
Chris@41 14112 # KCC will only create a shared library if the output file
Chris@41 14113 # ends with ".so" (or ".sl" for HP-UX), so rename the library
Chris@41 14114 # to its proper name (with version) after linking.
Chris@41 14115 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@41 14116
Chris@41 14117 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
Chris@41 14118 hardcode_libdir_separator_CXX=:
Chris@41 14119
Chris@41 14120 # Archives containing C++ object files must be created using
Chris@41 14121 # the KAI C++ compiler.
Chris@41 14122 case $host in
Chris@41 14123 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
Chris@41 14124 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
Chris@41 14125 esac
Chris@41 14126 ;;
Chris@41 14127 RCC*)
Chris@41 14128 # Rational C++ 2.4.1
Chris@41 14129 # FIXME: insert proper C++ library support
Chris@41 14130 ld_shlibs_CXX=no
Chris@41 14131 ;;
Chris@41 14132 cxx*)
Chris@41 14133 case $host in
Chris@41 14134 osf3*)
Chris@41 14135 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
Chris@41 14136 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@41 14137 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
Chris@41 14138 ;;
Chris@41 14139 *)
Chris@41 14140 allow_undefined_flag_CXX=' -expect_unresolved \*'
Chris@41 14141 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@41 14142 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
Chris@41 14143 echo "-hidden">> $lib.exp~
Chris@41 14144 $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@41 14145 $RM $lib.exp'
Chris@41 14146 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
Chris@41 14147 ;;
Chris@41 14148 esac
Chris@41 14149
Chris@41 14150 hardcode_libdir_separator_CXX=:
Chris@41 14151
Chris@41 14152 # Commands to make compiler produce verbose output that lists
Chris@41 14153 # what "hidden" libraries, object files and flags are used when
Chris@41 14154 # linking a shared library.
Chris@41 14155 #
Chris@41 14156 # There doesn't appear to be a way to prevent this compiler from
Chris@41 14157 # explicitly linking system object files so we need to strip them
Chris@41 14158 # from the output so that they don't get included in the library
Chris@41 14159 # dependencies.
Chris@41 14160 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@41 14161 ;;
Chris@41 14162 *)
Chris@41 14163 if test yes,no = "$GXX,$with_gnu_ld"; then
Chris@41 14164 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
Chris@41 14165 case $host in
Chris@41 14166 osf3*)
Chris@41 14167 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@41 14168 ;;
Chris@41 14169 *)
Chris@41 14170 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@41 14171 ;;
Chris@41 14172 esac
Chris@41 14173
Chris@41 14174 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
Chris@41 14175 hardcode_libdir_separator_CXX=:
Chris@41 14176
Chris@41 14177 # Commands to make compiler produce verbose output that lists
Chris@41 14178 # what "hidden" libraries, object files and flags are used when
Chris@41 14179 # linking a shared library.
Chris@41 14180 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
Chris@41 14181
Chris@41 14182 else
Chris@41 14183 # FIXME: insert proper C++ library support
Chris@41 14184 ld_shlibs_CXX=no
Chris@41 14185 fi
Chris@41 14186 ;;
Chris@41 14187 esac
Chris@41 14188 ;;
Chris@41 14189
Chris@41 14190 psos*)
Chris@41 14191 # FIXME: insert proper C++ library support
Chris@41 14192 ld_shlibs_CXX=no
Chris@41 14193 ;;
Chris@41 14194
Chris@41 14195 sunos4*)
Chris@41 14196 case $cc_basename in
Chris@41 14197 CC*)
Chris@41 14198 # Sun C++ 4.x
Chris@41 14199 # FIXME: insert proper C++ library support
Chris@41 14200 ld_shlibs_CXX=no
Chris@41 14201 ;;
Chris@41 14202 lcc*)
Chris@41 14203 # Lucid
Chris@41 14204 # FIXME: insert proper C++ library support
Chris@41 14205 ld_shlibs_CXX=no
Chris@41 14206 ;;
Chris@41 14207 *)
Chris@41 14208 # FIXME: insert proper C++ library support
Chris@41 14209 ld_shlibs_CXX=no
Chris@41 14210 ;;
Chris@41 14211 esac
Chris@41 14212 ;;
Chris@41 14213
Chris@41 14214 solaris*)
Chris@41 14215 case $cc_basename in
Chris@41 14216 CC* | sunCC*)
Chris@41 14217 # Sun C++ 4.2, 5.x and Centerline C++
Chris@41 14218 archive_cmds_need_lc_CXX=yes
Chris@41 14219 no_undefined_flag_CXX=' -zdefs'
Chris@41 14220 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Chris@41 14221 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@41 14222 $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@41 14223
Chris@41 14224 hardcode_libdir_flag_spec_CXX='-R$libdir'
Chris@41 14225 hardcode_shlibpath_var_CXX=no
Chris@41 14226 case $host_os in
Chris@41 14227 solaris2.[0-5] | solaris2.[0-5].*) ;;
Chris@41 14228 *)
Chris@41 14229 # The compiler driver will combine and reorder linker options,
Chris@41 14230 # but understands '-z linker_flag'.
Chris@41 14231 # Supported since Solaris 2.6 (maybe 2.5.1?)
Chris@41 14232 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
Chris@41 14233 ;;
Chris@41 14234 esac
Chris@41 14235 link_all_deplibs_CXX=yes
Chris@41 14236
Chris@41 14237 output_verbose_link_cmd='func_echo_all'
Chris@41 14238
Chris@41 14239 # Archives containing C++ object files must be created using
Chris@41 14240 # "CC -xar", where "CC" is the Sun C++ compiler. This is
Chris@41 14241 # necessary to make sure instantiated templates are included
Chris@41 14242 # in the archive.
Chris@41 14243 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
Chris@41 14244 ;;
Chris@41 14245 gcx*)
Chris@41 14246 # Green Hills C++ Compiler
Chris@41 14247 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
Chris@41 14248
Chris@41 14249 # The C++ compiler must be used to create the archive.
Chris@41 14250 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
Chris@41 14251 ;;
Chris@41 14252 *)
Chris@41 14253 # GNU C++ compiler with Solaris linker
Chris@41 14254 if test yes,no = "$GXX,$with_gnu_ld"; then
Chris@41 14255 no_undefined_flag_CXX=' $wl-z ${wl}defs'
Chris@41 14256 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
Chris@41 14257 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
Chris@41 14258 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@41 14259 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
Chris@41 14260
Chris@41 14261 # Commands to make compiler produce verbose output that lists
Chris@41 14262 # what "hidden" libraries, object files and flags are used when
Chris@41 14263 # linking a shared library.
Chris@41 14264 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
Chris@41 14265 else
Chris@41 14266 # g++ 2.7 appears to require '-G' NOT '-shared' on this
Chris@41 14267 # platform.
Chris@41 14268 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
Chris@41 14269 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@41 14270 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
Chris@41 14271
Chris@41 14272 # Commands to make compiler produce verbose output that lists
Chris@41 14273 # what "hidden" libraries, object files and flags are used when
Chris@41 14274 # linking a shared library.
Chris@41 14275 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
Chris@41 14276 fi
Chris@41 14277
Chris@41 14278 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
Chris@41 14279 case $host_os in
Chris@41 14280 solaris2.[0-5] | solaris2.[0-5].*) ;;
Chris@41 14281 *)
Chris@41 14282 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
Chris@41 14283 ;;
Chris@41 14284 esac
Chris@41 14285 fi
Chris@41 14286 ;;
Chris@41 14287 esac
Chris@41 14288 ;;
Chris@41 14289
Chris@41 14290 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Chris@41 14291 no_undefined_flag_CXX='$wl-z,text'
Chris@41 14292 archive_cmds_need_lc_CXX=no
Chris@41 14293 hardcode_shlibpath_var_CXX=no
Chris@41 14294 runpath_var='LD_RUN_PATH'
Chris@41 14295
Chris@41 14296 case $cc_basename in
Chris@41 14297 CC*)
Chris@41 14298 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@41 14299 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@41 14300 ;;
Chris@41 14301 *)
Chris@41 14302 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@41 14303 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@41 14304 ;;
Chris@41 14305 esac
Chris@41 14306 ;;
Chris@41 14307
Chris@41 14308 sysv5* | sco3.2v5* | sco5v6*)
Chris@41 14309 # Note: We CANNOT use -z defs as we might desire, because we do not
Chris@41 14310 # link with -lc, and that would cause any symbols used from libc to
Chris@41 14311 # always be unresolved, which means just about no library would
Chris@41 14312 # ever link correctly. If we're not using GNU ld we use -z text
Chris@41 14313 # though, which does catch some bad symbols but isn't as heavy-handed
Chris@41 14314 # as -z defs.
Chris@41 14315 no_undefined_flag_CXX='$wl-z,text'
Chris@41 14316 allow_undefined_flag_CXX='$wl-z,nodefs'
Chris@41 14317 archive_cmds_need_lc_CXX=no
Chris@41 14318 hardcode_shlibpath_var_CXX=no
Chris@41 14319 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
Chris@41 14320 hardcode_libdir_separator_CXX=':'
Chris@41 14321 link_all_deplibs_CXX=yes
Chris@41 14322 export_dynamic_flag_spec_CXX='$wl-Bexport'
Chris@41 14323 runpath_var='LD_RUN_PATH'
Chris@41 14324
Chris@41 14325 case $cc_basename in
Chris@41 14326 CC*)
Chris@41 14327 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@41 14328 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@41 14329 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
Chris@41 14330 '"$old_archive_cmds_CXX"
Chris@41 14331 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
Chris@41 14332 '"$reload_cmds_CXX"
Chris@41 14333 ;;
Chris@41 14334 *)
Chris@41 14335 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@41 14336 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@41 14337 ;;
Chris@41 14338 esac
Chris@41 14339 ;;
Chris@41 14340
Chris@41 14341 tandem*)
Chris@41 14342 case $cc_basename in
Chris@41 14343 NCC*)
Chris@41 14344 # NonStop-UX NCC 3.20
Chris@41 14345 # FIXME: insert proper C++ library support
Chris@41 14346 ld_shlibs_CXX=no
Chris@41 14347 ;;
Chris@41 14348 *)
Chris@41 14349 # FIXME: insert proper C++ library support
Chris@41 14350 ld_shlibs_CXX=no
Chris@41 14351 ;;
Chris@41 14352 esac
Chris@41 14353 ;;
Chris@41 14354
Chris@41 14355 vxworks*)
Chris@41 14356 # FIXME: insert proper C++ library support
Chris@41 14357 ld_shlibs_CXX=no
Chris@41 14358 ;;
Chris@41 14359
Chris@41 14360 *)
Chris@41 14361 # FIXME: insert proper C++ library support
Chris@41 14362 ld_shlibs_CXX=no
Chris@41 14363 ;;
Chris@41 14364 esac
Chris@41 14365
Chris@41 14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
Chris@41 14367 $as_echo "$ld_shlibs_CXX" >&6; }
Chris@41 14368 test no = "$ld_shlibs_CXX" && can_build_shared=no
Chris@41 14369
Chris@41 14370 GCC_CXX=$GXX
Chris@41 14371 LD_CXX=$LD
Chris@41 14372
Chris@41 14373 ## CAVEAT EMPTOR:
Chris@41 14374 ## There is no encapsulation within the following macros, do not change
Chris@41 14375 ## the running order or otherwise move them around unless you know exactly
Chris@41 14376 ## what you are doing...
Chris@41 14377 # Dependencies to place before and after the object being linked:
Chris@41 14378 predep_objects_CXX=
Chris@41 14379 postdep_objects_CXX=
Chris@41 14380 predeps_CXX=
Chris@41 14381 postdeps_CXX=
Chris@41 14382 compiler_lib_search_path_CXX=
Chris@41 14383
Chris@41 14384 cat > conftest.$ac_ext <<_LT_EOF
Chris@41 14385 class Foo
Chris@41 14386 {
Chris@41 14387 public:
Chris@41 14388 Foo (void) { a = 0; }
Chris@41 14389 private:
Chris@41 14390 int a;
Chris@41 14391 };
Chris@41 14392 _LT_EOF
Chris@41 14393
Chris@41 14394
Chris@41 14395 _lt_libdeps_save_CFLAGS=$CFLAGS
Chris@41 14396 case "$CC $CFLAGS " in #(
Chris@41 14397 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
Chris@41 14398 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
Chris@41 14399 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
Chris@41 14400 esac
Chris@41 14401
Chris@41 14402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@41 14403 (eval $ac_compile) 2>&5
Chris@41 14404 ac_status=$?
Chris@41 14405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 14406 test $ac_status = 0; }; then
Chris@41 14407 # Parse the compiler output and extract the necessary
Chris@41 14408 # objects, libraries and library flags.
Chris@41 14409
Chris@41 14410 # Sentinel used to keep track of whether or not we are before
Chris@41 14411 # the conftest object file.
Chris@41 14412 pre_test_object_deps_done=no
Chris@41 14413
Chris@41 14414 for p in `eval "$output_verbose_link_cmd"`; do
Chris@41 14415 case $prev$p in
Chris@41 14416
Chris@41 14417 -L* | -R* | -l*)
Chris@41 14418 # Some compilers place space between "-{L,R}" and the path.
Chris@41 14419 # Remove the space.
Chris@41 14420 if test x-L = "$p" ||
Chris@41 14421 test x-R = "$p"; then
Chris@41 14422 prev=$p
Chris@41 14423 continue
Chris@41 14424 fi
Chris@41 14425
Chris@41 14426 # Expand the sysroot to ease extracting the directories later.
Chris@41 14427 if test -z "$prev"; then
Chris@41 14428 case $p in
Chris@41 14429 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
Chris@41 14430 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
Chris@41 14431 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
Chris@41 14432 esac
Chris@41 14433 fi
Chris@41 14434 case $p in
Chris@41 14435 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
Chris@41 14436 esac
Chris@41 14437 if test no = "$pre_test_object_deps_done"; then
Chris@41 14438 case $prev in
Chris@41 14439 -L | -R)
Chris@41 14440 # Internal compiler library paths should come after those
Chris@41 14441 # provided the user. The postdeps already come after the
Chris@41 14442 # user supplied libs so there is no need to process them.
Chris@41 14443 if test -z "$compiler_lib_search_path_CXX"; then
Chris@41 14444 compiler_lib_search_path_CXX=$prev$p
Chris@41 14445 else
Chris@41 14446 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
Chris@41 14447 fi
Chris@41 14448 ;;
Chris@41 14449 # The "-l" case would never come before the object being
Chris@41 14450 # linked, so don't bother handling this case.
Chris@41 14451 esac
Chris@41 14452 else
Chris@41 14453 if test -z "$postdeps_CXX"; then
Chris@41 14454 postdeps_CXX=$prev$p
Chris@41 14455 else
Chris@41 14456 postdeps_CXX="${postdeps_CXX} $prev$p"
Chris@41 14457 fi
Chris@41 14458 fi
Chris@41 14459 prev=
Chris@41 14460 ;;
Chris@41 14461
Chris@41 14462 *.lto.$objext) ;; # Ignore GCC LTO objects
Chris@41 14463 *.$objext)
Chris@41 14464 # This assumes that the test object file only shows up
Chris@41 14465 # once in the compiler output.
Chris@41 14466 if test "$p" = "conftest.$objext"; then
Chris@41 14467 pre_test_object_deps_done=yes
Chris@41 14468 continue
Chris@41 14469 fi
Chris@41 14470
Chris@41 14471 if test no = "$pre_test_object_deps_done"; then
Chris@41 14472 if test -z "$predep_objects_CXX"; then
Chris@41 14473 predep_objects_CXX=$p
Chris@41 14474 else
Chris@41 14475 predep_objects_CXX="$predep_objects_CXX $p"
Chris@41 14476 fi
Chris@41 14477 else
Chris@41 14478 if test -z "$postdep_objects_CXX"; then
Chris@41 14479 postdep_objects_CXX=$p
Chris@41 14480 else
Chris@41 14481 postdep_objects_CXX="$postdep_objects_CXX $p"
Chris@41 14482 fi
Chris@41 14483 fi
Chris@41 14484 ;;
Chris@41 14485
Chris@41 14486 *) ;; # Ignore the rest.
Chris@41 14487
Chris@41 14488 esac
Chris@41 14489 done
Chris@41 14490
Chris@41 14491 # Clean up.
Chris@41 14492 rm -f a.out a.exe
Chris@41 14493 else
Chris@41 14494 echo "libtool.m4: error: problem compiling CXX test program"
Chris@41 14495 fi
Chris@41 14496
Chris@41 14497 $RM -f confest.$objext
Chris@41 14498 CFLAGS=$_lt_libdeps_save_CFLAGS
Chris@41 14499
Chris@41 14500 # PORTME: override above test on systems where it is broken
Chris@41 14501 case $host_os in
Chris@41 14502 interix[3-9]*)
Chris@41 14503 # Interix 3.5 installs completely hosed .la files for C++, so rather than
Chris@41 14504 # hack all around it, let's just trust "g++" to DTRT.
Chris@41 14505 predep_objects_CXX=
Chris@41 14506 postdep_objects_CXX=
Chris@41 14507 postdeps_CXX=
Chris@41 14508 ;;
Chris@41 14509 esac
Chris@41 14510
Chris@41 14511
Chris@41 14512 case " $postdeps_CXX " in
Chris@41 14513 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
Chris@41 14514 esac
Chris@41 14515 compiler_lib_search_dirs_CXX=
Chris@41 14516 if test -n "${compiler_lib_search_path_CXX}"; then
Chris@41 14517 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
Chris@41 14518 fi
Chris@41 14519
Chris@41 14520
Chris@41 14521
Chris@41 14522
Chris@41 14523
Chris@41 14524
Chris@41 14525
Chris@41 14526
Chris@41 14527
Chris@41 14528
Chris@41 14529
Chris@41 14530
Chris@41 14531
Chris@41 14532
Chris@41 14533
Chris@41 14534
Chris@41 14535
Chris@41 14536
Chris@41 14537
Chris@41 14538
Chris@41 14539
Chris@41 14540
Chris@41 14541
Chris@41 14542
Chris@41 14543
Chris@41 14544
Chris@41 14545
Chris@41 14546
Chris@41 14547
Chris@41 14548
Chris@41 14549
Chris@41 14550 lt_prog_compiler_wl_CXX=
Chris@41 14551 lt_prog_compiler_pic_CXX=
Chris@41 14552 lt_prog_compiler_static_CXX=
Chris@41 14553
Chris@41 14554
Chris@41 14555 # C++ specific cases for pic, static, wl, etc.
Chris@41 14556 if test yes = "$GXX"; then
Chris@41 14557 lt_prog_compiler_wl_CXX='-Wl,'
Chris@41 14558 lt_prog_compiler_static_CXX='-static'
Chris@41 14559
Chris@41 14560 case $host_os in
Chris@41 14561 aix*)
Chris@41 14562 # All AIX code is PIC.
Chris@41 14563 if test ia64 = "$host_cpu"; then
Chris@41 14564 # AIX 5 now supports IA64 processor
Chris@41 14565 lt_prog_compiler_static_CXX='-Bstatic'
Chris@41 14566 fi
Chris@41 14567 lt_prog_compiler_pic_CXX='-fPIC'
Chris@41 14568 ;;
Chris@41 14569
Chris@41 14570 amigaos*)
Chris@41 14571 case $host_cpu in
Chris@41 14572 powerpc)
Chris@41 14573 # see comment about AmigaOS4 .so support
Chris@41 14574 lt_prog_compiler_pic_CXX='-fPIC'
Chris@41 14575 ;;
Chris@41 14576 m68k)
Chris@41 14577 # FIXME: we need at least 68020 code to build shared libraries, but
Chris@41 14578 # adding the '-m68020' flag to GCC prevents building anything better,
Chris@41 14579 # like '-m68040'.
Chris@41 14580 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
Chris@41 14581 ;;
Chris@41 14582 esac
Chris@41 14583 ;;
Chris@41 14584
Chris@41 14585 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Chris@41 14586 # PIC is the default for these OSes.
Chris@41 14587 ;;
Chris@41 14588 mingw* | cygwin* | os2* | pw32* | cegcc*)
Chris@41 14589 # This hack is so that the source file can tell whether it is being
Chris@41 14590 # built for inclusion in a dll (and should export symbols for example).
Chris@41 14591 # Although the cygwin gcc ignores -fPIC, still need this for old-style
Chris@41 14592 # (--disable-auto-import) libraries
Chris@41 14593 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
Chris@41 14594 case $host_os in
Chris@41 14595 os2*)
Chris@41 14596 lt_prog_compiler_static_CXX='$wl-static'
Chris@41 14597 ;;
Chris@41 14598 esac
Chris@41 14599 ;;
Chris@41 14600 darwin* | rhapsody*)
Chris@41 14601 # PIC is the default on this platform
Chris@41 14602 # Common symbols not allowed in MH_DYLIB files
Chris@41 14603 lt_prog_compiler_pic_CXX='-fno-common'
Chris@41 14604 ;;
Chris@41 14605 *djgpp*)
Chris@41 14606 # DJGPP does not support shared libraries at all
Chris@41 14607 lt_prog_compiler_pic_CXX=
Chris@41 14608 ;;
Chris@41 14609 haiku*)
Chris@41 14610 # PIC is the default for Haiku.
Chris@41 14611 # The "-static" flag exists, but is broken.
Chris@41 14612 lt_prog_compiler_static_CXX=
Chris@41 14613 ;;
Chris@41 14614 interix[3-9]*)
Chris@41 14615 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
Chris@41 14616 # Instead, we relocate shared libraries at runtime.
Chris@41 14617 ;;
Chris@41 14618 sysv4*MP*)
Chris@41 14619 if test -d /usr/nec; then
Chris@41 14620 lt_prog_compiler_pic_CXX=-Kconform_pic
Chris@41 14621 fi
Chris@41 14622 ;;
Chris@41 14623 hpux*)
Chris@41 14624 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
Chris@41 14625 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
Chris@41 14626 # sets the default TLS model and affects inlining.
Chris@41 14627 case $host_cpu in
Chris@41 14628 hppa*64*)
Chris@41 14629 ;;
Chris@41 14630 *)
Chris@41 14631 lt_prog_compiler_pic_CXX='-fPIC'
Chris@41 14632 ;;
Chris@41 14633 esac
Chris@41 14634 ;;
Chris@41 14635 *qnx* | *nto*)
Chris@41 14636 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@41 14637 # it will coredump.
Chris@41 14638 lt_prog_compiler_pic_CXX='-fPIC -shared'
Chris@41 14639 ;;
Chris@41 14640 *)
Chris@41 14641 lt_prog_compiler_pic_CXX='-fPIC'
Chris@41 14642 ;;
Chris@41 14643 esac
Chris@41 14644 else
Chris@41 14645 case $host_os in
Chris@41 14646 aix[4-9]*)
Chris@41 14647 # All AIX code is PIC.
Chris@41 14648 if test ia64 = "$host_cpu"; then
Chris@41 14649 # AIX 5 now supports IA64 processor
Chris@41 14650 lt_prog_compiler_static_CXX='-Bstatic'
Chris@41 14651 else
Chris@41 14652 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
Chris@41 14653 fi
Chris@41 14654 ;;
Chris@41 14655 chorus*)
Chris@41 14656 case $cc_basename in
Chris@41 14657 cxch68*)
Chris@41 14658 # Green Hills C++ Compiler
Chris@41 14659 # _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@41 14660 ;;
Chris@41 14661 esac
Chris@41 14662 ;;
Chris@41 14663 mingw* | cygwin* | os2* | pw32* | cegcc*)
Chris@41 14664 # This hack is so that the source file can tell whether it is being
Chris@41 14665 # built for inclusion in a dll (and should export symbols for example).
Chris@41 14666 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
Chris@41 14667 ;;
Chris@41 14668 dgux*)
Chris@41 14669 case $cc_basename in
Chris@41 14670 ec++*)
Chris@41 14671 lt_prog_compiler_pic_CXX='-KPIC'
Chris@41 14672 ;;
Chris@41 14673 ghcx*)
Chris@41 14674 # Green Hills C++ Compiler
Chris@41 14675 lt_prog_compiler_pic_CXX='-pic'
Chris@41 14676 ;;
Chris@41 14677 *)
Chris@41 14678 ;;
Chris@41 14679 esac
Chris@41 14680 ;;
Chris@41 14681 freebsd* | dragonfly*)
Chris@41 14682 # FreeBSD uses GNU C++
Chris@41 14683 ;;
Chris@41 14684 hpux9* | hpux10* | hpux11*)
Chris@41 14685 case $cc_basename in
Chris@41 14686 CC*)
Chris@41 14687 lt_prog_compiler_wl_CXX='-Wl,'
Chris@41 14688 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
Chris@41 14689 if test ia64 != "$host_cpu"; then
Chris@41 14690 lt_prog_compiler_pic_CXX='+Z'
Chris@41 14691 fi
Chris@41 14692 ;;
Chris@41 14693 aCC*)
Chris@41 14694 lt_prog_compiler_wl_CXX='-Wl,'
Chris@41 14695 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
Chris@41 14696 case $host_cpu in
Chris@41 14697 hppa*64*|ia64*)
Chris@41 14698 # +Z the default
Chris@41 14699 ;;
Chris@41 14700 *)
Chris@41 14701 lt_prog_compiler_pic_CXX='+Z'
Chris@41 14702 ;;
Chris@41 14703 esac
Chris@41 14704 ;;
Chris@41 14705 *)
Chris@41 14706 ;;
Chris@41 14707 esac
Chris@41 14708 ;;
Chris@41 14709 interix*)
Chris@41 14710 # This is c89, which is MS Visual C++ (no shared libs)
Chris@41 14711 # Anyone wants to do a port?
Chris@41 14712 ;;
Chris@41 14713 irix5* | irix6* | nonstopux*)
Chris@41 14714 case $cc_basename in
Chris@41 14715 CC*)
Chris@41 14716 lt_prog_compiler_wl_CXX='-Wl,'
Chris@41 14717 lt_prog_compiler_static_CXX='-non_shared'
Chris@41 14718 # CC pic flag -KPIC is the default.
Chris@41 14719 ;;
Chris@41 14720 *)
Chris@41 14721 ;;
Chris@41 14722 esac
Chris@41 14723 ;;
Chris@41 14724 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Chris@41 14725 case $cc_basename in
Chris@41 14726 KCC*)
Chris@41 14727 # KAI C++ Compiler
Chris@41 14728 lt_prog_compiler_wl_CXX='--backend -Wl,'
Chris@41 14729 lt_prog_compiler_pic_CXX='-fPIC'
Chris@41 14730 ;;
Chris@41 14731 ecpc* )
Chris@41 14732 # old Intel C++ for x86_64, which still supported -KPIC.
Chris@41 14733 lt_prog_compiler_wl_CXX='-Wl,'
Chris@41 14734 lt_prog_compiler_pic_CXX='-KPIC'
Chris@41 14735 lt_prog_compiler_static_CXX='-static'
Chris@41 14736 ;;
Chris@41 14737 icpc* )
Chris@41 14738 # Intel C++, used to be incompatible with GCC.
Chris@41 14739 # ICC 10 doesn't accept -KPIC any more.
Chris@41 14740 lt_prog_compiler_wl_CXX='-Wl,'
Chris@41 14741 lt_prog_compiler_pic_CXX='-fPIC'
Chris@41 14742 lt_prog_compiler_static_CXX='-static'
Chris@41 14743 ;;
Chris@41 14744 pgCC* | pgcpp*)
Chris@41 14745 # Portland Group C++ compiler
Chris@41 14746 lt_prog_compiler_wl_CXX='-Wl,'
Chris@41 14747 lt_prog_compiler_pic_CXX='-fpic'
Chris@41 14748 lt_prog_compiler_static_CXX='-Bstatic'
Chris@41 14749 ;;
Chris@41 14750 cxx*)
Chris@41 14751 # Compaq C++
Chris@41 14752 # Make sure the PIC flag is empty. It appears that all Alpha
Chris@41 14753 # Linux and Compaq Tru64 Unix objects are PIC.
Chris@41 14754 lt_prog_compiler_pic_CXX=
Chris@41 14755 lt_prog_compiler_static_CXX='-non_shared'
Chris@41 14756 ;;
Chris@41 14757 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
Chris@41 14758 # IBM XL 8.0, 9.0 on PPC and BlueGene
Chris@41 14759 lt_prog_compiler_wl_CXX='-Wl,'
Chris@41 14760 lt_prog_compiler_pic_CXX='-qpic'
Chris@41 14761 lt_prog_compiler_static_CXX='-qstaticlink'
Chris@41 14762 ;;
Chris@41 14763 *)
Chris@41 14764 case `$CC -V 2>&1 | sed 5q` in
Chris@41 14765 *Sun\ C*)
Chris@41 14766 # Sun C++ 5.9
Chris@41 14767 lt_prog_compiler_pic_CXX='-KPIC'
Chris@41 14768 lt_prog_compiler_static_CXX='-Bstatic'
Chris@41 14769 lt_prog_compiler_wl_CXX='-Qoption ld '
Chris@41 14770 ;;
Chris@41 14771 esac
Chris@41 14772 ;;
Chris@41 14773 esac
Chris@41 14774 ;;
Chris@41 14775 lynxos*)
Chris@41 14776 ;;
Chris@41 14777 m88k*)
Chris@41 14778 ;;
Chris@41 14779 mvs*)
Chris@41 14780 case $cc_basename in
Chris@41 14781 cxx*)
Chris@41 14782 lt_prog_compiler_pic_CXX='-W c,exportall'
Chris@41 14783 ;;
Chris@41 14784 *)
Chris@41 14785 ;;
Chris@41 14786 esac
Chris@41 14787 ;;
Chris@41 14788 netbsd* | netbsdelf*-gnu)
Chris@41 14789 ;;
Chris@41 14790 *qnx* | *nto*)
Chris@41 14791 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@41 14792 # it will coredump.
Chris@41 14793 lt_prog_compiler_pic_CXX='-fPIC -shared'
Chris@41 14794 ;;
Chris@41 14795 osf3* | osf4* | osf5*)
Chris@41 14796 case $cc_basename in
Chris@41 14797 KCC*)
Chris@41 14798 lt_prog_compiler_wl_CXX='--backend -Wl,'
Chris@41 14799 ;;
Chris@41 14800 RCC*)
Chris@41 14801 # Rational C++ 2.4.1
Chris@41 14802 lt_prog_compiler_pic_CXX='-pic'
Chris@41 14803 ;;
Chris@41 14804 cxx*)
Chris@41 14805 # Digital/Compaq C++
Chris@41 14806 lt_prog_compiler_wl_CXX='-Wl,'
Chris@41 14807 # Make sure the PIC flag is empty. It appears that all Alpha
Chris@41 14808 # Linux and Compaq Tru64 Unix objects are PIC.
Chris@41 14809 lt_prog_compiler_pic_CXX=
Chris@41 14810 lt_prog_compiler_static_CXX='-non_shared'
Chris@41 14811 ;;
Chris@41 14812 *)
Chris@41 14813 ;;
Chris@41 14814 esac
Chris@41 14815 ;;
Chris@41 14816 psos*)
Chris@41 14817 ;;
Chris@41 14818 solaris*)
Chris@41 14819 case $cc_basename in
Chris@41 14820 CC* | sunCC*)
Chris@41 14821 # Sun C++ 4.2, 5.x and Centerline C++
Chris@41 14822 lt_prog_compiler_pic_CXX='-KPIC'
Chris@41 14823 lt_prog_compiler_static_CXX='-Bstatic'
Chris@41 14824 lt_prog_compiler_wl_CXX='-Qoption ld '
Chris@41 14825 ;;
Chris@41 14826 gcx*)
Chris@41 14827 # Green Hills C++ Compiler
Chris@41 14828 lt_prog_compiler_pic_CXX='-PIC'
Chris@41 14829 ;;
Chris@41 14830 *)
Chris@41 14831 ;;
Chris@41 14832 esac
Chris@41 14833 ;;
Chris@41 14834 sunos4*)
Chris@41 14835 case $cc_basename in
Chris@41 14836 CC*)
Chris@41 14837 # Sun C++ 4.x
Chris@41 14838 lt_prog_compiler_pic_CXX='-pic'
Chris@41 14839 lt_prog_compiler_static_CXX='-Bstatic'
Chris@41 14840 ;;
Chris@41 14841 lcc*)
Chris@41 14842 # Lucid
Chris@41 14843 lt_prog_compiler_pic_CXX='-pic'
Chris@41 14844 ;;
Chris@41 14845 *)
Chris@41 14846 ;;
Chris@41 14847 esac
Chris@41 14848 ;;
Chris@41 14849 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
Chris@41 14850 case $cc_basename in
Chris@41 14851 CC*)
Chris@41 14852 lt_prog_compiler_wl_CXX='-Wl,'
Chris@41 14853 lt_prog_compiler_pic_CXX='-KPIC'
Chris@41 14854 lt_prog_compiler_static_CXX='-Bstatic'
Chris@41 14855 ;;
Chris@41 14856 esac
Chris@41 14857 ;;
Chris@41 14858 tandem*)
Chris@41 14859 case $cc_basename in
Chris@41 14860 NCC*)
Chris@41 14861 # NonStop-UX NCC 3.20
Chris@41 14862 lt_prog_compiler_pic_CXX='-KPIC'
Chris@41 14863 ;;
Chris@41 14864 *)
Chris@41 14865 ;;
Chris@41 14866 esac
Chris@41 14867 ;;
Chris@41 14868 vxworks*)
Chris@41 14869 ;;
Chris@41 14870 *)
Chris@41 14871 lt_prog_compiler_can_build_shared_CXX=no
Chris@41 14872 ;;
Chris@41 14873 esac
Chris@41 14874 fi
Chris@41 14875
Chris@41 14876 case $host_os in
Chris@41 14877 # For platforms that do not support PIC, -DPIC is meaningless:
Chris@41 14878 *djgpp*)
Chris@41 14879 lt_prog_compiler_pic_CXX=
Chris@41 14880 ;;
Chris@41 14881 *)
Chris@41 14882 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
Chris@41 14883 ;;
Chris@41 14884 esac
Chris@41 14885
Chris@41 14886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
Chris@41 14887 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Chris@41 14888 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
Chris@41 14889 $as_echo_n "(cached) " >&6
Chris@41 14890 else
Chris@41 14891 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
Chris@41 14892 fi
Chris@41 14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
Chris@41 14894 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
Chris@41 14895 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
Chris@41 14896
Chris@41 14897 #
Chris@41 14898 # Check to make sure the PIC flag actually works.
Chris@41 14899 #
Chris@41 14900 if test -n "$lt_prog_compiler_pic_CXX"; then
Chris@41 14901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
Chris@41 14902 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
Chris@41 14903 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
Chris@41 14904 $as_echo_n "(cached) " >&6
Chris@41 14905 else
Chris@41 14906 lt_cv_prog_compiler_pic_works_CXX=no
Chris@41 14907 ac_outfile=conftest.$ac_objext
Chris@41 14908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@41 14909 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
Chris@41 14910 # Insert the option either (1) after the last *FLAGS variable, or
Chris@41 14911 # (2) before a word containing "conftest.", or (3) at the end.
Chris@41 14912 # Note that $ac_compile itself does not contain backslashes and begins
Chris@41 14913 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@41 14914 # The option is referenced via a variable to avoid confusing sed.
Chris@41 14915 lt_compile=`echo "$ac_compile" | $SED \
Chris@41 14916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@41 14917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@41 14918 -e 's:$: $lt_compiler_flag:'`
Chris@41 14919 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@41 14920 (eval "$lt_compile" 2>conftest.err)
Chris@41 14921 ac_status=$?
Chris@41 14922 cat conftest.err >&5
Chris@41 14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@41 14924 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@41 14925 # The compiler can only warn and ignore the option if not recognized
Chris@41 14926 # So say no if there are warnings other than the usual output.
Chris@41 14927 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Chris@41 14928 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@41 14929 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Chris@41 14930 lt_cv_prog_compiler_pic_works_CXX=yes
Chris@41 14931 fi
Chris@41 14932 fi
Chris@41 14933 $RM conftest*
Chris@41 14934
Chris@41 14935 fi
Chris@41 14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
Chris@41 14937 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
Chris@41 14938
Chris@41 14939 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
Chris@41 14940 case $lt_prog_compiler_pic_CXX in
Chris@41 14941 "" | " "*) ;;
Chris@41 14942 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
Chris@41 14943 esac
Chris@41 14944 else
Chris@41 14945 lt_prog_compiler_pic_CXX=
Chris@41 14946 lt_prog_compiler_can_build_shared_CXX=no
Chris@41 14947 fi
Chris@41 14948
Chris@41 14949 fi
Chris@41 14950
Chris@41 14951
Chris@41 14952
Chris@41 14953
Chris@41 14954
Chris@41 14955 #
Chris@41 14956 # Check to make sure the static flag actually works.
Chris@41 14957 #
Chris@41 14958 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
Chris@41 14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
Chris@41 14960 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Chris@41 14961 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
Chris@41 14962 $as_echo_n "(cached) " >&6
Chris@41 14963 else
Chris@41 14964 lt_cv_prog_compiler_static_works_CXX=no
Chris@41 14965 save_LDFLAGS=$LDFLAGS
Chris@41 14966 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Chris@41 14967 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Chris@41 14968 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Chris@41 14969 # The linker can only warn and ignore the option if not recognized
Chris@41 14970 # So say no if there are warnings
Chris@41 14971 if test -s conftest.err; then
Chris@41 14972 # Append any errors to the config.log.
Chris@41 14973 cat conftest.err 1>&5
Chris@41 14974 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Chris@41 14975 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@41 14976 if diff conftest.exp conftest.er2 >/dev/null; then
Chris@41 14977 lt_cv_prog_compiler_static_works_CXX=yes
Chris@41 14978 fi
Chris@41 14979 else
Chris@41 14980 lt_cv_prog_compiler_static_works_CXX=yes
Chris@41 14981 fi
Chris@41 14982 fi
Chris@41 14983 $RM -r conftest*
Chris@41 14984 LDFLAGS=$save_LDFLAGS
Chris@41 14985
Chris@41 14986 fi
Chris@41 14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
Chris@41 14988 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
Chris@41 14989
Chris@41 14990 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
Chris@41 14991 :
Chris@41 14992 else
Chris@41 14993 lt_prog_compiler_static_CXX=
Chris@41 14994 fi
Chris@41 14995
Chris@41 14996
Chris@41 14997
Chris@41 14998
Chris@41 14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@41 15000 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@41 15001 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
Chris@41 15002 $as_echo_n "(cached) " >&6
Chris@41 15003 else
Chris@41 15004 lt_cv_prog_compiler_c_o_CXX=no
Chris@41 15005 $RM -r conftest 2>/dev/null
Chris@41 15006 mkdir conftest
Chris@41 15007 cd conftest
Chris@41 15008 mkdir out
Chris@41 15009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@41 15010
Chris@41 15011 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@41 15012 # Insert the option either (1) after the last *FLAGS variable, or
Chris@41 15013 # (2) before a word containing "conftest.", or (3) at the end.
Chris@41 15014 # Note that $ac_compile itself does not contain backslashes and begins
Chris@41 15015 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@41 15016 lt_compile=`echo "$ac_compile" | $SED \
Chris@41 15017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@41 15018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@41 15019 -e 's:$: $lt_compiler_flag:'`
Chris@41 15020 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@41 15021 (eval "$lt_compile" 2>out/conftest.err)
Chris@41 15022 ac_status=$?
Chris@41 15023 cat out/conftest.err >&5
Chris@41 15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@41 15025 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@41 15026 then
Chris@41 15027 # The compiler can only warn and ignore the option if not recognized
Chris@41 15028 # So say no if there are warnings
Chris@41 15029 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@41 15030 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@41 15031 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@41 15032 lt_cv_prog_compiler_c_o_CXX=yes
Chris@41 15033 fi
Chris@41 15034 fi
Chris@41 15035 chmod u+w . 2>&5
Chris@41 15036 $RM conftest*
Chris@41 15037 # SGI C++ compiler will create directory out/ii_files/ for
Chris@41 15038 # template instantiation
Chris@41 15039 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@41 15040 $RM out/* && rmdir out
Chris@41 15041 cd ..
Chris@41 15042 $RM -r conftest
Chris@41 15043 $RM conftest*
Chris@41 15044
Chris@41 15045 fi
Chris@41 15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
Chris@41 15047 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
Chris@41 15048
Chris@41 15049
Chris@41 15050
Chris@41 15051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@41 15052 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@41 15053 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
Chris@41 15054 $as_echo_n "(cached) " >&6
Chris@41 15055 else
Chris@41 15056 lt_cv_prog_compiler_c_o_CXX=no
Chris@41 15057 $RM -r conftest 2>/dev/null
Chris@41 15058 mkdir conftest
Chris@41 15059 cd conftest
Chris@41 15060 mkdir out
Chris@41 15061 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@41 15062
Chris@41 15063 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@41 15064 # Insert the option either (1) after the last *FLAGS variable, or
Chris@41 15065 # (2) before a word containing "conftest.", or (3) at the end.
Chris@41 15066 # Note that $ac_compile itself does not contain backslashes and begins
Chris@41 15067 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@41 15068 lt_compile=`echo "$ac_compile" | $SED \
Chris@41 15069 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@41 15070 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@41 15071 -e 's:$: $lt_compiler_flag:'`
Chris@41 15072 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@41 15073 (eval "$lt_compile" 2>out/conftest.err)
Chris@41 15074 ac_status=$?
Chris@41 15075 cat out/conftest.err >&5
Chris@41 15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@41 15077 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@41 15078 then
Chris@41 15079 # The compiler can only warn and ignore the option if not recognized
Chris@41 15080 # So say no if there are warnings
Chris@41 15081 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@41 15082 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@41 15083 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@41 15084 lt_cv_prog_compiler_c_o_CXX=yes
Chris@41 15085 fi
Chris@41 15086 fi
Chris@41 15087 chmod u+w . 2>&5
Chris@41 15088 $RM conftest*
Chris@41 15089 # SGI C++ compiler will create directory out/ii_files/ for
Chris@41 15090 # template instantiation
Chris@41 15091 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@41 15092 $RM out/* && rmdir out
Chris@41 15093 cd ..
Chris@41 15094 $RM -r conftest
Chris@41 15095 $RM conftest*
Chris@41 15096
Chris@41 15097 fi
Chris@41 15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
Chris@41 15099 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
Chris@41 15100
Chris@41 15101
Chris@41 15102
Chris@41 15103
Chris@41 15104 hard_links=nottested
Chris@41 15105 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
Chris@41 15106 # do not overwrite the value of need_locks provided by the user
Chris@41 15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Chris@41 15108 $as_echo_n "checking if we can lock with hard links... " >&6; }
Chris@41 15109 hard_links=yes
Chris@41 15110 $RM conftest*
Chris@41 15111 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@41 15112 touch conftest.a
Chris@41 15113 ln conftest.a conftest.b 2>&5 || hard_links=no
Chris@41 15114 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@41 15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Chris@41 15116 $as_echo "$hard_links" >&6; }
Chris@41 15117 if test no = "$hard_links"; then
Chris@41 15118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
Chris@41 15119 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
Chris@41 15120 need_locks=warn
Chris@41 15121 fi
Chris@41 15122 else
Chris@41 15123 need_locks=no
Chris@41 15124 fi
Chris@41 15125
Chris@41 15126
Chris@41 15127
Chris@41 15128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Chris@41 15129 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Chris@41 15130
Chris@41 15131 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Chris@41 15132 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Chris@41 15133 case $host_os in
Chris@41 15134 aix[4-9]*)
Chris@41 15135 # If we're using GNU nm, then we don't want the "-C" option.
Chris@41 15136 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
Chris@41 15137 # Without the "-l" option, or with the "-B" option, AIX nm treats
Chris@41 15138 # weak defined symbols like other global defined symbols, whereas
Chris@41 15139 # GNU nm marks them as "W".
Chris@41 15140 # While the 'weak' keyword is ignored in the Export File, we need
Chris@41 15141 # it in the Import File for the 'aix-soname' feature, so we have
Chris@41 15142 # to replace the "-B" option with "-P" for AIX nm.
Chris@41 15143 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Chris@41 15144 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
Chris@41 15145 else
Chris@41 15146 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
Chris@41 15147 fi
Chris@41 15148 ;;
Chris@41 15149 pw32*)
Chris@41 15150 export_symbols_cmds_CXX=$ltdll_cmds
Chris@41 15151 ;;
Chris@41 15152 cygwin* | mingw* | cegcc*)
Chris@41 15153 case $cc_basename in
Chris@41 15154 cl*)
Chris@41 15155 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
Chris@41 15156 ;;
Chris@41 15157 *)
Chris@41 15158 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@41 15159 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
Chris@41 15160 ;;
Chris@41 15161 esac
Chris@41 15162 ;;
Chris@41 15163 linux* | k*bsd*-gnu | gnu*)
Chris@41 15164 link_all_deplibs_CXX=no
Chris@41 15165 ;;
Chris@41 15166 *)
Chris@41 15167 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Chris@41 15168 ;;
Chris@41 15169 esac
Chris@41 15170
Chris@41 15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
Chris@41 15172 $as_echo "$ld_shlibs_CXX" >&6; }
Chris@41 15173 test no = "$ld_shlibs_CXX" && can_build_shared=no
Chris@41 15174
Chris@41 15175 with_gnu_ld_CXX=$with_gnu_ld
Chris@41 15176
Chris@41 15177
Chris@41 15178
Chris@41 15179
Chris@41 15180
Chris@41 15181
Chris@41 15182 #
Chris@41 15183 # Do we need to explicitly link libc?
Chris@41 15184 #
Chris@41 15185 case "x$archive_cmds_need_lc_CXX" in
Chris@41 15186 x|xyes)
Chris@41 15187 # Assume -lc should be added
Chris@41 15188 archive_cmds_need_lc_CXX=yes
Chris@41 15189
Chris@41 15190 if test yes,yes = "$GCC,$enable_shared"; then
Chris@41 15191 case $archive_cmds_CXX in
Chris@41 15192 *'~'*)
Chris@41 15193 # FIXME: we may have to deal with multi-command sequences.
Chris@41 15194 ;;
Chris@41 15195 '$CC '*)
Chris@41 15196 # Test whether the compiler implicitly links with -lc since on some
Chris@41 15197 # systems, -lgcc has to come before -lc. If gcc already passes -lc
Chris@41 15198 # to ld, don't add -lc before -lgcc.
Chris@41 15199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Chris@41 15200 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Chris@41 15201 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
Chris@41 15202 $as_echo_n "(cached) " >&6
Chris@41 15203 else
Chris@41 15204 $RM conftest*
Chris@41 15205 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@41 15206
Chris@41 15207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@41 15208 (eval $ac_compile) 2>&5
Chris@41 15209 ac_status=$?
Chris@41 15210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 15211 test $ac_status = 0; } 2>conftest.err; then
Chris@41 15212 soname=conftest
Chris@41 15213 lib=conftest
Chris@41 15214 libobjs=conftest.$ac_objext
Chris@41 15215 deplibs=
Chris@41 15216 wl=$lt_prog_compiler_wl_CXX
Chris@41 15217 pic_flag=$lt_prog_compiler_pic_CXX
Chris@41 15218 compiler_flags=-v
Chris@41 15219 linker_flags=-v
Chris@41 15220 verstring=
Chris@41 15221 output_objdir=.
Chris@41 15222 libname=conftest
Chris@41 15223 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
Chris@41 15224 allow_undefined_flag_CXX=
Chris@41 15225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Chris@41 15226 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Chris@41 15227 ac_status=$?
Chris@41 15228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 15229 test $ac_status = 0; }
Chris@41 15230 then
Chris@41 15231 lt_cv_archive_cmds_need_lc_CXX=no
Chris@41 15232 else
Chris@41 15233 lt_cv_archive_cmds_need_lc_CXX=yes
Chris@41 15234 fi
Chris@41 15235 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
Chris@41 15236 else
Chris@41 15237 cat conftest.err 1>&5
Chris@41 15238 fi
Chris@41 15239 $RM conftest*
Chris@41 15240
Chris@41 15241 fi
Chris@41 15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
Chris@41 15243 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
Chris@41 15244 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
Chris@41 15245 ;;
Chris@41 15246 esac
Chris@41 15247 fi
Chris@41 15248 ;;
Chris@41 15249 esac
Chris@41 15250
Chris@41 15251
Chris@41 15252
Chris@41 15253
Chris@41 15254
Chris@41 15255
Chris@41 15256
Chris@41 15257
Chris@41 15258
Chris@41 15259
Chris@41 15260
Chris@41 15261
Chris@41 15262
Chris@41 15263
Chris@41 15264
Chris@41 15265
Chris@41 15266
Chris@41 15267
Chris@41 15268
Chris@41 15269
Chris@41 15270
Chris@41 15271
Chris@41 15272
Chris@41 15273
Chris@41 15274
Chris@41 15275
Chris@41 15276
Chris@41 15277
Chris@41 15278
Chris@41 15279
Chris@41 15280
Chris@41 15281
Chris@41 15282
Chris@41 15283
Chris@41 15284
Chris@41 15285
Chris@41 15286
Chris@41 15287
Chris@41 15288
Chris@41 15289
Chris@41 15290
Chris@41 15291
Chris@41 15292
Chris@41 15293
Chris@41 15294
Chris@41 15295
Chris@41 15296
Chris@41 15297
Chris@41 15298
Chris@41 15299
Chris@41 15300
Chris@41 15301
Chris@41 15302
Chris@41 15303
Chris@41 15304
Chris@41 15305
Chris@41 15306
Chris@41 15307
Chris@41 15308
Chris@41 15309
Chris@41 15310
Chris@41 15311
Chris@41 15312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Chris@41 15313 $as_echo_n "checking dynamic linker characteristics... " >&6; }
Chris@41 15314
Chris@41 15315 library_names_spec=
Chris@41 15316 libname_spec='lib$name'
Chris@41 15317 soname_spec=
Chris@41 15318 shrext_cmds=.so
Chris@41 15319 postinstall_cmds=
Chris@41 15320 postuninstall_cmds=
Chris@41 15321 finish_cmds=
Chris@41 15322 finish_eval=
Chris@41 15323 shlibpath_var=
Chris@41 15324 shlibpath_overrides_runpath=unknown
Chris@41 15325 version_type=none
Chris@41 15326 dynamic_linker="$host_os ld.so"
Chris@41 15327 sys_lib_dlsearch_path_spec="/lib /usr/lib"
Chris@41 15328 need_lib_prefix=unknown
Chris@41 15329 hardcode_into_libs=no
Chris@41 15330
Chris@41 15331 # when you set need_version to no, make sure it does not cause -set_version
Chris@41 15332 # flags to be left without arguments
Chris@41 15333 need_version=unknown
Chris@41 15334
Chris@41 15335
Chris@41 15336
Chris@41 15337 case $host_os in
Chris@41 15338 aix3*)
Chris@41 15339 version_type=linux # correct to gnu/linux during the next big refactor
Chris@41 15340 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
Chris@41 15341 shlibpath_var=LIBPATH
Chris@41 15342
Chris@41 15343 # AIX 3 has no versioning support, so we append a major version to the name.
Chris@41 15344 soname_spec='$libname$release$shared_ext$major'
Chris@41 15345 ;;
Chris@41 15346
Chris@41 15347 aix[4-9]*)
Chris@41 15348 version_type=linux # correct to gnu/linux during the next big refactor
Chris@41 15349 need_lib_prefix=no
Chris@41 15350 need_version=no
Chris@41 15351 hardcode_into_libs=yes
Chris@41 15352 if test ia64 = "$host_cpu"; then
Chris@41 15353 # AIX 5 supports IA64
Chris@41 15354 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
Chris@41 15355 shlibpath_var=LD_LIBRARY_PATH
Chris@41 15356 else
Chris@41 15357 # With GCC up to 2.95.x, collect2 would create an import file
Chris@41 15358 # for dependence libraries. The import file would start with
Chris@41 15359 # the line '#! .'. This would cause the generated library to
Chris@41 15360 # depend on '.', always an invalid library. This was fixed in
Chris@41 15361 # development snapshots of GCC prior to 3.0.
Chris@41 15362 case $host_os in
Chris@41 15363 aix4 | aix4.[01] | aix4.[01].*)
Chris@41 15364 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
Chris@41 15365 echo ' yes '
Chris@41 15366 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
Chris@41 15367 :
Chris@41 15368 else
Chris@41 15369 can_build_shared=no
Chris@41 15370 fi
Chris@41 15371 ;;
Chris@41 15372 esac
Chris@41 15373 # Using Import Files as archive members, it is possible to support
Chris@41 15374 # filename-based versioning of shared library archives on AIX. While
Chris@41 15375 # this would work for both with and without runtime linking, it will
Chris@41 15376 # prevent static linking of such archives. So we do filename-based
Chris@41 15377 # shared library versioning with .so extension only, which is used
Chris@41 15378 # when both runtime linking and shared linking is enabled.
Chris@41 15379 # Unfortunately, runtime linking may impact performance, so we do
Chris@41 15380 # not want this to be the default eventually. Also, we use the
Chris@41 15381 # versioned .so libs for executables only if there is the -brtl
Chris@41 15382 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
Chris@41 15383 # To allow for filename-based versioning support, we need to create
Chris@41 15384 # libNAME.so.V as an archive file, containing:
Chris@41 15385 # *) an Import File, referring to the versioned filename of the
Chris@41 15386 # archive as well as the shared archive member, telling the
Chris@41 15387 # bitwidth (32 or 64) of that shared object, and providing the
Chris@41 15388 # list of exported symbols of that shared object, eventually
Chris@41 15389 # decorated with the 'weak' keyword
Chris@41 15390 # *) the shared object with the F_LOADONLY flag set, to really avoid
Chris@41 15391 # it being seen by the linker.
Chris@41 15392 # At run time we better use the real file rather than another symlink,
Chris@41 15393 # but for link time we create the symlink libNAME.so -> libNAME.so.V
Chris@41 15394
Chris@41 15395 case $with_aix_soname,$aix_use_runtimelinking in
Chris@41 15396 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
Chris@41 15397 # soname into executable. Probably we can add versioning support to
Chris@41 15398 # collect2, so additional links can be useful in future.
Chris@41 15399 aix,yes) # traditional libtool
Chris@41 15400 dynamic_linker='AIX unversionable lib.so'
Chris@41 15401 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
Chris@41 15402 # instead of lib<name>.a to let people know that these are not
Chris@41 15403 # typical AIX shared libraries.
Chris@41 15404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 15405 ;;
Chris@41 15406 aix,no) # traditional AIX only
Chris@41 15407 dynamic_linker='AIX lib.a(lib.so.V)'
Chris@41 15408 # We preserve .a as extension for shared libraries through AIX4.2
Chris@41 15409 # and later when we are not doing run time linking.
Chris@41 15410 library_names_spec='$libname$release.a $libname.a'
Chris@41 15411 soname_spec='$libname$release$shared_ext$major'
Chris@41 15412 ;;
Chris@41 15413 svr4,*) # full svr4 only
Chris@41 15414 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
Chris@41 15415 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
Chris@41 15416 # We do not specify a path in Import Files, so LIBPATH fires.
Chris@41 15417 shlibpath_overrides_runpath=yes
Chris@41 15418 ;;
Chris@41 15419 *,yes) # both, prefer svr4
Chris@41 15420 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
Chris@41 15421 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
Chris@41 15422 # unpreferred sharedlib libNAME.a needs extra handling
Chris@41 15423 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
Chris@41 15424 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
Chris@41 15425 # We do not specify a path in Import Files, so LIBPATH fires.
Chris@41 15426 shlibpath_overrides_runpath=yes
Chris@41 15427 ;;
Chris@41 15428 *,no) # both, prefer aix
Chris@41 15429 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
Chris@41 15430 library_names_spec='$libname$release.a $libname.a'
Chris@41 15431 soname_spec='$libname$release$shared_ext$major'
Chris@41 15432 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
Chris@41 15433 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
Chris@41 15434 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
Chris@41 15435 ;;
Chris@41 15436 esac
Chris@41 15437 shlibpath_var=LIBPATH
Chris@41 15438 fi
Chris@41 15439 ;;
Chris@41 15440
Chris@41 15441 amigaos*)
Chris@41 15442 case $host_cpu in
Chris@41 15443 powerpc)
Chris@41 15444 # Since July 2007 AmigaOS4 officially supports .so libraries.
Chris@41 15445 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Chris@41 15446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 15447 ;;
Chris@41 15448 m68k)
Chris@41 15449 library_names_spec='$libname.ixlibrary $libname.a'
Chris@41 15450 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Chris@41 15451 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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@41 15452 ;;
Chris@41 15453 esac
Chris@41 15454 ;;
Chris@41 15455
Chris@41 15456 beos*)
Chris@41 15457 library_names_spec='$libname$shared_ext'
Chris@41 15458 dynamic_linker="$host_os ld.so"
Chris@41 15459 shlibpath_var=LIBRARY_PATH
Chris@41 15460 ;;
Chris@41 15461
Chris@41 15462 bsdi[45]*)
Chris@41 15463 version_type=linux # correct to gnu/linux during the next big refactor
Chris@41 15464 need_version=no
Chris@41 15465 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 15466 soname_spec='$libname$release$shared_ext$major'
Chris@41 15467 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
Chris@41 15468 shlibpath_var=LD_LIBRARY_PATH
Chris@41 15469 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
Chris@41 15470 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
Chris@41 15471 # the default ld.so.conf also contains /usr/contrib/lib and
Chris@41 15472 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
Chris@41 15473 # libtool to hard-code these into programs
Chris@41 15474 ;;
Chris@41 15475
Chris@41 15476 cygwin* | mingw* | pw32* | cegcc*)
Chris@41 15477 version_type=windows
Chris@41 15478 shrext_cmds=.dll
Chris@41 15479 need_version=no
Chris@41 15480 need_lib_prefix=no
Chris@41 15481
Chris@41 15482 case $GCC,$cc_basename in
Chris@41 15483 yes,*)
Chris@41 15484 # gcc
Chris@41 15485 library_names_spec='$libname.dll.a'
Chris@41 15486 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@41 15487 postinstall_cmds='base_file=`basename \$file`~
Chris@41 15488 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Chris@41 15489 dldir=$destdir/`dirname \$dlpath`~
Chris@41 15490 test -d \$dldir || mkdir -p \$dldir~
Chris@41 15491 $install_prog $dir/$dlname \$dldir/$dlname~
Chris@41 15492 chmod a+x \$dldir/$dlname~
Chris@41 15493 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
Chris@41 15494 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
Chris@41 15495 fi'
Chris@41 15496 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@41 15497 dlpath=$dir/\$dldll~
Chris@41 15498 $RM \$dlpath'
Chris@41 15499 shlibpath_overrides_runpath=yes
Chris@41 15500
Chris@41 15501 case $host_os in
Chris@41 15502 cygwin*)
Chris@41 15503 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Chris@41 15504 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Chris@41 15505
Chris@41 15506 ;;
Chris@41 15507 mingw* | cegcc*)
Chris@41 15508 # MinGW DLLs use traditional 'lib' prefix
Chris@41 15509 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Chris@41 15510 ;;
Chris@41 15511 pw32*)
Chris@41 15512 # pw32 DLLs use 'pw' prefix rather than 'lib'
Chris@41 15513 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Chris@41 15514 ;;
Chris@41 15515 esac
Chris@41 15516 dynamic_linker='Win32 ld.exe'
Chris@41 15517 ;;
Chris@41 15518
Chris@41 15519 *,cl*)
Chris@41 15520 # Native MSVC
Chris@41 15521 libname_spec='$name'
Chris@41 15522 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Chris@41 15523 library_names_spec='$libname.dll.lib'
Chris@41 15524
Chris@41 15525 case $build_os in
Chris@41 15526 mingw*)
Chris@41 15527 sys_lib_search_path_spec=
Chris@41 15528 lt_save_ifs=$IFS
Chris@41 15529 IFS=';'
Chris@41 15530 for lt_path in $LIB
Chris@41 15531 do
Chris@41 15532 IFS=$lt_save_ifs
Chris@41 15533 # Let DOS variable expansion print the short 8.3 style file name.
Chris@41 15534 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
Chris@41 15535 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
Chris@41 15536 done
Chris@41 15537 IFS=$lt_save_ifs
Chris@41 15538 # Convert to MSYS style.
Chris@41 15539 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@41 15540 ;;
Chris@41 15541 cygwin*)
Chris@41 15542 # Convert to unix form, then to dos form, then back to unix form
Chris@41 15543 # but this time dos style (no spaces!) so that the unix form looks
Chris@41 15544 # like /cygdrive/c/PROGRA~1:/cygdr...
Chris@41 15545 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
Chris@41 15546 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
Chris@41 15547 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@41 15548 ;;
Chris@41 15549 *)
Chris@41 15550 sys_lib_search_path_spec=$LIB
Chris@41 15551 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
Chris@41 15552 # It is most probably a Windows format PATH.
Chris@41 15553 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Chris@41 15554 else
Chris@41 15555 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@41 15556 fi
Chris@41 15557 # FIXME: find the short name or the path components, as spaces are
Chris@41 15558 # common. (e.g. "Program Files" -> "PROGRA~1")
Chris@41 15559 ;;
Chris@41 15560 esac
Chris@41 15561
Chris@41 15562 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@41 15563 postinstall_cmds='base_file=`basename \$file`~
Chris@41 15564 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Chris@41 15565 dldir=$destdir/`dirname \$dlpath`~
Chris@41 15566 test -d \$dldir || mkdir -p \$dldir~
Chris@41 15567 $install_prog $dir/$dlname \$dldir/$dlname'
Chris@41 15568 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@41 15569 dlpath=$dir/\$dldll~
Chris@41 15570 $RM \$dlpath'
Chris@41 15571 shlibpath_overrides_runpath=yes
Chris@41 15572 dynamic_linker='Win32 link.exe'
Chris@41 15573 ;;
Chris@41 15574
Chris@41 15575 *)
Chris@41 15576 # Assume MSVC wrapper
Chris@41 15577 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
Chris@41 15578 dynamic_linker='Win32 ld.exe'
Chris@41 15579 ;;
Chris@41 15580 esac
Chris@41 15581 # FIXME: first we should search . and the directory the executable is in
Chris@41 15582 shlibpath_var=PATH
Chris@41 15583 ;;
Chris@41 15584
Chris@41 15585 darwin* | rhapsody*)
Chris@41 15586 dynamic_linker="$host_os dyld"
Chris@41 15587 version_type=darwin
Chris@41 15588 need_lib_prefix=no
Chris@41 15589 need_version=no
Chris@41 15590 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
Chris@41 15591 soname_spec='$libname$release$major$shared_ext'
Chris@41 15592 shlibpath_overrides_runpath=yes
Chris@41 15593 shlibpath_var=DYLD_LIBRARY_PATH
Chris@41 15594 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Chris@41 15595
Chris@41 15596 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
Chris@41 15597 ;;
Chris@41 15598
Chris@41 15599 dgux*)
Chris@41 15600 version_type=linux # correct to gnu/linux during the next big refactor
Chris@41 15601 need_lib_prefix=no
Chris@41 15602 need_version=no
Chris@41 15603 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 15604 soname_spec='$libname$release$shared_ext$major'
Chris@41 15605 shlibpath_var=LD_LIBRARY_PATH
Chris@41 15606 ;;
Chris@41 15607
Chris@41 15608 freebsd* | dragonfly*)
Chris@41 15609 # DragonFly does not have aout. When/if they implement a new
Chris@41 15610 # versioning mechanism, adjust this.
Chris@41 15611 if test -x /usr/bin/objformat; then
Chris@41 15612 objformat=`/usr/bin/objformat`
Chris@41 15613 else
Chris@41 15614 case $host_os in
Chris@41 15615 freebsd[23].*) objformat=aout ;;
Chris@41 15616 *) objformat=elf ;;
Chris@41 15617 esac
Chris@41 15618 fi
Chris@41 15619 version_type=freebsd-$objformat
Chris@41 15620 case $version_type in
Chris@41 15621 freebsd-elf*)
Chris@41 15622 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 15623 soname_spec='$libname$release$shared_ext$major'
Chris@41 15624 need_version=no
Chris@41 15625 need_lib_prefix=no
Chris@41 15626 ;;
Chris@41 15627 freebsd-*)
Chris@41 15628 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Chris@41 15629 need_version=yes
Chris@41 15630 ;;
Chris@41 15631 esac
Chris@41 15632 shlibpath_var=LD_LIBRARY_PATH
Chris@41 15633 case $host_os in
Chris@41 15634 freebsd2.*)
Chris@41 15635 shlibpath_overrides_runpath=yes
Chris@41 15636 ;;
Chris@41 15637 freebsd3.[01]* | freebsdelf3.[01]*)
Chris@41 15638 shlibpath_overrides_runpath=yes
Chris@41 15639 hardcode_into_libs=yes
Chris@41 15640 ;;
Chris@41 15641 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
Chris@41 15642 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Chris@41 15643 shlibpath_overrides_runpath=no
Chris@41 15644 hardcode_into_libs=yes
Chris@41 15645 ;;
Chris@41 15646 *) # from 4.6 on, and DragonFly
Chris@41 15647 shlibpath_overrides_runpath=yes
Chris@41 15648 hardcode_into_libs=yes
Chris@41 15649 ;;
Chris@41 15650 esac
Chris@41 15651 ;;
Chris@41 15652
Chris@41 15653 haiku*)
Chris@41 15654 version_type=linux # correct to gnu/linux during the next big refactor
Chris@41 15655 need_lib_prefix=no
Chris@41 15656 need_version=no
Chris@41 15657 dynamic_linker="$host_os runtime_loader"
Chris@41 15658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 15659 soname_spec='$libname$release$shared_ext$major'
Chris@41 15660 shlibpath_var=LIBRARY_PATH
Chris@41 15661 shlibpath_overrides_runpath=no
Chris@41 15662 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Chris@41 15663 hardcode_into_libs=yes
Chris@41 15664 ;;
Chris@41 15665
Chris@41 15666 hpux9* | hpux10* | hpux11*)
Chris@41 15667 # Give a soname corresponding to the major version so that dld.sl refuses to
Chris@41 15668 # link against other versions.
Chris@41 15669 version_type=sunos
Chris@41 15670 need_lib_prefix=no
Chris@41 15671 need_version=no
Chris@41 15672 case $host_cpu in
Chris@41 15673 ia64*)
Chris@41 15674 shrext_cmds='.so'
Chris@41 15675 hardcode_into_libs=yes
Chris@41 15676 dynamic_linker="$host_os dld.so"
Chris@41 15677 shlibpath_var=LD_LIBRARY_PATH
Chris@41 15678 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@41 15679 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 15680 soname_spec='$libname$release$shared_ext$major'
Chris@41 15681 if test 32 = "$HPUX_IA64_MODE"; then
Chris@41 15682 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Chris@41 15683 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
Chris@41 15684 else
Chris@41 15685 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Chris@41 15686 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
Chris@41 15687 fi
Chris@41 15688 ;;
Chris@41 15689 hppa*64*)
Chris@41 15690 shrext_cmds='.sl'
Chris@41 15691 hardcode_into_libs=yes
Chris@41 15692 dynamic_linker="$host_os dld.sl"
Chris@41 15693 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
Chris@41 15694 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@41 15695 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 15696 soname_spec='$libname$release$shared_ext$major'
Chris@41 15697 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
Chris@41 15698 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@41 15699 ;;
Chris@41 15700 *)
Chris@41 15701 shrext_cmds='.sl'
Chris@41 15702 dynamic_linker="$host_os dld.sl"
Chris@41 15703 shlibpath_var=SHLIB_PATH
Chris@41 15704 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Chris@41 15705 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 15706 soname_spec='$libname$release$shared_ext$major'
Chris@41 15707 ;;
Chris@41 15708 esac
Chris@41 15709 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Chris@41 15710 postinstall_cmds='chmod 555 $lib'
Chris@41 15711 # or fails outright, so override atomically:
Chris@41 15712 install_override_mode=555
Chris@41 15713 ;;
Chris@41 15714
Chris@41 15715 interix[3-9]*)
Chris@41 15716 version_type=linux # correct to gnu/linux during the next big refactor
Chris@41 15717 need_lib_prefix=no
Chris@41 15718 need_version=no
Chris@41 15719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 15720 soname_spec='$libname$release$shared_ext$major'
Chris@41 15721 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
Chris@41 15722 shlibpath_var=LD_LIBRARY_PATH
Chris@41 15723 shlibpath_overrides_runpath=no
Chris@41 15724 hardcode_into_libs=yes
Chris@41 15725 ;;
Chris@41 15726
Chris@41 15727 irix5* | irix6* | nonstopux*)
Chris@41 15728 case $host_os in
Chris@41 15729 nonstopux*) version_type=nonstopux ;;
Chris@41 15730 *)
Chris@41 15731 if test yes = "$lt_cv_prog_gnu_ld"; then
Chris@41 15732 version_type=linux # correct to gnu/linux during the next big refactor
Chris@41 15733 else
Chris@41 15734 version_type=irix
Chris@41 15735 fi ;;
Chris@41 15736 esac
Chris@41 15737 need_lib_prefix=no
Chris@41 15738 need_version=no
Chris@41 15739 soname_spec='$libname$release$shared_ext$major'
Chris@41 15740 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
Chris@41 15741 case $host_os in
Chris@41 15742 irix5* | nonstopux*)
Chris@41 15743 libsuff= shlibsuff=
Chris@41 15744 ;;
Chris@41 15745 *)
Chris@41 15746 case $LD in # libtool.m4 will add one of these switches to LD
Chris@41 15747 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
Chris@41 15748 libsuff= shlibsuff= libmagic=32-bit;;
Chris@41 15749 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
Chris@41 15750 libsuff=32 shlibsuff=N32 libmagic=N32;;
Chris@41 15751 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
Chris@41 15752 libsuff=64 shlibsuff=64 libmagic=64-bit;;
Chris@41 15753 *) libsuff= shlibsuff= libmagic=never-match;;
Chris@41 15754 esac
Chris@41 15755 ;;
Chris@41 15756 esac
Chris@41 15757 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
Chris@41 15758 shlibpath_overrides_runpath=no
Chris@41 15759 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
Chris@41 15760 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
Chris@41 15761 hardcode_into_libs=yes
Chris@41 15762 ;;
Chris@41 15763
Chris@41 15764 # No shared lib support for Linux oldld, aout, or coff.
Chris@41 15765 linux*oldld* | linux*aout* | linux*coff*)
Chris@41 15766 dynamic_linker=no
Chris@41 15767 ;;
Chris@41 15768
Chris@41 15769 linux*android*)
Chris@41 15770 version_type=none # Android doesn't support versioned libraries.
Chris@41 15771 need_lib_prefix=no
Chris@41 15772 need_version=no
Chris@41 15773 library_names_spec='$libname$release$shared_ext'
Chris@41 15774 soname_spec='$libname$release$shared_ext'
Chris@41 15775 finish_cmds=
Chris@41 15776 shlibpath_var=LD_LIBRARY_PATH
Chris@41 15777 shlibpath_overrides_runpath=yes
Chris@41 15778
Chris@41 15779 # This implies no fast_install, which is unacceptable.
Chris@41 15780 # Some rework will be needed to allow for fast_install
Chris@41 15781 # before this can be enabled.
Chris@41 15782 hardcode_into_libs=yes
Chris@41 15783
Chris@41 15784 dynamic_linker='Android linker'
Chris@41 15785 # Don't embed -rpath directories since the linker doesn't support them.
Chris@41 15786 hardcode_libdir_flag_spec_CXX='-L$libdir'
Chris@41 15787 ;;
Chris@41 15788
Chris@41 15789 # This must be glibc/ELF.
Chris@41 15790 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Chris@41 15791 version_type=linux # correct to gnu/linux during the next big refactor
Chris@41 15792 need_lib_prefix=no
Chris@41 15793 need_version=no
Chris@41 15794 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 15795 soname_spec='$libname$release$shared_ext$major'
Chris@41 15796 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
Chris@41 15797 shlibpath_var=LD_LIBRARY_PATH
Chris@41 15798 shlibpath_overrides_runpath=no
Chris@41 15799
Chris@41 15800 # Some binutils ld are patched to set DT_RUNPATH
Chris@41 15801 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
Chris@41 15802 $as_echo_n "(cached) " >&6
Chris@41 15803 else
Chris@41 15804 lt_cv_shlibpath_overrides_runpath=no
Chris@41 15805 save_LDFLAGS=$LDFLAGS
Chris@41 15806 save_libdir=$libdir
Chris@41 15807 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
Chris@41 15808 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
Chris@41 15809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 15810 /* end confdefs.h. */
Chris@41 15811
Chris@41 15812 int
Chris@41 15813 main ()
Chris@41 15814 {
Chris@41 15815
Chris@41 15816 ;
Chris@41 15817 return 0;
Chris@41 15818 }
Chris@41 15819 _ACEOF
Chris@41 15820 if ac_fn_cxx_try_link "$LINENO"; then :
Chris@41 15821 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
Chris@41 15822 lt_cv_shlibpath_overrides_runpath=yes
Chris@41 15823 fi
Chris@41 15824 fi
Chris@41 15825 rm -f core conftest.err conftest.$ac_objext \
Chris@41 15826 conftest$ac_exeext conftest.$ac_ext
Chris@41 15827 LDFLAGS=$save_LDFLAGS
Chris@41 15828 libdir=$save_libdir
Chris@41 15829
Chris@41 15830 fi
Chris@41 15831
Chris@41 15832 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Chris@41 15833
Chris@41 15834 # This implies no fast_install, which is unacceptable.
Chris@41 15835 # Some rework will be needed to allow for fast_install
Chris@41 15836 # before this can be enabled.
Chris@41 15837 hardcode_into_libs=yes
Chris@41 15838
Chris@41 15839 # Ideally, we could use ldconfig to report *all* directores which are
Chris@41 15840 # searched for libraries, however this is still not possible. Aside from not
Chris@41 15841 # being certain /sbin/ldconfig is available, command
Chris@41 15842 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
Chris@41 15843 # even though it is searched at run-time. Try to do the best guess by
Chris@41 15844 # appending ld.so.conf contents (and includes) to the search path.
Chris@41 15845 if test -f /etc/ld.so.conf; then
Chris@41 15846 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@41 15847 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
Chris@41 15848 fi
Chris@41 15849
Chris@41 15850 # We used to test for /lib/ld.so.1 and disable shared libraries on
Chris@41 15851 # powerpc, because MkLinux only supported shared libraries with the
Chris@41 15852 # GNU dynamic linker. Since this was broken with cross compilers,
Chris@41 15853 # most powerpc-linux boxes support dynamic linking these days and
Chris@41 15854 # people can always --disable-shared, the test was removed, and we
Chris@41 15855 # assume the GNU/Linux dynamic linker is in use.
Chris@41 15856 dynamic_linker='GNU/Linux ld.so'
Chris@41 15857 ;;
Chris@41 15858
Chris@41 15859 netbsdelf*-gnu)
Chris@41 15860 version_type=linux
Chris@41 15861 need_lib_prefix=no
Chris@41 15862 need_version=no
Chris@41 15863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@41 15864 soname_spec='${libname}${release}${shared_ext}$major'
Chris@41 15865 shlibpath_var=LD_LIBRARY_PATH
Chris@41 15866 shlibpath_overrides_runpath=no
Chris@41 15867 hardcode_into_libs=yes
Chris@41 15868 dynamic_linker='NetBSD ld.elf_so'
Chris@41 15869 ;;
Chris@41 15870
Chris@41 15871 netbsd*)
Chris@41 15872 version_type=sunos
Chris@41 15873 need_lib_prefix=no
Chris@41 15874 need_version=no
Chris@41 15875 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@41 15876 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Chris@41 15877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@41 15878 dynamic_linker='NetBSD (a.out) ld.so'
Chris@41 15879 else
Chris@41 15880 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 15881 soname_spec='$libname$release$shared_ext$major'
Chris@41 15882 dynamic_linker='NetBSD ld.elf_so'
Chris@41 15883 fi
Chris@41 15884 shlibpath_var=LD_LIBRARY_PATH
Chris@41 15885 shlibpath_overrides_runpath=yes
Chris@41 15886 hardcode_into_libs=yes
Chris@41 15887 ;;
Chris@41 15888
Chris@41 15889 newsos6)
Chris@41 15890 version_type=linux # correct to gnu/linux during the next big refactor
Chris@41 15891 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 15892 shlibpath_var=LD_LIBRARY_PATH
Chris@41 15893 shlibpath_overrides_runpath=yes
Chris@41 15894 ;;
Chris@41 15895
Chris@41 15896 *nto* | *qnx*)
Chris@41 15897 version_type=qnx
Chris@41 15898 need_lib_prefix=no
Chris@41 15899 need_version=no
Chris@41 15900 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 15901 soname_spec='$libname$release$shared_ext$major'
Chris@41 15902 shlibpath_var=LD_LIBRARY_PATH
Chris@41 15903 shlibpath_overrides_runpath=no
Chris@41 15904 hardcode_into_libs=yes
Chris@41 15905 dynamic_linker='ldqnx.so'
Chris@41 15906 ;;
Chris@41 15907
Chris@41 15908 openbsd* | bitrig*)
Chris@41 15909 version_type=sunos
Chris@41 15910 sys_lib_dlsearch_path_spec=/usr/lib
Chris@41 15911 need_lib_prefix=no
Chris@41 15912 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Chris@41 15913 need_version=no
Chris@41 15914 else
Chris@41 15915 need_version=yes
Chris@41 15916 fi
Chris@41 15917 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Chris@41 15918 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@41 15919 shlibpath_var=LD_LIBRARY_PATH
Chris@41 15920 shlibpath_overrides_runpath=yes
Chris@41 15921 ;;
Chris@41 15922
Chris@41 15923 os2*)
Chris@41 15924 libname_spec='$name'
Chris@41 15925 version_type=windows
Chris@41 15926 shrext_cmds=.dll
Chris@41 15927 need_version=no
Chris@41 15928 need_lib_prefix=no
Chris@41 15929 # OS/2 can only load a DLL with a base name of 8 characters or less.
Chris@41 15930 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
Chris@41 15931 v=$($ECHO $release$versuffix | tr -d .-);
Chris@41 15932 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
Chris@41 15933 $ECHO $n$v`$shared_ext'
Chris@41 15934 library_names_spec='${libname}_dll.$libext'
Chris@41 15935 dynamic_linker='OS/2 ld.exe'
Chris@41 15936 shlibpath_var=BEGINLIBPATH
Chris@41 15937 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Chris@41 15938 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@41 15939 postinstall_cmds='base_file=`basename \$file`~
Chris@41 15940 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
Chris@41 15941 dldir=$destdir/`dirname \$dlpath`~
Chris@41 15942 test -d \$dldir || mkdir -p \$dldir~
Chris@41 15943 $install_prog $dir/$dlname \$dldir/$dlname~
Chris@41 15944 chmod a+x \$dldir/$dlname~
Chris@41 15945 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
Chris@41 15946 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
Chris@41 15947 fi'
Chris@41 15948 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
Chris@41 15949 dlpath=$dir/\$dldll~
Chris@41 15950 $RM \$dlpath'
Chris@41 15951 ;;
Chris@41 15952
Chris@41 15953 osf3* | osf4* | osf5*)
Chris@41 15954 version_type=osf
Chris@41 15955 need_lib_prefix=no
Chris@41 15956 need_version=no
Chris@41 15957 soname_spec='$libname$release$shared_ext$major'
Chris@41 15958 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 15959 shlibpath_var=LD_LIBRARY_PATH
Chris@41 15960 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Chris@41 15961 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@41 15962 ;;
Chris@41 15963
Chris@41 15964 rdos*)
Chris@41 15965 dynamic_linker=no
Chris@41 15966 ;;
Chris@41 15967
Chris@41 15968 solaris*)
Chris@41 15969 version_type=linux # correct to gnu/linux during the next big refactor
Chris@41 15970 need_lib_prefix=no
Chris@41 15971 need_version=no
Chris@41 15972 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 15973 soname_spec='$libname$release$shared_ext$major'
Chris@41 15974 shlibpath_var=LD_LIBRARY_PATH
Chris@41 15975 shlibpath_overrides_runpath=yes
Chris@41 15976 hardcode_into_libs=yes
Chris@41 15977 # ldd complains unless libraries are executable
Chris@41 15978 postinstall_cmds='chmod +x $lib'
Chris@41 15979 ;;
Chris@41 15980
Chris@41 15981 sunos4*)
Chris@41 15982 version_type=sunos
Chris@41 15983 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Chris@41 15984 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
Chris@41 15985 shlibpath_var=LD_LIBRARY_PATH
Chris@41 15986 shlibpath_overrides_runpath=yes
Chris@41 15987 if test yes = "$with_gnu_ld"; then
Chris@41 15988 need_lib_prefix=no
Chris@41 15989 fi
Chris@41 15990 need_version=yes
Chris@41 15991 ;;
Chris@41 15992
Chris@41 15993 sysv4 | sysv4.3*)
Chris@41 15994 version_type=linux # correct to gnu/linux during the next big refactor
Chris@41 15995 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 15996 soname_spec='$libname$release$shared_ext$major'
Chris@41 15997 shlibpath_var=LD_LIBRARY_PATH
Chris@41 15998 case $host_vendor in
Chris@41 15999 sni)
Chris@41 16000 shlibpath_overrides_runpath=no
Chris@41 16001 need_lib_prefix=no
Chris@41 16002 runpath_var=LD_RUN_PATH
Chris@41 16003 ;;
Chris@41 16004 siemens)
Chris@41 16005 need_lib_prefix=no
Chris@41 16006 ;;
Chris@41 16007 motorola)
Chris@41 16008 need_lib_prefix=no
Chris@41 16009 need_version=no
Chris@41 16010 shlibpath_overrides_runpath=no
Chris@41 16011 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
Chris@41 16012 ;;
Chris@41 16013 esac
Chris@41 16014 ;;
Chris@41 16015
Chris@41 16016 sysv4*MP*)
Chris@41 16017 if test -d /usr/nec; then
Chris@41 16018 version_type=linux # correct to gnu/linux during the next big refactor
Chris@41 16019 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
Chris@41 16020 soname_spec='$libname$shared_ext.$major'
Chris@41 16021 shlibpath_var=LD_LIBRARY_PATH
Chris@41 16022 fi
Chris@41 16023 ;;
Chris@41 16024
Chris@41 16025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Chris@41 16026 version_type=sco
Chris@41 16027 need_lib_prefix=no
Chris@41 16028 need_version=no
Chris@41 16029 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
Chris@41 16030 soname_spec='$libname$release$shared_ext$major'
Chris@41 16031 shlibpath_var=LD_LIBRARY_PATH
Chris@41 16032 shlibpath_overrides_runpath=yes
Chris@41 16033 hardcode_into_libs=yes
Chris@41 16034 if test yes = "$with_gnu_ld"; then
Chris@41 16035 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Chris@41 16036 else
Chris@41 16037 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Chris@41 16038 case $host_os in
Chris@41 16039 sco3.2v5*)
Chris@41 16040 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
Chris@41 16041 ;;
Chris@41 16042 esac
Chris@41 16043 fi
Chris@41 16044 sys_lib_dlsearch_path_spec='/usr/lib'
Chris@41 16045 ;;
Chris@41 16046
Chris@41 16047 tpf*)
Chris@41 16048 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Chris@41 16049 version_type=linux # correct to gnu/linux during the next big refactor
Chris@41 16050 need_lib_prefix=no
Chris@41 16051 need_version=no
Chris@41 16052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 16053 shlibpath_var=LD_LIBRARY_PATH
Chris@41 16054 shlibpath_overrides_runpath=no
Chris@41 16055 hardcode_into_libs=yes
Chris@41 16056 ;;
Chris@41 16057
Chris@41 16058 uts4*)
Chris@41 16059 version_type=linux # correct to gnu/linux during the next big refactor
Chris@41 16060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@41 16061 soname_spec='$libname$release$shared_ext$major'
Chris@41 16062 shlibpath_var=LD_LIBRARY_PATH
Chris@41 16063 ;;
Chris@41 16064
Chris@41 16065 *)
Chris@41 16066 dynamic_linker=no
Chris@41 16067 ;;
Chris@41 16068 esac
Chris@41 16069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Chris@41 16070 $as_echo "$dynamic_linker" >&6; }
Chris@41 16071 test no = "$dynamic_linker" && can_build_shared=no
Chris@41 16072
Chris@41 16073 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Chris@41 16074 if test yes = "$GCC"; then
Chris@41 16075 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
Chris@41 16076 fi
Chris@41 16077
Chris@41 16078 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
Chris@41 16079 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
Chris@41 16080 fi
Chris@41 16081
Chris@41 16082 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
Chris@41 16083 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
Chris@41 16084 fi
Chris@41 16085
Chris@41 16086 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
Chris@41 16087 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
Chris@41 16088
Chris@41 16089 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
Chris@41 16090 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
Chris@41 16091
Chris@41 16092 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
Chris@41 16093 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
Chris@41 16094
Chris@41 16095
Chris@41 16096
Chris@41 16097
Chris@41 16098
Chris@41 16099
Chris@41 16100
Chris@41 16101
Chris@41 16102
Chris@41 16103
Chris@41 16104
Chris@41 16105
Chris@41 16106
Chris@41 16107
Chris@41 16108
Chris@41 16109
Chris@41 16110
Chris@41 16111
Chris@41 16112
Chris@41 16113
Chris@41 16114
Chris@41 16115
Chris@41 16116
Chris@41 16117
Chris@41 16118
Chris@41 16119
Chris@41 16120
Chris@41 16121
Chris@41 16122
Chris@41 16123
Chris@41 16124
Chris@41 16125
Chris@41 16126
Chris@41 16127
Chris@41 16128
Chris@41 16129
Chris@41 16130
Chris@41 16131
Chris@41 16132
Chris@41 16133
Chris@41 16134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Chris@41 16135 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Chris@41 16136 hardcode_action_CXX=
Chris@41 16137 if test -n "$hardcode_libdir_flag_spec_CXX" ||
Chris@41 16138 test -n "$runpath_var_CXX" ||
Chris@41 16139 test yes = "$hardcode_automatic_CXX"; then
Chris@41 16140
Chris@41 16141 # We can hardcode non-existent directories.
Chris@41 16142 if test no != "$hardcode_direct_CXX" &&
Chris@41 16143 # If the only mechanism to avoid hardcoding is shlibpath_var, we
Chris@41 16144 # have to relink, otherwise we might link with an installed library
Chris@41 16145 # when we should be linking with a yet-to-be-installed one
Chris@41 16146 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
Chris@41 16147 test no != "$hardcode_minus_L_CXX"; then
Chris@41 16148 # Linking always hardcodes the temporary library directory.
Chris@41 16149 hardcode_action_CXX=relink
Chris@41 16150 else
Chris@41 16151 # We can link without hardcoding, and we can hardcode nonexisting dirs.
Chris@41 16152 hardcode_action_CXX=immediate
Chris@41 16153 fi
Chris@41 16154 else
Chris@41 16155 # We cannot hardcode anything, or else we can only hardcode existing
Chris@41 16156 # directories.
Chris@41 16157 hardcode_action_CXX=unsupported
Chris@41 16158 fi
Chris@41 16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
Chris@41 16160 $as_echo "$hardcode_action_CXX" >&6; }
Chris@41 16161
Chris@41 16162 if test relink = "$hardcode_action_CXX" ||
Chris@41 16163 test yes = "$inherit_rpath_CXX"; then
Chris@41 16164 # Fast installation is not supported
Chris@41 16165 enable_fast_install=no
Chris@41 16166 elif test yes = "$shlibpath_overrides_runpath" ||
Chris@41 16167 test no = "$enable_shared"; then
Chris@41 16168 # Fast installation is not necessary
Chris@41 16169 enable_fast_install=needless
Chris@41 16170 fi
Chris@41 16171
Chris@41 16172
Chris@41 16173
Chris@41 16174
Chris@41 16175
Chris@41 16176
Chris@41 16177
Chris@41 16178 fi # test -n "$compiler"
Chris@41 16179
Chris@41 16180 CC=$lt_save_CC
Chris@41 16181 CFLAGS=$lt_save_CFLAGS
Chris@41 16182 LDCXX=$LD
Chris@41 16183 LD=$lt_save_LD
Chris@41 16184 GCC=$lt_save_GCC
Chris@41 16185 with_gnu_ld=$lt_save_with_gnu_ld
Chris@41 16186 lt_cv_path_LDCXX=$lt_cv_path_LD
Chris@41 16187 lt_cv_path_LD=$lt_save_path_LD
Chris@41 16188 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
Chris@41 16189 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
Chris@41 16190 fi # test yes != "$_lt_caught_CXX_error"
Chris@41 16191
Chris@41 16192 ac_ext=c
Chris@41 16193 ac_cpp='$CPP $CPPFLAGS'
Chris@41 16194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@41 16195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@41 16196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@41 16197
Chris@41 16198
Chris@41 16199
Chris@41 16200
Chris@41 16201
Chris@41 16202
Chris@41 16203
Chris@41 16204
Chris@41 16205
Chris@41 16206
Chris@41 16207
Chris@41 16208
Chris@41 16209
Chris@41 16210
Chris@41 16211
Chris@41 16212 ac_config_commands="$ac_config_commands libtool"
Chris@41 16213
Chris@41 16214
Chris@41 16215
Chris@41 16216
Chris@41 16217 # Only expand once:
Chris@41 16218
Chris@41 16219
Chris@41 16220 if test -n "$ac_tool_prefix"; then
Chris@41 16221 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
Chris@41 16222 set dummy ${ac_tool_prefix}windres; ac_word=$2
Chris@41 16223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 16224 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 16225 if ${ac_cv_prog_RC+:} false; then :
Chris@41 16226 $as_echo_n "(cached) " >&6
Chris@41 16227 else
Chris@41 16228 if test -n "$RC"; then
Chris@41 16229 ac_cv_prog_RC="$RC" # Let the user override the test.
Chris@41 16230 else
Chris@41 16231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 16232 for as_dir in $PATH
Chris@41 16233 do
Chris@41 16234 IFS=$as_save_IFS
Chris@41 16235 test -z "$as_dir" && as_dir=.
Chris@41 16236 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 16237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 16238 ac_cv_prog_RC="${ac_tool_prefix}windres"
Chris@41 16239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 16240 break 2
Chris@41 16241 fi
Chris@41 16242 done
Chris@41 16243 done
Chris@41 16244 IFS=$as_save_IFS
Chris@41 16245
Chris@41 16246 fi
Chris@41 16247 fi
Chris@41 16248 RC=$ac_cv_prog_RC
Chris@41 16249 if test -n "$RC"; then
Chris@41 16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
Chris@41 16251 $as_echo "$RC" >&6; }
Chris@41 16252 else
Chris@41 16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 16254 $as_echo "no" >&6; }
Chris@41 16255 fi
Chris@41 16256
Chris@41 16257
Chris@41 16258 fi
Chris@41 16259 if test -z "$ac_cv_prog_RC"; then
Chris@41 16260 ac_ct_RC=$RC
Chris@41 16261 # Extract the first word of "windres", so it can be a program name with args.
Chris@41 16262 set dummy windres; ac_word=$2
Chris@41 16263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 16264 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 16265 if ${ac_cv_prog_ac_ct_RC+:} false; then :
Chris@41 16266 $as_echo_n "(cached) " >&6
Chris@41 16267 else
Chris@41 16268 if test -n "$ac_ct_RC"; then
Chris@41 16269 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
Chris@41 16270 else
Chris@41 16271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 16272 for as_dir in $PATH
Chris@41 16273 do
Chris@41 16274 IFS=$as_save_IFS
Chris@41 16275 test -z "$as_dir" && as_dir=.
Chris@41 16276 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 16277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 16278 ac_cv_prog_ac_ct_RC="windres"
Chris@41 16279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 16280 break 2
Chris@41 16281 fi
Chris@41 16282 done
Chris@41 16283 done
Chris@41 16284 IFS=$as_save_IFS
Chris@41 16285
Chris@41 16286 fi
Chris@41 16287 fi
Chris@41 16288 ac_ct_RC=$ac_cv_prog_ac_ct_RC
Chris@41 16289 if test -n "$ac_ct_RC"; then
Chris@41 16290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
Chris@41 16291 $as_echo "$ac_ct_RC" >&6; }
Chris@41 16292 else
Chris@41 16293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 16294 $as_echo "no" >&6; }
Chris@41 16295 fi
Chris@41 16296
Chris@41 16297 if test "x$ac_ct_RC" = x; then
Chris@41 16298 RC=""
Chris@41 16299 else
Chris@41 16300 case $cross_compiling:$ac_tool_warned in
Chris@41 16301 yes:)
Chris@41 16302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@41 16303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@41 16304 ac_tool_warned=yes ;;
Chris@41 16305 esac
Chris@41 16306 RC=$ac_ct_RC
Chris@41 16307 fi
Chris@41 16308 else
Chris@41 16309 RC="$ac_cv_prog_RC"
Chris@41 16310 fi
Chris@41 16311
Chris@41 16312
Chris@41 16313
Chris@41 16314 # Source file extension for RC test sources.
Chris@41 16315 ac_ext=rc
Chris@41 16316
Chris@41 16317 # Object file extension for compiled RC test sources.
Chris@41 16318 objext=o
Chris@41 16319 objext_RC=$objext
Chris@41 16320
Chris@41 16321 # Code to be used in simple compile tests
Chris@41 16322 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
Chris@41 16323
Chris@41 16324 # Code to be used in simple link tests
Chris@41 16325 lt_simple_link_test_code=$lt_simple_compile_test_code
Chris@41 16326
Chris@41 16327 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
Chris@41 16328
Chris@41 16329
Chris@41 16330
Chris@41 16331
Chris@41 16332
Chris@41 16333
Chris@41 16334 # If no C compiler was specified, use CC.
Chris@41 16335 LTCC=${LTCC-"$CC"}
Chris@41 16336
Chris@41 16337 # If no C compiler flags were specified, use CFLAGS.
Chris@41 16338 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Chris@41 16339
Chris@41 16340 # Allow CC to be a program name with arguments.
Chris@41 16341 compiler=$CC
Chris@41 16342
Chris@41 16343
Chris@41 16344 # save warnings/boilerplate of simple test code
Chris@41 16345 ac_outfile=conftest.$ac_objext
Chris@41 16346 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Chris@41 16347 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@41 16348 _lt_compiler_boilerplate=`cat conftest.err`
Chris@41 16349 $RM conftest*
Chris@41 16350
Chris@41 16351 ac_outfile=conftest.$ac_objext
Chris@41 16352 echo "$lt_simple_link_test_code" >conftest.$ac_ext
Chris@41 16353 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@41 16354 _lt_linker_boilerplate=`cat conftest.err`
Chris@41 16355 $RM -r conftest*
Chris@41 16356
Chris@41 16357
Chris@41 16358 # Allow CC to be a program name with arguments.
Chris@41 16359 lt_save_CC=$CC
Chris@41 16360 lt_save_CFLAGS=$CFLAGS
Chris@41 16361 lt_save_GCC=$GCC
Chris@41 16362 GCC=
Chris@41 16363 CC=${RC-"windres"}
Chris@41 16364 CFLAGS=
Chris@41 16365 compiler=$CC
Chris@41 16366 compiler_RC=$CC
Chris@41 16367 func_cc_basename $compiler
Chris@41 16368 cc_basename=$func_cc_basename_result
Chris@41 16369
Chris@41 16370 lt_cv_prog_compiler_c_o_RC=yes
Chris@41 16371
Chris@41 16372 if test -n "$compiler"; then
Chris@41 16373 :
Chris@41 16374
Chris@41 16375
Chris@41 16376
Chris@41 16377 fi
Chris@41 16378
Chris@41 16379 GCC=$lt_save_GCC
Chris@41 16380 ac_ext=c
Chris@41 16381 ac_cpp='$CPP $CPPFLAGS'
Chris@41 16382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@41 16383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@41 16384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@41 16385
Chris@41 16386 CC=$lt_save_CC
Chris@41 16387 CFLAGS=$lt_save_CFLAGS
Chris@41 16388
Chris@41 16389
Chris@41 16390
Chris@41 16391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Chris@41 16392 $as_echo_n "checking whether ln -s works... " >&6; }
Chris@41 16393 LN_S=$as_ln_s
Chris@41 16394 if test "$LN_S" = "ln -s"; then
Chris@41 16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@41 16396 $as_echo "yes" >&6; }
Chris@41 16397 else
Chris@41 16398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Chris@41 16399 $as_echo "no, using $LN_S" >&6; }
Chris@41 16400 fi
Chris@41 16401
Chris@41 16402
Chris@41 16403 #------------------------------------------------------------------------------------
Chris@41 16404 # Rules for library version information:
Chris@41 16405 #
Chris@41 16406 # 1. Start with version information of `0:0:0' for each libtool library.
Chris@41 16407 # 2. Update the version information only immediately before a public release of
Chris@41 16408 # your software. More frequent updates are unnecessary, and only guarantee
Chris@41 16409 # that the current interface number gets larger faster.
Chris@41 16410 # 3. If the library source code has changed at all since the last update, then
Chris@41 16411 # increment revision (`c:r:a' becomes `c:r+1:a').
Chris@41 16412 # 4. If any interfaces have been added, removed, or changed since the last update,
Chris@41 16413 # increment current, and set revision to 0.
Chris@41 16414 # 5. If any interfaces have been added since the last public release, then increment
Chris@41 16415 # age.
Chris@41 16416 # 6. If any interfaces have been removed since the last public release, then set age
Chris@41 16417 # to 0.
Chris@41 16418
Chris@41 16419 SHARED_VERSION_INFO="1:8:1"
Chris@41 16420
Chris@41 16421
Chris@41 16422
Chris@41 16423
Chris@41 16424
Chris@41 16425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Chris@41 16426 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
Chris@41 16427 set x ${MAKE-make}
Chris@41 16428 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Chris@41 16429 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Chris@41 16430 $as_echo_n "(cached) " >&6
Chris@41 16431 else
Chris@41 16432 cat >conftest.make <<\_ACEOF
Chris@41 16433 SHELL = /bin/sh
Chris@41 16434 all:
Chris@41 16435 @echo '@@@%%%=$(MAKE)=@@@%%%'
Chris@41 16436 _ACEOF
Chris@41 16437 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Chris@41 16438 case `${MAKE-make} -f conftest.make 2>/dev/null` in
Chris@41 16439 *@@@%%%=?*=@@@%%%*)
Chris@41 16440 eval ac_cv_prog_make_${ac_make}_set=yes;;
Chris@41 16441 *)
Chris@41 16442 eval ac_cv_prog_make_${ac_make}_set=no;;
Chris@41 16443 esac
Chris@41 16444 rm -f conftest.make
Chris@41 16445 fi
Chris@41 16446 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Chris@41 16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@41 16448 $as_echo "yes" >&6; }
Chris@41 16449 SET_MAKE=
Chris@41 16450 else
Chris@41 16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 16452 $as_echo "no" >&6; }
Chris@41 16453 SET_MAKE="MAKE=${MAKE-make}"
Chris@41 16454 fi
Chris@41 16455
Chris@41 16456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Chris@41 16457 $as_echo_n "checking whether ln -s works... " >&6; }
Chris@41 16458 LN_S=$as_ln_s
Chris@41 16459 if test "$LN_S" = "ln -s"; then
Chris@41 16460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@41 16461 $as_echo "yes" >&6; }
Chris@41 16462 else
Chris@41 16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Chris@41 16464 $as_echo "no, using $LN_S" >&6; }
Chris@41 16465 fi
Chris@41 16466
Chris@41 16467
Chris@41 16468
Chris@41 16469 if test "x-$build_os-$host_os-$target_os" = x-mingw32-mingw32-mingw32 ; then
Chris@41 16470 # Extract the first word of "dlltool", so it can be a program name with args.
Chris@41 16471 set dummy dlltool; ac_word=$2
Chris@41 16472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 16473 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 16474 if ${ac_cv_prog_DLLTOOL+:} false; then :
Chris@41 16475 $as_echo_n "(cached) " >&6
Chris@41 16476 else
Chris@41 16477 if test -n "$DLLTOOL"; then
Chris@41 16478 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
Chris@41 16479 else
Chris@41 16480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 16481 for as_dir in $PATH
Chris@41 16482 do
Chris@41 16483 IFS=$as_save_IFS
Chris@41 16484 test -z "$as_dir" && as_dir=.
Chris@41 16485 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 16486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 16487 ac_cv_prog_DLLTOOL="dlltool"
Chris@41 16488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 16489 break 2
Chris@41 16490 fi
Chris@41 16491 done
Chris@41 16492 done
Chris@41 16493 IFS=$as_save_IFS
Chris@41 16494
Chris@41 16495 fi
Chris@41 16496 fi
Chris@41 16497 DLLTOOL=$ac_cv_prog_DLLTOOL
Chris@41 16498 if test -n "$DLLTOOL"; then
Chris@41 16499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
Chris@41 16500 $as_echo "$DLLTOOL" >&6; }
Chris@41 16501 else
Chris@41 16502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 16503 $as_echo "no" >&6; }
Chris@41 16504 fi
Chris@41 16505
Chris@41 16506
Chris@41 16507 # Extract the first word of "dllwrap", so it can be a program name with args.
Chris@41 16508 set dummy dllwrap; ac_word=$2
Chris@41 16509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 16510 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 16511 if ${ac_cv_prog_DLLWRAP+:} false; then :
Chris@41 16512 $as_echo_n "(cached) " >&6
Chris@41 16513 else
Chris@41 16514 if test -n "$DLLWRAP"; then
Chris@41 16515 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
Chris@41 16516 else
Chris@41 16517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 16518 for as_dir in $PATH
Chris@41 16519 do
Chris@41 16520 IFS=$as_save_IFS
Chris@41 16521 test -z "$as_dir" && as_dir=.
Chris@41 16522 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 16523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 16524 ac_cv_prog_DLLWRAP="dllwrap"
Chris@41 16525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 16526 break 2
Chris@41 16527 fi
Chris@41 16528 done
Chris@41 16529 done
Chris@41 16530 IFS=$as_save_IFS
Chris@41 16531
Chris@41 16532 fi
Chris@41 16533 fi
Chris@41 16534 DLLWRAP=$ac_cv_prog_DLLWRAP
Chris@41 16535 if test -n "$DLLWRAP"; then
Chris@41 16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
Chris@41 16537 $as_echo "$DLLWRAP" >&6; }
Chris@41 16538 else
Chris@41 16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 16540 $as_echo "no" >&6; }
Chris@41 16541 fi
Chris@41 16542
Chris@41 16543
Chris@41 16544 # Extract the first word of "pexports", so it can be a program name with args.
Chris@41 16545 set dummy pexports; ac_word=$2
Chris@41 16546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 16547 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 16548 if ${ac_cv_prog_PEXPORTS+:} false; then :
Chris@41 16549 $as_echo_n "(cached) " >&6
Chris@41 16550 else
Chris@41 16551 if test -n "$PEXPORTS"; then
Chris@41 16552 ac_cv_prog_PEXPORTS="$PEXPORTS" # Let the user override the test.
Chris@41 16553 else
Chris@41 16554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 16555 for as_dir in $PATH
Chris@41 16556 do
Chris@41 16557 IFS=$as_save_IFS
Chris@41 16558 test -z "$as_dir" && as_dir=.
Chris@41 16559 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 16560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 16561 ac_cv_prog_PEXPORTS="pexports"
Chris@41 16562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 16563 break 2
Chris@41 16564 fi
Chris@41 16565 done
Chris@41 16566 done
Chris@41 16567 IFS=$as_save_IFS
Chris@41 16568
Chris@41 16569 fi
Chris@41 16570 fi
Chris@41 16571 PEXPORTS=$ac_cv_prog_PEXPORTS
Chris@41 16572 if test -n "$PEXPORTS"; then
Chris@41 16573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PEXPORTS" >&5
Chris@41 16574 $as_echo "$PEXPORTS" >&6; }
Chris@41 16575 else
Chris@41 16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 16577 $as_echo "no" >&6; }
Chris@41 16578 fi
Chris@41 16579
Chris@41 16580
Chris@41 16581 fi
Chris@41 16582
Chris@41 16583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Chris@41 16584 $as_echo_n "checking for ANSI C header files... " >&6; }
Chris@41 16585 if ${ac_cv_header_stdc+:} false; then :
Chris@41 16586 $as_echo_n "(cached) " >&6
Chris@41 16587 else
Chris@41 16588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 16589 /* end confdefs.h. */
Chris@41 16590 #include <stdlib.h>
Chris@41 16591 #include <stdarg.h>
Chris@41 16592 #include <string.h>
Chris@41 16593 #include <float.h>
Chris@41 16594
Chris@41 16595 int
Chris@41 16596 main ()
Chris@41 16597 {
Chris@41 16598
Chris@41 16599 ;
Chris@41 16600 return 0;
Chris@41 16601 }
Chris@41 16602 _ACEOF
Chris@41 16603 if ac_fn_c_try_compile "$LINENO"; then :
Chris@41 16604 ac_cv_header_stdc=yes
Chris@41 16605 else
Chris@41 16606 ac_cv_header_stdc=no
Chris@41 16607 fi
Chris@41 16608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@41 16609
Chris@41 16610 if test $ac_cv_header_stdc = yes; then
Chris@41 16611 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Chris@41 16612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 16613 /* end confdefs.h. */
Chris@41 16614 #include <string.h>
Chris@41 16615
Chris@41 16616 _ACEOF
Chris@41 16617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@41 16618 $EGREP "memchr" >/dev/null 2>&1; then :
Chris@41 16619
Chris@41 16620 else
Chris@41 16621 ac_cv_header_stdc=no
Chris@41 16622 fi
Chris@41 16623 rm -f conftest*
Chris@41 16624
Chris@41 16625 fi
Chris@41 16626
Chris@41 16627 if test $ac_cv_header_stdc = yes; then
Chris@41 16628 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Chris@41 16629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 16630 /* end confdefs.h. */
Chris@41 16631 #include <stdlib.h>
Chris@41 16632
Chris@41 16633 _ACEOF
Chris@41 16634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@41 16635 $EGREP "free" >/dev/null 2>&1; then :
Chris@41 16636
Chris@41 16637 else
Chris@41 16638 ac_cv_header_stdc=no
Chris@41 16639 fi
Chris@41 16640 rm -f conftest*
Chris@41 16641
Chris@41 16642 fi
Chris@41 16643
Chris@41 16644 if test $ac_cv_header_stdc = yes; then
Chris@41 16645 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Chris@41 16646 if test "$cross_compiling" = yes; then :
Chris@41 16647 :
Chris@41 16648 else
Chris@41 16649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 16650 /* end confdefs.h. */
Chris@41 16651 #include <ctype.h>
Chris@41 16652 #include <stdlib.h>
Chris@41 16653 #if ((' ' & 0x0FF) == 0x020)
Chris@41 16654 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
Chris@41 16655 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Chris@41 16656 #else
Chris@41 16657 # define ISLOWER(c) \
Chris@41 16658 (('a' <= (c) && (c) <= 'i') \
Chris@41 16659 || ('j' <= (c) && (c) <= 'r') \
Chris@41 16660 || ('s' <= (c) && (c) <= 'z'))
Chris@41 16661 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
Chris@41 16662 #endif
Chris@41 16663
Chris@41 16664 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Chris@41 16665 int
Chris@41 16666 main ()
Chris@41 16667 {
Chris@41 16668 int i;
Chris@41 16669 for (i = 0; i < 256; i++)
Chris@41 16670 if (XOR (islower (i), ISLOWER (i))
Chris@41 16671 || toupper (i) != TOUPPER (i))
Chris@41 16672 return 2;
Chris@41 16673 return 0;
Chris@41 16674 }
Chris@41 16675 _ACEOF
Chris@41 16676 if ac_fn_c_try_run "$LINENO"; then :
Chris@41 16677
Chris@41 16678 else
Chris@41 16679 ac_cv_header_stdc=no
Chris@41 16680 fi
Chris@41 16681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@41 16682 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@41 16683 fi
Chris@41 16684
Chris@41 16685 fi
Chris@41 16686 fi
Chris@41 16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Chris@41 16688 $as_echo "$ac_cv_header_stdc" >&6; }
Chris@41 16689 if test $ac_cv_header_stdc = yes; then
Chris@41 16690
Chris@41 16691 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
Chris@41 16692
Chris@41 16693 fi
Chris@41 16694
Chris@41 16695
Chris@41 16696 for ac_header in stdint.h sys/times.h
Chris@41 16697 do :
Chris@41 16698 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Chris@41 16699 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Chris@41 16700 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@41 16701 cat >>confdefs.h <<_ACEOF
Chris@41 16702 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris@41 16703 _ACEOF
Chris@41 16704
Chris@41 16705 fi
Chris@41 16706
Chris@41 16707 done
Chris@41 16708
Chris@41 16709
Chris@41 16710 #====================================================================================
Chris@41 16711 # Couple of initializations here. Fill in real values later.
Chris@41 16712
Chris@41 16713 SHLIB_VERSION_ARG=""
Chris@41 16714
Chris@41 16715 #====================================================================================
Chris@41 16716 # Finished checking, handle options.
Chris@41 16717
Chris@41 16718 # Check whether --enable-gcc-werror was given.
Chris@41 16719 if test "${enable_gcc_werror+set}" = set; then :
Chris@41 16720 enableval=$enable_gcc_werror; ac_arg_gcc_werror=yes
Chris@41 16721 else
Chris@41 16722 ac_arg_gcc_werror=no
Chris@41 16723 fi
Chris@41 16724
Chris@41 16725
Chris@41 16726 # Check whether --enable-gcc-pipe was given.
Chris@41 16727 if test "${enable_gcc_pipe+set}" = set; then :
Chris@41 16728 enableval=$enable_gcc_pipe; ac_arg_gcc_pipe="N"
Chris@41 16729 else
Chris@41 16730 ac_arg_gcc_pipe="Y"
Chris@41 16731 fi
Chris@41 16732
Chris@41 16733
Chris@41 16734 # Check whether --enable-gcc-opt was given.
Chris@41 16735 if test "${enable_gcc_opt+set}" = set; then :
Chris@41 16736 enableval=$enable_gcc_opt; ac_arg_gcc_opt="N"
Chris@41 16737 else
Chris@41 16738 ac_arg_gcc_opt="Y"
Chris@41 16739 fi
Chris@41 16740
Chris@41 16741
Chris@41 16742 # Check whether --enable-fftw was given.
Chris@41 16743 if test "${enable_fftw+set}" = set; then :
Chris@41 16744 enableval=$enable_fftw; ac_arg_fftw="N"
Chris@41 16745 else
Chris@41 16746 ac_arg_fftw="Y"
Chris@41 16747 fi
Chris@41 16748
Chris@41 16749
Chris@41 16750 # Check whether --enable-cpu-clip was given.
Chris@41 16751 if test "${enable_cpu_clip+set}" = set; then :
Chris@41 16752 enableval=$enable_cpu_clip; ac_arg_cpu_clip="N"
Chris@41 16753 else
Chris@41 16754 ac_arg_cpu_clip="Y"
Chris@41 16755 fi
Chris@41 16756
Chris@41 16757
Chris@41 16758 #====================================================================================
Chris@41 16759 # Check types and their sizes.
Chris@41 16760
Chris@41 16761 # The cast to long int works around a bug in the HP C Compiler
Chris@41 16762 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@41 16763 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@41 16764 # This bug is HP SR number 8606223364.
Chris@41 16765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Chris@41 16766 $as_echo_n "checking size of int... " >&6; }
Chris@41 16767 if ${ac_cv_sizeof_int+:} false; then :
Chris@41 16768 $as_echo_n "(cached) " >&6
Chris@41 16769 else
Chris@41 16770 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
Chris@41 16771
Chris@41 16772 else
Chris@41 16773 if test "$ac_cv_type_int" = yes; then
Chris@41 16774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@41 16775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@41 16776 as_fn_error 77 "cannot compute sizeof (int)
Chris@41 16777 See \`config.log' for more details" "$LINENO" 5; }
Chris@41 16778 else
Chris@41 16779 ac_cv_sizeof_int=0
Chris@41 16780 fi
Chris@41 16781 fi
Chris@41 16782
Chris@41 16783 fi
Chris@41 16784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Chris@41 16785 $as_echo "$ac_cv_sizeof_int" >&6; }
Chris@41 16786
Chris@41 16787
Chris@41 16788
Chris@41 16789 cat >>confdefs.h <<_ACEOF
Chris@41 16790 #define SIZEOF_INT $ac_cv_sizeof_int
Chris@41 16791 _ACEOF
Chris@41 16792
Chris@41 16793
Chris@41 16794 # The cast to long int works around a bug in the HP C Compiler
Chris@41 16795 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@41 16796 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@41 16797 # This bug is HP SR number 8606223364.
Chris@41 16798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Chris@41 16799 $as_echo_n "checking size of long... " >&6; }
Chris@41 16800 if ${ac_cv_sizeof_long+:} false; then :
Chris@41 16801 $as_echo_n "(cached) " >&6
Chris@41 16802 else
Chris@41 16803 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
Chris@41 16804
Chris@41 16805 else
Chris@41 16806 if test "$ac_cv_type_long" = yes; then
Chris@41 16807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@41 16808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@41 16809 as_fn_error 77 "cannot compute sizeof (long)
Chris@41 16810 See \`config.log' for more details" "$LINENO" 5; }
Chris@41 16811 else
Chris@41 16812 ac_cv_sizeof_long=0
Chris@41 16813 fi
Chris@41 16814 fi
Chris@41 16815
Chris@41 16816 fi
Chris@41 16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Chris@41 16818 $as_echo "$ac_cv_sizeof_long" >&6; }
Chris@41 16819
Chris@41 16820
Chris@41 16821
Chris@41 16822 cat >>confdefs.h <<_ACEOF
Chris@41 16823 #define SIZEOF_LONG $ac_cv_sizeof_long
Chris@41 16824 _ACEOF
Chris@41 16825
Chris@41 16826
Chris@41 16827 # The cast to long int works around a bug in the HP C Compiler
Chris@41 16828 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@41 16829 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@41 16830 # This bug is HP SR number 8606223364.
Chris@41 16831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
Chris@41 16832 $as_echo_n "checking size of float... " >&6; }
Chris@41 16833 if ${ac_cv_sizeof_float+:} false; then :
Chris@41 16834 $as_echo_n "(cached) " >&6
Chris@41 16835 else
Chris@41 16836 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
Chris@41 16837
Chris@41 16838 else
Chris@41 16839 if test "$ac_cv_type_float" = yes; then
Chris@41 16840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@41 16841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@41 16842 as_fn_error 77 "cannot compute sizeof (float)
Chris@41 16843 See \`config.log' for more details" "$LINENO" 5; }
Chris@41 16844 else
Chris@41 16845 ac_cv_sizeof_float=0
Chris@41 16846 fi
Chris@41 16847 fi
Chris@41 16848
Chris@41 16849 fi
Chris@41 16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
Chris@41 16851 $as_echo "$ac_cv_sizeof_float" >&6; }
Chris@41 16852
Chris@41 16853
Chris@41 16854
Chris@41 16855 cat >>confdefs.h <<_ACEOF
Chris@41 16856 #define SIZEOF_FLOAT $ac_cv_sizeof_float
Chris@41 16857 _ACEOF
Chris@41 16858
Chris@41 16859
Chris@41 16860 # The cast to long int works around a bug in the HP C Compiler
Chris@41 16861 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@41 16862 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@41 16863 # This bug is HP SR number 8606223364.
Chris@41 16864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
Chris@41 16865 $as_echo_n "checking size of double... " >&6; }
Chris@41 16866 if ${ac_cv_sizeof_double+:} false; then :
Chris@41 16867 $as_echo_n "(cached) " >&6
Chris@41 16868 else
Chris@41 16869 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
Chris@41 16870
Chris@41 16871 else
Chris@41 16872 if test "$ac_cv_type_double" = yes; then
Chris@41 16873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@41 16874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@41 16875 as_fn_error 77 "cannot compute sizeof (double)
Chris@41 16876 See \`config.log' for more details" "$LINENO" 5; }
Chris@41 16877 else
Chris@41 16878 ac_cv_sizeof_double=0
Chris@41 16879 fi
Chris@41 16880 fi
Chris@41 16881
Chris@41 16882 fi
Chris@41 16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
Chris@41 16884 $as_echo "$ac_cv_sizeof_double" >&6; }
Chris@41 16885
Chris@41 16886
Chris@41 16887
Chris@41 16888 cat >>confdefs.h <<_ACEOF
Chris@41 16889 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
Chris@41 16890 _ACEOF
Chris@41 16891
Chris@41 16892
Chris@41 16893
Chris@41 16894 #====================================================================================
Chris@41 16895 # Determine endian-ness of target processor.
Chris@41 16896
Chris@41 16897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking processor byte ordering" >&5
Chris@41 16898 $as_echo_n "checking processor byte ordering... " >&6; }
Chris@41 16899 if ${ac_cv_c_byte_order+:} false; then :
Chris@41 16900 $as_echo_n "(cached) " >&6
Chris@41 16901 else
Chris@41 16902 # Initialize to unknown
Chris@41 16903 ac_cv_c_byte_order=unknown
Chris@41 16904
Chris@41 16905 if test x$ac_cv_header_endian_h = xyes ; then
Chris@41 16906
Chris@41 16907 # First try <endian.h> which should set BYTE_ORDER.
Chris@41 16908
Chris@41 16909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 16910 /* end confdefs.h. */
Chris@41 16911
Chris@41 16912 #include <endian.h>
Chris@41 16913 #if BYTE_ORDER != LITTLE_ENDIAN
Chris@41 16914 not big endian
Chris@41 16915 #endif
Chris@41 16916
Chris@41 16917 int
Chris@41 16918 main ()
Chris@41 16919 {
Chris@41 16920 return 0 ;
Chris@41 16921 ;
Chris@41 16922 return 0;
Chris@41 16923 }
Chris@41 16924 _ACEOF
Chris@41 16925 if ac_fn_c_try_link "$LINENO"; then :
Chris@41 16926 ac_cv_c_byte_order=little
Chris@41 16927
Chris@41 16928 fi
Chris@41 16929 rm -f core conftest.err conftest.$ac_objext \
Chris@41 16930 conftest$ac_exeext conftest.$ac_ext
Chris@41 16931
Chris@41 16932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 16933 /* end confdefs.h. */
Chris@41 16934
Chris@41 16935 #include <endian.h>
Chris@41 16936 #if BYTE_ORDER != BIG_ENDIAN
Chris@41 16937 not big endian
Chris@41 16938 #endif
Chris@41 16939
Chris@41 16940 int
Chris@41 16941 main ()
Chris@41 16942 {
Chris@41 16943 return 0 ;
Chris@41 16944 ;
Chris@41 16945 return 0;
Chris@41 16946 }
Chris@41 16947 _ACEOF
Chris@41 16948 if ac_fn_c_try_link "$LINENO"; then :
Chris@41 16949 ac_cv_c_byte_order=big
Chris@41 16950
Chris@41 16951 fi
Chris@41 16952 rm -f core conftest.err conftest.$ac_objext \
Chris@41 16953 conftest$ac_exeext conftest.$ac_ext
Chris@41 16954
Chris@41 16955 fi
Chris@41 16956
Chris@41 16957 if test $ac_cv_c_byte_order = unknown ; then
Chris@41 16958
Chris@41 16959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 16960 /* end confdefs.h. */
Chris@41 16961
Chris@41 16962 #include <sys/types.h>
Chris@41 16963 #include <sys/param.h>
Chris@41 16964 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Chris@41 16965 bogus endian macros
Chris@41 16966 #endif
Chris@41 16967
Chris@41 16968 int
Chris@41 16969 main ()
Chris@41 16970 {
Chris@41 16971 return 0 ;
Chris@41 16972 ;
Chris@41 16973 return 0;
Chris@41 16974 }
Chris@41 16975 _ACEOF
Chris@41 16976 if ac_fn_c_try_link "$LINENO"; then :
Chris@41 16977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 16978 /* end confdefs.h. */
Chris@41 16979
Chris@41 16980 #include <sys/types.h>
Chris@41 16981 #include <sys/param.h>
Chris@41 16982 #if BYTE_ORDER != LITTLE_ENDIAN
Chris@41 16983 not big endian
Chris@41 16984 #endif
Chris@41 16985
Chris@41 16986 int
Chris@41 16987 main ()
Chris@41 16988 {
Chris@41 16989 return 0 ;
Chris@41 16990 ;
Chris@41 16991 return 0;
Chris@41 16992 }
Chris@41 16993 _ACEOF
Chris@41 16994 if ac_fn_c_try_link "$LINENO"; then :
Chris@41 16995 ac_cv_c_byte_order=little
Chris@41 16996
Chris@41 16997 fi
Chris@41 16998 rm -f core conftest.err conftest.$ac_objext \
Chris@41 16999 conftest$ac_exeext conftest.$ac_ext
Chris@41 17000
Chris@41 17001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 17002 /* end confdefs.h. */
Chris@41 17003
Chris@41 17004 #include <sys/types.h>
Chris@41 17005 #include <sys/param.h>
Chris@41 17006 #if BYTE_ORDER != LITTLE_ENDIAN
Chris@41 17007 not big endian
Chris@41 17008 #endif
Chris@41 17009
Chris@41 17010 int
Chris@41 17011 main ()
Chris@41 17012 {
Chris@41 17013 return 0 ;
Chris@41 17014 ;
Chris@41 17015 return 0;
Chris@41 17016 }
Chris@41 17017 _ACEOF
Chris@41 17018 if ac_fn_c_try_link "$LINENO"; then :
Chris@41 17019 ac_cv_c_byte_order=little
Chris@41 17020
Chris@41 17021 fi
Chris@41 17022 rm -f core conftest.err conftest.$ac_objext \
Chris@41 17023 conftest$ac_exeext conftest.$ac_ext
Chris@41 17024
Chris@41 17025
Chris@41 17026 fi
Chris@41 17027 rm -f core conftest.err conftest.$ac_objext \
Chris@41 17028 conftest$ac_exeext conftest.$ac_ext
Chris@41 17029
Chris@41 17030 fi
Chris@41 17031
Chris@41 17032 if test $ac_cv_c_byte_order = unknown ; then
Chris@41 17033 if test $cross_compiling = yes ; then
Chris@41 17034 # This is the last resort. Try to guess the target processor endian-ness
Chris@41 17035 # by looking at the target CPU type.
Chris@41 17036
Chris@41 17037 case "$target_cpu" in
Chris@41 17038 alpha* | i?86* | mipsel* | ia64*)
Chris@41 17039 ac_cv_c_byte_order=little
Chris@41 17040 ;;
Chris@41 17041
Chris@41 17042 m68* | mips* | powerpc* | hppa* | sparc*)
Chris@41 17043 ac_cv_c_byte_order=big
Chris@41 17044 ;;
Chris@41 17045
Chris@41 17046 esac
Chris@41 17047
Chris@41 17048 else
Chris@41 17049 if test "$cross_compiling" = yes; then :
Chris@41 17050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@41 17051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@41 17052 as_fn_error $? "cannot run test program while cross compiling
Chris@41 17053 See \`config.log' for more details" "$LINENO" 5; }
Chris@41 17054 else
Chris@41 17055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 17056 /* end confdefs.h. */
Chris@41 17057
Chris@41 17058 int main (void)
Chris@41 17059 { /* Are we little or big endian? From Harbison&Steele. */
Chris@41 17060 union
Chris@41 17061 { long l ;
Chris@41 17062 char c [sizeof (long)] ;
Chris@41 17063 } u ;
Chris@41 17064 u.l = 1 ;
Chris@41 17065 return (u.c [sizeof (long) - 1] == 1);
Chris@41 17066 }
Chris@41 17067
Chris@41 17068 _ACEOF
Chris@41 17069 if ac_fn_c_try_run "$LINENO"; then :
Chris@41 17070
Chris@41 17071 else
Chris@41 17072 ac_cv_c_byte_order=big
Chris@41 17073 fi
Chris@41 17074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@41 17075 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@41 17076 fi
Chris@41 17077
Chris@41 17078
Chris@41 17079 if test "$cross_compiling" = yes; then :
Chris@41 17080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@41 17081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@41 17082 as_fn_error $? "cannot run test program while cross compiling
Chris@41 17083 See \`config.log' for more details" "$LINENO" 5; }
Chris@41 17084 else
Chris@41 17085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 17086 /* end confdefs.h. */
Chris@41 17087 int main (void)
Chris@41 17088 { /* Are we little or big endian? From Harbison&Steele. */
Chris@41 17089 union
Chris@41 17090 { long l ;
Chris@41 17091 char c [sizeof (long)] ;
Chris@41 17092 } u ;
Chris@41 17093 u.l = 1 ;
Chris@41 17094 return (u.c [0] == 1);
Chris@41 17095 }
Chris@41 17096 _ACEOF
Chris@41 17097 if ac_fn_c_try_run "$LINENO"; then :
Chris@41 17098
Chris@41 17099 else
Chris@41 17100 ac_cv_c_byte_order=little
Chris@41 17101 fi
Chris@41 17102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@41 17103 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@41 17104 fi
Chris@41 17105
Chris@41 17106 fi
Chris@41 17107 fi
Chris@41 17108
Chris@41 17109
Chris@41 17110 fi
Chris@41 17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_byte_order" >&5
Chris@41 17112 $as_echo "$ac_cv_c_byte_order" >&6; }
Chris@41 17113
Chris@41 17114 if test $ac_cv_c_byte_order = big ; then
Chris@41 17115 ac_cv_c_big_endian=1
Chris@41 17116 ac_cv_c_little_endian=0
Chris@41 17117 elif test $ac_cv_c_byte_order = little ; then
Chris@41 17118 ac_cv_c_big_endian=0
Chris@41 17119 ac_cv_c_little_endian=1
Chris@41 17120 else
Chris@41 17121 ac_cv_c_big_endian=0
Chris@41 17122 ac_cv_c_little_endian=0
Chris@41 17123
Chris@41 17124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5
Chris@41 17125 $as_echo "$as_me: WARNING: *****************************************************************" >&2;}
Chris@41 17126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Not able to determine endian-ness of target processor. " >&5
Chris@41 17127 $as_echo "$as_me: WARNING: *** Not able to determine endian-ness of target processor. " >&2;}
Chris@41 17128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&5
Chris@41 17129 $as_echo "$as_me: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&2;}
Chris@41 17130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** src/config.h may need to be hand editied. " >&5
Chris@41 17131 $as_echo "$as_me: WARNING: *** src/config.h may need to be hand editied. " >&2;}
Chris@41 17132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5
Chris@41 17133 $as_echo "$as_me: WARNING: *****************************************************************" >&2;}
Chris@41 17134 fi
Chris@41 17135
Chris@41 17136
Chris@41 17137
Chris@41 17138
Chris@41 17139
Chris@41 17140 cat >>confdefs.h <<_ACEOF
Chris@41 17141 #define CPU_IS_BIG_ENDIAN ${ac_cv_c_big_endian}
Chris@41 17142 _ACEOF
Chris@41 17143
Chris@41 17144
Chris@41 17145 cat >>confdefs.h <<_ACEOF
Chris@41 17146 #define CPU_IS_LITTLE_ENDIAN ${ac_cv_c_little_endian}
Chris@41 17147 _ACEOF
Chris@41 17148
Chris@41 17149
Chris@41 17150 #====================================================================================
Chris@41 17151 # Check for functions.
Chris@41 17152
Chris@41 17153 for ac_func in malloc calloc free memcpy memmove alarm signal
Chris@41 17154 do :
Chris@41 17155 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Chris@41 17156 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Chris@41 17157 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Chris@41 17158 cat >>confdefs.h <<_ACEOF
Chris@41 17159 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Chris@41 17160 _ACEOF
Chris@41 17161
Chris@41 17162 fi
Chris@41 17163 done
Chris@41 17164
Chris@41 17165
Chris@41 17166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
Chris@41 17167 $as_echo_n "checking for floor in -lm... " >&6; }
Chris@41 17168 if ${ac_cv_lib_m_floor+:} false; then :
Chris@41 17169 $as_echo_n "(cached) " >&6
Chris@41 17170 else
Chris@41 17171 ac_check_lib_save_LIBS=$LIBS
Chris@41 17172 LIBS="-lm $LIBS"
Chris@41 17173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 17174 /* end confdefs.h. */
Chris@41 17175
Chris@41 17176 /* Override any GCC internal prototype to avoid an error.
Chris@41 17177 Use char because int might match the return type of a GCC
Chris@41 17178 builtin and then its argument prototype would still apply. */
Chris@41 17179 #ifdef __cplusplus
Chris@41 17180 extern "C"
Chris@41 17181 #endif
Chris@41 17182 char floor ();
Chris@41 17183 int
Chris@41 17184 main ()
Chris@41 17185 {
Chris@41 17186 return floor ();
Chris@41 17187 ;
Chris@41 17188 return 0;
Chris@41 17189 }
Chris@41 17190 _ACEOF
Chris@41 17191 if ac_fn_c_try_link "$LINENO"; then :
Chris@41 17192 ac_cv_lib_m_floor=yes
Chris@41 17193 else
Chris@41 17194 ac_cv_lib_m_floor=no
Chris@41 17195 fi
Chris@41 17196 rm -f core conftest.err conftest.$ac_objext \
Chris@41 17197 conftest$ac_exeext conftest.$ac_ext
Chris@41 17198 LIBS=$ac_check_lib_save_LIBS
Chris@41 17199 fi
Chris@41 17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
Chris@41 17201 $as_echo "$ac_cv_lib_m_floor" >&6; }
Chris@41 17202 if test "x$ac_cv_lib_m_floor" = xyes; then :
Chris@41 17203 cat >>confdefs.h <<_ACEOF
Chris@41 17204 #define HAVE_LIBM 1
Chris@41 17205 _ACEOF
Chris@41 17206
Chris@41 17207 LIBS="-lm $LIBS"
Chris@41 17208
Chris@41 17209 fi
Chris@41 17210
Chris@41 17211 for ac_func in floor ceil fmod
Chris@41 17212 do :
Chris@41 17213 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Chris@41 17214 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Chris@41 17215 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Chris@41 17216 cat >>confdefs.h <<_ACEOF
Chris@41 17217 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Chris@41 17218 _ACEOF
Chris@41 17219
Chris@41 17220 fi
Chris@41 17221 done
Chris@41 17222
Chris@41 17223
Chris@41 17224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGALRM" >&5
Chris@41 17225 $as_echo_n "checking for SIGALRM... " >&6; }
Chris@41 17226 if ${ac_cv_signal_SIGALRM+:} false; then :
Chris@41 17227 $as_echo_n "(cached) " >&6
Chris@41 17228 else
Chris@41 17229
Chris@41 17230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 17231 /* end confdefs.h. */
Chris@41 17232
Chris@41 17233 #include <signal.h>
Chris@41 17234
Chris@41 17235
Chris@41 17236 int
Chris@41 17237 main ()
Chris@41 17238 {
Chris@41 17239 signal(SIGALRM, SIG_DFL) ;
Chris@41 17240 ;
Chris@41 17241 return 0;
Chris@41 17242 }
Chris@41 17243 _ACEOF
Chris@41 17244 if ac_fn_c_try_link "$LINENO"; then :
Chris@41 17245 ac_cv_signal_SIGALRM=yes
Chris@41 17246 else
Chris@41 17247 ac_cv_signal_SIGALRM=no
Chris@41 17248 fi
Chris@41 17249 rm -f core conftest.err conftest.$ac_objext \
Chris@41 17250 conftest$ac_exeext conftest.$ac_ext
Chris@41 17251
Chris@41 17252
Chris@41 17253 fi
Chris@41 17254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_signal_SIGALRM" >&5
Chris@41 17255 $as_echo "$ac_cv_signal_SIGALRM" >&6; }
Chris@41 17256
Chris@41 17257 if test "$ac_cv_signal_SIGALRM" = yes; then
Chris@41 17258
Chris@41 17259 $as_echo "#define HAVE_SIGALRM 1" >>confdefs.h
Chris@41 17260
Chris@41 17261 fi
Chris@41 17262
Chris@41 17263
Chris@41 17264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrint" >&5
Chris@41 17265 $as_echo_n "checking for lrint... " >&6; }
Chris@41 17266 if ${ac_cv_c99_lrint+:} false; then :
Chris@41 17267 $as_echo_n "(cached) " >&6
Chris@41 17268 else
Chris@41 17269
Chris@41 17270 lrint_save_CFLAGS=$CFLAGS
Chris@41 17271 CFLAGS="-lm"
Chris@41 17272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 17273 /* end confdefs.h. */
Chris@41 17274
Chris@41 17275 #define _ISOC9X_SOURCE 1
Chris@41 17276 #define _ISOC99_SOURCE 1
Chris@41 17277 #define __USE_ISOC99 1
Chris@41 17278 #define __USE_ISOC9X 1
Chris@41 17279
Chris@41 17280 #include <math.h>
Chris@41 17281
Chris@41 17282 int
Chris@41 17283 main ()
Chris@41 17284 {
Chris@41 17285 if (!lrint(3.14159)) lrint(2.7183);
Chris@41 17286 ;
Chris@41 17287 return 0;
Chris@41 17288 }
Chris@41 17289 _ACEOF
Chris@41 17290 if ac_fn_c_try_link "$LINENO"; then :
Chris@41 17291 ac_cv_c99_lrint=yes
Chris@41 17292 else
Chris@41 17293 ac_cv_c99_lrint=no
Chris@41 17294 fi
Chris@41 17295 rm -f core conftest.err conftest.$ac_objext \
Chris@41 17296 conftest$ac_exeext conftest.$ac_ext
Chris@41 17297
Chris@41 17298 CFLAGS=$lrint_save_CFLAGS
Chris@41 17299
Chris@41 17300
Chris@41 17301 fi
Chris@41 17302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrint" >&5
Chris@41 17303 $as_echo "$ac_cv_c99_lrint" >&6; }
Chris@41 17304
Chris@41 17305 if test "$ac_cv_c99_lrint" = yes; then
Chris@41 17306
Chris@41 17307 $as_echo "#define HAVE_LRINT 1" >>confdefs.h
Chris@41 17308
Chris@41 17309 fi
Chris@41 17310
Chris@41 17311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrintf" >&5
Chris@41 17312 $as_echo_n "checking for lrintf... " >&6; }
Chris@41 17313 if ${ac_cv_c99_lrintf+:} false; then :
Chris@41 17314 $as_echo_n "(cached) " >&6
Chris@41 17315 else
Chris@41 17316
Chris@41 17317 lrintf_save_CFLAGS=$CFLAGS
Chris@41 17318 CFLAGS="-lm"
Chris@41 17319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 17320 /* end confdefs.h. */
Chris@41 17321
Chris@41 17322 #define _ISOC9X_SOURCE 1
Chris@41 17323 #define _ISOC99_SOURCE 1
Chris@41 17324 #define __USE_ISOC99 1
Chris@41 17325 #define __USE_ISOC9X 1
Chris@41 17326
Chris@41 17327 #include <math.h>
Chris@41 17328
Chris@41 17329 int
Chris@41 17330 main ()
Chris@41 17331 {
Chris@41 17332 if (!lrintf(3.14159)) lrintf(2.7183);
Chris@41 17333 ;
Chris@41 17334 return 0;
Chris@41 17335 }
Chris@41 17336 _ACEOF
Chris@41 17337 if ac_fn_c_try_link "$LINENO"; then :
Chris@41 17338 ac_cv_c99_lrintf=yes
Chris@41 17339 else
Chris@41 17340 ac_cv_c99_lrintf=no
Chris@41 17341 fi
Chris@41 17342 rm -f core conftest.err conftest.$ac_objext \
Chris@41 17343 conftest$ac_exeext conftest.$ac_ext
Chris@41 17344
Chris@41 17345 CFLAGS=$lrintf_save_CFLAGS
Chris@41 17346
Chris@41 17347
Chris@41 17348 fi
Chris@41 17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrintf" >&5
Chris@41 17350 $as_echo "$ac_cv_c99_lrintf" >&6; }
Chris@41 17351
Chris@41 17352 if test "$ac_cv_c99_lrintf" = yes; then
Chris@41 17353
Chris@41 17354 $as_echo "#define HAVE_LRINTF 1" >>confdefs.h
Chris@41 17355
Chris@41 17356 fi
Chris@41 17357
Chris@41 17358 # AC_C99_FUNC_LLRINT Don't need this (yet?).
Chris@41 17359
Chris@41 17360 case "x$ac_cv_c99_lrint$ac_cv_c99_lrintf" in
Chris@41 17361 xyesyes)
Chris@41 17362 ;;
Chris@41 17363 *)
Chris@41 17364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Missing C99 standard functions lrint() and lrintf()." >&5
Chris@41 17365 $as_echo "$as_me: WARNING: *** Missing C99 standard functions lrint() and lrintf()." >&2;}
Chris@41 17366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** This may cause benign compiler warnings on some systems (ie Solaris)." >&5
Chris@41 17367 $as_echo "$as_me: WARNING: *** This may cause benign compiler warnings on some systems (ie Solaris)." >&2;}
Chris@41 17368 ;;
Chris@41 17369 esac
Chris@41 17370
Chris@41 17371 #====================================================================================
Chris@41 17372 # Determine if the processor can do clipping on float to int conversions.
Chris@41 17373
Chris@41 17374 if test x$ac_arg_cpu_clip = "xY" ; then
Chris@41 17375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking processor clipping capabilities" >&5
Chris@41 17376 $as_echo_n "checking processor clipping capabilities... " >&6; }
Chris@41 17377 if ${ac_cv_c_clip_type+:} false; then :
Chris@41 17378 $as_echo_n "(cached) " >&6
Chris@41 17379 else
Chris@41 17380 # Initialize to unknown
Chris@41 17381 ac_cv_c_clip_positive=unknown
Chris@41 17382 ac_cv_c_clip_negative=unknown
Chris@41 17383
Chris@41 17384
Chris@41 17385 if test $ac_cv_c_clip_positive = unknown ; then
Chris@41 17386 if test "$cross_compiling" = yes; then :
Chris@41 17387 ac_cv_c_clip_positive=unknown
Chris@41 17388
Chris@41 17389 else
Chris@41 17390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 17391 /* end confdefs.h. */
Chris@41 17392
Chris@41 17393 #define _ISOC9X_SOURCE 1
Chris@41 17394 #define _ISOC99_SOURCE 1
Chris@41 17395 #define __USE_ISOC99 1
Chris@41 17396 #define __USE_ISOC9X 1
Chris@41 17397 #include <math.h>
Chris@41 17398 int main (void)
Chris@41 17399 { double fval ;
Chris@41 17400 int k, ival ;
Chris@41 17401
Chris@41 17402 fval = 1.0 * 0x7FFFFFFF ;
Chris@41 17403 for (k = 0 ; k < 100 ; k++)
Chris@41 17404 { ival = (lrint (fval)) >> 24 ;
Chris@41 17405 if (ival != 127)
Chris@41 17406 return 1 ;
Chris@41 17407
Chris@41 17408 fval *= 1.2499999 ;
Chris@41 17409 } ;
Chris@41 17410
Chris@41 17411 return 0 ;
Chris@41 17412 }
Chris@41 17413
Chris@41 17414 _ACEOF
Chris@41 17415 if ac_fn_c_try_run "$LINENO"; then :
Chris@41 17416 ac_cv_c_clip_positive=yes
Chris@41 17417 else
Chris@41 17418 ac_cv_c_clip_positive=no
Chris@41 17419 fi
Chris@41 17420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@41 17421 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@41 17422 fi
Chris@41 17423
Chris@41 17424
Chris@41 17425 if test "$cross_compiling" = yes; then :
Chris@41 17426 ac_cv_c_clip_negative=unknown
Chris@41 17427
Chris@41 17428 else
Chris@41 17429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@41 17430 /* end confdefs.h. */
Chris@41 17431
Chris@41 17432 #define _ISOC9X_SOURCE 1
Chris@41 17433 #define _ISOC99_SOURCE 1
Chris@41 17434 #define __USE_ISOC99 1
Chris@41 17435 #define __USE_ISOC9X 1
Chris@41 17436 #include <math.h>
Chris@41 17437 int main (void)
Chris@41 17438 { double fval ;
Chris@41 17439 int k, ival ;
Chris@41 17440
Chris@41 17441 fval = -8.0 * 0x10000000 ;
Chris@41 17442 for (k = 0 ; k < 100 ; k++)
Chris@41 17443 { ival = (lrint (fval)) >> 24 ;
Chris@41 17444 if (ival != -128)
Chris@41 17445 return 1 ;
Chris@41 17446
Chris@41 17447 fval *= 1.2499999 ;
Chris@41 17448 } ;
Chris@41 17449
Chris@41 17450 return 0 ;
Chris@41 17451 }
Chris@41 17452
Chris@41 17453 _ACEOF
Chris@41 17454 if ac_fn_c_try_run "$LINENO"; then :
Chris@41 17455 ac_cv_c_clip_negative=yes
Chris@41 17456 else
Chris@41 17457 ac_cv_c_clip_negative=no
Chris@41 17458 fi
Chris@41 17459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@41 17460 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@41 17461 fi
Chris@41 17462
Chris@41 17463 fi
Chris@41 17464
Chris@41 17465 if test $ac_cv_c_clip_positive = yes ; then
Chris@41 17466 ac_cv_c_clip_positive=1
Chris@41 17467 else
Chris@41 17468 ac_cv_c_clip_positive=0
Chris@41 17469 fi
Chris@41 17470
Chris@41 17471 if test $ac_cv_c_clip_negative = yes ; then
Chris@41 17472 ac_cv_c_clip_negative=1
Chris@41 17473 else
Chris@41 17474 ac_cv_c_clip_negative=0
Chris@41 17475 fi
Chris@41 17476
Chris@41 17477
Chris@41 17478 case "$ac_cv_c_clip_positive$ac_cv_c_clip_negative" in
Chris@41 17479 "00")
Chris@41 17480 ac_cv_c_clip_type="none"
Chris@41 17481 ;;
Chris@41 17482 "10")
Chris@41 17483 ac_cv_c_clip_type="positive"
Chris@41 17484 ;;
Chris@41 17485 "01")
Chris@41 17486 ac_cv_c_clip_type="negative"
Chris@41 17487 ;;
Chris@41 17488 "11")
Chris@41 17489 ac_cv_c_clip_type="both"
Chris@41 17490 ;;
Chris@41 17491 esac
Chris@41 17492
Chris@41 17493
Chris@41 17494
Chris@41 17495 fi
Chris@41 17496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_clip_type" >&5
Chris@41 17497 $as_echo "$ac_cv_c_clip_type" >&6; }
Chris@41 17498
Chris@41 17499
Chris@41 17500
Chris@41 17501 else
Chris@41 17502 echo "checking processor clipping capabilities... disabled"
Chris@41 17503 ac_cv_c_clip_positive=0
Chris@41 17504 ac_cv_c_clip_negative=0
Chris@41 17505 fi
Chris@41 17506
Chris@41 17507
Chris@41 17508 cat >>confdefs.h <<_ACEOF
Chris@41 17509 #define CPU_CLIPS_POSITIVE ${ac_cv_c_clip_positive}
Chris@41 17510 _ACEOF
Chris@41 17511
Chris@41 17512
Chris@41 17513 cat >>confdefs.h <<_ACEOF
Chris@41 17514 #define CPU_CLIPS_NEGATIVE ${ac_cv_c_clip_negative}
Chris@41 17515 _ACEOF
Chris@41 17516
Chris@41 17517
Chris@41 17518 #====================================================================================
Chris@41 17519 # Check for libsndfile which is required for the test and example programs.
Chris@41 17520
Chris@41 17521 # Check whether --enable-sndfile was given.
Chris@41 17522 if test "${enable_sndfile+set}" = set; then :
Chris@41 17523 enableval=$enable_sndfile; enable_sndfile=$enableval
Chris@41 17524 else
Chris@41 17525 enable_sndfile=yes
Chris@41 17526 fi
Chris@41 17527
Chris@41 17528
Chris@41 17529 # Check for pkg-config outside the if statement.
Chris@41 17530
Chris@41 17531
Chris@41 17532
Chris@41 17533
Chris@41 17534
Chris@41 17535
Chris@41 17536
Chris@41 17537 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Chris@41 17538 if test -n "$ac_tool_prefix"; then
Chris@41 17539 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
Chris@41 17540 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Chris@41 17541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 17542 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 17543 if ${ac_cv_path_PKG_CONFIG+:} false; then :
Chris@41 17544 $as_echo_n "(cached) " >&6
Chris@41 17545 else
Chris@41 17546 case $PKG_CONFIG in
Chris@41 17547 [\\/]* | ?:[\\/]*)
Chris@41 17548 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
Chris@41 17549 ;;
Chris@41 17550 *)
Chris@41 17551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 17552 for as_dir in $PATH
Chris@41 17553 do
Chris@41 17554 IFS=$as_save_IFS
Chris@41 17555 test -z "$as_dir" && as_dir=.
Chris@41 17556 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 17557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 17558 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Chris@41 17559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 17560 break 2
Chris@41 17561 fi
Chris@41 17562 done
Chris@41 17563 done
Chris@41 17564 IFS=$as_save_IFS
Chris@41 17565
Chris@41 17566 ;;
Chris@41 17567 esac
Chris@41 17568 fi
Chris@41 17569 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
Chris@41 17570 if test -n "$PKG_CONFIG"; then
Chris@41 17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Chris@41 17572 $as_echo "$PKG_CONFIG" >&6; }
Chris@41 17573 else
Chris@41 17574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 17575 $as_echo "no" >&6; }
Chris@41 17576 fi
Chris@41 17577
Chris@41 17578
Chris@41 17579 fi
Chris@41 17580 if test -z "$ac_cv_path_PKG_CONFIG"; then
Chris@41 17581 ac_pt_PKG_CONFIG=$PKG_CONFIG
Chris@41 17582 # Extract the first word of "pkg-config", so it can be a program name with args.
Chris@41 17583 set dummy pkg-config; ac_word=$2
Chris@41 17584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@41 17585 $as_echo_n "checking for $ac_word... " >&6; }
Chris@41 17586 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Chris@41 17587 $as_echo_n "(cached) " >&6
Chris@41 17588 else
Chris@41 17589 case $ac_pt_PKG_CONFIG in
Chris@41 17590 [\\/]* | ?:[\\/]*)
Chris@41 17591 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
Chris@41 17592 ;;
Chris@41 17593 *)
Chris@41 17594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 17595 for as_dir in $PATH
Chris@41 17596 do
Chris@41 17597 IFS=$as_save_IFS
Chris@41 17598 test -z "$as_dir" && as_dir=.
Chris@41 17599 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@41 17600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@41 17601 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Chris@41 17602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@41 17603 break 2
Chris@41 17604 fi
Chris@41 17605 done
Chris@41 17606 done
Chris@41 17607 IFS=$as_save_IFS
Chris@41 17608
Chris@41 17609 ;;
Chris@41 17610 esac
Chris@41 17611 fi
Chris@41 17612 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
Chris@41 17613 if test -n "$ac_pt_PKG_CONFIG"; then
Chris@41 17614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Chris@41 17615 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
Chris@41 17616 else
Chris@41 17617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 17618 $as_echo "no" >&6; }
Chris@41 17619 fi
Chris@41 17620
Chris@41 17621 if test "x$ac_pt_PKG_CONFIG" = x; then
Chris@41 17622 PKG_CONFIG=""
Chris@41 17623 else
Chris@41 17624 case $cross_compiling:$ac_tool_warned in
Chris@41 17625 yes:)
Chris@41 17626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@41 17627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@41 17628 ac_tool_warned=yes ;;
Chris@41 17629 esac
Chris@41 17630 PKG_CONFIG=$ac_pt_PKG_CONFIG
Chris@41 17631 fi
Chris@41 17632 else
Chris@41 17633 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
Chris@41 17634 fi
Chris@41 17635
Chris@41 17636 fi
Chris@41 17637 if test -n "$PKG_CONFIG"; then
Chris@41 17638 _pkg_min_version=0.9.0
Chris@41 17639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
Chris@41 17640 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Chris@41 17641 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Chris@41 17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@41 17643 $as_echo "yes" >&6; }
Chris@41 17644 else
Chris@41 17645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 17646 $as_echo "no" >&6; }
Chris@41 17647 PKG_CONFIG=""
Chris@41 17648 fi
Chris@41 17649 fi
Chris@41 17650
Chris@41 17651 if test "x$enable_sndfile" = "xyes"; then
Chris@41 17652
Chris@41 17653 pkg_failed=no
Chris@41 17654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNDFILE" >&5
Chris@41 17655 $as_echo_n "checking for SNDFILE... " >&6; }
Chris@41 17656
Chris@41 17657 if test -n "$SNDFILE_CFLAGS"; then
Chris@41 17658 pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS"
Chris@41 17659 elif test -n "$PKG_CONFIG"; then
Chris@41 17660 if test -n "$PKG_CONFIG" && \
Chris@41 17661 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.6\""; } >&5
Chris@41 17662 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.6") 2>&5
Chris@41 17663 ac_status=$?
Chris@41 17664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 17665 test $ac_status = 0; }; then
Chris@41 17666 pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.6" 2>/dev/null`
Chris@41 17667 test "x$?" != "x0" && pkg_failed=yes
Chris@41 17668 else
Chris@41 17669 pkg_failed=yes
Chris@41 17670 fi
Chris@41 17671 else
Chris@41 17672 pkg_failed=untried
Chris@41 17673 fi
Chris@41 17674 if test -n "$SNDFILE_LIBS"; then
Chris@41 17675 pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS"
Chris@41 17676 elif test -n "$PKG_CONFIG"; then
Chris@41 17677 if test -n "$PKG_CONFIG" && \
Chris@41 17678 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.6\""; } >&5
Chris@41 17679 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.6") 2>&5
Chris@41 17680 ac_status=$?
Chris@41 17681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 17682 test $ac_status = 0; }; then
Chris@41 17683 pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.6" 2>/dev/null`
Chris@41 17684 test "x$?" != "x0" && pkg_failed=yes
Chris@41 17685 else
Chris@41 17686 pkg_failed=yes
Chris@41 17687 fi
Chris@41 17688 else
Chris@41 17689 pkg_failed=untried
Chris@41 17690 fi
Chris@41 17691
Chris@41 17692
Chris@41 17693
Chris@41 17694 if test $pkg_failed = yes; then
Chris@41 17695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 17696 $as_echo "no" >&6; }
Chris@41 17697
Chris@41 17698 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@41 17699 _pkg_short_errors_supported=yes
Chris@41 17700 else
Chris@41 17701 _pkg_short_errors_supported=no
Chris@41 17702 fi
Chris@41 17703 if test $_pkg_short_errors_supported = yes; then
Chris@41 17704 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile >= 1.0.6" 2>&1`
Chris@41 17705 else
Chris@41 17706 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile >= 1.0.6" 2>&1`
Chris@41 17707 fi
Chris@41 17708 # Put the nasty error message in config.log where it belongs
Chris@41 17709 echo "$SNDFILE_PKG_ERRORS" >&5
Chris@41 17710
Chris@41 17711 ac_cv_sndfile=0
Chris@41 17712 elif test $pkg_failed = untried; then
Chris@41 17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 17714 $as_echo "no" >&6; }
Chris@41 17715 ac_cv_sndfile=0
Chris@41 17716 else
Chris@41 17717 SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS
Chris@41 17718 SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS
Chris@41 17719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@41 17720 $as_echo "yes" >&6; }
Chris@41 17721 ac_cv_sndfile=1
Chris@41 17722 fi
Chris@41 17723 else
Chris@41 17724 ac_cv_sndfile=0
Chris@41 17725 fi
Chris@41 17726
Chris@41 17727
Chris@41 17728 cat >>confdefs.h <<_ACEOF
Chris@41 17729 #define HAVE_SNDFILE $ac_cv_sndfile
Chris@41 17730 _ACEOF
Chris@41 17731
Chris@41 17732
Chris@41 17733 if test x$ac_cv_sndfile = x1 ; then
Chris@41 17734 ac_cv_sndfile=yes
Chris@41 17735 HAVE_SNDFILE=1
Chris@41 17736 else
Chris@41 17737 ac_cv_sndfile=no
Chris@41 17738 HAVE_SNDFILE=0
Chris@41 17739 fi
Chris@41 17740
Chris@41 17741 #====================================================================================
Chris@41 17742 # Check for ALSA.
Chris@41 17743
Chris@41 17744 ALSA_LIBS=""
Chris@41 17745
Chris@41 17746 if test x$enable_alsa != xno ; then
Chris@41 17747 for ac_header in alsa/asoundlib.h
Chris@41 17748 do :
Chris@41 17749 ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
Chris@41 17750 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
Chris@41 17751 cat >>confdefs.h <<_ACEOF
Chris@41 17752 #define HAVE_ALSA_ASOUNDLIB_H 1
Chris@41 17753 _ACEOF
Chris@41 17754
Chris@41 17755 fi
Chris@41 17756
Chris@41 17757 done
Chris@41 17758
Chris@41 17759 if test x$ac_cv_header_alsa_asoundlib_h = xyes ; then
Chris@41 17760 ALSA_LIBS="-lasound"
Chris@41 17761 enable_alsa=yes
Chris@41 17762 fi
Chris@41 17763 fi
Chris@41 17764
Chris@41 17765 #====================================================================================
Chris@41 17766 # Check for libfftw3 which is required for the test and example programs.
Chris@41 17767
Chris@41 17768 if test $ac_arg_fftw = "Y" ; then
Chris@41 17769
Chris@41 17770 pkg_failed=no
Chris@41 17771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW3" >&5
Chris@41 17772 $as_echo_n "checking for FFTW3... " >&6; }
Chris@41 17773
Chris@41 17774 if test -n "$FFTW3_CFLAGS"; then
Chris@41 17775 pkg_cv_FFTW3_CFLAGS="$FFTW3_CFLAGS"
Chris@41 17776 elif test -n "$PKG_CONFIG"; then
Chris@41 17777 if test -n "$PKG_CONFIG" && \
Chris@41 17778 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 0.15.0\""; } >&5
Chris@41 17779 ($PKG_CONFIG --exists --print-errors "fftw3 >= 0.15.0") 2>&5
Chris@41 17780 ac_status=$?
Chris@41 17781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 17782 test $ac_status = 0; }; then
Chris@41 17783 pkg_cv_FFTW3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 0.15.0" 2>/dev/null`
Chris@41 17784 test "x$?" != "x0" && pkg_failed=yes
Chris@41 17785 else
Chris@41 17786 pkg_failed=yes
Chris@41 17787 fi
Chris@41 17788 else
Chris@41 17789 pkg_failed=untried
Chris@41 17790 fi
Chris@41 17791 if test -n "$FFTW3_LIBS"; then
Chris@41 17792 pkg_cv_FFTW3_LIBS="$FFTW3_LIBS"
Chris@41 17793 elif test -n "$PKG_CONFIG"; then
Chris@41 17794 if test -n "$PKG_CONFIG" && \
Chris@41 17795 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 0.15.0\""; } >&5
Chris@41 17796 ($PKG_CONFIG --exists --print-errors "fftw3 >= 0.15.0") 2>&5
Chris@41 17797 ac_status=$?
Chris@41 17798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@41 17799 test $ac_status = 0; }; then
Chris@41 17800 pkg_cv_FFTW3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 0.15.0" 2>/dev/null`
Chris@41 17801 test "x$?" != "x0" && pkg_failed=yes
Chris@41 17802 else
Chris@41 17803 pkg_failed=yes
Chris@41 17804 fi
Chris@41 17805 else
Chris@41 17806 pkg_failed=untried
Chris@41 17807 fi
Chris@41 17808
Chris@41 17809
Chris@41 17810
Chris@41 17811 if test $pkg_failed = yes; then
Chris@41 17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 17813 $as_echo "no" >&6; }
Chris@41 17814
Chris@41 17815 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@41 17816 _pkg_short_errors_supported=yes
Chris@41 17817 else
Chris@41 17818 _pkg_short_errors_supported=no
Chris@41 17819 fi
Chris@41 17820 if test $_pkg_short_errors_supported = yes; then
Chris@41 17821 FFTW3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3 >= 0.15.0" 2>&1`
Chris@41 17822 else
Chris@41 17823 FFTW3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3 >= 0.15.0" 2>&1`
Chris@41 17824 fi
Chris@41 17825 # Put the nasty error message in config.log where it belongs
Chris@41 17826 echo "$FFTW3_PKG_ERRORS" >&5
Chris@41 17827
Chris@41 17828 ac_cv_fftw3=0
Chris@41 17829 elif test $pkg_failed = untried; then
Chris@41 17830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@41 17831 $as_echo "no" >&6; }
Chris@41 17832 ac_cv_fftw3=0
Chris@41 17833 else
Chris@41 17834 FFTW3_CFLAGS=$pkg_cv_FFTW3_CFLAGS
Chris@41 17835 FFTW3_LIBS=$pkg_cv_FFTW3_LIBS
Chris@41 17836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@41 17837 $as_echo "yes" >&6; }
Chris@41 17838 ac_cv_fftw3=1
Chris@41 17839 fi
Chris@41 17840
Chris@41 17841 cat >>confdefs.h <<_ACEOF
Chris@41 17842 #define HAVE_FFTW3 $ac_cv_fftw3
Chris@41 17843 _ACEOF
Chris@41 17844
Chris@41 17845
Chris@41 17846 if test x$ac_cv_fftw3 = x1 ; then
Chris@41 17847 ac_cv_fftw3=yes
Chris@41 17848 HAVE_FFTW3=1
Chris@41 17849 fi
Chris@41 17850 fi
Chris@41 17851
Chris@41 17852 if test x$ac_cv_fftw3 != xyes ; then
Chris@41 17853 ac_cv_fftw3=no
Chris@41 17854 HAVE_FFTW3=0
Chris@41 17855 fi
Chris@41 17856
Chris@41 17857 #====================================================================================
Chris@41 17858 # GCC stuff.
Chris@41 17859
Chris@41 17860 if test $ac_cv_c_compiler_gnu = yes ; then
Chris@41 17861 CFLAGS="$CFLAGS -std=gnu99 -W -Wstrict-prototypes -Wmissing-prototypes -Wall -Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow -Wpointer-arith"
Chris@41 17862 # -Wundef -Wbad-function-cast -Wmissing-declarations -Wconversion -Winline"
Chris@41 17863 if test "$ac_arg_gcc_opt" = "N" ; then
Chris@41 17864 temp_CFLAGS=`echo $CFLAGS | sed "s/O2/O0/"`
Chris@41 17865 CFLAGS=$temp_CFLAGS
Chris@41 17866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Compiler optimisations switched off. ***" >&5
Chris@41 17867 $as_echo "$as_me: WARNING: *** Compiler optimisations switched off. ***" >&2;}
Chris@41 17868 fi
Chris@41 17869
Chris@41 17870 # Disable -Wall for Apple Darwin/Rhapsody.
Chris@41 17871 # System headers on these systems are broken.
Chris@41 17872 case "$target_os" in
Chris@41 17873 darwin* | rhapsody*)
Chris@41 17874 temp_CFLAGS=`echo $CFLAGS | sed "s/-Wall//"`
Chris@41 17875 CFLAGS=$temp_CFLAGS
Chris@41 17876 ;;
Chris@41 17877
Chris@41 17878 linux*|kfreebsd*-gnu*|gnu*)
Chris@41 17879 SHLIB_VERSION_ARG="-Wl,--version-script=Version_script"
Chris@41 17880 ;;
Chris@41 17881 *)
Chris@41 17882 ;;
Chris@41 17883 esac
Chris@41 17884 if test x$ac_arg_gcc_pipe != "xN" ; then
Chris@41 17885 CFLAGS="$CFLAGS -pipe"
Chris@41 17886 fi
Chris@41 17887
Chris@41 17888 if test x$ac_arg_gcc_werror = "xyes" ; then
Chris@41 17889 CFLAGS="-Werror $CFLAGS"
Chris@41 17890 fi
Chris@41 17891
Chris@41 17892
Chris@41 17893 $as_echo "#define COMPILER_IS_GCC 1" >>confdefs.h
Chris@41 17894
Chris@41 17895 GCC_MAJOR_VERSION=`$CC -dumpversion | sed "s/\..*//"`
Chris@41 17896
Chris@41 17897 cat >>confdefs.h <<_ACEOF
Chris@41 17898 #define GCC_MAJOR_VERSION ${GCC_MAJOR_VERSION}
Chris@41 17899 _ACEOF
Chris@41 17900
Chris@41 17901 fi
Chris@41 17902
Chris@41 17903 #====================================================================================
Chris@41 17904 # Find known target OS.
Chris@41 17905
Chris@41 17906 OS_SPECIFIC_INCLUDES=""
Chris@41 17907 os_is_win32=0
Chris@41 17908
Chris@41 17909 case "$target_os" in
Chris@41 17910 darwin* | rhapsody*)
Chris@41 17911 OS_SPECIFIC_INCLUDES="-fpascal-strings -I/Developer/Headers/FlatCarbon"
Chris@41 17912 OS_SPECIFIC_LINKS="-framework CoreAudio"
Chris@41 17913 ;;
Chris@41 17914 mingw32*)
Chris@41 17915 OS_SPECIFIC_LINKS="-lwinmm"
Chris@41 17916 os_is_win32=1
Chris@41 17917 ;;
Chris@41 17918 *)
Chris@41 17919 OS_SPECIFIC_INCLUDES=""
Chris@41 17920 OS_SPECIFIC_LINKS=""
Chris@41 17921 ;;
Chris@41 17922 esac
Chris@41 17923
Chris@41 17924 htmldocdir=$prefix/share/doc/libsamplerate0-dev/html
Chris@41 17925
Chris@41 17926 if test $prefix = "NONE" ; then
Chris@41 17927 htmldocdir=/usr/local/share/doc/libsamplerate0-dev/html
Chris@41 17928 else
Chris@41 17929 htmldocdir=$prefix/share/doc/libsamplerate0-dev/html
Chris@41 17930 fi
Chris@41 17931
Chris@41 17932 #====================================================================================
Chris@41 17933 # Now use the information from the checking stage.
Chris@41 17934
Chris@41 17935
Chris@41 17936 cat >>confdefs.h <<_ACEOF
Chris@41 17937 #define OS_IS_WIN32 ${os_is_win32}
Chris@41 17938 _ACEOF
Chris@41 17939
Chris@41 17940
Chris@41 17941
Chris@41 17942
Chris@41 17943
Chris@41 17944
Chris@41 17945
Chris@41 17946
Chris@41 17947
Chris@41 17948
Chris@41 17949
Chris@41 17950
Chris@41 17951
Chris@41 17952
Chris@41 17953
Chris@41 17954
Chris@41 17955
Chris@41 17956
Chris@41 17957
Chris@41 17958
Chris@41 17959
Chris@41 17960
Chris@41 17961 ac_config_files="$ac_config_files Makefile M4/Makefile src/Version_script Win32/Makefile Win32/Makefile.mingw src/Makefile examples/Makefile tests/Makefile doc/Makefile libsamplerate.spec samplerate.pc"
Chris@41 17962
Chris@41 17963 cat >confcache <<\_ACEOF
Chris@41 17964 # This file is a shell script that caches the results of configure
Chris@41 17965 # tests run on this system so they can be shared between configure
Chris@41 17966 # scripts and configure runs, see configure's option --config-cache.
Chris@41 17967 # It is not useful on other systems. If it contains results you don't
Chris@41 17968 # want to keep, you may remove or edit it.
Chris@41 17969 #
Chris@41 17970 # config.status only pays attention to the cache file if you give it
Chris@41 17971 # the --recheck option to rerun configure.
Chris@41 17972 #
Chris@41 17973 # `ac_cv_env_foo' variables (set or unset) will be overridden when
Chris@41 17974 # loading this file, other *unset* `ac_cv_foo' will be assigned the
Chris@41 17975 # following values.
Chris@41 17976
Chris@41 17977 _ACEOF
Chris@41 17978
Chris@41 17979 # The following way of writing the cache mishandles newlines in values,
Chris@41 17980 # but we know of no workaround that is simple, portable, and efficient.
Chris@41 17981 # So, we kill variables containing newlines.
Chris@41 17982 # Ultrix sh set writes to stderr and can't be redirected directly,
Chris@41 17983 # and sets the high bit in the cache file unless we assign to the vars.
Chris@41 17984 (
Chris@41 17985 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
Chris@41 17986 eval ac_val=\$$ac_var
Chris@41 17987 case $ac_val in #(
Chris@41 17988 *${as_nl}*)
Chris@41 17989 case $ac_var in #(
Chris@41 17990 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Chris@41 17991 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Chris@41 17992 esac
Chris@41 17993 case $ac_var in #(
Chris@41 17994 _ | IFS | as_nl) ;; #(
Chris@41 17995 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Chris@41 17996 *) { eval $ac_var=; unset $ac_var;} ;;
Chris@41 17997 esac ;;
Chris@41 17998 esac
Chris@41 17999 done
Chris@41 18000
Chris@41 18001 (set) 2>&1 |
Chris@41 18002 case $as_nl`(ac_space=' '; set) 2>&1` in #(
Chris@41 18003 *${as_nl}ac_space=\ *)
Chris@41 18004 # `set' does not quote correctly, so add quotes: double-quote
Chris@41 18005 # substitution turns \\\\ into \\, and sed turns \\ into \.
Chris@41 18006 sed -n \
Chris@41 18007 "s/'/'\\\\''/g;
Chris@41 18008 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Chris@41 18009 ;; #(
Chris@41 18010 *)
Chris@41 18011 # `set' quotes correctly as required by POSIX, so do not add quotes.
Chris@41 18012 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Chris@41 18013 ;;
Chris@41 18014 esac |
Chris@41 18015 sort
Chris@41 18016 ) |
Chris@41 18017 sed '
Chris@41 18018 /^ac_cv_env_/b end
Chris@41 18019 t clear
Chris@41 18020 :clear
Chris@41 18021 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
Chris@41 18022 t end
Chris@41 18023 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
Chris@41 18024 :end' >>confcache
Chris@41 18025 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
Chris@41 18026 if test -w "$cache_file"; then
Chris@41 18027 if test "x$cache_file" != "x/dev/null"; then
Chris@41 18028 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Chris@41 18029 $as_echo "$as_me: updating cache $cache_file" >&6;}
Chris@41 18030 if test ! -f "$cache_file" || test -h "$cache_file"; then
Chris@41 18031 cat confcache >"$cache_file"
Chris@41 18032 else
Chris@41 18033 case $cache_file in #(
Chris@41 18034 */* | ?:*)
Chris@41 18035 mv -f confcache "$cache_file"$$ &&
Chris@41 18036 mv -f "$cache_file"$$ "$cache_file" ;; #(
Chris@41 18037 *)
Chris@41 18038 mv -f confcache "$cache_file" ;;
Chris@41 18039 esac
Chris@41 18040 fi
Chris@41 18041 fi
Chris@41 18042 else
Chris@41 18043 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Chris@41 18044 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Chris@41 18045 fi
Chris@41 18046 fi
Chris@41 18047 rm -f confcache
Chris@41 18048
Chris@41 18049 test "x$prefix" = xNONE && prefix=$ac_default_prefix
Chris@41 18050 # Let make expand exec_prefix.
Chris@41 18051 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
Chris@41 18052
Chris@41 18053 DEFS=-DHAVE_CONFIG_H
Chris@41 18054
Chris@41 18055 ac_libobjs=
Chris@41 18056 ac_ltlibobjs=
Chris@41 18057 U=
Chris@41 18058 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
Chris@41 18059 # 1. Remove the extension, and $U if already installed.
Chris@41 18060 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Chris@41 18061 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Chris@41 18062 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
Chris@41 18063 # will be set to the directory where LIBOBJS objects are built.
Chris@41 18064 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
Chris@41 18065 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Chris@41 18066 done
Chris@41 18067 LIBOBJS=$ac_libobjs
Chris@41 18068
Chris@41 18069 LTLIBOBJS=$ac_ltlibobjs
Chris@41 18070
Chris@41 18071
Chris@41 18072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
Chris@41 18073 $as_echo_n "checking that generated files are newer than configure... " >&6; }
Chris@41 18074 if test -n "$am_sleep_pid"; then
Chris@41 18075 # Hide warnings about reused PIDs.
Chris@41 18076 wait $am_sleep_pid 2>/dev/null
Chris@41 18077 fi
Chris@41 18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
Chris@41 18079 $as_echo "done" >&6; }
Chris@41 18080 if test -n "$EXEEXT"; then
Chris@41 18081 am__EXEEXT_TRUE=
Chris@41 18082 am__EXEEXT_FALSE='#'
Chris@41 18083 else
Chris@41 18084 am__EXEEXT_TRUE='#'
Chris@41 18085 am__EXEEXT_FALSE=
Chris@41 18086 fi
Chris@41 18087
Chris@41 18088 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Chris@41 18089 as_fn_error $? "conditional \"AMDEP\" was never defined.
Chris@41 18090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@41 18091 fi
Chris@41 18092 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Chris@41 18093 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Chris@41 18094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@41 18095 fi
Chris@41 18096 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
Chris@41 18097 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
Chris@41 18098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@41 18099 fi
Chris@41 18100
Chris@41 18101 : "${CONFIG_STATUS=./config.status}"
Chris@41 18102 ac_write_fail=0
Chris@41 18103 ac_clean_files_save=$ac_clean_files
Chris@41 18104 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Chris@41 18105 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Chris@41 18106 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Chris@41 18107 as_write_fail=0
Chris@41 18108 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Chris@41 18109 #! $SHELL
Chris@41 18110 # Generated by $as_me.
Chris@41 18111 # Run this file to recreate the current configuration.
Chris@41 18112 # Compiler output produced by configure, useful for debugging
Chris@41 18113 # configure, is in config.log if it exists.
Chris@41 18114
Chris@41 18115 debug=false
Chris@41 18116 ac_cs_recheck=false
Chris@41 18117 ac_cs_silent=false
Chris@41 18118
Chris@41 18119 SHELL=\${CONFIG_SHELL-$SHELL}
Chris@41 18120 export SHELL
Chris@41 18121 _ASEOF
Chris@41 18122 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
Chris@41 18123 ## -------------------- ##
Chris@41 18124 ## M4sh Initialization. ##
Chris@41 18125 ## -------------------- ##
Chris@41 18126
Chris@41 18127 # Be more Bourne compatible
Chris@41 18128 DUALCASE=1; export DUALCASE # for MKS sh
Chris@41 18129 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Chris@41 18130 emulate sh
Chris@41 18131 NULLCMD=:
Chris@41 18132 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Chris@41 18133 # is contrary to our usage. Disable this feature.
Chris@41 18134 alias -g '${1+"$@"}'='"$@"'
Chris@41 18135 setopt NO_GLOB_SUBST
Chris@41 18136 else
Chris@41 18137 case `(set -o) 2>/dev/null` in #(
Chris@41 18138 *posix*) :
Chris@41 18139 set -o posix ;; #(
Chris@41 18140 *) :
Chris@41 18141 ;;
Chris@41 18142 esac
Chris@41 18143 fi
Chris@41 18144
Chris@41 18145
Chris@41 18146 as_nl='
Chris@41 18147 '
Chris@41 18148 export as_nl
Chris@41 18149 # Printing a long string crashes Solaris 7 /usr/bin/printf.
Chris@41 18150 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@41 18151 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@41 18152 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@41 18153 # Prefer a ksh shell builtin over an external printf program on Solaris,
Chris@41 18154 # but without wasting forks for bash or zsh.
Chris@41 18155 if test -z "$BASH_VERSION$ZSH_VERSION" \
Chris@41 18156 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@41 18157 as_echo='print -r --'
Chris@41 18158 as_echo_n='print -rn --'
Chris@41 18159 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@41 18160 as_echo='printf %s\n'
Chris@41 18161 as_echo_n='printf %s'
Chris@41 18162 else
Chris@41 18163 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
Chris@41 18164 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
Chris@41 18165 as_echo_n='/usr/ucb/echo -n'
Chris@41 18166 else
Chris@41 18167 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
Chris@41 18168 as_echo_n_body='eval
Chris@41 18169 arg=$1;
Chris@41 18170 case $arg in #(
Chris@41 18171 *"$as_nl"*)
Chris@41 18172 expr "X$arg" : "X\\(.*\\)$as_nl";
Chris@41 18173 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
Chris@41 18174 esac;
Chris@41 18175 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
Chris@41 18176 '
Chris@41 18177 export as_echo_n_body
Chris@41 18178 as_echo_n='sh -c $as_echo_n_body as_echo'
Chris@41 18179 fi
Chris@41 18180 export as_echo_body
Chris@41 18181 as_echo='sh -c $as_echo_body as_echo'
Chris@41 18182 fi
Chris@41 18183
Chris@41 18184 # The user is always right.
Chris@41 18185 if test "${PATH_SEPARATOR+set}" != set; then
Chris@41 18186 PATH_SEPARATOR=:
Chris@41 18187 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
Chris@41 18188 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
Chris@41 18189 PATH_SEPARATOR=';'
Chris@41 18190 }
Chris@41 18191 fi
Chris@41 18192
Chris@41 18193
Chris@41 18194 # IFS
Chris@41 18195 # We need space, tab and new line, in precisely that order. Quoting is
Chris@41 18196 # there to prevent editors from complaining about space-tab.
Chris@41 18197 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
Chris@41 18198 # splitting by setting IFS to empty value.)
Chris@41 18199 IFS=" "" $as_nl"
Chris@41 18200
Chris@41 18201 # Find who we are. Look in the path if we contain no directory separator.
Chris@41 18202 as_myself=
Chris@41 18203 case $0 in #((
Chris@41 18204 *[\\/]* ) as_myself=$0 ;;
Chris@41 18205 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@41 18206 for as_dir in $PATH
Chris@41 18207 do
Chris@41 18208 IFS=$as_save_IFS
Chris@41 18209 test -z "$as_dir" && as_dir=.
Chris@41 18210 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
Chris@41 18211 done
Chris@41 18212 IFS=$as_save_IFS
Chris@41 18213
Chris@41 18214 ;;
Chris@41 18215 esac
Chris@41 18216 # We did not find ourselves, most probably we were run as `sh COMMAND'
Chris@41 18217 # in which case we are not to be found in the path.
Chris@41 18218 if test "x$as_myself" = x; then
Chris@41 18219 as_myself=$0
Chris@41 18220 fi
Chris@41 18221 if test ! -f "$as_myself"; then
Chris@41 18222 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Chris@41 18223 exit 1
Chris@41 18224 fi
Chris@41 18225
Chris@41 18226 # Unset variables that we do not need and which cause bugs (e.g. in
Chris@41 18227 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
Chris@41 18228 # suppresses any "Segmentation fault" message there. '((' could
Chris@41 18229 # trigger a bug in pdksh 5.2.14.
Chris@41 18230 for as_var in BASH_ENV ENV MAIL MAILPATH
Chris@41 18231 do eval test x\${$as_var+set} = xset \
Chris@41 18232 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Chris@41 18233 done
Chris@41 18234 PS1='$ '
Chris@41 18235 PS2='> '
Chris@41 18236 PS4='+ '
Chris@41 18237
Chris@41 18238 # NLS nuisances.
Chris@41 18239 LC_ALL=C
Chris@41 18240 export LC_ALL
Chris@41 18241 LANGUAGE=C
Chris@41 18242 export LANGUAGE
Chris@41 18243
Chris@41 18244 # CDPATH.
Chris@41 18245 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@41 18246
Chris@41 18247
Chris@41 18248 # as_fn_error STATUS ERROR [LINENO LOG_FD]
Chris@41 18249 # ----------------------------------------
Chris@41 18250 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
Chris@41 18251 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Chris@41 18252 # script with STATUS, using 1 if that was 0.
Chris@41 18253 as_fn_error ()
Chris@41 18254 {
Chris@41 18255 as_status=$1; test $as_status -eq 0 && as_status=1
Chris@41 18256 if test "$4"; then
Chris@41 18257 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@41 18258 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Chris@41 18259 fi
Chris@41 18260 $as_echo "$as_me: error: $2" >&2
Chris@41 18261 as_fn_exit $as_status
Chris@41 18262 } # as_fn_error
Chris@41 18263
Chris@41 18264
Chris@41 18265 # as_fn_set_status STATUS
Chris@41 18266 # -----------------------
Chris@41 18267 # Set $? to STATUS, without forking.
Chris@41 18268 as_fn_set_status ()
Chris@41 18269 {
Chris@41 18270 return $1
Chris@41 18271 } # as_fn_set_status
Chris@41 18272
Chris@41 18273 # as_fn_exit STATUS
Chris@41 18274 # -----------------
Chris@41 18275 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
Chris@41 18276 as_fn_exit ()
Chris@41 18277 {
Chris@41 18278 set +e
Chris@41 18279 as_fn_set_status $1
Chris@41 18280 exit $1
Chris@41 18281 } # as_fn_exit
Chris@41 18282
Chris@41 18283 # as_fn_unset VAR
Chris@41 18284 # ---------------
Chris@41 18285 # Portably unset VAR.
Chris@41 18286 as_fn_unset ()
Chris@41 18287 {
Chris@41 18288 { eval $1=; unset $1;}
Chris@41 18289 }
Chris@41 18290 as_unset=as_fn_unset
Chris@41 18291 # as_fn_append VAR VALUE
Chris@41 18292 # ----------------------
Chris@41 18293 # Append the text in VALUE to the end of the definition contained in VAR. Take
Chris@41 18294 # advantage of any shell optimizations that allow amortized linear growth over
Chris@41 18295 # repeated appends, instead of the typical quadratic growth present in naive
Chris@41 18296 # implementations.
Chris@41 18297 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
Chris@41 18298 eval 'as_fn_append ()
Chris@41 18299 {
Chris@41 18300 eval $1+=\$2
Chris@41 18301 }'
Chris@41 18302 else
Chris@41 18303 as_fn_append ()
Chris@41 18304 {
Chris@41 18305 eval $1=\$$1\$2
Chris@41 18306 }
Chris@41 18307 fi # as_fn_append
Chris@41 18308
Chris@41 18309 # as_fn_arith ARG...
Chris@41 18310 # ------------------
Chris@41 18311 # Perform arithmetic evaluation on the ARGs, and store the result in the
Chris@41 18312 # global $as_val. Take advantage of shells that can avoid forks. The arguments
Chris@41 18313 # must be portable across $(()) and expr.
Chris@41 18314 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
Chris@41 18315 eval 'as_fn_arith ()
Chris@41 18316 {
Chris@41 18317 as_val=$(( $* ))
Chris@41 18318 }'
Chris@41 18319 else
Chris@41 18320 as_fn_arith ()
Chris@41 18321 {
Chris@41 18322 as_val=`expr "$@" || test $? -eq 1`
Chris@41 18323 }
Chris@41 18324 fi # as_fn_arith
Chris@41 18325
Chris@41 18326
Chris@41 18327 if expr a : '\(a\)' >/dev/null 2>&1 &&
Chris@41 18328 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Chris@41 18329 as_expr=expr
Chris@41 18330 else
Chris@41 18331 as_expr=false
Chris@41 18332 fi
Chris@41 18333
Chris@41 18334 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Chris@41 18335 as_basename=basename
Chris@41 18336 else
Chris@41 18337 as_basename=false
Chris@41 18338 fi
Chris@41 18339
Chris@41 18340 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
Chris@41 18341 as_dirname=dirname
Chris@41 18342 else
Chris@41 18343 as_dirname=false
Chris@41 18344 fi
Chris@41 18345
Chris@41 18346 as_me=`$as_basename -- "$0" ||
Chris@41 18347 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
Chris@41 18348 X"$0" : 'X\(//\)$' \| \
Chris@41 18349 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Chris@41 18350 $as_echo X/"$0" |
Chris@41 18351 sed '/^.*\/\([^/][^/]*\)\/*$/{
Chris@41 18352 s//\1/
Chris@41 18353 q
Chris@41 18354 }
Chris@41 18355 /^X\/\(\/\/\)$/{
Chris@41 18356 s//\1/
Chris@41 18357 q
Chris@41 18358 }
Chris@41 18359 /^X\/\(\/\).*/{
Chris@41 18360 s//\1/
Chris@41 18361 q
Chris@41 18362 }
Chris@41 18363 s/.*/./; q'`
Chris@41 18364
Chris@41 18365 # Avoid depending upon Character Ranges.
Chris@41 18366 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
Chris@41 18367 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
Chris@41 18368 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
Chris@41 18369 as_cr_digits='0123456789'
Chris@41 18370 as_cr_alnum=$as_cr_Letters$as_cr_digits
Chris@41 18371
Chris@41 18372 ECHO_C= ECHO_N= ECHO_T=
Chris@41 18373 case `echo -n x` in #(((((
Chris@41 18374 -n*)
Chris@41 18375 case `echo 'xy\c'` in
Chris@41 18376 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Chris@41 18377 xy) ECHO_C='\c';;
Chris@41 18378 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
Chris@41 18379 ECHO_T=' ';;
Chris@41 18380 esac;;
Chris@41 18381 *)
Chris@41 18382 ECHO_N='-n';;
Chris@41 18383 esac
Chris@41 18384
Chris@41 18385 rm -f conf$$ conf$$.exe conf$$.file
Chris@41 18386 if test -d conf$$.dir; then
Chris@41 18387 rm -f conf$$.dir/conf$$.file
Chris@41 18388 else
Chris@41 18389 rm -f conf$$.dir
Chris@41 18390 mkdir conf$$.dir 2>/dev/null
Chris@41 18391 fi
Chris@41 18392 if (echo >conf$$.file) 2>/dev/null; then
Chris@41 18393 if ln -s conf$$.file conf$$ 2>/dev/null; then
Chris@41 18394 as_ln_s='ln -s'
Chris@41 18395 # ... but there are two gotchas:
Chris@41 18396 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
Chris@41 18397 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Chris@41 18398 # In both cases, we have to default to `cp -pR'.
Chris@41 18399 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Chris@41 18400 as_ln_s='cp -pR'
Chris@41 18401 elif ln conf$$.file conf$$ 2>/dev/null; then
Chris@41 18402 as_ln_s=ln
Chris@41 18403 else
Chris@41 18404 as_ln_s='cp -pR'
Chris@41 18405 fi
Chris@41 18406 else
Chris@41 18407 as_ln_s='cp -pR'
Chris@41 18408 fi
Chris@41 18409 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
Chris@41 18410 rmdir conf$$.dir 2>/dev/null
Chris@41 18411
Chris@41 18412
Chris@41 18413 # as_fn_mkdir_p
Chris@41 18414 # -------------
Chris@41 18415 # Create "$as_dir" as a directory, including parents if necessary.
Chris@41 18416 as_fn_mkdir_p ()
Chris@41 18417 {
Chris@41 18418
Chris@41 18419 case $as_dir in #(
Chris@41 18420 -*) as_dir=./$as_dir;;
Chris@41 18421 esac
Chris@41 18422 test -d "$as_dir" || eval $as_mkdir_p || {
Chris@41 18423 as_dirs=
Chris@41 18424 while :; do
Chris@41 18425 case $as_dir in #(
Chris@41 18426 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Chris@41 18427 *) as_qdir=$as_dir;;
Chris@41 18428 esac
Chris@41 18429 as_dirs="'$as_qdir' $as_dirs"
Chris@41 18430 as_dir=`$as_dirname -- "$as_dir" ||
Chris@41 18431 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@41 18432 X"$as_dir" : 'X\(//\)[^/]' \| \
Chris@41 18433 X"$as_dir" : 'X\(//\)$' \| \
Chris@41 18434 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Chris@41 18435 $as_echo X"$as_dir" |
Chris@41 18436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@41 18437 s//\1/
Chris@41 18438 q
Chris@41 18439 }
Chris@41 18440 /^X\(\/\/\)[^/].*/{
Chris@41 18441 s//\1/
Chris@41 18442 q
Chris@41 18443 }
Chris@41 18444 /^X\(\/\/\)$/{
Chris@41 18445 s//\1/
Chris@41 18446 q
Chris@41 18447 }
Chris@41 18448 /^X\(\/\).*/{
Chris@41 18449 s//\1/
Chris@41 18450 q
Chris@41 18451 }
Chris@41 18452 s/.*/./; q'`
Chris@41 18453 test -d "$as_dir" && break
Chris@41 18454 done
Chris@41 18455 test -z "$as_dirs" || eval "mkdir $as_dirs"
Chris@41 18456 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Chris@41 18457
Chris@41 18458
Chris@41 18459 } # as_fn_mkdir_p
Chris@41 18460 if mkdir -p . 2>/dev/null; then
Chris@41 18461 as_mkdir_p='mkdir -p "$as_dir"'
Chris@41 18462 else
Chris@41 18463 test -d ./-p && rmdir ./-p
Chris@41 18464 as_mkdir_p=false
Chris@41 18465 fi
Chris@41 18466
Chris@41 18467
Chris@41 18468 # as_fn_executable_p FILE
Chris@41 18469 # -----------------------
Chris@41 18470 # Test if FILE is an executable regular file.
Chris@41 18471 as_fn_executable_p ()
Chris@41 18472 {
Chris@41 18473 test -f "$1" && test -x "$1"
Chris@41 18474 } # as_fn_executable_p
Chris@41 18475 as_test_x='test -x'
Chris@41 18476 as_executable_p=as_fn_executable_p
Chris@41 18477
Chris@41 18478 # Sed expression to map a string onto a valid CPP name.
Chris@41 18479 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Chris@41 18480
Chris@41 18481 # Sed expression to map a string onto a valid variable name.
Chris@41 18482 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Chris@41 18483
Chris@41 18484
Chris@41 18485 exec 6>&1
Chris@41 18486 ## ----------------------------------- ##
Chris@41 18487 ## Main body of $CONFIG_STATUS script. ##
Chris@41 18488 ## ----------------------------------- ##
Chris@41 18489 _ASEOF
Chris@41 18490 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Chris@41 18491
Chris@41 18492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@41 18493 # Save the log message, to keep $0 and so on meaningful, and to
Chris@41 18494 # report actual input values of CONFIG_FILES etc. instead of their
Chris@41 18495 # values after options handling.
Chris@41 18496 ac_log="
Chris@41 18497 This file was extended by libsamplerate $as_me 0.1.9, which was
Chris@41 18498 generated by GNU Autoconf 2.69. Invocation command line was
Chris@41 18499
Chris@41 18500 CONFIG_FILES = $CONFIG_FILES
Chris@41 18501 CONFIG_HEADERS = $CONFIG_HEADERS
Chris@41 18502 CONFIG_LINKS = $CONFIG_LINKS
Chris@41 18503 CONFIG_COMMANDS = $CONFIG_COMMANDS
Chris@41 18504 $ $0 $@
Chris@41 18505
Chris@41 18506 on `(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@41 18507 "
Chris@41 18508
Chris@41 18509 _ACEOF
Chris@41 18510
Chris@41 18511 case $ac_config_files in *"
Chris@41 18512 "*) set x $ac_config_files; shift; ac_config_files=$*;;
Chris@41 18513 esac
Chris@41 18514
Chris@41 18515 case $ac_config_headers in *"
Chris@41 18516 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
Chris@41 18517 esac
Chris@41 18518
Chris@41 18519
Chris@41 18520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@41 18521 # Files that config.status was made for.
Chris@41 18522 config_files="$ac_config_files"
Chris@41 18523 config_headers="$ac_config_headers"
Chris@41 18524 config_commands="$ac_config_commands"
Chris@41 18525
Chris@41 18526 _ACEOF
Chris@41 18527
Chris@41 18528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@41 18529 ac_cs_usage="\
Chris@41 18530 \`$as_me' instantiates files and other configuration actions
Chris@41 18531 from templates according to the current configuration. Unless the files
Chris@41 18532 and actions are specified as TAGs, all are instantiated by default.
Chris@41 18533
Chris@41 18534 Usage: $0 [OPTION]... [TAG]...
Chris@41 18535
Chris@41 18536 -h, --help print this help, then exit
Chris@41 18537 -V, --version print version number and configuration settings, then exit
Chris@41 18538 --config print configuration, then exit
Chris@41 18539 -q, --quiet, --silent
Chris@41 18540 do not print progress messages
Chris@41 18541 -d, --debug don't remove temporary files
Chris@41 18542 --recheck update $as_me by reconfiguring in the same conditions
Chris@41 18543 --file=FILE[:TEMPLATE]
Chris@41 18544 instantiate the configuration file FILE
Chris@41 18545 --header=FILE[:TEMPLATE]
Chris@41 18546 instantiate the configuration header FILE
Chris@41 18547
Chris@41 18548 Configuration files:
Chris@41 18549 $config_files
Chris@41 18550
Chris@41 18551 Configuration headers:
Chris@41 18552 $config_headers
Chris@41 18553
Chris@41 18554 Configuration commands:
Chris@41 18555 $config_commands
Chris@41 18556
Chris@41 18557 Report bugs to <erikd@mega-nerd.com>.
Chris@41 18558 libsamplerate home page: <http://www.mega-nerd.com/libsamplerate/>."
Chris@41 18559
Chris@41 18560 _ACEOF
Chris@41 18561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@41 18562 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Chris@41 18563 ac_cs_version="\\
Chris@41 18564 libsamplerate config.status 0.1.9
Chris@41 18565 configured by $0, generated by GNU Autoconf 2.69,
Chris@41 18566 with options \\"\$ac_cs_config\\"
Chris@41 18567
Chris@41 18568 Copyright (C) 2012 Free Software Foundation, Inc.
Chris@41 18569 This config.status script is free software; the Free Software Foundation
Chris@41 18570 gives unlimited permission to copy, distribute and modify it."
Chris@41 18571
Chris@41 18572 ac_pwd='$ac_pwd'
Chris@41 18573 srcdir='$srcdir'
Chris@41 18574 INSTALL='$INSTALL'
Chris@41 18575 MKDIR_P='$MKDIR_P'
Chris@41 18576 AWK='$AWK'
Chris@41 18577 test -n "\$AWK" || AWK=awk
Chris@41 18578 _ACEOF
Chris@41 18579
Chris@41 18580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@41 18581 # The default lists apply if the user does not specify any file.
Chris@41 18582 ac_need_defaults=:
Chris@41 18583 while test $# != 0
Chris@41 18584 do
Chris@41 18585 case $1 in
Chris@41 18586 --*=?*)
Chris@41 18587 ac_option=`expr "X$1" : 'X\([^=]*\)='`
Chris@41 18588 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Chris@41 18589 ac_shift=:
Chris@41 18590 ;;
Chris@41 18591 --*=)
Chris@41 18592 ac_option=`expr "X$1" : 'X\([^=]*\)='`
Chris@41 18593 ac_optarg=
Chris@41 18594 ac_shift=:
Chris@41 18595 ;;
Chris@41 18596 *)
Chris@41 18597 ac_option=$1
Chris@41 18598 ac_optarg=$2
Chris@41 18599 ac_shift=shift
Chris@41 18600 ;;
Chris@41 18601 esac
Chris@41 18602
Chris@41 18603 case $ac_option in
Chris@41 18604 # Handling of the options.
Chris@41 18605 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Chris@41 18606 ac_cs_recheck=: ;;
Chris@41 18607 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Chris@41 18608 $as_echo "$ac_cs_version"; exit ;;
Chris@41 18609 --config | --confi | --conf | --con | --co | --c )
Chris@41 18610 $as_echo "$ac_cs_config"; exit ;;
Chris@41 18611 --debug | --debu | --deb | --de | --d | -d )
Chris@41 18612 debug=: ;;
Chris@41 18613 --file | --fil | --fi | --f )
Chris@41 18614 $ac_shift
Chris@41 18615 case $ac_optarg in
Chris@41 18616 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@41 18617 '') as_fn_error $? "missing file argument" ;;
Chris@41 18618 esac
Chris@41 18619 as_fn_append CONFIG_FILES " '$ac_optarg'"
Chris@41 18620 ac_need_defaults=false;;
Chris@41 18621 --header | --heade | --head | --hea )
Chris@41 18622 $ac_shift
Chris@41 18623 case $ac_optarg in
Chris@41 18624 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@41 18625 esac
Chris@41 18626 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Chris@41 18627 ac_need_defaults=false;;
Chris@41 18628 --he | --h)
Chris@41 18629 # Conflict between --help and --header
Chris@41 18630 as_fn_error $? "ambiguous option: \`$1'
Chris@41 18631 Try \`$0 --help' for more information.";;
Chris@41 18632 --help | --hel | -h )
Chris@41 18633 $as_echo "$ac_cs_usage"; exit ;;
Chris@41 18634 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@41 18635 | -silent | --silent | --silen | --sile | --sil | --si | --s)
Chris@41 18636 ac_cs_silent=: ;;
Chris@41 18637
Chris@41 18638 # This is an error.
Chris@41 18639 -*) as_fn_error $? "unrecognized option: \`$1'
Chris@41 18640 Try \`$0 --help' for more information." ;;
Chris@41 18641
Chris@41 18642 *) as_fn_append ac_config_targets " $1"
Chris@41 18643 ac_need_defaults=false ;;
Chris@41 18644
Chris@41 18645 esac
Chris@41 18646 shift
Chris@41 18647 done
Chris@41 18648
Chris@41 18649 ac_configure_extra_args=
Chris@41 18650
Chris@41 18651 if $ac_cs_silent; then
Chris@41 18652 exec 6>/dev/null
Chris@41 18653 ac_configure_extra_args="$ac_configure_extra_args --silent"
Chris@41 18654 fi
Chris@41 18655
Chris@41 18656 _ACEOF
Chris@41 18657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@41 18658 if \$ac_cs_recheck; then
Chris@41 18659 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Chris@41 18660 shift
Chris@41 18661 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
Chris@41 18662 CONFIG_SHELL='$SHELL'
Chris@41 18663 export CONFIG_SHELL
Chris@41 18664 exec "\$@"
Chris@41 18665 fi
Chris@41 18666
Chris@41 18667 _ACEOF
Chris@41 18668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@41 18669 exec 5>>config.log
Chris@41 18670 {
Chris@41 18671 echo
Chris@41 18672 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
Chris@41 18673 ## Running $as_me. ##
Chris@41 18674 _ASBOX
Chris@41 18675 $as_echo "$ac_log"
Chris@41 18676 } >&5
Chris@41 18677
Chris@41 18678 _ACEOF
Chris@41 18679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@41 18680 #
Chris@41 18681 # INIT-COMMANDS
Chris@41 18682 #
Chris@41 18683 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
Chris@41 18684
Chris@41 18685
Chris@41 18686 # The HP-UX ksh and POSIX shell print the target directory to stdout
Chris@41 18687 # if CDPATH is set.
Chris@41 18688 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@41 18689
Chris@41 18690 sed_quote_subst='$sed_quote_subst'
Chris@41 18691 double_quote_subst='$double_quote_subst'
Chris@41 18692 delay_variable_subst='$delay_variable_subst'
Chris@41 18693 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
Chris@41 18694 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
Chris@41 18695 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
Chris@41 18696 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
Chris@41 18697 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
Chris@41 18698 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
Chris@41 18699 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
Chris@41 18700 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
Chris@41 18701 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
Chris@41 18702 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
Chris@41 18703 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
Chris@41 18704 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
Chris@41 18705 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
Chris@41 18706 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
Chris@41 18707 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
Chris@41 18708 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
Chris@41 18709 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
Chris@41 18710 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
Chris@41 18711 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
Chris@41 18712 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
Chris@41 18713 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
Chris@41 18714 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
Chris@41 18715 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
Chris@41 18716 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
Chris@41 18717 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
Chris@41 18718 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
Chris@41 18719 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
Chris@41 18720 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
Chris@41 18721 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
Chris@41 18722 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
Chris@41 18723 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
Chris@41 18724 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
Chris@41 18725 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
Chris@41 18726 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
Chris@41 18727 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
Chris@41 18728 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
Chris@41 18729 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
Chris@41 18730 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
Chris@41 18731 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
Chris@41 18732 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
Chris@41 18733 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
Chris@41 18734 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
Chris@41 18735 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
Chris@41 18736 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
Chris@41 18737 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
Chris@41 18738 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
Chris@41 18739 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@41 18740 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@41 18741 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
Chris@41 18742 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
Chris@41 18743 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
Chris@41 18744 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
Chris@41 18745 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
Chris@41 18746 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
Chris@41 18747 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
Chris@41 18748 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
Chris@41 18749 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
Chris@41 18750 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@41 18751 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@41 18752 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
Chris@41 18753 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
Chris@41 18754 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
Chris@41 18755 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
Chris@41 18756 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
Chris@41 18757 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
Chris@41 18758 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
Chris@41 18759 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
Chris@41 18760 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
Chris@41 18761 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
Chris@41 18762 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
Chris@41 18763 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
Chris@41 18764 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
Chris@41 18765 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
Chris@41 18766 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
Chris@41 18767 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
Chris@41 18768 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
Chris@41 18769 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
Chris@41 18770 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
Chris@41 18771 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
Chris@41 18772 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
Chris@41 18773 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
Chris@41 18774 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
Chris@41 18775 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
Chris@41 18776 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
Chris@41 18777 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
Chris@41 18778 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
Chris@41 18779 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
Chris@41 18780 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
Chris@41 18781 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
Chris@41 18782 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
Chris@41 18783 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
Chris@41 18784 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
Chris@41 18785 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
Chris@41 18786 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
Chris@41 18787 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
Chris@41 18788 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
Chris@41 18789 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
Chris@41 18790 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
Chris@41 18791 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
Chris@41 18792 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
Chris@41 18793 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
Chris@41 18794 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
Chris@41 18795 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
Chris@41 18796 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
Chris@41 18797 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
Chris@41 18798 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
Chris@41 18799 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
Chris@41 18800 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
Chris@41 18801 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
Chris@41 18802 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
Chris@41 18803 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
Chris@41 18804 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
Chris@41 18805 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
Chris@41 18806 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
Chris@41 18807 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
Chris@41 18808 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
Chris@41 18809 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
Chris@41 18810 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
Chris@41 18811 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
Chris@41 18812 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
Chris@41 18813 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
Chris@41 18814 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@41 18815 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@41 18816 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
Chris@41 18817 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
Chris@41 18818 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
Chris@41 18819 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
Chris@41 18820 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
Chris@41 18821 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
Chris@41 18822 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
Chris@41 18823 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
Chris@41 18824 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
Chris@41 18825 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
Chris@41 18826 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
Chris@41 18827 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
Chris@41 18828 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
Chris@41 18829 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
Chris@41 18830 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
Chris@41 18831 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
Chris@41 18832 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
Chris@41 18833 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
Chris@41 18834 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18835 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18836 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18837 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18838 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18839 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18840 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18841 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18842 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18843 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18844 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18845 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18846 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18847 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18848 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18849 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18850 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18851 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18852 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18853 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18854 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18855 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18856 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18857 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18858 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18859 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18860 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18861 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18862 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18863 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18864 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18865 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18866 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18867 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18868 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18869 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18870 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18871 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18872 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18873 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18874 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18875 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18876 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18877 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18878 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18879 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18880 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18881 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18882 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18883 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18884 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18885 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18886 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18887 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18888 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18889 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18890 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18891 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18892 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18893 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18894 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18895 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18896 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18897 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18898 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18899 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18900 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18901 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18902 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18903 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18904 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18905 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18906 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18907 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18908 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18909 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18910 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18911 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18912 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18913 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18914 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18915 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18916 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18917 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18918 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18919 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18920 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18921 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18922 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18923 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18924 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18925 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18926 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18927 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18928 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
Chris@41 18929 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
Chris@41 18930
Chris@41 18931 LTCC='$LTCC'
Chris@41 18932 LTCFLAGS='$LTCFLAGS'
Chris@41 18933 compiler='$compiler_DEFAULT'
Chris@41 18934
Chris@41 18935 # A function that is used when there is no print builtin or printf.
Chris@41 18936 func_fallback_echo ()
Chris@41 18937 {
Chris@41 18938 eval 'cat <<_LTECHO_EOF
Chris@41 18939 \$1
Chris@41 18940 _LTECHO_EOF'
Chris@41 18941 }
Chris@41 18942
Chris@41 18943 # Quote evaled strings.
Chris@41 18944 for var in SHELL \
Chris@41 18945 ECHO \
Chris@41 18946 PATH_SEPARATOR \
Chris@41 18947 SED \
Chris@41 18948 GREP \
Chris@41 18949 EGREP \
Chris@41 18950 FGREP \
Chris@41 18951 LD \
Chris@41 18952 NM \
Chris@41 18953 LN_S \
Chris@41 18954 lt_SP2NL \
Chris@41 18955 lt_NL2SP \
Chris@41 18956 reload_flag \
Chris@41 18957 OBJDUMP \
Chris@41 18958 deplibs_check_method \
Chris@41 18959 file_magic_cmd \
Chris@41 18960 file_magic_glob \
Chris@41 18961 want_nocaseglob \
Chris@41 18962 DLLTOOL \
Chris@41 18963 sharedlib_from_linklib_cmd \
Chris@41 18964 AR \
Chris@41 18965 AR_FLAGS \
Chris@41 18966 archiver_list_spec \
Chris@41 18967 STRIP \
Chris@41 18968 RANLIB \
Chris@41 18969 CC \
Chris@41 18970 CFLAGS \
Chris@41 18971 compiler \
Chris@41 18972 lt_cv_sys_global_symbol_pipe \
Chris@41 18973 lt_cv_sys_global_symbol_to_cdecl \
Chris@41 18974 lt_cv_sys_global_symbol_to_import \
Chris@41 18975 lt_cv_sys_global_symbol_to_c_name_address \
Chris@41 18976 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Chris@41 18977 lt_cv_nm_interface \
Chris@41 18978 nm_file_list_spec \
Chris@41 18979 lt_cv_truncate_bin \
Chris@41 18980 lt_prog_compiler_no_builtin_flag \
Chris@41 18981 lt_prog_compiler_pic \
Chris@41 18982 lt_prog_compiler_wl \
Chris@41 18983 lt_prog_compiler_static \
Chris@41 18984 lt_cv_prog_compiler_c_o \
Chris@41 18985 need_locks \
Chris@41 18986 MANIFEST_TOOL \
Chris@41 18987 DSYMUTIL \
Chris@41 18988 NMEDIT \
Chris@41 18989 LIPO \
Chris@41 18990 OTOOL \
Chris@41 18991 OTOOL64 \
Chris@41 18992 shrext_cmds \
Chris@41 18993 export_dynamic_flag_spec \
Chris@41 18994 whole_archive_flag_spec \
Chris@41 18995 compiler_needs_object \
Chris@41 18996 with_gnu_ld \
Chris@41 18997 allow_undefined_flag \
Chris@41 18998 no_undefined_flag \
Chris@41 18999 hardcode_libdir_flag_spec \
Chris@41 19000 hardcode_libdir_separator \
Chris@41 19001 exclude_expsyms \
Chris@41 19002 include_expsyms \
Chris@41 19003 file_list_spec \
Chris@41 19004 variables_saved_for_relink \
Chris@41 19005 libname_spec \
Chris@41 19006 library_names_spec \
Chris@41 19007 soname_spec \
Chris@41 19008 install_override_mode \
Chris@41 19009 finish_eval \
Chris@41 19010 old_striplib \
Chris@41 19011 striplib \
Chris@41 19012 compiler_lib_search_dirs \
Chris@41 19013 predep_objects \
Chris@41 19014 postdep_objects \
Chris@41 19015 predeps \
Chris@41 19016 postdeps \
Chris@41 19017 compiler_lib_search_path \
Chris@41 19018 LD_CXX \
Chris@41 19019 LD_RC \
Chris@41 19020 reload_flag_CXX \
Chris@41 19021 reload_flag_RC \
Chris@41 19022 compiler_CXX \
Chris@41 19023 compiler_RC \
Chris@41 19024 lt_prog_compiler_no_builtin_flag_CXX \
Chris@41 19025 lt_prog_compiler_no_builtin_flag_RC \
Chris@41 19026 lt_prog_compiler_pic_CXX \
Chris@41 19027 lt_prog_compiler_pic_RC \
Chris@41 19028 lt_prog_compiler_wl_CXX \
Chris@41 19029 lt_prog_compiler_wl_RC \
Chris@41 19030 lt_prog_compiler_static_CXX \
Chris@41 19031 lt_prog_compiler_static_RC \
Chris@41 19032 lt_cv_prog_compiler_c_o_CXX \
Chris@41 19033 lt_cv_prog_compiler_c_o_RC \
Chris@41 19034 export_dynamic_flag_spec_CXX \
Chris@41 19035 export_dynamic_flag_spec_RC \
Chris@41 19036 whole_archive_flag_spec_CXX \
Chris@41 19037 whole_archive_flag_spec_RC \
Chris@41 19038 compiler_needs_object_CXX \
Chris@41 19039 compiler_needs_object_RC \
Chris@41 19040 with_gnu_ld_CXX \
Chris@41 19041 with_gnu_ld_RC \
Chris@41 19042 allow_undefined_flag_CXX \
Chris@41 19043 allow_undefined_flag_RC \
Chris@41 19044 no_undefined_flag_CXX \
Chris@41 19045 no_undefined_flag_RC \
Chris@41 19046 hardcode_libdir_flag_spec_CXX \
Chris@41 19047 hardcode_libdir_flag_spec_RC \
Chris@41 19048 hardcode_libdir_separator_CXX \
Chris@41 19049 hardcode_libdir_separator_RC \
Chris@41 19050 exclude_expsyms_CXX \
Chris@41 19051 exclude_expsyms_RC \
Chris@41 19052 include_expsyms_CXX \
Chris@41 19053 include_expsyms_RC \
Chris@41 19054 file_list_spec_CXX \
Chris@41 19055 file_list_spec_RC \
Chris@41 19056 compiler_lib_search_dirs_CXX \
Chris@41 19057 compiler_lib_search_dirs_RC \
Chris@41 19058 predep_objects_CXX \
Chris@41 19059 predep_objects_RC \
Chris@41 19060 postdep_objects_CXX \
Chris@41 19061 postdep_objects_RC \
Chris@41 19062 predeps_CXX \
Chris@41 19063 predeps_RC \
Chris@41 19064 postdeps_CXX \
Chris@41 19065 postdeps_RC \
Chris@41 19066 compiler_lib_search_path_CXX \
Chris@41 19067 compiler_lib_search_path_RC; do
Chris@41 19068 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Chris@41 19069 *[\\\\\\\`\\"\\\$]*)
Chris@41 19070 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
Chris@41 19071 ;;
Chris@41 19072 *)
Chris@41 19073 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
Chris@41 19074 ;;
Chris@41 19075 esac
Chris@41 19076 done
Chris@41 19077
Chris@41 19078 # Double-quote double-evaled strings.
Chris@41 19079 for var in reload_cmds \
Chris@41 19080 old_postinstall_cmds \
Chris@41 19081 old_postuninstall_cmds \
Chris@41 19082 old_archive_cmds \
Chris@41 19083 extract_expsyms_cmds \
Chris@41 19084 old_archive_from_new_cmds \
Chris@41 19085 old_archive_from_expsyms_cmds \
Chris@41 19086 archive_cmds \
Chris@41 19087 archive_expsym_cmds \
Chris@41 19088 module_cmds \
Chris@41 19089 module_expsym_cmds \
Chris@41 19090 export_symbols_cmds \
Chris@41 19091 prelink_cmds \
Chris@41 19092 postlink_cmds \
Chris@41 19093 postinstall_cmds \
Chris@41 19094 postuninstall_cmds \
Chris@41 19095 finish_cmds \
Chris@41 19096 sys_lib_search_path_spec \
Chris@41 19097 configure_time_dlsearch_path \
Chris@41 19098 configure_time_lt_sys_library_path \
Chris@41 19099 reload_cmds_CXX \
Chris@41 19100 reload_cmds_RC \
Chris@41 19101 old_archive_cmds_CXX \
Chris@41 19102 old_archive_cmds_RC \
Chris@41 19103 old_archive_from_new_cmds_CXX \
Chris@41 19104 old_archive_from_new_cmds_RC \
Chris@41 19105 old_archive_from_expsyms_cmds_CXX \
Chris@41 19106 old_archive_from_expsyms_cmds_RC \
Chris@41 19107 archive_cmds_CXX \
Chris@41 19108 archive_cmds_RC \
Chris@41 19109 archive_expsym_cmds_CXX \
Chris@41 19110 archive_expsym_cmds_RC \
Chris@41 19111 module_cmds_CXX \
Chris@41 19112 module_cmds_RC \
Chris@41 19113 module_expsym_cmds_CXX \
Chris@41 19114 module_expsym_cmds_RC \
Chris@41 19115 export_symbols_cmds_CXX \
Chris@41 19116 export_symbols_cmds_RC \
Chris@41 19117 prelink_cmds_CXX \
Chris@41 19118 prelink_cmds_RC \
Chris@41 19119 postlink_cmds_CXX \
Chris@41 19120 postlink_cmds_RC; do
Chris@41 19121 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Chris@41 19122 *[\\\\\\\`\\"\\\$]*)
Chris@41 19123 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
Chris@41 19124 ;;
Chris@41 19125 *)
Chris@41 19126 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
Chris@41 19127 ;;
Chris@41 19128 esac
Chris@41 19129 done
Chris@41 19130
Chris@41 19131 ac_aux_dir='$ac_aux_dir'
Chris@41 19132
Chris@41 19133 # See if we are running on zsh, and set the options that allow our
Chris@41 19134 # commands through without removal of \ escapes INIT.
Chris@41 19135 if test -n "\${ZSH_VERSION+set}"; then
Chris@41 19136 setopt NO_GLOB_SUBST
Chris@41 19137 fi
Chris@41 19138
Chris@41 19139
Chris@41 19140 PACKAGE='$PACKAGE'
Chris@41 19141 VERSION='$VERSION'
Chris@41 19142 RM='$RM'
Chris@41 19143 ofile='$ofile'
Chris@41 19144
Chris@41 19145
Chris@41 19146
Chris@41 19147
Chris@41 19148
Chris@41 19149
Chris@41 19150
Chris@41 19151
Chris@41 19152 _ACEOF
Chris@41 19153
Chris@41 19154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@41 19155
Chris@41 19156 # Handling of arguments.
Chris@41 19157 for ac_config_target in $ac_config_targets
Chris@41 19158 do
Chris@41 19159 case $ac_config_target in
Chris@41 19160 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
Chris@41 19161 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Chris@41 19162 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Chris@41 19163 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Chris@41 19164 "M4/Makefile") CONFIG_FILES="$CONFIG_FILES M4/Makefile" ;;
Chris@41 19165 "src/Version_script") CONFIG_FILES="$CONFIG_FILES src/Version_script" ;;
Chris@41 19166 "Win32/Makefile") CONFIG_FILES="$CONFIG_FILES Win32/Makefile" ;;
Chris@41 19167 "Win32/Makefile.mingw") CONFIG_FILES="$CONFIG_FILES Win32/Makefile.mingw" ;;
Chris@41 19168 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
Chris@41 19169 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
Chris@41 19170 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
Chris@41 19171 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
Chris@41 19172 "libsamplerate.spec") CONFIG_FILES="$CONFIG_FILES libsamplerate.spec" ;;
Chris@41 19173 "samplerate.pc") CONFIG_FILES="$CONFIG_FILES samplerate.pc" ;;
Chris@41 19174
Chris@41 19175 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Chris@41 19176 esac
Chris@41 19177 done
Chris@41 19178
Chris@41 19179
Chris@41 19180 # If the user did not use the arguments to specify the items to instantiate,
Chris@41 19181 # then the envvar interface is used. Set only those that are not.
Chris@41 19182 # We use the long form for the default assignment because of an extremely
Chris@41 19183 # bizarre bug on SunOS 4.1.3.
Chris@41 19184 if $ac_need_defaults; then
Chris@41 19185 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Chris@41 19186 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Chris@41 19187 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
Chris@41 19188 fi
Chris@41 19189
Chris@41 19190 # Have a temporary directory for convenience. Make it in the build tree
Chris@41 19191 # simply because there is no reason against having it here, and in addition,
Chris@41 19192 # creating and moving files from /tmp can sometimes cause problems.
Chris@41 19193 # Hook for its removal unless debugging.
Chris@41 19194 # Note that there is a small window in which the directory will not be cleaned:
Chris@41 19195 # after its creation but before its name has been assigned to `$tmp'.
Chris@41 19196 $debug ||
Chris@41 19197 {
Chris@41 19198 tmp= ac_tmp=
Chris@41 19199 trap 'exit_status=$?
Chris@41 19200 : "${ac_tmp:=$tmp}"
Chris@41 19201 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Chris@41 19202 ' 0
Chris@41 19203 trap 'as_fn_exit 1' 1 2 13 15
Chris@41 19204 }
Chris@41 19205 # Create a (secure) tmp directory for tmp files.
Chris@41 19206
Chris@41 19207 {
Chris@41 19208 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Chris@41 19209 test -d "$tmp"
Chris@41 19210 } ||
Chris@41 19211 {
Chris@41 19212 tmp=./conf$$-$RANDOM
Chris@41 19213 (umask 077 && mkdir "$tmp")
Chris@41 19214 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Chris@41 19215 ac_tmp=$tmp
Chris@41 19216
Chris@41 19217 # Set up the scripts for CONFIG_FILES section.
Chris@41 19218 # No need to generate them if there are no CONFIG_FILES.
Chris@41 19219 # This happens for instance with `./config.status config.h'.
Chris@41 19220 if test -n "$CONFIG_FILES"; then
Chris@41 19221
Chris@41 19222
Chris@41 19223 ac_cr=`echo X | tr X '\015'`
Chris@41 19224 # On cygwin, bash can eat \r inside `` if the user requested igncr.
Chris@41 19225 # But we know of no other shell where ac_cr would be empty at this
Chris@41 19226 # point, so we can use a bashism as a fallback.
Chris@41 19227 if test "x$ac_cr" = x; then
Chris@41 19228 eval ac_cr=\$\'\\r\'
Chris@41 19229 fi
Chris@41 19230 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
Chris@41 19231 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Chris@41 19232 ac_cs_awk_cr='\\r'
Chris@41 19233 else
Chris@41 19234 ac_cs_awk_cr=$ac_cr
Chris@41 19235 fi
Chris@41 19236
Chris@41 19237 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Chris@41 19238 _ACEOF
Chris@41 19239
Chris@41 19240
Chris@41 19241 {
Chris@41 19242 echo "cat >conf$$subs.awk <<_ACEOF" &&
Chris@41 19243 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
Chris@41 19244 echo "_ACEOF"
Chris@41 19245 } >conf$$subs.sh ||
Chris@41 19246 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@41 19247 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Chris@41 19248 ac_delim='%!_!# '
Chris@41 19249 for ac_last_try in false false false false false :; do
Chris@41 19250 . ./conf$$subs.sh ||
Chris@41 19251 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@41 19252
Chris@41 19253 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
Chris@41 19254 if test $ac_delim_n = $ac_delim_num; then
Chris@41 19255 break
Chris@41 19256 elif $ac_last_try; then
Chris@41 19257 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@41 19258 else
Chris@41 19259 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Chris@41 19260 fi
Chris@41 19261 done
Chris@41 19262 rm -f conf$$subs.sh
Chris@41 19263
Chris@41 19264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@41 19265 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Chris@41 19266 _ACEOF
Chris@41 19267 sed -n '
Chris@41 19268 h
Chris@41 19269 s/^/S["/; s/!.*/"]=/
Chris@41 19270 p
Chris@41 19271 g
Chris@41 19272 s/^[^!]*!//
Chris@41 19273 :repl
Chris@41 19274 t repl
Chris@41 19275 s/'"$ac_delim"'$//
Chris@41 19276 t delim
Chris@41 19277 :nl
Chris@41 19278 h
Chris@41 19279 s/\(.\{148\}\)..*/\1/
Chris@41 19280 t more1
Chris@41 19281 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
Chris@41 19282 p
Chris@41 19283 n
Chris@41 19284 b repl
Chris@41 19285 :more1
Chris@41 19286 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
Chris@41 19287 p
Chris@41 19288 g
Chris@41 19289 s/.\{148\}//
Chris@41 19290 t nl
Chris@41 19291 :delim
Chris@41 19292 h
Chris@41 19293 s/\(.\{148\}\)..*/\1/
Chris@41 19294 t more2
Chris@41 19295 s/["\\]/\\&/g; s/^/"/; s/$/"/
Chris@41 19296 p
Chris@41 19297 b
Chris@41 19298 :more2
Chris@41 19299 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
Chris@41 19300 p
Chris@41 19301 g
Chris@41 19302 s/.\{148\}//
Chris@41 19303 t delim
Chris@41 19304 ' <conf$$subs.awk | sed '
Chris@41 19305 /^[^""]/{
Chris@41 19306 N
Chris@41 19307 s/\n//
Chris@41 19308 }
Chris@41 19309 ' >>$CONFIG_STATUS || ac_write_fail=1
Chris@41 19310 rm -f conf$$subs.awk
Chris@41 19311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@41 19312 _ACAWK
Chris@41 19313 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Chris@41 19314 for (key in S) S_is_set[key] = 1
Chris@41 19315 FS = ""
Chris@41 19316
Chris@41 19317 }
Chris@41 19318 {
Chris@41 19319 line = $ 0
Chris@41 19320 nfields = split(line, field, "@")
Chris@41 19321 substed = 0
Chris@41 19322 len = length(field[1])
Chris@41 19323 for (i = 2; i < nfields; i++) {
Chris@41 19324 key = field[i]
Chris@41 19325 keylen = length(key)
Chris@41 19326 if (S_is_set[key]) {
Chris@41 19327 value = S[key]
Chris@41 19328 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
Chris@41 19329 len += length(value) + length(field[++i])
Chris@41 19330 substed = 1
Chris@41 19331 } else
Chris@41 19332 len += 1 + keylen
Chris@41 19333 }
Chris@41 19334
Chris@41 19335 print line
Chris@41 19336 }
Chris@41 19337
Chris@41 19338 _ACAWK
Chris@41 19339 _ACEOF
Chris@41 19340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@41 19341 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
Chris@41 19342 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
Chris@41 19343 else
Chris@41 19344 cat
Chris@41 19345 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
Chris@41 19346 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Chris@41 19347 _ACEOF
Chris@41 19348
Chris@41 19349 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
Chris@41 19350 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Chris@41 19351 # trailing colons and then remove the whole line if VPATH becomes empty
Chris@41 19352 # (actually we leave an empty line to preserve line numbers).
Chris@41 19353 if test "x$srcdir" = x.; then
Chris@41 19354 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
Chris@41 19355 h
Chris@41 19356 s///
Chris@41 19357 s/^/:/
Chris@41 19358 s/[ ]*$/:/
Chris@41 19359 s/:\$(srcdir):/:/g
Chris@41 19360 s/:\${srcdir}:/:/g
Chris@41 19361 s/:@srcdir@:/:/g
Chris@41 19362 s/^:*//
Chris@41 19363 s/:*$//
Chris@41 19364 x
Chris@41 19365 s/\(=[ ]*\).*/\1/
Chris@41 19366 G
Chris@41 19367 s/\n//
Chris@41 19368 s/^[^=]*=[ ]*$//
Chris@41 19369 }'
Chris@41 19370 fi
Chris@41 19371
Chris@41 19372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@41 19373 fi # test -n "$CONFIG_FILES"
Chris@41 19374
Chris@41 19375 # Set up the scripts for CONFIG_HEADERS section.
Chris@41 19376 # No need to generate them if there are no CONFIG_HEADERS.
Chris@41 19377 # This happens for instance with `./config.status Makefile'.
Chris@41 19378 if test -n "$CONFIG_HEADERS"; then
Chris@41 19379 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Chris@41 19380 BEGIN {
Chris@41 19381 _ACEOF
Chris@41 19382
Chris@41 19383 # Transform confdefs.h into an awk script `defines.awk', embedded as
Chris@41 19384 # here-document in config.status, that substitutes the proper values into
Chris@41 19385 # config.h.in to produce config.h.
Chris@41 19386
Chris@41 19387 # Create a delimiter string that does not exist in confdefs.h, to ease
Chris@41 19388 # handling of long lines.
Chris@41 19389 ac_delim='%!_!# '
Chris@41 19390 for ac_last_try in false false :; do
Chris@41 19391 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
Chris@41 19392 if test -z "$ac_tt"; then
Chris@41 19393 break
Chris@41 19394 elif $ac_last_try; then
Chris@41 19395 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Chris@41 19396 else
Chris@41 19397 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Chris@41 19398 fi
Chris@41 19399 done
Chris@41 19400
Chris@41 19401 # For the awk script, D is an array of macro values keyed by name,
Chris@41 19402 # likewise P contains macro parameters if any. Preserve backslash
Chris@41 19403 # newline sequences.
Chris@41 19404
Chris@41 19405 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
Chris@41 19406 sed -n '
Chris@41 19407 s/.\{148\}/&'"$ac_delim"'/g
Chris@41 19408 t rset
Chris@41 19409 :rset
Chris@41 19410 s/^[ ]*#[ ]*define[ ][ ]*/ /
Chris@41 19411 t def
Chris@41 19412 d
Chris@41 19413 :def
Chris@41 19414 s/\\$//
Chris@41 19415 t bsnl
Chris@41 19416 s/["\\]/\\&/g
Chris@41 19417 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
Chris@41 19418 D["\1"]=" \3"/p
Chris@41 19419 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
Chris@41 19420 d
Chris@41 19421 :bsnl
Chris@41 19422 s/["\\]/\\&/g
Chris@41 19423 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
Chris@41 19424 D["\1"]=" \3\\\\\\n"\\/p
Chris@41 19425 t cont
Chris@41 19426 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
Chris@41 19427 t cont
Chris@41 19428 d
Chris@41 19429 :cont
Chris@41 19430 n
Chris@41 19431 s/.\{148\}/&'"$ac_delim"'/g
Chris@41 19432 t clear
Chris@41 19433 :clear
Chris@41 19434 s/\\$//
Chris@41 19435 t bsnlc
Chris@41 19436 s/["\\]/\\&/g; s/^/"/; s/$/"/p
Chris@41 19437 d
Chris@41 19438 :bsnlc
Chris@41 19439 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
Chris@41 19440 b cont
Chris@41 19441 ' <confdefs.h | sed '
Chris@41 19442 s/'"$ac_delim"'/"\\\
Chris@41 19443 "/g' >>$CONFIG_STATUS || ac_write_fail=1
Chris@41 19444
Chris@41 19445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@41 19446 for (key in D) D_is_set[key] = 1
Chris@41 19447 FS = ""
Chris@41 19448 }
Chris@41 19449 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
Chris@41 19450 line = \$ 0
Chris@41 19451 split(line, arg, " ")
Chris@41 19452 if (arg[1] == "#") {
Chris@41 19453 defundef = arg[2]
Chris@41 19454 mac1 = arg[3]
Chris@41 19455 } else {
Chris@41 19456 defundef = substr(arg[1], 2)
Chris@41 19457 mac1 = arg[2]
Chris@41 19458 }
Chris@41 19459 split(mac1, mac2, "(") #)
Chris@41 19460 macro = mac2[1]
Chris@41 19461 prefix = substr(line, 1, index(line, defundef) - 1)
Chris@41 19462 if (D_is_set[macro]) {
Chris@41 19463 # Preserve the white space surrounding the "#".
Chris@41 19464 print prefix "define", macro P[macro] D[macro]
Chris@41 19465 next
Chris@41 19466 } else {
Chris@41 19467 # Replace #undef with comments. This is necessary, for example,
Chris@41 19468 # in the case of _POSIX_SOURCE, which is predefined and required
Chris@41 19469 # on some systems where configure will not decide to define it.
Chris@41 19470 if (defundef == "undef") {
Chris@41 19471 print "/*", prefix defundef, macro, "*/"
Chris@41 19472 next
Chris@41 19473 }
Chris@41 19474 }
Chris@41 19475 }
Chris@41 19476 { print }
Chris@41 19477 _ACAWK
Chris@41 19478 _ACEOF
Chris@41 19479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@41 19480 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Chris@41 19481 fi # test -n "$CONFIG_HEADERS"
Chris@41 19482
Chris@41 19483
Chris@41 19484 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Chris@41 19485 shift
Chris@41 19486 for ac_tag
Chris@41 19487 do
Chris@41 19488 case $ac_tag in
Chris@41 19489 :[FHLC]) ac_mode=$ac_tag; continue;;
Chris@41 19490 esac
Chris@41 19491 case $ac_mode$ac_tag in
Chris@41 19492 :[FHL]*:*);;
Chris@41 19493 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Chris@41 19494 :[FH]-) ac_tag=-:-;;
Chris@41 19495 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
Chris@41 19496 esac
Chris@41 19497 ac_save_IFS=$IFS
Chris@41 19498 IFS=:
Chris@41 19499 set x $ac_tag
Chris@41 19500 IFS=$ac_save_IFS
Chris@41 19501 shift
Chris@41 19502 ac_file=$1
Chris@41 19503 shift
Chris@41 19504
Chris@41 19505 case $ac_mode in
Chris@41 19506 :L) ac_source=$1;;
Chris@41 19507 :[FH])
Chris@41 19508 ac_file_inputs=
Chris@41 19509 for ac_f
Chris@41 19510 do
Chris@41 19511 case $ac_f in
Chris@41 19512 -) ac_f="$ac_tmp/stdin";;
Chris@41 19513 *) # Look for the file first in the build tree, then in the source tree
Chris@41 19514 # (if the path is not absolute). The absolute path cannot be DOS-style,
Chris@41 19515 # because $ac_f cannot contain `:'.
Chris@41 19516 test -f "$ac_f" ||
Chris@41 19517 case $ac_f in
Chris@41 19518 [\\/$]*) false;;
Chris@41 19519 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
Chris@41 19520 esac ||
Chris@41 19521 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Chris@41 19522 esac
Chris@41 19523 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Chris@41 19524 as_fn_append ac_file_inputs " '$ac_f'"
Chris@41 19525 done
Chris@41 19526
Chris@41 19527 # Let's still pretend it is `configure' which instantiates (i.e., don't
Chris@41 19528 # use $as_me), people would be surprised to read:
Chris@41 19529 # /* config.h. Generated by config.status. */
Chris@41 19530 configure_input='Generated from '`
Chris@41 19531 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
Chris@41 19532 `' by configure.'
Chris@41 19533 if test x"$ac_file" != x-; then
Chris@41 19534 configure_input="$ac_file. $configure_input"
Chris@41 19535 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Chris@41 19536 $as_echo "$as_me: creating $ac_file" >&6;}
Chris@41 19537 fi
Chris@41 19538 # Neutralize special characters interpreted by sed in replacement strings.
Chris@41 19539 case $configure_input in #(
Chris@41 19540 *\&* | *\|* | *\\* )
Chris@41 19541 ac_sed_conf_input=`$as_echo "$configure_input" |
Chris@41 19542 sed 's/[\\\\&|]/\\\\&/g'`;; #(
Chris@41 19543 *) ac_sed_conf_input=$configure_input;;
Chris@41 19544 esac
Chris@41 19545
Chris@41 19546 case $ac_tag in
Chris@41 19547 *:-:* | *:-) cat >"$ac_tmp/stdin" \
Chris@41 19548 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Chris@41 19549 esac
Chris@41 19550 ;;
Chris@41 19551 esac
Chris@41 19552
Chris@41 19553 ac_dir=`$as_dirname -- "$ac_file" ||
Chris@41 19554 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@41 19555 X"$ac_file" : 'X\(//\)[^/]' \| \
Chris@41 19556 X"$ac_file" : 'X\(//\)$' \| \
Chris@41 19557 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Chris@41 19558 $as_echo X"$ac_file" |
Chris@41 19559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@41 19560 s//\1/
Chris@41 19561 q
Chris@41 19562 }
Chris@41 19563 /^X\(\/\/\)[^/].*/{
Chris@41 19564 s//\1/
Chris@41 19565 q
Chris@41 19566 }
Chris@41 19567 /^X\(\/\/\)$/{
Chris@41 19568 s//\1/
Chris@41 19569 q
Chris@41 19570 }
Chris@41 19571 /^X\(\/\).*/{
Chris@41 19572 s//\1/
Chris@41 19573 q
Chris@41 19574 }
Chris@41 19575 s/.*/./; q'`
Chris@41 19576 as_dir="$ac_dir"; as_fn_mkdir_p
Chris@41 19577 ac_builddir=.
Chris@41 19578
Chris@41 19579 case "$ac_dir" in
Chris@41 19580 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@41 19581 *)
Chris@41 19582 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Chris@41 19583 # A ".." for each directory in $ac_dir_suffix.
Chris@41 19584 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Chris@41 19585 case $ac_top_builddir_sub in
Chris@41 19586 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@41 19587 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
Chris@41 19588 esac ;;
Chris@41 19589 esac
Chris@41 19590 ac_abs_top_builddir=$ac_pwd
Chris@41 19591 ac_abs_builddir=$ac_pwd$ac_dir_suffix
Chris@41 19592 # for backward compatibility:
Chris@41 19593 ac_top_builddir=$ac_top_build_prefix
Chris@41 19594
Chris@41 19595 case $srcdir in
Chris@41 19596 .) # We are building in place.
Chris@41 19597 ac_srcdir=.
Chris@41 19598 ac_top_srcdir=$ac_top_builddir_sub
Chris@41 19599 ac_abs_top_srcdir=$ac_pwd ;;
Chris@41 19600 [\\/]* | ?:[\\/]* ) # Absolute name.
Chris@41 19601 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@41 19602 ac_top_srcdir=$srcdir
Chris@41 19603 ac_abs_top_srcdir=$srcdir ;;
Chris@41 19604 *) # Relative name.
Chris@41 19605 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
Chris@41 19606 ac_top_srcdir=$ac_top_build_prefix$srcdir
Chris@41 19607 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Chris@41 19608 esac
Chris@41 19609 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Chris@41 19610
Chris@41 19611
Chris@41 19612 case $ac_mode in
Chris@41 19613 :F)
Chris@41 19614 #
Chris@41 19615 # CONFIG_FILE
Chris@41 19616 #
Chris@41 19617
Chris@41 19618 case $INSTALL in
Chris@41 19619 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Chris@41 19620 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Chris@41 19621 esac
Chris@41 19622 ac_MKDIR_P=$MKDIR_P
Chris@41 19623 case $MKDIR_P in
Chris@41 19624 [\\/$]* | ?:[\\/]* ) ;;
Chris@41 19625 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
Chris@41 19626 esac
Chris@41 19627 _ACEOF
Chris@41 19628
Chris@41 19629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@41 19630 # If the template does not know about datarootdir, expand it.
Chris@41 19631 # FIXME: This hack should be removed a few years after 2.60.
Chris@41 19632 ac_datarootdir_hack=; ac_datarootdir_seen=
Chris@41 19633 ac_sed_dataroot='
Chris@41 19634 /datarootdir/ {
Chris@41 19635 p
Chris@41 19636 q
Chris@41 19637 }
Chris@41 19638 /@datadir@/p
Chris@41 19639 /@docdir@/p
Chris@41 19640 /@infodir@/p
Chris@41 19641 /@localedir@/p
Chris@41 19642 /@mandir@/p'
Chris@41 19643 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Chris@41 19644 *datarootdir*) ac_datarootdir_seen=yes;;
Chris@41 19645 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Chris@41 19646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
Chris@41 19647 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Chris@41 19648 _ACEOF
Chris@41 19649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@41 19650 ac_datarootdir_hack='
Chris@41 19651 s&@datadir@&$datadir&g
Chris@41 19652 s&@docdir@&$docdir&g
Chris@41 19653 s&@infodir@&$infodir&g
Chris@41 19654 s&@localedir@&$localedir&g
Chris@41 19655 s&@mandir@&$mandir&g
Chris@41 19656 s&\\\${datarootdir}&$datarootdir&g' ;;
Chris@41 19657 esac
Chris@41 19658 _ACEOF
Chris@41 19659
Chris@41 19660 # Neutralize VPATH when `$srcdir' = `.'.
Chris@41 19661 # Shell code in configure.ac might set extrasub.
Chris@41 19662 # FIXME: do we really want to maintain this feature?
Chris@41 19663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@41 19664 ac_sed_extra="$ac_vpsub
Chris@41 19665 $extrasub
Chris@41 19666 _ACEOF
Chris@41 19667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@41 19668 :t
Chris@41 19669 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Chris@41 19670 s|@configure_input@|$ac_sed_conf_input|;t t
Chris@41 19671 s&@top_builddir@&$ac_top_builddir_sub&;t t
Chris@41 19672 s&@top_build_prefix@&$ac_top_build_prefix&;t t
Chris@41 19673 s&@srcdir@&$ac_srcdir&;t t
Chris@41 19674 s&@abs_srcdir@&$ac_abs_srcdir&;t t
Chris@41 19675 s&@top_srcdir@&$ac_top_srcdir&;t t
Chris@41 19676 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
Chris@41 19677 s&@builddir@&$ac_builddir&;t t
Chris@41 19678 s&@abs_builddir@&$ac_abs_builddir&;t t
Chris@41 19679 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Chris@41 19680 s&@INSTALL@&$ac_INSTALL&;t t
Chris@41 19681 s&@MKDIR_P@&$ac_MKDIR_P&;t t
Chris@41 19682 $ac_datarootdir_hack
Chris@41 19683 "
Chris@41 19684 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
Chris@41 19685 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@41 19686
Chris@41 19687 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Chris@41 19688 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
Chris@41 19689 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
Chris@41 19690 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Chris@41 19691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Chris@41 19692 which seems to be undefined. Please make sure it is defined" >&5
Chris@41 19693 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Chris@41 19694 which seems to be undefined. Please make sure it is defined" >&2;}
Chris@41 19695
Chris@41 19696 rm -f "$ac_tmp/stdin"
Chris@41 19697 case $ac_file in
Chris@41 19698 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
Chris@41 19699 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Chris@41 19700 esac \
Chris@41 19701 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@41 19702 ;;
Chris@41 19703 :H)
Chris@41 19704 #
Chris@41 19705 # CONFIG_HEADER
Chris@41 19706 #
Chris@41 19707 if test x"$ac_file" != x-; then
Chris@41 19708 {
Chris@41 19709 $as_echo "/* $configure_input */" \
Chris@41 19710 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
Chris@41 19711 } >"$ac_tmp/config.h" \
Chris@41 19712 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@41 19713 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Chris@41 19714 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Chris@41 19715 $as_echo "$as_me: $ac_file is unchanged" >&6;}
Chris@41 19716 else
Chris@41 19717 rm -f "$ac_file"
Chris@41 19718 mv "$ac_tmp/config.h" "$ac_file" \
Chris@41 19719 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@41 19720 fi
Chris@41 19721 else
Chris@41 19722 $as_echo "/* $configure_input */" \
Chris@41 19723 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
Chris@41 19724 || as_fn_error $? "could not create -" "$LINENO" 5
Chris@41 19725 fi
Chris@41 19726 # Compute "$ac_file"'s index in $config_headers.
Chris@41 19727 _am_arg="$ac_file"
Chris@41 19728 _am_stamp_count=1
Chris@41 19729 for _am_header in $config_headers :; do
Chris@41 19730 case $_am_header in
Chris@41 19731 $_am_arg | $_am_arg:* )
Chris@41 19732 break ;;
Chris@41 19733 * )
Chris@41 19734 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
Chris@41 19735 esac
Chris@41 19736 done
Chris@41 19737 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
Chris@41 19738 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@41 19739 X"$_am_arg" : 'X\(//\)[^/]' \| \
Chris@41 19740 X"$_am_arg" : 'X\(//\)$' \| \
Chris@41 19741 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
Chris@41 19742 $as_echo X"$_am_arg" |
Chris@41 19743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@41 19744 s//\1/
Chris@41 19745 q
Chris@41 19746 }
Chris@41 19747 /^X\(\/\/\)[^/].*/{
Chris@41 19748 s//\1/
Chris@41 19749 q
Chris@41 19750 }
Chris@41 19751 /^X\(\/\/\)$/{
Chris@41 19752 s//\1/
Chris@41 19753 q
Chris@41 19754 }
Chris@41 19755 /^X\(\/\).*/{
Chris@41 19756 s//\1/
Chris@41 19757 q
Chris@41 19758 }
Chris@41 19759 s/.*/./; q'`/stamp-h$_am_stamp_count
Chris@41 19760 ;;
Chris@41 19761
Chris@41 19762 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Chris@41 19763 $as_echo "$as_me: executing $ac_file commands" >&6;}
Chris@41 19764 ;;
Chris@41 19765 esac
Chris@41 19766
Chris@41 19767
Chris@41 19768 case $ac_file$ac_mode in
Chris@41 19769 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
Chris@41 19770 # Older Autoconf quotes --file arguments for eval, but not when files
Chris@41 19771 # are listed without --file. Let's play safe and only enable the eval
Chris@41 19772 # if we detect the quoting.
Chris@41 19773 case $CONFIG_FILES in
Chris@41 19774 *\'*) eval set x "$CONFIG_FILES" ;;
Chris@41 19775 *) set x $CONFIG_FILES ;;
Chris@41 19776 esac
Chris@41 19777 shift
Chris@41 19778 for mf
Chris@41 19779 do
Chris@41 19780 # Strip MF so we end up with the name of the file.
Chris@41 19781 mf=`echo "$mf" | sed -e 's/:.*$//'`
Chris@41 19782 # Check whether this is an Automake generated Makefile or not.
Chris@41 19783 # We used to match only the files named 'Makefile.in', but
Chris@41 19784 # some people rename them; so instead we look at the file content.
Chris@41 19785 # Grep'ing the first line is not enough: some people post-process
Chris@41 19786 # each Makefile.in and add a new line on top of each file to say so.
Chris@41 19787 # Grep'ing the whole file is not good either: AIX grep has a line
Chris@41 19788 # limit of 2048, but all sed's we know have understand at least 4000.
Chris@41 19789 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
Chris@41 19790 dirpart=`$as_dirname -- "$mf" ||
Chris@41 19791 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@41 19792 X"$mf" : 'X\(//\)[^/]' \| \
Chris@41 19793 X"$mf" : 'X\(//\)$' \| \
Chris@41 19794 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Chris@41 19795 $as_echo X"$mf" |
Chris@41 19796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@41 19797 s//\1/
Chris@41 19798 q
Chris@41 19799 }
Chris@41 19800 /^X\(\/\/\)[^/].*/{
Chris@41 19801 s//\1/
Chris@41 19802 q
Chris@41 19803 }
Chris@41 19804 /^X\(\/\/\)$/{
Chris@41 19805 s//\1/
Chris@41 19806 q
Chris@41 19807 }
Chris@41 19808 /^X\(\/\).*/{
Chris@41 19809 s//\1/
Chris@41 19810 q
Chris@41 19811 }
Chris@41 19812 s/.*/./; q'`
Chris@41 19813 else
Chris@41 19814 continue
Chris@41 19815 fi
Chris@41 19816 # Extract the definition of DEPDIR, am__include, and am__quote
Chris@41 19817 # from the Makefile without running 'make'.
Chris@41 19818 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
Chris@41 19819 test -z "$DEPDIR" && continue
Chris@41 19820 am__include=`sed -n 's/^am__include = //p' < "$mf"`
Chris@41 19821 test -z "$am__include" && continue
Chris@41 19822 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Chris@41 19823 # Find all dependency output files, they are included files with
Chris@41 19824 # $(DEPDIR) in their names. We invoke sed twice because it is the
Chris@41 19825 # simplest approach to changing $(DEPDIR) to its actual value in the
Chris@41 19826 # expansion.
Chris@41 19827 for file in `sed -n "
Chris@41 19828 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Chris@41 19829 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
Chris@41 19830 # Make sure the directory exists.
Chris@41 19831 test -f "$dirpart/$file" && continue
Chris@41 19832 fdir=`$as_dirname -- "$file" ||
Chris@41 19833 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@41 19834 X"$file" : 'X\(//\)[^/]' \| \
Chris@41 19835 X"$file" : 'X\(//\)$' \| \
Chris@41 19836 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Chris@41 19837 $as_echo X"$file" |
Chris@41 19838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@41 19839 s//\1/
Chris@41 19840 q
Chris@41 19841 }
Chris@41 19842 /^X\(\/\/\)[^/].*/{
Chris@41 19843 s//\1/
Chris@41 19844 q
Chris@41 19845 }
Chris@41 19846 /^X\(\/\/\)$/{
Chris@41 19847 s//\1/
Chris@41 19848 q
Chris@41 19849 }
Chris@41 19850 /^X\(\/\).*/{
Chris@41 19851 s//\1/
Chris@41 19852 q
Chris@41 19853 }
Chris@41 19854 s/.*/./; q'`
Chris@41 19855 as_dir=$dirpart/$fdir; as_fn_mkdir_p
Chris@41 19856 # echo "creating $dirpart/$file"
Chris@41 19857 echo '# dummy' > "$dirpart/$file"
Chris@41 19858 done
Chris@41 19859 done
Chris@41 19860 }
Chris@41 19861 ;;
Chris@41 19862 "libtool":C)
Chris@41 19863
Chris@41 19864 # See if we are running on zsh, and set the options that allow our
Chris@41 19865 # commands through without removal of \ escapes.
Chris@41 19866 if test -n "${ZSH_VERSION+set}"; then
Chris@41 19867 setopt NO_GLOB_SUBST
Chris@41 19868 fi
Chris@41 19869
Chris@41 19870 cfgfile=${ofile}T
Chris@41 19871 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
Chris@41 19872 $RM "$cfgfile"
Chris@41 19873
Chris@41 19874 cat <<_LT_EOF >> "$cfgfile"
Chris@41 19875 #! $SHELL
Chris@41 19876 # Generated automatically by $as_me ($PACKAGE) $VERSION
Chris@41 19877 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
Chris@41 19878
Chris@41 19879 # Provide generalized library-building support services.
Chris@41 19880 # Written by Gordon Matzigkeit, 1996
Chris@41 19881
Chris@41 19882 # Copyright (C) 2014 Free Software Foundation, Inc.
Chris@41 19883 # This is free software; see the source for copying conditions. There is NO
Chris@41 19884 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Chris@41 19885
Chris@41 19886 # GNU Libtool is free software; you can redistribute it and/or modify
Chris@41 19887 # it under the terms of the GNU General Public License as published by
Chris@41 19888 # the Free Software Foundation; either version 2 of of the License, or
Chris@41 19889 # (at your option) any later version.
Chris@41 19890 #
Chris@41 19891 # As a special exception to the GNU General Public License, if you
Chris@41 19892 # distribute this file as part of a program or library that is built
Chris@41 19893 # using GNU Libtool, you may include this file under the same
Chris@41 19894 # distribution terms that you use for the rest of that program.
Chris@41 19895 #
Chris@41 19896 # GNU Libtool is distributed in the hope that it will be useful, but
Chris@41 19897 # WITHOUT ANY WARRANTY; without even the implied warranty of
Chris@41 19898 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Chris@41 19899 # GNU General Public License for more details.
Chris@41 19900 #
Chris@41 19901 # You should have received a copy of the GNU General Public License
Chris@41 19902 # along with this program. If not, see <http://www.gnu.org/licenses/>.
Chris@41 19903
Chris@41 19904
Chris@41 19905 # The names of the tagged configurations supported by this script.
Chris@41 19906 available_tags='CXX RC '
Chris@41 19907
Chris@41 19908 # Configured defaults for sys_lib_dlsearch_path munging.
Chris@41 19909 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
Chris@41 19910
Chris@41 19911 # ### BEGIN LIBTOOL CONFIG
Chris@41 19912
Chris@41 19913 # Which release of libtool.m4 was used?
Chris@41 19914 macro_version=$macro_version
Chris@41 19915 macro_revision=$macro_revision
Chris@41 19916
Chris@41 19917 # Whether or not to build shared libraries.
Chris@41 19918 build_libtool_libs=$enable_shared
Chris@41 19919
Chris@41 19920 # Whether or not to build static libraries.
Chris@41 19921 build_old_libs=$enable_static
Chris@41 19922
Chris@41 19923 # What type of objects to build.
Chris@41 19924 pic_mode=$pic_mode
Chris@41 19925
Chris@41 19926 # Whether or not to optimize for fast installation.
Chris@41 19927 fast_install=$enable_fast_install
Chris@41 19928
Chris@41 19929 # Shared archive member basename,for filename based shared library versioning on AIX.
Chris@41 19930 shared_archive_member_spec=$shared_archive_member_spec
Chris@41 19931
Chris@41 19932 # Shell to use when invoking shell scripts.
Chris@41 19933 SHELL=$lt_SHELL
Chris@41 19934
Chris@41 19935 # An echo program that protects backslashes.
Chris@41 19936 ECHO=$lt_ECHO
Chris@41 19937
Chris@41 19938 # The PATH separator for the build system.
Chris@41 19939 PATH_SEPARATOR=$lt_PATH_SEPARATOR
Chris@41 19940
Chris@41 19941 # The host system.
Chris@41 19942 host_alias=$host_alias
Chris@41 19943 host=$host
Chris@41 19944 host_os=$host_os
Chris@41 19945
Chris@41 19946 # The build system.
Chris@41 19947 build_alias=$build_alias
Chris@41 19948 build=$build
Chris@41 19949 build_os=$build_os
Chris@41 19950
Chris@41 19951 # A sed program that does not truncate output.
Chris@41 19952 SED=$lt_SED
Chris@41 19953
Chris@41 19954 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
Chris@41 19955 Xsed="\$SED -e 1s/^X//"
Chris@41 19956
Chris@41 19957 # A grep program that handles long lines.
Chris@41 19958 GREP=$lt_GREP
Chris@41 19959
Chris@41 19960 # An ERE matcher.
Chris@41 19961 EGREP=$lt_EGREP
Chris@41 19962
Chris@41 19963 # A literal string matcher.
Chris@41 19964 FGREP=$lt_FGREP
Chris@41 19965
Chris@41 19966 # A BSD- or MS-compatible name lister.
Chris@41 19967 NM=$lt_NM
Chris@41 19968
Chris@41 19969 # Whether we need soft or hard links.
Chris@41 19970 LN_S=$lt_LN_S
Chris@41 19971
Chris@41 19972 # What is the maximum length of a command?
Chris@41 19973 max_cmd_len=$max_cmd_len
Chris@41 19974
Chris@41 19975 # Object file suffix (normally "o").
Chris@41 19976 objext=$ac_objext
Chris@41 19977
Chris@41 19978 # Executable file suffix (normally "").
Chris@41 19979 exeext=$exeext
Chris@41 19980
Chris@41 19981 # whether the shell understands "unset".
Chris@41 19982 lt_unset=$lt_unset
Chris@41 19983
Chris@41 19984 # turn spaces into newlines.
Chris@41 19985 SP2NL=$lt_lt_SP2NL
Chris@41 19986
Chris@41 19987 # turn newlines into spaces.
Chris@41 19988 NL2SP=$lt_lt_NL2SP
Chris@41 19989
Chris@41 19990 # convert \$build file names to \$host format.
Chris@41 19991 to_host_file_cmd=$lt_cv_to_host_file_cmd
Chris@41 19992
Chris@41 19993 # convert \$build files to toolchain format.
Chris@41 19994 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Chris@41 19995
Chris@41 19996 # An object symbol dumper.
Chris@41 19997 OBJDUMP=$lt_OBJDUMP
Chris@41 19998
Chris@41 19999 # Method to check whether dependent libraries are shared objects.
Chris@41 20000 deplibs_check_method=$lt_deplibs_check_method
Chris@41 20001
Chris@41 20002 # Command to use when deplibs_check_method = "file_magic".
Chris@41 20003 file_magic_cmd=$lt_file_magic_cmd
Chris@41 20004
Chris@41 20005 # How to find potential files when deplibs_check_method = "file_magic".
Chris@41 20006 file_magic_glob=$lt_file_magic_glob
Chris@41 20007
Chris@41 20008 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
Chris@41 20009 want_nocaseglob=$lt_want_nocaseglob
Chris@41 20010
Chris@41 20011 # DLL creation program.
Chris@41 20012 DLLTOOL=$lt_DLLTOOL
Chris@41 20013
Chris@41 20014 # Command to associate shared and link libraries.
Chris@41 20015 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
Chris@41 20016
Chris@41 20017 # The archiver.
Chris@41 20018 AR=$lt_AR
Chris@41 20019
Chris@41 20020 # Flags to create an archive.
Chris@41 20021 AR_FLAGS=$lt_AR_FLAGS
Chris@41 20022
Chris@41 20023 # How to feed a file listing to the archiver.
Chris@41 20024 archiver_list_spec=$lt_archiver_list_spec
Chris@41 20025
Chris@41 20026 # A symbol stripping program.
Chris@41 20027 STRIP=$lt_STRIP
Chris@41 20028
Chris@41 20029 # Commands used to install an old-style archive.
Chris@41 20030 RANLIB=$lt_RANLIB
Chris@41 20031 old_postinstall_cmds=$lt_old_postinstall_cmds
Chris@41 20032 old_postuninstall_cmds=$lt_old_postuninstall_cmds
Chris@41 20033
Chris@41 20034 # Whether to use a lock for old archive extraction.
Chris@41 20035 lock_old_archive_extraction=$lock_old_archive_extraction
Chris@41 20036
Chris@41 20037 # A C compiler.
Chris@41 20038 LTCC=$lt_CC
Chris@41 20039
Chris@41 20040 # LTCC compiler flags.
Chris@41 20041 LTCFLAGS=$lt_CFLAGS
Chris@41 20042
Chris@41 20043 # Take the output of nm and produce a listing of raw symbols and C names.
Chris@41 20044 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
Chris@41 20045
Chris@41 20046 # Transform the output of nm in a proper C declaration.
Chris@41 20047 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
Chris@41 20048
Chris@41 20049 # Transform the output of nm into a list of symbols to manually relocate.
Chris@41 20050 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
Chris@41 20051
Chris@41 20052 # Transform the output of nm in a C name address pair.
Chris@41 20053 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
Chris@41 20054
Chris@41 20055 # Transform the output of nm in a C name address pair when lib prefix is needed.
Chris@41 20056 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
Chris@41 20057
Chris@41 20058 # The name lister interface.
Chris@41 20059 nm_interface=$lt_lt_cv_nm_interface
Chris@41 20060
Chris@41 20061 # Specify filename containing input files for \$NM.
Chris@41 20062 nm_file_list_spec=$lt_nm_file_list_spec
Chris@41 20063
Chris@41 20064 # The root where to search for dependent libraries,and where our libraries should be installed.
Chris@41 20065 lt_sysroot=$lt_sysroot
Chris@41 20066
Chris@41 20067 # Command to truncate a binary pipe.
Chris@41 20068 lt_truncate_bin=$lt_lt_cv_truncate_bin
Chris@41 20069
Chris@41 20070 # The name of the directory that contains temporary libtool files.
Chris@41 20071 objdir=$objdir
Chris@41 20072
Chris@41 20073 # Used to examine libraries when file_magic_cmd begins with "file".
Chris@41 20074 MAGIC_CMD=$MAGIC_CMD
Chris@41 20075
Chris@41 20076 # Must we lock files when doing compilation?
Chris@41 20077 need_locks=$lt_need_locks
Chris@41 20078
Chris@41 20079 # Manifest tool.
Chris@41 20080 MANIFEST_TOOL=$lt_MANIFEST_TOOL
Chris@41 20081
Chris@41 20082 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
Chris@41 20083 DSYMUTIL=$lt_DSYMUTIL
Chris@41 20084
Chris@41 20085 # Tool to change global to local symbols on Mac OS X.
Chris@41 20086 NMEDIT=$lt_NMEDIT
Chris@41 20087
Chris@41 20088 # Tool to manipulate fat objects and archives on Mac OS X.
Chris@41 20089 LIPO=$lt_LIPO
Chris@41 20090
Chris@41 20091 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
Chris@41 20092 OTOOL=$lt_OTOOL
Chris@41 20093
Chris@41 20094 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
Chris@41 20095 OTOOL64=$lt_OTOOL64
Chris@41 20096
Chris@41 20097 # Old archive suffix (normally "a").
Chris@41 20098 libext=$libext
Chris@41 20099
Chris@41 20100 # Shared library suffix (normally ".so").
Chris@41 20101 shrext_cmds=$lt_shrext_cmds
Chris@41 20102
Chris@41 20103 # The commands to extract the exported symbol list from a shared archive.
Chris@41 20104 extract_expsyms_cmds=$lt_extract_expsyms_cmds
Chris@41 20105
Chris@41 20106 # Variables whose values should be saved in libtool wrapper scripts and
Chris@41 20107 # restored at link time.
Chris@41 20108 variables_saved_for_relink=$lt_variables_saved_for_relink
Chris@41 20109
Chris@41 20110 # Do we need the "lib" prefix for modules?
Chris@41 20111 need_lib_prefix=$need_lib_prefix
Chris@41 20112
Chris@41 20113 # Do we need a version for libraries?
Chris@41 20114 need_version=$need_version
Chris@41 20115
Chris@41 20116 # Library versioning type.
Chris@41 20117 version_type=$version_type
Chris@41 20118
Chris@41 20119 # Shared library runtime path variable.
Chris@41 20120 runpath_var=$runpath_var
Chris@41 20121
Chris@41 20122 # Shared library path variable.
Chris@41 20123 shlibpath_var=$shlibpath_var
Chris@41 20124
Chris@41 20125 # Is shlibpath searched before the hard-coded library search path?
Chris@41 20126 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
Chris@41 20127
Chris@41 20128 # Format of library name prefix.
Chris@41 20129 libname_spec=$lt_libname_spec
Chris@41 20130
Chris@41 20131 # List of archive names. First name is the real one, the rest are links.
Chris@41 20132 # The last name is the one that the linker finds with -lNAME
Chris@41 20133 library_names_spec=$lt_library_names_spec
Chris@41 20134
Chris@41 20135 # The coded name of the library, if different from the real name.
Chris@41 20136 soname_spec=$lt_soname_spec
Chris@41 20137
Chris@41 20138 # Permission mode override for installation of shared libraries.
Chris@41 20139 install_override_mode=$lt_install_override_mode
Chris@41 20140
Chris@41 20141 # Command to use after installation of a shared archive.
Chris@41 20142 postinstall_cmds=$lt_postinstall_cmds
Chris@41 20143
Chris@41 20144 # Command to use after uninstallation of a shared archive.
Chris@41 20145 postuninstall_cmds=$lt_postuninstall_cmds
Chris@41 20146
Chris@41 20147 # Commands used to finish a libtool library installation in a directory.
Chris@41 20148 finish_cmds=$lt_finish_cmds
Chris@41 20149
Chris@41 20150 # As "finish_cmds", except a single script fragment to be evaled but
Chris@41 20151 # not shown.
Chris@41 20152 finish_eval=$lt_finish_eval
Chris@41 20153
Chris@41 20154 # Whether we should hardcode library paths into libraries.
Chris@41 20155 hardcode_into_libs=$hardcode_into_libs
Chris@41 20156
Chris@41 20157 # Compile-time system search path for libraries.
Chris@41 20158 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
Chris@41 20159
Chris@41 20160 # Detected run-time system search path for libraries.
Chris@41 20161 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
Chris@41 20162
Chris@41 20163 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
Chris@41 20164 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
Chris@41 20165
Chris@41 20166 # Whether dlopen is supported.
Chris@41 20167 dlopen_support=$enable_dlopen
Chris@41 20168
Chris@41 20169 # Whether dlopen of programs is supported.
Chris@41 20170 dlopen_self=$enable_dlopen_self
Chris@41 20171
Chris@41 20172 # Whether dlopen of statically linked programs is supported.
Chris@41 20173 dlopen_self_static=$enable_dlopen_self_static
Chris@41 20174
Chris@41 20175 # Commands to strip libraries.
Chris@41 20176 old_striplib=$lt_old_striplib
Chris@41 20177 striplib=$lt_striplib
Chris@41 20178
Chris@41 20179
Chris@41 20180 # The linker used to build libraries.
Chris@41 20181 LD=$lt_LD
Chris@41 20182
Chris@41 20183 # How to create reloadable object files.
Chris@41 20184 reload_flag=$lt_reload_flag
Chris@41 20185 reload_cmds=$lt_reload_cmds
Chris@41 20186
Chris@41 20187 # Commands used to build an old-style archive.
Chris@41 20188 old_archive_cmds=$lt_old_archive_cmds
Chris@41 20189
Chris@41 20190 # A language specific compiler.
Chris@41 20191 CC=$lt_compiler
Chris@41 20192
Chris@41 20193 # Is the compiler the GNU compiler?
Chris@41 20194 with_gcc=$GCC
Chris@41 20195
Chris@41 20196 # Compiler flag to turn off builtin functions.
Chris@41 20197 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
Chris@41 20198
Chris@41 20199 # Additional compiler flags for building library objects.
Chris@41 20200 pic_flag=$lt_lt_prog_compiler_pic
Chris@41 20201
Chris@41 20202 # How to pass a linker flag through the compiler.
Chris@41 20203 wl=$lt_lt_prog_compiler_wl
Chris@41 20204
Chris@41 20205 # Compiler flag to prevent dynamic linking.
Chris@41 20206 link_static_flag=$lt_lt_prog_compiler_static
Chris@41 20207
Chris@41 20208 # Does compiler simultaneously support -c and -o options?
Chris@41 20209 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
Chris@41 20210
Chris@41 20211 # Whether or not to add -lc for building shared libraries.
Chris@41 20212 build_libtool_need_lc=$archive_cmds_need_lc
Chris@41 20213
Chris@41 20214 # Whether or not to disallow shared libs when runtime libs are static.
Chris@41 20215 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
Chris@41 20216
Chris@41 20217 # Compiler flag to allow reflexive dlopens.
Chris@41 20218 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
Chris@41 20219
Chris@41 20220 # Compiler flag to generate shared objects directly from archives.
Chris@41 20221 whole_archive_flag_spec=$lt_whole_archive_flag_spec
Chris@41 20222
Chris@41 20223 # Whether the compiler copes with passing no objects directly.
Chris@41 20224 compiler_needs_object=$lt_compiler_needs_object
Chris@41 20225
Chris@41 20226 # Create an old-style archive from a shared archive.
Chris@41 20227 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
Chris@41 20228
Chris@41 20229 # Create a temporary old-style archive to link instead of a shared archive.
Chris@41 20230 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
Chris@41 20231
Chris@41 20232 # Commands used to build a shared archive.
Chris@41 20233 archive_cmds=$lt_archive_cmds
Chris@41 20234 archive_expsym_cmds=$lt_archive_expsym_cmds
Chris@41 20235
Chris@41 20236 # Commands used to build a loadable module if different from building
Chris@41 20237 # a shared archive.
Chris@41 20238 module_cmds=$lt_module_cmds
Chris@41 20239 module_expsym_cmds=$lt_module_expsym_cmds
Chris@41 20240
Chris@41 20241 # Whether we are building with GNU ld or not.
Chris@41 20242 with_gnu_ld=$lt_with_gnu_ld
Chris@41 20243
Chris@41 20244 # Flag that allows shared libraries with undefined symbols to be built.
Chris@41 20245 allow_undefined_flag=$lt_allow_undefined_flag
Chris@41 20246
Chris@41 20247 # Flag that enforces no undefined symbols.
Chris@41 20248 no_undefined_flag=$lt_no_undefined_flag
Chris@41 20249
Chris@41 20250 # Flag to hardcode \$libdir into a binary during linking.
Chris@41 20251 # This must work even if \$libdir does not exist
Chris@41 20252 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
Chris@41 20253
Chris@41 20254 # Whether we need a single "-rpath" flag with a separated argument.
Chris@41 20255 hardcode_libdir_separator=$lt_hardcode_libdir_separator
Chris@41 20256
Chris@41 20257 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Chris@41 20258 # DIR into the resulting binary.
Chris@41 20259 hardcode_direct=$hardcode_direct
Chris@41 20260
Chris@41 20261 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Chris@41 20262 # DIR into the resulting binary and the resulting library dependency is
Chris@41 20263 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
Chris@41 20264 # library is relocated.
Chris@41 20265 hardcode_direct_absolute=$hardcode_direct_absolute
Chris@41 20266
Chris@41 20267 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
Chris@41 20268 # into the resulting binary.
Chris@41 20269 hardcode_minus_L=$hardcode_minus_L
Chris@41 20270
Chris@41 20271 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
Chris@41 20272 # into the resulting binary.
Chris@41 20273 hardcode_shlibpath_var=$hardcode_shlibpath_var
Chris@41 20274
Chris@41 20275 # Set to "yes" if building a shared library automatically hardcodes DIR
Chris@41 20276 # into the library and all subsequent libraries and executables linked
Chris@41 20277 # against it.
Chris@41 20278 hardcode_automatic=$hardcode_automatic
Chris@41 20279
Chris@41 20280 # Set to yes if linker adds runtime paths of dependent libraries
Chris@41 20281 # to runtime path list.
Chris@41 20282 inherit_rpath=$inherit_rpath
Chris@41 20283
Chris@41 20284 # Whether libtool must link a program against all its dependency libraries.
Chris@41 20285 link_all_deplibs=$link_all_deplibs
Chris@41 20286
Chris@41 20287 # Set to "yes" if exported symbols are required.
Chris@41 20288 always_export_symbols=$always_export_symbols
Chris@41 20289
Chris@41 20290 # The commands to list exported symbols.
Chris@41 20291 export_symbols_cmds=$lt_export_symbols_cmds
Chris@41 20292
Chris@41 20293 # Symbols that should not be listed in the preloaded symbols.
Chris@41 20294 exclude_expsyms=$lt_exclude_expsyms
Chris@41 20295
Chris@41 20296 # Symbols that must always be exported.
Chris@41 20297 include_expsyms=$lt_include_expsyms
Chris@41 20298
Chris@41 20299 # Commands necessary for linking programs (against libraries) with templates.
Chris@41 20300 prelink_cmds=$lt_prelink_cmds
Chris@41 20301
Chris@41 20302 # Commands necessary for finishing linking programs.
Chris@41 20303 postlink_cmds=$lt_postlink_cmds
Chris@41 20304
Chris@41 20305 # Specify filename containing input files.
Chris@41 20306 file_list_spec=$lt_file_list_spec
Chris@41 20307
Chris@41 20308 # How to hardcode a shared library path into an executable.
Chris@41 20309 hardcode_action=$hardcode_action
Chris@41 20310
Chris@41 20311 # The directories searched by this compiler when creating a shared library.
Chris@41 20312 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
Chris@41 20313
Chris@41 20314 # Dependencies to place before and after the objects being linked to
Chris@41 20315 # create a shared library.
Chris@41 20316 predep_objects=$lt_predep_objects
Chris@41 20317 postdep_objects=$lt_postdep_objects
Chris@41 20318 predeps=$lt_predeps
Chris@41 20319 postdeps=$lt_postdeps
Chris@41 20320
Chris@41 20321 # The library search path used internally by the compiler when linking
Chris@41 20322 # a shared library.
Chris@41 20323 compiler_lib_search_path=$lt_compiler_lib_search_path
Chris@41 20324
Chris@41 20325 # ### END LIBTOOL CONFIG
Chris@41 20326
Chris@41 20327 _LT_EOF
Chris@41 20328
Chris@41 20329 cat <<'_LT_EOF' >> "$cfgfile"
Chris@41 20330
Chris@41 20331 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
Chris@41 20332
Chris@41 20333 # func_munge_path_list VARIABLE PATH
Chris@41 20334 # -----------------------------------
Chris@41 20335 # VARIABLE is name of variable containing _space_ separated list of
Chris@41 20336 # directories to be munged by the contents of PATH, which is string
Chris@41 20337 # having a format:
Chris@41 20338 # "DIR[:DIR]:"
Chris@41 20339 # string "DIR[ DIR]" will be prepended to VARIABLE
Chris@41 20340 # ":DIR[:DIR]"
Chris@41 20341 # string "DIR[ DIR]" will be appended to VARIABLE
Chris@41 20342 # "DIRP[:DIRP]::[DIRA:]DIRA"
Chris@41 20343 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
Chris@41 20344 # "DIRA[ DIRA]" will be appended to VARIABLE
Chris@41 20345 # "DIR[:DIR]"
Chris@41 20346 # VARIABLE will be replaced by "DIR[ DIR]"
Chris@41 20347 func_munge_path_list ()
Chris@41 20348 {
Chris@41 20349 case x$2 in
Chris@41 20350 x)
Chris@41 20351 ;;
Chris@41 20352 *:)
Chris@41 20353 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
Chris@41 20354 ;;
Chris@41 20355 x:*)
Chris@41 20356 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
Chris@41 20357 ;;
Chris@41 20358 *::*)
Chris@41 20359 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
Chris@41 20360 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
Chris@41 20361 ;;
Chris@41 20362 *)
Chris@41 20363 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
Chris@41 20364 ;;
Chris@41 20365 esac
Chris@41 20366 }
Chris@41 20367
Chris@41 20368
Chris@41 20369 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
Chris@41 20370 func_cc_basename ()
Chris@41 20371 {
Chris@41 20372 for cc_temp in $*""; do
Chris@41 20373 case $cc_temp in
Chris@41 20374 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
Chris@41 20375 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
Chris@41 20376 \-*) ;;
Chris@41 20377 *) break;;
Chris@41 20378 esac
Chris@41 20379 done
Chris@41 20380 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Chris@41 20381 }
Chris@41 20382
Chris@41 20383
Chris@41 20384 # ### END FUNCTIONS SHARED WITH CONFIGURE
Chris@41 20385
Chris@41 20386 _LT_EOF
Chris@41 20387
Chris@41 20388 case $host_os in
Chris@41 20389 aix3*)
Chris@41 20390 cat <<\_LT_EOF >> "$cfgfile"
Chris@41 20391 # AIX sometimes has problems with the GCC collect2 program. For some
Chris@41 20392 # reason, if we set the COLLECT_NAMES environment variable, the problems
Chris@41 20393 # vanish in a puff of smoke.
Chris@41 20394 if test set != "${COLLECT_NAMES+set}"; then
Chris@41 20395 COLLECT_NAMES=
Chris@41 20396 export COLLECT_NAMES
Chris@41 20397 fi
Chris@41 20398 _LT_EOF
Chris@41 20399 ;;
Chris@41 20400 esac
Chris@41 20401
Chris@41 20402
Chris@41 20403 ltmain=$ac_aux_dir/ltmain.sh
Chris@41 20404
Chris@41 20405
Chris@41 20406 # We use sed instead of cat because bash on DJGPP gets confused if
Chris@41 20407 # if finds mixed CR/LF and LF-only lines. Since sed operates in
Chris@41 20408 # text mode, it properly converts lines to CR/LF. This bash problem
Chris@41 20409 # is reportedly fixed, but why not run on old versions too?
Chris@41 20410 sed '$q' "$ltmain" >> "$cfgfile" \
Chris@41 20411 || (rm -f "$cfgfile"; exit 1)
Chris@41 20412
Chris@41 20413 mv -f "$cfgfile" "$ofile" ||
Chris@41 20414 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
Chris@41 20415 chmod +x "$ofile"
Chris@41 20416
Chris@41 20417
Chris@41 20418 cat <<_LT_EOF >> "$ofile"
Chris@41 20419
Chris@41 20420 # ### BEGIN LIBTOOL TAG CONFIG: CXX
Chris@41 20421
Chris@41 20422 # The linker used to build libraries.
Chris@41 20423 LD=$lt_LD_CXX
Chris@41 20424
Chris@41 20425 # How to create reloadable object files.
Chris@41 20426 reload_flag=$lt_reload_flag_CXX
Chris@41 20427 reload_cmds=$lt_reload_cmds_CXX
Chris@41 20428
Chris@41 20429 # Commands used to build an old-style archive.
Chris@41 20430 old_archive_cmds=$lt_old_archive_cmds_CXX
Chris@41 20431
Chris@41 20432 # A language specific compiler.
Chris@41 20433 CC=$lt_compiler_CXX
Chris@41 20434
Chris@41 20435 # Is the compiler the GNU compiler?
Chris@41 20436 with_gcc=$GCC_CXX
Chris@41 20437
Chris@41 20438 # Compiler flag to turn off builtin functions.
Chris@41 20439 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
Chris@41 20440
Chris@41 20441 # Additional compiler flags for building library objects.
Chris@41 20442 pic_flag=$lt_lt_prog_compiler_pic_CXX
Chris@41 20443
Chris@41 20444 # How to pass a linker flag through the compiler.
Chris@41 20445 wl=$lt_lt_prog_compiler_wl_CXX
Chris@41 20446
Chris@41 20447 # Compiler flag to prevent dynamic linking.
Chris@41 20448 link_static_flag=$lt_lt_prog_compiler_static_CXX
Chris@41 20449
Chris@41 20450 # Does compiler simultaneously support -c and -o options?
Chris@41 20451 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
Chris@41 20452
Chris@41 20453 # Whether or not to add -lc for building shared libraries.
Chris@41 20454 build_libtool_need_lc=$archive_cmds_need_lc_CXX
Chris@41 20455
Chris@41 20456 # Whether or not to disallow shared libs when runtime libs are static.
Chris@41 20457 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
Chris@41 20458
Chris@41 20459 # Compiler flag to allow reflexive dlopens.
Chris@41 20460 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
Chris@41 20461
Chris@41 20462 # Compiler flag to generate shared objects directly from archives.
Chris@41 20463 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
Chris@41 20464
Chris@41 20465 # Whether the compiler copes with passing no objects directly.
Chris@41 20466 compiler_needs_object=$lt_compiler_needs_object_CXX
Chris@41 20467
Chris@41 20468 # Create an old-style archive from a shared archive.
Chris@41 20469 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
Chris@41 20470
Chris@41 20471 # Create a temporary old-style archive to link instead of a shared archive.
Chris@41 20472 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
Chris@41 20473
Chris@41 20474 # Commands used to build a shared archive.
Chris@41 20475 archive_cmds=$lt_archive_cmds_CXX
Chris@41 20476 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
Chris@41 20477
Chris@41 20478 # Commands used to build a loadable module if different from building
Chris@41 20479 # a shared archive.
Chris@41 20480 module_cmds=$lt_module_cmds_CXX
Chris@41 20481 module_expsym_cmds=$lt_module_expsym_cmds_CXX
Chris@41 20482
Chris@41 20483 # Whether we are building with GNU ld or not.
Chris@41 20484 with_gnu_ld=$lt_with_gnu_ld_CXX
Chris@41 20485
Chris@41 20486 # Flag that allows shared libraries with undefined symbols to be built.
Chris@41 20487 allow_undefined_flag=$lt_allow_undefined_flag_CXX
Chris@41 20488
Chris@41 20489 # Flag that enforces no undefined symbols.
Chris@41 20490 no_undefined_flag=$lt_no_undefined_flag_CXX
Chris@41 20491
Chris@41 20492 # Flag to hardcode \$libdir into a binary during linking.
Chris@41 20493 # This must work even if \$libdir does not exist
Chris@41 20494 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
Chris@41 20495
Chris@41 20496 # Whether we need a single "-rpath" flag with a separated argument.
Chris@41 20497 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
Chris@41 20498
Chris@41 20499 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Chris@41 20500 # DIR into the resulting binary.
Chris@41 20501 hardcode_direct=$hardcode_direct_CXX
Chris@41 20502
Chris@41 20503 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Chris@41 20504 # DIR into the resulting binary and the resulting library dependency is
Chris@41 20505 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
Chris@41 20506 # library is relocated.
Chris@41 20507 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
Chris@41 20508
Chris@41 20509 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
Chris@41 20510 # into the resulting binary.
Chris@41 20511 hardcode_minus_L=$hardcode_minus_L_CXX
Chris@41 20512
Chris@41 20513 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
Chris@41 20514 # into the resulting binary.
Chris@41 20515 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
Chris@41 20516
Chris@41 20517 # Set to "yes" if building a shared library automatically hardcodes DIR
Chris@41 20518 # into the library and all subsequent libraries and executables linked
Chris@41 20519 # against it.
Chris@41 20520 hardcode_automatic=$hardcode_automatic_CXX
Chris@41 20521
Chris@41 20522 # Set to yes if linker adds runtime paths of dependent libraries
Chris@41 20523 # to runtime path list.
Chris@41 20524 inherit_rpath=$inherit_rpath_CXX
Chris@41 20525
Chris@41 20526 # Whether libtool must link a program against all its dependency libraries.
Chris@41 20527 link_all_deplibs=$link_all_deplibs_CXX
Chris@41 20528
Chris@41 20529 # Set to "yes" if exported symbols are required.
Chris@41 20530 always_export_symbols=$always_export_symbols_CXX
Chris@41 20531
Chris@41 20532 # The commands to list exported symbols.
Chris@41 20533 export_symbols_cmds=$lt_export_symbols_cmds_CXX
Chris@41 20534
Chris@41 20535 # Symbols that should not be listed in the preloaded symbols.
Chris@41 20536 exclude_expsyms=$lt_exclude_expsyms_CXX
Chris@41 20537
Chris@41 20538 # Symbols that must always be exported.
Chris@41 20539 include_expsyms=$lt_include_expsyms_CXX
Chris@41 20540
Chris@41 20541 # Commands necessary for linking programs (against libraries) with templates.
Chris@41 20542 prelink_cmds=$lt_prelink_cmds_CXX
Chris@41 20543
Chris@41 20544 # Commands necessary for finishing linking programs.
Chris@41 20545 postlink_cmds=$lt_postlink_cmds_CXX
Chris@41 20546
Chris@41 20547 # Specify filename containing input files.
Chris@41 20548 file_list_spec=$lt_file_list_spec_CXX
Chris@41 20549
Chris@41 20550 # How to hardcode a shared library path into an executable.
Chris@41 20551 hardcode_action=$hardcode_action_CXX
Chris@41 20552
Chris@41 20553 # The directories searched by this compiler when creating a shared library.
Chris@41 20554 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
Chris@41 20555
Chris@41 20556 # Dependencies to place before and after the objects being linked to
Chris@41 20557 # create a shared library.
Chris@41 20558 predep_objects=$lt_predep_objects_CXX
Chris@41 20559 postdep_objects=$lt_postdep_objects_CXX
Chris@41 20560 predeps=$lt_predeps_CXX
Chris@41 20561 postdeps=$lt_postdeps_CXX
Chris@41 20562
Chris@41 20563 # The library search path used internally by the compiler when linking
Chris@41 20564 # a shared library.
Chris@41 20565 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
Chris@41 20566
Chris@41 20567 # ### END LIBTOOL TAG CONFIG: CXX
Chris@41 20568 _LT_EOF
Chris@41 20569
Chris@41 20570
Chris@41 20571 cat <<_LT_EOF >> "$ofile"
Chris@41 20572
Chris@41 20573 # ### BEGIN LIBTOOL TAG CONFIG: RC
Chris@41 20574
Chris@41 20575 # The linker used to build libraries.
Chris@41 20576 LD=$lt_LD_RC
Chris@41 20577
Chris@41 20578 # How to create reloadable object files.
Chris@41 20579 reload_flag=$lt_reload_flag_RC
Chris@41 20580 reload_cmds=$lt_reload_cmds_RC
Chris@41 20581
Chris@41 20582 # Commands used to build an old-style archive.
Chris@41 20583 old_archive_cmds=$lt_old_archive_cmds_RC
Chris@41 20584
Chris@41 20585 # A language specific compiler.
Chris@41 20586 CC=$lt_compiler_RC
Chris@41 20587
Chris@41 20588 # Is the compiler the GNU compiler?
Chris@41 20589 with_gcc=$GCC_RC
Chris@41 20590
Chris@41 20591 # Compiler flag to turn off builtin functions.
Chris@41 20592 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
Chris@41 20593
Chris@41 20594 # Additional compiler flags for building library objects.
Chris@41 20595 pic_flag=$lt_lt_prog_compiler_pic_RC
Chris@41 20596
Chris@41 20597 # How to pass a linker flag through the compiler.
Chris@41 20598 wl=$lt_lt_prog_compiler_wl_RC
Chris@41 20599
Chris@41 20600 # Compiler flag to prevent dynamic linking.
Chris@41 20601 link_static_flag=$lt_lt_prog_compiler_static_RC
Chris@41 20602
Chris@41 20603 # Does compiler simultaneously support -c and -o options?
Chris@41 20604 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
Chris@41 20605
Chris@41 20606 # Whether or not to add -lc for building shared libraries.
Chris@41 20607 build_libtool_need_lc=$archive_cmds_need_lc_RC
Chris@41 20608
Chris@41 20609 # Whether or not to disallow shared libs when runtime libs are static.
Chris@41 20610 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
Chris@41 20611
Chris@41 20612 # Compiler flag to allow reflexive dlopens.
Chris@41 20613 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
Chris@41 20614
Chris@41 20615 # Compiler flag to generate shared objects directly from archives.
Chris@41 20616 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
Chris@41 20617
Chris@41 20618 # Whether the compiler copes with passing no objects directly.
Chris@41 20619 compiler_needs_object=$lt_compiler_needs_object_RC
Chris@41 20620
Chris@41 20621 # Create an old-style archive from a shared archive.
Chris@41 20622 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
Chris@41 20623
Chris@41 20624 # Create a temporary old-style archive to link instead of a shared archive.
Chris@41 20625 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
Chris@41 20626
Chris@41 20627 # Commands used to build a shared archive.
Chris@41 20628 archive_cmds=$lt_archive_cmds_RC
Chris@41 20629 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
Chris@41 20630
Chris@41 20631 # Commands used to build a loadable module if different from building
Chris@41 20632 # a shared archive.
Chris@41 20633 module_cmds=$lt_module_cmds_RC
Chris@41 20634 module_expsym_cmds=$lt_module_expsym_cmds_RC
Chris@41 20635
Chris@41 20636 # Whether we are building with GNU ld or not.
Chris@41 20637 with_gnu_ld=$lt_with_gnu_ld_RC
Chris@41 20638
Chris@41 20639 # Flag that allows shared libraries with undefined symbols to be built.
Chris@41 20640 allow_undefined_flag=$lt_allow_undefined_flag_RC
Chris@41 20641
Chris@41 20642 # Flag that enforces no undefined symbols.
Chris@41 20643 no_undefined_flag=$lt_no_undefined_flag_RC
Chris@41 20644
Chris@41 20645 # Flag to hardcode \$libdir into a binary during linking.
Chris@41 20646 # This must work even if \$libdir does not exist
Chris@41 20647 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
Chris@41 20648
Chris@41 20649 # Whether we need a single "-rpath" flag with a separated argument.
Chris@41 20650 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
Chris@41 20651
Chris@41 20652 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Chris@41 20653 # DIR into the resulting binary.
Chris@41 20654 hardcode_direct=$hardcode_direct_RC
Chris@41 20655
Chris@41 20656 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Chris@41 20657 # DIR into the resulting binary and the resulting library dependency is
Chris@41 20658 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
Chris@41 20659 # library is relocated.
Chris@41 20660 hardcode_direct_absolute=$hardcode_direct_absolute_RC
Chris@41 20661
Chris@41 20662 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
Chris@41 20663 # into the resulting binary.
Chris@41 20664 hardcode_minus_L=$hardcode_minus_L_RC
Chris@41 20665
Chris@41 20666 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
Chris@41 20667 # into the resulting binary.
Chris@41 20668 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
Chris@41 20669
Chris@41 20670 # Set to "yes" if building a shared library automatically hardcodes DIR
Chris@41 20671 # into the library and all subsequent libraries and executables linked
Chris@41 20672 # against it.
Chris@41 20673 hardcode_automatic=$hardcode_automatic_RC
Chris@41 20674
Chris@41 20675 # Set to yes if linker adds runtime paths of dependent libraries
Chris@41 20676 # to runtime path list.
Chris@41 20677 inherit_rpath=$inherit_rpath_RC
Chris@41 20678
Chris@41 20679 # Whether libtool must link a program against all its dependency libraries.
Chris@41 20680 link_all_deplibs=$link_all_deplibs_RC
Chris@41 20681
Chris@41 20682 # Set to "yes" if exported symbols are required.
Chris@41 20683 always_export_symbols=$always_export_symbols_RC
Chris@41 20684
Chris@41 20685 # The commands to list exported symbols.
Chris@41 20686 export_symbols_cmds=$lt_export_symbols_cmds_RC
Chris@41 20687
Chris@41 20688 # Symbols that should not be listed in the preloaded symbols.
Chris@41 20689 exclude_expsyms=$lt_exclude_expsyms_RC
Chris@41 20690
Chris@41 20691 # Symbols that must always be exported.
Chris@41 20692 include_expsyms=$lt_include_expsyms_RC
Chris@41 20693
Chris@41 20694 # Commands necessary for linking programs (against libraries) with templates.
Chris@41 20695 prelink_cmds=$lt_prelink_cmds_RC
Chris@41 20696
Chris@41 20697 # Commands necessary for finishing linking programs.
Chris@41 20698 postlink_cmds=$lt_postlink_cmds_RC
Chris@41 20699
Chris@41 20700 # Specify filename containing input files.
Chris@41 20701 file_list_spec=$lt_file_list_spec_RC
Chris@41 20702
Chris@41 20703 # How to hardcode a shared library path into an executable.
Chris@41 20704 hardcode_action=$hardcode_action_RC
Chris@41 20705
Chris@41 20706 # The directories searched by this compiler when creating a shared library.
Chris@41 20707 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
Chris@41 20708
Chris@41 20709 # Dependencies to place before and after the objects being linked to
Chris@41 20710 # create a shared library.
Chris@41 20711 predep_objects=$lt_predep_objects_RC
Chris@41 20712 postdep_objects=$lt_postdep_objects_RC
Chris@41 20713 predeps=$lt_predeps_RC
Chris@41 20714 postdeps=$lt_postdeps_RC
Chris@41 20715
Chris@41 20716 # The library search path used internally by the compiler when linking
Chris@41 20717 # a shared library.
Chris@41 20718 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
Chris@41 20719
Chris@41 20720 # ### END LIBTOOL TAG CONFIG: RC
Chris@41 20721 _LT_EOF
Chris@41 20722
Chris@41 20723 ;;
Chris@41 20724
Chris@41 20725 esac
Chris@41 20726 done # for ac_tag
Chris@41 20727
Chris@41 20728
Chris@41 20729 as_fn_exit 0
Chris@41 20730 _ACEOF
Chris@41 20731 ac_clean_files=$ac_clean_files_save
Chris@41 20732
Chris@41 20733 test $ac_write_fail = 0 ||
Chris@41 20734 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Chris@41 20735
Chris@41 20736
Chris@41 20737 # configure is writing to config.log, and then calls config.status.
Chris@41 20738 # config.status does its own redirection, appending to config.log.
Chris@41 20739 # Unfortunately, on DOS this fails, as config.log is still kept open
Chris@41 20740 # by configure, so config.status won't be able to write to it; its
Chris@41 20741 # output is simply discarded. So we exec the FD to /dev/null,
Chris@41 20742 # effectively closing config.log, so it can be properly (re)opened and
Chris@41 20743 # appended to by config.status. When coming back to configure, we
Chris@41 20744 # need to make the FD available again.
Chris@41 20745 if test "$no_create" != yes; then
Chris@41 20746 ac_cs_success=:
Chris@41 20747 ac_config_status_args=
Chris@41 20748 test "$silent" = yes &&
Chris@41 20749 ac_config_status_args="$ac_config_status_args --quiet"
Chris@41 20750 exec 5>/dev/null
Chris@41 20751 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Chris@41 20752 exec 5>>config.log
Chris@41 20753 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
Chris@41 20754 # would make configure fail if this is the last instruction.
Chris@41 20755 $ac_cs_success || as_fn_exit 1
Chris@41 20756 fi
Chris@41 20757 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Chris@41 20758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Chris@41 20759 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Chris@41 20760 fi
Chris@41 20761
Chris@41 20762
Chris@41 20763 #====================================================================================
Chris@41 20764
Chris@41 20765 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
Chris@41 20766 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-=-
Chris@41 20767
Chris@41 20768 Configuration summary :
Chris@41 20769
Chris@41 20770 Version : ..................... ${VERSION}
Chris@41 20771
Chris@41 20772 Host CPU : .................... ${host_cpu}
Chris@41 20773 Host Vendor : ................. ${host_vendor}
Chris@41 20774 Host OS : ..................... ${host_os}
Chris@41 20775 " >&5
Chris@41 20776 $as_echo "
Chris@41 20777 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-=-
Chris@41 20778
Chris@41 20779 Configuration summary :
Chris@41 20780
Chris@41 20781 Version : ..................... ${VERSION}
Chris@41 20782
Chris@41 20783 Host CPU : .................... ${host_cpu}
Chris@41 20784 Host Vendor : ................. ${host_vendor}
Chris@41 20785 Host OS : ..................... ${host_os}
Chris@41 20786 " >&6; }
Chris@41 20787
Chris@41 20788 if test x$ac_cv_c_compiler_gnu = xyes ; then
Chris@41 20789 echo -e " Tools :\n"
Chris@41 20790 echo " Compiler is GCC : ............. ${ac_cv_c_compiler_gnu}"
Chris@41 20791 echo " GCC major version : ........... ${GCC_MAJOR_VERSION}"
Chris@41 20792 fi
Chris@41 20793
Chris@41 20794 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
Chris@41 20795 Extra tools required for testing and examples :
Chris@41 20796
Chris@41 20797 Have FFTW : ................... ${ac_cv_fftw3}" >&5
Chris@41 20798 $as_echo "
Chris@41 20799 Extra tools required for testing and examples :
Chris@41 20800
Chris@41 20801 Have FFTW : ................... ${ac_cv_fftw3}" >&6; }
Chris@41 20802
Chris@41 20803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Have libsndfile : ............. ${ac_cv_sndfile}" >&5
Chris@41 20804 $as_echo " Have libsndfile : ............. ${ac_cv_sndfile}" >&6; }
Chris@41 20805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Have ALSA : ................... ${ac_cv_header_alsa_asoundlib_h}
Chris@41 20806 " >&5
Chris@41 20807 $as_echo " Have ALSA : ................... ${ac_cv_header_alsa_asoundlib_h}
Chris@41 20808 " >&6; }
Chris@41 20809
Chris@41 20810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Installation directories :
Chris@41 20811
Chris@41 20812 Library directory : ........... ${prefix}/lib
Chris@41 20813 Program directory : ........... ${prefix}/bin
Chris@41 20814 Pkgconfig directory : ......... ${prefix}/lib/pkgconfig
Chris@41 20815 " >&5
Chris@41 20816 $as_echo " Installation directories :
Chris@41 20817
Chris@41 20818 Library directory : ........... ${prefix}/lib
Chris@41 20819 Program directory : ........... ${prefix}/bin
Chris@41 20820 Pkgconfig directory : ......... ${prefix}/lib/pkgconfig
Chris@41 20821 " >&6; }
Chris@41 20822
Chris@41 20823 if test x$prefix != "x/usr" ; then
Chris@41 20824 echo "Compiling some other packages against ${PACKAGE} may require "
Chris@41 20825 echo -e "the addition of \"${prefix}/lib/pkgconfig\" to the "
Chris@41 20826 echo -e "PKG_CONFIG_PATH environment variable.\n"
Chris@41 20827 fi
Chris@41 20828