annotate src/libvorbis-1.3.3/configure @ 28:a988521943bc

sord-0 -> sord and serd-0 -> serd
author Chris Cannam
date Thu, 09 Jan 2014 21:21:48 +0000
parents 05aa0afa9217
children
rev   line source
Chris@1 1 #! /bin/sh
Chris@1 2 # Guess values for system-dependent variables and create Makefiles.
Chris@1 3 # Generated by GNU Autoconf 2.68 for libvorbis 1.3.3.
Chris@1 4 #
Chris@1 5 # Report bugs to <vorbis-dev@xiph.org>.
Chris@1 6 #
Chris@1 7 #
Chris@1 8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Chris@1 9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
Chris@1 10 # Foundation, Inc.
Chris@1 11 #
Chris@1 12 #
Chris@1 13 # This configure script is free software; the Free Software Foundation
Chris@1 14 # gives unlimited permission to copy, distribute and modify it.
Chris@1 15 ## -------------------- ##
Chris@1 16 ## M4sh Initialization. ##
Chris@1 17 ## -------------------- ##
Chris@1 18
Chris@1 19 # Be more Bourne compatible
Chris@1 20 DUALCASE=1; export DUALCASE # for MKS sh
Chris@1 21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Chris@1 22 emulate sh
Chris@1 23 NULLCMD=:
Chris@1 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Chris@1 25 # is contrary to our usage. Disable this feature.
Chris@1 26 alias -g '${1+"$@"}'='"$@"'
Chris@1 27 setopt NO_GLOB_SUBST
Chris@1 28 else
Chris@1 29 case `(set -o) 2>/dev/null` in #(
Chris@1 30 *posix*) :
Chris@1 31 set -o posix ;; #(
Chris@1 32 *) :
Chris@1 33 ;;
Chris@1 34 esac
Chris@1 35 fi
Chris@1 36
Chris@1 37
Chris@1 38 as_nl='
Chris@1 39 '
Chris@1 40 export as_nl
Chris@1 41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
Chris@1 42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@1 43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@1 44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@1 45 # Prefer a ksh shell builtin over an external printf program on Solaris,
Chris@1 46 # but without wasting forks for bash or zsh.
Chris@1 47 if test -z "$BASH_VERSION$ZSH_VERSION" \
Chris@1 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@1 49 as_echo='print -r --'
Chris@1 50 as_echo_n='print -rn --'
Chris@1 51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@1 52 as_echo='printf %s\n'
Chris@1 53 as_echo_n='printf %s'
Chris@1 54 else
Chris@1 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
Chris@1 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
Chris@1 57 as_echo_n='/usr/ucb/echo -n'
Chris@1 58 else
Chris@1 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
Chris@1 60 as_echo_n_body='eval
Chris@1 61 arg=$1;
Chris@1 62 case $arg in #(
Chris@1 63 *"$as_nl"*)
Chris@1 64 expr "X$arg" : "X\\(.*\\)$as_nl";
Chris@1 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
Chris@1 66 esac;
Chris@1 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
Chris@1 68 '
Chris@1 69 export as_echo_n_body
Chris@1 70 as_echo_n='sh -c $as_echo_n_body as_echo'
Chris@1 71 fi
Chris@1 72 export as_echo_body
Chris@1 73 as_echo='sh -c $as_echo_body as_echo'
Chris@1 74 fi
Chris@1 75
Chris@1 76 # The user is always right.
Chris@1 77 if test "${PATH_SEPARATOR+set}" != set; then
Chris@1 78 PATH_SEPARATOR=:
Chris@1 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
Chris@1 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
Chris@1 81 PATH_SEPARATOR=';'
Chris@1 82 }
Chris@1 83 fi
Chris@1 84
Chris@1 85
Chris@1 86 # IFS
Chris@1 87 # We need space, tab and new line, in precisely that order. Quoting is
Chris@1 88 # there to prevent editors from complaining about space-tab.
Chris@1 89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
Chris@1 90 # splitting by setting IFS to empty value.)
Chris@1 91 IFS=" "" $as_nl"
Chris@1 92
Chris@1 93 # Find who we are. Look in the path if we contain no directory separator.
Chris@1 94 as_myself=
Chris@1 95 case $0 in #((
Chris@1 96 *[\\/]* ) as_myself=$0 ;;
Chris@1 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 98 for as_dir in $PATH
Chris@1 99 do
Chris@1 100 IFS=$as_save_IFS
Chris@1 101 test -z "$as_dir" && as_dir=.
Chris@1 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
Chris@1 103 done
Chris@1 104 IFS=$as_save_IFS
Chris@1 105
Chris@1 106 ;;
Chris@1 107 esac
Chris@1 108 # We did not find ourselves, most probably we were run as `sh COMMAND'
Chris@1 109 # in which case we are not to be found in the path.
Chris@1 110 if test "x$as_myself" = x; then
Chris@1 111 as_myself=$0
Chris@1 112 fi
Chris@1 113 if test ! -f "$as_myself"; then
Chris@1 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Chris@1 115 exit 1
Chris@1 116 fi
Chris@1 117
Chris@1 118 # Unset variables that we do not need and which cause bugs (e.g. in
Chris@1 119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
Chris@1 120 # suppresses any "Segmentation fault" message there. '((' could
Chris@1 121 # trigger a bug in pdksh 5.2.14.
Chris@1 122 for as_var in BASH_ENV ENV MAIL MAILPATH
Chris@1 123 do eval test x\${$as_var+set} = xset \
Chris@1 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Chris@1 125 done
Chris@1 126 PS1='$ '
Chris@1 127 PS2='> '
Chris@1 128 PS4='+ '
Chris@1 129
Chris@1 130 # NLS nuisances.
Chris@1 131 LC_ALL=C
Chris@1 132 export LC_ALL
Chris@1 133 LANGUAGE=C
Chris@1 134 export LANGUAGE
Chris@1 135
Chris@1 136 # CDPATH.
Chris@1 137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@1 138
Chris@1 139 if test "x$CONFIG_SHELL" = x; then
Chris@1 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
Chris@1 141 emulate sh
Chris@1 142 NULLCMD=:
Chris@1 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
Chris@1 144 # is contrary to our usage. Disable this feature.
Chris@1 145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
Chris@1 146 setopt NO_GLOB_SUBST
Chris@1 147 else
Chris@1 148 case \`(set -o) 2>/dev/null\` in #(
Chris@1 149 *posix*) :
Chris@1 150 set -o posix ;; #(
Chris@1 151 *) :
Chris@1 152 ;;
Chris@1 153 esac
Chris@1 154 fi
Chris@1 155 "
Chris@1 156 as_required="as_fn_return () { (exit \$1); }
Chris@1 157 as_fn_success () { as_fn_return 0; }
Chris@1 158 as_fn_failure () { as_fn_return 1; }
Chris@1 159 as_fn_ret_success () { return 0; }
Chris@1 160 as_fn_ret_failure () { return 1; }
Chris@1 161
Chris@1 162 exitcode=0
Chris@1 163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
Chris@1 164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
Chris@1 165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
Chris@1 166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
Chris@1 167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
Chris@1 168
Chris@1 169 else
Chris@1 170 exitcode=1; echo positional parameters were not saved.
Chris@1 171 fi
Chris@1 172 test x\$exitcode = x0 || exit 1"
Chris@1 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
Chris@1 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
Chris@1 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
Chris@1 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
Chris@1 177
Chris@1 178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
Chris@1 179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@1 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
Chris@1 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
Chris@1 182 PATH=/empty FPATH=/empty; export PATH FPATH
Chris@1 183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
Chris@1 184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
Chris@1 185 test \$(( 1 + 1 )) = 2 || exit 1"
Chris@1 186 if (eval "$as_required") 2>/dev/null; then :
Chris@1 187 as_have_required=yes
Chris@1 188 else
Chris@1 189 as_have_required=no
Chris@1 190 fi
Chris@1 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
Chris@1 192
Chris@1 193 else
Chris@1 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 195 as_found=false
Chris@1 196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Chris@1 197 do
Chris@1 198 IFS=$as_save_IFS
Chris@1 199 test -z "$as_dir" && as_dir=.
Chris@1 200 as_found=:
Chris@1 201 case $as_dir in #(
Chris@1 202 /*)
Chris@1 203 for as_base in sh bash ksh sh5; do
Chris@1 204 # Try only shells that exist, to save several forks.
Chris@1 205 as_shell=$as_dir/$as_base
Chris@1 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
Chris@1 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
Chris@1 208 CONFIG_SHELL=$as_shell as_have_required=yes
Chris@1 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
Chris@1 210 break 2
Chris@1 211 fi
Chris@1 212 fi
Chris@1 213 done;;
Chris@1 214 esac
Chris@1 215 as_found=false
Chris@1 216 done
Chris@1 217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
Chris@1 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
Chris@1 219 CONFIG_SHELL=$SHELL as_have_required=yes
Chris@1 220 fi; }
Chris@1 221 IFS=$as_save_IFS
Chris@1 222
Chris@1 223
Chris@1 224 if test "x$CONFIG_SHELL" != x; then :
Chris@1 225 # We cannot yet assume a decent shell, so we have to provide a
Chris@1 226 # neutralization value for shells without unset; and this also
Chris@1 227 # works around shells that cannot unset nonexistent variables.
Chris@1 228 # Preserve -v and -x to the replacement shell.
Chris@1 229 BASH_ENV=/dev/null
Chris@1 230 ENV=/dev/null
Chris@1 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
Chris@1 232 export CONFIG_SHELL
Chris@1 233 case $- in # ((((
Chris@1 234 *v*x* | *x*v* ) as_opts=-vx ;;
Chris@1 235 *v* ) as_opts=-v ;;
Chris@1 236 *x* ) as_opts=-x ;;
Chris@1 237 * ) as_opts= ;;
Chris@1 238 esac
Chris@1 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
Chris@1 240 fi
Chris@1 241
Chris@1 242 if test x$as_have_required = xno; then :
Chris@1 243 $as_echo "$0: This script requires a shell more modern than all"
Chris@1 244 $as_echo "$0: the shells that I found on your system."
Chris@1 245 if test x${ZSH_VERSION+set} = xset ; then
Chris@1 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
Chris@1 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
Chris@1 248 else
Chris@1 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
Chris@1 250 $0: vorbis-dev@xiph.org about your system, including any
Chris@1 251 $0: error possibly output before this message. Then install
Chris@1 252 $0: a modern shell, or manually run the script under such a
Chris@1 253 $0: shell if you do have one."
Chris@1 254 fi
Chris@1 255 exit 1
Chris@1 256 fi
Chris@1 257 fi
Chris@1 258 fi
Chris@1 259 SHELL=${CONFIG_SHELL-/bin/sh}
Chris@1 260 export SHELL
Chris@1 261 # Unset more variables known to interfere with behavior of common tools.
Chris@1 262 CLICOLOR_FORCE= GREP_OPTIONS=
Chris@1 263 unset CLICOLOR_FORCE GREP_OPTIONS
Chris@1 264
Chris@1 265 ## --------------------- ##
Chris@1 266 ## M4sh Shell Functions. ##
Chris@1 267 ## --------------------- ##
Chris@1 268 # as_fn_unset VAR
Chris@1 269 # ---------------
Chris@1 270 # Portably unset VAR.
Chris@1 271 as_fn_unset ()
Chris@1 272 {
Chris@1 273 { eval $1=; unset $1;}
Chris@1 274 }
Chris@1 275 as_unset=as_fn_unset
Chris@1 276
Chris@1 277 # as_fn_set_status STATUS
Chris@1 278 # -----------------------
Chris@1 279 # Set $? to STATUS, without forking.
Chris@1 280 as_fn_set_status ()
Chris@1 281 {
Chris@1 282 return $1
Chris@1 283 } # as_fn_set_status
Chris@1 284
Chris@1 285 # as_fn_exit STATUS
Chris@1 286 # -----------------
Chris@1 287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
Chris@1 288 as_fn_exit ()
Chris@1 289 {
Chris@1 290 set +e
Chris@1 291 as_fn_set_status $1
Chris@1 292 exit $1
Chris@1 293 } # as_fn_exit
Chris@1 294
Chris@1 295 # as_fn_mkdir_p
Chris@1 296 # -------------
Chris@1 297 # Create "$as_dir" as a directory, including parents if necessary.
Chris@1 298 as_fn_mkdir_p ()
Chris@1 299 {
Chris@1 300
Chris@1 301 case $as_dir in #(
Chris@1 302 -*) as_dir=./$as_dir;;
Chris@1 303 esac
Chris@1 304 test -d "$as_dir" || eval $as_mkdir_p || {
Chris@1 305 as_dirs=
Chris@1 306 while :; do
Chris@1 307 case $as_dir in #(
Chris@1 308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Chris@1 309 *) as_qdir=$as_dir;;
Chris@1 310 esac
Chris@1 311 as_dirs="'$as_qdir' $as_dirs"
Chris@1 312 as_dir=`$as_dirname -- "$as_dir" ||
Chris@1 313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@1 314 X"$as_dir" : 'X\(//\)[^/]' \| \
Chris@1 315 X"$as_dir" : 'X\(//\)$' \| \
Chris@1 316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Chris@1 317 $as_echo X"$as_dir" |
Chris@1 318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@1 319 s//\1/
Chris@1 320 q
Chris@1 321 }
Chris@1 322 /^X\(\/\/\)[^/].*/{
Chris@1 323 s//\1/
Chris@1 324 q
Chris@1 325 }
Chris@1 326 /^X\(\/\/\)$/{
Chris@1 327 s//\1/
Chris@1 328 q
Chris@1 329 }
Chris@1 330 /^X\(\/\).*/{
Chris@1 331 s//\1/
Chris@1 332 q
Chris@1 333 }
Chris@1 334 s/.*/./; q'`
Chris@1 335 test -d "$as_dir" && break
Chris@1 336 done
Chris@1 337 test -z "$as_dirs" || eval "mkdir $as_dirs"
Chris@1 338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Chris@1 339
Chris@1 340
Chris@1 341 } # as_fn_mkdir_p
Chris@1 342 # as_fn_append VAR VALUE
Chris@1 343 # ----------------------
Chris@1 344 # Append the text in VALUE to the end of the definition contained in VAR. Take
Chris@1 345 # advantage of any shell optimizations that allow amortized linear growth over
Chris@1 346 # repeated appends, instead of the typical quadratic growth present in naive
Chris@1 347 # implementations.
Chris@1 348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
Chris@1 349 eval 'as_fn_append ()
Chris@1 350 {
Chris@1 351 eval $1+=\$2
Chris@1 352 }'
Chris@1 353 else
Chris@1 354 as_fn_append ()
Chris@1 355 {
Chris@1 356 eval $1=\$$1\$2
Chris@1 357 }
Chris@1 358 fi # as_fn_append
Chris@1 359
Chris@1 360 # as_fn_arith ARG...
Chris@1 361 # ------------------
Chris@1 362 # Perform arithmetic evaluation on the ARGs, and store the result in the
Chris@1 363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
Chris@1 364 # must be portable across $(()) and expr.
Chris@1 365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
Chris@1 366 eval 'as_fn_arith ()
Chris@1 367 {
Chris@1 368 as_val=$(( $* ))
Chris@1 369 }'
Chris@1 370 else
Chris@1 371 as_fn_arith ()
Chris@1 372 {
Chris@1 373 as_val=`expr "$@" || test $? -eq 1`
Chris@1 374 }
Chris@1 375 fi # as_fn_arith
Chris@1 376
Chris@1 377
Chris@1 378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
Chris@1 379 # ----------------------------------------
Chris@1 380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
Chris@1 381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Chris@1 382 # script with STATUS, using 1 if that was 0.
Chris@1 383 as_fn_error ()
Chris@1 384 {
Chris@1 385 as_status=$1; test $as_status -eq 0 && as_status=1
Chris@1 386 if test "$4"; then
Chris@1 387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@1 388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Chris@1 389 fi
Chris@1 390 $as_echo "$as_me: error: $2" >&2
Chris@1 391 as_fn_exit $as_status
Chris@1 392 } # as_fn_error
Chris@1 393
Chris@1 394 if expr a : '\(a\)' >/dev/null 2>&1 &&
Chris@1 395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Chris@1 396 as_expr=expr
Chris@1 397 else
Chris@1 398 as_expr=false
Chris@1 399 fi
Chris@1 400
Chris@1 401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Chris@1 402 as_basename=basename
Chris@1 403 else
Chris@1 404 as_basename=false
Chris@1 405 fi
Chris@1 406
Chris@1 407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
Chris@1 408 as_dirname=dirname
Chris@1 409 else
Chris@1 410 as_dirname=false
Chris@1 411 fi
Chris@1 412
Chris@1 413 as_me=`$as_basename -- "$0" ||
Chris@1 414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
Chris@1 415 X"$0" : 'X\(//\)$' \| \
Chris@1 416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Chris@1 417 $as_echo X/"$0" |
Chris@1 418 sed '/^.*\/\([^/][^/]*\)\/*$/{
Chris@1 419 s//\1/
Chris@1 420 q
Chris@1 421 }
Chris@1 422 /^X\/\(\/\/\)$/{
Chris@1 423 s//\1/
Chris@1 424 q
Chris@1 425 }
Chris@1 426 /^X\/\(\/\).*/{
Chris@1 427 s//\1/
Chris@1 428 q
Chris@1 429 }
Chris@1 430 s/.*/./; q'`
Chris@1 431
Chris@1 432 # Avoid depending upon Character Ranges.
Chris@1 433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
Chris@1 434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
Chris@1 435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
Chris@1 436 as_cr_digits='0123456789'
Chris@1 437 as_cr_alnum=$as_cr_Letters$as_cr_digits
Chris@1 438
Chris@1 439
Chris@1 440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
Chris@1 441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
Chris@1 442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
Chris@1 443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
Chris@1 444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Chris@1 445 sed -n '
Chris@1 446 p
Chris@1 447 /[$]LINENO/=
Chris@1 448 ' <$as_myself |
Chris@1 449 sed '
Chris@1 450 s/[$]LINENO.*/&-/
Chris@1 451 t lineno
Chris@1 452 b
Chris@1 453 :lineno
Chris@1 454 N
Chris@1 455 :loop
Chris@1 456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Chris@1 457 t loop
Chris@1 458 s/-\n.*//
Chris@1 459 ' >$as_me.lineno &&
Chris@1 460 chmod +x "$as_me.lineno" ||
Chris@1 461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Chris@1 462
Chris@1 463 # Don't try to exec as it changes $[0], causing all sort of problems
Chris@1 464 # (the dirname of $[0] is not the place where we might find the
Chris@1 465 # original and so on. Autoconf is especially sensitive to this).
Chris@1 466 . "./$as_me.lineno"
Chris@1 467 # Exit status is that of the last command.
Chris@1 468 exit
Chris@1 469 }
Chris@1 470
Chris@1 471 ECHO_C= ECHO_N= ECHO_T=
Chris@1 472 case `echo -n x` in #(((((
Chris@1 473 -n*)
Chris@1 474 case `echo 'xy\c'` in
Chris@1 475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Chris@1 476 xy) ECHO_C='\c';;
Chris@1 477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
Chris@1 478 ECHO_T=' ';;
Chris@1 479 esac;;
Chris@1 480 *)
Chris@1 481 ECHO_N='-n';;
Chris@1 482 esac
Chris@1 483
Chris@1 484 rm -f conf$$ conf$$.exe conf$$.file
Chris@1 485 if test -d conf$$.dir; then
Chris@1 486 rm -f conf$$.dir/conf$$.file
Chris@1 487 else
Chris@1 488 rm -f conf$$.dir
Chris@1 489 mkdir conf$$.dir 2>/dev/null
Chris@1 490 fi
Chris@1 491 if (echo >conf$$.file) 2>/dev/null; then
Chris@1 492 if ln -s conf$$.file conf$$ 2>/dev/null; then
Chris@1 493 as_ln_s='ln -s'
Chris@1 494 # ... but there are two gotchas:
Chris@1 495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
Chris@1 496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Chris@1 497 # In both cases, we have to default to `cp -p'.
Chris@1 498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Chris@1 499 as_ln_s='cp -p'
Chris@1 500 elif ln conf$$.file conf$$ 2>/dev/null; then
Chris@1 501 as_ln_s=ln
Chris@1 502 else
Chris@1 503 as_ln_s='cp -p'
Chris@1 504 fi
Chris@1 505 else
Chris@1 506 as_ln_s='cp -p'
Chris@1 507 fi
Chris@1 508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
Chris@1 509 rmdir conf$$.dir 2>/dev/null
Chris@1 510
Chris@1 511 if mkdir -p . 2>/dev/null; then
Chris@1 512 as_mkdir_p='mkdir -p "$as_dir"'
Chris@1 513 else
Chris@1 514 test -d ./-p && rmdir ./-p
Chris@1 515 as_mkdir_p=false
Chris@1 516 fi
Chris@1 517
Chris@1 518 if test -x / >/dev/null 2>&1; then
Chris@1 519 as_test_x='test -x'
Chris@1 520 else
Chris@1 521 if ls -dL / >/dev/null 2>&1; then
Chris@1 522 as_ls_L_option=L
Chris@1 523 else
Chris@1 524 as_ls_L_option=
Chris@1 525 fi
Chris@1 526 as_test_x='
Chris@1 527 eval sh -c '\''
Chris@1 528 if test -d "$1"; then
Chris@1 529 test -d "$1/.";
Chris@1 530 else
Chris@1 531 case $1 in #(
Chris@1 532 -*)set "./$1";;
Chris@1 533 esac;
Chris@1 534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Chris@1 535 ???[sx]*):;;*)false;;esac;fi
Chris@1 536 '\'' sh
Chris@1 537 '
Chris@1 538 fi
Chris@1 539 as_executable_p=$as_test_x
Chris@1 540
Chris@1 541 # Sed expression to map a string onto a valid CPP name.
Chris@1 542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Chris@1 543
Chris@1 544 # Sed expression to map a string onto a valid variable name.
Chris@1 545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Chris@1 546
Chris@1 547 SHELL=${CONFIG_SHELL-/bin/sh}
Chris@1 548
Chris@1 549
Chris@1 550 test -n "$DJDIR" || exec 7<&0 </dev/null
Chris@1 551 exec 6>&1
Chris@1 552
Chris@1 553 # Name of the host.
Chris@1 554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Chris@1 555 # so uname gets run too.
Chris@1 556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@1 557
Chris@1 558 #
Chris@1 559 # Initializations.
Chris@1 560 #
Chris@1 561 ac_default_prefix=/usr/local
Chris@1 562 ac_clean_files=
Chris@1 563 ac_config_libobj_dir=.
Chris@1 564 LIBOBJS=
Chris@1 565 cross_compiling=no
Chris@1 566 subdirs=
Chris@1 567 MFLAGS=
Chris@1 568 MAKEFLAGS=
Chris@1 569
Chris@1 570 # Identity of this package.
Chris@1 571 PACKAGE_NAME='libvorbis'
Chris@1 572 PACKAGE_TARNAME='libvorbis'
Chris@1 573 PACKAGE_VERSION='1.3.3'
Chris@1 574 PACKAGE_STRING='libvorbis 1.3.3'
Chris@1 575 PACKAGE_BUGREPORT='vorbis-dev@xiph.org'
Chris@1 576 PACKAGE_URL=''
Chris@1 577
Chris@1 578 ac_unique_file="lib/mdct.c"
Chris@1 579 # Factoring default headers for most tests.
Chris@1 580 ac_includes_default="\
Chris@1 581 #include <stdio.h>
Chris@1 582 #ifdef HAVE_SYS_TYPES_H
Chris@1 583 # include <sys/types.h>
Chris@1 584 #endif
Chris@1 585 #ifdef HAVE_SYS_STAT_H
Chris@1 586 # include <sys/stat.h>
Chris@1 587 #endif
Chris@1 588 #ifdef STDC_HEADERS
Chris@1 589 # include <stdlib.h>
Chris@1 590 # include <stddef.h>
Chris@1 591 #else
Chris@1 592 # ifdef HAVE_STDLIB_H
Chris@1 593 # include <stdlib.h>
Chris@1 594 # endif
Chris@1 595 #endif
Chris@1 596 #ifdef HAVE_STRING_H
Chris@1 597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Chris@1 598 # include <memory.h>
Chris@1 599 # endif
Chris@1 600 # include <string.h>
Chris@1 601 #endif
Chris@1 602 #ifdef HAVE_STRINGS_H
Chris@1 603 # include <strings.h>
Chris@1 604 #endif
Chris@1 605 #ifdef HAVE_INTTYPES_H
Chris@1 606 # include <inttypes.h>
Chris@1 607 #endif
Chris@1 608 #ifdef HAVE_STDINT_H
Chris@1 609 # include <stdint.h>
Chris@1 610 #endif
Chris@1 611 #ifdef HAVE_UNISTD_H
Chris@1 612 # include <unistd.h>
Chris@1 613 #endif"
Chris@1 614
Chris@1 615 ac_subst_vars='am__EXEEXT_FALSE
Chris@1 616 am__EXEEXT_TRUE
Chris@1 617 LTLIBOBJS
Chris@1 618 LIBTOOL_DEPS
Chris@1 619 pthread_lib
Chris@1 620 PROFILE
Chris@1 621 DEBUG
Chris@1 622 VORBIS_LIBS
Chris@1 623 LIBOBJS
Chris@1 624 ALLOCA
Chris@1 625 OGG_LIBS
Chris@1 626 OGG_CFLAGS
Chris@1 627 PKG_CONFIG
Chris@1 628 BUILD_EXAMPLES_FALSE
Chris@1 629 BUILD_EXAMPLES_TRUE
Chris@1 630 BUILD_DOCS_FALSE
Chris@1 631 BUILD_DOCS_TRUE
Chris@1 632 HTLATEX
Chris@1 633 PDFLATEX
Chris@1 634 HAVE_DOXYGEN_FALSE
Chris@1 635 HAVE_DOXYGEN_TRUE
Chris@1 636 HAVE_DOXYGEN
Chris@1 637 OTOOL64
Chris@1 638 OTOOL
Chris@1 639 LIPO
Chris@1 640 NMEDIT
Chris@1 641 DSYMUTIL
Chris@1 642 MANIFEST_TOOL
Chris@1 643 RANLIB
Chris@1 644 ac_ct_AR
Chris@1 645 AR
Chris@1 646 LN_S
Chris@1 647 NM
Chris@1 648 ac_ct_DUMPBIN
Chris@1 649 DUMPBIN
Chris@1 650 LD
Chris@1 651 FGREP
Chris@1 652 EGREP
Chris@1 653 GREP
Chris@1 654 SED
Chris@1 655 LIBTOOL
Chris@1 656 OBJDUMP
Chris@1 657 DLLTOOL
Chris@1 658 AS
Chris@1 659 CPP
Chris@1 660 am__fastdepCC_FALSE
Chris@1 661 am__fastdepCC_TRUE
Chris@1 662 CCDEPMODE
Chris@1 663 AMDEPBACKSLASH
Chris@1 664 AMDEP_FALSE
Chris@1 665 AMDEP_TRUE
Chris@1 666 am__quote
Chris@1 667 am__include
Chris@1 668 DEPDIR
Chris@1 669 OBJEXT
Chris@1 670 EXEEXT
Chris@1 671 ac_ct_CC
Chris@1 672 CPPFLAGS
Chris@1 673 LDFLAGS
Chris@1 674 CFLAGS
Chris@1 675 CC
Chris@1 676 VE_LIB_AGE
Chris@1 677 VE_LIB_REVISION
Chris@1 678 VE_LIB_CURRENT
Chris@1 679 VF_LIB_AGE
Chris@1 680 VF_LIB_REVISION
Chris@1 681 VF_LIB_CURRENT
Chris@1 682 V_LIB_AGE
Chris@1 683 V_LIB_REVISION
Chris@1 684 V_LIB_CURRENT
Chris@1 685 ACLOCAL_AMFLAGS
Chris@1 686 MAINT
Chris@1 687 MAINTAINER_MODE_FALSE
Chris@1 688 MAINTAINER_MODE_TRUE
Chris@1 689 am__untar
Chris@1 690 am__tar
Chris@1 691 AMTAR
Chris@1 692 am__leading_dot
Chris@1 693 SET_MAKE
Chris@1 694 AWK
Chris@1 695 mkdir_p
Chris@1 696 MKDIR_P
Chris@1 697 INSTALL_STRIP_PROGRAM
Chris@1 698 STRIP
Chris@1 699 install_sh
Chris@1 700 MAKEINFO
Chris@1 701 AUTOHEADER
Chris@1 702 AUTOMAKE
Chris@1 703 AUTOCONF
Chris@1 704 ACLOCAL
Chris@1 705 VERSION
Chris@1 706 PACKAGE
Chris@1 707 CYGPATH_W
Chris@1 708 am__isrc
Chris@1 709 INSTALL_DATA
Chris@1 710 INSTALL_SCRIPT
Chris@1 711 INSTALL_PROGRAM
Chris@1 712 target_os
Chris@1 713 target_vendor
Chris@1 714 target_cpu
Chris@1 715 target
Chris@1 716 host_os
Chris@1 717 host_vendor
Chris@1 718 host_cpu
Chris@1 719 host
Chris@1 720 build_os
Chris@1 721 build_vendor
Chris@1 722 build_cpu
Chris@1 723 build
Chris@1 724 target_alias
Chris@1 725 host_alias
Chris@1 726 build_alias
Chris@1 727 LIBS
Chris@1 728 ECHO_T
Chris@1 729 ECHO_N
Chris@1 730 ECHO_C
Chris@1 731 DEFS
Chris@1 732 mandir
Chris@1 733 localedir
Chris@1 734 libdir
Chris@1 735 psdir
Chris@1 736 pdfdir
Chris@1 737 dvidir
Chris@1 738 htmldir
Chris@1 739 infodir
Chris@1 740 docdir
Chris@1 741 oldincludedir
Chris@1 742 includedir
Chris@1 743 localstatedir
Chris@1 744 sharedstatedir
Chris@1 745 sysconfdir
Chris@1 746 datadir
Chris@1 747 datarootdir
Chris@1 748 libexecdir
Chris@1 749 sbindir
Chris@1 750 bindir
Chris@1 751 program_transform_name
Chris@1 752 prefix
Chris@1 753 exec_prefix
Chris@1 754 PACKAGE_URL
Chris@1 755 PACKAGE_BUGREPORT
Chris@1 756 PACKAGE_STRING
Chris@1 757 PACKAGE_VERSION
Chris@1 758 PACKAGE_TARNAME
Chris@1 759 PACKAGE_NAME
Chris@1 760 PATH_SEPARATOR
Chris@1 761 SHELL'
Chris@1 762 ac_subst_files=''
Chris@1 763 ac_user_opts='
Chris@1 764 enable_option_checking
Chris@1 765 enable_maintainer_mode
Chris@1 766 enable_dependency_tracking
Chris@1 767 enable_shared
Chris@1 768 enable_static
Chris@1 769 with_pic
Chris@1 770 enable_fast_install
Chris@1 771 with_gnu_ld
Chris@1 772 with_sysroot
Chris@1 773 enable_libtool_lock
Chris@1 774 enable_docs
Chris@1 775 enable_examples
Chris@1 776 with_ogg
Chris@1 777 with_ogg_libraries
Chris@1 778 with_ogg_includes
Chris@1 779 enable_oggtest
Chris@1 780 '
Chris@1 781 ac_precious_vars='build_alias
Chris@1 782 host_alias
Chris@1 783 target_alias
Chris@1 784 CC
Chris@1 785 CFLAGS
Chris@1 786 LDFLAGS
Chris@1 787 LIBS
Chris@1 788 CPPFLAGS
Chris@1 789 CPP
Chris@1 790 PKG_CONFIG
Chris@1 791 OGG_CFLAGS
Chris@1 792 OGG_LIBS'
Chris@1 793
Chris@1 794
Chris@1 795 # Initialize some variables set by options.
Chris@1 796 ac_init_help=
Chris@1 797 ac_init_version=false
Chris@1 798 ac_unrecognized_opts=
Chris@1 799 ac_unrecognized_sep=
Chris@1 800 # The variables have the same names as the options, with
Chris@1 801 # dashes changed to underlines.
Chris@1 802 cache_file=/dev/null
Chris@1 803 exec_prefix=NONE
Chris@1 804 no_create=
Chris@1 805 no_recursion=
Chris@1 806 prefix=NONE
Chris@1 807 program_prefix=NONE
Chris@1 808 program_suffix=NONE
Chris@1 809 program_transform_name=s,x,x,
Chris@1 810 silent=
Chris@1 811 site=
Chris@1 812 srcdir=
Chris@1 813 verbose=
Chris@1 814 x_includes=NONE
Chris@1 815 x_libraries=NONE
Chris@1 816
Chris@1 817 # Installation directory options.
Chris@1 818 # These are left unexpanded so users can "make install exec_prefix=/foo"
Chris@1 819 # and all the variables that are supposed to be based on exec_prefix
Chris@1 820 # by default will actually change.
Chris@1 821 # Use braces instead of parens because sh, perl, etc. also accept them.
Chris@1 822 # (The list follows the same order as the GNU Coding Standards.)
Chris@1 823 bindir='${exec_prefix}/bin'
Chris@1 824 sbindir='${exec_prefix}/sbin'
Chris@1 825 libexecdir='${exec_prefix}/libexec'
Chris@1 826 datarootdir='${prefix}/share'
Chris@1 827 datadir='${datarootdir}'
Chris@1 828 sysconfdir='${prefix}/etc'
Chris@1 829 sharedstatedir='${prefix}/com'
Chris@1 830 localstatedir='${prefix}/var'
Chris@1 831 includedir='${prefix}/include'
Chris@1 832 oldincludedir='/usr/include'
Chris@1 833 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
Chris@1 834 infodir='${datarootdir}/info'
Chris@1 835 htmldir='${docdir}'
Chris@1 836 dvidir='${docdir}'
Chris@1 837 pdfdir='${docdir}'
Chris@1 838 psdir='${docdir}'
Chris@1 839 libdir='${exec_prefix}/lib'
Chris@1 840 localedir='${datarootdir}/locale'
Chris@1 841 mandir='${datarootdir}/man'
Chris@1 842
Chris@1 843 ac_prev=
Chris@1 844 ac_dashdash=
Chris@1 845 for ac_option
Chris@1 846 do
Chris@1 847 # If the previous option needs an argument, assign it.
Chris@1 848 if test -n "$ac_prev"; then
Chris@1 849 eval $ac_prev=\$ac_option
Chris@1 850 ac_prev=
Chris@1 851 continue
Chris@1 852 fi
Chris@1 853
Chris@1 854 case $ac_option in
Chris@1 855 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
Chris@1 856 *=) ac_optarg= ;;
Chris@1 857 *) ac_optarg=yes ;;
Chris@1 858 esac
Chris@1 859
Chris@1 860 # Accept the important Cygnus configure options, so we can diagnose typos.
Chris@1 861
Chris@1 862 case $ac_dashdash$ac_option in
Chris@1 863 --)
Chris@1 864 ac_dashdash=yes ;;
Chris@1 865
Chris@1 866 -bindir | --bindir | --bindi | --bind | --bin | --bi)
Chris@1 867 ac_prev=bindir ;;
Chris@1 868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Chris@1 869 bindir=$ac_optarg ;;
Chris@1 870
Chris@1 871 -build | --build | --buil | --bui | --bu)
Chris@1 872 ac_prev=build_alias ;;
Chris@1 873 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Chris@1 874 build_alias=$ac_optarg ;;
Chris@1 875
Chris@1 876 -cache-file | --cache-file | --cache-fil | --cache-fi \
Chris@1 877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
Chris@1 878 ac_prev=cache_file ;;
Chris@1 879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
Chris@1 880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Chris@1 881 cache_file=$ac_optarg ;;
Chris@1 882
Chris@1 883 --config-cache | -C)
Chris@1 884 cache_file=config.cache ;;
Chris@1 885
Chris@1 886 -datadir | --datadir | --datadi | --datad)
Chris@1 887 ac_prev=datadir ;;
Chris@1 888 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Chris@1 889 datadir=$ac_optarg ;;
Chris@1 890
Chris@1 891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
Chris@1 892 | --dataroo | --dataro | --datar)
Chris@1 893 ac_prev=datarootdir ;;
Chris@1 894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
Chris@1 895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
Chris@1 896 datarootdir=$ac_optarg ;;
Chris@1 897
Chris@1 898 -disable-* | --disable-*)
Chris@1 899 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Chris@1 900 # Reject names that are not valid shell variable names.
Chris@1 901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@1 902 as_fn_error $? "invalid feature name: $ac_useropt"
Chris@1 903 ac_useropt_orig=$ac_useropt
Chris@1 904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@1 905 case $ac_user_opts in
Chris@1 906 *"
Chris@1 907 "enable_$ac_useropt"
Chris@1 908 "*) ;;
Chris@1 909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
Chris@1 910 ac_unrecognized_sep=', ';;
Chris@1 911 esac
Chris@1 912 eval enable_$ac_useropt=no ;;
Chris@1 913
Chris@1 914 -docdir | --docdir | --docdi | --doc | --do)
Chris@1 915 ac_prev=docdir ;;
Chris@1 916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
Chris@1 917 docdir=$ac_optarg ;;
Chris@1 918
Chris@1 919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
Chris@1 920 ac_prev=dvidir ;;
Chris@1 921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
Chris@1 922 dvidir=$ac_optarg ;;
Chris@1 923
Chris@1 924 -enable-* | --enable-*)
Chris@1 925 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Chris@1 926 # Reject names that are not valid shell variable names.
Chris@1 927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@1 928 as_fn_error $? "invalid feature name: $ac_useropt"
Chris@1 929 ac_useropt_orig=$ac_useropt
Chris@1 930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@1 931 case $ac_user_opts in
Chris@1 932 *"
Chris@1 933 "enable_$ac_useropt"
Chris@1 934 "*) ;;
Chris@1 935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
Chris@1 936 ac_unrecognized_sep=', ';;
Chris@1 937 esac
Chris@1 938 eval enable_$ac_useropt=\$ac_optarg ;;
Chris@1 939
Chris@1 940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
Chris@1 941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
Chris@1 942 | --exec | --exe | --ex)
Chris@1 943 ac_prev=exec_prefix ;;
Chris@1 944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
Chris@1 945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
Chris@1 946 | --exec=* | --exe=* | --ex=*)
Chris@1 947 exec_prefix=$ac_optarg ;;
Chris@1 948
Chris@1 949 -gas | --gas | --ga | --g)
Chris@1 950 # Obsolete; use --with-gas.
Chris@1 951 with_gas=yes ;;
Chris@1 952
Chris@1 953 -help | --help | --hel | --he | -h)
Chris@1 954 ac_init_help=long ;;
Chris@1 955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
Chris@1 956 ac_init_help=recursive ;;
Chris@1 957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
Chris@1 958 ac_init_help=short ;;
Chris@1 959
Chris@1 960 -host | --host | --hos | --ho)
Chris@1 961 ac_prev=host_alias ;;
Chris@1 962 -host=* | --host=* | --hos=* | --ho=*)
Chris@1 963 host_alias=$ac_optarg ;;
Chris@1 964
Chris@1 965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
Chris@1 966 ac_prev=htmldir ;;
Chris@1 967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
Chris@1 968 | --ht=*)
Chris@1 969 htmldir=$ac_optarg ;;
Chris@1 970
Chris@1 971 -includedir | --includedir | --includedi | --included | --include \
Chris@1 972 | --includ | --inclu | --incl | --inc)
Chris@1 973 ac_prev=includedir ;;
Chris@1 974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
Chris@1 975 | --includ=* | --inclu=* | --incl=* | --inc=*)
Chris@1 976 includedir=$ac_optarg ;;
Chris@1 977
Chris@1 978 -infodir | --infodir | --infodi | --infod | --info | --inf)
Chris@1 979 ac_prev=infodir ;;
Chris@1 980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Chris@1 981 infodir=$ac_optarg ;;
Chris@1 982
Chris@1 983 -libdir | --libdir | --libdi | --libd)
Chris@1 984 ac_prev=libdir ;;
Chris@1 985 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Chris@1 986 libdir=$ac_optarg ;;
Chris@1 987
Chris@1 988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
Chris@1 989 | --libexe | --libex | --libe)
Chris@1 990 ac_prev=libexecdir ;;
Chris@1 991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
Chris@1 992 | --libexe=* | --libex=* | --libe=*)
Chris@1 993 libexecdir=$ac_optarg ;;
Chris@1 994
Chris@1 995 -localedir | --localedir | --localedi | --localed | --locale)
Chris@1 996 ac_prev=localedir ;;
Chris@1 997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
Chris@1 998 localedir=$ac_optarg ;;
Chris@1 999
Chris@1 1000 -localstatedir | --localstatedir | --localstatedi | --localstated \
Chris@1 1001 | --localstate | --localstat | --localsta | --localst | --locals)
Chris@1 1002 ac_prev=localstatedir ;;
Chris@1 1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Chris@1 1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Chris@1 1005 localstatedir=$ac_optarg ;;
Chris@1 1006
Chris@1 1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
Chris@1 1008 ac_prev=mandir ;;
Chris@1 1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Chris@1 1010 mandir=$ac_optarg ;;
Chris@1 1011
Chris@1 1012 -nfp | --nfp | --nf)
Chris@1 1013 # Obsolete; use --without-fp.
Chris@1 1014 with_fp=no ;;
Chris@1 1015
Chris@1 1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Chris@1 1017 | --no-cr | --no-c | -n)
Chris@1 1018 no_create=yes ;;
Chris@1 1019
Chris@1 1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
Chris@1 1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
Chris@1 1022 no_recursion=yes ;;
Chris@1 1023
Chris@1 1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
Chris@1 1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
Chris@1 1026 | --oldin | --oldi | --old | --ol | --o)
Chris@1 1027 ac_prev=oldincludedir ;;
Chris@1 1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
Chris@1 1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
Chris@1 1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Chris@1 1031 oldincludedir=$ac_optarg ;;
Chris@1 1032
Chris@1 1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
Chris@1 1034 ac_prev=prefix ;;
Chris@1 1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Chris@1 1036 prefix=$ac_optarg ;;
Chris@1 1037
Chris@1 1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \
Chris@1 1039 | --program-pre | --program-pr | --program-p)
Chris@1 1040 ac_prev=program_prefix ;;
Chris@1 1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \
Chris@1 1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Chris@1 1043 program_prefix=$ac_optarg ;;
Chris@1 1044
Chris@1 1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \
Chris@1 1046 | --program-suf | --program-su | --program-s)
Chris@1 1047 ac_prev=program_suffix ;;
Chris@1 1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \
Chris@1 1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Chris@1 1050 program_suffix=$ac_optarg ;;
Chris@1 1051
Chris@1 1052 -program-transform-name | --program-transform-name \
Chris@1 1053 | --program-transform-nam | --program-transform-na \
Chris@1 1054 | --program-transform-n | --program-transform- \
Chris@1 1055 | --program-transform | --program-transfor \
Chris@1 1056 | --program-transfo | --program-transf \
Chris@1 1057 | --program-trans | --program-tran \
Chris@1 1058 | --progr-tra | --program-tr | --program-t)
Chris@1 1059 ac_prev=program_transform_name ;;
Chris@1 1060 -program-transform-name=* | --program-transform-name=* \
Chris@1 1061 | --program-transform-nam=* | --program-transform-na=* \
Chris@1 1062 | --program-transform-n=* | --program-transform-=* \
Chris@1 1063 | --program-transform=* | --program-transfor=* \
Chris@1 1064 | --program-transfo=* | --program-transf=* \
Chris@1 1065 | --program-trans=* | --program-tran=* \
Chris@1 1066 | --progr-tra=* | --program-tr=* | --program-t=*)
Chris@1 1067 program_transform_name=$ac_optarg ;;
Chris@1 1068
Chris@1 1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
Chris@1 1070 ac_prev=pdfdir ;;
Chris@1 1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
Chris@1 1072 pdfdir=$ac_optarg ;;
Chris@1 1073
Chris@1 1074 -psdir | --psdir | --psdi | --psd | --ps)
Chris@1 1075 ac_prev=psdir ;;
Chris@1 1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
Chris@1 1077 psdir=$ac_optarg ;;
Chris@1 1078
Chris@1 1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@1 1080 | -silent | --silent | --silen | --sile | --sil)
Chris@1 1081 silent=yes ;;
Chris@1 1082
Chris@1 1083 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
Chris@1 1084 ac_prev=sbindir ;;
Chris@1 1085 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
Chris@1 1086 | --sbi=* | --sb=*)
Chris@1 1087 sbindir=$ac_optarg ;;
Chris@1 1088
Chris@1 1089 -sharedstatedir | --sharedstatedir | --sharedstatedi \
Chris@1 1090 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
Chris@1 1091 | --sharedst | --shareds | --shared | --share | --shar \
Chris@1 1092 | --sha | --sh)
Chris@1 1093 ac_prev=sharedstatedir ;;
Chris@1 1094 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
Chris@1 1095 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
Chris@1 1096 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
Chris@1 1097 | --sha=* | --sh=*)
Chris@1 1098 sharedstatedir=$ac_optarg ;;
Chris@1 1099
Chris@1 1100 -site | --site | --sit)
Chris@1 1101 ac_prev=site ;;
Chris@1 1102 -site=* | --site=* | --sit=*)
Chris@1 1103 site=$ac_optarg ;;
Chris@1 1104
Chris@1 1105 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
Chris@1 1106 ac_prev=srcdir ;;
Chris@1 1107 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Chris@1 1108 srcdir=$ac_optarg ;;
Chris@1 1109
Chris@1 1110 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
Chris@1 1111 | --syscon | --sysco | --sysc | --sys | --sy)
Chris@1 1112 ac_prev=sysconfdir ;;
Chris@1 1113 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
Chris@1 1114 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Chris@1 1115 sysconfdir=$ac_optarg ;;
Chris@1 1116
Chris@1 1117 -target | --target | --targe | --targ | --tar | --ta | --t)
Chris@1 1118 ac_prev=target_alias ;;
Chris@1 1119 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Chris@1 1120 target_alias=$ac_optarg ;;
Chris@1 1121
Chris@1 1122 -v | -verbose | --verbose | --verbos | --verbo | --verb)
Chris@1 1123 verbose=yes ;;
Chris@1 1124
Chris@1 1125 -version | --version | --versio | --versi | --vers | -V)
Chris@1 1126 ac_init_version=: ;;
Chris@1 1127
Chris@1 1128 -with-* | --with-*)
Chris@1 1129 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Chris@1 1130 # Reject names that are not valid shell variable names.
Chris@1 1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@1 1132 as_fn_error $? "invalid package name: $ac_useropt"
Chris@1 1133 ac_useropt_orig=$ac_useropt
Chris@1 1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@1 1135 case $ac_user_opts in
Chris@1 1136 *"
Chris@1 1137 "with_$ac_useropt"
Chris@1 1138 "*) ;;
Chris@1 1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
Chris@1 1140 ac_unrecognized_sep=', ';;
Chris@1 1141 esac
Chris@1 1142 eval with_$ac_useropt=\$ac_optarg ;;
Chris@1 1143
Chris@1 1144 -without-* | --without-*)
Chris@1 1145 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Chris@1 1146 # Reject names that are not valid shell variable names.
Chris@1 1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@1 1148 as_fn_error $? "invalid package name: $ac_useropt"
Chris@1 1149 ac_useropt_orig=$ac_useropt
Chris@1 1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@1 1151 case $ac_user_opts in
Chris@1 1152 *"
Chris@1 1153 "with_$ac_useropt"
Chris@1 1154 "*) ;;
Chris@1 1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
Chris@1 1156 ac_unrecognized_sep=', ';;
Chris@1 1157 esac
Chris@1 1158 eval with_$ac_useropt=no ;;
Chris@1 1159
Chris@1 1160 --x)
Chris@1 1161 # Obsolete; use --with-x.
Chris@1 1162 with_x=yes ;;
Chris@1 1163
Chris@1 1164 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
Chris@1 1165 | --x-incl | --x-inc | --x-in | --x-i)
Chris@1 1166 ac_prev=x_includes ;;
Chris@1 1167 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
Chris@1 1168 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Chris@1 1169 x_includes=$ac_optarg ;;
Chris@1 1170
Chris@1 1171 -x-libraries | --x-libraries | --x-librarie | --x-librari \
Chris@1 1172 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
Chris@1 1173 ac_prev=x_libraries ;;
Chris@1 1174 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
Chris@1 1175 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Chris@1 1176 x_libraries=$ac_optarg ;;
Chris@1 1177
Chris@1 1178 -*) as_fn_error $? "unrecognized option: \`$ac_option'
Chris@1 1179 Try \`$0 --help' for more information"
Chris@1 1180 ;;
Chris@1 1181
Chris@1 1182 *=*)
Chris@1 1183 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
Chris@1 1184 # Reject names that are not valid shell variable names.
Chris@1 1185 case $ac_envvar in #(
Chris@1 1186 '' | [0-9]* | *[!_$as_cr_alnum]* )
Chris@1 1187 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Chris@1 1188 esac
Chris@1 1189 eval $ac_envvar=\$ac_optarg
Chris@1 1190 export $ac_envvar ;;
Chris@1 1191
Chris@1 1192 *)
Chris@1 1193 # FIXME: should be removed in autoconf 3.0.
Chris@1 1194 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Chris@1 1195 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Chris@1 1196 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Chris@1 1197 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Chris@1 1198 ;;
Chris@1 1199
Chris@1 1200 esac
Chris@1 1201 done
Chris@1 1202
Chris@1 1203 if test -n "$ac_prev"; then
Chris@1 1204 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Chris@1 1205 as_fn_error $? "missing argument to $ac_option"
Chris@1 1206 fi
Chris@1 1207
Chris@1 1208 if test -n "$ac_unrecognized_opts"; then
Chris@1 1209 case $enable_option_checking in
Chris@1 1210 no) ;;
Chris@1 1211 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Chris@1 1212 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Chris@1 1213 esac
Chris@1 1214 fi
Chris@1 1215
Chris@1 1216 # Check all directory arguments for consistency.
Chris@1 1217 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
Chris@1 1218 datadir sysconfdir sharedstatedir localstatedir includedir \
Chris@1 1219 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Chris@1 1220 libdir localedir mandir
Chris@1 1221 do
Chris@1 1222 eval ac_val=\$$ac_var
Chris@1 1223 # Remove trailing slashes.
Chris@1 1224 case $ac_val in
Chris@1 1225 */ )
Chris@1 1226 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
Chris@1 1227 eval $ac_var=\$ac_val;;
Chris@1 1228 esac
Chris@1 1229 # Be sure to have absolute directory names.
Chris@1 1230 case $ac_val in
Chris@1 1231 [\\/$]* | ?:[\\/]* ) continue;;
Chris@1 1232 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Chris@1 1233 esac
Chris@1 1234 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Chris@1 1235 done
Chris@1 1236
Chris@1 1237 # There might be people who depend on the old broken behavior: `$host'
Chris@1 1238 # used to hold the argument of --host etc.
Chris@1 1239 # FIXME: To remove some day.
Chris@1 1240 build=$build_alias
Chris@1 1241 host=$host_alias
Chris@1 1242 target=$target_alias
Chris@1 1243
Chris@1 1244 # FIXME: To remove some day.
Chris@1 1245 if test "x$host_alias" != x; then
Chris@1 1246 if test "x$build_alias" = x; then
Chris@1 1247 cross_compiling=maybe
Chris@1 1248 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
Chris@1 1249 If a cross compiler is detected then cross compile mode will be used" >&2
Chris@1 1250 elif test "x$build_alias" != "x$host_alias"; then
Chris@1 1251 cross_compiling=yes
Chris@1 1252 fi
Chris@1 1253 fi
Chris@1 1254
Chris@1 1255 ac_tool_prefix=
Chris@1 1256 test -n "$host_alias" && ac_tool_prefix=$host_alias-
Chris@1 1257
Chris@1 1258 test "$silent" = yes && exec 6>/dev/null
Chris@1 1259
Chris@1 1260
Chris@1 1261 ac_pwd=`pwd` && test -n "$ac_pwd" &&
Chris@1 1262 ac_ls_di=`ls -di .` &&
Chris@1 1263 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Chris@1 1264 as_fn_error $? "working directory cannot be determined"
Chris@1 1265 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Chris@1 1266 as_fn_error $? "pwd does not report name of working directory"
Chris@1 1267
Chris@1 1268
Chris@1 1269 # Find the source files, if location was not specified.
Chris@1 1270 if test -z "$srcdir"; then
Chris@1 1271 ac_srcdir_defaulted=yes
Chris@1 1272 # Try the directory containing this script, then the parent directory.
Chris@1 1273 ac_confdir=`$as_dirname -- "$as_myself" ||
Chris@1 1274 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@1 1275 X"$as_myself" : 'X\(//\)[^/]' \| \
Chris@1 1276 X"$as_myself" : 'X\(//\)$' \| \
Chris@1 1277 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
Chris@1 1278 $as_echo X"$as_myself" |
Chris@1 1279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@1 1280 s//\1/
Chris@1 1281 q
Chris@1 1282 }
Chris@1 1283 /^X\(\/\/\)[^/].*/{
Chris@1 1284 s//\1/
Chris@1 1285 q
Chris@1 1286 }
Chris@1 1287 /^X\(\/\/\)$/{
Chris@1 1288 s//\1/
Chris@1 1289 q
Chris@1 1290 }
Chris@1 1291 /^X\(\/\).*/{
Chris@1 1292 s//\1/
Chris@1 1293 q
Chris@1 1294 }
Chris@1 1295 s/.*/./; q'`
Chris@1 1296 srcdir=$ac_confdir
Chris@1 1297 if test ! -r "$srcdir/$ac_unique_file"; then
Chris@1 1298 srcdir=..
Chris@1 1299 fi
Chris@1 1300 else
Chris@1 1301 ac_srcdir_defaulted=no
Chris@1 1302 fi
Chris@1 1303 if test ! -r "$srcdir/$ac_unique_file"; then
Chris@1 1304 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Chris@1 1305 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Chris@1 1306 fi
Chris@1 1307 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
Chris@1 1308 ac_abs_confdir=`(
Chris@1 1309 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Chris@1 1310 pwd)`
Chris@1 1311 # When building in place, set srcdir=.
Chris@1 1312 if test "$ac_abs_confdir" = "$ac_pwd"; then
Chris@1 1313 srcdir=.
Chris@1 1314 fi
Chris@1 1315 # Remove unnecessary trailing slashes from srcdir.
Chris@1 1316 # Double slashes in file names in object file debugging info
Chris@1 1317 # mess up M-x gdb in Emacs.
Chris@1 1318 case $srcdir in
Chris@1 1319 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
Chris@1 1320 esac
Chris@1 1321 for ac_var in $ac_precious_vars; do
Chris@1 1322 eval ac_env_${ac_var}_set=\${${ac_var}+set}
Chris@1 1323 eval ac_env_${ac_var}_value=\$${ac_var}
Chris@1 1324 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
Chris@1 1325 eval ac_cv_env_${ac_var}_value=\$${ac_var}
Chris@1 1326 done
Chris@1 1327
Chris@1 1328 #
Chris@1 1329 # Report the --help message.
Chris@1 1330 #
Chris@1 1331 if test "$ac_init_help" = "long"; then
Chris@1 1332 # Omit some internal or obsolete options to make the list less imposing.
Chris@1 1333 # This message is too long to be a string in the A/UX 3.1 sh.
Chris@1 1334 cat <<_ACEOF
Chris@1 1335 \`configure' configures libvorbis 1.3.3 to adapt to many kinds of systems.
Chris@1 1336
Chris@1 1337 Usage: $0 [OPTION]... [VAR=VALUE]...
Chris@1 1338
Chris@1 1339 To assign environment variables (e.g., CC, CFLAGS...), specify them as
Chris@1 1340 VAR=VALUE. See below for descriptions of some of the useful variables.
Chris@1 1341
Chris@1 1342 Defaults for the options are specified in brackets.
Chris@1 1343
Chris@1 1344 Configuration:
Chris@1 1345 -h, --help display this help and exit
Chris@1 1346 --help=short display options specific to this package
Chris@1 1347 --help=recursive display the short help of all the included packages
Chris@1 1348 -V, --version display version information and exit
Chris@1 1349 -q, --quiet, --silent do not print \`checking ...' messages
Chris@1 1350 --cache-file=FILE cache test results in FILE [disabled]
Chris@1 1351 -C, --config-cache alias for \`--cache-file=config.cache'
Chris@1 1352 -n, --no-create do not create output files
Chris@1 1353 --srcdir=DIR find the sources in DIR [configure dir or \`..']
Chris@1 1354
Chris@1 1355 Installation directories:
Chris@1 1356 --prefix=PREFIX install architecture-independent files in PREFIX
Chris@1 1357 [$ac_default_prefix]
Chris@1 1358 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Chris@1 1359 [PREFIX]
Chris@1 1360
Chris@1 1361 By default, \`make install' will install all the files in
Chris@1 1362 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
Chris@1 1363 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
Chris@1 1364 for instance \`--prefix=\$HOME'.
Chris@1 1365
Chris@1 1366 For better control, use the options below.
Chris@1 1367
Chris@1 1368 Fine tuning of the installation directories:
Chris@1 1369 --bindir=DIR user executables [EPREFIX/bin]
Chris@1 1370 --sbindir=DIR system admin executables [EPREFIX/sbin]
Chris@1 1371 --libexecdir=DIR program executables [EPREFIX/libexec]
Chris@1 1372 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
Chris@1 1373 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
Chris@1 1374 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Chris@1 1375 --libdir=DIR object code libraries [EPREFIX/lib]
Chris@1 1376 --includedir=DIR C header files [PREFIX/include]
Chris@1 1377 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Chris@1 1378 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
Chris@1 1379 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
Chris@1 1380 --infodir=DIR info documentation [DATAROOTDIR/info]
Chris@1 1381 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
Chris@1 1382 --mandir=DIR man documentation [DATAROOTDIR/man]
Chris@1 1383 --docdir=DIR documentation root [DATAROOTDIR/doc/libvorbis]
Chris@1 1384 --htmldir=DIR html documentation [DOCDIR]
Chris@1 1385 --dvidir=DIR dvi documentation [DOCDIR]
Chris@1 1386 --pdfdir=DIR pdf documentation [DOCDIR]
Chris@1 1387 --psdir=DIR ps documentation [DOCDIR]
Chris@1 1388 _ACEOF
Chris@1 1389
Chris@1 1390 cat <<\_ACEOF
Chris@1 1391
Chris@1 1392 Program names:
Chris@1 1393 --program-prefix=PREFIX prepend PREFIX to installed program names
Chris@1 1394 --program-suffix=SUFFIX append SUFFIX to installed program names
Chris@1 1395 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
Chris@1 1396
Chris@1 1397 System types:
Chris@1 1398 --build=BUILD configure for building on BUILD [guessed]
Chris@1 1399 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Chris@1 1400 --target=TARGET configure for building compilers for TARGET [HOST]
Chris@1 1401 _ACEOF
Chris@1 1402 fi
Chris@1 1403
Chris@1 1404 if test -n "$ac_init_help"; then
Chris@1 1405 case $ac_init_help in
Chris@1 1406 short | recursive ) echo "Configuration of libvorbis 1.3.3:";;
Chris@1 1407 esac
Chris@1 1408 cat <<\_ACEOF
Chris@1 1409
Chris@1 1410 Optional Features:
Chris@1 1411 --disable-option-checking ignore unrecognized --enable/--with options
Chris@1 1412 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
Chris@1 1413 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Chris@1 1414 --enable-maintainer-mode enable make rules and dependencies not useful
Chris@1 1415 (and sometimes confusing) to the casual installer
Chris@1 1416 --disable-dependency-tracking speeds up one-time build
Chris@1 1417 --enable-dependency-tracking do not reject slow dependency extractors
Chris@1 1418 --enable-shared[=PKGS] build shared libraries [default=yes]
Chris@1 1419 --enable-static[=PKGS] build static libraries [default=yes]
Chris@1 1420 --enable-fast-install[=PKGS]
Chris@1 1421 optimize for fast installation [default=yes]
Chris@1 1422 --disable-libtool-lock avoid locking (might break parallel builds)
Chris@1 1423 --enable-docs build the documentation
Chris@1 1424 --enable-examples build the examples
Chris@1 1425 --disable-oggtest Do not try to compile and run a test Ogg program
Chris@1 1426
Chris@1 1427 Optional Packages:
Chris@1 1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
Chris@1 1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Chris@1 1430 --with-pic try to use only PIC/non-PIC objects [default=use
Chris@1 1431 both]
Chris@1 1432 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Chris@1 1433 --with-sysroot=DIR Search for dependent libraries within DIR
Chris@1 1434 (or the compiler's sysroot if not specified).
Chris@1 1435 --with-ogg=PFX Prefix where libogg is installed (optional)
Chris@1 1436 --with-ogg-libraries=DIR
Chris@1 1437 Directory where libogg library is installed
Chris@1 1438 (optional)
Chris@1 1439 --with-ogg-includes=DIR Directory where libogg header files are installed
Chris@1 1440 (optional)
Chris@1 1441
Chris@1 1442 Some influential environment variables:
Chris@1 1443 CC C compiler command
Chris@1 1444 CFLAGS C compiler flags
Chris@1 1445 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
Chris@1 1446 nonstandard directory <lib dir>
Chris@1 1447 LIBS libraries to pass to the linker, e.g. -l<library>
Chris@1 1448 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Chris@1 1449 you have headers in a nonstandard directory <include dir>
Chris@1 1450 CPP C preprocessor
Chris@1 1451 PKG_CONFIG path to pkg-config utility
Chris@1 1452 OGG_CFLAGS C compiler flags for OGG, overriding pkg-config
Chris@1 1453 OGG_LIBS linker flags for OGG, overriding pkg-config
Chris@1 1454
Chris@1 1455 Use these variables to override the choices made by `configure' or to help
Chris@1 1456 it to find libraries and programs with nonstandard names/locations.
Chris@1 1457
Chris@1 1458 Report bugs to <vorbis-dev@xiph.org>.
Chris@1 1459 _ACEOF
Chris@1 1460 ac_status=$?
Chris@1 1461 fi
Chris@1 1462
Chris@1 1463 if test "$ac_init_help" = "recursive"; then
Chris@1 1464 # If there are subdirs, report their specific --help.
Chris@1 1465 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Chris@1 1466 test -d "$ac_dir" ||
Chris@1 1467 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
Chris@1 1468 continue
Chris@1 1469 ac_builddir=.
Chris@1 1470
Chris@1 1471 case "$ac_dir" in
Chris@1 1472 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@1 1473 *)
Chris@1 1474 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Chris@1 1475 # A ".." for each directory in $ac_dir_suffix.
Chris@1 1476 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Chris@1 1477 case $ac_top_builddir_sub in
Chris@1 1478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@1 1479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
Chris@1 1480 esac ;;
Chris@1 1481 esac
Chris@1 1482 ac_abs_top_builddir=$ac_pwd
Chris@1 1483 ac_abs_builddir=$ac_pwd$ac_dir_suffix
Chris@1 1484 # for backward compatibility:
Chris@1 1485 ac_top_builddir=$ac_top_build_prefix
Chris@1 1486
Chris@1 1487 case $srcdir in
Chris@1 1488 .) # We are building in place.
Chris@1 1489 ac_srcdir=.
Chris@1 1490 ac_top_srcdir=$ac_top_builddir_sub
Chris@1 1491 ac_abs_top_srcdir=$ac_pwd ;;
Chris@1 1492 [\\/]* | ?:[\\/]* ) # Absolute name.
Chris@1 1493 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@1 1494 ac_top_srcdir=$srcdir
Chris@1 1495 ac_abs_top_srcdir=$srcdir ;;
Chris@1 1496 *) # Relative name.
Chris@1 1497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
Chris@1 1498 ac_top_srcdir=$ac_top_build_prefix$srcdir
Chris@1 1499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Chris@1 1500 esac
Chris@1 1501 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Chris@1 1502
Chris@1 1503 cd "$ac_dir" || { ac_status=$?; continue; }
Chris@1 1504 # Check for guested configure.
Chris@1 1505 if test -f "$ac_srcdir/configure.gnu"; then
Chris@1 1506 echo &&
Chris@1 1507 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
Chris@1 1508 elif test -f "$ac_srcdir/configure"; then
Chris@1 1509 echo &&
Chris@1 1510 $SHELL "$ac_srcdir/configure" --help=recursive
Chris@1 1511 else
Chris@1 1512 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Chris@1 1513 fi || ac_status=$?
Chris@1 1514 cd "$ac_pwd" || { ac_status=$?; break; }
Chris@1 1515 done
Chris@1 1516 fi
Chris@1 1517
Chris@1 1518 test -n "$ac_init_help" && exit $ac_status
Chris@1 1519 if $ac_init_version; then
Chris@1 1520 cat <<\_ACEOF
Chris@1 1521 libvorbis configure 1.3.3
Chris@1 1522 generated by GNU Autoconf 2.68
Chris@1 1523
Chris@1 1524 Copyright (C) 2010 Free Software Foundation, Inc.
Chris@1 1525 This configure script is free software; the Free Software Foundation
Chris@1 1526 gives unlimited permission to copy, distribute and modify it.
Chris@1 1527 _ACEOF
Chris@1 1528 exit
Chris@1 1529 fi
Chris@1 1530
Chris@1 1531 ## ------------------------ ##
Chris@1 1532 ## Autoconf initialization. ##
Chris@1 1533 ## ------------------------ ##
Chris@1 1534
Chris@1 1535 # ac_fn_c_try_compile LINENO
Chris@1 1536 # --------------------------
Chris@1 1537 # Try to compile conftest.$ac_ext, and return whether this succeeded.
Chris@1 1538 ac_fn_c_try_compile ()
Chris@1 1539 {
Chris@1 1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@1 1541 rm -f conftest.$ac_objext
Chris@1 1542 if { { ac_try="$ac_compile"
Chris@1 1543 case "(($ac_try" in
Chris@1 1544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 1545 *) ac_try_echo=$ac_try;;
Chris@1 1546 esac
Chris@1 1547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 1548 $as_echo "$ac_try_echo"; } >&5
Chris@1 1549 (eval "$ac_compile") 2>conftest.err
Chris@1 1550 ac_status=$?
Chris@1 1551 if test -s conftest.err; then
Chris@1 1552 grep -v '^ *+' conftest.err >conftest.er1
Chris@1 1553 cat conftest.er1 >&5
Chris@1 1554 mv -f conftest.er1 conftest.err
Chris@1 1555 fi
Chris@1 1556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 1557 test $ac_status = 0; } && {
Chris@1 1558 test -z "$ac_c_werror_flag" ||
Chris@1 1559 test ! -s conftest.err
Chris@1 1560 } && test -s conftest.$ac_objext; then :
Chris@1 1561 ac_retval=0
Chris@1 1562 else
Chris@1 1563 $as_echo "$as_me: failed program was:" >&5
Chris@1 1564 sed 's/^/| /' conftest.$ac_ext >&5
Chris@1 1565
Chris@1 1566 ac_retval=1
Chris@1 1567 fi
Chris@1 1568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@1 1569 as_fn_set_status $ac_retval
Chris@1 1570
Chris@1 1571 } # ac_fn_c_try_compile
Chris@1 1572
Chris@1 1573 # ac_fn_c_try_cpp LINENO
Chris@1 1574 # ----------------------
Chris@1 1575 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
Chris@1 1576 ac_fn_c_try_cpp ()
Chris@1 1577 {
Chris@1 1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@1 1579 if { { ac_try="$ac_cpp conftest.$ac_ext"
Chris@1 1580 case "(($ac_try" in
Chris@1 1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 1582 *) ac_try_echo=$ac_try;;
Chris@1 1583 esac
Chris@1 1584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 1585 $as_echo "$ac_try_echo"; } >&5
Chris@1 1586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
Chris@1 1587 ac_status=$?
Chris@1 1588 if test -s conftest.err; then
Chris@1 1589 grep -v '^ *+' conftest.err >conftest.er1
Chris@1 1590 cat conftest.er1 >&5
Chris@1 1591 mv -f conftest.er1 conftest.err
Chris@1 1592 fi
Chris@1 1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 1594 test $ac_status = 0; } > conftest.i && {
Chris@1 1595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
Chris@1 1596 test ! -s conftest.err
Chris@1 1597 }; then :
Chris@1 1598 ac_retval=0
Chris@1 1599 else
Chris@1 1600 $as_echo "$as_me: failed program was:" >&5
Chris@1 1601 sed 's/^/| /' conftest.$ac_ext >&5
Chris@1 1602
Chris@1 1603 ac_retval=1
Chris@1 1604 fi
Chris@1 1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@1 1606 as_fn_set_status $ac_retval
Chris@1 1607
Chris@1 1608 } # ac_fn_c_try_cpp
Chris@1 1609
Chris@1 1610 # ac_fn_c_try_link LINENO
Chris@1 1611 # -----------------------
Chris@1 1612 # Try to link conftest.$ac_ext, and return whether this succeeded.
Chris@1 1613 ac_fn_c_try_link ()
Chris@1 1614 {
Chris@1 1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@1 1616 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@1 1617 if { { ac_try="$ac_link"
Chris@1 1618 case "(($ac_try" in
Chris@1 1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 1620 *) ac_try_echo=$ac_try;;
Chris@1 1621 esac
Chris@1 1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 1623 $as_echo "$ac_try_echo"; } >&5
Chris@1 1624 (eval "$ac_link") 2>conftest.err
Chris@1 1625 ac_status=$?
Chris@1 1626 if test -s conftest.err; then
Chris@1 1627 grep -v '^ *+' conftest.err >conftest.er1
Chris@1 1628 cat conftest.er1 >&5
Chris@1 1629 mv -f conftest.er1 conftest.err
Chris@1 1630 fi
Chris@1 1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 1632 test $ac_status = 0; } && {
Chris@1 1633 test -z "$ac_c_werror_flag" ||
Chris@1 1634 test ! -s conftest.err
Chris@1 1635 } && test -s conftest$ac_exeext && {
Chris@1 1636 test "$cross_compiling" = yes ||
Chris@1 1637 $as_test_x conftest$ac_exeext
Chris@1 1638 }; then :
Chris@1 1639 ac_retval=0
Chris@1 1640 else
Chris@1 1641 $as_echo "$as_me: failed program was:" >&5
Chris@1 1642 sed 's/^/| /' conftest.$ac_ext >&5
Chris@1 1643
Chris@1 1644 ac_retval=1
Chris@1 1645 fi
Chris@1 1646 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
Chris@1 1647 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
Chris@1 1648 # interfere with the next link command; also delete a directory that is
Chris@1 1649 # left behind by Apple's compiler. We do this before executing the actions.
Chris@1 1650 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris@1 1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@1 1652 as_fn_set_status $ac_retval
Chris@1 1653
Chris@1 1654 } # ac_fn_c_try_link
Chris@1 1655
Chris@1 1656 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
Chris@1 1657 # -------------------------------------------------------
Chris@1 1658 # Tests whether HEADER exists and can be compiled using the include files in
Chris@1 1659 # INCLUDES, setting the cache variable VAR accordingly.
Chris@1 1660 ac_fn_c_check_header_compile ()
Chris@1 1661 {
Chris@1 1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@1 1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@1 1664 $as_echo_n "checking for $2... " >&6; }
Chris@1 1665 if eval \${$3+:} false; then :
Chris@1 1666 $as_echo_n "(cached) " >&6
Chris@1 1667 else
Chris@1 1668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 1669 /* end confdefs.h. */
Chris@1 1670 $4
Chris@1 1671 #include <$2>
Chris@1 1672 _ACEOF
Chris@1 1673 if ac_fn_c_try_compile "$LINENO"; then :
Chris@1 1674 eval "$3=yes"
Chris@1 1675 else
Chris@1 1676 eval "$3=no"
Chris@1 1677 fi
Chris@1 1678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@1 1679 fi
Chris@1 1680 eval ac_res=\$$3
Chris@1 1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@1 1682 $as_echo "$ac_res" >&6; }
Chris@1 1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@1 1684
Chris@1 1685 } # ac_fn_c_check_header_compile
Chris@1 1686
Chris@1 1687 # ac_fn_c_try_run LINENO
Chris@1 1688 # ----------------------
Chris@1 1689 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
Chris@1 1690 # that executables *can* be run.
Chris@1 1691 ac_fn_c_try_run ()
Chris@1 1692 {
Chris@1 1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@1 1694 if { { ac_try="$ac_link"
Chris@1 1695 case "(($ac_try" in
Chris@1 1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 1697 *) ac_try_echo=$ac_try;;
Chris@1 1698 esac
Chris@1 1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 1700 $as_echo "$ac_try_echo"; } >&5
Chris@1 1701 (eval "$ac_link") 2>&5
Chris@1 1702 ac_status=$?
Chris@1 1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 1704 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
Chris@1 1705 { { case "(($ac_try" in
Chris@1 1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 1707 *) ac_try_echo=$ac_try;;
Chris@1 1708 esac
Chris@1 1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 1710 $as_echo "$ac_try_echo"; } >&5
Chris@1 1711 (eval "$ac_try") 2>&5
Chris@1 1712 ac_status=$?
Chris@1 1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 1714 test $ac_status = 0; }; }; then :
Chris@1 1715 ac_retval=0
Chris@1 1716 else
Chris@1 1717 $as_echo "$as_me: program exited with status $ac_status" >&5
Chris@1 1718 $as_echo "$as_me: failed program was:" >&5
Chris@1 1719 sed 's/^/| /' conftest.$ac_ext >&5
Chris@1 1720
Chris@1 1721 ac_retval=$ac_status
Chris@1 1722 fi
Chris@1 1723 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris@1 1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@1 1725 as_fn_set_status $ac_retval
Chris@1 1726
Chris@1 1727 } # ac_fn_c_try_run
Chris@1 1728
Chris@1 1729 # ac_fn_c_check_func LINENO FUNC VAR
Chris@1 1730 # ----------------------------------
Chris@1 1731 # Tests whether FUNC exists, setting the cache variable VAR accordingly
Chris@1 1732 ac_fn_c_check_func ()
Chris@1 1733 {
Chris@1 1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@1 1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@1 1736 $as_echo_n "checking for $2... " >&6; }
Chris@1 1737 if eval \${$3+:} false; then :
Chris@1 1738 $as_echo_n "(cached) " >&6
Chris@1 1739 else
Chris@1 1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 1741 /* end confdefs.h. */
Chris@1 1742 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
Chris@1 1743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
Chris@1 1744 #define $2 innocuous_$2
Chris@1 1745
Chris@1 1746 /* System header to define __stub macros and hopefully few prototypes,
Chris@1 1747 which can conflict with char $2 (); below.
Chris@1 1748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@1 1749 <limits.h> exists even on freestanding compilers. */
Chris@1 1750
Chris@1 1751 #ifdef __STDC__
Chris@1 1752 # include <limits.h>
Chris@1 1753 #else
Chris@1 1754 # include <assert.h>
Chris@1 1755 #endif
Chris@1 1756
Chris@1 1757 #undef $2
Chris@1 1758
Chris@1 1759 /* Override any GCC internal prototype to avoid an error.
Chris@1 1760 Use char because int might match the return type of a GCC
Chris@1 1761 builtin and then its argument prototype would still apply. */
Chris@1 1762 #ifdef __cplusplus
Chris@1 1763 extern "C"
Chris@1 1764 #endif
Chris@1 1765 char $2 ();
Chris@1 1766 /* The GNU C library defines this for functions which it implements
Chris@1 1767 to always fail with ENOSYS. Some functions are actually named
Chris@1 1768 something starting with __ and the normal name is an alias. */
Chris@1 1769 #if defined __stub_$2 || defined __stub___$2
Chris@1 1770 choke me
Chris@1 1771 #endif
Chris@1 1772
Chris@1 1773 int
Chris@1 1774 main ()
Chris@1 1775 {
Chris@1 1776 return $2 ();
Chris@1 1777 ;
Chris@1 1778 return 0;
Chris@1 1779 }
Chris@1 1780 _ACEOF
Chris@1 1781 if ac_fn_c_try_link "$LINENO"; then :
Chris@1 1782 eval "$3=yes"
Chris@1 1783 else
Chris@1 1784 eval "$3=no"
Chris@1 1785 fi
Chris@1 1786 rm -f core conftest.err conftest.$ac_objext \
Chris@1 1787 conftest$ac_exeext conftest.$ac_ext
Chris@1 1788 fi
Chris@1 1789 eval ac_res=\$$3
Chris@1 1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@1 1791 $as_echo "$ac_res" >&6; }
Chris@1 1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@1 1793
Chris@1 1794 } # ac_fn_c_check_func
Chris@1 1795
Chris@1 1796 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
Chris@1 1797 # -------------------------------------------------------
Chris@1 1798 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
Chris@1 1799 # the include files in INCLUDES and setting the cache variable VAR
Chris@1 1800 # accordingly.
Chris@1 1801 ac_fn_c_check_header_mongrel ()
Chris@1 1802 {
Chris@1 1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@1 1804 if eval \${$3+:} false; then :
Chris@1 1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@1 1806 $as_echo_n "checking for $2... " >&6; }
Chris@1 1807 if eval \${$3+:} false; then :
Chris@1 1808 $as_echo_n "(cached) " >&6
Chris@1 1809 fi
Chris@1 1810 eval ac_res=\$$3
Chris@1 1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@1 1812 $as_echo "$ac_res" >&6; }
Chris@1 1813 else
Chris@1 1814 # Is the header compilable?
Chris@1 1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
Chris@1 1816 $as_echo_n "checking $2 usability... " >&6; }
Chris@1 1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 1818 /* end confdefs.h. */
Chris@1 1819 $4
Chris@1 1820 #include <$2>
Chris@1 1821 _ACEOF
Chris@1 1822 if ac_fn_c_try_compile "$LINENO"; then :
Chris@1 1823 ac_header_compiler=yes
Chris@1 1824 else
Chris@1 1825 ac_header_compiler=no
Chris@1 1826 fi
Chris@1 1827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@1 1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
Chris@1 1829 $as_echo "$ac_header_compiler" >&6; }
Chris@1 1830
Chris@1 1831 # Is the header present?
Chris@1 1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
Chris@1 1833 $as_echo_n "checking $2 presence... " >&6; }
Chris@1 1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 1835 /* end confdefs.h. */
Chris@1 1836 #include <$2>
Chris@1 1837 _ACEOF
Chris@1 1838 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@1 1839 ac_header_preproc=yes
Chris@1 1840 else
Chris@1 1841 ac_header_preproc=no
Chris@1 1842 fi
Chris@1 1843 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@1 1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
Chris@1 1845 $as_echo "$ac_header_preproc" >&6; }
Chris@1 1846
Chris@1 1847 # So? What about this header?
Chris@1 1848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
Chris@1 1849 yes:no: )
Chris@1 1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
Chris@1 1851 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
Chris@1 1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
Chris@1 1853 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Chris@1 1854 ;;
Chris@1 1855 no:yes:* )
Chris@1 1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
Chris@1 1857 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
Chris@1 1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
Chris@1 1859 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
Chris@1 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
Chris@1 1861 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
Chris@1 1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
Chris@1 1863 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
Chris@1 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
Chris@1 1865 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Chris@1 1866 ( $as_echo "## ---------------------------------- ##
Chris@1 1867 ## Report this to vorbis-dev@xiph.org ##
Chris@1 1868 ## ---------------------------------- ##"
Chris@1 1869 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris@1 1870 ;;
Chris@1 1871 esac
Chris@1 1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@1 1873 $as_echo_n "checking for $2... " >&6; }
Chris@1 1874 if eval \${$3+:} false; then :
Chris@1 1875 $as_echo_n "(cached) " >&6
Chris@1 1876 else
Chris@1 1877 eval "$3=\$ac_header_compiler"
Chris@1 1878 fi
Chris@1 1879 eval ac_res=\$$3
Chris@1 1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@1 1881 $as_echo "$ac_res" >&6; }
Chris@1 1882 fi
Chris@1 1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@1 1884
Chris@1 1885 } # ac_fn_c_check_header_mongrel
Chris@1 1886
Chris@1 1887 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
Chris@1 1888 # -------------------------------------------
Chris@1 1889 # Tests whether TYPE exists after having included INCLUDES, setting cache
Chris@1 1890 # variable VAR accordingly.
Chris@1 1891 ac_fn_c_check_type ()
Chris@1 1892 {
Chris@1 1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@1 1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@1 1895 $as_echo_n "checking for $2... " >&6; }
Chris@1 1896 if eval \${$3+:} false; then :
Chris@1 1897 $as_echo_n "(cached) " >&6
Chris@1 1898 else
Chris@1 1899 eval "$3=no"
Chris@1 1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 1901 /* end confdefs.h. */
Chris@1 1902 $4
Chris@1 1903 int
Chris@1 1904 main ()
Chris@1 1905 {
Chris@1 1906 if (sizeof ($2))
Chris@1 1907 return 0;
Chris@1 1908 ;
Chris@1 1909 return 0;
Chris@1 1910 }
Chris@1 1911 _ACEOF
Chris@1 1912 if ac_fn_c_try_compile "$LINENO"; then :
Chris@1 1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 1914 /* end confdefs.h. */
Chris@1 1915 $4
Chris@1 1916 int
Chris@1 1917 main ()
Chris@1 1918 {
Chris@1 1919 if (sizeof (($2)))
Chris@1 1920 return 0;
Chris@1 1921 ;
Chris@1 1922 return 0;
Chris@1 1923 }
Chris@1 1924 _ACEOF
Chris@1 1925 if ac_fn_c_try_compile "$LINENO"; then :
Chris@1 1926
Chris@1 1927 else
Chris@1 1928 eval "$3=yes"
Chris@1 1929 fi
Chris@1 1930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@1 1931 fi
Chris@1 1932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@1 1933 fi
Chris@1 1934 eval ac_res=\$$3
Chris@1 1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@1 1936 $as_echo "$ac_res" >&6; }
Chris@1 1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@1 1938
Chris@1 1939 } # ac_fn_c_check_type
Chris@1 1940 cat >config.log <<_ACEOF
Chris@1 1941 This file contains any messages produced by compilers while
Chris@1 1942 running configure, to aid debugging if configure makes a mistake.
Chris@1 1943
Chris@1 1944 It was created by libvorbis $as_me 1.3.3, which was
Chris@1 1945 generated by GNU Autoconf 2.68. Invocation command line was
Chris@1 1946
Chris@1 1947 $ $0 $@
Chris@1 1948
Chris@1 1949 _ACEOF
Chris@1 1950 exec 5>>config.log
Chris@1 1951 {
Chris@1 1952 cat <<_ASUNAME
Chris@1 1953 ## --------- ##
Chris@1 1954 ## Platform. ##
Chris@1 1955 ## --------- ##
Chris@1 1956
Chris@1 1957 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@1 1958 uname -m = `(uname -m) 2>/dev/null || echo unknown`
Chris@1 1959 uname -r = `(uname -r) 2>/dev/null || echo unknown`
Chris@1 1960 uname -s = `(uname -s) 2>/dev/null || echo unknown`
Chris@1 1961 uname -v = `(uname -v) 2>/dev/null || echo unknown`
Chris@1 1962
Chris@1 1963 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
Chris@1 1964 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
Chris@1 1965
Chris@1 1966 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
Chris@1 1967 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
Chris@1 1968 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Chris@1 1969 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Chris@1 1970 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
Chris@1 1971 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
Chris@1 1972 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
Chris@1 1973
Chris@1 1974 _ASUNAME
Chris@1 1975
Chris@1 1976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 1977 for as_dir in $PATH
Chris@1 1978 do
Chris@1 1979 IFS=$as_save_IFS
Chris@1 1980 test -z "$as_dir" && as_dir=.
Chris@1 1981 $as_echo "PATH: $as_dir"
Chris@1 1982 done
Chris@1 1983 IFS=$as_save_IFS
Chris@1 1984
Chris@1 1985 } >&5
Chris@1 1986
Chris@1 1987 cat >&5 <<_ACEOF
Chris@1 1988
Chris@1 1989
Chris@1 1990 ## ----------- ##
Chris@1 1991 ## Core tests. ##
Chris@1 1992 ## ----------- ##
Chris@1 1993
Chris@1 1994 _ACEOF
Chris@1 1995
Chris@1 1996
Chris@1 1997 # Keep a trace of the command line.
Chris@1 1998 # Strip out --no-create and --no-recursion so they do not pile up.
Chris@1 1999 # Strip out --silent because we don't want to record it for future runs.
Chris@1 2000 # Also quote any args containing shell meta-characters.
Chris@1 2001 # Make two passes to allow for proper duplicate-argument suppression.
Chris@1 2002 ac_configure_args=
Chris@1 2003 ac_configure_args0=
Chris@1 2004 ac_configure_args1=
Chris@1 2005 ac_must_keep_next=false
Chris@1 2006 for ac_pass in 1 2
Chris@1 2007 do
Chris@1 2008 for ac_arg
Chris@1 2009 do
Chris@1 2010 case $ac_arg in
Chris@1 2011 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
Chris@1 2012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@1 2013 | -silent | --silent | --silen | --sile | --sil)
Chris@1 2014 continue ;;
Chris@1 2015 *\'*)
Chris@1 2016 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@1 2017 esac
Chris@1 2018 case $ac_pass in
Chris@1 2019 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Chris@1 2020 2)
Chris@1 2021 as_fn_append ac_configure_args1 " '$ac_arg'"
Chris@1 2022 if test $ac_must_keep_next = true; then
Chris@1 2023 ac_must_keep_next=false # Got value, back to normal.
Chris@1 2024 else
Chris@1 2025 case $ac_arg in
Chris@1 2026 *=* | --config-cache | -C | -disable-* | --disable-* \
Chris@1 2027 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
Chris@1 2028 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
Chris@1 2029 | -with-* | --with-* | -without-* | --without-* | --x)
Chris@1 2030 case "$ac_configure_args0 " in
Chris@1 2031 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
Chris@1 2032 esac
Chris@1 2033 ;;
Chris@1 2034 -* ) ac_must_keep_next=true ;;
Chris@1 2035 esac
Chris@1 2036 fi
Chris@1 2037 as_fn_append ac_configure_args " '$ac_arg'"
Chris@1 2038 ;;
Chris@1 2039 esac
Chris@1 2040 done
Chris@1 2041 done
Chris@1 2042 { ac_configure_args0=; unset ac_configure_args0;}
Chris@1 2043 { ac_configure_args1=; unset ac_configure_args1;}
Chris@1 2044
Chris@1 2045 # When interrupted or exit'd, cleanup temporary files, and complete
Chris@1 2046 # config.log. We remove comments because anyway the quotes in there
Chris@1 2047 # would cause problems or look ugly.
Chris@1 2048 # WARNING: Use '\'' to represent an apostrophe within the trap.
Chris@1 2049 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Chris@1 2050 trap 'exit_status=$?
Chris@1 2051 # Save into config.log some information that might help in debugging.
Chris@1 2052 {
Chris@1 2053 echo
Chris@1 2054
Chris@1 2055 $as_echo "## ---------------- ##
Chris@1 2056 ## Cache variables. ##
Chris@1 2057 ## ---------------- ##"
Chris@1 2058 echo
Chris@1 2059 # The following way of writing the cache mishandles newlines in values,
Chris@1 2060 (
Chris@1 2061 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
Chris@1 2062 eval ac_val=\$$ac_var
Chris@1 2063 case $ac_val in #(
Chris@1 2064 *${as_nl}*)
Chris@1 2065 case $ac_var in #(
Chris@1 2066 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Chris@1 2067 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Chris@1 2068 esac
Chris@1 2069 case $ac_var in #(
Chris@1 2070 _ | IFS | as_nl) ;; #(
Chris@1 2071 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Chris@1 2072 *) { eval $ac_var=; unset $ac_var;} ;;
Chris@1 2073 esac ;;
Chris@1 2074 esac
Chris@1 2075 done
Chris@1 2076 (set) 2>&1 |
Chris@1 2077 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
Chris@1 2078 *${as_nl}ac_space=\ *)
Chris@1 2079 sed -n \
Chris@1 2080 "s/'\''/'\''\\\\'\'''\''/g;
Chris@1 2081 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
Chris@1 2082 ;; #(
Chris@1 2083 *)
Chris@1 2084 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Chris@1 2085 ;;
Chris@1 2086 esac |
Chris@1 2087 sort
Chris@1 2088 )
Chris@1 2089 echo
Chris@1 2090
Chris@1 2091 $as_echo "## ----------------- ##
Chris@1 2092 ## Output variables. ##
Chris@1 2093 ## ----------------- ##"
Chris@1 2094 echo
Chris@1 2095 for ac_var in $ac_subst_vars
Chris@1 2096 do
Chris@1 2097 eval ac_val=\$$ac_var
Chris@1 2098 case $ac_val in
Chris@1 2099 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Chris@1 2100 esac
Chris@1 2101 $as_echo "$ac_var='\''$ac_val'\''"
Chris@1 2102 done | sort
Chris@1 2103 echo
Chris@1 2104
Chris@1 2105 if test -n "$ac_subst_files"; then
Chris@1 2106 $as_echo "## ------------------- ##
Chris@1 2107 ## File substitutions. ##
Chris@1 2108 ## ------------------- ##"
Chris@1 2109 echo
Chris@1 2110 for ac_var in $ac_subst_files
Chris@1 2111 do
Chris@1 2112 eval ac_val=\$$ac_var
Chris@1 2113 case $ac_val in
Chris@1 2114 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Chris@1 2115 esac
Chris@1 2116 $as_echo "$ac_var='\''$ac_val'\''"
Chris@1 2117 done | sort
Chris@1 2118 echo
Chris@1 2119 fi
Chris@1 2120
Chris@1 2121 if test -s confdefs.h; then
Chris@1 2122 $as_echo "## ----------- ##
Chris@1 2123 ## confdefs.h. ##
Chris@1 2124 ## ----------- ##"
Chris@1 2125 echo
Chris@1 2126 cat confdefs.h
Chris@1 2127 echo
Chris@1 2128 fi
Chris@1 2129 test "$ac_signal" != 0 &&
Chris@1 2130 $as_echo "$as_me: caught signal $ac_signal"
Chris@1 2131 $as_echo "$as_me: exit $exit_status"
Chris@1 2132 } >&5
Chris@1 2133 rm -f core *.core core.conftest.* &&
Chris@1 2134 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Chris@1 2135 exit $exit_status
Chris@1 2136 ' 0
Chris@1 2137 for ac_signal in 1 2 13 15; do
Chris@1 2138 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Chris@1 2139 done
Chris@1 2140 ac_signal=0
Chris@1 2141
Chris@1 2142 # confdefs.h avoids OS command line length limits that DEFS can exceed.
Chris@1 2143 rm -f -r conftest* confdefs.h
Chris@1 2144
Chris@1 2145 $as_echo "/* confdefs.h */" > confdefs.h
Chris@1 2146
Chris@1 2147 # Predefined preprocessor variables.
Chris@1 2148
Chris@1 2149 cat >>confdefs.h <<_ACEOF
Chris@1 2150 #define PACKAGE_NAME "$PACKAGE_NAME"
Chris@1 2151 _ACEOF
Chris@1 2152
Chris@1 2153 cat >>confdefs.h <<_ACEOF
Chris@1 2154 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
Chris@1 2155 _ACEOF
Chris@1 2156
Chris@1 2157 cat >>confdefs.h <<_ACEOF
Chris@1 2158 #define PACKAGE_VERSION "$PACKAGE_VERSION"
Chris@1 2159 _ACEOF
Chris@1 2160
Chris@1 2161 cat >>confdefs.h <<_ACEOF
Chris@1 2162 #define PACKAGE_STRING "$PACKAGE_STRING"
Chris@1 2163 _ACEOF
Chris@1 2164
Chris@1 2165 cat >>confdefs.h <<_ACEOF
Chris@1 2166 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
Chris@1 2167 _ACEOF
Chris@1 2168
Chris@1 2169 cat >>confdefs.h <<_ACEOF
Chris@1 2170 #define PACKAGE_URL "$PACKAGE_URL"
Chris@1 2171 _ACEOF
Chris@1 2172
Chris@1 2173
Chris@1 2174 # Let the site file select an alternate cache file if it wants to.
Chris@1 2175 # Prefer an explicitly selected file to automatically selected ones.
Chris@1 2176 ac_site_file1=NONE
Chris@1 2177 ac_site_file2=NONE
Chris@1 2178 if test -n "$CONFIG_SITE"; then
Chris@1 2179 # We do not want a PATH search for config.site.
Chris@1 2180 case $CONFIG_SITE in #((
Chris@1 2181 -*) ac_site_file1=./$CONFIG_SITE;;
Chris@1 2182 */*) ac_site_file1=$CONFIG_SITE;;
Chris@1 2183 *) ac_site_file1=./$CONFIG_SITE;;
Chris@1 2184 esac
Chris@1 2185 elif test "x$prefix" != xNONE; then
Chris@1 2186 ac_site_file1=$prefix/share/config.site
Chris@1 2187 ac_site_file2=$prefix/etc/config.site
Chris@1 2188 else
Chris@1 2189 ac_site_file1=$ac_default_prefix/share/config.site
Chris@1 2190 ac_site_file2=$ac_default_prefix/etc/config.site
Chris@1 2191 fi
Chris@1 2192 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Chris@1 2193 do
Chris@1 2194 test "x$ac_site_file" = xNONE && continue
Chris@1 2195 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Chris@1 2196 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Chris@1 2197 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
Chris@1 2198 sed 's/^/| /' "$ac_site_file" >&5
Chris@1 2199 . "$ac_site_file" \
Chris@1 2200 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@1 2201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@1 2202 as_fn_error $? "failed to load site script $ac_site_file
Chris@1 2203 See \`config.log' for more details" "$LINENO" 5; }
Chris@1 2204 fi
Chris@1 2205 done
Chris@1 2206
Chris@1 2207 if test -r "$cache_file"; then
Chris@1 2208 # Some versions of bash will fail to source /dev/null (special files
Chris@1 2209 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
Chris@1 2210 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Chris@1 2211 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Chris@1 2212 $as_echo "$as_me: loading cache $cache_file" >&6;}
Chris@1 2213 case $cache_file in
Chris@1 2214 [\\/]* | ?:[\\/]* ) . "$cache_file";;
Chris@1 2215 *) . "./$cache_file";;
Chris@1 2216 esac
Chris@1 2217 fi
Chris@1 2218 else
Chris@1 2219 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Chris@1 2220 $as_echo "$as_me: creating cache $cache_file" >&6;}
Chris@1 2221 >$cache_file
Chris@1 2222 fi
Chris@1 2223
Chris@1 2224 # Check that the precious variables saved in the cache have kept the same
Chris@1 2225 # value.
Chris@1 2226 ac_cache_corrupted=false
Chris@1 2227 for ac_var in $ac_precious_vars; do
Chris@1 2228 eval ac_old_set=\$ac_cv_env_${ac_var}_set
Chris@1 2229 eval ac_new_set=\$ac_env_${ac_var}_set
Chris@1 2230 eval ac_old_val=\$ac_cv_env_${ac_var}_value
Chris@1 2231 eval ac_new_val=\$ac_env_${ac_var}_value
Chris@1 2232 case $ac_old_set,$ac_new_set in
Chris@1 2233 set,)
Chris@1 2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Chris@1 2235 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Chris@1 2236 ac_cache_corrupted=: ;;
Chris@1 2237 ,set)
Chris@1 2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
Chris@1 2239 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Chris@1 2240 ac_cache_corrupted=: ;;
Chris@1 2241 ,);;
Chris@1 2242 *)
Chris@1 2243 if test "x$ac_old_val" != "x$ac_new_val"; then
Chris@1 2244 # differences in whitespace do not lead to failure.
Chris@1 2245 ac_old_val_w=`echo x $ac_old_val`
Chris@1 2246 ac_new_val_w=`echo x $ac_new_val`
Chris@1 2247 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Chris@1 2248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Chris@1 2249 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Chris@1 2250 ac_cache_corrupted=:
Chris@1 2251 else
Chris@1 2252 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Chris@1 2253 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
Chris@1 2254 eval $ac_var=\$ac_old_val
Chris@1 2255 fi
Chris@1 2256 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Chris@1 2257 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Chris@1 2258 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Chris@1 2259 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Chris@1 2260 fi;;
Chris@1 2261 esac
Chris@1 2262 # Pass precious variables to config.status.
Chris@1 2263 if test "$ac_new_set" = set; then
Chris@1 2264 case $ac_new_val in
Chris@1 2265 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@1 2266 *) ac_arg=$ac_var=$ac_new_val ;;
Chris@1 2267 esac
Chris@1 2268 case " $ac_configure_args " in
Chris@1 2269 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Chris@1 2270 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Chris@1 2271 esac
Chris@1 2272 fi
Chris@1 2273 done
Chris@1 2274 if $ac_cache_corrupted; then
Chris@1 2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@1 2276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@1 2277 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Chris@1 2278 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Chris@1 2279 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Chris@1 2280 fi
Chris@1 2281 ## -------------------- ##
Chris@1 2282 ## Main body of script. ##
Chris@1 2283 ## -------------------- ##
Chris@1 2284
Chris@1 2285 ac_ext=c
Chris@1 2286 ac_cpp='$CPP $CPPFLAGS'
Chris@1 2287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@1 2288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@1 2289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@1 2290
Chris@1 2291
Chris@1 2292
Chris@1 2293
Chris@1 2294
Chris@1 2295 ac_aux_dir=
Chris@1 2296 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Chris@1 2297 if test -f "$ac_dir/install-sh"; then
Chris@1 2298 ac_aux_dir=$ac_dir
Chris@1 2299 ac_install_sh="$ac_aux_dir/install-sh -c"
Chris@1 2300 break
Chris@1 2301 elif test -f "$ac_dir/install.sh"; then
Chris@1 2302 ac_aux_dir=$ac_dir
Chris@1 2303 ac_install_sh="$ac_aux_dir/install.sh -c"
Chris@1 2304 break
Chris@1 2305 elif test -f "$ac_dir/shtool"; then
Chris@1 2306 ac_aux_dir=$ac_dir
Chris@1 2307 ac_install_sh="$ac_aux_dir/shtool install -c"
Chris@1 2308 break
Chris@1 2309 fi
Chris@1 2310 done
Chris@1 2311 if test -z "$ac_aux_dir"; then
Chris@1 2312 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Chris@1 2313 fi
Chris@1 2314
Chris@1 2315 # These three variables are undocumented and unsupported,
Chris@1 2316 # and are intended to be withdrawn in a future Autoconf release.
Chris@1 2317 # They can cause serious problems if a builder's source tree is in a directory
Chris@1 2318 # whose full name contains unusual characters.
Chris@1 2319 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
Chris@1 2320 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
Chris@1 2321 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
Chris@1 2322
Chris@1 2323
Chris@1 2324 # Make sure we can run config.sub.
Chris@1 2325 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Chris@1 2326 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Chris@1 2327
Chris@1 2328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Chris@1 2329 $as_echo_n "checking build system type... " >&6; }
Chris@1 2330 if ${ac_cv_build+:} false; then :
Chris@1 2331 $as_echo_n "(cached) " >&6
Chris@1 2332 else
Chris@1 2333 ac_build_alias=$build_alias
Chris@1 2334 test "x$ac_build_alias" = x &&
Chris@1 2335 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
Chris@1 2336 test "x$ac_build_alias" = x &&
Chris@1 2337 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Chris@1 2338 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Chris@1 2339 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Chris@1 2340
Chris@1 2341 fi
Chris@1 2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Chris@1 2343 $as_echo "$ac_cv_build" >&6; }
Chris@1 2344 case $ac_cv_build in
Chris@1 2345 *-*-*) ;;
Chris@1 2346 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Chris@1 2347 esac
Chris@1 2348 build=$ac_cv_build
Chris@1 2349 ac_save_IFS=$IFS; IFS='-'
Chris@1 2350 set x $ac_cv_build
Chris@1 2351 shift
Chris@1 2352 build_cpu=$1
Chris@1 2353 build_vendor=$2
Chris@1 2354 shift; shift
Chris@1 2355 # Remember, the first character of IFS is used to create $*,
Chris@1 2356 # except with old shells:
Chris@1 2357 build_os=$*
Chris@1 2358 IFS=$ac_save_IFS
Chris@1 2359 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Chris@1 2360
Chris@1 2361
Chris@1 2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Chris@1 2363 $as_echo_n "checking host system type... " >&6; }
Chris@1 2364 if ${ac_cv_host+:} false; then :
Chris@1 2365 $as_echo_n "(cached) " >&6
Chris@1 2366 else
Chris@1 2367 if test "x$host_alias" = x; then
Chris@1 2368 ac_cv_host=$ac_cv_build
Chris@1 2369 else
Chris@1 2370 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Chris@1 2371 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Chris@1 2372 fi
Chris@1 2373
Chris@1 2374 fi
Chris@1 2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Chris@1 2376 $as_echo "$ac_cv_host" >&6; }
Chris@1 2377 case $ac_cv_host in
Chris@1 2378 *-*-*) ;;
Chris@1 2379 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Chris@1 2380 esac
Chris@1 2381 host=$ac_cv_host
Chris@1 2382 ac_save_IFS=$IFS; IFS='-'
Chris@1 2383 set x $ac_cv_host
Chris@1 2384 shift
Chris@1 2385 host_cpu=$1
Chris@1 2386 host_vendor=$2
Chris@1 2387 shift; shift
Chris@1 2388 # Remember, the first character of IFS is used to create $*,
Chris@1 2389 # except with old shells:
Chris@1 2390 host_os=$*
Chris@1 2391 IFS=$ac_save_IFS
Chris@1 2392 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Chris@1 2393
Chris@1 2394
Chris@1 2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
Chris@1 2396 $as_echo_n "checking target system type... " >&6; }
Chris@1 2397 if ${ac_cv_target+:} false; then :
Chris@1 2398 $as_echo_n "(cached) " >&6
Chris@1 2399 else
Chris@1 2400 if test "x$target_alias" = x; then
Chris@1 2401 ac_cv_target=$ac_cv_host
Chris@1 2402 else
Chris@1 2403 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Chris@1 2404 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
Chris@1 2405 fi
Chris@1 2406
Chris@1 2407 fi
Chris@1 2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
Chris@1 2409 $as_echo "$ac_cv_target" >&6; }
Chris@1 2410 case $ac_cv_target in
Chris@1 2411 *-*-*) ;;
Chris@1 2412 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
Chris@1 2413 esac
Chris@1 2414 target=$ac_cv_target
Chris@1 2415 ac_save_IFS=$IFS; IFS='-'
Chris@1 2416 set x $ac_cv_target
Chris@1 2417 shift
Chris@1 2418 target_cpu=$1
Chris@1 2419 target_vendor=$2
Chris@1 2420 shift; shift
Chris@1 2421 # Remember, the first character of IFS is used to create $*,
Chris@1 2422 # except with old shells:
Chris@1 2423 target_os=$*
Chris@1 2424 IFS=$ac_save_IFS
Chris@1 2425 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
Chris@1 2426
Chris@1 2427
Chris@1 2428 # The aliases save the names the user supplied, while $host etc.
Chris@1 2429 # will get canonicalized.
Chris@1 2430 test -n "$target_alias" &&
Chris@1 2431 test "$program_prefix$program_suffix$program_transform_name" = \
Chris@1 2432 NONENONEs,x,x, &&
Chris@1 2433 program_prefix=${target_alias}-
Chris@1 2434
Chris@1 2435 am__api_version='1.11'
Chris@1 2436
Chris@1 2437 # Find a good install program. We prefer a C program (faster),
Chris@1 2438 # so one script is as good as another. But avoid the broken or
Chris@1 2439 # incompatible versions:
Chris@1 2440 # SysV /etc/install, /usr/sbin/install
Chris@1 2441 # SunOS /usr/etc/install
Chris@1 2442 # IRIX /sbin/install
Chris@1 2443 # AIX /bin/install
Chris@1 2444 # AmigaOS /C/install, which installs bootblocks on floppy discs
Chris@1 2445 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Chris@1 2446 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
Chris@1 2447 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Chris@1 2448 # OS/2's system install, which has a completely different semantic
Chris@1 2449 # ./install, which can be erroneously created by make from ./install.sh.
Chris@1 2450 # Reject install programs that cannot install multiple files.
Chris@1 2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Chris@1 2452 $as_echo_n "checking for a BSD-compatible install... " >&6; }
Chris@1 2453 if test -z "$INSTALL"; then
Chris@1 2454 if ${ac_cv_path_install+:} false; then :
Chris@1 2455 $as_echo_n "(cached) " >&6
Chris@1 2456 else
Chris@1 2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 2458 for as_dir in $PATH
Chris@1 2459 do
Chris@1 2460 IFS=$as_save_IFS
Chris@1 2461 test -z "$as_dir" && as_dir=.
Chris@1 2462 # Account for people who put trailing slashes in PATH elements.
Chris@1 2463 case $as_dir/ in #((
Chris@1 2464 ./ | .// | /[cC]/* | \
Chris@1 2465 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Chris@1 2466 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Chris@1 2467 /usr/ucb/* ) ;;
Chris@1 2468 *)
Chris@1 2469 # OSF1 and SCO ODT 3.0 have their own names for install.
Chris@1 2470 # Don't use installbsd from OSF since it installs stuff as root
Chris@1 2471 # by default.
Chris@1 2472 for ac_prog in ginstall scoinst install; do
Chris@1 2473 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 2474 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Chris@1 2475 if test $ac_prog = install &&
Chris@1 2476 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Chris@1 2477 # AIX install. It has an incompatible calling convention.
Chris@1 2478 :
Chris@1 2479 elif test $ac_prog = install &&
Chris@1 2480 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Chris@1 2481 # program-specific install script used by HP pwplus--don't use.
Chris@1 2482 :
Chris@1 2483 else
Chris@1 2484 rm -rf conftest.one conftest.two conftest.dir
Chris@1 2485 echo one > conftest.one
Chris@1 2486 echo two > conftest.two
Chris@1 2487 mkdir conftest.dir
Chris@1 2488 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
Chris@1 2489 test -s conftest.one && test -s conftest.two &&
Chris@1 2490 test -s conftest.dir/conftest.one &&
Chris@1 2491 test -s conftest.dir/conftest.two
Chris@1 2492 then
Chris@1 2493 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
Chris@1 2494 break 3
Chris@1 2495 fi
Chris@1 2496 fi
Chris@1 2497 fi
Chris@1 2498 done
Chris@1 2499 done
Chris@1 2500 ;;
Chris@1 2501 esac
Chris@1 2502
Chris@1 2503 done
Chris@1 2504 IFS=$as_save_IFS
Chris@1 2505
Chris@1 2506 rm -rf conftest.one conftest.two conftest.dir
Chris@1 2507
Chris@1 2508 fi
Chris@1 2509 if test "${ac_cv_path_install+set}" = set; then
Chris@1 2510 INSTALL=$ac_cv_path_install
Chris@1 2511 else
Chris@1 2512 # As a last resort, use the slow shell script. Don't cache a
Chris@1 2513 # value for INSTALL within a source directory, because that will
Chris@1 2514 # break other packages using the cache if that directory is
Chris@1 2515 # removed, or if the value is a relative name.
Chris@1 2516 INSTALL=$ac_install_sh
Chris@1 2517 fi
Chris@1 2518 fi
Chris@1 2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Chris@1 2520 $as_echo "$INSTALL" >&6; }
Chris@1 2521
Chris@1 2522 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
Chris@1 2523 # It thinks the first close brace ends the variable substitution.
Chris@1 2524 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Chris@1 2525
Chris@1 2526 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Chris@1 2527
Chris@1 2528 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Chris@1 2529
Chris@1 2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
Chris@1 2531 $as_echo_n "checking whether build environment is sane... " >&6; }
Chris@1 2532 # Just in case
Chris@1 2533 sleep 1
Chris@1 2534 echo timestamp > conftest.file
Chris@1 2535 # Reject unsafe characters in $srcdir or the absolute working directory
Chris@1 2536 # name. Accept space and tab only in the latter.
Chris@1 2537 am_lf='
Chris@1 2538 '
Chris@1 2539 case `pwd` in
Chris@1 2540 *[\\\"\#\$\&\'\`$am_lf]*)
Chris@1 2541 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
Chris@1 2542 esac
Chris@1 2543 case $srcdir in
Chris@1 2544 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Chris@1 2545 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
Chris@1 2546 esac
Chris@1 2547
Chris@1 2548 # Do `set' in a subshell so we don't clobber the current shell's
Chris@1 2549 # arguments. Must try -L first in case configure is actually a
Chris@1 2550 # symlink; some systems play weird games with the mod time of symlinks
Chris@1 2551 # (eg FreeBSD returns the mod time of the symlink's containing
Chris@1 2552 # directory).
Chris@1 2553 if (
Chris@1 2554 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Chris@1 2555 if test "$*" = "X"; then
Chris@1 2556 # -L didn't work.
Chris@1 2557 set X `ls -t "$srcdir/configure" conftest.file`
Chris@1 2558 fi
Chris@1 2559 rm -f conftest.file
Chris@1 2560 if test "$*" != "X $srcdir/configure conftest.file" \
Chris@1 2561 && test "$*" != "X conftest.file $srcdir/configure"; then
Chris@1 2562
Chris@1 2563 # If neither matched, then we have a broken ls. This can happen
Chris@1 2564 # if, for instance, CONFIG_SHELL is bash and it inherits a
Chris@1 2565 # broken ls alias from the environment. This has actually
Chris@1 2566 # happened. Such a system could not be considered "sane".
Chris@1 2567 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
Chris@1 2568 alias in your environment" "$LINENO" 5
Chris@1 2569 fi
Chris@1 2570
Chris@1 2571 test "$2" = conftest.file
Chris@1 2572 )
Chris@1 2573 then
Chris@1 2574 # Ok.
Chris@1 2575 :
Chris@1 2576 else
Chris@1 2577 as_fn_error $? "newly created file is older than distributed files!
Chris@1 2578 Check your system clock" "$LINENO" 5
Chris@1 2579 fi
Chris@1 2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@1 2581 $as_echo "yes" >&6; }
Chris@1 2582 test "$program_prefix" != NONE &&
Chris@1 2583 program_transform_name="s&^&$program_prefix&;$program_transform_name"
Chris@1 2584 # Use a double $ so make ignores it.
Chris@1 2585 test "$program_suffix" != NONE &&
Chris@1 2586 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Chris@1 2587 # Double any \ or $.
Chris@1 2588 # By default was `s,x,x', remove it if useless.
Chris@1 2589 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
Chris@1 2590 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Chris@1 2591
Chris@1 2592 # expand $ac_aux_dir to an absolute path
Chris@1 2593 am_aux_dir=`cd $ac_aux_dir && pwd`
Chris@1 2594
Chris@1 2595 if test x"${MISSING+set}" != xset; then
Chris@1 2596 case $am_aux_dir in
Chris@1 2597 *\ * | *\ *)
Chris@1 2598 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
Chris@1 2599 *)
Chris@1 2600 MISSING="\${SHELL} $am_aux_dir/missing" ;;
Chris@1 2601 esac
Chris@1 2602 fi
Chris@1 2603 # Use eval to expand $SHELL
Chris@1 2604 if eval "$MISSING --run true"; then
Chris@1 2605 am_missing_run="$MISSING --run "
Chris@1 2606 else
Chris@1 2607 am_missing_run=
Chris@1 2608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
Chris@1 2609 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
Chris@1 2610 fi
Chris@1 2611
Chris@1 2612 if test x"${install_sh}" != xset; then
Chris@1 2613 case $am_aux_dir in
Chris@1 2614 *\ * | *\ *)
Chris@1 2615 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
Chris@1 2616 *)
Chris@1 2617 install_sh="\${SHELL} $am_aux_dir/install-sh"
Chris@1 2618 esac
Chris@1 2619 fi
Chris@1 2620
Chris@1 2621 # Installed binaries are usually stripped using `strip' when the user
Chris@1 2622 # run `make install-strip'. However `strip' might not be the right
Chris@1 2623 # tool to use in cross-compilation environments, therefore Automake
Chris@1 2624 # will honor the `STRIP' environment variable to overrule this program.
Chris@1 2625 if test "$cross_compiling" != no; then
Chris@1 2626 if test -n "$ac_tool_prefix"; then
Chris@1 2627 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
Chris@1 2628 set dummy ${ac_tool_prefix}strip; ac_word=$2
Chris@1 2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 2630 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 2631 if ${ac_cv_prog_STRIP+:} false; then :
Chris@1 2632 $as_echo_n "(cached) " >&6
Chris@1 2633 else
Chris@1 2634 if test -n "$STRIP"; then
Chris@1 2635 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
Chris@1 2636 else
Chris@1 2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 2638 for as_dir in $PATH
Chris@1 2639 do
Chris@1 2640 IFS=$as_save_IFS
Chris@1 2641 test -z "$as_dir" && as_dir=.
Chris@1 2642 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 2643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 2644 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Chris@1 2645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 2646 break 2
Chris@1 2647 fi
Chris@1 2648 done
Chris@1 2649 done
Chris@1 2650 IFS=$as_save_IFS
Chris@1 2651
Chris@1 2652 fi
Chris@1 2653 fi
Chris@1 2654 STRIP=$ac_cv_prog_STRIP
Chris@1 2655 if test -n "$STRIP"; then
Chris@1 2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Chris@1 2657 $as_echo "$STRIP" >&6; }
Chris@1 2658 else
Chris@1 2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 2660 $as_echo "no" >&6; }
Chris@1 2661 fi
Chris@1 2662
Chris@1 2663
Chris@1 2664 fi
Chris@1 2665 if test -z "$ac_cv_prog_STRIP"; then
Chris@1 2666 ac_ct_STRIP=$STRIP
Chris@1 2667 # Extract the first word of "strip", so it can be a program name with args.
Chris@1 2668 set dummy strip; ac_word=$2
Chris@1 2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 2670 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 2671 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Chris@1 2672 $as_echo_n "(cached) " >&6
Chris@1 2673 else
Chris@1 2674 if test -n "$ac_ct_STRIP"; then
Chris@1 2675 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Chris@1 2676 else
Chris@1 2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 2678 for as_dir in $PATH
Chris@1 2679 do
Chris@1 2680 IFS=$as_save_IFS
Chris@1 2681 test -z "$as_dir" && as_dir=.
Chris@1 2682 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 2683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 2684 ac_cv_prog_ac_ct_STRIP="strip"
Chris@1 2685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 2686 break 2
Chris@1 2687 fi
Chris@1 2688 done
Chris@1 2689 done
Chris@1 2690 IFS=$as_save_IFS
Chris@1 2691
Chris@1 2692 fi
Chris@1 2693 fi
Chris@1 2694 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
Chris@1 2695 if test -n "$ac_ct_STRIP"; then
Chris@1 2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Chris@1 2697 $as_echo "$ac_ct_STRIP" >&6; }
Chris@1 2698 else
Chris@1 2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 2700 $as_echo "no" >&6; }
Chris@1 2701 fi
Chris@1 2702
Chris@1 2703 if test "x$ac_ct_STRIP" = x; then
Chris@1 2704 STRIP=":"
Chris@1 2705 else
Chris@1 2706 case $cross_compiling:$ac_tool_warned in
Chris@1 2707 yes:)
Chris@1 2708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 2709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 2710 ac_tool_warned=yes ;;
Chris@1 2711 esac
Chris@1 2712 STRIP=$ac_ct_STRIP
Chris@1 2713 fi
Chris@1 2714 else
Chris@1 2715 STRIP="$ac_cv_prog_STRIP"
Chris@1 2716 fi
Chris@1 2717
Chris@1 2718 fi
Chris@1 2719 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
Chris@1 2720
Chris@1 2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
Chris@1 2722 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
Chris@1 2723 if test -z "$MKDIR_P"; then
Chris@1 2724 if ${ac_cv_path_mkdir+:} false; then :
Chris@1 2725 $as_echo_n "(cached) " >&6
Chris@1 2726 else
Chris@1 2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 2728 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
Chris@1 2729 do
Chris@1 2730 IFS=$as_save_IFS
Chris@1 2731 test -z "$as_dir" && as_dir=.
Chris@1 2732 for ac_prog in mkdir gmkdir; do
Chris@1 2733 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 2734 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
Chris@1 2735 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
Chris@1 2736 'mkdir (GNU coreutils) '* | \
Chris@1 2737 'mkdir (coreutils) '* | \
Chris@1 2738 'mkdir (fileutils) '4.1*)
Chris@1 2739 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
Chris@1 2740 break 3;;
Chris@1 2741 esac
Chris@1 2742 done
Chris@1 2743 done
Chris@1 2744 done
Chris@1 2745 IFS=$as_save_IFS
Chris@1 2746
Chris@1 2747 fi
Chris@1 2748
Chris@1 2749 test -d ./--version && rmdir ./--version
Chris@1 2750 if test "${ac_cv_path_mkdir+set}" = set; then
Chris@1 2751 MKDIR_P="$ac_cv_path_mkdir -p"
Chris@1 2752 else
Chris@1 2753 # As a last resort, use the slow shell script. Don't cache a
Chris@1 2754 # value for MKDIR_P within a source directory, because that will
Chris@1 2755 # break other packages using the cache if that directory is
Chris@1 2756 # removed, or if the value is a relative name.
Chris@1 2757 MKDIR_P="$ac_install_sh -d"
Chris@1 2758 fi
Chris@1 2759 fi
Chris@1 2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
Chris@1 2761 $as_echo "$MKDIR_P" >&6; }
Chris@1 2762
Chris@1 2763 mkdir_p="$MKDIR_P"
Chris@1 2764 case $mkdir_p in
Chris@1 2765 [\\/$]* | ?:[\\/]*) ;;
Chris@1 2766 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
Chris@1 2767 esac
Chris@1 2768
Chris@1 2769 for ac_prog in gawk mawk nawk awk
Chris@1 2770 do
Chris@1 2771 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@1 2772 set dummy $ac_prog; ac_word=$2
Chris@1 2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 2774 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 2775 if ${ac_cv_prog_AWK+:} false; then :
Chris@1 2776 $as_echo_n "(cached) " >&6
Chris@1 2777 else
Chris@1 2778 if test -n "$AWK"; then
Chris@1 2779 ac_cv_prog_AWK="$AWK" # Let the user override the test.
Chris@1 2780 else
Chris@1 2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 2782 for as_dir in $PATH
Chris@1 2783 do
Chris@1 2784 IFS=$as_save_IFS
Chris@1 2785 test -z "$as_dir" && as_dir=.
Chris@1 2786 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 2787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 2788 ac_cv_prog_AWK="$ac_prog"
Chris@1 2789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 2790 break 2
Chris@1 2791 fi
Chris@1 2792 done
Chris@1 2793 done
Chris@1 2794 IFS=$as_save_IFS
Chris@1 2795
Chris@1 2796 fi
Chris@1 2797 fi
Chris@1 2798 AWK=$ac_cv_prog_AWK
Chris@1 2799 if test -n "$AWK"; then
Chris@1 2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Chris@1 2801 $as_echo "$AWK" >&6; }
Chris@1 2802 else
Chris@1 2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 2804 $as_echo "no" >&6; }
Chris@1 2805 fi
Chris@1 2806
Chris@1 2807
Chris@1 2808 test -n "$AWK" && break
Chris@1 2809 done
Chris@1 2810
Chris@1 2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Chris@1 2812 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
Chris@1 2813 set x ${MAKE-make}
Chris@1 2814 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Chris@1 2815 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Chris@1 2816 $as_echo_n "(cached) " >&6
Chris@1 2817 else
Chris@1 2818 cat >conftest.make <<\_ACEOF
Chris@1 2819 SHELL = /bin/sh
Chris@1 2820 all:
Chris@1 2821 @echo '@@@%%%=$(MAKE)=@@@%%%'
Chris@1 2822 _ACEOF
Chris@1 2823 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Chris@1 2824 case `${MAKE-make} -f conftest.make 2>/dev/null` in
Chris@1 2825 *@@@%%%=?*=@@@%%%*)
Chris@1 2826 eval ac_cv_prog_make_${ac_make}_set=yes;;
Chris@1 2827 *)
Chris@1 2828 eval ac_cv_prog_make_${ac_make}_set=no;;
Chris@1 2829 esac
Chris@1 2830 rm -f conftest.make
Chris@1 2831 fi
Chris@1 2832 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Chris@1 2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@1 2834 $as_echo "yes" >&6; }
Chris@1 2835 SET_MAKE=
Chris@1 2836 else
Chris@1 2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 2838 $as_echo "no" >&6; }
Chris@1 2839 SET_MAKE="MAKE=${MAKE-make}"
Chris@1 2840 fi
Chris@1 2841
Chris@1 2842 rm -rf .tst 2>/dev/null
Chris@1 2843 mkdir .tst 2>/dev/null
Chris@1 2844 if test -d .tst; then
Chris@1 2845 am__leading_dot=.
Chris@1 2846 else
Chris@1 2847 am__leading_dot=_
Chris@1 2848 fi
Chris@1 2849 rmdir .tst 2>/dev/null
Chris@1 2850
Chris@1 2851 if test "`cd $srcdir && pwd`" != "`pwd`"; then
Chris@1 2852 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
Chris@1 2853 # is not polluted with repeated "-I."
Chris@1 2854 am__isrc=' -I$(srcdir)'
Chris@1 2855 # test to see if srcdir already configured
Chris@1 2856 if test -f $srcdir/config.status; then
Chris@1 2857 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Chris@1 2858 fi
Chris@1 2859 fi
Chris@1 2860
Chris@1 2861 # test whether we have cygpath
Chris@1 2862 if test -z "$CYGPATH_W"; then
Chris@1 2863 if (cygpath --version) >/dev/null 2>/dev/null; then
Chris@1 2864 CYGPATH_W='cygpath -w'
Chris@1 2865 else
Chris@1 2866 CYGPATH_W=echo
Chris@1 2867 fi
Chris@1 2868 fi
Chris@1 2869
Chris@1 2870
Chris@1 2871 # Define the identity of the package.
Chris@1 2872 PACKAGE=$PACKAGE_NAME
Chris@1 2873 VERSION=$PACKAGE_VERSION
Chris@1 2874
Chris@1 2875
Chris@1 2876 cat >>confdefs.h <<_ACEOF
Chris@1 2877 #define PACKAGE "$PACKAGE"
Chris@1 2878 _ACEOF
Chris@1 2879
Chris@1 2880
Chris@1 2881 cat >>confdefs.h <<_ACEOF
Chris@1 2882 #define VERSION "$VERSION"
Chris@1 2883 _ACEOF
Chris@1 2884
Chris@1 2885 # Some tools Automake needs.
Chris@1 2886
Chris@1 2887 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
Chris@1 2888
Chris@1 2889
Chris@1 2890 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
Chris@1 2891
Chris@1 2892
Chris@1 2893 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
Chris@1 2894
Chris@1 2895
Chris@1 2896 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
Chris@1 2897
Chris@1 2898
Chris@1 2899 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
Chris@1 2900
Chris@1 2901 # We need awk for the "check" target. The system "awk" is bad on
Chris@1 2902 # some platforms.
Chris@1 2903 # Always define AMTAR for backward compatibility.
Chris@1 2904
Chris@1 2905 AMTAR=${AMTAR-"${am_missing_run}tar"}
Chris@1 2906
Chris@1 2907 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
Chris@1 2908
Chris@1 2909
Chris@1 2910
Chris@1 2911
Chris@1 2912
Chris@1 2913
Chris@1 2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
Chris@1 2915 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
Chris@1 2916 # Check whether --enable-maintainer-mode was given.
Chris@1 2917 if test "${enable_maintainer_mode+set}" = set; then :
Chris@1 2918 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
Chris@1 2919 else
Chris@1 2920 USE_MAINTAINER_MODE=no
Chris@1 2921 fi
Chris@1 2922
Chris@1 2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
Chris@1 2924 $as_echo "$USE_MAINTAINER_MODE" >&6; }
Chris@1 2925 if test $USE_MAINTAINER_MODE = yes; then
Chris@1 2926 MAINTAINER_MODE_TRUE=
Chris@1 2927 MAINTAINER_MODE_FALSE='#'
Chris@1 2928 else
Chris@1 2929 MAINTAINER_MODE_TRUE='#'
Chris@1 2930 MAINTAINER_MODE_FALSE=
Chris@1 2931 fi
Chris@1 2932
Chris@1 2933 MAINT=$MAINTAINER_MODE_TRUE
Chris@1 2934
Chris@1 2935
Chris@1 2936 ac_config_headers="$ac_config_headers config.h"
Chris@1 2937
Chris@1 2938
Chris@1 2939 ACLOCAL_AMFLAGS="-I m4"
Chris@1 2940
Chris@1 2941
Chris@1 2942
Chris@1 2943 V_LIB_CURRENT=4
Chris@1 2944 V_LIB_REVISION=6
Chris@1 2945 V_LIB_AGE=4
Chris@1 2946
Chris@1 2947 VF_LIB_CURRENT=6
Chris@1 2948 VF_LIB_REVISION=5
Chris@1 2949 VF_LIB_AGE=3
Chris@1 2950
Chris@1 2951 VE_LIB_CURRENT=2
Chris@1 2952 VE_LIB_REVISION=9
Chris@1 2953 VE_LIB_AGE=0
Chris@1 2954
Chris@1 2955
Chris@1 2956
Chris@1 2957
Chris@1 2958
Chris@1 2959
Chris@1 2960
Chris@1 2961
Chris@1 2962
Chris@1 2963
Chris@1 2964
Chris@1 2965
Chris@1 2966 cflags_save="$CFLAGS"
Chris@1 2967 ac_ext=c
Chris@1 2968 ac_cpp='$CPP $CPPFLAGS'
Chris@1 2969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@1 2970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@1 2971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@1 2972 if test -n "$ac_tool_prefix"; then
Chris@1 2973 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
Chris@1 2974 set dummy ${ac_tool_prefix}gcc; ac_word=$2
Chris@1 2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 2976 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 2977 if ${ac_cv_prog_CC+:} false; then :
Chris@1 2978 $as_echo_n "(cached) " >&6
Chris@1 2979 else
Chris@1 2980 if test -n "$CC"; then
Chris@1 2981 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@1 2982 else
Chris@1 2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 2984 for as_dir in $PATH
Chris@1 2985 do
Chris@1 2986 IFS=$as_save_IFS
Chris@1 2987 test -z "$as_dir" && as_dir=.
Chris@1 2988 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 2989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 2990 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Chris@1 2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 2992 break 2
Chris@1 2993 fi
Chris@1 2994 done
Chris@1 2995 done
Chris@1 2996 IFS=$as_save_IFS
Chris@1 2997
Chris@1 2998 fi
Chris@1 2999 fi
Chris@1 3000 CC=$ac_cv_prog_CC
Chris@1 3001 if test -n "$CC"; then
Chris@1 3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@1 3003 $as_echo "$CC" >&6; }
Chris@1 3004 else
Chris@1 3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 3006 $as_echo "no" >&6; }
Chris@1 3007 fi
Chris@1 3008
Chris@1 3009
Chris@1 3010 fi
Chris@1 3011 if test -z "$ac_cv_prog_CC"; then
Chris@1 3012 ac_ct_CC=$CC
Chris@1 3013 # Extract the first word of "gcc", so it can be a program name with args.
Chris@1 3014 set dummy gcc; ac_word=$2
Chris@1 3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 3016 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 3017 if ${ac_cv_prog_ac_ct_CC+:} false; then :
Chris@1 3018 $as_echo_n "(cached) " >&6
Chris@1 3019 else
Chris@1 3020 if test -n "$ac_ct_CC"; then
Chris@1 3021 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
Chris@1 3022 else
Chris@1 3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 3024 for as_dir in $PATH
Chris@1 3025 do
Chris@1 3026 IFS=$as_save_IFS
Chris@1 3027 test -z "$as_dir" && as_dir=.
Chris@1 3028 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 3029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 3030 ac_cv_prog_ac_ct_CC="gcc"
Chris@1 3031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 3032 break 2
Chris@1 3033 fi
Chris@1 3034 done
Chris@1 3035 done
Chris@1 3036 IFS=$as_save_IFS
Chris@1 3037
Chris@1 3038 fi
Chris@1 3039 fi
Chris@1 3040 ac_ct_CC=$ac_cv_prog_ac_ct_CC
Chris@1 3041 if test -n "$ac_ct_CC"; then
Chris@1 3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Chris@1 3043 $as_echo "$ac_ct_CC" >&6; }
Chris@1 3044 else
Chris@1 3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 3046 $as_echo "no" >&6; }
Chris@1 3047 fi
Chris@1 3048
Chris@1 3049 if test "x$ac_ct_CC" = x; then
Chris@1 3050 CC=""
Chris@1 3051 else
Chris@1 3052 case $cross_compiling:$ac_tool_warned in
Chris@1 3053 yes:)
Chris@1 3054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 3055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 3056 ac_tool_warned=yes ;;
Chris@1 3057 esac
Chris@1 3058 CC=$ac_ct_CC
Chris@1 3059 fi
Chris@1 3060 else
Chris@1 3061 CC="$ac_cv_prog_CC"
Chris@1 3062 fi
Chris@1 3063
Chris@1 3064 if test -z "$CC"; then
Chris@1 3065 if test -n "$ac_tool_prefix"; then
Chris@1 3066 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Chris@1 3067 set dummy ${ac_tool_prefix}cc; ac_word=$2
Chris@1 3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 3069 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 3070 if ${ac_cv_prog_CC+:} false; then :
Chris@1 3071 $as_echo_n "(cached) " >&6
Chris@1 3072 else
Chris@1 3073 if test -n "$CC"; then
Chris@1 3074 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@1 3075 else
Chris@1 3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 3077 for as_dir in $PATH
Chris@1 3078 do
Chris@1 3079 IFS=$as_save_IFS
Chris@1 3080 test -z "$as_dir" && as_dir=.
Chris@1 3081 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 3082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 3083 ac_cv_prog_CC="${ac_tool_prefix}cc"
Chris@1 3084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 3085 break 2
Chris@1 3086 fi
Chris@1 3087 done
Chris@1 3088 done
Chris@1 3089 IFS=$as_save_IFS
Chris@1 3090
Chris@1 3091 fi
Chris@1 3092 fi
Chris@1 3093 CC=$ac_cv_prog_CC
Chris@1 3094 if test -n "$CC"; then
Chris@1 3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@1 3096 $as_echo "$CC" >&6; }
Chris@1 3097 else
Chris@1 3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 3099 $as_echo "no" >&6; }
Chris@1 3100 fi
Chris@1 3101
Chris@1 3102
Chris@1 3103 fi
Chris@1 3104 fi
Chris@1 3105 if test -z "$CC"; then
Chris@1 3106 # Extract the first word of "cc", so it can be a program name with args.
Chris@1 3107 set dummy cc; ac_word=$2
Chris@1 3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 3109 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 3110 if ${ac_cv_prog_CC+:} false; then :
Chris@1 3111 $as_echo_n "(cached) " >&6
Chris@1 3112 else
Chris@1 3113 if test -n "$CC"; then
Chris@1 3114 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@1 3115 else
Chris@1 3116 ac_prog_rejected=no
Chris@1 3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 3118 for as_dir in $PATH
Chris@1 3119 do
Chris@1 3120 IFS=$as_save_IFS
Chris@1 3121 test -z "$as_dir" && as_dir=.
Chris@1 3122 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 3123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 3124 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
Chris@1 3125 ac_prog_rejected=yes
Chris@1 3126 continue
Chris@1 3127 fi
Chris@1 3128 ac_cv_prog_CC="cc"
Chris@1 3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 3130 break 2
Chris@1 3131 fi
Chris@1 3132 done
Chris@1 3133 done
Chris@1 3134 IFS=$as_save_IFS
Chris@1 3135
Chris@1 3136 if test $ac_prog_rejected = yes; then
Chris@1 3137 # We found a bogon in the path, so make sure we never use it.
Chris@1 3138 set dummy $ac_cv_prog_CC
Chris@1 3139 shift
Chris@1 3140 if test $# != 0; then
Chris@1 3141 # We chose a different compiler from the bogus one.
Chris@1 3142 # However, it has the same basename, so the bogon will be chosen
Chris@1 3143 # first if we set CC to just the basename; use the full file name.
Chris@1 3144 shift
Chris@1 3145 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Chris@1 3146 fi
Chris@1 3147 fi
Chris@1 3148 fi
Chris@1 3149 fi
Chris@1 3150 CC=$ac_cv_prog_CC
Chris@1 3151 if test -n "$CC"; then
Chris@1 3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@1 3153 $as_echo "$CC" >&6; }
Chris@1 3154 else
Chris@1 3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 3156 $as_echo "no" >&6; }
Chris@1 3157 fi
Chris@1 3158
Chris@1 3159
Chris@1 3160 fi
Chris@1 3161 if test -z "$CC"; then
Chris@1 3162 if test -n "$ac_tool_prefix"; then
Chris@1 3163 for ac_prog in cl.exe
Chris@1 3164 do
Chris@1 3165 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@1 3166 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@1 3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 3168 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 3169 if ${ac_cv_prog_CC+:} false; then :
Chris@1 3170 $as_echo_n "(cached) " >&6
Chris@1 3171 else
Chris@1 3172 if test -n "$CC"; then
Chris@1 3173 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@1 3174 else
Chris@1 3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 3176 for as_dir in $PATH
Chris@1 3177 do
Chris@1 3178 IFS=$as_save_IFS
Chris@1 3179 test -z "$as_dir" && as_dir=.
Chris@1 3180 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 3181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 3182 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Chris@1 3183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 3184 break 2
Chris@1 3185 fi
Chris@1 3186 done
Chris@1 3187 done
Chris@1 3188 IFS=$as_save_IFS
Chris@1 3189
Chris@1 3190 fi
Chris@1 3191 fi
Chris@1 3192 CC=$ac_cv_prog_CC
Chris@1 3193 if test -n "$CC"; then
Chris@1 3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@1 3195 $as_echo "$CC" >&6; }
Chris@1 3196 else
Chris@1 3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 3198 $as_echo "no" >&6; }
Chris@1 3199 fi
Chris@1 3200
Chris@1 3201
Chris@1 3202 test -n "$CC" && break
Chris@1 3203 done
Chris@1 3204 fi
Chris@1 3205 if test -z "$CC"; then
Chris@1 3206 ac_ct_CC=$CC
Chris@1 3207 for ac_prog in cl.exe
Chris@1 3208 do
Chris@1 3209 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@1 3210 set dummy $ac_prog; ac_word=$2
Chris@1 3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 3212 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 3213 if ${ac_cv_prog_ac_ct_CC+:} false; then :
Chris@1 3214 $as_echo_n "(cached) " >&6
Chris@1 3215 else
Chris@1 3216 if test -n "$ac_ct_CC"; then
Chris@1 3217 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
Chris@1 3218 else
Chris@1 3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 3220 for as_dir in $PATH
Chris@1 3221 do
Chris@1 3222 IFS=$as_save_IFS
Chris@1 3223 test -z "$as_dir" && as_dir=.
Chris@1 3224 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 3225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 3226 ac_cv_prog_ac_ct_CC="$ac_prog"
Chris@1 3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 3228 break 2
Chris@1 3229 fi
Chris@1 3230 done
Chris@1 3231 done
Chris@1 3232 IFS=$as_save_IFS
Chris@1 3233
Chris@1 3234 fi
Chris@1 3235 fi
Chris@1 3236 ac_ct_CC=$ac_cv_prog_ac_ct_CC
Chris@1 3237 if test -n "$ac_ct_CC"; then
Chris@1 3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Chris@1 3239 $as_echo "$ac_ct_CC" >&6; }
Chris@1 3240 else
Chris@1 3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 3242 $as_echo "no" >&6; }
Chris@1 3243 fi
Chris@1 3244
Chris@1 3245
Chris@1 3246 test -n "$ac_ct_CC" && break
Chris@1 3247 done
Chris@1 3248
Chris@1 3249 if test "x$ac_ct_CC" = x; then
Chris@1 3250 CC=""
Chris@1 3251 else
Chris@1 3252 case $cross_compiling:$ac_tool_warned in
Chris@1 3253 yes:)
Chris@1 3254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 3255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 3256 ac_tool_warned=yes ;;
Chris@1 3257 esac
Chris@1 3258 CC=$ac_ct_CC
Chris@1 3259 fi
Chris@1 3260 fi
Chris@1 3261
Chris@1 3262 fi
Chris@1 3263
Chris@1 3264
Chris@1 3265 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@1 3266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@1 3267 as_fn_error $? "no acceptable C compiler found in \$PATH
Chris@1 3268 See \`config.log' for more details" "$LINENO" 5; }
Chris@1 3269
Chris@1 3270 # Provide some information about the compiler.
Chris@1 3271 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Chris@1 3272 set X $ac_compile
Chris@1 3273 ac_compiler=$2
Chris@1 3274 for ac_option in --version -v -V -qversion; do
Chris@1 3275 { { ac_try="$ac_compiler $ac_option >&5"
Chris@1 3276 case "(($ac_try" in
Chris@1 3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 3278 *) ac_try_echo=$ac_try;;
Chris@1 3279 esac
Chris@1 3280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 3281 $as_echo "$ac_try_echo"; } >&5
Chris@1 3282 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Chris@1 3283 ac_status=$?
Chris@1 3284 if test -s conftest.err; then
Chris@1 3285 sed '10a\
Chris@1 3286 ... rest of stderr output deleted ...
Chris@1 3287 10q' conftest.err >conftest.er1
Chris@1 3288 cat conftest.er1 >&5
Chris@1 3289 fi
Chris@1 3290 rm -f conftest.er1 conftest.err
Chris@1 3291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 3292 test $ac_status = 0; }
Chris@1 3293 done
Chris@1 3294
Chris@1 3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 3296 /* end confdefs.h. */
Chris@1 3297
Chris@1 3298 int
Chris@1 3299 main ()
Chris@1 3300 {
Chris@1 3301
Chris@1 3302 ;
Chris@1 3303 return 0;
Chris@1 3304 }
Chris@1 3305 _ACEOF
Chris@1 3306 ac_clean_files_save=$ac_clean_files
Chris@1 3307 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Chris@1 3308 # Try to create an executable without -o first, disregard a.out.
Chris@1 3309 # It will help us diagnose broken compilers, and finding out an intuition
Chris@1 3310 # of exeext.
Chris@1 3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
Chris@1 3312 $as_echo_n "checking whether the C compiler works... " >&6; }
Chris@1 3313 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Chris@1 3314
Chris@1 3315 # The possible output files:
Chris@1 3316 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
Chris@1 3317
Chris@1 3318 ac_rmfiles=
Chris@1 3319 for ac_file in $ac_files
Chris@1 3320 do
Chris@1 3321 case $ac_file in
Chris@1 3322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Chris@1 3323 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
Chris@1 3324 esac
Chris@1 3325 done
Chris@1 3326 rm -f $ac_rmfiles
Chris@1 3327
Chris@1 3328 if { { ac_try="$ac_link_default"
Chris@1 3329 case "(($ac_try" in
Chris@1 3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 3331 *) ac_try_echo=$ac_try;;
Chris@1 3332 esac
Chris@1 3333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 3334 $as_echo "$ac_try_echo"; } >&5
Chris@1 3335 (eval "$ac_link_default") 2>&5
Chris@1 3336 ac_status=$?
Chris@1 3337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 3338 test $ac_status = 0; }; then :
Chris@1 3339 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
Chris@1 3340 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
Chris@1 3341 # in a Makefile. We should not override ac_cv_exeext if it was cached,
Chris@1 3342 # so that the user can short-circuit this test for compilers unknown to
Chris@1 3343 # Autoconf.
Chris@1 3344 for ac_file in $ac_files ''
Chris@1 3345 do
Chris@1 3346 test -f "$ac_file" || continue
Chris@1 3347 case $ac_file in
Chris@1 3348 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Chris@1 3349 ;;
Chris@1 3350 [ab].out )
Chris@1 3351 # We found the default executable, but exeext='' is most
Chris@1 3352 # certainly right.
Chris@1 3353 break;;
Chris@1 3354 *.* )
Chris@1 3355 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Chris@1 3356 then :; else
Chris@1 3357 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Chris@1 3358 fi
Chris@1 3359 # We set ac_cv_exeext here because the later test for it is not
Chris@1 3360 # safe: cross compilers may not add the suffix if given an `-o'
Chris@1 3361 # argument, so we may need to know it at that point already.
Chris@1 3362 # Even if this section looks crufty: it has the advantage of
Chris@1 3363 # actually working.
Chris@1 3364 break;;
Chris@1 3365 * )
Chris@1 3366 break;;
Chris@1 3367 esac
Chris@1 3368 done
Chris@1 3369 test "$ac_cv_exeext" = no && ac_cv_exeext=
Chris@1 3370
Chris@1 3371 else
Chris@1 3372 ac_file=''
Chris@1 3373 fi
Chris@1 3374 if test -z "$ac_file"; then :
Chris@1 3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 3376 $as_echo "no" >&6; }
Chris@1 3377 $as_echo "$as_me: failed program was:" >&5
Chris@1 3378 sed 's/^/| /' conftest.$ac_ext >&5
Chris@1 3379
Chris@1 3380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@1 3381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@1 3382 as_fn_error 77 "C compiler cannot create executables
Chris@1 3383 See \`config.log' for more details" "$LINENO" 5; }
Chris@1 3384 else
Chris@1 3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@1 3386 $as_echo "yes" >&6; }
Chris@1 3387 fi
Chris@1 3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
Chris@1 3389 $as_echo_n "checking for C compiler default output file name... " >&6; }
Chris@1 3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
Chris@1 3391 $as_echo "$ac_file" >&6; }
Chris@1 3392 ac_exeext=$ac_cv_exeext
Chris@1 3393
Chris@1 3394 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Chris@1 3395 ac_clean_files=$ac_clean_files_save
Chris@1 3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Chris@1 3397 $as_echo_n "checking for suffix of executables... " >&6; }
Chris@1 3398 if { { ac_try="$ac_link"
Chris@1 3399 case "(($ac_try" in
Chris@1 3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 3401 *) ac_try_echo=$ac_try;;
Chris@1 3402 esac
Chris@1 3403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 3404 $as_echo "$ac_try_echo"; } >&5
Chris@1 3405 (eval "$ac_link") 2>&5
Chris@1 3406 ac_status=$?
Chris@1 3407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 3408 test $ac_status = 0; }; then :
Chris@1 3409 # If both `conftest.exe' and `conftest' are `present' (well, observable)
Chris@1 3410 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
Chris@1 3411 # work properly (i.e., refer to `conftest.exe'), while it won't with
Chris@1 3412 # `rm'.
Chris@1 3413 for ac_file in conftest.exe conftest conftest.*; do
Chris@1 3414 test -f "$ac_file" || continue
Chris@1 3415 case $ac_file in
Chris@1 3416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Chris@1 3417 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Chris@1 3418 break;;
Chris@1 3419 * ) break;;
Chris@1 3420 esac
Chris@1 3421 done
Chris@1 3422 else
Chris@1 3423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@1 3424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@1 3425 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
Chris@1 3426 See \`config.log' for more details" "$LINENO" 5; }
Chris@1 3427 fi
Chris@1 3428 rm -f conftest conftest$ac_cv_exeext
Chris@1 3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Chris@1 3430 $as_echo "$ac_cv_exeext" >&6; }
Chris@1 3431
Chris@1 3432 rm -f conftest.$ac_ext
Chris@1 3433 EXEEXT=$ac_cv_exeext
Chris@1 3434 ac_exeext=$EXEEXT
Chris@1 3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 3436 /* end confdefs.h. */
Chris@1 3437 #include <stdio.h>
Chris@1 3438 int
Chris@1 3439 main ()
Chris@1 3440 {
Chris@1 3441 FILE *f = fopen ("conftest.out", "w");
Chris@1 3442 return ferror (f) || fclose (f) != 0;
Chris@1 3443
Chris@1 3444 ;
Chris@1 3445 return 0;
Chris@1 3446 }
Chris@1 3447 _ACEOF
Chris@1 3448 ac_clean_files="$ac_clean_files conftest.out"
Chris@1 3449 # Check that the compiler produces executables we can run. If not, either
Chris@1 3450 # the compiler is broken, or we cross compile.
Chris@1 3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
Chris@1 3452 $as_echo_n "checking whether we are cross compiling... " >&6; }
Chris@1 3453 if test "$cross_compiling" != yes; then
Chris@1 3454 { { ac_try="$ac_link"
Chris@1 3455 case "(($ac_try" in
Chris@1 3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 3457 *) ac_try_echo=$ac_try;;
Chris@1 3458 esac
Chris@1 3459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 3460 $as_echo "$ac_try_echo"; } >&5
Chris@1 3461 (eval "$ac_link") 2>&5
Chris@1 3462 ac_status=$?
Chris@1 3463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 3464 test $ac_status = 0; }
Chris@1 3465 if { ac_try='./conftest$ac_cv_exeext'
Chris@1 3466 { { case "(($ac_try" in
Chris@1 3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 3468 *) ac_try_echo=$ac_try;;
Chris@1 3469 esac
Chris@1 3470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 3471 $as_echo "$ac_try_echo"; } >&5
Chris@1 3472 (eval "$ac_try") 2>&5
Chris@1 3473 ac_status=$?
Chris@1 3474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 3475 test $ac_status = 0; }; }; then
Chris@1 3476 cross_compiling=no
Chris@1 3477 else
Chris@1 3478 if test "$cross_compiling" = maybe; then
Chris@1 3479 cross_compiling=yes
Chris@1 3480 else
Chris@1 3481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@1 3482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@1 3483 as_fn_error $? "cannot run C compiled programs.
Chris@1 3484 If you meant to cross compile, use \`--host'.
Chris@1 3485 See \`config.log' for more details" "$LINENO" 5; }
Chris@1 3486 fi
Chris@1 3487 fi
Chris@1 3488 fi
Chris@1 3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
Chris@1 3490 $as_echo "$cross_compiling" >&6; }
Chris@1 3491
Chris@1 3492 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
Chris@1 3493 ac_clean_files=$ac_clean_files_save
Chris@1 3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Chris@1 3495 $as_echo_n "checking for suffix of object files... " >&6; }
Chris@1 3496 if ${ac_cv_objext+:} false; then :
Chris@1 3497 $as_echo_n "(cached) " >&6
Chris@1 3498 else
Chris@1 3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 3500 /* end confdefs.h. */
Chris@1 3501
Chris@1 3502 int
Chris@1 3503 main ()
Chris@1 3504 {
Chris@1 3505
Chris@1 3506 ;
Chris@1 3507 return 0;
Chris@1 3508 }
Chris@1 3509 _ACEOF
Chris@1 3510 rm -f conftest.o conftest.obj
Chris@1 3511 if { { ac_try="$ac_compile"
Chris@1 3512 case "(($ac_try" in
Chris@1 3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 3514 *) ac_try_echo=$ac_try;;
Chris@1 3515 esac
Chris@1 3516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 3517 $as_echo "$ac_try_echo"; } >&5
Chris@1 3518 (eval "$ac_compile") 2>&5
Chris@1 3519 ac_status=$?
Chris@1 3520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 3521 test $ac_status = 0; }; then :
Chris@1 3522 for ac_file in conftest.o conftest.obj conftest.*; do
Chris@1 3523 test -f "$ac_file" || continue;
Chris@1 3524 case $ac_file in
Chris@1 3525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Chris@1 3526 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
Chris@1 3527 break;;
Chris@1 3528 esac
Chris@1 3529 done
Chris@1 3530 else
Chris@1 3531 $as_echo "$as_me: failed program was:" >&5
Chris@1 3532 sed 's/^/| /' conftest.$ac_ext >&5
Chris@1 3533
Chris@1 3534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@1 3535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@1 3536 as_fn_error $? "cannot compute suffix of object files: cannot compile
Chris@1 3537 See \`config.log' for more details" "$LINENO" 5; }
Chris@1 3538 fi
Chris@1 3539 rm -f conftest.$ac_cv_objext conftest.$ac_ext
Chris@1 3540 fi
Chris@1 3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Chris@1 3542 $as_echo "$ac_cv_objext" >&6; }
Chris@1 3543 OBJEXT=$ac_cv_objext
Chris@1 3544 ac_objext=$OBJEXT
Chris@1 3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Chris@1 3546 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Chris@1 3547 if ${ac_cv_c_compiler_gnu+:} false; then :
Chris@1 3548 $as_echo_n "(cached) " >&6
Chris@1 3549 else
Chris@1 3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 3551 /* end confdefs.h. */
Chris@1 3552
Chris@1 3553 int
Chris@1 3554 main ()
Chris@1 3555 {
Chris@1 3556 #ifndef __GNUC__
Chris@1 3557 choke me
Chris@1 3558 #endif
Chris@1 3559
Chris@1 3560 ;
Chris@1 3561 return 0;
Chris@1 3562 }
Chris@1 3563 _ACEOF
Chris@1 3564 if ac_fn_c_try_compile "$LINENO"; then :
Chris@1 3565 ac_compiler_gnu=yes
Chris@1 3566 else
Chris@1 3567 ac_compiler_gnu=no
Chris@1 3568 fi
Chris@1 3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@1 3570 ac_cv_c_compiler_gnu=$ac_compiler_gnu
Chris@1 3571
Chris@1 3572 fi
Chris@1 3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Chris@1 3574 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
Chris@1 3575 if test $ac_compiler_gnu = yes; then
Chris@1 3576 GCC=yes
Chris@1 3577 else
Chris@1 3578 GCC=
Chris@1 3579 fi
Chris@1 3580 ac_test_CFLAGS=${CFLAGS+set}
Chris@1 3581 ac_save_CFLAGS=$CFLAGS
Chris@1 3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Chris@1 3583 $as_echo_n "checking whether $CC accepts -g... " >&6; }
Chris@1 3584 if ${ac_cv_prog_cc_g+:} false; then :
Chris@1 3585 $as_echo_n "(cached) " >&6
Chris@1 3586 else
Chris@1 3587 ac_save_c_werror_flag=$ac_c_werror_flag
Chris@1 3588 ac_c_werror_flag=yes
Chris@1 3589 ac_cv_prog_cc_g=no
Chris@1 3590 CFLAGS="-g"
Chris@1 3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 3592 /* end confdefs.h. */
Chris@1 3593
Chris@1 3594 int
Chris@1 3595 main ()
Chris@1 3596 {
Chris@1 3597
Chris@1 3598 ;
Chris@1 3599 return 0;
Chris@1 3600 }
Chris@1 3601 _ACEOF
Chris@1 3602 if ac_fn_c_try_compile "$LINENO"; then :
Chris@1 3603 ac_cv_prog_cc_g=yes
Chris@1 3604 else
Chris@1 3605 CFLAGS=""
Chris@1 3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 3607 /* end confdefs.h. */
Chris@1 3608
Chris@1 3609 int
Chris@1 3610 main ()
Chris@1 3611 {
Chris@1 3612
Chris@1 3613 ;
Chris@1 3614 return 0;
Chris@1 3615 }
Chris@1 3616 _ACEOF
Chris@1 3617 if ac_fn_c_try_compile "$LINENO"; then :
Chris@1 3618
Chris@1 3619 else
Chris@1 3620 ac_c_werror_flag=$ac_save_c_werror_flag
Chris@1 3621 CFLAGS="-g"
Chris@1 3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 3623 /* end confdefs.h. */
Chris@1 3624
Chris@1 3625 int
Chris@1 3626 main ()
Chris@1 3627 {
Chris@1 3628
Chris@1 3629 ;
Chris@1 3630 return 0;
Chris@1 3631 }
Chris@1 3632 _ACEOF
Chris@1 3633 if ac_fn_c_try_compile "$LINENO"; then :
Chris@1 3634 ac_cv_prog_cc_g=yes
Chris@1 3635 fi
Chris@1 3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@1 3637 fi
Chris@1 3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@1 3639 fi
Chris@1 3640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@1 3641 ac_c_werror_flag=$ac_save_c_werror_flag
Chris@1 3642 fi
Chris@1 3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Chris@1 3644 $as_echo "$ac_cv_prog_cc_g" >&6; }
Chris@1 3645 if test "$ac_test_CFLAGS" = set; then
Chris@1 3646 CFLAGS=$ac_save_CFLAGS
Chris@1 3647 elif test $ac_cv_prog_cc_g = yes; then
Chris@1 3648 if test "$GCC" = yes; then
Chris@1 3649 CFLAGS="-g -O2"
Chris@1 3650 else
Chris@1 3651 CFLAGS="-g"
Chris@1 3652 fi
Chris@1 3653 else
Chris@1 3654 if test "$GCC" = yes; then
Chris@1 3655 CFLAGS="-O2"
Chris@1 3656 else
Chris@1 3657 CFLAGS=
Chris@1 3658 fi
Chris@1 3659 fi
Chris@1 3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Chris@1 3661 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Chris@1 3662 if ${ac_cv_prog_cc_c89+:} false; then :
Chris@1 3663 $as_echo_n "(cached) " >&6
Chris@1 3664 else
Chris@1 3665 ac_cv_prog_cc_c89=no
Chris@1 3666 ac_save_CC=$CC
Chris@1 3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 3668 /* end confdefs.h. */
Chris@1 3669 #include <stdarg.h>
Chris@1 3670 #include <stdio.h>
Chris@1 3671 #include <sys/types.h>
Chris@1 3672 #include <sys/stat.h>
Chris@1 3673 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
Chris@1 3674 struct buf { int x; };
Chris@1 3675 FILE * (*rcsopen) (struct buf *, struct stat *, int);
Chris@1 3676 static char *e (p, i)
Chris@1 3677 char **p;
Chris@1 3678 int i;
Chris@1 3679 {
Chris@1 3680 return p[i];
Chris@1 3681 }
Chris@1 3682 static char *f (char * (*g) (char **, int), char **p, ...)
Chris@1 3683 {
Chris@1 3684 char *s;
Chris@1 3685 va_list v;
Chris@1 3686 va_start (v,p);
Chris@1 3687 s = g (p, va_arg (v,int));
Chris@1 3688 va_end (v);
Chris@1 3689 return s;
Chris@1 3690 }
Chris@1 3691
Chris@1 3692 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
Chris@1 3693 function prototypes and stuff, but not '\xHH' hex character constants.
Chris@1 3694 These don't provoke an error unfortunately, instead are silently treated
Chris@1 3695 as 'x'. The following induces an error, until -std is added to get
Chris@1 3696 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
Chris@1 3697 array size at least. It's necessary to write '\x00'==0 to get something
Chris@1 3698 that's true only with -std. */
Chris@1 3699 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
Chris@1 3700
Chris@1 3701 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
Chris@1 3702 inside strings and character constants. */
Chris@1 3703 #define FOO(x) 'x'
Chris@1 3704 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
Chris@1 3705
Chris@1 3706 int test (int i, double x);
Chris@1 3707 struct s1 {int (*f) (int a);};
Chris@1 3708 struct s2 {int (*f) (double a);};
Chris@1 3709 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
Chris@1 3710 int argc;
Chris@1 3711 char **argv;
Chris@1 3712 int
Chris@1 3713 main ()
Chris@1 3714 {
Chris@1 3715 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
Chris@1 3716 ;
Chris@1 3717 return 0;
Chris@1 3718 }
Chris@1 3719 _ACEOF
Chris@1 3720 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
Chris@1 3721 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Chris@1 3722 do
Chris@1 3723 CC="$ac_save_CC $ac_arg"
Chris@1 3724 if ac_fn_c_try_compile "$LINENO"; then :
Chris@1 3725 ac_cv_prog_cc_c89=$ac_arg
Chris@1 3726 fi
Chris@1 3727 rm -f core conftest.err conftest.$ac_objext
Chris@1 3728 test "x$ac_cv_prog_cc_c89" != "xno" && break
Chris@1 3729 done
Chris@1 3730 rm -f conftest.$ac_ext
Chris@1 3731 CC=$ac_save_CC
Chris@1 3732
Chris@1 3733 fi
Chris@1 3734 # AC_CACHE_VAL
Chris@1 3735 case "x$ac_cv_prog_cc_c89" in
Chris@1 3736 x)
Chris@1 3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Chris@1 3738 $as_echo "none needed" >&6; } ;;
Chris@1 3739 xno)
Chris@1 3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Chris@1 3741 $as_echo "unsupported" >&6; } ;;
Chris@1 3742 *)
Chris@1 3743 CC="$CC $ac_cv_prog_cc_c89"
Chris@1 3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Chris@1 3745 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Chris@1 3746 esac
Chris@1 3747 if test "x$ac_cv_prog_cc_c89" != xno; then :
Chris@1 3748
Chris@1 3749 fi
Chris@1 3750
Chris@1 3751 ac_ext=c
Chris@1 3752 ac_cpp='$CPP $CPPFLAGS'
Chris@1 3753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@1 3754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@1 3755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@1 3756 DEPDIR="${am__leading_dot}deps"
Chris@1 3757
Chris@1 3758 ac_config_commands="$ac_config_commands depfiles"
Chris@1 3759
Chris@1 3760
Chris@1 3761 am_make=${MAKE-make}
Chris@1 3762 cat > confinc << 'END'
Chris@1 3763 am__doit:
Chris@1 3764 @echo this is the am__doit target
Chris@1 3765 .PHONY: am__doit
Chris@1 3766 END
Chris@1 3767 # If we don't find an include directive, just comment out the code.
Chris@1 3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
Chris@1 3769 $as_echo_n "checking for style of include used by $am_make... " >&6; }
Chris@1 3770 am__include="#"
Chris@1 3771 am__quote=
Chris@1 3772 _am_result=none
Chris@1 3773 # First try GNU make style include.
Chris@1 3774 echo "include confinc" > confmf
Chris@1 3775 # Ignore all kinds of additional output from `make'.
Chris@1 3776 case `$am_make -s -f confmf 2> /dev/null` in #(
Chris@1 3777 *the\ am__doit\ target*)
Chris@1 3778 am__include=include
Chris@1 3779 am__quote=
Chris@1 3780 _am_result=GNU
Chris@1 3781 ;;
Chris@1 3782 esac
Chris@1 3783 # Now try BSD make style include.
Chris@1 3784 if test "$am__include" = "#"; then
Chris@1 3785 echo '.include "confinc"' > confmf
Chris@1 3786 case `$am_make -s -f confmf 2> /dev/null` in #(
Chris@1 3787 *the\ am__doit\ target*)
Chris@1 3788 am__include=.include
Chris@1 3789 am__quote="\""
Chris@1 3790 _am_result=BSD
Chris@1 3791 ;;
Chris@1 3792 esac
Chris@1 3793 fi
Chris@1 3794
Chris@1 3795
Chris@1 3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
Chris@1 3797 $as_echo "$_am_result" >&6; }
Chris@1 3798 rm -f confinc confmf
Chris@1 3799
Chris@1 3800 # Check whether --enable-dependency-tracking was given.
Chris@1 3801 if test "${enable_dependency_tracking+set}" = set; then :
Chris@1 3802 enableval=$enable_dependency_tracking;
Chris@1 3803 fi
Chris@1 3804
Chris@1 3805 if test "x$enable_dependency_tracking" != xno; then
Chris@1 3806 am_depcomp="$ac_aux_dir/depcomp"
Chris@1 3807 AMDEPBACKSLASH='\'
Chris@1 3808 fi
Chris@1 3809 if test "x$enable_dependency_tracking" != xno; then
Chris@1 3810 AMDEP_TRUE=
Chris@1 3811 AMDEP_FALSE='#'
Chris@1 3812 else
Chris@1 3813 AMDEP_TRUE='#'
Chris@1 3814 AMDEP_FALSE=
Chris@1 3815 fi
Chris@1 3816
Chris@1 3817
Chris@1 3818
Chris@1 3819 depcc="$CC" am_compiler_list=
Chris@1 3820
Chris@1 3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Chris@1 3822 $as_echo_n "checking dependency style of $depcc... " >&6; }
Chris@1 3823 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
Chris@1 3824 $as_echo_n "(cached) " >&6
Chris@1 3825 else
Chris@1 3826 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
Chris@1 3827 # We make a subdir and do the tests there. Otherwise we can end up
Chris@1 3828 # making bogus files that we don't know about and never remove. For
Chris@1 3829 # instance it was reported that on HP-UX the gcc test will end up
Chris@1 3830 # making a dummy file named `D' -- because `-MD' means `put the output
Chris@1 3831 # in D'.
Chris@1 3832 mkdir conftest.dir
Chris@1 3833 # Copy depcomp to subdir because otherwise we won't find it if we're
Chris@1 3834 # using a relative directory.
Chris@1 3835 cp "$am_depcomp" conftest.dir
Chris@1 3836 cd conftest.dir
Chris@1 3837 # We will build objects and dependencies in a subdirectory because
Chris@1 3838 # it helps to detect inapplicable dependency modes. For instance
Chris@1 3839 # both Tru64's cc and ICC support -MD to output dependencies as a
Chris@1 3840 # side effect of compilation, but ICC will put the dependencies in
Chris@1 3841 # the current directory while Tru64 will put them in the object
Chris@1 3842 # directory.
Chris@1 3843 mkdir sub
Chris@1 3844
Chris@1 3845 am_cv_CC_dependencies_compiler_type=none
Chris@1 3846 if test "$am_compiler_list" = ""; then
Chris@1 3847 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
Chris@1 3848 fi
Chris@1 3849 am__universal=false
Chris@1 3850 case " $depcc " in #(
Chris@1 3851 *\ -arch\ *\ -arch\ *) am__universal=true ;;
Chris@1 3852 esac
Chris@1 3853
Chris@1 3854 for depmode in $am_compiler_list; do
Chris@1 3855 # Setup a source with many dependencies, because some compilers
Chris@1 3856 # like to wrap large dependency lists on column 80 (with \), and
Chris@1 3857 # we should not choose a depcomp mode which is confused by this.
Chris@1 3858 #
Chris@1 3859 # We need to recreate these files for each test, as the compiler may
Chris@1 3860 # overwrite some of them when testing with obscure command lines.
Chris@1 3861 # This happens at least with the AIX C compiler.
Chris@1 3862 : > sub/conftest.c
Chris@1 3863 for i in 1 2 3 4 5 6; do
Chris@1 3864 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Chris@1 3865 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
Chris@1 3866 # Solaris 8's {/usr,}/bin/sh.
Chris@1 3867 touch sub/conftst$i.h
Chris@1 3868 done
Chris@1 3869 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Chris@1 3870
Chris@1 3871 # We check with `-c' and `-o' for the sake of the "dashmstdout"
Chris@1 3872 # mode. It turns out that the SunPro C++ compiler does not properly
Chris@1 3873 # handle `-M -o', and we need to detect this. Also, some Intel
Chris@1 3874 # versions had trouble with output in subdirs
Chris@1 3875 am__obj=sub/conftest.${OBJEXT-o}
Chris@1 3876 am__minus_obj="-o $am__obj"
Chris@1 3877 case $depmode in
Chris@1 3878 gcc)
Chris@1 3879 # This depmode causes a compiler race in universal mode.
Chris@1 3880 test "$am__universal" = false || continue
Chris@1 3881 ;;
Chris@1 3882 nosideeffect)
Chris@1 3883 # after this tag, mechanisms are not by side-effect, so they'll
Chris@1 3884 # only be used when explicitly requested
Chris@1 3885 if test "x$enable_dependency_tracking" = xyes; then
Chris@1 3886 continue
Chris@1 3887 else
Chris@1 3888 break
Chris@1 3889 fi
Chris@1 3890 ;;
Chris@1 3891 msvisualcpp | msvcmsys)
Chris@1 3892 # This compiler won't grok `-c -o', but also, the minuso test has
Chris@1 3893 # not run yet. These depmodes are late enough in the game, and
Chris@1 3894 # so weak that their functioning should not be impacted.
Chris@1 3895 am__obj=conftest.${OBJEXT-o}
Chris@1 3896 am__minus_obj=
Chris@1 3897 ;;
Chris@1 3898 none) break ;;
Chris@1 3899 esac
Chris@1 3900 if depmode=$depmode \
Chris@1 3901 source=sub/conftest.c object=$am__obj \
Chris@1 3902 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Chris@1 3903 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Chris@1 3904 >/dev/null 2>conftest.err &&
Chris@1 3905 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Chris@1 3906 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Chris@1 3907 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Chris@1 3908 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Chris@1 3909 # icc doesn't choke on unknown options, it will just issue warnings
Chris@1 3910 # or remarks (even with -Werror). So we grep stderr for any message
Chris@1 3911 # that says an option was ignored or not supported.
Chris@1 3912 # When given -MP, icc 7.0 and 7.1 complain thusly:
Chris@1 3913 # icc: Command line warning: ignoring option '-M'; no argument required
Chris@1 3914 # The diagnosis changed in icc 8.0:
Chris@1 3915 # icc: Command line remark: option '-MP' not supported
Chris@1 3916 if (grep 'ignoring option' conftest.err ||
Chris@1 3917 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Chris@1 3918 am_cv_CC_dependencies_compiler_type=$depmode
Chris@1 3919 break
Chris@1 3920 fi
Chris@1 3921 fi
Chris@1 3922 done
Chris@1 3923
Chris@1 3924 cd ..
Chris@1 3925 rm -rf conftest.dir
Chris@1 3926 else
Chris@1 3927 am_cv_CC_dependencies_compiler_type=none
Chris@1 3928 fi
Chris@1 3929
Chris@1 3930 fi
Chris@1 3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
Chris@1 3932 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Chris@1 3933 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
Chris@1 3934
Chris@1 3935 if
Chris@1 3936 test "x$enable_dependency_tracking" != xno \
Chris@1 3937 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
Chris@1 3938 am__fastdepCC_TRUE=
Chris@1 3939 am__fastdepCC_FALSE='#'
Chris@1 3940 else
Chris@1 3941 am__fastdepCC_TRUE='#'
Chris@1 3942 am__fastdepCC_FALSE=
Chris@1 3943 fi
Chris@1 3944
Chris@1 3945
Chris@1 3946 ac_ext=c
Chris@1 3947 ac_cpp='$CPP $CPPFLAGS'
Chris@1 3948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@1 3949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@1 3950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@1 3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Chris@1 3952 $as_echo_n "checking how to run the C preprocessor... " >&6; }
Chris@1 3953 # On Suns, sometimes $CPP names a directory.
Chris@1 3954 if test -n "$CPP" && test -d "$CPP"; then
Chris@1 3955 CPP=
Chris@1 3956 fi
Chris@1 3957 if test -z "$CPP"; then
Chris@1 3958 if ${ac_cv_prog_CPP+:} false; then :
Chris@1 3959 $as_echo_n "(cached) " >&6
Chris@1 3960 else
Chris@1 3961 # Double quotes because CPP needs to be expanded
Chris@1 3962 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
Chris@1 3963 do
Chris@1 3964 ac_preproc_ok=false
Chris@1 3965 for ac_c_preproc_warn_flag in '' yes
Chris@1 3966 do
Chris@1 3967 # Use a header file that comes with gcc, so configuring glibc
Chris@1 3968 # with a fresh cross-compiler works.
Chris@1 3969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@1 3970 # <limits.h> exists even on freestanding compilers.
Chris@1 3971 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@1 3972 # not just through cpp. "Syntax error" is here to catch this case.
Chris@1 3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 3974 /* end confdefs.h. */
Chris@1 3975 #ifdef __STDC__
Chris@1 3976 # include <limits.h>
Chris@1 3977 #else
Chris@1 3978 # include <assert.h>
Chris@1 3979 #endif
Chris@1 3980 Syntax error
Chris@1 3981 _ACEOF
Chris@1 3982 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@1 3983
Chris@1 3984 else
Chris@1 3985 # Broken: fails on valid input.
Chris@1 3986 continue
Chris@1 3987 fi
Chris@1 3988 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@1 3989
Chris@1 3990 # OK, works on sane cases. Now check whether nonexistent headers
Chris@1 3991 # can be detected and how.
Chris@1 3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 3993 /* end confdefs.h. */
Chris@1 3994 #include <ac_nonexistent.h>
Chris@1 3995 _ACEOF
Chris@1 3996 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@1 3997 # Broken: success on invalid input.
Chris@1 3998 continue
Chris@1 3999 else
Chris@1 4000 # Passes both tests.
Chris@1 4001 ac_preproc_ok=:
Chris@1 4002 break
Chris@1 4003 fi
Chris@1 4004 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@1 4005
Chris@1 4006 done
Chris@1 4007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@1 4008 rm -f conftest.i conftest.err conftest.$ac_ext
Chris@1 4009 if $ac_preproc_ok; then :
Chris@1 4010 break
Chris@1 4011 fi
Chris@1 4012
Chris@1 4013 done
Chris@1 4014 ac_cv_prog_CPP=$CPP
Chris@1 4015
Chris@1 4016 fi
Chris@1 4017 CPP=$ac_cv_prog_CPP
Chris@1 4018 else
Chris@1 4019 ac_cv_prog_CPP=$CPP
Chris@1 4020 fi
Chris@1 4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Chris@1 4022 $as_echo "$CPP" >&6; }
Chris@1 4023 ac_preproc_ok=false
Chris@1 4024 for ac_c_preproc_warn_flag in '' yes
Chris@1 4025 do
Chris@1 4026 # Use a header file that comes with gcc, so configuring glibc
Chris@1 4027 # with a fresh cross-compiler works.
Chris@1 4028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@1 4029 # <limits.h> exists even on freestanding compilers.
Chris@1 4030 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@1 4031 # not just through cpp. "Syntax error" is here to catch this case.
Chris@1 4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 4033 /* end confdefs.h. */
Chris@1 4034 #ifdef __STDC__
Chris@1 4035 # include <limits.h>
Chris@1 4036 #else
Chris@1 4037 # include <assert.h>
Chris@1 4038 #endif
Chris@1 4039 Syntax error
Chris@1 4040 _ACEOF
Chris@1 4041 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@1 4042
Chris@1 4043 else
Chris@1 4044 # Broken: fails on valid input.
Chris@1 4045 continue
Chris@1 4046 fi
Chris@1 4047 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@1 4048
Chris@1 4049 # OK, works on sane cases. Now check whether nonexistent headers
Chris@1 4050 # can be detected and how.
Chris@1 4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 4052 /* end confdefs.h. */
Chris@1 4053 #include <ac_nonexistent.h>
Chris@1 4054 _ACEOF
Chris@1 4055 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@1 4056 # Broken: success on invalid input.
Chris@1 4057 continue
Chris@1 4058 else
Chris@1 4059 # Passes both tests.
Chris@1 4060 ac_preproc_ok=:
Chris@1 4061 break
Chris@1 4062 fi
Chris@1 4063 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@1 4064
Chris@1 4065 done
Chris@1 4066 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@1 4067 rm -f conftest.i conftest.err conftest.$ac_ext
Chris@1 4068 if $ac_preproc_ok; then :
Chris@1 4069
Chris@1 4070 else
Chris@1 4071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@1 4072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@1 4073 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
Chris@1 4074 See \`config.log' for more details" "$LINENO" 5; }
Chris@1 4075 fi
Chris@1 4076
Chris@1 4077 ac_ext=c
Chris@1 4078 ac_cpp='$CPP $CPPFLAGS'
Chris@1 4079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@1 4080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@1 4081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@1 4082
Chris@1 4083 CFLAGS="$cflags_save"
Chris@1 4084
Chris@1 4085
Chris@1 4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Chris@1 4087 $as_echo_n "checking for inline... " >&6; }
Chris@1 4088 if ${ac_cv_c_inline+:} false; then :
Chris@1 4089 $as_echo_n "(cached) " >&6
Chris@1 4090 else
Chris@1 4091 ac_cv_c_inline=no
Chris@1 4092 for ac_kw in inline __inline__ __inline; do
Chris@1 4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 4094 /* end confdefs.h. */
Chris@1 4095 #ifndef __cplusplus
Chris@1 4096 typedef int foo_t;
Chris@1 4097 static $ac_kw foo_t static_foo () {return 0; }
Chris@1 4098 $ac_kw foo_t foo () {return 0; }
Chris@1 4099 #endif
Chris@1 4100
Chris@1 4101 _ACEOF
Chris@1 4102 if ac_fn_c_try_compile "$LINENO"; then :
Chris@1 4103 ac_cv_c_inline=$ac_kw
Chris@1 4104 fi
Chris@1 4105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@1 4106 test "$ac_cv_c_inline" != no && break
Chris@1 4107 done
Chris@1 4108
Chris@1 4109 fi
Chris@1 4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Chris@1 4111 $as_echo "$ac_cv_c_inline" >&6; }
Chris@1 4112
Chris@1 4113 case $ac_cv_c_inline in
Chris@1 4114 inline | yes) ;;
Chris@1 4115 *)
Chris@1 4116 case $ac_cv_c_inline in
Chris@1 4117 no) ac_val=;;
Chris@1 4118 *) ac_val=$ac_cv_c_inline;;
Chris@1 4119 esac
Chris@1 4120 cat >>confdefs.h <<_ACEOF
Chris@1 4121 #ifndef __cplusplus
Chris@1 4122 #define inline $ac_val
Chris@1 4123 #endif
Chris@1 4124 _ACEOF
Chris@1 4125 ;;
Chris@1 4126 esac
Chris@1 4127
Chris@1 4128
Chris@1 4129 enable_win32_dll=yes
Chris@1 4130
Chris@1 4131 case $host in
Chris@1 4132 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
Chris@1 4133 if test -n "$ac_tool_prefix"; then
Chris@1 4134 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
Chris@1 4135 set dummy ${ac_tool_prefix}as; ac_word=$2
Chris@1 4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 4137 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 4138 if ${ac_cv_prog_AS+:} false; then :
Chris@1 4139 $as_echo_n "(cached) " >&6
Chris@1 4140 else
Chris@1 4141 if test -n "$AS"; then
Chris@1 4142 ac_cv_prog_AS="$AS" # Let the user override the test.
Chris@1 4143 else
Chris@1 4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 4145 for as_dir in $PATH
Chris@1 4146 do
Chris@1 4147 IFS=$as_save_IFS
Chris@1 4148 test -z "$as_dir" && as_dir=.
Chris@1 4149 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 4150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 4151 ac_cv_prog_AS="${ac_tool_prefix}as"
Chris@1 4152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 4153 break 2
Chris@1 4154 fi
Chris@1 4155 done
Chris@1 4156 done
Chris@1 4157 IFS=$as_save_IFS
Chris@1 4158
Chris@1 4159 fi
Chris@1 4160 fi
Chris@1 4161 AS=$ac_cv_prog_AS
Chris@1 4162 if test -n "$AS"; then
Chris@1 4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
Chris@1 4164 $as_echo "$AS" >&6; }
Chris@1 4165 else
Chris@1 4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 4167 $as_echo "no" >&6; }
Chris@1 4168 fi
Chris@1 4169
Chris@1 4170
Chris@1 4171 fi
Chris@1 4172 if test -z "$ac_cv_prog_AS"; then
Chris@1 4173 ac_ct_AS=$AS
Chris@1 4174 # Extract the first word of "as", so it can be a program name with args.
Chris@1 4175 set dummy as; ac_word=$2
Chris@1 4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 4177 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 4178 if ${ac_cv_prog_ac_ct_AS+:} false; then :
Chris@1 4179 $as_echo_n "(cached) " >&6
Chris@1 4180 else
Chris@1 4181 if test -n "$ac_ct_AS"; then
Chris@1 4182 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
Chris@1 4183 else
Chris@1 4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 4185 for as_dir in $PATH
Chris@1 4186 do
Chris@1 4187 IFS=$as_save_IFS
Chris@1 4188 test -z "$as_dir" && as_dir=.
Chris@1 4189 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 4190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 4191 ac_cv_prog_ac_ct_AS="as"
Chris@1 4192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 4193 break 2
Chris@1 4194 fi
Chris@1 4195 done
Chris@1 4196 done
Chris@1 4197 IFS=$as_save_IFS
Chris@1 4198
Chris@1 4199 fi
Chris@1 4200 fi
Chris@1 4201 ac_ct_AS=$ac_cv_prog_ac_ct_AS
Chris@1 4202 if test -n "$ac_ct_AS"; then
Chris@1 4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
Chris@1 4204 $as_echo "$ac_ct_AS" >&6; }
Chris@1 4205 else
Chris@1 4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 4207 $as_echo "no" >&6; }
Chris@1 4208 fi
Chris@1 4209
Chris@1 4210 if test "x$ac_ct_AS" = x; then
Chris@1 4211 AS="false"
Chris@1 4212 else
Chris@1 4213 case $cross_compiling:$ac_tool_warned in
Chris@1 4214 yes:)
Chris@1 4215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 4216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 4217 ac_tool_warned=yes ;;
Chris@1 4218 esac
Chris@1 4219 AS=$ac_ct_AS
Chris@1 4220 fi
Chris@1 4221 else
Chris@1 4222 AS="$ac_cv_prog_AS"
Chris@1 4223 fi
Chris@1 4224
Chris@1 4225 if test -n "$ac_tool_prefix"; then
Chris@1 4226 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
Chris@1 4227 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Chris@1 4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 4229 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 4230 if ${ac_cv_prog_DLLTOOL+:} false; then :
Chris@1 4231 $as_echo_n "(cached) " >&6
Chris@1 4232 else
Chris@1 4233 if test -n "$DLLTOOL"; then
Chris@1 4234 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
Chris@1 4235 else
Chris@1 4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 4237 for as_dir in $PATH
Chris@1 4238 do
Chris@1 4239 IFS=$as_save_IFS
Chris@1 4240 test -z "$as_dir" && as_dir=.
Chris@1 4241 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 4242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 4243 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
Chris@1 4244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 4245 break 2
Chris@1 4246 fi
Chris@1 4247 done
Chris@1 4248 done
Chris@1 4249 IFS=$as_save_IFS
Chris@1 4250
Chris@1 4251 fi
Chris@1 4252 fi
Chris@1 4253 DLLTOOL=$ac_cv_prog_DLLTOOL
Chris@1 4254 if test -n "$DLLTOOL"; then
Chris@1 4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
Chris@1 4256 $as_echo "$DLLTOOL" >&6; }
Chris@1 4257 else
Chris@1 4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 4259 $as_echo "no" >&6; }
Chris@1 4260 fi
Chris@1 4261
Chris@1 4262
Chris@1 4263 fi
Chris@1 4264 if test -z "$ac_cv_prog_DLLTOOL"; then
Chris@1 4265 ac_ct_DLLTOOL=$DLLTOOL
Chris@1 4266 # Extract the first word of "dlltool", so it can be a program name with args.
Chris@1 4267 set dummy dlltool; ac_word=$2
Chris@1 4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 4269 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 4270 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
Chris@1 4271 $as_echo_n "(cached) " >&6
Chris@1 4272 else
Chris@1 4273 if test -n "$ac_ct_DLLTOOL"; then
Chris@1 4274 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
Chris@1 4275 else
Chris@1 4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 4277 for as_dir in $PATH
Chris@1 4278 do
Chris@1 4279 IFS=$as_save_IFS
Chris@1 4280 test -z "$as_dir" && as_dir=.
Chris@1 4281 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 4282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 4283 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
Chris@1 4284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 4285 break 2
Chris@1 4286 fi
Chris@1 4287 done
Chris@1 4288 done
Chris@1 4289 IFS=$as_save_IFS
Chris@1 4290
Chris@1 4291 fi
Chris@1 4292 fi
Chris@1 4293 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
Chris@1 4294 if test -n "$ac_ct_DLLTOOL"; then
Chris@1 4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
Chris@1 4296 $as_echo "$ac_ct_DLLTOOL" >&6; }
Chris@1 4297 else
Chris@1 4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 4299 $as_echo "no" >&6; }
Chris@1 4300 fi
Chris@1 4301
Chris@1 4302 if test "x$ac_ct_DLLTOOL" = x; then
Chris@1 4303 DLLTOOL="false"
Chris@1 4304 else
Chris@1 4305 case $cross_compiling:$ac_tool_warned in
Chris@1 4306 yes:)
Chris@1 4307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 4308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 4309 ac_tool_warned=yes ;;
Chris@1 4310 esac
Chris@1 4311 DLLTOOL=$ac_ct_DLLTOOL
Chris@1 4312 fi
Chris@1 4313 else
Chris@1 4314 DLLTOOL="$ac_cv_prog_DLLTOOL"
Chris@1 4315 fi
Chris@1 4316
Chris@1 4317 if test -n "$ac_tool_prefix"; then
Chris@1 4318 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
Chris@1 4319 set dummy ${ac_tool_prefix}objdump; ac_word=$2
Chris@1 4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 4321 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 4322 if ${ac_cv_prog_OBJDUMP+:} false; then :
Chris@1 4323 $as_echo_n "(cached) " >&6
Chris@1 4324 else
Chris@1 4325 if test -n "$OBJDUMP"; then
Chris@1 4326 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
Chris@1 4327 else
Chris@1 4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 4329 for as_dir in $PATH
Chris@1 4330 do
Chris@1 4331 IFS=$as_save_IFS
Chris@1 4332 test -z "$as_dir" && as_dir=.
Chris@1 4333 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 4334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 4335 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Chris@1 4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 4337 break 2
Chris@1 4338 fi
Chris@1 4339 done
Chris@1 4340 done
Chris@1 4341 IFS=$as_save_IFS
Chris@1 4342
Chris@1 4343 fi
Chris@1 4344 fi
Chris@1 4345 OBJDUMP=$ac_cv_prog_OBJDUMP
Chris@1 4346 if test -n "$OBJDUMP"; then
Chris@1 4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
Chris@1 4348 $as_echo "$OBJDUMP" >&6; }
Chris@1 4349 else
Chris@1 4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 4351 $as_echo "no" >&6; }
Chris@1 4352 fi
Chris@1 4353
Chris@1 4354
Chris@1 4355 fi
Chris@1 4356 if test -z "$ac_cv_prog_OBJDUMP"; then
Chris@1 4357 ac_ct_OBJDUMP=$OBJDUMP
Chris@1 4358 # Extract the first word of "objdump", so it can be a program name with args.
Chris@1 4359 set dummy objdump; ac_word=$2
Chris@1 4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 4361 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 4362 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Chris@1 4363 $as_echo_n "(cached) " >&6
Chris@1 4364 else
Chris@1 4365 if test -n "$ac_ct_OBJDUMP"; then
Chris@1 4366 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
Chris@1 4367 else
Chris@1 4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 4369 for as_dir in $PATH
Chris@1 4370 do
Chris@1 4371 IFS=$as_save_IFS
Chris@1 4372 test -z "$as_dir" && as_dir=.
Chris@1 4373 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 4374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 4375 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Chris@1 4376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 4377 break 2
Chris@1 4378 fi
Chris@1 4379 done
Chris@1 4380 done
Chris@1 4381 IFS=$as_save_IFS
Chris@1 4382
Chris@1 4383 fi
Chris@1 4384 fi
Chris@1 4385 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
Chris@1 4386 if test -n "$ac_ct_OBJDUMP"; then
Chris@1 4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
Chris@1 4388 $as_echo "$ac_ct_OBJDUMP" >&6; }
Chris@1 4389 else
Chris@1 4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 4391 $as_echo "no" >&6; }
Chris@1 4392 fi
Chris@1 4393
Chris@1 4394 if test "x$ac_ct_OBJDUMP" = x; then
Chris@1 4395 OBJDUMP="false"
Chris@1 4396 else
Chris@1 4397 case $cross_compiling:$ac_tool_warned in
Chris@1 4398 yes:)
Chris@1 4399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 4400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 4401 ac_tool_warned=yes ;;
Chris@1 4402 esac
Chris@1 4403 OBJDUMP=$ac_ct_OBJDUMP
Chris@1 4404 fi
Chris@1 4405 else
Chris@1 4406 OBJDUMP="$ac_cv_prog_OBJDUMP"
Chris@1 4407 fi
Chris@1 4408
Chris@1 4409 ;;
Chris@1 4410 esac
Chris@1 4411
Chris@1 4412 test -z "$AS" && AS=as
Chris@1 4413
Chris@1 4414
Chris@1 4415
Chris@1 4416
Chris@1 4417
Chris@1 4418 test -z "$DLLTOOL" && DLLTOOL=dlltool
Chris@1 4419
Chris@1 4420
Chris@1 4421
Chris@1 4422
Chris@1 4423
Chris@1 4424 test -z "$OBJDUMP" && OBJDUMP=objdump
Chris@1 4425
Chris@1 4426
Chris@1 4427
Chris@1 4428
Chris@1 4429
Chris@1 4430
Chris@1 4431
Chris@1 4432 case `pwd` in
Chris@1 4433 *\ * | *\ *)
Chris@1 4434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
Chris@1 4435 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
Chris@1 4436 esac
Chris@1 4437
Chris@1 4438
Chris@1 4439
Chris@1 4440 macro_version='2.4'
Chris@1 4441 macro_revision='1.3293'
Chris@1 4442
Chris@1 4443
Chris@1 4444
Chris@1 4445
Chris@1 4446
Chris@1 4447
Chris@1 4448
Chris@1 4449
Chris@1 4450
Chris@1 4451
Chris@1 4452
Chris@1 4453
Chris@1 4454
Chris@1 4455 ltmain="$ac_aux_dir/ltmain.sh"
Chris@1 4456
Chris@1 4457 # Backslashify metacharacters that are still active within
Chris@1 4458 # double-quoted strings.
Chris@1 4459 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
Chris@1 4460
Chris@1 4461 # Same as above, but do not quote variable references.
Chris@1 4462 double_quote_subst='s/\(["`\\]\)/\\\1/g'
Chris@1 4463
Chris@1 4464 # Sed substitution to delay expansion of an escaped shell variable in a
Chris@1 4465 # double_quote_subst'ed string.
Chris@1 4466 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
Chris@1 4467
Chris@1 4468 # Sed substitution to delay expansion of an escaped single quote.
Chris@1 4469 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
Chris@1 4470
Chris@1 4471 # Sed substitution to avoid accidental globbing in evaled expressions
Chris@1 4472 no_glob_subst='s/\*/\\\*/g'
Chris@1 4473
Chris@1 4474 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@1 4475 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
Chris@1 4476 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
Chris@1 4477
Chris@1 4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
Chris@1 4479 $as_echo_n "checking how to print strings... " >&6; }
Chris@1 4480 # Test print first, because it will be a builtin if present.
Chris@1 4481 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
Chris@1 4482 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
Chris@1 4483 ECHO='print -r --'
Chris@1 4484 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
Chris@1 4485 ECHO='printf %s\n'
Chris@1 4486 else
Chris@1 4487 # Use this function as a fallback that always works.
Chris@1 4488 func_fallback_echo ()
Chris@1 4489 {
Chris@1 4490 eval 'cat <<_LTECHO_EOF
Chris@1 4491 $1
Chris@1 4492 _LTECHO_EOF'
Chris@1 4493 }
Chris@1 4494 ECHO='func_fallback_echo'
Chris@1 4495 fi
Chris@1 4496
Chris@1 4497 # func_echo_all arg...
Chris@1 4498 # Invoke $ECHO with all args, space-separated.
Chris@1 4499 func_echo_all ()
Chris@1 4500 {
Chris@1 4501 $ECHO ""
Chris@1 4502 }
Chris@1 4503
Chris@1 4504 case "$ECHO" in
Chris@1 4505 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
Chris@1 4506 $as_echo "printf" >&6; } ;;
Chris@1 4507 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
Chris@1 4508 $as_echo "print -r" >&6; } ;;
Chris@1 4509 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
Chris@1 4510 $as_echo "cat" >&6; } ;;
Chris@1 4511 esac
Chris@1 4512
Chris@1 4513
Chris@1 4514
Chris@1 4515
Chris@1 4516
Chris@1 4517
Chris@1 4518
Chris@1 4519
Chris@1 4520
Chris@1 4521
Chris@1 4522
Chris@1 4523
Chris@1 4524
Chris@1 4525
Chris@1 4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
Chris@1 4527 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
Chris@1 4528 if ${ac_cv_path_SED+:} false; then :
Chris@1 4529 $as_echo_n "(cached) " >&6
Chris@1 4530 else
Chris@1 4531 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
Chris@1 4532 for ac_i in 1 2 3 4 5 6 7; do
Chris@1 4533 ac_script="$ac_script$as_nl$ac_script"
Chris@1 4534 done
Chris@1 4535 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
Chris@1 4536 { ac_script=; unset ac_script;}
Chris@1 4537 if test -z "$SED"; then
Chris@1 4538 ac_path_SED_found=false
Chris@1 4539 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@1 4540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 4541 for as_dir in $PATH
Chris@1 4542 do
Chris@1 4543 IFS=$as_save_IFS
Chris@1 4544 test -z "$as_dir" && as_dir=.
Chris@1 4545 for ac_prog in sed gsed; do
Chris@1 4546 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 4547 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Chris@1 4548 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
Chris@1 4549 # Check for GNU ac_path_SED and select it if it is found.
Chris@1 4550 # Check for GNU $ac_path_SED
Chris@1 4551 case `"$ac_path_SED" --version 2>&1` in
Chris@1 4552 *GNU*)
Chris@1 4553 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
Chris@1 4554 *)
Chris@1 4555 ac_count=0
Chris@1 4556 $as_echo_n 0123456789 >"conftest.in"
Chris@1 4557 while :
Chris@1 4558 do
Chris@1 4559 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@1 4560 mv "conftest.tmp" "conftest.in"
Chris@1 4561 cp "conftest.in" "conftest.nl"
Chris@1 4562 $as_echo '' >> "conftest.nl"
Chris@1 4563 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@1 4564 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@1 4565 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@1 4566 if test $ac_count -gt ${ac_path_SED_max-0}; then
Chris@1 4567 # Best one so far, save it but keep looking for a better one
Chris@1 4568 ac_cv_path_SED="$ac_path_SED"
Chris@1 4569 ac_path_SED_max=$ac_count
Chris@1 4570 fi
Chris@1 4571 # 10*(2^10) chars as input seems more than enough
Chris@1 4572 test $ac_count -gt 10 && break
Chris@1 4573 done
Chris@1 4574 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@1 4575 esac
Chris@1 4576
Chris@1 4577 $ac_path_SED_found && break 3
Chris@1 4578 done
Chris@1 4579 done
Chris@1 4580 done
Chris@1 4581 IFS=$as_save_IFS
Chris@1 4582 if test -z "$ac_cv_path_SED"; then
Chris@1 4583 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Chris@1 4584 fi
Chris@1 4585 else
Chris@1 4586 ac_cv_path_SED=$SED
Chris@1 4587 fi
Chris@1 4588
Chris@1 4589 fi
Chris@1 4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
Chris@1 4591 $as_echo "$ac_cv_path_SED" >&6; }
Chris@1 4592 SED="$ac_cv_path_SED"
Chris@1 4593 rm -f conftest.sed
Chris@1 4594
Chris@1 4595 test -z "$SED" && SED=sed
Chris@1 4596 Xsed="$SED -e 1s/^X//"
Chris@1 4597
Chris@1 4598
Chris@1 4599
Chris@1 4600
Chris@1 4601
Chris@1 4602
Chris@1 4603
Chris@1 4604
Chris@1 4605
Chris@1 4606
Chris@1 4607
Chris@1 4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Chris@1 4609 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Chris@1 4610 if ${ac_cv_path_GREP+:} false; then :
Chris@1 4611 $as_echo_n "(cached) " >&6
Chris@1 4612 else
Chris@1 4613 if test -z "$GREP"; then
Chris@1 4614 ac_path_GREP_found=false
Chris@1 4615 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@1 4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 4617 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@1 4618 do
Chris@1 4619 IFS=$as_save_IFS
Chris@1 4620 test -z "$as_dir" && as_dir=.
Chris@1 4621 for ac_prog in grep ggrep; do
Chris@1 4622 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 4623 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@1 4624 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Chris@1 4625 # Check for GNU ac_path_GREP and select it if it is found.
Chris@1 4626 # Check for GNU $ac_path_GREP
Chris@1 4627 case `"$ac_path_GREP" --version 2>&1` in
Chris@1 4628 *GNU*)
Chris@1 4629 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
Chris@1 4630 *)
Chris@1 4631 ac_count=0
Chris@1 4632 $as_echo_n 0123456789 >"conftest.in"
Chris@1 4633 while :
Chris@1 4634 do
Chris@1 4635 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@1 4636 mv "conftest.tmp" "conftest.in"
Chris@1 4637 cp "conftest.in" "conftest.nl"
Chris@1 4638 $as_echo 'GREP' >> "conftest.nl"
Chris@1 4639 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@1 4640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@1 4641 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@1 4642 if test $ac_count -gt ${ac_path_GREP_max-0}; then
Chris@1 4643 # Best one so far, save it but keep looking for a better one
Chris@1 4644 ac_cv_path_GREP="$ac_path_GREP"
Chris@1 4645 ac_path_GREP_max=$ac_count
Chris@1 4646 fi
Chris@1 4647 # 10*(2^10) chars as input seems more than enough
Chris@1 4648 test $ac_count -gt 10 && break
Chris@1 4649 done
Chris@1 4650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@1 4651 esac
Chris@1 4652
Chris@1 4653 $ac_path_GREP_found && break 3
Chris@1 4654 done
Chris@1 4655 done
Chris@1 4656 done
Chris@1 4657 IFS=$as_save_IFS
Chris@1 4658 if test -z "$ac_cv_path_GREP"; then
Chris@1 4659 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@1 4660 fi
Chris@1 4661 else
Chris@1 4662 ac_cv_path_GREP=$GREP
Chris@1 4663 fi
Chris@1 4664
Chris@1 4665 fi
Chris@1 4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Chris@1 4667 $as_echo "$ac_cv_path_GREP" >&6; }
Chris@1 4668 GREP="$ac_cv_path_GREP"
Chris@1 4669
Chris@1 4670
Chris@1 4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Chris@1 4672 $as_echo_n "checking for egrep... " >&6; }
Chris@1 4673 if ${ac_cv_path_EGREP+:} false; then :
Chris@1 4674 $as_echo_n "(cached) " >&6
Chris@1 4675 else
Chris@1 4676 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
Chris@1 4677 then ac_cv_path_EGREP="$GREP -E"
Chris@1 4678 else
Chris@1 4679 if test -z "$EGREP"; then
Chris@1 4680 ac_path_EGREP_found=false
Chris@1 4681 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@1 4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 4683 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@1 4684 do
Chris@1 4685 IFS=$as_save_IFS
Chris@1 4686 test -z "$as_dir" && as_dir=.
Chris@1 4687 for ac_prog in egrep; do
Chris@1 4688 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 4689 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@1 4690 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Chris@1 4691 # Check for GNU ac_path_EGREP and select it if it is found.
Chris@1 4692 # Check for GNU $ac_path_EGREP
Chris@1 4693 case `"$ac_path_EGREP" --version 2>&1` in
Chris@1 4694 *GNU*)
Chris@1 4695 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
Chris@1 4696 *)
Chris@1 4697 ac_count=0
Chris@1 4698 $as_echo_n 0123456789 >"conftest.in"
Chris@1 4699 while :
Chris@1 4700 do
Chris@1 4701 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@1 4702 mv "conftest.tmp" "conftest.in"
Chris@1 4703 cp "conftest.in" "conftest.nl"
Chris@1 4704 $as_echo 'EGREP' >> "conftest.nl"
Chris@1 4705 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@1 4706 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@1 4707 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@1 4708 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
Chris@1 4709 # Best one so far, save it but keep looking for a better one
Chris@1 4710 ac_cv_path_EGREP="$ac_path_EGREP"
Chris@1 4711 ac_path_EGREP_max=$ac_count
Chris@1 4712 fi
Chris@1 4713 # 10*(2^10) chars as input seems more than enough
Chris@1 4714 test $ac_count -gt 10 && break
Chris@1 4715 done
Chris@1 4716 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@1 4717 esac
Chris@1 4718
Chris@1 4719 $ac_path_EGREP_found && break 3
Chris@1 4720 done
Chris@1 4721 done
Chris@1 4722 done
Chris@1 4723 IFS=$as_save_IFS
Chris@1 4724 if test -z "$ac_cv_path_EGREP"; then
Chris@1 4725 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@1 4726 fi
Chris@1 4727 else
Chris@1 4728 ac_cv_path_EGREP=$EGREP
Chris@1 4729 fi
Chris@1 4730
Chris@1 4731 fi
Chris@1 4732 fi
Chris@1 4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Chris@1 4734 $as_echo "$ac_cv_path_EGREP" >&6; }
Chris@1 4735 EGREP="$ac_cv_path_EGREP"
Chris@1 4736
Chris@1 4737
Chris@1 4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
Chris@1 4739 $as_echo_n "checking for fgrep... " >&6; }
Chris@1 4740 if ${ac_cv_path_FGREP+:} false; then :
Chris@1 4741 $as_echo_n "(cached) " >&6
Chris@1 4742 else
Chris@1 4743 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
Chris@1 4744 then ac_cv_path_FGREP="$GREP -F"
Chris@1 4745 else
Chris@1 4746 if test -z "$FGREP"; then
Chris@1 4747 ac_path_FGREP_found=false
Chris@1 4748 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@1 4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 4750 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@1 4751 do
Chris@1 4752 IFS=$as_save_IFS
Chris@1 4753 test -z "$as_dir" && as_dir=.
Chris@1 4754 for ac_prog in fgrep; do
Chris@1 4755 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 4756 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@1 4757 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
Chris@1 4758 # Check for GNU ac_path_FGREP and select it if it is found.
Chris@1 4759 # Check for GNU $ac_path_FGREP
Chris@1 4760 case `"$ac_path_FGREP" --version 2>&1` in
Chris@1 4761 *GNU*)
Chris@1 4762 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
Chris@1 4763 *)
Chris@1 4764 ac_count=0
Chris@1 4765 $as_echo_n 0123456789 >"conftest.in"
Chris@1 4766 while :
Chris@1 4767 do
Chris@1 4768 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@1 4769 mv "conftest.tmp" "conftest.in"
Chris@1 4770 cp "conftest.in" "conftest.nl"
Chris@1 4771 $as_echo 'FGREP' >> "conftest.nl"
Chris@1 4772 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@1 4773 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@1 4774 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@1 4775 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
Chris@1 4776 # Best one so far, save it but keep looking for a better one
Chris@1 4777 ac_cv_path_FGREP="$ac_path_FGREP"
Chris@1 4778 ac_path_FGREP_max=$ac_count
Chris@1 4779 fi
Chris@1 4780 # 10*(2^10) chars as input seems more than enough
Chris@1 4781 test $ac_count -gt 10 && break
Chris@1 4782 done
Chris@1 4783 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@1 4784 esac
Chris@1 4785
Chris@1 4786 $ac_path_FGREP_found && break 3
Chris@1 4787 done
Chris@1 4788 done
Chris@1 4789 done
Chris@1 4790 IFS=$as_save_IFS
Chris@1 4791 if test -z "$ac_cv_path_FGREP"; then
Chris@1 4792 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@1 4793 fi
Chris@1 4794 else
Chris@1 4795 ac_cv_path_FGREP=$FGREP
Chris@1 4796 fi
Chris@1 4797
Chris@1 4798 fi
Chris@1 4799 fi
Chris@1 4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
Chris@1 4801 $as_echo "$ac_cv_path_FGREP" >&6; }
Chris@1 4802 FGREP="$ac_cv_path_FGREP"
Chris@1 4803
Chris@1 4804
Chris@1 4805 test -z "$GREP" && GREP=grep
Chris@1 4806
Chris@1 4807
Chris@1 4808
Chris@1 4809
Chris@1 4810
Chris@1 4811
Chris@1 4812
Chris@1 4813
Chris@1 4814
Chris@1 4815
Chris@1 4816
Chris@1 4817
Chris@1 4818
Chris@1 4819
Chris@1 4820
Chris@1 4821
Chris@1 4822
Chris@1 4823
Chris@1 4824
Chris@1 4825 # Check whether --with-gnu-ld was given.
Chris@1 4826 if test "${with_gnu_ld+set}" = set; then :
Chris@1 4827 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Chris@1 4828 else
Chris@1 4829 with_gnu_ld=no
Chris@1 4830 fi
Chris@1 4831
Chris@1 4832 ac_prog=ld
Chris@1 4833 if test "$GCC" = yes; then
Chris@1 4834 # Check if gcc -print-prog-name=ld gives a path.
Chris@1 4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
Chris@1 4836 $as_echo_n "checking for ld used by $CC... " >&6; }
Chris@1 4837 case $host in
Chris@1 4838 *-*-mingw*)
Chris@1 4839 # gcc leaves a trailing carriage return which upsets mingw
Chris@1 4840 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
Chris@1 4841 *)
Chris@1 4842 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
Chris@1 4843 esac
Chris@1 4844 case $ac_prog in
Chris@1 4845 # Accept absolute paths.
Chris@1 4846 [\\/]* | ?:[\\/]*)
Chris@1 4847 re_direlt='/[^/][^/]*/\.\./'
Chris@1 4848 # Canonicalize the pathname of ld
Chris@1 4849 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
Chris@1 4850 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
Chris@1 4851 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Chris@1 4852 done
Chris@1 4853 test -z "$LD" && LD="$ac_prog"
Chris@1 4854 ;;
Chris@1 4855 "")
Chris@1 4856 # If it fails, then pretend we aren't using GCC.
Chris@1 4857 ac_prog=ld
Chris@1 4858 ;;
Chris@1 4859 *)
Chris@1 4860 # If it is relative, then search for the first ld in PATH.
Chris@1 4861 with_gnu_ld=unknown
Chris@1 4862 ;;
Chris@1 4863 esac
Chris@1 4864 elif test "$with_gnu_ld" = yes; then
Chris@1 4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Chris@1 4866 $as_echo_n "checking for GNU ld... " >&6; }
Chris@1 4867 else
Chris@1 4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Chris@1 4869 $as_echo_n "checking for non-GNU ld... " >&6; }
Chris@1 4870 fi
Chris@1 4871 if ${lt_cv_path_LD+:} false; then :
Chris@1 4872 $as_echo_n "(cached) " >&6
Chris@1 4873 else
Chris@1 4874 if test -z "$LD"; then
Chris@1 4875 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@1 4876 for ac_dir in $PATH; do
Chris@1 4877 IFS="$lt_save_ifs"
Chris@1 4878 test -z "$ac_dir" && ac_dir=.
Chris@1 4879 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Chris@1 4880 lt_cv_path_LD="$ac_dir/$ac_prog"
Chris@1 4881 # Check to see if the program is GNU ld. I'd rather use --version,
Chris@1 4882 # but apparently some variants of GNU ld only accept -v.
Chris@1 4883 # Break only if it was the GNU/non-GNU ld that we prefer.
Chris@1 4884 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
Chris@1 4885 *GNU* | *'with BFD'*)
Chris@1 4886 test "$with_gnu_ld" != no && break
Chris@1 4887 ;;
Chris@1 4888 *)
Chris@1 4889 test "$with_gnu_ld" != yes && break
Chris@1 4890 ;;
Chris@1 4891 esac
Chris@1 4892 fi
Chris@1 4893 done
Chris@1 4894 IFS="$lt_save_ifs"
Chris@1 4895 else
Chris@1 4896 lt_cv_path_LD="$LD" # Let the user override the test with a path.
Chris@1 4897 fi
Chris@1 4898 fi
Chris@1 4899
Chris@1 4900 LD="$lt_cv_path_LD"
Chris@1 4901 if test -n "$LD"; then
Chris@1 4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Chris@1 4903 $as_echo "$LD" >&6; }
Chris@1 4904 else
Chris@1 4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 4906 $as_echo "no" >&6; }
Chris@1 4907 fi
Chris@1 4908 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Chris@1 4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Chris@1 4910 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Chris@1 4911 if ${lt_cv_prog_gnu_ld+:} false; then :
Chris@1 4912 $as_echo_n "(cached) " >&6
Chris@1 4913 else
Chris@1 4914 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Chris@1 4915 case `$LD -v 2>&1 </dev/null` in
Chris@1 4916 *GNU* | *'with BFD'*)
Chris@1 4917 lt_cv_prog_gnu_ld=yes
Chris@1 4918 ;;
Chris@1 4919 *)
Chris@1 4920 lt_cv_prog_gnu_ld=no
Chris@1 4921 ;;
Chris@1 4922 esac
Chris@1 4923 fi
Chris@1 4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
Chris@1 4925 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
Chris@1 4926 with_gnu_ld=$lt_cv_prog_gnu_ld
Chris@1 4927
Chris@1 4928
Chris@1 4929
Chris@1 4930
Chris@1 4931
Chris@1 4932
Chris@1 4933
Chris@1 4934
Chris@1 4935
Chris@1 4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
Chris@1 4937 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Chris@1 4938 if ${lt_cv_path_NM+:} false; then :
Chris@1 4939 $as_echo_n "(cached) " >&6
Chris@1 4940 else
Chris@1 4941 if test -n "$NM"; then
Chris@1 4942 # Let the user override the test.
Chris@1 4943 lt_cv_path_NM="$NM"
Chris@1 4944 else
Chris@1 4945 lt_nm_to_check="${ac_tool_prefix}nm"
Chris@1 4946 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
Chris@1 4947 lt_nm_to_check="$lt_nm_to_check nm"
Chris@1 4948 fi
Chris@1 4949 for lt_tmp_nm in $lt_nm_to_check; do
Chris@1 4950 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@1 4951 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
Chris@1 4952 IFS="$lt_save_ifs"
Chris@1 4953 test -z "$ac_dir" && ac_dir=.
Chris@1 4954 tmp_nm="$ac_dir/$lt_tmp_nm"
Chris@1 4955 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
Chris@1 4956 # Check to see if the nm accepts a BSD-compat flag.
Chris@1 4957 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
Chris@1 4958 # nm: unknown option "B" ignored
Chris@1 4959 # Tru64's nm complains that /dev/null is an invalid object file
Chris@1 4960 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
Chris@1 4961 */dev/null* | *'Invalid file or object type'*)
Chris@1 4962 lt_cv_path_NM="$tmp_nm -B"
Chris@1 4963 break
Chris@1 4964 ;;
Chris@1 4965 *)
Chris@1 4966 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
Chris@1 4967 */dev/null*)
Chris@1 4968 lt_cv_path_NM="$tmp_nm -p"
Chris@1 4969 break
Chris@1 4970 ;;
Chris@1 4971 *)
Chris@1 4972 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
Chris@1 4973 continue # so that we can try to find one that supports BSD flags
Chris@1 4974 ;;
Chris@1 4975 esac
Chris@1 4976 ;;
Chris@1 4977 esac
Chris@1 4978 fi
Chris@1 4979 done
Chris@1 4980 IFS="$lt_save_ifs"
Chris@1 4981 done
Chris@1 4982 : ${lt_cv_path_NM=no}
Chris@1 4983 fi
Chris@1 4984 fi
Chris@1 4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
Chris@1 4986 $as_echo "$lt_cv_path_NM" >&6; }
Chris@1 4987 if test "$lt_cv_path_NM" != "no"; then
Chris@1 4988 NM="$lt_cv_path_NM"
Chris@1 4989 else
Chris@1 4990 # Didn't find any BSD compatible name lister, look for dumpbin.
Chris@1 4991 if test -n "$DUMPBIN"; then :
Chris@1 4992 # Let the user override the test.
Chris@1 4993 else
Chris@1 4994 if test -n "$ac_tool_prefix"; then
Chris@1 4995 for ac_prog in dumpbin "link -dump"
Chris@1 4996 do
Chris@1 4997 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@1 4998 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@1 4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 5000 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 5001 if ${ac_cv_prog_DUMPBIN+:} false; then :
Chris@1 5002 $as_echo_n "(cached) " >&6
Chris@1 5003 else
Chris@1 5004 if test -n "$DUMPBIN"; then
Chris@1 5005 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
Chris@1 5006 else
Chris@1 5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 5008 for as_dir in $PATH
Chris@1 5009 do
Chris@1 5010 IFS=$as_save_IFS
Chris@1 5011 test -z "$as_dir" && as_dir=.
Chris@1 5012 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 5013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 5014 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Chris@1 5015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 5016 break 2
Chris@1 5017 fi
Chris@1 5018 done
Chris@1 5019 done
Chris@1 5020 IFS=$as_save_IFS
Chris@1 5021
Chris@1 5022 fi
Chris@1 5023 fi
Chris@1 5024 DUMPBIN=$ac_cv_prog_DUMPBIN
Chris@1 5025 if test -n "$DUMPBIN"; then
Chris@1 5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
Chris@1 5027 $as_echo "$DUMPBIN" >&6; }
Chris@1 5028 else
Chris@1 5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 5030 $as_echo "no" >&6; }
Chris@1 5031 fi
Chris@1 5032
Chris@1 5033
Chris@1 5034 test -n "$DUMPBIN" && break
Chris@1 5035 done
Chris@1 5036 fi
Chris@1 5037 if test -z "$DUMPBIN"; then
Chris@1 5038 ac_ct_DUMPBIN=$DUMPBIN
Chris@1 5039 for ac_prog in dumpbin "link -dump"
Chris@1 5040 do
Chris@1 5041 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@1 5042 set dummy $ac_prog; ac_word=$2
Chris@1 5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 5044 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 5045 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Chris@1 5046 $as_echo_n "(cached) " >&6
Chris@1 5047 else
Chris@1 5048 if test -n "$ac_ct_DUMPBIN"; then
Chris@1 5049 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
Chris@1 5050 else
Chris@1 5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 5052 for as_dir in $PATH
Chris@1 5053 do
Chris@1 5054 IFS=$as_save_IFS
Chris@1 5055 test -z "$as_dir" && as_dir=.
Chris@1 5056 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 5058 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Chris@1 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 5060 break 2
Chris@1 5061 fi
Chris@1 5062 done
Chris@1 5063 done
Chris@1 5064 IFS=$as_save_IFS
Chris@1 5065
Chris@1 5066 fi
Chris@1 5067 fi
Chris@1 5068 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
Chris@1 5069 if test -n "$ac_ct_DUMPBIN"; then
Chris@1 5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
Chris@1 5071 $as_echo "$ac_ct_DUMPBIN" >&6; }
Chris@1 5072 else
Chris@1 5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 5074 $as_echo "no" >&6; }
Chris@1 5075 fi
Chris@1 5076
Chris@1 5077
Chris@1 5078 test -n "$ac_ct_DUMPBIN" && break
Chris@1 5079 done
Chris@1 5080
Chris@1 5081 if test "x$ac_ct_DUMPBIN" = x; then
Chris@1 5082 DUMPBIN=":"
Chris@1 5083 else
Chris@1 5084 case $cross_compiling:$ac_tool_warned in
Chris@1 5085 yes:)
Chris@1 5086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 5087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 5088 ac_tool_warned=yes ;;
Chris@1 5089 esac
Chris@1 5090 DUMPBIN=$ac_ct_DUMPBIN
Chris@1 5091 fi
Chris@1 5092 fi
Chris@1 5093
Chris@1 5094 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
Chris@1 5095 *COFF*)
Chris@1 5096 DUMPBIN="$DUMPBIN -symbols"
Chris@1 5097 ;;
Chris@1 5098 *)
Chris@1 5099 DUMPBIN=:
Chris@1 5100 ;;
Chris@1 5101 esac
Chris@1 5102 fi
Chris@1 5103
Chris@1 5104 if test "$DUMPBIN" != ":"; then
Chris@1 5105 NM="$DUMPBIN"
Chris@1 5106 fi
Chris@1 5107 fi
Chris@1 5108 test -z "$NM" && NM=nm
Chris@1 5109
Chris@1 5110
Chris@1 5111
Chris@1 5112
Chris@1 5113
Chris@1 5114
Chris@1 5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
Chris@1 5116 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
Chris@1 5117 if ${lt_cv_nm_interface+:} false; then :
Chris@1 5118 $as_echo_n "(cached) " >&6
Chris@1 5119 else
Chris@1 5120 lt_cv_nm_interface="BSD nm"
Chris@1 5121 echo "int some_variable = 0;" > conftest.$ac_ext
Chris@1 5122 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
Chris@1 5123 (eval "$ac_compile" 2>conftest.err)
Chris@1 5124 cat conftest.err >&5
Chris@1 5125 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Chris@1 5126 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
Chris@1 5127 cat conftest.err >&5
Chris@1 5128 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
Chris@1 5129 cat conftest.out >&5
Chris@1 5130 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
Chris@1 5131 lt_cv_nm_interface="MS dumpbin"
Chris@1 5132 fi
Chris@1 5133 rm -f conftest*
Chris@1 5134 fi
Chris@1 5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
Chris@1 5136 $as_echo "$lt_cv_nm_interface" >&6; }
Chris@1 5137
Chris@1 5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Chris@1 5139 $as_echo_n "checking whether ln -s works... " >&6; }
Chris@1 5140 LN_S=$as_ln_s
Chris@1 5141 if test "$LN_S" = "ln -s"; then
Chris@1 5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@1 5143 $as_echo "yes" >&6; }
Chris@1 5144 else
Chris@1 5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Chris@1 5146 $as_echo "no, using $LN_S" >&6; }
Chris@1 5147 fi
Chris@1 5148
Chris@1 5149 # find the maximum length of command line arguments
Chris@1 5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
Chris@1 5151 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
Chris@1 5152 if ${lt_cv_sys_max_cmd_len+:} false; then :
Chris@1 5153 $as_echo_n "(cached) " >&6
Chris@1 5154 else
Chris@1 5155 i=0
Chris@1 5156 teststring="ABCD"
Chris@1 5157
Chris@1 5158 case $build_os in
Chris@1 5159 msdosdjgpp*)
Chris@1 5160 # On DJGPP, this test can blow up pretty badly due to problems in libc
Chris@1 5161 # (any single argument exceeding 2000 bytes causes a buffer overrun
Chris@1 5162 # during glob expansion). Even if it were fixed, the result of this
Chris@1 5163 # check would be larger than it should be.
Chris@1 5164 lt_cv_sys_max_cmd_len=12288; # 12K is about right
Chris@1 5165 ;;
Chris@1 5166
Chris@1 5167 gnu*)
Chris@1 5168 # Under GNU Hurd, this test is not required because there is
Chris@1 5169 # no limit to the length of command line arguments.
Chris@1 5170 # Libtool will interpret -1 as no limit whatsoever
Chris@1 5171 lt_cv_sys_max_cmd_len=-1;
Chris@1 5172 ;;
Chris@1 5173
Chris@1 5174 cygwin* | mingw* | cegcc*)
Chris@1 5175 # On Win9x/ME, this test blows up -- it succeeds, but takes
Chris@1 5176 # about 5 minutes as the teststring grows exponentially.
Chris@1 5177 # Worse, since 9x/ME are not pre-emptively multitasking,
Chris@1 5178 # you end up with a "frozen" computer, even though with patience
Chris@1 5179 # the test eventually succeeds (with a max line length of 256k).
Chris@1 5180 # Instead, let's just punt: use the minimum linelength reported by
Chris@1 5181 # all of the supported platforms: 8192 (on NT/2K/XP).
Chris@1 5182 lt_cv_sys_max_cmd_len=8192;
Chris@1 5183 ;;
Chris@1 5184
Chris@1 5185 mint*)
Chris@1 5186 # On MiNT this can take a long time and run out of memory.
Chris@1 5187 lt_cv_sys_max_cmd_len=8192;
Chris@1 5188 ;;
Chris@1 5189
Chris@1 5190 amigaos*)
Chris@1 5191 # On AmigaOS with pdksh, this test takes hours, literally.
Chris@1 5192 # So we just punt and use a minimum line length of 8192.
Chris@1 5193 lt_cv_sys_max_cmd_len=8192;
Chris@1 5194 ;;
Chris@1 5195
Chris@1 5196 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Chris@1 5197 # This has been around since 386BSD, at least. Likely further.
Chris@1 5198 if test -x /sbin/sysctl; then
Chris@1 5199 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
Chris@1 5200 elif test -x /usr/sbin/sysctl; then
Chris@1 5201 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
Chris@1 5202 else
Chris@1 5203 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Chris@1 5204 fi
Chris@1 5205 # And add a safety zone
Chris@1 5206 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Chris@1 5207 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Chris@1 5208 ;;
Chris@1 5209
Chris@1 5210 interix*)
Chris@1 5211 # We know the value 262144 and hardcode it with a safety zone (like BSD)
Chris@1 5212 lt_cv_sys_max_cmd_len=196608
Chris@1 5213 ;;
Chris@1 5214
Chris@1 5215 osf*)
Chris@1 5216 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
Chris@1 5217 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
Chris@1 5218 # nice to cause kernel panics so lets avoid the loop below.
Chris@1 5219 # First set a reasonable default.
Chris@1 5220 lt_cv_sys_max_cmd_len=16384
Chris@1 5221 #
Chris@1 5222 if test -x /sbin/sysconfig; then
Chris@1 5223 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
Chris@1 5224 *1*) lt_cv_sys_max_cmd_len=-1 ;;
Chris@1 5225 esac
Chris@1 5226 fi
Chris@1 5227 ;;
Chris@1 5228 sco3.2v5*)
Chris@1 5229 lt_cv_sys_max_cmd_len=102400
Chris@1 5230 ;;
Chris@1 5231 sysv5* | sco5v6* | sysv4.2uw2*)
Chris@1 5232 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
Chris@1 5233 if test -n "$kargmax"; then
Chris@1 5234 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
Chris@1 5235 else
Chris@1 5236 lt_cv_sys_max_cmd_len=32768
Chris@1 5237 fi
Chris@1 5238 ;;
Chris@1 5239 *)
Chris@1 5240 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
Chris@1 5241 if test -n "$lt_cv_sys_max_cmd_len"; then
Chris@1 5242 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Chris@1 5243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Chris@1 5244 else
Chris@1 5245 # Make teststring a little bigger before we do anything with it.
Chris@1 5246 # a 1K string should be a reasonable start.
Chris@1 5247 for i in 1 2 3 4 5 6 7 8 ; do
Chris@1 5248 teststring=$teststring$teststring
Chris@1 5249 done
Chris@1 5250 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
Chris@1 5251 # If test is not a shell built-in, we'll probably end up computing a
Chris@1 5252 # maximum length that is only half of the actual maximum length, but
Chris@1 5253 # we can't tell.
Chris@1 5254 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
Chris@1 5255 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Chris@1 5256 test $i != 17 # 1/2 MB should be enough
Chris@1 5257 do
Chris@1 5258 i=`expr $i + 1`
Chris@1 5259 teststring=$teststring$teststring
Chris@1 5260 done
Chris@1 5261 # Only check the string length outside the loop.
Chris@1 5262 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
Chris@1 5263 teststring=
Chris@1 5264 # Add a significant safety factor because C++ compilers can tack on
Chris@1 5265 # massive amounts of additional arguments before passing them to the
Chris@1 5266 # linker. It appears as though 1/2 is a usable value.
Chris@1 5267 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
Chris@1 5268 fi
Chris@1 5269 ;;
Chris@1 5270 esac
Chris@1 5271
Chris@1 5272 fi
Chris@1 5273
Chris@1 5274 if test -n $lt_cv_sys_max_cmd_len ; then
Chris@1 5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
Chris@1 5276 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
Chris@1 5277 else
Chris@1 5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
Chris@1 5279 $as_echo "none" >&6; }
Chris@1 5280 fi
Chris@1 5281 max_cmd_len=$lt_cv_sys_max_cmd_len
Chris@1 5282
Chris@1 5283
Chris@1 5284
Chris@1 5285
Chris@1 5286
Chris@1 5287
Chris@1 5288 : ${CP="cp -f"}
Chris@1 5289 : ${MV="mv -f"}
Chris@1 5290 : ${RM="rm -f"}
Chris@1 5291
Chris@1 5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
Chris@1 5293 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
Chris@1 5294 # Try some XSI features
Chris@1 5295 xsi_shell=no
Chris@1 5296 ( _lt_dummy="a/b/c"
Chris@1 5297 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
Chris@1 5298 = c,a/b,b/c, \
Chris@1 5299 && eval 'test $(( 1 + 1 )) -eq 2 \
Chris@1 5300 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
Chris@1 5301 && xsi_shell=yes
Chris@1 5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
Chris@1 5303 $as_echo "$xsi_shell" >&6; }
Chris@1 5304
Chris@1 5305
Chris@1 5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
Chris@1 5307 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
Chris@1 5308 lt_shell_append=no
Chris@1 5309 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
Chris@1 5310 >/dev/null 2>&1 \
Chris@1 5311 && lt_shell_append=yes
Chris@1 5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
Chris@1 5313 $as_echo "$lt_shell_append" >&6; }
Chris@1 5314
Chris@1 5315
Chris@1 5316 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Chris@1 5317 lt_unset=unset
Chris@1 5318 else
Chris@1 5319 lt_unset=false
Chris@1 5320 fi
Chris@1 5321
Chris@1 5322
Chris@1 5323
Chris@1 5324
Chris@1 5325
Chris@1 5326 # test EBCDIC or ASCII
Chris@1 5327 case `echo X|tr X '\101'` in
Chris@1 5328 A) # ASCII based system
Chris@1 5329 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
Chris@1 5330 lt_SP2NL='tr \040 \012'
Chris@1 5331 lt_NL2SP='tr \015\012 \040\040'
Chris@1 5332 ;;
Chris@1 5333 *) # EBCDIC based system
Chris@1 5334 lt_SP2NL='tr \100 \n'
Chris@1 5335 lt_NL2SP='tr \r\n \100\100'
Chris@1 5336 ;;
Chris@1 5337 esac
Chris@1 5338
Chris@1 5339
Chris@1 5340
Chris@1 5341
Chris@1 5342
Chris@1 5343
Chris@1 5344
Chris@1 5345
Chris@1 5346
Chris@1 5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
Chris@1 5348 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
Chris@1 5349 if ${lt_cv_to_host_file_cmd+:} false; then :
Chris@1 5350 $as_echo_n "(cached) " >&6
Chris@1 5351 else
Chris@1 5352 case $host in
Chris@1 5353 *-*-mingw* )
Chris@1 5354 case $build in
Chris@1 5355 *-*-mingw* ) # actually msys
Chris@1 5356 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
Chris@1 5357 ;;
Chris@1 5358 *-*-cygwin* )
Chris@1 5359 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
Chris@1 5360 ;;
Chris@1 5361 * ) # otherwise, assume *nix
Chris@1 5362 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
Chris@1 5363 ;;
Chris@1 5364 esac
Chris@1 5365 ;;
Chris@1 5366 *-*-cygwin* )
Chris@1 5367 case $build in
Chris@1 5368 *-*-mingw* ) # actually msys
Chris@1 5369 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
Chris@1 5370 ;;
Chris@1 5371 *-*-cygwin* )
Chris@1 5372 lt_cv_to_host_file_cmd=func_convert_file_noop
Chris@1 5373 ;;
Chris@1 5374 * ) # otherwise, assume *nix
Chris@1 5375 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
Chris@1 5376 ;;
Chris@1 5377 esac
Chris@1 5378 ;;
Chris@1 5379 * ) # unhandled hosts (and "normal" native builds)
Chris@1 5380 lt_cv_to_host_file_cmd=func_convert_file_noop
Chris@1 5381 ;;
Chris@1 5382 esac
Chris@1 5383
Chris@1 5384 fi
Chris@1 5385
Chris@1 5386 to_host_file_cmd=$lt_cv_to_host_file_cmd
Chris@1 5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
Chris@1 5388 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
Chris@1 5389
Chris@1 5390
Chris@1 5391
Chris@1 5392
Chris@1 5393
Chris@1 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
Chris@1 5395 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
Chris@1 5396 if ${lt_cv_to_tool_file_cmd+:} false; then :
Chris@1 5397 $as_echo_n "(cached) " >&6
Chris@1 5398 else
Chris@1 5399 #assume ordinary cross tools, or native build.
Chris@1 5400 lt_cv_to_tool_file_cmd=func_convert_file_noop
Chris@1 5401 case $host in
Chris@1 5402 *-*-mingw* )
Chris@1 5403 case $build in
Chris@1 5404 *-*-mingw* ) # actually msys
Chris@1 5405 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
Chris@1 5406 ;;
Chris@1 5407 esac
Chris@1 5408 ;;
Chris@1 5409 esac
Chris@1 5410
Chris@1 5411 fi
Chris@1 5412
Chris@1 5413 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Chris@1 5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
Chris@1 5415 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
Chris@1 5416
Chris@1 5417
Chris@1 5418
Chris@1 5419
Chris@1 5420
Chris@1 5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
Chris@1 5422 $as_echo_n "checking for $LD option to reload object files... " >&6; }
Chris@1 5423 if ${lt_cv_ld_reload_flag+:} false; then :
Chris@1 5424 $as_echo_n "(cached) " >&6
Chris@1 5425 else
Chris@1 5426 lt_cv_ld_reload_flag='-r'
Chris@1 5427 fi
Chris@1 5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
Chris@1 5429 $as_echo "$lt_cv_ld_reload_flag" >&6; }
Chris@1 5430 reload_flag=$lt_cv_ld_reload_flag
Chris@1 5431 case $reload_flag in
Chris@1 5432 "" | " "*) ;;
Chris@1 5433 *) reload_flag=" $reload_flag" ;;
Chris@1 5434 esac
Chris@1 5435 reload_cmds='$LD$reload_flag -o $output$reload_objs'
Chris@1 5436 case $host_os in
Chris@1 5437 cygwin* | mingw* | pw32* | cegcc*)
Chris@1 5438 if test "$GCC" != yes; then
Chris@1 5439 reload_cmds=false
Chris@1 5440 fi
Chris@1 5441 ;;
Chris@1 5442 darwin*)
Chris@1 5443 if test "$GCC" = yes; then
Chris@1 5444 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
Chris@1 5445 else
Chris@1 5446 reload_cmds='$LD$reload_flag -o $output$reload_objs'
Chris@1 5447 fi
Chris@1 5448 ;;
Chris@1 5449 esac
Chris@1 5450
Chris@1 5451
Chris@1 5452
Chris@1 5453
Chris@1 5454
Chris@1 5455
Chris@1 5456
Chris@1 5457
Chris@1 5458
Chris@1 5459 if test -n "$ac_tool_prefix"; then
Chris@1 5460 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
Chris@1 5461 set dummy ${ac_tool_prefix}objdump; ac_word=$2
Chris@1 5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 5463 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 5464 if ${ac_cv_prog_OBJDUMP+:} false; then :
Chris@1 5465 $as_echo_n "(cached) " >&6
Chris@1 5466 else
Chris@1 5467 if test -n "$OBJDUMP"; then
Chris@1 5468 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
Chris@1 5469 else
Chris@1 5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 5471 for as_dir in $PATH
Chris@1 5472 do
Chris@1 5473 IFS=$as_save_IFS
Chris@1 5474 test -z "$as_dir" && as_dir=.
Chris@1 5475 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 5477 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Chris@1 5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 5479 break 2
Chris@1 5480 fi
Chris@1 5481 done
Chris@1 5482 done
Chris@1 5483 IFS=$as_save_IFS
Chris@1 5484
Chris@1 5485 fi
Chris@1 5486 fi
Chris@1 5487 OBJDUMP=$ac_cv_prog_OBJDUMP
Chris@1 5488 if test -n "$OBJDUMP"; then
Chris@1 5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
Chris@1 5490 $as_echo "$OBJDUMP" >&6; }
Chris@1 5491 else
Chris@1 5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 5493 $as_echo "no" >&6; }
Chris@1 5494 fi
Chris@1 5495
Chris@1 5496
Chris@1 5497 fi
Chris@1 5498 if test -z "$ac_cv_prog_OBJDUMP"; then
Chris@1 5499 ac_ct_OBJDUMP=$OBJDUMP
Chris@1 5500 # Extract the first word of "objdump", so it can be a program name with args.
Chris@1 5501 set dummy objdump; ac_word=$2
Chris@1 5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 5503 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 5504 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Chris@1 5505 $as_echo_n "(cached) " >&6
Chris@1 5506 else
Chris@1 5507 if test -n "$ac_ct_OBJDUMP"; then
Chris@1 5508 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
Chris@1 5509 else
Chris@1 5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 5511 for as_dir in $PATH
Chris@1 5512 do
Chris@1 5513 IFS=$as_save_IFS
Chris@1 5514 test -z "$as_dir" && as_dir=.
Chris@1 5515 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 5516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 5517 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Chris@1 5518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 5519 break 2
Chris@1 5520 fi
Chris@1 5521 done
Chris@1 5522 done
Chris@1 5523 IFS=$as_save_IFS
Chris@1 5524
Chris@1 5525 fi
Chris@1 5526 fi
Chris@1 5527 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
Chris@1 5528 if test -n "$ac_ct_OBJDUMP"; then
Chris@1 5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
Chris@1 5530 $as_echo "$ac_ct_OBJDUMP" >&6; }
Chris@1 5531 else
Chris@1 5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 5533 $as_echo "no" >&6; }
Chris@1 5534 fi
Chris@1 5535
Chris@1 5536 if test "x$ac_ct_OBJDUMP" = x; then
Chris@1 5537 OBJDUMP="false"
Chris@1 5538 else
Chris@1 5539 case $cross_compiling:$ac_tool_warned in
Chris@1 5540 yes:)
Chris@1 5541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 5542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 5543 ac_tool_warned=yes ;;
Chris@1 5544 esac
Chris@1 5545 OBJDUMP=$ac_ct_OBJDUMP
Chris@1 5546 fi
Chris@1 5547 else
Chris@1 5548 OBJDUMP="$ac_cv_prog_OBJDUMP"
Chris@1 5549 fi
Chris@1 5550
Chris@1 5551 test -z "$OBJDUMP" && OBJDUMP=objdump
Chris@1 5552
Chris@1 5553
Chris@1 5554
Chris@1 5555
Chris@1 5556
Chris@1 5557
Chris@1 5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
Chris@1 5559 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
Chris@1 5560 if ${lt_cv_deplibs_check_method+:} false; then :
Chris@1 5561 $as_echo_n "(cached) " >&6
Chris@1 5562 else
Chris@1 5563 lt_cv_file_magic_cmd='$MAGIC_CMD'
Chris@1 5564 lt_cv_file_magic_test_file=
Chris@1 5565 lt_cv_deplibs_check_method='unknown'
Chris@1 5566 # Need to set the preceding variable on all platforms that support
Chris@1 5567 # interlibrary dependencies.
Chris@1 5568 # 'none' -- dependencies not supported.
Chris@1 5569 # `unknown' -- same as none, but documents that we really don't know.
Chris@1 5570 # 'pass_all' -- all dependencies passed with no checks.
Chris@1 5571 # 'test_compile' -- check by making test program.
Chris@1 5572 # 'file_magic [[regex]]' -- check by looking for files in library path
Chris@1 5573 # which responds to the $file_magic_cmd with a given extended regex.
Chris@1 5574 # If you have `file' or equivalent on your system and you're not sure
Chris@1 5575 # whether `pass_all' will *always* work, you probably want this one.
Chris@1 5576
Chris@1 5577 case $host_os in
Chris@1 5578 aix[4-9]*)
Chris@1 5579 lt_cv_deplibs_check_method=pass_all
Chris@1 5580 ;;
Chris@1 5581
Chris@1 5582 beos*)
Chris@1 5583 lt_cv_deplibs_check_method=pass_all
Chris@1 5584 ;;
Chris@1 5585
Chris@1 5586 bsdi[45]*)
Chris@1 5587 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
Chris@1 5588 lt_cv_file_magic_cmd='/usr/bin/file -L'
Chris@1 5589 lt_cv_file_magic_test_file=/shlib/libc.so
Chris@1 5590 ;;
Chris@1 5591
Chris@1 5592 cygwin*)
Chris@1 5593 # func_win32_libid is a shell function defined in ltmain.sh
Chris@1 5594 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Chris@1 5595 lt_cv_file_magic_cmd='func_win32_libid'
Chris@1 5596 ;;
Chris@1 5597
Chris@1 5598 mingw* | pw32*)
Chris@1 5599 # Base MSYS/MinGW do not provide the 'file' command needed by
Chris@1 5600 # func_win32_libid shell function, so use a weaker test based on 'objdump',
Chris@1 5601 # unless we find 'file', for example because we are cross-compiling.
Chris@1 5602 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
Chris@1 5603 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
Chris@1 5604 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Chris@1 5605 lt_cv_file_magic_cmd='func_win32_libid'
Chris@1 5606 else
Chris@1 5607 # Keep this pattern in sync with the one in func_win32_libid.
Chris@1 5608 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
Chris@1 5609 lt_cv_file_magic_cmd='$OBJDUMP -f'
Chris@1 5610 fi
Chris@1 5611 ;;
Chris@1 5612
Chris@1 5613 cegcc*)
Chris@1 5614 # use the weaker test based on 'objdump'. See mingw*.
Chris@1 5615 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
Chris@1 5616 lt_cv_file_magic_cmd='$OBJDUMP -f'
Chris@1 5617 ;;
Chris@1 5618
Chris@1 5619 darwin* | rhapsody*)
Chris@1 5620 lt_cv_deplibs_check_method=pass_all
Chris@1 5621 ;;
Chris@1 5622
Chris@1 5623 freebsd* | dragonfly*)
Chris@1 5624 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Chris@1 5625 case $host_cpu in
Chris@1 5626 i*86 )
Chris@1 5627 # Not sure whether the presence of OpenBSD here was a mistake.
Chris@1 5628 # Let's accept both of them until this is cleared up.
Chris@1 5629 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
Chris@1 5630 lt_cv_file_magic_cmd=/usr/bin/file
Chris@1 5631 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
Chris@1 5632 ;;
Chris@1 5633 esac
Chris@1 5634 else
Chris@1 5635 lt_cv_deplibs_check_method=pass_all
Chris@1 5636 fi
Chris@1 5637 ;;
Chris@1 5638
Chris@1 5639 gnu*)
Chris@1 5640 lt_cv_deplibs_check_method=pass_all
Chris@1 5641 ;;
Chris@1 5642
Chris@1 5643 haiku*)
Chris@1 5644 lt_cv_deplibs_check_method=pass_all
Chris@1 5645 ;;
Chris@1 5646
Chris@1 5647 hpux10.20* | hpux11*)
Chris@1 5648 lt_cv_file_magic_cmd=/usr/bin/file
Chris@1 5649 case $host_cpu in
Chris@1 5650 ia64*)
Chris@1 5651 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
Chris@1 5652 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
Chris@1 5653 ;;
Chris@1 5654 hppa*64*)
Chris@1 5655 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@1 5656 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
Chris@1 5657 ;;
Chris@1 5658 *)
Chris@1 5659 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
Chris@1 5660 lt_cv_file_magic_test_file=/usr/lib/libc.sl
Chris@1 5661 ;;
Chris@1 5662 esac
Chris@1 5663 ;;
Chris@1 5664
Chris@1 5665 interix[3-9]*)
Chris@1 5666 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
Chris@1 5667 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
Chris@1 5668 ;;
Chris@1 5669
Chris@1 5670 irix5* | irix6* | nonstopux*)
Chris@1 5671 case $LD in
Chris@1 5672 *-32|*"-32 ") libmagic=32-bit;;
Chris@1 5673 *-n32|*"-n32 ") libmagic=N32;;
Chris@1 5674 *-64|*"-64 ") libmagic=64-bit;;
Chris@1 5675 *) libmagic=never-match;;
Chris@1 5676 esac
Chris@1 5677 lt_cv_deplibs_check_method=pass_all
Chris@1 5678 ;;
Chris@1 5679
Chris@1 5680 # This must be Linux ELF.
Chris@1 5681 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@1 5682 lt_cv_deplibs_check_method=pass_all
Chris@1 5683 ;;
Chris@1 5684
Chris@1 5685 netbsd* | netbsdelf*-gnu)
Chris@1 5686 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Chris@1 5687 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Chris@1 5688 else
Chris@1 5689 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
Chris@1 5690 fi
Chris@1 5691 ;;
Chris@1 5692
Chris@1 5693 newos6*)
Chris@1 5694 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
Chris@1 5695 lt_cv_file_magic_cmd=/usr/bin/file
Chris@1 5696 lt_cv_file_magic_test_file=/usr/lib/libnls.so
Chris@1 5697 ;;
Chris@1 5698
Chris@1 5699 *nto* | *qnx*)
Chris@1 5700 lt_cv_deplibs_check_method=pass_all
Chris@1 5701 ;;
Chris@1 5702
Chris@1 5703 openbsd*)
Chris@1 5704 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@1 5705 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
Chris@1 5706 else
Chris@1 5707 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Chris@1 5708 fi
Chris@1 5709 ;;
Chris@1 5710
Chris@1 5711 osf3* | osf4* | osf5*)
Chris@1 5712 lt_cv_deplibs_check_method=pass_all
Chris@1 5713 ;;
Chris@1 5714
Chris@1 5715 rdos*)
Chris@1 5716 lt_cv_deplibs_check_method=pass_all
Chris@1 5717 ;;
Chris@1 5718
Chris@1 5719 solaris*)
Chris@1 5720 lt_cv_deplibs_check_method=pass_all
Chris@1 5721 ;;
Chris@1 5722
Chris@1 5723 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Chris@1 5724 lt_cv_deplibs_check_method=pass_all
Chris@1 5725 ;;
Chris@1 5726
Chris@1 5727 sysv4 | sysv4.3*)
Chris@1 5728 case $host_vendor in
Chris@1 5729 motorola)
Chris@1 5730 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@1 5731 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
Chris@1 5732 ;;
Chris@1 5733 ncr)
Chris@1 5734 lt_cv_deplibs_check_method=pass_all
Chris@1 5735 ;;
Chris@1 5736 sequent)
Chris@1 5737 lt_cv_file_magic_cmd='/bin/file'
Chris@1 5738 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
Chris@1 5739 ;;
Chris@1 5740 sni)
Chris@1 5741 lt_cv_file_magic_cmd='/bin/file'
Chris@1 5742 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
Chris@1 5743 lt_cv_file_magic_test_file=/lib/libc.so
Chris@1 5744 ;;
Chris@1 5745 siemens)
Chris@1 5746 lt_cv_deplibs_check_method=pass_all
Chris@1 5747 ;;
Chris@1 5748 pc)
Chris@1 5749 lt_cv_deplibs_check_method=pass_all
Chris@1 5750 ;;
Chris@1 5751 esac
Chris@1 5752 ;;
Chris@1 5753
Chris@1 5754 tpf*)
Chris@1 5755 lt_cv_deplibs_check_method=pass_all
Chris@1 5756 ;;
Chris@1 5757 esac
Chris@1 5758
Chris@1 5759 fi
Chris@1 5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
Chris@1 5761 $as_echo "$lt_cv_deplibs_check_method" >&6; }
Chris@1 5762
Chris@1 5763 file_magic_glob=
Chris@1 5764 want_nocaseglob=no
Chris@1 5765 if test "$build" = "$host"; then
Chris@1 5766 case $host_os in
Chris@1 5767 mingw* | pw32*)
Chris@1 5768 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
Chris@1 5769 want_nocaseglob=yes
Chris@1 5770 else
Chris@1 5771 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
Chris@1 5772 fi
Chris@1 5773 ;;
Chris@1 5774 esac
Chris@1 5775 fi
Chris@1 5776
Chris@1 5777 file_magic_cmd=$lt_cv_file_magic_cmd
Chris@1 5778 deplibs_check_method=$lt_cv_deplibs_check_method
Chris@1 5779 test -z "$deplibs_check_method" && deplibs_check_method=unknown
Chris@1 5780
Chris@1 5781
Chris@1 5782
Chris@1 5783
Chris@1 5784
Chris@1 5785
Chris@1 5786
Chris@1 5787
Chris@1 5788
Chris@1 5789
Chris@1 5790
Chris@1 5791
Chris@1 5792
Chris@1 5793
Chris@1 5794
Chris@1 5795
Chris@1 5796
Chris@1 5797
Chris@1 5798
Chris@1 5799
Chris@1 5800
Chris@1 5801
Chris@1 5802 if test -n "$ac_tool_prefix"; then
Chris@1 5803 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
Chris@1 5804 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Chris@1 5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 5806 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 5807 if ${ac_cv_prog_DLLTOOL+:} false; then :
Chris@1 5808 $as_echo_n "(cached) " >&6
Chris@1 5809 else
Chris@1 5810 if test -n "$DLLTOOL"; then
Chris@1 5811 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
Chris@1 5812 else
Chris@1 5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 5814 for as_dir in $PATH
Chris@1 5815 do
Chris@1 5816 IFS=$as_save_IFS
Chris@1 5817 test -z "$as_dir" && as_dir=.
Chris@1 5818 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 5819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 5820 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
Chris@1 5821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 5822 break 2
Chris@1 5823 fi
Chris@1 5824 done
Chris@1 5825 done
Chris@1 5826 IFS=$as_save_IFS
Chris@1 5827
Chris@1 5828 fi
Chris@1 5829 fi
Chris@1 5830 DLLTOOL=$ac_cv_prog_DLLTOOL
Chris@1 5831 if test -n "$DLLTOOL"; then
Chris@1 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
Chris@1 5833 $as_echo "$DLLTOOL" >&6; }
Chris@1 5834 else
Chris@1 5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 5836 $as_echo "no" >&6; }
Chris@1 5837 fi
Chris@1 5838
Chris@1 5839
Chris@1 5840 fi
Chris@1 5841 if test -z "$ac_cv_prog_DLLTOOL"; then
Chris@1 5842 ac_ct_DLLTOOL=$DLLTOOL
Chris@1 5843 # Extract the first word of "dlltool", so it can be a program name with args.
Chris@1 5844 set dummy dlltool; ac_word=$2
Chris@1 5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 5846 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 5847 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
Chris@1 5848 $as_echo_n "(cached) " >&6
Chris@1 5849 else
Chris@1 5850 if test -n "$ac_ct_DLLTOOL"; then
Chris@1 5851 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
Chris@1 5852 else
Chris@1 5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 5854 for as_dir in $PATH
Chris@1 5855 do
Chris@1 5856 IFS=$as_save_IFS
Chris@1 5857 test -z "$as_dir" && as_dir=.
Chris@1 5858 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 5859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 5860 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
Chris@1 5861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 5862 break 2
Chris@1 5863 fi
Chris@1 5864 done
Chris@1 5865 done
Chris@1 5866 IFS=$as_save_IFS
Chris@1 5867
Chris@1 5868 fi
Chris@1 5869 fi
Chris@1 5870 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
Chris@1 5871 if test -n "$ac_ct_DLLTOOL"; then
Chris@1 5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
Chris@1 5873 $as_echo "$ac_ct_DLLTOOL" >&6; }
Chris@1 5874 else
Chris@1 5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 5876 $as_echo "no" >&6; }
Chris@1 5877 fi
Chris@1 5878
Chris@1 5879 if test "x$ac_ct_DLLTOOL" = x; then
Chris@1 5880 DLLTOOL="false"
Chris@1 5881 else
Chris@1 5882 case $cross_compiling:$ac_tool_warned in
Chris@1 5883 yes:)
Chris@1 5884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 5885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 5886 ac_tool_warned=yes ;;
Chris@1 5887 esac
Chris@1 5888 DLLTOOL=$ac_ct_DLLTOOL
Chris@1 5889 fi
Chris@1 5890 else
Chris@1 5891 DLLTOOL="$ac_cv_prog_DLLTOOL"
Chris@1 5892 fi
Chris@1 5893
Chris@1 5894 test -z "$DLLTOOL" && DLLTOOL=dlltool
Chris@1 5895
Chris@1 5896
Chris@1 5897
Chris@1 5898
Chris@1 5899
Chris@1 5900
Chris@1 5901
Chris@1 5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
Chris@1 5903 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
Chris@1 5904 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
Chris@1 5905 $as_echo_n "(cached) " >&6
Chris@1 5906 else
Chris@1 5907 lt_cv_sharedlib_from_linklib_cmd='unknown'
Chris@1 5908
Chris@1 5909 case $host_os in
Chris@1 5910 cygwin* | mingw* | pw32* | cegcc*)
Chris@1 5911 # two different shell functions defined in ltmain.sh
Chris@1 5912 # decide which to use based on capabilities of $DLLTOOL
Chris@1 5913 case `$DLLTOOL --help 2>&1` in
Chris@1 5914 *--identify-strict*)
Chris@1 5915 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
Chris@1 5916 ;;
Chris@1 5917 *)
Chris@1 5918 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
Chris@1 5919 ;;
Chris@1 5920 esac
Chris@1 5921 ;;
Chris@1 5922 *)
Chris@1 5923 # fallback: assume linklib IS sharedlib
Chris@1 5924 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
Chris@1 5925 ;;
Chris@1 5926 esac
Chris@1 5927
Chris@1 5928 fi
Chris@1 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
Chris@1 5930 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
Chris@1 5931 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
Chris@1 5932 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
Chris@1 5933
Chris@1 5934
Chris@1 5935
Chris@1 5936
Chris@1 5937
Chris@1 5938
Chris@1 5939
Chris@1 5940 if test -n "$ac_tool_prefix"; then
Chris@1 5941 for ac_prog in ar
Chris@1 5942 do
Chris@1 5943 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@1 5944 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@1 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 5946 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 5947 if ${ac_cv_prog_AR+:} false; then :
Chris@1 5948 $as_echo_n "(cached) " >&6
Chris@1 5949 else
Chris@1 5950 if test -n "$AR"; then
Chris@1 5951 ac_cv_prog_AR="$AR" # Let the user override the test.
Chris@1 5952 else
Chris@1 5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 5954 for as_dir in $PATH
Chris@1 5955 do
Chris@1 5956 IFS=$as_save_IFS
Chris@1 5957 test -z "$as_dir" && as_dir=.
Chris@1 5958 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 5960 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Chris@1 5961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 5962 break 2
Chris@1 5963 fi
Chris@1 5964 done
Chris@1 5965 done
Chris@1 5966 IFS=$as_save_IFS
Chris@1 5967
Chris@1 5968 fi
Chris@1 5969 fi
Chris@1 5970 AR=$ac_cv_prog_AR
Chris@1 5971 if test -n "$AR"; then
Chris@1 5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Chris@1 5973 $as_echo "$AR" >&6; }
Chris@1 5974 else
Chris@1 5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 5976 $as_echo "no" >&6; }
Chris@1 5977 fi
Chris@1 5978
Chris@1 5979
Chris@1 5980 test -n "$AR" && break
Chris@1 5981 done
Chris@1 5982 fi
Chris@1 5983 if test -z "$AR"; then
Chris@1 5984 ac_ct_AR=$AR
Chris@1 5985 for ac_prog in ar
Chris@1 5986 do
Chris@1 5987 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@1 5988 set dummy $ac_prog; ac_word=$2
Chris@1 5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 5990 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 5991 if ${ac_cv_prog_ac_ct_AR+:} false; then :
Chris@1 5992 $as_echo_n "(cached) " >&6
Chris@1 5993 else
Chris@1 5994 if test -n "$ac_ct_AR"; then
Chris@1 5995 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Chris@1 5996 else
Chris@1 5997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 5998 for as_dir in $PATH
Chris@1 5999 do
Chris@1 6000 IFS=$as_save_IFS
Chris@1 6001 test -z "$as_dir" && as_dir=.
Chris@1 6002 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 6003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 6004 ac_cv_prog_ac_ct_AR="$ac_prog"
Chris@1 6005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 6006 break 2
Chris@1 6007 fi
Chris@1 6008 done
Chris@1 6009 done
Chris@1 6010 IFS=$as_save_IFS
Chris@1 6011
Chris@1 6012 fi
Chris@1 6013 fi
Chris@1 6014 ac_ct_AR=$ac_cv_prog_ac_ct_AR
Chris@1 6015 if test -n "$ac_ct_AR"; then
Chris@1 6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Chris@1 6017 $as_echo "$ac_ct_AR" >&6; }
Chris@1 6018 else
Chris@1 6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 6020 $as_echo "no" >&6; }
Chris@1 6021 fi
Chris@1 6022
Chris@1 6023
Chris@1 6024 test -n "$ac_ct_AR" && break
Chris@1 6025 done
Chris@1 6026
Chris@1 6027 if test "x$ac_ct_AR" = x; then
Chris@1 6028 AR="false"
Chris@1 6029 else
Chris@1 6030 case $cross_compiling:$ac_tool_warned in
Chris@1 6031 yes:)
Chris@1 6032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 6033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 6034 ac_tool_warned=yes ;;
Chris@1 6035 esac
Chris@1 6036 AR=$ac_ct_AR
Chris@1 6037 fi
Chris@1 6038 fi
Chris@1 6039
Chris@1 6040 : ${AR=ar}
Chris@1 6041 : ${AR_FLAGS=cru}
Chris@1 6042
Chris@1 6043
Chris@1 6044
Chris@1 6045
Chris@1 6046
Chris@1 6047
Chris@1 6048
Chris@1 6049
Chris@1 6050
Chris@1 6051
Chris@1 6052
Chris@1 6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
Chris@1 6054 $as_echo_n "checking for archiver @FILE support... " >&6; }
Chris@1 6055 if ${lt_cv_ar_at_file+:} false; then :
Chris@1 6056 $as_echo_n "(cached) " >&6
Chris@1 6057 else
Chris@1 6058 lt_cv_ar_at_file=no
Chris@1 6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 6060 /* end confdefs.h. */
Chris@1 6061
Chris@1 6062 int
Chris@1 6063 main ()
Chris@1 6064 {
Chris@1 6065
Chris@1 6066 ;
Chris@1 6067 return 0;
Chris@1 6068 }
Chris@1 6069 _ACEOF
Chris@1 6070 if ac_fn_c_try_compile "$LINENO"; then :
Chris@1 6071 echo conftest.$ac_objext > conftest.lst
Chris@1 6072 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
Chris@1 6073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
Chris@1 6074 (eval $lt_ar_try) 2>&5
Chris@1 6075 ac_status=$?
Chris@1 6076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 6077 test $ac_status = 0; }
Chris@1 6078 if test "$ac_status" -eq 0; then
Chris@1 6079 # Ensure the archiver fails upon bogus file names.
Chris@1 6080 rm -f conftest.$ac_objext libconftest.a
Chris@1 6081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
Chris@1 6082 (eval $lt_ar_try) 2>&5
Chris@1 6083 ac_status=$?
Chris@1 6084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 6085 test $ac_status = 0; }
Chris@1 6086 if test "$ac_status" -ne 0; then
Chris@1 6087 lt_cv_ar_at_file=@
Chris@1 6088 fi
Chris@1 6089 fi
Chris@1 6090 rm -f conftest.* libconftest.a
Chris@1 6091
Chris@1 6092 fi
Chris@1 6093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@1 6094
Chris@1 6095 fi
Chris@1 6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
Chris@1 6097 $as_echo "$lt_cv_ar_at_file" >&6; }
Chris@1 6098
Chris@1 6099 if test "x$lt_cv_ar_at_file" = xno; then
Chris@1 6100 archiver_list_spec=
Chris@1 6101 else
Chris@1 6102 archiver_list_spec=$lt_cv_ar_at_file
Chris@1 6103 fi
Chris@1 6104
Chris@1 6105
Chris@1 6106
Chris@1 6107
Chris@1 6108
Chris@1 6109
Chris@1 6110
Chris@1 6111 if test -n "$ac_tool_prefix"; then
Chris@1 6112 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
Chris@1 6113 set dummy ${ac_tool_prefix}strip; ac_word=$2
Chris@1 6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 6115 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 6116 if ${ac_cv_prog_STRIP+:} false; then :
Chris@1 6117 $as_echo_n "(cached) " >&6
Chris@1 6118 else
Chris@1 6119 if test -n "$STRIP"; then
Chris@1 6120 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
Chris@1 6121 else
Chris@1 6122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 6123 for as_dir in $PATH
Chris@1 6124 do
Chris@1 6125 IFS=$as_save_IFS
Chris@1 6126 test -z "$as_dir" && as_dir=.
Chris@1 6127 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 6128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 6129 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Chris@1 6130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 6131 break 2
Chris@1 6132 fi
Chris@1 6133 done
Chris@1 6134 done
Chris@1 6135 IFS=$as_save_IFS
Chris@1 6136
Chris@1 6137 fi
Chris@1 6138 fi
Chris@1 6139 STRIP=$ac_cv_prog_STRIP
Chris@1 6140 if test -n "$STRIP"; then
Chris@1 6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Chris@1 6142 $as_echo "$STRIP" >&6; }
Chris@1 6143 else
Chris@1 6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 6145 $as_echo "no" >&6; }
Chris@1 6146 fi
Chris@1 6147
Chris@1 6148
Chris@1 6149 fi
Chris@1 6150 if test -z "$ac_cv_prog_STRIP"; then
Chris@1 6151 ac_ct_STRIP=$STRIP
Chris@1 6152 # Extract the first word of "strip", so it can be a program name with args.
Chris@1 6153 set dummy strip; ac_word=$2
Chris@1 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 6155 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 6156 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Chris@1 6157 $as_echo_n "(cached) " >&6
Chris@1 6158 else
Chris@1 6159 if test -n "$ac_ct_STRIP"; then
Chris@1 6160 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Chris@1 6161 else
Chris@1 6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 6163 for as_dir in $PATH
Chris@1 6164 do
Chris@1 6165 IFS=$as_save_IFS
Chris@1 6166 test -z "$as_dir" && as_dir=.
Chris@1 6167 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 6168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 6169 ac_cv_prog_ac_ct_STRIP="strip"
Chris@1 6170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 6171 break 2
Chris@1 6172 fi
Chris@1 6173 done
Chris@1 6174 done
Chris@1 6175 IFS=$as_save_IFS
Chris@1 6176
Chris@1 6177 fi
Chris@1 6178 fi
Chris@1 6179 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
Chris@1 6180 if test -n "$ac_ct_STRIP"; then
Chris@1 6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Chris@1 6182 $as_echo "$ac_ct_STRIP" >&6; }
Chris@1 6183 else
Chris@1 6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 6185 $as_echo "no" >&6; }
Chris@1 6186 fi
Chris@1 6187
Chris@1 6188 if test "x$ac_ct_STRIP" = x; then
Chris@1 6189 STRIP=":"
Chris@1 6190 else
Chris@1 6191 case $cross_compiling:$ac_tool_warned in
Chris@1 6192 yes:)
Chris@1 6193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 6194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 6195 ac_tool_warned=yes ;;
Chris@1 6196 esac
Chris@1 6197 STRIP=$ac_ct_STRIP
Chris@1 6198 fi
Chris@1 6199 else
Chris@1 6200 STRIP="$ac_cv_prog_STRIP"
Chris@1 6201 fi
Chris@1 6202
Chris@1 6203 test -z "$STRIP" && STRIP=:
Chris@1 6204
Chris@1 6205
Chris@1 6206
Chris@1 6207
Chris@1 6208
Chris@1 6209
Chris@1 6210 if test -n "$ac_tool_prefix"; then
Chris@1 6211 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
Chris@1 6212 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Chris@1 6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 6214 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 6215 if ${ac_cv_prog_RANLIB+:} false; then :
Chris@1 6216 $as_echo_n "(cached) " >&6
Chris@1 6217 else
Chris@1 6218 if test -n "$RANLIB"; then
Chris@1 6219 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
Chris@1 6220 else
Chris@1 6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 6222 for as_dir in $PATH
Chris@1 6223 do
Chris@1 6224 IFS=$as_save_IFS
Chris@1 6225 test -z "$as_dir" && as_dir=.
Chris@1 6226 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 6227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 6228 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Chris@1 6229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 6230 break 2
Chris@1 6231 fi
Chris@1 6232 done
Chris@1 6233 done
Chris@1 6234 IFS=$as_save_IFS
Chris@1 6235
Chris@1 6236 fi
Chris@1 6237 fi
Chris@1 6238 RANLIB=$ac_cv_prog_RANLIB
Chris@1 6239 if test -n "$RANLIB"; then
Chris@1 6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Chris@1 6241 $as_echo "$RANLIB" >&6; }
Chris@1 6242 else
Chris@1 6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 6244 $as_echo "no" >&6; }
Chris@1 6245 fi
Chris@1 6246
Chris@1 6247
Chris@1 6248 fi
Chris@1 6249 if test -z "$ac_cv_prog_RANLIB"; then
Chris@1 6250 ac_ct_RANLIB=$RANLIB
Chris@1 6251 # Extract the first word of "ranlib", so it can be a program name with args.
Chris@1 6252 set dummy ranlib; ac_word=$2
Chris@1 6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 6254 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 6255 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Chris@1 6256 $as_echo_n "(cached) " >&6
Chris@1 6257 else
Chris@1 6258 if test -n "$ac_ct_RANLIB"; then
Chris@1 6259 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Chris@1 6260 else
Chris@1 6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 6262 for as_dir in $PATH
Chris@1 6263 do
Chris@1 6264 IFS=$as_save_IFS
Chris@1 6265 test -z "$as_dir" && as_dir=.
Chris@1 6266 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 6267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 6268 ac_cv_prog_ac_ct_RANLIB="ranlib"
Chris@1 6269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 6270 break 2
Chris@1 6271 fi
Chris@1 6272 done
Chris@1 6273 done
Chris@1 6274 IFS=$as_save_IFS
Chris@1 6275
Chris@1 6276 fi
Chris@1 6277 fi
Chris@1 6278 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
Chris@1 6279 if test -n "$ac_ct_RANLIB"; then
Chris@1 6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Chris@1 6281 $as_echo "$ac_ct_RANLIB" >&6; }
Chris@1 6282 else
Chris@1 6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 6284 $as_echo "no" >&6; }
Chris@1 6285 fi
Chris@1 6286
Chris@1 6287 if test "x$ac_ct_RANLIB" = x; then
Chris@1 6288 RANLIB=":"
Chris@1 6289 else
Chris@1 6290 case $cross_compiling:$ac_tool_warned in
Chris@1 6291 yes:)
Chris@1 6292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 6293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 6294 ac_tool_warned=yes ;;
Chris@1 6295 esac
Chris@1 6296 RANLIB=$ac_ct_RANLIB
Chris@1 6297 fi
Chris@1 6298 else
Chris@1 6299 RANLIB="$ac_cv_prog_RANLIB"
Chris@1 6300 fi
Chris@1 6301
Chris@1 6302 test -z "$RANLIB" && RANLIB=:
Chris@1 6303
Chris@1 6304
Chris@1 6305
Chris@1 6306
Chris@1 6307
Chris@1 6308
Chris@1 6309 # Determine commands to create old-style static archives.
Chris@1 6310 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
Chris@1 6311 old_postinstall_cmds='chmod 644 $oldlib'
Chris@1 6312 old_postuninstall_cmds=
Chris@1 6313
Chris@1 6314 if test -n "$RANLIB"; then
Chris@1 6315 case $host_os in
Chris@1 6316 openbsd*)
Chris@1 6317 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
Chris@1 6318 ;;
Chris@1 6319 *)
Chris@1 6320 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
Chris@1 6321 ;;
Chris@1 6322 esac
Chris@1 6323 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
Chris@1 6324 fi
Chris@1 6325
Chris@1 6326 case $host_os in
Chris@1 6327 darwin*)
Chris@1 6328 lock_old_archive_extraction=yes ;;
Chris@1 6329 *)
Chris@1 6330 lock_old_archive_extraction=no ;;
Chris@1 6331 esac
Chris@1 6332
Chris@1 6333
Chris@1 6334
Chris@1 6335
Chris@1 6336
Chris@1 6337
Chris@1 6338
Chris@1 6339
Chris@1 6340
Chris@1 6341
Chris@1 6342
Chris@1 6343
Chris@1 6344
Chris@1 6345
Chris@1 6346
Chris@1 6347
Chris@1 6348
Chris@1 6349
Chris@1 6350
Chris@1 6351
Chris@1 6352
Chris@1 6353
Chris@1 6354
Chris@1 6355
Chris@1 6356
Chris@1 6357
Chris@1 6358
Chris@1 6359
Chris@1 6360
Chris@1 6361
Chris@1 6362
Chris@1 6363
Chris@1 6364
Chris@1 6365
Chris@1 6366
Chris@1 6367
Chris@1 6368
Chris@1 6369
Chris@1 6370
Chris@1 6371 # If no C compiler was specified, use CC.
Chris@1 6372 LTCC=${LTCC-"$CC"}
Chris@1 6373
Chris@1 6374 # If no C compiler flags were specified, use CFLAGS.
Chris@1 6375 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Chris@1 6376
Chris@1 6377 # Allow CC to be a program name with arguments.
Chris@1 6378 compiler=$CC
Chris@1 6379
Chris@1 6380
Chris@1 6381 # Check for command to grab the raw symbol name followed by C symbol from nm.
Chris@1 6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
Chris@1 6383 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Chris@1 6384 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Chris@1 6385 $as_echo_n "(cached) " >&6
Chris@1 6386 else
Chris@1 6387
Chris@1 6388 # These are sane defaults that work on at least a few old systems.
Chris@1 6389 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
Chris@1 6390
Chris@1 6391 # Character class describing NM global symbol codes.
Chris@1 6392 symcode='[BCDEGRST]'
Chris@1 6393
Chris@1 6394 # Regexp to match symbols that can be accessed directly from C.
Chris@1 6395 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
Chris@1 6396
Chris@1 6397 # Define system-specific variables.
Chris@1 6398 case $host_os in
Chris@1 6399 aix*)
Chris@1 6400 symcode='[BCDT]'
Chris@1 6401 ;;
Chris@1 6402 cygwin* | mingw* | pw32* | cegcc*)
Chris@1 6403 symcode='[ABCDGISTW]'
Chris@1 6404 ;;
Chris@1 6405 hpux*)
Chris@1 6406 if test "$host_cpu" = ia64; then
Chris@1 6407 symcode='[ABCDEGRST]'
Chris@1 6408 fi
Chris@1 6409 ;;
Chris@1 6410 irix* | nonstopux*)
Chris@1 6411 symcode='[BCDEGRST]'
Chris@1 6412 ;;
Chris@1 6413 osf*)
Chris@1 6414 symcode='[BCDEGQRST]'
Chris@1 6415 ;;
Chris@1 6416 solaris*)
Chris@1 6417 symcode='[BDRT]'
Chris@1 6418 ;;
Chris@1 6419 sco3.2v5*)
Chris@1 6420 symcode='[DT]'
Chris@1 6421 ;;
Chris@1 6422 sysv4.2uw2*)
Chris@1 6423 symcode='[DT]'
Chris@1 6424 ;;
Chris@1 6425 sysv5* | sco5v6* | unixware* | OpenUNIX*)
Chris@1 6426 symcode='[ABDT]'
Chris@1 6427 ;;
Chris@1 6428 sysv4)
Chris@1 6429 symcode='[DFNSTU]'
Chris@1 6430 ;;
Chris@1 6431 esac
Chris@1 6432
Chris@1 6433 # If we're using GNU nm, then use its standard symbol codes.
Chris@1 6434 case `$NM -V 2>&1` in
Chris@1 6435 *GNU* | *'with BFD'*)
Chris@1 6436 symcode='[ABCDGIRSTW]' ;;
Chris@1 6437 esac
Chris@1 6438
Chris@1 6439 # Transform an extracted symbol line into a proper C declaration.
Chris@1 6440 # Some systems (esp. on ia64) link data and code symbols differently,
Chris@1 6441 # so use this general approach.
Chris@1 6442 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
Chris@1 6443
Chris@1 6444 # Transform an extracted symbol line into symbol name and symbol address
Chris@1 6445 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@1 6446 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@1 6447
Chris@1 6448 # Handle CRLF in mingw tool chain
Chris@1 6449 opt_cr=
Chris@1 6450 case $build_os in
Chris@1 6451 mingw*)
Chris@1 6452 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
Chris@1 6453 ;;
Chris@1 6454 esac
Chris@1 6455
Chris@1 6456 # Try without a prefix underscore, then with it.
Chris@1 6457 for ac_symprfx in "" "_"; do
Chris@1 6458
Chris@1 6459 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
Chris@1 6460 symxfrm="\\1 $ac_symprfx\\2 \\2"
Chris@1 6461
Chris@1 6462 # Write the raw and C identifiers.
Chris@1 6463 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Chris@1 6464 # Fake it for dumpbin and say T for any non-static function
Chris@1 6465 # and D for any global variable.
Chris@1 6466 # Also find C++ and __fastcall symbols from MSVC++,
Chris@1 6467 # which start with @ or ?.
Chris@1 6468 lt_cv_sys_global_symbol_pipe="$AWK '"\
Chris@1 6469 " {last_section=section; section=\$ 3};"\
Chris@1 6470 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
Chris@1 6471 " \$ 0!~/External *\|/{next};"\
Chris@1 6472 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
Chris@1 6473 " {if(hide[section]) next};"\
Chris@1 6474 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
Chris@1 6475 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
Chris@1 6476 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
Chris@1 6477 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
Chris@1 6478 " ' prfx=^$ac_symprfx"
Chris@1 6479 else
Chris@1 6480 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
Chris@1 6481 fi
Chris@1 6482 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
Chris@1 6483
Chris@1 6484 # Check to see that the pipe works correctly.
Chris@1 6485 pipe_works=no
Chris@1 6486
Chris@1 6487 rm -f conftest*
Chris@1 6488 cat > conftest.$ac_ext <<_LT_EOF
Chris@1 6489 #ifdef __cplusplus
Chris@1 6490 extern "C" {
Chris@1 6491 #endif
Chris@1 6492 char nm_test_var;
Chris@1 6493 void nm_test_func(void);
Chris@1 6494 void nm_test_func(void){}
Chris@1 6495 #ifdef __cplusplus
Chris@1 6496 }
Chris@1 6497 #endif
Chris@1 6498 int main(){nm_test_var='a';nm_test_func();return(0);}
Chris@1 6499 _LT_EOF
Chris@1 6500
Chris@1 6501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@1 6502 (eval $ac_compile) 2>&5
Chris@1 6503 ac_status=$?
Chris@1 6504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 6505 test $ac_status = 0; }; then
Chris@1 6506 # Now try to grab the symbols.
Chris@1 6507 nlist=conftest.nm
Chris@1 6508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
Chris@1 6509 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
Chris@1 6510 ac_status=$?
Chris@1 6511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 6512 test $ac_status = 0; } && test -s "$nlist"; then
Chris@1 6513 # Try sorting and uniquifying the output.
Chris@1 6514 if sort "$nlist" | uniq > "$nlist"T; then
Chris@1 6515 mv -f "$nlist"T "$nlist"
Chris@1 6516 else
Chris@1 6517 rm -f "$nlist"T
Chris@1 6518 fi
Chris@1 6519
Chris@1 6520 # Make sure that we snagged all the symbols we need.
Chris@1 6521 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
Chris@1 6522 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
Chris@1 6523 cat <<_LT_EOF > conftest.$ac_ext
Chris@1 6524 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
Chris@1 6525 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
Chris@1 6526 /* DATA imports from DLLs on WIN32 con't be const, because runtime
Chris@1 6527 relocations are performed -- see ld's documentation on pseudo-relocs. */
Chris@1 6528 # define LT_DLSYM_CONST
Chris@1 6529 #elif defined(__osf__)
Chris@1 6530 /* This system does not cope well with relocations in const data. */
Chris@1 6531 # define LT_DLSYM_CONST
Chris@1 6532 #else
Chris@1 6533 # define LT_DLSYM_CONST const
Chris@1 6534 #endif
Chris@1 6535
Chris@1 6536 #ifdef __cplusplus
Chris@1 6537 extern "C" {
Chris@1 6538 #endif
Chris@1 6539
Chris@1 6540 _LT_EOF
Chris@1 6541 # Now generate the symbol file.
Chris@1 6542 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
Chris@1 6543
Chris@1 6544 cat <<_LT_EOF >> conftest.$ac_ext
Chris@1 6545
Chris@1 6546 /* The mapping between symbol names and symbols. */
Chris@1 6547 LT_DLSYM_CONST struct {
Chris@1 6548 const char *name;
Chris@1 6549 void *address;
Chris@1 6550 }
Chris@1 6551 lt__PROGRAM__LTX_preloaded_symbols[] =
Chris@1 6552 {
Chris@1 6553 { "@PROGRAM@", (void *) 0 },
Chris@1 6554 _LT_EOF
Chris@1 6555 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
Chris@1 6556 cat <<\_LT_EOF >> conftest.$ac_ext
Chris@1 6557 {0, (void *) 0}
Chris@1 6558 };
Chris@1 6559
Chris@1 6560 /* This works around a problem in FreeBSD linker */
Chris@1 6561 #ifdef FREEBSD_WORKAROUND
Chris@1 6562 static const void *lt_preloaded_setup() {
Chris@1 6563 return lt__PROGRAM__LTX_preloaded_symbols;
Chris@1 6564 }
Chris@1 6565 #endif
Chris@1 6566
Chris@1 6567 #ifdef __cplusplus
Chris@1 6568 }
Chris@1 6569 #endif
Chris@1 6570 _LT_EOF
Chris@1 6571 # Now try linking the two files.
Chris@1 6572 mv conftest.$ac_objext conftstm.$ac_objext
Chris@1 6573 lt_globsym_save_LIBS=$LIBS
Chris@1 6574 lt_globsym_save_CFLAGS=$CFLAGS
Chris@1 6575 LIBS="conftstm.$ac_objext"
Chris@1 6576 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Chris@1 6577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Chris@1 6578 (eval $ac_link) 2>&5
Chris@1 6579 ac_status=$?
Chris@1 6580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 6581 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
Chris@1 6582 pipe_works=yes
Chris@1 6583 fi
Chris@1 6584 LIBS=$lt_globsym_save_LIBS
Chris@1 6585 CFLAGS=$lt_globsym_save_CFLAGS
Chris@1 6586 else
Chris@1 6587 echo "cannot find nm_test_func in $nlist" >&5
Chris@1 6588 fi
Chris@1 6589 else
Chris@1 6590 echo "cannot find nm_test_var in $nlist" >&5
Chris@1 6591 fi
Chris@1 6592 else
Chris@1 6593 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
Chris@1 6594 fi
Chris@1 6595 else
Chris@1 6596 echo "$progname: failed program was:" >&5
Chris@1 6597 cat conftest.$ac_ext >&5
Chris@1 6598 fi
Chris@1 6599 rm -rf conftest* conftst*
Chris@1 6600
Chris@1 6601 # Do not use the global_symbol_pipe unless it works.
Chris@1 6602 if test "$pipe_works" = yes; then
Chris@1 6603 break
Chris@1 6604 else
Chris@1 6605 lt_cv_sys_global_symbol_pipe=
Chris@1 6606 fi
Chris@1 6607 done
Chris@1 6608
Chris@1 6609 fi
Chris@1 6610
Chris@1 6611 if test -z "$lt_cv_sys_global_symbol_pipe"; then
Chris@1 6612 lt_cv_sys_global_symbol_to_cdecl=
Chris@1 6613 fi
Chris@1 6614 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Chris@1 6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
Chris@1 6616 $as_echo "failed" >&6; }
Chris@1 6617 else
Chris@1 6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
Chris@1 6619 $as_echo "ok" >&6; }
Chris@1 6620 fi
Chris@1 6621
Chris@1 6622 # Response file support.
Chris@1 6623 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Chris@1 6624 nm_file_list_spec='@'
Chris@1 6625 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
Chris@1 6626 nm_file_list_spec='@'
Chris@1 6627 fi
Chris@1 6628
Chris@1 6629
Chris@1 6630
Chris@1 6631
Chris@1 6632
Chris@1 6633
Chris@1 6634
Chris@1 6635
Chris@1 6636
Chris@1 6637
Chris@1 6638
Chris@1 6639
Chris@1 6640
Chris@1 6641
Chris@1 6642
Chris@1 6643
Chris@1 6644
Chris@1 6645
Chris@1 6646
Chris@1 6647
Chris@1 6648
Chris@1 6649
Chris@1 6650
Chris@1 6651
Chris@1 6652
Chris@1 6653
Chris@1 6654
Chris@1 6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
Chris@1 6656 $as_echo_n "checking for sysroot... " >&6; }
Chris@1 6657
Chris@1 6658 # Check whether --with-sysroot was given.
Chris@1 6659 if test "${with_sysroot+set}" = set; then :
Chris@1 6660 withval=$with_sysroot;
Chris@1 6661 else
Chris@1 6662 with_sysroot=no
Chris@1 6663 fi
Chris@1 6664
Chris@1 6665
Chris@1 6666 lt_sysroot=
Chris@1 6667 case ${with_sysroot} in #(
Chris@1 6668 yes)
Chris@1 6669 if test "$GCC" = yes; then
Chris@1 6670 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
Chris@1 6671 fi
Chris@1 6672 ;; #(
Chris@1 6673 /*)
Chris@1 6674 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
Chris@1 6675 ;; #(
Chris@1 6676 no|'')
Chris@1 6677 ;; #(
Chris@1 6678 *)
Chris@1 6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
Chris@1 6680 $as_echo "${with_sysroot}" >&6; }
Chris@1 6681 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
Chris@1 6682 ;;
Chris@1 6683 esac
Chris@1 6684
Chris@1 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
Chris@1 6686 $as_echo "${lt_sysroot:-no}" >&6; }
Chris@1 6687
Chris@1 6688
Chris@1 6689
Chris@1 6690
Chris@1 6691
Chris@1 6692 # Check whether --enable-libtool-lock was given.
Chris@1 6693 if test "${enable_libtool_lock+set}" = set; then :
Chris@1 6694 enableval=$enable_libtool_lock;
Chris@1 6695 fi
Chris@1 6696
Chris@1 6697 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Chris@1 6698
Chris@1 6699 # Some flags need to be propagated to the compiler or linker for good
Chris@1 6700 # libtool support.
Chris@1 6701 case $host in
Chris@1 6702 ia64-*-hpux*)
Chris@1 6703 # Find out which ABI we are using.
Chris@1 6704 echo 'int i;' > conftest.$ac_ext
Chris@1 6705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@1 6706 (eval $ac_compile) 2>&5
Chris@1 6707 ac_status=$?
Chris@1 6708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 6709 test $ac_status = 0; }; then
Chris@1 6710 case `/usr/bin/file conftest.$ac_objext` in
Chris@1 6711 *ELF-32*)
Chris@1 6712 HPUX_IA64_MODE="32"
Chris@1 6713 ;;
Chris@1 6714 *ELF-64*)
Chris@1 6715 HPUX_IA64_MODE="64"
Chris@1 6716 ;;
Chris@1 6717 esac
Chris@1 6718 fi
Chris@1 6719 rm -rf conftest*
Chris@1 6720 ;;
Chris@1 6721 *-*-irix6*)
Chris@1 6722 # Find out which ABI we are using.
Chris@1 6723 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
Chris@1 6724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@1 6725 (eval $ac_compile) 2>&5
Chris@1 6726 ac_status=$?
Chris@1 6727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 6728 test $ac_status = 0; }; then
Chris@1 6729 if test "$lt_cv_prog_gnu_ld" = yes; then
Chris@1 6730 case `/usr/bin/file conftest.$ac_objext` in
Chris@1 6731 *32-bit*)
Chris@1 6732 LD="${LD-ld} -melf32bsmip"
Chris@1 6733 ;;
Chris@1 6734 *N32*)
Chris@1 6735 LD="${LD-ld} -melf32bmipn32"
Chris@1 6736 ;;
Chris@1 6737 *64-bit*)
Chris@1 6738 LD="${LD-ld} -melf64bmip"
Chris@1 6739 ;;
Chris@1 6740 esac
Chris@1 6741 else
Chris@1 6742 case `/usr/bin/file conftest.$ac_objext` in
Chris@1 6743 *32-bit*)
Chris@1 6744 LD="${LD-ld} -32"
Chris@1 6745 ;;
Chris@1 6746 *N32*)
Chris@1 6747 LD="${LD-ld} -n32"
Chris@1 6748 ;;
Chris@1 6749 *64-bit*)
Chris@1 6750 LD="${LD-ld} -64"
Chris@1 6751 ;;
Chris@1 6752 esac
Chris@1 6753 fi
Chris@1 6754 fi
Chris@1 6755 rm -rf conftest*
Chris@1 6756 ;;
Chris@1 6757
Chris@1 6758 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
Chris@1 6759 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Chris@1 6760 # Find out which ABI we are using.
Chris@1 6761 echo 'int i;' > conftest.$ac_ext
Chris@1 6762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@1 6763 (eval $ac_compile) 2>&5
Chris@1 6764 ac_status=$?
Chris@1 6765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 6766 test $ac_status = 0; }; then
Chris@1 6767 case `/usr/bin/file conftest.o` in
Chris@1 6768 *32-bit*)
Chris@1 6769 case $host in
Chris@1 6770 x86_64-*kfreebsd*-gnu)
Chris@1 6771 LD="${LD-ld} -m elf_i386_fbsd"
Chris@1 6772 ;;
Chris@1 6773 x86_64-*linux*)
Chris@1 6774 LD="${LD-ld} -m elf_i386"
Chris@1 6775 ;;
Chris@1 6776 ppc64-*linux*|powerpc64-*linux*)
Chris@1 6777 LD="${LD-ld} -m elf32ppclinux"
Chris@1 6778 ;;
Chris@1 6779 s390x-*linux*)
Chris@1 6780 LD="${LD-ld} -m elf_s390"
Chris@1 6781 ;;
Chris@1 6782 sparc64-*linux*)
Chris@1 6783 LD="${LD-ld} -m elf32_sparc"
Chris@1 6784 ;;
Chris@1 6785 esac
Chris@1 6786 ;;
Chris@1 6787 *64-bit*)
Chris@1 6788 case $host in
Chris@1 6789 x86_64-*kfreebsd*-gnu)
Chris@1 6790 LD="${LD-ld} -m elf_x86_64_fbsd"
Chris@1 6791 ;;
Chris@1 6792 x86_64-*linux*)
Chris@1 6793 LD="${LD-ld} -m elf_x86_64"
Chris@1 6794 ;;
Chris@1 6795 ppc*-*linux*|powerpc*-*linux*)
Chris@1 6796 LD="${LD-ld} -m elf64ppc"
Chris@1 6797 ;;
Chris@1 6798 s390*-*linux*|s390*-*tpf*)
Chris@1 6799 LD="${LD-ld} -m elf64_s390"
Chris@1 6800 ;;
Chris@1 6801 sparc*-*linux*)
Chris@1 6802 LD="${LD-ld} -m elf64_sparc"
Chris@1 6803 ;;
Chris@1 6804 esac
Chris@1 6805 ;;
Chris@1 6806 esac
Chris@1 6807 fi
Chris@1 6808 rm -rf conftest*
Chris@1 6809 ;;
Chris@1 6810
Chris@1 6811 *-*-sco3.2v5*)
Chris@1 6812 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
Chris@1 6813 SAVE_CFLAGS="$CFLAGS"
Chris@1 6814 CFLAGS="$CFLAGS -belf"
Chris@1 6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
Chris@1 6816 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Chris@1 6817 if ${lt_cv_cc_needs_belf+:} false; then :
Chris@1 6818 $as_echo_n "(cached) " >&6
Chris@1 6819 else
Chris@1 6820 ac_ext=c
Chris@1 6821 ac_cpp='$CPP $CPPFLAGS'
Chris@1 6822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@1 6823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@1 6824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@1 6825
Chris@1 6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 6827 /* end confdefs.h. */
Chris@1 6828
Chris@1 6829 int
Chris@1 6830 main ()
Chris@1 6831 {
Chris@1 6832
Chris@1 6833 ;
Chris@1 6834 return 0;
Chris@1 6835 }
Chris@1 6836 _ACEOF
Chris@1 6837 if ac_fn_c_try_link "$LINENO"; then :
Chris@1 6838 lt_cv_cc_needs_belf=yes
Chris@1 6839 else
Chris@1 6840 lt_cv_cc_needs_belf=no
Chris@1 6841 fi
Chris@1 6842 rm -f core conftest.err conftest.$ac_objext \
Chris@1 6843 conftest$ac_exeext conftest.$ac_ext
Chris@1 6844 ac_ext=c
Chris@1 6845 ac_cpp='$CPP $CPPFLAGS'
Chris@1 6846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@1 6847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@1 6848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@1 6849
Chris@1 6850 fi
Chris@1 6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
Chris@1 6852 $as_echo "$lt_cv_cc_needs_belf" >&6; }
Chris@1 6853 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
Chris@1 6854 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
Chris@1 6855 CFLAGS="$SAVE_CFLAGS"
Chris@1 6856 fi
Chris@1 6857 ;;
Chris@1 6858 sparc*-*solaris*)
Chris@1 6859 # Find out which ABI we are using.
Chris@1 6860 echo 'int i;' > conftest.$ac_ext
Chris@1 6861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@1 6862 (eval $ac_compile) 2>&5
Chris@1 6863 ac_status=$?
Chris@1 6864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 6865 test $ac_status = 0; }; then
Chris@1 6866 case `/usr/bin/file conftest.o` in
Chris@1 6867 *64-bit*)
Chris@1 6868 case $lt_cv_prog_gnu_ld in
Chris@1 6869 yes*) LD="${LD-ld} -m elf64_sparc" ;;
Chris@1 6870 *)
Chris@1 6871 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
Chris@1 6872 LD="${LD-ld} -64"
Chris@1 6873 fi
Chris@1 6874 ;;
Chris@1 6875 esac
Chris@1 6876 ;;
Chris@1 6877 esac
Chris@1 6878 fi
Chris@1 6879 rm -rf conftest*
Chris@1 6880 ;;
Chris@1 6881 esac
Chris@1 6882
Chris@1 6883 need_locks="$enable_libtool_lock"
Chris@1 6884
Chris@1 6885 if test -n "$ac_tool_prefix"; then
Chris@1 6886 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
Chris@1 6887 set dummy ${ac_tool_prefix}mt; ac_word=$2
Chris@1 6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 6889 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 6890 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
Chris@1 6891 $as_echo_n "(cached) " >&6
Chris@1 6892 else
Chris@1 6893 if test -n "$MANIFEST_TOOL"; then
Chris@1 6894 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
Chris@1 6895 else
Chris@1 6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 6897 for as_dir in $PATH
Chris@1 6898 do
Chris@1 6899 IFS=$as_save_IFS
Chris@1 6900 test -z "$as_dir" && as_dir=.
Chris@1 6901 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 6902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 6903 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
Chris@1 6904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 6905 break 2
Chris@1 6906 fi
Chris@1 6907 done
Chris@1 6908 done
Chris@1 6909 IFS=$as_save_IFS
Chris@1 6910
Chris@1 6911 fi
Chris@1 6912 fi
Chris@1 6913 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
Chris@1 6914 if test -n "$MANIFEST_TOOL"; then
Chris@1 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
Chris@1 6916 $as_echo "$MANIFEST_TOOL" >&6; }
Chris@1 6917 else
Chris@1 6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 6919 $as_echo "no" >&6; }
Chris@1 6920 fi
Chris@1 6921
Chris@1 6922
Chris@1 6923 fi
Chris@1 6924 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
Chris@1 6925 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
Chris@1 6926 # Extract the first word of "mt", so it can be a program name with args.
Chris@1 6927 set dummy mt; ac_word=$2
Chris@1 6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 6929 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 6930 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
Chris@1 6931 $as_echo_n "(cached) " >&6
Chris@1 6932 else
Chris@1 6933 if test -n "$ac_ct_MANIFEST_TOOL"; then
Chris@1 6934 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
Chris@1 6935 else
Chris@1 6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 6937 for as_dir in $PATH
Chris@1 6938 do
Chris@1 6939 IFS=$as_save_IFS
Chris@1 6940 test -z "$as_dir" && as_dir=.
Chris@1 6941 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 6942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 6943 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
Chris@1 6944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 6945 break 2
Chris@1 6946 fi
Chris@1 6947 done
Chris@1 6948 done
Chris@1 6949 IFS=$as_save_IFS
Chris@1 6950
Chris@1 6951 fi
Chris@1 6952 fi
Chris@1 6953 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
Chris@1 6954 if test -n "$ac_ct_MANIFEST_TOOL"; then
Chris@1 6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
Chris@1 6956 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
Chris@1 6957 else
Chris@1 6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 6959 $as_echo "no" >&6; }
Chris@1 6960 fi
Chris@1 6961
Chris@1 6962 if test "x$ac_ct_MANIFEST_TOOL" = x; then
Chris@1 6963 MANIFEST_TOOL=":"
Chris@1 6964 else
Chris@1 6965 case $cross_compiling:$ac_tool_warned in
Chris@1 6966 yes:)
Chris@1 6967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 6968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 6969 ac_tool_warned=yes ;;
Chris@1 6970 esac
Chris@1 6971 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
Chris@1 6972 fi
Chris@1 6973 else
Chris@1 6974 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
Chris@1 6975 fi
Chris@1 6976
Chris@1 6977 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
Chris@1 6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
Chris@1 6979 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
Chris@1 6980 if ${lt_cv_path_mainfest_tool+:} false; then :
Chris@1 6981 $as_echo_n "(cached) " >&6
Chris@1 6982 else
Chris@1 6983 lt_cv_path_mainfest_tool=no
Chris@1 6984 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
Chris@1 6985 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
Chris@1 6986 cat conftest.err >&5
Chris@1 6987 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
Chris@1 6988 lt_cv_path_mainfest_tool=yes
Chris@1 6989 fi
Chris@1 6990 rm -f conftest*
Chris@1 6991 fi
Chris@1 6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
Chris@1 6993 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
Chris@1 6994 if test "x$lt_cv_path_mainfest_tool" != xyes; then
Chris@1 6995 MANIFEST_TOOL=:
Chris@1 6996 fi
Chris@1 6997
Chris@1 6998
Chris@1 6999
Chris@1 7000
Chris@1 7001
Chris@1 7002
Chris@1 7003 case $host_os in
Chris@1 7004 rhapsody* | darwin*)
Chris@1 7005 if test -n "$ac_tool_prefix"; then
Chris@1 7006 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
Chris@1 7007 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Chris@1 7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 7009 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 7010 if ${ac_cv_prog_DSYMUTIL+:} false; then :
Chris@1 7011 $as_echo_n "(cached) " >&6
Chris@1 7012 else
Chris@1 7013 if test -n "$DSYMUTIL"; then
Chris@1 7014 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
Chris@1 7015 else
Chris@1 7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 7017 for as_dir in $PATH
Chris@1 7018 do
Chris@1 7019 IFS=$as_save_IFS
Chris@1 7020 test -z "$as_dir" && as_dir=.
Chris@1 7021 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 7022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 7023 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Chris@1 7024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 7025 break 2
Chris@1 7026 fi
Chris@1 7027 done
Chris@1 7028 done
Chris@1 7029 IFS=$as_save_IFS
Chris@1 7030
Chris@1 7031 fi
Chris@1 7032 fi
Chris@1 7033 DSYMUTIL=$ac_cv_prog_DSYMUTIL
Chris@1 7034 if test -n "$DSYMUTIL"; then
Chris@1 7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
Chris@1 7036 $as_echo "$DSYMUTIL" >&6; }
Chris@1 7037 else
Chris@1 7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 7039 $as_echo "no" >&6; }
Chris@1 7040 fi
Chris@1 7041
Chris@1 7042
Chris@1 7043 fi
Chris@1 7044 if test -z "$ac_cv_prog_DSYMUTIL"; then
Chris@1 7045 ac_ct_DSYMUTIL=$DSYMUTIL
Chris@1 7046 # Extract the first word of "dsymutil", so it can be a program name with args.
Chris@1 7047 set dummy dsymutil; ac_word=$2
Chris@1 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 7049 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 7050 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Chris@1 7051 $as_echo_n "(cached) " >&6
Chris@1 7052 else
Chris@1 7053 if test -n "$ac_ct_DSYMUTIL"; then
Chris@1 7054 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
Chris@1 7055 else
Chris@1 7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 7057 for as_dir in $PATH
Chris@1 7058 do
Chris@1 7059 IFS=$as_save_IFS
Chris@1 7060 test -z "$as_dir" && as_dir=.
Chris@1 7061 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 7062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 7063 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Chris@1 7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 7065 break 2
Chris@1 7066 fi
Chris@1 7067 done
Chris@1 7068 done
Chris@1 7069 IFS=$as_save_IFS
Chris@1 7070
Chris@1 7071 fi
Chris@1 7072 fi
Chris@1 7073 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
Chris@1 7074 if test -n "$ac_ct_DSYMUTIL"; then
Chris@1 7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
Chris@1 7076 $as_echo "$ac_ct_DSYMUTIL" >&6; }
Chris@1 7077 else
Chris@1 7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 7079 $as_echo "no" >&6; }
Chris@1 7080 fi
Chris@1 7081
Chris@1 7082 if test "x$ac_ct_DSYMUTIL" = x; then
Chris@1 7083 DSYMUTIL=":"
Chris@1 7084 else
Chris@1 7085 case $cross_compiling:$ac_tool_warned in
Chris@1 7086 yes:)
Chris@1 7087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 7088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 7089 ac_tool_warned=yes ;;
Chris@1 7090 esac
Chris@1 7091 DSYMUTIL=$ac_ct_DSYMUTIL
Chris@1 7092 fi
Chris@1 7093 else
Chris@1 7094 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
Chris@1 7095 fi
Chris@1 7096
Chris@1 7097 if test -n "$ac_tool_prefix"; then
Chris@1 7098 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
Chris@1 7099 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Chris@1 7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 7101 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 7102 if ${ac_cv_prog_NMEDIT+:} false; then :
Chris@1 7103 $as_echo_n "(cached) " >&6
Chris@1 7104 else
Chris@1 7105 if test -n "$NMEDIT"; then
Chris@1 7106 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
Chris@1 7107 else
Chris@1 7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 7109 for as_dir in $PATH
Chris@1 7110 do
Chris@1 7111 IFS=$as_save_IFS
Chris@1 7112 test -z "$as_dir" && as_dir=.
Chris@1 7113 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 7114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 7115 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Chris@1 7116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 7117 break 2
Chris@1 7118 fi
Chris@1 7119 done
Chris@1 7120 done
Chris@1 7121 IFS=$as_save_IFS
Chris@1 7122
Chris@1 7123 fi
Chris@1 7124 fi
Chris@1 7125 NMEDIT=$ac_cv_prog_NMEDIT
Chris@1 7126 if test -n "$NMEDIT"; then
Chris@1 7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
Chris@1 7128 $as_echo "$NMEDIT" >&6; }
Chris@1 7129 else
Chris@1 7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 7131 $as_echo "no" >&6; }
Chris@1 7132 fi
Chris@1 7133
Chris@1 7134
Chris@1 7135 fi
Chris@1 7136 if test -z "$ac_cv_prog_NMEDIT"; then
Chris@1 7137 ac_ct_NMEDIT=$NMEDIT
Chris@1 7138 # Extract the first word of "nmedit", so it can be a program name with args.
Chris@1 7139 set dummy nmedit; ac_word=$2
Chris@1 7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 7141 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 7142 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Chris@1 7143 $as_echo_n "(cached) " >&6
Chris@1 7144 else
Chris@1 7145 if test -n "$ac_ct_NMEDIT"; then
Chris@1 7146 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
Chris@1 7147 else
Chris@1 7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 7149 for as_dir in $PATH
Chris@1 7150 do
Chris@1 7151 IFS=$as_save_IFS
Chris@1 7152 test -z "$as_dir" && as_dir=.
Chris@1 7153 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 7155 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Chris@1 7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 7157 break 2
Chris@1 7158 fi
Chris@1 7159 done
Chris@1 7160 done
Chris@1 7161 IFS=$as_save_IFS
Chris@1 7162
Chris@1 7163 fi
Chris@1 7164 fi
Chris@1 7165 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
Chris@1 7166 if test -n "$ac_ct_NMEDIT"; then
Chris@1 7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
Chris@1 7168 $as_echo "$ac_ct_NMEDIT" >&6; }
Chris@1 7169 else
Chris@1 7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 7171 $as_echo "no" >&6; }
Chris@1 7172 fi
Chris@1 7173
Chris@1 7174 if test "x$ac_ct_NMEDIT" = x; then
Chris@1 7175 NMEDIT=":"
Chris@1 7176 else
Chris@1 7177 case $cross_compiling:$ac_tool_warned in
Chris@1 7178 yes:)
Chris@1 7179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 7180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 7181 ac_tool_warned=yes ;;
Chris@1 7182 esac
Chris@1 7183 NMEDIT=$ac_ct_NMEDIT
Chris@1 7184 fi
Chris@1 7185 else
Chris@1 7186 NMEDIT="$ac_cv_prog_NMEDIT"
Chris@1 7187 fi
Chris@1 7188
Chris@1 7189 if test -n "$ac_tool_prefix"; then
Chris@1 7190 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
Chris@1 7191 set dummy ${ac_tool_prefix}lipo; ac_word=$2
Chris@1 7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 7193 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 7194 if ${ac_cv_prog_LIPO+:} false; then :
Chris@1 7195 $as_echo_n "(cached) " >&6
Chris@1 7196 else
Chris@1 7197 if test -n "$LIPO"; then
Chris@1 7198 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
Chris@1 7199 else
Chris@1 7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 7201 for as_dir in $PATH
Chris@1 7202 do
Chris@1 7203 IFS=$as_save_IFS
Chris@1 7204 test -z "$as_dir" && as_dir=.
Chris@1 7205 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 7206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 7207 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Chris@1 7208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 7209 break 2
Chris@1 7210 fi
Chris@1 7211 done
Chris@1 7212 done
Chris@1 7213 IFS=$as_save_IFS
Chris@1 7214
Chris@1 7215 fi
Chris@1 7216 fi
Chris@1 7217 LIPO=$ac_cv_prog_LIPO
Chris@1 7218 if test -n "$LIPO"; then
Chris@1 7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
Chris@1 7220 $as_echo "$LIPO" >&6; }
Chris@1 7221 else
Chris@1 7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 7223 $as_echo "no" >&6; }
Chris@1 7224 fi
Chris@1 7225
Chris@1 7226
Chris@1 7227 fi
Chris@1 7228 if test -z "$ac_cv_prog_LIPO"; then
Chris@1 7229 ac_ct_LIPO=$LIPO
Chris@1 7230 # Extract the first word of "lipo", so it can be a program name with args.
Chris@1 7231 set dummy lipo; ac_word=$2
Chris@1 7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 7233 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 7234 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Chris@1 7235 $as_echo_n "(cached) " >&6
Chris@1 7236 else
Chris@1 7237 if test -n "$ac_ct_LIPO"; then
Chris@1 7238 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
Chris@1 7239 else
Chris@1 7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 7241 for as_dir in $PATH
Chris@1 7242 do
Chris@1 7243 IFS=$as_save_IFS
Chris@1 7244 test -z "$as_dir" && as_dir=.
Chris@1 7245 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 7246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 7247 ac_cv_prog_ac_ct_LIPO="lipo"
Chris@1 7248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 7249 break 2
Chris@1 7250 fi
Chris@1 7251 done
Chris@1 7252 done
Chris@1 7253 IFS=$as_save_IFS
Chris@1 7254
Chris@1 7255 fi
Chris@1 7256 fi
Chris@1 7257 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
Chris@1 7258 if test -n "$ac_ct_LIPO"; then
Chris@1 7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
Chris@1 7260 $as_echo "$ac_ct_LIPO" >&6; }
Chris@1 7261 else
Chris@1 7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 7263 $as_echo "no" >&6; }
Chris@1 7264 fi
Chris@1 7265
Chris@1 7266 if test "x$ac_ct_LIPO" = x; then
Chris@1 7267 LIPO=":"
Chris@1 7268 else
Chris@1 7269 case $cross_compiling:$ac_tool_warned in
Chris@1 7270 yes:)
Chris@1 7271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 7272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 7273 ac_tool_warned=yes ;;
Chris@1 7274 esac
Chris@1 7275 LIPO=$ac_ct_LIPO
Chris@1 7276 fi
Chris@1 7277 else
Chris@1 7278 LIPO="$ac_cv_prog_LIPO"
Chris@1 7279 fi
Chris@1 7280
Chris@1 7281 if test -n "$ac_tool_prefix"; then
Chris@1 7282 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
Chris@1 7283 set dummy ${ac_tool_prefix}otool; ac_word=$2
Chris@1 7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 7285 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 7286 if ${ac_cv_prog_OTOOL+:} false; then :
Chris@1 7287 $as_echo_n "(cached) " >&6
Chris@1 7288 else
Chris@1 7289 if test -n "$OTOOL"; then
Chris@1 7290 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
Chris@1 7291 else
Chris@1 7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 7293 for as_dir in $PATH
Chris@1 7294 do
Chris@1 7295 IFS=$as_save_IFS
Chris@1 7296 test -z "$as_dir" && as_dir=.
Chris@1 7297 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 7298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 7299 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Chris@1 7300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 7301 break 2
Chris@1 7302 fi
Chris@1 7303 done
Chris@1 7304 done
Chris@1 7305 IFS=$as_save_IFS
Chris@1 7306
Chris@1 7307 fi
Chris@1 7308 fi
Chris@1 7309 OTOOL=$ac_cv_prog_OTOOL
Chris@1 7310 if test -n "$OTOOL"; then
Chris@1 7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
Chris@1 7312 $as_echo "$OTOOL" >&6; }
Chris@1 7313 else
Chris@1 7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 7315 $as_echo "no" >&6; }
Chris@1 7316 fi
Chris@1 7317
Chris@1 7318
Chris@1 7319 fi
Chris@1 7320 if test -z "$ac_cv_prog_OTOOL"; then
Chris@1 7321 ac_ct_OTOOL=$OTOOL
Chris@1 7322 # Extract the first word of "otool", so it can be a program name with args.
Chris@1 7323 set dummy otool; ac_word=$2
Chris@1 7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 7325 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 7326 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Chris@1 7327 $as_echo_n "(cached) " >&6
Chris@1 7328 else
Chris@1 7329 if test -n "$ac_ct_OTOOL"; then
Chris@1 7330 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
Chris@1 7331 else
Chris@1 7332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 7333 for as_dir in $PATH
Chris@1 7334 do
Chris@1 7335 IFS=$as_save_IFS
Chris@1 7336 test -z "$as_dir" && as_dir=.
Chris@1 7337 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 7338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 7339 ac_cv_prog_ac_ct_OTOOL="otool"
Chris@1 7340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 7341 break 2
Chris@1 7342 fi
Chris@1 7343 done
Chris@1 7344 done
Chris@1 7345 IFS=$as_save_IFS
Chris@1 7346
Chris@1 7347 fi
Chris@1 7348 fi
Chris@1 7349 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
Chris@1 7350 if test -n "$ac_ct_OTOOL"; then
Chris@1 7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
Chris@1 7352 $as_echo "$ac_ct_OTOOL" >&6; }
Chris@1 7353 else
Chris@1 7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 7355 $as_echo "no" >&6; }
Chris@1 7356 fi
Chris@1 7357
Chris@1 7358 if test "x$ac_ct_OTOOL" = x; then
Chris@1 7359 OTOOL=":"
Chris@1 7360 else
Chris@1 7361 case $cross_compiling:$ac_tool_warned in
Chris@1 7362 yes:)
Chris@1 7363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 7364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 7365 ac_tool_warned=yes ;;
Chris@1 7366 esac
Chris@1 7367 OTOOL=$ac_ct_OTOOL
Chris@1 7368 fi
Chris@1 7369 else
Chris@1 7370 OTOOL="$ac_cv_prog_OTOOL"
Chris@1 7371 fi
Chris@1 7372
Chris@1 7373 if test -n "$ac_tool_prefix"; then
Chris@1 7374 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
Chris@1 7375 set dummy ${ac_tool_prefix}otool64; ac_word=$2
Chris@1 7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 7377 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 7378 if ${ac_cv_prog_OTOOL64+:} false; then :
Chris@1 7379 $as_echo_n "(cached) " >&6
Chris@1 7380 else
Chris@1 7381 if test -n "$OTOOL64"; then
Chris@1 7382 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
Chris@1 7383 else
Chris@1 7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 7385 for as_dir in $PATH
Chris@1 7386 do
Chris@1 7387 IFS=$as_save_IFS
Chris@1 7388 test -z "$as_dir" && as_dir=.
Chris@1 7389 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 7390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 7391 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Chris@1 7392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 7393 break 2
Chris@1 7394 fi
Chris@1 7395 done
Chris@1 7396 done
Chris@1 7397 IFS=$as_save_IFS
Chris@1 7398
Chris@1 7399 fi
Chris@1 7400 fi
Chris@1 7401 OTOOL64=$ac_cv_prog_OTOOL64
Chris@1 7402 if test -n "$OTOOL64"; then
Chris@1 7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
Chris@1 7404 $as_echo "$OTOOL64" >&6; }
Chris@1 7405 else
Chris@1 7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 7407 $as_echo "no" >&6; }
Chris@1 7408 fi
Chris@1 7409
Chris@1 7410
Chris@1 7411 fi
Chris@1 7412 if test -z "$ac_cv_prog_OTOOL64"; then
Chris@1 7413 ac_ct_OTOOL64=$OTOOL64
Chris@1 7414 # Extract the first word of "otool64", so it can be a program name with args.
Chris@1 7415 set dummy otool64; ac_word=$2
Chris@1 7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 7417 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 7418 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Chris@1 7419 $as_echo_n "(cached) " >&6
Chris@1 7420 else
Chris@1 7421 if test -n "$ac_ct_OTOOL64"; then
Chris@1 7422 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
Chris@1 7423 else
Chris@1 7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 7425 for as_dir in $PATH
Chris@1 7426 do
Chris@1 7427 IFS=$as_save_IFS
Chris@1 7428 test -z "$as_dir" && as_dir=.
Chris@1 7429 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 7430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 7431 ac_cv_prog_ac_ct_OTOOL64="otool64"
Chris@1 7432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 7433 break 2
Chris@1 7434 fi
Chris@1 7435 done
Chris@1 7436 done
Chris@1 7437 IFS=$as_save_IFS
Chris@1 7438
Chris@1 7439 fi
Chris@1 7440 fi
Chris@1 7441 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
Chris@1 7442 if test -n "$ac_ct_OTOOL64"; then
Chris@1 7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
Chris@1 7444 $as_echo "$ac_ct_OTOOL64" >&6; }
Chris@1 7445 else
Chris@1 7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 7447 $as_echo "no" >&6; }
Chris@1 7448 fi
Chris@1 7449
Chris@1 7450 if test "x$ac_ct_OTOOL64" = x; then
Chris@1 7451 OTOOL64=":"
Chris@1 7452 else
Chris@1 7453 case $cross_compiling:$ac_tool_warned in
Chris@1 7454 yes:)
Chris@1 7455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 7456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 7457 ac_tool_warned=yes ;;
Chris@1 7458 esac
Chris@1 7459 OTOOL64=$ac_ct_OTOOL64
Chris@1 7460 fi
Chris@1 7461 else
Chris@1 7462 OTOOL64="$ac_cv_prog_OTOOL64"
Chris@1 7463 fi
Chris@1 7464
Chris@1 7465
Chris@1 7466
Chris@1 7467
Chris@1 7468
Chris@1 7469
Chris@1 7470
Chris@1 7471
Chris@1 7472
Chris@1 7473
Chris@1 7474
Chris@1 7475
Chris@1 7476
Chris@1 7477
Chris@1 7478
Chris@1 7479
Chris@1 7480
Chris@1 7481
Chris@1 7482
Chris@1 7483
Chris@1 7484
Chris@1 7485
Chris@1 7486
Chris@1 7487
Chris@1 7488
Chris@1 7489
Chris@1 7490
Chris@1 7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
Chris@1 7492 $as_echo_n "checking for -single_module linker flag... " >&6; }
Chris@1 7493 if ${lt_cv_apple_cc_single_mod+:} false; then :
Chris@1 7494 $as_echo_n "(cached) " >&6
Chris@1 7495 else
Chris@1 7496 lt_cv_apple_cc_single_mod=no
Chris@1 7497 if test -z "${LT_MULTI_MODULE}"; then
Chris@1 7498 # By default we will add the -single_module flag. You can override
Chris@1 7499 # by either setting the environment variable LT_MULTI_MODULE
Chris@1 7500 # non-empty at configure time, or by adding -multi_module to the
Chris@1 7501 # link flags.
Chris@1 7502 rm -rf libconftest.dylib*
Chris@1 7503 echo "int foo(void){return 1;}" > conftest.c
Chris@1 7504 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
Chris@1 7505 -dynamiclib -Wl,-single_module conftest.c" >&5
Chris@1 7506 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
Chris@1 7507 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
Chris@1 7508 _lt_result=$?
Chris@1 7509 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
Chris@1 7510 lt_cv_apple_cc_single_mod=yes
Chris@1 7511 else
Chris@1 7512 cat conftest.err >&5
Chris@1 7513 fi
Chris@1 7514 rm -rf libconftest.dylib*
Chris@1 7515 rm -f conftest.*
Chris@1 7516 fi
Chris@1 7517 fi
Chris@1 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
Chris@1 7519 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Chris@1 7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
Chris@1 7521 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Chris@1 7522 if ${lt_cv_ld_exported_symbols_list+:} false; then :
Chris@1 7523 $as_echo_n "(cached) " >&6
Chris@1 7524 else
Chris@1 7525 lt_cv_ld_exported_symbols_list=no
Chris@1 7526 save_LDFLAGS=$LDFLAGS
Chris@1 7527 echo "_main" > conftest.sym
Chris@1 7528 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Chris@1 7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 7530 /* end confdefs.h. */
Chris@1 7531
Chris@1 7532 int
Chris@1 7533 main ()
Chris@1 7534 {
Chris@1 7535
Chris@1 7536 ;
Chris@1 7537 return 0;
Chris@1 7538 }
Chris@1 7539 _ACEOF
Chris@1 7540 if ac_fn_c_try_link "$LINENO"; then :
Chris@1 7541 lt_cv_ld_exported_symbols_list=yes
Chris@1 7542 else
Chris@1 7543 lt_cv_ld_exported_symbols_list=no
Chris@1 7544 fi
Chris@1 7545 rm -f core conftest.err conftest.$ac_objext \
Chris@1 7546 conftest$ac_exeext conftest.$ac_ext
Chris@1 7547 LDFLAGS="$save_LDFLAGS"
Chris@1 7548
Chris@1 7549 fi
Chris@1 7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
Chris@1 7551 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Chris@1 7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
Chris@1 7553 $as_echo_n "checking for -force_load linker flag... " >&6; }
Chris@1 7554 if ${lt_cv_ld_force_load+:} false; then :
Chris@1 7555 $as_echo_n "(cached) " >&6
Chris@1 7556 else
Chris@1 7557 lt_cv_ld_force_load=no
Chris@1 7558 cat > conftest.c << _LT_EOF
Chris@1 7559 int forced_loaded() { return 2;}
Chris@1 7560 _LT_EOF
Chris@1 7561 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
Chris@1 7562 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
Chris@1 7563 echo "$AR cru libconftest.a conftest.o" >&5
Chris@1 7564 $AR cru libconftest.a conftest.o 2>&5
Chris@1 7565 echo "$RANLIB libconftest.a" >&5
Chris@1 7566 $RANLIB libconftest.a 2>&5
Chris@1 7567 cat > conftest.c << _LT_EOF
Chris@1 7568 int main() { return 0;}
Chris@1 7569 _LT_EOF
Chris@1 7570 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
Chris@1 7571 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
Chris@1 7572 _lt_result=$?
Chris@1 7573 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
Chris@1 7574 lt_cv_ld_force_load=yes
Chris@1 7575 else
Chris@1 7576 cat conftest.err >&5
Chris@1 7577 fi
Chris@1 7578 rm -f conftest.err libconftest.a conftest conftest.c
Chris@1 7579 rm -rf conftest.dSYM
Chris@1 7580
Chris@1 7581 fi
Chris@1 7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
Chris@1 7583 $as_echo "$lt_cv_ld_force_load" >&6; }
Chris@1 7584 case $host_os in
Chris@1 7585 rhapsody* | darwin1.[012])
Chris@1 7586 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
Chris@1 7587 darwin1.*)
Chris@1 7588 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
Chris@1 7589 darwin*) # darwin 5.x on
Chris@1 7590 # if running on 10.5 or later, the deployment target defaults
Chris@1 7591 # to the OS version, if on x86, and 10.4, the deployment
Chris@1 7592 # target defaults to 10.4. Don't you love it?
Chris@1 7593 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
Chris@1 7594 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
Chris@1 7595 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
Chris@1 7596 10.[012]*)
Chris@1 7597 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
Chris@1 7598 10.*)
Chris@1 7599 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
Chris@1 7600 esac
Chris@1 7601 ;;
Chris@1 7602 esac
Chris@1 7603 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
Chris@1 7604 _lt_dar_single_mod='$single_module'
Chris@1 7605 fi
Chris@1 7606 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
Chris@1 7607 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
Chris@1 7608 else
Chris@1 7609 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
Chris@1 7610 fi
Chris@1 7611 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
Chris@1 7612 _lt_dsymutil='~$DSYMUTIL $lib || :'
Chris@1 7613 else
Chris@1 7614 _lt_dsymutil=
Chris@1 7615 fi
Chris@1 7616 ;;
Chris@1 7617 esac
Chris@1 7618
Chris@1 7619
Chris@1 7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Chris@1 7621 $as_echo_n "checking for ANSI C header files... " >&6; }
Chris@1 7622 if ${ac_cv_header_stdc+:} false; then :
Chris@1 7623 $as_echo_n "(cached) " >&6
Chris@1 7624 else
Chris@1 7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 7626 /* end confdefs.h. */
Chris@1 7627 #include <stdlib.h>
Chris@1 7628 #include <stdarg.h>
Chris@1 7629 #include <string.h>
Chris@1 7630 #include <float.h>
Chris@1 7631
Chris@1 7632 int
Chris@1 7633 main ()
Chris@1 7634 {
Chris@1 7635
Chris@1 7636 ;
Chris@1 7637 return 0;
Chris@1 7638 }
Chris@1 7639 _ACEOF
Chris@1 7640 if ac_fn_c_try_compile "$LINENO"; then :
Chris@1 7641 ac_cv_header_stdc=yes
Chris@1 7642 else
Chris@1 7643 ac_cv_header_stdc=no
Chris@1 7644 fi
Chris@1 7645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@1 7646
Chris@1 7647 if test $ac_cv_header_stdc = yes; then
Chris@1 7648 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Chris@1 7649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 7650 /* end confdefs.h. */
Chris@1 7651 #include <string.h>
Chris@1 7652
Chris@1 7653 _ACEOF
Chris@1 7654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@1 7655 $EGREP "memchr" >/dev/null 2>&1; then :
Chris@1 7656
Chris@1 7657 else
Chris@1 7658 ac_cv_header_stdc=no
Chris@1 7659 fi
Chris@1 7660 rm -f conftest*
Chris@1 7661
Chris@1 7662 fi
Chris@1 7663
Chris@1 7664 if test $ac_cv_header_stdc = yes; then
Chris@1 7665 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Chris@1 7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 7667 /* end confdefs.h. */
Chris@1 7668 #include <stdlib.h>
Chris@1 7669
Chris@1 7670 _ACEOF
Chris@1 7671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@1 7672 $EGREP "free" >/dev/null 2>&1; then :
Chris@1 7673
Chris@1 7674 else
Chris@1 7675 ac_cv_header_stdc=no
Chris@1 7676 fi
Chris@1 7677 rm -f conftest*
Chris@1 7678
Chris@1 7679 fi
Chris@1 7680
Chris@1 7681 if test $ac_cv_header_stdc = yes; then
Chris@1 7682 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Chris@1 7683 if test "$cross_compiling" = yes; then :
Chris@1 7684 :
Chris@1 7685 else
Chris@1 7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 7687 /* end confdefs.h. */
Chris@1 7688 #include <ctype.h>
Chris@1 7689 #include <stdlib.h>
Chris@1 7690 #if ((' ' & 0x0FF) == 0x020)
Chris@1 7691 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
Chris@1 7692 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Chris@1 7693 #else
Chris@1 7694 # define ISLOWER(c) \
Chris@1 7695 (('a' <= (c) && (c) <= 'i') \
Chris@1 7696 || ('j' <= (c) && (c) <= 'r') \
Chris@1 7697 || ('s' <= (c) && (c) <= 'z'))
Chris@1 7698 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
Chris@1 7699 #endif
Chris@1 7700
Chris@1 7701 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Chris@1 7702 int
Chris@1 7703 main ()
Chris@1 7704 {
Chris@1 7705 int i;
Chris@1 7706 for (i = 0; i < 256; i++)
Chris@1 7707 if (XOR (islower (i), ISLOWER (i))
Chris@1 7708 || toupper (i) != TOUPPER (i))
Chris@1 7709 return 2;
Chris@1 7710 return 0;
Chris@1 7711 }
Chris@1 7712 _ACEOF
Chris@1 7713 if ac_fn_c_try_run "$LINENO"; then :
Chris@1 7714
Chris@1 7715 else
Chris@1 7716 ac_cv_header_stdc=no
Chris@1 7717 fi
Chris@1 7718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@1 7719 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@1 7720 fi
Chris@1 7721
Chris@1 7722 fi
Chris@1 7723 fi
Chris@1 7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Chris@1 7725 $as_echo "$ac_cv_header_stdc" >&6; }
Chris@1 7726 if test $ac_cv_header_stdc = yes; then
Chris@1 7727
Chris@1 7728 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
Chris@1 7729
Chris@1 7730 fi
Chris@1 7731
Chris@1 7732 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
Chris@1 7733 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Chris@1 7734 inttypes.h stdint.h unistd.h
Chris@1 7735 do :
Chris@1 7736 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Chris@1 7737 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
Chris@1 7738 "
Chris@1 7739 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@1 7740 cat >>confdefs.h <<_ACEOF
Chris@1 7741 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris@1 7742 _ACEOF
Chris@1 7743
Chris@1 7744 fi
Chris@1 7745
Chris@1 7746 done
Chris@1 7747
Chris@1 7748
Chris@1 7749 for ac_header in dlfcn.h
Chris@1 7750 do :
Chris@1 7751 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
Chris@1 7752 "
Chris@1 7753 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Chris@1 7754 cat >>confdefs.h <<_ACEOF
Chris@1 7755 #define HAVE_DLFCN_H 1
Chris@1 7756 _ACEOF
Chris@1 7757
Chris@1 7758 fi
Chris@1 7759
Chris@1 7760 done
Chris@1 7761
Chris@1 7762
Chris@1 7763
Chris@1 7764
Chris@1 7765
Chris@1 7766 # Set options
Chris@1 7767
Chris@1 7768
Chris@1 7769
Chris@1 7770 enable_dlopen=no
Chris@1 7771
Chris@1 7772
Chris@1 7773
Chris@1 7774 # Check whether --enable-shared was given.
Chris@1 7775 if test "${enable_shared+set}" = set; then :
Chris@1 7776 enableval=$enable_shared; p=${PACKAGE-default}
Chris@1 7777 case $enableval in
Chris@1 7778 yes) enable_shared=yes ;;
Chris@1 7779 no) enable_shared=no ;;
Chris@1 7780 *)
Chris@1 7781 enable_shared=no
Chris@1 7782 # Look at the argument we got. We use all the common list separators.
Chris@1 7783 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
Chris@1 7784 for pkg in $enableval; do
Chris@1 7785 IFS="$lt_save_ifs"
Chris@1 7786 if test "X$pkg" = "X$p"; then
Chris@1 7787 enable_shared=yes
Chris@1 7788 fi
Chris@1 7789 done
Chris@1 7790 IFS="$lt_save_ifs"
Chris@1 7791 ;;
Chris@1 7792 esac
Chris@1 7793 else
Chris@1 7794 enable_shared=yes
Chris@1 7795 fi
Chris@1 7796
Chris@1 7797
Chris@1 7798
Chris@1 7799
Chris@1 7800
Chris@1 7801
Chris@1 7802
Chris@1 7803
Chris@1 7804
Chris@1 7805 # Check whether --enable-static was given.
Chris@1 7806 if test "${enable_static+set}" = set; then :
Chris@1 7807 enableval=$enable_static; p=${PACKAGE-default}
Chris@1 7808 case $enableval in
Chris@1 7809 yes) enable_static=yes ;;
Chris@1 7810 no) enable_static=no ;;
Chris@1 7811 *)
Chris@1 7812 enable_static=no
Chris@1 7813 # Look at the argument we got. We use all the common list separators.
Chris@1 7814 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
Chris@1 7815 for pkg in $enableval; do
Chris@1 7816 IFS="$lt_save_ifs"
Chris@1 7817 if test "X$pkg" = "X$p"; then
Chris@1 7818 enable_static=yes
Chris@1 7819 fi
Chris@1 7820 done
Chris@1 7821 IFS="$lt_save_ifs"
Chris@1 7822 ;;
Chris@1 7823 esac
Chris@1 7824 else
Chris@1 7825 enable_static=yes
Chris@1 7826 fi
Chris@1 7827
Chris@1 7828
Chris@1 7829
Chris@1 7830
Chris@1 7831
Chris@1 7832
Chris@1 7833
Chris@1 7834
Chris@1 7835
Chris@1 7836
Chris@1 7837 # Check whether --with-pic was given.
Chris@1 7838 if test "${with_pic+set}" = set; then :
Chris@1 7839 withval=$with_pic; pic_mode="$withval"
Chris@1 7840 else
Chris@1 7841 pic_mode=default
Chris@1 7842 fi
Chris@1 7843
Chris@1 7844
Chris@1 7845 test -z "$pic_mode" && pic_mode=default
Chris@1 7846
Chris@1 7847
Chris@1 7848
Chris@1 7849
Chris@1 7850
Chris@1 7851
Chris@1 7852
Chris@1 7853 # Check whether --enable-fast-install was given.
Chris@1 7854 if test "${enable_fast_install+set}" = set; then :
Chris@1 7855 enableval=$enable_fast_install; p=${PACKAGE-default}
Chris@1 7856 case $enableval in
Chris@1 7857 yes) enable_fast_install=yes ;;
Chris@1 7858 no) enable_fast_install=no ;;
Chris@1 7859 *)
Chris@1 7860 enable_fast_install=no
Chris@1 7861 # Look at the argument we got. We use all the common list separators.
Chris@1 7862 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
Chris@1 7863 for pkg in $enableval; do
Chris@1 7864 IFS="$lt_save_ifs"
Chris@1 7865 if test "X$pkg" = "X$p"; then
Chris@1 7866 enable_fast_install=yes
Chris@1 7867 fi
Chris@1 7868 done
Chris@1 7869 IFS="$lt_save_ifs"
Chris@1 7870 ;;
Chris@1 7871 esac
Chris@1 7872 else
Chris@1 7873 enable_fast_install=yes
Chris@1 7874 fi
Chris@1 7875
Chris@1 7876
Chris@1 7877
Chris@1 7878
Chris@1 7879
Chris@1 7880
Chris@1 7881
Chris@1 7882
Chris@1 7883
Chris@1 7884
Chris@1 7885
Chris@1 7886 # This can be used to rebuild libtool when needed
Chris@1 7887 LIBTOOL_DEPS="$ltmain"
Chris@1 7888
Chris@1 7889 # Always use our own libtool.
Chris@1 7890 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
Chris@1 7891
Chris@1 7892
Chris@1 7893
Chris@1 7894
Chris@1 7895
Chris@1 7896
Chris@1 7897
Chris@1 7898
Chris@1 7899
Chris@1 7900
Chris@1 7901
Chris@1 7902
Chris@1 7903
Chris@1 7904
Chris@1 7905
Chris@1 7906
Chris@1 7907
Chris@1 7908
Chris@1 7909
Chris@1 7910
Chris@1 7911
Chris@1 7912
Chris@1 7913
Chris@1 7914
Chris@1 7915
Chris@1 7916
Chris@1 7917 test -z "$LN_S" && LN_S="ln -s"
Chris@1 7918
Chris@1 7919
Chris@1 7920
Chris@1 7921
Chris@1 7922
Chris@1 7923
Chris@1 7924
Chris@1 7925
Chris@1 7926
Chris@1 7927
Chris@1 7928
Chris@1 7929
Chris@1 7930
Chris@1 7931
Chris@1 7932 if test -n "${ZSH_VERSION+set}" ; then
Chris@1 7933 setopt NO_GLOB_SUBST
Chris@1 7934 fi
Chris@1 7935
Chris@1 7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
Chris@1 7937 $as_echo_n "checking for objdir... " >&6; }
Chris@1 7938 if ${lt_cv_objdir+:} false; then :
Chris@1 7939 $as_echo_n "(cached) " >&6
Chris@1 7940 else
Chris@1 7941 rm -f .libs 2>/dev/null
Chris@1 7942 mkdir .libs 2>/dev/null
Chris@1 7943 if test -d .libs; then
Chris@1 7944 lt_cv_objdir=.libs
Chris@1 7945 else
Chris@1 7946 # MS-DOS does not allow filenames that begin with a dot.
Chris@1 7947 lt_cv_objdir=_libs
Chris@1 7948 fi
Chris@1 7949 rmdir .libs 2>/dev/null
Chris@1 7950 fi
Chris@1 7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
Chris@1 7952 $as_echo "$lt_cv_objdir" >&6; }
Chris@1 7953 objdir=$lt_cv_objdir
Chris@1 7954
Chris@1 7955
Chris@1 7956
Chris@1 7957
Chris@1 7958
Chris@1 7959 cat >>confdefs.h <<_ACEOF
Chris@1 7960 #define LT_OBJDIR "$lt_cv_objdir/"
Chris@1 7961 _ACEOF
Chris@1 7962
Chris@1 7963
Chris@1 7964
Chris@1 7965
Chris@1 7966 case $host_os in
Chris@1 7967 aix3*)
Chris@1 7968 # AIX sometimes has problems with the GCC collect2 program. For some
Chris@1 7969 # reason, if we set the COLLECT_NAMES environment variable, the problems
Chris@1 7970 # vanish in a puff of smoke.
Chris@1 7971 if test "X${COLLECT_NAMES+set}" != Xset; then
Chris@1 7972 COLLECT_NAMES=
Chris@1 7973 export COLLECT_NAMES
Chris@1 7974 fi
Chris@1 7975 ;;
Chris@1 7976 esac
Chris@1 7977
Chris@1 7978 # Global variables:
Chris@1 7979 ofile=libtool
Chris@1 7980 can_build_shared=yes
Chris@1 7981
Chris@1 7982 # All known linkers require a `.a' archive for static linking (except MSVC,
Chris@1 7983 # which needs '.lib').
Chris@1 7984 libext=a
Chris@1 7985
Chris@1 7986 with_gnu_ld="$lt_cv_prog_gnu_ld"
Chris@1 7987
Chris@1 7988 old_CC="$CC"
Chris@1 7989 old_CFLAGS="$CFLAGS"
Chris@1 7990
Chris@1 7991 # Set sane defaults for various variables
Chris@1 7992 test -z "$CC" && CC=cc
Chris@1 7993 test -z "$LTCC" && LTCC=$CC
Chris@1 7994 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
Chris@1 7995 test -z "$LD" && LD=ld
Chris@1 7996 test -z "$ac_objext" && ac_objext=o
Chris@1 7997
Chris@1 7998 for cc_temp in $compiler""; do
Chris@1 7999 case $cc_temp in
Chris@1 8000 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
Chris@1 8001 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
Chris@1 8002 \-*) ;;
Chris@1 8003 *) break;;
Chris@1 8004 esac
Chris@1 8005 done
Chris@1 8006 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Chris@1 8007
Chris@1 8008
Chris@1 8009 # Only perform the check for file, if the check method requires it
Chris@1 8010 test -z "$MAGIC_CMD" && MAGIC_CMD=file
Chris@1 8011 case $deplibs_check_method in
Chris@1 8012 file_magic*)
Chris@1 8013 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Chris@1 8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
Chris@1 8015 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Chris@1 8016 if ${lt_cv_path_MAGIC_CMD+:} false; then :
Chris@1 8017 $as_echo_n "(cached) " >&6
Chris@1 8018 else
Chris@1 8019 case $MAGIC_CMD in
Chris@1 8020 [\\/*] | ?:[\\/]*)
Chris@1 8021 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
Chris@1 8022 ;;
Chris@1 8023 *)
Chris@1 8024 lt_save_MAGIC_CMD="$MAGIC_CMD"
Chris@1 8025 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@1 8026 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
Chris@1 8027 for ac_dir in $ac_dummy; do
Chris@1 8028 IFS="$lt_save_ifs"
Chris@1 8029 test -z "$ac_dir" && ac_dir=.
Chris@1 8030 if test -f $ac_dir/${ac_tool_prefix}file; then
Chris@1 8031 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
Chris@1 8032 if test -n "$file_magic_test_file"; then
Chris@1 8033 case $deplibs_check_method in
Chris@1 8034 "file_magic "*)
Chris@1 8035 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Chris@1 8036 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Chris@1 8037 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
Chris@1 8038 $EGREP "$file_magic_regex" > /dev/null; then
Chris@1 8039 :
Chris@1 8040 else
Chris@1 8041 cat <<_LT_EOF 1>&2
Chris@1 8042
Chris@1 8043 *** Warning: the command libtool uses to detect shared libraries,
Chris@1 8044 *** $file_magic_cmd, produces output that libtool cannot recognize.
Chris@1 8045 *** The result is that libtool may fail to recognize shared libraries
Chris@1 8046 *** as such. This will affect the creation of libtool libraries that
Chris@1 8047 *** depend on shared libraries, but programs linked with such libtool
Chris@1 8048 *** libraries will work regardless of this problem. Nevertheless, you
Chris@1 8049 *** may want to report the problem to your system manager and/or to
Chris@1 8050 *** bug-libtool@gnu.org
Chris@1 8051
Chris@1 8052 _LT_EOF
Chris@1 8053 fi ;;
Chris@1 8054 esac
Chris@1 8055 fi
Chris@1 8056 break
Chris@1 8057 fi
Chris@1 8058 done
Chris@1 8059 IFS="$lt_save_ifs"
Chris@1 8060 MAGIC_CMD="$lt_save_MAGIC_CMD"
Chris@1 8061 ;;
Chris@1 8062 esac
Chris@1 8063 fi
Chris@1 8064
Chris@1 8065 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Chris@1 8066 if test -n "$MAGIC_CMD"; then
Chris@1 8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Chris@1 8068 $as_echo "$MAGIC_CMD" >&6; }
Chris@1 8069 else
Chris@1 8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 8071 $as_echo "no" >&6; }
Chris@1 8072 fi
Chris@1 8073
Chris@1 8074
Chris@1 8075
Chris@1 8076
Chris@1 8077
Chris@1 8078 if test -z "$lt_cv_path_MAGIC_CMD"; then
Chris@1 8079 if test -n "$ac_tool_prefix"; then
Chris@1 8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
Chris@1 8081 $as_echo_n "checking for file... " >&6; }
Chris@1 8082 if ${lt_cv_path_MAGIC_CMD+:} false; then :
Chris@1 8083 $as_echo_n "(cached) " >&6
Chris@1 8084 else
Chris@1 8085 case $MAGIC_CMD in
Chris@1 8086 [\\/*] | ?:[\\/]*)
Chris@1 8087 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
Chris@1 8088 ;;
Chris@1 8089 *)
Chris@1 8090 lt_save_MAGIC_CMD="$MAGIC_CMD"
Chris@1 8091 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@1 8092 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
Chris@1 8093 for ac_dir in $ac_dummy; do
Chris@1 8094 IFS="$lt_save_ifs"
Chris@1 8095 test -z "$ac_dir" && ac_dir=.
Chris@1 8096 if test -f $ac_dir/file; then
Chris@1 8097 lt_cv_path_MAGIC_CMD="$ac_dir/file"
Chris@1 8098 if test -n "$file_magic_test_file"; then
Chris@1 8099 case $deplibs_check_method in
Chris@1 8100 "file_magic "*)
Chris@1 8101 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Chris@1 8102 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Chris@1 8103 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
Chris@1 8104 $EGREP "$file_magic_regex" > /dev/null; then
Chris@1 8105 :
Chris@1 8106 else
Chris@1 8107 cat <<_LT_EOF 1>&2
Chris@1 8108
Chris@1 8109 *** Warning: the command libtool uses to detect shared libraries,
Chris@1 8110 *** $file_magic_cmd, produces output that libtool cannot recognize.
Chris@1 8111 *** The result is that libtool may fail to recognize shared libraries
Chris@1 8112 *** as such. This will affect the creation of libtool libraries that
Chris@1 8113 *** depend on shared libraries, but programs linked with such libtool
Chris@1 8114 *** libraries will work regardless of this problem. Nevertheless, you
Chris@1 8115 *** may want to report the problem to your system manager and/or to
Chris@1 8116 *** bug-libtool@gnu.org
Chris@1 8117
Chris@1 8118 _LT_EOF
Chris@1 8119 fi ;;
Chris@1 8120 esac
Chris@1 8121 fi
Chris@1 8122 break
Chris@1 8123 fi
Chris@1 8124 done
Chris@1 8125 IFS="$lt_save_ifs"
Chris@1 8126 MAGIC_CMD="$lt_save_MAGIC_CMD"
Chris@1 8127 ;;
Chris@1 8128 esac
Chris@1 8129 fi
Chris@1 8130
Chris@1 8131 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Chris@1 8132 if test -n "$MAGIC_CMD"; then
Chris@1 8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Chris@1 8134 $as_echo "$MAGIC_CMD" >&6; }
Chris@1 8135 else
Chris@1 8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 8137 $as_echo "no" >&6; }
Chris@1 8138 fi
Chris@1 8139
Chris@1 8140
Chris@1 8141 else
Chris@1 8142 MAGIC_CMD=:
Chris@1 8143 fi
Chris@1 8144 fi
Chris@1 8145
Chris@1 8146 fi
Chris@1 8147 ;;
Chris@1 8148 esac
Chris@1 8149
Chris@1 8150 # Use C for the default configuration in the libtool script
Chris@1 8151
Chris@1 8152 lt_save_CC="$CC"
Chris@1 8153 ac_ext=c
Chris@1 8154 ac_cpp='$CPP $CPPFLAGS'
Chris@1 8155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@1 8156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@1 8157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@1 8158
Chris@1 8159
Chris@1 8160 # Source file extension for C test sources.
Chris@1 8161 ac_ext=c
Chris@1 8162
Chris@1 8163 # Object file extension for compiled C test sources.
Chris@1 8164 objext=o
Chris@1 8165 objext=$objext
Chris@1 8166
Chris@1 8167 # Code to be used in simple compile tests
Chris@1 8168 lt_simple_compile_test_code="int some_variable = 0;"
Chris@1 8169
Chris@1 8170 # Code to be used in simple link tests
Chris@1 8171 lt_simple_link_test_code='int main(){return(0);}'
Chris@1 8172
Chris@1 8173
Chris@1 8174
Chris@1 8175
Chris@1 8176
Chris@1 8177
Chris@1 8178
Chris@1 8179 # If no C compiler was specified, use CC.
Chris@1 8180 LTCC=${LTCC-"$CC"}
Chris@1 8181
Chris@1 8182 # If no C compiler flags were specified, use CFLAGS.
Chris@1 8183 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Chris@1 8184
Chris@1 8185 # Allow CC to be a program name with arguments.
Chris@1 8186 compiler=$CC
Chris@1 8187
Chris@1 8188 # Save the default compiler, since it gets overwritten when the other
Chris@1 8189 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
Chris@1 8190 compiler_DEFAULT=$CC
Chris@1 8191
Chris@1 8192 # save warnings/boilerplate of simple test code
Chris@1 8193 ac_outfile=conftest.$ac_objext
Chris@1 8194 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Chris@1 8195 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@1 8196 _lt_compiler_boilerplate=`cat conftest.err`
Chris@1 8197 $RM conftest*
Chris@1 8198
Chris@1 8199 ac_outfile=conftest.$ac_objext
Chris@1 8200 echo "$lt_simple_link_test_code" >conftest.$ac_ext
Chris@1 8201 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@1 8202 _lt_linker_boilerplate=`cat conftest.err`
Chris@1 8203 $RM -r conftest*
Chris@1 8204
Chris@1 8205
Chris@1 8206 if test -n "$compiler"; then
Chris@1 8207
Chris@1 8208 lt_prog_compiler_no_builtin_flag=
Chris@1 8209
Chris@1 8210 if test "$GCC" = yes; then
Chris@1 8211 case $cc_basename in
Chris@1 8212 nvcc*)
Chris@1 8213 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
Chris@1 8214 *)
Chris@1 8215 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
Chris@1 8216 esac
Chris@1 8217
Chris@1 8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Chris@1 8219 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Chris@1 8220 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Chris@1 8221 $as_echo_n "(cached) " >&6
Chris@1 8222 else
Chris@1 8223 lt_cv_prog_compiler_rtti_exceptions=no
Chris@1 8224 ac_outfile=conftest.$ac_objext
Chris@1 8225 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@1 8226 lt_compiler_flag="-fno-rtti -fno-exceptions"
Chris@1 8227 # Insert the option either (1) after the last *FLAGS variable, or
Chris@1 8228 # (2) before a word containing "conftest.", or (3) at the end.
Chris@1 8229 # Note that $ac_compile itself does not contain backslashes and begins
Chris@1 8230 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@1 8231 # The option is referenced via a variable to avoid confusing sed.
Chris@1 8232 lt_compile=`echo "$ac_compile" | $SED \
Chris@1 8233 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@1 8234 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@1 8235 -e 's:$: $lt_compiler_flag:'`
Chris@1 8236 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@1 8237 (eval "$lt_compile" 2>conftest.err)
Chris@1 8238 ac_status=$?
Chris@1 8239 cat conftest.err >&5
Chris@1 8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@1 8241 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@1 8242 # The compiler can only warn and ignore the option if not recognized
Chris@1 8243 # So say no if there are warnings other than the usual output.
Chris@1 8244 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Chris@1 8245 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@1 8246 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Chris@1 8247 lt_cv_prog_compiler_rtti_exceptions=yes
Chris@1 8248 fi
Chris@1 8249 fi
Chris@1 8250 $RM conftest*
Chris@1 8251
Chris@1 8252 fi
Chris@1 8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Chris@1 8254 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Chris@1 8255
Chris@1 8256 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
Chris@1 8257 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
Chris@1 8258 else
Chris@1 8259 :
Chris@1 8260 fi
Chris@1 8261
Chris@1 8262 fi
Chris@1 8263
Chris@1 8264
Chris@1 8265
Chris@1 8266
Chris@1 8267
Chris@1 8268
Chris@1 8269 lt_prog_compiler_wl=
Chris@1 8270 lt_prog_compiler_pic=
Chris@1 8271 lt_prog_compiler_static=
Chris@1 8272
Chris@1 8273
Chris@1 8274 if test "$GCC" = yes; then
Chris@1 8275 lt_prog_compiler_wl='-Wl,'
Chris@1 8276 lt_prog_compiler_static='-static'
Chris@1 8277
Chris@1 8278 case $host_os in
Chris@1 8279 aix*)
Chris@1 8280 # All AIX code is PIC.
Chris@1 8281 if test "$host_cpu" = ia64; then
Chris@1 8282 # AIX 5 now supports IA64 processor
Chris@1 8283 lt_prog_compiler_static='-Bstatic'
Chris@1 8284 fi
Chris@1 8285 ;;
Chris@1 8286
Chris@1 8287 amigaos*)
Chris@1 8288 case $host_cpu in
Chris@1 8289 powerpc)
Chris@1 8290 # see comment about AmigaOS4 .so support
Chris@1 8291 lt_prog_compiler_pic='-fPIC'
Chris@1 8292 ;;
Chris@1 8293 m68k)
Chris@1 8294 # FIXME: we need at least 68020 code to build shared libraries, but
Chris@1 8295 # adding the `-m68020' flag to GCC prevents building anything better,
Chris@1 8296 # like `-m68040'.
Chris@1 8297 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
Chris@1 8298 ;;
Chris@1 8299 esac
Chris@1 8300 ;;
Chris@1 8301
Chris@1 8302 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Chris@1 8303 # PIC is the default for these OSes.
Chris@1 8304 ;;
Chris@1 8305
Chris@1 8306 mingw* | cygwin* | pw32* | os2* | cegcc*)
Chris@1 8307 # This hack is so that the source file can tell whether it is being
Chris@1 8308 # built for inclusion in a dll (and should export symbols for example).
Chris@1 8309 # Although the cygwin gcc ignores -fPIC, still need this for old-style
Chris@1 8310 # (--disable-auto-import) libraries
Chris@1 8311 lt_prog_compiler_pic='-DDLL_EXPORT'
Chris@1 8312 ;;
Chris@1 8313
Chris@1 8314 darwin* | rhapsody*)
Chris@1 8315 # PIC is the default on this platform
Chris@1 8316 # Common symbols not allowed in MH_DYLIB files
Chris@1 8317 lt_prog_compiler_pic='-fno-common'
Chris@1 8318 ;;
Chris@1 8319
Chris@1 8320 haiku*)
Chris@1 8321 # PIC is the default for Haiku.
Chris@1 8322 # The "-static" flag exists, but is broken.
Chris@1 8323 lt_prog_compiler_static=
Chris@1 8324 ;;
Chris@1 8325
Chris@1 8326 hpux*)
Chris@1 8327 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
Chris@1 8328 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
Chris@1 8329 # sets the default TLS model and affects inlining.
Chris@1 8330 case $host_cpu in
Chris@1 8331 hppa*64*)
Chris@1 8332 # +Z the default
Chris@1 8333 ;;
Chris@1 8334 *)
Chris@1 8335 lt_prog_compiler_pic='-fPIC'
Chris@1 8336 ;;
Chris@1 8337 esac
Chris@1 8338 ;;
Chris@1 8339
Chris@1 8340 interix[3-9]*)
Chris@1 8341 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
Chris@1 8342 # Instead, we relocate shared libraries at runtime.
Chris@1 8343 ;;
Chris@1 8344
Chris@1 8345 msdosdjgpp*)
Chris@1 8346 # Just because we use GCC doesn't mean we suddenly get shared libraries
Chris@1 8347 # on systems that don't support them.
Chris@1 8348 lt_prog_compiler_can_build_shared=no
Chris@1 8349 enable_shared=no
Chris@1 8350 ;;
Chris@1 8351
Chris@1 8352 *nto* | *qnx*)
Chris@1 8353 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@1 8354 # it will coredump.
Chris@1 8355 lt_prog_compiler_pic='-fPIC -shared'
Chris@1 8356 ;;
Chris@1 8357
Chris@1 8358 sysv4*MP*)
Chris@1 8359 if test -d /usr/nec; then
Chris@1 8360 lt_prog_compiler_pic=-Kconform_pic
Chris@1 8361 fi
Chris@1 8362 ;;
Chris@1 8363
Chris@1 8364 *)
Chris@1 8365 lt_prog_compiler_pic='-fPIC'
Chris@1 8366 ;;
Chris@1 8367 esac
Chris@1 8368
Chris@1 8369 case $cc_basename in
Chris@1 8370 nvcc*) # Cuda Compiler Driver 2.2
Chris@1 8371 lt_prog_compiler_wl='-Xlinker '
Chris@1 8372 lt_prog_compiler_pic='-Xcompiler -fPIC'
Chris@1 8373 ;;
Chris@1 8374 esac
Chris@1 8375 else
Chris@1 8376 # PORTME Check for flag to pass linker flags through the system compiler.
Chris@1 8377 case $host_os in
Chris@1 8378 aix*)
Chris@1 8379 lt_prog_compiler_wl='-Wl,'
Chris@1 8380 if test "$host_cpu" = ia64; then
Chris@1 8381 # AIX 5 now supports IA64 processor
Chris@1 8382 lt_prog_compiler_static='-Bstatic'
Chris@1 8383 else
Chris@1 8384 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
Chris@1 8385 fi
Chris@1 8386 ;;
Chris@1 8387
Chris@1 8388 mingw* | cygwin* | pw32* | os2* | cegcc*)
Chris@1 8389 # This hack is so that the source file can tell whether it is being
Chris@1 8390 # built for inclusion in a dll (and should export symbols for example).
Chris@1 8391 lt_prog_compiler_pic='-DDLL_EXPORT'
Chris@1 8392 ;;
Chris@1 8393
Chris@1 8394 hpux9* | hpux10* | hpux11*)
Chris@1 8395 lt_prog_compiler_wl='-Wl,'
Chris@1 8396 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
Chris@1 8397 # not for PA HP-UX.
Chris@1 8398 case $host_cpu in
Chris@1 8399 hppa*64*|ia64*)
Chris@1 8400 # +Z the default
Chris@1 8401 ;;
Chris@1 8402 *)
Chris@1 8403 lt_prog_compiler_pic='+Z'
Chris@1 8404 ;;
Chris@1 8405 esac
Chris@1 8406 # Is there a better lt_prog_compiler_static that works with the bundled CC?
Chris@1 8407 lt_prog_compiler_static='${wl}-a ${wl}archive'
Chris@1 8408 ;;
Chris@1 8409
Chris@1 8410 irix5* | irix6* | nonstopux*)
Chris@1 8411 lt_prog_compiler_wl='-Wl,'
Chris@1 8412 # PIC (with -KPIC) is the default.
Chris@1 8413 lt_prog_compiler_static='-non_shared'
Chris@1 8414 ;;
Chris@1 8415
Chris@1 8416 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@1 8417 case $cc_basename in
Chris@1 8418 # old Intel for x86_64 which still supported -KPIC.
Chris@1 8419 ecc*)
Chris@1 8420 lt_prog_compiler_wl='-Wl,'
Chris@1 8421 lt_prog_compiler_pic='-KPIC'
Chris@1 8422 lt_prog_compiler_static='-static'
Chris@1 8423 ;;
Chris@1 8424 # icc used to be incompatible with GCC.
Chris@1 8425 # ICC 10 doesn't accept -KPIC any more.
Chris@1 8426 icc* | ifort*)
Chris@1 8427 lt_prog_compiler_wl='-Wl,'
Chris@1 8428 lt_prog_compiler_pic='-fPIC'
Chris@1 8429 lt_prog_compiler_static='-static'
Chris@1 8430 ;;
Chris@1 8431 # Lahey Fortran 8.1.
Chris@1 8432 lf95*)
Chris@1 8433 lt_prog_compiler_wl='-Wl,'
Chris@1 8434 lt_prog_compiler_pic='--shared'
Chris@1 8435 lt_prog_compiler_static='--static'
Chris@1 8436 ;;
Chris@1 8437 nagfor*)
Chris@1 8438 # NAG Fortran compiler
Chris@1 8439 lt_prog_compiler_wl='-Wl,-Wl,,'
Chris@1 8440 lt_prog_compiler_pic='-PIC'
Chris@1 8441 lt_prog_compiler_static='-Bstatic'
Chris@1 8442 ;;
Chris@1 8443 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Chris@1 8444 # Portland Group compilers (*not* the Pentium gcc compiler,
Chris@1 8445 # which looks to be a dead project)
Chris@1 8446 lt_prog_compiler_wl='-Wl,'
Chris@1 8447 lt_prog_compiler_pic='-fpic'
Chris@1 8448 lt_prog_compiler_static='-Bstatic'
Chris@1 8449 ;;
Chris@1 8450 ccc*)
Chris@1 8451 lt_prog_compiler_wl='-Wl,'
Chris@1 8452 # All Alpha code is PIC.
Chris@1 8453 lt_prog_compiler_static='-non_shared'
Chris@1 8454 ;;
Chris@1 8455 xl* | bgxl* | bgf* | mpixl*)
Chris@1 8456 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Chris@1 8457 lt_prog_compiler_wl='-Wl,'
Chris@1 8458 lt_prog_compiler_pic='-qpic'
Chris@1 8459 lt_prog_compiler_static='-qstaticlink'
Chris@1 8460 ;;
Chris@1 8461 *)
Chris@1 8462 case `$CC -V 2>&1 | sed 5q` in
Chris@1 8463 *Sun\ F* | *Sun*Fortran*)
Chris@1 8464 # Sun Fortran 8.3 passes all unrecognized flags to the linker
Chris@1 8465 lt_prog_compiler_pic='-KPIC'
Chris@1 8466 lt_prog_compiler_static='-Bstatic'
Chris@1 8467 lt_prog_compiler_wl=''
Chris@1 8468 ;;
Chris@1 8469 *Sun\ C*)
Chris@1 8470 # Sun C 5.9
Chris@1 8471 lt_prog_compiler_pic='-KPIC'
Chris@1 8472 lt_prog_compiler_static='-Bstatic'
Chris@1 8473 lt_prog_compiler_wl='-Wl,'
Chris@1 8474 ;;
Chris@1 8475 esac
Chris@1 8476 ;;
Chris@1 8477 esac
Chris@1 8478 ;;
Chris@1 8479
Chris@1 8480 newsos6)
Chris@1 8481 lt_prog_compiler_pic='-KPIC'
Chris@1 8482 lt_prog_compiler_static='-Bstatic'
Chris@1 8483 ;;
Chris@1 8484
Chris@1 8485 *nto* | *qnx*)
Chris@1 8486 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@1 8487 # it will coredump.
Chris@1 8488 lt_prog_compiler_pic='-fPIC -shared'
Chris@1 8489 ;;
Chris@1 8490
Chris@1 8491 osf3* | osf4* | osf5*)
Chris@1 8492 lt_prog_compiler_wl='-Wl,'
Chris@1 8493 # All OSF/1 code is PIC.
Chris@1 8494 lt_prog_compiler_static='-non_shared'
Chris@1 8495 ;;
Chris@1 8496
Chris@1 8497 rdos*)
Chris@1 8498 lt_prog_compiler_static='-non_shared'
Chris@1 8499 ;;
Chris@1 8500
Chris@1 8501 solaris*)
Chris@1 8502 lt_prog_compiler_pic='-KPIC'
Chris@1 8503 lt_prog_compiler_static='-Bstatic'
Chris@1 8504 case $cc_basename in
Chris@1 8505 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Chris@1 8506 lt_prog_compiler_wl='-Qoption ld ';;
Chris@1 8507 *)
Chris@1 8508 lt_prog_compiler_wl='-Wl,';;
Chris@1 8509 esac
Chris@1 8510 ;;
Chris@1 8511
Chris@1 8512 sunos4*)
Chris@1 8513 lt_prog_compiler_wl='-Qoption ld '
Chris@1 8514 lt_prog_compiler_pic='-PIC'
Chris@1 8515 lt_prog_compiler_static='-Bstatic'
Chris@1 8516 ;;
Chris@1 8517
Chris@1 8518 sysv4 | sysv4.2uw2* | sysv4.3*)
Chris@1 8519 lt_prog_compiler_wl='-Wl,'
Chris@1 8520 lt_prog_compiler_pic='-KPIC'
Chris@1 8521 lt_prog_compiler_static='-Bstatic'
Chris@1 8522 ;;
Chris@1 8523
Chris@1 8524 sysv4*MP*)
Chris@1 8525 if test -d /usr/nec ;then
Chris@1 8526 lt_prog_compiler_pic='-Kconform_pic'
Chris@1 8527 lt_prog_compiler_static='-Bstatic'
Chris@1 8528 fi
Chris@1 8529 ;;
Chris@1 8530
Chris@1 8531 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
Chris@1 8532 lt_prog_compiler_wl='-Wl,'
Chris@1 8533 lt_prog_compiler_pic='-KPIC'
Chris@1 8534 lt_prog_compiler_static='-Bstatic'
Chris@1 8535 ;;
Chris@1 8536
Chris@1 8537 unicos*)
Chris@1 8538 lt_prog_compiler_wl='-Wl,'
Chris@1 8539 lt_prog_compiler_can_build_shared=no
Chris@1 8540 ;;
Chris@1 8541
Chris@1 8542 uts4*)
Chris@1 8543 lt_prog_compiler_pic='-pic'
Chris@1 8544 lt_prog_compiler_static='-Bstatic'
Chris@1 8545 ;;
Chris@1 8546
Chris@1 8547 *)
Chris@1 8548 lt_prog_compiler_can_build_shared=no
Chris@1 8549 ;;
Chris@1 8550 esac
Chris@1 8551 fi
Chris@1 8552
Chris@1 8553 case $host_os in
Chris@1 8554 # For platforms which do not support PIC, -DPIC is meaningless:
Chris@1 8555 *djgpp*)
Chris@1 8556 lt_prog_compiler_pic=
Chris@1 8557 ;;
Chris@1 8558 *)
Chris@1 8559 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
Chris@1 8560 ;;
Chris@1 8561 esac
Chris@1 8562
Chris@1 8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
Chris@1 8564 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Chris@1 8565 if ${lt_cv_prog_compiler_pic+:} false; then :
Chris@1 8566 $as_echo_n "(cached) " >&6
Chris@1 8567 else
Chris@1 8568 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
Chris@1 8569 fi
Chris@1 8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
Chris@1 8571 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
Chris@1 8572 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
Chris@1 8573
Chris@1 8574 #
Chris@1 8575 # Check to make sure the PIC flag actually works.
Chris@1 8576 #
Chris@1 8577 if test -n "$lt_prog_compiler_pic"; then
Chris@1 8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
Chris@1 8579 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Chris@1 8580 if ${lt_cv_prog_compiler_pic_works+:} false; then :
Chris@1 8581 $as_echo_n "(cached) " >&6
Chris@1 8582 else
Chris@1 8583 lt_cv_prog_compiler_pic_works=no
Chris@1 8584 ac_outfile=conftest.$ac_objext
Chris@1 8585 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@1 8586 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
Chris@1 8587 # Insert the option either (1) after the last *FLAGS variable, or
Chris@1 8588 # (2) before a word containing "conftest.", or (3) at the end.
Chris@1 8589 # Note that $ac_compile itself does not contain backslashes and begins
Chris@1 8590 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@1 8591 # The option is referenced via a variable to avoid confusing sed.
Chris@1 8592 lt_compile=`echo "$ac_compile" | $SED \
Chris@1 8593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@1 8594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@1 8595 -e 's:$: $lt_compiler_flag:'`
Chris@1 8596 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@1 8597 (eval "$lt_compile" 2>conftest.err)
Chris@1 8598 ac_status=$?
Chris@1 8599 cat conftest.err >&5
Chris@1 8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@1 8601 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@1 8602 # The compiler can only warn and ignore the option if not recognized
Chris@1 8603 # So say no if there are warnings other than the usual output.
Chris@1 8604 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Chris@1 8605 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@1 8606 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Chris@1 8607 lt_cv_prog_compiler_pic_works=yes
Chris@1 8608 fi
Chris@1 8609 fi
Chris@1 8610 $RM conftest*
Chris@1 8611
Chris@1 8612 fi
Chris@1 8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
Chris@1 8614 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
Chris@1 8615
Chris@1 8616 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
Chris@1 8617 case $lt_prog_compiler_pic in
Chris@1 8618 "" | " "*) ;;
Chris@1 8619 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
Chris@1 8620 esac
Chris@1 8621 else
Chris@1 8622 lt_prog_compiler_pic=
Chris@1 8623 lt_prog_compiler_can_build_shared=no
Chris@1 8624 fi
Chris@1 8625
Chris@1 8626 fi
Chris@1 8627
Chris@1 8628
Chris@1 8629
Chris@1 8630
Chris@1 8631
Chris@1 8632
Chris@1 8633
Chris@1 8634
Chris@1 8635
Chris@1 8636
Chris@1 8637
Chris@1 8638 #
Chris@1 8639 # Check to make sure the static flag actually works.
Chris@1 8640 #
Chris@1 8641 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Chris@1 8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
Chris@1 8643 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Chris@1 8644 if ${lt_cv_prog_compiler_static_works+:} false; then :
Chris@1 8645 $as_echo_n "(cached) " >&6
Chris@1 8646 else
Chris@1 8647 lt_cv_prog_compiler_static_works=no
Chris@1 8648 save_LDFLAGS="$LDFLAGS"
Chris@1 8649 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Chris@1 8650 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Chris@1 8651 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Chris@1 8652 # The linker can only warn and ignore the option if not recognized
Chris@1 8653 # So say no if there are warnings
Chris@1 8654 if test -s conftest.err; then
Chris@1 8655 # Append any errors to the config.log.
Chris@1 8656 cat conftest.err 1>&5
Chris@1 8657 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Chris@1 8658 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@1 8659 if diff conftest.exp conftest.er2 >/dev/null; then
Chris@1 8660 lt_cv_prog_compiler_static_works=yes
Chris@1 8661 fi
Chris@1 8662 else
Chris@1 8663 lt_cv_prog_compiler_static_works=yes
Chris@1 8664 fi
Chris@1 8665 fi
Chris@1 8666 $RM -r conftest*
Chris@1 8667 LDFLAGS="$save_LDFLAGS"
Chris@1 8668
Chris@1 8669 fi
Chris@1 8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
Chris@1 8671 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
Chris@1 8672
Chris@1 8673 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
Chris@1 8674 :
Chris@1 8675 else
Chris@1 8676 lt_prog_compiler_static=
Chris@1 8677 fi
Chris@1 8678
Chris@1 8679
Chris@1 8680
Chris@1 8681
Chris@1 8682
Chris@1 8683
Chris@1 8684
Chris@1 8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@1 8686 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@1 8687 if ${lt_cv_prog_compiler_c_o+:} false; then :
Chris@1 8688 $as_echo_n "(cached) " >&6
Chris@1 8689 else
Chris@1 8690 lt_cv_prog_compiler_c_o=no
Chris@1 8691 $RM -r conftest 2>/dev/null
Chris@1 8692 mkdir conftest
Chris@1 8693 cd conftest
Chris@1 8694 mkdir out
Chris@1 8695 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@1 8696
Chris@1 8697 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@1 8698 # Insert the option either (1) after the last *FLAGS variable, or
Chris@1 8699 # (2) before a word containing "conftest.", or (3) at the end.
Chris@1 8700 # Note that $ac_compile itself does not contain backslashes and begins
Chris@1 8701 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@1 8702 lt_compile=`echo "$ac_compile" | $SED \
Chris@1 8703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@1 8704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@1 8705 -e 's:$: $lt_compiler_flag:'`
Chris@1 8706 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@1 8707 (eval "$lt_compile" 2>out/conftest.err)
Chris@1 8708 ac_status=$?
Chris@1 8709 cat out/conftest.err >&5
Chris@1 8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@1 8711 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@1 8712 then
Chris@1 8713 # The compiler can only warn and ignore the option if not recognized
Chris@1 8714 # So say no if there are warnings
Chris@1 8715 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@1 8716 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@1 8717 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@1 8718 lt_cv_prog_compiler_c_o=yes
Chris@1 8719 fi
Chris@1 8720 fi
Chris@1 8721 chmod u+w . 2>&5
Chris@1 8722 $RM conftest*
Chris@1 8723 # SGI C++ compiler will create directory out/ii_files/ for
Chris@1 8724 # template instantiation
Chris@1 8725 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@1 8726 $RM out/* && rmdir out
Chris@1 8727 cd ..
Chris@1 8728 $RM -r conftest
Chris@1 8729 $RM conftest*
Chris@1 8730
Chris@1 8731 fi
Chris@1 8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Chris@1 8733 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Chris@1 8734
Chris@1 8735
Chris@1 8736
Chris@1 8737
Chris@1 8738
Chris@1 8739
Chris@1 8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@1 8741 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@1 8742 if ${lt_cv_prog_compiler_c_o+:} false; then :
Chris@1 8743 $as_echo_n "(cached) " >&6
Chris@1 8744 else
Chris@1 8745 lt_cv_prog_compiler_c_o=no
Chris@1 8746 $RM -r conftest 2>/dev/null
Chris@1 8747 mkdir conftest
Chris@1 8748 cd conftest
Chris@1 8749 mkdir out
Chris@1 8750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@1 8751
Chris@1 8752 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@1 8753 # Insert the option either (1) after the last *FLAGS variable, or
Chris@1 8754 # (2) before a word containing "conftest.", or (3) at the end.
Chris@1 8755 # Note that $ac_compile itself does not contain backslashes and begins
Chris@1 8756 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@1 8757 lt_compile=`echo "$ac_compile" | $SED \
Chris@1 8758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@1 8759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@1 8760 -e 's:$: $lt_compiler_flag:'`
Chris@1 8761 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@1 8762 (eval "$lt_compile" 2>out/conftest.err)
Chris@1 8763 ac_status=$?
Chris@1 8764 cat out/conftest.err >&5
Chris@1 8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@1 8766 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@1 8767 then
Chris@1 8768 # The compiler can only warn and ignore the option if not recognized
Chris@1 8769 # So say no if there are warnings
Chris@1 8770 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@1 8771 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@1 8772 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@1 8773 lt_cv_prog_compiler_c_o=yes
Chris@1 8774 fi
Chris@1 8775 fi
Chris@1 8776 chmod u+w . 2>&5
Chris@1 8777 $RM conftest*
Chris@1 8778 # SGI C++ compiler will create directory out/ii_files/ for
Chris@1 8779 # template instantiation
Chris@1 8780 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@1 8781 $RM out/* && rmdir out
Chris@1 8782 cd ..
Chris@1 8783 $RM -r conftest
Chris@1 8784 $RM conftest*
Chris@1 8785
Chris@1 8786 fi
Chris@1 8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Chris@1 8788 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Chris@1 8789
Chris@1 8790
Chris@1 8791
Chris@1 8792
Chris@1 8793 hard_links="nottested"
Chris@1 8794 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
Chris@1 8795 # do not overwrite the value of need_locks provided by the user
Chris@1 8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Chris@1 8797 $as_echo_n "checking if we can lock with hard links... " >&6; }
Chris@1 8798 hard_links=yes
Chris@1 8799 $RM conftest*
Chris@1 8800 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@1 8801 touch conftest.a
Chris@1 8802 ln conftest.a conftest.b 2>&5 || hard_links=no
Chris@1 8803 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@1 8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Chris@1 8805 $as_echo "$hard_links" >&6; }
Chris@1 8806 if test "$hard_links" = no; then
Chris@1 8807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
Chris@1 8808 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
Chris@1 8809 need_locks=warn
Chris@1 8810 fi
Chris@1 8811 else
Chris@1 8812 need_locks=no
Chris@1 8813 fi
Chris@1 8814
Chris@1 8815
Chris@1 8816
Chris@1 8817
Chris@1 8818
Chris@1 8819
Chris@1 8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Chris@1 8821 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Chris@1 8822
Chris@1 8823 runpath_var=
Chris@1 8824 allow_undefined_flag=
Chris@1 8825 always_export_symbols=no
Chris@1 8826 archive_cmds=
Chris@1 8827 archive_expsym_cmds=
Chris@1 8828 compiler_needs_object=no
Chris@1 8829 enable_shared_with_static_runtimes=no
Chris@1 8830 export_dynamic_flag_spec=
Chris@1 8831 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Chris@1 8832 hardcode_automatic=no
Chris@1 8833 hardcode_direct=no
Chris@1 8834 hardcode_direct_absolute=no
Chris@1 8835 hardcode_libdir_flag_spec=
Chris@1 8836 hardcode_libdir_flag_spec_ld=
Chris@1 8837 hardcode_libdir_separator=
Chris@1 8838 hardcode_minus_L=no
Chris@1 8839 hardcode_shlibpath_var=unsupported
Chris@1 8840 inherit_rpath=no
Chris@1 8841 link_all_deplibs=unknown
Chris@1 8842 module_cmds=
Chris@1 8843 module_expsym_cmds=
Chris@1 8844 old_archive_from_new_cmds=
Chris@1 8845 old_archive_from_expsyms_cmds=
Chris@1 8846 thread_safe_flag_spec=
Chris@1 8847 whole_archive_flag_spec=
Chris@1 8848 # include_expsyms should be a list of space-separated symbols to be *always*
Chris@1 8849 # included in the symbol list
Chris@1 8850 include_expsyms=
Chris@1 8851 # exclude_expsyms can be an extended regexp of symbols to exclude
Chris@1 8852 # it will be wrapped by ` (' and `)$', so one must not match beginning or
Chris@1 8853 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
Chris@1 8854 # as well as any symbol that contains `d'.
Chris@1 8855 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Chris@1 8856 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
Chris@1 8857 # platforms (ab)use it in PIC code, but their linkers get confused if
Chris@1 8858 # the symbol is explicitly referenced. Since portable code cannot
Chris@1 8859 # rely on this symbol name, it's probably fine to never include it in
Chris@1 8860 # preloaded symbol tables.
Chris@1 8861 # Exclude shared library initialization/finalization symbols.
Chris@1 8862 extract_expsyms_cmds=
Chris@1 8863
Chris@1 8864 case $host_os in
Chris@1 8865 cygwin* | mingw* | pw32* | cegcc*)
Chris@1 8866 # FIXME: the MSVC++ port hasn't been tested in a loooong time
Chris@1 8867 # When not using gcc, we currently assume that we are using
Chris@1 8868 # Microsoft Visual C++.
Chris@1 8869 if test "$GCC" != yes; then
Chris@1 8870 with_gnu_ld=no
Chris@1 8871 fi
Chris@1 8872 ;;
Chris@1 8873 interix*)
Chris@1 8874 # we just hope/assume this is gcc and not c89 (= MSVC++)
Chris@1 8875 with_gnu_ld=yes
Chris@1 8876 ;;
Chris@1 8877 openbsd*)
Chris@1 8878 with_gnu_ld=no
Chris@1 8879 ;;
Chris@1 8880 linux* | k*bsd*-gnu | gnu*)
Chris@1 8881 link_all_deplibs=no
Chris@1 8882 ;;
Chris@1 8883 esac
Chris@1 8884
Chris@1 8885 ld_shlibs=yes
Chris@1 8886
Chris@1 8887 # On some targets, GNU ld is compatible enough with the native linker
Chris@1 8888 # that we're better off using the native interface for both.
Chris@1 8889 lt_use_gnu_ld_interface=no
Chris@1 8890 if test "$with_gnu_ld" = yes; then
Chris@1 8891 case $host_os in
Chris@1 8892 aix*)
Chris@1 8893 # The AIX port of GNU ld has always aspired to compatibility
Chris@1 8894 # with the native linker. However, as the warning in the GNU ld
Chris@1 8895 # block says, versions before 2.19.5* couldn't really create working
Chris@1 8896 # shared libraries, regardless of the interface used.
Chris@1 8897 case `$LD -v 2>&1` in
Chris@1 8898 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
Chris@1 8899 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
Chris@1 8900 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
Chris@1 8901 *)
Chris@1 8902 lt_use_gnu_ld_interface=yes
Chris@1 8903 ;;
Chris@1 8904 esac
Chris@1 8905 ;;
Chris@1 8906 *)
Chris@1 8907 lt_use_gnu_ld_interface=yes
Chris@1 8908 ;;
Chris@1 8909 esac
Chris@1 8910 fi
Chris@1 8911
Chris@1 8912 if test "$lt_use_gnu_ld_interface" = yes; then
Chris@1 8913 # If archive_cmds runs LD, not CC, wlarc should be empty
Chris@1 8914 wlarc='${wl}'
Chris@1 8915
Chris@1 8916 # Set some defaults for GNU ld with shared library support. These
Chris@1 8917 # are reset later if shared libraries are not supported. Putting them
Chris@1 8918 # here allows them to be overridden if necessary.
Chris@1 8919 runpath_var=LD_RUN_PATH
Chris@1 8920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@1 8921 export_dynamic_flag_spec='${wl}--export-dynamic'
Chris@1 8922 # ancient GNU ld didn't support --whole-archive et. al.
Chris@1 8923 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
Chris@1 8924 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
Chris@1 8925 else
Chris@1 8926 whole_archive_flag_spec=
Chris@1 8927 fi
Chris@1 8928 supports_anon_versioning=no
Chris@1 8929 case `$LD -v 2>&1` in
Chris@1 8930 *GNU\ gold*) supports_anon_versioning=yes ;;
Chris@1 8931 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
Chris@1 8932 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
Chris@1 8933 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
Chris@1 8934 *\ 2.11.*) ;; # other 2.11 versions
Chris@1 8935 *) supports_anon_versioning=yes ;;
Chris@1 8936 esac
Chris@1 8937
Chris@1 8938 # See if GNU ld supports shared libraries.
Chris@1 8939 case $host_os in
Chris@1 8940 aix[3-9]*)
Chris@1 8941 # On AIX/PPC, the GNU linker is very broken
Chris@1 8942 if test "$host_cpu" != ia64; then
Chris@1 8943 ld_shlibs=no
Chris@1 8944 cat <<_LT_EOF 1>&2
Chris@1 8945
Chris@1 8946 *** Warning: the GNU linker, at least up to release 2.19, is reported
Chris@1 8947 *** to be unable to reliably create shared libraries on AIX.
Chris@1 8948 *** Therefore, libtool is disabling shared libraries support. If you
Chris@1 8949 *** really care for shared libraries, you may want to install binutils
Chris@1 8950 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
Chris@1 8951 *** You will then need to restart the configuration process.
Chris@1 8952
Chris@1 8953 _LT_EOF
Chris@1 8954 fi
Chris@1 8955 ;;
Chris@1 8956
Chris@1 8957 amigaos*)
Chris@1 8958 case $host_cpu in
Chris@1 8959 powerpc)
Chris@1 8960 # see comment about AmigaOS4 .so support
Chris@1 8961 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@1 8962 archive_expsym_cmds=''
Chris@1 8963 ;;
Chris@1 8964 m68k)
Chris@1 8965 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@1 8966 hardcode_libdir_flag_spec='-L$libdir'
Chris@1 8967 hardcode_minus_L=yes
Chris@1 8968 ;;
Chris@1 8969 esac
Chris@1 8970 ;;
Chris@1 8971
Chris@1 8972 beos*)
Chris@1 8973 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@1 8974 allow_undefined_flag=unsupported
Chris@1 8975 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
Chris@1 8976 # support --undefined. This deserves some investigation. FIXME
Chris@1 8977 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@1 8978 else
Chris@1 8979 ld_shlibs=no
Chris@1 8980 fi
Chris@1 8981 ;;
Chris@1 8982
Chris@1 8983 cygwin* | mingw* | pw32* | cegcc*)
Chris@1 8984 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
Chris@1 8985 # as there is no search path for DLLs.
Chris@1 8986 hardcode_libdir_flag_spec='-L$libdir'
Chris@1 8987 export_dynamic_flag_spec='${wl}--export-all-symbols'
Chris@1 8988 allow_undefined_flag=unsupported
Chris@1 8989 always_export_symbols=no
Chris@1 8990 enable_shared_with_static_runtimes=yes
Chris@1 8991 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@1 8992 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
Chris@1 8993
Chris@1 8994 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Chris@1 8995 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Chris@1 8996 # If the export-symbols file already is a .def file (1st line
Chris@1 8997 # is EXPORTS), use it as is; otherwise, prepend...
Chris@1 8998 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
Chris@1 8999 cp $export_symbols $output_objdir/$soname.def;
Chris@1 9000 else
Chris@1 9001 echo EXPORTS > $output_objdir/$soname.def;
Chris@1 9002 cat $export_symbols >> $output_objdir/$soname.def;
Chris@1 9003 fi~
Chris@1 9004 $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@1 9005 else
Chris@1 9006 ld_shlibs=no
Chris@1 9007 fi
Chris@1 9008 ;;
Chris@1 9009
Chris@1 9010 haiku*)
Chris@1 9011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@1 9012 link_all_deplibs=yes
Chris@1 9013 ;;
Chris@1 9014
Chris@1 9015 interix[3-9]*)
Chris@1 9016 hardcode_direct=no
Chris@1 9017 hardcode_shlibpath_var=no
Chris@1 9018 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
Chris@1 9019 export_dynamic_flag_spec='${wl}-E'
Chris@1 9020 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
Chris@1 9021 # Instead, shared libraries are loaded at an image base (0x10000000 by
Chris@1 9022 # default) and relocated if they conflict, which is a slow very memory
Chris@1 9023 # consuming and fragmenting process. To avoid this, we pick a random,
Chris@1 9024 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
Chris@1 9025 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Chris@1 9026 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@1 9027 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@1 9028 ;;
Chris@1 9029
Chris@1 9030 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@1 9031 tmp_diet=no
Chris@1 9032 if test "$host_os" = linux-dietlibc; then
Chris@1 9033 case $cc_basename in
Chris@1 9034 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
Chris@1 9035 esac
Chris@1 9036 fi
Chris@1 9037 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
Chris@1 9038 && test "$tmp_diet" = no
Chris@1 9039 then
Chris@1 9040 tmp_addflag=' $pic_flag'
Chris@1 9041 tmp_sharedflag='-shared'
Chris@1 9042 case $cc_basename,$host_cpu in
Chris@1 9043 pgcc*) # Portland Group C compiler
Chris@1 9044 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@1 9045 tmp_addflag=' $pic_flag'
Chris@1 9046 ;;
Chris@1 9047 pgf77* | pgf90* | pgf95* | pgfortran*)
Chris@1 9048 # Portland Group f77 and f90 compilers
Chris@1 9049 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@1 9050 tmp_addflag=' $pic_flag -Mnomain' ;;
Chris@1 9051 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Chris@1 9052 tmp_addflag=' -i_dynamic' ;;
Chris@1 9053 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
Chris@1 9054 tmp_addflag=' -i_dynamic -nofor_main' ;;
Chris@1 9055 ifc* | ifort*) # Intel Fortran compiler
Chris@1 9056 tmp_addflag=' -nofor_main' ;;
Chris@1 9057 lf95*) # Lahey Fortran 8.1
Chris@1 9058 whole_archive_flag_spec=
Chris@1 9059 tmp_sharedflag='--shared' ;;
Chris@1 9060 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Chris@1 9061 tmp_sharedflag='-qmkshrobj'
Chris@1 9062 tmp_addflag= ;;
Chris@1 9063 nvcc*) # Cuda Compiler Driver 2.2
Chris@1 9064 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@1 9065 compiler_needs_object=yes
Chris@1 9066 ;;
Chris@1 9067 esac
Chris@1 9068 case `$CC -V 2>&1 | sed 5q` in
Chris@1 9069 *Sun\ C*) # Sun C 5.9
Chris@1 9070 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@1 9071 compiler_needs_object=yes
Chris@1 9072 tmp_sharedflag='-G' ;;
Chris@1 9073 *Sun\ F*) # Sun Fortran 8.3
Chris@1 9074 tmp_sharedflag='-G' ;;
Chris@1 9075 esac
Chris@1 9076 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@1 9077
Chris@1 9078 if test "x$supports_anon_versioning" = xyes; then
Chris@1 9079 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Chris@1 9080 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@1 9081 echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@1 9082 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
Chris@1 9083 fi
Chris@1 9084
Chris@1 9085 case $cc_basename in
Chris@1 9086 xlf* | bgf* | bgxlf* | mpixlf*)
Chris@1 9087 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
Chris@1 9088 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
Chris@1 9089 hardcode_libdir_flag_spec=
Chris@1 9090 hardcode_libdir_flag_spec_ld='-rpath $libdir'
Chris@1 9091 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Chris@1 9092 if test "x$supports_anon_versioning" = xyes; then
Chris@1 9093 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Chris@1 9094 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@1 9095 echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@1 9096 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Chris@1 9097 fi
Chris@1 9098 ;;
Chris@1 9099 esac
Chris@1 9100 else
Chris@1 9101 ld_shlibs=no
Chris@1 9102 fi
Chris@1 9103 ;;
Chris@1 9104
Chris@1 9105 netbsd* | netbsdelf*-gnu)
Chris@1 9106 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@1 9107 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
Chris@1 9108 wlarc=
Chris@1 9109 else
Chris@1 9110 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@1 9111 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@1 9112 fi
Chris@1 9113 ;;
Chris@1 9114
Chris@1 9115 solaris*)
Chris@1 9116 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Chris@1 9117 ld_shlibs=no
Chris@1 9118 cat <<_LT_EOF 1>&2
Chris@1 9119
Chris@1 9120 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
Chris@1 9121 *** create shared libraries on Solaris systems. Therefore, libtool
Chris@1 9122 *** is disabling shared libraries support. We urge you to upgrade GNU
Chris@1 9123 *** binutils to release 2.9.1 or newer. Another option is to modify
Chris@1 9124 *** your PATH or compiler configuration so that the native linker is
Chris@1 9125 *** used, and then restart.
Chris@1 9126
Chris@1 9127 _LT_EOF
Chris@1 9128 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@1 9129 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@1 9130 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@1 9131 else
Chris@1 9132 ld_shlibs=no
Chris@1 9133 fi
Chris@1 9134 ;;
Chris@1 9135
Chris@1 9136 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
Chris@1 9137 case `$LD -v 2>&1` in
Chris@1 9138 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
Chris@1 9139 ld_shlibs=no
Chris@1 9140 cat <<_LT_EOF 1>&2
Chris@1 9141
Chris@1 9142 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
Chris@1 9143 *** reliably create shared libraries on SCO systems. Therefore, libtool
Chris@1 9144 *** is disabling shared libraries support. We urge you to upgrade GNU
Chris@1 9145 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
Chris@1 9146 *** your PATH or compiler configuration so that the native linker is
Chris@1 9147 *** used, and then restart.
Chris@1 9148
Chris@1 9149 _LT_EOF
Chris@1 9150 ;;
Chris@1 9151 *)
Chris@1 9152 # For security reasons, it is highly recommended that you always
Chris@1 9153 # use absolute paths for naming shared libraries, and exclude the
Chris@1 9154 # DT_RUNPATH tag from executables and libraries. But doing so
Chris@1 9155 # requires that you compile everything twice, which is a pain.
Chris@1 9156 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@1 9157 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@1 9158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@1 9159 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@1 9160 else
Chris@1 9161 ld_shlibs=no
Chris@1 9162 fi
Chris@1 9163 ;;
Chris@1 9164 esac
Chris@1 9165 ;;
Chris@1 9166
Chris@1 9167 sunos4*)
Chris@1 9168 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@1 9169 wlarc=
Chris@1 9170 hardcode_direct=yes
Chris@1 9171 hardcode_shlibpath_var=no
Chris@1 9172 ;;
Chris@1 9173
Chris@1 9174 *)
Chris@1 9175 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@1 9176 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@1 9177 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@1 9178 else
Chris@1 9179 ld_shlibs=no
Chris@1 9180 fi
Chris@1 9181 ;;
Chris@1 9182 esac
Chris@1 9183
Chris@1 9184 if test "$ld_shlibs" = no; then
Chris@1 9185 runpath_var=
Chris@1 9186 hardcode_libdir_flag_spec=
Chris@1 9187 export_dynamic_flag_spec=
Chris@1 9188 whole_archive_flag_spec=
Chris@1 9189 fi
Chris@1 9190 else
Chris@1 9191 # PORTME fill in a description of your system's linker (not GNU ld)
Chris@1 9192 case $host_os in
Chris@1 9193 aix3*)
Chris@1 9194 allow_undefined_flag=unsupported
Chris@1 9195 always_export_symbols=yes
Chris@1 9196 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@1 9197 # Note: this linker hardcodes the directories in LIBPATH if there
Chris@1 9198 # are no directories specified by -L.
Chris@1 9199 hardcode_minus_L=yes
Chris@1 9200 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
Chris@1 9201 # Neither direct hardcoding nor static linking is supported with a
Chris@1 9202 # broken collect2.
Chris@1 9203 hardcode_direct=unsupported
Chris@1 9204 fi
Chris@1 9205 ;;
Chris@1 9206
Chris@1 9207 aix[4-9]*)
Chris@1 9208 if test "$host_cpu" = ia64; then
Chris@1 9209 # On IA64, the linker does run time linking by default, so we don't
Chris@1 9210 # have to do anything special.
Chris@1 9211 aix_use_runtimelinking=no
Chris@1 9212 exp_sym_flag='-Bexport'
Chris@1 9213 no_entry_flag=""
Chris@1 9214 else
Chris@1 9215 # If we're using GNU nm, then we don't want the "-C" option.
Chris@1 9216 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Chris@1 9217 # Also, AIX nm treats weak defined symbols like other global
Chris@1 9218 # defined symbols, whereas GNU nm marks them as "W".
Chris@1 9219 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Chris@1 9220 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@1 9221 else
Chris@1 9222 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@1 9223 fi
Chris@1 9224 aix_use_runtimelinking=no
Chris@1 9225
Chris@1 9226 # Test if we are trying to use run time linking or normal
Chris@1 9227 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Chris@1 9228 # need to do runtime linking.
Chris@1 9229 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Chris@1 9230 for ld_flag in $LDFLAGS; do
Chris@1 9231 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
Chris@1 9232 aix_use_runtimelinking=yes
Chris@1 9233 break
Chris@1 9234 fi
Chris@1 9235 done
Chris@1 9236 ;;
Chris@1 9237 esac
Chris@1 9238
Chris@1 9239 exp_sym_flag='-bexport'
Chris@1 9240 no_entry_flag='-bnoentry'
Chris@1 9241 fi
Chris@1 9242
Chris@1 9243 # When large executables or shared objects are built, AIX ld can
Chris@1 9244 # have problems creating the table of contents. If linking a library
Chris@1 9245 # or program results in "error TOC overflow" add -mminimal-toc to
Chris@1 9246 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
Chris@1 9247 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
Chris@1 9248
Chris@1 9249 archive_cmds=''
Chris@1 9250 hardcode_direct=yes
Chris@1 9251 hardcode_direct_absolute=yes
Chris@1 9252 hardcode_libdir_separator=':'
Chris@1 9253 link_all_deplibs=yes
Chris@1 9254 file_list_spec='${wl}-f,'
Chris@1 9255
Chris@1 9256 if test "$GCC" = yes; then
Chris@1 9257 case $host_os in aix4.[012]|aix4.[012].*)
Chris@1 9258 # We only want to do this on AIX 4.2 and lower, the check
Chris@1 9259 # below for broken collect2 doesn't work under 4.3+
Chris@1 9260 collect2name=`${CC} -print-prog-name=collect2`
Chris@1 9261 if test -f "$collect2name" &&
Chris@1 9262 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Chris@1 9263 then
Chris@1 9264 # We have reworked collect2
Chris@1 9265 :
Chris@1 9266 else
Chris@1 9267 # We have old collect2
Chris@1 9268 hardcode_direct=unsupported
Chris@1 9269 # It fails to find uninstalled libraries when the uninstalled
Chris@1 9270 # path is not listed in the libpath. Setting hardcode_minus_L
Chris@1 9271 # to unsupported forces relinking
Chris@1 9272 hardcode_minus_L=yes
Chris@1 9273 hardcode_libdir_flag_spec='-L$libdir'
Chris@1 9274 hardcode_libdir_separator=
Chris@1 9275 fi
Chris@1 9276 ;;
Chris@1 9277 esac
Chris@1 9278 shared_flag='-shared'
Chris@1 9279 if test "$aix_use_runtimelinking" = yes; then
Chris@1 9280 shared_flag="$shared_flag "'${wl}-G'
Chris@1 9281 fi
Chris@1 9282 link_all_deplibs=no
Chris@1 9283 else
Chris@1 9284 # not using gcc
Chris@1 9285 if test "$host_cpu" = ia64; then
Chris@1 9286 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
Chris@1 9287 # chokes on -Wl,-G. The following line is correct:
Chris@1 9288 shared_flag='-G'
Chris@1 9289 else
Chris@1 9290 if test "$aix_use_runtimelinking" = yes; then
Chris@1 9291 shared_flag='${wl}-G'
Chris@1 9292 else
Chris@1 9293 shared_flag='${wl}-bM:SRE'
Chris@1 9294 fi
Chris@1 9295 fi
Chris@1 9296 fi
Chris@1 9297
Chris@1 9298 export_dynamic_flag_spec='${wl}-bexpall'
Chris@1 9299 # It seems that -bexpall does not export symbols beginning with
Chris@1 9300 # underscore (_), so it is better to generate a list of symbols to export.
Chris@1 9301 always_export_symbols=yes
Chris@1 9302 if test "$aix_use_runtimelinking" = yes; then
Chris@1 9303 # Warning - without using the other runtime loading flags (-brtl),
Chris@1 9304 # -berok will link without error, but may produce a broken library.
Chris@1 9305 allow_undefined_flag='-berok'
Chris@1 9306 # Determine the default libpath from the value encoded in an
Chris@1 9307 # empty executable.
Chris@1 9308 if test "${lt_cv_aix_libpath+set}" = set; then
Chris@1 9309 aix_libpath=$lt_cv_aix_libpath
Chris@1 9310 else
Chris@1 9311 if ${lt_cv_aix_libpath_+:} false; then :
Chris@1 9312 $as_echo_n "(cached) " >&6
Chris@1 9313 else
Chris@1 9314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 9315 /* end confdefs.h. */
Chris@1 9316
Chris@1 9317 int
Chris@1 9318 main ()
Chris@1 9319 {
Chris@1 9320
Chris@1 9321 ;
Chris@1 9322 return 0;
Chris@1 9323 }
Chris@1 9324 _ACEOF
Chris@1 9325 if ac_fn_c_try_link "$LINENO"; then :
Chris@1 9326
Chris@1 9327 lt_aix_libpath_sed='
Chris@1 9328 /Import File Strings/,/^$/ {
Chris@1 9329 /^0/ {
Chris@1 9330 s/^0 *\([^ ]*\) *$/\1/
Chris@1 9331 p
Chris@1 9332 }
Chris@1 9333 }'
Chris@1 9334 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@1 9335 # Check for a 64-bit object if we didn't find anything.
Chris@1 9336 if test -z "$lt_cv_aix_libpath_"; then
Chris@1 9337 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@1 9338 fi
Chris@1 9339 fi
Chris@1 9340 rm -f core conftest.err conftest.$ac_objext \
Chris@1 9341 conftest$ac_exeext conftest.$ac_ext
Chris@1 9342 if test -z "$lt_cv_aix_libpath_"; then
Chris@1 9343 lt_cv_aix_libpath_="/usr/lib:/lib"
Chris@1 9344 fi
Chris@1 9345
Chris@1 9346 fi
Chris@1 9347
Chris@1 9348 aix_libpath=$lt_cv_aix_libpath_
Chris@1 9349 fi
Chris@1 9350
Chris@1 9351 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Chris@1 9352 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@1 9353 else
Chris@1 9354 if test "$host_cpu" = ia64; then
Chris@1 9355 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
Chris@1 9356 allow_undefined_flag="-z nodefs"
Chris@1 9357 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@1 9358 else
Chris@1 9359 # Determine the default libpath from the value encoded in an
Chris@1 9360 # empty executable.
Chris@1 9361 if test "${lt_cv_aix_libpath+set}" = set; then
Chris@1 9362 aix_libpath=$lt_cv_aix_libpath
Chris@1 9363 else
Chris@1 9364 if ${lt_cv_aix_libpath_+:} false; then :
Chris@1 9365 $as_echo_n "(cached) " >&6
Chris@1 9366 else
Chris@1 9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 9368 /* end confdefs.h. */
Chris@1 9369
Chris@1 9370 int
Chris@1 9371 main ()
Chris@1 9372 {
Chris@1 9373
Chris@1 9374 ;
Chris@1 9375 return 0;
Chris@1 9376 }
Chris@1 9377 _ACEOF
Chris@1 9378 if ac_fn_c_try_link "$LINENO"; then :
Chris@1 9379
Chris@1 9380 lt_aix_libpath_sed='
Chris@1 9381 /Import File Strings/,/^$/ {
Chris@1 9382 /^0/ {
Chris@1 9383 s/^0 *\([^ ]*\) *$/\1/
Chris@1 9384 p
Chris@1 9385 }
Chris@1 9386 }'
Chris@1 9387 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@1 9388 # Check for a 64-bit object if we didn't find anything.
Chris@1 9389 if test -z "$lt_cv_aix_libpath_"; then
Chris@1 9390 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@1 9391 fi
Chris@1 9392 fi
Chris@1 9393 rm -f core conftest.err conftest.$ac_objext \
Chris@1 9394 conftest$ac_exeext conftest.$ac_ext
Chris@1 9395 if test -z "$lt_cv_aix_libpath_"; then
Chris@1 9396 lt_cv_aix_libpath_="/usr/lib:/lib"
Chris@1 9397 fi
Chris@1 9398
Chris@1 9399 fi
Chris@1 9400
Chris@1 9401 aix_libpath=$lt_cv_aix_libpath_
Chris@1 9402 fi
Chris@1 9403
Chris@1 9404 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Chris@1 9405 # Warning - without using the other run time loading flags,
Chris@1 9406 # -berok will link without error, but may produce a broken library.
Chris@1 9407 no_undefined_flag=' ${wl}-bernotok'
Chris@1 9408 allow_undefined_flag=' ${wl}-berok'
Chris@1 9409 if test "$with_gnu_ld" = yes; then
Chris@1 9410 # We only use this code for GNU lds that support --whole-archive.
Chris@1 9411 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
Chris@1 9412 else
Chris@1 9413 # Exported symbols can be pulled into shared objects from archives
Chris@1 9414 whole_archive_flag_spec='$convenience'
Chris@1 9415 fi
Chris@1 9416 archive_cmds_need_lc=yes
Chris@1 9417 # This is similar to how AIX traditionally builds its shared libraries.
Chris@1 9418 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@1 9419 fi
Chris@1 9420 fi
Chris@1 9421 ;;
Chris@1 9422
Chris@1 9423 amigaos*)
Chris@1 9424 case $host_cpu in
Chris@1 9425 powerpc)
Chris@1 9426 # see comment about AmigaOS4 .so support
Chris@1 9427 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@1 9428 archive_expsym_cmds=''
Chris@1 9429 ;;
Chris@1 9430 m68k)
Chris@1 9431 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@1 9432 hardcode_libdir_flag_spec='-L$libdir'
Chris@1 9433 hardcode_minus_L=yes
Chris@1 9434 ;;
Chris@1 9435 esac
Chris@1 9436 ;;
Chris@1 9437
Chris@1 9438 bsdi[45]*)
Chris@1 9439 export_dynamic_flag_spec=-rdynamic
Chris@1 9440 ;;
Chris@1 9441
Chris@1 9442 cygwin* | mingw* | pw32* | cegcc*)
Chris@1 9443 # When not using gcc, we currently assume that we are using
Chris@1 9444 # Microsoft Visual C++.
Chris@1 9445 # hardcode_libdir_flag_spec is actually meaningless, as there is
Chris@1 9446 # no search path for DLLs.
Chris@1 9447 case $cc_basename in
Chris@1 9448 cl*)
Chris@1 9449 # Native MSVC
Chris@1 9450 hardcode_libdir_flag_spec=' '
Chris@1 9451 allow_undefined_flag=unsupported
Chris@1 9452 always_export_symbols=yes
Chris@1 9453 file_list_spec='@'
Chris@1 9454 # Tell ltmain to make .lib files, not .a files.
Chris@1 9455 libext=lib
Chris@1 9456 # Tell ltmain to make .dll files, not .so files.
Chris@1 9457 shrext_cmds=".dll"
Chris@1 9458 # FIXME: Setting linknames here is a bad hack.
Chris@1 9459 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
Chris@1 9460 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
Chris@1 9461 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
Chris@1 9462 else
Chris@1 9463 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
Chris@1 9464 fi~
Chris@1 9465 $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@1 9466 linknames='
Chris@1 9467 # The linker will not automatically build a static lib if we build a DLL.
Chris@1 9468 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
Chris@1 9469 enable_shared_with_static_runtimes=yes
Chris@1 9470 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
Chris@1 9471 # Don't use ranlib
Chris@1 9472 old_postinstall_cmds='chmod 644 $oldlib'
Chris@1 9473 postlink_cmds='lt_outputfile="@OUTPUT@"~
Chris@1 9474 lt_tool_outputfile="@TOOL_OUTPUT@"~
Chris@1 9475 case $lt_outputfile in
Chris@1 9476 *.exe|*.EXE) ;;
Chris@1 9477 *)
Chris@1 9478 lt_outputfile="$lt_outputfile.exe"
Chris@1 9479 lt_tool_outputfile="$lt_tool_outputfile.exe"
Chris@1 9480 ;;
Chris@1 9481 esac~
Chris@1 9482 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
Chris@1 9483 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
Chris@1 9484 $RM "$lt_outputfile.manifest";
Chris@1 9485 fi'
Chris@1 9486 ;;
Chris@1 9487 *)
Chris@1 9488 # Assume MSVC wrapper
Chris@1 9489 hardcode_libdir_flag_spec=' '
Chris@1 9490 allow_undefined_flag=unsupported
Chris@1 9491 # Tell ltmain to make .lib files, not .a files.
Chris@1 9492 libext=lib
Chris@1 9493 # Tell ltmain to make .dll files, not .so files.
Chris@1 9494 shrext_cmds=".dll"
Chris@1 9495 # FIXME: Setting linknames here is a bad hack.
Chris@1 9496 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
Chris@1 9497 # The linker will automatically build a .lib file if we build a DLL.
Chris@1 9498 old_archive_from_new_cmds='true'
Chris@1 9499 # FIXME: Should let the user specify the lib program.
Chris@1 9500 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
Chris@1 9501 enable_shared_with_static_runtimes=yes
Chris@1 9502 ;;
Chris@1 9503 esac
Chris@1 9504 ;;
Chris@1 9505
Chris@1 9506 darwin* | rhapsody*)
Chris@1 9507
Chris@1 9508
Chris@1 9509 archive_cmds_need_lc=no
Chris@1 9510 hardcode_direct=no
Chris@1 9511 hardcode_automatic=yes
Chris@1 9512 hardcode_shlibpath_var=unsupported
Chris@1 9513 if test "$lt_cv_ld_force_load" = "yes"; then
Chris@1 9514 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@1 9515 else
Chris@1 9516 whole_archive_flag_spec=''
Chris@1 9517 fi
Chris@1 9518 link_all_deplibs=yes
Chris@1 9519 allow_undefined_flag="$_lt_dar_allow_undefined"
Chris@1 9520 case $cc_basename in
Chris@1 9521 ifort*) _lt_dar_can_shared=yes ;;
Chris@1 9522 *) _lt_dar_can_shared=$GCC ;;
Chris@1 9523 esac
Chris@1 9524 if test "$_lt_dar_can_shared" = "yes"; then
Chris@1 9525 output_verbose_link_cmd=func_echo_all
Chris@1 9526 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@1 9527 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
Chris@1 9528 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@1 9529 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@1 9530
Chris@1 9531 else
Chris@1 9532 ld_shlibs=no
Chris@1 9533 fi
Chris@1 9534
Chris@1 9535 ;;
Chris@1 9536
Chris@1 9537 dgux*)
Chris@1 9538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@1 9539 hardcode_libdir_flag_spec='-L$libdir'
Chris@1 9540 hardcode_shlibpath_var=no
Chris@1 9541 ;;
Chris@1 9542
Chris@1 9543 freebsd1*)
Chris@1 9544 ld_shlibs=no
Chris@1 9545 ;;
Chris@1 9546
Chris@1 9547 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
Chris@1 9548 # support. Future versions do this automatically, but an explicit c++rt0.o
Chris@1 9549 # does not break anything, and helps significantly (at the cost of a little
Chris@1 9550 # extra space).
Chris@1 9551 freebsd2.2*)
Chris@1 9552 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
Chris@1 9553 hardcode_libdir_flag_spec='-R$libdir'
Chris@1 9554 hardcode_direct=yes
Chris@1 9555 hardcode_shlibpath_var=no
Chris@1 9556 ;;
Chris@1 9557
Chris@1 9558 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Chris@1 9559 freebsd2*)
Chris@1 9560 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@1 9561 hardcode_direct=yes
Chris@1 9562 hardcode_minus_L=yes
Chris@1 9563 hardcode_shlibpath_var=no
Chris@1 9564 ;;
Chris@1 9565
Chris@1 9566 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Chris@1 9567 freebsd* | dragonfly*)
Chris@1 9568 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9569 hardcode_libdir_flag_spec='-R$libdir'
Chris@1 9570 hardcode_direct=yes
Chris@1 9571 hardcode_shlibpath_var=no
Chris@1 9572 ;;
Chris@1 9573
Chris@1 9574 hpux9*)
Chris@1 9575 if test "$GCC" = yes; then
Chris@1 9576 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@1 9577 else
Chris@1 9578 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@1 9579 fi
Chris@1 9580 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Chris@1 9581 hardcode_libdir_separator=:
Chris@1 9582 hardcode_direct=yes
Chris@1 9583
Chris@1 9584 # hardcode_minus_L: Not really in the search PATH,
Chris@1 9585 # but as the default location of the library.
Chris@1 9586 hardcode_minus_L=yes
Chris@1 9587 export_dynamic_flag_spec='${wl}-E'
Chris@1 9588 ;;
Chris@1 9589
Chris@1 9590 hpux10*)
Chris@1 9591 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
Chris@1 9592 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9593 else
Chris@1 9594 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
Chris@1 9595 fi
Chris@1 9596 if test "$with_gnu_ld" = no; then
Chris@1 9597 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Chris@1 9598 hardcode_libdir_flag_spec_ld='+b $libdir'
Chris@1 9599 hardcode_libdir_separator=:
Chris@1 9600 hardcode_direct=yes
Chris@1 9601 hardcode_direct_absolute=yes
Chris@1 9602 export_dynamic_flag_spec='${wl}-E'
Chris@1 9603 # hardcode_minus_L: Not really in the search PATH,
Chris@1 9604 # but as the default location of the library.
Chris@1 9605 hardcode_minus_L=yes
Chris@1 9606 fi
Chris@1 9607 ;;
Chris@1 9608
Chris@1 9609 hpux11*)
Chris@1 9610 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
Chris@1 9611 case $host_cpu in
Chris@1 9612 hppa*64*)
Chris@1 9613 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9614 ;;
Chris@1 9615 ia64*)
Chris@1 9616 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9617 ;;
Chris@1 9618 *)
Chris@1 9619 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9620 ;;
Chris@1 9621 esac
Chris@1 9622 else
Chris@1 9623 case $host_cpu in
Chris@1 9624 hppa*64*)
Chris@1 9625 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9626 ;;
Chris@1 9627 ia64*)
Chris@1 9628 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9629 ;;
Chris@1 9630 *)
Chris@1 9631
Chris@1 9632 # Older versions of the 11.00 compiler do not understand -b yet
Chris@1 9633 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
Chris@1 9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
Chris@1 9635 $as_echo_n "checking if $CC understands -b... " >&6; }
Chris@1 9636 if ${lt_cv_prog_compiler__b+:} false; then :
Chris@1 9637 $as_echo_n "(cached) " >&6
Chris@1 9638 else
Chris@1 9639 lt_cv_prog_compiler__b=no
Chris@1 9640 save_LDFLAGS="$LDFLAGS"
Chris@1 9641 LDFLAGS="$LDFLAGS -b"
Chris@1 9642 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Chris@1 9643 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Chris@1 9644 # The linker can only warn and ignore the option if not recognized
Chris@1 9645 # So say no if there are warnings
Chris@1 9646 if test -s conftest.err; then
Chris@1 9647 # Append any errors to the config.log.
Chris@1 9648 cat conftest.err 1>&5
Chris@1 9649 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Chris@1 9650 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@1 9651 if diff conftest.exp conftest.er2 >/dev/null; then
Chris@1 9652 lt_cv_prog_compiler__b=yes
Chris@1 9653 fi
Chris@1 9654 else
Chris@1 9655 lt_cv_prog_compiler__b=yes
Chris@1 9656 fi
Chris@1 9657 fi
Chris@1 9658 $RM -r conftest*
Chris@1 9659 LDFLAGS="$save_LDFLAGS"
Chris@1 9660
Chris@1 9661 fi
Chris@1 9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
Chris@1 9663 $as_echo "$lt_cv_prog_compiler__b" >&6; }
Chris@1 9664
Chris@1 9665 if test x"$lt_cv_prog_compiler__b" = xyes; then
Chris@1 9666 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9667 else
Chris@1 9668 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
Chris@1 9669 fi
Chris@1 9670
Chris@1 9671 ;;
Chris@1 9672 esac
Chris@1 9673 fi
Chris@1 9674 if test "$with_gnu_ld" = no; then
Chris@1 9675 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Chris@1 9676 hardcode_libdir_separator=:
Chris@1 9677
Chris@1 9678 case $host_cpu in
Chris@1 9679 hppa*64*|ia64*)
Chris@1 9680 hardcode_direct=no
Chris@1 9681 hardcode_shlibpath_var=no
Chris@1 9682 ;;
Chris@1 9683 *)
Chris@1 9684 hardcode_direct=yes
Chris@1 9685 hardcode_direct_absolute=yes
Chris@1 9686 export_dynamic_flag_spec='${wl}-E'
Chris@1 9687
Chris@1 9688 # hardcode_minus_L: Not really in the search PATH,
Chris@1 9689 # but as the default location of the library.
Chris@1 9690 hardcode_minus_L=yes
Chris@1 9691 ;;
Chris@1 9692 esac
Chris@1 9693 fi
Chris@1 9694 ;;
Chris@1 9695
Chris@1 9696 irix5* | irix6* | nonstopux*)
Chris@1 9697 if test "$GCC" = yes; then
Chris@1 9698 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@1 9699 # Try to use the -exported_symbol ld option, if it does not
Chris@1 9700 # work, assume that -exports_file does not work either and
Chris@1 9701 # implicitly export all symbols.
Chris@1 9702 # This should be the same for all languages, so no per-tag cache variable.
Chris@1 9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
Chris@1 9704 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
Chris@1 9705 if ${lt_cv_irix_exported_symbol+:} false; then :
Chris@1 9706 $as_echo_n "(cached) " >&6
Chris@1 9707 else
Chris@1 9708 save_LDFLAGS="$LDFLAGS"
Chris@1 9709 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
Chris@1 9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 9711 /* end confdefs.h. */
Chris@1 9712 int foo (void) { return 0; }
Chris@1 9713 _ACEOF
Chris@1 9714 if ac_fn_c_try_link "$LINENO"; then :
Chris@1 9715 lt_cv_irix_exported_symbol=yes
Chris@1 9716 else
Chris@1 9717 lt_cv_irix_exported_symbol=no
Chris@1 9718 fi
Chris@1 9719 rm -f core conftest.err conftest.$ac_objext \
Chris@1 9720 conftest$ac_exeext conftest.$ac_ext
Chris@1 9721 LDFLAGS="$save_LDFLAGS"
Chris@1 9722 fi
Chris@1 9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
Chris@1 9724 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
Chris@1 9725 if test "$lt_cv_irix_exported_symbol" = yes; then
Chris@1 9726 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@1 9727 fi
Chris@1 9728 else
Chris@1 9729 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@1 9730 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@1 9731 fi
Chris@1 9732 archive_cmds_need_lc='no'
Chris@1 9733 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@1 9734 hardcode_libdir_separator=:
Chris@1 9735 inherit_rpath=yes
Chris@1 9736 link_all_deplibs=yes
Chris@1 9737 ;;
Chris@1 9738
Chris@1 9739 netbsd* | netbsdelf*-gnu)
Chris@1 9740 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@1 9741 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
Chris@1 9742 else
Chris@1 9743 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
Chris@1 9744 fi
Chris@1 9745 hardcode_libdir_flag_spec='-R$libdir'
Chris@1 9746 hardcode_direct=yes
Chris@1 9747 hardcode_shlibpath_var=no
Chris@1 9748 ;;
Chris@1 9749
Chris@1 9750 newsos6)
Chris@1 9751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@1 9752 hardcode_direct=yes
Chris@1 9753 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@1 9754 hardcode_libdir_separator=:
Chris@1 9755 hardcode_shlibpath_var=no
Chris@1 9756 ;;
Chris@1 9757
Chris@1 9758 *nto* | *qnx*)
Chris@1 9759 ;;
Chris@1 9760
Chris@1 9761 openbsd*)
Chris@1 9762 if test -f /usr/libexec/ld.so; then
Chris@1 9763 hardcode_direct=yes
Chris@1 9764 hardcode_shlibpath_var=no
Chris@1 9765 hardcode_direct_absolute=yes
Chris@1 9766 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@1 9767 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9768 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
Chris@1 9769 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
Chris@1 9770 export_dynamic_flag_spec='${wl}-E'
Chris@1 9771 else
Chris@1 9772 case $host_os in
Chris@1 9773 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
Chris@1 9774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@1 9775 hardcode_libdir_flag_spec='-R$libdir'
Chris@1 9776 ;;
Chris@1 9777 *)
Chris@1 9778 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9779 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
Chris@1 9780 ;;
Chris@1 9781 esac
Chris@1 9782 fi
Chris@1 9783 else
Chris@1 9784 ld_shlibs=no
Chris@1 9785 fi
Chris@1 9786 ;;
Chris@1 9787
Chris@1 9788 os2*)
Chris@1 9789 hardcode_libdir_flag_spec='-L$libdir'
Chris@1 9790 hardcode_minus_L=yes
Chris@1 9791 allow_undefined_flag=unsupported
Chris@1 9792 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@1 9793 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
Chris@1 9794 ;;
Chris@1 9795
Chris@1 9796 osf3*)
Chris@1 9797 if test "$GCC" = yes; then
Chris@1 9798 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Chris@1 9799 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@1 9800 else
Chris@1 9801 allow_undefined_flag=' -expect_unresolved \*'
Chris@1 9802 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@1 9803 fi
Chris@1 9804 archive_cmds_need_lc='no'
Chris@1 9805 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@1 9806 hardcode_libdir_separator=:
Chris@1 9807 ;;
Chris@1 9808
Chris@1 9809 osf4* | osf5*) # as osf3* with the addition of -msym flag
Chris@1 9810 if test "$GCC" = yes; then
Chris@1 9811 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Chris@1 9812 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@1 9813 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@1 9814 else
Chris@1 9815 allow_undefined_flag=' -expect_unresolved \*'
Chris@1 9816 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@1 9817 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@1 9818 $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@1 9819
Chris@1 9820 # Both c and cxx compiler support -rpath directly
Chris@1 9821 hardcode_libdir_flag_spec='-rpath $libdir'
Chris@1 9822 fi
Chris@1 9823 archive_cmds_need_lc='no'
Chris@1 9824 hardcode_libdir_separator=:
Chris@1 9825 ;;
Chris@1 9826
Chris@1 9827 solaris*)
Chris@1 9828 no_undefined_flag=' -z defs'
Chris@1 9829 if test "$GCC" = yes; then
Chris@1 9830 wlarc='${wl}'
Chris@1 9831 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9832 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@1 9833 $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@1 9834 else
Chris@1 9835 case `$CC -V 2>&1` in
Chris@1 9836 *"Compilers 5.0"*)
Chris@1 9837 wlarc=''
Chris@1 9838 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@1 9839 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@1 9840 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
Chris@1 9841 ;;
Chris@1 9842 *)
Chris@1 9843 wlarc='${wl}'
Chris@1 9844 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9845 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@1 9846 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Chris@1 9847 ;;
Chris@1 9848 esac
Chris@1 9849 fi
Chris@1 9850 hardcode_libdir_flag_spec='-R$libdir'
Chris@1 9851 hardcode_shlibpath_var=no
Chris@1 9852 case $host_os in
Chris@1 9853 solaris2.[0-5] | solaris2.[0-5].*) ;;
Chris@1 9854 *)
Chris@1 9855 # The compiler driver will combine and reorder linker options,
Chris@1 9856 # but understands `-z linker_flag'. GCC discards it without `$wl',
Chris@1 9857 # but is careful enough not to reorder.
Chris@1 9858 # Supported since Solaris 2.6 (maybe 2.5.1?)
Chris@1 9859 if test "$GCC" = yes; then
Chris@1 9860 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
Chris@1 9861 else
Chris@1 9862 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
Chris@1 9863 fi
Chris@1 9864 ;;
Chris@1 9865 esac
Chris@1 9866 link_all_deplibs=yes
Chris@1 9867 ;;
Chris@1 9868
Chris@1 9869 sunos4*)
Chris@1 9870 if test "x$host_vendor" = xsequent; then
Chris@1 9871 # Use $CC to link under sequent, because it throws in some extra .o
Chris@1 9872 # files that make .init and .fini sections work.
Chris@1 9873 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9874 else
Chris@1 9875 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
Chris@1 9876 fi
Chris@1 9877 hardcode_libdir_flag_spec='-L$libdir'
Chris@1 9878 hardcode_direct=yes
Chris@1 9879 hardcode_minus_L=yes
Chris@1 9880 hardcode_shlibpath_var=no
Chris@1 9881 ;;
Chris@1 9882
Chris@1 9883 sysv4)
Chris@1 9884 case $host_vendor in
Chris@1 9885 sni)
Chris@1 9886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@1 9887 hardcode_direct=yes # is this really true???
Chris@1 9888 ;;
Chris@1 9889 siemens)
Chris@1 9890 ## LD is ld it makes a PLAMLIB
Chris@1 9891 ## CC just makes a GrossModule.
Chris@1 9892 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
Chris@1 9893 reload_cmds='$CC -r -o $output$reload_objs'
Chris@1 9894 hardcode_direct=no
Chris@1 9895 ;;
Chris@1 9896 motorola)
Chris@1 9897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@1 9898 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
Chris@1 9899 ;;
Chris@1 9900 esac
Chris@1 9901 runpath_var='LD_RUN_PATH'
Chris@1 9902 hardcode_shlibpath_var=no
Chris@1 9903 ;;
Chris@1 9904
Chris@1 9905 sysv4.3*)
Chris@1 9906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@1 9907 hardcode_shlibpath_var=no
Chris@1 9908 export_dynamic_flag_spec='-Bexport'
Chris@1 9909 ;;
Chris@1 9910
Chris@1 9911 sysv4*MP*)
Chris@1 9912 if test -d /usr/nec; then
Chris@1 9913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@1 9914 hardcode_shlibpath_var=no
Chris@1 9915 runpath_var=LD_RUN_PATH
Chris@1 9916 hardcode_runpath_var=yes
Chris@1 9917 ld_shlibs=yes
Chris@1 9918 fi
Chris@1 9919 ;;
Chris@1 9920
Chris@1 9921 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Chris@1 9922 no_undefined_flag='${wl}-z,text'
Chris@1 9923 archive_cmds_need_lc=no
Chris@1 9924 hardcode_shlibpath_var=no
Chris@1 9925 runpath_var='LD_RUN_PATH'
Chris@1 9926
Chris@1 9927 if test "$GCC" = yes; then
Chris@1 9928 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9929 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9930 else
Chris@1 9931 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9932 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9933 fi
Chris@1 9934 ;;
Chris@1 9935
Chris@1 9936 sysv5* | sco3.2v5* | sco5v6*)
Chris@1 9937 # Note: We can NOT use -z defs as we might desire, because we do not
Chris@1 9938 # link with -lc, and that would cause any symbols used from libc to
Chris@1 9939 # always be unresolved, which means just about no library would
Chris@1 9940 # ever link correctly. If we're not using GNU ld we use -z text
Chris@1 9941 # though, which does catch some bad symbols but isn't as heavy-handed
Chris@1 9942 # as -z defs.
Chris@1 9943 no_undefined_flag='${wl}-z,text'
Chris@1 9944 allow_undefined_flag='${wl}-z,nodefs'
Chris@1 9945 archive_cmds_need_lc=no
Chris@1 9946 hardcode_shlibpath_var=no
Chris@1 9947 hardcode_libdir_flag_spec='${wl}-R,$libdir'
Chris@1 9948 hardcode_libdir_separator=':'
Chris@1 9949 link_all_deplibs=yes
Chris@1 9950 export_dynamic_flag_spec='${wl}-Bexport'
Chris@1 9951 runpath_var='LD_RUN_PATH'
Chris@1 9952
Chris@1 9953 if test "$GCC" = yes; then
Chris@1 9954 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9955 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9956 else
Chris@1 9957 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9958 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9959 fi
Chris@1 9960 ;;
Chris@1 9961
Chris@1 9962 uts4*)
Chris@1 9963 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@1 9964 hardcode_libdir_flag_spec='-L$libdir'
Chris@1 9965 hardcode_shlibpath_var=no
Chris@1 9966 ;;
Chris@1 9967
Chris@1 9968 *)
Chris@1 9969 ld_shlibs=no
Chris@1 9970 ;;
Chris@1 9971 esac
Chris@1 9972
Chris@1 9973 if test x$host_vendor = xsni; then
Chris@1 9974 case $host in
Chris@1 9975 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Chris@1 9976 export_dynamic_flag_spec='${wl}-Blargedynsym'
Chris@1 9977 ;;
Chris@1 9978 esac
Chris@1 9979 fi
Chris@1 9980 fi
Chris@1 9981
Chris@1 9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
Chris@1 9983 $as_echo "$ld_shlibs" >&6; }
Chris@1 9984 test "$ld_shlibs" = no && can_build_shared=no
Chris@1 9985
Chris@1 9986 with_gnu_ld=$with_gnu_ld
Chris@1 9987
Chris@1 9988
Chris@1 9989
Chris@1 9990
Chris@1 9991
Chris@1 9992
Chris@1 9993
Chris@1 9994
Chris@1 9995
Chris@1 9996
Chris@1 9997
Chris@1 9998
Chris@1 9999
Chris@1 10000
Chris@1 10001
Chris@1 10002 #
Chris@1 10003 # Do we need to explicitly link libc?
Chris@1 10004 #
Chris@1 10005 case "x$archive_cmds_need_lc" in
Chris@1 10006 x|xyes)
Chris@1 10007 # Assume -lc should be added
Chris@1 10008 archive_cmds_need_lc=yes
Chris@1 10009
Chris@1 10010 if test "$enable_shared" = yes && test "$GCC" = yes; then
Chris@1 10011 case $archive_cmds in
Chris@1 10012 *'~'*)
Chris@1 10013 # FIXME: we may have to deal with multi-command sequences.
Chris@1 10014 ;;
Chris@1 10015 '$CC '*)
Chris@1 10016 # Test whether the compiler implicitly links with -lc since on some
Chris@1 10017 # systems, -lgcc has to come before -lc. If gcc already passes -lc
Chris@1 10018 # to ld, don't add -lc before -lgcc.
Chris@1 10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Chris@1 10020 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Chris@1 10021 if ${lt_cv_archive_cmds_need_lc+:} false; then :
Chris@1 10022 $as_echo_n "(cached) " >&6
Chris@1 10023 else
Chris@1 10024 $RM conftest*
Chris@1 10025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@1 10026
Chris@1 10027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@1 10028 (eval $ac_compile) 2>&5
Chris@1 10029 ac_status=$?
Chris@1 10030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 10031 test $ac_status = 0; } 2>conftest.err; then
Chris@1 10032 soname=conftest
Chris@1 10033 lib=conftest
Chris@1 10034 libobjs=conftest.$ac_objext
Chris@1 10035 deplibs=
Chris@1 10036 wl=$lt_prog_compiler_wl
Chris@1 10037 pic_flag=$lt_prog_compiler_pic
Chris@1 10038 compiler_flags=-v
Chris@1 10039 linker_flags=-v
Chris@1 10040 verstring=
Chris@1 10041 output_objdir=.
Chris@1 10042 libname=conftest
Chris@1 10043 lt_save_allow_undefined_flag=$allow_undefined_flag
Chris@1 10044 allow_undefined_flag=
Chris@1 10045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Chris@1 10046 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Chris@1 10047 ac_status=$?
Chris@1 10048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 10049 test $ac_status = 0; }
Chris@1 10050 then
Chris@1 10051 lt_cv_archive_cmds_need_lc=no
Chris@1 10052 else
Chris@1 10053 lt_cv_archive_cmds_need_lc=yes
Chris@1 10054 fi
Chris@1 10055 allow_undefined_flag=$lt_save_allow_undefined_flag
Chris@1 10056 else
Chris@1 10057 cat conftest.err 1>&5
Chris@1 10058 fi
Chris@1 10059 $RM conftest*
Chris@1 10060
Chris@1 10061 fi
Chris@1 10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
Chris@1 10063 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
Chris@1 10064 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Chris@1 10065 ;;
Chris@1 10066 esac
Chris@1 10067 fi
Chris@1 10068 ;;
Chris@1 10069 esac
Chris@1 10070
Chris@1 10071
Chris@1 10072
Chris@1 10073
Chris@1 10074
Chris@1 10075
Chris@1 10076
Chris@1 10077
Chris@1 10078
Chris@1 10079
Chris@1 10080
Chris@1 10081
Chris@1 10082
Chris@1 10083
Chris@1 10084
Chris@1 10085
Chris@1 10086
Chris@1 10087
Chris@1 10088
Chris@1 10089
Chris@1 10090
Chris@1 10091
Chris@1 10092
Chris@1 10093
Chris@1 10094
Chris@1 10095
Chris@1 10096
Chris@1 10097
Chris@1 10098
Chris@1 10099
Chris@1 10100
Chris@1 10101
Chris@1 10102
Chris@1 10103
Chris@1 10104
Chris@1 10105
Chris@1 10106
Chris@1 10107
Chris@1 10108
Chris@1 10109
Chris@1 10110
Chris@1 10111
Chris@1 10112
Chris@1 10113
Chris@1 10114
Chris@1 10115
Chris@1 10116
Chris@1 10117
Chris@1 10118
Chris@1 10119
Chris@1 10120
Chris@1 10121
Chris@1 10122
Chris@1 10123
Chris@1 10124
Chris@1 10125
Chris@1 10126
Chris@1 10127
Chris@1 10128
Chris@1 10129
Chris@1 10130
Chris@1 10131
Chris@1 10132
Chris@1 10133
Chris@1 10134
Chris@1 10135
Chris@1 10136
Chris@1 10137
Chris@1 10138
Chris@1 10139
Chris@1 10140
Chris@1 10141
Chris@1 10142
Chris@1 10143
Chris@1 10144
Chris@1 10145
Chris@1 10146
Chris@1 10147
Chris@1 10148
Chris@1 10149
Chris@1 10150
Chris@1 10151
Chris@1 10152
Chris@1 10153
Chris@1 10154
Chris@1 10155
Chris@1 10156
Chris@1 10157
Chris@1 10158
Chris@1 10159
Chris@1 10160
Chris@1 10161
Chris@1 10162
Chris@1 10163
Chris@1 10164
Chris@1 10165
Chris@1 10166
Chris@1 10167
Chris@1 10168
Chris@1 10169
Chris@1 10170
Chris@1 10171
Chris@1 10172
Chris@1 10173
Chris@1 10174
Chris@1 10175
Chris@1 10176
Chris@1 10177
Chris@1 10178
Chris@1 10179
Chris@1 10180
Chris@1 10181
Chris@1 10182
Chris@1 10183
Chris@1 10184
Chris@1 10185
Chris@1 10186
Chris@1 10187
Chris@1 10188
Chris@1 10189
Chris@1 10190
Chris@1 10191
Chris@1 10192
Chris@1 10193
Chris@1 10194
Chris@1 10195
Chris@1 10196
Chris@1 10197
Chris@1 10198
Chris@1 10199
Chris@1 10200
Chris@1 10201
Chris@1 10202
Chris@1 10203
Chris@1 10204
Chris@1 10205
Chris@1 10206
Chris@1 10207
Chris@1 10208
Chris@1 10209
Chris@1 10210
Chris@1 10211
Chris@1 10212
Chris@1 10213
Chris@1 10214
Chris@1 10215
Chris@1 10216
Chris@1 10217
Chris@1 10218
Chris@1 10219
Chris@1 10220
Chris@1 10221
Chris@1 10222
Chris@1 10223
Chris@1 10224
Chris@1 10225
Chris@1 10226
Chris@1 10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Chris@1 10228 $as_echo_n "checking dynamic linker characteristics... " >&6; }
Chris@1 10229
Chris@1 10230 if test "$GCC" = yes; then
Chris@1 10231 case $host_os in
Chris@1 10232 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
Chris@1 10233 *) lt_awk_arg="/^libraries:/" ;;
Chris@1 10234 esac
Chris@1 10235 case $host_os in
Chris@1 10236 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
Chris@1 10237 *) lt_sed_strip_eq="s,=/,/,g" ;;
Chris@1 10238 esac
Chris@1 10239 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
Chris@1 10240 case $lt_search_path_spec in
Chris@1 10241 *\;*)
Chris@1 10242 # if the path contains ";" then we assume it to be the separator
Chris@1 10243 # otherwise default to the standard path separator (i.e. ":") - it is
Chris@1 10244 # assumed that no part of a normal pathname contains ";" but that should
Chris@1 10245 # okay in the real world where ";" in dirpaths is itself problematic.
Chris@1 10246 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
Chris@1 10247 ;;
Chris@1 10248 *)
Chris@1 10249 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
Chris@1 10250 ;;
Chris@1 10251 esac
Chris@1 10252 # Ok, now we have the path, separated by spaces, we can step through it
Chris@1 10253 # and add multilib dir if necessary.
Chris@1 10254 lt_tmp_lt_search_path_spec=
Chris@1 10255 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
Chris@1 10256 for lt_sys_path in $lt_search_path_spec; do
Chris@1 10257 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
Chris@1 10258 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
Chris@1 10259 else
Chris@1 10260 test -d "$lt_sys_path" && \
Chris@1 10261 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
Chris@1 10262 fi
Chris@1 10263 done
Chris@1 10264 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Chris@1 10265 BEGIN {RS=" "; FS="/|\n";} {
Chris@1 10266 lt_foo="";
Chris@1 10267 lt_count=0;
Chris@1 10268 for (lt_i = NF; lt_i > 0; lt_i--) {
Chris@1 10269 if ($lt_i != "" && $lt_i != ".") {
Chris@1 10270 if ($lt_i == "..") {
Chris@1 10271 lt_count++;
Chris@1 10272 } else {
Chris@1 10273 if (lt_count == 0) {
Chris@1 10274 lt_foo="/" $lt_i lt_foo;
Chris@1 10275 } else {
Chris@1 10276 lt_count--;
Chris@1 10277 }
Chris@1 10278 }
Chris@1 10279 }
Chris@1 10280 }
Chris@1 10281 if (lt_foo != "") { lt_freq[lt_foo]++; }
Chris@1 10282 if (lt_freq[lt_foo] == 1) { print lt_foo; }
Chris@1 10283 }'`
Chris@1 10284 # AWK program above erroneously prepends '/' to C:/dos/paths
Chris@1 10285 # for these hosts.
Chris@1 10286 case $host_os in
Chris@1 10287 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
Chris@1 10288 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
Chris@1 10289 esac
Chris@1 10290 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Chris@1 10291 else
Chris@1 10292 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Chris@1 10293 fi
Chris@1 10294 library_names_spec=
Chris@1 10295 libname_spec='lib$name'
Chris@1 10296 soname_spec=
Chris@1 10297 shrext_cmds=".so"
Chris@1 10298 postinstall_cmds=
Chris@1 10299 postuninstall_cmds=
Chris@1 10300 finish_cmds=
Chris@1 10301 finish_eval=
Chris@1 10302 shlibpath_var=
Chris@1 10303 shlibpath_overrides_runpath=unknown
Chris@1 10304 version_type=none
Chris@1 10305 dynamic_linker="$host_os ld.so"
Chris@1 10306 sys_lib_dlsearch_path_spec="/lib /usr/lib"
Chris@1 10307 need_lib_prefix=unknown
Chris@1 10308 hardcode_into_libs=no
Chris@1 10309
Chris@1 10310 # when you set need_version to no, make sure it does not cause -set_version
Chris@1 10311 # flags to be left without arguments
Chris@1 10312 need_version=unknown
Chris@1 10313
Chris@1 10314 case $host_os in
Chris@1 10315 aix3*)
Chris@1 10316 version_type=linux
Chris@1 10317 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
Chris@1 10318 shlibpath_var=LIBPATH
Chris@1 10319
Chris@1 10320 # AIX 3 has no versioning support, so we append a major version to the name.
Chris@1 10321 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10322 ;;
Chris@1 10323
Chris@1 10324 aix[4-9]*)
Chris@1 10325 version_type=linux
Chris@1 10326 need_lib_prefix=no
Chris@1 10327 need_version=no
Chris@1 10328 hardcode_into_libs=yes
Chris@1 10329 if test "$host_cpu" = ia64; then
Chris@1 10330 # AIX 5 supports IA64
Chris@1 10331 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
Chris@1 10332 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10333 else
Chris@1 10334 # With GCC up to 2.95.x, collect2 would create an import file
Chris@1 10335 # for dependence libraries. The import file would start with
Chris@1 10336 # the line `#! .'. This would cause the generated library to
Chris@1 10337 # depend on `.', always an invalid library. This was fixed in
Chris@1 10338 # development snapshots of GCC prior to 3.0.
Chris@1 10339 case $host_os in
Chris@1 10340 aix4 | aix4.[01] | aix4.[01].*)
Chris@1 10341 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
Chris@1 10342 echo ' yes '
Chris@1 10343 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
Chris@1 10344 :
Chris@1 10345 else
Chris@1 10346 can_build_shared=no
Chris@1 10347 fi
Chris@1 10348 ;;
Chris@1 10349 esac
Chris@1 10350 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
Chris@1 10351 # soname into executable. Probably we can add versioning support to
Chris@1 10352 # collect2, so additional links can be useful in future.
Chris@1 10353 if test "$aix_use_runtimelinking" = yes; then
Chris@1 10354 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
Chris@1 10355 # instead of lib<name>.a to let people know that these are not
Chris@1 10356 # typical AIX shared libraries.
Chris@1 10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@1 10358 else
Chris@1 10359 # We preserve .a as extension for shared libraries through AIX4.2
Chris@1 10360 # and later when we are not doing run time linking.
Chris@1 10361 library_names_spec='${libname}${release}.a $libname.a'
Chris@1 10362 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10363 fi
Chris@1 10364 shlibpath_var=LIBPATH
Chris@1 10365 fi
Chris@1 10366 ;;
Chris@1 10367
Chris@1 10368 amigaos*)
Chris@1 10369 case $host_cpu in
Chris@1 10370 powerpc)
Chris@1 10371 # Since July 2007 AmigaOS4 officially supports .so libraries.
Chris@1 10372 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Chris@1 10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@1 10374 ;;
Chris@1 10375 m68k)
Chris@1 10376 library_names_spec='$libname.ixlibrary $libname.a'
Chris@1 10377 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Chris@1 10378 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@1 10379 ;;
Chris@1 10380 esac
Chris@1 10381 ;;
Chris@1 10382
Chris@1 10383 beos*)
Chris@1 10384 library_names_spec='${libname}${shared_ext}'
Chris@1 10385 dynamic_linker="$host_os ld.so"
Chris@1 10386 shlibpath_var=LIBRARY_PATH
Chris@1 10387 ;;
Chris@1 10388
Chris@1 10389 bsdi[45]*)
Chris@1 10390 version_type=linux
Chris@1 10391 need_version=no
Chris@1 10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@1 10393 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10394 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
Chris@1 10395 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10396 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
Chris@1 10397 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
Chris@1 10398 # the default ld.so.conf also contains /usr/contrib/lib and
Chris@1 10399 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
Chris@1 10400 # libtool to hard-code these into programs
Chris@1 10401 ;;
Chris@1 10402
Chris@1 10403 cygwin* | mingw* | pw32* | cegcc*)
Chris@1 10404 version_type=windows
Chris@1 10405 shrext_cmds=".dll"
Chris@1 10406 need_version=no
Chris@1 10407 need_lib_prefix=no
Chris@1 10408
Chris@1 10409 case $GCC,$cc_basename in
Chris@1 10410 yes,*)
Chris@1 10411 # gcc
Chris@1 10412 library_names_spec='$libname.dll.a'
Chris@1 10413 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@1 10414 postinstall_cmds='base_file=`basename \${file}`~
Chris@1 10415 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Chris@1 10416 dldir=$destdir/`dirname \$dlpath`~
Chris@1 10417 test -d \$dldir || mkdir -p \$dldir~
Chris@1 10418 $install_prog $dir/$dlname \$dldir/$dlname~
Chris@1 10419 chmod a+x \$dldir/$dlname~
Chris@1 10420 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
Chris@1 10421 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
Chris@1 10422 fi'
Chris@1 10423 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@1 10424 dlpath=$dir/\$dldll~
Chris@1 10425 $RM \$dlpath'
Chris@1 10426 shlibpath_overrides_runpath=yes
Chris@1 10427
Chris@1 10428 case $host_os in
Chris@1 10429 cygwin*)
Chris@1 10430 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Chris@1 10431 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@1 10432
Chris@1 10433 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Chris@1 10434 ;;
Chris@1 10435 mingw* | cegcc*)
Chris@1 10436 # MinGW DLLs use traditional 'lib' prefix
Chris@1 10437 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@1 10438 ;;
Chris@1 10439 pw32*)
Chris@1 10440 # pw32 DLLs use 'pw' prefix rather than 'lib'
Chris@1 10441 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@1 10442 ;;
Chris@1 10443 esac
Chris@1 10444 dynamic_linker='Win32 ld.exe'
Chris@1 10445 ;;
Chris@1 10446
Chris@1 10447 *,cl*)
Chris@1 10448 # Native MSVC
Chris@1 10449 libname_spec='$name'
Chris@1 10450 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@1 10451 library_names_spec='${libname}.dll.lib'
Chris@1 10452
Chris@1 10453 case $build_os in
Chris@1 10454 mingw*)
Chris@1 10455 sys_lib_search_path_spec=
Chris@1 10456 lt_save_ifs=$IFS
Chris@1 10457 IFS=';'
Chris@1 10458 for lt_path in $LIB
Chris@1 10459 do
Chris@1 10460 IFS=$lt_save_ifs
Chris@1 10461 # Let DOS variable expansion print the short 8.3 style file name.
Chris@1 10462 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
Chris@1 10463 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
Chris@1 10464 done
Chris@1 10465 IFS=$lt_save_ifs
Chris@1 10466 # Convert to MSYS style.
Chris@1 10467 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@1 10468 ;;
Chris@1 10469 cygwin*)
Chris@1 10470 # Convert to unix form, then to dos form, then back to unix form
Chris@1 10471 # but this time dos style (no spaces!) so that the unix form looks
Chris@1 10472 # like /cygdrive/c/PROGRA~1:/cygdr...
Chris@1 10473 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
Chris@1 10474 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
Chris@1 10475 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@1 10476 ;;
Chris@1 10477 *)
Chris@1 10478 sys_lib_search_path_spec="$LIB"
Chris@1 10479 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
Chris@1 10480 # It is most probably a Windows format PATH.
Chris@1 10481 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Chris@1 10482 else
Chris@1 10483 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@1 10484 fi
Chris@1 10485 # FIXME: find the short name or the path components, as spaces are
Chris@1 10486 # common. (e.g. "Program Files" -> "PROGRA~1")
Chris@1 10487 ;;
Chris@1 10488 esac
Chris@1 10489
Chris@1 10490 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@1 10491 postinstall_cmds='base_file=`basename \${file}`~
Chris@1 10492 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Chris@1 10493 dldir=$destdir/`dirname \$dlpath`~
Chris@1 10494 test -d \$dldir || mkdir -p \$dldir~
Chris@1 10495 $install_prog $dir/$dlname \$dldir/$dlname'
Chris@1 10496 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@1 10497 dlpath=$dir/\$dldll~
Chris@1 10498 $RM \$dlpath'
Chris@1 10499 shlibpath_overrides_runpath=yes
Chris@1 10500 dynamic_linker='Win32 link.exe'
Chris@1 10501 ;;
Chris@1 10502
Chris@1 10503 *)
Chris@1 10504 # Assume MSVC wrapper
Chris@1 10505 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Chris@1 10506 dynamic_linker='Win32 ld.exe'
Chris@1 10507 ;;
Chris@1 10508 esac
Chris@1 10509 # FIXME: first we should search . and the directory the executable is in
Chris@1 10510 shlibpath_var=PATH
Chris@1 10511 ;;
Chris@1 10512
Chris@1 10513 darwin* | rhapsody*)
Chris@1 10514 dynamic_linker="$host_os dyld"
Chris@1 10515 version_type=darwin
Chris@1 10516 need_lib_prefix=no
Chris@1 10517 need_version=no
Chris@1 10518 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Chris@1 10519 soname_spec='${libname}${release}${major}$shared_ext'
Chris@1 10520 shlibpath_overrides_runpath=yes
Chris@1 10521 shlibpath_var=DYLD_LIBRARY_PATH
Chris@1 10522 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Chris@1 10523
Chris@1 10524 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
Chris@1 10525 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
Chris@1 10526 ;;
Chris@1 10527
Chris@1 10528 dgux*)
Chris@1 10529 version_type=linux
Chris@1 10530 need_lib_prefix=no
Chris@1 10531 need_version=no
Chris@1 10532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
Chris@1 10533 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10534 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10535 ;;
Chris@1 10536
Chris@1 10537 freebsd1*)
Chris@1 10538 dynamic_linker=no
Chris@1 10539 ;;
Chris@1 10540
Chris@1 10541 freebsd* | dragonfly*)
Chris@1 10542 # DragonFly does not have aout. When/if they implement a new
Chris@1 10543 # versioning mechanism, adjust this.
Chris@1 10544 if test -x /usr/bin/objformat; then
Chris@1 10545 objformat=`/usr/bin/objformat`
Chris@1 10546 else
Chris@1 10547 case $host_os in
Chris@1 10548 freebsd[123]*) objformat=aout ;;
Chris@1 10549 *) objformat=elf ;;
Chris@1 10550 esac
Chris@1 10551 fi
Chris@1 10552 version_type=freebsd-$objformat
Chris@1 10553 case $version_type in
Chris@1 10554 freebsd-elf*)
Chris@1 10555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@1 10556 need_version=no
Chris@1 10557 need_lib_prefix=no
Chris@1 10558 ;;
Chris@1 10559 freebsd-*)
Chris@1 10560 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
Chris@1 10561 need_version=yes
Chris@1 10562 ;;
Chris@1 10563 esac
Chris@1 10564 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10565 case $host_os in
Chris@1 10566 freebsd2*)
Chris@1 10567 shlibpath_overrides_runpath=yes
Chris@1 10568 ;;
Chris@1 10569 freebsd3.[01]* | freebsdelf3.[01]*)
Chris@1 10570 shlibpath_overrides_runpath=yes
Chris@1 10571 hardcode_into_libs=yes
Chris@1 10572 ;;
Chris@1 10573 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
Chris@1 10574 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Chris@1 10575 shlibpath_overrides_runpath=no
Chris@1 10576 hardcode_into_libs=yes
Chris@1 10577 ;;
Chris@1 10578 *) # from 4.6 on, and DragonFly
Chris@1 10579 shlibpath_overrides_runpath=yes
Chris@1 10580 hardcode_into_libs=yes
Chris@1 10581 ;;
Chris@1 10582 esac
Chris@1 10583 ;;
Chris@1 10584
Chris@1 10585 gnu*)
Chris@1 10586 version_type=linux
Chris@1 10587 need_lib_prefix=no
Chris@1 10588 need_version=no
Chris@1 10589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
Chris@1 10590 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10591 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10592 shlibpath_overrides_runpath=no
Chris@1 10593 hardcode_into_libs=yes
Chris@1 10594 ;;
Chris@1 10595
Chris@1 10596 haiku*)
Chris@1 10597 version_type=linux
Chris@1 10598 need_lib_prefix=no
Chris@1 10599 need_version=no
Chris@1 10600 dynamic_linker="$host_os runtime_loader"
Chris@1 10601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
Chris@1 10602 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10603 shlibpath_var=LIBRARY_PATH
Chris@1 10604 shlibpath_overrides_runpath=yes
Chris@1 10605 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Chris@1 10606 hardcode_into_libs=yes
Chris@1 10607 ;;
Chris@1 10608
Chris@1 10609 hpux9* | hpux10* | hpux11*)
Chris@1 10610 # Give a soname corresponding to the major version so that dld.sl refuses to
Chris@1 10611 # link against other versions.
Chris@1 10612 version_type=sunos
Chris@1 10613 need_lib_prefix=no
Chris@1 10614 need_version=no
Chris@1 10615 case $host_cpu in
Chris@1 10616 ia64*)
Chris@1 10617 shrext_cmds='.so'
Chris@1 10618 hardcode_into_libs=yes
Chris@1 10619 dynamic_linker="$host_os dld.so"
Chris@1 10620 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@1 10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@1 10623 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10624 if test "X$HPUX_IA64_MODE" = X32; then
Chris@1 10625 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Chris@1 10626 else
Chris@1 10627 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Chris@1 10628 fi
Chris@1 10629 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@1 10630 ;;
Chris@1 10631 hppa*64*)
Chris@1 10632 shrext_cmds='.sl'
Chris@1 10633 hardcode_into_libs=yes
Chris@1 10634 dynamic_linker="$host_os dld.sl"
Chris@1 10635 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
Chris@1 10636 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@1 10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@1 10638 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10639 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
Chris@1 10640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@1 10641 ;;
Chris@1 10642 *)
Chris@1 10643 shrext_cmds='.sl'
Chris@1 10644 dynamic_linker="$host_os dld.sl"
Chris@1 10645 shlibpath_var=SHLIB_PATH
Chris@1 10646 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Chris@1 10647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@1 10648 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10649 ;;
Chris@1 10650 esac
Chris@1 10651 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Chris@1 10652 postinstall_cmds='chmod 555 $lib'
Chris@1 10653 # or fails outright, so override atomically:
Chris@1 10654 install_override_mode=555
Chris@1 10655 ;;
Chris@1 10656
Chris@1 10657 interix[3-9]*)
Chris@1 10658 version_type=linux
Chris@1 10659 need_lib_prefix=no
Chris@1 10660 need_version=no
Chris@1 10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@1 10662 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10663 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
Chris@1 10664 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10665 shlibpath_overrides_runpath=no
Chris@1 10666 hardcode_into_libs=yes
Chris@1 10667 ;;
Chris@1 10668
Chris@1 10669 irix5* | irix6* | nonstopux*)
Chris@1 10670 case $host_os in
Chris@1 10671 nonstopux*) version_type=nonstopux ;;
Chris@1 10672 *)
Chris@1 10673 if test "$lt_cv_prog_gnu_ld" = yes; then
Chris@1 10674 version_type=linux
Chris@1 10675 else
Chris@1 10676 version_type=irix
Chris@1 10677 fi ;;
Chris@1 10678 esac
Chris@1 10679 need_lib_prefix=no
Chris@1 10680 need_version=no
Chris@1 10681 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@1 10683 case $host_os in
Chris@1 10684 irix5* | nonstopux*)
Chris@1 10685 libsuff= shlibsuff=
Chris@1 10686 ;;
Chris@1 10687 *)
Chris@1 10688 case $LD in # libtool.m4 will add one of these switches to LD
Chris@1 10689 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
Chris@1 10690 libsuff= shlibsuff= libmagic=32-bit;;
Chris@1 10691 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
Chris@1 10692 libsuff=32 shlibsuff=N32 libmagic=N32;;
Chris@1 10693 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
Chris@1 10694 libsuff=64 shlibsuff=64 libmagic=64-bit;;
Chris@1 10695 *) libsuff= shlibsuff= libmagic=never-match;;
Chris@1 10696 esac
Chris@1 10697 ;;
Chris@1 10698 esac
Chris@1 10699 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
Chris@1 10700 shlibpath_overrides_runpath=no
Chris@1 10701 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
Chris@1 10702 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
Chris@1 10703 hardcode_into_libs=yes
Chris@1 10704 ;;
Chris@1 10705
Chris@1 10706 # No shared lib support for Linux oldld, aout, or coff.
Chris@1 10707 linux*oldld* | linux*aout* | linux*coff*)
Chris@1 10708 dynamic_linker=no
Chris@1 10709 ;;
Chris@1 10710
Chris@1 10711 # This must be Linux ELF.
Chris@1 10712 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@1 10713 version_type=linux
Chris@1 10714 need_lib_prefix=no
Chris@1 10715 need_version=no
Chris@1 10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@1 10717 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
Chris@1 10719 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10720 shlibpath_overrides_runpath=no
Chris@1 10721
Chris@1 10722 # Some binutils ld are patched to set DT_RUNPATH
Chris@1 10723 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
Chris@1 10724 $as_echo_n "(cached) " >&6
Chris@1 10725 else
Chris@1 10726 lt_cv_shlibpath_overrides_runpath=no
Chris@1 10727 save_LDFLAGS=$LDFLAGS
Chris@1 10728 save_libdir=$libdir
Chris@1 10729 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
Chris@1 10730 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
Chris@1 10731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 10732 /* end confdefs.h. */
Chris@1 10733
Chris@1 10734 int
Chris@1 10735 main ()
Chris@1 10736 {
Chris@1 10737
Chris@1 10738 ;
Chris@1 10739 return 0;
Chris@1 10740 }
Chris@1 10741 _ACEOF
Chris@1 10742 if ac_fn_c_try_link "$LINENO"; then :
Chris@1 10743 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
Chris@1 10744 lt_cv_shlibpath_overrides_runpath=yes
Chris@1 10745 fi
Chris@1 10746 fi
Chris@1 10747 rm -f core conftest.err conftest.$ac_objext \
Chris@1 10748 conftest$ac_exeext conftest.$ac_ext
Chris@1 10749 LDFLAGS=$save_LDFLAGS
Chris@1 10750 libdir=$save_libdir
Chris@1 10751
Chris@1 10752 fi
Chris@1 10753
Chris@1 10754 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Chris@1 10755
Chris@1 10756 # This implies no fast_install, which is unacceptable.
Chris@1 10757 # Some rework will be needed to allow for fast_install
Chris@1 10758 # before this can be enabled.
Chris@1 10759 hardcode_into_libs=yes
Chris@1 10760
Chris@1 10761 # Append ld.so.conf contents to the search path
Chris@1 10762 if test -f /etc/ld.so.conf; then
Chris@1 10763 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@1 10764 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
Chris@1 10765 fi
Chris@1 10766
Chris@1 10767 # We used to test for /lib/ld.so.1 and disable shared libraries on
Chris@1 10768 # powerpc, because MkLinux only supported shared libraries with the
Chris@1 10769 # GNU dynamic linker. Since this was broken with cross compilers,
Chris@1 10770 # most powerpc-linux boxes support dynamic linking these days and
Chris@1 10771 # people can always --disable-shared, the test was removed, and we
Chris@1 10772 # assume the GNU/Linux dynamic linker is in use.
Chris@1 10773 dynamic_linker='GNU/Linux ld.so'
Chris@1 10774 ;;
Chris@1 10775
Chris@1 10776 netbsdelf*-gnu)
Chris@1 10777 version_type=linux
Chris@1 10778 need_lib_prefix=no
Chris@1 10779 need_version=no
Chris@1 10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@1 10781 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10782 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10783 shlibpath_overrides_runpath=no
Chris@1 10784 hardcode_into_libs=yes
Chris@1 10785 dynamic_linker='NetBSD ld.elf_so'
Chris@1 10786 ;;
Chris@1 10787
Chris@1 10788 netbsd*)
Chris@1 10789 version_type=sunos
Chris@1 10790 need_lib_prefix=no
Chris@1 10791 need_version=no
Chris@1 10792 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@1 10793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@1 10794 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@1 10795 dynamic_linker='NetBSD (a.out) ld.so'
Chris@1 10796 else
Chris@1 10797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@1 10798 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10799 dynamic_linker='NetBSD ld.elf_so'
Chris@1 10800 fi
Chris@1 10801 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10802 shlibpath_overrides_runpath=yes
Chris@1 10803 hardcode_into_libs=yes
Chris@1 10804 ;;
Chris@1 10805
Chris@1 10806 newsos6)
Chris@1 10807 version_type=linux
Chris@1 10808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@1 10809 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10810 shlibpath_overrides_runpath=yes
Chris@1 10811 ;;
Chris@1 10812
Chris@1 10813 *nto* | *qnx*)
Chris@1 10814 version_type=qnx
Chris@1 10815 need_lib_prefix=no
Chris@1 10816 need_version=no
Chris@1 10817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@1 10818 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10819 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10820 shlibpath_overrides_runpath=no
Chris@1 10821 hardcode_into_libs=yes
Chris@1 10822 dynamic_linker='ldqnx.so'
Chris@1 10823 ;;
Chris@1 10824
Chris@1 10825 openbsd*)
Chris@1 10826 version_type=sunos
Chris@1 10827 sys_lib_dlsearch_path_spec="/usr/lib"
Chris@1 10828 need_lib_prefix=no
Chris@1 10829 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
Chris@1 10830 case $host_os in
Chris@1 10831 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
Chris@1 10832 *) need_version=no ;;
Chris@1 10833 esac
Chris@1 10834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@1 10835 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@1 10836 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10837 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@1 10838 case $host_os in
Chris@1 10839 openbsd2.[89] | openbsd2.[89].*)
Chris@1 10840 shlibpath_overrides_runpath=no
Chris@1 10841 ;;
Chris@1 10842 *)
Chris@1 10843 shlibpath_overrides_runpath=yes
Chris@1 10844 ;;
Chris@1 10845 esac
Chris@1 10846 else
Chris@1 10847 shlibpath_overrides_runpath=yes
Chris@1 10848 fi
Chris@1 10849 ;;
Chris@1 10850
Chris@1 10851 os2*)
Chris@1 10852 libname_spec='$name'
Chris@1 10853 shrext_cmds=".dll"
Chris@1 10854 need_lib_prefix=no
Chris@1 10855 library_names_spec='$libname${shared_ext} $libname.a'
Chris@1 10856 dynamic_linker='OS/2 ld.exe'
Chris@1 10857 shlibpath_var=LIBPATH
Chris@1 10858 ;;
Chris@1 10859
Chris@1 10860 osf3* | osf4* | osf5*)
Chris@1 10861 version_type=osf
Chris@1 10862 need_lib_prefix=no
Chris@1 10863 need_version=no
Chris@1 10864 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@1 10866 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10867 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Chris@1 10868 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
Chris@1 10869 ;;
Chris@1 10870
Chris@1 10871 rdos*)
Chris@1 10872 dynamic_linker=no
Chris@1 10873 ;;
Chris@1 10874
Chris@1 10875 solaris*)
Chris@1 10876 version_type=linux
Chris@1 10877 need_lib_prefix=no
Chris@1 10878 need_version=no
Chris@1 10879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@1 10880 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10881 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10882 shlibpath_overrides_runpath=yes
Chris@1 10883 hardcode_into_libs=yes
Chris@1 10884 # ldd complains unless libraries are executable
Chris@1 10885 postinstall_cmds='chmod +x $lib'
Chris@1 10886 ;;
Chris@1 10887
Chris@1 10888 sunos4*)
Chris@1 10889 version_type=sunos
Chris@1 10890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@1 10891 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
Chris@1 10892 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10893 shlibpath_overrides_runpath=yes
Chris@1 10894 if test "$with_gnu_ld" = yes; then
Chris@1 10895 need_lib_prefix=no
Chris@1 10896 fi
Chris@1 10897 need_version=yes
Chris@1 10898 ;;
Chris@1 10899
Chris@1 10900 sysv4 | sysv4.3*)
Chris@1 10901 version_type=linux
Chris@1 10902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@1 10903 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10904 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10905 case $host_vendor in
Chris@1 10906 sni)
Chris@1 10907 shlibpath_overrides_runpath=no
Chris@1 10908 need_lib_prefix=no
Chris@1 10909 runpath_var=LD_RUN_PATH
Chris@1 10910 ;;
Chris@1 10911 siemens)
Chris@1 10912 need_lib_prefix=no
Chris@1 10913 ;;
Chris@1 10914 motorola)
Chris@1 10915 need_lib_prefix=no
Chris@1 10916 need_version=no
Chris@1 10917 shlibpath_overrides_runpath=no
Chris@1 10918 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
Chris@1 10919 ;;
Chris@1 10920 esac
Chris@1 10921 ;;
Chris@1 10922
Chris@1 10923 sysv4*MP*)
Chris@1 10924 if test -d /usr/nec ;then
Chris@1 10925 version_type=linux
Chris@1 10926 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
Chris@1 10927 soname_spec='$libname${shared_ext}.$major'
Chris@1 10928 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10929 fi
Chris@1 10930 ;;
Chris@1 10931
Chris@1 10932 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Chris@1 10933 version_type=freebsd-elf
Chris@1 10934 need_lib_prefix=no
Chris@1 10935 need_version=no
Chris@1 10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@1 10937 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10938 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10939 shlibpath_overrides_runpath=yes
Chris@1 10940 hardcode_into_libs=yes
Chris@1 10941 if test "$with_gnu_ld" = yes; then
Chris@1 10942 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Chris@1 10943 else
Chris@1 10944 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Chris@1 10945 case $host_os in
Chris@1 10946 sco3.2v5*)
Chris@1 10947 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
Chris@1 10948 ;;
Chris@1 10949 esac
Chris@1 10950 fi
Chris@1 10951 sys_lib_dlsearch_path_spec='/usr/lib'
Chris@1 10952 ;;
Chris@1 10953
Chris@1 10954 tpf*)
Chris@1 10955 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Chris@1 10956 version_type=linux
Chris@1 10957 need_lib_prefix=no
Chris@1 10958 need_version=no
Chris@1 10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@1 10960 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10961 shlibpath_overrides_runpath=no
Chris@1 10962 hardcode_into_libs=yes
Chris@1 10963 ;;
Chris@1 10964
Chris@1 10965 uts4*)
Chris@1 10966 version_type=linux
Chris@1 10967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@1 10968 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10969 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10970 ;;
Chris@1 10971
Chris@1 10972 *)
Chris@1 10973 dynamic_linker=no
Chris@1 10974 ;;
Chris@1 10975 esac
Chris@1 10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Chris@1 10977 $as_echo "$dynamic_linker" >&6; }
Chris@1 10978 test "$dynamic_linker" = no && can_build_shared=no
Chris@1 10979
Chris@1 10980 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Chris@1 10981 if test "$GCC" = yes; then
Chris@1 10982 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
Chris@1 10983 fi
Chris@1 10984
Chris@1 10985 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
Chris@1 10986 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
Chris@1 10987 fi
Chris@1 10988 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
Chris@1 10989 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
Chris@1 10990 fi
Chris@1 10991
Chris@1 10992
Chris@1 10993
Chris@1 10994
Chris@1 10995
Chris@1 10996
Chris@1 10997
Chris@1 10998
Chris@1 10999
Chris@1 11000
Chris@1 11001
Chris@1 11002
Chris@1 11003
Chris@1 11004
Chris@1 11005
Chris@1 11006
Chris@1 11007
Chris@1 11008
Chris@1 11009
Chris@1 11010
Chris@1 11011
Chris@1 11012
Chris@1 11013
Chris@1 11014
Chris@1 11015
Chris@1 11016
Chris@1 11017
Chris@1 11018
Chris@1 11019
Chris@1 11020
Chris@1 11021
Chris@1 11022
Chris@1 11023
Chris@1 11024
Chris@1 11025
Chris@1 11026
Chris@1 11027
Chris@1 11028
Chris@1 11029
Chris@1 11030
Chris@1 11031
Chris@1 11032
Chris@1 11033
Chris@1 11034
Chris@1 11035
Chris@1 11036
Chris@1 11037
Chris@1 11038
Chris@1 11039
Chris@1 11040
Chris@1 11041
Chris@1 11042
Chris@1 11043
Chris@1 11044
Chris@1 11045
Chris@1 11046
Chris@1 11047
Chris@1 11048
Chris@1 11049
Chris@1 11050
Chris@1 11051
Chris@1 11052
Chris@1 11053
Chris@1 11054
Chris@1 11055
Chris@1 11056
Chris@1 11057
Chris@1 11058
Chris@1 11059
Chris@1 11060
Chris@1 11061
Chris@1 11062
Chris@1 11063
Chris@1 11064
Chris@1 11065
Chris@1 11066
Chris@1 11067
Chris@1 11068
Chris@1 11069
Chris@1 11070
Chris@1 11071
Chris@1 11072
Chris@1 11073
Chris@1 11074
Chris@1 11075
Chris@1 11076
Chris@1 11077
Chris@1 11078
Chris@1 11079
Chris@1 11080
Chris@1 11081
Chris@1 11082
Chris@1 11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Chris@1 11084 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Chris@1 11085 hardcode_action=
Chris@1 11086 if test -n "$hardcode_libdir_flag_spec" ||
Chris@1 11087 test -n "$runpath_var" ||
Chris@1 11088 test "X$hardcode_automatic" = "Xyes" ; then
Chris@1 11089
Chris@1 11090 # We can hardcode non-existent directories.
Chris@1 11091 if test "$hardcode_direct" != no &&
Chris@1 11092 # If the only mechanism to avoid hardcoding is shlibpath_var, we
Chris@1 11093 # have to relink, otherwise we might link with an installed library
Chris@1 11094 # when we should be linking with a yet-to-be-installed one
Chris@1 11095 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
Chris@1 11096 test "$hardcode_minus_L" != no; then
Chris@1 11097 # Linking always hardcodes the temporary library directory.
Chris@1 11098 hardcode_action=relink
Chris@1 11099 else
Chris@1 11100 # We can link without hardcoding, and we can hardcode nonexisting dirs.
Chris@1 11101 hardcode_action=immediate
Chris@1 11102 fi
Chris@1 11103 else
Chris@1 11104 # We cannot hardcode anything, or else we can only hardcode existing
Chris@1 11105 # directories.
Chris@1 11106 hardcode_action=unsupported
Chris@1 11107 fi
Chris@1 11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
Chris@1 11109 $as_echo "$hardcode_action" >&6; }
Chris@1 11110
Chris@1 11111 if test "$hardcode_action" = relink ||
Chris@1 11112 test "$inherit_rpath" = yes; then
Chris@1 11113 # Fast installation is not supported
Chris@1 11114 enable_fast_install=no
Chris@1 11115 elif test "$shlibpath_overrides_runpath" = yes ||
Chris@1 11116 test "$enable_shared" = no; then
Chris@1 11117 # Fast installation is not necessary
Chris@1 11118 enable_fast_install=needless
Chris@1 11119 fi
Chris@1 11120
Chris@1 11121
Chris@1 11122
Chris@1 11123
Chris@1 11124
Chris@1 11125
Chris@1 11126 if test "x$enable_dlopen" != xyes; then
Chris@1 11127 enable_dlopen=unknown
Chris@1 11128 enable_dlopen_self=unknown
Chris@1 11129 enable_dlopen_self_static=unknown
Chris@1 11130 else
Chris@1 11131 lt_cv_dlopen=no
Chris@1 11132 lt_cv_dlopen_libs=
Chris@1 11133
Chris@1 11134 case $host_os in
Chris@1 11135 beos*)
Chris@1 11136 lt_cv_dlopen="load_add_on"
Chris@1 11137 lt_cv_dlopen_libs=
Chris@1 11138 lt_cv_dlopen_self=yes
Chris@1 11139 ;;
Chris@1 11140
Chris@1 11141 mingw* | pw32* | cegcc*)
Chris@1 11142 lt_cv_dlopen="LoadLibrary"
Chris@1 11143 lt_cv_dlopen_libs=
Chris@1 11144 ;;
Chris@1 11145
Chris@1 11146 cygwin*)
Chris@1 11147 lt_cv_dlopen="dlopen"
Chris@1 11148 lt_cv_dlopen_libs=
Chris@1 11149 ;;
Chris@1 11150
Chris@1 11151 darwin*)
Chris@1 11152 # if libdl is installed we need to link against it
Chris@1 11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Chris@1 11154 $as_echo_n "checking for dlopen in -ldl... " >&6; }
Chris@1 11155 if ${ac_cv_lib_dl_dlopen+:} false; then :
Chris@1 11156 $as_echo_n "(cached) " >&6
Chris@1 11157 else
Chris@1 11158 ac_check_lib_save_LIBS=$LIBS
Chris@1 11159 LIBS="-ldl $LIBS"
Chris@1 11160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 11161 /* end confdefs.h. */
Chris@1 11162
Chris@1 11163 /* Override any GCC internal prototype to avoid an error.
Chris@1 11164 Use char because int might match the return type of a GCC
Chris@1 11165 builtin and then its argument prototype would still apply. */
Chris@1 11166 #ifdef __cplusplus
Chris@1 11167 extern "C"
Chris@1 11168 #endif
Chris@1 11169 char dlopen ();
Chris@1 11170 int
Chris@1 11171 main ()
Chris@1 11172 {
Chris@1 11173 return dlopen ();
Chris@1 11174 ;
Chris@1 11175 return 0;
Chris@1 11176 }
Chris@1 11177 _ACEOF
Chris@1 11178 if ac_fn_c_try_link "$LINENO"; then :
Chris@1 11179 ac_cv_lib_dl_dlopen=yes
Chris@1 11180 else
Chris@1 11181 ac_cv_lib_dl_dlopen=no
Chris@1 11182 fi
Chris@1 11183 rm -f core conftest.err conftest.$ac_objext \
Chris@1 11184 conftest$ac_exeext conftest.$ac_ext
Chris@1 11185 LIBS=$ac_check_lib_save_LIBS
Chris@1 11186 fi
Chris@1 11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Chris@1 11188 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Chris@1 11189 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Chris@1 11190 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
Chris@1 11191 else
Chris@1 11192
Chris@1 11193 lt_cv_dlopen="dyld"
Chris@1 11194 lt_cv_dlopen_libs=
Chris@1 11195 lt_cv_dlopen_self=yes
Chris@1 11196
Chris@1 11197 fi
Chris@1 11198
Chris@1 11199 ;;
Chris@1 11200
Chris@1 11201 *)
Chris@1 11202 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
Chris@1 11203 if test "x$ac_cv_func_shl_load" = xyes; then :
Chris@1 11204 lt_cv_dlopen="shl_load"
Chris@1 11205 else
Chris@1 11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
Chris@1 11207 $as_echo_n "checking for shl_load in -ldld... " >&6; }
Chris@1 11208 if ${ac_cv_lib_dld_shl_load+:} false; then :
Chris@1 11209 $as_echo_n "(cached) " >&6
Chris@1 11210 else
Chris@1 11211 ac_check_lib_save_LIBS=$LIBS
Chris@1 11212 LIBS="-ldld $LIBS"
Chris@1 11213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 11214 /* end confdefs.h. */
Chris@1 11215
Chris@1 11216 /* Override any GCC internal prototype to avoid an error.
Chris@1 11217 Use char because int might match the return type of a GCC
Chris@1 11218 builtin and then its argument prototype would still apply. */
Chris@1 11219 #ifdef __cplusplus
Chris@1 11220 extern "C"
Chris@1 11221 #endif
Chris@1 11222 char shl_load ();
Chris@1 11223 int
Chris@1 11224 main ()
Chris@1 11225 {
Chris@1 11226 return shl_load ();
Chris@1 11227 ;
Chris@1 11228 return 0;
Chris@1 11229 }
Chris@1 11230 _ACEOF
Chris@1 11231 if ac_fn_c_try_link "$LINENO"; then :
Chris@1 11232 ac_cv_lib_dld_shl_load=yes
Chris@1 11233 else
Chris@1 11234 ac_cv_lib_dld_shl_load=no
Chris@1 11235 fi
Chris@1 11236 rm -f core conftest.err conftest.$ac_objext \
Chris@1 11237 conftest$ac_exeext conftest.$ac_ext
Chris@1 11238 LIBS=$ac_check_lib_save_LIBS
Chris@1 11239 fi
Chris@1 11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
Chris@1 11241 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Chris@1 11242 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Chris@1 11243 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
Chris@1 11244 else
Chris@1 11245 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
Chris@1 11246 if test "x$ac_cv_func_dlopen" = xyes; then :
Chris@1 11247 lt_cv_dlopen="dlopen"
Chris@1 11248 else
Chris@1 11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Chris@1 11250 $as_echo_n "checking for dlopen in -ldl... " >&6; }
Chris@1 11251 if ${ac_cv_lib_dl_dlopen+:} false; then :
Chris@1 11252 $as_echo_n "(cached) " >&6
Chris@1 11253 else
Chris@1 11254 ac_check_lib_save_LIBS=$LIBS
Chris@1 11255 LIBS="-ldl $LIBS"
Chris@1 11256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 11257 /* end confdefs.h. */
Chris@1 11258
Chris@1 11259 /* Override any GCC internal prototype to avoid an error.
Chris@1 11260 Use char because int might match the return type of a GCC
Chris@1 11261 builtin and then its argument prototype would still apply. */
Chris@1 11262 #ifdef __cplusplus
Chris@1 11263 extern "C"
Chris@1 11264 #endif
Chris@1 11265 char dlopen ();
Chris@1 11266 int
Chris@1 11267 main ()
Chris@1 11268 {
Chris@1 11269 return dlopen ();
Chris@1 11270 ;
Chris@1 11271 return 0;
Chris@1 11272 }
Chris@1 11273 _ACEOF
Chris@1 11274 if ac_fn_c_try_link "$LINENO"; then :
Chris@1 11275 ac_cv_lib_dl_dlopen=yes
Chris@1 11276 else
Chris@1 11277 ac_cv_lib_dl_dlopen=no
Chris@1 11278 fi
Chris@1 11279 rm -f core conftest.err conftest.$ac_objext \
Chris@1 11280 conftest$ac_exeext conftest.$ac_ext
Chris@1 11281 LIBS=$ac_check_lib_save_LIBS
Chris@1 11282 fi
Chris@1 11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Chris@1 11284 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Chris@1 11285 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Chris@1 11286 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
Chris@1 11287 else
Chris@1 11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
Chris@1 11289 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
Chris@1 11290 if ${ac_cv_lib_svld_dlopen+:} false; then :
Chris@1 11291 $as_echo_n "(cached) " >&6
Chris@1 11292 else
Chris@1 11293 ac_check_lib_save_LIBS=$LIBS
Chris@1 11294 LIBS="-lsvld $LIBS"
Chris@1 11295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 11296 /* end confdefs.h. */
Chris@1 11297
Chris@1 11298 /* Override any GCC internal prototype to avoid an error.
Chris@1 11299 Use char because int might match the return type of a GCC
Chris@1 11300 builtin and then its argument prototype would still apply. */
Chris@1 11301 #ifdef __cplusplus
Chris@1 11302 extern "C"
Chris@1 11303 #endif
Chris@1 11304 char dlopen ();
Chris@1 11305 int
Chris@1 11306 main ()
Chris@1 11307 {
Chris@1 11308 return dlopen ();
Chris@1 11309 ;
Chris@1 11310 return 0;
Chris@1 11311 }
Chris@1 11312 _ACEOF
Chris@1 11313 if ac_fn_c_try_link "$LINENO"; then :
Chris@1 11314 ac_cv_lib_svld_dlopen=yes
Chris@1 11315 else
Chris@1 11316 ac_cv_lib_svld_dlopen=no
Chris@1 11317 fi
Chris@1 11318 rm -f core conftest.err conftest.$ac_objext \
Chris@1 11319 conftest$ac_exeext conftest.$ac_ext
Chris@1 11320 LIBS=$ac_check_lib_save_LIBS
Chris@1 11321 fi
Chris@1 11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
Chris@1 11323 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Chris@1 11324 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Chris@1 11325 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
Chris@1 11326 else
Chris@1 11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
Chris@1 11328 $as_echo_n "checking for dld_link in -ldld... " >&6; }
Chris@1 11329 if ${ac_cv_lib_dld_dld_link+:} false; then :
Chris@1 11330 $as_echo_n "(cached) " >&6
Chris@1 11331 else
Chris@1 11332 ac_check_lib_save_LIBS=$LIBS
Chris@1 11333 LIBS="-ldld $LIBS"
Chris@1 11334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 11335 /* end confdefs.h. */
Chris@1 11336
Chris@1 11337 /* Override any GCC internal prototype to avoid an error.
Chris@1 11338 Use char because int might match the return type of a GCC
Chris@1 11339 builtin and then its argument prototype would still apply. */
Chris@1 11340 #ifdef __cplusplus
Chris@1 11341 extern "C"
Chris@1 11342 #endif
Chris@1 11343 char dld_link ();
Chris@1 11344 int
Chris@1 11345 main ()
Chris@1 11346 {
Chris@1 11347 return dld_link ();
Chris@1 11348 ;
Chris@1 11349 return 0;
Chris@1 11350 }
Chris@1 11351 _ACEOF
Chris@1 11352 if ac_fn_c_try_link "$LINENO"; then :
Chris@1 11353 ac_cv_lib_dld_dld_link=yes
Chris@1 11354 else
Chris@1 11355 ac_cv_lib_dld_dld_link=no
Chris@1 11356 fi
Chris@1 11357 rm -f core conftest.err conftest.$ac_objext \
Chris@1 11358 conftest$ac_exeext conftest.$ac_ext
Chris@1 11359 LIBS=$ac_check_lib_save_LIBS
Chris@1 11360 fi
Chris@1 11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
Chris@1 11362 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Chris@1 11363 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Chris@1 11364 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
Chris@1 11365 fi
Chris@1 11366
Chris@1 11367
Chris@1 11368 fi
Chris@1 11369
Chris@1 11370
Chris@1 11371 fi
Chris@1 11372
Chris@1 11373
Chris@1 11374 fi
Chris@1 11375
Chris@1 11376
Chris@1 11377 fi
Chris@1 11378
Chris@1 11379
Chris@1 11380 fi
Chris@1 11381
Chris@1 11382 ;;
Chris@1 11383 esac
Chris@1 11384
Chris@1 11385 if test "x$lt_cv_dlopen" != xno; then
Chris@1 11386 enable_dlopen=yes
Chris@1 11387 else
Chris@1 11388 enable_dlopen=no
Chris@1 11389 fi
Chris@1 11390
Chris@1 11391 case $lt_cv_dlopen in
Chris@1 11392 dlopen)
Chris@1 11393 save_CPPFLAGS="$CPPFLAGS"
Chris@1 11394 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Chris@1 11395
Chris@1 11396 save_LDFLAGS="$LDFLAGS"
Chris@1 11397 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Chris@1 11398
Chris@1 11399 save_LIBS="$LIBS"
Chris@1 11400 LIBS="$lt_cv_dlopen_libs $LIBS"
Chris@1 11401
Chris@1 11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
Chris@1 11403 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
Chris@1 11404 if ${lt_cv_dlopen_self+:} false; then :
Chris@1 11405 $as_echo_n "(cached) " >&6
Chris@1 11406 else
Chris@1 11407 if test "$cross_compiling" = yes; then :
Chris@1 11408 lt_cv_dlopen_self=cross
Chris@1 11409 else
Chris@1 11410 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Chris@1 11411 lt_status=$lt_dlunknown
Chris@1 11412 cat > conftest.$ac_ext <<_LT_EOF
Chris@1 11413 #line $LINENO "configure"
Chris@1 11414 #include "confdefs.h"
Chris@1 11415
Chris@1 11416 #if HAVE_DLFCN_H
Chris@1 11417 #include <dlfcn.h>
Chris@1 11418 #endif
Chris@1 11419
Chris@1 11420 #include <stdio.h>
Chris@1 11421
Chris@1 11422 #ifdef RTLD_GLOBAL
Chris@1 11423 # define LT_DLGLOBAL RTLD_GLOBAL
Chris@1 11424 #else
Chris@1 11425 # ifdef DL_GLOBAL
Chris@1 11426 # define LT_DLGLOBAL DL_GLOBAL
Chris@1 11427 # else
Chris@1 11428 # define LT_DLGLOBAL 0
Chris@1 11429 # endif
Chris@1 11430 #endif
Chris@1 11431
Chris@1 11432 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Chris@1 11433 find out it does not work in some platform. */
Chris@1 11434 #ifndef LT_DLLAZY_OR_NOW
Chris@1 11435 # ifdef RTLD_LAZY
Chris@1 11436 # define LT_DLLAZY_OR_NOW RTLD_LAZY
Chris@1 11437 # else
Chris@1 11438 # ifdef DL_LAZY
Chris@1 11439 # define LT_DLLAZY_OR_NOW DL_LAZY
Chris@1 11440 # else
Chris@1 11441 # ifdef RTLD_NOW
Chris@1 11442 # define LT_DLLAZY_OR_NOW RTLD_NOW
Chris@1 11443 # else
Chris@1 11444 # ifdef DL_NOW
Chris@1 11445 # define LT_DLLAZY_OR_NOW DL_NOW
Chris@1 11446 # else
Chris@1 11447 # define LT_DLLAZY_OR_NOW 0
Chris@1 11448 # endif
Chris@1 11449 # endif
Chris@1 11450 # endif
Chris@1 11451 # endif
Chris@1 11452 #endif
Chris@1 11453
Chris@1 11454 /* When -fvisbility=hidden is used, assume the code has been annotated
Chris@1 11455 correspondingly for the symbols needed. */
Chris@1 11456 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Chris@1 11457 int fnord () __attribute__((visibility("default")));
Chris@1 11458 #endif
Chris@1 11459
Chris@1 11460 int fnord () { return 42; }
Chris@1 11461 int main ()
Chris@1 11462 {
Chris@1 11463 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Chris@1 11464 int status = $lt_dlunknown;
Chris@1 11465
Chris@1 11466 if (self)
Chris@1 11467 {
Chris@1 11468 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Chris@1 11469 else
Chris@1 11470 {
Chris@1 11471 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Chris@1 11472 else puts (dlerror ());
Chris@1 11473 }
Chris@1 11474 /* dlclose (self); */
Chris@1 11475 }
Chris@1 11476 else
Chris@1 11477 puts (dlerror ());
Chris@1 11478
Chris@1 11479 return status;
Chris@1 11480 }
Chris@1 11481 _LT_EOF
Chris@1 11482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Chris@1 11483 (eval $ac_link) 2>&5
Chris@1 11484 ac_status=$?
Chris@1 11485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 11486 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Chris@1 11487 (./conftest; exit; ) >&5 2>/dev/null
Chris@1 11488 lt_status=$?
Chris@1 11489 case x$lt_status in
Chris@1 11490 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
Chris@1 11491 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Chris@1 11492 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
Chris@1 11493 esac
Chris@1 11494 else :
Chris@1 11495 # compilation failed
Chris@1 11496 lt_cv_dlopen_self=no
Chris@1 11497 fi
Chris@1 11498 fi
Chris@1 11499 rm -fr conftest*
Chris@1 11500
Chris@1 11501
Chris@1 11502 fi
Chris@1 11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
Chris@1 11504 $as_echo "$lt_cv_dlopen_self" >&6; }
Chris@1 11505
Chris@1 11506 if test "x$lt_cv_dlopen_self" = xyes; then
Chris@1 11507 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Chris@1 11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
Chris@1 11509 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Chris@1 11510 if ${lt_cv_dlopen_self_static+:} false; then :
Chris@1 11511 $as_echo_n "(cached) " >&6
Chris@1 11512 else
Chris@1 11513 if test "$cross_compiling" = yes; then :
Chris@1 11514 lt_cv_dlopen_self_static=cross
Chris@1 11515 else
Chris@1 11516 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Chris@1 11517 lt_status=$lt_dlunknown
Chris@1 11518 cat > conftest.$ac_ext <<_LT_EOF
Chris@1 11519 #line $LINENO "configure"
Chris@1 11520 #include "confdefs.h"
Chris@1 11521
Chris@1 11522 #if HAVE_DLFCN_H
Chris@1 11523 #include <dlfcn.h>
Chris@1 11524 #endif
Chris@1 11525
Chris@1 11526 #include <stdio.h>
Chris@1 11527
Chris@1 11528 #ifdef RTLD_GLOBAL
Chris@1 11529 # define LT_DLGLOBAL RTLD_GLOBAL
Chris@1 11530 #else
Chris@1 11531 # ifdef DL_GLOBAL
Chris@1 11532 # define LT_DLGLOBAL DL_GLOBAL
Chris@1 11533 # else
Chris@1 11534 # define LT_DLGLOBAL 0
Chris@1 11535 # endif
Chris@1 11536 #endif
Chris@1 11537
Chris@1 11538 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Chris@1 11539 find out it does not work in some platform. */
Chris@1 11540 #ifndef LT_DLLAZY_OR_NOW
Chris@1 11541 # ifdef RTLD_LAZY
Chris@1 11542 # define LT_DLLAZY_OR_NOW RTLD_LAZY
Chris@1 11543 # else
Chris@1 11544 # ifdef DL_LAZY
Chris@1 11545 # define LT_DLLAZY_OR_NOW DL_LAZY
Chris@1 11546 # else
Chris@1 11547 # ifdef RTLD_NOW
Chris@1 11548 # define LT_DLLAZY_OR_NOW RTLD_NOW
Chris@1 11549 # else
Chris@1 11550 # ifdef DL_NOW
Chris@1 11551 # define LT_DLLAZY_OR_NOW DL_NOW
Chris@1 11552 # else
Chris@1 11553 # define LT_DLLAZY_OR_NOW 0
Chris@1 11554 # endif
Chris@1 11555 # endif
Chris@1 11556 # endif
Chris@1 11557 # endif
Chris@1 11558 #endif
Chris@1 11559
Chris@1 11560 /* When -fvisbility=hidden is used, assume the code has been annotated
Chris@1 11561 correspondingly for the symbols needed. */
Chris@1 11562 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Chris@1 11563 int fnord () __attribute__((visibility("default")));
Chris@1 11564 #endif
Chris@1 11565
Chris@1 11566 int fnord () { return 42; }
Chris@1 11567 int main ()
Chris@1 11568 {
Chris@1 11569 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Chris@1 11570 int status = $lt_dlunknown;
Chris@1 11571
Chris@1 11572 if (self)
Chris@1 11573 {
Chris@1 11574 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Chris@1 11575 else
Chris@1 11576 {
Chris@1 11577 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Chris@1 11578 else puts (dlerror ());
Chris@1 11579 }
Chris@1 11580 /* dlclose (self); */
Chris@1 11581 }
Chris@1 11582 else
Chris@1 11583 puts (dlerror ());
Chris@1 11584
Chris@1 11585 return status;
Chris@1 11586 }
Chris@1 11587 _LT_EOF
Chris@1 11588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Chris@1 11589 (eval $ac_link) 2>&5
Chris@1 11590 ac_status=$?
Chris@1 11591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 11592 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Chris@1 11593 (./conftest; exit; ) >&5 2>/dev/null
Chris@1 11594 lt_status=$?
Chris@1 11595 case x$lt_status in
Chris@1 11596 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
Chris@1 11597 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Chris@1 11598 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
Chris@1 11599 esac
Chris@1 11600 else :
Chris@1 11601 # compilation failed
Chris@1 11602 lt_cv_dlopen_self_static=no
Chris@1 11603 fi
Chris@1 11604 fi
Chris@1 11605 rm -fr conftest*
Chris@1 11606
Chris@1 11607
Chris@1 11608 fi
Chris@1 11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
Chris@1 11610 $as_echo "$lt_cv_dlopen_self_static" >&6; }
Chris@1 11611 fi
Chris@1 11612
Chris@1 11613 CPPFLAGS="$save_CPPFLAGS"
Chris@1 11614 LDFLAGS="$save_LDFLAGS"
Chris@1 11615 LIBS="$save_LIBS"
Chris@1 11616 ;;
Chris@1 11617 esac
Chris@1 11618
Chris@1 11619 case $lt_cv_dlopen_self in
Chris@1 11620 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
Chris@1 11621 *) enable_dlopen_self=unknown ;;
Chris@1 11622 esac
Chris@1 11623
Chris@1 11624 case $lt_cv_dlopen_self_static in
Chris@1 11625 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
Chris@1 11626 *) enable_dlopen_self_static=unknown ;;
Chris@1 11627 esac
Chris@1 11628 fi
Chris@1 11629
Chris@1 11630
Chris@1 11631
Chris@1 11632
Chris@1 11633
Chris@1 11634
Chris@1 11635
Chris@1 11636
Chris@1 11637
Chris@1 11638
Chris@1 11639
Chris@1 11640
Chris@1 11641
Chris@1 11642
Chris@1 11643
Chris@1 11644
Chris@1 11645
Chris@1 11646 striplib=
Chris@1 11647 old_striplib=
Chris@1 11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
Chris@1 11649 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
Chris@1 11650 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
Chris@1 11651 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
Chris@1 11652 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Chris@1 11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@1 11654 $as_echo "yes" >&6; }
Chris@1 11655 else
Chris@1 11656 # FIXME - insert some real tests, host_os isn't really good enough
Chris@1 11657 case $host_os in
Chris@1 11658 darwin*)
Chris@1 11659 if test -n "$STRIP" ; then
Chris@1 11660 striplib="$STRIP -x"
Chris@1 11661 old_striplib="$STRIP -S"
Chris@1 11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@1 11663 $as_echo "yes" >&6; }
Chris@1 11664 else
Chris@1 11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 11666 $as_echo "no" >&6; }
Chris@1 11667 fi
Chris@1 11668 ;;
Chris@1 11669 *)
Chris@1 11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 11671 $as_echo "no" >&6; }
Chris@1 11672 ;;
Chris@1 11673 esac
Chris@1 11674 fi
Chris@1 11675
Chris@1 11676
Chris@1 11677
Chris@1 11678
Chris@1 11679
Chris@1 11680
Chris@1 11681
Chris@1 11682
Chris@1 11683
Chris@1 11684
Chris@1 11685
Chris@1 11686
Chris@1 11687 # Report which library types will actually be built
Chris@1 11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
Chris@1 11689 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
Chris@1 11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
Chris@1 11691 $as_echo "$can_build_shared" >&6; }
Chris@1 11692
Chris@1 11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
Chris@1 11694 $as_echo_n "checking whether to build shared libraries... " >&6; }
Chris@1 11695 test "$can_build_shared" = "no" && enable_shared=no
Chris@1 11696
Chris@1 11697 # On AIX, shared libraries and static libraries use the same namespace, and
Chris@1 11698 # are all built from PIC.
Chris@1 11699 case $host_os in
Chris@1 11700 aix3*)
Chris@1 11701 test "$enable_shared" = yes && enable_static=no
Chris@1 11702 if test -n "$RANLIB"; then
Chris@1 11703 archive_cmds="$archive_cmds~\$RANLIB \$lib"
Chris@1 11704 postinstall_cmds='$RANLIB $lib'
Chris@1 11705 fi
Chris@1 11706 ;;
Chris@1 11707
Chris@1 11708 aix[4-9]*)
Chris@1 11709 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
Chris@1 11710 test "$enable_shared" = yes && enable_static=no
Chris@1 11711 fi
Chris@1 11712 ;;
Chris@1 11713 esac
Chris@1 11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
Chris@1 11715 $as_echo "$enable_shared" >&6; }
Chris@1 11716
Chris@1 11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
Chris@1 11718 $as_echo_n "checking whether to build static libraries... " >&6; }
Chris@1 11719 # Make sure either enable_shared or enable_static is yes.
Chris@1 11720 test "$enable_shared" = yes || enable_static=yes
Chris@1 11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
Chris@1 11722 $as_echo "$enable_static" >&6; }
Chris@1 11723
Chris@1 11724
Chris@1 11725
Chris@1 11726
Chris@1 11727 fi
Chris@1 11728 ac_ext=c
Chris@1 11729 ac_cpp='$CPP $CPPFLAGS'
Chris@1 11730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@1 11731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@1 11732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@1 11733
Chris@1 11734 CC="$lt_save_CC"
Chris@1 11735
Chris@1 11736
Chris@1 11737
Chris@1 11738
Chris@1 11739
Chris@1 11740
Chris@1 11741
Chris@1 11742
Chris@1 11743
Chris@1 11744
Chris@1 11745
Chris@1 11746
Chris@1 11747
Chris@1 11748 ac_config_commands="$ac_config_commands libtool"
Chris@1 11749
Chris@1 11750
Chris@1 11751
Chris@1 11752
Chris@1 11753 # Only expand once:
Chris@1 11754
Chris@1 11755
Chris@1 11756 if test "x$CC" != xcc; then
Chris@1 11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
Chris@1 11758 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
Chris@1 11759 else
Chris@1 11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
Chris@1 11761 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
Chris@1 11762 fi
Chris@1 11763 set dummy $CC; ac_cc=`$as_echo "$2" |
Chris@1 11764 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
Chris@1 11765 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
Chris@1 11766 $as_echo_n "(cached) " >&6
Chris@1 11767 else
Chris@1 11768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 11769 /* end confdefs.h. */
Chris@1 11770
Chris@1 11771 int
Chris@1 11772 main ()
Chris@1 11773 {
Chris@1 11774
Chris@1 11775 ;
Chris@1 11776 return 0;
Chris@1 11777 }
Chris@1 11778 _ACEOF
Chris@1 11779 # Make sure it works both with $CC and with simple cc.
Chris@1 11780 # We do the test twice because some compilers refuse to overwrite an
Chris@1 11781 # existing .o file with -o, though they will create one.
Chris@1 11782 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
Chris@1 11783 rm -f conftest2.*
Chris@1 11784 if { { case "(($ac_try" in
Chris@1 11785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 11786 *) ac_try_echo=$ac_try;;
Chris@1 11787 esac
Chris@1 11788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 11789 $as_echo "$ac_try_echo"; } >&5
Chris@1 11790 (eval "$ac_try") 2>&5
Chris@1 11791 ac_status=$?
Chris@1 11792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 11793 test $ac_status = 0; } &&
Chris@1 11794 test -f conftest2.$ac_objext && { { case "(($ac_try" in
Chris@1 11795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 11796 *) ac_try_echo=$ac_try;;
Chris@1 11797 esac
Chris@1 11798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 11799 $as_echo "$ac_try_echo"; } >&5
Chris@1 11800 (eval "$ac_try") 2>&5
Chris@1 11801 ac_status=$?
Chris@1 11802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 11803 test $ac_status = 0; };
Chris@1 11804 then
Chris@1 11805 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
Chris@1 11806 if test "x$CC" != xcc; then
Chris@1 11807 # Test first that cc exists at all.
Chris@1 11808 if { ac_try='cc -c conftest.$ac_ext >&5'
Chris@1 11809 { { case "(($ac_try" in
Chris@1 11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 11811 *) ac_try_echo=$ac_try;;
Chris@1 11812 esac
Chris@1 11813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 11814 $as_echo "$ac_try_echo"; } >&5
Chris@1 11815 (eval "$ac_try") 2>&5
Chris@1 11816 ac_status=$?
Chris@1 11817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 11818 test $ac_status = 0; }; }; then
Chris@1 11819 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
Chris@1 11820 rm -f conftest2.*
Chris@1 11821 if { { case "(($ac_try" in
Chris@1 11822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 11823 *) ac_try_echo=$ac_try;;
Chris@1 11824 esac
Chris@1 11825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 11826 $as_echo "$ac_try_echo"; } >&5
Chris@1 11827 (eval "$ac_try") 2>&5
Chris@1 11828 ac_status=$?
Chris@1 11829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 11830 test $ac_status = 0; } &&
Chris@1 11831 test -f conftest2.$ac_objext && { { case "(($ac_try" in
Chris@1 11832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 11833 *) ac_try_echo=$ac_try;;
Chris@1 11834 esac
Chris@1 11835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 11836 $as_echo "$ac_try_echo"; } >&5
Chris@1 11837 (eval "$ac_try") 2>&5
Chris@1 11838 ac_status=$?
Chris@1 11839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 11840 test $ac_status = 0; };
Chris@1 11841 then
Chris@1 11842 # cc works too.
Chris@1 11843 :
Chris@1 11844 else
Chris@1 11845 # cc exists but doesn't like -o.
Chris@1 11846 eval ac_cv_prog_cc_${ac_cc}_c_o=no
Chris@1 11847 fi
Chris@1 11848 fi
Chris@1 11849 fi
Chris@1 11850 else
Chris@1 11851 eval ac_cv_prog_cc_${ac_cc}_c_o=no
Chris@1 11852 fi
Chris@1 11853 rm -f core conftest*
Chris@1 11854
Chris@1 11855 fi
Chris@1 11856 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
Chris@1 11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@1 11858 $as_echo "yes" >&6; }
Chris@1 11859 else
Chris@1 11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 11861 $as_echo "no" >&6; }
Chris@1 11862
Chris@1 11863 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
Chris@1 11864
Chris@1 11865 fi
Chris@1 11866
Chris@1 11867 # FIXME: we rely on the cache variable name because
Chris@1 11868 # there is no other way.
Chris@1 11869 set dummy $CC
Chris@1 11870 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
Chris@1 11871 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
Chris@1 11872 if test "$am_t" != yes; then
Chris@1 11873 # Losing compiler, so override with the script.
Chris@1 11874 # FIXME: It is wrong to rewrite CC.
Chris@1 11875 # But if we don't then we get into trouble of one sort or another.
Chris@1 11876 # A longer-term fix would be to have automake use am__CC in this case,
Chris@1 11877 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
Chris@1 11878 CC="$am_aux_dir/compile $CC"
Chris@1 11879 fi
Chris@1 11880
Chris@1 11881
Chris@1 11882
Chris@1 11883 if test "x$enable_docs" = xyes; then
Chris@1 11884 # Extract the first word of "doxygen", so it can be a program name with args.
Chris@1 11885 set dummy doxygen; ac_word=$2
Chris@1 11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 11887 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 11888 if ${ac_cv_prog_HAVE_DOXYGEN+:} false; then :
Chris@1 11889 $as_echo_n "(cached) " >&6
Chris@1 11890 else
Chris@1 11891 if test -n "$HAVE_DOXYGEN"; then
Chris@1 11892 ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
Chris@1 11893 else
Chris@1 11894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 11895 for as_dir in $PATH
Chris@1 11896 do
Chris@1 11897 IFS=$as_save_IFS
Chris@1 11898 test -z "$as_dir" && as_dir=.
Chris@1 11899 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 11900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 11901 ac_cv_prog_HAVE_DOXYGEN="true"
Chris@1 11902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 11903 break 2
Chris@1 11904 fi
Chris@1 11905 done
Chris@1 11906 done
Chris@1 11907 IFS=$as_save_IFS
Chris@1 11908
Chris@1 11909 test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="false"
Chris@1 11910 fi
Chris@1 11911 fi
Chris@1 11912 HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
Chris@1 11913 if test -n "$HAVE_DOXYGEN"; then
Chris@1 11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
Chris@1 11915 $as_echo "$HAVE_DOXYGEN" >&6; }
Chris@1 11916 else
Chris@1 11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 11918 $as_echo "no" >&6; }
Chris@1 11919 fi
Chris@1 11920
Chris@1 11921
Chris@1 11922 if test $HAVE_DOXYGEN = "false"; then
Chris@1 11923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** doxygen not found, API documentation will not be built" >&5
Chris@1 11924 $as_echo "$as_me: WARNING: *** doxygen not found, API documentation will not be built" >&2;}
Chris@1 11925 fi
Chris@1 11926 else
Chris@1 11927 HAVE_DOXYGEN=false
Chris@1 11928 fi
Chris@1 11929 if $HAVE_DOXYGEN; then
Chris@1 11930 HAVE_DOXYGEN_TRUE=
Chris@1 11931 HAVE_DOXYGEN_FALSE='#'
Chris@1 11932 else
Chris@1 11933 HAVE_DOXYGEN_TRUE='#'
Chris@1 11934 HAVE_DOXYGEN_FALSE=
Chris@1 11935 fi
Chris@1 11936
Chris@1 11937
Chris@1 11938 # Check whether --enable-docs was given.
Chris@1 11939 if test "${enable_docs+set}" = set; then :
Chris@1 11940 enableval=$enable_docs;
Chris@1 11941 fi
Chris@1 11942
Chris@1 11943
Chris@1 11944 if test "x$enable_docs" = xyes; then
Chris@1 11945 for ac_prog in pdflatex
Chris@1 11946 do
Chris@1 11947 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@1 11948 set dummy $ac_prog; ac_word=$2
Chris@1 11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 11950 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 11951 if ${ac_cv_prog_PDFLATEX+:} false; then :
Chris@1 11952 $as_echo_n "(cached) " >&6
Chris@1 11953 else
Chris@1 11954 if test -n "$PDFLATEX"; then
Chris@1 11955 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
Chris@1 11956 else
Chris@1 11957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 11958 for as_dir in $PATH
Chris@1 11959 do
Chris@1 11960 IFS=$as_save_IFS
Chris@1 11961 test -z "$as_dir" && as_dir=.
Chris@1 11962 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 11963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 11964 ac_cv_prog_PDFLATEX="$ac_prog"
Chris@1 11965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 11966 break 2
Chris@1 11967 fi
Chris@1 11968 done
Chris@1 11969 done
Chris@1 11970 IFS=$as_save_IFS
Chris@1 11971
Chris@1 11972 fi
Chris@1 11973 fi
Chris@1 11974 PDFLATEX=$ac_cv_prog_PDFLATEX
Chris@1 11975 if test -n "$PDFLATEX"; then
Chris@1 11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
Chris@1 11977 $as_echo "$PDFLATEX" >&6; }
Chris@1 11978 else
Chris@1 11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 11980 $as_echo "no" >&6; }
Chris@1 11981 fi
Chris@1 11982
Chris@1 11983
Chris@1 11984 test -n "$PDFLATEX" && break
Chris@1 11985 done
Chris@1 11986 test -n "$PDFLATEX" || PDFLATEX="/bin/false"
Chris@1 11987
Chris@1 11988 for ac_prog in htlatex
Chris@1 11989 do
Chris@1 11990 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@1 11991 set dummy $ac_prog; ac_word=$2
Chris@1 11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 11993 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 11994 if ${ac_cv_prog_HTLATEX+:} false; then :
Chris@1 11995 $as_echo_n "(cached) " >&6
Chris@1 11996 else
Chris@1 11997 if test -n "$HTLATEX"; then
Chris@1 11998 ac_cv_prog_HTLATEX="$HTLATEX" # Let the user override the test.
Chris@1 11999 else
Chris@1 12000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 12001 for as_dir in $PATH
Chris@1 12002 do
Chris@1 12003 IFS=$as_save_IFS
Chris@1 12004 test -z "$as_dir" && as_dir=.
Chris@1 12005 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 12006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 12007 ac_cv_prog_HTLATEX="$ac_prog"
Chris@1 12008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 12009 break 2
Chris@1 12010 fi
Chris@1 12011 done
Chris@1 12012 done
Chris@1 12013 IFS=$as_save_IFS
Chris@1 12014
Chris@1 12015 fi
Chris@1 12016 fi
Chris@1 12017 HTLATEX=$ac_cv_prog_HTLATEX
Chris@1 12018 if test -n "$HTLATEX"; then
Chris@1 12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTLATEX" >&5
Chris@1 12020 $as_echo "$HTLATEX" >&6; }
Chris@1 12021 else
Chris@1 12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 12023 $as_echo "no" >&6; }
Chris@1 12024 fi
Chris@1 12025
Chris@1 12026
Chris@1 12027 test -n "$HTLATEX" && break
Chris@1 12028 done
Chris@1 12029 test -n "$HTLATEX" || HTLATEX="/bin/false"
Chris@1 12030
Chris@1 12031 if test "x$PDFLATEX" = x/bin/false || test "x$HTLATEX" = x/bin/false; then
Chris@1 12032 enable_docs=no
Chris@1 12033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation will not be built!" >&5
Chris@1 12034 $as_echo "$as_me: WARNING: Documentation will not be built!" >&2;}
Chris@1 12035 fi
Chris@1 12036 fi
Chris@1 12037
Chris@1 12038 if test "x$enable_docs" = xyes; then
Chris@1 12039 BUILD_DOCS_TRUE=
Chris@1 12040 BUILD_DOCS_FALSE='#'
Chris@1 12041 else
Chris@1 12042 BUILD_DOCS_TRUE='#'
Chris@1 12043 BUILD_DOCS_FALSE=
Chris@1 12044 fi
Chris@1 12045
Chris@1 12046
Chris@1 12047 # Check whether --enable-examples was given.
Chris@1 12048 if test "${enable_examples+set}" = set; then :
Chris@1 12049 enableval=$enable_examples;
Chris@1 12050 fi
Chris@1 12051
Chris@1 12052
Chris@1 12053 if test "x$enable_examples" = xyes; then
Chris@1 12054 BUILD_EXAMPLES_TRUE=
Chris@1 12055 BUILD_EXAMPLES_FALSE='#'
Chris@1 12056 else
Chris@1 12057 BUILD_EXAMPLES_TRUE='#'
Chris@1 12058 BUILD_EXAMPLES_FALSE=
Chris@1 12059 fi
Chris@1 12060
Chris@1 12061
Chris@1 12062
Chris@1 12063
Chris@1 12064 cflags_save="$CFLAGS"
Chris@1 12065 if test -z "$GCC"; then
Chris@1 12066 case $host in
Chris@1 12067 *-*-irix*)
Chris@1 12068 if test -z "$CC"; then
Chris@1 12069 CC=cc
Chris@1 12070 fi
Chris@1 12071 DEBUG="-g -signed"
Chris@1 12072 CFLAGS="-O2 -w -signed"
Chris@1 12073 PROFILE="-p -g3 -O2 -signed" ;;
Chris@1 12074 sparc-sun-solaris*)
Chris@1 12075 DEBUG="-v -g"
Chris@1 12076 CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
Chris@1 12077 PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc" ;;
Chris@1 12078 *)
Chris@1 12079 DEBUG="-g"
Chris@1 12080 CFLAGS="-O"
Chris@1 12081 PROFILE="-g -p" ;;
Chris@1 12082 esac
Chris@1 12083 else
Chris@1 12084
Chris@1 12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC version" >&5
Chris@1 12086 $as_echo_n "checking GCC version... " >&6; }
Chris@1 12087 GCC_VERSION=`$CC -dumpversion`
Chris@1 12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VERSION" >&5
Chris@1 12089 $as_echo "$GCC_VERSION" >&6; }
Chris@1 12090 case $host in
Chris@1 12091 *86-*-linux*)
Chris@1 12092 DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
Chris@1 12093 CFLAGS="-O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char"
Chris@1 12094 # PROFILE="-Wall -Wextra -pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char -fno-inline -static"
Chris@1 12095 PROFILE="-Wall -Wextra -pg -g -O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char -fno-inline"
Chris@1 12096
Chris@1 12097 # glibc < 2.1.3 has a serious FP bug in the math inline header
Chris@1 12098 # that will cripple Vorbis. Look to see if the magic FP stack
Chris@1 12099 # clobber is missing in the mathinline header, thus indicating
Chris@1 12100 # the buggy version
Chris@1 12101
Chris@1 12102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 12103 /* end confdefs.h. */
Chris@1 12104
Chris@1 12105 #define __LIBC_INTERNAL_MATH_INLINES 1
Chris@1 12106 #define __OPTIMIZE__
Chris@1 12107 #include <math.h>
Chris@1 12108
Chris@1 12109 _ACEOF
Chris@1 12110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@1 12111 $EGREP "log10.*fldlg2.*fxch" >/dev/null 2>&1; then :
Chris@1 12112 bad=maybe
Chris@1 12113 else
Chris@1 12114 bad=no
Chris@1 12115 fi
Chris@1 12116 rm -f conftest*
Chris@1 12117
Chris@1 12118 if test ${bad} = "maybe" ;then
Chris@1 12119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 12120 /* end confdefs.h. */
Chris@1 12121
Chris@1 12122 #define __LIBC_INTERNAL_MATH_INLINES 1
Chris@1 12123 #define __OPTIMIZE__
Chris@1 12124 #include <math.h>
Chris@1 12125
Chris@1 12126 _ACEOF
Chris@1 12127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@1 12128 $EGREP "log10.*fldlg2.*fxch.*st\([0123456789]*\)" >/dev/null 2>&1; then :
Chris@1 12129 bad=no
Chris@1 12130 else
Chris@1 12131 bad=yes
Chris@1 12132 fi
Chris@1 12133 rm -f conftest*
Chris@1 12134
Chris@1 12135 fi
Chris@1 12136 if test ${bad} = "yes" ;then
Chris@1 12137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
Chris@1 12138 $as_echo "$as_me: WARNING: " >&2;}
Chris@1 12139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ********************************************************" >&5
Chris@1 12140 $as_echo "$as_me: WARNING: ********************************************************" >&2;}
Chris@1 12141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * The glibc headers on this machine have a serious bug *" >&5
Chris@1 12142 $as_echo "$as_me: WARNING: * The glibc headers on this machine have a serious bug *" >&2;}
Chris@1 12143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&5
Chris@1 12144 $as_echo "$as_me: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&2;}
Chris@1 12145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * all floating point code, not just Ogg, built on this *" >&5
Chris@1 12146 $as_echo "$as_me: WARNING: * all floating point code, not just Ogg, built on this *" >&2;}
Chris@1 12147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * machine. Upgrading to glibc 2.1.3 is strongly urged *" >&5
Chris@1 12148 $as_echo "$as_me: WARNING: * machine. Upgrading to glibc 2.1.3 is strongly urged *" >&2;}
Chris@1 12149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * to correct the problem. Note that upgrading glibc *" >&5
Chris@1 12150 $as_echo "$as_me: WARNING: * to correct the problem. Note that upgrading glibc *" >&2;}
Chris@1 12151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * will not fix any previously built programs; this is *" >&5
Chris@1 12152 $as_echo "$as_me: WARNING: * will not fix any previously built programs; this is *" >&2;}
Chris@1 12153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * a compile-time time bug. *" >&5
Chris@1 12154 $as_echo "$as_me: WARNING: * a compile-time time bug. *" >&2;}
Chris@1 12155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * To work around the problem for this build of Ogg, *" >&5
Chris@1 12156 $as_echo "$as_me: WARNING: * To work around the problem for this build of Ogg, *" >&2;}
Chris@1 12157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * autoconf is disabling all math inlining. This will *" >&5
Chris@1 12158 $as_echo "$as_me: WARNING: * autoconf is disabling all math inlining. This will *" >&2;}
Chris@1 12159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&5
Chris@1 12160 $as_echo "$as_me: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&2;}
Chris@1 12161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * will actually work. Once glibc is upgraded, rerun *" >&5
Chris@1 12162 $as_echo "$as_me: WARNING: * will actually work. Once glibc is upgraded, rerun *" >&2;}
Chris@1 12163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * configure and make to build with inlining. *" >&5
Chris@1 12164 $as_echo "$as_me: WARNING: * configure and make to build with inlining. *" >&2;}
Chris@1 12165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ********************************************************" >&5
Chris@1 12166 $as_echo "$as_me: WARNING: ********************************************************" >&2;}
Chris@1 12167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
Chris@1 12168 $as_echo "$as_me: WARNING: " >&2;}
Chris@1 12169
Chris@1 12170 CFLAGS=${OPT}" -D__NO_MATH_INLINES"
Chris@1 12171 PROFILE=${PROFILE}" -D__NO_MATH_INLINES"
Chris@1 12172 fi;;
Chris@1 12173 powerpc-*-linux*spe)
Chris@1 12174 DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES"
Chris@1 12175 CFLAGS="-O3 -Wall -Wextra -ffast-math -mfused-madd -D_REENTRANT"
Chris@1 12176 PROFILE="-pg -g -O3 -ffast-math -mfused-madd -D_REENTRANT";;
Chris@1 12177 powerpc-*-linux*)
Chris@1 12178 DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES"
Chris@1 12179 CFLAGS="-O3 -Wall -Wextra -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT"
Chris@1 12180 PROFILE="-pg -g -O3 -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT";;
Chris@1 12181 *-*-linux*)
Chris@1 12182 DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
Chris@1 12183 CFLAGS="-O20 -Wall -Wextra -ffast-math -D_REENTRANT -fsigned-char"
Chris@1 12184 PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char";;
Chris@1 12185 sparc-sun-*)
Chris@1 12186 sparc_cpu=""
Chris@1 12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -mv8" >&5
Chris@1 12188 $as_echo_n "checking if gcc supports -mv8... " >&6; }
Chris@1 12189 old_cflags="$CFLAGS"
Chris@1 12190 CFLAGS="$CFLAGS -mv8"
Chris@1 12191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 12192 /* end confdefs.h. */
Chris@1 12193
Chris@1 12194 int
Chris@1 12195 main ()
Chris@1 12196 {
Chris@1 12197 return 0;
Chris@1 12198 ;
Chris@1 12199 return 0;
Chris@1 12200 }
Chris@1 12201 _ACEOF
Chris@1 12202 if ac_fn_c_try_compile "$LINENO"; then :
Chris@1 12203
Chris@1 12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@1 12205 $as_echo "yes" >&6; }
Chris@1 12206 sparc_cpu="-mv8"
Chris@1 12207
Chris@1 12208 fi
Chris@1 12209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@1 12210 CFLAGS="$old_cflags"
Chris@1 12211 DEBUG="-g -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char $sparc_cpu"
Chris@1 12212 CFLAGS="-O20 -Wall -Wextra -ffast-math -D__NO_MATH_INLINES -fsigned-char $sparc_cpu"
Chris@1 12213 PROFILE="-pg -g -O20 -D__NO_MATH_INLINES -fsigned-char $sparc_cpu" ;;
Chris@1 12214 *-*-darwin*)
Chris@1 12215 DEBUG="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O0 -fsigned-char"
Chris@1 12216 CFLAGS="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O4 -ffast-math -fsigned-char"
Chris@1 12217 PROFILE="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -pg -O4 -ffast-math -fsigned-char";;
Chris@1 12218 *-*-os2*)
Chris@1 12219 # Use -W instead of -Wextra because gcc on OS/2 is an old version.
Chris@1 12220 DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
Chris@1 12221 CFLAGS="-O20 -Wall -W -ffast-math -D_REENTRANT -fsigned-char"
Chris@1 12222 PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char";;
Chris@1 12223 *)
Chris@1 12224 DEBUG="-g -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char"
Chris@1 12225 CFLAGS="-O20 -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char"
Chris@1 12226 PROFILE="-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char" ;;
Chris@1 12227 esac
Chris@1 12228
Chris@1 12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wdeclaration-after-statement" >&5
Chris@1 12230 $as_echo_n "checking if $CC accepts -Wdeclaration-after-statement... " >&6; }
Chris@1 12231 ac_add_cflags__old_cflags="$CFLAGS"
Chris@1 12232 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
Chris@1 12233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 12234 /* end confdefs.h. */
Chris@1 12235 #include <stdio.h>
Chris@1 12236 int
Chris@1 12237 main ()
Chris@1 12238 {
Chris@1 12239 puts("Hello, World!"); return 0;
Chris@1 12240 ;
Chris@1 12241 return 0;
Chris@1 12242 }
Chris@1 12243 _ACEOF
Chris@1 12244 if ac_fn_c_try_link "$LINENO"; then :
Chris@1 12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@1 12246 $as_echo "yes" >&6; }
Chris@1 12247 else
Chris@1 12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 12249 $as_echo "no" >&6; }
Chris@1 12250 CFLAGS="$ac_add_cflags__old_cflags"
Chris@1 12251 fi
Chris@1 12252 rm -f core conftest.err conftest.$ac_objext \
Chris@1 12253 conftest$ac_exeext conftest.$ac_ext
Chris@1 12254
Chris@1 12255 fi
Chris@1 12256 CFLAGS="$CFLAGS $cflags_save"
Chris@1 12257
Chris@1 12258
Chris@1 12259 ac_fn_c_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
Chris@1 12260 if test "x$ac_cv_header_memory_h" = xyes; then :
Chris@1 12261 CFLAGS="$CFLAGS -DUSE_MEMORY_H"
Chris@1 12262 else
Chris@1 12263 :
Chris@1 12264 fi
Chris@1 12265
Chris@1 12266
Chris@1 12267
Chris@1 12268
Chris@1 12269
Chris@1 12270
Chris@1 12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
Chris@1 12272 $as_echo_n "checking for cos in -lm... " >&6; }
Chris@1 12273 if ${ac_cv_lib_m_cos+:} false; then :
Chris@1 12274 $as_echo_n "(cached) " >&6
Chris@1 12275 else
Chris@1 12276 ac_check_lib_save_LIBS=$LIBS
Chris@1 12277 LIBS="-lm $LIBS"
Chris@1 12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 12279 /* end confdefs.h. */
Chris@1 12280
Chris@1 12281 /* Override any GCC internal prototype to avoid an error.
Chris@1 12282 Use char because int might match the return type of a GCC
Chris@1 12283 builtin and then its argument prototype would still apply. */
Chris@1 12284 #ifdef __cplusplus
Chris@1 12285 extern "C"
Chris@1 12286 #endif
Chris@1 12287 char cos ();
Chris@1 12288 int
Chris@1 12289 main ()
Chris@1 12290 {
Chris@1 12291 return cos ();
Chris@1 12292 ;
Chris@1 12293 return 0;
Chris@1 12294 }
Chris@1 12295 _ACEOF
Chris@1 12296 if ac_fn_c_try_link "$LINENO"; then :
Chris@1 12297 ac_cv_lib_m_cos=yes
Chris@1 12298 else
Chris@1 12299 ac_cv_lib_m_cos=no
Chris@1 12300 fi
Chris@1 12301 rm -f core conftest.err conftest.$ac_objext \
Chris@1 12302 conftest$ac_exeext conftest.$ac_ext
Chris@1 12303 LIBS=$ac_check_lib_save_LIBS
Chris@1 12304 fi
Chris@1 12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
Chris@1 12306 $as_echo "$ac_cv_lib_m_cos" >&6; }
Chris@1 12307 if test "x$ac_cv_lib_m_cos" = xyes; then :
Chris@1 12308 VORBIS_LIBS="-lm"
Chris@1 12309 else
Chris@1 12310 VORBIS_LIBS=""
Chris@1 12311 fi
Chris@1 12312
Chris@1 12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
Chris@1 12314 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
Chris@1 12315 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
Chris@1 12316 $as_echo_n "(cached) " >&6
Chris@1 12317 else
Chris@1 12318 ac_check_lib_save_LIBS=$LIBS
Chris@1 12319 LIBS="-lpthread $LIBS"
Chris@1 12320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 12321 /* end confdefs.h. */
Chris@1 12322
Chris@1 12323 /* Override any GCC internal prototype to avoid an error.
Chris@1 12324 Use char because int might match the return type of a GCC
Chris@1 12325 builtin and then its argument prototype would still apply. */
Chris@1 12326 #ifdef __cplusplus
Chris@1 12327 extern "C"
Chris@1 12328 #endif
Chris@1 12329 char pthread_create ();
Chris@1 12330 int
Chris@1 12331 main ()
Chris@1 12332 {
Chris@1 12333 return pthread_create ();
Chris@1 12334 ;
Chris@1 12335 return 0;
Chris@1 12336 }
Chris@1 12337 _ACEOF
Chris@1 12338 if ac_fn_c_try_link "$LINENO"; then :
Chris@1 12339 ac_cv_lib_pthread_pthread_create=yes
Chris@1 12340 else
Chris@1 12341 ac_cv_lib_pthread_pthread_create=no
Chris@1 12342 fi
Chris@1 12343 rm -f core conftest.err conftest.$ac_objext \
Chris@1 12344 conftest$ac_exeext conftest.$ac_ext
Chris@1 12345 LIBS=$ac_check_lib_save_LIBS
Chris@1 12346 fi
Chris@1 12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
Chris@1 12348 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
Chris@1 12349 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
Chris@1 12350 pthread_lib="-lpthread"
Chris@1 12351 else
Chris@1 12352 :
Chris@1 12353 fi
Chris@1 12354
Chris@1 12355
Chris@1 12356
Chris@1 12357
Chris@1 12358 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Chris@1 12359 if test -n "$ac_tool_prefix"; then
Chris@1 12360 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
Chris@1 12361 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Chris@1 12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 12363 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 12364 if ${ac_cv_path_PKG_CONFIG+:} false; then :
Chris@1 12365 $as_echo_n "(cached) " >&6
Chris@1 12366 else
Chris@1 12367 case $PKG_CONFIG in
Chris@1 12368 [\\/]* | ?:[\\/]*)
Chris@1 12369 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
Chris@1 12370 ;;
Chris@1 12371 *)
Chris@1 12372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 12373 for as_dir in $PATH
Chris@1 12374 do
Chris@1 12375 IFS=$as_save_IFS
Chris@1 12376 test -z "$as_dir" && as_dir=.
Chris@1 12377 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 12378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 12379 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Chris@1 12380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 12381 break 2
Chris@1 12382 fi
Chris@1 12383 done
Chris@1 12384 done
Chris@1 12385 IFS=$as_save_IFS
Chris@1 12386
Chris@1 12387 ;;
Chris@1 12388 esac
Chris@1 12389 fi
Chris@1 12390 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
Chris@1 12391 if test -n "$PKG_CONFIG"; then
Chris@1 12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Chris@1 12393 $as_echo "$PKG_CONFIG" >&6; }
Chris@1 12394 else
Chris@1 12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 12396 $as_echo "no" >&6; }
Chris@1 12397 fi
Chris@1 12398
Chris@1 12399
Chris@1 12400 fi
Chris@1 12401 if test -z "$ac_cv_path_PKG_CONFIG"; then
Chris@1 12402 ac_pt_PKG_CONFIG=$PKG_CONFIG
Chris@1 12403 # Extract the first word of "pkg-config", so it can be a program name with args.
Chris@1 12404 set dummy pkg-config; ac_word=$2
Chris@1 12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 12406 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 12407 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Chris@1 12408 $as_echo_n "(cached) " >&6
Chris@1 12409 else
Chris@1 12410 case $ac_pt_PKG_CONFIG in
Chris@1 12411 [\\/]* | ?:[\\/]*)
Chris@1 12412 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
Chris@1 12413 ;;
Chris@1 12414 *)
Chris@1 12415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 12416 for as_dir in $PATH
Chris@1 12417 do
Chris@1 12418 IFS=$as_save_IFS
Chris@1 12419 test -z "$as_dir" && as_dir=.
Chris@1 12420 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 12421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 12422 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Chris@1 12423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 12424 break 2
Chris@1 12425 fi
Chris@1 12426 done
Chris@1 12427 done
Chris@1 12428 IFS=$as_save_IFS
Chris@1 12429
Chris@1 12430 ;;
Chris@1 12431 esac
Chris@1 12432 fi
Chris@1 12433 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
Chris@1 12434 if test -n "$ac_pt_PKG_CONFIG"; then
Chris@1 12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Chris@1 12436 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
Chris@1 12437 else
Chris@1 12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 12439 $as_echo "no" >&6; }
Chris@1 12440 fi
Chris@1 12441
Chris@1 12442 if test "x$ac_pt_PKG_CONFIG" = x; then
Chris@1 12443 PKG_CONFIG=""
Chris@1 12444 else
Chris@1 12445 case $cross_compiling:$ac_tool_warned in
Chris@1 12446 yes:)
Chris@1 12447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 12448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 12449 ac_tool_warned=yes ;;
Chris@1 12450 esac
Chris@1 12451 PKG_CONFIG=$ac_pt_PKG_CONFIG
Chris@1 12452 fi
Chris@1 12453 else
Chris@1 12454 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
Chris@1 12455 fi
Chris@1 12456
Chris@1 12457 fi
Chris@1 12458 if test -n "$PKG_CONFIG"; then
Chris@1 12459 _pkg_min_version=0.9.0
Chris@1 12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
Chris@1 12461 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Chris@1 12462 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Chris@1 12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@1 12464 $as_echo "yes" >&6; }
Chris@1 12465 else
Chris@1 12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 12467 $as_echo "no" >&6; }
Chris@1 12468 PKG_CONFIG=""
Chris@1 12469 fi
Chris@1 12470
Chris@1 12471 fi
Chris@1 12472
Chris@1 12473 HAVE_OGG=no
Chris@1 12474 if test "x$PKG_CONFIG" != "x"
Chris@1 12475 then
Chris@1 12476
Chris@1 12477 pkg_failed=no
Chris@1 12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OGG" >&5
Chris@1 12479 $as_echo_n "checking for OGG... " >&6; }
Chris@1 12480
Chris@1 12481 if test -n "$PKG_CONFIG"; then
Chris@1 12482 if test -n "$OGG_CFLAGS"; then
Chris@1 12483 pkg_cv_OGG_CFLAGS="$OGG_CFLAGS"
Chris@1 12484 else
Chris@1 12485 if test -n "$PKG_CONFIG" && \
Chris@1 12486 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\""; } >&5
Chris@1 12487 ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5
Chris@1 12488 ac_status=$?
Chris@1 12489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 12490 test $ac_status = 0; }; then
Chris@1 12491 pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.0" 2>/dev/null`
Chris@1 12492 else
Chris@1 12493 pkg_failed=yes
Chris@1 12494 fi
Chris@1 12495 fi
Chris@1 12496 else
Chris@1 12497 pkg_failed=untried
Chris@1 12498 fi
Chris@1 12499 if test -n "$PKG_CONFIG"; then
Chris@1 12500 if test -n "$OGG_LIBS"; then
Chris@1 12501 pkg_cv_OGG_LIBS="$OGG_LIBS"
Chris@1 12502 else
Chris@1 12503 if test -n "$PKG_CONFIG" && \
Chris@1 12504 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\""; } >&5
Chris@1 12505 ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5
Chris@1 12506 ac_status=$?
Chris@1 12507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 12508 test $ac_status = 0; }; then
Chris@1 12509 pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.0" 2>/dev/null`
Chris@1 12510 else
Chris@1 12511 pkg_failed=yes
Chris@1 12512 fi
Chris@1 12513 fi
Chris@1 12514 else
Chris@1 12515 pkg_failed=untried
Chris@1 12516 fi
Chris@1 12517
Chris@1 12518
Chris@1 12519
Chris@1 12520 if test $pkg_failed = yes; then
Chris@1 12521
Chris@1 12522 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@1 12523 _pkg_short_errors_supported=yes
Chris@1 12524 else
Chris@1 12525 _pkg_short_errors_supported=no
Chris@1 12526 fi
Chris@1 12527 if test $_pkg_short_errors_supported = yes; then
Chris@1 12528 OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ogg >= 1.0"`
Chris@1 12529 else
Chris@1 12530 OGG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ogg >= 1.0"`
Chris@1 12531 fi
Chris@1 12532 # Put the nasty error message in config.log where it belongs
Chris@1 12533 echo "$OGG_PKG_ERRORS" >&5
Chris@1 12534
Chris@1 12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 12536 $as_echo "no" >&6; }
Chris@1 12537 HAVE_OGG=no
Chris@1 12538 elif test $pkg_failed = untried; then
Chris@1 12539 HAVE_OGG=no
Chris@1 12540 else
Chris@1 12541 OGG_CFLAGS=$pkg_cv_OGG_CFLAGS
Chris@1 12542 OGG_LIBS=$pkg_cv_OGG_LIBS
Chris@1 12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@1 12544 $as_echo "yes" >&6; }
Chris@1 12545 HAVE_OGG=yes
Chris@1 12546 fi
Chris@1 12547 fi
Chris@1 12548 if test "x$HAVE_OGG" = "xno"
Chris@1 12549 then
Chris@1 12550
Chris@1 12551 # Check whether --with-ogg was given.
Chris@1 12552 if test "${with_ogg+set}" = set; then :
Chris@1 12553 withval=$with_ogg; ogg_prefix="$withval"
Chris@1 12554 else
Chris@1 12555 ogg_prefix=""
Chris@1 12556 fi
Chris@1 12557
Chris@1 12558
Chris@1 12559 # Check whether --with-ogg-libraries was given.
Chris@1 12560 if test "${with_ogg_libraries+set}" = set; then :
Chris@1 12561 withval=$with_ogg_libraries; ogg_libraries="$withval"
Chris@1 12562 else
Chris@1 12563 ogg_libraries=""
Chris@1 12564 fi
Chris@1 12565
Chris@1 12566
Chris@1 12567 # Check whether --with-ogg-includes was given.
Chris@1 12568 if test "${with_ogg_includes+set}" = set; then :
Chris@1 12569 withval=$with_ogg_includes; ogg_includes="$withval"
Chris@1 12570 else
Chris@1 12571 ogg_includes=""
Chris@1 12572 fi
Chris@1 12573
Chris@1 12574 # Check whether --enable-oggtest was given.
Chris@1 12575 if test "${enable_oggtest+set}" = set; then :
Chris@1 12576 enableval=$enable_oggtest;
Chris@1 12577 else
Chris@1 12578 enable_oggtest=yes
Chris@1 12579 fi
Chris@1 12580
Chris@1 12581
Chris@1 12582 if test "x$ogg_libraries" != "x" ; then
Chris@1 12583 OGG_LIBS="-L$ogg_libraries"
Chris@1 12584 elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
Chris@1 12585 OGG_LIBS=""
Chris@1 12586 elif test "x$ogg_prefix" != "x" ; then
Chris@1 12587 OGG_LIBS="-L$ogg_prefix/lib"
Chris@1 12588 elif test "x$prefix" != "xNONE" ; then
Chris@1 12589 OGG_LIBS="-L$prefix/lib"
Chris@1 12590 fi
Chris@1 12591
Chris@1 12592 if test "x$ogg_prefix" != "xno" ; then
Chris@1 12593 OGG_LIBS="$OGG_LIBS -logg"
Chris@1 12594 fi
Chris@1 12595
Chris@1 12596 if test "x$ogg_includes" != "x" ; then
Chris@1 12597 OGG_CFLAGS="-I$ogg_includes"
Chris@1 12598 elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
Chris@1 12599 OGG_CFLAGS=""
Chris@1 12600 elif test "x$ogg_prefix" != "x" ; then
Chris@1 12601 OGG_CFLAGS="-I$ogg_prefix/include"
Chris@1 12602 elif test "x$prefix" != "xNONE"; then
Chris@1 12603 OGG_CFLAGS="-I$prefix/include"
Chris@1 12604 fi
Chris@1 12605
Chris@1 12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ogg" >&5
Chris@1 12607 $as_echo_n "checking for Ogg... " >&6; }
Chris@1 12608 if test "x$ogg_prefix" = "xno" ; then
Chris@1 12609 no_ogg="disabled"
Chris@1 12610 enable_oggtest="no"
Chris@1 12611 else
Chris@1 12612 no_ogg=""
Chris@1 12613 fi
Chris@1 12614
Chris@1 12615
Chris@1 12616 if test "x$enable_oggtest" = "xyes" ; then
Chris@1 12617 ac_save_CFLAGS="$CFLAGS"
Chris@1 12618 ac_save_LIBS="$LIBS"
Chris@1 12619 CFLAGS="$CFLAGS $OGG_CFLAGS"
Chris@1 12620 LIBS="$LIBS $OGG_LIBS"
Chris@1 12621 rm -f conf.oggtest
Chris@1 12622 if test "$cross_compiling" = yes; then :
Chris@1 12623 echo $ac_n "cross compiling; assumed OK... $ac_c"
Chris@1 12624 else
Chris@1 12625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 12626 /* end confdefs.h. */
Chris@1 12627
Chris@1 12628 #include <stdio.h>
Chris@1 12629 #include <stdlib.h>
Chris@1 12630 #include <string.h>
Chris@1 12631 #include <ogg/ogg.h>
Chris@1 12632
Chris@1 12633 int main ()
Chris@1 12634 {
Chris@1 12635 system("touch conf.oggtest");
Chris@1 12636 return 0;
Chris@1 12637 }
Chris@1 12638
Chris@1 12639
Chris@1 12640 _ACEOF
Chris@1 12641 if ac_fn_c_try_run "$LINENO"; then :
Chris@1 12642
Chris@1 12643 else
Chris@1 12644 no_ogg=yes
Chris@1 12645 fi
Chris@1 12646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@1 12647 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@1 12648 fi
Chris@1 12649
Chris@1 12650 CFLAGS="$ac_save_CFLAGS"
Chris@1 12651 LIBS="$ac_save_LIBS"
Chris@1 12652 fi
Chris@1 12653
Chris@1 12654 if test "x$no_ogg" = "xdisabled" ; then
Chris@1 12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 12656 $as_echo "no" >&6; }
Chris@1 12657 as_fn_error $? "must have Ogg installed!" "$LINENO" 5
Chris@1 12658 elif test "x$no_ogg" = "x" ; then
Chris@1 12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@1 12660 $as_echo "yes" >&6; }
Chris@1 12661 :
Chris@1 12662 else
Chris@1 12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 12664 $as_echo "no" >&6; }
Chris@1 12665 if test -f conf.oggtest ; then
Chris@1 12666 :
Chris@1 12667 else
Chris@1 12668 echo "*** Could not run Ogg test program, checking why..."
Chris@1 12669 CFLAGS="$CFLAGS $OGG_CFLAGS"
Chris@1 12670 LIBS="$LIBS $OGG_LIBS"
Chris@1 12671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 12672 /* end confdefs.h. */
Chris@1 12673
Chris@1 12674 #include <stdio.h>
Chris@1 12675 #include <ogg/ogg.h>
Chris@1 12676
Chris@1 12677 int
Chris@1 12678 main ()
Chris@1 12679 {
Chris@1 12680 return 0;
Chris@1 12681 ;
Chris@1 12682 return 0;
Chris@1 12683 }
Chris@1 12684 _ACEOF
Chris@1 12685 if ac_fn_c_try_link "$LINENO"; then :
Chris@1 12686 echo "*** The test program compiled, but did not run. This usually means"
Chris@1 12687 echo "*** that the run-time linker is not finding Ogg or finding the wrong"
Chris@1 12688 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
Chris@1 12689 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
Chris@1 12690 echo "*** to the installed location Also, make sure you have run ldconfig if that"
Chris@1 12691 echo "*** is required on your system"
Chris@1 12692 echo "***"
Chris@1 12693 echo "*** If you have an old version installed, it is best to remove it, although"
Chris@1 12694 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
Chris@1 12695 else
Chris@1 12696 echo "*** The test program failed to compile or link. See the file config.log for the"
Chris@1 12697 echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
Chris@1 12698 echo "*** or that you have moved Ogg since it was installed."
Chris@1 12699 fi
Chris@1 12700 rm -f core conftest.err conftest.$ac_objext \
Chris@1 12701 conftest$ac_exeext conftest.$ac_ext
Chris@1 12702 CFLAGS="$ac_save_CFLAGS"
Chris@1 12703 LIBS="$ac_save_LIBS"
Chris@1 12704 fi
Chris@1 12705 OGG_CFLAGS=""
Chris@1 12706 OGG_LIBS=""
Chris@1 12707 as_fn_error $? "must have Ogg installed!" "$LINENO" 5
Chris@1 12708 fi
Chris@1 12709
Chris@1 12710
Chris@1 12711 rm -f conf.oggtest
Chris@1 12712
Chris@1 12713 libs_save=$LIBS
Chris@1 12714 LIBS="$OGG_LIBS $VORBIS_LIBS"
Chris@1 12715 ac_fn_c_check_func "$LINENO" "oggpack_writealign" "ac_cv_func_oggpack_writealign"
Chris@1 12716 if test "x$ac_cv_func_oggpack_writealign" = xyes; then :
Chris@1 12717
Chris@1 12718 else
Chris@1 12719 as_fn_error $? "Ogg >= 1.0 required !" "$LINENO" 5
Chris@1 12720 fi
Chris@1 12721
Chris@1 12722 LIBS=$libs_save
Chris@1 12723 fi
Chris@1 12724
Chris@1 12725
Chris@1 12726 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Chris@1 12727 if test "x$ac_cv_type_size_t" = xyes; then :
Chris@1 12728
Chris@1 12729 else
Chris@1 12730
Chris@1 12731 cat >>confdefs.h <<_ACEOF
Chris@1 12732 #define size_t unsigned int
Chris@1 12733 _ACEOF
Chris@1 12734
Chris@1 12735 fi
Chris@1 12736
Chris@1 12737 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
Chris@1 12738 # for constant arguments. Useless!
Chris@1 12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Chris@1 12740 $as_echo_n "checking for working alloca.h... " >&6; }
Chris@1 12741 if ${ac_cv_working_alloca_h+:} false; then :
Chris@1 12742 $as_echo_n "(cached) " >&6
Chris@1 12743 else
Chris@1 12744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 12745 /* end confdefs.h. */
Chris@1 12746 #include <alloca.h>
Chris@1 12747 int
Chris@1 12748 main ()
Chris@1 12749 {
Chris@1 12750 char *p = (char *) alloca (2 * sizeof (int));
Chris@1 12751 if (p) return 0;
Chris@1 12752 ;
Chris@1 12753 return 0;
Chris@1 12754 }
Chris@1 12755 _ACEOF
Chris@1 12756 if ac_fn_c_try_link "$LINENO"; then :
Chris@1 12757 ac_cv_working_alloca_h=yes
Chris@1 12758 else
Chris@1 12759 ac_cv_working_alloca_h=no
Chris@1 12760 fi
Chris@1 12761 rm -f core conftest.err conftest.$ac_objext \
Chris@1 12762 conftest$ac_exeext conftest.$ac_ext
Chris@1 12763 fi
Chris@1 12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Chris@1 12765 $as_echo "$ac_cv_working_alloca_h" >&6; }
Chris@1 12766 if test $ac_cv_working_alloca_h = yes; then
Chris@1 12767
Chris@1 12768 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Chris@1 12769
Chris@1 12770 fi
Chris@1 12771
Chris@1 12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Chris@1 12773 $as_echo_n "checking for alloca... " >&6; }
Chris@1 12774 if ${ac_cv_func_alloca_works+:} false; then :
Chris@1 12775 $as_echo_n "(cached) " >&6
Chris@1 12776 else
Chris@1 12777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 12778 /* end confdefs.h. */
Chris@1 12779 #ifdef __GNUC__
Chris@1 12780 # define alloca __builtin_alloca
Chris@1 12781 #else
Chris@1 12782 # ifdef _MSC_VER
Chris@1 12783 # include <malloc.h>
Chris@1 12784 # define alloca _alloca
Chris@1 12785 # else
Chris@1 12786 # ifdef HAVE_ALLOCA_H
Chris@1 12787 # include <alloca.h>
Chris@1 12788 # else
Chris@1 12789 # ifdef _AIX
Chris@1 12790 #pragma alloca
Chris@1 12791 # else
Chris@1 12792 # ifndef alloca /* predefined by HP cc +Olibcalls */
Chris@1 12793 void *alloca (size_t);
Chris@1 12794 # endif
Chris@1 12795 # endif
Chris@1 12796 # endif
Chris@1 12797 # endif
Chris@1 12798 #endif
Chris@1 12799
Chris@1 12800 int
Chris@1 12801 main ()
Chris@1 12802 {
Chris@1 12803 char *p = (char *) alloca (1);
Chris@1 12804 if (p) return 0;
Chris@1 12805 ;
Chris@1 12806 return 0;
Chris@1 12807 }
Chris@1 12808 _ACEOF
Chris@1 12809 if ac_fn_c_try_link "$LINENO"; then :
Chris@1 12810 ac_cv_func_alloca_works=yes
Chris@1 12811 else
Chris@1 12812 ac_cv_func_alloca_works=no
Chris@1 12813 fi
Chris@1 12814 rm -f core conftest.err conftest.$ac_objext \
Chris@1 12815 conftest$ac_exeext conftest.$ac_ext
Chris@1 12816 fi
Chris@1 12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Chris@1 12818 $as_echo "$ac_cv_func_alloca_works" >&6; }
Chris@1 12819
Chris@1 12820 if test $ac_cv_func_alloca_works = yes; then
Chris@1 12821
Chris@1 12822 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Chris@1 12823
Chris@1 12824 else
Chris@1 12825 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
Chris@1 12826 # that cause trouble. Some versions do not even contain alloca or
Chris@1 12827 # contain a buggy version. If you still want to use their alloca,
Chris@1 12828 # use ar to extract alloca.o from them instead of compiling alloca.c.
Chris@1 12829
Chris@1 12830 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Chris@1 12831
Chris@1 12832 $as_echo "#define C_ALLOCA 1" >>confdefs.h
Chris@1 12833
Chris@1 12834
Chris@1 12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Chris@1 12836 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Chris@1 12837 if ${ac_cv_os_cray+:} false; then :
Chris@1 12838 $as_echo_n "(cached) " >&6
Chris@1 12839 else
Chris@1 12840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 12841 /* end confdefs.h. */
Chris@1 12842 #if defined CRAY && ! defined CRAY2
Chris@1 12843 webecray
Chris@1 12844 #else
Chris@1 12845 wenotbecray
Chris@1 12846 #endif
Chris@1 12847
Chris@1 12848 _ACEOF
Chris@1 12849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@1 12850 $EGREP "webecray" >/dev/null 2>&1; then :
Chris@1 12851 ac_cv_os_cray=yes
Chris@1 12852 else
Chris@1 12853 ac_cv_os_cray=no
Chris@1 12854 fi
Chris@1 12855 rm -f conftest*
Chris@1 12856
Chris@1 12857 fi
Chris@1 12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Chris@1 12859 $as_echo "$ac_cv_os_cray" >&6; }
Chris@1 12860 if test $ac_cv_os_cray = yes; then
Chris@1 12861 for ac_func in _getb67 GETB67 getb67; do
Chris@1 12862 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Chris@1 12863 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Chris@1 12864 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Chris@1 12865
Chris@1 12866 cat >>confdefs.h <<_ACEOF
Chris@1 12867 #define CRAY_STACKSEG_END $ac_func
Chris@1 12868 _ACEOF
Chris@1 12869
Chris@1 12870 break
Chris@1 12871 fi
Chris@1 12872
Chris@1 12873 done
Chris@1 12874 fi
Chris@1 12875
Chris@1 12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Chris@1 12877 $as_echo_n "checking stack direction for C alloca... " >&6; }
Chris@1 12878 if ${ac_cv_c_stack_direction+:} false; then :
Chris@1 12879 $as_echo_n "(cached) " >&6
Chris@1 12880 else
Chris@1 12881 if test "$cross_compiling" = yes; then :
Chris@1 12882 ac_cv_c_stack_direction=0
Chris@1 12883 else
Chris@1 12884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 12885 /* end confdefs.h. */
Chris@1 12886 $ac_includes_default
Chris@1 12887 int
Chris@1 12888 find_stack_direction ()
Chris@1 12889 {
Chris@1 12890 static char *addr = 0;
Chris@1 12891 auto char dummy;
Chris@1 12892 if (addr == 0)
Chris@1 12893 {
Chris@1 12894 addr = &dummy;
Chris@1 12895 return find_stack_direction ();
Chris@1 12896 }
Chris@1 12897 else
Chris@1 12898 return (&dummy > addr) ? 1 : -1;
Chris@1 12899 }
Chris@1 12900
Chris@1 12901 int
Chris@1 12902 main ()
Chris@1 12903 {
Chris@1 12904 return find_stack_direction () < 0;
Chris@1 12905 }
Chris@1 12906 _ACEOF
Chris@1 12907 if ac_fn_c_try_run "$LINENO"; then :
Chris@1 12908 ac_cv_c_stack_direction=1
Chris@1 12909 else
Chris@1 12910 ac_cv_c_stack_direction=-1
Chris@1 12911 fi
Chris@1 12912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@1 12913 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@1 12914 fi
Chris@1 12915
Chris@1 12916 fi
Chris@1 12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Chris@1 12918 $as_echo "$ac_cv_c_stack_direction" >&6; }
Chris@1 12919 cat >>confdefs.h <<_ACEOF
Chris@1 12920 #define STACK_DIRECTION $ac_cv_c_stack_direction
Chris@1 12921 _ACEOF
Chris@1 12922
Chris@1 12923
Chris@1 12924 fi
Chris@1 12925
Chris@1 12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
Chris@1 12927 $as_echo_n "checking for working memcmp... " >&6; }
Chris@1 12928 if ${ac_cv_func_memcmp_working+:} false; then :
Chris@1 12929 $as_echo_n "(cached) " >&6
Chris@1 12930 else
Chris@1 12931 if test "$cross_compiling" = yes; then :
Chris@1 12932 ac_cv_func_memcmp_working=no
Chris@1 12933 else
Chris@1 12934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 12935 /* end confdefs.h. */
Chris@1 12936 $ac_includes_default
Chris@1 12937 int
Chris@1 12938 main ()
Chris@1 12939 {
Chris@1 12940
Chris@1 12941 /* Some versions of memcmp are not 8-bit clean. */
Chris@1 12942 char c0 = '\100', c1 = '\200', c2 = '\201';
Chris@1 12943 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
Chris@1 12944 return 1;
Chris@1 12945
Chris@1 12946 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
Chris@1 12947 or more and with at least one buffer not starting on a 4-byte boundary.
Chris@1 12948 William Lewis provided this test program. */
Chris@1 12949 {
Chris@1 12950 char foo[21];
Chris@1 12951 char bar[21];
Chris@1 12952 int i;
Chris@1 12953 for (i = 0; i < 4; i++)
Chris@1 12954 {
Chris@1 12955 char *a = foo + i;
Chris@1 12956 char *b = bar + i;
Chris@1 12957 strcpy (a, "--------01111111");
Chris@1 12958 strcpy (b, "--------10000000");
Chris@1 12959 if (memcmp (a, b, 16) >= 0)
Chris@1 12960 return 1;
Chris@1 12961 }
Chris@1 12962 return 0;
Chris@1 12963 }
Chris@1 12964
Chris@1 12965 ;
Chris@1 12966 return 0;
Chris@1 12967 }
Chris@1 12968 _ACEOF
Chris@1 12969 if ac_fn_c_try_run "$LINENO"; then :
Chris@1 12970 ac_cv_func_memcmp_working=yes
Chris@1 12971 else
Chris@1 12972 ac_cv_func_memcmp_working=no
Chris@1 12973 fi
Chris@1 12974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@1 12975 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@1 12976 fi
Chris@1 12977
Chris@1 12978 fi
Chris@1 12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
Chris@1 12980 $as_echo "$ac_cv_func_memcmp_working" >&6; }
Chris@1 12981 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
Chris@1 12982 *" memcmp.$ac_objext "* ) ;;
Chris@1 12983 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
Chris@1 12984 ;;
Chris@1 12985 esac
Chris@1 12986
Chris@1 12987
Chris@1 12988
Chris@1 12989
Chris@1 12990
Chris@1 12991
Chris@1 12992
Chris@1 12993
Chris@1 12994
Chris@1 12995
Chris@1 12996
Chris@1 12997 ac_config_files="$ac_config_files Makefile m4/Makefile lib/Makefile lib/modes/Makefile lib/books/Makefile lib/books/coupled/Makefile lib/books/uncoupled/Makefile lib/books/floor/Makefile doc/Makefile doc/vorbisfile/Makefile doc/vorbisenc/Makefile doc/libvorbis/Makefile doc/Doxyfile include/Makefile include/vorbis/Makefile examples/Makefile test/Makefile vq/Makefile libvorbis.spec vorbis.pc vorbisenc.pc vorbisfile.pc vorbis-uninstalled.pc vorbisenc-uninstalled.pc vorbisfile-uninstalled.pc"
Chris@1 12998
Chris@1 12999 cat >confcache <<\_ACEOF
Chris@1 13000 # This file is a shell script that caches the results of configure
Chris@1 13001 # tests run on this system so they can be shared between configure
Chris@1 13002 # scripts and configure runs, see configure's option --config-cache.
Chris@1 13003 # It is not useful on other systems. If it contains results you don't
Chris@1 13004 # want to keep, you may remove or edit it.
Chris@1 13005 #
Chris@1 13006 # config.status only pays attention to the cache file if you give it
Chris@1 13007 # the --recheck option to rerun configure.
Chris@1 13008 #
Chris@1 13009 # `ac_cv_env_foo' variables (set or unset) will be overridden when
Chris@1 13010 # loading this file, other *unset* `ac_cv_foo' will be assigned the
Chris@1 13011 # following values.
Chris@1 13012
Chris@1 13013 _ACEOF
Chris@1 13014
Chris@1 13015 # The following way of writing the cache mishandles newlines in values,
Chris@1 13016 # but we know of no workaround that is simple, portable, and efficient.
Chris@1 13017 # So, we kill variables containing newlines.
Chris@1 13018 # Ultrix sh set writes to stderr and can't be redirected directly,
Chris@1 13019 # and sets the high bit in the cache file unless we assign to the vars.
Chris@1 13020 (
Chris@1 13021 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
Chris@1 13022 eval ac_val=\$$ac_var
Chris@1 13023 case $ac_val in #(
Chris@1 13024 *${as_nl}*)
Chris@1 13025 case $ac_var in #(
Chris@1 13026 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Chris@1 13027 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Chris@1 13028 esac
Chris@1 13029 case $ac_var in #(
Chris@1 13030 _ | IFS | as_nl) ;; #(
Chris@1 13031 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Chris@1 13032 *) { eval $ac_var=; unset $ac_var;} ;;
Chris@1 13033 esac ;;
Chris@1 13034 esac
Chris@1 13035 done
Chris@1 13036
Chris@1 13037 (set) 2>&1 |
Chris@1 13038 case $as_nl`(ac_space=' '; set) 2>&1` in #(
Chris@1 13039 *${as_nl}ac_space=\ *)
Chris@1 13040 # `set' does not quote correctly, so add quotes: double-quote
Chris@1 13041 # substitution turns \\\\ into \\, and sed turns \\ into \.
Chris@1 13042 sed -n \
Chris@1 13043 "s/'/'\\\\''/g;
Chris@1 13044 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Chris@1 13045 ;; #(
Chris@1 13046 *)
Chris@1 13047 # `set' quotes correctly as required by POSIX, so do not add quotes.
Chris@1 13048 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Chris@1 13049 ;;
Chris@1 13050 esac |
Chris@1 13051 sort
Chris@1 13052 ) |
Chris@1 13053 sed '
Chris@1 13054 /^ac_cv_env_/b end
Chris@1 13055 t clear
Chris@1 13056 :clear
Chris@1 13057 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
Chris@1 13058 t end
Chris@1 13059 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
Chris@1 13060 :end' >>confcache
Chris@1 13061 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
Chris@1 13062 if test -w "$cache_file"; then
Chris@1 13063 if test "x$cache_file" != "x/dev/null"; then
Chris@1 13064 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Chris@1 13065 $as_echo "$as_me: updating cache $cache_file" >&6;}
Chris@1 13066 if test ! -f "$cache_file" || test -h "$cache_file"; then
Chris@1 13067 cat confcache >"$cache_file"
Chris@1 13068 else
Chris@1 13069 case $cache_file in #(
Chris@1 13070 */* | ?:*)
Chris@1 13071 mv -f confcache "$cache_file"$$ &&
Chris@1 13072 mv -f "$cache_file"$$ "$cache_file" ;; #(
Chris@1 13073 *)
Chris@1 13074 mv -f confcache "$cache_file" ;;
Chris@1 13075 esac
Chris@1 13076 fi
Chris@1 13077 fi
Chris@1 13078 else
Chris@1 13079 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Chris@1 13080 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Chris@1 13081 fi
Chris@1 13082 fi
Chris@1 13083 rm -f confcache
Chris@1 13084
Chris@1 13085 test "x$prefix" = xNONE && prefix=$ac_default_prefix
Chris@1 13086 # Let make expand exec_prefix.
Chris@1 13087 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
Chris@1 13088
Chris@1 13089 DEFS=-DHAVE_CONFIG_H
Chris@1 13090
Chris@1 13091 ac_libobjs=
Chris@1 13092 ac_ltlibobjs=
Chris@1 13093 U=
Chris@1 13094 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
Chris@1 13095 # 1. Remove the extension, and $U if already installed.
Chris@1 13096 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Chris@1 13097 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Chris@1 13098 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
Chris@1 13099 # will be set to the directory where LIBOBJS objects are built.
Chris@1 13100 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
Chris@1 13101 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Chris@1 13102 done
Chris@1 13103 LIBOBJS=$ac_libobjs
Chris@1 13104
Chris@1 13105 LTLIBOBJS=$ac_ltlibobjs
Chris@1 13106
Chris@1 13107
Chris@1 13108 if test -n "$EXEEXT"; then
Chris@1 13109 am__EXEEXT_TRUE=
Chris@1 13110 am__EXEEXT_FALSE='#'
Chris@1 13111 else
Chris@1 13112 am__EXEEXT_TRUE='#'
Chris@1 13113 am__EXEEXT_FALSE=
Chris@1 13114 fi
Chris@1 13115
Chris@1 13116 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
Chris@1 13117 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
Chris@1 13118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@1 13119 fi
Chris@1 13120 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Chris@1 13121 as_fn_error $? "conditional \"AMDEP\" was never defined.
Chris@1 13122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@1 13123 fi
Chris@1 13124 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Chris@1 13125 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Chris@1 13126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@1 13127 fi
Chris@1 13128 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
Chris@1 13129 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
Chris@1 13130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@1 13131 fi
Chris@1 13132 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
Chris@1 13133 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
Chris@1 13134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@1 13135 fi
Chris@1 13136 if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
Chris@1 13137 as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
Chris@1 13138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@1 13139 fi
Chris@1 13140
Chris@1 13141 : "${CONFIG_STATUS=./config.status}"
Chris@1 13142 ac_write_fail=0
Chris@1 13143 ac_clean_files_save=$ac_clean_files
Chris@1 13144 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Chris@1 13145 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Chris@1 13146 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Chris@1 13147 as_write_fail=0
Chris@1 13148 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Chris@1 13149 #! $SHELL
Chris@1 13150 # Generated by $as_me.
Chris@1 13151 # Run this file to recreate the current configuration.
Chris@1 13152 # Compiler output produced by configure, useful for debugging
Chris@1 13153 # configure, is in config.log if it exists.
Chris@1 13154
Chris@1 13155 debug=false
Chris@1 13156 ac_cs_recheck=false
Chris@1 13157 ac_cs_silent=false
Chris@1 13158
Chris@1 13159 SHELL=\${CONFIG_SHELL-$SHELL}
Chris@1 13160 export SHELL
Chris@1 13161 _ASEOF
Chris@1 13162 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
Chris@1 13163 ## -------------------- ##
Chris@1 13164 ## M4sh Initialization. ##
Chris@1 13165 ## -------------------- ##
Chris@1 13166
Chris@1 13167 # Be more Bourne compatible
Chris@1 13168 DUALCASE=1; export DUALCASE # for MKS sh
Chris@1 13169 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Chris@1 13170 emulate sh
Chris@1 13171 NULLCMD=:
Chris@1 13172 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Chris@1 13173 # is contrary to our usage. Disable this feature.
Chris@1 13174 alias -g '${1+"$@"}'='"$@"'
Chris@1 13175 setopt NO_GLOB_SUBST
Chris@1 13176 else
Chris@1 13177 case `(set -o) 2>/dev/null` in #(
Chris@1 13178 *posix*) :
Chris@1 13179 set -o posix ;; #(
Chris@1 13180 *) :
Chris@1 13181 ;;
Chris@1 13182 esac
Chris@1 13183 fi
Chris@1 13184
Chris@1 13185
Chris@1 13186 as_nl='
Chris@1 13187 '
Chris@1 13188 export as_nl
Chris@1 13189 # Printing a long string crashes Solaris 7 /usr/bin/printf.
Chris@1 13190 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@1 13191 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@1 13192 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@1 13193 # Prefer a ksh shell builtin over an external printf program on Solaris,
Chris@1 13194 # but without wasting forks for bash or zsh.
Chris@1 13195 if test -z "$BASH_VERSION$ZSH_VERSION" \
Chris@1 13196 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@1 13197 as_echo='print -r --'
Chris@1 13198 as_echo_n='print -rn --'
Chris@1 13199 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@1 13200 as_echo='printf %s\n'
Chris@1 13201 as_echo_n='printf %s'
Chris@1 13202 else
Chris@1 13203 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
Chris@1 13204 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
Chris@1 13205 as_echo_n='/usr/ucb/echo -n'
Chris@1 13206 else
Chris@1 13207 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
Chris@1 13208 as_echo_n_body='eval
Chris@1 13209 arg=$1;
Chris@1 13210 case $arg in #(
Chris@1 13211 *"$as_nl"*)
Chris@1 13212 expr "X$arg" : "X\\(.*\\)$as_nl";
Chris@1 13213 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
Chris@1 13214 esac;
Chris@1 13215 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
Chris@1 13216 '
Chris@1 13217 export as_echo_n_body
Chris@1 13218 as_echo_n='sh -c $as_echo_n_body as_echo'
Chris@1 13219 fi
Chris@1 13220 export as_echo_body
Chris@1 13221 as_echo='sh -c $as_echo_body as_echo'
Chris@1 13222 fi
Chris@1 13223
Chris@1 13224 # The user is always right.
Chris@1 13225 if test "${PATH_SEPARATOR+set}" != set; then
Chris@1 13226 PATH_SEPARATOR=:
Chris@1 13227 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
Chris@1 13228 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
Chris@1 13229 PATH_SEPARATOR=';'
Chris@1 13230 }
Chris@1 13231 fi
Chris@1 13232
Chris@1 13233
Chris@1 13234 # IFS
Chris@1 13235 # We need space, tab and new line, in precisely that order. Quoting is
Chris@1 13236 # there to prevent editors from complaining about space-tab.
Chris@1 13237 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
Chris@1 13238 # splitting by setting IFS to empty value.)
Chris@1 13239 IFS=" "" $as_nl"
Chris@1 13240
Chris@1 13241 # Find who we are. Look in the path if we contain no directory separator.
Chris@1 13242 as_myself=
Chris@1 13243 case $0 in #((
Chris@1 13244 *[\\/]* ) as_myself=$0 ;;
Chris@1 13245 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 13246 for as_dir in $PATH
Chris@1 13247 do
Chris@1 13248 IFS=$as_save_IFS
Chris@1 13249 test -z "$as_dir" && as_dir=.
Chris@1 13250 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
Chris@1 13251 done
Chris@1 13252 IFS=$as_save_IFS
Chris@1 13253
Chris@1 13254 ;;
Chris@1 13255 esac
Chris@1 13256 # We did not find ourselves, most probably we were run as `sh COMMAND'
Chris@1 13257 # in which case we are not to be found in the path.
Chris@1 13258 if test "x$as_myself" = x; then
Chris@1 13259 as_myself=$0
Chris@1 13260 fi
Chris@1 13261 if test ! -f "$as_myself"; then
Chris@1 13262 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Chris@1 13263 exit 1
Chris@1 13264 fi
Chris@1 13265
Chris@1 13266 # Unset variables that we do not need and which cause bugs (e.g. in
Chris@1 13267 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
Chris@1 13268 # suppresses any "Segmentation fault" message there. '((' could
Chris@1 13269 # trigger a bug in pdksh 5.2.14.
Chris@1 13270 for as_var in BASH_ENV ENV MAIL MAILPATH
Chris@1 13271 do eval test x\${$as_var+set} = xset \
Chris@1 13272 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Chris@1 13273 done
Chris@1 13274 PS1='$ '
Chris@1 13275 PS2='> '
Chris@1 13276 PS4='+ '
Chris@1 13277
Chris@1 13278 # NLS nuisances.
Chris@1 13279 LC_ALL=C
Chris@1 13280 export LC_ALL
Chris@1 13281 LANGUAGE=C
Chris@1 13282 export LANGUAGE
Chris@1 13283
Chris@1 13284 # CDPATH.
Chris@1 13285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@1 13286
Chris@1 13287
Chris@1 13288 # as_fn_error STATUS ERROR [LINENO LOG_FD]
Chris@1 13289 # ----------------------------------------
Chris@1 13290 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
Chris@1 13291 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Chris@1 13292 # script with STATUS, using 1 if that was 0.
Chris@1 13293 as_fn_error ()
Chris@1 13294 {
Chris@1 13295 as_status=$1; test $as_status -eq 0 && as_status=1
Chris@1 13296 if test "$4"; then
Chris@1 13297 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@1 13298 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Chris@1 13299 fi
Chris@1 13300 $as_echo "$as_me: error: $2" >&2
Chris@1 13301 as_fn_exit $as_status
Chris@1 13302 } # as_fn_error
Chris@1 13303
Chris@1 13304
Chris@1 13305 # as_fn_set_status STATUS
Chris@1 13306 # -----------------------
Chris@1 13307 # Set $? to STATUS, without forking.
Chris@1 13308 as_fn_set_status ()
Chris@1 13309 {
Chris@1 13310 return $1
Chris@1 13311 } # as_fn_set_status
Chris@1 13312
Chris@1 13313 # as_fn_exit STATUS
Chris@1 13314 # -----------------
Chris@1 13315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
Chris@1 13316 as_fn_exit ()
Chris@1 13317 {
Chris@1 13318 set +e
Chris@1 13319 as_fn_set_status $1
Chris@1 13320 exit $1
Chris@1 13321 } # as_fn_exit
Chris@1 13322
Chris@1 13323 # as_fn_unset VAR
Chris@1 13324 # ---------------
Chris@1 13325 # Portably unset VAR.
Chris@1 13326 as_fn_unset ()
Chris@1 13327 {
Chris@1 13328 { eval $1=; unset $1;}
Chris@1 13329 }
Chris@1 13330 as_unset=as_fn_unset
Chris@1 13331 # as_fn_append VAR VALUE
Chris@1 13332 # ----------------------
Chris@1 13333 # Append the text in VALUE to the end of the definition contained in VAR. Take
Chris@1 13334 # advantage of any shell optimizations that allow amortized linear growth over
Chris@1 13335 # repeated appends, instead of the typical quadratic growth present in naive
Chris@1 13336 # implementations.
Chris@1 13337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
Chris@1 13338 eval 'as_fn_append ()
Chris@1 13339 {
Chris@1 13340 eval $1+=\$2
Chris@1 13341 }'
Chris@1 13342 else
Chris@1 13343 as_fn_append ()
Chris@1 13344 {
Chris@1 13345 eval $1=\$$1\$2
Chris@1 13346 }
Chris@1 13347 fi # as_fn_append
Chris@1 13348
Chris@1 13349 # as_fn_arith ARG...
Chris@1 13350 # ------------------
Chris@1 13351 # Perform arithmetic evaluation on the ARGs, and store the result in the
Chris@1 13352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
Chris@1 13353 # must be portable across $(()) and expr.
Chris@1 13354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
Chris@1 13355 eval 'as_fn_arith ()
Chris@1 13356 {
Chris@1 13357 as_val=$(( $* ))
Chris@1 13358 }'
Chris@1 13359 else
Chris@1 13360 as_fn_arith ()
Chris@1 13361 {
Chris@1 13362 as_val=`expr "$@" || test $? -eq 1`
Chris@1 13363 }
Chris@1 13364 fi # as_fn_arith
Chris@1 13365
Chris@1 13366
Chris@1 13367 if expr a : '\(a\)' >/dev/null 2>&1 &&
Chris@1 13368 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Chris@1 13369 as_expr=expr
Chris@1 13370 else
Chris@1 13371 as_expr=false
Chris@1 13372 fi
Chris@1 13373
Chris@1 13374 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Chris@1 13375 as_basename=basename
Chris@1 13376 else
Chris@1 13377 as_basename=false
Chris@1 13378 fi
Chris@1 13379
Chris@1 13380 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
Chris@1 13381 as_dirname=dirname
Chris@1 13382 else
Chris@1 13383 as_dirname=false
Chris@1 13384 fi
Chris@1 13385
Chris@1 13386 as_me=`$as_basename -- "$0" ||
Chris@1 13387 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
Chris@1 13388 X"$0" : 'X\(//\)$' \| \
Chris@1 13389 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Chris@1 13390 $as_echo X/"$0" |
Chris@1 13391 sed '/^.*\/\([^/][^/]*\)\/*$/{
Chris@1 13392 s//\1/
Chris@1 13393 q
Chris@1 13394 }
Chris@1 13395 /^X\/\(\/\/\)$/{
Chris@1 13396 s//\1/
Chris@1 13397 q
Chris@1 13398 }
Chris@1 13399 /^X\/\(\/\).*/{
Chris@1 13400 s//\1/
Chris@1 13401 q
Chris@1 13402 }
Chris@1 13403 s/.*/./; q'`
Chris@1 13404
Chris@1 13405 # Avoid depending upon Character Ranges.
Chris@1 13406 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
Chris@1 13407 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
Chris@1 13408 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
Chris@1 13409 as_cr_digits='0123456789'
Chris@1 13410 as_cr_alnum=$as_cr_Letters$as_cr_digits
Chris@1 13411
Chris@1 13412 ECHO_C= ECHO_N= ECHO_T=
Chris@1 13413 case `echo -n x` in #(((((
Chris@1 13414 -n*)
Chris@1 13415 case `echo 'xy\c'` in
Chris@1 13416 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Chris@1 13417 xy) ECHO_C='\c';;
Chris@1 13418 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
Chris@1 13419 ECHO_T=' ';;
Chris@1 13420 esac;;
Chris@1 13421 *)
Chris@1 13422 ECHO_N='-n';;
Chris@1 13423 esac
Chris@1 13424
Chris@1 13425 rm -f conf$$ conf$$.exe conf$$.file
Chris@1 13426 if test -d conf$$.dir; then
Chris@1 13427 rm -f conf$$.dir/conf$$.file
Chris@1 13428 else
Chris@1 13429 rm -f conf$$.dir
Chris@1 13430 mkdir conf$$.dir 2>/dev/null
Chris@1 13431 fi
Chris@1 13432 if (echo >conf$$.file) 2>/dev/null; then
Chris@1 13433 if ln -s conf$$.file conf$$ 2>/dev/null; then
Chris@1 13434 as_ln_s='ln -s'
Chris@1 13435 # ... but there are two gotchas:
Chris@1 13436 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
Chris@1 13437 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Chris@1 13438 # In both cases, we have to default to `cp -p'.
Chris@1 13439 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Chris@1 13440 as_ln_s='cp -p'
Chris@1 13441 elif ln conf$$.file conf$$ 2>/dev/null; then
Chris@1 13442 as_ln_s=ln
Chris@1 13443 else
Chris@1 13444 as_ln_s='cp -p'
Chris@1 13445 fi
Chris@1 13446 else
Chris@1 13447 as_ln_s='cp -p'
Chris@1 13448 fi
Chris@1 13449 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
Chris@1 13450 rmdir conf$$.dir 2>/dev/null
Chris@1 13451
Chris@1 13452
Chris@1 13453 # as_fn_mkdir_p
Chris@1 13454 # -------------
Chris@1 13455 # Create "$as_dir" as a directory, including parents if necessary.
Chris@1 13456 as_fn_mkdir_p ()
Chris@1 13457 {
Chris@1 13458
Chris@1 13459 case $as_dir in #(
Chris@1 13460 -*) as_dir=./$as_dir;;
Chris@1 13461 esac
Chris@1 13462 test -d "$as_dir" || eval $as_mkdir_p || {
Chris@1 13463 as_dirs=
Chris@1 13464 while :; do
Chris@1 13465 case $as_dir in #(
Chris@1 13466 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Chris@1 13467 *) as_qdir=$as_dir;;
Chris@1 13468 esac
Chris@1 13469 as_dirs="'$as_qdir' $as_dirs"
Chris@1 13470 as_dir=`$as_dirname -- "$as_dir" ||
Chris@1 13471 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@1 13472 X"$as_dir" : 'X\(//\)[^/]' \| \
Chris@1 13473 X"$as_dir" : 'X\(//\)$' \| \
Chris@1 13474 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Chris@1 13475 $as_echo X"$as_dir" |
Chris@1 13476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@1 13477 s//\1/
Chris@1 13478 q
Chris@1 13479 }
Chris@1 13480 /^X\(\/\/\)[^/].*/{
Chris@1 13481 s//\1/
Chris@1 13482 q
Chris@1 13483 }
Chris@1 13484 /^X\(\/\/\)$/{
Chris@1 13485 s//\1/
Chris@1 13486 q
Chris@1 13487 }
Chris@1 13488 /^X\(\/\).*/{
Chris@1 13489 s//\1/
Chris@1 13490 q
Chris@1 13491 }
Chris@1 13492 s/.*/./; q'`
Chris@1 13493 test -d "$as_dir" && break
Chris@1 13494 done
Chris@1 13495 test -z "$as_dirs" || eval "mkdir $as_dirs"
Chris@1 13496 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Chris@1 13497
Chris@1 13498
Chris@1 13499 } # as_fn_mkdir_p
Chris@1 13500 if mkdir -p . 2>/dev/null; then
Chris@1 13501 as_mkdir_p='mkdir -p "$as_dir"'
Chris@1 13502 else
Chris@1 13503 test -d ./-p && rmdir ./-p
Chris@1 13504 as_mkdir_p=false
Chris@1 13505 fi
Chris@1 13506
Chris@1 13507 if test -x / >/dev/null 2>&1; then
Chris@1 13508 as_test_x='test -x'
Chris@1 13509 else
Chris@1 13510 if ls -dL / >/dev/null 2>&1; then
Chris@1 13511 as_ls_L_option=L
Chris@1 13512 else
Chris@1 13513 as_ls_L_option=
Chris@1 13514 fi
Chris@1 13515 as_test_x='
Chris@1 13516 eval sh -c '\''
Chris@1 13517 if test -d "$1"; then
Chris@1 13518 test -d "$1/.";
Chris@1 13519 else
Chris@1 13520 case $1 in #(
Chris@1 13521 -*)set "./$1";;
Chris@1 13522 esac;
Chris@1 13523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Chris@1 13524 ???[sx]*):;;*)false;;esac;fi
Chris@1 13525 '\'' sh
Chris@1 13526 '
Chris@1 13527 fi
Chris@1 13528 as_executable_p=$as_test_x
Chris@1 13529
Chris@1 13530 # Sed expression to map a string onto a valid CPP name.
Chris@1 13531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Chris@1 13532
Chris@1 13533 # Sed expression to map a string onto a valid variable name.
Chris@1 13534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Chris@1 13535
Chris@1 13536
Chris@1 13537 exec 6>&1
Chris@1 13538 ## ----------------------------------- ##
Chris@1 13539 ## Main body of $CONFIG_STATUS script. ##
Chris@1 13540 ## ----------------------------------- ##
Chris@1 13541 _ASEOF
Chris@1 13542 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Chris@1 13543
Chris@1 13544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@1 13545 # Save the log message, to keep $0 and so on meaningful, and to
Chris@1 13546 # report actual input values of CONFIG_FILES etc. instead of their
Chris@1 13547 # values after options handling.
Chris@1 13548 ac_log="
Chris@1 13549 This file was extended by libvorbis $as_me 1.3.3, which was
Chris@1 13550 generated by GNU Autoconf 2.68. Invocation command line was
Chris@1 13551
Chris@1 13552 CONFIG_FILES = $CONFIG_FILES
Chris@1 13553 CONFIG_HEADERS = $CONFIG_HEADERS
Chris@1 13554 CONFIG_LINKS = $CONFIG_LINKS
Chris@1 13555 CONFIG_COMMANDS = $CONFIG_COMMANDS
Chris@1 13556 $ $0 $@
Chris@1 13557
Chris@1 13558 on `(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@1 13559 "
Chris@1 13560
Chris@1 13561 _ACEOF
Chris@1 13562
Chris@1 13563 case $ac_config_files in *"
Chris@1 13564 "*) set x $ac_config_files; shift; ac_config_files=$*;;
Chris@1 13565 esac
Chris@1 13566
Chris@1 13567 case $ac_config_headers in *"
Chris@1 13568 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
Chris@1 13569 esac
Chris@1 13570
Chris@1 13571
Chris@1 13572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@1 13573 # Files that config.status was made for.
Chris@1 13574 config_files="$ac_config_files"
Chris@1 13575 config_headers="$ac_config_headers"
Chris@1 13576 config_commands="$ac_config_commands"
Chris@1 13577
Chris@1 13578 _ACEOF
Chris@1 13579
Chris@1 13580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@1 13581 ac_cs_usage="\
Chris@1 13582 \`$as_me' instantiates files and other configuration actions
Chris@1 13583 from templates according to the current configuration. Unless the files
Chris@1 13584 and actions are specified as TAGs, all are instantiated by default.
Chris@1 13585
Chris@1 13586 Usage: $0 [OPTION]... [TAG]...
Chris@1 13587
Chris@1 13588 -h, --help print this help, then exit
Chris@1 13589 -V, --version print version number and configuration settings, then exit
Chris@1 13590 --config print configuration, then exit
Chris@1 13591 -q, --quiet, --silent
Chris@1 13592 do not print progress messages
Chris@1 13593 -d, --debug don't remove temporary files
Chris@1 13594 --recheck update $as_me by reconfiguring in the same conditions
Chris@1 13595 --file=FILE[:TEMPLATE]
Chris@1 13596 instantiate the configuration file FILE
Chris@1 13597 --header=FILE[:TEMPLATE]
Chris@1 13598 instantiate the configuration header FILE
Chris@1 13599
Chris@1 13600 Configuration files:
Chris@1 13601 $config_files
Chris@1 13602
Chris@1 13603 Configuration headers:
Chris@1 13604 $config_headers
Chris@1 13605
Chris@1 13606 Configuration commands:
Chris@1 13607 $config_commands
Chris@1 13608
Chris@1 13609 Report bugs to <vorbis-dev@xiph.org>."
Chris@1 13610
Chris@1 13611 _ACEOF
Chris@1 13612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@1 13613 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Chris@1 13614 ac_cs_version="\\
Chris@1 13615 libvorbis config.status 1.3.3
Chris@1 13616 configured by $0, generated by GNU Autoconf 2.68,
Chris@1 13617 with options \\"\$ac_cs_config\\"
Chris@1 13618
Chris@1 13619 Copyright (C) 2010 Free Software Foundation, Inc.
Chris@1 13620 This config.status script is free software; the Free Software Foundation
Chris@1 13621 gives unlimited permission to copy, distribute and modify it."
Chris@1 13622
Chris@1 13623 ac_pwd='$ac_pwd'
Chris@1 13624 srcdir='$srcdir'
Chris@1 13625 INSTALL='$INSTALL'
Chris@1 13626 MKDIR_P='$MKDIR_P'
Chris@1 13627 AWK='$AWK'
Chris@1 13628 test -n "\$AWK" || AWK=awk
Chris@1 13629 _ACEOF
Chris@1 13630
Chris@1 13631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@1 13632 # The default lists apply if the user does not specify any file.
Chris@1 13633 ac_need_defaults=:
Chris@1 13634 while test $# != 0
Chris@1 13635 do
Chris@1 13636 case $1 in
Chris@1 13637 --*=?*)
Chris@1 13638 ac_option=`expr "X$1" : 'X\([^=]*\)='`
Chris@1 13639 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Chris@1 13640 ac_shift=:
Chris@1 13641 ;;
Chris@1 13642 --*=)
Chris@1 13643 ac_option=`expr "X$1" : 'X\([^=]*\)='`
Chris@1 13644 ac_optarg=
Chris@1 13645 ac_shift=:
Chris@1 13646 ;;
Chris@1 13647 *)
Chris@1 13648 ac_option=$1
Chris@1 13649 ac_optarg=$2
Chris@1 13650 ac_shift=shift
Chris@1 13651 ;;
Chris@1 13652 esac
Chris@1 13653
Chris@1 13654 case $ac_option in
Chris@1 13655 # Handling of the options.
Chris@1 13656 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Chris@1 13657 ac_cs_recheck=: ;;
Chris@1 13658 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Chris@1 13659 $as_echo "$ac_cs_version"; exit ;;
Chris@1 13660 --config | --confi | --conf | --con | --co | --c )
Chris@1 13661 $as_echo "$ac_cs_config"; exit ;;
Chris@1 13662 --debug | --debu | --deb | --de | --d | -d )
Chris@1 13663 debug=: ;;
Chris@1 13664 --file | --fil | --fi | --f )
Chris@1 13665 $ac_shift
Chris@1 13666 case $ac_optarg in
Chris@1 13667 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@1 13668 '') as_fn_error $? "missing file argument" ;;
Chris@1 13669 esac
Chris@1 13670 as_fn_append CONFIG_FILES " '$ac_optarg'"
Chris@1 13671 ac_need_defaults=false;;
Chris@1 13672 --header | --heade | --head | --hea )
Chris@1 13673 $ac_shift
Chris@1 13674 case $ac_optarg in
Chris@1 13675 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@1 13676 esac
Chris@1 13677 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Chris@1 13678 ac_need_defaults=false;;
Chris@1 13679 --he | --h)
Chris@1 13680 # Conflict between --help and --header
Chris@1 13681 as_fn_error $? "ambiguous option: \`$1'
Chris@1 13682 Try \`$0 --help' for more information.";;
Chris@1 13683 --help | --hel | -h )
Chris@1 13684 $as_echo "$ac_cs_usage"; exit ;;
Chris@1 13685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@1 13686 | -silent | --silent | --silen | --sile | --sil | --si | --s)
Chris@1 13687 ac_cs_silent=: ;;
Chris@1 13688
Chris@1 13689 # This is an error.
Chris@1 13690 -*) as_fn_error $? "unrecognized option: \`$1'
Chris@1 13691 Try \`$0 --help' for more information." ;;
Chris@1 13692
Chris@1 13693 *) as_fn_append ac_config_targets " $1"
Chris@1 13694 ac_need_defaults=false ;;
Chris@1 13695
Chris@1 13696 esac
Chris@1 13697 shift
Chris@1 13698 done
Chris@1 13699
Chris@1 13700 ac_configure_extra_args=
Chris@1 13701
Chris@1 13702 if $ac_cs_silent; then
Chris@1 13703 exec 6>/dev/null
Chris@1 13704 ac_configure_extra_args="$ac_configure_extra_args --silent"
Chris@1 13705 fi
Chris@1 13706
Chris@1 13707 _ACEOF
Chris@1 13708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@1 13709 if \$ac_cs_recheck; then
Chris@1 13710 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Chris@1 13711 shift
Chris@1 13712 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
Chris@1 13713 CONFIG_SHELL='$SHELL'
Chris@1 13714 export CONFIG_SHELL
Chris@1 13715 exec "\$@"
Chris@1 13716 fi
Chris@1 13717
Chris@1 13718 _ACEOF
Chris@1 13719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@1 13720 exec 5>>config.log
Chris@1 13721 {
Chris@1 13722 echo
Chris@1 13723 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
Chris@1 13724 ## Running $as_me. ##
Chris@1 13725 _ASBOX
Chris@1 13726 $as_echo "$ac_log"
Chris@1 13727 } >&5
Chris@1 13728
Chris@1 13729 _ACEOF
Chris@1 13730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@1 13731 #
Chris@1 13732 # INIT-COMMANDS
Chris@1 13733 #
Chris@1 13734 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
Chris@1 13735
Chris@1 13736
Chris@1 13737 # The HP-UX ksh and POSIX shell print the target directory to stdout
Chris@1 13738 # if CDPATH is set.
Chris@1 13739 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@1 13740
Chris@1 13741 sed_quote_subst='$sed_quote_subst'
Chris@1 13742 double_quote_subst='$double_quote_subst'
Chris@1 13743 delay_variable_subst='$delay_variable_subst'
Chris@1 13744 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
Chris@1 13745 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
Chris@1 13746 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
Chris@1 13747 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
Chris@1 13748 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
Chris@1 13749 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
Chris@1 13750 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
Chris@1 13751 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
Chris@1 13752 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
Chris@1 13753 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
Chris@1 13754 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
Chris@1 13755 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
Chris@1 13756 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
Chris@1 13757 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
Chris@1 13758 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
Chris@1 13759 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
Chris@1 13760 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
Chris@1 13761 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
Chris@1 13762 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
Chris@1 13763 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
Chris@1 13764 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
Chris@1 13765 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
Chris@1 13766 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
Chris@1 13767 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
Chris@1 13768 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
Chris@1 13769 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
Chris@1 13770 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
Chris@1 13771 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
Chris@1 13772 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
Chris@1 13773 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
Chris@1 13774 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
Chris@1 13775 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
Chris@1 13776 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
Chris@1 13777 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
Chris@1 13778 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13779 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
Chris@1 13780 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
Chris@1 13781 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
Chris@1 13782 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
Chris@1 13783 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
Chris@1 13784 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
Chris@1 13785 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
Chris@1 13786 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
Chris@1 13787 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
Chris@1 13788 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
Chris@1 13789 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13790 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13791 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13792 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
Chris@1 13793 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
Chris@1 13794 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
Chris@1 13795 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
Chris@1 13796 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
Chris@1 13797 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
Chris@1 13798 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
Chris@1 13799 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@1 13800 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@1 13801 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
Chris@1 13802 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
Chris@1 13803 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
Chris@1 13804 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
Chris@1 13805 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
Chris@1 13806 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
Chris@1 13807 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
Chris@1 13808 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
Chris@1 13809 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
Chris@1 13810 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
Chris@1 13811 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
Chris@1 13812 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
Chris@1 13813 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
Chris@1 13814 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
Chris@1 13815 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
Chris@1 13816 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
Chris@1 13817 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
Chris@1 13818 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13819 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13820 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
Chris@1 13821 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
Chris@1 13822 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
Chris@1 13823 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
Chris@1 13824 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
Chris@1 13825 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13826 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13827 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13828 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13829 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13830 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13831 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
Chris@1 13832 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
Chris@1 13833 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
Chris@1 13834 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
Chris@1 13835 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
Chris@1 13836 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
Chris@1 13837 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
Chris@1 13838 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
Chris@1 13839 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
Chris@1 13840 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
Chris@1 13841 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
Chris@1 13842 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
Chris@1 13843 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
Chris@1 13844 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
Chris@1 13845 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13846 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
Chris@1 13847 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
Chris@1 13848 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13849 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13850 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
Chris@1 13851 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
Chris@1 13852 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
Chris@1 13853 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
Chris@1 13854 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
Chris@1 13855 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
Chris@1 13856 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
Chris@1 13857 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
Chris@1 13858 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
Chris@1 13859 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
Chris@1 13860 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
Chris@1 13861 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
Chris@1 13862 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13863 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13864 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13865 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
Chris@1 13866 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
Chris@1 13867 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
Chris@1 13868 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
Chris@1 13869 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
Chris@1 13870 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
Chris@1 13871 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
Chris@1 13872 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
Chris@1 13873 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
Chris@1 13874 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
Chris@1 13875
Chris@1 13876 LTCC='$LTCC'
Chris@1 13877 LTCFLAGS='$LTCFLAGS'
Chris@1 13878 compiler='$compiler_DEFAULT'
Chris@1 13879
Chris@1 13880 # A function that is used when there is no print builtin or printf.
Chris@1 13881 func_fallback_echo ()
Chris@1 13882 {
Chris@1 13883 eval 'cat <<_LTECHO_EOF
Chris@1 13884 \$1
Chris@1 13885 _LTECHO_EOF'
Chris@1 13886 }
Chris@1 13887
Chris@1 13888 # Quote evaled strings.
Chris@1 13889 for var in AS \
Chris@1 13890 DLLTOOL \
Chris@1 13891 OBJDUMP \
Chris@1 13892 SHELL \
Chris@1 13893 ECHO \
Chris@1 13894 SED \
Chris@1 13895 GREP \
Chris@1 13896 EGREP \
Chris@1 13897 FGREP \
Chris@1 13898 LD \
Chris@1 13899 NM \
Chris@1 13900 LN_S \
Chris@1 13901 lt_SP2NL \
Chris@1 13902 lt_NL2SP \
Chris@1 13903 reload_flag \
Chris@1 13904 deplibs_check_method \
Chris@1 13905 file_magic_cmd \
Chris@1 13906 file_magic_glob \
Chris@1 13907 want_nocaseglob \
Chris@1 13908 sharedlib_from_linklib_cmd \
Chris@1 13909 AR \
Chris@1 13910 AR_FLAGS \
Chris@1 13911 archiver_list_spec \
Chris@1 13912 STRIP \
Chris@1 13913 RANLIB \
Chris@1 13914 CC \
Chris@1 13915 CFLAGS \
Chris@1 13916 compiler \
Chris@1 13917 lt_cv_sys_global_symbol_pipe \
Chris@1 13918 lt_cv_sys_global_symbol_to_cdecl \
Chris@1 13919 lt_cv_sys_global_symbol_to_c_name_address \
Chris@1 13920 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Chris@1 13921 nm_file_list_spec \
Chris@1 13922 lt_prog_compiler_no_builtin_flag \
Chris@1 13923 lt_prog_compiler_pic \
Chris@1 13924 lt_prog_compiler_wl \
Chris@1 13925 lt_prog_compiler_static \
Chris@1 13926 lt_cv_prog_compiler_c_o \
Chris@1 13927 need_locks \
Chris@1 13928 MANIFEST_TOOL \
Chris@1 13929 DSYMUTIL \
Chris@1 13930 NMEDIT \
Chris@1 13931 LIPO \
Chris@1 13932 OTOOL \
Chris@1 13933 OTOOL64 \
Chris@1 13934 shrext_cmds \
Chris@1 13935 export_dynamic_flag_spec \
Chris@1 13936 whole_archive_flag_spec \
Chris@1 13937 compiler_needs_object \
Chris@1 13938 with_gnu_ld \
Chris@1 13939 allow_undefined_flag \
Chris@1 13940 no_undefined_flag \
Chris@1 13941 hardcode_libdir_flag_spec \
Chris@1 13942 hardcode_libdir_flag_spec_ld \
Chris@1 13943 hardcode_libdir_separator \
Chris@1 13944 exclude_expsyms \
Chris@1 13945 include_expsyms \
Chris@1 13946 file_list_spec \
Chris@1 13947 variables_saved_for_relink \
Chris@1 13948 libname_spec \
Chris@1 13949 library_names_spec \
Chris@1 13950 soname_spec \
Chris@1 13951 install_override_mode \
Chris@1 13952 finish_eval \
Chris@1 13953 old_striplib \
Chris@1 13954 striplib; do
Chris@1 13955 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Chris@1 13956 *[\\\\\\\`\\"\\\$]*)
Chris@1 13957 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
Chris@1 13958 ;;
Chris@1 13959 *)
Chris@1 13960 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
Chris@1 13961 ;;
Chris@1 13962 esac
Chris@1 13963 done
Chris@1 13964
Chris@1 13965 # Double-quote double-evaled strings.
Chris@1 13966 for var in reload_cmds \
Chris@1 13967 old_postinstall_cmds \
Chris@1 13968 old_postuninstall_cmds \
Chris@1 13969 old_archive_cmds \
Chris@1 13970 extract_expsyms_cmds \
Chris@1 13971 old_archive_from_new_cmds \
Chris@1 13972 old_archive_from_expsyms_cmds \
Chris@1 13973 archive_cmds \
Chris@1 13974 archive_expsym_cmds \
Chris@1 13975 module_cmds \
Chris@1 13976 module_expsym_cmds \
Chris@1 13977 export_symbols_cmds \
Chris@1 13978 prelink_cmds \
Chris@1 13979 postlink_cmds \
Chris@1 13980 postinstall_cmds \
Chris@1 13981 postuninstall_cmds \
Chris@1 13982 finish_cmds \
Chris@1 13983 sys_lib_search_path_spec \
Chris@1 13984 sys_lib_dlsearch_path_spec; do
Chris@1 13985 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Chris@1 13986 *[\\\\\\\`\\"\\\$]*)
Chris@1 13987 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
Chris@1 13988 ;;
Chris@1 13989 *)
Chris@1 13990 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
Chris@1 13991 ;;
Chris@1 13992 esac
Chris@1 13993 done
Chris@1 13994
Chris@1 13995 ac_aux_dir='$ac_aux_dir'
Chris@1 13996 xsi_shell='$xsi_shell'
Chris@1 13997 lt_shell_append='$lt_shell_append'
Chris@1 13998
Chris@1 13999 # See if we are running on zsh, and set the options which allow our
Chris@1 14000 # commands through without removal of \ escapes INIT.
Chris@1 14001 if test -n "\${ZSH_VERSION+set}" ; then
Chris@1 14002 setopt NO_GLOB_SUBST
Chris@1 14003 fi
Chris@1 14004
Chris@1 14005
Chris@1 14006 PACKAGE='$PACKAGE'
Chris@1 14007 VERSION='$VERSION'
Chris@1 14008 TIMESTAMP='$TIMESTAMP'
Chris@1 14009 RM='$RM'
Chris@1 14010 ofile='$ofile'
Chris@1 14011
Chris@1 14012
Chris@1 14013
Chris@1 14014
Chris@1 14015 _ACEOF
Chris@1 14016
Chris@1 14017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@1 14018
Chris@1 14019 # Handling of arguments.
Chris@1 14020 for ac_config_target in $ac_config_targets
Chris@1 14021 do
Chris@1 14022 case $ac_config_target in
Chris@1 14023 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
Chris@1 14024 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Chris@1 14025 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Chris@1 14026 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Chris@1 14027 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
Chris@1 14028 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
Chris@1 14029 "lib/modes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/modes/Makefile" ;;
Chris@1 14030 "lib/books/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/Makefile" ;;
Chris@1 14031 "lib/books/coupled/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/coupled/Makefile" ;;
Chris@1 14032 "lib/books/uncoupled/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/uncoupled/Makefile" ;;
Chris@1 14033 "lib/books/floor/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/floor/Makefile" ;;
Chris@1 14034 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
Chris@1 14035 "doc/vorbisfile/Makefile") CONFIG_FILES="$CONFIG_FILES doc/vorbisfile/Makefile" ;;
Chris@1 14036 "doc/vorbisenc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/vorbisenc/Makefile" ;;
Chris@1 14037 "doc/libvorbis/Makefile") CONFIG_FILES="$CONFIG_FILES doc/libvorbis/Makefile" ;;
Chris@1 14038 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
Chris@1 14039 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
Chris@1 14040 "include/vorbis/Makefile") CONFIG_FILES="$CONFIG_FILES include/vorbis/Makefile" ;;
Chris@1 14041 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
Chris@1 14042 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
Chris@1 14043 "vq/Makefile") CONFIG_FILES="$CONFIG_FILES vq/Makefile" ;;
Chris@1 14044 "libvorbis.spec") CONFIG_FILES="$CONFIG_FILES libvorbis.spec" ;;
Chris@1 14045 "vorbis.pc") CONFIG_FILES="$CONFIG_FILES vorbis.pc" ;;
Chris@1 14046 "vorbisenc.pc") CONFIG_FILES="$CONFIG_FILES vorbisenc.pc" ;;
Chris@1 14047 "vorbisfile.pc") CONFIG_FILES="$CONFIG_FILES vorbisfile.pc" ;;
Chris@1 14048 "vorbis-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbis-uninstalled.pc" ;;
Chris@1 14049 "vorbisenc-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbisenc-uninstalled.pc" ;;
Chris@1 14050 "vorbisfile-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbisfile-uninstalled.pc" ;;
Chris@1 14051
Chris@1 14052 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Chris@1 14053 esac
Chris@1 14054 done
Chris@1 14055
Chris@1 14056
Chris@1 14057 # If the user did not use the arguments to specify the items to instantiate,
Chris@1 14058 # then the envvar interface is used. Set only those that are not.
Chris@1 14059 # We use the long form for the default assignment because of an extremely
Chris@1 14060 # bizarre bug on SunOS 4.1.3.
Chris@1 14061 if $ac_need_defaults; then
Chris@1 14062 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Chris@1 14063 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Chris@1 14064 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
Chris@1 14065 fi
Chris@1 14066
Chris@1 14067 # Have a temporary directory for convenience. Make it in the build tree
Chris@1 14068 # simply because there is no reason against having it here, and in addition,
Chris@1 14069 # creating and moving files from /tmp can sometimes cause problems.
Chris@1 14070 # Hook for its removal unless debugging.
Chris@1 14071 # Note that there is a small window in which the directory will not be cleaned:
Chris@1 14072 # after its creation but before its name has been assigned to `$tmp'.
Chris@1 14073 $debug ||
Chris@1 14074 {
Chris@1 14075 tmp= ac_tmp=
Chris@1 14076 trap 'exit_status=$?
Chris@1 14077 : "${ac_tmp:=$tmp}"
Chris@1 14078 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Chris@1 14079 ' 0
Chris@1 14080 trap 'as_fn_exit 1' 1 2 13 15
Chris@1 14081 }
Chris@1 14082 # Create a (secure) tmp directory for tmp files.
Chris@1 14083
Chris@1 14084 {
Chris@1 14085 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Chris@1 14086 test -d "$tmp"
Chris@1 14087 } ||
Chris@1 14088 {
Chris@1 14089 tmp=./conf$$-$RANDOM
Chris@1 14090 (umask 077 && mkdir "$tmp")
Chris@1 14091 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Chris@1 14092 ac_tmp=$tmp
Chris@1 14093
Chris@1 14094 # Set up the scripts for CONFIG_FILES section.
Chris@1 14095 # No need to generate them if there are no CONFIG_FILES.
Chris@1 14096 # This happens for instance with `./config.status config.h'.
Chris@1 14097 if test -n "$CONFIG_FILES"; then
Chris@1 14098
Chris@1 14099
Chris@1 14100 ac_cr=`echo X | tr X '\015'`
Chris@1 14101 # On cygwin, bash can eat \r inside `` if the user requested igncr.
Chris@1 14102 # But we know of no other shell where ac_cr would be empty at this
Chris@1 14103 # point, so we can use a bashism as a fallback.
Chris@1 14104 if test "x$ac_cr" = x; then
Chris@1 14105 eval ac_cr=\$\'\\r\'
Chris@1 14106 fi
Chris@1 14107 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
Chris@1 14108 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Chris@1 14109 ac_cs_awk_cr='\\r'
Chris@1 14110 else
Chris@1 14111 ac_cs_awk_cr=$ac_cr
Chris@1 14112 fi
Chris@1 14113
Chris@1 14114 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Chris@1 14115 _ACEOF
Chris@1 14116
Chris@1 14117
Chris@1 14118 {
Chris@1 14119 echo "cat >conf$$subs.awk <<_ACEOF" &&
Chris@1 14120 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
Chris@1 14121 echo "_ACEOF"
Chris@1 14122 } >conf$$subs.sh ||
Chris@1 14123 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@1 14124 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Chris@1 14125 ac_delim='%!_!# '
Chris@1 14126 for ac_last_try in false false false false false :; do
Chris@1 14127 . ./conf$$subs.sh ||
Chris@1 14128 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@1 14129
Chris@1 14130 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
Chris@1 14131 if test $ac_delim_n = $ac_delim_num; then
Chris@1 14132 break
Chris@1 14133 elif $ac_last_try; then
Chris@1 14134 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@1 14135 else
Chris@1 14136 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Chris@1 14137 fi
Chris@1 14138 done
Chris@1 14139 rm -f conf$$subs.sh
Chris@1 14140
Chris@1 14141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@1 14142 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Chris@1 14143 _ACEOF
Chris@1 14144 sed -n '
Chris@1 14145 h
Chris@1 14146 s/^/S["/; s/!.*/"]=/
Chris@1 14147 p
Chris@1 14148 g
Chris@1 14149 s/^[^!]*!//
Chris@1 14150 :repl
Chris@1 14151 t repl
Chris@1 14152 s/'"$ac_delim"'$//
Chris@1 14153 t delim
Chris@1 14154 :nl
Chris@1 14155 h
Chris@1 14156 s/\(.\{148\}\)..*/\1/
Chris@1 14157 t more1
Chris@1 14158 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
Chris@1 14159 p
Chris@1 14160 n
Chris@1 14161 b repl
Chris@1 14162 :more1
Chris@1 14163 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
Chris@1 14164 p
Chris@1 14165 g
Chris@1 14166 s/.\{148\}//
Chris@1 14167 t nl
Chris@1 14168 :delim
Chris@1 14169 h
Chris@1 14170 s/\(.\{148\}\)..*/\1/
Chris@1 14171 t more2
Chris@1 14172 s/["\\]/\\&/g; s/^/"/; s/$/"/
Chris@1 14173 p
Chris@1 14174 b
Chris@1 14175 :more2
Chris@1 14176 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
Chris@1 14177 p
Chris@1 14178 g
Chris@1 14179 s/.\{148\}//
Chris@1 14180 t delim
Chris@1 14181 ' <conf$$subs.awk | sed '
Chris@1 14182 /^[^""]/{
Chris@1 14183 N
Chris@1 14184 s/\n//
Chris@1 14185 }
Chris@1 14186 ' >>$CONFIG_STATUS || ac_write_fail=1
Chris@1 14187 rm -f conf$$subs.awk
Chris@1 14188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@1 14189 _ACAWK
Chris@1 14190 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Chris@1 14191 for (key in S) S_is_set[key] = 1
Chris@1 14192 FS = ""
Chris@1 14193
Chris@1 14194 }
Chris@1 14195 {
Chris@1 14196 line = $ 0
Chris@1 14197 nfields = split(line, field, "@")
Chris@1 14198 substed = 0
Chris@1 14199 len = length(field[1])
Chris@1 14200 for (i = 2; i < nfields; i++) {
Chris@1 14201 key = field[i]
Chris@1 14202 keylen = length(key)
Chris@1 14203 if (S_is_set[key]) {
Chris@1 14204 value = S[key]
Chris@1 14205 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
Chris@1 14206 len += length(value) + length(field[++i])
Chris@1 14207 substed = 1
Chris@1 14208 } else
Chris@1 14209 len += 1 + keylen
Chris@1 14210 }
Chris@1 14211
Chris@1 14212 print line
Chris@1 14213 }
Chris@1 14214
Chris@1 14215 _ACAWK
Chris@1 14216 _ACEOF
Chris@1 14217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@1 14218 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
Chris@1 14219 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
Chris@1 14220 else
Chris@1 14221 cat
Chris@1 14222 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
Chris@1 14223 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Chris@1 14224 _ACEOF
Chris@1 14225
Chris@1 14226 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
Chris@1 14227 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Chris@1 14228 # trailing colons and then remove the whole line if VPATH becomes empty
Chris@1 14229 # (actually we leave an empty line to preserve line numbers).
Chris@1 14230 if test "x$srcdir" = x.; then
Chris@1 14231 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
Chris@1 14232 h
Chris@1 14233 s///
Chris@1 14234 s/^/:/
Chris@1 14235 s/[ ]*$/:/
Chris@1 14236 s/:\$(srcdir):/:/g
Chris@1 14237 s/:\${srcdir}:/:/g
Chris@1 14238 s/:@srcdir@:/:/g
Chris@1 14239 s/^:*//
Chris@1 14240 s/:*$//
Chris@1 14241 x
Chris@1 14242 s/\(=[ ]*\).*/\1/
Chris@1 14243 G
Chris@1 14244 s/\n//
Chris@1 14245 s/^[^=]*=[ ]*$//
Chris@1 14246 }'
Chris@1 14247 fi
Chris@1 14248
Chris@1 14249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@1 14250 fi # test -n "$CONFIG_FILES"
Chris@1 14251
Chris@1 14252 # Set up the scripts for CONFIG_HEADERS section.
Chris@1 14253 # No need to generate them if there are no CONFIG_HEADERS.
Chris@1 14254 # This happens for instance with `./config.status Makefile'.
Chris@1 14255 if test -n "$CONFIG_HEADERS"; then
Chris@1 14256 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Chris@1 14257 BEGIN {
Chris@1 14258 _ACEOF
Chris@1 14259
Chris@1 14260 # Transform confdefs.h into an awk script `defines.awk', embedded as
Chris@1 14261 # here-document in config.status, that substitutes the proper values into
Chris@1 14262 # config.h.in to produce config.h.
Chris@1 14263
Chris@1 14264 # Create a delimiter string that does not exist in confdefs.h, to ease
Chris@1 14265 # handling of long lines.
Chris@1 14266 ac_delim='%!_!# '
Chris@1 14267 for ac_last_try in false false :; do
Chris@1 14268 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
Chris@1 14269 if test -z "$ac_tt"; then
Chris@1 14270 break
Chris@1 14271 elif $ac_last_try; then
Chris@1 14272 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Chris@1 14273 else
Chris@1 14274 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Chris@1 14275 fi
Chris@1 14276 done
Chris@1 14277
Chris@1 14278 # For the awk script, D is an array of macro values keyed by name,
Chris@1 14279 # likewise P contains macro parameters if any. Preserve backslash
Chris@1 14280 # newline sequences.
Chris@1 14281
Chris@1 14282 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
Chris@1 14283 sed -n '
Chris@1 14284 s/.\{148\}/&'"$ac_delim"'/g
Chris@1 14285 t rset
Chris@1 14286 :rset
Chris@1 14287 s/^[ ]*#[ ]*define[ ][ ]*/ /
Chris@1 14288 t def
Chris@1 14289 d
Chris@1 14290 :def
Chris@1 14291 s/\\$//
Chris@1 14292 t bsnl
Chris@1 14293 s/["\\]/\\&/g
Chris@1 14294 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
Chris@1 14295 D["\1"]=" \3"/p
Chris@1 14296 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
Chris@1 14297 d
Chris@1 14298 :bsnl
Chris@1 14299 s/["\\]/\\&/g
Chris@1 14300 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
Chris@1 14301 D["\1"]=" \3\\\\\\n"\\/p
Chris@1 14302 t cont
Chris@1 14303 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
Chris@1 14304 t cont
Chris@1 14305 d
Chris@1 14306 :cont
Chris@1 14307 n
Chris@1 14308 s/.\{148\}/&'"$ac_delim"'/g
Chris@1 14309 t clear
Chris@1 14310 :clear
Chris@1 14311 s/\\$//
Chris@1 14312 t bsnlc
Chris@1 14313 s/["\\]/\\&/g; s/^/"/; s/$/"/p
Chris@1 14314 d
Chris@1 14315 :bsnlc
Chris@1 14316 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
Chris@1 14317 b cont
Chris@1 14318 ' <confdefs.h | sed '
Chris@1 14319 s/'"$ac_delim"'/"\\\
Chris@1 14320 "/g' >>$CONFIG_STATUS || ac_write_fail=1
Chris@1 14321
Chris@1 14322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@1 14323 for (key in D) D_is_set[key] = 1
Chris@1 14324 FS = ""
Chris@1 14325 }
Chris@1 14326 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
Chris@1 14327 line = \$ 0
Chris@1 14328 split(line, arg, " ")
Chris@1 14329 if (arg[1] == "#") {
Chris@1 14330 defundef = arg[2]
Chris@1 14331 mac1 = arg[3]
Chris@1 14332 } else {
Chris@1 14333 defundef = substr(arg[1], 2)
Chris@1 14334 mac1 = arg[2]
Chris@1 14335 }
Chris@1 14336 split(mac1, mac2, "(") #)
Chris@1 14337 macro = mac2[1]
Chris@1 14338 prefix = substr(line, 1, index(line, defundef) - 1)
Chris@1 14339 if (D_is_set[macro]) {
Chris@1 14340 # Preserve the white space surrounding the "#".
Chris@1 14341 print prefix "define", macro P[macro] D[macro]
Chris@1 14342 next
Chris@1 14343 } else {
Chris@1 14344 # Replace #undef with comments. This is necessary, for example,
Chris@1 14345 # in the case of _POSIX_SOURCE, which is predefined and required
Chris@1 14346 # on some systems where configure will not decide to define it.
Chris@1 14347 if (defundef == "undef") {
Chris@1 14348 print "/*", prefix defundef, macro, "*/"
Chris@1 14349 next
Chris@1 14350 }
Chris@1 14351 }
Chris@1 14352 }
Chris@1 14353 { print }
Chris@1 14354 _ACAWK
Chris@1 14355 _ACEOF
Chris@1 14356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@1 14357 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Chris@1 14358 fi # test -n "$CONFIG_HEADERS"
Chris@1 14359
Chris@1 14360
Chris@1 14361 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Chris@1 14362 shift
Chris@1 14363 for ac_tag
Chris@1 14364 do
Chris@1 14365 case $ac_tag in
Chris@1 14366 :[FHLC]) ac_mode=$ac_tag; continue;;
Chris@1 14367 esac
Chris@1 14368 case $ac_mode$ac_tag in
Chris@1 14369 :[FHL]*:*);;
Chris@1 14370 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Chris@1 14371 :[FH]-) ac_tag=-:-;;
Chris@1 14372 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
Chris@1 14373 esac
Chris@1 14374 ac_save_IFS=$IFS
Chris@1 14375 IFS=:
Chris@1 14376 set x $ac_tag
Chris@1 14377 IFS=$ac_save_IFS
Chris@1 14378 shift
Chris@1 14379 ac_file=$1
Chris@1 14380 shift
Chris@1 14381
Chris@1 14382 case $ac_mode in
Chris@1 14383 :L) ac_source=$1;;
Chris@1 14384 :[FH])
Chris@1 14385 ac_file_inputs=
Chris@1 14386 for ac_f
Chris@1 14387 do
Chris@1 14388 case $ac_f in
Chris@1 14389 -) ac_f="$ac_tmp/stdin";;
Chris@1 14390 *) # Look for the file first in the build tree, then in the source tree
Chris@1 14391 # (if the path is not absolute). The absolute path cannot be DOS-style,
Chris@1 14392 # because $ac_f cannot contain `:'.
Chris@1 14393 test -f "$ac_f" ||
Chris@1 14394 case $ac_f in
Chris@1 14395 [\\/$]*) false;;
Chris@1 14396 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
Chris@1 14397 esac ||
Chris@1 14398 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Chris@1 14399 esac
Chris@1 14400 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Chris@1 14401 as_fn_append ac_file_inputs " '$ac_f'"
Chris@1 14402 done
Chris@1 14403
Chris@1 14404 # Let's still pretend it is `configure' which instantiates (i.e., don't
Chris@1 14405 # use $as_me), people would be surprised to read:
Chris@1 14406 # /* config.h. Generated by config.status. */
Chris@1 14407 configure_input='Generated from '`
Chris@1 14408 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
Chris@1 14409 `' by configure.'
Chris@1 14410 if test x"$ac_file" != x-; then
Chris@1 14411 configure_input="$ac_file. $configure_input"
Chris@1 14412 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Chris@1 14413 $as_echo "$as_me: creating $ac_file" >&6;}
Chris@1 14414 fi
Chris@1 14415 # Neutralize special characters interpreted by sed in replacement strings.
Chris@1 14416 case $configure_input in #(
Chris@1 14417 *\&* | *\|* | *\\* )
Chris@1 14418 ac_sed_conf_input=`$as_echo "$configure_input" |
Chris@1 14419 sed 's/[\\\\&|]/\\\\&/g'`;; #(
Chris@1 14420 *) ac_sed_conf_input=$configure_input;;
Chris@1 14421 esac
Chris@1 14422
Chris@1 14423 case $ac_tag in
Chris@1 14424 *:-:* | *:-) cat >"$ac_tmp/stdin" \
Chris@1 14425 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Chris@1 14426 esac
Chris@1 14427 ;;
Chris@1 14428 esac
Chris@1 14429
Chris@1 14430 ac_dir=`$as_dirname -- "$ac_file" ||
Chris@1 14431 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@1 14432 X"$ac_file" : 'X\(//\)[^/]' \| \
Chris@1 14433 X"$ac_file" : 'X\(//\)$' \| \
Chris@1 14434 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Chris@1 14435 $as_echo X"$ac_file" |
Chris@1 14436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@1 14437 s//\1/
Chris@1 14438 q
Chris@1 14439 }
Chris@1 14440 /^X\(\/\/\)[^/].*/{
Chris@1 14441 s//\1/
Chris@1 14442 q
Chris@1 14443 }
Chris@1 14444 /^X\(\/\/\)$/{
Chris@1 14445 s//\1/
Chris@1 14446 q
Chris@1 14447 }
Chris@1 14448 /^X\(\/\).*/{
Chris@1 14449 s//\1/
Chris@1 14450 q
Chris@1 14451 }
Chris@1 14452 s/.*/./; q'`
Chris@1 14453 as_dir="$ac_dir"; as_fn_mkdir_p
Chris@1 14454 ac_builddir=.
Chris@1 14455
Chris@1 14456 case "$ac_dir" in
Chris@1 14457 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@1 14458 *)
Chris@1 14459 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Chris@1 14460 # A ".." for each directory in $ac_dir_suffix.
Chris@1 14461 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Chris@1 14462 case $ac_top_builddir_sub in
Chris@1 14463 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@1 14464 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
Chris@1 14465 esac ;;
Chris@1 14466 esac
Chris@1 14467 ac_abs_top_builddir=$ac_pwd
Chris@1 14468 ac_abs_builddir=$ac_pwd$ac_dir_suffix
Chris@1 14469 # for backward compatibility:
Chris@1 14470 ac_top_builddir=$ac_top_build_prefix
Chris@1 14471
Chris@1 14472 case $srcdir in
Chris@1 14473 .) # We are building in place.
Chris@1 14474 ac_srcdir=.
Chris@1 14475 ac_top_srcdir=$ac_top_builddir_sub
Chris@1 14476 ac_abs_top_srcdir=$ac_pwd ;;
Chris@1 14477 [\\/]* | ?:[\\/]* ) # Absolute name.
Chris@1 14478 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@1 14479 ac_top_srcdir=$srcdir
Chris@1 14480 ac_abs_top_srcdir=$srcdir ;;
Chris@1 14481 *) # Relative name.
Chris@1 14482 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
Chris@1 14483 ac_top_srcdir=$ac_top_build_prefix$srcdir
Chris@1 14484 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Chris@1 14485 esac
Chris@1 14486 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Chris@1 14487
Chris@1 14488
Chris@1 14489 case $ac_mode in
Chris@1 14490 :F)
Chris@1 14491 #
Chris@1 14492 # CONFIG_FILE
Chris@1 14493 #
Chris@1 14494
Chris@1 14495 case $INSTALL in
Chris@1 14496 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Chris@1 14497 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Chris@1 14498 esac
Chris@1 14499 ac_MKDIR_P=$MKDIR_P
Chris@1 14500 case $MKDIR_P in
Chris@1 14501 [\\/$]* | ?:[\\/]* ) ;;
Chris@1 14502 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
Chris@1 14503 esac
Chris@1 14504 _ACEOF
Chris@1 14505
Chris@1 14506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@1 14507 # If the template does not know about datarootdir, expand it.
Chris@1 14508 # FIXME: This hack should be removed a few years after 2.60.
Chris@1 14509 ac_datarootdir_hack=; ac_datarootdir_seen=
Chris@1 14510 ac_sed_dataroot='
Chris@1 14511 /datarootdir/ {
Chris@1 14512 p
Chris@1 14513 q
Chris@1 14514 }
Chris@1 14515 /@datadir@/p
Chris@1 14516 /@docdir@/p
Chris@1 14517 /@infodir@/p
Chris@1 14518 /@localedir@/p
Chris@1 14519 /@mandir@/p'
Chris@1 14520 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Chris@1 14521 *datarootdir*) ac_datarootdir_seen=yes;;
Chris@1 14522 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Chris@1 14523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
Chris@1 14524 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Chris@1 14525 _ACEOF
Chris@1 14526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@1 14527 ac_datarootdir_hack='
Chris@1 14528 s&@datadir@&$datadir&g
Chris@1 14529 s&@docdir@&$docdir&g
Chris@1 14530 s&@infodir@&$infodir&g
Chris@1 14531 s&@localedir@&$localedir&g
Chris@1 14532 s&@mandir@&$mandir&g
Chris@1 14533 s&\\\${datarootdir}&$datarootdir&g' ;;
Chris@1 14534 esac
Chris@1 14535 _ACEOF
Chris@1 14536
Chris@1 14537 # Neutralize VPATH when `$srcdir' = `.'.
Chris@1 14538 # Shell code in configure.ac might set extrasub.
Chris@1 14539 # FIXME: do we really want to maintain this feature?
Chris@1 14540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@1 14541 ac_sed_extra="$ac_vpsub
Chris@1 14542 $extrasub
Chris@1 14543 _ACEOF
Chris@1 14544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@1 14545 :t
Chris@1 14546 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Chris@1 14547 s|@configure_input@|$ac_sed_conf_input|;t t
Chris@1 14548 s&@top_builddir@&$ac_top_builddir_sub&;t t
Chris@1 14549 s&@top_build_prefix@&$ac_top_build_prefix&;t t
Chris@1 14550 s&@srcdir@&$ac_srcdir&;t t
Chris@1 14551 s&@abs_srcdir@&$ac_abs_srcdir&;t t
Chris@1 14552 s&@top_srcdir@&$ac_top_srcdir&;t t
Chris@1 14553 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
Chris@1 14554 s&@builddir@&$ac_builddir&;t t
Chris@1 14555 s&@abs_builddir@&$ac_abs_builddir&;t t
Chris@1 14556 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Chris@1 14557 s&@INSTALL@&$ac_INSTALL&;t t
Chris@1 14558 s&@MKDIR_P@&$ac_MKDIR_P&;t t
Chris@1 14559 $ac_datarootdir_hack
Chris@1 14560 "
Chris@1 14561 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
Chris@1 14562 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@1 14563
Chris@1 14564 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Chris@1 14565 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
Chris@1 14566 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
Chris@1 14567 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Chris@1 14568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Chris@1 14569 which seems to be undefined. Please make sure it is defined" >&5
Chris@1 14570 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Chris@1 14571 which seems to be undefined. Please make sure it is defined" >&2;}
Chris@1 14572
Chris@1 14573 rm -f "$ac_tmp/stdin"
Chris@1 14574 case $ac_file in
Chris@1 14575 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
Chris@1 14576 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Chris@1 14577 esac \
Chris@1 14578 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@1 14579 ;;
Chris@1 14580 :H)
Chris@1 14581 #
Chris@1 14582 # CONFIG_HEADER
Chris@1 14583 #
Chris@1 14584 if test x"$ac_file" != x-; then
Chris@1 14585 {
Chris@1 14586 $as_echo "/* $configure_input */" \
Chris@1 14587 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
Chris@1 14588 } >"$ac_tmp/config.h" \
Chris@1 14589 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@1 14590 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Chris@1 14591 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Chris@1 14592 $as_echo "$as_me: $ac_file is unchanged" >&6;}
Chris@1 14593 else
Chris@1 14594 rm -f "$ac_file"
Chris@1 14595 mv "$ac_tmp/config.h" "$ac_file" \
Chris@1 14596 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@1 14597 fi
Chris@1 14598 else
Chris@1 14599 $as_echo "/* $configure_input */" \
Chris@1 14600 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
Chris@1 14601 || as_fn_error $? "could not create -" "$LINENO" 5
Chris@1 14602 fi
Chris@1 14603 # Compute "$ac_file"'s index in $config_headers.
Chris@1 14604 _am_arg="$ac_file"
Chris@1 14605 _am_stamp_count=1
Chris@1 14606 for _am_header in $config_headers :; do
Chris@1 14607 case $_am_header in
Chris@1 14608 $_am_arg | $_am_arg:* )
Chris@1 14609 break ;;
Chris@1 14610 * )
Chris@1 14611 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
Chris@1 14612 esac
Chris@1 14613 done
Chris@1 14614 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
Chris@1 14615 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@1 14616 X"$_am_arg" : 'X\(//\)[^/]' \| \
Chris@1 14617 X"$_am_arg" : 'X\(//\)$' \| \
Chris@1 14618 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
Chris@1 14619 $as_echo X"$_am_arg" |
Chris@1 14620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@1 14621 s//\1/
Chris@1 14622 q
Chris@1 14623 }
Chris@1 14624 /^X\(\/\/\)[^/].*/{
Chris@1 14625 s//\1/
Chris@1 14626 q
Chris@1 14627 }
Chris@1 14628 /^X\(\/\/\)$/{
Chris@1 14629 s//\1/
Chris@1 14630 q
Chris@1 14631 }
Chris@1 14632 /^X\(\/\).*/{
Chris@1 14633 s//\1/
Chris@1 14634 q
Chris@1 14635 }
Chris@1 14636 s/.*/./; q'`/stamp-h$_am_stamp_count
Chris@1 14637 ;;
Chris@1 14638
Chris@1 14639 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Chris@1 14640 $as_echo "$as_me: executing $ac_file commands" >&6;}
Chris@1 14641 ;;
Chris@1 14642 esac
Chris@1 14643
Chris@1 14644
Chris@1 14645 case $ac_file$ac_mode in
Chris@1 14646 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
Chris@1 14647 # Autoconf 2.62 quotes --file arguments for eval, but not when files
Chris@1 14648 # are listed without --file. Let's play safe and only enable the eval
Chris@1 14649 # if we detect the quoting.
Chris@1 14650 case $CONFIG_FILES in
Chris@1 14651 *\'*) eval set x "$CONFIG_FILES" ;;
Chris@1 14652 *) set x $CONFIG_FILES ;;
Chris@1 14653 esac
Chris@1 14654 shift
Chris@1 14655 for mf
Chris@1 14656 do
Chris@1 14657 # Strip MF so we end up with the name of the file.
Chris@1 14658 mf=`echo "$mf" | sed -e 's/:.*$//'`
Chris@1 14659 # Check whether this is an Automake generated Makefile or not.
Chris@1 14660 # We used to match only the files named `Makefile.in', but
Chris@1 14661 # some people rename them; so instead we look at the file content.
Chris@1 14662 # Grep'ing the first line is not enough: some people post-process
Chris@1 14663 # each Makefile.in and add a new line on top of each file to say so.
Chris@1 14664 # Grep'ing the whole file is not good either: AIX grep has a line
Chris@1 14665 # limit of 2048, but all sed's we know have understand at least 4000.
Chris@1 14666 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
Chris@1 14667 dirpart=`$as_dirname -- "$mf" ||
Chris@1 14668 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@1 14669 X"$mf" : 'X\(//\)[^/]' \| \
Chris@1 14670 X"$mf" : 'X\(//\)$' \| \
Chris@1 14671 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Chris@1 14672 $as_echo X"$mf" |
Chris@1 14673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@1 14674 s//\1/
Chris@1 14675 q
Chris@1 14676 }
Chris@1 14677 /^X\(\/\/\)[^/].*/{
Chris@1 14678 s//\1/
Chris@1 14679 q
Chris@1 14680 }
Chris@1 14681 /^X\(\/\/\)$/{
Chris@1 14682 s//\1/
Chris@1 14683 q
Chris@1 14684 }
Chris@1 14685 /^X\(\/\).*/{
Chris@1 14686 s//\1/
Chris@1 14687 q
Chris@1 14688 }
Chris@1 14689 s/.*/./; q'`
Chris@1 14690 else
Chris@1 14691 continue
Chris@1 14692 fi
Chris@1 14693 # Extract the definition of DEPDIR, am__include, and am__quote
Chris@1 14694 # from the Makefile without running `make'.
Chris@1 14695 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
Chris@1 14696 test -z "$DEPDIR" && continue
Chris@1 14697 am__include=`sed -n 's/^am__include = //p' < "$mf"`
Chris@1 14698 test -z "am__include" && continue
Chris@1 14699 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Chris@1 14700 # When using ansi2knr, U may be empty or an underscore; expand it
Chris@1 14701 U=`sed -n 's/^U = //p' < "$mf"`
Chris@1 14702 # Find all dependency output files, they are included files with
Chris@1 14703 # $(DEPDIR) in their names. We invoke sed twice because it is the
Chris@1 14704 # simplest approach to changing $(DEPDIR) to its actual value in the
Chris@1 14705 # expansion.
Chris@1 14706 for file in `sed -n "
Chris@1 14707 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Chris@1 14708 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
Chris@1 14709 # Make sure the directory exists.
Chris@1 14710 test -f "$dirpart/$file" && continue
Chris@1 14711 fdir=`$as_dirname -- "$file" ||
Chris@1 14712 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@1 14713 X"$file" : 'X\(//\)[^/]' \| \
Chris@1 14714 X"$file" : 'X\(//\)$' \| \
Chris@1 14715 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Chris@1 14716 $as_echo X"$file" |
Chris@1 14717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@1 14718 s//\1/
Chris@1 14719 q
Chris@1 14720 }
Chris@1 14721 /^X\(\/\/\)[^/].*/{
Chris@1 14722 s//\1/
Chris@1 14723 q
Chris@1 14724 }
Chris@1 14725 /^X\(\/\/\)$/{
Chris@1 14726 s//\1/
Chris@1 14727 q
Chris@1 14728 }
Chris@1 14729 /^X\(\/\).*/{
Chris@1 14730 s//\1/
Chris@1 14731 q
Chris@1 14732 }
Chris@1 14733 s/.*/./; q'`
Chris@1 14734 as_dir=$dirpart/$fdir; as_fn_mkdir_p
Chris@1 14735 # echo "creating $dirpart/$file"
Chris@1 14736 echo '# dummy' > "$dirpart/$file"
Chris@1 14737 done
Chris@1 14738 done
Chris@1 14739 }
Chris@1 14740 ;;
Chris@1 14741 "libtool":C)
Chris@1 14742
Chris@1 14743 # See if we are running on zsh, and set the options which allow our
Chris@1 14744 # commands through without removal of \ escapes.
Chris@1 14745 if test -n "${ZSH_VERSION+set}" ; then
Chris@1 14746 setopt NO_GLOB_SUBST
Chris@1 14747 fi
Chris@1 14748
Chris@1 14749 cfgfile="${ofile}T"
Chris@1 14750 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
Chris@1 14751 $RM "$cfgfile"
Chris@1 14752
Chris@1 14753 cat <<_LT_EOF >> "$cfgfile"
Chris@1 14754 #! $SHELL
Chris@1 14755
Chris@1 14756 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
Chris@1 14757 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
Chris@1 14758 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
Chris@1 14759 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
Chris@1 14760 #
Chris@1 14761 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
Chris@1 14762 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
Chris@1 14763 # Inc.
Chris@1 14764 # Written by Gordon Matzigkeit, 1996
Chris@1 14765 #
Chris@1 14766 # This file is part of GNU Libtool.
Chris@1 14767 #
Chris@1 14768 # GNU Libtool is free software; you can redistribute it and/or
Chris@1 14769 # modify it under the terms of the GNU General Public License as
Chris@1 14770 # published by the Free Software Foundation; either version 2 of
Chris@1 14771 # the License, or (at your option) any later version.
Chris@1 14772 #
Chris@1 14773 # As a special exception to the GNU General Public License,
Chris@1 14774 # if you distribute this file as part of a program or library that
Chris@1 14775 # is built using GNU Libtool, you may include this file under the
Chris@1 14776 # same distribution terms that you use for the rest of that program.
Chris@1 14777 #
Chris@1 14778 # GNU Libtool is distributed in the hope that it will be useful,
Chris@1 14779 # but WITHOUT ANY WARRANTY; without even the implied warranty of
Chris@1 14780 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Chris@1 14781 # GNU General Public License for more details.
Chris@1 14782 #
Chris@1 14783 # You should have received a copy of the GNU General Public License
Chris@1 14784 # along with GNU Libtool; see the file COPYING. If not, a copy
Chris@1 14785 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
Chris@1 14786 # obtained by writing to the Free Software Foundation, Inc.,
Chris@1 14787 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Chris@1 14788
Chris@1 14789
Chris@1 14790 # The names of the tagged configurations supported by this script.
Chris@1 14791 available_tags=""
Chris@1 14792
Chris@1 14793 # ### BEGIN LIBTOOL CONFIG
Chris@1 14794
Chris@1 14795 # Assembler program.
Chris@1 14796 AS=$lt_AS
Chris@1 14797
Chris@1 14798 # DLL creation program.
Chris@1 14799 DLLTOOL=$lt_DLLTOOL
Chris@1 14800
Chris@1 14801 # Object dumper program.
Chris@1 14802 OBJDUMP=$lt_OBJDUMP
Chris@1 14803
Chris@1 14804 # Which release of libtool.m4 was used?
Chris@1 14805 macro_version=$macro_version
Chris@1 14806 macro_revision=$macro_revision
Chris@1 14807
Chris@1 14808 # Whether or not to build shared libraries.
Chris@1 14809 build_libtool_libs=$enable_shared
Chris@1 14810
Chris@1 14811 # Whether or not to build static libraries.
Chris@1 14812 build_old_libs=$enable_static
Chris@1 14813
Chris@1 14814 # What type of objects to build.
Chris@1 14815 pic_mode=$pic_mode
Chris@1 14816
Chris@1 14817 # Whether or not to optimize for fast installation.
Chris@1 14818 fast_install=$enable_fast_install
Chris@1 14819
Chris@1 14820 # Shell to use when invoking shell scripts.
Chris@1 14821 SHELL=$lt_SHELL
Chris@1 14822
Chris@1 14823 # An echo program that protects backslashes.
Chris@1 14824 ECHO=$lt_ECHO
Chris@1 14825
Chris@1 14826 # The host system.
Chris@1 14827 host_alias=$host_alias
Chris@1 14828 host=$host
Chris@1 14829 host_os=$host_os
Chris@1 14830
Chris@1 14831 # The build system.
Chris@1 14832 build_alias=$build_alias
Chris@1 14833 build=$build
Chris@1 14834 build_os=$build_os
Chris@1 14835
Chris@1 14836 # A sed program that does not truncate output.
Chris@1 14837 SED=$lt_SED
Chris@1 14838
Chris@1 14839 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
Chris@1 14840 Xsed="\$SED -e 1s/^X//"
Chris@1 14841
Chris@1 14842 # A grep program that handles long lines.
Chris@1 14843 GREP=$lt_GREP
Chris@1 14844
Chris@1 14845 # An ERE matcher.
Chris@1 14846 EGREP=$lt_EGREP
Chris@1 14847
Chris@1 14848 # A literal string matcher.
Chris@1 14849 FGREP=$lt_FGREP
Chris@1 14850
Chris@1 14851 # A BSD- or MS-compatible name lister.
Chris@1 14852 NM=$lt_NM
Chris@1 14853
Chris@1 14854 # Whether we need soft or hard links.
Chris@1 14855 LN_S=$lt_LN_S
Chris@1 14856
Chris@1 14857 # What is the maximum length of a command?
Chris@1 14858 max_cmd_len=$max_cmd_len
Chris@1 14859
Chris@1 14860 # Object file suffix (normally "o").
Chris@1 14861 objext=$ac_objext
Chris@1 14862
Chris@1 14863 # Executable file suffix (normally "").
Chris@1 14864 exeext=$exeext
Chris@1 14865
Chris@1 14866 # whether the shell understands "unset".
Chris@1 14867 lt_unset=$lt_unset
Chris@1 14868
Chris@1 14869 # turn spaces into newlines.
Chris@1 14870 SP2NL=$lt_lt_SP2NL
Chris@1 14871
Chris@1 14872 # turn newlines into spaces.
Chris@1 14873 NL2SP=$lt_lt_NL2SP
Chris@1 14874
Chris@1 14875 # convert \$build file names to \$host format.
Chris@1 14876 to_host_file_cmd=$lt_cv_to_host_file_cmd
Chris@1 14877
Chris@1 14878 # convert \$build files to toolchain format.
Chris@1 14879 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Chris@1 14880
Chris@1 14881 # Method to check whether dependent libraries are shared objects.
Chris@1 14882 deplibs_check_method=$lt_deplibs_check_method
Chris@1 14883
Chris@1 14884 # Command to use when deplibs_check_method = "file_magic".
Chris@1 14885 file_magic_cmd=$lt_file_magic_cmd
Chris@1 14886
Chris@1 14887 # How to find potential files when deplibs_check_method = "file_magic".
Chris@1 14888 file_magic_glob=$lt_file_magic_glob
Chris@1 14889
Chris@1 14890 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
Chris@1 14891 want_nocaseglob=$lt_want_nocaseglob
Chris@1 14892
Chris@1 14893 # Command to associate shared and link libraries.
Chris@1 14894 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
Chris@1 14895
Chris@1 14896 # The archiver.
Chris@1 14897 AR=$lt_AR
Chris@1 14898
Chris@1 14899 # Flags to create an archive.
Chris@1 14900 AR_FLAGS=$lt_AR_FLAGS
Chris@1 14901
Chris@1 14902 # How to feed a file listing to the archiver.
Chris@1 14903 archiver_list_spec=$lt_archiver_list_spec
Chris@1 14904
Chris@1 14905 # A symbol stripping program.
Chris@1 14906 STRIP=$lt_STRIP
Chris@1 14907
Chris@1 14908 # Commands used to install an old-style archive.
Chris@1 14909 RANLIB=$lt_RANLIB
Chris@1 14910 old_postinstall_cmds=$lt_old_postinstall_cmds
Chris@1 14911 old_postuninstall_cmds=$lt_old_postuninstall_cmds
Chris@1 14912
Chris@1 14913 # Whether to use a lock for old archive extraction.
Chris@1 14914 lock_old_archive_extraction=$lock_old_archive_extraction
Chris@1 14915
Chris@1 14916 # A C compiler.
Chris@1 14917 LTCC=$lt_CC
Chris@1 14918
Chris@1 14919 # LTCC compiler flags.
Chris@1 14920 LTCFLAGS=$lt_CFLAGS
Chris@1 14921
Chris@1 14922 # Take the output of nm and produce a listing of raw symbols and C names.
Chris@1 14923 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
Chris@1 14924
Chris@1 14925 # Transform the output of nm in a proper C declaration.
Chris@1 14926 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
Chris@1 14927
Chris@1 14928 # Transform the output of nm in a C name address pair.
Chris@1 14929 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
Chris@1 14930
Chris@1 14931 # Transform the output of nm in a C name address pair when lib prefix is needed.
Chris@1 14932 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
Chris@1 14933
Chris@1 14934 # Specify filename containing input files for \$NM.
Chris@1 14935 nm_file_list_spec=$lt_nm_file_list_spec
Chris@1 14936
Chris@1 14937 # The root where to search for dependent libraries,and in which our libraries should be installed.
Chris@1 14938 lt_sysroot=$lt_sysroot
Chris@1 14939
Chris@1 14940 # The name of the directory that contains temporary libtool files.
Chris@1 14941 objdir=$objdir
Chris@1 14942
Chris@1 14943 # Used to examine libraries when file_magic_cmd begins with "file".
Chris@1 14944 MAGIC_CMD=$MAGIC_CMD
Chris@1 14945
Chris@1 14946 # Must we lock files when doing compilation?
Chris@1 14947 need_locks=$lt_need_locks
Chris@1 14948
Chris@1 14949 # Manifest tool.
Chris@1 14950 MANIFEST_TOOL=$lt_MANIFEST_TOOL
Chris@1 14951
Chris@1 14952 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
Chris@1 14953 DSYMUTIL=$lt_DSYMUTIL
Chris@1 14954
Chris@1 14955 # Tool to change global to local symbols on Mac OS X.
Chris@1 14956 NMEDIT=$lt_NMEDIT
Chris@1 14957
Chris@1 14958 # Tool to manipulate fat objects and archives on Mac OS X.
Chris@1 14959 LIPO=$lt_LIPO
Chris@1 14960
Chris@1 14961 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
Chris@1 14962 OTOOL=$lt_OTOOL
Chris@1 14963
Chris@1 14964 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
Chris@1 14965 OTOOL64=$lt_OTOOL64
Chris@1 14966
Chris@1 14967 # Old archive suffix (normally "a").
Chris@1 14968 libext=$libext
Chris@1 14969
Chris@1 14970 # Shared library suffix (normally ".so").
Chris@1 14971 shrext_cmds=$lt_shrext_cmds
Chris@1 14972
Chris@1 14973 # The commands to extract the exported symbol list from a shared archive.
Chris@1 14974 extract_expsyms_cmds=$lt_extract_expsyms_cmds
Chris@1 14975
Chris@1 14976 # Variables whose values should be saved in libtool wrapper scripts and
Chris@1 14977 # restored at link time.
Chris@1 14978 variables_saved_for_relink=$lt_variables_saved_for_relink
Chris@1 14979
Chris@1 14980 # Do we need the "lib" prefix for modules?
Chris@1 14981 need_lib_prefix=$need_lib_prefix
Chris@1 14982
Chris@1 14983 # Do we need a version for libraries?
Chris@1 14984 need_version=$need_version
Chris@1 14985
Chris@1 14986 # Library versioning type.
Chris@1 14987 version_type=$version_type
Chris@1 14988
Chris@1 14989 # Shared library runtime path variable.
Chris@1 14990 runpath_var=$runpath_var
Chris@1 14991
Chris@1 14992 # Shared library path variable.
Chris@1 14993 shlibpath_var=$shlibpath_var
Chris@1 14994
Chris@1 14995 # Is shlibpath searched before the hard-coded library search path?
Chris@1 14996 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
Chris@1 14997
Chris@1 14998 # Format of library name prefix.
Chris@1 14999 libname_spec=$lt_libname_spec
Chris@1 15000
Chris@1 15001 # List of archive names. First name is the real one, the rest are links.
Chris@1 15002 # The last name is the one that the linker finds with -lNAME
Chris@1 15003 library_names_spec=$lt_library_names_spec
Chris@1 15004
Chris@1 15005 # The coded name of the library, if different from the real name.
Chris@1 15006 soname_spec=$lt_soname_spec
Chris@1 15007
Chris@1 15008 # Permission mode override for installation of shared libraries.
Chris@1 15009 install_override_mode=$lt_install_override_mode
Chris@1 15010
Chris@1 15011 # Command to use after installation of a shared archive.
Chris@1 15012 postinstall_cmds=$lt_postinstall_cmds
Chris@1 15013
Chris@1 15014 # Command to use after uninstallation of a shared archive.
Chris@1 15015 postuninstall_cmds=$lt_postuninstall_cmds
Chris@1 15016
Chris@1 15017 # Commands used to finish a libtool library installation in a directory.
Chris@1 15018 finish_cmds=$lt_finish_cmds
Chris@1 15019
Chris@1 15020 # As "finish_cmds", except a single script fragment to be evaled but
Chris@1 15021 # not shown.
Chris@1 15022 finish_eval=$lt_finish_eval
Chris@1 15023
Chris@1 15024 # Whether we should hardcode library paths into libraries.
Chris@1 15025 hardcode_into_libs=$hardcode_into_libs
Chris@1 15026
Chris@1 15027 # Compile-time system search path for libraries.
Chris@1 15028 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
Chris@1 15029
Chris@1 15030 # Run-time system search path for libraries.
Chris@1 15031 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
Chris@1 15032
Chris@1 15033 # Whether dlopen is supported.
Chris@1 15034 dlopen_support=$enable_dlopen
Chris@1 15035
Chris@1 15036 # Whether dlopen of programs is supported.
Chris@1 15037 dlopen_self=$enable_dlopen_self
Chris@1 15038
Chris@1 15039 # Whether dlopen of statically linked programs is supported.
Chris@1 15040 dlopen_self_static=$enable_dlopen_self_static
Chris@1 15041
Chris@1 15042 # Commands to strip libraries.
Chris@1 15043 old_striplib=$lt_old_striplib
Chris@1 15044 striplib=$lt_striplib
Chris@1 15045
Chris@1 15046
Chris@1 15047 # The linker used to build libraries.
Chris@1 15048 LD=$lt_LD
Chris@1 15049
Chris@1 15050 # How to create reloadable object files.
Chris@1 15051 reload_flag=$lt_reload_flag
Chris@1 15052 reload_cmds=$lt_reload_cmds
Chris@1 15053
Chris@1 15054 # Commands used to build an old-style archive.
Chris@1 15055 old_archive_cmds=$lt_old_archive_cmds
Chris@1 15056
Chris@1 15057 # A language specific compiler.
Chris@1 15058 CC=$lt_compiler
Chris@1 15059
Chris@1 15060 # Is the compiler the GNU compiler?
Chris@1 15061 with_gcc=$GCC
Chris@1 15062
Chris@1 15063 # Compiler flag to turn off builtin functions.
Chris@1 15064 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
Chris@1 15065
Chris@1 15066 # Additional compiler flags for building library objects.
Chris@1 15067 pic_flag=$lt_lt_prog_compiler_pic
Chris@1 15068
Chris@1 15069 # How to pass a linker flag through the compiler.
Chris@1 15070 wl=$lt_lt_prog_compiler_wl
Chris@1 15071
Chris@1 15072 # Compiler flag to prevent dynamic linking.
Chris@1 15073 link_static_flag=$lt_lt_prog_compiler_static
Chris@1 15074
Chris@1 15075 # Does compiler simultaneously support -c and -o options?
Chris@1 15076 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
Chris@1 15077
Chris@1 15078 # Whether or not to add -lc for building shared libraries.
Chris@1 15079 build_libtool_need_lc=$archive_cmds_need_lc
Chris@1 15080
Chris@1 15081 # Whether or not to disallow shared libs when runtime libs are static.
Chris@1 15082 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
Chris@1 15083
Chris@1 15084 # Compiler flag to allow reflexive dlopens.
Chris@1 15085 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
Chris@1 15086
Chris@1 15087 # Compiler flag to generate shared objects directly from archives.
Chris@1 15088 whole_archive_flag_spec=$lt_whole_archive_flag_spec
Chris@1 15089
Chris@1 15090 # Whether the compiler copes with passing no objects directly.
Chris@1 15091 compiler_needs_object=$lt_compiler_needs_object
Chris@1 15092
Chris@1 15093 # Create an old-style archive from a shared archive.
Chris@1 15094 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
Chris@1 15095
Chris@1 15096 # Create a temporary old-style archive to link instead of a shared archive.
Chris@1 15097 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
Chris@1 15098
Chris@1 15099 # Commands used to build a shared archive.
Chris@1 15100 archive_cmds=$lt_archive_cmds
Chris@1 15101 archive_expsym_cmds=$lt_archive_expsym_cmds
Chris@1 15102
Chris@1 15103 # Commands used to build a loadable module if different from building
Chris@1 15104 # a shared archive.
Chris@1 15105 module_cmds=$lt_module_cmds
Chris@1 15106 module_expsym_cmds=$lt_module_expsym_cmds
Chris@1 15107
Chris@1 15108 # Whether we are building with GNU ld or not.
Chris@1 15109 with_gnu_ld=$lt_with_gnu_ld
Chris@1 15110
Chris@1 15111 # Flag that allows shared libraries with undefined symbols to be built.
Chris@1 15112 allow_undefined_flag=$lt_allow_undefined_flag
Chris@1 15113
Chris@1 15114 # Flag that enforces no undefined symbols.
Chris@1 15115 no_undefined_flag=$lt_no_undefined_flag
Chris@1 15116
Chris@1 15117 # Flag to hardcode \$libdir into a binary during linking.
Chris@1 15118 # This must work even if \$libdir does not exist
Chris@1 15119 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
Chris@1 15120
Chris@1 15121 # If ld is used when linking, flag to hardcode \$libdir into a binary
Chris@1 15122 # during linking. This must work even if \$libdir does not exist.
Chris@1 15123 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
Chris@1 15124
Chris@1 15125 # Whether we need a single "-rpath" flag with a separated argument.
Chris@1 15126 hardcode_libdir_separator=$lt_hardcode_libdir_separator
Chris@1 15127
Chris@1 15128 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
Chris@1 15129 # DIR into the resulting binary.
Chris@1 15130 hardcode_direct=$hardcode_direct
Chris@1 15131
Chris@1 15132 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
Chris@1 15133 # DIR into the resulting binary and the resulting library dependency is
Chris@1 15134 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
Chris@1 15135 # library is relocated.
Chris@1 15136 hardcode_direct_absolute=$hardcode_direct_absolute
Chris@1 15137
Chris@1 15138 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
Chris@1 15139 # into the resulting binary.
Chris@1 15140 hardcode_minus_L=$hardcode_minus_L
Chris@1 15141
Chris@1 15142 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
Chris@1 15143 # into the resulting binary.
Chris@1 15144 hardcode_shlibpath_var=$hardcode_shlibpath_var
Chris@1 15145
Chris@1 15146 # Set to "yes" if building a shared library automatically hardcodes DIR
Chris@1 15147 # into the library and all subsequent libraries and executables linked
Chris@1 15148 # against it.
Chris@1 15149 hardcode_automatic=$hardcode_automatic
Chris@1 15150
Chris@1 15151 # Set to yes if linker adds runtime paths of dependent libraries
Chris@1 15152 # to runtime path list.
Chris@1 15153 inherit_rpath=$inherit_rpath
Chris@1 15154
Chris@1 15155 # Whether libtool must link a program against all its dependency libraries.
Chris@1 15156 link_all_deplibs=$link_all_deplibs
Chris@1 15157
Chris@1 15158 # Set to "yes" if exported symbols are required.
Chris@1 15159 always_export_symbols=$always_export_symbols
Chris@1 15160
Chris@1 15161 # The commands to list exported symbols.
Chris@1 15162 export_symbols_cmds=$lt_export_symbols_cmds
Chris@1 15163
Chris@1 15164 # Symbols that should not be listed in the preloaded symbols.
Chris@1 15165 exclude_expsyms=$lt_exclude_expsyms
Chris@1 15166
Chris@1 15167 # Symbols that must always be exported.
Chris@1 15168 include_expsyms=$lt_include_expsyms
Chris@1 15169
Chris@1 15170 # Commands necessary for linking programs (against libraries) with templates.
Chris@1 15171 prelink_cmds=$lt_prelink_cmds
Chris@1 15172
Chris@1 15173 # Commands necessary for finishing linking programs.
Chris@1 15174 postlink_cmds=$lt_postlink_cmds
Chris@1 15175
Chris@1 15176 # Specify filename containing input files.
Chris@1 15177 file_list_spec=$lt_file_list_spec
Chris@1 15178
Chris@1 15179 # How to hardcode a shared library path into an executable.
Chris@1 15180 hardcode_action=$hardcode_action
Chris@1 15181
Chris@1 15182 # ### END LIBTOOL CONFIG
Chris@1 15183
Chris@1 15184 _LT_EOF
Chris@1 15185
Chris@1 15186 case $host_os in
Chris@1 15187 aix3*)
Chris@1 15188 cat <<\_LT_EOF >> "$cfgfile"
Chris@1 15189 # AIX sometimes has problems with the GCC collect2 program. For some
Chris@1 15190 # reason, if we set the COLLECT_NAMES environment variable, the problems
Chris@1 15191 # vanish in a puff of smoke.
Chris@1 15192 if test "X${COLLECT_NAMES+set}" != Xset; then
Chris@1 15193 COLLECT_NAMES=
Chris@1 15194 export COLLECT_NAMES
Chris@1 15195 fi
Chris@1 15196 _LT_EOF
Chris@1 15197 ;;
Chris@1 15198 esac
Chris@1 15199
Chris@1 15200
Chris@1 15201 ltmain="$ac_aux_dir/ltmain.sh"
Chris@1 15202
Chris@1 15203
Chris@1 15204 # We use sed instead of cat because bash on DJGPP gets confused if
Chris@1 15205 # if finds mixed CR/LF and LF-only lines. Since sed operates in
Chris@1 15206 # text mode, it properly converts lines to CR/LF. This bash problem
Chris@1 15207 # is reportedly fixed, but why not run on old versions too?
Chris@1 15208 sed '$q' "$ltmain" >> "$cfgfile" \
Chris@1 15209 || (rm -f "$cfgfile"; exit 1)
Chris@1 15210
Chris@1 15211 if test x"$xsi_shell" = xyes; then
Chris@1 15212 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
Chris@1 15213 func_dirname ()\
Chris@1 15214 {\
Chris@1 15215 \ case ${1} in\
Chris@1 15216 \ */*) func_dirname_result="${1%/*}${2}" ;;\
Chris@1 15217 \ * ) func_dirname_result="${3}" ;;\
Chris@1 15218 \ esac\
Chris@1 15219 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
Chris@1 15220 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@1 15221 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@1 15222 test 0 -eq $? || _lt_function_replace_fail=:
Chris@1 15223
Chris@1 15224
Chris@1 15225 sed -e '/^func_basename ()$/,/^} # func_basename /c\
Chris@1 15226 func_basename ()\
Chris@1 15227 {\
Chris@1 15228 \ func_basename_result="${1##*/}"\
Chris@1 15229 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
Chris@1 15230 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@1 15231 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@1 15232 test 0 -eq $? || _lt_function_replace_fail=:
Chris@1 15233
Chris@1 15234
Chris@1 15235 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
Chris@1 15236 func_dirname_and_basename ()\
Chris@1 15237 {\
Chris@1 15238 \ case ${1} in\
Chris@1 15239 \ */*) func_dirname_result="${1%/*}${2}" ;;\
Chris@1 15240 \ * ) func_dirname_result="${3}" ;;\
Chris@1 15241 \ esac\
Chris@1 15242 \ func_basename_result="${1##*/}"\
Chris@1 15243 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
Chris@1 15244 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@1 15245 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@1 15246 test 0 -eq $? || _lt_function_replace_fail=:
Chris@1 15247
Chris@1 15248
Chris@1 15249 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
Chris@1 15250 func_stripname ()\
Chris@1 15251 {\
Chris@1 15252 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
Chris@1 15253 \ # positional parameters, so assign one to ordinary parameter first.\
Chris@1 15254 \ func_stripname_result=${3}\
Chris@1 15255 \ func_stripname_result=${func_stripname_result#"${1}"}\
Chris@1 15256 \ func_stripname_result=${func_stripname_result%"${2}"}\
Chris@1 15257 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
Chris@1 15258 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@1 15259 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@1 15260 test 0 -eq $? || _lt_function_replace_fail=:
Chris@1 15261
Chris@1 15262
Chris@1 15263 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
Chris@1 15264 func_split_long_opt ()\
Chris@1 15265 {\
Chris@1 15266 \ func_split_long_opt_name=${1%%=*}\
Chris@1 15267 \ func_split_long_opt_arg=${1#*=}\
Chris@1 15268 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
Chris@1 15269 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@1 15270 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@1 15271 test 0 -eq $? || _lt_function_replace_fail=:
Chris@1 15272
Chris@1 15273
Chris@1 15274 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
Chris@1 15275 func_split_short_opt ()\
Chris@1 15276 {\
Chris@1 15277 \ func_split_short_opt_arg=${1#??}\
Chris@1 15278 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
Chris@1 15279 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
Chris@1 15280 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@1 15281 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@1 15282 test 0 -eq $? || _lt_function_replace_fail=:
Chris@1 15283
Chris@1 15284
Chris@1 15285 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
Chris@1 15286 func_lo2o ()\
Chris@1 15287 {\
Chris@1 15288 \ case ${1} in\
Chris@1 15289 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
Chris@1 15290 \ *) func_lo2o_result=${1} ;;\
Chris@1 15291 \ esac\
Chris@1 15292 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
Chris@1 15293 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@1 15294 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@1 15295 test 0 -eq $? || _lt_function_replace_fail=:
Chris@1 15296
Chris@1 15297
Chris@1 15298 sed -e '/^func_xform ()$/,/^} # func_xform /c\
Chris@1 15299 func_xform ()\
Chris@1 15300 {\
Chris@1 15301 func_xform_result=${1%.*}.lo\
Chris@1 15302 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
Chris@1 15303 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@1 15304 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@1 15305 test 0 -eq $? || _lt_function_replace_fail=:
Chris@1 15306
Chris@1 15307
Chris@1 15308 sed -e '/^func_arith ()$/,/^} # func_arith /c\
Chris@1 15309 func_arith ()\
Chris@1 15310 {\
Chris@1 15311 func_arith_result=$(( $* ))\
Chris@1 15312 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
Chris@1 15313 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@1 15314 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@1 15315 test 0 -eq $? || _lt_function_replace_fail=:
Chris@1 15316
Chris@1 15317
Chris@1 15318 sed -e '/^func_len ()$/,/^} # func_len /c\
Chris@1 15319 func_len ()\
Chris@1 15320 {\
Chris@1 15321 func_len_result=${#1}\
Chris@1 15322 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
Chris@1 15323 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@1 15324 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@1 15325 test 0 -eq $? || _lt_function_replace_fail=:
Chris@1 15326
Chris@1 15327 fi
Chris@1 15328
Chris@1 15329 if test x"$lt_shell_append" = xyes; then
Chris@1 15330 sed -e '/^func_append ()$/,/^} # func_append /c\
Chris@1 15331 func_append ()\
Chris@1 15332 {\
Chris@1 15333 eval "${1}+=\\${2}"\
Chris@1 15334 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
Chris@1 15335 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@1 15336 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@1 15337 test 0 -eq $? || _lt_function_replace_fail=:
Chris@1 15338
Chris@1 15339
Chris@1 15340 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
Chris@1 15341 func_append_quoted ()\
Chris@1 15342 {\
Chris@1 15343 \ func_quote_for_eval "${2}"\
Chris@1 15344 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
Chris@1 15345 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
Chris@1 15346 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@1 15347 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@1 15348 test 0 -eq $? || _lt_function_replace_fail=:
Chris@1 15349
Chris@1 15350
Chris@1 15351 # Save a `func_append' function call where possible by direct use of '+='
Chris@1 15352 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
Chris@1 15353 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@1 15354 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@1 15355 test 0 -eq $? || _lt_function_replace_fail=:
Chris@1 15356 else
Chris@1 15357 # Save a `func_append' function call even when '+=' is not available
Chris@1 15358 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
Chris@1 15359 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@1 15360 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@1 15361 test 0 -eq $? || _lt_function_replace_fail=:
Chris@1 15362 fi
Chris@1 15363
Chris@1 15364 if test x"$_lt_function_replace_fail" = x":"; then
Chris@1 15365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
Chris@1 15366 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
Chris@1 15367 fi
Chris@1 15368
Chris@1 15369
Chris@1 15370 mv -f "$cfgfile" "$ofile" ||
Chris@1 15371 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
Chris@1 15372 chmod +x "$ofile"
Chris@1 15373
Chris@1 15374 ;;
Chris@1 15375
Chris@1 15376 esac
Chris@1 15377 done # for ac_tag
Chris@1 15378
Chris@1 15379
Chris@1 15380 as_fn_exit 0
Chris@1 15381 _ACEOF
Chris@1 15382 ac_clean_files=$ac_clean_files_save
Chris@1 15383
Chris@1 15384 test $ac_write_fail = 0 ||
Chris@1 15385 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Chris@1 15386
Chris@1 15387
Chris@1 15388 # configure is writing to config.log, and then calls config.status.
Chris@1 15389 # config.status does its own redirection, appending to config.log.
Chris@1 15390 # Unfortunately, on DOS this fails, as config.log is still kept open
Chris@1 15391 # by configure, so config.status won't be able to write to it; its
Chris@1 15392 # output is simply discarded. So we exec the FD to /dev/null,
Chris@1 15393 # effectively closing config.log, so it can be properly (re)opened and
Chris@1 15394 # appended to by config.status. When coming back to configure, we
Chris@1 15395 # need to make the FD available again.
Chris@1 15396 if test "$no_create" != yes; then
Chris@1 15397 ac_cs_success=:
Chris@1 15398 ac_config_status_args=
Chris@1 15399 test "$silent" = yes &&
Chris@1 15400 ac_config_status_args="$ac_config_status_args --quiet"
Chris@1 15401 exec 5>/dev/null
Chris@1 15402 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Chris@1 15403 exec 5>>config.log
Chris@1 15404 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
Chris@1 15405 # would make configure fail if this is the last instruction.
Chris@1 15406 $ac_cs_success || as_fn_exit 1
Chris@1 15407 fi
Chris@1 15408 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Chris@1 15409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Chris@1 15410 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Chris@1 15411 fi
Chris@1 15412