annotate src/portaudio_20140130/configure @ 81:7029a4916348

Merge build update
author Chris Cannam
date Thu, 31 Oct 2019 13:36:58 +0000
parents 7ddb4fc30dac
children
rev   line source
Chris@39 1 #! /bin/sh
Chris@39 2 # Guess values for system-dependent variables and create Makefiles.
Chris@39 3 # Generated by GNU Autoconf 2.69.
Chris@39 4 #
Chris@39 5 #
Chris@39 6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Chris@39 7 #
Chris@39 8 #
Chris@39 9 # This configure script is free software; the Free Software Foundation
Chris@39 10 # gives unlimited permission to copy, distribute and modify it.
Chris@39 11 ## -------------------- ##
Chris@39 12 ## M4sh Initialization. ##
Chris@39 13 ## -------------------- ##
Chris@39 14
Chris@39 15 # Be more Bourne compatible
Chris@39 16 DUALCASE=1; export DUALCASE # for MKS sh
Chris@39 17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Chris@39 18 emulate sh
Chris@39 19 NULLCMD=:
Chris@39 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Chris@39 21 # is contrary to our usage. Disable this feature.
Chris@39 22 alias -g '${1+"$@"}'='"$@"'
Chris@39 23 setopt NO_GLOB_SUBST
Chris@39 24 else
Chris@39 25 case `(set -o) 2>/dev/null` in #(
Chris@39 26 *posix*) :
Chris@39 27 set -o posix ;; #(
Chris@39 28 *) :
Chris@39 29 ;;
Chris@39 30 esac
Chris@39 31 fi
Chris@39 32
Chris@39 33
Chris@39 34 as_nl='
Chris@39 35 '
Chris@39 36 export as_nl
Chris@39 37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
Chris@39 38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@39 39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@39 40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@39 41 # Prefer a ksh shell builtin over an external printf program on Solaris,
Chris@39 42 # but without wasting forks for bash or zsh.
Chris@39 43 if test -z "$BASH_VERSION$ZSH_VERSION" \
Chris@39 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@39 45 as_echo='print -r --'
Chris@39 46 as_echo_n='print -rn --'
Chris@39 47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@39 48 as_echo='printf %s\n'
Chris@39 49 as_echo_n='printf %s'
Chris@39 50 else
Chris@39 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
Chris@39 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
Chris@39 53 as_echo_n='/usr/ucb/echo -n'
Chris@39 54 else
Chris@39 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
Chris@39 56 as_echo_n_body='eval
Chris@39 57 arg=$1;
Chris@39 58 case $arg in #(
Chris@39 59 *"$as_nl"*)
Chris@39 60 expr "X$arg" : "X\\(.*\\)$as_nl";
Chris@39 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
Chris@39 62 esac;
Chris@39 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
Chris@39 64 '
Chris@39 65 export as_echo_n_body
Chris@39 66 as_echo_n='sh -c $as_echo_n_body as_echo'
Chris@39 67 fi
Chris@39 68 export as_echo_body
Chris@39 69 as_echo='sh -c $as_echo_body as_echo'
Chris@39 70 fi
Chris@39 71
Chris@39 72 # The user is always right.
Chris@39 73 if test "${PATH_SEPARATOR+set}" != set; then
Chris@39 74 PATH_SEPARATOR=:
Chris@39 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
Chris@39 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
Chris@39 77 PATH_SEPARATOR=';'
Chris@39 78 }
Chris@39 79 fi
Chris@39 80
Chris@39 81
Chris@39 82 # IFS
Chris@39 83 # We need space, tab and new line, in precisely that order. Quoting is
Chris@39 84 # there to prevent editors from complaining about space-tab.
Chris@39 85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
Chris@39 86 # splitting by setting IFS to empty value.)
Chris@39 87 IFS=" "" $as_nl"
Chris@39 88
Chris@39 89 # Find who we are. Look in the path if we contain no directory separator.
Chris@39 90 as_myself=
Chris@39 91 case $0 in #((
Chris@39 92 *[\\/]* ) as_myself=$0 ;;
Chris@39 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 94 for as_dir in $PATH
Chris@39 95 do
Chris@39 96 IFS=$as_save_IFS
Chris@39 97 test -z "$as_dir" && as_dir=.
Chris@39 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
Chris@39 99 done
Chris@39 100 IFS=$as_save_IFS
Chris@39 101
Chris@39 102 ;;
Chris@39 103 esac
Chris@39 104 # We did not find ourselves, most probably we were run as `sh COMMAND'
Chris@39 105 # in which case we are not to be found in the path.
Chris@39 106 if test "x$as_myself" = x; then
Chris@39 107 as_myself=$0
Chris@39 108 fi
Chris@39 109 if test ! -f "$as_myself"; then
Chris@39 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Chris@39 111 exit 1
Chris@39 112 fi
Chris@39 113
Chris@39 114 # Unset variables that we do not need and which cause bugs (e.g. in
Chris@39 115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
Chris@39 116 # suppresses any "Segmentation fault" message there. '((' could
Chris@39 117 # trigger a bug in pdksh 5.2.14.
Chris@39 118 for as_var in BASH_ENV ENV MAIL MAILPATH
Chris@39 119 do eval test x\${$as_var+set} = xset \
Chris@39 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Chris@39 121 done
Chris@39 122 PS1='$ '
Chris@39 123 PS2='> '
Chris@39 124 PS4='+ '
Chris@39 125
Chris@39 126 # NLS nuisances.
Chris@39 127 LC_ALL=C
Chris@39 128 export LC_ALL
Chris@39 129 LANGUAGE=C
Chris@39 130 export LANGUAGE
Chris@39 131
Chris@39 132 # CDPATH.
Chris@39 133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@39 134
Chris@39 135 # Use a proper internal environment variable to ensure we don't fall
Chris@39 136 # into an infinite loop, continuously re-executing ourselves.
Chris@39 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
Chris@39 138 _as_can_reexec=no; export _as_can_reexec;
Chris@39 139 # We cannot yet assume a decent shell, so we have to provide a
Chris@39 140 # neutralization value for shells without unset; and this also
Chris@39 141 # works around shells that cannot unset nonexistent variables.
Chris@39 142 # Preserve -v and -x to the replacement shell.
Chris@39 143 BASH_ENV=/dev/null
Chris@39 144 ENV=/dev/null
Chris@39 145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
Chris@39 146 case $- in # ((((
Chris@39 147 *v*x* | *x*v* ) as_opts=-vx ;;
Chris@39 148 *v* ) as_opts=-v ;;
Chris@39 149 *x* ) as_opts=-x ;;
Chris@39 150 * ) as_opts= ;;
Chris@39 151 esac
Chris@39 152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
Chris@39 153 # Admittedly, this is quite paranoid, since all the known shells bail
Chris@39 154 # out after a failed `exec'.
Chris@39 155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
Chris@39 156 as_fn_exit 255
Chris@39 157 fi
Chris@39 158 # We don't want this to propagate to other subprocesses.
Chris@39 159 { _as_can_reexec=; unset _as_can_reexec;}
Chris@39 160 if test "x$CONFIG_SHELL" = x; then
Chris@39 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
Chris@39 162 emulate sh
Chris@39 163 NULLCMD=:
Chris@39 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
Chris@39 165 # is contrary to our usage. Disable this feature.
Chris@39 166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
Chris@39 167 setopt NO_GLOB_SUBST
Chris@39 168 else
Chris@39 169 case \`(set -o) 2>/dev/null\` in #(
Chris@39 170 *posix*) :
Chris@39 171 set -o posix ;; #(
Chris@39 172 *) :
Chris@39 173 ;;
Chris@39 174 esac
Chris@39 175 fi
Chris@39 176 "
Chris@39 177 as_required="as_fn_return () { (exit \$1); }
Chris@39 178 as_fn_success () { as_fn_return 0; }
Chris@39 179 as_fn_failure () { as_fn_return 1; }
Chris@39 180 as_fn_ret_success () { return 0; }
Chris@39 181 as_fn_ret_failure () { return 1; }
Chris@39 182
Chris@39 183 exitcode=0
Chris@39 184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
Chris@39 185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
Chris@39 186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
Chris@39 187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
Chris@39 188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
Chris@39 189
Chris@39 190 else
Chris@39 191 exitcode=1; echo positional parameters were not saved.
Chris@39 192 fi
Chris@39 193 test x\$exitcode = x0 || exit 1
Chris@39 194 test -x / || exit 1"
Chris@39 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
Chris@39 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
Chris@39 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
Chris@39 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
Chris@39 199
Chris@39 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
Chris@39 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@39 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
Chris@39 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
Chris@39 204 PATH=/empty FPATH=/empty; export PATH FPATH
Chris@39 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
Chris@39 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
Chris@39 207 test \$(( 1 + 1 )) = 2 || exit 1"
Chris@39 208 if (eval "$as_required") 2>/dev/null; then :
Chris@39 209 as_have_required=yes
Chris@39 210 else
Chris@39 211 as_have_required=no
Chris@39 212 fi
Chris@39 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
Chris@39 214
Chris@39 215 else
Chris@39 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 217 as_found=false
Chris@39 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Chris@39 219 do
Chris@39 220 IFS=$as_save_IFS
Chris@39 221 test -z "$as_dir" && as_dir=.
Chris@39 222 as_found=:
Chris@39 223 case $as_dir in #(
Chris@39 224 /*)
Chris@39 225 for as_base in sh bash ksh sh5; do
Chris@39 226 # Try only shells that exist, to save several forks.
Chris@39 227 as_shell=$as_dir/$as_base
Chris@39 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
Chris@39 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
Chris@39 230 CONFIG_SHELL=$as_shell as_have_required=yes
Chris@39 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
Chris@39 232 break 2
Chris@39 233 fi
Chris@39 234 fi
Chris@39 235 done;;
Chris@39 236 esac
Chris@39 237 as_found=false
Chris@39 238 done
Chris@39 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
Chris@39 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
Chris@39 241 CONFIG_SHELL=$SHELL as_have_required=yes
Chris@39 242 fi; }
Chris@39 243 IFS=$as_save_IFS
Chris@39 244
Chris@39 245
Chris@39 246 if test "x$CONFIG_SHELL" != x; then :
Chris@39 247 export CONFIG_SHELL
Chris@39 248 # We cannot yet assume a decent shell, so we have to provide a
Chris@39 249 # neutralization value for shells without unset; and this also
Chris@39 250 # works around shells that cannot unset nonexistent variables.
Chris@39 251 # Preserve -v and -x to the replacement shell.
Chris@39 252 BASH_ENV=/dev/null
Chris@39 253 ENV=/dev/null
Chris@39 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
Chris@39 255 case $- in # ((((
Chris@39 256 *v*x* | *x*v* ) as_opts=-vx ;;
Chris@39 257 *v* ) as_opts=-v ;;
Chris@39 258 *x* ) as_opts=-x ;;
Chris@39 259 * ) as_opts= ;;
Chris@39 260 esac
Chris@39 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
Chris@39 262 # Admittedly, this is quite paranoid, since all the known shells bail
Chris@39 263 # out after a failed `exec'.
Chris@39 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
Chris@39 265 exit 255
Chris@39 266 fi
Chris@39 267
Chris@39 268 if test x$as_have_required = xno; then :
Chris@39 269 $as_echo "$0: This script requires a shell more modern than all"
Chris@39 270 $as_echo "$0: the shells that I found on your system."
Chris@39 271 if test x${ZSH_VERSION+set} = xset ; then
Chris@39 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
Chris@39 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
Chris@39 274 else
Chris@39 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
Chris@39 276 $0: including any error possibly output before this
Chris@39 277 $0: message. Then install a modern shell, or manually run
Chris@39 278 $0: the script under such a shell if you do have one."
Chris@39 279 fi
Chris@39 280 exit 1
Chris@39 281 fi
Chris@39 282 fi
Chris@39 283 fi
Chris@39 284 SHELL=${CONFIG_SHELL-/bin/sh}
Chris@39 285 export SHELL
Chris@39 286 # Unset more variables known to interfere with behavior of common tools.
Chris@39 287 CLICOLOR_FORCE= GREP_OPTIONS=
Chris@39 288 unset CLICOLOR_FORCE GREP_OPTIONS
Chris@39 289
Chris@39 290 ## --------------------- ##
Chris@39 291 ## M4sh Shell Functions. ##
Chris@39 292 ## --------------------- ##
Chris@39 293 # as_fn_unset VAR
Chris@39 294 # ---------------
Chris@39 295 # Portably unset VAR.
Chris@39 296 as_fn_unset ()
Chris@39 297 {
Chris@39 298 { eval $1=; unset $1;}
Chris@39 299 }
Chris@39 300 as_unset=as_fn_unset
Chris@39 301
Chris@39 302 # as_fn_set_status STATUS
Chris@39 303 # -----------------------
Chris@39 304 # Set $? to STATUS, without forking.
Chris@39 305 as_fn_set_status ()
Chris@39 306 {
Chris@39 307 return $1
Chris@39 308 } # as_fn_set_status
Chris@39 309
Chris@39 310 # as_fn_exit STATUS
Chris@39 311 # -----------------
Chris@39 312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
Chris@39 313 as_fn_exit ()
Chris@39 314 {
Chris@39 315 set +e
Chris@39 316 as_fn_set_status $1
Chris@39 317 exit $1
Chris@39 318 } # as_fn_exit
Chris@39 319
Chris@39 320 # as_fn_mkdir_p
Chris@39 321 # -------------
Chris@39 322 # Create "$as_dir" as a directory, including parents if necessary.
Chris@39 323 as_fn_mkdir_p ()
Chris@39 324 {
Chris@39 325
Chris@39 326 case $as_dir in #(
Chris@39 327 -*) as_dir=./$as_dir;;
Chris@39 328 esac
Chris@39 329 test -d "$as_dir" || eval $as_mkdir_p || {
Chris@39 330 as_dirs=
Chris@39 331 while :; do
Chris@39 332 case $as_dir in #(
Chris@39 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Chris@39 334 *) as_qdir=$as_dir;;
Chris@39 335 esac
Chris@39 336 as_dirs="'$as_qdir' $as_dirs"
Chris@39 337 as_dir=`$as_dirname -- "$as_dir" ||
Chris@39 338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@39 339 X"$as_dir" : 'X\(//\)[^/]' \| \
Chris@39 340 X"$as_dir" : 'X\(//\)$' \| \
Chris@39 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Chris@39 342 $as_echo X"$as_dir" |
Chris@39 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@39 344 s//\1/
Chris@39 345 q
Chris@39 346 }
Chris@39 347 /^X\(\/\/\)[^/].*/{
Chris@39 348 s//\1/
Chris@39 349 q
Chris@39 350 }
Chris@39 351 /^X\(\/\/\)$/{
Chris@39 352 s//\1/
Chris@39 353 q
Chris@39 354 }
Chris@39 355 /^X\(\/\).*/{
Chris@39 356 s//\1/
Chris@39 357 q
Chris@39 358 }
Chris@39 359 s/.*/./; q'`
Chris@39 360 test -d "$as_dir" && break
Chris@39 361 done
Chris@39 362 test -z "$as_dirs" || eval "mkdir $as_dirs"
Chris@39 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Chris@39 364
Chris@39 365
Chris@39 366 } # as_fn_mkdir_p
Chris@39 367
Chris@39 368 # as_fn_executable_p FILE
Chris@39 369 # -----------------------
Chris@39 370 # Test if FILE is an executable regular file.
Chris@39 371 as_fn_executable_p ()
Chris@39 372 {
Chris@39 373 test -f "$1" && test -x "$1"
Chris@39 374 } # as_fn_executable_p
Chris@39 375 # as_fn_append VAR VALUE
Chris@39 376 # ----------------------
Chris@39 377 # Append the text in VALUE to the end of the definition contained in VAR. Take
Chris@39 378 # advantage of any shell optimizations that allow amortized linear growth over
Chris@39 379 # repeated appends, instead of the typical quadratic growth present in naive
Chris@39 380 # implementations.
Chris@39 381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
Chris@39 382 eval 'as_fn_append ()
Chris@39 383 {
Chris@39 384 eval $1+=\$2
Chris@39 385 }'
Chris@39 386 else
Chris@39 387 as_fn_append ()
Chris@39 388 {
Chris@39 389 eval $1=\$$1\$2
Chris@39 390 }
Chris@39 391 fi # as_fn_append
Chris@39 392
Chris@39 393 # as_fn_arith ARG...
Chris@39 394 # ------------------
Chris@39 395 # Perform arithmetic evaluation on the ARGs, and store the result in the
Chris@39 396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
Chris@39 397 # must be portable across $(()) and expr.
Chris@39 398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
Chris@39 399 eval 'as_fn_arith ()
Chris@39 400 {
Chris@39 401 as_val=$(( $* ))
Chris@39 402 }'
Chris@39 403 else
Chris@39 404 as_fn_arith ()
Chris@39 405 {
Chris@39 406 as_val=`expr "$@" || test $? -eq 1`
Chris@39 407 }
Chris@39 408 fi # as_fn_arith
Chris@39 409
Chris@39 410
Chris@39 411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
Chris@39 412 # ----------------------------------------
Chris@39 413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
Chris@39 414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Chris@39 415 # script with STATUS, using 1 if that was 0.
Chris@39 416 as_fn_error ()
Chris@39 417 {
Chris@39 418 as_status=$1; test $as_status -eq 0 && as_status=1
Chris@39 419 if test "$4"; then
Chris@39 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@39 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Chris@39 422 fi
Chris@39 423 $as_echo "$as_me: error: $2" >&2
Chris@39 424 as_fn_exit $as_status
Chris@39 425 } # as_fn_error
Chris@39 426
Chris@39 427 if expr a : '\(a\)' >/dev/null 2>&1 &&
Chris@39 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Chris@39 429 as_expr=expr
Chris@39 430 else
Chris@39 431 as_expr=false
Chris@39 432 fi
Chris@39 433
Chris@39 434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Chris@39 435 as_basename=basename
Chris@39 436 else
Chris@39 437 as_basename=false
Chris@39 438 fi
Chris@39 439
Chris@39 440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
Chris@39 441 as_dirname=dirname
Chris@39 442 else
Chris@39 443 as_dirname=false
Chris@39 444 fi
Chris@39 445
Chris@39 446 as_me=`$as_basename -- "$0" ||
Chris@39 447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
Chris@39 448 X"$0" : 'X\(//\)$' \| \
Chris@39 449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Chris@39 450 $as_echo X/"$0" |
Chris@39 451 sed '/^.*\/\([^/][^/]*\)\/*$/{
Chris@39 452 s//\1/
Chris@39 453 q
Chris@39 454 }
Chris@39 455 /^X\/\(\/\/\)$/{
Chris@39 456 s//\1/
Chris@39 457 q
Chris@39 458 }
Chris@39 459 /^X\/\(\/\).*/{
Chris@39 460 s//\1/
Chris@39 461 q
Chris@39 462 }
Chris@39 463 s/.*/./; q'`
Chris@39 464
Chris@39 465 # Avoid depending upon Character Ranges.
Chris@39 466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
Chris@39 467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
Chris@39 468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
Chris@39 469 as_cr_digits='0123456789'
Chris@39 470 as_cr_alnum=$as_cr_Letters$as_cr_digits
Chris@39 471
Chris@39 472
Chris@39 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
Chris@39 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
Chris@39 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
Chris@39 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
Chris@39 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Chris@39 478 sed -n '
Chris@39 479 p
Chris@39 480 /[$]LINENO/=
Chris@39 481 ' <$as_myself |
Chris@39 482 sed '
Chris@39 483 s/[$]LINENO.*/&-/
Chris@39 484 t lineno
Chris@39 485 b
Chris@39 486 :lineno
Chris@39 487 N
Chris@39 488 :loop
Chris@39 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Chris@39 490 t loop
Chris@39 491 s/-\n.*//
Chris@39 492 ' >$as_me.lineno &&
Chris@39 493 chmod +x "$as_me.lineno" ||
Chris@39 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Chris@39 495
Chris@39 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
Chris@39 497 # already done that, so ensure we don't try to do so again and fall
Chris@39 498 # in an infinite loop. This has already happened in practice.
Chris@39 499 _as_can_reexec=no; export _as_can_reexec
Chris@39 500 # Don't try to exec as it changes $[0], causing all sort of problems
Chris@39 501 # (the dirname of $[0] is not the place where we might find the
Chris@39 502 # original and so on. Autoconf is especially sensitive to this).
Chris@39 503 . "./$as_me.lineno"
Chris@39 504 # Exit status is that of the last command.
Chris@39 505 exit
Chris@39 506 }
Chris@39 507
Chris@39 508 ECHO_C= ECHO_N= ECHO_T=
Chris@39 509 case `echo -n x` in #(((((
Chris@39 510 -n*)
Chris@39 511 case `echo 'xy\c'` in
Chris@39 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Chris@39 513 xy) ECHO_C='\c';;
Chris@39 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
Chris@39 515 ECHO_T=' ';;
Chris@39 516 esac;;
Chris@39 517 *)
Chris@39 518 ECHO_N='-n';;
Chris@39 519 esac
Chris@39 520
Chris@39 521 rm -f conf$$ conf$$.exe conf$$.file
Chris@39 522 if test -d conf$$.dir; then
Chris@39 523 rm -f conf$$.dir/conf$$.file
Chris@39 524 else
Chris@39 525 rm -f conf$$.dir
Chris@39 526 mkdir conf$$.dir 2>/dev/null
Chris@39 527 fi
Chris@39 528 if (echo >conf$$.file) 2>/dev/null; then
Chris@39 529 if ln -s conf$$.file conf$$ 2>/dev/null; then
Chris@39 530 as_ln_s='ln -s'
Chris@39 531 # ... but there are two gotchas:
Chris@39 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
Chris@39 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Chris@39 534 # In both cases, we have to default to `cp -pR'.
Chris@39 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Chris@39 536 as_ln_s='cp -pR'
Chris@39 537 elif ln conf$$.file conf$$ 2>/dev/null; then
Chris@39 538 as_ln_s=ln
Chris@39 539 else
Chris@39 540 as_ln_s='cp -pR'
Chris@39 541 fi
Chris@39 542 else
Chris@39 543 as_ln_s='cp -pR'
Chris@39 544 fi
Chris@39 545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
Chris@39 546 rmdir conf$$.dir 2>/dev/null
Chris@39 547
Chris@39 548 if mkdir -p . 2>/dev/null; then
Chris@39 549 as_mkdir_p='mkdir -p "$as_dir"'
Chris@39 550 else
Chris@39 551 test -d ./-p && rmdir ./-p
Chris@39 552 as_mkdir_p=false
Chris@39 553 fi
Chris@39 554
Chris@39 555 as_test_x='test -x'
Chris@39 556 as_executable_p=as_fn_executable_p
Chris@39 557
Chris@39 558 # Sed expression to map a string onto a valid CPP name.
Chris@39 559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Chris@39 560
Chris@39 561 # Sed expression to map a string onto a valid variable name.
Chris@39 562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Chris@39 563
Chris@39 564 SHELL=${CONFIG_SHELL-/bin/sh}
Chris@39 565
Chris@39 566
Chris@39 567 test -n "$DJDIR" || exec 7<&0 </dev/null
Chris@39 568 exec 6>&1
Chris@39 569
Chris@39 570 # Name of the host.
Chris@39 571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Chris@39 572 # so uname gets run too.
Chris@39 573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@39 574
Chris@39 575 #
Chris@39 576 # Initializations.
Chris@39 577 #
Chris@39 578 ac_default_prefix=/usr/local
Chris@39 579 ac_clean_files=
Chris@39 580 ac_config_libobj_dir=.
Chris@39 581 LIBOBJS=
Chris@39 582 cross_compiling=no
Chris@39 583 subdirs=
Chris@39 584 MFLAGS=
Chris@39 585 MAKEFLAGS=
Chris@39 586
Chris@39 587 # Identity of this package.
Chris@39 588 PACKAGE_NAME=
Chris@39 589 PACKAGE_TARNAME=
Chris@39 590 PACKAGE_VERSION=
Chris@39 591 PACKAGE_STRING=
Chris@39 592 PACKAGE_BUGREPORT=
Chris@39 593 PACKAGE_URL=
Chris@39 594
Chris@39 595 ac_unique_file="include/portaudio.h"
Chris@39 596 # Factoring default headers for most tests.
Chris@39 597 ac_includes_default="\
Chris@39 598 #include <stdio.h>
Chris@39 599 #ifdef HAVE_SYS_TYPES_H
Chris@39 600 # include <sys/types.h>
Chris@39 601 #endif
Chris@39 602 #ifdef HAVE_SYS_STAT_H
Chris@39 603 # include <sys/stat.h>
Chris@39 604 #endif
Chris@39 605 #ifdef STDC_HEADERS
Chris@39 606 # include <stdlib.h>
Chris@39 607 # include <stddef.h>
Chris@39 608 #else
Chris@39 609 # ifdef HAVE_STDLIB_H
Chris@39 610 # include <stdlib.h>
Chris@39 611 # endif
Chris@39 612 #endif
Chris@39 613 #ifdef HAVE_STRING_H
Chris@39 614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Chris@39 615 # include <memory.h>
Chris@39 616 # endif
Chris@39 617 # include <string.h>
Chris@39 618 #endif
Chris@39 619 #ifdef HAVE_STRINGS_H
Chris@39 620 # include <strings.h>
Chris@39 621 #endif
Chris@39 622 #ifdef HAVE_INTTYPES_H
Chris@39 623 # include <inttypes.h>
Chris@39 624 #endif
Chris@39 625 #ifdef HAVE_STDINT_H
Chris@39 626 # include <stdint.h>
Chris@39 627 #endif
Chris@39 628 #ifdef HAVE_UNISTD_H
Chris@39 629 # include <unistd.h>
Chris@39 630 #endif"
Chris@39 631
Chris@39 632 enable_option_checking=no
Chris@39 633 ac_subst_vars='LTLIBOBJS
Chris@39 634 LIBOBJS
Chris@39 635 WITH_ASIO_FALSE
Chris@39 636 WITH_ASIO_TRUE
Chris@39 637 ENABLE_CXX_FALSE
Chris@39 638 ENABLE_CXX_TRUE
Chris@39 639 subdirs
Chris@39 640 INCLUDES
Chris@39 641 NASMOPT
Chris@39 642 NASM
Chris@39 643 DLL_LIBS
Chris@39 644 THREAD_CFLAGS
Chris@39 645 SHARED_FLAGS
Chris@39 646 PADLL
Chris@39 647 OTHER_OBJS
Chris@39 648 LT_AGE
Chris@39 649 LT_REVISION
Chris@39 650 LT_CURRENT
Chris@39 651 JACK_LIBS
Chris@39 652 JACK_CFLAGS
Chris@39 653 PKG_CONFIG_LIBDIR
Chris@39 654 PKG_CONFIG_PATH
Chris@39 655 PKG_CONFIG
Chris@39 656 INSTALL_DATA
Chris@39 657 INSTALL_SCRIPT
Chris@39 658 INSTALL_PROGRAM
Chris@39 659 CXXCPP
Chris@39 660 CPP
Chris@39 661 OTOOL64
Chris@39 662 OTOOL
Chris@39 663 LIPO
Chris@39 664 NMEDIT
Chris@39 665 DSYMUTIL
Chris@39 666 MANIFEST_TOOL
Chris@39 667 AWK
Chris@39 668 RANLIB
Chris@39 669 STRIP
Chris@39 670 ac_ct_AR
Chris@39 671 AR
Chris@39 672 LN_S
Chris@39 673 NM
Chris@39 674 ac_ct_DUMPBIN
Chris@39 675 DUMPBIN
Chris@39 676 LD
Chris@39 677 FGREP
Chris@39 678 EGREP
Chris@39 679 GREP
Chris@39 680 SED
Chris@39 681 LIBTOOL
Chris@39 682 OBJDUMP
Chris@39 683 DLLTOOL
Chris@39 684 AS
Chris@39 685 ac_ct_CXX
Chris@39 686 CXXFLAGS
Chris@39 687 CXX
Chris@39 688 OBJEXT
Chris@39 689 EXEEXT
Chris@39 690 ac_ct_CC
Chris@39 691 CPPFLAGS
Chris@39 692 LDFLAGS
Chris@39 693 CFLAGS
Chris@39 694 CC
Chris@39 695 target_os
Chris@39 696 target_vendor
Chris@39 697 target_cpu
Chris@39 698 target
Chris@39 699 host_os
Chris@39 700 host_vendor
Chris@39 701 host_cpu
Chris@39 702 host
Chris@39 703 build_os
Chris@39 704 build_vendor
Chris@39 705 build_cpu
Chris@39 706 build
Chris@39 707 target_alias
Chris@39 708 host_alias
Chris@39 709 build_alias
Chris@39 710 LIBS
Chris@39 711 ECHO_T
Chris@39 712 ECHO_N
Chris@39 713 ECHO_C
Chris@39 714 DEFS
Chris@39 715 mandir
Chris@39 716 localedir
Chris@39 717 libdir
Chris@39 718 psdir
Chris@39 719 pdfdir
Chris@39 720 dvidir
Chris@39 721 htmldir
Chris@39 722 infodir
Chris@39 723 docdir
Chris@39 724 oldincludedir
Chris@39 725 includedir
Chris@39 726 localstatedir
Chris@39 727 sharedstatedir
Chris@39 728 sysconfdir
Chris@39 729 datadir
Chris@39 730 datarootdir
Chris@39 731 libexecdir
Chris@39 732 sbindir
Chris@39 733 bindir
Chris@39 734 program_transform_name
Chris@39 735 prefix
Chris@39 736 exec_prefix
Chris@39 737 PACKAGE_URL
Chris@39 738 PACKAGE_BUGREPORT
Chris@39 739 PACKAGE_STRING
Chris@39 740 PACKAGE_VERSION
Chris@39 741 PACKAGE_TARNAME
Chris@39 742 PACKAGE_NAME
Chris@39 743 PATH_SEPARATOR
Chris@39 744 SHELL'
Chris@39 745 ac_subst_files=''
Chris@39 746 ac_user_opts='
Chris@39 747 enable_option_checking
Chris@39 748 with_alsa
Chris@39 749 with_jack
Chris@39 750 with_oss
Chris@39 751 with_asihpi
Chris@39 752 with_winapi
Chris@39 753 with_asiodir
Chris@39 754 with_dxdir
Chris@39 755 enable_debug_output
Chris@39 756 enable_cxx
Chris@39 757 enable_mac_debug
Chris@39 758 enable_mac_universal
Chris@39 759 with_host_os
Chris@39 760 enable_shared
Chris@39 761 enable_static
Chris@39 762 with_pic
Chris@39 763 enable_fast_install
Chris@39 764 with_gnu_ld
Chris@39 765 with_sysroot
Chris@39 766 enable_libtool_lock
Chris@39 767 '
Chris@39 768 ac_precious_vars='build_alias
Chris@39 769 host_alias
Chris@39 770 target_alias
Chris@39 771 CC
Chris@39 772 CFLAGS
Chris@39 773 LDFLAGS
Chris@39 774 LIBS
Chris@39 775 CPPFLAGS
Chris@39 776 CXX
Chris@39 777 CXXFLAGS
Chris@39 778 CCC
Chris@39 779 CPP
Chris@39 780 CXXCPP
Chris@39 781 PKG_CONFIG
Chris@39 782 PKG_CONFIG_PATH
Chris@39 783 PKG_CONFIG_LIBDIR
Chris@39 784 JACK_CFLAGS
Chris@39 785 JACK_LIBS'
Chris@39 786 ac_subdirs_all='bindings/cpp'
Chris@39 787
Chris@39 788 # Initialize some variables set by options.
Chris@39 789 ac_init_help=
Chris@39 790 ac_init_version=false
Chris@39 791 ac_unrecognized_opts=
Chris@39 792 ac_unrecognized_sep=
Chris@39 793 # The variables have the same names as the options, with
Chris@39 794 # dashes changed to underlines.
Chris@39 795 cache_file=/dev/null
Chris@39 796 exec_prefix=NONE
Chris@39 797 no_create=
Chris@39 798 no_recursion=
Chris@39 799 prefix=NONE
Chris@39 800 program_prefix=NONE
Chris@39 801 program_suffix=NONE
Chris@39 802 program_transform_name=s,x,x,
Chris@39 803 silent=
Chris@39 804 site=
Chris@39 805 srcdir=
Chris@39 806 verbose=
Chris@39 807 x_includes=NONE
Chris@39 808 x_libraries=NONE
Chris@39 809
Chris@39 810 # Installation directory options.
Chris@39 811 # These are left unexpanded so users can "make install exec_prefix=/foo"
Chris@39 812 # and all the variables that are supposed to be based on exec_prefix
Chris@39 813 # by default will actually change.
Chris@39 814 # Use braces instead of parens because sh, perl, etc. also accept them.
Chris@39 815 # (The list follows the same order as the GNU Coding Standards.)
Chris@39 816 bindir='${exec_prefix}/bin'
Chris@39 817 sbindir='${exec_prefix}/sbin'
Chris@39 818 libexecdir='${exec_prefix}/libexec'
Chris@39 819 datarootdir='${prefix}/share'
Chris@39 820 datadir='${datarootdir}'
Chris@39 821 sysconfdir='${prefix}/etc'
Chris@39 822 sharedstatedir='${prefix}/com'
Chris@39 823 localstatedir='${prefix}/var'
Chris@39 824 includedir='${prefix}/include'
Chris@39 825 oldincludedir='/usr/include'
Chris@39 826 docdir='${datarootdir}/doc/${PACKAGE}'
Chris@39 827 infodir='${datarootdir}/info'
Chris@39 828 htmldir='${docdir}'
Chris@39 829 dvidir='${docdir}'
Chris@39 830 pdfdir='${docdir}'
Chris@39 831 psdir='${docdir}'
Chris@39 832 libdir='${exec_prefix}/lib'
Chris@39 833 localedir='${datarootdir}/locale'
Chris@39 834 mandir='${datarootdir}/man'
Chris@39 835
Chris@39 836 ac_prev=
Chris@39 837 ac_dashdash=
Chris@39 838 for ac_option
Chris@39 839 do
Chris@39 840 # If the previous option needs an argument, assign it.
Chris@39 841 if test -n "$ac_prev"; then
Chris@39 842 eval $ac_prev=\$ac_option
Chris@39 843 ac_prev=
Chris@39 844 continue
Chris@39 845 fi
Chris@39 846
Chris@39 847 case $ac_option in
Chris@39 848 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
Chris@39 849 *=) ac_optarg= ;;
Chris@39 850 *) ac_optarg=yes ;;
Chris@39 851 esac
Chris@39 852
Chris@39 853 # Accept the important Cygnus configure options, so we can diagnose typos.
Chris@39 854
Chris@39 855 case $ac_dashdash$ac_option in
Chris@39 856 --)
Chris@39 857 ac_dashdash=yes ;;
Chris@39 858
Chris@39 859 -bindir | --bindir | --bindi | --bind | --bin | --bi)
Chris@39 860 ac_prev=bindir ;;
Chris@39 861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Chris@39 862 bindir=$ac_optarg ;;
Chris@39 863
Chris@39 864 -build | --build | --buil | --bui | --bu)
Chris@39 865 ac_prev=build_alias ;;
Chris@39 866 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Chris@39 867 build_alias=$ac_optarg ;;
Chris@39 868
Chris@39 869 -cache-file | --cache-file | --cache-fil | --cache-fi \
Chris@39 870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
Chris@39 871 ac_prev=cache_file ;;
Chris@39 872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
Chris@39 873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Chris@39 874 cache_file=$ac_optarg ;;
Chris@39 875
Chris@39 876 --config-cache | -C)
Chris@39 877 cache_file=config.cache ;;
Chris@39 878
Chris@39 879 -datadir | --datadir | --datadi | --datad)
Chris@39 880 ac_prev=datadir ;;
Chris@39 881 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Chris@39 882 datadir=$ac_optarg ;;
Chris@39 883
Chris@39 884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
Chris@39 885 | --dataroo | --dataro | --datar)
Chris@39 886 ac_prev=datarootdir ;;
Chris@39 887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
Chris@39 888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
Chris@39 889 datarootdir=$ac_optarg ;;
Chris@39 890
Chris@39 891 -disable-* | --disable-*)
Chris@39 892 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Chris@39 893 # Reject names that are not valid shell variable names.
Chris@39 894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@39 895 as_fn_error $? "invalid feature name: $ac_useropt"
Chris@39 896 ac_useropt_orig=$ac_useropt
Chris@39 897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@39 898 case $ac_user_opts in
Chris@39 899 *"
Chris@39 900 "enable_$ac_useropt"
Chris@39 901 "*) ;;
Chris@39 902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
Chris@39 903 ac_unrecognized_sep=', ';;
Chris@39 904 esac
Chris@39 905 eval enable_$ac_useropt=no ;;
Chris@39 906
Chris@39 907 -docdir | --docdir | --docdi | --doc | --do)
Chris@39 908 ac_prev=docdir ;;
Chris@39 909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
Chris@39 910 docdir=$ac_optarg ;;
Chris@39 911
Chris@39 912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
Chris@39 913 ac_prev=dvidir ;;
Chris@39 914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
Chris@39 915 dvidir=$ac_optarg ;;
Chris@39 916
Chris@39 917 -enable-* | --enable-*)
Chris@39 918 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Chris@39 919 # Reject names that are not valid shell variable names.
Chris@39 920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@39 921 as_fn_error $? "invalid feature name: $ac_useropt"
Chris@39 922 ac_useropt_orig=$ac_useropt
Chris@39 923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@39 924 case $ac_user_opts in
Chris@39 925 *"
Chris@39 926 "enable_$ac_useropt"
Chris@39 927 "*) ;;
Chris@39 928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
Chris@39 929 ac_unrecognized_sep=', ';;
Chris@39 930 esac
Chris@39 931 eval enable_$ac_useropt=\$ac_optarg ;;
Chris@39 932
Chris@39 933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
Chris@39 934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
Chris@39 935 | --exec | --exe | --ex)
Chris@39 936 ac_prev=exec_prefix ;;
Chris@39 937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
Chris@39 938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
Chris@39 939 | --exec=* | --exe=* | --ex=*)
Chris@39 940 exec_prefix=$ac_optarg ;;
Chris@39 941
Chris@39 942 -gas | --gas | --ga | --g)
Chris@39 943 # Obsolete; use --with-gas.
Chris@39 944 with_gas=yes ;;
Chris@39 945
Chris@39 946 -help | --help | --hel | --he | -h)
Chris@39 947 ac_init_help=long ;;
Chris@39 948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
Chris@39 949 ac_init_help=recursive ;;
Chris@39 950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
Chris@39 951 ac_init_help=short ;;
Chris@39 952
Chris@39 953 -host | --host | --hos | --ho)
Chris@39 954 ac_prev=host_alias ;;
Chris@39 955 -host=* | --host=* | --hos=* | --ho=*)
Chris@39 956 host_alias=$ac_optarg ;;
Chris@39 957
Chris@39 958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
Chris@39 959 ac_prev=htmldir ;;
Chris@39 960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
Chris@39 961 | --ht=*)
Chris@39 962 htmldir=$ac_optarg ;;
Chris@39 963
Chris@39 964 -includedir | --includedir | --includedi | --included | --include \
Chris@39 965 | --includ | --inclu | --incl | --inc)
Chris@39 966 ac_prev=includedir ;;
Chris@39 967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
Chris@39 968 | --includ=* | --inclu=* | --incl=* | --inc=*)
Chris@39 969 includedir=$ac_optarg ;;
Chris@39 970
Chris@39 971 -infodir | --infodir | --infodi | --infod | --info | --inf)
Chris@39 972 ac_prev=infodir ;;
Chris@39 973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Chris@39 974 infodir=$ac_optarg ;;
Chris@39 975
Chris@39 976 -libdir | --libdir | --libdi | --libd)
Chris@39 977 ac_prev=libdir ;;
Chris@39 978 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Chris@39 979 libdir=$ac_optarg ;;
Chris@39 980
Chris@39 981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
Chris@39 982 | --libexe | --libex | --libe)
Chris@39 983 ac_prev=libexecdir ;;
Chris@39 984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
Chris@39 985 | --libexe=* | --libex=* | --libe=*)
Chris@39 986 libexecdir=$ac_optarg ;;
Chris@39 987
Chris@39 988 -localedir | --localedir | --localedi | --localed | --locale)
Chris@39 989 ac_prev=localedir ;;
Chris@39 990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
Chris@39 991 localedir=$ac_optarg ;;
Chris@39 992
Chris@39 993 -localstatedir | --localstatedir | --localstatedi | --localstated \
Chris@39 994 | --localstate | --localstat | --localsta | --localst | --locals)
Chris@39 995 ac_prev=localstatedir ;;
Chris@39 996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Chris@39 997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Chris@39 998 localstatedir=$ac_optarg ;;
Chris@39 999
Chris@39 1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
Chris@39 1001 ac_prev=mandir ;;
Chris@39 1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Chris@39 1003 mandir=$ac_optarg ;;
Chris@39 1004
Chris@39 1005 -nfp | --nfp | --nf)
Chris@39 1006 # Obsolete; use --without-fp.
Chris@39 1007 with_fp=no ;;
Chris@39 1008
Chris@39 1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Chris@39 1010 | --no-cr | --no-c | -n)
Chris@39 1011 no_create=yes ;;
Chris@39 1012
Chris@39 1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
Chris@39 1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
Chris@39 1015 no_recursion=yes ;;
Chris@39 1016
Chris@39 1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
Chris@39 1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
Chris@39 1019 | --oldin | --oldi | --old | --ol | --o)
Chris@39 1020 ac_prev=oldincludedir ;;
Chris@39 1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
Chris@39 1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
Chris@39 1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Chris@39 1024 oldincludedir=$ac_optarg ;;
Chris@39 1025
Chris@39 1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
Chris@39 1027 ac_prev=prefix ;;
Chris@39 1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Chris@39 1029 prefix=$ac_optarg ;;
Chris@39 1030
Chris@39 1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \
Chris@39 1032 | --program-pre | --program-pr | --program-p)
Chris@39 1033 ac_prev=program_prefix ;;
Chris@39 1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \
Chris@39 1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Chris@39 1036 program_prefix=$ac_optarg ;;
Chris@39 1037
Chris@39 1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \
Chris@39 1039 | --program-suf | --program-su | --program-s)
Chris@39 1040 ac_prev=program_suffix ;;
Chris@39 1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \
Chris@39 1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Chris@39 1043 program_suffix=$ac_optarg ;;
Chris@39 1044
Chris@39 1045 -program-transform-name | --program-transform-name \
Chris@39 1046 | --program-transform-nam | --program-transform-na \
Chris@39 1047 | --program-transform-n | --program-transform- \
Chris@39 1048 | --program-transform | --program-transfor \
Chris@39 1049 | --program-transfo | --program-transf \
Chris@39 1050 | --program-trans | --program-tran \
Chris@39 1051 | --progr-tra | --program-tr | --program-t)
Chris@39 1052 ac_prev=program_transform_name ;;
Chris@39 1053 -program-transform-name=* | --program-transform-name=* \
Chris@39 1054 | --program-transform-nam=* | --program-transform-na=* \
Chris@39 1055 | --program-transform-n=* | --program-transform-=* \
Chris@39 1056 | --program-transform=* | --program-transfor=* \
Chris@39 1057 | --program-transfo=* | --program-transf=* \
Chris@39 1058 | --program-trans=* | --program-tran=* \
Chris@39 1059 | --progr-tra=* | --program-tr=* | --program-t=*)
Chris@39 1060 program_transform_name=$ac_optarg ;;
Chris@39 1061
Chris@39 1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
Chris@39 1063 ac_prev=pdfdir ;;
Chris@39 1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
Chris@39 1065 pdfdir=$ac_optarg ;;
Chris@39 1066
Chris@39 1067 -psdir | --psdir | --psdi | --psd | --ps)
Chris@39 1068 ac_prev=psdir ;;
Chris@39 1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
Chris@39 1070 psdir=$ac_optarg ;;
Chris@39 1071
Chris@39 1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@39 1073 | -silent | --silent | --silen | --sile | --sil)
Chris@39 1074 silent=yes ;;
Chris@39 1075
Chris@39 1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
Chris@39 1077 ac_prev=sbindir ;;
Chris@39 1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
Chris@39 1079 | --sbi=* | --sb=*)
Chris@39 1080 sbindir=$ac_optarg ;;
Chris@39 1081
Chris@39 1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \
Chris@39 1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
Chris@39 1084 | --sharedst | --shareds | --shared | --share | --shar \
Chris@39 1085 | --sha | --sh)
Chris@39 1086 ac_prev=sharedstatedir ;;
Chris@39 1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
Chris@39 1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
Chris@39 1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
Chris@39 1090 | --sha=* | --sh=*)
Chris@39 1091 sharedstatedir=$ac_optarg ;;
Chris@39 1092
Chris@39 1093 -site | --site | --sit)
Chris@39 1094 ac_prev=site ;;
Chris@39 1095 -site=* | --site=* | --sit=*)
Chris@39 1096 site=$ac_optarg ;;
Chris@39 1097
Chris@39 1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
Chris@39 1099 ac_prev=srcdir ;;
Chris@39 1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Chris@39 1101 srcdir=$ac_optarg ;;
Chris@39 1102
Chris@39 1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
Chris@39 1104 | --syscon | --sysco | --sysc | --sys | --sy)
Chris@39 1105 ac_prev=sysconfdir ;;
Chris@39 1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
Chris@39 1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Chris@39 1108 sysconfdir=$ac_optarg ;;
Chris@39 1109
Chris@39 1110 -target | --target | --targe | --targ | --tar | --ta | --t)
Chris@39 1111 ac_prev=target_alias ;;
Chris@39 1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Chris@39 1113 target_alias=$ac_optarg ;;
Chris@39 1114
Chris@39 1115 -v | -verbose | --verbose | --verbos | --verbo | --verb)
Chris@39 1116 verbose=yes ;;
Chris@39 1117
Chris@39 1118 -version | --version | --versio | --versi | --vers | -V)
Chris@39 1119 ac_init_version=: ;;
Chris@39 1120
Chris@39 1121 -with-* | --with-*)
Chris@39 1122 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Chris@39 1123 # Reject names that are not valid shell variable names.
Chris@39 1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@39 1125 as_fn_error $? "invalid package name: $ac_useropt"
Chris@39 1126 ac_useropt_orig=$ac_useropt
Chris@39 1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@39 1128 case $ac_user_opts in
Chris@39 1129 *"
Chris@39 1130 "with_$ac_useropt"
Chris@39 1131 "*) ;;
Chris@39 1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
Chris@39 1133 ac_unrecognized_sep=', ';;
Chris@39 1134 esac
Chris@39 1135 eval with_$ac_useropt=\$ac_optarg ;;
Chris@39 1136
Chris@39 1137 -without-* | --without-*)
Chris@39 1138 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Chris@39 1139 # Reject names that are not valid shell variable names.
Chris@39 1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@39 1141 as_fn_error $? "invalid package name: $ac_useropt"
Chris@39 1142 ac_useropt_orig=$ac_useropt
Chris@39 1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@39 1144 case $ac_user_opts in
Chris@39 1145 *"
Chris@39 1146 "with_$ac_useropt"
Chris@39 1147 "*) ;;
Chris@39 1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
Chris@39 1149 ac_unrecognized_sep=', ';;
Chris@39 1150 esac
Chris@39 1151 eval with_$ac_useropt=no ;;
Chris@39 1152
Chris@39 1153 --x)
Chris@39 1154 # Obsolete; use --with-x.
Chris@39 1155 with_x=yes ;;
Chris@39 1156
Chris@39 1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
Chris@39 1158 | --x-incl | --x-inc | --x-in | --x-i)
Chris@39 1159 ac_prev=x_includes ;;
Chris@39 1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
Chris@39 1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Chris@39 1162 x_includes=$ac_optarg ;;
Chris@39 1163
Chris@39 1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
Chris@39 1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
Chris@39 1166 ac_prev=x_libraries ;;
Chris@39 1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
Chris@39 1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Chris@39 1169 x_libraries=$ac_optarg ;;
Chris@39 1170
Chris@39 1171 -*) as_fn_error $? "unrecognized option: \`$ac_option'
Chris@39 1172 Try \`$0 --help' for more information"
Chris@39 1173 ;;
Chris@39 1174
Chris@39 1175 *=*)
Chris@39 1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
Chris@39 1177 # Reject names that are not valid shell variable names.
Chris@39 1178 case $ac_envvar in #(
Chris@39 1179 '' | [0-9]* | *[!_$as_cr_alnum]* )
Chris@39 1180 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Chris@39 1181 esac
Chris@39 1182 eval $ac_envvar=\$ac_optarg
Chris@39 1183 export $ac_envvar ;;
Chris@39 1184
Chris@39 1185 *)
Chris@39 1186 # FIXME: should be removed in autoconf 3.0.
Chris@39 1187 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Chris@39 1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Chris@39 1189 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Chris@39 1190 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Chris@39 1191 ;;
Chris@39 1192
Chris@39 1193 esac
Chris@39 1194 done
Chris@39 1195
Chris@39 1196 if test -n "$ac_prev"; then
Chris@39 1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Chris@39 1198 as_fn_error $? "missing argument to $ac_option"
Chris@39 1199 fi
Chris@39 1200
Chris@39 1201 if test -n "$ac_unrecognized_opts"; then
Chris@39 1202 case $enable_option_checking in
Chris@39 1203 no) ;;
Chris@39 1204 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Chris@39 1205 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Chris@39 1206 esac
Chris@39 1207 fi
Chris@39 1208
Chris@39 1209 # Check all directory arguments for consistency.
Chris@39 1210 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
Chris@39 1211 datadir sysconfdir sharedstatedir localstatedir includedir \
Chris@39 1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Chris@39 1213 libdir localedir mandir
Chris@39 1214 do
Chris@39 1215 eval ac_val=\$$ac_var
Chris@39 1216 # Remove trailing slashes.
Chris@39 1217 case $ac_val in
Chris@39 1218 */ )
Chris@39 1219 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
Chris@39 1220 eval $ac_var=\$ac_val;;
Chris@39 1221 esac
Chris@39 1222 # Be sure to have absolute directory names.
Chris@39 1223 case $ac_val in
Chris@39 1224 [\\/$]* | ?:[\\/]* ) continue;;
Chris@39 1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Chris@39 1226 esac
Chris@39 1227 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Chris@39 1228 done
Chris@39 1229
Chris@39 1230 # There might be people who depend on the old broken behavior: `$host'
Chris@39 1231 # used to hold the argument of --host etc.
Chris@39 1232 # FIXME: To remove some day.
Chris@39 1233 build=$build_alias
Chris@39 1234 host=$host_alias
Chris@39 1235 target=$target_alias
Chris@39 1236
Chris@39 1237 # FIXME: To remove some day.
Chris@39 1238 if test "x$host_alias" != x; then
Chris@39 1239 if test "x$build_alias" = x; then
Chris@39 1240 cross_compiling=maybe
Chris@39 1241 elif test "x$build_alias" != "x$host_alias"; then
Chris@39 1242 cross_compiling=yes
Chris@39 1243 fi
Chris@39 1244 fi
Chris@39 1245
Chris@39 1246 ac_tool_prefix=
Chris@39 1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
Chris@39 1248
Chris@39 1249 test "$silent" = yes && exec 6>/dev/null
Chris@39 1250
Chris@39 1251
Chris@39 1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
Chris@39 1253 ac_ls_di=`ls -di .` &&
Chris@39 1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Chris@39 1255 as_fn_error $? "working directory cannot be determined"
Chris@39 1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Chris@39 1257 as_fn_error $? "pwd does not report name of working directory"
Chris@39 1258
Chris@39 1259
Chris@39 1260 # Find the source files, if location was not specified.
Chris@39 1261 if test -z "$srcdir"; then
Chris@39 1262 ac_srcdir_defaulted=yes
Chris@39 1263 # Try the directory containing this script, then the parent directory.
Chris@39 1264 ac_confdir=`$as_dirname -- "$as_myself" ||
Chris@39 1265 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@39 1266 X"$as_myself" : 'X\(//\)[^/]' \| \
Chris@39 1267 X"$as_myself" : 'X\(//\)$' \| \
Chris@39 1268 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
Chris@39 1269 $as_echo X"$as_myself" |
Chris@39 1270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@39 1271 s//\1/
Chris@39 1272 q
Chris@39 1273 }
Chris@39 1274 /^X\(\/\/\)[^/].*/{
Chris@39 1275 s//\1/
Chris@39 1276 q
Chris@39 1277 }
Chris@39 1278 /^X\(\/\/\)$/{
Chris@39 1279 s//\1/
Chris@39 1280 q
Chris@39 1281 }
Chris@39 1282 /^X\(\/\).*/{
Chris@39 1283 s//\1/
Chris@39 1284 q
Chris@39 1285 }
Chris@39 1286 s/.*/./; q'`
Chris@39 1287 srcdir=$ac_confdir
Chris@39 1288 if test ! -r "$srcdir/$ac_unique_file"; then
Chris@39 1289 srcdir=..
Chris@39 1290 fi
Chris@39 1291 else
Chris@39 1292 ac_srcdir_defaulted=no
Chris@39 1293 fi
Chris@39 1294 if test ! -r "$srcdir/$ac_unique_file"; then
Chris@39 1295 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Chris@39 1296 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Chris@39 1297 fi
Chris@39 1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
Chris@39 1299 ac_abs_confdir=`(
Chris@39 1300 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Chris@39 1301 pwd)`
Chris@39 1302 # When building in place, set srcdir=.
Chris@39 1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
Chris@39 1304 srcdir=.
Chris@39 1305 fi
Chris@39 1306 # Remove unnecessary trailing slashes from srcdir.
Chris@39 1307 # Double slashes in file names in object file debugging info
Chris@39 1308 # mess up M-x gdb in Emacs.
Chris@39 1309 case $srcdir in
Chris@39 1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
Chris@39 1311 esac
Chris@39 1312 for ac_var in $ac_precious_vars; do
Chris@39 1313 eval ac_env_${ac_var}_set=\${${ac_var}+set}
Chris@39 1314 eval ac_env_${ac_var}_value=\$${ac_var}
Chris@39 1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
Chris@39 1316 eval ac_cv_env_${ac_var}_value=\$${ac_var}
Chris@39 1317 done
Chris@39 1318
Chris@39 1319 #
Chris@39 1320 # Report the --help message.
Chris@39 1321 #
Chris@39 1322 if test "$ac_init_help" = "long"; then
Chris@39 1323 # Omit some internal or obsolete options to make the list less imposing.
Chris@39 1324 # This message is too long to be a string in the A/UX 3.1 sh.
Chris@39 1325 cat <<_ACEOF
Chris@39 1326 \`configure' configures this package to adapt to many kinds of systems.
Chris@39 1327
Chris@39 1328 Usage: $0 [OPTION]... [VAR=VALUE]...
Chris@39 1329
Chris@39 1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
Chris@39 1331 VAR=VALUE. See below for descriptions of some of the useful variables.
Chris@39 1332
Chris@39 1333 Defaults for the options are specified in brackets.
Chris@39 1334
Chris@39 1335 Configuration:
Chris@39 1336 -h, --help display this help and exit
Chris@39 1337 --help=short display options specific to this package
Chris@39 1338 --help=recursive display the short help of all the included packages
Chris@39 1339 -V, --version display version information and exit
Chris@39 1340 -q, --quiet, --silent do not print \`checking ...' messages
Chris@39 1341 --cache-file=FILE cache test results in FILE [disabled]
Chris@39 1342 -C, --config-cache alias for \`--cache-file=config.cache'
Chris@39 1343 -n, --no-create do not create output files
Chris@39 1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
Chris@39 1345
Chris@39 1346 Installation directories:
Chris@39 1347 --prefix=PREFIX install architecture-independent files in PREFIX
Chris@39 1348 [$ac_default_prefix]
Chris@39 1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Chris@39 1350 [PREFIX]
Chris@39 1351
Chris@39 1352 By default, \`make install' will install all the files in
Chris@39 1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
Chris@39 1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
Chris@39 1355 for instance \`--prefix=\$HOME'.
Chris@39 1356
Chris@39 1357 For better control, use the options below.
Chris@39 1358
Chris@39 1359 Fine tuning of the installation directories:
Chris@39 1360 --bindir=DIR user executables [EPREFIX/bin]
Chris@39 1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
Chris@39 1362 --libexecdir=DIR program executables [EPREFIX/libexec]
Chris@39 1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
Chris@39 1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
Chris@39 1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Chris@39 1366 --libdir=DIR object code libraries [EPREFIX/lib]
Chris@39 1367 --includedir=DIR C header files [PREFIX/include]
Chris@39 1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Chris@39 1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
Chris@39 1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
Chris@39 1371 --infodir=DIR info documentation [DATAROOTDIR/info]
Chris@39 1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
Chris@39 1373 --mandir=DIR man documentation [DATAROOTDIR/man]
Chris@39 1374 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
Chris@39 1375 --htmldir=DIR html documentation [DOCDIR]
Chris@39 1376 --dvidir=DIR dvi documentation [DOCDIR]
Chris@39 1377 --pdfdir=DIR pdf documentation [DOCDIR]
Chris@39 1378 --psdir=DIR ps documentation [DOCDIR]
Chris@39 1379 _ACEOF
Chris@39 1380
Chris@39 1381 cat <<\_ACEOF
Chris@39 1382
Chris@39 1383 System types:
Chris@39 1384 --build=BUILD configure for building on BUILD [guessed]
Chris@39 1385 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Chris@39 1386 --target=TARGET configure for building compilers for TARGET [HOST]
Chris@39 1387 _ACEOF
Chris@39 1388 fi
Chris@39 1389
Chris@39 1390 if test -n "$ac_init_help"; then
Chris@39 1391
Chris@39 1392 cat <<\_ACEOF
Chris@39 1393
Chris@39 1394 Optional Features:
Chris@39 1395 --disable-option-checking ignore unrecognized --enable/--with options
Chris@39 1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
Chris@39 1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Chris@39 1398 --enable-debug-output Enable debug output [no]
Chris@39 1399 --enable-cxx Enable C++ bindings [no]
Chris@39 1400 --enable-mac-debug Enable Mac debug [no]
Chris@39 1401 --enable-mac-universal Build Mac universal binaries [yes]
Chris@39 1402 --enable-shared[=PKGS] build shared libraries [default=yes]
Chris@39 1403 --enable-static[=PKGS] build static libraries [default=yes]
Chris@39 1404 --enable-fast-install[=PKGS]
Chris@39 1405 optimize for fast installation [default=yes]
Chris@39 1406 --disable-libtool-lock avoid locking (might break parallel builds)
Chris@39 1407
Chris@39 1408 Optional Packages:
Chris@39 1409 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
Chris@39 1410 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Chris@39 1411 --with-alsa Enable support for ALSA [autodetect]
Chris@39 1412 --with-jack Enable support for JACK [autodetect]
Chris@39 1413 --with-oss Enable support for OSS [autodetect]
Chris@39 1414 --with-asihpi Enable support for ASIHPI [autodetect]
Chris@39 1415 --with-winapi Select Windows API support
Chris@39 1416 ([wmme|directx|asio|wasapi|wdmks][,...]) [wmme]
Chris@39 1417 --with-asiodir ASIO directory [/usr/local/asiosdk2]
Chris@39 1418 --with-dxdir DirectX directory [/usr/local/dx7sdk]
Chris@39 1419
Chris@39 1420 --with-pic try to use only PIC/non-PIC objects [default=use
Chris@39 1421 both]
Chris@39 1422 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Chris@39 1423 --with-sysroot=DIR Search for dependent libraries within DIR
Chris@39 1424 (or the compiler's sysroot if not specified).
Chris@39 1425
Chris@39 1426 Some influential environment variables:
Chris@39 1427 CC C compiler command
Chris@39 1428 CFLAGS C compiler flags
Chris@39 1429 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
Chris@39 1430 nonstandard directory <lib dir>
Chris@39 1431 LIBS libraries to pass to the linker, e.g. -l<library>
Chris@39 1432 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Chris@39 1433 you have headers in a nonstandard directory <include dir>
Chris@39 1434 CXX C++ compiler command
Chris@39 1435 CXXFLAGS C++ compiler flags
Chris@39 1436 CPP C preprocessor
Chris@39 1437 CXXCPP C++ preprocessor
Chris@39 1438 PKG_CONFIG path to pkg-config utility
Chris@39 1439 PKG_CONFIG_PATH
Chris@39 1440 directories to add to pkg-config's search path
Chris@39 1441 PKG_CONFIG_LIBDIR
Chris@39 1442 path overriding pkg-config's built-in search path
Chris@39 1443 JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
Chris@39 1444 JACK_LIBS linker flags for JACK, overriding pkg-config
Chris@39 1445
Chris@39 1446 Use these variables to override the choices made by `configure' or to help
Chris@39 1447 it to find libraries and programs with nonstandard names/locations.
Chris@39 1448
Chris@39 1449 Report bugs to the package provider.
Chris@39 1450 _ACEOF
Chris@39 1451 ac_status=$?
Chris@39 1452 fi
Chris@39 1453
Chris@39 1454 if test "$ac_init_help" = "recursive"; then
Chris@39 1455 # If there are subdirs, report their specific --help.
Chris@39 1456 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Chris@39 1457 test -d "$ac_dir" ||
Chris@39 1458 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
Chris@39 1459 continue
Chris@39 1460 ac_builddir=.
Chris@39 1461
Chris@39 1462 case "$ac_dir" in
Chris@39 1463 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@39 1464 *)
Chris@39 1465 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Chris@39 1466 # A ".." for each directory in $ac_dir_suffix.
Chris@39 1467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Chris@39 1468 case $ac_top_builddir_sub in
Chris@39 1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@39 1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
Chris@39 1471 esac ;;
Chris@39 1472 esac
Chris@39 1473 ac_abs_top_builddir=$ac_pwd
Chris@39 1474 ac_abs_builddir=$ac_pwd$ac_dir_suffix
Chris@39 1475 # for backward compatibility:
Chris@39 1476 ac_top_builddir=$ac_top_build_prefix
Chris@39 1477
Chris@39 1478 case $srcdir in
Chris@39 1479 .) # We are building in place.
Chris@39 1480 ac_srcdir=.
Chris@39 1481 ac_top_srcdir=$ac_top_builddir_sub
Chris@39 1482 ac_abs_top_srcdir=$ac_pwd ;;
Chris@39 1483 [\\/]* | ?:[\\/]* ) # Absolute name.
Chris@39 1484 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@39 1485 ac_top_srcdir=$srcdir
Chris@39 1486 ac_abs_top_srcdir=$srcdir ;;
Chris@39 1487 *) # Relative name.
Chris@39 1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
Chris@39 1489 ac_top_srcdir=$ac_top_build_prefix$srcdir
Chris@39 1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Chris@39 1491 esac
Chris@39 1492 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Chris@39 1493
Chris@39 1494 cd "$ac_dir" || { ac_status=$?; continue; }
Chris@39 1495 # Check for guested configure.
Chris@39 1496 if test -f "$ac_srcdir/configure.gnu"; then
Chris@39 1497 echo &&
Chris@39 1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
Chris@39 1499 elif test -f "$ac_srcdir/configure"; then
Chris@39 1500 echo &&
Chris@39 1501 $SHELL "$ac_srcdir/configure" --help=recursive
Chris@39 1502 else
Chris@39 1503 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Chris@39 1504 fi || ac_status=$?
Chris@39 1505 cd "$ac_pwd" || { ac_status=$?; break; }
Chris@39 1506 done
Chris@39 1507 fi
Chris@39 1508
Chris@39 1509 test -n "$ac_init_help" && exit $ac_status
Chris@39 1510 if $ac_init_version; then
Chris@39 1511 cat <<\_ACEOF
Chris@39 1512 configure
Chris@39 1513 generated by GNU Autoconf 2.69
Chris@39 1514
Chris@39 1515 Copyright (C) 2012 Free Software Foundation, Inc.
Chris@39 1516 This configure script is free software; the Free Software Foundation
Chris@39 1517 gives unlimited permission to copy, distribute and modify it.
Chris@39 1518 _ACEOF
Chris@39 1519 exit
Chris@39 1520 fi
Chris@39 1521
Chris@39 1522 ## ------------------------ ##
Chris@39 1523 ## Autoconf initialization. ##
Chris@39 1524 ## ------------------------ ##
Chris@39 1525
Chris@39 1526 # ac_fn_c_try_compile LINENO
Chris@39 1527 # --------------------------
Chris@39 1528 # Try to compile conftest.$ac_ext, and return whether this succeeded.
Chris@39 1529 ac_fn_c_try_compile ()
Chris@39 1530 {
Chris@39 1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@39 1532 rm -f conftest.$ac_objext
Chris@39 1533 if { { ac_try="$ac_compile"
Chris@39 1534 case "(($ac_try" in
Chris@39 1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@39 1536 *) ac_try_echo=$ac_try;;
Chris@39 1537 esac
Chris@39 1538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@39 1539 $as_echo "$ac_try_echo"; } >&5
Chris@39 1540 (eval "$ac_compile") 2>conftest.err
Chris@39 1541 ac_status=$?
Chris@39 1542 if test -s conftest.err; then
Chris@39 1543 grep -v '^ *+' conftest.err >conftest.er1
Chris@39 1544 cat conftest.er1 >&5
Chris@39 1545 mv -f conftest.er1 conftest.err
Chris@39 1546 fi
Chris@39 1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 1548 test $ac_status = 0; } && {
Chris@39 1549 test -z "$ac_c_werror_flag" ||
Chris@39 1550 test ! -s conftest.err
Chris@39 1551 } && test -s conftest.$ac_objext; then :
Chris@39 1552 ac_retval=0
Chris@39 1553 else
Chris@39 1554 $as_echo "$as_me: failed program was:" >&5
Chris@39 1555 sed 's/^/| /' conftest.$ac_ext >&5
Chris@39 1556
Chris@39 1557 ac_retval=1
Chris@39 1558 fi
Chris@39 1559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@39 1560 as_fn_set_status $ac_retval
Chris@39 1561
Chris@39 1562 } # ac_fn_c_try_compile
Chris@39 1563
Chris@39 1564 # ac_fn_cxx_try_compile LINENO
Chris@39 1565 # ----------------------------
Chris@39 1566 # Try to compile conftest.$ac_ext, and return whether this succeeded.
Chris@39 1567 ac_fn_cxx_try_compile ()
Chris@39 1568 {
Chris@39 1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@39 1570 rm -f conftest.$ac_objext
Chris@39 1571 if { { ac_try="$ac_compile"
Chris@39 1572 case "(($ac_try" in
Chris@39 1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@39 1574 *) ac_try_echo=$ac_try;;
Chris@39 1575 esac
Chris@39 1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@39 1577 $as_echo "$ac_try_echo"; } >&5
Chris@39 1578 (eval "$ac_compile") 2>conftest.err
Chris@39 1579 ac_status=$?
Chris@39 1580 if test -s conftest.err; then
Chris@39 1581 grep -v '^ *+' conftest.err >conftest.er1
Chris@39 1582 cat conftest.er1 >&5
Chris@39 1583 mv -f conftest.er1 conftest.err
Chris@39 1584 fi
Chris@39 1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 1586 test $ac_status = 0; } && {
Chris@39 1587 test -z "$ac_cxx_werror_flag" ||
Chris@39 1588 test ! -s conftest.err
Chris@39 1589 } && test -s conftest.$ac_objext; then :
Chris@39 1590 ac_retval=0
Chris@39 1591 else
Chris@39 1592 $as_echo "$as_me: failed program was:" >&5
Chris@39 1593 sed 's/^/| /' conftest.$ac_ext >&5
Chris@39 1594
Chris@39 1595 ac_retval=1
Chris@39 1596 fi
Chris@39 1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@39 1598 as_fn_set_status $ac_retval
Chris@39 1599
Chris@39 1600 } # ac_fn_cxx_try_compile
Chris@39 1601
Chris@39 1602 # ac_fn_c_try_link LINENO
Chris@39 1603 # -----------------------
Chris@39 1604 # Try to link conftest.$ac_ext, and return whether this succeeded.
Chris@39 1605 ac_fn_c_try_link ()
Chris@39 1606 {
Chris@39 1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@39 1608 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@39 1609 if { { ac_try="$ac_link"
Chris@39 1610 case "(($ac_try" in
Chris@39 1611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@39 1612 *) ac_try_echo=$ac_try;;
Chris@39 1613 esac
Chris@39 1614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@39 1615 $as_echo "$ac_try_echo"; } >&5
Chris@39 1616 (eval "$ac_link") 2>conftest.err
Chris@39 1617 ac_status=$?
Chris@39 1618 if test -s conftest.err; then
Chris@39 1619 grep -v '^ *+' conftest.err >conftest.er1
Chris@39 1620 cat conftest.er1 >&5
Chris@39 1621 mv -f conftest.er1 conftest.err
Chris@39 1622 fi
Chris@39 1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 1624 test $ac_status = 0; } && {
Chris@39 1625 test -z "$ac_c_werror_flag" ||
Chris@39 1626 test ! -s conftest.err
Chris@39 1627 } && test -s conftest$ac_exeext && {
Chris@39 1628 test "$cross_compiling" = yes ||
Chris@39 1629 test -x conftest$ac_exeext
Chris@39 1630 }; then :
Chris@39 1631 ac_retval=0
Chris@39 1632 else
Chris@39 1633 $as_echo "$as_me: failed program was:" >&5
Chris@39 1634 sed 's/^/| /' conftest.$ac_ext >&5
Chris@39 1635
Chris@39 1636 ac_retval=1
Chris@39 1637 fi
Chris@39 1638 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
Chris@39 1639 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
Chris@39 1640 # interfere with the next link command; also delete a directory that is
Chris@39 1641 # left behind by Apple's compiler. We do this before executing the actions.
Chris@39 1642 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris@39 1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@39 1644 as_fn_set_status $ac_retval
Chris@39 1645
Chris@39 1646 } # ac_fn_c_try_link
Chris@39 1647
Chris@39 1648 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
Chris@39 1649 # -------------------------------------------------------
Chris@39 1650 # Tests whether HEADER exists and can be compiled using the include files in
Chris@39 1651 # INCLUDES, setting the cache variable VAR accordingly.
Chris@39 1652 ac_fn_c_check_header_compile ()
Chris@39 1653 {
Chris@39 1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@39 1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@39 1656 $as_echo_n "checking for $2... " >&6; }
Chris@39 1657 if eval \${$3+:} false; then :
Chris@39 1658 $as_echo_n "(cached) " >&6
Chris@39 1659 else
Chris@39 1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 1661 /* end confdefs.h. */
Chris@39 1662 $4
Chris@39 1663 #include <$2>
Chris@39 1664 _ACEOF
Chris@39 1665 if ac_fn_c_try_compile "$LINENO"; then :
Chris@39 1666 eval "$3=yes"
Chris@39 1667 else
Chris@39 1668 eval "$3=no"
Chris@39 1669 fi
Chris@39 1670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 1671 fi
Chris@39 1672 eval ac_res=\$$3
Chris@39 1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@39 1674 $as_echo "$ac_res" >&6; }
Chris@39 1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@39 1676
Chris@39 1677 } # ac_fn_c_check_header_compile
Chris@39 1678
Chris@39 1679 # ac_fn_c_try_cpp LINENO
Chris@39 1680 # ----------------------
Chris@39 1681 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
Chris@39 1682 ac_fn_c_try_cpp ()
Chris@39 1683 {
Chris@39 1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@39 1685 if { { ac_try="$ac_cpp conftest.$ac_ext"
Chris@39 1686 case "(($ac_try" in
Chris@39 1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@39 1688 *) ac_try_echo=$ac_try;;
Chris@39 1689 esac
Chris@39 1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@39 1691 $as_echo "$ac_try_echo"; } >&5
Chris@39 1692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
Chris@39 1693 ac_status=$?
Chris@39 1694 if test -s conftest.err; then
Chris@39 1695 grep -v '^ *+' conftest.err >conftest.er1
Chris@39 1696 cat conftest.er1 >&5
Chris@39 1697 mv -f conftest.er1 conftest.err
Chris@39 1698 fi
Chris@39 1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 1700 test $ac_status = 0; } > conftest.i && {
Chris@39 1701 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
Chris@39 1702 test ! -s conftest.err
Chris@39 1703 }; then :
Chris@39 1704 ac_retval=0
Chris@39 1705 else
Chris@39 1706 $as_echo "$as_me: failed program was:" >&5
Chris@39 1707 sed 's/^/| /' conftest.$ac_ext >&5
Chris@39 1708
Chris@39 1709 ac_retval=1
Chris@39 1710 fi
Chris@39 1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@39 1712 as_fn_set_status $ac_retval
Chris@39 1713
Chris@39 1714 } # ac_fn_c_try_cpp
Chris@39 1715
Chris@39 1716 # ac_fn_c_try_run LINENO
Chris@39 1717 # ----------------------
Chris@39 1718 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
Chris@39 1719 # that executables *can* be run.
Chris@39 1720 ac_fn_c_try_run ()
Chris@39 1721 {
Chris@39 1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@39 1723 if { { ac_try="$ac_link"
Chris@39 1724 case "(($ac_try" in
Chris@39 1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@39 1726 *) ac_try_echo=$ac_try;;
Chris@39 1727 esac
Chris@39 1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@39 1729 $as_echo "$ac_try_echo"; } >&5
Chris@39 1730 (eval "$ac_link") 2>&5
Chris@39 1731 ac_status=$?
Chris@39 1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 1733 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
Chris@39 1734 { { case "(($ac_try" in
Chris@39 1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@39 1736 *) ac_try_echo=$ac_try;;
Chris@39 1737 esac
Chris@39 1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@39 1739 $as_echo "$ac_try_echo"; } >&5
Chris@39 1740 (eval "$ac_try") 2>&5
Chris@39 1741 ac_status=$?
Chris@39 1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 1743 test $ac_status = 0; }; }; then :
Chris@39 1744 ac_retval=0
Chris@39 1745 else
Chris@39 1746 $as_echo "$as_me: program exited with status $ac_status" >&5
Chris@39 1747 $as_echo "$as_me: failed program was:" >&5
Chris@39 1748 sed 's/^/| /' conftest.$ac_ext >&5
Chris@39 1749
Chris@39 1750 ac_retval=$ac_status
Chris@39 1751 fi
Chris@39 1752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris@39 1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@39 1754 as_fn_set_status $ac_retval
Chris@39 1755
Chris@39 1756 } # ac_fn_c_try_run
Chris@39 1757
Chris@39 1758 # ac_fn_c_check_func LINENO FUNC VAR
Chris@39 1759 # ----------------------------------
Chris@39 1760 # Tests whether FUNC exists, setting the cache variable VAR accordingly
Chris@39 1761 ac_fn_c_check_func ()
Chris@39 1762 {
Chris@39 1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@39 1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@39 1765 $as_echo_n "checking for $2... " >&6; }
Chris@39 1766 if eval \${$3+:} false; then :
Chris@39 1767 $as_echo_n "(cached) " >&6
Chris@39 1768 else
Chris@39 1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 1770 /* end confdefs.h. */
Chris@39 1771 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
Chris@39 1772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
Chris@39 1773 #define $2 innocuous_$2
Chris@39 1774
Chris@39 1775 /* System header to define __stub macros and hopefully few prototypes,
Chris@39 1776 which can conflict with char $2 (); below.
Chris@39 1777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@39 1778 <limits.h> exists even on freestanding compilers. */
Chris@39 1779
Chris@39 1780 #ifdef __STDC__
Chris@39 1781 # include <limits.h>
Chris@39 1782 #else
Chris@39 1783 # include <assert.h>
Chris@39 1784 #endif
Chris@39 1785
Chris@39 1786 #undef $2
Chris@39 1787
Chris@39 1788 /* Override any GCC internal prototype to avoid an error.
Chris@39 1789 Use char because int might match the return type of a GCC
Chris@39 1790 builtin and then its argument prototype would still apply. */
Chris@39 1791 #ifdef __cplusplus
Chris@39 1792 extern "C"
Chris@39 1793 #endif
Chris@39 1794 char $2 ();
Chris@39 1795 /* The GNU C library defines this for functions which it implements
Chris@39 1796 to always fail with ENOSYS. Some functions are actually named
Chris@39 1797 something starting with __ and the normal name is an alias. */
Chris@39 1798 #if defined __stub_$2 || defined __stub___$2
Chris@39 1799 choke me
Chris@39 1800 #endif
Chris@39 1801
Chris@39 1802 int
Chris@39 1803 main ()
Chris@39 1804 {
Chris@39 1805 return $2 ();
Chris@39 1806 ;
Chris@39 1807 return 0;
Chris@39 1808 }
Chris@39 1809 _ACEOF
Chris@39 1810 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 1811 eval "$3=yes"
Chris@39 1812 else
Chris@39 1813 eval "$3=no"
Chris@39 1814 fi
Chris@39 1815 rm -f core conftest.err conftest.$ac_objext \
Chris@39 1816 conftest$ac_exeext conftest.$ac_ext
Chris@39 1817 fi
Chris@39 1818 eval ac_res=\$$3
Chris@39 1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@39 1820 $as_echo "$ac_res" >&6; }
Chris@39 1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@39 1822
Chris@39 1823 } # ac_fn_c_check_func
Chris@39 1824
Chris@39 1825 # ac_fn_cxx_try_cpp LINENO
Chris@39 1826 # ------------------------
Chris@39 1827 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
Chris@39 1828 ac_fn_cxx_try_cpp ()
Chris@39 1829 {
Chris@39 1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@39 1831 if { { ac_try="$ac_cpp conftest.$ac_ext"
Chris@39 1832 case "(($ac_try" in
Chris@39 1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@39 1834 *) ac_try_echo=$ac_try;;
Chris@39 1835 esac
Chris@39 1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@39 1837 $as_echo "$ac_try_echo"; } >&5
Chris@39 1838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
Chris@39 1839 ac_status=$?
Chris@39 1840 if test -s conftest.err; then
Chris@39 1841 grep -v '^ *+' conftest.err >conftest.er1
Chris@39 1842 cat conftest.er1 >&5
Chris@39 1843 mv -f conftest.er1 conftest.err
Chris@39 1844 fi
Chris@39 1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 1846 test $ac_status = 0; } > conftest.i && {
Chris@39 1847 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
Chris@39 1848 test ! -s conftest.err
Chris@39 1849 }; then :
Chris@39 1850 ac_retval=0
Chris@39 1851 else
Chris@39 1852 $as_echo "$as_me: failed program was:" >&5
Chris@39 1853 sed 's/^/| /' conftest.$ac_ext >&5
Chris@39 1854
Chris@39 1855 ac_retval=1
Chris@39 1856 fi
Chris@39 1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@39 1858 as_fn_set_status $ac_retval
Chris@39 1859
Chris@39 1860 } # ac_fn_cxx_try_cpp
Chris@39 1861
Chris@39 1862 # ac_fn_cxx_try_link LINENO
Chris@39 1863 # -------------------------
Chris@39 1864 # Try to link conftest.$ac_ext, and return whether this succeeded.
Chris@39 1865 ac_fn_cxx_try_link ()
Chris@39 1866 {
Chris@39 1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@39 1868 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@39 1869 if { { ac_try="$ac_link"
Chris@39 1870 case "(($ac_try" in
Chris@39 1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@39 1872 *) ac_try_echo=$ac_try;;
Chris@39 1873 esac
Chris@39 1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@39 1875 $as_echo "$ac_try_echo"; } >&5
Chris@39 1876 (eval "$ac_link") 2>conftest.err
Chris@39 1877 ac_status=$?
Chris@39 1878 if test -s conftest.err; then
Chris@39 1879 grep -v '^ *+' conftest.err >conftest.er1
Chris@39 1880 cat conftest.er1 >&5
Chris@39 1881 mv -f conftest.er1 conftest.err
Chris@39 1882 fi
Chris@39 1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 1884 test $ac_status = 0; } && {
Chris@39 1885 test -z "$ac_cxx_werror_flag" ||
Chris@39 1886 test ! -s conftest.err
Chris@39 1887 } && test -s conftest$ac_exeext && {
Chris@39 1888 test "$cross_compiling" = yes ||
Chris@39 1889 test -x conftest$ac_exeext
Chris@39 1890 }; then :
Chris@39 1891 ac_retval=0
Chris@39 1892 else
Chris@39 1893 $as_echo "$as_me: failed program was:" >&5
Chris@39 1894 sed 's/^/| /' conftest.$ac_ext >&5
Chris@39 1895
Chris@39 1896 ac_retval=1
Chris@39 1897 fi
Chris@39 1898 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
Chris@39 1899 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
Chris@39 1900 # interfere with the next link command; also delete a directory that is
Chris@39 1901 # left behind by Apple's compiler. We do this before executing the actions.
Chris@39 1902 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris@39 1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@39 1904 as_fn_set_status $ac_retval
Chris@39 1905
Chris@39 1906 } # ac_fn_cxx_try_link
Chris@39 1907
Chris@39 1908 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
Chris@39 1909 # -------------------------------------------------------
Chris@39 1910 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
Chris@39 1911 # the include files in INCLUDES and setting the cache variable VAR
Chris@39 1912 # accordingly.
Chris@39 1913 ac_fn_c_check_header_mongrel ()
Chris@39 1914 {
Chris@39 1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@39 1916 if eval \${$3+:} false; then :
Chris@39 1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@39 1918 $as_echo_n "checking for $2... " >&6; }
Chris@39 1919 if eval \${$3+:} false; then :
Chris@39 1920 $as_echo_n "(cached) " >&6
Chris@39 1921 fi
Chris@39 1922 eval ac_res=\$$3
Chris@39 1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@39 1924 $as_echo "$ac_res" >&6; }
Chris@39 1925 else
Chris@39 1926 # Is the header compilable?
Chris@39 1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
Chris@39 1928 $as_echo_n "checking $2 usability... " >&6; }
Chris@39 1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 1930 /* end confdefs.h. */
Chris@39 1931 $4
Chris@39 1932 #include <$2>
Chris@39 1933 _ACEOF
Chris@39 1934 if ac_fn_c_try_compile "$LINENO"; then :
Chris@39 1935 ac_header_compiler=yes
Chris@39 1936 else
Chris@39 1937 ac_header_compiler=no
Chris@39 1938 fi
Chris@39 1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
Chris@39 1941 $as_echo "$ac_header_compiler" >&6; }
Chris@39 1942
Chris@39 1943 # Is the header present?
Chris@39 1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
Chris@39 1945 $as_echo_n "checking $2 presence... " >&6; }
Chris@39 1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 1947 /* end confdefs.h. */
Chris@39 1948 #include <$2>
Chris@39 1949 _ACEOF
Chris@39 1950 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@39 1951 ac_header_preproc=yes
Chris@39 1952 else
Chris@39 1953 ac_header_preproc=no
Chris@39 1954 fi
Chris@39 1955 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@39 1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
Chris@39 1957 $as_echo "$ac_header_preproc" >&6; }
Chris@39 1958
Chris@39 1959 # So? What about this header?
Chris@39 1960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
Chris@39 1961 yes:no: )
Chris@39 1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
Chris@39 1963 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
Chris@39 1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
Chris@39 1965 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Chris@39 1966 ;;
Chris@39 1967 no:yes:* )
Chris@39 1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
Chris@39 1969 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
Chris@39 1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
Chris@39 1971 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
Chris@39 1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
Chris@39 1973 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
Chris@39 1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
Chris@39 1975 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
Chris@39 1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
Chris@39 1977 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Chris@39 1978 ;;
Chris@39 1979 esac
Chris@39 1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@39 1981 $as_echo_n "checking for $2... " >&6; }
Chris@39 1982 if eval \${$3+:} false; then :
Chris@39 1983 $as_echo_n "(cached) " >&6
Chris@39 1984 else
Chris@39 1985 eval "$3=\$ac_header_compiler"
Chris@39 1986 fi
Chris@39 1987 eval ac_res=\$$3
Chris@39 1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@39 1989 $as_echo "$ac_res" >&6; }
Chris@39 1990 fi
Chris@39 1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@39 1992
Chris@39 1993 } # ac_fn_c_check_header_mongrel
Chris@39 1994
Chris@39 1995 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
Chris@39 1996 # --------------------------------------------
Chris@39 1997 # Tries to find the compile-time value of EXPR in a program that includes
Chris@39 1998 # INCLUDES, setting VAR accordingly. Returns whether the value could be
Chris@39 1999 # computed
Chris@39 2000 ac_fn_c_compute_int ()
Chris@39 2001 {
Chris@39 2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@39 2003 if test "$cross_compiling" = yes; then
Chris@39 2004 # Depending upon the size, compute the lo and hi bounds.
Chris@39 2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 2006 /* end confdefs.h. */
Chris@39 2007 $4
Chris@39 2008 int
Chris@39 2009 main ()
Chris@39 2010 {
Chris@39 2011 static int test_array [1 - 2 * !(($2) >= 0)];
Chris@39 2012 test_array [0] = 0;
Chris@39 2013 return test_array [0];
Chris@39 2014
Chris@39 2015 ;
Chris@39 2016 return 0;
Chris@39 2017 }
Chris@39 2018 _ACEOF
Chris@39 2019 if ac_fn_c_try_compile "$LINENO"; then :
Chris@39 2020 ac_lo=0 ac_mid=0
Chris@39 2021 while :; do
Chris@39 2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 2023 /* end confdefs.h. */
Chris@39 2024 $4
Chris@39 2025 int
Chris@39 2026 main ()
Chris@39 2027 {
Chris@39 2028 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Chris@39 2029 test_array [0] = 0;
Chris@39 2030 return test_array [0];
Chris@39 2031
Chris@39 2032 ;
Chris@39 2033 return 0;
Chris@39 2034 }
Chris@39 2035 _ACEOF
Chris@39 2036 if ac_fn_c_try_compile "$LINENO"; then :
Chris@39 2037 ac_hi=$ac_mid; break
Chris@39 2038 else
Chris@39 2039 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
Chris@39 2040 if test $ac_lo -le $ac_mid; then
Chris@39 2041 ac_lo= ac_hi=
Chris@39 2042 break
Chris@39 2043 fi
Chris@39 2044 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
Chris@39 2045 fi
Chris@39 2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 2047 done
Chris@39 2048 else
Chris@39 2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 2050 /* end confdefs.h. */
Chris@39 2051 $4
Chris@39 2052 int
Chris@39 2053 main ()
Chris@39 2054 {
Chris@39 2055 static int test_array [1 - 2 * !(($2) < 0)];
Chris@39 2056 test_array [0] = 0;
Chris@39 2057 return test_array [0];
Chris@39 2058
Chris@39 2059 ;
Chris@39 2060 return 0;
Chris@39 2061 }
Chris@39 2062 _ACEOF
Chris@39 2063 if ac_fn_c_try_compile "$LINENO"; then :
Chris@39 2064 ac_hi=-1 ac_mid=-1
Chris@39 2065 while :; do
Chris@39 2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 2067 /* end confdefs.h. */
Chris@39 2068 $4
Chris@39 2069 int
Chris@39 2070 main ()
Chris@39 2071 {
Chris@39 2072 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Chris@39 2073 test_array [0] = 0;
Chris@39 2074 return test_array [0];
Chris@39 2075
Chris@39 2076 ;
Chris@39 2077 return 0;
Chris@39 2078 }
Chris@39 2079 _ACEOF
Chris@39 2080 if ac_fn_c_try_compile "$LINENO"; then :
Chris@39 2081 ac_lo=$ac_mid; break
Chris@39 2082 else
Chris@39 2083 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
Chris@39 2084 if test $ac_mid -le $ac_hi; then
Chris@39 2085 ac_lo= ac_hi=
Chris@39 2086 break
Chris@39 2087 fi
Chris@39 2088 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
Chris@39 2089 fi
Chris@39 2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 2091 done
Chris@39 2092 else
Chris@39 2093 ac_lo= ac_hi=
Chris@39 2094 fi
Chris@39 2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 2096 fi
Chris@39 2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 2098 # Binary search between lo and hi bounds.
Chris@39 2099 while test "x$ac_lo" != "x$ac_hi"; do
Chris@39 2100 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
Chris@39 2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 2102 /* end confdefs.h. */
Chris@39 2103 $4
Chris@39 2104 int
Chris@39 2105 main ()
Chris@39 2106 {
Chris@39 2107 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Chris@39 2108 test_array [0] = 0;
Chris@39 2109 return test_array [0];
Chris@39 2110
Chris@39 2111 ;
Chris@39 2112 return 0;
Chris@39 2113 }
Chris@39 2114 _ACEOF
Chris@39 2115 if ac_fn_c_try_compile "$LINENO"; then :
Chris@39 2116 ac_hi=$ac_mid
Chris@39 2117 else
Chris@39 2118 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
Chris@39 2119 fi
Chris@39 2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 2121 done
Chris@39 2122 case $ac_lo in #((
Chris@39 2123 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
Chris@39 2124 '') ac_retval=1 ;;
Chris@39 2125 esac
Chris@39 2126 else
Chris@39 2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 2128 /* end confdefs.h. */
Chris@39 2129 $4
Chris@39 2130 static long int longval () { return $2; }
Chris@39 2131 static unsigned long int ulongval () { return $2; }
Chris@39 2132 #include <stdio.h>
Chris@39 2133 #include <stdlib.h>
Chris@39 2134 int
Chris@39 2135 main ()
Chris@39 2136 {
Chris@39 2137
Chris@39 2138 FILE *f = fopen ("conftest.val", "w");
Chris@39 2139 if (! f)
Chris@39 2140 return 1;
Chris@39 2141 if (($2) < 0)
Chris@39 2142 {
Chris@39 2143 long int i = longval ();
Chris@39 2144 if (i != ($2))
Chris@39 2145 return 1;
Chris@39 2146 fprintf (f, "%ld", i);
Chris@39 2147 }
Chris@39 2148 else
Chris@39 2149 {
Chris@39 2150 unsigned long int i = ulongval ();
Chris@39 2151 if (i != ($2))
Chris@39 2152 return 1;
Chris@39 2153 fprintf (f, "%lu", i);
Chris@39 2154 }
Chris@39 2155 /* Do not output a trailing newline, as this causes \r\n confusion
Chris@39 2156 on some platforms. */
Chris@39 2157 return ferror (f) || fclose (f) != 0;
Chris@39 2158
Chris@39 2159 ;
Chris@39 2160 return 0;
Chris@39 2161 }
Chris@39 2162 _ACEOF
Chris@39 2163 if ac_fn_c_try_run "$LINENO"; then :
Chris@39 2164 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
Chris@39 2165 else
Chris@39 2166 ac_retval=1
Chris@39 2167 fi
Chris@39 2168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@39 2169 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@39 2170 rm -f conftest.val
Chris@39 2171
Chris@39 2172 fi
Chris@39 2173 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@39 2174 as_fn_set_status $ac_retval
Chris@39 2175
Chris@39 2176 } # ac_fn_c_compute_int
Chris@39 2177 cat >config.log <<_ACEOF
Chris@39 2178 This file contains any messages produced by compilers while
Chris@39 2179 running configure, to aid debugging if configure makes a mistake.
Chris@39 2180
Chris@39 2181 It was created by $as_me, which was
Chris@39 2182 generated by GNU Autoconf 2.69. Invocation command line was
Chris@39 2183
Chris@39 2184 $ $0 $@
Chris@39 2185
Chris@39 2186 _ACEOF
Chris@39 2187 exec 5>>config.log
Chris@39 2188 {
Chris@39 2189 cat <<_ASUNAME
Chris@39 2190 ## --------- ##
Chris@39 2191 ## Platform. ##
Chris@39 2192 ## --------- ##
Chris@39 2193
Chris@39 2194 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@39 2195 uname -m = `(uname -m) 2>/dev/null || echo unknown`
Chris@39 2196 uname -r = `(uname -r) 2>/dev/null || echo unknown`
Chris@39 2197 uname -s = `(uname -s) 2>/dev/null || echo unknown`
Chris@39 2198 uname -v = `(uname -v) 2>/dev/null || echo unknown`
Chris@39 2199
Chris@39 2200 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
Chris@39 2201 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
Chris@39 2202
Chris@39 2203 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
Chris@39 2204 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
Chris@39 2205 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Chris@39 2206 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Chris@39 2207 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
Chris@39 2208 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
Chris@39 2209 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
Chris@39 2210
Chris@39 2211 _ASUNAME
Chris@39 2212
Chris@39 2213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 2214 for as_dir in $PATH
Chris@39 2215 do
Chris@39 2216 IFS=$as_save_IFS
Chris@39 2217 test -z "$as_dir" && as_dir=.
Chris@39 2218 $as_echo "PATH: $as_dir"
Chris@39 2219 done
Chris@39 2220 IFS=$as_save_IFS
Chris@39 2221
Chris@39 2222 } >&5
Chris@39 2223
Chris@39 2224 cat >&5 <<_ACEOF
Chris@39 2225
Chris@39 2226
Chris@39 2227 ## ----------- ##
Chris@39 2228 ## Core tests. ##
Chris@39 2229 ## ----------- ##
Chris@39 2230
Chris@39 2231 _ACEOF
Chris@39 2232
Chris@39 2233
Chris@39 2234 # Keep a trace of the command line.
Chris@39 2235 # Strip out --no-create and --no-recursion so they do not pile up.
Chris@39 2236 # Strip out --silent because we don't want to record it for future runs.
Chris@39 2237 # Also quote any args containing shell meta-characters.
Chris@39 2238 # Make two passes to allow for proper duplicate-argument suppression.
Chris@39 2239 ac_configure_args=
Chris@39 2240 ac_configure_args0=
Chris@39 2241 ac_configure_args1=
Chris@39 2242 ac_must_keep_next=false
Chris@39 2243 for ac_pass in 1 2
Chris@39 2244 do
Chris@39 2245 for ac_arg
Chris@39 2246 do
Chris@39 2247 case $ac_arg in
Chris@39 2248 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
Chris@39 2249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@39 2250 | -silent | --silent | --silen | --sile | --sil)
Chris@39 2251 continue ;;
Chris@39 2252 *\'*)
Chris@39 2253 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@39 2254 esac
Chris@39 2255 case $ac_pass in
Chris@39 2256 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Chris@39 2257 2)
Chris@39 2258 as_fn_append ac_configure_args1 " '$ac_arg'"
Chris@39 2259 if test $ac_must_keep_next = true; then
Chris@39 2260 ac_must_keep_next=false # Got value, back to normal.
Chris@39 2261 else
Chris@39 2262 case $ac_arg in
Chris@39 2263 *=* | --config-cache | -C | -disable-* | --disable-* \
Chris@39 2264 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
Chris@39 2265 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
Chris@39 2266 | -with-* | --with-* | -without-* | --without-* | --x)
Chris@39 2267 case "$ac_configure_args0 " in
Chris@39 2268 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
Chris@39 2269 esac
Chris@39 2270 ;;
Chris@39 2271 -* ) ac_must_keep_next=true ;;
Chris@39 2272 esac
Chris@39 2273 fi
Chris@39 2274 as_fn_append ac_configure_args " '$ac_arg'"
Chris@39 2275 ;;
Chris@39 2276 esac
Chris@39 2277 done
Chris@39 2278 done
Chris@39 2279 { ac_configure_args0=; unset ac_configure_args0;}
Chris@39 2280 { ac_configure_args1=; unset ac_configure_args1;}
Chris@39 2281
Chris@39 2282 # When interrupted or exit'd, cleanup temporary files, and complete
Chris@39 2283 # config.log. We remove comments because anyway the quotes in there
Chris@39 2284 # would cause problems or look ugly.
Chris@39 2285 # WARNING: Use '\'' to represent an apostrophe within the trap.
Chris@39 2286 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Chris@39 2287 trap 'exit_status=$?
Chris@39 2288 # Save into config.log some information that might help in debugging.
Chris@39 2289 {
Chris@39 2290 echo
Chris@39 2291
Chris@39 2292 $as_echo "## ---------------- ##
Chris@39 2293 ## Cache variables. ##
Chris@39 2294 ## ---------------- ##"
Chris@39 2295 echo
Chris@39 2296 # The following way of writing the cache mishandles newlines in values,
Chris@39 2297 (
Chris@39 2298 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
Chris@39 2299 eval ac_val=\$$ac_var
Chris@39 2300 case $ac_val in #(
Chris@39 2301 *${as_nl}*)
Chris@39 2302 case $ac_var in #(
Chris@39 2303 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Chris@39 2304 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Chris@39 2305 esac
Chris@39 2306 case $ac_var in #(
Chris@39 2307 _ | IFS | as_nl) ;; #(
Chris@39 2308 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Chris@39 2309 *) { eval $ac_var=; unset $ac_var;} ;;
Chris@39 2310 esac ;;
Chris@39 2311 esac
Chris@39 2312 done
Chris@39 2313 (set) 2>&1 |
Chris@39 2314 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
Chris@39 2315 *${as_nl}ac_space=\ *)
Chris@39 2316 sed -n \
Chris@39 2317 "s/'\''/'\''\\\\'\'''\''/g;
Chris@39 2318 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
Chris@39 2319 ;; #(
Chris@39 2320 *)
Chris@39 2321 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Chris@39 2322 ;;
Chris@39 2323 esac |
Chris@39 2324 sort
Chris@39 2325 )
Chris@39 2326 echo
Chris@39 2327
Chris@39 2328 $as_echo "## ----------------- ##
Chris@39 2329 ## Output variables. ##
Chris@39 2330 ## ----------------- ##"
Chris@39 2331 echo
Chris@39 2332 for ac_var in $ac_subst_vars
Chris@39 2333 do
Chris@39 2334 eval ac_val=\$$ac_var
Chris@39 2335 case $ac_val in
Chris@39 2336 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Chris@39 2337 esac
Chris@39 2338 $as_echo "$ac_var='\''$ac_val'\''"
Chris@39 2339 done | sort
Chris@39 2340 echo
Chris@39 2341
Chris@39 2342 if test -n "$ac_subst_files"; then
Chris@39 2343 $as_echo "## ------------------- ##
Chris@39 2344 ## File substitutions. ##
Chris@39 2345 ## ------------------- ##"
Chris@39 2346 echo
Chris@39 2347 for ac_var in $ac_subst_files
Chris@39 2348 do
Chris@39 2349 eval ac_val=\$$ac_var
Chris@39 2350 case $ac_val in
Chris@39 2351 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Chris@39 2352 esac
Chris@39 2353 $as_echo "$ac_var='\''$ac_val'\''"
Chris@39 2354 done | sort
Chris@39 2355 echo
Chris@39 2356 fi
Chris@39 2357
Chris@39 2358 if test -s confdefs.h; then
Chris@39 2359 $as_echo "## ----------- ##
Chris@39 2360 ## confdefs.h. ##
Chris@39 2361 ## ----------- ##"
Chris@39 2362 echo
Chris@39 2363 cat confdefs.h
Chris@39 2364 echo
Chris@39 2365 fi
Chris@39 2366 test "$ac_signal" != 0 &&
Chris@39 2367 $as_echo "$as_me: caught signal $ac_signal"
Chris@39 2368 $as_echo "$as_me: exit $exit_status"
Chris@39 2369 } >&5
Chris@39 2370 rm -f core *.core core.conftest.* &&
Chris@39 2371 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Chris@39 2372 exit $exit_status
Chris@39 2373 ' 0
Chris@39 2374 for ac_signal in 1 2 13 15; do
Chris@39 2375 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Chris@39 2376 done
Chris@39 2377 ac_signal=0
Chris@39 2378
Chris@39 2379 # confdefs.h avoids OS command line length limits that DEFS can exceed.
Chris@39 2380 rm -f -r conftest* confdefs.h
Chris@39 2381
Chris@39 2382 $as_echo "/* confdefs.h */" > confdefs.h
Chris@39 2383
Chris@39 2384 # Predefined preprocessor variables.
Chris@39 2385
Chris@39 2386 cat >>confdefs.h <<_ACEOF
Chris@39 2387 #define PACKAGE_NAME "$PACKAGE_NAME"
Chris@39 2388 _ACEOF
Chris@39 2389
Chris@39 2390 cat >>confdefs.h <<_ACEOF
Chris@39 2391 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
Chris@39 2392 _ACEOF
Chris@39 2393
Chris@39 2394 cat >>confdefs.h <<_ACEOF
Chris@39 2395 #define PACKAGE_VERSION "$PACKAGE_VERSION"
Chris@39 2396 _ACEOF
Chris@39 2397
Chris@39 2398 cat >>confdefs.h <<_ACEOF
Chris@39 2399 #define PACKAGE_STRING "$PACKAGE_STRING"
Chris@39 2400 _ACEOF
Chris@39 2401
Chris@39 2402 cat >>confdefs.h <<_ACEOF
Chris@39 2403 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
Chris@39 2404 _ACEOF
Chris@39 2405
Chris@39 2406 cat >>confdefs.h <<_ACEOF
Chris@39 2407 #define PACKAGE_URL "$PACKAGE_URL"
Chris@39 2408 _ACEOF
Chris@39 2409
Chris@39 2410
Chris@39 2411 # Let the site file select an alternate cache file if it wants to.
Chris@39 2412 # Prefer an explicitly selected file to automatically selected ones.
Chris@39 2413 ac_site_file1=NONE
Chris@39 2414 ac_site_file2=NONE
Chris@39 2415 if test -n "$CONFIG_SITE"; then
Chris@39 2416 # We do not want a PATH search for config.site.
Chris@39 2417 case $CONFIG_SITE in #((
Chris@39 2418 -*) ac_site_file1=./$CONFIG_SITE;;
Chris@39 2419 */*) ac_site_file1=$CONFIG_SITE;;
Chris@39 2420 *) ac_site_file1=./$CONFIG_SITE;;
Chris@39 2421 esac
Chris@39 2422 elif test "x$prefix" != xNONE; then
Chris@39 2423 ac_site_file1=$prefix/share/config.site
Chris@39 2424 ac_site_file2=$prefix/etc/config.site
Chris@39 2425 else
Chris@39 2426 ac_site_file1=$ac_default_prefix/share/config.site
Chris@39 2427 ac_site_file2=$ac_default_prefix/etc/config.site
Chris@39 2428 fi
Chris@39 2429 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Chris@39 2430 do
Chris@39 2431 test "x$ac_site_file" = xNONE && continue
Chris@39 2432 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Chris@39 2433 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Chris@39 2434 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
Chris@39 2435 sed 's/^/| /' "$ac_site_file" >&5
Chris@39 2436 . "$ac_site_file" \
Chris@39 2437 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@39 2438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@39 2439 as_fn_error $? "failed to load site script $ac_site_file
Chris@39 2440 See \`config.log' for more details" "$LINENO" 5; }
Chris@39 2441 fi
Chris@39 2442 done
Chris@39 2443
Chris@39 2444 if test -r "$cache_file"; then
Chris@39 2445 # Some versions of bash will fail to source /dev/null (special files
Chris@39 2446 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
Chris@39 2447 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Chris@39 2448 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Chris@39 2449 $as_echo "$as_me: loading cache $cache_file" >&6;}
Chris@39 2450 case $cache_file in
Chris@39 2451 [\\/]* | ?:[\\/]* ) . "$cache_file";;
Chris@39 2452 *) . "./$cache_file";;
Chris@39 2453 esac
Chris@39 2454 fi
Chris@39 2455 else
Chris@39 2456 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Chris@39 2457 $as_echo "$as_me: creating cache $cache_file" >&6;}
Chris@39 2458 >$cache_file
Chris@39 2459 fi
Chris@39 2460
Chris@39 2461 # Check that the precious variables saved in the cache have kept the same
Chris@39 2462 # value.
Chris@39 2463 ac_cache_corrupted=false
Chris@39 2464 for ac_var in $ac_precious_vars; do
Chris@39 2465 eval ac_old_set=\$ac_cv_env_${ac_var}_set
Chris@39 2466 eval ac_new_set=\$ac_env_${ac_var}_set
Chris@39 2467 eval ac_old_val=\$ac_cv_env_${ac_var}_value
Chris@39 2468 eval ac_new_val=\$ac_env_${ac_var}_value
Chris@39 2469 case $ac_old_set,$ac_new_set in
Chris@39 2470 set,)
Chris@39 2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Chris@39 2472 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Chris@39 2473 ac_cache_corrupted=: ;;
Chris@39 2474 ,set)
Chris@39 2475 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
Chris@39 2476 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Chris@39 2477 ac_cache_corrupted=: ;;
Chris@39 2478 ,);;
Chris@39 2479 *)
Chris@39 2480 if test "x$ac_old_val" != "x$ac_new_val"; then
Chris@39 2481 # differences in whitespace do not lead to failure.
Chris@39 2482 ac_old_val_w=`echo x $ac_old_val`
Chris@39 2483 ac_new_val_w=`echo x $ac_new_val`
Chris@39 2484 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Chris@39 2485 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Chris@39 2486 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Chris@39 2487 ac_cache_corrupted=:
Chris@39 2488 else
Chris@39 2489 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Chris@39 2490 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
Chris@39 2491 eval $ac_var=\$ac_old_val
Chris@39 2492 fi
Chris@39 2493 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Chris@39 2494 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Chris@39 2495 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Chris@39 2496 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Chris@39 2497 fi;;
Chris@39 2498 esac
Chris@39 2499 # Pass precious variables to config.status.
Chris@39 2500 if test "$ac_new_set" = set; then
Chris@39 2501 case $ac_new_val in
Chris@39 2502 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@39 2503 *) ac_arg=$ac_var=$ac_new_val ;;
Chris@39 2504 esac
Chris@39 2505 case " $ac_configure_args " in
Chris@39 2506 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Chris@39 2507 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Chris@39 2508 esac
Chris@39 2509 fi
Chris@39 2510 done
Chris@39 2511 if $ac_cache_corrupted; then
Chris@39 2512 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@39 2513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@39 2514 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Chris@39 2515 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Chris@39 2516 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Chris@39 2517 fi
Chris@39 2518 ## -------------------- ##
Chris@39 2519 ## Main body of script. ##
Chris@39 2520 ## -------------------- ##
Chris@39 2521
Chris@39 2522 ac_ext=c
Chris@39 2523 ac_cpp='$CPP $CPPFLAGS'
Chris@39 2524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@39 2525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@39 2526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@39 2527
Chris@39 2528
Chris@39 2529
Chris@39 2530 ac_aux_dir=
Chris@39 2531 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Chris@39 2532 if test -f "$ac_dir/install-sh"; then
Chris@39 2533 ac_aux_dir=$ac_dir
Chris@39 2534 ac_install_sh="$ac_aux_dir/install-sh -c"
Chris@39 2535 break
Chris@39 2536 elif test -f "$ac_dir/install.sh"; then
Chris@39 2537 ac_aux_dir=$ac_dir
Chris@39 2538 ac_install_sh="$ac_aux_dir/install.sh -c"
Chris@39 2539 break
Chris@39 2540 elif test -f "$ac_dir/shtool"; then
Chris@39 2541 ac_aux_dir=$ac_dir
Chris@39 2542 ac_install_sh="$ac_aux_dir/shtool install -c"
Chris@39 2543 break
Chris@39 2544 fi
Chris@39 2545 done
Chris@39 2546 if test -z "$ac_aux_dir"; then
Chris@39 2547 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Chris@39 2548 fi
Chris@39 2549
Chris@39 2550 # These three variables are undocumented and unsupported,
Chris@39 2551 # and are intended to be withdrawn in a future Autoconf release.
Chris@39 2552 # They can cause serious problems if a builder's source tree is in a directory
Chris@39 2553 # whose full name contains unusual characters.
Chris@39 2554 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
Chris@39 2555 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
Chris@39 2556 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
Chris@39 2557
Chris@39 2558
Chris@39 2559 # Make sure we can run config.sub.
Chris@39 2560 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Chris@39 2561 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Chris@39 2562
Chris@39 2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Chris@39 2564 $as_echo_n "checking build system type... " >&6; }
Chris@39 2565 if ${ac_cv_build+:} false; then :
Chris@39 2566 $as_echo_n "(cached) " >&6
Chris@39 2567 else
Chris@39 2568 ac_build_alias=$build_alias
Chris@39 2569 test "x$ac_build_alias" = x &&
Chris@39 2570 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
Chris@39 2571 test "x$ac_build_alias" = x &&
Chris@39 2572 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Chris@39 2573 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Chris@39 2574 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Chris@39 2575
Chris@39 2576 fi
Chris@39 2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Chris@39 2578 $as_echo "$ac_cv_build" >&6; }
Chris@39 2579 case $ac_cv_build in
Chris@39 2580 *-*-*) ;;
Chris@39 2581 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Chris@39 2582 esac
Chris@39 2583 build=$ac_cv_build
Chris@39 2584 ac_save_IFS=$IFS; IFS='-'
Chris@39 2585 set x $ac_cv_build
Chris@39 2586 shift
Chris@39 2587 build_cpu=$1
Chris@39 2588 build_vendor=$2
Chris@39 2589 shift; shift
Chris@39 2590 # Remember, the first character of IFS is used to create $*,
Chris@39 2591 # except with old shells:
Chris@39 2592 build_os=$*
Chris@39 2593 IFS=$ac_save_IFS
Chris@39 2594 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Chris@39 2595
Chris@39 2596
Chris@39 2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Chris@39 2598 $as_echo_n "checking host system type... " >&6; }
Chris@39 2599 if ${ac_cv_host+:} false; then :
Chris@39 2600 $as_echo_n "(cached) " >&6
Chris@39 2601 else
Chris@39 2602 if test "x$host_alias" = x; then
Chris@39 2603 ac_cv_host=$ac_cv_build
Chris@39 2604 else
Chris@39 2605 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Chris@39 2606 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Chris@39 2607 fi
Chris@39 2608
Chris@39 2609 fi
Chris@39 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Chris@39 2611 $as_echo "$ac_cv_host" >&6; }
Chris@39 2612 case $ac_cv_host in
Chris@39 2613 *-*-*) ;;
Chris@39 2614 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Chris@39 2615 esac
Chris@39 2616 host=$ac_cv_host
Chris@39 2617 ac_save_IFS=$IFS; IFS='-'
Chris@39 2618 set x $ac_cv_host
Chris@39 2619 shift
Chris@39 2620 host_cpu=$1
Chris@39 2621 host_vendor=$2
Chris@39 2622 shift; shift
Chris@39 2623 # Remember, the first character of IFS is used to create $*,
Chris@39 2624 # except with old shells:
Chris@39 2625 host_os=$*
Chris@39 2626 IFS=$ac_save_IFS
Chris@39 2627 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Chris@39 2628
Chris@39 2629
Chris@39 2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
Chris@39 2631 $as_echo_n "checking target system type... " >&6; }
Chris@39 2632 if ${ac_cv_target+:} false; then :
Chris@39 2633 $as_echo_n "(cached) " >&6
Chris@39 2634 else
Chris@39 2635 if test "x$target_alias" = x; then
Chris@39 2636 ac_cv_target=$ac_cv_host
Chris@39 2637 else
Chris@39 2638 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Chris@39 2639 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
Chris@39 2640 fi
Chris@39 2641
Chris@39 2642 fi
Chris@39 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
Chris@39 2644 $as_echo "$ac_cv_target" >&6; }
Chris@39 2645 case $ac_cv_target in
Chris@39 2646 *-*-*) ;;
Chris@39 2647 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
Chris@39 2648 esac
Chris@39 2649 target=$ac_cv_target
Chris@39 2650 ac_save_IFS=$IFS; IFS='-'
Chris@39 2651 set x $ac_cv_target
Chris@39 2652 shift
Chris@39 2653 target_cpu=$1
Chris@39 2654 target_vendor=$2
Chris@39 2655 shift; shift
Chris@39 2656 # Remember, the first character of IFS is used to create $*,
Chris@39 2657 # except with old shells:
Chris@39 2658 target_os=$*
Chris@39 2659 IFS=$ac_save_IFS
Chris@39 2660 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
Chris@39 2661
Chris@39 2662
Chris@39 2663 # The aliases save the names the user supplied, while $host etc.
Chris@39 2664 # will get canonicalized.
Chris@39 2665 test -n "$target_alias" &&
Chris@39 2666 test "$program_prefix$program_suffix$program_transform_name" = \
Chris@39 2667 NONENONEs,x,x, &&
Chris@39 2668 program_prefix=${target_alias}-
Chris@39 2669
Chris@39 2670
Chris@39 2671
Chris@39 2672 # Check whether --with-alsa was given.
Chris@39 2673 if test "${with_alsa+set}" = set; then :
Chris@39 2674 withval=$with_alsa; with_alsa=$withval
Chris@39 2675 fi
Chris@39 2676
Chris@39 2677
Chris@39 2678
Chris@39 2679 # Check whether --with-jack was given.
Chris@39 2680 if test "${with_jack+set}" = set; then :
Chris@39 2681 withval=$with_jack; with_jack=$withval
Chris@39 2682 fi
Chris@39 2683
Chris@39 2684
Chris@39 2685
Chris@39 2686 # Check whether --with-oss was given.
Chris@39 2687 if test "${with_oss+set}" = set; then :
Chris@39 2688 withval=$with_oss; with_oss=$withval
Chris@39 2689 fi
Chris@39 2690
Chris@39 2691
Chris@39 2692
Chris@39 2693 # Check whether --with-asihpi was given.
Chris@39 2694 if test "${with_asihpi+set}" = set; then :
Chris@39 2695 withval=$with_asihpi; with_asihpi=$withval
Chris@39 2696 fi
Chris@39 2697
Chris@39 2698
Chris@39 2699
Chris@39 2700 # Check whether --with-winapi was given.
Chris@39 2701 if test "${with_winapi+set}" = set; then :
Chris@39 2702 withval=$with_winapi; with_winapi=$withval
Chris@39 2703 else
Chris@39 2704 with_winapi="wmme"
Chris@39 2705 fi
Chris@39 2706
Chris@39 2707 case "$target_os" in *mingw* | *cygwin*)
Chris@39 2708 with_wmme=no
Chris@39 2709 with_directx=no
Chris@39 2710 with_asio=no
Chris@39 2711 with_wasapi=no
Chris@39 2712 with_wdmks=no
Chris@39 2713 for api in $(echo $with_winapi | sed 's/,/ /g'); do
Chris@39 2714 case "$api" in
Chris@39 2715 wmme|directx|asio|wasapi|wdmks)
Chris@39 2716 eval with_$api=yes
Chris@39 2717 ;;
Chris@39 2718 *)
Chris@39 2719 as_fn_error $? "unknown Windows API \"$api\" (do you need --help?)" "$LINENO" 5
Chris@39 2720 ;;
Chris@39 2721 esac
Chris@39 2722 done
Chris@39 2723 ;;
Chris@39 2724 esac
Chris@39 2725
Chris@39 2726
Chris@39 2727 # Check whether --with-asiodir was given.
Chris@39 2728 if test "${with_asiodir+set}" = set; then :
Chris@39 2729 withval=$with_asiodir; with_asiodir=$withval
Chris@39 2730 else
Chris@39 2731 with_asiodir="/usr/local/asiosdk2"
Chris@39 2732 fi
Chris@39 2733
Chris@39 2734
Chris@39 2735
Chris@39 2736 # Check whether --with-dxdir was given.
Chris@39 2737 if test "${with_dxdir+set}" = set; then :
Chris@39 2738 withval=$with_dxdir; with_dxdir=$withval
Chris@39 2739 else
Chris@39 2740 with_dxdir="/usr/local/dx7sdk"
Chris@39 2741 fi
Chris@39 2742
Chris@39 2743
Chris@39 2744 debug_output=no
Chris@39 2745 # Check whether --enable-debug-output was given.
Chris@39 2746 if test "${enable_debug_output+set}" = set; then :
Chris@39 2747 enableval=$enable_debug_output; if test "x$enableval" != "xno" ; then
Chris@39 2748
Chris@39 2749 $as_echo "#define PA_ENABLE_DEBUG_OUTPUT /**/" >>confdefs.h
Chris@39 2750
Chris@39 2751 debug_output=yes
Chris@39 2752 fi
Chris@39 2753
Chris@39 2754 fi
Chris@39 2755
Chris@39 2756
Chris@39 2757 # Check whether --enable-cxx was given.
Chris@39 2758 if test "${enable_cxx+set}" = set; then :
Chris@39 2759 enableval=$enable_cxx; enable_cxx=$enableval
Chris@39 2760 else
Chris@39 2761 enable_cxx="no"
Chris@39 2762 fi
Chris@39 2763
Chris@39 2764
Chris@39 2765 # Check whether --enable-mac-debug was given.
Chris@39 2766 if test "${enable_mac_debug+set}" = set; then :
Chris@39 2767 enableval=$enable_mac_debug; enable_mac_debug=$enableval
Chris@39 2768 else
Chris@39 2769 enable_mac_debug="no"
Chris@39 2770 fi
Chris@39 2771
Chris@39 2772
Chris@39 2773 # Check whether --enable-mac-universal was given.
Chris@39 2774 if test "${enable_mac_universal+set}" = set; then :
Chris@39 2775 enableval=$enable_mac_universal; enable_mac_universal=$enableval
Chris@39 2776 else
Chris@39 2777 enable_mac_universal="yes"
Chris@39 2778 fi
Chris@39 2779
Chris@39 2780
Chris@39 2781
Chris@39 2782 # Check whether --with-host_os was given.
Chris@39 2783 if test "${with_host_os+set}" = set; then :
Chris@39 2784 withval=$with_host_os; host_os=$withval
Chris@39 2785 fi
Chris@39 2786
Chris@39 2787
Chris@39 2788
Chris@39 2789 ac_ext=c
Chris@39 2790 ac_cpp='$CPP $CPPFLAGS'
Chris@39 2791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@39 2792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@39 2793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@39 2794 if test -n "$ac_tool_prefix"; then
Chris@39 2795 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
Chris@39 2796 set dummy ${ac_tool_prefix}gcc; ac_word=$2
Chris@39 2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 2798 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 2799 if ${ac_cv_prog_CC+:} false; then :
Chris@39 2800 $as_echo_n "(cached) " >&6
Chris@39 2801 else
Chris@39 2802 if test -n "$CC"; then
Chris@39 2803 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@39 2804 else
Chris@39 2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 2806 for as_dir in $PATH
Chris@39 2807 do
Chris@39 2808 IFS=$as_save_IFS
Chris@39 2809 test -z "$as_dir" && as_dir=.
Chris@39 2810 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 2811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 2812 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Chris@39 2813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 2814 break 2
Chris@39 2815 fi
Chris@39 2816 done
Chris@39 2817 done
Chris@39 2818 IFS=$as_save_IFS
Chris@39 2819
Chris@39 2820 fi
Chris@39 2821 fi
Chris@39 2822 CC=$ac_cv_prog_CC
Chris@39 2823 if test -n "$CC"; then
Chris@39 2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@39 2825 $as_echo "$CC" >&6; }
Chris@39 2826 else
Chris@39 2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 2828 $as_echo "no" >&6; }
Chris@39 2829 fi
Chris@39 2830
Chris@39 2831
Chris@39 2832 fi
Chris@39 2833 if test -z "$ac_cv_prog_CC"; then
Chris@39 2834 ac_ct_CC=$CC
Chris@39 2835 # Extract the first word of "gcc", so it can be a program name with args.
Chris@39 2836 set dummy gcc; ac_word=$2
Chris@39 2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 2838 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 2839 if ${ac_cv_prog_ac_ct_CC+:} false; then :
Chris@39 2840 $as_echo_n "(cached) " >&6
Chris@39 2841 else
Chris@39 2842 if test -n "$ac_ct_CC"; then
Chris@39 2843 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
Chris@39 2844 else
Chris@39 2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 2846 for as_dir in $PATH
Chris@39 2847 do
Chris@39 2848 IFS=$as_save_IFS
Chris@39 2849 test -z "$as_dir" && as_dir=.
Chris@39 2850 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 2851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 2852 ac_cv_prog_ac_ct_CC="gcc"
Chris@39 2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 2854 break 2
Chris@39 2855 fi
Chris@39 2856 done
Chris@39 2857 done
Chris@39 2858 IFS=$as_save_IFS
Chris@39 2859
Chris@39 2860 fi
Chris@39 2861 fi
Chris@39 2862 ac_ct_CC=$ac_cv_prog_ac_ct_CC
Chris@39 2863 if test -n "$ac_ct_CC"; then
Chris@39 2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Chris@39 2865 $as_echo "$ac_ct_CC" >&6; }
Chris@39 2866 else
Chris@39 2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 2868 $as_echo "no" >&6; }
Chris@39 2869 fi
Chris@39 2870
Chris@39 2871 if test "x$ac_ct_CC" = x; then
Chris@39 2872 CC=""
Chris@39 2873 else
Chris@39 2874 case $cross_compiling:$ac_tool_warned in
Chris@39 2875 yes:)
Chris@39 2876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 2877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 2878 ac_tool_warned=yes ;;
Chris@39 2879 esac
Chris@39 2880 CC=$ac_ct_CC
Chris@39 2881 fi
Chris@39 2882 else
Chris@39 2883 CC="$ac_cv_prog_CC"
Chris@39 2884 fi
Chris@39 2885
Chris@39 2886 if test -z "$CC"; then
Chris@39 2887 if test -n "$ac_tool_prefix"; then
Chris@39 2888 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Chris@39 2889 set dummy ${ac_tool_prefix}cc; ac_word=$2
Chris@39 2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 2891 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 2892 if ${ac_cv_prog_CC+:} false; then :
Chris@39 2893 $as_echo_n "(cached) " >&6
Chris@39 2894 else
Chris@39 2895 if test -n "$CC"; then
Chris@39 2896 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@39 2897 else
Chris@39 2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 2899 for as_dir in $PATH
Chris@39 2900 do
Chris@39 2901 IFS=$as_save_IFS
Chris@39 2902 test -z "$as_dir" && as_dir=.
Chris@39 2903 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 2904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 2905 ac_cv_prog_CC="${ac_tool_prefix}cc"
Chris@39 2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 2907 break 2
Chris@39 2908 fi
Chris@39 2909 done
Chris@39 2910 done
Chris@39 2911 IFS=$as_save_IFS
Chris@39 2912
Chris@39 2913 fi
Chris@39 2914 fi
Chris@39 2915 CC=$ac_cv_prog_CC
Chris@39 2916 if test -n "$CC"; then
Chris@39 2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@39 2918 $as_echo "$CC" >&6; }
Chris@39 2919 else
Chris@39 2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 2921 $as_echo "no" >&6; }
Chris@39 2922 fi
Chris@39 2923
Chris@39 2924
Chris@39 2925 fi
Chris@39 2926 fi
Chris@39 2927 if test -z "$CC"; then
Chris@39 2928 # Extract the first word of "cc", so it can be a program name with args.
Chris@39 2929 set dummy cc; ac_word=$2
Chris@39 2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 2931 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 2932 if ${ac_cv_prog_CC+:} false; then :
Chris@39 2933 $as_echo_n "(cached) " >&6
Chris@39 2934 else
Chris@39 2935 if test -n "$CC"; then
Chris@39 2936 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@39 2937 else
Chris@39 2938 ac_prog_rejected=no
Chris@39 2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 2940 for as_dir in $PATH
Chris@39 2941 do
Chris@39 2942 IFS=$as_save_IFS
Chris@39 2943 test -z "$as_dir" && as_dir=.
Chris@39 2944 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 2945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 2946 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
Chris@39 2947 ac_prog_rejected=yes
Chris@39 2948 continue
Chris@39 2949 fi
Chris@39 2950 ac_cv_prog_CC="cc"
Chris@39 2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 2952 break 2
Chris@39 2953 fi
Chris@39 2954 done
Chris@39 2955 done
Chris@39 2956 IFS=$as_save_IFS
Chris@39 2957
Chris@39 2958 if test $ac_prog_rejected = yes; then
Chris@39 2959 # We found a bogon in the path, so make sure we never use it.
Chris@39 2960 set dummy $ac_cv_prog_CC
Chris@39 2961 shift
Chris@39 2962 if test $# != 0; then
Chris@39 2963 # We chose a different compiler from the bogus one.
Chris@39 2964 # However, it has the same basename, so the bogon will be chosen
Chris@39 2965 # first if we set CC to just the basename; use the full file name.
Chris@39 2966 shift
Chris@39 2967 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Chris@39 2968 fi
Chris@39 2969 fi
Chris@39 2970 fi
Chris@39 2971 fi
Chris@39 2972 CC=$ac_cv_prog_CC
Chris@39 2973 if test -n "$CC"; then
Chris@39 2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@39 2975 $as_echo "$CC" >&6; }
Chris@39 2976 else
Chris@39 2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 2978 $as_echo "no" >&6; }
Chris@39 2979 fi
Chris@39 2980
Chris@39 2981
Chris@39 2982 fi
Chris@39 2983 if test -z "$CC"; then
Chris@39 2984 if test -n "$ac_tool_prefix"; then
Chris@39 2985 for ac_prog in cl.exe
Chris@39 2986 do
Chris@39 2987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@39 2988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@39 2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 2990 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 2991 if ${ac_cv_prog_CC+:} false; then :
Chris@39 2992 $as_echo_n "(cached) " >&6
Chris@39 2993 else
Chris@39 2994 if test -n "$CC"; then
Chris@39 2995 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@39 2996 else
Chris@39 2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 2998 for as_dir in $PATH
Chris@39 2999 do
Chris@39 3000 IFS=$as_save_IFS
Chris@39 3001 test -z "$as_dir" && as_dir=.
Chris@39 3002 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 3003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 3004 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Chris@39 3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 3006 break 2
Chris@39 3007 fi
Chris@39 3008 done
Chris@39 3009 done
Chris@39 3010 IFS=$as_save_IFS
Chris@39 3011
Chris@39 3012 fi
Chris@39 3013 fi
Chris@39 3014 CC=$ac_cv_prog_CC
Chris@39 3015 if test -n "$CC"; then
Chris@39 3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@39 3017 $as_echo "$CC" >&6; }
Chris@39 3018 else
Chris@39 3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 3020 $as_echo "no" >&6; }
Chris@39 3021 fi
Chris@39 3022
Chris@39 3023
Chris@39 3024 test -n "$CC" && break
Chris@39 3025 done
Chris@39 3026 fi
Chris@39 3027 if test -z "$CC"; then
Chris@39 3028 ac_ct_CC=$CC
Chris@39 3029 for ac_prog in cl.exe
Chris@39 3030 do
Chris@39 3031 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@39 3032 set dummy $ac_prog; ac_word=$2
Chris@39 3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 3034 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 3035 if ${ac_cv_prog_ac_ct_CC+:} false; then :
Chris@39 3036 $as_echo_n "(cached) " >&6
Chris@39 3037 else
Chris@39 3038 if test -n "$ac_ct_CC"; then
Chris@39 3039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
Chris@39 3040 else
Chris@39 3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 3042 for as_dir in $PATH
Chris@39 3043 do
Chris@39 3044 IFS=$as_save_IFS
Chris@39 3045 test -z "$as_dir" && as_dir=.
Chris@39 3046 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 3047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 3048 ac_cv_prog_ac_ct_CC="$ac_prog"
Chris@39 3049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 3050 break 2
Chris@39 3051 fi
Chris@39 3052 done
Chris@39 3053 done
Chris@39 3054 IFS=$as_save_IFS
Chris@39 3055
Chris@39 3056 fi
Chris@39 3057 fi
Chris@39 3058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
Chris@39 3059 if test -n "$ac_ct_CC"; then
Chris@39 3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Chris@39 3061 $as_echo "$ac_ct_CC" >&6; }
Chris@39 3062 else
Chris@39 3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 3064 $as_echo "no" >&6; }
Chris@39 3065 fi
Chris@39 3066
Chris@39 3067
Chris@39 3068 test -n "$ac_ct_CC" && break
Chris@39 3069 done
Chris@39 3070
Chris@39 3071 if test "x$ac_ct_CC" = x; then
Chris@39 3072 CC=""
Chris@39 3073 else
Chris@39 3074 case $cross_compiling:$ac_tool_warned in
Chris@39 3075 yes:)
Chris@39 3076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 3077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 3078 ac_tool_warned=yes ;;
Chris@39 3079 esac
Chris@39 3080 CC=$ac_ct_CC
Chris@39 3081 fi
Chris@39 3082 fi
Chris@39 3083
Chris@39 3084 fi
Chris@39 3085
Chris@39 3086
Chris@39 3087 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@39 3088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@39 3089 as_fn_error $? "no acceptable C compiler found in \$PATH
Chris@39 3090 See \`config.log' for more details" "$LINENO" 5; }
Chris@39 3091
Chris@39 3092 # Provide some information about the compiler.
Chris@39 3093 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Chris@39 3094 set X $ac_compile
Chris@39 3095 ac_compiler=$2
Chris@39 3096 for ac_option in --version -v -V -qversion; do
Chris@39 3097 { { ac_try="$ac_compiler $ac_option >&5"
Chris@39 3098 case "(($ac_try" in
Chris@39 3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@39 3100 *) ac_try_echo=$ac_try;;
Chris@39 3101 esac
Chris@39 3102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@39 3103 $as_echo "$ac_try_echo"; } >&5
Chris@39 3104 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Chris@39 3105 ac_status=$?
Chris@39 3106 if test -s conftest.err; then
Chris@39 3107 sed '10a\
Chris@39 3108 ... rest of stderr output deleted ...
Chris@39 3109 10q' conftest.err >conftest.er1
Chris@39 3110 cat conftest.er1 >&5
Chris@39 3111 fi
Chris@39 3112 rm -f conftest.er1 conftest.err
Chris@39 3113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 3114 test $ac_status = 0; }
Chris@39 3115 done
Chris@39 3116
Chris@39 3117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 3118 /* end confdefs.h. */
Chris@39 3119
Chris@39 3120 int
Chris@39 3121 main ()
Chris@39 3122 {
Chris@39 3123
Chris@39 3124 ;
Chris@39 3125 return 0;
Chris@39 3126 }
Chris@39 3127 _ACEOF
Chris@39 3128 ac_clean_files_save=$ac_clean_files
Chris@39 3129 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Chris@39 3130 # Try to create an executable without -o first, disregard a.out.
Chris@39 3131 # It will help us diagnose broken compilers, and finding out an intuition
Chris@39 3132 # of exeext.
Chris@39 3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
Chris@39 3134 $as_echo_n "checking whether the C compiler works... " >&6; }
Chris@39 3135 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Chris@39 3136
Chris@39 3137 # The possible output files:
Chris@39 3138 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
Chris@39 3139
Chris@39 3140 ac_rmfiles=
Chris@39 3141 for ac_file in $ac_files
Chris@39 3142 do
Chris@39 3143 case $ac_file in
Chris@39 3144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Chris@39 3145 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
Chris@39 3146 esac
Chris@39 3147 done
Chris@39 3148 rm -f $ac_rmfiles
Chris@39 3149
Chris@39 3150 if { { ac_try="$ac_link_default"
Chris@39 3151 case "(($ac_try" in
Chris@39 3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@39 3153 *) ac_try_echo=$ac_try;;
Chris@39 3154 esac
Chris@39 3155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@39 3156 $as_echo "$ac_try_echo"; } >&5
Chris@39 3157 (eval "$ac_link_default") 2>&5
Chris@39 3158 ac_status=$?
Chris@39 3159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 3160 test $ac_status = 0; }; then :
Chris@39 3161 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
Chris@39 3162 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
Chris@39 3163 # in a Makefile. We should not override ac_cv_exeext if it was cached,
Chris@39 3164 # so that the user can short-circuit this test for compilers unknown to
Chris@39 3165 # Autoconf.
Chris@39 3166 for ac_file in $ac_files ''
Chris@39 3167 do
Chris@39 3168 test -f "$ac_file" || continue
Chris@39 3169 case $ac_file in
Chris@39 3170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Chris@39 3171 ;;
Chris@39 3172 [ab].out )
Chris@39 3173 # We found the default executable, but exeext='' is most
Chris@39 3174 # certainly right.
Chris@39 3175 break;;
Chris@39 3176 *.* )
Chris@39 3177 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Chris@39 3178 then :; else
Chris@39 3179 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Chris@39 3180 fi
Chris@39 3181 # We set ac_cv_exeext here because the later test for it is not
Chris@39 3182 # safe: cross compilers may not add the suffix if given an `-o'
Chris@39 3183 # argument, so we may need to know it at that point already.
Chris@39 3184 # Even if this section looks crufty: it has the advantage of
Chris@39 3185 # actually working.
Chris@39 3186 break;;
Chris@39 3187 * )
Chris@39 3188 break;;
Chris@39 3189 esac
Chris@39 3190 done
Chris@39 3191 test "$ac_cv_exeext" = no && ac_cv_exeext=
Chris@39 3192
Chris@39 3193 else
Chris@39 3194 ac_file=''
Chris@39 3195 fi
Chris@39 3196 if test -z "$ac_file"; then :
Chris@39 3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 3198 $as_echo "no" >&6; }
Chris@39 3199 $as_echo "$as_me: failed program was:" >&5
Chris@39 3200 sed 's/^/| /' conftest.$ac_ext >&5
Chris@39 3201
Chris@39 3202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@39 3203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@39 3204 as_fn_error 77 "C compiler cannot create executables
Chris@39 3205 See \`config.log' for more details" "$LINENO" 5; }
Chris@39 3206 else
Chris@39 3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@39 3208 $as_echo "yes" >&6; }
Chris@39 3209 fi
Chris@39 3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
Chris@39 3211 $as_echo_n "checking for C compiler default output file name... " >&6; }
Chris@39 3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
Chris@39 3213 $as_echo "$ac_file" >&6; }
Chris@39 3214 ac_exeext=$ac_cv_exeext
Chris@39 3215
Chris@39 3216 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Chris@39 3217 ac_clean_files=$ac_clean_files_save
Chris@39 3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Chris@39 3219 $as_echo_n "checking for suffix of executables... " >&6; }
Chris@39 3220 if { { ac_try="$ac_link"
Chris@39 3221 case "(($ac_try" in
Chris@39 3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@39 3223 *) ac_try_echo=$ac_try;;
Chris@39 3224 esac
Chris@39 3225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@39 3226 $as_echo "$ac_try_echo"; } >&5
Chris@39 3227 (eval "$ac_link") 2>&5
Chris@39 3228 ac_status=$?
Chris@39 3229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 3230 test $ac_status = 0; }; then :
Chris@39 3231 # If both `conftest.exe' and `conftest' are `present' (well, observable)
Chris@39 3232 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
Chris@39 3233 # work properly (i.e., refer to `conftest.exe'), while it won't with
Chris@39 3234 # `rm'.
Chris@39 3235 for ac_file in conftest.exe conftest conftest.*; do
Chris@39 3236 test -f "$ac_file" || continue
Chris@39 3237 case $ac_file in
Chris@39 3238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Chris@39 3239 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Chris@39 3240 break;;
Chris@39 3241 * ) break;;
Chris@39 3242 esac
Chris@39 3243 done
Chris@39 3244 else
Chris@39 3245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@39 3246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@39 3247 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
Chris@39 3248 See \`config.log' for more details" "$LINENO" 5; }
Chris@39 3249 fi
Chris@39 3250 rm -f conftest conftest$ac_cv_exeext
Chris@39 3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Chris@39 3252 $as_echo "$ac_cv_exeext" >&6; }
Chris@39 3253
Chris@39 3254 rm -f conftest.$ac_ext
Chris@39 3255 EXEEXT=$ac_cv_exeext
Chris@39 3256 ac_exeext=$EXEEXT
Chris@39 3257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 3258 /* end confdefs.h. */
Chris@39 3259 #include <stdio.h>
Chris@39 3260 int
Chris@39 3261 main ()
Chris@39 3262 {
Chris@39 3263 FILE *f = fopen ("conftest.out", "w");
Chris@39 3264 return ferror (f) || fclose (f) != 0;
Chris@39 3265
Chris@39 3266 ;
Chris@39 3267 return 0;
Chris@39 3268 }
Chris@39 3269 _ACEOF
Chris@39 3270 ac_clean_files="$ac_clean_files conftest.out"
Chris@39 3271 # Check that the compiler produces executables we can run. If not, either
Chris@39 3272 # the compiler is broken, or we cross compile.
Chris@39 3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
Chris@39 3274 $as_echo_n "checking whether we are cross compiling... " >&6; }
Chris@39 3275 if test "$cross_compiling" != yes; then
Chris@39 3276 { { ac_try="$ac_link"
Chris@39 3277 case "(($ac_try" in
Chris@39 3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@39 3279 *) ac_try_echo=$ac_try;;
Chris@39 3280 esac
Chris@39 3281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@39 3282 $as_echo "$ac_try_echo"; } >&5
Chris@39 3283 (eval "$ac_link") 2>&5
Chris@39 3284 ac_status=$?
Chris@39 3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 3286 test $ac_status = 0; }
Chris@39 3287 if { ac_try='./conftest$ac_cv_exeext'
Chris@39 3288 { { case "(($ac_try" in
Chris@39 3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@39 3290 *) ac_try_echo=$ac_try;;
Chris@39 3291 esac
Chris@39 3292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@39 3293 $as_echo "$ac_try_echo"; } >&5
Chris@39 3294 (eval "$ac_try") 2>&5
Chris@39 3295 ac_status=$?
Chris@39 3296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 3297 test $ac_status = 0; }; }; then
Chris@39 3298 cross_compiling=no
Chris@39 3299 else
Chris@39 3300 if test "$cross_compiling" = maybe; then
Chris@39 3301 cross_compiling=yes
Chris@39 3302 else
Chris@39 3303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@39 3304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@39 3305 as_fn_error $? "cannot run C compiled programs.
Chris@39 3306 If you meant to cross compile, use \`--host'.
Chris@39 3307 See \`config.log' for more details" "$LINENO" 5; }
Chris@39 3308 fi
Chris@39 3309 fi
Chris@39 3310 fi
Chris@39 3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
Chris@39 3312 $as_echo "$cross_compiling" >&6; }
Chris@39 3313
Chris@39 3314 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
Chris@39 3315 ac_clean_files=$ac_clean_files_save
Chris@39 3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Chris@39 3317 $as_echo_n "checking for suffix of object files... " >&6; }
Chris@39 3318 if ${ac_cv_objext+:} false; then :
Chris@39 3319 $as_echo_n "(cached) " >&6
Chris@39 3320 else
Chris@39 3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 3322 /* end confdefs.h. */
Chris@39 3323
Chris@39 3324 int
Chris@39 3325 main ()
Chris@39 3326 {
Chris@39 3327
Chris@39 3328 ;
Chris@39 3329 return 0;
Chris@39 3330 }
Chris@39 3331 _ACEOF
Chris@39 3332 rm -f conftest.o conftest.obj
Chris@39 3333 if { { ac_try="$ac_compile"
Chris@39 3334 case "(($ac_try" in
Chris@39 3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@39 3336 *) ac_try_echo=$ac_try;;
Chris@39 3337 esac
Chris@39 3338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@39 3339 $as_echo "$ac_try_echo"; } >&5
Chris@39 3340 (eval "$ac_compile") 2>&5
Chris@39 3341 ac_status=$?
Chris@39 3342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 3343 test $ac_status = 0; }; then :
Chris@39 3344 for ac_file in conftest.o conftest.obj conftest.*; do
Chris@39 3345 test -f "$ac_file" || continue;
Chris@39 3346 case $ac_file in
Chris@39 3347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Chris@39 3348 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
Chris@39 3349 break;;
Chris@39 3350 esac
Chris@39 3351 done
Chris@39 3352 else
Chris@39 3353 $as_echo "$as_me: failed program was:" >&5
Chris@39 3354 sed 's/^/| /' conftest.$ac_ext >&5
Chris@39 3355
Chris@39 3356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@39 3357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@39 3358 as_fn_error $? "cannot compute suffix of object files: cannot compile
Chris@39 3359 See \`config.log' for more details" "$LINENO" 5; }
Chris@39 3360 fi
Chris@39 3361 rm -f conftest.$ac_cv_objext conftest.$ac_ext
Chris@39 3362 fi
Chris@39 3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Chris@39 3364 $as_echo "$ac_cv_objext" >&6; }
Chris@39 3365 OBJEXT=$ac_cv_objext
Chris@39 3366 ac_objext=$OBJEXT
Chris@39 3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Chris@39 3368 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Chris@39 3369 if ${ac_cv_c_compiler_gnu+:} false; then :
Chris@39 3370 $as_echo_n "(cached) " >&6
Chris@39 3371 else
Chris@39 3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 3373 /* end confdefs.h. */
Chris@39 3374
Chris@39 3375 int
Chris@39 3376 main ()
Chris@39 3377 {
Chris@39 3378 #ifndef __GNUC__
Chris@39 3379 choke me
Chris@39 3380 #endif
Chris@39 3381
Chris@39 3382 ;
Chris@39 3383 return 0;
Chris@39 3384 }
Chris@39 3385 _ACEOF
Chris@39 3386 if ac_fn_c_try_compile "$LINENO"; then :
Chris@39 3387 ac_compiler_gnu=yes
Chris@39 3388 else
Chris@39 3389 ac_compiler_gnu=no
Chris@39 3390 fi
Chris@39 3391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 3392 ac_cv_c_compiler_gnu=$ac_compiler_gnu
Chris@39 3393
Chris@39 3394 fi
Chris@39 3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Chris@39 3396 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
Chris@39 3397 if test $ac_compiler_gnu = yes; then
Chris@39 3398 GCC=yes
Chris@39 3399 else
Chris@39 3400 GCC=
Chris@39 3401 fi
Chris@39 3402 ac_test_CFLAGS=${CFLAGS+set}
Chris@39 3403 ac_save_CFLAGS=$CFLAGS
Chris@39 3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Chris@39 3405 $as_echo_n "checking whether $CC accepts -g... " >&6; }
Chris@39 3406 if ${ac_cv_prog_cc_g+:} false; then :
Chris@39 3407 $as_echo_n "(cached) " >&6
Chris@39 3408 else
Chris@39 3409 ac_save_c_werror_flag=$ac_c_werror_flag
Chris@39 3410 ac_c_werror_flag=yes
Chris@39 3411 ac_cv_prog_cc_g=no
Chris@39 3412 CFLAGS="-g"
Chris@39 3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 3414 /* end confdefs.h. */
Chris@39 3415
Chris@39 3416 int
Chris@39 3417 main ()
Chris@39 3418 {
Chris@39 3419
Chris@39 3420 ;
Chris@39 3421 return 0;
Chris@39 3422 }
Chris@39 3423 _ACEOF
Chris@39 3424 if ac_fn_c_try_compile "$LINENO"; then :
Chris@39 3425 ac_cv_prog_cc_g=yes
Chris@39 3426 else
Chris@39 3427 CFLAGS=""
Chris@39 3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 3429 /* end confdefs.h. */
Chris@39 3430
Chris@39 3431 int
Chris@39 3432 main ()
Chris@39 3433 {
Chris@39 3434
Chris@39 3435 ;
Chris@39 3436 return 0;
Chris@39 3437 }
Chris@39 3438 _ACEOF
Chris@39 3439 if ac_fn_c_try_compile "$LINENO"; then :
Chris@39 3440
Chris@39 3441 else
Chris@39 3442 ac_c_werror_flag=$ac_save_c_werror_flag
Chris@39 3443 CFLAGS="-g"
Chris@39 3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 3445 /* end confdefs.h. */
Chris@39 3446
Chris@39 3447 int
Chris@39 3448 main ()
Chris@39 3449 {
Chris@39 3450
Chris@39 3451 ;
Chris@39 3452 return 0;
Chris@39 3453 }
Chris@39 3454 _ACEOF
Chris@39 3455 if ac_fn_c_try_compile "$LINENO"; then :
Chris@39 3456 ac_cv_prog_cc_g=yes
Chris@39 3457 fi
Chris@39 3458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 3459 fi
Chris@39 3460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 3461 fi
Chris@39 3462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 3463 ac_c_werror_flag=$ac_save_c_werror_flag
Chris@39 3464 fi
Chris@39 3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Chris@39 3466 $as_echo "$ac_cv_prog_cc_g" >&6; }
Chris@39 3467 if test "$ac_test_CFLAGS" = set; then
Chris@39 3468 CFLAGS=$ac_save_CFLAGS
Chris@39 3469 elif test $ac_cv_prog_cc_g = yes; then
Chris@39 3470 if test "$GCC" = yes; then
Chris@39 3471 CFLAGS="-g -O2"
Chris@39 3472 else
Chris@39 3473 CFLAGS="-g"
Chris@39 3474 fi
Chris@39 3475 else
Chris@39 3476 if test "$GCC" = yes; then
Chris@39 3477 CFLAGS="-O2"
Chris@39 3478 else
Chris@39 3479 CFLAGS=
Chris@39 3480 fi
Chris@39 3481 fi
Chris@39 3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Chris@39 3483 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Chris@39 3484 if ${ac_cv_prog_cc_c89+:} false; then :
Chris@39 3485 $as_echo_n "(cached) " >&6
Chris@39 3486 else
Chris@39 3487 ac_cv_prog_cc_c89=no
Chris@39 3488 ac_save_CC=$CC
Chris@39 3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 3490 /* end confdefs.h. */
Chris@39 3491 #include <stdarg.h>
Chris@39 3492 #include <stdio.h>
Chris@39 3493 struct stat;
Chris@39 3494 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
Chris@39 3495 struct buf { int x; };
Chris@39 3496 FILE * (*rcsopen) (struct buf *, struct stat *, int);
Chris@39 3497 static char *e (p, i)
Chris@39 3498 char **p;
Chris@39 3499 int i;
Chris@39 3500 {
Chris@39 3501 return p[i];
Chris@39 3502 }
Chris@39 3503 static char *f (char * (*g) (char **, int), char **p, ...)
Chris@39 3504 {
Chris@39 3505 char *s;
Chris@39 3506 va_list v;
Chris@39 3507 va_start (v,p);
Chris@39 3508 s = g (p, va_arg (v,int));
Chris@39 3509 va_end (v);
Chris@39 3510 return s;
Chris@39 3511 }
Chris@39 3512
Chris@39 3513 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
Chris@39 3514 function prototypes and stuff, but not '\xHH' hex character constants.
Chris@39 3515 These don't provoke an error unfortunately, instead are silently treated
Chris@39 3516 as 'x'. The following induces an error, until -std is added to get
Chris@39 3517 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
Chris@39 3518 array size at least. It's necessary to write '\x00'==0 to get something
Chris@39 3519 that's true only with -std. */
Chris@39 3520 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
Chris@39 3521
Chris@39 3522 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
Chris@39 3523 inside strings and character constants. */
Chris@39 3524 #define FOO(x) 'x'
Chris@39 3525 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
Chris@39 3526
Chris@39 3527 int test (int i, double x);
Chris@39 3528 struct s1 {int (*f) (int a);};
Chris@39 3529 struct s2 {int (*f) (double a);};
Chris@39 3530 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
Chris@39 3531 int argc;
Chris@39 3532 char **argv;
Chris@39 3533 int
Chris@39 3534 main ()
Chris@39 3535 {
Chris@39 3536 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
Chris@39 3537 ;
Chris@39 3538 return 0;
Chris@39 3539 }
Chris@39 3540 _ACEOF
Chris@39 3541 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
Chris@39 3542 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Chris@39 3543 do
Chris@39 3544 CC="$ac_save_CC $ac_arg"
Chris@39 3545 if ac_fn_c_try_compile "$LINENO"; then :
Chris@39 3546 ac_cv_prog_cc_c89=$ac_arg
Chris@39 3547 fi
Chris@39 3548 rm -f core conftest.err conftest.$ac_objext
Chris@39 3549 test "x$ac_cv_prog_cc_c89" != "xno" && break
Chris@39 3550 done
Chris@39 3551 rm -f conftest.$ac_ext
Chris@39 3552 CC=$ac_save_CC
Chris@39 3553
Chris@39 3554 fi
Chris@39 3555 # AC_CACHE_VAL
Chris@39 3556 case "x$ac_cv_prog_cc_c89" in
Chris@39 3557 x)
Chris@39 3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Chris@39 3559 $as_echo "none needed" >&6; } ;;
Chris@39 3560 xno)
Chris@39 3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Chris@39 3562 $as_echo "unsupported" >&6; } ;;
Chris@39 3563 *)
Chris@39 3564 CC="$CC $ac_cv_prog_cc_c89"
Chris@39 3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Chris@39 3566 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Chris@39 3567 esac
Chris@39 3568 if test "x$ac_cv_prog_cc_c89" != xno; then :
Chris@39 3569
Chris@39 3570 fi
Chris@39 3571
Chris@39 3572 ac_ext=c
Chris@39 3573 ac_cpp='$CPP $CPPFLAGS'
Chris@39 3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@39 3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@39 3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@39 3577
Chris@39 3578 if [ "$with_asio" = "yes" ] || [ "$enable_cxx" = "yes" ] ; then
Chris@39 3579 ac_ext=cpp
Chris@39 3580 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@39 3581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@39 3582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@39 3583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@39 3584 if test -z "$CXX"; then
Chris@39 3585 if test -n "$CCC"; then
Chris@39 3586 CXX=$CCC
Chris@39 3587 else
Chris@39 3588 if test -n "$ac_tool_prefix"; then
Chris@39 3589 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Chris@39 3590 do
Chris@39 3591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@39 3592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@39 3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 3594 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 3595 if ${ac_cv_prog_CXX+:} false; then :
Chris@39 3596 $as_echo_n "(cached) " >&6
Chris@39 3597 else
Chris@39 3598 if test -n "$CXX"; then
Chris@39 3599 ac_cv_prog_CXX="$CXX" # Let the user override the test.
Chris@39 3600 else
Chris@39 3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 3602 for as_dir in $PATH
Chris@39 3603 do
Chris@39 3604 IFS=$as_save_IFS
Chris@39 3605 test -z "$as_dir" && as_dir=.
Chris@39 3606 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 3607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 3608 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Chris@39 3609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 3610 break 2
Chris@39 3611 fi
Chris@39 3612 done
Chris@39 3613 done
Chris@39 3614 IFS=$as_save_IFS
Chris@39 3615
Chris@39 3616 fi
Chris@39 3617 fi
Chris@39 3618 CXX=$ac_cv_prog_CXX
Chris@39 3619 if test -n "$CXX"; then
Chris@39 3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
Chris@39 3621 $as_echo "$CXX" >&6; }
Chris@39 3622 else
Chris@39 3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 3624 $as_echo "no" >&6; }
Chris@39 3625 fi
Chris@39 3626
Chris@39 3627
Chris@39 3628 test -n "$CXX" && break
Chris@39 3629 done
Chris@39 3630 fi
Chris@39 3631 if test -z "$CXX"; then
Chris@39 3632 ac_ct_CXX=$CXX
Chris@39 3633 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Chris@39 3634 do
Chris@39 3635 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@39 3636 set dummy $ac_prog; ac_word=$2
Chris@39 3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 3638 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 3639 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
Chris@39 3640 $as_echo_n "(cached) " >&6
Chris@39 3641 else
Chris@39 3642 if test -n "$ac_ct_CXX"; then
Chris@39 3643 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
Chris@39 3644 else
Chris@39 3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 3646 for as_dir in $PATH
Chris@39 3647 do
Chris@39 3648 IFS=$as_save_IFS
Chris@39 3649 test -z "$as_dir" && as_dir=.
Chris@39 3650 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 3651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 3652 ac_cv_prog_ac_ct_CXX="$ac_prog"
Chris@39 3653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 3654 break 2
Chris@39 3655 fi
Chris@39 3656 done
Chris@39 3657 done
Chris@39 3658 IFS=$as_save_IFS
Chris@39 3659
Chris@39 3660 fi
Chris@39 3661 fi
Chris@39 3662 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
Chris@39 3663 if test -n "$ac_ct_CXX"; then
Chris@39 3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
Chris@39 3665 $as_echo "$ac_ct_CXX" >&6; }
Chris@39 3666 else
Chris@39 3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 3668 $as_echo "no" >&6; }
Chris@39 3669 fi
Chris@39 3670
Chris@39 3671
Chris@39 3672 test -n "$ac_ct_CXX" && break
Chris@39 3673 done
Chris@39 3674
Chris@39 3675 if test "x$ac_ct_CXX" = x; then
Chris@39 3676 CXX="g++"
Chris@39 3677 else
Chris@39 3678 case $cross_compiling:$ac_tool_warned in
Chris@39 3679 yes:)
Chris@39 3680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 3681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 3682 ac_tool_warned=yes ;;
Chris@39 3683 esac
Chris@39 3684 CXX=$ac_ct_CXX
Chris@39 3685 fi
Chris@39 3686 fi
Chris@39 3687
Chris@39 3688 fi
Chris@39 3689 fi
Chris@39 3690 # Provide some information about the compiler.
Chris@39 3691 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
Chris@39 3692 set X $ac_compile
Chris@39 3693 ac_compiler=$2
Chris@39 3694 for ac_option in --version -v -V -qversion; do
Chris@39 3695 { { ac_try="$ac_compiler $ac_option >&5"
Chris@39 3696 case "(($ac_try" in
Chris@39 3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@39 3698 *) ac_try_echo=$ac_try;;
Chris@39 3699 esac
Chris@39 3700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@39 3701 $as_echo "$ac_try_echo"; } >&5
Chris@39 3702 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Chris@39 3703 ac_status=$?
Chris@39 3704 if test -s conftest.err; then
Chris@39 3705 sed '10a\
Chris@39 3706 ... rest of stderr output deleted ...
Chris@39 3707 10q' conftest.err >conftest.er1
Chris@39 3708 cat conftest.er1 >&5
Chris@39 3709 fi
Chris@39 3710 rm -f conftest.er1 conftest.err
Chris@39 3711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 3712 test $ac_status = 0; }
Chris@39 3713 done
Chris@39 3714
Chris@39 3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
Chris@39 3716 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
Chris@39 3717 if ${ac_cv_cxx_compiler_gnu+:} false; then :
Chris@39 3718 $as_echo_n "(cached) " >&6
Chris@39 3719 else
Chris@39 3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 3721 /* end confdefs.h. */
Chris@39 3722
Chris@39 3723 int
Chris@39 3724 main ()
Chris@39 3725 {
Chris@39 3726 #ifndef __GNUC__
Chris@39 3727 choke me
Chris@39 3728 #endif
Chris@39 3729
Chris@39 3730 ;
Chris@39 3731 return 0;
Chris@39 3732 }
Chris@39 3733 _ACEOF
Chris@39 3734 if ac_fn_cxx_try_compile "$LINENO"; then :
Chris@39 3735 ac_compiler_gnu=yes
Chris@39 3736 else
Chris@39 3737 ac_compiler_gnu=no
Chris@39 3738 fi
Chris@39 3739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 3740 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
Chris@39 3741
Chris@39 3742 fi
Chris@39 3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
Chris@39 3744 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
Chris@39 3745 if test $ac_compiler_gnu = yes; then
Chris@39 3746 GXX=yes
Chris@39 3747 else
Chris@39 3748 GXX=
Chris@39 3749 fi
Chris@39 3750 ac_test_CXXFLAGS=${CXXFLAGS+set}
Chris@39 3751 ac_save_CXXFLAGS=$CXXFLAGS
Chris@39 3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
Chris@39 3753 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
Chris@39 3754 if ${ac_cv_prog_cxx_g+:} false; then :
Chris@39 3755 $as_echo_n "(cached) " >&6
Chris@39 3756 else
Chris@39 3757 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
Chris@39 3758 ac_cxx_werror_flag=yes
Chris@39 3759 ac_cv_prog_cxx_g=no
Chris@39 3760 CXXFLAGS="-g"
Chris@39 3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 3762 /* end confdefs.h. */
Chris@39 3763
Chris@39 3764 int
Chris@39 3765 main ()
Chris@39 3766 {
Chris@39 3767
Chris@39 3768 ;
Chris@39 3769 return 0;
Chris@39 3770 }
Chris@39 3771 _ACEOF
Chris@39 3772 if ac_fn_cxx_try_compile "$LINENO"; then :
Chris@39 3773 ac_cv_prog_cxx_g=yes
Chris@39 3774 else
Chris@39 3775 CXXFLAGS=""
Chris@39 3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 3777 /* end confdefs.h. */
Chris@39 3778
Chris@39 3779 int
Chris@39 3780 main ()
Chris@39 3781 {
Chris@39 3782
Chris@39 3783 ;
Chris@39 3784 return 0;
Chris@39 3785 }
Chris@39 3786 _ACEOF
Chris@39 3787 if ac_fn_cxx_try_compile "$LINENO"; then :
Chris@39 3788
Chris@39 3789 else
Chris@39 3790 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Chris@39 3791 CXXFLAGS="-g"
Chris@39 3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 3793 /* end confdefs.h. */
Chris@39 3794
Chris@39 3795 int
Chris@39 3796 main ()
Chris@39 3797 {
Chris@39 3798
Chris@39 3799 ;
Chris@39 3800 return 0;
Chris@39 3801 }
Chris@39 3802 _ACEOF
Chris@39 3803 if ac_fn_cxx_try_compile "$LINENO"; then :
Chris@39 3804 ac_cv_prog_cxx_g=yes
Chris@39 3805 fi
Chris@39 3806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 3807 fi
Chris@39 3808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 3809 fi
Chris@39 3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 3811 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Chris@39 3812 fi
Chris@39 3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
Chris@39 3814 $as_echo "$ac_cv_prog_cxx_g" >&6; }
Chris@39 3815 if test "$ac_test_CXXFLAGS" = set; then
Chris@39 3816 CXXFLAGS=$ac_save_CXXFLAGS
Chris@39 3817 elif test $ac_cv_prog_cxx_g = yes; then
Chris@39 3818 if test "$GXX" = yes; then
Chris@39 3819 CXXFLAGS="-g -O2"
Chris@39 3820 else
Chris@39 3821 CXXFLAGS="-g"
Chris@39 3822 fi
Chris@39 3823 else
Chris@39 3824 if test "$GXX" = yes; then
Chris@39 3825 CXXFLAGS="-O2"
Chris@39 3826 else
Chris@39 3827 CXXFLAGS=
Chris@39 3828 fi
Chris@39 3829 fi
Chris@39 3830 ac_ext=c
Chris@39 3831 ac_cpp='$CPP $CPPFLAGS'
Chris@39 3832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@39 3833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@39 3834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@39 3835
Chris@39 3836 fi
Chris@39 3837 enable_win32_dll=yes
Chris@39 3838
Chris@39 3839 case $host in
Chris@39 3840 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
Chris@39 3841 if test -n "$ac_tool_prefix"; then
Chris@39 3842 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
Chris@39 3843 set dummy ${ac_tool_prefix}as; ac_word=$2
Chris@39 3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 3845 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 3846 if ${ac_cv_prog_AS+:} false; then :
Chris@39 3847 $as_echo_n "(cached) " >&6
Chris@39 3848 else
Chris@39 3849 if test -n "$AS"; then
Chris@39 3850 ac_cv_prog_AS="$AS" # Let the user override the test.
Chris@39 3851 else
Chris@39 3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 3853 for as_dir in $PATH
Chris@39 3854 do
Chris@39 3855 IFS=$as_save_IFS
Chris@39 3856 test -z "$as_dir" && as_dir=.
Chris@39 3857 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 3858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 3859 ac_cv_prog_AS="${ac_tool_prefix}as"
Chris@39 3860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 3861 break 2
Chris@39 3862 fi
Chris@39 3863 done
Chris@39 3864 done
Chris@39 3865 IFS=$as_save_IFS
Chris@39 3866
Chris@39 3867 fi
Chris@39 3868 fi
Chris@39 3869 AS=$ac_cv_prog_AS
Chris@39 3870 if test -n "$AS"; then
Chris@39 3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
Chris@39 3872 $as_echo "$AS" >&6; }
Chris@39 3873 else
Chris@39 3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 3875 $as_echo "no" >&6; }
Chris@39 3876 fi
Chris@39 3877
Chris@39 3878
Chris@39 3879 fi
Chris@39 3880 if test -z "$ac_cv_prog_AS"; then
Chris@39 3881 ac_ct_AS=$AS
Chris@39 3882 # Extract the first word of "as", so it can be a program name with args.
Chris@39 3883 set dummy as; ac_word=$2
Chris@39 3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 3885 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 3886 if ${ac_cv_prog_ac_ct_AS+:} false; then :
Chris@39 3887 $as_echo_n "(cached) " >&6
Chris@39 3888 else
Chris@39 3889 if test -n "$ac_ct_AS"; then
Chris@39 3890 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
Chris@39 3891 else
Chris@39 3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 3893 for as_dir in $PATH
Chris@39 3894 do
Chris@39 3895 IFS=$as_save_IFS
Chris@39 3896 test -z "$as_dir" && as_dir=.
Chris@39 3897 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 3898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 3899 ac_cv_prog_ac_ct_AS="as"
Chris@39 3900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 3901 break 2
Chris@39 3902 fi
Chris@39 3903 done
Chris@39 3904 done
Chris@39 3905 IFS=$as_save_IFS
Chris@39 3906
Chris@39 3907 fi
Chris@39 3908 fi
Chris@39 3909 ac_ct_AS=$ac_cv_prog_ac_ct_AS
Chris@39 3910 if test -n "$ac_ct_AS"; then
Chris@39 3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
Chris@39 3912 $as_echo "$ac_ct_AS" >&6; }
Chris@39 3913 else
Chris@39 3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 3915 $as_echo "no" >&6; }
Chris@39 3916 fi
Chris@39 3917
Chris@39 3918 if test "x$ac_ct_AS" = x; then
Chris@39 3919 AS="false"
Chris@39 3920 else
Chris@39 3921 case $cross_compiling:$ac_tool_warned in
Chris@39 3922 yes:)
Chris@39 3923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 3924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 3925 ac_tool_warned=yes ;;
Chris@39 3926 esac
Chris@39 3927 AS=$ac_ct_AS
Chris@39 3928 fi
Chris@39 3929 else
Chris@39 3930 AS="$ac_cv_prog_AS"
Chris@39 3931 fi
Chris@39 3932
Chris@39 3933 if test -n "$ac_tool_prefix"; then
Chris@39 3934 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
Chris@39 3935 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Chris@39 3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 3937 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 3938 if ${ac_cv_prog_DLLTOOL+:} false; then :
Chris@39 3939 $as_echo_n "(cached) " >&6
Chris@39 3940 else
Chris@39 3941 if test -n "$DLLTOOL"; then
Chris@39 3942 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
Chris@39 3943 else
Chris@39 3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 3945 for as_dir in $PATH
Chris@39 3946 do
Chris@39 3947 IFS=$as_save_IFS
Chris@39 3948 test -z "$as_dir" && as_dir=.
Chris@39 3949 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 3950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 3951 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
Chris@39 3952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 3953 break 2
Chris@39 3954 fi
Chris@39 3955 done
Chris@39 3956 done
Chris@39 3957 IFS=$as_save_IFS
Chris@39 3958
Chris@39 3959 fi
Chris@39 3960 fi
Chris@39 3961 DLLTOOL=$ac_cv_prog_DLLTOOL
Chris@39 3962 if test -n "$DLLTOOL"; then
Chris@39 3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
Chris@39 3964 $as_echo "$DLLTOOL" >&6; }
Chris@39 3965 else
Chris@39 3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 3967 $as_echo "no" >&6; }
Chris@39 3968 fi
Chris@39 3969
Chris@39 3970
Chris@39 3971 fi
Chris@39 3972 if test -z "$ac_cv_prog_DLLTOOL"; then
Chris@39 3973 ac_ct_DLLTOOL=$DLLTOOL
Chris@39 3974 # Extract the first word of "dlltool", so it can be a program name with args.
Chris@39 3975 set dummy dlltool; ac_word=$2
Chris@39 3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 3977 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 3978 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
Chris@39 3979 $as_echo_n "(cached) " >&6
Chris@39 3980 else
Chris@39 3981 if test -n "$ac_ct_DLLTOOL"; then
Chris@39 3982 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
Chris@39 3983 else
Chris@39 3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 3985 for as_dir in $PATH
Chris@39 3986 do
Chris@39 3987 IFS=$as_save_IFS
Chris@39 3988 test -z "$as_dir" && as_dir=.
Chris@39 3989 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 3990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 3991 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
Chris@39 3992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 3993 break 2
Chris@39 3994 fi
Chris@39 3995 done
Chris@39 3996 done
Chris@39 3997 IFS=$as_save_IFS
Chris@39 3998
Chris@39 3999 fi
Chris@39 4000 fi
Chris@39 4001 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
Chris@39 4002 if test -n "$ac_ct_DLLTOOL"; then
Chris@39 4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
Chris@39 4004 $as_echo "$ac_ct_DLLTOOL" >&6; }
Chris@39 4005 else
Chris@39 4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 4007 $as_echo "no" >&6; }
Chris@39 4008 fi
Chris@39 4009
Chris@39 4010 if test "x$ac_ct_DLLTOOL" = x; then
Chris@39 4011 DLLTOOL="false"
Chris@39 4012 else
Chris@39 4013 case $cross_compiling:$ac_tool_warned in
Chris@39 4014 yes:)
Chris@39 4015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 4016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 4017 ac_tool_warned=yes ;;
Chris@39 4018 esac
Chris@39 4019 DLLTOOL=$ac_ct_DLLTOOL
Chris@39 4020 fi
Chris@39 4021 else
Chris@39 4022 DLLTOOL="$ac_cv_prog_DLLTOOL"
Chris@39 4023 fi
Chris@39 4024
Chris@39 4025 if test -n "$ac_tool_prefix"; then
Chris@39 4026 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
Chris@39 4027 set dummy ${ac_tool_prefix}objdump; ac_word=$2
Chris@39 4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 4029 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 4030 if ${ac_cv_prog_OBJDUMP+:} false; then :
Chris@39 4031 $as_echo_n "(cached) " >&6
Chris@39 4032 else
Chris@39 4033 if test -n "$OBJDUMP"; then
Chris@39 4034 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
Chris@39 4035 else
Chris@39 4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 4037 for as_dir in $PATH
Chris@39 4038 do
Chris@39 4039 IFS=$as_save_IFS
Chris@39 4040 test -z "$as_dir" && as_dir=.
Chris@39 4041 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 4042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 4043 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Chris@39 4044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 4045 break 2
Chris@39 4046 fi
Chris@39 4047 done
Chris@39 4048 done
Chris@39 4049 IFS=$as_save_IFS
Chris@39 4050
Chris@39 4051 fi
Chris@39 4052 fi
Chris@39 4053 OBJDUMP=$ac_cv_prog_OBJDUMP
Chris@39 4054 if test -n "$OBJDUMP"; then
Chris@39 4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
Chris@39 4056 $as_echo "$OBJDUMP" >&6; }
Chris@39 4057 else
Chris@39 4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 4059 $as_echo "no" >&6; }
Chris@39 4060 fi
Chris@39 4061
Chris@39 4062
Chris@39 4063 fi
Chris@39 4064 if test -z "$ac_cv_prog_OBJDUMP"; then
Chris@39 4065 ac_ct_OBJDUMP=$OBJDUMP
Chris@39 4066 # Extract the first word of "objdump", so it can be a program name with args.
Chris@39 4067 set dummy objdump; ac_word=$2
Chris@39 4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 4069 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 4070 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Chris@39 4071 $as_echo_n "(cached) " >&6
Chris@39 4072 else
Chris@39 4073 if test -n "$ac_ct_OBJDUMP"; then
Chris@39 4074 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
Chris@39 4075 else
Chris@39 4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 4077 for as_dir in $PATH
Chris@39 4078 do
Chris@39 4079 IFS=$as_save_IFS
Chris@39 4080 test -z "$as_dir" && as_dir=.
Chris@39 4081 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 4082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 4083 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Chris@39 4084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 4085 break 2
Chris@39 4086 fi
Chris@39 4087 done
Chris@39 4088 done
Chris@39 4089 IFS=$as_save_IFS
Chris@39 4090
Chris@39 4091 fi
Chris@39 4092 fi
Chris@39 4093 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
Chris@39 4094 if test -n "$ac_ct_OBJDUMP"; then
Chris@39 4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
Chris@39 4096 $as_echo "$ac_ct_OBJDUMP" >&6; }
Chris@39 4097 else
Chris@39 4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 4099 $as_echo "no" >&6; }
Chris@39 4100 fi
Chris@39 4101
Chris@39 4102 if test "x$ac_ct_OBJDUMP" = x; then
Chris@39 4103 OBJDUMP="false"
Chris@39 4104 else
Chris@39 4105 case $cross_compiling:$ac_tool_warned in
Chris@39 4106 yes:)
Chris@39 4107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 4108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 4109 ac_tool_warned=yes ;;
Chris@39 4110 esac
Chris@39 4111 OBJDUMP=$ac_ct_OBJDUMP
Chris@39 4112 fi
Chris@39 4113 else
Chris@39 4114 OBJDUMP="$ac_cv_prog_OBJDUMP"
Chris@39 4115 fi
Chris@39 4116
Chris@39 4117 ;;
Chris@39 4118 esac
Chris@39 4119
Chris@39 4120 test -z "$AS" && AS=as
Chris@39 4121
Chris@39 4122
Chris@39 4123
Chris@39 4124
Chris@39 4125
Chris@39 4126 test -z "$DLLTOOL" && DLLTOOL=dlltool
Chris@39 4127
Chris@39 4128
Chris@39 4129
Chris@39 4130
Chris@39 4131
Chris@39 4132 test -z "$OBJDUMP" && OBJDUMP=objdump
Chris@39 4133
Chris@39 4134
Chris@39 4135
Chris@39 4136
Chris@39 4137
Chris@39 4138
Chris@39 4139
Chris@39 4140 case `pwd` in
Chris@39 4141 *\ * | *\ *)
Chris@39 4142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
Chris@39 4143 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
Chris@39 4144 esac
Chris@39 4145
Chris@39 4146
Chris@39 4147
Chris@39 4148 macro_version='2.4'
Chris@39 4149 macro_revision='1.3293'
Chris@39 4150
Chris@39 4151
Chris@39 4152
Chris@39 4153
Chris@39 4154
Chris@39 4155
Chris@39 4156
Chris@39 4157
Chris@39 4158
Chris@39 4159
Chris@39 4160
Chris@39 4161
Chris@39 4162
Chris@39 4163 ltmain="$ac_aux_dir/ltmain.sh"
Chris@39 4164
Chris@39 4165 # Backslashify metacharacters that are still active within
Chris@39 4166 # double-quoted strings.
Chris@39 4167 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
Chris@39 4168
Chris@39 4169 # Same as above, but do not quote variable references.
Chris@39 4170 double_quote_subst='s/\(["`\\]\)/\\\1/g'
Chris@39 4171
Chris@39 4172 # Sed substitution to delay expansion of an escaped shell variable in a
Chris@39 4173 # double_quote_subst'ed string.
Chris@39 4174 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
Chris@39 4175
Chris@39 4176 # Sed substitution to delay expansion of an escaped single quote.
Chris@39 4177 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
Chris@39 4178
Chris@39 4179 # Sed substitution to avoid accidental globbing in evaled expressions
Chris@39 4180 no_glob_subst='s/\*/\\\*/g'
Chris@39 4181
Chris@39 4182 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@39 4183 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
Chris@39 4184 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
Chris@39 4185
Chris@39 4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
Chris@39 4187 $as_echo_n "checking how to print strings... " >&6; }
Chris@39 4188 # Test print first, because it will be a builtin if present.
Chris@39 4189 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
Chris@39 4190 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
Chris@39 4191 ECHO='print -r --'
Chris@39 4192 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
Chris@39 4193 ECHO='printf %s\n'
Chris@39 4194 else
Chris@39 4195 # Use this function as a fallback that always works.
Chris@39 4196 func_fallback_echo ()
Chris@39 4197 {
Chris@39 4198 eval 'cat <<_LTECHO_EOF
Chris@39 4199 $1
Chris@39 4200 _LTECHO_EOF'
Chris@39 4201 }
Chris@39 4202 ECHO='func_fallback_echo'
Chris@39 4203 fi
Chris@39 4204
Chris@39 4205 # func_echo_all arg...
Chris@39 4206 # Invoke $ECHO with all args, space-separated.
Chris@39 4207 func_echo_all ()
Chris@39 4208 {
Chris@39 4209 $ECHO ""
Chris@39 4210 }
Chris@39 4211
Chris@39 4212 case "$ECHO" in
Chris@39 4213 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
Chris@39 4214 $as_echo "printf" >&6; } ;;
Chris@39 4215 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
Chris@39 4216 $as_echo "print -r" >&6; } ;;
Chris@39 4217 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
Chris@39 4218 $as_echo "cat" >&6; } ;;
Chris@39 4219 esac
Chris@39 4220
Chris@39 4221
Chris@39 4222
Chris@39 4223
Chris@39 4224
Chris@39 4225
Chris@39 4226
Chris@39 4227
Chris@39 4228
Chris@39 4229
Chris@39 4230
Chris@39 4231
Chris@39 4232
Chris@39 4233
Chris@39 4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
Chris@39 4235 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
Chris@39 4236 if ${ac_cv_path_SED+:} false; then :
Chris@39 4237 $as_echo_n "(cached) " >&6
Chris@39 4238 else
Chris@39 4239 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
Chris@39 4240 for ac_i in 1 2 3 4 5 6 7; do
Chris@39 4241 ac_script="$ac_script$as_nl$ac_script"
Chris@39 4242 done
Chris@39 4243 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
Chris@39 4244 { ac_script=; unset ac_script;}
Chris@39 4245 if test -z "$SED"; then
Chris@39 4246 ac_path_SED_found=false
Chris@39 4247 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@39 4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 4249 for as_dir in $PATH
Chris@39 4250 do
Chris@39 4251 IFS=$as_save_IFS
Chris@39 4252 test -z "$as_dir" && as_dir=.
Chris@39 4253 for ac_prog in sed gsed; do
Chris@39 4254 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 4255 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Chris@39 4256 as_fn_executable_p "$ac_path_SED" || continue
Chris@39 4257 # Check for GNU ac_path_SED and select it if it is found.
Chris@39 4258 # Check for GNU $ac_path_SED
Chris@39 4259 case `"$ac_path_SED" --version 2>&1` in
Chris@39 4260 *GNU*)
Chris@39 4261 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
Chris@39 4262 *)
Chris@39 4263 ac_count=0
Chris@39 4264 $as_echo_n 0123456789 >"conftest.in"
Chris@39 4265 while :
Chris@39 4266 do
Chris@39 4267 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@39 4268 mv "conftest.tmp" "conftest.in"
Chris@39 4269 cp "conftest.in" "conftest.nl"
Chris@39 4270 $as_echo '' >> "conftest.nl"
Chris@39 4271 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@39 4272 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@39 4273 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@39 4274 if test $ac_count -gt ${ac_path_SED_max-0}; then
Chris@39 4275 # Best one so far, save it but keep looking for a better one
Chris@39 4276 ac_cv_path_SED="$ac_path_SED"
Chris@39 4277 ac_path_SED_max=$ac_count
Chris@39 4278 fi
Chris@39 4279 # 10*(2^10) chars as input seems more than enough
Chris@39 4280 test $ac_count -gt 10 && break
Chris@39 4281 done
Chris@39 4282 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@39 4283 esac
Chris@39 4284
Chris@39 4285 $ac_path_SED_found && break 3
Chris@39 4286 done
Chris@39 4287 done
Chris@39 4288 done
Chris@39 4289 IFS=$as_save_IFS
Chris@39 4290 if test -z "$ac_cv_path_SED"; then
Chris@39 4291 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Chris@39 4292 fi
Chris@39 4293 else
Chris@39 4294 ac_cv_path_SED=$SED
Chris@39 4295 fi
Chris@39 4296
Chris@39 4297 fi
Chris@39 4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
Chris@39 4299 $as_echo "$ac_cv_path_SED" >&6; }
Chris@39 4300 SED="$ac_cv_path_SED"
Chris@39 4301 rm -f conftest.sed
Chris@39 4302
Chris@39 4303 test -z "$SED" && SED=sed
Chris@39 4304 Xsed="$SED -e 1s/^X//"
Chris@39 4305
Chris@39 4306
Chris@39 4307
Chris@39 4308
Chris@39 4309
Chris@39 4310
Chris@39 4311
Chris@39 4312
Chris@39 4313
Chris@39 4314
Chris@39 4315
Chris@39 4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Chris@39 4317 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Chris@39 4318 if ${ac_cv_path_GREP+:} false; then :
Chris@39 4319 $as_echo_n "(cached) " >&6
Chris@39 4320 else
Chris@39 4321 if test -z "$GREP"; then
Chris@39 4322 ac_path_GREP_found=false
Chris@39 4323 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@39 4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 4325 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@39 4326 do
Chris@39 4327 IFS=$as_save_IFS
Chris@39 4328 test -z "$as_dir" && as_dir=.
Chris@39 4329 for ac_prog in grep ggrep; do
Chris@39 4330 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 4331 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@39 4332 as_fn_executable_p "$ac_path_GREP" || continue
Chris@39 4333 # Check for GNU ac_path_GREP and select it if it is found.
Chris@39 4334 # Check for GNU $ac_path_GREP
Chris@39 4335 case `"$ac_path_GREP" --version 2>&1` in
Chris@39 4336 *GNU*)
Chris@39 4337 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
Chris@39 4338 *)
Chris@39 4339 ac_count=0
Chris@39 4340 $as_echo_n 0123456789 >"conftest.in"
Chris@39 4341 while :
Chris@39 4342 do
Chris@39 4343 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@39 4344 mv "conftest.tmp" "conftest.in"
Chris@39 4345 cp "conftest.in" "conftest.nl"
Chris@39 4346 $as_echo 'GREP' >> "conftest.nl"
Chris@39 4347 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@39 4348 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@39 4349 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@39 4350 if test $ac_count -gt ${ac_path_GREP_max-0}; then
Chris@39 4351 # Best one so far, save it but keep looking for a better one
Chris@39 4352 ac_cv_path_GREP="$ac_path_GREP"
Chris@39 4353 ac_path_GREP_max=$ac_count
Chris@39 4354 fi
Chris@39 4355 # 10*(2^10) chars as input seems more than enough
Chris@39 4356 test $ac_count -gt 10 && break
Chris@39 4357 done
Chris@39 4358 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@39 4359 esac
Chris@39 4360
Chris@39 4361 $ac_path_GREP_found && break 3
Chris@39 4362 done
Chris@39 4363 done
Chris@39 4364 done
Chris@39 4365 IFS=$as_save_IFS
Chris@39 4366 if test -z "$ac_cv_path_GREP"; then
Chris@39 4367 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@39 4368 fi
Chris@39 4369 else
Chris@39 4370 ac_cv_path_GREP=$GREP
Chris@39 4371 fi
Chris@39 4372
Chris@39 4373 fi
Chris@39 4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Chris@39 4375 $as_echo "$ac_cv_path_GREP" >&6; }
Chris@39 4376 GREP="$ac_cv_path_GREP"
Chris@39 4377
Chris@39 4378
Chris@39 4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Chris@39 4380 $as_echo_n "checking for egrep... " >&6; }
Chris@39 4381 if ${ac_cv_path_EGREP+:} false; then :
Chris@39 4382 $as_echo_n "(cached) " >&6
Chris@39 4383 else
Chris@39 4384 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
Chris@39 4385 then ac_cv_path_EGREP="$GREP -E"
Chris@39 4386 else
Chris@39 4387 if test -z "$EGREP"; then
Chris@39 4388 ac_path_EGREP_found=false
Chris@39 4389 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@39 4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 4391 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@39 4392 do
Chris@39 4393 IFS=$as_save_IFS
Chris@39 4394 test -z "$as_dir" && as_dir=.
Chris@39 4395 for ac_prog in egrep; do
Chris@39 4396 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 4397 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@39 4398 as_fn_executable_p "$ac_path_EGREP" || continue
Chris@39 4399 # Check for GNU ac_path_EGREP and select it if it is found.
Chris@39 4400 # Check for GNU $ac_path_EGREP
Chris@39 4401 case `"$ac_path_EGREP" --version 2>&1` in
Chris@39 4402 *GNU*)
Chris@39 4403 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
Chris@39 4404 *)
Chris@39 4405 ac_count=0
Chris@39 4406 $as_echo_n 0123456789 >"conftest.in"
Chris@39 4407 while :
Chris@39 4408 do
Chris@39 4409 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@39 4410 mv "conftest.tmp" "conftest.in"
Chris@39 4411 cp "conftest.in" "conftest.nl"
Chris@39 4412 $as_echo 'EGREP' >> "conftest.nl"
Chris@39 4413 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@39 4414 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@39 4415 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@39 4416 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
Chris@39 4417 # Best one so far, save it but keep looking for a better one
Chris@39 4418 ac_cv_path_EGREP="$ac_path_EGREP"
Chris@39 4419 ac_path_EGREP_max=$ac_count
Chris@39 4420 fi
Chris@39 4421 # 10*(2^10) chars as input seems more than enough
Chris@39 4422 test $ac_count -gt 10 && break
Chris@39 4423 done
Chris@39 4424 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@39 4425 esac
Chris@39 4426
Chris@39 4427 $ac_path_EGREP_found && break 3
Chris@39 4428 done
Chris@39 4429 done
Chris@39 4430 done
Chris@39 4431 IFS=$as_save_IFS
Chris@39 4432 if test -z "$ac_cv_path_EGREP"; then
Chris@39 4433 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@39 4434 fi
Chris@39 4435 else
Chris@39 4436 ac_cv_path_EGREP=$EGREP
Chris@39 4437 fi
Chris@39 4438
Chris@39 4439 fi
Chris@39 4440 fi
Chris@39 4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Chris@39 4442 $as_echo "$ac_cv_path_EGREP" >&6; }
Chris@39 4443 EGREP="$ac_cv_path_EGREP"
Chris@39 4444
Chris@39 4445
Chris@39 4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
Chris@39 4447 $as_echo_n "checking for fgrep... " >&6; }
Chris@39 4448 if ${ac_cv_path_FGREP+:} false; then :
Chris@39 4449 $as_echo_n "(cached) " >&6
Chris@39 4450 else
Chris@39 4451 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
Chris@39 4452 then ac_cv_path_FGREP="$GREP -F"
Chris@39 4453 else
Chris@39 4454 if test -z "$FGREP"; then
Chris@39 4455 ac_path_FGREP_found=false
Chris@39 4456 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@39 4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 4458 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@39 4459 do
Chris@39 4460 IFS=$as_save_IFS
Chris@39 4461 test -z "$as_dir" && as_dir=.
Chris@39 4462 for ac_prog in fgrep; do
Chris@39 4463 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 4464 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@39 4465 as_fn_executable_p "$ac_path_FGREP" || continue
Chris@39 4466 # Check for GNU ac_path_FGREP and select it if it is found.
Chris@39 4467 # Check for GNU $ac_path_FGREP
Chris@39 4468 case `"$ac_path_FGREP" --version 2>&1` in
Chris@39 4469 *GNU*)
Chris@39 4470 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
Chris@39 4471 *)
Chris@39 4472 ac_count=0
Chris@39 4473 $as_echo_n 0123456789 >"conftest.in"
Chris@39 4474 while :
Chris@39 4475 do
Chris@39 4476 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@39 4477 mv "conftest.tmp" "conftest.in"
Chris@39 4478 cp "conftest.in" "conftest.nl"
Chris@39 4479 $as_echo 'FGREP' >> "conftest.nl"
Chris@39 4480 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@39 4481 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@39 4482 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@39 4483 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
Chris@39 4484 # Best one so far, save it but keep looking for a better one
Chris@39 4485 ac_cv_path_FGREP="$ac_path_FGREP"
Chris@39 4486 ac_path_FGREP_max=$ac_count
Chris@39 4487 fi
Chris@39 4488 # 10*(2^10) chars as input seems more than enough
Chris@39 4489 test $ac_count -gt 10 && break
Chris@39 4490 done
Chris@39 4491 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@39 4492 esac
Chris@39 4493
Chris@39 4494 $ac_path_FGREP_found && break 3
Chris@39 4495 done
Chris@39 4496 done
Chris@39 4497 done
Chris@39 4498 IFS=$as_save_IFS
Chris@39 4499 if test -z "$ac_cv_path_FGREP"; then
Chris@39 4500 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@39 4501 fi
Chris@39 4502 else
Chris@39 4503 ac_cv_path_FGREP=$FGREP
Chris@39 4504 fi
Chris@39 4505
Chris@39 4506 fi
Chris@39 4507 fi
Chris@39 4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
Chris@39 4509 $as_echo "$ac_cv_path_FGREP" >&6; }
Chris@39 4510 FGREP="$ac_cv_path_FGREP"
Chris@39 4511
Chris@39 4512
Chris@39 4513 test -z "$GREP" && GREP=grep
Chris@39 4514
Chris@39 4515
Chris@39 4516
Chris@39 4517
Chris@39 4518
Chris@39 4519
Chris@39 4520
Chris@39 4521
Chris@39 4522
Chris@39 4523
Chris@39 4524
Chris@39 4525
Chris@39 4526
Chris@39 4527
Chris@39 4528
Chris@39 4529
Chris@39 4530
Chris@39 4531
Chris@39 4532
Chris@39 4533 # Check whether --with-gnu-ld was given.
Chris@39 4534 if test "${with_gnu_ld+set}" = set; then :
Chris@39 4535 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Chris@39 4536 else
Chris@39 4537 with_gnu_ld=no
Chris@39 4538 fi
Chris@39 4539
Chris@39 4540 ac_prog=ld
Chris@39 4541 if test "$GCC" = yes; then
Chris@39 4542 # Check if gcc -print-prog-name=ld gives a path.
Chris@39 4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
Chris@39 4544 $as_echo_n "checking for ld used by $CC... " >&6; }
Chris@39 4545 case $host in
Chris@39 4546 *-*-mingw*)
Chris@39 4547 # gcc leaves a trailing carriage return which upsets mingw
Chris@39 4548 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
Chris@39 4549 *)
Chris@39 4550 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
Chris@39 4551 esac
Chris@39 4552 case $ac_prog in
Chris@39 4553 # Accept absolute paths.
Chris@39 4554 [\\/]* | ?:[\\/]*)
Chris@39 4555 re_direlt='/[^/][^/]*/\.\./'
Chris@39 4556 # Canonicalize the pathname of ld
Chris@39 4557 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
Chris@39 4558 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
Chris@39 4559 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Chris@39 4560 done
Chris@39 4561 test -z "$LD" && LD="$ac_prog"
Chris@39 4562 ;;
Chris@39 4563 "")
Chris@39 4564 # If it fails, then pretend we aren't using GCC.
Chris@39 4565 ac_prog=ld
Chris@39 4566 ;;
Chris@39 4567 *)
Chris@39 4568 # If it is relative, then search for the first ld in PATH.
Chris@39 4569 with_gnu_ld=unknown
Chris@39 4570 ;;
Chris@39 4571 esac
Chris@39 4572 elif test "$with_gnu_ld" = yes; then
Chris@39 4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Chris@39 4574 $as_echo_n "checking for GNU ld... " >&6; }
Chris@39 4575 else
Chris@39 4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Chris@39 4577 $as_echo_n "checking for non-GNU ld... " >&6; }
Chris@39 4578 fi
Chris@39 4579 if ${lt_cv_path_LD+:} false; then :
Chris@39 4580 $as_echo_n "(cached) " >&6
Chris@39 4581 else
Chris@39 4582 if test -z "$LD"; then
Chris@39 4583 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@39 4584 for ac_dir in $PATH; do
Chris@39 4585 IFS="$lt_save_ifs"
Chris@39 4586 test -z "$ac_dir" && ac_dir=.
Chris@39 4587 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Chris@39 4588 lt_cv_path_LD="$ac_dir/$ac_prog"
Chris@39 4589 # Check to see if the program is GNU ld. I'd rather use --version,
Chris@39 4590 # but apparently some variants of GNU ld only accept -v.
Chris@39 4591 # Break only if it was the GNU/non-GNU ld that we prefer.
Chris@39 4592 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
Chris@39 4593 *GNU* | *'with BFD'*)
Chris@39 4594 test "$with_gnu_ld" != no && break
Chris@39 4595 ;;
Chris@39 4596 *)
Chris@39 4597 test "$with_gnu_ld" != yes && break
Chris@39 4598 ;;
Chris@39 4599 esac
Chris@39 4600 fi
Chris@39 4601 done
Chris@39 4602 IFS="$lt_save_ifs"
Chris@39 4603 else
Chris@39 4604 lt_cv_path_LD="$LD" # Let the user override the test with a path.
Chris@39 4605 fi
Chris@39 4606 fi
Chris@39 4607
Chris@39 4608 LD="$lt_cv_path_LD"
Chris@39 4609 if test -n "$LD"; then
Chris@39 4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Chris@39 4611 $as_echo "$LD" >&6; }
Chris@39 4612 else
Chris@39 4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 4614 $as_echo "no" >&6; }
Chris@39 4615 fi
Chris@39 4616 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Chris@39 4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Chris@39 4618 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Chris@39 4619 if ${lt_cv_prog_gnu_ld+:} false; then :
Chris@39 4620 $as_echo_n "(cached) " >&6
Chris@39 4621 else
Chris@39 4622 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Chris@39 4623 case `$LD -v 2>&1 </dev/null` in
Chris@39 4624 *GNU* | *'with BFD'*)
Chris@39 4625 lt_cv_prog_gnu_ld=yes
Chris@39 4626 ;;
Chris@39 4627 *)
Chris@39 4628 lt_cv_prog_gnu_ld=no
Chris@39 4629 ;;
Chris@39 4630 esac
Chris@39 4631 fi
Chris@39 4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
Chris@39 4633 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
Chris@39 4634 with_gnu_ld=$lt_cv_prog_gnu_ld
Chris@39 4635
Chris@39 4636
Chris@39 4637
Chris@39 4638
Chris@39 4639
Chris@39 4640
Chris@39 4641
Chris@39 4642
Chris@39 4643
Chris@39 4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
Chris@39 4645 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Chris@39 4646 if ${lt_cv_path_NM+:} false; then :
Chris@39 4647 $as_echo_n "(cached) " >&6
Chris@39 4648 else
Chris@39 4649 if test -n "$NM"; then
Chris@39 4650 # Let the user override the test.
Chris@39 4651 lt_cv_path_NM="$NM"
Chris@39 4652 else
Chris@39 4653 lt_nm_to_check="${ac_tool_prefix}nm"
Chris@39 4654 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
Chris@39 4655 lt_nm_to_check="$lt_nm_to_check nm"
Chris@39 4656 fi
Chris@39 4657 for lt_tmp_nm in $lt_nm_to_check; do
Chris@39 4658 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@39 4659 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
Chris@39 4660 IFS="$lt_save_ifs"
Chris@39 4661 test -z "$ac_dir" && ac_dir=.
Chris@39 4662 tmp_nm="$ac_dir/$lt_tmp_nm"
Chris@39 4663 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
Chris@39 4664 # Check to see if the nm accepts a BSD-compat flag.
Chris@39 4665 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
Chris@39 4666 # nm: unknown option "B" ignored
Chris@39 4667 # Tru64's nm complains that /dev/null is an invalid object file
Chris@39 4668 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
Chris@39 4669 */dev/null* | *'Invalid file or object type'*)
Chris@39 4670 lt_cv_path_NM="$tmp_nm -B"
Chris@39 4671 break
Chris@39 4672 ;;
Chris@39 4673 *)
Chris@39 4674 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
Chris@39 4675 */dev/null*)
Chris@39 4676 lt_cv_path_NM="$tmp_nm -p"
Chris@39 4677 break
Chris@39 4678 ;;
Chris@39 4679 *)
Chris@39 4680 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
Chris@39 4681 continue # so that we can try to find one that supports BSD flags
Chris@39 4682 ;;
Chris@39 4683 esac
Chris@39 4684 ;;
Chris@39 4685 esac
Chris@39 4686 fi
Chris@39 4687 done
Chris@39 4688 IFS="$lt_save_ifs"
Chris@39 4689 done
Chris@39 4690 : ${lt_cv_path_NM=no}
Chris@39 4691 fi
Chris@39 4692 fi
Chris@39 4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
Chris@39 4694 $as_echo "$lt_cv_path_NM" >&6; }
Chris@39 4695 if test "$lt_cv_path_NM" != "no"; then
Chris@39 4696 NM="$lt_cv_path_NM"
Chris@39 4697 else
Chris@39 4698 # Didn't find any BSD compatible name lister, look for dumpbin.
Chris@39 4699 if test -n "$DUMPBIN"; then :
Chris@39 4700 # Let the user override the test.
Chris@39 4701 else
Chris@39 4702 if test -n "$ac_tool_prefix"; then
Chris@39 4703 for ac_prog in dumpbin "link -dump"
Chris@39 4704 do
Chris@39 4705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@39 4706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@39 4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 4708 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 4709 if ${ac_cv_prog_DUMPBIN+:} false; then :
Chris@39 4710 $as_echo_n "(cached) " >&6
Chris@39 4711 else
Chris@39 4712 if test -n "$DUMPBIN"; then
Chris@39 4713 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
Chris@39 4714 else
Chris@39 4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 4716 for as_dir in $PATH
Chris@39 4717 do
Chris@39 4718 IFS=$as_save_IFS
Chris@39 4719 test -z "$as_dir" && as_dir=.
Chris@39 4720 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 4721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 4722 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Chris@39 4723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 4724 break 2
Chris@39 4725 fi
Chris@39 4726 done
Chris@39 4727 done
Chris@39 4728 IFS=$as_save_IFS
Chris@39 4729
Chris@39 4730 fi
Chris@39 4731 fi
Chris@39 4732 DUMPBIN=$ac_cv_prog_DUMPBIN
Chris@39 4733 if test -n "$DUMPBIN"; then
Chris@39 4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
Chris@39 4735 $as_echo "$DUMPBIN" >&6; }
Chris@39 4736 else
Chris@39 4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 4738 $as_echo "no" >&6; }
Chris@39 4739 fi
Chris@39 4740
Chris@39 4741
Chris@39 4742 test -n "$DUMPBIN" && break
Chris@39 4743 done
Chris@39 4744 fi
Chris@39 4745 if test -z "$DUMPBIN"; then
Chris@39 4746 ac_ct_DUMPBIN=$DUMPBIN
Chris@39 4747 for ac_prog in dumpbin "link -dump"
Chris@39 4748 do
Chris@39 4749 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@39 4750 set dummy $ac_prog; ac_word=$2
Chris@39 4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 4752 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 4753 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Chris@39 4754 $as_echo_n "(cached) " >&6
Chris@39 4755 else
Chris@39 4756 if test -n "$ac_ct_DUMPBIN"; then
Chris@39 4757 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
Chris@39 4758 else
Chris@39 4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 4760 for as_dir in $PATH
Chris@39 4761 do
Chris@39 4762 IFS=$as_save_IFS
Chris@39 4763 test -z "$as_dir" && as_dir=.
Chris@39 4764 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 4765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 4766 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Chris@39 4767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 4768 break 2
Chris@39 4769 fi
Chris@39 4770 done
Chris@39 4771 done
Chris@39 4772 IFS=$as_save_IFS
Chris@39 4773
Chris@39 4774 fi
Chris@39 4775 fi
Chris@39 4776 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
Chris@39 4777 if test -n "$ac_ct_DUMPBIN"; then
Chris@39 4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
Chris@39 4779 $as_echo "$ac_ct_DUMPBIN" >&6; }
Chris@39 4780 else
Chris@39 4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 4782 $as_echo "no" >&6; }
Chris@39 4783 fi
Chris@39 4784
Chris@39 4785
Chris@39 4786 test -n "$ac_ct_DUMPBIN" && break
Chris@39 4787 done
Chris@39 4788
Chris@39 4789 if test "x$ac_ct_DUMPBIN" = x; then
Chris@39 4790 DUMPBIN=":"
Chris@39 4791 else
Chris@39 4792 case $cross_compiling:$ac_tool_warned in
Chris@39 4793 yes:)
Chris@39 4794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 4795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 4796 ac_tool_warned=yes ;;
Chris@39 4797 esac
Chris@39 4798 DUMPBIN=$ac_ct_DUMPBIN
Chris@39 4799 fi
Chris@39 4800 fi
Chris@39 4801
Chris@39 4802 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
Chris@39 4803 *COFF*)
Chris@39 4804 DUMPBIN="$DUMPBIN -symbols"
Chris@39 4805 ;;
Chris@39 4806 *)
Chris@39 4807 DUMPBIN=:
Chris@39 4808 ;;
Chris@39 4809 esac
Chris@39 4810 fi
Chris@39 4811
Chris@39 4812 if test "$DUMPBIN" != ":"; then
Chris@39 4813 NM="$DUMPBIN"
Chris@39 4814 fi
Chris@39 4815 fi
Chris@39 4816 test -z "$NM" && NM=nm
Chris@39 4817
Chris@39 4818
Chris@39 4819
Chris@39 4820
Chris@39 4821
Chris@39 4822
Chris@39 4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
Chris@39 4824 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
Chris@39 4825 if ${lt_cv_nm_interface+:} false; then :
Chris@39 4826 $as_echo_n "(cached) " >&6
Chris@39 4827 else
Chris@39 4828 lt_cv_nm_interface="BSD nm"
Chris@39 4829 echo "int some_variable = 0;" > conftest.$ac_ext
Chris@39 4830 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
Chris@39 4831 (eval "$ac_compile" 2>conftest.err)
Chris@39 4832 cat conftest.err >&5
Chris@39 4833 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Chris@39 4834 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
Chris@39 4835 cat conftest.err >&5
Chris@39 4836 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
Chris@39 4837 cat conftest.out >&5
Chris@39 4838 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
Chris@39 4839 lt_cv_nm_interface="MS dumpbin"
Chris@39 4840 fi
Chris@39 4841 rm -f conftest*
Chris@39 4842 fi
Chris@39 4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
Chris@39 4844 $as_echo "$lt_cv_nm_interface" >&6; }
Chris@39 4845
Chris@39 4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Chris@39 4847 $as_echo_n "checking whether ln -s works... " >&6; }
Chris@39 4848 LN_S=$as_ln_s
Chris@39 4849 if test "$LN_S" = "ln -s"; then
Chris@39 4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@39 4851 $as_echo "yes" >&6; }
Chris@39 4852 else
Chris@39 4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Chris@39 4854 $as_echo "no, using $LN_S" >&6; }
Chris@39 4855 fi
Chris@39 4856
Chris@39 4857 # find the maximum length of command line arguments
Chris@39 4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
Chris@39 4859 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
Chris@39 4860 if ${lt_cv_sys_max_cmd_len+:} false; then :
Chris@39 4861 $as_echo_n "(cached) " >&6
Chris@39 4862 else
Chris@39 4863 i=0
Chris@39 4864 teststring="ABCD"
Chris@39 4865
Chris@39 4866 case $build_os in
Chris@39 4867 msdosdjgpp*)
Chris@39 4868 # On DJGPP, this test can blow up pretty badly due to problems in libc
Chris@39 4869 # (any single argument exceeding 2000 bytes causes a buffer overrun
Chris@39 4870 # during glob expansion). Even if it were fixed, the result of this
Chris@39 4871 # check would be larger than it should be.
Chris@39 4872 lt_cv_sys_max_cmd_len=12288; # 12K is about right
Chris@39 4873 ;;
Chris@39 4874
Chris@39 4875 gnu*)
Chris@39 4876 # Under GNU Hurd, this test is not required because there is
Chris@39 4877 # no limit to the length of command line arguments.
Chris@39 4878 # Libtool will interpret -1 as no limit whatsoever
Chris@39 4879 lt_cv_sys_max_cmd_len=-1;
Chris@39 4880 ;;
Chris@39 4881
Chris@39 4882 cygwin* | mingw* | cegcc*)
Chris@39 4883 # On Win9x/ME, this test blows up -- it succeeds, but takes
Chris@39 4884 # about 5 minutes as the teststring grows exponentially.
Chris@39 4885 # Worse, since 9x/ME are not pre-emptively multitasking,
Chris@39 4886 # you end up with a "frozen" computer, even though with patience
Chris@39 4887 # the test eventually succeeds (with a max line length of 256k).
Chris@39 4888 # Instead, let's just punt: use the minimum linelength reported by
Chris@39 4889 # all of the supported platforms: 8192 (on NT/2K/XP).
Chris@39 4890 lt_cv_sys_max_cmd_len=8192;
Chris@39 4891 ;;
Chris@39 4892
Chris@39 4893 mint*)
Chris@39 4894 # On MiNT this can take a long time and run out of memory.
Chris@39 4895 lt_cv_sys_max_cmd_len=8192;
Chris@39 4896 ;;
Chris@39 4897
Chris@39 4898 amigaos*)
Chris@39 4899 # On AmigaOS with pdksh, this test takes hours, literally.
Chris@39 4900 # So we just punt and use a minimum line length of 8192.
Chris@39 4901 lt_cv_sys_max_cmd_len=8192;
Chris@39 4902 ;;
Chris@39 4903
Chris@39 4904 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Chris@39 4905 # This has been around since 386BSD, at least. Likely further.
Chris@39 4906 if test -x /sbin/sysctl; then
Chris@39 4907 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
Chris@39 4908 elif test -x /usr/sbin/sysctl; then
Chris@39 4909 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
Chris@39 4910 else
Chris@39 4911 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Chris@39 4912 fi
Chris@39 4913 # And add a safety zone
Chris@39 4914 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Chris@39 4915 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Chris@39 4916 ;;
Chris@39 4917
Chris@39 4918 interix*)
Chris@39 4919 # We know the value 262144 and hardcode it with a safety zone (like BSD)
Chris@39 4920 lt_cv_sys_max_cmd_len=196608
Chris@39 4921 ;;
Chris@39 4922
Chris@39 4923 osf*)
Chris@39 4924 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
Chris@39 4925 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
Chris@39 4926 # nice to cause kernel panics so lets avoid the loop below.
Chris@39 4927 # First set a reasonable default.
Chris@39 4928 lt_cv_sys_max_cmd_len=16384
Chris@39 4929 #
Chris@39 4930 if test -x /sbin/sysconfig; then
Chris@39 4931 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
Chris@39 4932 *1*) lt_cv_sys_max_cmd_len=-1 ;;
Chris@39 4933 esac
Chris@39 4934 fi
Chris@39 4935 ;;
Chris@39 4936 sco3.2v5*)
Chris@39 4937 lt_cv_sys_max_cmd_len=102400
Chris@39 4938 ;;
Chris@39 4939 sysv5* | sco5v6* | sysv4.2uw2*)
Chris@39 4940 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
Chris@39 4941 if test -n "$kargmax"; then
Chris@39 4942 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
Chris@39 4943 else
Chris@39 4944 lt_cv_sys_max_cmd_len=32768
Chris@39 4945 fi
Chris@39 4946 ;;
Chris@39 4947 *)
Chris@39 4948 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
Chris@39 4949 if test -n "$lt_cv_sys_max_cmd_len"; then
Chris@39 4950 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Chris@39 4951 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Chris@39 4952 else
Chris@39 4953 # Make teststring a little bigger before we do anything with it.
Chris@39 4954 # a 1K string should be a reasonable start.
Chris@39 4955 for i in 1 2 3 4 5 6 7 8 ; do
Chris@39 4956 teststring=$teststring$teststring
Chris@39 4957 done
Chris@39 4958 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
Chris@39 4959 # If test is not a shell built-in, we'll probably end up computing a
Chris@39 4960 # maximum length that is only half of the actual maximum length, but
Chris@39 4961 # we can't tell.
Chris@39 4962 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
Chris@39 4963 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Chris@39 4964 test $i != 17 # 1/2 MB should be enough
Chris@39 4965 do
Chris@39 4966 i=`expr $i + 1`
Chris@39 4967 teststring=$teststring$teststring
Chris@39 4968 done
Chris@39 4969 # Only check the string length outside the loop.
Chris@39 4970 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
Chris@39 4971 teststring=
Chris@39 4972 # Add a significant safety factor because C++ compilers can tack on
Chris@39 4973 # massive amounts of additional arguments before passing them to the
Chris@39 4974 # linker. It appears as though 1/2 is a usable value.
Chris@39 4975 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
Chris@39 4976 fi
Chris@39 4977 ;;
Chris@39 4978 esac
Chris@39 4979
Chris@39 4980 fi
Chris@39 4981
Chris@39 4982 if test -n $lt_cv_sys_max_cmd_len ; then
Chris@39 4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
Chris@39 4984 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
Chris@39 4985 else
Chris@39 4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
Chris@39 4987 $as_echo "none" >&6; }
Chris@39 4988 fi
Chris@39 4989 max_cmd_len=$lt_cv_sys_max_cmd_len
Chris@39 4990
Chris@39 4991
Chris@39 4992
Chris@39 4993
Chris@39 4994
Chris@39 4995
Chris@39 4996 : ${CP="cp -f"}
Chris@39 4997 : ${MV="mv -f"}
Chris@39 4998 : ${RM="rm -f"}
Chris@39 4999
Chris@39 5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
Chris@39 5001 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
Chris@39 5002 # Try some XSI features
Chris@39 5003 xsi_shell=no
Chris@39 5004 ( _lt_dummy="a/b/c"
Chris@39 5005 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
Chris@39 5006 = c,a/b,b/c, \
Chris@39 5007 && eval 'test $(( 1 + 1 )) -eq 2 \
Chris@39 5008 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
Chris@39 5009 && xsi_shell=yes
Chris@39 5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
Chris@39 5011 $as_echo "$xsi_shell" >&6; }
Chris@39 5012
Chris@39 5013
Chris@39 5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
Chris@39 5015 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
Chris@39 5016 lt_shell_append=no
Chris@39 5017 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
Chris@39 5018 >/dev/null 2>&1 \
Chris@39 5019 && lt_shell_append=yes
Chris@39 5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
Chris@39 5021 $as_echo "$lt_shell_append" >&6; }
Chris@39 5022
Chris@39 5023
Chris@39 5024 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Chris@39 5025 lt_unset=unset
Chris@39 5026 else
Chris@39 5027 lt_unset=false
Chris@39 5028 fi
Chris@39 5029
Chris@39 5030
Chris@39 5031
Chris@39 5032
Chris@39 5033
Chris@39 5034 # test EBCDIC or ASCII
Chris@39 5035 case `echo X|tr X '\101'` in
Chris@39 5036 A) # ASCII based system
Chris@39 5037 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
Chris@39 5038 lt_SP2NL='tr \040 \012'
Chris@39 5039 lt_NL2SP='tr \015\012 \040\040'
Chris@39 5040 ;;
Chris@39 5041 *) # EBCDIC based system
Chris@39 5042 lt_SP2NL='tr \100 \n'
Chris@39 5043 lt_NL2SP='tr \r\n \100\100'
Chris@39 5044 ;;
Chris@39 5045 esac
Chris@39 5046
Chris@39 5047
Chris@39 5048
Chris@39 5049
Chris@39 5050
Chris@39 5051
Chris@39 5052
Chris@39 5053
Chris@39 5054
Chris@39 5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
Chris@39 5056 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
Chris@39 5057 if ${lt_cv_to_host_file_cmd+:} false; then :
Chris@39 5058 $as_echo_n "(cached) " >&6
Chris@39 5059 else
Chris@39 5060 case $host in
Chris@39 5061 *-*-mingw* )
Chris@39 5062 case $build in
Chris@39 5063 *-*-mingw* ) # actually msys
Chris@39 5064 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
Chris@39 5065 ;;
Chris@39 5066 *-*-cygwin* )
Chris@39 5067 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
Chris@39 5068 ;;
Chris@39 5069 * ) # otherwise, assume *nix
Chris@39 5070 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
Chris@39 5071 ;;
Chris@39 5072 esac
Chris@39 5073 ;;
Chris@39 5074 *-*-cygwin* )
Chris@39 5075 case $build in
Chris@39 5076 *-*-mingw* ) # actually msys
Chris@39 5077 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
Chris@39 5078 ;;
Chris@39 5079 *-*-cygwin* )
Chris@39 5080 lt_cv_to_host_file_cmd=func_convert_file_noop
Chris@39 5081 ;;
Chris@39 5082 * ) # otherwise, assume *nix
Chris@39 5083 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
Chris@39 5084 ;;
Chris@39 5085 esac
Chris@39 5086 ;;
Chris@39 5087 * ) # unhandled hosts (and "normal" native builds)
Chris@39 5088 lt_cv_to_host_file_cmd=func_convert_file_noop
Chris@39 5089 ;;
Chris@39 5090 esac
Chris@39 5091
Chris@39 5092 fi
Chris@39 5093
Chris@39 5094 to_host_file_cmd=$lt_cv_to_host_file_cmd
Chris@39 5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
Chris@39 5096 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
Chris@39 5097
Chris@39 5098
Chris@39 5099
Chris@39 5100
Chris@39 5101
Chris@39 5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
Chris@39 5103 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
Chris@39 5104 if ${lt_cv_to_tool_file_cmd+:} false; then :
Chris@39 5105 $as_echo_n "(cached) " >&6
Chris@39 5106 else
Chris@39 5107 #assume ordinary cross tools, or native build.
Chris@39 5108 lt_cv_to_tool_file_cmd=func_convert_file_noop
Chris@39 5109 case $host in
Chris@39 5110 *-*-mingw* )
Chris@39 5111 case $build in
Chris@39 5112 *-*-mingw* ) # actually msys
Chris@39 5113 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
Chris@39 5114 ;;
Chris@39 5115 esac
Chris@39 5116 ;;
Chris@39 5117 esac
Chris@39 5118
Chris@39 5119 fi
Chris@39 5120
Chris@39 5121 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Chris@39 5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
Chris@39 5123 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
Chris@39 5124
Chris@39 5125
Chris@39 5126
Chris@39 5127
Chris@39 5128
Chris@39 5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
Chris@39 5130 $as_echo_n "checking for $LD option to reload object files... " >&6; }
Chris@39 5131 if ${lt_cv_ld_reload_flag+:} false; then :
Chris@39 5132 $as_echo_n "(cached) " >&6
Chris@39 5133 else
Chris@39 5134 lt_cv_ld_reload_flag='-r'
Chris@39 5135 fi
Chris@39 5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
Chris@39 5137 $as_echo "$lt_cv_ld_reload_flag" >&6; }
Chris@39 5138 reload_flag=$lt_cv_ld_reload_flag
Chris@39 5139 case $reload_flag in
Chris@39 5140 "" | " "*) ;;
Chris@39 5141 *) reload_flag=" $reload_flag" ;;
Chris@39 5142 esac
Chris@39 5143 reload_cmds='$LD$reload_flag -o $output$reload_objs'
Chris@39 5144 case $host_os in
Chris@39 5145 cygwin* | mingw* | pw32* | cegcc*)
Chris@39 5146 if test "$GCC" != yes; then
Chris@39 5147 reload_cmds=false
Chris@39 5148 fi
Chris@39 5149 ;;
Chris@39 5150 darwin*)
Chris@39 5151 if test "$GCC" = yes; then
Chris@39 5152 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
Chris@39 5153 else
Chris@39 5154 reload_cmds='$LD$reload_flag -o $output$reload_objs'
Chris@39 5155 fi
Chris@39 5156 ;;
Chris@39 5157 esac
Chris@39 5158
Chris@39 5159
Chris@39 5160
Chris@39 5161
Chris@39 5162
Chris@39 5163
Chris@39 5164
Chris@39 5165
Chris@39 5166
Chris@39 5167 if test -n "$ac_tool_prefix"; then
Chris@39 5168 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
Chris@39 5169 set dummy ${ac_tool_prefix}objdump; ac_word=$2
Chris@39 5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 5171 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 5172 if ${ac_cv_prog_OBJDUMP+:} false; then :
Chris@39 5173 $as_echo_n "(cached) " >&6
Chris@39 5174 else
Chris@39 5175 if test -n "$OBJDUMP"; then
Chris@39 5176 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
Chris@39 5177 else
Chris@39 5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 5179 for as_dir in $PATH
Chris@39 5180 do
Chris@39 5181 IFS=$as_save_IFS
Chris@39 5182 test -z "$as_dir" && as_dir=.
Chris@39 5183 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 5184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 5185 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Chris@39 5186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 5187 break 2
Chris@39 5188 fi
Chris@39 5189 done
Chris@39 5190 done
Chris@39 5191 IFS=$as_save_IFS
Chris@39 5192
Chris@39 5193 fi
Chris@39 5194 fi
Chris@39 5195 OBJDUMP=$ac_cv_prog_OBJDUMP
Chris@39 5196 if test -n "$OBJDUMP"; then
Chris@39 5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
Chris@39 5198 $as_echo "$OBJDUMP" >&6; }
Chris@39 5199 else
Chris@39 5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 5201 $as_echo "no" >&6; }
Chris@39 5202 fi
Chris@39 5203
Chris@39 5204
Chris@39 5205 fi
Chris@39 5206 if test -z "$ac_cv_prog_OBJDUMP"; then
Chris@39 5207 ac_ct_OBJDUMP=$OBJDUMP
Chris@39 5208 # Extract the first word of "objdump", so it can be a program name with args.
Chris@39 5209 set dummy objdump; ac_word=$2
Chris@39 5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 5211 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 5212 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Chris@39 5213 $as_echo_n "(cached) " >&6
Chris@39 5214 else
Chris@39 5215 if test -n "$ac_ct_OBJDUMP"; then
Chris@39 5216 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
Chris@39 5217 else
Chris@39 5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 5219 for as_dir in $PATH
Chris@39 5220 do
Chris@39 5221 IFS=$as_save_IFS
Chris@39 5222 test -z "$as_dir" && as_dir=.
Chris@39 5223 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 5224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 5225 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Chris@39 5226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 5227 break 2
Chris@39 5228 fi
Chris@39 5229 done
Chris@39 5230 done
Chris@39 5231 IFS=$as_save_IFS
Chris@39 5232
Chris@39 5233 fi
Chris@39 5234 fi
Chris@39 5235 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
Chris@39 5236 if test -n "$ac_ct_OBJDUMP"; then
Chris@39 5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
Chris@39 5238 $as_echo "$ac_ct_OBJDUMP" >&6; }
Chris@39 5239 else
Chris@39 5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 5241 $as_echo "no" >&6; }
Chris@39 5242 fi
Chris@39 5243
Chris@39 5244 if test "x$ac_ct_OBJDUMP" = x; then
Chris@39 5245 OBJDUMP="false"
Chris@39 5246 else
Chris@39 5247 case $cross_compiling:$ac_tool_warned in
Chris@39 5248 yes:)
Chris@39 5249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 5250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 5251 ac_tool_warned=yes ;;
Chris@39 5252 esac
Chris@39 5253 OBJDUMP=$ac_ct_OBJDUMP
Chris@39 5254 fi
Chris@39 5255 else
Chris@39 5256 OBJDUMP="$ac_cv_prog_OBJDUMP"
Chris@39 5257 fi
Chris@39 5258
Chris@39 5259 test -z "$OBJDUMP" && OBJDUMP=objdump
Chris@39 5260
Chris@39 5261
Chris@39 5262
Chris@39 5263
Chris@39 5264
Chris@39 5265
Chris@39 5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
Chris@39 5267 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
Chris@39 5268 if ${lt_cv_deplibs_check_method+:} false; then :
Chris@39 5269 $as_echo_n "(cached) " >&6
Chris@39 5270 else
Chris@39 5271 lt_cv_file_magic_cmd='$MAGIC_CMD'
Chris@39 5272 lt_cv_file_magic_test_file=
Chris@39 5273 lt_cv_deplibs_check_method='unknown'
Chris@39 5274 # Need to set the preceding variable on all platforms that support
Chris@39 5275 # interlibrary dependencies.
Chris@39 5276 # 'none' -- dependencies not supported.
Chris@39 5277 # `unknown' -- same as none, but documents that we really don't know.
Chris@39 5278 # 'pass_all' -- all dependencies passed with no checks.
Chris@39 5279 # 'test_compile' -- check by making test program.
Chris@39 5280 # 'file_magic [[regex]]' -- check by looking for files in library path
Chris@39 5281 # which responds to the $file_magic_cmd with a given extended regex.
Chris@39 5282 # If you have `file' or equivalent on your system and you're not sure
Chris@39 5283 # whether `pass_all' will *always* work, you probably want this one.
Chris@39 5284
Chris@39 5285 case $host_os in
Chris@39 5286 aix[4-9]*)
Chris@39 5287 lt_cv_deplibs_check_method=pass_all
Chris@39 5288 ;;
Chris@39 5289
Chris@39 5290 beos*)
Chris@39 5291 lt_cv_deplibs_check_method=pass_all
Chris@39 5292 ;;
Chris@39 5293
Chris@39 5294 bsdi[45]*)
Chris@39 5295 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
Chris@39 5296 lt_cv_file_magic_cmd='/usr/bin/file -L'
Chris@39 5297 lt_cv_file_magic_test_file=/shlib/libc.so
Chris@39 5298 ;;
Chris@39 5299
Chris@39 5300 cygwin*)
Chris@39 5301 # func_win32_libid is a shell function defined in ltmain.sh
Chris@39 5302 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Chris@39 5303 lt_cv_file_magic_cmd='func_win32_libid'
Chris@39 5304 ;;
Chris@39 5305
Chris@39 5306 mingw* | pw32*)
Chris@39 5307 # Base MSYS/MinGW do not provide the 'file' command needed by
Chris@39 5308 # func_win32_libid shell function, so use a weaker test based on 'objdump',
Chris@39 5309 # unless we find 'file', for example because we are cross-compiling.
Chris@39 5310 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
Chris@39 5311 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
Chris@39 5312 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Chris@39 5313 lt_cv_file_magic_cmd='func_win32_libid'
Chris@39 5314 else
Chris@39 5315 # Keep this pattern in sync with the one in func_win32_libid.
Chris@39 5316 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
Chris@39 5317 lt_cv_file_magic_cmd='$OBJDUMP -f'
Chris@39 5318 fi
Chris@39 5319 ;;
Chris@39 5320
Chris@39 5321 cegcc*)
Chris@39 5322 # use the weaker test based on 'objdump'. See mingw*.
Chris@39 5323 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
Chris@39 5324 lt_cv_file_magic_cmd='$OBJDUMP -f'
Chris@39 5325 ;;
Chris@39 5326
Chris@39 5327 darwin* | rhapsody*)
Chris@39 5328 lt_cv_deplibs_check_method=pass_all
Chris@39 5329 ;;
Chris@39 5330
Chris@39 5331 freebsd* | dragonfly*)
Chris@39 5332 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Chris@39 5333 case $host_cpu in
Chris@39 5334 i*86 )
Chris@39 5335 # Not sure whether the presence of OpenBSD here was a mistake.
Chris@39 5336 # Let's accept both of them until this is cleared up.
Chris@39 5337 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
Chris@39 5338 lt_cv_file_magic_cmd=/usr/bin/file
Chris@39 5339 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
Chris@39 5340 ;;
Chris@39 5341 esac
Chris@39 5342 else
Chris@39 5343 lt_cv_deplibs_check_method=pass_all
Chris@39 5344 fi
Chris@39 5345 ;;
Chris@39 5346
Chris@39 5347 gnu*)
Chris@39 5348 lt_cv_deplibs_check_method=pass_all
Chris@39 5349 ;;
Chris@39 5350
Chris@39 5351 haiku*)
Chris@39 5352 lt_cv_deplibs_check_method=pass_all
Chris@39 5353 ;;
Chris@39 5354
Chris@39 5355 hpux10.20* | hpux11*)
Chris@39 5356 lt_cv_file_magic_cmd=/usr/bin/file
Chris@39 5357 case $host_cpu in
Chris@39 5358 ia64*)
Chris@39 5359 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
Chris@39 5360 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
Chris@39 5361 ;;
Chris@39 5362 hppa*64*)
Chris@39 5363 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
Chris@39 5364 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
Chris@39 5365 ;;
Chris@39 5366 *)
Chris@39 5367 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
Chris@39 5368 lt_cv_file_magic_test_file=/usr/lib/libc.sl
Chris@39 5369 ;;
Chris@39 5370 esac
Chris@39 5371 ;;
Chris@39 5372
Chris@39 5373 interix[3-9]*)
Chris@39 5374 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
Chris@39 5375 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
Chris@39 5376 ;;
Chris@39 5377
Chris@39 5378 irix5* | irix6* | nonstopux*)
Chris@39 5379 case $LD in
Chris@39 5380 *-32|*"-32 ") libmagic=32-bit;;
Chris@39 5381 *-n32|*"-n32 ") libmagic=N32;;
Chris@39 5382 *-64|*"-64 ") libmagic=64-bit;;
Chris@39 5383 *) libmagic=never-match;;
Chris@39 5384 esac
Chris@39 5385 lt_cv_deplibs_check_method=pass_all
Chris@39 5386 ;;
Chris@39 5387
Chris@39 5388 # This must be Linux ELF.
Chris@39 5389 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@39 5390 lt_cv_deplibs_check_method=pass_all
Chris@39 5391 ;;
Chris@39 5392
Chris@39 5393 netbsd* | netbsdelf*-gnu)
Chris@39 5394 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Chris@39 5395 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Chris@39 5396 else
Chris@39 5397 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
Chris@39 5398 fi
Chris@39 5399 ;;
Chris@39 5400
Chris@39 5401 newos6*)
Chris@39 5402 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
Chris@39 5403 lt_cv_file_magic_cmd=/usr/bin/file
Chris@39 5404 lt_cv_file_magic_test_file=/usr/lib/libnls.so
Chris@39 5405 ;;
Chris@39 5406
Chris@39 5407 *nto* | *qnx*)
Chris@39 5408 lt_cv_deplibs_check_method=pass_all
Chris@39 5409 ;;
Chris@39 5410
Chris@39 5411 openbsd*)
Chris@39 5412 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@39 5413 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
Chris@39 5414 else
Chris@39 5415 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Chris@39 5416 fi
Chris@39 5417 ;;
Chris@39 5418
Chris@39 5419 osf3* | osf4* | osf5*)
Chris@39 5420 lt_cv_deplibs_check_method=pass_all
Chris@39 5421 ;;
Chris@39 5422
Chris@39 5423 rdos*)
Chris@39 5424 lt_cv_deplibs_check_method=pass_all
Chris@39 5425 ;;
Chris@39 5426
Chris@39 5427 solaris*)
Chris@39 5428 lt_cv_deplibs_check_method=pass_all
Chris@39 5429 ;;
Chris@39 5430
Chris@39 5431 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Chris@39 5432 lt_cv_deplibs_check_method=pass_all
Chris@39 5433 ;;
Chris@39 5434
Chris@39 5435 sysv4 | sysv4.3*)
Chris@39 5436 case $host_vendor in
Chris@39 5437 motorola)
Chris@39 5438 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
Chris@39 5439 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
Chris@39 5440 ;;
Chris@39 5441 ncr)
Chris@39 5442 lt_cv_deplibs_check_method=pass_all
Chris@39 5443 ;;
Chris@39 5444 sequent)
Chris@39 5445 lt_cv_file_magic_cmd='/bin/file'
Chris@39 5446 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
Chris@39 5447 ;;
Chris@39 5448 sni)
Chris@39 5449 lt_cv_file_magic_cmd='/bin/file'
Chris@39 5450 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
Chris@39 5451 lt_cv_file_magic_test_file=/lib/libc.so
Chris@39 5452 ;;
Chris@39 5453 siemens)
Chris@39 5454 lt_cv_deplibs_check_method=pass_all
Chris@39 5455 ;;
Chris@39 5456 pc)
Chris@39 5457 lt_cv_deplibs_check_method=pass_all
Chris@39 5458 ;;
Chris@39 5459 esac
Chris@39 5460 ;;
Chris@39 5461
Chris@39 5462 tpf*)
Chris@39 5463 lt_cv_deplibs_check_method=pass_all
Chris@39 5464 ;;
Chris@39 5465 esac
Chris@39 5466
Chris@39 5467 fi
Chris@39 5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
Chris@39 5469 $as_echo "$lt_cv_deplibs_check_method" >&6; }
Chris@39 5470
Chris@39 5471 file_magic_glob=
Chris@39 5472 want_nocaseglob=no
Chris@39 5473 if test "$build" = "$host"; then
Chris@39 5474 case $host_os in
Chris@39 5475 mingw* | pw32*)
Chris@39 5476 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
Chris@39 5477 want_nocaseglob=yes
Chris@39 5478 else
Chris@39 5479 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
Chris@39 5480 fi
Chris@39 5481 ;;
Chris@39 5482 esac
Chris@39 5483 fi
Chris@39 5484
Chris@39 5485 file_magic_cmd=$lt_cv_file_magic_cmd
Chris@39 5486 deplibs_check_method=$lt_cv_deplibs_check_method
Chris@39 5487 test -z "$deplibs_check_method" && deplibs_check_method=unknown
Chris@39 5488
Chris@39 5489
Chris@39 5490
Chris@39 5491
Chris@39 5492
Chris@39 5493
Chris@39 5494
Chris@39 5495
Chris@39 5496
Chris@39 5497
Chris@39 5498
Chris@39 5499
Chris@39 5500
Chris@39 5501
Chris@39 5502
Chris@39 5503
Chris@39 5504
Chris@39 5505
Chris@39 5506
Chris@39 5507
Chris@39 5508
Chris@39 5509
Chris@39 5510 if test -n "$ac_tool_prefix"; then
Chris@39 5511 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
Chris@39 5512 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Chris@39 5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 5514 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 5515 if ${ac_cv_prog_DLLTOOL+:} false; then :
Chris@39 5516 $as_echo_n "(cached) " >&6
Chris@39 5517 else
Chris@39 5518 if test -n "$DLLTOOL"; then
Chris@39 5519 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
Chris@39 5520 else
Chris@39 5521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 5522 for as_dir in $PATH
Chris@39 5523 do
Chris@39 5524 IFS=$as_save_IFS
Chris@39 5525 test -z "$as_dir" && as_dir=.
Chris@39 5526 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 5527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 5528 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
Chris@39 5529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 5530 break 2
Chris@39 5531 fi
Chris@39 5532 done
Chris@39 5533 done
Chris@39 5534 IFS=$as_save_IFS
Chris@39 5535
Chris@39 5536 fi
Chris@39 5537 fi
Chris@39 5538 DLLTOOL=$ac_cv_prog_DLLTOOL
Chris@39 5539 if test -n "$DLLTOOL"; then
Chris@39 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
Chris@39 5541 $as_echo "$DLLTOOL" >&6; }
Chris@39 5542 else
Chris@39 5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 5544 $as_echo "no" >&6; }
Chris@39 5545 fi
Chris@39 5546
Chris@39 5547
Chris@39 5548 fi
Chris@39 5549 if test -z "$ac_cv_prog_DLLTOOL"; then
Chris@39 5550 ac_ct_DLLTOOL=$DLLTOOL
Chris@39 5551 # Extract the first word of "dlltool", so it can be a program name with args.
Chris@39 5552 set dummy dlltool; ac_word=$2
Chris@39 5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 5554 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 5555 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
Chris@39 5556 $as_echo_n "(cached) " >&6
Chris@39 5557 else
Chris@39 5558 if test -n "$ac_ct_DLLTOOL"; then
Chris@39 5559 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
Chris@39 5560 else
Chris@39 5561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 5562 for as_dir in $PATH
Chris@39 5563 do
Chris@39 5564 IFS=$as_save_IFS
Chris@39 5565 test -z "$as_dir" && as_dir=.
Chris@39 5566 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 5567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 5568 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
Chris@39 5569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 5570 break 2
Chris@39 5571 fi
Chris@39 5572 done
Chris@39 5573 done
Chris@39 5574 IFS=$as_save_IFS
Chris@39 5575
Chris@39 5576 fi
Chris@39 5577 fi
Chris@39 5578 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
Chris@39 5579 if test -n "$ac_ct_DLLTOOL"; then
Chris@39 5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
Chris@39 5581 $as_echo "$ac_ct_DLLTOOL" >&6; }
Chris@39 5582 else
Chris@39 5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 5584 $as_echo "no" >&6; }
Chris@39 5585 fi
Chris@39 5586
Chris@39 5587 if test "x$ac_ct_DLLTOOL" = x; then
Chris@39 5588 DLLTOOL="false"
Chris@39 5589 else
Chris@39 5590 case $cross_compiling:$ac_tool_warned in
Chris@39 5591 yes:)
Chris@39 5592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 5593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 5594 ac_tool_warned=yes ;;
Chris@39 5595 esac
Chris@39 5596 DLLTOOL=$ac_ct_DLLTOOL
Chris@39 5597 fi
Chris@39 5598 else
Chris@39 5599 DLLTOOL="$ac_cv_prog_DLLTOOL"
Chris@39 5600 fi
Chris@39 5601
Chris@39 5602 test -z "$DLLTOOL" && DLLTOOL=dlltool
Chris@39 5603
Chris@39 5604
Chris@39 5605
Chris@39 5606
Chris@39 5607
Chris@39 5608
Chris@39 5609
Chris@39 5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
Chris@39 5611 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
Chris@39 5612 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
Chris@39 5613 $as_echo_n "(cached) " >&6
Chris@39 5614 else
Chris@39 5615 lt_cv_sharedlib_from_linklib_cmd='unknown'
Chris@39 5616
Chris@39 5617 case $host_os in
Chris@39 5618 cygwin* | mingw* | pw32* | cegcc*)
Chris@39 5619 # two different shell functions defined in ltmain.sh
Chris@39 5620 # decide which to use based on capabilities of $DLLTOOL
Chris@39 5621 case `$DLLTOOL --help 2>&1` in
Chris@39 5622 *--identify-strict*)
Chris@39 5623 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
Chris@39 5624 ;;
Chris@39 5625 *)
Chris@39 5626 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
Chris@39 5627 ;;
Chris@39 5628 esac
Chris@39 5629 ;;
Chris@39 5630 *)
Chris@39 5631 # fallback: assume linklib IS sharedlib
Chris@39 5632 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
Chris@39 5633 ;;
Chris@39 5634 esac
Chris@39 5635
Chris@39 5636 fi
Chris@39 5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
Chris@39 5638 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
Chris@39 5639 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
Chris@39 5640 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
Chris@39 5641
Chris@39 5642
Chris@39 5643
Chris@39 5644
Chris@39 5645
Chris@39 5646
Chris@39 5647
Chris@39 5648
Chris@39 5649 if test -n "$ac_tool_prefix"; then
Chris@39 5650 for ac_prog in ar
Chris@39 5651 do
Chris@39 5652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@39 5653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@39 5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 5655 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 5656 if ${ac_cv_prog_AR+:} false; then :
Chris@39 5657 $as_echo_n "(cached) " >&6
Chris@39 5658 else
Chris@39 5659 if test -n "$AR"; then
Chris@39 5660 ac_cv_prog_AR="$AR" # Let the user override the test.
Chris@39 5661 else
Chris@39 5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 5663 for as_dir in $PATH
Chris@39 5664 do
Chris@39 5665 IFS=$as_save_IFS
Chris@39 5666 test -z "$as_dir" && as_dir=.
Chris@39 5667 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 5668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 5669 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Chris@39 5670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 5671 break 2
Chris@39 5672 fi
Chris@39 5673 done
Chris@39 5674 done
Chris@39 5675 IFS=$as_save_IFS
Chris@39 5676
Chris@39 5677 fi
Chris@39 5678 fi
Chris@39 5679 AR=$ac_cv_prog_AR
Chris@39 5680 if test -n "$AR"; then
Chris@39 5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Chris@39 5682 $as_echo "$AR" >&6; }
Chris@39 5683 else
Chris@39 5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 5685 $as_echo "no" >&6; }
Chris@39 5686 fi
Chris@39 5687
Chris@39 5688
Chris@39 5689 test -n "$AR" && break
Chris@39 5690 done
Chris@39 5691 fi
Chris@39 5692 if test -z "$AR"; then
Chris@39 5693 ac_ct_AR=$AR
Chris@39 5694 for ac_prog in ar
Chris@39 5695 do
Chris@39 5696 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@39 5697 set dummy $ac_prog; ac_word=$2
Chris@39 5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 5699 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 5700 if ${ac_cv_prog_ac_ct_AR+:} false; then :
Chris@39 5701 $as_echo_n "(cached) " >&6
Chris@39 5702 else
Chris@39 5703 if test -n "$ac_ct_AR"; then
Chris@39 5704 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Chris@39 5705 else
Chris@39 5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 5707 for as_dir in $PATH
Chris@39 5708 do
Chris@39 5709 IFS=$as_save_IFS
Chris@39 5710 test -z "$as_dir" && as_dir=.
Chris@39 5711 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 5712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 5713 ac_cv_prog_ac_ct_AR="$ac_prog"
Chris@39 5714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 5715 break 2
Chris@39 5716 fi
Chris@39 5717 done
Chris@39 5718 done
Chris@39 5719 IFS=$as_save_IFS
Chris@39 5720
Chris@39 5721 fi
Chris@39 5722 fi
Chris@39 5723 ac_ct_AR=$ac_cv_prog_ac_ct_AR
Chris@39 5724 if test -n "$ac_ct_AR"; then
Chris@39 5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Chris@39 5726 $as_echo "$ac_ct_AR" >&6; }
Chris@39 5727 else
Chris@39 5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 5729 $as_echo "no" >&6; }
Chris@39 5730 fi
Chris@39 5731
Chris@39 5732
Chris@39 5733 test -n "$ac_ct_AR" && break
Chris@39 5734 done
Chris@39 5735
Chris@39 5736 if test "x$ac_ct_AR" = x; then
Chris@39 5737 AR="false"
Chris@39 5738 else
Chris@39 5739 case $cross_compiling:$ac_tool_warned in
Chris@39 5740 yes:)
Chris@39 5741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 5742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 5743 ac_tool_warned=yes ;;
Chris@39 5744 esac
Chris@39 5745 AR=$ac_ct_AR
Chris@39 5746 fi
Chris@39 5747 fi
Chris@39 5748
Chris@39 5749 : ${AR=ar}
Chris@39 5750 : ${AR_FLAGS=cru}
Chris@39 5751
Chris@39 5752
Chris@39 5753
Chris@39 5754
Chris@39 5755
Chris@39 5756
Chris@39 5757
Chris@39 5758
Chris@39 5759
Chris@39 5760
Chris@39 5761
Chris@39 5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
Chris@39 5763 $as_echo_n "checking for archiver @FILE support... " >&6; }
Chris@39 5764 if ${lt_cv_ar_at_file+:} false; then :
Chris@39 5765 $as_echo_n "(cached) " >&6
Chris@39 5766 else
Chris@39 5767 lt_cv_ar_at_file=no
Chris@39 5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 5769 /* end confdefs.h. */
Chris@39 5770
Chris@39 5771 int
Chris@39 5772 main ()
Chris@39 5773 {
Chris@39 5774
Chris@39 5775 ;
Chris@39 5776 return 0;
Chris@39 5777 }
Chris@39 5778 _ACEOF
Chris@39 5779 if ac_fn_c_try_compile "$LINENO"; then :
Chris@39 5780 echo conftest.$ac_objext > conftest.lst
Chris@39 5781 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
Chris@39 5782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
Chris@39 5783 (eval $lt_ar_try) 2>&5
Chris@39 5784 ac_status=$?
Chris@39 5785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 5786 test $ac_status = 0; }
Chris@39 5787 if test "$ac_status" -eq 0; then
Chris@39 5788 # Ensure the archiver fails upon bogus file names.
Chris@39 5789 rm -f conftest.$ac_objext libconftest.a
Chris@39 5790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
Chris@39 5791 (eval $lt_ar_try) 2>&5
Chris@39 5792 ac_status=$?
Chris@39 5793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 5794 test $ac_status = 0; }
Chris@39 5795 if test "$ac_status" -ne 0; then
Chris@39 5796 lt_cv_ar_at_file=@
Chris@39 5797 fi
Chris@39 5798 fi
Chris@39 5799 rm -f conftest.* libconftest.a
Chris@39 5800
Chris@39 5801 fi
Chris@39 5802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 5803
Chris@39 5804 fi
Chris@39 5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
Chris@39 5806 $as_echo "$lt_cv_ar_at_file" >&6; }
Chris@39 5807
Chris@39 5808 if test "x$lt_cv_ar_at_file" = xno; then
Chris@39 5809 archiver_list_spec=
Chris@39 5810 else
Chris@39 5811 archiver_list_spec=$lt_cv_ar_at_file
Chris@39 5812 fi
Chris@39 5813
Chris@39 5814
Chris@39 5815
Chris@39 5816
Chris@39 5817
Chris@39 5818
Chris@39 5819
Chris@39 5820 if test -n "$ac_tool_prefix"; then
Chris@39 5821 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
Chris@39 5822 set dummy ${ac_tool_prefix}strip; ac_word=$2
Chris@39 5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 5824 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 5825 if ${ac_cv_prog_STRIP+:} false; then :
Chris@39 5826 $as_echo_n "(cached) " >&6
Chris@39 5827 else
Chris@39 5828 if test -n "$STRIP"; then
Chris@39 5829 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
Chris@39 5830 else
Chris@39 5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 5832 for as_dir in $PATH
Chris@39 5833 do
Chris@39 5834 IFS=$as_save_IFS
Chris@39 5835 test -z "$as_dir" && as_dir=.
Chris@39 5836 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 5837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 5838 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Chris@39 5839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 5840 break 2
Chris@39 5841 fi
Chris@39 5842 done
Chris@39 5843 done
Chris@39 5844 IFS=$as_save_IFS
Chris@39 5845
Chris@39 5846 fi
Chris@39 5847 fi
Chris@39 5848 STRIP=$ac_cv_prog_STRIP
Chris@39 5849 if test -n "$STRIP"; then
Chris@39 5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Chris@39 5851 $as_echo "$STRIP" >&6; }
Chris@39 5852 else
Chris@39 5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 5854 $as_echo "no" >&6; }
Chris@39 5855 fi
Chris@39 5856
Chris@39 5857
Chris@39 5858 fi
Chris@39 5859 if test -z "$ac_cv_prog_STRIP"; then
Chris@39 5860 ac_ct_STRIP=$STRIP
Chris@39 5861 # Extract the first word of "strip", so it can be a program name with args.
Chris@39 5862 set dummy strip; ac_word=$2
Chris@39 5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 5864 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 5865 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Chris@39 5866 $as_echo_n "(cached) " >&6
Chris@39 5867 else
Chris@39 5868 if test -n "$ac_ct_STRIP"; then
Chris@39 5869 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Chris@39 5870 else
Chris@39 5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 5872 for as_dir in $PATH
Chris@39 5873 do
Chris@39 5874 IFS=$as_save_IFS
Chris@39 5875 test -z "$as_dir" && as_dir=.
Chris@39 5876 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 5877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 5878 ac_cv_prog_ac_ct_STRIP="strip"
Chris@39 5879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 5880 break 2
Chris@39 5881 fi
Chris@39 5882 done
Chris@39 5883 done
Chris@39 5884 IFS=$as_save_IFS
Chris@39 5885
Chris@39 5886 fi
Chris@39 5887 fi
Chris@39 5888 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
Chris@39 5889 if test -n "$ac_ct_STRIP"; then
Chris@39 5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Chris@39 5891 $as_echo "$ac_ct_STRIP" >&6; }
Chris@39 5892 else
Chris@39 5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 5894 $as_echo "no" >&6; }
Chris@39 5895 fi
Chris@39 5896
Chris@39 5897 if test "x$ac_ct_STRIP" = x; then
Chris@39 5898 STRIP=":"
Chris@39 5899 else
Chris@39 5900 case $cross_compiling:$ac_tool_warned in
Chris@39 5901 yes:)
Chris@39 5902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 5903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 5904 ac_tool_warned=yes ;;
Chris@39 5905 esac
Chris@39 5906 STRIP=$ac_ct_STRIP
Chris@39 5907 fi
Chris@39 5908 else
Chris@39 5909 STRIP="$ac_cv_prog_STRIP"
Chris@39 5910 fi
Chris@39 5911
Chris@39 5912 test -z "$STRIP" && STRIP=:
Chris@39 5913
Chris@39 5914
Chris@39 5915
Chris@39 5916
Chris@39 5917
Chris@39 5918
Chris@39 5919 if test -n "$ac_tool_prefix"; then
Chris@39 5920 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
Chris@39 5921 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Chris@39 5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 5923 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 5924 if ${ac_cv_prog_RANLIB+:} false; then :
Chris@39 5925 $as_echo_n "(cached) " >&6
Chris@39 5926 else
Chris@39 5927 if test -n "$RANLIB"; then
Chris@39 5928 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
Chris@39 5929 else
Chris@39 5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 5931 for as_dir in $PATH
Chris@39 5932 do
Chris@39 5933 IFS=$as_save_IFS
Chris@39 5934 test -z "$as_dir" && as_dir=.
Chris@39 5935 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 5936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 5937 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Chris@39 5938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 5939 break 2
Chris@39 5940 fi
Chris@39 5941 done
Chris@39 5942 done
Chris@39 5943 IFS=$as_save_IFS
Chris@39 5944
Chris@39 5945 fi
Chris@39 5946 fi
Chris@39 5947 RANLIB=$ac_cv_prog_RANLIB
Chris@39 5948 if test -n "$RANLIB"; then
Chris@39 5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Chris@39 5950 $as_echo "$RANLIB" >&6; }
Chris@39 5951 else
Chris@39 5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 5953 $as_echo "no" >&6; }
Chris@39 5954 fi
Chris@39 5955
Chris@39 5956
Chris@39 5957 fi
Chris@39 5958 if test -z "$ac_cv_prog_RANLIB"; then
Chris@39 5959 ac_ct_RANLIB=$RANLIB
Chris@39 5960 # Extract the first word of "ranlib", so it can be a program name with args.
Chris@39 5961 set dummy ranlib; ac_word=$2
Chris@39 5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 5963 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 5964 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Chris@39 5965 $as_echo_n "(cached) " >&6
Chris@39 5966 else
Chris@39 5967 if test -n "$ac_ct_RANLIB"; then
Chris@39 5968 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Chris@39 5969 else
Chris@39 5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 5971 for as_dir in $PATH
Chris@39 5972 do
Chris@39 5973 IFS=$as_save_IFS
Chris@39 5974 test -z "$as_dir" && as_dir=.
Chris@39 5975 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 5976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 5977 ac_cv_prog_ac_ct_RANLIB="ranlib"
Chris@39 5978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 5979 break 2
Chris@39 5980 fi
Chris@39 5981 done
Chris@39 5982 done
Chris@39 5983 IFS=$as_save_IFS
Chris@39 5984
Chris@39 5985 fi
Chris@39 5986 fi
Chris@39 5987 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
Chris@39 5988 if test -n "$ac_ct_RANLIB"; then
Chris@39 5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Chris@39 5990 $as_echo "$ac_ct_RANLIB" >&6; }
Chris@39 5991 else
Chris@39 5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 5993 $as_echo "no" >&6; }
Chris@39 5994 fi
Chris@39 5995
Chris@39 5996 if test "x$ac_ct_RANLIB" = x; then
Chris@39 5997 RANLIB=":"
Chris@39 5998 else
Chris@39 5999 case $cross_compiling:$ac_tool_warned in
Chris@39 6000 yes:)
Chris@39 6001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 6002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 6003 ac_tool_warned=yes ;;
Chris@39 6004 esac
Chris@39 6005 RANLIB=$ac_ct_RANLIB
Chris@39 6006 fi
Chris@39 6007 else
Chris@39 6008 RANLIB="$ac_cv_prog_RANLIB"
Chris@39 6009 fi
Chris@39 6010
Chris@39 6011 test -z "$RANLIB" && RANLIB=:
Chris@39 6012
Chris@39 6013
Chris@39 6014
Chris@39 6015
Chris@39 6016
Chris@39 6017
Chris@39 6018 # Determine commands to create old-style static archives.
Chris@39 6019 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
Chris@39 6020 old_postinstall_cmds='chmod 644 $oldlib'
Chris@39 6021 old_postuninstall_cmds=
Chris@39 6022
Chris@39 6023 if test -n "$RANLIB"; then
Chris@39 6024 case $host_os in
Chris@39 6025 openbsd*)
Chris@39 6026 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
Chris@39 6027 ;;
Chris@39 6028 *)
Chris@39 6029 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
Chris@39 6030 ;;
Chris@39 6031 esac
Chris@39 6032 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
Chris@39 6033 fi
Chris@39 6034
Chris@39 6035 case $host_os in
Chris@39 6036 darwin*)
Chris@39 6037 lock_old_archive_extraction=yes ;;
Chris@39 6038 *)
Chris@39 6039 lock_old_archive_extraction=no ;;
Chris@39 6040 esac
Chris@39 6041
Chris@39 6042
Chris@39 6043
Chris@39 6044
Chris@39 6045
Chris@39 6046
Chris@39 6047
Chris@39 6048
Chris@39 6049
Chris@39 6050
Chris@39 6051
Chris@39 6052
Chris@39 6053
Chris@39 6054
Chris@39 6055
Chris@39 6056
Chris@39 6057
Chris@39 6058
Chris@39 6059
Chris@39 6060
Chris@39 6061
Chris@39 6062 for ac_prog in gawk mawk nawk awk
Chris@39 6063 do
Chris@39 6064 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@39 6065 set dummy $ac_prog; ac_word=$2
Chris@39 6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 6067 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 6068 if ${ac_cv_prog_AWK+:} false; then :
Chris@39 6069 $as_echo_n "(cached) " >&6
Chris@39 6070 else
Chris@39 6071 if test -n "$AWK"; then
Chris@39 6072 ac_cv_prog_AWK="$AWK" # Let the user override the test.
Chris@39 6073 else
Chris@39 6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 6075 for as_dir in $PATH
Chris@39 6076 do
Chris@39 6077 IFS=$as_save_IFS
Chris@39 6078 test -z "$as_dir" && as_dir=.
Chris@39 6079 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 6080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 6081 ac_cv_prog_AWK="$ac_prog"
Chris@39 6082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 6083 break 2
Chris@39 6084 fi
Chris@39 6085 done
Chris@39 6086 done
Chris@39 6087 IFS=$as_save_IFS
Chris@39 6088
Chris@39 6089 fi
Chris@39 6090 fi
Chris@39 6091 AWK=$ac_cv_prog_AWK
Chris@39 6092 if test -n "$AWK"; then
Chris@39 6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Chris@39 6094 $as_echo "$AWK" >&6; }
Chris@39 6095 else
Chris@39 6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 6097 $as_echo "no" >&6; }
Chris@39 6098 fi
Chris@39 6099
Chris@39 6100
Chris@39 6101 test -n "$AWK" && break
Chris@39 6102 done
Chris@39 6103
Chris@39 6104
Chris@39 6105
Chris@39 6106
Chris@39 6107
Chris@39 6108
Chris@39 6109
Chris@39 6110
Chris@39 6111
Chris@39 6112
Chris@39 6113
Chris@39 6114
Chris@39 6115
Chris@39 6116
Chris@39 6117
Chris@39 6118
Chris@39 6119
Chris@39 6120
Chris@39 6121
Chris@39 6122 # If no C compiler was specified, use CC.
Chris@39 6123 LTCC=${LTCC-"$CC"}
Chris@39 6124
Chris@39 6125 # If no C compiler flags were specified, use CFLAGS.
Chris@39 6126 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Chris@39 6127
Chris@39 6128 # Allow CC to be a program name with arguments.
Chris@39 6129 compiler=$CC
Chris@39 6130
Chris@39 6131
Chris@39 6132 # Check for command to grab the raw symbol name followed by C symbol from nm.
Chris@39 6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
Chris@39 6134 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Chris@39 6135 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Chris@39 6136 $as_echo_n "(cached) " >&6
Chris@39 6137 else
Chris@39 6138
Chris@39 6139 # These are sane defaults that work on at least a few old systems.
Chris@39 6140 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
Chris@39 6141
Chris@39 6142 # Character class describing NM global symbol codes.
Chris@39 6143 symcode='[BCDEGRST]'
Chris@39 6144
Chris@39 6145 # Regexp to match symbols that can be accessed directly from C.
Chris@39 6146 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
Chris@39 6147
Chris@39 6148 # Define system-specific variables.
Chris@39 6149 case $host_os in
Chris@39 6150 aix*)
Chris@39 6151 symcode='[BCDT]'
Chris@39 6152 ;;
Chris@39 6153 cygwin* | mingw* | pw32* | cegcc*)
Chris@39 6154 symcode='[ABCDGISTW]'
Chris@39 6155 ;;
Chris@39 6156 hpux*)
Chris@39 6157 if test "$host_cpu" = ia64; then
Chris@39 6158 symcode='[ABCDEGRST]'
Chris@39 6159 fi
Chris@39 6160 ;;
Chris@39 6161 irix* | nonstopux*)
Chris@39 6162 symcode='[BCDEGRST]'
Chris@39 6163 ;;
Chris@39 6164 osf*)
Chris@39 6165 symcode='[BCDEGQRST]'
Chris@39 6166 ;;
Chris@39 6167 solaris*)
Chris@39 6168 symcode='[BDRT]'
Chris@39 6169 ;;
Chris@39 6170 sco3.2v5*)
Chris@39 6171 symcode='[DT]'
Chris@39 6172 ;;
Chris@39 6173 sysv4.2uw2*)
Chris@39 6174 symcode='[DT]'
Chris@39 6175 ;;
Chris@39 6176 sysv5* | sco5v6* | unixware* | OpenUNIX*)
Chris@39 6177 symcode='[ABDT]'
Chris@39 6178 ;;
Chris@39 6179 sysv4)
Chris@39 6180 symcode='[DFNSTU]'
Chris@39 6181 ;;
Chris@39 6182 esac
Chris@39 6183
Chris@39 6184 # If we're using GNU nm, then use its standard symbol codes.
Chris@39 6185 case `$NM -V 2>&1` in
Chris@39 6186 *GNU* | *'with BFD'*)
Chris@39 6187 symcode='[ABCDGIRSTW]' ;;
Chris@39 6188 esac
Chris@39 6189
Chris@39 6190 # Transform an extracted symbol line into a proper C declaration.
Chris@39 6191 # Some systems (esp. on ia64) link data and code symbols differently,
Chris@39 6192 # so use this general approach.
Chris@39 6193 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
Chris@39 6194
Chris@39 6195 # Transform an extracted symbol line into symbol name and symbol address
Chris@39 6196 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
Chris@39 6197 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
Chris@39 6198
Chris@39 6199 # Handle CRLF in mingw tool chain
Chris@39 6200 opt_cr=
Chris@39 6201 case $build_os in
Chris@39 6202 mingw*)
Chris@39 6203 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
Chris@39 6204 ;;
Chris@39 6205 esac
Chris@39 6206
Chris@39 6207 # Try without a prefix underscore, then with it.
Chris@39 6208 for ac_symprfx in "" "_"; do
Chris@39 6209
Chris@39 6210 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
Chris@39 6211 symxfrm="\\1 $ac_symprfx\\2 \\2"
Chris@39 6212
Chris@39 6213 # Write the raw and C identifiers.
Chris@39 6214 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Chris@39 6215 # Fake it for dumpbin and say T for any non-static function
Chris@39 6216 # and D for any global variable.
Chris@39 6217 # Also find C++ and __fastcall symbols from MSVC++,
Chris@39 6218 # which start with @ or ?.
Chris@39 6219 lt_cv_sys_global_symbol_pipe="$AWK '"\
Chris@39 6220 " {last_section=section; section=\$ 3};"\
Chris@39 6221 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
Chris@39 6222 " \$ 0!~/External *\|/{next};"\
Chris@39 6223 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
Chris@39 6224 " {if(hide[section]) next};"\
Chris@39 6225 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
Chris@39 6226 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
Chris@39 6227 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
Chris@39 6228 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
Chris@39 6229 " ' prfx=^$ac_symprfx"
Chris@39 6230 else
Chris@39 6231 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
Chris@39 6232 fi
Chris@39 6233 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
Chris@39 6234
Chris@39 6235 # Check to see that the pipe works correctly.
Chris@39 6236 pipe_works=no
Chris@39 6237
Chris@39 6238 rm -f conftest*
Chris@39 6239 cat > conftest.$ac_ext <<_LT_EOF
Chris@39 6240 #ifdef __cplusplus
Chris@39 6241 extern "C" {
Chris@39 6242 #endif
Chris@39 6243 char nm_test_var;
Chris@39 6244 void nm_test_func(void);
Chris@39 6245 void nm_test_func(void){}
Chris@39 6246 #ifdef __cplusplus
Chris@39 6247 }
Chris@39 6248 #endif
Chris@39 6249 int main(){nm_test_var='a';nm_test_func();return(0);}
Chris@39 6250 _LT_EOF
Chris@39 6251
Chris@39 6252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@39 6253 (eval $ac_compile) 2>&5
Chris@39 6254 ac_status=$?
Chris@39 6255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 6256 test $ac_status = 0; }; then
Chris@39 6257 # Now try to grab the symbols.
Chris@39 6258 nlist=conftest.nm
Chris@39 6259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
Chris@39 6260 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
Chris@39 6261 ac_status=$?
Chris@39 6262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 6263 test $ac_status = 0; } && test -s "$nlist"; then
Chris@39 6264 # Try sorting and uniquifying the output.
Chris@39 6265 if sort "$nlist" | uniq > "$nlist"T; then
Chris@39 6266 mv -f "$nlist"T "$nlist"
Chris@39 6267 else
Chris@39 6268 rm -f "$nlist"T
Chris@39 6269 fi
Chris@39 6270
Chris@39 6271 # Make sure that we snagged all the symbols we need.
Chris@39 6272 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
Chris@39 6273 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
Chris@39 6274 cat <<_LT_EOF > conftest.$ac_ext
Chris@39 6275 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
Chris@39 6276 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
Chris@39 6277 /* DATA imports from DLLs on WIN32 con't be const, because runtime
Chris@39 6278 relocations are performed -- see ld's documentation on pseudo-relocs. */
Chris@39 6279 # define LT_DLSYM_CONST
Chris@39 6280 #elif defined(__osf__)
Chris@39 6281 /* This system does not cope well with relocations in const data. */
Chris@39 6282 # define LT_DLSYM_CONST
Chris@39 6283 #else
Chris@39 6284 # define LT_DLSYM_CONST const
Chris@39 6285 #endif
Chris@39 6286
Chris@39 6287 #ifdef __cplusplus
Chris@39 6288 extern "C" {
Chris@39 6289 #endif
Chris@39 6290
Chris@39 6291 _LT_EOF
Chris@39 6292 # Now generate the symbol file.
Chris@39 6293 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
Chris@39 6294
Chris@39 6295 cat <<_LT_EOF >> conftest.$ac_ext
Chris@39 6296
Chris@39 6297 /* The mapping between symbol names and symbols. */
Chris@39 6298 LT_DLSYM_CONST struct {
Chris@39 6299 const char *name;
Chris@39 6300 void *address;
Chris@39 6301 }
Chris@39 6302 lt__PROGRAM__LTX_preloaded_symbols[] =
Chris@39 6303 {
Chris@39 6304 { "@PROGRAM@", (void *) 0 },
Chris@39 6305 _LT_EOF
Chris@39 6306 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
Chris@39 6307 cat <<\_LT_EOF >> conftest.$ac_ext
Chris@39 6308 {0, (void *) 0}
Chris@39 6309 };
Chris@39 6310
Chris@39 6311 /* This works around a problem in FreeBSD linker */
Chris@39 6312 #ifdef FREEBSD_WORKAROUND
Chris@39 6313 static const void *lt_preloaded_setup() {
Chris@39 6314 return lt__PROGRAM__LTX_preloaded_symbols;
Chris@39 6315 }
Chris@39 6316 #endif
Chris@39 6317
Chris@39 6318 #ifdef __cplusplus
Chris@39 6319 }
Chris@39 6320 #endif
Chris@39 6321 _LT_EOF
Chris@39 6322 # Now try linking the two files.
Chris@39 6323 mv conftest.$ac_objext conftstm.$ac_objext
Chris@39 6324 lt_globsym_save_LIBS=$LIBS
Chris@39 6325 lt_globsym_save_CFLAGS=$CFLAGS
Chris@39 6326 LIBS="conftstm.$ac_objext"
Chris@39 6327 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Chris@39 6328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Chris@39 6329 (eval $ac_link) 2>&5
Chris@39 6330 ac_status=$?
Chris@39 6331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 6332 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
Chris@39 6333 pipe_works=yes
Chris@39 6334 fi
Chris@39 6335 LIBS=$lt_globsym_save_LIBS
Chris@39 6336 CFLAGS=$lt_globsym_save_CFLAGS
Chris@39 6337 else
Chris@39 6338 echo "cannot find nm_test_func in $nlist" >&5
Chris@39 6339 fi
Chris@39 6340 else
Chris@39 6341 echo "cannot find nm_test_var in $nlist" >&5
Chris@39 6342 fi
Chris@39 6343 else
Chris@39 6344 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
Chris@39 6345 fi
Chris@39 6346 else
Chris@39 6347 echo "$progname: failed program was:" >&5
Chris@39 6348 cat conftest.$ac_ext >&5
Chris@39 6349 fi
Chris@39 6350 rm -rf conftest* conftst*
Chris@39 6351
Chris@39 6352 # Do not use the global_symbol_pipe unless it works.
Chris@39 6353 if test "$pipe_works" = yes; then
Chris@39 6354 break
Chris@39 6355 else
Chris@39 6356 lt_cv_sys_global_symbol_pipe=
Chris@39 6357 fi
Chris@39 6358 done
Chris@39 6359
Chris@39 6360 fi
Chris@39 6361
Chris@39 6362 if test -z "$lt_cv_sys_global_symbol_pipe"; then
Chris@39 6363 lt_cv_sys_global_symbol_to_cdecl=
Chris@39 6364 fi
Chris@39 6365 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Chris@39 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
Chris@39 6367 $as_echo "failed" >&6; }
Chris@39 6368 else
Chris@39 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
Chris@39 6370 $as_echo "ok" >&6; }
Chris@39 6371 fi
Chris@39 6372
Chris@39 6373 # Response file support.
Chris@39 6374 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Chris@39 6375 nm_file_list_spec='@'
Chris@39 6376 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
Chris@39 6377 nm_file_list_spec='@'
Chris@39 6378 fi
Chris@39 6379
Chris@39 6380
Chris@39 6381
Chris@39 6382
Chris@39 6383
Chris@39 6384
Chris@39 6385
Chris@39 6386
Chris@39 6387
Chris@39 6388
Chris@39 6389
Chris@39 6390
Chris@39 6391
Chris@39 6392
Chris@39 6393
Chris@39 6394
Chris@39 6395
Chris@39 6396
Chris@39 6397
Chris@39 6398
Chris@39 6399
Chris@39 6400
Chris@39 6401
Chris@39 6402
Chris@39 6403
Chris@39 6404
Chris@39 6405
Chris@39 6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
Chris@39 6407 $as_echo_n "checking for sysroot... " >&6; }
Chris@39 6408
Chris@39 6409 # Check whether --with-sysroot was given.
Chris@39 6410 if test "${with_sysroot+set}" = set; then :
Chris@39 6411 withval=$with_sysroot;
Chris@39 6412 else
Chris@39 6413 with_sysroot=no
Chris@39 6414 fi
Chris@39 6415
Chris@39 6416
Chris@39 6417 lt_sysroot=
Chris@39 6418 case ${with_sysroot} in #(
Chris@39 6419 yes)
Chris@39 6420 if test "$GCC" = yes; then
Chris@39 6421 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
Chris@39 6422 fi
Chris@39 6423 ;; #(
Chris@39 6424 /*)
Chris@39 6425 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
Chris@39 6426 ;; #(
Chris@39 6427 no|'')
Chris@39 6428 ;; #(
Chris@39 6429 *)
Chris@39 6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
Chris@39 6431 $as_echo "${with_sysroot}" >&6; }
Chris@39 6432 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
Chris@39 6433 ;;
Chris@39 6434 esac
Chris@39 6435
Chris@39 6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
Chris@39 6437 $as_echo "${lt_sysroot:-no}" >&6; }
Chris@39 6438
Chris@39 6439
Chris@39 6440
Chris@39 6441
Chris@39 6442
Chris@39 6443 # Check whether --enable-libtool-lock was given.
Chris@39 6444 if test "${enable_libtool_lock+set}" = set; then :
Chris@39 6445 enableval=$enable_libtool_lock;
Chris@39 6446 fi
Chris@39 6447
Chris@39 6448 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Chris@39 6449
Chris@39 6450 # Some flags need to be propagated to the compiler or linker for good
Chris@39 6451 # libtool support.
Chris@39 6452 case $host in
Chris@39 6453 ia64-*-hpux*)
Chris@39 6454 # Find out which ABI we are using.
Chris@39 6455 echo 'int i;' > conftest.$ac_ext
Chris@39 6456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@39 6457 (eval $ac_compile) 2>&5
Chris@39 6458 ac_status=$?
Chris@39 6459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 6460 test $ac_status = 0; }; then
Chris@39 6461 case `/usr/bin/file conftest.$ac_objext` in
Chris@39 6462 *ELF-32*)
Chris@39 6463 HPUX_IA64_MODE="32"
Chris@39 6464 ;;
Chris@39 6465 *ELF-64*)
Chris@39 6466 HPUX_IA64_MODE="64"
Chris@39 6467 ;;
Chris@39 6468 esac
Chris@39 6469 fi
Chris@39 6470 rm -rf conftest*
Chris@39 6471 ;;
Chris@39 6472 *-*-irix6*)
Chris@39 6473 # Find out which ABI we are using.
Chris@39 6474 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
Chris@39 6475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@39 6476 (eval $ac_compile) 2>&5
Chris@39 6477 ac_status=$?
Chris@39 6478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 6479 test $ac_status = 0; }; then
Chris@39 6480 if test "$lt_cv_prog_gnu_ld" = yes; then
Chris@39 6481 case `/usr/bin/file conftest.$ac_objext` in
Chris@39 6482 *32-bit*)
Chris@39 6483 LD="${LD-ld} -melf32bsmip"
Chris@39 6484 ;;
Chris@39 6485 *N32*)
Chris@39 6486 LD="${LD-ld} -melf32bmipn32"
Chris@39 6487 ;;
Chris@39 6488 *64-bit*)
Chris@39 6489 LD="${LD-ld} -melf64bmip"
Chris@39 6490 ;;
Chris@39 6491 esac
Chris@39 6492 else
Chris@39 6493 case `/usr/bin/file conftest.$ac_objext` in
Chris@39 6494 *32-bit*)
Chris@39 6495 LD="${LD-ld} -32"
Chris@39 6496 ;;
Chris@39 6497 *N32*)
Chris@39 6498 LD="${LD-ld} -n32"
Chris@39 6499 ;;
Chris@39 6500 *64-bit*)
Chris@39 6501 LD="${LD-ld} -64"
Chris@39 6502 ;;
Chris@39 6503 esac
Chris@39 6504 fi
Chris@39 6505 fi
Chris@39 6506 rm -rf conftest*
Chris@39 6507 ;;
Chris@39 6508
Chris@39 6509 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
Chris@39 6510 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Chris@39 6511 # Find out which ABI we are using.
Chris@39 6512 echo 'int i;' > conftest.$ac_ext
Chris@39 6513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@39 6514 (eval $ac_compile) 2>&5
Chris@39 6515 ac_status=$?
Chris@39 6516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 6517 test $ac_status = 0; }; then
Chris@39 6518 case `/usr/bin/file conftest.o` in
Chris@39 6519 *32-bit*)
Chris@39 6520 case $host in
Chris@39 6521 x86_64-*kfreebsd*-gnu)
Chris@39 6522 LD="${LD-ld} -m elf_i386_fbsd"
Chris@39 6523 ;;
Chris@39 6524 x86_64-*linux*)
Chris@39 6525 LD="${LD-ld} -m elf_i386"
Chris@39 6526 ;;
Chris@39 6527 ppc64-*linux*|powerpc64-*linux*)
Chris@39 6528 LD="${LD-ld} -m elf32ppclinux"
Chris@39 6529 ;;
Chris@39 6530 s390x-*linux*)
Chris@39 6531 LD="${LD-ld} -m elf_s390"
Chris@39 6532 ;;
Chris@39 6533 sparc64-*linux*)
Chris@39 6534 LD="${LD-ld} -m elf32_sparc"
Chris@39 6535 ;;
Chris@39 6536 esac
Chris@39 6537 ;;
Chris@39 6538 *64-bit*)
Chris@39 6539 case $host in
Chris@39 6540 x86_64-*kfreebsd*-gnu)
Chris@39 6541 LD="${LD-ld} -m elf_x86_64_fbsd"
Chris@39 6542 ;;
Chris@39 6543 x86_64-*linux*)
Chris@39 6544 LD="${LD-ld} -m elf_x86_64"
Chris@39 6545 ;;
Chris@39 6546 ppc*-*linux*|powerpc*-*linux*)
Chris@39 6547 LD="${LD-ld} -m elf64ppc"
Chris@39 6548 ;;
Chris@39 6549 s390*-*linux*|s390*-*tpf*)
Chris@39 6550 LD="${LD-ld} -m elf64_s390"
Chris@39 6551 ;;
Chris@39 6552 sparc*-*linux*)
Chris@39 6553 LD="${LD-ld} -m elf64_sparc"
Chris@39 6554 ;;
Chris@39 6555 esac
Chris@39 6556 ;;
Chris@39 6557 esac
Chris@39 6558 fi
Chris@39 6559 rm -rf conftest*
Chris@39 6560 ;;
Chris@39 6561
Chris@39 6562 *-*-sco3.2v5*)
Chris@39 6563 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
Chris@39 6564 SAVE_CFLAGS="$CFLAGS"
Chris@39 6565 CFLAGS="$CFLAGS -belf"
Chris@39 6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
Chris@39 6567 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Chris@39 6568 if ${lt_cv_cc_needs_belf+:} false; then :
Chris@39 6569 $as_echo_n "(cached) " >&6
Chris@39 6570 else
Chris@39 6571 ac_ext=c
Chris@39 6572 ac_cpp='$CPP $CPPFLAGS'
Chris@39 6573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@39 6574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@39 6575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@39 6576
Chris@39 6577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 6578 /* end confdefs.h. */
Chris@39 6579
Chris@39 6580 int
Chris@39 6581 main ()
Chris@39 6582 {
Chris@39 6583
Chris@39 6584 ;
Chris@39 6585 return 0;
Chris@39 6586 }
Chris@39 6587 _ACEOF
Chris@39 6588 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 6589 lt_cv_cc_needs_belf=yes
Chris@39 6590 else
Chris@39 6591 lt_cv_cc_needs_belf=no
Chris@39 6592 fi
Chris@39 6593 rm -f core conftest.err conftest.$ac_objext \
Chris@39 6594 conftest$ac_exeext conftest.$ac_ext
Chris@39 6595 ac_ext=c
Chris@39 6596 ac_cpp='$CPP $CPPFLAGS'
Chris@39 6597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@39 6598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@39 6599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@39 6600
Chris@39 6601 fi
Chris@39 6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
Chris@39 6603 $as_echo "$lt_cv_cc_needs_belf" >&6; }
Chris@39 6604 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
Chris@39 6605 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
Chris@39 6606 CFLAGS="$SAVE_CFLAGS"
Chris@39 6607 fi
Chris@39 6608 ;;
Chris@39 6609 sparc*-*solaris*)
Chris@39 6610 # Find out which ABI we are using.
Chris@39 6611 echo 'int i;' > conftest.$ac_ext
Chris@39 6612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@39 6613 (eval $ac_compile) 2>&5
Chris@39 6614 ac_status=$?
Chris@39 6615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 6616 test $ac_status = 0; }; then
Chris@39 6617 case `/usr/bin/file conftest.o` in
Chris@39 6618 *64-bit*)
Chris@39 6619 case $lt_cv_prog_gnu_ld in
Chris@39 6620 yes*) LD="${LD-ld} -m elf64_sparc" ;;
Chris@39 6621 *)
Chris@39 6622 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
Chris@39 6623 LD="${LD-ld} -64"
Chris@39 6624 fi
Chris@39 6625 ;;
Chris@39 6626 esac
Chris@39 6627 ;;
Chris@39 6628 esac
Chris@39 6629 fi
Chris@39 6630 rm -rf conftest*
Chris@39 6631 ;;
Chris@39 6632 esac
Chris@39 6633
Chris@39 6634 need_locks="$enable_libtool_lock"
Chris@39 6635
Chris@39 6636 if test -n "$ac_tool_prefix"; then
Chris@39 6637 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
Chris@39 6638 set dummy ${ac_tool_prefix}mt; ac_word=$2
Chris@39 6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 6640 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 6641 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
Chris@39 6642 $as_echo_n "(cached) " >&6
Chris@39 6643 else
Chris@39 6644 if test -n "$MANIFEST_TOOL"; then
Chris@39 6645 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
Chris@39 6646 else
Chris@39 6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 6648 for as_dir in $PATH
Chris@39 6649 do
Chris@39 6650 IFS=$as_save_IFS
Chris@39 6651 test -z "$as_dir" && as_dir=.
Chris@39 6652 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 6653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 6654 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
Chris@39 6655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 6656 break 2
Chris@39 6657 fi
Chris@39 6658 done
Chris@39 6659 done
Chris@39 6660 IFS=$as_save_IFS
Chris@39 6661
Chris@39 6662 fi
Chris@39 6663 fi
Chris@39 6664 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
Chris@39 6665 if test -n "$MANIFEST_TOOL"; then
Chris@39 6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
Chris@39 6667 $as_echo "$MANIFEST_TOOL" >&6; }
Chris@39 6668 else
Chris@39 6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 6670 $as_echo "no" >&6; }
Chris@39 6671 fi
Chris@39 6672
Chris@39 6673
Chris@39 6674 fi
Chris@39 6675 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
Chris@39 6676 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
Chris@39 6677 # Extract the first word of "mt", so it can be a program name with args.
Chris@39 6678 set dummy mt; ac_word=$2
Chris@39 6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 6680 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 6681 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
Chris@39 6682 $as_echo_n "(cached) " >&6
Chris@39 6683 else
Chris@39 6684 if test -n "$ac_ct_MANIFEST_TOOL"; then
Chris@39 6685 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
Chris@39 6686 else
Chris@39 6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 6688 for as_dir in $PATH
Chris@39 6689 do
Chris@39 6690 IFS=$as_save_IFS
Chris@39 6691 test -z "$as_dir" && as_dir=.
Chris@39 6692 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 6693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 6694 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
Chris@39 6695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 6696 break 2
Chris@39 6697 fi
Chris@39 6698 done
Chris@39 6699 done
Chris@39 6700 IFS=$as_save_IFS
Chris@39 6701
Chris@39 6702 fi
Chris@39 6703 fi
Chris@39 6704 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
Chris@39 6705 if test -n "$ac_ct_MANIFEST_TOOL"; then
Chris@39 6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
Chris@39 6707 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
Chris@39 6708 else
Chris@39 6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 6710 $as_echo "no" >&6; }
Chris@39 6711 fi
Chris@39 6712
Chris@39 6713 if test "x$ac_ct_MANIFEST_TOOL" = x; then
Chris@39 6714 MANIFEST_TOOL=":"
Chris@39 6715 else
Chris@39 6716 case $cross_compiling:$ac_tool_warned in
Chris@39 6717 yes:)
Chris@39 6718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 6719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 6720 ac_tool_warned=yes ;;
Chris@39 6721 esac
Chris@39 6722 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
Chris@39 6723 fi
Chris@39 6724 else
Chris@39 6725 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
Chris@39 6726 fi
Chris@39 6727
Chris@39 6728 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
Chris@39 6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
Chris@39 6730 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
Chris@39 6731 if ${lt_cv_path_mainfest_tool+:} false; then :
Chris@39 6732 $as_echo_n "(cached) " >&6
Chris@39 6733 else
Chris@39 6734 lt_cv_path_mainfest_tool=no
Chris@39 6735 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
Chris@39 6736 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
Chris@39 6737 cat conftest.err >&5
Chris@39 6738 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
Chris@39 6739 lt_cv_path_mainfest_tool=yes
Chris@39 6740 fi
Chris@39 6741 rm -f conftest*
Chris@39 6742 fi
Chris@39 6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
Chris@39 6744 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
Chris@39 6745 if test "x$lt_cv_path_mainfest_tool" != xyes; then
Chris@39 6746 MANIFEST_TOOL=:
Chris@39 6747 fi
Chris@39 6748
Chris@39 6749
Chris@39 6750
Chris@39 6751
Chris@39 6752
Chris@39 6753
Chris@39 6754 case $host_os in
Chris@39 6755 rhapsody* | darwin*)
Chris@39 6756 if test -n "$ac_tool_prefix"; then
Chris@39 6757 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
Chris@39 6758 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Chris@39 6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 6760 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 6761 if ${ac_cv_prog_DSYMUTIL+:} false; then :
Chris@39 6762 $as_echo_n "(cached) " >&6
Chris@39 6763 else
Chris@39 6764 if test -n "$DSYMUTIL"; then
Chris@39 6765 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
Chris@39 6766 else
Chris@39 6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 6768 for as_dir in $PATH
Chris@39 6769 do
Chris@39 6770 IFS=$as_save_IFS
Chris@39 6771 test -z "$as_dir" && as_dir=.
Chris@39 6772 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 6773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 6774 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Chris@39 6775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 6776 break 2
Chris@39 6777 fi
Chris@39 6778 done
Chris@39 6779 done
Chris@39 6780 IFS=$as_save_IFS
Chris@39 6781
Chris@39 6782 fi
Chris@39 6783 fi
Chris@39 6784 DSYMUTIL=$ac_cv_prog_DSYMUTIL
Chris@39 6785 if test -n "$DSYMUTIL"; then
Chris@39 6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
Chris@39 6787 $as_echo "$DSYMUTIL" >&6; }
Chris@39 6788 else
Chris@39 6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 6790 $as_echo "no" >&6; }
Chris@39 6791 fi
Chris@39 6792
Chris@39 6793
Chris@39 6794 fi
Chris@39 6795 if test -z "$ac_cv_prog_DSYMUTIL"; then
Chris@39 6796 ac_ct_DSYMUTIL=$DSYMUTIL
Chris@39 6797 # Extract the first word of "dsymutil", so it can be a program name with args.
Chris@39 6798 set dummy dsymutil; ac_word=$2
Chris@39 6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 6800 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 6801 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Chris@39 6802 $as_echo_n "(cached) " >&6
Chris@39 6803 else
Chris@39 6804 if test -n "$ac_ct_DSYMUTIL"; then
Chris@39 6805 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
Chris@39 6806 else
Chris@39 6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 6808 for as_dir in $PATH
Chris@39 6809 do
Chris@39 6810 IFS=$as_save_IFS
Chris@39 6811 test -z "$as_dir" && as_dir=.
Chris@39 6812 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 6813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 6814 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Chris@39 6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 6816 break 2
Chris@39 6817 fi
Chris@39 6818 done
Chris@39 6819 done
Chris@39 6820 IFS=$as_save_IFS
Chris@39 6821
Chris@39 6822 fi
Chris@39 6823 fi
Chris@39 6824 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
Chris@39 6825 if test -n "$ac_ct_DSYMUTIL"; then
Chris@39 6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
Chris@39 6827 $as_echo "$ac_ct_DSYMUTIL" >&6; }
Chris@39 6828 else
Chris@39 6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 6830 $as_echo "no" >&6; }
Chris@39 6831 fi
Chris@39 6832
Chris@39 6833 if test "x$ac_ct_DSYMUTIL" = x; then
Chris@39 6834 DSYMUTIL=":"
Chris@39 6835 else
Chris@39 6836 case $cross_compiling:$ac_tool_warned in
Chris@39 6837 yes:)
Chris@39 6838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 6839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 6840 ac_tool_warned=yes ;;
Chris@39 6841 esac
Chris@39 6842 DSYMUTIL=$ac_ct_DSYMUTIL
Chris@39 6843 fi
Chris@39 6844 else
Chris@39 6845 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
Chris@39 6846 fi
Chris@39 6847
Chris@39 6848 if test -n "$ac_tool_prefix"; then
Chris@39 6849 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
Chris@39 6850 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Chris@39 6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 6852 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 6853 if ${ac_cv_prog_NMEDIT+:} false; then :
Chris@39 6854 $as_echo_n "(cached) " >&6
Chris@39 6855 else
Chris@39 6856 if test -n "$NMEDIT"; then
Chris@39 6857 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
Chris@39 6858 else
Chris@39 6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 6860 for as_dir in $PATH
Chris@39 6861 do
Chris@39 6862 IFS=$as_save_IFS
Chris@39 6863 test -z "$as_dir" && as_dir=.
Chris@39 6864 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 6865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 6866 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Chris@39 6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 6868 break 2
Chris@39 6869 fi
Chris@39 6870 done
Chris@39 6871 done
Chris@39 6872 IFS=$as_save_IFS
Chris@39 6873
Chris@39 6874 fi
Chris@39 6875 fi
Chris@39 6876 NMEDIT=$ac_cv_prog_NMEDIT
Chris@39 6877 if test -n "$NMEDIT"; then
Chris@39 6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
Chris@39 6879 $as_echo "$NMEDIT" >&6; }
Chris@39 6880 else
Chris@39 6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 6882 $as_echo "no" >&6; }
Chris@39 6883 fi
Chris@39 6884
Chris@39 6885
Chris@39 6886 fi
Chris@39 6887 if test -z "$ac_cv_prog_NMEDIT"; then
Chris@39 6888 ac_ct_NMEDIT=$NMEDIT
Chris@39 6889 # Extract the first word of "nmedit", so it can be a program name with args.
Chris@39 6890 set dummy nmedit; ac_word=$2
Chris@39 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 6892 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 6893 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Chris@39 6894 $as_echo_n "(cached) " >&6
Chris@39 6895 else
Chris@39 6896 if test -n "$ac_ct_NMEDIT"; then
Chris@39 6897 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
Chris@39 6898 else
Chris@39 6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 6900 for as_dir in $PATH
Chris@39 6901 do
Chris@39 6902 IFS=$as_save_IFS
Chris@39 6903 test -z "$as_dir" && as_dir=.
Chris@39 6904 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 6905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 6906 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Chris@39 6907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 6908 break 2
Chris@39 6909 fi
Chris@39 6910 done
Chris@39 6911 done
Chris@39 6912 IFS=$as_save_IFS
Chris@39 6913
Chris@39 6914 fi
Chris@39 6915 fi
Chris@39 6916 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
Chris@39 6917 if test -n "$ac_ct_NMEDIT"; then
Chris@39 6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
Chris@39 6919 $as_echo "$ac_ct_NMEDIT" >&6; }
Chris@39 6920 else
Chris@39 6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 6922 $as_echo "no" >&6; }
Chris@39 6923 fi
Chris@39 6924
Chris@39 6925 if test "x$ac_ct_NMEDIT" = x; then
Chris@39 6926 NMEDIT=":"
Chris@39 6927 else
Chris@39 6928 case $cross_compiling:$ac_tool_warned in
Chris@39 6929 yes:)
Chris@39 6930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 6931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 6932 ac_tool_warned=yes ;;
Chris@39 6933 esac
Chris@39 6934 NMEDIT=$ac_ct_NMEDIT
Chris@39 6935 fi
Chris@39 6936 else
Chris@39 6937 NMEDIT="$ac_cv_prog_NMEDIT"
Chris@39 6938 fi
Chris@39 6939
Chris@39 6940 if test -n "$ac_tool_prefix"; then
Chris@39 6941 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
Chris@39 6942 set dummy ${ac_tool_prefix}lipo; ac_word=$2
Chris@39 6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 6944 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 6945 if ${ac_cv_prog_LIPO+:} false; then :
Chris@39 6946 $as_echo_n "(cached) " >&6
Chris@39 6947 else
Chris@39 6948 if test -n "$LIPO"; then
Chris@39 6949 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
Chris@39 6950 else
Chris@39 6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 6952 for as_dir in $PATH
Chris@39 6953 do
Chris@39 6954 IFS=$as_save_IFS
Chris@39 6955 test -z "$as_dir" && as_dir=.
Chris@39 6956 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 6957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 6958 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Chris@39 6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 6960 break 2
Chris@39 6961 fi
Chris@39 6962 done
Chris@39 6963 done
Chris@39 6964 IFS=$as_save_IFS
Chris@39 6965
Chris@39 6966 fi
Chris@39 6967 fi
Chris@39 6968 LIPO=$ac_cv_prog_LIPO
Chris@39 6969 if test -n "$LIPO"; then
Chris@39 6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
Chris@39 6971 $as_echo "$LIPO" >&6; }
Chris@39 6972 else
Chris@39 6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 6974 $as_echo "no" >&6; }
Chris@39 6975 fi
Chris@39 6976
Chris@39 6977
Chris@39 6978 fi
Chris@39 6979 if test -z "$ac_cv_prog_LIPO"; then
Chris@39 6980 ac_ct_LIPO=$LIPO
Chris@39 6981 # Extract the first word of "lipo", so it can be a program name with args.
Chris@39 6982 set dummy lipo; ac_word=$2
Chris@39 6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 6984 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 6985 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Chris@39 6986 $as_echo_n "(cached) " >&6
Chris@39 6987 else
Chris@39 6988 if test -n "$ac_ct_LIPO"; then
Chris@39 6989 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
Chris@39 6990 else
Chris@39 6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 6992 for as_dir in $PATH
Chris@39 6993 do
Chris@39 6994 IFS=$as_save_IFS
Chris@39 6995 test -z "$as_dir" && as_dir=.
Chris@39 6996 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 6997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 6998 ac_cv_prog_ac_ct_LIPO="lipo"
Chris@39 6999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 7000 break 2
Chris@39 7001 fi
Chris@39 7002 done
Chris@39 7003 done
Chris@39 7004 IFS=$as_save_IFS
Chris@39 7005
Chris@39 7006 fi
Chris@39 7007 fi
Chris@39 7008 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
Chris@39 7009 if test -n "$ac_ct_LIPO"; then
Chris@39 7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
Chris@39 7011 $as_echo "$ac_ct_LIPO" >&6; }
Chris@39 7012 else
Chris@39 7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 7014 $as_echo "no" >&6; }
Chris@39 7015 fi
Chris@39 7016
Chris@39 7017 if test "x$ac_ct_LIPO" = x; then
Chris@39 7018 LIPO=":"
Chris@39 7019 else
Chris@39 7020 case $cross_compiling:$ac_tool_warned in
Chris@39 7021 yes:)
Chris@39 7022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 7023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 7024 ac_tool_warned=yes ;;
Chris@39 7025 esac
Chris@39 7026 LIPO=$ac_ct_LIPO
Chris@39 7027 fi
Chris@39 7028 else
Chris@39 7029 LIPO="$ac_cv_prog_LIPO"
Chris@39 7030 fi
Chris@39 7031
Chris@39 7032 if test -n "$ac_tool_prefix"; then
Chris@39 7033 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
Chris@39 7034 set dummy ${ac_tool_prefix}otool; ac_word=$2
Chris@39 7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 7036 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 7037 if ${ac_cv_prog_OTOOL+:} false; then :
Chris@39 7038 $as_echo_n "(cached) " >&6
Chris@39 7039 else
Chris@39 7040 if test -n "$OTOOL"; then
Chris@39 7041 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
Chris@39 7042 else
Chris@39 7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 7044 for as_dir in $PATH
Chris@39 7045 do
Chris@39 7046 IFS=$as_save_IFS
Chris@39 7047 test -z "$as_dir" && as_dir=.
Chris@39 7048 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 7049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 7050 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Chris@39 7051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 7052 break 2
Chris@39 7053 fi
Chris@39 7054 done
Chris@39 7055 done
Chris@39 7056 IFS=$as_save_IFS
Chris@39 7057
Chris@39 7058 fi
Chris@39 7059 fi
Chris@39 7060 OTOOL=$ac_cv_prog_OTOOL
Chris@39 7061 if test -n "$OTOOL"; then
Chris@39 7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
Chris@39 7063 $as_echo "$OTOOL" >&6; }
Chris@39 7064 else
Chris@39 7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 7066 $as_echo "no" >&6; }
Chris@39 7067 fi
Chris@39 7068
Chris@39 7069
Chris@39 7070 fi
Chris@39 7071 if test -z "$ac_cv_prog_OTOOL"; then
Chris@39 7072 ac_ct_OTOOL=$OTOOL
Chris@39 7073 # Extract the first word of "otool", so it can be a program name with args.
Chris@39 7074 set dummy otool; ac_word=$2
Chris@39 7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 7076 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 7077 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Chris@39 7078 $as_echo_n "(cached) " >&6
Chris@39 7079 else
Chris@39 7080 if test -n "$ac_ct_OTOOL"; then
Chris@39 7081 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
Chris@39 7082 else
Chris@39 7083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 7084 for as_dir in $PATH
Chris@39 7085 do
Chris@39 7086 IFS=$as_save_IFS
Chris@39 7087 test -z "$as_dir" && as_dir=.
Chris@39 7088 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 7089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 7090 ac_cv_prog_ac_ct_OTOOL="otool"
Chris@39 7091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 7092 break 2
Chris@39 7093 fi
Chris@39 7094 done
Chris@39 7095 done
Chris@39 7096 IFS=$as_save_IFS
Chris@39 7097
Chris@39 7098 fi
Chris@39 7099 fi
Chris@39 7100 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
Chris@39 7101 if test -n "$ac_ct_OTOOL"; then
Chris@39 7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
Chris@39 7103 $as_echo "$ac_ct_OTOOL" >&6; }
Chris@39 7104 else
Chris@39 7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 7106 $as_echo "no" >&6; }
Chris@39 7107 fi
Chris@39 7108
Chris@39 7109 if test "x$ac_ct_OTOOL" = x; then
Chris@39 7110 OTOOL=":"
Chris@39 7111 else
Chris@39 7112 case $cross_compiling:$ac_tool_warned in
Chris@39 7113 yes:)
Chris@39 7114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 7115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 7116 ac_tool_warned=yes ;;
Chris@39 7117 esac
Chris@39 7118 OTOOL=$ac_ct_OTOOL
Chris@39 7119 fi
Chris@39 7120 else
Chris@39 7121 OTOOL="$ac_cv_prog_OTOOL"
Chris@39 7122 fi
Chris@39 7123
Chris@39 7124 if test -n "$ac_tool_prefix"; then
Chris@39 7125 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
Chris@39 7126 set dummy ${ac_tool_prefix}otool64; ac_word=$2
Chris@39 7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 7128 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 7129 if ${ac_cv_prog_OTOOL64+:} false; then :
Chris@39 7130 $as_echo_n "(cached) " >&6
Chris@39 7131 else
Chris@39 7132 if test -n "$OTOOL64"; then
Chris@39 7133 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
Chris@39 7134 else
Chris@39 7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 7136 for as_dir in $PATH
Chris@39 7137 do
Chris@39 7138 IFS=$as_save_IFS
Chris@39 7139 test -z "$as_dir" && as_dir=.
Chris@39 7140 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 7141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 7142 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Chris@39 7143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 7144 break 2
Chris@39 7145 fi
Chris@39 7146 done
Chris@39 7147 done
Chris@39 7148 IFS=$as_save_IFS
Chris@39 7149
Chris@39 7150 fi
Chris@39 7151 fi
Chris@39 7152 OTOOL64=$ac_cv_prog_OTOOL64
Chris@39 7153 if test -n "$OTOOL64"; then
Chris@39 7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
Chris@39 7155 $as_echo "$OTOOL64" >&6; }
Chris@39 7156 else
Chris@39 7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 7158 $as_echo "no" >&6; }
Chris@39 7159 fi
Chris@39 7160
Chris@39 7161
Chris@39 7162 fi
Chris@39 7163 if test -z "$ac_cv_prog_OTOOL64"; then
Chris@39 7164 ac_ct_OTOOL64=$OTOOL64
Chris@39 7165 # Extract the first word of "otool64", so it can be a program name with args.
Chris@39 7166 set dummy otool64; ac_word=$2
Chris@39 7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 7168 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 7169 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Chris@39 7170 $as_echo_n "(cached) " >&6
Chris@39 7171 else
Chris@39 7172 if test -n "$ac_ct_OTOOL64"; then
Chris@39 7173 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
Chris@39 7174 else
Chris@39 7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 7176 for as_dir in $PATH
Chris@39 7177 do
Chris@39 7178 IFS=$as_save_IFS
Chris@39 7179 test -z "$as_dir" && as_dir=.
Chris@39 7180 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 7181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 7182 ac_cv_prog_ac_ct_OTOOL64="otool64"
Chris@39 7183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 7184 break 2
Chris@39 7185 fi
Chris@39 7186 done
Chris@39 7187 done
Chris@39 7188 IFS=$as_save_IFS
Chris@39 7189
Chris@39 7190 fi
Chris@39 7191 fi
Chris@39 7192 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
Chris@39 7193 if test -n "$ac_ct_OTOOL64"; then
Chris@39 7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
Chris@39 7195 $as_echo "$ac_ct_OTOOL64" >&6; }
Chris@39 7196 else
Chris@39 7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 7198 $as_echo "no" >&6; }
Chris@39 7199 fi
Chris@39 7200
Chris@39 7201 if test "x$ac_ct_OTOOL64" = x; then
Chris@39 7202 OTOOL64=":"
Chris@39 7203 else
Chris@39 7204 case $cross_compiling:$ac_tool_warned in
Chris@39 7205 yes:)
Chris@39 7206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 7207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 7208 ac_tool_warned=yes ;;
Chris@39 7209 esac
Chris@39 7210 OTOOL64=$ac_ct_OTOOL64
Chris@39 7211 fi
Chris@39 7212 else
Chris@39 7213 OTOOL64="$ac_cv_prog_OTOOL64"
Chris@39 7214 fi
Chris@39 7215
Chris@39 7216
Chris@39 7217
Chris@39 7218
Chris@39 7219
Chris@39 7220
Chris@39 7221
Chris@39 7222
Chris@39 7223
Chris@39 7224
Chris@39 7225
Chris@39 7226
Chris@39 7227
Chris@39 7228
Chris@39 7229
Chris@39 7230
Chris@39 7231
Chris@39 7232
Chris@39 7233
Chris@39 7234
Chris@39 7235
Chris@39 7236
Chris@39 7237
Chris@39 7238
Chris@39 7239
Chris@39 7240
Chris@39 7241
Chris@39 7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
Chris@39 7243 $as_echo_n "checking for -single_module linker flag... " >&6; }
Chris@39 7244 if ${lt_cv_apple_cc_single_mod+:} false; then :
Chris@39 7245 $as_echo_n "(cached) " >&6
Chris@39 7246 else
Chris@39 7247 lt_cv_apple_cc_single_mod=no
Chris@39 7248 if test -z "${LT_MULTI_MODULE}"; then
Chris@39 7249 # By default we will add the -single_module flag. You can override
Chris@39 7250 # by either setting the environment variable LT_MULTI_MODULE
Chris@39 7251 # non-empty at configure time, or by adding -multi_module to the
Chris@39 7252 # link flags.
Chris@39 7253 rm -rf libconftest.dylib*
Chris@39 7254 echo "int foo(void){return 1;}" > conftest.c
Chris@39 7255 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
Chris@39 7256 -dynamiclib -Wl,-single_module conftest.c" >&5
Chris@39 7257 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
Chris@39 7258 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
Chris@39 7259 _lt_result=$?
Chris@39 7260 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
Chris@39 7261 lt_cv_apple_cc_single_mod=yes
Chris@39 7262 else
Chris@39 7263 cat conftest.err >&5
Chris@39 7264 fi
Chris@39 7265 rm -rf libconftest.dylib*
Chris@39 7266 rm -f conftest.*
Chris@39 7267 fi
Chris@39 7268 fi
Chris@39 7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
Chris@39 7270 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Chris@39 7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
Chris@39 7272 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Chris@39 7273 if ${lt_cv_ld_exported_symbols_list+:} false; then :
Chris@39 7274 $as_echo_n "(cached) " >&6
Chris@39 7275 else
Chris@39 7276 lt_cv_ld_exported_symbols_list=no
Chris@39 7277 save_LDFLAGS=$LDFLAGS
Chris@39 7278 echo "_main" > conftest.sym
Chris@39 7279 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Chris@39 7280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 7281 /* end confdefs.h. */
Chris@39 7282
Chris@39 7283 int
Chris@39 7284 main ()
Chris@39 7285 {
Chris@39 7286
Chris@39 7287 ;
Chris@39 7288 return 0;
Chris@39 7289 }
Chris@39 7290 _ACEOF
Chris@39 7291 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 7292 lt_cv_ld_exported_symbols_list=yes
Chris@39 7293 else
Chris@39 7294 lt_cv_ld_exported_symbols_list=no
Chris@39 7295 fi
Chris@39 7296 rm -f core conftest.err conftest.$ac_objext \
Chris@39 7297 conftest$ac_exeext conftest.$ac_ext
Chris@39 7298 LDFLAGS="$save_LDFLAGS"
Chris@39 7299
Chris@39 7300 fi
Chris@39 7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
Chris@39 7302 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Chris@39 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
Chris@39 7304 $as_echo_n "checking for -force_load linker flag... " >&6; }
Chris@39 7305 if ${lt_cv_ld_force_load+:} false; then :
Chris@39 7306 $as_echo_n "(cached) " >&6
Chris@39 7307 else
Chris@39 7308 lt_cv_ld_force_load=no
Chris@39 7309 cat > conftest.c << _LT_EOF
Chris@39 7310 int forced_loaded() { return 2;}
Chris@39 7311 _LT_EOF
Chris@39 7312 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
Chris@39 7313 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
Chris@39 7314 echo "$AR cru libconftest.a conftest.o" >&5
Chris@39 7315 $AR cru libconftest.a conftest.o 2>&5
Chris@39 7316 echo "$RANLIB libconftest.a" >&5
Chris@39 7317 $RANLIB libconftest.a 2>&5
Chris@39 7318 cat > conftest.c << _LT_EOF
Chris@39 7319 int main() { return 0;}
Chris@39 7320 _LT_EOF
Chris@39 7321 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
Chris@39 7322 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
Chris@39 7323 _lt_result=$?
Chris@39 7324 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
Chris@39 7325 lt_cv_ld_force_load=yes
Chris@39 7326 else
Chris@39 7327 cat conftest.err >&5
Chris@39 7328 fi
Chris@39 7329 rm -f conftest.err libconftest.a conftest conftest.c
Chris@39 7330 rm -rf conftest.dSYM
Chris@39 7331
Chris@39 7332 fi
Chris@39 7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
Chris@39 7334 $as_echo "$lt_cv_ld_force_load" >&6; }
Chris@39 7335 case $host_os in
Chris@39 7336 rhapsody* | darwin1.[012])
Chris@39 7337 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
Chris@39 7338 darwin1.*)
Chris@39 7339 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
Chris@39 7340 darwin*) # darwin 5.x on
Chris@39 7341 # if running on 10.5 or later, the deployment target defaults
Chris@39 7342 # to the OS version, if on x86, and 10.4, the deployment
Chris@39 7343 # target defaults to 10.4. Don't you love it?
Chris@39 7344 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
Chris@39 7345 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
Chris@39 7346 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
Chris@39 7347 10.[012]*)
Chris@39 7348 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
Chris@39 7349 10.*)
Chris@39 7350 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
Chris@39 7351 esac
Chris@39 7352 ;;
Chris@39 7353 esac
Chris@39 7354 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
Chris@39 7355 _lt_dar_single_mod='$single_module'
Chris@39 7356 fi
Chris@39 7357 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
Chris@39 7358 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
Chris@39 7359 else
Chris@39 7360 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
Chris@39 7361 fi
Chris@39 7362 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
Chris@39 7363 _lt_dsymutil='~$DSYMUTIL $lib || :'
Chris@39 7364 else
Chris@39 7365 _lt_dsymutil=
Chris@39 7366 fi
Chris@39 7367 ;;
Chris@39 7368 esac
Chris@39 7369
Chris@39 7370 ac_ext=c
Chris@39 7371 ac_cpp='$CPP $CPPFLAGS'
Chris@39 7372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@39 7373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@39 7374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@39 7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Chris@39 7376 $as_echo_n "checking how to run the C preprocessor... " >&6; }
Chris@39 7377 # On Suns, sometimes $CPP names a directory.
Chris@39 7378 if test -n "$CPP" && test -d "$CPP"; then
Chris@39 7379 CPP=
Chris@39 7380 fi
Chris@39 7381 if test -z "$CPP"; then
Chris@39 7382 if ${ac_cv_prog_CPP+:} false; then :
Chris@39 7383 $as_echo_n "(cached) " >&6
Chris@39 7384 else
Chris@39 7385 # Double quotes because CPP needs to be expanded
Chris@39 7386 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
Chris@39 7387 do
Chris@39 7388 ac_preproc_ok=false
Chris@39 7389 for ac_c_preproc_warn_flag in '' yes
Chris@39 7390 do
Chris@39 7391 # Use a header file that comes with gcc, so configuring glibc
Chris@39 7392 # with a fresh cross-compiler works.
Chris@39 7393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@39 7394 # <limits.h> exists even on freestanding compilers.
Chris@39 7395 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@39 7396 # not just through cpp. "Syntax error" is here to catch this case.
Chris@39 7397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 7398 /* end confdefs.h. */
Chris@39 7399 #ifdef __STDC__
Chris@39 7400 # include <limits.h>
Chris@39 7401 #else
Chris@39 7402 # include <assert.h>
Chris@39 7403 #endif
Chris@39 7404 Syntax error
Chris@39 7405 _ACEOF
Chris@39 7406 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@39 7407
Chris@39 7408 else
Chris@39 7409 # Broken: fails on valid input.
Chris@39 7410 continue
Chris@39 7411 fi
Chris@39 7412 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@39 7413
Chris@39 7414 # OK, works on sane cases. Now check whether nonexistent headers
Chris@39 7415 # can be detected and how.
Chris@39 7416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 7417 /* end confdefs.h. */
Chris@39 7418 #include <ac_nonexistent.h>
Chris@39 7419 _ACEOF
Chris@39 7420 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@39 7421 # Broken: success on invalid input.
Chris@39 7422 continue
Chris@39 7423 else
Chris@39 7424 # Passes both tests.
Chris@39 7425 ac_preproc_ok=:
Chris@39 7426 break
Chris@39 7427 fi
Chris@39 7428 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@39 7429
Chris@39 7430 done
Chris@39 7431 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@39 7432 rm -f conftest.i conftest.err conftest.$ac_ext
Chris@39 7433 if $ac_preproc_ok; then :
Chris@39 7434 break
Chris@39 7435 fi
Chris@39 7436
Chris@39 7437 done
Chris@39 7438 ac_cv_prog_CPP=$CPP
Chris@39 7439
Chris@39 7440 fi
Chris@39 7441 CPP=$ac_cv_prog_CPP
Chris@39 7442 else
Chris@39 7443 ac_cv_prog_CPP=$CPP
Chris@39 7444 fi
Chris@39 7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Chris@39 7446 $as_echo "$CPP" >&6; }
Chris@39 7447 ac_preproc_ok=false
Chris@39 7448 for ac_c_preproc_warn_flag in '' yes
Chris@39 7449 do
Chris@39 7450 # Use a header file that comes with gcc, so configuring glibc
Chris@39 7451 # with a fresh cross-compiler works.
Chris@39 7452 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@39 7453 # <limits.h> exists even on freestanding compilers.
Chris@39 7454 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@39 7455 # not just through cpp. "Syntax error" is here to catch this case.
Chris@39 7456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 7457 /* end confdefs.h. */
Chris@39 7458 #ifdef __STDC__
Chris@39 7459 # include <limits.h>
Chris@39 7460 #else
Chris@39 7461 # include <assert.h>
Chris@39 7462 #endif
Chris@39 7463 Syntax error
Chris@39 7464 _ACEOF
Chris@39 7465 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@39 7466
Chris@39 7467 else
Chris@39 7468 # Broken: fails on valid input.
Chris@39 7469 continue
Chris@39 7470 fi
Chris@39 7471 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@39 7472
Chris@39 7473 # OK, works on sane cases. Now check whether nonexistent headers
Chris@39 7474 # can be detected and how.
Chris@39 7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 7476 /* end confdefs.h. */
Chris@39 7477 #include <ac_nonexistent.h>
Chris@39 7478 _ACEOF
Chris@39 7479 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@39 7480 # Broken: success on invalid input.
Chris@39 7481 continue
Chris@39 7482 else
Chris@39 7483 # Passes both tests.
Chris@39 7484 ac_preproc_ok=:
Chris@39 7485 break
Chris@39 7486 fi
Chris@39 7487 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@39 7488
Chris@39 7489 done
Chris@39 7490 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@39 7491 rm -f conftest.i conftest.err conftest.$ac_ext
Chris@39 7492 if $ac_preproc_ok; then :
Chris@39 7493
Chris@39 7494 else
Chris@39 7495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@39 7496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@39 7497 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
Chris@39 7498 See \`config.log' for more details" "$LINENO" 5; }
Chris@39 7499 fi
Chris@39 7500
Chris@39 7501 ac_ext=c
Chris@39 7502 ac_cpp='$CPP $CPPFLAGS'
Chris@39 7503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@39 7504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@39 7505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@39 7506
Chris@39 7507
Chris@39 7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Chris@39 7509 $as_echo_n "checking for ANSI C header files... " >&6; }
Chris@39 7510 if ${ac_cv_header_stdc+:} false; then :
Chris@39 7511 $as_echo_n "(cached) " >&6
Chris@39 7512 else
Chris@39 7513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 7514 /* end confdefs.h. */
Chris@39 7515 #include <stdlib.h>
Chris@39 7516 #include <stdarg.h>
Chris@39 7517 #include <string.h>
Chris@39 7518 #include <float.h>
Chris@39 7519
Chris@39 7520 int
Chris@39 7521 main ()
Chris@39 7522 {
Chris@39 7523
Chris@39 7524 ;
Chris@39 7525 return 0;
Chris@39 7526 }
Chris@39 7527 _ACEOF
Chris@39 7528 if ac_fn_c_try_compile "$LINENO"; then :
Chris@39 7529 ac_cv_header_stdc=yes
Chris@39 7530 else
Chris@39 7531 ac_cv_header_stdc=no
Chris@39 7532 fi
Chris@39 7533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 7534
Chris@39 7535 if test $ac_cv_header_stdc = yes; then
Chris@39 7536 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Chris@39 7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 7538 /* end confdefs.h. */
Chris@39 7539 #include <string.h>
Chris@39 7540
Chris@39 7541 _ACEOF
Chris@39 7542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@39 7543 $EGREP "memchr" >/dev/null 2>&1; then :
Chris@39 7544
Chris@39 7545 else
Chris@39 7546 ac_cv_header_stdc=no
Chris@39 7547 fi
Chris@39 7548 rm -f conftest*
Chris@39 7549
Chris@39 7550 fi
Chris@39 7551
Chris@39 7552 if test $ac_cv_header_stdc = yes; then
Chris@39 7553 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Chris@39 7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 7555 /* end confdefs.h. */
Chris@39 7556 #include <stdlib.h>
Chris@39 7557
Chris@39 7558 _ACEOF
Chris@39 7559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@39 7560 $EGREP "free" >/dev/null 2>&1; then :
Chris@39 7561
Chris@39 7562 else
Chris@39 7563 ac_cv_header_stdc=no
Chris@39 7564 fi
Chris@39 7565 rm -f conftest*
Chris@39 7566
Chris@39 7567 fi
Chris@39 7568
Chris@39 7569 if test $ac_cv_header_stdc = yes; then
Chris@39 7570 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Chris@39 7571 if test "$cross_compiling" = yes; then :
Chris@39 7572 :
Chris@39 7573 else
Chris@39 7574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 7575 /* end confdefs.h. */
Chris@39 7576 #include <ctype.h>
Chris@39 7577 #include <stdlib.h>
Chris@39 7578 #if ((' ' & 0x0FF) == 0x020)
Chris@39 7579 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
Chris@39 7580 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Chris@39 7581 #else
Chris@39 7582 # define ISLOWER(c) \
Chris@39 7583 (('a' <= (c) && (c) <= 'i') \
Chris@39 7584 || ('j' <= (c) && (c) <= 'r') \
Chris@39 7585 || ('s' <= (c) && (c) <= 'z'))
Chris@39 7586 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
Chris@39 7587 #endif
Chris@39 7588
Chris@39 7589 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Chris@39 7590 int
Chris@39 7591 main ()
Chris@39 7592 {
Chris@39 7593 int i;
Chris@39 7594 for (i = 0; i < 256; i++)
Chris@39 7595 if (XOR (islower (i), ISLOWER (i))
Chris@39 7596 || toupper (i) != TOUPPER (i))
Chris@39 7597 return 2;
Chris@39 7598 return 0;
Chris@39 7599 }
Chris@39 7600 _ACEOF
Chris@39 7601 if ac_fn_c_try_run "$LINENO"; then :
Chris@39 7602
Chris@39 7603 else
Chris@39 7604 ac_cv_header_stdc=no
Chris@39 7605 fi
Chris@39 7606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@39 7607 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@39 7608 fi
Chris@39 7609
Chris@39 7610 fi
Chris@39 7611 fi
Chris@39 7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Chris@39 7613 $as_echo "$ac_cv_header_stdc" >&6; }
Chris@39 7614 if test $ac_cv_header_stdc = yes; then
Chris@39 7615
Chris@39 7616 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
Chris@39 7617
Chris@39 7618 fi
Chris@39 7619
Chris@39 7620 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
Chris@39 7621 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Chris@39 7622 inttypes.h stdint.h unistd.h
Chris@39 7623 do :
Chris@39 7624 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Chris@39 7625 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
Chris@39 7626 "
Chris@39 7627 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@39 7628 cat >>confdefs.h <<_ACEOF
Chris@39 7629 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris@39 7630 _ACEOF
Chris@39 7631
Chris@39 7632 fi
Chris@39 7633
Chris@39 7634 done
Chris@39 7635
Chris@39 7636
Chris@39 7637 for ac_header in dlfcn.h
Chris@39 7638 do :
Chris@39 7639 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
Chris@39 7640 "
Chris@39 7641 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Chris@39 7642 cat >>confdefs.h <<_ACEOF
Chris@39 7643 #define HAVE_DLFCN_H 1
Chris@39 7644 _ACEOF
Chris@39 7645
Chris@39 7646 fi
Chris@39 7647
Chris@39 7648 done
Chris@39 7649
Chris@39 7650
Chris@39 7651
Chris@39 7652
Chris@39 7653 func_stripname_cnf ()
Chris@39 7654 {
Chris@39 7655 case ${2} in
Chris@39 7656 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
Chris@39 7657 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
Chris@39 7658 esac
Chris@39 7659 } # func_stripname_cnf
Chris@39 7660
Chris@39 7661
Chris@39 7662
Chris@39 7663
Chris@39 7664
Chris@39 7665 # Set options
Chris@39 7666
Chris@39 7667
Chris@39 7668
Chris@39 7669 enable_dlopen=no
Chris@39 7670
Chris@39 7671
Chris@39 7672
Chris@39 7673 # Check whether --enable-shared was given.
Chris@39 7674 if test "${enable_shared+set}" = set; then :
Chris@39 7675 enableval=$enable_shared; p=${PACKAGE-default}
Chris@39 7676 case $enableval in
Chris@39 7677 yes) enable_shared=yes ;;
Chris@39 7678 no) enable_shared=no ;;
Chris@39 7679 *)
Chris@39 7680 enable_shared=no
Chris@39 7681 # Look at the argument we got. We use all the common list separators.
Chris@39 7682 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
Chris@39 7683 for pkg in $enableval; do
Chris@39 7684 IFS="$lt_save_ifs"
Chris@39 7685 if test "X$pkg" = "X$p"; then
Chris@39 7686 enable_shared=yes
Chris@39 7687 fi
Chris@39 7688 done
Chris@39 7689 IFS="$lt_save_ifs"
Chris@39 7690 ;;
Chris@39 7691 esac
Chris@39 7692 else
Chris@39 7693 enable_shared=yes
Chris@39 7694 fi
Chris@39 7695
Chris@39 7696
Chris@39 7697
Chris@39 7698
Chris@39 7699
Chris@39 7700
Chris@39 7701
Chris@39 7702
Chris@39 7703
Chris@39 7704 # Check whether --enable-static was given.
Chris@39 7705 if test "${enable_static+set}" = set; then :
Chris@39 7706 enableval=$enable_static; p=${PACKAGE-default}
Chris@39 7707 case $enableval in
Chris@39 7708 yes) enable_static=yes ;;
Chris@39 7709 no) enable_static=no ;;
Chris@39 7710 *)
Chris@39 7711 enable_static=no
Chris@39 7712 # Look at the argument we got. We use all the common list separators.
Chris@39 7713 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
Chris@39 7714 for pkg in $enableval; do
Chris@39 7715 IFS="$lt_save_ifs"
Chris@39 7716 if test "X$pkg" = "X$p"; then
Chris@39 7717 enable_static=yes
Chris@39 7718 fi
Chris@39 7719 done
Chris@39 7720 IFS="$lt_save_ifs"
Chris@39 7721 ;;
Chris@39 7722 esac
Chris@39 7723 else
Chris@39 7724 enable_static=yes
Chris@39 7725 fi
Chris@39 7726
Chris@39 7727
Chris@39 7728
Chris@39 7729
Chris@39 7730
Chris@39 7731
Chris@39 7732
Chris@39 7733
Chris@39 7734
Chris@39 7735
Chris@39 7736 # Check whether --with-pic was given.
Chris@39 7737 if test "${with_pic+set}" = set; then :
Chris@39 7738 withval=$with_pic; pic_mode="$withval"
Chris@39 7739 else
Chris@39 7740 pic_mode=default
Chris@39 7741 fi
Chris@39 7742
Chris@39 7743
Chris@39 7744 test -z "$pic_mode" && pic_mode=default
Chris@39 7745
Chris@39 7746
Chris@39 7747
Chris@39 7748
Chris@39 7749
Chris@39 7750
Chris@39 7751
Chris@39 7752 # Check whether --enable-fast-install was given.
Chris@39 7753 if test "${enable_fast_install+set}" = set; then :
Chris@39 7754 enableval=$enable_fast_install; p=${PACKAGE-default}
Chris@39 7755 case $enableval in
Chris@39 7756 yes) enable_fast_install=yes ;;
Chris@39 7757 no) enable_fast_install=no ;;
Chris@39 7758 *)
Chris@39 7759 enable_fast_install=no
Chris@39 7760 # Look at the argument we got. We use all the common list separators.
Chris@39 7761 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
Chris@39 7762 for pkg in $enableval; do
Chris@39 7763 IFS="$lt_save_ifs"
Chris@39 7764 if test "X$pkg" = "X$p"; then
Chris@39 7765 enable_fast_install=yes
Chris@39 7766 fi
Chris@39 7767 done
Chris@39 7768 IFS="$lt_save_ifs"
Chris@39 7769 ;;
Chris@39 7770 esac
Chris@39 7771 else
Chris@39 7772 enable_fast_install=yes
Chris@39 7773 fi
Chris@39 7774
Chris@39 7775
Chris@39 7776
Chris@39 7777
Chris@39 7778
Chris@39 7779
Chris@39 7780
Chris@39 7781
Chris@39 7782
Chris@39 7783
Chris@39 7784
Chris@39 7785 # This can be used to rebuild libtool when needed
Chris@39 7786 LIBTOOL_DEPS="$ltmain"
Chris@39 7787
Chris@39 7788 # Always use our own libtool.
Chris@39 7789 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
Chris@39 7790
Chris@39 7791
Chris@39 7792
Chris@39 7793
Chris@39 7794
Chris@39 7795
Chris@39 7796
Chris@39 7797
Chris@39 7798
Chris@39 7799
Chris@39 7800
Chris@39 7801
Chris@39 7802
Chris@39 7803
Chris@39 7804
Chris@39 7805
Chris@39 7806
Chris@39 7807
Chris@39 7808
Chris@39 7809
Chris@39 7810
Chris@39 7811
Chris@39 7812
Chris@39 7813
Chris@39 7814
Chris@39 7815
Chris@39 7816 test -z "$LN_S" && LN_S="ln -s"
Chris@39 7817
Chris@39 7818
Chris@39 7819
Chris@39 7820
Chris@39 7821
Chris@39 7822
Chris@39 7823
Chris@39 7824
Chris@39 7825
Chris@39 7826
Chris@39 7827
Chris@39 7828
Chris@39 7829
Chris@39 7830
Chris@39 7831 if test -n "${ZSH_VERSION+set}" ; then
Chris@39 7832 setopt NO_GLOB_SUBST
Chris@39 7833 fi
Chris@39 7834
Chris@39 7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
Chris@39 7836 $as_echo_n "checking for objdir... " >&6; }
Chris@39 7837 if ${lt_cv_objdir+:} false; then :
Chris@39 7838 $as_echo_n "(cached) " >&6
Chris@39 7839 else
Chris@39 7840 rm -f .libs 2>/dev/null
Chris@39 7841 mkdir .libs 2>/dev/null
Chris@39 7842 if test -d .libs; then
Chris@39 7843 lt_cv_objdir=.libs
Chris@39 7844 else
Chris@39 7845 # MS-DOS does not allow filenames that begin with a dot.
Chris@39 7846 lt_cv_objdir=_libs
Chris@39 7847 fi
Chris@39 7848 rmdir .libs 2>/dev/null
Chris@39 7849 fi
Chris@39 7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
Chris@39 7851 $as_echo "$lt_cv_objdir" >&6; }
Chris@39 7852 objdir=$lt_cv_objdir
Chris@39 7853
Chris@39 7854
Chris@39 7855
Chris@39 7856
Chris@39 7857
Chris@39 7858 cat >>confdefs.h <<_ACEOF
Chris@39 7859 #define LT_OBJDIR "$lt_cv_objdir/"
Chris@39 7860 _ACEOF
Chris@39 7861
Chris@39 7862
Chris@39 7863
Chris@39 7864
Chris@39 7865 case $host_os in
Chris@39 7866 aix3*)
Chris@39 7867 # AIX sometimes has problems with the GCC collect2 program. For some
Chris@39 7868 # reason, if we set the COLLECT_NAMES environment variable, the problems
Chris@39 7869 # vanish in a puff of smoke.
Chris@39 7870 if test "X${COLLECT_NAMES+set}" != Xset; then
Chris@39 7871 COLLECT_NAMES=
Chris@39 7872 export COLLECT_NAMES
Chris@39 7873 fi
Chris@39 7874 ;;
Chris@39 7875 esac
Chris@39 7876
Chris@39 7877 # Global variables:
Chris@39 7878 ofile=libtool
Chris@39 7879 can_build_shared=yes
Chris@39 7880
Chris@39 7881 # All known linkers require a `.a' archive for static linking (except MSVC,
Chris@39 7882 # which needs '.lib').
Chris@39 7883 libext=a
Chris@39 7884
Chris@39 7885 with_gnu_ld="$lt_cv_prog_gnu_ld"
Chris@39 7886
Chris@39 7887 old_CC="$CC"
Chris@39 7888 old_CFLAGS="$CFLAGS"
Chris@39 7889
Chris@39 7890 # Set sane defaults for various variables
Chris@39 7891 test -z "$CC" && CC=cc
Chris@39 7892 test -z "$LTCC" && LTCC=$CC
Chris@39 7893 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
Chris@39 7894 test -z "$LD" && LD=ld
Chris@39 7895 test -z "$ac_objext" && ac_objext=o
Chris@39 7896
Chris@39 7897 for cc_temp in $compiler""; do
Chris@39 7898 case $cc_temp in
Chris@39 7899 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
Chris@39 7900 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
Chris@39 7901 \-*) ;;
Chris@39 7902 *) break;;
Chris@39 7903 esac
Chris@39 7904 done
Chris@39 7905 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Chris@39 7906
Chris@39 7907
Chris@39 7908 # Only perform the check for file, if the check method requires it
Chris@39 7909 test -z "$MAGIC_CMD" && MAGIC_CMD=file
Chris@39 7910 case $deplibs_check_method in
Chris@39 7911 file_magic*)
Chris@39 7912 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Chris@39 7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
Chris@39 7914 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Chris@39 7915 if ${lt_cv_path_MAGIC_CMD+:} false; then :
Chris@39 7916 $as_echo_n "(cached) " >&6
Chris@39 7917 else
Chris@39 7918 case $MAGIC_CMD in
Chris@39 7919 [\\/*] | ?:[\\/]*)
Chris@39 7920 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
Chris@39 7921 ;;
Chris@39 7922 *)
Chris@39 7923 lt_save_MAGIC_CMD="$MAGIC_CMD"
Chris@39 7924 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@39 7925 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
Chris@39 7926 for ac_dir in $ac_dummy; do
Chris@39 7927 IFS="$lt_save_ifs"
Chris@39 7928 test -z "$ac_dir" && ac_dir=.
Chris@39 7929 if test -f $ac_dir/${ac_tool_prefix}file; then
Chris@39 7930 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
Chris@39 7931 if test -n "$file_magic_test_file"; then
Chris@39 7932 case $deplibs_check_method in
Chris@39 7933 "file_magic "*)
Chris@39 7934 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Chris@39 7935 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Chris@39 7936 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
Chris@39 7937 $EGREP "$file_magic_regex" > /dev/null; then
Chris@39 7938 :
Chris@39 7939 else
Chris@39 7940 cat <<_LT_EOF 1>&2
Chris@39 7941
Chris@39 7942 *** Warning: the command libtool uses to detect shared libraries,
Chris@39 7943 *** $file_magic_cmd, produces output that libtool cannot recognize.
Chris@39 7944 *** The result is that libtool may fail to recognize shared libraries
Chris@39 7945 *** as such. This will affect the creation of libtool libraries that
Chris@39 7946 *** depend on shared libraries, but programs linked with such libtool
Chris@39 7947 *** libraries will work regardless of this problem. Nevertheless, you
Chris@39 7948 *** may want to report the problem to your system manager and/or to
Chris@39 7949 *** bug-libtool@gnu.org
Chris@39 7950
Chris@39 7951 _LT_EOF
Chris@39 7952 fi ;;
Chris@39 7953 esac
Chris@39 7954 fi
Chris@39 7955 break
Chris@39 7956 fi
Chris@39 7957 done
Chris@39 7958 IFS="$lt_save_ifs"
Chris@39 7959 MAGIC_CMD="$lt_save_MAGIC_CMD"
Chris@39 7960 ;;
Chris@39 7961 esac
Chris@39 7962 fi
Chris@39 7963
Chris@39 7964 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Chris@39 7965 if test -n "$MAGIC_CMD"; then
Chris@39 7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Chris@39 7967 $as_echo "$MAGIC_CMD" >&6; }
Chris@39 7968 else
Chris@39 7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 7970 $as_echo "no" >&6; }
Chris@39 7971 fi
Chris@39 7972
Chris@39 7973
Chris@39 7974
Chris@39 7975
Chris@39 7976
Chris@39 7977 if test -z "$lt_cv_path_MAGIC_CMD"; then
Chris@39 7978 if test -n "$ac_tool_prefix"; then
Chris@39 7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
Chris@39 7980 $as_echo_n "checking for file... " >&6; }
Chris@39 7981 if ${lt_cv_path_MAGIC_CMD+:} false; then :
Chris@39 7982 $as_echo_n "(cached) " >&6
Chris@39 7983 else
Chris@39 7984 case $MAGIC_CMD in
Chris@39 7985 [\\/*] | ?:[\\/]*)
Chris@39 7986 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
Chris@39 7987 ;;
Chris@39 7988 *)
Chris@39 7989 lt_save_MAGIC_CMD="$MAGIC_CMD"
Chris@39 7990 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@39 7991 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
Chris@39 7992 for ac_dir in $ac_dummy; do
Chris@39 7993 IFS="$lt_save_ifs"
Chris@39 7994 test -z "$ac_dir" && ac_dir=.
Chris@39 7995 if test -f $ac_dir/file; then
Chris@39 7996 lt_cv_path_MAGIC_CMD="$ac_dir/file"
Chris@39 7997 if test -n "$file_magic_test_file"; then
Chris@39 7998 case $deplibs_check_method in
Chris@39 7999 "file_magic "*)
Chris@39 8000 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Chris@39 8001 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Chris@39 8002 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
Chris@39 8003 $EGREP "$file_magic_regex" > /dev/null; then
Chris@39 8004 :
Chris@39 8005 else
Chris@39 8006 cat <<_LT_EOF 1>&2
Chris@39 8007
Chris@39 8008 *** Warning: the command libtool uses to detect shared libraries,
Chris@39 8009 *** $file_magic_cmd, produces output that libtool cannot recognize.
Chris@39 8010 *** The result is that libtool may fail to recognize shared libraries
Chris@39 8011 *** as such. This will affect the creation of libtool libraries that
Chris@39 8012 *** depend on shared libraries, but programs linked with such libtool
Chris@39 8013 *** libraries will work regardless of this problem. Nevertheless, you
Chris@39 8014 *** may want to report the problem to your system manager and/or to
Chris@39 8015 *** bug-libtool@gnu.org
Chris@39 8016
Chris@39 8017 _LT_EOF
Chris@39 8018 fi ;;
Chris@39 8019 esac
Chris@39 8020 fi
Chris@39 8021 break
Chris@39 8022 fi
Chris@39 8023 done
Chris@39 8024 IFS="$lt_save_ifs"
Chris@39 8025 MAGIC_CMD="$lt_save_MAGIC_CMD"
Chris@39 8026 ;;
Chris@39 8027 esac
Chris@39 8028 fi
Chris@39 8029
Chris@39 8030 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Chris@39 8031 if test -n "$MAGIC_CMD"; then
Chris@39 8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Chris@39 8033 $as_echo "$MAGIC_CMD" >&6; }
Chris@39 8034 else
Chris@39 8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 8036 $as_echo "no" >&6; }
Chris@39 8037 fi
Chris@39 8038
Chris@39 8039
Chris@39 8040 else
Chris@39 8041 MAGIC_CMD=:
Chris@39 8042 fi
Chris@39 8043 fi
Chris@39 8044
Chris@39 8045 fi
Chris@39 8046 ;;
Chris@39 8047 esac
Chris@39 8048
Chris@39 8049 # Use C for the default configuration in the libtool script
Chris@39 8050
Chris@39 8051 lt_save_CC="$CC"
Chris@39 8052 ac_ext=c
Chris@39 8053 ac_cpp='$CPP $CPPFLAGS'
Chris@39 8054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@39 8055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@39 8056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@39 8057
Chris@39 8058
Chris@39 8059 # Source file extension for C test sources.
Chris@39 8060 ac_ext=c
Chris@39 8061
Chris@39 8062 # Object file extension for compiled C test sources.
Chris@39 8063 objext=o
Chris@39 8064 objext=$objext
Chris@39 8065
Chris@39 8066 # Code to be used in simple compile tests
Chris@39 8067 lt_simple_compile_test_code="int some_variable = 0;"
Chris@39 8068
Chris@39 8069 # Code to be used in simple link tests
Chris@39 8070 lt_simple_link_test_code='int main(){return(0);}'
Chris@39 8071
Chris@39 8072
Chris@39 8073
Chris@39 8074
Chris@39 8075
Chris@39 8076
Chris@39 8077
Chris@39 8078 # If no C compiler was specified, use CC.
Chris@39 8079 LTCC=${LTCC-"$CC"}
Chris@39 8080
Chris@39 8081 # If no C compiler flags were specified, use CFLAGS.
Chris@39 8082 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Chris@39 8083
Chris@39 8084 # Allow CC to be a program name with arguments.
Chris@39 8085 compiler=$CC
Chris@39 8086
Chris@39 8087 # Save the default compiler, since it gets overwritten when the other
Chris@39 8088 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
Chris@39 8089 compiler_DEFAULT=$CC
Chris@39 8090
Chris@39 8091 # save warnings/boilerplate of simple test code
Chris@39 8092 ac_outfile=conftest.$ac_objext
Chris@39 8093 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Chris@39 8094 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@39 8095 _lt_compiler_boilerplate=`cat conftest.err`
Chris@39 8096 $RM conftest*
Chris@39 8097
Chris@39 8098 ac_outfile=conftest.$ac_objext
Chris@39 8099 echo "$lt_simple_link_test_code" >conftest.$ac_ext
Chris@39 8100 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@39 8101 _lt_linker_boilerplate=`cat conftest.err`
Chris@39 8102 $RM -r conftest*
Chris@39 8103
Chris@39 8104
Chris@39 8105 if test -n "$compiler"; then
Chris@39 8106
Chris@39 8107 lt_prog_compiler_no_builtin_flag=
Chris@39 8108
Chris@39 8109 if test "$GCC" = yes; then
Chris@39 8110 case $cc_basename in
Chris@39 8111 nvcc*)
Chris@39 8112 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
Chris@39 8113 *)
Chris@39 8114 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
Chris@39 8115 esac
Chris@39 8116
Chris@39 8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Chris@39 8118 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Chris@39 8119 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Chris@39 8120 $as_echo_n "(cached) " >&6
Chris@39 8121 else
Chris@39 8122 lt_cv_prog_compiler_rtti_exceptions=no
Chris@39 8123 ac_outfile=conftest.$ac_objext
Chris@39 8124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@39 8125 lt_compiler_flag="-fno-rtti -fno-exceptions"
Chris@39 8126 # Insert the option either (1) after the last *FLAGS variable, or
Chris@39 8127 # (2) before a word containing "conftest.", or (3) at the end.
Chris@39 8128 # Note that $ac_compile itself does not contain backslashes and begins
Chris@39 8129 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@39 8130 # The option is referenced via a variable to avoid confusing sed.
Chris@39 8131 lt_compile=`echo "$ac_compile" | $SED \
Chris@39 8132 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@39 8133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@39 8134 -e 's:$: $lt_compiler_flag:'`
Chris@39 8135 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@39 8136 (eval "$lt_compile" 2>conftest.err)
Chris@39 8137 ac_status=$?
Chris@39 8138 cat conftest.err >&5
Chris@39 8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@39 8140 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@39 8141 # The compiler can only warn and ignore the option if not recognized
Chris@39 8142 # So say no if there are warnings other than the usual output.
Chris@39 8143 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Chris@39 8144 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@39 8145 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Chris@39 8146 lt_cv_prog_compiler_rtti_exceptions=yes
Chris@39 8147 fi
Chris@39 8148 fi
Chris@39 8149 $RM conftest*
Chris@39 8150
Chris@39 8151 fi
Chris@39 8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Chris@39 8153 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Chris@39 8154
Chris@39 8155 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
Chris@39 8156 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
Chris@39 8157 else
Chris@39 8158 :
Chris@39 8159 fi
Chris@39 8160
Chris@39 8161 fi
Chris@39 8162
Chris@39 8163
Chris@39 8164
Chris@39 8165
Chris@39 8166
Chris@39 8167
Chris@39 8168 lt_prog_compiler_wl=
Chris@39 8169 lt_prog_compiler_pic=
Chris@39 8170 lt_prog_compiler_static=
Chris@39 8171
Chris@39 8172
Chris@39 8173 if test "$GCC" = yes; then
Chris@39 8174 lt_prog_compiler_wl='-Wl,'
Chris@39 8175 lt_prog_compiler_static='-static'
Chris@39 8176
Chris@39 8177 case $host_os in
Chris@39 8178 aix*)
Chris@39 8179 # All AIX code is PIC.
Chris@39 8180 if test "$host_cpu" = ia64; then
Chris@39 8181 # AIX 5 now supports IA64 processor
Chris@39 8182 lt_prog_compiler_static='-Bstatic'
Chris@39 8183 fi
Chris@39 8184 ;;
Chris@39 8185
Chris@39 8186 amigaos*)
Chris@39 8187 case $host_cpu in
Chris@39 8188 powerpc)
Chris@39 8189 # see comment about AmigaOS4 .so support
Chris@39 8190 lt_prog_compiler_pic='-fPIC'
Chris@39 8191 ;;
Chris@39 8192 m68k)
Chris@39 8193 # FIXME: we need at least 68020 code to build shared libraries, but
Chris@39 8194 # adding the `-m68020' flag to GCC prevents building anything better,
Chris@39 8195 # like `-m68040'.
Chris@39 8196 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
Chris@39 8197 ;;
Chris@39 8198 esac
Chris@39 8199 ;;
Chris@39 8200
Chris@39 8201 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Chris@39 8202 # PIC is the default for these OSes.
Chris@39 8203 ;;
Chris@39 8204
Chris@39 8205 mingw* | cygwin* | pw32* | os2* | cegcc*)
Chris@39 8206 # This hack is so that the source file can tell whether it is being
Chris@39 8207 # built for inclusion in a dll (and should export symbols for example).
Chris@39 8208 # Although the cygwin gcc ignores -fPIC, still need this for old-style
Chris@39 8209 # (--disable-auto-import) libraries
Chris@39 8210 lt_prog_compiler_pic='-DDLL_EXPORT'
Chris@39 8211 ;;
Chris@39 8212
Chris@39 8213 darwin* | rhapsody*)
Chris@39 8214 # PIC is the default on this platform
Chris@39 8215 # Common symbols not allowed in MH_DYLIB files
Chris@39 8216 lt_prog_compiler_pic='-fno-common'
Chris@39 8217 ;;
Chris@39 8218
Chris@39 8219 haiku*)
Chris@39 8220 # PIC is the default for Haiku.
Chris@39 8221 # The "-static" flag exists, but is broken.
Chris@39 8222 lt_prog_compiler_static=
Chris@39 8223 ;;
Chris@39 8224
Chris@39 8225 hpux*)
Chris@39 8226 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
Chris@39 8227 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
Chris@39 8228 # sets the default TLS model and affects inlining.
Chris@39 8229 case $host_cpu in
Chris@39 8230 hppa*64*)
Chris@39 8231 # +Z the default
Chris@39 8232 ;;
Chris@39 8233 *)
Chris@39 8234 lt_prog_compiler_pic='-fPIC'
Chris@39 8235 ;;
Chris@39 8236 esac
Chris@39 8237 ;;
Chris@39 8238
Chris@39 8239 interix[3-9]*)
Chris@39 8240 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
Chris@39 8241 # Instead, we relocate shared libraries at runtime.
Chris@39 8242 ;;
Chris@39 8243
Chris@39 8244 msdosdjgpp*)
Chris@39 8245 # Just because we use GCC doesn't mean we suddenly get shared libraries
Chris@39 8246 # on systems that don't support them.
Chris@39 8247 lt_prog_compiler_can_build_shared=no
Chris@39 8248 enable_shared=no
Chris@39 8249 ;;
Chris@39 8250
Chris@39 8251 *nto* | *qnx*)
Chris@39 8252 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@39 8253 # it will coredump.
Chris@39 8254 lt_prog_compiler_pic='-fPIC -shared'
Chris@39 8255 ;;
Chris@39 8256
Chris@39 8257 sysv4*MP*)
Chris@39 8258 if test -d /usr/nec; then
Chris@39 8259 lt_prog_compiler_pic=-Kconform_pic
Chris@39 8260 fi
Chris@39 8261 ;;
Chris@39 8262
Chris@39 8263 *)
Chris@39 8264 lt_prog_compiler_pic='-fPIC'
Chris@39 8265 ;;
Chris@39 8266 esac
Chris@39 8267
Chris@39 8268 case $cc_basename in
Chris@39 8269 nvcc*) # Cuda Compiler Driver 2.2
Chris@39 8270 lt_prog_compiler_wl='-Xlinker '
Chris@39 8271 lt_prog_compiler_pic='-Xcompiler -fPIC'
Chris@39 8272 ;;
Chris@39 8273 esac
Chris@39 8274 else
Chris@39 8275 # PORTME Check for flag to pass linker flags through the system compiler.
Chris@39 8276 case $host_os in
Chris@39 8277 aix*)
Chris@39 8278 lt_prog_compiler_wl='-Wl,'
Chris@39 8279 if test "$host_cpu" = ia64; then
Chris@39 8280 # AIX 5 now supports IA64 processor
Chris@39 8281 lt_prog_compiler_static='-Bstatic'
Chris@39 8282 else
Chris@39 8283 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
Chris@39 8284 fi
Chris@39 8285 ;;
Chris@39 8286
Chris@39 8287 mingw* | cygwin* | pw32* | os2* | cegcc*)
Chris@39 8288 # This hack is so that the source file can tell whether it is being
Chris@39 8289 # built for inclusion in a dll (and should export symbols for example).
Chris@39 8290 lt_prog_compiler_pic='-DDLL_EXPORT'
Chris@39 8291 ;;
Chris@39 8292
Chris@39 8293 hpux9* | hpux10* | hpux11*)
Chris@39 8294 lt_prog_compiler_wl='-Wl,'
Chris@39 8295 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
Chris@39 8296 # not for PA HP-UX.
Chris@39 8297 case $host_cpu in
Chris@39 8298 hppa*64*|ia64*)
Chris@39 8299 # +Z the default
Chris@39 8300 ;;
Chris@39 8301 *)
Chris@39 8302 lt_prog_compiler_pic='+Z'
Chris@39 8303 ;;
Chris@39 8304 esac
Chris@39 8305 # Is there a better lt_prog_compiler_static that works with the bundled CC?
Chris@39 8306 lt_prog_compiler_static='${wl}-a ${wl}archive'
Chris@39 8307 ;;
Chris@39 8308
Chris@39 8309 irix5* | irix6* | nonstopux*)
Chris@39 8310 lt_prog_compiler_wl='-Wl,'
Chris@39 8311 # PIC (with -KPIC) is the default.
Chris@39 8312 lt_prog_compiler_static='-non_shared'
Chris@39 8313 ;;
Chris@39 8314
Chris@39 8315 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@39 8316 case $cc_basename in
Chris@39 8317 # old Intel for x86_64 which still supported -KPIC.
Chris@39 8318 ecc*)
Chris@39 8319 lt_prog_compiler_wl='-Wl,'
Chris@39 8320 lt_prog_compiler_pic='-KPIC'
Chris@39 8321 lt_prog_compiler_static='-static'
Chris@39 8322 ;;
Chris@39 8323 # icc used to be incompatible with GCC.
Chris@39 8324 # ICC 10 doesn't accept -KPIC any more.
Chris@39 8325 icc* | ifort*)
Chris@39 8326 lt_prog_compiler_wl='-Wl,'
Chris@39 8327 lt_prog_compiler_pic='-fPIC'
Chris@39 8328 lt_prog_compiler_static='-static'
Chris@39 8329 ;;
Chris@39 8330 # Lahey Fortran 8.1.
Chris@39 8331 lf95*)
Chris@39 8332 lt_prog_compiler_wl='-Wl,'
Chris@39 8333 lt_prog_compiler_pic='--shared'
Chris@39 8334 lt_prog_compiler_static='--static'
Chris@39 8335 ;;
Chris@39 8336 nagfor*)
Chris@39 8337 # NAG Fortran compiler
Chris@39 8338 lt_prog_compiler_wl='-Wl,-Wl,,'
Chris@39 8339 lt_prog_compiler_pic='-PIC'
Chris@39 8340 lt_prog_compiler_static='-Bstatic'
Chris@39 8341 ;;
Chris@39 8342 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Chris@39 8343 # Portland Group compilers (*not* the Pentium gcc compiler,
Chris@39 8344 # which looks to be a dead project)
Chris@39 8345 lt_prog_compiler_wl='-Wl,'
Chris@39 8346 lt_prog_compiler_pic='-fpic'
Chris@39 8347 lt_prog_compiler_static='-Bstatic'
Chris@39 8348 ;;
Chris@39 8349 ccc*)
Chris@39 8350 lt_prog_compiler_wl='-Wl,'
Chris@39 8351 # All Alpha code is PIC.
Chris@39 8352 lt_prog_compiler_static='-non_shared'
Chris@39 8353 ;;
Chris@39 8354 xl* | bgxl* | bgf* | mpixl*)
Chris@39 8355 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Chris@39 8356 lt_prog_compiler_wl='-Wl,'
Chris@39 8357 lt_prog_compiler_pic='-qpic'
Chris@39 8358 lt_prog_compiler_static='-qstaticlink'
Chris@39 8359 ;;
Chris@39 8360 *)
Chris@39 8361 case `$CC -V 2>&1 | sed 5q` in
Chris@39 8362 *Sun\ F* | *Sun*Fortran*)
Chris@39 8363 # Sun Fortran 8.3 passes all unrecognized flags to the linker
Chris@39 8364 lt_prog_compiler_pic='-KPIC'
Chris@39 8365 lt_prog_compiler_static='-Bstatic'
Chris@39 8366 lt_prog_compiler_wl=''
Chris@39 8367 ;;
Chris@39 8368 *Sun\ C*)
Chris@39 8369 # Sun C 5.9
Chris@39 8370 lt_prog_compiler_pic='-KPIC'
Chris@39 8371 lt_prog_compiler_static='-Bstatic'
Chris@39 8372 lt_prog_compiler_wl='-Wl,'
Chris@39 8373 ;;
Chris@39 8374 esac
Chris@39 8375 ;;
Chris@39 8376 esac
Chris@39 8377 ;;
Chris@39 8378
Chris@39 8379 newsos6)
Chris@39 8380 lt_prog_compiler_pic='-KPIC'
Chris@39 8381 lt_prog_compiler_static='-Bstatic'
Chris@39 8382 ;;
Chris@39 8383
Chris@39 8384 *nto* | *qnx*)
Chris@39 8385 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@39 8386 # it will coredump.
Chris@39 8387 lt_prog_compiler_pic='-fPIC -shared'
Chris@39 8388 ;;
Chris@39 8389
Chris@39 8390 osf3* | osf4* | osf5*)
Chris@39 8391 lt_prog_compiler_wl='-Wl,'
Chris@39 8392 # All OSF/1 code is PIC.
Chris@39 8393 lt_prog_compiler_static='-non_shared'
Chris@39 8394 ;;
Chris@39 8395
Chris@39 8396 rdos*)
Chris@39 8397 lt_prog_compiler_static='-non_shared'
Chris@39 8398 ;;
Chris@39 8399
Chris@39 8400 solaris*)
Chris@39 8401 lt_prog_compiler_pic='-KPIC'
Chris@39 8402 lt_prog_compiler_static='-Bstatic'
Chris@39 8403 case $cc_basename in
Chris@39 8404 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Chris@39 8405 lt_prog_compiler_wl='-Qoption ld ';;
Chris@39 8406 *)
Chris@39 8407 lt_prog_compiler_wl='-Wl,';;
Chris@39 8408 esac
Chris@39 8409 ;;
Chris@39 8410
Chris@39 8411 sunos4*)
Chris@39 8412 lt_prog_compiler_wl='-Qoption ld '
Chris@39 8413 lt_prog_compiler_pic='-PIC'
Chris@39 8414 lt_prog_compiler_static='-Bstatic'
Chris@39 8415 ;;
Chris@39 8416
Chris@39 8417 sysv4 | sysv4.2uw2* | sysv4.3*)
Chris@39 8418 lt_prog_compiler_wl='-Wl,'
Chris@39 8419 lt_prog_compiler_pic='-KPIC'
Chris@39 8420 lt_prog_compiler_static='-Bstatic'
Chris@39 8421 ;;
Chris@39 8422
Chris@39 8423 sysv4*MP*)
Chris@39 8424 if test -d /usr/nec ;then
Chris@39 8425 lt_prog_compiler_pic='-Kconform_pic'
Chris@39 8426 lt_prog_compiler_static='-Bstatic'
Chris@39 8427 fi
Chris@39 8428 ;;
Chris@39 8429
Chris@39 8430 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
Chris@39 8431 lt_prog_compiler_wl='-Wl,'
Chris@39 8432 lt_prog_compiler_pic='-KPIC'
Chris@39 8433 lt_prog_compiler_static='-Bstatic'
Chris@39 8434 ;;
Chris@39 8435
Chris@39 8436 unicos*)
Chris@39 8437 lt_prog_compiler_wl='-Wl,'
Chris@39 8438 lt_prog_compiler_can_build_shared=no
Chris@39 8439 ;;
Chris@39 8440
Chris@39 8441 uts4*)
Chris@39 8442 lt_prog_compiler_pic='-pic'
Chris@39 8443 lt_prog_compiler_static='-Bstatic'
Chris@39 8444 ;;
Chris@39 8445
Chris@39 8446 *)
Chris@39 8447 lt_prog_compiler_can_build_shared=no
Chris@39 8448 ;;
Chris@39 8449 esac
Chris@39 8450 fi
Chris@39 8451
Chris@39 8452 case $host_os in
Chris@39 8453 # For platforms which do not support PIC, -DPIC is meaningless:
Chris@39 8454 *djgpp*)
Chris@39 8455 lt_prog_compiler_pic=
Chris@39 8456 ;;
Chris@39 8457 *)
Chris@39 8458 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
Chris@39 8459 ;;
Chris@39 8460 esac
Chris@39 8461
Chris@39 8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
Chris@39 8463 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Chris@39 8464 if ${lt_cv_prog_compiler_pic+:} false; then :
Chris@39 8465 $as_echo_n "(cached) " >&6
Chris@39 8466 else
Chris@39 8467 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
Chris@39 8468 fi
Chris@39 8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
Chris@39 8470 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
Chris@39 8471 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
Chris@39 8472
Chris@39 8473 #
Chris@39 8474 # Check to make sure the PIC flag actually works.
Chris@39 8475 #
Chris@39 8476 if test -n "$lt_prog_compiler_pic"; then
Chris@39 8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
Chris@39 8478 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Chris@39 8479 if ${lt_cv_prog_compiler_pic_works+:} false; then :
Chris@39 8480 $as_echo_n "(cached) " >&6
Chris@39 8481 else
Chris@39 8482 lt_cv_prog_compiler_pic_works=no
Chris@39 8483 ac_outfile=conftest.$ac_objext
Chris@39 8484 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@39 8485 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
Chris@39 8486 # Insert the option either (1) after the last *FLAGS variable, or
Chris@39 8487 # (2) before a word containing "conftest.", or (3) at the end.
Chris@39 8488 # Note that $ac_compile itself does not contain backslashes and begins
Chris@39 8489 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@39 8490 # The option is referenced via a variable to avoid confusing sed.
Chris@39 8491 lt_compile=`echo "$ac_compile" | $SED \
Chris@39 8492 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@39 8493 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@39 8494 -e 's:$: $lt_compiler_flag:'`
Chris@39 8495 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@39 8496 (eval "$lt_compile" 2>conftest.err)
Chris@39 8497 ac_status=$?
Chris@39 8498 cat conftest.err >&5
Chris@39 8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@39 8500 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@39 8501 # The compiler can only warn and ignore the option if not recognized
Chris@39 8502 # So say no if there are warnings other than the usual output.
Chris@39 8503 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Chris@39 8504 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@39 8505 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Chris@39 8506 lt_cv_prog_compiler_pic_works=yes
Chris@39 8507 fi
Chris@39 8508 fi
Chris@39 8509 $RM conftest*
Chris@39 8510
Chris@39 8511 fi
Chris@39 8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
Chris@39 8513 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
Chris@39 8514
Chris@39 8515 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
Chris@39 8516 case $lt_prog_compiler_pic in
Chris@39 8517 "" | " "*) ;;
Chris@39 8518 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
Chris@39 8519 esac
Chris@39 8520 else
Chris@39 8521 lt_prog_compiler_pic=
Chris@39 8522 lt_prog_compiler_can_build_shared=no
Chris@39 8523 fi
Chris@39 8524
Chris@39 8525 fi
Chris@39 8526
Chris@39 8527
Chris@39 8528
Chris@39 8529
Chris@39 8530
Chris@39 8531
Chris@39 8532
Chris@39 8533
Chris@39 8534
Chris@39 8535
Chris@39 8536
Chris@39 8537 #
Chris@39 8538 # Check to make sure the static flag actually works.
Chris@39 8539 #
Chris@39 8540 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Chris@39 8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
Chris@39 8542 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Chris@39 8543 if ${lt_cv_prog_compiler_static_works+:} false; then :
Chris@39 8544 $as_echo_n "(cached) " >&6
Chris@39 8545 else
Chris@39 8546 lt_cv_prog_compiler_static_works=no
Chris@39 8547 save_LDFLAGS="$LDFLAGS"
Chris@39 8548 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Chris@39 8549 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Chris@39 8550 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Chris@39 8551 # The linker can only warn and ignore the option if not recognized
Chris@39 8552 # So say no if there are warnings
Chris@39 8553 if test -s conftest.err; then
Chris@39 8554 # Append any errors to the config.log.
Chris@39 8555 cat conftest.err 1>&5
Chris@39 8556 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Chris@39 8557 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@39 8558 if diff conftest.exp conftest.er2 >/dev/null; then
Chris@39 8559 lt_cv_prog_compiler_static_works=yes
Chris@39 8560 fi
Chris@39 8561 else
Chris@39 8562 lt_cv_prog_compiler_static_works=yes
Chris@39 8563 fi
Chris@39 8564 fi
Chris@39 8565 $RM -r conftest*
Chris@39 8566 LDFLAGS="$save_LDFLAGS"
Chris@39 8567
Chris@39 8568 fi
Chris@39 8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
Chris@39 8570 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
Chris@39 8571
Chris@39 8572 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
Chris@39 8573 :
Chris@39 8574 else
Chris@39 8575 lt_prog_compiler_static=
Chris@39 8576 fi
Chris@39 8577
Chris@39 8578
Chris@39 8579
Chris@39 8580
Chris@39 8581
Chris@39 8582
Chris@39 8583
Chris@39 8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@39 8585 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@39 8586 if ${lt_cv_prog_compiler_c_o+:} false; then :
Chris@39 8587 $as_echo_n "(cached) " >&6
Chris@39 8588 else
Chris@39 8589 lt_cv_prog_compiler_c_o=no
Chris@39 8590 $RM -r conftest 2>/dev/null
Chris@39 8591 mkdir conftest
Chris@39 8592 cd conftest
Chris@39 8593 mkdir out
Chris@39 8594 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@39 8595
Chris@39 8596 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@39 8597 # Insert the option either (1) after the last *FLAGS variable, or
Chris@39 8598 # (2) before a word containing "conftest.", or (3) at the end.
Chris@39 8599 # Note that $ac_compile itself does not contain backslashes and begins
Chris@39 8600 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@39 8601 lt_compile=`echo "$ac_compile" | $SED \
Chris@39 8602 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@39 8603 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@39 8604 -e 's:$: $lt_compiler_flag:'`
Chris@39 8605 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@39 8606 (eval "$lt_compile" 2>out/conftest.err)
Chris@39 8607 ac_status=$?
Chris@39 8608 cat out/conftest.err >&5
Chris@39 8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@39 8610 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@39 8611 then
Chris@39 8612 # The compiler can only warn and ignore the option if not recognized
Chris@39 8613 # So say no if there are warnings
Chris@39 8614 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@39 8615 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@39 8616 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@39 8617 lt_cv_prog_compiler_c_o=yes
Chris@39 8618 fi
Chris@39 8619 fi
Chris@39 8620 chmod u+w . 2>&5
Chris@39 8621 $RM conftest*
Chris@39 8622 # SGI C++ compiler will create directory out/ii_files/ for
Chris@39 8623 # template instantiation
Chris@39 8624 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@39 8625 $RM out/* && rmdir out
Chris@39 8626 cd ..
Chris@39 8627 $RM -r conftest
Chris@39 8628 $RM conftest*
Chris@39 8629
Chris@39 8630 fi
Chris@39 8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Chris@39 8632 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Chris@39 8633
Chris@39 8634
Chris@39 8635
Chris@39 8636
Chris@39 8637
Chris@39 8638
Chris@39 8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@39 8640 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@39 8641 if ${lt_cv_prog_compiler_c_o+:} false; then :
Chris@39 8642 $as_echo_n "(cached) " >&6
Chris@39 8643 else
Chris@39 8644 lt_cv_prog_compiler_c_o=no
Chris@39 8645 $RM -r conftest 2>/dev/null
Chris@39 8646 mkdir conftest
Chris@39 8647 cd conftest
Chris@39 8648 mkdir out
Chris@39 8649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@39 8650
Chris@39 8651 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@39 8652 # Insert the option either (1) after the last *FLAGS variable, or
Chris@39 8653 # (2) before a word containing "conftest.", or (3) at the end.
Chris@39 8654 # Note that $ac_compile itself does not contain backslashes and begins
Chris@39 8655 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@39 8656 lt_compile=`echo "$ac_compile" | $SED \
Chris@39 8657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@39 8658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@39 8659 -e 's:$: $lt_compiler_flag:'`
Chris@39 8660 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@39 8661 (eval "$lt_compile" 2>out/conftest.err)
Chris@39 8662 ac_status=$?
Chris@39 8663 cat out/conftest.err >&5
Chris@39 8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@39 8665 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@39 8666 then
Chris@39 8667 # The compiler can only warn and ignore the option if not recognized
Chris@39 8668 # So say no if there are warnings
Chris@39 8669 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@39 8670 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@39 8671 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@39 8672 lt_cv_prog_compiler_c_o=yes
Chris@39 8673 fi
Chris@39 8674 fi
Chris@39 8675 chmod u+w . 2>&5
Chris@39 8676 $RM conftest*
Chris@39 8677 # SGI C++ compiler will create directory out/ii_files/ for
Chris@39 8678 # template instantiation
Chris@39 8679 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@39 8680 $RM out/* && rmdir out
Chris@39 8681 cd ..
Chris@39 8682 $RM -r conftest
Chris@39 8683 $RM conftest*
Chris@39 8684
Chris@39 8685 fi
Chris@39 8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Chris@39 8687 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Chris@39 8688
Chris@39 8689
Chris@39 8690
Chris@39 8691
Chris@39 8692 hard_links="nottested"
Chris@39 8693 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
Chris@39 8694 # do not overwrite the value of need_locks provided by the user
Chris@39 8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Chris@39 8696 $as_echo_n "checking if we can lock with hard links... " >&6; }
Chris@39 8697 hard_links=yes
Chris@39 8698 $RM conftest*
Chris@39 8699 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@39 8700 touch conftest.a
Chris@39 8701 ln conftest.a conftest.b 2>&5 || hard_links=no
Chris@39 8702 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@39 8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Chris@39 8704 $as_echo "$hard_links" >&6; }
Chris@39 8705 if test "$hard_links" = no; then
Chris@39 8706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
Chris@39 8707 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
Chris@39 8708 need_locks=warn
Chris@39 8709 fi
Chris@39 8710 else
Chris@39 8711 need_locks=no
Chris@39 8712 fi
Chris@39 8713
Chris@39 8714
Chris@39 8715
Chris@39 8716
Chris@39 8717
Chris@39 8718
Chris@39 8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Chris@39 8720 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Chris@39 8721
Chris@39 8722 runpath_var=
Chris@39 8723 allow_undefined_flag=
Chris@39 8724 always_export_symbols=no
Chris@39 8725 archive_cmds=
Chris@39 8726 archive_expsym_cmds=
Chris@39 8727 compiler_needs_object=no
Chris@39 8728 enable_shared_with_static_runtimes=no
Chris@39 8729 export_dynamic_flag_spec=
Chris@39 8730 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Chris@39 8731 hardcode_automatic=no
Chris@39 8732 hardcode_direct=no
Chris@39 8733 hardcode_direct_absolute=no
Chris@39 8734 hardcode_libdir_flag_spec=
Chris@39 8735 hardcode_libdir_flag_spec_ld=
Chris@39 8736 hardcode_libdir_separator=
Chris@39 8737 hardcode_minus_L=no
Chris@39 8738 hardcode_shlibpath_var=unsupported
Chris@39 8739 inherit_rpath=no
Chris@39 8740 link_all_deplibs=unknown
Chris@39 8741 module_cmds=
Chris@39 8742 module_expsym_cmds=
Chris@39 8743 old_archive_from_new_cmds=
Chris@39 8744 old_archive_from_expsyms_cmds=
Chris@39 8745 thread_safe_flag_spec=
Chris@39 8746 whole_archive_flag_spec=
Chris@39 8747 # include_expsyms should be a list of space-separated symbols to be *always*
Chris@39 8748 # included in the symbol list
Chris@39 8749 include_expsyms=
Chris@39 8750 # exclude_expsyms can be an extended regexp of symbols to exclude
Chris@39 8751 # it will be wrapped by ` (' and `)$', so one must not match beginning or
Chris@39 8752 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
Chris@39 8753 # as well as any symbol that contains `d'.
Chris@39 8754 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Chris@39 8755 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
Chris@39 8756 # platforms (ab)use it in PIC code, but their linkers get confused if
Chris@39 8757 # the symbol is explicitly referenced. Since portable code cannot
Chris@39 8758 # rely on this symbol name, it's probably fine to never include it in
Chris@39 8759 # preloaded symbol tables.
Chris@39 8760 # Exclude shared library initialization/finalization symbols.
Chris@39 8761 extract_expsyms_cmds=
Chris@39 8762
Chris@39 8763 case $host_os in
Chris@39 8764 cygwin* | mingw* | pw32* | cegcc*)
Chris@39 8765 # FIXME: the MSVC++ port hasn't been tested in a loooong time
Chris@39 8766 # When not using gcc, we currently assume that we are using
Chris@39 8767 # Microsoft Visual C++.
Chris@39 8768 if test "$GCC" != yes; then
Chris@39 8769 with_gnu_ld=no
Chris@39 8770 fi
Chris@39 8771 ;;
Chris@39 8772 interix*)
Chris@39 8773 # we just hope/assume this is gcc and not c89 (= MSVC++)
Chris@39 8774 with_gnu_ld=yes
Chris@39 8775 ;;
Chris@39 8776 openbsd*)
Chris@39 8777 with_gnu_ld=no
Chris@39 8778 ;;
Chris@39 8779 linux* | k*bsd*-gnu | gnu*)
Chris@39 8780 link_all_deplibs=no
Chris@39 8781 ;;
Chris@39 8782 esac
Chris@39 8783
Chris@39 8784 ld_shlibs=yes
Chris@39 8785
Chris@39 8786 # On some targets, GNU ld is compatible enough with the native linker
Chris@39 8787 # that we're better off using the native interface for both.
Chris@39 8788 lt_use_gnu_ld_interface=no
Chris@39 8789 if test "$with_gnu_ld" = yes; then
Chris@39 8790 case $host_os in
Chris@39 8791 aix*)
Chris@39 8792 # The AIX port of GNU ld has always aspired to compatibility
Chris@39 8793 # with the native linker. However, as the warning in the GNU ld
Chris@39 8794 # block says, versions before 2.19.5* couldn't really create working
Chris@39 8795 # shared libraries, regardless of the interface used.
Chris@39 8796 case `$LD -v 2>&1` in
Chris@39 8797 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
Chris@39 8798 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
Chris@39 8799 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
Chris@39 8800 *)
Chris@39 8801 lt_use_gnu_ld_interface=yes
Chris@39 8802 ;;
Chris@39 8803 esac
Chris@39 8804 ;;
Chris@39 8805 *)
Chris@39 8806 lt_use_gnu_ld_interface=yes
Chris@39 8807 ;;
Chris@39 8808 esac
Chris@39 8809 fi
Chris@39 8810
Chris@39 8811 if test "$lt_use_gnu_ld_interface" = yes; then
Chris@39 8812 # If archive_cmds runs LD, not CC, wlarc should be empty
Chris@39 8813 wlarc='${wl}'
Chris@39 8814
Chris@39 8815 # Set some defaults for GNU ld with shared library support. These
Chris@39 8816 # are reset later if shared libraries are not supported. Putting them
Chris@39 8817 # here allows them to be overridden if necessary.
Chris@39 8818 runpath_var=LD_RUN_PATH
Chris@39 8819 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@39 8820 export_dynamic_flag_spec='${wl}--export-dynamic'
Chris@39 8821 # ancient GNU ld didn't support --whole-archive et. al.
Chris@39 8822 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
Chris@39 8823 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
Chris@39 8824 else
Chris@39 8825 whole_archive_flag_spec=
Chris@39 8826 fi
Chris@39 8827 supports_anon_versioning=no
Chris@39 8828 case `$LD -v 2>&1` in
Chris@39 8829 *GNU\ gold*) supports_anon_versioning=yes ;;
Chris@39 8830 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
Chris@39 8831 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
Chris@39 8832 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
Chris@39 8833 *\ 2.11.*) ;; # other 2.11 versions
Chris@39 8834 *) supports_anon_versioning=yes ;;
Chris@39 8835 esac
Chris@39 8836
Chris@39 8837 # See if GNU ld supports shared libraries.
Chris@39 8838 case $host_os in
Chris@39 8839 aix[3-9]*)
Chris@39 8840 # On AIX/PPC, the GNU linker is very broken
Chris@39 8841 if test "$host_cpu" != ia64; then
Chris@39 8842 ld_shlibs=no
Chris@39 8843 cat <<_LT_EOF 1>&2
Chris@39 8844
Chris@39 8845 *** Warning: the GNU linker, at least up to release 2.19, is reported
Chris@39 8846 *** to be unable to reliably create shared libraries on AIX.
Chris@39 8847 *** Therefore, libtool is disabling shared libraries support. If you
Chris@39 8848 *** really care for shared libraries, you may want to install binutils
Chris@39 8849 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
Chris@39 8850 *** You will then need to restart the configuration process.
Chris@39 8851
Chris@39 8852 _LT_EOF
Chris@39 8853 fi
Chris@39 8854 ;;
Chris@39 8855
Chris@39 8856 amigaos*)
Chris@39 8857 case $host_cpu in
Chris@39 8858 powerpc)
Chris@39 8859 # see comment about AmigaOS4 .so support
Chris@39 8860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 8861 archive_expsym_cmds=''
Chris@39 8862 ;;
Chris@39 8863 m68k)
Chris@39 8864 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
Chris@39 8865 hardcode_libdir_flag_spec='-L$libdir'
Chris@39 8866 hardcode_minus_L=yes
Chris@39 8867 ;;
Chris@39 8868 esac
Chris@39 8869 ;;
Chris@39 8870
Chris@39 8871 beos*)
Chris@39 8872 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@39 8873 allow_undefined_flag=unsupported
Chris@39 8874 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
Chris@39 8875 # support --undefined. This deserves some investigation. FIXME
Chris@39 8876 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 8877 else
Chris@39 8878 ld_shlibs=no
Chris@39 8879 fi
Chris@39 8880 ;;
Chris@39 8881
Chris@39 8882 cygwin* | mingw* | pw32* | cegcc*)
Chris@39 8883 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
Chris@39 8884 # as there is no search path for DLLs.
Chris@39 8885 hardcode_libdir_flag_spec='-L$libdir'
Chris@39 8886 export_dynamic_flag_spec='${wl}--export-all-symbols'
Chris@39 8887 allow_undefined_flag=unsupported
Chris@39 8888 always_export_symbols=no
Chris@39 8889 enable_shared_with_static_runtimes=yes
Chris@39 8890 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
Chris@39 8891 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
Chris@39 8892
Chris@39 8893 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Chris@39 8894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Chris@39 8895 # If the export-symbols file already is a .def file (1st line
Chris@39 8896 # is EXPORTS), use it as is; otherwise, prepend...
Chris@39 8897 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
Chris@39 8898 cp $export_symbols $output_objdir/$soname.def;
Chris@39 8899 else
Chris@39 8900 echo EXPORTS > $output_objdir/$soname.def;
Chris@39 8901 cat $export_symbols >> $output_objdir/$soname.def;
Chris@39 8902 fi~
Chris@39 8903 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Chris@39 8904 else
Chris@39 8905 ld_shlibs=no
Chris@39 8906 fi
Chris@39 8907 ;;
Chris@39 8908
Chris@39 8909 haiku*)
Chris@39 8910 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 8911 link_all_deplibs=yes
Chris@39 8912 ;;
Chris@39 8913
Chris@39 8914 interix[3-9]*)
Chris@39 8915 hardcode_direct=no
Chris@39 8916 hardcode_shlibpath_var=no
Chris@39 8917 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
Chris@39 8918 export_dynamic_flag_spec='${wl}-E'
Chris@39 8919 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
Chris@39 8920 # Instead, shared libraries are loaded at an image base (0x10000000 by
Chris@39 8921 # default) and relocated if they conflict, which is a slow very memory
Chris@39 8922 # consuming and fragmenting process. To avoid this, we pick a random,
Chris@39 8923 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
Chris@39 8924 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Chris@39 8925 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
Chris@39 8926 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
Chris@39 8927 ;;
Chris@39 8928
Chris@39 8929 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@39 8930 tmp_diet=no
Chris@39 8931 if test "$host_os" = linux-dietlibc; then
Chris@39 8932 case $cc_basename in
Chris@39 8933 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
Chris@39 8934 esac
Chris@39 8935 fi
Chris@39 8936 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
Chris@39 8937 && test "$tmp_diet" = no
Chris@39 8938 then
Chris@39 8939 tmp_addflag=' $pic_flag'
Chris@39 8940 tmp_sharedflag='-shared'
Chris@39 8941 case $cc_basename,$host_cpu in
Chris@39 8942 pgcc*) # Portland Group C compiler
Chris@39 8943 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Chris@39 8944 tmp_addflag=' $pic_flag'
Chris@39 8945 ;;
Chris@39 8946 pgf77* | pgf90* | pgf95* | pgfortran*)
Chris@39 8947 # Portland Group f77 and f90 compilers
Chris@39 8948 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Chris@39 8949 tmp_addflag=' $pic_flag -Mnomain' ;;
Chris@39 8950 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Chris@39 8951 tmp_addflag=' -i_dynamic' ;;
Chris@39 8952 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
Chris@39 8953 tmp_addflag=' -i_dynamic -nofor_main' ;;
Chris@39 8954 ifc* | ifort*) # Intel Fortran compiler
Chris@39 8955 tmp_addflag=' -nofor_main' ;;
Chris@39 8956 lf95*) # Lahey Fortran 8.1
Chris@39 8957 whole_archive_flag_spec=
Chris@39 8958 tmp_sharedflag='--shared' ;;
Chris@39 8959 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Chris@39 8960 tmp_sharedflag='-qmkshrobj'
Chris@39 8961 tmp_addflag= ;;
Chris@39 8962 nvcc*) # Cuda Compiler Driver 2.2
Chris@39 8963 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Chris@39 8964 compiler_needs_object=yes
Chris@39 8965 ;;
Chris@39 8966 esac
Chris@39 8967 case `$CC -V 2>&1 | sed 5q` in
Chris@39 8968 *Sun\ C*) # Sun C 5.9
Chris@39 8969 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Chris@39 8970 compiler_needs_object=yes
Chris@39 8971 tmp_sharedflag='-G' ;;
Chris@39 8972 *Sun\ F*) # Sun Fortran 8.3
Chris@39 8973 tmp_sharedflag='-G' ;;
Chris@39 8974 esac
Chris@39 8975 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 8976
Chris@39 8977 if test "x$supports_anon_versioning" = xyes; then
Chris@39 8978 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Chris@39 8979 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@39 8980 echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@39 8981 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
Chris@39 8982 fi
Chris@39 8983
Chris@39 8984 case $cc_basename in
Chris@39 8985 xlf* | bgf* | bgxlf* | mpixlf*)
Chris@39 8986 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
Chris@39 8987 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
Chris@39 8988 hardcode_libdir_flag_spec=
Chris@39 8989 hardcode_libdir_flag_spec_ld='-rpath $libdir'
Chris@39 8990 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Chris@39 8991 if test "x$supports_anon_versioning" = xyes; then
Chris@39 8992 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Chris@39 8993 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@39 8994 echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@39 8995 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Chris@39 8996 fi
Chris@39 8997 ;;
Chris@39 8998 esac
Chris@39 8999 else
Chris@39 9000 ld_shlibs=no
Chris@39 9001 fi
Chris@39 9002 ;;
Chris@39 9003
Chris@39 9004 netbsd* | netbsdelf*-gnu)
Chris@39 9005 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@39 9006 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
Chris@39 9007 wlarc=
Chris@39 9008 else
Chris@39 9009 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 9010 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@39 9011 fi
Chris@39 9012 ;;
Chris@39 9013
Chris@39 9014 solaris*)
Chris@39 9015 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Chris@39 9016 ld_shlibs=no
Chris@39 9017 cat <<_LT_EOF 1>&2
Chris@39 9018
Chris@39 9019 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
Chris@39 9020 *** create shared libraries on Solaris systems. Therefore, libtool
Chris@39 9021 *** is disabling shared libraries support. We urge you to upgrade GNU
Chris@39 9022 *** binutils to release 2.9.1 or newer. Another option is to modify
Chris@39 9023 *** your PATH or compiler configuration so that the native linker is
Chris@39 9024 *** used, and then restart.
Chris@39 9025
Chris@39 9026 _LT_EOF
Chris@39 9027 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@39 9028 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 9029 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@39 9030 else
Chris@39 9031 ld_shlibs=no
Chris@39 9032 fi
Chris@39 9033 ;;
Chris@39 9034
Chris@39 9035 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
Chris@39 9036 case `$LD -v 2>&1` in
Chris@39 9037 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
Chris@39 9038 ld_shlibs=no
Chris@39 9039 cat <<_LT_EOF 1>&2
Chris@39 9040
Chris@39 9041 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
Chris@39 9042 *** reliably create shared libraries on SCO systems. Therefore, libtool
Chris@39 9043 *** is disabling shared libraries support. We urge you to upgrade GNU
Chris@39 9044 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
Chris@39 9045 *** your PATH or compiler configuration so that the native linker is
Chris@39 9046 *** used, and then restart.
Chris@39 9047
Chris@39 9048 _LT_EOF
Chris@39 9049 ;;
Chris@39 9050 *)
Chris@39 9051 # For security reasons, it is highly recommended that you always
Chris@39 9052 # use absolute paths for naming shared libraries, and exclude the
Chris@39 9053 # DT_RUNPATH tag from executables and libraries. But doing so
Chris@39 9054 # requires that you compile everything twice, which is a pain.
Chris@39 9055 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@39 9056 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@39 9057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 9058 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@39 9059 else
Chris@39 9060 ld_shlibs=no
Chris@39 9061 fi
Chris@39 9062 ;;
Chris@39 9063 esac
Chris@39 9064 ;;
Chris@39 9065
Chris@39 9066 sunos4*)
Chris@39 9067 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@39 9068 wlarc=
Chris@39 9069 hardcode_direct=yes
Chris@39 9070 hardcode_shlibpath_var=no
Chris@39 9071 ;;
Chris@39 9072
Chris@39 9073 *)
Chris@39 9074 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@39 9075 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 9076 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@39 9077 else
Chris@39 9078 ld_shlibs=no
Chris@39 9079 fi
Chris@39 9080 ;;
Chris@39 9081 esac
Chris@39 9082
Chris@39 9083 if test "$ld_shlibs" = no; then
Chris@39 9084 runpath_var=
Chris@39 9085 hardcode_libdir_flag_spec=
Chris@39 9086 export_dynamic_flag_spec=
Chris@39 9087 whole_archive_flag_spec=
Chris@39 9088 fi
Chris@39 9089 else
Chris@39 9090 # PORTME fill in a description of your system's linker (not GNU ld)
Chris@39 9091 case $host_os in
Chris@39 9092 aix3*)
Chris@39 9093 allow_undefined_flag=unsupported
Chris@39 9094 always_export_symbols=yes
Chris@39 9095 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
Chris@39 9096 # Note: this linker hardcodes the directories in LIBPATH if there
Chris@39 9097 # are no directories specified by -L.
Chris@39 9098 hardcode_minus_L=yes
Chris@39 9099 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
Chris@39 9100 # Neither direct hardcoding nor static linking is supported with a
Chris@39 9101 # broken collect2.
Chris@39 9102 hardcode_direct=unsupported
Chris@39 9103 fi
Chris@39 9104 ;;
Chris@39 9105
Chris@39 9106 aix[4-9]*)
Chris@39 9107 if test "$host_cpu" = ia64; then
Chris@39 9108 # On IA64, the linker does run time linking by default, so we don't
Chris@39 9109 # have to do anything special.
Chris@39 9110 aix_use_runtimelinking=no
Chris@39 9111 exp_sym_flag='-Bexport'
Chris@39 9112 no_entry_flag=""
Chris@39 9113 else
Chris@39 9114 # If we're using GNU nm, then we don't want the "-C" option.
Chris@39 9115 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Chris@39 9116 # Also, AIX nm treats weak defined symbols like other global
Chris@39 9117 # defined symbols, whereas GNU nm marks them as "W".
Chris@39 9118 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Chris@39 9119 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Chris@39 9120 else
Chris@39 9121 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Chris@39 9122 fi
Chris@39 9123 aix_use_runtimelinking=no
Chris@39 9124
Chris@39 9125 # Test if we are trying to use run time linking or normal
Chris@39 9126 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Chris@39 9127 # need to do runtime linking.
Chris@39 9128 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Chris@39 9129 for ld_flag in $LDFLAGS; do
Chris@39 9130 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
Chris@39 9131 aix_use_runtimelinking=yes
Chris@39 9132 break
Chris@39 9133 fi
Chris@39 9134 done
Chris@39 9135 ;;
Chris@39 9136 esac
Chris@39 9137
Chris@39 9138 exp_sym_flag='-bexport'
Chris@39 9139 no_entry_flag='-bnoentry'
Chris@39 9140 fi
Chris@39 9141
Chris@39 9142 # When large executables or shared objects are built, AIX ld can
Chris@39 9143 # have problems creating the table of contents. If linking a library
Chris@39 9144 # or program results in "error TOC overflow" add -mminimal-toc to
Chris@39 9145 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
Chris@39 9146 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
Chris@39 9147
Chris@39 9148 archive_cmds=''
Chris@39 9149 hardcode_direct=yes
Chris@39 9150 hardcode_direct_absolute=yes
Chris@39 9151 hardcode_libdir_separator=':'
Chris@39 9152 link_all_deplibs=yes
Chris@39 9153 file_list_spec='${wl}-f,'
Chris@39 9154
Chris@39 9155 if test "$GCC" = yes; then
Chris@39 9156 case $host_os in aix4.[012]|aix4.[012].*)
Chris@39 9157 # We only want to do this on AIX 4.2 and lower, the check
Chris@39 9158 # below for broken collect2 doesn't work under 4.3+
Chris@39 9159 collect2name=`${CC} -print-prog-name=collect2`
Chris@39 9160 if test -f "$collect2name" &&
Chris@39 9161 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Chris@39 9162 then
Chris@39 9163 # We have reworked collect2
Chris@39 9164 :
Chris@39 9165 else
Chris@39 9166 # We have old collect2
Chris@39 9167 hardcode_direct=unsupported
Chris@39 9168 # It fails to find uninstalled libraries when the uninstalled
Chris@39 9169 # path is not listed in the libpath. Setting hardcode_minus_L
Chris@39 9170 # to unsupported forces relinking
Chris@39 9171 hardcode_minus_L=yes
Chris@39 9172 hardcode_libdir_flag_spec='-L$libdir'
Chris@39 9173 hardcode_libdir_separator=
Chris@39 9174 fi
Chris@39 9175 ;;
Chris@39 9176 esac
Chris@39 9177 shared_flag='-shared'
Chris@39 9178 if test "$aix_use_runtimelinking" = yes; then
Chris@39 9179 shared_flag="$shared_flag "'${wl}-G'
Chris@39 9180 fi
Chris@39 9181 link_all_deplibs=no
Chris@39 9182 else
Chris@39 9183 # not using gcc
Chris@39 9184 if test "$host_cpu" = ia64; then
Chris@39 9185 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
Chris@39 9186 # chokes on -Wl,-G. The following line is correct:
Chris@39 9187 shared_flag='-G'
Chris@39 9188 else
Chris@39 9189 if test "$aix_use_runtimelinking" = yes; then
Chris@39 9190 shared_flag='${wl}-G'
Chris@39 9191 else
Chris@39 9192 shared_flag='${wl}-bM:SRE'
Chris@39 9193 fi
Chris@39 9194 fi
Chris@39 9195 fi
Chris@39 9196
Chris@39 9197 export_dynamic_flag_spec='${wl}-bexpall'
Chris@39 9198 # It seems that -bexpall does not export symbols beginning with
Chris@39 9199 # underscore (_), so it is better to generate a list of symbols to export.
Chris@39 9200 always_export_symbols=yes
Chris@39 9201 if test "$aix_use_runtimelinking" = yes; then
Chris@39 9202 # Warning - without using the other runtime loading flags (-brtl),
Chris@39 9203 # -berok will link without error, but may produce a broken library.
Chris@39 9204 allow_undefined_flag='-berok'
Chris@39 9205 # Determine the default libpath from the value encoded in an
Chris@39 9206 # empty executable.
Chris@39 9207 if test "${lt_cv_aix_libpath+set}" = set; then
Chris@39 9208 aix_libpath=$lt_cv_aix_libpath
Chris@39 9209 else
Chris@39 9210 if ${lt_cv_aix_libpath_+:} false; then :
Chris@39 9211 $as_echo_n "(cached) " >&6
Chris@39 9212 else
Chris@39 9213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 9214 /* end confdefs.h. */
Chris@39 9215
Chris@39 9216 int
Chris@39 9217 main ()
Chris@39 9218 {
Chris@39 9219
Chris@39 9220 ;
Chris@39 9221 return 0;
Chris@39 9222 }
Chris@39 9223 _ACEOF
Chris@39 9224 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 9225
Chris@39 9226 lt_aix_libpath_sed='
Chris@39 9227 /Import File Strings/,/^$/ {
Chris@39 9228 /^0/ {
Chris@39 9229 s/^0 *\([^ ]*\) *$/\1/
Chris@39 9230 p
Chris@39 9231 }
Chris@39 9232 }'
Chris@39 9233 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@39 9234 # Check for a 64-bit object if we didn't find anything.
Chris@39 9235 if test -z "$lt_cv_aix_libpath_"; then
Chris@39 9236 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@39 9237 fi
Chris@39 9238 fi
Chris@39 9239 rm -f core conftest.err conftest.$ac_objext \
Chris@39 9240 conftest$ac_exeext conftest.$ac_ext
Chris@39 9241 if test -z "$lt_cv_aix_libpath_"; then
Chris@39 9242 lt_cv_aix_libpath_="/usr/lib:/lib"
Chris@39 9243 fi
Chris@39 9244
Chris@39 9245 fi
Chris@39 9246
Chris@39 9247 aix_libpath=$lt_cv_aix_libpath_
Chris@39 9248 fi
Chris@39 9249
Chris@39 9250 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Chris@39 9251 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
Chris@39 9252 else
Chris@39 9253 if test "$host_cpu" = ia64; then
Chris@39 9254 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
Chris@39 9255 allow_undefined_flag="-z nodefs"
Chris@39 9256 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
Chris@39 9257 else
Chris@39 9258 # Determine the default libpath from the value encoded in an
Chris@39 9259 # empty executable.
Chris@39 9260 if test "${lt_cv_aix_libpath+set}" = set; then
Chris@39 9261 aix_libpath=$lt_cv_aix_libpath
Chris@39 9262 else
Chris@39 9263 if ${lt_cv_aix_libpath_+:} false; then :
Chris@39 9264 $as_echo_n "(cached) " >&6
Chris@39 9265 else
Chris@39 9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 9267 /* end confdefs.h. */
Chris@39 9268
Chris@39 9269 int
Chris@39 9270 main ()
Chris@39 9271 {
Chris@39 9272
Chris@39 9273 ;
Chris@39 9274 return 0;
Chris@39 9275 }
Chris@39 9276 _ACEOF
Chris@39 9277 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 9278
Chris@39 9279 lt_aix_libpath_sed='
Chris@39 9280 /Import File Strings/,/^$/ {
Chris@39 9281 /^0/ {
Chris@39 9282 s/^0 *\([^ ]*\) *$/\1/
Chris@39 9283 p
Chris@39 9284 }
Chris@39 9285 }'
Chris@39 9286 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@39 9287 # Check for a 64-bit object if we didn't find anything.
Chris@39 9288 if test -z "$lt_cv_aix_libpath_"; then
Chris@39 9289 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@39 9290 fi
Chris@39 9291 fi
Chris@39 9292 rm -f core conftest.err conftest.$ac_objext \
Chris@39 9293 conftest$ac_exeext conftest.$ac_ext
Chris@39 9294 if test -z "$lt_cv_aix_libpath_"; then
Chris@39 9295 lt_cv_aix_libpath_="/usr/lib:/lib"
Chris@39 9296 fi
Chris@39 9297
Chris@39 9298 fi
Chris@39 9299
Chris@39 9300 aix_libpath=$lt_cv_aix_libpath_
Chris@39 9301 fi
Chris@39 9302
Chris@39 9303 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Chris@39 9304 # Warning - without using the other run time loading flags,
Chris@39 9305 # -berok will link without error, but may produce a broken library.
Chris@39 9306 no_undefined_flag=' ${wl}-bernotok'
Chris@39 9307 allow_undefined_flag=' ${wl}-berok'
Chris@39 9308 if test "$with_gnu_ld" = yes; then
Chris@39 9309 # We only use this code for GNU lds that support --whole-archive.
Chris@39 9310 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
Chris@39 9311 else
Chris@39 9312 # Exported symbols can be pulled into shared objects from archives
Chris@39 9313 whole_archive_flag_spec='$convenience'
Chris@39 9314 fi
Chris@39 9315 archive_cmds_need_lc=yes
Chris@39 9316 # This is similar to how AIX traditionally builds its shared libraries.
Chris@39 9317 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
Chris@39 9318 fi
Chris@39 9319 fi
Chris@39 9320 ;;
Chris@39 9321
Chris@39 9322 amigaos*)
Chris@39 9323 case $host_cpu in
Chris@39 9324 powerpc)
Chris@39 9325 # see comment about AmigaOS4 .so support
Chris@39 9326 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 9327 archive_expsym_cmds=''
Chris@39 9328 ;;
Chris@39 9329 m68k)
Chris@39 9330 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
Chris@39 9331 hardcode_libdir_flag_spec='-L$libdir'
Chris@39 9332 hardcode_minus_L=yes
Chris@39 9333 ;;
Chris@39 9334 esac
Chris@39 9335 ;;
Chris@39 9336
Chris@39 9337 bsdi[45]*)
Chris@39 9338 export_dynamic_flag_spec=-rdynamic
Chris@39 9339 ;;
Chris@39 9340
Chris@39 9341 cygwin* | mingw* | pw32* | cegcc*)
Chris@39 9342 # When not using gcc, we currently assume that we are using
Chris@39 9343 # Microsoft Visual C++.
Chris@39 9344 # hardcode_libdir_flag_spec is actually meaningless, as there is
Chris@39 9345 # no search path for DLLs.
Chris@39 9346 case $cc_basename in
Chris@39 9347 cl*)
Chris@39 9348 # Native MSVC
Chris@39 9349 hardcode_libdir_flag_spec=' '
Chris@39 9350 allow_undefined_flag=unsupported
Chris@39 9351 always_export_symbols=yes
Chris@39 9352 file_list_spec='@'
Chris@39 9353 # Tell ltmain to make .lib files, not .a files.
Chris@39 9354 libext=lib
Chris@39 9355 # Tell ltmain to make .dll files, not .so files.
Chris@39 9356 shrext_cmds=".dll"
Chris@39 9357 # FIXME: Setting linknames here is a bad hack.
Chris@39 9358 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
Chris@39 9359 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
Chris@39 9360 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
Chris@39 9361 else
Chris@39 9362 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
Chris@39 9363 fi~
Chris@39 9364 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
Chris@39 9365 linknames='
Chris@39 9366 # The linker will not automatically build a static lib if we build a DLL.
Chris@39 9367 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
Chris@39 9368 enable_shared_with_static_runtimes=yes
Chris@39 9369 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
Chris@39 9370 # Don't use ranlib
Chris@39 9371 old_postinstall_cmds='chmod 644 $oldlib'
Chris@39 9372 postlink_cmds='lt_outputfile="@OUTPUT@"~
Chris@39 9373 lt_tool_outputfile="@TOOL_OUTPUT@"~
Chris@39 9374 case $lt_outputfile in
Chris@39 9375 *.exe|*.EXE) ;;
Chris@39 9376 *)
Chris@39 9377 lt_outputfile="$lt_outputfile.exe"
Chris@39 9378 lt_tool_outputfile="$lt_tool_outputfile.exe"
Chris@39 9379 ;;
Chris@39 9380 esac~
Chris@39 9381 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
Chris@39 9382 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
Chris@39 9383 $RM "$lt_outputfile.manifest";
Chris@39 9384 fi'
Chris@39 9385 ;;
Chris@39 9386 *)
Chris@39 9387 # Assume MSVC wrapper
Chris@39 9388 hardcode_libdir_flag_spec=' '
Chris@39 9389 allow_undefined_flag=unsupported
Chris@39 9390 # Tell ltmain to make .lib files, not .a files.
Chris@39 9391 libext=lib
Chris@39 9392 # Tell ltmain to make .dll files, not .so files.
Chris@39 9393 shrext_cmds=".dll"
Chris@39 9394 # FIXME: Setting linknames here is a bad hack.
Chris@39 9395 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
Chris@39 9396 # The linker will automatically build a .lib file if we build a DLL.
Chris@39 9397 old_archive_from_new_cmds='true'
Chris@39 9398 # FIXME: Should let the user specify the lib program.
Chris@39 9399 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
Chris@39 9400 enable_shared_with_static_runtimes=yes
Chris@39 9401 ;;
Chris@39 9402 esac
Chris@39 9403 ;;
Chris@39 9404
Chris@39 9405 darwin* | rhapsody*)
Chris@39 9406
Chris@39 9407
Chris@39 9408 archive_cmds_need_lc=no
Chris@39 9409 hardcode_direct=no
Chris@39 9410 hardcode_automatic=yes
Chris@39 9411 hardcode_shlibpath_var=unsupported
Chris@39 9412 if test "$lt_cv_ld_force_load" = "yes"; then
Chris@39 9413 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
Chris@39 9414 else
Chris@39 9415 whole_archive_flag_spec=''
Chris@39 9416 fi
Chris@39 9417 link_all_deplibs=yes
Chris@39 9418 allow_undefined_flag="$_lt_dar_allow_undefined"
Chris@39 9419 case $cc_basename in
Chris@39 9420 ifort*) _lt_dar_can_shared=yes ;;
Chris@39 9421 *) _lt_dar_can_shared=$GCC ;;
Chris@39 9422 esac
Chris@39 9423 if test "$_lt_dar_can_shared" = "yes"; then
Chris@39 9424 output_verbose_link_cmd=func_echo_all
Chris@39 9425 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
Chris@39 9426 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
Chris@39 9427 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
Chris@39 9428 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
Chris@39 9429
Chris@39 9430 else
Chris@39 9431 ld_shlibs=no
Chris@39 9432 fi
Chris@39 9433
Chris@39 9434 ;;
Chris@39 9435
Chris@39 9436 dgux*)
Chris@39 9437 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@39 9438 hardcode_libdir_flag_spec='-L$libdir'
Chris@39 9439 hardcode_shlibpath_var=no
Chris@39 9440 ;;
Chris@39 9441
Chris@39 9442 freebsd1*)
Chris@39 9443 ld_shlibs=no
Chris@39 9444 ;;
Chris@39 9445
Chris@39 9446 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
Chris@39 9447 # support. Future versions do this automatically, but an explicit c++rt0.o
Chris@39 9448 # does not break anything, and helps significantly (at the cost of a little
Chris@39 9449 # extra space).
Chris@39 9450 freebsd2.2*)
Chris@39 9451 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
Chris@39 9452 hardcode_libdir_flag_spec='-R$libdir'
Chris@39 9453 hardcode_direct=yes
Chris@39 9454 hardcode_shlibpath_var=no
Chris@39 9455 ;;
Chris@39 9456
Chris@39 9457 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Chris@39 9458 freebsd2*)
Chris@39 9459 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@39 9460 hardcode_direct=yes
Chris@39 9461 hardcode_minus_L=yes
Chris@39 9462 hardcode_shlibpath_var=no
Chris@39 9463 ;;
Chris@39 9464
Chris@39 9465 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Chris@39 9466 freebsd* | dragonfly*)
Chris@39 9467 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 9468 hardcode_libdir_flag_spec='-R$libdir'
Chris@39 9469 hardcode_direct=yes
Chris@39 9470 hardcode_shlibpath_var=no
Chris@39 9471 ;;
Chris@39 9472
Chris@39 9473 hpux9*)
Chris@39 9474 if test "$GCC" = yes; then
Chris@39 9475 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
Chris@39 9476 else
Chris@39 9477 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
Chris@39 9478 fi
Chris@39 9479 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Chris@39 9480 hardcode_libdir_separator=:
Chris@39 9481 hardcode_direct=yes
Chris@39 9482
Chris@39 9483 # hardcode_minus_L: Not really in the search PATH,
Chris@39 9484 # but as the default location of the library.
Chris@39 9485 hardcode_minus_L=yes
Chris@39 9486 export_dynamic_flag_spec='${wl}-E'
Chris@39 9487 ;;
Chris@39 9488
Chris@39 9489 hpux10*)
Chris@39 9490 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
Chris@39 9491 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 9492 else
Chris@39 9493 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
Chris@39 9494 fi
Chris@39 9495 if test "$with_gnu_ld" = no; then
Chris@39 9496 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Chris@39 9497 hardcode_libdir_flag_spec_ld='+b $libdir'
Chris@39 9498 hardcode_libdir_separator=:
Chris@39 9499 hardcode_direct=yes
Chris@39 9500 hardcode_direct_absolute=yes
Chris@39 9501 export_dynamic_flag_spec='${wl}-E'
Chris@39 9502 # hardcode_minus_L: Not really in the search PATH,
Chris@39 9503 # but as the default location of the library.
Chris@39 9504 hardcode_minus_L=yes
Chris@39 9505 fi
Chris@39 9506 ;;
Chris@39 9507
Chris@39 9508 hpux11*)
Chris@39 9509 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
Chris@39 9510 case $host_cpu in
Chris@39 9511 hppa*64*)
Chris@39 9512 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 9513 ;;
Chris@39 9514 ia64*)
Chris@39 9515 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 9516 ;;
Chris@39 9517 *)
Chris@39 9518 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 9519 ;;
Chris@39 9520 esac
Chris@39 9521 else
Chris@39 9522 case $host_cpu in
Chris@39 9523 hppa*64*)
Chris@39 9524 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 9525 ;;
Chris@39 9526 ia64*)
Chris@39 9527 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 9528 ;;
Chris@39 9529 *)
Chris@39 9530
Chris@39 9531 # Older versions of the 11.00 compiler do not understand -b yet
Chris@39 9532 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
Chris@39 9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
Chris@39 9534 $as_echo_n "checking if $CC understands -b... " >&6; }
Chris@39 9535 if ${lt_cv_prog_compiler__b+:} false; then :
Chris@39 9536 $as_echo_n "(cached) " >&6
Chris@39 9537 else
Chris@39 9538 lt_cv_prog_compiler__b=no
Chris@39 9539 save_LDFLAGS="$LDFLAGS"
Chris@39 9540 LDFLAGS="$LDFLAGS -b"
Chris@39 9541 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Chris@39 9542 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Chris@39 9543 # The linker can only warn and ignore the option if not recognized
Chris@39 9544 # So say no if there are warnings
Chris@39 9545 if test -s conftest.err; then
Chris@39 9546 # Append any errors to the config.log.
Chris@39 9547 cat conftest.err 1>&5
Chris@39 9548 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Chris@39 9549 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@39 9550 if diff conftest.exp conftest.er2 >/dev/null; then
Chris@39 9551 lt_cv_prog_compiler__b=yes
Chris@39 9552 fi
Chris@39 9553 else
Chris@39 9554 lt_cv_prog_compiler__b=yes
Chris@39 9555 fi
Chris@39 9556 fi
Chris@39 9557 $RM -r conftest*
Chris@39 9558 LDFLAGS="$save_LDFLAGS"
Chris@39 9559
Chris@39 9560 fi
Chris@39 9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
Chris@39 9562 $as_echo "$lt_cv_prog_compiler__b" >&6; }
Chris@39 9563
Chris@39 9564 if test x"$lt_cv_prog_compiler__b" = xyes; then
Chris@39 9565 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 9566 else
Chris@39 9567 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
Chris@39 9568 fi
Chris@39 9569
Chris@39 9570 ;;
Chris@39 9571 esac
Chris@39 9572 fi
Chris@39 9573 if test "$with_gnu_ld" = no; then
Chris@39 9574 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Chris@39 9575 hardcode_libdir_separator=:
Chris@39 9576
Chris@39 9577 case $host_cpu in
Chris@39 9578 hppa*64*|ia64*)
Chris@39 9579 hardcode_direct=no
Chris@39 9580 hardcode_shlibpath_var=no
Chris@39 9581 ;;
Chris@39 9582 *)
Chris@39 9583 hardcode_direct=yes
Chris@39 9584 hardcode_direct_absolute=yes
Chris@39 9585 export_dynamic_flag_spec='${wl}-E'
Chris@39 9586
Chris@39 9587 # hardcode_minus_L: Not really in the search PATH,
Chris@39 9588 # but as the default location of the library.
Chris@39 9589 hardcode_minus_L=yes
Chris@39 9590 ;;
Chris@39 9591 esac
Chris@39 9592 fi
Chris@39 9593 ;;
Chris@39 9594
Chris@39 9595 irix5* | irix6* | nonstopux*)
Chris@39 9596 if test "$GCC" = yes; then
Chris@39 9597 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Chris@39 9598 # Try to use the -exported_symbol ld option, if it does not
Chris@39 9599 # work, assume that -exports_file does not work either and
Chris@39 9600 # implicitly export all symbols.
Chris@39 9601 # This should be the same for all languages, so no per-tag cache variable.
Chris@39 9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
Chris@39 9603 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
Chris@39 9604 if ${lt_cv_irix_exported_symbol+:} false; then :
Chris@39 9605 $as_echo_n "(cached) " >&6
Chris@39 9606 else
Chris@39 9607 save_LDFLAGS="$LDFLAGS"
Chris@39 9608 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
Chris@39 9609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 9610 /* end confdefs.h. */
Chris@39 9611 int foo (void) { return 0; }
Chris@39 9612 _ACEOF
Chris@39 9613 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 9614 lt_cv_irix_exported_symbol=yes
Chris@39 9615 else
Chris@39 9616 lt_cv_irix_exported_symbol=no
Chris@39 9617 fi
Chris@39 9618 rm -f core conftest.err conftest.$ac_objext \
Chris@39 9619 conftest$ac_exeext conftest.$ac_ext
Chris@39 9620 LDFLAGS="$save_LDFLAGS"
Chris@39 9621 fi
Chris@39 9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
Chris@39 9623 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
Chris@39 9624 if test "$lt_cv_irix_exported_symbol" = yes; then
Chris@39 9625 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
Chris@39 9626 fi
Chris@39 9627 else
Chris@39 9628 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
Chris@39 9629 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
Chris@39 9630 fi
Chris@39 9631 archive_cmds_need_lc='no'
Chris@39 9632 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@39 9633 hardcode_libdir_separator=:
Chris@39 9634 inherit_rpath=yes
Chris@39 9635 link_all_deplibs=yes
Chris@39 9636 ;;
Chris@39 9637
Chris@39 9638 netbsd* | netbsdelf*-gnu)
Chris@39 9639 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@39 9640 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
Chris@39 9641 else
Chris@39 9642 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
Chris@39 9643 fi
Chris@39 9644 hardcode_libdir_flag_spec='-R$libdir'
Chris@39 9645 hardcode_direct=yes
Chris@39 9646 hardcode_shlibpath_var=no
Chris@39 9647 ;;
Chris@39 9648
Chris@39 9649 newsos6)
Chris@39 9650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@39 9651 hardcode_direct=yes
Chris@39 9652 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@39 9653 hardcode_libdir_separator=:
Chris@39 9654 hardcode_shlibpath_var=no
Chris@39 9655 ;;
Chris@39 9656
Chris@39 9657 *nto* | *qnx*)
Chris@39 9658 ;;
Chris@39 9659
Chris@39 9660 openbsd*)
Chris@39 9661 if test -f /usr/libexec/ld.so; then
Chris@39 9662 hardcode_direct=yes
Chris@39 9663 hardcode_shlibpath_var=no
Chris@39 9664 hardcode_direct_absolute=yes
Chris@39 9665 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@39 9666 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 9667 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
Chris@39 9668 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
Chris@39 9669 export_dynamic_flag_spec='${wl}-E'
Chris@39 9670 else
Chris@39 9671 case $host_os in
Chris@39 9672 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
Chris@39 9673 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@39 9674 hardcode_libdir_flag_spec='-R$libdir'
Chris@39 9675 ;;
Chris@39 9676 *)
Chris@39 9677 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 9678 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
Chris@39 9679 ;;
Chris@39 9680 esac
Chris@39 9681 fi
Chris@39 9682 else
Chris@39 9683 ld_shlibs=no
Chris@39 9684 fi
Chris@39 9685 ;;
Chris@39 9686
Chris@39 9687 os2*)
Chris@39 9688 hardcode_libdir_flag_spec='-L$libdir'
Chris@39 9689 hardcode_minus_L=yes
Chris@39 9690 allow_undefined_flag=unsupported
Chris@39 9691 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
Chris@39 9692 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
Chris@39 9693 ;;
Chris@39 9694
Chris@39 9695 osf3*)
Chris@39 9696 if test "$GCC" = yes; then
Chris@39 9697 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Chris@39 9698 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Chris@39 9699 else
Chris@39 9700 allow_undefined_flag=' -expect_unresolved \*'
Chris@39 9701 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
Chris@39 9702 fi
Chris@39 9703 archive_cmds_need_lc='no'
Chris@39 9704 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@39 9705 hardcode_libdir_separator=:
Chris@39 9706 ;;
Chris@39 9707
Chris@39 9708 osf4* | osf5*) # as osf3* with the addition of -msym flag
Chris@39 9709 if test "$GCC" = yes; then
Chris@39 9710 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Chris@39 9711 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Chris@39 9712 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@39 9713 else
Chris@39 9714 allow_undefined_flag=' -expect_unresolved \*'
Chris@39 9715 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
Chris@39 9716 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
Chris@39 9717 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
Chris@39 9718
Chris@39 9719 # Both c and cxx compiler support -rpath directly
Chris@39 9720 hardcode_libdir_flag_spec='-rpath $libdir'
Chris@39 9721 fi
Chris@39 9722 archive_cmds_need_lc='no'
Chris@39 9723 hardcode_libdir_separator=:
Chris@39 9724 ;;
Chris@39 9725
Chris@39 9726 solaris*)
Chris@39 9727 no_undefined_flag=' -z defs'
Chris@39 9728 if test "$GCC" = yes; then
Chris@39 9729 wlarc='${wl}'
Chris@39 9730 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 9731 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@39 9732 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Chris@39 9733 else
Chris@39 9734 case `$CC -V 2>&1` in
Chris@39 9735 *"Compilers 5.0"*)
Chris@39 9736 wlarc=''
Chris@39 9737 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@39 9738 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@39 9739 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
Chris@39 9740 ;;
Chris@39 9741 *)
Chris@39 9742 wlarc='${wl}'
Chris@39 9743 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 9744 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@39 9745 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Chris@39 9746 ;;
Chris@39 9747 esac
Chris@39 9748 fi
Chris@39 9749 hardcode_libdir_flag_spec='-R$libdir'
Chris@39 9750 hardcode_shlibpath_var=no
Chris@39 9751 case $host_os in
Chris@39 9752 solaris2.[0-5] | solaris2.[0-5].*) ;;
Chris@39 9753 *)
Chris@39 9754 # The compiler driver will combine and reorder linker options,
Chris@39 9755 # but understands `-z linker_flag'. GCC discards it without `$wl',
Chris@39 9756 # but is careful enough not to reorder.
Chris@39 9757 # Supported since Solaris 2.6 (maybe 2.5.1?)
Chris@39 9758 if test "$GCC" = yes; then
Chris@39 9759 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
Chris@39 9760 else
Chris@39 9761 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
Chris@39 9762 fi
Chris@39 9763 ;;
Chris@39 9764 esac
Chris@39 9765 link_all_deplibs=yes
Chris@39 9766 ;;
Chris@39 9767
Chris@39 9768 sunos4*)
Chris@39 9769 if test "x$host_vendor" = xsequent; then
Chris@39 9770 # Use $CC to link under sequent, because it throws in some extra .o
Chris@39 9771 # files that make .init and .fini sections work.
Chris@39 9772 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 9773 else
Chris@39 9774 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
Chris@39 9775 fi
Chris@39 9776 hardcode_libdir_flag_spec='-L$libdir'
Chris@39 9777 hardcode_direct=yes
Chris@39 9778 hardcode_minus_L=yes
Chris@39 9779 hardcode_shlibpath_var=no
Chris@39 9780 ;;
Chris@39 9781
Chris@39 9782 sysv4)
Chris@39 9783 case $host_vendor in
Chris@39 9784 sni)
Chris@39 9785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@39 9786 hardcode_direct=yes # is this really true???
Chris@39 9787 ;;
Chris@39 9788 siemens)
Chris@39 9789 ## LD is ld it makes a PLAMLIB
Chris@39 9790 ## CC just makes a GrossModule.
Chris@39 9791 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
Chris@39 9792 reload_cmds='$CC -r -o $output$reload_objs'
Chris@39 9793 hardcode_direct=no
Chris@39 9794 ;;
Chris@39 9795 motorola)
Chris@39 9796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@39 9797 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
Chris@39 9798 ;;
Chris@39 9799 esac
Chris@39 9800 runpath_var='LD_RUN_PATH'
Chris@39 9801 hardcode_shlibpath_var=no
Chris@39 9802 ;;
Chris@39 9803
Chris@39 9804 sysv4.3*)
Chris@39 9805 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@39 9806 hardcode_shlibpath_var=no
Chris@39 9807 export_dynamic_flag_spec='-Bexport'
Chris@39 9808 ;;
Chris@39 9809
Chris@39 9810 sysv4*MP*)
Chris@39 9811 if test -d /usr/nec; then
Chris@39 9812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@39 9813 hardcode_shlibpath_var=no
Chris@39 9814 runpath_var=LD_RUN_PATH
Chris@39 9815 hardcode_runpath_var=yes
Chris@39 9816 ld_shlibs=yes
Chris@39 9817 fi
Chris@39 9818 ;;
Chris@39 9819
Chris@39 9820 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Chris@39 9821 no_undefined_flag='${wl}-z,text'
Chris@39 9822 archive_cmds_need_lc=no
Chris@39 9823 hardcode_shlibpath_var=no
Chris@39 9824 runpath_var='LD_RUN_PATH'
Chris@39 9825
Chris@39 9826 if test "$GCC" = yes; then
Chris@39 9827 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 9828 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 9829 else
Chris@39 9830 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 9831 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 9832 fi
Chris@39 9833 ;;
Chris@39 9834
Chris@39 9835 sysv5* | sco3.2v5* | sco5v6*)
Chris@39 9836 # Note: We can NOT use -z defs as we might desire, because we do not
Chris@39 9837 # link with -lc, and that would cause any symbols used from libc to
Chris@39 9838 # always be unresolved, which means just about no library would
Chris@39 9839 # ever link correctly. If we're not using GNU ld we use -z text
Chris@39 9840 # though, which does catch some bad symbols but isn't as heavy-handed
Chris@39 9841 # as -z defs.
Chris@39 9842 no_undefined_flag='${wl}-z,text'
Chris@39 9843 allow_undefined_flag='${wl}-z,nodefs'
Chris@39 9844 archive_cmds_need_lc=no
Chris@39 9845 hardcode_shlibpath_var=no
Chris@39 9846 hardcode_libdir_flag_spec='${wl}-R,$libdir'
Chris@39 9847 hardcode_libdir_separator=':'
Chris@39 9848 link_all_deplibs=yes
Chris@39 9849 export_dynamic_flag_spec='${wl}-Bexport'
Chris@39 9850 runpath_var='LD_RUN_PATH'
Chris@39 9851
Chris@39 9852 if test "$GCC" = yes; then
Chris@39 9853 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 9854 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 9855 else
Chris@39 9856 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 9857 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 9858 fi
Chris@39 9859 ;;
Chris@39 9860
Chris@39 9861 uts4*)
Chris@39 9862 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@39 9863 hardcode_libdir_flag_spec='-L$libdir'
Chris@39 9864 hardcode_shlibpath_var=no
Chris@39 9865 ;;
Chris@39 9866
Chris@39 9867 *)
Chris@39 9868 ld_shlibs=no
Chris@39 9869 ;;
Chris@39 9870 esac
Chris@39 9871
Chris@39 9872 if test x$host_vendor = xsni; then
Chris@39 9873 case $host in
Chris@39 9874 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Chris@39 9875 export_dynamic_flag_spec='${wl}-Blargedynsym'
Chris@39 9876 ;;
Chris@39 9877 esac
Chris@39 9878 fi
Chris@39 9879 fi
Chris@39 9880
Chris@39 9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
Chris@39 9882 $as_echo "$ld_shlibs" >&6; }
Chris@39 9883 test "$ld_shlibs" = no && can_build_shared=no
Chris@39 9884
Chris@39 9885 with_gnu_ld=$with_gnu_ld
Chris@39 9886
Chris@39 9887
Chris@39 9888
Chris@39 9889
Chris@39 9890
Chris@39 9891
Chris@39 9892
Chris@39 9893
Chris@39 9894
Chris@39 9895
Chris@39 9896
Chris@39 9897
Chris@39 9898
Chris@39 9899
Chris@39 9900
Chris@39 9901 #
Chris@39 9902 # Do we need to explicitly link libc?
Chris@39 9903 #
Chris@39 9904 case "x$archive_cmds_need_lc" in
Chris@39 9905 x|xyes)
Chris@39 9906 # Assume -lc should be added
Chris@39 9907 archive_cmds_need_lc=yes
Chris@39 9908
Chris@39 9909 if test "$enable_shared" = yes && test "$GCC" = yes; then
Chris@39 9910 case $archive_cmds in
Chris@39 9911 *'~'*)
Chris@39 9912 # FIXME: we may have to deal with multi-command sequences.
Chris@39 9913 ;;
Chris@39 9914 '$CC '*)
Chris@39 9915 # Test whether the compiler implicitly links with -lc since on some
Chris@39 9916 # systems, -lgcc has to come before -lc. If gcc already passes -lc
Chris@39 9917 # to ld, don't add -lc before -lgcc.
Chris@39 9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Chris@39 9919 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Chris@39 9920 if ${lt_cv_archive_cmds_need_lc+:} false; then :
Chris@39 9921 $as_echo_n "(cached) " >&6
Chris@39 9922 else
Chris@39 9923 $RM conftest*
Chris@39 9924 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@39 9925
Chris@39 9926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@39 9927 (eval $ac_compile) 2>&5
Chris@39 9928 ac_status=$?
Chris@39 9929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 9930 test $ac_status = 0; } 2>conftest.err; then
Chris@39 9931 soname=conftest
Chris@39 9932 lib=conftest
Chris@39 9933 libobjs=conftest.$ac_objext
Chris@39 9934 deplibs=
Chris@39 9935 wl=$lt_prog_compiler_wl
Chris@39 9936 pic_flag=$lt_prog_compiler_pic
Chris@39 9937 compiler_flags=-v
Chris@39 9938 linker_flags=-v
Chris@39 9939 verstring=
Chris@39 9940 output_objdir=.
Chris@39 9941 libname=conftest
Chris@39 9942 lt_save_allow_undefined_flag=$allow_undefined_flag
Chris@39 9943 allow_undefined_flag=
Chris@39 9944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Chris@39 9945 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Chris@39 9946 ac_status=$?
Chris@39 9947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 9948 test $ac_status = 0; }
Chris@39 9949 then
Chris@39 9950 lt_cv_archive_cmds_need_lc=no
Chris@39 9951 else
Chris@39 9952 lt_cv_archive_cmds_need_lc=yes
Chris@39 9953 fi
Chris@39 9954 allow_undefined_flag=$lt_save_allow_undefined_flag
Chris@39 9955 else
Chris@39 9956 cat conftest.err 1>&5
Chris@39 9957 fi
Chris@39 9958 $RM conftest*
Chris@39 9959
Chris@39 9960 fi
Chris@39 9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
Chris@39 9962 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
Chris@39 9963 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Chris@39 9964 ;;
Chris@39 9965 esac
Chris@39 9966 fi
Chris@39 9967 ;;
Chris@39 9968 esac
Chris@39 9969
Chris@39 9970
Chris@39 9971
Chris@39 9972
Chris@39 9973
Chris@39 9974
Chris@39 9975
Chris@39 9976
Chris@39 9977
Chris@39 9978
Chris@39 9979
Chris@39 9980
Chris@39 9981
Chris@39 9982
Chris@39 9983
Chris@39 9984
Chris@39 9985
Chris@39 9986
Chris@39 9987
Chris@39 9988
Chris@39 9989
Chris@39 9990
Chris@39 9991
Chris@39 9992
Chris@39 9993
Chris@39 9994
Chris@39 9995
Chris@39 9996
Chris@39 9997
Chris@39 9998
Chris@39 9999
Chris@39 10000
Chris@39 10001
Chris@39 10002
Chris@39 10003
Chris@39 10004
Chris@39 10005
Chris@39 10006
Chris@39 10007
Chris@39 10008
Chris@39 10009
Chris@39 10010
Chris@39 10011
Chris@39 10012
Chris@39 10013
Chris@39 10014
Chris@39 10015
Chris@39 10016
Chris@39 10017
Chris@39 10018
Chris@39 10019
Chris@39 10020
Chris@39 10021
Chris@39 10022
Chris@39 10023
Chris@39 10024
Chris@39 10025
Chris@39 10026
Chris@39 10027
Chris@39 10028
Chris@39 10029
Chris@39 10030
Chris@39 10031
Chris@39 10032
Chris@39 10033
Chris@39 10034
Chris@39 10035
Chris@39 10036
Chris@39 10037
Chris@39 10038
Chris@39 10039
Chris@39 10040
Chris@39 10041
Chris@39 10042
Chris@39 10043
Chris@39 10044
Chris@39 10045
Chris@39 10046
Chris@39 10047
Chris@39 10048
Chris@39 10049
Chris@39 10050
Chris@39 10051
Chris@39 10052
Chris@39 10053
Chris@39 10054
Chris@39 10055
Chris@39 10056
Chris@39 10057
Chris@39 10058
Chris@39 10059
Chris@39 10060
Chris@39 10061
Chris@39 10062
Chris@39 10063
Chris@39 10064
Chris@39 10065
Chris@39 10066
Chris@39 10067
Chris@39 10068
Chris@39 10069
Chris@39 10070
Chris@39 10071
Chris@39 10072
Chris@39 10073
Chris@39 10074
Chris@39 10075
Chris@39 10076
Chris@39 10077
Chris@39 10078
Chris@39 10079
Chris@39 10080
Chris@39 10081
Chris@39 10082
Chris@39 10083
Chris@39 10084
Chris@39 10085
Chris@39 10086
Chris@39 10087
Chris@39 10088
Chris@39 10089
Chris@39 10090
Chris@39 10091
Chris@39 10092
Chris@39 10093
Chris@39 10094
Chris@39 10095
Chris@39 10096
Chris@39 10097
Chris@39 10098
Chris@39 10099
Chris@39 10100
Chris@39 10101
Chris@39 10102
Chris@39 10103
Chris@39 10104
Chris@39 10105
Chris@39 10106
Chris@39 10107
Chris@39 10108
Chris@39 10109
Chris@39 10110
Chris@39 10111
Chris@39 10112
Chris@39 10113
Chris@39 10114
Chris@39 10115
Chris@39 10116
Chris@39 10117
Chris@39 10118
Chris@39 10119
Chris@39 10120
Chris@39 10121
Chris@39 10122
Chris@39 10123
Chris@39 10124
Chris@39 10125
Chris@39 10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Chris@39 10127 $as_echo_n "checking dynamic linker characteristics... " >&6; }
Chris@39 10128
Chris@39 10129 if test "$GCC" = yes; then
Chris@39 10130 case $host_os in
Chris@39 10131 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
Chris@39 10132 *) lt_awk_arg="/^libraries:/" ;;
Chris@39 10133 esac
Chris@39 10134 case $host_os in
Chris@39 10135 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
Chris@39 10136 *) lt_sed_strip_eq="s,=/,/,g" ;;
Chris@39 10137 esac
Chris@39 10138 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
Chris@39 10139 case $lt_search_path_spec in
Chris@39 10140 *\;*)
Chris@39 10141 # if the path contains ";" then we assume it to be the separator
Chris@39 10142 # otherwise default to the standard path separator (i.e. ":") - it is
Chris@39 10143 # assumed that no part of a normal pathname contains ";" but that should
Chris@39 10144 # okay in the real world where ";" in dirpaths is itself problematic.
Chris@39 10145 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
Chris@39 10146 ;;
Chris@39 10147 *)
Chris@39 10148 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
Chris@39 10149 ;;
Chris@39 10150 esac
Chris@39 10151 # Ok, now we have the path, separated by spaces, we can step through it
Chris@39 10152 # and add multilib dir if necessary.
Chris@39 10153 lt_tmp_lt_search_path_spec=
Chris@39 10154 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
Chris@39 10155 for lt_sys_path in $lt_search_path_spec; do
Chris@39 10156 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
Chris@39 10157 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
Chris@39 10158 else
Chris@39 10159 test -d "$lt_sys_path" && \
Chris@39 10160 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
Chris@39 10161 fi
Chris@39 10162 done
Chris@39 10163 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Chris@39 10164 BEGIN {RS=" "; FS="/|\n";} {
Chris@39 10165 lt_foo="";
Chris@39 10166 lt_count=0;
Chris@39 10167 for (lt_i = NF; lt_i > 0; lt_i--) {
Chris@39 10168 if ($lt_i != "" && $lt_i != ".") {
Chris@39 10169 if ($lt_i == "..") {
Chris@39 10170 lt_count++;
Chris@39 10171 } else {
Chris@39 10172 if (lt_count == 0) {
Chris@39 10173 lt_foo="/" $lt_i lt_foo;
Chris@39 10174 } else {
Chris@39 10175 lt_count--;
Chris@39 10176 }
Chris@39 10177 }
Chris@39 10178 }
Chris@39 10179 }
Chris@39 10180 if (lt_foo != "") { lt_freq[lt_foo]++; }
Chris@39 10181 if (lt_freq[lt_foo] == 1) { print lt_foo; }
Chris@39 10182 }'`
Chris@39 10183 # AWK program above erroneously prepends '/' to C:/dos/paths
Chris@39 10184 # for these hosts.
Chris@39 10185 case $host_os in
Chris@39 10186 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
Chris@39 10187 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
Chris@39 10188 esac
Chris@39 10189 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Chris@39 10190 else
Chris@39 10191 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Chris@39 10192 fi
Chris@39 10193 library_names_spec=
Chris@39 10194 libname_spec='lib$name'
Chris@39 10195 soname_spec=
Chris@39 10196 shrext_cmds=".so"
Chris@39 10197 postinstall_cmds=
Chris@39 10198 postuninstall_cmds=
Chris@39 10199 finish_cmds=
Chris@39 10200 finish_eval=
Chris@39 10201 shlibpath_var=
Chris@39 10202 shlibpath_overrides_runpath=unknown
Chris@39 10203 version_type=none
Chris@39 10204 dynamic_linker="$host_os ld.so"
Chris@39 10205 sys_lib_dlsearch_path_spec="/lib /usr/lib"
Chris@39 10206 need_lib_prefix=unknown
Chris@39 10207 hardcode_into_libs=no
Chris@39 10208
Chris@39 10209 # when you set need_version to no, make sure it does not cause -set_version
Chris@39 10210 # flags to be left without arguments
Chris@39 10211 need_version=unknown
Chris@39 10212
Chris@39 10213 case $host_os in
Chris@39 10214 aix3*)
Chris@39 10215 version_type=linux
Chris@39 10216 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
Chris@39 10217 shlibpath_var=LIBPATH
Chris@39 10218
Chris@39 10219 # AIX 3 has no versioning support, so we append a major version to the name.
Chris@39 10220 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10221 ;;
Chris@39 10222
Chris@39 10223 aix[4-9]*)
Chris@39 10224 version_type=linux
Chris@39 10225 need_lib_prefix=no
Chris@39 10226 need_version=no
Chris@39 10227 hardcode_into_libs=yes
Chris@39 10228 if test "$host_cpu" = ia64; then
Chris@39 10229 # AIX 5 supports IA64
Chris@39 10230 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
Chris@39 10231 shlibpath_var=LD_LIBRARY_PATH
Chris@39 10232 else
Chris@39 10233 # With GCC up to 2.95.x, collect2 would create an import file
Chris@39 10234 # for dependence libraries. The import file would start with
Chris@39 10235 # the line `#! .'. This would cause the generated library to
Chris@39 10236 # depend on `.', always an invalid library. This was fixed in
Chris@39 10237 # development snapshots of GCC prior to 3.0.
Chris@39 10238 case $host_os in
Chris@39 10239 aix4 | aix4.[01] | aix4.[01].*)
Chris@39 10240 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
Chris@39 10241 echo ' yes '
Chris@39 10242 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
Chris@39 10243 :
Chris@39 10244 else
Chris@39 10245 can_build_shared=no
Chris@39 10246 fi
Chris@39 10247 ;;
Chris@39 10248 esac
Chris@39 10249 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
Chris@39 10250 # soname into executable. Probably we can add versioning support to
Chris@39 10251 # collect2, so additional links can be useful in future.
Chris@39 10252 if test "$aix_use_runtimelinking" = yes; then
Chris@39 10253 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
Chris@39 10254 # instead of lib<name>.a to let people know that these are not
Chris@39 10255 # typical AIX shared libraries.
Chris@39 10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 10257 else
Chris@39 10258 # We preserve .a as extension for shared libraries through AIX4.2
Chris@39 10259 # and later when we are not doing run time linking.
Chris@39 10260 library_names_spec='${libname}${release}.a $libname.a'
Chris@39 10261 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10262 fi
Chris@39 10263 shlibpath_var=LIBPATH
Chris@39 10264 fi
Chris@39 10265 ;;
Chris@39 10266
Chris@39 10267 amigaos*)
Chris@39 10268 case $host_cpu in
Chris@39 10269 powerpc)
Chris@39 10270 # Since July 2007 AmigaOS4 officially supports .so libraries.
Chris@39 10271 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Chris@39 10272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 10273 ;;
Chris@39 10274 m68k)
Chris@39 10275 library_names_spec='$libname.ixlibrary $libname.a'
Chris@39 10276 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Chris@39 10277 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
Chris@39 10278 ;;
Chris@39 10279 esac
Chris@39 10280 ;;
Chris@39 10281
Chris@39 10282 beos*)
Chris@39 10283 library_names_spec='${libname}${shared_ext}'
Chris@39 10284 dynamic_linker="$host_os ld.so"
Chris@39 10285 shlibpath_var=LIBRARY_PATH
Chris@39 10286 ;;
Chris@39 10287
Chris@39 10288 bsdi[45]*)
Chris@39 10289 version_type=linux
Chris@39 10290 need_version=no
Chris@39 10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 10292 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10293 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
Chris@39 10294 shlibpath_var=LD_LIBRARY_PATH
Chris@39 10295 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
Chris@39 10296 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
Chris@39 10297 # the default ld.so.conf also contains /usr/contrib/lib and
Chris@39 10298 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
Chris@39 10299 # libtool to hard-code these into programs
Chris@39 10300 ;;
Chris@39 10301
Chris@39 10302 cygwin* | mingw* | pw32* | cegcc*)
Chris@39 10303 version_type=windows
Chris@39 10304 shrext_cmds=".dll"
Chris@39 10305 need_version=no
Chris@39 10306 need_lib_prefix=no
Chris@39 10307
Chris@39 10308 case $GCC,$cc_basename in
Chris@39 10309 yes,*)
Chris@39 10310 # gcc
Chris@39 10311 library_names_spec='$libname.dll.a'
Chris@39 10312 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@39 10313 postinstall_cmds='base_file=`basename \${file}`~
Chris@39 10314 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Chris@39 10315 dldir=$destdir/`dirname \$dlpath`~
Chris@39 10316 test -d \$dldir || mkdir -p \$dldir~
Chris@39 10317 $install_prog $dir/$dlname \$dldir/$dlname~
Chris@39 10318 chmod a+x \$dldir/$dlname~
Chris@39 10319 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
Chris@39 10320 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
Chris@39 10321 fi'
Chris@39 10322 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@39 10323 dlpath=$dir/\$dldll~
Chris@39 10324 $RM \$dlpath'
Chris@39 10325 shlibpath_overrides_runpath=yes
Chris@39 10326
Chris@39 10327 case $host_os in
Chris@39 10328 cygwin*)
Chris@39 10329 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Chris@39 10330 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@39 10331
Chris@39 10332 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Chris@39 10333 ;;
Chris@39 10334 mingw* | cegcc*)
Chris@39 10335 # MinGW DLLs use traditional 'lib' prefix
Chris@39 10336 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@39 10337 ;;
Chris@39 10338 pw32*)
Chris@39 10339 # pw32 DLLs use 'pw' prefix rather than 'lib'
Chris@39 10340 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@39 10341 ;;
Chris@39 10342 esac
Chris@39 10343 dynamic_linker='Win32 ld.exe'
Chris@39 10344 ;;
Chris@39 10345
Chris@39 10346 *,cl*)
Chris@39 10347 # Native MSVC
Chris@39 10348 libname_spec='$name'
Chris@39 10349 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@39 10350 library_names_spec='${libname}.dll.lib'
Chris@39 10351
Chris@39 10352 case $build_os in
Chris@39 10353 mingw*)
Chris@39 10354 sys_lib_search_path_spec=
Chris@39 10355 lt_save_ifs=$IFS
Chris@39 10356 IFS=';'
Chris@39 10357 for lt_path in $LIB
Chris@39 10358 do
Chris@39 10359 IFS=$lt_save_ifs
Chris@39 10360 # Let DOS variable expansion print the short 8.3 style file name.
Chris@39 10361 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
Chris@39 10362 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
Chris@39 10363 done
Chris@39 10364 IFS=$lt_save_ifs
Chris@39 10365 # Convert to MSYS style.
Chris@39 10366 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
Chris@39 10367 ;;
Chris@39 10368 cygwin*)
Chris@39 10369 # Convert to unix form, then to dos form, then back to unix form
Chris@39 10370 # but this time dos style (no spaces!) so that the unix form looks
Chris@39 10371 # like /cygdrive/c/PROGRA~1:/cygdr...
Chris@39 10372 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
Chris@39 10373 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
Chris@39 10374 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@39 10375 ;;
Chris@39 10376 *)
Chris@39 10377 sys_lib_search_path_spec="$LIB"
Chris@39 10378 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
Chris@39 10379 # It is most probably a Windows format PATH.
Chris@39 10380 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Chris@39 10381 else
Chris@39 10382 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@39 10383 fi
Chris@39 10384 # FIXME: find the short name or the path components, as spaces are
Chris@39 10385 # common. (e.g. "Program Files" -> "PROGRA~1")
Chris@39 10386 ;;
Chris@39 10387 esac
Chris@39 10388
Chris@39 10389 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@39 10390 postinstall_cmds='base_file=`basename \${file}`~
Chris@39 10391 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Chris@39 10392 dldir=$destdir/`dirname \$dlpath`~
Chris@39 10393 test -d \$dldir || mkdir -p \$dldir~
Chris@39 10394 $install_prog $dir/$dlname \$dldir/$dlname'
Chris@39 10395 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@39 10396 dlpath=$dir/\$dldll~
Chris@39 10397 $RM \$dlpath'
Chris@39 10398 shlibpath_overrides_runpath=yes
Chris@39 10399 dynamic_linker='Win32 link.exe'
Chris@39 10400 ;;
Chris@39 10401
Chris@39 10402 *)
Chris@39 10403 # Assume MSVC wrapper
Chris@39 10404 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Chris@39 10405 dynamic_linker='Win32 ld.exe'
Chris@39 10406 ;;
Chris@39 10407 esac
Chris@39 10408 # FIXME: first we should search . and the directory the executable is in
Chris@39 10409 shlibpath_var=PATH
Chris@39 10410 ;;
Chris@39 10411
Chris@39 10412 darwin* | rhapsody*)
Chris@39 10413 dynamic_linker="$host_os dyld"
Chris@39 10414 version_type=darwin
Chris@39 10415 need_lib_prefix=no
Chris@39 10416 need_version=no
Chris@39 10417 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Chris@39 10418 soname_spec='${libname}${release}${major}$shared_ext'
Chris@39 10419 shlibpath_overrides_runpath=yes
Chris@39 10420 shlibpath_var=DYLD_LIBRARY_PATH
Chris@39 10421 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Chris@39 10422
Chris@39 10423 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
Chris@39 10424 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
Chris@39 10425 ;;
Chris@39 10426
Chris@39 10427 dgux*)
Chris@39 10428 version_type=linux
Chris@39 10429 need_lib_prefix=no
Chris@39 10430 need_version=no
Chris@39 10431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
Chris@39 10432 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10433 shlibpath_var=LD_LIBRARY_PATH
Chris@39 10434 ;;
Chris@39 10435
Chris@39 10436 freebsd1*)
Chris@39 10437 dynamic_linker=no
Chris@39 10438 ;;
Chris@39 10439
Chris@39 10440 freebsd* | dragonfly*)
Chris@39 10441 # DragonFly does not have aout. When/if they implement a new
Chris@39 10442 # versioning mechanism, adjust this.
Chris@39 10443 if test -x /usr/bin/objformat; then
Chris@39 10444 objformat=`/usr/bin/objformat`
Chris@39 10445 else
Chris@39 10446 case $host_os in
Chris@39 10447 freebsd[123]*) objformat=aout ;;
Chris@39 10448 *) objformat=elf ;;
Chris@39 10449 esac
Chris@39 10450 fi
Chris@39 10451 version_type=freebsd-$objformat
Chris@39 10452 case $version_type in
Chris@39 10453 freebsd-elf*)
Chris@39 10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@39 10455 need_version=no
Chris@39 10456 need_lib_prefix=no
Chris@39 10457 ;;
Chris@39 10458 freebsd-*)
Chris@39 10459 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
Chris@39 10460 need_version=yes
Chris@39 10461 ;;
Chris@39 10462 esac
Chris@39 10463 shlibpath_var=LD_LIBRARY_PATH
Chris@39 10464 case $host_os in
Chris@39 10465 freebsd2*)
Chris@39 10466 shlibpath_overrides_runpath=yes
Chris@39 10467 ;;
Chris@39 10468 freebsd3.[01]* | freebsdelf3.[01]*)
Chris@39 10469 shlibpath_overrides_runpath=yes
Chris@39 10470 hardcode_into_libs=yes
Chris@39 10471 ;;
Chris@39 10472 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
Chris@39 10473 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Chris@39 10474 shlibpath_overrides_runpath=no
Chris@39 10475 hardcode_into_libs=yes
Chris@39 10476 ;;
Chris@39 10477 *) # from 4.6 on, and DragonFly
Chris@39 10478 shlibpath_overrides_runpath=yes
Chris@39 10479 hardcode_into_libs=yes
Chris@39 10480 ;;
Chris@39 10481 esac
Chris@39 10482 ;;
Chris@39 10483
Chris@39 10484 gnu*)
Chris@39 10485 version_type=linux
Chris@39 10486 need_lib_prefix=no
Chris@39 10487 need_version=no
Chris@39 10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
Chris@39 10489 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10490 shlibpath_var=LD_LIBRARY_PATH
Chris@39 10491 shlibpath_overrides_runpath=no
Chris@39 10492 hardcode_into_libs=yes
Chris@39 10493 ;;
Chris@39 10494
Chris@39 10495 haiku*)
Chris@39 10496 version_type=linux
Chris@39 10497 need_lib_prefix=no
Chris@39 10498 need_version=no
Chris@39 10499 dynamic_linker="$host_os runtime_loader"
Chris@39 10500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
Chris@39 10501 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10502 shlibpath_var=LIBRARY_PATH
Chris@39 10503 shlibpath_overrides_runpath=yes
Chris@39 10504 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Chris@39 10505 hardcode_into_libs=yes
Chris@39 10506 ;;
Chris@39 10507
Chris@39 10508 hpux9* | hpux10* | hpux11*)
Chris@39 10509 # Give a soname corresponding to the major version so that dld.sl refuses to
Chris@39 10510 # link against other versions.
Chris@39 10511 version_type=sunos
Chris@39 10512 need_lib_prefix=no
Chris@39 10513 need_version=no
Chris@39 10514 case $host_cpu in
Chris@39 10515 ia64*)
Chris@39 10516 shrext_cmds='.so'
Chris@39 10517 hardcode_into_libs=yes
Chris@39 10518 dynamic_linker="$host_os dld.so"
Chris@39 10519 shlibpath_var=LD_LIBRARY_PATH
Chris@39 10520 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@39 10521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 10522 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10523 if test "X$HPUX_IA64_MODE" = X32; then
Chris@39 10524 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Chris@39 10525 else
Chris@39 10526 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Chris@39 10527 fi
Chris@39 10528 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@39 10529 ;;
Chris@39 10530 hppa*64*)
Chris@39 10531 shrext_cmds='.sl'
Chris@39 10532 hardcode_into_libs=yes
Chris@39 10533 dynamic_linker="$host_os dld.sl"
Chris@39 10534 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
Chris@39 10535 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@39 10536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 10537 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10538 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
Chris@39 10539 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@39 10540 ;;
Chris@39 10541 *)
Chris@39 10542 shrext_cmds='.sl'
Chris@39 10543 dynamic_linker="$host_os dld.sl"
Chris@39 10544 shlibpath_var=SHLIB_PATH
Chris@39 10545 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Chris@39 10546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 10547 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10548 ;;
Chris@39 10549 esac
Chris@39 10550 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Chris@39 10551 postinstall_cmds='chmod 555 $lib'
Chris@39 10552 # or fails outright, so override atomically:
Chris@39 10553 install_override_mode=555
Chris@39 10554 ;;
Chris@39 10555
Chris@39 10556 interix[3-9]*)
Chris@39 10557 version_type=linux
Chris@39 10558 need_lib_prefix=no
Chris@39 10559 need_version=no
Chris@39 10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@39 10561 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10562 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
Chris@39 10563 shlibpath_var=LD_LIBRARY_PATH
Chris@39 10564 shlibpath_overrides_runpath=no
Chris@39 10565 hardcode_into_libs=yes
Chris@39 10566 ;;
Chris@39 10567
Chris@39 10568 irix5* | irix6* | nonstopux*)
Chris@39 10569 case $host_os in
Chris@39 10570 nonstopux*) version_type=nonstopux ;;
Chris@39 10571 *)
Chris@39 10572 if test "$lt_cv_prog_gnu_ld" = yes; then
Chris@39 10573 version_type=linux
Chris@39 10574 else
Chris@39 10575 version_type=irix
Chris@39 10576 fi ;;
Chris@39 10577 esac
Chris@39 10578 need_lib_prefix=no
Chris@39 10579 need_version=no
Chris@39 10580 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@39 10582 case $host_os in
Chris@39 10583 irix5* | nonstopux*)
Chris@39 10584 libsuff= shlibsuff=
Chris@39 10585 ;;
Chris@39 10586 *)
Chris@39 10587 case $LD in # libtool.m4 will add one of these switches to LD
Chris@39 10588 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
Chris@39 10589 libsuff= shlibsuff= libmagic=32-bit;;
Chris@39 10590 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
Chris@39 10591 libsuff=32 shlibsuff=N32 libmagic=N32;;
Chris@39 10592 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
Chris@39 10593 libsuff=64 shlibsuff=64 libmagic=64-bit;;
Chris@39 10594 *) libsuff= shlibsuff= libmagic=never-match;;
Chris@39 10595 esac
Chris@39 10596 ;;
Chris@39 10597 esac
Chris@39 10598 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
Chris@39 10599 shlibpath_overrides_runpath=no
Chris@39 10600 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
Chris@39 10601 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
Chris@39 10602 hardcode_into_libs=yes
Chris@39 10603 ;;
Chris@39 10604
Chris@39 10605 # No shared lib support for Linux oldld, aout, or coff.
Chris@39 10606 linux*oldld* | linux*aout* | linux*coff*)
Chris@39 10607 dynamic_linker=no
Chris@39 10608 ;;
Chris@39 10609
Chris@39 10610 # This must be Linux ELF.
Chris@39 10611 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@39 10612 version_type=linux
Chris@39 10613 need_lib_prefix=no
Chris@39 10614 need_version=no
Chris@39 10615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 10616 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
Chris@39 10618 shlibpath_var=LD_LIBRARY_PATH
Chris@39 10619 shlibpath_overrides_runpath=no
Chris@39 10620
Chris@39 10621 # Some binutils ld are patched to set DT_RUNPATH
Chris@39 10622 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
Chris@39 10623 $as_echo_n "(cached) " >&6
Chris@39 10624 else
Chris@39 10625 lt_cv_shlibpath_overrides_runpath=no
Chris@39 10626 save_LDFLAGS=$LDFLAGS
Chris@39 10627 save_libdir=$libdir
Chris@39 10628 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
Chris@39 10629 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
Chris@39 10630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 10631 /* end confdefs.h. */
Chris@39 10632
Chris@39 10633 int
Chris@39 10634 main ()
Chris@39 10635 {
Chris@39 10636
Chris@39 10637 ;
Chris@39 10638 return 0;
Chris@39 10639 }
Chris@39 10640 _ACEOF
Chris@39 10641 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 10642 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
Chris@39 10643 lt_cv_shlibpath_overrides_runpath=yes
Chris@39 10644 fi
Chris@39 10645 fi
Chris@39 10646 rm -f core conftest.err conftest.$ac_objext \
Chris@39 10647 conftest$ac_exeext conftest.$ac_ext
Chris@39 10648 LDFLAGS=$save_LDFLAGS
Chris@39 10649 libdir=$save_libdir
Chris@39 10650
Chris@39 10651 fi
Chris@39 10652
Chris@39 10653 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Chris@39 10654
Chris@39 10655 # This implies no fast_install, which is unacceptable.
Chris@39 10656 # Some rework will be needed to allow for fast_install
Chris@39 10657 # before this can be enabled.
Chris@39 10658 hardcode_into_libs=yes
Chris@39 10659
Chris@39 10660 # Append ld.so.conf contents to the search path
Chris@39 10661 if test -f /etc/ld.so.conf; then
Chris@39 10662 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
Chris@39 10663 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
Chris@39 10664 fi
Chris@39 10665
Chris@39 10666 # We used to test for /lib/ld.so.1 and disable shared libraries on
Chris@39 10667 # powerpc, because MkLinux only supported shared libraries with the
Chris@39 10668 # GNU dynamic linker. Since this was broken with cross compilers,
Chris@39 10669 # most powerpc-linux boxes support dynamic linking these days and
Chris@39 10670 # people can always --disable-shared, the test was removed, and we
Chris@39 10671 # assume the GNU/Linux dynamic linker is in use.
Chris@39 10672 dynamic_linker='GNU/Linux ld.so'
Chris@39 10673 ;;
Chris@39 10674
Chris@39 10675 netbsdelf*-gnu)
Chris@39 10676 version_type=linux
Chris@39 10677 need_lib_prefix=no
Chris@39 10678 need_version=no
Chris@39 10679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@39 10680 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10681 shlibpath_var=LD_LIBRARY_PATH
Chris@39 10682 shlibpath_overrides_runpath=no
Chris@39 10683 hardcode_into_libs=yes
Chris@39 10684 dynamic_linker='NetBSD ld.elf_so'
Chris@39 10685 ;;
Chris@39 10686
Chris@39 10687 netbsd*)
Chris@39 10688 version_type=sunos
Chris@39 10689 need_lib_prefix=no
Chris@39 10690 need_version=no
Chris@39 10691 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@39 10692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@39 10693 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@39 10694 dynamic_linker='NetBSD (a.out) ld.so'
Chris@39 10695 else
Chris@39 10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@39 10697 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10698 dynamic_linker='NetBSD ld.elf_so'
Chris@39 10699 fi
Chris@39 10700 shlibpath_var=LD_LIBRARY_PATH
Chris@39 10701 shlibpath_overrides_runpath=yes
Chris@39 10702 hardcode_into_libs=yes
Chris@39 10703 ;;
Chris@39 10704
Chris@39 10705 newsos6)
Chris@39 10706 version_type=linux
Chris@39 10707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 10708 shlibpath_var=LD_LIBRARY_PATH
Chris@39 10709 shlibpath_overrides_runpath=yes
Chris@39 10710 ;;
Chris@39 10711
Chris@39 10712 *nto* | *qnx*)
Chris@39 10713 version_type=qnx
Chris@39 10714 need_lib_prefix=no
Chris@39 10715 need_version=no
Chris@39 10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 10717 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10718 shlibpath_var=LD_LIBRARY_PATH
Chris@39 10719 shlibpath_overrides_runpath=no
Chris@39 10720 hardcode_into_libs=yes
Chris@39 10721 dynamic_linker='ldqnx.so'
Chris@39 10722 ;;
Chris@39 10723
Chris@39 10724 openbsd*)
Chris@39 10725 version_type=sunos
Chris@39 10726 sys_lib_dlsearch_path_spec="/usr/lib"
Chris@39 10727 need_lib_prefix=no
Chris@39 10728 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
Chris@39 10729 case $host_os in
Chris@39 10730 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
Chris@39 10731 *) need_version=no ;;
Chris@39 10732 esac
Chris@39 10733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@39 10734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@39 10735 shlibpath_var=LD_LIBRARY_PATH
Chris@39 10736 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@39 10737 case $host_os in
Chris@39 10738 openbsd2.[89] | openbsd2.[89].*)
Chris@39 10739 shlibpath_overrides_runpath=no
Chris@39 10740 ;;
Chris@39 10741 *)
Chris@39 10742 shlibpath_overrides_runpath=yes
Chris@39 10743 ;;
Chris@39 10744 esac
Chris@39 10745 else
Chris@39 10746 shlibpath_overrides_runpath=yes
Chris@39 10747 fi
Chris@39 10748 ;;
Chris@39 10749
Chris@39 10750 os2*)
Chris@39 10751 libname_spec='$name'
Chris@39 10752 shrext_cmds=".dll"
Chris@39 10753 need_lib_prefix=no
Chris@39 10754 library_names_spec='$libname${shared_ext} $libname.a'
Chris@39 10755 dynamic_linker='OS/2 ld.exe'
Chris@39 10756 shlibpath_var=LIBPATH
Chris@39 10757 ;;
Chris@39 10758
Chris@39 10759 osf3* | osf4* | osf5*)
Chris@39 10760 version_type=osf
Chris@39 10761 need_lib_prefix=no
Chris@39 10762 need_version=no
Chris@39 10763 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 10765 shlibpath_var=LD_LIBRARY_PATH
Chris@39 10766 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Chris@39 10767 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
Chris@39 10768 ;;
Chris@39 10769
Chris@39 10770 rdos*)
Chris@39 10771 dynamic_linker=no
Chris@39 10772 ;;
Chris@39 10773
Chris@39 10774 solaris*)
Chris@39 10775 version_type=linux
Chris@39 10776 need_lib_prefix=no
Chris@39 10777 need_version=no
Chris@39 10778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 10779 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10780 shlibpath_var=LD_LIBRARY_PATH
Chris@39 10781 shlibpath_overrides_runpath=yes
Chris@39 10782 hardcode_into_libs=yes
Chris@39 10783 # ldd complains unless libraries are executable
Chris@39 10784 postinstall_cmds='chmod +x $lib'
Chris@39 10785 ;;
Chris@39 10786
Chris@39 10787 sunos4*)
Chris@39 10788 version_type=sunos
Chris@39 10789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@39 10790 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
Chris@39 10791 shlibpath_var=LD_LIBRARY_PATH
Chris@39 10792 shlibpath_overrides_runpath=yes
Chris@39 10793 if test "$with_gnu_ld" = yes; then
Chris@39 10794 need_lib_prefix=no
Chris@39 10795 fi
Chris@39 10796 need_version=yes
Chris@39 10797 ;;
Chris@39 10798
Chris@39 10799 sysv4 | sysv4.3*)
Chris@39 10800 version_type=linux
Chris@39 10801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 10802 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10803 shlibpath_var=LD_LIBRARY_PATH
Chris@39 10804 case $host_vendor in
Chris@39 10805 sni)
Chris@39 10806 shlibpath_overrides_runpath=no
Chris@39 10807 need_lib_prefix=no
Chris@39 10808 runpath_var=LD_RUN_PATH
Chris@39 10809 ;;
Chris@39 10810 siemens)
Chris@39 10811 need_lib_prefix=no
Chris@39 10812 ;;
Chris@39 10813 motorola)
Chris@39 10814 need_lib_prefix=no
Chris@39 10815 need_version=no
Chris@39 10816 shlibpath_overrides_runpath=no
Chris@39 10817 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
Chris@39 10818 ;;
Chris@39 10819 esac
Chris@39 10820 ;;
Chris@39 10821
Chris@39 10822 sysv4*MP*)
Chris@39 10823 if test -d /usr/nec ;then
Chris@39 10824 version_type=linux
Chris@39 10825 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
Chris@39 10826 soname_spec='$libname${shared_ext}.$major'
Chris@39 10827 shlibpath_var=LD_LIBRARY_PATH
Chris@39 10828 fi
Chris@39 10829 ;;
Chris@39 10830
Chris@39 10831 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Chris@39 10832 version_type=freebsd-elf
Chris@39 10833 need_lib_prefix=no
Chris@39 10834 need_version=no
Chris@39 10835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@39 10836 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10837 shlibpath_var=LD_LIBRARY_PATH
Chris@39 10838 shlibpath_overrides_runpath=yes
Chris@39 10839 hardcode_into_libs=yes
Chris@39 10840 if test "$with_gnu_ld" = yes; then
Chris@39 10841 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Chris@39 10842 else
Chris@39 10843 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Chris@39 10844 case $host_os in
Chris@39 10845 sco3.2v5*)
Chris@39 10846 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
Chris@39 10847 ;;
Chris@39 10848 esac
Chris@39 10849 fi
Chris@39 10850 sys_lib_dlsearch_path_spec='/usr/lib'
Chris@39 10851 ;;
Chris@39 10852
Chris@39 10853 tpf*)
Chris@39 10854 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Chris@39 10855 version_type=linux
Chris@39 10856 need_lib_prefix=no
Chris@39 10857 need_version=no
Chris@39 10858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 10859 shlibpath_var=LD_LIBRARY_PATH
Chris@39 10860 shlibpath_overrides_runpath=no
Chris@39 10861 hardcode_into_libs=yes
Chris@39 10862 ;;
Chris@39 10863
Chris@39 10864 uts4*)
Chris@39 10865 version_type=linux
Chris@39 10866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 10867 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 10868 shlibpath_var=LD_LIBRARY_PATH
Chris@39 10869 ;;
Chris@39 10870
Chris@39 10871 *)
Chris@39 10872 dynamic_linker=no
Chris@39 10873 ;;
Chris@39 10874 esac
Chris@39 10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Chris@39 10876 $as_echo "$dynamic_linker" >&6; }
Chris@39 10877 test "$dynamic_linker" = no && can_build_shared=no
Chris@39 10878
Chris@39 10879 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Chris@39 10880 if test "$GCC" = yes; then
Chris@39 10881 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
Chris@39 10882 fi
Chris@39 10883
Chris@39 10884 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
Chris@39 10885 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
Chris@39 10886 fi
Chris@39 10887 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
Chris@39 10888 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
Chris@39 10889 fi
Chris@39 10890
Chris@39 10891
Chris@39 10892
Chris@39 10893
Chris@39 10894
Chris@39 10895
Chris@39 10896
Chris@39 10897
Chris@39 10898
Chris@39 10899
Chris@39 10900
Chris@39 10901
Chris@39 10902
Chris@39 10903
Chris@39 10904
Chris@39 10905
Chris@39 10906
Chris@39 10907
Chris@39 10908
Chris@39 10909
Chris@39 10910
Chris@39 10911
Chris@39 10912
Chris@39 10913
Chris@39 10914
Chris@39 10915
Chris@39 10916
Chris@39 10917
Chris@39 10918
Chris@39 10919
Chris@39 10920
Chris@39 10921
Chris@39 10922
Chris@39 10923
Chris@39 10924
Chris@39 10925
Chris@39 10926
Chris@39 10927
Chris@39 10928
Chris@39 10929
Chris@39 10930
Chris@39 10931
Chris@39 10932
Chris@39 10933
Chris@39 10934
Chris@39 10935
Chris@39 10936
Chris@39 10937
Chris@39 10938
Chris@39 10939
Chris@39 10940
Chris@39 10941
Chris@39 10942
Chris@39 10943
Chris@39 10944
Chris@39 10945
Chris@39 10946
Chris@39 10947
Chris@39 10948
Chris@39 10949
Chris@39 10950
Chris@39 10951
Chris@39 10952
Chris@39 10953
Chris@39 10954
Chris@39 10955
Chris@39 10956
Chris@39 10957
Chris@39 10958
Chris@39 10959
Chris@39 10960
Chris@39 10961
Chris@39 10962
Chris@39 10963
Chris@39 10964
Chris@39 10965
Chris@39 10966
Chris@39 10967
Chris@39 10968
Chris@39 10969
Chris@39 10970
Chris@39 10971
Chris@39 10972
Chris@39 10973
Chris@39 10974
Chris@39 10975
Chris@39 10976
Chris@39 10977
Chris@39 10978
Chris@39 10979
Chris@39 10980
Chris@39 10981
Chris@39 10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Chris@39 10983 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Chris@39 10984 hardcode_action=
Chris@39 10985 if test -n "$hardcode_libdir_flag_spec" ||
Chris@39 10986 test -n "$runpath_var" ||
Chris@39 10987 test "X$hardcode_automatic" = "Xyes" ; then
Chris@39 10988
Chris@39 10989 # We can hardcode non-existent directories.
Chris@39 10990 if test "$hardcode_direct" != no &&
Chris@39 10991 # If the only mechanism to avoid hardcoding is shlibpath_var, we
Chris@39 10992 # have to relink, otherwise we might link with an installed library
Chris@39 10993 # when we should be linking with a yet-to-be-installed one
Chris@39 10994 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
Chris@39 10995 test "$hardcode_minus_L" != no; then
Chris@39 10996 # Linking always hardcodes the temporary library directory.
Chris@39 10997 hardcode_action=relink
Chris@39 10998 else
Chris@39 10999 # We can link without hardcoding, and we can hardcode nonexisting dirs.
Chris@39 11000 hardcode_action=immediate
Chris@39 11001 fi
Chris@39 11002 else
Chris@39 11003 # We cannot hardcode anything, or else we can only hardcode existing
Chris@39 11004 # directories.
Chris@39 11005 hardcode_action=unsupported
Chris@39 11006 fi
Chris@39 11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
Chris@39 11008 $as_echo "$hardcode_action" >&6; }
Chris@39 11009
Chris@39 11010 if test "$hardcode_action" = relink ||
Chris@39 11011 test "$inherit_rpath" = yes; then
Chris@39 11012 # Fast installation is not supported
Chris@39 11013 enable_fast_install=no
Chris@39 11014 elif test "$shlibpath_overrides_runpath" = yes ||
Chris@39 11015 test "$enable_shared" = no; then
Chris@39 11016 # Fast installation is not necessary
Chris@39 11017 enable_fast_install=needless
Chris@39 11018 fi
Chris@39 11019
Chris@39 11020
Chris@39 11021
Chris@39 11022
Chris@39 11023
Chris@39 11024
Chris@39 11025 if test "x$enable_dlopen" != xyes; then
Chris@39 11026 enable_dlopen=unknown
Chris@39 11027 enable_dlopen_self=unknown
Chris@39 11028 enable_dlopen_self_static=unknown
Chris@39 11029 else
Chris@39 11030 lt_cv_dlopen=no
Chris@39 11031 lt_cv_dlopen_libs=
Chris@39 11032
Chris@39 11033 case $host_os in
Chris@39 11034 beos*)
Chris@39 11035 lt_cv_dlopen="load_add_on"
Chris@39 11036 lt_cv_dlopen_libs=
Chris@39 11037 lt_cv_dlopen_self=yes
Chris@39 11038 ;;
Chris@39 11039
Chris@39 11040 mingw* | pw32* | cegcc*)
Chris@39 11041 lt_cv_dlopen="LoadLibrary"
Chris@39 11042 lt_cv_dlopen_libs=
Chris@39 11043 ;;
Chris@39 11044
Chris@39 11045 cygwin*)
Chris@39 11046 lt_cv_dlopen="dlopen"
Chris@39 11047 lt_cv_dlopen_libs=
Chris@39 11048 ;;
Chris@39 11049
Chris@39 11050 darwin*)
Chris@39 11051 # if libdl is installed we need to link against it
Chris@39 11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Chris@39 11053 $as_echo_n "checking for dlopen in -ldl... " >&6; }
Chris@39 11054 if ${ac_cv_lib_dl_dlopen+:} false; then :
Chris@39 11055 $as_echo_n "(cached) " >&6
Chris@39 11056 else
Chris@39 11057 ac_check_lib_save_LIBS=$LIBS
Chris@39 11058 LIBS="-ldl $LIBS"
Chris@39 11059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 11060 /* end confdefs.h. */
Chris@39 11061
Chris@39 11062 /* Override any GCC internal prototype to avoid an error.
Chris@39 11063 Use char because int might match the return type of a GCC
Chris@39 11064 builtin and then its argument prototype would still apply. */
Chris@39 11065 #ifdef __cplusplus
Chris@39 11066 extern "C"
Chris@39 11067 #endif
Chris@39 11068 char dlopen ();
Chris@39 11069 int
Chris@39 11070 main ()
Chris@39 11071 {
Chris@39 11072 return dlopen ();
Chris@39 11073 ;
Chris@39 11074 return 0;
Chris@39 11075 }
Chris@39 11076 _ACEOF
Chris@39 11077 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 11078 ac_cv_lib_dl_dlopen=yes
Chris@39 11079 else
Chris@39 11080 ac_cv_lib_dl_dlopen=no
Chris@39 11081 fi
Chris@39 11082 rm -f core conftest.err conftest.$ac_objext \
Chris@39 11083 conftest$ac_exeext conftest.$ac_ext
Chris@39 11084 LIBS=$ac_check_lib_save_LIBS
Chris@39 11085 fi
Chris@39 11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Chris@39 11087 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Chris@39 11088 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Chris@39 11089 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
Chris@39 11090 else
Chris@39 11091
Chris@39 11092 lt_cv_dlopen="dyld"
Chris@39 11093 lt_cv_dlopen_libs=
Chris@39 11094 lt_cv_dlopen_self=yes
Chris@39 11095
Chris@39 11096 fi
Chris@39 11097
Chris@39 11098 ;;
Chris@39 11099
Chris@39 11100 *)
Chris@39 11101 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
Chris@39 11102 if test "x$ac_cv_func_shl_load" = xyes; then :
Chris@39 11103 lt_cv_dlopen="shl_load"
Chris@39 11104 else
Chris@39 11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
Chris@39 11106 $as_echo_n "checking for shl_load in -ldld... " >&6; }
Chris@39 11107 if ${ac_cv_lib_dld_shl_load+:} false; then :
Chris@39 11108 $as_echo_n "(cached) " >&6
Chris@39 11109 else
Chris@39 11110 ac_check_lib_save_LIBS=$LIBS
Chris@39 11111 LIBS="-ldld $LIBS"
Chris@39 11112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 11113 /* end confdefs.h. */
Chris@39 11114
Chris@39 11115 /* Override any GCC internal prototype to avoid an error.
Chris@39 11116 Use char because int might match the return type of a GCC
Chris@39 11117 builtin and then its argument prototype would still apply. */
Chris@39 11118 #ifdef __cplusplus
Chris@39 11119 extern "C"
Chris@39 11120 #endif
Chris@39 11121 char shl_load ();
Chris@39 11122 int
Chris@39 11123 main ()
Chris@39 11124 {
Chris@39 11125 return shl_load ();
Chris@39 11126 ;
Chris@39 11127 return 0;
Chris@39 11128 }
Chris@39 11129 _ACEOF
Chris@39 11130 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 11131 ac_cv_lib_dld_shl_load=yes
Chris@39 11132 else
Chris@39 11133 ac_cv_lib_dld_shl_load=no
Chris@39 11134 fi
Chris@39 11135 rm -f core conftest.err conftest.$ac_objext \
Chris@39 11136 conftest$ac_exeext conftest.$ac_ext
Chris@39 11137 LIBS=$ac_check_lib_save_LIBS
Chris@39 11138 fi
Chris@39 11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
Chris@39 11140 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Chris@39 11141 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Chris@39 11142 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
Chris@39 11143 else
Chris@39 11144 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
Chris@39 11145 if test "x$ac_cv_func_dlopen" = xyes; then :
Chris@39 11146 lt_cv_dlopen="dlopen"
Chris@39 11147 else
Chris@39 11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Chris@39 11149 $as_echo_n "checking for dlopen in -ldl... " >&6; }
Chris@39 11150 if ${ac_cv_lib_dl_dlopen+:} false; then :
Chris@39 11151 $as_echo_n "(cached) " >&6
Chris@39 11152 else
Chris@39 11153 ac_check_lib_save_LIBS=$LIBS
Chris@39 11154 LIBS="-ldl $LIBS"
Chris@39 11155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 11156 /* end confdefs.h. */
Chris@39 11157
Chris@39 11158 /* Override any GCC internal prototype to avoid an error.
Chris@39 11159 Use char because int might match the return type of a GCC
Chris@39 11160 builtin and then its argument prototype would still apply. */
Chris@39 11161 #ifdef __cplusplus
Chris@39 11162 extern "C"
Chris@39 11163 #endif
Chris@39 11164 char dlopen ();
Chris@39 11165 int
Chris@39 11166 main ()
Chris@39 11167 {
Chris@39 11168 return dlopen ();
Chris@39 11169 ;
Chris@39 11170 return 0;
Chris@39 11171 }
Chris@39 11172 _ACEOF
Chris@39 11173 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 11174 ac_cv_lib_dl_dlopen=yes
Chris@39 11175 else
Chris@39 11176 ac_cv_lib_dl_dlopen=no
Chris@39 11177 fi
Chris@39 11178 rm -f core conftest.err conftest.$ac_objext \
Chris@39 11179 conftest$ac_exeext conftest.$ac_ext
Chris@39 11180 LIBS=$ac_check_lib_save_LIBS
Chris@39 11181 fi
Chris@39 11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Chris@39 11183 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Chris@39 11184 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Chris@39 11185 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
Chris@39 11186 else
Chris@39 11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
Chris@39 11188 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
Chris@39 11189 if ${ac_cv_lib_svld_dlopen+:} false; then :
Chris@39 11190 $as_echo_n "(cached) " >&6
Chris@39 11191 else
Chris@39 11192 ac_check_lib_save_LIBS=$LIBS
Chris@39 11193 LIBS="-lsvld $LIBS"
Chris@39 11194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 11195 /* end confdefs.h. */
Chris@39 11196
Chris@39 11197 /* Override any GCC internal prototype to avoid an error.
Chris@39 11198 Use char because int might match the return type of a GCC
Chris@39 11199 builtin and then its argument prototype would still apply. */
Chris@39 11200 #ifdef __cplusplus
Chris@39 11201 extern "C"
Chris@39 11202 #endif
Chris@39 11203 char dlopen ();
Chris@39 11204 int
Chris@39 11205 main ()
Chris@39 11206 {
Chris@39 11207 return dlopen ();
Chris@39 11208 ;
Chris@39 11209 return 0;
Chris@39 11210 }
Chris@39 11211 _ACEOF
Chris@39 11212 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 11213 ac_cv_lib_svld_dlopen=yes
Chris@39 11214 else
Chris@39 11215 ac_cv_lib_svld_dlopen=no
Chris@39 11216 fi
Chris@39 11217 rm -f core conftest.err conftest.$ac_objext \
Chris@39 11218 conftest$ac_exeext conftest.$ac_ext
Chris@39 11219 LIBS=$ac_check_lib_save_LIBS
Chris@39 11220 fi
Chris@39 11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
Chris@39 11222 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Chris@39 11223 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Chris@39 11224 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
Chris@39 11225 else
Chris@39 11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
Chris@39 11227 $as_echo_n "checking for dld_link in -ldld... " >&6; }
Chris@39 11228 if ${ac_cv_lib_dld_dld_link+:} false; then :
Chris@39 11229 $as_echo_n "(cached) " >&6
Chris@39 11230 else
Chris@39 11231 ac_check_lib_save_LIBS=$LIBS
Chris@39 11232 LIBS="-ldld $LIBS"
Chris@39 11233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 11234 /* end confdefs.h. */
Chris@39 11235
Chris@39 11236 /* Override any GCC internal prototype to avoid an error.
Chris@39 11237 Use char because int might match the return type of a GCC
Chris@39 11238 builtin and then its argument prototype would still apply. */
Chris@39 11239 #ifdef __cplusplus
Chris@39 11240 extern "C"
Chris@39 11241 #endif
Chris@39 11242 char dld_link ();
Chris@39 11243 int
Chris@39 11244 main ()
Chris@39 11245 {
Chris@39 11246 return dld_link ();
Chris@39 11247 ;
Chris@39 11248 return 0;
Chris@39 11249 }
Chris@39 11250 _ACEOF
Chris@39 11251 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 11252 ac_cv_lib_dld_dld_link=yes
Chris@39 11253 else
Chris@39 11254 ac_cv_lib_dld_dld_link=no
Chris@39 11255 fi
Chris@39 11256 rm -f core conftest.err conftest.$ac_objext \
Chris@39 11257 conftest$ac_exeext conftest.$ac_ext
Chris@39 11258 LIBS=$ac_check_lib_save_LIBS
Chris@39 11259 fi
Chris@39 11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
Chris@39 11261 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Chris@39 11262 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Chris@39 11263 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
Chris@39 11264 fi
Chris@39 11265
Chris@39 11266
Chris@39 11267 fi
Chris@39 11268
Chris@39 11269
Chris@39 11270 fi
Chris@39 11271
Chris@39 11272
Chris@39 11273 fi
Chris@39 11274
Chris@39 11275
Chris@39 11276 fi
Chris@39 11277
Chris@39 11278
Chris@39 11279 fi
Chris@39 11280
Chris@39 11281 ;;
Chris@39 11282 esac
Chris@39 11283
Chris@39 11284 if test "x$lt_cv_dlopen" != xno; then
Chris@39 11285 enable_dlopen=yes
Chris@39 11286 else
Chris@39 11287 enable_dlopen=no
Chris@39 11288 fi
Chris@39 11289
Chris@39 11290 case $lt_cv_dlopen in
Chris@39 11291 dlopen)
Chris@39 11292 save_CPPFLAGS="$CPPFLAGS"
Chris@39 11293 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Chris@39 11294
Chris@39 11295 save_LDFLAGS="$LDFLAGS"
Chris@39 11296 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Chris@39 11297
Chris@39 11298 save_LIBS="$LIBS"
Chris@39 11299 LIBS="$lt_cv_dlopen_libs $LIBS"
Chris@39 11300
Chris@39 11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
Chris@39 11302 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
Chris@39 11303 if ${lt_cv_dlopen_self+:} false; then :
Chris@39 11304 $as_echo_n "(cached) " >&6
Chris@39 11305 else
Chris@39 11306 if test "$cross_compiling" = yes; then :
Chris@39 11307 lt_cv_dlopen_self=cross
Chris@39 11308 else
Chris@39 11309 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Chris@39 11310 lt_status=$lt_dlunknown
Chris@39 11311 cat > conftest.$ac_ext <<_LT_EOF
Chris@39 11312 #line $LINENO "configure"
Chris@39 11313 #include "confdefs.h"
Chris@39 11314
Chris@39 11315 #if HAVE_DLFCN_H
Chris@39 11316 #include <dlfcn.h>
Chris@39 11317 #endif
Chris@39 11318
Chris@39 11319 #include <stdio.h>
Chris@39 11320
Chris@39 11321 #ifdef RTLD_GLOBAL
Chris@39 11322 # define LT_DLGLOBAL RTLD_GLOBAL
Chris@39 11323 #else
Chris@39 11324 # ifdef DL_GLOBAL
Chris@39 11325 # define LT_DLGLOBAL DL_GLOBAL
Chris@39 11326 # else
Chris@39 11327 # define LT_DLGLOBAL 0
Chris@39 11328 # endif
Chris@39 11329 #endif
Chris@39 11330
Chris@39 11331 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Chris@39 11332 find out it does not work in some platform. */
Chris@39 11333 #ifndef LT_DLLAZY_OR_NOW
Chris@39 11334 # ifdef RTLD_LAZY
Chris@39 11335 # define LT_DLLAZY_OR_NOW RTLD_LAZY
Chris@39 11336 # else
Chris@39 11337 # ifdef DL_LAZY
Chris@39 11338 # define LT_DLLAZY_OR_NOW DL_LAZY
Chris@39 11339 # else
Chris@39 11340 # ifdef RTLD_NOW
Chris@39 11341 # define LT_DLLAZY_OR_NOW RTLD_NOW
Chris@39 11342 # else
Chris@39 11343 # ifdef DL_NOW
Chris@39 11344 # define LT_DLLAZY_OR_NOW DL_NOW
Chris@39 11345 # else
Chris@39 11346 # define LT_DLLAZY_OR_NOW 0
Chris@39 11347 # endif
Chris@39 11348 # endif
Chris@39 11349 # endif
Chris@39 11350 # endif
Chris@39 11351 #endif
Chris@39 11352
Chris@39 11353 /* When -fvisbility=hidden is used, assume the code has been annotated
Chris@39 11354 correspondingly for the symbols needed. */
Chris@39 11355 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Chris@39 11356 int fnord () __attribute__((visibility("default")));
Chris@39 11357 #endif
Chris@39 11358
Chris@39 11359 int fnord () { return 42; }
Chris@39 11360 int main ()
Chris@39 11361 {
Chris@39 11362 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Chris@39 11363 int status = $lt_dlunknown;
Chris@39 11364
Chris@39 11365 if (self)
Chris@39 11366 {
Chris@39 11367 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Chris@39 11368 else
Chris@39 11369 {
Chris@39 11370 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Chris@39 11371 else puts (dlerror ());
Chris@39 11372 }
Chris@39 11373 /* dlclose (self); */
Chris@39 11374 }
Chris@39 11375 else
Chris@39 11376 puts (dlerror ());
Chris@39 11377
Chris@39 11378 return status;
Chris@39 11379 }
Chris@39 11380 _LT_EOF
Chris@39 11381 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Chris@39 11382 (eval $ac_link) 2>&5
Chris@39 11383 ac_status=$?
Chris@39 11384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 11385 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Chris@39 11386 (./conftest; exit; ) >&5 2>/dev/null
Chris@39 11387 lt_status=$?
Chris@39 11388 case x$lt_status in
Chris@39 11389 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
Chris@39 11390 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Chris@39 11391 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
Chris@39 11392 esac
Chris@39 11393 else :
Chris@39 11394 # compilation failed
Chris@39 11395 lt_cv_dlopen_self=no
Chris@39 11396 fi
Chris@39 11397 fi
Chris@39 11398 rm -fr conftest*
Chris@39 11399
Chris@39 11400
Chris@39 11401 fi
Chris@39 11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
Chris@39 11403 $as_echo "$lt_cv_dlopen_self" >&6; }
Chris@39 11404
Chris@39 11405 if test "x$lt_cv_dlopen_self" = xyes; then
Chris@39 11406 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Chris@39 11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
Chris@39 11408 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Chris@39 11409 if ${lt_cv_dlopen_self_static+:} false; then :
Chris@39 11410 $as_echo_n "(cached) " >&6
Chris@39 11411 else
Chris@39 11412 if test "$cross_compiling" = yes; then :
Chris@39 11413 lt_cv_dlopen_self_static=cross
Chris@39 11414 else
Chris@39 11415 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Chris@39 11416 lt_status=$lt_dlunknown
Chris@39 11417 cat > conftest.$ac_ext <<_LT_EOF
Chris@39 11418 #line $LINENO "configure"
Chris@39 11419 #include "confdefs.h"
Chris@39 11420
Chris@39 11421 #if HAVE_DLFCN_H
Chris@39 11422 #include <dlfcn.h>
Chris@39 11423 #endif
Chris@39 11424
Chris@39 11425 #include <stdio.h>
Chris@39 11426
Chris@39 11427 #ifdef RTLD_GLOBAL
Chris@39 11428 # define LT_DLGLOBAL RTLD_GLOBAL
Chris@39 11429 #else
Chris@39 11430 # ifdef DL_GLOBAL
Chris@39 11431 # define LT_DLGLOBAL DL_GLOBAL
Chris@39 11432 # else
Chris@39 11433 # define LT_DLGLOBAL 0
Chris@39 11434 # endif
Chris@39 11435 #endif
Chris@39 11436
Chris@39 11437 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Chris@39 11438 find out it does not work in some platform. */
Chris@39 11439 #ifndef LT_DLLAZY_OR_NOW
Chris@39 11440 # ifdef RTLD_LAZY
Chris@39 11441 # define LT_DLLAZY_OR_NOW RTLD_LAZY
Chris@39 11442 # else
Chris@39 11443 # ifdef DL_LAZY
Chris@39 11444 # define LT_DLLAZY_OR_NOW DL_LAZY
Chris@39 11445 # else
Chris@39 11446 # ifdef RTLD_NOW
Chris@39 11447 # define LT_DLLAZY_OR_NOW RTLD_NOW
Chris@39 11448 # else
Chris@39 11449 # ifdef DL_NOW
Chris@39 11450 # define LT_DLLAZY_OR_NOW DL_NOW
Chris@39 11451 # else
Chris@39 11452 # define LT_DLLAZY_OR_NOW 0
Chris@39 11453 # endif
Chris@39 11454 # endif
Chris@39 11455 # endif
Chris@39 11456 # endif
Chris@39 11457 #endif
Chris@39 11458
Chris@39 11459 /* When -fvisbility=hidden is used, assume the code has been annotated
Chris@39 11460 correspondingly for the symbols needed. */
Chris@39 11461 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Chris@39 11462 int fnord () __attribute__((visibility("default")));
Chris@39 11463 #endif
Chris@39 11464
Chris@39 11465 int fnord () { return 42; }
Chris@39 11466 int main ()
Chris@39 11467 {
Chris@39 11468 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Chris@39 11469 int status = $lt_dlunknown;
Chris@39 11470
Chris@39 11471 if (self)
Chris@39 11472 {
Chris@39 11473 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Chris@39 11474 else
Chris@39 11475 {
Chris@39 11476 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Chris@39 11477 else puts (dlerror ());
Chris@39 11478 }
Chris@39 11479 /* dlclose (self); */
Chris@39 11480 }
Chris@39 11481 else
Chris@39 11482 puts (dlerror ());
Chris@39 11483
Chris@39 11484 return status;
Chris@39 11485 }
Chris@39 11486 _LT_EOF
Chris@39 11487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Chris@39 11488 (eval $ac_link) 2>&5
Chris@39 11489 ac_status=$?
Chris@39 11490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 11491 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Chris@39 11492 (./conftest; exit; ) >&5 2>/dev/null
Chris@39 11493 lt_status=$?
Chris@39 11494 case x$lt_status in
Chris@39 11495 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
Chris@39 11496 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Chris@39 11497 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
Chris@39 11498 esac
Chris@39 11499 else :
Chris@39 11500 # compilation failed
Chris@39 11501 lt_cv_dlopen_self_static=no
Chris@39 11502 fi
Chris@39 11503 fi
Chris@39 11504 rm -fr conftest*
Chris@39 11505
Chris@39 11506
Chris@39 11507 fi
Chris@39 11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
Chris@39 11509 $as_echo "$lt_cv_dlopen_self_static" >&6; }
Chris@39 11510 fi
Chris@39 11511
Chris@39 11512 CPPFLAGS="$save_CPPFLAGS"
Chris@39 11513 LDFLAGS="$save_LDFLAGS"
Chris@39 11514 LIBS="$save_LIBS"
Chris@39 11515 ;;
Chris@39 11516 esac
Chris@39 11517
Chris@39 11518 case $lt_cv_dlopen_self in
Chris@39 11519 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
Chris@39 11520 *) enable_dlopen_self=unknown ;;
Chris@39 11521 esac
Chris@39 11522
Chris@39 11523 case $lt_cv_dlopen_self_static in
Chris@39 11524 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
Chris@39 11525 *) enable_dlopen_self_static=unknown ;;
Chris@39 11526 esac
Chris@39 11527 fi
Chris@39 11528
Chris@39 11529
Chris@39 11530
Chris@39 11531
Chris@39 11532
Chris@39 11533
Chris@39 11534
Chris@39 11535
Chris@39 11536
Chris@39 11537
Chris@39 11538
Chris@39 11539
Chris@39 11540
Chris@39 11541
Chris@39 11542
Chris@39 11543
Chris@39 11544
Chris@39 11545 striplib=
Chris@39 11546 old_striplib=
Chris@39 11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
Chris@39 11548 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
Chris@39 11549 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
Chris@39 11550 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
Chris@39 11551 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Chris@39 11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@39 11553 $as_echo "yes" >&6; }
Chris@39 11554 else
Chris@39 11555 # FIXME - insert some real tests, host_os isn't really good enough
Chris@39 11556 case $host_os in
Chris@39 11557 darwin*)
Chris@39 11558 if test -n "$STRIP" ; then
Chris@39 11559 striplib="$STRIP -x"
Chris@39 11560 old_striplib="$STRIP -S"
Chris@39 11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@39 11562 $as_echo "yes" >&6; }
Chris@39 11563 else
Chris@39 11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 11565 $as_echo "no" >&6; }
Chris@39 11566 fi
Chris@39 11567 ;;
Chris@39 11568 *)
Chris@39 11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 11570 $as_echo "no" >&6; }
Chris@39 11571 ;;
Chris@39 11572 esac
Chris@39 11573 fi
Chris@39 11574
Chris@39 11575
Chris@39 11576
Chris@39 11577
Chris@39 11578
Chris@39 11579
Chris@39 11580
Chris@39 11581
Chris@39 11582
Chris@39 11583
Chris@39 11584
Chris@39 11585
Chris@39 11586 # Report which library types will actually be built
Chris@39 11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
Chris@39 11588 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
Chris@39 11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
Chris@39 11590 $as_echo "$can_build_shared" >&6; }
Chris@39 11591
Chris@39 11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
Chris@39 11593 $as_echo_n "checking whether to build shared libraries... " >&6; }
Chris@39 11594 test "$can_build_shared" = "no" && enable_shared=no
Chris@39 11595
Chris@39 11596 # On AIX, shared libraries and static libraries use the same namespace, and
Chris@39 11597 # are all built from PIC.
Chris@39 11598 case $host_os in
Chris@39 11599 aix3*)
Chris@39 11600 test "$enable_shared" = yes && enable_static=no
Chris@39 11601 if test -n "$RANLIB"; then
Chris@39 11602 archive_cmds="$archive_cmds~\$RANLIB \$lib"
Chris@39 11603 postinstall_cmds='$RANLIB $lib'
Chris@39 11604 fi
Chris@39 11605 ;;
Chris@39 11606
Chris@39 11607 aix[4-9]*)
Chris@39 11608 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
Chris@39 11609 test "$enable_shared" = yes && enable_static=no
Chris@39 11610 fi
Chris@39 11611 ;;
Chris@39 11612 esac
Chris@39 11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
Chris@39 11614 $as_echo "$enable_shared" >&6; }
Chris@39 11615
Chris@39 11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
Chris@39 11617 $as_echo_n "checking whether to build static libraries... " >&6; }
Chris@39 11618 # Make sure either enable_shared or enable_static is yes.
Chris@39 11619 test "$enable_shared" = yes || enable_static=yes
Chris@39 11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
Chris@39 11621 $as_echo "$enable_static" >&6; }
Chris@39 11622
Chris@39 11623
Chris@39 11624
Chris@39 11625
Chris@39 11626 fi
Chris@39 11627 ac_ext=c
Chris@39 11628 ac_cpp='$CPP $CPPFLAGS'
Chris@39 11629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@39 11630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@39 11631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@39 11632
Chris@39 11633 CC="$lt_save_CC"
Chris@39 11634
Chris@39 11635 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
Chris@39 11636 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
Chris@39 11637 (test "X$CXX" != "Xg++"))) ; then
Chris@39 11638 ac_ext=cpp
Chris@39 11639 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@39 11640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@39 11641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@39 11642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@39 11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
Chris@39 11644 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
Chris@39 11645 if test -z "$CXXCPP"; then
Chris@39 11646 if ${ac_cv_prog_CXXCPP+:} false; then :
Chris@39 11647 $as_echo_n "(cached) " >&6
Chris@39 11648 else
Chris@39 11649 # Double quotes because CXXCPP needs to be expanded
Chris@39 11650 for CXXCPP in "$CXX -E" "/lib/cpp"
Chris@39 11651 do
Chris@39 11652 ac_preproc_ok=false
Chris@39 11653 for ac_cxx_preproc_warn_flag in '' yes
Chris@39 11654 do
Chris@39 11655 # Use a header file that comes with gcc, so configuring glibc
Chris@39 11656 # with a fresh cross-compiler works.
Chris@39 11657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@39 11658 # <limits.h> exists even on freestanding compilers.
Chris@39 11659 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@39 11660 # not just through cpp. "Syntax error" is here to catch this case.
Chris@39 11661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 11662 /* end confdefs.h. */
Chris@39 11663 #ifdef __STDC__
Chris@39 11664 # include <limits.h>
Chris@39 11665 #else
Chris@39 11666 # include <assert.h>
Chris@39 11667 #endif
Chris@39 11668 Syntax error
Chris@39 11669 _ACEOF
Chris@39 11670 if ac_fn_cxx_try_cpp "$LINENO"; then :
Chris@39 11671
Chris@39 11672 else
Chris@39 11673 # Broken: fails on valid input.
Chris@39 11674 continue
Chris@39 11675 fi
Chris@39 11676 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@39 11677
Chris@39 11678 # OK, works on sane cases. Now check whether nonexistent headers
Chris@39 11679 # can be detected and how.
Chris@39 11680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 11681 /* end confdefs.h. */
Chris@39 11682 #include <ac_nonexistent.h>
Chris@39 11683 _ACEOF
Chris@39 11684 if ac_fn_cxx_try_cpp "$LINENO"; then :
Chris@39 11685 # Broken: success on invalid input.
Chris@39 11686 continue
Chris@39 11687 else
Chris@39 11688 # Passes both tests.
Chris@39 11689 ac_preproc_ok=:
Chris@39 11690 break
Chris@39 11691 fi
Chris@39 11692 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@39 11693
Chris@39 11694 done
Chris@39 11695 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@39 11696 rm -f conftest.i conftest.err conftest.$ac_ext
Chris@39 11697 if $ac_preproc_ok; then :
Chris@39 11698 break
Chris@39 11699 fi
Chris@39 11700
Chris@39 11701 done
Chris@39 11702 ac_cv_prog_CXXCPP=$CXXCPP
Chris@39 11703
Chris@39 11704 fi
Chris@39 11705 CXXCPP=$ac_cv_prog_CXXCPP
Chris@39 11706 else
Chris@39 11707 ac_cv_prog_CXXCPP=$CXXCPP
Chris@39 11708 fi
Chris@39 11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
Chris@39 11710 $as_echo "$CXXCPP" >&6; }
Chris@39 11711 ac_preproc_ok=false
Chris@39 11712 for ac_cxx_preproc_warn_flag in '' yes
Chris@39 11713 do
Chris@39 11714 # Use a header file that comes with gcc, so configuring glibc
Chris@39 11715 # with a fresh cross-compiler works.
Chris@39 11716 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@39 11717 # <limits.h> exists even on freestanding compilers.
Chris@39 11718 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@39 11719 # not just through cpp. "Syntax error" is here to catch this case.
Chris@39 11720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 11721 /* end confdefs.h. */
Chris@39 11722 #ifdef __STDC__
Chris@39 11723 # include <limits.h>
Chris@39 11724 #else
Chris@39 11725 # include <assert.h>
Chris@39 11726 #endif
Chris@39 11727 Syntax error
Chris@39 11728 _ACEOF
Chris@39 11729 if ac_fn_cxx_try_cpp "$LINENO"; then :
Chris@39 11730
Chris@39 11731 else
Chris@39 11732 # Broken: fails on valid input.
Chris@39 11733 continue
Chris@39 11734 fi
Chris@39 11735 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@39 11736
Chris@39 11737 # OK, works on sane cases. Now check whether nonexistent headers
Chris@39 11738 # can be detected and how.
Chris@39 11739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 11740 /* end confdefs.h. */
Chris@39 11741 #include <ac_nonexistent.h>
Chris@39 11742 _ACEOF
Chris@39 11743 if ac_fn_cxx_try_cpp "$LINENO"; then :
Chris@39 11744 # Broken: success on invalid input.
Chris@39 11745 continue
Chris@39 11746 else
Chris@39 11747 # Passes both tests.
Chris@39 11748 ac_preproc_ok=:
Chris@39 11749 break
Chris@39 11750 fi
Chris@39 11751 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@39 11752
Chris@39 11753 done
Chris@39 11754 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@39 11755 rm -f conftest.i conftest.err conftest.$ac_ext
Chris@39 11756 if $ac_preproc_ok; then :
Chris@39 11757
Chris@39 11758 else
Chris@39 11759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@39 11760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@39 11761 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
Chris@39 11762 See \`config.log' for more details" "$LINENO" 5; }
Chris@39 11763 fi
Chris@39 11764
Chris@39 11765 ac_ext=c
Chris@39 11766 ac_cpp='$CPP $CPPFLAGS'
Chris@39 11767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@39 11768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@39 11769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@39 11770
Chris@39 11771 else
Chris@39 11772 _lt_caught_CXX_error=yes
Chris@39 11773 fi
Chris@39 11774
Chris@39 11775 ac_ext=cpp
Chris@39 11776 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@39 11777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@39 11778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@39 11779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@39 11780
Chris@39 11781 archive_cmds_need_lc_CXX=no
Chris@39 11782 allow_undefined_flag_CXX=
Chris@39 11783 always_export_symbols_CXX=no
Chris@39 11784 archive_expsym_cmds_CXX=
Chris@39 11785 compiler_needs_object_CXX=no
Chris@39 11786 export_dynamic_flag_spec_CXX=
Chris@39 11787 hardcode_direct_CXX=no
Chris@39 11788 hardcode_direct_absolute_CXX=no
Chris@39 11789 hardcode_libdir_flag_spec_CXX=
Chris@39 11790 hardcode_libdir_flag_spec_ld_CXX=
Chris@39 11791 hardcode_libdir_separator_CXX=
Chris@39 11792 hardcode_minus_L_CXX=no
Chris@39 11793 hardcode_shlibpath_var_CXX=unsupported
Chris@39 11794 hardcode_automatic_CXX=no
Chris@39 11795 inherit_rpath_CXX=no
Chris@39 11796 module_cmds_CXX=
Chris@39 11797 module_expsym_cmds_CXX=
Chris@39 11798 link_all_deplibs_CXX=unknown
Chris@39 11799 old_archive_cmds_CXX=$old_archive_cmds
Chris@39 11800 reload_flag_CXX=$reload_flag
Chris@39 11801 reload_cmds_CXX=$reload_cmds
Chris@39 11802 no_undefined_flag_CXX=
Chris@39 11803 whole_archive_flag_spec_CXX=
Chris@39 11804 enable_shared_with_static_runtimes_CXX=no
Chris@39 11805
Chris@39 11806 # Source file extension for C++ test sources.
Chris@39 11807 ac_ext=cpp
Chris@39 11808
Chris@39 11809 # Object file extension for compiled C++ test sources.
Chris@39 11810 objext=o
Chris@39 11811 objext_CXX=$objext
Chris@39 11812
Chris@39 11813 # No sense in running all these tests if we already determined that
Chris@39 11814 # the CXX compiler isn't working. Some variables (like enable_shared)
Chris@39 11815 # are currently assumed to apply to all compilers on this platform,
Chris@39 11816 # and will be corrupted by setting them based on a non-working compiler.
Chris@39 11817 if test "$_lt_caught_CXX_error" != yes; then
Chris@39 11818 # Code to be used in simple compile tests
Chris@39 11819 lt_simple_compile_test_code="int some_variable = 0;"
Chris@39 11820
Chris@39 11821 # Code to be used in simple link tests
Chris@39 11822 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
Chris@39 11823
Chris@39 11824 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
Chris@39 11825
Chris@39 11826
Chris@39 11827
Chris@39 11828
Chris@39 11829
Chris@39 11830
Chris@39 11831 # If no C compiler was specified, use CC.
Chris@39 11832 LTCC=${LTCC-"$CC"}
Chris@39 11833
Chris@39 11834 # If no C compiler flags were specified, use CFLAGS.
Chris@39 11835 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Chris@39 11836
Chris@39 11837 # Allow CC to be a program name with arguments.
Chris@39 11838 compiler=$CC
Chris@39 11839
Chris@39 11840
Chris@39 11841 # save warnings/boilerplate of simple test code
Chris@39 11842 ac_outfile=conftest.$ac_objext
Chris@39 11843 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Chris@39 11844 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@39 11845 _lt_compiler_boilerplate=`cat conftest.err`
Chris@39 11846 $RM conftest*
Chris@39 11847
Chris@39 11848 ac_outfile=conftest.$ac_objext
Chris@39 11849 echo "$lt_simple_link_test_code" >conftest.$ac_ext
Chris@39 11850 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@39 11851 _lt_linker_boilerplate=`cat conftest.err`
Chris@39 11852 $RM -r conftest*
Chris@39 11853
Chris@39 11854
Chris@39 11855 # Allow CC to be a program name with arguments.
Chris@39 11856 lt_save_CC=$CC
Chris@39 11857 lt_save_CFLAGS=$CFLAGS
Chris@39 11858 lt_save_LD=$LD
Chris@39 11859 lt_save_GCC=$GCC
Chris@39 11860 GCC=$GXX
Chris@39 11861 lt_save_with_gnu_ld=$with_gnu_ld
Chris@39 11862 lt_save_path_LD=$lt_cv_path_LD
Chris@39 11863 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
Chris@39 11864 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
Chris@39 11865 else
Chris@39 11866 $as_unset lt_cv_prog_gnu_ld
Chris@39 11867 fi
Chris@39 11868 if test -n "${lt_cv_path_LDCXX+set}"; then
Chris@39 11869 lt_cv_path_LD=$lt_cv_path_LDCXX
Chris@39 11870 else
Chris@39 11871 $as_unset lt_cv_path_LD
Chris@39 11872 fi
Chris@39 11873 test -z "${LDCXX+set}" || LD=$LDCXX
Chris@39 11874 CC=${CXX-"c++"}
Chris@39 11875 CFLAGS=$CXXFLAGS
Chris@39 11876 compiler=$CC
Chris@39 11877 compiler_CXX=$CC
Chris@39 11878 for cc_temp in $compiler""; do
Chris@39 11879 case $cc_temp in
Chris@39 11880 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
Chris@39 11881 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
Chris@39 11882 \-*) ;;
Chris@39 11883 *) break;;
Chris@39 11884 esac
Chris@39 11885 done
Chris@39 11886 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Chris@39 11887
Chris@39 11888
Chris@39 11889 if test -n "$compiler"; then
Chris@39 11890 # We don't want -fno-exception when compiling C++ code, so set the
Chris@39 11891 # no_builtin_flag separately
Chris@39 11892 if test "$GXX" = yes; then
Chris@39 11893 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
Chris@39 11894 else
Chris@39 11895 lt_prog_compiler_no_builtin_flag_CXX=
Chris@39 11896 fi
Chris@39 11897
Chris@39 11898 if test "$GXX" = yes; then
Chris@39 11899 # Set up default GNU C++ configuration
Chris@39 11900
Chris@39 11901
Chris@39 11902
Chris@39 11903 # Check whether --with-gnu-ld was given.
Chris@39 11904 if test "${with_gnu_ld+set}" = set; then :
Chris@39 11905 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Chris@39 11906 else
Chris@39 11907 with_gnu_ld=no
Chris@39 11908 fi
Chris@39 11909
Chris@39 11910 ac_prog=ld
Chris@39 11911 if test "$GCC" = yes; then
Chris@39 11912 # Check if gcc -print-prog-name=ld gives a path.
Chris@39 11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
Chris@39 11914 $as_echo_n "checking for ld used by $CC... " >&6; }
Chris@39 11915 case $host in
Chris@39 11916 *-*-mingw*)
Chris@39 11917 # gcc leaves a trailing carriage return which upsets mingw
Chris@39 11918 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
Chris@39 11919 *)
Chris@39 11920 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
Chris@39 11921 esac
Chris@39 11922 case $ac_prog in
Chris@39 11923 # Accept absolute paths.
Chris@39 11924 [\\/]* | ?:[\\/]*)
Chris@39 11925 re_direlt='/[^/][^/]*/\.\./'
Chris@39 11926 # Canonicalize the pathname of ld
Chris@39 11927 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
Chris@39 11928 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
Chris@39 11929 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Chris@39 11930 done
Chris@39 11931 test -z "$LD" && LD="$ac_prog"
Chris@39 11932 ;;
Chris@39 11933 "")
Chris@39 11934 # If it fails, then pretend we aren't using GCC.
Chris@39 11935 ac_prog=ld
Chris@39 11936 ;;
Chris@39 11937 *)
Chris@39 11938 # If it is relative, then search for the first ld in PATH.
Chris@39 11939 with_gnu_ld=unknown
Chris@39 11940 ;;
Chris@39 11941 esac
Chris@39 11942 elif test "$with_gnu_ld" = yes; then
Chris@39 11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Chris@39 11944 $as_echo_n "checking for GNU ld... " >&6; }
Chris@39 11945 else
Chris@39 11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Chris@39 11947 $as_echo_n "checking for non-GNU ld... " >&6; }
Chris@39 11948 fi
Chris@39 11949 if ${lt_cv_path_LD+:} false; then :
Chris@39 11950 $as_echo_n "(cached) " >&6
Chris@39 11951 else
Chris@39 11952 if test -z "$LD"; then
Chris@39 11953 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@39 11954 for ac_dir in $PATH; do
Chris@39 11955 IFS="$lt_save_ifs"
Chris@39 11956 test -z "$ac_dir" && ac_dir=.
Chris@39 11957 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Chris@39 11958 lt_cv_path_LD="$ac_dir/$ac_prog"
Chris@39 11959 # Check to see if the program is GNU ld. I'd rather use --version,
Chris@39 11960 # but apparently some variants of GNU ld only accept -v.
Chris@39 11961 # Break only if it was the GNU/non-GNU ld that we prefer.
Chris@39 11962 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
Chris@39 11963 *GNU* | *'with BFD'*)
Chris@39 11964 test "$with_gnu_ld" != no && break
Chris@39 11965 ;;
Chris@39 11966 *)
Chris@39 11967 test "$with_gnu_ld" != yes && break
Chris@39 11968 ;;
Chris@39 11969 esac
Chris@39 11970 fi
Chris@39 11971 done
Chris@39 11972 IFS="$lt_save_ifs"
Chris@39 11973 else
Chris@39 11974 lt_cv_path_LD="$LD" # Let the user override the test with a path.
Chris@39 11975 fi
Chris@39 11976 fi
Chris@39 11977
Chris@39 11978 LD="$lt_cv_path_LD"
Chris@39 11979 if test -n "$LD"; then
Chris@39 11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Chris@39 11981 $as_echo "$LD" >&6; }
Chris@39 11982 else
Chris@39 11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 11984 $as_echo "no" >&6; }
Chris@39 11985 fi
Chris@39 11986 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Chris@39 11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Chris@39 11988 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Chris@39 11989 if ${lt_cv_prog_gnu_ld+:} false; then :
Chris@39 11990 $as_echo_n "(cached) " >&6
Chris@39 11991 else
Chris@39 11992 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Chris@39 11993 case `$LD -v 2>&1 </dev/null` in
Chris@39 11994 *GNU* | *'with BFD'*)
Chris@39 11995 lt_cv_prog_gnu_ld=yes
Chris@39 11996 ;;
Chris@39 11997 *)
Chris@39 11998 lt_cv_prog_gnu_ld=no
Chris@39 11999 ;;
Chris@39 12000 esac
Chris@39 12001 fi
Chris@39 12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
Chris@39 12003 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
Chris@39 12004 with_gnu_ld=$lt_cv_prog_gnu_ld
Chris@39 12005
Chris@39 12006
Chris@39 12007
Chris@39 12008
Chris@39 12009
Chris@39 12010
Chris@39 12011
Chris@39 12012 # Check if GNU C++ uses GNU ld as the underlying linker, since the
Chris@39 12013 # archiving commands below assume that GNU ld is being used.
Chris@39 12014 if test "$with_gnu_ld" = yes; then
Chris@39 12015 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 12016 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@39 12017
Chris@39 12018 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
Chris@39 12019 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
Chris@39 12020
Chris@39 12021 # If archive_cmds runs LD, not CC, wlarc should be empty
Chris@39 12022 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
Chris@39 12023 # investigate it a little bit more. (MM)
Chris@39 12024 wlarc='${wl}'
Chris@39 12025
Chris@39 12026 # ancient GNU ld didn't support --whole-archive et. al.
Chris@39 12027 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
Chris@39 12028 $GREP 'no-whole-archive' > /dev/null; then
Chris@39 12029 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
Chris@39 12030 else
Chris@39 12031 whole_archive_flag_spec_CXX=
Chris@39 12032 fi
Chris@39 12033 else
Chris@39 12034 with_gnu_ld=no
Chris@39 12035 wlarc=
Chris@39 12036
Chris@39 12037 # A generic and very simple default shared library creation
Chris@39 12038 # command for GNU C++ for the case where it uses the native
Chris@39 12039 # linker, instead of GNU ld. If possible, this setting should
Chris@39 12040 # overridden to take advantage of the native linker features on
Chris@39 12041 # the platform it is being used on.
Chris@39 12042 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
Chris@39 12043 fi
Chris@39 12044
Chris@39 12045 # Commands to make compiler produce verbose output that lists
Chris@39 12046 # what "hidden" libraries, object files and flags are used when
Chris@39 12047 # linking a shared library.
Chris@39 12048 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
Chris@39 12049
Chris@39 12050 else
Chris@39 12051 GXX=no
Chris@39 12052 with_gnu_ld=no
Chris@39 12053 wlarc=
Chris@39 12054 fi
Chris@39 12055
Chris@39 12056 # PORTME: fill in a description of your system's C++ link characteristics
Chris@39 12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Chris@39 12058 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Chris@39 12059 ld_shlibs_CXX=yes
Chris@39 12060 case $host_os in
Chris@39 12061 aix3*)
Chris@39 12062 # FIXME: insert proper C++ library support
Chris@39 12063 ld_shlibs_CXX=no
Chris@39 12064 ;;
Chris@39 12065 aix[4-9]*)
Chris@39 12066 if test "$host_cpu" = ia64; then
Chris@39 12067 # On IA64, the linker does run time linking by default, so we don't
Chris@39 12068 # have to do anything special.
Chris@39 12069 aix_use_runtimelinking=no
Chris@39 12070 exp_sym_flag='-Bexport'
Chris@39 12071 no_entry_flag=""
Chris@39 12072 else
Chris@39 12073 aix_use_runtimelinking=no
Chris@39 12074
Chris@39 12075 # Test if we are trying to use run time linking or normal
Chris@39 12076 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Chris@39 12077 # need to do runtime linking.
Chris@39 12078 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Chris@39 12079 for ld_flag in $LDFLAGS; do
Chris@39 12080 case $ld_flag in
Chris@39 12081 *-brtl*)
Chris@39 12082 aix_use_runtimelinking=yes
Chris@39 12083 break
Chris@39 12084 ;;
Chris@39 12085 esac
Chris@39 12086 done
Chris@39 12087 ;;
Chris@39 12088 esac
Chris@39 12089
Chris@39 12090 exp_sym_flag='-bexport'
Chris@39 12091 no_entry_flag='-bnoentry'
Chris@39 12092 fi
Chris@39 12093
Chris@39 12094 # When large executables or shared objects are built, AIX ld can
Chris@39 12095 # have problems creating the table of contents. If linking a library
Chris@39 12096 # or program results in "error TOC overflow" add -mminimal-toc to
Chris@39 12097 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
Chris@39 12098 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
Chris@39 12099
Chris@39 12100 archive_cmds_CXX=''
Chris@39 12101 hardcode_direct_CXX=yes
Chris@39 12102 hardcode_direct_absolute_CXX=yes
Chris@39 12103 hardcode_libdir_separator_CXX=':'
Chris@39 12104 link_all_deplibs_CXX=yes
Chris@39 12105 file_list_spec_CXX='${wl}-f,'
Chris@39 12106
Chris@39 12107 if test "$GXX" = yes; then
Chris@39 12108 case $host_os in aix4.[012]|aix4.[012].*)
Chris@39 12109 # We only want to do this on AIX 4.2 and lower, the check
Chris@39 12110 # below for broken collect2 doesn't work under 4.3+
Chris@39 12111 collect2name=`${CC} -print-prog-name=collect2`
Chris@39 12112 if test -f "$collect2name" &&
Chris@39 12113 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Chris@39 12114 then
Chris@39 12115 # We have reworked collect2
Chris@39 12116 :
Chris@39 12117 else
Chris@39 12118 # We have old collect2
Chris@39 12119 hardcode_direct_CXX=unsupported
Chris@39 12120 # It fails to find uninstalled libraries when the uninstalled
Chris@39 12121 # path is not listed in the libpath. Setting hardcode_minus_L
Chris@39 12122 # to unsupported forces relinking
Chris@39 12123 hardcode_minus_L_CXX=yes
Chris@39 12124 hardcode_libdir_flag_spec_CXX='-L$libdir'
Chris@39 12125 hardcode_libdir_separator_CXX=
Chris@39 12126 fi
Chris@39 12127 esac
Chris@39 12128 shared_flag='-shared'
Chris@39 12129 if test "$aix_use_runtimelinking" = yes; then
Chris@39 12130 shared_flag="$shared_flag "'${wl}-G'
Chris@39 12131 fi
Chris@39 12132 else
Chris@39 12133 # not using gcc
Chris@39 12134 if test "$host_cpu" = ia64; then
Chris@39 12135 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
Chris@39 12136 # chokes on -Wl,-G. The following line is correct:
Chris@39 12137 shared_flag='-G'
Chris@39 12138 else
Chris@39 12139 if test "$aix_use_runtimelinking" = yes; then
Chris@39 12140 shared_flag='${wl}-G'
Chris@39 12141 else
Chris@39 12142 shared_flag='${wl}-bM:SRE'
Chris@39 12143 fi
Chris@39 12144 fi
Chris@39 12145 fi
Chris@39 12146
Chris@39 12147 export_dynamic_flag_spec_CXX='${wl}-bexpall'
Chris@39 12148 # It seems that -bexpall does not export symbols beginning with
Chris@39 12149 # underscore (_), so it is better to generate a list of symbols to
Chris@39 12150 # export.
Chris@39 12151 always_export_symbols_CXX=yes
Chris@39 12152 if test "$aix_use_runtimelinking" = yes; then
Chris@39 12153 # Warning - without using the other runtime loading flags (-brtl),
Chris@39 12154 # -berok will link without error, but may produce a broken library.
Chris@39 12155 allow_undefined_flag_CXX='-berok'
Chris@39 12156 # Determine the default libpath from the value encoded in an empty
Chris@39 12157 # executable.
Chris@39 12158 if test "${lt_cv_aix_libpath+set}" = set; then
Chris@39 12159 aix_libpath=$lt_cv_aix_libpath
Chris@39 12160 else
Chris@39 12161 if ${lt_cv_aix_libpath__CXX+:} false; then :
Chris@39 12162 $as_echo_n "(cached) " >&6
Chris@39 12163 else
Chris@39 12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 12165 /* end confdefs.h. */
Chris@39 12166
Chris@39 12167 int
Chris@39 12168 main ()
Chris@39 12169 {
Chris@39 12170
Chris@39 12171 ;
Chris@39 12172 return 0;
Chris@39 12173 }
Chris@39 12174 _ACEOF
Chris@39 12175 if ac_fn_cxx_try_link "$LINENO"; then :
Chris@39 12176
Chris@39 12177 lt_aix_libpath_sed='
Chris@39 12178 /Import File Strings/,/^$/ {
Chris@39 12179 /^0/ {
Chris@39 12180 s/^0 *\([^ ]*\) *$/\1/
Chris@39 12181 p
Chris@39 12182 }
Chris@39 12183 }'
Chris@39 12184 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@39 12185 # Check for a 64-bit object if we didn't find anything.
Chris@39 12186 if test -z "$lt_cv_aix_libpath__CXX"; then
Chris@39 12187 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@39 12188 fi
Chris@39 12189 fi
Chris@39 12190 rm -f core conftest.err conftest.$ac_objext \
Chris@39 12191 conftest$ac_exeext conftest.$ac_ext
Chris@39 12192 if test -z "$lt_cv_aix_libpath__CXX"; then
Chris@39 12193 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
Chris@39 12194 fi
Chris@39 12195
Chris@39 12196 fi
Chris@39 12197
Chris@39 12198 aix_libpath=$lt_cv_aix_libpath__CXX
Chris@39 12199 fi
Chris@39 12200
Chris@39 12201 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
Chris@39 12202
Chris@39 12203 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
Chris@39 12204 else
Chris@39 12205 if test "$host_cpu" = ia64; then
Chris@39 12206 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
Chris@39 12207 allow_undefined_flag_CXX="-z nodefs"
Chris@39 12208 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
Chris@39 12209 else
Chris@39 12210 # Determine the default libpath from the value encoded in an
Chris@39 12211 # empty executable.
Chris@39 12212 if test "${lt_cv_aix_libpath+set}" = set; then
Chris@39 12213 aix_libpath=$lt_cv_aix_libpath
Chris@39 12214 else
Chris@39 12215 if ${lt_cv_aix_libpath__CXX+:} false; then :
Chris@39 12216 $as_echo_n "(cached) " >&6
Chris@39 12217 else
Chris@39 12218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 12219 /* end confdefs.h. */
Chris@39 12220
Chris@39 12221 int
Chris@39 12222 main ()
Chris@39 12223 {
Chris@39 12224
Chris@39 12225 ;
Chris@39 12226 return 0;
Chris@39 12227 }
Chris@39 12228 _ACEOF
Chris@39 12229 if ac_fn_cxx_try_link "$LINENO"; then :
Chris@39 12230
Chris@39 12231 lt_aix_libpath_sed='
Chris@39 12232 /Import File Strings/,/^$/ {
Chris@39 12233 /^0/ {
Chris@39 12234 s/^0 *\([^ ]*\) *$/\1/
Chris@39 12235 p
Chris@39 12236 }
Chris@39 12237 }'
Chris@39 12238 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@39 12239 # Check for a 64-bit object if we didn't find anything.
Chris@39 12240 if test -z "$lt_cv_aix_libpath__CXX"; then
Chris@39 12241 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@39 12242 fi
Chris@39 12243 fi
Chris@39 12244 rm -f core conftest.err conftest.$ac_objext \
Chris@39 12245 conftest$ac_exeext conftest.$ac_ext
Chris@39 12246 if test -z "$lt_cv_aix_libpath__CXX"; then
Chris@39 12247 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
Chris@39 12248 fi
Chris@39 12249
Chris@39 12250 fi
Chris@39 12251
Chris@39 12252 aix_libpath=$lt_cv_aix_libpath__CXX
Chris@39 12253 fi
Chris@39 12254
Chris@39 12255 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
Chris@39 12256 # Warning - without using the other run time loading flags,
Chris@39 12257 # -berok will link without error, but may produce a broken library.
Chris@39 12258 no_undefined_flag_CXX=' ${wl}-bernotok'
Chris@39 12259 allow_undefined_flag_CXX=' ${wl}-berok'
Chris@39 12260 if test "$with_gnu_ld" = yes; then
Chris@39 12261 # We only use this code for GNU lds that support --whole-archive.
Chris@39 12262 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
Chris@39 12263 else
Chris@39 12264 # Exported symbols can be pulled into shared objects from archives
Chris@39 12265 whole_archive_flag_spec_CXX='$convenience'
Chris@39 12266 fi
Chris@39 12267 archive_cmds_need_lc_CXX=yes
Chris@39 12268 # This is similar to how AIX traditionally builds its shared
Chris@39 12269 # libraries.
Chris@39 12270 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
Chris@39 12271 fi
Chris@39 12272 fi
Chris@39 12273 ;;
Chris@39 12274
Chris@39 12275 beos*)
Chris@39 12276 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@39 12277 allow_undefined_flag_CXX=unsupported
Chris@39 12278 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
Chris@39 12279 # support --undefined. This deserves some investigation. FIXME
Chris@39 12280 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 12281 else
Chris@39 12282 ld_shlibs_CXX=no
Chris@39 12283 fi
Chris@39 12284 ;;
Chris@39 12285
Chris@39 12286 chorus*)
Chris@39 12287 case $cc_basename in
Chris@39 12288 *)
Chris@39 12289 # FIXME: insert proper C++ library support
Chris@39 12290 ld_shlibs_CXX=no
Chris@39 12291 ;;
Chris@39 12292 esac
Chris@39 12293 ;;
Chris@39 12294
Chris@39 12295 cygwin* | mingw* | pw32* | cegcc*)
Chris@39 12296 case $GXX,$cc_basename in
Chris@39 12297 ,cl* | no,cl*)
Chris@39 12298 # Native MSVC
Chris@39 12299 # hardcode_libdir_flag_spec is actually meaningless, as there is
Chris@39 12300 # no search path for DLLs.
Chris@39 12301 hardcode_libdir_flag_spec_CXX=' '
Chris@39 12302 allow_undefined_flag_CXX=unsupported
Chris@39 12303 always_export_symbols_CXX=yes
Chris@39 12304 file_list_spec_CXX='@'
Chris@39 12305 # Tell ltmain to make .lib files, not .a files.
Chris@39 12306 libext=lib
Chris@39 12307 # Tell ltmain to make .dll files, not .so files.
Chris@39 12308 shrext_cmds=".dll"
Chris@39 12309 # FIXME: Setting linknames here is a bad hack.
Chris@39 12310 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
Chris@39 12311 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
Chris@39 12312 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
Chris@39 12313 else
Chris@39 12314 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
Chris@39 12315 fi~
Chris@39 12316 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
Chris@39 12317 linknames='
Chris@39 12318 # The linker will not automatically build a static lib if we build a DLL.
Chris@39 12319 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
Chris@39 12320 enable_shared_with_static_runtimes_CXX=yes
Chris@39 12321 # Don't use ranlib
Chris@39 12322 old_postinstall_cmds_CXX='chmod 644 $oldlib'
Chris@39 12323 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
Chris@39 12324 lt_tool_outputfile="@TOOL_OUTPUT@"~
Chris@39 12325 case $lt_outputfile in
Chris@39 12326 *.exe|*.EXE) ;;
Chris@39 12327 *)
Chris@39 12328 lt_outputfile="$lt_outputfile.exe"
Chris@39 12329 lt_tool_outputfile="$lt_tool_outputfile.exe"
Chris@39 12330 ;;
Chris@39 12331 esac~
Chris@39 12332 func_to_tool_file "$lt_outputfile"~
Chris@39 12333 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
Chris@39 12334 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
Chris@39 12335 $RM "$lt_outputfile.manifest";
Chris@39 12336 fi'
Chris@39 12337 ;;
Chris@39 12338 *)
Chris@39 12339 # g++
Chris@39 12340 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
Chris@39 12341 # as there is no search path for DLLs.
Chris@39 12342 hardcode_libdir_flag_spec_CXX='-L$libdir'
Chris@39 12343 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
Chris@39 12344 allow_undefined_flag_CXX=unsupported
Chris@39 12345 always_export_symbols_CXX=no
Chris@39 12346 enable_shared_with_static_runtimes_CXX=yes
Chris@39 12347
Chris@39 12348 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Chris@39 12349 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Chris@39 12350 # If the export-symbols file already is a .def file (1st line
Chris@39 12351 # is EXPORTS), use it as is; otherwise, prepend...
Chris@39 12352 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
Chris@39 12353 cp $export_symbols $output_objdir/$soname.def;
Chris@39 12354 else
Chris@39 12355 echo EXPORTS > $output_objdir/$soname.def;
Chris@39 12356 cat $export_symbols >> $output_objdir/$soname.def;
Chris@39 12357 fi~
Chris@39 12358 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Chris@39 12359 else
Chris@39 12360 ld_shlibs_CXX=no
Chris@39 12361 fi
Chris@39 12362 ;;
Chris@39 12363 esac
Chris@39 12364 ;;
Chris@39 12365 darwin* | rhapsody*)
Chris@39 12366
Chris@39 12367
Chris@39 12368 archive_cmds_need_lc_CXX=no
Chris@39 12369 hardcode_direct_CXX=no
Chris@39 12370 hardcode_automatic_CXX=yes
Chris@39 12371 hardcode_shlibpath_var_CXX=unsupported
Chris@39 12372 if test "$lt_cv_ld_force_load" = "yes"; then
Chris@39 12373 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
Chris@39 12374 else
Chris@39 12375 whole_archive_flag_spec_CXX=''
Chris@39 12376 fi
Chris@39 12377 link_all_deplibs_CXX=yes
Chris@39 12378 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
Chris@39 12379 case $cc_basename in
Chris@39 12380 ifort*) _lt_dar_can_shared=yes ;;
Chris@39 12381 *) _lt_dar_can_shared=$GCC ;;
Chris@39 12382 esac
Chris@39 12383 if test "$_lt_dar_can_shared" = "yes"; then
Chris@39 12384 output_verbose_link_cmd=func_echo_all
Chris@39 12385 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
Chris@39 12386 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
Chris@39 12387 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
Chris@39 12388 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
Chris@39 12389 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
Chris@39 12390 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
Chris@39 12391 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
Chris@39 12392 fi
Chris@39 12393
Chris@39 12394 else
Chris@39 12395 ld_shlibs_CXX=no
Chris@39 12396 fi
Chris@39 12397
Chris@39 12398 ;;
Chris@39 12399
Chris@39 12400 dgux*)
Chris@39 12401 case $cc_basename in
Chris@39 12402 ec++*)
Chris@39 12403 # FIXME: insert proper C++ library support
Chris@39 12404 ld_shlibs_CXX=no
Chris@39 12405 ;;
Chris@39 12406 ghcx*)
Chris@39 12407 # Green Hills C++ Compiler
Chris@39 12408 # FIXME: insert proper C++ library support
Chris@39 12409 ld_shlibs_CXX=no
Chris@39 12410 ;;
Chris@39 12411 *)
Chris@39 12412 # FIXME: insert proper C++ library support
Chris@39 12413 ld_shlibs_CXX=no
Chris@39 12414 ;;
Chris@39 12415 esac
Chris@39 12416 ;;
Chris@39 12417
Chris@39 12418 freebsd[12]*)
Chris@39 12419 # C++ shared libraries reported to be fairly broken before
Chris@39 12420 # switch to ELF
Chris@39 12421 ld_shlibs_CXX=no
Chris@39 12422 ;;
Chris@39 12423
Chris@39 12424 freebsd-elf*)
Chris@39 12425 archive_cmds_need_lc_CXX=no
Chris@39 12426 ;;
Chris@39 12427
Chris@39 12428 freebsd* | dragonfly*)
Chris@39 12429 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
Chris@39 12430 # conventions
Chris@39 12431 ld_shlibs_CXX=yes
Chris@39 12432 ;;
Chris@39 12433
Chris@39 12434 gnu*)
Chris@39 12435 ;;
Chris@39 12436
Chris@39 12437 haiku*)
Chris@39 12438 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 12439 link_all_deplibs_CXX=yes
Chris@39 12440 ;;
Chris@39 12441
Chris@39 12442 hpux9*)
Chris@39 12443 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
Chris@39 12444 hardcode_libdir_separator_CXX=:
Chris@39 12445 export_dynamic_flag_spec_CXX='${wl}-E'
Chris@39 12446 hardcode_direct_CXX=yes
Chris@39 12447 hardcode_minus_L_CXX=yes # Not in the search PATH,
Chris@39 12448 # but as the default
Chris@39 12449 # location of the library.
Chris@39 12450
Chris@39 12451 case $cc_basename in
Chris@39 12452 CC*)
Chris@39 12453 # FIXME: insert proper C++ library support
Chris@39 12454 ld_shlibs_CXX=no
Chris@39 12455 ;;
Chris@39 12456 aCC*)
Chris@39 12457 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
Chris@39 12458 # Commands to make compiler produce verbose output that lists
Chris@39 12459 # what "hidden" libraries, object files and flags are used when
Chris@39 12460 # linking a shared library.
Chris@39 12461 #
Chris@39 12462 # There doesn't appear to be a way to prevent this compiler from
Chris@39 12463 # explicitly linking system object files so we need to strip them
Chris@39 12464 # from the output so that they don't get included in the library
Chris@39 12465 # dependencies.
Chris@39 12466 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
Chris@39 12467 ;;
Chris@39 12468 *)
Chris@39 12469 if test "$GXX" = yes; then
Chris@39 12470 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
Chris@39 12471 else
Chris@39 12472 # FIXME: insert proper C++ library support
Chris@39 12473 ld_shlibs_CXX=no
Chris@39 12474 fi
Chris@39 12475 ;;
Chris@39 12476 esac
Chris@39 12477 ;;
Chris@39 12478
Chris@39 12479 hpux10*|hpux11*)
Chris@39 12480 if test $with_gnu_ld = no; then
Chris@39 12481 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
Chris@39 12482 hardcode_libdir_separator_CXX=:
Chris@39 12483
Chris@39 12484 case $host_cpu in
Chris@39 12485 hppa*64*|ia64*)
Chris@39 12486 ;;
Chris@39 12487 *)
Chris@39 12488 export_dynamic_flag_spec_CXX='${wl}-E'
Chris@39 12489 ;;
Chris@39 12490 esac
Chris@39 12491 fi
Chris@39 12492 case $host_cpu in
Chris@39 12493 hppa*64*|ia64*)
Chris@39 12494 hardcode_direct_CXX=no
Chris@39 12495 hardcode_shlibpath_var_CXX=no
Chris@39 12496 ;;
Chris@39 12497 *)
Chris@39 12498 hardcode_direct_CXX=yes
Chris@39 12499 hardcode_direct_absolute_CXX=yes
Chris@39 12500 hardcode_minus_L_CXX=yes # Not in the search PATH,
Chris@39 12501 # but as the default
Chris@39 12502 # location of the library.
Chris@39 12503 ;;
Chris@39 12504 esac
Chris@39 12505
Chris@39 12506 case $cc_basename in
Chris@39 12507 CC*)
Chris@39 12508 # FIXME: insert proper C++ library support
Chris@39 12509 ld_shlibs_CXX=no
Chris@39 12510 ;;
Chris@39 12511 aCC*)
Chris@39 12512 case $host_cpu in
Chris@39 12513 hppa*64*)
Chris@39 12514 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Chris@39 12515 ;;
Chris@39 12516 ia64*)
Chris@39 12517 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Chris@39 12518 ;;
Chris@39 12519 *)
Chris@39 12520 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Chris@39 12521 ;;
Chris@39 12522 esac
Chris@39 12523 # Commands to make compiler produce verbose output that lists
Chris@39 12524 # what "hidden" libraries, object files and flags are used when
Chris@39 12525 # linking a shared library.
Chris@39 12526 #
Chris@39 12527 # There doesn't appear to be a way to prevent this compiler from
Chris@39 12528 # explicitly linking system object files so we need to strip them
Chris@39 12529 # from the output so that they don't get included in the library
Chris@39 12530 # dependencies.
Chris@39 12531 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
Chris@39 12532 ;;
Chris@39 12533 *)
Chris@39 12534 if test "$GXX" = yes; then
Chris@39 12535 if test $with_gnu_ld = no; then
Chris@39 12536 case $host_cpu in
Chris@39 12537 hppa*64*)
Chris@39 12538 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Chris@39 12539 ;;
Chris@39 12540 ia64*)
Chris@39 12541 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Chris@39 12542 ;;
Chris@39 12543 *)
Chris@39 12544 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Chris@39 12545 ;;
Chris@39 12546 esac
Chris@39 12547 fi
Chris@39 12548 else
Chris@39 12549 # FIXME: insert proper C++ library support
Chris@39 12550 ld_shlibs_CXX=no
Chris@39 12551 fi
Chris@39 12552 ;;
Chris@39 12553 esac
Chris@39 12554 ;;
Chris@39 12555
Chris@39 12556 interix[3-9]*)
Chris@39 12557 hardcode_direct_CXX=no
Chris@39 12558 hardcode_shlibpath_var_CXX=no
Chris@39 12559 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
Chris@39 12560 export_dynamic_flag_spec_CXX='${wl}-E'
Chris@39 12561 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
Chris@39 12562 # Instead, shared libraries are loaded at an image base (0x10000000 by
Chris@39 12563 # default) and relocated if they conflict, which is a slow very memory
Chris@39 12564 # consuming and fragmenting process. To avoid this, we pick a random,
Chris@39 12565 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
Chris@39 12566 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Chris@39 12567 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
Chris@39 12568 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
Chris@39 12569 ;;
Chris@39 12570 irix5* | irix6*)
Chris@39 12571 case $cc_basename in
Chris@39 12572 CC*)
Chris@39 12573 # SGI C++
Chris@39 12574 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
Chris@39 12575
Chris@39 12576 # Archives containing C++ object files must be created using
Chris@39 12577 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
Chris@39 12578 # necessary to make sure instantiated templates are included
Chris@39 12579 # in the archive.
Chris@39 12580 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
Chris@39 12581 ;;
Chris@39 12582 *)
Chris@39 12583 if test "$GXX" = yes; then
Chris@39 12584 if test "$with_gnu_ld" = no; then
Chris@39 12585 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Chris@39 12586 else
Chris@39 12587 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
Chris@39 12588 fi
Chris@39 12589 fi
Chris@39 12590 link_all_deplibs_CXX=yes
Chris@39 12591 ;;
Chris@39 12592 esac
Chris@39 12593 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
Chris@39 12594 hardcode_libdir_separator_CXX=:
Chris@39 12595 inherit_rpath_CXX=yes
Chris@39 12596 ;;
Chris@39 12597
Chris@39 12598 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@39 12599 case $cc_basename in
Chris@39 12600 KCC*)
Chris@39 12601 # Kuck and Associates, Inc. (KAI) C++ Compiler
Chris@39 12602
Chris@39 12603 # KCC will only create a shared library if the output file
Chris@39 12604 # ends with ".so" (or ".sl" for HP-UX), so rename the library
Chris@39 12605 # to its proper name (with version) after linking.
Chris@39 12606 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
Chris@39 12607 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
Chris@39 12608 # Commands to make compiler produce verbose output that lists
Chris@39 12609 # what "hidden" libraries, object files and flags are used when
Chris@39 12610 # linking a shared library.
Chris@39 12611 #
Chris@39 12612 # There doesn't appear to be a way to prevent this compiler from
Chris@39 12613 # explicitly linking system object files so we need to strip them
Chris@39 12614 # from the output so that they don't get included in the library
Chris@39 12615 # dependencies.
Chris@39 12616 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
Chris@39 12617
Chris@39 12618 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
Chris@39 12619 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
Chris@39 12620
Chris@39 12621 # Archives containing C++ object files must be created using
Chris@39 12622 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
Chris@39 12623 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
Chris@39 12624 ;;
Chris@39 12625 icpc* | ecpc* )
Chris@39 12626 # Intel C++
Chris@39 12627 with_gnu_ld=yes
Chris@39 12628 # version 8.0 and above of icpc choke on multiply defined symbols
Chris@39 12629 # if we add $predep_objects and $postdep_objects, however 7.1 and
Chris@39 12630 # earlier do not add the objects themselves.
Chris@39 12631 case `$CC -V 2>&1` in
Chris@39 12632 *"Version 7."*)
Chris@39 12633 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 12634 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@39 12635 ;;
Chris@39 12636 *) # Version 8.0 or newer
Chris@39 12637 tmp_idyn=
Chris@39 12638 case $host_cpu in
Chris@39 12639 ia64*) tmp_idyn=' -i_dynamic';;
Chris@39 12640 esac
Chris@39 12641 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 12642 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@39 12643 ;;
Chris@39 12644 esac
Chris@39 12645 archive_cmds_need_lc_CXX=no
Chris@39 12646 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
Chris@39 12647 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
Chris@39 12648 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
Chris@39 12649 ;;
Chris@39 12650 pgCC* | pgcpp*)
Chris@39 12651 # Portland Group C++ compiler
Chris@39 12652 case `$CC -V` in
Chris@39 12653 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
Chris@39 12654 prelink_cmds_CXX='tpldir=Template.dir~
Chris@39 12655 rm -rf $tpldir~
Chris@39 12656 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
Chris@39 12657 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
Chris@39 12658 old_archive_cmds_CXX='tpldir=Template.dir~
Chris@39 12659 rm -rf $tpldir~
Chris@39 12660 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
Chris@39 12661 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
Chris@39 12662 $RANLIB $oldlib'
Chris@39 12663 archive_cmds_CXX='tpldir=Template.dir~
Chris@39 12664 rm -rf $tpldir~
Chris@39 12665 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
Chris@39 12666 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
Chris@39 12667 archive_expsym_cmds_CXX='tpldir=Template.dir~
Chris@39 12668 rm -rf $tpldir~
Chris@39 12669 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
Chris@39 12670 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
Chris@39 12671 ;;
Chris@39 12672 *) # Version 6 and above use weak symbols
Chris@39 12673 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
Chris@39 12674 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
Chris@39 12675 ;;
Chris@39 12676 esac
Chris@39 12677
Chris@39 12678 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
Chris@39 12679 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
Chris@39 12680 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Chris@39 12681 ;;
Chris@39 12682 cxx*)
Chris@39 12683 # Compaq C++
Chris@39 12684 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 12685 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
Chris@39 12686
Chris@39 12687 runpath_var=LD_RUN_PATH
Chris@39 12688 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
Chris@39 12689 hardcode_libdir_separator_CXX=:
Chris@39 12690
Chris@39 12691 # Commands to make compiler produce verbose output that lists
Chris@39 12692 # what "hidden" libraries, object files and flags are used when
Chris@39 12693 # linking a shared library.
Chris@39 12694 #
Chris@39 12695 # There doesn't appear to be a way to prevent this compiler from
Chris@39 12696 # explicitly linking system object files so we need to strip them
Chris@39 12697 # from the output so that they don't get included in the library
Chris@39 12698 # dependencies.
Chris@39 12699 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
Chris@39 12700 ;;
Chris@39 12701 xl* | mpixl* | bgxl*)
Chris@39 12702 # IBM XL 8.0 on PPC, with GNU ld
Chris@39 12703 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
Chris@39 12704 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
Chris@39 12705 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@39 12706 if test "x$supports_anon_versioning" = xyes; then
Chris@39 12707 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
Chris@39 12708 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@39 12709 echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@39 12710 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
Chris@39 12711 fi
Chris@39 12712 ;;
Chris@39 12713 *)
Chris@39 12714 case `$CC -V 2>&1 | sed 5q` in
Chris@39 12715 *Sun\ C*)
Chris@39 12716 # Sun C++ 5.9
Chris@39 12717 no_undefined_flag_CXX=' -zdefs'
Chris@39 12718 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Chris@39 12719 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
Chris@39 12720 hardcode_libdir_flag_spec_CXX='-R$libdir'
Chris@39 12721 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Chris@39 12722 compiler_needs_object_CXX=yes
Chris@39 12723
Chris@39 12724 # Not sure whether something based on
Chris@39 12725 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
Chris@39 12726 # would be better.
Chris@39 12727 output_verbose_link_cmd='func_echo_all'
Chris@39 12728
Chris@39 12729 # Archives containing C++ object files must be created using
Chris@39 12730 # "CC -xar", where "CC" is the Sun C++ compiler. This is
Chris@39 12731 # necessary to make sure instantiated templates are included
Chris@39 12732 # in the archive.
Chris@39 12733 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
Chris@39 12734 ;;
Chris@39 12735 esac
Chris@39 12736 ;;
Chris@39 12737 esac
Chris@39 12738 ;;
Chris@39 12739
Chris@39 12740 lynxos*)
Chris@39 12741 # FIXME: insert proper C++ library support
Chris@39 12742 ld_shlibs_CXX=no
Chris@39 12743 ;;
Chris@39 12744
Chris@39 12745 m88k*)
Chris@39 12746 # FIXME: insert proper C++ library support
Chris@39 12747 ld_shlibs_CXX=no
Chris@39 12748 ;;
Chris@39 12749
Chris@39 12750 mvs*)
Chris@39 12751 case $cc_basename in
Chris@39 12752 cxx*)
Chris@39 12753 # FIXME: insert proper C++ library support
Chris@39 12754 ld_shlibs_CXX=no
Chris@39 12755 ;;
Chris@39 12756 *)
Chris@39 12757 # FIXME: insert proper C++ library support
Chris@39 12758 ld_shlibs_CXX=no
Chris@39 12759 ;;
Chris@39 12760 esac
Chris@39 12761 ;;
Chris@39 12762
Chris@39 12763 netbsd*)
Chris@39 12764 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@39 12765 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
Chris@39 12766 wlarc=
Chris@39 12767 hardcode_libdir_flag_spec_CXX='-R$libdir'
Chris@39 12768 hardcode_direct_CXX=yes
Chris@39 12769 hardcode_shlibpath_var_CXX=no
Chris@39 12770 fi
Chris@39 12771 # Workaround some broken pre-1.5 toolchains
Chris@39 12772 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
Chris@39 12773 ;;
Chris@39 12774
Chris@39 12775 *nto* | *qnx*)
Chris@39 12776 ld_shlibs_CXX=yes
Chris@39 12777 ;;
Chris@39 12778
Chris@39 12779 openbsd2*)
Chris@39 12780 # C++ shared libraries are fairly broken
Chris@39 12781 ld_shlibs_CXX=no
Chris@39 12782 ;;
Chris@39 12783
Chris@39 12784 openbsd*)
Chris@39 12785 if test -f /usr/libexec/ld.so; then
Chris@39 12786 hardcode_direct_CXX=yes
Chris@39 12787 hardcode_shlibpath_var_CXX=no
Chris@39 12788 hardcode_direct_absolute_CXX=yes
Chris@39 12789 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
Chris@39 12790 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
Chris@39 12791 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@39 12792 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
Chris@39 12793 export_dynamic_flag_spec_CXX='${wl}-E'
Chris@39 12794 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
Chris@39 12795 fi
Chris@39 12796 output_verbose_link_cmd=func_echo_all
Chris@39 12797 else
Chris@39 12798 ld_shlibs_CXX=no
Chris@39 12799 fi
Chris@39 12800 ;;
Chris@39 12801
Chris@39 12802 osf3* | osf4* | osf5*)
Chris@39 12803 case $cc_basename in
Chris@39 12804 KCC*)
Chris@39 12805 # Kuck and Associates, Inc. (KAI) C++ Compiler
Chris@39 12806
Chris@39 12807 # KCC will only create a shared library if the output file
Chris@39 12808 # ends with ".so" (or ".sl" for HP-UX), so rename the library
Chris@39 12809 # to its proper name (with version) after linking.
Chris@39 12810 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
Chris@39 12811
Chris@39 12812 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
Chris@39 12813 hardcode_libdir_separator_CXX=:
Chris@39 12814
Chris@39 12815 # Archives containing C++ object files must be created using
Chris@39 12816 # the KAI C++ compiler.
Chris@39 12817 case $host in
Chris@39 12818 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
Chris@39 12819 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
Chris@39 12820 esac
Chris@39 12821 ;;
Chris@39 12822 RCC*)
Chris@39 12823 # Rational C++ 2.4.1
Chris@39 12824 # FIXME: insert proper C++ library support
Chris@39 12825 ld_shlibs_CXX=no
Chris@39 12826 ;;
Chris@39 12827 cxx*)
Chris@39 12828 case $host in
Chris@39 12829 osf3*)
Chris@39 12830 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Chris@39 12831 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
Chris@39 12832 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
Chris@39 12833 ;;
Chris@39 12834 *)
Chris@39 12835 allow_undefined_flag_CXX=' -expect_unresolved \*'
Chris@39 12836 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
Chris@39 12837 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
Chris@39 12838 echo "-hidden">> $lib.exp~
Chris@39 12839 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
Chris@39 12840 $RM $lib.exp'
Chris@39 12841 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
Chris@39 12842 ;;
Chris@39 12843 esac
Chris@39 12844
Chris@39 12845 hardcode_libdir_separator_CXX=:
Chris@39 12846
Chris@39 12847 # Commands to make compiler produce verbose output that lists
Chris@39 12848 # what "hidden" libraries, object files and flags are used when
Chris@39 12849 # linking a shared library.
Chris@39 12850 #
Chris@39 12851 # There doesn't appear to be a way to prevent this compiler from
Chris@39 12852 # explicitly linking system object files so we need to strip them
Chris@39 12853 # from the output so that they don't get included in the library
Chris@39 12854 # dependencies.
Chris@39 12855 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
Chris@39 12856 ;;
Chris@39 12857 *)
Chris@39 12858 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
Chris@39 12859 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Chris@39 12860 case $host in
Chris@39 12861 osf3*)
Chris@39 12862 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Chris@39 12863 ;;
Chris@39 12864 *)
Chris@39 12865 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Chris@39 12866 ;;
Chris@39 12867 esac
Chris@39 12868
Chris@39 12869 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
Chris@39 12870 hardcode_libdir_separator_CXX=:
Chris@39 12871
Chris@39 12872 # Commands to make compiler produce verbose output that lists
Chris@39 12873 # what "hidden" libraries, object files and flags are used when
Chris@39 12874 # linking a shared library.
Chris@39 12875 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
Chris@39 12876
Chris@39 12877 else
Chris@39 12878 # FIXME: insert proper C++ library support
Chris@39 12879 ld_shlibs_CXX=no
Chris@39 12880 fi
Chris@39 12881 ;;
Chris@39 12882 esac
Chris@39 12883 ;;
Chris@39 12884
Chris@39 12885 psos*)
Chris@39 12886 # FIXME: insert proper C++ library support
Chris@39 12887 ld_shlibs_CXX=no
Chris@39 12888 ;;
Chris@39 12889
Chris@39 12890 sunos4*)
Chris@39 12891 case $cc_basename in
Chris@39 12892 CC*)
Chris@39 12893 # Sun C++ 4.x
Chris@39 12894 # FIXME: insert proper C++ library support
Chris@39 12895 ld_shlibs_CXX=no
Chris@39 12896 ;;
Chris@39 12897 lcc*)
Chris@39 12898 # Lucid
Chris@39 12899 # FIXME: insert proper C++ library support
Chris@39 12900 ld_shlibs_CXX=no
Chris@39 12901 ;;
Chris@39 12902 *)
Chris@39 12903 # FIXME: insert proper C++ library support
Chris@39 12904 ld_shlibs_CXX=no
Chris@39 12905 ;;
Chris@39 12906 esac
Chris@39 12907 ;;
Chris@39 12908
Chris@39 12909 solaris*)
Chris@39 12910 case $cc_basename in
Chris@39 12911 CC* | sunCC*)
Chris@39 12912 # Sun C++ 4.2, 5.x and Centerline C++
Chris@39 12913 archive_cmds_need_lc_CXX=yes
Chris@39 12914 no_undefined_flag_CXX=' -zdefs'
Chris@39 12915 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Chris@39 12916 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@39 12917 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
Chris@39 12918
Chris@39 12919 hardcode_libdir_flag_spec_CXX='-R$libdir'
Chris@39 12920 hardcode_shlibpath_var_CXX=no
Chris@39 12921 case $host_os in
Chris@39 12922 solaris2.[0-5] | solaris2.[0-5].*) ;;
Chris@39 12923 *)
Chris@39 12924 # The compiler driver will combine and reorder linker options,
Chris@39 12925 # but understands `-z linker_flag'.
Chris@39 12926 # Supported since Solaris 2.6 (maybe 2.5.1?)
Chris@39 12927 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
Chris@39 12928 ;;
Chris@39 12929 esac
Chris@39 12930 link_all_deplibs_CXX=yes
Chris@39 12931
Chris@39 12932 output_verbose_link_cmd='func_echo_all'
Chris@39 12933
Chris@39 12934 # Archives containing C++ object files must be created using
Chris@39 12935 # "CC -xar", where "CC" is the Sun C++ compiler. This is
Chris@39 12936 # necessary to make sure instantiated templates are included
Chris@39 12937 # in the archive.
Chris@39 12938 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
Chris@39 12939 ;;
Chris@39 12940 gcx*)
Chris@39 12941 # Green Hills C++ Compiler
Chris@39 12942 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Chris@39 12943
Chris@39 12944 # The C++ compiler must be used to create the archive.
Chris@39 12945 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
Chris@39 12946 ;;
Chris@39 12947 *)
Chris@39 12948 # GNU C++ compiler with Solaris linker
Chris@39 12949 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
Chris@39 12950 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
Chris@39 12951 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
Chris@39 12952 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Chris@39 12953 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@39 12954 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
Chris@39 12955
Chris@39 12956 # Commands to make compiler produce verbose output that lists
Chris@39 12957 # what "hidden" libraries, object files and flags are used when
Chris@39 12958 # linking a shared library.
Chris@39 12959 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
Chris@39 12960 else
Chris@39 12961 # g++ 2.7 appears to require `-G' NOT `-shared' on this
Chris@39 12962 # platform.
Chris@39 12963 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Chris@39 12964 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@39 12965 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
Chris@39 12966
Chris@39 12967 # Commands to make compiler produce verbose output that lists
Chris@39 12968 # what "hidden" libraries, object files and flags are used when
Chris@39 12969 # linking a shared library.
Chris@39 12970 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
Chris@39 12971 fi
Chris@39 12972
Chris@39 12973 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
Chris@39 12974 case $host_os in
Chris@39 12975 solaris2.[0-5] | solaris2.[0-5].*) ;;
Chris@39 12976 *)
Chris@39 12977 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
Chris@39 12978 ;;
Chris@39 12979 esac
Chris@39 12980 fi
Chris@39 12981 ;;
Chris@39 12982 esac
Chris@39 12983 ;;
Chris@39 12984
Chris@39 12985 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Chris@39 12986 no_undefined_flag_CXX='${wl}-z,text'
Chris@39 12987 archive_cmds_need_lc_CXX=no
Chris@39 12988 hardcode_shlibpath_var_CXX=no
Chris@39 12989 runpath_var='LD_RUN_PATH'
Chris@39 12990
Chris@39 12991 case $cc_basename in
Chris@39 12992 CC*)
Chris@39 12993 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 12994 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 12995 ;;
Chris@39 12996 *)
Chris@39 12997 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 12998 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 12999 ;;
Chris@39 13000 esac
Chris@39 13001 ;;
Chris@39 13002
Chris@39 13003 sysv5* | sco3.2v5* | sco5v6*)
Chris@39 13004 # Note: We can NOT use -z defs as we might desire, because we do not
Chris@39 13005 # link with -lc, and that would cause any symbols used from libc to
Chris@39 13006 # always be unresolved, which means just about no library would
Chris@39 13007 # ever link correctly. If we're not using GNU ld we use -z text
Chris@39 13008 # though, which does catch some bad symbols but isn't as heavy-handed
Chris@39 13009 # as -z defs.
Chris@39 13010 no_undefined_flag_CXX='${wl}-z,text'
Chris@39 13011 allow_undefined_flag_CXX='${wl}-z,nodefs'
Chris@39 13012 archive_cmds_need_lc_CXX=no
Chris@39 13013 hardcode_shlibpath_var_CXX=no
Chris@39 13014 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
Chris@39 13015 hardcode_libdir_separator_CXX=':'
Chris@39 13016 link_all_deplibs_CXX=yes
Chris@39 13017 export_dynamic_flag_spec_CXX='${wl}-Bexport'
Chris@39 13018 runpath_var='LD_RUN_PATH'
Chris@39 13019
Chris@39 13020 case $cc_basename in
Chris@39 13021 CC*)
Chris@39 13022 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 13023 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 13024 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
Chris@39 13025 '"$old_archive_cmds_CXX"
Chris@39 13026 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
Chris@39 13027 '"$reload_cmds_CXX"
Chris@39 13028 ;;
Chris@39 13029 *)
Chris@39 13030 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 13031 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@39 13032 ;;
Chris@39 13033 esac
Chris@39 13034 ;;
Chris@39 13035
Chris@39 13036 tandem*)
Chris@39 13037 case $cc_basename in
Chris@39 13038 NCC*)
Chris@39 13039 # NonStop-UX NCC 3.20
Chris@39 13040 # FIXME: insert proper C++ library support
Chris@39 13041 ld_shlibs_CXX=no
Chris@39 13042 ;;
Chris@39 13043 *)
Chris@39 13044 # FIXME: insert proper C++ library support
Chris@39 13045 ld_shlibs_CXX=no
Chris@39 13046 ;;
Chris@39 13047 esac
Chris@39 13048 ;;
Chris@39 13049
Chris@39 13050 vxworks*)
Chris@39 13051 # FIXME: insert proper C++ library support
Chris@39 13052 ld_shlibs_CXX=no
Chris@39 13053 ;;
Chris@39 13054
Chris@39 13055 *)
Chris@39 13056 # FIXME: insert proper C++ library support
Chris@39 13057 ld_shlibs_CXX=no
Chris@39 13058 ;;
Chris@39 13059 esac
Chris@39 13060
Chris@39 13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
Chris@39 13062 $as_echo "$ld_shlibs_CXX" >&6; }
Chris@39 13063 test "$ld_shlibs_CXX" = no && can_build_shared=no
Chris@39 13064
Chris@39 13065 GCC_CXX="$GXX"
Chris@39 13066 LD_CXX="$LD"
Chris@39 13067
Chris@39 13068 ## CAVEAT EMPTOR:
Chris@39 13069 ## There is no encapsulation within the following macros, do not change
Chris@39 13070 ## the running order or otherwise move them around unless you know exactly
Chris@39 13071 ## what you are doing...
Chris@39 13072 # Dependencies to place before and after the object being linked:
Chris@39 13073 predep_objects_CXX=
Chris@39 13074 postdep_objects_CXX=
Chris@39 13075 predeps_CXX=
Chris@39 13076 postdeps_CXX=
Chris@39 13077 compiler_lib_search_path_CXX=
Chris@39 13078
Chris@39 13079 cat > conftest.$ac_ext <<_LT_EOF
Chris@39 13080 class Foo
Chris@39 13081 {
Chris@39 13082 public:
Chris@39 13083 Foo (void) { a = 0; }
Chris@39 13084 private:
Chris@39 13085 int a;
Chris@39 13086 };
Chris@39 13087 _LT_EOF
Chris@39 13088
Chris@39 13089
Chris@39 13090 _lt_libdeps_save_CFLAGS=$CFLAGS
Chris@39 13091 case "$CC $CFLAGS " in #(
Chris@39 13092 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
Chris@39 13093 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
Chris@39 13094 esac
Chris@39 13095
Chris@39 13096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@39 13097 (eval $ac_compile) 2>&5
Chris@39 13098 ac_status=$?
Chris@39 13099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 13100 test $ac_status = 0; }; then
Chris@39 13101 # Parse the compiler output and extract the necessary
Chris@39 13102 # objects, libraries and library flags.
Chris@39 13103
Chris@39 13104 # Sentinel used to keep track of whether or not we are before
Chris@39 13105 # the conftest object file.
Chris@39 13106 pre_test_object_deps_done=no
Chris@39 13107
Chris@39 13108 for p in `eval "$output_verbose_link_cmd"`; do
Chris@39 13109 case ${prev}${p} in
Chris@39 13110
Chris@39 13111 -L* | -R* | -l*)
Chris@39 13112 # Some compilers place space between "-{L,R}" and the path.
Chris@39 13113 # Remove the space.
Chris@39 13114 if test $p = "-L" ||
Chris@39 13115 test $p = "-R"; then
Chris@39 13116 prev=$p
Chris@39 13117 continue
Chris@39 13118 fi
Chris@39 13119
Chris@39 13120 # Expand the sysroot to ease extracting the directories later.
Chris@39 13121 if test -z "$prev"; then
Chris@39 13122 case $p in
Chris@39 13123 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
Chris@39 13124 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
Chris@39 13125 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
Chris@39 13126 esac
Chris@39 13127 fi
Chris@39 13128 case $p in
Chris@39 13129 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
Chris@39 13130 esac
Chris@39 13131 if test "$pre_test_object_deps_done" = no; then
Chris@39 13132 case ${prev} in
Chris@39 13133 -L | -R)
Chris@39 13134 # Internal compiler library paths should come after those
Chris@39 13135 # provided the user. The postdeps already come after the
Chris@39 13136 # user supplied libs so there is no need to process them.
Chris@39 13137 if test -z "$compiler_lib_search_path_CXX"; then
Chris@39 13138 compiler_lib_search_path_CXX="${prev}${p}"
Chris@39 13139 else
Chris@39 13140 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
Chris@39 13141 fi
Chris@39 13142 ;;
Chris@39 13143 # The "-l" case would never come before the object being
Chris@39 13144 # linked, so don't bother handling this case.
Chris@39 13145 esac
Chris@39 13146 else
Chris@39 13147 if test -z "$postdeps_CXX"; then
Chris@39 13148 postdeps_CXX="${prev}${p}"
Chris@39 13149 else
Chris@39 13150 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
Chris@39 13151 fi
Chris@39 13152 fi
Chris@39 13153 prev=
Chris@39 13154 ;;
Chris@39 13155
Chris@39 13156 *.lto.$objext) ;; # Ignore GCC LTO objects
Chris@39 13157 *.$objext)
Chris@39 13158 # This assumes that the test object file only shows up
Chris@39 13159 # once in the compiler output.
Chris@39 13160 if test "$p" = "conftest.$objext"; then
Chris@39 13161 pre_test_object_deps_done=yes
Chris@39 13162 continue
Chris@39 13163 fi
Chris@39 13164
Chris@39 13165 if test "$pre_test_object_deps_done" = no; then
Chris@39 13166 if test -z "$predep_objects_CXX"; then
Chris@39 13167 predep_objects_CXX="$p"
Chris@39 13168 else
Chris@39 13169 predep_objects_CXX="$predep_objects_CXX $p"
Chris@39 13170 fi
Chris@39 13171 else
Chris@39 13172 if test -z "$postdep_objects_CXX"; then
Chris@39 13173 postdep_objects_CXX="$p"
Chris@39 13174 else
Chris@39 13175 postdep_objects_CXX="$postdep_objects_CXX $p"
Chris@39 13176 fi
Chris@39 13177 fi
Chris@39 13178 ;;
Chris@39 13179
Chris@39 13180 *) ;; # Ignore the rest.
Chris@39 13181
Chris@39 13182 esac
Chris@39 13183 done
Chris@39 13184
Chris@39 13185 # Clean up.
Chris@39 13186 rm -f a.out a.exe
Chris@39 13187 else
Chris@39 13188 echo "libtool.m4: error: problem compiling CXX test program"
Chris@39 13189 fi
Chris@39 13190
Chris@39 13191 $RM -f confest.$objext
Chris@39 13192 CFLAGS=$_lt_libdeps_save_CFLAGS
Chris@39 13193
Chris@39 13194 # PORTME: override above test on systems where it is broken
Chris@39 13195 case $host_os in
Chris@39 13196 interix[3-9]*)
Chris@39 13197 # Interix 3.5 installs completely hosed .la files for C++, so rather than
Chris@39 13198 # hack all around it, let's just trust "g++" to DTRT.
Chris@39 13199 predep_objects_CXX=
Chris@39 13200 postdep_objects_CXX=
Chris@39 13201 postdeps_CXX=
Chris@39 13202 ;;
Chris@39 13203
Chris@39 13204 linux*)
Chris@39 13205 case `$CC -V 2>&1 | sed 5q` in
Chris@39 13206 *Sun\ C*)
Chris@39 13207 # Sun C++ 5.9
Chris@39 13208
Chris@39 13209 # The more standards-conforming stlport4 library is
Chris@39 13210 # incompatible with the Cstd library. Avoid specifying
Chris@39 13211 # it if it's in CXXFLAGS. Ignore libCrun as
Chris@39 13212 # -library=stlport4 depends on it.
Chris@39 13213 case " $CXX $CXXFLAGS " in
Chris@39 13214 *" -library=stlport4 "*)
Chris@39 13215 solaris_use_stlport4=yes
Chris@39 13216 ;;
Chris@39 13217 esac
Chris@39 13218
Chris@39 13219 if test "$solaris_use_stlport4" != yes; then
Chris@39 13220 postdeps_CXX='-library=Cstd -library=Crun'
Chris@39 13221 fi
Chris@39 13222 ;;
Chris@39 13223 esac
Chris@39 13224 ;;
Chris@39 13225
Chris@39 13226 solaris*)
Chris@39 13227 case $cc_basename in
Chris@39 13228 CC* | sunCC*)
Chris@39 13229 # The more standards-conforming stlport4 library is
Chris@39 13230 # incompatible with the Cstd library. Avoid specifying
Chris@39 13231 # it if it's in CXXFLAGS. Ignore libCrun as
Chris@39 13232 # -library=stlport4 depends on it.
Chris@39 13233 case " $CXX $CXXFLAGS " in
Chris@39 13234 *" -library=stlport4 "*)
Chris@39 13235 solaris_use_stlport4=yes
Chris@39 13236 ;;
Chris@39 13237 esac
Chris@39 13238
Chris@39 13239 # Adding this requires a known-good setup of shared libraries for
Chris@39 13240 # Sun compiler versions before 5.6, else PIC objects from an old
Chris@39 13241 # archive will be linked into the output, leading to subtle bugs.
Chris@39 13242 if test "$solaris_use_stlport4" != yes; then
Chris@39 13243 postdeps_CXX='-library=Cstd -library=Crun'
Chris@39 13244 fi
Chris@39 13245 ;;
Chris@39 13246 esac
Chris@39 13247 ;;
Chris@39 13248 esac
Chris@39 13249
Chris@39 13250
Chris@39 13251 case " $postdeps_CXX " in
Chris@39 13252 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
Chris@39 13253 esac
Chris@39 13254 compiler_lib_search_dirs_CXX=
Chris@39 13255 if test -n "${compiler_lib_search_path_CXX}"; then
Chris@39 13256 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
Chris@39 13257 fi
Chris@39 13258
Chris@39 13259
Chris@39 13260
Chris@39 13261
Chris@39 13262
Chris@39 13263
Chris@39 13264
Chris@39 13265
Chris@39 13266
Chris@39 13267
Chris@39 13268
Chris@39 13269
Chris@39 13270
Chris@39 13271
Chris@39 13272
Chris@39 13273
Chris@39 13274
Chris@39 13275
Chris@39 13276
Chris@39 13277
Chris@39 13278
Chris@39 13279
Chris@39 13280
Chris@39 13281
Chris@39 13282
Chris@39 13283
Chris@39 13284
Chris@39 13285
Chris@39 13286
Chris@39 13287
Chris@39 13288
Chris@39 13289 lt_prog_compiler_wl_CXX=
Chris@39 13290 lt_prog_compiler_pic_CXX=
Chris@39 13291 lt_prog_compiler_static_CXX=
Chris@39 13292
Chris@39 13293
Chris@39 13294 # C++ specific cases for pic, static, wl, etc.
Chris@39 13295 if test "$GXX" = yes; then
Chris@39 13296 lt_prog_compiler_wl_CXX='-Wl,'
Chris@39 13297 lt_prog_compiler_static_CXX='-static'
Chris@39 13298
Chris@39 13299 case $host_os in
Chris@39 13300 aix*)
Chris@39 13301 # All AIX code is PIC.
Chris@39 13302 if test "$host_cpu" = ia64; then
Chris@39 13303 # AIX 5 now supports IA64 processor
Chris@39 13304 lt_prog_compiler_static_CXX='-Bstatic'
Chris@39 13305 fi
Chris@39 13306 ;;
Chris@39 13307
Chris@39 13308 amigaos*)
Chris@39 13309 case $host_cpu in
Chris@39 13310 powerpc)
Chris@39 13311 # see comment about AmigaOS4 .so support
Chris@39 13312 lt_prog_compiler_pic_CXX='-fPIC'
Chris@39 13313 ;;
Chris@39 13314 m68k)
Chris@39 13315 # FIXME: we need at least 68020 code to build shared libraries, but
Chris@39 13316 # adding the `-m68020' flag to GCC prevents building anything better,
Chris@39 13317 # like `-m68040'.
Chris@39 13318 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
Chris@39 13319 ;;
Chris@39 13320 esac
Chris@39 13321 ;;
Chris@39 13322
Chris@39 13323 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Chris@39 13324 # PIC is the default for these OSes.
Chris@39 13325 ;;
Chris@39 13326 mingw* | cygwin* | os2* | pw32* | cegcc*)
Chris@39 13327 # This hack is so that the source file can tell whether it is being
Chris@39 13328 # built for inclusion in a dll (and should export symbols for example).
Chris@39 13329 # Although the cygwin gcc ignores -fPIC, still need this for old-style
Chris@39 13330 # (--disable-auto-import) libraries
Chris@39 13331 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
Chris@39 13332 ;;
Chris@39 13333 darwin* | rhapsody*)
Chris@39 13334 # PIC is the default on this platform
Chris@39 13335 # Common symbols not allowed in MH_DYLIB files
Chris@39 13336 lt_prog_compiler_pic_CXX='-fno-common'
Chris@39 13337 ;;
Chris@39 13338 *djgpp*)
Chris@39 13339 # DJGPP does not support shared libraries at all
Chris@39 13340 lt_prog_compiler_pic_CXX=
Chris@39 13341 ;;
Chris@39 13342 haiku*)
Chris@39 13343 # PIC is the default for Haiku.
Chris@39 13344 # The "-static" flag exists, but is broken.
Chris@39 13345 lt_prog_compiler_static_CXX=
Chris@39 13346 ;;
Chris@39 13347 interix[3-9]*)
Chris@39 13348 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
Chris@39 13349 # Instead, we relocate shared libraries at runtime.
Chris@39 13350 ;;
Chris@39 13351 sysv4*MP*)
Chris@39 13352 if test -d /usr/nec; then
Chris@39 13353 lt_prog_compiler_pic_CXX=-Kconform_pic
Chris@39 13354 fi
Chris@39 13355 ;;
Chris@39 13356 hpux*)
Chris@39 13357 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
Chris@39 13358 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
Chris@39 13359 # sets the default TLS model and affects inlining.
Chris@39 13360 case $host_cpu in
Chris@39 13361 hppa*64*)
Chris@39 13362 ;;
Chris@39 13363 *)
Chris@39 13364 lt_prog_compiler_pic_CXX='-fPIC'
Chris@39 13365 ;;
Chris@39 13366 esac
Chris@39 13367 ;;
Chris@39 13368 *qnx* | *nto*)
Chris@39 13369 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@39 13370 # it will coredump.
Chris@39 13371 lt_prog_compiler_pic_CXX='-fPIC -shared'
Chris@39 13372 ;;
Chris@39 13373 *)
Chris@39 13374 lt_prog_compiler_pic_CXX='-fPIC'
Chris@39 13375 ;;
Chris@39 13376 esac
Chris@39 13377 else
Chris@39 13378 case $host_os in
Chris@39 13379 aix[4-9]*)
Chris@39 13380 # All AIX code is PIC.
Chris@39 13381 if test "$host_cpu" = ia64; then
Chris@39 13382 # AIX 5 now supports IA64 processor
Chris@39 13383 lt_prog_compiler_static_CXX='-Bstatic'
Chris@39 13384 else
Chris@39 13385 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
Chris@39 13386 fi
Chris@39 13387 ;;
Chris@39 13388 chorus*)
Chris@39 13389 case $cc_basename in
Chris@39 13390 cxch68*)
Chris@39 13391 # Green Hills C++ Compiler
Chris@39 13392 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
Chris@39 13393 ;;
Chris@39 13394 esac
Chris@39 13395 ;;
Chris@39 13396 mingw* | cygwin* | os2* | pw32* | cegcc*)
Chris@39 13397 # This hack is so that the source file can tell whether it is being
Chris@39 13398 # built for inclusion in a dll (and should export symbols for example).
Chris@39 13399 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
Chris@39 13400 ;;
Chris@39 13401 dgux*)
Chris@39 13402 case $cc_basename in
Chris@39 13403 ec++*)
Chris@39 13404 lt_prog_compiler_pic_CXX='-KPIC'
Chris@39 13405 ;;
Chris@39 13406 ghcx*)
Chris@39 13407 # Green Hills C++ Compiler
Chris@39 13408 lt_prog_compiler_pic_CXX='-pic'
Chris@39 13409 ;;
Chris@39 13410 *)
Chris@39 13411 ;;
Chris@39 13412 esac
Chris@39 13413 ;;
Chris@39 13414 freebsd* | dragonfly*)
Chris@39 13415 # FreeBSD uses GNU C++
Chris@39 13416 ;;
Chris@39 13417 hpux9* | hpux10* | hpux11*)
Chris@39 13418 case $cc_basename in
Chris@39 13419 CC*)
Chris@39 13420 lt_prog_compiler_wl_CXX='-Wl,'
Chris@39 13421 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
Chris@39 13422 if test "$host_cpu" != ia64; then
Chris@39 13423 lt_prog_compiler_pic_CXX='+Z'
Chris@39 13424 fi
Chris@39 13425 ;;
Chris@39 13426 aCC*)
Chris@39 13427 lt_prog_compiler_wl_CXX='-Wl,'
Chris@39 13428 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
Chris@39 13429 case $host_cpu in
Chris@39 13430 hppa*64*|ia64*)
Chris@39 13431 # +Z the default
Chris@39 13432 ;;
Chris@39 13433 *)
Chris@39 13434 lt_prog_compiler_pic_CXX='+Z'
Chris@39 13435 ;;
Chris@39 13436 esac
Chris@39 13437 ;;
Chris@39 13438 *)
Chris@39 13439 ;;
Chris@39 13440 esac
Chris@39 13441 ;;
Chris@39 13442 interix*)
Chris@39 13443 # This is c89, which is MS Visual C++ (no shared libs)
Chris@39 13444 # Anyone wants to do a port?
Chris@39 13445 ;;
Chris@39 13446 irix5* | irix6* | nonstopux*)
Chris@39 13447 case $cc_basename in
Chris@39 13448 CC*)
Chris@39 13449 lt_prog_compiler_wl_CXX='-Wl,'
Chris@39 13450 lt_prog_compiler_static_CXX='-non_shared'
Chris@39 13451 # CC pic flag -KPIC is the default.
Chris@39 13452 ;;
Chris@39 13453 *)
Chris@39 13454 ;;
Chris@39 13455 esac
Chris@39 13456 ;;
Chris@39 13457 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@39 13458 case $cc_basename in
Chris@39 13459 KCC*)
Chris@39 13460 # KAI C++ Compiler
Chris@39 13461 lt_prog_compiler_wl_CXX='--backend -Wl,'
Chris@39 13462 lt_prog_compiler_pic_CXX='-fPIC'
Chris@39 13463 ;;
Chris@39 13464 ecpc* )
Chris@39 13465 # old Intel C++ for x86_64 which still supported -KPIC.
Chris@39 13466 lt_prog_compiler_wl_CXX='-Wl,'
Chris@39 13467 lt_prog_compiler_pic_CXX='-KPIC'
Chris@39 13468 lt_prog_compiler_static_CXX='-static'
Chris@39 13469 ;;
Chris@39 13470 icpc* )
Chris@39 13471 # Intel C++, used to be incompatible with GCC.
Chris@39 13472 # ICC 10 doesn't accept -KPIC any more.
Chris@39 13473 lt_prog_compiler_wl_CXX='-Wl,'
Chris@39 13474 lt_prog_compiler_pic_CXX='-fPIC'
Chris@39 13475 lt_prog_compiler_static_CXX='-static'
Chris@39 13476 ;;
Chris@39 13477 pgCC* | pgcpp*)
Chris@39 13478 # Portland Group C++ compiler
Chris@39 13479 lt_prog_compiler_wl_CXX='-Wl,'
Chris@39 13480 lt_prog_compiler_pic_CXX='-fpic'
Chris@39 13481 lt_prog_compiler_static_CXX='-Bstatic'
Chris@39 13482 ;;
Chris@39 13483 cxx*)
Chris@39 13484 # Compaq C++
Chris@39 13485 # Make sure the PIC flag is empty. It appears that all Alpha
Chris@39 13486 # Linux and Compaq Tru64 Unix objects are PIC.
Chris@39 13487 lt_prog_compiler_pic_CXX=
Chris@39 13488 lt_prog_compiler_static_CXX='-non_shared'
Chris@39 13489 ;;
Chris@39 13490 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
Chris@39 13491 # IBM XL 8.0, 9.0 on PPC and BlueGene
Chris@39 13492 lt_prog_compiler_wl_CXX='-Wl,'
Chris@39 13493 lt_prog_compiler_pic_CXX='-qpic'
Chris@39 13494 lt_prog_compiler_static_CXX='-qstaticlink'
Chris@39 13495 ;;
Chris@39 13496 *)
Chris@39 13497 case `$CC -V 2>&1 | sed 5q` in
Chris@39 13498 *Sun\ C*)
Chris@39 13499 # Sun C++ 5.9
Chris@39 13500 lt_prog_compiler_pic_CXX='-KPIC'
Chris@39 13501 lt_prog_compiler_static_CXX='-Bstatic'
Chris@39 13502 lt_prog_compiler_wl_CXX='-Qoption ld '
Chris@39 13503 ;;
Chris@39 13504 esac
Chris@39 13505 ;;
Chris@39 13506 esac
Chris@39 13507 ;;
Chris@39 13508 lynxos*)
Chris@39 13509 ;;
Chris@39 13510 m88k*)
Chris@39 13511 ;;
Chris@39 13512 mvs*)
Chris@39 13513 case $cc_basename in
Chris@39 13514 cxx*)
Chris@39 13515 lt_prog_compiler_pic_CXX='-W c,exportall'
Chris@39 13516 ;;
Chris@39 13517 *)
Chris@39 13518 ;;
Chris@39 13519 esac
Chris@39 13520 ;;
Chris@39 13521 netbsd* | netbsdelf*-gnu)
Chris@39 13522 ;;
Chris@39 13523 *qnx* | *nto*)
Chris@39 13524 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@39 13525 # it will coredump.
Chris@39 13526 lt_prog_compiler_pic_CXX='-fPIC -shared'
Chris@39 13527 ;;
Chris@39 13528 osf3* | osf4* | osf5*)
Chris@39 13529 case $cc_basename in
Chris@39 13530 KCC*)
Chris@39 13531 lt_prog_compiler_wl_CXX='--backend -Wl,'
Chris@39 13532 ;;
Chris@39 13533 RCC*)
Chris@39 13534 # Rational C++ 2.4.1
Chris@39 13535 lt_prog_compiler_pic_CXX='-pic'
Chris@39 13536 ;;
Chris@39 13537 cxx*)
Chris@39 13538 # Digital/Compaq C++
Chris@39 13539 lt_prog_compiler_wl_CXX='-Wl,'
Chris@39 13540 # Make sure the PIC flag is empty. It appears that all Alpha
Chris@39 13541 # Linux and Compaq Tru64 Unix objects are PIC.
Chris@39 13542 lt_prog_compiler_pic_CXX=
Chris@39 13543 lt_prog_compiler_static_CXX='-non_shared'
Chris@39 13544 ;;
Chris@39 13545 *)
Chris@39 13546 ;;
Chris@39 13547 esac
Chris@39 13548 ;;
Chris@39 13549 psos*)
Chris@39 13550 ;;
Chris@39 13551 solaris*)
Chris@39 13552 case $cc_basename in
Chris@39 13553 CC* | sunCC*)
Chris@39 13554 # Sun C++ 4.2, 5.x and Centerline C++
Chris@39 13555 lt_prog_compiler_pic_CXX='-KPIC'
Chris@39 13556 lt_prog_compiler_static_CXX='-Bstatic'
Chris@39 13557 lt_prog_compiler_wl_CXX='-Qoption ld '
Chris@39 13558 ;;
Chris@39 13559 gcx*)
Chris@39 13560 # Green Hills C++ Compiler
Chris@39 13561 lt_prog_compiler_pic_CXX='-PIC'
Chris@39 13562 ;;
Chris@39 13563 *)
Chris@39 13564 ;;
Chris@39 13565 esac
Chris@39 13566 ;;
Chris@39 13567 sunos4*)
Chris@39 13568 case $cc_basename in
Chris@39 13569 CC*)
Chris@39 13570 # Sun C++ 4.x
Chris@39 13571 lt_prog_compiler_pic_CXX='-pic'
Chris@39 13572 lt_prog_compiler_static_CXX='-Bstatic'
Chris@39 13573 ;;
Chris@39 13574 lcc*)
Chris@39 13575 # Lucid
Chris@39 13576 lt_prog_compiler_pic_CXX='-pic'
Chris@39 13577 ;;
Chris@39 13578 *)
Chris@39 13579 ;;
Chris@39 13580 esac
Chris@39 13581 ;;
Chris@39 13582 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
Chris@39 13583 case $cc_basename in
Chris@39 13584 CC*)
Chris@39 13585 lt_prog_compiler_wl_CXX='-Wl,'
Chris@39 13586 lt_prog_compiler_pic_CXX='-KPIC'
Chris@39 13587 lt_prog_compiler_static_CXX='-Bstatic'
Chris@39 13588 ;;
Chris@39 13589 esac
Chris@39 13590 ;;
Chris@39 13591 tandem*)
Chris@39 13592 case $cc_basename in
Chris@39 13593 NCC*)
Chris@39 13594 # NonStop-UX NCC 3.20
Chris@39 13595 lt_prog_compiler_pic_CXX='-KPIC'
Chris@39 13596 ;;
Chris@39 13597 *)
Chris@39 13598 ;;
Chris@39 13599 esac
Chris@39 13600 ;;
Chris@39 13601 vxworks*)
Chris@39 13602 ;;
Chris@39 13603 *)
Chris@39 13604 lt_prog_compiler_can_build_shared_CXX=no
Chris@39 13605 ;;
Chris@39 13606 esac
Chris@39 13607 fi
Chris@39 13608
Chris@39 13609 case $host_os in
Chris@39 13610 # For platforms which do not support PIC, -DPIC is meaningless:
Chris@39 13611 *djgpp*)
Chris@39 13612 lt_prog_compiler_pic_CXX=
Chris@39 13613 ;;
Chris@39 13614 *)
Chris@39 13615 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
Chris@39 13616 ;;
Chris@39 13617 esac
Chris@39 13618
Chris@39 13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
Chris@39 13620 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Chris@39 13621 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
Chris@39 13622 $as_echo_n "(cached) " >&6
Chris@39 13623 else
Chris@39 13624 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
Chris@39 13625 fi
Chris@39 13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
Chris@39 13627 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
Chris@39 13628 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
Chris@39 13629
Chris@39 13630 #
Chris@39 13631 # Check to make sure the PIC flag actually works.
Chris@39 13632 #
Chris@39 13633 if test -n "$lt_prog_compiler_pic_CXX"; then
Chris@39 13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
Chris@39 13635 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
Chris@39 13636 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
Chris@39 13637 $as_echo_n "(cached) " >&6
Chris@39 13638 else
Chris@39 13639 lt_cv_prog_compiler_pic_works_CXX=no
Chris@39 13640 ac_outfile=conftest.$ac_objext
Chris@39 13641 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@39 13642 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
Chris@39 13643 # Insert the option either (1) after the last *FLAGS variable, or
Chris@39 13644 # (2) before a word containing "conftest.", or (3) at the end.
Chris@39 13645 # Note that $ac_compile itself does not contain backslashes and begins
Chris@39 13646 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@39 13647 # The option is referenced via a variable to avoid confusing sed.
Chris@39 13648 lt_compile=`echo "$ac_compile" | $SED \
Chris@39 13649 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@39 13650 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@39 13651 -e 's:$: $lt_compiler_flag:'`
Chris@39 13652 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@39 13653 (eval "$lt_compile" 2>conftest.err)
Chris@39 13654 ac_status=$?
Chris@39 13655 cat conftest.err >&5
Chris@39 13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@39 13657 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@39 13658 # The compiler can only warn and ignore the option if not recognized
Chris@39 13659 # So say no if there are warnings other than the usual output.
Chris@39 13660 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Chris@39 13661 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@39 13662 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Chris@39 13663 lt_cv_prog_compiler_pic_works_CXX=yes
Chris@39 13664 fi
Chris@39 13665 fi
Chris@39 13666 $RM conftest*
Chris@39 13667
Chris@39 13668 fi
Chris@39 13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
Chris@39 13670 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
Chris@39 13671
Chris@39 13672 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
Chris@39 13673 case $lt_prog_compiler_pic_CXX in
Chris@39 13674 "" | " "*) ;;
Chris@39 13675 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
Chris@39 13676 esac
Chris@39 13677 else
Chris@39 13678 lt_prog_compiler_pic_CXX=
Chris@39 13679 lt_prog_compiler_can_build_shared_CXX=no
Chris@39 13680 fi
Chris@39 13681
Chris@39 13682 fi
Chris@39 13683
Chris@39 13684
Chris@39 13685
Chris@39 13686
Chris@39 13687
Chris@39 13688 #
Chris@39 13689 # Check to make sure the static flag actually works.
Chris@39 13690 #
Chris@39 13691 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
Chris@39 13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
Chris@39 13693 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Chris@39 13694 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
Chris@39 13695 $as_echo_n "(cached) " >&6
Chris@39 13696 else
Chris@39 13697 lt_cv_prog_compiler_static_works_CXX=no
Chris@39 13698 save_LDFLAGS="$LDFLAGS"
Chris@39 13699 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Chris@39 13700 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Chris@39 13701 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Chris@39 13702 # The linker can only warn and ignore the option if not recognized
Chris@39 13703 # So say no if there are warnings
Chris@39 13704 if test -s conftest.err; then
Chris@39 13705 # Append any errors to the config.log.
Chris@39 13706 cat conftest.err 1>&5
Chris@39 13707 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Chris@39 13708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@39 13709 if diff conftest.exp conftest.er2 >/dev/null; then
Chris@39 13710 lt_cv_prog_compiler_static_works_CXX=yes
Chris@39 13711 fi
Chris@39 13712 else
Chris@39 13713 lt_cv_prog_compiler_static_works_CXX=yes
Chris@39 13714 fi
Chris@39 13715 fi
Chris@39 13716 $RM -r conftest*
Chris@39 13717 LDFLAGS="$save_LDFLAGS"
Chris@39 13718
Chris@39 13719 fi
Chris@39 13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
Chris@39 13721 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
Chris@39 13722
Chris@39 13723 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
Chris@39 13724 :
Chris@39 13725 else
Chris@39 13726 lt_prog_compiler_static_CXX=
Chris@39 13727 fi
Chris@39 13728
Chris@39 13729
Chris@39 13730
Chris@39 13731
Chris@39 13732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@39 13733 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@39 13734 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
Chris@39 13735 $as_echo_n "(cached) " >&6
Chris@39 13736 else
Chris@39 13737 lt_cv_prog_compiler_c_o_CXX=no
Chris@39 13738 $RM -r conftest 2>/dev/null
Chris@39 13739 mkdir conftest
Chris@39 13740 cd conftest
Chris@39 13741 mkdir out
Chris@39 13742 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@39 13743
Chris@39 13744 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@39 13745 # Insert the option either (1) after the last *FLAGS variable, or
Chris@39 13746 # (2) before a word containing "conftest.", or (3) at the end.
Chris@39 13747 # Note that $ac_compile itself does not contain backslashes and begins
Chris@39 13748 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@39 13749 lt_compile=`echo "$ac_compile" | $SED \
Chris@39 13750 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@39 13751 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@39 13752 -e 's:$: $lt_compiler_flag:'`
Chris@39 13753 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@39 13754 (eval "$lt_compile" 2>out/conftest.err)
Chris@39 13755 ac_status=$?
Chris@39 13756 cat out/conftest.err >&5
Chris@39 13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@39 13758 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@39 13759 then
Chris@39 13760 # The compiler can only warn and ignore the option if not recognized
Chris@39 13761 # So say no if there are warnings
Chris@39 13762 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@39 13763 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@39 13764 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@39 13765 lt_cv_prog_compiler_c_o_CXX=yes
Chris@39 13766 fi
Chris@39 13767 fi
Chris@39 13768 chmod u+w . 2>&5
Chris@39 13769 $RM conftest*
Chris@39 13770 # SGI C++ compiler will create directory out/ii_files/ for
Chris@39 13771 # template instantiation
Chris@39 13772 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@39 13773 $RM out/* && rmdir out
Chris@39 13774 cd ..
Chris@39 13775 $RM -r conftest
Chris@39 13776 $RM conftest*
Chris@39 13777
Chris@39 13778 fi
Chris@39 13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
Chris@39 13780 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
Chris@39 13781
Chris@39 13782
Chris@39 13783
Chris@39 13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@39 13785 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@39 13786 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
Chris@39 13787 $as_echo_n "(cached) " >&6
Chris@39 13788 else
Chris@39 13789 lt_cv_prog_compiler_c_o_CXX=no
Chris@39 13790 $RM -r conftest 2>/dev/null
Chris@39 13791 mkdir conftest
Chris@39 13792 cd conftest
Chris@39 13793 mkdir out
Chris@39 13794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@39 13795
Chris@39 13796 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@39 13797 # Insert the option either (1) after the last *FLAGS variable, or
Chris@39 13798 # (2) before a word containing "conftest.", or (3) at the end.
Chris@39 13799 # Note that $ac_compile itself does not contain backslashes and begins
Chris@39 13800 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@39 13801 lt_compile=`echo "$ac_compile" | $SED \
Chris@39 13802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@39 13803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@39 13804 -e 's:$: $lt_compiler_flag:'`
Chris@39 13805 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@39 13806 (eval "$lt_compile" 2>out/conftest.err)
Chris@39 13807 ac_status=$?
Chris@39 13808 cat out/conftest.err >&5
Chris@39 13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@39 13810 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@39 13811 then
Chris@39 13812 # The compiler can only warn and ignore the option if not recognized
Chris@39 13813 # So say no if there are warnings
Chris@39 13814 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@39 13815 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@39 13816 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@39 13817 lt_cv_prog_compiler_c_o_CXX=yes
Chris@39 13818 fi
Chris@39 13819 fi
Chris@39 13820 chmod u+w . 2>&5
Chris@39 13821 $RM conftest*
Chris@39 13822 # SGI C++ compiler will create directory out/ii_files/ for
Chris@39 13823 # template instantiation
Chris@39 13824 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@39 13825 $RM out/* && rmdir out
Chris@39 13826 cd ..
Chris@39 13827 $RM -r conftest
Chris@39 13828 $RM conftest*
Chris@39 13829
Chris@39 13830 fi
Chris@39 13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
Chris@39 13832 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
Chris@39 13833
Chris@39 13834
Chris@39 13835
Chris@39 13836
Chris@39 13837 hard_links="nottested"
Chris@39 13838 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
Chris@39 13839 # do not overwrite the value of need_locks provided by the user
Chris@39 13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Chris@39 13841 $as_echo_n "checking if we can lock with hard links... " >&6; }
Chris@39 13842 hard_links=yes
Chris@39 13843 $RM conftest*
Chris@39 13844 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@39 13845 touch conftest.a
Chris@39 13846 ln conftest.a conftest.b 2>&5 || hard_links=no
Chris@39 13847 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@39 13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Chris@39 13849 $as_echo "$hard_links" >&6; }
Chris@39 13850 if test "$hard_links" = no; then
Chris@39 13851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
Chris@39 13852 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
Chris@39 13853 need_locks=warn
Chris@39 13854 fi
Chris@39 13855 else
Chris@39 13856 need_locks=no
Chris@39 13857 fi
Chris@39 13858
Chris@39 13859
Chris@39 13860
Chris@39 13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Chris@39 13862 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Chris@39 13863
Chris@39 13864 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Chris@39 13865 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Chris@39 13866 case $host_os in
Chris@39 13867 aix[4-9]*)
Chris@39 13868 # If we're using GNU nm, then we don't want the "-C" option.
Chris@39 13869 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Chris@39 13870 # Also, AIX nm treats weak defined symbols like other global defined
Chris@39 13871 # symbols, whereas GNU nm marks them as "W".
Chris@39 13872 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Chris@39 13873 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Chris@39 13874 else
Chris@39 13875 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Chris@39 13876 fi
Chris@39 13877 ;;
Chris@39 13878 pw32*)
Chris@39 13879 export_symbols_cmds_CXX="$ltdll_cmds"
Chris@39 13880 ;;
Chris@39 13881 cygwin* | mingw* | cegcc*)
Chris@39 13882 case $cc_basename in
Chris@39 13883 cl*) ;;
Chris@39 13884 *)
Chris@39 13885 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
Chris@39 13886 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
Chris@39 13887 ;;
Chris@39 13888 esac
Chris@39 13889 ;;
Chris@39 13890 linux* | k*bsd*-gnu | gnu*)
Chris@39 13891 link_all_deplibs_CXX=no
Chris@39 13892 ;;
Chris@39 13893 *)
Chris@39 13894 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Chris@39 13895 ;;
Chris@39 13896 esac
Chris@39 13897
Chris@39 13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
Chris@39 13899 $as_echo "$ld_shlibs_CXX" >&6; }
Chris@39 13900 test "$ld_shlibs_CXX" = no && can_build_shared=no
Chris@39 13901
Chris@39 13902 with_gnu_ld_CXX=$with_gnu_ld
Chris@39 13903
Chris@39 13904
Chris@39 13905
Chris@39 13906
Chris@39 13907
Chris@39 13908
Chris@39 13909 #
Chris@39 13910 # Do we need to explicitly link libc?
Chris@39 13911 #
Chris@39 13912 case "x$archive_cmds_need_lc_CXX" in
Chris@39 13913 x|xyes)
Chris@39 13914 # Assume -lc should be added
Chris@39 13915 archive_cmds_need_lc_CXX=yes
Chris@39 13916
Chris@39 13917 if test "$enable_shared" = yes && test "$GCC" = yes; then
Chris@39 13918 case $archive_cmds_CXX in
Chris@39 13919 *'~'*)
Chris@39 13920 # FIXME: we may have to deal with multi-command sequences.
Chris@39 13921 ;;
Chris@39 13922 '$CC '*)
Chris@39 13923 # Test whether the compiler implicitly links with -lc since on some
Chris@39 13924 # systems, -lgcc has to come before -lc. If gcc already passes -lc
Chris@39 13925 # to ld, don't add -lc before -lgcc.
Chris@39 13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Chris@39 13927 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Chris@39 13928 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
Chris@39 13929 $as_echo_n "(cached) " >&6
Chris@39 13930 else
Chris@39 13931 $RM conftest*
Chris@39 13932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@39 13933
Chris@39 13934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@39 13935 (eval $ac_compile) 2>&5
Chris@39 13936 ac_status=$?
Chris@39 13937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 13938 test $ac_status = 0; } 2>conftest.err; then
Chris@39 13939 soname=conftest
Chris@39 13940 lib=conftest
Chris@39 13941 libobjs=conftest.$ac_objext
Chris@39 13942 deplibs=
Chris@39 13943 wl=$lt_prog_compiler_wl_CXX
Chris@39 13944 pic_flag=$lt_prog_compiler_pic_CXX
Chris@39 13945 compiler_flags=-v
Chris@39 13946 linker_flags=-v
Chris@39 13947 verstring=
Chris@39 13948 output_objdir=.
Chris@39 13949 libname=conftest
Chris@39 13950 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
Chris@39 13951 allow_undefined_flag_CXX=
Chris@39 13952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Chris@39 13953 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Chris@39 13954 ac_status=$?
Chris@39 13955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 13956 test $ac_status = 0; }
Chris@39 13957 then
Chris@39 13958 lt_cv_archive_cmds_need_lc_CXX=no
Chris@39 13959 else
Chris@39 13960 lt_cv_archive_cmds_need_lc_CXX=yes
Chris@39 13961 fi
Chris@39 13962 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
Chris@39 13963 else
Chris@39 13964 cat conftest.err 1>&5
Chris@39 13965 fi
Chris@39 13966 $RM conftest*
Chris@39 13967
Chris@39 13968 fi
Chris@39 13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
Chris@39 13970 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
Chris@39 13971 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
Chris@39 13972 ;;
Chris@39 13973 esac
Chris@39 13974 fi
Chris@39 13975 ;;
Chris@39 13976 esac
Chris@39 13977
Chris@39 13978
Chris@39 13979
Chris@39 13980
Chris@39 13981
Chris@39 13982
Chris@39 13983
Chris@39 13984
Chris@39 13985
Chris@39 13986
Chris@39 13987
Chris@39 13988
Chris@39 13989
Chris@39 13990
Chris@39 13991
Chris@39 13992
Chris@39 13993
Chris@39 13994
Chris@39 13995
Chris@39 13996
Chris@39 13997
Chris@39 13998
Chris@39 13999
Chris@39 14000
Chris@39 14001
Chris@39 14002
Chris@39 14003
Chris@39 14004
Chris@39 14005
Chris@39 14006
Chris@39 14007
Chris@39 14008
Chris@39 14009
Chris@39 14010
Chris@39 14011
Chris@39 14012
Chris@39 14013
Chris@39 14014
Chris@39 14015
Chris@39 14016
Chris@39 14017
Chris@39 14018
Chris@39 14019
Chris@39 14020
Chris@39 14021
Chris@39 14022
Chris@39 14023
Chris@39 14024
Chris@39 14025
Chris@39 14026
Chris@39 14027
Chris@39 14028
Chris@39 14029
Chris@39 14030
Chris@39 14031
Chris@39 14032
Chris@39 14033
Chris@39 14034
Chris@39 14035
Chris@39 14036
Chris@39 14037
Chris@39 14038
Chris@39 14039
Chris@39 14040
Chris@39 14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Chris@39 14042 $as_echo_n "checking dynamic linker characteristics... " >&6; }
Chris@39 14043
Chris@39 14044 library_names_spec=
Chris@39 14045 libname_spec='lib$name'
Chris@39 14046 soname_spec=
Chris@39 14047 shrext_cmds=".so"
Chris@39 14048 postinstall_cmds=
Chris@39 14049 postuninstall_cmds=
Chris@39 14050 finish_cmds=
Chris@39 14051 finish_eval=
Chris@39 14052 shlibpath_var=
Chris@39 14053 shlibpath_overrides_runpath=unknown
Chris@39 14054 version_type=none
Chris@39 14055 dynamic_linker="$host_os ld.so"
Chris@39 14056 sys_lib_dlsearch_path_spec="/lib /usr/lib"
Chris@39 14057 need_lib_prefix=unknown
Chris@39 14058 hardcode_into_libs=no
Chris@39 14059
Chris@39 14060 # when you set need_version to no, make sure it does not cause -set_version
Chris@39 14061 # flags to be left without arguments
Chris@39 14062 need_version=unknown
Chris@39 14063
Chris@39 14064 case $host_os in
Chris@39 14065 aix3*)
Chris@39 14066 version_type=linux
Chris@39 14067 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
Chris@39 14068 shlibpath_var=LIBPATH
Chris@39 14069
Chris@39 14070 # AIX 3 has no versioning support, so we append a major version to the name.
Chris@39 14071 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14072 ;;
Chris@39 14073
Chris@39 14074 aix[4-9]*)
Chris@39 14075 version_type=linux
Chris@39 14076 need_lib_prefix=no
Chris@39 14077 need_version=no
Chris@39 14078 hardcode_into_libs=yes
Chris@39 14079 if test "$host_cpu" = ia64; then
Chris@39 14080 # AIX 5 supports IA64
Chris@39 14081 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
Chris@39 14082 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14083 else
Chris@39 14084 # With GCC up to 2.95.x, collect2 would create an import file
Chris@39 14085 # for dependence libraries. The import file would start with
Chris@39 14086 # the line `#! .'. This would cause the generated library to
Chris@39 14087 # depend on `.', always an invalid library. This was fixed in
Chris@39 14088 # development snapshots of GCC prior to 3.0.
Chris@39 14089 case $host_os in
Chris@39 14090 aix4 | aix4.[01] | aix4.[01].*)
Chris@39 14091 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
Chris@39 14092 echo ' yes '
Chris@39 14093 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
Chris@39 14094 :
Chris@39 14095 else
Chris@39 14096 can_build_shared=no
Chris@39 14097 fi
Chris@39 14098 ;;
Chris@39 14099 esac
Chris@39 14100 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
Chris@39 14101 # soname into executable. Probably we can add versioning support to
Chris@39 14102 # collect2, so additional links can be useful in future.
Chris@39 14103 if test "$aix_use_runtimelinking" = yes; then
Chris@39 14104 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
Chris@39 14105 # instead of lib<name>.a to let people know that these are not
Chris@39 14106 # typical AIX shared libraries.
Chris@39 14107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 14108 else
Chris@39 14109 # We preserve .a as extension for shared libraries through AIX4.2
Chris@39 14110 # and later when we are not doing run time linking.
Chris@39 14111 library_names_spec='${libname}${release}.a $libname.a'
Chris@39 14112 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14113 fi
Chris@39 14114 shlibpath_var=LIBPATH
Chris@39 14115 fi
Chris@39 14116 ;;
Chris@39 14117
Chris@39 14118 amigaos*)
Chris@39 14119 case $host_cpu in
Chris@39 14120 powerpc)
Chris@39 14121 # Since July 2007 AmigaOS4 officially supports .so libraries.
Chris@39 14122 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Chris@39 14123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 14124 ;;
Chris@39 14125 m68k)
Chris@39 14126 library_names_spec='$libname.ixlibrary $libname.a'
Chris@39 14127 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Chris@39 14128 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
Chris@39 14129 ;;
Chris@39 14130 esac
Chris@39 14131 ;;
Chris@39 14132
Chris@39 14133 beos*)
Chris@39 14134 library_names_spec='${libname}${shared_ext}'
Chris@39 14135 dynamic_linker="$host_os ld.so"
Chris@39 14136 shlibpath_var=LIBRARY_PATH
Chris@39 14137 ;;
Chris@39 14138
Chris@39 14139 bsdi[45]*)
Chris@39 14140 version_type=linux
Chris@39 14141 need_version=no
Chris@39 14142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 14143 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14144 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
Chris@39 14145 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14146 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
Chris@39 14147 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
Chris@39 14148 # the default ld.so.conf also contains /usr/contrib/lib and
Chris@39 14149 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
Chris@39 14150 # libtool to hard-code these into programs
Chris@39 14151 ;;
Chris@39 14152
Chris@39 14153 cygwin* | mingw* | pw32* | cegcc*)
Chris@39 14154 version_type=windows
Chris@39 14155 shrext_cmds=".dll"
Chris@39 14156 need_version=no
Chris@39 14157 need_lib_prefix=no
Chris@39 14158
Chris@39 14159 case $GCC,$cc_basename in
Chris@39 14160 yes,*)
Chris@39 14161 # gcc
Chris@39 14162 library_names_spec='$libname.dll.a'
Chris@39 14163 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@39 14164 postinstall_cmds='base_file=`basename \${file}`~
Chris@39 14165 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Chris@39 14166 dldir=$destdir/`dirname \$dlpath`~
Chris@39 14167 test -d \$dldir || mkdir -p \$dldir~
Chris@39 14168 $install_prog $dir/$dlname \$dldir/$dlname~
Chris@39 14169 chmod a+x \$dldir/$dlname~
Chris@39 14170 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
Chris@39 14171 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
Chris@39 14172 fi'
Chris@39 14173 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@39 14174 dlpath=$dir/\$dldll~
Chris@39 14175 $RM \$dlpath'
Chris@39 14176 shlibpath_overrides_runpath=yes
Chris@39 14177
Chris@39 14178 case $host_os in
Chris@39 14179 cygwin*)
Chris@39 14180 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Chris@39 14181 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@39 14182
Chris@39 14183 ;;
Chris@39 14184 mingw* | cegcc*)
Chris@39 14185 # MinGW DLLs use traditional 'lib' prefix
Chris@39 14186 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@39 14187 ;;
Chris@39 14188 pw32*)
Chris@39 14189 # pw32 DLLs use 'pw' prefix rather than 'lib'
Chris@39 14190 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@39 14191 ;;
Chris@39 14192 esac
Chris@39 14193 dynamic_linker='Win32 ld.exe'
Chris@39 14194 ;;
Chris@39 14195
Chris@39 14196 *,cl*)
Chris@39 14197 # Native MSVC
Chris@39 14198 libname_spec='$name'
Chris@39 14199 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@39 14200 library_names_spec='${libname}.dll.lib'
Chris@39 14201
Chris@39 14202 case $build_os in
Chris@39 14203 mingw*)
Chris@39 14204 sys_lib_search_path_spec=
Chris@39 14205 lt_save_ifs=$IFS
Chris@39 14206 IFS=';'
Chris@39 14207 for lt_path in $LIB
Chris@39 14208 do
Chris@39 14209 IFS=$lt_save_ifs
Chris@39 14210 # Let DOS variable expansion print the short 8.3 style file name.
Chris@39 14211 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
Chris@39 14212 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
Chris@39 14213 done
Chris@39 14214 IFS=$lt_save_ifs
Chris@39 14215 # Convert to MSYS style.
Chris@39 14216 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
Chris@39 14217 ;;
Chris@39 14218 cygwin*)
Chris@39 14219 # Convert to unix form, then to dos form, then back to unix form
Chris@39 14220 # but this time dos style (no spaces!) so that the unix form looks
Chris@39 14221 # like /cygdrive/c/PROGRA~1:/cygdr...
Chris@39 14222 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
Chris@39 14223 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
Chris@39 14224 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@39 14225 ;;
Chris@39 14226 *)
Chris@39 14227 sys_lib_search_path_spec="$LIB"
Chris@39 14228 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
Chris@39 14229 # It is most probably a Windows format PATH.
Chris@39 14230 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Chris@39 14231 else
Chris@39 14232 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@39 14233 fi
Chris@39 14234 # FIXME: find the short name or the path components, as spaces are
Chris@39 14235 # common. (e.g. "Program Files" -> "PROGRA~1")
Chris@39 14236 ;;
Chris@39 14237 esac
Chris@39 14238
Chris@39 14239 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@39 14240 postinstall_cmds='base_file=`basename \${file}`~
Chris@39 14241 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Chris@39 14242 dldir=$destdir/`dirname \$dlpath`~
Chris@39 14243 test -d \$dldir || mkdir -p \$dldir~
Chris@39 14244 $install_prog $dir/$dlname \$dldir/$dlname'
Chris@39 14245 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@39 14246 dlpath=$dir/\$dldll~
Chris@39 14247 $RM \$dlpath'
Chris@39 14248 shlibpath_overrides_runpath=yes
Chris@39 14249 dynamic_linker='Win32 link.exe'
Chris@39 14250 ;;
Chris@39 14251
Chris@39 14252 *)
Chris@39 14253 # Assume MSVC wrapper
Chris@39 14254 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Chris@39 14255 dynamic_linker='Win32 ld.exe'
Chris@39 14256 ;;
Chris@39 14257 esac
Chris@39 14258 # FIXME: first we should search . and the directory the executable is in
Chris@39 14259 shlibpath_var=PATH
Chris@39 14260 ;;
Chris@39 14261
Chris@39 14262 darwin* | rhapsody*)
Chris@39 14263 dynamic_linker="$host_os dyld"
Chris@39 14264 version_type=darwin
Chris@39 14265 need_lib_prefix=no
Chris@39 14266 need_version=no
Chris@39 14267 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Chris@39 14268 soname_spec='${libname}${release}${major}$shared_ext'
Chris@39 14269 shlibpath_overrides_runpath=yes
Chris@39 14270 shlibpath_var=DYLD_LIBRARY_PATH
Chris@39 14271 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Chris@39 14272
Chris@39 14273 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
Chris@39 14274 ;;
Chris@39 14275
Chris@39 14276 dgux*)
Chris@39 14277 version_type=linux
Chris@39 14278 need_lib_prefix=no
Chris@39 14279 need_version=no
Chris@39 14280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
Chris@39 14281 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14282 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14283 ;;
Chris@39 14284
Chris@39 14285 freebsd1*)
Chris@39 14286 dynamic_linker=no
Chris@39 14287 ;;
Chris@39 14288
Chris@39 14289 freebsd* | dragonfly*)
Chris@39 14290 # DragonFly does not have aout. When/if they implement a new
Chris@39 14291 # versioning mechanism, adjust this.
Chris@39 14292 if test -x /usr/bin/objformat; then
Chris@39 14293 objformat=`/usr/bin/objformat`
Chris@39 14294 else
Chris@39 14295 case $host_os in
Chris@39 14296 freebsd[123]*) objformat=aout ;;
Chris@39 14297 *) objformat=elf ;;
Chris@39 14298 esac
Chris@39 14299 fi
Chris@39 14300 version_type=freebsd-$objformat
Chris@39 14301 case $version_type in
Chris@39 14302 freebsd-elf*)
Chris@39 14303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@39 14304 need_version=no
Chris@39 14305 need_lib_prefix=no
Chris@39 14306 ;;
Chris@39 14307 freebsd-*)
Chris@39 14308 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
Chris@39 14309 need_version=yes
Chris@39 14310 ;;
Chris@39 14311 esac
Chris@39 14312 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14313 case $host_os in
Chris@39 14314 freebsd2*)
Chris@39 14315 shlibpath_overrides_runpath=yes
Chris@39 14316 ;;
Chris@39 14317 freebsd3.[01]* | freebsdelf3.[01]*)
Chris@39 14318 shlibpath_overrides_runpath=yes
Chris@39 14319 hardcode_into_libs=yes
Chris@39 14320 ;;
Chris@39 14321 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
Chris@39 14322 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Chris@39 14323 shlibpath_overrides_runpath=no
Chris@39 14324 hardcode_into_libs=yes
Chris@39 14325 ;;
Chris@39 14326 *) # from 4.6 on, and DragonFly
Chris@39 14327 shlibpath_overrides_runpath=yes
Chris@39 14328 hardcode_into_libs=yes
Chris@39 14329 ;;
Chris@39 14330 esac
Chris@39 14331 ;;
Chris@39 14332
Chris@39 14333 gnu*)
Chris@39 14334 version_type=linux
Chris@39 14335 need_lib_prefix=no
Chris@39 14336 need_version=no
Chris@39 14337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
Chris@39 14338 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14339 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14340 shlibpath_overrides_runpath=no
Chris@39 14341 hardcode_into_libs=yes
Chris@39 14342 ;;
Chris@39 14343
Chris@39 14344 haiku*)
Chris@39 14345 version_type=linux
Chris@39 14346 need_lib_prefix=no
Chris@39 14347 need_version=no
Chris@39 14348 dynamic_linker="$host_os runtime_loader"
Chris@39 14349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
Chris@39 14350 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14351 shlibpath_var=LIBRARY_PATH
Chris@39 14352 shlibpath_overrides_runpath=yes
Chris@39 14353 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Chris@39 14354 hardcode_into_libs=yes
Chris@39 14355 ;;
Chris@39 14356
Chris@39 14357 hpux9* | hpux10* | hpux11*)
Chris@39 14358 # Give a soname corresponding to the major version so that dld.sl refuses to
Chris@39 14359 # link against other versions.
Chris@39 14360 version_type=sunos
Chris@39 14361 need_lib_prefix=no
Chris@39 14362 need_version=no
Chris@39 14363 case $host_cpu in
Chris@39 14364 ia64*)
Chris@39 14365 shrext_cmds='.so'
Chris@39 14366 hardcode_into_libs=yes
Chris@39 14367 dynamic_linker="$host_os dld.so"
Chris@39 14368 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14369 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@39 14370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 14371 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14372 if test "X$HPUX_IA64_MODE" = X32; then
Chris@39 14373 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Chris@39 14374 else
Chris@39 14375 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Chris@39 14376 fi
Chris@39 14377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@39 14378 ;;
Chris@39 14379 hppa*64*)
Chris@39 14380 shrext_cmds='.sl'
Chris@39 14381 hardcode_into_libs=yes
Chris@39 14382 dynamic_linker="$host_os dld.sl"
Chris@39 14383 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
Chris@39 14384 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@39 14385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 14386 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14387 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
Chris@39 14388 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@39 14389 ;;
Chris@39 14390 *)
Chris@39 14391 shrext_cmds='.sl'
Chris@39 14392 dynamic_linker="$host_os dld.sl"
Chris@39 14393 shlibpath_var=SHLIB_PATH
Chris@39 14394 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Chris@39 14395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 14396 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14397 ;;
Chris@39 14398 esac
Chris@39 14399 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Chris@39 14400 postinstall_cmds='chmod 555 $lib'
Chris@39 14401 # or fails outright, so override atomically:
Chris@39 14402 install_override_mode=555
Chris@39 14403 ;;
Chris@39 14404
Chris@39 14405 interix[3-9]*)
Chris@39 14406 version_type=linux
Chris@39 14407 need_lib_prefix=no
Chris@39 14408 need_version=no
Chris@39 14409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@39 14410 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14411 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
Chris@39 14412 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14413 shlibpath_overrides_runpath=no
Chris@39 14414 hardcode_into_libs=yes
Chris@39 14415 ;;
Chris@39 14416
Chris@39 14417 irix5* | irix6* | nonstopux*)
Chris@39 14418 case $host_os in
Chris@39 14419 nonstopux*) version_type=nonstopux ;;
Chris@39 14420 *)
Chris@39 14421 if test "$lt_cv_prog_gnu_ld" = yes; then
Chris@39 14422 version_type=linux
Chris@39 14423 else
Chris@39 14424 version_type=irix
Chris@39 14425 fi ;;
Chris@39 14426 esac
Chris@39 14427 need_lib_prefix=no
Chris@39 14428 need_version=no
Chris@39 14429 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@39 14431 case $host_os in
Chris@39 14432 irix5* | nonstopux*)
Chris@39 14433 libsuff= shlibsuff=
Chris@39 14434 ;;
Chris@39 14435 *)
Chris@39 14436 case $LD in # libtool.m4 will add one of these switches to LD
Chris@39 14437 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
Chris@39 14438 libsuff= shlibsuff= libmagic=32-bit;;
Chris@39 14439 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
Chris@39 14440 libsuff=32 shlibsuff=N32 libmagic=N32;;
Chris@39 14441 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
Chris@39 14442 libsuff=64 shlibsuff=64 libmagic=64-bit;;
Chris@39 14443 *) libsuff= shlibsuff= libmagic=never-match;;
Chris@39 14444 esac
Chris@39 14445 ;;
Chris@39 14446 esac
Chris@39 14447 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
Chris@39 14448 shlibpath_overrides_runpath=no
Chris@39 14449 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
Chris@39 14450 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
Chris@39 14451 hardcode_into_libs=yes
Chris@39 14452 ;;
Chris@39 14453
Chris@39 14454 # No shared lib support for Linux oldld, aout, or coff.
Chris@39 14455 linux*oldld* | linux*aout* | linux*coff*)
Chris@39 14456 dynamic_linker=no
Chris@39 14457 ;;
Chris@39 14458
Chris@39 14459 # This must be Linux ELF.
Chris@39 14460 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@39 14461 version_type=linux
Chris@39 14462 need_lib_prefix=no
Chris@39 14463 need_version=no
Chris@39 14464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 14465 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
Chris@39 14467 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14468 shlibpath_overrides_runpath=no
Chris@39 14469
Chris@39 14470 # Some binutils ld are patched to set DT_RUNPATH
Chris@39 14471 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
Chris@39 14472 $as_echo_n "(cached) " >&6
Chris@39 14473 else
Chris@39 14474 lt_cv_shlibpath_overrides_runpath=no
Chris@39 14475 save_LDFLAGS=$LDFLAGS
Chris@39 14476 save_libdir=$libdir
Chris@39 14477 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
Chris@39 14478 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
Chris@39 14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 14480 /* end confdefs.h. */
Chris@39 14481
Chris@39 14482 int
Chris@39 14483 main ()
Chris@39 14484 {
Chris@39 14485
Chris@39 14486 ;
Chris@39 14487 return 0;
Chris@39 14488 }
Chris@39 14489 _ACEOF
Chris@39 14490 if ac_fn_cxx_try_link "$LINENO"; then :
Chris@39 14491 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
Chris@39 14492 lt_cv_shlibpath_overrides_runpath=yes
Chris@39 14493 fi
Chris@39 14494 fi
Chris@39 14495 rm -f core conftest.err conftest.$ac_objext \
Chris@39 14496 conftest$ac_exeext conftest.$ac_ext
Chris@39 14497 LDFLAGS=$save_LDFLAGS
Chris@39 14498 libdir=$save_libdir
Chris@39 14499
Chris@39 14500 fi
Chris@39 14501
Chris@39 14502 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Chris@39 14503
Chris@39 14504 # This implies no fast_install, which is unacceptable.
Chris@39 14505 # Some rework will be needed to allow for fast_install
Chris@39 14506 # before this can be enabled.
Chris@39 14507 hardcode_into_libs=yes
Chris@39 14508
Chris@39 14509 # Append ld.so.conf contents to the search path
Chris@39 14510 if test -f /etc/ld.so.conf; then
Chris@39 14511 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
Chris@39 14512 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
Chris@39 14513 fi
Chris@39 14514
Chris@39 14515 # We used to test for /lib/ld.so.1 and disable shared libraries on
Chris@39 14516 # powerpc, because MkLinux only supported shared libraries with the
Chris@39 14517 # GNU dynamic linker. Since this was broken with cross compilers,
Chris@39 14518 # most powerpc-linux boxes support dynamic linking these days and
Chris@39 14519 # people can always --disable-shared, the test was removed, and we
Chris@39 14520 # assume the GNU/Linux dynamic linker is in use.
Chris@39 14521 dynamic_linker='GNU/Linux ld.so'
Chris@39 14522 ;;
Chris@39 14523
Chris@39 14524 netbsdelf*-gnu)
Chris@39 14525 version_type=linux
Chris@39 14526 need_lib_prefix=no
Chris@39 14527 need_version=no
Chris@39 14528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@39 14529 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14530 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14531 shlibpath_overrides_runpath=no
Chris@39 14532 hardcode_into_libs=yes
Chris@39 14533 dynamic_linker='NetBSD ld.elf_so'
Chris@39 14534 ;;
Chris@39 14535
Chris@39 14536 netbsd*)
Chris@39 14537 version_type=sunos
Chris@39 14538 need_lib_prefix=no
Chris@39 14539 need_version=no
Chris@39 14540 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@39 14541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@39 14542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@39 14543 dynamic_linker='NetBSD (a.out) ld.so'
Chris@39 14544 else
Chris@39 14545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@39 14546 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14547 dynamic_linker='NetBSD ld.elf_so'
Chris@39 14548 fi
Chris@39 14549 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14550 shlibpath_overrides_runpath=yes
Chris@39 14551 hardcode_into_libs=yes
Chris@39 14552 ;;
Chris@39 14553
Chris@39 14554 newsos6)
Chris@39 14555 version_type=linux
Chris@39 14556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 14557 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14558 shlibpath_overrides_runpath=yes
Chris@39 14559 ;;
Chris@39 14560
Chris@39 14561 *nto* | *qnx*)
Chris@39 14562 version_type=qnx
Chris@39 14563 need_lib_prefix=no
Chris@39 14564 need_version=no
Chris@39 14565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 14566 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14567 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14568 shlibpath_overrides_runpath=no
Chris@39 14569 hardcode_into_libs=yes
Chris@39 14570 dynamic_linker='ldqnx.so'
Chris@39 14571 ;;
Chris@39 14572
Chris@39 14573 openbsd*)
Chris@39 14574 version_type=sunos
Chris@39 14575 sys_lib_dlsearch_path_spec="/usr/lib"
Chris@39 14576 need_lib_prefix=no
Chris@39 14577 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
Chris@39 14578 case $host_os in
Chris@39 14579 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
Chris@39 14580 *) need_version=no ;;
Chris@39 14581 esac
Chris@39 14582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@39 14583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@39 14584 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14585 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@39 14586 case $host_os in
Chris@39 14587 openbsd2.[89] | openbsd2.[89].*)
Chris@39 14588 shlibpath_overrides_runpath=no
Chris@39 14589 ;;
Chris@39 14590 *)
Chris@39 14591 shlibpath_overrides_runpath=yes
Chris@39 14592 ;;
Chris@39 14593 esac
Chris@39 14594 else
Chris@39 14595 shlibpath_overrides_runpath=yes
Chris@39 14596 fi
Chris@39 14597 ;;
Chris@39 14598
Chris@39 14599 os2*)
Chris@39 14600 libname_spec='$name'
Chris@39 14601 shrext_cmds=".dll"
Chris@39 14602 need_lib_prefix=no
Chris@39 14603 library_names_spec='$libname${shared_ext} $libname.a'
Chris@39 14604 dynamic_linker='OS/2 ld.exe'
Chris@39 14605 shlibpath_var=LIBPATH
Chris@39 14606 ;;
Chris@39 14607
Chris@39 14608 osf3* | osf4* | osf5*)
Chris@39 14609 version_type=osf
Chris@39 14610 need_lib_prefix=no
Chris@39 14611 need_version=no
Chris@39 14612 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 14614 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14615 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Chris@39 14616 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
Chris@39 14617 ;;
Chris@39 14618
Chris@39 14619 rdos*)
Chris@39 14620 dynamic_linker=no
Chris@39 14621 ;;
Chris@39 14622
Chris@39 14623 solaris*)
Chris@39 14624 version_type=linux
Chris@39 14625 need_lib_prefix=no
Chris@39 14626 need_version=no
Chris@39 14627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 14628 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14629 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14630 shlibpath_overrides_runpath=yes
Chris@39 14631 hardcode_into_libs=yes
Chris@39 14632 # ldd complains unless libraries are executable
Chris@39 14633 postinstall_cmds='chmod +x $lib'
Chris@39 14634 ;;
Chris@39 14635
Chris@39 14636 sunos4*)
Chris@39 14637 version_type=sunos
Chris@39 14638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@39 14639 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
Chris@39 14640 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14641 shlibpath_overrides_runpath=yes
Chris@39 14642 if test "$with_gnu_ld" = yes; then
Chris@39 14643 need_lib_prefix=no
Chris@39 14644 fi
Chris@39 14645 need_version=yes
Chris@39 14646 ;;
Chris@39 14647
Chris@39 14648 sysv4 | sysv4.3*)
Chris@39 14649 version_type=linux
Chris@39 14650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 14651 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14652 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14653 case $host_vendor in
Chris@39 14654 sni)
Chris@39 14655 shlibpath_overrides_runpath=no
Chris@39 14656 need_lib_prefix=no
Chris@39 14657 runpath_var=LD_RUN_PATH
Chris@39 14658 ;;
Chris@39 14659 siemens)
Chris@39 14660 need_lib_prefix=no
Chris@39 14661 ;;
Chris@39 14662 motorola)
Chris@39 14663 need_lib_prefix=no
Chris@39 14664 need_version=no
Chris@39 14665 shlibpath_overrides_runpath=no
Chris@39 14666 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
Chris@39 14667 ;;
Chris@39 14668 esac
Chris@39 14669 ;;
Chris@39 14670
Chris@39 14671 sysv4*MP*)
Chris@39 14672 if test -d /usr/nec ;then
Chris@39 14673 version_type=linux
Chris@39 14674 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
Chris@39 14675 soname_spec='$libname${shared_ext}.$major'
Chris@39 14676 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14677 fi
Chris@39 14678 ;;
Chris@39 14679
Chris@39 14680 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Chris@39 14681 version_type=freebsd-elf
Chris@39 14682 need_lib_prefix=no
Chris@39 14683 need_version=no
Chris@39 14684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@39 14685 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14686 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14687 shlibpath_overrides_runpath=yes
Chris@39 14688 hardcode_into_libs=yes
Chris@39 14689 if test "$with_gnu_ld" = yes; then
Chris@39 14690 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Chris@39 14691 else
Chris@39 14692 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Chris@39 14693 case $host_os in
Chris@39 14694 sco3.2v5*)
Chris@39 14695 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
Chris@39 14696 ;;
Chris@39 14697 esac
Chris@39 14698 fi
Chris@39 14699 sys_lib_dlsearch_path_spec='/usr/lib'
Chris@39 14700 ;;
Chris@39 14701
Chris@39 14702 tpf*)
Chris@39 14703 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Chris@39 14704 version_type=linux
Chris@39 14705 need_lib_prefix=no
Chris@39 14706 need_version=no
Chris@39 14707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 14708 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14709 shlibpath_overrides_runpath=no
Chris@39 14710 hardcode_into_libs=yes
Chris@39 14711 ;;
Chris@39 14712
Chris@39 14713 uts4*)
Chris@39 14714 version_type=linux
Chris@39 14715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@39 14716 soname_spec='${libname}${release}${shared_ext}$major'
Chris@39 14717 shlibpath_var=LD_LIBRARY_PATH
Chris@39 14718 ;;
Chris@39 14719
Chris@39 14720 *)
Chris@39 14721 dynamic_linker=no
Chris@39 14722 ;;
Chris@39 14723 esac
Chris@39 14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Chris@39 14725 $as_echo "$dynamic_linker" >&6; }
Chris@39 14726 test "$dynamic_linker" = no && can_build_shared=no
Chris@39 14727
Chris@39 14728 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Chris@39 14729 if test "$GCC" = yes; then
Chris@39 14730 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
Chris@39 14731 fi
Chris@39 14732
Chris@39 14733 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
Chris@39 14734 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
Chris@39 14735 fi
Chris@39 14736 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
Chris@39 14737 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
Chris@39 14738 fi
Chris@39 14739
Chris@39 14740
Chris@39 14741
Chris@39 14742
Chris@39 14743
Chris@39 14744
Chris@39 14745
Chris@39 14746
Chris@39 14747
Chris@39 14748
Chris@39 14749
Chris@39 14750
Chris@39 14751
Chris@39 14752
Chris@39 14753
Chris@39 14754
Chris@39 14755
Chris@39 14756
Chris@39 14757
Chris@39 14758
Chris@39 14759
Chris@39 14760
Chris@39 14761
Chris@39 14762
Chris@39 14763
Chris@39 14764
Chris@39 14765
Chris@39 14766
Chris@39 14767
Chris@39 14768
Chris@39 14769
Chris@39 14770
Chris@39 14771
Chris@39 14772
Chris@39 14773
Chris@39 14774
Chris@39 14775
Chris@39 14776
Chris@39 14777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Chris@39 14778 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Chris@39 14779 hardcode_action_CXX=
Chris@39 14780 if test -n "$hardcode_libdir_flag_spec_CXX" ||
Chris@39 14781 test -n "$runpath_var_CXX" ||
Chris@39 14782 test "X$hardcode_automatic_CXX" = "Xyes" ; then
Chris@39 14783
Chris@39 14784 # We can hardcode non-existent directories.
Chris@39 14785 if test "$hardcode_direct_CXX" != no &&
Chris@39 14786 # If the only mechanism to avoid hardcoding is shlibpath_var, we
Chris@39 14787 # have to relink, otherwise we might link with an installed library
Chris@39 14788 # when we should be linking with a yet-to-be-installed one
Chris@39 14789 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
Chris@39 14790 test "$hardcode_minus_L_CXX" != no; then
Chris@39 14791 # Linking always hardcodes the temporary library directory.
Chris@39 14792 hardcode_action_CXX=relink
Chris@39 14793 else
Chris@39 14794 # We can link without hardcoding, and we can hardcode nonexisting dirs.
Chris@39 14795 hardcode_action_CXX=immediate
Chris@39 14796 fi
Chris@39 14797 else
Chris@39 14798 # We cannot hardcode anything, or else we can only hardcode existing
Chris@39 14799 # directories.
Chris@39 14800 hardcode_action_CXX=unsupported
Chris@39 14801 fi
Chris@39 14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
Chris@39 14803 $as_echo "$hardcode_action_CXX" >&6; }
Chris@39 14804
Chris@39 14805 if test "$hardcode_action_CXX" = relink ||
Chris@39 14806 test "$inherit_rpath_CXX" = yes; then
Chris@39 14807 # Fast installation is not supported
Chris@39 14808 enable_fast_install=no
Chris@39 14809 elif test "$shlibpath_overrides_runpath" = yes ||
Chris@39 14810 test "$enable_shared" = no; then
Chris@39 14811 # Fast installation is not necessary
Chris@39 14812 enable_fast_install=needless
Chris@39 14813 fi
Chris@39 14814
Chris@39 14815
Chris@39 14816
Chris@39 14817
Chris@39 14818
Chris@39 14819
Chris@39 14820
Chris@39 14821 fi # test -n "$compiler"
Chris@39 14822
Chris@39 14823 CC=$lt_save_CC
Chris@39 14824 CFLAGS=$lt_save_CFLAGS
Chris@39 14825 LDCXX=$LD
Chris@39 14826 LD=$lt_save_LD
Chris@39 14827 GCC=$lt_save_GCC
Chris@39 14828 with_gnu_ld=$lt_save_with_gnu_ld
Chris@39 14829 lt_cv_path_LDCXX=$lt_cv_path_LD
Chris@39 14830 lt_cv_path_LD=$lt_save_path_LD
Chris@39 14831 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
Chris@39 14832 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
Chris@39 14833 fi # test "$_lt_caught_CXX_error" != yes
Chris@39 14834
Chris@39 14835 ac_ext=c
Chris@39 14836 ac_cpp='$CPP $CPPFLAGS'
Chris@39 14837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@39 14838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@39 14839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@39 14840
Chris@39 14841
Chris@39 14842
Chris@39 14843
Chris@39 14844
Chris@39 14845
Chris@39 14846
Chris@39 14847
Chris@39 14848
Chris@39 14849
Chris@39 14850
Chris@39 14851
Chris@39 14852
Chris@39 14853 ac_config_commands="$ac_config_commands libtool"
Chris@39 14854
Chris@39 14855
Chris@39 14856
Chris@39 14857
Chris@39 14858 # Only expand once:
Chris@39 14859
Chris@39 14860
Chris@39 14861 # Find a good install program. We prefer a C program (faster),
Chris@39 14862 # so one script is as good as another. But avoid the broken or
Chris@39 14863 # incompatible versions:
Chris@39 14864 # SysV /etc/install, /usr/sbin/install
Chris@39 14865 # SunOS /usr/etc/install
Chris@39 14866 # IRIX /sbin/install
Chris@39 14867 # AIX /bin/install
Chris@39 14868 # AmigaOS /C/install, which installs bootblocks on floppy discs
Chris@39 14869 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Chris@39 14870 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
Chris@39 14871 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Chris@39 14872 # OS/2's system install, which has a completely different semantic
Chris@39 14873 # ./install, which can be erroneously created by make from ./install.sh.
Chris@39 14874 # Reject install programs that cannot install multiple files.
Chris@39 14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Chris@39 14876 $as_echo_n "checking for a BSD-compatible install... " >&6; }
Chris@39 14877 if test -z "$INSTALL"; then
Chris@39 14878 if ${ac_cv_path_install+:} false; then :
Chris@39 14879 $as_echo_n "(cached) " >&6
Chris@39 14880 else
Chris@39 14881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 14882 for as_dir in $PATH
Chris@39 14883 do
Chris@39 14884 IFS=$as_save_IFS
Chris@39 14885 test -z "$as_dir" && as_dir=.
Chris@39 14886 # Account for people who put trailing slashes in PATH elements.
Chris@39 14887 case $as_dir/ in #((
Chris@39 14888 ./ | .// | /[cC]/* | \
Chris@39 14889 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Chris@39 14890 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Chris@39 14891 /usr/ucb/* ) ;;
Chris@39 14892 *)
Chris@39 14893 # OSF1 and SCO ODT 3.0 have their own names for install.
Chris@39 14894 # Don't use installbsd from OSF since it installs stuff as root
Chris@39 14895 # by default.
Chris@39 14896 for ac_prog in ginstall scoinst install; do
Chris@39 14897 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 14898 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Chris@39 14899 if test $ac_prog = install &&
Chris@39 14900 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Chris@39 14901 # AIX install. It has an incompatible calling convention.
Chris@39 14902 :
Chris@39 14903 elif test $ac_prog = install &&
Chris@39 14904 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Chris@39 14905 # program-specific install script used by HP pwplus--don't use.
Chris@39 14906 :
Chris@39 14907 else
Chris@39 14908 rm -rf conftest.one conftest.two conftest.dir
Chris@39 14909 echo one > conftest.one
Chris@39 14910 echo two > conftest.two
Chris@39 14911 mkdir conftest.dir
Chris@39 14912 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
Chris@39 14913 test -s conftest.one && test -s conftest.two &&
Chris@39 14914 test -s conftest.dir/conftest.one &&
Chris@39 14915 test -s conftest.dir/conftest.two
Chris@39 14916 then
Chris@39 14917 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
Chris@39 14918 break 3
Chris@39 14919 fi
Chris@39 14920 fi
Chris@39 14921 fi
Chris@39 14922 done
Chris@39 14923 done
Chris@39 14924 ;;
Chris@39 14925 esac
Chris@39 14926
Chris@39 14927 done
Chris@39 14928 IFS=$as_save_IFS
Chris@39 14929
Chris@39 14930 rm -rf conftest.one conftest.two conftest.dir
Chris@39 14931
Chris@39 14932 fi
Chris@39 14933 if test "${ac_cv_path_install+set}" = set; then
Chris@39 14934 INSTALL=$ac_cv_path_install
Chris@39 14935 else
Chris@39 14936 # As a last resort, use the slow shell script. Don't cache a
Chris@39 14937 # value for INSTALL within a source directory, because that will
Chris@39 14938 # break other packages using the cache if that directory is
Chris@39 14939 # removed, or if the value is a relative name.
Chris@39 14940 INSTALL=$ac_install_sh
Chris@39 14941 fi
Chris@39 14942 fi
Chris@39 14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Chris@39 14944 $as_echo "$INSTALL" >&6; }
Chris@39 14945
Chris@39 14946 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
Chris@39 14947 # It thinks the first close brace ends the variable substitution.
Chris@39 14948 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Chris@39 14949
Chris@39 14950 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Chris@39 14951
Chris@39 14952 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Chris@39 14953
Chris@39 14954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Chris@39 14955 $as_echo_n "checking whether ln -s works... " >&6; }
Chris@39 14956 LN_S=$as_ln_s
Chris@39 14957 if test "$LN_S" = "ln -s"; then
Chris@39 14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@39 14959 $as_echo "yes" >&6; }
Chris@39 14960 else
Chris@39 14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Chris@39 14962 $as_echo "no, using $LN_S" >&6; }
Chris@39 14963 fi
Chris@39 14964
Chris@39 14965 # Extract the first word of "ar", so it can be a program name with args.
Chris@39 14966 set dummy ar; ac_word=$2
Chris@39 14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 14968 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 14969 if ${ac_cv_path_AR+:} false; then :
Chris@39 14970 $as_echo_n "(cached) " >&6
Chris@39 14971 else
Chris@39 14972 case $AR in
Chris@39 14973 [\\/]* | ?:[\\/]*)
Chris@39 14974 ac_cv_path_AR="$AR" # Let the user override the test with a path.
Chris@39 14975 ;;
Chris@39 14976 *)
Chris@39 14977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 14978 for as_dir in $PATH
Chris@39 14979 do
Chris@39 14980 IFS=$as_save_IFS
Chris@39 14981 test -z "$as_dir" && as_dir=.
Chris@39 14982 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 14983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 14984 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
Chris@39 14985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 14986 break 2
Chris@39 14987 fi
Chris@39 14988 done
Chris@39 14989 done
Chris@39 14990 IFS=$as_save_IFS
Chris@39 14991
Chris@39 14992 test -z "$ac_cv_path_AR" && ac_cv_path_AR="no"
Chris@39 14993 ;;
Chris@39 14994 esac
Chris@39 14995 fi
Chris@39 14996 AR=$ac_cv_path_AR
Chris@39 14997 if test -n "$AR"; then
Chris@39 14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Chris@39 14999 $as_echo "$AR" >&6; }
Chris@39 15000 else
Chris@39 15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 15002 $as_echo "no" >&6; }
Chris@39 15003 fi
Chris@39 15004
Chris@39 15005
Chris@39 15006 if [ $AR = "no" ] ; then
Chris@39 15007 as_fn_error $? "\"Could not find ar - needed to create a library\"" "$LINENO" 5
Chris@39 15008 fi
Chris@39 15009
Chris@39 15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Chris@39 15011 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Chris@39 15012 if ${ac_cv_c_bigendian+:} false; then :
Chris@39 15013 $as_echo_n "(cached) " >&6
Chris@39 15014 else
Chris@39 15015 ac_cv_c_bigendian=unknown
Chris@39 15016 # See if we're dealing with a universal compiler.
Chris@39 15017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 15018 /* end confdefs.h. */
Chris@39 15019 #ifndef __APPLE_CC__
Chris@39 15020 not a universal capable compiler
Chris@39 15021 #endif
Chris@39 15022 typedef int dummy;
Chris@39 15023
Chris@39 15024 _ACEOF
Chris@39 15025 if ac_fn_c_try_compile "$LINENO"; then :
Chris@39 15026
Chris@39 15027 # Check for potential -arch flags. It is not universal unless
Chris@39 15028 # there are at least two -arch flags with different values.
Chris@39 15029 ac_arch=
Chris@39 15030 ac_prev=
Chris@39 15031 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
Chris@39 15032 if test -n "$ac_prev"; then
Chris@39 15033 case $ac_word in
Chris@39 15034 i?86 | x86_64 | ppc | ppc64)
Chris@39 15035 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
Chris@39 15036 ac_arch=$ac_word
Chris@39 15037 else
Chris@39 15038 ac_cv_c_bigendian=universal
Chris@39 15039 break
Chris@39 15040 fi
Chris@39 15041 ;;
Chris@39 15042 esac
Chris@39 15043 ac_prev=
Chris@39 15044 elif test "x$ac_word" = "x-arch"; then
Chris@39 15045 ac_prev=arch
Chris@39 15046 fi
Chris@39 15047 done
Chris@39 15048 fi
Chris@39 15049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 15050 if test $ac_cv_c_bigendian = unknown; then
Chris@39 15051 # See if sys/param.h defines the BYTE_ORDER macro.
Chris@39 15052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 15053 /* end confdefs.h. */
Chris@39 15054 #include <sys/types.h>
Chris@39 15055 #include <sys/param.h>
Chris@39 15056
Chris@39 15057 int
Chris@39 15058 main ()
Chris@39 15059 {
Chris@39 15060 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
Chris@39 15061 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
Chris@39 15062 && LITTLE_ENDIAN)
Chris@39 15063 bogus endian macros
Chris@39 15064 #endif
Chris@39 15065
Chris@39 15066 ;
Chris@39 15067 return 0;
Chris@39 15068 }
Chris@39 15069 _ACEOF
Chris@39 15070 if ac_fn_c_try_compile "$LINENO"; then :
Chris@39 15071 # It does; now see whether it defined to BIG_ENDIAN or not.
Chris@39 15072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 15073 /* end confdefs.h. */
Chris@39 15074 #include <sys/types.h>
Chris@39 15075 #include <sys/param.h>
Chris@39 15076
Chris@39 15077 int
Chris@39 15078 main ()
Chris@39 15079 {
Chris@39 15080 #if BYTE_ORDER != BIG_ENDIAN
Chris@39 15081 not big endian
Chris@39 15082 #endif
Chris@39 15083
Chris@39 15084 ;
Chris@39 15085 return 0;
Chris@39 15086 }
Chris@39 15087 _ACEOF
Chris@39 15088 if ac_fn_c_try_compile "$LINENO"; then :
Chris@39 15089 ac_cv_c_bigendian=yes
Chris@39 15090 else
Chris@39 15091 ac_cv_c_bigendian=no
Chris@39 15092 fi
Chris@39 15093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 15094 fi
Chris@39 15095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 15096 fi
Chris@39 15097 if test $ac_cv_c_bigendian = unknown; then
Chris@39 15098 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Chris@39 15099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 15100 /* end confdefs.h. */
Chris@39 15101 #include <limits.h>
Chris@39 15102
Chris@39 15103 int
Chris@39 15104 main ()
Chris@39 15105 {
Chris@39 15106 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
Chris@39 15107 bogus endian macros
Chris@39 15108 #endif
Chris@39 15109
Chris@39 15110 ;
Chris@39 15111 return 0;
Chris@39 15112 }
Chris@39 15113 _ACEOF
Chris@39 15114 if ac_fn_c_try_compile "$LINENO"; then :
Chris@39 15115 # It does; now see whether it defined to _BIG_ENDIAN or not.
Chris@39 15116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 15117 /* end confdefs.h. */
Chris@39 15118 #include <limits.h>
Chris@39 15119
Chris@39 15120 int
Chris@39 15121 main ()
Chris@39 15122 {
Chris@39 15123 #ifndef _BIG_ENDIAN
Chris@39 15124 not big endian
Chris@39 15125 #endif
Chris@39 15126
Chris@39 15127 ;
Chris@39 15128 return 0;
Chris@39 15129 }
Chris@39 15130 _ACEOF
Chris@39 15131 if ac_fn_c_try_compile "$LINENO"; then :
Chris@39 15132 ac_cv_c_bigendian=yes
Chris@39 15133 else
Chris@39 15134 ac_cv_c_bigendian=no
Chris@39 15135 fi
Chris@39 15136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 15137 fi
Chris@39 15138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 15139 fi
Chris@39 15140 if test $ac_cv_c_bigendian = unknown; then
Chris@39 15141 # Compile a test program.
Chris@39 15142 if test "$cross_compiling" = yes; then :
Chris@39 15143 # Try to guess by grepping values from an object file.
Chris@39 15144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 15145 /* end confdefs.h. */
Chris@39 15146 short int ascii_mm[] =
Chris@39 15147 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
Chris@39 15148 short int ascii_ii[] =
Chris@39 15149 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Chris@39 15150 int use_ascii (int i) {
Chris@39 15151 return ascii_mm[i] + ascii_ii[i];
Chris@39 15152 }
Chris@39 15153 short int ebcdic_ii[] =
Chris@39 15154 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
Chris@39 15155 short int ebcdic_mm[] =
Chris@39 15156 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Chris@39 15157 int use_ebcdic (int i) {
Chris@39 15158 return ebcdic_mm[i] + ebcdic_ii[i];
Chris@39 15159 }
Chris@39 15160 extern int foo;
Chris@39 15161
Chris@39 15162 int
Chris@39 15163 main ()
Chris@39 15164 {
Chris@39 15165 return use_ascii (foo) == use_ebcdic (foo);
Chris@39 15166 ;
Chris@39 15167 return 0;
Chris@39 15168 }
Chris@39 15169 _ACEOF
Chris@39 15170 if ac_fn_c_try_compile "$LINENO"; then :
Chris@39 15171 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
Chris@39 15172 ac_cv_c_bigendian=yes
Chris@39 15173 fi
Chris@39 15174 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
Chris@39 15175 if test "$ac_cv_c_bigendian" = unknown; then
Chris@39 15176 ac_cv_c_bigendian=no
Chris@39 15177 else
Chris@39 15178 # finding both strings is unlikely to happen, but who knows?
Chris@39 15179 ac_cv_c_bigendian=unknown
Chris@39 15180 fi
Chris@39 15181 fi
Chris@39 15182 fi
Chris@39 15183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 15184 else
Chris@39 15185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 15186 /* end confdefs.h. */
Chris@39 15187 $ac_includes_default
Chris@39 15188 int
Chris@39 15189 main ()
Chris@39 15190 {
Chris@39 15191
Chris@39 15192 /* Are we little or big endian? From Harbison&Steele. */
Chris@39 15193 union
Chris@39 15194 {
Chris@39 15195 long int l;
Chris@39 15196 char c[sizeof (long int)];
Chris@39 15197 } u;
Chris@39 15198 u.l = 1;
Chris@39 15199 return u.c[sizeof (long int) - 1] == 1;
Chris@39 15200
Chris@39 15201 ;
Chris@39 15202 return 0;
Chris@39 15203 }
Chris@39 15204 _ACEOF
Chris@39 15205 if ac_fn_c_try_run "$LINENO"; then :
Chris@39 15206 ac_cv_c_bigendian=no
Chris@39 15207 else
Chris@39 15208 ac_cv_c_bigendian=yes
Chris@39 15209 fi
Chris@39 15210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@39 15211 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@39 15212 fi
Chris@39 15213
Chris@39 15214 fi
Chris@39 15215 fi
Chris@39 15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Chris@39 15217 $as_echo "$ac_cv_c_bigendian" >&6; }
Chris@39 15218 case $ac_cv_c_bigendian in #(
Chris@39 15219 yes)
Chris@39 15220 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Chris@39 15221 ;; #(
Chris@39 15222 no)
Chris@39 15223 ;; #(
Chris@39 15224 universal)
Chris@39 15225
Chris@39 15226 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Chris@39 15227
Chris@39 15228 ;; #(
Chris@39 15229 *)
Chris@39 15230 as_fn_error $? "unknown endianness
Chris@39 15231 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Chris@39 15232 esac
Chris@39 15233
Chris@39 15234
Chris@39 15235
Chris@39 15236 have_alsa=no
Chris@39 15237 if test "x$with_alsa" != "xno"; then
Chris@39 15238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
Chris@39 15239 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
Chris@39 15240 if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
Chris@39 15241 $as_echo_n "(cached) " >&6
Chris@39 15242 else
Chris@39 15243 ac_check_lib_save_LIBS=$LIBS
Chris@39 15244 LIBS="-lasound $LIBS"
Chris@39 15245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 15246 /* end confdefs.h. */
Chris@39 15247
Chris@39 15248 /* Override any GCC internal prototype to avoid an error.
Chris@39 15249 Use char because int might match the return type of a GCC
Chris@39 15250 builtin and then its argument prototype would still apply. */
Chris@39 15251 #ifdef __cplusplus
Chris@39 15252 extern "C"
Chris@39 15253 #endif
Chris@39 15254 char snd_pcm_open ();
Chris@39 15255 int
Chris@39 15256 main ()
Chris@39 15257 {
Chris@39 15258 return snd_pcm_open ();
Chris@39 15259 ;
Chris@39 15260 return 0;
Chris@39 15261 }
Chris@39 15262 _ACEOF
Chris@39 15263 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 15264 ac_cv_lib_asound_snd_pcm_open=yes
Chris@39 15265 else
Chris@39 15266 ac_cv_lib_asound_snd_pcm_open=no
Chris@39 15267 fi
Chris@39 15268 rm -f core conftest.err conftest.$ac_objext \
Chris@39 15269 conftest$ac_exeext conftest.$ac_ext
Chris@39 15270 LIBS=$ac_check_lib_save_LIBS
Chris@39 15271 fi
Chris@39 15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
Chris@39 15273 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
Chris@39 15274 if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
Chris@39 15275 have_alsa=yes
Chris@39 15276 else
Chris@39 15277 have_alsa=no
Chris@39 15278 fi
Chris@39 15279
Chris@39 15280 fi
Chris@39 15281 have_asihpi=no
Chris@39 15282 if test "x$with_asihpi" != "xno"; then
Chris@39 15283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HPI_SubSysCreate in -lhpi" >&5
Chris@39 15284 $as_echo_n "checking for HPI_SubSysCreate in -lhpi... " >&6; }
Chris@39 15285 if ${ac_cv_lib_hpi_HPI_SubSysCreate+:} false; then :
Chris@39 15286 $as_echo_n "(cached) " >&6
Chris@39 15287 else
Chris@39 15288 ac_check_lib_save_LIBS=$LIBS
Chris@39 15289 LIBS="-lhpi -lm $LIBS"
Chris@39 15290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 15291 /* end confdefs.h. */
Chris@39 15292
Chris@39 15293 /* Override any GCC internal prototype to avoid an error.
Chris@39 15294 Use char because int might match the return type of a GCC
Chris@39 15295 builtin and then its argument prototype would still apply. */
Chris@39 15296 #ifdef __cplusplus
Chris@39 15297 extern "C"
Chris@39 15298 #endif
Chris@39 15299 char HPI_SubSysCreate ();
Chris@39 15300 int
Chris@39 15301 main ()
Chris@39 15302 {
Chris@39 15303 return HPI_SubSysCreate ();
Chris@39 15304 ;
Chris@39 15305 return 0;
Chris@39 15306 }
Chris@39 15307 _ACEOF
Chris@39 15308 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 15309 ac_cv_lib_hpi_HPI_SubSysCreate=yes
Chris@39 15310 else
Chris@39 15311 ac_cv_lib_hpi_HPI_SubSysCreate=no
Chris@39 15312 fi
Chris@39 15313 rm -f core conftest.err conftest.$ac_objext \
Chris@39 15314 conftest$ac_exeext conftest.$ac_ext
Chris@39 15315 LIBS=$ac_check_lib_save_LIBS
Chris@39 15316 fi
Chris@39 15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hpi_HPI_SubSysCreate" >&5
Chris@39 15318 $as_echo "$ac_cv_lib_hpi_HPI_SubSysCreate" >&6; }
Chris@39 15319 if test "x$ac_cv_lib_hpi_HPI_SubSysCreate" = xyes; then :
Chris@39 15320 have_asihpi=yes
Chris@39 15321 else
Chris@39 15322 have_asihpi=no
Chris@39 15323 fi
Chris@39 15324
Chris@39 15325 fi
Chris@39 15326 have_libossaudio=no
Chris@39 15327 have_oss=no
Chris@39 15328 if test "x$with_oss" != "xno"; then
Chris@39 15329 for ac_header in sys/soundcard.h linux/soundcard.h machine/soundcard.h
Chris@39 15330 do :
Chris@39 15331 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Chris@39 15332 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Chris@39 15333 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@39 15334 cat >>confdefs.h <<_ACEOF
Chris@39 15335 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris@39 15336 _ACEOF
Chris@39 15337 have_oss=yes
Chris@39 15338 fi
Chris@39 15339
Chris@39 15340 done
Chris@39 15341
Chris@39 15342 if test "x$have_oss" = "xyes"; then
Chris@39 15343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
Chris@39 15344 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
Chris@39 15345 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
Chris@39 15346 $as_echo_n "(cached) " >&6
Chris@39 15347 else
Chris@39 15348 ac_check_lib_save_LIBS=$LIBS
Chris@39 15349 LIBS="-lossaudio $LIBS"
Chris@39 15350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 15351 /* end confdefs.h. */
Chris@39 15352
Chris@39 15353 /* Override any GCC internal prototype to avoid an error.
Chris@39 15354 Use char because int might match the return type of a GCC
Chris@39 15355 builtin and then its argument prototype would still apply. */
Chris@39 15356 #ifdef __cplusplus
Chris@39 15357 extern "C"
Chris@39 15358 #endif
Chris@39 15359 char _oss_ioctl ();
Chris@39 15360 int
Chris@39 15361 main ()
Chris@39 15362 {
Chris@39 15363 return _oss_ioctl ();
Chris@39 15364 ;
Chris@39 15365 return 0;
Chris@39 15366 }
Chris@39 15367 _ACEOF
Chris@39 15368 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 15369 ac_cv_lib_ossaudio__oss_ioctl=yes
Chris@39 15370 else
Chris@39 15371 ac_cv_lib_ossaudio__oss_ioctl=no
Chris@39 15372 fi
Chris@39 15373 rm -f core conftest.err conftest.$ac_objext \
Chris@39 15374 conftest$ac_exeext conftest.$ac_ext
Chris@39 15375 LIBS=$ac_check_lib_save_LIBS
Chris@39 15376 fi
Chris@39 15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
Chris@39 15378 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
Chris@39 15379 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
Chris@39 15380 have_libossaudio=yes
Chris@39 15381 else
Chris@39 15382 have_libossaudio=no
Chris@39 15383 fi
Chris@39 15384
Chris@39 15385 fi
Chris@39 15386 fi
Chris@39 15387 have_jack=no
Chris@39 15388 if test "x$with_jack" != "xno"; then
Chris@39 15389
Chris@39 15390
Chris@39 15391
Chris@39 15392
Chris@39 15393
Chris@39 15394
Chris@39 15395
Chris@39 15396 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Chris@39 15397 if test -n "$ac_tool_prefix"; then
Chris@39 15398 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
Chris@39 15399 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Chris@39 15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 15401 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 15402 if ${ac_cv_path_PKG_CONFIG+:} false; then :
Chris@39 15403 $as_echo_n "(cached) " >&6
Chris@39 15404 else
Chris@39 15405 case $PKG_CONFIG in
Chris@39 15406 [\\/]* | ?:[\\/]*)
Chris@39 15407 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
Chris@39 15408 ;;
Chris@39 15409 *)
Chris@39 15410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 15411 for as_dir in $PATH
Chris@39 15412 do
Chris@39 15413 IFS=$as_save_IFS
Chris@39 15414 test -z "$as_dir" && as_dir=.
Chris@39 15415 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 15416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 15417 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Chris@39 15418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 15419 break 2
Chris@39 15420 fi
Chris@39 15421 done
Chris@39 15422 done
Chris@39 15423 IFS=$as_save_IFS
Chris@39 15424
Chris@39 15425 ;;
Chris@39 15426 esac
Chris@39 15427 fi
Chris@39 15428 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
Chris@39 15429 if test -n "$PKG_CONFIG"; then
Chris@39 15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Chris@39 15431 $as_echo "$PKG_CONFIG" >&6; }
Chris@39 15432 else
Chris@39 15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 15434 $as_echo "no" >&6; }
Chris@39 15435 fi
Chris@39 15436
Chris@39 15437
Chris@39 15438 fi
Chris@39 15439 if test -z "$ac_cv_path_PKG_CONFIG"; then
Chris@39 15440 ac_pt_PKG_CONFIG=$PKG_CONFIG
Chris@39 15441 # Extract the first word of "pkg-config", so it can be a program name with args.
Chris@39 15442 set dummy pkg-config; ac_word=$2
Chris@39 15443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@39 15444 $as_echo_n "checking for $ac_word... " >&6; }
Chris@39 15445 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Chris@39 15446 $as_echo_n "(cached) " >&6
Chris@39 15447 else
Chris@39 15448 case $ac_pt_PKG_CONFIG in
Chris@39 15449 [\\/]* | ?:[\\/]*)
Chris@39 15450 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
Chris@39 15451 ;;
Chris@39 15452 *)
Chris@39 15453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 15454 for as_dir in $PATH
Chris@39 15455 do
Chris@39 15456 IFS=$as_save_IFS
Chris@39 15457 test -z "$as_dir" && as_dir=.
Chris@39 15458 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@39 15459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@39 15460 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Chris@39 15461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@39 15462 break 2
Chris@39 15463 fi
Chris@39 15464 done
Chris@39 15465 done
Chris@39 15466 IFS=$as_save_IFS
Chris@39 15467
Chris@39 15468 ;;
Chris@39 15469 esac
Chris@39 15470 fi
Chris@39 15471 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
Chris@39 15472 if test -n "$ac_pt_PKG_CONFIG"; then
Chris@39 15473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Chris@39 15474 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
Chris@39 15475 else
Chris@39 15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 15477 $as_echo "no" >&6; }
Chris@39 15478 fi
Chris@39 15479
Chris@39 15480 if test "x$ac_pt_PKG_CONFIG" = x; then
Chris@39 15481 PKG_CONFIG=""
Chris@39 15482 else
Chris@39 15483 case $cross_compiling:$ac_tool_warned in
Chris@39 15484 yes:)
Chris@39 15485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@39 15486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@39 15487 ac_tool_warned=yes ;;
Chris@39 15488 esac
Chris@39 15489 PKG_CONFIG=$ac_pt_PKG_CONFIG
Chris@39 15490 fi
Chris@39 15491 else
Chris@39 15492 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
Chris@39 15493 fi
Chris@39 15494
Chris@39 15495 fi
Chris@39 15496 if test -n "$PKG_CONFIG"; then
Chris@39 15497 _pkg_min_version=0.9.0
Chris@39 15498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
Chris@39 15499 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Chris@39 15500 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Chris@39 15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@39 15502 $as_echo "yes" >&6; }
Chris@39 15503 else
Chris@39 15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 15505 $as_echo "no" >&6; }
Chris@39 15506 PKG_CONFIG=""
Chris@39 15507 fi
Chris@39 15508 fi
Chris@39 15509
Chris@39 15510 pkg_failed=no
Chris@39 15511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
Chris@39 15512 $as_echo_n "checking for JACK... " >&6; }
Chris@39 15513
Chris@39 15514 if test -n "$JACK_CFLAGS"; then
Chris@39 15515 pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
Chris@39 15516 elif test -n "$PKG_CONFIG"; then
Chris@39 15517 if test -n "$PKG_CONFIG" && \
Chris@39 15518 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack\""; } >&5
Chris@39 15519 ($PKG_CONFIG --exists --print-errors "jack") 2>&5
Chris@39 15520 ac_status=$?
Chris@39 15521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 15522 test $ac_status = 0; }; then
Chris@39 15523 pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack" 2>/dev/null`
Chris@39 15524 test "x$?" != "x0" && pkg_failed=yes
Chris@39 15525 else
Chris@39 15526 pkg_failed=yes
Chris@39 15527 fi
Chris@39 15528 else
Chris@39 15529 pkg_failed=untried
Chris@39 15530 fi
Chris@39 15531 if test -n "$JACK_LIBS"; then
Chris@39 15532 pkg_cv_JACK_LIBS="$JACK_LIBS"
Chris@39 15533 elif test -n "$PKG_CONFIG"; then
Chris@39 15534 if test -n "$PKG_CONFIG" && \
Chris@39 15535 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack\""; } >&5
Chris@39 15536 ($PKG_CONFIG --exists --print-errors "jack") 2>&5
Chris@39 15537 ac_status=$?
Chris@39 15538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@39 15539 test $ac_status = 0; }; then
Chris@39 15540 pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack" 2>/dev/null`
Chris@39 15541 test "x$?" != "x0" && pkg_failed=yes
Chris@39 15542 else
Chris@39 15543 pkg_failed=yes
Chris@39 15544 fi
Chris@39 15545 else
Chris@39 15546 pkg_failed=untried
Chris@39 15547 fi
Chris@39 15548
Chris@39 15549
Chris@39 15550
Chris@39 15551 if test $pkg_failed = yes; then
Chris@39 15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 15553 $as_echo "no" >&6; }
Chris@39 15554
Chris@39 15555 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@39 15556 _pkg_short_errors_supported=yes
Chris@39 15557 else
Chris@39 15558 _pkg_short_errors_supported=no
Chris@39 15559 fi
Chris@39 15560 if test $_pkg_short_errors_supported = yes; then
Chris@39 15561 JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack" 2>&1`
Chris@39 15562 else
Chris@39 15563 JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack" 2>&1`
Chris@39 15564 fi
Chris@39 15565 # Put the nasty error message in config.log where it belongs
Chris@39 15566 echo "$JACK_PKG_ERRORS" >&5
Chris@39 15567
Chris@39 15568 have_jack=no
Chris@39 15569 elif test $pkg_failed = untried; then
Chris@39 15570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@39 15571 $as_echo "no" >&6; }
Chris@39 15572 have_jack=no
Chris@39 15573 else
Chris@39 15574 JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
Chris@39 15575 JACK_LIBS=$pkg_cv_JACK_LIBS
Chris@39 15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@39 15577 $as_echo "yes" >&6; }
Chris@39 15578 have_jack=yes
Chris@39 15579 fi
Chris@39 15580 fi
Chris@39 15581
Chris@39 15582
Chris@39 15583
Chris@39 15584 # The cast to long int works around a bug in the HP C Compiler
Chris@39 15585 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@39 15586 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@39 15587 # This bug is HP SR number 8606223364.
Chris@39 15588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Chris@39 15589 $as_echo_n "checking size of short... " >&6; }
Chris@39 15590 if ${ac_cv_sizeof_short+:} false; then :
Chris@39 15591 $as_echo_n "(cached) " >&6
Chris@39 15592 else
Chris@39 15593 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
Chris@39 15594
Chris@39 15595 else
Chris@39 15596 if test "$ac_cv_type_short" = yes; then
Chris@39 15597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@39 15598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@39 15599 as_fn_error 77 "cannot compute sizeof (short)
Chris@39 15600 See \`config.log' for more details" "$LINENO" 5; }
Chris@39 15601 else
Chris@39 15602 ac_cv_sizeof_short=0
Chris@39 15603 fi
Chris@39 15604 fi
Chris@39 15605
Chris@39 15606 fi
Chris@39 15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Chris@39 15608 $as_echo "$ac_cv_sizeof_short" >&6; }
Chris@39 15609
Chris@39 15610
Chris@39 15611
Chris@39 15612 cat >>confdefs.h <<_ACEOF
Chris@39 15613 #define SIZEOF_SHORT $ac_cv_sizeof_short
Chris@39 15614 _ACEOF
Chris@39 15615
Chris@39 15616
Chris@39 15617 # The cast to long int works around a bug in the HP C Compiler
Chris@39 15618 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@39 15619 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@39 15620 # This bug is HP SR number 8606223364.
Chris@39 15621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Chris@39 15622 $as_echo_n "checking size of int... " >&6; }
Chris@39 15623 if ${ac_cv_sizeof_int+:} false; then :
Chris@39 15624 $as_echo_n "(cached) " >&6
Chris@39 15625 else
Chris@39 15626 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
Chris@39 15627
Chris@39 15628 else
Chris@39 15629 if test "$ac_cv_type_int" = yes; then
Chris@39 15630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@39 15631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@39 15632 as_fn_error 77 "cannot compute sizeof (int)
Chris@39 15633 See \`config.log' for more details" "$LINENO" 5; }
Chris@39 15634 else
Chris@39 15635 ac_cv_sizeof_int=0
Chris@39 15636 fi
Chris@39 15637 fi
Chris@39 15638
Chris@39 15639 fi
Chris@39 15640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Chris@39 15641 $as_echo "$ac_cv_sizeof_int" >&6; }
Chris@39 15642
Chris@39 15643
Chris@39 15644
Chris@39 15645 cat >>confdefs.h <<_ACEOF
Chris@39 15646 #define SIZEOF_INT $ac_cv_sizeof_int
Chris@39 15647 _ACEOF
Chris@39 15648
Chris@39 15649
Chris@39 15650 # The cast to long int works around a bug in the HP C Compiler
Chris@39 15651 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@39 15652 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@39 15653 # This bug is HP SR number 8606223364.
Chris@39 15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Chris@39 15655 $as_echo_n "checking size of long... " >&6; }
Chris@39 15656 if ${ac_cv_sizeof_long+:} false; then :
Chris@39 15657 $as_echo_n "(cached) " >&6
Chris@39 15658 else
Chris@39 15659 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
Chris@39 15660
Chris@39 15661 else
Chris@39 15662 if test "$ac_cv_type_long" = yes; then
Chris@39 15663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@39 15664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@39 15665 as_fn_error 77 "cannot compute sizeof (long)
Chris@39 15666 See \`config.log' for more details" "$LINENO" 5; }
Chris@39 15667 else
Chris@39 15668 ac_cv_sizeof_long=0
Chris@39 15669 fi
Chris@39 15670 fi
Chris@39 15671
Chris@39 15672 fi
Chris@39 15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Chris@39 15674 $as_echo "$ac_cv_sizeof_long" >&6; }
Chris@39 15675
Chris@39 15676
Chris@39 15677
Chris@39 15678 cat >>confdefs.h <<_ACEOF
Chris@39 15679 #define SIZEOF_LONG $ac_cv_sizeof_long
Chris@39 15680 _ACEOF
Chris@39 15681
Chris@39 15682
Chris@39 15683
Chris@39 15684 save_LIBS="${LIBS}"
Chris@39 15685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
Chris@39 15686 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
Chris@39 15687 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
Chris@39 15688 $as_echo_n "(cached) " >&6
Chris@39 15689 else
Chris@39 15690 ac_check_lib_save_LIBS=$LIBS
Chris@39 15691 LIBS="-lrt $LIBS"
Chris@39 15692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 15693 /* end confdefs.h. */
Chris@39 15694
Chris@39 15695 /* Override any GCC internal prototype to avoid an error.
Chris@39 15696 Use char because int might match the return type of a GCC
Chris@39 15697 builtin and then its argument prototype would still apply. */
Chris@39 15698 #ifdef __cplusplus
Chris@39 15699 extern "C"
Chris@39 15700 #endif
Chris@39 15701 char clock_gettime ();
Chris@39 15702 int
Chris@39 15703 main ()
Chris@39 15704 {
Chris@39 15705 return clock_gettime ();
Chris@39 15706 ;
Chris@39 15707 return 0;
Chris@39 15708 }
Chris@39 15709 _ACEOF
Chris@39 15710 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 15711 ac_cv_lib_rt_clock_gettime=yes
Chris@39 15712 else
Chris@39 15713 ac_cv_lib_rt_clock_gettime=no
Chris@39 15714 fi
Chris@39 15715 rm -f core conftest.err conftest.$ac_objext \
Chris@39 15716 conftest$ac_exeext conftest.$ac_ext
Chris@39 15717 LIBS=$ac_check_lib_save_LIBS
Chris@39 15718 fi
Chris@39 15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
Chris@39 15720 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
Chris@39 15721 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
Chris@39 15722 rt_libs=" -lrt"
Chris@39 15723 fi
Chris@39 15724
Chris@39 15725 LIBS="${LIBS}${rt_libs}"
Chris@39 15726 DLL_LIBS="${DLL_LIBS}${rt_libs}"
Chris@39 15727 for ac_func in clock_gettime nanosleep
Chris@39 15728 do :
Chris@39 15729 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Chris@39 15730 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Chris@39 15731 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Chris@39 15732 cat >>confdefs.h <<_ACEOF
Chris@39 15733 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Chris@39 15734 _ACEOF
Chris@39 15735
Chris@39 15736 fi
Chris@39 15737 done
Chris@39 15738
Chris@39 15739 LIBS="${save_LIBS}"
Chris@39 15740
Chris@39 15741 LT_CURRENT=2
Chris@39 15742 LT_REVISION=0
Chris@39 15743 LT_AGE=0
Chris@39 15744
Chris@39 15745
Chris@39 15746
Chris@39 15747
Chris@39 15748
Chris@39 15749
Chris@39 15750
Chris@39 15751
Chris@39 15752
Chris@39 15753
Chris@39 15754
Chris@39 15755
Chris@39 15756
Chris@39 15757
Chris@39 15758
Chris@39 15759 if ( echo "${host_os}" | grep ^darwin >> /dev/null ) &&
Chris@39 15760 [ "$enable_mac_universal" = "yes" ] &&
Chris@39 15761 [ "$enable_mac_debug" != "yes" ] ; then
Chris@39 15762 CFLAGS="-O2 -Wall -pedantic -pipe -fPIC -DNDEBUG"
Chris@39 15763 else
Chris@39 15764 CFLAGS=${CFLAGS:-"-g -O2 -Wall -pedantic -pipe -fPIC"}
Chris@39 15765 fi
Chris@39 15766
Chris@39 15767 if [ $ac_cv_c_bigendian = "yes" ] ; then
Chris@39 15768 CFLAGS="$CFLAGS -DPA_BIG_ENDIAN"
Chris@39 15769 else
Chris@39 15770 CFLAGS="$CFLAGS -DPA_LITTLE_ENDIAN"
Chris@39 15771 fi
Chris@39 15772
Chris@39 15773 add_objects()
Chris@39 15774 {
Chris@39 15775 for o in $@; do
Chris@39 15776 test "${OTHER_OBJS#*${o}*}" = "${OTHER_OBJS}" && OTHER_OBJS="$OTHER_OBJS $o"
Chris@39 15777 done
Chris@39 15778 }
Chris@39 15779
Chris@39 15780 INCLUDES=portaudio.h
Chris@39 15781
Chris@39 15782 CFLAGS="$CFLAGS -I\$(top_srcdir)/include -I\$(top_srcdir)/src/common"
Chris@39 15783
Chris@39 15784 case "${host_os}" in
Chris@39 15785 darwin* )
Chris@39 15786
Chris@39 15787 $as_echo "#define PA_USE_COREAUDIO 1" >>confdefs.h
Chris@39 15788
Chris@39 15789
Chris@39 15790 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/unix -Werror"
Chris@39 15791 LIBS="-framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon"
Chris@39 15792
Chris@39 15793 if test "x$enable_mac_universal" = "xyes" ; then
Chris@39 15794 case `xcodebuild -version | sed -n 's/Xcode \(.*\)/\1/p'` in
Chris@39 15795
Chris@39 15796 12*|3.0|3.1)
Chris@39 15797 if [ -d /Developer/SDKs/MacOSX10.5.sdk ] ; then
Chris@39 15798 mac_version_min="-mmacosx-version-min=10.3"
Chris@39 15799 mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.5.sdk"
Chris@39 15800 else
Chris@39 15801 mac_version_min="-mmacosx-version-min=10.3"
Chris@39 15802 mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
Chris@39 15803 fi
Chris@39 15804 ;;
Chris@39 15805
Chris@39 15806 *)
Chris@39 15807 if xcodebuild -version -sdk macosx10.5 Path >/dev/null 2>&1 ; then
Chris@39 15808 mac_version_min="-mmacosx-version-min=10.3"
Chris@39 15809 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.5 Path`"
Chris@39 15810 elif xcodebuild -version -sdk macosx10.6 Path >/dev/null 2>&1 ; then
Chris@39 15811 mac_version_min="-mmacosx-version-min=10.4"
Chris@39 15812 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.6 Path`"
Chris@39 15813 elif xcodebuild -version -sdk macosx10.7 Path >/dev/null 2>&1 ; then
Chris@39 15814 mac_version_min="-mmacosx-version-min=10.4"
Chris@39 15815 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.7 Path`"
Chris@39 15816 elif xcodebuild -version -sdk macosx10.8 Path >/dev/null 2>&1 ; then
Chris@39 15817 mac_version_min="-mmacosx-version-min=10.4"
Chris@39 15818 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.8 Path`"
Chris@39 15819 elif xcodebuild -version -sdk macosx10.9 Path >/dev/null 2>&1 ; then
Chris@39 15820 mac_version_min="-mmacosx-version-min=10.4"
Chris@39 15821 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.9 Path`"
Chris@39 15822 else
Chris@39 15823 as_fn_error $? "Couldn't find 10.5, 10.6, 10.7, 10.8 or 10.9 SDK" "$LINENO" 5
Chris@39 15824 fi
Chris@39 15825 esac
Chris@39 15826
Chris@39 15827 mac_arches=""
Chris@39 15828 for arch in i386 x86_64 ppc ppc64
Chris@39 15829 do
Chris@39 15830 save_CFLAGS="$CFLAGS"
Chris@39 15831 CFLAGS="$CFLAGS -arch $arch"
Chris@39 15832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 15833 /* end confdefs.h. */
Chris@39 15834
Chris@39 15835 int
Chris@39 15836 main ()
Chris@39 15837 {
Chris@39 15838 return 0;
Chris@39 15839 ;
Chris@39 15840 return 0;
Chris@39 15841 }
Chris@39 15842 _ACEOF
Chris@39 15843 if ac_fn_c_try_compile "$LINENO"; then :
Chris@39 15844
Chris@39 15845 if [ -z "$mac_arches" ] ; then
Chris@39 15846 mac_arches="-arch $arch"
Chris@39 15847 else
Chris@39 15848 mac_arches="$mac_arches -arch $arch"
Chris@39 15849 fi
Chris@39 15850
Chris@39 15851 fi
Chris@39 15852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@39 15853 CFLAGS="$save_CFLAGS"
Chris@39 15854 done
Chris@39 15855 else
Chris@39 15856 mac_arches=""
Chris@39 15857 mac_sysroot=""
Chris@39 15858 mac_version=""
Chris@39 15859 fi
Chris@39 15860 SHARED_FLAGS="$LIBS -dynamiclib $mac_arches $mac_sysroot $mac_version_min"
Chris@39 15861 CFLAGS="-std=c99 $CFLAGS $mac_arches $mac_sysroot $mac_version_min"
Chris@39 15862 OTHER_OBJS="src/os/unix/pa_unix_hostapis.o src/os/unix/pa_unix_util.o src/hostapi/coreaudio/pa_mac_core.o src/hostapi/coreaudio/pa_mac_core_utilities.o src/hostapi/coreaudio/pa_mac_core_blocking.o src/common/pa_ringbuffer.o"
Chris@39 15863 PADLL="libportaudio.dylib"
Chris@39 15864 ;;
Chris@39 15865
Chris@39 15866 mingw* )
Chris@39 15867
Chris@39 15868 PADLL="portaudio.dll"
Chris@39 15869 THREAD_CFLAGS="-mthreads"
Chris@39 15870 SHARED_FLAGS="-shared"
Chris@39 15871 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/win -DPA_USE_WMME=0 -DPA_USE_ASIO=0 -DPA_USE_WDMKS=0 -DPA_USE_DS=0 -DPA_USE_WASAPI=0"
Chris@39 15872
Chris@39 15873 if [ "x$with_directx" = "xyes" ]; then
Chris@39 15874 DXDIR="$with_dxdir"
Chris@39 15875 add_objects src/hostapi/dsound/pa_win_ds.o src/hostapi/dsound/pa_win_ds_dynlink.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_coinitialize.o src/os/win/pa_win_waveformat.o
Chris@39 15876 LIBS="${LIBS} -lwinmm -lm -ldsound -lole32"
Chris@39 15877 DLL_LIBS="${DLL_LIBS} -lwinmm -lm -L$DXDIR/lib -ldsound -lole32"
Chris@39 15878 #VC98="\"/c/Program Files/Microsoft Visual Studio/VC98/Include\""
Chris@39 15879 #CFLAGS="$CFLAGS -I$VC98 -DPA_NO_WMME -DPA_NO_ASIO"
Chris@39 15880 CFLAGS="$CFLAGS -I$DXDIR/include -UPA_USE_DS -DPA_USE_DS=1"
Chris@39 15881 fi
Chris@39 15882
Chris@39 15883 if [ "x$with_asio" = "xyes" ]; then
Chris@39 15884 ASIODIR="$with_asiodir"
Chris@39 15885 add_objects src/hostapi/asio/pa_asio.o src/common/pa_ringbuffer.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_coinitialize.o src/hostapi/asio/iasiothiscallresolver.o $ASIODIR/common/asio.o $ASIODIR/host/asiodrivers.o $ASIODIR/host/pc/asiolist.o
Chris@39 15886 LIBS="${LIBS} -lwinmm -lm -lole32 -luuid"
Chris@39 15887 DLL_LIBS="${DLL_LIBS} -lwinmm -lm -lole32 -luuid"
Chris@39 15888 CFLAGS="$CFLAGS -ffast-math -fomit-frame-pointer -I\$(top_srcdir)/src/hostapi/asio -I$ASIODIR/host/pc -I$ASIODIR/common -I$ASIODIR/host -UPA_USE_ASIO -DPA_USE_ASIO=1 -DWINDOWS"
Chris@39 15889
Chris@39 15890 CFLAGS="$CFLAGS -D_WIN32_WINNT=0x0501 -DWINVER=0x0501"
Chris@39 15891
Chris@39 15892 CXXFLAGS="$CFLAGS"
Chris@39 15893 fi
Chris@39 15894
Chris@39 15895 if [ "x$with_wdmks" = "xyes" ]; then
Chris@39 15896 DXDIR="$with_dxdir"
Chris@39 15897 add_objects src/hostapi/wdmks/pa_win_wdmks.o src/common/pa_ringbuffer.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_wdmks_util.o src/os/win/pa_win_waveformat.o
Chris@39 15898 LIBS="${LIBS} -lwinmm -lm -luuid -lsetupapi -lole32"
Chris@39 15899 DLL_LIBS="${DLL_LIBS} -lwinmm -lm -L$DXDIR/lib -luuid -lsetupapi -lole32"
Chris@39 15900 #VC98="\"/c/Program Files/Microsoft Visual Studio/VC98/Include\""
Chris@39 15901 #CFLAGS="$CFLAGS -I$VC98 -DPA_NO_WMME -DPA_NO_ASIO"
Chris@39 15902 CFLAGS="$CFLAGS -I$DXDIR/include -UPA_USE_WDMKS -DPA_USE_WDMKS=1"
Chris@39 15903 fi
Chris@39 15904
Chris@39 15905 if [ "x$with_wmme" = "xyes" ]; then
Chris@39 15906 add_objects src/hostapi/wmme/pa_win_wmme.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_waveformat.o
Chris@39 15907 LIBS="${LIBS} -lwinmm -lm -lole32 -luuid"
Chris@39 15908 DLL_LIBS="${DLL_LIBS} -lwinmm"
Chris@39 15909 CFLAGS="$CFLAGS -UPA_USE_WMME -DPA_USE_WMME=1"
Chris@39 15910 fi
Chris@39 15911
Chris@39 15912 if [ "x$with_wasapi" = "xyes" ]; then
Chris@39 15913 add_objects src/hostapi/wasapi/pa_win_wasapi.o src/common/pa_ringbuffer.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_coinitialize.o src/os/win/pa_win_waveformat.o
Chris@39 15914 LIBS="${LIBS} -lwinmm -lm -lole32 -luuid"
Chris@39 15915 DLL_LIBS="${DLL_LIBS} -lwinmm -lole32"
Chris@39 15916 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/hostapi/wasapi/mingw-include -UPA_USE_WASAPI -DPA_USE_WASAPI=1"
Chris@39 15917 fi
Chris@39 15918 ;;
Chris@39 15919
Chris@39 15920 cygwin* )
Chris@39 15921
Chris@39 15922 OTHER_OBJS="src/hostapi/wmme/pa_win_wmme.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_waveformat.o"
Chris@39 15923 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/win -DPA_USE_DS=0 -DPA_USE_WDMKS=0 -DPA_USE_ASIO=0 -DPA_USE_WASAPI=0 -DPA_USE_WMME=1"
Chris@39 15924 LIBS="-lwinmm -lm"
Chris@39 15925 PADLL="portaudio.dll"
Chris@39 15926 THREAD_CFLAGS="-mthreads"
Chris@39 15927 SHARED_FLAGS="-shared"
Chris@39 15928 DLL_LIBS="${DLL_LIBS} -lwinmm"
Chris@39 15929 ;;
Chris@39 15930
Chris@39 15931 irix* )
Chris@39 15932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
Chris@39 15933 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
Chris@39 15934 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
Chris@39 15935 $as_echo_n "(cached) " >&6
Chris@39 15936 else
Chris@39 15937 ac_check_lib_save_LIBS=$LIBS
Chris@39 15938 LIBS="-lpthread $LIBS"
Chris@39 15939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 15940 /* end confdefs.h. */
Chris@39 15941
Chris@39 15942 /* Override any GCC internal prototype to avoid an error.
Chris@39 15943 Use char because int might match the return type of a GCC
Chris@39 15944 builtin and then its argument prototype would still apply. */
Chris@39 15945 #ifdef __cplusplus
Chris@39 15946 extern "C"
Chris@39 15947 #endif
Chris@39 15948 char pthread_create ();
Chris@39 15949 int
Chris@39 15950 main ()
Chris@39 15951 {
Chris@39 15952 return pthread_create ();
Chris@39 15953 ;
Chris@39 15954 return 0;
Chris@39 15955 }
Chris@39 15956 _ACEOF
Chris@39 15957 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 15958 ac_cv_lib_pthread_pthread_create=yes
Chris@39 15959 else
Chris@39 15960 ac_cv_lib_pthread_pthread_create=no
Chris@39 15961 fi
Chris@39 15962 rm -f core conftest.err conftest.$ac_objext \
Chris@39 15963 conftest$ac_exeext conftest.$ac_ext
Chris@39 15964 LIBS=$ac_check_lib_save_LIBS
Chris@39 15965 fi
Chris@39 15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
Chris@39 15967 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
Chris@39 15968 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
Chris@39 15969 cat >>confdefs.h <<_ACEOF
Chris@39 15970 #define HAVE_LIBPTHREAD 1
Chris@39 15971 _ACEOF
Chris@39 15972
Chris@39 15973 LIBS="-lpthread $LIBS"
Chris@39 15974
Chris@39 15975 else
Chris@39 15976 as_fn_error $? "IRIX posix thread library not found!" "$LINENO" 5
Chris@39 15977 fi
Chris@39 15978
Chris@39 15979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alOpenPort in -laudio" >&5
Chris@39 15980 $as_echo_n "checking for alOpenPort in -laudio... " >&6; }
Chris@39 15981 if ${ac_cv_lib_audio_alOpenPort+:} false; then :
Chris@39 15982 $as_echo_n "(cached) " >&6
Chris@39 15983 else
Chris@39 15984 ac_check_lib_save_LIBS=$LIBS
Chris@39 15985 LIBS="-laudio $LIBS"
Chris@39 15986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 15987 /* end confdefs.h. */
Chris@39 15988
Chris@39 15989 /* Override any GCC internal prototype to avoid an error.
Chris@39 15990 Use char because int might match the return type of a GCC
Chris@39 15991 builtin and then its argument prototype would still apply. */
Chris@39 15992 #ifdef __cplusplus
Chris@39 15993 extern "C"
Chris@39 15994 #endif
Chris@39 15995 char alOpenPort ();
Chris@39 15996 int
Chris@39 15997 main ()
Chris@39 15998 {
Chris@39 15999 return alOpenPort ();
Chris@39 16000 ;
Chris@39 16001 return 0;
Chris@39 16002 }
Chris@39 16003 _ACEOF
Chris@39 16004 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 16005 ac_cv_lib_audio_alOpenPort=yes
Chris@39 16006 else
Chris@39 16007 ac_cv_lib_audio_alOpenPort=no
Chris@39 16008 fi
Chris@39 16009 rm -f core conftest.err conftest.$ac_objext \
Chris@39 16010 conftest$ac_exeext conftest.$ac_ext
Chris@39 16011 LIBS=$ac_check_lib_save_LIBS
Chris@39 16012 fi
Chris@39 16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_alOpenPort" >&5
Chris@39 16014 $as_echo "$ac_cv_lib_audio_alOpenPort" >&6; }
Chris@39 16015 if test "x$ac_cv_lib_audio_alOpenPort" = xyes; then :
Chris@39 16016 cat >>confdefs.h <<_ACEOF
Chris@39 16017 #define HAVE_LIBAUDIO 1
Chris@39 16018 _ACEOF
Chris@39 16019
Chris@39 16020 LIBS="-laudio $LIBS"
Chris@39 16021
Chris@39 16022 else
Chris@39 16023 as_fn_error $? "IRIX audio library not found!" "$LINENO" 5
Chris@39 16024 fi
Chris@39 16025
Chris@39 16026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmGetUST in -ldmedia" >&5
Chris@39 16027 $as_echo_n "checking for dmGetUST in -ldmedia... " >&6; }
Chris@39 16028 if ${ac_cv_lib_dmedia_dmGetUST+:} false; then :
Chris@39 16029 $as_echo_n "(cached) " >&6
Chris@39 16030 else
Chris@39 16031 ac_check_lib_save_LIBS=$LIBS
Chris@39 16032 LIBS="-ldmedia $LIBS"
Chris@39 16033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 16034 /* end confdefs.h. */
Chris@39 16035
Chris@39 16036 /* Override any GCC internal prototype to avoid an error.
Chris@39 16037 Use char because int might match the return type of a GCC
Chris@39 16038 builtin and then its argument prototype would still apply. */
Chris@39 16039 #ifdef __cplusplus
Chris@39 16040 extern "C"
Chris@39 16041 #endif
Chris@39 16042 char dmGetUST ();
Chris@39 16043 int
Chris@39 16044 main ()
Chris@39 16045 {
Chris@39 16046 return dmGetUST ();
Chris@39 16047 ;
Chris@39 16048 return 0;
Chris@39 16049 }
Chris@39 16050 _ACEOF
Chris@39 16051 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 16052 ac_cv_lib_dmedia_dmGetUST=yes
Chris@39 16053 else
Chris@39 16054 ac_cv_lib_dmedia_dmGetUST=no
Chris@39 16055 fi
Chris@39 16056 rm -f core conftest.err conftest.$ac_objext \
Chris@39 16057 conftest$ac_exeext conftest.$ac_ext
Chris@39 16058 LIBS=$ac_check_lib_save_LIBS
Chris@39 16059 fi
Chris@39 16060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmedia_dmGetUST" >&5
Chris@39 16061 $as_echo "$ac_cv_lib_dmedia_dmGetUST" >&6; }
Chris@39 16062 if test "x$ac_cv_lib_dmedia_dmGetUST" = xyes; then :
Chris@39 16063 cat >>confdefs.h <<_ACEOF
Chris@39 16064 #define HAVE_LIBDMEDIA 1
Chris@39 16065 _ACEOF
Chris@39 16066
Chris@39 16067 LIBS="-ldmedia $LIBS"
Chris@39 16068
Chris@39 16069 else
Chris@39 16070 as_fn_error $? "IRIX digital media library not found!" "$LINENO" 5
Chris@39 16071 fi
Chris@39 16072
Chris@39 16073
Chris@39 16074 $as_echo "#define PA_USE_SGI 1" >>confdefs.h
Chris@39 16075
Chris@39 16076
Chris@39 16077 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/unix"
Chris@39 16078
Chris@39 16079 THREAD_CFLAGS="-D_REENTRANT"
Chris@39 16080
Chris@39 16081 OTHER_OBJS="pa_sgi/pa_sgi.o src/os/unix/pa_unix_hostapis.o src/os/unix/pa_unix_util.o"
Chris@39 16082
Chris@39 16083 LIBS="-lm -ldmedia -laudio -lpthread"
Chris@39 16084 PADLL="libportaudio.so"
Chris@39 16085 SHARED_FLAGS=""
Chris@39 16086 ;;
Chris@39 16087
Chris@39 16088 *)
Chris@39 16089
Chris@39 16090 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/unix"
Chris@39 16091
Chris@39 16092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
Chris@39 16093 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
Chris@39 16094 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
Chris@39 16095 $as_echo_n "(cached) " >&6
Chris@39 16096 else
Chris@39 16097 ac_check_lib_save_LIBS=$LIBS
Chris@39 16098 LIBS="-lpthread $LIBS"
Chris@39 16099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@39 16100 /* end confdefs.h. */
Chris@39 16101
Chris@39 16102 /* Override any GCC internal prototype to avoid an error.
Chris@39 16103 Use char because int might match the return type of a GCC
Chris@39 16104 builtin and then its argument prototype would still apply. */
Chris@39 16105 #ifdef __cplusplus
Chris@39 16106 extern "C"
Chris@39 16107 #endif
Chris@39 16108 char pthread_create ();
Chris@39 16109 int
Chris@39 16110 main ()
Chris@39 16111 {
Chris@39 16112 return pthread_create ();
Chris@39 16113 ;
Chris@39 16114 return 0;
Chris@39 16115 }
Chris@39 16116 _ACEOF
Chris@39 16117 if ac_fn_c_try_link "$LINENO"; then :
Chris@39 16118 ac_cv_lib_pthread_pthread_create=yes
Chris@39 16119 else
Chris@39 16120 ac_cv_lib_pthread_pthread_create=no
Chris@39 16121 fi
Chris@39 16122 rm -f core conftest.err conftest.$ac_objext \
Chris@39 16123 conftest$ac_exeext conftest.$ac_ext
Chris@39 16124 LIBS=$ac_check_lib_save_LIBS
Chris@39 16125 fi
Chris@39 16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
Chris@39 16127 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
Chris@39 16128 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
Chris@39 16129 have_pthread="yes"
Chris@39 16130 else
Chris@39 16131 as_fn_error $? "libpthread not found!" "$LINENO" 5
Chris@39 16132 fi
Chris@39 16133
Chris@39 16134
Chris@39 16135 if [ "$have_alsa" = "yes" ] && [ "$with_alsa" != "no" ] ; then
Chris@39 16136 DLL_LIBS="$DLL_LIBS -lasound"
Chris@39 16137 LIBS="$LIBS -lasound"
Chris@39 16138 OTHER_OBJS="$OTHER_OBJS src/hostapi/alsa/pa_linux_alsa.o"
Chris@39 16139 INCLUDES="$INCLUDES pa_linux_alsa.h"
Chris@39 16140 $as_echo "#define PA_USE_ALSA 1" >>confdefs.h
Chris@39 16141
Chris@39 16142 fi
Chris@39 16143
Chris@39 16144 if [ "$have_jack" = "yes" ] && [ "$with_jack" != "no" ] ; then
Chris@39 16145 DLL_LIBS="$DLL_LIBS $JACK_LIBS"
Chris@39 16146 CFLAGS="$CFLAGS $JACK_CFLAGS"
Chris@39 16147 OTHER_OBJS="$OTHER_OBJS src/hostapi/jack/pa_jack.o src/common/pa_ringbuffer.o"
Chris@39 16148 INCLUDES="$INCLUDES pa_jack.h"
Chris@39 16149 $as_echo "#define PA_USE_JACK 1" >>confdefs.h
Chris@39 16150
Chris@39 16151 fi
Chris@39 16152
Chris@39 16153 if [ "$with_oss" != "no" ] ; then
Chris@39 16154 OTHER_OBJS="$OTHER_OBJS src/hostapi/oss/pa_unix_oss.o"
Chris@39 16155 if [ "$have_libossaudio" = "yes" ] ; then
Chris@39 16156 DLL_LIBS="$DLL_LIBS -lossaudio"
Chris@39 16157 LIBS="$LIBS -lossaudio"
Chris@39 16158 fi
Chris@39 16159 $as_echo "#define PA_USE_OSS 1" >>confdefs.h
Chris@39 16160
Chris@39 16161 fi
Chris@39 16162
Chris@39 16163 if [ "$have_asihpi" = "yes" ] && [ "$with_asihpi" != "no" ] ; then
Chris@39 16164 LIBS="$LIBS -lhpi"
Chris@39 16165 DLL_LIBS="$DLL_LIBS -lhpi"
Chris@39 16166 OTHER_OBJS="$OTHER_OBJS src/hostapi/asihpi/pa_linux_asihpi.o"
Chris@39 16167 $as_echo "#define PA_USE_ASIHPI 1" >>confdefs.h
Chris@39 16168
Chris@39 16169 fi
Chris@39 16170
Chris@39 16171 DLL_LIBS="$DLL_LIBS -lm -lpthread"
Chris@39 16172 LIBS="$LIBS -lm -lpthread"
Chris@39 16173 PADLL="libportaudio.so"
Chris@39 16174
Chris@39 16175 ## support sun cc compiler flags
Chris@39 16176 case "${host_os}" in
Chris@39 16177 solaris*)
Chris@39 16178 SHARED_FLAGS="-G"
Chris@39 16179 THREAD_CFLAGS="-mt"
Chris@39 16180 ;;
Chris@39 16181 *)
Chris@39 16182 SHARED_FLAGS="-fPIC"
Chris@39 16183 THREAD_CFLAGS="-pthread"
Chris@39 16184 ;;
Chris@39 16185 esac
Chris@39 16186
Chris@39 16187 OTHER_OBJS="$OTHER_OBJS src/os/unix/pa_unix_hostapis.o src/os/unix/pa_unix_util.o"
Chris@39 16188 esac
Chris@39 16189 CFLAGS="$CFLAGS $THREAD_CFLAGS"
Chris@39 16190
Chris@39 16191 test "$enable_shared" != "yes" && SHARED_FLAGS=""
Chris@39 16192
Chris@39 16193 if test "$enable_cxx" = "yes"; then
Chris@39 16194
Chris@39 16195
Chris@39 16196 subdirs="$subdirs bindings/cpp"
Chris@39 16197
Chris@39 16198 ENABLE_CXX_TRUE=""
Chris@39 16199 ENABLE_CXX_FALSE="#"
Chris@39 16200 else
Chris@39 16201 ENABLE_CXX_TRUE="#"
Chris@39 16202 ENABLE_CXX_FALSE=""
Chris@39 16203 fi
Chris@39 16204
Chris@39 16205
Chris@39 16206
Chris@39 16207 if test "x$with_asio" = "xyes"; then
Chris@39 16208 WITH_ASIO_TRUE=""
Chris@39 16209 WITH_ASIO_FALSE="@ #"
Chris@39 16210 else
Chris@39 16211 WITH_ASIO_TRUE="@ #"
Chris@39 16212 WITH_ASIO_FALSE=""
Chris@39 16213 fi
Chris@39 16214
Chris@39 16215
Chris@39 16216
Chris@39 16217 ac_config_files="$ac_config_files Makefile portaudio-2.0.pc"
Chris@39 16218
Chris@39 16219 cat >confcache <<\_ACEOF
Chris@39 16220 # This file is a shell script that caches the results of configure
Chris@39 16221 # tests run on this system so they can be shared between configure
Chris@39 16222 # scripts and configure runs, see configure's option --config-cache.
Chris@39 16223 # It is not useful on other systems. If it contains results you don't
Chris@39 16224 # want to keep, you may remove or edit it.
Chris@39 16225 #
Chris@39 16226 # config.status only pays attention to the cache file if you give it
Chris@39 16227 # the --recheck option to rerun configure.
Chris@39 16228 #
Chris@39 16229 # `ac_cv_env_foo' variables (set or unset) will be overridden when
Chris@39 16230 # loading this file, other *unset* `ac_cv_foo' will be assigned the
Chris@39 16231 # following values.
Chris@39 16232
Chris@39 16233 _ACEOF
Chris@39 16234
Chris@39 16235 # The following way of writing the cache mishandles newlines in values,
Chris@39 16236 # but we know of no workaround that is simple, portable, and efficient.
Chris@39 16237 # So, we kill variables containing newlines.
Chris@39 16238 # Ultrix sh set writes to stderr and can't be redirected directly,
Chris@39 16239 # and sets the high bit in the cache file unless we assign to the vars.
Chris@39 16240 (
Chris@39 16241 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
Chris@39 16242 eval ac_val=\$$ac_var
Chris@39 16243 case $ac_val in #(
Chris@39 16244 *${as_nl}*)
Chris@39 16245 case $ac_var in #(
Chris@39 16246 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Chris@39 16247 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Chris@39 16248 esac
Chris@39 16249 case $ac_var in #(
Chris@39 16250 _ | IFS | as_nl) ;; #(
Chris@39 16251 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Chris@39 16252 *) { eval $ac_var=; unset $ac_var;} ;;
Chris@39 16253 esac ;;
Chris@39 16254 esac
Chris@39 16255 done
Chris@39 16256
Chris@39 16257 (set) 2>&1 |
Chris@39 16258 case $as_nl`(ac_space=' '; set) 2>&1` in #(
Chris@39 16259 *${as_nl}ac_space=\ *)
Chris@39 16260 # `set' does not quote correctly, so add quotes: double-quote
Chris@39 16261 # substitution turns \\\\ into \\, and sed turns \\ into \.
Chris@39 16262 sed -n \
Chris@39 16263 "s/'/'\\\\''/g;
Chris@39 16264 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Chris@39 16265 ;; #(
Chris@39 16266 *)
Chris@39 16267 # `set' quotes correctly as required by POSIX, so do not add quotes.
Chris@39 16268 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Chris@39 16269 ;;
Chris@39 16270 esac |
Chris@39 16271 sort
Chris@39 16272 ) |
Chris@39 16273 sed '
Chris@39 16274 /^ac_cv_env_/b end
Chris@39 16275 t clear
Chris@39 16276 :clear
Chris@39 16277 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
Chris@39 16278 t end
Chris@39 16279 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
Chris@39 16280 :end' >>confcache
Chris@39 16281 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
Chris@39 16282 if test -w "$cache_file"; then
Chris@39 16283 if test "x$cache_file" != "x/dev/null"; then
Chris@39 16284 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Chris@39 16285 $as_echo "$as_me: updating cache $cache_file" >&6;}
Chris@39 16286 if test ! -f "$cache_file" || test -h "$cache_file"; then
Chris@39 16287 cat confcache >"$cache_file"
Chris@39 16288 else
Chris@39 16289 case $cache_file in #(
Chris@39 16290 */* | ?:*)
Chris@39 16291 mv -f confcache "$cache_file"$$ &&
Chris@39 16292 mv -f "$cache_file"$$ "$cache_file" ;; #(
Chris@39 16293 *)
Chris@39 16294 mv -f confcache "$cache_file" ;;
Chris@39 16295 esac
Chris@39 16296 fi
Chris@39 16297 fi
Chris@39 16298 else
Chris@39 16299 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Chris@39 16300 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Chris@39 16301 fi
Chris@39 16302 fi
Chris@39 16303 rm -f confcache
Chris@39 16304
Chris@39 16305 test "x$prefix" = xNONE && prefix=$ac_default_prefix
Chris@39 16306 # Let make expand exec_prefix.
Chris@39 16307 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
Chris@39 16308
Chris@39 16309 # Transform confdefs.h into DEFS.
Chris@39 16310 # Protect against shell expansion while executing Makefile rules.
Chris@39 16311 # Protect against Makefile macro expansion.
Chris@39 16312 #
Chris@39 16313 # If the first sed substitution is executed (which looks for macros that
Chris@39 16314 # take arguments), then branch to the quote section. Otherwise,
Chris@39 16315 # look for a macro that doesn't take arguments.
Chris@39 16316 ac_script='
Chris@39 16317 :mline
Chris@39 16318 /\\$/{
Chris@39 16319 N
Chris@39 16320 s,\\\n,,
Chris@39 16321 b mline
Chris@39 16322 }
Chris@39 16323 t clear
Chris@39 16324 :clear
Chris@39 16325 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Chris@39 16326 t quote
Chris@39 16327 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Chris@39 16328 t quote
Chris@39 16329 b any
Chris@39 16330 :quote
Chris@39 16331 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
Chris@39 16332 s/\[/\\&/g
Chris@39 16333 s/\]/\\&/g
Chris@39 16334 s/\$/$$/g
Chris@39 16335 H
Chris@39 16336 :any
Chris@39 16337 ${
Chris@39 16338 g
Chris@39 16339 s/^\n//
Chris@39 16340 s/\n/ /g
Chris@39 16341 p
Chris@39 16342 }
Chris@39 16343 '
Chris@39 16344 DEFS=`sed -n "$ac_script" confdefs.h`
Chris@39 16345
Chris@39 16346
Chris@39 16347 ac_libobjs=
Chris@39 16348 ac_ltlibobjs=
Chris@39 16349 U=
Chris@39 16350 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
Chris@39 16351 # 1. Remove the extension, and $U if already installed.
Chris@39 16352 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Chris@39 16353 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Chris@39 16354 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
Chris@39 16355 # will be set to the directory where LIBOBJS objects are built.
Chris@39 16356 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
Chris@39 16357 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Chris@39 16358 done
Chris@39 16359 LIBOBJS=$ac_libobjs
Chris@39 16360
Chris@39 16361 LTLIBOBJS=$ac_ltlibobjs
Chris@39 16362
Chris@39 16363
Chris@39 16364
Chris@39 16365
Chris@39 16366 : "${CONFIG_STATUS=./config.status}"
Chris@39 16367 ac_write_fail=0
Chris@39 16368 ac_clean_files_save=$ac_clean_files
Chris@39 16369 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Chris@39 16370 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Chris@39 16371 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Chris@39 16372 as_write_fail=0
Chris@39 16373 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Chris@39 16374 #! $SHELL
Chris@39 16375 # Generated by $as_me.
Chris@39 16376 # Run this file to recreate the current configuration.
Chris@39 16377 # Compiler output produced by configure, useful for debugging
Chris@39 16378 # configure, is in config.log if it exists.
Chris@39 16379
Chris@39 16380 debug=false
Chris@39 16381 ac_cs_recheck=false
Chris@39 16382 ac_cs_silent=false
Chris@39 16383
Chris@39 16384 SHELL=\${CONFIG_SHELL-$SHELL}
Chris@39 16385 export SHELL
Chris@39 16386 _ASEOF
Chris@39 16387 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
Chris@39 16388 ## -------------------- ##
Chris@39 16389 ## M4sh Initialization. ##
Chris@39 16390 ## -------------------- ##
Chris@39 16391
Chris@39 16392 # Be more Bourne compatible
Chris@39 16393 DUALCASE=1; export DUALCASE # for MKS sh
Chris@39 16394 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Chris@39 16395 emulate sh
Chris@39 16396 NULLCMD=:
Chris@39 16397 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Chris@39 16398 # is contrary to our usage. Disable this feature.
Chris@39 16399 alias -g '${1+"$@"}'='"$@"'
Chris@39 16400 setopt NO_GLOB_SUBST
Chris@39 16401 else
Chris@39 16402 case `(set -o) 2>/dev/null` in #(
Chris@39 16403 *posix*) :
Chris@39 16404 set -o posix ;; #(
Chris@39 16405 *) :
Chris@39 16406 ;;
Chris@39 16407 esac
Chris@39 16408 fi
Chris@39 16409
Chris@39 16410
Chris@39 16411 as_nl='
Chris@39 16412 '
Chris@39 16413 export as_nl
Chris@39 16414 # Printing a long string crashes Solaris 7 /usr/bin/printf.
Chris@39 16415 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@39 16416 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@39 16417 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@39 16418 # Prefer a ksh shell builtin over an external printf program on Solaris,
Chris@39 16419 # but without wasting forks for bash or zsh.
Chris@39 16420 if test -z "$BASH_VERSION$ZSH_VERSION" \
Chris@39 16421 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@39 16422 as_echo='print -r --'
Chris@39 16423 as_echo_n='print -rn --'
Chris@39 16424 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@39 16425 as_echo='printf %s\n'
Chris@39 16426 as_echo_n='printf %s'
Chris@39 16427 else
Chris@39 16428 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
Chris@39 16429 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
Chris@39 16430 as_echo_n='/usr/ucb/echo -n'
Chris@39 16431 else
Chris@39 16432 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
Chris@39 16433 as_echo_n_body='eval
Chris@39 16434 arg=$1;
Chris@39 16435 case $arg in #(
Chris@39 16436 *"$as_nl"*)
Chris@39 16437 expr "X$arg" : "X\\(.*\\)$as_nl";
Chris@39 16438 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
Chris@39 16439 esac;
Chris@39 16440 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
Chris@39 16441 '
Chris@39 16442 export as_echo_n_body
Chris@39 16443 as_echo_n='sh -c $as_echo_n_body as_echo'
Chris@39 16444 fi
Chris@39 16445 export as_echo_body
Chris@39 16446 as_echo='sh -c $as_echo_body as_echo'
Chris@39 16447 fi
Chris@39 16448
Chris@39 16449 # The user is always right.
Chris@39 16450 if test "${PATH_SEPARATOR+set}" != set; then
Chris@39 16451 PATH_SEPARATOR=:
Chris@39 16452 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
Chris@39 16453 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
Chris@39 16454 PATH_SEPARATOR=';'
Chris@39 16455 }
Chris@39 16456 fi
Chris@39 16457
Chris@39 16458
Chris@39 16459 # IFS
Chris@39 16460 # We need space, tab and new line, in precisely that order. Quoting is
Chris@39 16461 # there to prevent editors from complaining about space-tab.
Chris@39 16462 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
Chris@39 16463 # splitting by setting IFS to empty value.)
Chris@39 16464 IFS=" "" $as_nl"
Chris@39 16465
Chris@39 16466 # Find who we are. Look in the path if we contain no directory separator.
Chris@39 16467 as_myself=
Chris@39 16468 case $0 in #((
Chris@39 16469 *[\\/]* ) as_myself=$0 ;;
Chris@39 16470 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@39 16471 for as_dir in $PATH
Chris@39 16472 do
Chris@39 16473 IFS=$as_save_IFS
Chris@39 16474 test -z "$as_dir" && as_dir=.
Chris@39 16475 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
Chris@39 16476 done
Chris@39 16477 IFS=$as_save_IFS
Chris@39 16478
Chris@39 16479 ;;
Chris@39 16480 esac
Chris@39 16481 # We did not find ourselves, most probably we were run as `sh COMMAND'
Chris@39 16482 # in which case we are not to be found in the path.
Chris@39 16483 if test "x$as_myself" = x; then
Chris@39 16484 as_myself=$0
Chris@39 16485 fi
Chris@39 16486 if test ! -f "$as_myself"; then
Chris@39 16487 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Chris@39 16488 exit 1
Chris@39 16489 fi
Chris@39 16490
Chris@39 16491 # Unset variables that we do not need and which cause bugs (e.g. in
Chris@39 16492 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
Chris@39 16493 # suppresses any "Segmentation fault" message there. '((' could
Chris@39 16494 # trigger a bug in pdksh 5.2.14.
Chris@39 16495 for as_var in BASH_ENV ENV MAIL MAILPATH
Chris@39 16496 do eval test x\${$as_var+set} = xset \
Chris@39 16497 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Chris@39 16498 done
Chris@39 16499 PS1='$ '
Chris@39 16500 PS2='> '
Chris@39 16501 PS4='+ '
Chris@39 16502
Chris@39 16503 # NLS nuisances.
Chris@39 16504 LC_ALL=C
Chris@39 16505 export LC_ALL
Chris@39 16506 LANGUAGE=C
Chris@39 16507 export LANGUAGE
Chris@39 16508
Chris@39 16509 # CDPATH.
Chris@39 16510 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@39 16511
Chris@39 16512
Chris@39 16513 # as_fn_error STATUS ERROR [LINENO LOG_FD]
Chris@39 16514 # ----------------------------------------
Chris@39 16515 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
Chris@39 16516 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Chris@39 16517 # script with STATUS, using 1 if that was 0.
Chris@39 16518 as_fn_error ()
Chris@39 16519 {
Chris@39 16520 as_status=$1; test $as_status -eq 0 && as_status=1
Chris@39 16521 if test "$4"; then
Chris@39 16522 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@39 16523 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Chris@39 16524 fi
Chris@39 16525 $as_echo "$as_me: error: $2" >&2
Chris@39 16526 as_fn_exit $as_status
Chris@39 16527 } # as_fn_error
Chris@39 16528
Chris@39 16529
Chris@39 16530 # as_fn_set_status STATUS
Chris@39 16531 # -----------------------
Chris@39 16532 # Set $? to STATUS, without forking.
Chris@39 16533 as_fn_set_status ()
Chris@39 16534 {
Chris@39 16535 return $1
Chris@39 16536 } # as_fn_set_status
Chris@39 16537
Chris@39 16538 # as_fn_exit STATUS
Chris@39 16539 # -----------------
Chris@39 16540 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
Chris@39 16541 as_fn_exit ()
Chris@39 16542 {
Chris@39 16543 set +e
Chris@39 16544 as_fn_set_status $1
Chris@39 16545 exit $1
Chris@39 16546 } # as_fn_exit
Chris@39 16547
Chris@39 16548 # as_fn_unset VAR
Chris@39 16549 # ---------------
Chris@39 16550 # Portably unset VAR.
Chris@39 16551 as_fn_unset ()
Chris@39 16552 {
Chris@39 16553 { eval $1=; unset $1;}
Chris@39 16554 }
Chris@39 16555 as_unset=as_fn_unset
Chris@39 16556 # as_fn_append VAR VALUE
Chris@39 16557 # ----------------------
Chris@39 16558 # Append the text in VALUE to the end of the definition contained in VAR. Take
Chris@39 16559 # advantage of any shell optimizations that allow amortized linear growth over
Chris@39 16560 # repeated appends, instead of the typical quadratic growth present in naive
Chris@39 16561 # implementations.
Chris@39 16562 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
Chris@39 16563 eval 'as_fn_append ()
Chris@39 16564 {
Chris@39 16565 eval $1+=\$2
Chris@39 16566 }'
Chris@39 16567 else
Chris@39 16568 as_fn_append ()
Chris@39 16569 {
Chris@39 16570 eval $1=\$$1\$2
Chris@39 16571 }
Chris@39 16572 fi # as_fn_append
Chris@39 16573
Chris@39 16574 # as_fn_arith ARG...
Chris@39 16575 # ------------------
Chris@39 16576 # Perform arithmetic evaluation on the ARGs, and store the result in the
Chris@39 16577 # global $as_val. Take advantage of shells that can avoid forks. The arguments
Chris@39 16578 # must be portable across $(()) and expr.
Chris@39 16579 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
Chris@39 16580 eval 'as_fn_arith ()
Chris@39 16581 {
Chris@39 16582 as_val=$(( $* ))
Chris@39 16583 }'
Chris@39 16584 else
Chris@39 16585 as_fn_arith ()
Chris@39 16586 {
Chris@39 16587 as_val=`expr "$@" || test $? -eq 1`
Chris@39 16588 }
Chris@39 16589 fi # as_fn_arith
Chris@39 16590
Chris@39 16591
Chris@39 16592 if expr a : '\(a\)' >/dev/null 2>&1 &&
Chris@39 16593 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Chris@39 16594 as_expr=expr
Chris@39 16595 else
Chris@39 16596 as_expr=false
Chris@39 16597 fi
Chris@39 16598
Chris@39 16599 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Chris@39 16600 as_basename=basename
Chris@39 16601 else
Chris@39 16602 as_basename=false
Chris@39 16603 fi
Chris@39 16604
Chris@39 16605 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
Chris@39 16606 as_dirname=dirname
Chris@39 16607 else
Chris@39 16608 as_dirname=false
Chris@39 16609 fi
Chris@39 16610
Chris@39 16611 as_me=`$as_basename -- "$0" ||
Chris@39 16612 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
Chris@39 16613 X"$0" : 'X\(//\)$' \| \
Chris@39 16614 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Chris@39 16615 $as_echo X/"$0" |
Chris@39 16616 sed '/^.*\/\([^/][^/]*\)\/*$/{
Chris@39 16617 s//\1/
Chris@39 16618 q
Chris@39 16619 }
Chris@39 16620 /^X\/\(\/\/\)$/{
Chris@39 16621 s//\1/
Chris@39 16622 q
Chris@39 16623 }
Chris@39 16624 /^X\/\(\/\).*/{
Chris@39 16625 s//\1/
Chris@39 16626 q
Chris@39 16627 }
Chris@39 16628 s/.*/./; q'`
Chris@39 16629
Chris@39 16630 # Avoid depending upon Character Ranges.
Chris@39 16631 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
Chris@39 16632 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
Chris@39 16633 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
Chris@39 16634 as_cr_digits='0123456789'
Chris@39 16635 as_cr_alnum=$as_cr_Letters$as_cr_digits
Chris@39 16636
Chris@39 16637 ECHO_C= ECHO_N= ECHO_T=
Chris@39 16638 case `echo -n x` in #(((((
Chris@39 16639 -n*)
Chris@39 16640 case `echo 'xy\c'` in
Chris@39 16641 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Chris@39 16642 xy) ECHO_C='\c';;
Chris@39 16643 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
Chris@39 16644 ECHO_T=' ';;
Chris@39 16645 esac;;
Chris@39 16646 *)
Chris@39 16647 ECHO_N='-n';;
Chris@39 16648 esac
Chris@39 16649
Chris@39 16650 rm -f conf$$ conf$$.exe conf$$.file
Chris@39 16651 if test -d conf$$.dir; then
Chris@39 16652 rm -f conf$$.dir/conf$$.file
Chris@39 16653 else
Chris@39 16654 rm -f conf$$.dir
Chris@39 16655 mkdir conf$$.dir 2>/dev/null
Chris@39 16656 fi
Chris@39 16657 if (echo >conf$$.file) 2>/dev/null; then
Chris@39 16658 if ln -s conf$$.file conf$$ 2>/dev/null; then
Chris@39 16659 as_ln_s='ln -s'
Chris@39 16660 # ... but there are two gotchas:
Chris@39 16661 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
Chris@39 16662 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Chris@39 16663 # In both cases, we have to default to `cp -pR'.
Chris@39 16664 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Chris@39 16665 as_ln_s='cp -pR'
Chris@39 16666 elif ln conf$$.file conf$$ 2>/dev/null; then
Chris@39 16667 as_ln_s=ln
Chris@39 16668 else
Chris@39 16669 as_ln_s='cp -pR'
Chris@39 16670 fi
Chris@39 16671 else
Chris@39 16672 as_ln_s='cp -pR'
Chris@39 16673 fi
Chris@39 16674 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
Chris@39 16675 rmdir conf$$.dir 2>/dev/null
Chris@39 16676
Chris@39 16677
Chris@39 16678 # as_fn_mkdir_p
Chris@39 16679 # -------------
Chris@39 16680 # Create "$as_dir" as a directory, including parents if necessary.
Chris@39 16681 as_fn_mkdir_p ()
Chris@39 16682 {
Chris@39 16683
Chris@39 16684 case $as_dir in #(
Chris@39 16685 -*) as_dir=./$as_dir;;
Chris@39 16686 esac
Chris@39 16687 test -d "$as_dir" || eval $as_mkdir_p || {
Chris@39 16688 as_dirs=
Chris@39 16689 while :; do
Chris@39 16690 case $as_dir in #(
Chris@39 16691 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Chris@39 16692 *) as_qdir=$as_dir;;
Chris@39 16693 esac
Chris@39 16694 as_dirs="'$as_qdir' $as_dirs"
Chris@39 16695 as_dir=`$as_dirname -- "$as_dir" ||
Chris@39 16696 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@39 16697 X"$as_dir" : 'X\(//\)[^/]' \| \
Chris@39 16698 X"$as_dir" : 'X\(//\)$' \| \
Chris@39 16699 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Chris@39 16700 $as_echo X"$as_dir" |
Chris@39 16701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@39 16702 s//\1/
Chris@39 16703 q
Chris@39 16704 }
Chris@39 16705 /^X\(\/\/\)[^/].*/{
Chris@39 16706 s//\1/
Chris@39 16707 q
Chris@39 16708 }
Chris@39 16709 /^X\(\/\/\)$/{
Chris@39 16710 s//\1/
Chris@39 16711 q
Chris@39 16712 }
Chris@39 16713 /^X\(\/\).*/{
Chris@39 16714 s//\1/
Chris@39 16715 q
Chris@39 16716 }
Chris@39 16717 s/.*/./; q'`
Chris@39 16718 test -d "$as_dir" && break
Chris@39 16719 done
Chris@39 16720 test -z "$as_dirs" || eval "mkdir $as_dirs"
Chris@39 16721 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Chris@39 16722
Chris@39 16723
Chris@39 16724 } # as_fn_mkdir_p
Chris@39 16725 if mkdir -p . 2>/dev/null; then
Chris@39 16726 as_mkdir_p='mkdir -p "$as_dir"'
Chris@39 16727 else
Chris@39 16728 test -d ./-p && rmdir ./-p
Chris@39 16729 as_mkdir_p=false
Chris@39 16730 fi
Chris@39 16731
Chris@39 16732
Chris@39 16733 # as_fn_executable_p FILE
Chris@39 16734 # -----------------------
Chris@39 16735 # Test if FILE is an executable regular file.
Chris@39 16736 as_fn_executable_p ()
Chris@39 16737 {
Chris@39 16738 test -f "$1" && test -x "$1"
Chris@39 16739 } # as_fn_executable_p
Chris@39 16740 as_test_x='test -x'
Chris@39 16741 as_executable_p=as_fn_executable_p
Chris@39 16742
Chris@39 16743 # Sed expression to map a string onto a valid CPP name.
Chris@39 16744 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Chris@39 16745
Chris@39 16746 # Sed expression to map a string onto a valid variable name.
Chris@39 16747 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Chris@39 16748
Chris@39 16749
Chris@39 16750 exec 6>&1
Chris@39 16751 ## ----------------------------------- ##
Chris@39 16752 ## Main body of $CONFIG_STATUS script. ##
Chris@39 16753 ## ----------------------------------- ##
Chris@39 16754 _ASEOF
Chris@39 16755 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Chris@39 16756
Chris@39 16757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@39 16758 # Save the log message, to keep $0 and so on meaningful, and to
Chris@39 16759 # report actual input values of CONFIG_FILES etc. instead of their
Chris@39 16760 # values after options handling.
Chris@39 16761 ac_log="
Chris@39 16762 This file was extended by $as_me, which was
Chris@39 16763 generated by GNU Autoconf 2.69. Invocation command line was
Chris@39 16764
Chris@39 16765 CONFIG_FILES = $CONFIG_FILES
Chris@39 16766 CONFIG_HEADERS = $CONFIG_HEADERS
Chris@39 16767 CONFIG_LINKS = $CONFIG_LINKS
Chris@39 16768 CONFIG_COMMANDS = $CONFIG_COMMANDS
Chris@39 16769 $ $0 $@
Chris@39 16770
Chris@39 16771 on `(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@39 16772 "
Chris@39 16773
Chris@39 16774 _ACEOF
Chris@39 16775
Chris@39 16776 case $ac_config_files in *"
Chris@39 16777 "*) set x $ac_config_files; shift; ac_config_files=$*;;
Chris@39 16778 esac
Chris@39 16779
Chris@39 16780
Chris@39 16781
Chris@39 16782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@39 16783 # Files that config.status was made for.
Chris@39 16784 config_files="$ac_config_files"
Chris@39 16785 config_commands="$ac_config_commands"
Chris@39 16786
Chris@39 16787 _ACEOF
Chris@39 16788
Chris@39 16789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@39 16790 ac_cs_usage="\
Chris@39 16791 \`$as_me' instantiates files and other configuration actions
Chris@39 16792 from templates according to the current configuration. Unless the files
Chris@39 16793 and actions are specified as TAGs, all are instantiated by default.
Chris@39 16794
Chris@39 16795 Usage: $0 [OPTION]... [TAG]...
Chris@39 16796
Chris@39 16797 -h, --help print this help, then exit
Chris@39 16798 -V, --version print version number and configuration settings, then exit
Chris@39 16799 --config print configuration, then exit
Chris@39 16800 -q, --quiet, --silent
Chris@39 16801 do not print progress messages
Chris@39 16802 -d, --debug don't remove temporary files
Chris@39 16803 --recheck update $as_me by reconfiguring in the same conditions
Chris@39 16804 --file=FILE[:TEMPLATE]
Chris@39 16805 instantiate the configuration file FILE
Chris@39 16806
Chris@39 16807 Configuration files:
Chris@39 16808 $config_files
Chris@39 16809
Chris@39 16810 Configuration commands:
Chris@39 16811 $config_commands
Chris@39 16812
Chris@39 16813 Report bugs to the package provider."
Chris@39 16814
Chris@39 16815 _ACEOF
Chris@39 16816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@39 16817 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Chris@39 16818 ac_cs_version="\\
Chris@39 16819 config.status
Chris@39 16820 configured by $0, generated by GNU Autoconf 2.69,
Chris@39 16821 with options \\"\$ac_cs_config\\"
Chris@39 16822
Chris@39 16823 Copyright (C) 2012 Free Software Foundation, Inc.
Chris@39 16824 This config.status script is free software; the Free Software Foundation
Chris@39 16825 gives unlimited permission to copy, distribute and modify it."
Chris@39 16826
Chris@39 16827 ac_pwd='$ac_pwd'
Chris@39 16828 srcdir='$srcdir'
Chris@39 16829 INSTALL='$INSTALL'
Chris@39 16830 AWK='$AWK'
Chris@39 16831 test -n "\$AWK" || AWK=awk
Chris@39 16832 _ACEOF
Chris@39 16833
Chris@39 16834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@39 16835 # The default lists apply if the user does not specify any file.
Chris@39 16836 ac_need_defaults=:
Chris@39 16837 while test $# != 0
Chris@39 16838 do
Chris@39 16839 case $1 in
Chris@39 16840 --*=?*)
Chris@39 16841 ac_option=`expr "X$1" : 'X\([^=]*\)='`
Chris@39 16842 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Chris@39 16843 ac_shift=:
Chris@39 16844 ;;
Chris@39 16845 --*=)
Chris@39 16846 ac_option=`expr "X$1" : 'X\([^=]*\)='`
Chris@39 16847 ac_optarg=
Chris@39 16848 ac_shift=:
Chris@39 16849 ;;
Chris@39 16850 *)
Chris@39 16851 ac_option=$1
Chris@39 16852 ac_optarg=$2
Chris@39 16853 ac_shift=shift
Chris@39 16854 ;;
Chris@39 16855 esac
Chris@39 16856
Chris@39 16857 case $ac_option in
Chris@39 16858 # Handling of the options.
Chris@39 16859 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Chris@39 16860 ac_cs_recheck=: ;;
Chris@39 16861 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Chris@39 16862 $as_echo "$ac_cs_version"; exit ;;
Chris@39 16863 --config | --confi | --conf | --con | --co | --c )
Chris@39 16864 $as_echo "$ac_cs_config"; exit ;;
Chris@39 16865 --debug | --debu | --deb | --de | --d | -d )
Chris@39 16866 debug=: ;;
Chris@39 16867 --file | --fil | --fi | --f )
Chris@39 16868 $ac_shift
Chris@39 16869 case $ac_optarg in
Chris@39 16870 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@39 16871 '') as_fn_error $? "missing file argument" ;;
Chris@39 16872 esac
Chris@39 16873 as_fn_append CONFIG_FILES " '$ac_optarg'"
Chris@39 16874 ac_need_defaults=false;;
Chris@39 16875 --he | --h | --help | --hel | -h )
Chris@39 16876 $as_echo "$ac_cs_usage"; exit ;;
Chris@39 16877 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@39 16878 | -silent | --silent | --silen | --sile | --sil | --si | --s)
Chris@39 16879 ac_cs_silent=: ;;
Chris@39 16880
Chris@39 16881 # This is an error.
Chris@39 16882 -*) as_fn_error $? "unrecognized option: \`$1'
Chris@39 16883 Try \`$0 --help' for more information." ;;
Chris@39 16884
Chris@39 16885 *) as_fn_append ac_config_targets " $1"
Chris@39 16886 ac_need_defaults=false ;;
Chris@39 16887
Chris@39 16888 esac
Chris@39 16889 shift
Chris@39 16890 done
Chris@39 16891
Chris@39 16892 ac_configure_extra_args=
Chris@39 16893
Chris@39 16894 if $ac_cs_silent; then
Chris@39 16895 exec 6>/dev/null
Chris@39 16896 ac_configure_extra_args="$ac_configure_extra_args --silent"
Chris@39 16897 fi
Chris@39 16898
Chris@39 16899 _ACEOF
Chris@39 16900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@39 16901 if \$ac_cs_recheck; then
Chris@39 16902 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Chris@39 16903 shift
Chris@39 16904 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
Chris@39 16905 CONFIG_SHELL='$SHELL'
Chris@39 16906 export CONFIG_SHELL
Chris@39 16907 exec "\$@"
Chris@39 16908 fi
Chris@39 16909
Chris@39 16910 _ACEOF
Chris@39 16911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@39 16912 exec 5>>config.log
Chris@39 16913 {
Chris@39 16914 echo
Chris@39 16915 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
Chris@39 16916 ## Running $as_me. ##
Chris@39 16917 _ASBOX
Chris@39 16918 $as_echo "$ac_log"
Chris@39 16919 } >&5
Chris@39 16920
Chris@39 16921 _ACEOF
Chris@39 16922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@39 16923 #
Chris@39 16924 # INIT-COMMANDS
Chris@39 16925 #
Chris@39 16926
Chris@39 16927
Chris@39 16928 # The HP-UX ksh and POSIX shell print the target directory to stdout
Chris@39 16929 # if CDPATH is set.
Chris@39 16930 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@39 16931
Chris@39 16932 sed_quote_subst='$sed_quote_subst'
Chris@39 16933 double_quote_subst='$double_quote_subst'
Chris@39 16934 delay_variable_subst='$delay_variable_subst'
Chris@39 16935 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
Chris@39 16936 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
Chris@39 16937 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
Chris@39 16938 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
Chris@39 16939 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
Chris@39 16940 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
Chris@39 16941 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
Chris@39 16942 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
Chris@39 16943 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
Chris@39 16944 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
Chris@39 16945 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
Chris@39 16946 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
Chris@39 16947 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
Chris@39 16948 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
Chris@39 16949 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
Chris@39 16950 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
Chris@39 16951 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
Chris@39 16952 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
Chris@39 16953 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
Chris@39 16954 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
Chris@39 16955 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
Chris@39 16956 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
Chris@39 16957 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
Chris@39 16958 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
Chris@39 16959 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
Chris@39 16960 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
Chris@39 16961 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
Chris@39 16962 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
Chris@39 16963 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
Chris@39 16964 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
Chris@39 16965 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
Chris@39 16966 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
Chris@39 16967 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
Chris@39 16968 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
Chris@39 16969 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 16970 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
Chris@39 16971 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
Chris@39 16972 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
Chris@39 16973 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
Chris@39 16974 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
Chris@39 16975 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
Chris@39 16976 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
Chris@39 16977 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
Chris@39 16978 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
Chris@39 16979 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
Chris@39 16980 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 16981 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 16982 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 16983 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
Chris@39 16984 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
Chris@39 16985 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
Chris@39 16986 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
Chris@39 16987 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
Chris@39 16988 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
Chris@39 16989 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
Chris@39 16990 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
Chris@39 16991 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
Chris@39 16992 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
Chris@39 16993 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
Chris@39 16994 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
Chris@39 16995 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
Chris@39 16996 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
Chris@39 16997 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
Chris@39 16998 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
Chris@39 16999 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
Chris@39 17000 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
Chris@39 17001 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
Chris@39 17002 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
Chris@39 17003 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
Chris@39 17004 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
Chris@39 17005 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
Chris@39 17006 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
Chris@39 17007 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
Chris@39 17008 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
Chris@39 17009 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 17010 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 17011 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
Chris@39 17012 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
Chris@39 17013 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
Chris@39 17014 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
Chris@39 17015 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
Chris@39 17016 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 17017 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 17018 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 17019 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 17020 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 17021 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 17022 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
Chris@39 17023 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
Chris@39 17024 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
Chris@39 17025 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
Chris@39 17026 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
Chris@39 17027 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
Chris@39 17028 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
Chris@39 17029 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
Chris@39 17030 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
Chris@39 17031 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
Chris@39 17032 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
Chris@39 17033 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
Chris@39 17034 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
Chris@39 17035 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
Chris@39 17036 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 17037 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
Chris@39 17038 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
Chris@39 17039 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 17040 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 17041 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
Chris@39 17042 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
Chris@39 17043 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
Chris@39 17044 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
Chris@39 17045 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
Chris@39 17046 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
Chris@39 17047 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
Chris@39 17048 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
Chris@39 17049 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
Chris@39 17050 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
Chris@39 17051 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
Chris@39 17052 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
Chris@39 17053 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 17054 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 17055 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
Chris@39 17056 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
Chris@39 17057 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
Chris@39 17058 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
Chris@39 17059 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
Chris@39 17060 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
Chris@39 17061 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
Chris@39 17062 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
Chris@39 17063 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
Chris@39 17064 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
Chris@39 17065 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
Chris@39 17066 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
Chris@39 17067 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
Chris@39 17068 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
Chris@39 17069 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
Chris@39 17070 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
Chris@39 17071 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
Chris@39 17072 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17073 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17074 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17075 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17076 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17077 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17078 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17079 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17080 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17081 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17082 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17083 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17084 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17085 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17086 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17087 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17088 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17089 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17090 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17091 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17092 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17093 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17094 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17095 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17096 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17097 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17098 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17099 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17100 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17101 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17102 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17103 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17104 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17105 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17106 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17107 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17108 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17109 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17110 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17111 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17112 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17113 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17114 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17115 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17116 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17117 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17118 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17119 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17120 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
Chris@39 17121
Chris@39 17122 LTCC='$LTCC'
Chris@39 17123 LTCFLAGS='$LTCFLAGS'
Chris@39 17124 compiler='$compiler_DEFAULT'
Chris@39 17125
Chris@39 17126 # A function that is used when there is no print builtin or printf.
Chris@39 17127 func_fallback_echo ()
Chris@39 17128 {
Chris@39 17129 eval 'cat <<_LTECHO_EOF
Chris@39 17130 \$1
Chris@39 17131 _LTECHO_EOF'
Chris@39 17132 }
Chris@39 17133
Chris@39 17134 # Quote evaled strings.
Chris@39 17135 for var in AS \
Chris@39 17136 DLLTOOL \
Chris@39 17137 OBJDUMP \
Chris@39 17138 SHELL \
Chris@39 17139 ECHO \
Chris@39 17140 SED \
Chris@39 17141 GREP \
Chris@39 17142 EGREP \
Chris@39 17143 FGREP \
Chris@39 17144 LD \
Chris@39 17145 NM \
Chris@39 17146 LN_S \
Chris@39 17147 lt_SP2NL \
Chris@39 17148 lt_NL2SP \
Chris@39 17149 reload_flag \
Chris@39 17150 deplibs_check_method \
Chris@39 17151 file_magic_cmd \
Chris@39 17152 file_magic_glob \
Chris@39 17153 want_nocaseglob \
Chris@39 17154 sharedlib_from_linklib_cmd \
Chris@39 17155 AR \
Chris@39 17156 AR_FLAGS \
Chris@39 17157 archiver_list_spec \
Chris@39 17158 STRIP \
Chris@39 17159 RANLIB \
Chris@39 17160 CC \
Chris@39 17161 CFLAGS \
Chris@39 17162 compiler \
Chris@39 17163 lt_cv_sys_global_symbol_pipe \
Chris@39 17164 lt_cv_sys_global_symbol_to_cdecl \
Chris@39 17165 lt_cv_sys_global_symbol_to_c_name_address \
Chris@39 17166 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Chris@39 17167 nm_file_list_spec \
Chris@39 17168 lt_prog_compiler_no_builtin_flag \
Chris@39 17169 lt_prog_compiler_pic \
Chris@39 17170 lt_prog_compiler_wl \
Chris@39 17171 lt_prog_compiler_static \
Chris@39 17172 lt_cv_prog_compiler_c_o \
Chris@39 17173 need_locks \
Chris@39 17174 MANIFEST_TOOL \
Chris@39 17175 DSYMUTIL \
Chris@39 17176 NMEDIT \
Chris@39 17177 LIPO \
Chris@39 17178 OTOOL \
Chris@39 17179 OTOOL64 \
Chris@39 17180 shrext_cmds \
Chris@39 17181 export_dynamic_flag_spec \
Chris@39 17182 whole_archive_flag_spec \
Chris@39 17183 compiler_needs_object \
Chris@39 17184 with_gnu_ld \
Chris@39 17185 allow_undefined_flag \
Chris@39 17186 no_undefined_flag \
Chris@39 17187 hardcode_libdir_flag_spec \
Chris@39 17188 hardcode_libdir_flag_spec_ld \
Chris@39 17189 hardcode_libdir_separator \
Chris@39 17190 exclude_expsyms \
Chris@39 17191 include_expsyms \
Chris@39 17192 file_list_spec \
Chris@39 17193 variables_saved_for_relink \
Chris@39 17194 libname_spec \
Chris@39 17195 library_names_spec \
Chris@39 17196 soname_spec \
Chris@39 17197 install_override_mode \
Chris@39 17198 finish_eval \
Chris@39 17199 old_striplib \
Chris@39 17200 striplib \
Chris@39 17201 compiler_lib_search_dirs \
Chris@39 17202 predep_objects \
Chris@39 17203 postdep_objects \
Chris@39 17204 predeps \
Chris@39 17205 postdeps \
Chris@39 17206 compiler_lib_search_path \
Chris@39 17207 LD_CXX \
Chris@39 17208 reload_flag_CXX \
Chris@39 17209 compiler_CXX \
Chris@39 17210 lt_prog_compiler_no_builtin_flag_CXX \
Chris@39 17211 lt_prog_compiler_pic_CXX \
Chris@39 17212 lt_prog_compiler_wl_CXX \
Chris@39 17213 lt_prog_compiler_static_CXX \
Chris@39 17214 lt_cv_prog_compiler_c_o_CXX \
Chris@39 17215 export_dynamic_flag_spec_CXX \
Chris@39 17216 whole_archive_flag_spec_CXX \
Chris@39 17217 compiler_needs_object_CXX \
Chris@39 17218 with_gnu_ld_CXX \
Chris@39 17219 allow_undefined_flag_CXX \
Chris@39 17220 no_undefined_flag_CXX \
Chris@39 17221 hardcode_libdir_flag_spec_CXX \
Chris@39 17222 hardcode_libdir_flag_spec_ld_CXX \
Chris@39 17223 hardcode_libdir_separator_CXX \
Chris@39 17224 exclude_expsyms_CXX \
Chris@39 17225 include_expsyms_CXX \
Chris@39 17226 file_list_spec_CXX \
Chris@39 17227 compiler_lib_search_dirs_CXX \
Chris@39 17228 predep_objects_CXX \
Chris@39 17229 postdep_objects_CXX \
Chris@39 17230 predeps_CXX \
Chris@39 17231 postdeps_CXX \
Chris@39 17232 compiler_lib_search_path_CXX; do
Chris@39 17233 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Chris@39 17234 *[\\\\\\\`\\"\\\$]*)
Chris@39 17235 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
Chris@39 17236 ;;
Chris@39 17237 *)
Chris@39 17238 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
Chris@39 17239 ;;
Chris@39 17240 esac
Chris@39 17241 done
Chris@39 17242
Chris@39 17243 # Double-quote double-evaled strings.
Chris@39 17244 for var in reload_cmds \
Chris@39 17245 old_postinstall_cmds \
Chris@39 17246 old_postuninstall_cmds \
Chris@39 17247 old_archive_cmds \
Chris@39 17248 extract_expsyms_cmds \
Chris@39 17249 old_archive_from_new_cmds \
Chris@39 17250 old_archive_from_expsyms_cmds \
Chris@39 17251 archive_cmds \
Chris@39 17252 archive_expsym_cmds \
Chris@39 17253 module_cmds \
Chris@39 17254 module_expsym_cmds \
Chris@39 17255 export_symbols_cmds \
Chris@39 17256 prelink_cmds \
Chris@39 17257 postlink_cmds \
Chris@39 17258 postinstall_cmds \
Chris@39 17259 postuninstall_cmds \
Chris@39 17260 finish_cmds \
Chris@39 17261 sys_lib_search_path_spec \
Chris@39 17262 sys_lib_dlsearch_path_spec \
Chris@39 17263 reload_cmds_CXX \
Chris@39 17264 old_archive_cmds_CXX \
Chris@39 17265 old_archive_from_new_cmds_CXX \
Chris@39 17266 old_archive_from_expsyms_cmds_CXX \
Chris@39 17267 archive_cmds_CXX \
Chris@39 17268 archive_expsym_cmds_CXX \
Chris@39 17269 module_cmds_CXX \
Chris@39 17270 module_expsym_cmds_CXX \
Chris@39 17271 export_symbols_cmds_CXX \
Chris@39 17272 prelink_cmds_CXX \
Chris@39 17273 postlink_cmds_CXX; do
Chris@39 17274 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Chris@39 17275 *[\\\\\\\`\\"\\\$]*)
Chris@39 17276 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
Chris@39 17277 ;;
Chris@39 17278 *)
Chris@39 17279 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
Chris@39 17280 ;;
Chris@39 17281 esac
Chris@39 17282 done
Chris@39 17283
Chris@39 17284 ac_aux_dir='$ac_aux_dir'
Chris@39 17285 xsi_shell='$xsi_shell'
Chris@39 17286 lt_shell_append='$lt_shell_append'
Chris@39 17287
Chris@39 17288 # See if we are running on zsh, and set the options which allow our
Chris@39 17289 # commands through without removal of \ escapes INIT.
Chris@39 17290 if test -n "\${ZSH_VERSION+set}" ; then
Chris@39 17291 setopt NO_GLOB_SUBST
Chris@39 17292 fi
Chris@39 17293
Chris@39 17294
Chris@39 17295 PACKAGE='$PACKAGE'
Chris@39 17296 VERSION='$VERSION'
Chris@39 17297 TIMESTAMP='$TIMESTAMP'
Chris@39 17298 RM='$RM'
Chris@39 17299 ofile='$ofile'
Chris@39 17300
Chris@39 17301
Chris@39 17302
Chris@39 17303
Chris@39 17304
Chris@39 17305
Chris@39 17306 _ACEOF
Chris@39 17307
Chris@39 17308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@39 17309
Chris@39 17310 # Handling of arguments.
Chris@39 17311 for ac_config_target in $ac_config_targets
Chris@39 17312 do
Chris@39 17313 case $ac_config_target in
Chris@39 17314 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Chris@39 17315 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Chris@39 17316 "portaudio-2.0.pc") CONFIG_FILES="$CONFIG_FILES portaudio-2.0.pc" ;;
Chris@39 17317
Chris@39 17318 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Chris@39 17319 esac
Chris@39 17320 done
Chris@39 17321
Chris@39 17322
Chris@39 17323 # If the user did not use the arguments to specify the items to instantiate,
Chris@39 17324 # then the envvar interface is used. Set only those that are not.
Chris@39 17325 # We use the long form for the default assignment because of an extremely
Chris@39 17326 # bizarre bug on SunOS 4.1.3.
Chris@39 17327 if $ac_need_defaults; then
Chris@39 17328 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Chris@39 17329 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
Chris@39 17330 fi
Chris@39 17331
Chris@39 17332 # Have a temporary directory for convenience. Make it in the build tree
Chris@39 17333 # simply because there is no reason against having it here, and in addition,
Chris@39 17334 # creating and moving files from /tmp can sometimes cause problems.
Chris@39 17335 # Hook for its removal unless debugging.
Chris@39 17336 # Note that there is a small window in which the directory will not be cleaned:
Chris@39 17337 # after its creation but before its name has been assigned to `$tmp'.
Chris@39 17338 $debug ||
Chris@39 17339 {
Chris@39 17340 tmp= ac_tmp=
Chris@39 17341 trap 'exit_status=$?
Chris@39 17342 : "${ac_tmp:=$tmp}"
Chris@39 17343 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Chris@39 17344 ' 0
Chris@39 17345 trap 'as_fn_exit 1' 1 2 13 15
Chris@39 17346 }
Chris@39 17347 # Create a (secure) tmp directory for tmp files.
Chris@39 17348
Chris@39 17349 {
Chris@39 17350 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Chris@39 17351 test -d "$tmp"
Chris@39 17352 } ||
Chris@39 17353 {
Chris@39 17354 tmp=./conf$$-$RANDOM
Chris@39 17355 (umask 077 && mkdir "$tmp")
Chris@39 17356 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Chris@39 17357 ac_tmp=$tmp
Chris@39 17358
Chris@39 17359 # Set up the scripts for CONFIG_FILES section.
Chris@39 17360 # No need to generate them if there are no CONFIG_FILES.
Chris@39 17361 # This happens for instance with `./config.status config.h'.
Chris@39 17362 if test -n "$CONFIG_FILES"; then
Chris@39 17363
Chris@39 17364
Chris@39 17365 ac_cr=`echo X | tr X '\015'`
Chris@39 17366 # On cygwin, bash can eat \r inside `` if the user requested igncr.
Chris@39 17367 # But we know of no other shell where ac_cr would be empty at this
Chris@39 17368 # point, so we can use a bashism as a fallback.
Chris@39 17369 if test "x$ac_cr" = x; then
Chris@39 17370 eval ac_cr=\$\'\\r\'
Chris@39 17371 fi
Chris@39 17372 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
Chris@39 17373 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Chris@39 17374 ac_cs_awk_cr='\\r'
Chris@39 17375 else
Chris@39 17376 ac_cs_awk_cr=$ac_cr
Chris@39 17377 fi
Chris@39 17378
Chris@39 17379 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Chris@39 17380 _ACEOF
Chris@39 17381
Chris@39 17382
Chris@39 17383 {
Chris@39 17384 echo "cat >conf$$subs.awk <<_ACEOF" &&
Chris@39 17385 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
Chris@39 17386 echo "_ACEOF"
Chris@39 17387 } >conf$$subs.sh ||
Chris@39 17388 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@39 17389 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Chris@39 17390 ac_delim='%!_!# '
Chris@39 17391 for ac_last_try in false false false false false :; do
Chris@39 17392 . ./conf$$subs.sh ||
Chris@39 17393 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@39 17394
Chris@39 17395 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
Chris@39 17396 if test $ac_delim_n = $ac_delim_num; then
Chris@39 17397 break
Chris@39 17398 elif $ac_last_try; then
Chris@39 17399 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@39 17400 else
Chris@39 17401 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Chris@39 17402 fi
Chris@39 17403 done
Chris@39 17404 rm -f conf$$subs.sh
Chris@39 17405
Chris@39 17406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@39 17407 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Chris@39 17408 _ACEOF
Chris@39 17409 sed -n '
Chris@39 17410 h
Chris@39 17411 s/^/S["/; s/!.*/"]=/
Chris@39 17412 p
Chris@39 17413 g
Chris@39 17414 s/^[^!]*!//
Chris@39 17415 :repl
Chris@39 17416 t repl
Chris@39 17417 s/'"$ac_delim"'$//
Chris@39 17418 t delim
Chris@39 17419 :nl
Chris@39 17420 h
Chris@39 17421 s/\(.\{148\}\)..*/\1/
Chris@39 17422 t more1
Chris@39 17423 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
Chris@39 17424 p
Chris@39 17425 n
Chris@39 17426 b repl
Chris@39 17427 :more1
Chris@39 17428 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
Chris@39 17429 p
Chris@39 17430 g
Chris@39 17431 s/.\{148\}//
Chris@39 17432 t nl
Chris@39 17433 :delim
Chris@39 17434 h
Chris@39 17435 s/\(.\{148\}\)..*/\1/
Chris@39 17436 t more2
Chris@39 17437 s/["\\]/\\&/g; s/^/"/; s/$/"/
Chris@39 17438 p
Chris@39 17439 b
Chris@39 17440 :more2
Chris@39 17441 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
Chris@39 17442 p
Chris@39 17443 g
Chris@39 17444 s/.\{148\}//
Chris@39 17445 t delim
Chris@39 17446 ' <conf$$subs.awk | sed '
Chris@39 17447 /^[^""]/{
Chris@39 17448 N
Chris@39 17449 s/\n//
Chris@39 17450 }
Chris@39 17451 ' >>$CONFIG_STATUS || ac_write_fail=1
Chris@39 17452 rm -f conf$$subs.awk
Chris@39 17453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@39 17454 _ACAWK
Chris@39 17455 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Chris@39 17456 for (key in S) S_is_set[key] = 1
Chris@39 17457 FS = ""
Chris@39 17458
Chris@39 17459 }
Chris@39 17460 {
Chris@39 17461 line = $ 0
Chris@39 17462 nfields = split(line, field, "@")
Chris@39 17463 substed = 0
Chris@39 17464 len = length(field[1])
Chris@39 17465 for (i = 2; i < nfields; i++) {
Chris@39 17466 key = field[i]
Chris@39 17467 keylen = length(key)
Chris@39 17468 if (S_is_set[key]) {
Chris@39 17469 value = S[key]
Chris@39 17470 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
Chris@39 17471 len += length(value) + length(field[++i])
Chris@39 17472 substed = 1
Chris@39 17473 } else
Chris@39 17474 len += 1 + keylen
Chris@39 17475 }
Chris@39 17476
Chris@39 17477 print line
Chris@39 17478 }
Chris@39 17479
Chris@39 17480 _ACAWK
Chris@39 17481 _ACEOF
Chris@39 17482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@39 17483 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
Chris@39 17484 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
Chris@39 17485 else
Chris@39 17486 cat
Chris@39 17487 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
Chris@39 17488 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Chris@39 17489 _ACEOF
Chris@39 17490
Chris@39 17491 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
Chris@39 17492 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Chris@39 17493 # trailing colons and then remove the whole line if VPATH becomes empty
Chris@39 17494 # (actually we leave an empty line to preserve line numbers).
Chris@39 17495 if test "x$srcdir" = x.; then
Chris@39 17496 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
Chris@39 17497 h
Chris@39 17498 s///
Chris@39 17499 s/^/:/
Chris@39 17500 s/[ ]*$/:/
Chris@39 17501 s/:\$(srcdir):/:/g
Chris@39 17502 s/:\${srcdir}:/:/g
Chris@39 17503 s/:@srcdir@:/:/g
Chris@39 17504 s/^:*//
Chris@39 17505 s/:*$//
Chris@39 17506 x
Chris@39 17507 s/\(=[ ]*\).*/\1/
Chris@39 17508 G
Chris@39 17509 s/\n//
Chris@39 17510 s/^[^=]*=[ ]*$//
Chris@39 17511 }'
Chris@39 17512 fi
Chris@39 17513
Chris@39 17514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@39 17515 fi # test -n "$CONFIG_FILES"
Chris@39 17516
Chris@39 17517
Chris@39 17518 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
Chris@39 17519 shift
Chris@39 17520 for ac_tag
Chris@39 17521 do
Chris@39 17522 case $ac_tag in
Chris@39 17523 :[FHLC]) ac_mode=$ac_tag; continue;;
Chris@39 17524 esac
Chris@39 17525 case $ac_mode$ac_tag in
Chris@39 17526 :[FHL]*:*);;
Chris@39 17527 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Chris@39 17528 :[FH]-) ac_tag=-:-;;
Chris@39 17529 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
Chris@39 17530 esac
Chris@39 17531 ac_save_IFS=$IFS
Chris@39 17532 IFS=:
Chris@39 17533 set x $ac_tag
Chris@39 17534 IFS=$ac_save_IFS
Chris@39 17535 shift
Chris@39 17536 ac_file=$1
Chris@39 17537 shift
Chris@39 17538
Chris@39 17539 case $ac_mode in
Chris@39 17540 :L) ac_source=$1;;
Chris@39 17541 :[FH])
Chris@39 17542 ac_file_inputs=
Chris@39 17543 for ac_f
Chris@39 17544 do
Chris@39 17545 case $ac_f in
Chris@39 17546 -) ac_f="$ac_tmp/stdin";;
Chris@39 17547 *) # Look for the file first in the build tree, then in the source tree
Chris@39 17548 # (if the path is not absolute). The absolute path cannot be DOS-style,
Chris@39 17549 # because $ac_f cannot contain `:'.
Chris@39 17550 test -f "$ac_f" ||
Chris@39 17551 case $ac_f in
Chris@39 17552 [\\/$]*) false;;
Chris@39 17553 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
Chris@39 17554 esac ||
Chris@39 17555 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Chris@39 17556 esac
Chris@39 17557 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Chris@39 17558 as_fn_append ac_file_inputs " '$ac_f'"
Chris@39 17559 done
Chris@39 17560
Chris@39 17561 # Let's still pretend it is `configure' which instantiates (i.e., don't
Chris@39 17562 # use $as_me), people would be surprised to read:
Chris@39 17563 # /* config.h. Generated by config.status. */
Chris@39 17564 configure_input='Generated from '`
Chris@39 17565 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
Chris@39 17566 `' by configure.'
Chris@39 17567 if test x"$ac_file" != x-; then
Chris@39 17568 configure_input="$ac_file. $configure_input"
Chris@39 17569 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Chris@39 17570 $as_echo "$as_me: creating $ac_file" >&6;}
Chris@39 17571 fi
Chris@39 17572 # Neutralize special characters interpreted by sed in replacement strings.
Chris@39 17573 case $configure_input in #(
Chris@39 17574 *\&* | *\|* | *\\* )
Chris@39 17575 ac_sed_conf_input=`$as_echo "$configure_input" |
Chris@39 17576 sed 's/[\\\\&|]/\\\\&/g'`;; #(
Chris@39 17577 *) ac_sed_conf_input=$configure_input;;
Chris@39 17578 esac
Chris@39 17579
Chris@39 17580 case $ac_tag in
Chris@39 17581 *:-:* | *:-) cat >"$ac_tmp/stdin" \
Chris@39 17582 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Chris@39 17583 esac
Chris@39 17584 ;;
Chris@39 17585 esac
Chris@39 17586
Chris@39 17587 ac_dir=`$as_dirname -- "$ac_file" ||
Chris@39 17588 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@39 17589 X"$ac_file" : 'X\(//\)[^/]' \| \
Chris@39 17590 X"$ac_file" : 'X\(//\)$' \| \
Chris@39 17591 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Chris@39 17592 $as_echo X"$ac_file" |
Chris@39 17593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@39 17594 s//\1/
Chris@39 17595 q
Chris@39 17596 }
Chris@39 17597 /^X\(\/\/\)[^/].*/{
Chris@39 17598 s//\1/
Chris@39 17599 q
Chris@39 17600 }
Chris@39 17601 /^X\(\/\/\)$/{
Chris@39 17602 s//\1/
Chris@39 17603 q
Chris@39 17604 }
Chris@39 17605 /^X\(\/\).*/{
Chris@39 17606 s//\1/
Chris@39 17607 q
Chris@39 17608 }
Chris@39 17609 s/.*/./; q'`
Chris@39 17610 as_dir="$ac_dir"; as_fn_mkdir_p
Chris@39 17611 ac_builddir=.
Chris@39 17612
Chris@39 17613 case "$ac_dir" in
Chris@39 17614 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@39 17615 *)
Chris@39 17616 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Chris@39 17617 # A ".." for each directory in $ac_dir_suffix.
Chris@39 17618 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Chris@39 17619 case $ac_top_builddir_sub in
Chris@39 17620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@39 17621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
Chris@39 17622 esac ;;
Chris@39 17623 esac
Chris@39 17624 ac_abs_top_builddir=$ac_pwd
Chris@39 17625 ac_abs_builddir=$ac_pwd$ac_dir_suffix
Chris@39 17626 # for backward compatibility:
Chris@39 17627 ac_top_builddir=$ac_top_build_prefix
Chris@39 17628
Chris@39 17629 case $srcdir in
Chris@39 17630 .) # We are building in place.
Chris@39 17631 ac_srcdir=.
Chris@39 17632 ac_top_srcdir=$ac_top_builddir_sub
Chris@39 17633 ac_abs_top_srcdir=$ac_pwd ;;
Chris@39 17634 [\\/]* | ?:[\\/]* ) # Absolute name.
Chris@39 17635 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@39 17636 ac_top_srcdir=$srcdir
Chris@39 17637 ac_abs_top_srcdir=$srcdir ;;
Chris@39 17638 *) # Relative name.
Chris@39 17639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
Chris@39 17640 ac_top_srcdir=$ac_top_build_prefix$srcdir
Chris@39 17641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Chris@39 17642 esac
Chris@39 17643 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Chris@39 17644
Chris@39 17645
Chris@39 17646 case $ac_mode in
Chris@39 17647 :F)
Chris@39 17648 #
Chris@39 17649 # CONFIG_FILE
Chris@39 17650 #
Chris@39 17651
Chris@39 17652 case $INSTALL in
Chris@39 17653 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Chris@39 17654 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Chris@39 17655 esac
Chris@39 17656 _ACEOF
Chris@39 17657
Chris@39 17658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@39 17659 # If the template does not know about datarootdir, expand it.
Chris@39 17660 # FIXME: This hack should be removed a few years after 2.60.
Chris@39 17661 ac_datarootdir_hack=; ac_datarootdir_seen=
Chris@39 17662 ac_sed_dataroot='
Chris@39 17663 /datarootdir/ {
Chris@39 17664 p
Chris@39 17665 q
Chris@39 17666 }
Chris@39 17667 /@datadir@/p
Chris@39 17668 /@docdir@/p
Chris@39 17669 /@infodir@/p
Chris@39 17670 /@localedir@/p
Chris@39 17671 /@mandir@/p'
Chris@39 17672 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Chris@39 17673 *datarootdir*) ac_datarootdir_seen=yes;;
Chris@39 17674 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Chris@39 17675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
Chris@39 17676 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Chris@39 17677 _ACEOF
Chris@39 17678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@39 17679 ac_datarootdir_hack='
Chris@39 17680 s&@datadir@&$datadir&g
Chris@39 17681 s&@docdir@&$docdir&g
Chris@39 17682 s&@infodir@&$infodir&g
Chris@39 17683 s&@localedir@&$localedir&g
Chris@39 17684 s&@mandir@&$mandir&g
Chris@39 17685 s&\\\${datarootdir}&$datarootdir&g' ;;
Chris@39 17686 esac
Chris@39 17687 _ACEOF
Chris@39 17688
Chris@39 17689 # Neutralize VPATH when `$srcdir' = `.'.
Chris@39 17690 # Shell code in configure.ac might set extrasub.
Chris@39 17691 # FIXME: do we really want to maintain this feature?
Chris@39 17692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@39 17693 ac_sed_extra="$ac_vpsub
Chris@39 17694 $extrasub
Chris@39 17695 _ACEOF
Chris@39 17696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@39 17697 :t
Chris@39 17698 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Chris@39 17699 s|@configure_input@|$ac_sed_conf_input|;t t
Chris@39 17700 s&@top_builddir@&$ac_top_builddir_sub&;t t
Chris@39 17701 s&@top_build_prefix@&$ac_top_build_prefix&;t t
Chris@39 17702 s&@srcdir@&$ac_srcdir&;t t
Chris@39 17703 s&@abs_srcdir@&$ac_abs_srcdir&;t t
Chris@39 17704 s&@top_srcdir@&$ac_top_srcdir&;t t
Chris@39 17705 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
Chris@39 17706 s&@builddir@&$ac_builddir&;t t
Chris@39 17707 s&@abs_builddir@&$ac_abs_builddir&;t t
Chris@39 17708 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Chris@39 17709 s&@INSTALL@&$ac_INSTALL&;t t
Chris@39 17710 $ac_datarootdir_hack
Chris@39 17711 "
Chris@39 17712 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
Chris@39 17713 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@39 17714
Chris@39 17715 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Chris@39 17716 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
Chris@39 17717 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
Chris@39 17718 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Chris@39 17719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Chris@39 17720 which seems to be undefined. Please make sure it is defined" >&5
Chris@39 17721 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Chris@39 17722 which seems to be undefined. Please make sure it is defined" >&2;}
Chris@39 17723
Chris@39 17724 rm -f "$ac_tmp/stdin"
Chris@39 17725 case $ac_file in
Chris@39 17726 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
Chris@39 17727 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Chris@39 17728 esac \
Chris@39 17729 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@39 17730 ;;
Chris@39 17731
Chris@39 17732
Chris@39 17733 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Chris@39 17734 $as_echo "$as_me: executing $ac_file commands" >&6;}
Chris@39 17735 ;;
Chris@39 17736 esac
Chris@39 17737
Chris@39 17738
Chris@39 17739 case $ac_file$ac_mode in
Chris@39 17740 "libtool":C)
Chris@39 17741
Chris@39 17742 # See if we are running on zsh, and set the options which allow our
Chris@39 17743 # commands through without removal of \ escapes.
Chris@39 17744 if test -n "${ZSH_VERSION+set}" ; then
Chris@39 17745 setopt NO_GLOB_SUBST
Chris@39 17746 fi
Chris@39 17747
Chris@39 17748 cfgfile="${ofile}T"
Chris@39 17749 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
Chris@39 17750 $RM "$cfgfile"
Chris@39 17751
Chris@39 17752 cat <<_LT_EOF >> "$cfgfile"
Chris@39 17753 #! $SHELL
Chris@39 17754
Chris@39 17755 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
Chris@39 17756 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
Chris@39 17757 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
Chris@39 17758 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
Chris@39 17759 #
Chris@39 17760 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
Chris@39 17761 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
Chris@39 17762 # Inc.
Chris@39 17763 # Written by Gordon Matzigkeit, 1996
Chris@39 17764 #
Chris@39 17765 # This file is part of GNU Libtool.
Chris@39 17766 #
Chris@39 17767 # GNU Libtool is free software; you can redistribute it and/or
Chris@39 17768 # modify it under the terms of the GNU General Public License as
Chris@39 17769 # published by the Free Software Foundation; either version 2 of
Chris@39 17770 # the License, or (at your option) any later version.
Chris@39 17771 #
Chris@39 17772 # As a special exception to the GNU General Public License,
Chris@39 17773 # if you distribute this file as part of a program or library that
Chris@39 17774 # is built using GNU Libtool, you may include this file under the
Chris@39 17775 # same distribution terms that you use for the rest of that program.
Chris@39 17776 #
Chris@39 17777 # GNU Libtool is distributed in the hope that it will be useful,
Chris@39 17778 # but WITHOUT ANY WARRANTY; without even the implied warranty of
Chris@39 17779 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Chris@39 17780 # GNU General Public License for more details.
Chris@39 17781 #
Chris@39 17782 # You should have received a copy of the GNU General Public License
Chris@39 17783 # along with GNU Libtool; see the file COPYING. If not, a copy
Chris@39 17784 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
Chris@39 17785 # obtained by writing to the Free Software Foundation, Inc.,
Chris@39 17786 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Chris@39 17787
Chris@39 17788
Chris@39 17789 # The names of the tagged configurations supported by this script.
Chris@39 17790 available_tags="CXX "
Chris@39 17791
Chris@39 17792 # ### BEGIN LIBTOOL CONFIG
Chris@39 17793
Chris@39 17794 # Assembler program.
Chris@39 17795 AS=$lt_AS
Chris@39 17796
Chris@39 17797 # DLL creation program.
Chris@39 17798 DLLTOOL=$lt_DLLTOOL
Chris@39 17799
Chris@39 17800 # Object dumper program.
Chris@39 17801 OBJDUMP=$lt_OBJDUMP
Chris@39 17802
Chris@39 17803 # Which release of libtool.m4 was used?
Chris@39 17804 macro_version=$macro_version
Chris@39 17805 macro_revision=$macro_revision
Chris@39 17806
Chris@39 17807 # Whether or not to build shared libraries.
Chris@39 17808 build_libtool_libs=$enable_shared
Chris@39 17809
Chris@39 17810 # Whether or not to build static libraries.
Chris@39 17811 build_old_libs=$enable_static
Chris@39 17812
Chris@39 17813 # What type of objects to build.
Chris@39 17814 pic_mode=$pic_mode
Chris@39 17815
Chris@39 17816 # Whether or not to optimize for fast installation.
Chris@39 17817 fast_install=$enable_fast_install
Chris@39 17818
Chris@39 17819 # Shell to use when invoking shell scripts.
Chris@39 17820 SHELL=$lt_SHELL
Chris@39 17821
Chris@39 17822 # An echo program that protects backslashes.
Chris@39 17823 ECHO=$lt_ECHO
Chris@39 17824
Chris@39 17825 # The host system.
Chris@39 17826 host_alias=$host_alias
Chris@39 17827 host=$host
Chris@39 17828 host_os=$host_os
Chris@39 17829
Chris@39 17830 # The build system.
Chris@39 17831 build_alias=$build_alias
Chris@39 17832 build=$build
Chris@39 17833 build_os=$build_os
Chris@39 17834
Chris@39 17835 # A sed program that does not truncate output.
Chris@39 17836 SED=$lt_SED
Chris@39 17837
Chris@39 17838 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
Chris@39 17839 Xsed="\$SED -e 1s/^X//"
Chris@39 17840
Chris@39 17841 # A grep program that handles long lines.
Chris@39 17842 GREP=$lt_GREP
Chris@39 17843
Chris@39 17844 # An ERE matcher.
Chris@39 17845 EGREP=$lt_EGREP
Chris@39 17846
Chris@39 17847 # A literal string matcher.
Chris@39 17848 FGREP=$lt_FGREP
Chris@39 17849
Chris@39 17850 # A BSD- or MS-compatible name lister.
Chris@39 17851 NM=$lt_NM
Chris@39 17852
Chris@39 17853 # Whether we need soft or hard links.
Chris@39 17854 LN_S=$lt_LN_S
Chris@39 17855
Chris@39 17856 # What is the maximum length of a command?
Chris@39 17857 max_cmd_len=$max_cmd_len
Chris@39 17858
Chris@39 17859 # Object file suffix (normally "o").
Chris@39 17860 objext=$ac_objext
Chris@39 17861
Chris@39 17862 # Executable file suffix (normally "").
Chris@39 17863 exeext=$exeext
Chris@39 17864
Chris@39 17865 # whether the shell understands "unset".
Chris@39 17866 lt_unset=$lt_unset
Chris@39 17867
Chris@39 17868 # turn spaces into newlines.
Chris@39 17869 SP2NL=$lt_lt_SP2NL
Chris@39 17870
Chris@39 17871 # turn newlines into spaces.
Chris@39 17872 NL2SP=$lt_lt_NL2SP
Chris@39 17873
Chris@39 17874 # convert \$build file names to \$host format.
Chris@39 17875 to_host_file_cmd=$lt_cv_to_host_file_cmd
Chris@39 17876
Chris@39 17877 # convert \$build files to toolchain format.
Chris@39 17878 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Chris@39 17879
Chris@39 17880 # Method to check whether dependent libraries are shared objects.
Chris@39 17881 deplibs_check_method=$lt_deplibs_check_method
Chris@39 17882
Chris@39 17883 # Command to use when deplibs_check_method = "file_magic".
Chris@39 17884 file_magic_cmd=$lt_file_magic_cmd
Chris@39 17885
Chris@39 17886 # How to find potential files when deplibs_check_method = "file_magic".
Chris@39 17887 file_magic_glob=$lt_file_magic_glob
Chris@39 17888
Chris@39 17889 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
Chris@39 17890 want_nocaseglob=$lt_want_nocaseglob
Chris@39 17891
Chris@39 17892 # Command to associate shared and link libraries.
Chris@39 17893 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
Chris@39 17894
Chris@39 17895 # The archiver.
Chris@39 17896 AR=$lt_AR
Chris@39 17897
Chris@39 17898 # Flags to create an archive.
Chris@39 17899 AR_FLAGS=$lt_AR_FLAGS
Chris@39 17900
Chris@39 17901 # How to feed a file listing to the archiver.
Chris@39 17902 archiver_list_spec=$lt_archiver_list_spec
Chris@39 17903
Chris@39 17904 # A symbol stripping program.
Chris@39 17905 STRIP=$lt_STRIP
Chris@39 17906
Chris@39 17907 # Commands used to install an old-style archive.
Chris@39 17908 RANLIB=$lt_RANLIB
Chris@39 17909 old_postinstall_cmds=$lt_old_postinstall_cmds
Chris@39 17910 old_postuninstall_cmds=$lt_old_postuninstall_cmds
Chris@39 17911
Chris@39 17912 # Whether to use a lock for old archive extraction.
Chris@39 17913 lock_old_archive_extraction=$lock_old_archive_extraction
Chris@39 17914
Chris@39 17915 # A C compiler.
Chris@39 17916 LTCC=$lt_CC
Chris@39 17917
Chris@39 17918 # LTCC compiler flags.
Chris@39 17919 LTCFLAGS=$lt_CFLAGS
Chris@39 17920
Chris@39 17921 # Take the output of nm and produce a listing of raw symbols and C names.
Chris@39 17922 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
Chris@39 17923
Chris@39 17924 # Transform the output of nm in a proper C declaration.
Chris@39 17925 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
Chris@39 17926
Chris@39 17927 # Transform the output of nm in a C name address pair.
Chris@39 17928 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
Chris@39 17929
Chris@39 17930 # Transform the output of nm in a C name address pair when lib prefix is needed.
Chris@39 17931 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
Chris@39 17932
Chris@39 17933 # Specify filename containing input files for \$NM.
Chris@39 17934 nm_file_list_spec=$lt_nm_file_list_spec
Chris@39 17935
Chris@39 17936 # The root where to search for dependent libraries,and in which our libraries should be installed.
Chris@39 17937 lt_sysroot=$lt_sysroot
Chris@39 17938
Chris@39 17939 # The name of the directory that contains temporary libtool files.
Chris@39 17940 objdir=$objdir
Chris@39 17941
Chris@39 17942 # Used to examine libraries when file_magic_cmd begins with "file".
Chris@39 17943 MAGIC_CMD=$MAGIC_CMD
Chris@39 17944
Chris@39 17945 # Must we lock files when doing compilation?
Chris@39 17946 need_locks=$lt_need_locks
Chris@39 17947
Chris@39 17948 # Manifest tool.
Chris@39 17949 MANIFEST_TOOL=$lt_MANIFEST_TOOL
Chris@39 17950
Chris@39 17951 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
Chris@39 17952 DSYMUTIL=$lt_DSYMUTIL
Chris@39 17953
Chris@39 17954 # Tool to change global to local symbols on Mac OS X.
Chris@39 17955 NMEDIT=$lt_NMEDIT
Chris@39 17956
Chris@39 17957 # Tool to manipulate fat objects and archives on Mac OS X.
Chris@39 17958 LIPO=$lt_LIPO
Chris@39 17959
Chris@39 17960 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
Chris@39 17961 OTOOL=$lt_OTOOL
Chris@39 17962
Chris@39 17963 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
Chris@39 17964 OTOOL64=$lt_OTOOL64
Chris@39 17965
Chris@39 17966 # Old archive suffix (normally "a").
Chris@39 17967 libext=$libext
Chris@39 17968
Chris@39 17969 # Shared library suffix (normally ".so").
Chris@39 17970 shrext_cmds=$lt_shrext_cmds
Chris@39 17971
Chris@39 17972 # The commands to extract the exported symbol list from a shared archive.
Chris@39 17973 extract_expsyms_cmds=$lt_extract_expsyms_cmds
Chris@39 17974
Chris@39 17975 # Variables whose values should be saved in libtool wrapper scripts and
Chris@39 17976 # restored at link time.
Chris@39 17977 variables_saved_for_relink=$lt_variables_saved_for_relink
Chris@39 17978
Chris@39 17979 # Do we need the "lib" prefix for modules?
Chris@39 17980 need_lib_prefix=$need_lib_prefix
Chris@39 17981
Chris@39 17982 # Do we need a version for libraries?
Chris@39 17983 need_version=$need_version
Chris@39 17984
Chris@39 17985 # Library versioning type.
Chris@39 17986 version_type=$version_type
Chris@39 17987
Chris@39 17988 # Shared library runtime path variable.
Chris@39 17989 runpath_var=$runpath_var
Chris@39 17990
Chris@39 17991 # Shared library path variable.
Chris@39 17992 shlibpath_var=$shlibpath_var
Chris@39 17993
Chris@39 17994 # Is shlibpath searched before the hard-coded library search path?
Chris@39 17995 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
Chris@39 17996
Chris@39 17997 # Format of library name prefix.
Chris@39 17998 libname_spec=$lt_libname_spec
Chris@39 17999
Chris@39 18000 # List of archive names. First name is the real one, the rest are links.
Chris@39 18001 # The last name is the one that the linker finds with -lNAME
Chris@39 18002 library_names_spec=$lt_library_names_spec
Chris@39 18003
Chris@39 18004 # The coded name of the library, if different from the real name.
Chris@39 18005 soname_spec=$lt_soname_spec
Chris@39 18006
Chris@39 18007 # Permission mode override for installation of shared libraries.
Chris@39 18008 install_override_mode=$lt_install_override_mode
Chris@39 18009
Chris@39 18010 # Command to use after installation of a shared archive.
Chris@39 18011 postinstall_cmds=$lt_postinstall_cmds
Chris@39 18012
Chris@39 18013 # Command to use after uninstallation of a shared archive.
Chris@39 18014 postuninstall_cmds=$lt_postuninstall_cmds
Chris@39 18015
Chris@39 18016 # Commands used to finish a libtool library installation in a directory.
Chris@39 18017 finish_cmds=$lt_finish_cmds
Chris@39 18018
Chris@39 18019 # As "finish_cmds", except a single script fragment to be evaled but
Chris@39 18020 # not shown.
Chris@39 18021 finish_eval=$lt_finish_eval
Chris@39 18022
Chris@39 18023 # Whether we should hardcode library paths into libraries.
Chris@39 18024 hardcode_into_libs=$hardcode_into_libs
Chris@39 18025
Chris@39 18026 # Compile-time system search path for libraries.
Chris@39 18027 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
Chris@39 18028
Chris@39 18029 # Run-time system search path for libraries.
Chris@39 18030 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
Chris@39 18031
Chris@39 18032 # Whether dlopen is supported.
Chris@39 18033 dlopen_support=$enable_dlopen
Chris@39 18034
Chris@39 18035 # Whether dlopen of programs is supported.
Chris@39 18036 dlopen_self=$enable_dlopen_self
Chris@39 18037
Chris@39 18038 # Whether dlopen of statically linked programs is supported.
Chris@39 18039 dlopen_self_static=$enable_dlopen_self_static
Chris@39 18040
Chris@39 18041 # Commands to strip libraries.
Chris@39 18042 old_striplib=$lt_old_striplib
Chris@39 18043 striplib=$lt_striplib
Chris@39 18044
Chris@39 18045
Chris@39 18046 # The linker used to build libraries.
Chris@39 18047 LD=$lt_LD
Chris@39 18048
Chris@39 18049 # How to create reloadable object files.
Chris@39 18050 reload_flag=$lt_reload_flag
Chris@39 18051 reload_cmds=$lt_reload_cmds
Chris@39 18052
Chris@39 18053 # Commands used to build an old-style archive.
Chris@39 18054 old_archive_cmds=$lt_old_archive_cmds
Chris@39 18055
Chris@39 18056 # A language specific compiler.
Chris@39 18057 CC=$lt_compiler
Chris@39 18058
Chris@39 18059 # Is the compiler the GNU compiler?
Chris@39 18060 with_gcc=$GCC
Chris@39 18061
Chris@39 18062 # Compiler flag to turn off builtin functions.
Chris@39 18063 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
Chris@39 18064
Chris@39 18065 # Additional compiler flags for building library objects.
Chris@39 18066 pic_flag=$lt_lt_prog_compiler_pic
Chris@39 18067
Chris@39 18068 # How to pass a linker flag through the compiler.
Chris@39 18069 wl=$lt_lt_prog_compiler_wl
Chris@39 18070
Chris@39 18071 # Compiler flag to prevent dynamic linking.
Chris@39 18072 link_static_flag=$lt_lt_prog_compiler_static
Chris@39 18073
Chris@39 18074 # Does compiler simultaneously support -c and -o options?
Chris@39 18075 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
Chris@39 18076
Chris@39 18077 # Whether or not to add -lc for building shared libraries.
Chris@39 18078 build_libtool_need_lc=$archive_cmds_need_lc
Chris@39 18079
Chris@39 18080 # Whether or not to disallow shared libs when runtime libs are static.
Chris@39 18081 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
Chris@39 18082
Chris@39 18083 # Compiler flag to allow reflexive dlopens.
Chris@39 18084 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
Chris@39 18085
Chris@39 18086 # Compiler flag to generate shared objects directly from archives.
Chris@39 18087 whole_archive_flag_spec=$lt_whole_archive_flag_spec
Chris@39 18088
Chris@39 18089 # Whether the compiler copes with passing no objects directly.
Chris@39 18090 compiler_needs_object=$lt_compiler_needs_object
Chris@39 18091
Chris@39 18092 # Create an old-style archive from a shared archive.
Chris@39 18093 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
Chris@39 18094
Chris@39 18095 # Create a temporary old-style archive to link instead of a shared archive.
Chris@39 18096 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
Chris@39 18097
Chris@39 18098 # Commands used to build a shared archive.
Chris@39 18099 archive_cmds=$lt_archive_cmds
Chris@39 18100 archive_expsym_cmds=$lt_archive_expsym_cmds
Chris@39 18101
Chris@39 18102 # Commands used to build a loadable module if different from building
Chris@39 18103 # a shared archive.
Chris@39 18104 module_cmds=$lt_module_cmds
Chris@39 18105 module_expsym_cmds=$lt_module_expsym_cmds
Chris@39 18106
Chris@39 18107 # Whether we are building with GNU ld or not.
Chris@39 18108 with_gnu_ld=$lt_with_gnu_ld
Chris@39 18109
Chris@39 18110 # Flag that allows shared libraries with undefined symbols to be built.
Chris@39 18111 allow_undefined_flag=$lt_allow_undefined_flag
Chris@39 18112
Chris@39 18113 # Flag that enforces no undefined symbols.
Chris@39 18114 no_undefined_flag=$lt_no_undefined_flag
Chris@39 18115
Chris@39 18116 # Flag to hardcode \$libdir into a binary during linking.
Chris@39 18117 # This must work even if \$libdir does not exist
Chris@39 18118 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
Chris@39 18119
Chris@39 18120 # If ld is used when linking, flag to hardcode \$libdir into a binary
Chris@39 18121 # during linking. This must work even if \$libdir does not exist.
Chris@39 18122 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
Chris@39 18123
Chris@39 18124 # Whether we need a single "-rpath" flag with a separated argument.
Chris@39 18125 hardcode_libdir_separator=$lt_hardcode_libdir_separator
Chris@39 18126
Chris@39 18127 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
Chris@39 18128 # DIR into the resulting binary.
Chris@39 18129 hardcode_direct=$hardcode_direct
Chris@39 18130
Chris@39 18131 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
Chris@39 18132 # DIR into the resulting binary and the resulting library dependency is
Chris@39 18133 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
Chris@39 18134 # library is relocated.
Chris@39 18135 hardcode_direct_absolute=$hardcode_direct_absolute
Chris@39 18136
Chris@39 18137 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
Chris@39 18138 # into the resulting binary.
Chris@39 18139 hardcode_minus_L=$hardcode_minus_L
Chris@39 18140
Chris@39 18141 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
Chris@39 18142 # into the resulting binary.
Chris@39 18143 hardcode_shlibpath_var=$hardcode_shlibpath_var
Chris@39 18144
Chris@39 18145 # Set to "yes" if building a shared library automatically hardcodes DIR
Chris@39 18146 # into the library and all subsequent libraries and executables linked
Chris@39 18147 # against it.
Chris@39 18148 hardcode_automatic=$hardcode_automatic
Chris@39 18149
Chris@39 18150 # Set to yes if linker adds runtime paths of dependent libraries
Chris@39 18151 # to runtime path list.
Chris@39 18152 inherit_rpath=$inherit_rpath
Chris@39 18153
Chris@39 18154 # Whether libtool must link a program against all its dependency libraries.
Chris@39 18155 link_all_deplibs=$link_all_deplibs
Chris@39 18156
Chris@39 18157 # Set to "yes" if exported symbols are required.
Chris@39 18158 always_export_symbols=$always_export_symbols
Chris@39 18159
Chris@39 18160 # The commands to list exported symbols.
Chris@39 18161 export_symbols_cmds=$lt_export_symbols_cmds
Chris@39 18162
Chris@39 18163 # Symbols that should not be listed in the preloaded symbols.
Chris@39 18164 exclude_expsyms=$lt_exclude_expsyms
Chris@39 18165
Chris@39 18166 # Symbols that must always be exported.
Chris@39 18167 include_expsyms=$lt_include_expsyms
Chris@39 18168
Chris@39 18169 # Commands necessary for linking programs (against libraries) with templates.
Chris@39 18170 prelink_cmds=$lt_prelink_cmds
Chris@39 18171
Chris@39 18172 # Commands necessary for finishing linking programs.
Chris@39 18173 postlink_cmds=$lt_postlink_cmds
Chris@39 18174
Chris@39 18175 # Specify filename containing input files.
Chris@39 18176 file_list_spec=$lt_file_list_spec
Chris@39 18177
Chris@39 18178 # How to hardcode a shared library path into an executable.
Chris@39 18179 hardcode_action=$hardcode_action
Chris@39 18180
Chris@39 18181 # The directories searched by this compiler when creating a shared library.
Chris@39 18182 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
Chris@39 18183
Chris@39 18184 # Dependencies to place before and after the objects being linked to
Chris@39 18185 # create a shared library.
Chris@39 18186 predep_objects=$lt_predep_objects
Chris@39 18187 postdep_objects=$lt_postdep_objects
Chris@39 18188 predeps=$lt_predeps
Chris@39 18189 postdeps=$lt_postdeps
Chris@39 18190
Chris@39 18191 # The library search path used internally by the compiler when linking
Chris@39 18192 # a shared library.
Chris@39 18193 compiler_lib_search_path=$lt_compiler_lib_search_path
Chris@39 18194
Chris@39 18195 # ### END LIBTOOL CONFIG
Chris@39 18196
Chris@39 18197 _LT_EOF
Chris@39 18198
Chris@39 18199 case $host_os in
Chris@39 18200 aix3*)
Chris@39 18201 cat <<\_LT_EOF >> "$cfgfile"
Chris@39 18202 # AIX sometimes has problems with the GCC collect2 program. For some
Chris@39 18203 # reason, if we set the COLLECT_NAMES environment variable, the problems
Chris@39 18204 # vanish in a puff of smoke.
Chris@39 18205 if test "X${COLLECT_NAMES+set}" != Xset; then
Chris@39 18206 COLLECT_NAMES=
Chris@39 18207 export COLLECT_NAMES
Chris@39 18208 fi
Chris@39 18209 _LT_EOF
Chris@39 18210 ;;
Chris@39 18211 esac
Chris@39 18212
Chris@39 18213
Chris@39 18214 ltmain="$ac_aux_dir/ltmain.sh"
Chris@39 18215
Chris@39 18216
Chris@39 18217 # We use sed instead of cat because bash on DJGPP gets confused if
Chris@39 18218 # if finds mixed CR/LF and LF-only lines. Since sed operates in
Chris@39 18219 # text mode, it properly converts lines to CR/LF. This bash problem
Chris@39 18220 # is reportedly fixed, but why not run on old versions too?
Chris@39 18221 sed '$q' "$ltmain" >> "$cfgfile" \
Chris@39 18222 || (rm -f "$cfgfile"; exit 1)
Chris@39 18223
Chris@39 18224 if test x"$xsi_shell" = xyes; then
Chris@39 18225 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
Chris@39 18226 func_dirname ()\
Chris@39 18227 {\
Chris@39 18228 \ case ${1} in\
Chris@39 18229 \ */*) func_dirname_result="${1%/*}${2}" ;;\
Chris@39 18230 \ * ) func_dirname_result="${3}" ;;\
Chris@39 18231 \ esac\
Chris@39 18232 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
Chris@39 18233 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@39 18234 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@39 18235 test 0 -eq $? || _lt_function_replace_fail=:
Chris@39 18236
Chris@39 18237
Chris@39 18238 sed -e '/^func_basename ()$/,/^} # func_basename /c\
Chris@39 18239 func_basename ()\
Chris@39 18240 {\
Chris@39 18241 \ func_basename_result="${1##*/}"\
Chris@39 18242 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
Chris@39 18243 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@39 18244 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@39 18245 test 0 -eq $? || _lt_function_replace_fail=:
Chris@39 18246
Chris@39 18247
Chris@39 18248 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
Chris@39 18249 func_dirname_and_basename ()\
Chris@39 18250 {\
Chris@39 18251 \ case ${1} in\
Chris@39 18252 \ */*) func_dirname_result="${1%/*}${2}" ;;\
Chris@39 18253 \ * ) func_dirname_result="${3}" ;;\
Chris@39 18254 \ esac\
Chris@39 18255 \ func_basename_result="${1##*/}"\
Chris@39 18256 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
Chris@39 18257 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@39 18258 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@39 18259 test 0 -eq $? || _lt_function_replace_fail=:
Chris@39 18260
Chris@39 18261
Chris@39 18262 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
Chris@39 18263 func_stripname ()\
Chris@39 18264 {\
Chris@39 18265 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
Chris@39 18266 \ # positional parameters, so assign one to ordinary parameter first.\
Chris@39 18267 \ func_stripname_result=${3}\
Chris@39 18268 \ func_stripname_result=${func_stripname_result#"${1}"}\
Chris@39 18269 \ func_stripname_result=${func_stripname_result%"${2}"}\
Chris@39 18270 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
Chris@39 18271 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@39 18272 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@39 18273 test 0 -eq $? || _lt_function_replace_fail=:
Chris@39 18274
Chris@39 18275
Chris@39 18276 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
Chris@39 18277 func_split_long_opt ()\
Chris@39 18278 {\
Chris@39 18279 \ func_split_long_opt_name=${1%%=*}\
Chris@39 18280 \ func_split_long_opt_arg=${1#*=}\
Chris@39 18281 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
Chris@39 18282 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@39 18283 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@39 18284 test 0 -eq $? || _lt_function_replace_fail=:
Chris@39 18285
Chris@39 18286
Chris@39 18287 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
Chris@39 18288 func_split_short_opt ()\
Chris@39 18289 {\
Chris@39 18290 \ func_split_short_opt_arg=${1#??}\
Chris@39 18291 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
Chris@39 18292 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
Chris@39 18293 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@39 18294 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@39 18295 test 0 -eq $? || _lt_function_replace_fail=:
Chris@39 18296
Chris@39 18297
Chris@39 18298 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
Chris@39 18299 func_lo2o ()\
Chris@39 18300 {\
Chris@39 18301 \ case ${1} in\
Chris@39 18302 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
Chris@39 18303 \ *) func_lo2o_result=${1} ;;\
Chris@39 18304 \ esac\
Chris@39 18305 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
Chris@39 18306 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@39 18307 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@39 18308 test 0 -eq $? || _lt_function_replace_fail=:
Chris@39 18309
Chris@39 18310
Chris@39 18311 sed -e '/^func_xform ()$/,/^} # func_xform /c\
Chris@39 18312 func_xform ()\
Chris@39 18313 {\
Chris@39 18314 func_xform_result=${1%.*}.lo\
Chris@39 18315 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
Chris@39 18316 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@39 18317 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@39 18318 test 0 -eq $? || _lt_function_replace_fail=:
Chris@39 18319
Chris@39 18320
Chris@39 18321 sed -e '/^func_arith ()$/,/^} # func_arith /c\
Chris@39 18322 func_arith ()\
Chris@39 18323 {\
Chris@39 18324 func_arith_result=$(( $* ))\
Chris@39 18325 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
Chris@39 18326 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@39 18327 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@39 18328 test 0 -eq $? || _lt_function_replace_fail=:
Chris@39 18329
Chris@39 18330
Chris@39 18331 sed -e '/^func_len ()$/,/^} # func_len /c\
Chris@39 18332 func_len ()\
Chris@39 18333 {\
Chris@39 18334 func_len_result=${#1}\
Chris@39 18335 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
Chris@39 18336 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@39 18337 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@39 18338 test 0 -eq $? || _lt_function_replace_fail=:
Chris@39 18339
Chris@39 18340 fi
Chris@39 18341
Chris@39 18342 if test x"$lt_shell_append" = xyes; then
Chris@39 18343 sed -e '/^func_append ()$/,/^} # func_append /c\
Chris@39 18344 func_append ()\
Chris@39 18345 {\
Chris@39 18346 eval "${1}+=\\${2}"\
Chris@39 18347 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
Chris@39 18348 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@39 18349 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@39 18350 test 0 -eq $? || _lt_function_replace_fail=:
Chris@39 18351
Chris@39 18352
Chris@39 18353 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
Chris@39 18354 func_append_quoted ()\
Chris@39 18355 {\
Chris@39 18356 \ func_quote_for_eval "${2}"\
Chris@39 18357 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
Chris@39 18358 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
Chris@39 18359 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@39 18360 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@39 18361 test 0 -eq $? || _lt_function_replace_fail=:
Chris@39 18362
Chris@39 18363
Chris@39 18364 # Save a `func_append' function call where possible by direct use of '+='
Chris@39 18365 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
Chris@39 18366 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@39 18367 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@39 18368 test 0 -eq $? || _lt_function_replace_fail=:
Chris@39 18369 else
Chris@39 18370 # Save a `func_append' function call even when '+=' is not available
Chris@39 18371 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
Chris@39 18372 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@39 18373 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@39 18374 test 0 -eq $? || _lt_function_replace_fail=:
Chris@39 18375 fi
Chris@39 18376
Chris@39 18377 if test x"$_lt_function_replace_fail" = x":"; then
Chris@39 18378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
Chris@39 18379 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
Chris@39 18380 fi
Chris@39 18381
Chris@39 18382
Chris@39 18383 mv -f "$cfgfile" "$ofile" ||
Chris@39 18384 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
Chris@39 18385 chmod +x "$ofile"
Chris@39 18386
Chris@39 18387
Chris@39 18388 cat <<_LT_EOF >> "$ofile"
Chris@39 18389
Chris@39 18390 # ### BEGIN LIBTOOL TAG CONFIG: CXX
Chris@39 18391
Chris@39 18392 # The linker used to build libraries.
Chris@39 18393 LD=$lt_LD_CXX
Chris@39 18394
Chris@39 18395 # How to create reloadable object files.
Chris@39 18396 reload_flag=$lt_reload_flag_CXX
Chris@39 18397 reload_cmds=$lt_reload_cmds_CXX
Chris@39 18398
Chris@39 18399 # Commands used to build an old-style archive.
Chris@39 18400 old_archive_cmds=$lt_old_archive_cmds_CXX
Chris@39 18401
Chris@39 18402 # A language specific compiler.
Chris@39 18403 CC=$lt_compiler_CXX
Chris@39 18404
Chris@39 18405 # Is the compiler the GNU compiler?
Chris@39 18406 with_gcc=$GCC_CXX
Chris@39 18407
Chris@39 18408 # Compiler flag to turn off builtin functions.
Chris@39 18409 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
Chris@39 18410
Chris@39 18411 # Additional compiler flags for building library objects.
Chris@39 18412 pic_flag=$lt_lt_prog_compiler_pic_CXX
Chris@39 18413
Chris@39 18414 # How to pass a linker flag through the compiler.
Chris@39 18415 wl=$lt_lt_prog_compiler_wl_CXX
Chris@39 18416
Chris@39 18417 # Compiler flag to prevent dynamic linking.
Chris@39 18418 link_static_flag=$lt_lt_prog_compiler_static_CXX
Chris@39 18419
Chris@39 18420 # Does compiler simultaneously support -c and -o options?
Chris@39 18421 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
Chris@39 18422
Chris@39 18423 # Whether or not to add -lc for building shared libraries.
Chris@39 18424 build_libtool_need_lc=$archive_cmds_need_lc_CXX
Chris@39 18425
Chris@39 18426 # Whether or not to disallow shared libs when runtime libs are static.
Chris@39 18427 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
Chris@39 18428
Chris@39 18429 # Compiler flag to allow reflexive dlopens.
Chris@39 18430 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
Chris@39 18431
Chris@39 18432 # Compiler flag to generate shared objects directly from archives.
Chris@39 18433 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
Chris@39 18434
Chris@39 18435 # Whether the compiler copes with passing no objects directly.
Chris@39 18436 compiler_needs_object=$lt_compiler_needs_object_CXX
Chris@39 18437
Chris@39 18438 # Create an old-style archive from a shared archive.
Chris@39 18439 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
Chris@39 18440
Chris@39 18441 # Create a temporary old-style archive to link instead of a shared archive.
Chris@39 18442 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
Chris@39 18443
Chris@39 18444 # Commands used to build a shared archive.
Chris@39 18445 archive_cmds=$lt_archive_cmds_CXX
Chris@39 18446 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
Chris@39 18447
Chris@39 18448 # Commands used to build a loadable module if different from building
Chris@39 18449 # a shared archive.
Chris@39 18450 module_cmds=$lt_module_cmds_CXX
Chris@39 18451 module_expsym_cmds=$lt_module_expsym_cmds_CXX
Chris@39 18452
Chris@39 18453 # Whether we are building with GNU ld or not.
Chris@39 18454 with_gnu_ld=$lt_with_gnu_ld_CXX
Chris@39 18455
Chris@39 18456 # Flag that allows shared libraries with undefined symbols to be built.
Chris@39 18457 allow_undefined_flag=$lt_allow_undefined_flag_CXX
Chris@39 18458
Chris@39 18459 # Flag that enforces no undefined symbols.
Chris@39 18460 no_undefined_flag=$lt_no_undefined_flag_CXX
Chris@39 18461
Chris@39 18462 # Flag to hardcode \$libdir into a binary during linking.
Chris@39 18463 # This must work even if \$libdir does not exist
Chris@39 18464 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
Chris@39 18465
Chris@39 18466 # If ld is used when linking, flag to hardcode \$libdir into a binary
Chris@39 18467 # during linking. This must work even if \$libdir does not exist.
Chris@39 18468 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
Chris@39 18469
Chris@39 18470 # Whether we need a single "-rpath" flag with a separated argument.
Chris@39 18471 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
Chris@39 18472
Chris@39 18473 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
Chris@39 18474 # DIR into the resulting binary.
Chris@39 18475 hardcode_direct=$hardcode_direct_CXX
Chris@39 18476
Chris@39 18477 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
Chris@39 18478 # DIR into the resulting binary and the resulting library dependency is
Chris@39 18479 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
Chris@39 18480 # library is relocated.
Chris@39 18481 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
Chris@39 18482
Chris@39 18483 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
Chris@39 18484 # into the resulting binary.
Chris@39 18485 hardcode_minus_L=$hardcode_minus_L_CXX
Chris@39 18486
Chris@39 18487 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
Chris@39 18488 # into the resulting binary.
Chris@39 18489 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
Chris@39 18490
Chris@39 18491 # Set to "yes" if building a shared library automatically hardcodes DIR
Chris@39 18492 # into the library and all subsequent libraries and executables linked
Chris@39 18493 # against it.
Chris@39 18494 hardcode_automatic=$hardcode_automatic_CXX
Chris@39 18495
Chris@39 18496 # Set to yes if linker adds runtime paths of dependent libraries
Chris@39 18497 # to runtime path list.
Chris@39 18498 inherit_rpath=$inherit_rpath_CXX
Chris@39 18499
Chris@39 18500 # Whether libtool must link a program against all its dependency libraries.
Chris@39 18501 link_all_deplibs=$link_all_deplibs_CXX
Chris@39 18502
Chris@39 18503 # Set to "yes" if exported symbols are required.
Chris@39 18504 always_export_symbols=$always_export_symbols_CXX
Chris@39 18505
Chris@39 18506 # The commands to list exported symbols.
Chris@39 18507 export_symbols_cmds=$lt_export_symbols_cmds_CXX
Chris@39 18508
Chris@39 18509 # Symbols that should not be listed in the preloaded symbols.
Chris@39 18510 exclude_expsyms=$lt_exclude_expsyms_CXX
Chris@39 18511
Chris@39 18512 # Symbols that must always be exported.
Chris@39 18513 include_expsyms=$lt_include_expsyms_CXX
Chris@39 18514
Chris@39 18515 # Commands necessary for linking programs (against libraries) with templates.
Chris@39 18516 prelink_cmds=$lt_prelink_cmds_CXX
Chris@39 18517
Chris@39 18518 # Commands necessary for finishing linking programs.
Chris@39 18519 postlink_cmds=$lt_postlink_cmds_CXX
Chris@39 18520
Chris@39 18521 # Specify filename containing input files.
Chris@39 18522 file_list_spec=$lt_file_list_spec_CXX
Chris@39 18523
Chris@39 18524 # How to hardcode a shared library path into an executable.
Chris@39 18525 hardcode_action=$hardcode_action_CXX
Chris@39 18526
Chris@39 18527 # The directories searched by this compiler when creating a shared library.
Chris@39 18528 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
Chris@39 18529
Chris@39 18530 # Dependencies to place before and after the objects being linked to
Chris@39 18531 # create a shared library.
Chris@39 18532 predep_objects=$lt_predep_objects_CXX
Chris@39 18533 postdep_objects=$lt_postdep_objects_CXX
Chris@39 18534 predeps=$lt_predeps_CXX
Chris@39 18535 postdeps=$lt_postdeps_CXX
Chris@39 18536
Chris@39 18537 # The library search path used internally by the compiler when linking
Chris@39 18538 # a shared library.
Chris@39 18539 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
Chris@39 18540
Chris@39 18541 # ### END LIBTOOL TAG CONFIG: CXX
Chris@39 18542 _LT_EOF
Chris@39 18543
Chris@39 18544 ;;
Chris@39 18545
Chris@39 18546 esac
Chris@39 18547 done # for ac_tag
Chris@39 18548
Chris@39 18549
Chris@39 18550 as_fn_exit 0
Chris@39 18551 _ACEOF
Chris@39 18552 ac_clean_files=$ac_clean_files_save
Chris@39 18553
Chris@39 18554 test $ac_write_fail = 0 ||
Chris@39 18555 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Chris@39 18556
Chris@39 18557
Chris@39 18558 # configure is writing to config.log, and then calls config.status.
Chris@39 18559 # config.status does its own redirection, appending to config.log.
Chris@39 18560 # Unfortunately, on DOS this fails, as config.log is still kept open
Chris@39 18561 # by configure, so config.status won't be able to write to it; its
Chris@39 18562 # output is simply discarded. So we exec the FD to /dev/null,
Chris@39 18563 # effectively closing config.log, so it can be properly (re)opened and
Chris@39 18564 # appended to by config.status. When coming back to configure, we
Chris@39 18565 # need to make the FD available again.
Chris@39 18566 if test "$no_create" != yes; then
Chris@39 18567 ac_cs_success=:
Chris@39 18568 ac_config_status_args=
Chris@39 18569 test "$silent" = yes &&
Chris@39 18570 ac_config_status_args="$ac_config_status_args --quiet"
Chris@39 18571 exec 5>/dev/null
Chris@39 18572 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Chris@39 18573 exec 5>>config.log
Chris@39 18574 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
Chris@39 18575 # would make configure fail if this is the last instruction.
Chris@39 18576 $ac_cs_success || as_fn_exit 1
Chris@39 18577 fi
Chris@39 18578
Chris@39 18579 #
Chris@39 18580 # CONFIG_SUBDIRS section.
Chris@39 18581 #
Chris@39 18582 if test "$no_recursion" != yes; then
Chris@39 18583
Chris@39 18584 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
Chris@39 18585 # so they do not pile up.
Chris@39 18586 ac_sub_configure_args=
Chris@39 18587 ac_prev=
Chris@39 18588 eval "set x $ac_configure_args"
Chris@39 18589 shift
Chris@39 18590 for ac_arg
Chris@39 18591 do
Chris@39 18592 if test -n "$ac_prev"; then
Chris@39 18593 ac_prev=
Chris@39 18594 continue
Chris@39 18595 fi
Chris@39 18596 case $ac_arg in
Chris@39 18597 -cache-file | --cache-file | --cache-fil | --cache-fi \
Chris@39 18598 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
Chris@39 18599 ac_prev=cache_file ;;
Chris@39 18600 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
Chris@39 18601 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
Chris@39 18602 | --c=*)
Chris@39 18603 ;;
Chris@39 18604 --config-cache | -C)
Chris@39 18605 ;;
Chris@39 18606 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
Chris@39 18607 ac_prev=srcdir ;;
Chris@39 18608 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Chris@39 18609 ;;
Chris@39 18610 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
Chris@39 18611 ac_prev=prefix ;;
Chris@39 18612 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Chris@39 18613 ;;
Chris@39 18614 --disable-option-checking)
Chris@39 18615 ;;
Chris@39 18616 *)
Chris@39 18617 case $ac_arg in
Chris@39 18618 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@39 18619 esac
Chris@39 18620 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
Chris@39 18621 esac
Chris@39 18622 done
Chris@39 18623
Chris@39 18624 # Always prepend --prefix to ensure using the same prefix
Chris@39 18625 # in subdir configurations.
Chris@39 18626 ac_arg="--prefix=$prefix"
Chris@39 18627 case $ac_arg in
Chris@39 18628 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@39 18629 esac
Chris@39 18630 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
Chris@39 18631
Chris@39 18632 # Pass --silent
Chris@39 18633 if test "$silent" = yes; then
Chris@39 18634 ac_sub_configure_args="--silent $ac_sub_configure_args"
Chris@39 18635 fi
Chris@39 18636
Chris@39 18637 # Always prepend --disable-option-checking to silence warnings, since
Chris@39 18638 # different subdirs can have different --enable and --with options.
Chris@39 18639 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
Chris@39 18640
Chris@39 18641 ac_popdir=`pwd`
Chris@39 18642 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
Chris@39 18643
Chris@39 18644 # Do not complain, so a configure script can configure whichever
Chris@39 18645 # parts of a large source tree are present.
Chris@39 18646 test -d "$srcdir/$ac_dir" || continue
Chris@39 18647
Chris@39 18648 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Chris@39 18649 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
Chris@39 18650 $as_echo "$ac_msg" >&6
Chris@39 18651 as_dir="$ac_dir"; as_fn_mkdir_p
Chris@39 18652 ac_builddir=.
Chris@39 18653
Chris@39 18654 case "$ac_dir" in
Chris@39 18655 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@39 18656 *)
Chris@39 18657 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Chris@39 18658 # A ".." for each directory in $ac_dir_suffix.
Chris@39 18659 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Chris@39 18660 case $ac_top_builddir_sub in
Chris@39 18661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@39 18662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
Chris@39 18663 esac ;;
Chris@39 18664 esac
Chris@39 18665 ac_abs_top_builddir=$ac_pwd
Chris@39 18666 ac_abs_builddir=$ac_pwd$ac_dir_suffix
Chris@39 18667 # for backward compatibility:
Chris@39 18668 ac_top_builddir=$ac_top_build_prefix
Chris@39 18669
Chris@39 18670 case $srcdir in
Chris@39 18671 .) # We are building in place.
Chris@39 18672 ac_srcdir=.
Chris@39 18673 ac_top_srcdir=$ac_top_builddir_sub
Chris@39 18674 ac_abs_top_srcdir=$ac_pwd ;;
Chris@39 18675 [\\/]* | ?:[\\/]* ) # Absolute name.
Chris@39 18676 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@39 18677 ac_top_srcdir=$srcdir
Chris@39 18678 ac_abs_top_srcdir=$srcdir ;;
Chris@39 18679 *) # Relative name.
Chris@39 18680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
Chris@39 18681 ac_top_srcdir=$ac_top_build_prefix$srcdir
Chris@39 18682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Chris@39 18683 esac
Chris@39 18684 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Chris@39 18685
Chris@39 18686
Chris@39 18687 cd "$ac_dir"
Chris@39 18688
Chris@39 18689 # Check for guested configure; otherwise get Cygnus style configure.
Chris@39 18690 if test -f "$ac_srcdir/configure.gnu"; then
Chris@39 18691 ac_sub_configure=$ac_srcdir/configure.gnu
Chris@39 18692 elif test -f "$ac_srcdir/configure"; then
Chris@39 18693 ac_sub_configure=$ac_srcdir/configure
Chris@39 18694 elif test -f "$ac_srcdir/configure.in"; then
Chris@39 18695 # This should be Cygnus configure.
Chris@39 18696 ac_sub_configure=$ac_aux_dir/configure
Chris@39 18697 else
Chris@39 18698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
Chris@39 18699 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
Chris@39 18700 ac_sub_configure=
Chris@39 18701 fi
Chris@39 18702
Chris@39 18703 # The recursion is here.
Chris@39 18704 if test -n "$ac_sub_configure"; then
Chris@39 18705 # Make the cache file name correct relative to the subdirectory.
Chris@39 18706 case $cache_file in
Chris@39 18707 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Chris@39 18708 *) # Relative name.
Chris@39 18709 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
Chris@39 18710 esac
Chris@39 18711
Chris@39 18712 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
Chris@39 18713 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
Chris@39 18714 # The eval makes quoting arguments work.
Chris@39 18715 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
Chris@39 18716 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Chris@39 18717 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
Chris@39 18718 fi
Chris@39 18719
Chris@39 18720 cd "$ac_popdir"
Chris@39 18721 done
Chris@39 18722 fi
Chris@39 18723 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Chris@39 18724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Chris@39 18725 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Chris@39 18726 fi
Chris@39 18727
Chris@39 18728
Chris@39 18729 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
Chris@39 18730 Configuration summary:
Chris@39 18731
Chris@39 18732 Target ...................... $target
Chris@39 18733 C++ bindings ................ $enable_cxx
Chris@39 18734 Debug output ................ $debug_output" >&5
Chris@39 18735 $as_echo "
Chris@39 18736 Configuration summary:
Chris@39 18737
Chris@39 18738 Target ...................... $target
Chris@39 18739 C++ bindings ................ $enable_cxx
Chris@39 18740 Debug output ................ $debug_output" >&6; }
Chris@39 18741
Chris@39 18742 case "$target_os" in *linux*)
Chris@39 18743 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
Chris@39 18744 ALSA ........................ $have_alsa
Chris@39 18745 ASIHPI ...................... $have_asihpi" >&5
Chris@39 18746 $as_echo "
Chris@39 18747 ALSA ........................ $have_alsa
Chris@39 18748 ASIHPI ...................... $have_asihpi" >&6; }
Chris@39 18749 ;;
Chris@39 18750 esac
Chris@39 18751 case "$target_os" in
Chris@39 18752 *mingw* | *cygwin*)
Chris@39 18753 test "x$with_directx" = "xyes" && with_directx="$with_directx (${with_dxdir})"
Chris@39 18754 test "x$with_wdmks" = "xyes" && with_wdmks="$with_wdmks (${with_dxdir})"
Chris@39 18755 test "x$with_asio" = "xyes" && with_asio="$with_asio (${with_asiodir})"
Chris@39 18756 test "x$with_wasapi" = "xyes"
Chris@39 18757 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
Chris@39 18758 WMME ........................ $with_wmme
Chris@39 18759 DSound ...................... $with_directx
Chris@39 18760 ASIO ........................ $with_asio
Chris@39 18761 WASAPI ...................... $with_wasapi
Chris@39 18762 WDMKS ....................... $with_wdmks
Chris@39 18763 " >&5
Chris@39 18764 $as_echo "
Chris@39 18765 WMME ........................ $with_wmme
Chris@39 18766 DSound ...................... $with_directx
Chris@39 18767 ASIO ........................ $with_asio
Chris@39 18768 WASAPI ...................... $with_wasapi
Chris@39 18769 WDMKS ....................... $with_wdmks
Chris@39 18770 " >&6; }
Chris@39 18771 ;;
Chris@39 18772 *darwin*)
Chris@39 18773 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
Chris@39 18774 Mac debug flags ............. $enable_mac_debug
Chris@39 18775 " >&5
Chris@39 18776 $as_echo "
Chris@39 18777 Mac debug flags ............. $enable_mac_debug
Chris@39 18778 " >&6; }
Chris@39 18779 ;;
Chris@39 18780 *)
Chris@39 18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
Chris@39 18782 OSS ......................... $have_oss
Chris@39 18783 JACK ........................ $have_jack
Chris@39 18784 " >&5
Chris@39 18785 $as_echo "
Chris@39 18786 OSS ......................... $have_oss
Chris@39 18787 JACK ........................ $have_jack
Chris@39 18788 " >&6; }
Chris@39 18789 ;;
Chris@39 18790 esac