annotate configure @ 1805:d12192c7aa3e

Revert last changeset for now; needs more thought
author Adam Chlipala <adam@chlipala.net>
date Sun, 05 Aug 2012 17:11:39 -0400
parents 141f234a91fb
children 40557fb08e98
rev   line source
adamc@378 1 #! /bin/sh
adamc@378 2 # Guess values for system-dependent variables and create Makefiles.
adam@1771 3 # Generated by GNU Autoconf 2.69 for urweb 20120519.
adamc@1095 4 #
adamc@378 5 #
adam@1771 6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
adamc@1095 7 #
adamc@1095 8 #
adamc@378 9 # This configure script is free software; the Free Software Foundation
adamc@378 10 # gives unlimited permission to copy, distribute and modify it.
adamc@1095 11 ## -------------------- ##
adamc@1095 12 ## M4sh Initialization. ##
adamc@1095 13 ## -------------------- ##
adamc@378 14
adamc@378 15 # Be more Bourne compatible
adamc@378 16 DUALCASE=1; export DUALCASE # for MKS sh
adamc@1095 17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
adamc@378 18 emulate sh
adamc@378 19 NULLCMD=:
adamc@1095 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
adamc@378 21 # is contrary to our usage. Disable this feature.
adamc@378 22 alias -g '${1+"$@"}'='"$@"'
adamc@378 23 setopt NO_GLOB_SUBST
adamc@378 24 else
adamc@1095 25 case `(set -o) 2>/dev/null` in #(
adamc@1095 26 *posix*) :
adamc@1095 27 set -o posix ;; #(
adamc@1095 28 *) :
adamc@1095 29 ;;
adamc@378 30 esac
adamc@378 31 fi
adamc@378 32
adamc@378 33
adamc@1095 34 as_nl='
adamc@1095 35 '
adamc@1095 36 export as_nl
adamc@1095 37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
adamc@1095 38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
adamc@1095 39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
adamc@1095 40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
adamc@1095 41 # Prefer a ksh shell builtin over an external printf program on Solaris,
adamc@1095 42 # but without wasting forks for bash or zsh.
adamc@1095 43 if test -z "$BASH_VERSION$ZSH_VERSION" \
adamc@1095 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
adamc@1095 45 as_echo='print -r --'
adamc@1095 46 as_echo_n='print -rn --'
adamc@1095 47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
adamc@1095 48 as_echo='printf %s\n'
adamc@1095 49 as_echo_n='printf %s'
adamc@1095 50 else
adamc@1095 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
adamc@1095 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
adamc@1095 53 as_echo_n='/usr/ucb/echo -n'
adamc@1095 54 else
adamc@1095 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
adamc@1095 56 as_echo_n_body='eval
adamc@1095 57 arg=$1;
adamc@1095 58 case $arg in #(
adamc@1095 59 *"$as_nl"*)
adamc@1095 60 expr "X$arg" : "X\\(.*\\)$as_nl";
adamc@1095 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
adamc@1095 62 esac;
adamc@1095 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
adamc@1095 64 '
adamc@1095 65 export as_echo_n_body
adamc@1095 66 as_echo_n='sh -c $as_echo_n_body as_echo'
adamc@1095 67 fi
adamc@1095 68 export as_echo_body
adamc@1095 69 as_echo='sh -c $as_echo_body as_echo'
adamc@1095 70 fi
adamc@378 71
adamc@378 72 # The user is always right.
adamc@378 73 if test "${PATH_SEPARATOR+set}" != set; then
adamc@1095 74 PATH_SEPARATOR=:
adamc@1095 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
adamc@1095 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
adamc@1095 77 PATH_SEPARATOR=';'
adamc@1095 78 }
adamc@378 79 fi
adamc@378 80
adamc@378 81
adamc@378 82 # IFS
adamc@378 83 # We need space, tab and new line, in precisely that order. Quoting is
adamc@378 84 # there to prevent editors from complaining about space-tab.
adamc@378 85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
adamc@378 86 # splitting by setting IFS to empty value.)
adamc@378 87 IFS=" "" $as_nl"
adamc@378 88
adamc@378 89 # Find who we are. Look in the path if we contain no directory separator.
adam@1599 90 as_myself=
adamc@1095 91 case $0 in #((
adamc@378 92 *[\\/]* ) as_myself=$0 ;;
adamc@378 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@378 94 for as_dir in $PATH
adamc@378 95 do
adamc@378 96 IFS=$as_save_IFS
adamc@378 97 test -z "$as_dir" && as_dir=.
adamc@1095 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
adamc@1095 99 done
adamc@378 100 IFS=$as_save_IFS
adamc@378 101
adamc@378 102 ;;
adamc@378 103 esac
adamc@378 104 # We did not find ourselves, most probably we were run as `sh COMMAND'
adamc@378 105 # in which case we are not to be found in the path.
adamc@378 106 if test "x$as_myself" = x; then
adamc@378 107 as_myself=$0
adamc@378 108 fi
adamc@378 109 if test ! -f "$as_myself"; then
adamc@1095 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
adamc@1095 111 exit 1
adamc@378 112 fi
adamc@378 113
adamc@1095 114 # Unset variables that we do not need and which cause bugs (e.g. in
adamc@1095 115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
adamc@1095 116 # suppresses any "Segmentation fault" message there. '((' could
adamc@1095 117 # trigger a bug in pdksh 5.2.14.
adamc@1095 118 for as_var in BASH_ENV ENV MAIL MAILPATH
adamc@1095 119 do eval test x\${$as_var+set} = xset \
adamc@1095 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
adamc@378 121 done
adamc@378 122 PS1='$ '
adamc@378 123 PS2='> '
adamc@378 124 PS4='+ '
adamc@378 125
adamc@378 126 # NLS nuisances.
adamc@1095 127 LC_ALL=C
adamc@1095 128 export LC_ALL
adamc@1095 129 LANGUAGE=C
adamc@1095 130 export LANGUAGE
adamc@1095 131
adamc@1095 132 # CDPATH.
adamc@1095 133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
adamc@1095 134
adam@1771 135 # Use a proper internal environment variable to ensure we don't fall
adam@1771 136 # into an infinite loop, continuously re-executing ourselves.
adam@1771 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
adam@1771 138 _as_can_reexec=no; export _as_can_reexec;
adam@1771 139 # We cannot yet assume a decent shell, so we have to provide a
adam@1771 140 # neutralization value for shells without unset; and this also
adam@1771 141 # works around shells that cannot unset nonexistent variables.
adam@1771 142 # Preserve -v and -x to the replacement shell.
adam@1771 143 BASH_ENV=/dev/null
adam@1771 144 ENV=/dev/null
adam@1771 145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
adam@1771 146 case $- in # ((((
adam@1771 147 *v*x* | *x*v* ) as_opts=-vx ;;
adam@1771 148 *v* ) as_opts=-v ;;
adam@1771 149 *x* ) as_opts=-x ;;
adam@1771 150 * ) as_opts= ;;
adam@1771 151 esac
adam@1771 152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
adam@1771 153 # Admittedly, this is quite paranoid, since all the known shells bail
adam@1771 154 # out after a failed `exec'.
adam@1771 155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
adam@1771 156 as_fn_exit 255
adam@1771 157 fi
adam@1771 158 # We don't want this to propagate to other subprocesses.
adam@1771 159 { _as_can_reexec=; unset _as_can_reexec;}
adamc@1095 160 if test "x$CONFIG_SHELL" = x; then
adamc@1095 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
adamc@1095 162 emulate sh
adamc@1095 163 NULLCMD=:
adamc@1095 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
adamc@1095 165 # is contrary to our usage. Disable this feature.
adamc@1095 166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
adamc@1095 167 setopt NO_GLOB_SUBST
adamc@1095 168 else
adamc@1095 169 case \`(set -o) 2>/dev/null\` in #(
adamc@1095 170 *posix*) :
adamc@1095 171 set -o posix ;; #(
adamc@1095 172 *) :
adamc@1095 173 ;;
adamc@1095 174 esac
adamc@1095 175 fi
adamc@1095 176 "
adamc@1095 177 as_required="as_fn_return () { (exit \$1); }
adamc@1095 178 as_fn_success () { as_fn_return 0; }
adamc@1095 179 as_fn_failure () { as_fn_return 1; }
adamc@1095 180 as_fn_ret_success () { return 0; }
adamc@1095 181 as_fn_ret_failure () { return 1; }
adamc@1095 182
adamc@1095 183 exitcode=0
adamc@1095 184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
adamc@1095 185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
adamc@1095 186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
adamc@1095 187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
adamc@1095 188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
adamc@1095 189
adamc@1095 190 else
adamc@1095 191 exitcode=1; echo positional parameters were not saved.
adamc@1095 192 fi
adam@1771 193 test x\$exitcode = x0 || exit 1
adam@1771 194 test -x / || exit 1"
adamc@1095 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
adamc@1095 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
adamc@1095 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
adamc@1132 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
adam@1459 199 test \$(( 1 + 1 )) = 2 || exit 1
adam@1459 200
adam@1459 201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
adam@1459 202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
adam@1459 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
adam@1459 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
adam@1459 205 PATH=/empty FPATH=/empty; export PATH FPATH
adam@1459 206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
adam@1459 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
adamc@1095 208 if (eval "$as_required") 2>/dev/null; then :
adamc@1095 209 as_have_required=yes
adamc@1095 210 else
adamc@1095 211 as_have_required=no
adamc@1095 212 fi
adamc@1095 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
adamc@1095 214
adamc@1095 215 else
adamc@1095 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1095 217 as_found=false
adamc@1095 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
adamc@378 219 do
adamc@1095 220 IFS=$as_save_IFS
adamc@1095 221 test -z "$as_dir" && as_dir=.
adamc@1095 222 as_found=:
adamc@1095 223 case $as_dir in #(
adamc@1095 224 /*)
adamc@1095 225 for as_base in sh bash ksh sh5; do
adamc@1095 226 # Try only shells that exist, to save several forks.
adamc@1095 227 as_shell=$as_dir/$as_base
adamc@1095 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
adamc@1095 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
adamc@1095 230 CONFIG_SHELL=$as_shell as_have_required=yes
adamc@1095 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
adamc@1095 232 break 2
adamc@1095 233 fi
adamc@1095 234 fi
adamc@1095 235 done;;
adamc@1095 236 esac
adamc@1095 237 as_found=false
adamc@1095 238 done
adamc@1095 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
adamc@1095 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
adamc@1095 241 CONFIG_SHELL=$SHELL as_have_required=yes
adamc@1095 242 fi; }
adamc@1095 243 IFS=$as_save_IFS
adamc@1095 244
adamc@1095 245
adamc@1095 246 if test "x$CONFIG_SHELL" != x; then :
adam@1771 247 export CONFIG_SHELL
adam@1771 248 # We cannot yet assume a decent shell, so we have to provide a
adam@1771 249 # neutralization value for shells without unset; and this also
adam@1771 250 # works around shells that cannot unset nonexistent variables.
adam@1771 251 # Preserve -v and -x to the replacement shell.
adam@1771 252 BASH_ENV=/dev/null
adam@1771 253 ENV=/dev/null
adam@1771 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
adam@1771 255 case $- in # ((((
adam@1771 256 *v*x* | *x*v* ) as_opts=-vx ;;
adam@1771 257 *v* ) as_opts=-v ;;
adam@1771 258 *x* ) as_opts=-x ;;
adam@1771 259 * ) as_opts= ;;
adam@1771 260 esac
adam@1771 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
adam@1771 262 # Admittedly, this is quite paranoid, since all the known shells bail
adam@1771 263 # out after a failed `exec'.
adam@1771 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
adam@1771 265 exit 255
adamc@1095 266 fi
adamc@1095 267
adamc@1095 268 if test x$as_have_required = xno; then :
adamc@1095 269 $as_echo "$0: This script requires a shell more modern than all"
adamc@1095 270 $as_echo "$0: the shells that I found on your system."
adamc@1095 271 if test x${ZSH_VERSION+set} = xset ; then
adamc@1095 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
adamc@1095 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
adamc@378 274 else
adamc@1095 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
adamc@1095 276 $0: including any error possibly output before this
adamc@1095 277 $0: message. Then install a modern shell, or manually run
adamc@1095 278 $0: the script under such a shell if you do have one."
adamc@378 279 fi
adamc@1095 280 exit 1
adamc@1095 281 fi
adamc@1095 282 fi
adamc@1095 283 fi
adamc@1095 284 SHELL=${CONFIG_SHELL-/bin/sh}
adamc@1095 285 export SHELL
adamc@1095 286 # Unset more variables known to interfere with behavior of common tools.
adamc@1095 287 CLICOLOR_FORCE= GREP_OPTIONS=
adamc@1095 288 unset CLICOLOR_FORCE GREP_OPTIONS
adamc@378 289
adamc@1095 290 ## --------------------- ##
adamc@1095 291 ## M4sh Shell Functions. ##
adamc@1095 292 ## --------------------- ##
adamc@1095 293 # as_fn_unset VAR
adamc@1095 294 # ---------------
adamc@1095 295 # Portably unset VAR.
adamc@1095 296 as_fn_unset ()
adamc@1095 297 {
adamc@1095 298 { eval $1=; unset $1;}
adamc@1095 299 }
adamc@1095 300 as_unset=as_fn_unset
adamc@1095 301
adamc@1095 302 # as_fn_set_status STATUS
adamc@1095 303 # -----------------------
adamc@1095 304 # Set $? to STATUS, without forking.
adamc@1095 305 as_fn_set_status ()
adamc@1095 306 {
adamc@1095 307 return $1
adamc@1095 308 } # as_fn_set_status
adamc@1095 309
adamc@1095 310 # as_fn_exit STATUS
adamc@1095 311 # -----------------
adamc@1095 312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
adamc@1095 313 as_fn_exit ()
adamc@1095 314 {
adamc@1095 315 set +e
adamc@1095 316 as_fn_set_status $1
adamc@1095 317 exit $1
adamc@1095 318 } # as_fn_exit
adamc@1095 319
adamc@1095 320 # as_fn_mkdir_p
adamc@1095 321 # -------------
adamc@1095 322 # Create "$as_dir" as a directory, including parents if necessary.
adamc@1095 323 as_fn_mkdir_p ()
adamc@1095 324 {
adamc@1095 325
adamc@1095 326 case $as_dir in #(
adamc@1095 327 -*) as_dir=./$as_dir;;
adamc@1095 328 esac
adamc@1095 329 test -d "$as_dir" || eval $as_mkdir_p || {
adamc@1095 330 as_dirs=
adamc@1095 331 while :; do
adamc@1095 332 case $as_dir in #(
adamc@1095 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
adamc@1095 334 *) as_qdir=$as_dir;;
adamc@1095 335 esac
adamc@1095 336 as_dirs="'$as_qdir' $as_dirs"
adamc@1095 337 as_dir=`$as_dirname -- "$as_dir" ||
adamc@1095 338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
adamc@1095 339 X"$as_dir" : 'X\(//\)[^/]' \| \
adamc@1095 340 X"$as_dir" : 'X\(//\)$' \| \
adamc@1095 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
adamc@1095 342 $as_echo X"$as_dir" |
adamc@1095 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
adamc@1095 344 s//\1/
adamc@1095 345 q
adamc@1095 346 }
adamc@1095 347 /^X\(\/\/\)[^/].*/{
adamc@1095 348 s//\1/
adamc@1095 349 q
adamc@1095 350 }
adamc@1095 351 /^X\(\/\/\)$/{
adamc@1095 352 s//\1/
adamc@1095 353 q
adamc@1095 354 }
adamc@1095 355 /^X\(\/\).*/{
adamc@1095 356 s//\1/
adamc@1095 357 q
adamc@1095 358 }
adamc@1095 359 s/.*/./; q'`
adamc@1095 360 test -d "$as_dir" && break
adamc@1095 361 done
adamc@1095 362 test -z "$as_dirs" || eval "mkdir $as_dirs"
adam@1315 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
adamc@1095 364
adamc@1095 365
adamc@1095 366 } # as_fn_mkdir_p
adam@1771 367
adam@1771 368 # as_fn_executable_p FILE
adam@1771 369 # -----------------------
adam@1771 370 # Test if FILE is an executable regular file.
adam@1771 371 as_fn_executable_p ()
adam@1771 372 {
adam@1771 373 test -f "$1" && test -x "$1"
adam@1771 374 } # as_fn_executable_p
adamc@1095 375 # as_fn_append VAR VALUE
adamc@1095 376 # ----------------------
adamc@1095 377 # Append the text in VALUE to the end of the definition contained in VAR. Take
adamc@1095 378 # advantage of any shell optimizations that allow amortized linear growth over
adamc@1095 379 # repeated appends, instead of the typical quadratic growth present in naive
adamc@1095 380 # implementations.
adamc@1095 381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
adamc@1095 382 eval 'as_fn_append ()
adamc@1095 383 {
adamc@1095 384 eval $1+=\$2
adamc@1095 385 }'
adamc@1095 386 else
adamc@1095 387 as_fn_append ()
adamc@1095 388 {
adamc@1095 389 eval $1=\$$1\$2
adamc@1095 390 }
adamc@1095 391 fi # as_fn_append
adamc@1095 392
adamc@1095 393 # as_fn_arith ARG...
adamc@1095 394 # ------------------
adamc@1095 395 # Perform arithmetic evaluation on the ARGs, and store the result in the
adamc@1095 396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
adamc@1095 397 # must be portable across $(()) and expr.
adamc@1095 398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
adamc@1095 399 eval 'as_fn_arith ()
adamc@1095 400 {
adamc@1095 401 as_val=$(( $* ))
adamc@1095 402 }'
adamc@1095 403 else
adamc@1095 404 as_fn_arith ()
adamc@1095 405 {
adamc@1095 406 as_val=`expr "$@" || test $? -eq 1`
adamc@1095 407 }
adamc@1095 408 fi # as_fn_arith
adamc@1095 409
adamc@1095 410
adam@1315 411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
adam@1315 412 # ----------------------------------------
adamc@1095 413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
adamc@1095 414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
adam@1315 415 # script with STATUS, using 1 if that was 0.
adamc@1095 416 as_fn_error ()
adamc@1095 417 {
adam@1315 418 as_status=$1; test $as_status -eq 0 && as_status=1
adam@1315 419 if test "$4"; then
adam@1315 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
adam@1315 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
adam@1315 422 fi
adam@1315 423 $as_echo "$as_me: error: $2" >&2
adamc@1095 424 as_fn_exit $as_status
adamc@1095 425 } # as_fn_error
adamc@1095 426
adamc@378 427 if expr a : '\(a\)' >/dev/null 2>&1 &&
adamc@378 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
adamc@378 429 as_expr=expr
adamc@378 430 else
adamc@378 431 as_expr=false
adamc@378 432 fi
adamc@378 433
adamc@378 434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
adamc@378 435 as_basename=basename
adamc@378 436 else
adamc@378 437 as_basename=false
adamc@378 438 fi
adamc@378 439
adamc@1095 440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
adamc@1095 441 as_dirname=dirname
adamc@1095 442 else
adamc@1095 443 as_dirname=false
adamc@1095 444 fi
adamc@378 445
adamc@378 446 as_me=`$as_basename -- "$0" ||
adamc@378 447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
adamc@378 448 X"$0" : 'X\(//\)$' \| \
adamc@378 449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
adamc@1095 450 $as_echo X/"$0" |
adamc@378 451 sed '/^.*\/\([^/][^/]*\)\/*$/{
adamc@378 452 s//\1/
adamc@378 453 q
adamc@378 454 }
adamc@378 455 /^X\/\(\/\/\)$/{
adamc@378 456 s//\1/
adamc@378 457 q
adamc@378 458 }
adamc@378 459 /^X\/\(\/\).*/{
adamc@378 460 s//\1/
adamc@378 461 q
adamc@378 462 }
adamc@378 463 s/.*/./; q'`
adamc@378 464
adamc@1095 465 # Avoid depending upon Character Ranges.
adamc@1095 466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
adamc@1095 467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
adamc@1095 468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
adamc@1095 469 as_cr_digits='0123456789'
adamc@1095 470 as_cr_alnum=$as_cr_Letters$as_cr_digits
adamc@378 471
adamc@378 472
adamc@1095 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
adamc@1095 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
adamc@1095 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
adamc@1095 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
adamc@1095 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
adamc@378 478 sed -n '
adamc@378 479 p
adamc@378 480 /[$]LINENO/=
adamc@378 481 ' <$as_myself |
adamc@378 482 sed '
adamc@378 483 s/[$]LINENO.*/&-/
adamc@378 484 t lineno
adamc@378 485 b
adamc@378 486 :lineno
adamc@378 487 N
adamc@378 488 :loop
adamc@378 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
adamc@378 490 t loop
adamc@378 491 s/-\n.*//
adamc@378 492 ' >$as_me.lineno &&
adamc@378 493 chmod +x "$as_me.lineno" ||
adamc@1095 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
adamc@378 495
adam@1771 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
adam@1771 497 # already done that, so ensure we don't try to do so again and fall
adam@1771 498 # in an infinite loop. This has already happened in practice.
adam@1771 499 _as_can_reexec=no; export _as_can_reexec
adamc@378 500 # Don't try to exec as it changes $[0], causing all sort of problems
adamc@378 501 # (the dirname of $[0] is not the place where we might find the
adamc@378 502 # original and so on. Autoconf is especially sensitive to this).
adamc@378 503 . "./$as_me.lineno"
adamc@378 504 # Exit status is that of the last command.
adamc@378 505 exit
adamc@378 506 }
adamc@378 507
adamc@378 508 ECHO_C= ECHO_N= ECHO_T=
adamc@1095 509 case `echo -n x` in #(((((
adamc@378 510 -n*)
adamc@1095 511 case `echo 'xy\c'` in
adamc@378 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
adamc@1095 513 xy) ECHO_C='\c';;
adamc@1095 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
adamc@1095 515 ECHO_T=' ';;
adamc@378 516 esac;;
adamc@378 517 *)
adamc@378 518 ECHO_N='-n';;
adamc@378 519 esac
adamc@378 520
adamc@378 521 rm -f conf$$ conf$$.exe conf$$.file
adamc@378 522 if test -d conf$$.dir; then
adamc@378 523 rm -f conf$$.dir/conf$$.file
adamc@378 524 else
adamc@378 525 rm -f conf$$.dir
adamc@1095 526 mkdir conf$$.dir 2>/dev/null
adamc@378 527 fi
adamc@1095 528 if (echo >conf$$.file) 2>/dev/null; then
adamc@1095 529 if ln -s conf$$.file conf$$ 2>/dev/null; then
adamc@1095 530 as_ln_s='ln -s'
adamc@1095 531 # ... but there are two gotchas:
adamc@1095 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
adamc@1095 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
adam@1771 534 # In both cases, we have to default to `cp -pR'.
adamc@1095 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
adam@1771 536 as_ln_s='cp -pR'
adamc@1095 537 elif ln conf$$.file conf$$ 2>/dev/null; then
adamc@1095 538 as_ln_s=ln
adamc@1095 539 else
adam@1771 540 as_ln_s='cp -pR'
adam@1771 541 fi
adam@1771 542 else
adam@1771 543 as_ln_s='cp -pR'
adamc@378 544 fi
adamc@378 545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
adamc@378 546 rmdir conf$$.dir 2>/dev/null
adamc@378 547
adamc@378 548 if mkdir -p . 2>/dev/null; then
adamc@1095 549 as_mkdir_p='mkdir -p "$as_dir"'
adamc@378 550 else
adamc@378 551 test -d ./-p && rmdir ./-p
adamc@378 552 as_mkdir_p=false
adamc@378 553 fi
adamc@378 554
adam@1771 555 as_test_x='test -x'
adam@1771 556 as_executable_p=as_fn_executable_p
adamc@378 557
adamc@378 558 # Sed expression to map a string onto a valid CPP name.
adamc@378 559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
adamc@378 560
adamc@378 561 # Sed expression to map a string onto a valid variable name.
adamc@378 562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
adamc@378 563
adamc@1132 564 SHELL=${CONFIG_SHELL-/bin/sh}
adamc@1132 565
adamc@1132 566
adamc@1095 567 test -n "$DJDIR" || exec 7<&0 </dev/null
adamc@1095 568 exec 6>&1
adamc@378 569
adamc@378 570 # Name of the host.
adam@1315 571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
adamc@378 572 # so uname gets run too.
adamc@378 573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
adamc@378 574
adamc@378 575 #
adamc@378 576 # Initializations.
adamc@378 577 #
adamc@378 578 ac_default_prefix=/usr/local
adamc@378 579 ac_clean_files=
adamc@378 580 ac_config_libobj_dir=.
adamc@378 581 LIBOBJS=
adamc@378 582 cross_compiling=no
adamc@378 583 subdirs=
adamc@378 584 MFLAGS=
adamc@378 585 MAKEFLAGS=
adamc@378 586
adamc@378 587 # Identity of this package.
adamc@1132 588 PACKAGE_NAME='urweb'
adamc@1132 589 PACKAGE_TARNAME='urweb'
adam@1771 590 PACKAGE_VERSION='20120519'
adam@1771 591 PACKAGE_STRING='urweb 20120519'
adamc@1132 592 PACKAGE_BUGREPORT=''
adamc@1132 593 PACKAGE_URL=''
adamc@1132 594
adamc@1132 595 # Factoring default headers for most tests.
adamc@1132 596 ac_includes_default="\
adamc@1132 597 #include <stdio.h>
adamc@1132 598 #ifdef HAVE_SYS_TYPES_H
adamc@1132 599 # include <sys/types.h>
adamc@1132 600 #endif
adamc@1132 601 #ifdef HAVE_SYS_STAT_H
adamc@1132 602 # include <sys/stat.h>
adamc@1132 603 #endif
adamc@1132 604 #ifdef STDC_HEADERS
adamc@1132 605 # include <stdlib.h>
adamc@1132 606 # include <stddef.h>
adamc@1132 607 #else
adamc@1132 608 # ifdef HAVE_STDLIB_H
adamc@1132 609 # include <stdlib.h>
adamc@1132 610 # endif
adamc@1132 611 #endif
adamc@1132 612 #ifdef HAVE_STRING_H
adamc@1132 613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
adamc@1132 614 # include <memory.h>
adamc@1132 615 # endif
adamc@1132 616 # include <string.h>
adamc@1132 617 #endif
adamc@1132 618 #ifdef HAVE_STRINGS_H
adamc@1132 619 # include <strings.h>
adamc@1132 620 #endif
adamc@1132 621 #ifdef HAVE_INTTYPES_H
adamc@1132 622 # include <inttypes.h>
adamc@1132 623 #endif
adamc@1132 624 #ifdef HAVE_STDINT_H
adamc@1132 625 # include <stdint.h>
adamc@1132 626 #endif
adamc@1132 627 #ifdef HAVE_UNISTD_H
adamc@1132 628 # include <unistd.h>
adamc@1132 629 #endif"
adamc@1132 630
adamc@1132 631 ac_subst_vars='am__EXEEXT_FALSE
adamc@1132 632 am__EXEEXT_TRUE
adamc@1132 633 LTLIBOBJS
adamc@1095 634 LIBOBJS
adam@1464 635 SQHEADER
adam@1464 636 MSHEADER
adam@1464 637 PGHEADER
adam@1523 638 CCARGS
adamc@1095 639 SITELISP
adamc@1095 640 INCLUDE
adam@1740 641 SRCLIB
adamc@1095 642 LIB
adamc@1095 643 BIN
adam@1441 644 USE_EMACS_FALSE
adam@1441 645 USE_EMACS_TRUE
adamc@1165 646 MLYACC
adamc@1165 647 MLLEX
adamc@1165 648 MLTON
adam@1368 649 OPENSSL_LDFLAGS
adam@1368 650 OPENSSL_LIBS
adam@1368 651 OPENSSL_INCLUDES
adam@1368 652 PKG_CONFIG
adam@1528 653 PTHREAD_CFLAGS
adam@1528 654 PTHREAD_LIBS
adam@1528 655 PTHREAD_CC
adam@1528 656 ax_pthread_config
adamc@1132 657 OTOOL64
adamc@1132 658 OTOOL
adamc@1132 659 LIPO
adamc@1132 660 NMEDIT
adamc@1132 661 DSYMUTIL
adam@1459 662 MANIFEST_TOOL
adamc@1132 663 RANLIB
adam@1459 664 DLLTOOL
adamc@1132 665 OBJDUMP
adamc@1132 666 LN_S
adamc@1132 667 NM
adamc@1132 668 ac_ct_DUMPBIN
adamc@1132 669 DUMPBIN
adamc@1132 670 LD
adamc@1132 671 FGREP
adamc@1132 672 SED
adamc@1132 673 host_os
adamc@1132 674 host_vendor
adamc@1132 675 host_cpu
adamc@1132 676 host
adamc@1132 677 build_os
adamc@1132 678 build_vendor
adamc@1132 679 build_cpu
adamc@1132 680 build
adamc@1132 681 LIBTOOL
adamc@1132 682 am__fastdepCC_FALSE
adamc@1132 683 am__fastdepCC_TRUE
adamc@1132 684 CCDEPMODE
adam@1693 685 am__nodep
adamc@1132 686 AMDEPBACKSLASH
adamc@1132 687 AMDEP_FALSE
adamc@1132 688 AMDEP_TRUE
adamc@1132 689 am__quote
adamc@1132 690 am__include
adamc@1132 691 DEPDIR
adamc@1132 692 am__untar
adamc@1132 693 am__tar
adamc@1132 694 AMTAR
adamc@1132 695 am__leading_dot
adamc@1132 696 SET_MAKE
adamc@1132 697 AWK
adamc@1132 698 mkdir_p
adamc@1132 699 MKDIR_P
adamc@1132 700 INSTALL_STRIP_PROGRAM
adamc@1132 701 STRIP
adamc@1132 702 install_sh
adamc@1132 703 MAKEINFO
adamc@1132 704 AUTOHEADER
adamc@1132 705 AUTOMAKE
adamc@1132 706 AUTOCONF
adamc@1132 707 ACLOCAL
adamc@1132 708 VERSION
adamc@1132 709 PACKAGE
adamc@1132 710 CYGPATH_W
adamc@1132 711 am__isrc
adamc@1132 712 INSTALL_DATA
adamc@1132 713 INSTALL_SCRIPT
adamc@1132 714 INSTALL_PROGRAM
adam@1760 715 ac_ct_AR
adam@1760 716 AR
adamc@1149 717 EGREP
adamc@1149 718 GREP
adamc@1149 719 CPP
adamc@1149 720 OBJEXT
adamc@1149 721 EXEEXT
adamc@1149 722 ac_ct_CC
adamc@1149 723 CPPFLAGS
adamc@1149 724 LDFLAGS
adamc@1149 725 CFLAGS
adamc@1149 726 CC
adamc@1095 727 target_alias
adamc@1095 728 host_alias
adamc@1095 729 build_alias
adamc@1095 730 LIBS
adamc@1095 731 ECHO_T
adamc@1095 732 ECHO_N
adamc@1095 733 ECHO_C
adamc@1095 734 DEFS
adamc@1095 735 mandir
adamc@1095 736 localedir
adamc@1095 737 libdir
adamc@1095 738 psdir
adamc@1095 739 pdfdir
adamc@1095 740 dvidir
adamc@1095 741 htmldir
adamc@1095 742 infodir
adamc@1095 743 docdir
adamc@1095 744 oldincludedir
adamc@1095 745 includedir
adamc@1095 746 localstatedir
adamc@1095 747 sharedstatedir
adamc@1095 748 sysconfdir
adamc@1095 749 datadir
adamc@1095 750 datarootdir
adamc@1095 751 libexecdir
adamc@1095 752 sbindir
adamc@1095 753 bindir
adamc@1095 754 program_transform_name
adamc@1095 755 prefix
adamc@1095 756 exec_prefix
adamc@1095 757 PACKAGE_URL
adamc@1095 758 PACKAGE_BUGREPORT
adamc@1095 759 PACKAGE_STRING
adamc@1095 760 PACKAGE_VERSION
adamc@1095 761 PACKAGE_TARNAME
adamc@1095 762 PACKAGE_NAME
adamc@378 763 PATH_SEPARATOR
adamc@1095 764 SHELL'
adamc@378 765 ac_subst_files=''
adamc@1095 766 ac_user_opts='
adamc@1095 767 enable_option_checking
adamc@1132 768 enable_dependency_tracking
adamc@1132 769 enable_shared
adamc@1132 770 enable_static
adamc@1132 771 with_pic
adamc@1132 772 enable_fast_install
adamc@1132 773 with_gnu_ld
adam@1459 774 with_sysroot
adamc@1132 775 enable_libtool_lock
adam@1368 776 with_openssl
adam@1441 777 with_emacs
adamc@1095 778 '
adamc@378 779 ac_precious_vars='build_alias
adamc@378 780 host_alias
adamc@1132 781 target_alias
adamc@1132 782 CC
adamc@1132 783 CFLAGS
adamc@1132 784 LDFLAGS
adamc@1132 785 LIBS
adamc@1132 786 CPPFLAGS
adamc@1132 787 CPP'
adamc@378 788
adamc@378 789
adamc@378 790 # Initialize some variables set by options.
adamc@378 791 ac_init_help=
adamc@378 792 ac_init_version=false
adamc@1095 793 ac_unrecognized_opts=
adamc@1095 794 ac_unrecognized_sep=
adamc@378 795 # The variables have the same names as the options, with
adamc@378 796 # dashes changed to underlines.
adamc@378 797 cache_file=/dev/null
adamc@378 798 exec_prefix=NONE
adamc@378 799 no_create=
adamc@378 800 no_recursion=
adamc@378 801 prefix=NONE
adamc@378 802 program_prefix=NONE
adamc@378 803 program_suffix=NONE
adamc@378 804 program_transform_name=s,x,x,
adamc@378 805 silent=
adamc@378 806 site=
adamc@378 807 srcdir=
adamc@378 808 verbose=
adamc@378 809 x_includes=NONE
adamc@378 810 x_libraries=NONE
adamc@378 811
adamc@378 812 # Installation directory options.
adamc@378 813 # These are left unexpanded so users can "make install exec_prefix=/foo"
adamc@378 814 # and all the variables that are supposed to be based on exec_prefix
adamc@378 815 # by default will actually change.
adamc@378 816 # Use braces instead of parens because sh, perl, etc. also accept them.
adamc@378 817 # (The list follows the same order as the GNU Coding Standards.)
adamc@378 818 bindir='${exec_prefix}/bin'
adamc@378 819 sbindir='${exec_prefix}/sbin'
adamc@378 820 libexecdir='${exec_prefix}/libexec'
adamc@378 821 datarootdir='${prefix}/share'
adamc@378 822 datadir='${datarootdir}'
adamc@378 823 sysconfdir='${prefix}/etc'
adamc@378 824 sharedstatedir='${prefix}/com'
adamc@378 825 localstatedir='${prefix}/var'
adamc@378 826 includedir='${prefix}/include'
adamc@378 827 oldincludedir='/usr/include'
adamc@1132 828 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
adamc@378 829 infodir='${datarootdir}/info'
adamc@378 830 htmldir='${docdir}'
adamc@378 831 dvidir='${docdir}'
adamc@378 832 pdfdir='${docdir}'
adamc@378 833 psdir='${docdir}'
adamc@378 834 libdir='${exec_prefix}/lib'
adamc@378 835 localedir='${datarootdir}/locale'
adamc@378 836 mandir='${datarootdir}/man'
adamc@378 837
adamc@378 838 ac_prev=
adamc@378 839 ac_dashdash=
adamc@378 840 for ac_option
adamc@378 841 do
adamc@378 842 # If the previous option needs an argument, assign it.
adamc@378 843 if test -n "$ac_prev"; then
adamc@378 844 eval $ac_prev=\$ac_option
adamc@378 845 ac_prev=
adamc@378 846 continue
adamc@378 847 fi
adamc@378 848
adamc@378 849 case $ac_option in
adam@1315 850 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
adam@1315 851 *=) ac_optarg= ;;
adam@1315 852 *) ac_optarg=yes ;;
adamc@378 853 esac
adamc@378 854
adamc@378 855 # Accept the important Cygnus configure options, so we can diagnose typos.
adamc@378 856
adamc@378 857 case $ac_dashdash$ac_option in
adamc@378 858 --)
adamc@378 859 ac_dashdash=yes ;;
adamc@378 860
adamc@378 861 -bindir | --bindir | --bindi | --bind | --bin | --bi)
adamc@378 862 ac_prev=bindir ;;
adamc@378 863 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
adamc@378 864 bindir=$ac_optarg ;;
adamc@378 865
adamc@378 866 -build | --build | --buil | --bui | --bu)
adamc@378 867 ac_prev=build_alias ;;
adamc@378 868 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
adamc@378 869 build_alias=$ac_optarg ;;
adamc@378 870
adamc@378 871 -cache-file | --cache-file | --cache-fil | --cache-fi \
adamc@378 872 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
adamc@378 873 ac_prev=cache_file ;;
adamc@378 874 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
adamc@378 875 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
adamc@378 876 cache_file=$ac_optarg ;;
adamc@378 877
adamc@378 878 --config-cache | -C)
adamc@378 879 cache_file=config.cache ;;
adamc@378 880
adamc@378 881 -datadir | --datadir | --datadi | --datad)
adamc@378 882 ac_prev=datadir ;;
adamc@378 883 -datadir=* | --datadir=* | --datadi=* | --datad=*)
adamc@378 884 datadir=$ac_optarg ;;
adamc@378 885
adamc@378 886 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
adamc@378 887 | --dataroo | --dataro | --datar)
adamc@378 888 ac_prev=datarootdir ;;
adamc@378 889 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
adamc@378 890 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
adamc@378 891 datarootdir=$ac_optarg ;;
adamc@378 892
adamc@378 893 -disable-* | --disable-*)
adamc@1095 894 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
adamc@378 895 # Reject names that are not valid shell variable names.
adamc@1095 896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
adam@1315 897 as_fn_error $? "invalid feature name: $ac_useropt"
adamc@1095 898 ac_useropt_orig=$ac_useropt
adamc@1095 899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
adamc@1095 900 case $ac_user_opts in
adamc@1095 901 *"
adamc@1095 902 "enable_$ac_useropt"
adamc@1095 903 "*) ;;
adamc@1095 904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
adamc@1095 905 ac_unrecognized_sep=', ';;
adamc@1095 906 esac
adamc@1095 907 eval enable_$ac_useropt=no ;;
adamc@378 908
adamc@378 909 -docdir | --docdir | --docdi | --doc | --do)
adamc@378 910 ac_prev=docdir ;;
adamc@378 911 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
adamc@378 912 docdir=$ac_optarg ;;
adamc@378 913
adamc@378 914 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
adamc@378 915 ac_prev=dvidir ;;
adamc@378 916 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
adamc@378 917 dvidir=$ac_optarg ;;
adamc@378 918
adamc@378 919 -enable-* | --enable-*)
adamc@1095 920 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
adamc@378 921 # Reject names that are not valid shell variable names.
adamc@1095 922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
adam@1315 923 as_fn_error $? "invalid feature name: $ac_useropt"
adamc@1095 924 ac_useropt_orig=$ac_useropt
adamc@1095 925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
adamc@1095 926 case $ac_user_opts in
adamc@1095 927 *"
adamc@1095 928 "enable_$ac_useropt"
adamc@1095 929 "*) ;;
adamc@1095 930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
adamc@1095 931 ac_unrecognized_sep=', ';;
adamc@1095 932 esac
adamc@1095 933 eval enable_$ac_useropt=\$ac_optarg ;;
adamc@378 934
adamc@378 935 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
adamc@378 936 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
adamc@378 937 | --exec | --exe | --ex)
adamc@378 938 ac_prev=exec_prefix ;;
adamc@378 939 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
adamc@378 940 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
adamc@378 941 | --exec=* | --exe=* | --ex=*)
adamc@378 942 exec_prefix=$ac_optarg ;;
adamc@378 943
adamc@378 944 -gas | --gas | --ga | --g)
adamc@378 945 # Obsolete; use --with-gas.
adamc@378 946 with_gas=yes ;;
adamc@378 947
adamc@378 948 -help | --help | --hel | --he | -h)
adamc@378 949 ac_init_help=long ;;
adamc@378 950 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
adamc@378 951 ac_init_help=recursive ;;
adamc@378 952 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
adamc@378 953 ac_init_help=short ;;
adamc@378 954
adamc@378 955 -host | --host | --hos | --ho)
adamc@378 956 ac_prev=host_alias ;;
adamc@378 957 -host=* | --host=* | --hos=* | --ho=*)
adamc@378 958 host_alias=$ac_optarg ;;
adamc@378 959
adamc@378 960 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
adamc@378 961 ac_prev=htmldir ;;
adamc@378 962 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
adamc@378 963 | --ht=*)
adamc@378 964 htmldir=$ac_optarg ;;
adamc@378 965
adamc@378 966 -includedir | --includedir | --includedi | --included | --include \
adamc@378 967 | --includ | --inclu | --incl | --inc)
adamc@378 968 ac_prev=includedir ;;
adamc@378 969 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
adamc@378 970 | --includ=* | --inclu=* | --incl=* | --inc=*)
adamc@378 971 includedir=$ac_optarg ;;
adamc@378 972
adamc@378 973 -infodir | --infodir | --infodi | --infod | --info | --inf)
adamc@378 974 ac_prev=infodir ;;
adamc@378 975 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
adamc@378 976 infodir=$ac_optarg ;;
adamc@378 977
adamc@378 978 -libdir | --libdir | --libdi | --libd)
adamc@378 979 ac_prev=libdir ;;
adamc@378 980 -libdir=* | --libdir=* | --libdi=* | --libd=*)
adamc@378 981 libdir=$ac_optarg ;;
adamc@378 982
adamc@378 983 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
adamc@378 984 | --libexe | --libex | --libe)
adamc@378 985 ac_prev=libexecdir ;;
adamc@378 986 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
adamc@378 987 | --libexe=* | --libex=* | --libe=*)
adamc@378 988 libexecdir=$ac_optarg ;;
adamc@378 989
adamc@378 990 -localedir | --localedir | --localedi | --localed | --locale)
adamc@378 991 ac_prev=localedir ;;
adamc@378 992 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
adamc@378 993 localedir=$ac_optarg ;;
adamc@378 994
adamc@378 995 -localstatedir | --localstatedir | --localstatedi | --localstated \
adamc@378 996 | --localstate | --localstat | --localsta | --localst | --locals)
adamc@378 997 ac_prev=localstatedir ;;
adamc@378 998 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
adamc@378 999 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
adamc@378 1000 localstatedir=$ac_optarg ;;
adamc@378 1001
adamc@378 1002 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
adamc@378 1003 ac_prev=mandir ;;
adamc@378 1004 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
adamc@378 1005 mandir=$ac_optarg ;;
adamc@378 1006
adamc@378 1007 -nfp | --nfp | --nf)
adamc@378 1008 # Obsolete; use --without-fp.
adamc@378 1009 with_fp=no ;;
adamc@378 1010
adamc@378 1011 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
adamc@378 1012 | --no-cr | --no-c | -n)
adamc@378 1013 no_create=yes ;;
adamc@378 1014
adamc@378 1015 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
adamc@378 1016 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
adamc@378 1017 no_recursion=yes ;;
adamc@378 1018
adamc@378 1019 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
adamc@378 1020 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
adamc@378 1021 | --oldin | --oldi | --old | --ol | --o)
adamc@378 1022 ac_prev=oldincludedir ;;
adamc@378 1023 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
adamc@378 1024 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
adamc@378 1025 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
adamc@378 1026 oldincludedir=$ac_optarg ;;
adamc@378 1027
adamc@378 1028 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
adamc@378 1029 ac_prev=prefix ;;
adamc@378 1030 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
adamc@378 1031 prefix=$ac_optarg ;;
adamc@378 1032
adamc@378 1033 -program-prefix | --program-prefix | --program-prefi | --program-pref \
adamc@378 1034 | --program-pre | --program-pr | --program-p)
adamc@378 1035 ac_prev=program_prefix ;;
adamc@378 1036 -program-prefix=* | --program-prefix=* | --program-prefi=* \
adamc@378 1037 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
adamc@378 1038 program_prefix=$ac_optarg ;;
adamc@378 1039
adamc@378 1040 -program-suffix | --program-suffix | --program-suffi | --program-suff \
adamc@378 1041 | --program-suf | --program-su | --program-s)
adamc@378 1042 ac_prev=program_suffix ;;
adamc@378 1043 -program-suffix=* | --program-suffix=* | --program-suffi=* \
adamc@378 1044 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
adamc@378 1045 program_suffix=$ac_optarg ;;
adamc@378 1046
adamc@378 1047 -program-transform-name | --program-transform-name \
adamc@378 1048 | --program-transform-nam | --program-transform-na \
adamc@378 1049 | --program-transform-n | --program-transform- \
adamc@378 1050 | --program-transform | --program-transfor \
adamc@378 1051 | --program-transfo | --program-transf \
adamc@378 1052 | --program-trans | --program-tran \
adamc@378 1053 | --progr-tra | --program-tr | --program-t)
adamc@378 1054 ac_prev=program_transform_name ;;
adamc@378 1055 -program-transform-name=* | --program-transform-name=* \
adamc@378 1056 | --program-transform-nam=* | --program-transform-na=* \
adamc@378 1057 | --program-transform-n=* | --program-transform-=* \
adamc@378 1058 | --program-transform=* | --program-transfor=* \
adamc@378 1059 | --program-transfo=* | --program-transf=* \
adamc@378 1060 | --program-trans=* | --program-tran=* \
adamc@378 1061 | --progr-tra=* | --program-tr=* | --program-t=*)
adamc@378 1062 program_transform_name=$ac_optarg ;;
adamc@378 1063
adamc@378 1064 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
adamc@378 1065 ac_prev=pdfdir ;;
adamc@378 1066 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
adamc@378 1067 pdfdir=$ac_optarg ;;
adamc@378 1068
adamc@378 1069 -psdir | --psdir | --psdi | --psd | --ps)
adamc@378 1070 ac_prev=psdir ;;
adamc@378 1071 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
adamc@378 1072 psdir=$ac_optarg ;;
adamc@378 1073
adamc@378 1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
adamc@378 1075 | -silent | --silent | --silen | --sile | --sil)
adamc@378 1076 silent=yes ;;
adamc@378 1077
adamc@378 1078 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
adamc@378 1079 ac_prev=sbindir ;;
adamc@378 1080 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
adamc@378 1081 | --sbi=* | --sb=*)
adamc@378 1082 sbindir=$ac_optarg ;;
adamc@378 1083
adamc@378 1084 -sharedstatedir | --sharedstatedir | --sharedstatedi \
adamc@378 1085 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
adamc@378 1086 | --sharedst | --shareds | --shared | --share | --shar \
adamc@378 1087 | --sha | --sh)
adamc@378 1088 ac_prev=sharedstatedir ;;
adamc@378 1089 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
adamc@378 1090 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
adamc@378 1091 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
adamc@378 1092 | --sha=* | --sh=*)
adamc@378 1093 sharedstatedir=$ac_optarg ;;
adamc@378 1094
adamc@378 1095 -site | --site | --sit)
adamc@378 1096 ac_prev=site ;;
adamc@378 1097 -site=* | --site=* | --sit=*)
adamc@378 1098 site=$ac_optarg ;;
adamc@378 1099
adamc@378 1100 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
adamc@378 1101 ac_prev=srcdir ;;
adamc@378 1102 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
adamc@378 1103 srcdir=$ac_optarg ;;
adamc@378 1104
adamc@378 1105 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
adamc@378 1106 | --syscon | --sysco | --sysc | --sys | --sy)
adamc@378 1107 ac_prev=sysconfdir ;;
adamc@378 1108 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
adamc@378 1109 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
adamc@378 1110 sysconfdir=$ac_optarg ;;
adamc@378 1111
adamc@378 1112 -target | --target | --targe | --targ | --tar | --ta | --t)
adamc@378 1113 ac_prev=target_alias ;;
adamc@378 1114 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
adamc@378 1115 target_alias=$ac_optarg ;;
adamc@378 1116
adamc@378 1117 -v | -verbose | --verbose | --verbos | --verbo | --verb)
adamc@378 1118 verbose=yes ;;
adamc@378 1119
adamc@378 1120 -version | --version | --versio | --versi | --vers | -V)
adamc@378 1121 ac_init_version=: ;;
adamc@378 1122
adamc@378 1123 -with-* | --with-*)
adamc@1095 1124 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
adamc@378 1125 # Reject names that are not valid shell variable names.
adamc@1095 1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
adam@1315 1127 as_fn_error $? "invalid package name: $ac_useropt"
adamc@1095 1128 ac_useropt_orig=$ac_useropt
adamc@1095 1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
adamc@1095 1130 case $ac_user_opts in
adamc@1095 1131 *"
adamc@1095 1132 "with_$ac_useropt"
adamc@1095 1133 "*) ;;
adamc@1095 1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
adamc@1095 1135 ac_unrecognized_sep=', ';;
adamc@1095 1136 esac
adamc@1095 1137 eval with_$ac_useropt=\$ac_optarg ;;
adamc@378 1138
adamc@378 1139 -without-* | --without-*)
adamc@1095 1140 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
adamc@378 1141 # Reject names that are not valid shell variable names.
adamc@1095 1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
adam@1315 1143 as_fn_error $? "invalid package name: $ac_useropt"
adamc@1095 1144 ac_useropt_orig=$ac_useropt
adamc@1095 1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
adamc@1095 1146 case $ac_user_opts in
adamc@1095 1147 *"
adamc@1095 1148 "with_$ac_useropt"
adamc@1095 1149 "*) ;;
adamc@1095 1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
adamc@1095 1151 ac_unrecognized_sep=', ';;
adamc@1095 1152 esac
adamc@1095 1153 eval with_$ac_useropt=no ;;
adamc@378 1154
adamc@378 1155 --x)
adamc@378 1156 # Obsolete; use --with-x.
adamc@378 1157 with_x=yes ;;
adamc@378 1158
adamc@378 1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
adamc@378 1160 | --x-incl | --x-inc | --x-in | --x-i)
adamc@378 1161 ac_prev=x_includes ;;
adamc@378 1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
adamc@378 1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
adamc@378 1164 x_includes=$ac_optarg ;;
adamc@378 1165
adamc@378 1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
adamc@378 1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
adamc@378 1168 ac_prev=x_libraries ;;
adamc@378 1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
adamc@378 1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
adamc@378 1171 x_libraries=$ac_optarg ;;
adamc@378 1172
adam@1315 1173 -*) as_fn_error $? "unrecognized option: \`$ac_option'
adam@1315 1174 Try \`$0 --help' for more information"
adamc@378 1175 ;;
adamc@378 1176
adamc@378 1177 *=*)
adamc@378 1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
adamc@378 1179 # Reject names that are not valid shell variable names.
adamc@1095 1180 case $ac_envvar in #(
adamc@1095 1181 '' | [0-9]* | *[!_$as_cr_alnum]* )
adam@1315 1182 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
adamc@1095 1183 esac
adamc@378 1184 eval $ac_envvar=\$ac_optarg
adamc@378 1185 export $ac_envvar ;;
adamc@378 1186
adamc@378 1187 *)
adamc@378 1188 # FIXME: should be removed in autoconf 3.0.
adamc@1095 1189 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
adamc@378 1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
adamc@1095 1191 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
adam@1599 1192 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
adamc@378 1193 ;;
adamc@378 1194
adamc@378 1195 esac
adamc@378 1196 done
adamc@378 1197
adamc@378 1198 if test -n "$ac_prev"; then
adamc@378 1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
adam@1315 1200 as_fn_error $? "missing argument to $ac_option"
adamc@378 1201 fi
adamc@378 1202
adamc@1095 1203 if test -n "$ac_unrecognized_opts"; then
adamc@1095 1204 case $enable_option_checking in
adamc@1095 1205 no) ;;
adam@1315 1206 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
adamc@1095 1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
adamc@1095 1208 esac
adamc@1095 1209 fi
adamc@1095 1210
adamc@1095 1211 # Check all directory arguments for consistency.
adamc@378 1212 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
adamc@378 1213 datadir sysconfdir sharedstatedir localstatedir includedir \
adamc@378 1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
adamc@378 1215 libdir localedir mandir
adamc@378 1216 do
adamc@378 1217 eval ac_val=\$$ac_var
adamc@1095 1218 # Remove trailing slashes.
adamc@1095 1219 case $ac_val in
adamc@1095 1220 */ )
adamc@1095 1221 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
adamc@1095 1222 eval $ac_var=\$ac_val;;
adamc@1095 1223 esac
adamc@1095 1224 # Be sure to have absolute directory names.
adamc@378 1225 case $ac_val in
adamc@378 1226 [\\/$]* | ?:[\\/]* ) continue;;
adamc@378 1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
adamc@378 1228 esac
adam@1315 1229 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
adamc@378 1230 done
adamc@378 1231
adamc@378 1232 # There might be people who depend on the old broken behavior: `$host'
adamc@378 1233 # used to hold the argument of --host etc.
adamc@378 1234 # FIXME: To remove some day.
adamc@378 1235 build=$build_alias
adamc@378 1236 host=$host_alias
adamc@378 1237 target=$target_alias
adamc@378 1238
adamc@378 1239 # FIXME: To remove some day.
adamc@378 1240 if test "x$host_alias" != x; then
adamc@378 1241 if test "x$build_alias" = x; then
adamc@378 1242 cross_compiling=maybe
adamc@378 1243 elif test "x$build_alias" != "x$host_alias"; then
adamc@378 1244 cross_compiling=yes
adamc@378 1245 fi
adamc@378 1246 fi
adamc@378 1247
adamc@378 1248 ac_tool_prefix=
adamc@378 1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
adamc@378 1250
adamc@378 1251 test "$silent" = yes && exec 6>/dev/null
adamc@378 1252
adamc@378 1253
adamc@378 1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
adamc@378 1255 ac_ls_di=`ls -di .` &&
adamc@378 1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
adam@1315 1257 as_fn_error $? "working directory cannot be determined"
adamc@378 1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
adam@1315 1259 as_fn_error $? "pwd does not report name of working directory"
adamc@378 1260
adamc@378 1261
adamc@378 1262 # Find the source files, if location was not specified.
adamc@378 1263 if test -z "$srcdir"; then
adamc@378 1264 ac_srcdir_defaulted=yes
adamc@378 1265 # Try the directory containing this script, then the parent directory.
adamc@1095 1266 ac_confdir=`$as_dirname -- "$as_myself" ||
adamc@1095 1267 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
adamc@1095 1268 X"$as_myself" : 'X\(//\)[^/]' \| \
adamc@1095 1269 X"$as_myself" : 'X\(//\)$' \| \
adamc@1095 1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
adamc@1095 1271 $as_echo X"$as_myself" |
adamc@378 1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
adamc@378 1273 s//\1/
adamc@378 1274 q
adamc@378 1275 }
adamc@378 1276 /^X\(\/\/\)[^/].*/{
adamc@378 1277 s//\1/
adamc@378 1278 q
adamc@378 1279 }
adamc@378 1280 /^X\(\/\/\)$/{
adamc@378 1281 s//\1/
adamc@378 1282 q
adamc@378 1283 }
adamc@378 1284 /^X\(\/\).*/{
adamc@378 1285 s//\1/
adamc@378 1286 q
adamc@378 1287 }
adamc@378 1288 s/.*/./; q'`
adamc@378 1289 srcdir=$ac_confdir
adamc@378 1290 if test ! -r "$srcdir/$ac_unique_file"; then
adamc@378 1291 srcdir=..
adamc@378 1292 fi
adamc@378 1293 else
adamc@378 1294 ac_srcdir_defaulted=no
adamc@378 1295 fi
adamc@378 1296 if test ! -r "$srcdir/$ac_unique_file"; then
adamc@378 1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
adam@1315 1298 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
adamc@378 1299 fi
adamc@378 1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
adamc@378 1301 ac_abs_confdir=`(
adam@1315 1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
adamc@378 1303 pwd)`
adamc@378 1304 # When building in place, set srcdir=.
adamc@378 1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
adamc@378 1306 srcdir=.
adamc@378 1307 fi
adamc@378 1308 # Remove unnecessary trailing slashes from srcdir.
adamc@378 1309 # Double slashes in file names in object file debugging info
adamc@378 1310 # mess up M-x gdb in Emacs.
adamc@378 1311 case $srcdir in
adamc@378 1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
adamc@378 1313 esac
adamc@378 1314 for ac_var in $ac_precious_vars; do
adamc@378 1315 eval ac_env_${ac_var}_set=\${${ac_var}+set}
adamc@378 1316 eval ac_env_${ac_var}_value=\$${ac_var}
adamc@378 1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
adamc@378 1318 eval ac_cv_env_${ac_var}_value=\$${ac_var}
adamc@378 1319 done
adamc@378 1320
adamc@378 1321 #
adamc@378 1322 # Report the --help message.
adamc@378 1323 #
adamc@378 1324 if test "$ac_init_help" = "long"; then
adamc@378 1325 # Omit some internal or obsolete options to make the list less imposing.
adamc@378 1326 # This message is too long to be a string in the A/UX 3.1 sh.
adamc@378 1327 cat <<_ACEOF
adam@1771 1328 \`configure' configures urweb 20120519 to adapt to many kinds of systems.
adamc@378 1329
adamc@378 1330 Usage: $0 [OPTION]... [VAR=VALUE]...
adamc@378 1331
adamc@378 1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
adamc@378 1333 VAR=VALUE. See below for descriptions of some of the useful variables.
adamc@378 1334
adamc@378 1335 Defaults for the options are specified in brackets.
adamc@378 1336
adamc@378 1337 Configuration:
adamc@378 1338 -h, --help display this help and exit
adamc@378 1339 --help=short display options specific to this package
adamc@378 1340 --help=recursive display the short help of all the included packages
adamc@378 1341 -V, --version display version information and exit
adam@1315 1342 -q, --quiet, --silent do not print \`checking ...' messages
adamc@378 1343 --cache-file=FILE cache test results in FILE [disabled]
adamc@378 1344 -C, --config-cache alias for \`--cache-file=config.cache'
adamc@378 1345 -n, --no-create do not create output files
adamc@378 1346 --srcdir=DIR find the sources in DIR [configure dir or \`..']
adamc@378 1347
adamc@378 1348 Installation directories:
adamc@378 1349 --prefix=PREFIX install architecture-independent files in PREFIX
adamc@1095 1350 [$ac_default_prefix]
adamc@378 1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
adamc@1095 1352 [PREFIX]
adamc@378 1353
adamc@378 1354 By default, \`make install' will install all the files in
adamc@378 1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
adamc@378 1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
adamc@378 1357 for instance \`--prefix=\$HOME'.
adamc@378 1358
adamc@378 1359 For better control, use the options below.
adamc@378 1360
adamc@378 1361 Fine tuning of the installation directories:
adamc@1095 1362 --bindir=DIR user executables [EPREFIX/bin]
adamc@1095 1363 --sbindir=DIR system admin executables [EPREFIX/sbin]
adamc@1095 1364 --libexecdir=DIR program executables [EPREFIX/libexec]
adamc@1095 1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
adamc@1095 1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
adamc@1095 1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
adamc@1095 1368 --libdir=DIR object code libraries [EPREFIX/lib]
adamc@1095 1369 --includedir=DIR C header files [PREFIX/include]
adamc@1095 1370 --oldincludedir=DIR C header files for non-gcc [/usr/include]
adamc@1095 1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
adamc@1095 1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
adamc@1095 1373 --infodir=DIR info documentation [DATAROOTDIR/info]
adamc@1095 1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
adamc@1095 1375 --mandir=DIR man documentation [DATAROOTDIR/man]
adamc@1132 1376 --docdir=DIR documentation root [DATAROOTDIR/doc/urweb]
adamc@1095 1377 --htmldir=DIR html documentation [DOCDIR]
adamc@1095 1378 --dvidir=DIR dvi documentation [DOCDIR]
adamc@1095 1379 --pdfdir=DIR pdf documentation [DOCDIR]
adamc@1095 1380 --psdir=DIR ps documentation [DOCDIR]
adamc@378 1381 _ACEOF
adamc@378 1382
adamc@378 1383 cat <<\_ACEOF
adamc@1132 1384
adamc@1132 1385 Program names:
adamc@1132 1386 --program-prefix=PREFIX prepend PREFIX to installed program names
adamc@1132 1387 --program-suffix=SUFFIX append SUFFIX to installed program names
adamc@1132 1388 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
adamc@1132 1389
adamc@1132 1390 System types:
adamc@1132 1391 --build=BUILD configure for building on BUILD [guessed]
adamc@1132 1392 --host=HOST cross-compile to build programs to run on HOST [BUILD]
adamc@378 1393 _ACEOF
adamc@378 1394 fi
adamc@378 1395
adamc@378 1396 if test -n "$ac_init_help"; then
adamc@1132 1397 case $ac_init_help in
adam@1771 1398 short | recursive ) echo "Configuration of urweb 20120519:";;
adamc@1132 1399 esac
adamc@378 1400 cat <<\_ACEOF
adamc@378 1401
adamc@1132 1402 Optional Features:
adamc@1132 1403 --disable-option-checking ignore unrecognized --enable/--with options
adamc@1132 1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
adamc@1132 1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
adamc@1132 1406 --disable-dependency-tracking speeds up one-time build
adamc@1132 1407 --enable-dependency-tracking do not reject slow dependency extractors
adamc@1132 1408 --enable-shared[=PKGS] build shared libraries [default=yes]
adamc@1132 1409 --enable-static[=PKGS] build static libraries [default=yes]
adamc@1132 1410 --enable-fast-install[=PKGS]
adamc@1132 1411 optimize for fast installation [default=yes]
adamc@1132 1412 --disable-libtool-lock avoid locking (might break parallel builds)
adamc@1132 1413
adamc@1132 1414 Optional Packages:
adamc@1132 1415 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
adamc@1132 1416 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
adam@1599 1417 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
adamc@1132 1418 both]
adamc@1132 1419 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
adam@1459 1420 --with-sysroot=DIR Search for dependent libraries within DIR
adam@1459 1421 (or the compiler's sysroot if not specified).
adam@1368 1422 --with-openssl=DIR root of the OpenSSL directory
adam@1441 1423 --without-emacs disable installation of Emacs mode
adamc@1132 1424
adamc@1132 1425 Some influential environment variables:
adamc@1132 1426 CC C compiler command
adamc@1132 1427 CFLAGS C compiler flags
adamc@1132 1428 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
adamc@1132 1429 nonstandard directory <lib dir>
adamc@1132 1430 LIBS libraries to pass to the linker, e.g. -l<library>
adamc@1132 1431 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
adamc@1132 1432 you have headers in a nonstandard directory <include dir>
adamc@1132 1433 CPP C preprocessor
adamc@1132 1434
adamc@1132 1435 Use these variables to override the choices made by `configure' or to help
adamc@1132 1436 it to find libraries and programs with nonstandard names/locations.
adamc@1132 1437
adamc@1095 1438 Report bugs to the package provider.
adamc@378 1439 _ACEOF
adamc@378 1440 ac_status=$?
adamc@378 1441 fi
adamc@378 1442
adamc@378 1443 if test "$ac_init_help" = "recursive"; then
adamc@378 1444 # If there are subdirs, report their specific --help.
adamc@378 1445 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
adamc@1095 1446 test -d "$ac_dir" ||
adamc@1095 1447 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
adamc@1095 1448 continue
adamc@378 1449 ac_builddir=.
adamc@378 1450
adamc@378 1451 case "$ac_dir" in
adamc@378 1452 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
adamc@378 1453 *)
adamc@1095 1454 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
adamc@378 1455 # A ".." for each directory in $ac_dir_suffix.
adamc@1095 1456 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
adamc@378 1457 case $ac_top_builddir_sub in
adamc@378 1458 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
adamc@378 1459 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
adamc@378 1460 esac ;;
adamc@378 1461 esac
adamc@378 1462 ac_abs_top_builddir=$ac_pwd
adamc@378 1463 ac_abs_builddir=$ac_pwd$ac_dir_suffix
adamc@378 1464 # for backward compatibility:
adamc@378 1465 ac_top_builddir=$ac_top_build_prefix
adamc@378 1466
adamc@378 1467 case $srcdir in
adamc@378 1468 .) # We are building in place.
adamc@378 1469 ac_srcdir=.
adamc@378 1470 ac_top_srcdir=$ac_top_builddir_sub
adamc@378 1471 ac_abs_top_srcdir=$ac_pwd ;;
adamc@378 1472 [\\/]* | ?:[\\/]* ) # Absolute name.
adamc@378 1473 ac_srcdir=$srcdir$ac_dir_suffix;
adamc@378 1474 ac_top_srcdir=$srcdir
adamc@378 1475 ac_abs_top_srcdir=$srcdir ;;
adamc@378 1476 *) # Relative name.
adamc@378 1477 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
adamc@378 1478 ac_top_srcdir=$ac_top_build_prefix$srcdir
adamc@378 1479 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
adamc@378 1480 esac
adamc@378 1481 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
adamc@378 1482
adamc@378 1483 cd "$ac_dir" || { ac_status=$?; continue; }
adamc@378 1484 # Check for guested configure.
adamc@378 1485 if test -f "$ac_srcdir/configure.gnu"; then
adamc@378 1486 echo &&
adamc@378 1487 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
adamc@378 1488 elif test -f "$ac_srcdir/configure"; then
adamc@378 1489 echo &&
adamc@378 1490 $SHELL "$ac_srcdir/configure" --help=recursive
adamc@378 1491 else
adamc@1095 1492 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
adamc@378 1493 fi || ac_status=$?
adamc@378 1494 cd "$ac_pwd" || { ac_status=$?; break; }
adamc@378 1495 done
adamc@378 1496 fi
adamc@378 1497
adamc@378 1498 test -n "$ac_init_help" && exit $ac_status
adamc@378 1499 if $ac_init_version; then
adamc@378 1500 cat <<\_ACEOF
adam@1771 1501 urweb configure 20120519
adam@1771 1502 generated by GNU Autoconf 2.69
adam@1771 1503
adam@1771 1504 Copyright (C) 2012 Free Software Foundation, Inc.
adamc@378 1505 This configure script is free software; the Free Software Foundation
adamc@378 1506 gives unlimited permission to copy, distribute and modify it.
adamc@378 1507 _ACEOF
adamc@378 1508 exit
adamc@378 1509 fi
adamc@1095 1510
adamc@1095 1511 ## ------------------------ ##
adamc@1095 1512 ## Autoconf initialization. ##
adamc@1095 1513 ## ------------------------ ##
adamc@1132 1514
adamc@1132 1515 # ac_fn_c_try_compile LINENO
adamc@1132 1516 # --------------------------
adamc@1132 1517 # Try to compile conftest.$ac_ext, and return whether this succeeded.
adamc@1132 1518 ac_fn_c_try_compile ()
adamc@1132 1519 {
adamc@1132 1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
adamc@1132 1521 rm -f conftest.$ac_objext
adamc@1132 1522 if { { ac_try="$ac_compile"
adamc@1132 1523 case "(($ac_try" in
adamc@1132 1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1132 1525 *) ac_try_echo=$ac_try;;
adamc@1132 1526 esac
adamc@1132 1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1132 1528 $as_echo "$ac_try_echo"; } >&5
adamc@1132 1529 (eval "$ac_compile") 2>conftest.err
adamc@1132 1530 ac_status=$?
adamc@1132 1531 if test -s conftest.err; then
adamc@1132 1532 grep -v '^ *+' conftest.err >conftest.er1
adamc@1132 1533 cat conftest.er1 >&5
adamc@1132 1534 mv -f conftest.er1 conftest.err
adamc@1132 1535 fi
adamc@1132 1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 1537 test $ac_status = 0; } && {
adamc@1132 1538 test -z "$ac_c_werror_flag" ||
adamc@1132 1539 test ! -s conftest.err
adamc@1132 1540 } && test -s conftest.$ac_objext; then :
adamc@1132 1541 ac_retval=0
adamc@1132 1542 else
adamc@1132 1543 $as_echo "$as_me: failed program was:" >&5
adamc@1132 1544 sed 's/^/| /' conftest.$ac_ext >&5
adamc@1132 1545
adamc@1132 1546 ac_retval=1
adamc@1132 1547 fi
adam@1599 1548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
adamc@1132 1549 as_fn_set_status $ac_retval
adamc@1132 1550
adamc@1132 1551 } # ac_fn_c_try_compile
adamc@1132 1552
adamc@1149 1553 # ac_fn_c_try_cpp LINENO
adamc@1149 1554 # ----------------------
adamc@1149 1555 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
adamc@1149 1556 ac_fn_c_try_cpp ()
adamc@1149 1557 {
adamc@1149 1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
adamc@1149 1559 if { { ac_try="$ac_cpp conftest.$ac_ext"
adamc@1149 1560 case "(($ac_try" in
adamc@1149 1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1149 1562 *) ac_try_echo=$ac_try;;
adamc@1149 1563 esac
adamc@1149 1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1149 1565 $as_echo "$ac_try_echo"; } >&5
adamc@1149 1566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
adamc@1149 1567 ac_status=$?
adamc@1149 1568 if test -s conftest.err; then
adamc@1149 1569 grep -v '^ *+' conftest.err >conftest.er1
adamc@1149 1570 cat conftest.er1 >&5
adamc@1149 1571 mv -f conftest.er1 conftest.err
adamc@1149 1572 fi
adamc@1149 1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adam@1315 1574 test $ac_status = 0; } > conftest.i && {
adamc@1149 1575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
adamc@1149 1576 test ! -s conftest.err
adamc@1149 1577 }; then :
adamc@1149 1578 ac_retval=0
adamc@1149 1579 else
adamc@1149 1580 $as_echo "$as_me: failed program was:" >&5
adamc@1149 1581 sed 's/^/| /' conftest.$ac_ext >&5
adamc@1149 1582
adamc@1149 1583 ac_retval=1
adamc@1149 1584 fi
adam@1599 1585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
adamc@1149 1586 as_fn_set_status $ac_retval
adamc@1149 1587
adamc@1149 1588 } # ac_fn_c_try_cpp
adamc@1149 1589
adamc@1149 1590 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
adamc@1149 1591 # -------------------------------------------------------
adamc@1149 1592 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
adamc@1149 1593 # the include files in INCLUDES and setting the cache variable VAR
adamc@1149 1594 # accordingly.
adamc@1149 1595 ac_fn_c_check_header_mongrel ()
adamc@1149 1596 {
adamc@1149 1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
adam@1599 1598 if eval \${$3+:} false; then :
adamc@1149 1599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
adamc@1149 1600 $as_echo_n "checking for $2... " >&6; }
adam@1599 1601 if eval \${$3+:} false; then :
adamc@1149 1602 $as_echo_n "(cached) " >&6
adamc@1149 1603 fi
adamc@1149 1604 eval ac_res=\$$3
adamc@1149 1605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
adamc@1149 1606 $as_echo "$ac_res" >&6; }
adamc@1149 1607 else
adamc@1149 1608 # Is the header compilable?
adamc@1149 1609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
adamc@1149 1610 $as_echo_n "checking $2 usability... " >&6; }
adamc@1149 1611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 1612 /* end confdefs.h. */
adamc@1149 1613 $4
adamc@1149 1614 #include <$2>
adamc@1149 1615 _ACEOF
adamc@1149 1616 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1149 1617 ac_header_compiler=yes
adamc@1149 1618 else
adamc@1149 1619 ac_header_compiler=no
adamc@1149 1620 fi
adamc@1149 1621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adamc@1149 1622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
adamc@1149 1623 $as_echo "$ac_header_compiler" >&6; }
adamc@1149 1624
adamc@1149 1625 # Is the header present?
adamc@1149 1626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
adamc@1149 1627 $as_echo_n "checking $2 presence... " >&6; }
adamc@1149 1628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 1629 /* end confdefs.h. */
adamc@1149 1630 #include <$2>
adamc@1149 1631 _ACEOF
adamc@1149 1632 if ac_fn_c_try_cpp "$LINENO"; then :
adamc@1149 1633 ac_header_preproc=yes
adamc@1149 1634 else
adamc@1149 1635 ac_header_preproc=no
adamc@1149 1636 fi
adam@1315 1637 rm -f conftest.err conftest.i conftest.$ac_ext
adamc@1149 1638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
adamc@1149 1639 $as_echo "$ac_header_preproc" >&6; }
adamc@1149 1640
adamc@1149 1641 # So? What about this header?
adamc@1149 1642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
adamc@1149 1643 yes:no: )
adamc@1149 1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
adamc@1149 1645 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
adamc@1149 1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
adamc@1149 1647 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
adamc@1149 1648 ;;
adamc@1149 1649 no:yes:* )
adamc@1149 1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
adamc@1149 1651 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
adamc@1149 1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
adamc@1149 1653 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
adamc@1149 1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
adamc@1149 1655 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
adamc@1149 1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
adamc@1149 1657 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
adamc@1149 1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
adamc@1149 1659 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
adamc@1149 1660 ;;
adamc@1149 1661 esac
adamc@1149 1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
adamc@1149 1663 $as_echo_n "checking for $2... " >&6; }
adam@1599 1664 if eval \${$3+:} false; then :
adamc@1149 1665 $as_echo_n "(cached) " >&6
adamc@1149 1666 else
adamc@1149 1667 eval "$3=\$ac_header_compiler"
adamc@1149 1668 fi
adamc@1149 1669 eval ac_res=\$$3
adamc@1149 1670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
adamc@1149 1671 $as_echo "$ac_res" >&6; }
adamc@1149 1672 fi
adam@1599 1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
adamc@1149 1674
adamc@1149 1675 } # ac_fn_c_check_header_mongrel
adamc@1149 1676
adamc@1149 1677 # ac_fn_c_try_run LINENO
adamc@1149 1678 # ----------------------
adamc@1149 1679 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
adamc@1149 1680 # that executables *can* be run.
adamc@1149 1681 ac_fn_c_try_run ()
adamc@1149 1682 {
adamc@1149 1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
adamc@1149 1684 if { { ac_try="$ac_link"
adamc@1149 1685 case "(($ac_try" in
adamc@1149 1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1149 1687 *) ac_try_echo=$ac_try;;
adamc@1149 1688 esac
adamc@1149 1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1149 1690 $as_echo "$ac_try_echo"; } >&5
adamc@1149 1691 (eval "$ac_link") 2>&5
adamc@1149 1692 ac_status=$?
adamc@1149 1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1149 1694 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
adamc@1149 1695 { { case "(($ac_try" in
adamc@1149 1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1149 1697 *) ac_try_echo=$ac_try;;
adamc@1149 1698 esac
adamc@1149 1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1149 1700 $as_echo "$ac_try_echo"; } >&5
adamc@1149 1701 (eval "$ac_try") 2>&5
adamc@1149 1702 ac_status=$?
adamc@1149 1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1149 1704 test $ac_status = 0; }; }; then :
adamc@1149 1705 ac_retval=0
adamc@1149 1706 else
adamc@1149 1707 $as_echo "$as_me: program exited with status $ac_status" >&5
adamc@1149 1708 $as_echo "$as_me: failed program was:" >&5
adamc@1149 1709 sed 's/^/| /' conftest.$ac_ext >&5
adamc@1149 1710
adamc@1149 1711 ac_retval=$ac_status
adamc@1149 1712 fi
adamc@1149 1713 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
adam@1599 1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
adamc@1149 1715 as_fn_set_status $ac_retval
adamc@1149 1716
adamc@1149 1717 } # ac_fn_c_try_run
adamc@1149 1718
adamc@1149 1719 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
adamc@1149 1720 # -------------------------------------------------------
adamc@1149 1721 # Tests whether HEADER exists and can be compiled using the include files in
adamc@1149 1722 # INCLUDES, setting the cache variable VAR accordingly.
adamc@1149 1723 ac_fn_c_check_header_compile ()
adamc@1149 1724 {
adamc@1149 1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
adamc@1149 1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
adamc@1149 1727 $as_echo_n "checking for $2... " >&6; }
adam@1599 1728 if eval \${$3+:} false; then :
adamc@1149 1729 $as_echo_n "(cached) " >&6
adamc@1149 1730 else
adamc@1149 1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 1732 /* end confdefs.h. */
adamc@1149 1733 $4
adamc@1149 1734 #include <$2>
adamc@1149 1735 _ACEOF
adamc@1149 1736 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1149 1737 eval "$3=yes"
adamc@1149 1738 else
adamc@1149 1739 eval "$3=no"
adamc@1149 1740 fi
adamc@1149 1741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adamc@1149 1742 fi
adamc@1149 1743 eval ac_res=\$$3
adamc@1149 1744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
adamc@1149 1745 $as_echo "$ac_res" >&6; }
adam@1599 1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
adamc@1149 1747
adamc@1149 1748 } # ac_fn_c_check_header_compile
adamc@1149 1749
adamc@1132 1750 # ac_fn_c_try_link LINENO
adamc@1132 1751 # -----------------------
adamc@1132 1752 # Try to link conftest.$ac_ext, and return whether this succeeded.
adamc@1132 1753 ac_fn_c_try_link ()
adamc@1132 1754 {
adamc@1132 1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
adamc@1132 1756 rm -f conftest.$ac_objext conftest$ac_exeext
adamc@1132 1757 if { { ac_try="$ac_link"
adamc@1132 1758 case "(($ac_try" in
adamc@1132 1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1132 1760 *) ac_try_echo=$ac_try;;
adamc@1132 1761 esac
adamc@1132 1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1132 1763 $as_echo "$ac_try_echo"; } >&5
adamc@1132 1764 (eval "$ac_link") 2>conftest.err
adamc@1132 1765 ac_status=$?
adamc@1132 1766 if test -s conftest.err; then
adamc@1132 1767 grep -v '^ *+' conftest.err >conftest.er1
adamc@1132 1768 cat conftest.er1 >&5
adamc@1132 1769 mv -f conftest.er1 conftest.err
adamc@1132 1770 fi
adamc@1132 1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 1772 test $ac_status = 0; } && {
adamc@1132 1773 test -z "$ac_c_werror_flag" ||
adamc@1132 1774 test ! -s conftest.err
adamc@1132 1775 } && test -s conftest$ac_exeext && {
adamc@1132 1776 test "$cross_compiling" = yes ||
adam@1771 1777 test -x conftest$ac_exeext
adamc@1132 1778 }; then :
adamc@1132 1779 ac_retval=0
adamc@1132 1780 else
adamc@1132 1781 $as_echo "$as_me: failed program was:" >&5
adamc@1132 1782 sed 's/^/| /' conftest.$ac_ext >&5
adamc@1132 1783
adamc@1132 1784 ac_retval=1
adamc@1132 1785 fi
adamc@1132 1786 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
adamc@1132 1787 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
adamc@1132 1788 # interfere with the next link command; also delete a directory that is
adamc@1132 1789 # left behind by Apple's compiler. We do this before executing the actions.
adamc@1132 1790 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
adam@1599 1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
adamc@1132 1792 as_fn_set_status $ac_retval
adamc@1132 1793
adamc@1132 1794 } # ac_fn_c_try_link
adamc@1132 1795
adamc@1132 1796 # ac_fn_c_check_func LINENO FUNC VAR
adamc@1132 1797 # ----------------------------------
adamc@1132 1798 # Tests whether FUNC exists, setting the cache variable VAR accordingly
adamc@1132 1799 ac_fn_c_check_func ()
adamc@1132 1800 {
adamc@1132 1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
adamc@1132 1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
adamc@1132 1803 $as_echo_n "checking for $2... " >&6; }
adam@1599 1804 if eval \${$3+:} false; then :
adamc@1132 1805 $as_echo_n "(cached) " >&6
adamc@1132 1806 else
adamc@1132 1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 1808 /* end confdefs.h. */
adamc@1132 1809 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
adamc@1132 1810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
adamc@1132 1811 #define $2 innocuous_$2
adamc@1132 1812
adamc@1132 1813 /* System header to define __stub macros and hopefully few prototypes,
adamc@1132 1814 which can conflict with char $2 (); below.
adamc@1132 1815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
adamc@1132 1816 <limits.h> exists even on freestanding compilers. */
adamc@1132 1817
adamc@1132 1818 #ifdef __STDC__
adamc@1132 1819 # include <limits.h>
adamc@1132 1820 #else
adamc@1132 1821 # include <assert.h>
adamc@1132 1822 #endif
adamc@1132 1823
adamc@1132 1824 #undef $2
adamc@1132 1825
adamc@1132 1826 /* Override any GCC internal prototype to avoid an error.
adamc@1132 1827 Use char because int might match the return type of a GCC
adamc@1132 1828 builtin and then its argument prototype would still apply. */
adamc@1132 1829 #ifdef __cplusplus
adamc@1132 1830 extern "C"
adamc@1132 1831 #endif
adamc@1132 1832 char $2 ();
adamc@1132 1833 /* The GNU C library defines this for functions which it implements
adamc@1132 1834 to always fail with ENOSYS. Some functions are actually named
adamc@1132 1835 something starting with __ and the normal name is an alias. */
adamc@1132 1836 #if defined __stub_$2 || defined __stub___$2
adamc@1132 1837 choke me
adamc@1132 1838 #endif
adamc@1132 1839
adamc@1132 1840 int
adamc@1132 1841 main ()
adamc@1132 1842 {
adamc@1132 1843 return $2 ();
adamc@1132 1844 ;
adamc@1132 1845 return 0;
adamc@1132 1846 }
adamc@1132 1847 _ACEOF
adamc@1132 1848 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 1849 eval "$3=yes"
adamc@1132 1850 else
adamc@1132 1851 eval "$3=no"
adamc@1132 1852 fi
adamc@1132 1853 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 1854 conftest$ac_exeext conftest.$ac_ext
adamc@1132 1855 fi
adamc@1132 1856 eval ac_res=\$$3
adamc@1132 1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
adamc@1132 1858 $as_echo "$ac_res" >&6; }
adam@1599 1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
adamc@1132 1860
adamc@1132 1861 } # ac_fn_c_check_func
adamc@378 1862 cat >config.log <<_ACEOF
adamc@378 1863 This file contains any messages produced by compilers while
adamc@378 1864 running configure, to aid debugging if configure makes a mistake.
adamc@378 1865
adam@1771 1866 It was created by urweb $as_me 20120519, which was
adam@1771 1867 generated by GNU Autoconf 2.69. Invocation command line was
adamc@378 1868
adamc@378 1869 $ $0 $@
adamc@378 1870
adamc@378 1871 _ACEOF
adamc@378 1872 exec 5>>config.log
adamc@378 1873 {
adamc@378 1874 cat <<_ASUNAME
adamc@378 1875 ## --------- ##
adamc@378 1876 ## Platform. ##
adamc@378 1877 ## --------- ##
adamc@378 1878
adamc@378 1879 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
adamc@378 1880 uname -m = `(uname -m) 2>/dev/null || echo unknown`
adamc@378 1881 uname -r = `(uname -r) 2>/dev/null || echo unknown`
adamc@378 1882 uname -s = `(uname -s) 2>/dev/null || echo unknown`
adamc@378 1883 uname -v = `(uname -v) 2>/dev/null || echo unknown`
adamc@378 1884
adamc@378 1885 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
adamc@378 1886 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
adamc@378 1887
adamc@378 1888 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
adamc@378 1889 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
adamc@378 1890 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
adamc@378 1891 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
adamc@378 1892 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
adamc@378 1893 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
adamc@378 1894 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
adamc@378 1895
adamc@378 1896 _ASUNAME
adamc@378 1897
adamc@378 1898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@378 1899 for as_dir in $PATH
adamc@378 1900 do
adamc@378 1901 IFS=$as_save_IFS
adamc@378 1902 test -z "$as_dir" && as_dir=.
adamc@1095 1903 $as_echo "PATH: $as_dir"
adamc@1095 1904 done
adamc@378 1905 IFS=$as_save_IFS
adamc@378 1906
adamc@378 1907 } >&5
adamc@378 1908
adamc@378 1909 cat >&5 <<_ACEOF
adamc@378 1910
adamc@378 1911
adamc@378 1912 ## ----------- ##
adamc@378 1913 ## Core tests. ##
adamc@378 1914 ## ----------- ##
adamc@378 1915
adamc@378 1916 _ACEOF
adamc@378 1917
adamc@378 1918
adamc@378 1919 # Keep a trace of the command line.
adamc@378 1920 # Strip out --no-create and --no-recursion so they do not pile up.
adamc@378 1921 # Strip out --silent because we don't want to record it for future runs.
adamc@378 1922 # Also quote any args containing shell meta-characters.
adamc@378 1923 # Make two passes to allow for proper duplicate-argument suppression.
adamc@378 1924 ac_configure_args=
adamc@378 1925 ac_configure_args0=
adamc@378 1926 ac_configure_args1=
adamc@378 1927 ac_must_keep_next=false
adamc@378 1928 for ac_pass in 1 2
adamc@378 1929 do
adamc@378 1930 for ac_arg
adamc@378 1931 do
adamc@378 1932 case $ac_arg in
adamc@378 1933 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
adamc@378 1934 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
adamc@378 1935 | -silent | --silent | --silen | --sile | --sil)
adamc@378 1936 continue ;;
adamc@378 1937 *\'*)
adamc@1095 1938 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
adamc@378 1939 esac
adamc@378 1940 case $ac_pass in
adamc@1095 1941 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
adamc@378 1942 2)
adamc@1095 1943 as_fn_append ac_configure_args1 " '$ac_arg'"
adamc@378 1944 if test $ac_must_keep_next = true; then
adamc@378 1945 ac_must_keep_next=false # Got value, back to normal.
adamc@378 1946 else
adamc@378 1947 case $ac_arg in
adamc@378 1948 *=* | --config-cache | -C | -disable-* | --disable-* \
adamc@378 1949 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
adamc@378 1950 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
adamc@378 1951 | -with-* | --with-* | -without-* | --without-* | --x)
adamc@378 1952 case "$ac_configure_args0 " in
adamc@378 1953 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
adamc@378 1954 esac
adamc@378 1955 ;;
adamc@378 1956 -* ) ac_must_keep_next=true ;;
adamc@378 1957 esac
adamc@378 1958 fi
adamc@1095 1959 as_fn_append ac_configure_args " '$ac_arg'"
adamc@378 1960 ;;
adamc@378 1961 esac
adamc@378 1962 done
adamc@378 1963 done
adamc@1095 1964 { ac_configure_args0=; unset ac_configure_args0;}
adamc@1095 1965 { ac_configure_args1=; unset ac_configure_args1;}
adamc@378 1966
adamc@378 1967 # When interrupted or exit'd, cleanup temporary files, and complete
adamc@378 1968 # config.log. We remove comments because anyway the quotes in there
adamc@378 1969 # would cause problems or look ugly.
adamc@378 1970 # WARNING: Use '\'' to represent an apostrophe within the trap.
adamc@378 1971 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
adamc@378 1972 trap 'exit_status=$?
adamc@378 1973 # Save into config.log some information that might help in debugging.
adamc@378 1974 {
adamc@378 1975 echo
adamc@378 1976
adam@1315 1977 $as_echo "## ---------------- ##
adamc@378 1978 ## Cache variables. ##
adam@1315 1979 ## ---------------- ##"
adamc@378 1980 echo
adamc@378 1981 # The following way of writing the cache mishandles newlines in values,
adamc@378 1982 (
adamc@378 1983 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
adamc@378 1984 eval ac_val=\$$ac_var
adamc@378 1985 case $ac_val in #(
adamc@378 1986 *${as_nl}*)
adamc@378 1987 case $ac_var in #(
adamc@1095 1988 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
adamc@1095 1989 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
adamc@378 1990 esac
adamc@378 1991 case $ac_var in #(
adamc@378 1992 _ | IFS | as_nl) ;; #(
adamc@1095 1993 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
adamc@1095 1994 *) { eval $ac_var=; unset $ac_var;} ;;
adamc@378 1995 esac ;;
adamc@378 1996 esac
adamc@378 1997 done
adamc@378 1998 (set) 2>&1 |
adamc@378 1999 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
adamc@378 2000 *${as_nl}ac_space=\ *)
adamc@378 2001 sed -n \
adamc@378 2002 "s/'\''/'\''\\\\'\'''\''/g;
adamc@378 2003 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
adamc@378 2004 ;; #(
adamc@378 2005 *)
adamc@378 2006 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
adamc@378 2007 ;;
adamc@378 2008 esac |
adamc@378 2009 sort
adamc@378 2010 )
adamc@378 2011 echo
adamc@378 2012
adam@1315 2013 $as_echo "## ----------------- ##
adamc@378 2014 ## Output variables. ##
adam@1315 2015 ## ----------------- ##"
adamc@378 2016 echo
adamc@378 2017 for ac_var in $ac_subst_vars
adamc@378 2018 do
adamc@378 2019 eval ac_val=\$$ac_var
adamc@378 2020 case $ac_val in
adamc@1095 2021 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
adamc@378 2022 esac
adamc@1095 2023 $as_echo "$ac_var='\''$ac_val'\''"
adamc@378 2024 done | sort
adamc@378 2025 echo
adamc@378 2026
adamc@378 2027 if test -n "$ac_subst_files"; then
adam@1315 2028 $as_echo "## ------------------- ##
adamc@378 2029 ## File substitutions. ##
adam@1315 2030 ## ------------------- ##"
adamc@378 2031 echo
adamc@378 2032 for ac_var in $ac_subst_files
adamc@378 2033 do
adamc@378 2034 eval ac_val=\$$ac_var
adamc@378 2035 case $ac_val in
adamc@1095 2036 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
adamc@378 2037 esac
adamc@1095 2038 $as_echo "$ac_var='\''$ac_val'\''"
adamc@378 2039 done | sort
adamc@378 2040 echo
adamc@378 2041 fi
adamc@378 2042
adamc@378 2043 if test -s confdefs.h; then
adam@1315 2044 $as_echo "## ----------- ##
adamc@378 2045 ## confdefs.h. ##
adam@1315 2046 ## ----------- ##"
adamc@378 2047 echo
adamc@378 2048 cat confdefs.h
adamc@378 2049 echo
adamc@378 2050 fi
adamc@378 2051 test "$ac_signal" != 0 &&
adamc@1095 2052 $as_echo "$as_me: caught signal $ac_signal"
adamc@1095 2053 $as_echo "$as_me: exit $exit_status"
adamc@378 2054 } >&5
adamc@378 2055 rm -f core *.core core.conftest.* &&
adamc@378 2056 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
adamc@378 2057 exit $exit_status
adamc@378 2058 ' 0
adamc@378 2059 for ac_signal in 1 2 13 15; do
adamc@1095 2060 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
adamc@378 2061 done
adamc@378 2062 ac_signal=0
adamc@378 2063
adamc@378 2064 # confdefs.h avoids OS command line length limits that DEFS can exceed.
adamc@378 2065 rm -f -r conftest* confdefs.h
adamc@378 2066
adamc@1095 2067 $as_echo "/* confdefs.h */" > confdefs.h
adamc@1095 2068
adamc@378 2069 # Predefined preprocessor variables.
adamc@378 2070
adamc@378 2071 cat >>confdefs.h <<_ACEOF
adamc@378 2072 #define PACKAGE_NAME "$PACKAGE_NAME"
adamc@378 2073 _ACEOF
adamc@378 2074
adamc@378 2075 cat >>confdefs.h <<_ACEOF
adamc@378 2076 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
adamc@378 2077 _ACEOF
adamc@378 2078
adamc@378 2079 cat >>confdefs.h <<_ACEOF
adamc@378 2080 #define PACKAGE_VERSION "$PACKAGE_VERSION"
adamc@378 2081 _ACEOF
adamc@378 2082
adamc@378 2083 cat >>confdefs.h <<_ACEOF
adamc@378 2084 #define PACKAGE_STRING "$PACKAGE_STRING"
adamc@378 2085 _ACEOF
adamc@378 2086
adamc@378 2087 cat >>confdefs.h <<_ACEOF
adamc@378 2088 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
adamc@378 2089 _ACEOF
adamc@378 2090
adamc@1095 2091 cat >>confdefs.h <<_ACEOF
adamc@1095 2092 #define PACKAGE_URL "$PACKAGE_URL"
adamc@1095 2093 _ACEOF
adamc@1095 2094
adamc@378 2095
adamc@378 2096 # Let the site file select an alternate cache file if it wants to.
adamc@1095 2097 # Prefer an explicitly selected file to automatically selected ones.
adamc@1095 2098 ac_site_file1=NONE
adamc@1095 2099 ac_site_file2=NONE
adamc@378 2100 if test -n "$CONFIG_SITE"; then
adam@1315 2101 # We do not want a PATH search for config.site.
adam@1315 2102 case $CONFIG_SITE in #((
adam@1315 2103 -*) ac_site_file1=./$CONFIG_SITE;;
adam@1315 2104 */*) ac_site_file1=$CONFIG_SITE;;
adam@1315 2105 *) ac_site_file1=./$CONFIG_SITE;;
adam@1315 2106 esac
adamc@378 2107 elif test "x$prefix" != xNONE; then
adamc@1095 2108 ac_site_file1=$prefix/share/config.site
adamc@1095 2109 ac_site_file2=$prefix/etc/config.site
adamc@378 2110 else
adamc@1095 2111 ac_site_file1=$ac_default_prefix/share/config.site
adamc@1095 2112 ac_site_file2=$ac_default_prefix/etc/config.site
adamc@378 2113 fi
adamc@1095 2114 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
adamc@378 2115 do
adamc@1095 2116 test "x$ac_site_file" = xNONE && continue
adamc@1095 2117 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
adamc@1095 2118 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
adamc@1095 2119 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
adamc@378 2120 sed 's/^/| /' "$ac_site_file" >&5
adam@1315 2121 . "$ac_site_file" \
adam@1315 2122 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
adam@1315 2123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
adam@1315 2124 as_fn_error $? "failed to load site script $ac_site_file
adam@1599 2125 See \`config.log' for more details" "$LINENO" 5; }
adamc@378 2126 fi
adamc@378 2127 done
adamc@378 2128
adamc@378 2129 if test -r "$cache_file"; then
adamc@1095 2130 # Some versions of bash will fail to source /dev/null (special files
adamc@1095 2131 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
adamc@1095 2132 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
adamc@1095 2133 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
adamc@1095 2134 $as_echo "$as_me: loading cache $cache_file" >&6;}
adamc@378 2135 case $cache_file in
adamc@378 2136 [\\/]* | ?:[\\/]* ) . "$cache_file";;
adamc@378 2137 *) . "./$cache_file";;
adamc@378 2138 esac
adamc@378 2139 fi
adamc@378 2140 else
adamc@1095 2141 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
adamc@1095 2142 $as_echo "$as_me: creating cache $cache_file" >&6;}
adamc@378 2143 >$cache_file
adamc@378 2144 fi
adamc@378 2145
adamc@378 2146 # Check that the precious variables saved in the cache have kept the same
adamc@378 2147 # value.
adamc@378 2148 ac_cache_corrupted=false
adamc@378 2149 for ac_var in $ac_precious_vars; do
adamc@378 2150 eval ac_old_set=\$ac_cv_env_${ac_var}_set
adamc@378 2151 eval ac_new_set=\$ac_env_${ac_var}_set
adamc@378 2152 eval ac_old_val=\$ac_cv_env_${ac_var}_value
adamc@378 2153 eval ac_new_val=\$ac_env_${ac_var}_value
adamc@378 2154 case $ac_old_set,$ac_new_set in
adamc@378 2155 set,)
adamc@1095 2156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
adamc@1095 2157 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
adamc@378 2158 ac_cache_corrupted=: ;;
adamc@378 2159 ,set)
adamc@1095 2160 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
adamc@1095 2161 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
adamc@378 2162 ac_cache_corrupted=: ;;
adamc@378 2163 ,);;
adamc@378 2164 *)
adamc@378 2165 if test "x$ac_old_val" != "x$ac_new_val"; then
adamc@1095 2166 # differences in whitespace do not lead to failure.
adamc@1095 2167 ac_old_val_w=`echo x $ac_old_val`
adamc@1095 2168 ac_new_val_w=`echo x $ac_new_val`
adamc@1095 2169 if test "$ac_old_val_w" != "$ac_new_val_w"; then
adamc@1095 2170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
adamc@1095 2171 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
adamc@1095 2172 ac_cache_corrupted=:
adamc@1095 2173 else
adamc@1095 2174 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
adamc@1095 2175 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
adamc@1095 2176 eval $ac_var=\$ac_old_val
adamc@1095 2177 fi
adamc@1095 2178 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
adamc@1095 2179 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
adamc@1095 2180 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
adamc@1095 2181 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
adamc@378 2182 fi;;
adamc@378 2183 esac
adamc@378 2184 # Pass precious variables to config.status.
adamc@378 2185 if test "$ac_new_set" = set; then
adamc@378 2186 case $ac_new_val in
adamc@1095 2187 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
adamc@378 2188 *) ac_arg=$ac_var=$ac_new_val ;;
adamc@378 2189 esac
adamc@378 2190 case " $ac_configure_args " in
adamc@378 2191 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
adamc@1095 2192 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
adamc@378 2193 esac
adamc@378 2194 fi
adamc@378 2195 done
adamc@378 2196 if $ac_cache_corrupted; then
adamc@1095 2197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
adamc@1095 2198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
adamc@1095 2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
adamc@1095 2200 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
adam@1315 2201 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
adamc@378 2202 fi
adamc@1095 2203 ## -------------------- ##
adamc@1095 2204 ## Main body of script. ##
adamc@1095 2205 ## -------------------- ##
adamc@378 2206
adamc@378 2207 ac_ext=c
adamc@378 2208 ac_cpp='$CPP $CPPFLAGS'
adamc@378 2209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@378 2210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@378 2211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@378 2212
adamc@378 2213
adam@1772 2214 WORKING_VERSION=1
adamc@1149 2215 ac_ext=c
adamc@1149 2216 ac_cpp='$CPP $CPPFLAGS'
adamc@1149 2217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@1149 2218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@1149 2219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@1149 2220 if test -n "$ac_tool_prefix"; then
adamc@1149 2221 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
adamc@1149 2222 set dummy ${ac_tool_prefix}gcc; ac_word=$2
adamc@1149 2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1149 2224 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 2225 if ${ac_cv_prog_CC+:} false; then :
adamc@1149 2226 $as_echo_n "(cached) " >&6
adamc@1149 2227 else
adamc@1149 2228 if test -n "$CC"; then
adamc@1149 2229 ac_cv_prog_CC="$CC" # Let the user override the test.
adamc@1149 2230 else
adamc@1149 2231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1149 2232 for as_dir in $PATH
adamc@1149 2233 do
adamc@1149 2234 IFS=$as_save_IFS
adamc@1149 2235 test -z "$as_dir" && as_dir=.
adamc@1149 2236 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 2237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1149 2238 ac_cv_prog_CC="${ac_tool_prefix}gcc"
adamc@1149 2239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1149 2240 break 2
adamc@1149 2241 fi
adamc@1149 2242 done
adamc@1149 2243 done
adamc@1149 2244 IFS=$as_save_IFS
adamc@1149 2245
adamc@1149 2246 fi
adamc@1149 2247 fi
adamc@1149 2248 CC=$ac_cv_prog_CC
adamc@1149 2249 if test -n "$CC"; then
adamc@1149 2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
adamc@1149 2251 $as_echo "$CC" >&6; }
adamc@1149 2252 else
adamc@1149 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1149 2254 $as_echo "no" >&6; }
adamc@1149 2255 fi
adamc@1149 2256
adamc@1149 2257
adamc@1149 2258 fi
adamc@1149 2259 if test -z "$ac_cv_prog_CC"; then
adamc@1149 2260 ac_ct_CC=$CC
adamc@1149 2261 # Extract the first word of "gcc", so it can be a program name with args.
adamc@1149 2262 set dummy gcc; ac_word=$2
adamc@1149 2263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1149 2264 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 2265 if ${ac_cv_prog_ac_ct_CC+:} false; then :
adamc@1149 2266 $as_echo_n "(cached) " >&6
adamc@1149 2267 else
adamc@1149 2268 if test -n "$ac_ct_CC"; then
adamc@1149 2269 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
adamc@1149 2270 else
adamc@1149 2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1149 2272 for as_dir in $PATH
adamc@1149 2273 do
adamc@1149 2274 IFS=$as_save_IFS
adamc@1149 2275 test -z "$as_dir" && as_dir=.
adamc@1149 2276 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 2277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1149 2278 ac_cv_prog_ac_ct_CC="gcc"
adamc@1149 2279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1149 2280 break 2
adamc@1149 2281 fi
adamc@1149 2282 done
adamc@1149 2283 done
adamc@1149 2284 IFS=$as_save_IFS
adamc@1149 2285
adamc@1149 2286 fi
adamc@1149 2287 fi
adamc@1149 2288 ac_ct_CC=$ac_cv_prog_ac_ct_CC
adamc@1149 2289 if test -n "$ac_ct_CC"; then
adamc@1149 2290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
adamc@1149 2291 $as_echo "$ac_ct_CC" >&6; }
adamc@1149 2292 else
adamc@1149 2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1149 2294 $as_echo "no" >&6; }
adamc@1149 2295 fi
adamc@1149 2296
adamc@1149 2297 if test "x$ac_ct_CC" = x; then
adamc@1149 2298 CC=""
adamc@1149 2299 else
adamc@1149 2300 case $cross_compiling:$ac_tool_warned in
adamc@1149 2301 yes:)
adamc@1149 2302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1149 2303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1149 2304 ac_tool_warned=yes ;;
adamc@1149 2305 esac
adamc@1149 2306 CC=$ac_ct_CC
adamc@1149 2307 fi
adamc@1149 2308 else
adamc@1149 2309 CC="$ac_cv_prog_CC"
adamc@1149 2310 fi
adamc@1149 2311
adamc@1149 2312 if test -z "$CC"; then
adamc@1149 2313 if test -n "$ac_tool_prefix"; then
adamc@1149 2314 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
adamc@1149 2315 set dummy ${ac_tool_prefix}cc; ac_word=$2
adamc@1149 2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1149 2317 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 2318 if ${ac_cv_prog_CC+:} false; then :
adamc@1149 2319 $as_echo_n "(cached) " >&6
adamc@1149 2320 else
adamc@1149 2321 if test -n "$CC"; then
adamc@1149 2322 ac_cv_prog_CC="$CC" # Let the user override the test.
adamc@1149 2323 else
adamc@1149 2324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1149 2325 for as_dir in $PATH
adamc@1149 2326 do
adamc@1149 2327 IFS=$as_save_IFS
adamc@1149 2328 test -z "$as_dir" && as_dir=.
adamc@1149 2329 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 2330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1149 2331 ac_cv_prog_CC="${ac_tool_prefix}cc"
adamc@1149 2332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1149 2333 break 2
adamc@1149 2334 fi
adamc@1149 2335 done
adamc@1149 2336 done
adamc@1149 2337 IFS=$as_save_IFS
adamc@1149 2338
adamc@1149 2339 fi
adamc@1149 2340 fi
adamc@1149 2341 CC=$ac_cv_prog_CC
adamc@1149 2342 if test -n "$CC"; then
adamc@1149 2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
adamc@1149 2344 $as_echo "$CC" >&6; }
adamc@1149 2345 else
adamc@1149 2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1149 2347 $as_echo "no" >&6; }
adamc@1149 2348 fi
adamc@1149 2349
adamc@1149 2350
adamc@1149 2351 fi
adamc@1149 2352 fi
adamc@1149 2353 if test -z "$CC"; then
adamc@1149 2354 # Extract the first word of "cc", so it can be a program name with args.
adamc@1149 2355 set dummy cc; ac_word=$2
adamc@1149 2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1149 2357 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 2358 if ${ac_cv_prog_CC+:} false; then :
adamc@1149 2359 $as_echo_n "(cached) " >&6
adamc@1149 2360 else
adamc@1149 2361 if test -n "$CC"; then
adamc@1149 2362 ac_cv_prog_CC="$CC" # Let the user override the test.
adamc@1149 2363 else
adamc@1149 2364 ac_prog_rejected=no
adamc@1149 2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1149 2366 for as_dir in $PATH
adamc@1149 2367 do
adamc@1149 2368 IFS=$as_save_IFS
adamc@1149 2369 test -z "$as_dir" && as_dir=.
adamc@1149 2370 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 2371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1149 2372 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
adamc@1149 2373 ac_prog_rejected=yes
adamc@1149 2374 continue
adamc@1149 2375 fi
adamc@1149 2376 ac_cv_prog_CC="cc"
adamc@1149 2377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1149 2378 break 2
adamc@1149 2379 fi
adamc@1149 2380 done
adamc@1149 2381 done
adamc@1149 2382 IFS=$as_save_IFS
adamc@1149 2383
adamc@1149 2384 if test $ac_prog_rejected = yes; then
adamc@1149 2385 # We found a bogon in the path, so make sure we never use it.
adamc@1149 2386 set dummy $ac_cv_prog_CC
adamc@1149 2387 shift
adamc@1149 2388 if test $# != 0; then
adamc@1149 2389 # We chose a different compiler from the bogus one.
adamc@1149 2390 # However, it has the same basename, so the bogon will be chosen
adamc@1149 2391 # first if we set CC to just the basename; use the full file name.
adamc@1149 2392 shift
adamc@1149 2393 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
adamc@1149 2394 fi
adamc@1149 2395 fi
adamc@1149 2396 fi
adamc@1149 2397 fi
adamc@1149 2398 CC=$ac_cv_prog_CC
adamc@1149 2399 if test -n "$CC"; then
adamc@1149 2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
adamc@1149 2401 $as_echo "$CC" >&6; }
adamc@1149 2402 else
adamc@1149 2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1149 2404 $as_echo "no" >&6; }
adamc@1149 2405 fi
adamc@1149 2406
adamc@1149 2407
adamc@1149 2408 fi
adamc@1149 2409 if test -z "$CC"; then
adamc@1149 2410 if test -n "$ac_tool_prefix"; then
adamc@1149 2411 for ac_prog in cl.exe
adamc@1149 2412 do
adamc@1149 2413 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
adamc@1149 2414 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
adamc@1149 2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1149 2416 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 2417 if ${ac_cv_prog_CC+:} false; then :
adamc@1149 2418 $as_echo_n "(cached) " >&6
adamc@1149 2419 else
adamc@1149 2420 if test -n "$CC"; then
adamc@1149 2421 ac_cv_prog_CC="$CC" # Let the user override the test.
adamc@1149 2422 else
adamc@1149 2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1149 2424 for as_dir in $PATH
adamc@1149 2425 do
adamc@1149 2426 IFS=$as_save_IFS
adamc@1149 2427 test -z "$as_dir" && as_dir=.
adamc@1149 2428 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 2429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1149 2430 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
adamc@1149 2431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1149 2432 break 2
adamc@1149 2433 fi
adamc@1149 2434 done
adamc@1149 2435 done
adamc@1149 2436 IFS=$as_save_IFS
adamc@1149 2437
adamc@1149 2438 fi
adamc@1149 2439 fi
adamc@1149 2440 CC=$ac_cv_prog_CC
adamc@1149 2441 if test -n "$CC"; then
adamc@1149 2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
adamc@1149 2443 $as_echo "$CC" >&6; }
adamc@1149 2444 else
adamc@1149 2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1149 2446 $as_echo "no" >&6; }
adamc@1149 2447 fi
adamc@1149 2448
adamc@1149 2449
adamc@1149 2450 test -n "$CC" && break
adamc@1149 2451 done
adamc@1149 2452 fi
adamc@1149 2453 if test -z "$CC"; then
adamc@1149 2454 ac_ct_CC=$CC
adamc@1149 2455 for ac_prog in cl.exe
adamc@1149 2456 do
adamc@1149 2457 # Extract the first word of "$ac_prog", so it can be a program name with args.
adamc@1149 2458 set dummy $ac_prog; ac_word=$2
adamc@1149 2459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1149 2460 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 2461 if ${ac_cv_prog_ac_ct_CC+:} false; then :
adamc@1149 2462 $as_echo_n "(cached) " >&6
adamc@1149 2463 else
adamc@1149 2464 if test -n "$ac_ct_CC"; then
adamc@1149 2465 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
adamc@1149 2466 else
adamc@1149 2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1149 2468 for as_dir in $PATH
adamc@1149 2469 do
adamc@1149 2470 IFS=$as_save_IFS
adamc@1149 2471 test -z "$as_dir" && as_dir=.
adamc@1149 2472 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 2473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1149 2474 ac_cv_prog_ac_ct_CC="$ac_prog"
adamc@1149 2475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1149 2476 break 2
adamc@1149 2477 fi
adamc@1149 2478 done
adamc@1149 2479 done
adamc@1149 2480 IFS=$as_save_IFS
adamc@1149 2481
adamc@1149 2482 fi
adamc@1149 2483 fi
adamc@1149 2484 ac_ct_CC=$ac_cv_prog_ac_ct_CC
adamc@1149 2485 if test -n "$ac_ct_CC"; then
adamc@1149 2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
adamc@1149 2487 $as_echo "$ac_ct_CC" >&6; }
adamc@1149 2488 else
adamc@1149 2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1149 2490 $as_echo "no" >&6; }
adamc@1149 2491 fi
adamc@1149 2492
adamc@1149 2493
adamc@1149 2494 test -n "$ac_ct_CC" && break
adamc@1149 2495 done
adamc@1149 2496
adamc@1149 2497 if test "x$ac_ct_CC" = x; then
adamc@1149 2498 CC=""
adamc@1149 2499 else
adamc@1149 2500 case $cross_compiling:$ac_tool_warned in
adamc@1149 2501 yes:)
adamc@1149 2502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1149 2503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1149 2504 ac_tool_warned=yes ;;
adamc@1149 2505 esac
adamc@1149 2506 CC=$ac_ct_CC
adamc@1149 2507 fi
adamc@1149 2508 fi
adamc@1149 2509
adamc@1149 2510 fi
adamc@1149 2511
adamc@1149 2512
adamc@1149 2513 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
adamc@1149 2514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
adam@1315 2515 as_fn_error $? "no acceptable C compiler found in \$PATH
adam@1599 2516 See \`config.log' for more details" "$LINENO" 5; }
adamc@1149 2517
adamc@1149 2518 # Provide some information about the compiler.
adamc@1149 2519 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
adamc@1149 2520 set X $ac_compile
adamc@1149 2521 ac_compiler=$2
adamc@1149 2522 for ac_option in --version -v -V -qversion; do
adamc@1149 2523 { { ac_try="$ac_compiler $ac_option >&5"
adamc@1149 2524 case "(($ac_try" in
adamc@1149 2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1149 2526 *) ac_try_echo=$ac_try;;
adamc@1149 2527 esac
adamc@1149 2528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1149 2529 $as_echo "$ac_try_echo"; } >&5
adamc@1149 2530 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
adamc@1149 2531 ac_status=$?
adamc@1149 2532 if test -s conftest.err; then
adamc@1149 2533 sed '10a\
adamc@1149 2534 ... rest of stderr output deleted ...
adamc@1149 2535 10q' conftest.err >conftest.er1
adamc@1149 2536 cat conftest.er1 >&5
adamc@1149 2537 fi
adamc@1149 2538 rm -f conftest.er1 conftest.err
adamc@1149 2539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1149 2540 test $ac_status = 0; }
adamc@1149 2541 done
adamc@1149 2542
adamc@1149 2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 2544 /* end confdefs.h. */
adamc@1149 2545
adamc@1149 2546 int
adamc@1149 2547 main ()
adamc@1149 2548 {
adamc@1149 2549
adamc@1149 2550 ;
adamc@1149 2551 return 0;
adamc@1149 2552 }
adamc@1149 2553 _ACEOF
adamc@1149 2554 ac_clean_files_save=$ac_clean_files
adamc@1149 2555 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
adamc@1149 2556 # Try to create an executable without -o first, disregard a.out.
adamc@1149 2557 # It will help us diagnose broken compilers, and finding out an intuition
adamc@1149 2558 # of exeext.
adamc@1149 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
adamc@1149 2560 $as_echo_n "checking whether the C compiler works... " >&6; }
adamc@1149 2561 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
adamc@1149 2562
adamc@1149 2563 # The possible output files:
adamc@1149 2564 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
adamc@1149 2565
adamc@1149 2566 ac_rmfiles=
adamc@1149 2567 for ac_file in $ac_files
adamc@1149 2568 do
adamc@1149 2569 case $ac_file in
adamc@1149 2570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
adamc@1149 2571 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
adamc@1149 2572 esac
adamc@1149 2573 done
adamc@1149 2574 rm -f $ac_rmfiles
adamc@1149 2575
adamc@1149 2576 if { { ac_try="$ac_link_default"
adamc@1149 2577 case "(($ac_try" in
adamc@1149 2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1149 2579 *) ac_try_echo=$ac_try;;
adamc@1149 2580 esac
adamc@1149 2581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1149 2582 $as_echo "$ac_try_echo"; } >&5
adamc@1149 2583 (eval "$ac_link_default") 2>&5
adamc@1149 2584 ac_status=$?
adamc@1149 2585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1149 2586 test $ac_status = 0; }; then :
adamc@1149 2587 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
adamc@1149 2588 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
adamc@1149 2589 # in a Makefile. We should not override ac_cv_exeext if it was cached,
adamc@1149 2590 # so that the user can short-circuit this test for compilers unknown to
adamc@1149 2591 # Autoconf.
adamc@1149 2592 for ac_file in $ac_files ''
adamc@1149 2593 do
adamc@1149 2594 test -f "$ac_file" || continue
adamc@1149 2595 case $ac_file in
adamc@1149 2596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
adamc@1149 2597 ;;
adamc@1149 2598 [ab].out )
adamc@1149 2599 # We found the default executable, but exeext='' is most
adamc@1149 2600 # certainly right.
adamc@1149 2601 break;;
adamc@1149 2602 *.* )
adamc@1149 2603 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
adamc@1149 2604 then :; else
adamc@1149 2605 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
adamc@1149 2606 fi
adamc@1149 2607 # We set ac_cv_exeext here because the later test for it is not
adamc@1149 2608 # safe: cross compilers may not add the suffix if given an `-o'
adamc@1149 2609 # argument, so we may need to know it at that point already.
adamc@1149 2610 # Even if this section looks crufty: it has the advantage of
adamc@1149 2611 # actually working.
adamc@1149 2612 break;;
adamc@1149 2613 * )
adamc@1149 2614 break;;
adamc@1149 2615 esac
adamc@1149 2616 done
adamc@1149 2617 test "$ac_cv_exeext" = no && ac_cv_exeext=
adamc@1149 2618
adamc@1149 2619 else
adamc@1149 2620 ac_file=''
adamc@1149 2621 fi
adamc@1149 2622 if test -z "$ac_file"; then :
adamc@1149 2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1149 2624 $as_echo "no" >&6; }
adamc@1149 2625 $as_echo "$as_me: failed program was:" >&5
adamc@1149 2626 sed 's/^/| /' conftest.$ac_ext >&5
adamc@1149 2627
adamc@1149 2628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
adamc@1149 2629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
adam@1315 2630 as_fn_error 77 "C compiler cannot create executables
adam@1599 2631 See \`config.log' for more details" "$LINENO" 5; }
adamc@1149 2632 else
adamc@1149 2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
adamc@1149 2634 $as_echo "yes" >&6; }
adamc@1149 2635 fi
adamc@1149 2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
adamc@1149 2637 $as_echo_n "checking for C compiler default output file name... " >&6; }
adamc@1149 2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
adamc@1149 2639 $as_echo "$ac_file" >&6; }
adamc@1149 2640 ac_exeext=$ac_cv_exeext
adamc@1149 2641
adamc@1149 2642 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
adamc@1149 2643 ac_clean_files=$ac_clean_files_save
adamc@1149 2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
adamc@1149 2645 $as_echo_n "checking for suffix of executables... " >&6; }
adamc@1149 2646 if { { ac_try="$ac_link"
adamc@1149 2647 case "(($ac_try" in
adamc@1149 2648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1149 2649 *) ac_try_echo=$ac_try;;
adamc@1149 2650 esac
adamc@1149 2651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1149 2652 $as_echo "$ac_try_echo"; } >&5
adamc@1149 2653 (eval "$ac_link") 2>&5
adamc@1149 2654 ac_status=$?
adamc@1149 2655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1149 2656 test $ac_status = 0; }; then :
adamc@1149 2657 # If both `conftest.exe' and `conftest' are `present' (well, observable)
adamc@1149 2658 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
adamc@1149 2659 # work properly (i.e., refer to `conftest.exe'), while it won't with
adamc@1149 2660 # `rm'.
adamc@1149 2661 for ac_file in conftest.exe conftest conftest.*; do
adamc@1149 2662 test -f "$ac_file" || continue
adamc@1149 2663 case $ac_file in
adamc@1149 2664 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
adamc@1149 2665 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
adamc@1149 2666 break;;
adamc@1149 2667 * ) break;;
adamc@1149 2668 esac
adamc@1149 2669 done
adamc@1149 2670 else
adamc@1149 2671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
adamc@1149 2672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
adam@1315 2673 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
adam@1599 2674 See \`config.log' for more details" "$LINENO" 5; }
adamc@1149 2675 fi
adamc@1149 2676 rm -f conftest conftest$ac_cv_exeext
adamc@1149 2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
adamc@1149 2678 $as_echo "$ac_cv_exeext" >&6; }
adamc@1149 2679
adamc@1149 2680 rm -f conftest.$ac_ext
adamc@1149 2681 EXEEXT=$ac_cv_exeext
adamc@1149 2682 ac_exeext=$EXEEXT
adamc@1149 2683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 2684 /* end confdefs.h. */
adamc@1149 2685 #include <stdio.h>
adamc@1149 2686 int
adamc@1149 2687 main ()
adamc@1149 2688 {
adamc@1149 2689 FILE *f = fopen ("conftest.out", "w");
adamc@1149 2690 return ferror (f) || fclose (f) != 0;
adamc@1149 2691
adamc@1149 2692 ;
adamc@1149 2693 return 0;
adamc@1149 2694 }
adamc@1149 2695 _ACEOF
adamc@1149 2696 ac_clean_files="$ac_clean_files conftest.out"
adamc@1149 2697 # Check that the compiler produces executables we can run. If not, either
adamc@1149 2698 # the compiler is broken, or we cross compile.
adamc@1149 2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
adamc@1149 2700 $as_echo_n "checking whether we are cross compiling... " >&6; }
adamc@1149 2701 if test "$cross_compiling" != yes; then
adamc@1149 2702 { { ac_try="$ac_link"
adamc@1149 2703 case "(($ac_try" in
adamc@1149 2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1149 2705 *) ac_try_echo=$ac_try;;
adamc@1149 2706 esac
adamc@1149 2707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1149 2708 $as_echo "$ac_try_echo"; } >&5
adamc@1149 2709 (eval "$ac_link") 2>&5
adamc@1149 2710 ac_status=$?
adamc@1149 2711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1149 2712 test $ac_status = 0; }
adamc@1149 2713 if { ac_try='./conftest$ac_cv_exeext'
adamc@1149 2714 { { case "(($ac_try" in
adamc@1149 2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1149 2716 *) ac_try_echo=$ac_try;;
adamc@1149 2717 esac
adamc@1149 2718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1149 2719 $as_echo "$ac_try_echo"; } >&5
adamc@1149 2720 (eval "$ac_try") 2>&5
adamc@1149 2721 ac_status=$?
adamc@1149 2722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1149 2723 test $ac_status = 0; }; }; then
adamc@1149 2724 cross_compiling=no
adamc@1149 2725 else
adamc@1149 2726 if test "$cross_compiling" = maybe; then
adamc@1149 2727 cross_compiling=yes
adamc@1149 2728 else
adamc@1149 2729 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
adamc@1149 2730 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
adam@1315 2731 as_fn_error $? "cannot run C compiled programs.
adamc@1149 2732 If you meant to cross compile, use \`--host'.
adam@1599 2733 See \`config.log' for more details" "$LINENO" 5; }
adamc@1149 2734 fi
adamc@1149 2735 fi
adamc@1149 2736 fi
adamc@1149 2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
adamc@1149 2738 $as_echo "$cross_compiling" >&6; }
adamc@1149 2739
adamc@1149 2740 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
adamc@1149 2741 ac_clean_files=$ac_clean_files_save
adamc@1149 2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
adamc@1149 2743 $as_echo_n "checking for suffix of object files... " >&6; }
adam@1599 2744 if ${ac_cv_objext+:} false; then :
adamc@1149 2745 $as_echo_n "(cached) " >&6
adamc@1149 2746 else
adamc@1149 2747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 2748 /* end confdefs.h. */
adamc@1149 2749
adamc@1149 2750 int
adamc@1149 2751 main ()
adamc@1149 2752 {
adamc@1149 2753
adamc@1149 2754 ;
adamc@1149 2755 return 0;
adamc@1149 2756 }
adamc@1149 2757 _ACEOF
adamc@1149 2758 rm -f conftest.o conftest.obj
adamc@1149 2759 if { { ac_try="$ac_compile"
adamc@1149 2760 case "(($ac_try" in
adamc@1149 2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1149 2762 *) ac_try_echo=$ac_try;;
adamc@1149 2763 esac
adamc@1149 2764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1149 2765 $as_echo "$ac_try_echo"; } >&5
adamc@1149 2766 (eval "$ac_compile") 2>&5
adamc@1149 2767 ac_status=$?
adamc@1149 2768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1149 2769 test $ac_status = 0; }; then :
adamc@1149 2770 for ac_file in conftest.o conftest.obj conftest.*; do
adamc@1149 2771 test -f "$ac_file" || continue;
adamc@1149 2772 case $ac_file in
adamc@1149 2773 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
adamc@1149 2774 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
adamc@1149 2775 break;;
adamc@1149 2776 esac
adamc@1149 2777 done
adamc@1149 2778 else
adamc@1149 2779 $as_echo "$as_me: failed program was:" >&5
adamc@1149 2780 sed 's/^/| /' conftest.$ac_ext >&5
adamc@1149 2781
adamc@1149 2782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
adamc@1149 2783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
adam@1315 2784 as_fn_error $? "cannot compute suffix of object files: cannot compile
adam@1599 2785 See \`config.log' for more details" "$LINENO" 5; }
adamc@1149 2786 fi
adamc@1149 2787 rm -f conftest.$ac_cv_objext conftest.$ac_ext
adamc@1149 2788 fi
adamc@1149 2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
adamc@1149 2790 $as_echo "$ac_cv_objext" >&6; }
adamc@1149 2791 OBJEXT=$ac_cv_objext
adamc@1149 2792 ac_objext=$OBJEXT
adamc@1149 2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
adamc@1149 2794 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
adam@1599 2795 if ${ac_cv_c_compiler_gnu+:} false; then :
adamc@1149 2796 $as_echo_n "(cached) " >&6
adamc@1149 2797 else
adamc@1149 2798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 2799 /* end confdefs.h. */
adamc@1149 2800
adamc@1149 2801 int
adamc@1149 2802 main ()
adamc@1149 2803 {
adamc@1149 2804 #ifndef __GNUC__
adamc@1149 2805 choke me
adamc@1149 2806 #endif
adamc@1149 2807
adamc@1149 2808 ;
adamc@1149 2809 return 0;
adamc@1149 2810 }
adamc@1149 2811 _ACEOF
adamc@1149 2812 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1149 2813 ac_compiler_gnu=yes
adamc@1149 2814 else
adamc@1149 2815 ac_compiler_gnu=no
adamc@1149 2816 fi
adamc@1149 2817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adamc@1149 2818 ac_cv_c_compiler_gnu=$ac_compiler_gnu
adamc@1149 2819
adamc@1149 2820 fi
adamc@1149 2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
adamc@1149 2822 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
adamc@1149 2823 if test $ac_compiler_gnu = yes; then
adamc@1149 2824 GCC=yes
adamc@1149 2825 else
adamc@1149 2826 GCC=
adamc@1149 2827 fi
adamc@1149 2828 ac_test_CFLAGS=${CFLAGS+set}
adamc@1149 2829 ac_save_CFLAGS=$CFLAGS
adamc@1149 2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
adamc@1149 2831 $as_echo_n "checking whether $CC accepts -g... " >&6; }
adam@1599 2832 if ${ac_cv_prog_cc_g+:} false; then :
adamc@1149 2833 $as_echo_n "(cached) " >&6
adamc@1149 2834 else
adamc@1149 2835 ac_save_c_werror_flag=$ac_c_werror_flag
adamc@1149 2836 ac_c_werror_flag=yes
adamc@1149 2837 ac_cv_prog_cc_g=no
adamc@1149 2838 CFLAGS="-g"
adamc@1149 2839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 2840 /* end confdefs.h. */
adamc@1149 2841
adamc@1149 2842 int
adamc@1149 2843 main ()
adamc@1149 2844 {
adamc@1149 2845
adamc@1149 2846 ;
adamc@1149 2847 return 0;
adamc@1149 2848 }
adamc@1149 2849 _ACEOF
adamc@1149 2850 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1149 2851 ac_cv_prog_cc_g=yes
adamc@1149 2852 else
adamc@1149 2853 CFLAGS=""
adamc@1149 2854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 2855 /* end confdefs.h. */
adamc@1149 2856
adamc@1149 2857 int
adamc@1149 2858 main ()
adamc@1149 2859 {
adamc@1149 2860
adamc@1149 2861 ;
adamc@1149 2862 return 0;
adamc@1149 2863 }
adamc@1149 2864 _ACEOF
adamc@1149 2865 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1149 2866
adamc@1149 2867 else
adamc@1149 2868 ac_c_werror_flag=$ac_save_c_werror_flag
adamc@1149 2869 CFLAGS="-g"
adamc@1149 2870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 2871 /* end confdefs.h. */
adamc@1149 2872
adamc@1149 2873 int
adamc@1149 2874 main ()
adamc@1149 2875 {
adamc@1149 2876
adamc@1149 2877 ;
adamc@1149 2878 return 0;
adamc@1149 2879 }
adamc@1149 2880 _ACEOF
adamc@1149 2881 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1149 2882 ac_cv_prog_cc_g=yes
adamc@1149 2883 fi
adamc@1149 2884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adamc@1149 2885 fi
adamc@1149 2886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adamc@1149 2887 fi
adamc@1149 2888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adamc@1149 2889 ac_c_werror_flag=$ac_save_c_werror_flag
adamc@1149 2890 fi
adamc@1149 2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
adamc@1149 2892 $as_echo "$ac_cv_prog_cc_g" >&6; }
adamc@1149 2893 if test "$ac_test_CFLAGS" = set; then
adamc@1149 2894 CFLAGS=$ac_save_CFLAGS
adamc@1149 2895 elif test $ac_cv_prog_cc_g = yes; then
adamc@1149 2896 if test "$GCC" = yes; then
adamc@1149 2897 CFLAGS="-g -O2"
adamc@1149 2898 else
adamc@1149 2899 CFLAGS="-g"
adamc@1149 2900 fi
adamc@1149 2901 else
adamc@1149 2902 if test "$GCC" = yes; then
adamc@1149 2903 CFLAGS="-O2"
adamc@1149 2904 else
adamc@1149 2905 CFLAGS=
adamc@1149 2906 fi
adamc@1149 2907 fi
adamc@1149 2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
adamc@1149 2909 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
adam@1599 2910 if ${ac_cv_prog_cc_c89+:} false; then :
adamc@1149 2911 $as_echo_n "(cached) " >&6
adamc@1149 2912 else
adamc@1149 2913 ac_cv_prog_cc_c89=no
adamc@1149 2914 ac_save_CC=$CC
adamc@1149 2915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 2916 /* end confdefs.h. */
adamc@1149 2917 #include <stdarg.h>
adamc@1149 2918 #include <stdio.h>
adam@1771 2919 struct stat;
adamc@1149 2920 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
adamc@1149 2921 struct buf { int x; };
adamc@1149 2922 FILE * (*rcsopen) (struct buf *, struct stat *, int);
adamc@1149 2923 static char *e (p, i)
adamc@1149 2924 char **p;
adamc@1149 2925 int i;
adamc@1149 2926 {
adamc@1149 2927 return p[i];
adamc@1149 2928 }
adamc@1149 2929 static char *f (char * (*g) (char **, int), char **p, ...)
adamc@1149 2930 {
adamc@1149 2931 char *s;
adamc@1149 2932 va_list v;
adamc@1149 2933 va_start (v,p);
adamc@1149 2934 s = g (p, va_arg (v,int));
adamc@1149 2935 va_end (v);
adamc@1149 2936 return s;
adamc@1149 2937 }
adamc@1149 2938
adamc@1149 2939 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
adamc@1149 2940 function prototypes and stuff, but not '\xHH' hex character constants.
adamc@1149 2941 These don't provoke an error unfortunately, instead are silently treated
adamc@1149 2942 as 'x'. The following induces an error, until -std is added to get
adamc@1149 2943 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
adamc@1149 2944 array size at least. It's necessary to write '\x00'==0 to get something
adamc@1149 2945 that's true only with -std. */
adamc@1149 2946 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
adamc@1149 2947
adamc@1149 2948 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
adamc@1149 2949 inside strings and character constants. */
adamc@1149 2950 #define FOO(x) 'x'
adamc@1149 2951 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
adamc@1149 2952
adamc@1149 2953 int test (int i, double x);
adamc@1149 2954 struct s1 {int (*f) (int a);};
adamc@1149 2955 struct s2 {int (*f) (double a);};
adamc@1149 2956 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
adamc@1149 2957 int argc;
adamc@1149 2958 char **argv;
adamc@1149 2959 int
adamc@1149 2960 main ()
adamc@1149 2961 {
adamc@1149 2962 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
adamc@1149 2963 ;
adamc@1149 2964 return 0;
adamc@1149 2965 }
adamc@1149 2966 _ACEOF
adamc@1149 2967 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
adamc@1149 2968 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
adamc@1149 2969 do
adamc@1149 2970 CC="$ac_save_CC $ac_arg"
adamc@1149 2971 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1149 2972 ac_cv_prog_cc_c89=$ac_arg
adamc@1149 2973 fi
adamc@1149 2974 rm -f core conftest.err conftest.$ac_objext
adamc@1149 2975 test "x$ac_cv_prog_cc_c89" != "xno" && break
adamc@1149 2976 done
adamc@1149 2977 rm -f conftest.$ac_ext
adamc@1149 2978 CC=$ac_save_CC
adamc@1149 2979
adamc@1149 2980 fi
adamc@1149 2981 # AC_CACHE_VAL
adamc@1149 2982 case "x$ac_cv_prog_cc_c89" in
adamc@1149 2983 x)
adamc@1149 2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
adamc@1149 2985 $as_echo "none needed" >&6; } ;;
adamc@1149 2986 xno)
adamc@1149 2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
adamc@1149 2988 $as_echo "unsupported" >&6; } ;;
adamc@1149 2989 *)
adamc@1149 2990 CC="$CC $ac_cv_prog_cc_c89"
adamc@1149 2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
adamc@1149 2992 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
adamc@1149 2993 esac
adamc@1149 2994 if test "x$ac_cv_prog_cc_c89" != xno; then :
adamc@1149 2995
adamc@1149 2996 fi
adamc@1149 2997
adamc@1149 2998 ac_ext=c
adamc@1149 2999 ac_cpp='$CPP $CPPFLAGS'
adamc@1149 3000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@1149 3001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@1149 3002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@1149 3003
adamc@1149 3004
adamc@1149 3005 ac_ext=c
adamc@1149 3006 ac_cpp='$CPP $CPPFLAGS'
adamc@1149 3007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@1149 3008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@1149 3009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@1149 3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
adamc@1149 3011 $as_echo_n "checking how to run the C preprocessor... " >&6; }
adamc@1149 3012 # On Suns, sometimes $CPP names a directory.
adamc@1149 3013 if test -n "$CPP" && test -d "$CPP"; then
adamc@1149 3014 CPP=
adamc@1149 3015 fi
adamc@1149 3016 if test -z "$CPP"; then
adam@1599 3017 if ${ac_cv_prog_CPP+:} false; then :
adamc@1149 3018 $as_echo_n "(cached) " >&6
adamc@1149 3019 else
adamc@1149 3020 # Double quotes because CPP needs to be expanded
adamc@1149 3021 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
adamc@1149 3022 do
adamc@1149 3023 ac_preproc_ok=false
adamc@1149 3024 for ac_c_preproc_warn_flag in '' yes
adamc@1149 3025 do
adamc@1149 3026 # Use a header file that comes with gcc, so configuring glibc
adamc@1149 3027 # with a fresh cross-compiler works.
adamc@1149 3028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
adamc@1149 3029 # <limits.h> exists even on freestanding compilers.
adamc@1149 3030 # On the NeXT, cc -E runs the code through the compiler's parser,
adamc@1149 3031 # not just through cpp. "Syntax error" is here to catch this case.
adamc@1149 3032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 3033 /* end confdefs.h. */
adamc@1149 3034 #ifdef __STDC__
adamc@1149 3035 # include <limits.h>
adamc@1149 3036 #else
adamc@1149 3037 # include <assert.h>
adamc@1149 3038 #endif
adamc@1149 3039 Syntax error
adamc@1149 3040 _ACEOF
adamc@1149 3041 if ac_fn_c_try_cpp "$LINENO"; then :
adamc@1149 3042
adamc@1149 3043 else
adamc@1149 3044 # Broken: fails on valid input.
adamc@1149 3045 continue
adamc@1149 3046 fi
adam@1315 3047 rm -f conftest.err conftest.i conftest.$ac_ext
adamc@1149 3048
adamc@1149 3049 # OK, works on sane cases. Now check whether nonexistent headers
adamc@1149 3050 # can be detected and how.
adamc@1149 3051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 3052 /* end confdefs.h. */
adamc@1149 3053 #include <ac_nonexistent.h>
adamc@1149 3054 _ACEOF
adamc@1149 3055 if ac_fn_c_try_cpp "$LINENO"; then :
adamc@1149 3056 # Broken: success on invalid input.
adamc@1149 3057 continue
adamc@1149 3058 else
adamc@1149 3059 # Passes both tests.
adamc@1149 3060 ac_preproc_ok=:
adamc@1149 3061 break
adamc@1149 3062 fi
adam@1315 3063 rm -f conftest.err conftest.i conftest.$ac_ext
adamc@1149 3064
adamc@1149 3065 done
adamc@1149 3066 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
adam@1315 3067 rm -f conftest.i conftest.err conftest.$ac_ext
adamc@1149 3068 if $ac_preproc_ok; then :
adamc@1149 3069 break
adamc@1149 3070 fi
adamc@1149 3071
adamc@1149 3072 done
adamc@1149 3073 ac_cv_prog_CPP=$CPP
adamc@1149 3074
adamc@1149 3075 fi
adamc@1149 3076 CPP=$ac_cv_prog_CPP
adamc@1149 3077 else
adamc@1149 3078 ac_cv_prog_CPP=$CPP
adamc@1149 3079 fi
adamc@1149 3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
adamc@1149 3081 $as_echo "$CPP" >&6; }
adamc@1149 3082 ac_preproc_ok=false
adamc@1149 3083 for ac_c_preproc_warn_flag in '' yes
adamc@1149 3084 do
adamc@1149 3085 # Use a header file that comes with gcc, so configuring glibc
adamc@1149 3086 # with a fresh cross-compiler works.
adamc@1149 3087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
adamc@1149 3088 # <limits.h> exists even on freestanding compilers.
adamc@1149 3089 # On the NeXT, cc -E runs the code through the compiler's parser,
adamc@1149 3090 # not just through cpp. "Syntax error" is here to catch this case.
adamc@1149 3091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 3092 /* end confdefs.h. */
adamc@1149 3093 #ifdef __STDC__
adamc@1149 3094 # include <limits.h>
adamc@1149 3095 #else
adamc@1149 3096 # include <assert.h>
adamc@1149 3097 #endif
adamc@1149 3098 Syntax error
adamc@1149 3099 _ACEOF
adamc@1149 3100 if ac_fn_c_try_cpp "$LINENO"; then :
adamc@1149 3101
adamc@1149 3102 else
adamc@1149 3103 # Broken: fails on valid input.
adamc@1149 3104 continue
adamc@1149 3105 fi
adam@1315 3106 rm -f conftest.err conftest.i conftest.$ac_ext
adamc@1149 3107
adamc@1149 3108 # OK, works on sane cases. Now check whether nonexistent headers
adamc@1149 3109 # can be detected and how.
adamc@1149 3110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 3111 /* end confdefs.h. */
adamc@1149 3112 #include <ac_nonexistent.h>
adamc@1149 3113 _ACEOF
adamc@1149 3114 if ac_fn_c_try_cpp "$LINENO"; then :
adamc@1149 3115 # Broken: success on invalid input.
adamc@1149 3116 continue
adamc@1149 3117 else
adamc@1149 3118 # Passes both tests.
adamc@1149 3119 ac_preproc_ok=:
adamc@1149 3120 break
adamc@1149 3121 fi
adam@1315 3122 rm -f conftest.err conftest.i conftest.$ac_ext
adamc@1149 3123
adamc@1149 3124 done
adamc@1149 3125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
adam@1315 3126 rm -f conftest.i conftest.err conftest.$ac_ext
adamc@1149 3127 if $ac_preproc_ok; then :
adamc@1149 3128
adamc@1149 3129 else
adamc@1149 3130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
adamc@1149 3131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
adam@1315 3132 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
adam@1599 3133 See \`config.log' for more details" "$LINENO" 5; }
adamc@1149 3134 fi
adamc@1149 3135
adamc@1149 3136 ac_ext=c
adamc@1149 3137 ac_cpp='$CPP $CPPFLAGS'
adamc@1149 3138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@1149 3139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@1149 3140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@1149 3141
adamc@1149 3142
adamc@1149 3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
adamc@1149 3144 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
adam@1599 3145 if ${ac_cv_path_GREP+:} false; then :
adamc@1149 3146 $as_echo_n "(cached) " >&6
adamc@1149 3147 else
adamc@1149 3148 if test -z "$GREP"; then
adamc@1149 3149 ac_path_GREP_found=false
adamc@1149 3150 # Loop through the user's path and test for each of PROGNAME-LIST
adamc@1149 3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1149 3152 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
adamc@1149 3153 do
adamc@1149 3154 IFS=$as_save_IFS
adamc@1149 3155 test -z "$as_dir" && as_dir=.
adamc@1149 3156 for ac_prog in grep ggrep; do
adamc@1149 3157 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1149 3158 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
adam@1771 3159 as_fn_executable_p "$ac_path_GREP" || continue
adamc@1149 3160 # Check for GNU ac_path_GREP and select it if it is found.
adamc@1149 3161 # Check for GNU $ac_path_GREP
adamc@1149 3162 case `"$ac_path_GREP" --version 2>&1` in
adamc@1149 3163 *GNU*)
adamc@1149 3164 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
adamc@1149 3165 *)
adamc@1149 3166 ac_count=0
adamc@1149 3167 $as_echo_n 0123456789 >"conftest.in"
adamc@1149 3168 while :
adamc@1149 3169 do
adamc@1149 3170 cat "conftest.in" "conftest.in" >"conftest.tmp"
adamc@1149 3171 mv "conftest.tmp" "conftest.in"
adamc@1149 3172 cp "conftest.in" "conftest.nl"
adamc@1149 3173 $as_echo 'GREP' >> "conftest.nl"
adamc@1149 3174 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
adamc@1149 3175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
adamc@1149 3176 as_fn_arith $ac_count + 1 && ac_count=$as_val
adamc@1149 3177 if test $ac_count -gt ${ac_path_GREP_max-0}; then
adamc@1149 3178 # Best one so far, save it but keep looking for a better one
adamc@1149 3179 ac_cv_path_GREP="$ac_path_GREP"
adamc@1149 3180 ac_path_GREP_max=$ac_count
adamc@1149 3181 fi
adamc@1149 3182 # 10*(2^10) chars as input seems more than enough
adamc@1149 3183 test $ac_count -gt 10 && break
adamc@1149 3184 done
adamc@1149 3185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
adamc@1149 3186 esac
adamc@1149 3187
adamc@1149 3188 $ac_path_GREP_found && break 3
adamc@1149 3189 done
adamc@1149 3190 done
adamc@1149 3191 done
adamc@1149 3192 IFS=$as_save_IFS
adamc@1149 3193 if test -z "$ac_cv_path_GREP"; then
adam@1315 3194 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
adamc@1149 3195 fi
adamc@1149 3196 else
adamc@1149 3197 ac_cv_path_GREP=$GREP
adamc@1149 3198 fi
adamc@1149 3199
adamc@1149 3200 fi
adamc@1149 3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
adamc@1149 3202 $as_echo "$ac_cv_path_GREP" >&6; }
adamc@1149 3203 GREP="$ac_cv_path_GREP"
adamc@1149 3204
adamc@1149 3205
adamc@1149 3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
adamc@1149 3207 $as_echo_n "checking for egrep... " >&6; }
adam@1599 3208 if ${ac_cv_path_EGREP+:} false; then :
adamc@1149 3209 $as_echo_n "(cached) " >&6
adamc@1149 3210 else
adamc@1149 3211 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
adamc@1149 3212 then ac_cv_path_EGREP="$GREP -E"
adamc@1149 3213 else
adamc@1149 3214 if test -z "$EGREP"; then
adamc@1149 3215 ac_path_EGREP_found=false
adamc@1149 3216 # Loop through the user's path and test for each of PROGNAME-LIST
adamc@1149 3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1149 3218 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
adamc@1149 3219 do
adamc@1149 3220 IFS=$as_save_IFS
adamc@1149 3221 test -z "$as_dir" && as_dir=.
adamc@1149 3222 for ac_prog in egrep; do
adamc@1149 3223 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1149 3224 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
adam@1771 3225 as_fn_executable_p "$ac_path_EGREP" || continue
adamc@1149 3226 # Check for GNU ac_path_EGREP and select it if it is found.
adamc@1149 3227 # Check for GNU $ac_path_EGREP
adamc@1149 3228 case `"$ac_path_EGREP" --version 2>&1` in
adamc@1149 3229 *GNU*)
adamc@1149 3230 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
adamc@1149 3231 *)
adamc@1149 3232 ac_count=0
adamc@1149 3233 $as_echo_n 0123456789 >"conftest.in"
adamc@1149 3234 while :
adamc@1149 3235 do
adamc@1149 3236 cat "conftest.in" "conftest.in" >"conftest.tmp"
adamc@1149 3237 mv "conftest.tmp" "conftest.in"
adamc@1149 3238 cp "conftest.in" "conftest.nl"
adamc@1149 3239 $as_echo 'EGREP' >> "conftest.nl"
adamc@1149 3240 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
adamc@1149 3241 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
adamc@1149 3242 as_fn_arith $ac_count + 1 && ac_count=$as_val
adamc@1149 3243 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
adamc@1149 3244 # Best one so far, save it but keep looking for a better one
adamc@1149 3245 ac_cv_path_EGREP="$ac_path_EGREP"
adamc@1149 3246 ac_path_EGREP_max=$ac_count
adamc@1149 3247 fi
adamc@1149 3248 # 10*(2^10) chars as input seems more than enough
adamc@1149 3249 test $ac_count -gt 10 && break
adamc@1149 3250 done
adamc@1149 3251 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
adamc@1149 3252 esac
adamc@1149 3253
adamc@1149 3254 $ac_path_EGREP_found && break 3
adamc@1149 3255 done
adamc@1149 3256 done
adamc@1149 3257 done
adamc@1149 3258 IFS=$as_save_IFS
adamc@1149 3259 if test -z "$ac_cv_path_EGREP"; then
adam@1315 3260 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
adamc@1149 3261 fi
adamc@1149 3262 else
adamc@1149 3263 ac_cv_path_EGREP=$EGREP
adamc@1149 3264 fi
adamc@1149 3265
adamc@1149 3266 fi
adamc@1149 3267 fi
adamc@1149 3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
adamc@1149 3269 $as_echo "$ac_cv_path_EGREP" >&6; }
adamc@1149 3270 EGREP="$ac_cv_path_EGREP"
adamc@1149 3271
adamc@1149 3272
adamc@1149 3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
adamc@1149 3274 $as_echo_n "checking for ANSI C header files... " >&6; }
adam@1599 3275 if ${ac_cv_header_stdc+:} false; then :
adamc@1149 3276 $as_echo_n "(cached) " >&6
adamc@1149 3277 else
adamc@1149 3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 3279 /* end confdefs.h. */
adamc@1149 3280 #include <stdlib.h>
adamc@1149 3281 #include <stdarg.h>
adamc@1149 3282 #include <string.h>
adamc@1149 3283 #include <float.h>
adamc@1149 3284
adamc@1149 3285 int
adamc@1149 3286 main ()
adamc@1149 3287 {
adamc@1149 3288
adamc@1149 3289 ;
adamc@1149 3290 return 0;
adamc@1149 3291 }
adamc@1149 3292 _ACEOF
adamc@1149 3293 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1149 3294 ac_cv_header_stdc=yes
adamc@1149 3295 else
adamc@1149 3296 ac_cv_header_stdc=no
adamc@1149 3297 fi
adamc@1149 3298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adamc@1149 3299
adamc@1149 3300 if test $ac_cv_header_stdc = yes; then
adamc@1149 3301 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
adamc@1149 3302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 3303 /* end confdefs.h. */
adamc@1149 3304 #include <string.h>
adamc@1149 3305
adamc@1149 3306 _ACEOF
adamc@1149 3307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
adamc@1149 3308 $EGREP "memchr" >/dev/null 2>&1; then :
adamc@1149 3309
adamc@1149 3310 else
adamc@1149 3311 ac_cv_header_stdc=no
adamc@1149 3312 fi
adamc@1149 3313 rm -f conftest*
adamc@1149 3314
adamc@1149 3315 fi
adamc@1149 3316
adamc@1149 3317 if test $ac_cv_header_stdc = yes; then
adamc@1149 3318 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
adamc@1149 3319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 3320 /* end confdefs.h. */
adamc@1149 3321 #include <stdlib.h>
adamc@1149 3322
adamc@1149 3323 _ACEOF
adamc@1149 3324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
adamc@1149 3325 $EGREP "free" >/dev/null 2>&1; then :
adamc@1149 3326
adamc@1149 3327 else
adamc@1149 3328 ac_cv_header_stdc=no
adamc@1149 3329 fi
adamc@1149 3330 rm -f conftest*
adamc@1149 3331
adamc@1149 3332 fi
adamc@1149 3333
adamc@1149 3334 if test $ac_cv_header_stdc = yes; then
adamc@1149 3335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
adamc@1149 3336 if test "$cross_compiling" = yes; then :
adamc@1149 3337 :
adamc@1149 3338 else
adamc@1149 3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 3340 /* end confdefs.h. */
adamc@1149 3341 #include <ctype.h>
adamc@1149 3342 #include <stdlib.h>
adamc@1149 3343 #if ((' ' & 0x0FF) == 0x020)
adamc@1149 3344 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
adamc@1149 3345 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
adamc@1149 3346 #else
adamc@1149 3347 # define ISLOWER(c) \
adamc@1149 3348 (('a' <= (c) && (c) <= 'i') \
adamc@1149 3349 || ('j' <= (c) && (c) <= 'r') \
adamc@1149 3350 || ('s' <= (c) && (c) <= 'z'))
adamc@1149 3351 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
adamc@1149 3352 #endif
adamc@1149 3353
adamc@1149 3354 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
adamc@1149 3355 int
adamc@1149 3356 main ()
adamc@1149 3357 {
adamc@1149 3358 int i;
adamc@1149 3359 for (i = 0; i < 256; i++)
adamc@1149 3360 if (XOR (islower (i), ISLOWER (i))
adamc@1149 3361 || toupper (i) != TOUPPER (i))
adamc@1149 3362 return 2;
adamc@1149 3363 return 0;
adamc@1149 3364 }
adamc@1149 3365 _ACEOF
adamc@1149 3366 if ac_fn_c_try_run "$LINENO"; then :
adamc@1149 3367
adamc@1149 3368 else
adamc@1149 3369 ac_cv_header_stdc=no
adamc@1149 3370 fi
adamc@1149 3371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
adamc@1149 3372 conftest.$ac_objext conftest.beam conftest.$ac_ext
adamc@1149 3373 fi
adamc@1149 3374
adamc@1149 3375 fi
adamc@1149 3376 fi
adamc@1149 3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
adamc@1149 3378 $as_echo "$ac_cv_header_stdc" >&6; }
adamc@1149 3379 if test $ac_cv_header_stdc = yes; then
adamc@1149 3380
adamc@1149 3381 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
adamc@1149 3382
adamc@1149 3383 fi
adamc@1149 3384
adamc@1149 3385 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
adamc@1149 3386 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
adamc@1149 3387 inttypes.h stdint.h unistd.h
adamc@1149 3388 do :
adamc@1149 3389 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
adamc@1149 3390 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
adamc@1149 3391 "
adam@1315 3392 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
adamc@1149 3393 cat >>confdefs.h <<_ACEOF
adamc@1149 3394 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
adamc@1149 3395 _ACEOF
adamc@1149 3396
adamc@1149 3397 fi
adamc@1149 3398
adamc@1149 3399 done
adamc@1149 3400
adamc@1149 3401
adamc@1149 3402
adamc@1149 3403 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
adam@1599 3404 if test "x$ac_cv_header_minix_config_h" = xyes; then :
adamc@1149 3405 MINIX=yes
adamc@1149 3406 else
adamc@1149 3407 MINIX=
adamc@1149 3408 fi
adamc@1149 3409
adamc@1149 3410
adamc@1149 3411 if test "$MINIX" = yes; then
adamc@1149 3412
adamc@1149 3413 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
adamc@1149 3414
adamc@1149 3415
adamc@1149 3416 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
adamc@1149 3417
adamc@1149 3418
adamc@1149 3419 $as_echo "#define _MINIX 1" >>confdefs.h
adamc@1149 3420
adamc@1149 3421 fi
adamc@1149 3422
adamc@1149 3423
adamc@1149 3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
adamc@1149 3425 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
adam@1599 3426 if ${ac_cv_safe_to_define___extensions__+:} false; then :
adamc@1149 3427 $as_echo_n "(cached) " >&6
adamc@1149 3428 else
adamc@1149 3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 3430 /* end confdefs.h. */
adamc@1149 3431
adam@1771 3432 # define __EXTENSIONS__ 1
adam@1771 3433 $ac_includes_default
adamc@1149 3434 int
adamc@1149 3435 main ()
adamc@1149 3436 {
adamc@1149 3437
adamc@1149 3438 ;
adamc@1149 3439 return 0;
adamc@1149 3440 }
adamc@1149 3441 _ACEOF
adamc@1149 3442 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1149 3443 ac_cv_safe_to_define___extensions__=yes
adamc@1149 3444 else
adamc@1149 3445 ac_cv_safe_to_define___extensions__=no
adamc@1149 3446 fi
adamc@1149 3447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adamc@1149 3448 fi
adamc@1149 3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
adamc@1149 3450 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
adamc@1149 3451 test $ac_cv_safe_to_define___extensions__ = yes &&
adamc@1149 3452 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
adamc@1149 3453
adamc@1149 3454 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
adamc@1149 3455
adamc@1149 3456 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
adamc@1149 3457
adamc@1149 3458 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
adamc@1149 3459
adamc@1149 3460 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
adamc@1149 3461
adamc@1149 3462
adam@1760 3463
adam@1760 3464 # automake 1.12 requires this, but automake 1.11 doesn't recognize it
adam@1760 3465 # expand $ac_aux_dir to an absolute path
adam@1760 3466 am_aux_dir=`cd $ac_aux_dir && pwd`
adam@1760 3467
adam@1760 3468 if test -n "$ac_tool_prefix"; then
adam@1760 3469 for ac_prog in ar lib "link -lib"
adam@1760 3470 do
adam@1760 3471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
adam@1760 3472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
adam@1760 3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adam@1760 3474 $as_echo_n "checking for $ac_word... " >&6; }
adam@1760 3475 if ${ac_cv_prog_AR+:} false; then :
adam@1760 3476 $as_echo_n "(cached) " >&6
adam@1760 3477 else
adam@1760 3478 if test -n "$AR"; then
adam@1760 3479 ac_cv_prog_AR="$AR" # Let the user override the test.
adam@1760 3480 else
adam@1760 3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adam@1760 3482 for as_dir in $PATH
adam@1760 3483 do
adam@1760 3484 IFS=$as_save_IFS
adam@1760 3485 test -z "$as_dir" && as_dir=.
adam@1760 3486 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 3487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adam@1760 3488 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
adam@1760 3489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adam@1760 3490 break 2
adam@1760 3491 fi
adam@1760 3492 done
adam@1760 3493 done
adam@1760 3494 IFS=$as_save_IFS
adam@1760 3495
adam@1760 3496 fi
adam@1760 3497 fi
adam@1760 3498 AR=$ac_cv_prog_AR
adam@1760 3499 if test -n "$AR"; then
adam@1760 3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
adam@1760 3501 $as_echo "$AR" >&6; }
adam@1760 3502 else
adam@1760 3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adam@1760 3504 $as_echo "no" >&6; }
adam@1760 3505 fi
adam@1760 3506
adam@1760 3507
adam@1760 3508 test -n "$AR" && break
adam@1760 3509 done
adam@1760 3510 fi
adam@1760 3511 if test -z "$AR"; then
adam@1760 3512 ac_ct_AR=$AR
adam@1760 3513 for ac_prog in ar lib "link -lib"
adam@1760 3514 do
adam@1760 3515 # Extract the first word of "$ac_prog", so it can be a program name with args.
adam@1760 3516 set dummy $ac_prog; ac_word=$2
adam@1760 3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adam@1760 3518 $as_echo_n "checking for $ac_word... " >&6; }
adam@1760 3519 if ${ac_cv_prog_ac_ct_AR+:} false; then :
adam@1760 3520 $as_echo_n "(cached) " >&6
adam@1760 3521 else
adam@1760 3522 if test -n "$ac_ct_AR"; then
adam@1760 3523 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
adam@1760 3524 else
adam@1760 3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adam@1760 3526 for as_dir in $PATH
adam@1760 3527 do
adam@1760 3528 IFS=$as_save_IFS
adam@1760 3529 test -z "$as_dir" && as_dir=.
adam@1760 3530 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 3531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adam@1760 3532 ac_cv_prog_ac_ct_AR="$ac_prog"
adam@1760 3533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adam@1760 3534 break 2
adam@1760 3535 fi
adam@1760 3536 done
adam@1760 3537 done
adam@1760 3538 IFS=$as_save_IFS
adam@1760 3539
adam@1760 3540 fi
adam@1760 3541 fi
adam@1760 3542 ac_ct_AR=$ac_cv_prog_ac_ct_AR
adam@1760 3543 if test -n "$ac_ct_AR"; then
adam@1760 3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
adam@1760 3545 $as_echo "$ac_ct_AR" >&6; }
adam@1760 3546 else
adam@1760 3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adam@1760 3548 $as_echo "no" >&6; }
adam@1760 3549 fi
adam@1760 3550
adam@1760 3551
adam@1760 3552 test -n "$ac_ct_AR" && break
adam@1760 3553 done
adam@1760 3554
adam@1760 3555 if test "x$ac_ct_AR" = x; then
adam@1760 3556 AR="false"
adam@1760 3557 else
adam@1760 3558 case $cross_compiling:$ac_tool_warned in
adam@1760 3559 yes:)
adam@1760 3560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adam@1760 3561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adam@1760 3562 ac_tool_warned=yes ;;
adam@1760 3563 esac
adam@1760 3564 AR=$ac_ct_AR
adam@1760 3565 fi
adam@1760 3566 fi
adam@1760 3567
adam@1760 3568 : ${AR=ar}
adam@1760 3569
adam@1760 3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
adam@1760 3571 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
adam@1760 3572 if ${am_cv_ar_interface+:} false; then :
adam@1760 3573 $as_echo_n "(cached) " >&6
adam@1760 3574 else
adam@1760 3575 am_cv_ar_interface=ar
adam@1760 3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adam@1760 3577 /* end confdefs.h. */
adam@1760 3578 int some_variable = 0;
adam@1760 3579 _ACEOF
adam@1760 3580 if ac_fn_c_try_compile "$LINENO"; then :
adam@1760 3581 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
adam@1760 3582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
adam@1760 3583 (eval $am_ar_try) 2>&5
adam@1760 3584 ac_status=$?
adam@1760 3585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adam@1760 3586 test $ac_status = 0; }
adam@1760 3587 if test "$ac_status" -eq 0; then
adam@1760 3588 am_cv_ar_interface=ar
adam@1760 3589 else
adam@1760 3590 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
adam@1760 3591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
adam@1760 3592 (eval $am_ar_try) 2>&5
adam@1760 3593 ac_status=$?
adam@1760 3594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adam@1760 3595 test $ac_status = 0; }
adam@1760 3596 if test "$ac_status" -eq 0; then
adam@1760 3597 am_cv_ar_interface=lib
adam@1760 3598 else
adam@1760 3599 am_cv_ar_interface=unknown
adam@1760 3600 fi
adam@1760 3601 fi
adam@1760 3602 rm -f conftest.lib libconftest.a
adam@1760 3603
adam@1760 3604 fi
adam@1760 3605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adam@1760 3606
adam@1760 3607 fi
adam@1760 3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
adam@1760 3609 $as_echo "$am_cv_ar_interface" >&6; }
adam@1760 3610
adam@1760 3611 case $am_cv_ar_interface in
adam@1760 3612 ar)
adam@1760 3613 ;;
adam@1760 3614 lib)
adam@1760 3615 # Microsoft lib, so override with the ar-lib wrapper script.
adam@1760 3616 # FIXME: It is wrong to rewrite AR.
adam@1760 3617 # But if we don't then we get into trouble of one sort or another.
adam@1760 3618 # A longer-term fix would be to have automake use am__AR in this case,
adam@1760 3619 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
adam@1760 3620 # similar.
adam@1760 3621 AR="$am_aux_dir/ar-lib $AR"
adam@1760 3622 ;;
adam@1760 3623 unknown)
adam@1760 3624 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
adam@1760 3625 ;;
adam@1760 3626 esac
adam@1760 3627
adam@1760 3628
adamc@1132 3629 am__api_version='1.11'
adamc@1132 3630
adamc@1132 3631 ac_aux_dir=
adamc@1132 3632 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
adam@1315 3633 if test -f "$ac_dir/install-sh"; then
adam@1315 3634 ac_aux_dir=$ac_dir
adam@1315 3635 ac_install_sh="$ac_aux_dir/install-sh -c"
adam@1315 3636 break
adam@1315 3637 elif test -f "$ac_dir/install.sh"; then
adam@1315 3638 ac_aux_dir=$ac_dir
adam@1315 3639 ac_install_sh="$ac_aux_dir/install.sh -c"
adam@1315 3640 break
adam@1315 3641 elif test -f "$ac_dir/shtool"; then
adam@1315 3642 ac_aux_dir=$ac_dir
adam@1315 3643 ac_install_sh="$ac_aux_dir/shtool install -c"
adam@1315 3644 break
adam@1315 3645 fi
adamc@1132 3646 done
adamc@1132 3647 if test -z "$ac_aux_dir"; then
adam@1315 3648 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
adamc@1132 3649 fi
adamc@1132 3650
adamc@1132 3651 # These three variables are undocumented and unsupported,
adamc@1132 3652 # and are intended to be withdrawn in a future Autoconf release.
adamc@1132 3653 # They can cause serious problems if a builder's source tree is in a directory
adamc@1132 3654 # whose full name contains unusual characters.
adamc@1132 3655 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
adamc@1132 3656 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
adamc@1132 3657 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
adamc@1132 3658
adamc@1132 3659
adamc@1132 3660 # Find a good install program. We prefer a C program (faster),
adamc@1132 3661 # so one script is as good as another. But avoid the broken or
adamc@1132 3662 # incompatible versions:
adamc@1132 3663 # SysV /etc/install, /usr/sbin/install
adamc@1132 3664 # SunOS /usr/etc/install
adamc@1132 3665 # IRIX /sbin/install
adamc@1132 3666 # AIX /bin/install
adamc@1132 3667 # AmigaOS /C/install, which installs bootblocks on floppy discs
adamc@1132 3668 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
adamc@1132 3669 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
adamc@1132 3670 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
adamc@1132 3671 # OS/2's system install, which has a completely different semantic
adamc@1132 3672 # ./install, which can be erroneously created by make from ./install.sh.
adamc@1132 3673 # Reject install programs that cannot install multiple files.
adamc@1132 3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
adamc@1132 3675 $as_echo_n "checking for a BSD-compatible install... " >&6; }
adamc@1132 3676 if test -z "$INSTALL"; then
adam@1599 3677 if ${ac_cv_path_install+:} false; then :
adamc@1132 3678 $as_echo_n "(cached) " >&6
adamc@1132 3679 else
adamc@1132 3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 3681 for as_dir in $PATH
adamc@1132 3682 do
adamc@1132 3683 IFS=$as_save_IFS
adamc@1132 3684 test -z "$as_dir" && as_dir=.
adamc@1132 3685 # Account for people who put trailing slashes in PATH elements.
adamc@1132 3686 case $as_dir/ in #((
adamc@1132 3687 ./ | .// | /[cC]/* | \
adamc@1132 3688 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
adamc@1132 3689 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
adamc@1132 3690 /usr/ucb/* ) ;;
adamc@1132 3691 *)
adamc@1132 3692 # OSF1 and SCO ODT 3.0 have their own names for install.
adamc@1132 3693 # Don't use installbsd from OSF since it installs stuff as root
adamc@1132 3694 # by default.
adamc@1132 3695 for ac_prog in ginstall scoinst install; do
adamc@1132 3696 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 3697 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
adamc@1132 3698 if test $ac_prog = install &&
adamc@1132 3699 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
adamc@1132 3700 # AIX install. It has an incompatible calling convention.
adamc@1132 3701 :
adamc@1132 3702 elif test $ac_prog = install &&
adamc@1132 3703 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
adamc@1132 3704 # program-specific install script used by HP pwplus--don't use.
adamc@1132 3705 :
adamc@1132 3706 else
adamc@1132 3707 rm -rf conftest.one conftest.two conftest.dir
adamc@1132 3708 echo one > conftest.one
adamc@1132 3709 echo two > conftest.two
adamc@1132 3710 mkdir conftest.dir
adamc@1132 3711 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
adamc@1132 3712 test -s conftest.one && test -s conftest.two &&
adamc@1132 3713 test -s conftest.dir/conftest.one &&
adamc@1132 3714 test -s conftest.dir/conftest.two
adamc@1132 3715 then
adamc@1132 3716 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
adamc@1132 3717 break 3
adamc@1132 3718 fi
adamc@1132 3719 fi
adamc@1132 3720 fi
adamc@1132 3721 done
adamc@1132 3722 done
adamc@1132 3723 ;;
adamc@1132 3724 esac
adamc@1132 3725
adamc@1132 3726 done
adamc@1132 3727 IFS=$as_save_IFS
adamc@1132 3728
adamc@1132 3729 rm -rf conftest.one conftest.two conftest.dir
adamc@1132 3730
adamc@1132 3731 fi
adamc@1132 3732 if test "${ac_cv_path_install+set}" = set; then
adamc@1132 3733 INSTALL=$ac_cv_path_install
adamc@1132 3734 else
adamc@1132 3735 # As a last resort, use the slow shell script. Don't cache a
adamc@1132 3736 # value for INSTALL within a source directory, because that will
adamc@1132 3737 # break other packages using the cache if that directory is
adamc@1132 3738 # removed, or if the value is a relative name.
adamc@1132 3739 INSTALL=$ac_install_sh
adamc@1132 3740 fi
adamc@1132 3741 fi
adamc@1132 3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
adamc@1132 3743 $as_echo "$INSTALL" >&6; }
adamc@1132 3744
adamc@1132 3745 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
adamc@1132 3746 # It thinks the first close brace ends the variable substitution.
adamc@1132 3747 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
adamc@1132 3748
adamc@1132 3749 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
adamc@1132 3750
adamc@1132 3751 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
adamc@1132 3752
adamc@1132 3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
adamc@1132 3754 $as_echo_n "checking whether build environment is sane... " >&6; }
adamc@1132 3755 # Just in case
adamc@1132 3756 sleep 1
adamc@1132 3757 echo timestamp > conftest.file
adamc@1132 3758 # Reject unsafe characters in $srcdir or the absolute working directory
adamc@1132 3759 # name. Accept space and tab only in the latter.
adamc@1132 3760 am_lf='
adamc@1132 3761 '
adamc@1132 3762 case `pwd` in
adamc@1132 3763 *[\\\"\#\$\&\'\`$am_lf]*)
adam@1599 3764 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
adamc@1132 3765 esac
adamc@1132 3766 case $srcdir in
adamc@1132 3767 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
adam@1599 3768 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
adamc@1132 3769 esac
adamc@1132 3770
adamc@1132 3771 # Do `set' in a subshell so we don't clobber the current shell's
adamc@1132 3772 # arguments. Must try -L first in case configure is actually a
adamc@1132 3773 # symlink; some systems play weird games with the mod time of symlinks
adamc@1132 3774 # (eg FreeBSD returns the mod time of the symlink's containing
adamc@1132 3775 # directory).
adamc@1132 3776 if (
adamc@1132 3777 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
adamc@1132 3778 if test "$*" = "X"; then
adamc@1132 3779 # -L didn't work.
adamc@1132 3780 set X `ls -t "$srcdir/configure" conftest.file`
adamc@1132 3781 fi
adamc@1132 3782 rm -f conftest.file
adamc@1132 3783 if test "$*" != "X $srcdir/configure conftest.file" \
adamc@1132 3784 && test "$*" != "X conftest.file $srcdir/configure"; then
adamc@1132 3785
adamc@1132 3786 # If neither matched, then we have a broken ls. This can happen
adamc@1132 3787 # if, for instance, CONFIG_SHELL is bash and it inherits a
adamc@1132 3788 # broken ls alias from the environment. This has actually
adamc@1132 3789 # happened. Such a system could not be considered "sane".
adam@1315 3790 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
adamc@1132 3791 alias in your environment" "$LINENO" 5
adamc@1132 3792 fi
adamc@1132 3793
adamc@1132 3794 test "$2" = conftest.file
adamc@1132 3795 )
adamc@1132 3796 then
adamc@1132 3797 # Ok.
adamc@1132 3798 :
adamc@1132 3799 else
adam@1315 3800 as_fn_error $? "newly created file is older than distributed files!
adamc@1132 3801 Check your system clock" "$LINENO" 5
adamc@1132 3802 fi
adamc@1132 3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
adamc@1132 3804 $as_echo "yes" >&6; }
adamc@1132 3805 test "$program_prefix" != NONE &&
adamc@1132 3806 program_transform_name="s&^&$program_prefix&;$program_transform_name"
adamc@1132 3807 # Use a double $ so make ignores it.
adamc@1132 3808 test "$program_suffix" != NONE &&
adamc@1132 3809 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
adamc@1132 3810 # Double any \ or $.
adamc@1132 3811 # By default was `s,x,x', remove it if useless.
adamc@1132 3812 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
adamc@1132 3813 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
adamc@1132 3814
adamc@1132 3815 if test x"${MISSING+set}" != xset; then
adamc@1132 3816 case $am_aux_dir in
adamc@1132 3817 *\ * | *\ *)
adamc@1132 3818 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
adamc@1132 3819 *)
adamc@1132 3820 MISSING="\${SHELL} $am_aux_dir/missing" ;;
adamc@1132 3821 esac
adamc@1132 3822 fi
adamc@1132 3823 # Use eval to expand $SHELL
adamc@1132 3824 if eval "$MISSING --run true"; then
adamc@1132 3825 am_missing_run="$MISSING --run "
adamc@1132 3826 else
adamc@1132 3827 am_missing_run=
adamc@1132 3828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
adamc@1132 3829 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
adamc@1132 3830 fi
adamc@1132 3831
adamc@1132 3832 if test x"${install_sh}" != xset; then
adamc@1132 3833 case $am_aux_dir in
adamc@1132 3834 *\ * | *\ *)
adamc@1132 3835 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
adamc@1132 3836 *)
adamc@1132 3837 install_sh="\${SHELL} $am_aux_dir/install-sh"
adamc@1132 3838 esac
adamc@1132 3839 fi
adamc@1132 3840
adamc@1132 3841 # Installed binaries are usually stripped using `strip' when the user
adamc@1132 3842 # run `make install-strip'. However `strip' might not be the right
adamc@1132 3843 # tool to use in cross-compilation environments, therefore Automake
adamc@1132 3844 # will honor the `STRIP' environment variable to overrule this program.
adamc@1132 3845 if test "$cross_compiling" != no; then
adamc@1132 3846 if test -n "$ac_tool_prefix"; then
adamc@1132 3847 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
adamc@1132 3848 set dummy ${ac_tool_prefix}strip; ac_word=$2
adamc@1132 3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 3850 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 3851 if ${ac_cv_prog_STRIP+:} false; then :
adamc@1132 3852 $as_echo_n "(cached) " >&6
adamc@1132 3853 else
adamc@1132 3854 if test -n "$STRIP"; then
adamc@1132 3855 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
adamc@1132 3856 else
adamc@1132 3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 3858 for as_dir in $PATH
adamc@1132 3859 do
adamc@1132 3860 IFS=$as_save_IFS
adamc@1132 3861 test -z "$as_dir" && as_dir=.
adamc@1132 3862 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 3863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1132 3864 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
adamc@1132 3865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 3866 break 2
adamc@1132 3867 fi
adamc@1132 3868 done
adamc@1132 3869 done
adamc@1132 3870 IFS=$as_save_IFS
adamc@1132 3871
adamc@1132 3872 fi
adamc@1132 3873 fi
adamc@1132 3874 STRIP=$ac_cv_prog_STRIP
adamc@1132 3875 if test -n "$STRIP"; then
adamc@1132 3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
adamc@1132 3877 $as_echo "$STRIP" >&6; }
adamc@1132 3878 else
adamc@1132 3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 3880 $as_echo "no" >&6; }
adamc@1132 3881 fi
adamc@1132 3882
adamc@1132 3883
adamc@1132 3884 fi
adamc@1132 3885 if test -z "$ac_cv_prog_STRIP"; then
adamc@1132 3886 ac_ct_STRIP=$STRIP
adamc@1132 3887 # Extract the first word of "strip", so it can be a program name with args.
adamc@1132 3888 set dummy strip; ac_word=$2
adamc@1132 3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 3890 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 3891 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
adamc@1132 3892 $as_echo_n "(cached) " >&6
adamc@1132 3893 else
adamc@1132 3894 if test -n "$ac_ct_STRIP"; then
adamc@1132 3895 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
adamc@1132 3896 else
adamc@1132 3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 3898 for as_dir in $PATH
adamc@1132 3899 do
adamc@1132 3900 IFS=$as_save_IFS
adamc@1132 3901 test -z "$as_dir" && as_dir=.
adamc@1132 3902 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 3903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1132 3904 ac_cv_prog_ac_ct_STRIP="strip"
adamc@1132 3905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 3906 break 2
adamc@1132 3907 fi
adamc@1132 3908 done
adamc@1132 3909 done
adamc@1132 3910 IFS=$as_save_IFS
adamc@1132 3911
adamc@1132 3912 fi
adamc@1132 3913 fi
adamc@1132 3914 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
adamc@1132 3915 if test -n "$ac_ct_STRIP"; then
adamc@1132 3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
adamc@1132 3917 $as_echo "$ac_ct_STRIP" >&6; }
adamc@1132 3918 else
adamc@1132 3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 3920 $as_echo "no" >&6; }
adamc@1132 3921 fi
adamc@1132 3922
adamc@1132 3923 if test "x$ac_ct_STRIP" = x; then
adamc@1132 3924 STRIP=":"
adamc@1132 3925 else
adamc@1132 3926 case $cross_compiling:$ac_tool_warned in
adamc@1132 3927 yes:)
adamc@1132 3928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 3929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 3930 ac_tool_warned=yes ;;
adamc@1132 3931 esac
adamc@1132 3932 STRIP=$ac_ct_STRIP
adamc@1132 3933 fi
adamc@1132 3934 else
adamc@1132 3935 STRIP="$ac_cv_prog_STRIP"
adamc@1132 3936 fi
adamc@1132 3937
adamc@1132 3938 fi
adamc@1132 3939 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
adamc@1132 3940
adamc@1132 3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
adamc@1132 3942 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
adamc@1132 3943 if test -z "$MKDIR_P"; then
adam@1599 3944 if ${ac_cv_path_mkdir+:} false; then :
adamc@1132 3945 $as_echo_n "(cached) " >&6
adamc@1132 3946 else
adamc@1132 3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 3948 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
adamc@1132 3949 do
adamc@1132 3950 IFS=$as_save_IFS
adamc@1132 3951 test -z "$as_dir" && as_dir=.
adamc@1132 3952 for ac_prog in mkdir gmkdir; do
adamc@1132 3953 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 3954 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
adamc@1132 3955 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
adamc@1132 3956 'mkdir (GNU coreutils) '* | \
adamc@1132 3957 'mkdir (coreutils) '* | \
adamc@1132 3958 'mkdir (fileutils) '4.1*)
adamc@1132 3959 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
adamc@1132 3960 break 3;;
adamc@1132 3961 esac
adamc@1132 3962 done
adamc@1132 3963 done
adamc@1132 3964 done
adamc@1132 3965 IFS=$as_save_IFS
adamc@1132 3966
adamc@1132 3967 fi
adamc@1132 3968
adamc@1132 3969 test -d ./--version && rmdir ./--version
adamc@1132 3970 if test "${ac_cv_path_mkdir+set}" = set; then
adamc@1132 3971 MKDIR_P="$ac_cv_path_mkdir -p"
adamc@1132 3972 else
adamc@1132 3973 # As a last resort, use the slow shell script. Don't cache a
adamc@1132 3974 # value for MKDIR_P within a source directory, because that will
adamc@1132 3975 # break other packages using the cache if that directory is
adamc@1132 3976 # removed, or if the value is a relative name.
adamc@1132 3977 MKDIR_P="$ac_install_sh -d"
adamc@1132 3978 fi
adamc@1132 3979 fi
adamc@1132 3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
adamc@1132 3981 $as_echo "$MKDIR_P" >&6; }
adamc@1132 3982
adamc@1132 3983 mkdir_p="$MKDIR_P"
adamc@1132 3984 case $mkdir_p in
adamc@1132 3985 [\\/$]* | ?:[\\/]*) ;;
adamc@1132 3986 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
adamc@1132 3987 esac
adamc@1132 3988
adamc@1132 3989 for ac_prog in gawk mawk nawk awk
adamc@1132 3990 do
adamc@1132 3991 # Extract the first word of "$ac_prog", so it can be a program name with args.
adamc@1132 3992 set dummy $ac_prog; ac_word=$2
adamc@1132 3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 3994 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 3995 if ${ac_cv_prog_AWK+:} false; then :
adamc@1132 3996 $as_echo_n "(cached) " >&6
adamc@1132 3997 else
adamc@1132 3998 if test -n "$AWK"; then
adamc@1132 3999 ac_cv_prog_AWK="$AWK" # Let the user override the test.
adamc@1132 4000 else
adamc@1132 4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 4002 for as_dir in $PATH
adamc@1132 4003 do
adamc@1132 4004 IFS=$as_save_IFS
adamc@1132 4005 test -z "$as_dir" && as_dir=.
adamc@1132 4006 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 4007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1132 4008 ac_cv_prog_AWK="$ac_prog"
adamc@1132 4009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 4010 break 2
adamc@1132 4011 fi
adamc@1132 4012 done
adamc@1132 4013 done
adamc@1132 4014 IFS=$as_save_IFS
adamc@1132 4015
adamc@1132 4016 fi
adamc@1132 4017 fi
adamc@1132 4018 AWK=$ac_cv_prog_AWK
adamc@1132 4019 if test -n "$AWK"; then
adamc@1132 4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
adamc@1132 4021 $as_echo "$AWK" >&6; }
adamc@1132 4022 else
adamc@1132 4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 4024 $as_echo "no" >&6; }
adamc@1132 4025 fi
adamc@1132 4026
adamc@1132 4027
adamc@1132 4028 test -n "$AWK" && break
adamc@1132 4029 done
adamc@1132 4030
adamc@1132 4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
adamc@1132 4032 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
adamc@1132 4033 set x ${MAKE-make}
adamc@1132 4034 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
adam@1599 4035 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
adamc@1132 4036 $as_echo_n "(cached) " >&6
adamc@1132 4037 else
adamc@1132 4038 cat >conftest.make <<\_ACEOF
adamc@1132 4039 SHELL = /bin/sh
adamc@1132 4040 all:
adamc@1132 4041 @echo '@@@%%%=$(MAKE)=@@@%%%'
adamc@1132 4042 _ACEOF
adam@1315 4043 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
adamc@1132 4044 case `${MAKE-make} -f conftest.make 2>/dev/null` in
adamc@1132 4045 *@@@%%%=?*=@@@%%%*)
adamc@1132 4046 eval ac_cv_prog_make_${ac_make}_set=yes;;
adamc@1132 4047 *)
adamc@1132 4048 eval ac_cv_prog_make_${ac_make}_set=no;;
adamc@1132 4049 esac
adamc@1132 4050 rm -f conftest.make
adamc@1132 4051 fi
adamc@1132 4052 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
adamc@1132 4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
adamc@1132 4054 $as_echo "yes" >&6; }
adamc@1132 4055 SET_MAKE=
adamc@1132 4056 else
adamc@1132 4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 4058 $as_echo "no" >&6; }
adamc@1132 4059 SET_MAKE="MAKE=${MAKE-make}"
adamc@1132 4060 fi
adamc@1132 4061
adamc@1132 4062 rm -rf .tst 2>/dev/null
adamc@1132 4063 mkdir .tst 2>/dev/null
adamc@1132 4064 if test -d .tst; then
adamc@1132 4065 am__leading_dot=.
adamc@1132 4066 else
adamc@1132 4067 am__leading_dot=_
adamc@1132 4068 fi
adamc@1132 4069 rmdir .tst 2>/dev/null
adamc@1132 4070
adamc@1132 4071 DEPDIR="${am__leading_dot}deps"
adamc@1132 4072
adamc@1132 4073 ac_config_commands="$ac_config_commands depfiles"
adamc@1132 4074
adamc@1132 4075
adamc@1132 4076 am_make=${MAKE-make}
adamc@1132 4077 cat > confinc << 'END'
adamc@1132 4078 am__doit:
adamc@1132 4079 @echo this is the am__doit target
adamc@1132 4080 .PHONY: am__doit
adamc@1132 4081 END
adamc@1132 4082 # If we don't find an include directive, just comment out the code.
adamc@1132 4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
adamc@1132 4084 $as_echo_n "checking for style of include used by $am_make... " >&6; }
adamc@1132 4085 am__include="#"
adamc@1132 4086 am__quote=
adamc@1132 4087 _am_result=none
adamc@1132 4088 # First try GNU make style include.
adamc@1132 4089 echo "include confinc" > confmf
adamc@1132 4090 # Ignore all kinds of additional output from `make'.
adamc@1132 4091 case `$am_make -s -f confmf 2> /dev/null` in #(
adamc@1132 4092 *the\ am__doit\ target*)
adamc@1132 4093 am__include=include
adamc@1132 4094 am__quote=
adamc@1132 4095 _am_result=GNU
adamc@1132 4096 ;;
adamc@1132 4097 esac
adamc@1132 4098 # Now try BSD make style include.
adamc@1132 4099 if test "$am__include" = "#"; then
adamc@1132 4100 echo '.include "confinc"' > confmf
adamc@1132 4101 case `$am_make -s -f confmf 2> /dev/null` in #(
adamc@1132 4102 *the\ am__doit\ target*)
adamc@1132 4103 am__include=.include
adamc@1132 4104 am__quote="\""
adamc@1132 4105 _am_result=BSD
adamc@1132 4106 ;;
adamc@1132 4107 esac
adamc@1132 4108 fi
adamc@1132 4109
adamc@1132 4110
adamc@1132 4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
adamc@1132 4112 $as_echo "$_am_result" >&6; }
adamc@1132 4113 rm -f confinc confmf
adamc@1132 4114
adamc@1132 4115 # Check whether --enable-dependency-tracking was given.
adamc@1132 4116 if test "${enable_dependency_tracking+set}" = set; then :
adamc@1132 4117 enableval=$enable_dependency_tracking;
adamc@1132 4118 fi
adamc@1132 4119
adamc@1132 4120 if test "x$enable_dependency_tracking" != xno; then
adamc@1132 4121 am_depcomp="$ac_aux_dir/depcomp"
adamc@1132 4122 AMDEPBACKSLASH='\'
adam@1693 4123 am__nodep='_no'
adamc@1132 4124 fi
adamc@1132 4125 if test "x$enable_dependency_tracking" != xno; then
adamc@1132 4126 AMDEP_TRUE=
adamc@1132 4127 AMDEP_FALSE='#'
adamc@1132 4128 else
adamc@1132 4129 AMDEP_TRUE='#'
adamc@1132 4130 AMDEP_FALSE=
adamc@1132 4131 fi
adamc@1132 4132
adamc@1132 4133
adamc@1149 4134 if test "`cd $srcdir && pwd`" != "`pwd`"; then
adamc@1149 4135 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
adamc@1149 4136 # is not polluted with repeated "-I."
adamc@1149 4137 am__isrc=' -I$(srcdir)'
adamc@1149 4138 # test to see if srcdir already configured
adamc@1149 4139 if test -f $srcdir/config.status; then
adam@1315 4140 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
adamc@1149 4141 fi
adamc@1149 4142 fi
adamc@1149 4143
adamc@1149 4144 # test whether we have cygpath
adamc@1149 4145 if test -z "$CYGPATH_W"; then
adamc@1149 4146 if (cygpath --version) >/dev/null 2>/dev/null; then
adamc@1149 4147 CYGPATH_W='cygpath -w'
adamc@1149 4148 else
adamc@1149 4149 CYGPATH_W=echo
adamc@1149 4150 fi
adamc@1149 4151 fi
adamc@1149 4152
adamc@1149 4153
adamc@1149 4154 # Define the identity of the package.
adamc@1149 4155 PACKAGE='urweb'
adam@1771 4156 VERSION='20120519'
adamc@1149 4157
adamc@1149 4158
adamc@1149 4159 # Some tools Automake needs.
adamc@1149 4160
adamc@1149 4161 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
adamc@1149 4162
adamc@1149 4163
adamc@1149 4164 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
adamc@1149 4165
adamc@1149 4166
adamc@1149 4167 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
adamc@1149 4168
adamc@1149 4169
adamc@1149 4170 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
adamc@1149 4171
adamc@1149 4172
adamc@1149 4173 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
adamc@1149 4174
adamc@1149 4175 # We need awk for the "check" target. The system "awk" is bad on
adamc@1149 4176 # some platforms.
adam@1693 4177 # Always define AMTAR for backward compatibility. Yes, it's still used
adam@1693 4178 # in the wild :-( We should find a proper way to deprecate it ...
adam@1693 4179 AMTAR='$${TAR-tar}'
adam@1693 4180
adam@1693 4181 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
adamc@1149 4182
adamc@1149 4183
adamc@1149 4184
adamc@1132 4185
adamc@1132 4186 depcc="$CC" am_compiler_list=
adamc@1132 4187
adamc@1132 4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
adamc@1132 4189 $as_echo_n "checking dependency style of $depcc... " >&6; }
adam@1599 4190 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
adamc@1132 4191 $as_echo_n "(cached) " >&6
adamc@1132 4192 else
adamc@1132 4193 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
adamc@1132 4194 # We make a subdir and do the tests there. Otherwise we can end up
adamc@1132 4195 # making bogus files that we don't know about and never remove. For
adamc@1132 4196 # instance it was reported that on HP-UX the gcc test will end up
adamc@1132 4197 # making a dummy file named `D' -- because `-MD' means `put the output
adamc@1132 4198 # in D'.
adam@1693 4199 rm -rf conftest.dir
adamc@1132 4200 mkdir conftest.dir
adamc@1132 4201 # Copy depcomp to subdir because otherwise we won't find it if we're
adamc@1132 4202 # using a relative directory.
adamc@1132 4203 cp "$am_depcomp" conftest.dir
adamc@1132 4204 cd conftest.dir
adamc@1132 4205 # We will build objects and dependencies in a subdirectory because
adamc@1132 4206 # it helps to detect inapplicable dependency modes. For instance
adamc@1132 4207 # both Tru64's cc and ICC support -MD to output dependencies as a
adamc@1132 4208 # side effect of compilation, but ICC will put the dependencies in
adamc@1132 4209 # the current directory while Tru64 will put them in the object
adamc@1132 4210 # directory.
adamc@1132 4211 mkdir sub
adamc@1132 4212
adamc@1132 4213 am_cv_CC_dependencies_compiler_type=none
adamc@1132 4214 if test "$am_compiler_list" = ""; then
adamc@1132 4215 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
adamc@1132 4216 fi
adamc@1132 4217 am__universal=false
adamc@1132 4218 case " $depcc " in #(
adamc@1132 4219 *\ -arch\ *\ -arch\ *) am__universal=true ;;
adamc@1132 4220 esac
adamc@1132 4221
adamc@1132 4222 for depmode in $am_compiler_list; do
adamc@1132 4223 # Setup a source with many dependencies, because some compilers
adamc@1132 4224 # like to wrap large dependency lists on column 80 (with \), and
adamc@1132 4225 # we should not choose a depcomp mode which is confused by this.
adamc@1132 4226 #
adamc@1132 4227 # We need to recreate these files for each test, as the compiler may
adamc@1132 4228 # overwrite some of them when testing with obscure command lines.
adamc@1132 4229 # This happens at least with the AIX C compiler.
adamc@1132 4230 : > sub/conftest.c
adamc@1132 4231 for i in 1 2 3 4 5 6; do
adamc@1132 4232 echo '#include "conftst'$i'.h"' >> sub/conftest.c
adamc@1132 4233 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
adamc@1132 4234 # Solaris 8's {/usr,}/bin/sh.
adamc@1132 4235 touch sub/conftst$i.h
adamc@1132 4236 done
adamc@1132 4237 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
adamc@1132 4238
adamc@1132 4239 # We check with `-c' and `-o' for the sake of the "dashmstdout"
adamc@1132 4240 # mode. It turns out that the SunPro C++ compiler does not properly
adamc@1132 4241 # handle `-M -o', and we need to detect this. Also, some Intel
adamc@1132 4242 # versions had trouble with output in subdirs
adamc@1132 4243 am__obj=sub/conftest.${OBJEXT-o}
adamc@1132 4244 am__minus_obj="-o $am__obj"
adamc@1132 4245 case $depmode in
adamc@1132 4246 gcc)
adamc@1132 4247 # This depmode causes a compiler race in universal mode.
adamc@1132 4248 test "$am__universal" = false || continue
adamc@1132 4249 ;;
adamc@1132 4250 nosideeffect)
adamc@1132 4251 # after this tag, mechanisms are not by side-effect, so they'll
adamc@1132 4252 # only be used when explicitly requested
adamc@1132 4253 if test "x$enable_dependency_tracking" = xyes; then
adamc@1132 4254 continue
adamc@1132 4255 else
adamc@1132 4256 break
adamc@1132 4257 fi
adamc@1132 4258 ;;
adam@1693 4259 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
adamc@1132 4260 # This compiler won't grok `-c -o', but also, the minuso test has
adamc@1132 4261 # not run yet. These depmodes are late enough in the game, and
adamc@1132 4262 # so weak that their functioning should not be impacted.
adamc@1132 4263 am__obj=conftest.${OBJEXT-o}
adamc@1132 4264 am__minus_obj=
adamc@1132 4265 ;;
adamc@1132 4266 none) break ;;
adamc@1132 4267 esac
adamc@1132 4268 if depmode=$depmode \
adamc@1132 4269 source=sub/conftest.c object=$am__obj \
adamc@1132 4270 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
adamc@1132 4271 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
adamc@1132 4272 >/dev/null 2>conftest.err &&
adamc@1132 4273 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
adamc@1132 4274 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
adamc@1132 4275 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
adamc@1132 4276 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
adamc@1132 4277 # icc doesn't choke on unknown options, it will just issue warnings
adamc@1132 4278 # or remarks (even with -Werror). So we grep stderr for any message
adamc@1132 4279 # that says an option was ignored or not supported.
adamc@1132 4280 # When given -MP, icc 7.0 and 7.1 complain thusly:
adamc@1132 4281 # icc: Command line warning: ignoring option '-M'; no argument required
adamc@1132 4282 # The diagnosis changed in icc 8.0:
adamc@1132 4283 # icc: Command line remark: option '-MP' not supported
adamc@1132 4284 if (grep 'ignoring option' conftest.err ||
adamc@1132 4285 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
adamc@1132 4286 am_cv_CC_dependencies_compiler_type=$depmode
adamc@1132 4287 break
adamc@1132 4288 fi
adamc@1132 4289 fi
adamc@1132 4290 done
adamc@1132 4291
adamc@1132 4292 cd ..
adamc@1132 4293 rm -rf conftest.dir
adamc@1132 4294 else
adamc@1132 4295 am_cv_CC_dependencies_compiler_type=none
adamc@1132 4296 fi
adamc@1132 4297
adamc@1132 4298 fi
adamc@1132 4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
adamc@1132 4300 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
adamc@1132 4301 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
adamc@1132 4302
adamc@1132 4303 if
adamc@1132 4304 test "x$enable_dependency_tracking" != xno \
adamc@1132 4305 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
adamc@1132 4306 am__fastdepCC_TRUE=
adamc@1132 4307 am__fastdepCC_FALSE='#'
adamc@1132 4308 else
adamc@1132 4309 am__fastdepCC_TRUE='#'
adamc@1132 4310 am__fastdepCC_FALSE=
adamc@1132 4311 fi
adamc@1132 4312
adamc@1132 4313
adamc@1149 4314
adamc@1149 4315 ac_ext=c
adamc@1149 4316 ac_cpp='$CPP $CPPFLAGS'
adamc@1149 4317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@1149 4318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@1149 4319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@1149 4320 if test -n "$ac_tool_prefix"; then
adamc@1149 4321 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
adamc@1149 4322 set dummy ${ac_tool_prefix}gcc; ac_word=$2
adamc@1149 4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1149 4324 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 4325 if ${ac_cv_prog_CC+:} false; then :
adamc@1149 4326 $as_echo_n "(cached) " >&6
adamc@1149 4327 else
adamc@1149 4328 if test -n "$CC"; then
adamc@1149 4329 ac_cv_prog_CC="$CC" # Let the user override the test.
adamc@1149 4330 else
adamc@1149 4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1149 4332 for as_dir in $PATH
adamc@1149 4333 do
adamc@1149 4334 IFS=$as_save_IFS
adamc@1149 4335 test -z "$as_dir" && as_dir=.
adamc@1149 4336 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 4337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1149 4338 ac_cv_prog_CC="${ac_tool_prefix}gcc"
adamc@1149 4339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1149 4340 break 2
adamc@1149 4341 fi
adamc@1149 4342 done
adamc@1149 4343 done
adamc@1149 4344 IFS=$as_save_IFS
adamc@1149 4345
adamc@1149 4346 fi
adamc@1149 4347 fi
adamc@1149 4348 CC=$ac_cv_prog_CC
adamc@1149 4349 if test -n "$CC"; then
adamc@1149 4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
adamc@1149 4351 $as_echo "$CC" >&6; }
adamc@1149 4352 else
adamc@1149 4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1149 4354 $as_echo "no" >&6; }
adamc@1149 4355 fi
adamc@1149 4356
adamc@1149 4357
adamc@1149 4358 fi
adamc@1149 4359 if test -z "$ac_cv_prog_CC"; then
adamc@1149 4360 ac_ct_CC=$CC
adamc@1149 4361 # Extract the first word of "gcc", so it can be a program name with args.
adamc@1149 4362 set dummy gcc; ac_word=$2
adamc@1149 4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1149 4364 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 4365 if ${ac_cv_prog_ac_ct_CC+:} false; then :
adamc@1149 4366 $as_echo_n "(cached) " >&6
adamc@1149 4367 else
adamc@1149 4368 if test -n "$ac_ct_CC"; then
adamc@1149 4369 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
adamc@1149 4370 else
adamc@1149 4371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1149 4372 for as_dir in $PATH
adamc@1149 4373 do
adamc@1149 4374 IFS=$as_save_IFS
adamc@1149 4375 test -z "$as_dir" && as_dir=.
adamc@1149 4376 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 4377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1149 4378 ac_cv_prog_ac_ct_CC="gcc"
adamc@1149 4379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1149 4380 break 2
adamc@1149 4381 fi
adamc@1149 4382 done
adamc@1149 4383 done
adamc@1149 4384 IFS=$as_save_IFS
adamc@1149 4385
adamc@1149 4386 fi
adamc@1149 4387 fi
adamc@1149 4388 ac_ct_CC=$ac_cv_prog_ac_ct_CC
adamc@1149 4389 if test -n "$ac_ct_CC"; then
adamc@1149 4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
adamc@1149 4391 $as_echo "$ac_ct_CC" >&6; }
adamc@1149 4392 else
adamc@1149 4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1149 4394 $as_echo "no" >&6; }
adamc@1149 4395 fi
adamc@1149 4396
adamc@1149 4397 if test "x$ac_ct_CC" = x; then
adamc@1149 4398 CC=""
adamc@1149 4399 else
adamc@1149 4400 case $cross_compiling:$ac_tool_warned in
adamc@1149 4401 yes:)
adamc@1149 4402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1149 4403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1149 4404 ac_tool_warned=yes ;;
adamc@1149 4405 esac
adamc@1149 4406 CC=$ac_ct_CC
adamc@1149 4407 fi
adamc@1149 4408 else
adamc@1149 4409 CC="$ac_cv_prog_CC"
adamc@1149 4410 fi
adamc@1149 4411
adamc@1149 4412 if test -z "$CC"; then
adamc@1149 4413 if test -n "$ac_tool_prefix"; then
adamc@1149 4414 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
adamc@1149 4415 set dummy ${ac_tool_prefix}cc; ac_word=$2
adamc@1149 4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1149 4417 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 4418 if ${ac_cv_prog_CC+:} false; then :
adamc@1149 4419 $as_echo_n "(cached) " >&6
adamc@1149 4420 else
adamc@1149 4421 if test -n "$CC"; then
adamc@1149 4422 ac_cv_prog_CC="$CC" # Let the user override the test.
adamc@1149 4423 else
adamc@1149 4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1149 4425 for as_dir in $PATH
adamc@1149 4426 do
adamc@1149 4427 IFS=$as_save_IFS
adamc@1149 4428 test -z "$as_dir" && as_dir=.
adamc@1149 4429 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 4430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1149 4431 ac_cv_prog_CC="${ac_tool_prefix}cc"
adamc@1149 4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1149 4433 break 2
adamc@1149 4434 fi
adamc@1149 4435 done
adamc@1149 4436 done
adamc@1149 4437 IFS=$as_save_IFS
adamc@1149 4438
adamc@1149 4439 fi
adamc@1149 4440 fi
adamc@1149 4441 CC=$ac_cv_prog_CC
adamc@1149 4442 if test -n "$CC"; then
adamc@1149 4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
adamc@1149 4444 $as_echo "$CC" >&6; }
adamc@1149 4445 else
adamc@1149 4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1149 4447 $as_echo "no" >&6; }
adamc@1149 4448 fi
adamc@1149 4449
adamc@1149 4450
adamc@1149 4451 fi
adamc@1149 4452 fi
adamc@1149 4453 if test -z "$CC"; then
adamc@1149 4454 # Extract the first word of "cc", so it can be a program name with args.
adamc@1149 4455 set dummy cc; ac_word=$2
adamc@1149 4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1149 4457 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 4458 if ${ac_cv_prog_CC+:} false; then :
adamc@1149 4459 $as_echo_n "(cached) " >&6
adamc@1149 4460 else
adamc@1149 4461 if test -n "$CC"; then
adamc@1149 4462 ac_cv_prog_CC="$CC" # Let the user override the test.
adamc@1149 4463 else
adamc@1149 4464 ac_prog_rejected=no
adamc@1149 4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1149 4466 for as_dir in $PATH
adamc@1149 4467 do
adamc@1149 4468 IFS=$as_save_IFS
adamc@1149 4469 test -z "$as_dir" && as_dir=.
adamc@1149 4470 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 4471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1149 4472 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
adamc@1149 4473 ac_prog_rejected=yes
adamc@1149 4474 continue
adamc@1149 4475 fi
adamc@1149 4476 ac_cv_prog_CC="cc"
adamc@1149 4477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1149 4478 break 2
adamc@1149 4479 fi
adamc@1149 4480 done
adamc@1149 4481 done
adamc@1149 4482 IFS=$as_save_IFS
adamc@1149 4483
adamc@1149 4484 if test $ac_prog_rejected = yes; then
adamc@1149 4485 # We found a bogon in the path, so make sure we never use it.
adamc@1149 4486 set dummy $ac_cv_prog_CC
adamc@1149 4487 shift
adamc@1149 4488 if test $# != 0; then
adamc@1149 4489 # We chose a different compiler from the bogus one.
adamc@1149 4490 # However, it has the same basename, so the bogon will be chosen
adamc@1149 4491 # first if we set CC to just the basename; use the full file name.
adamc@1149 4492 shift
adamc@1149 4493 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
adamc@1149 4494 fi
adamc@1149 4495 fi
adamc@1149 4496 fi
adamc@1149 4497 fi
adamc@1149 4498 CC=$ac_cv_prog_CC
adamc@1149 4499 if test -n "$CC"; then
adamc@1149 4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
adamc@1149 4501 $as_echo "$CC" >&6; }
adamc@1149 4502 else
adamc@1149 4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1149 4504 $as_echo "no" >&6; }
adamc@1149 4505 fi
adamc@1149 4506
adamc@1149 4507
adamc@1149 4508 fi
adamc@1149 4509 if test -z "$CC"; then
adamc@1149 4510 if test -n "$ac_tool_prefix"; then
adamc@1149 4511 for ac_prog in cl.exe
adamc@1149 4512 do
adamc@1149 4513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
adamc@1149 4514 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
adamc@1149 4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1149 4516 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 4517 if ${ac_cv_prog_CC+:} false; then :
adamc@1149 4518 $as_echo_n "(cached) " >&6
adamc@1149 4519 else
adamc@1149 4520 if test -n "$CC"; then
adamc@1149 4521 ac_cv_prog_CC="$CC" # Let the user override the test.
adamc@1149 4522 else
adamc@1149 4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1149 4524 for as_dir in $PATH
adamc@1149 4525 do
adamc@1149 4526 IFS=$as_save_IFS
adamc@1149 4527 test -z "$as_dir" && as_dir=.
adamc@1149 4528 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 4529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1149 4530 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
adamc@1149 4531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1149 4532 break 2
adamc@1149 4533 fi
adamc@1149 4534 done
adamc@1149 4535 done
adamc@1149 4536 IFS=$as_save_IFS
adamc@1149 4537
adamc@1149 4538 fi
adamc@1149 4539 fi
adamc@1149 4540 CC=$ac_cv_prog_CC
adamc@1149 4541 if test -n "$CC"; then
adamc@1149 4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
adamc@1149 4543 $as_echo "$CC" >&6; }
adamc@1149 4544 else
adamc@1149 4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1149 4546 $as_echo "no" >&6; }
adamc@1149 4547 fi
adamc@1149 4548
adamc@1149 4549
adamc@1149 4550 test -n "$CC" && break
adamc@1149 4551 done
adamc@1149 4552 fi
adamc@1149 4553 if test -z "$CC"; then
adamc@1149 4554 ac_ct_CC=$CC
adamc@1149 4555 for ac_prog in cl.exe
adamc@1149 4556 do
adamc@1149 4557 # Extract the first word of "$ac_prog", so it can be a program name with args.
adamc@1149 4558 set dummy $ac_prog; ac_word=$2
adamc@1149 4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1149 4560 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 4561 if ${ac_cv_prog_ac_ct_CC+:} false; then :
adamc@1149 4562 $as_echo_n "(cached) " >&6
adamc@1149 4563 else
adamc@1149 4564 if test -n "$ac_ct_CC"; then
adamc@1149 4565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
adamc@1149 4566 else
adamc@1149 4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1149 4568 for as_dir in $PATH
adamc@1149 4569 do
adamc@1149 4570 IFS=$as_save_IFS
adamc@1149 4571 test -z "$as_dir" && as_dir=.
adamc@1149 4572 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 4573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1149 4574 ac_cv_prog_ac_ct_CC="$ac_prog"
adamc@1149 4575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1149 4576 break 2
adamc@1149 4577 fi
adamc@1149 4578 done
adamc@1149 4579 done
adamc@1149 4580 IFS=$as_save_IFS
adamc@1149 4581
adamc@1149 4582 fi
adamc@1149 4583 fi
adamc@1149 4584 ac_ct_CC=$ac_cv_prog_ac_ct_CC
adamc@1149 4585 if test -n "$ac_ct_CC"; then
adamc@1149 4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
adamc@1149 4587 $as_echo "$ac_ct_CC" >&6; }
adamc@1149 4588 else
adamc@1149 4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1149 4590 $as_echo "no" >&6; }
adamc@1149 4591 fi
adamc@1149 4592
adamc@1149 4593
adamc@1149 4594 test -n "$ac_ct_CC" && break
adamc@1149 4595 done
adamc@1149 4596
adamc@1149 4597 if test "x$ac_ct_CC" = x; then
adamc@1149 4598 CC=""
adamc@1149 4599 else
adamc@1149 4600 case $cross_compiling:$ac_tool_warned in
adamc@1149 4601 yes:)
adamc@1149 4602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1149 4603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1149 4604 ac_tool_warned=yes ;;
adamc@1149 4605 esac
adamc@1149 4606 CC=$ac_ct_CC
adamc@1149 4607 fi
adamc@1149 4608 fi
adamc@1149 4609
adamc@1149 4610 fi
adamc@1149 4611
adamc@1149 4612
adamc@1149 4613 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
adamc@1149 4614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
adam@1315 4615 as_fn_error $? "no acceptable C compiler found in \$PATH
adam@1599 4616 See \`config.log' for more details" "$LINENO" 5; }
adamc@1149 4617
adamc@1149 4618 # Provide some information about the compiler.
adamc@1149 4619 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
adamc@1149 4620 set X $ac_compile
adamc@1149 4621 ac_compiler=$2
adamc@1149 4622 for ac_option in --version -v -V -qversion; do
adamc@1149 4623 { { ac_try="$ac_compiler $ac_option >&5"
adamc@1149 4624 case "(($ac_try" in
adamc@1149 4625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1149 4626 *) ac_try_echo=$ac_try;;
adamc@1149 4627 esac
adamc@1149 4628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1149 4629 $as_echo "$ac_try_echo"; } >&5
adamc@1149 4630 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
adamc@1149 4631 ac_status=$?
adamc@1149 4632 if test -s conftest.err; then
adamc@1149 4633 sed '10a\
adamc@1149 4634 ... rest of stderr output deleted ...
adamc@1149 4635 10q' conftest.err >conftest.er1
adamc@1149 4636 cat conftest.er1 >&5
adamc@1149 4637 fi
adamc@1149 4638 rm -f conftest.er1 conftest.err
adamc@1149 4639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1149 4640 test $ac_status = 0; }
adamc@1149 4641 done
adamc@1149 4642
adamc@1149 4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
adamc@1149 4644 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
adam@1599 4645 if ${ac_cv_c_compiler_gnu+:} false; then :
adamc@1149 4646 $as_echo_n "(cached) " >&6
adamc@1149 4647 else
adamc@1149 4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 4649 /* end confdefs.h. */
adamc@1149 4650
adamc@1149 4651 int
adamc@1149 4652 main ()
adamc@1149 4653 {
adamc@1149 4654 #ifndef __GNUC__
adamc@1149 4655 choke me
adamc@1149 4656 #endif
adamc@1149 4657
adamc@1149 4658 ;
adamc@1149 4659 return 0;
adamc@1149 4660 }
adamc@1149 4661 _ACEOF
adamc@1149 4662 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1149 4663 ac_compiler_gnu=yes
adamc@1149 4664 else
adamc@1149 4665 ac_compiler_gnu=no
adamc@1149 4666 fi
adamc@1149 4667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adamc@1149 4668 ac_cv_c_compiler_gnu=$ac_compiler_gnu
adamc@1149 4669
adamc@1149 4670 fi
adamc@1149 4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
adamc@1149 4672 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
adamc@1149 4673 if test $ac_compiler_gnu = yes; then
adamc@1149 4674 GCC=yes
adamc@1149 4675 else
adamc@1149 4676 GCC=
adamc@1149 4677 fi
adamc@1149 4678 ac_test_CFLAGS=${CFLAGS+set}
adamc@1149 4679 ac_save_CFLAGS=$CFLAGS
adamc@1149 4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
adamc@1149 4681 $as_echo_n "checking whether $CC accepts -g... " >&6; }
adam@1599 4682 if ${ac_cv_prog_cc_g+:} false; then :
adamc@1149 4683 $as_echo_n "(cached) " >&6
adamc@1149 4684 else
adamc@1149 4685 ac_save_c_werror_flag=$ac_c_werror_flag
adamc@1149 4686 ac_c_werror_flag=yes
adamc@1149 4687 ac_cv_prog_cc_g=no
adamc@1149 4688 CFLAGS="-g"
adamc@1149 4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 4690 /* end confdefs.h. */
adamc@1149 4691
adamc@1149 4692 int
adamc@1149 4693 main ()
adamc@1149 4694 {
adamc@1149 4695
adamc@1149 4696 ;
adamc@1149 4697 return 0;
adamc@1149 4698 }
adamc@1149 4699 _ACEOF
adamc@1149 4700 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1149 4701 ac_cv_prog_cc_g=yes
adamc@1149 4702 else
adamc@1149 4703 CFLAGS=""
adamc@1149 4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 4705 /* end confdefs.h. */
adamc@1149 4706
adamc@1149 4707 int
adamc@1149 4708 main ()
adamc@1149 4709 {
adamc@1149 4710
adamc@1149 4711 ;
adamc@1149 4712 return 0;
adamc@1149 4713 }
adamc@1149 4714 _ACEOF
adamc@1149 4715 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1149 4716
adamc@1149 4717 else
adamc@1149 4718 ac_c_werror_flag=$ac_save_c_werror_flag
adamc@1149 4719 CFLAGS="-g"
adamc@1149 4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 4721 /* end confdefs.h. */
adamc@1149 4722
adamc@1149 4723 int
adamc@1149 4724 main ()
adamc@1149 4725 {
adamc@1149 4726
adamc@1149 4727 ;
adamc@1149 4728 return 0;
adamc@1149 4729 }
adamc@1149 4730 _ACEOF
adamc@1149 4731 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1149 4732 ac_cv_prog_cc_g=yes
adamc@1149 4733 fi
adamc@1149 4734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adamc@1149 4735 fi
adamc@1149 4736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adamc@1149 4737 fi
adamc@1149 4738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adamc@1149 4739 ac_c_werror_flag=$ac_save_c_werror_flag
adamc@1149 4740 fi
adamc@1149 4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
adamc@1149 4742 $as_echo "$ac_cv_prog_cc_g" >&6; }
adamc@1149 4743 if test "$ac_test_CFLAGS" = set; then
adamc@1149 4744 CFLAGS=$ac_save_CFLAGS
adamc@1149 4745 elif test $ac_cv_prog_cc_g = yes; then
adamc@1149 4746 if test "$GCC" = yes; then
adamc@1149 4747 CFLAGS="-g -O2"
adamc@1149 4748 else
adamc@1149 4749 CFLAGS="-g"
adamc@1149 4750 fi
adamc@1149 4751 else
adamc@1149 4752 if test "$GCC" = yes; then
adamc@1149 4753 CFLAGS="-O2"
adamc@1149 4754 else
adamc@1149 4755 CFLAGS=
adamc@1149 4756 fi
adamc@1149 4757 fi
adamc@1149 4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
adamc@1149 4759 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
adam@1599 4760 if ${ac_cv_prog_cc_c89+:} false; then :
adamc@1149 4761 $as_echo_n "(cached) " >&6
adamc@1149 4762 else
adamc@1149 4763 ac_cv_prog_cc_c89=no
adamc@1149 4764 ac_save_CC=$CC
adamc@1149 4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 4766 /* end confdefs.h. */
adamc@1149 4767 #include <stdarg.h>
adamc@1149 4768 #include <stdio.h>
adam@1771 4769 struct stat;
adamc@1149 4770 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
adamc@1149 4771 struct buf { int x; };
adamc@1149 4772 FILE * (*rcsopen) (struct buf *, struct stat *, int);
adamc@1149 4773 static char *e (p, i)
adamc@1149 4774 char **p;
adamc@1149 4775 int i;
adamc@1149 4776 {
adamc@1149 4777 return p[i];
adamc@1149 4778 }
adamc@1149 4779 static char *f (char * (*g) (char **, int), char **p, ...)
adamc@1149 4780 {
adamc@1149 4781 char *s;
adamc@1149 4782 va_list v;
adamc@1149 4783 va_start (v,p);
adamc@1149 4784 s = g (p, va_arg (v,int));
adamc@1149 4785 va_end (v);
adamc@1149 4786 return s;
adamc@1149 4787 }
adamc@1149 4788
adamc@1149 4789 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
adamc@1149 4790 function prototypes and stuff, but not '\xHH' hex character constants.
adamc@1149 4791 These don't provoke an error unfortunately, instead are silently treated
adamc@1149 4792 as 'x'. The following induces an error, until -std is added to get
adamc@1149 4793 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
adamc@1149 4794 array size at least. It's necessary to write '\x00'==0 to get something
adamc@1149 4795 that's true only with -std. */
adamc@1149 4796 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
adamc@1149 4797
adamc@1149 4798 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
adamc@1149 4799 inside strings and character constants. */
adamc@1149 4800 #define FOO(x) 'x'
adamc@1149 4801 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
adamc@1149 4802
adamc@1149 4803 int test (int i, double x);
adamc@1149 4804 struct s1 {int (*f) (int a);};
adamc@1149 4805 struct s2 {int (*f) (double a);};
adamc@1149 4806 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
adamc@1149 4807 int argc;
adamc@1149 4808 char **argv;
adamc@1149 4809 int
adamc@1149 4810 main ()
adamc@1149 4811 {
adamc@1149 4812 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
adamc@1149 4813 ;
adamc@1149 4814 return 0;
adamc@1149 4815 }
adamc@1149 4816 _ACEOF
adamc@1149 4817 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
adamc@1149 4818 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
adamc@1149 4819 do
adamc@1149 4820 CC="$ac_save_CC $ac_arg"
adamc@1149 4821 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1149 4822 ac_cv_prog_cc_c89=$ac_arg
adamc@1149 4823 fi
adamc@1149 4824 rm -f core conftest.err conftest.$ac_objext
adamc@1149 4825 test "x$ac_cv_prog_cc_c89" != "xno" && break
adamc@1149 4826 done
adamc@1149 4827 rm -f conftest.$ac_ext
adamc@1149 4828 CC=$ac_save_CC
adamc@1149 4829
adamc@1149 4830 fi
adamc@1149 4831 # AC_CACHE_VAL
adamc@1149 4832 case "x$ac_cv_prog_cc_c89" in
adamc@1149 4833 x)
adamc@1149 4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
adamc@1149 4835 $as_echo "none needed" >&6; } ;;
adamc@1149 4836 xno)
adamc@1149 4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
adamc@1149 4838 $as_echo "unsupported" >&6; } ;;
adamc@1149 4839 *)
adamc@1149 4840 CC="$CC $ac_cv_prog_cc_c89"
adamc@1149 4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
adamc@1149 4842 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
adamc@1149 4843 esac
adamc@1149 4844 if test "x$ac_cv_prog_cc_c89" != xno; then :
adamc@1149 4845
adamc@1149 4846 fi
adamc@1149 4847
adamc@1149 4848 ac_ext=c
adamc@1149 4849 ac_cpp='$CPP $CPPFLAGS'
adamc@1149 4850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@1149 4851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@1149 4852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@1149 4853
adamc@1132 4854 case `pwd` in
adamc@1132 4855 *\ * | *\ *)
adamc@1132 4856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
adamc@1132 4857 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
adamc@1132 4858 esac
adamc@1132 4859
adamc@1132 4860
adamc@1132 4861
adam@1599 4862 macro_version='2.4.2'
adam@1599 4863 macro_revision='1.3337'
adamc@1132 4864
adamc@1132 4865
adamc@1132 4866
adamc@1132 4867
adamc@1132 4868
adamc@1132 4869
adamc@1132 4870
adamc@1132 4871
adamc@1132 4872
adamc@1132 4873
adamc@1132 4874
adamc@1132 4875
adamc@1132 4876
adamc@1132 4877 ltmain="$ac_aux_dir/ltmain.sh"
adamc@1132 4878
adamc@1132 4879 # Make sure we can run config.sub.
adamc@1132 4880 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
adam@1315 4881 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
adamc@1132 4882
adamc@1132 4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
adamc@1132 4884 $as_echo_n "checking build system type... " >&6; }
adam@1599 4885 if ${ac_cv_build+:} false; then :
adamc@1132 4886 $as_echo_n "(cached) " >&6
adamc@1132 4887 else
adamc@1132 4888 ac_build_alias=$build_alias
adamc@1132 4889 test "x$ac_build_alias" = x &&
adamc@1132 4890 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
adamc@1132 4891 test "x$ac_build_alias" = x &&
adam@1315 4892 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
adamc@1132 4893 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
adam@1315 4894 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
adamc@1132 4895
adamc@1132 4896 fi
adamc@1132 4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
adamc@1132 4898 $as_echo "$ac_cv_build" >&6; }
adamc@1132 4899 case $ac_cv_build in
adamc@1132 4900 *-*-*) ;;
adam@1599 4901 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
adamc@1132 4902 esac
adamc@1132 4903 build=$ac_cv_build
adamc@1132 4904 ac_save_IFS=$IFS; IFS='-'
adamc@1132 4905 set x $ac_cv_build
adamc@1132 4906 shift
adamc@1132 4907 build_cpu=$1
adamc@1132 4908 build_vendor=$2
adamc@1132 4909 shift; shift
adamc@1132 4910 # Remember, the first character of IFS is used to create $*,
adamc@1132 4911 # except with old shells:
adamc@1132 4912 build_os=$*
adamc@1132 4913 IFS=$ac_save_IFS
adamc@1132 4914 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
adamc@1132 4915
adamc@1132 4916
adamc@1132 4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
adamc@1132 4918 $as_echo_n "checking host system type... " >&6; }
adam@1599 4919 if ${ac_cv_host+:} false; then :
adamc@1132 4920 $as_echo_n "(cached) " >&6
adamc@1132 4921 else
adamc@1132 4922 if test "x$host_alias" = x; then
adamc@1132 4923 ac_cv_host=$ac_cv_build
adamc@1132 4924 else
adamc@1132 4925 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
adam@1315 4926 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
adamc@1132 4927 fi
adamc@1132 4928
adamc@1132 4929 fi
adamc@1132 4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
adamc@1132 4931 $as_echo "$ac_cv_host" >&6; }
adamc@1132 4932 case $ac_cv_host in
adamc@1132 4933 *-*-*) ;;
adam@1599 4934 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
adamc@1132 4935 esac
adamc@1132 4936 host=$ac_cv_host
adamc@1132 4937 ac_save_IFS=$IFS; IFS='-'
adamc@1132 4938 set x $ac_cv_host
adamc@1132 4939 shift
adamc@1132 4940 host_cpu=$1
adamc@1132 4941 host_vendor=$2
adamc@1132 4942 shift; shift
adamc@1132 4943 # Remember, the first character of IFS is used to create $*,
adamc@1132 4944 # except with old shells:
adamc@1132 4945 host_os=$*
adamc@1132 4946 IFS=$ac_save_IFS
adamc@1132 4947 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
adamc@1132 4948
adamc@1132 4949
adam@1459 4950 # Backslashify metacharacters that are still active within
adam@1459 4951 # double-quoted strings.
adam@1459 4952 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
adam@1459 4953
adam@1459 4954 # Same as above, but do not quote variable references.
adam@1459 4955 double_quote_subst='s/\(["`\\]\)/\\\1/g'
adam@1459 4956
adam@1459 4957 # Sed substitution to delay expansion of an escaped shell variable in a
adam@1459 4958 # double_quote_subst'ed string.
adam@1459 4959 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
adam@1459 4960
adam@1459 4961 # Sed substitution to delay expansion of an escaped single quote.
adam@1459 4962 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
adam@1459 4963
adam@1459 4964 # Sed substitution to avoid accidental globbing in evaled expressions
adam@1459 4965 no_glob_subst='s/\*/\\\*/g'
adam@1459 4966
adam@1459 4967 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
adam@1459 4968 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
adam@1459 4969 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
adam@1459 4970
adam@1459 4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
adam@1459 4972 $as_echo_n "checking how to print strings... " >&6; }
adam@1459 4973 # Test print first, because it will be a builtin if present.
adam@1459 4974 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
adam@1459 4975 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
adam@1459 4976 ECHO='print -r --'
adam@1459 4977 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
adam@1459 4978 ECHO='printf %s\n'
adam@1459 4979 else
adam@1459 4980 # Use this function as a fallback that always works.
adam@1459 4981 func_fallback_echo ()
adam@1459 4982 {
adam@1459 4983 eval 'cat <<_LTECHO_EOF
adam@1459 4984 $1
adam@1459 4985 _LTECHO_EOF'
adam@1459 4986 }
adam@1459 4987 ECHO='func_fallback_echo'
adam@1459 4988 fi
adam@1459 4989
adam@1459 4990 # func_echo_all arg...
adam@1459 4991 # Invoke $ECHO with all args, space-separated.
adam@1459 4992 func_echo_all ()
adam@1459 4993 {
adam@1459 4994 $ECHO ""
adam@1459 4995 }
adam@1459 4996
adam@1459 4997 case "$ECHO" in
adam@1459 4998 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
adam@1459 4999 $as_echo "printf" >&6; } ;;
adam@1459 5000 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
adam@1459 5001 $as_echo "print -r" >&6; } ;;
adam@1459 5002 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
adam@1459 5003 $as_echo "cat" >&6; } ;;
adam@1459 5004 esac
adam@1459 5005
adam@1459 5006
adam@1459 5007
adam@1459 5008
adam@1459 5009
adam@1459 5010
adam@1459 5011
adam@1459 5012
adam@1459 5013
adam@1459 5014
adam@1459 5015
adam@1459 5016
adam@1459 5017
adam@1459 5018
adamc@1132 5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
adamc@1132 5020 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
adam@1599 5021 if ${ac_cv_path_SED+:} false; then :
adamc@1132 5022 $as_echo_n "(cached) " >&6
adamc@1132 5023 else
adamc@1132 5024 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
adamc@1132 5025 for ac_i in 1 2 3 4 5 6 7; do
adamc@1132 5026 ac_script="$ac_script$as_nl$ac_script"
adamc@1132 5027 done
adamc@1132 5028 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
adamc@1132 5029 { ac_script=; unset ac_script;}
adamc@1132 5030 if test -z "$SED"; then
adamc@1132 5031 ac_path_SED_found=false
adamc@1132 5032 # Loop through the user's path and test for each of PROGNAME-LIST
adamc@1132 5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 5034 for as_dir in $PATH
adamc@1132 5035 do
adamc@1132 5036 IFS=$as_save_IFS
adamc@1132 5037 test -z "$as_dir" && as_dir=.
adamc@1132 5038 for ac_prog in sed gsed; do
adamc@1132 5039 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 5040 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
adam@1771 5041 as_fn_executable_p "$ac_path_SED" || continue
adamc@1132 5042 # Check for GNU ac_path_SED and select it if it is found.
adamc@1132 5043 # Check for GNU $ac_path_SED
adamc@1132 5044 case `"$ac_path_SED" --version 2>&1` in
adamc@1132 5045 *GNU*)
adamc@1132 5046 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
adamc@1132 5047 *)
adamc@1132 5048 ac_count=0
adamc@1132 5049 $as_echo_n 0123456789 >"conftest.in"
adamc@1132 5050 while :
adamc@1132 5051 do
adamc@1132 5052 cat "conftest.in" "conftest.in" >"conftest.tmp"
adamc@1132 5053 mv "conftest.tmp" "conftest.in"
adamc@1132 5054 cp "conftest.in" "conftest.nl"
adamc@1132 5055 $as_echo '' >> "conftest.nl"
adamc@1132 5056 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
adamc@1132 5057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
adamc@1132 5058 as_fn_arith $ac_count + 1 && ac_count=$as_val
adamc@1132 5059 if test $ac_count -gt ${ac_path_SED_max-0}; then
adamc@1132 5060 # Best one so far, save it but keep looking for a better one
adamc@1132 5061 ac_cv_path_SED="$ac_path_SED"
adamc@1132 5062 ac_path_SED_max=$ac_count
adamc@1132 5063 fi
adamc@1132 5064 # 10*(2^10) chars as input seems more than enough
adamc@1132 5065 test $ac_count -gt 10 && break
adamc@1132 5066 done
adamc@1132 5067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
adamc@1132 5068 esac
adamc@1132 5069
adamc@1132 5070 $ac_path_SED_found && break 3
adamc@1132 5071 done
adamc@1132 5072 done
adamc@1132 5073 done
adamc@1132 5074 IFS=$as_save_IFS
adamc@1132 5075 if test -z "$ac_cv_path_SED"; then
adam@1315 5076 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
adamc@1132 5077 fi
adamc@1132 5078 else
adamc@1132 5079 ac_cv_path_SED=$SED
adamc@1132 5080 fi
adamc@1132 5081
adamc@1132 5082 fi
adamc@1132 5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
adamc@1132 5084 $as_echo "$ac_cv_path_SED" >&6; }
adamc@1132 5085 SED="$ac_cv_path_SED"
adamc@1132 5086 rm -f conftest.sed
adamc@1132 5087
adamc@1132 5088 test -z "$SED" && SED=sed
adamc@1132 5089 Xsed="$SED -e 1s/^X//"
adamc@1132 5090
adamc@1132 5091
adamc@1132 5092
adamc@1132 5093
adamc@1132 5094
adamc@1132 5095
adamc@1132 5096
adamc@1132 5097
adamc@1132 5098
adamc@1132 5099
adamc@1132 5100
adamc@1132 5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
adamc@1132 5102 $as_echo_n "checking for fgrep... " >&6; }
adam@1599 5103 if ${ac_cv_path_FGREP+:} false; then :
adamc@1132 5104 $as_echo_n "(cached) " >&6
adamc@1132 5105 else
adamc@1132 5106 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
adamc@1132 5107 then ac_cv_path_FGREP="$GREP -F"
adamc@1132 5108 else
adamc@1132 5109 if test -z "$FGREP"; then
adamc@1132 5110 ac_path_FGREP_found=false
adamc@1132 5111 # Loop through the user's path and test for each of PROGNAME-LIST
adamc@1132 5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 5113 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
adamc@1132 5114 do
adamc@1132 5115 IFS=$as_save_IFS
adamc@1132 5116 test -z "$as_dir" && as_dir=.
adamc@1132 5117 for ac_prog in fgrep; do
adamc@1132 5118 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 5119 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
adam@1771 5120 as_fn_executable_p "$ac_path_FGREP" || continue
adamc@1132 5121 # Check for GNU ac_path_FGREP and select it if it is found.
adamc@1132 5122 # Check for GNU $ac_path_FGREP
adamc@1132 5123 case `"$ac_path_FGREP" --version 2>&1` in
adamc@1132 5124 *GNU*)
adamc@1132 5125 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
adamc@1132 5126 *)
adamc@1132 5127 ac_count=0
adamc@1132 5128 $as_echo_n 0123456789 >"conftest.in"
adamc@1132 5129 while :
adamc@1132 5130 do
adamc@1132 5131 cat "conftest.in" "conftest.in" >"conftest.tmp"
adamc@1132 5132 mv "conftest.tmp" "conftest.in"
adamc@1132 5133 cp "conftest.in" "conftest.nl"
adamc@1132 5134 $as_echo 'FGREP' >> "conftest.nl"
adamc@1132 5135 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
adamc@1132 5136 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
adamc@1132 5137 as_fn_arith $ac_count + 1 && ac_count=$as_val
adamc@1132 5138 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
adamc@1132 5139 # Best one so far, save it but keep looking for a better one
adamc@1132 5140 ac_cv_path_FGREP="$ac_path_FGREP"
adamc@1132 5141 ac_path_FGREP_max=$ac_count
adamc@1132 5142 fi
adamc@1132 5143 # 10*(2^10) chars as input seems more than enough
adamc@1132 5144 test $ac_count -gt 10 && break
adamc@1132 5145 done
adamc@1132 5146 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
adamc@1132 5147 esac
adamc@1132 5148
adamc@1132 5149 $ac_path_FGREP_found && break 3
adamc@1132 5150 done
adamc@1132 5151 done
adamc@1132 5152 done
adamc@1132 5153 IFS=$as_save_IFS
adamc@1132 5154 if test -z "$ac_cv_path_FGREP"; then
adam@1315 5155 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
adamc@1132 5156 fi
adamc@1132 5157 else
adamc@1132 5158 ac_cv_path_FGREP=$FGREP
adamc@1132 5159 fi
adamc@1132 5160
adamc@1132 5161 fi
adamc@1132 5162 fi
adamc@1132 5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
adamc@1132 5164 $as_echo "$ac_cv_path_FGREP" >&6; }
adamc@1132 5165 FGREP="$ac_cv_path_FGREP"
adamc@1132 5166
adamc@1132 5167
adamc@1132 5168 test -z "$GREP" && GREP=grep
adamc@1132 5169
adamc@1132 5170
adamc@1132 5171
adamc@1132 5172
adamc@1132 5173
adamc@1132 5174
adamc@1132 5175
adamc@1132 5176
adamc@1132 5177
adamc@1132 5178
adamc@1132 5179
adamc@1132 5180
adamc@1132 5181
adamc@1132 5182
adamc@1132 5183
adamc@1132 5184
adamc@1132 5185
adamc@1132 5186
adamc@1132 5187
adamc@1132 5188 # Check whether --with-gnu-ld was given.
adamc@1132 5189 if test "${with_gnu_ld+set}" = set; then :
adamc@1132 5190 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
adamc@1132 5191 else
adamc@1132 5192 with_gnu_ld=no
adamc@1132 5193 fi
adamc@1132 5194
adamc@1132 5195 ac_prog=ld
adamc@1132 5196 if test "$GCC" = yes; then
adamc@1132 5197 # Check if gcc -print-prog-name=ld gives a path.
adamc@1132 5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
adamc@1132 5199 $as_echo_n "checking for ld used by $CC... " >&6; }
adamc@1132 5200 case $host in
adamc@1132 5201 *-*-mingw*)
adamc@1132 5202 # gcc leaves a trailing carriage return which upsets mingw
adamc@1132 5203 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
adamc@1132 5204 *)
adamc@1132 5205 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
adamc@1132 5206 esac
adamc@1132 5207 case $ac_prog in
adamc@1132 5208 # Accept absolute paths.
adamc@1132 5209 [\\/]* | ?:[\\/]*)
adamc@1132 5210 re_direlt='/[^/][^/]*/\.\./'
adamc@1132 5211 # Canonicalize the pathname of ld
adamc@1132 5212 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
adamc@1132 5213 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
adamc@1132 5214 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
adamc@1132 5215 done
adamc@1132 5216 test -z "$LD" && LD="$ac_prog"
adamc@1132 5217 ;;
adamc@1132 5218 "")
adamc@1132 5219 # If it fails, then pretend we aren't using GCC.
adamc@1132 5220 ac_prog=ld
adamc@1132 5221 ;;
adamc@1132 5222 *)
adamc@1132 5223 # If it is relative, then search for the first ld in PATH.
adamc@1132 5224 with_gnu_ld=unknown
adamc@1132 5225 ;;
adamc@1132 5226 esac
adamc@1132 5227 elif test "$with_gnu_ld" = yes; then
adamc@1132 5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
adamc@1132 5229 $as_echo_n "checking for GNU ld... " >&6; }
adamc@1132 5230 else
adamc@1132 5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
adamc@1132 5232 $as_echo_n "checking for non-GNU ld... " >&6; }
adamc@1132 5233 fi
adam@1599 5234 if ${lt_cv_path_LD+:} false; then :
adamc@1132 5235 $as_echo_n "(cached) " >&6
adamc@1132 5236 else
adamc@1132 5237 if test -z "$LD"; then
adamc@1132 5238 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
adamc@1132 5239 for ac_dir in $PATH; do
adamc@1132 5240 IFS="$lt_save_ifs"
adamc@1132 5241 test -z "$ac_dir" && ac_dir=.
adamc@1132 5242 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
adamc@1132 5243 lt_cv_path_LD="$ac_dir/$ac_prog"
adamc@1132 5244 # Check to see if the program is GNU ld. I'd rather use --version,
adamc@1132 5245 # but apparently some variants of GNU ld only accept -v.
adamc@1132 5246 # Break only if it was the GNU/non-GNU ld that we prefer.
adamc@1132 5247 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
adamc@1132 5248 *GNU* | *'with BFD'*)
adamc@1132 5249 test "$with_gnu_ld" != no && break
adamc@1132 5250 ;;
adamc@1132 5251 *)
adamc@1132 5252 test "$with_gnu_ld" != yes && break
adamc@1132 5253 ;;
adamc@1132 5254 esac
adamc@1132 5255 fi
adamc@1132 5256 done
adamc@1132 5257 IFS="$lt_save_ifs"
adamc@1132 5258 else
adamc@1132 5259 lt_cv_path_LD="$LD" # Let the user override the test with a path.
adamc@1132 5260 fi
adamc@1132 5261 fi
adamc@1132 5262
adamc@1132 5263 LD="$lt_cv_path_LD"
adamc@1132 5264 if test -n "$LD"; then
adamc@1132 5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
adamc@1132 5266 $as_echo "$LD" >&6; }
adamc@1132 5267 else
adamc@1132 5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 5269 $as_echo "no" >&6; }
adamc@1132 5270 fi
adam@1315 5271 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
adamc@1132 5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
adamc@1132 5273 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
adam@1599 5274 if ${lt_cv_prog_gnu_ld+:} false; then :
adamc@1132 5275 $as_echo_n "(cached) " >&6
adamc@1132 5276 else
adamc@1132 5277 # I'd rather use --version here, but apparently some GNU lds only accept -v.
adamc@1132 5278 case `$LD -v 2>&1 </dev/null` in
adamc@1132 5279 *GNU* | *'with BFD'*)
adamc@1132 5280 lt_cv_prog_gnu_ld=yes
adamc@1132 5281 ;;
adamc@1132 5282 *)
adamc@1132 5283 lt_cv_prog_gnu_ld=no
adamc@1132 5284 ;;
adamc@1132 5285 esac
adamc@1132 5286 fi
adamc@1132 5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
adamc@1132 5288 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
adamc@1132 5289 with_gnu_ld=$lt_cv_prog_gnu_ld
adamc@1132 5290
adamc@1132 5291
adamc@1132 5292
adamc@1132 5293
adamc@1132 5294
adamc@1132 5295
adamc@1132 5296
adamc@1132 5297
adamc@1132 5298
adamc@1132 5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
adamc@1132 5300 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
adam@1599 5301 if ${lt_cv_path_NM+:} false; then :
adamc@1132 5302 $as_echo_n "(cached) " >&6
adamc@1132 5303 else
adamc@1132 5304 if test -n "$NM"; then
adamc@1132 5305 # Let the user override the test.
adamc@1132 5306 lt_cv_path_NM="$NM"
adamc@1132 5307 else
adamc@1132 5308 lt_nm_to_check="${ac_tool_prefix}nm"
adamc@1132 5309 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
adamc@1132 5310 lt_nm_to_check="$lt_nm_to_check nm"
adamc@1132 5311 fi
adamc@1132 5312 for lt_tmp_nm in $lt_nm_to_check; do
adamc@1132 5313 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
adamc@1132 5314 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
adamc@1132 5315 IFS="$lt_save_ifs"
adamc@1132 5316 test -z "$ac_dir" && ac_dir=.
adamc@1132 5317 tmp_nm="$ac_dir/$lt_tmp_nm"
adamc@1132 5318 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
adamc@1132 5319 # Check to see if the nm accepts a BSD-compat flag.
adamc@1132 5320 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
adamc@1132 5321 # nm: unknown option "B" ignored
adamc@1132 5322 # Tru64's nm complains that /dev/null is an invalid object file
adamc@1132 5323 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
adamc@1132 5324 */dev/null* | *'Invalid file or object type'*)
adamc@1132 5325 lt_cv_path_NM="$tmp_nm -B"
adamc@1132 5326 break
adamc@1132 5327 ;;
adamc@1132 5328 *)
adamc@1132 5329 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
adamc@1132 5330 */dev/null*)
adamc@1132 5331 lt_cv_path_NM="$tmp_nm -p"
adamc@1132 5332 break
adamc@1132 5333 ;;
adamc@1132 5334 *)
adamc@1132 5335 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
adamc@1132 5336 continue # so that we can try to find one that supports BSD flags
adamc@1132 5337 ;;
adamc@1132 5338 esac
adamc@1132 5339 ;;
adamc@1132 5340 esac
adamc@1132 5341 fi
adamc@1132 5342 done
adamc@1132 5343 IFS="$lt_save_ifs"
adamc@1132 5344 done
adamc@1132 5345 : ${lt_cv_path_NM=no}
adamc@1132 5346 fi
adamc@1132 5347 fi
adamc@1132 5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
adamc@1132 5349 $as_echo "$lt_cv_path_NM" >&6; }
adamc@1132 5350 if test "$lt_cv_path_NM" != "no"; then
adamc@1132 5351 NM="$lt_cv_path_NM"
adamc@1132 5352 else
adamc@1132 5353 # Didn't find any BSD compatible name lister, look for dumpbin.
adam@1459 5354 if test -n "$DUMPBIN"; then :
adam@1459 5355 # Let the user override the test.
adam@1459 5356 else
adam@1459 5357 if test -n "$ac_tool_prefix"; then
adam@1459 5358 for ac_prog in dumpbin "link -dump"
adamc@1132 5359 do
adamc@1132 5360 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
adamc@1132 5361 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
adamc@1132 5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 5363 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 5364 if ${ac_cv_prog_DUMPBIN+:} false; then :
adamc@1132 5365 $as_echo_n "(cached) " >&6
adamc@1132 5366 else
adamc@1132 5367 if test -n "$DUMPBIN"; then
adamc@1132 5368 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
adamc@1132 5369 else
adamc@1132 5370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 5371 for as_dir in $PATH
adamc@1132 5372 do
adamc@1132 5373 IFS=$as_save_IFS
adamc@1132 5374 test -z "$as_dir" && as_dir=.
adamc@1132 5375 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 5376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1132 5377 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
adamc@1132 5378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 5379 break 2
adamc@1132 5380 fi
adamc@1132 5381 done
adamc@1132 5382 done
adamc@1132 5383 IFS=$as_save_IFS
adamc@1132 5384
adamc@1132 5385 fi
adamc@1132 5386 fi
adamc@1132 5387 DUMPBIN=$ac_cv_prog_DUMPBIN
adamc@1132 5388 if test -n "$DUMPBIN"; then
adamc@1132 5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
adamc@1132 5390 $as_echo "$DUMPBIN" >&6; }
adamc@1132 5391 else
adamc@1132 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 5393 $as_echo "no" >&6; }
adamc@1132 5394 fi
adamc@1132 5395
adamc@1132 5396
adamc@1132 5397 test -n "$DUMPBIN" && break
adamc@1132 5398 done
adamc@1132 5399 fi
adamc@1132 5400 if test -z "$DUMPBIN"; then
adamc@1132 5401 ac_ct_DUMPBIN=$DUMPBIN
adam@1459 5402 for ac_prog in dumpbin "link -dump"
adamc@1132 5403 do
adamc@1132 5404 # Extract the first word of "$ac_prog", so it can be a program name with args.
adamc@1132 5405 set dummy $ac_prog; ac_word=$2
adamc@1132 5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 5407 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 5408 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
adamc@1132 5409 $as_echo_n "(cached) " >&6
adamc@1132 5410 else
adamc@1132 5411 if test -n "$ac_ct_DUMPBIN"; then
adamc@1132 5412 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
adamc@1132 5413 else
adamc@1132 5414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 5415 for as_dir in $PATH
adamc@1132 5416 do
adamc@1132 5417 IFS=$as_save_IFS
adamc@1132 5418 test -z "$as_dir" && as_dir=.
adamc@1132 5419 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 5420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1132 5421 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
adamc@1132 5422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 5423 break 2
adamc@1132 5424 fi
adamc@1132 5425 done
adamc@1132 5426 done
adamc@1132 5427 IFS=$as_save_IFS
adamc@1132 5428
adamc@1132 5429 fi
adamc@1132 5430 fi
adamc@1132 5431 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
adamc@1132 5432 if test -n "$ac_ct_DUMPBIN"; then
adamc@1132 5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
adamc@1132 5434 $as_echo "$ac_ct_DUMPBIN" >&6; }
adamc@1132 5435 else
adamc@1132 5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 5437 $as_echo "no" >&6; }
adamc@1132 5438 fi
adamc@1132 5439
adamc@1132 5440
adamc@1132 5441 test -n "$ac_ct_DUMPBIN" && break
adamc@1132 5442 done
adamc@1132 5443
adamc@1132 5444 if test "x$ac_ct_DUMPBIN" = x; then
adamc@1132 5445 DUMPBIN=":"
adamc@1132 5446 else
adamc@1132 5447 case $cross_compiling:$ac_tool_warned in
adamc@1132 5448 yes:)
adamc@1132 5449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 5450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 5451 ac_tool_warned=yes ;;
adamc@1132 5452 esac
adamc@1132 5453 DUMPBIN=$ac_ct_DUMPBIN
adamc@1132 5454 fi
adamc@1132 5455 fi
adamc@1132 5456
adam@1459 5457 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
adam@1459 5458 *COFF*)
adam@1459 5459 DUMPBIN="$DUMPBIN -symbols"
adam@1459 5460 ;;
adam@1459 5461 *)
adam@1459 5462 DUMPBIN=:
adam@1459 5463 ;;
adam@1459 5464 esac
adam@1459 5465 fi
adamc@1132 5466
adamc@1132 5467 if test "$DUMPBIN" != ":"; then
adamc@1132 5468 NM="$DUMPBIN"
adamc@1132 5469 fi
adamc@1132 5470 fi
adamc@1132 5471 test -z "$NM" && NM=nm
adamc@1132 5472
adamc@1132 5473
adamc@1132 5474
adamc@1132 5475
adamc@1132 5476
adamc@1132 5477
adamc@1132 5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
adamc@1132 5479 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
adam@1599 5480 if ${lt_cv_nm_interface+:} false; then :
adamc@1132 5481 $as_echo_n "(cached) " >&6
adamc@1132 5482 else
adamc@1132 5483 lt_cv_nm_interface="BSD nm"
adamc@1132 5484 echo "int some_variable = 0;" > conftest.$ac_ext
adam@1459 5485 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
adamc@1132 5486 (eval "$ac_compile" 2>conftest.err)
adamc@1132 5487 cat conftest.err >&5
adam@1459 5488 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
adamc@1132 5489 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
adamc@1132 5490 cat conftest.err >&5
adam@1459 5491 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
adamc@1132 5492 cat conftest.out >&5
adamc@1132 5493 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
adamc@1132 5494 lt_cv_nm_interface="MS dumpbin"
adamc@1132 5495 fi
adamc@1132 5496 rm -f conftest*
adamc@1132 5497 fi
adamc@1132 5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
adamc@1132 5499 $as_echo "$lt_cv_nm_interface" >&6; }
adamc@1132 5500
adamc@1132 5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
adamc@1132 5502 $as_echo_n "checking whether ln -s works... " >&6; }
adamc@1132 5503 LN_S=$as_ln_s
adamc@1132 5504 if test "$LN_S" = "ln -s"; then
adamc@1132 5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
adamc@1132 5506 $as_echo "yes" >&6; }
adamc@1132 5507 else
adamc@1132 5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
adamc@1132 5509 $as_echo "no, using $LN_S" >&6; }
adamc@1132 5510 fi
adamc@1132 5511
adamc@1132 5512 # find the maximum length of command line arguments
adamc@1132 5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
adamc@1132 5514 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
adam@1599 5515 if ${lt_cv_sys_max_cmd_len+:} false; then :
adamc@1132 5516 $as_echo_n "(cached) " >&6
adamc@1132 5517 else
adamc@1132 5518 i=0
adamc@1132 5519 teststring="ABCD"
adamc@1132 5520
adamc@1132 5521 case $build_os in
adamc@1132 5522 msdosdjgpp*)
adamc@1132 5523 # On DJGPP, this test can blow up pretty badly due to problems in libc
adamc@1132 5524 # (any single argument exceeding 2000 bytes causes a buffer overrun
adamc@1132 5525 # during glob expansion). Even if it were fixed, the result of this
adamc@1132 5526 # check would be larger than it should be.
adamc@1132 5527 lt_cv_sys_max_cmd_len=12288; # 12K is about right
adamc@1132 5528 ;;
adamc@1132 5529
adamc@1132 5530 gnu*)
adamc@1132 5531 # Under GNU Hurd, this test is not required because there is
adamc@1132 5532 # no limit to the length of command line arguments.
adamc@1132 5533 # Libtool will interpret -1 as no limit whatsoever
adamc@1132 5534 lt_cv_sys_max_cmd_len=-1;
adamc@1132 5535 ;;
adamc@1132 5536
adamc@1132 5537 cygwin* | mingw* | cegcc*)
adamc@1132 5538 # On Win9x/ME, this test blows up -- it succeeds, but takes
adamc@1132 5539 # about 5 minutes as the teststring grows exponentially.
adamc@1132 5540 # Worse, since 9x/ME are not pre-emptively multitasking,
adamc@1132 5541 # you end up with a "frozen" computer, even though with patience
adamc@1132 5542 # the test eventually succeeds (with a max line length of 256k).
adamc@1132 5543 # Instead, let's just punt: use the minimum linelength reported by
adamc@1132 5544 # all of the supported platforms: 8192 (on NT/2K/XP).
adamc@1132 5545 lt_cv_sys_max_cmd_len=8192;
adamc@1132 5546 ;;
adamc@1132 5547
adam@1459 5548 mint*)
adam@1459 5549 # On MiNT this can take a long time and run out of memory.
adam@1459 5550 lt_cv_sys_max_cmd_len=8192;
adam@1459 5551 ;;
adam@1459 5552
adamc@1132 5553 amigaos*)
adamc@1132 5554 # On AmigaOS with pdksh, this test takes hours, literally.
adamc@1132 5555 # So we just punt and use a minimum line length of 8192.
adamc@1132 5556 lt_cv_sys_max_cmd_len=8192;
adamc@1132 5557 ;;
adamc@1132 5558
adamc@1132 5559 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
adamc@1132 5560 # This has been around since 386BSD, at least. Likely further.
adamc@1132 5561 if test -x /sbin/sysctl; then
adamc@1132 5562 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
adamc@1132 5563 elif test -x /usr/sbin/sysctl; then
adamc@1132 5564 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
adamc@1132 5565 else
adamc@1132 5566 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
adamc@1132 5567 fi
adamc@1132 5568 # And add a safety zone
adamc@1132 5569 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
adamc@1132 5570 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
adamc@1132 5571 ;;
adamc@1132 5572
adamc@1132 5573 interix*)
adamc@1132 5574 # We know the value 262144 and hardcode it with a safety zone (like BSD)
adamc@1132 5575 lt_cv_sys_max_cmd_len=196608
adamc@1132 5576 ;;
adamc@1132 5577
adam@1599 5578 os2*)
adam@1599 5579 # The test takes a long time on OS/2.
adam@1599 5580 lt_cv_sys_max_cmd_len=8192
adam@1599 5581 ;;
adam@1599 5582
adamc@1132 5583 osf*)
adamc@1132 5584 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
adamc@1132 5585 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
adamc@1132 5586 # nice to cause kernel panics so lets avoid the loop below.
adamc@1132 5587 # First set a reasonable default.
adamc@1132 5588 lt_cv_sys_max_cmd_len=16384
adamc@1132 5589 #
adamc@1132 5590 if test -x /sbin/sysconfig; then
adamc@1132 5591 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
adamc@1132 5592 *1*) lt_cv_sys_max_cmd_len=-1 ;;
adamc@1132 5593 esac
adamc@1132 5594 fi
adamc@1132 5595 ;;
adamc@1132 5596 sco3.2v5*)
adamc@1132 5597 lt_cv_sys_max_cmd_len=102400
adamc@1132 5598 ;;
adamc@1132 5599 sysv5* | sco5v6* | sysv4.2uw2*)
adamc@1132 5600 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
adamc@1132 5601 if test -n "$kargmax"; then
adamc@1132 5602 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
adamc@1132 5603 else
adamc@1132 5604 lt_cv_sys_max_cmd_len=32768
adamc@1132 5605 fi
adamc@1132 5606 ;;
adamc@1132 5607 *)
adamc@1132 5608 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
adamc@1132 5609 if test -n "$lt_cv_sys_max_cmd_len"; then
adamc@1132 5610 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
adamc@1132 5611 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
adamc@1132 5612 else
adamc@1132 5613 # Make teststring a little bigger before we do anything with it.
adamc@1132 5614 # a 1K string should be a reasonable start.
adamc@1132 5615 for i in 1 2 3 4 5 6 7 8 ; do
adamc@1132 5616 teststring=$teststring$teststring
adamc@1132 5617 done
adamc@1132 5618 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
adamc@1132 5619 # If test is not a shell built-in, we'll probably end up computing a
adamc@1132 5620 # maximum length that is only half of the actual maximum length, but
adamc@1132 5621 # we can't tell.
adam@1599 5622 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
adam@1459 5623 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
adamc@1132 5624 test $i != 17 # 1/2 MB should be enough
adamc@1132 5625 do
adamc@1132 5626 i=`expr $i + 1`
adamc@1132 5627 teststring=$teststring$teststring
adamc@1132 5628 done
adamc@1132 5629 # Only check the string length outside the loop.
adamc@1132 5630 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
adamc@1132 5631 teststring=
adamc@1132 5632 # Add a significant safety factor because C++ compilers can tack on
adamc@1132 5633 # massive amounts of additional arguments before passing them to the
adamc@1132 5634 # linker. It appears as though 1/2 is a usable value.
adamc@1132 5635 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
adamc@1132 5636 fi
adamc@1132 5637 ;;
adamc@1132 5638 esac
adamc@1132 5639
adamc@1132 5640 fi
adamc@1132 5641
adamc@1132 5642 if test -n $lt_cv_sys_max_cmd_len ; then
adamc@1132 5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
adamc@1132 5644 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
adamc@1132 5645 else
adamc@1132 5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
adamc@1132 5647 $as_echo "none" >&6; }
adamc@1132 5648 fi
adamc@1132 5649 max_cmd_len=$lt_cv_sys_max_cmd_len
adamc@1132 5650
adamc@1132 5651
adamc@1132 5652
adamc@1132 5653
adamc@1132 5654
adamc@1132 5655
adamc@1132 5656 : ${CP="cp -f"}
adamc@1132 5657 : ${MV="mv -f"}
adamc@1132 5658 : ${RM="rm -f"}
adamc@1132 5659
adamc@1132 5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
adamc@1132 5661 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
adamc@1132 5662 # Try some XSI features
adamc@1132 5663 xsi_shell=no
adamc@1132 5664 ( _lt_dummy="a/b/c"
adam@1459 5665 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
adam@1459 5666 = c,a/b,b/c, \
adamc@1132 5667 && eval 'test $(( 1 + 1 )) -eq 2 \
adamc@1132 5668 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
adamc@1132 5669 && xsi_shell=yes
adamc@1132 5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
adamc@1132 5671 $as_echo "$xsi_shell" >&6; }
adamc@1132 5672
adamc@1132 5673
adamc@1132 5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
adamc@1132 5675 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
adamc@1132 5676 lt_shell_append=no
adamc@1132 5677 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
adamc@1132 5678 >/dev/null 2>&1 \
adamc@1132 5679 && lt_shell_append=yes
adamc@1132 5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
adamc@1132 5681 $as_echo "$lt_shell_append" >&6; }
adamc@1132 5682
adamc@1132 5683
adamc@1132 5684 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
adamc@1132 5685 lt_unset=unset
adamc@1132 5686 else
adamc@1132 5687 lt_unset=false
adamc@1132 5688 fi
adamc@1132 5689
adamc@1132 5690
adamc@1132 5691
adamc@1132 5692
adamc@1132 5693
adamc@1132 5694 # test EBCDIC or ASCII
adamc@1132 5695 case `echo X|tr X '\101'` in
adamc@1132 5696 A) # ASCII based system
adamc@1132 5697 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
adamc@1132 5698 lt_SP2NL='tr \040 \012'
adamc@1132 5699 lt_NL2SP='tr \015\012 \040\040'
adamc@1132 5700 ;;
adamc@1132 5701 *) # EBCDIC based system
adamc@1132 5702 lt_SP2NL='tr \100 \n'
adamc@1132 5703 lt_NL2SP='tr \r\n \100\100'
adamc@1132 5704 ;;
adamc@1132 5705 esac
adamc@1132 5706
adamc@1132 5707
adamc@1132 5708
adamc@1132 5709
adamc@1132 5710
adamc@1132 5711
adamc@1132 5712
adamc@1132 5713
adamc@1132 5714
adam@1459 5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
adam@1459 5716 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
adam@1599 5717 if ${lt_cv_to_host_file_cmd+:} false; then :
adam@1459 5718 $as_echo_n "(cached) " >&6
adam@1459 5719 else
adam@1459 5720 case $host in
adam@1459 5721 *-*-mingw* )
adam@1459 5722 case $build in
adam@1459 5723 *-*-mingw* ) # actually msys
adam@1459 5724 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
adam@1459 5725 ;;
adam@1459 5726 *-*-cygwin* )
adam@1459 5727 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
adam@1459 5728 ;;
adam@1459 5729 * ) # otherwise, assume *nix
adam@1459 5730 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
adam@1459 5731 ;;
adam@1459 5732 esac
adam@1459 5733 ;;
adam@1459 5734 *-*-cygwin* )
adam@1459 5735 case $build in
adam@1459 5736 *-*-mingw* ) # actually msys
adam@1459 5737 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
adam@1459 5738 ;;
adam@1459 5739 *-*-cygwin* )
adam@1459 5740 lt_cv_to_host_file_cmd=func_convert_file_noop
adam@1459 5741 ;;
adam@1459 5742 * ) # otherwise, assume *nix
adam@1459 5743 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
adam@1459 5744 ;;
adam@1459 5745 esac
adam@1459 5746 ;;
adam@1459 5747 * ) # unhandled hosts (and "normal" native builds)
adam@1459 5748 lt_cv_to_host_file_cmd=func_convert_file_noop
adam@1459 5749 ;;
adam@1459 5750 esac
adam@1459 5751
adam@1459 5752 fi
adam@1459 5753
adam@1459 5754 to_host_file_cmd=$lt_cv_to_host_file_cmd
adam@1459 5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
adam@1459 5756 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
adam@1459 5757
adam@1459 5758
adam@1459 5759
adam@1459 5760
adam@1459 5761
adam@1459 5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
adam@1459 5763 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
adam@1599 5764 if ${lt_cv_to_tool_file_cmd+:} false; then :
adam@1459 5765 $as_echo_n "(cached) " >&6
adam@1459 5766 else
adam@1459 5767 #assume ordinary cross tools, or native build.
adam@1459 5768 lt_cv_to_tool_file_cmd=func_convert_file_noop
adam@1459 5769 case $host in
adam@1459 5770 *-*-mingw* )
adam@1459 5771 case $build in
adam@1459 5772 *-*-mingw* ) # actually msys
adam@1459 5773 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
adam@1459 5774 ;;
adam@1459 5775 esac
adam@1459 5776 ;;
adam@1459 5777 esac
adam@1459 5778
adam@1459 5779 fi
adam@1459 5780
adam@1459 5781 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
adam@1459 5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
adam@1459 5783 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
adam@1459 5784
adam@1459 5785
adam@1459 5786
adam@1459 5787
adam@1459 5788
adamc@1132 5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
adamc@1132 5790 $as_echo_n "checking for $LD option to reload object files... " >&6; }
adam@1599 5791 if ${lt_cv_ld_reload_flag+:} false; then :
adamc@1132 5792 $as_echo_n "(cached) " >&6
adamc@1132 5793 else
adamc@1132 5794 lt_cv_ld_reload_flag='-r'
adamc@1132 5795 fi
adamc@1132 5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
adamc@1132 5797 $as_echo "$lt_cv_ld_reload_flag" >&6; }
adamc@1132 5798 reload_flag=$lt_cv_ld_reload_flag
adamc@1132 5799 case $reload_flag in
adamc@1132 5800 "" | " "*) ;;
adamc@1132 5801 *) reload_flag=" $reload_flag" ;;
adamc@1132 5802 esac
adamc@1132 5803 reload_cmds='$LD$reload_flag -o $output$reload_objs'
adamc@1132 5804 case $host_os in
adam@1459 5805 cygwin* | mingw* | pw32* | cegcc*)
adam@1459 5806 if test "$GCC" != yes; then
adam@1459 5807 reload_cmds=false
adam@1459 5808 fi
adam@1459 5809 ;;
adamc@1132 5810 darwin*)
adamc@1132 5811 if test "$GCC" = yes; then
adamc@1132 5812 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
adamc@1132 5813 else
adamc@1132 5814 reload_cmds='$LD$reload_flag -o $output$reload_objs'
adamc@1132 5815 fi
adamc@1132 5816 ;;
adamc@1132 5817 esac
adamc@1132 5818
adamc@1132 5819
adamc@1132 5820
adamc@1132 5821
adamc@1132 5822
adamc@1132 5823
adamc@1132 5824
adamc@1132 5825
adamc@1132 5826
adamc@1132 5827 if test -n "$ac_tool_prefix"; then
adamc@1132 5828 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
adamc@1132 5829 set dummy ${ac_tool_prefix}objdump; ac_word=$2
adamc@1132 5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 5831 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 5832 if ${ac_cv_prog_OBJDUMP+:} false; then :
adamc@1132 5833 $as_echo_n "(cached) " >&6
adamc@1132 5834 else
adamc@1132 5835 if test -n "$OBJDUMP"; then
adamc@1132 5836 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
adamc@1132 5837 else
adamc@1132 5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 5839 for as_dir in $PATH
adamc@1132 5840 do
adamc@1132 5841 IFS=$as_save_IFS
adamc@1132 5842 test -z "$as_dir" && as_dir=.
adamc@1132 5843 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 5844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1132 5845 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
adamc@1132 5846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 5847 break 2
adamc@1132 5848 fi
adamc@1132 5849 done
adamc@1132 5850 done
adamc@1132 5851 IFS=$as_save_IFS
adamc@1132 5852
adamc@1132 5853 fi
adamc@1132 5854 fi
adamc@1132 5855 OBJDUMP=$ac_cv_prog_OBJDUMP
adamc@1132 5856 if test -n "$OBJDUMP"; then
adamc@1132 5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
adamc@1132 5858 $as_echo "$OBJDUMP" >&6; }
adamc@1132 5859 else
adamc@1132 5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 5861 $as_echo "no" >&6; }
adamc@1132 5862 fi
adamc@1132 5863
adamc@1132 5864
adamc@1132 5865 fi
adamc@1132 5866 if test -z "$ac_cv_prog_OBJDUMP"; then
adamc@1132 5867 ac_ct_OBJDUMP=$OBJDUMP
adamc@1132 5868 # Extract the first word of "objdump", so it can be a program name with args.
adamc@1132 5869 set dummy objdump; ac_word=$2
adamc@1132 5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 5871 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 5872 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
adamc@1132 5873 $as_echo_n "(cached) " >&6
adamc@1132 5874 else
adamc@1132 5875 if test -n "$ac_ct_OBJDUMP"; then
adamc@1132 5876 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
adamc@1132 5877 else
adamc@1132 5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 5879 for as_dir in $PATH
adamc@1132 5880 do
adamc@1132 5881 IFS=$as_save_IFS
adamc@1132 5882 test -z "$as_dir" && as_dir=.
adamc@1132 5883 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 5884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1132 5885 ac_cv_prog_ac_ct_OBJDUMP="objdump"
adamc@1132 5886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 5887 break 2
adamc@1132 5888 fi
adamc@1132 5889 done
adamc@1132 5890 done
adamc@1132 5891 IFS=$as_save_IFS
adamc@1132 5892
adamc@1132 5893 fi
adamc@1132 5894 fi
adamc@1132 5895 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
adamc@1132 5896 if test -n "$ac_ct_OBJDUMP"; then
adamc@1132 5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
adamc@1132 5898 $as_echo "$ac_ct_OBJDUMP" >&6; }
adamc@1132 5899 else
adamc@1132 5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 5901 $as_echo "no" >&6; }
adamc@1132 5902 fi
adamc@1132 5903
adamc@1132 5904 if test "x$ac_ct_OBJDUMP" = x; then
adamc@1132 5905 OBJDUMP="false"
adamc@1132 5906 else
adamc@1132 5907 case $cross_compiling:$ac_tool_warned in
adamc@1132 5908 yes:)
adamc@1132 5909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 5910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 5911 ac_tool_warned=yes ;;
adamc@1132 5912 esac
adamc@1132 5913 OBJDUMP=$ac_ct_OBJDUMP
adamc@1132 5914 fi
adamc@1132 5915 else
adamc@1132 5916 OBJDUMP="$ac_cv_prog_OBJDUMP"
adamc@1132 5917 fi
adamc@1132 5918
adamc@1132 5919 test -z "$OBJDUMP" && OBJDUMP=objdump
adamc@1132 5920
adamc@1132 5921
adamc@1132 5922
adamc@1132 5923
adamc@1132 5924
adamc@1132 5925
adamc@1132 5926
adamc@1132 5927
adamc@1132 5928
adamc@1132 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
adamc@1132 5930 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
adam@1599 5931 if ${lt_cv_deplibs_check_method+:} false; then :
adamc@1132 5932 $as_echo_n "(cached) " >&6
adamc@1132 5933 else
adamc@1132 5934 lt_cv_file_magic_cmd='$MAGIC_CMD'
adamc@1132 5935 lt_cv_file_magic_test_file=
adamc@1132 5936 lt_cv_deplibs_check_method='unknown'
adamc@1132 5937 # Need to set the preceding variable on all platforms that support
adamc@1132 5938 # interlibrary dependencies.
adamc@1132 5939 # 'none' -- dependencies not supported.
adamc@1132 5940 # `unknown' -- same as none, but documents that we really don't know.
adamc@1132 5941 # 'pass_all' -- all dependencies passed with no checks.
adamc@1132 5942 # 'test_compile' -- check by making test program.
adamc@1132 5943 # 'file_magic [[regex]]' -- check by looking for files in library path
adamc@1132 5944 # which responds to the $file_magic_cmd with a given extended regex.
adamc@1132 5945 # If you have `file' or equivalent on your system and you're not sure
adamc@1132 5946 # whether `pass_all' will *always* work, you probably want this one.
adamc@1132 5947
adamc@1132 5948 case $host_os in
adamc@1132 5949 aix[4-9]*)
adamc@1132 5950 lt_cv_deplibs_check_method=pass_all
adamc@1132 5951 ;;
adamc@1132 5952
adamc@1132 5953 beos*)
adamc@1132 5954 lt_cv_deplibs_check_method=pass_all
adamc@1132 5955 ;;
adamc@1132 5956
adamc@1132 5957 bsdi[45]*)
adamc@1132 5958 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
adamc@1132 5959 lt_cv_file_magic_cmd='/usr/bin/file -L'
adamc@1132 5960 lt_cv_file_magic_test_file=/shlib/libc.so
adamc@1132 5961 ;;
adamc@1132 5962
adamc@1132 5963 cygwin*)
adamc@1132 5964 # func_win32_libid is a shell function defined in ltmain.sh
adamc@1132 5965 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
adamc@1132 5966 lt_cv_file_magic_cmd='func_win32_libid'
adamc@1132 5967 ;;
adamc@1132 5968
adamc@1132 5969 mingw* | pw32*)
adamc@1132 5970 # Base MSYS/MinGW do not provide the 'file' command needed by
adamc@1132 5971 # func_win32_libid shell function, so use a weaker test based on 'objdump',
adamc@1132 5972 # unless we find 'file', for example because we are cross-compiling.
adam@1459 5973 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
adam@1459 5974 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
adamc@1132 5975 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
adamc@1132 5976 lt_cv_file_magic_cmd='func_win32_libid'
adamc@1132 5977 else
adam@1459 5978 # Keep this pattern in sync with the one in func_win32_libid.
adam@1459 5979 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
adamc@1132 5980 lt_cv_file_magic_cmd='$OBJDUMP -f'
adamc@1132 5981 fi
adamc@1132 5982 ;;
adamc@1132 5983
adam@1459 5984 cegcc*)
adamc@1132 5985 # use the weaker test based on 'objdump'. See mingw*.
adamc@1132 5986 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
adamc@1132 5987 lt_cv_file_magic_cmd='$OBJDUMP -f'
adamc@1132 5988 ;;
adamc@1132 5989
adamc@1132 5990 darwin* | rhapsody*)
adamc@1132 5991 lt_cv_deplibs_check_method=pass_all
adamc@1132 5992 ;;
adamc@1132 5993
adamc@1132 5994 freebsd* | dragonfly*)
adamc@1132 5995 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
adamc@1132 5996 case $host_cpu in
adamc@1132 5997 i*86 )
adamc@1132 5998 # Not sure whether the presence of OpenBSD here was a mistake.
adamc@1132 5999 # Let's accept both of them until this is cleared up.
adamc@1132 6000 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
adamc@1132 6001 lt_cv_file_magic_cmd=/usr/bin/file
adamc@1132 6002 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
adamc@1132 6003 ;;
adamc@1132 6004 esac
adamc@1132 6005 else
adamc@1132 6006 lt_cv_deplibs_check_method=pass_all
adamc@1132 6007 fi
adamc@1132 6008 ;;
adamc@1132 6009
adamc@1132 6010 gnu*)
adamc@1132 6011 lt_cv_deplibs_check_method=pass_all
adamc@1132 6012 ;;
adamc@1132 6013
adam@1459 6014 haiku*)
adam@1459 6015 lt_cv_deplibs_check_method=pass_all
adam@1459 6016 ;;
adam@1459 6017
adamc@1132 6018 hpux10.20* | hpux11*)
adamc@1132 6019 lt_cv_file_magic_cmd=/usr/bin/file
adamc@1132 6020 case $host_cpu in
adamc@1132 6021 ia64*)
adamc@1132 6022 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
adamc@1132 6023 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
adamc@1132 6024 ;;
adamc@1132 6025 hppa*64*)
adam@1459 6026 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]'
adamc@1132 6027 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
adamc@1132 6028 ;;
adamc@1132 6029 *)
adam@1459 6030 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
adamc@1132 6031 lt_cv_file_magic_test_file=/usr/lib/libc.sl
adamc@1132 6032 ;;
adamc@1132 6033 esac
adamc@1132 6034 ;;
adamc@1132 6035
adamc@1132 6036 interix[3-9]*)
adamc@1132 6037 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
adamc@1132 6038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
adamc@1132 6039 ;;
adamc@1132 6040
adamc@1132 6041 irix5* | irix6* | nonstopux*)
adamc@1132 6042 case $LD in
adamc@1132 6043 *-32|*"-32 ") libmagic=32-bit;;
adamc@1132 6044 *-n32|*"-n32 ") libmagic=N32;;
adamc@1132 6045 *-64|*"-64 ") libmagic=64-bit;;
adamc@1132 6046 *) libmagic=never-match;;
adamc@1132 6047 esac
adamc@1132 6048 lt_cv_deplibs_check_method=pass_all
adamc@1132 6049 ;;
adamc@1132 6050
adam@1599 6051 # This must be glibc/ELF.
adamc@1132 6052 linux* | k*bsd*-gnu | kopensolaris*-gnu)
adamc@1132 6053 lt_cv_deplibs_check_method=pass_all
adamc@1132 6054 ;;
adamc@1132 6055
adamc@1132 6056 netbsd* | netbsdelf*-gnu)
adamc@1132 6057 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
adamc@1132 6058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
adamc@1132 6059 else
adamc@1132 6060 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
adamc@1132 6061 fi
adamc@1132 6062 ;;
adamc@1132 6063
adamc@1132 6064 newos6*)
adamc@1132 6065 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
adamc@1132 6066 lt_cv_file_magic_cmd=/usr/bin/file
adamc@1132 6067 lt_cv_file_magic_test_file=/usr/lib/libnls.so
adamc@1132 6068 ;;
adamc@1132 6069
adamc@1132 6070 *nto* | *qnx*)
adamc@1132 6071 lt_cv_deplibs_check_method=pass_all
adamc@1132 6072 ;;
adamc@1132 6073
adamc@1132 6074 openbsd*)
adamc@1132 6075 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
adamc@1132 6076 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
adamc@1132 6077 else
adamc@1132 6078 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
adamc@1132 6079 fi
adamc@1132 6080 ;;
adamc@1132 6081
adamc@1132 6082 osf3* | osf4* | osf5*)
adamc@1132 6083 lt_cv_deplibs_check_method=pass_all
adamc@1132 6084 ;;
adamc@1132 6085
adamc@1132 6086 rdos*)
adamc@1132 6087 lt_cv_deplibs_check_method=pass_all
adamc@1132 6088 ;;
adamc@1132 6089
adamc@1132 6090 solaris*)
adamc@1132 6091 lt_cv_deplibs_check_method=pass_all
adamc@1132 6092 ;;
adamc@1132 6093
adamc@1132 6094 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
adamc@1132 6095 lt_cv_deplibs_check_method=pass_all
adamc@1132 6096 ;;
adamc@1132 6097
adamc@1132 6098 sysv4 | sysv4.3*)
adamc@1132 6099 case $host_vendor in
adamc@1132 6100 motorola)
adamc@1132 6101 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]'
adamc@1132 6102 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
adamc@1132 6103 ;;
adamc@1132 6104 ncr)
adamc@1132 6105 lt_cv_deplibs_check_method=pass_all
adamc@1132 6106 ;;
adamc@1132 6107 sequent)
adamc@1132 6108 lt_cv_file_magic_cmd='/bin/file'
adamc@1132 6109 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
adamc@1132 6110 ;;
adamc@1132 6111 sni)
adamc@1132 6112 lt_cv_file_magic_cmd='/bin/file'
adamc@1132 6113 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
adamc@1132 6114 lt_cv_file_magic_test_file=/lib/libc.so
adamc@1132 6115 ;;
adamc@1132 6116 siemens)
adamc@1132 6117 lt_cv_deplibs_check_method=pass_all
adamc@1132 6118 ;;
adamc@1132 6119 pc)
adamc@1132 6120 lt_cv_deplibs_check_method=pass_all
adamc@1132 6121 ;;
adamc@1132 6122 esac
adamc@1132 6123 ;;
adamc@1132 6124
adamc@1132 6125 tpf*)
adamc@1132 6126 lt_cv_deplibs_check_method=pass_all
adamc@1132 6127 ;;
adamc@1132 6128 esac
adamc@1132 6129
adamc@1132 6130 fi
adamc@1132 6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
adamc@1132 6132 $as_echo "$lt_cv_deplibs_check_method" >&6; }
adam@1459 6133
adam@1459 6134 file_magic_glob=
adam@1459 6135 want_nocaseglob=no
adam@1459 6136 if test "$build" = "$host"; then
adam@1459 6137 case $host_os in
adam@1459 6138 mingw* | pw32*)
adam@1459 6139 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
adam@1459 6140 want_nocaseglob=yes
adam@1459 6141 else
adam@1459 6142 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
adam@1459 6143 fi
adam@1459 6144 ;;
adam@1459 6145 esac
adam@1459 6146 fi
adam@1459 6147
adamc@1132 6148 file_magic_cmd=$lt_cv_file_magic_cmd
adamc@1132 6149 deplibs_check_method=$lt_cv_deplibs_check_method
adamc@1132 6150 test -z "$deplibs_check_method" && deplibs_check_method=unknown
adamc@1132 6151
adamc@1132 6152
adamc@1132 6153
adamc@1132 6154
adamc@1132 6155
adamc@1132 6156
adamc@1132 6157
adamc@1132 6158
adamc@1132 6159
adamc@1132 6160
adamc@1132 6161
adamc@1132 6162
adam@1459 6163
adam@1459 6164
adam@1459 6165
adam@1459 6166
adam@1459 6167
adam@1459 6168
adam@1459 6169
adam@1459 6170
adam@1459 6171
adam@1459 6172
adamc@1132 6173 if test -n "$ac_tool_prefix"; then
adam@1459 6174 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
adam@1459 6175 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
adamc@1132 6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 6177 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 6178 if ${ac_cv_prog_DLLTOOL+:} false; then :
adam@1459 6179 $as_echo_n "(cached) " >&6
adam@1459 6180 else
adam@1459 6181 if test -n "$DLLTOOL"; then
adam@1459 6182 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
adamc@1132 6183 else
adamc@1132 6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 6185 for as_dir in $PATH
adamc@1132 6186 do
adamc@1132 6187 IFS=$as_save_IFS
adamc@1132 6188 test -z "$as_dir" && as_dir=.
adamc@1132 6189 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 6190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adam@1459 6191 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
adam@1459 6192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adam@1459 6193 break 2
adam@1459 6194 fi
adam@1459 6195 done
adam@1459 6196 done
adam@1459 6197 IFS=$as_save_IFS
adam@1459 6198
adam@1459 6199 fi
adam@1459 6200 fi
adam@1459 6201 DLLTOOL=$ac_cv_prog_DLLTOOL
adam@1459 6202 if test -n "$DLLTOOL"; then
adam@1459 6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
adam@1459 6204 $as_echo "$DLLTOOL" >&6; }
adam@1459 6205 else
adam@1459 6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adam@1459 6207 $as_echo "no" >&6; }
adam@1459 6208 fi
adam@1459 6209
adam@1459 6210
adam@1459 6211 fi
adam@1459 6212 if test -z "$ac_cv_prog_DLLTOOL"; then
adam@1459 6213 ac_ct_DLLTOOL=$DLLTOOL
adam@1459 6214 # Extract the first word of "dlltool", so it can be a program name with args.
adam@1459 6215 set dummy dlltool; ac_word=$2
adam@1459 6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adam@1459 6217 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 6218 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
adam@1459 6219 $as_echo_n "(cached) " >&6
adam@1459 6220 else
adam@1459 6221 if test -n "$ac_ct_DLLTOOL"; then
adam@1459 6222 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
adam@1459 6223 else
adam@1459 6224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adam@1459 6225 for as_dir in $PATH
adam@1459 6226 do
adam@1459 6227 IFS=$as_save_IFS
adam@1459 6228 test -z "$as_dir" && as_dir=.
adam@1459 6229 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 6230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adam@1459 6231 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
adam@1459 6232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adam@1459 6233 break 2
adam@1459 6234 fi
adam@1459 6235 done
adam@1459 6236 done
adam@1459 6237 IFS=$as_save_IFS
adam@1459 6238
adam@1459 6239 fi
adam@1459 6240 fi
adam@1459 6241 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
adam@1459 6242 if test -n "$ac_ct_DLLTOOL"; then
adam@1459 6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
adam@1459 6244 $as_echo "$ac_ct_DLLTOOL" >&6; }
adam@1459 6245 else
adam@1459 6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adam@1459 6247 $as_echo "no" >&6; }
adam@1459 6248 fi
adam@1459 6249
adam@1459 6250 if test "x$ac_ct_DLLTOOL" = x; then
adam@1459 6251 DLLTOOL="false"
adam@1459 6252 else
adam@1459 6253 case $cross_compiling:$ac_tool_warned in
adam@1459 6254 yes:)
adam@1459 6255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adam@1459 6256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adam@1459 6257 ac_tool_warned=yes ;;
adam@1459 6258 esac
adam@1459 6259 DLLTOOL=$ac_ct_DLLTOOL
adam@1459 6260 fi
adam@1459 6261 else
adam@1459 6262 DLLTOOL="$ac_cv_prog_DLLTOOL"
adam@1459 6263 fi
adam@1459 6264
adam@1459 6265 test -z "$DLLTOOL" && DLLTOOL=dlltool
adam@1459 6266
adam@1459 6267
adam@1459 6268
adam@1459 6269
adam@1459 6270
adam@1459 6271
adam@1459 6272
adam@1459 6273
adam@1459 6274
adam@1459 6275
adam@1459 6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
adam@1459 6277 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
adam@1599 6278 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
adam@1459 6279 $as_echo_n "(cached) " >&6
adam@1459 6280 else
adam@1459 6281 lt_cv_sharedlib_from_linklib_cmd='unknown'
adam@1459 6282
adam@1459 6283 case $host_os in
adam@1459 6284 cygwin* | mingw* | pw32* | cegcc*)
adam@1459 6285 # two different shell functions defined in ltmain.sh
adam@1459 6286 # decide which to use based on capabilities of $DLLTOOL
adam@1459 6287 case `$DLLTOOL --help 2>&1` in
adam@1459 6288 *--identify-strict*)
adam@1459 6289 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
adam@1459 6290 ;;
adam@1459 6291 *)
adam@1459 6292 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
adam@1459 6293 ;;
adam@1459 6294 esac
adam@1459 6295 ;;
adam@1459 6296 *)
adam@1459 6297 # fallback: assume linklib IS sharedlib
adam@1459 6298 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
adam@1459 6299 ;;
adam@1459 6300 esac
adam@1459 6301
adam@1459 6302 fi
adam@1459 6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
adam@1459 6304 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
adam@1459 6305 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
adam@1459 6306 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
adam@1459 6307
adam@1459 6308
adam@1459 6309
adam@1459 6310
adam@1459 6311
adam@1459 6312
adam@1459 6313
adam@1459 6314 if test -n "$ac_tool_prefix"; then
adam@1459 6315 for ac_prog in ar
adam@1459 6316 do
adam@1459 6317 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
adam@1459 6318 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
adam@1459 6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adam@1459 6320 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 6321 if ${ac_cv_prog_AR+:} false; then :
adam@1459 6322 $as_echo_n "(cached) " >&6
adam@1459 6323 else
adam@1459 6324 if test -n "$AR"; then
adam@1459 6325 ac_cv_prog_AR="$AR" # Let the user override the test.
adam@1459 6326 else
adam@1459 6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adam@1459 6328 for as_dir in $PATH
adam@1459 6329 do
adam@1459 6330 IFS=$as_save_IFS
adam@1459 6331 test -z "$as_dir" && as_dir=.
adam@1459 6332 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 6333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adam@1459 6334 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
adamc@1132 6335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 6336 break 2
adamc@1132 6337 fi
adamc@1132 6338 done
adamc@1132 6339 done
adamc@1132 6340 IFS=$as_save_IFS
adamc@1132 6341
adamc@1132 6342 fi
adamc@1132 6343 fi
adamc@1132 6344 AR=$ac_cv_prog_AR
adamc@1132 6345 if test -n "$AR"; then
adamc@1132 6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
adamc@1132 6347 $as_echo "$AR" >&6; }
adamc@1132 6348 else
adamc@1132 6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 6350 $as_echo "no" >&6; }
adamc@1132 6351 fi
adamc@1132 6352
adamc@1132 6353
adam@1459 6354 test -n "$AR" && break
adam@1459 6355 done
adam@1459 6356 fi
adam@1459 6357 if test -z "$AR"; then
adamc@1132 6358 ac_ct_AR=$AR
adam@1459 6359 for ac_prog in ar
adam@1459 6360 do
adam@1459 6361 # Extract the first word of "$ac_prog", so it can be a program name with args.
adam@1459 6362 set dummy $ac_prog; ac_word=$2
adamc@1132 6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 6364 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 6365 if ${ac_cv_prog_ac_ct_AR+:} false; then :
adamc@1132 6366 $as_echo_n "(cached) " >&6
adamc@1132 6367 else
adamc@1132 6368 if test -n "$ac_ct_AR"; then
adamc@1132 6369 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
adamc@1132 6370 else
adamc@1132 6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 6372 for as_dir in $PATH
adamc@1132 6373 do
adamc@1132 6374 IFS=$as_save_IFS
adamc@1132 6375 test -z "$as_dir" && as_dir=.
adamc@1132 6376 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 6377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adam@1459 6378 ac_cv_prog_ac_ct_AR="$ac_prog"
adamc@1132 6379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 6380 break 2
adamc@1132 6381 fi
adamc@1132 6382 done
adamc@1132 6383 done
adamc@1132 6384 IFS=$as_save_IFS
adamc@1132 6385
adamc@1132 6386 fi
adamc@1132 6387 fi
adamc@1132 6388 ac_ct_AR=$ac_cv_prog_ac_ct_AR
adamc@1132 6389 if test -n "$ac_ct_AR"; then
adamc@1132 6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
adamc@1132 6391 $as_echo "$ac_ct_AR" >&6; }
adamc@1132 6392 else
adamc@1132 6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 6394 $as_echo "no" >&6; }
adamc@1132 6395 fi
adamc@1132 6396
adam@1459 6397
adam@1459 6398 test -n "$ac_ct_AR" && break
adam@1459 6399 done
adam@1459 6400
adamc@1132 6401 if test "x$ac_ct_AR" = x; then
adamc@1132 6402 AR="false"
adamc@1132 6403 else
adamc@1132 6404 case $cross_compiling:$ac_tool_warned in
adamc@1132 6405 yes:)
adamc@1132 6406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 6407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 6408 ac_tool_warned=yes ;;
adamc@1132 6409 esac
adamc@1132 6410 AR=$ac_ct_AR
adamc@1132 6411 fi
adam@1459 6412 fi
adam@1459 6413
adam@1459 6414 : ${AR=ar}
adam@1459 6415 : ${AR_FLAGS=cru}
adam@1459 6416
adam@1459 6417
adam@1459 6418
adam@1459 6419
adam@1459 6420
adam@1459 6421
adam@1459 6422
adam@1459 6423
adam@1459 6424
adam@1459 6425
adam@1459 6426
adam@1459 6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
adam@1459 6428 $as_echo_n "checking for archiver @FILE support... " >&6; }
adam@1599 6429 if ${lt_cv_ar_at_file+:} false; then :
adam@1459 6430 $as_echo_n "(cached) " >&6
adam@1459 6431 else
adam@1459 6432 lt_cv_ar_at_file=no
adam@1459 6433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adam@1459 6434 /* end confdefs.h. */
adam@1459 6435
adam@1459 6436 int
adam@1459 6437 main ()
adam@1459 6438 {
adam@1459 6439
adam@1459 6440 ;
adam@1459 6441 return 0;
adam@1459 6442 }
adam@1459 6443 _ACEOF
adam@1459 6444 if ac_fn_c_try_compile "$LINENO"; then :
adam@1459 6445 echo conftest.$ac_objext > conftest.lst
adam@1459 6446 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
adam@1459 6447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
adam@1459 6448 (eval $lt_ar_try) 2>&5
adam@1459 6449 ac_status=$?
adam@1459 6450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adam@1459 6451 test $ac_status = 0; }
adam@1459 6452 if test "$ac_status" -eq 0; then
adam@1459 6453 # Ensure the archiver fails upon bogus file names.
adam@1459 6454 rm -f conftest.$ac_objext libconftest.a
adam@1459 6455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
adam@1459 6456 (eval $lt_ar_try) 2>&5
adam@1459 6457 ac_status=$?
adam@1459 6458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adam@1459 6459 test $ac_status = 0; }
adam@1459 6460 if test "$ac_status" -ne 0; then
adam@1459 6461 lt_cv_ar_at_file=@
adam@1459 6462 fi
adam@1459 6463 fi
adam@1459 6464 rm -f conftest.* libconftest.a
adam@1459 6465
adam@1459 6466 fi
adam@1459 6467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adam@1459 6468
adam@1459 6469 fi
adam@1459 6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
adam@1459 6471 $as_echo "$lt_cv_ar_at_file" >&6; }
adam@1459 6472
adam@1459 6473 if test "x$lt_cv_ar_at_file" = xno; then
adam@1459 6474 archiver_list_spec=
adam@1459 6475 else
adam@1459 6476 archiver_list_spec=$lt_cv_ar_at_file
adam@1459 6477 fi
adamc@1132 6478
adamc@1132 6479
adamc@1132 6480
adamc@1132 6481
adamc@1132 6482
adamc@1132 6483
adamc@1132 6484
adamc@1132 6485 if test -n "$ac_tool_prefix"; then
adamc@1132 6486 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
adamc@1132 6487 set dummy ${ac_tool_prefix}strip; ac_word=$2
adamc@1132 6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 6489 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 6490 if ${ac_cv_prog_STRIP+:} false; then :
adamc@1132 6491 $as_echo_n "(cached) " >&6
adamc@1132 6492 else
adamc@1132 6493 if test -n "$STRIP"; then
adamc@1132 6494 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
adamc@1132 6495 else
adamc@1132 6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 6497 for as_dir in $PATH
adamc@1132 6498 do
adamc@1132 6499 IFS=$as_save_IFS
adamc@1132 6500 test -z "$as_dir" && as_dir=.
adamc@1132 6501 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 6502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1132 6503 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
adamc@1132 6504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 6505 break 2
adamc@1132 6506 fi
adamc@1132 6507 done
adamc@1132 6508 done
adamc@1132 6509 IFS=$as_save_IFS
adamc@1132 6510
adamc@1132 6511 fi
adamc@1132 6512 fi
adamc@1132 6513 STRIP=$ac_cv_prog_STRIP
adamc@1132 6514 if test -n "$STRIP"; then
adamc@1132 6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
adamc@1132 6516 $as_echo "$STRIP" >&6; }
adamc@1132 6517 else
adamc@1132 6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 6519 $as_echo "no" >&6; }
adamc@1132 6520 fi
adamc@1132 6521
adamc@1132 6522
adamc@1132 6523 fi
adamc@1132 6524 if test -z "$ac_cv_prog_STRIP"; then
adamc@1132 6525 ac_ct_STRIP=$STRIP
adamc@1132 6526 # Extract the first word of "strip", so it can be a program name with args.
adamc@1132 6527 set dummy strip; ac_word=$2
adamc@1132 6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 6529 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 6530 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
adamc@1132 6531 $as_echo_n "(cached) " >&6
adamc@1132 6532 else
adamc@1132 6533 if test -n "$ac_ct_STRIP"; then
adamc@1132 6534 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
adamc@1132 6535 else
adamc@1132 6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 6537 for as_dir in $PATH
adamc@1132 6538 do
adamc@1132 6539 IFS=$as_save_IFS
adamc@1132 6540 test -z "$as_dir" && as_dir=.
adamc@1132 6541 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 6542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1132 6543 ac_cv_prog_ac_ct_STRIP="strip"
adamc@1132 6544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 6545 break 2
adamc@1132 6546 fi
adamc@1132 6547 done
adamc@1132 6548 done
adamc@1132 6549 IFS=$as_save_IFS
adamc@1132 6550
adamc@1132 6551 fi
adamc@1132 6552 fi
adamc@1132 6553 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
adamc@1132 6554 if test -n "$ac_ct_STRIP"; then
adamc@1132 6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
adamc@1132 6556 $as_echo "$ac_ct_STRIP" >&6; }
adamc@1132 6557 else
adamc@1132 6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 6559 $as_echo "no" >&6; }
adamc@1132 6560 fi
adamc@1132 6561
adamc@1132 6562 if test "x$ac_ct_STRIP" = x; then
adamc@1132 6563 STRIP=":"
adamc@1132 6564 else
adamc@1132 6565 case $cross_compiling:$ac_tool_warned in
adamc@1132 6566 yes:)
adamc@1132 6567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 6568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 6569 ac_tool_warned=yes ;;
adamc@1132 6570 esac
adamc@1132 6571 STRIP=$ac_ct_STRIP
adamc@1132 6572 fi
adamc@1132 6573 else
adamc@1132 6574 STRIP="$ac_cv_prog_STRIP"
adamc@1132 6575 fi
adamc@1132 6576
adamc@1132 6577 test -z "$STRIP" && STRIP=:
adamc@1132 6578
adamc@1132 6579
adamc@1132 6580
adamc@1132 6581
adamc@1132 6582
adamc@1132 6583
adamc@1132 6584 if test -n "$ac_tool_prefix"; then
adamc@1132 6585 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
adamc@1132 6586 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
adamc@1132 6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 6588 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 6589 if ${ac_cv_prog_RANLIB+:} false; then :
adamc@1132 6590 $as_echo_n "(cached) " >&6
adamc@1132 6591 else
adamc@1132 6592 if test -n "$RANLIB"; then
adamc@1132 6593 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
adamc@1132 6594 else
adamc@1132 6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 6596 for as_dir in $PATH
adamc@1132 6597 do
adamc@1132 6598 IFS=$as_save_IFS
adamc@1132 6599 test -z "$as_dir" && as_dir=.
adamc@1132 6600 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 6601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1132 6602 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
adamc@1132 6603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 6604 break 2
adamc@1132 6605 fi
adamc@1132 6606 done
adamc@1132 6607 done
adamc@1132 6608 IFS=$as_save_IFS
adamc@1132 6609
adamc@1132 6610 fi
adamc@1132 6611 fi
adamc@1132 6612 RANLIB=$ac_cv_prog_RANLIB
adamc@1132 6613 if test -n "$RANLIB"; then
adamc@1132 6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
adamc@1132 6615 $as_echo "$RANLIB" >&6; }
adamc@1132 6616 else
adamc@1132 6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 6618 $as_echo "no" >&6; }
adamc@1132 6619 fi
adamc@1132 6620
adamc@1132 6621
adamc@1132 6622 fi
adamc@1132 6623 if test -z "$ac_cv_prog_RANLIB"; then
adamc@1132 6624 ac_ct_RANLIB=$RANLIB
adamc@1132 6625 # Extract the first word of "ranlib", so it can be a program name with args.
adamc@1132 6626 set dummy ranlib; ac_word=$2
adamc@1132 6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 6628 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 6629 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
adamc@1132 6630 $as_echo_n "(cached) " >&6
adamc@1132 6631 else
adamc@1132 6632 if test -n "$ac_ct_RANLIB"; then
adamc@1132 6633 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
adamc@1132 6634 else
adamc@1132 6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 6636 for as_dir in $PATH
adamc@1132 6637 do
adamc@1132 6638 IFS=$as_save_IFS
adamc@1132 6639 test -z "$as_dir" && as_dir=.
adamc@1132 6640 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 6641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1132 6642 ac_cv_prog_ac_ct_RANLIB="ranlib"
adamc@1132 6643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 6644 break 2
adamc@1132 6645 fi
adamc@1132 6646 done
adamc@1132 6647 done
adamc@1132 6648 IFS=$as_save_IFS
adamc@1132 6649
adamc@1132 6650 fi
adamc@1132 6651 fi
adamc@1132 6652 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
adamc@1132 6653 if test -n "$ac_ct_RANLIB"; then
adamc@1132 6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
adamc@1132 6655 $as_echo "$ac_ct_RANLIB" >&6; }
adamc@1132 6656 else
adamc@1132 6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 6658 $as_echo "no" >&6; }
adamc@1132 6659 fi
adamc@1132 6660
adamc@1132 6661 if test "x$ac_ct_RANLIB" = x; then
adamc@1132 6662 RANLIB=":"
adamc@1132 6663 else
adamc@1132 6664 case $cross_compiling:$ac_tool_warned in
adamc@1132 6665 yes:)
adamc@1132 6666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 6667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 6668 ac_tool_warned=yes ;;
adamc@1132 6669 esac
adamc@1132 6670 RANLIB=$ac_ct_RANLIB
adamc@1132 6671 fi
adamc@1132 6672 else
adamc@1132 6673 RANLIB="$ac_cv_prog_RANLIB"
adamc@1132 6674 fi
adamc@1132 6675
adamc@1132 6676 test -z "$RANLIB" && RANLIB=:
adamc@1132 6677
adamc@1132 6678
adamc@1132 6679
adamc@1132 6680
adamc@1132 6681
adamc@1132 6682
adamc@1132 6683 # Determine commands to create old-style static archives.
adamc@1132 6684 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
adamc@1132 6685 old_postinstall_cmds='chmod 644 $oldlib'
adamc@1132 6686 old_postuninstall_cmds=
adamc@1132 6687
adamc@1132 6688 if test -n "$RANLIB"; then
adamc@1132 6689 case $host_os in
adamc@1132 6690 openbsd*)
adam@1599 6691 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
adamc@1132 6692 ;;
adamc@1132 6693 *)
adam@1599 6694 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
adamc@1132 6695 ;;
adamc@1132 6696 esac
adam@1599 6697 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
adamc@1132 6698 fi
adamc@1132 6699
adam@1459 6700 case $host_os in
adam@1459 6701 darwin*)
adam@1459 6702 lock_old_archive_extraction=yes ;;
adam@1459 6703 *)
adam@1459 6704 lock_old_archive_extraction=no ;;
adam@1459 6705 esac
adam@1459 6706
adam@1459 6707
adam@1459 6708
adam@1459 6709
adam@1459 6710
adam@1459 6711
adamc@1132 6712
adamc@1132 6713
adamc@1132 6714
adamc@1132 6715
adamc@1132 6716
adamc@1132 6717
adamc@1132 6718
adamc@1132 6719
adamc@1132 6720
adamc@1132 6721
adamc@1132 6722
adamc@1132 6723
adamc@1132 6724
adamc@1132 6725
adamc@1132 6726
adamc@1132 6727
adamc@1132 6728
adamc@1132 6729
adamc@1132 6730
adamc@1132 6731
adamc@1132 6732
adamc@1132 6733
adamc@1132 6734
adamc@1132 6735
adamc@1132 6736
adamc@1132 6737
adamc@1132 6738
adamc@1132 6739
adamc@1132 6740
adamc@1132 6741
adamc@1132 6742
adamc@1132 6743
adamc@1132 6744
adamc@1132 6745 # If no C compiler was specified, use CC.
adamc@1132 6746 LTCC=${LTCC-"$CC"}
adamc@1132 6747
adamc@1132 6748 # If no C compiler flags were specified, use CFLAGS.
adamc@1132 6749 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
adamc@1132 6750
adamc@1132 6751 # Allow CC to be a program name with arguments.
adamc@1132 6752 compiler=$CC
adamc@1132 6753
adamc@1132 6754
adamc@1132 6755 # Check for command to grab the raw symbol name followed by C symbol from nm.
adamc@1132 6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
adamc@1132 6757 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
adam@1599 6758 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
adamc@1132 6759 $as_echo_n "(cached) " >&6
adamc@1132 6760 else
adamc@1132 6761
adamc@1132 6762 # These are sane defaults that work on at least a few old systems.
adamc@1132 6763 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
adamc@1132 6764
adamc@1132 6765 # Character class describing NM global symbol codes.
adamc@1132 6766 symcode='[BCDEGRST]'
adamc@1132 6767
adamc@1132 6768 # Regexp to match symbols that can be accessed directly from C.
adamc@1132 6769 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
adamc@1132 6770
adamc@1132 6771 # Define system-specific variables.
adamc@1132 6772 case $host_os in
adamc@1132 6773 aix*)
adamc@1132 6774 symcode='[BCDT]'
adamc@1132 6775 ;;
adamc@1132 6776 cygwin* | mingw* | pw32* | cegcc*)
adamc@1132 6777 symcode='[ABCDGISTW]'
adamc@1132 6778 ;;
adamc@1132 6779 hpux*)
adamc@1132 6780 if test "$host_cpu" = ia64; then
adamc@1132 6781 symcode='[ABCDEGRST]'
adamc@1132 6782 fi
adamc@1132 6783 ;;
adamc@1132 6784 irix* | nonstopux*)
adamc@1132 6785 symcode='[BCDEGRST]'
adamc@1132 6786 ;;
adamc@1132 6787 osf*)
adamc@1132 6788 symcode='[BCDEGQRST]'
adamc@1132 6789 ;;
adamc@1132 6790 solaris*)
adamc@1132 6791 symcode='[BDRT]'
adamc@1132 6792 ;;
adamc@1132 6793 sco3.2v5*)
adamc@1132 6794 symcode='[DT]'
adamc@1132 6795 ;;
adamc@1132 6796 sysv4.2uw2*)
adamc@1132 6797 symcode='[DT]'
adamc@1132 6798 ;;
adamc@1132 6799 sysv5* | sco5v6* | unixware* | OpenUNIX*)
adamc@1132 6800 symcode='[ABDT]'
adamc@1132 6801 ;;
adamc@1132 6802 sysv4)
adamc@1132 6803 symcode='[DFNSTU]'
adamc@1132 6804 ;;
adamc@1132 6805 esac
adamc@1132 6806
adamc@1132 6807 # If we're using GNU nm, then use its standard symbol codes.
adamc@1132 6808 case `$NM -V 2>&1` in
adamc@1132 6809 *GNU* | *'with BFD'*)
adamc@1132 6810 symcode='[ABCDGIRSTW]' ;;
adamc@1132 6811 esac
adamc@1132 6812
adamc@1132 6813 # Transform an extracted symbol line into a proper C declaration.
adamc@1132 6814 # Some systems (esp. on ia64) link data and code symbols differently,
adamc@1132 6815 # so use this general approach.
adamc@1132 6816 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
adamc@1132 6817
adamc@1132 6818 # Transform an extracted symbol line into symbol name and symbol address
adam@1459 6819 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
adam@1459 6820 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'"
adamc@1132 6821
adamc@1132 6822 # Handle CRLF in mingw tool chain
adamc@1132 6823 opt_cr=
adamc@1132 6824 case $build_os in
adamc@1132 6825 mingw*)
adamc@1132 6826 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
adamc@1132 6827 ;;
adamc@1132 6828 esac
adamc@1132 6829
adamc@1132 6830 # Try without a prefix underscore, then with it.
adamc@1132 6831 for ac_symprfx in "" "_"; do
adamc@1132 6832
adamc@1132 6833 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
adamc@1132 6834 symxfrm="\\1 $ac_symprfx\\2 \\2"
adamc@1132 6835
adamc@1132 6836 # Write the raw and C identifiers.
adamc@1132 6837 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
adamc@1132 6838 # Fake it for dumpbin and say T for any non-static function
adamc@1132 6839 # and D for any global variable.
adamc@1132 6840 # Also find C++ and __fastcall symbols from MSVC++,
adamc@1132 6841 # which start with @ or ?.
adamc@1132 6842 lt_cv_sys_global_symbol_pipe="$AWK '"\
adamc@1132 6843 " {last_section=section; section=\$ 3};"\
adam@1599 6844 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
adamc@1132 6845 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
adamc@1132 6846 " \$ 0!~/External *\|/{next};"\
adamc@1132 6847 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
adamc@1132 6848 " {if(hide[section]) next};"\
adamc@1132 6849 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
adamc@1132 6850 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
adamc@1132 6851 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
adamc@1132 6852 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
adamc@1132 6853 " ' prfx=^$ac_symprfx"
adamc@1132 6854 else
adamc@1132 6855 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
adamc@1132 6856 fi
adam@1459 6857 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
adamc@1132 6858
adamc@1132 6859 # Check to see that the pipe works correctly.
adamc@1132 6860 pipe_works=no
adamc@1132 6861
adamc@1132 6862 rm -f conftest*
adamc@1132 6863 cat > conftest.$ac_ext <<_LT_EOF
adamc@1132 6864 #ifdef __cplusplus
adamc@1132 6865 extern "C" {
adamc@1132 6866 #endif
adamc@1132 6867 char nm_test_var;
adamc@1132 6868 void nm_test_func(void);
adamc@1132 6869 void nm_test_func(void){}
adamc@1132 6870 #ifdef __cplusplus
adamc@1132 6871 }
adamc@1132 6872 #endif
adamc@1132 6873 int main(){nm_test_var='a';nm_test_func();return(0);}
adamc@1132 6874 _LT_EOF
adamc@1132 6875
adamc@1132 6876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
adamc@1132 6877 (eval $ac_compile) 2>&5
adamc@1132 6878 ac_status=$?
adamc@1132 6879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 6880 test $ac_status = 0; }; then
adamc@1132 6881 # Now try to grab the symbols.
adamc@1132 6882 nlist=conftest.nm
adam@1459 6883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
adam@1459 6884 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
adamc@1132 6885 ac_status=$?
adamc@1132 6886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 6887 test $ac_status = 0; } && test -s "$nlist"; then
adamc@1132 6888 # Try sorting and uniquifying the output.
adamc@1132 6889 if sort "$nlist" | uniq > "$nlist"T; then
adamc@1132 6890 mv -f "$nlist"T "$nlist"
adamc@1132 6891 else
adamc@1132 6892 rm -f "$nlist"T
adamc@1132 6893 fi
adamc@1132 6894
adamc@1132 6895 # Make sure that we snagged all the symbols we need.
adamc@1132 6896 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
adamc@1132 6897 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
adamc@1132 6898 cat <<_LT_EOF > conftest.$ac_ext
adam@1459 6899 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
adam@1459 6900 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
adam@1459 6901 /* DATA imports from DLLs on WIN32 con't be const, because runtime
adam@1459 6902 relocations are performed -- see ld's documentation on pseudo-relocs. */
adam@1459 6903 # define LT_DLSYM_CONST
adam@1459 6904 #elif defined(__osf__)
adam@1459 6905 /* This system does not cope well with relocations in const data. */
adam@1459 6906 # define LT_DLSYM_CONST
adam@1459 6907 #else
adam@1459 6908 # define LT_DLSYM_CONST const
adam@1459 6909 #endif
adam@1459 6910
adamc@1132 6911 #ifdef __cplusplus
adamc@1132 6912 extern "C" {
adamc@1132 6913 #endif
adamc@1132 6914
adamc@1132 6915 _LT_EOF
adamc@1132 6916 # Now generate the symbol file.
adamc@1132 6917 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
adamc@1132 6918
adamc@1132 6919 cat <<_LT_EOF >> conftest.$ac_ext
adamc@1132 6920
adamc@1132 6921 /* The mapping between symbol names and symbols. */
adam@1459 6922 LT_DLSYM_CONST struct {
adamc@1132 6923 const char *name;
adamc@1132 6924 void *address;
adamc@1132 6925 }
adamc@1132 6926 lt__PROGRAM__LTX_preloaded_symbols[] =
adamc@1132 6927 {
adamc@1132 6928 { "@PROGRAM@", (void *) 0 },
adamc@1132 6929 _LT_EOF
adamc@1132 6930 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
adamc@1132 6931 cat <<\_LT_EOF >> conftest.$ac_ext
adamc@1132 6932 {0, (void *) 0}
adamc@1132 6933 };
adamc@1132 6934
adamc@1132 6935 /* This works around a problem in FreeBSD linker */
adamc@1132 6936 #ifdef FREEBSD_WORKAROUND
adamc@1132 6937 static const void *lt_preloaded_setup() {
adamc@1132 6938 return lt__PROGRAM__LTX_preloaded_symbols;
adamc@1132 6939 }
adamc@1132 6940 #endif
adamc@1132 6941
adamc@1132 6942 #ifdef __cplusplus
adamc@1132 6943 }
adamc@1132 6944 #endif
adamc@1132 6945 _LT_EOF
adamc@1132 6946 # Now try linking the two files.
adamc@1132 6947 mv conftest.$ac_objext conftstm.$ac_objext
adam@1459 6948 lt_globsym_save_LIBS=$LIBS
adam@1459 6949 lt_globsym_save_CFLAGS=$CFLAGS
adamc@1132 6950 LIBS="conftstm.$ac_objext"
adamc@1132 6951 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
adamc@1132 6952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
adamc@1132 6953 (eval $ac_link) 2>&5
adamc@1132 6954 ac_status=$?
adamc@1132 6955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 6956 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
adamc@1132 6957 pipe_works=yes
adamc@1132 6958 fi
adam@1459 6959 LIBS=$lt_globsym_save_LIBS
adam@1459 6960 CFLAGS=$lt_globsym_save_CFLAGS
adamc@1132 6961 else
adamc@1132 6962 echo "cannot find nm_test_func in $nlist" >&5
adamc@1132 6963 fi
adamc@1132 6964 else
adamc@1132 6965 echo "cannot find nm_test_var in $nlist" >&5
adamc@1132 6966 fi
adamc@1132 6967 else
adamc@1132 6968 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
adamc@1132 6969 fi
adamc@1132 6970 else
adamc@1132 6971 echo "$progname: failed program was:" >&5
adamc@1132 6972 cat conftest.$ac_ext >&5
adamc@1132 6973 fi
adamc@1132 6974 rm -rf conftest* conftst*
adamc@1132 6975
adamc@1132 6976 # Do not use the global_symbol_pipe unless it works.
adamc@1132 6977 if test "$pipe_works" = yes; then
adamc@1132 6978 break
adamc@1132 6979 else
adamc@1132 6980 lt_cv_sys_global_symbol_pipe=
adamc@1132 6981 fi
adamc@1132 6982 done
adamc@1132 6983
adamc@1132 6984 fi
adamc@1132 6985
adamc@1132 6986 if test -z "$lt_cv_sys_global_symbol_pipe"; then
adamc@1132 6987 lt_cv_sys_global_symbol_to_cdecl=
adamc@1132 6988 fi
adamc@1132 6989 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
adamc@1132 6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
adamc@1132 6991 $as_echo "failed" >&6; }
adamc@1132 6992 else
adamc@1132 6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
adamc@1132 6994 $as_echo "ok" >&6; }
adamc@1132 6995 fi
adamc@1132 6996
adam@1459 6997 # Response file support.
adam@1459 6998 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
adam@1459 6999 nm_file_list_spec='@'
adam@1459 7000 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
adam@1459 7001 nm_file_list_spec='@'
adam@1459 7002 fi
adam@1459 7003
adam@1459 7004
adam@1459 7005
adam@1459 7006
adam@1459 7007
adam@1459 7008
adam@1459 7009
adam@1459 7010
adam@1459 7011
adam@1459 7012
adam@1459 7013
adam@1459 7014
adam@1459 7015
adam@1459 7016
adam@1459 7017
adam@1459 7018
adam@1459 7019
adam@1459 7020
adam@1459 7021
adam@1459 7022
adam@1459 7023
adam@1459 7024
adam@1459 7025
adam@1459 7026
adam@1459 7027
adam@1459 7028
adam@1459 7029
adam@1459 7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
adam@1459 7031 $as_echo_n "checking for sysroot... " >&6; }
adam@1459 7032
adam@1459 7033 # Check whether --with-sysroot was given.
adam@1459 7034 if test "${with_sysroot+set}" = set; then :
adam@1459 7035 withval=$with_sysroot;
adam@1459 7036 else
adam@1459 7037 with_sysroot=no
adam@1459 7038 fi
adam@1459 7039
adam@1459 7040
adam@1459 7041 lt_sysroot=
adam@1459 7042 case ${with_sysroot} in #(
adam@1459 7043 yes)
adam@1459 7044 if test "$GCC" = yes; then
adam@1459 7045 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
adam@1459 7046 fi
adam@1459 7047 ;; #(
adam@1459 7048 /*)
adam@1459 7049 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
adam@1459 7050 ;; #(
adam@1459 7051 no|'')
adam@1459 7052 ;; #(
adam@1459 7053 *)
adam@1459 7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
adam@1459 7055 $as_echo "${with_sysroot}" >&6; }
adam@1459 7056 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
adam@1459 7057 ;;
adam@1459 7058 esac
adam@1459 7059
adam@1459 7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
adam@1459 7061 $as_echo "${lt_sysroot:-no}" >&6; }
adamc@1132 7062
adamc@1132 7063
adamc@1132 7064
adamc@1132 7065
adamc@1132 7066
adamc@1132 7067 # Check whether --enable-libtool-lock was given.
adamc@1132 7068 if test "${enable_libtool_lock+set}" = set; then :
adamc@1132 7069 enableval=$enable_libtool_lock;
adamc@1132 7070 fi
adamc@1132 7071
adamc@1132 7072 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
adamc@1132 7073
adamc@1132 7074 # Some flags need to be propagated to the compiler or linker for good
adamc@1132 7075 # libtool support.
adamc@1132 7076 case $host in
adamc@1132 7077 ia64-*-hpux*)
adamc@1132 7078 # Find out which ABI we are using.
adamc@1132 7079 echo 'int i;' > conftest.$ac_ext
adamc@1132 7080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
adamc@1132 7081 (eval $ac_compile) 2>&5
adamc@1132 7082 ac_status=$?
adamc@1132 7083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 7084 test $ac_status = 0; }; then
adamc@1132 7085 case `/usr/bin/file conftest.$ac_objext` in
adamc@1132 7086 *ELF-32*)
adamc@1132 7087 HPUX_IA64_MODE="32"
adamc@1132 7088 ;;
adamc@1132 7089 *ELF-64*)
adamc@1132 7090 HPUX_IA64_MODE="64"
adamc@1132 7091 ;;
adamc@1132 7092 esac
adamc@1132 7093 fi
adamc@1132 7094 rm -rf conftest*
adamc@1132 7095 ;;
adamc@1132 7096 *-*-irix6*)
adamc@1132 7097 # Find out which ABI we are using.
adam@1459 7098 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
adamc@1132 7099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
adamc@1132 7100 (eval $ac_compile) 2>&5
adamc@1132 7101 ac_status=$?
adamc@1132 7102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 7103 test $ac_status = 0; }; then
adamc@1132 7104 if test "$lt_cv_prog_gnu_ld" = yes; then
adamc@1132 7105 case `/usr/bin/file conftest.$ac_objext` in
adamc@1132 7106 *32-bit*)
adamc@1132 7107 LD="${LD-ld} -melf32bsmip"
adamc@1132 7108 ;;
adamc@1132 7109 *N32*)
adamc@1132 7110 LD="${LD-ld} -melf32bmipn32"
adamc@1132 7111 ;;
adamc@1132 7112 *64-bit*)
adamc@1132 7113 LD="${LD-ld} -melf64bmip"
adamc@1132 7114 ;;
adamc@1132 7115 esac
adamc@1132 7116 else
adamc@1132 7117 case `/usr/bin/file conftest.$ac_objext` in
adamc@1132 7118 *32-bit*)
adamc@1132 7119 LD="${LD-ld} -32"
adamc@1132 7120 ;;
adamc@1132 7121 *N32*)
adamc@1132 7122 LD="${LD-ld} -n32"
adamc@1132 7123 ;;
adamc@1132 7124 *64-bit*)
adamc@1132 7125 LD="${LD-ld} -64"
adamc@1132 7126 ;;
adamc@1132 7127 esac
adamc@1132 7128 fi
adamc@1132 7129 fi
adamc@1132 7130 rm -rf conftest*
adamc@1132 7131 ;;
adamc@1132 7132
adamc@1132 7133 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
adamc@1132 7134 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
adamc@1132 7135 # Find out which ABI we are using.
adamc@1132 7136 echo 'int i;' > conftest.$ac_ext
adamc@1132 7137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
adamc@1132 7138 (eval $ac_compile) 2>&5
adamc@1132 7139 ac_status=$?
adamc@1132 7140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 7141 test $ac_status = 0; }; then
adamc@1132 7142 case `/usr/bin/file conftest.o` in
adamc@1132 7143 *32-bit*)
adamc@1132 7144 case $host in
adamc@1132 7145 x86_64-*kfreebsd*-gnu)
adamc@1132 7146 LD="${LD-ld} -m elf_i386_fbsd"
adamc@1132 7147 ;;
adamc@1132 7148 x86_64-*linux*)
adamc@1132 7149 LD="${LD-ld} -m elf_i386"
adamc@1132 7150 ;;
adamc@1132 7151 ppc64-*linux*|powerpc64-*linux*)
adamc@1132 7152 LD="${LD-ld} -m elf32ppclinux"
adamc@1132 7153 ;;
adamc@1132 7154 s390x-*linux*)
adamc@1132 7155 LD="${LD-ld} -m elf_s390"
adamc@1132 7156 ;;
adamc@1132 7157 sparc64-*linux*)
adamc@1132 7158 LD="${LD-ld} -m elf32_sparc"
adamc@1132 7159 ;;
adamc@1132 7160 esac
adamc@1132 7161 ;;
adamc@1132 7162 *64-bit*)
adamc@1132 7163 case $host in
adamc@1132 7164 x86_64-*kfreebsd*-gnu)
adamc@1132 7165 LD="${LD-ld} -m elf_x86_64_fbsd"
adamc@1132 7166 ;;
adamc@1132 7167 x86_64-*linux*)
adamc@1132 7168 LD="${LD-ld} -m elf_x86_64"
adamc@1132 7169 ;;
adamc@1132 7170 ppc*-*linux*|powerpc*-*linux*)
adamc@1132 7171 LD="${LD-ld} -m elf64ppc"
adamc@1132 7172 ;;
adamc@1132 7173 s390*-*linux*|s390*-*tpf*)
adamc@1132 7174 LD="${LD-ld} -m elf64_s390"
adamc@1132 7175 ;;
adamc@1132 7176 sparc*-*linux*)
adamc@1132 7177 LD="${LD-ld} -m elf64_sparc"
adamc@1132 7178 ;;
adamc@1132 7179 esac
adamc@1132 7180 ;;
adamc@1132 7181 esac
adamc@1132 7182 fi
adamc@1132 7183 rm -rf conftest*
adamc@1132 7184 ;;
adamc@1132 7185
adamc@1132 7186 *-*-sco3.2v5*)
adamc@1132 7187 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
adamc@1132 7188 SAVE_CFLAGS="$CFLAGS"
adamc@1132 7189 CFLAGS="$CFLAGS -belf"
adamc@1132 7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
adamc@1132 7191 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
adam@1599 7192 if ${lt_cv_cc_needs_belf+:} false; then :
adamc@1132 7193 $as_echo_n "(cached) " >&6
adamc@1132 7194 else
adamc@1132 7195 ac_ext=c
adamc@1132 7196 ac_cpp='$CPP $CPPFLAGS'
adamc@1132 7197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@1132 7198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@1132 7199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@1132 7200
adamc@1132 7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 7202 /* end confdefs.h. */
adamc@1132 7203
adamc@1132 7204 int
adamc@1132 7205 main ()
adamc@1132 7206 {
adamc@1132 7207
adamc@1132 7208 ;
adamc@1132 7209 return 0;
adamc@1132 7210 }
adamc@1132 7211 _ACEOF
adamc@1132 7212 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 7213 lt_cv_cc_needs_belf=yes
adamc@1132 7214 else
adamc@1132 7215 lt_cv_cc_needs_belf=no
adamc@1132 7216 fi
adamc@1132 7217 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 7218 conftest$ac_exeext conftest.$ac_ext
adamc@1132 7219 ac_ext=c
adamc@1132 7220 ac_cpp='$CPP $CPPFLAGS'
adamc@1132 7221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@1132 7222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@1132 7223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@1132 7224
adamc@1132 7225 fi
adamc@1132 7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
adamc@1132 7227 $as_echo "$lt_cv_cc_needs_belf" >&6; }
adamc@1132 7228 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
adamc@1132 7229 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
adamc@1132 7230 CFLAGS="$SAVE_CFLAGS"
adamc@1132 7231 fi
adamc@1132 7232 ;;
adam@1599 7233 *-*solaris*)
adamc@1132 7234 # Find out which ABI we are using.
adamc@1132 7235 echo 'int i;' > conftest.$ac_ext
adamc@1132 7236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
adamc@1132 7237 (eval $ac_compile) 2>&5
adamc@1132 7238 ac_status=$?
adamc@1132 7239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 7240 test $ac_status = 0; }; then
adamc@1132 7241 case `/usr/bin/file conftest.o` in
adamc@1132 7242 *64-bit*)
adamc@1132 7243 case $lt_cv_prog_gnu_ld in
adam@1599 7244 yes*)
adam@1599 7245 case $host in
adam@1599 7246 i?86-*-solaris*)
adam@1599 7247 LD="${LD-ld} -m elf_x86_64"
adam@1599 7248 ;;
adam@1599 7249 sparc*-*-solaris*)
adam@1599 7250 LD="${LD-ld} -m elf64_sparc"
adam@1599 7251 ;;
adam@1599 7252 esac
adam@1599 7253 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
adam@1599 7254 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
adam@1599 7255 LD="${LD-ld}_sol2"
adam@1599 7256 fi
adam@1599 7257 ;;
adamc@1132 7258 *)
adamc@1132 7259 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
adamc@1132 7260 LD="${LD-ld} -64"
adamc@1132 7261 fi
adamc@1132 7262 ;;
adamc@1132 7263 esac
adamc@1132 7264 ;;
adamc@1132 7265 esac
adamc@1132 7266 fi
adamc@1132 7267 rm -rf conftest*
adamc@1132 7268 ;;
adamc@1132 7269 esac
adamc@1132 7270
adamc@1132 7271 need_locks="$enable_libtool_lock"
adamc@1132 7272
adam@1459 7273 if test -n "$ac_tool_prefix"; then
adam@1459 7274 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
adam@1459 7275 set dummy ${ac_tool_prefix}mt; ac_word=$2
adam@1459 7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adam@1459 7277 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 7278 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
adam@1459 7279 $as_echo_n "(cached) " >&6
adam@1459 7280 else
adam@1459 7281 if test -n "$MANIFEST_TOOL"; then
adam@1459 7282 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
adam@1459 7283 else
adam@1459 7284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adam@1459 7285 for as_dir in $PATH
adam@1459 7286 do
adam@1459 7287 IFS=$as_save_IFS
adam@1459 7288 test -z "$as_dir" && as_dir=.
adam@1459 7289 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 7290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adam@1459 7291 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
adam@1459 7292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adam@1459 7293 break 2
adam@1459 7294 fi
adam@1459 7295 done
adam@1459 7296 done
adam@1459 7297 IFS=$as_save_IFS
adam@1459 7298
adam@1459 7299 fi
adam@1459 7300 fi
adam@1459 7301 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
adam@1459 7302 if test -n "$MANIFEST_TOOL"; then
adam@1459 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
adam@1459 7304 $as_echo "$MANIFEST_TOOL" >&6; }
adam@1459 7305 else
adam@1459 7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adam@1459 7307 $as_echo "no" >&6; }
adam@1459 7308 fi
adam@1459 7309
adam@1459 7310
adam@1459 7311 fi
adam@1459 7312 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
adam@1459 7313 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
adam@1459 7314 # Extract the first word of "mt", so it can be a program name with args.
adam@1459 7315 set dummy mt; ac_word=$2
adam@1459 7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adam@1459 7317 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 7318 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
adam@1459 7319 $as_echo_n "(cached) " >&6
adam@1459 7320 else
adam@1459 7321 if test -n "$ac_ct_MANIFEST_TOOL"; then
adam@1459 7322 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
adam@1459 7323 else
adam@1459 7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adam@1459 7325 for as_dir in $PATH
adam@1459 7326 do
adam@1459 7327 IFS=$as_save_IFS
adam@1459 7328 test -z "$as_dir" && as_dir=.
adam@1459 7329 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 7330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adam@1459 7331 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
adam@1459 7332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adam@1459 7333 break 2
adam@1459 7334 fi
adam@1459 7335 done
adam@1459 7336 done
adam@1459 7337 IFS=$as_save_IFS
adam@1459 7338
adam@1459 7339 fi
adam@1459 7340 fi
adam@1459 7341 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
adam@1459 7342 if test -n "$ac_ct_MANIFEST_TOOL"; then
adam@1459 7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
adam@1459 7344 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
adam@1459 7345 else
adam@1459 7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adam@1459 7347 $as_echo "no" >&6; }
adam@1459 7348 fi
adam@1459 7349
adam@1459 7350 if test "x$ac_ct_MANIFEST_TOOL" = x; then
adam@1459 7351 MANIFEST_TOOL=":"
adam@1459 7352 else
adam@1459 7353 case $cross_compiling:$ac_tool_warned in
adam@1459 7354 yes:)
adam@1459 7355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adam@1459 7356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adam@1459 7357 ac_tool_warned=yes ;;
adam@1459 7358 esac
adam@1459 7359 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
adam@1459 7360 fi
adam@1459 7361 else
adam@1459 7362 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
adam@1459 7363 fi
adam@1459 7364
adam@1459 7365 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
adam@1459 7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
adam@1459 7367 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
adam@1599 7368 if ${lt_cv_path_mainfest_tool+:} false; then :
adam@1459 7369 $as_echo_n "(cached) " >&6
adam@1459 7370 else
adam@1459 7371 lt_cv_path_mainfest_tool=no
adam@1459 7372 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
adam@1459 7373 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
adam@1459 7374 cat conftest.err >&5
adam@1459 7375 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
adam@1459 7376 lt_cv_path_mainfest_tool=yes
adam@1459 7377 fi
adam@1459 7378 rm -f conftest*
adam@1459 7379 fi
adam@1459 7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
adam@1459 7381 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
adam@1459 7382 if test "x$lt_cv_path_mainfest_tool" != xyes; then
adam@1459 7383 MANIFEST_TOOL=:
adam@1459 7384 fi
adam@1459 7385
adam@1459 7386
adam@1459 7387
adam@1459 7388
adam@1459 7389
adamc@1132 7390
adamc@1132 7391 case $host_os in
adamc@1132 7392 rhapsody* | darwin*)
adamc@1132 7393 if test -n "$ac_tool_prefix"; then
adamc@1132 7394 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
adamc@1132 7395 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
adamc@1132 7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 7397 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 7398 if ${ac_cv_prog_DSYMUTIL+:} false; then :
adamc@1132 7399 $as_echo_n "(cached) " >&6
adamc@1132 7400 else
adamc@1132 7401 if test -n "$DSYMUTIL"; then
adamc@1132 7402 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
adamc@1132 7403 else
adamc@1132 7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 7405 for as_dir in $PATH
adamc@1132 7406 do
adamc@1132 7407 IFS=$as_save_IFS
adamc@1132 7408 test -z "$as_dir" && as_dir=.
adamc@1132 7409 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 7410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1132 7411 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
adamc@1132 7412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 7413 break 2
adamc@1132 7414 fi
adamc@1132 7415 done
adamc@1132 7416 done
adamc@1132 7417 IFS=$as_save_IFS
adamc@1132 7418
adamc@1132 7419 fi
adamc@1132 7420 fi
adamc@1132 7421 DSYMUTIL=$ac_cv_prog_DSYMUTIL
adamc@1132 7422 if test -n "$DSYMUTIL"; then
adamc@1132 7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
adamc@1132 7424 $as_echo "$DSYMUTIL" >&6; }
adamc@1132 7425 else
adamc@1132 7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 7427 $as_echo "no" >&6; }
adamc@1132 7428 fi
adamc@1132 7429
adamc@1132 7430
adamc@1132 7431 fi
adamc@1132 7432 if test -z "$ac_cv_prog_DSYMUTIL"; then
adamc@1132 7433 ac_ct_DSYMUTIL=$DSYMUTIL
adamc@1132 7434 # Extract the first word of "dsymutil", so it can be a program name with args.
adamc@1132 7435 set dummy dsymutil; ac_word=$2
adamc@1132 7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 7437 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 7438 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
adamc@1132 7439 $as_echo_n "(cached) " >&6
adamc@1132 7440 else
adamc@1132 7441 if test -n "$ac_ct_DSYMUTIL"; then
adamc@1132 7442 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
adamc@1132 7443 else
adamc@1132 7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 7445 for as_dir in $PATH
adamc@1132 7446 do
adamc@1132 7447 IFS=$as_save_IFS
adamc@1132 7448 test -z "$as_dir" && as_dir=.
adamc@1132 7449 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 7450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1132 7451 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
adamc@1132 7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 7453 break 2
adamc@1132 7454 fi
adamc@1132 7455 done
adamc@1132 7456 done
adamc@1132 7457 IFS=$as_save_IFS
adamc@1132 7458
adamc@1132 7459 fi
adamc@1132 7460 fi
adamc@1132 7461 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
adamc@1132 7462 if test -n "$ac_ct_DSYMUTIL"; then
adamc@1132 7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
adamc@1132 7464 $as_echo "$ac_ct_DSYMUTIL" >&6; }
adamc@1132 7465 else
adamc@1132 7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 7467 $as_echo "no" >&6; }
adamc@1132 7468 fi
adamc@1132 7469
adamc@1132 7470 if test "x$ac_ct_DSYMUTIL" = x; then
adamc@1132 7471 DSYMUTIL=":"
adamc@1132 7472 else
adamc@1132 7473 case $cross_compiling:$ac_tool_warned in
adamc@1132 7474 yes:)
adamc@1132 7475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 7476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 7477 ac_tool_warned=yes ;;
adamc@1132 7478 esac
adamc@1132 7479 DSYMUTIL=$ac_ct_DSYMUTIL
adamc@1132 7480 fi
adamc@1132 7481 else
adamc@1132 7482 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
adamc@1132 7483 fi
adamc@1132 7484
adamc@1132 7485 if test -n "$ac_tool_prefix"; then
adamc@1132 7486 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
adamc@1132 7487 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
adamc@1132 7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 7489 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 7490 if ${ac_cv_prog_NMEDIT+:} false; then :
adamc@1132 7491 $as_echo_n "(cached) " >&6
adamc@1132 7492 else
adamc@1132 7493 if test -n "$NMEDIT"; then
adamc@1132 7494 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
adamc@1132 7495 else
adamc@1132 7496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 7497 for as_dir in $PATH
adamc@1132 7498 do
adamc@1132 7499 IFS=$as_save_IFS
adamc@1132 7500 test -z "$as_dir" && as_dir=.
adamc@1132 7501 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 7502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1132 7503 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
adamc@1132 7504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 7505 break 2
adamc@1132 7506 fi
adamc@1132 7507 done
adamc@1132 7508 done
adamc@1132 7509 IFS=$as_save_IFS
adamc@1132 7510
adamc@1132 7511 fi
adamc@1132 7512 fi
adamc@1132 7513 NMEDIT=$ac_cv_prog_NMEDIT
adamc@1132 7514 if test -n "$NMEDIT"; then
adamc@1132 7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
adamc@1132 7516 $as_echo "$NMEDIT" >&6; }
adamc@1132 7517 else
adamc@1132 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 7519 $as_echo "no" >&6; }
adamc@1132 7520 fi
adamc@1132 7521
adamc@1132 7522
adamc@1132 7523 fi
adamc@1132 7524 if test -z "$ac_cv_prog_NMEDIT"; then
adamc@1132 7525 ac_ct_NMEDIT=$NMEDIT
adamc@1132 7526 # Extract the first word of "nmedit", so it can be a program name with args.
adamc@1132 7527 set dummy nmedit; ac_word=$2
adamc@1132 7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 7529 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 7530 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
adamc@1132 7531 $as_echo_n "(cached) " >&6
adamc@1132 7532 else
adamc@1132 7533 if test -n "$ac_ct_NMEDIT"; then
adamc@1132 7534 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
adamc@1132 7535 else
adamc@1132 7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 7537 for as_dir in $PATH
adamc@1132 7538 do
adamc@1132 7539 IFS=$as_save_IFS
adamc@1132 7540 test -z "$as_dir" && as_dir=.
adamc@1132 7541 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 7542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1132 7543 ac_cv_prog_ac_ct_NMEDIT="nmedit"
adamc@1132 7544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 7545 break 2
adamc@1132 7546 fi
adamc@1132 7547 done
adamc@1132 7548 done
adamc@1132 7549 IFS=$as_save_IFS
adamc@1132 7550
adamc@1132 7551 fi
adamc@1132 7552 fi
adamc@1132 7553 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
adamc@1132 7554 if test -n "$ac_ct_NMEDIT"; then
adamc@1132 7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
adamc@1132 7556 $as_echo "$ac_ct_NMEDIT" >&6; }
adamc@1132 7557 else
adamc@1132 7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 7559 $as_echo "no" >&6; }
adamc@1132 7560 fi
adamc@1132 7561
adamc@1132 7562 if test "x$ac_ct_NMEDIT" = x; then
adamc@1132 7563 NMEDIT=":"
adamc@1132 7564 else
adamc@1132 7565 case $cross_compiling:$ac_tool_warned in
adamc@1132 7566 yes:)
adamc@1132 7567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 7568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 7569 ac_tool_warned=yes ;;
adamc@1132 7570 esac
adamc@1132 7571 NMEDIT=$ac_ct_NMEDIT
adamc@1132 7572 fi
adamc@1132 7573 else
adamc@1132 7574 NMEDIT="$ac_cv_prog_NMEDIT"
adamc@1132 7575 fi
adamc@1132 7576
adamc@1132 7577 if test -n "$ac_tool_prefix"; then
adamc@1132 7578 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
adamc@1132 7579 set dummy ${ac_tool_prefix}lipo; ac_word=$2
adamc@1132 7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 7581 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 7582 if ${ac_cv_prog_LIPO+:} false; then :
adamc@1132 7583 $as_echo_n "(cached) " >&6
adamc@1132 7584 else
adamc@1132 7585 if test -n "$LIPO"; then
adamc@1132 7586 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
adamc@1132 7587 else
adamc@1132 7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 7589 for as_dir in $PATH
adamc@1132 7590 do
adamc@1132 7591 IFS=$as_save_IFS
adamc@1132 7592 test -z "$as_dir" && as_dir=.
adamc@1132 7593 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 7594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1132 7595 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
adamc@1132 7596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 7597 break 2
adamc@1132 7598 fi
adamc@1132 7599 done
adamc@1132 7600 done
adamc@1132 7601 IFS=$as_save_IFS
adamc@1132 7602
adamc@1132 7603 fi
adamc@1132 7604 fi
adamc@1132 7605 LIPO=$ac_cv_prog_LIPO
adamc@1132 7606 if test -n "$LIPO"; then
adamc@1132 7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
adamc@1132 7608 $as_echo "$LIPO" >&6; }
adamc@1132 7609 else
adamc@1132 7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 7611 $as_echo "no" >&6; }
adamc@1132 7612 fi
adamc@1132 7613
adamc@1132 7614
adamc@1132 7615 fi
adamc@1132 7616 if test -z "$ac_cv_prog_LIPO"; then
adamc@1132 7617 ac_ct_LIPO=$LIPO
adamc@1132 7618 # Extract the first word of "lipo", so it can be a program name with args.
adamc@1132 7619 set dummy lipo; ac_word=$2
adamc@1132 7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 7621 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 7622 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
adamc@1132 7623 $as_echo_n "(cached) " >&6
adamc@1132 7624 else
adamc@1132 7625 if test -n "$ac_ct_LIPO"; then
adamc@1132 7626 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
adamc@1132 7627 else
adamc@1132 7628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 7629 for as_dir in $PATH
adamc@1132 7630 do
adamc@1132 7631 IFS=$as_save_IFS
adamc@1132 7632 test -z "$as_dir" && as_dir=.
adamc@1132 7633 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 7634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1132 7635 ac_cv_prog_ac_ct_LIPO="lipo"
adamc@1132 7636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 7637 break 2
adamc@1132 7638 fi
adamc@1132 7639 done
adamc@1132 7640 done
adamc@1132 7641 IFS=$as_save_IFS
adamc@1132 7642
adamc@1132 7643 fi
adamc@1132 7644 fi
adamc@1132 7645 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
adamc@1132 7646 if test -n "$ac_ct_LIPO"; then
adamc@1132 7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
adamc@1132 7648 $as_echo "$ac_ct_LIPO" >&6; }
adamc@1132 7649 else
adamc@1132 7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 7651 $as_echo "no" >&6; }
adamc@1132 7652 fi
adamc@1132 7653
adamc@1132 7654 if test "x$ac_ct_LIPO" = x; then
adamc@1132 7655 LIPO=":"
adamc@1132 7656 else
adamc@1132 7657 case $cross_compiling:$ac_tool_warned in
adamc@1132 7658 yes:)
adamc@1132 7659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 7660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 7661 ac_tool_warned=yes ;;
adamc@1132 7662 esac
adamc@1132 7663 LIPO=$ac_ct_LIPO
adamc@1132 7664 fi
adamc@1132 7665 else
adamc@1132 7666 LIPO="$ac_cv_prog_LIPO"
adamc@1132 7667 fi
adamc@1132 7668
adamc@1132 7669 if test -n "$ac_tool_prefix"; then
adamc@1132 7670 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
adamc@1132 7671 set dummy ${ac_tool_prefix}otool; ac_word=$2
adamc@1132 7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 7673 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 7674 if ${ac_cv_prog_OTOOL+:} false; then :
adamc@1132 7675 $as_echo_n "(cached) " >&6
adamc@1132 7676 else
adamc@1132 7677 if test -n "$OTOOL"; then
adamc@1132 7678 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
adamc@1132 7679 else
adamc@1132 7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 7681 for as_dir in $PATH
adamc@1132 7682 do
adamc@1132 7683 IFS=$as_save_IFS
adamc@1132 7684 test -z "$as_dir" && as_dir=.
adamc@1132 7685 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 7686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1132 7687 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
adamc@1132 7688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 7689 break 2
adamc@1132 7690 fi
adamc@1132 7691 done
adamc@1132 7692 done
adamc@1132 7693 IFS=$as_save_IFS
adamc@1132 7694
adamc@1132 7695 fi
adamc@1132 7696 fi
adamc@1132 7697 OTOOL=$ac_cv_prog_OTOOL
adamc@1132 7698 if test -n "$OTOOL"; then
adamc@1132 7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
adamc@1132 7700 $as_echo "$OTOOL" >&6; }
adamc@1132 7701 else
adamc@1132 7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 7703 $as_echo "no" >&6; }
adamc@1132 7704 fi
adamc@1132 7705
adamc@1132 7706
adamc@1132 7707 fi
adamc@1132 7708 if test -z "$ac_cv_prog_OTOOL"; then
adamc@1132 7709 ac_ct_OTOOL=$OTOOL
adamc@1132 7710 # Extract the first word of "otool", so it can be a program name with args.
adamc@1132 7711 set dummy otool; ac_word=$2
adamc@1132 7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 7713 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 7714 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
adamc@1132 7715 $as_echo_n "(cached) " >&6
adamc@1132 7716 else
adamc@1132 7717 if test -n "$ac_ct_OTOOL"; then
adamc@1132 7718 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
adamc@1132 7719 else
adamc@1132 7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 7721 for as_dir in $PATH
adamc@1132 7722 do
adamc@1132 7723 IFS=$as_save_IFS
adamc@1132 7724 test -z "$as_dir" && as_dir=.
adamc@1132 7725 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 7726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1132 7727 ac_cv_prog_ac_ct_OTOOL="otool"
adamc@1132 7728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 7729 break 2
adamc@1132 7730 fi
adamc@1132 7731 done
adamc@1132 7732 done
adamc@1132 7733 IFS=$as_save_IFS
adamc@1132 7734
adamc@1132 7735 fi
adamc@1132 7736 fi
adamc@1132 7737 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
adamc@1132 7738 if test -n "$ac_ct_OTOOL"; then
adamc@1132 7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
adamc@1132 7740 $as_echo "$ac_ct_OTOOL" >&6; }
adamc@1132 7741 else
adamc@1132 7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 7743 $as_echo "no" >&6; }
adamc@1132 7744 fi
adamc@1132 7745
adamc@1132 7746 if test "x$ac_ct_OTOOL" = x; then
adamc@1132 7747 OTOOL=":"
adamc@1132 7748 else
adamc@1132 7749 case $cross_compiling:$ac_tool_warned in
adamc@1132 7750 yes:)
adamc@1132 7751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 7752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 7753 ac_tool_warned=yes ;;
adamc@1132 7754 esac
adamc@1132 7755 OTOOL=$ac_ct_OTOOL
adamc@1132 7756 fi
adamc@1132 7757 else
adamc@1132 7758 OTOOL="$ac_cv_prog_OTOOL"
adamc@1132 7759 fi
adamc@1132 7760
adamc@1132 7761 if test -n "$ac_tool_prefix"; then
adamc@1132 7762 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
adamc@1132 7763 set dummy ${ac_tool_prefix}otool64; ac_word=$2
adamc@1132 7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 7765 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 7766 if ${ac_cv_prog_OTOOL64+:} false; then :
adamc@1132 7767 $as_echo_n "(cached) " >&6
adamc@1132 7768 else
adamc@1132 7769 if test -n "$OTOOL64"; then
adamc@1132 7770 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
adamc@1132 7771 else
adamc@1132 7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 7773 for as_dir in $PATH
adamc@1132 7774 do
adamc@1132 7775 IFS=$as_save_IFS
adamc@1132 7776 test -z "$as_dir" && as_dir=.
adamc@1132 7777 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 7778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1132 7779 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
adamc@1132 7780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 7781 break 2
adamc@1132 7782 fi
adamc@1132 7783 done
adamc@1132 7784 done
adamc@1132 7785 IFS=$as_save_IFS
adamc@1132 7786
adamc@1132 7787 fi
adamc@1132 7788 fi
adamc@1132 7789 OTOOL64=$ac_cv_prog_OTOOL64
adamc@1132 7790 if test -n "$OTOOL64"; then
adamc@1132 7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
adamc@1132 7792 $as_echo "$OTOOL64" >&6; }
adamc@1132 7793 else
adamc@1132 7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 7795 $as_echo "no" >&6; }
adamc@1132 7796 fi
adamc@1132 7797
adamc@1132 7798
adamc@1132 7799 fi
adamc@1132 7800 if test -z "$ac_cv_prog_OTOOL64"; then
adamc@1132 7801 ac_ct_OTOOL64=$OTOOL64
adamc@1132 7802 # Extract the first word of "otool64", so it can be a program name with args.
adamc@1132 7803 set dummy otool64; ac_word=$2
adamc@1132 7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 7805 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 7806 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
adamc@1132 7807 $as_echo_n "(cached) " >&6
adamc@1132 7808 else
adamc@1132 7809 if test -n "$ac_ct_OTOOL64"; then
adamc@1132 7810 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
adamc@1132 7811 else
adamc@1132 7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 7813 for as_dir in $PATH
adamc@1132 7814 do
adamc@1132 7815 IFS=$as_save_IFS
adamc@1132 7816 test -z "$as_dir" && as_dir=.
adamc@1132 7817 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 7818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1132 7819 ac_cv_prog_ac_ct_OTOOL64="otool64"
adamc@1132 7820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 7821 break 2
adamc@1132 7822 fi
adamc@1132 7823 done
adamc@1132 7824 done
adamc@1132 7825 IFS=$as_save_IFS
adamc@1132 7826
adamc@1132 7827 fi
adamc@1132 7828 fi
adamc@1132 7829 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
adamc@1132 7830 if test -n "$ac_ct_OTOOL64"; then
adamc@1132 7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
adamc@1132 7832 $as_echo "$ac_ct_OTOOL64" >&6; }
adamc@1132 7833 else
adamc@1132 7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 7835 $as_echo "no" >&6; }
adamc@1132 7836 fi
adamc@1132 7837
adamc@1132 7838 if test "x$ac_ct_OTOOL64" = x; then
adamc@1132 7839 OTOOL64=":"
adamc@1132 7840 else
adamc@1132 7841 case $cross_compiling:$ac_tool_warned in
adamc@1132 7842 yes:)
adamc@1132 7843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 7844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 7845 ac_tool_warned=yes ;;
adamc@1132 7846 esac
adamc@1132 7847 OTOOL64=$ac_ct_OTOOL64
adamc@1132 7848 fi
adamc@1132 7849 else
adamc@1132 7850 OTOOL64="$ac_cv_prog_OTOOL64"
adamc@1132 7851 fi
adamc@1132 7852
adamc@1132 7853
adamc@1132 7854
adamc@1132 7855
adamc@1132 7856
adamc@1132 7857
adamc@1132 7858
adamc@1132 7859
adamc@1132 7860
adamc@1132 7861
adamc@1132 7862
adamc@1132 7863
adamc@1132 7864
adamc@1132 7865
adamc@1132 7866
adamc@1132 7867
adamc@1132 7868
adamc@1132 7869
adamc@1132 7870
adamc@1132 7871
adamc@1132 7872
adamc@1132 7873
adamc@1132 7874
adamc@1132 7875
adamc@1132 7876
adamc@1132 7877
adamc@1132 7878
adamc@1132 7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
adamc@1132 7880 $as_echo_n "checking for -single_module linker flag... " >&6; }
adam@1599 7881 if ${lt_cv_apple_cc_single_mod+:} false; then :
adamc@1132 7882 $as_echo_n "(cached) " >&6
adamc@1132 7883 else
adamc@1132 7884 lt_cv_apple_cc_single_mod=no
adamc@1132 7885 if test -z "${LT_MULTI_MODULE}"; then
adamc@1132 7886 # By default we will add the -single_module flag. You can override
adamc@1132 7887 # by either setting the environment variable LT_MULTI_MODULE
adamc@1132 7888 # non-empty at configure time, or by adding -multi_module to the
adamc@1132 7889 # link flags.
adamc@1132 7890 rm -rf libconftest.dylib*
adamc@1132 7891 echo "int foo(void){return 1;}" > conftest.c
adamc@1132 7892 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
adamc@1132 7893 -dynamiclib -Wl,-single_module conftest.c" >&5
adamc@1132 7894 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
adamc@1132 7895 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
adamc@1132 7896 _lt_result=$?
adam@1599 7897 # If there is a non-empty error log, and "single_module"
adam@1599 7898 # appears in it, assume the flag caused a linker warning
adam@1599 7899 if test -s conftest.err && $GREP single_module conftest.err; then
adam@1599 7900 cat conftest.err >&5
adam@1599 7901 # Otherwise, if the output was created with a 0 exit code from
adam@1599 7902 # the compiler, it worked.
adam@1599 7903 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
adamc@1132 7904 lt_cv_apple_cc_single_mod=yes
adamc@1132 7905 else
adamc@1132 7906 cat conftest.err >&5
adamc@1132 7907 fi
adamc@1132 7908 rm -rf libconftest.dylib*
adamc@1132 7909 rm -f conftest.*
adamc@1132 7910 fi
adamc@1132 7911 fi
adamc@1132 7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
adamc@1132 7913 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
adam@1599 7914
adamc@1132 7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
adamc@1132 7916 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
adam@1599 7917 if ${lt_cv_ld_exported_symbols_list+:} false; then :
adamc@1132 7918 $as_echo_n "(cached) " >&6
adamc@1132 7919 else
adamc@1132 7920 lt_cv_ld_exported_symbols_list=no
adamc@1132 7921 save_LDFLAGS=$LDFLAGS
adamc@1132 7922 echo "_main" > conftest.sym
adamc@1132 7923 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
adamc@1132 7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 7925 /* end confdefs.h. */
adamc@1132 7926
adamc@1132 7927 int
adamc@1132 7928 main ()
adamc@1132 7929 {
adamc@1132 7930
adamc@1132 7931 ;
adamc@1132 7932 return 0;
adamc@1132 7933 }
adamc@1132 7934 _ACEOF
adamc@1132 7935 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 7936 lt_cv_ld_exported_symbols_list=yes
adamc@1132 7937 else
adamc@1132 7938 lt_cv_ld_exported_symbols_list=no
adamc@1132 7939 fi
adamc@1132 7940 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 7941 conftest$ac_exeext conftest.$ac_ext
adamc@1132 7942 LDFLAGS="$save_LDFLAGS"
adamc@1132 7943
adamc@1132 7944 fi
adamc@1132 7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
adamc@1132 7946 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
adam@1599 7947
adam@1459 7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
adam@1459 7949 $as_echo_n "checking for -force_load linker flag... " >&6; }
adam@1599 7950 if ${lt_cv_ld_force_load+:} false; then :
adam@1459 7951 $as_echo_n "(cached) " >&6
adam@1459 7952 else
adam@1459 7953 lt_cv_ld_force_load=no
adam@1459 7954 cat > conftest.c << _LT_EOF
adam@1459 7955 int forced_loaded() { return 2;}
adam@1459 7956 _LT_EOF
adam@1459 7957 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
adam@1459 7958 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
adam@1459 7959 echo "$AR cru libconftest.a conftest.o" >&5
adam@1459 7960 $AR cru libconftest.a conftest.o 2>&5
adam@1459 7961 echo "$RANLIB libconftest.a" >&5
adam@1459 7962 $RANLIB libconftest.a 2>&5
adam@1459 7963 cat > conftest.c << _LT_EOF
adam@1459 7964 int main() { return 0;}
adam@1459 7965 _LT_EOF
adam@1459 7966 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
adam@1459 7967 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
adam@1459 7968 _lt_result=$?
adam@1599 7969 if test -s conftest.err && $GREP force_load conftest.err; then
adam@1599 7970 cat conftest.err >&5
adam@1599 7971 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
adam@1459 7972 lt_cv_ld_force_load=yes
adam@1459 7973 else
adam@1459 7974 cat conftest.err >&5
adam@1459 7975 fi
adam@1459 7976 rm -f conftest.err libconftest.a conftest conftest.c
adam@1459 7977 rm -rf conftest.dSYM
adam@1459 7978
adam@1459 7979 fi
adam@1459 7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
adam@1459 7981 $as_echo "$lt_cv_ld_force_load" >&6; }
adamc@1132 7982 case $host_os in
adamc@1132 7983 rhapsody* | darwin1.[012])
adamc@1132 7984 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
adamc@1132 7985 darwin1.*)
adamc@1132 7986 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
adamc@1132 7987 darwin*) # darwin 5.x on
adamc@1132 7988 # if running on 10.5 or later, the deployment target defaults
adamc@1132 7989 # to the OS version, if on x86, and 10.4, the deployment
adamc@1132 7990 # target defaults to 10.4. Don't you love it?
adamc@1132 7991 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
adamc@1132 7992 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
adamc@1132 7993 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
adamc@1132 7994 10.[012]*)
adamc@1132 7995 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
adamc@1132 7996 10.*)
adamc@1132 7997 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
adamc@1132 7998 esac
adamc@1132 7999 ;;
adamc@1132 8000 esac
adamc@1132 8001 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
adamc@1132 8002 _lt_dar_single_mod='$single_module'
adamc@1132 8003 fi
adamc@1132 8004 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
adamc@1132 8005 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
adamc@1132 8006 else
adamc@1132 8007 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
adamc@1132 8008 fi
adam@1459 8009 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
adamc@1132 8010 _lt_dsymutil='~$DSYMUTIL $lib || :'
adamc@1132 8011 else
adamc@1132 8012 _lt_dsymutil=
adamc@1132 8013 fi
adamc@1132 8014 ;;
adamc@1132 8015 esac
adamc@1132 8016
adamc@1132 8017 for ac_header in dlfcn.h
adamc@1132 8018 do :
adamc@1132 8019 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
adamc@1132 8020 "
adam@1599 8021 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
adamc@1132 8022 cat >>confdefs.h <<_ACEOF
adamc@1132 8023 #define HAVE_DLFCN_H 1
adamc@1132 8024 _ACEOF
adamc@1132 8025
adamc@1132 8026 fi
adamc@1132 8027
adamc@1132 8028 done
adamc@1132 8029
adamc@1132 8030
adamc@1132 8031
adam@1459 8032
adam@1459 8033
adamc@1132 8034 # Set options
adamc@1132 8035
adamc@1132 8036
adamc@1132 8037
adamc@1132 8038 enable_dlopen=no
adamc@1132 8039
adamc@1132 8040
adamc@1132 8041 enable_win32_dll=no
adamc@1132 8042
adamc@1132 8043
adamc@1132 8044 # Check whether --enable-shared was given.
adamc@1132 8045 if test "${enable_shared+set}" = set; then :
adamc@1132 8046 enableval=$enable_shared; p=${PACKAGE-default}
adamc@1132 8047 case $enableval in
adamc@1132 8048 yes) enable_shared=yes ;;
adamc@1132 8049 no) enable_shared=no ;;
adamc@1132 8050 *)
adamc@1132 8051 enable_shared=no
adamc@1132 8052 # Look at the argument we got. We use all the common list separators.
adamc@1132 8053 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
adamc@1132 8054 for pkg in $enableval; do
adamc@1132 8055 IFS="$lt_save_ifs"
adamc@1132 8056 if test "X$pkg" = "X$p"; then
adamc@1132 8057 enable_shared=yes
adamc@1132 8058 fi
adamc@1132 8059 done
adamc@1132 8060 IFS="$lt_save_ifs"
adamc@1132 8061 ;;
adamc@1132 8062 esac
adamc@1132 8063 else
adamc@1132 8064 enable_shared=yes
adamc@1132 8065 fi
adamc@1132 8066
adamc@1132 8067
adamc@1132 8068
adamc@1132 8069
adamc@1132 8070
adamc@1132 8071
adamc@1132 8072
adamc@1132 8073
adamc@1132 8074
adamc@1132 8075 # Check whether --enable-static was given.
adamc@1132 8076 if test "${enable_static+set}" = set; then :
adamc@1132 8077 enableval=$enable_static; p=${PACKAGE-default}
adamc@1132 8078 case $enableval in
adamc@1132 8079 yes) enable_static=yes ;;
adamc@1132 8080 no) enable_static=no ;;
adamc@1132 8081 *)
adamc@1132 8082 enable_static=no
adamc@1132 8083 # Look at the argument we got. We use all the common list separators.
adamc@1132 8084 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
adamc@1132 8085 for pkg in $enableval; do
adamc@1132 8086 IFS="$lt_save_ifs"
adamc@1132 8087 if test "X$pkg" = "X$p"; then
adamc@1132 8088 enable_static=yes
adamc@1132 8089 fi
adamc@1132 8090 done
adamc@1132 8091 IFS="$lt_save_ifs"
adamc@1132 8092 ;;
adamc@1132 8093 esac
adamc@1132 8094 else
adamc@1132 8095 enable_static=yes
adamc@1132 8096 fi
adamc@1132 8097
adamc@1132 8098
adamc@1132 8099
adamc@1132 8100
adamc@1132 8101
adamc@1132 8102
adamc@1132 8103
adamc@1132 8104
adamc@1132 8105
adamc@1132 8106
adamc@1132 8107 # Check whether --with-pic was given.
adamc@1132 8108 if test "${with_pic+set}" = set; then :
adam@1599 8109 withval=$with_pic; lt_p=${PACKAGE-default}
adam@1599 8110 case $withval in
adam@1599 8111 yes|no) pic_mode=$withval ;;
adam@1599 8112 *)
adam@1599 8113 pic_mode=default
adam@1599 8114 # Look at the argument we got. We use all the common list separators.
adam@1599 8115 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
adam@1599 8116 for lt_pkg in $withval; do
adam@1599 8117 IFS="$lt_save_ifs"
adam@1599 8118 if test "X$lt_pkg" = "X$lt_p"; then
adam@1599 8119 pic_mode=yes
adam@1599 8120 fi
adam@1599 8121 done
adam@1599 8122 IFS="$lt_save_ifs"
adam@1599 8123 ;;
adam@1599 8124 esac
adamc@1132 8125 else
adamc@1132 8126 pic_mode=default
adamc@1132 8127 fi
adamc@1132 8128
adamc@1132 8129
adamc@1132 8130 test -z "$pic_mode" && pic_mode=default
adamc@1132 8131
adamc@1132 8132
adamc@1132 8133
adamc@1132 8134
adamc@1132 8135
adamc@1132 8136
adamc@1132 8137
adamc@1132 8138 # Check whether --enable-fast-install was given.
adamc@1132 8139 if test "${enable_fast_install+set}" = set; then :
adamc@1132 8140 enableval=$enable_fast_install; p=${PACKAGE-default}
adamc@1132 8141 case $enableval in
adamc@1132 8142 yes) enable_fast_install=yes ;;
adamc@1132 8143 no) enable_fast_install=no ;;
adamc@1132 8144 *)
adamc@1132 8145 enable_fast_install=no
adamc@1132 8146 # Look at the argument we got. We use all the common list separators.
adamc@1132 8147 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
adamc@1132 8148 for pkg in $enableval; do
adamc@1132 8149 IFS="$lt_save_ifs"
adamc@1132 8150 if test "X$pkg" = "X$p"; then
adamc@1132 8151 enable_fast_install=yes
adamc@1132 8152 fi
adamc@1132 8153 done
adamc@1132 8154 IFS="$lt_save_ifs"
adamc@1132 8155 ;;
adamc@1132 8156 esac
adamc@1132 8157 else
adamc@1132 8158 enable_fast_install=yes
adamc@1132 8159 fi
adamc@1132 8160
adamc@1132 8161
adamc@1132 8162
adamc@1132 8163
adamc@1132 8164
adamc@1132 8165
adamc@1132 8166
adamc@1132 8167
adamc@1132 8168
adamc@1132 8169
adamc@1132 8170
adamc@1132 8171 # This can be used to rebuild libtool when needed
adamc@1132 8172 LIBTOOL_DEPS="$ltmain"
adamc@1132 8173
adamc@1132 8174 # Always use our own libtool.
adamc@1132 8175 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
adamc@1132 8176
adamc@1132 8177
adamc@1132 8178
adamc@1132 8179
adamc@1132 8180
adamc@1132 8181
adamc@1132 8182
adamc@1132 8183
adamc@1132 8184
adamc@1132 8185
adamc@1132 8186
adamc@1132 8187
adamc@1132 8188
adamc@1132 8189
adamc@1132 8190
adamc@1132 8191
adamc@1132 8192
adamc@1132 8193
adamc@1132 8194
adamc@1132 8195
adamc@1132 8196
adamc@1132 8197
adamc@1132 8198
adamc@1132 8199
adamc@1132 8200
adam@1459 8201
adam@1599 8202
adam@1599 8203
adam@1599 8204
adam@1599 8205
adamc@1132 8206 test -z "$LN_S" && LN_S="ln -s"
adamc@1132 8207
adamc@1132 8208
adamc@1132 8209
adamc@1132 8210
adamc@1132 8211
adamc@1132 8212
adamc@1132 8213
adamc@1132 8214
adamc@1132 8215
adamc@1132 8216
adamc@1132 8217
adamc@1132 8218
adamc@1132 8219
adamc@1132 8220
adamc@1132 8221 if test -n "${ZSH_VERSION+set}" ; then
adamc@1132 8222 setopt NO_GLOB_SUBST
adamc@1132 8223 fi
adamc@1132 8224
adamc@1132 8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
adamc@1132 8226 $as_echo_n "checking for objdir... " >&6; }
adam@1599 8227 if ${lt_cv_objdir+:} false; then :
adamc@1132 8228 $as_echo_n "(cached) " >&6
adamc@1132 8229 else
adamc@1132 8230 rm -f .libs 2>/dev/null
adamc@1132 8231 mkdir .libs 2>/dev/null
adamc@1132 8232 if test -d .libs; then
adamc@1132 8233 lt_cv_objdir=.libs
adamc@1132 8234 else
adamc@1132 8235 # MS-DOS does not allow filenames that begin with a dot.
adamc@1132 8236 lt_cv_objdir=_libs
adamc@1132 8237 fi
adamc@1132 8238 rmdir .libs 2>/dev/null
adamc@1132 8239 fi
adamc@1132 8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
adamc@1132 8241 $as_echo "$lt_cv_objdir" >&6; }
adamc@1132 8242 objdir=$lt_cv_objdir
adamc@1132 8243
adamc@1132 8244
adamc@1132 8245
adamc@1132 8246
adamc@1132 8247
adamc@1132 8248 cat >>confdefs.h <<_ACEOF
adamc@1132 8249 #define LT_OBJDIR "$lt_cv_objdir/"
adamc@1132 8250 _ACEOF
adamc@1132 8251
adamc@1132 8252
adamc@1132 8253
adamc@1132 8254
adamc@1132 8255 case $host_os in
adamc@1132 8256 aix3*)
adamc@1132 8257 # AIX sometimes has problems with the GCC collect2 program. For some
adamc@1132 8258 # reason, if we set the COLLECT_NAMES environment variable, the problems
adamc@1132 8259 # vanish in a puff of smoke.
adamc@1132 8260 if test "X${COLLECT_NAMES+set}" != Xset; then
adamc@1132 8261 COLLECT_NAMES=
adamc@1132 8262 export COLLECT_NAMES
adamc@1132 8263 fi
adamc@1132 8264 ;;
adamc@1132 8265 esac
adamc@1132 8266
adamc@1132 8267 # Global variables:
adamc@1132 8268 ofile=libtool
adamc@1132 8269 can_build_shared=yes
adamc@1132 8270
adamc@1132 8271 # All known linkers require a `.a' archive for static linking (except MSVC,
adamc@1132 8272 # which needs '.lib').
adamc@1132 8273 libext=a
adamc@1132 8274
adamc@1132 8275 with_gnu_ld="$lt_cv_prog_gnu_ld"
adamc@1132 8276
adamc@1132 8277 old_CC="$CC"
adamc@1132 8278 old_CFLAGS="$CFLAGS"
adamc@1132 8279
adamc@1132 8280 # Set sane defaults for various variables
adamc@1132 8281 test -z "$CC" && CC=cc
adamc@1132 8282 test -z "$LTCC" && LTCC=$CC
adamc@1132 8283 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
adamc@1132 8284 test -z "$LD" && LD=ld
adamc@1132 8285 test -z "$ac_objext" && ac_objext=o
adamc@1132 8286
adamc@1132 8287 for cc_temp in $compiler""; do
adamc@1132 8288 case $cc_temp in
adamc@1132 8289 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
adamc@1132 8290 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
adamc@1132 8291 \-*) ;;
adamc@1132 8292 *) break;;
adamc@1132 8293 esac
adamc@1132 8294 done
adam@1459 8295 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
adamc@1132 8296
adamc@1132 8297
adamc@1132 8298 # Only perform the check for file, if the check method requires it
adamc@1132 8299 test -z "$MAGIC_CMD" && MAGIC_CMD=file
adamc@1132 8300 case $deplibs_check_method in
adamc@1132 8301 file_magic*)
adamc@1132 8302 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
adamc@1132 8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
adamc@1132 8304 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
adam@1599 8305 if ${lt_cv_path_MAGIC_CMD+:} false; then :
adamc@1132 8306 $as_echo_n "(cached) " >&6
adamc@1132 8307 else
adamc@1132 8308 case $MAGIC_CMD in
adamc@1132 8309 [\\/*] | ?:[\\/]*)
adamc@1132 8310 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
adamc@1132 8311 ;;
adamc@1132 8312 *)
adamc@1132 8313 lt_save_MAGIC_CMD="$MAGIC_CMD"
adamc@1132 8314 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
adamc@1132 8315 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
adamc@1132 8316 for ac_dir in $ac_dummy; do
adamc@1132 8317 IFS="$lt_save_ifs"
adamc@1132 8318 test -z "$ac_dir" && ac_dir=.
adamc@1132 8319 if test -f $ac_dir/${ac_tool_prefix}file; then
adamc@1132 8320 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
adamc@1132 8321 if test -n "$file_magic_test_file"; then
adamc@1132 8322 case $deplibs_check_method in
adamc@1132 8323 "file_magic "*)
adamc@1132 8324 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
adamc@1132 8325 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
adamc@1132 8326 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
adamc@1132 8327 $EGREP "$file_magic_regex" > /dev/null; then
adamc@1132 8328 :
adamc@1132 8329 else
adamc@1132 8330 cat <<_LT_EOF 1>&2
adamc@1132 8331
adamc@1132 8332 *** Warning: the command libtool uses to detect shared libraries,
adamc@1132 8333 *** $file_magic_cmd, produces output that libtool cannot recognize.
adamc@1132 8334 *** The result is that libtool may fail to recognize shared libraries
adamc@1132 8335 *** as such. This will affect the creation of libtool libraries that
adamc@1132 8336 *** depend on shared libraries, but programs linked with such libtool
adamc@1132 8337 *** libraries will work regardless of this problem. Nevertheless, you
adamc@1132 8338 *** may want to report the problem to your system manager and/or to
adamc@1132 8339 *** bug-libtool@gnu.org
adamc@1132 8340
adamc@1132 8341 _LT_EOF
adamc@1132 8342 fi ;;
adamc@1132 8343 esac
adamc@1132 8344 fi
adamc@1132 8345 break
adamc@1132 8346 fi
adamc@1132 8347 done
adamc@1132 8348 IFS="$lt_save_ifs"
adamc@1132 8349 MAGIC_CMD="$lt_save_MAGIC_CMD"
adamc@1132 8350 ;;
adamc@1132 8351 esac
adamc@1132 8352 fi
adamc@1132 8353
adamc@1132 8354 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
adamc@1132 8355 if test -n "$MAGIC_CMD"; then
adamc@1132 8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
adamc@1132 8357 $as_echo "$MAGIC_CMD" >&6; }
adamc@1132 8358 else
adamc@1132 8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 8360 $as_echo "no" >&6; }
adamc@1132 8361 fi
adamc@1132 8362
adamc@1132 8363
adamc@1132 8364
adamc@1132 8365
adamc@1132 8366
adamc@1132 8367 if test -z "$lt_cv_path_MAGIC_CMD"; then
adamc@1132 8368 if test -n "$ac_tool_prefix"; then
adamc@1132 8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
adamc@1132 8370 $as_echo_n "checking for file... " >&6; }
adam@1599 8371 if ${lt_cv_path_MAGIC_CMD+:} false; then :
adamc@1132 8372 $as_echo_n "(cached) " >&6
adamc@1132 8373 else
adamc@1132 8374 case $MAGIC_CMD in
adamc@1132 8375 [\\/*] | ?:[\\/]*)
adamc@1132 8376 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
adamc@1132 8377 ;;
adamc@1132 8378 *)
adamc@1132 8379 lt_save_MAGIC_CMD="$MAGIC_CMD"
adamc@1132 8380 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
adamc@1132 8381 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
adamc@1132 8382 for ac_dir in $ac_dummy; do
adamc@1132 8383 IFS="$lt_save_ifs"
adamc@1132 8384 test -z "$ac_dir" && ac_dir=.
adamc@1132 8385 if test -f $ac_dir/file; then
adamc@1132 8386 lt_cv_path_MAGIC_CMD="$ac_dir/file"
adamc@1132 8387 if test -n "$file_magic_test_file"; then
adamc@1132 8388 case $deplibs_check_method in
adamc@1132 8389 "file_magic "*)
adamc@1132 8390 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
adamc@1132 8391 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
adamc@1132 8392 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
adamc@1132 8393 $EGREP "$file_magic_regex" > /dev/null; then
adamc@1132 8394 :
adamc@1132 8395 else
adamc@1132 8396 cat <<_LT_EOF 1>&2
adamc@1132 8397
adamc@1132 8398 *** Warning: the command libtool uses to detect shared libraries,
adamc@1132 8399 *** $file_magic_cmd, produces output that libtool cannot recognize.
adamc@1132 8400 *** The result is that libtool may fail to recognize shared libraries
adamc@1132 8401 *** as such. This will affect the creation of libtool libraries that
adamc@1132 8402 *** depend on shared libraries, but programs linked with such libtool
adamc@1132 8403 *** libraries will work regardless of this problem. Nevertheless, you
adamc@1132 8404 *** may want to report the problem to your system manager and/or to
adamc@1132 8405 *** bug-libtool@gnu.org
adamc@1132 8406
adamc@1132 8407 _LT_EOF
adamc@1132 8408 fi ;;
adamc@1132 8409 esac
adamc@1132 8410 fi
adamc@1132 8411 break
adamc@1132 8412 fi
adamc@1132 8413 done
adamc@1132 8414 IFS="$lt_save_ifs"
adamc@1132 8415 MAGIC_CMD="$lt_save_MAGIC_CMD"
adamc@1132 8416 ;;
adamc@1132 8417 esac
adamc@1132 8418 fi
adamc@1132 8419
adamc@1132 8420 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
adamc@1132 8421 if test -n "$MAGIC_CMD"; then
adamc@1132 8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
adamc@1132 8423 $as_echo "$MAGIC_CMD" >&6; }
adamc@1132 8424 else
adamc@1132 8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 8426 $as_echo "no" >&6; }
adamc@1132 8427 fi
adamc@1132 8428
adamc@1132 8429
adamc@1132 8430 else
adamc@1132 8431 MAGIC_CMD=:
adamc@1132 8432 fi
adamc@1132 8433 fi
adamc@1132 8434
adamc@1132 8435 fi
adamc@1132 8436 ;;
adamc@1132 8437 esac
adamc@1132 8438
adamc@1132 8439 # Use C for the default configuration in the libtool script
adamc@1132 8440
adamc@1132 8441 lt_save_CC="$CC"
adamc@1132 8442 ac_ext=c
adamc@1132 8443 ac_cpp='$CPP $CPPFLAGS'
adamc@1132 8444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@1132 8445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@1132 8446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@1132 8447
adamc@1132 8448
adamc@1132 8449 # Source file extension for C test sources.
adamc@1132 8450 ac_ext=c
adamc@1132 8451
adamc@1132 8452 # Object file extension for compiled C test sources.
adamc@1132 8453 objext=o
adamc@1132 8454 objext=$objext
adamc@1132 8455
adamc@1132 8456 # Code to be used in simple compile tests
adamc@1132 8457 lt_simple_compile_test_code="int some_variable = 0;"
adamc@1132 8458
adamc@1132 8459 # Code to be used in simple link tests
adamc@1132 8460 lt_simple_link_test_code='int main(){return(0);}'
adamc@1132 8461
adamc@1132 8462
adamc@1132 8463
adamc@1132 8464
adamc@1132 8465
adamc@1132 8466
adamc@1132 8467
adamc@1132 8468 # If no C compiler was specified, use CC.
adamc@1132 8469 LTCC=${LTCC-"$CC"}
adamc@1132 8470
adamc@1132 8471 # If no C compiler flags were specified, use CFLAGS.
adamc@1132 8472 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
adamc@1132 8473
adamc@1132 8474 # Allow CC to be a program name with arguments.
adamc@1132 8475 compiler=$CC
adamc@1132 8476
adamc@1132 8477 # Save the default compiler, since it gets overwritten when the other
adamc@1132 8478 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
adamc@1132 8479 compiler_DEFAULT=$CC
adamc@1132 8480
adamc@1132 8481 # save warnings/boilerplate of simple test code
adamc@1132 8482 ac_outfile=conftest.$ac_objext
adamc@1132 8483 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
adamc@1132 8484 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
adamc@1132 8485 _lt_compiler_boilerplate=`cat conftest.err`
adamc@1132 8486 $RM conftest*
adamc@1132 8487
adamc@1132 8488 ac_outfile=conftest.$ac_objext
adamc@1132 8489 echo "$lt_simple_link_test_code" >conftest.$ac_ext
adamc@1132 8490 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
adamc@1132 8491 _lt_linker_boilerplate=`cat conftest.err`
adamc@1132 8492 $RM -r conftest*
adamc@1132 8493
adamc@1132 8494
adamc@1141 8495 ## CAVEAT EMPTOR:
adamc@1141 8496 ## There is no encapsulation within the following macros, do not change
adamc@1141 8497 ## the running order or otherwise move them around unless you know exactly
adamc@1141 8498 ## what you are doing...
adamc@1132 8499 if test -n "$compiler"; then
adamc@1132 8500
adamc@1132 8501 lt_prog_compiler_no_builtin_flag=
adamc@1132 8502
adamc@1132 8503 if test "$GCC" = yes; then
adam@1459 8504 case $cc_basename in
adam@1459 8505 nvcc*)
adam@1459 8506 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
adam@1459 8507 *)
adam@1459 8508 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
adam@1459 8509 esac
adamc@1132 8510
adamc@1132 8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
adamc@1132 8512 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
adam@1599 8513 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
adamc@1132 8514 $as_echo_n "(cached) " >&6
adamc@1132 8515 else
adamc@1132 8516 lt_cv_prog_compiler_rtti_exceptions=no
adamc@1132 8517 ac_outfile=conftest.$ac_objext
adamc@1132 8518 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
adamc@1132 8519 lt_compiler_flag="-fno-rtti -fno-exceptions"
adamc@1132 8520 # Insert the option either (1) after the last *FLAGS variable, or
adamc@1132 8521 # (2) before a word containing "conftest.", or (3) at the end.
adamc@1132 8522 # Note that $ac_compile itself does not contain backslashes and begins
adamc@1132 8523 # with a dollar sign (not a hyphen), so the echo should work correctly.
adamc@1132 8524 # The option is referenced via a variable to avoid confusing sed.
adamc@1132 8525 lt_compile=`echo "$ac_compile" | $SED \
adamc@1132 8526 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
adamc@1132 8527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
adamc@1132 8528 -e 's:$: $lt_compiler_flag:'`
adam@1459 8529 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
adamc@1132 8530 (eval "$lt_compile" 2>conftest.err)
adamc@1132 8531 ac_status=$?
adamc@1132 8532 cat conftest.err >&5
adam@1459 8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
adamc@1132 8534 if (exit $ac_status) && test -s "$ac_outfile"; then
adamc@1132 8535 # The compiler can only warn and ignore the option if not recognized
adamc@1132 8536 # So say no if there are warnings other than the usual output.
adam@1459 8537 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
adamc@1132 8538 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
adamc@1132 8539 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
adamc@1132 8540 lt_cv_prog_compiler_rtti_exceptions=yes
adamc@1132 8541 fi
adamc@1132 8542 fi
adamc@1132 8543 $RM conftest*
adamc@1132 8544
adamc@1132 8545 fi
adamc@1132 8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
adamc@1132 8547 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
adamc@1132 8548
adamc@1132 8549 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
adamc@1132 8550 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
adamc@1132 8551 else
adamc@1132 8552 :
adamc@1132 8553 fi
adamc@1132 8554
adamc@1132 8555 fi
adamc@1132 8556
adamc@1132 8557
adamc@1132 8558
adamc@1132 8559
adamc@1132 8560
adamc@1132 8561
adamc@1132 8562 lt_prog_compiler_wl=
adamc@1132 8563 lt_prog_compiler_pic=
adamc@1132 8564 lt_prog_compiler_static=
adamc@1132 8565
adamc@1132 8566
adamc@1132 8567 if test "$GCC" = yes; then
adamc@1132 8568 lt_prog_compiler_wl='-Wl,'
adamc@1132 8569 lt_prog_compiler_static='-static'
adamc@1132 8570
adamc@1132 8571 case $host_os in
adamc@1132 8572 aix*)
adamc@1132 8573 # All AIX code is PIC.
adamc@1132 8574 if test "$host_cpu" = ia64; then
adamc@1132 8575 # AIX 5 now supports IA64 processor
adamc@1132 8576 lt_prog_compiler_static='-Bstatic'
adamc@1132 8577 fi
adamc@1132 8578 ;;
adamc@1132 8579
adamc@1132 8580 amigaos*)
adamc@1132 8581 case $host_cpu in
adamc@1132 8582 powerpc)
adamc@1132 8583 # see comment about AmigaOS4 .so support
adamc@1132 8584 lt_prog_compiler_pic='-fPIC'
adamc@1132 8585 ;;
adamc@1132 8586 m68k)
adamc@1132 8587 # FIXME: we need at least 68020 code to build shared libraries, but
adamc@1132 8588 # adding the `-m68020' flag to GCC prevents building anything better,
adamc@1132 8589 # like `-m68040'.
adamc@1132 8590 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
adamc@1132 8591 ;;
adamc@1132 8592 esac
adamc@1132 8593 ;;
adamc@1132 8594
adamc@1132 8595 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
adamc@1132 8596 # PIC is the default for these OSes.
adamc@1132 8597 ;;
adamc@1132 8598
adamc@1132 8599 mingw* | cygwin* | pw32* | os2* | cegcc*)
adamc@1132 8600 # This hack is so that the source file can tell whether it is being
adamc@1132 8601 # built for inclusion in a dll (and should export symbols for example).
adamc@1132 8602 # Although the cygwin gcc ignores -fPIC, still need this for old-style
adamc@1132 8603 # (--disable-auto-import) libraries
adamc@1132 8604 lt_prog_compiler_pic='-DDLL_EXPORT'
adamc@1132 8605 ;;
adamc@1132 8606
adamc@1132 8607 darwin* | rhapsody*)
adamc@1132 8608 # PIC is the default on this platform
adamc@1132 8609 # Common symbols not allowed in MH_DYLIB files
adamc@1132 8610 lt_prog_compiler_pic='-fno-common'
adamc@1132 8611 ;;
adamc@1132 8612
adam@1459 8613 haiku*)
adam@1459 8614 # PIC is the default for Haiku.
adam@1459 8615 # The "-static" flag exists, but is broken.
adam@1459 8616 lt_prog_compiler_static=
adam@1459 8617 ;;
adam@1459 8618
adamc@1132 8619 hpux*)
adamc@1132 8620 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
adamc@1132 8621 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
adamc@1132 8622 # sets the default TLS model and affects inlining.
adamc@1132 8623 case $host_cpu in
adamc@1132 8624 hppa*64*)
adamc@1132 8625 # +Z the default
adamc@1132 8626 ;;
adamc@1132 8627 *)
adamc@1132 8628 lt_prog_compiler_pic='-fPIC'
adamc@1132 8629 ;;
adamc@1132 8630 esac
adamc@1132 8631 ;;
adamc@1132 8632
adamc@1132 8633 interix[3-9]*)
adamc@1132 8634 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
adamc@1132 8635 # Instead, we relocate shared libraries at runtime.
adamc@1132 8636 ;;
adamc@1132 8637
adamc@1132 8638 msdosdjgpp*)
adamc@1132 8639 # Just because we use GCC doesn't mean we suddenly get shared libraries
adamc@1132 8640 # on systems that don't support them.
adamc@1132 8641 lt_prog_compiler_can_build_shared=no
adamc@1132 8642 enable_shared=no
adamc@1132 8643 ;;
adamc@1132 8644
adamc@1132 8645 *nto* | *qnx*)
adamc@1132 8646 # QNX uses GNU C++, but need to define -shared option too, otherwise
adamc@1132 8647 # it will coredump.
adamc@1132 8648 lt_prog_compiler_pic='-fPIC -shared'
adamc@1132 8649 ;;
adamc@1132 8650
adamc@1132 8651 sysv4*MP*)
adamc@1132 8652 if test -d /usr/nec; then
adamc@1132 8653 lt_prog_compiler_pic=-Kconform_pic
adamc@1132 8654 fi
adamc@1132 8655 ;;
adamc@1132 8656
adamc@1132 8657 *)
adamc@1132 8658 lt_prog_compiler_pic='-fPIC'
adamc@1132 8659 ;;
adamc@1132 8660 esac
adam@1459 8661
adam@1459 8662 case $cc_basename in
adam@1459 8663 nvcc*) # Cuda Compiler Driver 2.2
adam@1459 8664 lt_prog_compiler_wl='-Xlinker '
adam@1599 8665 if test -n "$lt_prog_compiler_pic"; then
adam@1599 8666 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
adam@1599 8667 fi
adam@1459 8668 ;;
adam@1459 8669 esac
adamc@1132 8670 else
adamc@1132 8671 # PORTME Check for flag to pass linker flags through the system compiler.
adamc@1132 8672 case $host_os in
adamc@1132 8673 aix*)
adamc@1132 8674 lt_prog_compiler_wl='-Wl,'
adamc@1132 8675 if test "$host_cpu" = ia64; then
adamc@1132 8676 # AIX 5 now supports IA64 processor
adamc@1132 8677 lt_prog_compiler_static='-Bstatic'
adamc@1132 8678 else
adamc@1132 8679 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
adamc@1132 8680 fi
adamc@1132 8681 ;;
adamc@1132 8682
adamc@1132 8683 mingw* | cygwin* | pw32* | os2* | cegcc*)
adamc@1132 8684 # This hack is so that the source file can tell whether it is being
adamc@1132 8685 # built for inclusion in a dll (and should export symbols for example).
adamc@1132 8686 lt_prog_compiler_pic='-DDLL_EXPORT'
adamc@1132 8687 ;;
adamc@1132 8688
adamc@1132 8689 hpux9* | hpux10* | hpux11*)
adamc@1132 8690 lt_prog_compiler_wl='-Wl,'
adamc@1132 8691 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
adamc@1132 8692 # not for PA HP-UX.
adamc@1132 8693 case $host_cpu in
adamc@1132 8694 hppa*64*|ia64*)
adamc@1132 8695 # +Z the default
adamc@1132 8696 ;;
adamc@1132 8697 *)
adamc@1132 8698 lt_prog_compiler_pic='+Z'
adamc@1132 8699 ;;
adamc@1132 8700 esac
adamc@1132 8701 # Is there a better lt_prog_compiler_static that works with the bundled CC?
adamc@1132 8702 lt_prog_compiler_static='${wl}-a ${wl}archive'
adamc@1132 8703 ;;
adamc@1132 8704
adamc@1132 8705 irix5* | irix6* | nonstopux*)
adamc@1132 8706 lt_prog_compiler_wl='-Wl,'
adamc@1132 8707 # PIC (with -KPIC) is the default.
adamc@1132 8708 lt_prog_compiler_static='-non_shared'
adamc@1132 8709 ;;
adamc@1132 8710
adamc@1132 8711 linux* | k*bsd*-gnu | kopensolaris*-gnu)
adamc@1132 8712 case $cc_basename in
adamc@1132 8713 # old Intel for x86_64 which still supported -KPIC.
adamc@1132 8714 ecc*)
adamc@1132 8715 lt_prog_compiler_wl='-Wl,'
adamc@1132 8716 lt_prog_compiler_pic='-KPIC'
adamc@1132 8717 lt_prog_compiler_static='-static'
adamc@1132 8718 ;;
adamc@1132 8719 # icc used to be incompatible with GCC.
adamc@1132 8720 # ICC 10 doesn't accept -KPIC any more.
adamc@1132 8721 icc* | ifort*)
adamc@1132 8722 lt_prog_compiler_wl='-Wl,'
adamc@1132 8723 lt_prog_compiler_pic='-fPIC'
adamc@1132 8724 lt_prog_compiler_static='-static'
adamc@1132 8725 ;;
adamc@1132 8726 # Lahey Fortran 8.1.
adamc@1132 8727 lf95*)
adamc@1132 8728 lt_prog_compiler_wl='-Wl,'
adamc@1132 8729 lt_prog_compiler_pic='--shared'
adamc@1132 8730 lt_prog_compiler_static='--static'
adamc@1132 8731 ;;
adam@1459 8732 nagfor*)
adam@1459 8733 # NAG Fortran compiler
adam@1459 8734 lt_prog_compiler_wl='-Wl,-Wl,,'
adam@1459 8735 lt_prog_compiler_pic='-PIC'
adam@1459 8736 lt_prog_compiler_static='-Bstatic'
adam@1459 8737 ;;
adam@1459 8738 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
adamc@1132 8739 # Portland Group compilers (*not* the Pentium gcc compiler,
adamc@1132 8740 # which looks to be a dead project)
adamc@1132 8741 lt_prog_compiler_wl='-Wl,'
adamc@1132 8742 lt_prog_compiler_pic='-fpic'
adamc@1132 8743 lt_prog_compiler_static='-Bstatic'
adamc@1132 8744 ;;
adamc@1132 8745 ccc*)
adamc@1132 8746 lt_prog_compiler_wl='-Wl,'
adamc@1132 8747 # All Alpha code is PIC.
adamc@1132 8748 lt_prog_compiler_static='-non_shared'
adamc@1132 8749 ;;
adam@1459 8750 xl* | bgxl* | bgf* | mpixl*)
adam@1459 8751 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
adamc@1132 8752 lt_prog_compiler_wl='-Wl,'
adamc@1132 8753 lt_prog_compiler_pic='-qpic'
adamc@1132 8754 lt_prog_compiler_static='-qstaticlink'
adamc@1132 8755 ;;
adamc@1132 8756 *)
adamc@1132 8757 case `$CC -V 2>&1 | sed 5q` in
adam@1599 8758 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
adam@1459 8759 # Sun Fortran 8.3 passes all unrecognized flags to the linker
adam@1459 8760 lt_prog_compiler_pic='-KPIC'
adam@1459 8761 lt_prog_compiler_static='-Bstatic'
adam@1459 8762 lt_prog_compiler_wl=''
adam@1459 8763 ;;
adam@1599 8764 *Sun\ F* | *Sun*Fortran*)
adam@1599 8765 lt_prog_compiler_pic='-KPIC'
adam@1599 8766 lt_prog_compiler_static='-Bstatic'
adam@1599 8767 lt_prog_compiler_wl='-Qoption ld '
adam@1599 8768 ;;
adamc@1132 8769 *Sun\ C*)
adamc@1132 8770 # Sun C 5.9
adamc@1132 8771 lt_prog_compiler_pic='-KPIC'
adamc@1132 8772 lt_prog_compiler_static='-Bstatic'
adamc@1132 8773 lt_prog_compiler_wl='-Wl,'
adamc@1132 8774 ;;
adam@1599 8775 *Intel*\ [CF]*Compiler*)
adam@1599 8776 lt_prog_compiler_wl='-Wl,'
adam@1599 8777 lt_prog_compiler_pic='-fPIC'
adam@1599 8778 lt_prog_compiler_static='-static'
adam@1599 8779 ;;
adam@1599 8780 *Portland\ Group*)
adam@1599 8781 lt_prog_compiler_wl='-Wl,'
adam@1599 8782 lt_prog_compiler_pic='-fpic'
adam@1599 8783 lt_prog_compiler_static='-Bstatic'
adam@1599 8784 ;;
adamc@1132 8785 esac
adamc@1132 8786 ;;
adamc@1132 8787 esac
adamc@1132 8788 ;;
adamc@1132 8789
adamc@1132 8790 newsos6)
adamc@1132 8791 lt_prog_compiler_pic='-KPIC'
adamc@1132 8792 lt_prog_compiler_static='-Bstatic'
adamc@1132 8793 ;;
adamc@1132 8794
adamc@1132 8795 *nto* | *qnx*)
adamc@1132 8796 # QNX uses GNU C++, but need to define -shared option too, otherwise
adamc@1132 8797 # it will coredump.
adamc@1132 8798 lt_prog_compiler_pic='-fPIC -shared'
adamc@1132 8799 ;;
adamc@1132 8800
adamc@1132 8801 osf3* | osf4* | osf5*)
adamc@1132 8802 lt_prog_compiler_wl='-Wl,'
adamc@1132 8803 # All OSF/1 code is PIC.
adamc@1132 8804 lt_prog_compiler_static='-non_shared'
adamc@1132 8805 ;;
adamc@1132 8806
adamc@1132 8807 rdos*)
adamc@1132 8808 lt_prog_compiler_static='-non_shared'
adamc@1132 8809 ;;
adamc@1132 8810
adamc@1132 8811 solaris*)
adamc@1132 8812 lt_prog_compiler_pic='-KPIC'
adamc@1132 8813 lt_prog_compiler_static='-Bstatic'
adamc@1132 8814 case $cc_basename in
adam@1459 8815 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
adamc@1132 8816 lt_prog_compiler_wl='-Qoption ld ';;
adamc@1132 8817 *)
adamc@1132 8818 lt_prog_compiler_wl='-Wl,';;
adamc@1132 8819 esac
adamc@1132 8820 ;;
adamc@1132 8821
adamc@1132 8822 sunos4*)
adamc@1132 8823 lt_prog_compiler_wl='-Qoption ld '
adamc@1132 8824 lt_prog_compiler_pic='-PIC'
adamc@1132 8825 lt_prog_compiler_static='-Bstatic'
adamc@1132 8826 ;;
adamc@1132 8827
adamc@1132 8828 sysv4 | sysv4.2uw2* | sysv4.3*)
adamc@1132 8829 lt_prog_compiler_wl='-Wl,'
adamc@1132 8830 lt_prog_compiler_pic='-KPIC'
adamc@1132 8831 lt_prog_compiler_static='-Bstatic'
adamc@1132 8832 ;;
adamc@1132 8833
adamc@1132 8834 sysv4*MP*)
adamc@1132 8835 if test -d /usr/nec ;then
adamc@1132 8836 lt_prog_compiler_pic='-Kconform_pic'
adamc@1132 8837 lt_prog_compiler_static='-Bstatic'
adamc@1132 8838 fi
adamc@1132 8839 ;;
adamc@1132 8840
adamc@1132 8841 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
adamc@1132 8842 lt_prog_compiler_wl='-Wl,'
adamc@1132 8843 lt_prog_compiler_pic='-KPIC'
adamc@1132 8844 lt_prog_compiler_static='-Bstatic'
adamc@1132 8845 ;;
adamc@1132 8846
adamc@1132 8847 unicos*)
adamc@1132 8848 lt_prog_compiler_wl='-Wl,'
adamc@1132 8849 lt_prog_compiler_can_build_shared=no
adamc@1132 8850 ;;
adamc@1132 8851
adamc@1132 8852 uts4*)
adamc@1132 8853 lt_prog_compiler_pic='-pic'
adamc@1132 8854 lt_prog_compiler_static='-Bstatic'
adamc@1132 8855 ;;
adamc@1132 8856
adamc@1132 8857 *)
adamc@1132 8858 lt_prog_compiler_can_build_shared=no
adamc@1132 8859 ;;
adamc@1132 8860 esac
adamc@1132 8861 fi
adamc@1132 8862
adamc@1132 8863 case $host_os in
adamc@1132 8864 # For platforms which do not support PIC, -DPIC is meaningless:
adamc@1132 8865 *djgpp*)
adamc@1132 8866 lt_prog_compiler_pic=
adamc@1132 8867 ;;
adamc@1132 8868 *)
adamc@1132 8869 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
adamc@1132 8870 ;;
adamc@1132 8871 esac
adam@1459 8872
adam@1459 8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
adam@1459 8874 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
adam@1599 8875 if ${lt_cv_prog_compiler_pic+:} false; then :
adam@1459 8876 $as_echo_n "(cached) " >&6
adam@1459 8877 else
adam@1459 8878 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
adam@1459 8879 fi
adam@1459 8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
adam@1459 8881 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
adam@1459 8882 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
adamc@1132 8883
adamc@1132 8884 #
adamc@1132 8885 # Check to make sure the PIC flag actually works.
adamc@1132 8886 #
adamc@1132 8887 if test -n "$lt_prog_compiler_pic"; then
adamc@1132 8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
adamc@1132 8889 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
adam@1599 8890 if ${lt_cv_prog_compiler_pic_works+:} false; then :
adamc@1132 8891 $as_echo_n "(cached) " >&6
adamc@1132 8892 else
adamc@1132 8893 lt_cv_prog_compiler_pic_works=no
adamc@1132 8894 ac_outfile=conftest.$ac_objext
adamc@1132 8895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
adamc@1132 8896 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
adamc@1132 8897 # Insert the option either (1) after the last *FLAGS variable, or
adamc@1132 8898 # (2) before a word containing "conftest.", or (3) at the end.
adamc@1132 8899 # Note that $ac_compile itself does not contain backslashes and begins
adamc@1132 8900 # with a dollar sign (not a hyphen), so the echo should work correctly.
adamc@1132 8901 # The option is referenced via a variable to avoid confusing sed.
adamc@1132 8902 lt_compile=`echo "$ac_compile" | $SED \
adamc@1132 8903 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
adamc@1132 8904 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
adamc@1132 8905 -e 's:$: $lt_compiler_flag:'`
adam@1459 8906 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
adamc@1132 8907 (eval "$lt_compile" 2>conftest.err)
adamc@1132 8908 ac_status=$?
adamc@1132 8909 cat conftest.err >&5
adam@1459 8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
adamc@1132 8911 if (exit $ac_status) && test -s "$ac_outfile"; then
adamc@1132 8912 # The compiler can only warn and ignore the option if not recognized
adamc@1132 8913 # So say no if there are warnings other than the usual output.
adam@1459 8914 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
adamc@1132 8915 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
adamc@1132 8916 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
adamc@1132 8917 lt_cv_prog_compiler_pic_works=yes
adamc@1132 8918 fi
adamc@1132 8919 fi
adamc@1132 8920 $RM conftest*
adamc@1132 8921
adamc@1132 8922 fi
adamc@1132 8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
adamc@1132 8924 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
adamc@1132 8925
adamc@1132 8926 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
adamc@1132 8927 case $lt_prog_compiler_pic in
adamc@1132 8928 "" | " "*) ;;
adamc@1132 8929 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
adamc@1132 8930 esac
adamc@1132 8931 else
adamc@1132 8932 lt_prog_compiler_pic=
adamc@1132 8933 lt_prog_compiler_can_build_shared=no
adamc@1132 8934 fi
adamc@1132 8935
adamc@1132 8936 fi
adamc@1132 8937
adamc@1132 8938
adamc@1132 8939
adamc@1132 8940
adamc@1132 8941
adamc@1132 8942
adam@1459 8943
adam@1459 8944
adam@1459 8945
adam@1459 8946
adam@1459 8947
adamc@1132 8948 #
adamc@1132 8949 # Check to make sure the static flag actually works.
adamc@1132 8950 #
adamc@1132 8951 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
adamc@1132 8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
adamc@1132 8953 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
adam@1599 8954 if ${lt_cv_prog_compiler_static_works+:} false; then :
adamc@1132 8955 $as_echo_n "(cached) " >&6
adamc@1132 8956 else
adamc@1132 8957 lt_cv_prog_compiler_static_works=no
adamc@1132 8958 save_LDFLAGS="$LDFLAGS"
adamc@1132 8959 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
adamc@1132 8960 echo "$lt_simple_link_test_code" > conftest.$ac_ext
adamc@1132 8961 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
adamc@1132 8962 # The linker can only warn and ignore the option if not recognized
adamc@1132 8963 # So say no if there are warnings
adamc@1132 8964 if test -s conftest.err; then
adamc@1132 8965 # Append any errors to the config.log.
adamc@1132 8966 cat conftest.err 1>&5
adam@1459 8967 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
adamc@1132 8968 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
adamc@1132 8969 if diff conftest.exp conftest.er2 >/dev/null; then
adamc@1132 8970 lt_cv_prog_compiler_static_works=yes
adamc@1132 8971 fi
adamc@1132 8972 else
adamc@1132 8973 lt_cv_prog_compiler_static_works=yes
adamc@1132 8974 fi
adamc@1132 8975 fi
adamc@1132 8976 $RM -r conftest*
adamc@1132 8977 LDFLAGS="$save_LDFLAGS"
adamc@1132 8978
adamc@1132 8979 fi
adamc@1132 8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
adamc@1132 8981 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
adamc@1132 8982
adamc@1132 8983 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
adamc@1132 8984 :
adamc@1132 8985 else
adamc@1132 8986 lt_prog_compiler_static=
adamc@1132 8987 fi
adamc@1132 8988
adamc@1132 8989
adamc@1132 8990
adamc@1132 8991
adamc@1132 8992
adamc@1132 8993
adamc@1132 8994
adamc@1132 8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
adamc@1132 8996 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
adam@1599 8997 if ${lt_cv_prog_compiler_c_o+:} false; then :
adamc@1132 8998 $as_echo_n "(cached) " >&6
adamc@1132 8999 else
adamc@1132 9000 lt_cv_prog_compiler_c_o=no
adamc@1132 9001 $RM -r conftest 2>/dev/null
adamc@1132 9002 mkdir conftest
adamc@1132 9003 cd conftest
adamc@1132 9004 mkdir out
adamc@1132 9005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
adamc@1132 9006
adamc@1132 9007 lt_compiler_flag="-o out/conftest2.$ac_objext"
adamc@1132 9008 # Insert the option either (1) after the last *FLAGS variable, or
adamc@1132 9009 # (2) before a word containing "conftest.", or (3) at the end.
adamc@1132 9010 # Note that $ac_compile itself does not contain backslashes and begins
adamc@1132 9011 # with a dollar sign (not a hyphen), so the echo should work correctly.
adamc@1132 9012 lt_compile=`echo "$ac_compile" | $SED \
adamc@1132 9013 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
adamc@1132 9014 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
adamc@1132 9015 -e 's:$: $lt_compiler_flag:'`
adam@1459 9016 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
adamc@1132 9017 (eval "$lt_compile" 2>out/conftest.err)
adamc@1132 9018 ac_status=$?
adamc@1132 9019 cat out/conftest.err >&5
adam@1459 9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
adamc@1132 9021 if (exit $ac_status) && test -s out/conftest2.$ac_objext
adamc@1132 9022 then
adamc@1132 9023 # The compiler can only warn and ignore the option if not recognized
adamc@1132 9024 # So say no if there are warnings
adam@1459 9025 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
adamc@1132 9026 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
adamc@1132 9027 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
adamc@1132 9028 lt_cv_prog_compiler_c_o=yes
adamc@1132 9029 fi
adamc@1132 9030 fi
adamc@1132 9031 chmod u+w . 2>&5
adamc@1132 9032 $RM conftest*
adamc@1132 9033 # SGI C++ compiler will create directory out/ii_files/ for
adamc@1132 9034 # template instantiation
adamc@1132 9035 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
adamc@1132 9036 $RM out/* && rmdir out
adamc@1132 9037 cd ..
adamc@1132 9038 $RM -r conftest
adamc@1132 9039 $RM conftest*
adamc@1132 9040
adamc@1132 9041 fi
adamc@1132 9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
adamc@1132 9043 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
adamc@1132 9044
adamc@1132 9045
adamc@1132 9046
adamc@1132 9047
adamc@1132 9048
adamc@1132 9049
adamc@1132 9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
adamc@1132 9051 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
adam@1599 9052 if ${lt_cv_prog_compiler_c_o+:} false; then :
adamc@1132 9053 $as_echo_n "(cached) " >&6
adamc@1132 9054 else
adamc@1132 9055 lt_cv_prog_compiler_c_o=no
adamc@1132 9056 $RM -r conftest 2>/dev/null
adamc@1132 9057 mkdir conftest
adamc@1132 9058 cd conftest
adamc@1132 9059 mkdir out
adamc@1132 9060 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
adamc@1132 9061
adamc@1132 9062 lt_compiler_flag="-o out/conftest2.$ac_objext"
adamc@1132 9063 # Insert the option either (1) after the last *FLAGS variable, or
adamc@1132 9064 # (2) before a word containing "conftest.", or (3) at the end.
adamc@1132 9065 # Note that $ac_compile itself does not contain backslashes and begins
adamc@1132 9066 # with a dollar sign (not a hyphen), so the echo should work correctly.
adamc@1132 9067 lt_compile=`echo "$ac_compile" | $SED \
adamc@1132 9068 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
adamc@1132 9069 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
adamc@1132 9070 -e 's:$: $lt_compiler_flag:'`
adam@1459 9071 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
adamc@1132 9072 (eval "$lt_compile" 2>out/conftest.err)
adamc@1132 9073 ac_status=$?
adamc@1132 9074 cat out/conftest.err >&5
adam@1459 9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
adamc@1132 9076 if (exit $ac_status) && test -s out/conftest2.$ac_objext
adamc@1132 9077 then
adamc@1132 9078 # The compiler can only warn and ignore the option if not recognized
adamc@1132 9079 # So say no if there are warnings
adam@1459 9080 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
adamc@1132 9081 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
adamc@1132 9082 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
adamc@1132 9083 lt_cv_prog_compiler_c_o=yes
adamc@1132 9084 fi
adamc@1132 9085 fi
adamc@1132 9086 chmod u+w . 2>&5
adamc@1132 9087 $RM conftest*
adamc@1132 9088 # SGI C++ compiler will create directory out/ii_files/ for
adamc@1132 9089 # template instantiation
adamc@1132 9090 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
adamc@1132 9091 $RM out/* && rmdir out
adamc@1132 9092 cd ..
adamc@1132 9093 $RM -r conftest
adamc@1132 9094 $RM conftest*
adamc@1132 9095
adamc@1132 9096 fi
adamc@1132 9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
adamc@1132 9098 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
adamc@1132 9099
adamc@1132 9100
adamc@1132 9101
adamc@1132 9102
adamc@1132 9103 hard_links="nottested"
adamc@1132 9104 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
adamc@1132 9105 # do not overwrite the value of need_locks provided by the user
adamc@1132 9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
adamc@1132 9107 $as_echo_n "checking if we can lock with hard links... " >&6; }
adamc@1132 9108 hard_links=yes
adamc@1132 9109 $RM conftest*
adamc@1132 9110 ln conftest.a conftest.b 2>/dev/null && hard_links=no
adamc@1132 9111 touch conftest.a
adamc@1132 9112 ln conftest.a conftest.b 2>&5 || hard_links=no
adamc@1132 9113 ln conftest.a conftest.b 2>/dev/null && hard_links=no
adamc@1132 9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
adamc@1132 9115 $as_echo "$hard_links" >&6; }
adamc@1132 9116 if test "$hard_links" = no; then
adamc@1132 9117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
adamc@1132 9118 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
adamc@1132 9119 need_locks=warn
adamc@1132 9120 fi
adamc@1132 9121 else
adamc@1132 9122 need_locks=no
adamc@1132 9123 fi
adamc@1132 9124
adamc@1132 9125
adamc@1132 9126
adamc@1132 9127
adamc@1132 9128
adamc@1132 9129
adamc@1132 9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
adamc@1132 9131 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
adamc@1132 9132
adamc@1132 9133 runpath_var=
adamc@1132 9134 allow_undefined_flag=
adamc@1132 9135 always_export_symbols=no
adamc@1132 9136 archive_cmds=
adamc@1132 9137 archive_expsym_cmds=
adamc@1132 9138 compiler_needs_object=no
adamc@1132 9139 enable_shared_with_static_runtimes=no
adamc@1132 9140 export_dynamic_flag_spec=
adamc@1132 9141 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
adamc@1132 9142 hardcode_automatic=no
adamc@1132 9143 hardcode_direct=no
adamc@1132 9144 hardcode_direct_absolute=no
adamc@1132 9145 hardcode_libdir_flag_spec=
adamc@1132 9146 hardcode_libdir_separator=
adamc@1132 9147 hardcode_minus_L=no
adamc@1132 9148 hardcode_shlibpath_var=unsupported
adamc@1132 9149 inherit_rpath=no
adamc@1132 9150 link_all_deplibs=unknown
adamc@1132 9151 module_cmds=
adamc@1132 9152 module_expsym_cmds=
adamc@1132 9153 old_archive_from_new_cmds=
adamc@1132 9154 old_archive_from_expsyms_cmds=
adamc@1132 9155 thread_safe_flag_spec=
adamc@1132 9156 whole_archive_flag_spec=
adamc@1132 9157 # include_expsyms should be a list of space-separated symbols to be *always*
adamc@1132 9158 # included in the symbol list
adamc@1132 9159 include_expsyms=
adamc@1132 9160 # exclude_expsyms can be an extended regexp of symbols to exclude
adamc@1132 9161 # it will be wrapped by ` (' and `)$', so one must not match beginning or
adamc@1132 9162 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
adamc@1132 9163 # as well as any symbol that contains `d'.
adamc@1132 9164 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
adamc@1132 9165 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
adamc@1132 9166 # platforms (ab)use it in PIC code, but their linkers get confused if
adamc@1132 9167 # the symbol is explicitly referenced. Since portable code cannot
adamc@1132 9168 # rely on this symbol name, it's probably fine to never include it in
adamc@1132 9169 # preloaded symbol tables.
adamc@1132 9170 # Exclude shared library initialization/finalization symbols.
adamc@1132 9171 extract_expsyms_cmds=
adamc@1132 9172
adamc@1132 9173 case $host_os in
adamc@1132 9174 cygwin* | mingw* | pw32* | cegcc*)
adamc@1132 9175 # FIXME: the MSVC++ port hasn't been tested in a loooong time
adamc@1132 9176 # When not using gcc, we currently assume that we are using
adamc@1132 9177 # Microsoft Visual C++.
adamc@1132 9178 if test "$GCC" != yes; then
adamc@1132 9179 with_gnu_ld=no
adamc@1132 9180 fi
adamc@1132 9181 ;;
adamc@1132 9182 interix*)
adamc@1132 9183 # we just hope/assume this is gcc and not c89 (= MSVC++)
adamc@1132 9184 with_gnu_ld=yes
adamc@1132 9185 ;;
adamc@1132 9186 openbsd*)
adamc@1132 9187 with_gnu_ld=no
adamc@1132 9188 ;;
adam@1459 9189 linux* | k*bsd*-gnu | gnu*)
adamc@1132 9190 link_all_deplibs=no
adamc@1132 9191 ;;
adamc@1132 9192 esac
adamc@1132 9193
adamc@1132 9194 ld_shlibs=yes
adam@1459 9195
adam@1459 9196 # On some targets, GNU ld is compatible enough with the native linker
adam@1459 9197 # that we're better off using the native interface for both.
adam@1459 9198 lt_use_gnu_ld_interface=no
adamc@1132 9199 if test "$with_gnu_ld" = yes; then
adam@1459 9200 case $host_os in
adam@1459 9201 aix*)
adam@1459 9202 # The AIX port of GNU ld has always aspired to compatibility
adam@1459 9203 # with the native linker. However, as the warning in the GNU ld
adam@1459 9204 # block says, versions before 2.19.5* couldn't really create working
adam@1459 9205 # shared libraries, regardless of the interface used.
adam@1459 9206 case `$LD -v 2>&1` in
adam@1459 9207 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
adam@1459 9208 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
adam@1459 9209 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
adam@1459 9210 *)
adam@1459 9211 lt_use_gnu_ld_interface=yes
adam@1459 9212 ;;
adam@1459 9213 esac
adam@1459 9214 ;;
adam@1459 9215 *)
adam@1459 9216 lt_use_gnu_ld_interface=yes
adam@1459 9217 ;;
adam@1459 9218 esac
adam@1459 9219 fi
adam@1459 9220
adam@1459 9221 if test "$lt_use_gnu_ld_interface" = yes; then
adamc@1132 9222 # If archive_cmds runs LD, not CC, wlarc should be empty
adamc@1132 9223 wlarc='${wl}'
adamc@1132 9224
adamc@1132 9225 # Set some defaults for GNU ld with shared library support. These
adamc@1132 9226 # are reset later if shared libraries are not supported. Putting them
adamc@1132 9227 # here allows them to be overridden if necessary.
adamc@1132 9228 runpath_var=LD_RUN_PATH
adamc@1132 9229 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
adamc@1132 9230 export_dynamic_flag_spec='${wl}--export-dynamic'
adamc@1132 9231 # ancient GNU ld didn't support --whole-archive et. al.
adamc@1132 9232 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
adamc@1132 9233 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
adamc@1132 9234 else
adamc@1132 9235 whole_archive_flag_spec=
adamc@1132 9236 fi
adamc@1132 9237 supports_anon_versioning=no
adamc@1132 9238 case `$LD -v 2>&1` in
adamc@1132 9239 *GNU\ gold*) supports_anon_versioning=yes ;;
adamc@1132 9240 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
adamc@1132 9241 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
adamc@1132 9242 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
adamc@1132 9243 *\ 2.11.*) ;; # other 2.11 versions
adamc@1132 9244 *) supports_anon_versioning=yes ;;
adamc@1132 9245 esac
adamc@1132 9246
adamc@1132 9247 # See if GNU ld supports shared libraries.
adamc@1132 9248 case $host_os in
adamc@1132 9249 aix[3-9]*)
adamc@1132 9250 # On AIX/PPC, the GNU linker is very broken
adamc@1132 9251 if test "$host_cpu" != ia64; then
adamc@1132 9252 ld_shlibs=no
adamc@1132 9253 cat <<_LT_EOF 1>&2
adamc@1132 9254
adam@1459 9255 *** Warning: the GNU linker, at least up to release 2.19, is reported
adamc@1132 9256 *** to be unable to reliably create shared libraries on AIX.
adamc@1132 9257 *** Therefore, libtool is disabling shared libraries support. If you
adam@1459 9258 *** really care for shared libraries, you may want to install binutils
adam@1459 9259 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
adam@1459 9260 *** You will then need to restart the configuration process.
adamc@1132 9261
adamc@1132 9262 _LT_EOF
adamc@1132 9263 fi
adamc@1132 9264 ;;
adamc@1132 9265
adamc@1132 9266 amigaos*)
adamc@1132 9267 case $host_cpu in
adamc@1132 9268 powerpc)
adamc@1132 9269 # see comment about AmigaOS4 .so support
adamc@1132 9270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
adamc@1132 9271 archive_expsym_cmds=''
adamc@1132 9272 ;;
adamc@1132 9273 m68k)
adamc@1132 9274 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)'
adamc@1132 9275 hardcode_libdir_flag_spec='-L$libdir'
adamc@1132 9276 hardcode_minus_L=yes
adamc@1132 9277 ;;
adamc@1132 9278 esac
adamc@1132 9279 ;;
adamc@1132 9280
adamc@1132 9281 beos*)
adamc@1132 9282 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
adamc@1132 9283 allow_undefined_flag=unsupported
adamc@1132 9284 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
adamc@1132 9285 # support --undefined. This deserves some investigation. FIXME
adamc@1132 9286 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
adamc@1132 9287 else
adamc@1132 9288 ld_shlibs=no
adamc@1132 9289 fi
adamc@1132 9290 ;;
adamc@1132 9291
adamc@1132 9292 cygwin* | mingw* | pw32* | cegcc*)
adamc@1132 9293 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
adamc@1132 9294 # as there is no search path for DLLs.
adamc@1132 9295 hardcode_libdir_flag_spec='-L$libdir'
adam@1459 9296 export_dynamic_flag_spec='${wl}--export-all-symbols'
adamc@1132 9297 allow_undefined_flag=unsupported
adamc@1132 9298 always_export_symbols=no
adamc@1132 9299 enable_shared_with_static_runtimes=yes
adam@1459 9300 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'
adam@1459 9301 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
adamc@1132 9302
adamc@1132 9303 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
adamc@1132 9304 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
adamc@1132 9305 # If the export-symbols file already is a .def file (1st line
adamc@1132 9306 # is EXPORTS), use it as is; otherwise, prepend...
adamc@1132 9307 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
adamc@1132 9308 cp $export_symbols $output_objdir/$soname.def;
adamc@1132 9309 else
adamc@1132 9310 echo EXPORTS > $output_objdir/$soname.def;
adamc@1132 9311 cat $export_symbols >> $output_objdir/$soname.def;
adamc@1132 9312 fi~
adamc@1132 9313 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
adamc@1132 9314 else
adamc@1132 9315 ld_shlibs=no
adamc@1132 9316 fi
adamc@1132 9317 ;;
adamc@1132 9318
adam@1459 9319 haiku*)
adam@1459 9320 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
adam@1459 9321 link_all_deplibs=yes
adam@1459 9322 ;;
adam@1459 9323
adamc@1132 9324 interix[3-9]*)
adamc@1132 9325 hardcode_direct=no
adamc@1132 9326 hardcode_shlibpath_var=no
adamc@1132 9327 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
adamc@1132 9328 export_dynamic_flag_spec='${wl}-E'
adamc@1132 9329 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
adamc@1132 9330 # Instead, shared libraries are loaded at an image base (0x10000000 by
adamc@1132 9331 # default) and relocated if they conflict, which is a slow very memory
adamc@1132 9332 # consuming and fragmenting process. To avoid this, we pick a random,
adamc@1132 9333 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
adamc@1132 9334 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
adamc@1132 9335 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
adamc@1132 9336 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'
adamc@1132 9337 ;;
adamc@1132 9338
adamc@1132 9339 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
adamc@1132 9340 tmp_diet=no
adamc@1132 9341 if test "$host_os" = linux-dietlibc; then
adamc@1132 9342 case $cc_basename in
adamc@1132 9343 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
adamc@1132 9344 esac
adamc@1132 9345 fi
adamc@1132 9346 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
adamc@1132 9347 && test "$tmp_diet" = no
adamc@1132 9348 then
adam@1459 9349 tmp_addflag=' $pic_flag'
adamc@1132 9350 tmp_sharedflag='-shared'
adamc@1132 9351 case $cc_basename,$host_cpu in
adamc@1132 9352 pgcc*) # Portland Group C compiler
adam@1459 9353 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'
adamc@1132 9354 tmp_addflag=' $pic_flag'
adamc@1132 9355 ;;
adam@1459 9356 pgf77* | pgf90* | pgf95* | pgfortran*)
adam@1459 9357 # Portland Group f77 and f90 compilers
adam@1459 9358 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'
adamc@1132 9359 tmp_addflag=' $pic_flag -Mnomain' ;;
adamc@1132 9360 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
adamc@1132 9361 tmp_addflag=' -i_dynamic' ;;
adamc@1132 9362 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
adamc@1132 9363 tmp_addflag=' -i_dynamic -nofor_main' ;;
adamc@1132 9364 ifc* | ifort*) # Intel Fortran compiler
adamc@1132 9365 tmp_addflag=' -nofor_main' ;;
adamc@1132 9366 lf95*) # Lahey Fortran 8.1
adamc@1132 9367 whole_archive_flag_spec=
adamc@1132 9368 tmp_sharedflag='--shared' ;;
adam@1459 9369 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
adamc@1132 9370 tmp_sharedflag='-qmkshrobj'
adamc@1132 9371 tmp_addflag= ;;
adam@1459 9372 nvcc*) # Cuda Compiler Driver 2.2
adam@1459 9373 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'
adam@1459 9374 compiler_needs_object=yes
adam@1459 9375 ;;
adamc@1132 9376 esac
adamc@1132 9377 case `$CC -V 2>&1 | sed 5q` in
adamc@1132 9378 *Sun\ C*) # Sun C 5.9
adam@1459 9379 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'
adamc@1132 9380 compiler_needs_object=yes
adamc@1132 9381 tmp_sharedflag='-G' ;;
adamc@1132 9382 *Sun\ F*) # Sun Fortran 8.3
adamc@1132 9383 tmp_sharedflag='-G' ;;
adamc@1132 9384 esac
adamc@1132 9385 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
adamc@1132 9386
adamc@1132 9387 if test "x$supports_anon_versioning" = xyes; then
adamc@1132 9388 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
adamc@1132 9389 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
adamc@1132 9390 echo "local: *; };" >> $output_objdir/$libname.ver~
adamc@1132 9391 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
adamc@1132 9392 fi
adamc@1132 9393
adamc@1132 9394 case $cc_basename in
adam@1459 9395 xlf* | bgf* | bgxlf* | mpixlf*)
adamc@1132 9396 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
adamc@1132 9397 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
adam@1599 9398 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
adam@1459 9399 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
adamc@1132 9400 if test "x$supports_anon_versioning" = xyes; then
adamc@1132 9401 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
adamc@1132 9402 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
adamc@1132 9403 echo "local: *; };" >> $output_objdir/$libname.ver~
adam@1459 9404 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
adamc@1132 9405 fi
adamc@1132 9406 ;;
adamc@1132 9407 esac
adamc@1132 9408 else
adamc@1132 9409 ld_shlibs=no
adamc@1132 9410 fi
adamc@1132 9411 ;;
adamc@1132 9412
adamc@1132 9413 netbsd* | netbsdelf*-gnu)
adamc@1132 9414 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
adamc@1132 9415 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
adamc@1132 9416 wlarc=
adamc@1132 9417 else
adam@1459 9418 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
adam@1459 9419 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
adamc@1132 9420 fi
adamc@1132 9421 ;;
adamc@1132 9422
adamc@1132 9423 solaris*)
adamc@1132 9424 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
adamc@1132 9425 ld_shlibs=no
adamc@1132 9426 cat <<_LT_EOF 1>&2
adamc@1132 9427
adamc@1132 9428 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
adamc@1132 9429 *** create shared libraries on Solaris systems. Therefore, libtool
adamc@1132 9430 *** is disabling shared libraries support. We urge you to upgrade GNU
adamc@1132 9431 *** binutils to release 2.9.1 or newer. Another option is to modify
adamc@1132 9432 *** your PATH or compiler configuration so that the native linker is
adamc@1132 9433 *** used, and then restart.
adamc@1132 9434
adamc@1132 9435 _LT_EOF
adamc@1132 9436 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
adam@1459 9437 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
adam@1459 9438 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
adamc@1132 9439 else
adamc@1132 9440 ld_shlibs=no
adamc@1132 9441 fi
adamc@1132 9442 ;;
adamc@1132 9443
adamc@1132 9444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
adamc@1132 9445 case `$LD -v 2>&1` in
adamc@1132 9446 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
adamc@1132 9447 ld_shlibs=no
adamc@1132 9448 cat <<_LT_EOF 1>&2
adamc@1132 9449
adamc@1132 9450 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
adamc@1132 9451 *** reliably create shared libraries on SCO systems. Therefore, libtool
adamc@1132 9452 *** is disabling shared libraries support. We urge you to upgrade GNU
adamc@1132 9453 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
adamc@1132 9454 *** your PATH or compiler configuration so that the native linker is
adamc@1132 9455 *** used, and then restart.
adamc@1132 9456
adamc@1132 9457 _LT_EOF
adamc@1132 9458 ;;
adamc@1132 9459 *)
adamc@1132 9460 # For security reasons, it is highly recommended that you always
adamc@1132 9461 # use absolute paths for naming shared libraries, and exclude the
adamc@1132 9462 # DT_RUNPATH tag from executables and libraries. But doing so
adamc@1132 9463 # requires that you compile everything twice, which is a pain.
adamc@1132 9464 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
adamc@1132 9465 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
adamc@1132 9466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
adamc@1132 9467 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
adamc@1132 9468 else
adamc@1132 9469 ld_shlibs=no
adamc@1132 9470 fi
adamc@1132 9471 ;;
adamc@1132 9472 esac
adamc@1132 9473 ;;
adamc@1132 9474
adamc@1132 9475 sunos4*)
adamc@1132 9476 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 9477 wlarc=
adamc@1132 9478 hardcode_direct=yes
adamc@1132 9479 hardcode_shlibpath_var=no
adamc@1132 9480 ;;
adamc@1132 9481
adamc@1132 9482 *)
adamc@1132 9483 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
adam@1459 9484 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
adam@1459 9485 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
adamc@1132 9486 else
adamc@1132 9487 ld_shlibs=no
adamc@1132 9488 fi
adamc@1132 9489 ;;
adamc@1132 9490 esac
adamc@1132 9491
adamc@1132 9492 if test "$ld_shlibs" = no; then
adamc@1132 9493 runpath_var=
adamc@1132 9494 hardcode_libdir_flag_spec=
adamc@1132 9495 export_dynamic_flag_spec=
adamc@1132 9496 whole_archive_flag_spec=
adamc@1132 9497 fi
adamc@1132 9498 else
adamc@1132 9499 # PORTME fill in a description of your system's linker (not GNU ld)
adamc@1132 9500 case $host_os in
adamc@1132 9501 aix3*)
adamc@1132 9502 allow_undefined_flag=unsupported
adamc@1132 9503 always_export_symbols=yes
adamc@1132 9504 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'
adamc@1132 9505 # Note: this linker hardcodes the directories in LIBPATH if there
adamc@1132 9506 # are no directories specified by -L.
adamc@1132 9507 hardcode_minus_L=yes
adamc@1132 9508 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
adamc@1132 9509 # Neither direct hardcoding nor static linking is supported with a
adamc@1132 9510 # broken collect2.
adamc@1132 9511 hardcode_direct=unsupported
adamc@1132 9512 fi
adamc@1132 9513 ;;
adamc@1132 9514
adamc@1132 9515 aix[4-9]*)
adamc@1132 9516 if test "$host_cpu" = ia64; then
adamc@1132 9517 # On IA64, the linker does run time linking by default, so we don't
adamc@1132 9518 # have to do anything special.
adamc@1132 9519 aix_use_runtimelinking=no
adamc@1132 9520 exp_sym_flag='-Bexport'
adamc@1132 9521 no_entry_flag=""
adamc@1132 9522 else
adamc@1132 9523 # If we're using GNU nm, then we don't want the "-C" option.
adamc@1132 9524 # -C means demangle to AIX nm, but means don't demangle with GNU nm
adam@1459 9525 # Also, AIX nm treats weak defined symbols like other global
adam@1459 9526 # defined symbols, whereas GNU nm marks them as "W".
adamc@1132 9527 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
adam@1459 9528 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'
adamc@1132 9529 else
adamc@1132 9530 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'
adamc@1132 9531 fi
adamc@1132 9532 aix_use_runtimelinking=no
adamc@1132 9533
adamc@1132 9534 # Test if we are trying to use run time linking or normal
adamc@1132 9535 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
adamc@1132 9536 # need to do runtime linking.
adamc@1132 9537 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
adamc@1132 9538 for ld_flag in $LDFLAGS; do
adamc@1132 9539 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
adamc@1132 9540 aix_use_runtimelinking=yes
adamc@1132 9541 break
adamc@1132 9542 fi
adamc@1132 9543 done
adamc@1132 9544 ;;
adamc@1132 9545 esac
adamc@1132 9546
adamc@1132 9547 exp_sym_flag='-bexport'
adamc@1132 9548 no_entry_flag='-bnoentry'
adamc@1132 9549 fi
adamc@1132 9550
adamc@1132 9551 # When large executables or shared objects are built, AIX ld can
adamc@1132 9552 # have problems creating the table of contents. If linking a library
adamc@1132 9553 # or program results in "error TOC overflow" add -mminimal-toc to
adamc@1132 9554 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
adamc@1132 9555 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
adamc@1132 9556
adamc@1132 9557 archive_cmds=''
adamc@1132 9558 hardcode_direct=yes
adamc@1132 9559 hardcode_direct_absolute=yes
adamc@1132 9560 hardcode_libdir_separator=':'
adamc@1132 9561 link_all_deplibs=yes
adamc@1132 9562 file_list_spec='${wl}-f,'
adamc@1132 9563
adamc@1132 9564 if test "$GCC" = yes; then
adamc@1132 9565 case $host_os in aix4.[012]|aix4.[012].*)
adamc@1132 9566 # We only want to do this on AIX 4.2 and lower, the check
adamc@1132 9567 # below for broken collect2 doesn't work under 4.3+
adamc@1132 9568 collect2name=`${CC} -print-prog-name=collect2`
adamc@1132 9569 if test -f "$collect2name" &&
adamc@1132 9570 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
adamc@1132 9571 then
adamc@1132 9572 # We have reworked collect2
adamc@1132 9573 :
adamc@1132 9574 else
adamc@1132 9575 # We have old collect2
adamc@1132 9576 hardcode_direct=unsupported
adamc@1132 9577 # It fails to find uninstalled libraries when the uninstalled
adamc@1132 9578 # path is not listed in the libpath. Setting hardcode_minus_L
adamc@1132 9579 # to unsupported forces relinking
adamc@1132 9580 hardcode_minus_L=yes
adamc@1132 9581 hardcode_libdir_flag_spec='-L$libdir'
adamc@1132 9582 hardcode_libdir_separator=
adamc@1132 9583 fi
adamc@1132 9584 ;;
adamc@1132 9585 esac
adamc@1132 9586 shared_flag='-shared'
adamc@1132 9587 if test "$aix_use_runtimelinking" = yes; then
adamc@1132 9588 shared_flag="$shared_flag "'${wl}-G'
adamc@1132 9589 fi
adamc@1132 9590 link_all_deplibs=no
adamc@1132 9591 else
adamc@1132 9592 # not using gcc
adamc@1132 9593 if test "$host_cpu" = ia64; then
adamc@1132 9594 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
adamc@1132 9595 # chokes on -Wl,-G. The following line is correct:
adamc@1132 9596 shared_flag='-G'
adamc@1132 9597 else
adamc@1132 9598 if test "$aix_use_runtimelinking" = yes; then
adamc@1132 9599 shared_flag='${wl}-G'
adamc@1132 9600 else
adamc@1132 9601 shared_flag='${wl}-bM:SRE'
adamc@1132 9602 fi
adamc@1132 9603 fi
adamc@1132 9604 fi
adamc@1132 9605
adamc@1132 9606 export_dynamic_flag_spec='${wl}-bexpall'
adamc@1132 9607 # It seems that -bexpall does not export symbols beginning with
adamc@1132 9608 # underscore (_), so it is better to generate a list of symbols to export.
adamc@1132 9609 always_export_symbols=yes
adamc@1132 9610 if test "$aix_use_runtimelinking" = yes; then
adamc@1132 9611 # Warning - without using the other runtime loading flags (-brtl),
adamc@1132 9612 # -berok will link without error, but may produce a broken library.
adamc@1132 9613 allow_undefined_flag='-berok'
adamc@1132 9614 # Determine the default libpath from the value encoded in an
adamc@1132 9615 # empty executable.
adam@1459 9616 if test "${lt_cv_aix_libpath+set}" = set; then
adam@1459 9617 aix_libpath=$lt_cv_aix_libpath
adam@1459 9618 else
adam@1599 9619 if ${lt_cv_aix_libpath_+:} false; then :
adam@1459 9620 $as_echo_n "(cached) " >&6
adam@1459 9621 else
adam@1459 9622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 9623 /* end confdefs.h. */
adamc@1132 9624
adamc@1132 9625 int
adamc@1132 9626 main ()
adamc@1132 9627 {
adamc@1132 9628
adamc@1132 9629 ;
adamc@1132 9630 return 0;
adamc@1132 9631 }
adamc@1132 9632 _ACEOF
adamc@1132 9633 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 9634
adam@1459 9635 lt_aix_libpath_sed='
adam@1459 9636 /Import File Strings/,/^$/ {
adam@1459 9637 /^0/ {
adam@1459 9638 s/^0 *\([^ ]*\) *$/\1/
adam@1459 9639 p
adam@1459 9640 }
adam@1459 9641 }'
adam@1459 9642 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
adam@1459 9643 # Check for a 64-bit object if we didn't find anything.
adam@1459 9644 if test -z "$lt_cv_aix_libpath_"; then
adam@1459 9645 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
adam@1459 9646 fi
adamc@1132 9647 fi
adamc@1132 9648 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 9649 conftest$ac_exeext conftest.$ac_ext
adam@1459 9650 if test -z "$lt_cv_aix_libpath_"; then
adam@1459 9651 lt_cv_aix_libpath_="/usr/lib:/lib"
adam@1459 9652 fi
adam@1459 9653
adam@1459 9654 fi
adam@1459 9655
adam@1459 9656 aix_libpath=$lt_cv_aix_libpath_
adam@1459 9657 fi
adamc@1132 9658
adamc@1132 9659 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
adam@1459 9660 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"
adamc@1132 9661 else
adamc@1132 9662 if test "$host_cpu" = ia64; then
adamc@1132 9663 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
adamc@1132 9664 allow_undefined_flag="-z nodefs"
adamc@1132 9665 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"
adamc@1132 9666 else
adamc@1132 9667 # Determine the default libpath from the value encoded in an
adamc@1132 9668 # empty executable.
adam@1459 9669 if test "${lt_cv_aix_libpath+set}" = set; then
adam@1459 9670 aix_libpath=$lt_cv_aix_libpath
adam@1459 9671 else
adam@1599 9672 if ${lt_cv_aix_libpath_+:} false; then :
adam@1459 9673 $as_echo_n "(cached) " >&6
adam@1459 9674 else
adam@1459 9675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 9676 /* end confdefs.h. */
adamc@1132 9677
adamc@1132 9678 int
adamc@1132 9679 main ()
adamc@1132 9680 {
adamc@1132 9681
adamc@1132 9682 ;
adamc@1132 9683 return 0;
adamc@1132 9684 }
adamc@1132 9685 _ACEOF
adamc@1132 9686 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 9687
adam@1459 9688 lt_aix_libpath_sed='
adam@1459 9689 /Import File Strings/,/^$/ {
adam@1459 9690 /^0/ {
adam@1459 9691 s/^0 *\([^ ]*\) *$/\1/
adam@1459 9692 p
adam@1459 9693 }
adam@1459 9694 }'
adam@1459 9695 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
adam@1459 9696 # Check for a 64-bit object if we didn't find anything.
adam@1459 9697 if test -z "$lt_cv_aix_libpath_"; then
adam@1459 9698 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
adam@1459 9699 fi
adamc@1132 9700 fi
adamc@1132 9701 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 9702 conftest$ac_exeext conftest.$ac_ext
adam@1459 9703 if test -z "$lt_cv_aix_libpath_"; then
adam@1459 9704 lt_cv_aix_libpath_="/usr/lib:/lib"
adam@1459 9705 fi
adam@1459 9706
adam@1459 9707 fi
adam@1459 9708
adam@1459 9709 aix_libpath=$lt_cv_aix_libpath_
adam@1459 9710 fi
adamc@1132 9711
adamc@1132 9712 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
adamc@1132 9713 # Warning - without using the other run time loading flags,
adamc@1132 9714 # -berok will link without error, but may produce a broken library.
adamc@1132 9715 no_undefined_flag=' ${wl}-bernotok'
adamc@1132 9716 allow_undefined_flag=' ${wl}-berok'
adam@1459 9717 if test "$with_gnu_ld" = yes; then
adam@1459 9718 # We only use this code for GNU lds that support --whole-archive.
adam@1459 9719 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
adam@1459 9720 else
adam@1459 9721 # Exported symbols can be pulled into shared objects from archives
adam@1459 9722 whole_archive_flag_spec='$convenience'
adam@1459 9723 fi
adamc@1132 9724 archive_cmds_need_lc=yes
adamc@1132 9725 # This is similar to how AIX traditionally builds its shared libraries.
adamc@1132 9726 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'
adamc@1132 9727 fi
adamc@1132 9728 fi
adamc@1132 9729 ;;
adamc@1132 9730
adamc@1132 9731 amigaos*)
adamc@1132 9732 case $host_cpu in
adamc@1132 9733 powerpc)
adamc@1132 9734 # see comment about AmigaOS4 .so support
adamc@1132 9735 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
adamc@1132 9736 archive_expsym_cmds=''
adamc@1132 9737 ;;
adamc@1132 9738 m68k)
adamc@1132 9739 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)'
adamc@1132 9740 hardcode_libdir_flag_spec='-L$libdir'
adamc@1132 9741 hardcode_minus_L=yes
adamc@1132 9742 ;;
adamc@1132 9743 esac
adamc@1132 9744 ;;
adamc@1132 9745
adamc@1132 9746 bsdi[45]*)
adamc@1132 9747 export_dynamic_flag_spec=-rdynamic
adamc@1132 9748 ;;
adamc@1132 9749
adamc@1132 9750 cygwin* | mingw* | pw32* | cegcc*)
adamc@1132 9751 # When not using gcc, we currently assume that we are using
adamc@1132 9752 # Microsoft Visual C++.
adamc@1132 9753 # hardcode_libdir_flag_spec is actually meaningless, as there is
adamc@1132 9754 # no search path for DLLs.
adam@1459 9755 case $cc_basename in
adam@1459 9756 cl*)
adam@1459 9757 # Native MSVC
adam@1459 9758 hardcode_libdir_flag_spec=' '
adam@1459 9759 allow_undefined_flag=unsupported
adam@1459 9760 always_export_symbols=yes
adam@1459 9761 file_list_spec='@'
adam@1459 9762 # Tell ltmain to make .lib files, not .a files.
adam@1459 9763 libext=lib
adam@1459 9764 # Tell ltmain to make .dll files, not .so files.
adam@1459 9765 shrext_cmds=".dll"
adam@1459 9766 # FIXME: Setting linknames here is a bad hack.
adam@1459 9767 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
adam@1459 9768 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
adam@1459 9769 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
adam@1459 9770 else
adam@1459 9771 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
adam@1459 9772 fi~
adam@1459 9773 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
adam@1459 9774 linknames='
adam@1459 9775 # The linker will not automatically build a static lib if we build a DLL.
adam@1459 9776 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
adam@1459 9777 enable_shared_with_static_runtimes=yes
adam@1599 9778 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
adam@1459 9779 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
adam@1459 9780 # Don't use ranlib
adam@1459 9781 old_postinstall_cmds='chmod 644 $oldlib'
adam@1459 9782 postlink_cmds='lt_outputfile="@OUTPUT@"~
adam@1459 9783 lt_tool_outputfile="@TOOL_OUTPUT@"~
adam@1459 9784 case $lt_outputfile in
adam@1459 9785 *.exe|*.EXE) ;;
adam@1459 9786 *)
adam@1459 9787 lt_outputfile="$lt_outputfile.exe"
adam@1459 9788 lt_tool_outputfile="$lt_tool_outputfile.exe"
adam@1459 9789 ;;
adam@1459 9790 esac~
adam@1459 9791 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
adam@1459 9792 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
adam@1459 9793 $RM "$lt_outputfile.manifest";
adam@1459 9794 fi'
adam@1459 9795 ;;
adam@1459 9796 *)
adam@1459 9797 # Assume MSVC wrapper
adam@1459 9798 hardcode_libdir_flag_spec=' '
adam@1459 9799 allow_undefined_flag=unsupported
adam@1459 9800 # Tell ltmain to make .lib files, not .a files.
adam@1459 9801 libext=lib
adam@1459 9802 # Tell ltmain to make .dll files, not .so files.
adam@1459 9803 shrext_cmds=".dll"
adam@1459 9804 # FIXME: Setting linknames here is a bad hack.
adam@1459 9805 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
adam@1459 9806 # The linker will automatically build a .lib file if we build a DLL.
adam@1459 9807 old_archive_from_new_cmds='true'
adam@1459 9808 # FIXME: Should let the user specify the lib program.
adam@1459 9809 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
adam@1459 9810 enable_shared_with_static_runtimes=yes
adam@1459 9811 ;;
adam@1459 9812 esac
adamc@1132 9813 ;;
adamc@1132 9814
adamc@1132 9815 darwin* | rhapsody*)
adamc@1132 9816
adamc@1132 9817
adamc@1132 9818 archive_cmds_need_lc=no
adamc@1132 9819 hardcode_direct=no
adamc@1132 9820 hardcode_automatic=yes
adamc@1132 9821 hardcode_shlibpath_var=unsupported
adam@1459 9822 if test "$lt_cv_ld_force_load" = "yes"; then
adam@1459 9823 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\"`'
adam@1599 9824
adam@1459 9825 else
adam@1459 9826 whole_archive_flag_spec=''
adam@1459 9827 fi
adamc@1132 9828 link_all_deplibs=yes
adamc@1132 9829 allow_undefined_flag="$_lt_dar_allow_undefined"
adamc@1132 9830 case $cc_basename in
adamc@1132 9831 ifort*) _lt_dar_can_shared=yes ;;
adamc@1132 9832 *) _lt_dar_can_shared=$GCC ;;
adamc@1132 9833 esac
adamc@1132 9834 if test "$_lt_dar_can_shared" = "yes"; then
adam@1459 9835 output_verbose_link_cmd=func_echo_all
adamc@1132 9836 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
adamc@1132 9837 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
adamc@1132 9838 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}"
adamc@1132 9839 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}"
adamc@1132 9840
adamc@1132 9841 else
adamc@1132 9842 ld_shlibs=no
adamc@1132 9843 fi
adamc@1132 9844
adamc@1132 9845 ;;
adamc@1132 9846
adamc@1132 9847 dgux*)
adamc@1132 9848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 9849 hardcode_libdir_flag_spec='-L$libdir'
adamc@1132 9850 hardcode_shlibpath_var=no
adamc@1132 9851 ;;
adamc@1132 9852
adamc@1132 9853 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
adamc@1132 9854 # support. Future versions do this automatically, but an explicit c++rt0.o
adamc@1132 9855 # does not break anything, and helps significantly (at the cost of a little
adamc@1132 9856 # extra space).
adamc@1132 9857 freebsd2.2*)
adamc@1132 9858 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
adamc@1132 9859 hardcode_libdir_flag_spec='-R$libdir'
adamc@1132 9860 hardcode_direct=yes
adamc@1132 9861 hardcode_shlibpath_var=no
adamc@1132 9862 ;;
adamc@1132 9863
adamc@1132 9864 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
adam@1599 9865 freebsd2.*)
adamc@1132 9866 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 9867 hardcode_direct=yes
adamc@1132 9868 hardcode_minus_L=yes
adamc@1132 9869 hardcode_shlibpath_var=no
adamc@1132 9870 ;;
adamc@1132 9871
adamc@1132 9872 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
adamc@1132 9873 freebsd* | dragonfly*)
adam@1459 9874 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 9875 hardcode_libdir_flag_spec='-R$libdir'
adamc@1132 9876 hardcode_direct=yes
adamc@1132 9877 hardcode_shlibpath_var=no
adamc@1132 9878 ;;
adamc@1132 9879
adamc@1132 9880 hpux9*)
adamc@1132 9881 if test "$GCC" = yes; then
adam@1459 9882 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'
adamc@1132 9883 else
adamc@1132 9884 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'
adamc@1132 9885 fi
adamc@1132 9886 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
adamc@1132 9887 hardcode_libdir_separator=:
adamc@1132 9888 hardcode_direct=yes
adamc@1132 9889
adamc@1132 9890 # hardcode_minus_L: Not really in the search PATH,
adamc@1132 9891 # but as the default location of the library.
adamc@1132 9892 hardcode_minus_L=yes
adamc@1132 9893 export_dynamic_flag_spec='${wl}-E'
adamc@1132 9894 ;;
adamc@1132 9895
adamc@1132 9896 hpux10*)
adam@1459 9897 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
adam@1459 9898 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 9899 else
adamc@1132 9900 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 9901 fi
adamc@1132 9902 if test "$with_gnu_ld" = no; then
adamc@1132 9903 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
adamc@1132 9904 hardcode_libdir_separator=:
adamc@1132 9905 hardcode_direct=yes
adamc@1132 9906 hardcode_direct_absolute=yes
adamc@1132 9907 export_dynamic_flag_spec='${wl}-E'
adamc@1132 9908 # hardcode_minus_L: Not really in the search PATH,
adamc@1132 9909 # but as the default location of the library.
adamc@1132 9910 hardcode_minus_L=yes
adamc@1132 9911 fi
adamc@1132 9912 ;;
adamc@1132 9913
adamc@1132 9914 hpux11*)
adam@1459 9915 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
adamc@1132 9916 case $host_cpu in
adamc@1132 9917 hppa*64*)
adamc@1132 9918 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 9919 ;;
adamc@1132 9920 ia64*)
adam@1459 9921 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 9922 ;;
adamc@1132 9923 *)
adam@1459 9924 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 9925 ;;
adamc@1132 9926 esac
adamc@1132 9927 else
adamc@1132 9928 case $host_cpu in
adamc@1132 9929 hppa*64*)
adamc@1132 9930 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 9931 ;;
adamc@1132 9932 ia64*)
adamc@1132 9933 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 9934 ;;
adamc@1132 9935 *)
adam@1459 9936
adam@1459 9937 # Older versions of the 11.00 compiler do not understand -b yet
adam@1459 9938 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
adam@1459 9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
adam@1459 9940 $as_echo_n "checking if $CC understands -b... " >&6; }
adam@1599 9941 if ${lt_cv_prog_compiler__b+:} false; then :
adam@1459 9942 $as_echo_n "(cached) " >&6
adam@1459 9943 else
adam@1459 9944 lt_cv_prog_compiler__b=no
adam@1459 9945 save_LDFLAGS="$LDFLAGS"
adam@1459 9946 LDFLAGS="$LDFLAGS -b"
adam@1459 9947 echo "$lt_simple_link_test_code" > conftest.$ac_ext
adam@1459 9948 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
adam@1459 9949 # The linker can only warn and ignore the option if not recognized
adam@1459 9950 # So say no if there are warnings
adam@1459 9951 if test -s conftest.err; then
adam@1459 9952 # Append any errors to the config.log.
adam@1459 9953 cat conftest.err 1>&5
adam@1459 9954 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
adam@1459 9955 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
adam@1459 9956 if diff conftest.exp conftest.er2 >/dev/null; then
adam@1459 9957 lt_cv_prog_compiler__b=yes
adam@1459 9958 fi
adam@1459 9959 else
adam@1459 9960 lt_cv_prog_compiler__b=yes
adam@1459 9961 fi
adam@1459 9962 fi
adam@1459 9963 $RM -r conftest*
adam@1459 9964 LDFLAGS="$save_LDFLAGS"
adam@1459 9965
adam@1459 9966 fi
adam@1459 9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
adam@1459 9968 $as_echo "$lt_cv_prog_compiler__b" >&6; }
adam@1459 9969
adam@1459 9970 if test x"$lt_cv_prog_compiler__b" = xyes; then
adam@1459 9971 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
adam@1459 9972 else
adam@1459 9973 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
adam@1459 9974 fi
adam@1459 9975
adamc@1132 9976 ;;
adamc@1132 9977 esac
adamc@1132 9978 fi
adamc@1132 9979 if test "$with_gnu_ld" = no; then
adamc@1132 9980 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
adamc@1132 9981 hardcode_libdir_separator=:
adamc@1132 9982
adamc@1132 9983 case $host_cpu in
adamc@1132 9984 hppa*64*|ia64*)
adamc@1132 9985 hardcode_direct=no
adamc@1132 9986 hardcode_shlibpath_var=no
adamc@1132 9987 ;;
adamc@1132 9988 *)
adamc@1132 9989 hardcode_direct=yes
adamc@1132 9990 hardcode_direct_absolute=yes
adamc@1132 9991 export_dynamic_flag_spec='${wl}-E'
adamc@1132 9992
adamc@1132 9993 # hardcode_minus_L: Not really in the search PATH,
adamc@1132 9994 # but as the default location of the library.
adamc@1132 9995 hardcode_minus_L=yes
adamc@1132 9996 ;;
adamc@1132 9997 esac
adamc@1132 9998 fi
adamc@1132 9999 ;;
adamc@1132 10000
adamc@1132 10001 irix5* | irix6* | nonstopux*)
adamc@1132 10002 if test "$GCC" = yes; then
adam@1459 10003 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'
adamc@1132 10004 # Try to use the -exported_symbol ld option, if it does not
adamc@1132 10005 # work, assume that -exports_file does not work either and
adamc@1132 10006 # implicitly export all symbols.
adam@1459 10007 # This should be the same for all languages, so no per-tag cache variable.
adam@1459 10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
adam@1459 10009 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
adam@1599 10010 if ${lt_cv_irix_exported_symbol+:} false; then :
adam@1459 10011 $as_echo_n "(cached) " >&6
adam@1459 10012 else
adam@1459 10013 save_LDFLAGS="$LDFLAGS"
adam@1459 10014 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
adam@1459 10015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 10016 /* end confdefs.h. */
adam@1459 10017 int foo (void) { return 0; }
adamc@1132 10018 _ACEOF
adamc@1132 10019 if ac_fn_c_try_link "$LINENO"; then :
adam@1459 10020 lt_cv_irix_exported_symbol=yes
adam@1459 10021 else
adam@1459 10022 lt_cv_irix_exported_symbol=no
adamc@1132 10023 fi
adamc@1132 10024 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 10025 conftest$ac_exeext conftest.$ac_ext
adam@1459 10026 LDFLAGS="$save_LDFLAGS"
adam@1459 10027 fi
adam@1459 10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
adam@1459 10029 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
adam@1459 10030 if test "$lt_cv_irix_exported_symbol" = yes; then
adam@1459 10031 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'
adam@1459 10032 fi
adamc@1132 10033 else
adam@1459 10034 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'
adam@1459 10035 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'
adamc@1132 10036 fi
adamc@1132 10037 archive_cmds_need_lc='no'
adamc@1132 10038 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
adamc@1132 10039 hardcode_libdir_separator=:
adamc@1132 10040 inherit_rpath=yes
adamc@1132 10041 link_all_deplibs=yes
adamc@1132 10042 ;;
adamc@1132 10043
adamc@1132 10044 netbsd* | netbsdelf*-gnu)
adamc@1132 10045 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
adamc@1132 10046 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
adamc@1132 10047 else
adamc@1132 10048 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
adamc@1132 10049 fi
adamc@1132 10050 hardcode_libdir_flag_spec='-R$libdir'
adamc@1132 10051 hardcode_direct=yes
adamc@1132 10052 hardcode_shlibpath_var=no
adamc@1132 10053 ;;
adamc@1132 10054
adamc@1132 10055 newsos6)
adamc@1132 10056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 10057 hardcode_direct=yes
adamc@1132 10058 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
adamc@1132 10059 hardcode_libdir_separator=:
adamc@1132 10060 hardcode_shlibpath_var=no
adamc@1132 10061 ;;
adamc@1132 10062
adamc@1132 10063 *nto* | *qnx*)
adamc@1132 10064 ;;
adamc@1132 10065
adamc@1132 10066 openbsd*)
adamc@1132 10067 if test -f /usr/libexec/ld.so; then
adamc@1132 10068 hardcode_direct=yes
adamc@1132 10069 hardcode_shlibpath_var=no
adamc@1132 10070 hardcode_direct_absolute=yes
adamc@1132 10071 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
adamc@1132 10072 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 10073 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
adamc@1132 10074 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
adamc@1132 10075 export_dynamic_flag_spec='${wl}-E'
adamc@1132 10076 else
adamc@1132 10077 case $host_os in
adamc@1132 10078 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
adamc@1132 10079 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 10080 hardcode_libdir_flag_spec='-R$libdir'
adamc@1132 10081 ;;
adamc@1132 10082 *)
adamc@1132 10083 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 10084 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
adamc@1132 10085 ;;
adamc@1132 10086 esac
adamc@1132 10087 fi
adamc@1132 10088 else
adamc@1132 10089 ld_shlibs=no
adamc@1132 10090 fi
adamc@1132 10091 ;;
adamc@1132 10092
adamc@1132 10093 os2*)
adamc@1132 10094 hardcode_libdir_flag_spec='-L$libdir'
adamc@1132 10095 hardcode_minus_L=yes
adamc@1132 10096 allow_undefined_flag=unsupported
adam@1459 10097 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'
adamc@1132 10098 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
adamc@1132 10099 ;;
adamc@1132 10100
adamc@1132 10101 osf3*)
adamc@1132 10102 if test "$GCC" = yes; then
adamc@1132 10103 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
adam@1459 10104 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'
adamc@1132 10105 else
adamc@1132 10106 allow_undefined_flag=' -expect_unresolved \*'
adam@1459 10107 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'
adamc@1132 10108 fi
adamc@1132 10109 archive_cmds_need_lc='no'
adamc@1132 10110 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
adamc@1132 10111 hardcode_libdir_separator=:
adamc@1132 10112 ;;
adamc@1132 10113
adamc@1132 10114 osf4* | osf5*) # as osf3* with the addition of -msym flag
adamc@1132 10115 if test "$GCC" = yes; then
adamc@1132 10116 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
adam@1459 10117 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'
adamc@1132 10118 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
adamc@1132 10119 else
adamc@1132 10120 allow_undefined_flag=' -expect_unresolved \*'
adam@1459 10121 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'
adamc@1132 10122 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~
adam@1459 10123 $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'
adamc@1132 10124
adamc@1132 10125 # Both c and cxx compiler support -rpath directly
adamc@1132 10126 hardcode_libdir_flag_spec='-rpath $libdir'
adamc@1132 10127 fi
adamc@1132 10128 archive_cmds_need_lc='no'
adamc@1132 10129 hardcode_libdir_separator=:
adamc@1132 10130 ;;
adamc@1132 10131
adamc@1132 10132 solaris*)
adamc@1132 10133 no_undefined_flag=' -z defs'
adamc@1132 10134 if test "$GCC" = yes; then
adamc@1132 10135 wlarc='${wl}'
adam@1459 10136 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 10137 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
adam@1459 10138 $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'
adamc@1132 10139 else
adamc@1132 10140 case `$CC -V 2>&1` in
adamc@1132 10141 *"Compilers 5.0"*)
adamc@1132 10142 wlarc=''
adamc@1132 10143 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 10144 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
adamc@1132 10145 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
adamc@1132 10146 ;;
adamc@1132 10147 *)
adamc@1132 10148 wlarc='${wl}'
adamc@1132 10149 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 10150 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
adamc@1132 10151 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
adamc@1132 10152 ;;
adamc@1132 10153 esac
adamc@1132 10154 fi
adamc@1132 10155 hardcode_libdir_flag_spec='-R$libdir'
adamc@1132 10156 hardcode_shlibpath_var=no
adamc@1132 10157 case $host_os in
adamc@1132 10158 solaris2.[0-5] | solaris2.[0-5].*) ;;
adamc@1132 10159 *)
adamc@1132 10160 # The compiler driver will combine and reorder linker options,
adamc@1132 10161 # but understands `-z linker_flag'. GCC discards it without `$wl',
adamc@1132 10162 # but is careful enough not to reorder.
adamc@1132 10163 # Supported since Solaris 2.6 (maybe 2.5.1?)
adamc@1132 10164 if test "$GCC" = yes; then
adamc@1132 10165 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
adamc@1132 10166 else
adamc@1132 10167 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
adamc@1132 10168 fi
adamc@1132 10169 ;;
adamc@1132 10170 esac
adamc@1132 10171 link_all_deplibs=yes
adamc@1132 10172 ;;
adamc@1132 10173
adamc@1132 10174 sunos4*)
adamc@1132 10175 if test "x$host_vendor" = xsequent; then
adamc@1132 10176 # Use $CC to link under sequent, because it throws in some extra .o
adamc@1132 10177 # files that make .init and .fini sections work.
adamc@1132 10178 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 10179 else
adamc@1132 10180 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 10181 fi
adamc@1132 10182 hardcode_libdir_flag_spec='-L$libdir'
adamc@1132 10183 hardcode_direct=yes
adamc@1132 10184 hardcode_minus_L=yes
adamc@1132 10185 hardcode_shlibpath_var=no
adamc@1132 10186 ;;
adamc@1132 10187
adamc@1132 10188 sysv4)
adamc@1132 10189 case $host_vendor in
adamc@1132 10190 sni)
adamc@1132 10191 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 10192 hardcode_direct=yes # is this really true???
adamc@1132 10193 ;;
adamc@1132 10194 siemens)
adamc@1132 10195 ## LD is ld it makes a PLAMLIB
adamc@1132 10196 ## CC just makes a GrossModule.
adamc@1132 10197 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 10198 reload_cmds='$CC -r -o $output$reload_objs'
adamc@1132 10199 hardcode_direct=no
adamc@1132 10200 ;;
adamc@1132 10201 motorola)
adamc@1132 10202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 10203 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
adamc@1132 10204 ;;
adamc@1132 10205 esac
adamc@1132 10206 runpath_var='LD_RUN_PATH'
adamc@1132 10207 hardcode_shlibpath_var=no
adamc@1132 10208 ;;
adamc@1132 10209
adamc@1132 10210 sysv4.3*)
adamc@1132 10211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 10212 hardcode_shlibpath_var=no
adamc@1132 10213 export_dynamic_flag_spec='-Bexport'
adamc@1132 10214 ;;
adamc@1132 10215
adamc@1132 10216 sysv4*MP*)
adamc@1132 10217 if test -d /usr/nec; then
adamc@1132 10218 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 10219 hardcode_shlibpath_var=no
adamc@1132 10220 runpath_var=LD_RUN_PATH
adamc@1132 10221 hardcode_runpath_var=yes
adamc@1132 10222 ld_shlibs=yes
adamc@1132 10223 fi
adamc@1132 10224 ;;
adamc@1132 10225
adamc@1132 10226 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
adamc@1132 10227 no_undefined_flag='${wl}-z,text'
adamc@1132 10228 archive_cmds_need_lc=no
adamc@1132 10229 hardcode_shlibpath_var=no
adamc@1132 10230 runpath_var='LD_RUN_PATH'
adamc@1132 10231
adamc@1132 10232 if test "$GCC" = yes; then
adamc@1132 10233 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 10234 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 10235 else
adamc@1132 10236 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 10237 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 10238 fi
adamc@1132 10239 ;;
adamc@1132 10240
adamc@1132 10241 sysv5* | sco3.2v5* | sco5v6*)
adamc@1132 10242 # Note: We can NOT use -z defs as we might desire, because we do not
adamc@1132 10243 # link with -lc, and that would cause any symbols used from libc to
adamc@1132 10244 # always be unresolved, which means just about no library would
adamc@1132 10245 # ever link correctly. If we're not using GNU ld we use -z text
adamc@1132 10246 # though, which does catch some bad symbols but isn't as heavy-handed
adamc@1132 10247 # as -z defs.
adamc@1132 10248 no_undefined_flag='${wl}-z,text'
adamc@1132 10249 allow_undefined_flag='${wl}-z,nodefs'
adamc@1132 10250 archive_cmds_need_lc=no
adamc@1132 10251 hardcode_shlibpath_var=no
adamc@1132 10252 hardcode_libdir_flag_spec='${wl}-R,$libdir'
adamc@1132 10253 hardcode_libdir_separator=':'
adamc@1132 10254 link_all_deplibs=yes
adamc@1132 10255 export_dynamic_flag_spec='${wl}-Bexport'
adamc@1132 10256 runpath_var='LD_RUN_PATH'
adamc@1132 10257
adamc@1132 10258 if test "$GCC" = yes; then
adamc@1132 10259 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 10260 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 10261 else
adamc@1132 10262 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 10263 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 10264 fi
adamc@1132 10265 ;;
adamc@1132 10266
adamc@1132 10267 uts4*)
adamc@1132 10268 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 10269 hardcode_libdir_flag_spec='-L$libdir'
adamc@1132 10270 hardcode_shlibpath_var=no
adamc@1132 10271 ;;
adamc@1132 10272
adamc@1132 10273 *)
adamc@1132 10274 ld_shlibs=no
adamc@1132 10275 ;;
adamc@1132 10276 esac
adamc@1132 10277
adamc@1132 10278 if test x$host_vendor = xsni; then
adamc@1132 10279 case $host in
adamc@1132 10280 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
adamc@1132 10281 export_dynamic_flag_spec='${wl}-Blargedynsym'
adamc@1132 10282 ;;
adamc@1132 10283 esac
adamc@1132 10284 fi
adamc@1132 10285 fi
adamc@1132 10286
adamc@1132 10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
adamc@1132 10288 $as_echo "$ld_shlibs" >&6; }
adamc@1132 10289 test "$ld_shlibs" = no && can_build_shared=no
adamc@1132 10290
adamc@1132 10291 with_gnu_ld=$with_gnu_ld
adamc@1132 10292
adamc@1132 10293
adamc@1132 10294
adamc@1132 10295
adamc@1132 10296
adamc@1132 10297
adamc@1132 10298
adamc@1132 10299
adamc@1132 10300
adamc@1132 10301
adamc@1132 10302
adamc@1132 10303
adamc@1132 10304
adamc@1132 10305
adamc@1132 10306
adamc@1132 10307 #
adamc@1132 10308 # Do we need to explicitly link libc?
adamc@1132 10309 #
adamc@1132 10310 case "x$archive_cmds_need_lc" in
adamc@1132 10311 x|xyes)
adamc@1132 10312 # Assume -lc should be added
adamc@1132 10313 archive_cmds_need_lc=yes
adamc@1132 10314
adamc@1132 10315 if test "$enable_shared" = yes && test "$GCC" = yes; then
adamc@1132 10316 case $archive_cmds in
adamc@1132 10317 *'~'*)
adamc@1132 10318 # FIXME: we may have to deal with multi-command sequences.
adamc@1132 10319 ;;
adamc@1132 10320 '$CC '*)
adamc@1132 10321 # Test whether the compiler implicitly links with -lc since on some
adamc@1132 10322 # systems, -lgcc has to come before -lc. If gcc already passes -lc
adamc@1132 10323 # to ld, don't add -lc before -lgcc.
adamc@1132 10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
adamc@1132 10325 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
adam@1599 10326 if ${lt_cv_archive_cmds_need_lc+:} false; then :
adam@1459 10327 $as_echo_n "(cached) " >&6
adam@1459 10328 else
adam@1459 10329 $RM conftest*
adam@1459 10330 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
adam@1459 10331
adam@1459 10332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
adamc@1132 10333 (eval $ac_compile) 2>&5
adamc@1132 10334 ac_status=$?
adamc@1132 10335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 10336 test $ac_status = 0; } 2>conftest.err; then
adam@1459 10337 soname=conftest
adam@1459 10338 lib=conftest
adam@1459 10339 libobjs=conftest.$ac_objext
adam@1459 10340 deplibs=
adam@1459 10341 wl=$lt_prog_compiler_wl
adam@1459 10342 pic_flag=$lt_prog_compiler_pic
adam@1459 10343 compiler_flags=-v
adam@1459 10344 linker_flags=-v
adam@1459 10345 verstring=
adam@1459 10346 output_objdir=.
adam@1459 10347 libname=conftest
adam@1459 10348 lt_save_allow_undefined_flag=$allow_undefined_flag
adam@1459 10349 allow_undefined_flag=
adam@1459 10350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
adamc@1132 10351 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
adamc@1132 10352 ac_status=$?
adamc@1132 10353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 10354 test $ac_status = 0; }
adam@1459 10355 then
adam@1459 10356 lt_cv_archive_cmds_need_lc=no
adam@1459 10357 else
adam@1459 10358 lt_cv_archive_cmds_need_lc=yes
adam@1459 10359 fi
adam@1459 10360 allow_undefined_flag=$lt_save_allow_undefined_flag
adam@1459 10361 else
adam@1459 10362 cat conftest.err 1>&5
adam@1459 10363 fi
adam@1459 10364 $RM conftest*
adam@1459 10365
adam@1459 10366 fi
adam@1459 10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
adam@1459 10368 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
adam@1459 10369 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
adamc@1132 10370 ;;
adamc@1132 10371 esac
adamc@1132 10372 fi
adamc@1132 10373 ;;
adamc@1132 10374 esac
adamc@1132 10375
adamc@1132 10376
adamc@1132 10377
adamc@1132 10378
adamc@1132 10379
adamc@1132 10380
adamc@1132 10381
adamc@1132 10382
adamc@1132 10383
adamc@1132 10384
adamc@1132 10385
adamc@1132 10386
adamc@1132 10387
adamc@1132 10388
adamc@1132 10389
adamc@1132 10390
adamc@1132 10391
adamc@1132 10392
adamc@1132 10393
adamc@1132 10394
adamc@1132 10395
adamc@1132 10396
adamc@1132 10397
adamc@1132 10398
adamc@1132 10399
adamc@1132 10400
adamc@1132 10401
adamc@1132 10402
adamc@1132 10403
adamc@1132 10404
adamc@1132 10405
adamc@1132 10406
adamc@1132 10407
adamc@1132 10408
adamc@1132 10409
adamc@1132 10410
adamc@1132 10411
adamc@1132 10412
adamc@1132 10413
adamc@1132 10414
adamc@1132 10415
adamc@1132 10416
adamc@1132 10417
adamc@1132 10418
adamc@1132 10419
adamc@1132 10420
adamc@1132 10421
adamc@1132 10422
adamc@1132 10423
adamc@1132 10424
adamc@1132 10425
adamc@1132 10426
adamc@1132 10427
adamc@1132 10428
adamc@1132 10429
adamc@1132 10430
adamc@1132 10431
adamc@1132 10432
adamc@1132 10433
adamc@1132 10434
adamc@1132 10435
adamc@1132 10436
adamc@1132 10437
adamc@1132 10438
adamc@1132 10439
adamc@1132 10440
adamc@1132 10441
adamc@1132 10442
adamc@1132 10443
adamc@1132 10444
adamc@1132 10445
adamc@1132 10446
adamc@1132 10447
adamc@1132 10448
adamc@1132 10449
adamc@1132 10450
adamc@1132 10451
adamc@1132 10452
adamc@1132 10453
adamc@1132 10454
adamc@1132 10455
adamc@1132 10456
adamc@1132 10457
adamc@1132 10458
adamc@1132 10459
adamc@1132 10460
adamc@1132 10461
adamc@1132 10462
adamc@1132 10463
adamc@1132 10464
adamc@1132 10465
adamc@1132 10466
adamc@1132 10467
adamc@1132 10468
adamc@1132 10469
adamc@1132 10470
adamc@1132 10471
adamc@1132 10472
adamc@1132 10473
adamc@1132 10474
adamc@1132 10475
adamc@1132 10476
adamc@1132 10477
adamc@1132 10478
adamc@1132 10479
adamc@1132 10480
adamc@1132 10481
adamc@1132 10482
adamc@1132 10483
adamc@1132 10484
adamc@1132 10485
adamc@1132 10486
adamc@1132 10487
adamc@1132 10488
adamc@1132 10489
adamc@1132 10490
adamc@1132 10491
adamc@1132 10492
adamc@1132 10493
adamc@1132 10494
adamc@1132 10495
adamc@1132 10496
adamc@1132 10497
adamc@1132 10498
adamc@1132 10499
adamc@1132 10500
adamc@1132 10501
adamc@1132 10502
adamc@1132 10503
adamc@1132 10504
adamc@1132 10505
adamc@1132 10506
adamc@1132 10507
adamc@1132 10508
adamc@1132 10509
adamc@1132 10510
adamc@1132 10511
adamc@1132 10512
adamc@1132 10513
adamc@1132 10514
adamc@1132 10515
adamc@1132 10516
adamc@1132 10517
adamc@1132 10518
adamc@1132 10519
adamc@1132 10520
adamc@1132 10521
adamc@1132 10522
adamc@1132 10523
adamc@1132 10524
adamc@1132 10525
adamc@1132 10526
adamc@1132 10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
adamc@1132 10528 $as_echo_n "checking dynamic linker characteristics... " >&6; }
adamc@1132 10529
adamc@1132 10530 if test "$GCC" = yes; then
adamc@1132 10531 case $host_os in
adamc@1132 10532 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
adamc@1132 10533 *) lt_awk_arg="/^libraries:/" ;;
adamc@1132 10534 esac
adam@1459 10535 case $host_os in
adam@1459 10536 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
adam@1459 10537 *) lt_sed_strip_eq="s,=/,/,g" ;;
adam@1459 10538 esac
adam@1459 10539 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
adam@1459 10540 case $lt_search_path_spec in
adam@1459 10541 *\;*)
adamc@1132 10542 # if the path contains ";" then we assume it to be the separator
adamc@1132 10543 # otherwise default to the standard path separator (i.e. ":") - it is
adamc@1132 10544 # assumed that no part of a normal pathname contains ";" but that should
adamc@1132 10545 # okay in the real world where ";" in dirpaths is itself problematic.
adam@1459 10546 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
adam@1459 10547 ;;
adam@1459 10548 *)
adam@1459 10549 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
adam@1459 10550 ;;
adam@1459 10551 esac
adamc@1132 10552 # Ok, now we have the path, separated by spaces, we can step through it
adamc@1132 10553 # and add multilib dir if necessary.
adamc@1132 10554 lt_tmp_lt_search_path_spec=
adamc@1132 10555 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
adamc@1132 10556 for lt_sys_path in $lt_search_path_spec; do
adamc@1132 10557 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
adamc@1132 10558 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
adamc@1132 10559 else
adamc@1132 10560 test -d "$lt_sys_path" && \
adamc@1132 10561 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
adamc@1132 10562 fi
adamc@1132 10563 done
adam@1459 10564 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
adamc@1132 10565 BEGIN {RS=" "; FS="/|\n";} {
adamc@1132 10566 lt_foo="";
adamc@1132 10567 lt_count=0;
adamc@1132 10568 for (lt_i = NF; lt_i > 0; lt_i--) {
adamc@1132 10569 if ($lt_i != "" && $lt_i != ".") {
adamc@1132 10570 if ($lt_i == "..") {
adamc@1132 10571 lt_count++;
adamc@1132 10572 } else {
adamc@1132 10573 if (lt_count == 0) {
adamc@1132 10574 lt_foo="/" $lt_i lt_foo;
adamc@1132 10575 } else {
adamc@1132 10576 lt_count--;
adamc@1132 10577 }
adamc@1132 10578 }
adamc@1132 10579 }
adamc@1132 10580 }
adamc@1132 10581 if (lt_foo != "") { lt_freq[lt_foo]++; }
adamc@1132 10582 if (lt_freq[lt_foo] == 1) { print lt_foo; }
adamc@1132 10583 }'`
adam@1459 10584 # AWK program above erroneously prepends '/' to C:/dos/paths
adam@1459 10585 # for these hosts.
adam@1459 10586 case $host_os in
adam@1459 10587 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
adam@1459 10588 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
adam@1459 10589 esac
adam@1459 10590 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
adamc@1132 10591 else
adamc@1132 10592 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
adamc@1132 10593 fi
adamc@1132 10594 library_names_spec=
adamc@1132 10595 libname_spec='lib$name'
adamc@1132 10596 soname_spec=
adamc@1132 10597 shrext_cmds=".so"
adamc@1132 10598 postinstall_cmds=
adamc@1132 10599 postuninstall_cmds=
adamc@1132 10600 finish_cmds=
adamc@1132 10601 finish_eval=
adamc@1132 10602 shlibpath_var=
adamc@1132 10603 shlibpath_overrides_runpath=unknown
adamc@1132 10604 version_type=none
adamc@1132 10605 dynamic_linker="$host_os ld.so"
adamc@1132 10606 sys_lib_dlsearch_path_spec="/lib /usr/lib"
adamc@1132 10607 need_lib_prefix=unknown
adamc@1132 10608 hardcode_into_libs=no
adamc@1132 10609
adamc@1132 10610 # when you set need_version to no, make sure it does not cause -set_version
adamc@1132 10611 # flags to be left without arguments
adamc@1132 10612 need_version=unknown
adamc@1132 10613
adamc@1132 10614 case $host_os in
adamc@1132 10615 aix3*)
adam@1599 10616 version_type=linux # correct to gnu/linux during the next big refactor
adamc@1132 10617 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
adamc@1132 10618 shlibpath_var=LIBPATH
adamc@1132 10619
adamc@1132 10620 # AIX 3 has no versioning support, so we append a major version to the name.
adamc@1132 10621 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 10622 ;;
adamc@1132 10623
adamc@1132 10624 aix[4-9]*)
adam@1599 10625 version_type=linux # correct to gnu/linux during the next big refactor
adamc@1132 10626 need_lib_prefix=no
adamc@1132 10627 need_version=no
adamc@1132 10628 hardcode_into_libs=yes
adamc@1132 10629 if test "$host_cpu" = ia64; then
adamc@1132 10630 # AIX 5 supports IA64
adamc@1132 10631 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
adamc@1132 10632 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 10633 else
adamc@1132 10634 # With GCC up to 2.95.x, collect2 would create an import file
adamc@1132 10635 # for dependence libraries. The import file would start with
adamc@1132 10636 # the line `#! .'. This would cause the generated library to
adamc@1132 10637 # depend on `.', always an invalid library. This was fixed in
adamc@1132 10638 # development snapshots of GCC prior to 3.0.
adamc@1132 10639 case $host_os in
adamc@1132 10640 aix4 | aix4.[01] | aix4.[01].*)
adamc@1132 10641 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
adamc@1132 10642 echo ' yes '
adamc@1132 10643 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
adamc@1132 10644 :
adamc@1132 10645 else
adamc@1132 10646 can_build_shared=no
adamc@1132 10647 fi
adamc@1132 10648 ;;
adamc@1132 10649 esac
adamc@1132 10650 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
adamc@1132 10651 # soname into executable. Probably we can add versioning support to
adamc@1132 10652 # collect2, so additional links can be useful in future.
adamc@1132 10653 if test "$aix_use_runtimelinking" = yes; then
adamc@1132 10654 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
adamc@1132 10655 # instead of lib<name>.a to let people know that these are not
adamc@1132 10656 # typical AIX shared libraries.
adamc@1132 10657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 10658 else
adamc@1132 10659 # We preserve .a as extension for shared libraries through AIX4.2
adamc@1132 10660 # and later when we are not doing run time linking.
adamc@1132 10661 library_names_spec='${libname}${release}.a $libname.a'
adamc@1132 10662 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 10663 fi
adamc@1132 10664 shlibpath_var=LIBPATH
adamc@1132 10665 fi
adamc@1132 10666 ;;
adamc@1132 10667
adamc@1132 10668 amigaos*)
adamc@1132 10669 case $host_cpu in
adamc@1132 10670 powerpc)
adamc@1132 10671 # Since July 2007 AmigaOS4 officially supports .so libraries.
adamc@1132 10672 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
adamc@1132 10673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 10674 ;;
adamc@1132 10675 m68k)
adamc@1132 10676 library_names_spec='$libname.ixlibrary $libname.a'
adamc@1132 10677 # Create ${libname}_ixlibrary.a entries in /sys/libs.
adam@1459 10678 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'
adamc@1132 10679 ;;
adamc@1132 10680 esac
adamc@1132 10681 ;;
adamc@1132 10682
adamc@1132 10683 beos*)
adamc@1132 10684 library_names_spec='${libname}${shared_ext}'
adamc@1132 10685 dynamic_linker="$host_os ld.so"
adamc@1132 10686 shlibpath_var=LIBRARY_PATH
adamc@1132 10687 ;;
adamc@1132 10688
adamc@1132 10689 bsdi[45]*)
adam@1599 10690 version_type=linux # correct to gnu/linux during the next big refactor
adamc@1132 10691 need_version=no
adamc@1132 10692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 10693 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 10694 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
adamc@1132 10695 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 10696 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
adamc@1132 10697 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
adamc@1132 10698 # the default ld.so.conf also contains /usr/contrib/lib and
adamc@1132 10699 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
adamc@1132 10700 # libtool to hard-code these into programs
adamc@1132 10701 ;;
adamc@1132 10702
adamc@1132 10703 cygwin* | mingw* | pw32* | cegcc*)
adamc@1132 10704 version_type=windows
adamc@1132 10705 shrext_cmds=".dll"
adamc@1132 10706 need_version=no
adamc@1132 10707 need_lib_prefix=no
adamc@1132 10708
adam@1459 10709 case $GCC,$cc_basename in
adam@1459 10710 yes,*)
adam@1459 10711 # gcc
adamc@1132 10712 library_names_spec='$libname.dll.a'
adamc@1132 10713 # DLL is installed to $(libdir)/../bin by postinstall_cmds
adamc@1132 10714 postinstall_cmds='base_file=`basename \${file}`~
adamc@1132 10715 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
adamc@1132 10716 dldir=$destdir/`dirname \$dlpath`~
adamc@1132 10717 test -d \$dldir || mkdir -p \$dldir~
adamc@1132 10718 $install_prog $dir/$dlname \$dldir/$dlname~
adamc@1132 10719 chmod a+x \$dldir/$dlname~
adamc@1132 10720 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
adamc@1132 10721 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
adamc@1132 10722 fi'
adamc@1132 10723 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
adamc@1132 10724 dlpath=$dir/\$dldll~
adamc@1132 10725 $RM \$dlpath'
adamc@1132 10726 shlibpath_overrides_runpath=yes
adamc@1132 10727
adamc@1132 10728 case $host_os in
adamc@1132 10729 cygwin*)
adamc@1132 10730 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
adamc@1132 10731 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
adam@1459 10732
adam@1459 10733 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
adamc@1132 10734 ;;
adamc@1132 10735 mingw* | cegcc*)
adamc@1132 10736 # MinGW DLLs use traditional 'lib' prefix
adamc@1132 10737 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
adamc@1132 10738 ;;
adamc@1132 10739 pw32*)
adamc@1132 10740 # pw32 DLLs use 'pw' prefix rather than 'lib'
adamc@1132 10741 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
adamc@1132 10742 ;;
adamc@1132 10743 esac
adam@1459 10744 dynamic_linker='Win32 ld.exe'
adam@1459 10745 ;;
adam@1459 10746
adam@1459 10747 *,cl*)
adam@1459 10748 # Native MSVC
adam@1459 10749 libname_spec='$name'
adam@1459 10750 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
adam@1459 10751 library_names_spec='${libname}.dll.lib'
adam@1459 10752
adam@1459 10753 case $build_os in
adam@1459 10754 mingw*)
adam@1459 10755 sys_lib_search_path_spec=
adam@1459 10756 lt_save_ifs=$IFS
adam@1459 10757 IFS=';'
adam@1459 10758 for lt_path in $LIB
adam@1459 10759 do
adam@1459 10760 IFS=$lt_save_ifs
adam@1459 10761 # Let DOS variable expansion print the short 8.3 style file name.
adam@1459 10762 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
adam@1459 10763 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
adam@1459 10764 done
adam@1459 10765 IFS=$lt_save_ifs
adam@1459 10766 # Convert to MSYS style.
adam@1459 10767 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
adam@1459 10768 ;;
adam@1459 10769 cygwin*)
adam@1459 10770 # Convert to unix form, then to dos form, then back to unix form
adam@1459 10771 # but this time dos style (no spaces!) so that the unix form looks
adam@1459 10772 # like /cygdrive/c/PROGRA~1:/cygdr...
adam@1459 10773 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
adam@1459 10774 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
adam@1459 10775 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
adam@1459 10776 ;;
adam@1459 10777 *)
adam@1459 10778 sys_lib_search_path_spec="$LIB"
adam@1459 10779 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
adam@1459 10780 # It is most probably a Windows format PATH.
adam@1459 10781 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
adam@1459 10782 else
adam@1459 10783 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
adam@1459 10784 fi
adam@1459 10785 # FIXME: find the short name or the path components, as spaces are
adam@1459 10786 # common. (e.g. "Program Files" -> "PROGRA~1")
adam@1459 10787 ;;
adam@1459 10788 esac
adam@1459 10789
adam@1459 10790 # DLL is installed to $(libdir)/../bin by postinstall_cmds
adam@1459 10791 postinstall_cmds='base_file=`basename \${file}`~
adam@1459 10792 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
adam@1459 10793 dldir=$destdir/`dirname \$dlpath`~
adam@1459 10794 test -d \$dldir || mkdir -p \$dldir~
adam@1459 10795 $install_prog $dir/$dlname \$dldir/$dlname'
adam@1459 10796 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
adam@1459 10797 dlpath=$dir/\$dldll~
adam@1459 10798 $RM \$dlpath'
adam@1459 10799 shlibpath_overrides_runpath=yes
adam@1459 10800 dynamic_linker='Win32 link.exe'
adamc@1132 10801 ;;
adamc@1132 10802
adamc@1132 10803 *)
adam@1459 10804 # Assume MSVC wrapper
adamc@1132 10805 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
adam@1459 10806 dynamic_linker='Win32 ld.exe'
adamc@1132 10807 ;;
adamc@1132 10808 esac
adamc@1132 10809 # FIXME: first we should search . and the directory the executable is in
adamc@1132 10810 shlibpath_var=PATH
adamc@1132 10811 ;;
adamc@1132 10812
adamc@1132 10813 darwin* | rhapsody*)
adamc@1132 10814 dynamic_linker="$host_os dyld"
adamc@1132 10815 version_type=darwin
adamc@1132 10816 need_lib_prefix=no
adamc@1132 10817 need_version=no
adamc@1132 10818 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
adamc@1132 10819 soname_spec='${libname}${release}${major}$shared_ext'
adamc@1132 10820 shlibpath_overrides_runpath=yes
adamc@1132 10821 shlibpath_var=DYLD_LIBRARY_PATH
adamc@1132 10822 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
adamc@1132 10823
adamc@1132 10824 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
adamc@1132 10825 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
adamc@1132 10826 ;;
adamc@1132 10827
adamc@1132 10828 dgux*)
adam@1599 10829 version_type=linux # correct to gnu/linux during the next big refactor
adamc@1132 10830 need_lib_prefix=no
adamc@1132 10831 need_version=no
adamc@1132 10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
adamc@1132 10833 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 10834 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 10835 ;;
adamc@1132 10836
adamc@1132 10837 freebsd* | dragonfly*)
adamc@1132 10838 # DragonFly does not have aout. When/if they implement a new
adamc@1132 10839 # versioning mechanism, adjust this.
adamc@1132 10840 if test -x /usr/bin/objformat; then
adamc@1132 10841 objformat=`/usr/bin/objformat`
adamc@1132 10842 else
adamc@1132 10843 case $host_os in
adam@1599 10844 freebsd[23].*) objformat=aout ;;
adamc@1132 10845 *) objformat=elf ;;
adamc@1132 10846 esac
adamc@1132 10847 fi
adamc@1132 10848 version_type=freebsd-$objformat
adamc@1132 10849 case $version_type in
adamc@1132 10850 freebsd-elf*)
adamc@1132 10851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
adamc@1132 10852 need_version=no
adamc@1132 10853 need_lib_prefix=no
adamc@1132 10854 ;;
adamc@1132 10855 freebsd-*)
adamc@1132 10856 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
adamc@1132 10857 need_version=yes
adamc@1132 10858 ;;
adamc@1132 10859 esac
adamc@1132 10860 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 10861 case $host_os in
adam@1599 10862 freebsd2.*)
adamc@1132 10863 shlibpath_overrides_runpath=yes
adamc@1132 10864 ;;
adamc@1132 10865 freebsd3.[01]* | freebsdelf3.[01]*)
adamc@1132 10866 shlibpath_overrides_runpath=yes
adamc@1132 10867 hardcode_into_libs=yes
adamc@1132 10868 ;;
adamc@1132 10869 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
adamc@1132 10870 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
adamc@1132 10871 shlibpath_overrides_runpath=no
adamc@1132 10872 hardcode_into_libs=yes
adamc@1132 10873 ;;
adamc@1132 10874 *) # from 4.6 on, and DragonFly
adamc@1132 10875 shlibpath_overrides_runpath=yes
adamc@1132 10876 hardcode_into_libs=yes
adamc@1132 10877 ;;
adamc@1132 10878 esac
adamc@1132 10879 ;;
adamc@1132 10880
adamc@1132 10881 gnu*)
adam@1599 10882 version_type=linux # correct to gnu/linux during the next big refactor
adamc@1132 10883 need_lib_prefix=no
adamc@1132 10884 need_version=no
adamc@1132 10885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
adamc@1132 10886 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 10887 shlibpath_var=LD_LIBRARY_PATH
adam@1459 10888 shlibpath_overrides_runpath=no
adam@1459 10889 hardcode_into_libs=yes
adam@1459 10890 ;;
adam@1459 10891
adam@1459 10892 haiku*)
adam@1599 10893 version_type=linux # correct to gnu/linux during the next big refactor
adam@1459 10894 need_lib_prefix=no
adam@1459 10895 need_version=no
adam@1459 10896 dynamic_linker="$host_os runtime_loader"
adam@1459 10897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
adam@1459 10898 soname_spec='${libname}${release}${shared_ext}$major'
adam@1459 10899 shlibpath_var=LIBRARY_PATH
adam@1459 10900 shlibpath_overrides_runpath=yes
adam@1459 10901 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
adamc@1132 10902 hardcode_into_libs=yes
adamc@1132 10903 ;;
adamc@1132 10904
adamc@1132 10905 hpux9* | hpux10* | hpux11*)
adamc@1132 10906 # Give a soname corresponding to the major version so that dld.sl refuses to
adamc@1132 10907 # link against other versions.
adamc@1132 10908 version_type=sunos
adamc@1132 10909 need_lib_prefix=no
adamc@1132 10910 need_version=no
adamc@1132 10911 case $host_cpu in
adamc@1132 10912 ia64*)
adamc@1132 10913 shrext_cmds='.so'
adamc@1132 10914 hardcode_into_libs=yes
adamc@1132 10915 dynamic_linker="$host_os dld.so"
adamc@1132 10916 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 10917 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
adamc@1132 10918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 10919 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 10920 if test "X$HPUX_IA64_MODE" = X32; then
adamc@1132 10921 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
adamc@1132 10922 else
adamc@1132 10923 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
adamc@1132 10924 fi
adamc@1132 10925 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
adamc@1132 10926 ;;
adamc@1132 10927 hppa*64*)
adamc@1132 10928 shrext_cmds='.sl'
adamc@1132 10929 hardcode_into_libs=yes
adamc@1132 10930 dynamic_linker="$host_os dld.sl"
adamc@1132 10931 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
adamc@1132 10932 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
adamc@1132 10933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 10934 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 10935 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
adamc@1132 10936 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
adamc@1132 10937 ;;
adamc@1132 10938 *)
adamc@1132 10939 shrext_cmds='.sl'
adamc@1132 10940 dynamic_linker="$host_os dld.sl"
adamc@1132 10941 shlibpath_var=SHLIB_PATH
adamc@1132 10942 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
adamc@1132 10943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 10944 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 10945 ;;
adamc@1132 10946 esac
adam@1459 10947 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
adamc@1132 10948 postinstall_cmds='chmod 555 $lib'
adam@1459 10949 # or fails outright, so override atomically:
adam@1459 10950 install_override_mode=555
adamc@1132 10951 ;;
adamc@1132 10952
adamc@1132 10953 interix[3-9]*)
adam@1599 10954 version_type=linux # correct to gnu/linux during the next big refactor
adamc@1132 10955 need_lib_prefix=no
adamc@1132 10956 need_version=no
adamc@1132 10957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
adamc@1132 10958 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 10959 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
adamc@1132 10960 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 10961 shlibpath_overrides_runpath=no
adamc@1132 10962 hardcode_into_libs=yes
adamc@1132 10963 ;;
adamc@1132 10964
adamc@1132 10965 irix5* | irix6* | nonstopux*)
adamc@1132 10966 case $host_os in
adamc@1132 10967 nonstopux*) version_type=nonstopux ;;
adamc@1132 10968 *)
adamc@1132 10969 if test "$lt_cv_prog_gnu_ld" = yes; then
adam@1599 10970 version_type=linux # correct to gnu/linux during the next big refactor
adamc@1132 10971 else
adamc@1132 10972 version_type=irix
adamc@1132 10973 fi ;;
adamc@1132 10974 esac
adamc@1132 10975 need_lib_prefix=no
adamc@1132 10976 need_version=no
adamc@1132 10977 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 10978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
adamc@1132 10979 case $host_os in
adamc@1132 10980 irix5* | nonstopux*)
adamc@1132 10981 libsuff= shlibsuff=
adamc@1132 10982 ;;
adamc@1132 10983 *)
adamc@1132 10984 case $LD in # libtool.m4 will add one of these switches to LD
adamc@1132 10985 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
adamc@1132 10986 libsuff= shlibsuff= libmagic=32-bit;;
adamc@1132 10987 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
adamc@1132 10988 libsuff=32 shlibsuff=N32 libmagic=N32;;
adamc@1132 10989 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
adamc@1132 10990 libsuff=64 shlibsuff=64 libmagic=64-bit;;
adamc@1132 10991 *) libsuff= shlibsuff= libmagic=never-match;;
adamc@1132 10992 esac
adamc@1132 10993 ;;
adamc@1132 10994 esac
adamc@1132 10995 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
adamc@1132 10996 shlibpath_overrides_runpath=no
adamc@1132 10997 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
adamc@1132 10998 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
adamc@1132 10999 hardcode_into_libs=yes
adamc@1132 11000 ;;
adamc@1132 11001
adamc@1132 11002 # No shared lib support for Linux oldld, aout, or coff.
adamc@1132 11003 linux*oldld* | linux*aout* | linux*coff*)
adamc@1132 11004 dynamic_linker=no
adamc@1132 11005 ;;
adamc@1132 11006
adam@1599 11007 # This must be glibc/ELF.
adamc@1132 11008 linux* | k*bsd*-gnu | kopensolaris*-gnu)
adam@1599 11009 version_type=linux # correct to gnu/linux during the next big refactor
adamc@1132 11010 need_lib_prefix=no
adamc@1132 11011 need_version=no
adamc@1132 11012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 11013 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 11014 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
adamc@1132 11015 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 11016 shlibpath_overrides_runpath=no
adam@1459 11017
adamc@1132 11018 # Some binutils ld are patched to set DT_RUNPATH
adam@1599 11019 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
adam@1459 11020 $as_echo_n "(cached) " >&6
adam@1459 11021 else
adam@1459 11022 lt_cv_shlibpath_overrides_runpath=no
adam@1459 11023 save_LDFLAGS=$LDFLAGS
adam@1459 11024 save_libdir=$libdir
adam@1459 11025 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
adam@1459 11026 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
adam@1459 11027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 11028 /* end confdefs.h. */
adamc@1132 11029
adamc@1132 11030 int
adamc@1132 11031 main ()
adamc@1132 11032 {
adamc@1132 11033
adamc@1132 11034 ;
adamc@1132 11035 return 0;
adamc@1132 11036 }
adamc@1132 11037 _ACEOF
adamc@1132 11038 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 11039 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
adam@1459 11040 lt_cv_shlibpath_overrides_runpath=yes
adamc@1132 11041 fi
adamc@1132 11042 fi
adamc@1132 11043 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 11044 conftest$ac_exeext conftest.$ac_ext
adam@1459 11045 LDFLAGS=$save_LDFLAGS
adam@1459 11046 libdir=$save_libdir
adam@1459 11047
adam@1459 11048 fi
adam@1459 11049
adam@1459 11050 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
adamc@1132 11051
adamc@1132 11052 # This implies no fast_install, which is unacceptable.
adamc@1132 11053 # Some rework will be needed to allow for fast_install
adamc@1132 11054 # before this can be enabled.
adamc@1132 11055 hardcode_into_libs=yes
adamc@1132 11056
adamc@1132 11057 # Append ld.so.conf contents to the search path
adamc@1132 11058 if test -f /etc/ld.so.conf; then
adam@1459 11059 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' ' '`
adamc@1132 11060 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
adamc@1132 11061 fi
adamc@1132 11062
adamc@1132 11063 # We used to test for /lib/ld.so.1 and disable shared libraries on
adamc@1132 11064 # powerpc, because MkLinux only supported shared libraries with the
adamc@1132 11065 # GNU dynamic linker. Since this was broken with cross compilers,
adamc@1132 11066 # most powerpc-linux boxes support dynamic linking these days and
adamc@1132 11067 # people can always --disable-shared, the test was removed, and we
adamc@1132 11068 # assume the GNU/Linux dynamic linker is in use.
adamc@1132 11069 dynamic_linker='GNU/Linux ld.so'
adamc@1132 11070 ;;
adamc@1132 11071
adamc@1132 11072 netbsdelf*-gnu)
adamc@1132 11073 version_type=linux
adamc@1132 11074 need_lib_prefix=no
adamc@1132 11075 need_version=no
adamc@1132 11076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
adamc@1132 11077 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 11078 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 11079 shlibpath_overrides_runpath=no
adamc@1132 11080 hardcode_into_libs=yes
adamc@1132 11081 dynamic_linker='NetBSD ld.elf_so'
adamc@1132 11082 ;;
adamc@1132 11083
adamc@1132 11084 netbsd*)
adamc@1132 11085 version_type=sunos
adamc@1132 11086 need_lib_prefix=no
adamc@1132 11087 need_version=no
adamc@1132 11088 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
adamc@1132 11089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
adamc@1132 11090 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
adamc@1132 11091 dynamic_linker='NetBSD (a.out) ld.so'
adamc@1132 11092 else
adamc@1132 11093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
adamc@1132 11094 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 11095 dynamic_linker='NetBSD ld.elf_so'
adamc@1132 11096 fi
adamc@1132 11097 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 11098 shlibpath_overrides_runpath=yes
adamc@1132 11099 hardcode_into_libs=yes
adamc@1132 11100 ;;
adamc@1132 11101
adamc@1132 11102 newsos6)
adam@1599 11103 version_type=linux # correct to gnu/linux during the next big refactor
adamc@1132 11104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 11105 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 11106 shlibpath_overrides_runpath=yes
adamc@1132 11107 ;;
adamc@1132 11108
adamc@1132 11109 *nto* | *qnx*)
adamc@1132 11110 version_type=qnx
adamc@1132 11111 need_lib_prefix=no
adamc@1132 11112 need_version=no
adamc@1132 11113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 11114 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 11115 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 11116 shlibpath_overrides_runpath=no
adamc@1132 11117 hardcode_into_libs=yes
adamc@1132 11118 dynamic_linker='ldqnx.so'
adamc@1132 11119 ;;
adamc@1132 11120
adamc@1132 11121 openbsd*)
adamc@1132 11122 version_type=sunos
adamc@1132 11123 sys_lib_dlsearch_path_spec="/usr/lib"
adamc@1132 11124 need_lib_prefix=no
adamc@1132 11125 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
adamc@1132 11126 case $host_os in
adamc@1132 11127 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
adamc@1132 11128 *) need_version=no ;;
adamc@1132 11129 esac
adamc@1132 11130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
adamc@1132 11131 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
adamc@1132 11132 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 11133 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
adamc@1132 11134 case $host_os in
adamc@1132 11135 openbsd2.[89] | openbsd2.[89].*)
adamc@1132 11136 shlibpath_overrides_runpath=no
adamc@1132 11137 ;;
adamc@1132 11138 *)
adamc@1132 11139 shlibpath_overrides_runpath=yes
adamc@1132 11140 ;;
adamc@1132 11141 esac
adamc@1132 11142 else
adamc@1132 11143 shlibpath_overrides_runpath=yes
adamc@1132 11144 fi
adamc@1132 11145 ;;
adamc@1132 11146
adamc@1132 11147 os2*)
adamc@1132 11148 libname_spec='$name'
adamc@1132 11149 shrext_cmds=".dll"
adamc@1132 11150 need_lib_prefix=no
adamc@1132 11151 library_names_spec='$libname${shared_ext} $libname.a'
adamc@1132 11152 dynamic_linker='OS/2 ld.exe'
adamc@1132 11153 shlibpath_var=LIBPATH
adamc@1132 11154 ;;
adamc@1132 11155
adamc@1132 11156 osf3* | osf4* | osf5*)
adamc@1132 11157 version_type=osf
adamc@1132 11158 need_lib_prefix=no
adamc@1132 11159 need_version=no
adamc@1132 11160 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 11161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 11162 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 11163 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
adamc@1132 11164 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
adamc@1132 11165 ;;
adamc@1132 11166
adamc@1132 11167 rdos*)
adamc@1132 11168 dynamic_linker=no
adamc@1132 11169 ;;
adamc@1132 11170
adamc@1132 11171 solaris*)
adam@1599 11172 version_type=linux # correct to gnu/linux during the next big refactor
adamc@1132 11173 need_lib_prefix=no
adamc@1132 11174 need_version=no
adamc@1132 11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 11176 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 11177 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 11178 shlibpath_overrides_runpath=yes
adamc@1132 11179 hardcode_into_libs=yes
adamc@1132 11180 # ldd complains unless libraries are executable
adamc@1132 11181 postinstall_cmds='chmod +x $lib'
adamc@1132 11182 ;;
adamc@1132 11183
adamc@1132 11184 sunos4*)
adamc@1132 11185 version_type=sunos
adamc@1132 11186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
adamc@1132 11187 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
adamc@1132 11188 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 11189 shlibpath_overrides_runpath=yes
adamc@1132 11190 if test "$with_gnu_ld" = yes; then
adamc@1132 11191 need_lib_prefix=no
adamc@1132 11192 fi
adamc@1132 11193 need_version=yes
adamc@1132 11194 ;;
adamc@1132 11195
adamc@1132 11196 sysv4 | sysv4.3*)
adam@1599 11197 version_type=linux # correct to gnu/linux during the next big refactor
adamc@1132 11198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 11199 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 11200 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 11201 case $host_vendor in
adamc@1132 11202 sni)
adamc@1132 11203 shlibpath_overrides_runpath=no
adamc@1132 11204 need_lib_prefix=no
adamc@1132 11205 runpath_var=LD_RUN_PATH
adamc@1132 11206 ;;
adamc@1132 11207 siemens)
adamc@1132 11208 need_lib_prefix=no
adamc@1132 11209 ;;
adamc@1132 11210 motorola)
adamc@1132 11211 need_lib_prefix=no
adamc@1132 11212 need_version=no
adamc@1132 11213 shlibpath_overrides_runpath=no
adamc@1132 11214 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
adamc@1132 11215 ;;
adamc@1132 11216 esac
adamc@1132 11217 ;;
adamc@1132 11218
adamc@1132 11219 sysv4*MP*)
adamc@1132 11220 if test -d /usr/nec ;then
adam@1599 11221 version_type=linux # correct to gnu/linux during the next big refactor
adamc@1132 11222 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
adamc@1132 11223 soname_spec='$libname${shared_ext}.$major'
adamc@1132 11224 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 11225 fi
adamc@1132 11226 ;;
adamc@1132 11227
adamc@1132 11228 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
adamc@1132 11229 version_type=freebsd-elf
adamc@1132 11230 need_lib_prefix=no
adamc@1132 11231 need_version=no
adamc@1132 11232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
adamc@1132 11233 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 11234 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 11235 shlibpath_overrides_runpath=yes
adamc@1132 11236 hardcode_into_libs=yes
adamc@1132 11237 if test "$with_gnu_ld" = yes; then
adamc@1132 11238 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
adamc@1132 11239 else
adamc@1132 11240 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
adamc@1132 11241 case $host_os in
adamc@1132 11242 sco3.2v5*)
adamc@1132 11243 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
adamc@1132 11244 ;;
adamc@1132 11245 esac
adamc@1132 11246 fi
adamc@1132 11247 sys_lib_dlsearch_path_spec='/usr/lib'
adamc@1132 11248 ;;
adamc@1132 11249
adamc@1132 11250 tpf*)
adamc@1132 11251 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
adam@1599 11252 version_type=linux # correct to gnu/linux during the next big refactor
adamc@1132 11253 need_lib_prefix=no
adamc@1132 11254 need_version=no
adamc@1132 11255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 11256 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 11257 shlibpath_overrides_runpath=no
adamc@1132 11258 hardcode_into_libs=yes
adamc@1132 11259 ;;
adamc@1132 11260
adamc@1132 11261 uts4*)
adam@1599 11262 version_type=linux # correct to gnu/linux during the next big refactor
adamc@1132 11263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 11264 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 11265 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 11266 ;;
adamc@1132 11267
adamc@1132 11268 *)
adamc@1132 11269 dynamic_linker=no
adamc@1132 11270 ;;
adamc@1132 11271 esac
adamc@1132 11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
adamc@1132 11273 $as_echo "$dynamic_linker" >&6; }
adamc@1132 11274 test "$dynamic_linker" = no && can_build_shared=no
adamc@1132 11275
adamc@1132 11276 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
adamc@1132 11277 if test "$GCC" = yes; then
adamc@1132 11278 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
adamc@1132 11279 fi
adamc@1132 11280
adamc@1132 11281 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
adamc@1132 11282 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
adamc@1132 11283 fi
adamc@1132 11284 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
adamc@1132 11285 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
adamc@1132 11286 fi
adamc@1132 11287
adamc@1132 11288
adamc@1132 11289
adamc@1132 11290
adamc@1132 11291
adamc@1132 11292
adamc@1132 11293
adamc@1132 11294
adamc@1132 11295
adamc@1132 11296
adamc@1132 11297
adamc@1132 11298
adamc@1132 11299
adamc@1132 11300
adamc@1132 11301
adamc@1132 11302
adamc@1132 11303
adamc@1132 11304
adamc@1132 11305
adamc@1132 11306
adamc@1132 11307
adamc@1132 11308
adamc@1132 11309
adamc@1132 11310
adamc@1132 11311
adamc@1132 11312
adamc@1132 11313
adamc@1132 11314
adamc@1132 11315
adamc@1132 11316
adamc@1132 11317
adamc@1132 11318
adamc@1132 11319
adamc@1132 11320
adamc@1132 11321
adamc@1132 11322
adamc@1132 11323
adamc@1132 11324
adamc@1132 11325
adamc@1132 11326
adamc@1132 11327
adamc@1132 11328
adamc@1132 11329
adamc@1132 11330
adamc@1132 11331
adamc@1132 11332
adamc@1132 11333
adamc@1132 11334
adamc@1132 11335
adamc@1132 11336
adamc@1132 11337
adamc@1132 11338
adamc@1132 11339
adamc@1132 11340
adamc@1132 11341
adamc@1132 11342
adamc@1132 11343
adamc@1132 11344
adamc@1132 11345
adamc@1132 11346
adamc@1132 11347
adamc@1132 11348
adamc@1132 11349
adamc@1132 11350
adamc@1132 11351
adamc@1132 11352
adamc@1132 11353
adamc@1132 11354
adamc@1132 11355
adamc@1132 11356
adamc@1132 11357
adamc@1132 11358
adamc@1132 11359
adamc@1132 11360
adamc@1132 11361
adamc@1132 11362
adamc@1132 11363
adamc@1132 11364
adamc@1132 11365
adamc@1132 11366
adamc@1132 11367
adamc@1132 11368
adamc@1132 11369
adamc@1132 11370
adamc@1132 11371
adamc@1132 11372
adamc@1132 11373
adam@1459 11374
adam@1459 11375
adam@1459 11376
adam@1459 11377
adam@1459 11378
adamc@1132 11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
adamc@1132 11380 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
adamc@1132 11381 hardcode_action=
adamc@1132 11382 if test -n "$hardcode_libdir_flag_spec" ||
adamc@1132 11383 test -n "$runpath_var" ||
adamc@1132 11384 test "X$hardcode_automatic" = "Xyes" ; then
adamc@1132 11385
adamc@1132 11386 # We can hardcode non-existent directories.
adamc@1132 11387 if test "$hardcode_direct" != no &&
adamc@1132 11388 # If the only mechanism to avoid hardcoding is shlibpath_var, we
adamc@1132 11389 # have to relink, otherwise we might link with an installed library
adamc@1132 11390 # when we should be linking with a yet-to-be-installed one
adamc@1132 11391 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
adamc@1132 11392 test "$hardcode_minus_L" != no; then
adamc@1132 11393 # Linking always hardcodes the temporary library directory.
adamc@1132 11394 hardcode_action=relink
adamc@1132 11395 else
adamc@1132 11396 # We can link without hardcoding, and we can hardcode nonexisting dirs.
adamc@1132 11397 hardcode_action=immediate
adamc@1132 11398 fi
adamc@1132 11399 else
adamc@1132 11400 # We cannot hardcode anything, or else we can only hardcode existing
adamc@1132 11401 # directories.
adamc@1132 11402 hardcode_action=unsupported
adamc@1132 11403 fi
adamc@1132 11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
adamc@1132 11405 $as_echo "$hardcode_action" >&6; }
adamc@1132 11406
adamc@1132 11407 if test "$hardcode_action" = relink ||
adamc@1132 11408 test "$inherit_rpath" = yes; then
adamc@1132 11409 # Fast installation is not supported
adamc@1132 11410 enable_fast_install=no
adamc@1132 11411 elif test "$shlibpath_overrides_runpath" = yes ||
adamc@1132 11412 test "$enable_shared" = no; then
adamc@1132 11413 # Fast installation is not necessary
adamc@1132 11414 enable_fast_install=needless
adamc@1132 11415 fi
adamc@1132 11416
adamc@1132 11417
adamc@1132 11418
adamc@1132 11419
adamc@1132 11420
adamc@1132 11421
adamc@1132 11422 if test "x$enable_dlopen" != xyes; then
adamc@1132 11423 enable_dlopen=unknown
adamc@1132 11424 enable_dlopen_self=unknown
adamc@1132 11425 enable_dlopen_self_static=unknown
adamc@1132 11426 else
adamc@1132 11427 lt_cv_dlopen=no
adamc@1132 11428 lt_cv_dlopen_libs=
adamc@1132 11429
adamc@1132 11430 case $host_os in
adamc@1132 11431 beos*)
adamc@1132 11432 lt_cv_dlopen="load_add_on"
adamc@1132 11433 lt_cv_dlopen_libs=
adamc@1132 11434 lt_cv_dlopen_self=yes
adamc@1132 11435 ;;
adamc@1132 11436
adamc@1132 11437 mingw* | pw32* | cegcc*)
adamc@1132 11438 lt_cv_dlopen="LoadLibrary"
adamc@1132 11439 lt_cv_dlopen_libs=
adamc@1132 11440 ;;
adamc@1132 11441
adamc@1132 11442 cygwin*)
adamc@1132 11443 lt_cv_dlopen="dlopen"
adamc@1132 11444 lt_cv_dlopen_libs=
adamc@1132 11445 ;;
adamc@1132 11446
adamc@1132 11447 darwin*)
adamc@1132 11448 # if libdl is installed we need to link against it
adamc@1132 11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
adamc@1132 11450 $as_echo_n "checking for dlopen in -ldl... " >&6; }
adam@1599 11451 if ${ac_cv_lib_dl_dlopen+:} false; then :
adamc@1132 11452 $as_echo_n "(cached) " >&6
adamc@1132 11453 else
adamc@1132 11454 ac_check_lib_save_LIBS=$LIBS
adamc@1132 11455 LIBS="-ldl $LIBS"
adamc@1132 11456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 11457 /* end confdefs.h. */
adamc@1132 11458
adamc@1132 11459 /* Override any GCC internal prototype to avoid an error.
adamc@1132 11460 Use char because int might match the return type of a GCC
adamc@1132 11461 builtin and then its argument prototype would still apply. */
adamc@1132 11462 #ifdef __cplusplus
adamc@1132 11463 extern "C"
adamc@1132 11464 #endif
adamc@1132 11465 char dlopen ();
adamc@1132 11466 int
adamc@1132 11467 main ()
adamc@1132 11468 {
adamc@1132 11469 return dlopen ();
adamc@1132 11470 ;
adamc@1132 11471 return 0;
adamc@1132 11472 }
adamc@1132 11473 _ACEOF
adamc@1132 11474 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 11475 ac_cv_lib_dl_dlopen=yes
adamc@1132 11476 else
adamc@1132 11477 ac_cv_lib_dl_dlopen=no
adamc@1132 11478 fi
adamc@1132 11479 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 11480 conftest$ac_exeext conftest.$ac_ext
adamc@1132 11481 LIBS=$ac_check_lib_save_LIBS
adamc@1132 11482 fi
adamc@1132 11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
adamc@1132 11484 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
adam@1599 11485 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
adamc@1132 11486 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
adamc@1132 11487 else
adamc@1132 11488
adamc@1132 11489 lt_cv_dlopen="dyld"
adamc@1132 11490 lt_cv_dlopen_libs=
adamc@1132 11491 lt_cv_dlopen_self=yes
adamc@1132 11492
adamc@1132 11493 fi
adamc@1132 11494
adamc@1132 11495 ;;
adamc@1132 11496
adamc@1132 11497 *)
adamc@1132 11498 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
adam@1599 11499 if test "x$ac_cv_func_shl_load" = xyes; then :
adamc@1132 11500 lt_cv_dlopen="shl_load"
adamc@1132 11501 else
adamc@1132 11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
adamc@1132 11503 $as_echo_n "checking for shl_load in -ldld... " >&6; }
adam@1599 11504 if ${ac_cv_lib_dld_shl_load+:} false; then :
adamc@1132 11505 $as_echo_n "(cached) " >&6
adamc@1132 11506 else
adamc@1132 11507 ac_check_lib_save_LIBS=$LIBS
adamc@1132 11508 LIBS="-ldld $LIBS"
adamc@1132 11509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 11510 /* end confdefs.h. */
adamc@1132 11511
adamc@1132 11512 /* Override any GCC internal prototype to avoid an error.
adamc@1132 11513 Use char because int might match the return type of a GCC
adamc@1132 11514 builtin and then its argument prototype would still apply. */
adamc@1132 11515 #ifdef __cplusplus
adamc@1132 11516 extern "C"
adamc@1132 11517 #endif
adamc@1132 11518 char shl_load ();
adamc@1132 11519 int
adamc@1132 11520 main ()
adamc@1132 11521 {
adamc@1132 11522 return shl_load ();
adamc@1132 11523 ;
adamc@1132 11524 return 0;
adamc@1132 11525 }
adamc@1132 11526 _ACEOF
adamc@1132 11527 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 11528 ac_cv_lib_dld_shl_load=yes
adamc@1132 11529 else
adamc@1132 11530 ac_cv_lib_dld_shl_load=no
adamc@1132 11531 fi
adamc@1132 11532 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 11533 conftest$ac_exeext conftest.$ac_ext
adamc@1132 11534 LIBS=$ac_check_lib_save_LIBS
adamc@1132 11535 fi
adamc@1132 11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
adamc@1132 11537 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
adam@1599 11538 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
adamc@1132 11539 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
adamc@1132 11540 else
adamc@1132 11541 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
adam@1599 11542 if test "x$ac_cv_func_dlopen" = xyes; then :
adamc@1132 11543 lt_cv_dlopen="dlopen"
adamc@1132 11544 else
adamc@1132 11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
adamc@1132 11546 $as_echo_n "checking for dlopen in -ldl... " >&6; }
adam@1599 11547 if ${ac_cv_lib_dl_dlopen+:} false; then :
adamc@1132 11548 $as_echo_n "(cached) " >&6
adamc@1132 11549 else
adamc@1132 11550 ac_check_lib_save_LIBS=$LIBS
adamc@1132 11551 LIBS="-ldl $LIBS"
adamc@1132 11552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 11553 /* end confdefs.h. */
adamc@1132 11554
adamc@1132 11555 /* Override any GCC internal prototype to avoid an error.
adamc@1132 11556 Use char because int might match the return type of a GCC
adamc@1132 11557 builtin and then its argument prototype would still apply. */
adamc@1132 11558 #ifdef __cplusplus
adamc@1132 11559 extern "C"
adamc@1132 11560 #endif
adamc@1132 11561 char dlopen ();
adamc@1132 11562 int
adamc@1132 11563 main ()
adamc@1132 11564 {
adamc@1132 11565 return dlopen ();
adamc@1132 11566 ;
adamc@1132 11567 return 0;
adamc@1132 11568 }
adamc@1132 11569 _ACEOF
adamc@1132 11570 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 11571 ac_cv_lib_dl_dlopen=yes
adamc@1132 11572 else
adamc@1132 11573 ac_cv_lib_dl_dlopen=no
adamc@1132 11574 fi
adamc@1132 11575 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 11576 conftest$ac_exeext conftest.$ac_ext
adamc@1132 11577 LIBS=$ac_check_lib_save_LIBS
adamc@1132 11578 fi
adamc@1132 11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
adamc@1132 11580 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
adam@1599 11581 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
adamc@1132 11582 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
adamc@1132 11583 else
adamc@1132 11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
adamc@1132 11585 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
adam@1599 11586 if ${ac_cv_lib_svld_dlopen+:} false; then :
adamc@1132 11587 $as_echo_n "(cached) " >&6
adamc@1132 11588 else
adamc@1132 11589 ac_check_lib_save_LIBS=$LIBS
adamc@1132 11590 LIBS="-lsvld $LIBS"
adamc@1132 11591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 11592 /* end confdefs.h. */
adamc@1132 11593
adamc@1132 11594 /* Override any GCC internal prototype to avoid an error.
adamc@1132 11595 Use char because int might match the return type of a GCC
adamc@1132 11596 builtin and then its argument prototype would still apply. */
adamc@1132 11597 #ifdef __cplusplus
adamc@1132 11598 extern "C"
adamc@1132 11599 #endif
adamc@1132 11600 char dlopen ();
adamc@1132 11601 int
adamc@1132 11602 main ()
adamc@1132 11603 {
adamc@1132 11604 return dlopen ();
adamc@1132 11605 ;
adamc@1132 11606 return 0;
adamc@1132 11607 }
adamc@1132 11608 _ACEOF
adamc@1132 11609 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 11610 ac_cv_lib_svld_dlopen=yes
adamc@1132 11611 else
adamc@1132 11612 ac_cv_lib_svld_dlopen=no
adamc@1132 11613 fi
adamc@1132 11614 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 11615 conftest$ac_exeext conftest.$ac_ext
adamc@1132 11616 LIBS=$ac_check_lib_save_LIBS
adamc@1132 11617 fi
adamc@1132 11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
adamc@1132 11619 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
adam@1599 11620 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
adamc@1132 11621 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
adamc@1132 11622 else
adamc@1132 11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
adamc@1132 11624 $as_echo_n "checking for dld_link in -ldld... " >&6; }
adam@1599 11625 if ${ac_cv_lib_dld_dld_link+:} false; then :
adamc@1132 11626 $as_echo_n "(cached) " >&6
adamc@1132 11627 else
adamc@1132 11628 ac_check_lib_save_LIBS=$LIBS
adamc@1132 11629 LIBS="-ldld $LIBS"
adamc@1132 11630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 11631 /* end confdefs.h. */
adamc@1132 11632
adamc@1132 11633 /* Override any GCC internal prototype to avoid an error.
adamc@1132 11634 Use char because int might match the return type of a GCC
adamc@1132 11635 builtin and then its argument prototype would still apply. */
adamc@1132 11636 #ifdef __cplusplus
adamc@1132 11637 extern "C"
adamc@1132 11638 #endif
adamc@1132 11639 char dld_link ();
adamc@1132 11640 int
adamc@1132 11641 main ()
adamc@1132 11642 {
adamc@1132 11643 return dld_link ();
adamc@1132 11644 ;
adamc@1132 11645 return 0;
adamc@1132 11646 }
adamc@1132 11647 _ACEOF
adamc@1132 11648 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 11649 ac_cv_lib_dld_dld_link=yes
adamc@1132 11650 else
adamc@1132 11651 ac_cv_lib_dld_dld_link=no
adamc@1132 11652 fi
adamc@1132 11653 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 11654 conftest$ac_exeext conftest.$ac_ext
adamc@1132 11655 LIBS=$ac_check_lib_save_LIBS
adamc@1132 11656 fi
adamc@1132 11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
adamc@1132 11658 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
adam@1599 11659 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
adamc@1132 11660 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
adamc@1132 11661 fi
adamc@1132 11662
adamc@1132 11663
adamc@1132 11664 fi
adamc@1132 11665
adamc@1132 11666
adamc@1132 11667 fi
adamc@1132 11668
adamc@1132 11669
adamc@1132 11670 fi
adamc@1132 11671
adamc@1132 11672
adamc@1132 11673 fi
adamc@1132 11674
adamc@1132 11675
adamc@1132 11676 fi
adamc@1132 11677
adamc@1132 11678 ;;
adamc@1132 11679 esac
adamc@1132 11680
adamc@1132 11681 if test "x$lt_cv_dlopen" != xno; then
adamc@1132 11682 enable_dlopen=yes
adamc@1132 11683 else
adamc@1132 11684 enable_dlopen=no
adamc@1132 11685 fi
adamc@1132 11686
adamc@1132 11687 case $lt_cv_dlopen in
adamc@1132 11688 dlopen)
adamc@1132 11689 save_CPPFLAGS="$CPPFLAGS"
adamc@1132 11690 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
adamc@1132 11691
adamc@1132 11692 save_LDFLAGS="$LDFLAGS"
adamc@1132 11693 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
adamc@1132 11694
adamc@1132 11695 save_LIBS="$LIBS"
adamc@1132 11696 LIBS="$lt_cv_dlopen_libs $LIBS"
adamc@1132 11697
adamc@1132 11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
adamc@1132 11699 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
adam@1599 11700 if ${lt_cv_dlopen_self+:} false; then :
adamc@1132 11701 $as_echo_n "(cached) " >&6
adamc@1132 11702 else
adamc@1132 11703 if test "$cross_compiling" = yes; then :
adamc@1132 11704 lt_cv_dlopen_self=cross
adamc@1132 11705 else
adamc@1132 11706 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
adamc@1132 11707 lt_status=$lt_dlunknown
adamc@1132 11708 cat > conftest.$ac_ext <<_LT_EOF
adam@1459 11709 #line $LINENO "configure"
adamc@1132 11710 #include "confdefs.h"
adamc@1132 11711
adamc@1132 11712 #if HAVE_DLFCN_H
adamc@1132 11713 #include <dlfcn.h>
adamc@1132 11714 #endif
adamc@1132 11715
adamc@1132 11716 #include <stdio.h>
adamc@1132 11717
adamc@1132 11718 #ifdef RTLD_GLOBAL
adamc@1132 11719 # define LT_DLGLOBAL RTLD_GLOBAL
adamc@1132 11720 #else
adamc@1132 11721 # ifdef DL_GLOBAL
adamc@1132 11722 # define LT_DLGLOBAL DL_GLOBAL
adamc@1132 11723 # else
adamc@1132 11724 # define LT_DLGLOBAL 0
adamc@1132 11725 # endif
adamc@1132 11726 #endif
adamc@1132 11727
adamc@1132 11728 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
adamc@1132 11729 find out it does not work in some platform. */
adamc@1132 11730 #ifndef LT_DLLAZY_OR_NOW
adamc@1132 11731 # ifdef RTLD_LAZY
adamc@1132 11732 # define LT_DLLAZY_OR_NOW RTLD_LAZY
adamc@1132 11733 # else
adamc@1132 11734 # ifdef DL_LAZY
adamc@1132 11735 # define LT_DLLAZY_OR_NOW DL_LAZY
adamc@1132 11736 # else
adamc@1132 11737 # ifdef RTLD_NOW
adamc@1132 11738 # define LT_DLLAZY_OR_NOW RTLD_NOW
adamc@1132 11739 # else
adamc@1132 11740 # ifdef DL_NOW
adamc@1132 11741 # define LT_DLLAZY_OR_NOW DL_NOW
adamc@1132 11742 # else
adamc@1132 11743 # define LT_DLLAZY_OR_NOW 0
adamc@1132 11744 # endif
adamc@1132 11745 # endif
adamc@1132 11746 # endif
adamc@1132 11747 # endif
adamc@1132 11748 #endif
adamc@1132 11749
adam@1459 11750 /* When -fvisbility=hidden is used, assume the code has been annotated
adam@1459 11751 correspondingly for the symbols needed. */
adam@1459 11752 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
adam@1459 11753 int fnord () __attribute__((visibility("default")));
adam@1459 11754 #endif
adam@1459 11755
adam@1459 11756 int fnord () { return 42; }
adamc@1132 11757 int main ()
adamc@1132 11758 {
adamc@1132 11759 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
adamc@1132 11760 int status = $lt_dlunknown;
adamc@1132 11761
adamc@1132 11762 if (self)
adamc@1132 11763 {
adamc@1132 11764 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
adam@1459 11765 else
adam@1459 11766 {
adam@1459 11767 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
adam@1459 11768 else puts (dlerror ());
adam@1459 11769 }
adamc@1132 11770 /* dlclose (self); */
adamc@1132 11771 }
adamc@1132 11772 else
adamc@1132 11773 puts (dlerror ());
adamc@1132 11774
adamc@1132 11775 return status;
adamc@1132 11776 }
adamc@1132 11777 _LT_EOF
adamc@1132 11778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
adamc@1132 11779 (eval $ac_link) 2>&5
adamc@1132 11780 ac_status=$?
adamc@1132 11781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 11782 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
adamc@1132 11783 (./conftest; exit; ) >&5 2>/dev/null
adamc@1132 11784 lt_status=$?
adamc@1132 11785 case x$lt_status in
adamc@1132 11786 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
adamc@1132 11787 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
adamc@1132 11788 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
adamc@1132 11789 esac
adamc@1132 11790 else :
adamc@1132 11791 # compilation failed
adamc@1132 11792 lt_cv_dlopen_self=no
adamc@1132 11793 fi
adamc@1132 11794 fi
adamc@1132 11795 rm -fr conftest*
adamc@1132 11796
adamc@1132 11797
adamc@1132 11798 fi
adamc@1132 11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
adamc@1132 11800 $as_echo "$lt_cv_dlopen_self" >&6; }
adamc@1132 11801
adamc@1132 11802 if test "x$lt_cv_dlopen_self" = xyes; then
adamc@1132 11803 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
adamc@1132 11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
adamc@1132 11805 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
adam@1599 11806 if ${lt_cv_dlopen_self_static+:} false; then :
adamc@1132 11807 $as_echo_n "(cached) " >&6
adamc@1132 11808 else
adamc@1132 11809 if test "$cross_compiling" = yes; then :
adamc@1132 11810 lt_cv_dlopen_self_static=cross
adamc@1132 11811 else
adamc@1132 11812 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
adamc@1132 11813 lt_status=$lt_dlunknown
adamc@1132 11814 cat > conftest.$ac_ext <<_LT_EOF
adam@1459 11815 #line $LINENO "configure"
adamc@1132 11816 #include "confdefs.h"
adamc@1132 11817
adamc@1132 11818 #if HAVE_DLFCN_H
adamc@1132 11819 #include <dlfcn.h>
adamc@1132 11820 #endif
adamc@1132 11821
adamc@1132 11822 #include <stdio.h>
adamc@1132 11823
adamc@1132 11824 #ifdef RTLD_GLOBAL
adamc@1132 11825 # define LT_DLGLOBAL RTLD_GLOBAL
adamc@1132 11826 #else
adamc@1132 11827 # ifdef DL_GLOBAL
adamc@1132 11828 # define LT_DLGLOBAL DL_GLOBAL
adamc@1132 11829 # else
adamc@1132 11830 # define LT_DLGLOBAL 0
adamc@1132 11831 # endif
adamc@1132 11832 #endif
adamc@1132 11833
adamc@1132 11834 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
adamc@1132 11835 find out it does not work in some platform. */
adamc@1132 11836 #ifndef LT_DLLAZY_OR_NOW
adamc@1132 11837 # ifdef RTLD_LAZY
adamc@1132 11838 # define LT_DLLAZY_OR_NOW RTLD_LAZY
adamc@1132 11839 # else
adamc@1132 11840 # ifdef DL_LAZY
adamc@1132 11841 # define LT_DLLAZY_OR_NOW DL_LAZY
adamc@1132 11842 # else
adamc@1132 11843 # ifdef RTLD_NOW
adamc@1132 11844 # define LT_DLLAZY_OR_NOW RTLD_NOW
adamc@1132 11845 # else
adamc@1132 11846 # ifdef DL_NOW
adamc@1132 11847 # define LT_DLLAZY_OR_NOW DL_NOW
adamc@1132 11848 # else
adamc@1132 11849 # define LT_DLLAZY_OR_NOW 0
adamc@1132 11850 # endif
adamc@1132 11851 # endif
adamc@1132 11852 # endif
adamc@1132 11853 # endif
adamc@1132 11854 #endif
adamc@1132 11855
adam@1459 11856 /* When -fvisbility=hidden is used, assume the code has been annotated
adam@1459 11857 correspondingly for the symbols needed. */
adam@1459 11858 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
adam@1459 11859 int fnord () __attribute__((visibility("default")));
adam@1459 11860 #endif
adam@1459 11861
adam@1459 11862 int fnord () { return 42; }
adamc@1132 11863 int main ()
adamc@1132 11864 {
adamc@1132 11865 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
adamc@1132 11866 int status = $lt_dlunknown;
adamc@1132 11867
adamc@1132 11868 if (self)
adamc@1132 11869 {
adamc@1132 11870 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
adam@1459 11871 else
adam@1459 11872 {
adam@1459 11873 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
adam@1459 11874 else puts (dlerror ());
adam@1459 11875 }
adamc@1132 11876 /* dlclose (self); */
adamc@1132 11877 }
adamc@1132 11878 else
adamc@1132 11879 puts (dlerror ());
adamc@1132 11880
adamc@1132 11881 return status;
adamc@1132 11882 }
adamc@1132 11883 _LT_EOF
adamc@1132 11884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
adamc@1132 11885 (eval $ac_link) 2>&5
adamc@1132 11886 ac_status=$?
adamc@1132 11887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 11888 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
adamc@1132 11889 (./conftest; exit; ) >&5 2>/dev/null
adamc@1132 11890 lt_status=$?
adamc@1132 11891 case x$lt_status in
adamc@1132 11892 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
adamc@1132 11893 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
adamc@1132 11894 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
adamc@1132 11895 esac
adamc@1132 11896 else :
adamc@1132 11897 # compilation failed
adamc@1132 11898 lt_cv_dlopen_self_static=no
adamc@1132 11899 fi
adamc@1132 11900 fi
adamc@1132 11901 rm -fr conftest*
adamc@1132 11902
adamc@1132 11903
adamc@1132 11904 fi
adamc@1132 11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
adamc@1132 11906 $as_echo "$lt_cv_dlopen_self_static" >&6; }
adamc@1132 11907 fi
adamc@1132 11908
adamc@1132 11909 CPPFLAGS="$save_CPPFLAGS"
adamc@1132 11910 LDFLAGS="$save_LDFLAGS"
adamc@1132 11911 LIBS="$save_LIBS"
adamc@1132 11912 ;;
adamc@1132 11913 esac
adamc@1132 11914
adamc@1132 11915 case $lt_cv_dlopen_self in
adamc@1132 11916 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
adamc@1132 11917 *) enable_dlopen_self=unknown ;;
adamc@1132 11918 esac
adamc@1132 11919
adamc@1132 11920 case $lt_cv_dlopen_self_static in
adamc@1132 11921 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
adamc@1132 11922 *) enable_dlopen_self_static=unknown ;;
adamc@1132 11923 esac
adamc@1132 11924 fi
adamc@1132 11925
adamc@1132 11926
adamc@1132 11927
adamc@1132 11928
adamc@1132 11929
adamc@1132 11930
adamc@1132 11931
adamc@1132 11932
adamc@1132 11933
adamc@1132 11934
adamc@1132 11935
adamc@1132 11936
adamc@1132 11937
adamc@1132 11938
adamc@1132 11939
adamc@1132 11940
adamc@1132 11941
adamc@1132 11942 striplib=
adamc@1132 11943 old_striplib=
adamc@1132 11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
adamc@1132 11945 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
adamc@1132 11946 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
adamc@1132 11947 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
adamc@1132 11948 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
adamc@1132 11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
adamc@1132 11950 $as_echo "yes" >&6; }
adamc@1132 11951 else
adamc@1132 11952 # FIXME - insert some real tests, host_os isn't really good enough
adamc@1132 11953 case $host_os in
adamc@1132 11954 darwin*)
adamc@1132 11955 if test -n "$STRIP" ; then
adamc@1132 11956 striplib="$STRIP -x"
adamc@1132 11957 old_striplib="$STRIP -S"
adamc@1132 11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
adamc@1132 11959 $as_echo "yes" >&6; }
adamc@1132 11960 else
adamc@1132 11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 11962 $as_echo "no" >&6; }
adamc@1132 11963 fi
adamc@1132 11964 ;;
adamc@1132 11965 *)
adamc@1132 11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 11967 $as_echo "no" >&6; }
adamc@1132 11968 ;;
adamc@1132 11969 esac
adamc@1132 11970 fi
adamc@1132 11971
adamc@1132 11972
adamc@1132 11973
adamc@1132 11974
adamc@1132 11975
adamc@1132 11976
adamc@1132 11977
adamc@1132 11978
adamc@1132 11979
adamc@1132 11980
adamc@1132 11981
adamc@1132 11982
adamc@1132 11983 # Report which library types will actually be built
adamc@1132 11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
adamc@1132 11985 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
adamc@1132 11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
adamc@1132 11987 $as_echo "$can_build_shared" >&6; }
adamc@1132 11988
adamc@1132 11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
adamc@1132 11990 $as_echo_n "checking whether to build shared libraries... " >&6; }
adamc@1132 11991 test "$can_build_shared" = "no" && enable_shared=no
adamc@1132 11992
adamc@1132 11993 # On AIX, shared libraries and static libraries use the same namespace, and
adamc@1132 11994 # are all built from PIC.
adamc@1132 11995 case $host_os in
adamc@1132 11996 aix3*)
adamc@1132 11997 test "$enable_shared" = yes && enable_static=no
adamc@1132 11998 if test -n "$RANLIB"; then
adamc@1132 11999 archive_cmds="$archive_cmds~\$RANLIB \$lib"
adamc@1132 12000 postinstall_cmds='$RANLIB $lib'
adamc@1132 12001 fi
adamc@1132 12002 ;;
adamc@1132 12003
adamc@1132 12004 aix[4-9]*)
adamc@1132 12005 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
adamc@1132 12006 test "$enable_shared" = yes && enable_static=no
adamc@1132 12007 fi
adamc@1132 12008 ;;
adamc@1132 12009 esac
adamc@1132 12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
adamc@1132 12011 $as_echo "$enable_shared" >&6; }
adamc@1132 12012
adamc@1132 12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
adamc@1132 12014 $as_echo_n "checking whether to build static libraries... " >&6; }
adamc@1132 12015 # Make sure either enable_shared or enable_static is yes.
adamc@1132 12016 test "$enable_shared" = yes || enable_static=yes
adamc@1132 12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
adamc@1132 12018 $as_echo "$enable_static" >&6; }
adamc@1132 12019
adamc@1132 12020
adamc@1132 12021
adamc@1132 12022
adamc@1132 12023 fi
adamc@1132 12024 ac_ext=c
adamc@1132 12025 ac_cpp='$CPP $CPPFLAGS'
adamc@1132 12026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@1132 12027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@1132 12028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@1132 12029
adamc@1132 12030 CC="$lt_save_CC"
adamc@1132 12031
adamc@1132 12032
adamc@1132 12033
adamc@1132 12034
adamc@1132 12035
adamc@1132 12036
adamc@1132 12037
adamc@1132 12038
adamc@1132 12039
adamc@1132 12040
adamc@1132 12041
adamc@1132 12042
adamc@1132 12043
adam@1599 12044
adam@1599 12045
adamc@1132 12046 ac_config_commands="$ac_config_commands libtool"
adamc@1132 12047
adamc@1132 12048
adamc@1132 12049
adamc@1132 12050
adamc@1132 12051 # Only expand once:
adamc@1132 12052
adamc@1132 12053
adamc@378 12054
adam@1740 12055 ac_config_headers="$ac_config_headers include/urweb/config.h"
adamc@1263 12056
adamc@1141 12057
adam@1317 12058
adam@1528 12059
adam@1528 12060 ac_ext=c
adam@1528 12061 ac_cpp='$CPP $CPPFLAGS'
adam@1528 12062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adam@1528 12063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adam@1528 12064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adam@1528 12065
adam@1528 12066 ax_pthread_ok=no
adam@1528 12067
adam@1528 12068 # We used to check for pthread.h first, but this fails if pthread.h
adam@1528 12069 # requires special compiler flags (e.g. on True64 or Sequent).
adam@1528 12070 # It gets checked for in the link test anyway.
adam@1528 12071
adam@1528 12072 # First of all, check if the user has set any of the PTHREAD_LIBS,
adam@1528 12073 # etcetera environment variables, and if threads linking works using
adam@1528 12074 # them:
adam@1528 12075 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
adam@1528 12076 save_CFLAGS="$CFLAGS"
adam@1528 12077 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
adam@1528 12078 save_LIBS="$LIBS"
adam@1528 12079 LIBS="$PTHREAD_LIBS $LIBS"
adam@1528 12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
adam@1528 12081 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
adam@1528 12082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adam@1528 12083 /* end confdefs.h. */
adam@1528 12084
adam@1528 12085 /* Override any GCC internal prototype to avoid an error.
adam@1528 12086 Use char because int might match the return type of a GCC
adam@1528 12087 builtin and then its argument prototype would still apply. */
adam@1528 12088 #ifdef __cplusplus
adam@1528 12089 extern "C"
adam@1528 12090 #endif
adam@1528 12091 char pthread_join ();
adam@1528 12092 int
adam@1528 12093 main ()
adam@1528 12094 {
adam@1528 12095 return pthread_join ();
adam@1528 12096 ;
adam@1528 12097 return 0;
adam@1528 12098 }
adam@1528 12099 _ACEOF
adam@1528 12100 if ac_fn_c_try_link "$LINENO"; then :
adam@1528 12101 ax_pthread_ok=yes
adam@1528 12102 fi
adam@1528 12103 rm -f core conftest.err conftest.$ac_objext \
adam@1528 12104 conftest$ac_exeext conftest.$ac_ext
adam@1528 12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
adam@1528 12106 $as_echo "$ax_pthread_ok" >&6; }
adam@1528 12107 if test x"$ax_pthread_ok" = xno; then
adam@1528 12108 PTHREAD_LIBS=""
adam@1528 12109 PTHREAD_CFLAGS=""
adam@1528 12110 fi
adam@1528 12111 LIBS="$save_LIBS"
adam@1528 12112 CFLAGS="$save_CFLAGS"
adam@1528 12113 fi
adam@1528 12114
adam@1528 12115 # We must check for the threads library under a number of different
adam@1528 12116 # names; the ordering is very important because some systems
adam@1528 12117 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
adam@1528 12118 # libraries is broken (non-POSIX).
adam@1528 12119
adam@1528 12120 # Create a list of thread flags to try. Items starting with a "-" are
adam@1528 12121 # C compiler flags, and other items are library names, except for "none"
adam@1528 12122 # which indicates that we try without any flags at all, and "pthread-config"
adam@1528 12123 # which is a program returning the flags for the Pth emulation library.
adam@1528 12124
adam@1528 12125 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
adam@1528 12126
adam@1528 12127 # The ordering *is* (sometimes) important. Some notes on the
adam@1528 12128 # individual items follow:
adam@1528 12129
adam@1528 12130 # pthreads: AIX (must check this before -lpthread)
adam@1528 12131 # none: in case threads are in libc; should be tried before -Kthread and
adam@1528 12132 # other compiler flags to prevent continual compiler warnings
adam@1528 12133 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
adam@1528 12134 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
adam@1528 12135 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
adam@1528 12136 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
adam@1528 12137 # -pthreads: Solaris/gcc
adam@1528 12138 # -mthreads: Mingw32/gcc, Lynx/gcc
adam@1528 12139 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
adam@1528 12140 # doesn't hurt to check since this sometimes defines pthreads too;
adam@1528 12141 # also defines -D_REENTRANT)
adam@1528 12142 # ... -mt is also the pthreads flag for HP/aCC
adam@1528 12143 # pthread: Linux, etcetera
adam@1528 12144 # --thread-safe: KAI C++
adam@1528 12145 # pthread-config: use pthread-config program (for GNU Pth library)
adam@1528 12146
adam@1528 12147 case "${host_cpu}-${host_os}" in
adam@1528 12148 *solaris*)
adam@1528 12149
adam@1528 12150 # On Solaris (at least, for some versions), libc contains stubbed
adam@1528 12151 # (non-functional) versions of the pthreads routines, so link-based
adam@1528 12152 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
adam@1528 12153 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
adam@1528 12154 # a function called by this macro, so we could check for that, but
adam@1528 12155 # who knows whether they'll stub that too in a future libc.) So,
adam@1528 12156 # we'll just look for -pthreads and -lpthread first:
adam@1528 12157
adam@1528 12158 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
adam@1528 12159 ;;
adam@1528 12160
adam@1528 12161 *-darwin*)
adam@1528 12162 ax_pthread_flags="-pthread $ax_pthread_flags"
adam@1528 12163 ;;
adam@1528 12164 esac
adam@1528 12165
adam@1528 12166 if test x"$ax_pthread_ok" = xno; then
adam@1528 12167 for flag in $ax_pthread_flags; do
adam@1528 12168
adam@1528 12169 case $flag in
adam@1528 12170 none)
adam@1528 12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
adam@1528 12172 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
adam@1528 12173 ;;
adam@1528 12174
adam@1528 12175 -*)
adam@1528 12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
adam@1528 12177 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
adam@1528 12178 PTHREAD_CFLAGS="$flag"
adam@1528 12179 ;;
adam@1528 12180
adam@1528 12181 pthread-config)
adam@1528 12182 # Extract the first word of "pthread-config", so it can be a program name with args.
adam@1528 12183 set dummy pthread-config; ac_word=$2
adam@1528 12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adam@1528 12185 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 12186 if ${ac_cv_prog_ax_pthread_config+:} false; then :
adam@1528 12187 $as_echo_n "(cached) " >&6
adam@1528 12188 else
adam@1528 12189 if test -n "$ax_pthread_config"; then
adam@1528 12190 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
adam@1528 12191 else
adam@1528 12192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adam@1528 12193 for as_dir in $PATH
adam@1528 12194 do
adam@1528 12195 IFS=$as_save_IFS
adam@1528 12196 test -z "$as_dir" && as_dir=.
adam@1528 12197 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 12198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adam@1528 12199 ac_cv_prog_ax_pthread_config="yes"
adam@1528 12200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adam@1528 12201 break 2
adam@1528 12202 fi
adam@1528 12203 done
adam@1528 12204 done
adam@1528 12205 IFS=$as_save_IFS
adam@1528 12206
adam@1528 12207 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
adam@1528 12208 fi
adam@1528 12209 fi
adam@1528 12210 ax_pthread_config=$ac_cv_prog_ax_pthread_config
adam@1528 12211 if test -n "$ax_pthread_config"; then
adam@1528 12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
adam@1528 12213 $as_echo "$ax_pthread_config" >&6; }
adam@1528 12214 else
adam@1528 12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adam@1528 12216 $as_echo "no" >&6; }
adam@1528 12217 fi
adam@1528 12218
adam@1528 12219
adam@1528 12220 if test x"$ax_pthread_config" = xno; then continue; fi
adam@1528 12221 PTHREAD_CFLAGS="`pthread-config --cflags`"
adam@1528 12222 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
adam@1528 12223 ;;
adam@1528 12224
adam@1528 12225 *)
adam@1528 12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
adam@1528 12227 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
adam@1528 12228 PTHREAD_LIBS="-l$flag"
adam@1528 12229 ;;
adam@1528 12230 esac
adam@1528 12231
adam@1528 12232 save_LIBS="$LIBS"
adam@1528 12233 save_CFLAGS="$CFLAGS"
adam@1528 12234 LIBS="$PTHREAD_LIBS $LIBS"
adam@1528 12235 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
adam@1528 12236
adam@1528 12237 # Check for various functions. We must include pthread.h,
adam@1528 12238 # since some functions may be macros. (On the Sequent, we
adam@1528 12239 # need a special flag -Kthread to make this header compile.)
adam@1528 12240 # We check for pthread_join because it is in -lpthread on IRIX
adam@1528 12241 # while pthread_create is in libc. We check for pthread_attr_init
adam@1528 12242 # due to DEC craziness with -lpthreads. We check for
adam@1528 12243 # pthread_cleanup_push because it is one of the few pthread
adam@1528 12244 # functions on Solaris that doesn't have a non-functional libc stub.
adam@1528 12245 # We try pthread_create on general principles.
adam@1528 12246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adam@1528 12247 /* end confdefs.h. */
adam@1528 12248 #include <pthread.h>
adam@1528 12249 static void routine(void *a) { a = 0; }
adam@1528 12250 static void *start_routine(void *a) { return a; }
adam@1528 12251 int
adam@1528 12252 main ()
adam@1528 12253 {
adam@1528 12254 pthread_t th; pthread_attr_t attr;
adam@1528 12255 pthread_create(&th, 0, start_routine, 0);
adam@1528 12256 pthread_join(th, 0);
adam@1528 12257 pthread_attr_init(&attr);
adam@1528 12258 pthread_cleanup_push(routine, 0);
adam@1528 12259 pthread_cleanup_pop(0) /* ; */
adam@1528 12260 ;
adam@1528 12261 return 0;
adam@1528 12262 }
adam@1528 12263 _ACEOF
adam@1528 12264 if ac_fn_c_try_link "$LINENO"; then :
adam@1528 12265 ax_pthread_ok=yes
adam@1528 12266 fi
adam@1528 12267 rm -f core conftest.err conftest.$ac_objext \
adam@1528 12268 conftest$ac_exeext conftest.$ac_ext
adam@1528 12269
adam@1528 12270 LIBS="$save_LIBS"
adam@1528 12271 CFLAGS="$save_CFLAGS"
adam@1528 12272
adam@1528 12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
adam@1528 12274 $as_echo "$ax_pthread_ok" >&6; }
adam@1528 12275 if test "x$ax_pthread_ok" = xyes; then
adam@1528 12276 break;
adam@1528 12277 fi
adam@1528 12278
adam@1528 12279 PTHREAD_LIBS=""
adam@1528 12280 PTHREAD_CFLAGS=""
adam@1528 12281 done
adam@1528 12282 fi
adam@1528 12283
adam@1528 12284 # Various other checks:
adam@1528 12285 if test "x$ax_pthread_ok" = xyes; then
adam@1528 12286 save_LIBS="$LIBS"
adam@1528 12287 LIBS="$PTHREAD_LIBS $LIBS"
adam@1528 12288 save_CFLAGS="$CFLAGS"
adam@1528 12289 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
adam@1528 12290
adam@1528 12291 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
adam@1528 12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
adam@1528 12293 $as_echo_n "checking for joinable pthread attribute... " >&6; }
adam@1528 12294 attr_name=unknown
adam@1528 12295 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
adam@1528 12296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adam@1528 12297 /* end confdefs.h. */
adam@1528 12298 #include <pthread.h>
adam@1528 12299 int
adam@1528 12300 main ()
adam@1528 12301 {
adam@1528 12302 int attr = $attr; return attr /* ; */
adam@1528 12303 ;
adam@1528 12304 return 0;
adam@1528 12305 }
adam@1528 12306 _ACEOF
adam@1528 12307 if ac_fn_c_try_link "$LINENO"; then :
adam@1528 12308 attr_name=$attr; break
adam@1528 12309 fi
adam@1528 12310 rm -f core conftest.err conftest.$ac_objext \
adam@1528 12311 conftest$ac_exeext conftest.$ac_ext
adam@1528 12312 done
adam@1528 12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
adam@1528 12314 $as_echo "$attr_name" >&6; }
adam@1528 12315 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
adam@1528 12316
adam@1528 12317 cat >>confdefs.h <<_ACEOF
adam@1528 12318 #define PTHREAD_CREATE_JOINABLE $attr_name
adam@1528 12319 _ACEOF
adam@1528 12320
adam@1528 12321 fi
adam@1528 12322
adam@1528 12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
adam@1528 12324 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
adam@1528 12325 flag=no
adam@1528 12326 case "${host_cpu}-${host_os}" in
adam@1528 12327 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
adam@1528 12328 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
adam@1528 12329 esac
adam@1528 12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
adam@1528 12331 $as_echo "${flag}" >&6; }
adam@1528 12332 if test "x$flag" != xno; then
adam@1528 12333 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
adam@1528 12334 fi
adam@1528 12335
adam@1528 12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
adam@1528 12337 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
adam@1599 12338 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
adam@1528 12339 $as_echo_n "(cached) " >&6
adam@1528 12340 else
adam@1528 12341
adam@1528 12342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adam@1528 12343 /* end confdefs.h. */
adam@1528 12344
adam@1528 12345 #include <pthread.h>
adam@1528 12346 int
adam@1528 12347 main ()
adam@1528 12348 {
adam@1528 12349 int i = PTHREAD_PRIO_INHERIT;
adam@1528 12350 ;
adam@1528 12351 return 0;
adam@1528 12352 }
adam@1528 12353 _ACEOF
adam@1528 12354 if ac_fn_c_try_link "$LINENO"; then :
adam@1528 12355 ax_cv_PTHREAD_PRIO_INHERIT=yes
adam@1528 12356 else
adam@1528 12357 ax_cv_PTHREAD_PRIO_INHERIT=no
adam@1528 12358 fi
adam@1528 12359 rm -f core conftest.err conftest.$ac_objext \
adam@1528 12360 conftest$ac_exeext conftest.$ac_ext
adam@1528 12361
adam@1528 12362 fi
adam@1528 12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
adam@1528 12364 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
adam@1528 12365 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
adam@1528 12366
adam@1528 12367 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
adam@1528 12368
adam@1528 12369 fi
adam@1528 12370
adam@1528 12371 LIBS="$save_LIBS"
adam@1528 12372 CFLAGS="$save_CFLAGS"
adam@1528 12373
adam@1528 12374 # More AIX lossage: must compile with xlc_r or cc_r
adam@1528 12375 if test x"$GCC" != xyes; then
adam@1528 12376 for ac_prog in xlc_r cc_r
adam@1528 12377 do
adam@1528 12378 # Extract the first word of "$ac_prog", so it can be a program name with args.
adam@1528 12379 set dummy $ac_prog; ac_word=$2
adam@1528 12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adam@1528 12381 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 12382 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
adam@1528 12383 $as_echo_n "(cached) " >&6
adam@1528 12384 else
adam@1528 12385 if test -n "$PTHREAD_CC"; then
adam@1528 12386 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
adam@1528 12387 else
adam@1528 12388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adam@1528 12389 for as_dir in $PATH
adam@1528 12390 do
adam@1528 12391 IFS=$as_save_IFS
adam@1528 12392 test -z "$as_dir" && as_dir=.
adam@1528 12393 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 12394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adam@1528 12395 ac_cv_prog_PTHREAD_CC="$ac_prog"
adam@1528 12396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adam@1528 12397 break 2
adam@1528 12398 fi
adam@1528 12399 done
adam@1528 12400 done
adam@1528 12401 IFS=$as_save_IFS
adam@1528 12402
adam@1528 12403 fi
adam@1528 12404 fi
adam@1528 12405 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
adam@1528 12406 if test -n "$PTHREAD_CC"; then
adam@1528 12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
adam@1528 12408 $as_echo "$PTHREAD_CC" >&6; }
adam@1528 12409 else
adam@1528 12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adam@1528 12411 $as_echo "no" >&6; }
adam@1528 12412 fi
adam@1528 12413
adam@1528 12414
adam@1528 12415 test -n "$PTHREAD_CC" && break
adam@1528 12416 done
adam@1528 12417 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
adam@1528 12418
adam@1528 12419 else
adam@1528 12420 PTHREAD_CC=$CC
adam@1528 12421 fi
adam@1528 12422 else
adam@1528 12423 PTHREAD_CC="$CC"
adam@1528 12424 fi
adam@1528 12425
adam@1528 12426
adam@1528 12427
adam@1528 12428
adam@1528 12429
adam@1528 12430 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
adam@1528 12431 if test x"$ax_pthread_ok" = xyes; then
adam@1528 12432 echo >/dev/null
adam@1528 12433 :
adam@1528 12434 else
adam@1528 12435 ax_pthread_ok=no
adam@1528 12436 echo "Your C compiler does not support POSIX threads."; exit 1
adam@1528 12437 fi
adam@1528 12438 ac_ext=c
adam@1528 12439 ac_cpp='$CPP $CPPFLAGS'
adam@1528 12440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adam@1528 12441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adam@1528 12442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adam@1528 12443
adam@1528 12444
adam@1528 12445
adam@1528 12446
adam@1368 12447 found=false
adam@1368 12448
adam@1368 12449 # Check whether --with-openssl was given.
adam@1368 12450 if test "${with_openssl+set}" = set; then :
adam@1368 12451 withval=$with_openssl;
adam@1368 12452 case "$withval" in
adam@1368 12453 "" | y | ye | yes | n | no)
adam@1368 12454 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
adam@1368 12455 ;;
adam@1368 12456 *) ssldirs="$withval"
adam@1368 12457 ;;
adam@1368 12458 esac
adam@1368 12459
adam@1368 12460 else
adam@1368 12461
adam@1368 12462 # if pkg-config is installed and openssl has installed a .pc file,
adam@1368 12463 # then use that information and don't search ssldirs
adam@1368 12464 # Extract the first word of "pkg-config", so it can be a program name with args.
adam@1368 12465 set dummy pkg-config; ac_word=$2
adam@1368 12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adam@1368 12467 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 12468 if ${ac_cv_path_PKG_CONFIG+:} false; then :
adam@1368 12469 $as_echo_n "(cached) " >&6
adam@1368 12470 else
adam@1368 12471 case $PKG_CONFIG in
adam@1368 12472 [\\/]* | ?:[\\/]*)
adam@1368 12473 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
adam@1368 12474 ;;
adam@1368 12475 *)
adam@1368 12476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adam@1368 12477 for as_dir in $PATH
adam@1368 12478 do
adam@1368 12479 IFS=$as_save_IFS
adam@1368 12480 test -z "$as_dir" && as_dir=.
adam@1368 12481 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 12482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adam@1368 12483 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
adam@1368 12484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adam@1368 12485 break 2
adam@1368 12486 fi
adam@1368 12487 done
adam@1368 12488 done
adam@1368 12489 IFS=$as_save_IFS
adam@1368 12490
adam@1368 12491 ;;
adam@1368 12492 esac
adam@1368 12493 fi
adam@1368 12494 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
adam@1368 12495 if test -n "$PKG_CONFIG"; then
adam@1368 12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
adam@1368 12497 $as_echo "$PKG_CONFIG" >&6; }
adam@1368 12498 else
adam@1368 12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adam@1368 12500 $as_echo "no" >&6; }
adam@1368 12501 fi
adam@1368 12502
adam@1368 12503
adam@1368 12504 if test x"$PKG_CONFIG" != x""; then
adam@1368 12505 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
adam@1368 12506 if test $? = 0; then
adam@1368 12507 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
adam@1368 12508 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
adam@1368 12509 found=true
adam@1368 12510 fi
adam@1368 12511 fi
adam@1368 12512
adam@1368 12513 # no such luck; use some default ssldirs
adam@1368 12514 if ! $found; then
adam@1368 12515 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
adam@1368 12516 fi
adam@1368 12517
adam@1368 12518
adam@1368 12519 fi
adam@1368 12520
adam@1368 12521
adam@1368 12522
adam@1368 12523 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
adam@1368 12524 # an 'openssl' subdirectory
adam@1368 12525
adam@1368 12526 if ! $found; then
adam@1368 12527 OPENSSL_INCLUDES=
adam@1368 12528 for ssldir in $ssldirs; do
adam@1368 12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
adam@1368 12530 $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
adam@1368 12531 if test -f "$ssldir/include/openssl/ssl.h"; then
adam@1368 12532 OPENSSL_INCLUDES="-I$ssldir/include"
adam@1368 12533 OPENSSL_LDFLAGS="-L$ssldir/lib"
adam@1666 12534 OPENSSL_LIBS="-lssl -lcrypto"
adam@1368 12535 found=true
adam@1368 12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
adam@1368 12537 $as_echo "yes" >&6; }
adam@1368 12538 break
adam@1368 12539 else
adam@1368 12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adam@1368 12541 $as_echo "no" >&6; }
adam@1368 12542 fi
adam@1368 12543 done
adam@1368 12544
adam@1368 12545 # if the file wasn't found, well, go ahead and try the link anyway -- maybe
adam@1368 12546 # it will just work!
adam@1368 12547 fi
adam@1368 12548
adam@1368 12549 # try the preprocessor and linker with our new flags,
adam@1368 12550 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
adam@1368 12551
adam@1368 12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
adam@1368 12553 $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
adam@1368 12554 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
adam@1368 12555 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
adam@1368 12556
adam@1368 12557 save_LIBS="$LIBS"
adam@1368 12558 save_LDFLAGS="$LDFLAGS"
adam@1368 12559 save_CPPFLAGS="$CPPFLAGS"
adam@1368 12560 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
adam@1368 12561 LIBS="$OPENSSL_LIBS $LIBS"
adam@1368 12562 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
adam@1368 12563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1165 12564 /* end confdefs.h. */
adam@1368 12565 #include <openssl/ssl.h>
adamc@1165 12566 int
adamc@1165 12567 main ()
adamc@1165 12568 {
adam@1368 12569 SSL_new(NULL)
adamc@1165 12570 ;
adamc@1165 12571 return 0;
adamc@1165 12572 }
adamc@1165 12573 _ACEOF
adamc@1165 12574 if ac_fn_c_try_link "$LINENO"; then :
adam@1368 12575
adam@1368 12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
adam@1368 12577 $as_echo "yes" >&6; }
adam@1368 12578 echo >/dev/null
adam@1368 12579
adam@1368 12580 else
adam@1368 12581
adam@1368 12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adam@1368 12583 $as_echo "no" >&6; }
adam@1369 12584 echo "You must install OpenSSL development files."; exit 1
adam@1368 12585
adamc@1165 12586 fi
adamc@1165 12587 rm -f core conftest.err conftest.$ac_objext \
adamc@1165 12588 conftest$ac_exeext conftest.$ac_ext
adam@1368 12589 CPPFLAGS="$save_CPPFLAGS"
adam@1368 12590 LDFLAGS="$save_LDFLAGS"
adam@1368 12591 LIBS="$save_LIBS"
adam@1368 12592
adam@1368 12593
adam@1368 12594
adamc@1165 12595
adamc@1165 12596
adamc@1165 12597
adamc@1165 12598 # Extract the first word of "mlton", so it can be a program name with args.
adamc@1165 12599 set dummy mlton; ac_word=$2
adamc@1165 12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1165 12601 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 12602 if ${ac_cv_prog_MLTON+:} false; then :
adamc@1165 12603 $as_echo_n "(cached) " >&6
adamc@1165 12604 else
adamc@1165 12605 if test -n "$MLTON"; then
adamc@1165 12606 ac_cv_prog_MLTON="$MLTON" # Let the user override the test.
adamc@1165 12607 else
adamc@1165 12608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1165 12609 for as_dir in $PATH
adamc@1165 12610 do
adamc@1165 12611 IFS=$as_save_IFS
adamc@1165 12612 test -z "$as_dir" && as_dir=.
adamc@1165 12613 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 12614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1165 12615 ac_cv_prog_MLTON="yes"
adamc@1165 12616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1165 12617 break 2
adamc@1165 12618 fi
adamc@1165 12619 done
adamc@1165 12620 done
adamc@1165 12621 IFS=$as_save_IFS
adamc@1165 12622
adamc@1165 12623 fi
adamc@1165 12624 fi
adamc@1165 12625 MLTON=$ac_cv_prog_MLTON
adamc@1165 12626 if test -n "$MLTON"; then
adamc@1165 12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MLTON" >&5
adamc@1165 12628 $as_echo "$MLTON" >&6; }
adamc@1165 12629 else
adamc@1165 12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1165 12631 $as_echo "no" >&6; }
adamc@1165 12632 fi
adamc@1165 12633
adamc@1165 12634
adamc@1165 12635
adamc@1165 12636 if test -z $MLTON; then
adamc@1165 12637 echo "You must install MLton."
adamc@1165 12638 exit 1
adamc@1165 12639 fi
adamc@1165 12640
adamc@1165 12641 # Extract the first word of "mllex", so it can be a program name with args.
adamc@1165 12642 set dummy mllex; ac_word=$2
adamc@1165 12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1165 12644 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 12645 if ${ac_cv_prog_MLLEX+:} false; then :
adamc@1165 12646 $as_echo_n "(cached) " >&6
adamc@1165 12647 else
adamc@1165 12648 if test -n "$MLLEX"; then
adamc@1165 12649 ac_cv_prog_MLLEX="$MLLEX" # Let the user override the test.
adamc@1165 12650 else
adamc@1165 12651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1165 12652 for as_dir in $PATH
adamc@1165 12653 do
adamc@1165 12654 IFS=$as_save_IFS
adamc@1165 12655 test -z "$as_dir" && as_dir=.
adamc@1165 12656 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 12657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1165 12658 ac_cv_prog_MLLEX="yes"
adamc@1165 12659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1165 12660 break 2
adamc@1165 12661 fi
adamc@1165 12662 done
adamc@1165 12663 done
adamc@1165 12664 IFS=$as_save_IFS
adamc@1165 12665
adamc@1165 12666 fi
adamc@1165 12667 fi
adamc@1165 12668 MLLEX=$ac_cv_prog_MLLEX
adamc@1165 12669 if test -n "$MLLEX"; then
adamc@1165 12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MLLEX" >&5
adamc@1165 12671 $as_echo "$MLLEX" >&6; }
adamc@1165 12672 else
adamc@1165 12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1165 12674 $as_echo "no" >&6; }
adamc@1165 12675 fi
adamc@1165 12676
adamc@1165 12677
adamc@1165 12678
adamc@1165 12679 if test -z $MLLEX; then
adamc@1165 12680 echo "You must install MLton (to get mllex)."
adamc@1165 12681 exit 1
adamc@1165 12682 fi
adamc@1165 12683
adamc@1165 12684 # Extract the first word of "mlyacc", so it can be a program name with args.
adamc@1165 12685 set dummy mlyacc; ac_word=$2
adamc@1165 12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1165 12687 $as_echo_n "checking for $ac_word... " >&6; }
adam@1599 12688 if ${ac_cv_prog_MLYACC+:} false; then :
adamc@1165 12689 $as_echo_n "(cached) " >&6
adamc@1165 12690 else
adamc@1165 12691 if test -n "$MLYACC"; then
adamc@1165 12692 ac_cv_prog_MLYACC="$MLYACC" # Let the user override the test.
adamc@1165 12693 else
adamc@1165 12694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1165 12695 for as_dir in $PATH
adamc@1165 12696 do
adamc@1165 12697 IFS=$as_save_IFS
adamc@1165 12698 test -z "$as_dir" && as_dir=.
adamc@1165 12699 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1771 12700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
adamc@1165 12701 ac_cv_prog_MLYACC="yes"
adamc@1165 12702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1165 12703 break 2
adamc@1165 12704 fi
adamc@1165 12705 done
adamc@1165 12706 done
adamc@1165 12707 IFS=$as_save_IFS
adamc@1165 12708
adamc@1165 12709 fi
adamc@1165 12710 fi
adamc@1165 12711 MLYACC=$ac_cv_prog_MLYACC
adamc@1165 12712 if test -n "$MLYACC"; then
adamc@1165 12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MLYACC" >&5
adamc@1165 12714 $as_echo "$MLYACC" >&6; }
adamc@1165 12715 else
adamc@1165 12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1165 12717 $as_echo "no" >&6; }
adamc@1165 12718 fi
adamc@1165 12719
adamc@1165 12720
adamc@1165 12721
adamc@1165 12722 if test -z $MLYACC; then
adamc@1165 12723 echo "You must install MLton (to get mlyacc)."
adamc@1165 12724 exit 1
adamc@1165 12725 fi
adamc@1165 12726
adamc@429 12727 if test $prefix = "NONE"; then
adamc@429 12728 prefix=/usr/local
adamc@429 12729 fi
adamc@429 12730
adamc@378 12731 if test -z $BIN; then
adamc@429 12732 BIN=$prefix/bin
adamc@378 12733 fi
adamc@378 12734
adamc@378 12735 if test -z $LIB; then
adam@1740 12736 LIB=$prefix/lib
adam@1740 12737 fi
adam@1740 12738
adam@1740 12739 if test -z $SRCLIB; then
adam@1740 12740 SRCLIB=$prefix/lib/urweb
adamc@378 12741 fi
adamc@378 12742
adamc@378 12743 if test -z $INCLUDE; then
adamc@429 12744 INCLUDE=$prefix/include/urweb
adamc@378 12745 fi
adamc@378 12746
adamc@378 12747 if test -z $SITELISP; then
adamc@429 12748 SITELISP=$prefix/share/emacs/site-lisp/urweb-mode
adamc@378 12749 fi
adamc@378 12750
adamc@378 12751
adam@1441 12752 # Check whether --with-emacs was given.
adam@1441 12753 if test "${with_emacs+set}" = set; then :
adam@1441 12754 withval=$with_emacs;
adam@1441 12755 else
adam@1441 12756 with_emacs=yes
adam@1441 12757 fi
adam@1441 12758
adam@1441 12759
adam@1441 12760 if test "x$with_emacs" = xyes; then
adam@1441 12761 USE_EMACS_TRUE=
adam@1441 12762 USE_EMACS_FALSE='#'
adam@1441 12763 else
adam@1441 12764 USE_EMACS_TRUE='#'
adam@1441 12765 USE_EMACS_FALSE=
adam@1441 12766 fi
adam@1441 12767
adam@1441 12768
adam@1464 12769 if test -z $PGHEADER; then
adam@1464 12770 for ac_header in postgresql/libpq-fe.h
adam@1464 12771 do :
adam@1464 12772 ac_fn_c_check_header_mongrel "$LINENO" "postgresql/libpq-fe.h" "ac_cv_header_postgresql_libpq_fe_h" "$ac_includes_default"
adam@1599 12773 if test "x$ac_cv_header_postgresql_libpq_fe_h" = xyes; then :
adam@1464 12774 cat >>confdefs.h <<_ACEOF
adam@1464 12775 #define HAVE_POSTGRESQL_LIBPQ_FE_H 1
adam@1464 12776 _ACEOF
adam@1464 12777 PGHEADER=postgresql/libpq-fe.h
adam@1464 12778 fi
adam@1464 12779
adam@1464 12780 done
adam@1464 12781
adam@1464 12782 fi
adam@1464 12783
adam@1464 12784 if test -z $PGHEADER; then
adam@1464 12785 PGHEADER=libpq-fe.h
adam@1464 12786 fi
adam@1464 12787
adam@1464 12788 if test -z $MSHEADER; then
adam@1464 12789 for ac_header in mysql/mysql.h
adam@1464 12790 do :
adam@1464 12791 ac_fn_c_check_header_mongrel "$LINENO" "mysql/mysql.h" "ac_cv_header_mysql_mysql_h" "$ac_includes_default"
adam@1599 12792 if test "x$ac_cv_header_mysql_mysql_h" = xyes; then :
adam@1464 12793 cat >>confdefs.h <<_ACEOF
adam@1464 12794 #define HAVE_MYSQL_MYSQL_H 1
adam@1464 12795 _ACEOF
adam@1464 12796 MSHEADER=mysql/mysql.h
adam@1464 12797 fi
adam@1464 12798
adam@1464 12799 done
adam@1464 12800
adam@1464 12801 fi
adam@1464 12802
adam@1464 12803 if test -z $MSHEADER; then
adam@1464 12804 MSHEADER=mysql.h
adam@1464 12805 fi
adam@1464 12806
adam@1464 12807 if test -z $SQHEADER; then
adam@1464 12808 SQHEADER=sqlite3.h
adam@1464 12809 fi
adam@1464 12810
adam@1520 12811 if test $WORKING_VERSION = "1"; then
adam@1526 12812 VERSION="$VERSION + `hg identify || (cat .hg_archival.txt | grep 'node\:') || echo ?`"
adam@1520 12813 fi
adam@1520 12814
adam@1520 12815
adam@1464 12816
adam@1464 12817
adam@1464 12818
adam@1441 12819
adamc@1132 12820
adamc@1132 12821
adamc@1132 12822
adamc@1132 12823
adamc@1132 12824
adam@1474 12825
adam@1528 12826
adam@1528 12827
adam@1740 12828
adamc@1132 12829 ac_config_files="$ac_config_files Makefile src/c/Makefile src/config.sml"
adamc@1132 12830
adamc@378 12831
adamc@378 12832 cat >confcache <<\_ACEOF
adamc@378 12833 # This file is a shell script that caches the results of configure
adamc@378 12834 # tests run on this system so they can be shared between configure
adamc@378 12835 # scripts and configure runs, see configure's option --config-cache.
adamc@378 12836 # It is not useful on other systems. If it contains results you don't
adamc@378 12837 # want to keep, you may remove or edit it.
adamc@378 12838 #
adamc@378 12839 # config.status only pays attention to the cache file if you give it
adamc@378 12840 # the --recheck option to rerun configure.
adamc@378 12841 #
adamc@378 12842 # `ac_cv_env_foo' variables (set or unset) will be overridden when
adamc@378 12843 # loading this file, other *unset* `ac_cv_foo' will be assigned the
adamc@378 12844 # following values.
adamc@378 12845
adamc@378 12846 _ACEOF
adamc@378 12847
adamc@378 12848 # The following way of writing the cache mishandles newlines in values,
adamc@378 12849 # but we know of no workaround that is simple, portable, and efficient.
adamc@378 12850 # So, we kill variables containing newlines.
adamc@378 12851 # Ultrix sh set writes to stderr and can't be redirected directly,
adamc@378 12852 # and sets the high bit in the cache file unless we assign to the vars.
adamc@378 12853 (
adamc@378 12854 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
adamc@378 12855 eval ac_val=\$$ac_var
adamc@378 12856 case $ac_val in #(
adamc@378 12857 *${as_nl}*)
adamc@378 12858 case $ac_var in #(
adamc@1095 12859 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
adamc@1095 12860 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
adamc@378 12861 esac
adamc@378 12862 case $ac_var in #(
adamc@378 12863 _ | IFS | as_nl) ;; #(
adamc@1095 12864 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
adamc@1095 12865 *) { eval $ac_var=; unset $ac_var;} ;;
adamc@378 12866 esac ;;
adamc@378 12867 esac
adamc@378 12868 done
adamc@378 12869
adamc@378 12870 (set) 2>&1 |
adamc@378 12871 case $as_nl`(ac_space=' '; set) 2>&1` in #(
adamc@378 12872 *${as_nl}ac_space=\ *)
adamc@1095 12873 # `set' does not quote correctly, so add quotes: double-quote
adamc@1095 12874 # substitution turns \\\\ into \\, and sed turns \\ into \.
adamc@378 12875 sed -n \
adamc@378 12876 "s/'/'\\\\''/g;
adamc@378 12877 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
adamc@378 12878 ;; #(
adamc@378 12879 *)
adamc@378 12880 # `set' quotes correctly as required by POSIX, so do not add quotes.
adamc@378 12881 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
adamc@378 12882 ;;
adamc@378 12883 esac |
adamc@378 12884 sort
adamc@378 12885 ) |
adamc@378 12886 sed '
adamc@378 12887 /^ac_cv_env_/b end
adamc@378 12888 t clear
adamc@378 12889 :clear
adamc@378 12890 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
adamc@378 12891 t end
adamc@378 12892 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
adamc@378 12893 :end' >>confcache
adamc@378 12894 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
adamc@378 12895 if test -w "$cache_file"; then
adam@1599 12896 if test "x$cache_file" != "x/dev/null"; then
adamc@1095 12897 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
adamc@1095 12898 $as_echo "$as_me: updating cache $cache_file" >&6;}
adam@1599 12899 if test ! -f "$cache_file" || test -h "$cache_file"; then
adam@1599 12900 cat confcache >"$cache_file"
adam@1599 12901 else
adam@1599 12902 case $cache_file in #(
adam@1599 12903 */* | ?:*)
adam@1599 12904 mv -f confcache "$cache_file"$$ &&
adam@1599 12905 mv -f "$cache_file"$$ "$cache_file" ;; #(
adam@1599 12906 *)
adam@1599 12907 mv -f confcache "$cache_file" ;;
adam@1599 12908 esac
adam@1599 12909 fi
adam@1599 12910 fi
adamc@378 12911 else
adamc@1095 12912 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
adamc@1095 12913 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
adamc@378 12914 fi
adamc@378 12915 fi
adamc@378 12916 rm -f confcache
adamc@378 12917
adamc@378 12918 test "x$prefix" = xNONE && prefix=$ac_default_prefix
adamc@378 12919 # Let make expand exec_prefix.
adamc@378 12920 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
adamc@378 12921
adamc@1263 12922 DEFS=-DHAVE_CONFIG_H
adamc@378 12923
adamc@378 12924 ac_libobjs=
adamc@378 12925 ac_ltlibobjs=
adam@1315 12926 U=
adamc@378 12927 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
adamc@378 12928 # 1. Remove the extension, and $U if already installed.
adamc@378 12929 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
adamc@1095 12930 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
adamc@378 12931 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
adamc@378 12932 # will be set to the directory where LIBOBJS objects are built.
adamc@1095 12933 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
adamc@1095 12934 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
adamc@378 12935 done
adamc@378 12936 LIBOBJS=$ac_libobjs
adamc@378 12937
adamc@378 12938 LTLIBOBJS=$ac_ltlibobjs
adamc@378 12939
adamc@378 12940
adamc@1149 12941 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
adam@1315 12942 as_fn_error $? "conditional \"AMDEP\" was never defined.
adamc@1149 12943 Usually this means the macro was only invoked conditionally." "$LINENO" 5
adamc@1149 12944 fi
adamc@1149 12945 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
adam@1315 12946 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
adamc@1149 12947 Usually this means the macro was only invoked conditionally." "$LINENO" 5
adamc@1149 12948 fi
adamc@1132 12949 if test -n "$EXEEXT"; then
adamc@1132 12950 am__EXEEXT_TRUE=
adamc@1132 12951 am__EXEEXT_FALSE='#'
adamc@1132 12952 else
adamc@1132 12953 am__EXEEXT_TRUE='#'
adamc@1132 12954 am__EXEEXT_FALSE=
adamc@1132 12955 fi
adamc@1132 12956
adam@1441 12957 if test -z "${USE_EMACS_TRUE}" && test -z "${USE_EMACS_FALSE}"; then
adam@1441 12958 as_fn_error $? "conditional \"USE_EMACS\" was never defined.
adam@1441 12959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
adam@1441 12960 fi
adamc@378 12961
adam@1599 12962 : "${CONFIG_STATUS=./config.status}"
adamc@1095 12963 ac_write_fail=0
adamc@378 12964 ac_clean_files_save=$ac_clean_files
adamc@378 12965 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
adamc@1095 12966 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
adamc@1095 12967 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
adamc@1095 12968 as_write_fail=0
adamc@1095 12969 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
adamc@378 12970 #! $SHELL
adamc@378 12971 # Generated by $as_me.
adamc@378 12972 # Run this file to recreate the current configuration.
adamc@378 12973 # Compiler output produced by configure, useful for debugging
adamc@378 12974 # configure, is in config.log if it exists.
adamc@378 12975
adamc@378 12976 debug=false
adamc@378 12977 ac_cs_recheck=false
adamc@378 12978 ac_cs_silent=false
adamc@1095 12979
adamc@378 12980 SHELL=\${CONFIG_SHELL-$SHELL}
adamc@1095 12981 export SHELL
adamc@1095 12982 _ASEOF
adamc@1095 12983 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
adamc@1095 12984 ## -------------------- ##
adamc@1095 12985 ## M4sh Initialization. ##
adamc@1095 12986 ## -------------------- ##
adamc@378 12987
adamc@378 12988 # Be more Bourne compatible
adamc@378 12989 DUALCASE=1; export DUALCASE # for MKS sh
adamc@1095 12990 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
adamc@378 12991 emulate sh
adamc@378 12992 NULLCMD=:
adamc@1095 12993 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
adamc@378 12994 # is contrary to our usage. Disable this feature.
adamc@378 12995 alias -g '${1+"$@"}'='"$@"'
adamc@378 12996 setopt NO_GLOB_SUBST
adamc@378 12997 else
adamc@1095 12998 case `(set -o) 2>/dev/null` in #(
adamc@1095 12999 *posix*) :
adamc@1095 13000 set -o posix ;; #(
adamc@1095 13001 *) :
adamc@1095 13002 ;;
adamc@378 13003 esac
adamc@378 13004 fi
adamc@378 13005
adamc@378 13006
adamc@1095 13007 as_nl='
adamc@1095 13008 '
adamc@1095 13009 export as_nl
adamc@1095 13010 # Printing a long string crashes Solaris 7 /usr/bin/printf.
adamc@1095 13011 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
adamc@1095 13012 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
adamc@1095 13013 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
adamc@1095 13014 # Prefer a ksh shell builtin over an external printf program on Solaris,
adamc@1095 13015 # but without wasting forks for bash or zsh.
adamc@1095 13016 if test -z "$BASH_VERSION$ZSH_VERSION" \
adamc@1095 13017 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
adamc@1095 13018 as_echo='print -r --'
adamc@1095 13019 as_echo_n='print -rn --'
adamc@1095 13020 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
adamc@1095 13021 as_echo='printf %s\n'
adamc@1095 13022 as_echo_n='printf %s'
adamc@1095 13023 else
adamc@1095 13024 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
adamc@1095 13025 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
adamc@1095 13026 as_echo_n='/usr/ucb/echo -n'
adamc@1095 13027 else
adamc@1095 13028 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
adamc@1095 13029 as_echo_n_body='eval
adamc@1095 13030 arg=$1;
adamc@1095 13031 case $arg in #(
adamc@1095 13032 *"$as_nl"*)
adamc@1095 13033 expr "X$arg" : "X\\(.*\\)$as_nl";
adamc@1095 13034 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
adamc@1095 13035 esac;
adamc@1095 13036 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
adamc@1095 13037 '
adamc@1095 13038 export as_echo_n_body
adamc@1095 13039 as_echo_n='sh -c $as_echo_n_body as_echo'
adamc@1095 13040 fi
adamc@1095 13041 export as_echo_body
adamc@1095 13042 as_echo='sh -c $as_echo_body as_echo'
adamc@1095 13043 fi
adamc@378 13044
adamc@378 13045 # The user is always right.
adamc@378 13046 if test "${PATH_SEPARATOR+set}" != set; then
adamc@1095 13047 PATH_SEPARATOR=:
adamc@1095 13048 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
adamc@1095 13049 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
adamc@1095 13050 PATH_SEPARATOR=';'
adamc@1095 13051 }
adamc@378 13052 fi
adamc@378 13053
adamc@378 13054
adamc@378 13055 # IFS
adamc@378 13056 # We need space, tab and new line, in precisely that order. Quoting is
adamc@378 13057 # there to prevent editors from complaining about space-tab.
adamc@378 13058 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
adamc@378 13059 # splitting by setting IFS to empty value.)
adamc@378 13060 IFS=" "" $as_nl"
adamc@378 13061
adamc@378 13062 # Find who we are. Look in the path if we contain no directory separator.
adam@1599 13063 as_myself=
adamc@1095 13064 case $0 in #((
adamc@378 13065 *[\\/]* ) as_myself=$0 ;;
adamc@378 13066 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@378 13067 for as_dir in $PATH
adamc@378 13068 do
adamc@378 13069 IFS=$as_save_IFS
adamc@378 13070 test -z "$as_dir" && as_dir=.
adamc@1095 13071 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
adamc@1095 13072 done
adamc@378 13073 IFS=$as_save_IFS
adamc@378 13074
adamc@378 13075 ;;
adamc@378 13076 esac
adamc@378 13077 # We did not find ourselves, most probably we were run as `sh COMMAND'
adamc@378 13078 # in which case we are not to be found in the path.
adamc@378 13079 if test "x$as_myself" = x; then
adamc@378 13080 as_myself=$0
adamc@378 13081 fi
adamc@378 13082 if test ! -f "$as_myself"; then
adamc@1095 13083 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
adamc@1095 13084 exit 1
adamc@378 13085 fi
adamc@378 13086
adamc@1095 13087 # Unset variables that we do not need and which cause bugs (e.g. in
adamc@1095 13088 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
adamc@1095 13089 # suppresses any "Segmentation fault" message there. '((' could
adamc@1095 13090 # trigger a bug in pdksh 5.2.14.
adamc@1095 13091 for as_var in BASH_ENV ENV MAIL MAILPATH
adamc@1095 13092 do eval test x\${$as_var+set} = xset \
adamc@1095 13093 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
adamc@378 13094 done
adamc@378 13095 PS1='$ '
adamc@378 13096 PS2='> '
adamc@378 13097 PS4='+ '
adamc@378 13098
adamc@378 13099 # NLS nuisances.
adamc@1095 13100 LC_ALL=C
adamc@1095 13101 export LC_ALL
adamc@1095 13102 LANGUAGE=C
adamc@1095 13103 export LANGUAGE
adamc@1095 13104
adamc@1095 13105 # CDPATH.
adamc@1095 13106 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
adamc@1095 13107
adamc@1095 13108
adam@1315 13109 # as_fn_error STATUS ERROR [LINENO LOG_FD]
adam@1315 13110 # ----------------------------------------
adamc@1095 13111 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
adamc@1095 13112 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
adam@1315 13113 # script with STATUS, using 1 if that was 0.
adamc@1095 13114 as_fn_error ()
adamc@1095 13115 {
adam@1315 13116 as_status=$1; test $as_status -eq 0 && as_status=1
adam@1315 13117 if test "$4"; then
adam@1315 13118 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
adam@1315 13119 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
adam@1315 13120 fi
adam@1315 13121 $as_echo "$as_me: error: $2" >&2
adamc@1095 13122 as_fn_exit $as_status
adamc@1095 13123 } # as_fn_error
adamc@378 13124
adamc@1095 13125
adamc@1095 13126 # as_fn_set_status STATUS
adamc@1095 13127 # -----------------------
adamc@1095 13128 # Set $? to STATUS, without forking.
adamc@1095 13129 as_fn_set_status ()
adamc@1095 13130 {
adamc@1095 13131 return $1
adamc@1095 13132 } # as_fn_set_status
adamc@1095 13133
adamc@1095 13134 # as_fn_exit STATUS
adamc@1095 13135 # -----------------
adamc@1095 13136 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
adamc@1095 13137 as_fn_exit ()
adamc@1095 13138 {
adamc@1095 13139 set +e
adamc@1095 13140 as_fn_set_status $1
adamc@1095 13141 exit $1
adamc@1095 13142 } # as_fn_exit
adamc@1095 13143
adamc@1095 13144 # as_fn_unset VAR
adamc@1095 13145 # ---------------
adamc@1095 13146 # Portably unset VAR.
adamc@1095 13147 as_fn_unset ()
adamc@1095 13148 {
adamc@1095 13149 { eval $1=; unset $1;}
adamc@1095 13150 }
adamc@1095 13151 as_unset=as_fn_unset
adamc@1095 13152 # as_fn_append VAR VALUE
adamc@1095 13153 # ----------------------
adamc@1095 13154 # Append the text in VALUE to the end of the definition contained in VAR. Take
adamc@1095 13155 # advantage of any shell optimizations that allow amortized linear growth over
adamc@1095 13156 # repeated appends, instead of the typical quadratic growth present in naive
adamc@1095 13157 # implementations.
adamc@1095 13158 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
adamc@1095 13159 eval 'as_fn_append ()
adamc@1095 13160 {
adamc@1095 13161 eval $1+=\$2
adamc@1095 13162 }'
adamc@1095 13163 else
adamc@1095 13164 as_fn_append ()
adamc@1095 13165 {
adamc@1095 13166 eval $1=\$$1\$2
adamc@1095 13167 }
adamc@1095 13168 fi # as_fn_append
adamc@1095 13169
adamc@1095 13170 # as_fn_arith ARG...
adamc@1095 13171 # ------------------
adamc@1095 13172 # Perform arithmetic evaluation on the ARGs, and store the result in the
adamc@1095 13173 # global $as_val. Take advantage of shells that can avoid forks. The arguments
adamc@1095 13174 # must be portable across $(()) and expr.
adamc@1095 13175 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
adamc@1095 13176 eval 'as_fn_arith ()
adamc@1095 13177 {
adamc@1095 13178 as_val=$(( $* ))
adamc@1095 13179 }'
adamc@1095 13180 else
adamc@1095 13181 as_fn_arith ()
adamc@1095 13182 {
adamc@1095 13183 as_val=`expr "$@" || test $? -eq 1`
adamc@1095 13184 }
adamc@1095 13185 fi # as_fn_arith
adamc@1095 13186
adamc@1095 13187
adamc@378 13188 if expr a : '\(a\)' >/dev/null 2>&1 &&
adamc@378 13189 test "X`expr 00001 : '.*\(...\)'`" = X001; then
adamc@378 13190 as_expr=expr
adamc@378 13191 else
adamc@378 13192 as_expr=false
adamc@378 13193 fi
adamc@378 13194
adamc@378 13195 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
adamc@378 13196 as_basename=basename
adamc@378 13197 else
adamc@378 13198 as_basename=false
adamc@378 13199 fi
adamc@378 13200
adamc@1095 13201 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
adamc@1095 13202 as_dirname=dirname
adamc@1095 13203 else
adamc@1095 13204 as_dirname=false
adamc@1095 13205 fi
adamc@378 13206
adamc@378 13207 as_me=`$as_basename -- "$0" ||
adamc@378 13208 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
adamc@378 13209 X"$0" : 'X\(//\)$' \| \
adamc@378 13210 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
adamc@1095 13211 $as_echo X/"$0" |
adamc@378 13212 sed '/^.*\/\([^/][^/]*\)\/*$/{
adamc@378 13213 s//\1/
adamc@378 13214 q
adamc@378 13215 }
adamc@378 13216 /^X\/\(\/\/\)$/{
adamc@378 13217 s//\1/
adamc@378 13218 q
adamc@378 13219 }
adamc@378 13220 /^X\/\(\/\).*/{
adamc@378 13221 s//\1/
adamc@378 13222 q
adamc@378 13223 }
adamc@378 13224 s/.*/./; q'`
adamc@378 13225
adamc@1095 13226 # Avoid depending upon Character Ranges.
adamc@1095 13227 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
adamc@1095 13228 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
adamc@1095 13229 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
adamc@1095 13230 as_cr_digits='0123456789'
adamc@1095 13231 as_cr_alnum=$as_cr_Letters$as_cr_digits
adamc@378 13232
adamc@378 13233 ECHO_C= ECHO_N= ECHO_T=
adamc@1095 13234 case `echo -n x` in #(((((
adamc@378 13235 -n*)
adamc@1095 13236 case `echo 'xy\c'` in
adamc@378 13237 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
adamc@1095 13238 xy) ECHO_C='\c';;
adamc@1095 13239 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
adamc@1095 13240 ECHO_T=' ';;
adamc@378 13241 esac;;
adamc@378 13242 *)
adamc@378 13243 ECHO_N='-n';;
adamc@378 13244 esac
adamc@378 13245
adamc@378 13246 rm -f conf$$ conf$$.exe conf$$.file
adamc@378 13247 if test -d conf$$.dir; then
adamc@378 13248 rm -f conf$$.dir/conf$$.file
adamc@378 13249 else
adamc@378 13250 rm -f conf$$.dir
adamc@1095 13251 mkdir conf$$.dir 2>/dev/null
adamc@378 13252 fi
adamc@1095 13253 if (echo >conf$$.file) 2>/dev/null; then
adamc@1095 13254 if ln -s conf$$.file conf$$ 2>/dev/null; then
adamc@1095 13255 as_ln_s='ln -s'
adamc@1095 13256 # ... but there are two gotchas:
adamc@1095 13257 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
adamc@1095 13258 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
adam@1771 13259 # In both cases, we have to default to `cp -pR'.
adamc@1095 13260 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
adam@1771 13261 as_ln_s='cp -pR'
adamc@1095 13262 elif ln conf$$.file conf$$ 2>/dev/null; then
adamc@1095 13263 as_ln_s=ln
adamc@1095 13264 else
adam@1771 13265 as_ln_s='cp -pR'
adam@1771 13266 fi
adam@1771 13267 else
adam@1771 13268 as_ln_s='cp -pR'
adamc@378 13269 fi
adamc@378 13270 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
adamc@378 13271 rmdir conf$$.dir 2>/dev/null
adamc@378 13272
adamc@1095 13273
adamc@1095 13274 # as_fn_mkdir_p
adamc@1095 13275 # -------------
adamc@1095 13276 # Create "$as_dir" as a directory, including parents if necessary.
adamc@1095 13277 as_fn_mkdir_p ()
adamc@1095 13278 {
adamc@1095 13279
adamc@1095 13280 case $as_dir in #(
adamc@1095 13281 -*) as_dir=./$as_dir;;
adamc@1095 13282 esac
adamc@1095 13283 test -d "$as_dir" || eval $as_mkdir_p || {
adamc@1095 13284 as_dirs=
adamc@1095 13285 while :; do
adamc@1095 13286 case $as_dir in #(
adamc@1095 13287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
adamc@1095 13288 *) as_qdir=$as_dir;;
adamc@1095 13289 esac
adamc@1095 13290 as_dirs="'$as_qdir' $as_dirs"
adamc@1095 13291 as_dir=`$as_dirname -- "$as_dir" ||
adamc@1095 13292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
adamc@1095 13293 X"$as_dir" : 'X\(//\)[^/]' \| \
adamc@1095 13294 X"$as_dir" : 'X\(//\)$' \| \
adamc@1095 13295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
adamc@1095 13296 $as_echo X"$as_dir" |
adamc@1095 13297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
adamc@1095 13298 s//\1/
adamc@1095 13299 q
adamc@1095 13300 }
adamc@1095 13301 /^X\(\/\/\)[^/].*/{
adamc@1095 13302 s//\1/
adamc@1095 13303 q
adamc@1095 13304 }
adamc@1095 13305 /^X\(\/\/\)$/{
adamc@1095 13306 s//\1/
adamc@1095 13307 q
adamc@1095 13308 }
adamc@1095 13309 /^X\(\/\).*/{
adamc@1095 13310 s//\1/
adamc@1095 13311 q
adamc@1095 13312 }
adamc@1095 13313 s/.*/./; q'`
adamc@1095 13314 test -d "$as_dir" && break
adamc@1095 13315 done
adamc@1095 13316 test -z "$as_dirs" || eval "mkdir $as_dirs"
adam@1315 13317 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
adamc@1095 13318
adamc@1095 13319
adamc@1095 13320 } # as_fn_mkdir_p
adamc@378 13321 if mkdir -p . 2>/dev/null; then
adamc@1095 13322 as_mkdir_p='mkdir -p "$as_dir"'
adamc@378 13323 else
adamc@378 13324 test -d ./-p && rmdir ./-p
adamc@378 13325 as_mkdir_p=false
adamc@378 13326 fi
adamc@378 13327
adam@1771 13328
adam@1771 13329 # as_fn_executable_p FILE
adam@1771 13330 # -----------------------
adam@1771 13331 # Test if FILE is an executable regular file.
adam@1771 13332 as_fn_executable_p ()
adam@1771 13333 {
adam@1771 13334 test -f "$1" && test -x "$1"
adam@1771 13335 } # as_fn_executable_p
adam@1771 13336 as_test_x='test -x'
adam@1771 13337 as_executable_p=as_fn_executable_p
adamc@378 13338
adamc@378 13339 # Sed expression to map a string onto a valid CPP name.
adamc@378 13340 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
adamc@378 13341
adamc@378 13342 # Sed expression to map a string onto a valid variable name.
adamc@378 13343 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
adamc@378 13344
adamc@378 13345
adamc@378 13346 exec 6>&1
adamc@1095 13347 ## ----------------------------------- ##
adamc@1095 13348 ## Main body of $CONFIG_STATUS script. ##
adamc@1095 13349 ## ----------------------------------- ##
adamc@1095 13350 _ASEOF
adamc@1095 13351 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
adamc@378 13352
adamc@1095 13353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@1095 13354 # Save the log message, to keep $0 and so on meaningful, and to
adamc@378 13355 # report actual input values of CONFIG_FILES etc. instead of their
adamc@378 13356 # values after options handling.
adamc@378 13357 ac_log="
adam@1771 13358 This file was extended by urweb $as_me 20120519, which was
adam@1771 13359 generated by GNU Autoconf 2.69. Invocation command line was
adamc@378 13360
adamc@378 13361 CONFIG_FILES = $CONFIG_FILES
adamc@378 13362 CONFIG_HEADERS = $CONFIG_HEADERS
adamc@378 13363 CONFIG_LINKS = $CONFIG_LINKS
adamc@378 13364 CONFIG_COMMANDS = $CONFIG_COMMANDS
adamc@378 13365 $ $0 $@
adamc@378 13366
adamc@378 13367 on `(hostname || uname -n) 2>/dev/null | sed 1q`
adamc@378 13368 "
adamc@378 13369
adamc@378 13370 _ACEOF
adamc@378 13371
adamc@1095 13372 case $ac_config_files in *"
adamc@1095 13373 "*) set x $ac_config_files; shift; ac_config_files=$*;;
adamc@1095 13374 esac
adamc@1095 13375
adamc@1263 13376 case $ac_config_headers in *"
adamc@1263 13377 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
adamc@1263 13378 esac
adamc@1095 13379
adamc@1095 13380
adamc@1095 13381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@378 13382 # Files that config.status was made for.
adamc@378 13383 config_files="$ac_config_files"
adamc@1263 13384 config_headers="$ac_config_headers"
adamc@1132 13385 config_commands="$ac_config_commands"
adamc@378 13386
adamc@378 13387 _ACEOF
adamc@378 13388
adamc@1095 13389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@378 13390 ac_cs_usage="\
adamc@1095 13391 \`$as_me' instantiates files and other configuration actions
adamc@1095 13392 from templates according to the current configuration. Unless the files
adamc@1095 13393 and actions are specified as TAGs, all are instantiated by default.
adamc@378 13394
adamc@1095 13395 Usage: $0 [OPTION]... [TAG]...
adamc@378 13396
adamc@378 13397 -h, --help print this help, then exit
adamc@378 13398 -V, --version print version number and configuration settings, then exit
adamc@1095 13399 --config print configuration, then exit
adamc@1095 13400 -q, --quiet, --silent
adamc@1095 13401 do not print progress messages
adamc@378 13402 -d, --debug don't remove temporary files
adamc@378 13403 --recheck update $as_me by reconfiguring in the same conditions
adamc@1095 13404 --file=FILE[:TEMPLATE]
adamc@1095 13405 instantiate the configuration file FILE
adamc@1263 13406 --header=FILE[:TEMPLATE]
adamc@1263 13407 instantiate the configuration header FILE
adamc@378 13408
adamc@378 13409 Configuration files:
adamc@378 13410 $config_files
adamc@378 13411
adamc@1263 13412 Configuration headers:
adamc@1263 13413 $config_headers
adamc@1263 13414
adamc@1132 13415 Configuration commands:
adamc@1132 13416 $config_commands
adamc@1132 13417
adamc@1095 13418 Report bugs to the package provider."
adamc@378 13419
adamc@378 13420 _ACEOF
adamc@1095 13421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@1095 13422 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
adamc@378 13423 ac_cs_version="\\
adam@1771 13424 urweb config.status 20120519
adam@1771 13425 configured by $0, generated by GNU Autoconf 2.69,
adamc@1095 13426 with options \\"\$ac_cs_config\\"
adamc@378 13427
adam@1771 13428 Copyright (C) 2012 Free Software Foundation, Inc.
adamc@378 13429 This config.status script is free software; the Free Software Foundation
adamc@378 13430 gives unlimited permission to copy, distribute and modify it."
adamc@378 13431
adamc@378 13432 ac_pwd='$ac_pwd'
adamc@378 13433 srcdir='$srcdir'
adamc@1132 13434 INSTALL='$INSTALL'
adamc@1132 13435 MKDIR_P='$MKDIR_P'
adamc@1132 13436 AWK='$AWK'
adamc@1095 13437 test -n "\$AWK" || AWK=awk
adamc@378 13438 _ACEOF
adamc@378 13439
adamc@1095 13440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@1095 13441 # The default lists apply if the user does not specify any file.
adamc@378 13442 ac_need_defaults=:
adamc@378 13443 while test $# != 0
adamc@378 13444 do
adamc@378 13445 case $1 in
adam@1315 13446 --*=?*)
adamc@378 13447 ac_option=`expr "X$1" : 'X\([^=]*\)='`
adamc@378 13448 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
adamc@378 13449 ac_shift=:
adamc@378 13450 ;;
adam@1315 13451 --*=)
adam@1315 13452 ac_option=`expr "X$1" : 'X\([^=]*\)='`
adam@1315 13453 ac_optarg=
adam@1315 13454 ac_shift=:
adam@1315 13455 ;;
adamc@378 13456 *)
adamc@378 13457 ac_option=$1
adamc@378 13458 ac_optarg=$2
adamc@378 13459 ac_shift=shift
adamc@378 13460 ;;
adamc@378 13461 esac
adamc@378 13462
adamc@378 13463 case $ac_option in
adamc@378 13464 # Handling of the options.
adamc@378 13465 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
adamc@378 13466 ac_cs_recheck=: ;;
adamc@378 13467 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
adamc@1095 13468 $as_echo "$ac_cs_version"; exit ;;
adamc@1095 13469 --config | --confi | --conf | --con | --co | --c )
adamc@1095 13470 $as_echo "$ac_cs_config"; exit ;;
adamc@378 13471 --debug | --debu | --deb | --de | --d | -d )
adamc@378 13472 debug=: ;;
adamc@378 13473 --file | --fil | --fi | --f )
adamc@378 13474 $ac_shift
adamc@1095 13475 case $ac_optarg in
adamc@1095 13476 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
adam@1315 13477 '') as_fn_error $? "missing file argument" ;;
adamc@1095 13478 esac
adamc@1095 13479 as_fn_append CONFIG_FILES " '$ac_optarg'"
adamc@378 13480 ac_need_defaults=false;;
adamc@1263 13481 --header | --heade | --head | --hea )
adamc@1263 13482 $ac_shift
adamc@1263 13483 case $ac_optarg in
adamc@1263 13484 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
adamc@1263 13485 esac
adamc@1263 13486 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
adamc@1263 13487 ac_need_defaults=false;;
adamc@1263 13488 --he | --h)
adamc@1263 13489 # Conflict between --help and --header
adam@1315 13490 as_fn_error $? "ambiguous option: \`$1'
adamc@1263 13491 Try \`$0 --help' for more information.";;
adamc@1263 13492 --help | --hel | -h )
adamc@1095 13493 $as_echo "$ac_cs_usage"; exit ;;
adamc@378 13494 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
adamc@378 13495 | -silent | --silent | --silen | --sile | --sil | --si | --s)
adamc@378 13496 ac_cs_silent=: ;;
adamc@378 13497
adamc@378 13498 # This is an error.
adam@1315 13499 -*) as_fn_error $? "unrecognized option: \`$1'
adamc@1095 13500 Try \`$0 --help' for more information." ;;
adamc@378 13501
adamc@1095 13502 *) as_fn_append ac_config_targets " $1"
adamc@378 13503 ac_need_defaults=false ;;
adamc@378 13504
adamc@378 13505 esac
adamc@378 13506 shift
adamc@378 13507 done
adamc@378 13508
adamc@378 13509 ac_configure_extra_args=
adamc@378 13510
adamc@378 13511 if $ac_cs_silent; then
adamc@378 13512 exec 6>/dev/null
adamc@378 13513 ac_configure_extra_args="$ac_configure_extra_args --silent"
adamc@378 13514 fi
adamc@378 13515
adamc@378 13516 _ACEOF
adamc@1095 13517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@378 13518 if \$ac_cs_recheck; then
adam@1771 13519 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
adamc@1095 13520 shift
adamc@1095 13521 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
adamc@1095 13522 CONFIG_SHELL='$SHELL'
adamc@378 13523 export CONFIG_SHELL
adamc@1095 13524 exec "\$@"
adamc@378 13525 fi
adamc@378 13526
adamc@378 13527 _ACEOF
adamc@1095 13528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@378 13529 exec 5>>config.log
adamc@378 13530 {
adamc@378 13531 echo
adamc@378 13532 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
adamc@378 13533 ## Running $as_me. ##
adamc@378 13534 _ASBOX
adamc@1095 13535 $as_echo "$ac_log"
adamc@378 13536 } >&5
adamc@378 13537
adamc@378 13538 _ACEOF
adamc@1095 13539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@1132 13540 #
adamc@1132 13541 # INIT-COMMANDS
adamc@1132 13542 #
adamc@1132 13543 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
adamc@1132 13544
adamc@1132 13545
adamc@1132 13546 # The HP-UX ksh and POSIX shell print the target directory to stdout
adamc@1132 13547 # if CDPATH is set.
adamc@1132 13548 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
adamc@1132 13549
adamc@1132 13550 sed_quote_subst='$sed_quote_subst'
adamc@1132 13551 double_quote_subst='$double_quote_subst'
adamc@1132 13552 delay_variable_subst='$delay_variable_subst'
adam@1459 13553 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
adam@1459 13554 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
adam@1459 13555 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
adam@1459 13556 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
adam@1459 13557 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
adam@1459 13558 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
adam@1459 13559 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
adam@1459 13560 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
adam@1599 13561 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
adam@1459 13562 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
adam@1459 13563 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
adam@1459 13564 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
adam@1459 13565 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
adam@1459 13566 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
adam@1459 13567 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
adam@1459 13568 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
adam@1459 13569 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
adam@1459 13570 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
adam@1459 13571 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
adam@1459 13572 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
adam@1459 13573 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
adam@1459 13574 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
adam@1459 13575 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
adam@1459 13576 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
adam@1459 13577 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
adam@1459 13578 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
adam@1459 13579 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
adam@1459 13580 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
adam@1459 13581 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
adam@1459 13582 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
adam@1459 13583 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
adam@1459 13584 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
adam@1459 13585 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
adam@1459 13586 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
adam@1459 13587 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
adam@1459 13588 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
adam@1459 13589 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
adam@1459 13590 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
adam@1459 13591 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
adam@1459 13592 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
adam@1459 13593 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
adam@1459 13594 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
adam@1459 13595 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
adam@1459 13596 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
adam@1459 13597 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
adam@1459 13598 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
adam@1459 13599 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
adam@1459 13600 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
adam@1459 13601 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
adam@1459 13602 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
adam@1459 13603 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
adam@1459 13604 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
adam@1459 13605 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
adam@1459 13606 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
adam@1459 13607 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
adam@1459 13608 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
adam@1459 13609 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"`'
adam@1459 13610 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
adam@1459 13611 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
adam@1459 13612 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
adam@1459 13613 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
adam@1459 13614 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
adam@1459 13615 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
adam@1459 13616 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
adam@1459 13617 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
adam@1459 13618 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
adam@1459 13619 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
adam@1459 13620 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
adam@1459 13621 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
adam@1459 13622 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
adam@1459 13623 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
adam@1459 13624 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
adam@1459 13625 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
adam@1459 13626 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
adam@1459 13627 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
adam@1459 13628 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
adam@1459 13629 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
adam@1459 13630 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
adam@1459 13631 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
adam@1459 13632 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
adam@1459 13633 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
adam@1459 13634 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
adam@1459 13635 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
adam@1459 13636 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
adam@1459 13637 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
adam@1459 13638 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
adam@1459 13639 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
adam@1459 13640 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
adam@1459 13641 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
adam@1459 13642 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
adam@1459 13643 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
adam@1459 13644 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
adam@1459 13645 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
adam@1459 13646 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
adam@1459 13647 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
adam@1459 13648 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
adam@1459 13649 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
adam@1459 13650 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
adam@1459 13651 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
adam@1459 13652 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
adam@1459 13653 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
adam@1459 13654 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
adam@1459 13655 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
adam@1459 13656 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
adam@1459 13657 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
adam@1459 13658 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
adam@1459 13659 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
adam@1459 13660 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
adam@1459 13661 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
adam@1459 13662 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
adam@1459 13663 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
adam@1459 13664 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
adam@1459 13665 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
adam@1459 13666 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
adam@1459 13667 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
adam@1459 13668 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
adam@1459 13669 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
adam@1459 13670 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
adam@1459 13671 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
adam@1459 13672 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
adam@1459 13673 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
adam@1459 13674 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
adam@1459 13675 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
adam@1459 13676 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
adam@1459 13677 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
adam@1459 13678 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
adam@1459 13679 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
adam@1459 13680 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
adam@1459 13681 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
adam@1459 13682 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
adamc@1132 13683
adamc@1132 13684 LTCC='$LTCC'
adamc@1132 13685 LTCFLAGS='$LTCFLAGS'
adamc@1132 13686 compiler='$compiler_DEFAULT'
adamc@1132 13687
adam@1459 13688 # A function that is used when there is no print builtin or printf.
adam@1459 13689 func_fallback_echo ()
adam@1459 13690 {
adam@1459 13691 eval 'cat <<_LTECHO_EOF
adam@1459 13692 \$1
adam@1459 13693 _LTECHO_EOF'
adam@1459 13694 }
adam@1459 13695
adamc@1132 13696 # Quote evaled strings.
adam@1459 13697 for var in SHELL \
adam@1459 13698 ECHO \
adam@1599 13699 PATH_SEPARATOR \
adam@1459 13700 SED \
adamc@1132 13701 GREP \
adamc@1132 13702 EGREP \
adamc@1132 13703 FGREP \
adamc@1132 13704 LD \
adamc@1132 13705 NM \
adamc@1132 13706 LN_S \
adamc@1132 13707 lt_SP2NL \
adamc@1132 13708 lt_NL2SP \
adamc@1132 13709 reload_flag \
adamc@1132 13710 OBJDUMP \
adamc@1132 13711 deplibs_check_method \
adamc@1132 13712 file_magic_cmd \
adam@1459 13713 file_magic_glob \
adam@1459 13714 want_nocaseglob \
adam@1459 13715 DLLTOOL \
adam@1459 13716 sharedlib_from_linklib_cmd \
adamc@1132 13717 AR \
adamc@1132 13718 AR_FLAGS \
adam@1459 13719 archiver_list_spec \
adamc@1132 13720 STRIP \
adamc@1132 13721 RANLIB \
adamc@1132 13722 CC \
adamc@1132 13723 CFLAGS \
adamc@1132 13724 compiler \
adamc@1132 13725 lt_cv_sys_global_symbol_pipe \
adamc@1132 13726 lt_cv_sys_global_symbol_to_cdecl \
adamc@1132 13727 lt_cv_sys_global_symbol_to_c_name_address \
adamc@1132 13728 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
adam@1459 13729 nm_file_list_spec \
adamc@1132 13730 lt_prog_compiler_no_builtin_flag \
adam@1459 13731 lt_prog_compiler_pic \
adamc@1132 13732 lt_prog_compiler_wl \
adamc@1132 13733 lt_prog_compiler_static \
adamc@1132 13734 lt_cv_prog_compiler_c_o \
adamc@1132 13735 need_locks \
adam@1459 13736 MANIFEST_TOOL \
adamc@1132 13737 DSYMUTIL \
adamc@1132 13738 NMEDIT \
adamc@1132 13739 LIPO \
adamc@1132 13740 OTOOL \
adamc@1132 13741 OTOOL64 \
adamc@1132 13742 shrext_cmds \
adamc@1132 13743 export_dynamic_flag_spec \
adamc@1132 13744 whole_archive_flag_spec \
adamc@1132 13745 compiler_needs_object \
adamc@1132 13746 with_gnu_ld \
adamc@1132 13747 allow_undefined_flag \
adamc@1132 13748 no_undefined_flag \
adamc@1132 13749 hardcode_libdir_flag_spec \
adamc@1132 13750 hardcode_libdir_separator \
adamc@1132 13751 exclude_expsyms \
adamc@1132 13752 include_expsyms \
adamc@1132 13753 file_list_spec \
adamc@1132 13754 variables_saved_for_relink \
adamc@1132 13755 libname_spec \
adamc@1132 13756 library_names_spec \
adamc@1132 13757 soname_spec \
adam@1459 13758 install_override_mode \
adamc@1132 13759 finish_eval \
adamc@1132 13760 old_striplib \
adamc@1132 13761 striplib; do
adam@1459 13762 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
adamc@1132 13763 *[\\\\\\\`\\"\\\$]*)
adam@1459 13764 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
adamc@1132 13765 ;;
adamc@1132 13766 *)
adamc@1132 13767 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
adamc@1132 13768 ;;
adamc@1132 13769 esac
adamc@1132 13770 done
adamc@1132 13771
adamc@1132 13772 # Double-quote double-evaled strings.
adamc@1132 13773 for var in reload_cmds \
adamc@1132 13774 old_postinstall_cmds \
adamc@1132 13775 old_postuninstall_cmds \
adamc@1132 13776 old_archive_cmds \
adamc@1132 13777 extract_expsyms_cmds \
adamc@1132 13778 old_archive_from_new_cmds \
adamc@1132 13779 old_archive_from_expsyms_cmds \
adamc@1132 13780 archive_cmds \
adamc@1132 13781 archive_expsym_cmds \
adamc@1132 13782 module_cmds \
adamc@1132 13783 module_expsym_cmds \
adamc@1132 13784 export_symbols_cmds \
adamc@1132 13785 prelink_cmds \
adam@1459 13786 postlink_cmds \
adamc@1132 13787 postinstall_cmds \
adamc@1132 13788 postuninstall_cmds \
adamc@1132 13789 finish_cmds \
adamc@1132 13790 sys_lib_search_path_spec \
adamc@1132 13791 sys_lib_dlsearch_path_spec; do
adam@1459 13792 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
adamc@1132 13793 *[\\\\\\\`\\"\\\$]*)
adam@1459 13794 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
adamc@1132 13795 ;;
adamc@1132 13796 *)
adamc@1132 13797 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
adamc@1132 13798 ;;
adamc@1132 13799 esac
adamc@1132 13800 done
adamc@1132 13801
adamc@1132 13802 ac_aux_dir='$ac_aux_dir'
adamc@1132 13803 xsi_shell='$xsi_shell'
adamc@1132 13804 lt_shell_append='$lt_shell_append'
adamc@1132 13805
adamc@1132 13806 # See if we are running on zsh, and set the options which allow our
adamc@1132 13807 # commands through without removal of \ escapes INIT.
adamc@1132 13808 if test -n "\${ZSH_VERSION+set}" ; then
adamc@1132 13809 setopt NO_GLOB_SUBST
adamc@1132 13810 fi
adamc@1132 13811
adamc@1132 13812
adamc@1132 13813 PACKAGE='$PACKAGE'
adamc@1132 13814 VERSION='$VERSION'
adamc@1132 13815 TIMESTAMP='$TIMESTAMP'
adamc@1132 13816 RM='$RM'
adamc@1132 13817 ofile='$ofile'
adamc@1132 13818
adamc@1132 13819
adamc@1132 13820
adamc@1132 13821
adamc@378 13822 _ACEOF
adamc@378 13823
adamc@1095 13824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@378 13825
adamc@378 13826 # Handling of arguments.
adamc@378 13827 for ac_config_target in $ac_config_targets
adamc@378 13828 do
adamc@378 13829 case $ac_config_target in
adamc@1132 13830 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
adamc@1132 13831 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
adam@1740 13832 "include/urweb/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/urweb/config.h" ;;
adamc@378 13833 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
adamc@1132 13834 "src/c/Makefile") CONFIG_FILES="$CONFIG_FILES src/c/Makefile" ;;
adamc@378 13835 "src/config.sml") CONFIG_FILES="$CONFIG_FILES src/config.sml" ;;
adamc@378 13836
adam@1599 13837 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
adamc@378 13838 esac
adamc@378 13839 done
adamc@378 13840
adamc@378 13841
adamc@378 13842 # If the user did not use the arguments to specify the items to instantiate,
adamc@378 13843 # then the envvar interface is used. Set only those that are not.
adamc@378 13844 # We use the long form for the default assignment because of an extremely
adamc@378 13845 # bizarre bug on SunOS 4.1.3.
adamc@378 13846 if $ac_need_defaults; then
adamc@378 13847 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
adamc@1263 13848 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
adamc@1132 13849 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
adamc@378 13850 fi
adamc@378 13851
adamc@378 13852 # Have a temporary directory for convenience. Make it in the build tree
adamc@378 13853 # simply because there is no reason against having it here, and in addition,
adamc@378 13854 # creating and moving files from /tmp can sometimes cause problems.
adamc@378 13855 # Hook for its removal unless debugging.
adamc@378 13856 # Note that there is a small window in which the directory will not be cleaned:
adamc@378 13857 # after its creation but before its name has been assigned to `$tmp'.
adamc@378 13858 $debug ||
adamc@378 13859 {
adam@1599 13860 tmp= ac_tmp=
adamc@378 13861 trap 'exit_status=$?
adam@1599 13862 : "${ac_tmp:=$tmp}"
adam@1599 13863 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
adamc@378 13864 ' 0
adamc@1095 13865 trap 'as_fn_exit 1' 1 2 13 15
adamc@378 13866 }
adamc@378 13867 # Create a (secure) tmp directory for tmp files.
adamc@378 13868
adamc@378 13869 {
adamc@378 13870 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
adam@1599 13871 test -d "$tmp"
adamc@378 13872 } ||
adamc@378 13873 {
adamc@378 13874 tmp=./conf$$-$RANDOM
adamc@378 13875 (umask 077 && mkdir "$tmp")
adam@1315 13876 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
adam@1599 13877 ac_tmp=$tmp
adamc@378 13878
adamc@1095 13879 # Set up the scripts for CONFIG_FILES section.
adamc@1095 13880 # No need to generate them if there are no CONFIG_FILES.
adamc@1095 13881 # This happens for instance with `./config.status config.h'.
adamc@378 13882 if test -n "$CONFIG_FILES"; then
adamc@378 13883
adamc@1095 13884
adamc@1095 13885 ac_cr=`echo X | tr X '\015'`
adamc@1095 13886 # On cygwin, bash can eat \r inside `` if the user requested igncr.
adamc@1095 13887 # But we know of no other shell where ac_cr would be empty at this
adamc@1095 13888 # point, so we can use a bashism as a fallback.
adamc@1095 13889 if test "x$ac_cr" = x; then
adamc@1095 13890 eval ac_cr=\$\'\\r\'
adamc@1095 13891 fi
adamc@1095 13892 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
adamc@1095 13893 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
adam@1315 13894 ac_cs_awk_cr='\\r'
adamc@1095 13895 else
adamc@1095 13896 ac_cs_awk_cr=$ac_cr
adamc@1095 13897 fi
adamc@1095 13898
adam@1599 13899 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
adamc@378 13900 _ACEOF
adamc@378 13901
adamc@378 13902
adamc@1095 13903 {
adamc@1095 13904 echo "cat >conf$$subs.awk <<_ACEOF" &&
adamc@1095 13905 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
adamc@1095 13906 echo "_ACEOF"
adamc@1095 13907 } >conf$$subs.sh ||
adam@1315 13908 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
adam@1315 13909 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
adamc@378 13910 ac_delim='%!_!# '
adamc@378 13911 for ac_last_try in false false false false false :; do
adamc@1095 13912 . ./conf$$subs.sh ||
adam@1315 13913 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
adamc@378 13914
adamc@1095 13915 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
adamc@1095 13916 if test $ac_delim_n = $ac_delim_num; then
adamc@378 13917 break
adamc@378 13918 elif $ac_last_try; then
adam@1315 13919 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
adamc@378 13920 else
adamc@378 13921 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
adamc@378 13922 fi
adamc@378 13923 done
adamc@1095 13924 rm -f conf$$subs.sh
adamc@378 13925
adamc@1095 13926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adam@1599 13927 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
adamc@1095 13928 _ACEOF
adamc@1095 13929 sed -n '
adamc@1095 13930 h
adamc@1095 13931 s/^/S["/; s/!.*/"]=/
adamc@1095 13932 p
adamc@1095 13933 g
adamc@1095 13934 s/^[^!]*!//
adamc@1095 13935 :repl
adamc@1095 13936 t repl
adamc@1095 13937 s/'"$ac_delim"'$//
adamc@1095 13938 t delim
adamc@1095 13939 :nl
adamc@1095 13940 h
adamc@1095 13941 s/\(.\{148\}\)..*/\1/
adamc@1095 13942 t more1
adamc@1095 13943 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
adamc@1095 13944 p
adamc@1095 13945 n
adamc@1095 13946 b repl
adamc@1095 13947 :more1
adamc@1095 13948 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
adamc@1095 13949 p
adamc@1095 13950 g
adamc@1095 13951 s/.\{148\}//
adamc@1095 13952 t nl
adamc@1095 13953 :delim
adamc@1095 13954 h
adamc@1095 13955 s/\(.\{148\}\)..*/\1/
adamc@1095 13956 t more2
adamc@1095 13957 s/["\\]/\\&/g; s/^/"/; s/$/"/
adamc@1095 13958 p
adamc@1095 13959 b
adamc@1095 13960 :more2
adamc@1095 13961 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
adamc@1095 13962 p
adamc@1095 13963 g
adamc@1095 13964 s/.\{148\}//
adamc@1095 13965 t delim
adamc@1095 13966 ' <conf$$subs.awk | sed '
adamc@1095 13967 /^[^""]/{
adamc@1095 13968 N
adamc@1095 13969 s/\n//
adamc@1095 13970 }
adamc@1095 13971 ' >>$CONFIG_STATUS || ac_write_fail=1
adamc@1095 13972 rm -f conf$$subs.awk
adamc@1095 13973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@1095 13974 _ACAWK
adam@1599 13975 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
adamc@1095 13976 for (key in S) S_is_set[key] = 1
adamc@1095 13977 FS = ""
adamc@378 13978
adamc@1095 13979 }
adamc@1095 13980 {
adamc@1095 13981 line = $ 0
adamc@1095 13982 nfields = split(line, field, "@")
adamc@1095 13983 substed = 0
adamc@1095 13984 len = length(field[1])
adamc@1095 13985 for (i = 2; i < nfields; i++) {
adamc@1095 13986 key = field[i]
adamc@1095 13987 keylen = length(key)
adamc@1095 13988 if (S_is_set[key]) {
adamc@1095 13989 value = S[key]
adamc@1095 13990 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
adamc@1095 13991 len += length(value) + length(field[++i])
adamc@1095 13992 substed = 1
adamc@1095 13993 } else
adamc@1095 13994 len += 1 + keylen
adamc@1095 13995 }
adamc@1095 13996
adamc@1095 13997 print line
adamc@1095 13998 }
adamc@1095 13999
adamc@1095 14000 _ACAWK
adamc@378 14001 _ACEOF
adamc@1095 14002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@1095 14003 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
adamc@1095 14004 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
adamc@1095 14005 else
adamc@1095 14006 cat
adam@1599 14007 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
adam@1315 14008 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
adam@1315 14009 _ACEOF
adam@1315 14010
adam@1315 14011 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
adam@1315 14012 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
adamc@378 14013 # trailing colons and then remove the whole line if VPATH becomes empty
adamc@378 14014 # (actually we leave an empty line to preserve line numbers).
adamc@378 14015 if test "x$srcdir" = x.; then
adam@1315 14016 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
adam@1315 14017 h
adam@1315 14018 s///
adam@1315 14019 s/^/:/
adam@1315 14020 s/[ ]*$/:/
adam@1315 14021 s/:\$(srcdir):/:/g
adam@1315 14022 s/:\${srcdir}:/:/g
adam@1315 14023 s/:@srcdir@:/:/g
adam@1315 14024 s/^:*//
adamc@378 14025 s/:*$//
adam@1315 14026 x
adam@1315 14027 s/\(=[ ]*\).*/\1/
adam@1315 14028 G
adam@1315 14029 s/\n//
adamc@378 14030 s/^[^=]*=[ ]*$//
adamc@378 14031 }'
adamc@378 14032 fi
adamc@378 14033
adamc@1095 14034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@378 14035 fi # test -n "$CONFIG_FILES"
adamc@378 14036
adamc@1263 14037 # Set up the scripts for CONFIG_HEADERS section.
adamc@1263 14038 # No need to generate them if there are no CONFIG_HEADERS.
adamc@1263 14039 # This happens for instance with `./config.status Makefile'.
adamc@1263 14040 if test -n "$CONFIG_HEADERS"; then
adam@1599 14041 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
adamc@1263 14042 BEGIN {
adamc@1263 14043 _ACEOF
adamc@1263 14044
adamc@1263 14045 # Transform confdefs.h into an awk script `defines.awk', embedded as
adamc@1263 14046 # here-document in config.status, that substitutes the proper values into
adamc@1263 14047 # config.h.in to produce config.h.
adamc@1263 14048
adamc@1263 14049 # Create a delimiter string that does not exist in confdefs.h, to ease
adamc@1263 14050 # handling of long lines.
adamc@1263 14051 ac_delim='%!_!# '
adamc@1263 14052 for ac_last_try in false false :; do
adam@1599 14053 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
adam@1599 14054 if test -z "$ac_tt"; then
adamc@1263 14055 break
adamc@1263 14056 elif $ac_last_try; then
adam@1315 14057 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
adamc@1263 14058 else
adamc@1263 14059 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
adamc@1263 14060 fi
adamc@1263 14061 done
adamc@1263 14062
adamc@1263 14063 # For the awk script, D is an array of macro values keyed by name,
adamc@1263 14064 # likewise P contains macro parameters if any. Preserve backslash
adamc@1263 14065 # newline sequences.
adamc@1263 14066
adamc@1263 14067 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
adamc@1263 14068 sed -n '
adamc@1263 14069 s/.\{148\}/&'"$ac_delim"'/g
adamc@1263 14070 t rset
adamc@1263 14071 :rset
adamc@1263 14072 s/^[ ]*#[ ]*define[ ][ ]*/ /
adamc@1263 14073 t def
adamc@1263 14074 d
adamc@1263 14075 :def
adamc@1263 14076 s/\\$//
adamc@1263 14077 t bsnl
adamc@1263 14078 s/["\\]/\\&/g
adamc@1263 14079 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
adamc@1263 14080 D["\1"]=" \3"/p
adamc@1263 14081 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
adamc@1263 14082 d
adamc@1263 14083 :bsnl
adamc@1263 14084 s/["\\]/\\&/g
adamc@1263 14085 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
adamc@1263 14086 D["\1"]=" \3\\\\\\n"\\/p
adamc@1263 14087 t cont
adamc@1263 14088 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
adamc@1263 14089 t cont
adamc@1263 14090 d
adamc@1263 14091 :cont
adamc@1263 14092 n
adamc@1263 14093 s/.\{148\}/&'"$ac_delim"'/g
adamc@1263 14094 t clear
adamc@1263 14095 :clear
adamc@1263 14096 s/\\$//
adamc@1263 14097 t bsnlc
adamc@1263 14098 s/["\\]/\\&/g; s/^/"/; s/$/"/p
adamc@1263 14099 d
adamc@1263 14100 :bsnlc
adamc@1263 14101 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
adamc@1263 14102 b cont
adamc@1263 14103 ' <confdefs.h | sed '
adamc@1263 14104 s/'"$ac_delim"'/"\\\
adamc@1263 14105 "/g' >>$CONFIG_STATUS || ac_write_fail=1
adamc@1263 14106
adamc@1263 14107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@1263 14108 for (key in D) D_is_set[key] = 1
adamc@1263 14109 FS = ""
adamc@1263 14110 }
adamc@1263 14111 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
adamc@1263 14112 line = \$ 0
adamc@1263 14113 split(line, arg, " ")
adamc@1263 14114 if (arg[1] == "#") {
adamc@1263 14115 defundef = arg[2]
adamc@1263 14116 mac1 = arg[3]
adamc@1263 14117 } else {
adamc@1263 14118 defundef = substr(arg[1], 2)
adamc@1263 14119 mac1 = arg[2]
adamc@1263 14120 }
adamc@1263 14121 split(mac1, mac2, "(") #)
adamc@1263 14122 macro = mac2[1]
adamc@1263 14123 prefix = substr(line, 1, index(line, defundef) - 1)
adamc@1263 14124 if (D_is_set[macro]) {
adamc@1263 14125 # Preserve the white space surrounding the "#".
adamc@1263 14126 print prefix "define", macro P[macro] D[macro]
adamc@1263 14127 next
adamc@1263 14128 } else {
adamc@1263 14129 # Replace #undef with comments. This is necessary, for example,
adamc@1263 14130 # in the case of _POSIX_SOURCE, which is predefined and required
adamc@1263 14131 # on some systems where configure will not decide to define it.
adamc@1263 14132 if (defundef == "undef") {
adamc@1263 14133 print "/*", prefix defundef, macro, "*/"
adamc@1263 14134 next
adamc@1263 14135 }
adamc@1263 14136 }
adamc@1263 14137 }
adamc@1263 14138 { print }
adamc@1263 14139 _ACAWK
adamc@1263 14140 _ACEOF
adamc@1263 14141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adam@1315 14142 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
adamc@1263 14143 fi # test -n "$CONFIG_HEADERS"
adamc@1263 14144
adamc@1263 14145
adamc@1263 14146 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
adamc@1095 14147 shift
adamc@1095 14148 for ac_tag
adamc@378 14149 do
adamc@378 14150 case $ac_tag in
adamc@378 14151 :[FHLC]) ac_mode=$ac_tag; continue;;
adamc@378 14152 esac
adamc@378 14153 case $ac_mode$ac_tag in
adamc@378 14154 :[FHL]*:*);;
adam@1599 14155 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
adamc@378 14156 :[FH]-) ac_tag=-:-;;
adamc@378 14157 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
adamc@378 14158 esac
adamc@378 14159 ac_save_IFS=$IFS
adamc@378 14160 IFS=:
adamc@378 14161 set x $ac_tag
adamc@378 14162 IFS=$ac_save_IFS
adamc@378 14163 shift
adamc@378 14164 ac_file=$1
adamc@378 14165 shift
adamc@378 14166
adamc@378 14167 case $ac_mode in
adamc@378 14168 :L) ac_source=$1;;
adamc@378 14169 :[FH])
adamc@378 14170 ac_file_inputs=
adamc@378 14171 for ac_f
adamc@378 14172 do
adamc@378 14173 case $ac_f in
adam@1599 14174 -) ac_f="$ac_tmp/stdin";;
adamc@378 14175 *) # Look for the file first in the build tree, then in the source tree
adamc@378 14176 # (if the path is not absolute). The absolute path cannot be DOS-style,
adamc@378 14177 # because $ac_f cannot contain `:'.
adamc@378 14178 test -f "$ac_f" ||
adamc@378 14179 case $ac_f in
adamc@378 14180 [\\/$]*) false;;
adamc@378 14181 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
adamc@378 14182 esac ||
adam@1599 14183 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
adamc@378 14184 esac
adamc@1095 14185 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
adamc@1095 14186 as_fn_append ac_file_inputs " '$ac_f'"
adamc@378 14187 done
adamc@378 14188
adamc@378 14189 # Let's still pretend it is `configure' which instantiates (i.e., don't
adamc@378 14190 # use $as_me), people would be surprised to read:
adamc@378 14191 # /* config.h. Generated by config.status. */
adamc@1095 14192 configure_input='Generated from '`
adamc@1095 14193 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
adamc@1095 14194 `' by configure.'
adamc@378 14195 if test x"$ac_file" != x-; then
adamc@378 14196 configure_input="$ac_file. $configure_input"
adamc@1095 14197 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
adamc@1095 14198 $as_echo "$as_me: creating $ac_file" >&6;}
adamc@378 14199 fi
adamc@1095 14200 # Neutralize special characters interpreted by sed in replacement strings.
adamc@1095 14201 case $configure_input in #(
adamc@1095 14202 *\&* | *\|* | *\\* )
adamc@1095 14203 ac_sed_conf_input=`$as_echo "$configure_input" |
adamc@1095 14204 sed 's/[\\\\&|]/\\\\&/g'`;; #(
adamc@1095 14205 *) ac_sed_conf_input=$configure_input;;
adamc@1095 14206 esac
adamc@378 14207
adamc@378 14208 case $ac_tag in
adam@1599 14209 *:-:* | *:-) cat >"$ac_tmp/stdin" \
adam@1599 14210 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
adamc@378 14211 esac
adamc@378 14212 ;;
adamc@378 14213 esac
adamc@378 14214
adamc@378 14215 ac_dir=`$as_dirname -- "$ac_file" ||
adamc@378 14216 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
adamc@378 14217 X"$ac_file" : 'X\(//\)[^/]' \| \
adamc@378 14218 X"$ac_file" : 'X\(//\)$' \| \
adamc@378 14219 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
adamc@1095 14220 $as_echo X"$ac_file" |
adamc@378 14221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
adamc@378 14222 s//\1/
adamc@378 14223 q
adamc@378 14224 }
adamc@378 14225 /^X\(\/\/\)[^/].*/{
adamc@378 14226 s//\1/
adamc@378 14227 q
adamc@378 14228 }
adamc@378 14229 /^X\(\/\/\)$/{
adamc@378 14230 s//\1/
adamc@378 14231 q
adamc@378 14232 }
adamc@378 14233 /^X\(\/\).*/{
adamc@378 14234 s//\1/
adamc@378 14235 q
adamc@378 14236 }
adamc@378 14237 s/.*/./; q'`
adamc@1095 14238 as_dir="$ac_dir"; as_fn_mkdir_p
adamc@378 14239 ac_builddir=.
adamc@378 14240
adamc@378 14241 case "$ac_dir" in
adamc@378 14242 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
adamc@378 14243 *)
adamc@1095 14244 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
adamc@378 14245 # A ".." for each directory in $ac_dir_suffix.
adamc@1095 14246 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
adamc@378 14247 case $ac_top_builddir_sub in
adamc@378 14248 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
adamc@378 14249 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
adamc@378 14250 esac ;;
adamc@378 14251 esac
adamc@378 14252 ac_abs_top_builddir=$ac_pwd
adamc@378 14253 ac_abs_builddir=$ac_pwd$ac_dir_suffix
adamc@378 14254 # for backward compatibility:
adamc@378 14255 ac_top_builddir=$ac_top_build_prefix
adamc@378 14256
adamc@378 14257 case $srcdir in
adamc@378 14258 .) # We are building in place.
adamc@378 14259 ac_srcdir=.
adamc@378 14260 ac_top_srcdir=$ac_top_builddir_sub
adamc@378 14261 ac_abs_top_srcdir=$ac_pwd ;;
adamc@378 14262 [\\/]* | ?:[\\/]* ) # Absolute name.
adamc@378 14263 ac_srcdir=$srcdir$ac_dir_suffix;
adamc@378 14264 ac_top_srcdir=$srcdir
adamc@378 14265 ac_abs_top_srcdir=$srcdir ;;
adamc@378 14266 *) # Relative name.
adamc@378 14267 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
adamc@378 14268 ac_top_srcdir=$ac_top_build_prefix$srcdir
adamc@378 14269 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
adamc@378 14270 esac
adamc@378 14271 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
adamc@378 14272
adamc@378 14273
adamc@378 14274 case $ac_mode in
adamc@378 14275 :F)
adamc@378 14276 #
adamc@378 14277 # CONFIG_FILE
adamc@378 14278 #
adamc@378 14279
adamc@1132 14280 case $INSTALL in
adamc@1132 14281 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
adamc@1132 14282 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
adamc@1132 14283 esac
adamc@1132 14284 ac_MKDIR_P=$MKDIR_P
adamc@1132 14285 case $MKDIR_P in
adamc@1132 14286 [\\/$]* | ?:[\\/]* ) ;;
adamc@1132 14287 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
adamc@1132 14288 esac
adamc@378 14289 _ACEOF
adamc@378 14290
adamc@1095 14291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@378 14292 # If the template does not know about datarootdir, expand it.
adamc@378 14293 # FIXME: This hack should be removed a few years after 2.60.
adamc@378 14294 ac_datarootdir_hack=; ac_datarootdir_seen=
adamc@1095 14295 ac_sed_dataroot='
adamc@1095 14296 /datarootdir/ {
adamc@378 14297 p
adamc@378 14298 q
adamc@378 14299 }
adamc@378 14300 /@datadir@/p
adamc@378 14301 /@docdir@/p
adamc@378 14302 /@infodir@/p
adamc@378 14303 /@localedir@/p
adamc@1095 14304 /@mandir@/p'
adamc@1095 14305 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
adamc@378 14306 *datarootdir*) ac_datarootdir_seen=yes;;
adamc@378 14307 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
adamc@1095 14308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
adamc@1095 14309 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
adamc@378 14310 _ACEOF
adamc@1095 14311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@378 14312 ac_datarootdir_hack='
adamc@378 14313 s&@datadir@&$datadir&g
adamc@378 14314 s&@docdir@&$docdir&g
adamc@378 14315 s&@infodir@&$infodir&g
adamc@378 14316 s&@localedir@&$localedir&g
adamc@378 14317 s&@mandir@&$mandir&g
adamc@1095 14318 s&\\\${datarootdir}&$datarootdir&g' ;;
adamc@378 14319 esac
adamc@378 14320 _ACEOF
adamc@378 14321
adamc@378 14322 # Neutralize VPATH when `$srcdir' = `.'.
adamc@378 14323 # Shell code in configure.ac might set extrasub.
adamc@378 14324 # FIXME: do we really want to maintain this feature?
adamc@1095 14325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@1095 14326 ac_sed_extra="$ac_vpsub
adamc@378 14327 $extrasub
adamc@378 14328 _ACEOF
adamc@1095 14329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@378 14330 :t
adamc@378 14331 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
adamc@1095 14332 s|@configure_input@|$ac_sed_conf_input|;t t
adamc@378 14333 s&@top_builddir@&$ac_top_builddir_sub&;t t
adamc@1095 14334 s&@top_build_prefix@&$ac_top_build_prefix&;t t
adamc@378 14335 s&@srcdir@&$ac_srcdir&;t t
adamc@378 14336 s&@abs_srcdir@&$ac_abs_srcdir&;t t
adamc@378 14337 s&@top_srcdir@&$ac_top_srcdir&;t t
adamc@378 14338 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
adamc@378 14339 s&@builddir@&$ac_builddir&;t t
adamc@378 14340 s&@abs_builddir@&$ac_abs_builddir&;t t
adamc@378 14341 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
adamc@1132 14342 s&@INSTALL@&$ac_INSTALL&;t t
adamc@1132 14343 s&@MKDIR_P@&$ac_MKDIR_P&;t t
adamc@378 14344 $ac_datarootdir_hack
adamc@1095 14345 "
adam@1599 14346 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
adam@1599 14347 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
adamc@378 14348
adamc@378 14349 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
adam@1599 14350 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
adam@1599 14351 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
adam@1599 14352 "$ac_tmp/out"`; test -z "$ac_out"; } &&
adamc@1095 14353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
adam@1315 14354 which seems to be undefined. Please make sure it is defined" >&5
adamc@1095 14355 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
adam@1315 14356 which seems to be undefined. Please make sure it is defined" >&2;}
adamc@378 14357
adam@1599 14358 rm -f "$ac_tmp/stdin"
adamc@378 14359 case $ac_file in
adam@1599 14360 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
adam@1599 14361 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
adamc@1095 14362 esac \
adam@1315 14363 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
adamc@378 14364 ;;
adamc@1263 14365 :H)
adamc@1263 14366 #
adamc@1263 14367 # CONFIG_HEADER
adamc@1263 14368 #
adamc@1263 14369 if test x"$ac_file" != x-; then
adamc@1263 14370 {
adamc@1263 14371 $as_echo "/* $configure_input */" \
adam@1599 14372 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
adam@1599 14373 } >"$ac_tmp/config.h" \
adam@1315 14374 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
adam@1599 14375 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
adamc@1263 14376 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
adamc@1263 14377 $as_echo "$as_me: $ac_file is unchanged" >&6;}
adamc@1263 14378 else
adamc@1263 14379 rm -f "$ac_file"
adam@1599 14380 mv "$ac_tmp/config.h" "$ac_file" \
adam@1315 14381 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
adamc@1263 14382 fi
adamc@1263 14383 else
adamc@1263 14384 $as_echo "/* $configure_input */" \
adam@1599 14385 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
adam@1315 14386 || as_fn_error $? "could not create -" "$LINENO" 5
adamc@1263 14387 fi
adamc@1263 14388 # Compute "$ac_file"'s index in $config_headers.
adamc@1263 14389 _am_arg="$ac_file"
adamc@1263 14390 _am_stamp_count=1
adamc@1263 14391 for _am_header in $config_headers :; do
adamc@1263 14392 case $_am_header in
adamc@1263 14393 $_am_arg | $_am_arg:* )
adamc@1263 14394 break ;;
adamc@1263 14395 * )
adamc@1263 14396 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
adamc@1263 14397 esac
adamc@1263 14398 done
adamc@1263 14399 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
adamc@1263 14400 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
adamc@1263 14401 X"$_am_arg" : 'X\(//\)[^/]' \| \
adamc@1263 14402 X"$_am_arg" : 'X\(//\)$' \| \
adamc@1263 14403 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
adamc@1263 14404 $as_echo X"$_am_arg" |
adamc@1263 14405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
adamc@1263 14406 s//\1/
adamc@1263 14407 q
adamc@1263 14408 }
adamc@1263 14409 /^X\(\/\/\)[^/].*/{
adamc@1263 14410 s//\1/
adamc@1263 14411 q
adamc@1263 14412 }
adamc@1263 14413 /^X\(\/\/\)$/{
adamc@1263 14414 s//\1/
adamc@1263 14415 q
adamc@1263 14416 }
adamc@1263 14417 /^X\(\/\).*/{
adamc@1263 14418 s//\1/
adamc@1263 14419 q
adamc@1263 14420 }
adamc@1263 14421 s/.*/./; q'`/stamp-h$_am_stamp_count
adamc@1263 14422 ;;
adamc@378 14423
adamc@1132 14424 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
adamc@1132 14425 $as_echo "$as_me: executing $ac_file commands" >&6;}
adamc@1132 14426 ;;
adamc@378 14427 esac
adamc@378 14428
adamc@378 14429
adamc@378 14430 case $ac_file$ac_mode in
adamc@1132 14431 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
adamc@1132 14432 # Autoconf 2.62 quotes --file arguments for eval, but not when files
adamc@1132 14433 # are listed without --file. Let's play safe and only enable the eval
adamc@1132 14434 # if we detect the quoting.
adamc@1132 14435 case $CONFIG_FILES in
adamc@1132 14436 *\'*) eval set x "$CONFIG_FILES" ;;
adamc@1132 14437 *) set x $CONFIG_FILES ;;
adamc@1132 14438 esac
adamc@1132 14439 shift
adamc@1132 14440 for mf
adamc@1132 14441 do
adamc@1132 14442 # Strip MF so we end up with the name of the file.
adamc@1132 14443 mf=`echo "$mf" | sed -e 's/:.*$//'`
adamc@1132 14444 # Check whether this is an Automake generated Makefile or not.
adamc@1132 14445 # We used to match only the files named `Makefile.in', but
adamc@1132 14446 # some people rename them; so instead we look at the file content.
adamc@1132 14447 # Grep'ing the first line is not enough: some people post-process
adamc@1132 14448 # each Makefile.in and add a new line on top of each file to say so.
adamc@1132 14449 # Grep'ing the whole file is not good either: AIX grep has a line
adamc@1132 14450 # limit of 2048, but all sed's we know have understand at least 4000.
adamc@1132 14451 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
adamc@1132 14452 dirpart=`$as_dirname -- "$mf" ||
adamc@1132 14453 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
adamc@1132 14454 X"$mf" : 'X\(//\)[^/]' \| \
adamc@1132 14455 X"$mf" : 'X\(//\)$' \| \
adamc@1132 14456 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
adamc@1132 14457 $as_echo X"$mf" |
adamc@1132 14458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
adamc@1132 14459 s//\1/
adamc@1132 14460 q
adamc@1132 14461 }
adamc@1132 14462 /^X\(\/\/\)[^/].*/{
adamc@1132 14463 s//\1/
adamc@1132 14464 q
adamc@1132 14465 }
adamc@1132 14466 /^X\(\/\/\)$/{
adamc@1132 14467 s//\1/
adamc@1132 14468 q
adamc@1132 14469 }
adamc@1132 14470 /^X\(\/\).*/{
adamc@1132 14471 s//\1/
adamc@1132 14472 q
adamc@1132 14473 }
adamc@1132 14474 s/.*/./; q'`
adamc@1132 14475 else
adamc@1132 14476 continue
adamc@1132 14477 fi
adamc@1132 14478 # Extract the definition of DEPDIR, am__include, and am__quote
adamc@1132 14479 # from the Makefile without running `make'.
adamc@1132 14480 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
adamc@1132 14481 test -z "$DEPDIR" && continue
adamc@1132 14482 am__include=`sed -n 's/^am__include = //p' < "$mf"`
adamc@1132 14483 test -z "am__include" && continue
adamc@1132 14484 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
adamc@1132 14485 # When using ansi2knr, U may be empty or an underscore; expand it
adamc@1132 14486 U=`sed -n 's/^U = //p' < "$mf"`
adamc@1132 14487 # Find all dependency output files, they are included files with
adamc@1132 14488 # $(DEPDIR) in their names. We invoke sed twice because it is the
adamc@1132 14489 # simplest approach to changing $(DEPDIR) to its actual value in the
adamc@1132 14490 # expansion.
adamc@1132 14491 for file in `sed -n "
adamc@1132 14492 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
adamc@1132 14493 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
adamc@1132 14494 # Make sure the directory exists.
adamc@1132 14495 test -f "$dirpart/$file" && continue
adamc@1132 14496 fdir=`$as_dirname -- "$file" ||
adamc@1132 14497 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
adamc@1132 14498 X"$file" : 'X\(//\)[^/]' \| \
adamc@1132 14499 X"$file" : 'X\(//\)$' \| \
adamc@1132 14500 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
adamc@1132 14501 $as_echo X"$file" |
adamc@1132 14502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
adamc@1132 14503 s//\1/
adamc@1132 14504 q
adamc@1132 14505 }
adamc@1132 14506 /^X\(\/\/\)[^/].*/{
adamc@1132 14507 s//\1/
adamc@1132 14508 q
adamc@1132 14509 }
adamc@1132 14510 /^X\(\/\/\)$/{
adamc@1132 14511 s//\1/
adamc@1132 14512 q
adamc@1132 14513 }
adamc@1132 14514 /^X\(\/\).*/{
adamc@1132 14515 s//\1/
adamc@1132 14516 q
adamc@1132 14517 }
adamc@1132 14518 s/.*/./; q'`
adamc@1132 14519 as_dir=$dirpart/$fdir; as_fn_mkdir_p
adamc@1132 14520 # echo "creating $dirpart/$file"
adamc@1132 14521 echo '# dummy' > "$dirpart/$file"
adamc@1132 14522 done
adamc@1132 14523 done
adamc@1132 14524 }
adamc@1132 14525 ;;
adamc@1132 14526 "libtool":C)
adamc@1132 14527
adamc@1132 14528 # See if we are running on zsh, and set the options which allow our
adamc@1132 14529 # commands through without removal of \ escapes.
adamc@1132 14530 if test -n "${ZSH_VERSION+set}" ; then
adamc@1132 14531 setopt NO_GLOB_SUBST
adamc@1132 14532 fi
adamc@1132 14533
adamc@1132 14534 cfgfile="${ofile}T"
adamc@1132 14535 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
adamc@1132 14536 $RM "$cfgfile"
adamc@1132 14537
adamc@1132 14538 cat <<_LT_EOF >> "$cfgfile"
adamc@1132 14539 #! $SHELL
adamc@1132 14540
adamc@1132 14541 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
adamc@1132 14542 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
adamc@1132 14543 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
adamc@1132 14544 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
adamc@1132 14545 #
adamc@1132 14546 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
adam@1599 14547 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
adam@1599 14548 # Foundation, Inc.
adamc@1132 14549 # Written by Gordon Matzigkeit, 1996
adamc@1132 14550 #
adamc@1132 14551 # This file is part of GNU Libtool.
adamc@1132 14552 #
adamc@1132 14553 # GNU Libtool is free software; you can redistribute it and/or
adamc@1132 14554 # modify it under the terms of the GNU General Public License as
adamc@1132 14555 # published by the Free Software Foundation; either version 2 of
adamc@1132 14556 # the License, or (at your option) any later version.
adamc@1132 14557 #
adamc@1132 14558 # As a special exception to the GNU General Public License,
adamc@1132 14559 # if you distribute this file as part of a program or library that
adamc@1132 14560 # is built using GNU Libtool, you may include this file under the
adamc@1132 14561 # same distribution terms that you use for the rest of that program.
adamc@1132 14562 #
adamc@1132 14563 # GNU Libtool is distributed in the hope that it will be useful,
adamc@1132 14564 # but WITHOUT ANY WARRANTY; without even the implied warranty of
adamc@1132 14565 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
adamc@1132 14566 # GNU General Public License for more details.
adamc@1132 14567 #
adamc@1132 14568 # You should have received a copy of the GNU General Public License
adamc@1132 14569 # along with GNU Libtool; see the file COPYING. If not, a copy
adamc@1132 14570 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
adamc@1132 14571 # obtained by writing to the Free Software Foundation, Inc.,
adamc@1132 14572 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
adamc@1132 14573
adamc@1132 14574
adamc@1132 14575 # The names of the tagged configurations supported by this script.
adamc@1132 14576 available_tags=""
adamc@1132 14577
adamc@1132 14578 # ### BEGIN LIBTOOL CONFIG
adamc@1132 14579
adamc@1132 14580 # Which release of libtool.m4 was used?
adamc@1132 14581 macro_version=$macro_version
adamc@1132 14582 macro_revision=$macro_revision
adamc@1132 14583
adamc@1132 14584 # Whether or not to build shared libraries.
adamc@1132 14585 build_libtool_libs=$enable_shared
adamc@1132 14586
adamc@1132 14587 # Whether or not to build static libraries.
adamc@1132 14588 build_old_libs=$enable_static
adamc@1132 14589
adamc@1132 14590 # What type of objects to build.
adamc@1132 14591 pic_mode=$pic_mode
adamc@1132 14592
adamc@1132 14593 # Whether or not to optimize for fast installation.
adamc@1132 14594 fast_install=$enable_fast_install
adamc@1132 14595
adam@1459 14596 # Shell to use when invoking shell scripts.
adam@1459 14597 SHELL=$lt_SHELL
adam@1459 14598
adam@1459 14599 # An echo program that protects backslashes.
adam@1459 14600 ECHO=$lt_ECHO
adam@1459 14601
adam@1599 14602 # The PATH separator for the build system.
adam@1599 14603 PATH_SEPARATOR=$lt_PATH_SEPARATOR
adam@1599 14604
adamc@1132 14605 # The host system.
adamc@1132 14606 host_alias=$host_alias
adamc@1132 14607 host=$host
adamc@1132 14608 host_os=$host_os
adamc@1132 14609
adamc@1132 14610 # The build system.
adamc@1132 14611 build_alias=$build_alias
adamc@1132 14612 build=$build
adamc@1132 14613 build_os=$build_os
adamc@1132 14614
adamc@1132 14615 # A sed program that does not truncate output.
adamc@1132 14616 SED=$lt_SED
adamc@1132 14617
adamc@1132 14618 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
adamc@1132 14619 Xsed="\$SED -e 1s/^X//"
adamc@1132 14620
adamc@1132 14621 # A grep program that handles long lines.
adamc@1132 14622 GREP=$lt_GREP
adamc@1132 14623
adamc@1132 14624 # An ERE matcher.
adamc@1132 14625 EGREP=$lt_EGREP
adamc@1132 14626
adamc@1132 14627 # A literal string matcher.
adamc@1132 14628 FGREP=$lt_FGREP
adamc@1132 14629
adamc@1132 14630 # A BSD- or MS-compatible name lister.
adamc@1132 14631 NM=$lt_NM
adamc@1132 14632
adamc@1132 14633 # Whether we need soft or hard links.
adamc@1132 14634 LN_S=$lt_LN_S
adamc@1132 14635
adamc@1132 14636 # What is the maximum length of a command?
adamc@1132 14637 max_cmd_len=$max_cmd_len
adamc@1132 14638
adamc@1132 14639 # Object file suffix (normally "o").
adamc@1132 14640 objext=$ac_objext
adamc@1132 14641
adamc@1132 14642 # Executable file suffix (normally "").
adamc@1132 14643 exeext=$exeext
adamc@1132 14644
adamc@1132 14645 # whether the shell understands "unset".
adamc@1132 14646 lt_unset=$lt_unset
adamc@1132 14647
adamc@1132 14648 # turn spaces into newlines.
adamc@1132 14649 SP2NL=$lt_lt_SP2NL
adamc@1132 14650
adamc@1132 14651 # turn newlines into spaces.
adamc@1132 14652 NL2SP=$lt_lt_NL2SP
adamc@1132 14653
adam@1459 14654 # convert \$build file names to \$host format.
adam@1459 14655 to_host_file_cmd=$lt_cv_to_host_file_cmd
adam@1459 14656
adam@1459 14657 # convert \$build files to toolchain format.
adam@1459 14658 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
adamc@1132 14659
adamc@1132 14660 # An object symbol dumper.
adamc@1132 14661 OBJDUMP=$lt_OBJDUMP
adamc@1132 14662
adamc@1132 14663 # Method to check whether dependent libraries are shared objects.
adamc@1132 14664 deplibs_check_method=$lt_deplibs_check_method
adamc@1132 14665
adam@1459 14666 # Command to use when deplibs_check_method = "file_magic".
adamc@1132 14667 file_magic_cmd=$lt_file_magic_cmd
adamc@1132 14668
adam@1459 14669 # How to find potential files when deplibs_check_method = "file_magic".
adam@1459 14670 file_magic_glob=$lt_file_magic_glob
adam@1459 14671
adam@1459 14672 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
adam@1459 14673 want_nocaseglob=$lt_want_nocaseglob
adam@1459 14674
adam@1459 14675 # DLL creation program.
adam@1459 14676 DLLTOOL=$lt_DLLTOOL
adam@1459 14677
adam@1459 14678 # Command to associate shared and link libraries.
adam@1459 14679 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
adam@1459 14680
adamc@1132 14681 # The archiver.
adamc@1132 14682 AR=$lt_AR
adam@1459 14683
adam@1459 14684 # Flags to create an archive.
adamc@1132 14685 AR_FLAGS=$lt_AR_FLAGS
adamc@1132 14686
adam@1459 14687 # How to feed a file listing to the archiver.
adam@1459 14688 archiver_list_spec=$lt_archiver_list_spec
adam@1459 14689
adamc@1132 14690 # A symbol stripping program.
adamc@1132 14691 STRIP=$lt_STRIP
adamc@1132 14692
adamc@1132 14693 # Commands used to install an old-style archive.
adamc@1132 14694 RANLIB=$lt_RANLIB
adamc@1132 14695 old_postinstall_cmds=$lt_old_postinstall_cmds
adamc@1132 14696 old_postuninstall_cmds=$lt_old_postuninstall_cmds
adamc@1132 14697
adam@1459 14698 # Whether to use a lock for old archive extraction.
adam@1459 14699 lock_old_archive_extraction=$lock_old_archive_extraction
adam@1459 14700
adamc@1132 14701 # A C compiler.
adamc@1132 14702 LTCC=$lt_CC
adamc@1132 14703
adamc@1132 14704 # LTCC compiler flags.
adamc@1132 14705 LTCFLAGS=$lt_CFLAGS
adamc@1132 14706
adamc@1132 14707 # Take the output of nm and produce a listing of raw symbols and C names.
adamc@1132 14708 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
adamc@1132 14709
adamc@1132 14710 # Transform the output of nm in a proper C declaration.
adamc@1132 14711 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
adamc@1132 14712
adamc@1132 14713 # Transform the output of nm in a C name address pair.
adamc@1132 14714 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
adamc@1132 14715
adamc@1132 14716 # Transform the output of nm in a C name address pair when lib prefix is needed.
adamc@1132 14717 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
adamc@1132 14718
adam@1459 14719 # Specify filename containing input files for \$NM.
adam@1459 14720 nm_file_list_spec=$lt_nm_file_list_spec
adam@1459 14721
adam@1459 14722 # The root where to search for dependent libraries,and in which our libraries should be installed.
adam@1459 14723 lt_sysroot=$lt_sysroot
adam@1459 14724
adamc@1132 14725 # The name of the directory that contains temporary libtool files.
adamc@1132 14726 objdir=$objdir
adamc@1132 14727
adamc@1132 14728 # Used to examine libraries when file_magic_cmd begins with "file".
adamc@1132 14729 MAGIC_CMD=$MAGIC_CMD
adamc@1132 14730
adamc@1132 14731 # Must we lock files when doing compilation?
adamc@1132 14732 need_locks=$lt_need_locks
adamc@1132 14733
adam@1459 14734 # Manifest tool.
adam@1459 14735 MANIFEST_TOOL=$lt_MANIFEST_TOOL
adam@1459 14736
adamc@1132 14737 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
adamc@1132 14738 DSYMUTIL=$lt_DSYMUTIL
adamc@1132 14739
adamc@1132 14740 # Tool to change global to local symbols on Mac OS X.
adamc@1132 14741 NMEDIT=$lt_NMEDIT
adamc@1132 14742
adamc@1132 14743 # Tool to manipulate fat objects and archives on Mac OS X.
adamc@1132 14744 LIPO=$lt_LIPO
adamc@1132 14745
adamc@1132 14746 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
adamc@1132 14747 OTOOL=$lt_OTOOL
adamc@1132 14748
adamc@1132 14749 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
adamc@1132 14750 OTOOL64=$lt_OTOOL64
adamc@1132 14751
adamc@1132 14752 # Old archive suffix (normally "a").
adamc@1132 14753 libext=$libext
adamc@1132 14754
adamc@1132 14755 # Shared library suffix (normally ".so").
adamc@1132 14756 shrext_cmds=$lt_shrext_cmds
adamc@1132 14757
adamc@1132 14758 # The commands to extract the exported symbol list from a shared archive.
adamc@1132 14759 extract_expsyms_cmds=$lt_extract_expsyms_cmds
adamc@1132 14760
adamc@1132 14761 # Variables whose values should be saved in libtool wrapper scripts and
adamc@1132 14762 # restored at link time.
adamc@1132 14763 variables_saved_for_relink=$lt_variables_saved_for_relink
adamc@1132 14764
adamc@1132 14765 # Do we need the "lib" prefix for modules?
adamc@1132 14766 need_lib_prefix=$need_lib_prefix
adamc@1132 14767
adamc@1132 14768 # Do we need a version for libraries?
adamc@1132 14769 need_version=$need_version
adamc@1132 14770
adamc@1132 14771 # Library versioning type.
adamc@1132 14772 version_type=$version_type
adamc@1132 14773
adamc@1132 14774 # Shared library runtime path variable.
adamc@1132 14775 runpath_var=$runpath_var
adamc@1132 14776
adamc@1132 14777 # Shared library path variable.
adamc@1132 14778 shlibpath_var=$shlibpath_var
adamc@1132 14779
adamc@1132 14780 # Is shlibpath searched before the hard-coded library search path?
adamc@1132 14781 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
adamc@1132 14782
adamc@1132 14783 # Format of library name prefix.
adamc@1132 14784 libname_spec=$lt_libname_spec
adamc@1132 14785
adamc@1132 14786 # List of archive names. First name is the real one, the rest are links.
adamc@1132 14787 # The last name is the one that the linker finds with -lNAME
adamc@1132 14788 library_names_spec=$lt_library_names_spec
adamc@1132 14789
adamc@1132 14790 # The coded name of the library, if different from the real name.
adamc@1132 14791 soname_spec=$lt_soname_spec
adamc@1132 14792
adam@1459 14793 # Permission mode override for installation of shared libraries.
adam@1459 14794 install_override_mode=$lt_install_override_mode
adam@1459 14795
adamc@1132 14796 # Command to use after installation of a shared archive.
adamc@1132 14797 postinstall_cmds=$lt_postinstall_cmds
adamc@1132 14798
adamc@1132 14799 # Command to use after uninstallation of a shared archive.
adamc@1132 14800 postuninstall_cmds=$lt_postuninstall_cmds
adamc@1132 14801
adamc@1132 14802 # Commands used to finish a libtool library installation in a directory.
adamc@1132 14803 finish_cmds=$lt_finish_cmds
adamc@1132 14804
adamc@1132 14805 # As "finish_cmds", except a single script fragment to be evaled but
adamc@1132 14806 # not shown.
adamc@1132 14807 finish_eval=$lt_finish_eval
adamc@1132 14808
adamc@1132 14809 # Whether we should hardcode library paths into libraries.
adamc@1132 14810 hardcode_into_libs=$hardcode_into_libs
adamc@1132 14811
adamc@1132 14812 # Compile-time system search path for libraries.
adamc@1132 14813 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
adamc@1132 14814
adamc@1132 14815 # Run-time system search path for libraries.
adamc@1132 14816 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
adamc@1132 14817
adamc@1132 14818 # Whether dlopen is supported.
adamc@1132 14819 dlopen_support=$enable_dlopen
adamc@1132 14820
adamc@1132 14821 # Whether dlopen of programs is supported.
adamc@1132 14822 dlopen_self=$enable_dlopen_self
adamc@1132 14823
adamc@1132 14824 # Whether dlopen of statically linked programs is supported.
adamc@1132 14825 dlopen_self_static=$enable_dlopen_self_static
adamc@1132 14826
adamc@1132 14827 # Commands to strip libraries.
adamc@1132 14828 old_striplib=$lt_old_striplib
adamc@1132 14829 striplib=$lt_striplib
adamc@1132 14830
adamc@1132 14831
adamc@1132 14832 # The linker used to build libraries.
adamc@1132 14833 LD=$lt_LD
adamc@1132 14834
adam@1459 14835 # How to create reloadable object files.
adam@1459 14836 reload_flag=$lt_reload_flag
adam@1459 14837 reload_cmds=$lt_reload_cmds
adam@1459 14838
adamc@1132 14839 # Commands used to build an old-style archive.
adamc@1132 14840 old_archive_cmds=$lt_old_archive_cmds
adamc@1132 14841
adamc@1132 14842 # A language specific compiler.
adamc@1132 14843 CC=$lt_compiler
adamc@1132 14844
adamc@1132 14845 # Is the compiler the GNU compiler?
adamc@1132 14846 with_gcc=$GCC
adamc@1132 14847
adamc@1132 14848 # Compiler flag to turn off builtin functions.
adamc@1132 14849 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
adamc@1132 14850
adam@1459 14851 # Additional compiler flags for building library objects.
adam@1459 14852 pic_flag=$lt_lt_prog_compiler_pic
adam@1459 14853
adamc@1132 14854 # How to pass a linker flag through the compiler.
adamc@1132 14855 wl=$lt_lt_prog_compiler_wl
adamc@1132 14856
adamc@1132 14857 # Compiler flag to prevent dynamic linking.
adamc@1132 14858 link_static_flag=$lt_lt_prog_compiler_static
adamc@1132 14859
adamc@1132 14860 # Does compiler simultaneously support -c and -o options?
adamc@1132 14861 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
adamc@1132 14862
adamc@1132 14863 # Whether or not to add -lc for building shared libraries.
adamc@1132 14864 build_libtool_need_lc=$archive_cmds_need_lc
adamc@1132 14865
adamc@1132 14866 # Whether or not to disallow shared libs when runtime libs are static.
adamc@1132 14867 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
adamc@1132 14868
adamc@1132 14869 # Compiler flag to allow reflexive dlopens.
adamc@1132 14870 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
adamc@1132 14871
adamc@1132 14872 # Compiler flag to generate shared objects directly from archives.
adamc@1132 14873 whole_archive_flag_spec=$lt_whole_archive_flag_spec
adamc@1132 14874
adamc@1132 14875 # Whether the compiler copes with passing no objects directly.
adamc@1132 14876 compiler_needs_object=$lt_compiler_needs_object
adamc@1132 14877
adamc@1132 14878 # Create an old-style archive from a shared archive.
adamc@1132 14879 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
adamc@1132 14880
adamc@1132 14881 # Create a temporary old-style archive to link instead of a shared archive.
adamc@1132 14882 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
adamc@1132 14883
adamc@1132 14884 # Commands used to build a shared archive.
adamc@1132 14885 archive_cmds=$lt_archive_cmds
adamc@1132 14886 archive_expsym_cmds=$lt_archive_expsym_cmds
adamc@1132 14887
adamc@1132 14888 # Commands used to build a loadable module if different from building
adamc@1132 14889 # a shared archive.
adamc@1132 14890 module_cmds=$lt_module_cmds
adamc@1132 14891 module_expsym_cmds=$lt_module_expsym_cmds
adamc@1132 14892
adamc@1132 14893 # Whether we are building with GNU ld or not.
adamc@1132 14894 with_gnu_ld=$lt_with_gnu_ld
adamc@1132 14895
adamc@1132 14896 # Flag that allows shared libraries with undefined symbols to be built.
adamc@1132 14897 allow_undefined_flag=$lt_allow_undefined_flag
adamc@1132 14898
adamc@1132 14899 # Flag that enforces no undefined symbols.
adamc@1132 14900 no_undefined_flag=$lt_no_undefined_flag
adamc@1132 14901
adamc@1132 14902 # Flag to hardcode \$libdir into a binary during linking.
adamc@1132 14903 # This must work even if \$libdir does not exist
adamc@1132 14904 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
adamc@1132 14905
adamc@1132 14906 # Whether we need a single "-rpath" flag with a separated argument.
adamc@1132 14907 hardcode_libdir_separator=$lt_hardcode_libdir_separator
adamc@1132 14908
adamc@1132 14909 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
adamc@1132 14910 # DIR into the resulting binary.
adamc@1132 14911 hardcode_direct=$hardcode_direct
adamc@1132 14912
adamc@1132 14913 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
adamc@1132 14914 # DIR into the resulting binary and the resulting library dependency is
adamc@1132 14915 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
adamc@1132 14916 # library is relocated.
adamc@1132 14917 hardcode_direct_absolute=$hardcode_direct_absolute
adamc@1132 14918
adamc@1132 14919 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
adamc@1132 14920 # into the resulting binary.
adamc@1132 14921 hardcode_minus_L=$hardcode_minus_L
adamc@1132 14922
adamc@1132 14923 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
adamc@1132 14924 # into the resulting binary.
adamc@1132 14925 hardcode_shlibpath_var=$hardcode_shlibpath_var
adamc@1132 14926
adamc@1132 14927 # Set to "yes" if building a shared library automatically hardcodes DIR
adamc@1132 14928 # into the library and all subsequent libraries and executables linked
adamc@1132 14929 # against it.
adamc@1132 14930 hardcode_automatic=$hardcode_automatic
adamc@1132 14931
adamc@1132 14932 # Set to yes if linker adds runtime paths of dependent libraries
adamc@1132 14933 # to runtime path list.
adamc@1132 14934 inherit_rpath=$inherit_rpath
adamc@1132 14935
adamc@1132 14936 # Whether libtool must link a program against all its dependency libraries.
adamc@1132 14937 link_all_deplibs=$link_all_deplibs
adamc@1132 14938
adamc@1132 14939 # Set to "yes" if exported symbols are required.
adamc@1132 14940 always_export_symbols=$always_export_symbols
adamc@1132 14941
adamc@1132 14942 # The commands to list exported symbols.
adamc@1132 14943 export_symbols_cmds=$lt_export_symbols_cmds
adamc@1132 14944
adamc@1132 14945 # Symbols that should not be listed in the preloaded symbols.
adamc@1132 14946 exclude_expsyms=$lt_exclude_expsyms
adamc@1132 14947
adamc@1132 14948 # Symbols that must always be exported.
adamc@1132 14949 include_expsyms=$lt_include_expsyms
adamc@1132 14950
adamc@1132 14951 # Commands necessary for linking programs (against libraries) with templates.
adamc@1132 14952 prelink_cmds=$lt_prelink_cmds
adamc@1132 14953
adam@1459 14954 # Commands necessary for finishing linking programs.
adam@1459 14955 postlink_cmds=$lt_postlink_cmds
adam@1459 14956
adamc@1132 14957 # Specify filename containing input files.
adamc@1132 14958 file_list_spec=$lt_file_list_spec
adamc@1132 14959
adamc@1132 14960 # How to hardcode a shared library path into an executable.
adamc@1132 14961 hardcode_action=$hardcode_action
adamc@1132 14962
adamc@1132 14963 # ### END LIBTOOL CONFIG
adamc@1132 14964
adamc@1132 14965 _LT_EOF
adamc@1132 14966
adamc@1132 14967 case $host_os in
adamc@1132 14968 aix3*)
adamc@1132 14969 cat <<\_LT_EOF >> "$cfgfile"
adamc@1132 14970 # AIX sometimes has problems with the GCC collect2 program. For some
adamc@1132 14971 # reason, if we set the COLLECT_NAMES environment variable, the problems
adamc@1132 14972 # vanish in a puff of smoke.
adamc@1132 14973 if test "X${COLLECT_NAMES+set}" != Xset; then
adamc@1132 14974 COLLECT_NAMES=
adamc@1132 14975 export COLLECT_NAMES
adamc@1132 14976 fi
adamc@1132 14977 _LT_EOF
adamc@1132 14978 ;;
adamc@1132 14979 esac
adamc@1132 14980
adamc@1132 14981
adamc@1132 14982 ltmain="$ac_aux_dir/ltmain.sh"
adamc@1132 14983
adamc@1132 14984
adamc@1132 14985 # We use sed instead of cat because bash on DJGPP gets confused if
adamc@1132 14986 # if finds mixed CR/LF and LF-only lines. Since sed operates in
adamc@1132 14987 # text mode, it properly converts lines to CR/LF. This bash problem
adamc@1132 14988 # is reportedly fixed, but why not run on old versions too?
adam@1459 14989 sed '$q' "$ltmain" >> "$cfgfile" \
adam@1459 14990 || (rm -f "$cfgfile"; exit 1)
adam@1459 14991
adam@1459 14992 if test x"$xsi_shell" = xyes; then
adam@1459 14993 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
adam@1459 14994 func_dirname ()\
adam@1459 14995 {\
adam@1459 14996 \ case ${1} in\
adam@1459 14997 \ */*) func_dirname_result="${1%/*}${2}" ;;\
adam@1459 14998 \ * ) func_dirname_result="${3}" ;;\
adam@1459 14999 \ esac\
adam@1459 15000 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
adam@1459 15001 && mv -f "$cfgfile.tmp" "$cfgfile" \
adam@1459 15002 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
adam@1459 15003 test 0 -eq $? || _lt_function_replace_fail=:
adam@1459 15004
adam@1459 15005
adam@1459 15006 sed -e '/^func_basename ()$/,/^} # func_basename /c\
adam@1459 15007 func_basename ()\
adam@1459 15008 {\
adam@1459 15009 \ func_basename_result="${1##*/}"\
adam@1459 15010 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
adam@1459 15011 && mv -f "$cfgfile.tmp" "$cfgfile" \
adam@1459 15012 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
adam@1459 15013 test 0 -eq $? || _lt_function_replace_fail=:
adam@1459 15014
adam@1459 15015
adam@1459 15016 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
adam@1459 15017 func_dirname_and_basename ()\
adam@1459 15018 {\
adam@1459 15019 \ case ${1} in\
adam@1459 15020 \ */*) func_dirname_result="${1%/*}${2}" ;;\
adam@1459 15021 \ * ) func_dirname_result="${3}" ;;\
adam@1459 15022 \ esac\
adam@1459 15023 \ func_basename_result="${1##*/}"\
adam@1459 15024 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
adam@1459 15025 && mv -f "$cfgfile.tmp" "$cfgfile" \
adam@1459 15026 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
adam@1459 15027 test 0 -eq $? || _lt_function_replace_fail=:
adam@1459 15028
adam@1459 15029
adam@1459 15030 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
adam@1459 15031 func_stripname ()\
adam@1459 15032 {\
adam@1459 15033 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
adam@1459 15034 \ # positional parameters, so assign one to ordinary parameter first.\
adam@1459 15035 \ func_stripname_result=${3}\
adam@1459 15036 \ func_stripname_result=${func_stripname_result#"${1}"}\
adam@1459 15037 \ func_stripname_result=${func_stripname_result%"${2}"}\
adam@1459 15038 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
adam@1459 15039 && mv -f "$cfgfile.tmp" "$cfgfile" \
adam@1459 15040 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
adam@1459 15041 test 0 -eq $? || _lt_function_replace_fail=:
adam@1459 15042
adam@1459 15043
adam@1459 15044 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
adam@1459 15045 func_split_long_opt ()\
adam@1459 15046 {\
adam@1459 15047 \ func_split_long_opt_name=${1%%=*}\
adam@1459 15048 \ func_split_long_opt_arg=${1#*=}\
adam@1459 15049 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
adam@1459 15050 && mv -f "$cfgfile.tmp" "$cfgfile" \
adam@1459 15051 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
adam@1459 15052 test 0 -eq $? || _lt_function_replace_fail=:
adam@1459 15053
adam@1459 15054
adam@1459 15055 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
adam@1459 15056 func_split_short_opt ()\
adam@1459 15057 {\
adam@1459 15058 \ func_split_short_opt_arg=${1#??}\
adam@1459 15059 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
adam@1459 15060 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
adam@1459 15061 && mv -f "$cfgfile.tmp" "$cfgfile" \
adam@1459 15062 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
adam@1459 15063 test 0 -eq $? || _lt_function_replace_fail=:
adam@1459 15064
adam@1459 15065
adam@1459 15066 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
adam@1459 15067 func_lo2o ()\
adam@1459 15068 {\
adam@1459 15069 \ case ${1} in\
adam@1459 15070 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
adam@1459 15071 \ *) func_lo2o_result=${1} ;;\
adam@1459 15072 \ esac\
adam@1459 15073 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
adam@1459 15074 && mv -f "$cfgfile.tmp" "$cfgfile" \
adam@1459 15075 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
adam@1459 15076 test 0 -eq $? || _lt_function_replace_fail=:
adam@1459 15077
adam@1459 15078
adam@1459 15079 sed -e '/^func_xform ()$/,/^} # func_xform /c\
adam@1459 15080 func_xform ()\
adam@1459 15081 {\
adam@1459 15082 func_xform_result=${1%.*}.lo\
adam@1459 15083 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
adam@1459 15084 && mv -f "$cfgfile.tmp" "$cfgfile" \
adam@1459 15085 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
adam@1459 15086 test 0 -eq $? || _lt_function_replace_fail=:
adam@1459 15087
adam@1459 15088
adam@1459 15089 sed -e '/^func_arith ()$/,/^} # func_arith /c\
adam@1459 15090 func_arith ()\
adam@1459 15091 {\
adam@1459 15092 func_arith_result=$(( $* ))\
adam@1459 15093 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
adam@1459 15094 && mv -f "$cfgfile.tmp" "$cfgfile" \
adam@1459 15095 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
adam@1459 15096 test 0 -eq $? || _lt_function_replace_fail=:
adam@1459 15097
adam@1459 15098
adam@1459 15099 sed -e '/^func_len ()$/,/^} # func_len /c\
adam@1459 15100 func_len ()\
adam@1459 15101 {\
adam@1459 15102 func_len_result=${#1}\
adam@1459 15103 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
adam@1459 15104 && mv -f "$cfgfile.tmp" "$cfgfile" \
adam@1459 15105 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
adam@1459 15106 test 0 -eq $? || _lt_function_replace_fail=:
adam@1459 15107
adam@1459 15108 fi
adam@1459 15109
adam@1459 15110 if test x"$lt_shell_append" = xyes; then
adam@1459 15111 sed -e '/^func_append ()$/,/^} # func_append /c\
adam@1459 15112 func_append ()\
adam@1459 15113 {\
adam@1459 15114 eval "${1}+=\\${2}"\
adam@1459 15115 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
adam@1459 15116 && mv -f "$cfgfile.tmp" "$cfgfile" \
adam@1459 15117 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
adam@1459 15118 test 0 -eq $? || _lt_function_replace_fail=:
adam@1459 15119
adam@1459 15120
adam@1459 15121 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
adam@1459 15122 func_append_quoted ()\
adam@1459 15123 {\
adam@1459 15124 \ func_quote_for_eval "${2}"\
adam@1459 15125 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
adam@1459 15126 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
adam@1459 15127 && mv -f "$cfgfile.tmp" "$cfgfile" \
adam@1459 15128 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
adam@1459 15129 test 0 -eq $? || _lt_function_replace_fail=:
adam@1459 15130
adam@1459 15131
adam@1459 15132 # Save a `func_append' function call where possible by direct use of '+='
adam@1459 15133 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
adam@1459 15134 && mv -f "$cfgfile.tmp" "$cfgfile" \
adam@1459 15135 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
adam@1459 15136 test 0 -eq $? || _lt_function_replace_fail=:
adam@1459 15137 else
adam@1459 15138 # Save a `func_append' function call even when '+=' is not available
adam@1459 15139 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
adam@1459 15140 && mv -f "$cfgfile.tmp" "$cfgfile" \
adam@1459 15141 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
adam@1459 15142 test 0 -eq $? || _lt_function_replace_fail=:
adam@1459 15143 fi
adam@1459 15144
adam@1459 15145 if test x"$_lt_function_replace_fail" = x":"; then
adam@1459 15146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
adam@1459 15147 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
adam@1459 15148 fi
adam@1459 15149
adam@1459 15150
adam@1459 15151 mv -f "$cfgfile" "$ofile" ||
adamc@1132 15152 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
adamc@1132 15153 chmod +x "$ofile"
adamc@1132 15154
adamc@1132 15155 ;;
adamc@378 15156
adamc@378 15157 esac
adamc@378 15158 done # for ac_tag
adamc@378 15159
adamc@378 15160
adamc@1095 15161 as_fn_exit 0
adamc@378 15162 _ACEOF
adamc@378 15163 ac_clean_files=$ac_clean_files_save
adamc@378 15164
adamc@1095 15165 test $ac_write_fail = 0 ||
adam@1315 15166 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
adamc@1095 15167
adamc@378 15168
adamc@378 15169 # configure is writing to config.log, and then calls config.status.
adamc@378 15170 # config.status does its own redirection, appending to config.log.
adamc@378 15171 # Unfortunately, on DOS this fails, as config.log is still kept open
adamc@378 15172 # by configure, so config.status won't be able to write to it; its
adamc@378 15173 # output is simply discarded. So we exec the FD to /dev/null,
adamc@378 15174 # effectively closing config.log, so it can be properly (re)opened and
adamc@378 15175 # appended to by config.status. When coming back to configure, we
adamc@378 15176 # need to make the FD available again.
adamc@378 15177 if test "$no_create" != yes; then
adamc@378 15178 ac_cs_success=:
adamc@378 15179 ac_config_status_args=
adamc@378 15180 test "$silent" = yes &&
adamc@378 15181 ac_config_status_args="$ac_config_status_args --quiet"
adamc@378 15182 exec 5>/dev/null
adamc@378 15183 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
adamc@378 15184 exec 5>>config.log
adamc@378 15185 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
adamc@378 15186 # would make configure fail if this is the last instruction.
adam@1315 15187 $ac_cs_success || as_fn_exit 1
adamc@1095 15188 fi
adamc@1095 15189 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
adamc@1095 15190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
adamc@1095 15191 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
adamc@378 15192 fi
adamc@378 15193
adamc@378 15194
adamc@378 15195 cat <<EOF
adamc@378 15196
adamc@378 15197 Ur/Web configuration:
adam@1317 15198 bin directory: BIN $BIN
adam@1317 15199 lib directory: LIB $LIB
adam@1740 15200 src lib directory: SRCLIB $SRCLIB
adam@1317 15201 include directory: INCLUDE $INCLUDE
adam@1317 15202 site-lisp directory: SITELISP $SITELISP
adam@1474 15203 C compiler: CC $CC
adam@1523 15204 Extra CC args: CCARGS $CCARGS
adam@1464 15205 Postgres C header: PGHEADER $PGHEADER
adam@1464 15206 MySQL C header: MSHEADER $MSHEADER
adam@1464 15207 SQLite C header: SQHEADER $SQHEADER
adam@1661 15208 OpenSSL: OPENSSL_LIBS $OPENSSL_LIBS
adam@1520 15209
adam@1520 15210 Version: $VERSION
adamc@378 15211 EOF