annotate src/libogg-1.3.0/configure @ 83:ae30d91d2ffe

Replace these with versions built using an older toolset (so as to avoid ABI compatibilities when linking on Ubuntu 14.04 for packaging purposes)
author Chris Cannam
date Fri, 07 Feb 2020 11:51:13 +0000
parents 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.
Chris@1 4 #
Chris@1 5 #
Chris@1 6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Chris@1 7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
Chris@1 8 # Foundation, Inc.
Chris@1 9 #
Chris@1 10 #
Chris@1 11 # This configure script is free software; the Free Software Foundation
Chris@1 12 # gives unlimited permission to copy, distribute and modify it.
Chris@1 13 ## -------------------- ##
Chris@1 14 ## M4sh Initialization. ##
Chris@1 15 ## -------------------- ##
Chris@1 16
Chris@1 17 # Be more Bourne compatible
Chris@1 18 DUALCASE=1; export DUALCASE # for MKS sh
Chris@1 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Chris@1 20 emulate sh
Chris@1 21 NULLCMD=:
Chris@1 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Chris@1 23 # is contrary to our usage. Disable this feature.
Chris@1 24 alias -g '${1+"$@"}'='"$@"'
Chris@1 25 setopt NO_GLOB_SUBST
Chris@1 26 else
Chris@1 27 case `(set -o) 2>/dev/null` in #(
Chris@1 28 *posix*) :
Chris@1 29 set -o posix ;; #(
Chris@1 30 *) :
Chris@1 31 ;;
Chris@1 32 esac
Chris@1 33 fi
Chris@1 34
Chris@1 35
Chris@1 36 as_nl='
Chris@1 37 '
Chris@1 38 export as_nl
Chris@1 39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
Chris@1 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@1 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@1 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@1 43 # Prefer a ksh shell builtin over an external printf program on Solaris,
Chris@1 44 # but without wasting forks for bash or zsh.
Chris@1 45 if test -z "$BASH_VERSION$ZSH_VERSION" \
Chris@1 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@1 47 as_echo='print -r --'
Chris@1 48 as_echo_n='print -rn --'
Chris@1 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@1 50 as_echo='printf %s\n'
Chris@1 51 as_echo_n='printf %s'
Chris@1 52 else
Chris@1 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
Chris@1 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
Chris@1 55 as_echo_n='/usr/ucb/echo -n'
Chris@1 56 else
Chris@1 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
Chris@1 58 as_echo_n_body='eval
Chris@1 59 arg=$1;
Chris@1 60 case $arg in #(
Chris@1 61 *"$as_nl"*)
Chris@1 62 expr "X$arg" : "X\\(.*\\)$as_nl";
Chris@1 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
Chris@1 64 esac;
Chris@1 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
Chris@1 66 '
Chris@1 67 export as_echo_n_body
Chris@1 68 as_echo_n='sh -c $as_echo_n_body as_echo'
Chris@1 69 fi
Chris@1 70 export as_echo_body
Chris@1 71 as_echo='sh -c $as_echo_body as_echo'
Chris@1 72 fi
Chris@1 73
Chris@1 74 # The user is always right.
Chris@1 75 if test "${PATH_SEPARATOR+set}" != set; then
Chris@1 76 PATH_SEPARATOR=:
Chris@1 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
Chris@1 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
Chris@1 79 PATH_SEPARATOR=';'
Chris@1 80 }
Chris@1 81 fi
Chris@1 82
Chris@1 83
Chris@1 84 # IFS
Chris@1 85 # We need space, tab and new line, in precisely that order. Quoting is
Chris@1 86 # there to prevent editors from complaining about space-tab.
Chris@1 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
Chris@1 88 # splitting by setting IFS to empty value.)
Chris@1 89 IFS=" "" $as_nl"
Chris@1 90
Chris@1 91 # Find who we are. Look in the path if we contain no directory separator.
Chris@1 92 as_myself=
Chris@1 93 case $0 in #((
Chris@1 94 *[\\/]* ) as_myself=$0 ;;
Chris@1 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 96 for as_dir in $PATH
Chris@1 97 do
Chris@1 98 IFS=$as_save_IFS
Chris@1 99 test -z "$as_dir" && as_dir=.
Chris@1 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
Chris@1 101 done
Chris@1 102 IFS=$as_save_IFS
Chris@1 103
Chris@1 104 ;;
Chris@1 105 esac
Chris@1 106 # We did not find ourselves, most probably we were run as `sh COMMAND'
Chris@1 107 # in which case we are not to be found in the path.
Chris@1 108 if test "x$as_myself" = x; then
Chris@1 109 as_myself=$0
Chris@1 110 fi
Chris@1 111 if test ! -f "$as_myself"; then
Chris@1 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Chris@1 113 exit 1
Chris@1 114 fi
Chris@1 115
Chris@1 116 # Unset variables that we do not need and which cause bugs (e.g. in
Chris@1 117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
Chris@1 118 # suppresses any "Segmentation fault" message there. '((' could
Chris@1 119 # trigger a bug in pdksh 5.2.14.
Chris@1 120 for as_var in BASH_ENV ENV MAIL MAILPATH
Chris@1 121 do eval test x\${$as_var+set} = xset \
Chris@1 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Chris@1 123 done
Chris@1 124 PS1='$ '
Chris@1 125 PS2='> '
Chris@1 126 PS4='+ '
Chris@1 127
Chris@1 128 # NLS nuisances.
Chris@1 129 LC_ALL=C
Chris@1 130 export LC_ALL
Chris@1 131 LANGUAGE=C
Chris@1 132 export LANGUAGE
Chris@1 133
Chris@1 134 # CDPATH.
Chris@1 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@1 136
Chris@1 137 if test "x$CONFIG_SHELL" = x; then
Chris@1 138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
Chris@1 139 emulate sh
Chris@1 140 NULLCMD=:
Chris@1 141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
Chris@1 142 # is contrary to our usage. Disable this feature.
Chris@1 143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
Chris@1 144 setopt NO_GLOB_SUBST
Chris@1 145 else
Chris@1 146 case \`(set -o) 2>/dev/null\` in #(
Chris@1 147 *posix*) :
Chris@1 148 set -o posix ;; #(
Chris@1 149 *) :
Chris@1 150 ;;
Chris@1 151 esac
Chris@1 152 fi
Chris@1 153 "
Chris@1 154 as_required="as_fn_return () { (exit \$1); }
Chris@1 155 as_fn_success () { as_fn_return 0; }
Chris@1 156 as_fn_failure () { as_fn_return 1; }
Chris@1 157 as_fn_ret_success () { return 0; }
Chris@1 158 as_fn_ret_failure () { return 1; }
Chris@1 159
Chris@1 160 exitcode=0
Chris@1 161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
Chris@1 162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
Chris@1 163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
Chris@1 164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
Chris@1 165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
Chris@1 166
Chris@1 167 else
Chris@1 168 exitcode=1; echo positional parameters were not saved.
Chris@1 169 fi
Chris@1 170 test x\$exitcode = x0 || exit 1"
Chris@1 171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
Chris@1 172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
Chris@1 173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
Chris@1 174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
Chris@1 175
Chris@1 176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
Chris@1 177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@1 178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
Chris@1 179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
Chris@1 180 PATH=/empty FPATH=/empty; export PATH FPATH
Chris@1 181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
Chris@1 182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
Chris@1 183 test \$(( 1 + 1 )) = 2 || exit 1"
Chris@1 184 if (eval "$as_required") 2>/dev/null; then :
Chris@1 185 as_have_required=yes
Chris@1 186 else
Chris@1 187 as_have_required=no
Chris@1 188 fi
Chris@1 189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
Chris@1 190
Chris@1 191 else
Chris@1 192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 193 as_found=false
Chris@1 194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Chris@1 195 do
Chris@1 196 IFS=$as_save_IFS
Chris@1 197 test -z "$as_dir" && as_dir=.
Chris@1 198 as_found=:
Chris@1 199 case $as_dir in #(
Chris@1 200 /*)
Chris@1 201 for as_base in sh bash ksh sh5; do
Chris@1 202 # Try only shells that exist, to save several forks.
Chris@1 203 as_shell=$as_dir/$as_base
Chris@1 204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
Chris@1 205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
Chris@1 206 CONFIG_SHELL=$as_shell as_have_required=yes
Chris@1 207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
Chris@1 208 break 2
Chris@1 209 fi
Chris@1 210 fi
Chris@1 211 done;;
Chris@1 212 esac
Chris@1 213 as_found=false
Chris@1 214 done
Chris@1 215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
Chris@1 216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
Chris@1 217 CONFIG_SHELL=$SHELL as_have_required=yes
Chris@1 218 fi; }
Chris@1 219 IFS=$as_save_IFS
Chris@1 220
Chris@1 221
Chris@1 222 if test "x$CONFIG_SHELL" != x; then :
Chris@1 223 # We cannot yet assume a decent shell, so we have to provide a
Chris@1 224 # neutralization value for shells without unset; and this also
Chris@1 225 # works around shells that cannot unset nonexistent variables.
Chris@1 226 # Preserve -v and -x to the replacement shell.
Chris@1 227 BASH_ENV=/dev/null
Chris@1 228 ENV=/dev/null
Chris@1 229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
Chris@1 230 export CONFIG_SHELL
Chris@1 231 case $- in # ((((
Chris@1 232 *v*x* | *x*v* ) as_opts=-vx ;;
Chris@1 233 *v* ) as_opts=-v ;;
Chris@1 234 *x* ) as_opts=-x ;;
Chris@1 235 * ) as_opts= ;;
Chris@1 236 esac
Chris@1 237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
Chris@1 238 fi
Chris@1 239
Chris@1 240 if test x$as_have_required = xno; then :
Chris@1 241 $as_echo "$0: This script requires a shell more modern than all"
Chris@1 242 $as_echo "$0: the shells that I found on your system."
Chris@1 243 if test x${ZSH_VERSION+set} = xset ; then
Chris@1 244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
Chris@1 245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
Chris@1 246 else
Chris@1 247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
Chris@1 248 $0: including any error possibly output before this
Chris@1 249 $0: message. Then install a modern shell, or manually run
Chris@1 250 $0: the script under such a shell if you do have one."
Chris@1 251 fi
Chris@1 252 exit 1
Chris@1 253 fi
Chris@1 254 fi
Chris@1 255 fi
Chris@1 256 SHELL=${CONFIG_SHELL-/bin/sh}
Chris@1 257 export SHELL
Chris@1 258 # Unset more variables known to interfere with behavior of common tools.
Chris@1 259 CLICOLOR_FORCE= GREP_OPTIONS=
Chris@1 260 unset CLICOLOR_FORCE GREP_OPTIONS
Chris@1 261
Chris@1 262 ## --------------------- ##
Chris@1 263 ## M4sh Shell Functions. ##
Chris@1 264 ## --------------------- ##
Chris@1 265 # as_fn_unset VAR
Chris@1 266 # ---------------
Chris@1 267 # Portably unset VAR.
Chris@1 268 as_fn_unset ()
Chris@1 269 {
Chris@1 270 { eval $1=; unset $1;}
Chris@1 271 }
Chris@1 272 as_unset=as_fn_unset
Chris@1 273
Chris@1 274 # as_fn_set_status STATUS
Chris@1 275 # -----------------------
Chris@1 276 # Set $? to STATUS, without forking.
Chris@1 277 as_fn_set_status ()
Chris@1 278 {
Chris@1 279 return $1
Chris@1 280 } # as_fn_set_status
Chris@1 281
Chris@1 282 # as_fn_exit STATUS
Chris@1 283 # -----------------
Chris@1 284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
Chris@1 285 as_fn_exit ()
Chris@1 286 {
Chris@1 287 set +e
Chris@1 288 as_fn_set_status $1
Chris@1 289 exit $1
Chris@1 290 } # as_fn_exit
Chris@1 291
Chris@1 292 # as_fn_mkdir_p
Chris@1 293 # -------------
Chris@1 294 # Create "$as_dir" as a directory, including parents if necessary.
Chris@1 295 as_fn_mkdir_p ()
Chris@1 296 {
Chris@1 297
Chris@1 298 case $as_dir in #(
Chris@1 299 -*) as_dir=./$as_dir;;
Chris@1 300 esac
Chris@1 301 test -d "$as_dir" || eval $as_mkdir_p || {
Chris@1 302 as_dirs=
Chris@1 303 while :; do
Chris@1 304 case $as_dir in #(
Chris@1 305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Chris@1 306 *) as_qdir=$as_dir;;
Chris@1 307 esac
Chris@1 308 as_dirs="'$as_qdir' $as_dirs"
Chris@1 309 as_dir=`$as_dirname -- "$as_dir" ||
Chris@1 310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@1 311 X"$as_dir" : 'X\(//\)[^/]' \| \
Chris@1 312 X"$as_dir" : 'X\(//\)$' \| \
Chris@1 313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Chris@1 314 $as_echo X"$as_dir" |
Chris@1 315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@1 316 s//\1/
Chris@1 317 q
Chris@1 318 }
Chris@1 319 /^X\(\/\/\)[^/].*/{
Chris@1 320 s//\1/
Chris@1 321 q
Chris@1 322 }
Chris@1 323 /^X\(\/\/\)$/{
Chris@1 324 s//\1/
Chris@1 325 q
Chris@1 326 }
Chris@1 327 /^X\(\/\).*/{
Chris@1 328 s//\1/
Chris@1 329 q
Chris@1 330 }
Chris@1 331 s/.*/./; q'`
Chris@1 332 test -d "$as_dir" && break
Chris@1 333 done
Chris@1 334 test -z "$as_dirs" || eval "mkdir $as_dirs"
Chris@1 335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Chris@1 336
Chris@1 337
Chris@1 338 } # as_fn_mkdir_p
Chris@1 339 # as_fn_append VAR VALUE
Chris@1 340 # ----------------------
Chris@1 341 # Append the text in VALUE to the end of the definition contained in VAR. Take
Chris@1 342 # advantage of any shell optimizations that allow amortized linear growth over
Chris@1 343 # repeated appends, instead of the typical quadratic growth present in naive
Chris@1 344 # implementations.
Chris@1 345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
Chris@1 346 eval 'as_fn_append ()
Chris@1 347 {
Chris@1 348 eval $1+=\$2
Chris@1 349 }'
Chris@1 350 else
Chris@1 351 as_fn_append ()
Chris@1 352 {
Chris@1 353 eval $1=\$$1\$2
Chris@1 354 }
Chris@1 355 fi # as_fn_append
Chris@1 356
Chris@1 357 # as_fn_arith ARG...
Chris@1 358 # ------------------
Chris@1 359 # Perform arithmetic evaluation on the ARGs, and store the result in the
Chris@1 360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
Chris@1 361 # must be portable across $(()) and expr.
Chris@1 362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
Chris@1 363 eval 'as_fn_arith ()
Chris@1 364 {
Chris@1 365 as_val=$(( $* ))
Chris@1 366 }'
Chris@1 367 else
Chris@1 368 as_fn_arith ()
Chris@1 369 {
Chris@1 370 as_val=`expr "$@" || test $? -eq 1`
Chris@1 371 }
Chris@1 372 fi # as_fn_arith
Chris@1 373
Chris@1 374
Chris@1 375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
Chris@1 376 # ----------------------------------------
Chris@1 377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
Chris@1 378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Chris@1 379 # script with STATUS, using 1 if that was 0.
Chris@1 380 as_fn_error ()
Chris@1 381 {
Chris@1 382 as_status=$1; test $as_status -eq 0 && as_status=1
Chris@1 383 if test "$4"; then
Chris@1 384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@1 385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Chris@1 386 fi
Chris@1 387 $as_echo "$as_me: error: $2" >&2
Chris@1 388 as_fn_exit $as_status
Chris@1 389 } # as_fn_error
Chris@1 390
Chris@1 391 if expr a : '\(a\)' >/dev/null 2>&1 &&
Chris@1 392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Chris@1 393 as_expr=expr
Chris@1 394 else
Chris@1 395 as_expr=false
Chris@1 396 fi
Chris@1 397
Chris@1 398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Chris@1 399 as_basename=basename
Chris@1 400 else
Chris@1 401 as_basename=false
Chris@1 402 fi
Chris@1 403
Chris@1 404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
Chris@1 405 as_dirname=dirname
Chris@1 406 else
Chris@1 407 as_dirname=false
Chris@1 408 fi
Chris@1 409
Chris@1 410 as_me=`$as_basename -- "$0" ||
Chris@1 411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
Chris@1 412 X"$0" : 'X\(//\)$' \| \
Chris@1 413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Chris@1 414 $as_echo X/"$0" |
Chris@1 415 sed '/^.*\/\([^/][^/]*\)\/*$/{
Chris@1 416 s//\1/
Chris@1 417 q
Chris@1 418 }
Chris@1 419 /^X\/\(\/\/\)$/{
Chris@1 420 s//\1/
Chris@1 421 q
Chris@1 422 }
Chris@1 423 /^X\/\(\/\).*/{
Chris@1 424 s//\1/
Chris@1 425 q
Chris@1 426 }
Chris@1 427 s/.*/./; q'`
Chris@1 428
Chris@1 429 # Avoid depending upon Character Ranges.
Chris@1 430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
Chris@1 431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
Chris@1 432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
Chris@1 433 as_cr_digits='0123456789'
Chris@1 434 as_cr_alnum=$as_cr_Letters$as_cr_digits
Chris@1 435
Chris@1 436
Chris@1 437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
Chris@1 438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
Chris@1 439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
Chris@1 440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
Chris@1 441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Chris@1 442 sed -n '
Chris@1 443 p
Chris@1 444 /[$]LINENO/=
Chris@1 445 ' <$as_myself |
Chris@1 446 sed '
Chris@1 447 s/[$]LINENO.*/&-/
Chris@1 448 t lineno
Chris@1 449 b
Chris@1 450 :lineno
Chris@1 451 N
Chris@1 452 :loop
Chris@1 453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Chris@1 454 t loop
Chris@1 455 s/-\n.*//
Chris@1 456 ' >$as_me.lineno &&
Chris@1 457 chmod +x "$as_me.lineno" ||
Chris@1 458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Chris@1 459
Chris@1 460 # Don't try to exec as it changes $[0], causing all sort of problems
Chris@1 461 # (the dirname of $[0] is not the place where we might find the
Chris@1 462 # original and so on. Autoconf is especially sensitive to this).
Chris@1 463 . "./$as_me.lineno"
Chris@1 464 # Exit status is that of the last command.
Chris@1 465 exit
Chris@1 466 }
Chris@1 467
Chris@1 468 ECHO_C= ECHO_N= ECHO_T=
Chris@1 469 case `echo -n x` in #(((((
Chris@1 470 -n*)
Chris@1 471 case `echo 'xy\c'` in
Chris@1 472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Chris@1 473 xy) ECHO_C='\c';;
Chris@1 474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
Chris@1 475 ECHO_T=' ';;
Chris@1 476 esac;;
Chris@1 477 *)
Chris@1 478 ECHO_N='-n';;
Chris@1 479 esac
Chris@1 480
Chris@1 481 rm -f conf$$ conf$$.exe conf$$.file
Chris@1 482 if test -d conf$$.dir; then
Chris@1 483 rm -f conf$$.dir/conf$$.file
Chris@1 484 else
Chris@1 485 rm -f conf$$.dir
Chris@1 486 mkdir conf$$.dir 2>/dev/null
Chris@1 487 fi
Chris@1 488 if (echo >conf$$.file) 2>/dev/null; then
Chris@1 489 if ln -s conf$$.file conf$$ 2>/dev/null; then
Chris@1 490 as_ln_s='ln -s'
Chris@1 491 # ... but there are two gotchas:
Chris@1 492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
Chris@1 493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Chris@1 494 # In both cases, we have to default to `cp -p'.
Chris@1 495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Chris@1 496 as_ln_s='cp -p'
Chris@1 497 elif ln conf$$.file conf$$ 2>/dev/null; then
Chris@1 498 as_ln_s=ln
Chris@1 499 else
Chris@1 500 as_ln_s='cp -p'
Chris@1 501 fi
Chris@1 502 else
Chris@1 503 as_ln_s='cp -p'
Chris@1 504 fi
Chris@1 505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
Chris@1 506 rmdir conf$$.dir 2>/dev/null
Chris@1 507
Chris@1 508 if mkdir -p . 2>/dev/null; then
Chris@1 509 as_mkdir_p='mkdir -p "$as_dir"'
Chris@1 510 else
Chris@1 511 test -d ./-p && rmdir ./-p
Chris@1 512 as_mkdir_p=false
Chris@1 513 fi
Chris@1 514
Chris@1 515 if test -x / >/dev/null 2>&1; then
Chris@1 516 as_test_x='test -x'
Chris@1 517 else
Chris@1 518 if ls -dL / >/dev/null 2>&1; then
Chris@1 519 as_ls_L_option=L
Chris@1 520 else
Chris@1 521 as_ls_L_option=
Chris@1 522 fi
Chris@1 523 as_test_x='
Chris@1 524 eval sh -c '\''
Chris@1 525 if test -d "$1"; then
Chris@1 526 test -d "$1/.";
Chris@1 527 else
Chris@1 528 case $1 in #(
Chris@1 529 -*)set "./$1";;
Chris@1 530 esac;
Chris@1 531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Chris@1 532 ???[sx]*):;;*)false;;esac;fi
Chris@1 533 '\'' sh
Chris@1 534 '
Chris@1 535 fi
Chris@1 536 as_executable_p=$as_test_x
Chris@1 537
Chris@1 538 # Sed expression to map a string onto a valid CPP name.
Chris@1 539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Chris@1 540
Chris@1 541 # Sed expression to map a string onto a valid variable name.
Chris@1 542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Chris@1 543
Chris@1 544 SHELL=${CONFIG_SHELL-/bin/sh}
Chris@1 545
Chris@1 546
Chris@1 547 test -n "$DJDIR" || exec 7<&0 </dev/null
Chris@1 548 exec 6>&1
Chris@1 549
Chris@1 550 # Name of the host.
Chris@1 551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Chris@1 552 # so uname gets run too.
Chris@1 553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@1 554
Chris@1 555 #
Chris@1 556 # Initializations.
Chris@1 557 #
Chris@1 558 ac_default_prefix=/usr/local
Chris@1 559 ac_clean_files=
Chris@1 560 ac_config_libobj_dir=.
Chris@1 561 LIBOBJS=
Chris@1 562 cross_compiling=no
Chris@1 563 subdirs=
Chris@1 564 MFLAGS=
Chris@1 565 MAKEFLAGS=
Chris@1 566
Chris@1 567 # Identity of this package.
Chris@1 568 PACKAGE_NAME=
Chris@1 569 PACKAGE_TARNAME=
Chris@1 570 PACKAGE_VERSION=
Chris@1 571 PACKAGE_STRING=
Chris@1 572 PACKAGE_BUGREPORT=
Chris@1 573 PACKAGE_URL=
Chris@1 574
Chris@1 575 ac_unique_file="src/framing.c"
Chris@1 576 # Factoring default headers for most tests.
Chris@1 577 ac_includes_default="\
Chris@1 578 #include <stdio.h>
Chris@1 579 #ifdef HAVE_SYS_TYPES_H
Chris@1 580 # include <sys/types.h>
Chris@1 581 #endif
Chris@1 582 #ifdef HAVE_SYS_STAT_H
Chris@1 583 # include <sys/stat.h>
Chris@1 584 #endif
Chris@1 585 #ifdef STDC_HEADERS
Chris@1 586 # include <stdlib.h>
Chris@1 587 # include <stddef.h>
Chris@1 588 #else
Chris@1 589 # ifdef HAVE_STDLIB_H
Chris@1 590 # include <stdlib.h>
Chris@1 591 # endif
Chris@1 592 #endif
Chris@1 593 #ifdef HAVE_STRING_H
Chris@1 594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Chris@1 595 # include <memory.h>
Chris@1 596 # endif
Chris@1 597 # include <string.h>
Chris@1 598 #endif
Chris@1 599 #ifdef HAVE_STRINGS_H
Chris@1 600 # include <strings.h>
Chris@1 601 #endif
Chris@1 602 #ifdef HAVE_INTTYPES_H
Chris@1 603 # include <inttypes.h>
Chris@1 604 #endif
Chris@1 605 #ifdef HAVE_STDINT_H
Chris@1 606 # include <stdint.h>
Chris@1 607 #endif
Chris@1 608 #ifdef HAVE_UNISTD_H
Chris@1 609 # include <unistd.h>
Chris@1 610 #endif"
Chris@1 611
Chris@1 612 ac_subst_vars='am__EXEEXT_FALSE
Chris@1 613 am__EXEEXT_TRUE
Chris@1 614 LTLIBOBJS
Chris@1 615 PROFILE
Chris@1 616 DEBUG
Chris@1 617 OPT
Chris@1 618 SIZE64
Chris@1 619 USIZE32
Chris@1 620 SIZE32
Chris@1 621 USIZE16
Chris@1 622 SIZE16
Chris@1 623 INCLUDE_SYS_TYPES_H
Chris@1 624 INCLUDE_STDINT_H
Chris@1 625 INCLUDE_INTTYPES_H
Chris@1 626 LIBTOOL_DEPS
Chris@1 627 LIBOBJS
Chris@1 628 CPP
Chris@1 629 OTOOL64
Chris@1 630 OTOOL
Chris@1 631 LIPO
Chris@1 632 NMEDIT
Chris@1 633 DSYMUTIL
Chris@1 634 MANIFEST_TOOL
Chris@1 635 RANLIB
Chris@1 636 ac_ct_AR
Chris@1 637 AR
Chris@1 638 DLLTOOL
Chris@1 639 OBJDUMP
Chris@1 640 LN_S
Chris@1 641 NM
Chris@1 642 ac_ct_DUMPBIN
Chris@1 643 DUMPBIN
Chris@1 644 LD
Chris@1 645 FGREP
Chris@1 646 EGREP
Chris@1 647 GREP
Chris@1 648 SED
Chris@1 649 host_os
Chris@1 650 host_vendor
Chris@1 651 host_cpu
Chris@1 652 host
Chris@1 653 build_os
Chris@1 654 build_vendor
Chris@1 655 build_cpu
Chris@1 656 build
Chris@1 657 LIBTOOL
Chris@1 658 am__fastdepCC_FALSE
Chris@1 659 am__fastdepCC_TRUE
Chris@1 660 CCDEPMODE
Chris@1 661 AMDEPBACKSLASH
Chris@1 662 AMDEP_FALSE
Chris@1 663 AMDEP_TRUE
Chris@1 664 am__quote
Chris@1 665 am__include
Chris@1 666 DEPDIR
Chris@1 667 OBJEXT
Chris@1 668 EXEEXT
Chris@1 669 ac_ct_CC
Chris@1 670 CPPFLAGS
Chris@1 671 LDFLAGS
Chris@1 672 CFLAGS
Chris@1 673 CC
Chris@1 674 LIB_AGE
Chris@1 675 LIB_REVISION
Chris@1 676 LIB_CURRENT
Chris@1 677 MAINT
Chris@1 678 MAINTAINER_MODE_FALSE
Chris@1 679 MAINTAINER_MODE_TRUE
Chris@1 680 am__untar
Chris@1 681 am__tar
Chris@1 682 AMTAR
Chris@1 683 am__leading_dot
Chris@1 684 SET_MAKE
Chris@1 685 AWK
Chris@1 686 mkdir_p
Chris@1 687 MKDIR_P
Chris@1 688 INSTALL_STRIP_PROGRAM
Chris@1 689 STRIP
Chris@1 690 install_sh
Chris@1 691 MAKEINFO
Chris@1 692 AUTOHEADER
Chris@1 693 AUTOMAKE
Chris@1 694 AUTOCONF
Chris@1 695 ACLOCAL
Chris@1 696 VERSION
Chris@1 697 PACKAGE
Chris@1 698 CYGPATH_W
Chris@1 699 am__isrc
Chris@1 700 INSTALL_DATA
Chris@1 701 INSTALL_SCRIPT
Chris@1 702 INSTALL_PROGRAM
Chris@1 703 target_alias
Chris@1 704 host_alias
Chris@1 705 build_alias
Chris@1 706 LIBS
Chris@1 707 ECHO_T
Chris@1 708 ECHO_N
Chris@1 709 ECHO_C
Chris@1 710 DEFS
Chris@1 711 mandir
Chris@1 712 localedir
Chris@1 713 libdir
Chris@1 714 psdir
Chris@1 715 pdfdir
Chris@1 716 dvidir
Chris@1 717 htmldir
Chris@1 718 infodir
Chris@1 719 docdir
Chris@1 720 oldincludedir
Chris@1 721 includedir
Chris@1 722 localstatedir
Chris@1 723 sharedstatedir
Chris@1 724 sysconfdir
Chris@1 725 datadir
Chris@1 726 datarootdir
Chris@1 727 libexecdir
Chris@1 728 sbindir
Chris@1 729 bindir
Chris@1 730 program_transform_name
Chris@1 731 prefix
Chris@1 732 exec_prefix
Chris@1 733 PACKAGE_URL
Chris@1 734 PACKAGE_BUGREPORT
Chris@1 735 PACKAGE_STRING
Chris@1 736 PACKAGE_VERSION
Chris@1 737 PACKAGE_TARNAME
Chris@1 738 PACKAGE_NAME
Chris@1 739 PATH_SEPARATOR
Chris@1 740 SHELL'
Chris@1 741 ac_subst_files=''
Chris@1 742 ac_user_opts='
Chris@1 743 enable_option_checking
Chris@1 744 enable_maintainer_mode
Chris@1 745 enable_dependency_tracking
Chris@1 746 enable_shared
Chris@1 747 enable_static
Chris@1 748 with_pic
Chris@1 749 enable_fast_install
Chris@1 750 with_gnu_ld
Chris@1 751 with_sysroot
Chris@1 752 enable_libtool_lock
Chris@1 753 '
Chris@1 754 ac_precious_vars='build_alias
Chris@1 755 host_alias
Chris@1 756 target_alias
Chris@1 757 CC
Chris@1 758 CFLAGS
Chris@1 759 LDFLAGS
Chris@1 760 LIBS
Chris@1 761 CPPFLAGS
Chris@1 762 CPP'
Chris@1 763
Chris@1 764
Chris@1 765 # Initialize some variables set by options.
Chris@1 766 ac_init_help=
Chris@1 767 ac_init_version=false
Chris@1 768 ac_unrecognized_opts=
Chris@1 769 ac_unrecognized_sep=
Chris@1 770 # The variables have the same names as the options, with
Chris@1 771 # dashes changed to underlines.
Chris@1 772 cache_file=/dev/null
Chris@1 773 exec_prefix=NONE
Chris@1 774 no_create=
Chris@1 775 no_recursion=
Chris@1 776 prefix=NONE
Chris@1 777 program_prefix=NONE
Chris@1 778 program_suffix=NONE
Chris@1 779 program_transform_name=s,x,x,
Chris@1 780 silent=
Chris@1 781 site=
Chris@1 782 srcdir=
Chris@1 783 verbose=
Chris@1 784 x_includes=NONE
Chris@1 785 x_libraries=NONE
Chris@1 786
Chris@1 787 # Installation directory options.
Chris@1 788 # These are left unexpanded so users can "make install exec_prefix=/foo"
Chris@1 789 # and all the variables that are supposed to be based on exec_prefix
Chris@1 790 # by default will actually change.
Chris@1 791 # Use braces instead of parens because sh, perl, etc. also accept them.
Chris@1 792 # (The list follows the same order as the GNU Coding Standards.)
Chris@1 793 bindir='${exec_prefix}/bin'
Chris@1 794 sbindir='${exec_prefix}/sbin'
Chris@1 795 libexecdir='${exec_prefix}/libexec'
Chris@1 796 datarootdir='${prefix}/share'
Chris@1 797 datadir='${datarootdir}'
Chris@1 798 sysconfdir='${prefix}/etc'
Chris@1 799 sharedstatedir='${prefix}/com'
Chris@1 800 localstatedir='${prefix}/var'
Chris@1 801 includedir='${prefix}/include'
Chris@1 802 oldincludedir='/usr/include'
Chris@1 803 docdir='${datarootdir}/doc/${PACKAGE}'
Chris@1 804 infodir='${datarootdir}/info'
Chris@1 805 htmldir='${docdir}'
Chris@1 806 dvidir='${docdir}'
Chris@1 807 pdfdir='${docdir}'
Chris@1 808 psdir='${docdir}'
Chris@1 809 libdir='${exec_prefix}/lib'
Chris@1 810 localedir='${datarootdir}/locale'
Chris@1 811 mandir='${datarootdir}/man'
Chris@1 812
Chris@1 813 ac_prev=
Chris@1 814 ac_dashdash=
Chris@1 815 for ac_option
Chris@1 816 do
Chris@1 817 # If the previous option needs an argument, assign it.
Chris@1 818 if test -n "$ac_prev"; then
Chris@1 819 eval $ac_prev=\$ac_option
Chris@1 820 ac_prev=
Chris@1 821 continue
Chris@1 822 fi
Chris@1 823
Chris@1 824 case $ac_option in
Chris@1 825 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
Chris@1 826 *=) ac_optarg= ;;
Chris@1 827 *) ac_optarg=yes ;;
Chris@1 828 esac
Chris@1 829
Chris@1 830 # Accept the important Cygnus configure options, so we can diagnose typos.
Chris@1 831
Chris@1 832 case $ac_dashdash$ac_option in
Chris@1 833 --)
Chris@1 834 ac_dashdash=yes ;;
Chris@1 835
Chris@1 836 -bindir | --bindir | --bindi | --bind | --bin | --bi)
Chris@1 837 ac_prev=bindir ;;
Chris@1 838 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Chris@1 839 bindir=$ac_optarg ;;
Chris@1 840
Chris@1 841 -build | --build | --buil | --bui | --bu)
Chris@1 842 ac_prev=build_alias ;;
Chris@1 843 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Chris@1 844 build_alias=$ac_optarg ;;
Chris@1 845
Chris@1 846 -cache-file | --cache-file | --cache-fil | --cache-fi \
Chris@1 847 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
Chris@1 848 ac_prev=cache_file ;;
Chris@1 849 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
Chris@1 850 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Chris@1 851 cache_file=$ac_optarg ;;
Chris@1 852
Chris@1 853 --config-cache | -C)
Chris@1 854 cache_file=config.cache ;;
Chris@1 855
Chris@1 856 -datadir | --datadir | --datadi | --datad)
Chris@1 857 ac_prev=datadir ;;
Chris@1 858 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Chris@1 859 datadir=$ac_optarg ;;
Chris@1 860
Chris@1 861 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
Chris@1 862 | --dataroo | --dataro | --datar)
Chris@1 863 ac_prev=datarootdir ;;
Chris@1 864 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
Chris@1 865 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
Chris@1 866 datarootdir=$ac_optarg ;;
Chris@1 867
Chris@1 868 -disable-* | --disable-*)
Chris@1 869 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Chris@1 870 # Reject names that are not valid shell variable names.
Chris@1 871 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@1 872 as_fn_error $? "invalid feature name: $ac_useropt"
Chris@1 873 ac_useropt_orig=$ac_useropt
Chris@1 874 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@1 875 case $ac_user_opts in
Chris@1 876 *"
Chris@1 877 "enable_$ac_useropt"
Chris@1 878 "*) ;;
Chris@1 879 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
Chris@1 880 ac_unrecognized_sep=', ';;
Chris@1 881 esac
Chris@1 882 eval enable_$ac_useropt=no ;;
Chris@1 883
Chris@1 884 -docdir | --docdir | --docdi | --doc | --do)
Chris@1 885 ac_prev=docdir ;;
Chris@1 886 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
Chris@1 887 docdir=$ac_optarg ;;
Chris@1 888
Chris@1 889 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
Chris@1 890 ac_prev=dvidir ;;
Chris@1 891 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
Chris@1 892 dvidir=$ac_optarg ;;
Chris@1 893
Chris@1 894 -enable-* | --enable-*)
Chris@1 895 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Chris@1 896 # Reject names that are not valid shell variable names.
Chris@1 897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@1 898 as_fn_error $? "invalid feature name: $ac_useropt"
Chris@1 899 ac_useropt_orig=$ac_useropt
Chris@1 900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@1 901 case $ac_user_opts in
Chris@1 902 *"
Chris@1 903 "enable_$ac_useropt"
Chris@1 904 "*) ;;
Chris@1 905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
Chris@1 906 ac_unrecognized_sep=', ';;
Chris@1 907 esac
Chris@1 908 eval enable_$ac_useropt=\$ac_optarg ;;
Chris@1 909
Chris@1 910 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
Chris@1 911 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
Chris@1 912 | --exec | --exe | --ex)
Chris@1 913 ac_prev=exec_prefix ;;
Chris@1 914 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
Chris@1 915 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
Chris@1 916 | --exec=* | --exe=* | --ex=*)
Chris@1 917 exec_prefix=$ac_optarg ;;
Chris@1 918
Chris@1 919 -gas | --gas | --ga | --g)
Chris@1 920 # Obsolete; use --with-gas.
Chris@1 921 with_gas=yes ;;
Chris@1 922
Chris@1 923 -help | --help | --hel | --he | -h)
Chris@1 924 ac_init_help=long ;;
Chris@1 925 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
Chris@1 926 ac_init_help=recursive ;;
Chris@1 927 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
Chris@1 928 ac_init_help=short ;;
Chris@1 929
Chris@1 930 -host | --host | --hos | --ho)
Chris@1 931 ac_prev=host_alias ;;
Chris@1 932 -host=* | --host=* | --hos=* | --ho=*)
Chris@1 933 host_alias=$ac_optarg ;;
Chris@1 934
Chris@1 935 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
Chris@1 936 ac_prev=htmldir ;;
Chris@1 937 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
Chris@1 938 | --ht=*)
Chris@1 939 htmldir=$ac_optarg ;;
Chris@1 940
Chris@1 941 -includedir | --includedir | --includedi | --included | --include \
Chris@1 942 | --includ | --inclu | --incl | --inc)
Chris@1 943 ac_prev=includedir ;;
Chris@1 944 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
Chris@1 945 | --includ=* | --inclu=* | --incl=* | --inc=*)
Chris@1 946 includedir=$ac_optarg ;;
Chris@1 947
Chris@1 948 -infodir | --infodir | --infodi | --infod | --info | --inf)
Chris@1 949 ac_prev=infodir ;;
Chris@1 950 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Chris@1 951 infodir=$ac_optarg ;;
Chris@1 952
Chris@1 953 -libdir | --libdir | --libdi | --libd)
Chris@1 954 ac_prev=libdir ;;
Chris@1 955 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Chris@1 956 libdir=$ac_optarg ;;
Chris@1 957
Chris@1 958 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
Chris@1 959 | --libexe | --libex | --libe)
Chris@1 960 ac_prev=libexecdir ;;
Chris@1 961 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
Chris@1 962 | --libexe=* | --libex=* | --libe=*)
Chris@1 963 libexecdir=$ac_optarg ;;
Chris@1 964
Chris@1 965 -localedir | --localedir | --localedi | --localed | --locale)
Chris@1 966 ac_prev=localedir ;;
Chris@1 967 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
Chris@1 968 localedir=$ac_optarg ;;
Chris@1 969
Chris@1 970 -localstatedir | --localstatedir | --localstatedi | --localstated \
Chris@1 971 | --localstate | --localstat | --localsta | --localst | --locals)
Chris@1 972 ac_prev=localstatedir ;;
Chris@1 973 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Chris@1 974 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Chris@1 975 localstatedir=$ac_optarg ;;
Chris@1 976
Chris@1 977 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
Chris@1 978 ac_prev=mandir ;;
Chris@1 979 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Chris@1 980 mandir=$ac_optarg ;;
Chris@1 981
Chris@1 982 -nfp | --nfp | --nf)
Chris@1 983 # Obsolete; use --without-fp.
Chris@1 984 with_fp=no ;;
Chris@1 985
Chris@1 986 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Chris@1 987 | --no-cr | --no-c | -n)
Chris@1 988 no_create=yes ;;
Chris@1 989
Chris@1 990 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
Chris@1 991 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
Chris@1 992 no_recursion=yes ;;
Chris@1 993
Chris@1 994 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
Chris@1 995 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
Chris@1 996 | --oldin | --oldi | --old | --ol | --o)
Chris@1 997 ac_prev=oldincludedir ;;
Chris@1 998 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
Chris@1 999 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
Chris@1 1000 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Chris@1 1001 oldincludedir=$ac_optarg ;;
Chris@1 1002
Chris@1 1003 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
Chris@1 1004 ac_prev=prefix ;;
Chris@1 1005 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Chris@1 1006 prefix=$ac_optarg ;;
Chris@1 1007
Chris@1 1008 -program-prefix | --program-prefix | --program-prefi | --program-pref \
Chris@1 1009 | --program-pre | --program-pr | --program-p)
Chris@1 1010 ac_prev=program_prefix ;;
Chris@1 1011 -program-prefix=* | --program-prefix=* | --program-prefi=* \
Chris@1 1012 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Chris@1 1013 program_prefix=$ac_optarg ;;
Chris@1 1014
Chris@1 1015 -program-suffix | --program-suffix | --program-suffi | --program-suff \
Chris@1 1016 | --program-suf | --program-su | --program-s)
Chris@1 1017 ac_prev=program_suffix ;;
Chris@1 1018 -program-suffix=* | --program-suffix=* | --program-suffi=* \
Chris@1 1019 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Chris@1 1020 program_suffix=$ac_optarg ;;
Chris@1 1021
Chris@1 1022 -program-transform-name | --program-transform-name \
Chris@1 1023 | --program-transform-nam | --program-transform-na \
Chris@1 1024 | --program-transform-n | --program-transform- \
Chris@1 1025 | --program-transform | --program-transfor \
Chris@1 1026 | --program-transfo | --program-transf \
Chris@1 1027 | --program-trans | --program-tran \
Chris@1 1028 | --progr-tra | --program-tr | --program-t)
Chris@1 1029 ac_prev=program_transform_name ;;
Chris@1 1030 -program-transform-name=* | --program-transform-name=* \
Chris@1 1031 | --program-transform-nam=* | --program-transform-na=* \
Chris@1 1032 | --program-transform-n=* | --program-transform-=* \
Chris@1 1033 | --program-transform=* | --program-transfor=* \
Chris@1 1034 | --program-transfo=* | --program-transf=* \
Chris@1 1035 | --program-trans=* | --program-tran=* \
Chris@1 1036 | --progr-tra=* | --program-tr=* | --program-t=*)
Chris@1 1037 program_transform_name=$ac_optarg ;;
Chris@1 1038
Chris@1 1039 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
Chris@1 1040 ac_prev=pdfdir ;;
Chris@1 1041 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
Chris@1 1042 pdfdir=$ac_optarg ;;
Chris@1 1043
Chris@1 1044 -psdir | --psdir | --psdi | --psd | --ps)
Chris@1 1045 ac_prev=psdir ;;
Chris@1 1046 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
Chris@1 1047 psdir=$ac_optarg ;;
Chris@1 1048
Chris@1 1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@1 1050 | -silent | --silent | --silen | --sile | --sil)
Chris@1 1051 silent=yes ;;
Chris@1 1052
Chris@1 1053 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
Chris@1 1054 ac_prev=sbindir ;;
Chris@1 1055 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
Chris@1 1056 | --sbi=* | --sb=*)
Chris@1 1057 sbindir=$ac_optarg ;;
Chris@1 1058
Chris@1 1059 -sharedstatedir | --sharedstatedir | --sharedstatedi \
Chris@1 1060 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
Chris@1 1061 | --sharedst | --shareds | --shared | --share | --shar \
Chris@1 1062 | --sha | --sh)
Chris@1 1063 ac_prev=sharedstatedir ;;
Chris@1 1064 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
Chris@1 1065 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
Chris@1 1066 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
Chris@1 1067 | --sha=* | --sh=*)
Chris@1 1068 sharedstatedir=$ac_optarg ;;
Chris@1 1069
Chris@1 1070 -site | --site | --sit)
Chris@1 1071 ac_prev=site ;;
Chris@1 1072 -site=* | --site=* | --sit=*)
Chris@1 1073 site=$ac_optarg ;;
Chris@1 1074
Chris@1 1075 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
Chris@1 1076 ac_prev=srcdir ;;
Chris@1 1077 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Chris@1 1078 srcdir=$ac_optarg ;;
Chris@1 1079
Chris@1 1080 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
Chris@1 1081 | --syscon | --sysco | --sysc | --sys | --sy)
Chris@1 1082 ac_prev=sysconfdir ;;
Chris@1 1083 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
Chris@1 1084 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Chris@1 1085 sysconfdir=$ac_optarg ;;
Chris@1 1086
Chris@1 1087 -target | --target | --targe | --targ | --tar | --ta | --t)
Chris@1 1088 ac_prev=target_alias ;;
Chris@1 1089 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Chris@1 1090 target_alias=$ac_optarg ;;
Chris@1 1091
Chris@1 1092 -v | -verbose | --verbose | --verbos | --verbo | --verb)
Chris@1 1093 verbose=yes ;;
Chris@1 1094
Chris@1 1095 -version | --version | --versio | --versi | --vers | -V)
Chris@1 1096 ac_init_version=: ;;
Chris@1 1097
Chris@1 1098 -with-* | --with-*)
Chris@1 1099 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Chris@1 1100 # Reject names that are not valid shell variable names.
Chris@1 1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@1 1102 as_fn_error $? "invalid package name: $ac_useropt"
Chris@1 1103 ac_useropt_orig=$ac_useropt
Chris@1 1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@1 1105 case $ac_user_opts in
Chris@1 1106 *"
Chris@1 1107 "with_$ac_useropt"
Chris@1 1108 "*) ;;
Chris@1 1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
Chris@1 1110 ac_unrecognized_sep=', ';;
Chris@1 1111 esac
Chris@1 1112 eval with_$ac_useropt=\$ac_optarg ;;
Chris@1 1113
Chris@1 1114 -without-* | --without-*)
Chris@1 1115 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Chris@1 1116 # Reject names that are not valid shell variable names.
Chris@1 1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@1 1118 as_fn_error $? "invalid package name: $ac_useropt"
Chris@1 1119 ac_useropt_orig=$ac_useropt
Chris@1 1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@1 1121 case $ac_user_opts in
Chris@1 1122 *"
Chris@1 1123 "with_$ac_useropt"
Chris@1 1124 "*) ;;
Chris@1 1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
Chris@1 1126 ac_unrecognized_sep=', ';;
Chris@1 1127 esac
Chris@1 1128 eval with_$ac_useropt=no ;;
Chris@1 1129
Chris@1 1130 --x)
Chris@1 1131 # Obsolete; use --with-x.
Chris@1 1132 with_x=yes ;;
Chris@1 1133
Chris@1 1134 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
Chris@1 1135 | --x-incl | --x-inc | --x-in | --x-i)
Chris@1 1136 ac_prev=x_includes ;;
Chris@1 1137 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
Chris@1 1138 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Chris@1 1139 x_includes=$ac_optarg ;;
Chris@1 1140
Chris@1 1141 -x-libraries | --x-libraries | --x-librarie | --x-librari \
Chris@1 1142 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
Chris@1 1143 ac_prev=x_libraries ;;
Chris@1 1144 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
Chris@1 1145 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Chris@1 1146 x_libraries=$ac_optarg ;;
Chris@1 1147
Chris@1 1148 -*) as_fn_error $? "unrecognized option: \`$ac_option'
Chris@1 1149 Try \`$0 --help' for more information"
Chris@1 1150 ;;
Chris@1 1151
Chris@1 1152 *=*)
Chris@1 1153 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
Chris@1 1154 # Reject names that are not valid shell variable names.
Chris@1 1155 case $ac_envvar in #(
Chris@1 1156 '' | [0-9]* | *[!_$as_cr_alnum]* )
Chris@1 1157 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Chris@1 1158 esac
Chris@1 1159 eval $ac_envvar=\$ac_optarg
Chris@1 1160 export $ac_envvar ;;
Chris@1 1161
Chris@1 1162 *)
Chris@1 1163 # FIXME: should be removed in autoconf 3.0.
Chris@1 1164 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Chris@1 1165 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Chris@1 1166 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Chris@1 1167 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Chris@1 1168 ;;
Chris@1 1169
Chris@1 1170 esac
Chris@1 1171 done
Chris@1 1172
Chris@1 1173 if test -n "$ac_prev"; then
Chris@1 1174 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Chris@1 1175 as_fn_error $? "missing argument to $ac_option"
Chris@1 1176 fi
Chris@1 1177
Chris@1 1178 if test -n "$ac_unrecognized_opts"; then
Chris@1 1179 case $enable_option_checking in
Chris@1 1180 no) ;;
Chris@1 1181 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Chris@1 1182 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Chris@1 1183 esac
Chris@1 1184 fi
Chris@1 1185
Chris@1 1186 # Check all directory arguments for consistency.
Chris@1 1187 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
Chris@1 1188 datadir sysconfdir sharedstatedir localstatedir includedir \
Chris@1 1189 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Chris@1 1190 libdir localedir mandir
Chris@1 1191 do
Chris@1 1192 eval ac_val=\$$ac_var
Chris@1 1193 # Remove trailing slashes.
Chris@1 1194 case $ac_val in
Chris@1 1195 */ )
Chris@1 1196 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
Chris@1 1197 eval $ac_var=\$ac_val;;
Chris@1 1198 esac
Chris@1 1199 # Be sure to have absolute directory names.
Chris@1 1200 case $ac_val in
Chris@1 1201 [\\/$]* | ?:[\\/]* ) continue;;
Chris@1 1202 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Chris@1 1203 esac
Chris@1 1204 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Chris@1 1205 done
Chris@1 1206
Chris@1 1207 # There might be people who depend on the old broken behavior: `$host'
Chris@1 1208 # used to hold the argument of --host etc.
Chris@1 1209 # FIXME: To remove some day.
Chris@1 1210 build=$build_alias
Chris@1 1211 host=$host_alias
Chris@1 1212 target=$target_alias
Chris@1 1213
Chris@1 1214 # FIXME: To remove some day.
Chris@1 1215 if test "x$host_alias" != x; then
Chris@1 1216 if test "x$build_alias" = x; then
Chris@1 1217 cross_compiling=maybe
Chris@1 1218 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
Chris@1 1219 If a cross compiler is detected then cross compile mode will be used" >&2
Chris@1 1220 elif test "x$build_alias" != "x$host_alias"; then
Chris@1 1221 cross_compiling=yes
Chris@1 1222 fi
Chris@1 1223 fi
Chris@1 1224
Chris@1 1225 ac_tool_prefix=
Chris@1 1226 test -n "$host_alias" && ac_tool_prefix=$host_alias-
Chris@1 1227
Chris@1 1228 test "$silent" = yes && exec 6>/dev/null
Chris@1 1229
Chris@1 1230
Chris@1 1231 ac_pwd=`pwd` && test -n "$ac_pwd" &&
Chris@1 1232 ac_ls_di=`ls -di .` &&
Chris@1 1233 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Chris@1 1234 as_fn_error $? "working directory cannot be determined"
Chris@1 1235 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Chris@1 1236 as_fn_error $? "pwd does not report name of working directory"
Chris@1 1237
Chris@1 1238
Chris@1 1239 # Find the source files, if location was not specified.
Chris@1 1240 if test -z "$srcdir"; then
Chris@1 1241 ac_srcdir_defaulted=yes
Chris@1 1242 # Try the directory containing this script, then the parent directory.
Chris@1 1243 ac_confdir=`$as_dirname -- "$as_myself" ||
Chris@1 1244 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@1 1245 X"$as_myself" : 'X\(//\)[^/]' \| \
Chris@1 1246 X"$as_myself" : 'X\(//\)$' \| \
Chris@1 1247 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
Chris@1 1248 $as_echo X"$as_myself" |
Chris@1 1249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@1 1250 s//\1/
Chris@1 1251 q
Chris@1 1252 }
Chris@1 1253 /^X\(\/\/\)[^/].*/{
Chris@1 1254 s//\1/
Chris@1 1255 q
Chris@1 1256 }
Chris@1 1257 /^X\(\/\/\)$/{
Chris@1 1258 s//\1/
Chris@1 1259 q
Chris@1 1260 }
Chris@1 1261 /^X\(\/\).*/{
Chris@1 1262 s//\1/
Chris@1 1263 q
Chris@1 1264 }
Chris@1 1265 s/.*/./; q'`
Chris@1 1266 srcdir=$ac_confdir
Chris@1 1267 if test ! -r "$srcdir/$ac_unique_file"; then
Chris@1 1268 srcdir=..
Chris@1 1269 fi
Chris@1 1270 else
Chris@1 1271 ac_srcdir_defaulted=no
Chris@1 1272 fi
Chris@1 1273 if test ! -r "$srcdir/$ac_unique_file"; then
Chris@1 1274 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Chris@1 1275 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Chris@1 1276 fi
Chris@1 1277 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
Chris@1 1278 ac_abs_confdir=`(
Chris@1 1279 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Chris@1 1280 pwd)`
Chris@1 1281 # When building in place, set srcdir=.
Chris@1 1282 if test "$ac_abs_confdir" = "$ac_pwd"; then
Chris@1 1283 srcdir=.
Chris@1 1284 fi
Chris@1 1285 # Remove unnecessary trailing slashes from srcdir.
Chris@1 1286 # Double slashes in file names in object file debugging info
Chris@1 1287 # mess up M-x gdb in Emacs.
Chris@1 1288 case $srcdir in
Chris@1 1289 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
Chris@1 1290 esac
Chris@1 1291 for ac_var in $ac_precious_vars; do
Chris@1 1292 eval ac_env_${ac_var}_set=\${${ac_var}+set}
Chris@1 1293 eval ac_env_${ac_var}_value=\$${ac_var}
Chris@1 1294 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
Chris@1 1295 eval ac_cv_env_${ac_var}_value=\$${ac_var}
Chris@1 1296 done
Chris@1 1297
Chris@1 1298 #
Chris@1 1299 # Report the --help message.
Chris@1 1300 #
Chris@1 1301 if test "$ac_init_help" = "long"; then
Chris@1 1302 # Omit some internal or obsolete options to make the list less imposing.
Chris@1 1303 # This message is too long to be a string in the A/UX 3.1 sh.
Chris@1 1304 cat <<_ACEOF
Chris@1 1305 \`configure' configures this package to adapt to many kinds of systems.
Chris@1 1306
Chris@1 1307 Usage: $0 [OPTION]... [VAR=VALUE]...
Chris@1 1308
Chris@1 1309 To assign environment variables (e.g., CC, CFLAGS...), specify them as
Chris@1 1310 VAR=VALUE. See below for descriptions of some of the useful variables.
Chris@1 1311
Chris@1 1312 Defaults for the options are specified in brackets.
Chris@1 1313
Chris@1 1314 Configuration:
Chris@1 1315 -h, --help display this help and exit
Chris@1 1316 --help=short display options specific to this package
Chris@1 1317 --help=recursive display the short help of all the included packages
Chris@1 1318 -V, --version display version information and exit
Chris@1 1319 -q, --quiet, --silent do not print \`checking ...' messages
Chris@1 1320 --cache-file=FILE cache test results in FILE [disabled]
Chris@1 1321 -C, --config-cache alias for \`--cache-file=config.cache'
Chris@1 1322 -n, --no-create do not create output files
Chris@1 1323 --srcdir=DIR find the sources in DIR [configure dir or \`..']
Chris@1 1324
Chris@1 1325 Installation directories:
Chris@1 1326 --prefix=PREFIX install architecture-independent files in PREFIX
Chris@1 1327 [$ac_default_prefix]
Chris@1 1328 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Chris@1 1329 [PREFIX]
Chris@1 1330
Chris@1 1331 By default, \`make install' will install all the files in
Chris@1 1332 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
Chris@1 1333 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
Chris@1 1334 for instance \`--prefix=\$HOME'.
Chris@1 1335
Chris@1 1336 For better control, use the options below.
Chris@1 1337
Chris@1 1338 Fine tuning of the installation directories:
Chris@1 1339 --bindir=DIR user executables [EPREFIX/bin]
Chris@1 1340 --sbindir=DIR system admin executables [EPREFIX/sbin]
Chris@1 1341 --libexecdir=DIR program executables [EPREFIX/libexec]
Chris@1 1342 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
Chris@1 1343 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
Chris@1 1344 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Chris@1 1345 --libdir=DIR object code libraries [EPREFIX/lib]
Chris@1 1346 --includedir=DIR C header files [PREFIX/include]
Chris@1 1347 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Chris@1 1348 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
Chris@1 1349 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
Chris@1 1350 --infodir=DIR info documentation [DATAROOTDIR/info]
Chris@1 1351 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
Chris@1 1352 --mandir=DIR man documentation [DATAROOTDIR/man]
Chris@1 1353 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
Chris@1 1354 --htmldir=DIR html documentation [DOCDIR]
Chris@1 1355 --dvidir=DIR dvi documentation [DOCDIR]
Chris@1 1356 --pdfdir=DIR pdf documentation [DOCDIR]
Chris@1 1357 --psdir=DIR ps documentation [DOCDIR]
Chris@1 1358 _ACEOF
Chris@1 1359
Chris@1 1360 cat <<\_ACEOF
Chris@1 1361
Chris@1 1362 Program names:
Chris@1 1363 --program-prefix=PREFIX prepend PREFIX to installed program names
Chris@1 1364 --program-suffix=SUFFIX append SUFFIX to installed program names
Chris@1 1365 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
Chris@1 1366
Chris@1 1367 System types:
Chris@1 1368 --build=BUILD configure for building on BUILD [guessed]
Chris@1 1369 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Chris@1 1370 _ACEOF
Chris@1 1371 fi
Chris@1 1372
Chris@1 1373 if test -n "$ac_init_help"; then
Chris@1 1374
Chris@1 1375 cat <<\_ACEOF
Chris@1 1376
Chris@1 1377 Optional Features:
Chris@1 1378 --disable-option-checking ignore unrecognized --enable/--with options
Chris@1 1379 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
Chris@1 1380 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Chris@1 1381 --enable-maintainer-mode enable make rules and dependencies not useful
Chris@1 1382 (and sometimes confusing) to the casual installer
Chris@1 1383 --disable-dependency-tracking speeds up one-time build
Chris@1 1384 --enable-dependency-tracking do not reject slow dependency extractors
Chris@1 1385 --enable-shared[=PKGS] build shared libraries [default=yes]
Chris@1 1386 --enable-static[=PKGS] build static libraries [default=yes]
Chris@1 1387 --enable-fast-install[=PKGS]
Chris@1 1388 optimize for fast installation [default=yes]
Chris@1 1389 --disable-libtool-lock avoid locking (might break parallel builds)
Chris@1 1390
Chris@1 1391 Optional Packages:
Chris@1 1392 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
Chris@1 1393 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Chris@1 1394 --with-pic try to use only PIC/non-PIC objects [default=use
Chris@1 1395 both]
Chris@1 1396 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Chris@1 1397 --with-sysroot=DIR Search for dependent libraries within DIR
Chris@1 1398 (or the compiler's sysroot if not specified).
Chris@1 1399
Chris@1 1400 Some influential environment variables:
Chris@1 1401 CC C compiler command
Chris@1 1402 CFLAGS C compiler flags
Chris@1 1403 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
Chris@1 1404 nonstandard directory <lib dir>
Chris@1 1405 LIBS libraries to pass to the linker, e.g. -l<library>
Chris@1 1406 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Chris@1 1407 you have headers in a nonstandard directory <include dir>
Chris@1 1408 CPP C preprocessor
Chris@1 1409
Chris@1 1410 Use these variables to override the choices made by `configure' or to help
Chris@1 1411 it to find libraries and programs with nonstandard names/locations.
Chris@1 1412
Chris@1 1413 Report bugs to the package provider.
Chris@1 1414 _ACEOF
Chris@1 1415 ac_status=$?
Chris@1 1416 fi
Chris@1 1417
Chris@1 1418 if test "$ac_init_help" = "recursive"; then
Chris@1 1419 # If there are subdirs, report their specific --help.
Chris@1 1420 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Chris@1 1421 test -d "$ac_dir" ||
Chris@1 1422 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
Chris@1 1423 continue
Chris@1 1424 ac_builddir=.
Chris@1 1425
Chris@1 1426 case "$ac_dir" in
Chris@1 1427 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@1 1428 *)
Chris@1 1429 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Chris@1 1430 # A ".." for each directory in $ac_dir_suffix.
Chris@1 1431 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Chris@1 1432 case $ac_top_builddir_sub in
Chris@1 1433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@1 1434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
Chris@1 1435 esac ;;
Chris@1 1436 esac
Chris@1 1437 ac_abs_top_builddir=$ac_pwd
Chris@1 1438 ac_abs_builddir=$ac_pwd$ac_dir_suffix
Chris@1 1439 # for backward compatibility:
Chris@1 1440 ac_top_builddir=$ac_top_build_prefix
Chris@1 1441
Chris@1 1442 case $srcdir in
Chris@1 1443 .) # We are building in place.
Chris@1 1444 ac_srcdir=.
Chris@1 1445 ac_top_srcdir=$ac_top_builddir_sub
Chris@1 1446 ac_abs_top_srcdir=$ac_pwd ;;
Chris@1 1447 [\\/]* | ?:[\\/]* ) # Absolute name.
Chris@1 1448 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@1 1449 ac_top_srcdir=$srcdir
Chris@1 1450 ac_abs_top_srcdir=$srcdir ;;
Chris@1 1451 *) # Relative name.
Chris@1 1452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
Chris@1 1453 ac_top_srcdir=$ac_top_build_prefix$srcdir
Chris@1 1454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Chris@1 1455 esac
Chris@1 1456 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Chris@1 1457
Chris@1 1458 cd "$ac_dir" || { ac_status=$?; continue; }
Chris@1 1459 # Check for guested configure.
Chris@1 1460 if test -f "$ac_srcdir/configure.gnu"; then
Chris@1 1461 echo &&
Chris@1 1462 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
Chris@1 1463 elif test -f "$ac_srcdir/configure"; then
Chris@1 1464 echo &&
Chris@1 1465 $SHELL "$ac_srcdir/configure" --help=recursive
Chris@1 1466 else
Chris@1 1467 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Chris@1 1468 fi || ac_status=$?
Chris@1 1469 cd "$ac_pwd" || { ac_status=$?; break; }
Chris@1 1470 done
Chris@1 1471 fi
Chris@1 1472
Chris@1 1473 test -n "$ac_init_help" && exit $ac_status
Chris@1 1474 if $ac_init_version; then
Chris@1 1475 cat <<\_ACEOF
Chris@1 1476 configure
Chris@1 1477 generated by GNU Autoconf 2.68
Chris@1 1478
Chris@1 1479 Copyright (C) 2010 Free Software Foundation, Inc.
Chris@1 1480 This configure script is free software; the Free Software Foundation
Chris@1 1481 gives unlimited permission to copy, distribute and modify it.
Chris@1 1482 _ACEOF
Chris@1 1483 exit
Chris@1 1484 fi
Chris@1 1485
Chris@1 1486 ## ------------------------ ##
Chris@1 1487 ## Autoconf initialization. ##
Chris@1 1488 ## ------------------------ ##
Chris@1 1489
Chris@1 1490 # ac_fn_c_try_compile LINENO
Chris@1 1491 # --------------------------
Chris@1 1492 # Try to compile conftest.$ac_ext, and return whether this succeeded.
Chris@1 1493 ac_fn_c_try_compile ()
Chris@1 1494 {
Chris@1 1495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@1 1496 rm -f conftest.$ac_objext
Chris@1 1497 if { { ac_try="$ac_compile"
Chris@1 1498 case "(($ac_try" in
Chris@1 1499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 1500 *) ac_try_echo=$ac_try;;
Chris@1 1501 esac
Chris@1 1502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 1503 $as_echo "$ac_try_echo"; } >&5
Chris@1 1504 (eval "$ac_compile") 2>conftest.err
Chris@1 1505 ac_status=$?
Chris@1 1506 if test -s conftest.err; then
Chris@1 1507 grep -v '^ *+' conftest.err >conftest.er1
Chris@1 1508 cat conftest.er1 >&5
Chris@1 1509 mv -f conftest.er1 conftest.err
Chris@1 1510 fi
Chris@1 1511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 1512 test $ac_status = 0; } && {
Chris@1 1513 test -z "$ac_c_werror_flag" ||
Chris@1 1514 test ! -s conftest.err
Chris@1 1515 } && test -s conftest.$ac_objext; then :
Chris@1 1516 ac_retval=0
Chris@1 1517 else
Chris@1 1518 $as_echo "$as_me: failed program was:" >&5
Chris@1 1519 sed 's/^/| /' conftest.$ac_ext >&5
Chris@1 1520
Chris@1 1521 ac_retval=1
Chris@1 1522 fi
Chris@1 1523 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@1 1524 as_fn_set_status $ac_retval
Chris@1 1525
Chris@1 1526 } # ac_fn_c_try_compile
Chris@1 1527
Chris@1 1528 # ac_fn_c_try_link LINENO
Chris@1 1529 # -----------------------
Chris@1 1530 # Try to link conftest.$ac_ext, and return whether this succeeded.
Chris@1 1531 ac_fn_c_try_link ()
Chris@1 1532 {
Chris@1 1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@1 1534 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@1 1535 if { { ac_try="$ac_link"
Chris@1 1536 case "(($ac_try" in
Chris@1 1537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 1538 *) ac_try_echo=$ac_try;;
Chris@1 1539 esac
Chris@1 1540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 1541 $as_echo "$ac_try_echo"; } >&5
Chris@1 1542 (eval "$ac_link") 2>conftest.err
Chris@1 1543 ac_status=$?
Chris@1 1544 if test -s conftest.err; then
Chris@1 1545 grep -v '^ *+' conftest.err >conftest.er1
Chris@1 1546 cat conftest.er1 >&5
Chris@1 1547 mv -f conftest.er1 conftest.err
Chris@1 1548 fi
Chris@1 1549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 1550 test $ac_status = 0; } && {
Chris@1 1551 test -z "$ac_c_werror_flag" ||
Chris@1 1552 test ! -s conftest.err
Chris@1 1553 } && test -s conftest$ac_exeext && {
Chris@1 1554 test "$cross_compiling" = yes ||
Chris@1 1555 $as_test_x conftest$ac_exeext
Chris@1 1556 }; then :
Chris@1 1557 ac_retval=0
Chris@1 1558 else
Chris@1 1559 $as_echo "$as_me: failed program was:" >&5
Chris@1 1560 sed 's/^/| /' conftest.$ac_ext >&5
Chris@1 1561
Chris@1 1562 ac_retval=1
Chris@1 1563 fi
Chris@1 1564 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
Chris@1 1565 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
Chris@1 1566 # interfere with the next link command; also delete a directory that is
Chris@1 1567 # left behind by Apple's compiler. We do this before executing the actions.
Chris@1 1568 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris@1 1569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@1 1570 as_fn_set_status $ac_retval
Chris@1 1571
Chris@1 1572 } # ac_fn_c_try_link
Chris@1 1573
Chris@1 1574 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
Chris@1 1575 # -------------------------------------------------------
Chris@1 1576 # Tests whether HEADER exists and can be compiled using the include files in
Chris@1 1577 # INCLUDES, setting the cache variable VAR accordingly.
Chris@1 1578 ac_fn_c_check_header_compile ()
Chris@1 1579 {
Chris@1 1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@1 1581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@1 1582 $as_echo_n "checking for $2... " >&6; }
Chris@1 1583 if eval \${$3+:} false; then :
Chris@1 1584 $as_echo_n "(cached) " >&6
Chris@1 1585 else
Chris@1 1586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 1587 /* end confdefs.h. */
Chris@1 1588 $4
Chris@1 1589 #include <$2>
Chris@1 1590 _ACEOF
Chris@1 1591 if ac_fn_c_try_compile "$LINENO"; then :
Chris@1 1592 eval "$3=yes"
Chris@1 1593 else
Chris@1 1594 eval "$3=no"
Chris@1 1595 fi
Chris@1 1596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@1 1597 fi
Chris@1 1598 eval ac_res=\$$3
Chris@1 1599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@1 1600 $as_echo "$ac_res" >&6; }
Chris@1 1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@1 1602
Chris@1 1603 } # ac_fn_c_check_header_compile
Chris@1 1604
Chris@1 1605 # ac_fn_c_try_cpp LINENO
Chris@1 1606 # ----------------------
Chris@1 1607 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
Chris@1 1608 ac_fn_c_try_cpp ()
Chris@1 1609 {
Chris@1 1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@1 1611 if { { ac_try="$ac_cpp conftest.$ac_ext"
Chris@1 1612 case "(($ac_try" in
Chris@1 1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 1614 *) ac_try_echo=$ac_try;;
Chris@1 1615 esac
Chris@1 1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 1617 $as_echo "$ac_try_echo"; } >&5
Chris@1 1618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
Chris@1 1619 ac_status=$?
Chris@1 1620 if test -s conftest.err; then
Chris@1 1621 grep -v '^ *+' conftest.err >conftest.er1
Chris@1 1622 cat conftest.er1 >&5
Chris@1 1623 mv -f conftest.er1 conftest.err
Chris@1 1624 fi
Chris@1 1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 1626 test $ac_status = 0; } > conftest.i && {
Chris@1 1627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
Chris@1 1628 test ! -s conftest.err
Chris@1 1629 }; then :
Chris@1 1630 ac_retval=0
Chris@1 1631 else
Chris@1 1632 $as_echo "$as_me: failed program was:" >&5
Chris@1 1633 sed 's/^/| /' conftest.$ac_ext >&5
Chris@1 1634
Chris@1 1635 ac_retval=1
Chris@1 1636 fi
Chris@1 1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@1 1638 as_fn_set_status $ac_retval
Chris@1 1639
Chris@1 1640 } # ac_fn_c_try_cpp
Chris@1 1641
Chris@1 1642 # ac_fn_c_try_run LINENO
Chris@1 1643 # ----------------------
Chris@1 1644 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
Chris@1 1645 # that executables *can* be run.
Chris@1 1646 ac_fn_c_try_run ()
Chris@1 1647 {
Chris@1 1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@1 1649 if { { ac_try="$ac_link"
Chris@1 1650 case "(($ac_try" in
Chris@1 1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 1652 *) ac_try_echo=$ac_try;;
Chris@1 1653 esac
Chris@1 1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 1655 $as_echo "$ac_try_echo"; } >&5
Chris@1 1656 (eval "$ac_link") 2>&5
Chris@1 1657 ac_status=$?
Chris@1 1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 1659 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
Chris@1 1660 { { case "(($ac_try" in
Chris@1 1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 1662 *) ac_try_echo=$ac_try;;
Chris@1 1663 esac
Chris@1 1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 1665 $as_echo "$ac_try_echo"; } >&5
Chris@1 1666 (eval "$ac_try") 2>&5
Chris@1 1667 ac_status=$?
Chris@1 1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 1669 test $ac_status = 0; }; }; then :
Chris@1 1670 ac_retval=0
Chris@1 1671 else
Chris@1 1672 $as_echo "$as_me: program exited with status $ac_status" >&5
Chris@1 1673 $as_echo "$as_me: failed program was:" >&5
Chris@1 1674 sed 's/^/| /' conftest.$ac_ext >&5
Chris@1 1675
Chris@1 1676 ac_retval=$ac_status
Chris@1 1677 fi
Chris@1 1678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris@1 1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@1 1680 as_fn_set_status $ac_retval
Chris@1 1681
Chris@1 1682 } # ac_fn_c_try_run
Chris@1 1683
Chris@1 1684 # ac_fn_c_check_func LINENO FUNC VAR
Chris@1 1685 # ----------------------------------
Chris@1 1686 # Tests whether FUNC exists, setting the cache variable VAR accordingly
Chris@1 1687 ac_fn_c_check_func ()
Chris@1 1688 {
Chris@1 1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@1 1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@1 1691 $as_echo_n "checking for $2... " >&6; }
Chris@1 1692 if eval \${$3+:} false; then :
Chris@1 1693 $as_echo_n "(cached) " >&6
Chris@1 1694 else
Chris@1 1695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 1696 /* end confdefs.h. */
Chris@1 1697 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
Chris@1 1698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
Chris@1 1699 #define $2 innocuous_$2
Chris@1 1700
Chris@1 1701 /* System header to define __stub macros and hopefully few prototypes,
Chris@1 1702 which can conflict with char $2 (); below.
Chris@1 1703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@1 1704 <limits.h> exists even on freestanding compilers. */
Chris@1 1705
Chris@1 1706 #ifdef __STDC__
Chris@1 1707 # include <limits.h>
Chris@1 1708 #else
Chris@1 1709 # include <assert.h>
Chris@1 1710 #endif
Chris@1 1711
Chris@1 1712 #undef $2
Chris@1 1713
Chris@1 1714 /* Override any GCC internal prototype to avoid an error.
Chris@1 1715 Use char because int might match the return type of a GCC
Chris@1 1716 builtin and then its argument prototype would still apply. */
Chris@1 1717 #ifdef __cplusplus
Chris@1 1718 extern "C"
Chris@1 1719 #endif
Chris@1 1720 char $2 ();
Chris@1 1721 /* The GNU C library defines this for functions which it implements
Chris@1 1722 to always fail with ENOSYS. Some functions are actually named
Chris@1 1723 something starting with __ and the normal name is an alias. */
Chris@1 1724 #if defined __stub_$2 || defined __stub___$2
Chris@1 1725 choke me
Chris@1 1726 #endif
Chris@1 1727
Chris@1 1728 int
Chris@1 1729 main ()
Chris@1 1730 {
Chris@1 1731 return $2 ();
Chris@1 1732 ;
Chris@1 1733 return 0;
Chris@1 1734 }
Chris@1 1735 _ACEOF
Chris@1 1736 if ac_fn_c_try_link "$LINENO"; then :
Chris@1 1737 eval "$3=yes"
Chris@1 1738 else
Chris@1 1739 eval "$3=no"
Chris@1 1740 fi
Chris@1 1741 rm -f core conftest.err conftest.$ac_objext \
Chris@1 1742 conftest$ac_exeext conftest.$ac_ext
Chris@1 1743 fi
Chris@1 1744 eval ac_res=\$$3
Chris@1 1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@1 1746 $as_echo "$ac_res" >&6; }
Chris@1 1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@1 1748
Chris@1 1749 } # ac_fn_c_check_func
Chris@1 1750
Chris@1 1751 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
Chris@1 1752 # -------------------------------------------------------
Chris@1 1753 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
Chris@1 1754 # the include files in INCLUDES and setting the cache variable VAR
Chris@1 1755 # accordingly.
Chris@1 1756 ac_fn_c_check_header_mongrel ()
Chris@1 1757 {
Chris@1 1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@1 1759 if eval \${$3+:} false; then :
Chris@1 1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@1 1761 $as_echo_n "checking for $2... " >&6; }
Chris@1 1762 if eval \${$3+:} false; then :
Chris@1 1763 $as_echo_n "(cached) " >&6
Chris@1 1764 fi
Chris@1 1765 eval ac_res=\$$3
Chris@1 1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@1 1767 $as_echo "$ac_res" >&6; }
Chris@1 1768 else
Chris@1 1769 # Is the header compilable?
Chris@1 1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
Chris@1 1771 $as_echo_n "checking $2 usability... " >&6; }
Chris@1 1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 1773 /* end confdefs.h. */
Chris@1 1774 $4
Chris@1 1775 #include <$2>
Chris@1 1776 _ACEOF
Chris@1 1777 if ac_fn_c_try_compile "$LINENO"; then :
Chris@1 1778 ac_header_compiler=yes
Chris@1 1779 else
Chris@1 1780 ac_header_compiler=no
Chris@1 1781 fi
Chris@1 1782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@1 1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
Chris@1 1784 $as_echo "$ac_header_compiler" >&6; }
Chris@1 1785
Chris@1 1786 # Is the header present?
Chris@1 1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
Chris@1 1788 $as_echo_n "checking $2 presence... " >&6; }
Chris@1 1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 1790 /* end confdefs.h. */
Chris@1 1791 #include <$2>
Chris@1 1792 _ACEOF
Chris@1 1793 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@1 1794 ac_header_preproc=yes
Chris@1 1795 else
Chris@1 1796 ac_header_preproc=no
Chris@1 1797 fi
Chris@1 1798 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@1 1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
Chris@1 1800 $as_echo "$ac_header_preproc" >&6; }
Chris@1 1801
Chris@1 1802 # So? What about this header?
Chris@1 1803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
Chris@1 1804 yes:no: )
Chris@1 1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
Chris@1 1806 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
Chris@1 1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
Chris@1 1808 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Chris@1 1809 ;;
Chris@1 1810 no:yes:* )
Chris@1 1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
Chris@1 1812 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
Chris@1 1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
Chris@1 1814 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
Chris@1 1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
Chris@1 1816 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
Chris@1 1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
Chris@1 1818 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
Chris@1 1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
Chris@1 1820 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Chris@1 1821 ;;
Chris@1 1822 esac
Chris@1 1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@1 1824 $as_echo_n "checking for $2... " >&6; }
Chris@1 1825 if eval \${$3+:} false; then :
Chris@1 1826 $as_echo_n "(cached) " >&6
Chris@1 1827 else
Chris@1 1828 eval "$3=\$ac_header_compiler"
Chris@1 1829 fi
Chris@1 1830 eval ac_res=\$$3
Chris@1 1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@1 1832 $as_echo "$ac_res" >&6; }
Chris@1 1833 fi
Chris@1 1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@1 1835
Chris@1 1836 } # ac_fn_c_check_header_mongrel
Chris@1 1837
Chris@1 1838 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
Chris@1 1839 # --------------------------------------------
Chris@1 1840 # Tries to find the compile-time value of EXPR in a program that includes
Chris@1 1841 # INCLUDES, setting VAR accordingly. Returns whether the value could be
Chris@1 1842 # computed
Chris@1 1843 ac_fn_c_compute_int ()
Chris@1 1844 {
Chris@1 1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@1 1846 if test "$cross_compiling" = yes; then
Chris@1 1847 # Depending upon the size, compute the lo and hi bounds.
Chris@1 1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 1849 /* end confdefs.h. */
Chris@1 1850 $4
Chris@1 1851 int
Chris@1 1852 main ()
Chris@1 1853 {
Chris@1 1854 static int test_array [1 - 2 * !(($2) >= 0)];
Chris@1 1855 test_array [0] = 0
Chris@1 1856
Chris@1 1857 ;
Chris@1 1858 return 0;
Chris@1 1859 }
Chris@1 1860 _ACEOF
Chris@1 1861 if ac_fn_c_try_compile "$LINENO"; then :
Chris@1 1862 ac_lo=0 ac_mid=0
Chris@1 1863 while :; do
Chris@1 1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 1865 /* end confdefs.h. */
Chris@1 1866 $4
Chris@1 1867 int
Chris@1 1868 main ()
Chris@1 1869 {
Chris@1 1870 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Chris@1 1871 test_array [0] = 0
Chris@1 1872
Chris@1 1873 ;
Chris@1 1874 return 0;
Chris@1 1875 }
Chris@1 1876 _ACEOF
Chris@1 1877 if ac_fn_c_try_compile "$LINENO"; then :
Chris@1 1878 ac_hi=$ac_mid; break
Chris@1 1879 else
Chris@1 1880 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
Chris@1 1881 if test $ac_lo -le $ac_mid; then
Chris@1 1882 ac_lo= ac_hi=
Chris@1 1883 break
Chris@1 1884 fi
Chris@1 1885 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
Chris@1 1886 fi
Chris@1 1887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@1 1888 done
Chris@1 1889 else
Chris@1 1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 1891 /* end confdefs.h. */
Chris@1 1892 $4
Chris@1 1893 int
Chris@1 1894 main ()
Chris@1 1895 {
Chris@1 1896 static int test_array [1 - 2 * !(($2) < 0)];
Chris@1 1897 test_array [0] = 0
Chris@1 1898
Chris@1 1899 ;
Chris@1 1900 return 0;
Chris@1 1901 }
Chris@1 1902 _ACEOF
Chris@1 1903 if ac_fn_c_try_compile "$LINENO"; then :
Chris@1 1904 ac_hi=-1 ac_mid=-1
Chris@1 1905 while :; do
Chris@1 1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 1907 /* end confdefs.h. */
Chris@1 1908 $4
Chris@1 1909 int
Chris@1 1910 main ()
Chris@1 1911 {
Chris@1 1912 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Chris@1 1913 test_array [0] = 0
Chris@1 1914
Chris@1 1915 ;
Chris@1 1916 return 0;
Chris@1 1917 }
Chris@1 1918 _ACEOF
Chris@1 1919 if ac_fn_c_try_compile "$LINENO"; then :
Chris@1 1920 ac_lo=$ac_mid; break
Chris@1 1921 else
Chris@1 1922 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
Chris@1 1923 if test $ac_mid -le $ac_hi; then
Chris@1 1924 ac_lo= ac_hi=
Chris@1 1925 break
Chris@1 1926 fi
Chris@1 1927 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
Chris@1 1928 fi
Chris@1 1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@1 1930 done
Chris@1 1931 else
Chris@1 1932 ac_lo= ac_hi=
Chris@1 1933 fi
Chris@1 1934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@1 1935 fi
Chris@1 1936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@1 1937 # Binary search between lo and hi bounds.
Chris@1 1938 while test "x$ac_lo" != "x$ac_hi"; do
Chris@1 1939 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
Chris@1 1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 1941 /* end confdefs.h. */
Chris@1 1942 $4
Chris@1 1943 int
Chris@1 1944 main ()
Chris@1 1945 {
Chris@1 1946 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Chris@1 1947 test_array [0] = 0
Chris@1 1948
Chris@1 1949 ;
Chris@1 1950 return 0;
Chris@1 1951 }
Chris@1 1952 _ACEOF
Chris@1 1953 if ac_fn_c_try_compile "$LINENO"; then :
Chris@1 1954 ac_hi=$ac_mid
Chris@1 1955 else
Chris@1 1956 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
Chris@1 1957 fi
Chris@1 1958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@1 1959 done
Chris@1 1960 case $ac_lo in #((
Chris@1 1961 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
Chris@1 1962 '') ac_retval=1 ;;
Chris@1 1963 esac
Chris@1 1964 else
Chris@1 1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 1966 /* end confdefs.h. */
Chris@1 1967 $4
Chris@1 1968 static long int longval () { return $2; }
Chris@1 1969 static unsigned long int ulongval () { return $2; }
Chris@1 1970 #include <stdio.h>
Chris@1 1971 #include <stdlib.h>
Chris@1 1972 int
Chris@1 1973 main ()
Chris@1 1974 {
Chris@1 1975
Chris@1 1976 FILE *f = fopen ("conftest.val", "w");
Chris@1 1977 if (! f)
Chris@1 1978 return 1;
Chris@1 1979 if (($2) < 0)
Chris@1 1980 {
Chris@1 1981 long int i = longval ();
Chris@1 1982 if (i != ($2))
Chris@1 1983 return 1;
Chris@1 1984 fprintf (f, "%ld", i);
Chris@1 1985 }
Chris@1 1986 else
Chris@1 1987 {
Chris@1 1988 unsigned long int i = ulongval ();
Chris@1 1989 if (i != ($2))
Chris@1 1990 return 1;
Chris@1 1991 fprintf (f, "%lu", i);
Chris@1 1992 }
Chris@1 1993 /* Do not output a trailing newline, as this causes \r\n confusion
Chris@1 1994 on some platforms. */
Chris@1 1995 return ferror (f) || fclose (f) != 0;
Chris@1 1996
Chris@1 1997 ;
Chris@1 1998 return 0;
Chris@1 1999 }
Chris@1 2000 _ACEOF
Chris@1 2001 if ac_fn_c_try_run "$LINENO"; then :
Chris@1 2002 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
Chris@1 2003 else
Chris@1 2004 ac_retval=1
Chris@1 2005 fi
Chris@1 2006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@1 2007 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@1 2008 rm -f conftest.val
Chris@1 2009
Chris@1 2010 fi
Chris@1 2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@1 2012 as_fn_set_status $ac_retval
Chris@1 2013
Chris@1 2014 } # ac_fn_c_compute_int
Chris@1 2015 cat >config.log <<_ACEOF
Chris@1 2016 This file contains any messages produced by compilers while
Chris@1 2017 running configure, to aid debugging if configure makes a mistake.
Chris@1 2018
Chris@1 2019 It was created by $as_me, which was
Chris@1 2020 generated by GNU Autoconf 2.68. Invocation command line was
Chris@1 2021
Chris@1 2022 $ $0 $@
Chris@1 2023
Chris@1 2024 _ACEOF
Chris@1 2025 exec 5>>config.log
Chris@1 2026 {
Chris@1 2027 cat <<_ASUNAME
Chris@1 2028 ## --------- ##
Chris@1 2029 ## Platform. ##
Chris@1 2030 ## --------- ##
Chris@1 2031
Chris@1 2032 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@1 2033 uname -m = `(uname -m) 2>/dev/null || echo unknown`
Chris@1 2034 uname -r = `(uname -r) 2>/dev/null || echo unknown`
Chris@1 2035 uname -s = `(uname -s) 2>/dev/null || echo unknown`
Chris@1 2036 uname -v = `(uname -v) 2>/dev/null || echo unknown`
Chris@1 2037
Chris@1 2038 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
Chris@1 2039 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
Chris@1 2040
Chris@1 2041 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
Chris@1 2042 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
Chris@1 2043 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Chris@1 2044 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Chris@1 2045 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
Chris@1 2046 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
Chris@1 2047 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
Chris@1 2048
Chris@1 2049 _ASUNAME
Chris@1 2050
Chris@1 2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 2052 for as_dir in $PATH
Chris@1 2053 do
Chris@1 2054 IFS=$as_save_IFS
Chris@1 2055 test -z "$as_dir" && as_dir=.
Chris@1 2056 $as_echo "PATH: $as_dir"
Chris@1 2057 done
Chris@1 2058 IFS=$as_save_IFS
Chris@1 2059
Chris@1 2060 } >&5
Chris@1 2061
Chris@1 2062 cat >&5 <<_ACEOF
Chris@1 2063
Chris@1 2064
Chris@1 2065 ## ----------- ##
Chris@1 2066 ## Core tests. ##
Chris@1 2067 ## ----------- ##
Chris@1 2068
Chris@1 2069 _ACEOF
Chris@1 2070
Chris@1 2071
Chris@1 2072 # Keep a trace of the command line.
Chris@1 2073 # Strip out --no-create and --no-recursion so they do not pile up.
Chris@1 2074 # Strip out --silent because we don't want to record it for future runs.
Chris@1 2075 # Also quote any args containing shell meta-characters.
Chris@1 2076 # Make two passes to allow for proper duplicate-argument suppression.
Chris@1 2077 ac_configure_args=
Chris@1 2078 ac_configure_args0=
Chris@1 2079 ac_configure_args1=
Chris@1 2080 ac_must_keep_next=false
Chris@1 2081 for ac_pass in 1 2
Chris@1 2082 do
Chris@1 2083 for ac_arg
Chris@1 2084 do
Chris@1 2085 case $ac_arg in
Chris@1 2086 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
Chris@1 2087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@1 2088 | -silent | --silent | --silen | --sile | --sil)
Chris@1 2089 continue ;;
Chris@1 2090 *\'*)
Chris@1 2091 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@1 2092 esac
Chris@1 2093 case $ac_pass in
Chris@1 2094 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Chris@1 2095 2)
Chris@1 2096 as_fn_append ac_configure_args1 " '$ac_arg'"
Chris@1 2097 if test $ac_must_keep_next = true; then
Chris@1 2098 ac_must_keep_next=false # Got value, back to normal.
Chris@1 2099 else
Chris@1 2100 case $ac_arg in
Chris@1 2101 *=* | --config-cache | -C | -disable-* | --disable-* \
Chris@1 2102 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
Chris@1 2103 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
Chris@1 2104 | -with-* | --with-* | -without-* | --without-* | --x)
Chris@1 2105 case "$ac_configure_args0 " in
Chris@1 2106 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
Chris@1 2107 esac
Chris@1 2108 ;;
Chris@1 2109 -* ) ac_must_keep_next=true ;;
Chris@1 2110 esac
Chris@1 2111 fi
Chris@1 2112 as_fn_append ac_configure_args " '$ac_arg'"
Chris@1 2113 ;;
Chris@1 2114 esac
Chris@1 2115 done
Chris@1 2116 done
Chris@1 2117 { ac_configure_args0=; unset ac_configure_args0;}
Chris@1 2118 { ac_configure_args1=; unset ac_configure_args1;}
Chris@1 2119
Chris@1 2120 # When interrupted or exit'd, cleanup temporary files, and complete
Chris@1 2121 # config.log. We remove comments because anyway the quotes in there
Chris@1 2122 # would cause problems or look ugly.
Chris@1 2123 # WARNING: Use '\'' to represent an apostrophe within the trap.
Chris@1 2124 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Chris@1 2125 trap 'exit_status=$?
Chris@1 2126 # Save into config.log some information that might help in debugging.
Chris@1 2127 {
Chris@1 2128 echo
Chris@1 2129
Chris@1 2130 $as_echo "## ---------------- ##
Chris@1 2131 ## Cache variables. ##
Chris@1 2132 ## ---------------- ##"
Chris@1 2133 echo
Chris@1 2134 # The following way of writing the cache mishandles newlines in values,
Chris@1 2135 (
Chris@1 2136 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
Chris@1 2137 eval ac_val=\$$ac_var
Chris@1 2138 case $ac_val in #(
Chris@1 2139 *${as_nl}*)
Chris@1 2140 case $ac_var in #(
Chris@1 2141 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Chris@1 2142 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Chris@1 2143 esac
Chris@1 2144 case $ac_var in #(
Chris@1 2145 _ | IFS | as_nl) ;; #(
Chris@1 2146 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Chris@1 2147 *) { eval $ac_var=; unset $ac_var;} ;;
Chris@1 2148 esac ;;
Chris@1 2149 esac
Chris@1 2150 done
Chris@1 2151 (set) 2>&1 |
Chris@1 2152 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
Chris@1 2153 *${as_nl}ac_space=\ *)
Chris@1 2154 sed -n \
Chris@1 2155 "s/'\''/'\''\\\\'\'''\''/g;
Chris@1 2156 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
Chris@1 2157 ;; #(
Chris@1 2158 *)
Chris@1 2159 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Chris@1 2160 ;;
Chris@1 2161 esac |
Chris@1 2162 sort
Chris@1 2163 )
Chris@1 2164 echo
Chris@1 2165
Chris@1 2166 $as_echo "## ----------------- ##
Chris@1 2167 ## Output variables. ##
Chris@1 2168 ## ----------------- ##"
Chris@1 2169 echo
Chris@1 2170 for ac_var in $ac_subst_vars
Chris@1 2171 do
Chris@1 2172 eval ac_val=\$$ac_var
Chris@1 2173 case $ac_val in
Chris@1 2174 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Chris@1 2175 esac
Chris@1 2176 $as_echo "$ac_var='\''$ac_val'\''"
Chris@1 2177 done | sort
Chris@1 2178 echo
Chris@1 2179
Chris@1 2180 if test -n "$ac_subst_files"; then
Chris@1 2181 $as_echo "## ------------------- ##
Chris@1 2182 ## File substitutions. ##
Chris@1 2183 ## ------------------- ##"
Chris@1 2184 echo
Chris@1 2185 for ac_var in $ac_subst_files
Chris@1 2186 do
Chris@1 2187 eval ac_val=\$$ac_var
Chris@1 2188 case $ac_val in
Chris@1 2189 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Chris@1 2190 esac
Chris@1 2191 $as_echo "$ac_var='\''$ac_val'\''"
Chris@1 2192 done | sort
Chris@1 2193 echo
Chris@1 2194 fi
Chris@1 2195
Chris@1 2196 if test -s confdefs.h; then
Chris@1 2197 $as_echo "## ----------- ##
Chris@1 2198 ## confdefs.h. ##
Chris@1 2199 ## ----------- ##"
Chris@1 2200 echo
Chris@1 2201 cat confdefs.h
Chris@1 2202 echo
Chris@1 2203 fi
Chris@1 2204 test "$ac_signal" != 0 &&
Chris@1 2205 $as_echo "$as_me: caught signal $ac_signal"
Chris@1 2206 $as_echo "$as_me: exit $exit_status"
Chris@1 2207 } >&5
Chris@1 2208 rm -f core *.core core.conftest.* &&
Chris@1 2209 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Chris@1 2210 exit $exit_status
Chris@1 2211 ' 0
Chris@1 2212 for ac_signal in 1 2 13 15; do
Chris@1 2213 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Chris@1 2214 done
Chris@1 2215 ac_signal=0
Chris@1 2216
Chris@1 2217 # confdefs.h avoids OS command line length limits that DEFS can exceed.
Chris@1 2218 rm -f -r conftest* confdefs.h
Chris@1 2219
Chris@1 2220 $as_echo "/* confdefs.h */" > confdefs.h
Chris@1 2221
Chris@1 2222 # Predefined preprocessor variables.
Chris@1 2223
Chris@1 2224 cat >>confdefs.h <<_ACEOF
Chris@1 2225 #define PACKAGE_NAME "$PACKAGE_NAME"
Chris@1 2226 _ACEOF
Chris@1 2227
Chris@1 2228 cat >>confdefs.h <<_ACEOF
Chris@1 2229 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
Chris@1 2230 _ACEOF
Chris@1 2231
Chris@1 2232 cat >>confdefs.h <<_ACEOF
Chris@1 2233 #define PACKAGE_VERSION "$PACKAGE_VERSION"
Chris@1 2234 _ACEOF
Chris@1 2235
Chris@1 2236 cat >>confdefs.h <<_ACEOF
Chris@1 2237 #define PACKAGE_STRING "$PACKAGE_STRING"
Chris@1 2238 _ACEOF
Chris@1 2239
Chris@1 2240 cat >>confdefs.h <<_ACEOF
Chris@1 2241 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
Chris@1 2242 _ACEOF
Chris@1 2243
Chris@1 2244 cat >>confdefs.h <<_ACEOF
Chris@1 2245 #define PACKAGE_URL "$PACKAGE_URL"
Chris@1 2246 _ACEOF
Chris@1 2247
Chris@1 2248
Chris@1 2249 # Let the site file select an alternate cache file if it wants to.
Chris@1 2250 # Prefer an explicitly selected file to automatically selected ones.
Chris@1 2251 ac_site_file1=NONE
Chris@1 2252 ac_site_file2=NONE
Chris@1 2253 if test -n "$CONFIG_SITE"; then
Chris@1 2254 # We do not want a PATH search for config.site.
Chris@1 2255 case $CONFIG_SITE in #((
Chris@1 2256 -*) ac_site_file1=./$CONFIG_SITE;;
Chris@1 2257 */*) ac_site_file1=$CONFIG_SITE;;
Chris@1 2258 *) ac_site_file1=./$CONFIG_SITE;;
Chris@1 2259 esac
Chris@1 2260 elif test "x$prefix" != xNONE; then
Chris@1 2261 ac_site_file1=$prefix/share/config.site
Chris@1 2262 ac_site_file2=$prefix/etc/config.site
Chris@1 2263 else
Chris@1 2264 ac_site_file1=$ac_default_prefix/share/config.site
Chris@1 2265 ac_site_file2=$ac_default_prefix/etc/config.site
Chris@1 2266 fi
Chris@1 2267 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Chris@1 2268 do
Chris@1 2269 test "x$ac_site_file" = xNONE && continue
Chris@1 2270 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Chris@1 2271 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Chris@1 2272 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
Chris@1 2273 sed 's/^/| /' "$ac_site_file" >&5
Chris@1 2274 . "$ac_site_file" \
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_fn_error $? "failed to load site script $ac_site_file
Chris@1 2278 See \`config.log' for more details" "$LINENO" 5; }
Chris@1 2279 fi
Chris@1 2280 done
Chris@1 2281
Chris@1 2282 if test -r "$cache_file"; then
Chris@1 2283 # Some versions of bash will fail to source /dev/null (special files
Chris@1 2284 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
Chris@1 2285 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Chris@1 2286 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Chris@1 2287 $as_echo "$as_me: loading cache $cache_file" >&6;}
Chris@1 2288 case $cache_file in
Chris@1 2289 [\\/]* | ?:[\\/]* ) . "$cache_file";;
Chris@1 2290 *) . "./$cache_file";;
Chris@1 2291 esac
Chris@1 2292 fi
Chris@1 2293 else
Chris@1 2294 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Chris@1 2295 $as_echo "$as_me: creating cache $cache_file" >&6;}
Chris@1 2296 >$cache_file
Chris@1 2297 fi
Chris@1 2298
Chris@1 2299 # Check that the precious variables saved in the cache have kept the same
Chris@1 2300 # value.
Chris@1 2301 ac_cache_corrupted=false
Chris@1 2302 for ac_var in $ac_precious_vars; do
Chris@1 2303 eval ac_old_set=\$ac_cv_env_${ac_var}_set
Chris@1 2304 eval ac_new_set=\$ac_env_${ac_var}_set
Chris@1 2305 eval ac_old_val=\$ac_cv_env_${ac_var}_value
Chris@1 2306 eval ac_new_val=\$ac_env_${ac_var}_value
Chris@1 2307 case $ac_old_set,$ac_new_set in
Chris@1 2308 set,)
Chris@1 2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Chris@1 2310 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Chris@1 2311 ac_cache_corrupted=: ;;
Chris@1 2312 ,set)
Chris@1 2313 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
Chris@1 2314 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Chris@1 2315 ac_cache_corrupted=: ;;
Chris@1 2316 ,);;
Chris@1 2317 *)
Chris@1 2318 if test "x$ac_old_val" != "x$ac_new_val"; then
Chris@1 2319 # differences in whitespace do not lead to failure.
Chris@1 2320 ac_old_val_w=`echo x $ac_old_val`
Chris@1 2321 ac_new_val_w=`echo x $ac_new_val`
Chris@1 2322 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Chris@1 2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Chris@1 2324 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Chris@1 2325 ac_cache_corrupted=:
Chris@1 2326 else
Chris@1 2327 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Chris@1 2328 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
Chris@1 2329 eval $ac_var=\$ac_old_val
Chris@1 2330 fi
Chris@1 2331 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Chris@1 2332 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Chris@1 2333 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Chris@1 2334 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Chris@1 2335 fi;;
Chris@1 2336 esac
Chris@1 2337 # Pass precious variables to config.status.
Chris@1 2338 if test "$ac_new_set" = set; then
Chris@1 2339 case $ac_new_val in
Chris@1 2340 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@1 2341 *) ac_arg=$ac_var=$ac_new_val ;;
Chris@1 2342 esac
Chris@1 2343 case " $ac_configure_args " in
Chris@1 2344 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Chris@1 2345 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Chris@1 2346 esac
Chris@1 2347 fi
Chris@1 2348 done
Chris@1 2349 if $ac_cache_corrupted; then
Chris@1 2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@1 2351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@1 2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Chris@1 2353 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Chris@1 2354 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Chris@1 2355 fi
Chris@1 2356 ## -------------------- ##
Chris@1 2357 ## Main body of script. ##
Chris@1 2358 ## -------------------- ##
Chris@1 2359
Chris@1 2360 ac_ext=c
Chris@1 2361 ac_cpp='$CPP $CPPFLAGS'
Chris@1 2362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@1 2363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@1 2364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@1 2365
Chris@1 2366
Chris@1 2367
Chris@1 2368 am__api_version='1.11'
Chris@1 2369
Chris@1 2370 ac_aux_dir=
Chris@1 2371 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Chris@1 2372 if test -f "$ac_dir/install-sh"; then
Chris@1 2373 ac_aux_dir=$ac_dir
Chris@1 2374 ac_install_sh="$ac_aux_dir/install-sh -c"
Chris@1 2375 break
Chris@1 2376 elif test -f "$ac_dir/install.sh"; then
Chris@1 2377 ac_aux_dir=$ac_dir
Chris@1 2378 ac_install_sh="$ac_aux_dir/install.sh -c"
Chris@1 2379 break
Chris@1 2380 elif test -f "$ac_dir/shtool"; then
Chris@1 2381 ac_aux_dir=$ac_dir
Chris@1 2382 ac_install_sh="$ac_aux_dir/shtool install -c"
Chris@1 2383 break
Chris@1 2384 fi
Chris@1 2385 done
Chris@1 2386 if test -z "$ac_aux_dir"; then
Chris@1 2387 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Chris@1 2388 fi
Chris@1 2389
Chris@1 2390 # These three variables are undocumented and unsupported,
Chris@1 2391 # and are intended to be withdrawn in a future Autoconf release.
Chris@1 2392 # They can cause serious problems if a builder's source tree is in a directory
Chris@1 2393 # whose full name contains unusual characters.
Chris@1 2394 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
Chris@1 2395 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
Chris@1 2396 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
Chris@1 2397
Chris@1 2398
Chris@1 2399 # Find a good install program. We prefer a C program (faster),
Chris@1 2400 # so one script is as good as another. But avoid the broken or
Chris@1 2401 # incompatible versions:
Chris@1 2402 # SysV /etc/install, /usr/sbin/install
Chris@1 2403 # SunOS /usr/etc/install
Chris@1 2404 # IRIX /sbin/install
Chris@1 2405 # AIX /bin/install
Chris@1 2406 # AmigaOS /C/install, which installs bootblocks on floppy discs
Chris@1 2407 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Chris@1 2408 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
Chris@1 2409 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Chris@1 2410 # OS/2's system install, which has a completely different semantic
Chris@1 2411 # ./install, which can be erroneously created by make from ./install.sh.
Chris@1 2412 # Reject install programs that cannot install multiple files.
Chris@1 2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Chris@1 2414 $as_echo_n "checking for a BSD-compatible install... " >&6; }
Chris@1 2415 if test -z "$INSTALL"; then
Chris@1 2416 if ${ac_cv_path_install+:} false; then :
Chris@1 2417 $as_echo_n "(cached) " >&6
Chris@1 2418 else
Chris@1 2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 2420 for as_dir in $PATH
Chris@1 2421 do
Chris@1 2422 IFS=$as_save_IFS
Chris@1 2423 test -z "$as_dir" && as_dir=.
Chris@1 2424 # Account for people who put trailing slashes in PATH elements.
Chris@1 2425 case $as_dir/ in #((
Chris@1 2426 ./ | .// | /[cC]/* | \
Chris@1 2427 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Chris@1 2428 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Chris@1 2429 /usr/ucb/* ) ;;
Chris@1 2430 *)
Chris@1 2431 # OSF1 and SCO ODT 3.0 have their own names for install.
Chris@1 2432 # Don't use installbsd from OSF since it installs stuff as root
Chris@1 2433 # by default.
Chris@1 2434 for ac_prog in ginstall scoinst install; do
Chris@1 2435 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 2436 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Chris@1 2437 if test $ac_prog = install &&
Chris@1 2438 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Chris@1 2439 # AIX install. It has an incompatible calling convention.
Chris@1 2440 :
Chris@1 2441 elif test $ac_prog = install &&
Chris@1 2442 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Chris@1 2443 # program-specific install script used by HP pwplus--don't use.
Chris@1 2444 :
Chris@1 2445 else
Chris@1 2446 rm -rf conftest.one conftest.two conftest.dir
Chris@1 2447 echo one > conftest.one
Chris@1 2448 echo two > conftest.two
Chris@1 2449 mkdir conftest.dir
Chris@1 2450 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
Chris@1 2451 test -s conftest.one && test -s conftest.two &&
Chris@1 2452 test -s conftest.dir/conftest.one &&
Chris@1 2453 test -s conftest.dir/conftest.two
Chris@1 2454 then
Chris@1 2455 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
Chris@1 2456 break 3
Chris@1 2457 fi
Chris@1 2458 fi
Chris@1 2459 fi
Chris@1 2460 done
Chris@1 2461 done
Chris@1 2462 ;;
Chris@1 2463 esac
Chris@1 2464
Chris@1 2465 done
Chris@1 2466 IFS=$as_save_IFS
Chris@1 2467
Chris@1 2468 rm -rf conftest.one conftest.two conftest.dir
Chris@1 2469
Chris@1 2470 fi
Chris@1 2471 if test "${ac_cv_path_install+set}" = set; then
Chris@1 2472 INSTALL=$ac_cv_path_install
Chris@1 2473 else
Chris@1 2474 # As a last resort, use the slow shell script. Don't cache a
Chris@1 2475 # value for INSTALL within a source directory, because that will
Chris@1 2476 # break other packages using the cache if that directory is
Chris@1 2477 # removed, or if the value is a relative name.
Chris@1 2478 INSTALL=$ac_install_sh
Chris@1 2479 fi
Chris@1 2480 fi
Chris@1 2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Chris@1 2482 $as_echo "$INSTALL" >&6; }
Chris@1 2483
Chris@1 2484 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
Chris@1 2485 # It thinks the first close brace ends the variable substitution.
Chris@1 2486 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Chris@1 2487
Chris@1 2488 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Chris@1 2489
Chris@1 2490 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Chris@1 2491
Chris@1 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
Chris@1 2493 $as_echo_n "checking whether build environment is sane... " >&6; }
Chris@1 2494 # Just in case
Chris@1 2495 sleep 1
Chris@1 2496 echo timestamp > conftest.file
Chris@1 2497 # Reject unsafe characters in $srcdir or the absolute working directory
Chris@1 2498 # name. Accept space and tab only in the latter.
Chris@1 2499 am_lf='
Chris@1 2500 '
Chris@1 2501 case `pwd` in
Chris@1 2502 *[\\\"\#\$\&\'\`$am_lf]*)
Chris@1 2503 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
Chris@1 2504 esac
Chris@1 2505 case $srcdir in
Chris@1 2506 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Chris@1 2507 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
Chris@1 2508 esac
Chris@1 2509
Chris@1 2510 # Do `set' in a subshell so we don't clobber the current shell's
Chris@1 2511 # arguments. Must try -L first in case configure is actually a
Chris@1 2512 # symlink; some systems play weird games with the mod time of symlinks
Chris@1 2513 # (eg FreeBSD returns the mod time of the symlink's containing
Chris@1 2514 # directory).
Chris@1 2515 if (
Chris@1 2516 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Chris@1 2517 if test "$*" = "X"; then
Chris@1 2518 # -L didn't work.
Chris@1 2519 set X `ls -t "$srcdir/configure" conftest.file`
Chris@1 2520 fi
Chris@1 2521 rm -f conftest.file
Chris@1 2522 if test "$*" != "X $srcdir/configure conftest.file" \
Chris@1 2523 && test "$*" != "X conftest.file $srcdir/configure"; then
Chris@1 2524
Chris@1 2525 # If neither matched, then we have a broken ls. This can happen
Chris@1 2526 # if, for instance, CONFIG_SHELL is bash and it inherits a
Chris@1 2527 # broken ls alias from the environment. This has actually
Chris@1 2528 # happened. Such a system could not be considered "sane".
Chris@1 2529 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
Chris@1 2530 alias in your environment" "$LINENO" 5
Chris@1 2531 fi
Chris@1 2532
Chris@1 2533 test "$2" = conftest.file
Chris@1 2534 )
Chris@1 2535 then
Chris@1 2536 # Ok.
Chris@1 2537 :
Chris@1 2538 else
Chris@1 2539 as_fn_error $? "newly created file is older than distributed files!
Chris@1 2540 Check your system clock" "$LINENO" 5
Chris@1 2541 fi
Chris@1 2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@1 2543 $as_echo "yes" >&6; }
Chris@1 2544 test "$program_prefix" != NONE &&
Chris@1 2545 program_transform_name="s&^&$program_prefix&;$program_transform_name"
Chris@1 2546 # Use a double $ so make ignores it.
Chris@1 2547 test "$program_suffix" != NONE &&
Chris@1 2548 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Chris@1 2549 # Double any \ or $.
Chris@1 2550 # By default was `s,x,x', remove it if useless.
Chris@1 2551 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
Chris@1 2552 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Chris@1 2553
Chris@1 2554 # expand $ac_aux_dir to an absolute path
Chris@1 2555 am_aux_dir=`cd $ac_aux_dir && pwd`
Chris@1 2556
Chris@1 2557 if test x"${MISSING+set}" != xset; then
Chris@1 2558 case $am_aux_dir in
Chris@1 2559 *\ * | *\ *)
Chris@1 2560 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
Chris@1 2561 *)
Chris@1 2562 MISSING="\${SHELL} $am_aux_dir/missing" ;;
Chris@1 2563 esac
Chris@1 2564 fi
Chris@1 2565 # Use eval to expand $SHELL
Chris@1 2566 if eval "$MISSING --run true"; then
Chris@1 2567 am_missing_run="$MISSING --run "
Chris@1 2568 else
Chris@1 2569 am_missing_run=
Chris@1 2570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
Chris@1 2571 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
Chris@1 2572 fi
Chris@1 2573
Chris@1 2574 if test x"${install_sh}" != xset; then
Chris@1 2575 case $am_aux_dir in
Chris@1 2576 *\ * | *\ *)
Chris@1 2577 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
Chris@1 2578 *)
Chris@1 2579 install_sh="\${SHELL} $am_aux_dir/install-sh"
Chris@1 2580 esac
Chris@1 2581 fi
Chris@1 2582
Chris@1 2583 # Installed binaries are usually stripped using `strip' when the user
Chris@1 2584 # run `make install-strip'. However `strip' might not be the right
Chris@1 2585 # tool to use in cross-compilation environments, therefore Automake
Chris@1 2586 # will honor the `STRIP' environment variable to overrule this program.
Chris@1 2587 if test "$cross_compiling" != no; then
Chris@1 2588 if test -n "$ac_tool_prefix"; then
Chris@1 2589 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
Chris@1 2590 set dummy ${ac_tool_prefix}strip; ac_word=$2
Chris@1 2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 2592 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 2593 if ${ac_cv_prog_STRIP+:} false; then :
Chris@1 2594 $as_echo_n "(cached) " >&6
Chris@1 2595 else
Chris@1 2596 if test -n "$STRIP"; then
Chris@1 2597 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
Chris@1 2598 else
Chris@1 2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 2600 for as_dir in $PATH
Chris@1 2601 do
Chris@1 2602 IFS=$as_save_IFS
Chris@1 2603 test -z "$as_dir" && as_dir=.
Chris@1 2604 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 2605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 2606 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Chris@1 2607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 2608 break 2
Chris@1 2609 fi
Chris@1 2610 done
Chris@1 2611 done
Chris@1 2612 IFS=$as_save_IFS
Chris@1 2613
Chris@1 2614 fi
Chris@1 2615 fi
Chris@1 2616 STRIP=$ac_cv_prog_STRIP
Chris@1 2617 if test -n "$STRIP"; then
Chris@1 2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Chris@1 2619 $as_echo "$STRIP" >&6; }
Chris@1 2620 else
Chris@1 2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 2622 $as_echo "no" >&6; }
Chris@1 2623 fi
Chris@1 2624
Chris@1 2625
Chris@1 2626 fi
Chris@1 2627 if test -z "$ac_cv_prog_STRIP"; then
Chris@1 2628 ac_ct_STRIP=$STRIP
Chris@1 2629 # Extract the first word of "strip", so it can be a program name with args.
Chris@1 2630 set dummy strip; ac_word=$2
Chris@1 2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 2632 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 2633 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Chris@1 2634 $as_echo_n "(cached) " >&6
Chris@1 2635 else
Chris@1 2636 if test -n "$ac_ct_STRIP"; then
Chris@1 2637 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Chris@1 2638 else
Chris@1 2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 2640 for as_dir in $PATH
Chris@1 2641 do
Chris@1 2642 IFS=$as_save_IFS
Chris@1 2643 test -z "$as_dir" && as_dir=.
Chris@1 2644 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 2645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 2646 ac_cv_prog_ac_ct_STRIP="strip"
Chris@1 2647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 2648 break 2
Chris@1 2649 fi
Chris@1 2650 done
Chris@1 2651 done
Chris@1 2652 IFS=$as_save_IFS
Chris@1 2653
Chris@1 2654 fi
Chris@1 2655 fi
Chris@1 2656 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
Chris@1 2657 if test -n "$ac_ct_STRIP"; then
Chris@1 2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Chris@1 2659 $as_echo "$ac_ct_STRIP" >&6; }
Chris@1 2660 else
Chris@1 2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 2662 $as_echo "no" >&6; }
Chris@1 2663 fi
Chris@1 2664
Chris@1 2665 if test "x$ac_ct_STRIP" = x; then
Chris@1 2666 STRIP=":"
Chris@1 2667 else
Chris@1 2668 case $cross_compiling:$ac_tool_warned in
Chris@1 2669 yes:)
Chris@1 2670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 2671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 2672 ac_tool_warned=yes ;;
Chris@1 2673 esac
Chris@1 2674 STRIP=$ac_ct_STRIP
Chris@1 2675 fi
Chris@1 2676 else
Chris@1 2677 STRIP="$ac_cv_prog_STRIP"
Chris@1 2678 fi
Chris@1 2679
Chris@1 2680 fi
Chris@1 2681 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
Chris@1 2682
Chris@1 2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
Chris@1 2684 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
Chris@1 2685 if test -z "$MKDIR_P"; then
Chris@1 2686 if ${ac_cv_path_mkdir+:} false; then :
Chris@1 2687 $as_echo_n "(cached) " >&6
Chris@1 2688 else
Chris@1 2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 2690 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
Chris@1 2691 do
Chris@1 2692 IFS=$as_save_IFS
Chris@1 2693 test -z "$as_dir" && as_dir=.
Chris@1 2694 for ac_prog in mkdir gmkdir; do
Chris@1 2695 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 2696 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
Chris@1 2697 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
Chris@1 2698 'mkdir (GNU coreutils) '* | \
Chris@1 2699 'mkdir (coreutils) '* | \
Chris@1 2700 'mkdir (fileutils) '4.1*)
Chris@1 2701 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
Chris@1 2702 break 3;;
Chris@1 2703 esac
Chris@1 2704 done
Chris@1 2705 done
Chris@1 2706 done
Chris@1 2707 IFS=$as_save_IFS
Chris@1 2708
Chris@1 2709 fi
Chris@1 2710
Chris@1 2711 test -d ./--version && rmdir ./--version
Chris@1 2712 if test "${ac_cv_path_mkdir+set}" = set; then
Chris@1 2713 MKDIR_P="$ac_cv_path_mkdir -p"
Chris@1 2714 else
Chris@1 2715 # As a last resort, use the slow shell script. Don't cache a
Chris@1 2716 # value for MKDIR_P within a source directory, because that will
Chris@1 2717 # break other packages using the cache if that directory is
Chris@1 2718 # removed, or if the value is a relative name.
Chris@1 2719 MKDIR_P="$ac_install_sh -d"
Chris@1 2720 fi
Chris@1 2721 fi
Chris@1 2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
Chris@1 2723 $as_echo "$MKDIR_P" >&6; }
Chris@1 2724
Chris@1 2725 mkdir_p="$MKDIR_P"
Chris@1 2726 case $mkdir_p in
Chris@1 2727 [\\/$]* | ?:[\\/]*) ;;
Chris@1 2728 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
Chris@1 2729 esac
Chris@1 2730
Chris@1 2731 for ac_prog in gawk mawk nawk awk
Chris@1 2732 do
Chris@1 2733 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@1 2734 set dummy $ac_prog; ac_word=$2
Chris@1 2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 2736 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 2737 if ${ac_cv_prog_AWK+:} false; then :
Chris@1 2738 $as_echo_n "(cached) " >&6
Chris@1 2739 else
Chris@1 2740 if test -n "$AWK"; then
Chris@1 2741 ac_cv_prog_AWK="$AWK" # Let the user override the test.
Chris@1 2742 else
Chris@1 2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 2744 for as_dir in $PATH
Chris@1 2745 do
Chris@1 2746 IFS=$as_save_IFS
Chris@1 2747 test -z "$as_dir" && as_dir=.
Chris@1 2748 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 2749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 2750 ac_cv_prog_AWK="$ac_prog"
Chris@1 2751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 2752 break 2
Chris@1 2753 fi
Chris@1 2754 done
Chris@1 2755 done
Chris@1 2756 IFS=$as_save_IFS
Chris@1 2757
Chris@1 2758 fi
Chris@1 2759 fi
Chris@1 2760 AWK=$ac_cv_prog_AWK
Chris@1 2761 if test -n "$AWK"; then
Chris@1 2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Chris@1 2763 $as_echo "$AWK" >&6; }
Chris@1 2764 else
Chris@1 2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 2766 $as_echo "no" >&6; }
Chris@1 2767 fi
Chris@1 2768
Chris@1 2769
Chris@1 2770 test -n "$AWK" && break
Chris@1 2771 done
Chris@1 2772
Chris@1 2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Chris@1 2774 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
Chris@1 2775 set x ${MAKE-make}
Chris@1 2776 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Chris@1 2777 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Chris@1 2778 $as_echo_n "(cached) " >&6
Chris@1 2779 else
Chris@1 2780 cat >conftest.make <<\_ACEOF
Chris@1 2781 SHELL = /bin/sh
Chris@1 2782 all:
Chris@1 2783 @echo '@@@%%%=$(MAKE)=@@@%%%'
Chris@1 2784 _ACEOF
Chris@1 2785 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Chris@1 2786 case `${MAKE-make} -f conftest.make 2>/dev/null` in
Chris@1 2787 *@@@%%%=?*=@@@%%%*)
Chris@1 2788 eval ac_cv_prog_make_${ac_make}_set=yes;;
Chris@1 2789 *)
Chris@1 2790 eval ac_cv_prog_make_${ac_make}_set=no;;
Chris@1 2791 esac
Chris@1 2792 rm -f conftest.make
Chris@1 2793 fi
Chris@1 2794 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Chris@1 2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@1 2796 $as_echo "yes" >&6; }
Chris@1 2797 SET_MAKE=
Chris@1 2798 else
Chris@1 2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 2800 $as_echo "no" >&6; }
Chris@1 2801 SET_MAKE="MAKE=${MAKE-make}"
Chris@1 2802 fi
Chris@1 2803
Chris@1 2804 rm -rf .tst 2>/dev/null
Chris@1 2805 mkdir .tst 2>/dev/null
Chris@1 2806 if test -d .tst; then
Chris@1 2807 am__leading_dot=.
Chris@1 2808 else
Chris@1 2809 am__leading_dot=_
Chris@1 2810 fi
Chris@1 2811 rmdir .tst 2>/dev/null
Chris@1 2812
Chris@1 2813 if test "`cd $srcdir && pwd`" != "`pwd`"; then
Chris@1 2814 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
Chris@1 2815 # is not polluted with repeated "-I."
Chris@1 2816 am__isrc=' -I$(srcdir)'
Chris@1 2817 # test to see if srcdir already configured
Chris@1 2818 if test -f $srcdir/config.status; then
Chris@1 2819 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Chris@1 2820 fi
Chris@1 2821 fi
Chris@1 2822
Chris@1 2823 # test whether we have cygpath
Chris@1 2824 if test -z "$CYGPATH_W"; then
Chris@1 2825 if (cygpath --version) >/dev/null 2>/dev/null; then
Chris@1 2826 CYGPATH_W='cygpath -w'
Chris@1 2827 else
Chris@1 2828 CYGPATH_W=echo
Chris@1 2829 fi
Chris@1 2830 fi
Chris@1 2831
Chris@1 2832
Chris@1 2833 # Define the identity of the package.
Chris@1 2834 PACKAGE=libogg
Chris@1 2835 VERSION=1.3.0
Chris@1 2836
Chris@1 2837
Chris@1 2838 cat >>confdefs.h <<_ACEOF
Chris@1 2839 #define PACKAGE "$PACKAGE"
Chris@1 2840 _ACEOF
Chris@1 2841
Chris@1 2842
Chris@1 2843 cat >>confdefs.h <<_ACEOF
Chris@1 2844 #define VERSION "$VERSION"
Chris@1 2845 _ACEOF
Chris@1 2846
Chris@1 2847 # Some tools Automake needs.
Chris@1 2848
Chris@1 2849 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
Chris@1 2850
Chris@1 2851
Chris@1 2852 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
Chris@1 2853
Chris@1 2854
Chris@1 2855 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
Chris@1 2856
Chris@1 2857
Chris@1 2858 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
Chris@1 2859
Chris@1 2860
Chris@1 2861 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
Chris@1 2862
Chris@1 2863 # We need awk for the "check" target. The system "awk" is bad on
Chris@1 2864 # some platforms.
Chris@1 2865 # Always define AMTAR for backward compatibility.
Chris@1 2866
Chris@1 2867 AMTAR=${AMTAR-"${am_missing_run}tar"}
Chris@1 2868
Chris@1 2869 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
Chris@1 2870
Chris@1 2871
Chris@1 2872
Chris@1 2873
Chris@1 2874
Chris@1 2875
Chris@1 2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
Chris@1 2877 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
Chris@1 2878 # Check whether --enable-maintainer-mode was given.
Chris@1 2879 if test "${enable_maintainer_mode+set}" = set; then :
Chris@1 2880 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
Chris@1 2881 else
Chris@1 2882 USE_MAINTAINER_MODE=no
Chris@1 2883 fi
Chris@1 2884
Chris@1 2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
Chris@1 2886 $as_echo "$USE_MAINTAINER_MODE" >&6; }
Chris@1 2887 if test $USE_MAINTAINER_MODE = yes; then
Chris@1 2888 MAINTAINER_MODE_TRUE=
Chris@1 2889 MAINTAINER_MODE_FALSE='#'
Chris@1 2890 else
Chris@1 2891 MAINTAINER_MODE_TRUE='#'
Chris@1 2892 MAINTAINER_MODE_FALSE=
Chris@1 2893 fi
Chris@1 2894
Chris@1 2895 MAINT=$MAINTAINER_MODE_TRUE
Chris@1 2896
Chris@1 2897
Chris@1 2898
Chris@1 2899
Chris@1 2900 LIB_CURRENT=8
Chris@1 2901 LIB_REVISION=0
Chris@1 2902 LIB_AGE=8
Chris@1 2903
Chris@1 2904
Chris@1 2905
Chris@1 2906
Chris@1 2907 ac_ext=c
Chris@1 2908 ac_cpp='$CPP $CPPFLAGS'
Chris@1 2909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@1 2910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@1 2911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@1 2912 if test -n "$ac_tool_prefix"; then
Chris@1 2913 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
Chris@1 2914 set dummy ${ac_tool_prefix}gcc; ac_word=$2
Chris@1 2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 2916 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 2917 if ${ac_cv_prog_CC+:} false; then :
Chris@1 2918 $as_echo_n "(cached) " >&6
Chris@1 2919 else
Chris@1 2920 if test -n "$CC"; then
Chris@1 2921 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@1 2922 else
Chris@1 2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 2924 for as_dir in $PATH
Chris@1 2925 do
Chris@1 2926 IFS=$as_save_IFS
Chris@1 2927 test -z "$as_dir" && as_dir=.
Chris@1 2928 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 2929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 2930 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Chris@1 2931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 2932 break 2
Chris@1 2933 fi
Chris@1 2934 done
Chris@1 2935 done
Chris@1 2936 IFS=$as_save_IFS
Chris@1 2937
Chris@1 2938 fi
Chris@1 2939 fi
Chris@1 2940 CC=$ac_cv_prog_CC
Chris@1 2941 if test -n "$CC"; then
Chris@1 2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@1 2943 $as_echo "$CC" >&6; }
Chris@1 2944 else
Chris@1 2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 2946 $as_echo "no" >&6; }
Chris@1 2947 fi
Chris@1 2948
Chris@1 2949
Chris@1 2950 fi
Chris@1 2951 if test -z "$ac_cv_prog_CC"; then
Chris@1 2952 ac_ct_CC=$CC
Chris@1 2953 # Extract the first word of "gcc", so it can be a program name with args.
Chris@1 2954 set dummy gcc; ac_word=$2
Chris@1 2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 2956 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 2957 if ${ac_cv_prog_ac_ct_CC+:} false; then :
Chris@1 2958 $as_echo_n "(cached) " >&6
Chris@1 2959 else
Chris@1 2960 if test -n "$ac_ct_CC"; then
Chris@1 2961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
Chris@1 2962 else
Chris@1 2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 2964 for as_dir in $PATH
Chris@1 2965 do
Chris@1 2966 IFS=$as_save_IFS
Chris@1 2967 test -z "$as_dir" && as_dir=.
Chris@1 2968 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 2969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 2970 ac_cv_prog_ac_ct_CC="gcc"
Chris@1 2971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 2972 break 2
Chris@1 2973 fi
Chris@1 2974 done
Chris@1 2975 done
Chris@1 2976 IFS=$as_save_IFS
Chris@1 2977
Chris@1 2978 fi
Chris@1 2979 fi
Chris@1 2980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
Chris@1 2981 if test -n "$ac_ct_CC"; then
Chris@1 2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Chris@1 2983 $as_echo "$ac_ct_CC" >&6; }
Chris@1 2984 else
Chris@1 2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 2986 $as_echo "no" >&6; }
Chris@1 2987 fi
Chris@1 2988
Chris@1 2989 if test "x$ac_ct_CC" = x; then
Chris@1 2990 CC=""
Chris@1 2991 else
Chris@1 2992 case $cross_compiling:$ac_tool_warned in
Chris@1 2993 yes:)
Chris@1 2994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 2995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 2996 ac_tool_warned=yes ;;
Chris@1 2997 esac
Chris@1 2998 CC=$ac_ct_CC
Chris@1 2999 fi
Chris@1 3000 else
Chris@1 3001 CC="$ac_cv_prog_CC"
Chris@1 3002 fi
Chris@1 3003
Chris@1 3004 if test -z "$CC"; then
Chris@1 3005 if test -n "$ac_tool_prefix"; then
Chris@1 3006 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Chris@1 3007 set dummy ${ac_tool_prefix}cc; ac_word=$2
Chris@1 3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 3009 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 3010 if ${ac_cv_prog_CC+:} false; then :
Chris@1 3011 $as_echo_n "(cached) " >&6
Chris@1 3012 else
Chris@1 3013 if test -n "$CC"; then
Chris@1 3014 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@1 3015 else
Chris@1 3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 3017 for as_dir in $PATH
Chris@1 3018 do
Chris@1 3019 IFS=$as_save_IFS
Chris@1 3020 test -z "$as_dir" && as_dir=.
Chris@1 3021 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 3022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 3023 ac_cv_prog_CC="${ac_tool_prefix}cc"
Chris@1 3024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 3025 break 2
Chris@1 3026 fi
Chris@1 3027 done
Chris@1 3028 done
Chris@1 3029 IFS=$as_save_IFS
Chris@1 3030
Chris@1 3031 fi
Chris@1 3032 fi
Chris@1 3033 CC=$ac_cv_prog_CC
Chris@1 3034 if test -n "$CC"; then
Chris@1 3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@1 3036 $as_echo "$CC" >&6; }
Chris@1 3037 else
Chris@1 3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 3039 $as_echo "no" >&6; }
Chris@1 3040 fi
Chris@1 3041
Chris@1 3042
Chris@1 3043 fi
Chris@1 3044 fi
Chris@1 3045 if test -z "$CC"; then
Chris@1 3046 # Extract the first word of "cc", so it can be a program name with args.
Chris@1 3047 set dummy cc; ac_word=$2
Chris@1 3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 3049 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 3050 if ${ac_cv_prog_CC+:} false; then :
Chris@1 3051 $as_echo_n "(cached) " >&6
Chris@1 3052 else
Chris@1 3053 if test -n "$CC"; then
Chris@1 3054 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@1 3055 else
Chris@1 3056 ac_prog_rejected=no
Chris@1 3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 3058 for as_dir in $PATH
Chris@1 3059 do
Chris@1 3060 IFS=$as_save_IFS
Chris@1 3061 test -z "$as_dir" && as_dir=.
Chris@1 3062 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 3063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 3064 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
Chris@1 3065 ac_prog_rejected=yes
Chris@1 3066 continue
Chris@1 3067 fi
Chris@1 3068 ac_cv_prog_CC="cc"
Chris@1 3069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 3070 break 2
Chris@1 3071 fi
Chris@1 3072 done
Chris@1 3073 done
Chris@1 3074 IFS=$as_save_IFS
Chris@1 3075
Chris@1 3076 if test $ac_prog_rejected = yes; then
Chris@1 3077 # We found a bogon in the path, so make sure we never use it.
Chris@1 3078 set dummy $ac_cv_prog_CC
Chris@1 3079 shift
Chris@1 3080 if test $# != 0; then
Chris@1 3081 # We chose a different compiler from the bogus one.
Chris@1 3082 # However, it has the same basename, so the bogon will be chosen
Chris@1 3083 # first if we set CC to just the basename; use the full file name.
Chris@1 3084 shift
Chris@1 3085 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Chris@1 3086 fi
Chris@1 3087 fi
Chris@1 3088 fi
Chris@1 3089 fi
Chris@1 3090 CC=$ac_cv_prog_CC
Chris@1 3091 if test -n "$CC"; then
Chris@1 3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@1 3093 $as_echo "$CC" >&6; }
Chris@1 3094 else
Chris@1 3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 3096 $as_echo "no" >&6; }
Chris@1 3097 fi
Chris@1 3098
Chris@1 3099
Chris@1 3100 fi
Chris@1 3101 if test -z "$CC"; then
Chris@1 3102 if test -n "$ac_tool_prefix"; then
Chris@1 3103 for ac_prog in cl.exe
Chris@1 3104 do
Chris@1 3105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@1 3106 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@1 3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 3108 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 3109 if ${ac_cv_prog_CC+:} false; then :
Chris@1 3110 $as_echo_n "(cached) " >&6
Chris@1 3111 else
Chris@1 3112 if test -n "$CC"; then
Chris@1 3113 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@1 3114 else
Chris@1 3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 3116 for as_dir in $PATH
Chris@1 3117 do
Chris@1 3118 IFS=$as_save_IFS
Chris@1 3119 test -z "$as_dir" && as_dir=.
Chris@1 3120 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 3121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 3122 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Chris@1 3123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 3124 break 2
Chris@1 3125 fi
Chris@1 3126 done
Chris@1 3127 done
Chris@1 3128 IFS=$as_save_IFS
Chris@1 3129
Chris@1 3130 fi
Chris@1 3131 fi
Chris@1 3132 CC=$ac_cv_prog_CC
Chris@1 3133 if test -n "$CC"; then
Chris@1 3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@1 3135 $as_echo "$CC" >&6; }
Chris@1 3136 else
Chris@1 3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 3138 $as_echo "no" >&6; }
Chris@1 3139 fi
Chris@1 3140
Chris@1 3141
Chris@1 3142 test -n "$CC" && break
Chris@1 3143 done
Chris@1 3144 fi
Chris@1 3145 if test -z "$CC"; then
Chris@1 3146 ac_ct_CC=$CC
Chris@1 3147 for ac_prog in cl.exe
Chris@1 3148 do
Chris@1 3149 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@1 3150 set dummy $ac_prog; ac_word=$2
Chris@1 3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 3152 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 3153 if ${ac_cv_prog_ac_ct_CC+:} false; then :
Chris@1 3154 $as_echo_n "(cached) " >&6
Chris@1 3155 else
Chris@1 3156 if test -n "$ac_ct_CC"; then
Chris@1 3157 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
Chris@1 3158 else
Chris@1 3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 3160 for as_dir in $PATH
Chris@1 3161 do
Chris@1 3162 IFS=$as_save_IFS
Chris@1 3163 test -z "$as_dir" && as_dir=.
Chris@1 3164 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 3165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 3166 ac_cv_prog_ac_ct_CC="$ac_prog"
Chris@1 3167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 3168 break 2
Chris@1 3169 fi
Chris@1 3170 done
Chris@1 3171 done
Chris@1 3172 IFS=$as_save_IFS
Chris@1 3173
Chris@1 3174 fi
Chris@1 3175 fi
Chris@1 3176 ac_ct_CC=$ac_cv_prog_ac_ct_CC
Chris@1 3177 if test -n "$ac_ct_CC"; then
Chris@1 3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Chris@1 3179 $as_echo "$ac_ct_CC" >&6; }
Chris@1 3180 else
Chris@1 3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 3182 $as_echo "no" >&6; }
Chris@1 3183 fi
Chris@1 3184
Chris@1 3185
Chris@1 3186 test -n "$ac_ct_CC" && break
Chris@1 3187 done
Chris@1 3188
Chris@1 3189 if test "x$ac_ct_CC" = x; then
Chris@1 3190 CC=""
Chris@1 3191 else
Chris@1 3192 case $cross_compiling:$ac_tool_warned in
Chris@1 3193 yes:)
Chris@1 3194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 3195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 3196 ac_tool_warned=yes ;;
Chris@1 3197 esac
Chris@1 3198 CC=$ac_ct_CC
Chris@1 3199 fi
Chris@1 3200 fi
Chris@1 3201
Chris@1 3202 fi
Chris@1 3203
Chris@1 3204
Chris@1 3205 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@1 3206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@1 3207 as_fn_error $? "no acceptable C compiler found in \$PATH
Chris@1 3208 See \`config.log' for more details" "$LINENO" 5; }
Chris@1 3209
Chris@1 3210 # Provide some information about the compiler.
Chris@1 3211 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Chris@1 3212 set X $ac_compile
Chris@1 3213 ac_compiler=$2
Chris@1 3214 for ac_option in --version -v -V -qversion; do
Chris@1 3215 { { ac_try="$ac_compiler $ac_option >&5"
Chris@1 3216 case "(($ac_try" in
Chris@1 3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 3218 *) ac_try_echo=$ac_try;;
Chris@1 3219 esac
Chris@1 3220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 3221 $as_echo "$ac_try_echo"; } >&5
Chris@1 3222 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Chris@1 3223 ac_status=$?
Chris@1 3224 if test -s conftest.err; then
Chris@1 3225 sed '10a\
Chris@1 3226 ... rest of stderr output deleted ...
Chris@1 3227 10q' conftest.err >conftest.er1
Chris@1 3228 cat conftest.er1 >&5
Chris@1 3229 fi
Chris@1 3230 rm -f conftest.er1 conftest.err
Chris@1 3231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 3232 test $ac_status = 0; }
Chris@1 3233 done
Chris@1 3234
Chris@1 3235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 3236 /* end confdefs.h. */
Chris@1 3237
Chris@1 3238 int
Chris@1 3239 main ()
Chris@1 3240 {
Chris@1 3241
Chris@1 3242 ;
Chris@1 3243 return 0;
Chris@1 3244 }
Chris@1 3245 _ACEOF
Chris@1 3246 ac_clean_files_save=$ac_clean_files
Chris@1 3247 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Chris@1 3248 # Try to create an executable without -o first, disregard a.out.
Chris@1 3249 # It will help us diagnose broken compilers, and finding out an intuition
Chris@1 3250 # of exeext.
Chris@1 3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
Chris@1 3252 $as_echo_n "checking whether the C compiler works... " >&6; }
Chris@1 3253 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Chris@1 3254
Chris@1 3255 # The possible output files:
Chris@1 3256 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
Chris@1 3257
Chris@1 3258 ac_rmfiles=
Chris@1 3259 for ac_file in $ac_files
Chris@1 3260 do
Chris@1 3261 case $ac_file in
Chris@1 3262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Chris@1 3263 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
Chris@1 3264 esac
Chris@1 3265 done
Chris@1 3266 rm -f $ac_rmfiles
Chris@1 3267
Chris@1 3268 if { { ac_try="$ac_link_default"
Chris@1 3269 case "(($ac_try" in
Chris@1 3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 3271 *) ac_try_echo=$ac_try;;
Chris@1 3272 esac
Chris@1 3273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 3274 $as_echo "$ac_try_echo"; } >&5
Chris@1 3275 (eval "$ac_link_default") 2>&5
Chris@1 3276 ac_status=$?
Chris@1 3277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 3278 test $ac_status = 0; }; then :
Chris@1 3279 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
Chris@1 3280 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
Chris@1 3281 # in a Makefile. We should not override ac_cv_exeext if it was cached,
Chris@1 3282 # so that the user can short-circuit this test for compilers unknown to
Chris@1 3283 # Autoconf.
Chris@1 3284 for ac_file in $ac_files ''
Chris@1 3285 do
Chris@1 3286 test -f "$ac_file" || continue
Chris@1 3287 case $ac_file in
Chris@1 3288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Chris@1 3289 ;;
Chris@1 3290 [ab].out )
Chris@1 3291 # We found the default executable, but exeext='' is most
Chris@1 3292 # certainly right.
Chris@1 3293 break;;
Chris@1 3294 *.* )
Chris@1 3295 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Chris@1 3296 then :; else
Chris@1 3297 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Chris@1 3298 fi
Chris@1 3299 # We set ac_cv_exeext here because the later test for it is not
Chris@1 3300 # safe: cross compilers may not add the suffix if given an `-o'
Chris@1 3301 # argument, so we may need to know it at that point already.
Chris@1 3302 # Even if this section looks crufty: it has the advantage of
Chris@1 3303 # actually working.
Chris@1 3304 break;;
Chris@1 3305 * )
Chris@1 3306 break;;
Chris@1 3307 esac
Chris@1 3308 done
Chris@1 3309 test "$ac_cv_exeext" = no && ac_cv_exeext=
Chris@1 3310
Chris@1 3311 else
Chris@1 3312 ac_file=''
Chris@1 3313 fi
Chris@1 3314 if test -z "$ac_file"; then :
Chris@1 3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 3316 $as_echo "no" >&6; }
Chris@1 3317 $as_echo "$as_me: failed program was:" >&5
Chris@1 3318 sed 's/^/| /' conftest.$ac_ext >&5
Chris@1 3319
Chris@1 3320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@1 3321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@1 3322 as_fn_error 77 "C compiler cannot create executables
Chris@1 3323 See \`config.log' for more details" "$LINENO" 5; }
Chris@1 3324 else
Chris@1 3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@1 3326 $as_echo "yes" >&6; }
Chris@1 3327 fi
Chris@1 3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
Chris@1 3329 $as_echo_n "checking for C compiler default output file name... " >&6; }
Chris@1 3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
Chris@1 3331 $as_echo "$ac_file" >&6; }
Chris@1 3332 ac_exeext=$ac_cv_exeext
Chris@1 3333
Chris@1 3334 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Chris@1 3335 ac_clean_files=$ac_clean_files_save
Chris@1 3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Chris@1 3337 $as_echo_n "checking for suffix of executables... " >&6; }
Chris@1 3338 if { { ac_try="$ac_link"
Chris@1 3339 case "(($ac_try" in
Chris@1 3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 3341 *) ac_try_echo=$ac_try;;
Chris@1 3342 esac
Chris@1 3343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 3344 $as_echo "$ac_try_echo"; } >&5
Chris@1 3345 (eval "$ac_link") 2>&5
Chris@1 3346 ac_status=$?
Chris@1 3347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 3348 test $ac_status = 0; }; then :
Chris@1 3349 # If both `conftest.exe' and `conftest' are `present' (well, observable)
Chris@1 3350 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
Chris@1 3351 # work properly (i.e., refer to `conftest.exe'), while it won't with
Chris@1 3352 # `rm'.
Chris@1 3353 for ac_file in conftest.exe conftest conftest.*; do
Chris@1 3354 test -f "$ac_file" || continue
Chris@1 3355 case $ac_file in
Chris@1 3356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Chris@1 3357 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Chris@1 3358 break;;
Chris@1 3359 * ) break;;
Chris@1 3360 esac
Chris@1 3361 done
Chris@1 3362 else
Chris@1 3363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@1 3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@1 3365 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
Chris@1 3366 See \`config.log' for more details" "$LINENO" 5; }
Chris@1 3367 fi
Chris@1 3368 rm -f conftest conftest$ac_cv_exeext
Chris@1 3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Chris@1 3370 $as_echo "$ac_cv_exeext" >&6; }
Chris@1 3371
Chris@1 3372 rm -f conftest.$ac_ext
Chris@1 3373 EXEEXT=$ac_cv_exeext
Chris@1 3374 ac_exeext=$EXEEXT
Chris@1 3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 3376 /* end confdefs.h. */
Chris@1 3377 #include <stdio.h>
Chris@1 3378 int
Chris@1 3379 main ()
Chris@1 3380 {
Chris@1 3381 FILE *f = fopen ("conftest.out", "w");
Chris@1 3382 return ferror (f) || fclose (f) != 0;
Chris@1 3383
Chris@1 3384 ;
Chris@1 3385 return 0;
Chris@1 3386 }
Chris@1 3387 _ACEOF
Chris@1 3388 ac_clean_files="$ac_clean_files conftest.out"
Chris@1 3389 # Check that the compiler produces executables we can run. If not, either
Chris@1 3390 # the compiler is broken, or we cross compile.
Chris@1 3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
Chris@1 3392 $as_echo_n "checking whether we are cross compiling... " >&6; }
Chris@1 3393 if test "$cross_compiling" != yes; then
Chris@1 3394 { { ac_try="$ac_link"
Chris@1 3395 case "(($ac_try" in
Chris@1 3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 3397 *) ac_try_echo=$ac_try;;
Chris@1 3398 esac
Chris@1 3399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 3400 $as_echo "$ac_try_echo"; } >&5
Chris@1 3401 (eval "$ac_link") 2>&5
Chris@1 3402 ac_status=$?
Chris@1 3403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 3404 test $ac_status = 0; }
Chris@1 3405 if { ac_try='./conftest$ac_cv_exeext'
Chris@1 3406 { { case "(($ac_try" in
Chris@1 3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 3408 *) ac_try_echo=$ac_try;;
Chris@1 3409 esac
Chris@1 3410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 3411 $as_echo "$ac_try_echo"; } >&5
Chris@1 3412 (eval "$ac_try") 2>&5
Chris@1 3413 ac_status=$?
Chris@1 3414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 3415 test $ac_status = 0; }; }; then
Chris@1 3416 cross_compiling=no
Chris@1 3417 else
Chris@1 3418 if test "$cross_compiling" = maybe; then
Chris@1 3419 cross_compiling=yes
Chris@1 3420 else
Chris@1 3421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@1 3422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@1 3423 as_fn_error $? "cannot run C compiled programs.
Chris@1 3424 If you meant to cross compile, use \`--host'.
Chris@1 3425 See \`config.log' for more details" "$LINENO" 5; }
Chris@1 3426 fi
Chris@1 3427 fi
Chris@1 3428 fi
Chris@1 3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
Chris@1 3430 $as_echo "$cross_compiling" >&6; }
Chris@1 3431
Chris@1 3432 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
Chris@1 3433 ac_clean_files=$ac_clean_files_save
Chris@1 3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Chris@1 3435 $as_echo_n "checking for suffix of object files... " >&6; }
Chris@1 3436 if ${ac_cv_objext+:} false; then :
Chris@1 3437 $as_echo_n "(cached) " >&6
Chris@1 3438 else
Chris@1 3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 3440 /* end confdefs.h. */
Chris@1 3441
Chris@1 3442 int
Chris@1 3443 main ()
Chris@1 3444 {
Chris@1 3445
Chris@1 3446 ;
Chris@1 3447 return 0;
Chris@1 3448 }
Chris@1 3449 _ACEOF
Chris@1 3450 rm -f conftest.o conftest.obj
Chris@1 3451 if { { ac_try="$ac_compile"
Chris@1 3452 case "(($ac_try" in
Chris@1 3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 3454 *) ac_try_echo=$ac_try;;
Chris@1 3455 esac
Chris@1 3456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 3457 $as_echo "$ac_try_echo"; } >&5
Chris@1 3458 (eval "$ac_compile") 2>&5
Chris@1 3459 ac_status=$?
Chris@1 3460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 3461 test $ac_status = 0; }; then :
Chris@1 3462 for ac_file in conftest.o conftest.obj conftest.*; do
Chris@1 3463 test -f "$ac_file" || continue;
Chris@1 3464 case $ac_file in
Chris@1 3465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Chris@1 3466 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
Chris@1 3467 break;;
Chris@1 3468 esac
Chris@1 3469 done
Chris@1 3470 else
Chris@1 3471 $as_echo "$as_me: failed program was:" >&5
Chris@1 3472 sed 's/^/| /' conftest.$ac_ext >&5
Chris@1 3473
Chris@1 3474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@1 3475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@1 3476 as_fn_error $? "cannot compute suffix of object files: cannot compile
Chris@1 3477 See \`config.log' for more details" "$LINENO" 5; }
Chris@1 3478 fi
Chris@1 3479 rm -f conftest.$ac_cv_objext conftest.$ac_ext
Chris@1 3480 fi
Chris@1 3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Chris@1 3482 $as_echo "$ac_cv_objext" >&6; }
Chris@1 3483 OBJEXT=$ac_cv_objext
Chris@1 3484 ac_objext=$OBJEXT
Chris@1 3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Chris@1 3486 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Chris@1 3487 if ${ac_cv_c_compiler_gnu+:} false; then :
Chris@1 3488 $as_echo_n "(cached) " >&6
Chris@1 3489 else
Chris@1 3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 3491 /* end confdefs.h. */
Chris@1 3492
Chris@1 3493 int
Chris@1 3494 main ()
Chris@1 3495 {
Chris@1 3496 #ifndef __GNUC__
Chris@1 3497 choke me
Chris@1 3498 #endif
Chris@1 3499
Chris@1 3500 ;
Chris@1 3501 return 0;
Chris@1 3502 }
Chris@1 3503 _ACEOF
Chris@1 3504 if ac_fn_c_try_compile "$LINENO"; then :
Chris@1 3505 ac_compiler_gnu=yes
Chris@1 3506 else
Chris@1 3507 ac_compiler_gnu=no
Chris@1 3508 fi
Chris@1 3509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@1 3510 ac_cv_c_compiler_gnu=$ac_compiler_gnu
Chris@1 3511
Chris@1 3512 fi
Chris@1 3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Chris@1 3514 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
Chris@1 3515 if test $ac_compiler_gnu = yes; then
Chris@1 3516 GCC=yes
Chris@1 3517 else
Chris@1 3518 GCC=
Chris@1 3519 fi
Chris@1 3520 ac_test_CFLAGS=${CFLAGS+set}
Chris@1 3521 ac_save_CFLAGS=$CFLAGS
Chris@1 3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Chris@1 3523 $as_echo_n "checking whether $CC accepts -g... " >&6; }
Chris@1 3524 if ${ac_cv_prog_cc_g+:} false; then :
Chris@1 3525 $as_echo_n "(cached) " >&6
Chris@1 3526 else
Chris@1 3527 ac_save_c_werror_flag=$ac_c_werror_flag
Chris@1 3528 ac_c_werror_flag=yes
Chris@1 3529 ac_cv_prog_cc_g=no
Chris@1 3530 CFLAGS="-g"
Chris@1 3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 3532 /* end confdefs.h. */
Chris@1 3533
Chris@1 3534 int
Chris@1 3535 main ()
Chris@1 3536 {
Chris@1 3537
Chris@1 3538 ;
Chris@1 3539 return 0;
Chris@1 3540 }
Chris@1 3541 _ACEOF
Chris@1 3542 if ac_fn_c_try_compile "$LINENO"; then :
Chris@1 3543 ac_cv_prog_cc_g=yes
Chris@1 3544 else
Chris@1 3545 CFLAGS=""
Chris@1 3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 3547 /* end confdefs.h. */
Chris@1 3548
Chris@1 3549 int
Chris@1 3550 main ()
Chris@1 3551 {
Chris@1 3552
Chris@1 3553 ;
Chris@1 3554 return 0;
Chris@1 3555 }
Chris@1 3556 _ACEOF
Chris@1 3557 if ac_fn_c_try_compile "$LINENO"; then :
Chris@1 3558
Chris@1 3559 else
Chris@1 3560 ac_c_werror_flag=$ac_save_c_werror_flag
Chris@1 3561 CFLAGS="-g"
Chris@1 3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 3563 /* end confdefs.h. */
Chris@1 3564
Chris@1 3565 int
Chris@1 3566 main ()
Chris@1 3567 {
Chris@1 3568
Chris@1 3569 ;
Chris@1 3570 return 0;
Chris@1 3571 }
Chris@1 3572 _ACEOF
Chris@1 3573 if ac_fn_c_try_compile "$LINENO"; then :
Chris@1 3574 ac_cv_prog_cc_g=yes
Chris@1 3575 fi
Chris@1 3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@1 3577 fi
Chris@1 3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@1 3579 fi
Chris@1 3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@1 3581 ac_c_werror_flag=$ac_save_c_werror_flag
Chris@1 3582 fi
Chris@1 3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Chris@1 3584 $as_echo "$ac_cv_prog_cc_g" >&6; }
Chris@1 3585 if test "$ac_test_CFLAGS" = set; then
Chris@1 3586 CFLAGS=$ac_save_CFLAGS
Chris@1 3587 elif test $ac_cv_prog_cc_g = yes; then
Chris@1 3588 if test "$GCC" = yes; then
Chris@1 3589 CFLAGS="-g -O2"
Chris@1 3590 else
Chris@1 3591 CFLAGS="-g"
Chris@1 3592 fi
Chris@1 3593 else
Chris@1 3594 if test "$GCC" = yes; then
Chris@1 3595 CFLAGS="-O2"
Chris@1 3596 else
Chris@1 3597 CFLAGS=
Chris@1 3598 fi
Chris@1 3599 fi
Chris@1 3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Chris@1 3601 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Chris@1 3602 if ${ac_cv_prog_cc_c89+:} false; then :
Chris@1 3603 $as_echo_n "(cached) " >&6
Chris@1 3604 else
Chris@1 3605 ac_cv_prog_cc_c89=no
Chris@1 3606 ac_save_CC=$CC
Chris@1 3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 3608 /* end confdefs.h. */
Chris@1 3609 #include <stdarg.h>
Chris@1 3610 #include <stdio.h>
Chris@1 3611 #include <sys/types.h>
Chris@1 3612 #include <sys/stat.h>
Chris@1 3613 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
Chris@1 3614 struct buf { int x; };
Chris@1 3615 FILE * (*rcsopen) (struct buf *, struct stat *, int);
Chris@1 3616 static char *e (p, i)
Chris@1 3617 char **p;
Chris@1 3618 int i;
Chris@1 3619 {
Chris@1 3620 return p[i];
Chris@1 3621 }
Chris@1 3622 static char *f (char * (*g) (char **, int), char **p, ...)
Chris@1 3623 {
Chris@1 3624 char *s;
Chris@1 3625 va_list v;
Chris@1 3626 va_start (v,p);
Chris@1 3627 s = g (p, va_arg (v,int));
Chris@1 3628 va_end (v);
Chris@1 3629 return s;
Chris@1 3630 }
Chris@1 3631
Chris@1 3632 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
Chris@1 3633 function prototypes and stuff, but not '\xHH' hex character constants.
Chris@1 3634 These don't provoke an error unfortunately, instead are silently treated
Chris@1 3635 as 'x'. The following induces an error, until -std is added to get
Chris@1 3636 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
Chris@1 3637 array size at least. It's necessary to write '\x00'==0 to get something
Chris@1 3638 that's true only with -std. */
Chris@1 3639 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
Chris@1 3640
Chris@1 3641 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
Chris@1 3642 inside strings and character constants. */
Chris@1 3643 #define FOO(x) 'x'
Chris@1 3644 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
Chris@1 3645
Chris@1 3646 int test (int i, double x);
Chris@1 3647 struct s1 {int (*f) (int a);};
Chris@1 3648 struct s2 {int (*f) (double a);};
Chris@1 3649 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
Chris@1 3650 int argc;
Chris@1 3651 char **argv;
Chris@1 3652 int
Chris@1 3653 main ()
Chris@1 3654 {
Chris@1 3655 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
Chris@1 3656 ;
Chris@1 3657 return 0;
Chris@1 3658 }
Chris@1 3659 _ACEOF
Chris@1 3660 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
Chris@1 3661 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Chris@1 3662 do
Chris@1 3663 CC="$ac_save_CC $ac_arg"
Chris@1 3664 if ac_fn_c_try_compile "$LINENO"; then :
Chris@1 3665 ac_cv_prog_cc_c89=$ac_arg
Chris@1 3666 fi
Chris@1 3667 rm -f core conftest.err conftest.$ac_objext
Chris@1 3668 test "x$ac_cv_prog_cc_c89" != "xno" && break
Chris@1 3669 done
Chris@1 3670 rm -f conftest.$ac_ext
Chris@1 3671 CC=$ac_save_CC
Chris@1 3672
Chris@1 3673 fi
Chris@1 3674 # AC_CACHE_VAL
Chris@1 3675 case "x$ac_cv_prog_cc_c89" in
Chris@1 3676 x)
Chris@1 3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Chris@1 3678 $as_echo "none needed" >&6; } ;;
Chris@1 3679 xno)
Chris@1 3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Chris@1 3681 $as_echo "unsupported" >&6; } ;;
Chris@1 3682 *)
Chris@1 3683 CC="$CC $ac_cv_prog_cc_c89"
Chris@1 3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Chris@1 3685 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Chris@1 3686 esac
Chris@1 3687 if test "x$ac_cv_prog_cc_c89" != xno; then :
Chris@1 3688
Chris@1 3689 fi
Chris@1 3690
Chris@1 3691 ac_ext=c
Chris@1 3692 ac_cpp='$CPP $CPPFLAGS'
Chris@1 3693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@1 3694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@1 3695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@1 3696 DEPDIR="${am__leading_dot}deps"
Chris@1 3697
Chris@1 3698 ac_config_commands="$ac_config_commands depfiles"
Chris@1 3699
Chris@1 3700
Chris@1 3701 am_make=${MAKE-make}
Chris@1 3702 cat > confinc << 'END'
Chris@1 3703 am__doit:
Chris@1 3704 @echo this is the am__doit target
Chris@1 3705 .PHONY: am__doit
Chris@1 3706 END
Chris@1 3707 # If we don't find an include directive, just comment out the code.
Chris@1 3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
Chris@1 3709 $as_echo_n "checking for style of include used by $am_make... " >&6; }
Chris@1 3710 am__include="#"
Chris@1 3711 am__quote=
Chris@1 3712 _am_result=none
Chris@1 3713 # First try GNU make style include.
Chris@1 3714 echo "include confinc" > confmf
Chris@1 3715 # Ignore all kinds of additional output from `make'.
Chris@1 3716 case `$am_make -s -f confmf 2> /dev/null` in #(
Chris@1 3717 *the\ am__doit\ target*)
Chris@1 3718 am__include=include
Chris@1 3719 am__quote=
Chris@1 3720 _am_result=GNU
Chris@1 3721 ;;
Chris@1 3722 esac
Chris@1 3723 # Now try BSD make style include.
Chris@1 3724 if test "$am__include" = "#"; then
Chris@1 3725 echo '.include "confinc"' > confmf
Chris@1 3726 case `$am_make -s -f confmf 2> /dev/null` in #(
Chris@1 3727 *the\ am__doit\ target*)
Chris@1 3728 am__include=.include
Chris@1 3729 am__quote="\""
Chris@1 3730 _am_result=BSD
Chris@1 3731 ;;
Chris@1 3732 esac
Chris@1 3733 fi
Chris@1 3734
Chris@1 3735
Chris@1 3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
Chris@1 3737 $as_echo "$_am_result" >&6; }
Chris@1 3738 rm -f confinc confmf
Chris@1 3739
Chris@1 3740 # Check whether --enable-dependency-tracking was given.
Chris@1 3741 if test "${enable_dependency_tracking+set}" = set; then :
Chris@1 3742 enableval=$enable_dependency_tracking;
Chris@1 3743 fi
Chris@1 3744
Chris@1 3745 if test "x$enable_dependency_tracking" != xno; then
Chris@1 3746 am_depcomp="$ac_aux_dir/depcomp"
Chris@1 3747 AMDEPBACKSLASH='\'
Chris@1 3748 fi
Chris@1 3749 if test "x$enable_dependency_tracking" != xno; then
Chris@1 3750 AMDEP_TRUE=
Chris@1 3751 AMDEP_FALSE='#'
Chris@1 3752 else
Chris@1 3753 AMDEP_TRUE='#'
Chris@1 3754 AMDEP_FALSE=
Chris@1 3755 fi
Chris@1 3756
Chris@1 3757
Chris@1 3758
Chris@1 3759 depcc="$CC" am_compiler_list=
Chris@1 3760
Chris@1 3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Chris@1 3762 $as_echo_n "checking dependency style of $depcc... " >&6; }
Chris@1 3763 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
Chris@1 3764 $as_echo_n "(cached) " >&6
Chris@1 3765 else
Chris@1 3766 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
Chris@1 3767 # We make a subdir and do the tests there. Otherwise we can end up
Chris@1 3768 # making bogus files that we don't know about and never remove. For
Chris@1 3769 # instance it was reported that on HP-UX the gcc test will end up
Chris@1 3770 # making a dummy file named `D' -- because `-MD' means `put the output
Chris@1 3771 # in D'.
Chris@1 3772 mkdir conftest.dir
Chris@1 3773 # Copy depcomp to subdir because otherwise we won't find it if we're
Chris@1 3774 # using a relative directory.
Chris@1 3775 cp "$am_depcomp" conftest.dir
Chris@1 3776 cd conftest.dir
Chris@1 3777 # We will build objects and dependencies in a subdirectory because
Chris@1 3778 # it helps to detect inapplicable dependency modes. For instance
Chris@1 3779 # both Tru64's cc and ICC support -MD to output dependencies as a
Chris@1 3780 # side effect of compilation, but ICC will put the dependencies in
Chris@1 3781 # the current directory while Tru64 will put them in the object
Chris@1 3782 # directory.
Chris@1 3783 mkdir sub
Chris@1 3784
Chris@1 3785 am_cv_CC_dependencies_compiler_type=none
Chris@1 3786 if test "$am_compiler_list" = ""; then
Chris@1 3787 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
Chris@1 3788 fi
Chris@1 3789 am__universal=false
Chris@1 3790 case " $depcc " in #(
Chris@1 3791 *\ -arch\ *\ -arch\ *) am__universal=true ;;
Chris@1 3792 esac
Chris@1 3793
Chris@1 3794 for depmode in $am_compiler_list; do
Chris@1 3795 # Setup a source with many dependencies, because some compilers
Chris@1 3796 # like to wrap large dependency lists on column 80 (with \), and
Chris@1 3797 # we should not choose a depcomp mode which is confused by this.
Chris@1 3798 #
Chris@1 3799 # We need to recreate these files for each test, as the compiler may
Chris@1 3800 # overwrite some of them when testing with obscure command lines.
Chris@1 3801 # This happens at least with the AIX C compiler.
Chris@1 3802 : > sub/conftest.c
Chris@1 3803 for i in 1 2 3 4 5 6; do
Chris@1 3804 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Chris@1 3805 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
Chris@1 3806 # Solaris 8's {/usr,}/bin/sh.
Chris@1 3807 touch sub/conftst$i.h
Chris@1 3808 done
Chris@1 3809 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Chris@1 3810
Chris@1 3811 # We check with `-c' and `-o' for the sake of the "dashmstdout"
Chris@1 3812 # mode. It turns out that the SunPro C++ compiler does not properly
Chris@1 3813 # handle `-M -o', and we need to detect this. Also, some Intel
Chris@1 3814 # versions had trouble with output in subdirs
Chris@1 3815 am__obj=sub/conftest.${OBJEXT-o}
Chris@1 3816 am__minus_obj="-o $am__obj"
Chris@1 3817 case $depmode in
Chris@1 3818 gcc)
Chris@1 3819 # This depmode causes a compiler race in universal mode.
Chris@1 3820 test "$am__universal" = false || continue
Chris@1 3821 ;;
Chris@1 3822 nosideeffect)
Chris@1 3823 # after this tag, mechanisms are not by side-effect, so they'll
Chris@1 3824 # only be used when explicitly requested
Chris@1 3825 if test "x$enable_dependency_tracking" = xyes; then
Chris@1 3826 continue
Chris@1 3827 else
Chris@1 3828 break
Chris@1 3829 fi
Chris@1 3830 ;;
Chris@1 3831 msvisualcpp | msvcmsys)
Chris@1 3832 # This compiler won't grok `-c -o', but also, the minuso test has
Chris@1 3833 # not run yet. These depmodes are late enough in the game, and
Chris@1 3834 # so weak that their functioning should not be impacted.
Chris@1 3835 am__obj=conftest.${OBJEXT-o}
Chris@1 3836 am__minus_obj=
Chris@1 3837 ;;
Chris@1 3838 none) break ;;
Chris@1 3839 esac
Chris@1 3840 if depmode=$depmode \
Chris@1 3841 source=sub/conftest.c object=$am__obj \
Chris@1 3842 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Chris@1 3843 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Chris@1 3844 >/dev/null 2>conftest.err &&
Chris@1 3845 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Chris@1 3846 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Chris@1 3847 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Chris@1 3848 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Chris@1 3849 # icc doesn't choke on unknown options, it will just issue warnings
Chris@1 3850 # or remarks (even with -Werror). So we grep stderr for any message
Chris@1 3851 # that says an option was ignored or not supported.
Chris@1 3852 # When given -MP, icc 7.0 and 7.1 complain thusly:
Chris@1 3853 # icc: Command line warning: ignoring option '-M'; no argument required
Chris@1 3854 # The diagnosis changed in icc 8.0:
Chris@1 3855 # icc: Command line remark: option '-MP' not supported
Chris@1 3856 if (grep 'ignoring option' conftest.err ||
Chris@1 3857 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Chris@1 3858 am_cv_CC_dependencies_compiler_type=$depmode
Chris@1 3859 break
Chris@1 3860 fi
Chris@1 3861 fi
Chris@1 3862 done
Chris@1 3863
Chris@1 3864 cd ..
Chris@1 3865 rm -rf conftest.dir
Chris@1 3866 else
Chris@1 3867 am_cv_CC_dependencies_compiler_type=none
Chris@1 3868 fi
Chris@1 3869
Chris@1 3870 fi
Chris@1 3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
Chris@1 3872 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Chris@1 3873 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
Chris@1 3874
Chris@1 3875 if
Chris@1 3876 test "x$enable_dependency_tracking" != xno \
Chris@1 3877 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
Chris@1 3878 am__fastdepCC_TRUE=
Chris@1 3879 am__fastdepCC_FALSE='#'
Chris@1 3880 else
Chris@1 3881 am__fastdepCC_TRUE='#'
Chris@1 3882 am__fastdepCC_FALSE=
Chris@1 3883 fi
Chris@1 3884
Chris@1 3885
Chris@1 3886 case `pwd` in
Chris@1 3887 *\ * | *\ *)
Chris@1 3888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
Chris@1 3889 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
Chris@1 3890 esac
Chris@1 3891
Chris@1 3892
Chris@1 3893
Chris@1 3894 macro_version='2.4'
Chris@1 3895 macro_revision='1.3293'
Chris@1 3896
Chris@1 3897
Chris@1 3898
Chris@1 3899
Chris@1 3900
Chris@1 3901
Chris@1 3902
Chris@1 3903
Chris@1 3904
Chris@1 3905
Chris@1 3906
Chris@1 3907
Chris@1 3908
Chris@1 3909 ltmain="$ac_aux_dir/ltmain.sh"
Chris@1 3910
Chris@1 3911 # Make sure we can run config.sub.
Chris@1 3912 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Chris@1 3913 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Chris@1 3914
Chris@1 3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Chris@1 3916 $as_echo_n "checking build system type... " >&6; }
Chris@1 3917 if ${ac_cv_build+:} false; then :
Chris@1 3918 $as_echo_n "(cached) " >&6
Chris@1 3919 else
Chris@1 3920 ac_build_alias=$build_alias
Chris@1 3921 test "x$ac_build_alias" = x &&
Chris@1 3922 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
Chris@1 3923 test "x$ac_build_alias" = x &&
Chris@1 3924 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Chris@1 3925 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Chris@1 3926 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Chris@1 3927
Chris@1 3928 fi
Chris@1 3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Chris@1 3930 $as_echo "$ac_cv_build" >&6; }
Chris@1 3931 case $ac_cv_build in
Chris@1 3932 *-*-*) ;;
Chris@1 3933 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Chris@1 3934 esac
Chris@1 3935 build=$ac_cv_build
Chris@1 3936 ac_save_IFS=$IFS; IFS='-'
Chris@1 3937 set x $ac_cv_build
Chris@1 3938 shift
Chris@1 3939 build_cpu=$1
Chris@1 3940 build_vendor=$2
Chris@1 3941 shift; shift
Chris@1 3942 # Remember, the first character of IFS is used to create $*,
Chris@1 3943 # except with old shells:
Chris@1 3944 build_os=$*
Chris@1 3945 IFS=$ac_save_IFS
Chris@1 3946 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Chris@1 3947
Chris@1 3948
Chris@1 3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Chris@1 3950 $as_echo_n "checking host system type... " >&6; }
Chris@1 3951 if ${ac_cv_host+:} false; then :
Chris@1 3952 $as_echo_n "(cached) " >&6
Chris@1 3953 else
Chris@1 3954 if test "x$host_alias" = x; then
Chris@1 3955 ac_cv_host=$ac_cv_build
Chris@1 3956 else
Chris@1 3957 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Chris@1 3958 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Chris@1 3959 fi
Chris@1 3960
Chris@1 3961 fi
Chris@1 3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Chris@1 3963 $as_echo "$ac_cv_host" >&6; }
Chris@1 3964 case $ac_cv_host in
Chris@1 3965 *-*-*) ;;
Chris@1 3966 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Chris@1 3967 esac
Chris@1 3968 host=$ac_cv_host
Chris@1 3969 ac_save_IFS=$IFS; IFS='-'
Chris@1 3970 set x $ac_cv_host
Chris@1 3971 shift
Chris@1 3972 host_cpu=$1
Chris@1 3973 host_vendor=$2
Chris@1 3974 shift; shift
Chris@1 3975 # Remember, the first character of IFS is used to create $*,
Chris@1 3976 # except with old shells:
Chris@1 3977 host_os=$*
Chris@1 3978 IFS=$ac_save_IFS
Chris@1 3979 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Chris@1 3980
Chris@1 3981
Chris@1 3982 # Backslashify metacharacters that are still active within
Chris@1 3983 # double-quoted strings.
Chris@1 3984 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
Chris@1 3985
Chris@1 3986 # Same as above, but do not quote variable references.
Chris@1 3987 double_quote_subst='s/\(["`\\]\)/\\\1/g'
Chris@1 3988
Chris@1 3989 # Sed substitution to delay expansion of an escaped shell variable in a
Chris@1 3990 # double_quote_subst'ed string.
Chris@1 3991 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
Chris@1 3992
Chris@1 3993 # Sed substitution to delay expansion of an escaped single quote.
Chris@1 3994 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
Chris@1 3995
Chris@1 3996 # Sed substitution to avoid accidental globbing in evaled expressions
Chris@1 3997 no_glob_subst='s/\*/\\\*/g'
Chris@1 3998
Chris@1 3999 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@1 4000 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
Chris@1 4001 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
Chris@1 4002
Chris@1 4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
Chris@1 4004 $as_echo_n "checking how to print strings... " >&6; }
Chris@1 4005 # Test print first, because it will be a builtin if present.
Chris@1 4006 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
Chris@1 4007 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
Chris@1 4008 ECHO='print -r --'
Chris@1 4009 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
Chris@1 4010 ECHO='printf %s\n'
Chris@1 4011 else
Chris@1 4012 # Use this function as a fallback that always works.
Chris@1 4013 func_fallback_echo ()
Chris@1 4014 {
Chris@1 4015 eval 'cat <<_LTECHO_EOF
Chris@1 4016 $1
Chris@1 4017 _LTECHO_EOF'
Chris@1 4018 }
Chris@1 4019 ECHO='func_fallback_echo'
Chris@1 4020 fi
Chris@1 4021
Chris@1 4022 # func_echo_all arg...
Chris@1 4023 # Invoke $ECHO with all args, space-separated.
Chris@1 4024 func_echo_all ()
Chris@1 4025 {
Chris@1 4026 $ECHO ""
Chris@1 4027 }
Chris@1 4028
Chris@1 4029 case "$ECHO" in
Chris@1 4030 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
Chris@1 4031 $as_echo "printf" >&6; } ;;
Chris@1 4032 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
Chris@1 4033 $as_echo "print -r" >&6; } ;;
Chris@1 4034 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
Chris@1 4035 $as_echo "cat" >&6; } ;;
Chris@1 4036 esac
Chris@1 4037
Chris@1 4038
Chris@1 4039
Chris@1 4040
Chris@1 4041
Chris@1 4042
Chris@1 4043
Chris@1 4044
Chris@1 4045
Chris@1 4046
Chris@1 4047
Chris@1 4048
Chris@1 4049
Chris@1 4050
Chris@1 4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
Chris@1 4052 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
Chris@1 4053 if ${ac_cv_path_SED+:} false; then :
Chris@1 4054 $as_echo_n "(cached) " >&6
Chris@1 4055 else
Chris@1 4056 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
Chris@1 4057 for ac_i in 1 2 3 4 5 6 7; do
Chris@1 4058 ac_script="$ac_script$as_nl$ac_script"
Chris@1 4059 done
Chris@1 4060 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
Chris@1 4061 { ac_script=; unset ac_script;}
Chris@1 4062 if test -z "$SED"; then
Chris@1 4063 ac_path_SED_found=false
Chris@1 4064 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@1 4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 4066 for as_dir in $PATH
Chris@1 4067 do
Chris@1 4068 IFS=$as_save_IFS
Chris@1 4069 test -z "$as_dir" && as_dir=.
Chris@1 4070 for ac_prog in sed gsed; do
Chris@1 4071 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 4072 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Chris@1 4073 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
Chris@1 4074 # Check for GNU ac_path_SED and select it if it is found.
Chris@1 4075 # Check for GNU $ac_path_SED
Chris@1 4076 case `"$ac_path_SED" --version 2>&1` in
Chris@1 4077 *GNU*)
Chris@1 4078 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
Chris@1 4079 *)
Chris@1 4080 ac_count=0
Chris@1 4081 $as_echo_n 0123456789 >"conftest.in"
Chris@1 4082 while :
Chris@1 4083 do
Chris@1 4084 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@1 4085 mv "conftest.tmp" "conftest.in"
Chris@1 4086 cp "conftest.in" "conftest.nl"
Chris@1 4087 $as_echo '' >> "conftest.nl"
Chris@1 4088 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@1 4089 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@1 4090 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@1 4091 if test $ac_count -gt ${ac_path_SED_max-0}; then
Chris@1 4092 # Best one so far, save it but keep looking for a better one
Chris@1 4093 ac_cv_path_SED="$ac_path_SED"
Chris@1 4094 ac_path_SED_max=$ac_count
Chris@1 4095 fi
Chris@1 4096 # 10*(2^10) chars as input seems more than enough
Chris@1 4097 test $ac_count -gt 10 && break
Chris@1 4098 done
Chris@1 4099 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@1 4100 esac
Chris@1 4101
Chris@1 4102 $ac_path_SED_found && break 3
Chris@1 4103 done
Chris@1 4104 done
Chris@1 4105 done
Chris@1 4106 IFS=$as_save_IFS
Chris@1 4107 if test -z "$ac_cv_path_SED"; then
Chris@1 4108 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Chris@1 4109 fi
Chris@1 4110 else
Chris@1 4111 ac_cv_path_SED=$SED
Chris@1 4112 fi
Chris@1 4113
Chris@1 4114 fi
Chris@1 4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
Chris@1 4116 $as_echo "$ac_cv_path_SED" >&6; }
Chris@1 4117 SED="$ac_cv_path_SED"
Chris@1 4118 rm -f conftest.sed
Chris@1 4119
Chris@1 4120 test -z "$SED" && SED=sed
Chris@1 4121 Xsed="$SED -e 1s/^X//"
Chris@1 4122
Chris@1 4123
Chris@1 4124
Chris@1 4125
Chris@1 4126
Chris@1 4127
Chris@1 4128
Chris@1 4129
Chris@1 4130
Chris@1 4131
Chris@1 4132
Chris@1 4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Chris@1 4134 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Chris@1 4135 if ${ac_cv_path_GREP+:} false; then :
Chris@1 4136 $as_echo_n "(cached) " >&6
Chris@1 4137 else
Chris@1 4138 if test -z "$GREP"; then
Chris@1 4139 ac_path_GREP_found=false
Chris@1 4140 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@1 4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 4142 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@1 4143 do
Chris@1 4144 IFS=$as_save_IFS
Chris@1 4145 test -z "$as_dir" && as_dir=.
Chris@1 4146 for ac_prog in grep ggrep; do
Chris@1 4147 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 4148 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@1 4149 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Chris@1 4150 # Check for GNU ac_path_GREP and select it if it is found.
Chris@1 4151 # Check for GNU $ac_path_GREP
Chris@1 4152 case `"$ac_path_GREP" --version 2>&1` in
Chris@1 4153 *GNU*)
Chris@1 4154 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
Chris@1 4155 *)
Chris@1 4156 ac_count=0
Chris@1 4157 $as_echo_n 0123456789 >"conftest.in"
Chris@1 4158 while :
Chris@1 4159 do
Chris@1 4160 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@1 4161 mv "conftest.tmp" "conftest.in"
Chris@1 4162 cp "conftest.in" "conftest.nl"
Chris@1 4163 $as_echo 'GREP' >> "conftest.nl"
Chris@1 4164 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@1 4165 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@1 4166 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@1 4167 if test $ac_count -gt ${ac_path_GREP_max-0}; then
Chris@1 4168 # Best one so far, save it but keep looking for a better one
Chris@1 4169 ac_cv_path_GREP="$ac_path_GREP"
Chris@1 4170 ac_path_GREP_max=$ac_count
Chris@1 4171 fi
Chris@1 4172 # 10*(2^10) chars as input seems more than enough
Chris@1 4173 test $ac_count -gt 10 && break
Chris@1 4174 done
Chris@1 4175 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@1 4176 esac
Chris@1 4177
Chris@1 4178 $ac_path_GREP_found && break 3
Chris@1 4179 done
Chris@1 4180 done
Chris@1 4181 done
Chris@1 4182 IFS=$as_save_IFS
Chris@1 4183 if test -z "$ac_cv_path_GREP"; then
Chris@1 4184 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@1 4185 fi
Chris@1 4186 else
Chris@1 4187 ac_cv_path_GREP=$GREP
Chris@1 4188 fi
Chris@1 4189
Chris@1 4190 fi
Chris@1 4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Chris@1 4192 $as_echo "$ac_cv_path_GREP" >&6; }
Chris@1 4193 GREP="$ac_cv_path_GREP"
Chris@1 4194
Chris@1 4195
Chris@1 4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Chris@1 4197 $as_echo_n "checking for egrep... " >&6; }
Chris@1 4198 if ${ac_cv_path_EGREP+:} false; then :
Chris@1 4199 $as_echo_n "(cached) " >&6
Chris@1 4200 else
Chris@1 4201 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
Chris@1 4202 then ac_cv_path_EGREP="$GREP -E"
Chris@1 4203 else
Chris@1 4204 if test -z "$EGREP"; then
Chris@1 4205 ac_path_EGREP_found=false
Chris@1 4206 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@1 4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 4208 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@1 4209 do
Chris@1 4210 IFS=$as_save_IFS
Chris@1 4211 test -z "$as_dir" && as_dir=.
Chris@1 4212 for ac_prog in egrep; do
Chris@1 4213 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 4214 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@1 4215 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Chris@1 4216 # Check for GNU ac_path_EGREP and select it if it is found.
Chris@1 4217 # Check for GNU $ac_path_EGREP
Chris@1 4218 case `"$ac_path_EGREP" --version 2>&1` in
Chris@1 4219 *GNU*)
Chris@1 4220 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
Chris@1 4221 *)
Chris@1 4222 ac_count=0
Chris@1 4223 $as_echo_n 0123456789 >"conftest.in"
Chris@1 4224 while :
Chris@1 4225 do
Chris@1 4226 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@1 4227 mv "conftest.tmp" "conftest.in"
Chris@1 4228 cp "conftest.in" "conftest.nl"
Chris@1 4229 $as_echo 'EGREP' >> "conftest.nl"
Chris@1 4230 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@1 4231 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@1 4232 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@1 4233 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
Chris@1 4234 # Best one so far, save it but keep looking for a better one
Chris@1 4235 ac_cv_path_EGREP="$ac_path_EGREP"
Chris@1 4236 ac_path_EGREP_max=$ac_count
Chris@1 4237 fi
Chris@1 4238 # 10*(2^10) chars as input seems more than enough
Chris@1 4239 test $ac_count -gt 10 && break
Chris@1 4240 done
Chris@1 4241 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@1 4242 esac
Chris@1 4243
Chris@1 4244 $ac_path_EGREP_found && break 3
Chris@1 4245 done
Chris@1 4246 done
Chris@1 4247 done
Chris@1 4248 IFS=$as_save_IFS
Chris@1 4249 if test -z "$ac_cv_path_EGREP"; then
Chris@1 4250 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@1 4251 fi
Chris@1 4252 else
Chris@1 4253 ac_cv_path_EGREP=$EGREP
Chris@1 4254 fi
Chris@1 4255
Chris@1 4256 fi
Chris@1 4257 fi
Chris@1 4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Chris@1 4259 $as_echo "$ac_cv_path_EGREP" >&6; }
Chris@1 4260 EGREP="$ac_cv_path_EGREP"
Chris@1 4261
Chris@1 4262
Chris@1 4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
Chris@1 4264 $as_echo_n "checking for fgrep... " >&6; }
Chris@1 4265 if ${ac_cv_path_FGREP+:} false; then :
Chris@1 4266 $as_echo_n "(cached) " >&6
Chris@1 4267 else
Chris@1 4268 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
Chris@1 4269 then ac_cv_path_FGREP="$GREP -F"
Chris@1 4270 else
Chris@1 4271 if test -z "$FGREP"; then
Chris@1 4272 ac_path_FGREP_found=false
Chris@1 4273 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@1 4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 4275 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@1 4276 do
Chris@1 4277 IFS=$as_save_IFS
Chris@1 4278 test -z "$as_dir" && as_dir=.
Chris@1 4279 for ac_prog in fgrep; do
Chris@1 4280 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 4281 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@1 4282 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
Chris@1 4283 # Check for GNU ac_path_FGREP and select it if it is found.
Chris@1 4284 # Check for GNU $ac_path_FGREP
Chris@1 4285 case `"$ac_path_FGREP" --version 2>&1` in
Chris@1 4286 *GNU*)
Chris@1 4287 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
Chris@1 4288 *)
Chris@1 4289 ac_count=0
Chris@1 4290 $as_echo_n 0123456789 >"conftest.in"
Chris@1 4291 while :
Chris@1 4292 do
Chris@1 4293 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@1 4294 mv "conftest.tmp" "conftest.in"
Chris@1 4295 cp "conftest.in" "conftest.nl"
Chris@1 4296 $as_echo 'FGREP' >> "conftest.nl"
Chris@1 4297 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@1 4298 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@1 4299 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@1 4300 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
Chris@1 4301 # Best one so far, save it but keep looking for a better one
Chris@1 4302 ac_cv_path_FGREP="$ac_path_FGREP"
Chris@1 4303 ac_path_FGREP_max=$ac_count
Chris@1 4304 fi
Chris@1 4305 # 10*(2^10) chars as input seems more than enough
Chris@1 4306 test $ac_count -gt 10 && break
Chris@1 4307 done
Chris@1 4308 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@1 4309 esac
Chris@1 4310
Chris@1 4311 $ac_path_FGREP_found && break 3
Chris@1 4312 done
Chris@1 4313 done
Chris@1 4314 done
Chris@1 4315 IFS=$as_save_IFS
Chris@1 4316 if test -z "$ac_cv_path_FGREP"; then
Chris@1 4317 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@1 4318 fi
Chris@1 4319 else
Chris@1 4320 ac_cv_path_FGREP=$FGREP
Chris@1 4321 fi
Chris@1 4322
Chris@1 4323 fi
Chris@1 4324 fi
Chris@1 4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
Chris@1 4326 $as_echo "$ac_cv_path_FGREP" >&6; }
Chris@1 4327 FGREP="$ac_cv_path_FGREP"
Chris@1 4328
Chris@1 4329
Chris@1 4330 test -z "$GREP" && GREP=grep
Chris@1 4331
Chris@1 4332
Chris@1 4333
Chris@1 4334
Chris@1 4335
Chris@1 4336
Chris@1 4337
Chris@1 4338
Chris@1 4339
Chris@1 4340
Chris@1 4341
Chris@1 4342
Chris@1 4343
Chris@1 4344
Chris@1 4345
Chris@1 4346
Chris@1 4347
Chris@1 4348
Chris@1 4349
Chris@1 4350 # Check whether --with-gnu-ld was given.
Chris@1 4351 if test "${with_gnu_ld+set}" = set; then :
Chris@1 4352 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Chris@1 4353 else
Chris@1 4354 with_gnu_ld=no
Chris@1 4355 fi
Chris@1 4356
Chris@1 4357 ac_prog=ld
Chris@1 4358 if test "$GCC" = yes; then
Chris@1 4359 # Check if gcc -print-prog-name=ld gives a path.
Chris@1 4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
Chris@1 4361 $as_echo_n "checking for ld used by $CC... " >&6; }
Chris@1 4362 case $host in
Chris@1 4363 *-*-mingw*)
Chris@1 4364 # gcc leaves a trailing carriage return which upsets mingw
Chris@1 4365 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
Chris@1 4366 *)
Chris@1 4367 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
Chris@1 4368 esac
Chris@1 4369 case $ac_prog in
Chris@1 4370 # Accept absolute paths.
Chris@1 4371 [\\/]* | ?:[\\/]*)
Chris@1 4372 re_direlt='/[^/][^/]*/\.\./'
Chris@1 4373 # Canonicalize the pathname of ld
Chris@1 4374 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
Chris@1 4375 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
Chris@1 4376 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Chris@1 4377 done
Chris@1 4378 test -z "$LD" && LD="$ac_prog"
Chris@1 4379 ;;
Chris@1 4380 "")
Chris@1 4381 # If it fails, then pretend we aren't using GCC.
Chris@1 4382 ac_prog=ld
Chris@1 4383 ;;
Chris@1 4384 *)
Chris@1 4385 # If it is relative, then search for the first ld in PATH.
Chris@1 4386 with_gnu_ld=unknown
Chris@1 4387 ;;
Chris@1 4388 esac
Chris@1 4389 elif test "$with_gnu_ld" = yes; then
Chris@1 4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Chris@1 4391 $as_echo_n "checking for GNU ld... " >&6; }
Chris@1 4392 else
Chris@1 4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Chris@1 4394 $as_echo_n "checking for non-GNU ld... " >&6; }
Chris@1 4395 fi
Chris@1 4396 if ${lt_cv_path_LD+:} false; then :
Chris@1 4397 $as_echo_n "(cached) " >&6
Chris@1 4398 else
Chris@1 4399 if test -z "$LD"; then
Chris@1 4400 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@1 4401 for ac_dir in $PATH; do
Chris@1 4402 IFS="$lt_save_ifs"
Chris@1 4403 test -z "$ac_dir" && ac_dir=.
Chris@1 4404 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Chris@1 4405 lt_cv_path_LD="$ac_dir/$ac_prog"
Chris@1 4406 # Check to see if the program is GNU ld. I'd rather use --version,
Chris@1 4407 # but apparently some variants of GNU ld only accept -v.
Chris@1 4408 # Break only if it was the GNU/non-GNU ld that we prefer.
Chris@1 4409 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
Chris@1 4410 *GNU* | *'with BFD'*)
Chris@1 4411 test "$with_gnu_ld" != no && break
Chris@1 4412 ;;
Chris@1 4413 *)
Chris@1 4414 test "$with_gnu_ld" != yes && break
Chris@1 4415 ;;
Chris@1 4416 esac
Chris@1 4417 fi
Chris@1 4418 done
Chris@1 4419 IFS="$lt_save_ifs"
Chris@1 4420 else
Chris@1 4421 lt_cv_path_LD="$LD" # Let the user override the test with a path.
Chris@1 4422 fi
Chris@1 4423 fi
Chris@1 4424
Chris@1 4425 LD="$lt_cv_path_LD"
Chris@1 4426 if test -n "$LD"; then
Chris@1 4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Chris@1 4428 $as_echo "$LD" >&6; }
Chris@1 4429 else
Chris@1 4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 4431 $as_echo "no" >&6; }
Chris@1 4432 fi
Chris@1 4433 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Chris@1 4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Chris@1 4435 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Chris@1 4436 if ${lt_cv_prog_gnu_ld+:} false; then :
Chris@1 4437 $as_echo_n "(cached) " >&6
Chris@1 4438 else
Chris@1 4439 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Chris@1 4440 case `$LD -v 2>&1 </dev/null` in
Chris@1 4441 *GNU* | *'with BFD'*)
Chris@1 4442 lt_cv_prog_gnu_ld=yes
Chris@1 4443 ;;
Chris@1 4444 *)
Chris@1 4445 lt_cv_prog_gnu_ld=no
Chris@1 4446 ;;
Chris@1 4447 esac
Chris@1 4448 fi
Chris@1 4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
Chris@1 4450 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
Chris@1 4451 with_gnu_ld=$lt_cv_prog_gnu_ld
Chris@1 4452
Chris@1 4453
Chris@1 4454
Chris@1 4455
Chris@1 4456
Chris@1 4457
Chris@1 4458
Chris@1 4459
Chris@1 4460
Chris@1 4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
Chris@1 4462 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Chris@1 4463 if ${lt_cv_path_NM+:} false; then :
Chris@1 4464 $as_echo_n "(cached) " >&6
Chris@1 4465 else
Chris@1 4466 if test -n "$NM"; then
Chris@1 4467 # Let the user override the test.
Chris@1 4468 lt_cv_path_NM="$NM"
Chris@1 4469 else
Chris@1 4470 lt_nm_to_check="${ac_tool_prefix}nm"
Chris@1 4471 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
Chris@1 4472 lt_nm_to_check="$lt_nm_to_check nm"
Chris@1 4473 fi
Chris@1 4474 for lt_tmp_nm in $lt_nm_to_check; do
Chris@1 4475 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@1 4476 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
Chris@1 4477 IFS="$lt_save_ifs"
Chris@1 4478 test -z "$ac_dir" && ac_dir=.
Chris@1 4479 tmp_nm="$ac_dir/$lt_tmp_nm"
Chris@1 4480 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
Chris@1 4481 # Check to see if the nm accepts a BSD-compat flag.
Chris@1 4482 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
Chris@1 4483 # nm: unknown option "B" ignored
Chris@1 4484 # Tru64's nm complains that /dev/null is an invalid object file
Chris@1 4485 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
Chris@1 4486 */dev/null* | *'Invalid file or object type'*)
Chris@1 4487 lt_cv_path_NM="$tmp_nm -B"
Chris@1 4488 break
Chris@1 4489 ;;
Chris@1 4490 *)
Chris@1 4491 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
Chris@1 4492 */dev/null*)
Chris@1 4493 lt_cv_path_NM="$tmp_nm -p"
Chris@1 4494 break
Chris@1 4495 ;;
Chris@1 4496 *)
Chris@1 4497 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
Chris@1 4498 continue # so that we can try to find one that supports BSD flags
Chris@1 4499 ;;
Chris@1 4500 esac
Chris@1 4501 ;;
Chris@1 4502 esac
Chris@1 4503 fi
Chris@1 4504 done
Chris@1 4505 IFS="$lt_save_ifs"
Chris@1 4506 done
Chris@1 4507 : ${lt_cv_path_NM=no}
Chris@1 4508 fi
Chris@1 4509 fi
Chris@1 4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
Chris@1 4511 $as_echo "$lt_cv_path_NM" >&6; }
Chris@1 4512 if test "$lt_cv_path_NM" != "no"; then
Chris@1 4513 NM="$lt_cv_path_NM"
Chris@1 4514 else
Chris@1 4515 # Didn't find any BSD compatible name lister, look for dumpbin.
Chris@1 4516 if test -n "$DUMPBIN"; then :
Chris@1 4517 # Let the user override the test.
Chris@1 4518 else
Chris@1 4519 if test -n "$ac_tool_prefix"; then
Chris@1 4520 for ac_prog in dumpbin "link -dump"
Chris@1 4521 do
Chris@1 4522 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@1 4523 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@1 4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 4525 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 4526 if ${ac_cv_prog_DUMPBIN+:} false; then :
Chris@1 4527 $as_echo_n "(cached) " >&6
Chris@1 4528 else
Chris@1 4529 if test -n "$DUMPBIN"; then
Chris@1 4530 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
Chris@1 4531 else
Chris@1 4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 4533 for as_dir in $PATH
Chris@1 4534 do
Chris@1 4535 IFS=$as_save_IFS
Chris@1 4536 test -z "$as_dir" && as_dir=.
Chris@1 4537 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 4538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 4539 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Chris@1 4540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 4541 break 2
Chris@1 4542 fi
Chris@1 4543 done
Chris@1 4544 done
Chris@1 4545 IFS=$as_save_IFS
Chris@1 4546
Chris@1 4547 fi
Chris@1 4548 fi
Chris@1 4549 DUMPBIN=$ac_cv_prog_DUMPBIN
Chris@1 4550 if test -n "$DUMPBIN"; then
Chris@1 4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
Chris@1 4552 $as_echo "$DUMPBIN" >&6; }
Chris@1 4553 else
Chris@1 4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 4555 $as_echo "no" >&6; }
Chris@1 4556 fi
Chris@1 4557
Chris@1 4558
Chris@1 4559 test -n "$DUMPBIN" && break
Chris@1 4560 done
Chris@1 4561 fi
Chris@1 4562 if test -z "$DUMPBIN"; then
Chris@1 4563 ac_ct_DUMPBIN=$DUMPBIN
Chris@1 4564 for ac_prog in dumpbin "link -dump"
Chris@1 4565 do
Chris@1 4566 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@1 4567 set dummy $ac_prog; ac_word=$2
Chris@1 4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 4569 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 4570 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Chris@1 4571 $as_echo_n "(cached) " >&6
Chris@1 4572 else
Chris@1 4573 if test -n "$ac_ct_DUMPBIN"; then
Chris@1 4574 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
Chris@1 4575 else
Chris@1 4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 4577 for as_dir in $PATH
Chris@1 4578 do
Chris@1 4579 IFS=$as_save_IFS
Chris@1 4580 test -z "$as_dir" && as_dir=.
Chris@1 4581 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 4582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 4583 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Chris@1 4584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 4585 break 2
Chris@1 4586 fi
Chris@1 4587 done
Chris@1 4588 done
Chris@1 4589 IFS=$as_save_IFS
Chris@1 4590
Chris@1 4591 fi
Chris@1 4592 fi
Chris@1 4593 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
Chris@1 4594 if test -n "$ac_ct_DUMPBIN"; then
Chris@1 4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
Chris@1 4596 $as_echo "$ac_ct_DUMPBIN" >&6; }
Chris@1 4597 else
Chris@1 4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 4599 $as_echo "no" >&6; }
Chris@1 4600 fi
Chris@1 4601
Chris@1 4602
Chris@1 4603 test -n "$ac_ct_DUMPBIN" && break
Chris@1 4604 done
Chris@1 4605
Chris@1 4606 if test "x$ac_ct_DUMPBIN" = x; then
Chris@1 4607 DUMPBIN=":"
Chris@1 4608 else
Chris@1 4609 case $cross_compiling:$ac_tool_warned in
Chris@1 4610 yes:)
Chris@1 4611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 4612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 4613 ac_tool_warned=yes ;;
Chris@1 4614 esac
Chris@1 4615 DUMPBIN=$ac_ct_DUMPBIN
Chris@1 4616 fi
Chris@1 4617 fi
Chris@1 4618
Chris@1 4619 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
Chris@1 4620 *COFF*)
Chris@1 4621 DUMPBIN="$DUMPBIN -symbols"
Chris@1 4622 ;;
Chris@1 4623 *)
Chris@1 4624 DUMPBIN=:
Chris@1 4625 ;;
Chris@1 4626 esac
Chris@1 4627 fi
Chris@1 4628
Chris@1 4629 if test "$DUMPBIN" != ":"; then
Chris@1 4630 NM="$DUMPBIN"
Chris@1 4631 fi
Chris@1 4632 fi
Chris@1 4633 test -z "$NM" && NM=nm
Chris@1 4634
Chris@1 4635
Chris@1 4636
Chris@1 4637
Chris@1 4638
Chris@1 4639
Chris@1 4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
Chris@1 4641 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
Chris@1 4642 if ${lt_cv_nm_interface+:} false; then :
Chris@1 4643 $as_echo_n "(cached) " >&6
Chris@1 4644 else
Chris@1 4645 lt_cv_nm_interface="BSD nm"
Chris@1 4646 echo "int some_variable = 0;" > conftest.$ac_ext
Chris@1 4647 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
Chris@1 4648 (eval "$ac_compile" 2>conftest.err)
Chris@1 4649 cat conftest.err >&5
Chris@1 4650 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Chris@1 4651 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
Chris@1 4652 cat conftest.err >&5
Chris@1 4653 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
Chris@1 4654 cat conftest.out >&5
Chris@1 4655 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
Chris@1 4656 lt_cv_nm_interface="MS dumpbin"
Chris@1 4657 fi
Chris@1 4658 rm -f conftest*
Chris@1 4659 fi
Chris@1 4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
Chris@1 4661 $as_echo "$lt_cv_nm_interface" >&6; }
Chris@1 4662
Chris@1 4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Chris@1 4664 $as_echo_n "checking whether ln -s works... " >&6; }
Chris@1 4665 LN_S=$as_ln_s
Chris@1 4666 if test "$LN_S" = "ln -s"; then
Chris@1 4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@1 4668 $as_echo "yes" >&6; }
Chris@1 4669 else
Chris@1 4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Chris@1 4671 $as_echo "no, using $LN_S" >&6; }
Chris@1 4672 fi
Chris@1 4673
Chris@1 4674 # find the maximum length of command line arguments
Chris@1 4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
Chris@1 4676 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
Chris@1 4677 if ${lt_cv_sys_max_cmd_len+:} false; then :
Chris@1 4678 $as_echo_n "(cached) " >&6
Chris@1 4679 else
Chris@1 4680 i=0
Chris@1 4681 teststring="ABCD"
Chris@1 4682
Chris@1 4683 case $build_os in
Chris@1 4684 msdosdjgpp*)
Chris@1 4685 # On DJGPP, this test can blow up pretty badly due to problems in libc
Chris@1 4686 # (any single argument exceeding 2000 bytes causes a buffer overrun
Chris@1 4687 # during glob expansion). Even if it were fixed, the result of this
Chris@1 4688 # check would be larger than it should be.
Chris@1 4689 lt_cv_sys_max_cmd_len=12288; # 12K is about right
Chris@1 4690 ;;
Chris@1 4691
Chris@1 4692 gnu*)
Chris@1 4693 # Under GNU Hurd, this test is not required because there is
Chris@1 4694 # no limit to the length of command line arguments.
Chris@1 4695 # Libtool will interpret -1 as no limit whatsoever
Chris@1 4696 lt_cv_sys_max_cmd_len=-1;
Chris@1 4697 ;;
Chris@1 4698
Chris@1 4699 cygwin* | mingw* | cegcc*)
Chris@1 4700 # On Win9x/ME, this test blows up -- it succeeds, but takes
Chris@1 4701 # about 5 minutes as the teststring grows exponentially.
Chris@1 4702 # Worse, since 9x/ME are not pre-emptively multitasking,
Chris@1 4703 # you end up with a "frozen" computer, even though with patience
Chris@1 4704 # the test eventually succeeds (with a max line length of 256k).
Chris@1 4705 # Instead, let's just punt: use the minimum linelength reported by
Chris@1 4706 # all of the supported platforms: 8192 (on NT/2K/XP).
Chris@1 4707 lt_cv_sys_max_cmd_len=8192;
Chris@1 4708 ;;
Chris@1 4709
Chris@1 4710 mint*)
Chris@1 4711 # On MiNT this can take a long time and run out of memory.
Chris@1 4712 lt_cv_sys_max_cmd_len=8192;
Chris@1 4713 ;;
Chris@1 4714
Chris@1 4715 amigaos*)
Chris@1 4716 # On AmigaOS with pdksh, this test takes hours, literally.
Chris@1 4717 # So we just punt and use a minimum line length of 8192.
Chris@1 4718 lt_cv_sys_max_cmd_len=8192;
Chris@1 4719 ;;
Chris@1 4720
Chris@1 4721 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Chris@1 4722 # This has been around since 386BSD, at least. Likely further.
Chris@1 4723 if test -x /sbin/sysctl; then
Chris@1 4724 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
Chris@1 4725 elif test -x /usr/sbin/sysctl; then
Chris@1 4726 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
Chris@1 4727 else
Chris@1 4728 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Chris@1 4729 fi
Chris@1 4730 # And add a safety zone
Chris@1 4731 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Chris@1 4732 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Chris@1 4733 ;;
Chris@1 4734
Chris@1 4735 interix*)
Chris@1 4736 # We know the value 262144 and hardcode it with a safety zone (like BSD)
Chris@1 4737 lt_cv_sys_max_cmd_len=196608
Chris@1 4738 ;;
Chris@1 4739
Chris@1 4740 osf*)
Chris@1 4741 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
Chris@1 4742 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
Chris@1 4743 # nice to cause kernel panics so lets avoid the loop below.
Chris@1 4744 # First set a reasonable default.
Chris@1 4745 lt_cv_sys_max_cmd_len=16384
Chris@1 4746 #
Chris@1 4747 if test -x /sbin/sysconfig; then
Chris@1 4748 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
Chris@1 4749 *1*) lt_cv_sys_max_cmd_len=-1 ;;
Chris@1 4750 esac
Chris@1 4751 fi
Chris@1 4752 ;;
Chris@1 4753 sco3.2v5*)
Chris@1 4754 lt_cv_sys_max_cmd_len=102400
Chris@1 4755 ;;
Chris@1 4756 sysv5* | sco5v6* | sysv4.2uw2*)
Chris@1 4757 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
Chris@1 4758 if test -n "$kargmax"; then
Chris@1 4759 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
Chris@1 4760 else
Chris@1 4761 lt_cv_sys_max_cmd_len=32768
Chris@1 4762 fi
Chris@1 4763 ;;
Chris@1 4764 *)
Chris@1 4765 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
Chris@1 4766 if test -n "$lt_cv_sys_max_cmd_len"; then
Chris@1 4767 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Chris@1 4768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Chris@1 4769 else
Chris@1 4770 # Make teststring a little bigger before we do anything with it.
Chris@1 4771 # a 1K string should be a reasonable start.
Chris@1 4772 for i in 1 2 3 4 5 6 7 8 ; do
Chris@1 4773 teststring=$teststring$teststring
Chris@1 4774 done
Chris@1 4775 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
Chris@1 4776 # If test is not a shell built-in, we'll probably end up computing a
Chris@1 4777 # maximum length that is only half of the actual maximum length, but
Chris@1 4778 # we can't tell.
Chris@1 4779 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
Chris@1 4780 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Chris@1 4781 test $i != 17 # 1/2 MB should be enough
Chris@1 4782 do
Chris@1 4783 i=`expr $i + 1`
Chris@1 4784 teststring=$teststring$teststring
Chris@1 4785 done
Chris@1 4786 # Only check the string length outside the loop.
Chris@1 4787 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
Chris@1 4788 teststring=
Chris@1 4789 # Add a significant safety factor because C++ compilers can tack on
Chris@1 4790 # massive amounts of additional arguments before passing them to the
Chris@1 4791 # linker. It appears as though 1/2 is a usable value.
Chris@1 4792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
Chris@1 4793 fi
Chris@1 4794 ;;
Chris@1 4795 esac
Chris@1 4796
Chris@1 4797 fi
Chris@1 4798
Chris@1 4799 if test -n $lt_cv_sys_max_cmd_len ; then
Chris@1 4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
Chris@1 4801 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
Chris@1 4802 else
Chris@1 4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
Chris@1 4804 $as_echo "none" >&6; }
Chris@1 4805 fi
Chris@1 4806 max_cmd_len=$lt_cv_sys_max_cmd_len
Chris@1 4807
Chris@1 4808
Chris@1 4809
Chris@1 4810
Chris@1 4811
Chris@1 4812
Chris@1 4813 : ${CP="cp -f"}
Chris@1 4814 : ${MV="mv -f"}
Chris@1 4815 : ${RM="rm -f"}
Chris@1 4816
Chris@1 4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
Chris@1 4818 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
Chris@1 4819 # Try some XSI features
Chris@1 4820 xsi_shell=no
Chris@1 4821 ( _lt_dummy="a/b/c"
Chris@1 4822 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
Chris@1 4823 = c,a/b,b/c, \
Chris@1 4824 && eval 'test $(( 1 + 1 )) -eq 2 \
Chris@1 4825 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
Chris@1 4826 && xsi_shell=yes
Chris@1 4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
Chris@1 4828 $as_echo "$xsi_shell" >&6; }
Chris@1 4829
Chris@1 4830
Chris@1 4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
Chris@1 4832 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
Chris@1 4833 lt_shell_append=no
Chris@1 4834 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
Chris@1 4835 >/dev/null 2>&1 \
Chris@1 4836 && lt_shell_append=yes
Chris@1 4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
Chris@1 4838 $as_echo "$lt_shell_append" >&6; }
Chris@1 4839
Chris@1 4840
Chris@1 4841 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Chris@1 4842 lt_unset=unset
Chris@1 4843 else
Chris@1 4844 lt_unset=false
Chris@1 4845 fi
Chris@1 4846
Chris@1 4847
Chris@1 4848
Chris@1 4849
Chris@1 4850
Chris@1 4851 # test EBCDIC or ASCII
Chris@1 4852 case `echo X|tr X '\101'` in
Chris@1 4853 A) # ASCII based system
Chris@1 4854 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
Chris@1 4855 lt_SP2NL='tr \040 \012'
Chris@1 4856 lt_NL2SP='tr \015\012 \040\040'
Chris@1 4857 ;;
Chris@1 4858 *) # EBCDIC based system
Chris@1 4859 lt_SP2NL='tr \100 \n'
Chris@1 4860 lt_NL2SP='tr \r\n \100\100'
Chris@1 4861 ;;
Chris@1 4862 esac
Chris@1 4863
Chris@1 4864
Chris@1 4865
Chris@1 4866
Chris@1 4867
Chris@1 4868
Chris@1 4869
Chris@1 4870
Chris@1 4871
Chris@1 4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
Chris@1 4873 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
Chris@1 4874 if ${lt_cv_to_host_file_cmd+:} false; then :
Chris@1 4875 $as_echo_n "(cached) " >&6
Chris@1 4876 else
Chris@1 4877 case $host in
Chris@1 4878 *-*-mingw* )
Chris@1 4879 case $build in
Chris@1 4880 *-*-mingw* ) # actually msys
Chris@1 4881 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
Chris@1 4882 ;;
Chris@1 4883 *-*-cygwin* )
Chris@1 4884 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
Chris@1 4885 ;;
Chris@1 4886 * ) # otherwise, assume *nix
Chris@1 4887 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
Chris@1 4888 ;;
Chris@1 4889 esac
Chris@1 4890 ;;
Chris@1 4891 *-*-cygwin* )
Chris@1 4892 case $build in
Chris@1 4893 *-*-mingw* ) # actually msys
Chris@1 4894 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
Chris@1 4895 ;;
Chris@1 4896 *-*-cygwin* )
Chris@1 4897 lt_cv_to_host_file_cmd=func_convert_file_noop
Chris@1 4898 ;;
Chris@1 4899 * ) # otherwise, assume *nix
Chris@1 4900 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
Chris@1 4901 ;;
Chris@1 4902 esac
Chris@1 4903 ;;
Chris@1 4904 * ) # unhandled hosts (and "normal" native builds)
Chris@1 4905 lt_cv_to_host_file_cmd=func_convert_file_noop
Chris@1 4906 ;;
Chris@1 4907 esac
Chris@1 4908
Chris@1 4909 fi
Chris@1 4910
Chris@1 4911 to_host_file_cmd=$lt_cv_to_host_file_cmd
Chris@1 4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
Chris@1 4913 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
Chris@1 4914
Chris@1 4915
Chris@1 4916
Chris@1 4917
Chris@1 4918
Chris@1 4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
Chris@1 4920 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
Chris@1 4921 if ${lt_cv_to_tool_file_cmd+:} false; then :
Chris@1 4922 $as_echo_n "(cached) " >&6
Chris@1 4923 else
Chris@1 4924 #assume ordinary cross tools, or native build.
Chris@1 4925 lt_cv_to_tool_file_cmd=func_convert_file_noop
Chris@1 4926 case $host in
Chris@1 4927 *-*-mingw* )
Chris@1 4928 case $build in
Chris@1 4929 *-*-mingw* ) # actually msys
Chris@1 4930 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
Chris@1 4931 ;;
Chris@1 4932 esac
Chris@1 4933 ;;
Chris@1 4934 esac
Chris@1 4935
Chris@1 4936 fi
Chris@1 4937
Chris@1 4938 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Chris@1 4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
Chris@1 4940 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
Chris@1 4941
Chris@1 4942
Chris@1 4943
Chris@1 4944
Chris@1 4945
Chris@1 4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
Chris@1 4947 $as_echo_n "checking for $LD option to reload object files... " >&6; }
Chris@1 4948 if ${lt_cv_ld_reload_flag+:} false; then :
Chris@1 4949 $as_echo_n "(cached) " >&6
Chris@1 4950 else
Chris@1 4951 lt_cv_ld_reload_flag='-r'
Chris@1 4952 fi
Chris@1 4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
Chris@1 4954 $as_echo "$lt_cv_ld_reload_flag" >&6; }
Chris@1 4955 reload_flag=$lt_cv_ld_reload_flag
Chris@1 4956 case $reload_flag in
Chris@1 4957 "" | " "*) ;;
Chris@1 4958 *) reload_flag=" $reload_flag" ;;
Chris@1 4959 esac
Chris@1 4960 reload_cmds='$LD$reload_flag -o $output$reload_objs'
Chris@1 4961 case $host_os in
Chris@1 4962 cygwin* | mingw* | pw32* | cegcc*)
Chris@1 4963 if test "$GCC" != yes; then
Chris@1 4964 reload_cmds=false
Chris@1 4965 fi
Chris@1 4966 ;;
Chris@1 4967 darwin*)
Chris@1 4968 if test "$GCC" = yes; then
Chris@1 4969 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
Chris@1 4970 else
Chris@1 4971 reload_cmds='$LD$reload_flag -o $output$reload_objs'
Chris@1 4972 fi
Chris@1 4973 ;;
Chris@1 4974 esac
Chris@1 4975
Chris@1 4976
Chris@1 4977
Chris@1 4978
Chris@1 4979
Chris@1 4980
Chris@1 4981
Chris@1 4982
Chris@1 4983
Chris@1 4984 if test -n "$ac_tool_prefix"; then
Chris@1 4985 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
Chris@1 4986 set dummy ${ac_tool_prefix}objdump; ac_word=$2
Chris@1 4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 4988 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 4989 if ${ac_cv_prog_OBJDUMP+:} false; then :
Chris@1 4990 $as_echo_n "(cached) " >&6
Chris@1 4991 else
Chris@1 4992 if test -n "$OBJDUMP"; then
Chris@1 4993 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
Chris@1 4994 else
Chris@1 4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 4996 for as_dir in $PATH
Chris@1 4997 do
Chris@1 4998 IFS=$as_save_IFS
Chris@1 4999 test -z "$as_dir" && as_dir=.
Chris@1 5000 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 5001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 5002 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Chris@1 5003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 5004 break 2
Chris@1 5005 fi
Chris@1 5006 done
Chris@1 5007 done
Chris@1 5008 IFS=$as_save_IFS
Chris@1 5009
Chris@1 5010 fi
Chris@1 5011 fi
Chris@1 5012 OBJDUMP=$ac_cv_prog_OBJDUMP
Chris@1 5013 if test -n "$OBJDUMP"; then
Chris@1 5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
Chris@1 5015 $as_echo "$OBJDUMP" >&6; }
Chris@1 5016 else
Chris@1 5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 5018 $as_echo "no" >&6; }
Chris@1 5019 fi
Chris@1 5020
Chris@1 5021
Chris@1 5022 fi
Chris@1 5023 if test -z "$ac_cv_prog_OBJDUMP"; then
Chris@1 5024 ac_ct_OBJDUMP=$OBJDUMP
Chris@1 5025 # Extract the first word of "objdump", so it can be a program name with args.
Chris@1 5026 set dummy objdump; ac_word=$2
Chris@1 5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 5028 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 5029 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Chris@1 5030 $as_echo_n "(cached) " >&6
Chris@1 5031 else
Chris@1 5032 if test -n "$ac_ct_OBJDUMP"; then
Chris@1 5033 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
Chris@1 5034 else
Chris@1 5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 5036 for as_dir in $PATH
Chris@1 5037 do
Chris@1 5038 IFS=$as_save_IFS
Chris@1 5039 test -z "$as_dir" && as_dir=.
Chris@1 5040 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 5041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 5042 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Chris@1 5043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 5044 break 2
Chris@1 5045 fi
Chris@1 5046 done
Chris@1 5047 done
Chris@1 5048 IFS=$as_save_IFS
Chris@1 5049
Chris@1 5050 fi
Chris@1 5051 fi
Chris@1 5052 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
Chris@1 5053 if test -n "$ac_ct_OBJDUMP"; then
Chris@1 5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
Chris@1 5055 $as_echo "$ac_ct_OBJDUMP" >&6; }
Chris@1 5056 else
Chris@1 5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 5058 $as_echo "no" >&6; }
Chris@1 5059 fi
Chris@1 5060
Chris@1 5061 if test "x$ac_ct_OBJDUMP" = x; then
Chris@1 5062 OBJDUMP="false"
Chris@1 5063 else
Chris@1 5064 case $cross_compiling:$ac_tool_warned in
Chris@1 5065 yes:)
Chris@1 5066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 5067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 5068 ac_tool_warned=yes ;;
Chris@1 5069 esac
Chris@1 5070 OBJDUMP=$ac_ct_OBJDUMP
Chris@1 5071 fi
Chris@1 5072 else
Chris@1 5073 OBJDUMP="$ac_cv_prog_OBJDUMP"
Chris@1 5074 fi
Chris@1 5075
Chris@1 5076 test -z "$OBJDUMP" && OBJDUMP=objdump
Chris@1 5077
Chris@1 5078
Chris@1 5079
Chris@1 5080
Chris@1 5081
Chris@1 5082
Chris@1 5083
Chris@1 5084
Chris@1 5085
Chris@1 5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
Chris@1 5087 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
Chris@1 5088 if ${lt_cv_deplibs_check_method+:} false; then :
Chris@1 5089 $as_echo_n "(cached) " >&6
Chris@1 5090 else
Chris@1 5091 lt_cv_file_magic_cmd='$MAGIC_CMD'
Chris@1 5092 lt_cv_file_magic_test_file=
Chris@1 5093 lt_cv_deplibs_check_method='unknown'
Chris@1 5094 # Need to set the preceding variable on all platforms that support
Chris@1 5095 # interlibrary dependencies.
Chris@1 5096 # 'none' -- dependencies not supported.
Chris@1 5097 # `unknown' -- same as none, but documents that we really don't know.
Chris@1 5098 # 'pass_all' -- all dependencies passed with no checks.
Chris@1 5099 # 'test_compile' -- check by making test program.
Chris@1 5100 # 'file_magic [[regex]]' -- check by looking for files in library path
Chris@1 5101 # which responds to the $file_magic_cmd with a given extended regex.
Chris@1 5102 # If you have `file' or equivalent on your system and you're not sure
Chris@1 5103 # whether `pass_all' will *always* work, you probably want this one.
Chris@1 5104
Chris@1 5105 case $host_os in
Chris@1 5106 aix[4-9]*)
Chris@1 5107 lt_cv_deplibs_check_method=pass_all
Chris@1 5108 ;;
Chris@1 5109
Chris@1 5110 beos*)
Chris@1 5111 lt_cv_deplibs_check_method=pass_all
Chris@1 5112 ;;
Chris@1 5113
Chris@1 5114 bsdi[45]*)
Chris@1 5115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
Chris@1 5116 lt_cv_file_magic_cmd='/usr/bin/file -L'
Chris@1 5117 lt_cv_file_magic_test_file=/shlib/libc.so
Chris@1 5118 ;;
Chris@1 5119
Chris@1 5120 cygwin*)
Chris@1 5121 # func_win32_libid is a shell function defined in ltmain.sh
Chris@1 5122 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Chris@1 5123 lt_cv_file_magic_cmd='func_win32_libid'
Chris@1 5124 ;;
Chris@1 5125
Chris@1 5126 mingw* | pw32*)
Chris@1 5127 # Base MSYS/MinGW do not provide the 'file' command needed by
Chris@1 5128 # func_win32_libid shell function, so use a weaker test based on 'objdump',
Chris@1 5129 # unless we find 'file', for example because we are cross-compiling.
Chris@1 5130 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
Chris@1 5131 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
Chris@1 5132 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Chris@1 5133 lt_cv_file_magic_cmd='func_win32_libid'
Chris@1 5134 else
Chris@1 5135 # Keep this pattern in sync with the one in func_win32_libid.
Chris@1 5136 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
Chris@1 5137 lt_cv_file_magic_cmd='$OBJDUMP -f'
Chris@1 5138 fi
Chris@1 5139 ;;
Chris@1 5140
Chris@1 5141 cegcc*)
Chris@1 5142 # use the weaker test based on 'objdump'. See mingw*.
Chris@1 5143 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
Chris@1 5144 lt_cv_file_magic_cmd='$OBJDUMP -f'
Chris@1 5145 ;;
Chris@1 5146
Chris@1 5147 darwin* | rhapsody*)
Chris@1 5148 lt_cv_deplibs_check_method=pass_all
Chris@1 5149 ;;
Chris@1 5150
Chris@1 5151 freebsd* | dragonfly*)
Chris@1 5152 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Chris@1 5153 case $host_cpu in
Chris@1 5154 i*86 )
Chris@1 5155 # Not sure whether the presence of OpenBSD here was a mistake.
Chris@1 5156 # Let's accept both of them until this is cleared up.
Chris@1 5157 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
Chris@1 5158 lt_cv_file_magic_cmd=/usr/bin/file
Chris@1 5159 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
Chris@1 5160 ;;
Chris@1 5161 esac
Chris@1 5162 else
Chris@1 5163 lt_cv_deplibs_check_method=pass_all
Chris@1 5164 fi
Chris@1 5165 ;;
Chris@1 5166
Chris@1 5167 gnu*)
Chris@1 5168 lt_cv_deplibs_check_method=pass_all
Chris@1 5169 ;;
Chris@1 5170
Chris@1 5171 haiku*)
Chris@1 5172 lt_cv_deplibs_check_method=pass_all
Chris@1 5173 ;;
Chris@1 5174
Chris@1 5175 hpux10.20* | hpux11*)
Chris@1 5176 lt_cv_file_magic_cmd=/usr/bin/file
Chris@1 5177 case $host_cpu in
Chris@1 5178 ia64*)
Chris@1 5179 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 5180 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
Chris@1 5181 ;;
Chris@1 5182 hppa*64*)
Chris@1 5183 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 5184 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
Chris@1 5185 ;;
Chris@1 5186 *)
Chris@1 5187 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
Chris@1 5188 lt_cv_file_magic_test_file=/usr/lib/libc.sl
Chris@1 5189 ;;
Chris@1 5190 esac
Chris@1 5191 ;;
Chris@1 5192
Chris@1 5193 interix[3-9]*)
Chris@1 5194 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
Chris@1 5195 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
Chris@1 5196 ;;
Chris@1 5197
Chris@1 5198 irix5* | irix6* | nonstopux*)
Chris@1 5199 case $LD in
Chris@1 5200 *-32|*"-32 ") libmagic=32-bit;;
Chris@1 5201 *-n32|*"-n32 ") libmagic=N32;;
Chris@1 5202 *-64|*"-64 ") libmagic=64-bit;;
Chris@1 5203 *) libmagic=never-match;;
Chris@1 5204 esac
Chris@1 5205 lt_cv_deplibs_check_method=pass_all
Chris@1 5206 ;;
Chris@1 5207
Chris@1 5208 # This must be Linux ELF.
Chris@1 5209 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@1 5210 lt_cv_deplibs_check_method=pass_all
Chris@1 5211 ;;
Chris@1 5212
Chris@1 5213 netbsd*)
Chris@1 5214 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Chris@1 5215 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Chris@1 5216 else
Chris@1 5217 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
Chris@1 5218 fi
Chris@1 5219 ;;
Chris@1 5220
Chris@1 5221 newos6*)
Chris@1 5222 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
Chris@1 5223 lt_cv_file_magic_cmd=/usr/bin/file
Chris@1 5224 lt_cv_file_magic_test_file=/usr/lib/libnls.so
Chris@1 5225 ;;
Chris@1 5226
Chris@1 5227 *nto* | *qnx*)
Chris@1 5228 lt_cv_deplibs_check_method=pass_all
Chris@1 5229 ;;
Chris@1 5230
Chris@1 5231 openbsd*)
Chris@1 5232 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@1 5233 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
Chris@1 5234 else
Chris@1 5235 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Chris@1 5236 fi
Chris@1 5237 ;;
Chris@1 5238
Chris@1 5239 osf3* | osf4* | osf5*)
Chris@1 5240 lt_cv_deplibs_check_method=pass_all
Chris@1 5241 ;;
Chris@1 5242
Chris@1 5243 rdos*)
Chris@1 5244 lt_cv_deplibs_check_method=pass_all
Chris@1 5245 ;;
Chris@1 5246
Chris@1 5247 solaris*)
Chris@1 5248 lt_cv_deplibs_check_method=pass_all
Chris@1 5249 ;;
Chris@1 5250
Chris@1 5251 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Chris@1 5252 lt_cv_deplibs_check_method=pass_all
Chris@1 5253 ;;
Chris@1 5254
Chris@1 5255 sysv4 | sysv4.3*)
Chris@1 5256 case $host_vendor in
Chris@1 5257 motorola)
Chris@1 5258 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 5259 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
Chris@1 5260 ;;
Chris@1 5261 ncr)
Chris@1 5262 lt_cv_deplibs_check_method=pass_all
Chris@1 5263 ;;
Chris@1 5264 sequent)
Chris@1 5265 lt_cv_file_magic_cmd='/bin/file'
Chris@1 5266 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
Chris@1 5267 ;;
Chris@1 5268 sni)
Chris@1 5269 lt_cv_file_magic_cmd='/bin/file'
Chris@1 5270 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
Chris@1 5271 lt_cv_file_magic_test_file=/lib/libc.so
Chris@1 5272 ;;
Chris@1 5273 siemens)
Chris@1 5274 lt_cv_deplibs_check_method=pass_all
Chris@1 5275 ;;
Chris@1 5276 pc)
Chris@1 5277 lt_cv_deplibs_check_method=pass_all
Chris@1 5278 ;;
Chris@1 5279 esac
Chris@1 5280 ;;
Chris@1 5281
Chris@1 5282 tpf*)
Chris@1 5283 lt_cv_deplibs_check_method=pass_all
Chris@1 5284 ;;
Chris@1 5285 esac
Chris@1 5286
Chris@1 5287 fi
Chris@1 5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
Chris@1 5289 $as_echo "$lt_cv_deplibs_check_method" >&6; }
Chris@1 5290
Chris@1 5291 file_magic_glob=
Chris@1 5292 want_nocaseglob=no
Chris@1 5293 if test "$build" = "$host"; then
Chris@1 5294 case $host_os in
Chris@1 5295 mingw* | pw32*)
Chris@1 5296 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
Chris@1 5297 want_nocaseglob=yes
Chris@1 5298 else
Chris@1 5299 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
Chris@1 5300 fi
Chris@1 5301 ;;
Chris@1 5302 esac
Chris@1 5303 fi
Chris@1 5304
Chris@1 5305 file_magic_cmd=$lt_cv_file_magic_cmd
Chris@1 5306 deplibs_check_method=$lt_cv_deplibs_check_method
Chris@1 5307 test -z "$deplibs_check_method" && deplibs_check_method=unknown
Chris@1 5308
Chris@1 5309
Chris@1 5310
Chris@1 5311
Chris@1 5312
Chris@1 5313
Chris@1 5314
Chris@1 5315
Chris@1 5316
Chris@1 5317
Chris@1 5318
Chris@1 5319
Chris@1 5320
Chris@1 5321
Chris@1 5322
Chris@1 5323
Chris@1 5324
Chris@1 5325
Chris@1 5326
Chris@1 5327
Chris@1 5328
Chris@1 5329
Chris@1 5330 if test -n "$ac_tool_prefix"; then
Chris@1 5331 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
Chris@1 5332 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Chris@1 5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 5334 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 5335 if ${ac_cv_prog_DLLTOOL+:} false; then :
Chris@1 5336 $as_echo_n "(cached) " >&6
Chris@1 5337 else
Chris@1 5338 if test -n "$DLLTOOL"; then
Chris@1 5339 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
Chris@1 5340 else
Chris@1 5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 5342 for as_dir in $PATH
Chris@1 5343 do
Chris@1 5344 IFS=$as_save_IFS
Chris@1 5345 test -z "$as_dir" && as_dir=.
Chris@1 5346 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 5347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 5348 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
Chris@1 5349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 5350 break 2
Chris@1 5351 fi
Chris@1 5352 done
Chris@1 5353 done
Chris@1 5354 IFS=$as_save_IFS
Chris@1 5355
Chris@1 5356 fi
Chris@1 5357 fi
Chris@1 5358 DLLTOOL=$ac_cv_prog_DLLTOOL
Chris@1 5359 if test -n "$DLLTOOL"; then
Chris@1 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
Chris@1 5361 $as_echo "$DLLTOOL" >&6; }
Chris@1 5362 else
Chris@1 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 5364 $as_echo "no" >&6; }
Chris@1 5365 fi
Chris@1 5366
Chris@1 5367
Chris@1 5368 fi
Chris@1 5369 if test -z "$ac_cv_prog_DLLTOOL"; then
Chris@1 5370 ac_ct_DLLTOOL=$DLLTOOL
Chris@1 5371 # Extract the first word of "dlltool", so it can be a program name with args.
Chris@1 5372 set dummy dlltool; ac_word=$2
Chris@1 5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 5374 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 5375 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
Chris@1 5376 $as_echo_n "(cached) " >&6
Chris@1 5377 else
Chris@1 5378 if test -n "$ac_ct_DLLTOOL"; then
Chris@1 5379 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
Chris@1 5380 else
Chris@1 5381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 5382 for as_dir in $PATH
Chris@1 5383 do
Chris@1 5384 IFS=$as_save_IFS
Chris@1 5385 test -z "$as_dir" && as_dir=.
Chris@1 5386 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 5387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 5388 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
Chris@1 5389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 5390 break 2
Chris@1 5391 fi
Chris@1 5392 done
Chris@1 5393 done
Chris@1 5394 IFS=$as_save_IFS
Chris@1 5395
Chris@1 5396 fi
Chris@1 5397 fi
Chris@1 5398 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
Chris@1 5399 if test -n "$ac_ct_DLLTOOL"; then
Chris@1 5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
Chris@1 5401 $as_echo "$ac_ct_DLLTOOL" >&6; }
Chris@1 5402 else
Chris@1 5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 5404 $as_echo "no" >&6; }
Chris@1 5405 fi
Chris@1 5406
Chris@1 5407 if test "x$ac_ct_DLLTOOL" = x; then
Chris@1 5408 DLLTOOL="false"
Chris@1 5409 else
Chris@1 5410 case $cross_compiling:$ac_tool_warned in
Chris@1 5411 yes:)
Chris@1 5412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 5413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 5414 ac_tool_warned=yes ;;
Chris@1 5415 esac
Chris@1 5416 DLLTOOL=$ac_ct_DLLTOOL
Chris@1 5417 fi
Chris@1 5418 else
Chris@1 5419 DLLTOOL="$ac_cv_prog_DLLTOOL"
Chris@1 5420 fi
Chris@1 5421
Chris@1 5422 test -z "$DLLTOOL" && DLLTOOL=dlltool
Chris@1 5423
Chris@1 5424
Chris@1 5425
Chris@1 5426
Chris@1 5427
Chris@1 5428
Chris@1 5429
Chris@1 5430
Chris@1 5431
Chris@1 5432
Chris@1 5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
Chris@1 5434 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
Chris@1 5435 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
Chris@1 5436 $as_echo_n "(cached) " >&6
Chris@1 5437 else
Chris@1 5438 lt_cv_sharedlib_from_linklib_cmd='unknown'
Chris@1 5439
Chris@1 5440 case $host_os in
Chris@1 5441 cygwin* | mingw* | pw32* | cegcc*)
Chris@1 5442 # two different shell functions defined in ltmain.sh
Chris@1 5443 # decide which to use based on capabilities of $DLLTOOL
Chris@1 5444 case `$DLLTOOL --help 2>&1` in
Chris@1 5445 *--identify-strict*)
Chris@1 5446 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
Chris@1 5447 ;;
Chris@1 5448 *)
Chris@1 5449 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
Chris@1 5450 ;;
Chris@1 5451 esac
Chris@1 5452 ;;
Chris@1 5453 *)
Chris@1 5454 # fallback: assume linklib IS sharedlib
Chris@1 5455 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
Chris@1 5456 ;;
Chris@1 5457 esac
Chris@1 5458
Chris@1 5459 fi
Chris@1 5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
Chris@1 5461 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
Chris@1 5462 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
Chris@1 5463 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
Chris@1 5464
Chris@1 5465
Chris@1 5466
Chris@1 5467
Chris@1 5468
Chris@1 5469
Chris@1 5470
Chris@1 5471
Chris@1 5472 if test -n "$ac_tool_prefix"; then
Chris@1 5473 for ac_prog in ar
Chris@1 5474 do
Chris@1 5475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@1 5476 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@1 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 5478 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 5479 if ${ac_cv_prog_AR+:} false; then :
Chris@1 5480 $as_echo_n "(cached) " >&6
Chris@1 5481 else
Chris@1 5482 if test -n "$AR"; then
Chris@1 5483 ac_cv_prog_AR="$AR" # Let the user override the test.
Chris@1 5484 else
Chris@1 5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 5486 for as_dir in $PATH
Chris@1 5487 do
Chris@1 5488 IFS=$as_save_IFS
Chris@1 5489 test -z "$as_dir" && as_dir=.
Chris@1 5490 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 5491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 5492 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Chris@1 5493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 5494 break 2
Chris@1 5495 fi
Chris@1 5496 done
Chris@1 5497 done
Chris@1 5498 IFS=$as_save_IFS
Chris@1 5499
Chris@1 5500 fi
Chris@1 5501 fi
Chris@1 5502 AR=$ac_cv_prog_AR
Chris@1 5503 if test -n "$AR"; then
Chris@1 5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Chris@1 5505 $as_echo "$AR" >&6; }
Chris@1 5506 else
Chris@1 5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 5508 $as_echo "no" >&6; }
Chris@1 5509 fi
Chris@1 5510
Chris@1 5511
Chris@1 5512 test -n "$AR" && break
Chris@1 5513 done
Chris@1 5514 fi
Chris@1 5515 if test -z "$AR"; then
Chris@1 5516 ac_ct_AR=$AR
Chris@1 5517 for ac_prog in ar
Chris@1 5518 do
Chris@1 5519 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@1 5520 set dummy $ac_prog; ac_word=$2
Chris@1 5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 5522 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 5523 if ${ac_cv_prog_ac_ct_AR+:} false; then :
Chris@1 5524 $as_echo_n "(cached) " >&6
Chris@1 5525 else
Chris@1 5526 if test -n "$ac_ct_AR"; then
Chris@1 5527 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Chris@1 5528 else
Chris@1 5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 5530 for as_dir in $PATH
Chris@1 5531 do
Chris@1 5532 IFS=$as_save_IFS
Chris@1 5533 test -z "$as_dir" && as_dir=.
Chris@1 5534 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 5535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 5536 ac_cv_prog_ac_ct_AR="$ac_prog"
Chris@1 5537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 5538 break 2
Chris@1 5539 fi
Chris@1 5540 done
Chris@1 5541 done
Chris@1 5542 IFS=$as_save_IFS
Chris@1 5543
Chris@1 5544 fi
Chris@1 5545 fi
Chris@1 5546 ac_ct_AR=$ac_cv_prog_ac_ct_AR
Chris@1 5547 if test -n "$ac_ct_AR"; then
Chris@1 5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Chris@1 5549 $as_echo "$ac_ct_AR" >&6; }
Chris@1 5550 else
Chris@1 5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 5552 $as_echo "no" >&6; }
Chris@1 5553 fi
Chris@1 5554
Chris@1 5555
Chris@1 5556 test -n "$ac_ct_AR" && break
Chris@1 5557 done
Chris@1 5558
Chris@1 5559 if test "x$ac_ct_AR" = x; then
Chris@1 5560 AR="false"
Chris@1 5561 else
Chris@1 5562 case $cross_compiling:$ac_tool_warned in
Chris@1 5563 yes:)
Chris@1 5564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 5565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 5566 ac_tool_warned=yes ;;
Chris@1 5567 esac
Chris@1 5568 AR=$ac_ct_AR
Chris@1 5569 fi
Chris@1 5570 fi
Chris@1 5571
Chris@1 5572 : ${AR=ar}
Chris@1 5573 : ${AR_FLAGS=cru}
Chris@1 5574
Chris@1 5575
Chris@1 5576
Chris@1 5577
Chris@1 5578
Chris@1 5579
Chris@1 5580
Chris@1 5581
Chris@1 5582
Chris@1 5583
Chris@1 5584
Chris@1 5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
Chris@1 5586 $as_echo_n "checking for archiver @FILE support... " >&6; }
Chris@1 5587 if ${lt_cv_ar_at_file+:} false; then :
Chris@1 5588 $as_echo_n "(cached) " >&6
Chris@1 5589 else
Chris@1 5590 lt_cv_ar_at_file=no
Chris@1 5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 5592 /* end confdefs.h. */
Chris@1 5593
Chris@1 5594 int
Chris@1 5595 main ()
Chris@1 5596 {
Chris@1 5597
Chris@1 5598 ;
Chris@1 5599 return 0;
Chris@1 5600 }
Chris@1 5601 _ACEOF
Chris@1 5602 if ac_fn_c_try_compile "$LINENO"; then :
Chris@1 5603 echo conftest.$ac_objext > conftest.lst
Chris@1 5604 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
Chris@1 5605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
Chris@1 5606 (eval $lt_ar_try) 2>&5
Chris@1 5607 ac_status=$?
Chris@1 5608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 5609 test $ac_status = 0; }
Chris@1 5610 if test "$ac_status" -eq 0; then
Chris@1 5611 # Ensure the archiver fails upon bogus file names.
Chris@1 5612 rm -f conftest.$ac_objext libconftest.a
Chris@1 5613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
Chris@1 5614 (eval $lt_ar_try) 2>&5
Chris@1 5615 ac_status=$?
Chris@1 5616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 5617 test $ac_status = 0; }
Chris@1 5618 if test "$ac_status" -ne 0; then
Chris@1 5619 lt_cv_ar_at_file=@
Chris@1 5620 fi
Chris@1 5621 fi
Chris@1 5622 rm -f conftest.* libconftest.a
Chris@1 5623
Chris@1 5624 fi
Chris@1 5625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@1 5626
Chris@1 5627 fi
Chris@1 5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
Chris@1 5629 $as_echo "$lt_cv_ar_at_file" >&6; }
Chris@1 5630
Chris@1 5631 if test "x$lt_cv_ar_at_file" = xno; then
Chris@1 5632 archiver_list_spec=
Chris@1 5633 else
Chris@1 5634 archiver_list_spec=$lt_cv_ar_at_file
Chris@1 5635 fi
Chris@1 5636
Chris@1 5637
Chris@1 5638
Chris@1 5639
Chris@1 5640
Chris@1 5641
Chris@1 5642
Chris@1 5643 if test -n "$ac_tool_prefix"; then
Chris@1 5644 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
Chris@1 5645 set dummy ${ac_tool_prefix}strip; ac_word=$2
Chris@1 5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 5647 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 5648 if ${ac_cv_prog_STRIP+:} false; then :
Chris@1 5649 $as_echo_n "(cached) " >&6
Chris@1 5650 else
Chris@1 5651 if test -n "$STRIP"; then
Chris@1 5652 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
Chris@1 5653 else
Chris@1 5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 5655 for as_dir in $PATH
Chris@1 5656 do
Chris@1 5657 IFS=$as_save_IFS
Chris@1 5658 test -z "$as_dir" && as_dir=.
Chris@1 5659 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 5660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 5661 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Chris@1 5662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 5663 break 2
Chris@1 5664 fi
Chris@1 5665 done
Chris@1 5666 done
Chris@1 5667 IFS=$as_save_IFS
Chris@1 5668
Chris@1 5669 fi
Chris@1 5670 fi
Chris@1 5671 STRIP=$ac_cv_prog_STRIP
Chris@1 5672 if test -n "$STRIP"; then
Chris@1 5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Chris@1 5674 $as_echo "$STRIP" >&6; }
Chris@1 5675 else
Chris@1 5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 5677 $as_echo "no" >&6; }
Chris@1 5678 fi
Chris@1 5679
Chris@1 5680
Chris@1 5681 fi
Chris@1 5682 if test -z "$ac_cv_prog_STRIP"; then
Chris@1 5683 ac_ct_STRIP=$STRIP
Chris@1 5684 # Extract the first word of "strip", so it can be a program name with args.
Chris@1 5685 set dummy strip; ac_word=$2
Chris@1 5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 5687 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 5688 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Chris@1 5689 $as_echo_n "(cached) " >&6
Chris@1 5690 else
Chris@1 5691 if test -n "$ac_ct_STRIP"; then
Chris@1 5692 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Chris@1 5693 else
Chris@1 5694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 5695 for as_dir in $PATH
Chris@1 5696 do
Chris@1 5697 IFS=$as_save_IFS
Chris@1 5698 test -z "$as_dir" && as_dir=.
Chris@1 5699 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 5700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 5701 ac_cv_prog_ac_ct_STRIP="strip"
Chris@1 5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 5703 break 2
Chris@1 5704 fi
Chris@1 5705 done
Chris@1 5706 done
Chris@1 5707 IFS=$as_save_IFS
Chris@1 5708
Chris@1 5709 fi
Chris@1 5710 fi
Chris@1 5711 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
Chris@1 5712 if test -n "$ac_ct_STRIP"; then
Chris@1 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Chris@1 5714 $as_echo "$ac_ct_STRIP" >&6; }
Chris@1 5715 else
Chris@1 5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 5717 $as_echo "no" >&6; }
Chris@1 5718 fi
Chris@1 5719
Chris@1 5720 if test "x$ac_ct_STRIP" = x; then
Chris@1 5721 STRIP=":"
Chris@1 5722 else
Chris@1 5723 case $cross_compiling:$ac_tool_warned in
Chris@1 5724 yes:)
Chris@1 5725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 5726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 5727 ac_tool_warned=yes ;;
Chris@1 5728 esac
Chris@1 5729 STRIP=$ac_ct_STRIP
Chris@1 5730 fi
Chris@1 5731 else
Chris@1 5732 STRIP="$ac_cv_prog_STRIP"
Chris@1 5733 fi
Chris@1 5734
Chris@1 5735 test -z "$STRIP" && STRIP=:
Chris@1 5736
Chris@1 5737
Chris@1 5738
Chris@1 5739
Chris@1 5740
Chris@1 5741
Chris@1 5742 if test -n "$ac_tool_prefix"; then
Chris@1 5743 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
Chris@1 5744 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Chris@1 5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 5746 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 5747 if ${ac_cv_prog_RANLIB+:} false; then :
Chris@1 5748 $as_echo_n "(cached) " >&6
Chris@1 5749 else
Chris@1 5750 if test -n "$RANLIB"; then
Chris@1 5751 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
Chris@1 5752 else
Chris@1 5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 5754 for as_dir in $PATH
Chris@1 5755 do
Chris@1 5756 IFS=$as_save_IFS
Chris@1 5757 test -z "$as_dir" && as_dir=.
Chris@1 5758 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 5759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 5760 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Chris@1 5761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 5762 break 2
Chris@1 5763 fi
Chris@1 5764 done
Chris@1 5765 done
Chris@1 5766 IFS=$as_save_IFS
Chris@1 5767
Chris@1 5768 fi
Chris@1 5769 fi
Chris@1 5770 RANLIB=$ac_cv_prog_RANLIB
Chris@1 5771 if test -n "$RANLIB"; then
Chris@1 5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Chris@1 5773 $as_echo "$RANLIB" >&6; }
Chris@1 5774 else
Chris@1 5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 5776 $as_echo "no" >&6; }
Chris@1 5777 fi
Chris@1 5778
Chris@1 5779
Chris@1 5780 fi
Chris@1 5781 if test -z "$ac_cv_prog_RANLIB"; then
Chris@1 5782 ac_ct_RANLIB=$RANLIB
Chris@1 5783 # Extract the first word of "ranlib", so it can be a program name with args.
Chris@1 5784 set dummy ranlib; ac_word=$2
Chris@1 5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 5786 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 5787 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Chris@1 5788 $as_echo_n "(cached) " >&6
Chris@1 5789 else
Chris@1 5790 if test -n "$ac_ct_RANLIB"; then
Chris@1 5791 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Chris@1 5792 else
Chris@1 5793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 5794 for as_dir in $PATH
Chris@1 5795 do
Chris@1 5796 IFS=$as_save_IFS
Chris@1 5797 test -z "$as_dir" && as_dir=.
Chris@1 5798 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 5799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 5800 ac_cv_prog_ac_ct_RANLIB="ranlib"
Chris@1 5801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 5802 break 2
Chris@1 5803 fi
Chris@1 5804 done
Chris@1 5805 done
Chris@1 5806 IFS=$as_save_IFS
Chris@1 5807
Chris@1 5808 fi
Chris@1 5809 fi
Chris@1 5810 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
Chris@1 5811 if test -n "$ac_ct_RANLIB"; then
Chris@1 5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Chris@1 5813 $as_echo "$ac_ct_RANLIB" >&6; }
Chris@1 5814 else
Chris@1 5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 5816 $as_echo "no" >&6; }
Chris@1 5817 fi
Chris@1 5818
Chris@1 5819 if test "x$ac_ct_RANLIB" = x; then
Chris@1 5820 RANLIB=":"
Chris@1 5821 else
Chris@1 5822 case $cross_compiling:$ac_tool_warned in
Chris@1 5823 yes:)
Chris@1 5824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 5825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 5826 ac_tool_warned=yes ;;
Chris@1 5827 esac
Chris@1 5828 RANLIB=$ac_ct_RANLIB
Chris@1 5829 fi
Chris@1 5830 else
Chris@1 5831 RANLIB="$ac_cv_prog_RANLIB"
Chris@1 5832 fi
Chris@1 5833
Chris@1 5834 test -z "$RANLIB" && RANLIB=:
Chris@1 5835
Chris@1 5836
Chris@1 5837
Chris@1 5838
Chris@1 5839
Chris@1 5840
Chris@1 5841 # Determine commands to create old-style static archives.
Chris@1 5842 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
Chris@1 5843 old_postinstall_cmds='chmod 644 $oldlib'
Chris@1 5844 old_postuninstall_cmds=
Chris@1 5845
Chris@1 5846 if test -n "$RANLIB"; then
Chris@1 5847 case $host_os in
Chris@1 5848 openbsd*)
Chris@1 5849 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
Chris@1 5850 ;;
Chris@1 5851 *)
Chris@1 5852 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
Chris@1 5853 ;;
Chris@1 5854 esac
Chris@1 5855 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
Chris@1 5856 fi
Chris@1 5857
Chris@1 5858 case $host_os in
Chris@1 5859 darwin*)
Chris@1 5860 lock_old_archive_extraction=yes ;;
Chris@1 5861 *)
Chris@1 5862 lock_old_archive_extraction=no ;;
Chris@1 5863 esac
Chris@1 5864
Chris@1 5865
Chris@1 5866
Chris@1 5867
Chris@1 5868
Chris@1 5869
Chris@1 5870
Chris@1 5871
Chris@1 5872
Chris@1 5873
Chris@1 5874
Chris@1 5875
Chris@1 5876
Chris@1 5877
Chris@1 5878
Chris@1 5879
Chris@1 5880
Chris@1 5881
Chris@1 5882
Chris@1 5883
Chris@1 5884
Chris@1 5885
Chris@1 5886
Chris@1 5887
Chris@1 5888
Chris@1 5889
Chris@1 5890
Chris@1 5891
Chris@1 5892
Chris@1 5893
Chris@1 5894
Chris@1 5895
Chris@1 5896
Chris@1 5897
Chris@1 5898
Chris@1 5899
Chris@1 5900
Chris@1 5901
Chris@1 5902
Chris@1 5903 # If no C compiler was specified, use CC.
Chris@1 5904 LTCC=${LTCC-"$CC"}
Chris@1 5905
Chris@1 5906 # If no C compiler flags were specified, use CFLAGS.
Chris@1 5907 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Chris@1 5908
Chris@1 5909 # Allow CC to be a program name with arguments.
Chris@1 5910 compiler=$CC
Chris@1 5911
Chris@1 5912
Chris@1 5913 # Check for command to grab the raw symbol name followed by C symbol from nm.
Chris@1 5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
Chris@1 5915 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Chris@1 5916 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Chris@1 5917 $as_echo_n "(cached) " >&6
Chris@1 5918 else
Chris@1 5919
Chris@1 5920 # These are sane defaults that work on at least a few old systems.
Chris@1 5921 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
Chris@1 5922
Chris@1 5923 # Character class describing NM global symbol codes.
Chris@1 5924 symcode='[BCDEGRST]'
Chris@1 5925
Chris@1 5926 # Regexp to match symbols that can be accessed directly from C.
Chris@1 5927 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
Chris@1 5928
Chris@1 5929 # Define system-specific variables.
Chris@1 5930 case $host_os in
Chris@1 5931 aix*)
Chris@1 5932 symcode='[BCDT]'
Chris@1 5933 ;;
Chris@1 5934 cygwin* | mingw* | pw32* | cegcc*)
Chris@1 5935 symcode='[ABCDGISTW]'
Chris@1 5936 ;;
Chris@1 5937 hpux*)
Chris@1 5938 if test "$host_cpu" = ia64; then
Chris@1 5939 symcode='[ABCDEGRST]'
Chris@1 5940 fi
Chris@1 5941 ;;
Chris@1 5942 irix* | nonstopux*)
Chris@1 5943 symcode='[BCDEGRST]'
Chris@1 5944 ;;
Chris@1 5945 osf*)
Chris@1 5946 symcode='[BCDEGQRST]'
Chris@1 5947 ;;
Chris@1 5948 solaris*)
Chris@1 5949 symcode='[BDRT]'
Chris@1 5950 ;;
Chris@1 5951 sco3.2v5*)
Chris@1 5952 symcode='[DT]'
Chris@1 5953 ;;
Chris@1 5954 sysv4.2uw2*)
Chris@1 5955 symcode='[DT]'
Chris@1 5956 ;;
Chris@1 5957 sysv5* | sco5v6* | unixware* | OpenUNIX*)
Chris@1 5958 symcode='[ABDT]'
Chris@1 5959 ;;
Chris@1 5960 sysv4)
Chris@1 5961 symcode='[DFNSTU]'
Chris@1 5962 ;;
Chris@1 5963 esac
Chris@1 5964
Chris@1 5965 # If we're using GNU nm, then use its standard symbol codes.
Chris@1 5966 case `$NM -V 2>&1` in
Chris@1 5967 *GNU* | *'with BFD'*)
Chris@1 5968 symcode='[ABCDGIRSTW]' ;;
Chris@1 5969 esac
Chris@1 5970
Chris@1 5971 # Transform an extracted symbol line into a proper C declaration.
Chris@1 5972 # Some systems (esp. on ia64) link data and code symbols differently,
Chris@1 5973 # so use this general approach.
Chris@1 5974 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 5975
Chris@1 5976 # Transform an extracted symbol line into symbol name and symbol address
Chris@1 5977 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 5978 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 5979
Chris@1 5980 # Handle CRLF in mingw tool chain
Chris@1 5981 opt_cr=
Chris@1 5982 case $build_os in
Chris@1 5983 mingw*)
Chris@1 5984 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
Chris@1 5985 ;;
Chris@1 5986 esac
Chris@1 5987
Chris@1 5988 # Try without a prefix underscore, then with it.
Chris@1 5989 for ac_symprfx in "" "_"; do
Chris@1 5990
Chris@1 5991 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
Chris@1 5992 symxfrm="\\1 $ac_symprfx\\2 \\2"
Chris@1 5993
Chris@1 5994 # Write the raw and C identifiers.
Chris@1 5995 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Chris@1 5996 # Fake it for dumpbin and say T for any non-static function
Chris@1 5997 # and D for any global variable.
Chris@1 5998 # Also find C++ and __fastcall symbols from MSVC++,
Chris@1 5999 # which start with @ or ?.
Chris@1 6000 lt_cv_sys_global_symbol_pipe="$AWK '"\
Chris@1 6001 " {last_section=section; section=\$ 3};"\
Chris@1 6002 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
Chris@1 6003 " \$ 0!~/External *\|/{next};"\
Chris@1 6004 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
Chris@1 6005 " {if(hide[section]) next};"\
Chris@1 6006 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
Chris@1 6007 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
Chris@1 6008 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
Chris@1 6009 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
Chris@1 6010 " ' prfx=^$ac_symprfx"
Chris@1 6011 else
Chris@1 6012 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
Chris@1 6013 fi
Chris@1 6014 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
Chris@1 6015
Chris@1 6016 # Check to see that the pipe works correctly.
Chris@1 6017 pipe_works=no
Chris@1 6018
Chris@1 6019 rm -f conftest*
Chris@1 6020 cat > conftest.$ac_ext <<_LT_EOF
Chris@1 6021 #ifdef __cplusplus
Chris@1 6022 extern "C" {
Chris@1 6023 #endif
Chris@1 6024 char nm_test_var;
Chris@1 6025 void nm_test_func(void);
Chris@1 6026 void nm_test_func(void){}
Chris@1 6027 #ifdef __cplusplus
Chris@1 6028 }
Chris@1 6029 #endif
Chris@1 6030 int main(){nm_test_var='a';nm_test_func();return(0);}
Chris@1 6031 _LT_EOF
Chris@1 6032
Chris@1 6033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@1 6034 (eval $ac_compile) 2>&5
Chris@1 6035 ac_status=$?
Chris@1 6036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 6037 test $ac_status = 0; }; then
Chris@1 6038 # Now try to grab the symbols.
Chris@1 6039 nlist=conftest.nm
Chris@1 6040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
Chris@1 6041 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
Chris@1 6042 ac_status=$?
Chris@1 6043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 6044 test $ac_status = 0; } && test -s "$nlist"; then
Chris@1 6045 # Try sorting and uniquifying the output.
Chris@1 6046 if sort "$nlist" | uniq > "$nlist"T; then
Chris@1 6047 mv -f "$nlist"T "$nlist"
Chris@1 6048 else
Chris@1 6049 rm -f "$nlist"T
Chris@1 6050 fi
Chris@1 6051
Chris@1 6052 # Make sure that we snagged all the symbols we need.
Chris@1 6053 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
Chris@1 6054 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
Chris@1 6055 cat <<_LT_EOF > conftest.$ac_ext
Chris@1 6056 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
Chris@1 6057 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
Chris@1 6058 /* DATA imports from DLLs on WIN32 con't be const, because runtime
Chris@1 6059 relocations are performed -- see ld's documentation on pseudo-relocs. */
Chris@1 6060 # define LT_DLSYM_CONST
Chris@1 6061 #elif defined(__osf__)
Chris@1 6062 /* This system does not cope well with relocations in const data. */
Chris@1 6063 # define LT_DLSYM_CONST
Chris@1 6064 #else
Chris@1 6065 # define LT_DLSYM_CONST const
Chris@1 6066 #endif
Chris@1 6067
Chris@1 6068 #ifdef __cplusplus
Chris@1 6069 extern "C" {
Chris@1 6070 #endif
Chris@1 6071
Chris@1 6072 _LT_EOF
Chris@1 6073 # Now generate the symbol file.
Chris@1 6074 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
Chris@1 6075
Chris@1 6076 cat <<_LT_EOF >> conftest.$ac_ext
Chris@1 6077
Chris@1 6078 /* The mapping between symbol names and symbols. */
Chris@1 6079 LT_DLSYM_CONST struct {
Chris@1 6080 const char *name;
Chris@1 6081 void *address;
Chris@1 6082 }
Chris@1 6083 lt__PROGRAM__LTX_preloaded_symbols[] =
Chris@1 6084 {
Chris@1 6085 { "@PROGRAM@", (void *) 0 },
Chris@1 6086 _LT_EOF
Chris@1 6087 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
Chris@1 6088 cat <<\_LT_EOF >> conftest.$ac_ext
Chris@1 6089 {0, (void *) 0}
Chris@1 6090 };
Chris@1 6091
Chris@1 6092 /* This works around a problem in FreeBSD linker */
Chris@1 6093 #ifdef FREEBSD_WORKAROUND
Chris@1 6094 static const void *lt_preloaded_setup() {
Chris@1 6095 return lt__PROGRAM__LTX_preloaded_symbols;
Chris@1 6096 }
Chris@1 6097 #endif
Chris@1 6098
Chris@1 6099 #ifdef __cplusplus
Chris@1 6100 }
Chris@1 6101 #endif
Chris@1 6102 _LT_EOF
Chris@1 6103 # Now try linking the two files.
Chris@1 6104 mv conftest.$ac_objext conftstm.$ac_objext
Chris@1 6105 lt_globsym_save_LIBS=$LIBS
Chris@1 6106 lt_globsym_save_CFLAGS=$CFLAGS
Chris@1 6107 LIBS="conftstm.$ac_objext"
Chris@1 6108 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Chris@1 6109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Chris@1 6110 (eval $ac_link) 2>&5
Chris@1 6111 ac_status=$?
Chris@1 6112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 6113 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
Chris@1 6114 pipe_works=yes
Chris@1 6115 fi
Chris@1 6116 LIBS=$lt_globsym_save_LIBS
Chris@1 6117 CFLAGS=$lt_globsym_save_CFLAGS
Chris@1 6118 else
Chris@1 6119 echo "cannot find nm_test_func in $nlist" >&5
Chris@1 6120 fi
Chris@1 6121 else
Chris@1 6122 echo "cannot find nm_test_var in $nlist" >&5
Chris@1 6123 fi
Chris@1 6124 else
Chris@1 6125 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
Chris@1 6126 fi
Chris@1 6127 else
Chris@1 6128 echo "$progname: failed program was:" >&5
Chris@1 6129 cat conftest.$ac_ext >&5
Chris@1 6130 fi
Chris@1 6131 rm -rf conftest* conftst*
Chris@1 6132
Chris@1 6133 # Do not use the global_symbol_pipe unless it works.
Chris@1 6134 if test "$pipe_works" = yes; then
Chris@1 6135 break
Chris@1 6136 else
Chris@1 6137 lt_cv_sys_global_symbol_pipe=
Chris@1 6138 fi
Chris@1 6139 done
Chris@1 6140
Chris@1 6141 fi
Chris@1 6142
Chris@1 6143 if test -z "$lt_cv_sys_global_symbol_pipe"; then
Chris@1 6144 lt_cv_sys_global_symbol_to_cdecl=
Chris@1 6145 fi
Chris@1 6146 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Chris@1 6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
Chris@1 6148 $as_echo "failed" >&6; }
Chris@1 6149 else
Chris@1 6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
Chris@1 6151 $as_echo "ok" >&6; }
Chris@1 6152 fi
Chris@1 6153
Chris@1 6154 # Response file support.
Chris@1 6155 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Chris@1 6156 nm_file_list_spec='@'
Chris@1 6157 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
Chris@1 6158 nm_file_list_spec='@'
Chris@1 6159 fi
Chris@1 6160
Chris@1 6161
Chris@1 6162
Chris@1 6163
Chris@1 6164
Chris@1 6165
Chris@1 6166
Chris@1 6167
Chris@1 6168
Chris@1 6169
Chris@1 6170
Chris@1 6171
Chris@1 6172
Chris@1 6173
Chris@1 6174
Chris@1 6175
Chris@1 6176
Chris@1 6177
Chris@1 6178
Chris@1 6179
Chris@1 6180
Chris@1 6181
Chris@1 6182
Chris@1 6183
Chris@1 6184
Chris@1 6185
Chris@1 6186
Chris@1 6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
Chris@1 6188 $as_echo_n "checking for sysroot... " >&6; }
Chris@1 6189
Chris@1 6190 # Check whether --with-sysroot was given.
Chris@1 6191 if test "${with_sysroot+set}" = set; then :
Chris@1 6192 withval=$with_sysroot;
Chris@1 6193 else
Chris@1 6194 with_sysroot=no
Chris@1 6195 fi
Chris@1 6196
Chris@1 6197
Chris@1 6198 lt_sysroot=
Chris@1 6199 case ${with_sysroot} in #(
Chris@1 6200 yes)
Chris@1 6201 if test "$GCC" = yes; then
Chris@1 6202 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
Chris@1 6203 fi
Chris@1 6204 ;; #(
Chris@1 6205 /*)
Chris@1 6206 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
Chris@1 6207 ;; #(
Chris@1 6208 no|'')
Chris@1 6209 ;; #(
Chris@1 6210 *)
Chris@1 6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
Chris@1 6212 $as_echo "${with_sysroot}" >&6; }
Chris@1 6213 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
Chris@1 6214 ;;
Chris@1 6215 esac
Chris@1 6216
Chris@1 6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
Chris@1 6218 $as_echo "${lt_sysroot:-no}" >&6; }
Chris@1 6219
Chris@1 6220
Chris@1 6221
Chris@1 6222
Chris@1 6223
Chris@1 6224 # Check whether --enable-libtool-lock was given.
Chris@1 6225 if test "${enable_libtool_lock+set}" = set; then :
Chris@1 6226 enableval=$enable_libtool_lock;
Chris@1 6227 fi
Chris@1 6228
Chris@1 6229 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Chris@1 6230
Chris@1 6231 # Some flags need to be propagated to the compiler or linker for good
Chris@1 6232 # libtool support.
Chris@1 6233 case $host in
Chris@1 6234 ia64-*-hpux*)
Chris@1 6235 # Find out which ABI we are using.
Chris@1 6236 echo 'int i;' > conftest.$ac_ext
Chris@1 6237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@1 6238 (eval $ac_compile) 2>&5
Chris@1 6239 ac_status=$?
Chris@1 6240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 6241 test $ac_status = 0; }; then
Chris@1 6242 case `/usr/bin/file conftest.$ac_objext` in
Chris@1 6243 *ELF-32*)
Chris@1 6244 HPUX_IA64_MODE="32"
Chris@1 6245 ;;
Chris@1 6246 *ELF-64*)
Chris@1 6247 HPUX_IA64_MODE="64"
Chris@1 6248 ;;
Chris@1 6249 esac
Chris@1 6250 fi
Chris@1 6251 rm -rf conftest*
Chris@1 6252 ;;
Chris@1 6253 *-*-irix6*)
Chris@1 6254 # Find out which ABI we are using.
Chris@1 6255 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
Chris@1 6256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@1 6257 (eval $ac_compile) 2>&5
Chris@1 6258 ac_status=$?
Chris@1 6259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 6260 test $ac_status = 0; }; then
Chris@1 6261 if test "$lt_cv_prog_gnu_ld" = yes; then
Chris@1 6262 case `/usr/bin/file conftest.$ac_objext` in
Chris@1 6263 *32-bit*)
Chris@1 6264 LD="${LD-ld} -melf32bsmip"
Chris@1 6265 ;;
Chris@1 6266 *N32*)
Chris@1 6267 LD="${LD-ld} -melf32bmipn32"
Chris@1 6268 ;;
Chris@1 6269 *64-bit*)
Chris@1 6270 LD="${LD-ld} -melf64bmip"
Chris@1 6271 ;;
Chris@1 6272 esac
Chris@1 6273 else
Chris@1 6274 case `/usr/bin/file conftest.$ac_objext` in
Chris@1 6275 *32-bit*)
Chris@1 6276 LD="${LD-ld} -32"
Chris@1 6277 ;;
Chris@1 6278 *N32*)
Chris@1 6279 LD="${LD-ld} -n32"
Chris@1 6280 ;;
Chris@1 6281 *64-bit*)
Chris@1 6282 LD="${LD-ld} -64"
Chris@1 6283 ;;
Chris@1 6284 esac
Chris@1 6285 fi
Chris@1 6286 fi
Chris@1 6287 rm -rf conftest*
Chris@1 6288 ;;
Chris@1 6289
Chris@1 6290 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
Chris@1 6291 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Chris@1 6292 # Find out which ABI we are using.
Chris@1 6293 echo 'int i;' > conftest.$ac_ext
Chris@1 6294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@1 6295 (eval $ac_compile) 2>&5
Chris@1 6296 ac_status=$?
Chris@1 6297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 6298 test $ac_status = 0; }; then
Chris@1 6299 case `/usr/bin/file conftest.o` in
Chris@1 6300 *32-bit*)
Chris@1 6301 case $host in
Chris@1 6302 x86_64-*kfreebsd*-gnu)
Chris@1 6303 LD="${LD-ld} -m elf_i386_fbsd"
Chris@1 6304 ;;
Chris@1 6305 x86_64-*linux*)
Chris@1 6306 LD="${LD-ld} -m elf_i386"
Chris@1 6307 ;;
Chris@1 6308 ppc64-*linux*|powerpc64-*linux*)
Chris@1 6309 LD="${LD-ld} -m elf32ppclinux"
Chris@1 6310 ;;
Chris@1 6311 s390x-*linux*)
Chris@1 6312 LD="${LD-ld} -m elf_s390"
Chris@1 6313 ;;
Chris@1 6314 sparc64-*linux*)
Chris@1 6315 LD="${LD-ld} -m elf32_sparc"
Chris@1 6316 ;;
Chris@1 6317 esac
Chris@1 6318 ;;
Chris@1 6319 *64-bit*)
Chris@1 6320 case $host in
Chris@1 6321 x86_64-*kfreebsd*-gnu)
Chris@1 6322 LD="${LD-ld} -m elf_x86_64_fbsd"
Chris@1 6323 ;;
Chris@1 6324 x86_64-*linux*)
Chris@1 6325 LD="${LD-ld} -m elf_x86_64"
Chris@1 6326 ;;
Chris@1 6327 ppc*-*linux*|powerpc*-*linux*)
Chris@1 6328 LD="${LD-ld} -m elf64ppc"
Chris@1 6329 ;;
Chris@1 6330 s390*-*linux*|s390*-*tpf*)
Chris@1 6331 LD="${LD-ld} -m elf64_s390"
Chris@1 6332 ;;
Chris@1 6333 sparc*-*linux*)
Chris@1 6334 LD="${LD-ld} -m elf64_sparc"
Chris@1 6335 ;;
Chris@1 6336 esac
Chris@1 6337 ;;
Chris@1 6338 esac
Chris@1 6339 fi
Chris@1 6340 rm -rf conftest*
Chris@1 6341 ;;
Chris@1 6342
Chris@1 6343 *-*-sco3.2v5*)
Chris@1 6344 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
Chris@1 6345 SAVE_CFLAGS="$CFLAGS"
Chris@1 6346 CFLAGS="$CFLAGS -belf"
Chris@1 6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
Chris@1 6348 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Chris@1 6349 if ${lt_cv_cc_needs_belf+:} false; then :
Chris@1 6350 $as_echo_n "(cached) " >&6
Chris@1 6351 else
Chris@1 6352 ac_ext=c
Chris@1 6353 ac_cpp='$CPP $CPPFLAGS'
Chris@1 6354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@1 6355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@1 6356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@1 6357
Chris@1 6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 6359 /* end confdefs.h. */
Chris@1 6360
Chris@1 6361 int
Chris@1 6362 main ()
Chris@1 6363 {
Chris@1 6364
Chris@1 6365 ;
Chris@1 6366 return 0;
Chris@1 6367 }
Chris@1 6368 _ACEOF
Chris@1 6369 if ac_fn_c_try_link "$LINENO"; then :
Chris@1 6370 lt_cv_cc_needs_belf=yes
Chris@1 6371 else
Chris@1 6372 lt_cv_cc_needs_belf=no
Chris@1 6373 fi
Chris@1 6374 rm -f core conftest.err conftest.$ac_objext \
Chris@1 6375 conftest$ac_exeext conftest.$ac_ext
Chris@1 6376 ac_ext=c
Chris@1 6377 ac_cpp='$CPP $CPPFLAGS'
Chris@1 6378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@1 6379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@1 6380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@1 6381
Chris@1 6382 fi
Chris@1 6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
Chris@1 6384 $as_echo "$lt_cv_cc_needs_belf" >&6; }
Chris@1 6385 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
Chris@1 6386 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
Chris@1 6387 CFLAGS="$SAVE_CFLAGS"
Chris@1 6388 fi
Chris@1 6389 ;;
Chris@1 6390 sparc*-*solaris*)
Chris@1 6391 # Find out which ABI we are using.
Chris@1 6392 echo 'int i;' > conftest.$ac_ext
Chris@1 6393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@1 6394 (eval $ac_compile) 2>&5
Chris@1 6395 ac_status=$?
Chris@1 6396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 6397 test $ac_status = 0; }; then
Chris@1 6398 case `/usr/bin/file conftest.o` in
Chris@1 6399 *64-bit*)
Chris@1 6400 case $lt_cv_prog_gnu_ld in
Chris@1 6401 yes*) LD="${LD-ld} -m elf64_sparc" ;;
Chris@1 6402 *)
Chris@1 6403 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
Chris@1 6404 LD="${LD-ld} -64"
Chris@1 6405 fi
Chris@1 6406 ;;
Chris@1 6407 esac
Chris@1 6408 ;;
Chris@1 6409 esac
Chris@1 6410 fi
Chris@1 6411 rm -rf conftest*
Chris@1 6412 ;;
Chris@1 6413 esac
Chris@1 6414
Chris@1 6415 need_locks="$enable_libtool_lock"
Chris@1 6416
Chris@1 6417 if test -n "$ac_tool_prefix"; then
Chris@1 6418 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
Chris@1 6419 set dummy ${ac_tool_prefix}mt; ac_word=$2
Chris@1 6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 6421 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 6422 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
Chris@1 6423 $as_echo_n "(cached) " >&6
Chris@1 6424 else
Chris@1 6425 if test -n "$MANIFEST_TOOL"; then
Chris@1 6426 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
Chris@1 6427 else
Chris@1 6428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 6429 for as_dir in $PATH
Chris@1 6430 do
Chris@1 6431 IFS=$as_save_IFS
Chris@1 6432 test -z "$as_dir" && as_dir=.
Chris@1 6433 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 6434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 6435 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
Chris@1 6436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 6437 break 2
Chris@1 6438 fi
Chris@1 6439 done
Chris@1 6440 done
Chris@1 6441 IFS=$as_save_IFS
Chris@1 6442
Chris@1 6443 fi
Chris@1 6444 fi
Chris@1 6445 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
Chris@1 6446 if test -n "$MANIFEST_TOOL"; then
Chris@1 6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
Chris@1 6448 $as_echo "$MANIFEST_TOOL" >&6; }
Chris@1 6449 else
Chris@1 6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 6451 $as_echo "no" >&6; }
Chris@1 6452 fi
Chris@1 6453
Chris@1 6454
Chris@1 6455 fi
Chris@1 6456 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
Chris@1 6457 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
Chris@1 6458 # Extract the first word of "mt", so it can be a program name with args.
Chris@1 6459 set dummy mt; ac_word=$2
Chris@1 6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 6461 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 6462 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
Chris@1 6463 $as_echo_n "(cached) " >&6
Chris@1 6464 else
Chris@1 6465 if test -n "$ac_ct_MANIFEST_TOOL"; then
Chris@1 6466 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
Chris@1 6467 else
Chris@1 6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 6469 for as_dir in $PATH
Chris@1 6470 do
Chris@1 6471 IFS=$as_save_IFS
Chris@1 6472 test -z "$as_dir" && as_dir=.
Chris@1 6473 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 6474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 6475 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
Chris@1 6476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 6477 break 2
Chris@1 6478 fi
Chris@1 6479 done
Chris@1 6480 done
Chris@1 6481 IFS=$as_save_IFS
Chris@1 6482
Chris@1 6483 fi
Chris@1 6484 fi
Chris@1 6485 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
Chris@1 6486 if test -n "$ac_ct_MANIFEST_TOOL"; then
Chris@1 6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
Chris@1 6488 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
Chris@1 6489 else
Chris@1 6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 6491 $as_echo "no" >&6; }
Chris@1 6492 fi
Chris@1 6493
Chris@1 6494 if test "x$ac_ct_MANIFEST_TOOL" = x; then
Chris@1 6495 MANIFEST_TOOL=":"
Chris@1 6496 else
Chris@1 6497 case $cross_compiling:$ac_tool_warned in
Chris@1 6498 yes:)
Chris@1 6499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 6500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 6501 ac_tool_warned=yes ;;
Chris@1 6502 esac
Chris@1 6503 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
Chris@1 6504 fi
Chris@1 6505 else
Chris@1 6506 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
Chris@1 6507 fi
Chris@1 6508
Chris@1 6509 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
Chris@1 6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
Chris@1 6511 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
Chris@1 6512 if ${lt_cv_path_mainfest_tool+:} false; then :
Chris@1 6513 $as_echo_n "(cached) " >&6
Chris@1 6514 else
Chris@1 6515 lt_cv_path_mainfest_tool=no
Chris@1 6516 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
Chris@1 6517 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
Chris@1 6518 cat conftest.err >&5
Chris@1 6519 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
Chris@1 6520 lt_cv_path_mainfest_tool=yes
Chris@1 6521 fi
Chris@1 6522 rm -f conftest*
Chris@1 6523 fi
Chris@1 6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
Chris@1 6525 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
Chris@1 6526 if test "x$lt_cv_path_mainfest_tool" != xyes; then
Chris@1 6527 MANIFEST_TOOL=:
Chris@1 6528 fi
Chris@1 6529
Chris@1 6530
Chris@1 6531
Chris@1 6532
Chris@1 6533
Chris@1 6534
Chris@1 6535 case $host_os in
Chris@1 6536 rhapsody* | darwin*)
Chris@1 6537 if test -n "$ac_tool_prefix"; then
Chris@1 6538 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
Chris@1 6539 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Chris@1 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 6541 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 6542 if ${ac_cv_prog_DSYMUTIL+:} false; then :
Chris@1 6543 $as_echo_n "(cached) " >&6
Chris@1 6544 else
Chris@1 6545 if test -n "$DSYMUTIL"; then
Chris@1 6546 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
Chris@1 6547 else
Chris@1 6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 6549 for as_dir in $PATH
Chris@1 6550 do
Chris@1 6551 IFS=$as_save_IFS
Chris@1 6552 test -z "$as_dir" && as_dir=.
Chris@1 6553 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 6554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 6555 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Chris@1 6556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 6557 break 2
Chris@1 6558 fi
Chris@1 6559 done
Chris@1 6560 done
Chris@1 6561 IFS=$as_save_IFS
Chris@1 6562
Chris@1 6563 fi
Chris@1 6564 fi
Chris@1 6565 DSYMUTIL=$ac_cv_prog_DSYMUTIL
Chris@1 6566 if test -n "$DSYMUTIL"; then
Chris@1 6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
Chris@1 6568 $as_echo "$DSYMUTIL" >&6; }
Chris@1 6569 else
Chris@1 6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 6571 $as_echo "no" >&6; }
Chris@1 6572 fi
Chris@1 6573
Chris@1 6574
Chris@1 6575 fi
Chris@1 6576 if test -z "$ac_cv_prog_DSYMUTIL"; then
Chris@1 6577 ac_ct_DSYMUTIL=$DSYMUTIL
Chris@1 6578 # Extract the first word of "dsymutil", so it can be a program name with args.
Chris@1 6579 set dummy dsymutil; ac_word=$2
Chris@1 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 6581 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 6582 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Chris@1 6583 $as_echo_n "(cached) " >&6
Chris@1 6584 else
Chris@1 6585 if test -n "$ac_ct_DSYMUTIL"; then
Chris@1 6586 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
Chris@1 6587 else
Chris@1 6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 6589 for as_dir in $PATH
Chris@1 6590 do
Chris@1 6591 IFS=$as_save_IFS
Chris@1 6592 test -z "$as_dir" && as_dir=.
Chris@1 6593 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 6594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 6595 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Chris@1 6596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 6597 break 2
Chris@1 6598 fi
Chris@1 6599 done
Chris@1 6600 done
Chris@1 6601 IFS=$as_save_IFS
Chris@1 6602
Chris@1 6603 fi
Chris@1 6604 fi
Chris@1 6605 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
Chris@1 6606 if test -n "$ac_ct_DSYMUTIL"; then
Chris@1 6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
Chris@1 6608 $as_echo "$ac_ct_DSYMUTIL" >&6; }
Chris@1 6609 else
Chris@1 6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 6611 $as_echo "no" >&6; }
Chris@1 6612 fi
Chris@1 6613
Chris@1 6614 if test "x$ac_ct_DSYMUTIL" = x; then
Chris@1 6615 DSYMUTIL=":"
Chris@1 6616 else
Chris@1 6617 case $cross_compiling:$ac_tool_warned in
Chris@1 6618 yes:)
Chris@1 6619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 6620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 6621 ac_tool_warned=yes ;;
Chris@1 6622 esac
Chris@1 6623 DSYMUTIL=$ac_ct_DSYMUTIL
Chris@1 6624 fi
Chris@1 6625 else
Chris@1 6626 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
Chris@1 6627 fi
Chris@1 6628
Chris@1 6629 if test -n "$ac_tool_prefix"; then
Chris@1 6630 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
Chris@1 6631 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Chris@1 6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 6633 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 6634 if ${ac_cv_prog_NMEDIT+:} false; then :
Chris@1 6635 $as_echo_n "(cached) " >&6
Chris@1 6636 else
Chris@1 6637 if test -n "$NMEDIT"; then
Chris@1 6638 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
Chris@1 6639 else
Chris@1 6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 6641 for as_dir in $PATH
Chris@1 6642 do
Chris@1 6643 IFS=$as_save_IFS
Chris@1 6644 test -z "$as_dir" && as_dir=.
Chris@1 6645 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 6646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 6647 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Chris@1 6648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 6649 break 2
Chris@1 6650 fi
Chris@1 6651 done
Chris@1 6652 done
Chris@1 6653 IFS=$as_save_IFS
Chris@1 6654
Chris@1 6655 fi
Chris@1 6656 fi
Chris@1 6657 NMEDIT=$ac_cv_prog_NMEDIT
Chris@1 6658 if test -n "$NMEDIT"; then
Chris@1 6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
Chris@1 6660 $as_echo "$NMEDIT" >&6; }
Chris@1 6661 else
Chris@1 6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 6663 $as_echo "no" >&6; }
Chris@1 6664 fi
Chris@1 6665
Chris@1 6666
Chris@1 6667 fi
Chris@1 6668 if test -z "$ac_cv_prog_NMEDIT"; then
Chris@1 6669 ac_ct_NMEDIT=$NMEDIT
Chris@1 6670 # Extract the first word of "nmedit", so it can be a program name with args.
Chris@1 6671 set dummy nmedit; ac_word=$2
Chris@1 6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 6673 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 6674 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Chris@1 6675 $as_echo_n "(cached) " >&6
Chris@1 6676 else
Chris@1 6677 if test -n "$ac_ct_NMEDIT"; then
Chris@1 6678 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
Chris@1 6679 else
Chris@1 6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 6681 for as_dir in $PATH
Chris@1 6682 do
Chris@1 6683 IFS=$as_save_IFS
Chris@1 6684 test -z "$as_dir" && as_dir=.
Chris@1 6685 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 6686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 6687 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Chris@1 6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 6689 break 2
Chris@1 6690 fi
Chris@1 6691 done
Chris@1 6692 done
Chris@1 6693 IFS=$as_save_IFS
Chris@1 6694
Chris@1 6695 fi
Chris@1 6696 fi
Chris@1 6697 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
Chris@1 6698 if test -n "$ac_ct_NMEDIT"; then
Chris@1 6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
Chris@1 6700 $as_echo "$ac_ct_NMEDIT" >&6; }
Chris@1 6701 else
Chris@1 6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 6703 $as_echo "no" >&6; }
Chris@1 6704 fi
Chris@1 6705
Chris@1 6706 if test "x$ac_ct_NMEDIT" = x; then
Chris@1 6707 NMEDIT=":"
Chris@1 6708 else
Chris@1 6709 case $cross_compiling:$ac_tool_warned in
Chris@1 6710 yes:)
Chris@1 6711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 6712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 6713 ac_tool_warned=yes ;;
Chris@1 6714 esac
Chris@1 6715 NMEDIT=$ac_ct_NMEDIT
Chris@1 6716 fi
Chris@1 6717 else
Chris@1 6718 NMEDIT="$ac_cv_prog_NMEDIT"
Chris@1 6719 fi
Chris@1 6720
Chris@1 6721 if test -n "$ac_tool_prefix"; then
Chris@1 6722 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
Chris@1 6723 set dummy ${ac_tool_prefix}lipo; ac_word=$2
Chris@1 6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 6725 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 6726 if ${ac_cv_prog_LIPO+:} false; then :
Chris@1 6727 $as_echo_n "(cached) " >&6
Chris@1 6728 else
Chris@1 6729 if test -n "$LIPO"; then
Chris@1 6730 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
Chris@1 6731 else
Chris@1 6732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 6733 for as_dir in $PATH
Chris@1 6734 do
Chris@1 6735 IFS=$as_save_IFS
Chris@1 6736 test -z "$as_dir" && as_dir=.
Chris@1 6737 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 6738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 6739 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Chris@1 6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 6741 break 2
Chris@1 6742 fi
Chris@1 6743 done
Chris@1 6744 done
Chris@1 6745 IFS=$as_save_IFS
Chris@1 6746
Chris@1 6747 fi
Chris@1 6748 fi
Chris@1 6749 LIPO=$ac_cv_prog_LIPO
Chris@1 6750 if test -n "$LIPO"; then
Chris@1 6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
Chris@1 6752 $as_echo "$LIPO" >&6; }
Chris@1 6753 else
Chris@1 6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 6755 $as_echo "no" >&6; }
Chris@1 6756 fi
Chris@1 6757
Chris@1 6758
Chris@1 6759 fi
Chris@1 6760 if test -z "$ac_cv_prog_LIPO"; then
Chris@1 6761 ac_ct_LIPO=$LIPO
Chris@1 6762 # Extract the first word of "lipo", so it can be a program name with args.
Chris@1 6763 set dummy lipo; ac_word=$2
Chris@1 6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 6765 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 6766 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Chris@1 6767 $as_echo_n "(cached) " >&6
Chris@1 6768 else
Chris@1 6769 if test -n "$ac_ct_LIPO"; then
Chris@1 6770 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
Chris@1 6771 else
Chris@1 6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 6773 for as_dir in $PATH
Chris@1 6774 do
Chris@1 6775 IFS=$as_save_IFS
Chris@1 6776 test -z "$as_dir" && as_dir=.
Chris@1 6777 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 6779 ac_cv_prog_ac_ct_LIPO="lipo"
Chris@1 6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 6781 break 2
Chris@1 6782 fi
Chris@1 6783 done
Chris@1 6784 done
Chris@1 6785 IFS=$as_save_IFS
Chris@1 6786
Chris@1 6787 fi
Chris@1 6788 fi
Chris@1 6789 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
Chris@1 6790 if test -n "$ac_ct_LIPO"; then
Chris@1 6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
Chris@1 6792 $as_echo "$ac_ct_LIPO" >&6; }
Chris@1 6793 else
Chris@1 6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 6795 $as_echo "no" >&6; }
Chris@1 6796 fi
Chris@1 6797
Chris@1 6798 if test "x$ac_ct_LIPO" = x; then
Chris@1 6799 LIPO=":"
Chris@1 6800 else
Chris@1 6801 case $cross_compiling:$ac_tool_warned in
Chris@1 6802 yes:)
Chris@1 6803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 6804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 6805 ac_tool_warned=yes ;;
Chris@1 6806 esac
Chris@1 6807 LIPO=$ac_ct_LIPO
Chris@1 6808 fi
Chris@1 6809 else
Chris@1 6810 LIPO="$ac_cv_prog_LIPO"
Chris@1 6811 fi
Chris@1 6812
Chris@1 6813 if test -n "$ac_tool_prefix"; then
Chris@1 6814 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
Chris@1 6815 set dummy ${ac_tool_prefix}otool; ac_word=$2
Chris@1 6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 6817 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 6818 if ${ac_cv_prog_OTOOL+:} false; then :
Chris@1 6819 $as_echo_n "(cached) " >&6
Chris@1 6820 else
Chris@1 6821 if test -n "$OTOOL"; then
Chris@1 6822 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
Chris@1 6823 else
Chris@1 6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 6825 for as_dir in $PATH
Chris@1 6826 do
Chris@1 6827 IFS=$as_save_IFS
Chris@1 6828 test -z "$as_dir" && as_dir=.
Chris@1 6829 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 6831 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Chris@1 6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 6833 break 2
Chris@1 6834 fi
Chris@1 6835 done
Chris@1 6836 done
Chris@1 6837 IFS=$as_save_IFS
Chris@1 6838
Chris@1 6839 fi
Chris@1 6840 fi
Chris@1 6841 OTOOL=$ac_cv_prog_OTOOL
Chris@1 6842 if test -n "$OTOOL"; then
Chris@1 6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
Chris@1 6844 $as_echo "$OTOOL" >&6; }
Chris@1 6845 else
Chris@1 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 6847 $as_echo "no" >&6; }
Chris@1 6848 fi
Chris@1 6849
Chris@1 6850
Chris@1 6851 fi
Chris@1 6852 if test -z "$ac_cv_prog_OTOOL"; then
Chris@1 6853 ac_ct_OTOOL=$OTOOL
Chris@1 6854 # Extract the first word of "otool", so it can be a program name with args.
Chris@1 6855 set dummy otool; ac_word=$2
Chris@1 6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 6857 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 6858 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Chris@1 6859 $as_echo_n "(cached) " >&6
Chris@1 6860 else
Chris@1 6861 if test -n "$ac_ct_OTOOL"; then
Chris@1 6862 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
Chris@1 6863 else
Chris@1 6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 6865 for as_dir in $PATH
Chris@1 6866 do
Chris@1 6867 IFS=$as_save_IFS
Chris@1 6868 test -z "$as_dir" && as_dir=.
Chris@1 6869 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 6871 ac_cv_prog_ac_ct_OTOOL="otool"
Chris@1 6872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 6873 break 2
Chris@1 6874 fi
Chris@1 6875 done
Chris@1 6876 done
Chris@1 6877 IFS=$as_save_IFS
Chris@1 6878
Chris@1 6879 fi
Chris@1 6880 fi
Chris@1 6881 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
Chris@1 6882 if test -n "$ac_ct_OTOOL"; then
Chris@1 6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
Chris@1 6884 $as_echo "$ac_ct_OTOOL" >&6; }
Chris@1 6885 else
Chris@1 6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 6887 $as_echo "no" >&6; }
Chris@1 6888 fi
Chris@1 6889
Chris@1 6890 if test "x$ac_ct_OTOOL" = x; then
Chris@1 6891 OTOOL=":"
Chris@1 6892 else
Chris@1 6893 case $cross_compiling:$ac_tool_warned in
Chris@1 6894 yes:)
Chris@1 6895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 6896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 6897 ac_tool_warned=yes ;;
Chris@1 6898 esac
Chris@1 6899 OTOOL=$ac_ct_OTOOL
Chris@1 6900 fi
Chris@1 6901 else
Chris@1 6902 OTOOL="$ac_cv_prog_OTOOL"
Chris@1 6903 fi
Chris@1 6904
Chris@1 6905 if test -n "$ac_tool_prefix"; then
Chris@1 6906 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
Chris@1 6907 set dummy ${ac_tool_prefix}otool64; ac_word=$2
Chris@1 6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 6909 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 6910 if ${ac_cv_prog_OTOOL64+:} false; then :
Chris@1 6911 $as_echo_n "(cached) " >&6
Chris@1 6912 else
Chris@1 6913 if test -n "$OTOOL64"; then
Chris@1 6914 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
Chris@1 6915 else
Chris@1 6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 6917 for as_dir in $PATH
Chris@1 6918 do
Chris@1 6919 IFS=$as_save_IFS
Chris@1 6920 test -z "$as_dir" && as_dir=.
Chris@1 6921 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 6922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 6923 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Chris@1 6924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 6925 break 2
Chris@1 6926 fi
Chris@1 6927 done
Chris@1 6928 done
Chris@1 6929 IFS=$as_save_IFS
Chris@1 6930
Chris@1 6931 fi
Chris@1 6932 fi
Chris@1 6933 OTOOL64=$ac_cv_prog_OTOOL64
Chris@1 6934 if test -n "$OTOOL64"; then
Chris@1 6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
Chris@1 6936 $as_echo "$OTOOL64" >&6; }
Chris@1 6937 else
Chris@1 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 6939 $as_echo "no" >&6; }
Chris@1 6940 fi
Chris@1 6941
Chris@1 6942
Chris@1 6943 fi
Chris@1 6944 if test -z "$ac_cv_prog_OTOOL64"; then
Chris@1 6945 ac_ct_OTOOL64=$OTOOL64
Chris@1 6946 # Extract the first word of "otool64", so it can be a program name with args.
Chris@1 6947 set dummy otool64; ac_word=$2
Chris@1 6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1 6949 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1 6950 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Chris@1 6951 $as_echo_n "(cached) " >&6
Chris@1 6952 else
Chris@1 6953 if test -n "$ac_ct_OTOOL64"; then
Chris@1 6954 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
Chris@1 6955 else
Chris@1 6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 6957 for as_dir in $PATH
Chris@1 6958 do
Chris@1 6959 IFS=$as_save_IFS
Chris@1 6960 test -z "$as_dir" && as_dir=.
Chris@1 6961 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1 6962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Chris@1 6963 ac_cv_prog_ac_ct_OTOOL64="otool64"
Chris@1 6964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1 6965 break 2
Chris@1 6966 fi
Chris@1 6967 done
Chris@1 6968 done
Chris@1 6969 IFS=$as_save_IFS
Chris@1 6970
Chris@1 6971 fi
Chris@1 6972 fi
Chris@1 6973 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
Chris@1 6974 if test -n "$ac_ct_OTOOL64"; then
Chris@1 6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
Chris@1 6976 $as_echo "$ac_ct_OTOOL64" >&6; }
Chris@1 6977 else
Chris@1 6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 6979 $as_echo "no" >&6; }
Chris@1 6980 fi
Chris@1 6981
Chris@1 6982 if test "x$ac_ct_OTOOL64" = x; then
Chris@1 6983 OTOOL64=":"
Chris@1 6984 else
Chris@1 6985 case $cross_compiling:$ac_tool_warned in
Chris@1 6986 yes:)
Chris@1 6987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@1 6988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@1 6989 ac_tool_warned=yes ;;
Chris@1 6990 esac
Chris@1 6991 OTOOL64=$ac_ct_OTOOL64
Chris@1 6992 fi
Chris@1 6993 else
Chris@1 6994 OTOOL64="$ac_cv_prog_OTOOL64"
Chris@1 6995 fi
Chris@1 6996
Chris@1 6997
Chris@1 6998
Chris@1 6999
Chris@1 7000
Chris@1 7001
Chris@1 7002
Chris@1 7003
Chris@1 7004
Chris@1 7005
Chris@1 7006
Chris@1 7007
Chris@1 7008
Chris@1 7009
Chris@1 7010
Chris@1 7011
Chris@1 7012
Chris@1 7013
Chris@1 7014
Chris@1 7015
Chris@1 7016
Chris@1 7017
Chris@1 7018
Chris@1 7019
Chris@1 7020
Chris@1 7021
Chris@1 7022
Chris@1 7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
Chris@1 7024 $as_echo_n "checking for -single_module linker flag... " >&6; }
Chris@1 7025 if ${lt_cv_apple_cc_single_mod+:} false; then :
Chris@1 7026 $as_echo_n "(cached) " >&6
Chris@1 7027 else
Chris@1 7028 lt_cv_apple_cc_single_mod=no
Chris@1 7029 if test -z "${LT_MULTI_MODULE}"; then
Chris@1 7030 # By default we will add the -single_module flag. You can override
Chris@1 7031 # by either setting the environment variable LT_MULTI_MODULE
Chris@1 7032 # non-empty at configure time, or by adding -multi_module to the
Chris@1 7033 # link flags.
Chris@1 7034 rm -rf libconftest.dylib*
Chris@1 7035 echo "int foo(void){return 1;}" > conftest.c
Chris@1 7036 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
Chris@1 7037 -dynamiclib -Wl,-single_module conftest.c" >&5
Chris@1 7038 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
Chris@1 7039 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
Chris@1 7040 _lt_result=$?
Chris@1 7041 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
Chris@1 7042 lt_cv_apple_cc_single_mod=yes
Chris@1 7043 else
Chris@1 7044 cat conftest.err >&5
Chris@1 7045 fi
Chris@1 7046 rm -rf libconftest.dylib*
Chris@1 7047 rm -f conftest.*
Chris@1 7048 fi
Chris@1 7049 fi
Chris@1 7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
Chris@1 7051 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Chris@1 7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
Chris@1 7053 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Chris@1 7054 if ${lt_cv_ld_exported_symbols_list+:} false; then :
Chris@1 7055 $as_echo_n "(cached) " >&6
Chris@1 7056 else
Chris@1 7057 lt_cv_ld_exported_symbols_list=no
Chris@1 7058 save_LDFLAGS=$LDFLAGS
Chris@1 7059 echo "_main" > conftest.sym
Chris@1 7060 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Chris@1 7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 7062 /* end confdefs.h. */
Chris@1 7063
Chris@1 7064 int
Chris@1 7065 main ()
Chris@1 7066 {
Chris@1 7067
Chris@1 7068 ;
Chris@1 7069 return 0;
Chris@1 7070 }
Chris@1 7071 _ACEOF
Chris@1 7072 if ac_fn_c_try_link "$LINENO"; then :
Chris@1 7073 lt_cv_ld_exported_symbols_list=yes
Chris@1 7074 else
Chris@1 7075 lt_cv_ld_exported_symbols_list=no
Chris@1 7076 fi
Chris@1 7077 rm -f core conftest.err conftest.$ac_objext \
Chris@1 7078 conftest$ac_exeext conftest.$ac_ext
Chris@1 7079 LDFLAGS="$save_LDFLAGS"
Chris@1 7080
Chris@1 7081 fi
Chris@1 7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
Chris@1 7083 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Chris@1 7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
Chris@1 7085 $as_echo_n "checking for -force_load linker flag... " >&6; }
Chris@1 7086 if ${lt_cv_ld_force_load+:} false; then :
Chris@1 7087 $as_echo_n "(cached) " >&6
Chris@1 7088 else
Chris@1 7089 lt_cv_ld_force_load=no
Chris@1 7090 cat > conftest.c << _LT_EOF
Chris@1 7091 int forced_loaded() { return 2;}
Chris@1 7092 _LT_EOF
Chris@1 7093 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
Chris@1 7094 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
Chris@1 7095 echo "$AR cru libconftest.a conftest.o" >&5
Chris@1 7096 $AR cru libconftest.a conftest.o 2>&5
Chris@1 7097 echo "$RANLIB libconftest.a" >&5
Chris@1 7098 $RANLIB libconftest.a 2>&5
Chris@1 7099 cat > conftest.c << _LT_EOF
Chris@1 7100 int main() { return 0;}
Chris@1 7101 _LT_EOF
Chris@1 7102 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
Chris@1 7103 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
Chris@1 7104 _lt_result=$?
Chris@1 7105 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
Chris@1 7106 lt_cv_ld_force_load=yes
Chris@1 7107 else
Chris@1 7108 cat conftest.err >&5
Chris@1 7109 fi
Chris@1 7110 rm -f conftest.err libconftest.a conftest conftest.c
Chris@1 7111 rm -rf conftest.dSYM
Chris@1 7112
Chris@1 7113 fi
Chris@1 7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
Chris@1 7115 $as_echo "$lt_cv_ld_force_load" >&6; }
Chris@1 7116 case $host_os in
Chris@1 7117 rhapsody* | darwin1.[012])
Chris@1 7118 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
Chris@1 7119 darwin1.*)
Chris@1 7120 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
Chris@1 7121 darwin*) # darwin 5.x on
Chris@1 7122 # if running on 10.5 or later, the deployment target defaults
Chris@1 7123 # to the OS version, if on x86, and 10.4, the deployment
Chris@1 7124 # target defaults to 10.4. Don't you love it?
Chris@1 7125 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
Chris@1 7126 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
Chris@1 7127 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
Chris@1 7128 10.[012]*)
Chris@1 7129 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
Chris@1 7130 10.*)
Chris@1 7131 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
Chris@1 7132 esac
Chris@1 7133 ;;
Chris@1 7134 esac
Chris@1 7135 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
Chris@1 7136 _lt_dar_single_mod='$single_module'
Chris@1 7137 fi
Chris@1 7138 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
Chris@1 7139 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
Chris@1 7140 else
Chris@1 7141 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
Chris@1 7142 fi
Chris@1 7143 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
Chris@1 7144 _lt_dsymutil='~$DSYMUTIL $lib || :'
Chris@1 7145 else
Chris@1 7146 _lt_dsymutil=
Chris@1 7147 fi
Chris@1 7148 ;;
Chris@1 7149 esac
Chris@1 7150
Chris@1 7151 ac_ext=c
Chris@1 7152 ac_cpp='$CPP $CPPFLAGS'
Chris@1 7153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@1 7154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@1 7155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@1 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Chris@1 7157 $as_echo_n "checking how to run the C preprocessor... " >&6; }
Chris@1 7158 # On Suns, sometimes $CPP names a directory.
Chris@1 7159 if test -n "$CPP" && test -d "$CPP"; then
Chris@1 7160 CPP=
Chris@1 7161 fi
Chris@1 7162 if test -z "$CPP"; then
Chris@1 7163 if ${ac_cv_prog_CPP+:} false; then :
Chris@1 7164 $as_echo_n "(cached) " >&6
Chris@1 7165 else
Chris@1 7166 # Double quotes because CPP needs to be expanded
Chris@1 7167 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
Chris@1 7168 do
Chris@1 7169 ac_preproc_ok=false
Chris@1 7170 for ac_c_preproc_warn_flag in '' yes
Chris@1 7171 do
Chris@1 7172 # Use a header file that comes with gcc, so configuring glibc
Chris@1 7173 # with a fresh cross-compiler works.
Chris@1 7174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@1 7175 # <limits.h> exists even on freestanding compilers.
Chris@1 7176 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@1 7177 # not just through cpp. "Syntax error" is here to catch this case.
Chris@1 7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 7179 /* end confdefs.h. */
Chris@1 7180 #ifdef __STDC__
Chris@1 7181 # include <limits.h>
Chris@1 7182 #else
Chris@1 7183 # include <assert.h>
Chris@1 7184 #endif
Chris@1 7185 Syntax error
Chris@1 7186 _ACEOF
Chris@1 7187 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@1 7188
Chris@1 7189 else
Chris@1 7190 # Broken: fails on valid input.
Chris@1 7191 continue
Chris@1 7192 fi
Chris@1 7193 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@1 7194
Chris@1 7195 # OK, works on sane cases. Now check whether nonexistent headers
Chris@1 7196 # can be detected and how.
Chris@1 7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 7198 /* end confdefs.h. */
Chris@1 7199 #include <ac_nonexistent.h>
Chris@1 7200 _ACEOF
Chris@1 7201 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@1 7202 # Broken: success on invalid input.
Chris@1 7203 continue
Chris@1 7204 else
Chris@1 7205 # Passes both tests.
Chris@1 7206 ac_preproc_ok=:
Chris@1 7207 break
Chris@1 7208 fi
Chris@1 7209 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@1 7210
Chris@1 7211 done
Chris@1 7212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@1 7213 rm -f conftest.i conftest.err conftest.$ac_ext
Chris@1 7214 if $ac_preproc_ok; then :
Chris@1 7215 break
Chris@1 7216 fi
Chris@1 7217
Chris@1 7218 done
Chris@1 7219 ac_cv_prog_CPP=$CPP
Chris@1 7220
Chris@1 7221 fi
Chris@1 7222 CPP=$ac_cv_prog_CPP
Chris@1 7223 else
Chris@1 7224 ac_cv_prog_CPP=$CPP
Chris@1 7225 fi
Chris@1 7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Chris@1 7227 $as_echo "$CPP" >&6; }
Chris@1 7228 ac_preproc_ok=false
Chris@1 7229 for ac_c_preproc_warn_flag in '' yes
Chris@1 7230 do
Chris@1 7231 # Use a header file that comes with gcc, so configuring glibc
Chris@1 7232 # with a fresh cross-compiler works.
Chris@1 7233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@1 7234 # <limits.h> exists even on freestanding compilers.
Chris@1 7235 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@1 7236 # not just through cpp. "Syntax error" is here to catch this case.
Chris@1 7237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 7238 /* end confdefs.h. */
Chris@1 7239 #ifdef __STDC__
Chris@1 7240 # include <limits.h>
Chris@1 7241 #else
Chris@1 7242 # include <assert.h>
Chris@1 7243 #endif
Chris@1 7244 Syntax error
Chris@1 7245 _ACEOF
Chris@1 7246 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@1 7247
Chris@1 7248 else
Chris@1 7249 # Broken: fails on valid input.
Chris@1 7250 continue
Chris@1 7251 fi
Chris@1 7252 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@1 7253
Chris@1 7254 # OK, works on sane cases. Now check whether nonexistent headers
Chris@1 7255 # can be detected and how.
Chris@1 7256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 7257 /* end confdefs.h. */
Chris@1 7258 #include <ac_nonexistent.h>
Chris@1 7259 _ACEOF
Chris@1 7260 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@1 7261 # Broken: success on invalid input.
Chris@1 7262 continue
Chris@1 7263 else
Chris@1 7264 # Passes both tests.
Chris@1 7265 ac_preproc_ok=:
Chris@1 7266 break
Chris@1 7267 fi
Chris@1 7268 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@1 7269
Chris@1 7270 done
Chris@1 7271 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@1 7272 rm -f conftest.i conftest.err conftest.$ac_ext
Chris@1 7273 if $ac_preproc_ok; then :
Chris@1 7274
Chris@1 7275 else
Chris@1 7276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@1 7277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@1 7278 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
Chris@1 7279 See \`config.log' for more details" "$LINENO" 5; }
Chris@1 7280 fi
Chris@1 7281
Chris@1 7282 ac_ext=c
Chris@1 7283 ac_cpp='$CPP $CPPFLAGS'
Chris@1 7284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@1 7285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@1 7286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@1 7287
Chris@1 7288
Chris@1 7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Chris@1 7290 $as_echo_n "checking for ANSI C header files... " >&6; }
Chris@1 7291 if ${ac_cv_header_stdc+:} false; then :
Chris@1 7292 $as_echo_n "(cached) " >&6
Chris@1 7293 else
Chris@1 7294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 7295 /* end confdefs.h. */
Chris@1 7296 #include <stdlib.h>
Chris@1 7297 #include <stdarg.h>
Chris@1 7298 #include <string.h>
Chris@1 7299 #include <float.h>
Chris@1 7300
Chris@1 7301 int
Chris@1 7302 main ()
Chris@1 7303 {
Chris@1 7304
Chris@1 7305 ;
Chris@1 7306 return 0;
Chris@1 7307 }
Chris@1 7308 _ACEOF
Chris@1 7309 if ac_fn_c_try_compile "$LINENO"; then :
Chris@1 7310 ac_cv_header_stdc=yes
Chris@1 7311 else
Chris@1 7312 ac_cv_header_stdc=no
Chris@1 7313 fi
Chris@1 7314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@1 7315
Chris@1 7316 if test $ac_cv_header_stdc = yes; then
Chris@1 7317 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Chris@1 7318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 7319 /* end confdefs.h. */
Chris@1 7320 #include <string.h>
Chris@1 7321
Chris@1 7322 _ACEOF
Chris@1 7323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@1 7324 $EGREP "memchr" >/dev/null 2>&1; then :
Chris@1 7325
Chris@1 7326 else
Chris@1 7327 ac_cv_header_stdc=no
Chris@1 7328 fi
Chris@1 7329 rm -f conftest*
Chris@1 7330
Chris@1 7331 fi
Chris@1 7332
Chris@1 7333 if test $ac_cv_header_stdc = yes; then
Chris@1 7334 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Chris@1 7335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 7336 /* end confdefs.h. */
Chris@1 7337 #include <stdlib.h>
Chris@1 7338
Chris@1 7339 _ACEOF
Chris@1 7340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@1 7341 $EGREP "free" >/dev/null 2>&1; then :
Chris@1 7342
Chris@1 7343 else
Chris@1 7344 ac_cv_header_stdc=no
Chris@1 7345 fi
Chris@1 7346 rm -f conftest*
Chris@1 7347
Chris@1 7348 fi
Chris@1 7349
Chris@1 7350 if test $ac_cv_header_stdc = yes; then
Chris@1 7351 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Chris@1 7352 if test "$cross_compiling" = yes; then :
Chris@1 7353 :
Chris@1 7354 else
Chris@1 7355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 7356 /* end confdefs.h. */
Chris@1 7357 #include <ctype.h>
Chris@1 7358 #include <stdlib.h>
Chris@1 7359 #if ((' ' & 0x0FF) == 0x020)
Chris@1 7360 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
Chris@1 7361 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Chris@1 7362 #else
Chris@1 7363 # define ISLOWER(c) \
Chris@1 7364 (('a' <= (c) && (c) <= 'i') \
Chris@1 7365 || ('j' <= (c) && (c) <= 'r') \
Chris@1 7366 || ('s' <= (c) && (c) <= 'z'))
Chris@1 7367 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
Chris@1 7368 #endif
Chris@1 7369
Chris@1 7370 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Chris@1 7371 int
Chris@1 7372 main ()
Chris@1 7373 {
Chris@1 7374 int i;
Chris@1 7375 for (i = 0; i < 256; i++)
Chris@1 7376 if (XOR (islower (i), ISLOWER (i))
Chris@1 7377 || toupper (i) != TOUPPER (i))
Chris@1 7378 return 2;
Chris@1 7379 return 0;
Chris@1 7380 }
Chris@1 7381 _ACEOF
Chris@1 7382 if ac_fn_c_try_run "$LINENO"; then :
Chris@1 7383
Chris@1 7384 else
Chris@1 7385 ac_cv_header_stdc=no
Chris@1 7386 fi
Chris@1 7387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@1 7388 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@1 7389 fi
Chris@1 7390
Chris@1 7391 fi
Chris@1 7392 fi
Chris@1 7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Chris@1 7394 $as_echo "$ac_cv_header_stdc" >&6; }
Chris@1 7395 if test $ac_cv_header_stdc = yes; then
Chris@1 7396
Chris@1 7397 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
Chris@1 7398
Chris@1 7399 fi
Chris@1 7400
Chris@1 7401 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
Chris@1 7402 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Chris@1 7403 inttypes.h stdint.h unistd.h
Chris@1 7404 do :
Chris@1 7405 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Chris@1 7406 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
Chris@1 7407 "
Chris@1 7408 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@1 7409 cat >>confdefs.h <<_ACEOF
Chris@1 7410 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris@1 7411 _ACEOF
Chris@1 7412
Chris@1 7413 fi
Chris@1 7414
Chris@1 7415 done
Chris@1 7416
Chris@1 7417
Chris@1 7418 for ac_header in dlfcn.h
Chris@1 7419 do :
Chris@1 7420 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
Chris@1 7421 "
Chris@1 7422 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Chris@1 7423 cat >>confdefs.h <<_ACEOF
Chris@1 7424 #define HAVE_DLFCN_H 1
Chris@1 7425 _ACEOF
Chris@1 7426
Chris@1 7427 fi
Chris@1 7428
Chris@1 7429 done
Chris@1 7430
Chris@1 7431
Chris@1 7432
Chris@1 7433
Chris@1 7434
Chris@1 7435 # Set options
Chris@1 7436
Chris@1 7437
Chris@1 7438
Chris@1 7439 enable_dlopen=no
Chris@1 7440
Chris@1 7441
Chris@1 7442 enable_win32_dll=no
Chris@1 7443
Chris@1 7444
Chris@1 7445 # Check whether --enable-shared was given.
Chris@1 7446 if test "${enable_shared+set}" = set; then :
Chris@1 7447 enableval=$enable_shared; p=${PACKAGE-default}
Chris@1 7448 case $enableval in
Chris@1 7449 yes) enable_shared=yes ;;
Chris@1 7450 no) enable_shared=no ;;
Chris@1 7451 *)
Chris@1 7452 enable_shared=no
Chris@1 7453 # Look at the argument we got. We use all the common list separators.
Chris@1 7454 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
Chris@1 7455 for pkg in $enableval; do
Chris@1 7456 IFS="$lt_save_ifs"
Chris@1 7457 if test "X$pkg" = "X$p"; then
Chris@1 7458 enable_shared=yes
Chris@1 7459 fi
Chris@1 7460 done
Chris@1 7461 IFS="$lt_save_ifs"
Chris@1 7462 ;;
Chris@1 7463 esac
Chris@1 7464 else
Chris@1 7465 enable_shared=yes
Chris@1 7466 fi
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 # Check whether --enable-static was given.
Chris@1 7477 if test "${enable_static+set}" = set; then :
Chris@1 7478 enableval=$enable_static; p=${PACKAGE-default}
Chris@1 7479 case $enableval in
Chris@1 7480 yes) enable_static=yes ;;
Chris@1 7481 no) enable_static=no ;;
Chris@1 7482 *)
Chris@1 7483 enable_static=no
Chris@1 7484 # Look at the argument we got. We use all the common list separators.
Chris@1 7485 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
Chris@1 7486 for pkg in $enableval; do
Chris@1 7487 IFS="$lt_save_ifs"
Chris@1 7488 if test "X$pkg" = "X$p"; then
Chris@1 7489 enable_static=yes
Chris@1 7490 fi
Chris@1 7491 done
Chris@1 7492 IFS="$lt_save_ifs"
Chris@1 7493 ;;
Chris@1 7494 esac
Chris@1 7495 else
Chris@1 7496 enable_static=yes
Chris@1 7497 fi
Chris@1 7498
Chris@1 7499
Chris@1 7500
Chris@1 7501
Chris@1 7502
Chris@1 7503
Chris@1 7504
Chris@1 7505
Chris@1 7506
Chris@1 7507
Chris@1 7508 # Check whether --with-pic was given.
Chris@1 7509 if test "${with_pic+set}" = set; then :
Chris@1 7510 withval=$with_pic; pic_mode="$withval"
Chris@1 7511 else
Chris@1 7512 pic_mode=default
Chris@1 7513 fi
Chris@1 7514
Chris@1 7515
Chris@1 7516 test -z "$pic_mode" && pic_mode=default
Chris@1 7517
Chris@1 7518
Chris@1 7519
Chris@1 7520
Chris@1 7521
Chris@1 7522
Chris@1 7523
Chris@1 7524 # Check whether --enable-fast-install was given.
Chris@1 7525 if test "${enable_fast_install+set}" = set; then :
Chris@1 7526 enableval=$enable_fast_install; p=${PACKAGE-default}
Chris@1 7527 case $enableval in
Chris@1 7528 yes) enable_fast_install=yes ;;
Chris@1 7529 no) enable_fast_install=no ;;
Chris@1 7530 *)
Chris@1 7531 enable_fast_install=no
Chris@1 7532 # Look at the argument we got. We use all the common list separators.
Chris@1 7533 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
Chris@1 7534 for pkg in $enableval; do
Chris@1 7535 IFS="$lt_save_ifs"
Chris@1 7536 if test "X$pkg" = "X$p"; then
Chris@1 7537 enable_fast_install=yes
Chris@1 7538 fi
Chris@1 7539 done
Chris@1 7540 IFS="$lt_save_ifs"
Chris@1 7541 ;;
Chris@1 7542 esac
Chris@1 7543 else
Chris@1 7544 enable_fast_install=yes
Chris@1 7545 fi
Chris@1 7546
Chris@1 7547
Chris@1 7548
Chris@1 7549
Chris@1 7550
Chris@1 7551
Chris@1 7552
Chris@1 7553
Chris@1 7554
Chris@1 7555
Chris@1 7556
Chris@1 7557 # This can be used to rebuild libtool when needed
Chris@1 7558 LIBTOOL_DEPS="$ltmain"
Chris@1 7559
Chris@1 7560 # Always use our own libtool.
Chris@1 7561 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
Chris@1 7562
Chris@1 7563
Chris@1 7564
Chris@1 7565
Chris@1 7566
Chris@1 7567
Chris@1 7568
Chris@1 7569
Chris@1 7570
Chris@1 7571
Chris@1 7572
Chris@1 7573
Chris@1 7574
Chris@1 7575
Chris@1 7576
Chris@1 7577
Chris@1 7578
Chris@1 7579
Chris@1 7580
Chris@1 7581
Chris@1 7582
Chris@1 7583
Chris@1 7584
Chris@1 7585
Chris@1 7586
Chris@1 7587
Chris@1 7588 test -z "$LN_S" && LN_S="ln -s"
Chris@1 7589
Chris@1 7590
Chris@1 7591
Chris@1 7592
Chris@1 7593
Chris@1 7594
Chris@1 7595
Chris@1 7596
Chris@1 7597
Chris@1 7598
Chris@1 7599
Chris@1 7600
Chris@1 7601
Chris@1 7602
Chris@1 7603 if test -n "${ZSH_VERSION+set}" ; then
Chris@1 7604 setopt NO_GLOB_SUBST
Chris@1 7605 fi
Chris@1 7606
Chris@1 7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
Chris@1 7608 $as_echo_n "checking for objdir... " >&6; }
Chris@1 7609 if ${lt_cv_objdir+:} false; then :
Chris@1 7610 $as_echo_n "(cached) " >&6
Chris@1 7611 else
Chris@1 7612 rm -f .libs 2>/dev/null
Chris@1 7613 mkdir .libs 2>/dev/null
Chris@1 7614 if test -d .libs; then
Chris@1 7615 lt_cv_objdir=.libs
Chris@1 7616 else
Chris@1 7617 # MS-DOS does not allow filenames that begin with a dot.
Chris@1 7618 lt_cv_objdir=_libs
Chris@1 7619 fi
Chris@1 7620 rmdir .libs 2>/dev/null
Chris@1 7621 fi
Chris@1 7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
Chris@1 7623 $as_echo "$lt_cv_objdir" >&6; }
Chris@1 7624 objdir=$lt_cv_objdir
Chris@1 7625
Chris@1 7626
Chris@1 7627
Chris@1 7628
Chris@1 7629
Chris@1 7630 cat >>confdefs.h <<_ACEOF
Chris@1 7631 #define LT_OBJDIR "$lt_cv_objdir/"
Chris@1 7632 _ACEOF
Chris@1 7633
Chris@1 7634
Chris@1 7635
Chris@1 7636
Chris@1 7637 case $host_os in
Chris@1 7638 aix3*)
Chris@1 7639 # AIX sometimes has problems with the GCC collect2 program. For some
Chris@1 7640 # reason, if we set the COLLECT_NAMES environment variable, the problems
Chris@1 7641 # vanish in a puff of smoke.
Chris@1 7642 if test "X${COLLECT_NAMES+set}" != Xset; then
Chris@1 7643 COLLECT_NAMES=
Chris@1 7644 export COLLECT_NAMES
Chris@1 7645 fi
Chris@1 7646 ;;
Chris@1 7647 esac
Chris@1 7648
Chris@1 7649 # Global variables:
Chris@1 7650 ofile=libtool
Chris@1 7651 can_build_shared=yes
Chris@1 7652
Chris@1 7653 # All known linkers require a `.a' archive for static linking (except MSVC,
Chris@1 7654 # which needs '.lib').
Chris@1 7655 libext=a
Chris@1 7656
Chris@1 7657 with_gnu_ld="$lt_cv_prog_gnu_ld"
Chris@1 7658
Chris@1 7659 old_CC="$CC"
Chris@1 7660 old_CFLAGS="$CFLAGS"
Chris@1 7661
Chris@1 7662 # Set sane defaults for various variables
Chris@1 7663 test -z "$CC" && CC=cc
Chris@1 7664 test -z "$LTCC" && LTCC=$CC
Chris@1 7665 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
Chris@1 7666 test -z "$LD" && LD=ld
Chris@1 7667 test -z "$ac_objext" && ac_objext=o
Chris@1 7668
Chris@1 7669 for cc_temp in $compiler""; do
Chris@1 7670 case $cc_temp in
Chris@1 7671 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
Chris@1 7672 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
Chris@1 7673 \-*) ;;
Chris@1 7674 *) break;;
Chris@1 7675 esac
Chris@1 7676 done
Chris@1 7677 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Chris@1 7678
Chris@1 7679
Chris@1 7680 # Only perform the check for file, if the check method requires it
Chris@1 7681 test -z "$MAGIC_CMD" && MAGIC_CMD=file
Chris@1 7682 case $deplibs_check_method in
Chris@1 7683 file_magic*)
Chris@1 7684 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Chris@1 7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
Chris@1 7686 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Chris@1 7687 if ${lt_cv_path_MAGIC_CMD+:} false; then :
Chris@1 7688 $as_echo_n "(cached) " >&6
Chris@1 7689 else
Chris@1 7690 case $MAGIC_CMD in
Chris@1 7691 [\\/*] | ?:[\\/]*)
Chris@1 7692 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
Chris@1 7693 ;;
Chris@1 7694 *)
Chris@1 7695 lt_save_MAGIC_CMD="$MAGIC_CMD"
Chris@1 7696 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@1 7697 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
Chris@1 7698 for ac_dir in $ac_dummy; do
Chris@1 7699 IFS="$lt_save_ifs"
Chris@1 7700 test -z "$ac_dir" && ac_dir=.
Chris@1 7701 if test -f $ac_dir/${ac_tool_prefix}file; then
Chris@1 7702 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
Chris@1 7703 if test -n "$file_magic_test_file"; then
Chris@1 7704 case $deplibs_check_method in
Chris@1 7705 "file_magic "*)
Chris@1 7706 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Chris@1 7707 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Chris@1 7708 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
Chris@1 7709 $EGREP "$file_magic_regex" > /dev/null; then
Chris@1 7710 :
Chris@1 7711 else
Chris@1 7712 cat <<_LT_EOF 1>&2
Chris@1 7713
Chris@1 7714 *** Warning: the command libtool uses to detect shared libraries,
Chris@1 7715 *** $file_magic_cmd, produces output that libtool cannot recognize.
Chris@1 7716 *** The result is that libtool may fail to recognize shared libraries
Chris@1 7717 *** as such. This will affect the creation of libtool libraries that
Chris@1 7718 *** depend on shared libraries, but programs linked with such libtool
Chris@1 7719 *** libraries will work regardless of this problem. Nevertheless, you
Chris@1 7720 *** may want to report the problem to your system manager and/or to
Chris@1 7721 *** bug-libtool@gnu.org
Chris@1 7722
Chris@1 7723 _LT_EOF
Chris@1 7724 fi ;;
Chris@1 7725 esac
Chris@1 7726 fi
Chris@1 7727 break
Chris@1 7728 fi
Chris@1 7729 done
Chris@1 7730 IFS="$lt_save_ifs"
Chris@1 7731 MAGIC_CMD="$lt_save_MAGIC_CMD"
Chris@1 7732 ;;
Chris@1 7733 esac
Chris@1 7734 fi
Chris@1 7735
Chris@1 7736 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Chris@1 7737 if test -n "$MAGIC_CMD"; then
Chris@1 7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Chris@1 7739 $as_echo "$MAGIC_CMD" >&6; }
Chris@1 7740 else
Chris@1 7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 7742 $as_echo "no" >&6; }
Chris@1 7743 fi
Chris@1 7744
Chris@1 7745
Chris@1 7746
Chris@1 7747
Chris@1 7748
Chris@1 7749 if test -z "$lt_cv_path_MAGIC_CMD"; then
Chris@1 7750 if test -n "$ac_tool_prefix"; then
Chris@1 7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
Chris@1 7752 $as_echo_n "checking for file... " >&6; }
Chris@1 7753 if ${lt_cv_path_MAGIC_CMD+:} false; then :
Chris@1 7754 $as_echo_n "(cached) " >&6
Chris@1 7755 else
Chris@1 7756 case $MAGIC_CMD in
Chris@1 7757 [\\/*] | ?:[\\/]*)
Chris@1 7758 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
Chris@1 7759 ;;
Chris@1 7760 *)
Chris@1 7761 lt_save_MAGIC_CMD="$MAGIC_CMD"
Chris@1 7762 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@1 7763 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
Chris@1 7764 for ac_dir in $ac_dummy; do
Chris@1 7765 IFS="$lt_save_ifs"
Chris@1 7766 test -z "$ac_dir" && ac_dir=.
Chris@1 7767 if test -f $ac_dir/file; then
Chris@1 7768 lt_cv_path_MAGIC_CMD="$ac_dir/file"
Chris@1 7769 if test -n "$file_magic_test_file"; then
Chris@1 7770 case $deplibs_check_method in
Chris@1 7771 "file_magic "*)
Chris@1 7772 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Chris@1 7773 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Chris@1 7774 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
Chris@1 7775 $EGREP "$file_magic_regex" > /dev/null; then
Chris@1 7776 :
Chris@1 7777 else
Chris@1 7778 cat <<_LT_EOF 1>&2
Chris@1 7779
Chris@1 7780 *** Warning: the command libtool uses to detect shared libraries,
Chris@1 7781 *** $file_magic_cmd, produces output that libtool cannot recognize.
Chris@1 7782 *** The result is that libtool may fail to recognize shared libraries
Chris@1 7783 *** as such. This will affect the creation of libtool libraries that
Chris@1 7784 *** depend on shared libraries, but programs linked with such libtool
Chris@1 7785 *** libraries will work regardless of this problem. Nevertheless, you
Chris@1 7786 *** may want to report the problem to your system manager and/or to
Chris@1 7787 *** bug-libtool@gnu.org
Chris@1 7788
Chris@1 7789 _LT_EOF
Chris@1 7790 fi ;;
Chris@1 7791 esac
Chris@1 7792 fi
Chris@1 7793 break
Chris@1 7794 fi
Chris@1 7795 done
Chris@1 7796 IFS="$lt_save_ifs"
Chris@1 7797 MAGIC_CMD="$lt_save_MAGIC_CMD"
Chris@1 7798 ;;
Chris@1 7799 esac
Chris@1 7800 fi
Chris@1 7801
Chris@1 7802 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Chris@1 7803 if test -n "$MAGIC_CMD"; then
Chris@1 7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Chris@1 7805 $as_echo "$MAGIC_CMD" >&6; }
Chris@1 7806 else
Chris@1 7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 7808 $as_echo "no" >&6; }
Chris@1 7809 fi
Chris@1 7810
Chris@1 7811
Chris@1 7812 else
Chris@1 7813 MAGIC_CMD=:
Chris@1 7814 fi
Chris@1 7815 fi
Chris@1 7816
Chris@1 7817 fi
Chris@1 7818 ;;
Chris@1 7819 esac
Chris@1 7820
Chris@1 7821 # Use C for the default configuration in the libtool script
Chris@1 7822
Chris@1 7823 lt_save_CC="$CC"
Chris@1 7824 ac_ext=c
Chris@1 7825 ac_cpp='$CPP $CPPFLAGS'
Chris@1 7826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@1 7827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@1 7828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@1 7829
Chris@1 7830
Chris@1 7831 # Source file extension for C test sources.
Chris@1 7832 ac_ext=c
Chris@1 7833
Chris@1 7834 # Object file extension for compiled C test sources.
Chris@1 7835 objext=o
Chris@1 7836 objext=$objext
Chris@1 7837
Chris@1 7838 # Code to be used in simple compile tests
Chris@1 7839 lt_simple_compile_test_code="int some_variable = 0;"
Chris@1 7840
Chris@1 7841 # Code to be used in simple link tests
Chris@1 7842 lt_simple_link_test_code='int main(){return(0);}'
Chris@1 7843
Chris@1 7844
Chris@1 7845
Chris@1 7846
Chris@1 7847
Chris@1 7848
Chris@1 7849
Chris@1 7850 # If no C compiler was specified, use CC.
Chris@1 7851 LTCC=${LTCC-"$CC"}
Chris@1 7852
Chris@1 7853 # If no C compiler flags were specified, use CFLAGS.
Chris@1 7854 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Chris@1 7855
Chris@1 7856 # Allow CC to be a program name with arguments.
Chris@1 7857 compiler=$CC
Chris@1 7858
Chris@1 7859 # Save the default compiler, since it gets overwritten when the other
Chris@1 7860 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
Chris@1 7861 compiler_DEFAULT=$CC
Chris@1 7862
Chris@1 7863 # save warnings/boilerplate of simple test code
Chris@1 7864 ac_outfile=conftest.$ac_objext
Chris@1 7865 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Chris@1 7866 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@1 7867 _lt_compiler_boilerplate=`cat conftest.err`
Chris@1 7868 $RM conftest*
Chris@1 7869
Chris@1 7870 ac_outfile=conftest.$ac_objext
Chris@1 7871 echo "$lt_simple_link_test_code" >conftest.$ac_ext
Chris@1 7872 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@1 7873 _lt_linker_boilerplate=`cat conftest.err`
Chris@1 7874 $RM -r conftest*
Chris@1 7875
Chris@1 7876
Chris@1 7877 if test -n "$compiler"; then
Chris@1 7878
Chris@1 7879 lt_prog_compiler_no_builtin_flag=
Chris@1 7880
Chris@1 7881 if test "$GCC" = yes; then
Chris@1 7882 case $cc_basename in
Chris@1 7883 nvcc*)
Chris@1 7884 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
Chris@1 7885 *)
Chris@1 7886 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
Chris@1 7887 esac
Chris@1 7888
Chris@1 7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Chris@1 7890 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Chris@1 7891 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Chris@1 7892 $as_echo_n "(cached) " >&6
Chris@1 7893 else
Chris@1 7894 lt_cv_prog_compiler_rtti_exceptions=no
Chris@1 7895 ac_outfile=conftest.$ac_objext
Chris@1 7896 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@1 7897 lt_compiler_flag="-fno-rtti -fno-exceptions"
Chris@1 7898 # Insert the option either (1) after the last *FLAGS variable, or
Chris@1 7899 # (2) before a word containing "conftest.", or (3) at the end.
Chris@1 7900 # Note that $ac_compile itself does not contain backslashes and begins
Chris@1 7901 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@1 7902 # The option is referenced via a variable to avoid confusing sed.
Chris@1 7903 lt_compile=`echo "$ac_compile" | $SED \
Chris@1 7904 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@1 7905 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@1 7906 -e 's:$: $lt_compiler_flag:'`
Chris@1 7907 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@1 7908 (eval "$lt_compile" 2>conftest.err)
Chris@1 7909 ac_status=$?
Chris@1 7910 cat conftest.err >&5
Chris@1 7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@1 7912 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@1 7913 # The compiler can only warn and ignore the option if not recognized
Chris@1 7914 # So say no if there are warnings other than the usual output.
Chris@1 7915 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Chris@1 7916 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@1 7917 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Chris@1 7918 lt_cv_prog_compiler_rtti_exceptions=yes
Chris@1 7919 fi
Chris@1 7920 fi
Chris@1 7921 $RM conftest*
Chris@1 7922
Chris@1 7923 fi
Chris@1 7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Chris@1 7925 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Chris@1 7926
Chris@1 7927 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
Chris@1 7928 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
Chris@1 7929 else
Chris@1 7930 :
Chris@1 7931 fi
Chris@1 7932
Chris@1 7933 fi
Chris@1 7934
Chris@1 7935
Chris@1 7936
Chris@1 7937
Chris@1 7938
Chris@1 7939
Chris@1 7940 lt_prog_compiler_wl=
Chris@1 7941 lt_prog_compiler_pic=
Chris@1 7942 lt_prog_compiler_static=
Chris@1 7943
Chris@1 7944
Chris@1 7945 if test "$GCC" = yes; then
Chris@1 7946 lt_prog_compiler_wl='-Wl,'
Chris@1 7947 lt_prog_compiler_static='-static'
Chris@1 7948
Chris@1 7949 case $host_os in
Chris@1 7950 aix*)
Chris@1 7951 # All AIX code is PIC.
Chris@1 7952 if test "$host_cpu" = ia64; then
Chris@1 7953 # AIX 5 now supports IA64 processor
Chris@1 7954 lt_prog_compiler_static='-Bstatic'
Chris@1 7955 fi
Chris@1 7956 ;;
Chris@1 7957
Chris@1 7958 amigaos*)
Chris@1 7959 case $host_cpu in
Chris@1 7960 powerpc)
Chris@1 7961 # see comment about AmigaOS4 .so support
Chris@1 7962 lt_prog_compiler_pic='-fPIC'
Chris@1 7963 ;;
Chris@1 7964 m68k)
Chris@1 7965 # FIXME: we need at least 68020 code to build shared libraries, but
Chris@1 7966 # adding the `-m68020' flag to GCC prevents building anything better,
Chris@1 7967 # like `-m68040'.
Chris@1 7968 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
Chris@1 7969 ;;
Chris@1 7970 esac
Chris@1 7971 ;;
Chris@1 7972
Chris@1 7973 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Chris@1 7974 # PIC is the default for these OSes.
Chris@1 7975 ;;
Chris@1 7976
Chris@1 7977 mingw* | cygwin* | pw32* | os2* | cegcc*)
Chris@1 7978 # This hack is so that the source file can tell whether it is being
Chris@1 7979 # built for inclusion in a dll (and should export symbols for example).
Chris@1 7980 # Although the cygwin gcc ignores -fPIC, still need this for old-style
Chris@1 7981 # (--disable-auto-import) libraries
Chris@1 7982 lt_prog_compiler_pic='-DDLL_EXPORT'
Chris@1 7983 ;;
Chris@1 7984
Chris@1 7985 darwin* | rhapsody*)
Chris@1 7986 # PIC is the default on this platform
Chris@1 7987 # Common symbols not allowed in MH_DYLIB files
Chris@1 7988 lt_prog_compiler_pic='-fno-common'
Chris@1 7989 ;;
Chris@1 7990
Chris@1 7991 haiku*)
Chris@1 7992 # PIC is the default for Haiku.
Chris@1 7993 # The "-static" flag exists, but is broken.
Chris@1 7994 lt_prog_compiler_static=
Chris@1 7995 ;;
Chris@1 7996
Chris@1 7997 hpux*)
Chris@1 7998 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
Chris@1 7999 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
Chris@1 8000 # sets the default TLS model and affects inlining.
Chris@1 8001 case $host_cpu in
Chris@1 8002 hppa*64*)
Chris@1 8003 # +Z the default
Chris@1 8004 ;;
Chris@1 8005 *)
Chris@1 8006 lt_prog_compiler_pic='-fPIC'
Chris@1 8007 ;;
Chris@1 8008 esac
Chris@1 8009 ;;
Chris@1 8010
Chris@1 8011 interix[3-9]*)
Chris@1 8012 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
Chris@1 8013 # Instead, we relocate shared libraries at runtime.
Chris@1 8014 ;;
Chris@1 8015
Chris@1 8016 msdosdjgpp*)
Chris@1 8017 # Just because we use GCC doesn't mean we suddenly get shared libraries
Chris@1 8018 # on systems that don't support them.
Chris@1 8019 lt_prog_compiler_can_build_shared=no
Chris@1 8020 enable_shared=no
Chris@1 8021 ;;
Chris@1 8022
Chris@1 8023 *nto* | *qnx*)
Chris@1 8024 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@1 8025 # it will coredump.
Chris@1 8026 lt_prog_compiler_pic='-fPIC -shared'
Chris@1 8027 ;;
Chris@1 8028
Chris@1 8029 sysv4*MP*)
Chris@1 8030 if test -d /usr/nec; then
Chris@1 8031 lt_prog_compiler_pic=-Kconform_pic
Chris@1 8032 fi
Chris@1 8033 ;;
Chris@1 8034
Chris@1 8035 *)
Chris@1 8036 lt_prog_compiler_pic='-fPIC'
Chris@1 8037 ;;
Chris@1 8038 esac
Chris@1 8039
Chris@1 8040 case $cc_basename in
Chris@1 8041 nvcc*) # Cuda Compiler Driver 2.2
Chris@1 8042 lt_prog_compiler_wl='-Xlinker '
Chris@1 8043 lt_prog_compiler_pic='-Xcompiler -fPIC'
Chris@1 8044 ;;
Chris@1 8045 esac
Chris@1 8046 else
Chris@1 8047 # PORTME Check for flag to pass linker flags through the system compiler.
Chris@1 8048 case $host_os in
Chris@1 8049 aix*)
Chris@1 8050 lt_prog_compiler_wl='-Wl,'
Chris@1 8051 if test "$host_cpu" = ia64; then
Chris@1 8052 # AIX 5 now supports IA64 processor
Chris@1 8053 lt_prog_compiler_static='-Bstatic'
Chris@1 8054 else
Chris@1 8055 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
Chris@1 8056 fi
Chris@1 8057 ;;
Chris@1 8058
Chris@1 8059 mingw* | cygwin* | pw32* | os2* | cegcc*)
Chris@1 8060 # This hack is so that the source file can tell whether it is being
Chris@1 8061 # built for inclusion in a dll (and should export symbols for example).
Chris@1 8062 lt_prog_compiler_pic='-DDLL_EXPORT'
Chris@1 8063 ;;
Chris@1 8064
Chris@1 8065 hpux9* | hpux10* | hpux11*)
Chris@1 8066 lt_prog_compiler_wl='-Wl,'
Chris@1 8067 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
Chris@1 8068 # not for PA HP-UX.
Chris@1 8069 case $host_cpu in
Chris@1 8070 hppa*64*|ia64*)
Chris@1 8071 # +Z the default
Chris@1 8072 ;;
Chris@1 8073 *)
Chris@1 8074 lt_prog_compiler_pic='+Z'
Chris@1 8075 ;;
Chris@1 8076 esac
Chris@1 8077 # Is there a better lt_prog_compiler_static that works with the bundled CC?
Chris@1 8078 lt_prog_compiler_static='${wl}-a ${wl}archive'
Chris@1 8079 ;;
Chris@1 8080
Chris@1 8081 irix5* | irix6* | nonstopux*)
Chris@1 8082 lt_prog_compiler_wl='-Wl,'
Chris@1 8083 # PIC (with -KPIC) is the default.
Chris@1 8084 lt_prog_compiler_static='-non_shared'
Chris@1 8085 ;;
Chris@1 8086
Chris@1 8087 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@1 8088 case $cc_basename in
Chris@1 8089 # old Intel for x86_64 which still supported -KPIC.
Chris@1 8090 ecc*)
Chris@1 8091 lt_prog_compiler_wl='-Wl,'
Chris@1 8092 lt_prog_compiler_pic='-KPIC'
Chris@1 8093 lt_prog_compiler_static='-static'
Chris@1 8094 ;;
Chris@1 8095 # icc used to be incompatible with GCC.
Chris@1 8096 # ICC 10 doesn't accept -KPIC any more.
Chris@1 8097 icc* | ifort*)
Chris@1 8098 lt_prog_compiler_wl='-Wl,'
Chris@1 8099 lt_prog_compiler_pic='-fPIC'
Chris@1 8100 lt_prog_compiler_static='-static'
Chris@1 8101 ;;
Chris@1 8102 # Lahey Fortran 8.1.
Chris@1 8103 lf95*)
Chris@1 8104 lt_prog_compiler_wl='-Wl,'
Chris@1 8105 lt_prog_compiler_pic='--shared'
Chris@1 8106 lt_prog_compiler_static='--static'
Chris@1 8107 ;;
Chris@1 8108 nagfor*)
Chris@1 8109 # NAG Fortran compiler
Chris@1 8110 lt_prog_compiler_wl='-Wl,-Wl,,'
Chris@1 8111 lt_prog_compiler_pic='-PIC'
Chris@1 8112 lt_prog_compiler_static='-Bstatic'
Chris@1 8113 ;;
Chris@1 8114 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Chris@1 8115 # Portland Group compilers (*not* the Pentium gcc compiler,
Chris@1 8116 # which looks to be a dead project)
Chris@1 8117 lt_prog_compiler_wl='-Wl,'
Chris@1 8118 lt_prog_compiler_pic='-fpic'
Chris@1 8119 lt_prog_compiler_static='-Bstatic'
Chris@1 8120 ;;
Chris@1 8121 ccc*)
Chris@1 8122 lt_prog_compiler_wl='-Wl,'
Chris@1 8123 # All Alpha code is PIC.
Chris@1 8124 lt_prog_compiler_static='-non_shared'
Chris@1 8125 ;;
Chris@1 8126 xl* | bgxl* | bgf* | mpixl*)
Chris@1 8127 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Chris@1 8128 lt_prog_compiler_wl='-Wl,'
Chris@1 8129 lt_prog_compiler_pic='-qpic'
Chris@1 8130 lt_prog_compiler_static='-qstaticlink'
Chris@1 8131 ;;
Chris@1 8132 *)
Chris@1 8133 case `$CC -V 2>&1 | sed 5q` in
Chris@1 8134 *Sun\ F* | *Sun*Fortran*)
Chris@1 8135 # Sun Fortran 8.3 passes all unrecognized flags to the linker
Chris@1 8136 lt_prog_compiler_pic='-KPIC'
Chris@1 8137 lt_prog_compiler_static='-Bstatic'
Chris@1 8138 lt_prog_compiler_wl=''
Chris@1 8139 ;;
Chris@1 8140 *Sun\ C*)
Chris@1 8141 # Sun C 5.9
Chris@1 8142 lt_prog_compiler_pic='-KPIC'
Chris@1 8143 lt_prog_compiler_static='-Bstatic'
Chris@1 8144 lt_prog_compiler_wl='-Wl,'
Chris@1 8145 ;;
Chris@1 8146 esac
Chris@1 8147 ;;
Chris@1 8148 esac
Chris@1 8149 ;;
Chris@1 8150
Chris@1 8151 newsos6)
Chris@1 8152 lt_prog_compiler_pic='-KPIC'
Chris@1 8153 lt_prog_compiler_static='-Bstatic'
Chris@1 8154 ;;
Chris@1 8155
Chris@1 8156 *nto* | *qnx*)
Chris@1 8157 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@1 8158 # it will coredump.
Chris@1 8159 lt_prog_compiler_pic='-fPIC -shared'
Chris@1 8160 ;;
Chris@1 8161
Chris@1 8162 osf3* | osf4* | osf5*)
Chris@1 8163 lt_prog_compiler_wl='-Wl,'
Chris@1 8164 # All OSF/1 code is PIC.
Chris@1 8165 lt_prog_compiler_static='-non_shared'
Chris@1 8166 ;;
Chris@1 8167
Chris@1 8168 rdos*)
Chris@1 8169 lt_prog_compiler_static='-non_shared'
Chris@1 8170 ;;
Chris@1 8171
Chris@1 8172 solaris*)
Chris@1 8173 lt_prog_compiler_pic='-KPIC'
Chris@1 8174 lt_prog_compiler_static='-Bstatic'
Chris@1 8175 case $cc_basename in
Chris@1 8176 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Chris@1 8177 lt_prog_compiler_wl='-Qoption ld ';;
Chris@1 8178 *)
Chris@1 8179 lt_prog_compiler_wl='-Wl,';;
Chris@1 8180 esac
Chris@1 8181 ;;
Chris@1 8182
Chris@1 8183 sunos4*)
Chris@1 8184 lt_prog_compiler_wl='-Qoption ld '
Chris@1 8185 lt_prog_compiler_pic='-PIC'
Chris@1 8186 lt_prog_compiler_static='-Bstatic'
Chris@1 8187 ;;
Chris@1 8188
Chris@1 8189 sysv4 | sysv4.2uw2* | sysv4.3*)
Chris@1 8190 lt_prog_compiler_wl='-Wl,'
Chris@1 8191 lt_prog_compiler_pic='-KPIC'
Chris@1 8192 lt_prog_compiler_static='-Bstatic'
Chris@1 8193 ;;
Chris@1 8194
Chris@1 8195 sysv4*MP*)
Chris@1 8196 if test -d /usr/nec ;then
Chris@1 8197 lt_prog_compiler_pic='-Kconform_pic'
Chris@1 8198 lt_prog_compiler_static='-Bstatic'
Chris@1 8199 fi
Chris@1 8200 ;;
Chris@1 8201
Chris@1 8202 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
Chris@1 8203 lt_prog_compiler_wl='-Wl,'
Chris@1 8204 lt_prog_compiler_pic='-KPIC'
Chris@1 8205 lt_prog_compiler_static='-Bstatic'
Chris@1 8206 ;;
Chris@1 8207
Chris@1 8208 unicos*)
Chris@1 8209 lt_prog_compiler_wl='-Wl,'
Chris@1 8210 lt_prog_compiler_can_build_shared=no
Chris@1 8211 ;;
Chris@1 8212
Chris@1 8213 uts4*)
Chris@1 8214 lt_prog_compiler_pic='-pic'
Chris@1 8215 lt_prog_compiler_static='-Bstatic'
Chris@1 8216 ;;
Chris@1 8217
Chris@1 8218 *)
Chris@1 8219 lt_prog_compiler_can_build_shared=no
Chris@1 8220 ;;
Chris@1 8221 esac
Chris@1 8222 fi
Chris@1 8223
Chris@1 8224 case $host_os in
Chris@1 8225 # For platforms which do not support PIC, -DPIC is meaningless:
Chris@1 8226 *djgpp*)
Chris@1 8227 lt_prog_compiler_pic=
Chris@1 8228 ;;
Chris@1 8229 *)
Chris@1 8230 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
Chris@1 8231 ;;
Chris@1 8232 esac
Chris@1 8233
Chris@1 8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
Chris@1 8235 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Chris@1 8236 if ${lt_cv_prog_compiler_pic+:} false; then :
Chris@1 8237 $as_echo_n "(cached) " >&6
Chris@1 8238 else
Chris@1 8239 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
Chris@1 8240 fi
Chris@1 8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
Chris@1 8242 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
Chris@1 8243 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
Chris@1 8244
Chris@1 8245 #
Chris@1 8246 # Check to make sure the PIC flag actually works.
Chris@1 8247 #
Chris@1 8248 if test -n "$lt_prog_compiler_pic"; then
Chris@1 8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
Chris@1 8250 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Chris@1 8251 if ${lt_cv_prog_compiler_pic_works+:} false; then :
Chris@1 8252 $as_echo_n "(cached) " >&6
Chris@1 8253 else
Chris@1 8254 lt_cv_prog_compiler_pic_works=no
Chris@1 8255 ac_outfile=conftest.$ac_objext
Chris@1 8256 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@1 8257 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
Chris@1 8258 # Insert the option either (1) after the last *FLAGS variable, or
Chris@1 8259 # (2) before a word containing "conftest.", or (3) at the end.
Chris@1 8260 # Note that $ac_compile itself does not contain backslashes and begins
Chris@1 8261 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@1 8262 # The option is referenced via a variable to avoid confusing sed.
Chris@1 8263 lt_compile=`echo "$ac_compile" | $SED \
Chris@1 8264 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@1 8265 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@1 8266 -e 's:$: $lt_compiler_flag:'`
Chris@1 8267 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@1 8268 (eval "$lt_compile" 2>conftest.err)
Chris@1 8269 ac_status=$?
Chris@1 8270 cat conftest.err >&5
Chris@1 8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@1 8272 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@1 8273 # The compiler can only warn and ignore the option if not recognized
Chris@1 8274 # So say no if there are warnings other than the usual output.
Chris@1 8275 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Chris@1 8276 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@1 8277 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Chris@1 8278 lt_cv_prog_compiler_pic_works=yes
Chris@1 8279 fi
Chris@1 8280 fi
Chris@1 8281 $RM conftest*
Chris@1 8282
Chris@1 8283 fi
Chris@1 8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
Chris@1 8285 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
Chris@1 8286
Chris@1 8287 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
Chris@1 8288 case $lt_prog_compiler_pic in
Chris@1 8289 "" | " "*) ;;
Chris@1 8290 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
Chris@1 8291 esac
Chris@1 8292 else
Chris@1 8293 lt_prog_compiler_pic=
Chris@1 8294 lt_prog_compiler_can_build_shared=no
Chris@1 8295 fi
Chris@1 8296
Chris@1 8297 fi
Chris@1 8298
Chris@1 8299
Chris@1 8300
Chris@1 8301
Chris@1 8302
Chris@1 8303
Chris@1 8304
Chris@1 8305
Chris@1 8306
Chris@1 8307
Chris@1 8308
Chris@1 8309 #
Chris@1 8310 # Check to make sure the static flag actually works.
Chris@1 8311 #
Chris@1 8312 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Chris@1 8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
Chris@1 8314 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Chris@1 8315 if ${lt_cv_prog_compiler_static_works+:} false; then :
Chris@1 8316 $as_echo_n "(cached) " >&6
Chris@1 8317 else
Chris@1 8318 lt_cv_prog_compiler_static_works=no
Chris@1 8319 save_LDFLAGS="$LDFLAGS"
Chris@1 8320 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Chris@1 8321 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Chris@1 8322 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Chris@1 8323 # The linker can only warn and ignore the option if not recognized
Chris@1 8324 # So say no if there are warnings
Chris@1 8325 if test -s conftest.err; then
Chris@1 8326 # Append any errors to the config.log.
Chris@1 8327 cat conftest.err 1>&5
Chris@1 8328 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Chris@1 8329 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@1 8330 if diff conftest.exp conftest.er2 >/dev/null; then
Chris@1 8331 lt_cv_prog_compiler_static_works=yes
Chris@1 8332 fi
Chris@1 8333 else
Chris@1 8334 lt_cv_prog_compiler_static_works=yes
Chris@1 8335 fi
Chris@1 8336 fi
Chris@1 8337 $RM -r conftest*
Chris@1 8338 LDFLAGS="$save_LDFLAGS"
Chris@1 8339
Chris@1 8340 fi
Chris@1 8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
Chris@1 8342 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
Chris@1 8343
Chris@1 8344 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
Chris@1 8345 :
Chris@1 8346 else
Chris@1 8347 lt_prog_compiler_static=
Chris@1 8348 fi
Chris@1 8349
Chris@1 8350
Chris@1 8351
Chris@1 8352
Chris@1 8353
Chris@1 8354
Chris@1 8355
Chris@1 8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@1 8357 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@1 8358 if ${lt_cv_prog_compiler_c_o+:} false; then :
Chris@1 8359 $as_echo_n "(cached) " >&6
Chris@1 8360 else
Chris@1 8361 lt_cv_prog_compiler_c_o=no
Chris@1 8362 $RM -r conftest 2>/dev/null
Chris@1 8363 mkdir conftest
Chris@1 8364 cd conftest
Chris@1 8365 mkdir out
Chris@1 8366 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@1 8367
Chris@1 8368 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@1 8369 # Insert the option either (1) after the last *FLAGS variable, or
Chris@1 8370 # (2) before a word containing "conftest.", or (3) at the end.
Chris@1 8371 # Note that $ac_compile itself does not contain backslashes and begins
Chris@1 8372 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@1 8373 lt_compile=`echo "$ac_compile" | $SED \
Chris@1 8374 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@1 8375 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@1 8376 -e 's:$: $lt_compiler_flag:'`
Chris@1 8377 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@1 8378 (eval "$lt_compile" 2>out/conftest.err)
Chris@1 8379 ac_status=$?
Chris@1 8380 cat out/conftest.err >&5
Chris@1 8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@1 8382 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@1 8383 then
Chris@1 8384 # The compiler can only warn and ignore the option if not recognized
Chris@1 8385 # So say no if there are warnings
Chris@1 8386 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@1 8387 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@1 8388 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@1 8389 lt_cv_prog_compiler_c_o=yes
Chris@1 8390 fi
Chris@1 8391 fi
Chris@1 8392 chmod u+w . 2>&5
Chris@1 8393 $RM conftest*
Chris@1 8394 # SGI C++ compiler will create directory out/ii_files/ for
Chris@1 8395 # template instantiation
Chris@1 8396 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@1 8397 $RM out/* && rmdir out
Chris@1 8398 cd ..
Chris@1 8399 $RM -r conftest
Chris@1 8400 $RM conftest*
Chris@1 8401
Chris@1 8402 fi
Chris@1 8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Chris@1 8404 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Chris@1 8405
Chris@1 8406
Chris@1 8407
Chris@1 8408
Chris@1 8409
Chris@1 8410
Chris@1 8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@1 8412 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@1 8413 if ${lt_cv_prog_compiler_c_o+:} false; then :
Chris@1 8414 $as_echo_n "(cached) " >&6
Chris@1 8415 else
Chris@1 8416 lt_cv_prog_compiler_c_o=no
Chris@1 8417 $RM -r conftest 2>/dev/null
Chris@1 8418 mkdir conftest
Chris@1 8419 cd conftest
Chris@1 8420 mkdir out
Chris@1 8421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@1 8422
Chris@1 8423 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@1 8424 # Insert the option either (1) after the last *FLAGS variable, or
Chris@1 8425 # (2) before a word containing "conftest.", or (3) at the end.
Chris@1 8426 # Note that $ac_compile itself does not contain backslashes and begins
Chris@1 8427 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@1 8428 lt_compile=`echo "$ac_compile" | $SED \
Chris@1 8429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@1 8430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@1 8431 -e 's:$: $lt_compiler_flag:'`
Chris@1 8432 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@1 8433 (eval "$lt_compile" 2>out/conftest.err)
Chris@1 8434 ac_status=$?
Chris@1 8435 cat out/conftest.err >&5
Chris@1 8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@1 8437 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@1 8438 then
Chris@1 8439 # The compiler can only warn and ignore the option if not recognized
Chris@1 8440 # So say no if there are warnings
Chris@1 8441 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@1 8442 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@1 8443 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@1 8444 lt_cv_prog_compiler_c_o=yes
Chris@1 8445 fi
Chris@1 8446 fi
Chris@1 8447 chmod u+w . 2>&5
Chris@1 8448 $RM conftest*
Chris@1 8449 # SGI C++ compiler will create directory out/ii_files/ for
Chris@1 8450 # template instantiation
Chris@1 8451 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@1 8452 $RM out/* && rmdir out
Chris@1 8453 cd ..
Chris@1 8454 $RM -r conftest
Chris@1 8455 $RM conftest*
Chris@1 8456
Chris@1 8457 fi
Chris@1 8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Chris@1 8459 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Chris@1 8460
Chris@1 8461
Chris@1 8462
Chris@1 8463
Chris@1 8464 hard_links="nottested"
Chris@1 8465 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
Chris@1 8466 # do not overwrite the value of need_locks provided by the user
Chris@1 8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Chris@1 8468 $as_echo_n "checking if we can lock with hard links... " >&6; }
Chris@1 8469 hard_links=yes
Chris@1 8470 $RM conftest*
Chris@1 8471 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@1 8472 touch conftest.a
Chris@1 8473 ln conftest.a conftest.b 2>&5 || hard_links=no
Chris@1 8474 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@1 8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Chris@1 8476 $as_echo "$hard_links" >&6; }
Chris@1 8477 if test "$hard_links" = no; then
Chris@1 8478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
Chris@1 8479 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
Chris@1 8480 need_locks=warn
Chris@1 8481 fi
Chris@1 8482 else
Chris@1 8483 need_locks=no
Chris@1 8484 fi
Chris@1 8485
Chris@1 8486
Chris@1 8487
Chris@1 8488
Chris@1 8489
Chris@1 8490
Chris@1 8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Chris@1 8492 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Chris@1 8493
Chris@1 8494 runpath_var=
Chris@1 8495 allow_undefined_flag=
Chris@1 8496 always_export_symbols=no
Chris@1 8497 archive_cmds=
Chris@1 8498 archive_expsym_cmds=
Chris@1 8499 compiler_needs_object=no
Chris@1 8500 enable_shared_with_static_runtimes=no
Chris@1 8501 export_dynamic_flag_spec=
Chris@1 8502 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Chris@1 8503 hardcode_automatic=no
Chris@1 8504 hardcode_direct=no
Chris@1 8505 hardcode_direct_absolute=no
Chris@1 8506 hardcode_libdir_flag_spec=
Chris@1 8507 hardcode_libdir_flag_spec_ld=
Chris@1 8508 hardcode_libdir_separator=
Chris@1 8509 hardcode_minus_L=no
Chris@1 8510 hardcode_shlibpath_var=unsupported
Chris@1 8511 inherit_rpath=no
Chris@1 8512 link_all_deplibs=unknown
Chris@1 8513 module_cmds=
Chris@1 8514 module_expsym_cmds=
Chris@1 8515 old_archive_from_new_cmds=
Chris@1 8516 old_archive_from_expsyms_cmds=
Chris@1 8517 thread_safe_flag_spec=
Chris@1 8518 whole_archive_flag_spec=
Chris@1 8519 # include_expsyms should be a list of space-separated symbols to be *always*
Chris@1 8520 # included in the symbol list
Chris@1 8521 include_expsyms=
Chris@1 8522 # exclude_expsyms can be an extended regexp of symbols to exclude
Chris@1 8523 # it will be wrapped by ` (' and `)$', so one must not match beginning or
Chris@1 8524 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
Chris@1 8525 # as well as any symbol that contains `d'.
Chris@1 8526 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Chris@1 8527 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
Chris@1 8528 # platforms (ab)use it in PIC code, but their linkers get confused if
Chris@1 8529 # the symbol is explicitly referenced. Since portable code cannot
Chris@1 8530 # rely on this symbol name, it's probably fine to never include it in
Chris@1 8531 # preloaded symbol tables.
Chris@1 8532 # Exclude shared library initialization/finalization symbols.
Chris@1 8533 extract_expsyms_cmds=
Chris@1 8534
Chris@1 8535 case $host_os in
Chris@1 8536 cygwin* | mingw* | pw32* | cegcc*)
Chris@1 8537 # FIXME: the MSVC++ port hasn't been tested in a loooong time
Chris@1 8538 # When not using gcc, we currently assume that we are using
Chris@1 8539 # Microsoft Visual C++.
Chris@1 8540 if test "$GCC" != yes; then
Chris@1 8541 with_gnu_ld=no
Chris@1 8542 fi
Chris@1 8543 ;;
Chris@1 8544 interix*)
Chris@1 8545 # we just hope/assume this is gcc and not c89 (= MSVC++)
Chris@1 8546 with_gnu_ld=yes
Chris@1 8547 ;;
Chris@1 8548 openbsd*)
Chris@1 8549 with_gnu_ld=no
Chris@1 8550 ;;
Chris@1 8551 esac
Chris@1 8552
Chris@1 8553 ld_shlibs=yes
Chris@1 8554
Chris@1 8555 # On some targets, GNU ld is compatible enough with the native linker
Chris@1 8556 # that we're better off using the native interface for both.
Chris@1 8557 lt_use_gnu_ld_interface=no
Chris@1 8558 if test "$with_gnu_ld" = yes; then
Chris@1 8559 case $host_os in
Chris@1 8560 aix*)
Chris@1 8561 # The AIX port of GNU ld has always aspired to compatibility
Chris@1 8562 # with the native linker. However, as the warning in the GNU ld
Chris@1 8563 # block says, versions before 2.19.5* couldn't really create working
Chris@1 8564 # shared libraries, regardless of the interface used.
Chris@1 8565 case `$LD -v 2>&1` in
Chris@1 8566 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
Chris@1 8567 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
Chris@1 8568 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
Chris@1 8569 *)
Chris@1 8570 lt_use_gnu_ld_interface=yes
Chris@1 8571 ;;
Chris@1 8572 esac
Chris@1 8573 ;;
Chris@1 8574 *)
Chris@1 8575 lt_use_gnu_ld_interface=yes
Chris@1 8576 ;;
Chris@1 8577 esac
Chris@1 8578 fi
Chris@1 8579
Chris@1 8580 if test "$lt_use_gnu_ld_interface" = yes; then
Chris@1 8581 # If archive_cmds runs LD, not CC, wlarc should be empty
Chris@1 8582 wlarc='${wl}'
Chris@1 8583
Chris@1 8584 # Set some defaults for GNU ld with shared library support. These
Chris@1 8585 # are reset later if shared libraries are not supported. Putting them
Chris@1 8586 # here allows them to be overridden if necessary.
Chris@1 8587 runpath_var=LD_RUN_PATH
Chris@1 8588 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@1 8589 export_dynamic_flag_spec='${wl}--export-dynamic'
Chris@1 8590 # ancient GNU ld didn't support --whole-archive et. al.
Chris@1 8591 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
Chris@1 8592 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
Chris@1 8593 else
Chris@1 8594 whole_archive_flag_spec=
Chris@1 8595 fi
Chris@1 8596 supports_anon_versioning=no
Chris@1 8597 case `$LD -v 2>&1` in
Chris@1 8598 *GNU\ gold*) supports_anon_versioning=yes ;;
Chris@1 8599 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
Chris@1 8600 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
Chris@1 8601 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
Chris@1 8602 *\ 2.11.*) ;; # other 2.11 versions
Chris@1 8603 *) supports_anon_versioning=yes ;;
Chris@1 8604 esac
Chris@1 8605
Chris@1 8606 # See if GNU ld supports shared libraries.
Chris@1 8607 case $host_os in
Chris@1 8608 aix[3-9]*)
Chris@1 8609 # On AIX/PPC, the GNU linker is very broken
Chris@1 8610 if test "$host_cpu" != ia64; then
Chris@1 8611 ld_shlibs=no
Chris@1 8612 cat <<_LT_EOF 1>&2
Chris@1 8613
Chris@1 8614 *** Warning: the GNU linker, at least up to release 2.19, is reported
Chris@1 8615 *** to be unable to reliably create shared libraries on AIX.
Chris@1 8616 *** Therefore, libtool is disabling shared libraries support. If you
Chris@1 8617 *** really care for shared libraries, you may want to install binutils
Chris@1 8618 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
Chris@1 8619 *** You will then need to restart the configuration process.
Chris@1 8620
Chris@1 8621 _LT_EOF
Chris@1 8622 fi
Chris@1 8623 ;;
Chris@1 8624
Chris@1 8625 amigaos*)
Chris@1 8626 case $host_cpu in
Chris@1 8627 powerpc)
Chris@1 8628 # see comment about AmigaOS4 .so support
Chris@1 8629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@1 8630 archive_expsym_cmds=''
Chris@1 8631 ;;
Chris@1 8632 m68k)
Chris@1 8633 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 8634 hardcode_libdir_flag_spec='-L$libdir'
Chris@1 8635 hardcode_minus_L=yes
Chris@1 8636 ;;
Chris@1 8637 esac
Chris@1 8638 ;;
Chris@1 8639
Chris@1 8640 beos*)
Chris@1 8641 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@1 8642 allow_undefined_flag=unsupported
Chris@1 8643 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
Chris@1 8644 # support --undefined. This deserves some investigation. FIXME
Chris@1 8645 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@1 8646 else
Chris@1 8647 ld_shlibs=no
Chris@1 8648 fi
Chris@1 8649 ;;
Chris@1 8650
Chris@1 8651 cygwin* | mingw* | pw32* | cegcc*)
Chris@1 8652 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
Chris@1 8653 # as there is no search path for DLLs.
Chris@1 8654 hardcode_libdir_flag_spec='-L$libdir'
Chris@1 8655 export_dynamic_flag_spec='${wl}--export-all-symbols'
Chris@1 8656 allow_undefined_flag=unsupported
Chris@1 8657 always_export_symbols=no
Chris@1 8658 enable_shared_with_static_runtimes=yes
Chris@1 8659 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 8660 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
Chris@1 8661
Chris@1 8662 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Chris@1 8663 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Chris@1 8664 # If the export-symbols file already is a .def file (1st line
Chris@1 8665 # is EXPORTS), use it as is; otherwise, prepend...
Chris@1 8666 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
Chris@1 8667 cp $export_symbols $output_objdir/$soname.def;
Chris@1 8668 else
Chris@1 8669 echo EXPORTS > $output_objdir/$soname.def;
Chris@1 8670 cat $export_symbols >> $output_objdir/$soname.def;
Chris@1 8671 fi~
Chris@1 8672 $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 8673 else
Chris@1 8674 ld_shlibs=no
Chris@1 8675 fi
Chris@1 8676 ;;
Chris@1 8677
Chris@1 8678 haiku*)
Chris@1 8679 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@1 8680 link_all_deplibs=yes
Chris@1 8681 ;;
Chris@1 8682
Chris@1 8683 interix[3-9]*)
Chris@1 8684 hardcode_direct=no
Chris@1 8685 hardcode_shlibpath_var=no
Chris@1 8686 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
Chris@1 8687 export_dynamic_flag_spec='${wl}-E'
Chris@1 8688 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
Chris@1 8689 # Instead, shared libraries are loaded at an image base (0x10000000 by
Chris@1 8690 # default) and relocated if they conflict, which is a slow very memory
Chris@1 8691 # consuming and fragmenting process. To avoid this, we pick a random,
Chris@1 8692 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
Chris@1 8693 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Chris@1 8694 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 8695 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 8696 ;;
Chris@1 8697
Chris@1 8698 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@1 8699 tmp_diet=no
Chris@1 8700 if test "$host_os" = linux-dietlibc; then
Chris@1 8701 case $cc_basename in
Chris@1 8702 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
Chris@1 8703 esac
Chris@1 8704 fi
Chris@1 8705 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
Chris@1 8706 && test "$tmp_diet" = no
Chris@1 8707 then
Chris@1 8708 tmp_addflag=' $pic_flag'
Chris@1 8709 tmp_sharedflag='-shared'
Chris@1 8710 case $cc_basename,$host_cpu in
Chris@1 8711 pgcc*) # Portland Group C compiler
Chris@1 8712 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 8713 tmp_addflag=' $pic_flag'
Chris@1 8714 ;;
Chris@1 8715 pgf77* | pgf90* | pgf95* | pgfortran*)
Chris@1 8716 # Portland Group f77 and f90 compilers
Chris@1 8717 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 8718 tmp_addflag=' $pic_flag -Mnomain' ;;
Chris@1 8719 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Chris@1 8720 tmp_addflag=' -i_dynamic' ;;
Chris@1 8721 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
Chris@1 8722 tmp_addflag=' -i_dynamic -nofor_main' ;;
Chris@1 8723 ifc* | ifort*) # Intel Fortran compiler
Chris@1 8724 tmp_addflag=' -nofor_main' ;;
Chris@1 8725 lf95*) # Lahey Fortran 8.1
Chris@1 8726 whole_archive_flag_spec=
Chris@1 8727 tmp_sharedflag='--shared' ;;
Chris@1 8728 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Chris@1 8729 tmp_sharedflag='-qmkshrobj'
Chris@1 8730 tmp_addflag= ;;
Chris@1 8731 nvcc*) # Cuda Compiler Driver 2.2
Chris@1 8732 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 8733 compiler_needs_object=yes
Chris@1 8734 ;;
Chris@1 8735 esac
Chris@1 8736 case `$CC -V 2>&1 | sed 5q` in
Chris@1 8737 *Sun\ C*) # Sun C 5.9
Chris@1 8738 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 8739 compiler_needs_object=yes
Chris@1 8740 tmp_sharedflag='-G' ;;
Chris@1 8741 *Sun\ F*) # Sun Fortran 8.3
Chris@1 8742 tmp_sharedflag='-G' ;;
Chris@1 8743 esac
Chris@1 8744 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@1 8745
Chris@1 8746 if test "x$supports_anon_versioning" = xyes; then
Chris@1 8747 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Chris@1 8748 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@1 8749 echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@1 8750 $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 8751 fi
Chris@1 8752
Chris@1 8753 case $cc_basename in
Chris@1 8754 xlf* | bgf* | bgxlf* | mpixlf*)
Chris@1 8755 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
Chris@1 8756 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
Chris@1 8757 hardcode_libdir_flag_spec=
Chris@1 8758 hardcode_libdir_flag_spec_ld='-rpath $libdir'
Chris@1 8759 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Chris@1 8760 if test "x$supports_anon_versioning" = xyes; then
Chris@1 8761 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Chris@1 8762 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@1 8763 echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@1 8764 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Chris@1 8765 fi
Chris@1 8766 ;;
Chris@1 8767 esac
Chris@1 8768 else
Chris@1 8769 ld_shlibs=no
Chris@1 8770 fi
Chris@1 8771 ;;
Chris@1 8772
Chris@1 8773 netbsd*)
Chris@1 8774 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@1 8775 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
Chris@1 8776 wlarc=
Chris@1 8777 else
Chris@1 8778 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@1 8779 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 8780 fi
Chris@1 8781 ;;
Chris@1 8782
Chris@1 8783 solaris*)
Chris@1 8784 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Chris@1 8785 ld_shlibs=no
Chris@1 8786 cat <<_LT_EOF 1>&2
Chris@1 8787
Chris@1 8788 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
Chris@1 8789 *** create shared libraries on Solaris systems. Therefore, libtool
Chris@1 8790 *** is disabling shared libraries support. We urge you to upgrade GNU
Chris@1 8791 *** binutils to release 2.9.1 or newer. Another option is to modify
Chris@1 8792 *** your PATH or compiler configuration so that the native linker is
Chris@1 8793 *** used, and then restart.
Chris@1 8794
Chris@1 8795 _LT_EOF
Chris@1 8796 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@1 8797 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@1 8798 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 8799 else
Chris@1 8800 ld_shlibs=no
Chris@1 8801 fi
Chris@1 8802 ;;
Chris@1 8803
Chris@1 8804 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
Chris@1 8805 case `$LD -v 2>&1` in
Chris@1 8806 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
Chris@1 8807 ld_shlibs=no
Chris@1 8808 cat <<_LT_EOF 1>&2
Chris@1 8809
Chris@1 8810 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
Chris@1 8811 *** reliably create shared libraries on SCO systems. Therefore, libtool
Chris@1 8812 *** is disabling shared libraries support. We urge you to upgrade GNU
Chris@1 8813 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
Chris@1 8814 *** your PATH or compiler configuration so that the native linker is
Chris@1 8815 *** used, and then restart.
Chris@1 8816
Chris@1 8817 _LT_EOF
Chris@1 8818 ;;
Chris@1 8819 *)
Chris@1 8820 # For security reasons, it is highly recommended that you always
Chris@1 8821 # use absolute paths for naming shared libraries, and exclude the
Chris@1 8822 # DT_RUNPATH tag from executables and libraries. But doing so
Chris@1 8823 # requires that you compile everything twice, which is a pain.
Chris@1 8824 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@1 8825 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@1 8826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@1 8827 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@1 8828 else
Chris@1 8829 ld_shlibs=no
Chris@1 8830 fi
Chris@1 8831 ;;
Chris@1 8832 esac
Chris@1 8833 ;;
Chris@1 8834
Chris@1 8835 sunos4*)
Chris@1 8836 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@1 8837 wlarc=
Chris@1 8838 hardcode_direct=yes
Chris@1 8839 hardcode_shlibpath_var=no
Chris@1 8840 ;;
Chris@1 8841
Chris@1 8842 *)
Chris@1 8843 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@1 8844 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@1 8845 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 8846 else
Chris@1 8847 ld_shlibs=no
Chris@1 8848 fi
Chris@1 8849 ;;
Chris@1 8850 esac
Chris@1 8851
Chris@1 8852 if test "$ld_shlibs" = no; then
Chris@1 8853 runpath_var=
Chris@1 8854 hardcode_libdir_flag_spec=
Chris@1 8855 export_dynamic_flag_spec=
Chris@1 8856 whole_archive_flag_spec=
Chris@1 8857 fi
Chris@1 8858 else
Chris@1 8859 # PORTME fill in a description of your system's linker (not GNU ld)
Chris@1 8860 case $host_os in
Chris@1 8861 aix3*)
Chris@1 8862 allow_undefined_flag=unsupported
Chris@1 8863 always_export_symbols=yes
Chris@1 8864 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 8865 # Note: this linker hardcodes the directories in LIBPATH if there
Chris@1 8866 # are no directories specified by -L.
Chris@1 8867 hardcode_minus_L=yes
Chris@1 8868 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
Chris@1 8869 # Neither direct hardcoding nor static linking is supported with a
Chris@1 8870 # broken collect2.
Chris@1 8871 hardcode_direct=unsupported
Chris@1 8872 fi
Chris@1 8873 ;;
Chris@1 8874
Chris@1 8875 aix[4-9]*)
Chris@1 8876 if test "$host_cpu" = ia64; then
Chris@1 8877 # On IA64, the linker does run time linking by default, so we don't
Chris@1 8878 # have to do anything special.
Chris@1 8879 aix_use_runtimelinking=no
Chris@1 8880 exp_sym_flag='-Bexport'
Chris@1 8881 no_entry_flag=""
Chris@1 8882 else
Chris@1 8883 # If we're using GNU nm, then we don't want the "-C" option.
Chris@1 8884 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Chris@1 8885 # Also, AIX nm treats weak defined symbols like other global
Chris@1 8886 # defined symbols, whereas GNU nm marks them as "W".
Chris@1 8887 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Chris@1 8888 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 8889 else
Chris@1 8890 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 8891 fi
Chris@1 8892 aix_use_runtimelinking=no
Chris@1 8893
Chris@1 8894 # Test if we are trying to use run time linking or normal
Chris@1 8895 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Chris@1 8896 # need to do runtime linking.
Chris@1 8897 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Chris@1 8898 for ld_flag in $LDFLAGS; do
Chris@1 8899 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
Chris@1 8900 aix_use_runtimelinking=yes
Chris@1 8901 break
Chris@1 8902 fi
Chris@1 8903 done
Chris@1 8904 ;;
Chris@1 8905 esac
Chris@1 8906
Chris@1 8907 exp_sym_flag='-bexport'
Chris@1 8908 no_entry_flag='-bnoentry'
Chris@1 8909 fi
Chris@1 8910
Chris@1 8911 # When large executables or shared objects are built, AIX ld can
Chris@1 8912 # have problems creating the table of contents. If linking a library
Chris@1 8913 # or program results in "error TOC overflow" add -mminimal-toc to
Chris@1 8914 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
Chris@1 8915 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
Chris@1 8916
Chris@1 8917 archive_cmds=''
Chris@1 8918 hardcode_direct=yes
Chris@1 8919 hardcode_direct_absolute=yes
Chris@1 8920 hardcode_libdir_separator=':'
Chris@1 8921 link_all_deplibs=yes
Chris@1 8922 file_list_spec='${wl}-f,'
Chris@1 8923
Chris@1 8924 if test "$GCC" = yes; then
Chris@1 8925 case $host_os in aix4.[012]|aix4.[012].*)
Chris@1 8926 # We only want to do this on AIX 4.2 and lower, the check
Chris@1 8927 # below for broken collect2 doesn't work under 4.3+
Chris@1 8928 collect2name=`${CC} -print-prog-name=collect2`
Chris@1 8929 if test -f "$collect2name" &&
Chris@1 8930 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Chris@1 8931 then
Chris@1 8932 # We have reworked collect2
Chris@1 8933 :
Chris@1 8934 else
Chris@1 8935 # We have old collect2
Chris@1 8936 hardcode_direct=unsupported
Chris@1 8937 # It fails to find uninstalled libraries when the uninstalled
Chris@1 8938 # path is not listed in the libpath. Setting hardcode_minus_L
Chris@1 8939 # to unsupported forces relinking
Chris@1 8940 hardcode_minus_L=yes
Chris@1 8941 hardcode_libdir_flag_spec='-L$libdir'
Chris@1 8942 hardcode_libdir_separator=
Chris@1 8943 fi
Chris@1 8944 ;;
Chris@1 8945 esac
Chris@1 8946 shared_flag='-shared'
Chris@1 8947 if test "$aix_use_runtimelinking" = yes; then
Chris@1 8948 shared_flag="$shared_flag "'${wl}-G'
Chris@1 8949 fi
Chris@1 8950 else
Chris@1 8951 # not using gcc
Chris@1 8952 if test "$host_cpu" = ia64; then
Chris@1 8953 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
Chris@1 8954 # chokes on -Wl,-G. The following line is correct:
Chris@1 8955 shared_flag='-G'
Chris@1 8956 else
Chris@1 8957 if test "$aix_use_runtimelinking" = yes; then
Chris@1 8958 shared_flag='${wl}-G'
Chris@1 8959 else
Chris@1 8960 shared_flag='${wl}-bM:SRE'
Chris@1 8961 fi
Chris@1 8962 fi
Chris@1 8963 fi
Chris@1 8964
Chris@1 8965 export_dynamic_flag_spec='${wl}-bexpall'
Chris@1 8966 # It seems that -bexpall does not export symbols beginning with
Chris@1 8967 # underscore (_), so it is better to generate a list of symbols to export.
Chris@1 8968 always_export_symbols=yes
Chris@1 8969 if test "$aix_use_runtimelinking" = yes; then
Chris@1 8970 # Warning - without using the other runtime loading flags (-brtl),
Chris@1 8971 # -berok will link without error, but may produce a broken library.
Chris@1 8972 allow_undefined_flag='-berok'
Chris@1 8973 # Determine the default libpath from the value encoded in an
Chris@1 8974 # empty executable.
Chris@1 8975 if test "${lt_cv_aix_libpath+set}" = set; then
Chris@1 8976 aix_libpath=$lt_cv_aix_libpath
Chris@1 8977 else
Chris@1 8978 if ${lt_cv_aix_libpath_+:} false; then :
Chris@1 8979 $as_echo_n "(cached) " >&6
Chris@1 8980 else
Chris@1 8981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 8982 /* end confdefs.h. */
Chris@1 8983
Chris@1 8984 int
Chris@1 8985 main ()
Chris@1 8986 {
Chris@1 8987
Chris@1 8988 ;
Chris@1 8989 return 0;
Chris@1 8990 }
Chris@1 8991 _ACEOF
Chris@1 8992 if ac_fn_c_try_link "$LINENO"; then :
Chris@1 8993
Chris@1 8994 lt_aix_libpath_sed='
Chris@1 8995 /Import File Strings/,/^$/ {
Chris@1 8996 /^0/ {
Chris@1 8997 s/^0 *\([^ ]*\) *$/\1/
Chris@1 8998 p
Chris@1 8999 }
Chris@1 9000 }'
Chris@1 9001 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@1 9002 # Check for a 64-bit object if we didn't find anything.
Chris@1 9003 if test -z "$lt_cv_aix_libpath_"; then
Chris@1 9004 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@1 9005 fi
Chris@1 9006 fi
Chris@1 9007 rm -f core conftest.err conftest.$ac_objext \
Chris@1 9008 conftest$ac_exeext conftest.$ac_ext
Chris@1 9009 if test -z "$lt_cv_aix_libpath_"; then
Chris@1 9010 lt_cv_aix_libpath_="/usr/lib:/lib"
Chris@1 9011 fi
Chris@1 9012
Chris@1 9013 fi
Chris@1 9014
Chris@1 9015 aix_libpath=$lt_cv_aix_libpath_
Chris@1 9016 fi
Chris@1 9017
Chris@1 9018 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Chris@1 9019 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 9020 else
Chris@1 9021 if test "$host_cpu" = ia64; then
Chris@1 9022 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
Chris@1 9023 allow_undefined_flag="-z nodefs"
Chris@1 9024 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 9025 else
Chris@1 9026 # Determine the default libpath from the value encoded in an
Chris@1 9027 # empty executable.
Chris@1 9028 if test "${lt_cv_aix_libpath+set}" = set; then
Chris@1 9029 aix_libpath=$lt_cv_aix_libpath
Chris@1 9030 else
Chris@1 9031 if ${lt_cv_aix_libpath_+:} false; then :
Chris@1 9032 $as_echo_n "(cached) " >&6
Chris@1 9033 else
Chris@1 9034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 9035 /* end confdefs.h. */
Chris@1 9036
Chris@1 9037 int
Chris@1 9038 main ()
Chris@1 9039 {
Chris@1 9040
Chris@1 9041 ;
Chris@1 9042 return 0;
Chris@1 9043 }
Chris@1 9044 _ACEOF
Chris@1 9045 if ac_fn_c_try_link "$LINENO"; then :
Chris@1 9046
Chris@1 9047 lt_aix_libpath_sed='
Chris@1 9048 /Import File Strings/,/^$/ {
Chris@1 9049 /^0/ {
Chris@1 9050 s/^0 *\([^ ]*\) *$/\1/
Chris@1 9051 p
Chris@1 9052 }
Chris@1 9053 }'
Chris@1 9054 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@1 9055 # Check for a 64-bit object if we didn't find anything.
Chris@1 9056 if test -z "$lt_cv_aix_libpath_"; then
Chris@1 9057 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@1 9058 fi
Chris@1 9059 fi
Chris@1 9060 rm -f core conftest.err conftest.$ac_objext \
Chris@1 9061 conftest$ac_exeext conftest.$ac_ext
Chris@1 9062 if test -z "$lt_cv_aix_libpath_"; then
Chris@1 9063 lt_cv_aix_libpath_="/usr/lib:/lib"
Chris@1 9064 fi
Chris@1 9065
Chris@1 9066 fi
Chris@1 9067
Chris@1 9068 aix_libpath=$lt_cv_aix_libpath_
Chris@1 9069 fi
Chris@1 9070
Chris@1 9071 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Chris@1 9072 # Warning - without using the other run time loading flags,
Chris@1 9073 # -berok will link without error, but may produce a broken library.
Chris@1 9074 no_undefined_flag=' ${wl}-bernotok'
Chris@1 9075 allow_undefined_flag=' ${wl}-berok'
Chris@1 9076 if test "$with_gnu_ld" = yes; then
Chris@1 9077 # We only use this code for GNU lds that support --whole-archive.
Chris@1 9078 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
Chris@1 9079 else
Chris@1 9080 # Exported symbols can be pulled into shared objects from archives
Chris@1 9081 whole_archive_flag_spec='$convenience'
Chris@1 9082 fi
Chris@1 9083 archive_cmds_need_lc=yes
Chris@1 9084 # This is similar to how AIX traditionally builds its shared libraries.
Chris@1 9085 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 9086 fi
Chris@1 9087 fi
Chris@1 9088 ;;
Chris@1 9089
Chris@1 9090 amigaos*)
Chris@1 9091 case $host_cpu in
Chris@1 9092 powerpc)
Chris@1 9093 # see comment about AmigaOS4 .so support
Chris@1 9094 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@1 9095 archive_expsym_cmds=''
Chris@1 9096 ;;
Chris@1 9097 m68k)
Chris@1 9098 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 9099 hardcode_libdir_flag_spec='-L$libdir'
Chris@1 9100 hardcode_minus_L=yes
Chris@1 9101 ;;
Chris@1 9102 esac
Chris@1 9103 ;;
Chris@1 9104
Chris@1 9105 bsdi[45]*)
Chris@1 9106 export_dynamic_flag_spec=-rdynamic
Chris@1 9107 ;;
Chris@1 9108
Chris@1 9109 cygwin* | mingw* | pw32* | cegcc*)
Chris@1 9110 # When not using gcc, we currently assume that we are using
Chris@1 9111 # Microsoft Visual C++.
Chris@1 9112 # hardcode_libdir_flag_spec is actually meaningless, as there is
Chris@1 9113 # no search path for DLLs.
Chris@1 9114 case $cc_basename in
Chris@1 9115 cl*)
Chris@1 9116 # Native MSVC
Chris@1 9117 hardcode_libdir_flag_spec=' '
Chris@1 9118 allow_undefined_flag=unsupported
Chris@1 9119 always_export_symbols=yes
Chris@1 9120 file_list_spec='@'
Chris@1 9121 # Tell ltmain to make .lib files, not .a files.
Chris@1 9122 libext=lib
Chris@1 9123 # Tell ltmain to make .dll files, not .so files.
Chris@1 9124 shrext_cmds=".dll"
Chris@1 9125 # FIXME: Setting linknames here is a bad hack.
Chris@1 9126 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
Chris@1 9127 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
Chris@1 9128 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
Chris@1 9129 else
Chris@1 9130 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
Chris@1 9131 fi~
Chris@1 9132 $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 9133 linknames='
Chris@1 9134 # The linker will not automatically build a static lib if we build a DLL.
Chris@1 9135 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
Chris@1 9136 enable_shared_with_static_runtimes=yes
Chris@1 9137 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 9138 # Don't use ranlib
Chris@1 9139 old_postinstall_cmds='chmod 644 $oldlib'
Chris@1 9140 postlink_cmds='lt_outputfile="@OUTPUT@"~
Chris@1 9141 lt_tool_outputfile="@TOOL_OUTPUT@"~
Chris@1 9142 case $lt_outputfile in
Chris@1 9143 *.exe|*.EXE) ;;
Chris@1 9144 *)
Chris@1 9145 lt_outputfile="$lt_outputfile.exe"
Chris@1 9146 lt_tool_outputfile="$lt_tool_outputfile.exe"
Chris@1 9147 ;;
Chris@1 9148 esac~
Chris@1 9149 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
Chris@1 9150 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
Chris@1 9151 $RM "$lt_outputfile.manifest";
Chris@1 9152 fi'
Chris@1 9153 ;;
Chris@1 9154 *)
Chris@1 9155 # Assume MSVC wrapper
Chris@1 9156 hardcode_libdir_flag_spec=' '
Chris@1 9157 allow_undefined_flag=unsupported
Chris@1 9158 # Tell ltmain to make .lib files, not .a files.
Chris@1 9159 libext=lib
Chris@1 9160 # Tell ltmain to make .dll files, not .so files.
Chris@1 9161 shrext_cmds=".dll"
Chris@1 9162 # FIXME: Setting linknames here is a bad hack.
Chris@1 9163 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
Chris@1 9164 # The linker will automatically build a .lib file if we build a DLL.
Chris@1 9165 old_archive_from_new_cmds='true'
Chris@1 9166 # FIXME: Should let the user specify the lib program.
Chris@1 9167 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
Chris@1 9168 enable_shared_with_static_runtimes=yes
Chris@1 9169 ;;
Chris@1 9170 esac
Chris@1 9171 ;;
Chris@1 9172
Chris@1 9173 darwin* | rhapsody*)
Chris@1 9174
Chris@1 9175
Chris@1 9176 archive_cmds_need_lc=no
Chris@1 9177 hardcode_direct=no
Chris@1 9178 hardcode_automatic=yes
Chris@1 9179 hardcode_shlibpath_var=unsupported
Chris@1 9180 if test "$lt_cv_ld_force_load" = "yes"; then
Chris@1 9181 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 9182 else
Chris@1 9183 whole_archive_flag_spec=''
Chris@1 9184 fi
Chris@1 9185 link_all_deplibs=yes
Chris@1 9186 allow_undefined_flag="$_lt_dar_allow_undefined"
Chris@1 9187 case $cc_basename in
Chris@1 9188 ifort*) _lt_dar_can_shared=yes ;;
Chris@1 9189 *) _lt_dar_can_shared=$GCC ;;
Chris@1 9190 esac
Chris@1 9191 if test "$_lt_dar_can_shared" = "yes"; then
Chris@1 9192 output_verbose_link_cmd=func_echo_all
Chris@1 9193 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 9194 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
Chris@1 9195 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 9196 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 9197
Chris@1 9198 else
Chris@1 9199 ld_shlibs=no
Chris@1 9200 fi
Chris@1 9201
Chris@1 9202 ;;
Chris@1 9203
Chris@1 9204 dgux*)
Chris@1 9205 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@1 9206 hardcode_libdir_flag_spec='-L$libdir'
Chris@1 9207 hardcode_shlibpath_var=no
Chris@1 9208 ;;
Chris@1 9209
Chris@1 9210 freebsd1*)
Chris@1 9211 ld_shlibs=no
Chris@1 9212 ;;
Chris@1 9213
Chris@1 9214 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
Chris@1 9215 # support. Future versions do this automatically, but an explicit c++rt0.o
Chris@1 9216 # does not break anything, and helps significantly (at the cost of a little
Chris@1 9217 # extra space).
Chris@1 9218 freebsd2.2*)
Chris@1 9219 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
Chris@1 9220 hardcode_libdir_flag_spec='-R$libdir'
Chris@1 9221 hardcode_direct=yes
Chris@1 9222 hardcode_shlibpath_var=no
Chris@1 9223 ;;
Chris@1 9224
Chris@1 9225 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Chris@1 9226 freebsd2*)
Chris@1 9227 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@1 9228 hardcode_direct=yes
Chris@1 9229 hardcode_minus_L=yes
Chris@1 9230 hardcode_shlibpath_var=no
Chris@1 9231 ;;
Chris@1 9232
Chris@1 9233 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Chris@1 9234 freebsd* | dragonfly*)
Chris@1 9235 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9236 hardcode_libdir_flag_spec='-R$libdir'
Chris@1 9237 hardcode_direct=yes
Chris@1 9238 hardcode_shlibpath_var=no
Chris@1 9239 ;;
Chris@1 9240
Chris@1 9241 hpux9*)
Chris@1 9242 if test "$GCC" = yes; then
Chris@1 9243 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 9244 else
Chris@1 9245 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 9246 fi
Chris@1 9247 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Chris@1 9248 hardcode_libdir_separator=:
Chris@1 9249 hardcode_direct=yes
Chris@1 9250
Chris@1 9251 # hardcode_minus_L: Not really in the search PATH,
Chris@1 9252 # but as the default location of the library.
Chris@1 9253 hardcode_minus_L=yes
Chris@1 9254 export_dynamic_flag_spec='${wl}-E'
Chris@1 9255 ;;
Chris@1 9256
Chris@1 9257 hpux10*)
Chris@1 9258 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
Chris@1 9259 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9260 else
Chris@1 9261 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
Chris@1 9262 fi
Chris@1 9263 if test "$with_gnu_ld" = no; then
Chris@1 9264 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Chris@1 9265 hardcode_libdir_flag_spec_ld='+b $libdir'
Chris@1 9266 hardcode_libdir_separator=:
Chris@1 9267 hardcode_direct=yes
Chris@1 9268 hardcode_direct_absolute=yes
Chris@1 9269 export_dynamic_flag_spec='${wl}-E'
Chris@1 9270 # hardcode_minus_L: Not really in the search PATH,
Chris@1 9271 # but as the default location of the library.
Chris@1 9272 hardcode_minus_L=yes
Chris@1 9273 fi
Chris@1 9274 ;;
Chris@1 9275
Chris@1 9276 hpux11*)
Chris@1 9277 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
Chris@1 9278 case $host_cpu in
Chris@1 9279 hppa*64*)
Chris@1 9280 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9281 ;;
Chris@1 9282 ia64*)
Chris@1 9283 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9284 ;;
Chris@1 9285 *)
Chris@1 9286 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9287 ;;
Chris@1 9288 esac
Chris@1 9289 else
Chris@1 9290 case $host_cpu in
Chris@1 9291 hppa*64*)
Chris@1 9292 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9293 ;;
Chris@1 9294 ia64*)
Chris@1 9295 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9296 ;;
Chris@1 9297 *)
Chris@1 9298
Chris@1 9299 # Older versions of the 11.00 compiler do not understand -b yet
Chris@1 9300 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
Chris@1 9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
Chris@1 9302 $as_echo_n "checking if $CC understands -b... " >&6; }
Chris@1 9303 if ${lt_cv_prog_compiler__b+:} false; then :
Chris@1 9304 $as_echo_n "(cached) " >&6
Chris@1 9305 else
Chris@1 9306 lt_cv_prog_compiler__b=no
Chris@1 9307 save_LDFLAGS="$LDFLAGS"
Chris@1 9308 LDFLAGS="$LDFLAGS -b"
Chris@1 9309 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Chris@1 9310 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Chris@1 9311 # The linker can only warn and ignore the option if not recognized
Chris@1 9312 # So say no if there are warnings
Chris@1 9313 if test -s conftest.err; then
Chris@1 9314 # Append any errors to the config.log.
Chris@1 9315 cat conftest.err 1>&5
Chris@1 9316 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Chris@1 9317 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@1 9318 if diff conftest.exp conftest.er2 >/dev/null; then
Chris@1 9319 lt_cv_prog_compiler__b=yes
Chris@1 9320 fi
Chris@1 9321 else
Chris@1 9322 lt_cv_prog_compiler__b=yes
Chris@1 9323 fi
Chris@1 9324 fi
Chris@1 9325 $RM -r conftest*
Chris@1 9326 LDFLAGS="$save_LDFLAGS"
Chris@1 9327
Chris@1 9328 fi
Chris@1 9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
Chris@1 9330 $as_echo "$lt_cv_prog_compiler__b" >&6; }
Chris@1 9331
Chris@1 9332 if test x"$lt_cv_prog_compiler__b" = xyes; then
Chris@1 9333 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9334 else
Chris@1 9335 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
Chris@1 9336 fi
Chris@1 9337
Chris@1 9338 ;;
Chris@1 9339 esac
Chris@1 9340 fi
Chris@1 9341 if test "$with_gnu_ld" = no; then
Chris@1 9342 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Chris@1 9343 hardcode_libdir_separator=:
Chris@1 9344
Chris@1 9345 case $host_cpu in
Chris@1 9346 hppa*64*|ia64*)
Chris@1 9347 hardcode_direct=no
Chris@1 9348 hardcode_shlibpath_var=no
Chris@1 9349 ;;
Chris@1 9350 *)
Chris@1 9351 hardcode_direct=yes
Chris@1 9352 hardcode_direct_absolute=yes
Chris@1 9353 export_dynamic_flag_spec='${wl}-E'
Chris@1 9354
Chris@1 9355 # hardcode_minus_L: Not really in the search PATH,
Chris@1 9356 # but as the default location of the library.
Chris@1 9357 hardcode_minus_L=yes
Chris@1 9358 ;;
Chris@1 9359 esac
Chris@1 9360 fi
Chris@1 9361 ;;
Chris@1 9362
Chris@1 9363 irix5* | irix6* | nonstopux*)
Chris@1 9364 if test "$GCC" = yes; then
Chris@1 9365 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 9366 # Try to use the -exported_symbol ld option, if it does not
Chris@1 9367 # work, assume that -exports_file does not work either and
Chris@1 9368 # implicitly export all symbols.
Chris@1 9369 # This should be the same for all languages, so no per-tag cache variable.
Chris@1 9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
Chris@1 9371 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
Chris@1 9372 if ${lt_cv_irix_exported_symbol+:} false; then :
Chris@1 9373 $as_echo_n "(cached) " >&6
Chris@1 9374 else
Chris@1 9375 save_LDFLAGS="$LDFLAGS"
Chris@1 9376 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
Chris@1 9377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 9378 /* end confdefs.h. */
Chris@1 9379 int foo (void) { return 0; }
Chris@1 9380 _ACEOF
Chris@1 9381 if ac_fn_c_try_link "$LINENO"; then :
Chris@1 9382 lt_cv_irix_exported_symbol=yes
Chris@1 9383 else
Chris@1 9384 lt_cv_irix_exported_symbol=no
Chris@1 9385 fi
Chris@1 9386 rm -f core conftest.err conftest.$ac_objext \
Chris@1 9387 conftest$ac_exeext conftest.$ac_ext
Chris@1 9388 LDFLAGS="$save_LDFLAGS"
Chris@1 9389 fi
Chris@1 9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
Chris@1 9391 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
Chris@1 9392 if test "$lt_cv_irix_exported_symbol" = yes; then
Chris@1 9393 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 9394 fi
Chris@1 9395 else
Chris@1 9396 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 9397 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 9398 fi
Chris@1 9399 archive_cmds_need_lc='no'
Chris@1 9400 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@1 9401 hardcode_libdir_separator=:
Chris@1 9402 inherit_rpath=yes
Chris@1 9403 link_all_deplibs=yes
Chris@1 9404 ;;
Chris@1 9405
Chris@1 9406 netbsd*)
Chris@1 9407 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@1 9408 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
Chris@1 9409 else
Chris@1 9410 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
Chris@1 9411 fi
Chris@1 9412 hardcode_libdir_flag_spec='-R$libdir'
Chris@1 9413 hardcode_direct=yes
Chris@1 9414 hardcode_shlibpath_var=no
Chris@1 9415 ;;
Chris@1 9416
Chris@1 9417 newsos6)
Chris@1 9418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@1 9419 hardcode_direct=yes
Chris@1 9420 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@1 9421 hardcode_libdir_separator=:
Chris@1 9422 hardcode_shlibpath_var=no
Chris@1 9423 ;;
Chris@1 9424
Chris@1 9425 *nto* | *qnx*)
Chris@1 9426 ;;
Chris@1 9427
Chris@1 9428 openbsd*)
Chris@1 9429 if test -f /usr/libexec/ld.so; then
Chris@1 9430 hardcode_direct=yes
Chris@1 9431 hardcode_shlibpath_var=no
Chris@1 9432 hardcode_direct_absolute=yes
Chris@1 9433 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@1 9434 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9435 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
Chris@1 9436 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
Chris@1 9437 export_dynamic_flag_spec='${wl}-E'
Chris@1 9438 else
Chris@1 9439 case $host_os in
Chris@1 9440 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
Chris@1 9441 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@1 9442 hardcode_libdir_flag_spec='-R$libdir'
Chris@1 9443 ;;
Chris@1 9444 *)
Chris@1 9445 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9446 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
Chris@1 9447 ;;
Chris@1 9448 esac
Chris@1 9449 fi
Chris@1 9450 else
Chris@1 9451 ld_shlibs=no
Chris@1 9452 fi
Chris@1 9453 ;;
Chris@1 9454
Chris@1 9455 os2*)
Chris@1 9456 hardcode_libdir_flag_spec='-L$libdir'
Chris@1 9457 hardcode_minus_L=yes
Chris@1 9458 allow_undefined_flag=unsupported
Chris@1 9459 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 9460 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
Chris@1 9461 ;;
Chris@1 9462
Chris@1 9463 osf3*)
Chris@1 9464 if test "$GCC" = yes; then
Chris@1 9465 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Chris@1 9466 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 9467 else
Chris@1 9468 allow_undefined_flag=' -expect_unresolved \*'
Chris@1 9469 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 9470 fi
Chris@1 9471 archive_cmds_need_lc='no'
Chris@1 9472 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@1 9473 hardcode_libdir_separator=:
Chris@1 9474 ;;
Chris@1 9475
Chris@1 9476 osf4* | osf5*) # as osf3* with the addition of -msym flag
Chris@1 9477 if test "$GCC" = yes; then
Chris@1 9478 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Chris@1 9479 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 9480 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@1 9481 else
Chris@1 9482 allow_undefined_flag=' -expect_unresolved \*'
Chris@1 9483 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 9484 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 9485 $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 9486
Chris@1 9487 # Both c and cxx compiler support -rpath directly
Chris@1 9488 hardcode_libdir_flag_spec='-rpath $libdir'
Chris@1 9489 fi
Chris@1 9490 archive_cmds_need_lc='no'
Chris@1 9491 hardcode_libdir_separator=:
Chris@1 9492 ;;
Chris@1 9493
Chris@1 9494 solaris*)
Chris@1 9495 no_undefined_flag=' -z defs'
Chris@1 9496 if test "$GCC" = yes; then
Chris@1 9497 wlarc='${wl}'
Chris@1 9498 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9499 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@1 9500 $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 9501 else
Chris@1 9502 case `$CC -V 2>&1` in
Chris@1 9503 *"Compilers 5.0"*)
Chris@1 9504 wlarc=''
Chris@1 9505 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@1 9506 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@1 9507 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
Chris@1 9508 ;;
Chris@1 9509 *)
Chris@1 9510 wlarc='${wl}'
Chris@1 9511 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9512 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@1 9513 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Chris@1 9514 ;;
Chris@1 9515 esac
Chris@1 9516 fi
Chris@1 9517 hardcode_libdir_flag_spec='-R$libdir'
Chris@1 9518 hardcode_shlibpath_var=no
Chris@1 9519 case $host_os in
Chris@1 9520 solaris2.[0-5] | solaris2.[0-5].*) ;;
Chris@1 9521 *)
Chris@1 9522 # The compiler driver will combine and reorder linker options,
Chris@1 9523 # but understands `-z linker_flag'. GCC discards it without `$wl',
Chris@1 9524 # but is careful enough not to reorder.
Chris@1 9525 # Supported since Solaris 2.6 (maybe 2.5.1?)
Chris@1 9526 if test "$GCC" = yes; then
Chris@1 9527 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
Chris@1 9528 else
Chris@1 9529 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
Chris@1 9530 fi
Chris@1 9531 ;;
Chris@1 9532 esac
Chris@1 9533 link_all_deplibs=yes
Chris@1 9534 ;;
Chris@1 9535
Chris@1 9536 sunos4*)
Chris@1 9537 if test "x$host_vendor" = xsequent; then
Chris@1 9538 # Use $CC to link under sequent, because it throws in some extra .o
Chris@1 9539 # files that make .init and .fini sections work.
Chris@1 9540 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9541 else
Chris@1 9542 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
Chris@1 9543 fi
Chris@1 9544 hardcode_libdir_flag_spec='-L$libdir'
Chris@1 9545 hardcode_direct=yes
Chris@1 9546 hardcode_minus_L=yes
Chris@1 9547 hardcode_shlibpath_var=no
Chris@1 9548 ;;
Chris@1 9549
Chris@1 9550 sysv4)
Chris@1 9551 case $host_vendor in
Chris@1 9552 sni)
Chris@1 9553 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@1 9554 hardcode_direct=yes # is this really true???
Chris@1 9555 ;;
Chris@1 9556 siemens)
Chris@1 9557 ## LD is ld it makes a PLAMLIB
Chris@1 9558 ## CC just makes a GrossModule.
Chris@1 9559 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
Chris@1 9560 reload_cmds='$CC -r -o $output$reload_objs'
Chris@1 9561 hardcode_direct=no
Chris@1 9562 ;;
Chris@1 9563 motorola)
Chris@1 9564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@1 9565 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
Chris@1 9566 ;;
Chris@1 9567 esac
Chris@1 9568 runpath_var='LD_RUN_PATH'
Chris@1 9569 hardcode_shlibpath_var=no
Chris@1 9570 ;;
Chris@1 9571
Chris@1 9572 sysv4.3*)
Chris@1 9573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@1 9574 hardcode_shlibpath_var=no
Chris@1 9575 export_dynamic_flag_spec='-Bexport'
Chris@1 9576 ;;
Chris@1 9577
Chris@1 9578 sysv4*MP*)
Chris@1 9579 if test -d /usr/nec; then
Chris@1 9580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@1 9581 hardcode_shlibpath_var=no
Chris@1 9582 runpath_var=LD_RUN_PATH
Chris@1 9583 hardcode_runpath_var=yes
Chris@1 9584 ld_shlibs=yes
Chris@1 9585 fi
Chris@1 9586 ;;
Chris@1 9587
Chris@1 9588 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Chris@1 9589 no_undefined_flag='${wl}-z,text'
Chris@1 9590 archive_cmds_need_lc=no
Chris@1 9591 hardcode_shlibpath_var=no
Chris@1 9592 runpath_var='LD_RUN_PATH'
Chris@1 9593
Chris@1 9594 if test "$GCC" = yes; then
Chris@1 9595 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9596 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9597 else
Chris@1 9598 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9599 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9600 fi
Chris@1 9601 ;;
Chris@1 9602
Chris@1 9603 sysv5* | sco3.2v5* | sco5v6*)
Chris@1 9604 # Note: We can NOT use -z defs as we might desire, because we do not
Chris@1 9605 # link with -lc, and that would cause any symbols used from libc to
Chris@1 9606 # always be unresolved, which means just about no library would
Chris@1 9607 # ever link correctly. If we're not using GNU ld we use -z text
Chris@1 9608 # though, which does catch some bad symbols but isn't as heavy-handed
Chris@1 9609 # as -z defs.
Chris@1 9610 no_undefined_flag='${wl}-z,text'
Chris@1 9611 allow_undefined_flag='${wl}-z,nodefs'
Chris@1 9612 archive_cmds_need_lc=no
Chris@1 9613 hardcode_shlibpath_var=no
Chris@1 9614 hardcode_libdir_flag_spec='${wl}-R,$libdir'
Chris@1 9615 hardcode_libdir_separator=':'
Chris@1 9616 link_all_deplibs=yes
Chris@1 9617 export_dynamic_flag_spec='${wl}-Bexport'
Chris@1 9618 runpath_var='LD_RUN_PATH'
Chris@1 9619
Chris@1 9620 if test "$GCC" = yes; then
Chris@1 9621 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9622 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9623 else
Chris@1 9624 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9625 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@1 9626 fi
Chris@1 9627 ;;
Chris@1 9628
Chris@1 9629 uts4*)
Chris@1 9630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@1 9631 hardcode_libdir_flag_spec='-L$libdir'
Chris@1 9632 hardcode_shlibpath_var=no
Chris@1 9633 ;;
Chris@1 9634
Chris@1 9635 *)
Chris@1 9636 ld_shlibs=no
Chris@1 9637 ;;
Chris@1 9638 esac
Chris@1 9639
Chris@1 9640 if test x$host_vendor = xsni; then
Chris@1 9641 case $host in
Chris@1 9642 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Chris@1 9643 export_dynamic_flag_spec='${wl}-Blargedynsym'
Chris@1 9644 ;;
Chris@1 9645 esac
Chris@1 9646 fi
Chris@1 9647 fi
Chris@1 9648
Chris@1 9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
Chris@1 9650 $as_echo "$ld_shlibs" >&6; }
Chris@1 9651 test "$ld_shlibs" = no && can_build_shared=no
Chris@1 9652
Chris@1 9653 with_gnu_ld=$with_gnu_ld
Chris@1 9654
Chris@1 9655
Chris@1 9656
Chris@1 9657
Chris@1 9658
Chris@1 9659
Chris@1 9660
Chris@1 9661
Chris@1 9662
Chris@1 9663
Chris@1 9664
Chris@1 9665
Chris@1 9666
Chris@1 9667
Chris@1 9668
Chris@1 9669 #
Chris@1 9670 # Do we need to explicitly link libc?
Chris@1 9671 #
Chris@1 9672 case "x$archive_cmds_need_lc" in
Chris@1 9673 x|xyes)
Chris@1 9674 # Assume -lc should be added
Chris@1 9675 archive_cmds_need_lc=yes
Chris@1 9676
Chris@1 9677 if test "$enable_shared" = yes && test "$GCC" = yes; then
Chris@1 9678 case $archive_cmds in
Chris@1 9679 *'~'*)
Chris@1 9680 # FIXME: we may have to deal with multi-command sequences.
Chris@1 9681 ;;
Chris@1 9682 '$CC '*)
Chris@1 9683 # Test whether the compiler implicitly links with -lc since on some
Chris@1 9684 # systems, -lgcc has to come before -lc. If gcc already passes -lc
Chris@1 9685 # to ld, don't add -lc before -lgcc.
Chris@1 9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Chris@1 9687 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Chris@1 9688 if ${lt_cv_archive_cmds_need_lc+:} false; then :
Chris@1 9689 $as_echo_n "(cached) " >&6
Chris@1 9690 else
Chris@1 9691 $RM conftest*
Chris@1 9692 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@1 9693
Chris@1 9694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@1 9695 (eval $ac_compile) 2>&5
Chris@1 9696 ac_status=$?
Chris@1 9697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 9698 test $ac_status = 0; } 2>conftest.err; then
Chris@1 9699 soname=conftest
Chris@1 9700 lib=conftest
Chris@1 9701 libobjs=conftest.$ac_objext
Chris@1 9702 deplibs=
Chris@1 9703 wl=$lt_prog_compiler_wl
Chris@1 9704 pic_flag=$lt_prog_compiler_pic
Chris@1 9705 compiler_flags=-v
Chris@1 9706 linker_flags=-v
Chris@1 9707 verstring=
Chris@1 9708 output_objdir=.
Chris@1 9709 libname=conftest
Chris@1 9710 lt_save_allow_undefined_flag=$allow_undefined_flag
Chris@1 9711 allow_undefined_flag=
Chris@1 9712 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Chris@1 9713 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Chris@1 9714 ac_status=$?
Chris@1 9715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 9716 test $ac_status = 0; }
Chris@1 9717 then
Chris@1 9718 lt_cv_archive_cmds_need_lc=no
Chris@1 9719 else
Chris@1 9720 lt_cv_archive_cmds_need_lc=yes
Chris@1 9721 fi
Chris@1 9722 allow_undefined_flag=$lt_save_allow_undefined_flag
Chris@1 9723 else
Chris@1 9724 cat conftest.err 1>&5
Chris@1 9725 fi
Chris@1 9726 $RM conftest*
Chris@1 9727
Chris@1 9728 fi
Chris@1 9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
Chris@1 9730 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
Chris@1 9731 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Chris@1 9732 ;;
Chris@1 9733 esac
Chris@1 9734 fi
Chris@1 9735 ;;
Chris@1 9736 esac
Chris@1 9737
Chris@1 9738
Chris@1 9739
Chris@1 9740
Chris@1 9741
Chris@1 9742
Chris@1 9743
Chris@1 9744
Chris@1 9745
Chris@1 9746
Chris@1 9747
Chris@1 9748
Chris@1 9749
Chris@1 9750
Chris@1 9751
Chris@1 9752
Chris@1 9753
Chris@1 9754
Chris@1 9755
Chris@1 9756
Chris@1 9757
Chris@1 9758
Chris@1 9759
Chris@1 9760
Chris@1 9761
Chris@1 9762
Chris@1 9763
Chris@1 9764
Chris@1 9765
Chris@1 9766
Chris@1 9767
Chris@1 9768
Chris@1 9769
Chris@1 9770
Chris@1 9771
Chris@1 9772
Chris@1 9773
Chris@1 9774
Chris@1 9775
Chris@1 9776
Chris@1 9777
Chris@1 9778
Chris@1 9779
Chris@1 9780
Chris@1 9781
Chris@1 9782
Chris@1 9783
Chris@1 9784
Chris@1 9785
Chris@1 9786
Chris@1 9787
Chris@1 9788
Chris@1 9789
Chris@1 9790
Chris@1 9791
Chris@1 9792
Chris@1 9793
Chris@1 9794
Chris@1 9795
Chris@1 9796
Chris@1 9797
Chris@1 9798
Chris@1 9799
Chris@1 9800
Chris@1 9801
Chris@1 9802
Chris@1 9803
Chris@1 9804
Chris@1 9805
Chris@1 9806
Chris@1 9807
Chris@1 9808
Chris@1 9809
Chris@1 9810
Chris@1 9811
Chris@1 9812
Chris@1 9813
Chris@1 9814
Chris@1 9815
Chris@1 9816
Chris@1 9817
Chris@1 9818
Chris@1 9819
Chris@1 9820
Chris@1 9821
Chris@1 9822
Chris@1 9823
Chris@1 9824
Chris@1 9825
Chris@1 9826
Chris@1 9827
Chris@1 9828
Chris@1 9829
Chris@1 9830
Chris@1 9831
Chris@1 9832
Chris@1 9833
Chris@1 9834
Chris@1 9835
Chris@1 9836
Chris@1 9837
Chris@1 9838
Chris@1 9839
Chris@1 9840
Chris@1 9841
Chris@1 9842
Chris@1 9843
Chris@1 9844
Chris@1 9845
Chris@1 9846
Chris@1 9847
Chris@1 9848
Chris@1 9849
Chris@1 9850
Chris@1 9851
Chris@1 9852
Chris@1 9853
Chris@1 9854
Chris@1 9855
Chris@1 9856
Chris@1 9857
Chris@1 9858
Chris@1 9859
Chris@1 9860
Chris@1 9861
Chris@1 9862
Chris@1 9863
Chris@1 9864
Chris@1 9865
Chris@1 9866
Chris@1 9867
Chris@1 9868
Chris@1 9869
Chris@1 9870
Chris@1 9871
Chris@1 9872
Chris@1 9873
Chris@1 9874
Chris@1 9875
Chris@1 9876
Chris@1 9877
Chris@1 9878
Chris@1 9879
Chris@1 9880
Chris@1 9881
Chris@1 9882
Chris@1 9883
Chris@1 9884
Chris@1 9885
Chris@1 9886
Chris@1 9887
Chris@1 9888
Chris@1 9889
Chris@1 9890
Chris@1 9891
Chris@1 9892
Chris@1 9893
Chris@1 9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Chris@1 9895 $as_echo_n "checking dynamic linker characteristics... " >&6; }
Chris@1 9896
Chris@1 9897 if test "$GCC" = yes; then
Chris@1 9898 case $host_os in
Chris@1 9899 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
Chris@1 9900 *) lt_awk_arg="/^libraries:/" ;;
Chris@1 9901 esac
Chris@1 9902 case $host_os in
Chris@1 9903 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
Chris@1 9904 *) lt_sed_strip_eq="s,=/,/,g" ;;
Chris@1 9905 esac
Chris@1 9906 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
Chris@1 9907 case $lt_search_path_spec in
Chris@1 9908 *\;*)
Chris@1 9909 # if the path contains ";" then we assume it to be the separator
Chris@1 9910 # otherwise default to the standard path separator (i.e. ":") - it is
Chris@1 9911 # assumed that no part of a normal pathname contains ";" but that should
Chris@1 9912 # okay in the real world where ";" in dirpaths is itself problematic.
Chris@1 9913 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
Chris@1 9914 ;;
Chris@1 9915 *)
Chris@1 9916 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
Chris@1 9917 ;;
Chris@1 9918 esac
Chris@1 9919 # Ok, now we have the path, separated by spaces, we can step through it
Chris@1 9920 # and add multilib dir if necessary.
Chris@1 9921 lt_tmp_lt_search_path_spec=
Chris@1 9922 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
Chris@1 9923 for lt_sys_path in $lt_search_path_spec; do
Chris@1 9924 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
Chris@1 9925 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
Chris@1 9926 else
Chris@1 9927 test -d "$lt_sys_path" && \
Chris@1 9928 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
Chris@1 9929 fi
Chris@1 9930 done
Chris@1 9931 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Chris@1 9932 BEGIN {RS=" "; FS="/|\n";} {
Chris@1 9933 lt_foo="";
Chris@1 9934 lt_count=0;
Chris@1 9935 for (lt_i = NF; lt_i > 0; lt_i--) {
Chris@1 9936 if ($lt_i != "" && $lt_i != ".") {
Chris@1 9937 if ($lt_i == "..") {
Chris@1 9938 lt_count++;
Chris@1 9939 } else {
Chris@1 9940 if (lt_count == 0) {
Chris@1 9941 lt_foo="/" $lt_i lt_foo;
Chris@1 9942 } else {
Chris@1 9943 lt_count--;
Chris@1 9944 }
Chris@1 9945 }
Chris@1 9946 }
Chris@1 9947 }
Chris@1 9948 if (lt_foo != "") { lt_freq[lt_foo]++; }
Chris@1 9949 if (lt_freq[lt_foo] == 1) { print lt_foo; }
Chris@1 9950 }'`
Chris@1 9951 # AWK program above erroneously prepends '/' to C:/dos/paths
Chris@1 9952 # for these hosts.
Chris@1 9953 case $host_os in
Chris@1 9954 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
Chris@1 9955 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
Chris@1 9956 esac
Chris@1 9957 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Chris@1 9958 else
Chris@1 9959 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Chris@1 9960 fi
Chris@1 9961 library_names_spec=
Chris@1 9962 libname_spec='lib$name'
Chris@1 9963 soname_spec=
Chris@1 9964 shrext_cmds=".so"
Chris@1 9965 postinstall_cmds=
Chris@1 9966 postuninstall_cmds=
Chris@1 9967 finish_cmds=
Chris@1 9968 finish_eval=
Chris@1 9969 shlibpath_var=
Chris@1 9970 shlibpath_overrides_runpath=unknown
Chris@1 9971 version_type=none
Chris@1 9972 dynamic_linker="$host_os ld.so"
Chris@1 9973 sys_lib_dlsearch_path_spec="/lib /usr/lib"
Chris@1 9974 need_lib_prefix=unknown
Chris@1 9975 hardcode_into_libs=no
Chris@1 9976
Chris@1 9977 # when you set need_version to no, make sure it does not cause -set_version
Chris@1 9978 # flags to be left without arguments
Chris@1 9979 need_version=unknown
Chris@1 9980
Chris@1 9981 case $host_os in
Chris@1 9982 aix3*)
Chris@1 9983 version_type=linux
Chris@1 9984 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
Chris@1 9985 shlibpath_var=LIBPATH
Chris@1 9986
Chris@1 9987 # AIX 3 has no versioning support, so we append a major version to the name.
Chris@1 9988 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 9989 ;;
Chris@1 9990
Chris@1 9991 aix[4-9]*)
Chris@1 9992 version_type=linux
Chris@1 9993 need_lib_prefix=no
Chris@1 9994 need_version=no
Chris@1 9995 hardcode_into_libs=yes
Chris@1 9996 if test "$host_cpu" = ia64; then
Chris@1 9997 # AIX 5 supports IA64
Chris@1 9998 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
Chris@1 9999 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10000 else
Chris@1 10001 # With GCC up to 2.95.x, collect2 would create an import file
Chris@1 10002 # for dependence libraries. The import file would start with
Chris@1 10003 # the line `#! .'. This would cause the generated library to
Chris@1 10004 # depend on `.', always an invalid library. This was fixed in
Chris@1 10005 # development snapshots of GCC prior to 3.0.
Chris@1 10006 case $host_os in
Chris@1 10007 aix4 | aix4.[01] | aix4.[01].*)
Chris@1 10008 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
Chris@1 10009 echo ' yes '
Chris@1 10010 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
Chris@1 10011 :
Chris@1 10012 else
Chris@1 10013 can_build_shared=no
Chris@1 10014 fi
Chris@1 10015 ;;
Chris@1 10016 esac
Chris@1 10017 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
Chris@1 10018 # soname into executable. Probably we can add versioning support to
Chris@1 10019 # collect2, so additional links can be useful in future.
Chris@1 10020 if test "$aix_use_runtimelinking" = yes; then
Chris@1 10021 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
Chris@1 10022 # instead of lib<name>.a to let people know that these are not
Chris@1 10023 # typical AIX shared libraries.
Chris@1 10024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@1 10025 else
Chris@1 10026 # We preserve .a as extension for shared libraries through AIX4.2
Chris@1 10027 # and later when we are not doing run time linking.
Chris@1 10028 library_names_spec='${libname}${release}.a $libname.a'
Chris@1 10029 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10030 fi
Chris@1 10031 shlibpath_var=LIBPATH
Chris@1 10032 fi
Chris@1 10033 ;;
Chris@1 10034
Chris@1 10035 amigaos*)
Chris@1 10036 case $host_cpu in
Chris@1 10037 powerpc)
Chris@1 10038 # Since July 2007 AmigaOS4 officially supports .so libraries.
Chris@1 10039 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Chris@1 10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@1 10041 ;;
Chris@1 10042 m68k)
Chris@1 10043 library_names_spec='$libname.ixlibrary $libname.a'
Chris@1 10044 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Chris@1 10045 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 10046 ;;
Chris@1 10047 esac
Chris@1 10048 ;;
Chris@1 10049
Chris@1 10050 beos*)
Chris@1 10051 library_names_spec='${libname}${shared_ext}'
Chris@1 10052 dynamic_linker="$host_os ld.so"
Chris@1 10053 shlibpath_var=LIBRARY_PATH
Chris@1 10054 ;;
Chris@1 10055
Chris@1 10056 bsdi[45]*)
Chris@1 10057 version_type=linux
Chris@1 10058 need_version=no
Chris@1 10059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@1 10060 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10061 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
Chris@1 10062 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10063 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
Chris@1 10064 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
Chris@1 10065 # the default ld.so.conf also contains /usr/contrib/lib and
Chris@1 10066 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
Chris@1 10067 # libtool to hard-code these into programs
Chris@1 10068 ;;
Chris@1 10069
Chris@1 10070 cygwin* | mingw* | pw32* | cegcc*)
Chris@1 10071 version_type=windows
Chris@1 10072 shrext_cmds=".dll"
Chris@1 10073 need_version=no
Chris@1 10074 need_lib_prefix=no
Chris@1 10075
Chris@1 10076 case $GCC,$cc_basename in
Chris@1 10077 yes,*)
Chris@1 10078 # gcc
Chris@1 10079 library_names_spec='$libname.dll.a'
Chris@1 10080 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@1 10081 postinstall_cmds='base_file=`basename \${file}`~
Chris@1 10082 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Chris@1 10083 dldir=$destdir/`dirname \$dlpath`~
Chris@1 10084 test -d \$dldir || mkdir -p \$dldir~
Chris@1 10085 $install_prog $dir/$dlname \$dldir/$dlname~
Chris@1 10086 chmod a+x \$dldir/$dlname~
Chris@1 10087 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
Chris@1 10088 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
Chris@1 10089 fi'
Chris@1 10090 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@1 10091 dlpath=$dir/\$dldll~
Chris@1 10092 $RM \$dlpath'
Chris@1 10093 shlibpath_overrides_runpath=yes
Chris@1 10094
Chris@1 10095 case $host_os in
Chris@1 10096 cygwin*)
Chris@1 10097 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Chris@1 10098 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@1 10099
Chris@1 10100 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Chris@1 10101 ;;
Chris@1 10102 mingw* | cegcc*)
Chris@1 10103 # MinGW DLLs use traditional 'lib' prefix
Chris@1 10104 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@1 10105 ;;
Chris@1 10106 pw32*)
Chris@1 10107 # pw32 DLLs use 'pw' prefix rather than 'lib'
Chris@1 10108 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@1 10109 ;;
Chris@1 10110 esac
Chris@1 10111 dynamic_linker='Win32 ld.exe'
Chris@1 10112 ;;
Chris@1 10113
Chris@1 10114 *,cl*)
Chris@1 10115 # Native MSVC
Chris@1 10116 libname_spec='$name'
Chris@1 10117 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@1 10118 library_names_spec='${libname}.dll.lib'
Chris@1 10119
Chris@1 10120 case $build_os in
Chris@1 10121 mingw*)
Chris@1 10122 sys_lib_search_path_spec=
Chris@1 10123 lt_save_ifs=$IFS
Chris@1 10124 IFS=';'
Chris@1 10125 for lt_path in $LIB
Chris@1 10126 do
Chris@1 10127 IFS=$lt_save_ifs
Chris@1 10128 # Let DOS variable expansion print the short 8.3 style file name.
Chris@1 10129 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
Chris@1 10130 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
Chris@1 10131 done
Chris@1 10132 IFS=$lt_save_ifs
Chris@1 10133 # Convert to MSYS style.
Chris@1 10134 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 10135 ;;
Chris@1 10136 cygwin*)
Chris@1 10137 # Convert to unix form, then to dos form, then back to unix form
Chris@1 10138 # but this time dos style (no spaces!) so that the unix form looks
Chris@1 10139 # like /cygdrive/c/PROGRA~1:/cygdr...
Chris@1 10140 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
Chris@1 10141 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
Chris@1 10142 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@1 10143 ;;
Chris@1 10144 *)
Chris@1 10145 sys_lib_search_path_spec="$LIB"
Chris@1 10146 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
Chris@1 10147 # It is most probably a Windows format PATH.
Chris@1 10148 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Chris@1 10149 else
Chris@1 10150 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@1 10151 fi
Chris@1 10152 # FIXME: find the short name or the path components, as spaces are
Chris@1 10153 # common. (e.g. "Program Files" -> "PROGRA~1")
Chris@1 10154 ;;
Chris@1 10155 esac
Chris@1 10156
Chris@1 10157 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@1 10158 postinstall_cmds='base_file=`basename \${file}`~
Chris@1 10159 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Chris@1 10160 dldir=$destdir/`dirname \$dlpath`~
Chris@1 10161 test -d \$dldir || mkdir -p \$dldir~
Chris@1 10162 $install_prog $dir/$dlname \$dldir/$dlname'
Chris@1 10163 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@1 10164 dlpath=$dir/\$dldll~
Chris@1 10165 $RM \$dlpath'
Chris@1 10166 shlibpath_overrides_runpath=yes
Chris@1 10167 dynamic_linker='Win32 link.exe'
Chris@1 10168 ;;
Chris@1 10169
Chris@1 10170 *)
Chris@1 10171 # Assume MSVC wrapper
Chris@1 10172 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Chris@1 10173 dynamic_linker='Win32 ld.exe'
Chris@1 10174 ;;
Chris@1 10175 esac
Chris@1 10176 # FIXME: first we should search . and the directory the executable is in
Chris@1 10177 shlibpath_var=PATH
Chris@1 10178 ;;
Chris@1 10179
Chris@1 10180 darwin* | rhapsody*)
Chris@1 10181 dynamic_linker="$host_os dyld"
Chris@1 10182 version_type=darwin
Chris@1 10183 need_lib_prefix=no
Chris@1 10184 need_version=no
Chris@1 10185 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Chris@1 10186 soname_spec='${libname}${release}${major}$shared_ext'
Chris@1 10187 shlibpath_overrides_runpath=yes
Chris@1 10188 shlibpath_var=DYLD_LIBRARY_PATH
Chris@1 10189 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Chris@1 10190
Chris@1 10191 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
Chris@1 10192 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
Chris@1 10193 ;;
Chris@1 10194
Chris@1 10195 dgux*)
Chris@1 10196 version_type=linux
Chris@1 10197 need_lib_prefix=no
Chris@1 10198 need_version=no
Chris@1 10199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
Chris@1 10200 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10201 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10202 ;;
Chris@1 10203
Chris@1 10204 freebsd1*)
Chris@1 10205 dynamic_linker=no
Chris@1 10206 ;;
Chris@1 10207
Chris@1 10208 freebsd* | dragonfly*)
Chris@1 10209 # DragonFly does not have aout. When/if they implement a new
Chris@1 10210 # versioning mechanism, adjust this.
Chris@1 10211 if test -x /usr/bin/objformat; then
Chris@1 10212 objformat=`/usr/bin/objformat`
Chris@1 10213 else
Chris@1 10214 case $host_os in
Chris@1 10215 freebsd[123]*) objformat=aout ;;
Chris@1 10216 *) objformat=elf ;;
Chris@1 10217 esac
Chris@1 10218 fi
Chris@1 10219 version_type=freebsd-$objformat
Chris@1 10220 case $version_type in
Chris@1 10221 freebsd-elf*)
Chris@1 10222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@1 10223 need_version=no
Chris@1 10224 need_lib_prefix=no
Chris@1 10225 ;;
Chris@1 10226 freebsd-*)
Chris@1 10227 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
Chris@1 10228 need_version=yes
Chris@1 10229 ;;
Chris@1 10230 esac
Chris@1 10231 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10232 case $host_os in
Chris@1 10233 freebsd2*)
Chris@1 10234 shlibpath_overrides_runpath=yes
Chris@1 10235 ;;
Chris@1 10236 freebsd3.[01]* | freebsdelf3.[01]*)
Chris@1 10237 shlibpath_overrides_runpath=yes
Chris@1 10238 hardcode_into_libs=yes
Chris@1 10239 ;;
Chris@1 10240 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
Chris@1 10241 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Chris@1 10242 shlibpath_overrides_runpath=no
Chris@1 10243 hardcode_into_libs=yes
Chris@1 10244 ;;
Chris@1 10245 *) # from 4.6 on, and DragonFly
Chris@1 10246 shlibpath_overrides_runpath=yes
Chris@1 10247 hardcode_into_libs=yes
Chris@1 10248 ;;
Chris@1 10249 esac
Chris@1 10250 ;;
Chris@1 10251
Chris@1 10252 gnu*)
Chris@1 10253 version_type=linux
Chris@1 10254 need_lib_prefix=no
Chris@1 10255 need_version=no
Chris@1 10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
Chris@1 10257 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10258 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10259 hardcode_into_libs=yes
Chris@1 10260 ;;
Chris@1 10261
Chris@1 10262 haiku*)
Chris@1 10263 version_type=linux
Chris@1 10264 need_lib_prefix=no
Chris@1 10265 need_version=no
Chris@1 10266 dynamic_linker="$host_os runtime_loader"
Chris@1 10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
Chris@1 10268 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10269 shlibpath_var=LIBRARY_PATH
Chris@1 10270 shlibpath_overrides_runpath=yes
Chris@1 10271 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Chris@1 10272 hardcode_into_libs=yes
Chris@1 10273 ;;
Chris@1 10274
Chris@1 10275 hpux9* | hpux10* | hpux11*)
Chris@1 10276 # Give a soname corresponding to the major version so that dld.sl refuses to
Chris@1 10277 # link against other versions.
Chris@1 10278 version_type=sunos
Chris@1 10279 need_lib_prefix=no
Chris@1 10280 need_version=no
Chris@1 10281 case $host_cpu in
Chris@1 10282 ia64*)
Chris@1 10283 shrext_cmds='.so'
Chris@1 10284 hardcode_into_libs=yes
Chris@1 10285 dynamic_linker="$host_os dld.so"
Chris@1 10286 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10287 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@1 10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@1 10289 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10290 if test "X$HPUX_IA64_MODE" = X32; then
Chris@1 10291 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Chris@1 10292 else
Chris@1 10293 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Chris@1 10294 fi
Chris@1 10295 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@1 10296 ;;
Chris@1 10297 hppa*64*)
Chris@1 10298 shrext_cmds='.sl'
Chris@1 10299 hardcode_into_libs=yes
Chris@1 10300 dynamic_linker="$host_os dld.sl"
Chris@1 10301 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
Chris@1 10302 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@1 10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@1 10304 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10305 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
Chris@1 10306 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@1 10307 ;;
Chris@1 10308 *)
Chris@1 10309 shrext_cmds='.sl'
Chris@1 10310 dynamic_linker="$host_os dld.sl"
Chris@1 10311 shlibpath_var=SHLIB_PATH
Chris@1 10312 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Chris@1 10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@1 10314 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10315 ;;
Chris@1 10316 esac
Chris@1 10317 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Chris@1 10318 postinstall_cmds='chmod 555 $lib'
Chris@1 10319 # or fails outright, so override atomically:
Chris@1 10320 install_override_mode=555
Chris@1 10321 ;;
Chris@1 10322
Chris@1 10323 interix[3-9]*)
Chris@1 10324 version_type=linux
Chris@1 10325 need_lib_prefix=no
Chris@1 10326 need_version=no
Chris@1 10327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@1 10328 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10329 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
Chris@1 10330 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10331 shlibpath_overrides_runpath=no
Chris@1 10332 hardcode_into_libs=yes
Chris@1 10333 ;;
Chris@1 10334
Chris@1 10335 irix5* | irix6* | nonstopux*)
Chris@1 10336 case $host_os in
Chris@1 10337 nonstopux*) version_type=nonstopux ;;
Chris@1 10338 *)
Chris@1 10339 if test "$lt_cv_prog_gnu_ld" = yes; then
Chris@1 10340 version_type=linux
Chris@1 10341 else
Chris@1 10342 version_type=irix
Chris@1 10343 fi ;;
Chris@1 10344 esac
Chris@1 10345 need_lib_prefix=no
Chris@1 10346 need_version=no
Chris@1 10347 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@1 10349 case $host_os in
Chris@1 10350 irix5* | nonstopux*)
Chris@1 10351 libsuff= shlibsuff=
Chris@1 10352 ;;
Chris@1 10353 *)
Chris@1 10354 case $LD in # libtool.m4 will add one of these switches to LD
Chris@1 10355 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
Chris@1 10356 libsuff= shlibsuff= libmagic=32-bit;;
Chris@1 10357 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
Chris@1 10358 libsuff=32 shlibsuff=N32 libmagic=N32;;
Chris@1 10359 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
Chris@1 10360 libsuff=64 shlibsuff=64 libmagic=64-bit;;
Chris@1 10361 *) libsuff= shlibsuff= libmagic=never-match;;
Chris@1 10362 esac
Chris@1 10363 ;;
Chris@1 10364 esac
Chris@1 10365 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
Chris@1 10366 shlibpath_overrides_runpath=no
Chris@1 10367 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
Chris@1 10368 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
Chris@1 10369 hardcode_into_libs=yes
Chris@1 10370 ;;
Chris@1 10371
Chris@1 10372 # No shared lib support for Linux oldld, aout, or coff.
Chris@1 10373 linux*oldld* | linux*aout* | linux*coff*)
Chris@1 10374 dynamic_linker=no
Chris@1 10375 ;;
Chris@1 10376
Chris@1 10377 # This must be Linux ELF.
Chris@1 10378 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@1 10379 version_type=linux
Chris@1 10380 need_lib_prefix=no
Chris@1 10381 need_version=no
Chris@1 10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@1 10383 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10384 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
Chris@1 10385 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10386 shlibpath_overrides_runpath=no
Chris@1 10387
Chris@1 10388 # Some binutils ld are patched to set DT_RUNPATH
Chris@1 10389 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
Chris@1 10390 $as_echo_n "(cached) " >&6
Chris@1 10391 else
Chris@1 10392 lt_cv_shlibpath_overrides_runpath=no
Chris@1 10393 save_LDFLAGS=$LDFLAGS
Chris@1 10394 save_libdir=$libdir
Chris@1 10395 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
Chris@1 10396 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
Chris@1 10397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 10398 /* end confdefs.h. */
Chris@1 10399
Chris@1 10400 int
Chris@1 10401 main ()
Chris@1 10402 {
Chris@1 10403
Chris@1 10404 ;
Chris@1 10405 return 0;
Chris@1 10406 }
Chris@1 10407 _ACEOF
Chris@1 10408 if ac_fn_c_try_link "$LINENO"; then :
Chris@1 10409 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
Chris@1 10410 lt_cv_shlibpath_overrides_runpath=yes
Chris@1 10411 fi
Chris@1 10412 fi
Chris@1 10413 rm -f core conftest.err conftest.$ac_objext \
Chris@1 10414 conftest$ac_exeext conftest.$ac_ext
Chris@1 10415 LDFLAGS=$save_LDFLAGS
Chris@1 10416 libdir=$save_libdir
Chris@1 10417
Chris@1 10418 fi
Chris@1 10419
Chris@1 10420 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Chris@1 10421
Chris@1 10422 # This implies no fast_install, which is unacceptable.
Chris@1 10423 # Some rework will be needed to allow for fast_install
Chris@1 10424 # before this can be enabled.
Chris@1 10425 hardcode_into_libs=yes
Chris@1 10426
Chris@1 10427 # Add ABI-specific directories to the system library path.
Chris@1 10428 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
Chris@1 10429
Chris@1 10430 # Append ld.so.conf contents to the search path
Chris@1 10431 if test -f /etc/ld.so.conf; then
Chris@1 10432 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 10433 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
Chris@1 10434
Chris@1 10435 fi
Chris@1 10436
Chris@1 10437 # We used to test for /lib/ld.so.1 and disable shared libraries on
Chris@1 10438 # powerpc, because MkLinux only supported shared libraries with the
Chris@1 10439 # GNU dynamic linker. Since this was broken with cross compilers,
Chris@1 10440 # most powerpc-linux boxes support dynamic linking these days and
Chris@1 10441 # people can always --disable-shared, the test was removed, and we
Chris@1 10442 # assume the GNU/Linux dynamic linker is in use.
Chris@1 10443 dynamic_linker='GNU/Linux ld.so'
Chris@1 10444 ;;
Chris@1 10445
Chris@1 10446 netbsd*)
Chris@1 10447 version_type=sunos
Chris@1 10448 need_lib_prefix=no
Chris@1 10449 need_version=no
Chris@1 10450 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@1 10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@1 10452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@1 10453 dynamic_linker='NetBSD (a.out) ld.so'
Chris@1 10454 else
Chris@1 10455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@1 10456 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10457 dynamic_linker='NetBSD ld.elf_so'
Chris@1 10458 fi
Chris@1 10459 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10460 shlibpath_overrides_runpath=yes
Chris@1 10461 hardcode_into_libs=yes
Chris@1 10462 ;;
Chris@1 10463
Chris@1 10464 newsos6)
Chris@1 10465 version_type=linux
Chris@1 10466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@1 10467 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10468 shlibpath_overrides_runpath=yes
Chris@1 10469 ;;
Chris@1 10470
Chris@1 10471 *nto* | *qnx*)
Chris@1 10472 version_type=qnx
Chris@1 10473 need_lib_prefix=no
Chris@1 10474 need_version=no
Chris@1 10475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@1 10476 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10477 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10478 shlibpath_overrides_runpath=no
Chris@1 10479 hardcode_into_libs=yes
Chris@1 10480 dynamic_linker='ldqnx.so'
Chris@1 10481 ;;
Chris@1 10482
Chris@1 10483 openbsd*)
Chris@1 10484 version_type=sunos
Chris@1 10485 sys_lib_dlsearch_path_spec="/usr/lib"
Chris@1 10486 need_lib_prefix=no
Chris@1 10487 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
Chris@1 10488 case $host_os in
Chris@1 10489 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
Chris@1 10490 *) need_version=no ;;
Chris@1 10491 esac
Chris@1 10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@1 10493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@1 10494 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10495 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@1 10496 case $host_os in
Chris@1 10497 openbsd2.[89] | openbsd2.[89].*)
Chris@1 10498 shlibpath_overrides_runpath=no
Chris@1 10499 ;;
Chris@1 10500 *)
Chris@1 10501 shlibpath_overrides_runpath=yes
Chris@1 10502 ;;
Chris@1 10503 esac
Chris@1 10504 else
Chris@1 10505 shlibpath_overrides_runpath=yes
Chris@1 10506 fi
Chris@1 10507 ;;
Chris@1 10508
Chris@1 10509 os2*)
Chris@1 10510 libname_spec='$name'
Chris@1 10511 shrext_cmds=".dll"
Chris@1 10512 need_lib_prefix=no
Chris@1 10513 library_names_spec='$libname${shared_ext} $libname.a'
Chris@1 10514 dynamic_linker='OS/2 ld.exe'
Chris@1 10515 shlibpath_var=LIBPATH
Chris@1 10516 ;;
Chris@1 10517
Chris@1 10518 osf3* | osf4* | osf5*)
Chris@1 10519 version_type=osf
Chris@1 10520 need_lib_prefix=no
Chris@1 10521 need_version=no
Chris@1 10522 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@1 10524 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10525 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Chris@1 10526 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
Chris@1 10527 ;;
Chris@1 10528
Chris@1 10529 rdos*)
Chris@1 10530 dynamic_linker=no
Chris@1 10531 ;;
Chris@1 10532
Chris@1 10533 solaris*)
Chris@1 10534 version_type=linux
Chris@1 10535 need_lib_prefix=no
Chris@1 10536 need_version=no
Chris@1 10537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@1 10538 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10539 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10540 shlibpath_overrides_runpath=yes
Chris@1 10541 hardcode_into_libs=yes
Chris@1 10542 # ldd complains unless libraries are executable
Chris@1 10543 postinstall_cmds='chmod +x $lib'
Chris@1 10544 ;;
Chris@1 10545
Chris@1 10546 sunos4*)
Chris@1 10547 version_type=sunos
Chris@1 10548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@1 10549 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
Chris@1 10550 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10551 shlibpath_overrides_runpath=yes
Chris@1 10552 if test "$with_gnu_ld" = yes; then
Chris@1 10553 need_lib_prefix=no
Chris@1 10554 fi
Chris@1 10555 need_version=yes
Chris@1 10556 ;;
Chris@1 10557
Chris@1 10558 sysv4 | sysv4.3*)
Chris@1 10559 version_type=linux
Chris@1 10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@1 10561 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10562 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10563 case $host_vendor in
Chris@1 10564 sni)
Chris@1 10565 shlibpath_overrides_runpath=no
Chris@1 10566 need_lib_prefix=no
Chris@1 10567 runpath_var=LD_RUN_PATH
Chris@1 10568 ;;
Chris@1 10569 siemens)
Chris@1 10570 need_lib_prefix=no
Chris@1 10571 ;;
Chris@1 10572 motorola)
Chris@1 10573 need_lib_prefix=no
Chris@1 10574 need_version=no
Chris@1 10575 shlibpath_overrides_runpath=no
Chris@1 10576 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
Chris@1 10577 ;;
Chris@1 10578 esac
Chris@1 10579 ;;
Chris@1 10580
Chris@1 10581 sysv4*MP*)
Chris@1 10582 if test -d /usr/nec ;then
Chris@1 10583 version_type=linux
Chris@1 10584 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
Chris@1 10585 soname_spec='$libname${shared_ext}.$major'
Chris@1 10586 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10587 fi
Chris@1 10588 ;;
Chris@1 10589
Chris@1 10590 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Chris@1 10591 version_type=freebsd-elf
Chris@1 10592 need_lib_prefix=no
Chris@1 10593 need_version=no
Chris@1 10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@1 10595 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10596 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10597 shlibpath_overrides_runpath=yes
Chris@1 10598 hardcode_into_libs=yes
Chris@1 10599 if test "$with_gnu_ld" = yes; then
Chris@1 10600 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Chris@1 10601 else
Chris@1 10602 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Chris@1 10603 case $host_os in
Chris@1 10604 sco3.2v5*)
Chris@1 10605 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
Chris@1 10606 ;;
Chris@1 10607 esac
Chris@1 10608 fi
Chris@1 10609 sys_lib_dlsearch_path_spec='/usr/lib'
Chris@1 10610 ;;
Chris@1 10611
Chris@1 10612 tpf*)
Chris@1 10613 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Chris@1 10614 version_type=linux
Chris@1 10615 need_lib_prefix=no
Chris@1 10616 need_version=no
Chris@1 10617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@1 10618 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10619 shlibpath_overrides_runpath=no
Chris@1 10620 hardcode_into_libs=yes
Chris@1 10621 ;;
Chris@1 10622
Chris@1 10623 uts4*)
Chris@1 10624 version_type=linux
Chris@1 10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@1 10626 soname_spec='${libname}${release}${shared_ext}$major'
Chris@1 10627 shlibpath_var=LD_LIBRARY_PATH
Chris@1 10628 ;;
Chris@1 10629
Chris@1 10630 *)
Chris@1 10631 dynamic_linker=no
Chris@1 10632 ;;
Chris@1 10633 esac
Chris@1 10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Chris@1 10635 $as_echo "$dynamic_linker" >&6; }
Chris@1 10636 test "$dynamic_linker" = no && can_build_shared=no
Chris@1 10637
Chris@1 10638 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Chris@1 10639 if test "$GCC" = yes; then
Chris@1 10640 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
Chris@1 10641 fi
Chris@1 10642
Chris@1 10643 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
Chris@1 10644 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
Chris@1 10645 fi
Chris@1 10646 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
Chris@1 10647 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
Chris@1 10648 fi
Chris@1 10649
Chris@1 10650
Chris@1 10651
Chris@1 10652
Chris@1 10653
Chris@1 10654
Chris@1 10655
Chris@1 10656
Chris@1 10657
Chris@1 10658
Chris@1 10659
Chris@1 10660
Chris@1 10661
Chris@1 10662
Chris@1 10663
Chris@1 10664
Chris@1 10665
Chris@1 10666
Chris@1 10667
Chris@1 10668
Chris@1 10669
Chris@1 10670
Chris@1 10671
Chris@1 10672
Chris@1 10673
Chris@1 10674
Chris@1 10675
Chris@1 10676
Chris@1 10677
Chris@1 10678
Chris@1 10679
Chris@1 10680
Chris@1 10681
Chris@1 10682
Chris@1 10683
Chris@1 10684
Chris@1 10685
Chris@1 10686
Chris@1 10687
Chris@1 10688
Chris@1 10689
Chris@1 10690
Chris@1 10691
Chris@1 10692
Chris@1 10693
Chris@1 10694
Chris@1 10695
Chris@1 10696
Chris@1 10697
Chris@1 10698
Chris@1 10699
Chris@1 10700
Chris@1 10701
Chris@1 10702
Chris@1 10703
Chris@1 10704
Chris@1 10705
Chris@1 10706
Chris@1 10707
Chris@1 10708
Chris@1 10709
Chris@1 10710
Chris@1 10711
Chris@1 10712
Chris@1 10713
Chris@1 10714
Chris@1 10715
Chris@1 10716
Chris@1 10717
Chris@1 10718
Chris@1 10719
Chris@1 10720
Chris@1 10721
Chris@1 10722
Chris@1 10723
Chris@1 10724
Chris@1 10725
Chris@1 10726
Chris@1 10727
Chris@1 10728
Chris@1 10729
Chris@1 10730
Chris@1 10731
Chris@1 10732
Chris@1 10733
Chris@1 10734
Chris@1 10735
Chris@1 10736
Chris@1 10737
Chris@1 10738
Chris@1 10739
Chris@1 10740
Chris@1 10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Chris@1 10742 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Chris@1 10743 hardcode_action=
Chris@1 10744 if test -n "$hardcode_libdir_flag_spec" ||
Chris@1 10745 test -n "$runpath_var" ||
Chris@1 10746 test "X$hardcode_automatic" = "Xyes" ; then
Chris@1 10747
Chris@1 10748 # We can hardcode non-existent directories.
Chris@1 10749 if test "$hardcode_direct" != no &&
Chris@1 10750 # If the only mechanism to avoid hardcoding is shlibpath_var, we
Chris@1 10751 # have to relink, otherwise we might link with an installed library
Chris@1 10752 # when we should be linking with a yet-to-be-installed one
Chris@1 10753 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
Chris@1 10754 test "$hardcode_minus_L" != no; then
Chris@1 10755 # Linking always hardcodes the temporary library directory.
Chris@1 10756 hardcode_action=relink
Chris@1 10757 else
Chris@1 10758 # We can link without hardcoding, and we can hardcode nonexisting dirs.
Chris@1 10759 hardcode_action=immediate
Chris@1 10760 fi
Chris@1 10761 else
Chris@1 10762 # We cannot hardcode anything, or else we can only hardcode existing
Chris@1 10763 # directories.
Chris@1 10764 hardcode_action=unsupported
Chris@1 10765 fi
Chris@1 10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
Chris@1 10767 $as_echo "$hardcode_action" >&6; }
Chris@1 10768
Chris@1 10769 if test "$hardcode_action" = relink ||
Chris@1 10770 test "$inherit_rpath" = yes; then
Chris@1 10771 # Fast installation is not supported
Chris@1 10772 enable_fast_install=no
Chris@1 10773 elif test "$shlibpath_overrides_runpath" = yes ||
Chris@1 10774 test "$enable_shared" = no; then
Chris@1 10775 # Fast installation is not necessary
Chris@1 10776 enable_fast_install=needless
Chris@1 10777 fi
Chris@1 10778
Chris@1 10779
Chris@1 10780
Chris@1 10781
Chris@1 10782
Chris@1 10783
Chris@1 10784 if test "x$enable_dlopen" != xyes; then
Chris@1 10785 enable_dlopen=unknown
Chris@1 10786 enable_dlopen_self=unknown
Chris@1 10787 enable_dlopen_self_static=unknown
Chris@1 10788 else
Chris@1 10789 lt_cv_dlopen=no
Chris@1 10790 lt_cv_dlopen_libs=
Chris@1 10791
Chris@1 10792 case $host_os in
Chris@1 10793 beos*)
Chris@1 10794 lt_cv_dlopen="load_add_on"
Chris@1 10795 lt_cv_dlopen_libs=
Chris@1 10796 lt_cv_dlopen_self=yes
Chris@1 10797 ;;
Chris@1 10798
Chris@1 10799 mingw* | pw32* | cegcc*)
Chris@1 10800 lt_cv_dlopen="LoadLibrary"
Chris@1 10801 lt_cv_dlopen_libs=
Chris@1 10802 ;;
Chris@1 10803
Chris@1 10804 cygwin*)
Chris@1 10805 lt_cv_dlopen="dlopen"
Chris@1 10806 lt_cv_dlopen_libs=
Chris@1 10807 ;;
Chris@1 10808
Chris@1 10809 darwin*)
Chris@1 10810 # if libdl is installed we need to link against it
Chris@1 10811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Chris@1 10812 $as_echo_n "checking for dlopen in -ldl... " >&6; }
Chris@1 10813 if ${ac_cv_lib_dl_dlopen+:} false; then :
Chris@1 10814 $as_echo_n "(cached) " >&6
Chris@1 10815 else
Chris@1 10816 ac_check_lib_save_LIBS=$LIBS
Chris@1 10817 LIBS="-ldl $LIBS"
Chris@1 10818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 10819 /* end confdefs.h. */
Chris@1 10820
Chris@1 10821 /* Override any GCC internal prototype to avoid an error.
Chris@1 10822 Use char because int might match the return type of a GCC
Chris@1 10823 builtin and then its argument prototype would still apply. */
Chris@1 10824 #ifdef __cplusplus
Chris@1 10825 extern "C"
Chris@1 10826 #endif
Chris@1 10827 char dlopen ();
Chris@1 10828 int
Chris@1 10829 main ()
Chris@1 10830 {
Chris@1 10831 return dlopen ();
Chris@1 10832 ;
Chris@1 10833 return 0;
Chris@1 10834 }
Chris@1 10835 _ACEOF
Chris@1 10836 if ac_fn_c_try_link "$LINENO"; then :
Chris@1 10837 ac_cv_lib_dl_dlopen=yes
Chris@1 10838 else
Chris@1 10839 ac_cv_lib_dl_dlopen=no
Chris@1 10840 fi
Chris@1 10841 rm -f core conftest.err conftest.$ac_objext \
Chris@1 10842 conftest$ac_exeext conftest.$ac_ext
Chris@1 10843 LIBS=$ac_check_lib_save_LIBS
Chris@1 10844 fi
Chris@1 10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Chris@1 10846 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Chris@1 10847 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Chris@1 10848 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
Chris@1 10849 else
Chris@1 10850
Chris@1 10851 lt_cv_dlopen="dyld"
Chris@1 10852 lt_cv_dlopen_libs=
Chris@1 10853 lt_cv_dlopen_self=yes
Chris@1 10854
Chris@1 10855 fi
Chris@1 10856
Chris@1 10857 ;;
Chris@1 10858
Chris@1 10859 *)
Chris@1 10860 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
Chris@1 10861 if test "x$ac_cv_func_shl_load" = xyes; then :
Chris@1 10862 lt_cv_dlopen="shl_load"
Chris@1 10863 else
Chris@1 10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
Chris@1 10865 $as_echo_n "checking for shl_load in -ldld... " >&6; }
Chris@1 10866 if ${ac_cv_lib_dld_shl_load+:} false; then :
Chris@1 10867 $as_echo_n "(cached) " >&6
Chris@1 10868 else
Chris@1 10869 ac_check_lib_save_LIBS=$LIBS
Chris@1 10870 LIBS="-ldld $LIBS"
Chris@1 10871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 10872 /* end confdefs.h. */
Chris@1 10873
Chris@1 10874 /* Override any GCC internal prototype to avoid an error.
Chris@1 10875 Use char because int might match the return type of a GCC
Chris@1 10876 builtin and then its argument prototype would still apply. */
Chris@1 10877 #ifdef __cplusplus
Chris@1 10878 extern "C"
Chris@1 10879 #endif
Chris@1 10880 char shl_load ();
Chris@1 10881 int
Chris@1 10882 main ()
Chris@1 10883 {
Chris@1 10884 return shl_load ();
Chris@1 10885 ;
Chris@1 10886 return 0;
Chris@1 10887 }
Chris@1 10888 _ACEOF
Chris@1 10889 if ac_fn_c_try_link "$LINENO"; then :
Chris@1 10890 ac_cv_lib_dld_shl_load=yes
Chris@1 10891 else
Chris@1 10892 ac_cv_lib_dld_shl_load=no
Chris@1 10893 fi
Chris@1 10894 rm -f core conftest.err conftest.$ac_objext \
Chris@1 10895 conftest$ac_exeext conftest.$ac_ext
Chris@1 10896 LIBS=$ac_check_lib_save_LIBS
Chris@1 10897 fi
Chris@1 10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
Chris@1 10899 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Chris@1 10900 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Chris@1 10901 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
Chris@1 10902 else
Chris@1 10903 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
Chris@1 10904 if test "x$ac_cv_func_dlopen" = xyes; then :
Chris@1 10905 lt_cv_dlopen="dlopen"
Chris@1 10906 else
Chris@1 10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Chris@1 10908 $as_echo_n "checking for dlopen in -ldl... " >&6; }
Chris@1 10909 if ${ac_cv_lib_dl_dlopen+:} false; then :
Chris@1 10910 $as_echo_n "(cached) " >&6
Chris@1 10911 else
Chris@1 10912 ac_check_lib_save_LIBS=$LIBS
Chris@1 10913 LIBS="-ldl $LIBS"
Chris@1 10914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 10915 /* end confdefs.h. */
Chris@1 10916
Chris@1 10917 /* Override any GCC internal prototype to avoid an error.
Chris@1 10918 Use char because int might match the return type of a GCC
Chris@1 10919 builtin and then its argument prototype would still apply. */
Chris@1 10920 #ifdef __cplusplus
Chris@1 10921 extern "C"
Chris@1 10922 #endif
Chris@1 10923 char dlopen ();
Chris@1 10924 int
Chris@1 10925 main ()
Chris@1 10926 {
Chris@1 10927 return dlopen ();
Chris@1 10928 ;
Chris@1 10929 return 0;
Chris@1 10930 }
Chris@1 10931 _ACEOF
Chris@1 10932 if ac_fn_c_try_link "$LINENO"; then :
Chris@1 10933 ac_cv_lib_dl_dlopen=yes
Chris@1 10934 else
Chris@1 10935 ac_cv_lib_dl_dlopen=no
Chris@1 10936 fi
Chris@1 10937 rm -f core conftest.err conftest.$ac_objext \
Chris@1 10938 conftest$ac_exeext conftest.$ac_ext
Chris@1 10939 LIBS=$ac_check_lib_save_LIBS
Chris@1 10940 fi
Chris@1 10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Chris@1 10942 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Chris@1 10943 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Chris@1 10944 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
Chris@1 10945 else
Chris@1 10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
Chris@1 10947 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
Chris@1 10948 if ${ac_cv_lib_svld_dlopen+:} false; then :
Chris@1 10949 $as_echo_n "(cached) " >&6
Chris@1 10950 else
Chris@1 10951 ac_check_lib_save_LIBS=$LIBS
Chris@1 10952 LIBS="-lsvld $LIBS"
Chris@1 10953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 10954 /* end confdefs.h. */
Chris@1 10955
Chris@1 10956 /* Override any GCC internal prototype to avoid an error.
Chris@1 10957 Use char because int might match the return type of a GCC
Chris@1 10958 builtin and then its argument prototype would still apply. */
Chris@1 10959 #ifdef __cplusplus
Chris@1 10960 extern "C"
Chris@1 10961 #endif
Chris@1 10962 char dlopen ();
Chris@1 10963 int
Chris@1 10964 main ()
Chris@1 10965 {
Chris@1 10966 return dlopen ();
Chris@1 10967 ;
Chris@1 10968 return 0;
Chris@1 10969 }
Chris@1 10970 _ACEOF
Chris@1 10971 if ac_fn_c_try_link "$LINENO"; then :
Chris@1 10972 ac_cv_lib_svld_dlopen=yes
Chris@1 10973 else
Chris@1 10974 ac_cv_lib_svld_dlopen=no
Chris@1 10975 fi
Chris@1 10976 rm -f core conftest.err conftest.$ac_objext \
Chris@1 10977 conftest$ac_exeext conftest.$ac_ext
Chris@1 10978 LIBS=$ac_check_lib_save_LIBS
Chris@1 10979 fi
Chris@1 10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
Chris@1 10981 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Chris@1 10982 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Chris@1 10983 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
Chris@1 10984 else
Chris@1 10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
Chris@1 10986 $as_echo_n "checking for dld_link in -ldld... " >&6; }
Chris@1 10987 if ${ac_cv_lib_dld_dld_link+:} false; then :
Chris@1 10988 $as_echo_n "(cached) " >&6
Chris@1 10989 else
Chris@1 10990 ac_check_lib_save_LIBS=$LIBS
Chris@1 10991 LIBS="-ldld $LIBS"
Chris@1 10992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 10993 /* end confdefs.h. */
Chris@1 10994
Chris@1 10995 /* Override any GCC internal prototype to avoid an error.
Chris@1 10996 Use char because int might match the return type of a GCC
Chris@1 10997 builtin and then its argument prototype would still apply. */
Chris@1 10998 #ifdef __cplusplus
Chris@1 10999 extern "C"
Chris@1 11000 #endif
Chris@1 11001 char dld_link ();
Chris@1 11002 int
Chris@1 11003 main ()
Chris@1 11004 {
Chris@1 11005 return dld_link ();
Chris@1 11006 ;
Chris@1 11007 return 0;
Chris@1 11008 }
Chris@1 11009 _ACEOF
Chris@1 11010 if ac_fn_c_try_link "$LINENO"; then :
Chris@1 11011 ac_cv_lib_dld_dld_link=yes
Chris@1 11012 else
Chris@1 11013 ac_cv_lib_dld_dld_link=no
Chris@1 11014 fi
Chris@1 11015 rm -f core conftest.err conftest.$ac_objext \
Chris@1 11016 conftest$ac_exeext conftest.$ac_ext
Chris@1 11017 LIBS=$ac_check_lib_save_LIBS
Chris@1 11018 fi
Chris@1 11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
Chris@1 11020 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Chris@1 11021 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Chris@1 11022 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
Chris@1 11023 fi
Chris@1 11024
Chris@1 11025
Chris@1 11026 fi
Chris@1 11027
Chris@1 11028
Chris@1 11029 fi
Chris@1 11030
Chris@1 11031
Chris@1 11032 fi
Chris@1 11033
Chris@1 11034
Chris@1 11035 fi
Chris@1 11036
Chris@1 11037
Chris@1 11038 fi
Chris@1 11039
Chris@1 11040 ;;
Chris@1 11041 esac
Chris@1 11042
Chris@1 11043 if test "x$lt_cv_dlopen" != xno; then
Chris@1 11044 enable_dlopen=yes
Chris@1 11045 else
Chris@1 11046 enable_dlopen=no
Chris@1 11047 fi
Chris@1 11048
Chris@1 11049 case $lt_cv_dlopen in
Chris@1 11050 dlopen)
Chris@1 11051 save_CPPFLAGS="$CPPFLAGS"
Chris@1 11052 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Chris@1 11053
Chris@1 11054 save_LDFLAGS="$LDFLAGS"
Chris@1 11055 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Chris@1 11056
Chris@1 11057 save_LIBS="$LIBS"
Chris@1 11058 LIBS="$lt_cv_dlopen_libs $LIBS"
Chris@1 11059
Chris@1 11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
Chris@1 11061 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
Chris@1 11062 if ${lt_cv_dlopen_self+:} false; then :
Chris@1 11063 $as_echo_n "(cached) " >&6
Chris@1 11064 else
Chris@1 11065 if test "$cross_compiling" = yes; then :
Chris@1 11066 lt_cv_dlopen_self=cross
Chris@1 11067 else
Chris@1 11068 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Chris@1 11069 lt_status=$lt_dlunknown
Chris@1 11070 cat > conftest.$ac_ext <<_LT_EOF
Chris@1 11071 #line $LINENO "configure"
Chris@1 11072 #include "confdefs.h"
Chris@1 11073
Chris@1 11074 #if HAVE_DLFCN_H
Chris@1 11075 #include <dlfcn.h>
Chris@1 11076 #endif
Chris@1 11077
Chris@1 11078 #include <stdio.h>
Chris@1 11079
Chris@1 11080 #ifdef RTLD_GLOBAL
Chris@1 11081 # define LT_DLGLOBAL RTLD_GLOBAL
Chris@1 11082 #else
Chris@1 11083 # ifdef DL_GLOBAL
Chris@1 11084 # define LT_DLGLOBAL DL_GLOBAL
Chris@1 11085 # else
Chris@1 11086 # define LT_DLGLOBAL 0
Chris@1 11087 # endif
Chris@1 11088 #endif
Chris@1 11089
Chris@1 11090 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Chris@1 11091 find out it does not work in some platform. */
Chris@1 11092 #ifndef LT_DLLAZY_OR_NOW
Chris@1 11093 # ifdef RTLD_LAZY
Chris@1 11094 # define LT_DLLAZY_OR_NOW RTLD_LAZY
Chris@1 11095 # else
Chris@1 11096 # ifdef DL_LAZY
Chris@1 11097 # define LT_DLLAZY_OR_NOW DL_LAZY
Chris@1 11098 # else
Chris@1 11099 # ifdef RTLD_NOW
Chris@1 11100 # define LT_DLLAZY_OR_NOW RTLD_NOW
Chris@1 11101 # else
Chris@1 11102 # ifdef DL_NOW
Chris@1 11103 # define LT_DLLAZY_OR_NOW DL_NOW
Chris@1 11104 # else
Chris@1 11105 # define LT_DLLAZY_OR_NOW 0
Chris@1 11106 # endif
Chris@1 11107 # endif
Chris@1 11108 # endif
Chris@1 11109 # endif
Chris@1 11110 #endif
Chris@1 11111
Chris@1 11112 /* When -fvisbility=hidden is used, assume the code has been annotated
Chris@1 11113 correspondingly for the symbols needed. */
Chris@1 11114 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Chris@1 11115 int fnord () __attribute__((visibility("default")));
Chris@1 11116 #endif
Chris@1 11117
Chris@1 11118 int fnord () { return 42; }
Chris@1 11119 int main ()
Chris@1 11120 {
Chris@1 11121 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Chris@1 11122 int status = $lt_dlunknown;
Chris@1 11123
Chris@1 11124 if (self)
Chris@1 11125 {
Chris@1 11126 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Chris@1 11127 else
Chris@1 11128 {
Chris@1 11129 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Chris@1 11130 else puts (dlerror ());
Chris@1 11131 }
Chris@1 11132 /* dlclose (self); */
Chris@1 11133 }
Chris@1 11134 else
Chris@1 11135 puts (dlerror ());
Chris@1 11136
Chris@1 11137 return status;
Chris@1 11138 }
Chris@1 11139 _LT_EOF
Chris@1 11140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Chris@1 11141 (eval $ac_link) 2>&5
Chris@1 11142 ac_status=$?
Chris@1 11143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 11144 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Chris@1 11145 (./conftest; exit; ) >&5 2>/dev/null
Chris@1 11146 lt_status=$?
Chris@1 11147 case x$lt_status in
Chris@1 11148 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
Chris@1 11149 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Chris@1 11150 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
Chris@1 11151 esac
Chris@1 11152 else :
Chris@1 11153 # compilation failed
Chris@1 11154 lt_cv_dlopen_self=no
Chris@1 11155 fi
Chris@1 11156 fi
Chris@1 11157 rm -fr conftest*
Chris@1 11158
Chris@1 11159
Chris@1 11160 fi
Chris@1 11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
Chris@1 11162 $as_echo "$lt_cv_dlopen_self" >&6; }
Chris@1 11163
Chris@1 11164 if test "x$lt_cv_dlopen_self" = xyes; then
Chris@1 11165 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Chris@1 11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
Chris@1 11167 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Chris@1 11168 if ${lt_cv_dlopen_self_static+:} false; then :
Chris@1 11169 $as_echo_n "(cached) " >&6
Chris@1 11170 else
Chris@1 11171 if test "$cross_compiling" = yes; then :
Chris@1 11172 lt_cv_dlopen_self_static=cross
Chris@1 11173 else
Chris@1 11174 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Chris@1 11175 lt_status=$lt_dlunknown
Chris@1 11176 cat > conftest.$ac_ext <<_LT_EOF
Chris@1 11177 #line $LINENO "configure"
Chris@1 11178 #include "confdefs.h"
Chris@1 11179
Chris@1 11180 #if HAVE_DLFCN_H
Chris@1 11181 #include <dlfcn.h>
Chris@1 11182 #endif
Chris@1 11183
Chris@1 11184 #include <stdio.h>
Chris@1 11185
Chris@1 11186 #ifdef RTLD_GLOBAL
Chris@1 11187 # define LT_DLGLOBAL RTLD_GLOBAL
Chris@1 11188 #else
Chris@1 11189 # ifdef DL_GLOBAL
Chris@1 11190 # define LT_DLGLOBAL DL_GLOBAL
Chris@1 11191 # else
Chris@1 11192 # define LT_DLGLOBAL 0
Chris@1 11193 # endif
Chris@1 11194 #endif
Chris@1 11195
Chris@1 11196 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Chris@1 11197 find out it does not work in some platform. */
Chris@1 11198 #ifndef LT_DLLAZY_OR_NOW
Chris@1 11199 # ifdef RTLD_LAZY
Chris@1 11200 # define LT_DLLAZY_OR_NOW RTLD_LAZY
Chris@1 11201 # else
Chris@1 11202 # ifdef DL_LAZY
Chris@1 11203 # define LT_DLLAZY_OR_NOW DL_LAZY
Chris@1 11204 # else
Chris@1 11205 # ifdef RTLD_NOW
Chris@1 11206 # define LT_DLLAZY_OR_NOW RTLD_NOW
Chris@1 11207 # else
Chris@1 11208 # ifdef DL_NOW
Chris@1 11209 # define LT_DLLAZY_OR_NOW DL_NOW
Chris@1 11210 # else
Chris@1 11211 # define LT_DLLAZY_OR_NOW 0
Chris@1 11212 # endif
Chris@1 11213 # endif
Chris@1 11214 # endif
Chris@1 11215 # endif
Chris@1 11216 #endif
Chris@1 11217
Chris@1 11218 /* When -fvisbility=hidden is used, assume the code has been annotated
Chris@1 11219 correspondingly for the symbols needed. */
Chris@1 11220 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Chris@1 11221 int fnord () __attribute__((visibility("default")));
Chris@1 11222 #endif
Chris@1 11223
Chris@1 11224 int fnord () { return 42; }
Chris@1 11225 int main ()
Chris@1 11226 {
Chris@1 11227 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Chris@1 11228 int status = $lt_dlunknown;
Chris@1 11229
Chris@1 11230 if (self)
Chris@1 11231 {
Chris@1 11232 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Chris@1 11233 else
Chris@1 11234 {
Chris@1 11235 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Chris@1 11236 else puts (dlerror ());
Chris@1 11237 }
Chris@1 11238 /* dlclose (self); */
Chris@1 11239 }
Chris@1 11240 else
Chris@1 11241 puts (dlerror ());
Chris@1 11242
Chris@1 11243 return status;
Chris@1 11244 }
Chris@1 11245 _LT_EOF
Chris@1 11246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Chris@1 11247 (eval $ac_link) 2>&5
Chris@1 11248 ac_status=$?
Chris@1 11249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 11250 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Chris@1 11251 (./conftest; exit; ) >&5 2>/dev/null
Chris@1 11252 lt_status=$?
Chris@1 11253 case x$lt_status in
Chris@1 11254 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
Chris@1 11255 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Chris@1 11256 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
Chris@1 11257 esac
Chris@1 11258 else :
Chris@1 11259 # compilation failed
Chris@1 11260 lt_cv_dlopen_self_static=no
Chris@1 11261 fi
Chris@1 11262 fi
Chris@1 11263 rm -fr conftest*
Chris@1 11264
Chris@1 11265
Chris@1 11266 fi
Chris@1 11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
Chris@1 11268 $as_echo "$lt_cv_dlopen_self_static" >&6; }
Chris@1 11269 fi
Chris@1 11270
Chris@1 11271 CPPFLAGS="$save_CPPFLAGS"
Chris@1 11272 LDFLAGS="$save_LDFLAGS"
Chris@1 11273 LIBS="$save_LIBS"
Chris@1 11274 ;;
Chris@1 11275 esac
Chris@1 11276
Chris@1 11277 case $lt_cv_dlopen_self in
Chris@1 11278 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
Chris@1 11279 *) enable_dlopen_self=unknown ;;
Chris@1 11280 esac
Chris@1 11281
Chris@1 11282 case $lt_cv_dlopen_self_static in
Chris@1 11283 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
Chris@1 11284 *) enable_dlopen_self_static=unknown ;;
Chris@1 11285 esac
Chris@1 11286 fi
Chris@1 11287
Chris@1 11288
Chris@1 11289
Chris@1 11290
Chris@1 11291
Chris@1 11292
Chris@1 11293
Chris@1 11294
Chris@1 11295
Chris@1 11296
Chris@1 11297
Chris@1 11298
Chris@1 11299
Chris@1 11300
Chris@1 11301
Chris@1 11302
Chris@1 11303
Chris@1 11304 striplib=
Chris@1 11305 old_striplib=
Chris@1 11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
Chris@1 11307 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
Chris@1 11308 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
Chris@1 11309 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
Chris@1 11310 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Chris@1 11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@1 11312 $as_echo "yes" >&6; }
Chris@1 11313 else
Chris@1 11314 # FIXME - insert some real tests, host_os isn't really good enough
Chris@1 11315 case $host_os in
Chris@1 11316 darwin*)
Chris@1 11317 if test -n "$STRIP" ; then
Chris@1 11318 striplib="$STRIP -x"
Chris@1 11319 old_striplib="$STRIP -S"
Chris@1 11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@1 11321 $as_echo "yes" >&6; }
Chris@1 11322 else
Chris@1 11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 11324 $as_echo "no" >&6; }
Chris@1 11325 fi
Chris@1 11326 ;;
Chris@1 11327 *)
Chris@1 11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 11329 $as_echo "no" >&6; }
Chris@1 11330 ;;
Chris@1 11331 esac
Chris@1 11332 fi
Chris@1 11333
Chris@1 11334
Chris@1 11335
Chris@1 11336
Chris@1 11337
Chris@1 11338
Chris@1 11339
Chris@1 11340
Chris@1 11341
Chris@1 11342
Chris@1 11343
Chris@1 11344
Chris@1 11345 # Report which library types will actually be built
Chris@1 11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
Chris@1 11347 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
Chris@1 11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
Chris@1 11349 $as_echo "$can_build_shared" >&6; }
Chris@1 11350
Chris@1 11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
Chris@1 11352 $as_echo_n "checking whether to build shared libraries... " >&6; }
Chris@1 11353 test "$can_build_shared" = "no" && enable_shared=no
Chris@1 11354
Chris@1 11355 # On AIX, shared libraries and static libraries use the same namespace, and
Chris@1 11356 # are all built from PIC.
Chris@1 11357 case $host_os in
Chris@1 11358 aix3*)
Chris@1 11359 test "$enable_shared" = yes && enable_static=no
Chris@1 11360 if test -n "$RANLIB"; then
Chris@1 11361 archive_cmds="$archive_cmds~\$RANLIB \$lib"
Chris@1 11362 postinstall_cmds='$RANLIB $lib'
Chris@1 11363 fi
Chris@1 11364 ;;
Chris@1 11365
Chris@1 11366 aix[4-9]*)
Chris@1 11367 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
Chris@1 11368 test "$enable_shared" = yes && enable_static=no
Chris@1 11369 fi
Chris@1 11370 ;;
Chris@1 11371 esac
Chris@1 11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
Chris@1 11373 $as_echo "$enable_shared" >&6; }
Chris@1 11374
Chris@1 11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
Chris@1 11376 $as_echo_n "checking whether to build static libraries... " >&6; }
Chris@1 11377 # Make sure either enable_shared or enable_static is yes.
Chris@1 11378 test "$enable_shared" = yes || enable_static=yes
Chris@1 11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
Chris@1 11380 $as_echo "$enable_static" >&6; }
Chris@1 11381
Chris@1 11382
Chris@1 11383
Chris@1 11384
Chris@1 11385 fi
Chris@1 11386 ac_ext=c
Chris@1 11387 ac_cpp='$CPP $CPPFLAGS'
Chris@1 11388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@1 11389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@1 11390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@1 11391
Chris@1 11392 CC="$lt_save_CC"
Chris@1 11393
Chris@1 11394
Chris@1 11395
Chris@1 11396
Chris@1 11397
Chris@1 11398
Chris@1 11399
Chris@1 11400
Chris@1 11401
Chris@1 11402
Chris@1 11403
Chris@1 11404
Chris@1 11405
Chris@1 11406 ac_config_commands="$ac_config_commands libtool"
Chris@1 11407
Chris@1 11408
Chris@1 11409
Chris@1 11410
Chris@1 11411 # Only expand once:
Chris@1 11412
Chris@1 11413
Chris@1 11414 if test "x$CC" != xcc; then
Chris@1 11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
Chris@1 11416 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
Chris@1 11417 else
Chris@1 11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
Chris@1 11419 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
Chris@1 11420 fi
Chris@1 11421 set dummy $CC; ac_cc=`$as_echo "$2" |
Chris@1 11422 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
Chris@1 11423 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
Chris@1 11424 $as_echo_n "(cached) " >&6
Chris@1 11425 else
Chris@1 11426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 11427 /* end confdefs.h. */
Chris@1 11428
Chris@1 11429 int
Chris@1 11430 main ()
Chris@1 11431 {
Chris@1 11432
Chris@1 11433 ;
Chris@1 11434 return 0;
Chris@1 11435 }
Chris@1 11436 _ACEOF
Chris@1 11437 # Make sure it works both with $CC and with simple cc.
Chris@1 11438 # We do the test twice because some compilers refuse to overwrite an
Chris@1 11439 # existing .o file with -o, though they will create one.
Chris@1 11440 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
Chris@1 11441 rm -f conftest2.*
Chris@1 11442 if { { case "(($ac_try" in
Chris@1 11443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 11444 *) ac_try_echo=$ac_try;;
Chris@1 11445 esac
Chris@1 11446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 11447 $as_echo "$ac_try_echo"; } >&5
Chris@1 11448 (eval "$ac_try") 2>&5
Chris@1 11449 ac_status=$?
Chris@1 11450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 11451 test $ac_status = 0; } &&
Chris@1 11452 test -f conftest2.$ac_objext && { { case "(($ac_try" in
Chris@1 11453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 11454 *) ac_try_echo=$ac_try;;
Chris@1 11455 esac
Chris@1 11456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 11457 $as_echo "$ac_try_echo"; } >&5
Chris@1 11458 (eval "$ac_try") 2>&5
Chris@1 11459 ac_status=$?
Chris@1 11460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 11461 test $ac_status = 0; };
Chris@1 11462 then
Chris@1 11463 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
Chris@1 11464 if test "x$CC" != xcc; then
Chris@1 11465 # Test first that cc exists at all.
Chris@1 11466 if { ac_try='cc -c conftest.$ac_ext >&5'
Chris@1 11467 { { case "(($ac_try" in
Chris@1 11468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 11469 *) ac_try_echo=$ac_try;;
Chris@1 11470 esac
Chris@1 11471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 11472 $as_echo "$ac_try_echo"; } >&5
Chris@1 11473 (eval "$ac_try") 2>&5
Chris@1 11474 ac_status=$?
Chris@1 11475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 11476 test $ac_status = 0; }; }; then
Chris@1 11477 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
Chris@1 11478 rm -f conftest2.*
Chris@1 11479 if { { case "(($ac_try" in
Chris@1 11480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 11481 *) ac_try_echo=$ac_try;;
Chris@1 11482 esac
Chris@1 11483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 11484 $as_echo "$ac_try_echo"; } >&5
Chris@1 11485 (eval "$ac_try") 2>&5
Chris@1 11486 ac_status=$?
Chris@1 11487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 11488 test $ac_status = 0; } &&
Chris@1 11489 test -f conftest2.$ac_objext && { { case "(($ac_try" in
Chris@1 11490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@1 11491 *) ac_try_echo=$ac_try;;
Chris@1 11492 esac
Chris@1 11493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@1 11494 $as_echo "$ac_try_echo"; } >&5
Chris@1 11495 (eval "$ac_try") 2>&5
Chris@1 11496 ac_status=$?
Chris@1 11497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@1 11498 test $ac_status = 0; };
Chris@1 11499 then
Chris@1 11500 # cc works too.
Chris@1 11501 :
Chris@1 11502 else
Chris@1 11503 # cc exists but doesn't like -o.
Chris@1 11504 eval ac_cv_prog_cc_${ac_cc}_c_o=no
Chris@1 11505 fi
Chris@1 11506 fi
Chris@1 11507 fi
Chris@1 11508 else
Chris@1 11509 eval ac_cv_prog_cc_${ac_cc}_c_o=no
Chris@1 11510 fi
Chris@1 11511 rm -f core conftest*
Chris@1 11512
Chris@1 11513 fi
Chris@1 11514 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
Chris@1 11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@1 11516 $as_echo "yes" >&6; }
Chris@1 11517 else
Chris@1 11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1 11519 $as_echo "no" >&6; }
Chris@1 11520
Chris@1 11521 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
Chris@1 11522
Chris@1 11523 fi
Chris@1 11524
Chris@1 11525 # FIXME: we rely on the cache variable name because
Chris@1 11526 # there is no other way.
Chris@1 11527 set dummy $CC
Chris@1 11528 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
Chris@1 11529 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
Chris@1 11530 if test "$am_t" != yes; then
Chris@1 11531 # Losing compiler, so override with the script.
Chris@1 11532 # FIXME: It is wrong to rewrite CC.
Chris@1 11533 # But if we don't then we get into trouble of one sort or another.
Chris@1 11534 # A longer-term fix would be to have automake use am__CC in this case,
Chris@1 11535 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
Chris@1 11536 CC="$am_aux_dir/compile $CC"
Chris@1 11537 fi
Chris@1 11538
Chris@1 11539
Chris@1 11540
Chris@1 11541 ac_config_headers="$ac_config_headers config.h"
Chris@1 11542
Chris@1 11543
Chris@1 11544
Chris@1 11545 cflags_save="$CFLAGS"
Chris@1 11546 if test -z "$GCC"; then
Chris@1 11547 case $host in
Chris@1 11548 *-*-irix*)
Chris@1 11549 DEBUG="-g -signed"
Chris@1 11550 CFLAGS="-O2 -w -signed"
Chris@1 11551 PROFILE="-p -g3 -O2 -signed"
Chris@1 11552 ;;
Chris@1 11553 sparc-sun-solaris*)
Chris@1 11554 DEBUG="-v -g"
Chris@1 11555 CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
Chris@1 11556 PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc"
Chris@1 11557 ;;
Chris@1 11558 *)
Chris@1 11559 DEBUG="-g"
Chris@1 11560 CFLAGS="-O"
Chris@1 11561 PROFILE="-g -p"
Chris@1 11562 ;;
Chris@1 11563 esac
Chris@1 11564 else
Chris@1 11565 case $host in
Chris@1 11566 *-*-linux*)
Chris@1 11567 DEBUG="-g -Wall -fsigned-char"
Chris@1 11568 CFLAGS="-O20 -Wall -ffast-math -fsigned-char"
Chris@1 11569 PROFILE="-Wall -W -pg -g -O20 -ffast-math -fsigned-char"
Chris@1 11570 ;;
Chris@1 11571 sparc-sun-*)
Chris@1 11572 DEBUG="-g -Wall -fsigned-char"
Chris@1 11573 CFLAGS="-O20 -ffast-math -fsigned-char"
Chris@1 11574 PROFILE="-pg -g -O20 -fsigned-char"
Chris@1 11575 ;;
Chris@1 11576 *-*-darwin*)
Chris@1 11577 DEBUG="-fno-common -g -Wall -fsigned-char"
Chris@1 11578 CFLAGS="-fno-common -O4 -Wall -fsigned-char -ffast-math"
Chris@1 11579 PROFILE="-fno-common -O4 -Wall -pg -g -fsigned-char -ffast-math"
Chris@1 11580 ;;
Chris@1 11581 *)
Chris@1 11582 DEBUG="-g -Wall -fsigned-char"
Chris@1 11583 CFLAGS="-O20 -fsigned-char"
Chris@1 11584 PROFILE="-O20 -g -pg -fsigned-char"
Chris@1 11585 ;;
Chris@1 11586 esac
Chris@1 11587 fi
Chris@1 11588 CFLAGS="$CFLAGS $cflags_save"
Chris@1 11589 DEBUG="$DEBUG $cflags_save"
Chris@1 11590 PROFILE="$PROFILE $cflags_save"
Chris@1 11591
Chris@1 11592
Chris@1 11593
Chris@1 11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Chris@1 11595 $as_echo_n "checking for ANSI C header files... " >&6; }
Chris@1 11596 if ${ac_cv_header_stdc+:} false; then :
Chris@1 11597 $as_echo_n "(cached) " >&6
Chris@1 11598 else
Chris@1 11599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 11600 /* end confdefs.h. */
Chris@1 11601 #include <stdlib.h>
Chris@1 11602 #include <stdarg.h>
Chris@1 11603 #include <string.h>
Chris@1 11604 #include <float.h>
Chris@1 11605
Chris@1 11606 int
Chris@1 11607 main ()
Chris@1 11608 {
Chris@1 11609
Chris@1 11610 ;
Chris@1 11611 return 0;
Chris@1 11612 }
Chris@1 11613 _ACEOF
Chris@1 11614 if ac_fn_c_try_compile "$LINENO"; then :
Chris@1 11615 ac_cv_header_stdc=yes
Chris@1 11616 else
Chris@1 11617 ac_cv_header_stdc=no
Chris@1 11618 fi
Chris@1 11619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@1 11620
Chris@1 11621 if test $ac_cv_header_stdc = yes; then
Chris@1 11622 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Chris@1 11623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 11624 /* end confdefs.h. */
Chris@1 11625 #include <string.h>
Chris@1 11626
Chris@1 11627 _ACEOF
Chris@1 11628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@1 11629 $EGREP "memchr" >/dev/null 2>&1; then :
Chris@1 11630
Chris@1 11631 else
Chris@1 11632 ac_cv_header_stdc=no
Chris@1 11633 fi
Chris@1 11634 rm -f conftest*
Chris@1 11635
Chris@1 11636 fi
Chris@1 11637
Chris@1 11638 if test $ac_cv_header_stdc = yes; then
Chris@1 11639 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Chris@1 11640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 11641 /* end confdefs.h. */
Chris@1 11642 #include <stdlib.h>
Chris@1 11643
Chris@1 11644 _ACEOF
Chris@1 11645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@1 11646 $EGREP "free" >/dev/null 2>&1; then :
Chris@1 11647
Chris@1 11648 else
Chris@1 11649 ac_cv_header_stdc=no
Chris@1 11650 fi
Chris@1 11651 rm -f conftest*
Chris@1 11652
Chris@1 11653 fi
Chris@1 11654
Chris@1 11655 if test $ac_cv_header_stdc = yes; then
Chris@1 11656 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Chris@1 11657 if test "$cross_compiling" = yes; then :
Chris@1 11658 :
Chris@1 11659 else
Chris@1 11660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 11661 /* end confdefs.h. */
Chris@1 11662 #include <ctype.h>
Chris@1 11663 #include <stdlib.h>
Chris@1 11664 #if ((' ' & 0x0FF) == 0x020)
Chris@1 11665 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
Chris@1 11666 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Chris@1 11667 #else
Chris@1 11668 # define ISLOWER(c) \
Chris@1 11669 (('a' <= (c) && (c) <= 'i') \
Chris@1 11670 || ('j' <= (c) && (c) <= 'r') \
Chris@1 11671 || ('s' <= (c) && (c) <= 'z'))
Chris@1 11672 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
Chris@1 11673 #endif
Chris@1 11674
Chris@1 11675 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Chris@1 11676 int
Chris@1 11677 main ()
Chris@1 11678 {
Chris@1 11679 int i;
Chris@1 11680 for (i = 0; i < 256; i++)
Chris@1 11681 if (XOR (islower (i), ISLOWER (i))
Chris@1 11682 || toupper (i) != TOUPPER (i))
Chris@1 11683 return 2;
Chris@1 11684 return 0;
Chris@1 11685 }
Chris@1 11686 _ACEOF
Chris@1 11687 if ac_fn_c_try_run "$LINENO"; then :
Chris@1 11688
Chris@1 11689 else
Chris@1 11690 ac_cv_header_stdc=no
Chris@1 11691 fi
Chris@1 11692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@1 11693 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@1 11694 fi
Chris@1 11695
Chris@1 11696 fi
Chris@1 11697 fi
Chris@1 11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Chris@1 11699 $as_echo "$ac_cv_header_stdc" >&6; }
Chris@1 11700 if test $ac_cv_header_stdc = yes; then
Chris@1 11701
Chris@1 11702 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
Chris@1 11703
Chris@1 11704 fi
Chris@1 11705
Chris@1 11706 INCLUDE_INTTYPES_H=0
Chris@1 11707 INCLUDE_STDINT_H=0
Chris@1 11708 INCLUDE_SYS_TYPES_H=0
Chris@1 11709 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
Chris@1 11710 if test "x$ac_cv_header_inttypes_h" = xyes; then :
Chris@1 11711 INCLUDE_INTTYPES_H=1
Chris@1 11712 fi
Chris@1 11713
Chris@1 11714
Chris@1 11715 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
Chris@1 11716 if test "x$ac_cv_header_stdint_h" = xyes; then :
Chris@1 11717 INCLUDE_STDINT_H=1
Chris@1 11718 fi
Chris@1 11719
Chris@1 11720
Chris@1 11721 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
Chris@1 11722 if test "x$ac_cv_header_sys_types_h" = xyes; then :
Chris@1 11723 INCLUDE_SYS_TYPES_H=1
Chris@1 11724 fi
Chris@1 11725
Chris@1 11726
Chris@1 11727
Chris@1 11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Chris@1 11729 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Chris@1 11730 if ${ac_cv_c_const+:} false; then :
Chris@1 11731 $as_echo_n "(cached) " >&6
Chris@1 11732 else
Chris@1 11733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 11734 /* end confdefs.h. */
Chris@1 11735
Chris@1 11736 int
Chris@1 11737 main ()
Chris@1 11738 {
Chris@1 11739 /* FIXME: Include the comments suggested by Paul. */
Chris@1 11740 #ifndef __cplusplus
Chris@1 11741 /* Ultrix mips cc rejects this. */
Chris@1 11742 typedef int charset[2];
Chris@1 11743 const charset cs;
Chris@1 11744 /* SunOS 4.1.1 cc rejects this. */
Chris@1 11745 char const *const *pcpcc;
Chris@1 11746 char **ppc;
Chris@1 11747 /* NEC SVR4.0.2 mips cc rejects this. */
Chris@1 11748 struct point {int x, y;};
Chris@1 11749 static struct point const zero = {0,0};
Chris@1 11750 /* AIX XL C 1.02.0.0 rejects this.
Chris@1 11751 It does not let you subtract one const X* pointer from another in
Chris@1 11752 an arm of an if-expression whose if-part is not a constant
Chris@1 11753 expression */
Chris@1 11754 const char *g = "string";
Chris@1 11755 pcpcc = &g + (g ? g-g : 0);
Chris@1 11756 /* HPUX 7.0 cc rejects these. */
Chris@1 11757 ++pcpcc;
Chris@1 11758 ppc = (char**) pcpcc;
Chris@1 11759 pcpcc = (char const *const *) ppc;
Chris@1 11760 { /* SCO 3.2v4 cc rejects this. */
Chris@1 11761 char *t;
Chris@1 11762 char const *s = 0 ? (char *) 0 : (char const *) 0;
Chris@1 11763
Chris@1 11764 *t++ = 0;
Chris@1 11765 if (s) return 0;
Chris@1 11766 }
Chris@1 11767 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
Chris@1 11768 int x[] = {25, 17};
Chris@1 11769 const int *foo = &x[0];
Chris@1 11770 ++foo;
Chris@1 11771 }
Chris@1 11772 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
Chris@1 11773 typedef const int *iptr;
Chris@1 11774 iptr p = 0;
Chris@1 11775 ++p;
Chris@1 11776 }
Chris@1 11777 { /* AIX XL C 1.02.0.0 rejects this saying
Chris@1 11778 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
Chris@1 11779 struct s { int j; const int *ap[3]; };
Chris@1 11780 struct s *b; b->j = 5;
Chris@1 11781 }
Chris@1 11782 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
Chris@1 11783 const int foo = 10;
Chris@1 11784 if (!foo) return 0;
Chris@1 11785 }
Chris@1 11786 return !cs[0] && !zero.x;
Chris@1 11787 #endif
Chris@1 11788
Chris@1 11789 ;
Chris@1 11790 return 0;
Chris@1 11791 }
Chris@1 11792 _ACEOF
Chris@1 11793 if ac_fn_c_try_compile "$LINENO"; then :
Chris@1 11794 ac_cv_c_const=yes
Chris@1 11795 else
Chris@1 11796 ac_cv_c_const=no
Chris@1 11797 fi
Chris@1 11798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@1 11799 fi
Chris@1 11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Chris@1 11801 $as_echo "$ac_cv_c_const" >&6; }
Chris@1 11802 if test $ac_cv_c_const = no; then
Chris@1 11803
Chris@1 11804 $as_echo "#define const /**/" >>confdefs.h
Chris@1 11805
Chris@1 11806 fi
Chris@1 11807
Chris@1 11808
Chris@1 11809
Chris@1 11810 # The cast to long int works around a bug in the HP C Compiler
Chris@1 11811 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@1 11812 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@1 11813 # This bug is HP SR number 8606223364.
Chris@1 11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int16_t" >&5
Chris@1 11815 $as_echo_n "checking size of int16_t... " >&6; }
Chris@1 11816 if ${ac_cv_sizeof_int16_t+:} false; then :
Chris@1 11817 $as_echo_n "(cached) " >&6
Chris@1 11818 else
Chris@1 11819 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int16_t))" "ac_cv_sizeof_int16_t" "$ac_includes_default"; then :
Chris@1 11820
Chris@1 11821 else
Chris@1 11822 if test "$ac_cv_type_int16_t" = yes; then
Chris@1 11823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@1 11824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@1 11825 as_fn_error 77 "cannot compute sizeof (int16_t)
Chris@1 11826 See \`config.log' for more details" "$LINENO" 5; }
Chris@1 11827 else
Chris@1 11828 ac_cv_sizeof_int16_t=0
Chris@1 11829 fi
Chris@1 11830 fi
Chris@1 11831
Chris@1 11832 fi
Chris@1 11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int16_t" >&5
Chris@1 11834 $as_echo "$ac_cv_sizeof_int16_t" >&6; }
Chris@1 11835
Chris@1 11836
Chris@1 11837
Chris@1 11838 cat >>confdefs.h <<_ACEOF
Chris@1 11839 #define SIZEOF_INT16_T $ac_cv_sizeof_int16_t
Chris@1 11840 _ACEOF
Chris@1 11841
Chris@1 11842
Chris@1 11843 # The cast to long int works around a bug in the HP C Compiler
Chris@1 11844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@1 11845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@1 11846 # This bug is HP SR number 8606223364.
Chris@1 11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint16_t" >&5
Chris@1 11848 $as_echo_n "checking size of uint16_t... " >&6; }
Chris@1 11849 if ${ac_cv_sizeof_uint16_t+:} false; then :
Chris@1 11850 $as_echo_n "(cached) " >&6
Chris@1 11851 else
Chris@1 11852 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint16_t))" "ac_cv_sizeof_uint16_t" "$ac_includes_default"; then :
Chris@1 11853
Chris@1 11854 else
Chris@1 11855 if test "$ac_cv_type_uint16_t" = yes; then
Chris@1 11856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@1 11857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@1 11858 as_fn_error 77 "cannot compute sizeof (uint16_t)
Chris@1 11859 See \`config.log' for more details" "$LINENO" 5; }
Chris@1 11860 else
Chris@1 11861 ac_cv_sizeof_uint16_t=0
Chris@1 11862 fi
Chris@1 11863 fi
Chris@1 11864
Chris@1 11865 fi
Chris@1 11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint16_t" >&5
Chris@1 11867 $as_echo "$ac_cv_sizeof_uint16_t" >&6; }
Chris@1 11868
Chris@1 11869
Chris@1 11870
Chris@1 11871 cat >>confdefs.h <<_ACEOF
Chris@1 11872 #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
Chris@1 11873 _ACEOF
Chris@1 11874
Chris@1 11875
Chris@1 11876 # The cast to long int works around a bug in the HP C Compiler
Chris@1 11877 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@1 11878 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@1 11879 # This bug is HP SR number 8606223364.
Chris@1 11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of u_int16_t" >&5
Chris@1 11881 $as_echo_n "checking size of u_int16_t... " >&6; }
Chris@1 11882 if ${ac_cv_sizeof_u_int16_t+:} false; then :
Chris@1 11883 $as_echo_n "(cached) " >&6
Chris@1 11884 else
Chris@1 11885 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int16_t))" "ac_cv_sizeof_u_int16_t" "$ac_includes_default"; then :
Chris@1 11886
Chris@1 11887 else
Chris@1 11888 if test "$ac_cv_type_u_int16_t" = yes; then
Chris@1 11889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@1 11890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@1 11891 as_fn_error 77 "cannot compute sizeof (u_int16_t)
Chris@1 11892 See \`config.log' for more details" "$LINENO" 5; }
Chris@1 11893 else
Chris@1 11894 ac_cv_sizeof_u_int16_t=0
Chris@1 11895 fi
Chris@1 11896 fi
Chris@1 11897
Chris@1 11898 fi
Chris@1 11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int16_t" >&5
Chris@1 11900 $as_echo "$ac_cv_sizeof_u_int16_t" >&6; }
Chris@1 11901
Chris@1 11902
Chris@1 11903
Chris@1 11904 cat >>confdefs.h <<_ACEOF
Chris@1 11905 #define SIZEOF_U_INT16_T $ac_cv_sizeof_u_int16_t
Chris@1 11906 _ACEOF
Chris@1 11907
Chris@1 11908
Chris@1 11909 # The cast to long int works around a bug in the HP C Compiler
Chris@1 11910 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@1 11911 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@1 11912 # This bug is HP SR number 8606223364.
Chris@1 11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int32_t" >&5
Chris@1 11914 $as_echo_n "checking size of int32_t... " >&6; }
Chris@1 11915 if ${ac_cv_sizeof_int32_t+:} false; then :
Chris@1 11916 $as_echo_n "(cached) " >&6
Chris@1 11917 else
Chris@1 11918 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int32_t))" "ac_cv_sizeof_int32_t" "$ac_includes_default"; then :
Chris@1 11919
Chris@1 11920 else
Chris@1 11921 if test "$ac_cv_type_int32_t" = yes; then
Chris@1 11922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@1 11923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@1 11924 as_fn_error 77 "cannot compute sizeof (int32_t)
Chris@1 11925 See \`config.log' for more details" "$LINENO" 5; }
Chris@1 11926 else
Chris@1 11927 ac_cv_sizeof_int32_t=0
Chris@1 11928 fi
Chris@1 11929 fi
Chris@1 11930
Chris@1 11931 fi
Chris@1 11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int32_t" >&5
Chris@1 11933 $as_echo "$ac_cv_sizeof_int32_t" >&6; }
Chris@1 11934
Chris@1 11935
Chris@1 11936
Chris@1 11937 cat >>confdefs.h <<_ACEOF
Chris@1 11938 #define SIZEOF_INT32_T $ac_cv_sizeof_int32_t
Chris@1 11939 _ACEOF
Chris@1 11940
Chris@1 11941
Chris@1 11942 # The cast to long int works around a bug in the HP C Compiler
Chris@1 11943 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@1 11944 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@1 11945 # This bug is HP SR number 8606223364.
Chris@1 11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint32_t" >&5
Chris@1 11947 $as_echo_n "checking size of uint32_t... " >&6; }
Chris@1 11948 if ${ac_cv_sizeof_uint32_t+:} false; then :
Chris@1 11949 $as_echo_n "(cached) " >&6
Chris@1 11950 else
Chris@1 11951 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint32_t))" "ac_cv_sizeof_uint32_t" "$ac_includes_default"; then :
Chris@1 11952
Chris@1 11953 else
Chris@1 11954 if test "$ac_cv_type_uint32_t" = yes; then
Chris@1 11955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@1 11956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@1 11957 as_fn_error 77 "cannot compute sizeof (uint32_t)
Chris@1 11958 See \`config.log' for more details" "$LINENO" 5; }
Chris@1 11959 else
Chris@1 11960 ac_cv_sizeof_uint32_t=0
Chris@1 11961 fi
Chris@1 11962 fi
Chris@1 11963
Chris@1 11964 fi
Chris@1 11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint32_t" >&5
Chris@1 11966 $as_echo "$ac_cv_sizeof_uint32_t" >&6; }
Chris@1 11967
Chris@1 11968
Chris@1 11969
Chris@1 11970 cat >>confdefs.h <<_ACEOF
Chris@1 11971 #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
Chris@1 11972 _ACEOF
Chris@1 11973
Chris@1 11974
Chris@1 11975 # The cast to long int works around a bug in the HP C Compiler
Chris@1 11976 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@1 11977 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@1 11978 # This bug is HP SR number 8606223364.
Chris@1 11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of u_int32_t" >&5
Chris@1 11980 $as_echo_n "checking size of u_int32_t... " >&6; }
Chris@1 11981 if ${ac_cv_sizeof_u_int32_t+:} false; then :
Chris@1 11982 $as_echo_n "(cached) " >&6
Chris@1 11983 else
Chris@1 11984 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int32_t))" "ac_cv_sizeof_u_int32_t" "$ac_includes_default"; then :
Chris@1 11985
Chris@1 11986 else
Chris@1 11987 if test "$ac_cv_type_u_int32_t" = yes; then
Chris@1 11988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@1 11989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@1 11990 as_fn_error 77 "cannot compute sizeof (u_int32_t)
Chris@1 11991 See \`config.log' for more details" "$LINENO" 5; }
Chris@1 11992 else
Chris@1 11993 ac_cv_sizeof_u_int32_t=0
Chris@1 11994 fi
Chris@1 11995 fi
Chris@1 11996
Chris@1 11997 fi
Chris@1 11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int32_t" >&5
Chris@1 11999 $as_echo "$ac_cv_sizeof_u_int32_t" >&6; }
Chris@1 12000
Chris@1 12001
Chris@1 12002
Chris@1 12003 cat >>confdefs.h <<_ACEOF
Chris@1 12004 #define SIZEOF_U_INT32_T $ac_cv_sizeof_u_int32_t
Chris@1 12005 _ACEOF
Chris@1 12006
Chris@1 12007
Chris@1 12008 # The cast to long int works around a bug in the HP C Compiler
Chris@1 12009 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@1 12010 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@1 12011 # This bug is HP SR number 8606223364.
Chris@1 12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
Chris@1 12013 $as_echo_n "checking size of int64_t... " >&6; }
Chris@1 12014 if ${ac_cv_sizeof_int64_t+:} false; then :
Chris@1 12015 $as_echo_n "(cached) " >&6
Chris@1 12016 else
Chris@1 12017 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default"; then :
Chris@1 12018
Chris@1 12019 else
Chris@1 12020 if test "$ac_cv_type_int64_t" = yes; then
Chris@1 12021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@1 12022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@1 12023 as_fn_error 77 "cannot compute sizeof (int64_t)
Chris@1 12024 See \`config.log' for more details" "$LINENO" 5; }
Chris@1 12025 else
Chris@1 12026 ac_cv_sizeof_int64_t=0
Chris@1 12027 fi
Chris@1 12028 fi
Chris@1 12029
Chris@1 12030 fi
Chris@1 12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
Chris@1 12032 $as_echo "$ac_cv_sizeof_int64_t" >&6; }
Chris@1 12033
Chris@1 12034
Chris@1 12035
Chris@1 12036 cat >>confdefs.h <<_ACEOF
Chris@1 12037 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
Chris@1 12038 _ACEOF
Chris@1 12039
Chris@1 12040
Chris@1 12041 # The cast to long int works around a bug in the HP C Compiler
Chris@1 12042 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@1 12043 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@1 12044 # This bug is HP SR number 8606223364.
Chris@1 12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Chris@1 12046 $as_echo_n "checking size of short... " >&6; }
Chris@1 12047 if ${ac_cv_sizeof_short+:} false; then :
Chris@1 12048 $as_echo_n "(cached) " >&6
Chris@1 12049 else
Chris@1 12050 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
Chris@1 12051
Chris@1 12052 else
Chris@1 12053 if test "$ac_cv_type_short" = yes; then
Chris@1 12054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@1 12055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@1 12056 as_fn_error 77 "cannot compute sizeof (short)
Chris@1 12057 See \`config.log' for more details" "$LINENO" 5; }
Chris@1 12058 else
Chris@1 12059 ac_cv_sizeof_short=0
Chris@1 12060 fi
Chris@1 12061 fi
Chris@1 12062
Chris@1 12063 fi
Chris@1 12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Chris@1 12065 $as_echo "$ac_cv_sizeof_short" >&6; }
Chris@1 12066
Chris@1 12067
Chris@1 12068
Chris@1 12069 cat >>confdefs.h <<_ACEOF
Chris@1 12070 #define SIZEOF_SHORT $ac_cv_sizeof_short
Chris@1 12071 _ACEOF
Chris@1 12072
Chris@1 12073
Chris@1 12074 # The cast to long int works around a bug in the HP C Compiler
Chris@1 12075 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@1 12076 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@1 12077 # This bug is HP SR number 8606223364.
Chris@1 12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Chris@1 12079 $as_echo_n "checking size of int... " >&6; }
Chris@1 12080 if ${ac_cv_sizeof_int+:} false; then :
Chris@1 12081 $as_echo_n "(cached) " >&6
Chris@1 12082 else
Chris@1 12083 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
Chris@1 12084
Chris@1 12085 else
Chris@1 12086 if test "$ac_cv_type_int" = yes; then
Chris@1 12087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@1 12088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@1 12089 as_fn_error 77 "cannot compute sizeof (int)
Chris@1 12090 See \`config.log' for more details" "$LINENO" 5; }
Chris@1 12091 else
Chris@1 12092 ac_cv_sizeof_int=0
Chris@1 12093 fi
Chris@1 12094 fi
Chris@1 12095
Chris@1 12096 fi
Chris@1 12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Chris@1 12098 $as_echo "$ac_cv_sizeof_int" >&6; }
Chris@1 12099
Chris@1 12100
Chris@1 12101
Chris@1 12102 cat >>confdefs.h <<_ACEOF
Chris@1 12103 #define SIZEOF_INT $ac_cv_sizeof_int
Chris@1 12104 _ACEOF
Chris@1 12105
Chris@1 12106
Chris@1 12107 # The cast to long int works around a bug in the HP C Compiler
Chris@1 12108 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@1 12109 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@1 12110 # This bug is HP SR number 8606223364.
Chris@1 12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Chris@1 12112 $as_echo_n "checking size of long... " >&6; }
Chris@1 12113 if ${ac_cv_sizeof_long+:} false; then :
Chris@1 12114 $as_echo_n "(cached) " >&6
Chris@1 12115 else
Chris@1 12116 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
Chris@1 12117
Chris@1 12118 else
Chris@1 12119 if test "$ac_cv_type_long" = yes; then
Chris@1 12120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@1 12121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@1 12122 as_fn_error 77 "cannot compute sizeof (long)
Chris@1 12123 See \`config.log' for more details" "$LINENO" 5; }
Chris@1 12124 else
Chris@1 12125 ac_cv_sizeof_long=0
Chris@1 12126 fi
Chris@1 12127 fi
Chris@1 12128
Chris@1 12129 fi
Chris@1 12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Chris@1 12131 $as_echo "$ac_cv_sizeof_long" >&6; }
Chris@1 12132
Chris@1 12133
Chris@1 12134
Chris@1 12135 cat >>confdefs.h <<_ACEOF
Chris@1 12136 #define SIZEOF_LONG $ac_cv_sizeof_long
Chris@1 12137 _ACEOF
Chris@1 12138
Chris@1 12139
Chris@1 12140 # The cast to long int works around a bug in the HP C Compiler
Chris@1 12141 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@1 12142 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@1 12143 # This bug is HP SR number 8606223364.
Chris@1 12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Chris@1 12145 $as_echo_n "checking size of long long... " >&6; }
Chris@1 12146 if ${ac_cv_sizeof_long_long+:} false; then :
Chris@1 12147 $as_echo_n "(cached) " >&6
Chris@1 12148 else
Chris@1 12149 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
Chris@1 12150
Chris@1 12151 else
Chris@1 12152 if test "$ac_cv_type_long_long" = yes; then
Chris@1 12153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@1 12154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@1 12155 as_fn_error 77 "cannot compute sizeof (long long)
Chris@1 12156 See \`config.log' for more details" "$LINENO" 5; }
Chris@1 12157 else
Chris@1 12158 ac_cv_sizeof_long_long=0
Chris@1 12159 fi
Chris@1 12160 fi
Chris@1 12161
Chris@1 12162 fi
Chris@1 12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Chris@1 12164 $as_echo "$ac_cv_sizeof_long_long" >&6; }
Chris@1 12165
Chris@1 12166
Chris@1 12167
Chris@1 12168 cat >>confdefs.h <<_ACEOF
Chris@1 12169 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Chris@1 12170 _ACEOF
Chris@1 12171
Chris@1 12172
Chris@1 12173
Chris@1 12174 case 2 in
Chris@1 12175 $ac_cv_sizeof_short) SIZE16="short";;
Chris@1 12176 $ac_cv_sizeof_int) SIZE16="int";;
Chris@1 12177 $ac_cv_sizeof_int16_t) SIZE16="int16_t";;
Chris@1 12178 esac
Chris@1 12179
Chris@1 12180 case 2 in
Chris@1 12181 $ac_cv_sizeof_short) USIZE16="unsigned short";;
Chris@1 12182 $ac_cv_sizeof_int) USIZE16="unsigned int";;
Chris@1 12183 $ac_cv_sizeof_u_int16_t) USIZE16="u_int16_t";;
Chris@1 12184 $ac_cv_sizeof_uint16_t) USIZE16="uint16_t";;
Chris@1 12185 esac
Chris@1 12186
Chris@1 12187 case 4 in
Chris@1 12188 $ac_cv_sizeof_short) SIZE32="short";;
Chris@1 12189 $ac_cv_sizeof_int) SIZE32="int";;
Chris@1 12190 $ac_cv_sizeof_long) SIZE32="long";;
Chris@1 12191 $ac_cv_sizeof_int32_t) SIZE32="int32_t";;
Chris@1 12192 esac
Chris@1 12193
Chris@1 12194 case 4 in
Chris@1 12195 $ac_cv_sizeof_short) USIZE32="unsigned short";;
Chris@1 12196 $ac_cv_sizeof_int) USIZE32="unsigned int";;
Chris@1 12197 $ac_cv_sizeof_long) USIZE32="unsigned long";;
Chris@1 12198 $ac_cv_sizeof_u_int32_t) USIZE32="u_int32_t";;
Chris@1 12199 $ac_cv_sizeof_uint32_t) USIZE32="uint32_t";;
Chris@1 12200 esac
Chris@1 12201
Chris@1 12202 case 8 in
Chris@1 12203 $ac_cv_sizeof_int) SIZE64="int";;
Chris@1 12204 $ac_cv_sizeof_long) SIZE64="long";;
Chris@1 12205 $ac_cv_sizeof_long_long) SIZE64="long long";;
Chris@1 12206 $ac_cv_sizeof_int64_t) SIZE64="int64_t";;
Chris@1 12207 esac
Chris@1 12208
Chris@1 12209 if test -z "$SIZE16"; then
Chris@1 12210 as_fn_error $? "No 16 bit type found on this platform!" "$LINENO" 5
Chris@1 12211 fi
Chris@1 12212 if test -z "$USIZE16"; then
Chris@1 12213 as_fn_error $? "No unsigned 16 bit type found on this platform!" "$LINENO" 5
Chris@1 12214 fi
Chris@1 12215 if test -z "$SIZE32"; then
Chris@1 12216 as_fn_error $? "No 32 bit type found on this platform!" "$LINENO" 5
Chris@1 12217 fi
Chris@1 12218 if test -z "$USIZE32"; then
Chris@1 12219 as_fn_error $? "No unsigned 32 bit type found on this platform!" "$LINENO" 5
Chris@1 12220 fi
Chris@1 12221 if test -z "$SIZE64"; then
Chris@1 12222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No 64 bit type found on this platform!" >&5
Chris@1 12223 $as_echo "$as_me: WARNING: No 64 bit type found on this platform!" >&2;}
Chris@1 12224 fi
Chris@1 12225
Chris@1 12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
Chris@1 12227 $as_echo_n "checking for working memcmp... " >&6; }
Chris@1 12228 if ${ac_cv_func_memcmp_working+:} false; then :
Chris@1 12229 $as_echo_n "(cached) " >&6
Chris@1 12230 else
Chris@1 12231 if test "$cross_compiling" = yes; then :
Chris@1 12232 ac_cv_func_memcmp_working=no
Chris@1 12233 else
Chris@1 12234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1 12235 /* end confdefs.h. */
Chris@1 12236 $ac_includes_default
Chris@1 12237 int
Chris@1 12238 main ()
Chris@1 12239 {
Chris@1 12240
Chris@1 12241 /* Some versions of memcmp are not 8-bit clean. */
Chris@1 12242 char c0 = '\100', c1 = '\200', c2 = '\201';
Chris@1 12243 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
Chris@1 12244 return 1;
Chris@1 12245
Chris@1 12246 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
Chris@1 12247 or more and with at least one buffer not starting on a 4-byte boundary.
Chris@1 12248 William Lewis provided this test program. */
Chris@1 12249 {
Chris@1 12250 char foo[21];
Chris@1 12251 char bar[21];
Chris@1 12252 int i;
Chris@1 12253 for (i = 0; i < 4; i++)
Chris@1 12254 {
Chris@1 12255 char *a = foo + i;
Chris@1 12256 char *b = bar + i;
Chris@1 12257 strcpy (a, "--------01111111");
Chris@1 12258 strcpy (b, "--------10000000");
Chris@1 12259 if (memcmp (a, b, 16) >= 0)
Chris@1 12260 return 1;
Chris@1 12261 }
Chris@1 12262 return 0;
Chris@1 12263 }
Chris@1 12264
Chris@1 12265 ;
Chris@1 12266 return 0;
Chris@1 12267 }
Chris@1 12268 _ACEOF
Chris@1 12269 if ac_fn_c_try_run "$LINENO"; then :
Chris@1 12270 ac_cv_func_memcmp_working=yes
Chris@1 12271 else
Chris@1 12272 ac_cv_func_memcmp_working=no
Chris@1 12273 fi
Chris@1 12274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@1 12275 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@1 12276 fi
Chris@1 12277
Chris@1 12278 fi
Chris@1 12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
Chris@1 12280 $as_echo "$ac_cv_func_memcmp_working" >&6; }
Chris@1 12281 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
Chris@1 12282 *" memcmp.$ac_objext "* ) ;;
Chris@1 12283 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
Chris@1 12284 ;;
Chris@1 12285 esac
Chris@1 12286
Chris@1 12287
Chris@1 12288
Chris@1 12289
Chris@1 12290
Chris@1 12291
Chris@1 12292
Chris@1 12293
Chris@1 12294
Chris@1 12295
Chris@1 12296
Chris@1 12297
Chris@1 12298
Chris@1 12299
Chris@1 12300
Chris@1 12301
Chris@1 12302
Chris@1 12303
Chris@1 12304
Chris@1 12305 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile doc/libogg/Makefile include/Makefile include/ogg/Makefile include/ogg/config_types.h libogg.spec ogg.pc ogg-uninstalled.pc"
Chris@1 12306
Chris@1 12307 cat >confcache <<\_ACEOF
Chris@1 12308 # This file is a shell script that caches the results of configure
Chris@1 12309 # tests run on this system so they can be shared between configure
Chris@1 12310 # scripts and configure runs, see configure's option --config-cache.
Chris@1 12311 # It is not useful on other systems. If it contains results you don't
Chris@1 12312 # want to keep, you may remove or edit it.
Chris@1 12313 #
Chris@1 12314 # config.status only pays attention to the cache file if you give it
Chris@1 12315 # the --recheck option to rerun configure.
Chris@1 12316 #
Chris@1 12317 # `ac_cv_env_foo' variables (set or unset) will be overridden when
Chris@1 12318 # loading this file, other *unset* `ac_cv_foo' will be assigned the
Chris@1 12319 # following values.
Chris@1 12320
Chris@1 12321 _ACEOF
Chris@1 12322
Chris@1 12323 # The following way of writing the cache mishandles newlines in values,
Chris@1 12324 # but we know of no workaround that is simple, portable, and efficient.
Chris@1 12325 # So, we kill variables containing newlines.
Chris@1 12326 # Ultrix sh set writes to stderr and can't be redirected directly,
Chris@1 12327 # and sets the high bit in the cache file unless we assign to the vars.
Chris@1 12328 (
Chris@1 12329 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
Chris@1 12330 eval ac_val=\$$ac_var
Chris@1 12331 case $ac_val in #(
Chris@1 12332 *${as_nl}*)
Chris@1 12333 case $ac_var in #(
Chris@1 12334 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Chris@1 12335 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Chris@1 12336 esac
Chris@1 12337 case $ac_var in #(
Chris@1 12338 _ | IFS | as_nl) ;; #(
Chris@1 12339 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Chris@1 12340 *) { eval $ac_var=; unset $ac_var;} ;;
Chris@1 12341 esac ;;
Chris@1 12342 esac
Chris@1 12343 done
Chris@1 12344
Chris@1 12345 (set) 2>&1 |
Chris@1 12346 case $as_nl`(ac_space=' '; set) 2>&1` in #(
Chris@1 12347 *${as_nl}ac_space=\ *)
Chris@1 12348 # `set' does not quote correctly, so add quotes: double-quote
Chris@1 12349 # substitution turns \\\\ into \\, and sed turns \\ into \.
Chris@1 12350 sed -n \
Chris@1 12351 "s/'/'\\\\''/g;
Chris@1 12352 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Chris@1 12353 ;; #(
Chris@1 12354 *)
Chris@1 12355 # `set' quotes correctly as required by POSIX, so do not add quotes.
Chris@1 12356 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Chris@1 12357 ;;
Chris@1 12358 esac |
Chris@1 12359 sort
Chris@1 12360 ) |
Chris@1 12361 sed '
Chris@1 12362 /^ac_cv_env_/b end
Chris@1 12363 t clear
Chris@1 12364 :clear
Chris@1 12365 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
Chris@1 12366 t end
Chris@1 12367 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
Chris@1 12368 :end' >>confcache
Chris@1 12369 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
Chris@1 12370 if test -w "$cache_file"; then
Chris@1 12371 if test "x$cache_file" != "x/dev/null"; then
Chris@1 12372 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Chris@1 12373 $as_echo "$as_me: updating cache $cache_file" >&6;}
Chris@1 12374 if test ! -f "$cache_file" || test -h "$cache_file"; then
Chris@1 12375 cat confcache >"$cache_file"
Chris@1 12376 else
Chris@1 12377 case $cache_file in #(
Chris@1 12378 */* | ?:*)
Chris@1 12379 mv -f confcache "$cache_file"$$ &&
Chris@1 12380 mv -f "$cache_file"$$ "$cache_file" ;; #(
Chris@1 12381 *)
Chris@1 12382 mv -f confcache "$cache_file" ;;
Chris@1 12383 esac
Chris@1 12384 fi
Chris@1 12385 fi
Chris@1 12386 else
Chris@1 12387 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Chris@1 12388 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Chris@1 12389 fi
Chris@1 12390 fi
Chris@1 12391 rm -f confcache
Chris@1 12392
Chris@1 12393 test "x$prefix" = xNONE && prefix=$ac_default_prefix
Chris@1 12394 # Let make expand exec_prefix.
Chris@1 12395 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
Chris@1 12396
Chris@1 12397 DEFS=-DHAVE_CONFIG_H
Chris@1 12398
Chris@1 12399 ac_libobjs=
Chris@1 12400 ac_ltlibobjs=
Chris@1 12401 U=
Chris@1 12402 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
Chris@1 12403 # 1. Remove the extension, and $U if already installed.
Chris@1 12404 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Chris@1 12405 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Chris@1 12406 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
Chris@1 12407 # will be set to the directory where LIBOBJS objects are built.
Chris@1 12408 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
Chris@1 12409 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Chris@1 12410 done
Chris@1 12411 LIBOBJS=$ac_libobjs
Chris@1 12412
Chris@1 12413 LTLIBOBJS=$ac_ltlibobjs
Chris@1 12414
Chris@1 12415
Chris@1 12416 if test -n "$EXEEXT"; then
Chris@1 12417 am__EXEEXT_TRUE=
Chris@1 12418 am__EXEEXT_FALSE='#'
Chris@1 12419 else
Chris@1 12420 am__EXEEXT_TRUE='#'
Chris@1 12421 am__EXEEXT_FALSE=
Chris@1 12422 fi
Chris@1 12423
Chris@1 12424 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
Chris@1 12425 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
Chris@1 12426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@1 12427 fi
Chris@1 12428 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Chris@1 12429 as_fn_error $? "conditional \"AMDEP\" was never defined.
Chris@1 12430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@1 12431 fi
Chris@1 12432 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Chris@1 12433 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Chris@1 12434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@1 12435 fi
Chris@1 12436
Chris@1 12437 : "${CONFIG_STATUS=./config.status}"
Chris@1 12438 ac_write_fail=0
Chris@1 12439 ac_clean_files_save=$ac_clean_files
Chris@1 12440 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Chris@1 12441 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Chris@1 12442 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Chris@1 12443 as_write_fail=0
Chris@1 12444 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Chris@1 12445 #! $SHELL
Chris@1 12446 # Generated by $as_me.
Chris@1 12447 # Run this file to recreate the current configuration.
Chris@1 12448 # Compiler output produced by configure, useful for debugging
Chris@1 12449 # configure, is in config.log if it exists.
Chris@1 12450
Chris@1 12451 debug=false
Chris@1 12452 ac_cs_recheck=false
Chris@1 12453 ac_cs_silent=false
Chris@1 12454
Chris@1 12455 SHELL=\${CONFIG_SHELL-$SHELL}
Chris@1 12456 export SHELL
Chris@1 12457 _ASEOF
Chris@1 12458 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
Chris@1 12459 ## -------------------- ##
Chris@1 12460 ## M4sh Initialization. ##
Chris@1 12461 ## -------------------- ##
Chris@1 12462
Chris@1 12463 # Be more Bourne compatible
Chris@1 12464 DUALCASE=1; export DUALCASE # for MKS sh
Chris@1 12465 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Chris@1 12466 emulate sh
Chris@1 12467 NULLCMD=:
Chris@1 12468 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Chris@1 12469 # is contrary to our usage. Disable this feature.
Chris@1 12470 alias -g '${1+"$@"}'='"$@"'
Chris@1 12471 setopt NO_GLOB_SUBST
Chris@1 12472 else
Chris@1 12473 case `(set -o) 2>/dev/null` in #(
Chris@1 12474 *posix*) :
Chris@1 12475 set -o posix ;; #(
Chris@1 12476 *) :
Chris@1 12477 ;;
Chris@1 12478 esac
Chris@1 12479 fi
Chris@1 12480
Chris@1 12481
Chris@1 12482 as_nl='
Chris@1 12483 '
Chris@1 12484 export as_nl
Chris@1 12485 # Printing a long string crashes Solaris 7 /usr/bin/printf.
Chris@1 12486 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@1 12487 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@1 12488 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@1 12489 # Prefer a ksh shell builtin over an external printf program on Solaris,
Chris@1 12490 # but without wasting forks for bash or zsh.
Chris@1 12491 if test -z "$BASH_VERSION$ZSH_VERSION" \
Chris@1 12492 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@1 12493 as_echo='print -r --'
Chris@1 12494 as_echo_n='print -rn --'
Chris@1 12495 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@1 12496 as_echo='printf %s\n'
Chris@1 12497 as_echo_n='printf %s'
Chris@1 12498 else
Chris@1 12499 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
Chris@1 12500 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
Chris@1 12501 as_echo_n='/usr/ucb/echo -n'
Chris@1 12502 else
Chris@1 12503 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
Chris@1 12504 as_echo_n_body='eval
Chris@1 12505 arg=$1;
Chris@1 12506 case $arg in #(
Chris@1 12507 *"$as_nl"*)
Chris@1 12508 expr "X$arg" : "X\\(.*\\)$as_nl";
Chris@1 12509 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
Chris@1 12510 esac;
Chris@1 12511 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
Chris@1 12512 '
Chris@1 12513 export as_echo_n_body
Chris@1 12514 as_echo_n='sh -c $as_echo_n_body as_echo'
Chris@1 12515 fi
Chris@1 12516 export as_echo_body
Chris@1 12517 as_echo='sh -c $as_echo_body as_echo'
Chris@1 12518 fi
Chris@1 12519
Chris@1 12520 # The user is always right.
Chris@1 12521 if test "${PATH_SEPARATOR+set}" != set; then
Chris@1 12522 PATH_SEPARATOR=:
Chris@1 12523 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
Chris@1 12524 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
Chris@1 12525 PATH_SEPARATOR=';'
Chris@1 12526 }
Chris@1 12527 fi
Chris@1 12528
Chris@1 12529
Chris@1 12530 # IFS
Chris@1 12531 # We need space, tab and new line, in precisely that order. Quoting is
Chris@1 12532 # there to prevent editors from complaining about space-tab.
Chris@1 12533 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
Chris@1 12534 # splitting by setting IFS to empty value.)
Chris@1 12535 IFS=" "" $as_nl"
Chris@1 12536
Chris@1 12537 # Find who we are. Look in the path if we contain no directory separator.
Chris@1 12538 as_myself=
Chris@1 12539 case $0 in #((
Chris@1 12540 *[\\/]* ) as_myself=$0 ;;
Chris@1 12541 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1 12542 for as_dir in $PATH
Chris@1 12543 do
Chris@1 12544 IFS=$as_save_IFS
Chris@1 12545 test -z "$as_dir" && as_dir=.
Chris@1 12546 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
Chris@1 12547 done
Chris@1 12548 IFS=$as_save_IFS
Chris@1 12549
Chris@1 12550 ;;
Chris@1 12551 esac
Chris@1 12552 # We did not find ourselves, most probably we were run as `sh COMMAND'
Chris@1 12553 # in which case we are not to be found in the path.
Chris@1 12554 if test "x$as_myself" = x; then
Chris@1 12555 as_myself=$0
Chris@1 12556 fi
Chris@1 12557 if test ! -f "$as_myself"; then
Chris@1 12558 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Chris@1 12559 exit 1
Chris@1 12560 fi
Chris@1 12561
Chris@1 12562 # Unset variables that we do not need and which cause bugs (e.g. in
Chris@1 12563 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
Chris@1 12564 # suppresses any "Segmentation fault" message there. '((' could
Chris@1 12565 # trigger a bug in pdksh 5.2.14.
Chris@1 12566 for as_var in BASH_ENV ENV MAIL MAILPATH
Chris@1 12567 do eval test x\${$as_var+set} = xset \
Chris@1 12568 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Chris@1 12569 done
Chris@1 12570 PS1='$ '
Chris@1 12571 PS2='> '
Chris@1 12572 PS4='+ '
Chris@1 12573
Chris@1 12574 # NLS nuisances.
Chris@1 12575 LC_ALL=C
Chris@1 12576 export LC_ALL
Chris@1 12577 LANGUAGE=C
Chris@1 12578 export LANGUAGE
Chris@1 12579
Chris@1 12580 # CDPATH.
Chris@1 12581 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@1 12582
Chris@1 12583
Chris@1 12584 # as_fn_error STATUS ERROR [LINENO LOG_FD]
Chris@1 12585 # ----------------------------------------
Chris@1 12586 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
Chris@1 12587 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Chris@1 12588 # script with STATUS, using 1 if that was 0.
Chris@1 12589 as_fn_error ()
Chris@1 12590 {
Chris@1 12591 as_status=$1; test $as_status -eq 0 && as_status=1
Chris@1 12592 if test "$4"; then
Chris@1 12593 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@1 12594 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Chris@1 12595 fi
Chris@1 12596 $as_echo "$as_me: error: $2" >&2
Chris@1 12597 as_fn_exit $as_status
Chris@1 12598 } # as_fn_error
Chris@1 12599
Chris@1 12600
Chris@1 12601 # as_fn_set_status STATUS
Chris@1 12602 # -----------------------
Chris@1 12603 # Set $? to STATUS, without forking.
Chris@1 12604 as_fn_set_status ()
Chris@1 12605 {
Chris@1 12606 return $1
Chris@1 12607 } # as_fn_set_status
Chris@1 12608
Chris@1 12609 # as_fn_exit STATUS
Chris@1 12610 # -----------------
Chris@1 12611 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
Chris@1 12612 as_fn_exit ()
Chris@1 12613 {
Chris@1 12614 set +e
Chris@1 12615 as_fn_set_status $1
Chris@1 12616 exit $1
Chris@1 12617 } # as_fn_exit
Chris@1 12618
Chris@1 12619 # as_fn_unset VAR
Chris@1 12620 # ---------------
Chris@1 12621 # Portably unset VAR.
Chris@1 12622 as_fn_unset ()
Chris@1 12623 {
Chris@1 12624 { eval $1=; unset $1;}
Chris@1 12625 }
Chris@1 12626 as_unset=as_fn_unset
Chris@1 12627 # as_fn_append VAR VALUE
Chris@1 12628 # ----------------------
Chris@1 12629 # Append the text in VALUE to the end of the definition contained in VAR. Take
Chris@1 12630 # advantage of any shell optimizations that allow amortized linear growth over
Chris@1 12631 # repeated appends, instead of the typical quadratic growth present in naive
Chris@1 12632 # implementations.
Chris@1 12633 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
Chris@1 12634 eval 'as_fn_append ()
Chris@1 12635 {
Chris@1 12636 eval $1+=\$2
Chris@1 12637 }'
Chris@1 12638 else
Chris@1 12639 as_fn_append ()
Chris@1 12640 {
Chris@1 12641 eval $1=\$$1\$2
Chris@1 12642 }
Chris@1 12643 fi # as_fn_append
Chris@1 12644
Chris@1 12645 # as_fn_arith ARG...
Chris@1 12646 # ------------------
Chris@1 12647 # Perform arithmetic evaluation on the ARGs, and store the result in the
Chris@1 12648 # global $as_val. Take advantage of shells that can avoid forks. The arguments
Chris@1 12649 # must be portable across $(()) and expr.
Chris@1 12650 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
Chris@1 12651 eval 'as_fn_arith ()
Chris@1 12652 {
Chris@1 12653 as_val=$(( $* ))
Chris@1 12654 }'
Chris@1 12655 else
Chris@1 12656 as_fn_arith ()
Chris@1 12657 {
Chris@1 12658 as_val=`expr "$@" || test $? -eq 1`
Chris@1 12659 }
Chris@1 12660 fi # as_fn_arith
Chris@1 12661
Chris@1 12662
Chris@1 12663 if expr a : '\(a\)' >/dev/null 2>&1 &&
Chris@1 12664 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Chris@1 12665 as_expr=expr
Chris@1 12666 else
Chris@1 12667 as_expr=false
Chris@1 12668 fi
Chris@1 12669
Chris@1 12670 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Chris@1 12671 as_basename=basename
Chris@1 12672 else
Chris@1 12673 as_basename=false
Chris@1 12674 fi
Chris@1 12675
Chris@1 12676 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
Chris@1 12677 as_dirname=dirname
Chris@1 12678 else
Chris@1 12679 as_dirname=false
Chris@1 12680 fi
Chris@1 12681
Chris@1 12682 as_me=`$as_basename -- "$0" ||
Chris@1 12683 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
Chris@1 12684 X"$0" : 'X\(//\)$' \| \
Chris@1 12685 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Chris@1 12686 $as_echo X/"$0" |
Chris@1 12687 sed '/^.*\/\([^/][^/]*\)\/*$/{
Chris@1 12688 s//\1/
Chris@1 12689 q
Chris@1 12690 }
Chris@1 12691 /^X\/\(\/\/\)$/{
Chris@1 12692 s//\1/
Chris@1 12693 q
Chris@1 12694 }
Chris@1 12695 /^X\/\(\/\).*/{
Chris@1 12696 s//\1/
Chris@1 12697 q
Chris@1 12698 }
Chris@1 12699 s/.*/./; q'`
Chris@1 12700
Chris@1 12701 # Avoid depending upon Character Ranges.
Chris@1 12702 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
Chris@1 12703 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
Chris@1 12704 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
Chris@1 12705 as_cr_digits='0123456789'
Chris@1 12706 as_cr_alnum=$as_cr_Letters$as_cr_digits
Chris@1 12707
Chris@1 12708 ECHO_C= ECHO_N= ECHO_T=
Chris@1 12709 case `echo -n x` in #(((((
Chris@1 12710 -n*)
Chris@1 12711 case `echo 'xy\c'` in
Chris@1 12712 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Chris@1 12713 xy) ECHO_C='\c';;
Chris@1 12714 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
Chris@1 12715 ECHO_T=' ';;
Chris@1 12716 esac;;
Chris@1 12717 *)
Chris@1 12718 ECHO_N='-n';;
Chris@1 12719 esac
Chris@1 12720
Chris@1 12721 rm -f conf$$ conf$$.exe conf$$.file
Chris@1 12722 if test -d conf$$.dir; then
Chris@1 12723 rm -f conf$$.dir/conf$$.file
Chris@1 12724 else
Chris@1 12725 rm -f conf$$.dir
Chris@1 12726 mkdir conf$$.dir 2>/dev/null
Chris@1 12727 fi
Chris@1 12728 if (echo >conf$$.file) 2>/dev/null; then
Chris@1 12729 if ln -s conf$$.file conf$$ 2>/dev/null; then
Chris@1 12730 as_ln_s='ln -s'
Chris@1 12731 # ... but there are two gotchas:
Chris@1 12732 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
Chris@1 12733 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Chris@1 12734 # In both cases, we have to default to `cp -p'.
Chris@1 12735 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Chris@1 12736 as_ln_s='cp -p'
Chris@1 12737 elif ln conf$$.file conf$$ 2>/dev/null; then
Chris@1 12738 as_ln_s=ln
Chris@1 12739 else
Chris@1 12740 as_ln_s='cp -p'
Chris@1 12741 fi
Chris@1 12742 else
Chris@1 12743 as_ln_s='cp -p'
Chris@1 12744 fi
Chris@1 12745 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
Chris@1 12746 rmdir conf$$.dir 2>/dev/null
Chris@1 12747
Chris@1 12748
Chris@1 12749 # as_fn_mkdir_p
Chris@1 12750 # -------------
Chris@1 12751 # Create "$as_dir" as a directory, including parents if necessary.
Chris@1 12752 as_fn_mkdir_p ()
Chris@1 12753 {
Chris@1 12754
Chris@1 12755 case $as_dir in #(
Chris@1 12756 -*) as_dir=./$as_dir;;
Chris@1 12757 esac
Chris@1 12758 test -d "$as_dir" || eval $as_mkdir_p || {
Chris@1 12759 as_dirs=
Chris@1 12760 while :; do
Chris@1 12761 case $as_dir in #(
Chris@1 12762 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Chris@1 12763 *) as_qdir=$as_dir;;
Chris@1 12764 esac
Chris@1 12765 as_dirs="'$as_qdir' $as_dirs"
Chris@1 12766 as_dir=`$as_dirname -- "$as_dir" ||
Chris@1 12767 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@1 12768 X"$as_dir" : 'X\(//\)[^/]' \| \
Chris@1 12769 X"$as_dir" : 'X\(//\)$' \| \
Chris@1 12770 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Chris@1 12771 $as_echo X"$as_dir" |
Chris@1 12772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@1 12773 s//\1/
Chris@1 12774 q
Chris@1 12775 }
Chris@1 12776 /^X\(\/\/\)[^/].*/{
Chris@1 12777 s//\1/
Chris@1 12778 q
Chris@1 12779 }
Chris@1 12780 /^X\(\/\/\)$/{
Chris@1 12781 s//\1/
Chris@1 12782 q
Chris@1 12783 }
Chris@1 12784 /^X\(\/\).*/{
Chris@1 12785 s//\1/
Chris@1 12786 q
Chris@1 12787 }
Chris@1 12788 s/.*/./; q'`
Chris@1 12789 test -d "$as_dir" && break
Chris@1 12790 done
Chris@1 12791 test -z "$as_dirs" || eval "mkdir $as_dirs"
Chris@1 12792 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Chris@1 12793
Chris@1 12794
Chris@1 12795 } # as_fn_mkdir_p
Chris@1 12796 if mkdir -p . 2>/dev/null; then
Chris@1 12797 as_mkdir_p='mkdir -p "$as_dir"'
Chris@1 12798 else
Chris@1 12799 test -d ./-p && rmdir ./-p
Chris@1 12800 as_mkdir_p=false
Chris@1 12801 fi
Chris@1 12802
Chris@1 12803 if test -x / >/dev/null 2>&1; then
Chris@1 12804 as_test_x='test -x'
Chris@1 12805 else
Chris@1 12806 if ls -dL / >/dev/null 2>&1; then
Chris@1 12807 as_ls_L_option=L
Chris@1 12808 else
Chris@1 12809 as_ls_L_option=
Chris@1 12810 fi
Chris@1 12811 as_test_x='
Chris@1 12812 eval sh -c '\''
Chris@1 12813 if test -d "$1"; then
Chris@1 12814 test -d "$1/.";
Chris@1 12815 else
Chris@1 12816 case $1 in #(
Chris@1 12817 -*)set "./$1";;
Chris@1 12818 esac;
Chris@1 12819 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Chris@1 12820 ???[sx]*):;;*)false;;esac;fi
Chris@1 12821 '\'' sh
Chris@1 12822 '
Chris@1 12823 fi
Chris@1 12824 as_executable_p=$as_test_x
Chris@1 12825
Chris@1 12826 # Sed expression to map a string onto a valid CPP name.
Chris@1 12827 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Chris@1 12828
Chris@1 12829 # Sed expression to map a string onto a valid variable name.
Chris@1 12830 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Chris@1 12831
Chris@1 12832
Chris@1 12833 exec 6>&1
Chris@1 12834 ## ----------------------------------- ##
Chris@1 12835 ## Main body of $CONFIG_STATUS script. ##
Chris@1 12836 ## ----------------------------------- ##
Chris@1 12837 _ASEOF
Chris@1 12838 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Chris@1 12839
Chris@1 12840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@1 12841 # Save the log message, to keep $0 and so on meaningful, and to
Chris@1 12842 # report actual input values of CONFIG_FILES etc. instead of their
Chris@1 12843 # values after options handling.
Chris@1 12844 ac_log="
Chris@1 12845 This file was extended by $as_me, which was
Chris@1 12846 generated by GNU Autoconf 2.68. Invocation command line was
Chris@1 12847
Chris@1 12848 CONFIG_FILES = $CONFIG_FILES
Chris@1 12849 CONFIG_HEADERS = $CONFIG_HEADERS
Chris@1 12850 CONFIG_LINKS = $CONFIG_LINKS
Chris@1 12851 CONFIG_COMMANDS = $CONFIG_COMMANDS
Chris@1 12852 $ $0 $@
Chris@1 12853
Chris@1 12854 on `(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@1 12855 "
Chris@1 12856
Chris@1 12857 _ACEOF
Chris@1 12858
Chris@1 12859 case $ac_config_files in *"
Chris@1 12860 "*) set x $ac_config_files; shift; ac_config_files=$*;;
Chris@1 12861 esac
Chris@1 12862
Chris@1 12863 case $ac_config_headers in *"
Chris@1 12864 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
Chris@1 12865 esac
Chris@1 12866
Chris@1 12867
Chris@1 12868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@1 12869 # Files that config.status was made for.
Chris@1 12870 config_files="$ac_config_files"
Chris@1 12871 config_headers="$ac_config_headers"
Chris@1 12872 config_commands="$ac_config_commands"
Chris@1 12873
Chris@1 12874 _ACEOF
Chris@1 12875
Chris@1 12876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@1 12877 ac_cs_usage="\
Chris@1 12878 \`$as_me' instantiates files and other configuration actions
Chris@1 12879 from templates according to the current configuration. Unless the files
Chris@1 12880 and actions are specified as TAGs, all are instantiated by default.
Chris@1 12881
Chris@1 12882 Usage: $0 [OPTION]... [TAG]...
Chris@1 12883
Chris@1 12884 -h, --help print this help, then exit
Chris@1 12885 -V, --version print version number and configuration settings, then exit
Chris@1 12886 --config print configuration, then exit
Chris@1 12887 -q, --quiet, --silent
Chris@1 12888 do not print progress messages
Chris@1 12889 -d, --debug don't remove temporary files
Chris@1 12890 --recheck update $as_me by reconfiguring in the same conditions
Chris@1 12891 --file=FILE[:TEMPLATE]
Chris@1 12892 instantiate the configuration file FILE
Chris@1 12893 --header=FILE[:TEMPLATE]
Chris@1 12894 instantiate the configuration header FILE
Chris@1 12895
Chris@1 12896 Configuration files:
Chris@1 12897 $config_files
Chris@1 12898
Chris@1 12899 Configuration headers:
Chris@1 12900 $config_headers
Chris@1 12901
Chris@1 12902 Configuration commands:
Chris@1 12903 $config_commands
Chris@1 12904
Chris@1 12905 Report bugs to the package provider."
Chris@1 12906
Chris@1 12907 _ACEOF
Chris@1 12908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@1 12909 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Chris@1 12910 ac_cs_version="\\
Chris@1 12911 config.status
Chris@1 12912 configured by $0, generated by GNU Autoconf 2.68,
Chris@1 12913 with options \\"\$ac_cs_config\\"
Chris@1 12914
Chris@1 12915 Copyright (C) 2010 Free Software Foundation, Inc.
Chris@1 12916 This config.status script is free software; the Free Software Foundation
Chris@1 12917 gives unlimited permission to copy, distribute and modify it."
Chris@1 12918
Chris@1 12919 ac_pwd='$ac_pwd'
Chris@1 12920 srcdir='$srcdir'
Chris@1 12921 INSTALL='$INSTALL'
Chris@1 12922 MKDIR_P='$MKDIR_P'
Chris@1 12923 AWK='$AWK'
Chris@1 12924 test -n "\$AWK" || AWK=awk
Chris@1 12925 _ACEOF
Chris@1 12926
Chris@1 12927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@1 12928 # The default lists apply if the user does not specify any file.
Chris@1 12929 ac_need_defaults=:
Chris@1 12930 while test $# != 0
Chris@1 12931 do
Chris@1 12932 case $1 in
Chris@1 12933 --*=?*)
Chris@1 12934 ac_option=`expr "X$1" : 'X\([^=]*\)='`
Chris@1 12935 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Chris@1 12936 ac_shift=:
Chris@1 12937 ;;
Chris@1 12938 --*=)
Chris@1 12939 ac_option=`expr "X$1" : 'X\([^=]*\)='`
Chris@1 12940 ac_optarg=
Chris@1 12941 ac_shift=:
Chris@1 12942 ;;
Chris@1 12943 *)
Chris@1 12944 ac_option=$1
Chris@1 12945 ac_optarg=$2
Chris@1 12946 ac_shift=shift
Chris@1 12947 ;;
Chris@1 12948 esac
Chris@1 12949
Chris@1 12950 case $ac_option in
Chris@1 12951 # Handling of the options.
Chris@1 12952 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Chris@1 12953 ac_cs_recheck=: ;;
Chris@1 12954 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Chris@1 12955 $as_echo "$ac_cs_version"; exit ;;
Chris@1 12956 --config | --confi | --conf | --con | --co | --c )
Chris@1 12957 $as_echo "$ac_cs_config"; exit ;;
Chris@1 12958 --debug | --debu | --deb | --de | --d | -d )
Chris@1 12959 debug=: ;;
Chris@1 12960 --file | --fil | --fi | --f )
Chris@1 12961 $ac_shift
Chris@1 12962 case $ac_optarg in
Chris@1 12963 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@1 12964 '') as_fn_error $? "missing file argument" ;;
Chris@1 12965 esac
Chris@1 12966 as_fn_append CONFIG_FILES " '$ac_optarg'"
Chris@1 12967 ac_need_defaults=false;;
Chris@1 12968 --header | --heade | --head | --hea )
Chris@1 12969 $ac_shift
Chris@1 12970 case $ac_optarg in
Chris@1 12971 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@1 12972 esac
Chris@1 12973 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Chris@1 12974 ac_need_defaults=false;;
Chris@1 12975 --he | --h)
Chris@1 12976 # Conflict between --help and --header
Chris@1 12977 as_fn_error $? "ambiguous option: \`$1'
Chris@1 12978 Try \`$0 --help' for more information.";;
Chris@1 12979 --help | --hel | -h )
Chris@1 12980 $as_echo "$ac_cs_usage"; exit ;;
Chris@1 12981 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@1 12982 | -silent | --silent | --silen | --sile | --sil | --si | --s)
Chris@1 12983 ac_cs_silent=: ;;
Chris@1 12984
Chris@1 12985 # This is an error.
Chris@1 12986 -*) as_fn_error $? "unrecognized option: \`$1'
Chris@1 12987 Try \`$0 --help' for more information." ;;
Chris@1 12988
Chris@1 12989 *) as_fn_append ac_config_targets " $1"
Chris@1 12990 ac_need_defaults=false ;;
Chris@1 12991
Chris@1 12992 esac
Chris@1 12993 shift
Chris@1 12994 done
Chris@1 12995
Chris@1 12996 ac_configure_extra_args=
Chris@1 12997
Chris@1 12998 if $ac_cs_silent; then
Chris@1 12999 exec 6>/dev/null
Chris@1 13000 ac_configure_extra_args="$ac_configure_extra_args --silent"
Chris@1 13001 fi
Chris@1 13002
Chris@1 13003 _ACEOF
Chris@1 13004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@1 13005 if \$ac_cs_recheck; then
Chris@1 13006 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Chris@1 13007 shift
Chris@1 13008 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
Chris@1 13009 CONFIG_SHELL='$SHELL'
Chris@1 13010 export CONFIG_SHELL
Chris@1 13011 exec "\$@"
Chris@1 13012 fi
Chris@1 13013
Chris@1 13014 _ACEOF
Chris@1 13015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@1 13016 exec 5>>config.log
Chris@1 13017 {
Chris@1 13018 echo
Chris@1 13019 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
Chris@1 13020 ## Running $as_me. ##
Chris@1 13021 _ASBOX
Chris@1 13022 $as_echo "$ac_log"
Chris@1 13023 } >&5
Chris@1 13024
Chris@1 13025 _ACEOF
Chris@1 13026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@1 13027 #
Chris@1 13028 # INIT-COMMANDS
Chris@1 13029 #
Chris@1 13030 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
Chris@1 13031
Chris@1 13032
Chris@1 13033 # The HP-UX ksh and POSIX shell print the target directory to stdout
Chris@1 13034 # if CDPATH is set.
Chris@1 13035 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@1 13036
Chris@1 13037 sed_quote_subst='$sed_quote_subst'
Chris@1 13038 double_quote_subst='$double_quote_subst'
Chris@1 13039 delay_variable_subst='$delay_variable_subst'
Chris@1 13040 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
Chris@1 13041 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
Chris@1 13042 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
Chris@1 13043 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
Chris@1 13044 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
Chris@1 13045 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
Chris@1 13046 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
Chris@1 13047 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
Chris@1 13048 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
Chris@1 13049 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
Chris@1 13050 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
Chris@1 13051 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
Chris@1 13052 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
Chris@1 13053 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
Chris@1 13054 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
Chris@1 13055 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
Chris@1 13056 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
Chris@1 13057 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
Chris@1 13058 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
Chris@1 13059 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
Chris@1 13060 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
Chris@1 13061 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
Chris@1 13062 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
Chris@1 13063 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
Chris@1 13064 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
Chris@1 13065 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
Chris@1 13066 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
Chris@1 13067 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
Chris@1 13068 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
Chris@1 13069 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
Chris@1 13070 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
Chris@1 13071 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13072 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
Chris@1 13073 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
Chris@1 13074 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
Chris@1 13075 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
Chris@1 13076 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
Chris@1 13077 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
Chris@1 13078 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
Chris@1 13079 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
Chris@1 13080 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
Chris@1 13081 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
Chris@1 13082 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
Chris@1 13083 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
Chris@1 13084 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13085 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13086 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13087 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
Chris@1 13088 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
Chris@1 13089 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
Chris@1 13090 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
Chris@1 13091 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
Chris@1 13092 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
Chris@1 13093 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
Chris@1 13094 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 13095 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 13096 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
Chris@1 13097 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
Chris@1 13098 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
Chris@1 13099 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
Chris@1 13100 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
Chris@1 13101 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
Chris@1 13102 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
Chris@1 13103 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
Chris@1 13104 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
Chris@1 13105 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
Chris@1 13106 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
Chris@1 13107 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
Chris@1 13108 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
Chris@1 13109 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
Chris@1 13110 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
Chris@1 13111 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
Chris@1 13112 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
Chris@1 13113 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13114 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13115 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
Chris@1 13116 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
Chris@1 13117 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
Chris@1 13118 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
Chris@1 13119 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
Chris@1 13120 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13121 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13122 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13123 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13124 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13125 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13126 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
Chris@1 13127 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
Chris@1 13128 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
Chris@1 13129 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
Chris@1 13130 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
Chris@1 13131 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
Chris@1 13132 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
Chris@1 13133 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
Chris@1 13134 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
Chris@1 13135 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
Chris@1 13136 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
Chris@1 13137 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
Chris@1 13138 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
Chris@1 13139 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
Chris@1 13140 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13141 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
Chris@1 13142 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
Chris@1 13143 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13144 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13145 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
Chris@1 13146 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
Chris@1 13147 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
Chris@1 13148 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
Chris@1 13149 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
Chris@1 13150 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
Chris@1 13151 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
Chris@1 13152 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
Chris@1 13153 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
Chris@1 13154 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
Chris@1 13155 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
Chris@1 13156 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
Chris@1 13157 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13158 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13159 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
Chris@1 13160 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
Chris@1 13161 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
Chris@1 13162 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
Chris@1 13163 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
Chris@1 13164 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
Chris@1 13165 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
Chris@1 13166 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
Chris@1 13167 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
Chris@1 13168 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
Chris@1 13169 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
Chris@1 13170
Chris@1 13171 LTCC='$LTCC'
Chris@1 13172 LTCFLAGS='$LTCFLAGS'
Chris@1 13173 compiler='$compiler_DEFAULT'
Chris@1 13174
Chris@1 13175 # A function that is used when there is no print builtin or printf.
Chris@1 13176 func_fallback_echo ()
Chris@1 13177 {
Chris@1 13178 eval 'cat <<_LTECHO_EOF
Chris@1 13179 \$1
Chris@1 13180 _LTECHO_EOF'
Chris@1 13181 }
Chris@1 13182
Chris@1 13183 # Quote evaled strings.
Chris@1 13184 for var in SHELL \
Chris@1 13185 ECHO \
Chris@1 13186 SED \
Chris@1 13187 GREP \
Chris@1 13188 EGREP \
Chris@1 13189 FGREP \
Chris@1 13190 LD \
Chris@1 13191 NM \
Chris@1 13192 LN_S \
Chris@1 13193 lt_SP2NL \
Chris@1 13194 lt_NL2SP \
Chris@1 13195 reload_flag \
Chris@1 13196 OBJDUMP \
Chris@1 13197 deplibs_check_method \
Chris@1 13198 file_magic_cmd \
Chris@1 13199 file_magic_glob \
Chris@1 13200 want_nocaseglob \
Chris@1 13201 DLLTOOL \
Chris@1 13202 sharedlib_from_linklib_cmd \
Chris@1 13203 AR \
Chris@1 13204 AR_FLAGS \
Chris@1 13205 archiver_list_spec \
Chris@1 13206 STRIP \
Chris@1 13207 RANLIB \
Chris@1 13208 CC \
Chris@1 13209 CFLAGS \
Chris@1 13210 compiler \
Chris@1 13211 lt_cv_sys_global_symbol_pipe \
Chris@1 13212 lt_cv_sys_global_symbol_to_cdecl \
Chris@1 13213 lt_cv_sys_global_symbol_to_c_name_address \
Chris@1 13214 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Chris@1 13215 nm_file_list_spec \
Chris@1 13216 lt_prog_compiler_no_builtin_flag \
Chris@1 13217 lt_prog_compiler_pic \
Chris@1 13218 lt_prog_compiler_wl \
Chris@1 13219 lt_prog_compiler_static \
Chris@1 13220 lt_cv_prog_compiler_c_o \
Chris@1 13221 need_locks \
Chris@1 13222 MANIFEST_TOOL \
Chris@1 13223 DSYMUTIL \
Chris@1 13224 NMEDIT \
Chris@1 13225 LIPO \
Chris@1 13226 OTOOL \
Chris@1 13227 OTOOL64 \
Chris@1 13228 shrext_cmds \
Chris@1 13229 export_dynamic_flag_spec \
Chris@1 13230 whole_archive_flag_spec \
Chris@1 13231 compiler_needs_object \
Chris@1 13232 with_gnu_ld \
Chris@1 13233 allow_undefined_flag \
Chris@1 13234 no_undefined_flag \
Chris@1 13235 hardcode_libdir_flag_spec \
Chris@1 13236 hardcode_libdir_flag_spec_ld \
Chris@1 13237 hardcode_libdir_separator \
Chris@1 13238 exclude_expsyms \
Chris@1 13239 include_expsyms \
Chris@1 13240 file_list_spec \
Chris@1 13241 variables_saved_for_relink \
Chris@1 13242 libname_spec \
Chris@1 13243 library_names_spec \
Chris@1 13244 soname_spec \
Chris@1 13245 install_override_mode \
Chris@1 13246 finish_eval \
Chris@1 13247 old_striplib \
Chris@1 13248 striplib; do
Chris@1 13249 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Chris@1 13250 *[\\\\\\\`\\"\\\$]*)
Chris@1 13251 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
Chris@1 13252 ;;
Chris@1 13253 *)
Chris@1 13254 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
Chris@1 13255 ;;
Chris@1 13256 esac
Chris@1 13257 done
Chris@1 13258
Chris@1 13259 # Double-quote double-evaled strings.
Chris@1 13260 for var in reload_cmds \
Chris@1 13261 old_postinstall_cmds \
Chris@1 13262 old_postuninstall_cmds \
Chris@1 13263 old_archive_cmds \
Chris@1 13264 extract_expsyms_cmds \
Chris@1 13265 old_archive_from_new_cmds \
Chris@1 13266 old_archive_from_expsyms_cmds \
Chris@1 13267 archive_cmds \
Chris@1 13268 archive_expsym_cmds \
Chris@1 13269 module_cmds \
Chris@1 13270 module_expsym_cmds \
Chris@1 13271 export_symbols_cmds \
Chris@1 13272 prelink_cmds \
Chris@1 13273 postlink_cmds \
Chris@1 13274 postinstall_cmds \
Chris@1 13275 postuninstall_cmds \
Chris@1 13276 finish_cmds \
Chris@1 13277 sys_lib_search_path_spec \
Chris@1 13278 sys_lib_dlsearch_path_spec; do
Chris@1 13279 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Chris@1 13280 *[\\\\\\\`\\"\\\$]*)
Chris@1 13281 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
Chris@1 13282 ;;
Chris@1 13283 *)
Chris@1 13284 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
Chris@1 13285 ;;
Chris@1 13286 esac
Chris@1 13287 done
Chris@1 13288
Chris@1 13289 ac_aux_dir='$ac_aux_dir'
Chris@1 13290 xsi_shell='$xsi_shell'
Chris@1 13291 lt_shell_append='$lt_shell_append'
Chris@1 13292
Chris@1 13293 # See if we are running on zsh, and set the options which allow our
Chris@1 13294 # commands through without removal of \ escapes INIT.
Chris@1 13295 if test -n "\${ZSH_VERSION+set}" ; then
Chris@1 13296 setopt NO_GLOB_SUBST
Chris@1 13297 fi
Chris@1 13298
Chris@1 13299
Chris@1 13300 PACKAGE='$PACKAGE'
Chris@1 13301 VERSION='$VERSION'
Chris@1 13302 TIMESTAMP='$TIMESTAMP'
Chris@1 13303 RM='$RM'
Chris@1 13304 ofile='$ofile'
Chris@1 13305
Chris@1 13306
Chris@1 13307
Chris@1 13308
Chris@1 13309 _ACEOF
Chris@1 13310
Chris@1 13311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@1 13312
Chris@1 13313 # Handling of arguments.
Chris@1 13314 for ac_config_target in $ac_config_targets
Chris@1 13315 do
Chris@1 13316 case $ac_config_target in
Chris@1 13317 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Chris@1 13318 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Chris@1 13319 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
Chris@1 13320 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Chris@1 13321 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
Chris@1 13322 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
Chris@1 13323 "doc/libogg/Makefile") CONFIG_FILES="$CONFIG_FILES doc/libogg/Makefile" ;;
Chris@1 13324 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
Chris@1 13325 "include/ogg/Makefile") CONFIG_FILES="$CONFIG_FILES include/ogg/Makefile" ;;
Chris@1 13326 "include/ogg/config_types.h") CONFIG_FILES="$CONFIG_FILES include/ogg/config_types.h" ;;
Chris@1 13327 "libogg.spec") CONFIG_FILES="$CONFIG_FILES libogg.spec" ;;
Chris@1 13328 "ogg.pc") CONFIG_FILES="$CONFIG_FILES ogg.pc" ;;
Chris@1 13329 "ogg-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES ogg-uninstalled.pc" ;;
Chris@1 13330
Chris@1 13331 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Chris@1 13332 esac
Chris@1 13333 done
Chris@1 13334
Chris@1 13335
Chris@1 13336 # If the user did not use the arguments to specify the items to instantiate,
Chris@1 13337 # then the envvar interface is used. Set only those that are not.
Chris@1 13338 # We use the long form for the default assignment because of an extremely
Chris@1 13339 # bizarre bug on SunOS 4.1.3.
Chris@1 13340 if $ac_need_defaults; then
Chris@1 13341 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Chris@1 13342 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Chris@1 13343 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
Chris@1 13344 fi
Chris@1 13345
Chris@1 13346 # Have a temporary directory for convenience. Make it in the build tree
Chris@1 13347 # simply because there is no reason against having it here, and in addition,
Chris@1 13348 # creating and moving files from /tmp can sometimes cause problems.
Chris@1 13349 # Hook for its removal unless debugging.
Chris@1 13350 # Note that there is a small window in which the directory will not be cleaned:
Chris@1 13351 # after its creation but before its name has been assigned to `$tmp'.
Chris@1 13352 $debug ||
Chris@1 13353 {
Chris@1 13354 tmp= ac_tmp=
Chris@1 13355 trap 'exit_status=$?
Chris@1 13356 : "${ac_tmp:=$tmp}"
Chris@1 13357 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Chris@1 13358 ' 0
Chris@1 13359 trap 'as_fn_exit 1' 1 2 13 15
Chris@1 13360 }
Chris@1 13361 # Create a (secure) tmp directory for tmp files.
Chris@1 13362
Chris@1 13363 {
Chris@1 13364 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Chris@1 13365 test -d "$tmp"
Chris@1 13366 } ||
Chris@1 13367 {
Chris@1 13368 tmp=./conf$$-$RANDOM
Chris@1 13369 (umask 077 && mkdir "$tmp")
Chris@1 13370 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Chris@1 13371 ac_tmp=$tmp
Chris@1 13372
Chris@1 13373 # Set up the scripts for CONFIG_FILES section.
Chris@1 13374 # No need to generate them if there are no CONFIG_FILES.
Chris@1 13375 # This happens for instance with `./config.status config.h'.
Chris@1 13376 if test -n "$CONFIG_FILES"; then
Chris@1 13377
Chris@1 13378
Chris@1 13379 ac_cr=`echo X | tr X '\015'`
Chris@1 13380 # On cygwin, bash can eat \r inside `` if the user requested igncr.
Chris@1 13381 # But we know of no other shell where ac_cr would be empty at this
Chris@1 13382 # point, so we can use a bashism as a fallback.
Chris@1 13383 if test "x$ac_cr" = x; then
Chris@1 13384 eval ac_cr=\$\'\\r\'
Chris@1 13385 fi
Chris@1 13386 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
Chris@1 13387 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Chris@1 13388 ac_cs_awk_cr='\\r'
Chris@1 13389 else
Chris@1 13390 ac_cs_awk_cr=$ac_cr
Chris@1 13391 fi
Chris@1 13392
Chris@1 13393 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Chris@1 13394 _ACEOF
Chris@1 13395
Chris@1 13396
Chris@1 13397 {
Chris@1 13398 echo "cat >conf$$subs.awk <<_ACEOF" &&
Chris@1 13399 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
Chris@1 13400 echo "_ACEOF"
Chris@1 13401 } >conf$$subs.sh ||
Chris@1 13402 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@1 13403 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Chris@1 13404 ac_delim='%!_!# '
Chris@1 13405 for ac_last_try in false false false false false :; do
Chris@1 13406 . ./conf$$subs.sh ||
Chris@1 13407 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@1 13408
Chris@1 13409 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
Chris@1 13410 if test $ac_delim_n = $ac_delim_num; then
Chris@1 13411 break
Chris@1 13412 elif $ac_last_try; then
Chris@1 13413 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@1 13414 else
Chris@1 13415 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Chris@1 13416 fi
Chris@1 13417 done
Chris@1 13418 rm -f conf$$subs.sh
Chris@1 13419
Chris@1 13420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@1 13421 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Chris@1 13422 _ACEOF
Chris@1 13423 sed -n '
Chris@1 13424 h
Chris@1 13425 s/^/S["/; s/!.*/"]=/
Chris@1 13426 p
Chris@1 13427 g
Chris@1 13428 s/^[^!]*!//
Chris@1 13429 :repl
Chris@1 13430 t repl
Chris@1 13431 s/'"$ac_delim"'$//
Chris@1 13432 t delim
Chris@1 13433 :nl
Chris@1 13434 h
Chris@1 13435 s/\(.\{148\}\)..*/\1/
Chris@1 13436 t more1
Chris@1 13437 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
Chris@1 13438 p
Chris@1 13439 n
Chris@1 13440 b repl
Chris@1 13441 :more1
Chris@1 13442 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
Chris@1 13443 p
Chris@1 13444 g
Chris@1 13445 s/.\{148\}//
Chris@1 13446 t nl
Chris@1 13447 :delim
Chris@1 13448 h
Chris@1 13449 s/\(.\{148\}\)..*/\1/
Chris@1 13450 t more2
Chris@1 13451 s/["\\]/\\&/g; s/^/"/; s/$/"/
Chris@1 13452 p
Chris@1 13453 b
Chris@1 13454 :more2
Chris@1 13455 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
Chris@1 13456 p
Chris@1 13457 g
Chris@1 13458 s/.\{148\}//
Chris@1 13459 t delim
Chris@1 13460 ' <conf$$subs.awk | sed '
Chris@1 13461 /^[^""]/{
Chris@1 13462 N
Chris@1 13463 s/\n//
Chris@1 13464 }
Chris@1 13465 ' >>$CONFIG_STATUS || ac_write_fail=1
Chris@1 13466 rm -f conf$$subs.awk
Chris@1 13467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@1 13468 _ACAWK
Chris@1 13469 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Chris@1 13470 for (key in S) S_is_set[key] = 1
Chris@1 13471 FS = ""
Chris@1 13472
Chris@1 13473 }
Chris@1 13474 {
Chris@1 13475 line = $ 0
Chris@1 13476 nfields = split(line, field, "@")
Chris@1 13477 substed = 0
Chris@1 13478 len = length(field[1])
Chris@1 13479 for (i = 2; i < nfields; i++) {
Chris@1 13480 key = field[i]
Chris@1 13481 keylen = length(key)
Chris@1 13482 if (S_is_set[key]) {
Chris@1 13483 value = S[key]
Chris@1 13484 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
Chris@1 13485 len += length(value) + length(field[++i])
Chris@1 13486 substed = 1
Chris@1 13487 } else
Chris@1 13488 len += 1 + keylen
Chris@1 13489 }
Chris@1 13490
Chris@1 13491 print line
Chris@1 13492 }
Chris@1 13493
Chris@1 13494 _ACAWK
Chris@1 13495 _ACEOF
Chris@1 13496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@1 13497 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
Chris@1 13498 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
Chris@1 13499 else
Chris@1 13500 cat
Chris@1 13501 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
Chris@1 13502 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Chris@1 13503 _ACEOF
Chris@1 13504
Chris@1 13505 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
Chris@1 13506 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Chris@1 13507 # trailing colons and then remove the whole line if VPATH becomes empty
Chris@1 13508 # (actually we leave an empty line to preserve line numbers).
Chris@1 13509 if test "x$srcdir" = x.; then
Chris@1 13510 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
Chris@1 13511 h
Chris@1 13512 s///
Chris@1 13513 s/^/:/
Chris@1 13514 s/[ ]*$/:/
Chris@1 13515 s/:\$(srcdir):/:/g
Chris@1 13516 s/:\${srcdir}:/:/g
Chris@1 13517 s/:@srcdir@:/:/g
Chris@1 13518 s/^:*//
Chris@1 13519 s/:*$//
Chris@1 13520 x
Chris@1 13521 s/\(=[ ]*\).*/\1/
Chris@1 13522 G
Chris@1 13523 s/\n//
Chris@1 13524 s/^[^=]*=[ ]*$//
Chris@1 13525 }'
Chris@1 13526 fi
Chris@1 13527
Chris@1 13528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@1 13529 fi # test -n "$CONFIG_FILES"
Chris@1 13530
Chris@1 13531 # Set up the scripts for CONFIG_HEADERS section.
Chris@1 13532 # No need to generate them if there are no CONFIG_HEADERS.
Chris@1 13533 # This happens for instance with `./config.status Makefile'.
Chris@1 13534 if test -n "$CONFIG_HEADERS"; then
Chris@1 13535 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Chris@1 13536 BEGIN {
Chris@1 13537 _ACEOF
Chris@1 13538
Chris@1 13539 # Transform confdefs.h into an awk script `defines.awk', embedded as
Chris@1 13540 # here-document in config.status, that substitutes the proper values into
Chris@1 13541 # config.h.in to produce config.h.
Chris@1 13542
Chris@1 13543 # Create a delimiter string that does not exist in confdefs.h, to ease
Chris@1 13544 # handling of long lines.
Chris@1 13545 ac_delim='%!_!# '
Chris@1 13546 for ac_last_try in false false :; do
Chris@1 13547 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
Chris@1 13548 if test -z "$ac_tt"; then
Chris@1 13549 break
Chris@1 13550 elif $ac_last_try; then
Chris@1 13551 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Chris@1 13552 else
Chris@1 13553 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Chris@1 13554 fi
Chris@1 13555 done
Chris@1 13556
Chris@1 13557 # For the awk script, D is an array of macro values keyed by name,
Chris@1 13558 # likewise P contains macro parameters if any. Preserve backslash
Chris@1 13559 # newline sequences.
Chris@1 13560
Chris@1 13561 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
Chris@1 13562 sed -n '
Chris@1 13563 s/.\{148\}/&'"$ac_delim"'/g
Chris@1 13564 t rset
Chris@1 13565 :rset
Chris@1 13566 s/^[ ]*#[ ]*define[ ][ ]*/ /
Chris@1 13567 t def
Chris@1 13568 d
Chris@1 13569 :def
Chris@1 13570 s/\\$//
Chris@1 13571 t bsnl
Chris@1 13572 s/["\\]/\\&/g
Chris@1 13573 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
Chris@1 13574 D["\1"]=" \3"/p
Chris@1 13575 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
Chris@1 13576 d
Chris@1 13577 :bsnl
Chris@1 13578 s/["\\]/\\&/g
Chris@1 13579 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
Chris@1 13580 D["\1"]=" \3\\\\\\n"\\/p
Chris@1 13581 t cont
Chris@1 13582 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
Chris@1 13583 t cont
Chris@1 13584 d
Chris@1 13585 :cont
Chris@1 13586 n
Chris@1 13587 s/.\{148\}/&'"$ac_delim"'/g
Chris@1 13588 t clear
Chris@1 13589 :clear
Chris@1 13590 s/\\$//
Chris@1 13591 t bsnlc
Chris@1 13592 s/["\\]/\\&/g; s/^/"/; s/$/"/p
Chris@1 13593 d
Chris@1 13594 :bsnlc
Chris@1 13595 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
Chris@1 13596 b cont
Chris@1 13597 ' <confdefs.h | sed '
Chris@1 13598 s/'"$ac_delim"'/"\\\
Chris@1 13599 "/g' >>$CONFIG_STATUS || ac_write_fail=1
Chris@1 13600
Chris@1 13601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@1 13602 for (key in D) D_is_set[key] = 1
Chris@1 13603 FS = ""
Chris@1 13604 }
Chris@1 13605 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
Chris@1 13606 line = \$ 0
Chris@1 13607 split(line, arg, " ")
Chris@1 13608 if (arg[1] == "#") {
Chris@1 13609 defundef = arg[2]
Chris@1 13610 mac1 = arg[3]
Chris@1 13611 } else {
Chris@1 13612 defundef = substr(arg[1], 2)
Chris@1 13613 mac1 = arg[2]
Chris@1 13614 }
Chris@1 13615 split(mac1, mac2, "(") #)
Chris@1 13616 macro = mac2[1]
Chris@1 13617 prefix = substr(line, 1, index(line, defundef) - 1)
Chris@1 13618 if (D_is_set[macro]) {
Chris@1 13619 # Preserve the white space surrounding the "#".
Chris@1 13620 print prefix "define", macro P[macro] D[macro]
Chris@1 13621 next
Chris@1 13622 } else {
Chris@1 13623 # Replace #undef with comments. This is necessary, for example,
Chris@1 13624 # in the case of _POSIX_SOURCE, which is predefined and required
Chris@1 13625 # on some systems where configure will not decide to define it.
Chris@1 13626 if (defundef == "undef") {
Chris@1 13627 print "/*", prefix defundef, macro, "*/"
Chris@1 13628 next
Chris@1 13629 }
Chris@1 13630 }
Chris@1 13631 }
Chris@1 13632 { print }
Chris@1 13633 _ACAWK
Chris@1 13634 _ACEOF
Chris@1 13635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@1 13636 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Chris@1 13637 fi # test -n "$CONFIG_HEADERS"
Chris@1 13638
Chris@1 13639
Chris@1 13640 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Chris@1 13641 shift
Chris@1 13642 for ac_tag
Chris@1 13643 do
Chris@1 13644 case $ac_tag in
Chris@1 13645 :[FHLC]) ac_mode=$ac_tag; continue;;
Chris@1 13646 esac
Chris@1 13647 case $ac_mode$ac_tag in
Chris@1 13648 :[FHL]*:*);;
Chris@1 13649 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Chris@1 13650 :[FH]-) ac_tag=-:-;;
Chris@1 13651 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
Chris@1 13652 esac
Chris@1 13653 ac_save_IFS=$IFS
Chris@1 13654 IFS=:
Chris@1 13655 set x $ac_tag
Chris@1 13656 IFS=$ac_save_IFS
Chris@1 13657 shift
Chris@1 13658 ac_file=$1
Chris@1 13659 shift
Chris@1 13660
Chris@1 13661 case $ac_mode in
Chris@1 13662 :L) ac_source=$1;;
Chris@1 13663 :[FH])
Chris@1 13664 ac_file_inputs=
Chris@1 13665 for ac_f
Chris@1 13666 do
Chris@1 13667 case $ac_f in
Chris@1 13668 -) ac_f="$ac_tmp/stdin";;
Chris@1 13669 *) # Look for the file first in the build tree, then in the source tree
Chris@1 13670 # (if the path is not absolute). The absolute path cannot be DOS-style,
Chris@1 13671 # because $ac_f cannot contain `:'.
Chris@1 13672 test -f "$ac_f" ||
Chris@1 13673 case $ac_f in
Chris@1 13674 [\\/$]*) false;;
Chris@1 13675 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
Chris@1 13676 esac ||
Chris@1 13677 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Chris@1 13678 esac
Chris@1 13679 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Chris@1 13680 as_fn_append ac_file_inputs " '$ac_f'"
Chris@1 13681 done
Chris@1 13682
Chris@1 13683 # Let's still pretend it is `configure' which instantiates (i.e., don't
Chris@1 13684 # use $as_me), people would be surprised to read:
Chris@1 13685 # /* config.h. Generated by config.status. */
Chris@1 13686 configure_input='Generated from '`
Chris@1 13687 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
Chris@1 13688 `' by configure.'
Chris@1 13689 if test x"$ac_file" != x-; then
Chris@1 13690 configure_input="$ac_file. $configure_input"
Chris@1 13691 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Chris@1 13692 $as_echo "$as_me: creating $ac_file" >&6;}
Chris@1 13693 fi
Chris@1 13694 # Neutralize special characters interpreted by sed in replacement strings.
Chris@1 13695 case $configure_input in #(
Chris@1 13696 *\&* | *\|* | *\\* )
Chris@1 13697 ac_sed_conf_input=`$as_echo "$configure_input" |
Chris@1 13698 sed 's/[\\\\&|]/\\\\&/g'`;; #(
Chris@1 13699 *) ac_sed_conf_input=$configure_input;;
Chris@1 13700 esac
Chris@1 13701
Chris@1 13702 case $ac_tag in
Chris@1 13703 *:-:* | *:-) cat >"$ac_tmp/stdin" \
Chris@1 13704 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Chris@1 13705 esac
Chris@1 13706 ;;
Chris@1 13707 esac
Chris@1 13708
Chris@1 13709 ac_dir=`$as_dirname -- "$ac_file" ||
Chris@1 13710 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@1 13711 X"$ac_file" : 'X\(//\)[^/]' \| \
Chris@1 13712 X"$ac_file" : 'X\(//\)$' \| \
Chris@1 13713 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Chris@1 13714 $as_echo X"$ac_file" |
Chris@1 13715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@1 13716 s//\1/
Chris@1 13717 q
Chris@1 13718 }
Chris@1 13719 /^X\(\/\/\)[^/].*/{
Chris@1 13720 s//\1/
Chris@1 13721 q
Chris@1 13722 }
Chris@1 13723 /^X\(\/\/\)$/{
Chris@1 13724 s//\1/
Chris@1 13725 q
Chris@1 13726 }
Chris@1 13727 /^X\(\/\).*/{
Chris@1 13728 s//\1/
Chris@1 13729 q
Chris@1 13730 }
Chris@1 13731 s/.*/./; q'`
Chris@1 13732 as_dir="$ac_dir"; as_fn_mkdir_p
Chris@1 13733 ac_builddir=.
Chris@1 13734
Chris@1 13735 case "$ac_dir" in
Chris@1 13736 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@1 13737 *)
Chris@1 13738 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Chris@1 13739 # A ".." for each directory in $ac_dir_suffix.
Chris@1 13740 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Chris@1 13741 case $ac_top_builddir_sub in
Chris@1 13742 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@1 13743 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
Chris@1 13744 esac ;;
Chris@1 13745 esac
Chris@1 13746 ac_abs_top_builddir=$ac_pwd
Chris@1 13747 ac_abs_builddir=$ac_pwd$ac_dir_suffix
Chris@1 13748 # for backward compatibility:
Chris@1 13749 ac_top_builddir=$ac_top_build_prefix
Chris@1 13750
Chris@1 13751 case $srcdir in
Chris@1 13752 .) # We are building in place.
Chris@1 13753 ac_srcdir=.
Chris@1 13754 ac_top_srcdir=$ac_top_builddir_sub
Chris@1 13755 ac_abs_top_srcdir=$ac_pwd ;;
Chris@1 13756 [\\/]* | ?:[\\/]* ) # Absolute name.
Chris@1 13757 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@1 13758 ac_top_srcdir=$srcdir
Chris@1 13759 ac_abs_top_srcdir=$srcdir ;;
Chris@1 13760 *) # Relative name.
Chris@1 13761 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
Chris@1 13762 ac_top_srcdir=$ac_top_build_prefix$srcdir
Chris@1 13763 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Chris@1 13764 esac
Chris@1 13765 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Chris@1 13766
Chris@1 13767
Chris@1 13768 case $ac_mode in
Chris@1 13769 :F)
Chris@1 13770 #
Chris@1 13771 # CONFIG_FILE
Chris@1 13772 #
Chris@1 13773
Chris@1 13774 case $INSTALL in
Chris@1 13775 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Chris@1 13776 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Chris@1 13777 esac
Chris@1 13778 ac_MKDIR_P=$MKDIR_P
Chris@1 13779 case $MKDIR_P in
Chris@1 13780 [\\/$]* | ?:[\\/]* ) ;;
Chris@1 13781 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
Chris@1 13782 esac
Chris@1 13783 _ACEOF
Chris@1 13784
Chris@1 13785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@1 13786 # If the template does not know about datarootdir, expand it.
Chris@1 13787 # FIXME: This hack should be removed a few years after 2.60.
Chris@1 13788 ac_datarootdir_hack=; ac_datarootdir_seen=
Chris@1 13789 ac_sed_dataroot='
Chris@1 13790 /datarootdir/ {
Chris@1 13791 p
Chris@1 13792 q
Chris@1 13793 }
Chris@1 13794 /@datadir@/p
Chris@1 13795 /@docdir@/p
Chris@1 13796 /@infodir@/p
Chris@1 13797 /@localedir@/p
Chris@1 13798 /@mandir@/p'
Chris@1 13799 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Chris@1 13800 *datarootdir*) ac_datarootdir_seen=yes;;
Chris@1 13801 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Chris@1 13802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
Chris@1 13803 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Chris@1 13804 _ACEOF
Chris@1 13805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@1 13806 ac_datarootdir_hack='
Chris@1 13807 s&@datadir@&$datadir&g
Chris@1 13808 s&@docdir@&$docdir&g
Chris@1 13809 s&@infodir@&$infodir&g
Chris@1 13810 s&@localedir@&$localedir&g
Chris@1 13811 s&@mandir@&$mandir&g
Chris@1 13812 s&\\\${datarootdir}&$datarootdir&g' ;;
Chris@1 13813 esac
Chris@1 13814 _ACEOF
Chris@1 13815
Chris@1 13816 # Neutralize VPATH when `$srcdir' = `.'.
Chris@1 13817 # Shell code in configure.ac might set extrasub.
Chris@1 13818 # FIXME: do we really want to maintain this feature?
Chris@1 13819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@1 13820 ac_sed_extra="$ac_vpsub
Chris@1 13821 $extrasub
Chris@1 13822 _ACEOF
Chris@1 13823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@1 13824 :t
Chris@1 13825 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Chris@1 13826 s|@configure_input@|$ac_sed_conf_input|;t t
Chris@1 13827 s&@top_builddir@&$ac_top_builddir_sub&;t t
Chris@1 13828 s&@top_build_prefix@&$ac_top_build_prefix&;t t
Chris@1 13829 s&@srcdir@&$ac_srcdir&;t t
Chris@1 13830 s&@abs_srcdir@&$ac_abs_srcdir&;t t
Chris@1 13831 s&@top_srcdir@&$ac_top_srcdir&;t t
Chris@1 13832 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
Chris@1 13833 s&@builddir@&$ac_builddir&;t t
Chris@1 13834 s&@abs_builddir@&$ac_abs_builddir&;t t
Chris@1 13835 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Chris@1 13836 s&@INSTALL@&$ac_INSTALL&;t t
Chris@1 13837 s&@MKDIR_P@&$ac_MKDIR_P&;t t
Chris@1 13838 $ac_datarootdir_hack
Chris@1 13839 "
Chris@1 13840 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
Chris@1 13841 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@1 13842
Chris@1 13843 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Chris@1 13844 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
Chris@1 13845 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
Chris@1 13846 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Chris@1 13847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Chris@1 13848 which seems to be undefined. Please make sure it is defined" >&5
Chris@1 13849 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Chris@1 13850 which seems to be undefined. Please make sure it is defined" >&2;}
Chris@1 13851
Chris@1 13852 rm -f "$ac_tmp/stdin"
Chris@1 13853 case $ac_file in
Chris@1 13854 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
Chris@1 13855 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Chris@1 13856 esac \
Chris@1 13857 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@1 13858 ;;
Chris@1 13859 :H)
Chris@1 13860 #
Chris@1 13861 # CONFIG_HEADER
Chris@1 13862 #
Chris@1 13863 if test x"$ac_file" != x-; then
Chris@1 13864 {
Chris@1 13865 $as_echo "/* $configure_input */" \
Chris@1 13866 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
Chris@1 13867 } >"$ac_tmp/config.h" \
Chris@1 13868 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@1 13869 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Chris@1 13870 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Chris@1 13871 $as_echo "$as_me: $ac_file is unchanged" >&6;}
Chris@1 13872 else
Chris@1 13873 rm -f "$ac_file"
Chris@1 13874 mv "$ac_tmp/config.h" "$ac_file" \
Chris@1 13875 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@1 13876 fi
Chris@1 13877 else
Chris@1 13878 $as_echo "/* $configure_input */" \
Chris@1 13879 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
Chris@1 13880 || as_fn_error $? "could not create -" "$LINENO" 5
Chris@1 13881 fi
Chris@1 13882 # Compute "$ac_file"'s index in $config_headers.
Chris@1 13883 _am_arg="$ac_file"
Chris@1 13884 _am_stamp_count=1
Chris@1 13885 for _am_header in $config_headers :; do
Chris@1 13886 case $_am_header in
Chris@1 13887 $_am_arg | $_am_arg:* )
Chris@1 13888 break ;;
Chris@1 13889 * )
Chris@1 13890 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
Chris@1 13891 esac
Chris@1 13892 done
Chris@1 13893 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
Chris@1 13894 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@1 13895 X"$_am_arg" : 'X\(//\)[^/]' \| \
Chris@1 13896 X"$_am_arg" : 'X\(//\)$' \| \
Chris@1 13897 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
Chris@1 13898 $as_echo X"$_am_arg" |
Chris@1 13899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@1 13900 s//\1/
Chris@1 13901 q
Chris@1 13902 }
Chris@1 13903 /^X\(\/\/\)[^/].*/{
Chris@1 13904 s//\1/
Chris@1 13905 q
Chris@1 13906 }
Chris@1 13907 /^X\(\/\/\)$/{
Chris@1 13908 s//\1/
Chris@1 13909 q
Chris@1 13910 }
Chris@1 13911 /^X\(\/\).*/{
Chris@1 13912 s//\1/
Chris@1 13913 q
Chris@1 13914 }
Chris@1 13915 s/.*/./; q'`/stamp-h$_am_stamp_count
Chris@1 13916 ;;
Chris@1 13917
Chris@1 13918 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Chris@1 13919 $as_echo "$as_me: executing $ac_file commands" >&6;}
Chris@1 13920 ;;
Chris@1 13921 esac
Chris@1 13922
Chris@1 13923
Chris@1 13924 case $ac_file$ac_mode in
Chris@1 13925 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
Chris@1 13926 # Autoconf 2.62 quotes --file arguments for eval, but not when files
Chris@1 13927 # are listed without --file. Let's play safe and only enable the eval
Chris@1 13928 # if we detect the quoting.
Chris@1 13929 case $CONFIG_FILES in
Chris@1 13930 *\'*) eval set x "$CONFIG_FILES" ;;
Chris@1 13931 *) set x $CONFIG_FILES ;;
Chris@1 13932 esac
Chris@1 13933 shift
Chris@1 13934 for mf
Chris@1 13935 do
Chris@1 13936 # Strip MF so we end up with the name of the file.
Chris@1 13937 mf=`echo "$mf" | sed -e 's/:.*$//'`
Chris@1 13938 # Check whether this is an Automake generated Makefile or not.
Chris@1 13939 # We used to match only the files named `Makefile.in', but
Chris@1 13940 # some people rename them; so instead we look at the file content.
Chris@1 13941 # Grep'ing the first line is not enough: some people post-process
Chris@1 13942 # each Makefile.in and add a new line on top of each file to say so.
Chris@1 13943 # Grep'ing the whole file is not good either: AIX grep has a line
Chris@1 13944 # limit of 2048, but all sed's we know have understand at least 4000.
Chris@1 13945 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
Chris@1 13946 dirpart=`$as_dirname -- "$mf" ||
Chris@1 13947 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@1 13948 X"$mf" : 'X\(//\)[^/]' \| \
Chris@1 13949 X"$mf" : 'X\(//\)$' \| \
Chris@1 13950 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Chris@1 13951 $as_echo X"$mf" |
Chris@1 13952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@1 13953 s//\1/
Chris@1 13954 q
Chris@1 13955 }
Chris@1 13956 /^X\(\/\/\)[^/].*/{
Chris@1 13957 s//\1/
Chris@1 13958 q
Chris@1 13959 }
Chris@1 13960 /^X\(\/\/\)$/{
Chris@1 13961 s//\1/
Chris@1 13962 q
Chris@1 13963 }
Chris@1 13964 /^X\(\/\).*/{
Chris@1 13965 s//\1/
Chris@1 13966 q
Chris@1 13967 }
Chris@1 13968 s/.*/./; q'`
Chris@1 13969 else
Chris@1 13970 continue
Chris@1 13971 fi
Chris@1 13972 # Extract the definition of DEPDIR, am__include, and am__quote
Chris@1 13973 # from the Makefile without running `make'.
Chris@1 13974 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
Chris@1 13975 test -z "$DEPDIR" && continue
Chris@1 13976 am__include=`sed -n 's/^am__include = //p' < "$mf"`
Chris@1 13977 test -z "am__include" && continue
Chris@1 13978 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Chris@1 13979 # When using ansi2knr, U may be empty or an underscore; expand it
Chris@1 13980 U=`sed -n 's/^U = //p' < "$mf"`
Chris@1 13981 # Find all dependency output files, they are included files with
Chris@1 13982 # $(DEPDIR) in their names. We invoke sed twice because it is the
Chris@1 13983 # simplest approach to changing $(DEPDIR) to its actual value in the
Chris@1 13984 # expansion.
Chris@1 13985 for file in `sed -n "
Chris@1 13986 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Chris@1 13987 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
Chris@1 13988 # Make sure the directory exists.
Chris@1 13989 test -f "$dirpart/$file" && continue
Chris@1 13990 fdir=`$as_dirname -- "$file" ||
Chris@1 13991 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@1 13992 X"$file" : 'X\(//\)[^/]' \| \
Chris@1 13993 X"$file" : 'X\(//\)$' \| \
Chris@1 13994 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Chris@1 13995 $as_echo X"$file" |
Chris@1 13996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@1 13997 s//\1/
Chris@1 13998 q
Chris@1 13999 }
Chris@1 14000 /^X\(\/\/\)[^/].*/{
Chris@1 14001 s//\1/
Chris@1 14002 q
Chris@1 14003 }
Chris@1 14004 /^X\(\/\/\)$/{
Chris@1 14005 s//\1/
Chris@1 14006 q
Chris@1 14007 }
Chris@1 14008 /^X\(\/\).*/{
Chris@1 14009 s//\1/
Chris@1 14010 q
Chris@1 14011 }
Chris@1 14012 s/.*/./; q'`
Chris@1 14013 as_dir=$dirpart/$fdir; as_fn_mkdir_p
Chris@1 14014 # echo "creating $dirpart/$file"
Chris@1 14015 echo '# dummy' > "$dirpart/$file"
Chris@1 14016 done
Chris@1 14017 done
Chris@1 14018 }
Chris@1 14019 ;;
Chris@1 14020 "libtool":C)
Chris@1 14021
Chris@1 14022 # See if we are running on zsh, and set the options which allow our
Chris@1 14023 # commands through without removal of \ escapes.
Chris@1 14024 if test -n "${ZSH_VERSION+set}" ; then
Chris@1 14025 setopt NO_GLOB_SUBST
Chris@1 14026 fi
Chris@1 14027
Chris@1 14028 cfgfile="${ofile}T"
Chris@1 14029 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
Chris@1 14030 $RM "$cfgfile"
Chris@1 14031
Chris@1 14032 cat <<_LT_EOF >> "$cfgfile"
Chris@1 14033 #! $SHELL
Chris@1 14034
Chris@1 14035 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
Chris@1 14036 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
Chris@1 14037 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
Chris@1 14038 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
Chris@1 14039 #
Chris@1 14040 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
Chris@1 14041 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
Chris@1 14042 # Inc.
Chris@1 14043 # Written by Gordon Matzigkeit, 1996
Chris@1 14044 #
Chris@1 14045 # This file is part of GNU Libtool.
Chris@1 14046 #
Chris@1 14047 # GNU Libtool is free software; you can redistribute it and/or
Chris@1 14048 # modify it under the terms of the GNU General Public License as
Chris@1 14049 # published by the Free Software Foundation; either version 2 of
Chris@1 14050 # the License, or (at your option) any later version.
Chris@1 14051 #
Chris@1 14052 # As a special exception to the GNU General Public License,
Chris@1 14053 # if you distribute this file as part of a program or library that
Chris@1 14054 # is built using GNU Libtool, you may include this file under the
Chris@1 14055 # same distribution terms that you use for the rest of that program.
Chris@1 14056 #
Chris@1 14057 # GNU Libtool is distributed in the hope that it will be useful,
Chris@1 14058 # but WITHOUT ANY WARRANTY; without even the implied warranty of
Chris@1 14059 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Chris@1 14060 # GNU General Public License for more details.
Chris@1 14061 #
Chris@1 14062 # You should have received a copy of the GNU General Public License
Chris@1 14063 # along with GNU Libtool; see the file COPYING. If not, a copy
Chris@1 14064 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
Chris@1 14065 # obtained by writing to the Free Software Foundation, Inc.,
Chris@1 14066 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Chris@1 14067
Chris@1 14068
Chris@1 14069 # The names of the tagged configurations supported by this script.
Chris@1 14070 available_tags=""
Chris@1 14071
Chris@1 14072 # ### BEGIN LIBTOOL CONFIG
Chris@1 14073
Chris@1 14074 # Which release of libtool.m4 was used?
Chris@1 14075 macro_version=$macro_version
Chris@1 14076 macro_revision=$macro_revision
Chris@1 14077
Chris@1 14078 # Whether or not to build shared libraries.
Chris@1 14079 build_libtool_libs=$enable_shared
Chris@1 14080
Chris@1 14081 # Whether or not to build static libraries.
Chris@1 14082 build_old_libs=$enable_static
Chris@1 14083
Chris@1 14084 # What type of objects to build.
Chris@1 14085 pic_mode=$pic_mode
Chris@1 14086
Chris@1 14087 # Whether or not to optimize for fast installation.
Chris@1 14088 fast_install=$enable_fast_install
Chris@1 14089
Chris@1 14090 # Shell to use when invoking shell scripts.
Chris@1 14091 SHELL=$lt_SHELL
Chris@1 14092
Chris@1 14093 # An echo program that protects backslashes.
Chris@1 14094 ECHO=$lt_ECHO
Chris@1 14095
Chris@1 14096 # The host system.
Chris@1 14097 host_alias=$host_alias
Chris@1 14098 host=$host
Chris@1 14099 host_os=$host_os
Chris@1 14100
Chris@1 14101 # The build system.
Chris@1 14102 build_alias=$build_alias
Chris@1 14103 build=$build
Chris@1 14104 build_os=$build_os
Chris@1 14105
Chris@1 14106 # A sed program that does not truncate output.
Chris@1 14107 SED=$lt_SED
Chris@1 14108
Chris@1 14109 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
Chris@1 14110 Xsed="\$SED -e 1s/^X//"
Chris@1 14111
Chris@1 14112 # A grep program that handles long lines.
Chris@1 14113 GREP=$lt_GREP
Chris@1 14114
Chris@1 14115 # An ERE matcher.
Chris@1 14116 EGREP=$lt_EGREP
Chris@1 14117
Chris@1 14118 # A literal string matcher.
Chris@1 14119 FGREP=$lt_FGREP
Chris@1 14120
Chris@1 14121 # A BSD- or MS-compatible name lister.
Chris@1 14122 NM=$lt_NM
Chris@1 14123
Chris@1 14124 # Whether we need soft or hard links.
Chris@1 14125 LN_S=$lt_LN_S
Chris@1 14126
Chris@1 14127 # What is the maximum length of a command?
Chris@1 14128 max_cmd_len=$max_cmd_len
Chris@1 14129
Chris@1 14130 # Object file suffix (normally "o").
Chris@1 14131 objext=$ac_objext
Chris@1 14132
Chris@1 14133 # Executable file suffix (normally "").
Chris@1 14134 exeext=$exeext
Chris@1 14135
Chris@1 14136 # whether the shell understands "unset".
Chris@1 14137 lt_unset=$lt_unset
Chris@1 14138
Chris@1 14139 # turn spaces into newlines.
Chris@1 14140 SP2NL=$lt_lt_SP2NL
Chris@1 14141
Chris@1 14142 # turn newlines into spaces.
Chris@1 14143 NL2SP=$lt_lt_NL2SP
Chris@1 14144
Chris@1 14145 # convert \$build file names to \$host format.
Chris@1 14146 to_host_file_cmd=$lt_cv_to_host_file_cmd
Chris@1 14147
Chris@1 14148 # convert \$build files to toolchain format.
Chris@1 14149 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Chris@1 14150
Chris@1 14151 # An object symbol dumper.
Chris@1 14152 OBJDUMP=$lt_OBJDUMP
Chris@1 14153
Chris@1 14154 # Method to check whether dependent libraries are shared objects.
Chris@1 14155 deplibs_check_method=$lt_deplibs_check_method
Chris@1 14156
Chris@1 14157 # Command to use when deplibs_check_method = "file_magic".
Chris@1 14158 file_magic_cmd=$lt_file_magic_cmd
Chris@1 14159
Chris@1 14160 # How to find potential files when deplibs_check_method = "file_magic".
Chris@1 14161 file_magic_glob=$lt_file_magic_glob
Chris@1 14162
Chris@1 14163 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
Chris@1 14164 want_nocaseglob=$lt_want_nocaseglob
Chris@1 14165
Chris@1 14166 # DLL creation program.
Chris@1 14167 DLLTOOL=$lt_DLLTOOL
Chris@1 14168
Chris@1 14169 # Command to associate shared and link libraries.
Chris@1 14170 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
Chris@1 14171
Chris@1 14172 # The archiver.
Chris@1 14173 AR=$lt_AR
Chris@1 14174
Chris@1 14175 # Flags to create an archive.
Chris@1 14176 AR_FLAGS=$lt_AR_FLAGS
Chris@1 14177
Chris@1 14178 # How to feed a file listing to the archiver.
Chris@1 14179 archiver_list_spec=$lt_archiver_list_spec
Chris@1 14180
Chris@1 14181 # A symbol stripping program.
Chris@1 14182 STRIP=$lt_STRIP
Chris@1 14183
Chris@1 14184 # Commands used to install an old-style archive.
Chris@1 14185 RANLIB=$lt_RANLIB
Chris@1 14186 old_postinstall_cmds=$lt_old_postinstall_cmds
Chris@1 14187 old_postuninstall_cmds=$lt_old_postuninstall_cmds
Chris@1 14188
Chris@1 14189 # Whether to use a lock for old archive extraction.
Chris@1 14190 lock_old_archive_extraction=$lock_old_archive_extraction
Chris@1 14191
Chris@1 14192 # A C compiler.
Chris@1 14193 LTCC=$lt_CC
Chris@1 14194
Chris@1 14195 # LTCC compiler flags.
Chris@1 14196 LTCFLAGS=$lt_CFLAGS
Chris@1 14197
Chris@1 14198 # Take the output of nm and produce a listing of raw symbols and C names.
Chris@1 14199 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
Chris@1 14200
Chris@1 14201 # Transform the output of nm in a proper C declaration.
Chris@1 14202 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
Chris@1 14203
Chris@1 14204 # Transform the output of nm in a C name address pair.
Chris@1 14205 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
Chris@1 14206
Chris@1 14207 # Transform the output of nm in a C name address pair when lib prefix is needed.
Chris@1 14208 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
Chris@1 14209
Chris@1 14210 # Specify filename containing input files for \$NM.
Chris@1 14211 nm_file_list_spec=$lt_nm_file_list_spec
Chris@1 14212
Chris@1 14213 # The root where to search for dependent libraries,and in which our libraries should be installed.
Chris@1 14214 lt_sysroot=$lt_sysroot
Chris@1 14215
Chris@1 14216 # The name of the directory that contains temporary libtool files.
Chris@1 14217 objdir=$objdir
Chris@1 14218
Chris@1 14219 # Used to examine libraries when file_magic_cmd begins with "file".
Chris@1 14220 MAGIC_CMD=$MAGIC_CMD
Chris@1 14221
Chris@1 14222 # Must we lock files when doing compilation?
Chris@1 14223 need_locks=$lt_need_locks
Chris@1 14224
Chris@1 14225 # Manifest tool.
Chris@1 14226 MANIFEST_TOOL=$lt_MANIFEST_TOOL
Chris@1 14227
Chris@1 14228 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
Chris@1 14229 DSYMUTIL=$lt_DSYMUTIL
Chris@1 14230
Chris@1 14231 # Tool to change global to local symbols on Mac OS X.
Chris@1 14232 NMEDIT=$lt_NMEDIT
Chris@1 14233
Chris@1 14234 # Tool to manipulate fat objects and archives on Mac OS X.
Chris@1 14235 LIPO=$lt_LIPO
Chris@1 14236
Chris@1 14237 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
Chris@1 14238 OTOOL=$lt_OTOOL
Chris@1 14239
Chris@1 14240 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
Chris@1 14241 OTOOL64=$lt_OTOOL64
Chris@1 14242
Chris@1 14243 # Old archive suffix (normally "a").
Chris@1 14244 libext=$libext
Chris@1 14245
Chris@1 14246 # Shared library suffix (normally ".so").
Chris@1 14247 shrext_cmds=$lt_shrext_cmds
Chris@1 14248
Chris@1 14249 # The commands to extract the exported symbol list from a shared archive.
Chris@1 14250 extract_expsyms_cmds=$lt_extract_expsyms_cmds
Chris@1 14251
Chris@1 14252 # Variables whose values should be saved in libtool wrapper scripts and
Chris@1 14253 # restored at link time.
Chris@1 14254 variables_saved_for_relink=$lt_variables_saved_for_relink
Chris@1 14255
Chris@1 14256 # Do we need the "lib" prefix for modules?
Chris@1 14257 need_lib_prefix=$need_lib_prefix
Chris@1 14258
Chris@1 14259 # Do we need a version for libraries?
Chris@1 14260 need_version=$need_version
Chris@1 14261
Chris@1 14262 # Library versioning type.
Chris@1 14263 version_type=$version_type
Chris@1 14264
Chris@1 14265 # Shared library runtime path variable.
Chris@1 14266 runpath_var=$runpath_var
Chris@1 14267
Chris@1 14268 # Shared library path variable.
Chris@1 14269 shlibpath_var=$shlibpath_var
Chris@1 14270
Chris@1 14271 # Is shlibpath searched before the hard-coded library search path?
Chris@1 14272 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
Chris@1 14273
Chris@1 14274 # Format of library name prefix.
Chris@1 14275 libname_spec=$lt_libname_spec
Chris@1 14276
Chris@1 14277 # List of archive names. First name is the real one, the rest are links.
Chris@1 14278 # The last name is the one that the linker finds with -lNAME
Chris@1 14279 library_names_spec=$lt_library_names_spec
Chris@1 14280
Chris@1 14281 # The coded name of the library, if different from the real name.
Chris@1 14282 soname_spec=$lt_soname_spec
Chris@1 14283
Chris@1 14284 # Permission mode override for installation of shared libraries.
Chris@1 14285 install_override_mode=$lt_install_override_mode
Chris@1 14286
Chris@1 14287 # Command to use after installation of a shared archive.
Chris@1 14288 postinstall_cmds=$lt_postinstall_cmds
Chris@1 14289
Chris@1 14290 # Command to use after uninstallation of a shared archive.
Chris@1 14291 postuninstall_cmds=$lt_postuninstall_cmds
Chris@1 14292
Chris@1 14293 # Commands used to finish a libtool library installation in a directory.
Chris@1 14294 finish_cmds=$lt_finish_cmds
Chris@1 14295
Chris@1 14296 # As "finish_cmds", except a single script fragment to be evaled but
Chris@1 14297 # not shown.
Chris@1 14298 finish_eval=$lt_finish_eval
Chris@1 14299
Chris@1 14300 # Whether we should hardcode library paths into libraries.
Chris@1 14301 hardcode_into_libs=$hardcode_into_libs
Chris@1 14302
Chris@1 14303 # Compile-time system search path for libraries.
Chris@1 14304 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
Chris@1 14305
Chris@1 14306 # Run-time system search path for libraries.
Chris@1 14307 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
Chris@1 14308
Chris@1 14309 # Whether dlopen is supported.
Chris@1 14310 dlopen_support=$enable_dlopen
Chris@1 14311
Chris@1 14312 # Whether dlopen of programs is supported.
Chris@1 14313 dlopen_self=$enable_dlopen_self
Chris@1 14314
Chris@1 14315 # Whether dlopen of statically linked programs is supported.
Chris@1 14316 dlopen_self_static=$enable_dlopen_self_static
Chris@1 14317
Chris@1 14318 # Commands to strip libraries.
Chris@1 14319 old_striplib=$lt_old_striplib
Chris@1 14320 striplib=$lt_striplib
Chris@1 14321
Chris@1 14322
Chris@1 14323 # The linker used to build libraries.
Chris@1 14324 LD=$lt_LD
Chris@1 14325
Chris@1 14326 # How to create reloadable object files.
Chris@1 14327 reload_flag=$lt_reload_flag
Chris@1 14328 reload_cmds=$lt_reload_cmds
Chris@1 14329
Chris@1 14330 # Commands used to build an old-style archive.
Chris@1 14331 old_archive_cmds=$lt_old_archive_cmds
Chris@1 14332
Chris@1 14333 # A language specific compiler.
Chris@1 14334 CC=$lt_compiler
Chris@1 14335
Chris@1 14336 # Is the compiler the GNU compiler?
Chris@1 14337 with_gcc=$GCC
Chris@1 14338
Chris@1 14339 # Compiler flag to turn off builtin functions.
Chris@1 14340 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
Chris@1 14341
Chris@1 14342 # Additional compiler flags for building library objects.
Chris@1 14343 pic_flag=$lt_lt_prog_compiler_pic
Chris@1 14344
Chris@1 14345 # How to pass a linker flag through the compiler.
Chris@1 14346 wl=$lt_lt_prog_compiler_wl
Chris@1 14347
Chris@1 14348 # Compiler flag to prevent dynamic linking.
Chris@1 14349 link_static_flag=$lt_lt_prog_compiler_static
Chris@1 14350
Chris@1 14351 # Does compiler simultaneously support -c and -o options?
Chris@1 14352 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
Chris@1 14353
Chris@1 14354 # Whether or not to add -lc for building shared libraries.
Chris@1 14355 build_libtool_need_lc=$archive_cmds_need_lc
Chris@1 14356
Chris@1 14357 # Whether or not to disallow shared libs when runtime libs are static.
Chris@1 14358 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
Chris@1 14359
Chris@1 14360 # Compiler flag to allow reflexive dlopens.
Chris@1 14361 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
Chris@1 14362
Chris@1 14363 # Compiler flag to generate shared objects directly from archives.
Chris@1 14364 whole_archive_flag_spec=$lt_whole_archive_flag_spec
Chris@1 14365
Chris@1 14366 # Whether the compiler copes with passing no objects directly.
Chris@1 14367 compiler_needs_object=$lt_compiler_needs_object
Chris@1 14368
Chris@1 14369 # Create an old-style archive from a shared archive.
Chris@1 14370 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
Chris@1 14371
Chris@1 14372 # Create a temporary old-style archive to link instead of a shared archive.
Chris@1 14373 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
Chris@1 14374
Chris@1 14375 # Commands used to build a shared archive.
Chris@1 14376 archive_cmds=$lt_archive_cmds
Chris@1 14377 archive_expsym_cmds=$lt_archive_expsym_cmds
Chris@1 14378
Chris@1 14379 # Commands used to build a loadable module if different from building
Chris@1 14380 # a shared archive.
Chris@1 14381 module_cmds=$lt_module_cmds
Chris@1 14382 module_expsym_cmds=$lt_module_expsym_cmds
Chris@1 14383
Chris@1 14384 # Whether we are building with GNU ld or not.
Chris@1 14385 with_gnu_ld=$lt_with_gnu_ld
Chris@1 14386
Chris@1 14387 # Flag that allows shared libraries with undefined symbols to be built.
Chris@1 14388 allow_undefined_flag=$lt_allow_undefined_flag
Chris@1 14389
Chris@1 14390 # Flag that enforces no undefined symbols.
Chris@1 14391 no_undefined_flag=$lt_no_undefined_flag
Chris@1 14392
Chris@1 14393 # Flag to hardcode \$libdir into a binary during linking.
Chris@1 14394 # This must work even if \$libdir does not exist
Chris@1 14395 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
Chris@1 14396
Chris@1 14397 # If ld is used when linking, flag to hardcode \$libdir into a binary
Chris@1 14398 # during linking. This must work even if \$libdir does not exist.
Chris@1 14399 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
Chris@1 14400
Chris@1 14401 # Whether we need a single "-rpath" flag with a separated argument.
Chris@1 14402 hardcode_libdir_separator=$lt_hardcode_libdir_separator
Chris@1 14403
Chris@1 14404 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
Chris@1 14405 # DIR into the resulting binary.
Chris@1 14406 hardcode_direct=$hardcode_direct
Chris@1 14407
Chris@1 14408 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
Chris@1 14409 # DIR into the resulting binary and the resulting library dependency is
Chris@1 14410 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
Chris@1 14411 # library is relocated.
Chris@1 14412 hardcode_direct_absolute=$hardcode_direct_absolute
Chris@1 14413
Chris@1 14414 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
Chris@1 14415 # into the resulting binary.
Chris@1 14416 hardcode_minus_L=$hardcode_minus_L
Chris@1 14417
Chris@1 14418 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
Chris@1 14419 # into the resulting binary.
Chris@1 14420 hardcode_shlibpath_var=$hardcode_shlibpath_var
Chris@1 14421
Chris@1 14422 # Set to "yes" if building a shared library automatically hardcodes DIR
Chris@1 14423 # into the library and all subsequent libraries and executables linked
Chris@1 14424 # against it.
Chris@1 14425 hardcode_automatic=$hardcode_automatic
Chris@1 14426
Chris@1 14427 # Set to yes if linker adds runtime paths of dependent libraries
Chris@1 14428 # to runtime path list.
Chris@1 14429 inherit_rpath=$inherit_rpath
Chris@1 14430
Chris@1 14431 # Whether libtool must link a program against all its dependency libraries.
Chris@1 14432 link_all_deplibs=$link_all_deplibs
Chris@1 14433
Chris@1 14434 # Set to "yes" if exported symbols are required.
Chris@1 14435 always_export_symbols=$always_export_symbols
Chris@1 14436
Chris@1 14437 # The commands to list exported symbols.
Chris@1 14438 export_symbols_cmds=$lt_export_symbols_cmds
Chris@1 14439
Chris@1 14440 # Symbols that should not be listed in the preloaded symbols.
Chris@1 14441 exclude_expsyms=$lt_exclude_expsyms
Chris@1 14442
Chris@1 14443 # Symbols that must always be exported.
Chris@1 14444 include_expsyms=$lt_include_expsyms
Chris@1 14445
Chris@1 14446 # Commands necessary for linking programs (against libraries) with templates.
Chris@1 14447 prelink_cmds=$lt_prelink_cmds
Chris@1 14448
Chris@1 14449 # Commands necessary for finishing linking programs.
Chris@1 14450 postlink_cmds=$lt_postlink_cmds
Chris@1 14451
Chris@1 14452 # Specify filename containing input files.
Chris@1 14453 file_list_spec=$lt_file_list_spec
Chris@1 14454
Chris@1 14455 # How to hardcode a shared library path into an executable.
Chris@1 14456 hardcode_action=$hardcode_action
Chris@1 14457
Chris@1 14458 # ### END LIBTOOL CONFIG
Chris@1 14459
Chris@1 14460 _LT_EOF
Chris@1 14461
Chris@1 14462 case $host_os in
Chris@1 14463 aix3*)
Chris@1 14464 cat <<\_LT_EOF >> "$cfgfile"
Chris@1 14465 # AIX sometimes has problems with the GCC collect2 program. For some
Chris@1 14466 # reason, if we set the COLLECT_NAMES environment variable, the problems
Chris@1 14467 # vanish in a puff of smoke.
Chris@1 14468 if test "X${COLLECT_NAMES+set}" != Xset; then
Chris@1 14469 COLLECT_NAMES=
Chris@1 14470 export COLLECT_NAMES
Chris@1 14471 fi
Chris@1 14472 _LT_EOF
Chris@1 14473 ;;
Chris@1 14474 esac
Chris@1 14475
Chris@1 14476
Chris@1 14477 ltmain="$ac_aux_dir/ltmain.sh"
Chris@1 14478
Chris@1 14479
Chris@1 14480 # We use sed instead of cat because bash on DJGPP gets confused if
Chris@1 14481 # if finds mixed CR/LF and LF-only lines. Since sed operates in
Chris@1 14482 # text mode, it properly converts lines to CR/LF. This bash problem
Chris@1 14483 # is reportedly fixed, but why not run on old versions too?
Chris@1 14484 sed '$q' "$ltmain" >> "$cfgfile" \
Chris@1 14485 || (rm -f "$cfgfile"; exit 1)
Chris@1 14486
Chris@1 14487 if test x"$xsi_shell" = xyes; then
Chris@1 14488 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
Chris@1 14489 func_dirname ()\
Chris@1 14490 {\
Chris@1 14491 \ case ${1} in\
Chris@1 14492 \ */*) func_dirname_result="${1%/*}${2}" ;;\
Chris@1 14493 \ * ) func_dirname_result="${3}" ;;\
Chris@1 14494 \ esac\
Chris@1 14495 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
Chris@1 14496 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@1 14497 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@1 14498 test 0 -eq $? || _lt_function_replace_fail=:
Chris@1 14499
Chris@1 14500
Chris@1 14501 sed -e '/^func_basename ()$/,/^} # func_basename /c\
Chris@1 14502 func_basename ()\
Chris@1 14503 {\
Chris@1 14504 \ func_basename_result="${1##*/}"\
Chris@1 14505 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
Chris@1 14506 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@1 14507 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@1 14508 test 0 -eq $? || _lt_function_replace_fail=:
Chris@1 14509
Chris@1 14510
Chris@1 14511 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
Chris@1 14512 func_dirname_and_basename ()\
Chris@1 14513 {\
Chris@1 14514 \ case ${1} in\
Chris@1 14515 \ */*) func_dirname_result="${1%/*}${2}" ;;\
Chris@1 14516 \ * ) func_dirname_result="${3}" ;;\
Chris@1 14517 \ esac\
Chris@1 14518 \ func_basename_result="${1##*/}"\
Chris@1 14519 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
Chris@1 14520 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@1 14521 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@1 14522 test 0 -eq $? || _lt_function_replace_fail=:
Chris@1 14523
Chris@1 14524
Chris@1 14525 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
Chris@1 14526 func_stripname ()\
Chris@1 14527 {\
Chris@1 14528 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
Chris@1 14529 \ # positional parameters, so assign one to ordinary parameter first.\
Chris@1 14530 \ func_stripname_result=${3}\
Chris@1 14531 \ func_stripname_result=${func_stripname_result#"${1}"}\
Chris@1 14532 \ func_stripname_result=${func_stripname_result%"${2}"}\
Chris@1 14533 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
Chris@1 14534 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@1 14535 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@1 14536 test 0 -eq $? || _lt_function_replace_fail=:
Chris@1 14537
Chris@1 14538
Chris@1 14539 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
Chris@1 14540 func_split_long_opt ()\
Chris@1 14541 {\
Chris@1 14542 \ func_split_long_opt_name=${1%%=*}\
Chris@1 14543 \ func_split_long_opt_arg=${1#*=}\
Chris@1 14544 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
Chris@1 14545 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@1 14546 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@1 14547 test 0 -eq $? || _lt_function_replace_fail=:
Chris@1 14548
Chris@1 14549
Chris@1 14550 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
Chris@1 14551 func_split_short_opt ()\
Chris@1 14552 {\
Chris@1 14553 \ func_split_short_opt_arg=${1#??}\
Chris@1 14554 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
Chris@1 14555 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
Chris@1 14556 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@1 14557 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@1 14558 test 0 -eq $? || _lt_function_replace_fail=:
Chris@1 14559
Chris@1 14560
Chris@1 14561 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
Chris@1 14562 func_lo2o ()\
Chris@1 14563 {\
Chris@1 14564 \ case ${1} in\
Chris@1 14565 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
Chris@1 14566 \ *) func_lo2o_result=${1} ;;\
Chris@1 14567 \ esac\
Chris@1 14568 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
Chris@1 14569 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@1 14570 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@1 14571 test 0 -eq $? || _lt_function_replace_fail=:
Chris@1 14572
Chris@1 14573
Chris@1 14574 sed -e '/^func_xform ()$/,/^} # func_xform /c\
Chris@1 14575 func_xform ()\
Chris@1 14576 {\
Chris@1 14577 func_xform_result=${1%.*}.lo\
Chris@1 14578 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
Chris@1 14579 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@1 14580 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@1 14581 test 0 -eq $? || _lt_function_replace_fail=:
Chris@1 14582
Chris@1 14583
Chris@1 14584 sed -e '/^func_arith ()$/,/^} # func_arith /c\
Chris@1 14585 func_arith ()\
Chris@1 14586 {\
Chris@1 14587 func_arith_result=$(( $* ))\
Chris@1 14588 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
Chris@1 14589 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@1 14590 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@1 14591 test 0 -eq $? || _lt_function_replace_fail=:
Chris@1 14592
Chris@1 14593
Chris@1 14594 sed -e '/^func_len ()$/,/^} # func_len /c\
Chris@1 14595 func_len ()\
Chris@1 14596 {\
Chris@1 14597 func_len_result=${#1}\
Chris@1 14598 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
Chris@1 14599 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@1 14600 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@1 14601 test 0 -eq $? || _lt_function_replace_fail=:
Chris@1 14602
Chris@1 14603 fi
Chris@1 14604
Chris@1 14605 if test x"$lt_shell_append" = xyes; then
Chris@1 14606 sed -e '/^func_append ()$/,/^} # func_append /c\
Chris@1 14607 func_append ()\
Chris@1 14608 {\
Chris@1 14609 eval "${1}+=\\${2}"\
Chris@1 14610 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
Chris@1 14611 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@1 14612 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@1 14613 test 0 -eq $? || _lt_function_replace_fail=:
Chris@1 14614
Chris@1 14615
Chris@1 14616 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
Chris@1 14617 func_append_quoted ()\
Chris@1 14618 {\
Chris@1 14619 \ func_quote_for_eval "${2}"\
Chris@1 14620 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
Chris@1 14621 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
Chris@1 14622 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@1 14623 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@1 14624 test 0 -eq $? || _lt_function_replace_fail=:
Chris@1 14625
Chris@1 14626
Chris@1 14627 # Save a `func_append' function call where possible by direct use of '+='
Chris@1 14628 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
Chris@1 14629 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@1 14630 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@1 14631 test 0 -eq $? || _lt_function_replace_fail=:
Chris@1 14632 else
Chris@1 14633 # Save a `func_append' function call even when '+=' is not available
Chris@1 14634 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
Chris@1 14635 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@1 14636 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@1 14637 test 0 -eq $? || _lt_function_replace_fail=:
Chris@1 14638 fi
Chris@1 14639
Chris@1 14640 if test x"$_lt_function_replace_fail" = x":"; then
Chris@1 14641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
Chris@1 14642 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
Chris@1 14643 fi
Chris@1 14644
Chris@1 14645
Chris@1 14646 mv -f "$cfgfile" "$ofile" ||
Chris@1 14647 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
Chris@1 14648 chmod +x "$ofile"
Chris@1 14649
Chris@1 14650 ;;
Chris@1 14651
Chris@1 14652 esac
Chris@1 14653 done # for ac_tag
Chris@1 14654
Chris@1 14655
Chris@1 14656 as_fn_exit 0
Chris@1 14657 _ACEOF
Chris@1 14658 ac_clean_files=$ac_clean_files_save
Chris@1 14659
Chris@1 14660 test $ac_write_fail = 0 ||
Chris@1 14661 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Chris@1 14662
Chris@1 14663
Chris@1 14664 # configure is writing to config.log, and then calls config.status.
Chris@1 14665 # config.status does its own redirection, appending to config.log.
Chris@1 14666 # Unfortunately, on DOS this fails, as config.log is still kept open
Chris@1 14667 # by configure, so config.status won't be able to write to it; its
Chris@1 14668 # output is simply discarded. So we exec the FD to /dev/null,
Chris@1 14669 # effectively closing config.log, so it can be properly (re)opened and
Chris@1 14670 # appended to by config.status. When coming back to configure, we
Chris@1 14671 # need to make the FD available again.
Chris@1 14672 if test "$no_create" != yes; then
Chris@1 14673 ac_cs_success=:
Chris@1 14674 ac_config_status_args=
Chris@1 14675 test "$silent" = yes &&
Chris@1 14676 ac_config_status_args="$ac_config_status_args --quiet"
Chris@1 14677 exec 5>/dev/null
Chris@1 14678 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Chris@1 14679 exec 5>>config.log
Chris@1 14680 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
Chris@1 14681 # would make configure fail if this is the last instruction.
Chris@1 14682 $ac_cs_success || as_fn_exit 1
Chris@1 14683 fi
Chris@1 14684 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Chris@1 14685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Chris@1 14686 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Chris@1 14687 fi
Chris@1 14688