annotate fft/fftw/fftw-3.3.4/configure @ 40:223f770b5341 kissfft-double tip

Try a double-precision kissfft
author Chris Cannam
date Wed, 07 Sep 2016 10:40:32 +0100
parents 26056e866c29
children
rev   line source
Chris@19 1 #! /bin/sh
Chris@19 2 # Guess values for system-dependent variables and create Makefiles.
Chris@19 3 # Generated by GNU Autoconf 2.69 for fftw 3.3.4.
Chris@19 4 #
Chris@19 5 # Report bugs to <fftw@fftw.org>.
Chris@19 6 #
Chris@19 7 #
Chris@19 8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Chris@19 9 #
Chris@19 10 #
Chris@19 11 # This configure script is free software; the Free Software Foundation
Chris@19 12 # gives unlimited permission to copy, distribute and modify it.
Chris@19 13 ## -------------------- ##
Chris@19 14 ## M4sh Initialization. ##
Chris@19 15 ## -------------------- ##
Chris@19 16
Chris@19 17 # Be more Bourne compatible
Chris@19 18 DUALCASE=1; export DUALCASE # for MKS sh
Chris@19 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Chris@19 20 emulate sh
Chris@19 21 NULLCMD=:
Chris@19 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Chris@19 23 # is contrary to our usage. Disable this feature.
Chris@19 24 alias -g '${1+"$@"}'='"$@"'
Chris@19 25 setopt NO_GLOB_SUBST
Chris@19 26 else
Chris@19 27 case `(set -o) 2>/dev/null` in #(
Chris@19 28 *posix*) :
Chris@19 29 set -o posix ;; #(
Chris@19 30 *) :
Chris@19 31 ;;
Chris@19 32 esac
Chris@19 33 fi
Chris@19 34
Chris@19 35
Chris@19 36 as_nl='
Chris@19 37 '
Chris@19 38 export as_nl
Chris@19 39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
Chris@19 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@19 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@19 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@19 43 # Prefer a ksh shell builtin over an external printf program on Solaris,
Chris@19 44 # but without wasting forks for bash or zsh.
Chris@19 45 if test -z "$BASH_VERSION$ZSH_VERSION" \
Chris@19 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@19 47 as_echo='print -r --'
Chris@19 48 as_echo_n='print -rn --'
Chris@19 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@19 50 as_echo='printf %s\n'
Chris@19 51 as_echo_n='printf %s'
Chris@19 52 else
Chris@19 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
Chris@19 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
Chris@19 55 as_echo_n='/usr/ucb/echo -n'
Chris@19 56 else
Chris@19 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
Chris@19 58 as_echo_n_body='eval
Chris@19 59 arg=$1;
Chris@19 60 case $arg in #(
Chris@19 61 *"$as_nl"*)
Chris@19 62 expr "X$arg" : "X\\(.*\\)$as_nl";
Chris@19 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
Chris@19 64 esac;
Chris@19 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
Chris@19 66 '
Chris@19 67 export as_echo_n_body
Chris@19 68 as_echo_n='sh -c $as_echo_n_body as_echo'
Chris@19 69 fi
Chris@19 70 export as_echo_body
Chris@19 71 as_echo='sh -c $as_echo_body as_echo'
Chris@19 72 fi
Chris@19 73
Chris@19 74 # The user is always right.
Chris@19 75 if test "${PATH_SEPARATOR+set}" != set; then
Chris@19 76 PATH_SEPARATOR=:
Chris@19 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
Chris@19 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
Chris@19 79 PATH_SEPARATOR=';'
Chris@19 80 }
Chris@19 81 fi
Chris@19 82
Chris@19 83
Chris@19 84 # IFS
Chris@19 85 # We need space, tab and new line, in precisely that order. Quoting is
Chris@19 86 # there to prevent editors from complaining about space-tab.
Chris@19 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
Chris@19 88 # splitting by setting IFS to empty value.)
Chris@19 89 IFS=" "" $as_nl"
Chris@19 90
Chris@19 91 # Find who we are. Look in the path if we contain no directory separator.
Chris@19 92 as_myself=
Chris@19 93 case $0 in #((
Chris@19 94 *[\\/]* ) as_myself=$0 ;;
Chris@19 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 96 for as_dir in $PATH
Chris@19 97 do
Chris@19 98 IFS=$as_save_IFS
Chris@19 99 test -z "$as_dir" && as_dir=.
Chris@19 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
Chris@19 101 done
Chris@19 102 IFS=$as_save_IFS
Chris@19 103
Chris@19 104 ;;
Chris@19 105 esac
Chris@19 106 # We did not find ourselves, most probably we were run as `sh COMMAND'
Chris@19 107 # in which case we are not to be found in the path.
Chris@19 108 if test "x$as_myself" = x; then
Chris@19 109 as_myself=$0
Chris@19 110 fi
Chris@19 111 if test ! -f "$as_myself"; then
Chris@19 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Chris@19 113 exit 1
Chris@19 114 fi
Chris@19 115
Chris@19 116 # Unset variables that we do not need and which cause bugs (e.g. in
Chris@19 117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
Chris@19 118 # suppresses any "Segmentation fault" message there. '((' could
Chris@19 119 # trigger a bug in pdksh 5.2.14.
Chris@19 120 for as_var in BASH_ENV ENV MAIL MAILPATH
Chris@19 121 do eval test x\${$as_var+set} = xset \
Chris@19 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Chris@19 123 done
Chris@19 124 PS1='$ '
Chris@19 125 PS2='> '
Chris@19 126 PS4='+ '
Chris@19 127
Chris@19 128 # NLS nuisances.
Chris@19 129 LC_ALL=C
Chris@19 130 export LC_ALL
Chris@19 131 LANGUAGE=C
Chris@19 132 export LANGUAGE
Chris@19 133
Chris@19 134 # CDPATH.
Chris@19 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@19 136
Chris@19 137 # Use a proper internal environment variable to ensure we don't fall
Chris@19 138 # into an infinite loop, continuously re-executing ourselves.
Chris@19 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
Chris@19 140 _as_can_reexec=no; export _as_can_reexec;
Chris@19 141 # We cannot yet assume a decent shell, so we have to provide a
Chris@19 142 # neutralization value for shells without unset; and this also
Chris@19 143 # works around shells that cannot unset nonexistent variables.
Chris@19 144 # Preserve -v and -x to the replacement shell.
Chris@19 145 BASH_ENV=/dev/null
Chris@19 146 ENV=/dev/null
Chris@19 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
Chris@19 148 case $- in # ((((
Chris@19 149 *v*x* | *x*v* ) as_opts=-vx ;;
Chris@19 150 *v* ) as_opts=-v ;;
Chris@19 151 *x* ) as_opts=-x ;;
Chris@19 152 * ) as_opts= ;;
Chris@19 153 esac
Chris@19 154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
Chris@19 155 # Admittedly, this is quite paranoid, since all the known shells bail
Chris@19 156 # out after a failed `exec'.
Chris@19 157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
Chris@19 158 as_fn_exit 255
Chris@19 159 fi
Chris@19 160 # We don't want this to propagate to other subprocesses.
Chris@19 161 { _as_can_reexec=; unset _as_can_reexec;}
Chris@19 162 if test "x$CONFIG_SHELL" = x; then
Chris@19 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
Chris@19 164 emulate sh
Chris@19 165 NULLCMD=:
Chris@19 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
Chris@19 167 # is contrary to our usage. Disable this feature.
Chris@19 168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
Chris@19 169 setopt NO_GLOB_SUBST
Chris@19 170 else
Chris@19 171 case \`(set -o) 2>/dev/null\` in #(
Chris@19 172 *posix*) :
Chris@19 173 set -o posix ;; #(
Chris@19 174 *) :
Chris@19 175 ;;
Chris@19 176 esac
Chris@19 177 fi
Chris@19 178 "
Chris@19 179 as_required="as_fn_return () { (exit \$1); }
Chris@19 180 as_fn_success () { as_fn_return 0; }
Chris@19 181 as_fn_failure () { as_fn_return 1; }
Chris@19 182 as_fn_ret_success () { return 0; }
Chris@19 183 as_fn_ret_failure () { return 1; }
Chris@19 184
Chris@19 185 exitcode=0
Chris@19 186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
Chris@19 187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
Chris@19 188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
Chris@19 189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
Chris@19 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
Chris@19 191
Chris@19 192 else
Chris@19 193 exitcode=1; echo positional parameters were not saved.
Chris@19 194 fi
Chris@19 195 test x\$exitcode = x0 || exit 1
Chris@19 196 test -x / || exit 1"
Chris@19 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
Chris@19 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
Chris@19 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
Chris@19 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
Chris@19 201
Chris@19 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
Chris@19 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@19 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
Chris@19 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
Chris@19 206 PATH=/empty FPATH=/empty; export PATH FPATH
Chris@19 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
Chris@19 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
Chris@19 209 test \$(( 1 + 1 )) = 2 || exit 1"
Chris@19 210 if (eval "$as_required") 2>/dev/null; then :
Chris@19 211 as_have_required=yes
Chris@19 212 else
Chris@19 213 as_have_required=no
Chris@19 214 fi
Chris@19 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
Chris@19 216
Chris@19 217 else
Chris@19 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 219 as_found=false
Chris@19 220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Chris@19 221 do
Chris@19 222 IFS=$as_save_IFS
Chris@19 223 test -z "$as_dir" && as_dir=.
Chris@19 224 as_found=:
Chris@19 225 case $as_dir in #(
Chris@19 226 /*)
Chris@19 227 for as_base in sh bash ksh sh5; do
Chris@19 228 # Try only shells that exist, to save several forks.
Chris@19 229 as_shell=$as_dir/$as_base
Chris@19 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
Chris@19 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
Chris@19 232 CONFIG_SHELL=$as_shell as_have_required=yes
Chris@19 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
Chris@19 234 break 2
Chris@19 235 fi
Chris@19 236 fi
Chris@19 237 done;;
Chris@19 238 esac
Chris@19 239 as_found=false
Chris@19 240 done
Chris@19 241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
Chris@19 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
Chris@19 243 CONFIG_SHELL=$SHELL as_have_required=yes
Chris@19 244 fi; }
Chris@19 245 IFS=$as_save_IFS
Chris@19 246
Chris@19 247
Chris@19 248 if test "x$CONFIG_SHELL" != x; then :
Chris@19 249 export CONFIG_SHELL
Chris@19 250 # We cannot yet assume a decent shell, so we have to provide a
Chris@19 251 # neutralization value for shells without unset; and this also
Chris@19 252 # works around shells that cannot unset nonexistent variables.
Chris@19 253 # Preserve -v and -x to the replacement shell.
Chris@19 254 BASH_ENV=/dev/null
Chris@19 255 ENV=/dev/null
Chris@19 256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
Chris@19 257 case $- in # ((((
Chris@19 258 *v*x* | *x*v* ) as_opts=-vx ;;
Chris@19 259 *v* ) as_opts=-v ;;
Chris@19 260 *x* ) as_opts=-x ;;
Chris@19 261 * ) as_opts= ;;
Chris@19 262 esac
Chris@19 263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
Chris@19 264 # Admittedly, this is quite paranoid, since all the known shells bail
Chris@19 265 # out after a failed `exec'.
Chris@19 266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
Chris@19 267 exit 255
Chris@19 268 fi
Chris@19 269
Chris@19 270 if test x$as_have_required = xno; then :
Chris@19 271 $as_echo "$0: This script requires a shell more modern than all"
Chris@19 272 $as_echo "$0: the shells that I found on your system."
Chris@19 273 if test x${ZSH_VERSION+set} = xset ; then
Chris@19 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
Chris@19 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
Chris@19 276 else
Chris@19 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and fftw@fftw.org
Chris@19 278 $0: about your system, including any error possibly output
Chris@19 279 $0: before this message. Then install a modern shell, or
Chris@19 280 $0: manually run the script under such a shell if you do
Chris@19 281 $0: have one."
Chris@19 282 fi
Chris@19 283 exit 1
Chris@19 284 fi
Chris@19 285 fi
Chris@19 286 fi
Chris@19 287 SHELL=${CONFIG_SHELL-/bin/sh}
Chris@19 288 export SHELL
Chris@19 289 # Unset more variables known to interfere with behavior of common tools.
Chris@19 290 CLICOLOR_FORCE= GREP_OPTIONS=
Chris@19 291 unset CLICOLOR_FORCE GREP_OPTIONS
Chris@19 292
Chris@19 293 ## --------------------- ##
Chris@19 294 ## M4sh Shell Functions. ##
Chris@19 295 ## --------------------- ##
Chris@19 296 # as_fn_unset VAR
Chris@19 297 # ---------------
Chris@19 298 # Portably unset VAR.
Chris@19 299 as_fn_unset ()
Chris@19 300 {
Chris@19 301 { eval $1=; unset $1;}
Chris@19 302 }
Chris@19 303 as_unset=as_fn_unset
Chris@19 304
Chris@19 305 # as_fn_set_status STATUS
Chris@19 306 # -----------------------
Chris@19 307 # Set $? to STATUS, without forking.
Chris@19 308 as_fn_set_status ()
Chris@19 309 {
Chris@19 310 return $1
Chris@19 311 } # as_fn_set_status
Chris@19 312
Chris@19 313 # as_fn_exit STATUS
Chris@19 314 # -----------------
Chris@19 315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
Chris@19 316 as_fn_exit ()
Chris@19 317 {
Chris@19 318 set +e
Chris@19 319 as_fn_set_status $1
Chris@19 320 exit $1
Chris@19 321 } # as_fn_exit
Chris@19 322
Chris@19 323 # as_fn_mkdir_p
Chris@19 324 # -------------
Chris@19 325 # Create "$as_dir" as a directory, including parents if necessary.
Chris@19 326 as_fn_mkdir_p ()
Chris@19 327 {
Chris@19 328
Chris@19 329 case $as_dir in #(
Chris@19 330 -*) as_dir=./$as_dir;;
Chris@19 331 esac
Chris@19 332 test -d "$as_dir" || eval $as_mkdir_p || {
Chris@19 333 as_dirs=
Chris@19 334 while :; do
Chris@19 335 case $as_dir in #(
Chris@19 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Chris@19 337 *) as_qdir=$as_dir;;
Chris@19 338 esac
Chris@19 339 as_dirs="'$as_qdir' $as_dirs"
Chris@19 340 as_dir=`$as_dirname -- "$as_dir" ||
Chris@19 341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@19 342 X"$as_dir" : 'X\(//\)[^/]' \| \
Chris@19 343 X"$as_dir" : 'X\(//\)$' \| \
Chris@19 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Chris@19 345 $as_echo X"$as_dir" |
Chris@19 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@19 347 s//\1/
Chris@19 348 q
Chris@19 349 }
Chris@19 350 /^X\(\/\/\)[^/].*/{
Chris@19 351 s//\1/
Chris@19 352 q
Chris@19 353 }
Chris@19 354 /^X\(\/\/\)$/{
Chris@19 355 s//\1/
Chris@19 356 q
Chris@19 357 }
Chris@19 358 /^X\(\/\).*/{
Chris@19 359 s//\1/
Chris@19 360 q
Chris@19 361 }
Chris@19 362 s/.*/./; q'`
Chris@19 363 test -d "$as_dir" && break
Chris@19 364 done
Chris@19 365 test -z "$as_dirs" || eval "mkdir $as_dirs"
Chris@19 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Chris@19 367
Chris@19 368
Chris@19 369 } # as_fn_mkdir_p
Chris@19 370
Chris@19 371 # as_fn_executable_p FILE
Chris@19 372 # -----------------------
Chris@19 373 # Test if FILE is an executable regular file.
Chris@19 374 as_fn_executable_p ()
Chris@19 375 {
Chris@19 376 test -f "$1" && test -x "$1"
Chris@19 377 } # as_fn_executable_p
Chris@19 378 # as_fn_append VAR VALUE
Chris@19 379 # ----------------------
Chris@19 380 # Append the text in VALUE to the end of the definition contained in VAR. Take
Chris@19 381 # advantage of any shell optimizations that allow amortized linear growth over
Chris@19 382 # repeated appends, instead of the typical quadratic growth present in naive
Chris@19 383 # implementations.
Chris@19 384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
Chris@19 385 eval 'as_fn_append ()
Chris@19 386 {
Chris@19 387 eval $1+=\$2
Chris@19 388 }'
Chris@19 389 else
Chris@19 390 as_fn_append ()
Chris@19 391 {
Chris@19 392 eval $1=\$$1\$2
Chris@19 393 }
Chris@19 394 fi # as_fn_append
Chris@19 395
Chris@19 396 # as_fn_arith ARG...
Chris@19 397 # ------------------
Chris@19 398 # Perform arithmetic evaluation on the ARGs, and store the result in the
Chris@19 399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
Chris@19 400 # must be portable across $(()) and expr.
Chris@19 401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
Chris@19 402 eval 'as_fn_arith ()
Chris@19 403 {
Chris@19 404 as_val=$(( $* ))
Chris@19 405 }'
Chris@19 406 else
Chris@19 407 as_fn_arith ()
Chris@19 408 {
Chris@19 409 as_val=`expr "$@" || test $? -eq 1`
Chris@19 410 }
Chris@19 411 fi # as_fn_arith
Chris@19 412
Chris@19 413
Chris@19 414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
Chris@19 415 # ----------------------------------------
Chris@19 416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
Chris@19 417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Chris@19 418 # script with STATUS, using 1 if that was 0.
Chris@19 419 as_fn_error ()
Chris@19 420 {
Chris@19 421 as_status=$1; test $as_status -eq 0 && as_status=1
Chris@19 422 if test "$4"; then
Chris@19 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@19 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Chris@19 425 fi
Chris@19 426 $as_echo "$as_me: error: $2" >&2
Chris@19 427 as_fn_exit $as_status
Chris@19 428 } # as_fn_error
Chris@19 429
Chris@19 430 if expr a : '\(a\)' >/dev/null 2>&1 &&
Chris@19 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Chris@19 432 as_expr=expr
Chris@19 433 else
Chris@19 434 as_expr=false
Chris@19 435 fi
Chris@19 436
Chris@19 437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Chris@19 438 as_basename=basename
Chris@19 439 else
Chris@19 440 as_basename=false
Chris@19 441 fi
Chris@19 442
Chris@19 443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
Chris@19 444 as_dirname=dirname
Chris@19 445 else
Chris@19 446 as_dirname=false
Chris@19 447 fi
Chris@19 448
Chris@19 449 as_me=`$as_basename -- "$0" ||
Chris@19 450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
Chris@19 451 X"$0" : 'X\(//\)$' \| \
Chris@19 452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Chris@19 453 $as_echo X/"$0" |
Chris@19 454 sed '/^.*\/\([^/][^/]*\)\/*$/{
Chris@19 455 s//\1/
Chris@19 456 q
Chris@19 457 }
Chris@19 458 /^X\/\(\/\/\)$/{
Chris@19 459 s//\1/
Chris@19 460 q
Chris@19 461 }
Chris@19 462 /^X\/\(\/\).*/{
Chris@19 463 s//\1/
Chris@19 464 q
Chris@19 465 }
Chris@19 466 s/.*/./; q'`
Chris@19 467
Chris@19 468 # Avoid depending upon Character Ranges.
Chris@19 469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
Chris@19 470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
Chris@19 471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
Chris@19 472 as_cr_digits='0123456789'
Chris@19 473 as_cr_alnum=$as_cr_Letters$as_cr_digits
Chris@19 474
Chris@19 475
Chris@19 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
Chris@19 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
Chris@19 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
Chris@19 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
Chris@19 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Chris@19 481 sed -n '
Chris@19 482 p
Chris@19 483 /[$]LINENO/=
Chris@19 484 ' <$as_myself |
Chris@19 485 sed '
Chris@19 486 s/[$]LINENO.*/&-/
Chris@19 487 t lineno
Chris@19 488 b
Chris@19 489 :lineno
Chris@19 490 N
Chris@19 491 :loop
Chris@19 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Chris@19 493 t loop
Chris@19 494 s/-\n.*//
Chris@19 495 ' >$as_me.lineno &&
Chris@19 496 chmod +x "$as_me.lineno" ||
Chris@19 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Chris@19 498
Chris@19 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
Chris@19 500 # already done that, so ensure we don't try to do so again and fall
Chris@19 501 # in an infinite loop. This has already happened in practice.
Chris@19 502 _as_can_reexec=no; export _as_can_reexec
Chris@19 503 # Don't try to exec as it changes $[0], causing all sort of problems
Chris@19 504 # (the dirname of $[0] is not the place where we might find the
Chris@19 505 # original and so on. Autoconf is especially sensitive to this).
Chris@19 506 . "./$as_me.lineno"
Chris@19 507 # Exit status is that of the last command.
Chris@19 508 exit
Chris@19 509 }
Chris@19 510
Chris@19 511 ECHO_C= ECHO_N= ECHO_T=
Chris@19 512 case `echo -n x` in #(((((
Chris@19 513 -n*)
Chris@19 514 case `echo 'xy\c'` in
Chris@19 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Chris@19 516 xy) ECHO_C='\c';;
Chris@19 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
Chris@19 518 ECHO_T=' ';;
Chris@19 519 esac;;
Chris@19 520 *)
Chris@19 521 ECHO_N='-n';;
Chris@19 522 esac
Chris@19 523
Chris@19 524 rm -f conf$$ conf$$.exe conf$$.file
Chris@19 525 if test -d conf$$.dir; then
Chris@19 526 rm -f conf$$.dir/conf$$.file
Chris@19 527 else
Chris@19 528 rm -f conf$$.dir
Chris@19 529 mkdir conf$$.dir 2>/dev/null
Chris@19 530 fi
Chris@19 531 if (echo >conf$$.file) 2>/dev/null; then
Chris@19 532 if ln -s conf$$.file conf$$ 2>/dev/null; then
Chris@19 533 as_ln_s='ln -s'
Chris@19 534 # ... but there are two gotchas:
Chris@19 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
Chris@19 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Chris@19 537 # In both cases, we have to default to `cp -pR'.
Chris@19 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Chris@19 539 as_ln_s='cp -pR'
Chris@19 540 elif ln conf$$.file conf$$ 2>/dev/null; then
Chris@19 541 as_ln_s=ln
Chris@19 542 else
Chris@19 543 as_ln_s='cp -pR'
Chris@19 544 fi
Chris@19 545 else
Chris@19 546 as_ln_s='cp -pR'
Chris@19 547 fi
Chris@19 548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
Chris@19 549 rmdir conf$$.dir 2>/dev/null
Chris@19 550
Chris@19 551 if mkdir -p . 2>/dev/null; then
Chris@19 552 as_mkdir_p='mkdir -p "$as_dir"'
Chris@19 553 else
Chris@19 554 test -d ./-p && rmdir ./-p
Chris@19 555 as_mkdir_p=false
Chris@19 556 fi
Chris@19 557
Chris@19 558 as_test_x='test -x'
Chris@19 559 as_executable_p=as_fn_executable_p
Chris@19 560
Chris@19 561 # Sed expression to map a string onto a valid CPP name.
Chris@19 562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Chris@19 563
Chris@19 564 # Sed expression to map a string onto a valid variable name.
Chris@19 565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Chris@19 566
Chris@19 567 SHELL=${CONFIG_SHELL-/bin/sh}
Chris@19 568
Chris@19 569
Chris@19 570 test -n "$DJDIR" || exec 7<&0 </dev/null
Chris@19 571 exec 6>&1
Chris@19 572
Chris@19 573 # Name of the host.
Chris@19 574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Chris@19 575 # so uname gets run too.
Chris@19 576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@19 577
Chris@19 578 #
Chris@19 579 # Initializations.
Chris@19 580 #
Chris@19 581 ac_default_prefix=/usr/local
Chris@19 582 ac_clean_files=
Chris@19 583 ac_config_libobj_dir=.
Chris@19 584 LIBOBJS=
Chris@19 585 cross_compiling=no
Chris@19 586 subdirs=
Chris@19 587 MFLAGS=
Chris@19 588 MAKEFLAGS=
Chris@19 589
Chris@19 590 # Identity of this package.
Chris@19 591 PACKAGE_NAME='fftw'
Chris@19 592 PACKAGE_TARNAME='fftw'
Chris@19 593 PACKAGE_VERSION='3.3.4'
Chris@19 594 PACKAGE_STRING='fftw 3.3.4'
Chris@19 595 PACKAGE_BUGREPORT='fftw@fftw.org'
Chris@19 596 PACKAGE_URL=''
Chris@19 597
Chris@19 598 ac_unique_file="kernel/ifftw.h"
Chris@19 599 # Factoring default headers for most tests.
Chris@19 600 ac_includes_default="\
Chris@19 601 #include <stdio.h>
Chris@19 602 #ifdef HAVE_SYS_TYPES_H
Chris@19 603 # include <sys/types.h>
Chris@19 604 #endif
Chris@19 605 #ifdef HAVE_SYS_STAT_H
Chris@19 606 # include <sys/stat.h>
Chris@19 607 #endif
Chris@19 608 #ifdef STDC_HEADERS
Chris@19 609 # include <stdlib.h>
Chris@19 610 # include <stddef.h>
Chris@19 611 #else
Chris@19 612 # ifdef HAVE_STDLIB_H
Chris@19 613 # include <stdlib.h>
Chris@19 614 # endif
Chris@19 615 #endif
Chris@19 616 #ifdef HAVE_STRING_H
Chris@19 617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Chris@19 618 # include <memory.h>
Chris@19 619 # endif
Chris@19 620 # include <string.h>
Chris@19 621 #endif
Chris@19 622 #ifdef HAVE_STRINGS_H
Chris@19 623 # include <strings.h>
Chris@19 624 #endif
Chris@19 625 #ifdef HAVE_INTTYPES_H
Chris@19 626 # include <inttypes.h>
Chris@19 627 #endif
Chris@19 628 #ifdef HAVE_STDINT_H
Chris@19 629 # include <stdint.h>
Chris@19 630 #endif
Chris@19 631 #ifdef HAVE_UNISTD_H
Chris@19 632 # include <unistd.h>
Chris@19 633 #endif"
Chris@19 634
Chris@19 635 ac_subst_vars='am__EXEEXT_FALSE
Chris@19 636 am__EXEEXT_TRUE
Chris@19 637 LTLIBOBJS
Chris@19 638 COMBINED_THREADS_FALSE
Chris@19 639 COMBINED_THREADS_TRUE
Chris@19 640 SMP_FALSE
Chris@19 641 SMP_TRUE
Chris@19 642 OPENMP_FALSE
Chris@19 643 OPENMP_TRUE
Chris@19 644 THREADS_FALSE
Chris@19 645 THREADS_TRUE
Chris@19 646 THREADLIBS
Chris@19 647 PTHREAD_CFLAGS
Chris@19 648 PTHREAD_LIBS
Chris@19 649 PTHREAD_CC
Chris@19 650 acx_pthread_config
Chris@19 651 OPENMP_CFLAGS
Chris@19 652 FLIBS
Chris@19 653 ac_ct_F77
Chris@19 654 FFLAGS
Chris@19 655 F77
Chris@19 656 LIBQUADMATH
Chris@19 657 LIBOBJS
Chris@19 658 POW_LIB
Chris@19 659 ALLOCA
Chris@19 660 C_FFTW_R2R_KIND
Chris@19 661 STACK_ALIGN_CFLAGS
Chris@19 662 NEON_CFLAGS
Chris@19 663 ALTIVEC_CFLAGS
Chris@19 664 AVX_CFLAGS
Chris@19 665 SSE2_CFLAGS
Chris@19 666 MPI_FALSE
Chris@19 667 MPI_TRUE
Chris@19 668 C_MPI_FINT
Chris@19 669 MPIRUN
Chris@19 670 MPILIBS
Chris@19 671 MPICC
Chris@19 672 OCAMLBUILD
Chris@19 673 CPP
Chris@19 674 OTOOL64
Chris@19 675 OTOOL
Chris@19 676 LIPO
Chris@19 677 NMEDIT
Chris@19 678 DSYMUTIL
Chris@19 679 MANIFEST_TOOL
Chris@19 680 RANLIB
Chris@19 681 ac_ct_AR
Chris@19 682 AR
Chris@19 683 NM
Chris@19 684 ac_ct_DUMPBIN
Chris@19 685 DUMPBIN
Chris@19 686 LD
Chris@19 687 FGREP
Chris@19 688 EGREP
Chris@19 689 GREP
Chris@19 690 SED
Chris@19 691 LIBTOOL
Chris@19 692 OBJDUMP
Chris@19 693 DLLTOOL
Chris@19 694 AS
Chris@19 695 LN_S
Chris@19 696 am__fastdepCC_FALSE
Chris@19 697 am__fastdepCC_TRUE
Chris@19 698 CCDEPMODE
Chris@19 699 am__nodep
Chris@19 700 AMDEPBACKSLASH
Chris@19 701 AMDEP_FALSE
Chris@19 702 AMDEP_TRUE
Chris@19 703 am__quote
Chris@19 704 am__include
Chris@19 705 DEPDIR
Chris@19 706 OBJEXT
Chris@19 707 EXEEXT
Chris@19 708 ac_ct_CC
Chris@19 709 CPPFLAGS
Chris@19 710 LDFLAGS
Chris@19 711 CFLAGS
Chris@19 712 CC
Chris@19 713 PREC_SUFFIX
Chris@19 714 HAVE_NEON_FALSE
Chris@19 715 HAVE_NEON_TRUE
Chris@19 716 HAVE_ALTIVEC_FALSE
Chris@19 717 HAVE_ALTIVEC_TRUE
Chris@19 718 HAVE_AVX_FALSE
Chris@19 719 HAVE_AVX_TRUE
Chris@19 720 HAVE_SSE2_FALSE
Chris@19 721 HAVE_SSE2_TRUE
Chris@19 722 CHECK_PL_OPTS
Chris@19 723 PRECISION
Chris@19 724 QUAD_FALSE
Chris@19 725 QUAD_TRUE
Chris@19 726 LDOUBLE_FALSE
Chris@19 727 LDOUBLE_TRUE
Chris@19 728 SINGLE_FALSE
Chris@19 729 SINGLE_TRUE
Chris@19 730 host_os
Chris@19 731 host_vendor
Chris@19 732 host_cpu
Chris@19 733 host
Chris@19 734 build_os
Chris@19 735 build_vendor
Chris@19 736 build_cpu
Chris@19 737 build
Chris@19 738 SHARED_VERSION_INFO
Chris@19 739 MAINT
Chris@19 740 MAINTAINER_MODE_FALSE
Chris@19 741 MAINTAINER_MODE_TRUE
Chris@19 742 AM_BACKSLASH
Chris@19 743 AM_DEFAULT_VERBOSITY
Chris@19 744 AM_DEFAULT_V
Chris@19 745 AM_V
Chris@19 746 am__untar
Chris@19 747 am__tar
Chris@19 748 AMTAR
Chris@19 749 am__leading_dot
Chris@19 750 SET_MAKE
Chris@19 751 AWK
Chris@19 752 mkdir_p
Chris@19 753 MKDIR_P
Chris@19 754 INSTALL_STRIP_PROGRAM
Chris@19 755 STRIP
Chris@19 756 install_sh
Chris@19 757 MAKEINFO
Chris@19 758 AUTOHEADER
Chris@19 759 AUTOMAKE
Chris@19 760 AUTOCONF
Chris@19 761 ACLOCAL
Chris@19 762 VERSION
Chris@19 763 PACKAGE
Chris@19 764 CYGPATH_W
Chris@19 765 am__isrc
Chris@19 766 INSTALL_DATA
Chris@19 767 INSTALL_SCRIPT
Chris@19 768 INSTALL_PROGRAM
Chris@19 769 target_alias
Chris@19 770 host_alias
Chris@19 771 build_alias
Chris@19 772 LIBS
Chris@19 773 ECHO_T
Chris@19 774 ECHO_N
Chris@19 775 ECHO_C
Chris@19 776 DEFS
Chris@19 777 mandir
Chris@19 778 localedir
Chris@19 779 libdir
Chris@19 780 psdir
Chris@19 781 pdfdir
Chris@19 782 dvidir
Chris@19 783 htmldir
Chris@19 784 infodir
Chris@19 785 docdir
Chris@19 786 oldincludedir
Chris@19 787 includedir
Chris@19 788 localstatedir
Chris@19 789 sharedstatedir
Chris@19 790 sysconfdir
Chris@19 791 datadir
Chris@19 792 datarootdir
Chris@19 793 libexecdir
Chris@19 794 sbindir
Chris@19 795 bindir
Chris@19 796 program_transform_name
Chris@19 797 prefix
Chris@19 798 exec_prefix
Chris@19 799 PACKAGE_URL
Chris@19 800 PACKAGE_BUGREPORT
Chris@19 801 PACKAGE_STRING
Chris@19 802 PACKAGE_VERSION
Chris@19 803 PACKAGE_TARNAME
Chris@19 804 PACKAGE_NAME
Chris@19 805 PATH_SEPARATOR
Chris@19 806 SHELL'
Chris@19 807 ac_subst_files=''
Chris@19 808 ac_user_opts='
Chris@19 809 enable_option_checking
Chris@19 810 enable_silent_rules
Chris@19 811 enable_maintainer_mode
Chris@19 812 enable_shared
Chris@19 813 enable_fma
Chris@19 814 enable_debug
Chris@19 815 enable_debug_malloc
Chris@19 816 enable_debug_alignment
Chris@19 817 enable_random_estimator
Chris@19 818 enable_alloca
Chris@19 819 enable_single
Chris@19 820 enable_float
Chris@19 821 enable_long_double
Chris@19 822 enable_quad_precision
Chris@19 823 enable_sse
Chris@19 824 enable_sse2
Chris@19 825 enable_avx
Chris@19 826 enable_altivec
Chris@19 827 enable_neon
Chris@19 828 with_slow_timer
Chris@19 829 enable_mips_zbus_timer
Chris@19 830 with_our_malloc
Chris@19 831 with_our_malloc16
Chris@19 832 with_windows_f77_mangling
Chris@19 833 with_incoming_stack_boundary
Chris@19 834 enable_dependency_tracking
Chris@19 835 enable_static
Chris@19 836 with_pic
Chris@19 837 enable_fast_install
Chris@19 838 with_gnu_ld
Chris@19 839 with_sysroot
Chris@19 840 enable_libtool_lock
Chris@19 841 enable_mpi
Chris@19 842 enable_fortran
Chris@19 843 with_g77_wrappers
Chris@19 844 enable_openmp
Chris@19 845 enable_threads
Chris@19 846 with_combined_threads
Chris@19 847 '
Chris@19 848 ac_precious_vars='build_alias
Chris@19 849 host_alias
Chris@19 850 target_alias
Chris@19 851 CC
Chris@19 852 CFLAGS
Chris@19 853 LDFLAGS
Chris@19 854 LIBS
Chris@19 855 CPPFLAGS
Chris@19 856 CPP
Chris@19 857 MPICC
Chris@19 858 F77
Chris@19 859 FFLAGS'
Chris@19 860
Chris@19 861
Chris@19 862 # Initialize some variables set by options.
Chris@19 863 ac_init_help=
Chris@19 864 ac_init_version=false
Chris@19 865 ac_unrecognized_opts=
Chris@19 866 ac_unrecognized_sep=
Chris@19 867 # The variables have the same names as the options, with
Chris@19 868 # dashes changed to underlines.
Chris@19 869 cache_file=/dev/null
Chris@19 870 exec_prefix=NONE
Chris@19 871 no_create=
Chris@19 872 no_recursion=
Chris@19 873 prefix=NONE
Chris@19 874 program_prefix=NONE
Chris@19 875 program_suffix=NONE
Chris@19 876 program_transform_name=s,x,x,
Chris@19 877 silent=
Chris@19 878 site=
Chris@19 879 srcdir=
Chris@19 880 verbose=
Chris@19 881 x_includes=NONE
Chris@19 882 x_libraries=NONE
Chris@19 883
Chris@19 884 # Installation directory options.
Chris@19 885 # These are left unexpanded so users can "make install exec_prefix=/foo"
Chris@19 886 # and all the variables that are supposed to be based on exec_prefix
Chris@19 887 # by default will actually change.
Chris@19 888 # Use braces instead of parens because sh, perl, etc. also accept them.
Chris@19 889 # (The list follows the same order as the GNU Coding Standards.)
Chris@19 890 bindir='${exec_prefix}/bin'
Chris@19 891 sbindir='${exec_prefix}/sbin'
Chris@19 892 libexecdir='${exec_prefix}/libexec'
Chris@19 893 datarootdir='${prefix}/share'
Chris@19 894 datadir='${datarootdir}'
Chris@19 895 sysconfdir='${prefix}/etc'
Chris@19 896 sharedstatedir='${prefix}/com'
Chris@19 897 localstatedir='${prefix}/var'
Chris@19 898 includedir='${prefix}/include'
Chris@19 899 oldincludedir='/usr/include'
Chris@19 900 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
Chris@19 901 infodir='${datarootdir}/info'
Chris@19 902 htmldir='${docdir}'
Chris@19 903 dvidir='${docdir}'
Chris@19 904 pdfdir='${docdir}'
Chris@19 905 psdir='${docdir}'
Chris@19 906 libdir='${exec_prefix}/lib'
Chris@19 907 localedir='${datarootdir}/locale'
Chris@19 908 mandir='${datarootdir}/man'
Chris@19 909
Chris@19 910 ac_prev=
Chris@19 911 ac_dashdash=
Chris@19 912 for ac_option
Chris@19 913 do
Chris@19 914 # If the previous option needs an argument, assign it.
Chris@19 915 if test -n "$ac_prev"; then
Chris@19 916 eval $ac_prev=\$ac_option
Chris@19 917 ac_prev=
Chris@19 918 continue
Chris@19 919 fi
Chris@19 920
Chris@19 921 case $ac_option in
Chris@19 922 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
Chris@19 923 *=) ac_optarg= ;;
Chris@19 924 *) ac_optarg=yes ;;
Chris@19 925 esac
Chris@19 926
Chris@19 927 # Accept the important Cygnus configure options, so we can diagnose typos.
Chris@19 928
Chris@19 929 case $ac_dashdash$ac_option in
Chris@19 930 --)
Chris@19 931 ac_dashdash=yes ;;
Chris@19 932
Chris@19 933 -bindir | --bindir | --bindi | --bind | --bin | --bi)
Chris@19 934 ac_prev=bindir ;;
Chris@19 935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Chris@19 936 bindir=$ac_optarg ;;
Chris@19 937
Chris@19 938 -build | --build | --buil | --bui | --bu)
Chris@19 939 ac_prev=build_alias ;;
Chris@19 940 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Chris@19 941 build_alias=$ac_optarg ;;
Chris@19 942
Chris@19 943 -cache-file | --cache-file | --cache-fil | --cache-fi \
Chris@19 944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
Chris@19 945 ac_prev=cache_file ;;
Chris@19 946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
Chris@19 947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Chris@19 948 cache_file=$ac_optarg ;;
Chris@19 949
Chris@19 950 --config-cache | -C)
Chris@19 951 cache_file=config.cache ;;
Chris@19 952
Chris@19 953 -datadir | --datadir | --datadi | --datad)
Chris@19 954 ac_prev=datadir ;;
Chris@19 955 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Chris@19 956 datadir=$ac_optarg ;;
Chris@19 957
Chris@19 958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
Chris@19 959 | --dataroo | --dataro | --datar)
Chris@19 960 ac_prev=datarootdir ;;
Chris@19 961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
Chris@19 962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
Chris@19 963 datarootdir=$ac_optarg ;;
Chris@19 964
Chris@19 965 -disable-* | --disable-*)
Chris@19 966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Chris@19 967 # Reject names that are not valid shell variable names.
Chris@19 968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@19 969 as_fn_error $? "invalid feature name: $ac_useropt"
Chris@19 970 ac_useropt_orig=$ac_useropt
Chris@19 971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@19 972 case $ac_user_opts in
Chris@19 973 *"
Chris@19 974 "enable_$ac_useropt"
Chris@19 975 "*) ;;
Chris@19 976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
Chris@19 977 ac_unrecognized_sep=', ';;
Chris@19 978 esac
Chris@19 979 eval enable_$ac_useropt=no ;;
Chris@19 980
Chris@19 981 -docdir | --docdir | --docdi | --doc | --do)
Chris@19 982 ac_prev=docdir ;;
Chris@19 983 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
Chris@19 984 docdir=$ac_optarg ;;
Chris@19 985
Chris@19 986 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
Chris@19 987 ac_prev=dvidir ;;
Chris@19 988 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
Chris@19 989 dvidir=$ac_optarg ;;
Chris@19 990
Chris@19 991 -enable-* | --enable-*)
Chris@19 992 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Chris@19 993 # Reject names that are not valid shell variable names.
Chris@19 994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@19 995 as_fn_error $? "invalid feature name: $ac_useropt"
Chris@19 996 ac_useropt_orig=$ac_useropt
Chris@19 997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@19 998 case $ac_user_opts in
Chris@19 999 *"
Chris@19 1000 "enable_$ac_useropt"
Chris@19 1001 "*) ;;
Chris@19 1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
Chris@19 1003 ac_unrecognized_sep=', ';;
Chris@19 1004 esac
Chris@19 1005 eval enable_$ac_useropt=\$ac_optarg ;;
Chris@19 1006
Chris@19 1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
Chris@19 1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
Chris@19 1009 | --exec | --exe | --ex)
Chris@19 1010 ac_prev=exec_prefix ;;
Chris@19 1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
Chris@19 1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
Chris@19 1013 | --exec=* | --exe=* | --ex=*)
Chris@19 1014 exec_prefix=$ac_optarg ;;
Chris@19 1015
Chris@19 1016 -gas | --gas | --ga | --g)
Chris@19 1017 # Obsolete; use --with-gas.
Chris@19 1018 with_gas=yes ;;
Chris@19 1019
Chris@19 1020 -help | --help | --hel | --he | -h)
Chris@19 1021 ac_init_help=long ;;
Chris@19 1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
Chris@19 1023 ac_init_help=recursive ;;
Chris@19 1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
Chris@19 1025 ac_init_help=short ;;
Chris@19 1026
Chris@19 1027 -host | --host | --hos | --ho)
Chris@19 1028 ac_prev=host_alias ;;
Chris@19 1029 -host=* | --host=* | --hos=* | --ho=*)
Chris@19 1030 host_alias=$ac_optarg ;;
Chris@19 1031
Chris@19 1032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
Chris@19 1033 ac_prev=htmldir ;;
Chris@19 1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
Chris@19 1035 | --ht=*)
Chris@19 1036 htmldir=$ac_optarg ;;
Chris@19 1037
Chris@19 1038 -includedir | --includedir | --includedi | --included | --include \
Chris@19 1039 | --includ | --inclu | --incl | --inc)
Chris@19 1040 ac_prev=includedir ;;
Chris@19 1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
Chris@19 1042 | --includ=* | --inclu=* | --incl=* | --inc=*)
Chris@19 1043 includedir=$ac_optarg ;;
Chris@19 1044
Chris@19 1045 -infodir | --infodir | --infodi | --infod | --info | --inf)
Chris@19 1046 ac_prev=infodir ;;
Chris@19 1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Chris@19 1048 infodir=$ac_optarg ;;
Chris@19 1049
Chris@19 1050 -libdir | --libdir | --libdi | --libd)
Chris@19 1051 ac_prev=libdir ;;
Chris@19 1052 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Chris@19 1053 libdir=$ac_optarg ;;
Chris@19 1054
Chris@19 1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
Chris@19 1056 | --libexe | --libex | --libe)
Chris@19 1057 ac_prev=libexecdir ;;
Chris@19 1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
Chris@19 1059 | --libexe=* | --libex=* | --libe=*)
Chris@19 1060 libexecdir=$ac_optarg ;;
Chris@19 1061
Chris@19 1062 -localedir | --localedir | --localedi | --localed | --locale)
Chris@19 1063 ac_prev=localedir ;;
Chris@19 1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
Chris@19 1065 localedir=$ac_optarg ;;
Chris@19 1066
Chris@19 1067 -localstatedir | --localstatedir | --localstatedi | --localstated \
Chris@19 1068 | --localstate | --localstat | --localsta | --localst | --locals)
Chris@19 1069 ac_prev=localstatedir ;;
Chris@19 1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Chris@19 1071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Chris@19 1072 localstatedir=$ac_optarg ;;
Chris@19 1073
Chris@19 1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
Chris@19 1075 ac_prev=mandir ;;
Chris@19 1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Chris@19 1077 mandir=$ac_optarg ;;
Chris@19 1078
Chris@19 1079 -nfp | --nfp | --nf)
Chris@19 1080 # Obsolete; use --without-fp.
Chris@19 1081 with_fp=no ;;
Chris@19 1082
Chris@19 1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Chris@19 1084 | --no-cr | --no-c | -n)
Chris@19 1085 no_create=yes ;;
Chris@19 1086
Chris@19 1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
Chris@19 1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
Chris@19 1089 no_recursion=yes ;;
Chris@19 1090
Chris@19 1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
Chris@19 1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
Chris@19 1093 | --oldin | --oldi | --old | --ol | --o)
Chris@19 1094 ac_prev=oldincludedir ;;
Chris@19 1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
Chris@19 1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
Chris@19 1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Chris@19 1098 oldincludedir=$ac_optarg ;;
Chris@19 1099
Chris@19 1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
Chris@19 1101 ac_prev=prefix ;;
Chris@19 1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Chris@19 1103 prefix=$ac_optarg ;;
Chris@19 1104
Chris@19 1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \
Chris@19 1106 | --program-pre | --program-pr | --program-p)
Chris@19 1107 ac_prev=program_prefix ;;
Chris@19 1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \
Chris@19 1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Chris@19 1110 program_prefix=$ac_optarg ;;
Chris@19 1111
Chris@19 1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \
Chris@19 1113 | --program-suf | --program-su | --program-s)
Chris@19 1114 ac_prev=program_suffix ;;
Chris@19 1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \
Chris@19 1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Chris@19 1117 program_suffix=$ac_optarg ;;
Chris@19 1118
Chris@19 1119 -program-transform-name | --program-transform-name \
Chris@19 1120 | --program-transform-nam | --program-transform-na \
Chris@19 1121 | --program-transform-n | --program-transform- \
Chris@19 1122 | --program-transform | --program-transfor \
Chris@19 1123 | --program-transfo | --program-transf \
Chris@19 1124 | --program-trans | --program-tran \
Chris@19 1125 | --progr-tra | --program-tr | --program-t)
Chris@19 1126 ac_prev=program_transform_name ;;
Chris@19 1127 -program-transform-name=* | --program-transform-name=* \
Chris@19 1128 | --program-transform-nam=* | --program-transform-na=* \
Chris@19 1129 | --program-transform-n=* | --program-transform-=* \
Chris@19 1130 | --program-transform=* | --program-transfor=* \
Chris@19 1131 | --program-transfo=* | --program-transf=* \
Chris@19 1132 | --program-trans=* | --program-tran=* \
Chris@19 1133 | --progr-tra=* | --program-tr=* | --program-t=*)
Chris@19 1134 program_transform_name=$ac_optarg ;;
Chris@19 1135
Chris@19 1136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
Chris@19 1137 ac_prev=pdfdir ;;
Chris@19 1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
Chris@19 1139 pdfdir=$ac_optarg ;;
Chris@19 1140
Chris@19 1141 -psdir | --psdir | --psdi | --psd | --ps)
Chris@19 1142 ac_prev=psdir ;;
Chris@19 1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
Chris@19 1144 psdir=$ac_optarg ;;
Chris@19 1145
Chris@19 1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@19 1147 | -silent | --silent | --silen | --sile | --sil)
Chris@19 1148 silent=yes ;;
Chris@19 1149
Chris@19 1150 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
Chris@19 1151 ac_prev=sbindir ;;
Chris@19 1152 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
Chris@19 1153 | --sbi=* | --sb=*)
Chris@19 1154 sbindir=$ac_optarg ;;
Chris@19 1155
Chris@19 1156 -sharedstatedir | --sharedstatedir | --sharedstatedi \
Chris@19 1157 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
Chris@19 1158 | --sharedst | --shareds | --shared | --share | --shar \
Chris@19 1159 | --sha | --sh)
Chris@19 1160 ac_prev=sharedstatedir ;;
Chris@19 1161 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
Chris@19 1162 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
Chris@19 1163 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
Chris@19 1164 | --sha=* | --sh=*)
Chris@19 1165 sharedstatedir=$ac_optarg ;;
Chris@19 1166
Chris@19 1167 -site | --site | --sit)
Chris@19 1168 ac_prev=site ;;
Chris@19 1169 -site=* | --site=* | --sit=*)
Chris@19 1170 site=$ac_optarg ;;
Chris@19 1171
Chris@19 1172 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
Chris@19 1173 ac_prev=srcdir ;;
Chris@19 1174 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Chris@19 1175 srcdir=$ac_optarg ;;
Chris@19 1176
Chris@19 1177 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
Chris@19 1178 | --syscon | --sysco | --sysc | --sys | --sy)
Chris@19 1179 ac_prev=sysconfdir ;;
Chris@19 1180 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
Chris@19 1181 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Chris@19 1182 sysconfdir=$ac_optarg ;;
Chris@19 1183
Chris@19 1184 -target | --target | --targe | --targ | --tar | --ta | --t)
Chris@19 1185 ac_prev=target_alias ;;
Chris@19 1186 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Chris@19 1187 target_alias=$ac_optarg ;;
Chris@19 1188
Chris@19 1189 -v | -verbose | --verbose | --verbos | --verbo | --verb)
Chris@19 1190 verbose=yes ;;
Chris@19 1191
Chris@19 1192 -version | --version | --versio | --versi | --vers | -V)
Chris@19 1193 ac_init_version=: ;;
Chris@19 1194
Chris@19 1195 -with-* | --with-*)
Chris@19 1196 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Chris@19 1197 # Reject names that are not valid shell variable names.
Chris@19 1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@19 1199 as_fn_error $? "invalid package name: $ac_useropt"
Chris@19 1200 ac_useropt_orig=$ac_useropt
Chris@19 1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@19 1202 case $ac_user_opts in
Chris@19 1203 *"
Chris@19 1204 "with_$ac_useropt"
Chris@19 1205 "*) ;;
Chris@19 1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
Chris@19 1207 ac_unrecognized_sep=', ';;
Chris@19 1208 esac
Chris@19 1209 eval with_$ac_useropt=\$ac_optarg ;;
Chris@19 1210
Chris@19 1211 -without-* | --without-*)
Chris@19 1212 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Chris@19 1213 # Reject names that are not valid shell variable names.
Chris@19 1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@19 1215 as_fn_error $? "invalid package name: $ac_useropt"
Chris@19 1216 ac_useropt_orig=$ac_useropt
Chris@19 1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@19 1218 case $ac_user_opts in
Chris@19 1219 *"
Chris@19 1220 "with_$ac_useropt"
Chris@19 1221 "*) ;;
Chris@19 1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
Chris@19 1223 ac_unrecognized_sep=', ';;
Chris@19 1224 esac
Chris@19 1225 eval with_$ac_useropt=no ;;
Chris@19 1226
Chris@19 1227 --x)
Chris@19 1228 # Obsolete; use --with-x.
Chris@19 1229 with_x=yes ;;
Chris@19 1230
Chris@19 1231 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
Chris@19 1232 | --x-incl | --x-inc | --x-in | --x-i)
Chris@19 1233 ac_prev=x_includes ;;
Chris@19 1234 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
Chris@19 1235 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Chris@19 1236 x_includes=$ac_optarg ;;
Chris@19 1237
Chris@19 1238 -x-libraries | --x-libraries | --x-librarie | --x-librari \
Chris@19 1239 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
Chris@19 1240 ac_prev=x_libraries ;;
Chris@19 1241 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
Chris@19 1242 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Chris@19 1243 x_libraries=$ac_optarg ;;
Chris@19 1244
Chris@19 1245 -*) as_fn_error $? "unrecognized option: \`$ac_option'
Chris@19 1246 Try \`$0 --help' for more information"
Chris@19 1247 ;;
Chris@19 1248
Chris@19 1249 *=*)
Chris@19 1250 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
Chris@19 1251 # Reject names that are not valid shell variable names.
Chris@19 1252 case $ac_envvar in #(
Chris@19 1253 '' | [0-9]* | *[!_$as_cr_alnum]* )
Chris@19 1254 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Chris@19 1255 esac
Chris@19 1256 eval $ac_envvar=\$ac_optarg
Chris@19 1257 export $ac_envvar ;;
Chris@19 1258
Chris@19 1259 *)
Chris@19 1260 # FIXME: should be removed in autoconf 3.0.
Chris@19 1261 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Chris@19 1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Chris@19 1263 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Chris@19 1264 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Chris@19 1265 ;;
Chris@19 1266
Chris@19 1267 esac
Chris@19 1268 done
Chris@19 1269
Chris@19 1270 if test -n "$ac_prev"; then
Chris@19 1271 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Chris@19 1272 as_fn_error $? "missing argument to $ac_option"
Chris@19 1273 fi
Chris@19 1274
Chris@19 1275 if test -n "$ac_unrecognized_opts"; then
Chris@19 1276 case $enable_option_checking in
Chris@19 1277 no) ;;
Chris@19 1278 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Chris@19 1279 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Chris@19 1280 esac
Chris@19 1281 fi
Chris@19 1282
Chris@19 1283 # Check all directory arguments for consistency.
Chris@19 1284 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
Chris@19 1285 datadir sysconfdir sharedstatedir localstatedir includedir \
Chris@19 1286 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Chris@19 1287 libdir localedir mandir
Chris@19 1288 do
Chris@19 1289 eval ac_val=\$$ac_var
Chris@19 1290 # Remove trailing slashes.
Chris@19 1291 case $ac_val in
Chris@19 1292 */ )
Chris@19 1293 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
Chris@19 1294 eval $ac_var=\$ac_val;;
Chris@19 1295 esac
Chris@19 1296 # Be sure to have absolute directory names.
Chris@19 1297 case $ac_val in
Chris@19 1298 [\\/$]* | ?:[\\/]* ) continue;;
Chris@19 1299 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Chris@19 1300 esac
Chris@19 1301 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Chris@19 1302 done
Chris@19 1303
Chris@19 1304 # There might be people who depend on the old broken behavior: `$host'
Chris@19 1305 # used to hold the argument of --host etc.
Chris@19 1306 # FIXME: To remove some day.
Chris@19 1307 build=$build_alias
Chris@19 1308 host=$host_alias
Chris@19 1309 target=$target_alias
Chris@19 1310
Chris@19 1311 # FIXME: To remove some day.
Chris@19 1312 if test "x$host_alias" != x; then
Chris@19 1313 if test "x$build_alias" = x; then
Chris@19 1314 cross_compiling=maybe
Chris@19 1315 elif test "x$build_alias" != "x$host_alias"; then
Chris@19 1316 cross_compiling=yes
Chris@19 1317 fi
Chris@19 1318 fi
Chris@19 1319
Chris@19 1320 ac_tool_prefix=
Chris@19 1321 test -n "$host_alias" && ac_tool_prefix=$host_alias-
Chris@19 1322
Chris@19 1323 test "$silent" = yes && exec 6>/dev/null
Chris@19 1324
Chris@19 1325
Chris@19 1326 ac_pwd=`pwd` && test -n "$ac_pwd" &&
Chris@19 1327 ac_ls_di=`ls -di .` &&
Chris@19 1328 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Chris@19 1329 as_fn_error $? "working directory cannot be determined"
Chris@19 1330 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Chris@19 1331 as_fn_error $? "pwd does not report name of working directory"
Chris@19 1332
Chris@19 1333
Chris@19 1334 # Find the source files, if location was not specified.
Chris@19 1335 if test -z "$srcdir"; then
Chris@19 1336 ac_srcdir_defaulted=yes
Chris@19 1337 # Try the directory containing this script, then the parent directory.
Chris@19 1338 ac_confdir=`$as_dirname -- "$as_myself" ||
Chris@19 1339 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@19 1340 X"$as_myself" : 'X\(//\)[^/]' \| \
Chris@19 1341 X"$as_myself" : 'X\(//\)$' \| \
Chris@19 1342 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
Chris@19 1343 $as_echo X"$as_myself" |
Chris@19 1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@19 1345 s//\1/
Chris@19 1346 q
Chris@19 1347 }
Chris@19 1348 /^X\(\/\/\)[^/].*/{
Chris@19 1349 s//\1/
Chris@19 1350 q
Chris@19 1351 }
Chris@19 1352 /^X\(\/\/\)$/{
Chris@19 1353 s//\1/
Chris@19 1354 q
Chris@19 1355 }
Chris@19 1356 /^X\(\/\).*/{
Chris@19 1357 s//\1/
Chris@19 1358 q
Chris@19 1359 }
Chris@19 1360 s/.*/./; q'`
Chris@19 1361 srcdir=$ac_confdir
Chris@19 1362 if test ! -r "$srcdir/$ac_unique_file"; then
Chris@19 1363 srcdir=..
Chris@19 1364 fi
Chris@19 1365 else
Chris@19 1366 ac_srcdir_defaulted=no
Chris@19 1367 fi
Chris@19 1368 if test ! -r "$srcdir/$ac_unique_file"; then
Chris@19 1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Chris@19 1370 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Chris@19 1371 fi
Chris@19 1372 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
Chris@19 1373 ac_abs_confdir=`(
Chris@19 1374 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Chris@19 1375 pwd)`
Chris@19 1376 # When building in place, set srcdir=.
Chris@19 1377 if test "$ac_abs_confdir" = "$ac_pwd"; then
Chris@19 1378 srcdir=.
Chris@19 1379 fi
Chris@19 1380 # Remove unnecessary trailing slashes from srcdir.
Chris@19 1381 # Double slashes in file names in object file debugging info
Chris@19 1382 # mess up M-x gdb in Emacs.
Chris@19 1383 case $srcdir in
Chris@19 1384 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
Chris@19 1385 esac
Chris@19 1386 for ac_var in $ac_precious_vars; do
Chris@19 1387 eval ac_env_${ac_var}_set=\${${ac_var}+set}
Chris@19 1388 eval ac_env_${ac_var}_value=\$${ac_var}
Chris@19 1389 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
Chris@19 1390 eval ac_cv_env_${ac_var}_value=\$${ac_var}
Chris@19 1391 done
Chris@19 1392
Chris@19 1393 #
Chris@19 1394 # Report the --help message.
Chris@19 1395 #
Chris@19 1396 if test "$ac_init_help" = "long"; then
Chris@19 1397 # Omit some internal or obsolete options to make the list less imposing.
Chris@19 1398 # This message is too long to be a string in the A/UX 3.1 sh.
Chris@19 1399 cat <<_ACEOF
Chris@19 1400 \`configure' configures fftw 3.3.4 to adapt to many kinds of systems.
Chris@19 1401
Chris@19 1402 Usage: $0 [OPTION]... [VAR=VALUE]...
Chris@19 1403
Chris@19 1404 To assign environment variables (e.g., CC, CFLAGS...), specify them as
Chris@19 1405 VAR=VALUE. See below for descriptions of some of the useful variables.
Chris@19 1406
Chris@19 1407 Defaults for the options are specified in brackets.
Chris@19 1408
Chris@19 1409 Configuration:
Chris@19 1410 -h, --help display this help and exit
Chris@19 1411 --help=short display options specific to this package
Chris@19 1412 --help=recursive display the short help of all the included packages
Chris@19 1413 -V, --version display version information and exit
Chris@19 1414 -q, --quiet, --silent do not print \`checking ...' messages
Chris@19 1415 --cache-file=FILE cache test results in FILE [disabled]
Chris@19 1416 -C, --config-cache alias for \`--cache-file=config.cache'
Chris@19 1417 -n, --no-create do not create output files
Chris@19 1418 --srcdir=DIR find the sources in DIR [configure dir or \`..']
Chris@19 1419
Chris@19 1420 Installation directories:
Chris@19 1421 --prefix=PREFIX install architecture-independent files in PREFIX
Chris@19 1422 [$ac_default_prefix]
Chris@19 1423 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Chris@19 1424 [PREFIX]
Chris@19 1425
Chris@19 1426 By default, \`make install' will install all the files in
Chris@19 1427 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
Chris@19 1428 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
Chris@19 1429 for instance \`--prefix=\$HOME'.
Chris@19 1430
Chris@19 1431 For better control, use the options below.
Chris@19 1432
Chris@19 1433 Fine tuning of the installation directories:
Chris@19 1434 --bindir=DIR user executables [EPREFIX/bin]
Chris@19 1435 --sbindir=DIR system admin executables [EPREFIX/sbin]
Chris@19 1436 --libexecdir=DIR program executables [EPREFIX/libexec]
Chris@19 1437 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
Chris@19 1438 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
Chris@19 1439 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Chris@19 1440 --libdir=DIR object code libraries [EPREFIX/lib]
Chris@19 1441 --includedir=DIR C header files [PREFIX/include]
Chris@19 1442 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Chris@19 1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
Chris@19 1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
Chris@19 1445 --infodir=DIR info documentation [DATAROOTDIR/info]
Chris@19 1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
Chris@19 1447 --mandir=DIR man documentation [DATAROOTDIR/man]
Chris@19 1448 --docdir=DIR documentation root [DATAROOTDIR/doc/fftw]
Chris@19 1449 --htmldir=DIR html documentation [DOCDIR]
Chris@19 1450 --dvidir=DIR dvi documentation [DOCDIR]
Chris@19 1451 --pdfdir=DIR pdf documentation [DOCDIR]
Chris@19 1452 --psdir=DIR ps documentation [DOCDIR]
Chris@19 1453 _ACEOF
Chris@19 1454
Chris@19 1455 cat <<\_ACEOF
Chris@19 1456
Chris@19 1457 Program names:
Chris@19 1458 --program-prefix=PREFIX prepend PREFIX to installed program names
Chris@19 1459 --program-suffix=SUFFIX append SUFFIX to installed program names
Chris@19 1460 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
Chris@19 1461
Chris@19 1462 System types:
Chris@19 1463 --build=BUILD configure for building on BUILD [guessed]
Chris@19 1464 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Chris@19 1465 _ACEOF
Chris@19 1466 fi
Chris@19 1467
Chris@19 1468 if test -n "$ac_init_help"; then
Chris@19 1469 case $ac_init_help in
Chris@19 1470 short | recursive ) echo "Configuration of fftw 3.3.4:";;
Chris@19 1471 esac
Chris@19 1472 cat <<\_ACEOF
Chris@19 1473
Chris@19 1474 Optional Features:
Chris@19 1475 --disable-option-checking ignore unrecognized --enable/--with options
Chris@19 1476 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
Chris@19 1477 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Chris@19 1478 --enable-silent-rules less verbose build output (undo: "make V=1")
Chris@19 1479 --disable-silent-rules verbose build output (undo: "make V=0")
Chris@19 1480 --enable-maintainer-mode
Chris@19 1481 enable make rules and dependencies not useful (and
Chris@19 1482 sometimes confusing) to the casual installer
Chris@19 1483 --enable-shared[=PKGS] build shared libraries [default=no]
Chris@19 1484 --enable-fma enable optimizations for machines with fused
Chris@19 1485 multiply-add
Chris@19 1486 --enable-debug compile fftw with extra runtime checks for debugging
Chris@19 1487 --enable-debug-malloc enable malloc debugging version
Chris@19 1488 --enable-debug-alignment
Chris@19 1489 enable alignment debugging hacks
Chris@19 1490 --enable-random-estimator
Chris@19 1491 enable pseudorandom estimator (debugging hack)
Chris@19 1492 --disable-alloca disable use of the alloca() function (may be broken
Chris@19 1493 on mingw64)
Chris@19 1494 --enable-single compile fftw in single precision
Chris@19 1495 --enable-float synonym for --enable-single
Chris@19 1496 --enable-long-double compile fftw in long-double precision
Chris@19 1497 --enable-quad-precision compile fftw in quadruple precision if available
Chris@19 1498 --enable-sse enable SSE optimizations
Chris@19 1499 --enable-sse2 enable SSE/SSE2 optimizations
Chris@19 1500 --enable-avx enable AVX optimizations
Chris@19 1501 --enable-altivec enable Altivec optimizations
Chris@19 1502 --enable-neon enable ARM NEON optimizations
Chris@19 1503 --enable-mips-zbus-timer
Chris@19 1504 use MIPS ZBus cycle-counter
Chris@19 1505 --enable-dependency-tracking
Chris@19 1506 do not reject slow dependency extractors
Chris@19 1507 --disable-dependency-tracking
Chris@19 1508 speeds up one-time build
Chris@19 1509 --enable-static[=PKGS] build static libraries [default=yes]
Chris@19 1510 --enable-fast-install[=PKGS]
Chris@19 1511 optimize for fast installation [default=yes]
Chris@19 1512 --disable-libtool-lock avoid locking (might break parallel builds)
Chris@19 1513 --enable-mpi compile FFTW MPI library
Chris@19 1514 --disable-fortran don't include Fortran-callable wrappers
Chris@19 1515 --enable-openmp use OpenMP directives for parallelism
Chris@19 1516 --enable-threads compile FFTW SMP threads library
Chris@19 1517
Chris@19 1518 Optional Packages:
Chris@19 1519 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
Chris@19 1520 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Chris@19 1521 --with-slow-timer use low-precision timers (SLOW)
Chris@19 1522 --with-our-malloc use our aligned malloc (helpful for Win32)
Chris@19 1523 --with-our-malloc16 Obsolete alias for --with-our-malloc16
Chris@19 1524 --with-windows-f77-mangling
Chris@19 1525 use common Win32 Fortran interface styles
Chris@19 1526 --with-incoming-stack-boundary=X
Chris@19 1527 Assume that stack is aligned to (1<<X) bytes
Chris@19 1528 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
Chris@19 1529 both]
Chris@19 1530 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Chris@19 1531 --with-sysroot=DIR Search for dependent libraries within DIR
Chris@19 1532 (or the compiler's sysroot if not specified).
Chris@19 1533 --with-g77-wrappers force inclusion of g77-compatible wrappers in
Chris@19 1534 addition to any other Fortran compiler that is
Chris@19 1535 detected
Chris@19 1536 --with-combined-threads combine threads into main libfftw3
Chris@19 1537
Chris@19 1538 Some influential environment variables:
Chris@19 1539 CC C compiler command
Chris@19 1540 CFLAGS C compiler flags
Chris@19 1541 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
Chris@19 1542 nonstandard directory <lib dir>
Chris@19 1543 LIBS libraries to pass to the linker, e.g. -l<library>
Chris@19 1544 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Chris@19 1545 you have headers in a nonstandard directory <include dir>
Chris@19 1546 CPP C preprocessor
Chris@19 1547 MPICC MPI C compiler command
Chris@19 1548 F77 Fortran 77 compiler command
Chris@19 1549 FFLAGS Fortran 77 compiler flags
Chris@19 1550
Chris@19 1551 Use these variables to override the choices made by `configure' or to help
Chris@19 1552 it to find libraries and programs with nonstandard names/locations.
Chris@19 1553
Chris@19 1554 Report bugs to <fftw@fftw.org>.
Chris@19 1555 _ACEOF
Chris@19 1556 ac_status=$?
Chris@19 1557 fi
Chris@19 1558
Chris@19 1559 if test "$ac_init_help" = "recursive"; then
Chris@19 1560 # If there are subdirs, report their specific --help.
Chris@19 1561 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Chris@19 1562 test -d "$ac_dir" ||
Chris@19 1563 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
Chris@19 1564 continue
Chris@19 1565 ac_builddir=.
Chris@19 1566
Chris@19 1567 case "$ac_dir" in
Chris@19 1568 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@19 1569 *)
Chris@19 1570 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Chris@19 1571 # A ".." for each directory in $ac_dir_suffix.
Chris@19 1572 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Chris@19 1573 case $ac_top_builddir_sub in
Chris@19 1574 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@19 1575 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
Chris@19 1576 esac ;;
Chris@19 1577 esac
Chris@19 1578 ac_abs_top_builddir=$ac_pwd
Chris@19 1579 ac_abs_builddir=$ac_pwd$ac_dir_suffix
Chris@19 1580 # for backward compatibility:
Chris@19 1581 ac_top_builddir=$ac_top_build_prefix
Chris@19 1582
Chris@19 1583 case $srcdir in
Chris@19 1584 .) # We are building in place.
Chris@19 1585 ac_srcdir=.
Chris@19 1586 ac_top_srcdir=$ac_top_builddir_sub
Chris@19 1587 ac_abs_top_srcdir=$ac_pwd ;;
Chris@19 1588 [\\/]* | ?:[\\/]* ) # Absolute name.
Chris@19 1589 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@19 1590 ac_top_srcdir=$srcdir
Chris@19 1591 ac_abs_top_srcdir=$srcdir ;;
Chris@19 1592 *) # Relative name.
Chris@19 1593 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
Chris@19 1594 ac_top_srcdir=$ac_top_build_prefix$srcdir
Chris@19 1595 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Chris@19 1596 esac
Chris@19 1597 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Chris@19 1598
Chris@19 1599 cd "$ac_dir" || { ac_status=$?; continue; }
Chris@19 1600 # Check for guested configure.
Chris@19 1601 if test -f "$ac_srcdir/configure.gnu"; then
Chris@19 1602 echo &&
Chris@19 1603 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
Chris@19 1604 elif test -f "$ac_srcdir/configure"; then
Chris@19 1605 echo &&
Chris@19 1606 $SHELL "$ac_srcdir/configure" --help=recursive
Chris@19 1607 else
Chris@19 1608 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Chris@19 1609 fi || ac_status=$?
Chris@19 1610 cd "$ac_pwd" || { ac_status=$?; break; }
Chris@19 1611 done
Chris@19 1612 fi
Chris@19 1613
Chris@19 1614 test -n "$ac_init_help" && exit $ac_status
Chris@19 1615 if $ac_init_version; then
Chris@19 1616 cat <<\_ACEOF
Chris@19 1617 fftw configure 3.3.4
Chris@19 1618 generated by GNU Autoconf 2.69
Chris@19 1619
Chris@19 1620 Copyright (C) 2012 Free Software Foundation, Inc.
Chris@19 1621 This configure script is free software; the Free Software Foundation
Chris@19 1622 gives unlimited permission to copy, distribute and modify it.
Chris@19 1623 _ACEOF
Chris@19 1624 exit
Chris@19 1625 fi
Chris@19 1626
Chris@19 1627 ## ------------------------ ##
Chris@19 1628 ## Autoconf initialization. ##
Chris@19 1629 ## ------------------------ ##
Chris@19 1630
Chris@19 1631 # ac_fn_c_try_compile LINENO
Chris@19 1632 # --------------------------
Chris@19 1633 # Try to compile conftest.$ac_ext, and return whether this succeeded.
Chris@19 1634 ac_fn_c_try_compile ()
Chris@19 1635 {
Chris@19 1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@19 1637 rm -f conftest.$ac_objext
Chris@19 1638 if { { ac_try="$ac_compile"
Chris@19 1639 case "(($ac_try" in
Chris@19 1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@19 1641 *) ac_try_echo=$ac_try;;
Chris@19 1642 esac
Chris@19 1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@19 1644 $as_echo "$ac_try_echo"; } >&5
Chris@19 1645 (eval "$ac_compile") 2>conftest.err
Chris@19 1646 ac_status=$?
Chris@19 1647 if test -s conftest.err; then
Chris@19 1648 grep -v '^ *+' conftest.err >conftest.er1
Chris@19 1649 cat conftest.er1 >&5
Chris@19 1650 mv -f conftest.er1 conftest.err
Chris@19 1651 fi
Chris@19 1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@19 1653 test $ac_status = 0; } && {
Chris@19 1654 test -z "$ac_c_werror_flag" ||
Chris@19 1655 test ! -s conftest.err
Chris@19 1656 } && test -s conftest.$ac_objext; then :
Chris@19 1657 ac_retval=0
Chris@19 1658 else
Chris@19 1659 $as_echo "$as_me: failed program was:" >&5
Chris@19 1660 sed 's/^/| /' conftest.$ac_ext >&5
Chris@19 1661
Chris@19 1662 ac_retval=1
Chris@19 1663 fi
Chris@19 1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@19 1665 as_fn_set_status $ac_retval
Chris@19 1666
Chris@19 1667 } # ac_fn_c_try_compile
Chris@19 1668
Chris@19 1669 # ac_fn_c_try_link LINENO
Chris@19 1670 # -----------------------
Chris@19 1671 # Try to link conftest.$ac_ext, and return whether this succeeded.
Chris@19 1672 ac_fn_c_try_link ()
Chris@19 1673 {
Chris@19 1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@19 1675 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@19 1676 if { { ac_try="$ac_link"
Chris@19 1677 case "(($ac_try" in
Chris@19 1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@19 1679 *) ac_try_echo=$ac_try;;
Chris@19 1680 esac
Chris@19 1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@19 1682 $as_echo "$ac_try_echo"; } >&5
Chris@19 1683 (eval "$ac_link") 2>conftest.err
Chris@19 1684 ac_status=$?
Chris@19 1685 if test -s conftest.err; then
Chris@19 1686 grep -v '^ *+' conftest.err >conftest.er1
Chris@19 1687 cat conftest.er1 >&5
Chris@19 1688 mv -f conftest.er1 conftest.err
Chris@19 1689 fi
Chris@19 1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@19 1691 test $ac_status = 0; } && {
Chris@19 1692 test -z "$ac_c_werror_flag" ||
Chris@19 1693 test ! -s conftest.err
Chris@19 1694 } && test -s conftest$ac_exeext && {
Chris@19 1695 test "$cross_compiling" = yes ||
Chris@19 1696 test -x conftest$ac_exeext
Chris@19 1697 }; then :
Chris@19 1698 ac_retval=0
Chris@19 1699 else
Chris@19 1700 $as_echo "$as_me: failed program was:" >&5
Chris@19 1701 sed 's/^/| /' conftest.$ac_ext >&5
Chris@19 1702
Chris@19 1703 ac_retval=1
Chris@19 1704 fi
Chris@19 1705 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
Chris@19 1706 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
Chris@19 1707 # interfere with the next link command; also delete a directory that is
Chris@19 1708 # left behind by Apple's compiler. We do this before executing the actions.
Chris@19 1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris@19 1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@19 1711 as_fn_set_status $ac_retval
Chris@19 1712
Chris@19 1713 } # ac_fn_c_try_link
Chris@19 1714
Chris@19 1715 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
Chris@19 1716 # -------------------------------------------------------
Chris@19 1717 # Tests whether HEADER exists and can be compiled using the include files in
Chris@19 1718 # INCLUDES, setting the cache variable VAR accordingly.
Chris@19 1719 ac_fn_c_check_header_compile ()
Chris@19 1720 {
Chris@19 1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@19 1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@19 1723 $as_echo_n "checking for $2... " >&6; }
Chris@19 1724 if eval \${$3+:} false; then :
Chris@19 1725 $as_echo_n "(cached) " >&6
Chris@19 1726 else
Chris@19 1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 1728 /* end confdefs.h. */
Chris@19 1729 $4
Chris@19 1730 #include <$2>
Chris@19 1731 _ACEOF
Chris@19 1732 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 1733 eval "$3=yes"
Chris@19 1734 else
Chris@19 1735 eval "$3=no"
Chris@19 1736 fi
Chris@19 1737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 1738 fi
Chris@19 1739 eval ac_res=\$$3
Chris@19 1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@19 1741 $as_echo "$ac_res" >&6; }
Chris@19 1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@19 1743
Chris@19 1744 } # ac_fn_c_check_header_compile
Chris@19 1745
Chris@19 1746 # ac_fn_c_try_cpp LINENO
Chris@19 1747 # ----------------------
Chris@19 1748 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
Chris@19 1749 ac_fn_c_try_cpp ()
Chris@19 1750 {
Chris@19 1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@19 1752 if { { ac_try="$ac_cpp conftest.$ac_ext"
Chris@19 1753 case "(($ac_try" in
Chris@19 1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@19 1755 *) ac_try_echo=$ac_try;;
Chris@19 1756 esac
Chris@19 1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@19 1758 $as_echo "$ac_try_echo"; } >&5
Chris@19 1759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
Chris@19 1760 ac_status=$?
Chris@19 1761 if test -s conftest.err; then
Chris@19 1762 grep -v '^ *+' conftest.err >conftest.er1
Chris@19 1763 cat conftest.er1 >&5
Chris@19 1764 mv -f conftest.er1 conftest.err
Chris@19 1765 fi
Chris@19 1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@19 1767 test $ac_status = 0; } > conftest.i && {
Chris@19 1768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
Chris@19 1769 test ! -s conftest.err
Chris@19 1770 }; then :
Chris@19 1771 ac_retval=0
Chris@19 1772 else
Chris@19 1773 $as_echo "$as_me: failed program was:" >&5
Chris@19 1774 sed 's/^/| /' conftest.$ac_ext >&5
Chris@19 1775
Chris@19 1776 ac_retval=1
Chris@19 1777 fi
Chris@19 1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@19 1779 as_fn_set_status $ac_retval
Chris@19 1780
Chris@19 1781 } # ac_fn_c_try_cpp
Chris@19 1782
Chris@19 1783 # ac_fn_c_try_run LINENO
Chris@19 1784 # ----------------------
Chris@19 1785 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
Chris@19 1786 # that executables *can* be run.
Chris@19 1787 ac_fn_c_try_run ()
Chris@19 1788 {
Chris@19 1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@19 1790 if { { ac_try="$ac_link"
Chris@19 1791 case "(($ac_try" in
Chris@19 1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@19 1793 *) ac_try_echo=$ac_try;;
Chris@19 1794 esac
Chris@19 1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@19 1796 $as_echo "$ac_try_echo"; } >&5
Chris@19 1797 (eval "$ac_link") 2>&5
Chris@19 1798 ac_status=$?
Chris@19 1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@19 1800 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
Chris@19 1801 { { case "(($ac_try" in
Chris@19 1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@19 1803 *) ac_try_echo=$ac_try;;
Chris@19 1804 esac
Chris@19 1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@19 1806 $as_echo "$ac_try_echo"; } >&5
Chris@19 1807 (eval "$ac_try") 2>&5
Chris@19 1808 ac_status=$?
Chris@19 1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@19 1810 test $ac_status = 0; }; }; then :
Chris@19 1811 ac_retval=0
Chris@19 1812 else
Chris@19 1813 $as_echo "$as_me: program exited with status $ac_status" >&5
Chris@19 1814 $as_echo "$as_me: failed program was:" >&5
Chris@19 1815 sed 's/^/| /' conftest.$ac_ext >&5
Chris@19 1816
Chris@19 1817 ac_retval=$ac_status
Chris@19 1818 fi
Chris@19 1819 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris@19 1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@19 1821 as_fn_set_status $ac_retval
Chris@19 1822
Chris@19 1823 } # ac_fn_c_try_run
Chris@19 1824
Chris@19 1825 # ac_fn_c_check_func LINENO FUNC VAR
Chris@19 1826 # ----------------------------------
Chris@19 1827 # Tests whether FUNC exists, setting the cache variable VAR accordingly
Chris@19 1828 ac_fn_c_check_func ()
Chris@19 1829 {
Chris@19 1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@19 1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@19 1832 $as_echo_n "checking for $2... " >&6; }
Chris@19 1833 if eval \${$3+:} false; then :
Chris@19 1834 $as_echo_n "(cached) " >&6
Chris@19 1835 else
Chris@19 1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 1837 /* end confdefs.h. */
Chris@19 1838 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
Chris@19 1839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
Chris@19 1840 #define $2 innocuous_$2
Chris@19 1841
Chris@19 1842 /* System header to define __stub macros and hopefully few prototypes,
Chris@19 1843 which can conflict with char $2 (); below.
Chris@19 1844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@19 1845 <limits.h> exists even on freestanding compilers. */
Chris@19 1846
Chris@19 1847 #ifdef __STDC__
Chris@19 1848 # include <limits.h>
Chris@19 1849 #else
Chris@19 1850 # include <assert.h>
Chris@19 1851 #endif
Chris@19 1852
Chris@19 1853 #undef $2
Chris@19 1854
Chris@19 1855 /* Override any GCC internal prototype to avoid an error.
Chris@19 1856 Use char because int might match the return type of a GCC
Chris@19 1857 builtin and then its argument prototype would still apply. */
Chris@19 1858 #ifdef __cplusplus
Chris@19 1859 extern "C"
Chris@19 1860 #endif
Chris@19 1861 char $2 ();
Chris@19 1862 /* The GNU C library defines this for functions which it implements
Chris@19 1863 to always fail with ENOSYS. Some functions are actually named
Chris@19 1864 something starting with __ and the normal name is an alias. */
Chris@19 1865 #if defined __stub_$2 || defined __stub___$2
Chris@19 1866 choke me
Chris@19 1867 #endif
Chris@19 1868
Chris@19 1869 int
Chris@19 1870 main ()
Chris@19 1871 {
Chris@19 1872 return $2 ();
Chris@19 1873 ;
Chris@19 1874 return 0;
Chris@19 1875 }
Chris@19 1876 _ACEOF
Chris@19 1877 if ac_fn_c_try_link "$LINENO"; then :
Chris@19 1878 eval "$3=yes"
Chris@19 1879 else
Chris@19 1880 eval "$3=no"
Chris@19 1881 fi
Chris@19 1882 rm -f core conftest.err conftest.$ac_objext \
Chris@19 1883 conftest$ac_exeext conftest.$ac_ext
Chris@19 1884 fi
Chris@19 1885 eval ac_res=\$$3
Chris@19 1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@19 1887 $as_echo "$ac_res" >&6; }
Chris@19 1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@19 1889
Chris@19 1890 } # ac_fn_c_check_func
Chris@19 1891
Chris@19 1892 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
Chris@19 1893 # --------------------------------------------
Chris@19 1894 # Tries to find the compile-time value of EXPR in a program that includes
Chris@19 1895 # INCLUDES, setting VAR accordingly. Returns whether the value could be
Chris@19 1896 # computed
Chris@19 1897 ac_fn_c_compute_int ()
Chris@19 1898 {
Chris@19 1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@19 1900 if test "$cross_compiling" = yes; then
Chris@19 1901 # Depending upon the size, compute the lo and hi bounds.
Chris@19 1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 1903 /* end confdefs.h. */
Chris@19 1904 $4
Chris@19 1905 int
Chris@19 1906 main ()
Chris@19 1907 {
Chris@19 1908 static int test_array [1 - 2 * !(($2) >= 0)];
Chris@19 1909 test_array [0] = 0;
Chris@19 1910 return test_array [0];
Chris@19 1911
Chris@19 1912 ;
Chris@19 1913 return 0;
Chris@19 1914 }
Chris@19 1915 _ACEOF
Chris@19 1916 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 1917 ac_lo=0 ac_mid=0
Chris@19 1918 while :; do
Chris@19 1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 1920 /* end confdefs.h. */
Chris@19 1921 $4
Chris@19 1922 int
Chris@19 1923 main ()
Chris@19 1924 {
Chris@19 1925 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Chris@19 1926 test_array [0] = 0;
Chris@19 1927 return test_array [0];
Chris@19 1928
Chris@19 1929 ;
Chris@19 1930 return 0;
Chris@19 1931 }
Chris@19 1932 _ACEOF
Chris@19 1933 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 1934 ac_hi=$ac_mid; break
Chris@19 1935 else
Chris@19 1936 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
Chris@19 1937 if test $ac_lo -le $ac_mid; then
Chris@19 1938 ac_lo= ac_hi=
Chris@19 1939 break
Chris@19 1940 fi
Chris@19 1941 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
Chris@19 1942 fi
Chris@19 1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 1944 done
Chris@19 1945 else
Chris@19 1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 1947 /* end confdefs.h. */
Chris@19 1948 $4
Chris@19 1949 int
Chris@19 1950 main ()
Chris@19 1951 {
Chris@19 1952 static int test_array [1 - 2 * !(($2) < 0)];
Chris@19 1953 test_array [0] = 0;
Chris@19 1954 return test_array [0];
Chris@19 1955
Chris@19 1956 ;
Chris@19 1957 return 0;
Chris@19 1958 }
Chris@19 1959 _ACEOF
Chris@19 1960 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 1961 ac_hi=-1 ac_mid=-1
Chris@19 1962 while :; do
Chris@19 1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 1964 /* end confdefs.h. */
Chris@19 1965 $4
Chris@19 1966 int
Chris@19 1967 main ()
Chris@19 1968 {
Chris@19 1969 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Chris@19 1970 test_array [0] = 0;
Chris@19 1971 return test_array [0];
Chris@19 1972
Chris@19 1973 ;
Chris@19 1974 return 0;
Chris@19 1975 }
Chris@19 1976 _ACEOF
Chris@19 1977 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 1978 ac_lo=$ac_mid; break
Chris@19 1979 else
Chris@19 1980 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
Chris@19 1981 if test $ac_mid -le $ac_hi; then
Chris@19 1982 ac_lo= ac_hi=
Chris@19 1983 break
Chris@19 1984 fi
Chris@19 1985 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
Chris@19 1986 fi
Chris@19 1987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 1988 done
Chris@19 1989 else
Chris@19 1990 ac_lo= ac_hi=
Chris@19 1991 fi
Chris@19 1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 1993 fi
Chris@19 1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 1995 # Binary search between lo and hi bounds.
Chris@19 1996 while test "x$ac_lo" != "x$ac_hi"; do
Chris@19 1997 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
Chris@19 1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 1999 /* end confdefs.h. */
Chris@19 2000 $4
Chris@19 2001 int
Chris@19 2002 main ()
Chris@19 2003 {
Chris@19 2004 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Chris@19 2005 test_array [0] = 0;
Chris@19 2006 return test_array [0];
Chris@19 2007
Chris@19 2008 ;
Chris@19 2009 return 0;
Chris@19 2010 }
Chris@19 2011 _ACEOF
Chris@19 2012 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 2013 ac_hi=$ac_mid
Chris@19 2014 else
Chris@19 2015 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
Chris@19 2016 fi
Chris@19 2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 2018 done
Chris@19 2019 case $ac_lo in #((
Chris@19 2020 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
Chris@19 2021 '') ac_retval=1 ;;
Chris@19 2022 esac
Chris@19 2023 else
Chris@19 2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 2025 /* end confdefs.h. */
Chris@19 2026 $4
Chris@19 2027 static long int longval () { return $2; }
Chris@19 2028 static unsigned long int ulongval () { return $2; }
Chris@19 2029 #include <stdio.h>
Chris@19 2030 #include <stdlib.h>
Chris@19 2031 int
Chris@19 2032 main ()
Chris@19 2033 {
Chris@19 2034
Chris@19 2035 FILE *f = fopen ("conftest.val", "w");
Chris@19 2036 if (! f)
Chris@19 2037 return 1;
Chris@19 2038 if (($2) < 0)
Chris@19 2039 {
Chris@19 2040 long int i = longval ();
Chris@19 2041 if (i != ($2))
Chris@19 2042 return 1;
Chris@19 2043 fprintf (f, "%ld", i);
Chris@19 2044 }
Chris@19 2045 else
Chris@19 2046 {
Chris@19 2047 unsigned long int i = ulongval ();
Chris@19 2048 if (i != ($2))
Chris@19 2049 return 1;
Chris@19 2050 fprintf (f, "%lu", i);
Chris@19 2051 }
Chris@19 2052 /* Do not output a trailing newline, as this causes \r\n confusion
Chris@19 2053 on some platforms. */
Chris@19 2054 return ferror (f) || fclose (f) != 0;
Chris@19 2055
Chris@19 2056 ;
Chris@19 2057 return 0;
Chris@19 2058 }
Chris@19 2059 _ACEOF
Chris@19 2060 if ac_fn_c_try_run "$LINENO"; then :
Chris@19 2061 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
Chris@19 2062 else
Chris@19 2063 ac_retval=1
Chris@19 2064 fi
Chris@19 2065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@19 2066 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@19 2067 rm -f conftest.val
Chris@19 2068
Chris@19 2069 fi
Chris@19 2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@19 2071 as_fn_set_status $ac_retval
Chris@19 2072
Chris@19 2073 } # ac_fn_c_compute_int
Chris@19 2074
Chris@19 2075 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
Chris@19 2076 # -------------------------------------------------------
Chris@19 2077 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
Chris@19 2078 # the include files in INCLUDES and setting the cache variable VAR
Chris@19 2079 # accordingly.
Chris@19 2080 ac_fn_c_check_header_mongrel ()
Chris@19 2081 {
Chris@19 2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@19 2083 if eval \${$3+:} false; then :
Chris@19 2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@19 2085 $as_echo_n "checking for $2... " >&6; }
Chris@19 2086 if eval \${$3+:} false; then :
Chris@19 2087 $as_echo_n "(cached) " >&6
Chris@19 2088 fi
Chris@19 2089 eval ac_res=\$$3
Chris@19 2090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@19 2091 $as_echo "$ac_res" >&6; }
Chris@19 2092 else
Chris@19 2093 # Is the header compilable?
Chris@19 2094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
Chris@19 2095 $as_echo_n "checking $2 usability... " >&6; }
Chris@19 2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 2097 /* end confdefs.h. */
Chris@19 2098 $4
Chris@19 2099 #include <$2>
Chris@19 2100 _ACEOF
Chris@19 2101 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 2102 ac_header_compiler=yes
Chris@19 2103 else
Chris@19 2104 ac_header_compiler=no
Chris@19 2105 fi
Chris@19 2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
Chris@19 2108 $as_echo "$ac_header_compiler" >&6; }
Chris@19 2109
Chris@19 2110 # Is the header present?
Chris@19 2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
Chris@19 2112 $as_echo_n "checking $2 presence... " >&6; }
Chris@19 2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 2114 /* end confdefs.h. */
Chris@19 2115 #include <$2>
Chris@19 2116 _ACEOF
Chris@19 2117 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@19 2118 ac_header_preproc=yes
Chris@19 2119 else
Chris@19 2120 ac_header_preproc=no
Chris@19 2121 fi
Chris@19 2122 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@19 2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
Chris@19 2124 $as_echo "$ac_header_preproc" >&6; }
Chris@19 2125
Chris@19 2126 # So? What about this header?
Chris@19 2127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
Chris@19 2128 yes:no: )
Chris@19 2129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
Chris@19 2130 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
Chris@19 2131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
Chris@19 2132 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Chris@19 2133 ;;
Chris@19 2134 no:yes:* )
Chris@19 2135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
Chris@19 2136 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
Chris@19 2137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
Chris@19 2138 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
Chris@19 2139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
Chris@19 2140 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
Chris@19 2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
Chris@19 2142 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
Chris@19 2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
Chris@19 2144 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Chris@19 2145 ( $as_echo "## ---------------------------- ##
Chris@19 2146 ## Report this to fftw@fftw.org ##
Chris@19 2147 ## ---------------------------- ##"
Chris@19 2148 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris@19 2149 ;;
Chris@19 2150 esac
Chris@19 2151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@19 2152 $as_echo_n "checking for $2... " >&6; }
Chris@19 2153 if eval \${$3+:} false; then :
Chris@19 2154 $as_echo_n "(cached) " >&6
Chris@19 2155 else
Chris@19 2156 eval "$3=\$ac_header_compiler"
Chris@19 2157 fi
Chris@19 2158 eval ac_res=\$$3
Chris@19 2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@19 2160 $as_echo "$ac_res" >&6; }
Chris@19 2161 fi
Chris@19 2162 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@19 2163
Chris@19 2164 } # ac_fn_c_check_header_mongrel
Chris@19 2165
Chris@19 2166 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
Chris@19 2167 # -------------------------------------------
Chris@19 2168 # Tests whether TYPE exists after having included INCLUDES, setting cache
Chris@19 2169 # variable VAR accordingly.
Chris@19 2170 ac_fn_c_check_type ()
Chris@19 2171 {
Chris@19 2172 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@19 2173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@19 2174 $as_echo_n "checking for $2... " >&6; }
Chris@19 2175 if eval \${$3+:} false; then :
Chris@19 2176 $as_echo_n "(cached) " >&6
Chris@19 2177 else
Chris@19 2178 eval "$3=no"
Chris@19 2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 2180 /* end confdefs.h. */
Chris@19 2181 $4
Chris@19 2182 int
Chris@19 2183 main ()
Chris@19 2184 {
Chris@19 2185 if (sizeof ($2))
Chris@19 2186 return 0;
Chris@19 2187 ;
Chris@19 2188 return 0;
Chris@19 2189 }
Chris@19 2190 _ACEOF
Chris@19 2191 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 2192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 2193 /* end confdefs.h. */
Chris@19 2194 $4
Chris@19 2195 int
Chris@19 2196 main ()
Chris@19 2197 {
Chris@19 2198 if (sizeof (($2)))
Chris@19 2199 return 0;
Chris@19 2200 ;
Chris@19 2201 return 0;
Chris@19 2202 }
Chris@19 2203 _ACEOF
Chris@19 2204 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 2205
Chris@19 2206 else
Chris@19 2207 eval "$3=yes"
Chris@19 2208 fi
Chris@19 2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 2210 fi
Chris@19 2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 2212 fi
Chris@19 2213 eval ac_res=\$$3
Chris@19 2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@19 2215 $as_echo "$ac_res" >&6; }
Chris@19 2216 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@19 2217
Chris@19 2218 } # ac_fn_c_check_type
Chris@19 2219
Chris@19 2220 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
Chris@19 2221 # ---------------------------------------------
Chris@19 2222 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
Chris@19 2223 # accordingly.
Chris@19 2224 ac_fn_c_check_decl ()
Chris@19 2225 {
Chris@19 2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@19 2227 as_decl_name=`echo $2|sed 's/ *(.*//'`
Chris@19 2228 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
Chris@19 2229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
Chris@19 2230 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
Chris@19 2231 if eval \${$3+:} false; then :
Chris@19 2232 $as_echo_n "(cached) " >&6
Chris@19 2233 else
Chris@19 2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 2235 /* end confdefs.h. */
Chris@19 2236 $4
Chris@19 2237 int
Chris@19 2238 main ()
Chris@19 2239 {
Chris@19 2240 #ifndef $as_decl_name
Chris@19 2241 #ifdef __cplusplus
Chris@19 2242 (void) $as_decl_use;
Chris@19 2243 #else
Chris@19 2244 (void) $as_decl_name;
Chris@19 2245 #endif
Chris@19 2246 #endif
Chris@19 2247
Chris@19 2248 ;
Chris@19 2249 return 0;
Chris@19 2250 }
Chris@19 2251 _ACEOF
Chris@19 2252 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 2253 eval "$3=yes"
Chris@19 2254 else
Chris@19 2255 eval "$3=no"
Chris@19 2256 fi
Chris@19 2257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 2258 fi
Chris@19 2259 eval ac_res=\$$3
Chris@19 2260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@19 2261 $as_echo "$ac_res" >&6; }
Chris@19 2262 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@19 2263
Chris@19 2264 } # ac_fn_c_check_decl
Chris@19 2265
Chris@19 2266 # ac_fn_f77_try_compile LINENO
Chris@19 2267 # ----------------------------
Chris@19 2268 # Try to compile conftest.$ac_ext, and return whether this succeeded.
Chris@19 2269 ac_fn_f77_try_compile ()
Chris@19 2270 {
Chris@19 2271 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@19 2272 rm -f conftest.$ac_objext
Chris@19 2273 if { { ac_try="$ac_compile"
Chris@19 2274 case "(($ac_try" in
Chris@19 2275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@19 2276 *) ac_try_echo=$ac_try;;
Chris@19 2277 esac
Chris@19 2278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@19 2279 $as_echo "$ac_try_echo"; } >&5
Chris@19 2280 (eval "$ac_compile") 2>conftest.err
Chris@19 2281 ac_status=$?
Chris@19 2282 if test -s conftest.err; then
Chris@19 2283 grep -v '^ *+' conftest.err >conftest.er1
Chris@19 2284 cat conftest.er1 >&5
Chris@19 2285 mv -f conftest.er1 conftest.err
Chris@19 2286 fi
Chris@19 2287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@19 2288 test $ac_status = 0; } && {
Chris@19 2289 test -z "$ac_f77_werror_flag" ||
Chris@19 2290 test ! -s conftest.err
Chris@19 2291 } && test -s conftest.$ac_objext; then :
Chris@19 2292 ac_retval=0
Chris@19 2293 else
Chris@19 2294 $as_echo "$as_me: failed program was:" >&5
Chris@19 2295 sed 's/^/| /' conftest.$ac_ext >&5
Chris@19 2296
Chris@19 2297 ac_retval=1
Chris@19 2298 fi
Chris@19 2299 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@19 2300 as_fn_set_status $ac_retval
Chris@19 2301
Chris@19 2302 } # ac_fn_f77_try_compile
Chris@19 2303
Chris@19 2304 # ac_fn_f77_try_link LINENO
Chris@19 2305 # -------------------------
Chris@19 2306 # Try to link conftest.$ac_ext, and return whether this succeeded.
Chris@19 2307 ac_fn_f77_try_link ()
Chris@19 2308 {
Chris@19 2309 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@19 2310 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@19 2311 if { { ac_try="$ac_link"
Chris@19 2312 case "(($ac_try" in
Chris@19 2313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@19 2314 *) ac_try_echo=$ac_try;;
Chris@19 2315 esac
Chris@19 2316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@19 2317 $as_echo "$ac_try_echo"; } >&5
Chris@19 2318 (eval "$ac_link") 2>conftest.err
Chris@19 2319 ac_status=$?
Chris@19 2320 if test -s conftest.err; then
Chris@19 2321 grep -v '^ *+' conftest.err >conftest.er1
Chris@19 2322 cat conftest.er1 >&5
Chris@19 2323 mv -f conftest.er1 conftest.err
Chris@19 2324 fi
Chris@19 2325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@19 2326 test $ac_status = 0; } && {
Chris@19 2327 test -z "$ac_f77_werror_flag" ||
Chris@19 2328 test ! -s conftest.err
Chris@19 2329 } && test -s conftest$ac_exeext && {
Chris@19 2330 test "$cross_compiling" = yes ||
Chris@19 2331 test -x conftest$ac_exeext
Chris@19 2332 }; then :
Chris@19 2333 ac_retval=0
Chris@19 2334 else
Chris@19 2335 $as_echo "$as_me: failed program was:" >&5
Chris@19 2336 sed 's/^/| /' conftest.$ac_ext >&5
Chris@19 2337
Chris@19 2338 ac_retval=1
Chris@19 2339 fi
Chris@19 2340 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
Chris@19 2341 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
Chris@19 2342 # interfere with the next link command; also delete a directory that is
Chris@19 2343 # left behind by Apple's compiler. We do this before executing the actions.
Chris@19 2344 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris@19 2345 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@19 2346 as_fn_set_status $ac_retval
Chris@19 2347
Chris@19 2348 } # ac_fn_f77_try_link
Chris@19 2349 cat >config.log <<_ACEOF
Chris@19 2350 This file contains any messages produced by compilers while
Chris@19 2351 running configure, to aid debugging if configure makes a mistake.
Chris@19 2352
Chris@19 2353 It was created by fftw $as_me 3.3.4, which was
Chris@19 2354 generated by GNU Autoconf 2.69. Invocation command line was
Chris@19 2355
Chris@19 2356 $ $0 $@
Chris@19 2357
Chris@19 2358 _ACEOF
Chris@19 2359 exec 5>>config.log
Chris@19 2360 {
Chris@19 2361 cat <<_ASUNAME
Chris@19 2362 ## --------- ##
Chris@19 2363 ## Platform. ##
Chris@19 2364 ## --------- ##
Chris@19 2365
Chris@19 2366 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@19 2367 uname -m = `(uname -m) 2>/dev/null || echo unknown`
Chris@19 2368 uname -r = `(uname -r) 2>/dev/null || echo unknown`
Chris@19 2369 uname -s = `(uname -s) 2>/dev/null || echo unknown`
Chris@19 2370 uname -v = `(uname -v) 2>/dev/null || echo unknown`
Chris@19 2371
Chris@19 2372 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
Chris@19 2373 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
Chris@19 2374
Chris@19 2375 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
Chris@19 2376 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
Chris@19 2377 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Chris@19 2378 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Chris@19 2379 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
Chris@19 2380 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
Chris@19 2381 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
Chris@19 2382
Chris@19 2383 _ASUNAME
Chris@19 2384
Chris@19 2385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 2386 for as_dir in $PATH
Chris@19 2387 do
Chris@19 2388 IFS=$as_save_IFS
Chris@19 2389 test -z "$as_dir" && as_dir=.
Chris@19 2390 $as_echo "PATH: $as_dir"
Chris@19 2391 done
Chris@19 2392 IFS=$as_save_IFS
Chris@19 2393
Chris@19 2394 } >&5
Chris@19 2395
Chris@19 2396 cat >&5 <<_ACEOF
Chris@19 2397
Chris@19 2398
Chris@19 2399 ## ----------- ##
Chris@19 2400 ## Core tests. ##
Chris@19 2401 ## ----------- ##
Chris@19 2402
Chris@19 2403 _ACEOF
Chris@19 2404
Chris@19 2405
Chris@19 2406 # Keep a trace of the command line.
Chris@19 2407 # Strip out --no-create and --no-recursion so they do not pile up.
Chris@19 2408 # Strip out --silent because we don't want to record it for future runs.
Chris@19 2409 # Also quote any args containing shell meta-characters.
Chris@19 2410 # Make two passes to allow for proper duplicate-argument suppression.
Chris@19 2411 ac_configure_args=
Chris@19 2412 ac_configure_args0=
Chris@19 2413 ac_configure_args1=
Chris@19 2414 ac_must_keep_next=false
Chris@19 2415 for ac_pass in 1 2
Chris@19 2416 do
Chris@19 2417 for ac_arg
Chris@19 2418 do
Chris@19 2419 case $ac_arg in
Chris@19 2420 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
Chris@19 2421 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@19 2422 | -silent | --silent | --silen | --sile | --sil)
Chris@19 2423 continue ;;
Chris@19 2424 *\'*)
Chris@19 2425 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@19 2426 esac
Chris@19 2427 case $ac_pass in
Chris@19 2428 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Chris@19 2429 2)
Chris@19 2430 as_fn_append ac_configure_args1 " '$ac_arg'"
Chris@19 2431 if test $ac_must_keep_next = true; then
Chris@19 2432 ac_must_keep_next=false # Got value, back to normal.
Chris@19 2433 else
Chris@19 2434 case $ac_arg in
Chris@19 2435 *=* | --config-cache | -C | -disable-* | --disable-* \
Chris@19 2436 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
Chris@19 2437 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
Chris@19 2438 | -with-* | --with-* | -without-* | --without-* | --x)
Chris@19 2439 case "$ac_configure_args0 " in
Chris@19 2440 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
Chris@19 2441 esac
Chris@19 2442 ;;
Chris@19 2443 -* ) ac_must_keep_next=true ;;
Chris@19 2444 esac
Chris@19 2445 fi
Chris@19 2446 as_fn_append ac_configure_args " '$ac_arg'"
Chris@19 2447 ;;
Chris@19 2448 esac
Chris@19 2449 done
Chris@19 2450 done
Chris@19 2451 { ac_configure_args0=; unset ac_configure_args0;}
Chris@19 2452 { ac_configure_args1=; unset ac_configure_args1;}
Chris@19 2453
Chris@19 2454 # When interrupted or exit'd, cleanup temporary files, and complete
Chris@19 2455 # config.log. We remove comments because anyway the quotes in there
Chris@19 2456 # would cause problems or look ugly.
Chris@19 2457 # WARNING: Use '\'' to represent an apostrophe within the trap.
Chris@19 2458 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Chris@19 2459 trap 'exit_status=$?
Chris@19 2460 # Save into config.log some information that might help in debugging.
Chris@19 2461 {
Chris@19 2462 echo
Chris@19 2463
Chris@19 2464 $as_echo "## ---------------- ##
Chris@19 2465 ## Cache variables. ##
Chris@19 2466 ## ---------------- ##"
Chris@19 2467 echo
Chris@19 2468 # The following way of writing the cache mishandles newlines in values,
Chris@19 2469 (
Chris@19 2470 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
Chris@19 2471 eval ac_val=\$$ac_var
Chris@19 2472 case $ac_val in #(
Chris@19 2473 *${as_nl}*)
Chris@19 2474 case $ac_var in #(
Chris@19 2475 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Chris@19 2476 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Chris@19 2477 esac
Chris@19 2478 case $ac_var in #(
Chris@19 2479 _ | IFS | as_nl) ;; #(
Chris@19 2480 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Chris@19 2481 *) { eval $ac_var=; unset $ac_var;} ;;
Chris@19 2482 esac ;;
Chris@19 2483 esac
Chris@19 2484 done
Chris@19 2485 (set) 2>&1 |
Chris@19 2486 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
Chris@19 2487 *${as_nl}ac_space=\ *)
Chris@19 2488 sed -n \
Chris@19 2489 "s/'\''/'\''\\\\'\'''\''/g;
Chris@19 2490 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
Chris@19 2491 ;; #(
Chris@19 2492 *)
Chris@19 2493 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Chris@19 2494 ;;
Chris@19 2495 esac |
Chris@19 2496 sort
Chris@19 2497 )
Chris@19 2498 echo
Chris@19 2499
Chris@19 2500 $as_echo "## ----------------- ##
Chris@19 2501 ## Output variables. ##
Chris@19 2502 ## ----------------- ##"
Chris@19 2503 echo
Chris@19 2504 for ac_var in $ac_subst_vars
Chris@19 2505 do
Chris@19 2506 eval ac_val=\$$ac_var
Chris@19 2507 case $ac_val in
Chris@19 2508 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Chris@19 2509 esac
Chris@19 2510 $as_echo "$ac_var='\''$ac_val'\''"
Chris@19 2511 done | sort
Chris@19 2512 echo
Chris@19 2513
Chris@19 2514 if test -n "$ac_subst_files"; then
Chris@19 2515 $as_echo "## ------------------- ##
Chris@19 2516 ## File substitutions. ##
Chris@19 2517 ## ------------------- ##"
Chris@19 2518 echo
Chris@19 2519 for ac_var in $ac_subst_files
Chris@19 2520 do
Chris@19 2521 eval ac_val=\$$ac_var
Chris@19 2522 case $ac_val in
Chris@19 2523 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Chris@19 2524 esac
Chris@19 2525 $as_echo "$ac_var='\''$ac_val'\''"
Chris@19 2526 done | sort
Chris@19 2527 echo
Chris@19 2528 fi
Chris@19 2529
Chris@19 2530 if test -s confdefs.h; then
Chris@19 2531 $as_echo "## ----------- ##
Chris@19 2532 ## confdefs.h. ##
Chris@19 2533 ## ----------- ##"
Chris@19 2534 echo
Chris@19 2535 cat confdefs.h
Chris@19 2536 echo
Chris@19 2537 fi
Chris@19 2538 test "$ac_signal" != 0 &&
Chris@19 2539 $as_echo "$as_me: caught signal $ac_signal"
Chris@19 2540 $as_echo "$as_me: exit $exit_status"
Chris@19 2541 } >&5
Chris@19 2542 rm -f core *.core core.conftest.* &&
Chris@19 2543 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Chris@19 2544 exit $exit_status
Chris@19 2545 ' 0
Chris@19 2546 for ac_signal in 1 2 13 15; do
Chris@19 2547 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Chris@19 2548 done
Chris@19 2549 ac_signal=0
Chris@19 2550
Chris@19 2551 # confdefs.h avoids OS command line length limits that DEFS can exceed.
Chris@19 2552 rm -f -r conftest* confdefs.h
Chris@19 2553
Chris@19 2554 $as_echo "/* confdefs.h */" > confdefs.h
Chris@19 2555
Chris@19 2556 # Predefined preprocessor variables.
Chris@19 2557
Chris@19 2558 cat >>confdefs.h <<_ACEOF
Chris@19 2559 #define PACKAGE_NAME "$PACKAGE_NAME"
Chris@19 2560 _ACEOF
Chris@19 2561
Chris@19 2562 cat >>confdefs.h <<_ACEOF
Chris@19 2563 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
Chris@19 2564 _ACEOF
Chris@19 2565
Chris@19 2566 cat >>confdefs.h <<_ACEOF
Chris@19 2567 #define PACKAGE_VERSION "$PACKAGE_VERSION"
Chris@19 2568 _ACEOF
Chris@19 2569
Chris@19 2570 cat >>confdefs.h <<_ACEOF
Chris@19 2571 #define PACKAGE_STRING "$PACKAGE_STRING"
Chris@19 2572 _ACEOF
Chris@19 2573
Chris@19 2574 cat >>confdefs.h <<_ACEOF
Chris@19 2575 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
Chris@19 2576 _ACEOF
Chris@19 2577
Chris@19 2578 cat >>confdefs.h <<_ACEOF
Chris@19 2579 #define PACKAGE_URL "$PACKAGE_URL"
Chris@19 2580 _ACEOF
Chris@19 2581
Chris@19 2582
Chris@19 2583 # Let the site file select an alternate cache file if it wants to.
Chris@19 2584 # Prefer an explicitly selected file to automatically selected ones.
Chris@19 2585 ac_site_file1=NONE
Chris@19 2586 ac_site_file2=NONE
Chris@19 2587 if test -n "$CONFIG_SITE"; then
Chris@19 2588 # We do not want a PATH search for config.site.
Chris@19 2589 case $CONFIG_SITE in #((
Chris@19 2590 -*) ac_site_file1=./$CONFIG_SITE;;
Chris@19 2591 */*) ac_site_file1=$CONFIG_SITE;;
Chris@19 2592 *) ac_site_file1=./$CONFIG_SITE;;
Chris@19 2593 esac
Chris@19 2594 elif test "x$prefix" != xNONE; then
Chris@19 2595 ac_site_file1=$prefix/share/config.site
Chris@19 2596 ac_site_file2=$prefix/etc/config.site
Chris@19 2597 else
Chris@19 2598 ac_site_file1=$ac_default_prefix/share/config.site
Chris@19 2599 ac_site_file2=$ac_default_prefix/etc/config.site
Chris@19 2600 fi
Chris@19 2601 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Chris@19 2602 do
Chris@19 2603 test "x$ac_site_file" = xNONE && continue
Chris@19 2604 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Chris@19 2605 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Chris@19 2606 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
Chris@19 2607 sed 's/^/| /' "$ac_site_file" >&5
Chris@19 2608 . "$ac_site_file" \
Chris@19 2609 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@19 2610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@19 2611 as_fn_error $? "failed to load site script $ac_site_file
Chris@19 2612 See \`config.log' for more details" "$LINENO" 5; }
Chris@19 2613 fi
Chris@19 2614 done
Chris@19 2615
Chris@19 2616 if test -r "$cache_file"; then
Chris@19 2617 # Some versions of bash will fail to source /dev/null (special files
Chris@19 2618 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
Chris@19 2619 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Chris@19 2620 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Chris@19 2621 $as_echo "$as_me: loading cache $cache_file" >&6;}
Chris@19 2622 case $cache_file in
Chris@19 2623 [\\/]* | ?:[\\/]* ) . "$cache_file";;
Chris@19 2624 *) . "./$cache_file";;
Chris@19 2625 esac
Chris@19 2626 fi
Chris@19 2627 else
Chris@19 2628 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Chris@19 2629 $as_echo "$as_me: creating cache $cache_file" >&6;}
Chris@19 2630 >$cache_file
Chris@19 2631 fi
Chris@19 2632
Chris@19 2633 # Check that the precious variables saved in the cache have kept the same
Chris@19 2634 # value.
Chris@19 2635 ac_cache_corrupted=false
Chris@19 2636 for ac_var in $ac_precious_vars; do
Chris@19 2637 eval ac_old_set=\$ac_cv_env_${ac_var}_set
Chris@19 2638 eval ac_new_set=\$ac_env_${ac_var}_set
Chris@19 2639 eval ac_old_val=\$ac_cv_env_${ac_var}_value
Chris@19 2640 eval ac_new_val=\$ac_env_${ac_var}_value
Chris@19 2641 case $ac_old_set,$ac_new_set in
Chris@19 2642 set,)
Chris@19 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Chris@19 2644 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Chris@19 2645 ac_cache_corrupted=: ;;
Chris@19 2646 ,set)
Chris@19 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
Chris@19 2648 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Chris@19 2649 ac_cache_corrupted=: ;;
Chris@19 2650 ,);;
Chris@19 2651 *)
Chris@19 2652 if test "x$ac_old_val" != "x$ac_new_val"; then
Chris@19 2653 # differences in whitespace do not lead to failure.
Chris@19 2654 ac_old_val_w=`echo x $ac_old_val`
Chris@19 2655 ac_new_val_w=`echo x $ac_new_val`
Chris@19 2656 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Chris@19 2657 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Chris@19 2658 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Chris@19 2659 ac_cache_corrupted=:
Chris@19 2660 else
Chris@19 2661 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Chris@19 2662 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
Chris@19 2663 eval $ac_var=\$ac_old_val
Chris@19 2664 fi
Chris@19 2665 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Chris@19 2666 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Chris@19 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Chris@19 2668 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Chris@19 2669 fi;;
Chris@19 2670 esac
Chris@19 2671 # Pass precious variables to config.status.
Chris@19 2672 if test "$ac_new_set" = set; then
Chris@19 2673 case $ac_new_val in
Chris@19 2674 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@19 2675 *) ac_arg=$ac_var=$ac_new_val ;;
Chris@19 2676 esac
Chris@19 2677 case " $ac_configure_args " in
Chris@19 2678 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Chris@19 2679 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Chris@19 2680 esac
Chris@19 2681 fi
Chris@19 2682 done
Chris@19 2683 if $ac_cache_corrupted; then
Chris@19 2684 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@19 2685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@19 2686 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Chris@19 2687 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Chris@19 2688 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Chris@19 2689 fi
Chris@19 2690 ## -------------------- ##
Chris@19 2691 ## Main body of script. ##
Chris@19 2692 ## -------------------- ##
Chris@19 2693
Chris@19 2694 ac_ext=c
Chris@19 2695 ac_cpp='$CPP $CPPFLAGS'
Chris@19 2696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@19 2697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 2698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@19 2699
Chris@19 2700
Chris@19 2701
Chris@19 2702
Chris@19 2703 SHARED_VERSION_INFO="7:4:4" # CURRENT:REVISION:AGE
Chris@19 2704
Chris@19 2705 am__api_version='1.14'
Chris@19 2706
Chris@19 2707 ac_aux_dir=
Chris@19 2708 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Chris@19 2709 if test -f "$ac_dir/install-sh"; then
Chris@19 2710 ac_aux_dir=$ac_dir
Chris@19 2711 ac_install_sh="$ac_aux_dir/install-sh -c"
Chris@19 2712 break
Chris@19 2713 elif test -f "$ac_dir/install.sh"; then
Chris@19 2714 ac_aux_dir=$ac_dir
Chris@19 2715 ac_install_sh="$ac_aux_dir/install.sh -c"
Chris@19 2716 break
Chris@19 2717 elif test -f "$ac_dir/shtool"; then
Chris@19 2718 ac_aux_dir=$ac_dir
Chris@19 2719 ac_install_sh="$ac_aux_dir/shtool install -c"
Chris@19 2720 break
Chris@19 2721 fi
Chris@19 2722 done
Chris@19 2723 if test -z "$ac_aux_dir"; then
Chris@19 2724 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Chris@19 2725 fi
Chris@19 2726
Chris@19 2727 # These three variables are undocumented and unsupported,
Chris@19 2728 # and are intended to be withdrawn in a future Autoconf release.
Chris@19 2729 # They can cause serious problems if a builder's source tree is in a directory
Chris@19 2730 # whose full name contains unusual characters.
Chris@19 2731 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
Chris@19 2732 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
Chris@19 2733 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
Chris@19 2734
Chris@19 2735
Chris@19 2736 # Find a good install program. We prefer a C program (faster),
Chris@19 2737 # so one script is as good as another. But avoid the broken or
Chris@19 2738 # incompatible versions:
Chris@19 2739 # SysV /etc/install, /usr/sbin/install
Chris@19 2740 # SunOS /usr/etc/install
Chris@19 2741 # IRIX /sbin/install
Chris@19 2742 # AIX /bin/install
Chris@19 2743 # AmigaOS /C/install, which installs bootblocks on floppy discs
Chris@19 2744 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Chris@19 2745 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
Chris@19 2746 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Chris@19 2747 # OS/2's system install, which has a completely different semantic
Chris@19 2748 # ./install, which can be erroneously created by make from ./install.sh.
Chris@19 2749 # Reject install programs that cannot install multiple files.
Chris@19 2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Chris@19 2751 $as_echo_n "checking for a BSD-compatible install... " >&6; }
Chris@19 2752 if test -z "$INSTALL"; then
Chris@19 2753 if ${ac_cv_path_install+:} false; then :
Chris@19 2754 $as_echo_n "(cached) " >&6
Chris@19 2755 else
Chris@19 2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 2757 for as_dir in $PATH
Chris@19 2758 do
Chris@19 2759 IFS=$as_save_IFS
Chris@19 2760 test -z "$as_dir" && as_dir=.
Chris@19 2761 # Account for people who put trailing slashes in PATH elements.
Chris@19 2762 case $as_dir/ in #((
Chris@19 2763 ./ | .// | /[cC]/* | \
Chris@19 2764 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Chris@19 2765 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Chris@19 2766 /usr/ucb/* ) ;;
Chris@19 2767 *)
Chris@19 2768 # OSF1 and SCO ODT 3.0 have their own names for install.
Chris@19 2769 # Don't use installbsd from OSF since it installs stuff as root
Chris@19 2770 # by default.
Chris@19 2771 for ac_prog in ginstall scoinst install; do
Chris@19 2772 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 2773 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Chris@19 2774 if test $ac_prog = install &&
Chris@19 2775 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Chris@19 2776 # AIX install. It has an incompatible calling convention.
Chris@19 2777 :
Chris@19 2778 elif test $ac_prog = install &&
Chris@19 2779 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Chris@19 2780 # program-specific install script used by HP pwplus--don't use.
Chris@19 2781 :
Chris@19 2782 else
Chris@19 2783 rm -rf conftest.one conftest.two conftest.dir
Chris@19 2784 echo one > conftest.one
Chris@19 2785 echo two > conftest.two
Chris@19 2786 mkdir conftest.dir
Chris@19 2787 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
Chris@19 2788 test -s conftest.one && test -s conftest.two &&
Chris@19 2789 test -s conftest.dir/conftest.one &&
Chris@19 2790 test -s conftest.dir/conftest.two
Chris@19 2791 then
Chris@19 2792 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
Chris@19 2793 break 3
Chris@19 2794 fi
Chris@19 2795 fi
Chris@19 2796 fi
Chris@19 2797 done
Chris@19 2798 done
Chris@19 2799 ;;
Chris@19 2800 esac
Chris@19 2801
Chris@19 2802 done
Chris@19 2803 IFS=$as_save_IFS
Chris@19 2804
Chris@19 2805 rm -rf conftest.one conftest.two conftest.dir
Chris@19 2806
Chris@19 2807 fi
Chris@19 2808 if test "${ac_cv_path_install+set}" = set; then
Chris@19 2809 INSTALL=$ac_cv_path_install
Chris@19 2810 else
Chris@19 2811 # As a last resort, use the slow shell script. Don't cache a
Chris@19 2812 # value for INSTALL within a source directory, because that will
Chris@19 2813 # break other packages using the cache if that directory is
Chris@19 2814 # removed, or if the value is a relative name.
Chris@19 2815 INSTALL=$ac_install_sh
Chris@19 2816 fi
Chris@19 2817 fi
Chris@19 2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Chris@19 2819 $as_echo "$INSTALL" >&6; }
Chris@19 2820
Chris@19 2821 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
Chris@19 2822 # It thinks the first close brace ends the variable substitution.
Chris@19 2823 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Chris@19 2824
Chris@19 2825 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Chris@19 2826
Chris@19 2827 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Chris@19 2828
Chris@19 2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
Chris@19 2830 $as_echo_n "checking whether build environment is sane... " >&6; }
Chris@19 2831 # Reject unsafe characters in $srcdir or the absolute working directory
Chris@19 2832 # name. Accept space and tab only in the latter.
Chris@19 2833 am_lf='
Chris@19 2834 '
Chris@19 2835 case `pwd` in
Chris@19 2836 *[\\\"\#\$\&\'\`$am_lf]*)
Chris@19 2837 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
Chris@19 2838 esac
Chris@19 2839 case $srcdir in
Chris@19 2840 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Chris@19 2841 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
Chris@19 2842 esac
Chris@19 2843
Chris@19 2844 # Do 'set' in a subshell so we don't clobber the current shell's
Chris@19 2845 # arguments. Must try -L first in case configure is actually a
Chris@19 2846 # symlink; some systems play weird games with the mod time of symlinks
Chris@19 2847 # (eg FreeBSD returns the mod time of the symlink's containing
Chris@19 2848 # directory).
Chris@19 2849 if (
Chris@19 2850 am_has_slept=no
Chris@19 2851 for am_try in 1 2; do
Chris@19 2852 echo "timestamp, slept: $am_has_slept" > conftest.file
Chris@19 2853 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Chris@19 2854 if test "$*" = "X"; then
Chris@19 2855 # -L didn't work.
Chris@19 2856 set X `ls -t "$srcdir/configure" conftest.file`
Chris@19 2857 fi
Chris@19 2858 if test "$*" != "X $srcdir/configure conftest.file" \
Chris@19 2859 && test "$*" != "X conftest.file $srcdir/configure"; then
Chris@19 2860
Chris@19 2861 # If neither matched, then we have a broken ls. This can happen
Chris@19 2862 # if, for instance, CONFIG_SHELL is bash and it inherits a
Chris@19 2863 # broken ls alias from the environment. This has actually
Chris@19 2864 # happened. Such a system could not be considered "sane".
Chris@19 2865 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
Chris@19 2866 alias in your environment" "$LINENO" 5
Chris@19 2867 fi
Chris@19 2868 if test "$2" = conftest.file || test $am_try -eq 2; then
Chris@19 2869 break
Chris@19 2870 fi
Chris@19 2871 # Just in case.
Chris@19 2872 sleep 1
Chris@19 2873 am_has_slept=yes
Chris@19 2874 done
Chris@19 2875 test "$2" = conftest.file
Chris@19 2876 )
Chris@19 2877 then
Chris@19 2878 # Ok.
Chris@19 2879 :
Chris@19 2880 else
Chris@19 2881 as_fn_error $? "newly created file is older than distributed files!
Chris@19 2882 Check your system clock" "$LINENO" 5
Chris@19 2883 fi
Chris@19 2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@19 2885 $as_echo "yes" >&6; }
Chris@19 2886 # If we didn't sleep, we still need to ensure time stamps of config.status and
Chris@19 2887 # generated files are strictly newer.
Chris@19 2888 am_sleep_pid=
Chris@19 2889 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
Chris@19 2890 ( sleep 1 ) &
Chris@19 2891 am_sleep_pid=$!
Chris@19 2892 fi
Chris@19 2893
Chris@19 2894 rm -f conftest.file
Chris@19 2895
Chris@19 2896 test "$program_prefix" != NONE &&
Chris@19 2897 program_transform_name="s&^&$program_prefix&;$program_transform_name"
Chris@19 2898 # Use a double $ so make ignores it.
Chris@19 2899 test "$program_suffix" != NONE &&
Chris@19 2900 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Chris@19 2901 # Double any \ or $.
Chris@19 2902 # By default was `s,x,x', remove it if useless.
Chris@19 2903 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
Chris@19 2904 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Chris@19 2905
Chris@19 2906 # expand $ac_aux_dir to an absolute path
Chris@19 2907 am_aux_dir=`cd $ac_aux_dir && pwd`
Chris@19 2908
Chris@19 2909 if test x"${MISSING+set}" != xset; then
Chris@19 2910 case $am_aux_dir in
Chris@19 2911 *\ * | *\ *)
Chris@19 2912 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
Chris@19 2913 *)
Chris@19 2914 MISSING="\${SHELL} $am_aux_dir/missing" ;;
Chris@19 2915 esac
Chris@19 2916 fi
Chris@19 2917 # Use eval to expand $SHELL
Chris@19 2918 if eval "$MISSING --is-lightweight"; then
Chris@19 2919 am_missing_run="$MISSING "
Chris@19 2920 else
Chris@19 2921 am_missing_run=
Chris@19 2922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
Chris@19 2923 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
Chris@19 2924 fi
Chris@19 2925
Chris@19 2926 if test x"${install_sh}" != xset; then
Chris@19 2927 case $am_aux_dir in
Chris@19 2928 *\ * | *\ *)
Chris@19 2929 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
Chris@19 2930 *)
Chris@19 2931 install_sh="\${SHELL} $am_aux_dir/install-sh"
Chris@19 2932 esac
Chris@19 2933 fi
Chris@19 2934
Chris@19 2935 # Installed binaries are usually stripped using 'strip' when the user
Chris@19 2936 # run "make install-strip". However 'strip' might not be the right
Chris@19 2937 # tool to use in cross-compilation environments, therefore Automake
Chris@19 2938 # will honor the 'STRIP' environment variable to overrule this program.
Chris@19 2939 if test "$cross_compiling" != no; then
Chris@19 2940 if test -n "$ac_tool_prefix"; then
Chris@19 2941 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
Chris@19 2942 set dummy ${ac_tool_prefix}strip; ac_word=$2
Chris@19 2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 2944 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 2945 if ${ac_cv_prog_STRIP+:} false; then :
Chris@19 2946 $as_echo_n "(cached) " >&6
Chris@19 2947 else
Chris@19 2948 if test -n "$STRIP"; then
Chris@19 2949 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
Chris@19 2950 else
Chris@19 2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 2952 for as_dir in $PATH
Chris@19 2953 do
Chris@19 2954 IFS=$as_save_IFS
Chris@19 2955 test -z "$as_dir" && as_dir=.
Chris@19 2956 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 2957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 2958 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Chris@19 2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 2960 break 2
Chris@19 2961 fi
Chris@19 2962 done
Chris@19 2963 done
Chris@19 2964 IFS=$as_save_IFS
Chris@19 2965
Chris@19 2966 fi
Chris@19 2967 fi
Chris@19 2968 STRIP=$ac_cv_prog_STRIP
Chris@19 2969 if test -n "$STRIP"; then
Chris@19 2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Chris@19 2971 $as_echo "$STRIP" >&6; }
Chris@19 2972 else
Chris@19 2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 2974 $as_echo "no" >&6; }
Chris@19 2975 fi
Chris@19 2976
Chris@19 2977
Chris@19 2978 fi
Chris@19 2979 if test -z "$ac_cv_prog_STRIP"; then
Chris@19 2980 ac_ct_STRIP=$STRIP
Chris@19 2981 # Extract the first word of "strip", so it can be a program name with args.
Chris@19 2982 set dummy strip; ac_word=$2
Chris@19 2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 2984 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 2985 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Chris@19 2986 $as_echo_n "(cached) " >&6
Chris@19 2987 else
Chris@19 2988 if test -n "$ac_ct_STRIP"; then
Chris@19 2989 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Chris@19 2990 else
Chris@19 2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 2992 for as_dir in $PATH
Chris@19 2993 do
Chris@19 2994 IFS=$as_save_IFS
Chris@19 2995 test -z "$as_dir" && as_dir=.
Chris@19 2996 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 2997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 2998 ac_cv_prog_ac_ct_STRIP="strip"
Chris@19 2999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 3000 break 2
Chris@19 3001 fi
Chris@19 3002 done
Chris@19 3003 done
Chris@19 3004 IFS=$as_save_IFS
Chris@19 3005
Chris@19 3006 fi
Chris@19 3007 fi
Chris@19 3008 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
Chris@19 3009 if test -n "$ac_ct_STRIP"; then
Chris@19 3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Chris@19 3011 $as_echo "$ac_ct_STRIP" >&6; }
Chris@19 3012 else
Chris@19 3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 3014 $as_echo "no" >&6; }
Chris@19 3015 fi
Chris@19 3016
Chris@19 3017 if test "x$ac_ct_STRIP" = x; then
Chris@19 3018 STRIP=":"
Chris@19 3019 else
Chris@19 3020 case $cross_compiling:$ac_tool_warned in
Chris@19 3021 yes:)
Chris@19 3022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@19 3023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@19 3024 ac_tool_warned=yes ;;
Chris@19 3025 esac
Chris@19 3026 STRIP=$ac_ct_STRIP
Chris@19 3027 fi
Chris@19 3028 else
Chris@19 3029 STRIP="$ac_cv_prog_STRIP"
Chris@19 3030 fi
Chris@19 3031
Chris@19 3032 fi
Chris@19 3033 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
Chris@19 3034
Chris@19 3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
Chris@19 3036 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
Chris@19 3037 if test -z "$MKDIR_P"; then
Chris@19 3038 if ${ac_cv_path_mkdir+:} false; then :
Chris@19 3039 $as_echo_n "(cached) " >&6
Chris@19 3040 else
Chris@19 3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 3042 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
Chris@19 3043 do
Chris@19 3044 IFS=$as_save_IFS
Chris@19 3045 test -z "$as_dir" && as_dir=.
Chris@19 3046 for ac_prog in mkdir gmkdir; do
Chris@19 3047 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 3048 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Chris@19 3049 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
Chris@19 3050 'mkdir (GNU coreutils) '* | \
Chris@19 3051 'mkdir (coreutils) '* | \
Chris@19 3052 'mkdir (fileutils) '4.1*)
Chris@19 3053 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
Chris@19 3054 break 3;;
Chris@19 3055 esac
Chris@19 3056 done
Chris@19 3057 done
Chris@19 3058 done
Chris@19 3059 IFS=$as_save_IFS
Chris@19 3060
Chris@19 3061 fi
Chris@19 3062
Chris@19 3063 test -d ./--version && rmdir ./--version
Chris@19 3064 if test "${ac_cv_path_mkdir+set}" = set; then
Chris@19 3065 MKDIR_P="$ac_cv_path_mkdir -p"
Chris@19 3066 else
Chris@19 3067 # As a last resort, use the slow shell script. Don't cache a
Chris@19 3068 # value for MKDIR_P within a source directory, because that will
Chris@19 3069 # break other packages using the cache if that directory is
Chris@19 3070 # removed, or if the value is a relative name.
Chris@19 3071 MKDIR_P="$ac_install_sh -d"
Chris@19 3072 fi
Chris@19 3073 fi
Chris@19 3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
Chris@19 3075 $as_echo "$MKDIR_P" >&6; }
Chris@19 3076
Chris@19 3077 for ac_prog in gawk mawk nawk awk
Chris@19 3078 do
Chris@19 3079 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@19 3080 set dummy $ac_prog; ac_word=$2
Chris@19 3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 3082 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 3083 if ${ac_cv_prog_AWK+:} false; then :
Chris@19 3084 $as_echo_n "(cached) " >&6
Chris@19 3085 else
Chris@19 3086 if test -n "$AWK"; then
Chris@19 3087 ac_cv_prog_AWK="$AWK" # Let the user override the test.
Chris@19 3088 else
Chris@19 3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 3090 for as_dir in $PATH
Chris@19 3091 do
Chris@19 3092 IFS=$as_save_IFS
Chris@19 3093 test -z "$as_dir" && as_dir=.
Chris@19 3094 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 3095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 3096 ac_cv_prog_AWK="$ac_prog"
Chris@19 3097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 3098 break 2
Chris@19 3099 fi
Chris@19 3100 done
Chris@19 3101 done
Chris@19 3102 IFS=$as_save_IFS
Chris@19 3103
Chris@19 3104 fi
Chris@19 3105 fi
Chris@19 3106 AWK=$ac_cv_prog_AWK
Chris@19 3107 if test -n "$AWK"; then
Chris@19 3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Chris@19 3109 $as_echo "$AWK" >&6; }
Chris@19 3110 else
Chris@19 3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 3112 $as_echo "no" >&6; }
Chris@19 3113 fi
Chris@19 3114
Chris@19 3115
Chris@19 3116 test -n "$AWK" && break
Chris@19 3117 done
Chris@19 3118
Chris@19 3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Chris@19 3120 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
Chris@19 3121 set x ${MAKE-make}
Chris@19 3122 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Chris@19 3123 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Chris@19 3124 $as_echo_n "(cached) " >&6
Chris@19 3125 else
Chris@19 3126 cat >conftest.make <<\_ACEOF
Chris@19 3127 SHELL = /bin/sh
Chris@19 3128 all:
Chris@19 3129 @echo '@@@%%%=$(MAKE)=@@@%%%'
Chris@19 3130 _ACEOF
Chris@19 3131 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Chris@19 3132 case `${MAKE-make} -f conftest.make 2>/dev/null` in
Chris@19 3133 *@@@%%%=?*=@@@%%%*)
Chris@19 3134 eval ac_cv_prog_make_${ac_make}_set=yes;;
Chris@19 3135 *)
Chris@19 3136 eval ac_cv_prog_make_${ac_make}_set=no;;
Chris@19 3137 esac
Chris@19 3138 rm -f conftest.make
Chris@19 3139 fi
Chris@19 3140 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Chris@19 3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@19 3142 $as_echo "yes" >&6; }
Chris@19 3143 SET_MAKE=
Chris@19 3144 else
Chris@19 3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 3146 $as_echo "no" >&6; }
Chris@19 3147 SET_MAKE="MAKE=${MAKE-make}"
Chris@19 3148 fi
Chris@19 3149
Chris@19 3150 rm -rf .tst 2>/dev/null
Chris@19 3151 mkdir .tst 2>/dev/null
Chris@19 3152 if test -d .tst; then
Chris@19 3153 am__leading_dot=.
Chris@19 3154 else
Chris@19 3155 am__leading_dot=_
Chris@19 3156 fi
Chris@19 3157 rmdir .tst 2>/dev/null
Chris@19 3158
Chris@19 3159 # Check whether --enable-silent-rules was given.
Chris@19 3160 if test "${enable_silent_rules+set}" = set; then :
Chris@19 3161 enableval=$enable_silent_rules;
Chris@19 3162 fi
Chris@19 3163
Chris@19 3164 case $enable_silent_rules in # (((
Chris@19 3165 yes) AM_DEFAULT_VERBOSITY=0;;
Chris@19 3166 no) AM_DEFAULT_VERBOSITY=1;;
Chris@19 3167 *) AM_DEFAULT_VERBOSITY=1;;
Chris@19 3168 esac
Chris@19 3169 am_make=${MAKE-make}
Chris@19 3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
Chris@19 3171 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
Chris@19 3172 if ${am_cv_make_support_nested_variables+:} false; then :
Chris@19 3173 $as_echo_n "(cached) " >&6
Chris@19 3174 else
Chris@19 3175 if $as_echo 'TRUE=$(BAR$(V))
Chris@19 3176 BAR0=false
Chris@19 3177 BAR1=true
Chris@19 3178 V=1
Chris@19 3179 am__doit:
Chris@19 3180 @$(TRUE)
Chris@19 3181 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
Chris@19 3182 am_cv_make_support_nested_variables=yes
Chris@19 3183 else
Chris@19 3184 am_cv_make_support_nested_variables=no
Chris@19 3185 fi
Chris@19 3186 fi
Chris@19 3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
Chris@19 3188 $as_echo "$am_cv_make_support_nested_variables" >&6; }
Chris@19 3189 if test $am_cv_make_support_nested_variables = yes; then
Chris@19 3190 AM_V='$(V)'
Chris@19 3191 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
Chris@19 3192 else
Chris@19 3193 AM_V=$AM_DEFAULT_VERBOSITY
Chris@19 3194 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
Chris@19 3195 fi
Chris@19 3196 AM_BACKSLASH='\'
Chris@19 3197
Chris@19 3198 if test "`cd $srcdir && pwd`" != "`pwd`"; then
Chris@19 3199 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
Chris@19 3200 # is not polluted with repeated "-I."
Chris@19 3201 am__isrc=' -I$(srcdir)'
Chris@19 3202 # test to see if srcdir already configured
Chris@19 3203 if test -f $srcdir/config.status; then
Chris@19 3204 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Chris@19 3205 fi
Chris@19 3206 fi
Chris@19 3207
Chris@19 3208 # test whether we have cygpath
Chris@19 3209 if test -z "$CYGPATH_W"; then
Chris@19 3210 if (cygpath --version) >/dev/null 2>/dev/null; then
Chris@19 3211 CYGPATH_W='cygpath -w'
Chris@19 3212 else
Chris@19 3213 CYGPATH_W=echo
Chris@19 3214 fi
Chris@19 3215 fi
Chris@19 3216
Chris@19 3217
Chris@19 3218 # Define the identity of the package.
Chris@19 3219 PACKAGE='fftw'
Chris@19 3220 VERSION='3.3.4'
Chris@19 3221
Chris@19 3222
Chris@19 3223 cat >>confdefs.h <<_ACEOF
Chris@19 3224 #define PACKAGE "$PACKAGE"
Chris@19 3225 _ACEOF
Chris@19 3226
Chris@19 3227
Chris@19 3228 cat >>confdefs.h <<_ACEOF
Chris@19 3229 #define VERSION "$VERSION"
Chris@19 3230 _ACEOF
Chris@19 3231
Chris@19 3232 # Some tools Automake needs.
Chris@19 3233
Chris@19 3234 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
Chris@19 3235
Chris@19 3236
Chris@19 3237 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
Chris@19 3238
Chris@19 3239
Chris@19 3240 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
Chris@19 3241
Chris@19 3242
Chris@19 3243 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
Chris@19 3244
Chris@19 3245
Chris@19 3246 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
Chris@19 3247
Chris@19 3248 # For better backward compatibility. To be removed once Automake 1.9.x
Chris@19 3249 # dies out for good. For more background, see:
Chris@19 3250 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
Chris@19 3251 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
Chris@19 3252 mkdir_p='$(MKDIR_P)'
Chris@19 3253
Chris@19 3254 # We need awk for the "check" target. The system "awk" is bad on
Chris@19 3255 # some platforms.
Chris@19 3256 # Always define AMTAR for backward compatibility. Yes, it's still used
Chris@19 3257 # in the wild :-( We should find a proper way to deprecate it ...
Chris@19 3258 AMTAR='$${TAR-tar}'
Chris@19 3259
Chris@19 3260
Chris@19 3261 # We'll loop over all known methods to create a tar archive until one works.
Chris@19 3262 _am_tools='gnutar pax cpio none'
Chris@19 3263
Chris@19 3264 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
Chris@19 3265
Chris@19 3266
Chris@19 3267
Chris@19 3268
Chris@19 3269
Chris@19 3270
Chris@19 3271 # POSIX will say in a future version that running "rm -f" with no argument
Chris@19 3272 # is OK; and we want to be able to make that assumption in our Makefile
Chris@19 3273 # recipes. So use an aggressive probe to check that the usage we want is
Chris@19 3274 # actually supported "in the wild" to an acceptable degree.
Chris@19 3275 # See automake bug#10828.
Chris@19 3276 # To make any issue more visible, cause the running configure to be aborted
Chris@19 3277 # by default if the 'rm' program in use doesn't match our expectations; the
Chris@19 3278 # user can still override this though.
Chris@19 3279 if rm -f && rm -fr && rm -rf; then : OK; else
Chris@19 3280 cat >&2 <<'END'
Chris@19 3281 Oops!
Chris@19 3282
Chris@19 3283 Your 'rm' program seems unable to run without file operands specified
Chris@19 3284 on the command line, even when the '-f' option is present. This is contrary
Chris@19 3285 to the behaviour of most rm programs out there, and not conforming with
Chris@19 3286 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
Chris@19 3287
Chris@19 3288 Please tell bug-automake@gnu.org about your system, including the value
Chris@19 3289 of your $PATH and any error possibly output before this message. This
Chris@19 3290 can help us improve future automake versions.
Chris@19 3291
Chris@19 3292 END
Chris@19 3293 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
Chris@19 3294 echo 'Configuration will proceed anyway, since you have set the' >&2
Chris@19 3295 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
Chris@19 3296 echo >&2
Chris@19 3297 else
Chris@19 3298 cat >&2 <<'END'
Chris@19 3299 Aborting the configuration process, to ensure you take notice of the issue.
Chris@19 3300
Chris@19 3301 You can download and install GNU coreutils to get an 'rm' implementation
Chris@19 3302 that behaves properly: <http://www.gnu.org/software/coreutils/>.
Chris@19 3303
Chris@19 3304 If you want to complete the configuration process using your problematic
Chris@19 3305 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
Chris@19 3306 to "yes", and re-run configure.
Chris@19 3307
Chris@19 3308 END
Chris@19 3309 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
Chris@19 3310 fi
Chris@19 3311 fi
Chris@19 3312 ac_config_headers="$ac_config_headers config.h"
Chris@19 3313
Chris@19 3314
Chris@19 3315
Chris@19 3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
Chris@19 3317 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
Chris@19 3318 # Check whether --enable-maintainer-mode was given.
Chris@19 3319 if test "${enable_maintainer_mode+set}" = set; then :
Chris@19 3320 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
Chris@19 3321 else
Chris@19 3322 USE_MAINTAINER_MODE=no
Chris@19 3323 fi
Chris@19 3324
Chris@19 3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
Chris@19 3326 $as_echo "$USE_MAINTAINER_MODE" >&6; }
Chris@19 3327 if test $USE_MAINTAINER_MODE = yes; then
Chris@19 3328 MAINTAINER_MODE_TRUE=
Chris@19 3329 MAINTAINER_MODE_FALSE='#'
Chris@19 3330 else
Chris@19 3331 MAINTAINER_MODE_TRUE='#'
Chris@19 3332 MAINTAINER_MODE_FALSE=
Chris@19 3333 fi
Chris@19 3334
Chris@19 3335 MAINT=$MAINTAINER_MODE_TRUE
Chris@19 3336
Chris@19 3337
Chris@19 3338
Chris@19 3339 # Check whether --enable-shared was given.
Chris@19 3340 if test "${enable_shared+set}" = set; then :
Chris@19 3341 enableval=$enable_shared; p=${PACKAGE-default}
Chris@19 3342 case $enableval in
Chris@19 3343 yes) enable_shared=yes ;;
Chris@19 3344 no) enable_shared=no ;;
Chris@19 3345 *)
Chris@19 3346 enable_shared=no
Chris@19 3347 # Look at the argument we got. We use all the common list separators.
Chris@19 3348 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
Chris@19 3349 for pkg in $enableval; do
Chris@19 3350 IFS="$lt_save_ifs"
Chris@19 3351 if test "X$pkg" = "X$p"; then
Chris@19 3352 enable_shared=yes
Chris@19 3353 fi
Chris@19 3354 done
Chris@19 3355 IFS="$lt_save_ifs"
Chris@19 3356 ;;
Chris@19 3357 esac
Chris@19 3358 else
Chris@19 3359 enable_shared=no
Chris@19 3360 fi
Chris@19 3361
Chris@19 3362
Chris@19 3363
Chris@19 3364
Chris@19 3365
Chris@19 3366
Chris@19 3367
Chris@19 3368
Chris@19 3369 # Make sure we can run config.sub.
Chris@19 3370 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Chris@19 3371 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Chris@19 3372
Chris@19 3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Chris@19 3374 $as_echo_n "checking build system type... " >&6; }
Chris@19 3375 if ${ac_cv_build+:} false; then :
Chris@19 3376 $as_echo_n "(cached) " >&6
Chris@19 3377 else
Chris@19 3378 ac_build_alias=$build_alias
Chris@19 3379 test "x$ac_build_alias" = x &&
Chris@19 3380 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
Chris@19 3381 test "x$ac_build_alias" = x &&
Chris@19 3382 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Chris@19 3383 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Chris@19 3384 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Chris@19 3385
Chris@19 3386 fi
Chris@19 3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Chris@19 3388 $as_echo "$ac_cv_build" >&6; }
Chris@19 3389 case $ac_cv_build in
Chris@19 3390 *-*-*) ;;
Chris@19 3391 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Chris@19 3392 esac
Chris@19 3393 build=$ac_cv_build
Chris@19 3394 ac_save_IFS=$IFS; IFS='-'
Chris@19 3395 set x $ac_cv_build
Chris@19 3396 shift
Chris@19 3397 build_cpu=$1
Chris@19 3398 build_vendor=$2
Chris@19 3399 shift; shift
Chris@19 3400 # Remember, the first character of IFS is used to create $*,
Chris@19 3401 # except with old shells:
Chris@19 3402 build_os=$*
Chris@19 3403 IFS=$ac_save_IFS
Chris@19 3404 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Chris@19 3405
Chris@19 3406
Chris@19 3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Chris@19 3408 $as_echo_n "checking host system type... " >&6; }
Chris@19 3409 if ${ac_cv_host+:} false; then :
Chris@19 3410 $as_echo_n "(cached) " >&6
Chris@19 3411 else
Chris@19 3412 if test "x$host_alias" = x; then
Chris@19 3413 ac_cv_host=$ac_cv_build
Chris@19 3414 else
Chris@19 3415 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Chris@19 3416 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Chris@19 3417 fi
Chris@19 3418
Chris@19 3419 fi
Chris@19 3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Chris@19 3421 $as_echo "$ac_cv_host" >&6; }
Chris@19 3422 case $ac_cv_host in
Chris@19 3423 *-*-*) ;;
Chris@19 3424 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Chris@19 3425 esac
Chris@19 3426 host=$ac_cv_host
Chris@19 3427 ac_save_IFS=$IFS; IFS='-'
Chris@19 3428 set x $ac_cv_host
Chris@19 3429 shift
Chris@19 3430 host_cpu=$1
Chris@19 3431 host_vendor=$2
Chris@19 3432 shift; shift
Chris@19 3433 # Remember, the first character of IFS is used to create $*,
Chris@19 3434 # except with old shells:
Chris@19 3435 host_os=$*
Chris@19 3436 IFS=$ac_save_IFS
Chris@19 3437 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Chris@19 3438
Chris@19 3439
Chris@19 3440
Chris@19 3441 case "${host_cpu}" in
Chris@19 3442 powerpc*) have_fma=yes;;
Chris@19 3443 ia64*) have_fma=yes;;
Chris@19 3444 hppa*) have_fma=yes;;
Chris@19 3445 mips64*) have_fma=yes;;
Chris@19 3446 *) have_fma=no;;
Chris@19 3447 esac
Chris@19 3448
Chris@19 3449 # Check whether --enable-fma was given.
Chris@19 3450 if test "${enable_fma+set}" = set; then :
Chris@19 3451 enableval=$enable_fma; have_fma=$enableval
Chris@19 3452 fi
Chris@19 3453
Chris@19 3454 if test "$have_fma"x = "yes"x; then
Chris@19 3455
Chris@19 3456 $as_echo "#define HAVE_FMA 1" >>confdefs.h
Chris@19 3457
Chris@19 3458 fi
Chris@19 3459
Chris@19 3460
Chris@19 3461 # Check whether --enable-debug was given.
Chris@19 3462 if test "${enable_debug+set}" = set; then :
Chris@19 3463 enableval=$enable_debug; ok=$enableval
Chris@19 3464 else
Chris@19 3465 ok=no
Chris@19 3466 fi
Chris@19 3467
Chris@19 3468 if test "$ok" = "yes"; then
Chris@19 3469
Chris@19 3470 $as_echo "#define FFTW_DEBUG 1" >>confdefs.h
Chris@19 3471
Chris@19 3472 debug_malloc=yes
Chris@19 3473 else
Chris@19 3474 debug_malloc=no
Chris@19 3475 fi
Chris@19 3476
Chris@19 3477 # Check whether --enable-debug-malloc was given.
Chris@19 3478 if test "${enable_debug_malloc+set}" = set; then :
Chris@19 3479 enableval=$enable_debug_malloc; ok=$enableval
Chris@19 3480 else
Chris@19 3481 ok=$debug_malloc
Chris@19 3482 fi
Chris@19 3483
Chris@19 3484 if test "$ok" = "yes"; then
Chris@19 3485
Chris@19 3486 $as_echo "#define FFTW_DEBUG_MALLOC 1" >>confdefs.h
Chris@19 3487
Chris@19 3488 fi
Chris@19 3489
Chris@19 3490 # Check whether --enable-debug-alignment was given.
Chris@19 3491 if test "${enable_debug_alignment+set}" = set; then :
Chris@19 3492 enableval=$enable_debug_alignment; ok=$enableval
Chris@19 3493 else
Chris@19 3494 ok=no
Chris@19 3495 fi
Chris@19 3496
Chris@19 3497 if test "$ok" = "yes"; then
Chris@19 3498
Chris@19 3499 $as_echo "#define FFTW_DEBUG_ALIGNMENT 1" >>confdefs.h
Chris@19 3500
Chris@19 3501 fi
Chris@19 3502
Chris@19 3503 # Check whether --enable-random-estimator was given.
Chris@19 3504 if test "${enable_random_estimator+set}" = set; then :
Chris@19 3505 enableval=$enable_random_estimator; ok=$enableval
Chris@19 3506 else
Chris@19 3507 ok=no
Chris@19 3508 fi
Chris@19 3509
Chris@19 3510 if test "$ok" = "yes"; then
Chris@19 3511
Chris@19 3512 $as_echo "#define FFTW_RANDOM_ESTIMATOR 1" >>confdefs.h
Chris@19 3513
Chris@19 3514 CHECK_PL_OPTS="--estimate"
Chris@19 3515 fi
Chris@19 3516
Chris@19 3517 # Check whether --enable-alloca was given.
Chris@19 3518 if test "${enable_alloca+set}" = set; then :
Chris@19 3519 enableval=$enable_alloca; ok=$enableval
Chris@19 3520 else
Chris@19 3521 ok=yes
Chris@19 3522 fi
Chris@19 3523
Chris@19 3524 if test "$ok" = "yes"; then
Chris@19 3525
Chris@19 3526 $as_echo "#define FFTW_ENABLE_ALLOCA 1" >>confdefs.h
Chris@19 3527
Chris@19 3528 fi
Chris@19 3529
Chris@19 3530 # Check whether --enable-single was given.
Chris@19 3531 if test "${enable_single+set}" = set; then :
Chris@19 3532 enableval=$enable_single; ok=$enableval
Chris@19 3533 else
Chris@19 3534 ok=no
Chris@19 3535 fi
Chris@19 3536
Chris@19 3537 # Check whether --enable-float was given.
Chris@19 3538 if test "${enable_float+set}" = set; then :
Chris@19 3539 enableval=$enable_float; ok=$enableval
Chris@19 3540 fi
Chris@19 3541
Chris@19 3542 if test "$ok" = "yes"; then
Chris@19 3543
Chris@19 3544 $as_echo "#define FFTW_SINGLE 1" >>confdefs.h
Chris@19 3545
Chris@19 3546
Chris@19 3547 $as_echo "#define BENCHFFT_SINGLE 1" >>confdefs.h
Chris@19 3548
Chris@19 3549 PRECISION=s
Chris@19 3550 else
Chris@19 3551 PRECISION=d
Chris@19 3552 fi
Chris@19 3553 if test "$ok" = "yes"; then
Chris@19 3554 SINGLE_TRUE=
Chris@19 3555 SINGLE_FALSE='#'
Chris@19 3556 else
Chris@19 3557 SINGLE_TRUE='#'
Chris@19 3558 SINGLE_FALSE=
Chris@19 3559 fi
Chris@19 3560
Chris@19 3561
Chris@19 3562 # Check whether --enable-long-double was given.
Chris@19 3563 if test "${enable_long_double+set}" = set; then :
Chris@19 3564 enableval=$enable_long_double; ok=$enableval
Chris@19 3565 else
Chris@19 3566 ok=no
Chris@19 3567 fi
Chris@19 3568
Chris@19 3569 if test "$ok" = "yes"; then
Chris@19 3570 if test "$PRECISION" = "s"; then
Chris@19 3571 as_fn_error $? "--enable-single/--enable-long-double conflict" "$LINENO" 5
Chris@19 3572 fi
Chris@19 3573
Chris@19 3574 $as_echo "#define FFTW_LDOUBLE 1" >>confdefs.h
Chris@19 3575
Chris@19 3576
Chris@19 3577 $as_echo "#define BENCHFFT_LDOUBLE 1" >>confdefs.h
Chris@19 3578
Chris@19 3579 PRECISION=l
Chris@19 3580 fi
Chris@19 3581 if test "$ok" = "yes"; then
Chris@19 3582 LDOUBLE_TRUE=
Chris@19 3583 LDOUBLE_FALSE='#'
Chris@19 3584 else
Chris@19 3585 LDOUBLE_TRUE='#'
Chris@19 3586 LDOUBLE_FALSE=
Chris@19 3587 fi
Chris@19 3588
Chris@19 3589
Chris@19 3590 # Check whether --enable-quad-precision was given.
Chris@19 3591 if test "${enable_quad_precision+set}" = set; then :
Chris@19 3592 enableval=$enable_quad_precision; ok=$enableval
Chris@19 3593 else
Chris@19 3594 ok=no
Chris@19 3595 fi
Chris@19 3596
Chris@19 3597 if test "$ok" = "yes"; then
Chris@19 3598 if test "$PRECISION" != "d"; then
Chris@19 3599 as_fn_error $? "conflicting precisions specified" "$LINENO" 5
Chris@19 3600 fi
Chris@19 3601
Chris@19 3602 $as_echo "#define FFTW_QUAD 1" >>confdefs.h
Chris@19 3603
Chris@19 3604
Chris@19 3605 $as_echo "#define BENCHFFT_QUAD 1" >>confdefs.h
Chris@19 3606
Chris@19 3607 PRECISION=q
Chris@19 3608 fi
Chris@19 3609 if test "$ok" = "yes"; then
Chris@19 3610 QUAD_TRUE=
Chris@19 3611 QUAD_FALSE='#'
Chris@19 3612 else
Chris@19 3613 QUAD_TRUE='#'
Chris@19 3614 QUAD_FALSE=
Chris@19 3615 fi
Chris@19 3616
Chris@19 3617
Chris@19 3618
Chris@19 3619
Chris@19 3620
Chris@19 3621 # Check whether --enable-sse was given.
Chris@19 3622 if test "${enable_sse+set}" = set; then :
Chris@19 3623 enableval=$enable_sse; have_sse=$enableval
Chris@19 3624 else
Chris@19 3625 have_sse=no
Chris@19 3626 fi
Chris@19 3627
Chris@19 3628 if test "$have_sse" = "yes"; then
Chris@19 3629 if test "$PRECISION" != "s"; then
Chris@19 3630 as_fn_error $? "SSE requires single precision" "$LINENO" 5
Chris@19 3631 fi
Chris@19 3632 fi
Chris@19 3633
Chris@19 3634 # Check whether --enable-sse2 was given.
Chris@19 3635 if test "${enable_sse2+set}" = set; then :
Chris@19 3636 enableval=$enable_sse2; have_sse2=$enableval
Chris@19 3637 else
Chris@19 3638 have_sse2=no
Chris@19 3639 fi
Chris@19 3640
Chris@19 3641 if test "$have_sse" = "yes"; then have_sse2=yes; fi
Chris@19 3642 if test "$have_sse2" = "yes"; then
Chris@19 3643
Chris@19 3644 $as_echo "#define HAVE_SSE2 1" >>confdefs.h
Chris@19 3645
Chris@19 3646 if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then
Chris@19 3647 as_fn_error $? "SSE2 requires single or double precision" "$LINENO" 5
Chris@19 3648 fi
Chris@19 3649 fi
Chris@19 3650 if test "$have_sse2" = "yes"; then
Chris@19 3651 HAVE_SSE2_TRUE=
Chris@19 3652 HAVE_SSE2_FALSE='#'
Chris@19 3653 else
Chris@19 3654 HAVE_SSE2_TRUE='#'
Chris@19 3655 HAVE_SSE2_FALSE=
Chris@19 3656 fi
Chris@19 3657
Chris@19 3658
Chris@19 3659 # Check whether --enable-avx was given.
Chris@19 3660 if test "${enable_avx+set}" = set; then :
Chris@19 3661 enableval=$enable_avx; have_avx=$enableval
Chris@19 3662 else
Chris@19 3663 have_avx=no
Chris@19 3664 fi
Chris@19 3665
Chris@19 3666 if test "$have_avx" = "yes"; then
Chris@19 3667
Chris@19 3668 $as_echo "#define HAVE_AVX 1" >>confdefs.h
Chris@19 3669
Chris@19 3670 if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then
Chris@19 3671 as_fn_error $? "AVX requires single or double precision" "$LINENO" 5
Chris@19 3672 fi
Chris@19 3673 fi
Chris@19 3674 if test "$have_avx" = "yes"; then
Chris@19 3675 HAVE_AVX_TRUE=
Chris@19 3676 HAVE_AVX_FALSE='#'
Chris@19 3677 else
Chris@19 3678 HAVE_AVX_TRUE='#'
Chris@19 3679 HAVE_AVX_FALSE=
Chris@19 3680 fi
Chris@19 3681
Chris@19 3682
Chris@19 3683 # Check whether --enable-altivec was given.
Chris@19 3684 if test "${enable_altivec+set}" = set; then :
Chris@19 3685 enableval=$enable_altivec; have_altivec=$enableval
Chris@19 3686 else
Chris@19 3687 have_altivec=no
Chris@19 3688 fi
Chris@19 3689
Chris@19 3690 if test "$have_altivec" = "yes"; then
Chris@19 3691
Chris@19 3692 $as_echo "#define HAVE_ALTIVEC 1" >>confdefs.h
Chris@19 3693
Chris@19 3694 if test "$PRECISION" != "s"; then
Chris@19 3695 as_fn_error $? "Altivec requires single precision" "$LINENO" 5
Chris@19 3696 fi
Chris@19 3697 fi
Chris@19 3698 if test "$have_altivec" = "yes"; then
Chris@19 3699 HAVE_ALTIVEC_TRUE=
Chris@19 3700 HAVE_ALTIVEC_FALSE='#'
Chris@19 3701 else
Chris@19 3702 HAVE_ALTIVEC_TRUE='#'
Chris@19 3703 HAVE_ALTIVEC_FALSE=
Chris@19 3704 fi
Chris@19 3705
Chris@19 3706
Chris@19 3707 # Check whether --enable-neon was given.
Chris@19 3708 if test "${enable_neon+set}" = set; then :
Chris@19 3709 enableval=$enable_neon; have_neon=$enableval
Chris@19 3710 else
Chris@19 3711 have_neon=no
Chris@19 3712 fi
Chris@19 3713
Chris@19 3714 if test "$have_neon" = "yes"; then
Chris@19 3715
Chris@19 3716 $as_echo "#define HAVE_NEON 1" >>confdefs.h
Chris@19 3717
Chris@19 3718 if test "$PRECISION" != "s"; then
Chris@19 3719 as_fn_error $? "NEON requires single precision" "$LINENO" 5
Chris@19 3720 fi
Chris@19 3721 fi
Chris@19 3722 if test "$have_neon" = "yes"; then
Chris@19 3723 HAVE_NEON_TRUE=
Chris@19 3724 HAVE_NEON_FALSE='#'
Chris@19 3725 else
Chris@19 3726 HAVE_NEON_TRUE='#'
Chris@19 3727 HAVE_NEON_FALSE=
Chris@19 3728 fi
Chris@19 3729
Chris@19 3730
Chris@19 3731
Chris@19 3732
Chris@19 3733 # Check whether --with-slow-timer was given.
Chris@19 3734 if test "${with_slow_timer+set}" = set; then :
Chris@19 3735 withval=$with_slow_timer; with_slow_timer=$withval
Chris@19 3736 else
Chris@19 3737 with_slow_timer=no
Chris@19 3738 fi
Chris@19 3739
Chris@19 3740 if test "$with_slow_timer" = "yes"; then
Chris@19 3741
Chris@19 3742 $as_echo "#define WITH_SLOW_TIMER 1" >>confdefs.h
Chris@19 3743
Chris@19 3744 fi
Chris@19 3745
Chris@19 3746 # Check whether --enable-mips_zbus_timer was given.
Chris@19 3747 if test "${enable_mips_zbus_timer+set}" = set; then :
Chris@19 3748 enableval=$enable_mips_zbus_timer; have_mips_zbus_timer=$enableval
Chris@19 3749 else
Chris@19 3750 have_mips_zbus_timer=no
Chris@19 3751 fi
Chris@19 3752
Chris@19 3753 if test "$have_mips_zbus_timer" = "yes"; then
Chris@19 3754
Chris@19 3755 $as_echo "#define HAVE_MIPS_ZBUS_TIMER 1" >>confdefs.h
Chris@19 3756
Chris@19 3757 fi
Chris@19 3758
Chris@19 3759
Chris@19 3760 # Check whether --with-our-malloc was given.
Chris@19 3761 if test "${with_our_malloc+set}" = set; then :
Chris@19 3762 withval=$with_our_malloc; with_our_malloc=$withval
Chris@19 3763 else
Chris@19 3764 with_our_malloc=no
Chris@19 3765 fi
Chris@19 3766
Chris@19 3767
Chris@19 3768 # Check whether --with-our-malloc16 was given.
Chris@19 3769 if test "${with_our_malloc16+set}" = set; then :
Chris@19 3770 withval=$with_our_malloc16; with_our_malloc=$withval
Chris@19 3771 fi
Chris@19 3772
Chris@19 3773 if test "$with_our_malloc" = "yes"; then
Chris@19 3774
Chris@19 3775 $as_echo "#define WITH_OUR_MALLOC 1" >>confdefs.h
Chris@19 3776
Chris@19 3777 fi
Chris@19 3778
Chris@19 3779
Chris@19 3780 # Check whether --with-windows-f77-mangling was given.
Chris@19 3781 if test "${with_windows_f77_mangling+set}" = set; then :
Chris@19 3782 withval=$with_windows_f77_mangling; with_windows_f77_mangling=$withval
Chris@19 3783 else
Chris@19 3784 with_windows_f77_mangling=no
Chris@19 3785 fi
Chris@19 3786
Chris@19 3787 if test "$with_windows_f77_mangling" = "yes"; then
Chris@19 3788
Chris@19 3789 $as_echo "#define WINDOWS_F77_MANGLING 1" >>confdefs.h
Chris@19 3790
Chris@19 3791 fi
Chris@19 3792
Chris@19 3793
Chris@19 3794 # Check whether --with-incoming-stack-boundary was given.
Chris@19 3795 if test "${with_incoming_stack_boundary+set}" = set; then :
Chris@19 3796 withval=$with_incoming_stack_boundary; with_incoming_stack_boundary=$withval
Chris@19 3797 else
Chris@19 3798 with_incoming_stack_boundary=no
Chris@19 3799 fi
Chris@19 3800
Chris@19 3801
Chris@19 3802 case "$PRECISION" in
Chris@19 3803 s) PREC_SUFFIX=f;;
Chris@19 3804 d) PREC_SUFFIX=;;
Chris@19 3805 l) PREC_SUFFIX=l;;
Chris@19 3806 q) PREC_SUFFIX=q;;
Chris@19 3807 esac
Chris@19 3808
Chris@19 3809
Chris@19 3810 ac_ext=c
Chris@19 3811 ac_cpp='$CPP $CPPFLAGS'
Chris@19 3812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@19 3813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 3814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@19 3815 if test -n "$ac_tool_prefix"; then
Chris@19 3816 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
Chris@19 3817 set dummy ${ac_tool_prefix}gcc; ac_word=$2
Chris@19 3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 3819 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 3820 if ${ac_cv_prog_CC+:} false; then :
Chris@19 3821 $as_echo_n "(cached) " >&6
Chris@19 3822 else
Chris@19 3823 if test -n "$CC"; then
Chris@19 3824 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@19 3825 else
Chris@19 3826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 3827 for as_dir in $PATH
Chris@19 3828 do
Chris@19 3829 IFS=$as_save_IFS
Chris@19 3830 test -z "$as_dir" && as_dir=.
Chris@19 3831 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 3832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 3833 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Chris@19 3834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 3835 break 2
Chris@19 3836 fi
Chris@19 3837 done
Chris@19 3838 done
Chris@19 3839 IFS=$as_save_IFS
Chris@19 3840
Chris@19 3841 fi
Chris@19 3842 fi
Chris@19 3843 CC=$ac_cv_prog_CC
Chris@19 3844 if test -n "$CC"; then
Chris@19 3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@19 3846 $as_echo "$CC" >&6; }
Chris@19 3847 else
Chris@19 3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 3849 $as_echo "no" >&6; }
Chris@19 3850 fi
Chris@19 3851
Chris@19 3852
Chris@19 3853 fi
Chris@19 3854 if test -z "$ac_cv_prog_CC"; then
Chris@19 3855 ac_ct_CC=$CC
Chris@19 3856 # Extract the first word of "gcc", so it can be a program name with args.
Chris@19 3857 set dummy gcc; ac_word=$2
Chris@19 3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 3859 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 3860 if ${ac_cv_prog_ac_ct_CC+:} false; then :
Chris@19 3861 $as_echo_n "(cached) " >&6
Chris@19 3862 else
Chris@19 3863 if test -n "$ac_ct_CC"; then
Chris@19 3864 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
Chris@19 3865 else
Chris@19 3866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 3867 for as_dir in $PATH
Chris@19 3868 do
Chris@19 3869 IFS=$as_save_IFS
Chris@19 3870 test -z "$as_dir" && as_dir=.
Chris@19 3871 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 3872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 3873 ac_cv_prog_ac_ct_CC="gcc"
Chris@19 3874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 3875 break 2
Chris@19 3876 fi
Chris@19 3877 done
Chris@19 3878 done
Chris@19 3879 IFS=$as_save_IFS
Chris@19 3880
Chris@19 3881 fi
Chris@19 3882 fi
Chris@19 3883 ac_ct_CC=$ac_cv_prog_ac_ct_CC
Chris@19 3884 if test -n "$ac_ct_CC"; then
Chris@19 3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Chris@19 3886 $as_echo "$ac_ct_CC" >&6; }
Chris@19 3887 else
Chris@19 3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 3889 $as_echo "no" >&6; }
Chris@19 3890 fi
Chris@19 3891
Chris@19 3892 if test "x$ac_ct_CC" = x; then
Chris@19 3893 CC=""
Chris@19 3894 else
Chris@19 3895 case $cross_compiling:$ac_tool_warned in
Chris@19 3896 yes:)
Chris@19 3897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@19 3898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@19 3899 ac_tool_warned=yes ;;
Chris@19 3900 esac
Chris@19 3901 CC=$ac_ct_CC
Chris@19 3902 fi
Chris@19 3903 else
Chris@19 3904 CC="$ac_cv_prog_CC"
Chris@19 3905 fi
Chris@19 3906
Chris@19 3907 if test -z "$CC"; then
Chris@19 3908 if test -n "$ac_tool_prefix"; then
Chris@19 3909 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Chris@19 3910 set dummy ${ac_tool_prefix}cc; ac_word=$2
Chris@19 3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 3912 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 3913 if ${ac_cv_prog_CC+:} false; then :
Chris@19 3914 $as_echo_n "(cached) " >&6
Chris@19 3915 else
Chris@19 3916 if test -n "$CC"; then
Chris@19 3917 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@19 3918 else
Chris@19 3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 3920 for as_dir in $PATH
Chris@19 3921 do
Chris@19 3922 IFS=$as_save_IFS
Chris@19 3923 test -z "$as_dir" && as_dir=.
Chris@19 3924 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 3925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 3926 ac_cv_prog_CC="${ac_tool_prefix}cc"
Chris@19 3927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 3928 break 2
Chris@19 3929 fi
Chris@19 3930 done
Chris@19 3931 done
Chris@19 3932 IFS=$as_save_IFS
Chris@19 3933
Chris@19 3934 fi
Chris@19 3935 fi
Chris@19 3936 CC=$ac_cv_prog_CC
Chris@19 3937 if test -n "$CC"; then
Chris@19 3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@19 3939 $as_echo "$CC" >&6; }
Chris@19 3940 else
Chris@19 3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 3942 $as_echo "no" >&6; }
Chris@19 3943 fi
Chris@19 3944
Chris@19 3945
Chris@19 3946 fi
Chris@19 3947 fi
Chris@19 3948 if test -z "$CC"; then
Chris@19 3949 # Extract the first word of "cc", so it can be a program name with args.
Chris@19 3950 set dummy cc; ac_word=$2
Chris@19 3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 3952 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 3953 if ${ac_cv_prog_CC+:} false; then :
Chris@19 3954 $as_echo_n "(cached) " >&6
Chris@19 3955 else
Chris@19 3956 if test -n "$CC"; then
Chris@19 3957 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@19 3958 else
Chris@19 3959 ac_prog_rejected=no
Chris@19 3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 3961 for as_dir in $PATH
Chris@19 3962 do
Chris@19 3963 IFS=$as_save_IFS
Chris@19 3964 test -z "$as_dir" && as_dir=.
Chris@19 3965 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 3966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 3967 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
Chris@19 3968 ac_prog_rejected=yes
Chris@19 3969 continue
Chris@19 3970 fi
Chris@19 3971 ac_cv_prog_CC="cc"
Chris@19 3972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 3973 break 2
Chris@19 3974 fi
Chris@19 3975 done
Chris@19 3976 done
Chris@19 3977 IFS=$as_save_IFS
Chris@19 3978
Chris@19 3979 if test $ac_prog_rejected = yes; then
Chris@19 3980 # We found a bogon in the path, so make sure we never use it.
Chris@19 3981 set dummy $ac_cv_prog_CC
Chris@19 3982 shift
Chris@19 3983 if test $# != 0; then
Chris@19 3984 # We chose a different compiler from the bogus one.
Chris@19 3985 # However, it has the same basename, so the bogon will be chosen
Chris@19 3986 # first if we set CC to just the basename; use the full file name.
Chris@19 3987 shift
Chris@19 3988 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Chris@19 3989 fi
Chris@19 3990 fi
Chris@19 3991 fi
Chris@19 3992 fi
Chris@19 3993 CC=$ac_cv_prog_CC
Chris@19 3994 if test -n "$CC"; then
Chris@19 3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@19 3996 $as_echo "$CC" >&6; }
Chris@19 3997 else
Chris@19 3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 3999 $as_echo "no" >&6; }
Chris@19 4000 fi
Chris@19 4001
Chris@19 4002
Chris@19 4003 fi
Chris@19 4004 if test -z "$CC"; then
Chris@19 4005 if test -n "$ac_tool_prefix"; then
Chris@19 4006 for ac_prog in cl.exe
Chris@19 4007 do
Chris@19 4008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@19 4009 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@19 4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 4011 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 4012 if ${ac_cv_prog_CC+:} false; then :
Chris@19 4013 $as_echo_n "(cached) " >&6
Chris@19 4014 else
Chris@19 4015 if test -n "$CC"; then
Chris@19 4016 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@19 4017 else
Chris@19 4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 4019 for as_dir in $PATH
Chris@19 4020 do
Chris@19 4021 IFS=$as_save_IFS
Chris@19 4022 test -z "$as_dir" && as_dir=.
Chris@19 4023 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 4024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 4025 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Chris@19 4026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 4027 break 2
Chris@19 4028 fi
Chris@19 4029 done
Chris@19 4030 done
Chris@19 4031 IFS=$as_save_IFS
Chris@19 4032
Chris@19 4033 fi
Chris@19 4034 fi
Chris@19 4035 CC=$ac_cv_prog_CC
Chris@19 4036 if test -n "$CC"; then
Chris@19 4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@19 4038 $as_echo "$CC" >&6; }
Chris@19 4039 else
Chris@19 4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 4041 $as_echo "no" >&6; }
Chris@19 4042 fi
Chris@19 4043
Chris@19 4044
Chris@19 4045 test -n "$CC" && break
Chris@19 4046 done
Chris@19 4047 fi
Chris@19 4048 if test -z "$CC"; then
Chris@19 4049 ac_ct_CC=$CC
Chris@19 4050 for ac_prog in cl.exe
Chris@19 4051 do
Chris@19 4052 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@19 4053 set dummy $ac_prog; ac_word=$2
Chris@19 4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 4055 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 4056 if ${ac_cv_prog_ac_ct_CC+:} false; then :
Chris@19 4057 $as_echo_n "(cached) " >&6
Chris@19 4058 else
Chris@19 4059 if test -n "$ac_ct_CC"; then
Chris@19 4060 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
Chris@19 4061 else
Chris@19 4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 4063 for as_dir in $PATH
Chris@19 4064 do
Chris@19 4065 IFS=$as_save_IFS
Chris@19 4066 test -z "$as_dir" && as_dir=.
Chris@19 4067 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 4068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 4069 ac_cv_prog_ac_ct_CC="$ac_prog"
Chris@19 4070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 4071 break 2
Chris@19 4072 fi
Chris@19 4073 done
Chris@19 4074 done
Chris@19 4075 IFS=$as_save_IFS
Chris@19 4076
Chris@19 4077 fi
Chris@19 4078 fi
Chris@19 4079 ac_ct_CC=$ac_cv_prog_ac_ct_CC
Chris@19 4080 if test -n "$ac_ct_CC"; then
Chris@19 4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Chris@19 4082 $as_echo "$ac_ct_CC" >&6; }
Chris@19 4083 else
Chris@19 4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 4085 $as_echo "no" >&6; }
Chris@19 4086 fi
Chris@19 4087
Chris@19 4088
Chris@19 4089 test -n "$ac_ct_CC" && break
Chris@19 4090 done
Chris@19 4091
Chris@19 4092 if test "x$ac_ct_CC" = x; then
Chris@19 4093 CC=""
Chris@19 4094 else
Chris@19 4095 case $cross_compiling:$ac_tool_warned in
Chris@19 4096 yes:)
Chris@19 4097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@19 4098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@19 4099 ac_tool_warned=yes ;;
Chris@19 4100 esac
Chris@19 4101 CC=$ac_ct_CC
Chris@19 4102 fi
Chris@19 4103 fi
Chris@19 4104
Chris@19 4105 fi
Chris@19 4106
Chris@19 4107
Chris@19 4108 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@19 4109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@19 4110 as_fn_error $? "no acceptable C compiler found in \$PATH
Chris@19 4111 See \`config.log' for more details" "$LINENO" 5; }
Chris@19 4112
Chris@19 4113 # Provide some information about the compiler.
Chris@19 4114 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Chris@19 4115 set X $ac_compile
Chris@19 4116 ac_compiler=$2
Chris@19 4117 for ac_option in --version -v -V -qversion; do
Chris@19 4118 { { ac_try="$ac_compiler $ac_option >&5"
Chris@19 4119 case "(($ac_try" in
Chris@19 4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@19 4121 *) ac_try_echo=$ac_try;;
Chris@19 4122 esac
Chris@19 4123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@19 4124 $as_echo "$ac_try_echo"; } >&5
Chris@19 4125 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Chris@19 4126 ac_status=$?
Chris@19 4127 if test -s conftest.err; then
Chris@19 4128 sed '10a\
Chris@19 4129 ... rest of stderr output deleted ...
Chris@19 4130 10q' conftest.err >conftest.er1
Chris@19 4131 cat conftest.er1 >&5
Chris@19 4132 fi
Chris@19 4133 rm -f conftest.er1 conftest.err
Chris@19 4134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@19 4135 test $ac_status = 0; }
Chris@19 4136 done
Chris@19 4137
Chris@19 4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 4139 /* end confdefs.h. */
Chris@19 4140
Chris@19 4141 int
Chris@19 4142 main ()
Chris@19 4143 {
Chris@19 4144
Chris@19 4145 ;
Chris@19 4146 return 0;
Chris@19 4147 }
Chris@19 4148 _ACEOF
Chris@19 4149 ac_clean_files_save=$ac_clean_files
Chris@19 4150 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Chris@19 4151 # Try to create an executable without -o first, disregard a.out.
Chris@19 4152 # It will help us diagnose broken compilers, and finding out an intuition
Chris@19 4153 # of exeext.
Chris@19 4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
Chris@19 4155 $as_echo_n "checking whether the C compiler works... " >&6; }
Chris@19 4156 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Chris@19 4157
Chris@19 4158 # The possible output files:
Chris@19 4159 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
Chris@19 4160
Chris@19 4161 ac_rmfiles=
Chris@19 4162 for ac_file in $ac_files
Chris@19 4163 do
Chris@19 4164 case $ac_file in
Chris@19 4165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Chris@19 4166 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
Chris@19 4167 esac
Chris@19 4168 done
Chris@19 4169 rm -f $ac_rmfiles
Chris@19 4170
Chris@19 4171 if { { ac_try="$ac_link_default"
Chris@19 4172 case "(($ac_try" in
Chris@19 4173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@19 4174 *) ac_try_echo=$ac_try;;
Chris@19 4175 esac
Chris@19 4176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@19 4177 $as_echo "$ac_try_echo"; } >&5
Chris@19 4178 (eval "$ac_link_default") 2>&5
Chris@19 4179 ac_status=$?
Chris@19 4180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@19 4181 test $ac_status = 0; }; then :
Chris@19 4182 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
Chris@19 4183 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
Chris@19 4184 # in a Makefile. We should not override ac_cv_exeext if it was cached,
Chris@19 4185 # so that the user can short-circuit this test for compilers unknown to
Chris@19 4186 # Autoconf.
Chris@19 4187 for ac_file in $ac_files ''
Chris@19 4188 do
Chris@19 4189 test -f "$ac_file" || continue
Chris@19 4190 case $ac_file in
Chris@19 4191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Chris@19 4192 ;;
Chris@19 4193 [ab].out )
Chris@19 4194 # We found the default executable, but exeext='' is most
Chris@19 4195 # certainly right.
Chris@19 4196 break;;
Chris@19 4197 *.* )
Chris@19 4198 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Chris@19 4199 then :; else
Chris@19 4200 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Chris@19 4201 fi
Chris@19 4202 # We set ac_cv_exeext here because the later test for it is not
Chris@19 4203 # safe: cross compilers may not add the suffix if given an `-o'
Chris@19 4204 # argument, so we may need to know it at that point already.
Chris@19 4205 # Even if this section looks crufty: it has the advantage of
Chris@19 4206 # actually working.
Chris@19 4207 break;;
Chris@19 4208 * )
Chris@19 4209 break;;
Chris@19 4210 esac
Chris@19 4211 done
Chris@19 4212 test "$ac_cv_exeext" = no && ac_cv_exeext=
Chris@19 4213
Chris@19 4214 else
Chris@19 4215 ac_file=''
Chris@19 4216 fi
Chris@19 4217 if test -z "$ac_file"; then :
Chris@19 4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 4219 $as_echo "no" >&6; }
Chris@19 4220 $as_echo "$as_me: failed program was:" >&5
Chris@19 4221 sed 's/^/| /' conftest.$ac_ext >&5
Chris@19 4222
Chris@19 4223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@19 4224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@19 4225 as_fn_error 77 "C compiler cannot create executables
Chris@19 4226 See \`config.log' for more details" "$LINENO" 5; }
Chris@19 4227 else
Chris@19 4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@19 4229 $as_echo "yes" >&6; }
Chris@19 4230 fi
Chris@19 4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
Chris@19 4232 $as_echo_n "checking for C compiler default output file name... " >&6; }
Chris@19 4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
Chris@19 4234 $as_echo "$ac_file" >&6; }
Chris@19 4235 ac_exeext=$ac_cv_exeext
Chris@19 4236
Chris@19 4237 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Chris@19 4238 ac_clean_files=$ac_clean_files_save
Chris@19 4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Chris@19 4240 $as_echo_n "checking for suffix of executables... " >&6; }
Chris@19 4241 if { { ac_try="$ac_link"
Chris@19 4242 case "(($ac_try" in
Chris@19 4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@19 4244 *) ac_try_echo=$ac_try;;
Chris@19 4245 esac
Chris@19 4246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@19 4247 $as_echo "$ac_try_echo"; } >&5
Chris@19 4248 (eval "$ac_link") 2>&5
Chris@19 4249 ac_status=$?
Chris@19 4250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@19 4251 test $ac_status = 0; }; then :
Chris@19 4252 # If both `conftest.exe' and `conftest' are `present' (well, observable)
Chris@19 4253 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
Chris@19 4254 # work properly (i.e., refer to `conftest.exe'), while it won't with
Chris@19 4255 # `rm'.
Chris@19 4256 for ac_file in conftest.exe conftest conftest.*; do
Chris@19 4257 test -f "$ac_file" || continue
Chris@19 4258 case $ac_file in
Chris@19 4259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Chris@19 4260 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Chris@19 4261 break;;
Chris@19 4262 * ) break;;
Chris@19 4263 esac
Chris@19 4264 done
Chris@19 4265 else
Chris@19 4266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@19 4267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@19 4268 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
Chris@19 4269 See \`config.log' for more details" "$LINENO" 5; }
Chris@19 4270 fi
Chris@19 4271 rm -f conftest conftest$ac_cv_exeext
Chris@19 4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Chris@19 4273 $as_echo "$ac_cv_exeext" >&6; }
Chris@19 4274
Chris@19 4275 rm -f conftest.$ac_ext
Chris@19 4276 EXEEXT=$ac_cv_exeext
Chris@19 4277 ac_exeext=$EXEEXT
Chris@19 4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 4279 /* end confdefs.h. */
Chris@19 4280 #include <stdio.h>
Chris@19 4281 int
Chris@19 4282 main ()
Chris@19 4283 {
Chris@19 4284 FILE *f = fopen ("conftest.out", "w");
Chris@19 4285 return ferror (f) || fclose (f) != 0;
Chris@19 4286
Chris@19 4287 ;
Chris@19 4288 return 0;
Chris@19 4289 }
Chris@19 4290 _ACEOF
Chris@19 4291 ac_clean_files="$ac_clean_files conftest.out"
Chris@19 4292 # Check that the compiler produces executables we can run. If not, either
Chris@19 4293 # the compiler is broken, or we cross compile.
Chris@19 4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
Chris@19 4295 $as_echo_n "checking whether we are cross compiling... " >&6; }
Chris@19 4296 if test "$cross_compiling" != yes; then
Chris@19 4297 { { ac_try="$ac_link"
Chris@19 4298 case "(($ac_try" in
Chris@19 4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@19 4300 *) ac_try_echo=$ac_try;;
Chris@19 4301 esac
Chris@19 4302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@19 4303 $as_echo "$ac_try_echo"; } >&5
Chris@19 4304 (eval "$ac_link") 2>&5
Chris@19 4305 ac_status=$?
Chris@19 4306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@19 4307 test $ac_status = 0; }
Chris@19 4308 if { ac_try='./conftest$ac_cv_exeext'
Chris@19 4309 { { case "(($ac_try" in
Chris@19 4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@19 4311 *) ac_try_echo=$ac_try;;
Chris@19 4312 esac
Chris@19 4313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@19 4314 $as_echo "$ac_try_echo"; } >&5
Chris@19 4315 (eval "$ac_try") 2>&5
Chris@19 4316 ac_status=$?
Chris@19 4317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@19 4318 test $ac_status = 0; }; }; then
Chris@19 4319 cross_compiling=no
Chris@19 4320 else
Chris@19 4321 if test "$cross_compiling" = maybe; then
Chris@19 4322 cross_compiling=yes
Chris@19 4323 else
Chris@19 4324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@19 4325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@19 4326 as_fn_error $? "cannot run C compiled programs.
Chris@19 4327 If you meant to cross compile, use \`--host'.
Chris@19 4328 See \`config.log' for more details" "$LINENO" 5; }
Chris@19 4329 fi
Chris@19 4330 fi
Chris@19 4331 fi
Chris@19 4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
Chris@19 4333 $as_echo "$cross_compiling" >&6; }
Chris@19 4334
Chris@19 4335 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
Chris@19 4336 ac_clean_files=$ac_clean_files_save
Chris@19 4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Chris@19 4338 $as_echo_n "checking for suffix of object files... " >&6; }
Chris@19 4339 if ${ac_cv_objext+:} false; then :
Chris@19 4340 $as_echo_n "(cached) " >&6
Chris@19 4341 else
Chris@19 4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 4343 /* end confdefs.h. */
Chris@19 4344
Chris@19 4345 int
Chris@19 4346 main ()
Chris@19 4347 {
Chris@19 4348
Chris@19 4349 ;
Chris@19 4350 return 0;
Chris@19 4351 }
Chris@19 4352 _ACEOF
Chris@19 4353 rm -f conftest.o conftest.obj
Chris@19 4354 if { { ac_try="$ac_compile"
Chris@19 4355 case "(($ac_try" in
Chris@19 4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@19 4357 *) ac_try_echo=$ac_try;;
Chris@19 4358 esac
Chris@19 4359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@19 4360 $as_echo "$ac_try_echo"; } >&5
Chris@19 4361 (eval "$ac_compile") 2>&5
Chris@19 4362 ac_status=$?
Chris@19 4363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@19 4364 test $ac_status = 0; }; then :
Chris@19 4365 for ac_file in conftest.o conftest.obj conftest.*; do
Chris@19 4366 test -f "$ac_file" || continue;
Chris@19 4367 case $ac_file in
Chris@19 4368 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Chris@19 4369 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
Chris@19 4370 break;;
Chris@19 4371 esac
Chris@19 4372 done
Chris@19 4373 else
Chris@19 4374 $as_echo "$as_me: failed program was:" >&5
Chris@19 4375 sed 's/^/| /' conftest.$ac_ext >&5
Chris@19 4376
Chris@19 4377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@19 4378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@19 4379 as_fn_error $? "cannot compute suffix of object files: cannot compile
Chris@19 4380 See \`config.log' for more details" "$LINENO" 5; }
Chris@19 4381 fi
Chris@19 4382 rm -f conftest.$ac_cv_objext conftest.$ac_ext
Chris@19 4383 fi
Chris@19 4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Chris@19 4385 $as_echo "$ac_cv_objext" >&6; }
Chris@19 4386 OBJEXT=$ac_cv_objext
Chris@19 4387 ac_objext=$OBJEXT
Chris@19 4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Chris@19 4389 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Chris@19 4390 if ${ac_cv_c_compiler_gnu+:} false; then :
Chris@19 4391 $as_echo_n "(cached) " >&6
Chris@19 4392 else
Chris@19 4393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 4394 /* end confdefs.h. */
Chris@19 4395
Chris@19 4396 int
Chris@19 4397 main ()
Chris@19 4398 {
Chris@19 4399 #ifndef __GNUC__
Chris@19 4400 choke me
Chris@19 4401 #endif
Chris@19 4402
Chris@19 4403 ;
Chris@19 4404 return 0;
Chris@19 4405 }
Chris@19 4406 _ACEOF
Chris@19 4407 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 4408 ac_compiler_gnu=yes
Chris@19 4409 else
Chris@19 4410 ac_compiler_gnu=no
Chris@19 4411 fi
Chris@19 4412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 4413 ac_cv_c_compiler_gnu=$ac_compiler_gnu
Chris@19 4414
Chris@19 4415 fi
Chris@19 4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Chris@19 4417 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
Chris@19 4418 if test $ac_compiler_gnu = yes; then
Chris@19 4419 GCC=yes
Chris@19 4420 else
Chris@19 4421 GCC=
Chris@19 4422 fi
Chris@19 4423 ac_test_CFLAGS=${CFLAGS+set}
Chris@19 4424 ac_save_CFLAGS=$CFLAGS
Chris@19 4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Chris@19 4426 $as_echo_n "checking whether $CC accepts -g... " >&6; }
Chris@19 4427 if ${ac_cv_prog_cc_g+:} false; then :
Chris@19 4428 $as_echo_n "(cached) " >&6
Chris@19 4429 else
Chris@19 4430 ac_save_c_werror_flag=$ac_c_werror_flag
Chris@19 4431 ac_c_werror_flag=yes
Chris@19 4432 ac_cv_prog_cc_g=no
Chris@19 4433 CFLAGS="-g"
Chris@19 4434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 4435 /* end confdefs.h. */
Chris@19 4436
Chris@19 4437 int
Chris@19 4438 main ()
Chris@19 4439 {
Chris@19 4440
Chris@19 4441 ;
Chris@19 4442 return 0;
Chris@19 4443 }
Chris@19 4444 _ACEOF
Chris@19 4445 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 4446 ac_cv_prog_cc_g=yes
Chris@19 4447 else
Chris@19 4448 CFLAGS=""
Chris@19 4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 4450 /* end confdefs.h. */
Chris@19 4451
Chris@19 4452 int
Chris@19 4453 main ()
Chris@19 4454 {
Chris@19 4455
Chris@19 4456 ;
Chris@19 4457 return 0;
Chris@19 4458 }
Chris@19 4459 _ACEOF
Chris@19 4460 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 4461
Chris@19 4462 else
Chris@19 4463 ac_c_werror_flag=$ac_save_c_werror_flag
Chris@19 4464 CFLAGS="-g"
Chris@19 4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 4466 /* end confdefs.h. */
Chris@19 4467
Chris@19 4468 int
Chris@19 4469 main ()
Chris@19 4470 {
Chris@19 4471
Chris@19 4472 ;
Chris@19 4473 return 0;
Chris@19 4474 }
Chris@19 4475 _ACEOF
Chris@19 4476 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 4477 ac_cv_prog_cc_g=yes
Chris@19 4478 fi
Chris@19 4479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 4480 fi
Chris@19 4481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 4482 fi
Chris@19 4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 4484 ac_c_werror_flag=$ac_save_c_werror_flag
Chris@19 4485 fi
Chris@19 4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Chris@19 4487 $as_echo "$ac_cv_prog_cc_g" >&6; }
Chris@19 4488 if test "$ac_test_CFLAGS" = set; then
Chris@19 4489 CFLAGS=$ac_save_CFLAGS
Chris@19 4490 elif test $ac_cv_prog_cc_g = yes; then
Chris@19 4491 if test "$GCC" = yes; then
Chris@19 4492 CFLAGS="-g -O2"
Chris@19 4493 else
Chris@19 4494 CFLAGS="-g"
Chris@19 4495 fi
Chris@19 4496 else
Chris@19 4497 if test "$GCC" = yes; then
Chris@19 4498 CFLAGS="-O2"
Chris@19 4499 else
Chris@19 4500 CFLAGS=
Chris@19 4501 fi
Chris@19 4502 fi
Chris@19 4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Chris@19 4504 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Chris@19 4505 if ${ac_cv_prog_cc_c89+:} false; then :
Chris@19 4506 $as_echo_n "(cached) " >&6
Chris@19 4507 else
Chris@19 4508 ac_cv_prog_cc_c89=no
Chris@19 4509 ac_save_CC=$CC
Chris@19 4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 4511 /* end confdefs.h. */
Chris@19 4512 #include <stdarg.h>
Chris@19 4513 #include <stdio.h>
Chris@19 4514 struct stat;
Chris@19 4515 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
Chris@19 4516 struct buf { int x; };
Chris@19 4517 FILE * (*rcsopen) (struct buf *, struct stat *, int);
Chris@19 4518 static char *e (p, i)
Chris@19 4519 char **p;
Chris@19 4520 int i;
Chris@19 4521 {
Chris@19 4522 return p[i];
Chris@19 4523 }
Chris@19 4524 static char *f (char * (*g) (char **, int), char **p, ...)
Chris@19 4525 {
Chris@19 4526 char *s;
Chris@19 4527 va_list v;
Chris@19 4528 va_start (v,p);
Chris@19 4529 s = g (p, va_arg (v,int));
Chris@19 4530 va_end (v);
Chris@19 4531 return s;
Chris@19 4532 }
Chris@19 4533
Chris@19 4534 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
Chris@19 4535 function prototypes and stuff, but not '\xHH' hex character constants.
Chris@19 4536 These don't provoke an error unfortunately, instead are silently treated
Chris@19 4537 as 'x'. The following induces an error, until -std is added to get
Chris@19 4538 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
Chris@19 4539 array size at least. It's necessary to write '\x00'==0 to get something
Chris@19 4540 that's true only with -std. */
Chris@19 4541 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
Chris@19 4542
Chris@19 4543 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
Chris@19 4544 inside strings and character constants. */
Chris@19 4545 #define FOO(x) 'x'
Chris@19 4546 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
Chris@19 4547
Chris@19 4548 int test (int i, double x);
Chris@19 4549 struct s1 {int (*f) (int a);};
Chris@19 4550 struct s2 {int (*f) (double a);};
Chris@19 4551 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
Chris@19 4552 int argc;
Chris@19 4553 char **argv;
Chris@19 4554 int
Chris@19 4555 main ()
Chris@19 4556 {
Chris@19 4557 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
Chris@19 4558 ;
Chris@19 4559 return 0;
Chris@19 4560 }
Chris@19 4561 _ACEOF
Chris@19 4562 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
Chris@19 4563 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Chris@19 4564 do
Chris@19 4565 CC="$ac_save_CC $ac_arg"
Chris@19 4566 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 4567 ac_cv_prog_cc_c89=$ac_arg
Chris@19 4568 fi
Chris@19 4569 rm -f core conftest.err conftest.$ac_objext
Chris@19 4570 test "x$ac_cv_prog_cc_c89" != "xno" && break
Chris@19 4571 done
Chris@19 4572 rm -f conftest.$ac_ext
Chris@19 4573 CC=$ac_save_CC
Chris@19 4574
Chris@19 4575 fi
Chris@19 4576 # AC_CACHE_VAL
Chris@19 4577 case "x$ac_cv_prog_cc_c89" in
Chris@19 4578 x)
Chris@19 4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Chris@19 4580 $as_echo "none needed" >&6; } ;;
Chris@19 4581 xno)
Chris@19 4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Chris@19 4583 $as_echo "unsupported" >&6; } ;;
Chris@19 4584 *)
Chris@19 4585 CC="$CC $ac_cv_prog_cc_c89"
Chris@19 4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Chris@19 4587 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Chris@19 4588 esac
Chris@19 4589 if test "x$ac_cv_prog_cc_c89" != xno; then :
Chris@19 4590
Chris@19 4591 fi
Chris@19 4592
Chris@19 4593 ac_ext=c
Chris@19 4594 ac_cpp='$CPP $CPPFLAGS'
Chris@19 4595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@19 4596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 4597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@19 4598
Chris@19 4599 ac_ext=c
Chris@19 4600 ac_cpp='$CPP $CPPFLAGS'
Chris@19 4601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@19 4602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 4603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@19 4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
Chris@19 4605 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
Chris@19 4606 if ${am_cv_prog_cc_c_o+:} false; then :
Chris@19 4607 $as_echo_n "(cached) " >&6
Chris@19 4608 else
Chris@19 4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 4610 /* end confdefs.h. */
Chris@19 4611
Chris@19 4612 int
Chris@19 4613 main ()
Chris@19 4614 {
Chris@19 4615
Chris@19 4616 ;
Chris@19 4617 return 0;
Chris@19 4618 }
Chris@19 4619 _ACEOF
Chris@19 4620 # Make sure it works both with $CC and with simple cc.
Chris@19 4621 # Following AC_PROG_CC_C_O, we do the test twice because some
Chris@19 4622 # compilers refuse to overwrite an existing .o file with -o,
Chris@19 4623 # though they will create one.
Chris@19 4624 am_cv_prog_cc_c_o=yes
Chris@19 4625 for am_i in 1 2; do
Chris@19 4626 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
Chris@19 4627 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
Chris@19 4628 ac_status=$?
Chris@19 4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@19 4630 (exit $ac_status); } \
Chris@19 4631 && test -f conftest2.$ac_objext; then
Chris@19 4632 : OK
Chris@19 4633 else
Chris@19 4634 am_cv_prog_cc_c_o=no
Chris@19 4635 break
Chris@19 4636 fi
Chris@19 4637 done
Chris@19 4638 rm -f core conftest*
Chris@19 4639 unset am_i
Chris@19 4640 fi
Chris@19 4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
Chris@19 4642 $as_echo "$am_cv_prog_cc_c_o" >&6; }
Chris@19 4643 if test "$am_cv_prog_cc_c_o" != yes; then
Chris@19 4644 # Losing compiler, so override with the script.
Chris@19 4645 # FIXME: It is wrong to rewrite CC.
Chris@19 4646 # But if we don't then we get into trouble of one sort or another.
Chris@19 4647 # A longer-term fix would be to have automake use am__CC in this case,
Chris@19 4648 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
Chris@19 4649 CC="$am_aux_dir/compile $CC"
Chris@19 4650 fi
Chris@19 4651 ac_ext=c
Chris@19 4652 ac_cpp='$CPP $CPPFLAGS'
Chris@19 4653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@19 4654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 4655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@19 4656
Chris@19 4657 DEPDIR="${am__leading_dot}deps"
Chris@19 4658
Chris@19 4659 ac_config_commands="$ac_config_commands depfiles"
Chris@19 4660
Chris@19 4661
Chris@19 4662 am_make=${MAKE-make}
Chris@19 4663 cat > confinc << 'END'
Chris@19 4664 am__doit:
Chris@19 4665 @echo this is the am__doit target
Chris@19 4666 .PHONY: am__doit
Chris@19 4667 END
Chris@19 4668 # If we don't find an include directive, just comment out the code.
Chris@19 4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
Chris@19 4670 $as_echo_n "checking for style of include used by $am_make... " >&6; }
Chris@19 4671 am__include="#"
Chris@19 4672 am__quote=
Chris@19 4673 _am_result=none
Chris@19 4674 # First try GNU make style include.
Chris@19 4675 echo "include confinc" > confmf
Chris@19 4676 # Ignore all kinds of additional output from 'make'.
Chris@19 4677 case `$am_make -s -f confmf 2> /dev/null` in #(
Chris@19 4678 *the\ am__doit\ target*)
Chris@19 4679 am__include=include
Chris@19 4680 am__quote=
Chris@19 4681 _am_result=GNU
Chris@19 4682 ;;
Chris@19 4683 esac
Chris@19 4684 # Now try BSD make style include.
Chris@19 4685 if test "$am__include" = "#"; then
Chris@19 4686 echo '.include "confinc"' > confmf
Chris@19 4687 case `$am_make -s -f confmf 2> /dev/null` in #(
Chris@19 4688 *the\ am__doit\ target*)
Chris@19 4689 am__include=.include
Chris@19 4690 am__quote="\""
Chris@19 4691 _am_result=BSD
Chris@19 4692 ;;
Chris@19 4693 esac
Chris@19 4694 fi
Chris@19 4695
Chris@19 4696
Chris@19 4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
Chris@19 4698 $as_echo "$_am_result" >&6; }
Chris@19 4699 rm -f confinc confmf
Chris@19 4700
Chris@19 4701 # Check whether --enable-dependency-tracking was given.
Chris@19 4702 if test "${enable_dependency_tracking+set}" = set; then :
Chris@19 4703 enableval=$enable_dependency_tracking;
Chris@19 4704 fi
Chris@19 4705
Chris@19 4706 if test "x$enable_dependency_tracking" != xno; then
Chris@19 4707 am_depcomp="$ac_aux_dir/depcomp"
Chris@19 4708 AMDEPBACKSLASH='\'
Chris@19 4709 am__nodep='_no'
Chris@19 4710 fi
Chris@19 4711 if test "x$enable_dependency_tracking" != xno; then
Chris@19 4712 AMDEP_TRUE=
Chris@19 4713 AMDEP_FALSE='#'
Chris@19 4714 else
Chris@19 4715 AMDEP_TRUE='#'
Chris@19 4716 AMDEP_FALSE=
Chris@19 4717 fi
Chris@19 4718
Chris@19 4719
Chris@19 4720
Chris@19 4721 depcc="$CC" am_compiler_list=
Chris@19 4722
Chris@19 4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Chris@19 4724 $as_echo_n "checking dependency style of $depcc... " >&6; }
Chris@19 4725 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
Chris@19 4726 $as_echo_n "(cached) " >&6
Chris@19 4727 else
Chris@19 4728 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
Chris@19 4729 # We make a subdir and do the tests there. Otherwise we can end up
Chris@19 4730 # making bogus files that we don't know about and never remove. For
Chris@19 4731 # instance it was reported that on HP-UX the gcc test will end up
Chris@19 4732 # making a dummy file named 'D' -- because '-MD' means "put the output
Chris@19 4733 # in D".
Chris@19 4734 rm -rf conftest.dir
Chris@19 4735 mkdir conftest.dir
Chris@19 4736 # Copy depcomp to subdir because otherwise we won't find it if we're
Chris@19 4737 # using a relative directory.
Chris@19 4738 cp "$am_depcomp" conftest.dir
Chris@19 4739 cd conftest.dir
Chris@19 4740 # We will build objects and dependencies in a subdirectory because
Chris@19 4741 # it helps to detect inapplicable dependency modes. For instance
Chris@19 4742 # both Tru64's cc and ICC support -MD to output dependencies as a
Chris@19 4743 # side effect of compilation, but ICC will put the dependencies in
Chris@19 4744 # the current directory while Tru64 will put them in the object
Chris@19 4745 # directory.
Chris@19 4746 mkdir sub
Chris@19 4747
Chris@19 4748 am_cv_CC_dependencies_compiler_type=none
Chris@19 4749 if test "$am_compiler_list" = ""; then
Chris@19 4750 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
Chris@19 4751 fi
Chris@19 4752 am__universal=false
Chris@19 4753 case " $depcc " in #(
Chris@19 4754 *\ -arch\ *\ -arch\ *) am__universal=true ;;
Chris@19 4755 esac
Chris@19 4756
Chris@19 4757 for depmode in $am_compiler_list; do
Chris@19 4758 # Setup a source with many dependencies, because some compilers
Chris@19 4759 # like to wrap large dependency lists on column 80 (with \), and
Chris@19 4760 # we should not choose a depcomp mode which is confused by this.
Chris@19 4761 #
Chris@19 4762 # We need to recreate these files for each test, as the compiler may
Chris@19 4763 # overwrite some of them when testing with obscure command lines.
Chris@19 4764 # This happens at least with the AIX C compiler.
Chris@19 4765 : > sub/conftest.c
Chris@19 4766 for i in 1 2 3 4 5 6; do
Chris@19 4767 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Chris@19 4768 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
Chris@19 4769 # Solaris 10 /bin/sh.
Chris@19 4770 echo '/* dummy */' > sub/conftst$i.h
Chris@19 4771 done
Chris@19 4772 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Chris@19 4773
Chris@19 4774 # We check with '-c' and '-o' for the sake of the "dashmstdout"
Chris@19 4775 # mode. It turns out that the SunPro C++ compiler does not properly
Chris@19 4776 # handle '-M -o', and we need to detect this. Also, some Intel
Chris@19 4777 # versions had trouble with output in subdirs.
Chris@19 4778 am__obj=sub/conftest.${OBJEXT-o}
Chris@19 4779 am__minus_obj="-o $am__obj"
Chris@19 4780 case $depmode in
Chris@19 4781 gcc)
Chris@19 4782 # This depmode causes a compiler race in universal mode.
Chris@19 4783 test "$am__universal" = false || continue
Chris@19 4784 ;;
Chris@19 4785 nosideeffect)
Chris@19 4786 # After this tag, mechanisms are not by side-effect, so they'll
Chris@19 4787 # only be used when explicitly requested.
Chris@19 4788 if test "x$enable_dependency_tracking" = xyes; then
Chris@19 4789 continue
Chris@19 4790 else
Chris@19 4791 break
Chris@19 4792 fi
Chris@19 4793 ;;
Chris@19 4794 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
Chris@19 4795 # This compiler won't grok '-c -o', but also, the minuso test has
Chris@19 4796 # not run yet. These depmodes are late enough in the game, and
Chris@19 4797 # so weak that their functioning should not be impacted.
Chris@19 4798 am__obj=conftest.${OBJEXT-o}
Chris@19 4799 am__minus_obj=
Chris@19 4800 ;;
Chris@19 4801 none) break ;;
Chris@19 4802 esac
Chris@19 4803 if depmode=$depmode \
Chris@19 4804 source=sub/conftest.c object=$am__obj \
Chris@19 4805 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Chris@19 4806 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Chris@19 4807 >/dev/null 2>conftest.err &&
Chris@19 4808 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Chris@19 4809 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Chris@19 4810 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Chris@19 4811 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Chris@19 4812 # icc doesn't choke on unknown options, it will just issue warnings
Chris@19 4813 # or remarks (even with -Werror). So we grep stderr for any message
Chris@19 4814 # that says an option was ignored or not supported.
Chris@19 4815 # When given -MP, icc 7.0 and 7.1 complain thusly:
Chris@19 4816 # icc: Command line warning: ignoring option '-M'; no argument required
Chris@19 4817 # The diagnosis changed in icc 8.0:
Chris@19 4818 # icc: Command line remark: option '-MP' not supported
Chris@19 4819 if (grep 'ignoring option' conftest.err ||
Chris@19 4820 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Chris@19 4821 am_cv_CC_dependencies_compiler_type=$depmode
Chris@19 4822 break
Chris@19 4823 fi
Chris@19 4824 fi
Chris@19 4825 done
Chris@19 4826
Chris@19 4827 cd ..
Chris@19 4828 rm -rf conftest.dir
Chris@19 4829 else
Chris@19 4830 am_cv_CC_dependencies_compiler_type=none
Chris@19 4831 fi
Chris@19 4832
Chris@19 4833 fi
Chris@19 4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
Chris@19 4835 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Chris@19 4836 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
Chris@19 4837
Chris@19 4838 if
Chris@19 4839 test "x$enable_dependency_tracking" != xno \
Chris@19 4840 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
Chris@19 4841 am__fastdepCC_TRUE=
Chris@19 4842 am__fastdepCC_FALSE='#'
Chris@19 4843 else
Chris@19 4844 am__fastdepCC_TRUE='#'
Chris@19 4845 am__fastdepCC_FALSE=
Chris@19 4846 fi
Chris@19 4847
Chris@19 4848
Chris@19 4849
Chris@19 4850
Chris@19 4851
Chris@19 4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
Chris@19 4853 $as_echo_n "checking for C compiler vendor... " >&6; }
Chris@19 4854 if ${ax_cv_c_compiler_vendor+:} false; then :
Chris@19 4855 $as_echo_n "(cached) " >&6
Chris@19 4856 else
Chris@19 4857 ax_cv_c_compiler_vendor=unknown
Chris@19 4858 # note: don't check for gcc first since some other compilers define __GNUC__
Chris@19 4859 for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ pathscale:__PATHCC__,__PATHSCALE__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do
Chris@19 4860 vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")"
Chris@19 4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 4862 /* end confdefs.h. */
Chris@19 4863
Chris@19 4864 int
Chris@19 4865 main ()
Chris@19 4866 {
Chris@19 4867
Chris@19 4868 #if !($vencpp)
Chris@19 4869 thisisanerror;
Chris@19 4870 #endif
Chris@19 4871
Chris@19 4872 ;
Chris@19 4873 return 0;
Chris@19 4874 }
Chris@19 4875 _ACEOF
Chris@19 4876 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 4877 ax_cv_c_compiler_vendor=`echo $ventest | cut -d: -f1`; break
Chris@19 4878 fi
Chris@19 4879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 4880 done
Chris@19 4881
Chris@19 4882 fi
Chris@19 4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
Chris@19 4884 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
Chris@19 4885
Chris@19 4886 case $ac_cv_prog_cc_stdc in #(
Chris@19 4887 no) :
Chris@19 4888 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
Chris@19 4889 *) :
Chris@19 4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
Chris@19 4891 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
Chris@19 4892 if ${ac_cv_prog_cc_c99+:} false; then :
Chris@19 4893 $as_echo_n "(cached) " >&6
Chris@19 4894 else
Chris@19 4895 ac_cv_prog_cc_c99=no
Chris@19 4896 ac_save_CC=$CC
Chris@19 4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 4898 /* end confdefs.h. */
Chris@19 4899 #include <stdarg.h>
Chris@19 4900 #include <stdbool.h>
Chris@19 4901 #include <stdlib.h>
Chris@19 4902 #include <wchar.h>
Chris@19 4903 #include <stdio.h>
Chris@19 4904
Chris@19 4905 // Check varargs macros. These examples are taken from C99 6.10.3.5.
Chris@19 4906 #define debug(...) fprintf (stderr, __VA_ARGS__)
Chris@19 4907 #define showlist(...) puts (#__VA_ARGS__)
Chris@19 4908 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
Chris@19 4909 static void
Chris@19 4910 test_varargs_macros (void)
Chris@19 4911 {
Chris@19 4912 int x = 1234;
Chris@19 4913 int y = 5678;
Chris@19 4914 debug ("Flag");
Chris@19 4915 debug ("X = %d\n", x);
Chris@19 4916 showlist (The first, second, and third items.);
Chris@19 4917 report (x>y, "x is %d but y is %d", x, y);
Chris@19 4918 }
Chris@19 4919
Chris@19 4920 // Check long long types.
Chris@19 4921 #define BIG64 18446744073709551615ull
Chris@19 4922 #define BIG32 4294967295ul
Chris@19 4923 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
Chris@19 4924 #if !BIG_OK
Chris@19 4925 your preprocessor is broken;
Chris@19 4926 #endif
Chris@19 4927 #if BIG_OK
Chris@19 4928 #else
Chris@19 4929 your preprocessor is broken;
Chris@19 4930 #endif
Chris@19 4931 static long long int bignum = -9223372036854775807LL;
Chris@19 4932 static unsigned long long int ubignum = BIG64;
Chris@19 4933
Chris@19 4934 struct incomplete_array
Chris@19 4935 {
Chris@19 4936 int datasize;
Chris@19 4937 double data[];
Chris@19 4938 };
Chris@19 4939
Chris@19 4940 struct named_init {
Chris@19 4941 int number;
Chris@19 4942 const wchar_t *name;
Chris@19 4943 double average;
Chris@19 4944 };
Chris@19 4945
Chris@19 4946 typedef const char *ccp;
Chris@19 4947
Chris@19 4948 static inline int
Chris@19 4949 test_restrict (ccp restrict text)
Chris@19 4950 {
Chris@19 4951 // See if C++-style comments work.
Chris@19 4952 // Iterate through items via the restricted pointer.
Chris@19 4953 // Also check for declarations in for loops.
Chris@19 4954 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
Chris@19 4955 continue;
Chris@19 4956 return 0;
Chris@19 4957 }
Chris@19 4958
Chris@19 4959 // Check varargs and va_copy.
Chris@19 4960 static void
Chris@19 4961 test_varargs (const char *format, ...)
Chris@19 4962 {
Chris@19 4963 va_list args;
Chris@19 4964 va_start (args, format);
Chris@19 4965 va_list args_copy;
Chris@19 4966 va_copy (args_copy, args);
Chris@19 4967
Chris@19 4968 const char *str;
Chris@19 4969 int number;
Chris@19 4970 float fnumber;
Chris@19 4971
Chris@19 4972 while (*format)
Chris@19 4973 {
Chris@19 4974 switch (*format++)
Chris@19 4975 {
Chris@19 4976 case 's': // string
Chris@19 4977 str = va_arg (args_copy, const char *);
Chris@19 4978 break;
Chris@19 4979 case 'd': // int
Chris@19 4980 number = va_arg (args_copy, int);
Chris@19 4981 break;
Chris@19 4982 case 'f': // float
Chris@19 4983 fnumber = va_arg (args_copy, double);
Chris@19 4984 break;
Chris@19 4985 default:
Chris@19 4986 break;
Chris@19 4987 }
Chris@19 4988 }
Chris@19 4989 va_end (args_copy);
Chris@19 4990 va_end (args);
Chris@19 4991 }
Chris@19 4992
Chris@19 4993 int
Chris@19 4994 main ()
Chris@19 4995 {
Chris@19 4996
Chris@19 4997 // Check bool.
Chris@19 4998 _Bool success = false;
Chris@19 4999
Chris@19 5000 // Check restrict.
Chris@19 5001 if (test_restrict ("String literal") == 0)
Chris@19 5002 success = true;
Chris@19 5003 char *restrict newvar = "Another string";
Chris@19 5004
Chris@19 5005 // Check varargs.
Chris@19 5006 test_varargs ("s, d' f .", "string", 65, 34.234);
Chris@19 5007 test_varargs_macros ();
Chris@19 5008
Chris@19 5009 // Check flexible array members.
Chris@19 5010 struct incomplete_array *ia =
Chris@19 5011 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
Chris@19 5012 ia->datasize = 10;
Chris@19 5013 for (int i = 0; i < ia->datasize; ++i)
Chris@19 5014 ia->data[i] = i * 1.234;
Chris@19 5015
Chris@19 5016 // Check named initializers.
Chris@19 5017 struct named_init ni = {
Chris@19 5018 .number = 34,
Chris@19 5019 .name = L"Test wide string",
Chris@19 5020 .average = 543.34343,
Chris@19 5021 };
Chris@19 5022
Chris@19 5023 ni.number = 58;
Chris@19 5024
Chris@19 5025 int dynamic_array[ni.number];
Chris@19 5026 dynamic_array[ni.number - 1] = 543;
Chris@19 5027
Chris@19 5028 // work around unused variable warnings
Chris@19 5029 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
Chris@19 5030 || dynamic_array[ni.number - 1] != 543);
Chris@19 5031
Chris@19 5032 ;
Chris@19 5033 return 0;
Chris@19 5034 }
Chris@19 5035 _ACEOF
Chris@19 5036 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
Chris@19 5037 do
Chris@19 5038 CC="$ac_save_CC $ac_arg"
Chris@19 5039 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 5040 ac_cv_prog_cc_c99=$ac_arg
Chris@19 5041 fi
Chris@19 5042 rm -f core conftest.err conftest.$ac_objext
Chris@19 5043 test "x$ac_cv_prog_cc_c99" != "xno" && break
Chris@19 5044 done
Chris@19 5045 rm -f conftest.$ac_ext
Chris@19 5046 CC=$ac_save_CC
Chris@19 5047
Chris@19 5048 fi
Chris@19 5049 # AC_CACHE_VAL
Chris@19 5050 case "x$ac_cv_prog_cc_c99" in
Chris@19 5051 x)
Chris@19 5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Chris@19 5053 $as_echo "none needed" >&6; } ;;
Chris@19 5054 xno)
Chris@19 5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Chris@19 5056 $as_echo "unsupported" >&6; } ;;
Chris@19 5057 *)
Chris@19 5058 CC="$CC $ac_cv_prog_cc_c99"
Chris@19 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
Chris@19 5060 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
Chris@19 5061 esac
Chris@19 5062 if test "x$ac_cv_prog_cc_c99" != xno; then :
Chris@19 5063 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
Chris@19 5064 else
Chris@19 5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Chris@19 5066 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Chris@19 5067 if ${ac_cv_prog_cc_c89+:} false; then :
Chris@19 5068 $as_echo_n "(cached) " >&6
Chris@19 5069 else
Chris@19 5070 ac_cv_prog_cc_c89=no
Chris@19 5071 ac_save_CC=$CC
Chris@19 5072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 5073 /* end confdefs.h. */
Chris@19 5074 #include <stdarg.h>
Chris@19 5075 #include <stdio.h>
Chris@19 5076 struct stat;
Chris@19 5077 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
Chris@19 5078 struct buf { int x; };
Chris@19 5079 FILE * (*rcsopen) (struct buf *, struct stat *, int);
Chris@19 5080 static char *e (p, i)
Chris@19 5081 char **p;
Chris@19 5082 int i;
Chris@19 5083 {
Chris@19 5084 return p[i];
Chris@19 5085 }
Chris@19 5086 static char *f (char * (*g) (char **, int), char **p, ...)
Chris@19 5087 {
Chris@19 5088 char *s;
Chris@19 5089 va_list v;
Chris@19 5090 va_start (v,p);
Chris@19 5091 s = g (p, va_arg (v,int));
Chris@19 5092 va_end (v);
Chris@19 5093 return s;
Chris@19 5094 }
Chris@19 5095
Chris@19 5096 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
Chris@19 5097 function prototypes and stuff, but not '\xHH' hex character constants.
Chris@19 5098 These don't provoke an error unfortunately, instead are silently treated
Chris@19 5099 as 'x'. The following induces an error, until -std is added to get
Chris@19 5100 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
Chris@19 5101 array size at least. It's necessary to write '\x00'==0 to get something
Chris@19 5102 that's true only with -std. */
Chris@19 5103 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
Chris@19 5104
Chris@19 5105 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
Chris@19 5106 inside strings and character constants. */
Chris@19 5107 #define FOO(x) 'x'
Chris@19 5108 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
Chris@19 5109
Chris@19 5110 int test (int i, double x);
Chris@19 5111 struct s1 {int (*f) (int a);};
Chris@19 5112 struct s2 {int (*f) (double a);};
Chris@19 5113 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
Chris@19 5114 int argc;
Chris@19 5115 char **argv;
Chris@19 5116 int
Chris@19 5117 main ()
Chris@19 5118 {
Chris@19 5119 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
Chris@19 5120 ;
Chris@19 5121 return 0;
Chris@19 5122 }
Chris@19 5123 _ACEOF
Chris@19 5124 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
Chris@19 5125 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Chris@19 5126 do
Chris@19 5127 CC="$ac_save_CC $ac_arg"
Chris@19 5128 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 5129 ac_cv_prog_cc_c89=$ac_arg
Chris@19 5130 fi
Chris@19 5131 rm -f core conftest.err conftest.$ac_objext
Chris@19 5132 test "x$ac_cv_prog_cc_c89" != "xno" && break
Chris@19 5133 done
Chris@19 5134 rm -f conftest.$ac_ext
Chris@19 5135 CC=$ac_save_CC
Chris@19 5136
Chris@19 5137 fi
Chris@19 5138 # AC_CACHE_VAL
Chris@19 5139 case "x$ac_cv_prog_cc_c89" in
Chris@19 5140 x)
Chris@19 5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Chris@19 5142 $as_echo "none needed" >&6; } ;;
Chris@19 5143 xno)
Chris@19 5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Chris@19 5145 $as_echo "unsupported" >&6; } ;;
Chris@19 5146 *)
Chris@19 5147 CC="$CC $ac_cv_prog_cc_c89"
Chris@19 5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Chris@19 5149 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Chris@19 5150 esac
Chris@19 5151 if test "x$ac_cv_prog_cc_c89" != xno; then :
Chris@19 5152 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
Chris@19 5153 else
Chris@19 5154 ac_cv_prog_cc_stdc=no
Chris@19 5155 fi
Chris@19 5156
Chris@19 5157 fi
Chris@19 5158 ;;
Chris@19 5159 esac
Chris@19 5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
Chris@19 5161 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
Chris@19 5162 if ${ac_cv_prog_cc_stdc+:} false; then :
Chris@19 5163 $as_echo_n "(cached) " >&6
Chris@19 5164 fi
Chris@19 5165
Chris@19 5166 case $ac_cv_prog_cc_stdc in #(
Chris@19 5167 no) :
Chris@19 5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Chris@19 5169 $as_echo "unsupported" >&6; } ;; #(
Chris@19 5170 '') :
Chris@19 5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Chris@19 5172 $as_echo "none needed" >&6; } ;; #(
Chris@19 5173 *) :
Chris@19 5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
Chris@19 5175 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
Chris@19 5176 esac
Chris@19 5177
Chris@19 5178
Chris@19 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Chris@19 5180 $as_echo_n "checking whether ln -s works... " >&6; }
Chris@19 5181 LN_S=$as_ln_s
Chris@19 5182 if test "$LN_S" = "ln -s"; then
Chris@19 5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@19 5184 $as_echo "yes" >&6; }
Chris@19 5185 else
Chris@19 5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Chris@19 5187 $as_echo "no, using $LN_S" >&6; }
Chris@19 5188 fi
Chris@19 5189
Chris@19 5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Chris@19 5191 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
Chris@19 5192 set x ${MAKE-make}
Chris@19 5193 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Chris@19 5194 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Chris@19 5195 $as_echo_n "(cached) " >&6
Chris@19 5196 else
Chris@19 5197 cat >conftest.make <<\_ACEOF
Chris@19 5198 SHELL = /bin/sh
Chris@19 5199 all:
Chris@19 5200 @echo '@@@%%%=$(MAKE)=@@@%%%'
Chris@19 5201 _ACEOF
Chris@19 5202 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Chris@19 5203 case `${MAKE-make} -f conftest.make 2>/dev/null` in
Chris@19 5204 *@@@%%%=?*=@@@%%%*)
Chris@19 5205 eval ac_cv_prog_make_${ac_make}_set=yes;;
Chris@19 5206 *)
Chris@19 5207 eval ac_cv_prog_make_${ac_make}_set=no;;
Chris@19 5208 esac
Chris@19 5209 rm -f conftest.make
Chris@19 5210 fi
Chris@19 5211 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Chris@19 5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@19 5213 $as_echo "yes" >&6; }
Chris@19 5214 SET_MAKE=
Chris@19 5215 else
Chris@19 5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 5217 $as_echo "no" >&6; }
Chris@19 5218 SET_MAKE="MAKE=${MAKE-make}"
Chris@19 5219 fi
Chris@19 5220
Chris@19 5221 enable_win32_dll=yes
Chris@19 5222
Chris@19 5223 case $host in
Chris@19 5224 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
Chris@19 5225 if test -n "$ac_tool_prefix"; then
Chris@19 5226 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
Chris@19 5227 set dummy ${ac_tool_prefix}as; ac_word=$2
Chris@19 5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 5229 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 5230 if ${ac_cv_prog_AS+:} false; then :
Chris@19 5231 $as_echo_n "(cached) " >&6
Chris@19 5232 else
Chris@19 5233 if test -n "$AS"; then
Chris@19 5234 ac_cv_prog_AS="$AS" # Let the user override the test.
Chris@19 5235 else
Chris@19 5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 5237 for as_dir in $PATH
Chris@19 5238 do
Chris@19 5239 IFS=$as_save_IFS
Chris@19 5240 test -z "$as_dir" && as_dir=.
Chris@19 5241 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 5242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 5243 ac_cv_prog_AS="${ac_tool_prefix}as"
Chris@19 5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 5245 break 2
Chris@19 5246 fi
Chris@19 5247 done
Chris@19 5248 done
Chris@19 5249 IFS=$as_save_IFS
Chris@19 5250
Chris@19 5251 fi
Chris@19 5252 fi
Chris@19 5253 AS=$ac_cv_prog_AS
Chris@19 5254 if test -n "$AS"; then
Chris@19 5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
Chris@19 5256 $as_echo "$AS" >&6; }
Chris@19 5257 else
Chris@19 5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 5259 $as_echo "no" >&6; }
Chris@19 5260 fi
Chris@19 5261
Chris@19 5262
Chris@19 5263 fi
Chris@19 5264 if test -z "$ac_cv_prog_AS"; then
Chris@19 5265 ac_ct_AS=$AS
Chris@19 5266 # Extract the first word of "as", so it can be a program name with args.
Chris@19 5267 set dummy as; ac_word=$2
Chris@19 5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 5269 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 5270 if ${ac_cv_prog_ac_ct_AS+:} false; then :
Chris@19 5271 $as_echo_n "(cached) " >&6
Chris@19 5272 else
Chris@19 5273 if test -n "$ac_ct_AS"; then
Chris@19 5274 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
Chris@19 5275 else
Chris@19 5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 5277 for as_dir in $PATH
Chris@19 5278 do
Chris@19 5279 IFS=$as_save_IFS
Chris@19 5280 test -z "$as_dir" && as_dir=.
Chris@19 5281 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 5282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 5283 ac_cv_prog_ac_ct_AS="as"
Chris@19 5284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 5285 break 2
Chris@19 5286 fi
Chris@19 5287 done
Chris@19 5288 done
Chris@19 5289 IFS=$as_save_IFS
Chris@19 5290
Chris@19 5291 fi
Chris@19 5292 fi
Chris@19 5293 ac_ct_AS=$ac_cv_prog_ac_ct_AS
Chris@19 5294 if test -n "$ac_ct_AS"; then
Chris@19 5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
Chris@19 5296 $as_echo "$ac_ct_AS" >&6; }
Chris@19 5297 else
Chris@19 5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 5299 $as_echo "no" >&6; }
Chris@19 5300 fi
Chris@19 5301
Chris@19 5302 if test "x$ac_ct_AS" = x; then
Chris@19 5303 AS="false"
Chris@19 5304 else
Chris@19 5305 case $cross_compiling:$ac_tool_warned in
Chris@19 5306 yes:)
Chris@19 5307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@19 5308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@19 5309 ac_tool_warned=yes ;;
Chris@19 5310 esac
Chris@19 5311 AS=$ac_ct_AS
Chris@19 5312 fi
Chris@19 5313 else
Chris@19 5314 AS="$ac_cv_prog_AS"
Chris@19 5315 fi
Chris@19 5316
Chris@19 5317 if test -n "$ac_tool_prefix"; then
Chris@19 5318 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
Chris@19 5319 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Chris@19 5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 5321 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 5322 if ${ac_cv_prog_DLLTOOL+:} false; then :
Chris@19 5323 $as_echo_n "(cached) " >&6
Chris@19 5324 else
Chris@19 5325 if test -n "$DLLTOOL"; then
Chris@19 5326 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
Chris@19 5327 else
Chris@19 5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 5329 for as_dir in $PATH
Chris@19 5330 do
Chris@19 5331 IFS=$as_save_IFS
Chris@19 5332 test -z "$as_dir" && as_dir=.
Chris@19 5333 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 5334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 5335 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
Chris@19 5336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 5337 break 2
Chris@19 5338 fi
Chris@19 5339 done
Chris@19 5340 done
Chris@19 5341 IFS=$as_save_IFS
Chris@19 5342
Chris@19 5343 fi
Chris@19 5344 fi
Chris@19 5345 DLLTOOL=$ac_cv_prog_DLLTOOL
Chris@19 5346 if test -n "$DLLTOOL"; then
Chris@19 5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
Chris@19 5348 $as_echo "$DLLTOOL" >&6; }
Chris@19 5349 else
Chris@19 5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 5351 $as_echo "no" >&6; }
Chris@19 5352 fi
Chris@19 5353
Chris@19 5354
Chris@19 5355 fi
Chris@19 5356 if test -z "$ac_cv_prog_DLLTOOL"; then
Chris@19 5357 ac_ct_DLLTOOL=$DLLTOOL
Chris@19 5358 # Extract the first word of "dlltool", so it can be a program name with args.
Chris@19 5359 set dummy dlltool; ac_word=$2
Chris@19 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 5361 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 5362 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
Chris@19 5363 $as_echo_n "(cached) " >&6
Chris@19 5364 else
Chris@19 5365 if test -n "$ac_ct_DLLTOOL"; then
Chris@19 5366 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
Chris@19 5367 else
Chris@19 5368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 5369 for as_dir in $PATH
Chris@19 5370 do
Chris@19 5371 IFS=$as_save_IFS
Chris@19 5372 test -z "$as_dir" && as_dir=.
Chris@19 5373 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 5374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 5375 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
Chris@19 5376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 5377 break 2
Chris@19 5378 fi
Chris@19 5379 done
Chris@19 5380 done
Chris@19 5381 IFS=$as_save_IFS
Chris@19 5382
Chris@19 5383 fi
Chris@19 5384 fi
Chris@19 5385 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
Chris@19 5386 if test -n "$ac_ct_DLLTOOL"; then
Chris@19 5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
Chris@19 5388 $as_echo "$ac_ct_DLLTOOL" >&6; }
Chris@19 5389 else
Chris@19 5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 5391 $as_echo "no" >&6; }
Chris@19 5392 fi
Chris@19 5393
Chris@19 5394 if test "x$ac_ct_DLLTOOL" = x; then
Chris@19 5395 DLLTOOL="false"
Chris@19 5396 else
Chris@19 5397 case $cross_compiling:$ac_tool_warned in
Chris@19 5398 yes:)
Chris@19 5399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@19 5400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@19 5401 ac_tool_warned=yes ;;
Chris@19 5402 esac
Chris@19 5403 DLLTOOL=$ac_ct_DLLTOOL
Chris@19 5404 fi
Chris@19 5405 else
Chris@19 5406 DLLTOOL="$ac_cv_prog_DLLTOOL"
Chris@19 5407 fi
Chris@19 5408
Chris@19 5409 if test -n "$ac_tool_prefix"; then
Chris@19 5410 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
Chris@19 5411 set dummy ${ac_tool_prefix}objdump; ac_word=$2
Chris@19 5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 5413 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 5414 if ${ac_cv_prog_OBJDUMP+:} false; then :
Chris@19 5415 $as_echo_n "(cached) " >&6
Chris@19 5416 else
Chris@19 5417 if test -n "$OBJDUMP"; then
Chris@19 5418 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
Chris@19 5419 else
Chris@19 5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 5421 for as_dir in $PATH
Chris@19 5422 do
Chris@19 5423 IFS=$as_save_IFS
Chris@19 5424 test -z "$as_dir" && as_dir=.
Chris@19 5425 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 5426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 5427 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Chris@19 5428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 5429 break 2
Chris@19 5430 fi
Chris@19 5431 done
Chris@19 5432 done
Chris@19 5433 IFS=$as_save_IFS
Chris@19 5434
Chris@19 5435 fi
Chris@19 5436 fi
Chris@19 5437 OBJDUMP=$ac_cv_prog_OBJDUMP
Chris@19 5438 if test -n "$OBJDUMP"; then
Chris@19 5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
Chris@19 5440 $as_echo "$OBJDUMP" >&6; }
Chris@19 5441 else
Chris@19 5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 5443 $as_echo "no" >&6; }
Chris@19 5444 fi
Chris@19 5445
Chris@19 5446
Chris@19 5447 fi
Chris@19 5448 if test -z "$ac_cv_prog_OBJDUMP"; then
Chris@19 5449 ac_ct_OBJDUMP=$OBJDUMP
Chris@19 5450 # Extract the first word of "objdump", so it can be a program name with args.
Chris@19 5451 set dummy objdump; ac_word=$2
Chris@19 5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 5453 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 5454 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Chris@19 5455 $as_echo_n "(cached) " >&6
Chris@19 5456 else
Chris@19 5457 if test -n "$ac_ct_OBJDUMP"; then
Chris@19 5458 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
Chris@19 5459 else
Chris@19 5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 5461 for as_dir in $PATH
Chris@19 5462 do
Chris@19 5463 IFS=$as_save_IFS
Chris@19 5464 test -z "$as_dir" && as_dir=.
Chris@19 5465 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 5466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 5467 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Chris@19 5468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 5469 break 2
Chris@19 5470 fi
Chris@19 5471 done
Chris@19 5472 done
Chris@19 5473 IFS=$as_save_IFS
Chris@19 5474
Chris@19 5475 fi
Chris@19 5476 fi
Chris@19 5477 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
Chris@19 5478 if test -n "$ac_ct_OBJDUMP"; then
Chris@19 5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
Chris@19 5480 $as_echo "$ac_ct_OBJDUMP" >&6; }
Chris@19 5481 else
Chris@19 5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 5483 $as_echo "no" >&6; }
Chris@19 5484 fi
Chris@19 5485
Chris@19 5486 if test "x$ac_ct_OBJDUMP" = x; then
Chris@19 5487 OBJDUMP="false"
Chris@19 5488 else
Chris@19 5489 case $cross_compiling:$ac_tool_warned in
Chris@19 5490 yes:)
Chris@19 5491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@19 5492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@19 5493 ac_tool_warned=yes ;;
Chris@19 5494 esac
Chris@19 5495 OBJDUMP=$ac_ct_OBJDUMP
Chris@19 5496 fi
Chris@19 5497 else
Chris@19 5498 OBJDUMP="$ac_cv_prog_OBJDUMP"
Chris@19 5499 fi
Chris@19 5500
Chris@19 5501 ;;
Chris@19 5502 esac
Chris@19 5503
Chris@19 5504 test -z "$AS" && AS=as
Chris@19 5505
Chris@19 5506
Chris@19 5507
Chris@19 5508
Chris@19 5509
Chris@19 5510 test -z "$DLLTOOL" && DLLTOOL=dlltool
Chris@19 5511
Chris@19 5512
Chris@19 5513
Chris@19 5514
Chris@19 5515
Chris@19 5516 test -z "$OBJDUMP" && OBJDUMP=objdump
Chris@19 5517
Chris@19 5518
Chris@19 5519
Chris@19 5520
Chris@19 5521
Chris@19 5522
Chris@19 5523
Chris@19 5524 case `pwd` in
Chris@19 5525 *\ * | *\ *)
Chris@19 5526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
Chris@19 5527 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
Chris@19 5528 esac
Chris@19 5529
Chris@19 5530
Chris@19 5531
Chris@19 5532 macro_version='2.4.2'
Chris@19 5533 macro_revision='1.3337'
Chris@19 5534
Chris@19 5535
Chris@19 5536
Chris@19 5537
Chris@19 5538
Chris@19 5539
Chris@19 5540
Chris@19 5541
Chris@19 5542
Chris@19 5543
Chris@19 5544
Chris@19 5545
Chris@19 5546
Chris@19 5547 ltmain="$ac_aux_dir/ltmain.sh"
Chris@19 5548
Chris@19 5549 # Backslashify metacharacters that are still active within
Chris@19 5550 # double-quoted strings.
Chris@19 5551 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
Chris@19 5552
Chris@19 5553 # Same as above, but do not quote variable references.
Chris@19 5554 double_quote_subst='s/\(["`\\]\)/\\\1/g'
Chris@19 5555
Chris@19 5556 # Sed substitution to delay expansion of an escaped shell variable in a
Chris@19 5557 # double_quote_subst'ed string.
Chris@19 5558 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
Chris@19 5559
Chris@19 5560 # Sed substitution to delay expansion of an escaped single quote.
Chris@19 5561 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
Chris@19 5562
Chris@19 5563 # Sed substitution to avoid accidental globbing in evaled expressions
Chris@19 5564 no_glob_subst='s/\*/\\\*/g'
Chris@19 5565
Chris@19 5566 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@19 5567 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
Chris@19 5568 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
Chris@19 5569
Chris@19 5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
Chris@19 5571 $as_echo_n "checking how to print strings... " >&6; }
Chris@19 5572 # Test print first, because it will be a builtin if present.
Chris@19 5573 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
Chris@19 5574 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
Chris@19 5575 ECHO='print -r --'
Chris@19 5576 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
Chris@19 5577 ECHO='printf %s\n'
Chris@19 5578 else
Chris@19 5579 # Use this function as a fallback that always works.
Chris@19 5580 func_fallback_echo ()
Chris@19 5581 {
Chris@19 5582 eval 'cat <<_LTECHO_EOF
Chris@19 5583 $1
Chris@19 5584 _LTECHO_EOF'
Chris@19 5585 }
Chris@19 5586 ECHO='func_fallback_echo'
Chris@19 5587 fi
Chris@19 5588
Chris@19 5589 # func_echo_all arg...
Chris@19 5590 # Invoke $ECHO with all args, space-separated.
Chris@19 5591 func_echo_all ()
Chris@19 5592 {
Chris@19 5593 $ECHO ""
Chris@19 5594 }
Chris@19 5595
Chris@19 5596 case "$ECHO" in
Chris@19 5597 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
Chris@19 5598 $as_echo "printf" >&6; } ;;
Chris@19 5599 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
Chris@19 5600 $as_echo "print -r" >&6; } ;;
Chris@19 5601 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
Chris@19 5602 $as_echo "cat" >&6; } ;;
Chris@19 5603 esac
Chris@19 5604
Chris@19 5605
Chris@19 5606
Chris@19 5607
Chris@19 5608
Chris@19 5609
Chris@19 5610
Chris@19 5611
Chris@19 5612
Chris@19 5613
Chris@19 5614
Chris@19 5615
Chris@19 5616
Chris@19 5617
Chris@19 5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
Chris@19 5619 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
Chris@19 5620 if ${ac_cv_path_SED+:} false; then :
Chris@19 5621 $as_echo_n "(cached) " >&6
Chris@19 5622 else
Chris@19 5623 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
Chris@19 5624 for ac_i in 1 2 3 4 5 6 7; do
Chris@19 5625 ac_script="$ac_script$as_nl$ac_script"
Chris@19 5626 done
Chris@19 5627 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
Chris@19 5628 { ac_script=; unset ac_script;}
Chris@19 5629 if test -z "$SED"; then
Chris@19 5630 ac_path_SED_found=false
Chris@19 5631 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@19 5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 5633 for as_dir in $PATH
Chris@19 5634 do
Chris@19 5635 IFS=$as_save_IFS
Chris@19 5636 test -z "$as_dir" && as_dir=.
Chris@19 5637 for ac_prog in sed gsed; do
Chris@19 5638 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 5639 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Chris@19 5640 as_fn_executable_p "$ac_path_SED" || continue
Chris@19 5641 # Check for GNU ac_path_SED and select it if it is found.
Chris@19 5642 # Check for GNU $ac_path_SED
Chris@19 5643 case `"$ac_path_SED" --version 2>&1` in
Chris@19 5644 *GNU*)
Chris@19 5645 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
Chris@19 5646 *)
Chris@19 5647 ac_count=0
Chris@19 5648 $as_echo_n 0123456789 >"conftest.in"
Chris@19 5649 while :
Chris@19 5650 do
Chris@19 5651 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@19 5652 mv "conftest.tmp" "conftest.in"
Chris@19 5653 cp "conftest.in" "conftest.nl"
Chris@19 5654 $as_echo '' >> "conftest.nl"
Chris@19 5655 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@19 5656 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@19 5657 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@19 5658 if test $ac_count -gt ${ac_path_SED_max-0}; then
Chris@19 5659 # Best one so far, save it but keep looking for a better one
Chris@19 5660 ac_cv_path_SED="$ac_path_SED"
Chris@19 5661 ac_path_SED_max=$ac_count
Chris@19 5662 fi
Chris@19 5663 # 10*(2^10) chars as input seems more than enough
Chris@19 5664 test $ac_count -gt 10 && break
Chris@19 5665 done
Chris@19 5666 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@19 5667 esac
Chris@19 5668
Chris@19 5669 $ac_path_SED_found && break 3
Chris@19 5670 done
Chris@19 5671 done
Chris@19 5672 done
Chris@19 5673 IFS=$as_save_IFS
Chris@19 5674 if test -z "$ac_cv_path_SED"; then
Chris@19 5675 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Chris@19 5676 fi
Chris@19 5677 else
Chris@19 5678 ac_cv_path_SED=$SED
Chris@19 5679 fi
Chris@19 5680
Chris@19 5681 fi
Chris@19 5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
Chris@19 5683 $as_echo "$ac_cv_path_SED" >&6; }
Chris@19 5684 SED="$ac_cv_path_SED"
Chris@19 5685 rm -f conftest.sed
Chris@19 5686
Chris@19 5687 test -z "$SED" && SED=sed
Chris@19 5688 Xsed="$SED -e 1s/^X//"
Chris@19 5689
Chris@19 5690
Chris@19 5691
Chris@19 5692
Chris@19 5693
Chris@19 5694
Chris@19 5695
Chris@19 5696
Chris@19 5697
Chris@19 5698
Chris@19 5699
Chris@19 5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Chris@19 5701 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Chris@19 5702 if ${ac_cv_path_GREP+:} false; then :
Chris@19 5703 $as_echo_n "(cached) " >&6
Chris@19 5704 else
Chris@19 5705 if test -z "$GREP"; then
Chris@19 5706 ac_path_GREP_found=false
Chris@19 5707 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@19 5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 5709 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@19 5710 do
Chris@19 5711 IFS=$as_save_IFS
Chris@19 5712 test -z "$as_dir" && as_dir=.
Chris@19 5713 for ac_prog in grep ggrep; do
Chris@19 5714 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 5715 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@19 5716 as_fn_executable_p "$ac_path_GREP" || continue
Chris@19 5717 # Check for GNU ac_path_GREP and select it if it is found.
Chris@19 5718 # Check for GNU $ac_path_GREP
Chris@19 5719 case `"$ac_path_GREP" --version 2>&1` in
Chris@19 5720 *GNU*)
Chris@19 5721 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
Chris@19 5722 *)
Chris@19 5723 ac_count=0
Chris@19 5724 $as_echo_n 0123456789 >"conftest.in"
Chris@19 5725 while :
Chris@19 5726 do
Chris@19 5727 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@19 5728 mv "conftest.tmp" "conftest.in"
Chris@19 5729 cp "conftest.in" "conftest.nl"
Chris@19 5730 $as_echo 'GREP' >> "conftest.nl"
Chris@19 5731 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@19 5732 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@19 5733 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@19 5734 if test $ac_count -gt ${ac_path_GREP_max-0}; then
Chris@19 5735 # Best one so far, save it but keep looking for a better one
Chris@19 5736 ac_cv_path_GREP="$ac_path_GREP"
Chris@19 5737 ac_path_GREP_max=$ac_count
Chris@19 5738 fi
Chris@19 5739 # 10*(2^10) chars as input seems more than enough
Chris@19 5740 test $ac_count -gt 10 && break
Chris@19 5741 done
Chris@19 5742 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@19 5743 esac
Chris@19 5744
Chris@19 5745 $ac_path_GREP_found && break 3
Chris@19 5746 done
Chris@19 5747 done
Chris@19 5748 done
Chris@19 5749 IFS=$as_save_IFS
Chris@19 5750 if test -z "$ac_cv_path_GREP"; then
Chris@19 5751 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@19 5752 fi
Chris@19 5753 else
Chris@19 5754 ac_cv_path_GREP=$GREP
Chris@19 5755 fi
Chris@19 5756
Chris@19 5757 fi
Chris@19 5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Chris@19 5759 $as_echo "$ac_cv_path_GREP" >&6; }
Chris@19 5760 GREP="$ac_cv_path_GREP"
Chris@19 5761
Chris@19 5762
Chris@19 5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Chris@19 5764 $as_echo_n "checking for egrep... " >&6; }
Chris@19 5765 if ${ac_cv_path_EGREP+:} false; then :
Chris@19 5766 $as_echo_n "(cached) " >&6
Chris@19 5767 else
Chris@19 5768 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
Chris@19 5769 then ac_cv_path_EGREP="$GREP -E"
Chris@19 5770 else
Chris@19 5771 if test -z "$EGREP"; then
Chris@19 5772 ac_path_EGREP_found=false
Chris@19 5773 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@19 5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 5775 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@19 5776 do
Chris@19 5777 IFS=$as_save_IFS
Chris@19 5778 test -z "$as_dir" && as_dir=.
Chris@19 5779 for ac_prog in egrep; do
Chris@19 5780 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 5781 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@19 5782 as_fn_executable_p "$ac_path_EGREP" || continue
Chris@19 5783 # Check for GNU ac_path_EGREP and select it if it is found.
Chris@19 5784 # Check for GNU $ac_path_EGREP
Chris@19 5785 case `"$ac_path_EGREP" --version 2>&1` in
Chris@19 5786 *GNU*)
Chris@19 5787 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
Chris@19 5788 *)
Chris@19 5789 ac_count=0
Chris@19 5790 $as_echo_n 0123456789 >"conftest.in"
Chris@19 5791 while :
Chris@19 5792 do
Chris@19 5793 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@19 5794 mv "conftest.tmp" "conftest.in"
Chris@19 5795 cp "conftest.in" "conftest.nl"
Chris@19 5796 $as_echo 'EGREP' >> "conftest.nl"
Chris@19 5797 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@19 5798 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@19 5799 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@19 5800 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
Chris@19 5801 # Best one so far, save it but keep looking for a better one
Chris@19 5802 ac_cv_path_EGREP="$ac_path_EGREP"
Chris@19 5803 ac_path_EGREP_max=$ac_count
Chris@19 5804 fi
Chris@19 5805 # 10*(2^10) chars as input seems more than enough
Chris@19 5806 test $ac_count -gt 10 && break
Chris@19 5807 done
Chris@19 5808 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@19 5809 esac
Chris@19 5810
Chris@19 5811 $ac_path_EGREP_found && break 3
Chris@19 5812 done
Chris@19 5813 done
Chris@19 5814 done
Chris@19 5815 IFS=$as_save_IFS
Chris@19 5816 if test -z "$ac_cv_path_EGREP"; then
Chris@19 5817 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@19 5818 fi
Chris@19 5819 else
Chris@19 5820 ac_cv_path_EGREP=$EGREP
Chris@19 5821 fi
Chris@19 5822
Chris@19 5823 fi
Chris@19 5824 fi
Chris@19 5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Chris@19 5826 $as_echo "$ac_cv_path_EGREP" >&6; }
Chris@19 5827 EGREP="$ac_cv_path_EGREP"
Chris@19 5828
Chris@19 5829
Chris@19 5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
Chris@19 5831 $as_echo_n "checking for fgrep... " >&6; }
Chris@19 5832 if ${ac_cv_path_FGREP+:} false; then :
Chris@19 5833 $as_echo_n "(cached) " >&6
Chris@19 5834 else
Chris@19 5835 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
Chris@19 5836 then ac_cv_path_FGREP="$GREP -F"
Chris@19 5837 else
Chris@19 5838 if test -z "$FGREP"; then
Chris@19 5839 ac_path_FGREP_found=false
Chris@19 5840 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@19 5841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 5842 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@19 5843 do
Chris@19 5844 IFS=$as_save_IFS
Chris@19 5845 test -z "$as_dir" && as_dir=.
Chris@19 5846 for ac_prog in fgrep; do
Chris@19 5847 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 5848 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@19 5849 as_fn_executable_p "$ac_path_FGREP" || continue
Chris@19 5850 # Check for GNU ac_path_FGREP and select it if it is found.
Chris@19 5851 # Check for GNU $ac_path_FGREP
Chris@19 5852 case `"$ac_path_FGREP" --version 2>&1` in
Chris@19 5853 *GNU*)
Chris@19 5854 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
Chris@19 5855 *)
Chris@19 5856 ac_count=0
Chris@19 5857 $as_echo_n 0123456789 >"conftest.in"
Chris@19 5858 while :
Chris@19 5859 do
Chris@19 5860 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@19 5861 mv "conftest.tmp" "conftest.in"
Chris@19 5862 cp "conftest.in" "conftest.nl"
Chris@19 5863 $as_echo 'FGREP' >> "conftest.nl"
Chris@19 5864 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@19 5865 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@19 5866 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@19 5867 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
Chris@19 5868 # Best one so far, save it but keep looking for a better one
Chris@19 5869 ac_cv_path_FGREP="$ac_path_FGREP"
Chris@19 5870 ac_path_FGREP_max=$ac_count
Chris@19 5871 fi
Chris@19 5872 # 10*(2^10) chars as input seems more than enough
Chris@19 5873 test $ac_count -gt 10 && break
Chris@19 5874 done
Chris@19 5875 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@19 5876 esac
Chris@19 5877
Chris@19 5878 $ac_path_FGREP_found && break 3
Chris@19 5879 done
Chris@19 5880 done
Chris@19 5881 done
Chris@19 5882 IFS=$as_save_IFS
Chris@19 5883 if test -z "$ac_cv_path_FGREP"; then
Chris@19 5884 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@19 5885 fi
Chris@19 5886 else
Chris@19 5887 ac_cv_path_FGREP=$FGREP
Chris@19 5888 fi
Chris@19 5889
Chris@19 5890 fi
Chris@19 5891 fi
Chris@19 5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
Chris@19 5893 $as_echo "$ac_cv_path_FGREP" >&6; }
Chris@19 5894 FGREP="$ac_cv_path_FGREP"
Chris@19 5895
Chris@19 5896
Chris@19 5897 test -z "$GREP" && GREP=grep
Chris@19 5898
Chris@19 5899
Chris@19 5900
Chris@19 5901
Chris@19 5902
Chris@19 5903
Chris@19 5904
Chris@19 5905
Chris@19 5906
Chris@19 5907
Chris@19 5908
Chris@19 5909
Chris@19 5910
Chris@19 5911
Chris@19 5912
Chris@19 5913
Chris@19 5914
Chris@19 5915
Chris@19 5916
Chris@19 5917 # Check whether --with-gnu-ld was given.
Chris@19 5918 if test "${with_gnu_ld+set}" = set; then :
Chris@19 5919 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Chris@19 5920 else
Chris@19 5921 with_gnu_ld=no
Chris@19 5922 fi
Chris@19 5923
Chris@19 5924 ac_prog=ld
Chris@19 5925 if test "$GCC" = yes; then
Chris@19 5926 # Check if gcc -print-prog-name=ld gives a path.
Chris@19 5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
Chris@19 5928 $as_echo_n "checking for ld used by $CC... " >&6; }
Chris@19 5929 case $host in
Chris@19 5930 *-*-mingw*)
Chris@19 5931 # gcc leaves a trailing carriage return which upsets mingw
Chris@19 5932 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
Chris@19 5933 *)
Chris@19 5934 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
Chris@19 5935 esac
Chris@19 5936 case $ac_prog in
Chris@19 5937 # Accept absolute paths.
Chris@19 5938 [\\/]* | ?:[\\/]*)
Chris@19 5939 re_direlt='/[^/][^/]*/\.\./'
Chris@19 5940 # Canonicalize the pathname of ld
Chris@19 5941 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
Chris@19 5942 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
Chris@19 5943 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Chris@19 5944 done
Chris@19 5945 test -z "$LD" && LD="$ac_prog"
Chris@19 5946 ;;
Chris@19 5947 "")
Chris@19 5948 # If it fails, then pretend we aren't using GCC.
Chris@19 5949 ac_prog=ld
Chris@19 5950 ;;
Chris@19 5951 *)
Chris@19 5952 # If it is relative, then search for the first ld in PATH.
Chris@19 5953 with_gnu_ld=unknown
Chris@19 5954 ;;
Chris@19 5955 esac
Chris@19 5956 elif test "$with_gnu_ld" = yes; then
Chris@19 5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Chris@19 5958 $as_echo_n "checking for GNU ld... " >&6; }
Chris@19 5959 else
Chris@19 5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Chris@19 5961 $as_echo_n "checking for non-GNU ld... " >&6; }
Chris@19 5962 fi
Chris@19 5963 if ${lt_cv_path_LD+:} false; then :
Chris@19 5964 $as_echo_n "(cached) " >&6
Chris@19 5965 else
Chris@19 5966 if test -z "$LD"; then
Chris@19 5967 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@19 5968 for ac_dir in $PATH; do
Chris@19 5969 IFS="$lt_save_ifs"
Chris@19 5970 test -z "$ac_dir" && ac_dir=.
Chris@19 5971 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Chris@19 5972 lt_cv_path_LD="$ac_dir/$ac_prog"
Chris@19 5973 # Check to see if the program is GNU ld. I'd rather use --version,
Chris@19 5974 # but apparently some variants of GNU ld only accept -v.
Chris@19 5975 # Break only if it was the GNU/non-GNU ld that we prefer.
Chris@19 5976 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
Chris@19 5977 *GNU* | *'with BFD'*)
Chris@19 5978 test "$with_gnu_ld" != no && break
Chris@19 5979 ;;
Chris@19 5980 *)
Chris@19 5981 test "$with_gnu_ld" != yes && break
Chris@19 5982 ;;
Chris@19 5983 esac
Chris@19 5984 fi
Chris@19 5985 done
Chris@19 5986 IFS="$lt_save_ifs"
Chris@19 5987 else
Chris@19 5988 lt_cv_path_LD="$LD" # Let the user override the test with a path.
Chris@19 5989 fi
Chris@19 5990 fi
Chris@19 5991
Chris@19 5992 LD="$lt_cv_path_LD"
Chris@19 5993 if test -n "$LD"; then
Chris@19 5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Chris@19 5995 $as_echo "$LD" >&6; }
Chris@19 5996 else
Chris@19 5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 5998 $as_echo "no" >&6; }
Chris@19 5999 fi
Chris@19 6000 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Chris@19 6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Chris@19 6002 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Chris@19 6003 if ${lt_cv_prog_gnu_ld+:} false; then :
Chris@19 6004 $as_echo_n "(cached) " >&6
Chris@19 6005 else
Chris@19 6006 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Chris@19 6007 case `$LD -v 2>&1 </dev/null` in
Chris@19 6008 *GNU* | *'with BFD'*)
Chris@19 6009 lt_cv_prog_gnu_ld=yes
Chris@19 6010 ;;
Chris@19 6011 *)
Chris@19 6012 lt_cv_prog_gnu_ld=no
Chris@19 6013 ;;
Chris@19 6014 esac
Chris@19 6015 fi
Chris@19 6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
Chris@19 6017 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
Chris@19 6018 with_gnu_ld=$lt_cv_prog_gnu_ld
Chris@19 6019
Chris@19 6020
Chris@19 6021
Chris@19 6022
Chris@19 6023
Chris@19 6024
Chris@19 6025
Chris@19 6026
Chris@19 6027
Chris@19 6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
Chris@19 6029 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Chris@19 6030 if ${lt_cv_path_NM+:} false; then :
Chris@19 6031 $as_echo_n "(cached) " >&6
Chris@19 6032 else
Chris@19 6033 if test -n "$NM"; then
Chris@19 6034 # Let the user override the test.
Chris@19 6035 lt_cv_path_NM="$NM"
Chris@19 6036 else
Chris@19 6037 lt_nm_to_check="${ac_tool_prefix}nm"
Chris@19 6038 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
Chris@19 6039 lt_nm_to_check="$lt_nm_to_check nm"
Chris@19 6040 fi
Chris@19 6041 for lt_tmp_nm in $lt_nm_to_check; do
Chris@19 6042 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@19 6043 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
Chris@19 6044 IFS="$lt_save_ifs"
Chris@19 6045 test -z "$ac_dir" && ac_dir=.
Chris@19 6046 tmp_nm="$ac_dir/$lt_tmp_nm"
Chris@19 6047 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
Chris@19 6048 # Check to see if the nm accepts a BSD-compat flag.
Chris@19 6049 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
Chris@19 6050 # nm: unknown option "B" ignored
Chris@19 6051 # Tru64's nm complains that /dev/null is an invalid object file
Chris@19 6052 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
Chris@19 6053 */dev/null* | *'Invalid file or object type'*)
Chris@19 6054 lt_cv_path_NM="$tmp_nm -B"
Chris@19 6055 break
Chris@19 6056 ;;
Chris@19 6057 *)
Chris@19 6058 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
Chris@19 6059 */dev/null*)
Chris@19 6060 lt_cv_path_NM="$tmp_nm -p"
Chris@19 6061 break
Chris@19 6062 ;;
Chris@19 6063 *)
Chris@19 6064 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
Chris@19 6065 continue # so that we can try to find one that supports BSD flags
Chris@19 6066 ;;
Chris@19 6067 esac
Chris@19 6068 ;;
Chris@19 6069 esac
Chris@19 6070 fi
Chris@19 6071 done
Chris@19 6072 IFS="$lt_save_ifs"
Chris@19 6073 done
Chris@19 6074 : ${lt_cv_path_NM=no}
Chris@19 6075 fi
Chris@19 6076 fi
Chris@19 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
Chris@19 6078 $as_echo "$lt_cv_path_NM" >&6; }
Chris@19 6079 if test "$lt_cv_path_NM" != "no"; then
Chris@19 6080 NM="$lt_cv_path_NM"
Chris@19 6081 else
Chris@19 6082 # Didn't find any BSD compatible name lister, look for dumpbin.
Chris@19 6083 if test -n "$DUMPBIN"; then :
Chris@19 6084 # Let the user override the test.
Chris@19 6085 else
Chris@19 6086 if test -n "$ac_tool_prefix"; then
Chris@19 6087 for ac_prog in dumpbin "link -dump"
Chris@19 6088 do
Chris@19 6089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@19 6090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@19 6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 6092 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 6093 if ${ac_cv_prog_DUMPBIN+:} false; then :
Chris@19 6094 $as_echo_n "(cached) " >&6
Chris@19 6095 else
Chris@19 6096 if test -n "$DUMPBIN"; then
Chris@19 6097 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
Chris@19 6098 else
Chris@19 6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 6100 for as_dir in $PATH
Chris@19 6101 do
Chris@19 6102 IFS=$as_save_IFS
Chris@19 6103 test -z "$as_dir" && as_dir=.
Chris@19 6104 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 6105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 6106 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Chris@19 6107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 6108 break 2
Chris@19 6109 fi
Chris@19 6110 done
Chris@19 6111 done
Chris@19 6112 IFS=$as_save_IFS
Chris@19 6113
Chris@19 6114 fi
Chris@19 6115 fi
Chris@19 6116 DUMPBIN=$ac_cv_prog_DUMPBIN
Chris@19 6117 if test -n "$DUMPBIN"; then
Chris@19 6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
Chris@19 6119 $as_echo "$DUMPBIN" >&6; }
Chris@19 6120 else
Chris@19 6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 6122 $as_echo "no" >&6; }
Chris@19 6123 fi
Chris@19 6124
Chris@19 6125
Chris@19 6126 test -n "$DUMPBIN" && break
Chris@19 6127 done
Chris@19 6128 fi
Chris@19 6129 if test -z "$DUMPBIN"; then
Chris@19 6130 ac_ct_DUMPBIN=$DUMPBIN
Chris@19 6131 for ac_prog in dumpbin "link -dump"
Chris@19 6132 do
Chris@19 6133 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@19 6134 set dummy $ac_prog; ac_word=$2
Chris@19 6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 6136 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 6137 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Chris@19 6138 $as_echo_n "(cached) " >&6
Chris@19 6139 else
Chris@19 6140 if test -n "$ac_ct_DUMPBIN"; then
Chris@19 6141 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
Chris@19 6142 else
Chris@19 6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 6144 for as_dir in $PATH
Chris@19 6145 do
Chris@19 6146 IFS=$as_save_IFS
Chris@19 6147 test -z "$as_dir" && as_dir=.
Chris@19 6148 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 6149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 6150 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Chris@19 6151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 6152 break 2
Chris@19 6153 fi
Chris@19 6154 done
Chris@19 6155 done
Chris@19 6156 IFS=$as_save_IFS
Chris@19 6157
Chris@19 6158 fi
Chris@19 6159 fi
Chris@19 6160 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
Chris@19 6161 if test -n "$ac_ct_DUMPBIN"; then
Chris@19 6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
Chris@19 6163 $as_echo "$ac_ct_DUMPBIN" >&6; }
Chris@19 6164 else
Chris@19 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 6166 $as_echo "no" >&6; }
Chris@19 6167 fi
Chris@19 6168
Chris@19 6169
Chris@19 6170 test -n "$ac_ct_DUMPBIN" && break
Chris@19 6171 done
Chris@19 6172
Chris@19 6173 if test "x$ac_ct_DUMPBIN" = x; then
Chris@19 6174 DUMPBIN=":"
Chris@19 6175 else
Chris@19 6176 case $cross_compiling:$ac_tool_warned in
Chris@19 6177 yes:)
Chris@19 6178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@19 6179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@19 6180 ac_tool_warned=yes ;;
Chris@19 6181 esac
Chris@19 6182 DUMPBIN=$ac_ct_DUMPBIN
Chris@19 6183 fi
Chris@19 6184 fi
Chris@19 6185
Chris@19 6186 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
Chris@19 6187 *COFF*)
Chris@19 6188 DUMPBIN="$DUMPBIN -symbols"
Chris@19 6189 ;;
Chris@19 6190 *)
Chris@19 6191 DUMPBIN=:
Chris@19 6192 ;;
Chris@19 6193 esac
Chris@19 6194 fi
Chris@19 6195
Chris@19 6196 if test "$DUMPBIN" != ":"; then
Chris@19 6197 NM="$DUMPBIN"
Chris@19 6198 fi
Chris@19 6199 fi
Chris@19 6200 test -z "$NM" && NM=nm
Chris@19 6201
Chris@19 6202
Chris@19 6203
Chris@19 6204
Chris@19 6205
Chris@19 6206
Chris@19 6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
Chris@19 6208 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
Chris@19 6209 if ${lt_cv_nm_interface+:} false; then :
Chris@19 6210 $as_echo_n "(cached) " >&6
Chris@19 6211 else
Chris@19 6212 lt_cv_nm_interface="BSD nm"
Chris@19 6213 echo "int some_variable = 0;" > conftest.$ac_ext
Chris@19 6214 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
Chris@19 6215 (eval "$ac_compile" 2>conftest.err)
Chris@19 6216 cat conftest.err >&5
Chris@19 6217 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Chris@19 6218 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
Chris@19 6219 cat conftest.err >&5
Chris@19 6220 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
Chris@19 6221 cat conftest.out >&5
Chris@19 6222 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
Chris@19 6223 lt_cv_nm_interface="MS dumpbin"
Chris@19 6224 fi
Chris@19 6225 rm -f conftest*
Chris@19 6226 fi
Chris@19 6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
Chris@19 6228 $as_echo "$lt_cv_nm_interface" >&6; }
Chris@19 6229
Chris@19 6230 # find the maximum length of command line arguments
Chris@19 6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
Chris@19 6232 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
Chris@19 6233 if ${lt_cv_sys_max_cmd_len+:} false; then :
Chris@19 6234 $as_echo_n "(cached) " >&6
Chris@19 6235 else
Chris@19 6236 i=0
Chris@19 6237 teststring="ABCD"
Chris@19 6238
Chris@19 6239 case $build_os in
Chris@19 6240 msdosdjgpp*)
Chris@19 6241 # On DJGPP, this test can blow up pretty badly due to problems in libc
Chris@19 6242 # (any single argument exceeding 2000 bytes causes a buffer overrun
Chris@19 6243 # during glob expansion). Even if it were fixed, the result of this
Chris@19 6244 # check would be larger than it should be.
Chris@19 6245 lt_cv_sys_max_cmd_len=12288; # 12K is about right
Chris@19 6246 ;;
Chris@19 6247
Chris@19 6248 gnu*)
Chris@19 6249 # Under GNU Hurd, this test is not required because there is
Chris@19 6250 # no limit to the length of command line arguments.
Chris@19 6251 # Libtool will interpret -1 as no limit whatsoever
Chris@19 6252 lt_cv_sys_max_cmd_len=-1;
Chris@19 6253 ;;
Chris@19 6254
Chris@19 6255 cygwin* | mingw* | cegcc*)
Chris@19 6256 # On Win9x/ME, this test blows up -- it succeeds, but takes
Chris@19 6257 # about 5 minutes as the teststring grows exponentially.
Chris@19 6258 # Worse, since 9x/ME are not pre-emptively multitasking,
Chris@19 6259 # you end up with a "frozen" computer, even though with patience
Chris@19 6260 # the test eventually succeeds (with a max line length of 256k).
Chris@19 6261 # Instead, let's just punt: use the minimum linelength reported by
Chris@19 6262 # all of the supported platforms: 8192 (on NT/2K/XP).
Chris@19 6263 lt_cv_sys_max_cmd_len=8192;
Chris@19 6264 ;;
Chris@19 6265
Chris@19 6266 mint*)
Chris@19 6267 # On MiNT this can take a long time and run out of memory.
Chris@19 6268 lt_cv_sys_max_cmd_len=8192;
Chris@19 6269 ;;
Chris@19 6270
Chris@19 6271 amigaos*)
Chris@19 6272 # On AmigaOS with pdksh, this test takes hours, literally.
Chris@19 6273 # So we just punt and use a minimum line length of 8192.
Chris@19 6274 lt_cv_sys_max_cmd_len=8192;
Chris@19 6275 ;;
Chris@19 6276
Chris@19 6277 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Chris@19 6278 # This has been around since 386BSD, at least. Likely further.
Chris@19 6279 if test -x /sbin/sysctl; then
Chris@19 6280 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
Chris@19 6281 elif test -x /usr/sbin/sysctl; then
Chris@19 6282 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
Chris@19 6283 else
Chris@19 6284 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Chris@19 6285 fi
Chris@19 6286 # And add a safety zone
Chris@19 6287 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Chris@19 6288 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Chris@19 6289 ;;
Chris@19 6290
Chris@19 6291 interix*)
Chris@19 6292 # We know the value 262144 and hardcode it with a safety zone (like BSD)
Chris@19 6293 lt_cv_sys_max_cmd_len=196608
Chris@19 6294 ;;
Chris@19 6295
Chris@19 6296 os2*)
Chris@19 6297 # The test takes a long time on OS/2.
Chris@19 6298 lt_cv_sys_max_cmd_len=8192
Chris@19 6299 ;;
Chris@19 6300
Chris@19 6301 osf*)
Chris@19 6302 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
Chris@19 6303 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
Chris@19 6304 # nice to cause kernel panics so lets avoid the loop below.
Chris@19 6305 # First set a reasonable default.
Chris@19 6306 lt_cv_sys_max_cmd_len=16384
Chris@19 6307 #
Chris@19 6308 if test -x /sbin/sysconfig; then
Chris@19 6309 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
Chris@19 6310 *1*) lt_cv_sys_max_cmd_len=-1 ;;
Chris@19 6311 esac
Chris@19 6312 fi
Chris@19 6313 ;;
Chris@19 6314 sco3.2v5*)
Chris@19 6315 lt_cv_sys_max_cmd_len=102400
Chris@19 6316 ;;
Chris@19 6317 sysv5* | sco5v6* | sysv4.2uw2*)
Chris@19 6318 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
Chris@19 6319 if test -n "$kargmax"; then
Chris@19 6320 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
Chris@19 6321 else
Chris@19 6322 lt_cv_sys_max_cmd_len=32768
Chris@19 6323 fi
Chris@19 6324 ;;
Chris@19 6325 *)
Chris@19 6326 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
Chris@19 6327 if test -n "$lt_cv_sys_max_cmd_len"; then
Chris@19 6328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Chris@19 6329 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Chris@19 6330 else
Chris@19 6331 # Make teststring a little bigger before we do anything with it.
Chris@19 6332 # a 1K string should be a reasonable start.
Chris@19 6333 for i in 1 2 3 4 5 6 7 8 ; do
Chris@19 6334 teststring=$teststring$teststring
Chris@19 6335 done
Chris@19 6336 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
Chris@19 6337 # If test is not a shell built-in, we'll probably end up computing a
Chris@19 6338 # maximum length that is only half of the actual maximum length, but
Chris@19 6339 # we can't tell.
Chris@19 6340 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
Chris@19 6341 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Chris@19 6342 test $i != 17 # 1/2 MB should be enough
Chris@19 6343 do
Chris@19 6344 i=`expr $i + 1`
Chris@19 6345 teststring=$teststring$teststring
Chris@19 6346 done
Chris@19 6347 # Only check the string length outside the loop.
Chris@19 6348 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
Chris@19 6349 teststring=
Chris@19 6350 # Add a significant safety factor because C++ compilers can tack on
Chris@19 6351 # massive amounts of additional arguments before passing them to the
Chris@19 6352 # linker. It appears as though 1/2 is a usable value.
Chris@19 6353 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
Chris@19 6354 fi
Chris@19 6355 ;;
Chris@19 6356 esac
Chris@19 6357
Chris@19 6358 fi
Chris@19 6359
Chris@19 6360 if test -n $lt_cv_sys_max_cmd_len ; then
Chris@19 6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
Chris@19 6362 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
Chris@19 6363 else
Chris@19 6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
Chris@19 6365 $as_echo "none" >&6; }
Chris@19 6366 fi
Chris@19 6367 max_cmd_len=$lt_cv_sys_max_cmd_len
Chris@19 6368
Chris@19 6369
Chris@19 6370
Chris@19 6371
Chris@19 6372
Chris@19 6373
Chris@19 6374 : ${CP="cp -f"}
Chris@19 6375 : ${MV="mv -f"}
Chris@19 6376 : ${RM="rm -f"}
Chris@19 6377
Chris@19 6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
Chris@19 6379 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
Chris@19 6380 # Try some XSI features
Chris@19 6381 xsi_shell=no
Chris@19 6382 ( _lt_dummy="a/b/c"
Chris@19 6383 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
Chris@19 6384 = c,a/b,b/c, \
Chris@19 6385 && eval 'test $(( 1 + 1 )) -eq 2 \
Chris@19 6386 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
Chris@19 6387 && xsi_shell=yes
Chris@19 6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
Chris@19 6389 $as_echo "$xsi_shell" >&6; }
Chris@19 6390
Chris@19 6391
Chris@19 6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
Chris@19 6393 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
Chris@19 6394 lt_shell_append=no
Chris@19 6395 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
Chris@19 6396 >/dev/null 2>&1 \
Chris@19 6397 && lt_shell_append=yes
Chris@19 6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
Chris@19 6399 $as_echo "$lt_shell_append" >&6; }
Chris@19 6400
Chris@19 6401
Chris@19 6402 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Chris@19 6403 lt_unset=unset
Chris@19 6404 else
Chris@19 6405 lt_unset=false
Chris@19 6406 fi
Chris@19 6407
Chris@19 6408
Chris@19 6409
Chris@19 6410
Chris@19 6411
Chris@19 6412 # test EBCDIC or ASCII
Chris@19 6413 case `echo X|tr X '\101'` in
Chris@19 6414 A) # ASCII based system
Chris@19 6415 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
Chris@19 6416 lt_SP2NL='tr \040 \012'
Chris@19 6417 lt_NL2SP='tr \015\012 \040\040'
Chris@19 6418 ;;
Chris@19 6419 *) # EBCDIC based system
Chris@19 6420 lt_SP2NL='tr \100 \n'
Chris@19 6421 lt_NL2SP='tr \r\n \100\100'
Chris@19 6422 ;;
Chris@19 6423 esac
Chris@19 6424
Chris@19 6425
Chris@19 6426
Chris@19 6427
Chris@19 6428
Chris@19 6429
Chris@19 6430
Chris@19 6431
Chris@19 6432
Chris@19 6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
Chris@19 6434 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
Chris@19 6435 if ${lt_cv_to_host_file_cmd+:} false; then :
Chris@19 6436 $as_echo_n "(cached) " >&6
Chris@19 6437 else
Chris@19 6438 case $host in
Chris@19 6439 *-*-mingw* )
Chris@19 6440 case $build in
Chris@19 6441 *-*-mingw* ) # actually msys
Chris@19 6442 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
Chris@19 6443 ;;
Chris@19 6444 *-*-cygwin* )
Chris@19 6445 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
Chris@19 6446 ;;
Chris@19 6447 * ) # otherwise, assume *nix
Chris@19 6448 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
Chris@19 6449 ;;
Chris@19 6450 esac
Chris@19 6451 ;;
Chris@19 6452 *-*-cygwin* )
Chris@19 6453 case $build in
Chris@19 6454 *-*-mingw* ) # actually msys
Chris@19 6455 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
Chris@19 6456 ;;
Chris@19 6457 *-*-cygwin* )
Chris@19 6458 lt_cv_to_host_file_cmd=func_convert_file_noop
Chris@19 6459 ;;
Chris@19 6460 * ) # otherwise, assume *nix
Chris@19 6461 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
Chris@19 6462 ;;
Chris@19 6463 esac
Chris@19 6464 ;;
Chris@19 6465 * ) # unhandled hosts (and "normal" native builds)
Chris@19 6466 lt_cv_to_host_file_cmd=func_convert_file_noop
Chris@19 6467 ;;
Chris@19 6468 esac
Chris@19 6469
Chris@19 6470 fi
Chris@19 6471
Chris@19 6472 to_host_file_cmd=$lt_cv_to_host_file_cmd
Chris@19 6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
Chris@19 6474 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
Chris@19 6475
Chris@19 6476
Chris@19 6477
Chris@19 6478
Chris@19 6479
Chris@19 6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
Chris@19 6481 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
Chris@19 6482 if ${lt_cv_to_tool_file_cmd+:} false; then :
Chris@19 6483 $as_echo_n "(cached) " >&6
Chris@19 6484 else
Chris@19 6485 #assume ordinary cross tools, or native build.
Chris@19 6486 lt_cv_to_tool_file_cmd=func_convert_file_noop
Chris@19 6487 case $host in
Chris@19 6488 *-*-mingw* )
Chris@19 6489 case $build in
Chris@19 6490 *-*-mingw* ) # actually msys
Chris@19 6491 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
Chris@19 6492 ;;
Chris@19 6493 esac
Chris@19 6494 ;;
Chris@19 6495 esac
Chris@19 6496
Chris@19 6497 fi
Chris@19 6498
Chris@19 6499 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Chris@19 6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
Chris@19 6501 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
Chris@19 6502
Chris@19 6503
Chris@19 6504
Chris@19 6505
Chris@19 6506
Chris@19 6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
Chris@19 6508 $as_echo_n "checking for $LD option to reload object files... " >&6; }
Chris@19 6509 if ${lt_cv_ld_reload_flag+:} false; then :
Chris@19 6510 $as_echo_n "(cached) " >&6
Chris@19 6511 else
Chris@19 6512 lt_cv_ld_reload_flag='-r'
Chris@19 6513 fi
Chris@19 6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
Chris@19 6515 $as_echo "$lt_cv_ld_reload_flag" >&6; }
Chris@19 6516 reload_flag=$lt_cv_ld_reload_flag
Chris@19 6517 case $reload_flag in
Chris@19 6518 "" | " "*) ;;
Chris@19 6519 *) reload_flag=" $reload_flag" ;;
Chris@19 6520 esac
Chris@19 6521 reload_cmds='$LD$reload_flag -o $output$reload_objs'
Chris@19 6522 case $host_os in
Chris@19 6523 cygwin* | mingw* | pw32* | cegcc*)
Chris@19 6524 if test "$GCC" != yes; then
Chris@19 6525 reload_cmds=false
Chris@19 6526 fi
Chris@19 6527 ;;
Chris@19 6528 darwin*)
Chris@19 6529 if test "$GCC" = yes; then
Chris@19 6530 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
Chris@19 6531 else
Chris@19 6532 reload_cmds='$LD$reload_flag -o $output$reload_objs'
Chris@19 6533 fi
Chris@19 6534 ;;
Chris@19 6535 esac
Chris@19 6536
Chris@19 6537
Chris@19 6538
Chris@19 6539
Chris@19 6540
Chris@19 6541
Chris@19 6542
Chris@19 6543
Chris@19 6544
Chris@19 6545 if test -n "$ac_tool_prefix"; then
Chris@19 6546 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
Chris@19 6547 set dummy ${ac_tool_prefix}objdump; ac_word=$2
Chris@19 6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 6549 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 6550 if ${ac_cv_prog_OBJDUMP+:} false; then :
Chris@19 6551 $as_echo_n "(cached) " >&6
Chris@19 6552 else
Chris@19 6553 if test -n "$OBJDUMP"; then
Chris@19 6554 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
Chris@19 6555 else
Chris@19 6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 6557 for as_dir in $PATH
Chris@19 6558 do
Chris@19 6559 IFS=$as_save_IFS
Chris@19 6560 test -z "$as_dir" && as_dir=.
Chris@19 6561 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 6562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 6563 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Chris@19 6564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 6565 break 2
Chris@19 6566 fi
Chris@19 6567 done
Chris@19 6568 done
Chris@19 6569 IFS=$as_save_IFS
Chris@19 6570
Chris@19 6571 fi
Chris@19 6572 fi
Chris@19 6573 OBJDUMP=$ac_cv_prog_OBJDUMP
Chris@19 6574 if test -n "$OBJDUMP"; then
Chris@19 6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
Chris@19 6576 $as_echo "$OBJDUMP" >&6; }
Chris@19 6577 else
Chris@19 6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 6579 $as_echo "no" >&6; }
Chris@19 6580 fi
Chris@19 6581
Chris@19 6582
Chris@19 6583 fi
Chris@19 6584 if test -z "$ac_cv_prog_OBJDUMP"; then
Chris@19 6585 ac_ct_OBJDUMP=$OBJDUMP
Chris@19 6586 # Extract the first word of "objdump", so it can be a program name with args.
Chris@19 6587 set dummy objdump; ac_word=$2
Chris@19 6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 6589 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 6590 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Chris@19 6591 $as_echo_n "(cached) " >&6
Chris@19 6592 else
Chris@19 6593 if test -n "$ac_ct_OBJDUMP"; then
Chris@19 6594 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
Chris@19 6595 else
Chris@19 6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 6597 for as_dir in $PATH
Chris@19 6598 do
Chris@19 6599 IFS=$as_save_IFS
Chris@19 6600 test -z "$as_dir" && as_dir=.
Chris@19 6601 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 6602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 6603 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Chris@19 6604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 6605 break 2
Chris@19 6606 fi
Chris@19 6607 done
Chris@19 6608 done
Chris@19 6609 IFS=$as_save_IFS
Chris@19 6610
Chris@19 6611 fi
Chris@19 6612 fi
Chris@19 6613 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
Chris@19 6614 if test -n "$ac_ct_OBJDUMP"; then
Chris@19 6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
Chris@19 6616 $as_echo "$ac_ct_OBJDUMP" >&6; }
Chris@19 6617 else
Chris@19 6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 6619 $as_echo "no" >&6; }
Chris@19 6620 fi
Chris@19 6621
Chris@19 6622 if test "x$ac_ct_OBJDUMP" = x; then
Chris@19 6623 OBJDUMP="false"
Chris@19 6624 else
Chris@19 6625 case $cross_compiling:$ac_tool_warned in
Chris@19 6626 yes:)
Chris@19 6627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@19 6628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@19 6629 ac_tool_warned=yes ;;
Chris@19 6630 esac
Chris@19 6631 OBJDUMP=$ac_ct_OBJDUMP
Chris@19 6632 fi
Chris@19 6633 else
Chris@19 6634 OBJDUMP="$ac_cv_prog_OBJDUMP"
Chris@19 6635 fi
Chris@19 6636
Chris@19 6637 test -z "$OBJDUMP" && OBJDUMP=objdump
Chris@19 6638
Chris@19 6639
Chris@19 6640
Chris@19 6641
Chris@19 6642
Chris@19 6643
Chris@19 6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
Chris@19 6645 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
Chris@19 6646 if ${lt_cv_deplibs_check_method+:} false; then :
Chris@19 6647 $as_echo_n "(cached) " >&6
Chris@19 6648 else
Chris@19 6649 lt_cv_file_magic_cmd='$MAGIC_CMD'
Chris@19 6650 lt_cv_file_magic_test_file=
Chris@19 6651 lt_cv_deplibs_check_method='unknown'
Chris@19 6652 # Need to set the preceding variable on all platforms that support
Chris@19 6653 # interlibrary dependencies.
Chris@19 6654 # 'none' -- dependencies not supported.
Chris@19 6655 # `unknown' -- same as none, but documents that we really don't know.
Chris@19 6656 # 'pass_all' -- all dependencies passed with no checks.
Chris@19 6657 # 'test_compile' -- check by making test program.
Chris@19 6658 # 'file_magic [[regex]]' -- check by looking for files in library path
Chris@19 6659 # which responds to the $file_magic_cmd with a given extended regex.
Chris@19 6660 # If you have `file' or equivalent on your system and you're not sure
Chris@19 6661 # whether `pass_all' will *always* work, you probably want this one.
Chris@19 6662
Chris@19 6663 case $host_os in
Chris@19 6664 aix[4-9]*)
Chris@19 6665 lt_cv_deplibs_check_method=pass_all
Chris@19 6666 ;;
Chris@19 6667
Chris@19 6668 beos*)
Chris@19 6669 lt_cv_deplibs_check_method=pass_all
Chris@19 6670 ;;
Chris@19 6671
Chris@19 6672 bsdi[45]*)
Chris@19 6673 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
Chris@19 6674 lt_cv_file_magic_cmd='/usr/bin/file -L'
Chris@19 6675 lt_cv_file_magic_test_file=/shlib/libc.so
Chris@19 6676 ;;
Chris@19 6677
Chris@19 6678 cygwin*)
Chris@19 6679 # func_win32_libid is a shell function defined in ltmain.sh
Chris@19 6680 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Chris@19 6681 lt_cv_file_magic_cmd='func_win32_libid'
Chris@19 6682 ;;
Chris@19 6683
Chris@19 6684 mingw* | pw32*)
Chris@19 6685 # Base MSYS/MinGW do not provide the 'file' command needed by
Chris@19 6686 # func_win32_libid shell function, so use a weaker test based on 'objdump',
Chris@19 6687 # unless we find 'file', for example because we are cross-compiling.
Chris@19 6688 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
Chris@19 6689 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
Chris@19 6690 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Chris@19 6691 lt_cv_file_magic_cmd='func_win32_libid'
Chris@19 6692 else
Chris@19 6693 # Keep this pattern in sync with the one in func_win32_libid.
Chris@19 6694 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
Chris@19 6695 lt_cv_file_magic_cmd='$OBJDUMP -f'
Chris@19 6696 fi
Chris@19 6697 ;;
Chris@19 6698
Chris@19 6699 cegcc*)
Chris@19 6700 # use the weaker test based on 'objdump'. See mingw*.
Chris@19 6701 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
Chris@19 6702 lt_cv_file_magic_cmd='$OBJDUMP -f'
Chris@19 6703 ;;
Chris@19 6704
Chris@19 6705 darwin* | rhapsody*)
Chris@19 6706 lt_cv_deplibs_check_method=pass_all
Chris@19 6707 ;;
Chris@19 6708
Chris@19 6709 freebsd* | dragonfly*)
Chris@19 6710 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Chris@19 6711 case $host_cpu in
Chris@19 6712 i*86 )
Chris@19 6713 # Not sure whether the presence of OpenBSD here was a mistake.
Chris@19 6714 # Let's accept both of them until this is cleared up.
Chris@19 6715 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
Chris@19 6716 lt_cv_file_magic_cmd=/usr/bin/file
Chris@19 6717 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
Chris@19 6718 ;;
Chris@19 6719 esac
Chris@19 6720 else
Chris@19 6721 lt_cv_deplibs_check_method=pass_all
Chris@19 6722 fi
Chris@19 6723 ;;
Chris@19 6724
Chris@19 6725 gnu*)
Chris@19 6726 lt_cv_deplibs_check_method=pass_all
Chris@19 6727 ;;
Chris@19 6728
Chris@19 6729 haiku*)
Chris@19 6730 lt_cv_deplibs_check_method=pass_all
Chris@19 6731 ;;
Chris@19 6732
Chris@19 6733 hpux10.20* | hpux11*)
Chris@19 6734 lt_cv_file_magic_cmd=/usr/bin/file
Chris@19 6735 case $host_cpu in
Chris@19 6736 ia64*)
Chris@19 6737 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
Chris@19 6738 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
Chris@19 6739 ;;
Chris@19 6740 hppa*64*)
Chris@19 6741 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
Chris@19 6742 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
Chris@19 6743 ;;
Chris@19 6744 *)
Chris@19 6745 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
Chris@19 6746 lt_cv_file_magic_test_file=/usr/lib/libc.sl
Chris@19 6747 ;;
Chris@19 6748 esac
Chris@19 6749 ;;
Chris@19 6750
Chris@19 6751 interix[3-9]*)
Chris@19 6752 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
Chris@19 6753 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
Chris@19 6754 ;;
Chris@19 6755
Chris@19 6756 irix5* | irix6* | nonstopux*)
Chris@19 6757 case $LD in
Chris@19 6758 *-32|*"-32 ") libmagic=32-bit;;
Chris@19 6759 *-n32|*"-n32 ") libmagic=N32;;
Chris@19 6760 *-64|*"-64 ") libmagic=64-bit;;
Chris@19 6761 *) libmagic=never-match;;
Chris@19 6762 esac
Chris@19 6763 lt_cv_deplibs_check_method=pass_all
Chris@19 6764 ;;
Chris@19 6765
Chris@19 6766 # This must be glibc/ELF.
Chris@19 6767 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@19 6768 lt_cv_deplibs_check_method=pass_all
Chris@19 6769 ;;
Chris@19 6770
Chris@19 6771 netbsd*)
Chris@19 6772 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Chris@19 6773 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Chris@19 6774 else
Chris@19 6775 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
Chris@19 6776 fi
Chris@19 6777 ;;
Chris@19 6778
Chris@19 6779 newos6*)
Chris@19 6780 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
Chris@19 6781 lt_cv_file_magic_cmd=/usr/bin/file
Chris@19 6782 lt_cv_file_magic_test_file=/usr/lib/libnls.so
Chris@19 6783 ;;
Chris@19 6784
Chris@19 6785 *nto* | *qnx*)
Chris@19 6786 lt_cv_deplibs_check_method=pass_all
Chris@19 6787 ;;
Chris@19 6788
Chris@19 6789 openbsd*)
Chris@19 6790 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@19 6791 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
Chris@19 6792 else
Chris@19 6793 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Chris@19 6794 fi
Chris@19 6795 ;;
Chris@19 6796
Chris@19 6797 osf3* | osf4* | osf5*)
Chris@19 6798 lt_cv_deplibs_check_method=pass_all
Chris@19 6799 ;;
Chris@19 6800
Chris@19 6801 rdos*)
Chris@19 6802 lt_cv_deplibs_check_method=pass_all
Chris@19 6803 ;;
Chris@19 6804
Chris@19 6805 solaris*)
Chris@19 6806 lt_cv_deplibs_check_method=pass_all
Chris@19 6807 ;;
Chris@19 6808
Chris@19 6809 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Chris@19 6810 lt_cv_deplibs_check_method=pass_all
Chris@19 6811 ;;
Chris@19 6812
Chris@19 6813 sysv4 | sysv4.3*)
Chris@19 6814 case $host_vendor in
Chris@19 6815 motorola)
Chris@19 6816 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
Chris@19 6817 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
Chris@19 6818 ;;
Chris@19 6819 ncr)
Chris@19 6820 lt_cv_deplibs_check_method=pass_all
Chris@19 6821 ;;
Chris@19 6822 sequent)
Chris@19 6823 lt_cv_file_magic_cmd='/bin/file'
Chris@19 6824 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
Chris@19 6825 ;;
Chris@19 6826 sni)
Chris@19 6827 lt_cv_file_magic_cmd='/bin/file'
Chris@19 6828 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
Chris@19 6829 lt_cv_file_magic_test_file=/lib/libc.so
Chris@19 6830 ;;
Chris@19 6831 siemens)
Chris@19 6832 lt_cv_deplibs_check_method=pass_all
Chris@19 6833 ;;
Chris@19 6834 pc)
Chris@19 6835 lt_cv_deplibs_check_method=pass_all
Chris@19 6836 ;;
Chris@19 6837 esac
Chris@19 6838 ;;
Chris@19 6839
Chris@19 6840 tpf*)
Chris@19 6841 lt_cv_deplibs_check_method=pass_all
Chris@19 6842 ;;
Chris@19 6843 esac
Chris@19 6844
Chris@19 6845 fi
Chris@19 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
Chris@19 6847 $as_echo "$lt_cv_deplibs_check_method" >&6; }
Chris@19 6848
Chris@19 6849 file_magic_glob=
Chris@19 6850 want_nocaseglob=no
Chris@19 6851 if test "$build" = "$host"; then
Chris@19 6852 case $host_os in
Chris@19 6853 mingw* | pw32*)
Chris@19 6854 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
Chris@19 6855 want_nocaseglob=yes
Chris@19 6856 else
Chris@19 6857 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
Chris@19 6858 fi
Chris@19 6859 ;;
Chris@19 6860 esac
Chris@19 6861 fi
Chris@19 6862
Chris@19 6863 file_magic_cmd=$lt_cv_file_magic_cmd
Chris@19 6864 deplibs_check_method=$lt_cv_deplibs_check_method
Chris@19 6865 test -z "$deplibs_check_method" && deplibs_check_method=unknown
Chris@19 6866
Chris@19 6867
Chris@19 6868
Chris@19 6869
Chris@19 6870
Chris@19 6871
Chris@19 6872
Chris@19 6873
Chris@19 6874
Chris@19 6875
Chris@19 6876
Chris@19 6877
Chris@19 6878
Chris@19 6879
Chris@19 6880
Chris@19 6881
Chris@19 6882
Chris@19 6883
Chris@19 6884
Chris@19 6885
Chris@19 6886
Chris@19 6887
Chris@19 6888 if test -n "$ac_tool_prefix"; then
Chris@19 6889 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
Chris@19 6890 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Chris@19 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 6892 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 6893 if ${ac_cv_prog_DLLTOOL+:} false; then :
Chris@19 6894 $as_echo_n "(cached) " >&6
Chris@19 6895 else
Chris@19 6896 if test -n "$DLLTOOL"; then
Chris@19 6897 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
Chris@19 6898 else
Chris@19 6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 6900 for as_dir in $PATH
Chris@19 6901 do
Chris@19 6902 IFS=$as_save_IFS
Chris@19 6903 test -z "$as_dir" && as_dir=.
Chris@19 6904 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 6905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 6906 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
Chris@19 6907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 6908 break 2
Chris@19 6909 fi
Chris@19 6910 done
Chris@19 6911 done
Chris@19 6912 IFS=$as_save_IFS
Chris@19 6913
Chris@19 6914 fi
Chris@19 6915 fi
Chris@19 6916 DLLTOOL=$ac_cv_prog_DLLTOOL
Chris@19 6917 if test -n "$DLLTOOL"; then
Chris@19 6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
Chris@19 6919 $as_echo "$DLLTOOL" >&6; }
Chris@19 6920 else
Chris@19 6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 6922 $as_echo "no" >&6; }
Chris@19 6923 fi
Chris@19 6924
Chris@19 6925
Chris@19 6926 fi
Chris@19 6927 if test -z "$ac_cv_prog_DLLTOOL"; then
Chris@19 6928 ac_ct_DLLTOOL=$DLLTOOL
Chris@19 6929 # Extract the first word of "dlltool", so it can be a program name with args.
Chris@19 6930 set dummy dlltool; ac_word=$2
Chris@19 6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 6932 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 6933 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
Chris@19 6934 $as_echo_n "(cached) " >&6
Chris@19 6935 else
Chris@19 6936 if test -n "$ac_ct_DLLTOOL"; then
Chris@19 6937 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
Chris@19 6938 else
Chris@19 6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 6940 for as_dir in $PATH
Chris@19 6941 do
Chris@19 6942 IFS=$as_save_IFS
Chris@19 6943 test -z "$as_dir" && as_dir=.
Chris@19 6944 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 6945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 6946 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
Chris@19 6947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 6948 break 2
Chris@19 6949 fi
Chris@19 6950 done
Chris@19 6951 done
Chris@19 6952 IFS=$as_save_IFS
Chris@19 6953
Chris@19 6954 fi
Chris@19 6955 fi
Chris@19 6956 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
Chris@19 6957 if test -n "$ac_ct_DLLTOOL"; then
Chris@19 6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
Chris@19 6959 $as_echo "$ac_ct_DLLTOOL" >&6; }
Chris@19 6960 else
Chris@19 6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 6962 $as_echo "no" >&6; }
Chris@19 6963 fi
Chris@19 6964
Chris@19 6965 if test "x$ac_ct_DLLTOOL" = x; then
Chris@19 6966 DLLTOOL="false"
Chris@19 6967 else
Chris@19 6968 case $cross_compiling:$ac_tool_warned in
Chris@19 6969 yes:)
Chris@19 6970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@19 6971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@19 6972 ac_tool_warned=yes ;;
Chris@19 6973 esac
Chris@19 6974 DLLTOOL=$ac_ct_DLLTOOL
Chris@19 6975 fi
Chris@19 6976 else
Chris@19 6977 DLLTOOL="$ac_cv_prog_DLLTOOL"
Chris@19 6978 fi
Chris@19 6979
Chris@19 6980 test -z "$DLLTOOL" && DLLTOOL=dlltool
Chris@19 6981
Chris@19 6982
Chris@19 6983
Chris@19 6984
Chris@19 6985
Chris@19 6986
Chris@19 6987
Chris@19 6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
Chris@19 6989 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
Chris@19 6990 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
Chris@19 6991 $as_echo_n "(cached) " >&6
Chris@19 6992 else
Chris@19 6993 lt_cv_sharedlib_from_linklib_cmd='unknown'
Chris@19 6994
Chris@19 6995 case $host_os in
Chris@19 6996 cygwin* | mingw* | pw32* | cegcc*)
Chris@19 6997 # two different shell functions defined in ltmain.sh
Chris@19 6998 # decide which to use based on capabilities of $DLLTOOL
Chris@19 6999 case `$DLLTOOL --help 2>&1` in
Chris@19 7000 *--identify-strict*)
Chris@19 7001 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
Chris@19 7002 ;;
Chris@19 7003 *)
Chris@19 7004 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
Chris@19 7005 ;;
Chris@19 7006 esac
Chris@19 7007 ;;
Chris@19 7008 *)
Chris@19 7009 # fallback: assume linklib IS sharedlib
Chris@19 7010 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
Chris@19 7011 ;;
Chris@19 7012 esac
Chris@19 7013
Chris@19 7014 fi
Chris@19 7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
Chris@19 7016 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
Chris@19 7017 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
Chris@19 7018 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
Chris@19 7019
Chris@19 7020
Chris@19 7021
Chris@19 7022
Chris@19 7023
Chris@19 7024
Chris@19 7025
Chris@19 7026 if test -n "$ac_tool_prefix"; then
Chris@19 7027 for ac_prog in ar
Chris@19 7028 do
Chris@19 7029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@19 7030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@19 7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 7032 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 7033 if ${ac_cv_prog_AR+:} false; then :
Chris@19 7034 $as_echo_n "(cached) " >&6
Chris@19 7035 else
Chris@19 7036 if test -n "$AR"; then
Chris@19 7037 ac_cv_prog_AR="$AR" # Let the user override the test.
Chris@19 7038 else
Chris@19 7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 7040 for as_dir in $PATH
Chris@19 7041 do
Chris@19 7042 IFS=$as_save_IFS
Chris@19 7043 test -z "$as_dir" && as_dir=.
Chris@19 7044 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 7045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 7046 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Chris@19 7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 7048 break 2
Chris@19 7049 fi
Chris@19 7050 done
Chris@19 7051 done
Chris@19 7052 IFS=$as_save_IFS
Chris@19 7053
Chris@19 7054 fi
Chris@19 7055 fi
Chris@19 7056 AR=$ac_cv_prog_AR
Chris@19 7057 if test -n "$AR"; then
Chris@19 7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Chris@19 7059 $as_echo "$AR" >&6; }
Chris@19 7060 else
Chris@19 7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 7062 $as_echo "no" >&6; }
Chris@19 7063 fi
Chris@19 7064
Chris@19 7065
Chris@19 7066 test -n "$AR" && break
Chris@19 7067 done
Chris@19 7068 fi
Chris@19 7069 if test -z "$AR"; then
Chris@19 7070 ac_ct_AR=$AR
Chris@19 7071 for ac_prog in ar
Chris@19 7072 do
Chris@19 7073 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@19 7074 set dummy $ac_prog; ac_word=$2
Chris@19 7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 7076 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 7077 if ${ac_cv_prog_ac_ct_AR+:} false; then :
Chris@19 7078 $as_echo_n "(cached) " >&6
Chris@19 7079 else
Chris@19 7080 if test -n "$ac_ct_AR"; then
Chris@19 7081 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Chris@19 7082 else
Chris@19 7083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 7084 for as_dir in $PATH
Chris@19 7085 do
Chris@19 7086 IFS=$as_save_IFS
Chris@19 7087 test -z "$as_dir" && as_dir=.
Chris@19 7088 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 7089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 7090 ac_cv_prog_ac_ct_AR="$ac_prog"
Chris@19 7091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 7092 break 2
Chris@19 7093 fi
Chris@19 7094 done
Chris@19 7095 done
Chris@19 7096 IFS=$as_save_IFS
Chris@19 7097
Chris@19 7098 fi
Chris@19 7099 fi
Chris@19 7100 ac_ct_AR=$ac_cv_prog_ac_ct_AR
Chris@19 7101 if test -n "$ac_ct_AR"; then
Chris@19 7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Chris@19 7103 $as_echo "$ac_ct_AR" >&6; }
Chris@19 7104 else
Chris@19 7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 7106 $as_echo "no" >&6; }
Chris@19 7107 fi
Chris@19 7108
Chris@19 7109
Chris@19 7110 test -n "$ac_ct_AR" && break
Chris@19 7111 done
Chris@19 7112
Chris@19 7113 if test "x$ac_ct_AR" = x; then
Chris@19 7114 AR="false"
Chris@19 7115 else
Chris@19 7116 case $cross_compiling:$ac_tool_warned in
Chris@19 7117 yes:)
Chris@19 7118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@19 7119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@19 7120 ac_tool_warned=yes ;;
Chris@19 7121 esac
Chris@19 7122 AR=$ac_ct_AR
Chris@19 7123 fi
Chris@19 7124 fi
Chris@19 7125
Chris@19 7126 : ${AR=ar}
Chris@19 7127 : ${AR_FLAGS=cru}
Chris@19 7128
Chris@19 7129
Chris@19 7130
Chris@19 7131
Chris@19 7132
Chris@19 7133
Chris@19 7134
Chris@19 7135
Chris@19 7136
Chris@19 7137
Chris@19 7138
Chris@19 7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
Chris@19 7140 $as_echo_n "checking for archiver @FILE support... " >&6; }
Chris@19 7141 if ${lt_cv_ar_at_file+:} false; then :
Chris@19 7142 $as_echo_n "(cached) " >&6
Chris@19 7143 else
Chris@19 7144 lt_cv_ar_at_file=no
Chris@19 7145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 7146 /* end confdefs.h. */
Chris@19 7147
Chris@19 7148 int
Chris@19 7149 main ()
Chris@19 7150 {
Chris@19 7151
Chris@19 7152 ;
Chris@19 7153 return 0;
Chris@19 7154 }
Chris@19 7155 _ACEOF
Chris@19 7156 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 7157 echo conftest.$ac_objext > conftest.lst
Chris@19 7158 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
Chris@19 7159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
Chris@19 7160 (eval $lt_ar_try) 2>&5
Chris@19 7161 ac_status=$?
Chris@19 7162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@19 7163 test $ac_status = 0; }
Chris@19 7164 if test "$ac_status" -eq 0; then
Chris@19 7165 # Ensure the archiver fails upon bogus file names.
Chris@19 7166 rm -f conftest.$ac_objext libconftest.a
Chris@19 7167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
Chris@19 7168 (eval $lt_ar_try) 2>&5
Chris@19 7169 ac_status=$?
Chris@19 7170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@19 7171 test $ac_status = 0; }
Chris@19 7172 if test "$ac_status" -ne 0; then
Chris@19 7173 lt_cv_ar_at_file=@
Chris@19 7174 fi
Chris@19 7175 fi
Chris@19 7176 rm -f conftest.* libconftest.a
Chris@19 7177
Chris@19 7178 fi
Chris@19 7179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 7180
Chris@19 7181 fi
Chris@19 7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
Chris@19 7183 $as_echo "$lt_cv_ar_at_file" >&6; }
Chris@19 7184
Chris@19 7185 if test "x$lt_cv_ar_at_file" = xno; then
Chris@19 7186 archiver_list_spec=
Chris@19 7187 else
Chris@19 7188 archiver_list_spec=$lt_cv_ar_at_file
Chris@19 7189 fi
Chris@19 7190
Chris@19 7191
Chris@19 7192
Chris@19 7193
Chris@19 7194
Chris@19 7195
Chris@19 7196
Chris@19 7197 if test -n "$ac_tool_prefix"; then
Chris@19 7198 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
Chris@19 7199 set dummy ${ac_tool_prefix}strip; ac_word=$2
Chris@19 7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 7201 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 7202 if ${ac_cv_prog_STRIP+:} false; then :
Chris@19 7203 $as_echo_n "(cached) " >&6
Chris@19 7204 else
Chris@19 7205 if test -n "$STRIP"; then
Chris@19 7206 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
Chris@19 7207 else
Chris@19 7208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 7209 for as_dir in $PATH
Chris@19 7210 do
Chris@19 7211 IFS=$as_save_IFS
Chris@19 7212 test -z "$as_dir" && as_dir=.
Chris@19 7213 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 7214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 7215 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Chris@19 7216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 7217 break 2
Chris@19 7218 fi
Chris@19 7219 done
Chris@19 7220 done
Chris@19 7221 IFS=$as_save_IFS
Chris@19 7222
Chris@19 7223 fi
Chris@19 7224 fi
Chris@19 7225 STRIP=$ac_cv_prog_STRIP
Chris@19 7226 if test -n "$STRIP"; then
Chris@19 7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Chris@19 7228 $as_echo "$STRIP" >&6; }
Chris@19 7229 else
Chris@19 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 7231 $as_echo "no" >&6; }
Chris@19 7232 fi
Chris@19 7233
Chris@19 7234
Chris@19 7235 fi
Chris@19 7236 if test -z "$ac_cv_prog_STRIP"; then
Chris@19 7237 ac_ct_STRIP=$STRIP
Chris@19 7238 # Extract the first word of "strip", so it can be a program name with args.
Chris@19 7239 set dummy strip; ac_word=$2
Chris@19 7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 7241 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 7242 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Chris@19 7243 $as_echo_n "(cached) " >&6
Chris@19 7244 else
Chris@19 7245 if test -n "$ac_ct_STRIP"; then
Chris@19 7246 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Chris@19 7247 else
Chris@19 7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 7249 for as_dir in $PATH
Chris@19 7250 do
Chris@19 7251 IFS=$as_save_IFS
Chris@19 7252 test -z "$as_dir" && as_dir=.
Chris@19 7253 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 7254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 7255 ac_cv_prog_ac_ct_STRIP="strip"
Chris@19 7256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 7257 break 2
Chris@19 7258 fi
Chris@19 7259 done
Chris@19 7260 done
Chris@19 7261 IFS=$as_save_IFS
Chris@19 7262
Chris@19 7263 fi
Chris@19 7264 fi
Chris@19 7265 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
Chris@19 7266 if test -n "$ac_ct_STRIP"; then
Chris@19 7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Chris@19 7268 $as_echo "$ac_ct_STRIP" >&6; }
Chris@19 7269 else
Chris@19 7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 7271 $as_echo "no" >&6; }
Chris@19 7272 fi
Chris@19 7273
Chris@19 7274 if test "x$ac_ct_STRIP" = x; then
Chris@19 7275 STRIP=":"
Chris@19 7276 else
Chris@19 7277 case $cross_compiling:$ac_tool_warned in
Chris@19 7278 yes:)
Chris@19 7279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@19 7280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@19 7281 ac_tool_warned=yes ;;
Chris@19 7282 esac
Chris@19 7283 STRIP=$ac_ct_STRIP
Chris@19 7284 fi
Chris@19 7285 else
Chris@19 7286 STRIP="$ac_cv_prog_STRIP"
Chris@19 7287 fi
Chris@19 7288
Chris@19 7289 test -z "$STRIP" && STRIP=:
Chris@19 7290
Chris@19 7291
Chris@19 7292
Chris@19 7293
Chris@19 7294
Chris@19 7295
Chris@19 7296 if test -n "$ac_tool_prefix"; then
Chris@19 7297 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
Chris@19 7298 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Chris@19 7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 7300 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 7301 if ${ac_cv_prog_RANLIB+:} false; then :
Chris@19 7302 $as_echo_n "(cached) " >&6
Chris@19 7303 else
Chris@19 7304 if test -n "$RANLIB"; then
Chris@19 7305 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
Chris@19 7306 else
Chris@19 7307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 7308 for as_dir in $PATH
Chris@19 7309 do
Chris@19 7310 IFS=$as_save_IFS
Chris@19 7311 test -z "$as_dir" && as_dir=.
Chris@19 7312 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 7313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 7314 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Chris@19 7315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 7316 break 2
Chris@19 7317 fi
Chris@19 7318 done
Chris@19 7319 done
Chris@19 7320 IFS=$as_save_IFS
Chris@19 7321
Chris@19 7322 fi
Chris@19 7323 fi
Chris@19 7324 RANLIB=$ac_cv_prog_RANLIB
Chris@19 7325 if test -n "$RANLIB"; then
Chris@19 7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Chris@19 7327 $as_echo "$RANLIB" >&6; }
Chris@19 7328 else
Chris@19 7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 7330 $as_echo "no" >&6; }
Chris@19 7331 fi
Chris@19 7332
Chris@19 7333
Chris@19 7334 fi
Chris@19 7335 if test -z "$ac_cv_prog_RANLIB"; then
Chris@19 7336 ac_ct_RANLIB=$RANLIB
Chris@19 7337 # Extract the first word of "ranlib", so it can be a program name with args.
Chris@19 7338 set dummy ranlib; ac_word=$2
Chris@19 7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 7340 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 7341 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Chris@19 7342 $as_echo_n "(cached) " >&6
Chris@19 7343 else
Chris@19 7344 if test -n "$ac_ct_RANLIB"; then
Chris@19 7345 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Chris@19 7346 else
Chris@19 7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 7348 for as_dir in $PATH
Chris@19 7349 do
Chris@19 7350 IFS=$as_save_IFS
Chris@19 7351 test -z "$as_dir" && as_dir=.
Chris@19 7352 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 7353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 7354 ac_cv_prog_ac_ct_RANLIB="ranlib"
Chris@19 7355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 7356 break 2
Chris@19 7357 fi
Chris@19 7358 done
Chris@19 7359 done
Chris@19 7360 IFS=$as_save_IFS
Chris@19 7361
Chris@19 7362 fi
Chris@19 7363 fi
Chris@19 7364 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
Chris@19 7365 if test -n "$ac_ct_RANLIB"; then
Chris@19 7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Chris@19 7367 $as_echo "$ac_ct_RANLIB" >&6; }
Chris@19 7368 else
Chris@19 7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 7370 $as_echo "no" >&6; }
Chris@19 7371 fi
Chris@19 7372
Chris@19 7373 if test "x$ac_ct_RANLIB" = x; then
Chris@19 7374 RANLIB=":"
Chris@19 7375 else
Chris@19 7376 case $cross_compiling:$ac_tool_warned in
Chris@19 7377 yes:)
Chris@19 7378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@19 7379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@19 7380 ac_tool_warned=yes ;;
Chris@19 7381 esac
Chris@19 7382 RANLIB=$ac_ct_RANLIB
Chris@19 7383 fi
Chris@19 7384 else
Chris@19 7385 RANLIB="$ac_cv_prog_RANLIB"
Chris@19 7386 fi
Chris@19 7387
Chris@19 7388 test -z "$RANLIB" && RANLIB=:
Chris@19 7389
Chris@19 7390
Chris@19 7391
Chris@19 7392
Chris@19 7393
Chris@19 7394
Chris@19 7395 # Determine commands to create old-style static archives.
Chris@19 7396 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
Chris@19 7397 old_postinstall_cmds='chmod 644 $oldlib'
Chris@19 7398 old_postuninstall_cmds=
Chris@19 7399
Chris@19 7400 if test -n "$RANLIB"; then
Chris@19 7401 case $host_os in
Chris@19 7402 openbsd*)
Chris@19 7403 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
Chris@19 7404 ;;
Chris@19 7405 *)
Chris@19 7406 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
Chris@19 7407 ;;
Chris@19 7408 esac
Chris@19 7409 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
Chris@19 7410 fi
Chris@19 7411
Chris@19 7412 case $host_os in
Chris@19 7413 darwin*)
Chris@19 7414 lock_old_archive_extraction=yes ;;
Chris@19 7415 *)
Chris@19 7416 lock_old_archive_extraction=no ;;
Chris@19 7417 esac
Chris@19 7418
Chris@19 7419
Chris@19 7420
Chris@19 7421
Chris@19 7422
Chris@19 7423
Chris@19 7424
Chris@19 7425
Chris@19 7426
Chris@19 7427
Chris@19 7428
Chris@19 7429
Chris@19 7430
Chris@19 7431
Chris@19 7432
Chris@19 7433
Chris@19 7434
Chris@19 7435
Chris@19 7436
Chris@19 7437
Chris@19 7438
Chris@19 7439
Chris@19 7440
Chris@19 7441
Chris@19 7442
Chris@19 7443
Chris@19 7444
Chris@19 7445
Chris@19 7446
Chris@19 7447
Chris@19 7448
Chris@19 7449
Chris@19 7450
Chris@19 7451
Chris@19 7452
Chris@19 7453
Chris@19 7454
Chris@19 7455
Chris@19 7456
Chris@19 7457 # If no C compiler was specified, use CC.
Chris@19 7458 LTCC=${LTCC-"$CC"}
Chris@19 7459
Chris@19 7460 # If no C compiler flags were specified, use CFLAGS.
Chris@19 7461 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Chris@19 7462
Chris@19 7463 # Allow CC to be a program name with arguments.
Chris@19 7464 compiler=$CC
Chris@19 7465
Chris@19 7466
Chris@19 7467 # Check for command to grab the raw symbol name followed by C symbol from nm.
Chris@19 7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
Chris@19 7469 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Chris@19 7470 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Chris@19 7471 $as_echo_n "(cached) " >&6
Chris@19 7472 else
Chris@19 7473
Chris@19 7474 # These are sane defaults that work on at least a few old systems.
Chris@19 7475 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
Chris@19 7476
Chris@19 7477 # Character class describing NM global symbol codes.
Chris@19 7478 symcode='[BCDEGRST]'
Chris@19 7479
Chris@19 7480 # Regexp to match symbols that can be accessed directly from C.
Chris@19 7481 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
Chris@19 7482
Chris@19 7483 # Define system-specific variables.
Chris@19 7484 case $host_os in
Chris@19 7485 aix*)
Chris@19 7486 symcode='[BCDT]'
Chris@19 7487 ;;
Chris@19 7488 cygwin* | mingw* | pw32* | cegcc*)
Chris@19 7489 symcode='[ABCDGISTW]'
Chris@19 7490 ;;
Chris@19 7491 hpux*)
Chris@19 7492 if test "$host_cpu" = ia64; then
Chris@19 7493 symcode='[ABCDEGRST]'
Chris@19 7494 fi
Chris@19 7495 ;;
Chris@19 7496 irix* | nonstopux*)
Chris@19 7497 symcode='[BCDEGRST]'
Chris@19 7498 ;;
Chris@19 7499 osf*)
Chris@19 7500 symcode='[BCDEGQRST]'
Chris@19 7501 ;;
Chris@19 7502 solaris*)
Chris@19 7503 symcode='[BDRT]'
Chris@19 7504 ;;
Chris@19 7505 sco3.2v5*)
Chris@19 7506 symcode='[DT]'
Chris@19 7507 ;;
Chris@19 7508 sysv4.2uw2*)
Chris@19 7509 symcode='[DT]'
Chris@19 7510 ;;
Chris@19 7511 sysv5* | sco5v6* | unixware* | OpenUNIX*)
Chris@19 7512 symcode='[ABDT]'
Chris@19 7513 ;;
Chris@19 7514 sysv4)
Chris@19 7515 symcode='[DFNSTU]'
Chris@19 7516 ;;
Chris@19 7517 esac
Chris@19 7518
Chris@19 7519 # If we're using GNU nm, then use its standard symbol codes.
Chris@19 7520 case `$NM -V 2>&1` in
Chris@19 7521 *GNU* | *'with BFD'*)
Chris@19 7522 symcode='[ABCDGIRSTW]' ;;
Chris@19 7523 esac
Chris@19 7524
Chris@19 7525 # Transform an extracted symbol line into a proper C declaration.
Chris@19 7526 # Some systems (esp. on ia64) link data and code symbols differently,
Chris@19 7527 # so use this general approach.
Chris@19 7528 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
Chris@19 7529
Chris@19 7530 # Transform an extracted symbol line into symbol name and symbol address
Chris@19 7531 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
Chris@19 7532 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
Chris@19 7533
Chris@19 7534 # Handle CRLF in mingw tool chain
Chris@19 7535 opt_cr=
Chris@19 7536 case $build_os in
Chris@19 7537 mingw*)
Chris@19 7538 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
Chris@19 7539 ;;
Chris@19 7540 esac
Chris@19 7541
Chris@19 7542 # Try without a prefix underscore, then with it.
Chris@19 7543 for ac_symprfx in "" "_"; do
Chris@19 7544
Chris@19 7545 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
Chris@19 7546 symxfrm="\\1 $ac_symprfx\\2 \\2"
Chris@19 7547
Chris@19 7548 # Write the raw and C identifiers.
Chris@19 7549 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Chris@19 7550 # Fake it for dumpbin and say T for any non-static function
Chris@19 7551 # and D for any global variable.
Chris@19 7552 # Also find C++ and __fastcall symbols from MSVC++,
Chris@19 7553 # which start with @ or ?.
Chris@19 7554 lt_cv_sys_global_symbol_pipe="$AWK '"\
Chris@19 7555 " {last_section=section; section=\$ 3};"\
Chris@19 7556 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
Chris@19 7557 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
Chris@19 7558 " \$ 0!~/External *\|/{next};"\
Chris@19 7559 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
Chris@19 7560 " {if(hide[section]) next};"\
Chris@19 7561 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
Chris@19 7562 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
Chris@19 7563 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
Chris@19 7564 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
Chris@19 7565 " ' prfx=^$ac_symprfx"
Chris@19 7566 else
Chris@19 7567 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
Chris@19 7568 fi
Chris@19 7569 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
Chris@19 7570
Chris@19 7571 # Check to see that the pipe works correctly.
Chris@19 7572 pipe_works=no
Chris@19 7573
Chris@19 7574 rm -f conftest*
Chris@19 7575 cat > conftest.$ac_ext <<_LT_EOF
Chris@19 7576 #ifdef __cplusplus
Chris@19 7577 extern "C" {
Chris@19 7578 #endif
Chris@19 7579 char nm_test_var;
Chris@19 7580 void nm_test_func(void);
Chris@19 7581 void nm_test_func(void){}
Chris@19 7582 #ifdef __cplusplus
Chris@19 7583 }
Chris@19 7584 #endif
Chris@19 7585 int main(){nm_test_var='a';nm_test_func();return(0);}
Chris@19 7586 _LT_EOF
Chris@19 7587
Chris@19 7588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@19 7589 (eval $ac_compile) 2>&5
Chris@19 7590 ac_status=$?
Chris@19 7591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@19 7592 test $ac_status = 0; }; then
Chris@19 7593 # Now try to grab the symbols.
Chris@19 7594 nlist=conftest.nm
Chris@19 7595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
Chris@19 7596 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
Chris@19 7597 ac_status=$?
Chris@19 7598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@19 7599 test $ac_status = 0; } && test -s "$nlist"; then
Chris@19 7600 # Try sorting and uniquifying the output.
Chris@19 7601 if sort "$nlist" | uniq > "$nlist"T; then
Chris@19 7602 mv -f "$nlist"T "$nlist"
Chris@19 7603 else
Chris@19 7604 rm -f "$nlist"T
Chris@19 7605 fi
Chris@19 7606
Chris@19 7607 # Make sure that we snagged all the symbols we need.
Chris@19 7608 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
Chris@19 7609 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
Chris@19 7610 cat <<_LT_EOF > conftest.$ac_ext
Chris@19 7611 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
Chris@19 7612 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
Chris@19 7613 /* DATA imports from DLLs on WIN32 con't be const, because runtime
Chris@19 7614 relocations are performed -- see ld's documentation on pseudo-relocs. */
Chris@19 7615 # define LT_DLSYM_CONST
Chris@19 7616 #elif defined(__osf__)
Chris@19 7617 /* This system does not cope well with relocations in const data. */
Chris@19 7618 # define LT_DLSYM_CONST
Chris@19 7619 #else
Chris@19 7620 # define LT_DLSYM_CONST const
Chris@19 7621 #endif
Chris@19 7622
Chris@19 7623 #ifdef __cplusplus
Chris@19 7624 extern "C" {
Chris@19 7625 #endif
Chris@19 7626
Chris@19 7627 _LT_EOF
Chris@19 7628 # Now generate the symbol file.
Chris@19 7629 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
Chris@19 7630
Chris@19 7631 cat <<_LT_EOF >> conftest.$ac_ext
Chris@19 7632
Chris@19 7633 /* The mapping between symbol names and symbols. */
Chris@19 7634 LT_DLSYM_CONST struct {
Chris@19 7635 const char *name;
Chris@19 7636 void *address;
Chris@19 7637 }
Chris@19 7638 lt__PROGRAM__LTX_preloaded_symbols[] =
Chris@19 7639 {
Chris@19 7640 { "@PROGRAM@", (void *) 0 },
Chris@19 7641 _LT_EOF
Chris@19 7642 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
Chris@19 7643 cat <<\_LT_EOF >> conftest.$ac_ext
Chris@19 7644 {0, (void *) 0}
Chris@19 7645 };
Chris@19 7646
Chris@19 7647 /* This works around a problem in FreeBSD linker */
Chris@19 7648 #ifdef FREEBSD_WORKAROUND
Chris@19 7649 static const void *lt_preloaded_setup() {
Chris@19 7650 return lt__PROGRAM__LTX_preloaded_symbols;
Chris@19 7651 }
Chris@19 7652 #endif
Chris@19 7653
Chris@19 7654 #ifdef __cplusplus
Chris@19 7655 }
Chris@19 7656 #endif
Chris@19 7657 _LT_EOF
Chris@19 7658 # Now try linking the two files.
Chris@19 7659 mv conftest.$ac_objext conftstm.$ac_objext
Chris@19 7660 lt_globsym_save_LIBS=$LIBS
Chris@19 7661 lt_globsym_save_CFLAGS=$CFLAGS
Chris@19 7662 LIBS="conftstm.$ac_objext"
Chris@19 7663 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Chris@19 7664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Chris@19 7665 (eval $ac_link) 2>&5
Chris@19 7666 ac_status=$?
Chris@19 7667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@19 7668 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
Chris@19 7669 pipe_works=yes
Chris@19 7670 fi
Chris@19 7671 LIBS=$lt_globsym_save_LIBS
Chris@19 7672 CFLAGS=$lt_globsym_save_CFLAGS
Chris@19 7673 else
Chris@19 7674 echo "cannot find nm_test_func in $nlist" >&5
Chris@19 7675 fi
Chris@19 7676 else
Chris@19 7677 echo "cannot find nm_test_var in $nlist" >&5
Chris@19 7678 fi
Chris@19 7679 else
Chris@19 7680 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
Chris@19 7681 fi
Chris@19 7682 else
Chris@19 7683 echo "$progname: failed program was:" >&5
Chris@19 7684 cat conftest.$ac_ext >&5
Chris@19 7685 fi
Chris@19 7686 rm -rf conftest* conftst*
Chris@19 7687
Chris@19 7688 # Do not use the global_symbol_pipe unless it works.
Chris@19 7689 if test "$pipe_works" = yes; then
Chris@19 7690 break
Chris@19 7691 else
Chris@19 7692 lt_cv_sys_global_symbol_pipe=
Chris@19 7693 fi
Chris@19 7694 done
Chris@19 7695
Chris@19 7696 fi
Chris@19 7697
Chris@19 7698 if test -z "$lt_cv_sys_global_symbol_pipe"; then
Chris@19 7699 lt_cv_sys_global_symbol_to_cdecl=
Chris@19 7700 fi
Chris@19 7701 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Chris@19 7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
Chris@19 7703 $as_echo "failed" >&6; }
Chris@19 7704 else
Chris@19 7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
Chris@19 7706 $as_echo "ok" >&6; }
Chris@19 7707 fi
Chris@19 7708
Chris@19 7709 # Response file support.
Chris@19 7710 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Chris@19 7711 nm_file_list_spec='@'
Chris@19 7712 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
Chris@19 7713 nm_file_list_spec='@'
Chris@19 7714 fi
Chris@19 7715
Chris@19 7716
Chris@19 7717
Chris@19 7718
Chris@19 7719
Chris@19 7720
Chris@19 7721
Chris@19 7722
Chris@19 7723
Chris@19 7724
Chris@19 7725
Chris@19 7726
Chris@19 7727
Chris@19 7728
Chris@19 7729
Chris@19 7730
Chris@19 7731
Chris@19 7732
Chris@19 7733
Chris@19 7734
Chris@19 7735
Chris@19 7736
Chris@19 7737
Chris@19 7738
Chris@19 7739
Chris@19 7740
Chris@19 7741
Chris@19 7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
Chris@19 7743 $as_echo_n "checking for sysroot... " >&6; }
Chris@19 7744
Chris@19 7745 # Check whether --with-sysroot was given.
Chris@19 7746 if test "${with_sysroot+set}" = set; then :
Chris@19 7747 withval=$with_sysroot;
Chris@19 7748 else
Chris@19 7749 with_sysroot=no
Chris@19 7750 fi
Chris@19 7751
Chris@19 7752
Chris@19 7753 lt_sysroot=
Chris@19 7754 case ${with_sysroot} in #(
Chris@19 7755 yes)
Chris@19 7756 if test "$GCC" = yes; then
Chris@19 7757 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
Chris@19 7758 fi
Chris@19 7759 ;; #(
Chris@19 7760 /*)
Chris@19 7761 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
Chris@19 7762 ;; #(
Chris@19 7763 no|'')
Chris@19 7764 ;; #(
Chris@19 7765 *)
Chris@19 7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
Chris@19 7767 $as_echo "${with_sysroot}" >&6; }
Chris@19 7768 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
Chris@19 7769 ;;
Chris@19 7770 esac
Chris@19 7771
Chris@19 7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
Chris@19 7773 $as_echo "${lt_sysroot:-no}" >&6; }
Chris@19 7774
Chris@19 7775
Chris@19 7776
Chris@19 7777
Chris@19 7778
Chris@19 7779 # Check whether --enable-libtool-lock was given.
Chris@19 7780 if test "${enable_libtool_lock+set}" = set; then :
Chris@19 7781 enableval=$enable_libtool_lock;
Chris@19 7782 fi
Chris@19 7783
Chris@19 7784 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Chris@19 7785
Chris@19 7786 # Some flags need to be propagated to the compiler or linker for good
Chris@19 7787 # libtool support.
Chris@19 7788 case $host in
Chris@19 7789 ia64-*-hpux*)
Chris@19 7790 # Find out which ABI we are using.
Chris@19 7791 echo 'int i;' > conftest.$ac_ext
Chris@19 7792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@19 7793 (eval $ac_compile) 2>&5
Chris@19 7794 ac_status=$?
Chris@19 7795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@19 7796 test $ac_status = 0; }; then
Chris@19 7797 case `/usr/bin/file conftest.$ac_objext` in
Chris@19 7798 *ELF-32*)
Chris@19 7799 HPUX_IA64_MODE="32"
Chris@19 7800 ;;
Chris@19 7801 *ELF-64*)
Chris@19 7802 HPUX_IA64_MODE="64"
Chris@19 7803 ;;
Chris@19 7804 esac
Chris@19 7805 fi
Chris@19 7806 rm -rf conftest*
Chris@19 7807 ;;
Chris@19 7808 *-*-irix6*)
Chris@19 7809 # Find out which ABI we are using.
Chris@19 7810 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
Chris@19 7811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@19 7812 (eval $ac_compile) 2>&5
Chris@19 7813 ac_status=$?
Chris@19 7814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@19 7815 test $ac_status = 0; }; then
Chris@19 7816 if test "$lt_cv_prog_gnu_ld" = yes; then
Chris@19 7817 case `/usr/bin/file conftest.$ac_objext` in
Chris@19 7818 *32-bit*)
Chris@19 7819 LD="${LD-ld} -melf32bsmip"
Chris@19 7820 ;;
Chris@19 7821 *N32*)
Chris@19 7822 LD="${LD-ld} -melf32bmipn32"
Chris@19 7823 ;;
Chris@19 7824 *64-bit*)
Chris@19 7825 LD="${LD-ld} -melf64bmip"
Chris@19 7826 ;;
Chris@19 7827 esac
Chris@19 7828 else
Chris@19 7829 case `/usr/bin/file conftest.$ac_objext` in
Chris@19 7830 *32-bit*)
Chris@19 7831 LD="${LD-ld} -32"
Chris@19 7832 ;;
Chris@19 7833 *N32*)
Chris@19 7834 LD="${LD-ld} -n32"
Chris@19 7835 ;;
Chris@19 7836 *64-bit*)
Chris@19 7837 LD="${LD-ld} -64"
Chris@19 7838 ;;
Chris@19 7839 esac
Chris@19 7840 fi
Chris@19 7841 fi
Chris@19 7842 rm -rf conftest*
Chris@19 7843 ;;
Chris@19 7844
Chris@19 7845 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
Chris@19 7846 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Chris@19 7847 # Find out which ABI we are using.
Chris@19 7848 echo 'int i;' > conftest.$ac_ext
Chris@19 7849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@19 7850 (eval $ac_compile) 2>&5
Chris@19 7851 ac_status=$?
Chris@19 7852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@19 7853 test $ac_status = 0; }; then
Chris@19 7854 case `/usr/bin/file conftest.o` in
Chris@19 7855 *32-bit*)
Chris@19 7856 case $host in
Chris@19 7857 x86_64-*kfreebsd*-gnu)
Chris@19 7858 LD="${LD-ld} -m elf_i386_fbsd"
Chris@19 7859 ;;
Chris@19 7860 x86_64-*linux*)
Chris@19 7861 LD="${LD-ld} -m elf_i386"
Chris@19 7862 ;;
Chris@19 7863 ppc64-*linux*|powerpc64-*linux*)
Chris@19 7864 LD="${LD-ld} -m elf32ppclinux"
Chris@19 7865 ;;
Chris@19 7866 s390x-*linux*)
Chris@19 7867 LD="${LD-ld} -m elf_s390"
Chris@19 7868 ;;
Chris@19 7869 sparc64-*linux*)
Chris@19 7870 LD="${LD-ld} -m elf32_sparc"
Chris@19 7871 ;;
Chris@19 7872 esac
Chris@19 7873 ;;
Chris@19 7874 *64-bit*)
Chris@19 7875 case $host in
Chris@19 7876 x86_64-*kfreebsd*-gnu)
Chris@19 7877 LD="${LD-ld} -m elf_x86_64_fbsd"
Chris@19 7878 ;;
Chris@19 7879 x86_64-*linux*)
Chris@19 7880 LD="${LD-ld} -m elf_x86_64"
Chris@19 7881 ;;
Chris@19 7882 ppc*-*linux*|powerpc*-*linux*)
Chris@19 7883 LD="${LD-ld} -m elf64ppc"
Chris@19 7884 ;;
Chris@19 7885 s390*-*linux*|s390*-*tpf*)
Chris@19 7886 LD="${LD-ld} -m elf64_s390"
Chris@19 7887 ;;
Chris@19 7888 sparc*-*linux*)
Chris@19 7889 LD="${LD-ld} -m elf64_sparc"
Chris@19 7890 ;;
Chris@19 7891 esac
Chris@19 7892 ;;
Chris@19 7893 esac
Chris@19 7894 fi
Chris@19 7895 rm -rf conftest*
Chris@19 7896 ;;
Chris@19 7897
Chris@19 7898 *-*-sco3.2v5*)
Chris@19 7899 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
Chris@19 7900 SAVE_CFLAGS="$CFLAGS"
Chris@19 7901 CFLAGS="$CFLAGS -belf"
Chris@19 7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
Chris@19 7903 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Chris@19 7904 if ${lt_cv_cc_needs_belf+:} false; then :
Chris@19 7905 $as_echo_n "(cached) " >&6
Chris@19 7906 else
Chris@19 7907 ac_ext=c
Chris@19 7908 ac_cpp='$CPP $CPPFLAGS'
Chris@19 7909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@19 7910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 7911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@19 7912
Chris@19 7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 7914 /* end confdefs.h. */
Chris@19 7915
Chris@19 7916 int
Chris@19 7917 main ()
Chris@19 7918 {
Chris@19 7919
Chris@19 7920 ;
Chris@19 7921 return 0;
Chris@19 7922 }
Chris@19 7923 _ACEOF
Chris@19 7924 if ac_fn_c_try_link "$LINENO"; then :
Chris@19 7925 lt_cv_cc_needs_belf=yes
Chris@19 7926 else
Chris@19 7927 lt_cv_cc_needs_belf=no
Chris@19 7928 fi
Chris@19 7929 rm -f core conftest.err conftest.$ac_objext \
Chris@19 7930 conftest$ac_exeext conftest.$ac_ext
Chris@19 7931 ac_ext=c
Chris@19 7932 ac_cpp='$CPP $CPPFLAGS'
Chris@19 7933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@19 7934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 7935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@19 7936
Chris@19 7937 fi
Chris@19 7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
Chris@19 7939 $as_echo "$lt_cv_cc_needs_belf" >&6; }
Chris@19 7940 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
Chris@19 7941 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
Chris@19 7942 CFLAGS="$SAVE_CFLAGS"
Chris@19 7943 fi
Chris@19 7944 ;;
Chris@19 7945 *-*solaris*)
Chris@19 7946 # Find out which ABI we are using.
Chris@19 7947 echo 'int i;' > conftest.$ac_ext
Chris@19 7948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@19 7949 (eval $ac_compile) 2>&5
Chris@19 7950 ac_status=$?
Chris@19 7951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@19 7952 test $ac_status = 0; }; then
Chris@19 7953 case `/usr/bin/file conftest.o` in
Chris@19 7954 *64-bit*)
Chris@19 7955 case $lt_cv_prog_gnu_ld in
Chris@19 7956 yes*)
Chris@19 7957 case $host in
Chris@19 7958 i?86-*-solaris*)
Chris@19 7959 LD="${LD-ld} -m elf_x86_64"
Chris@19 7960 ;;
Chris@19 7961 sparc*-*-solaris*)
Chris@19 7962 LD="${LD-ld} -m elf64_sparc"
Chris@19 7963 ;;
Chris@19 7964 esac
Chris@19 7965 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
Chris@19 7966 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
Chris@19 7967 LD="${LD-ld}_sol2"
Chris@19 7968 fi
Chris@19 7969 ;;
Chris@19 7970 *)
Chris@19 7971 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
Chris@19 7972 LD="${LD-ld} -64"
Chris@19 7973 fi
Chris@19 7974 ;;
Chris@19 7975 esac
Chris@19 7976 ;;
Chris@19 7977 esac
Chris@19 7978 fi
Chris@19 7979 rm -rf conftest*
Chris@19 7980 ;;
Chris@19 7981 esac
Chris@19 7982
Chris@19 7983 need_locks="$enable_libtool_lock"
Chris@19 7984
Chris@19 7985 if test -n "$ac_tool_prefix"; then
Chris@19 7986 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
Chris@19 7987 set dummy ${ac_tool_prefix}mt; ac_word=$2
Chris@19 7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 7989 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 7990 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
Chris@19 7991 $as_echo_n "(cached) " >&6
Chris@19 7992 else
Chris@19 7993 if test -n "$MANIFEST_TOOL"; then
Chris@19 7994 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
Chris@19 7995 else
Chris@19 7996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 7997 for as_dir in $PATH
Chris@19 7998 do
Chris@19 7999 IFS=$as_save_IFS
Chris@19 8000 test -z "$as_dir" && as_dir=.
Chris@19 8001 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 8002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 8003 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
Chris@19 8004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 8005 break 2
Chris@19 8006 fi
Chris@19 8007 done
Chris@19 8008 done
Chris@19 8009 IFS=$as_save_IFS
Chris@19 8010
Chris@19 8011 fi
Chris@19 8012 fi
Chris@19 8013 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
Chris@19 8014 if test -n "$MANIFEST_TOOL"; then
Chris@19 8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
Chris@19 8016 $as_echo "$MANIFEST_TOOL" >&6; }
Chris@19 8017 else
Chris@19 8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 8019 $as_echo "no" >&6; }
Chris@19 8020 fi
Chris@19 8021
Chris@19 8022
Chris@19 8023 fi
Chris@19 8024 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
Chris@19 8025 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
Chris@19 8026 # Extract the first word of "mt", so it can be a program name with args.
Chris@19 8027 set dummy mt; ac_word=$2
Chris@19 8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 8029 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 8030 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
Chris@19 8031 $as_echo_n "(cached) " >&6
Chris@19 8032 else
Chris@19 8033 if test -n "$ac_ct_MANIFEST_TOOL"; then
Chris@19 8034 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
Chris@19 8035 else
Chris@19 8036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 8037 for as_dir in $PATH
Chris@19 8038 do
Chris@19 8039 IFS=$as_save_IFS
Chris@19 8040 test -z "$as_dir" && as_dir=.
Chris@19 8041 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 8042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 8043 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
Chris@19 8044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 8045 break 2
Chris@19 8046 fi
Chris@19 8047 done
Chris@19 8048 done
Chris@19 8049 IFS=$as_save_IFS
Chris@19 8050
Chris@19 8051 fi
Chris@19 8052 fi
Chris@19 8053 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
Chris@19 8054 if test -n "$ac_ct_MANIFEST_TOOL"; then
Chris@19 8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
Chris@19 8056 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
Chris@19 8057 else
Chris@19 8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 8059 $as_echo "no" >&6; }
Chris@19 8060 fi
Chris@19 8061
Chris@19 8062 if test "x$ac_ct_MANIFEST_TOOL" = x; then
Chris@19 8063 MANIFEST_TOOL=":"
Chris@19 8064 else
Chris@19 8065 case $cross_compiling:$ac_tool_warned in
Chris@19 8066 yes:)
Chris@19 8067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@19 8068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@19 8069 ac_tool_warned=yes ;;
Chris@19 8070 esac
Chris@19 8071 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
Chris@19 8072 fi
Chris@19 8073 else
Chris@19 8074 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
Chris@19 8075 fi
Chris@19 8076
Chris@19 8077 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
Chris@19 8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
Chris@19 8079 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
Chris@19 8080 if ${lt_cv_path_mainfest_tool+:} false; then :
Chris@19 8081 $as_echo_n "(cached) " >&6
Chris@19 8082 else
Chris@19 8083 lt_cv_path_mainfest_tool=no
Chris@19 8084 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
Chris@19 8085 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
Chris@19 8086 cat conftest.err >&5
Chris@19 8087 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
Chris@19 8088 lt_cv_path_mainfest_tool=yes
Chris@19 8089 fi
Chris@19 8090 rm -f conftest*
Chris@19 8091 fi
Chris@19 8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
Chris@19 8093 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
Chris@19 8094 if test "x$lt_cv_path_mainfest_tool" != xyes; then
Chris@19 8095 MANIFEST_TOOL=:
Chris@19 8096 fi
Chris@19 8097
Chris@19 8098
Chris@19 8099
Chris@19 8100
Chris@19 8101
Chris@19 8102
Chris@19 8103 case $host_os in
Chris@19 8104 rhapsody* | darwin*)
Chris@19 8105 if test -n "$ac_tool_prefix"; then
Chris@19 8106 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
Chris@19 8107 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Chris@19 8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 8109 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 8110 if ${ac_cv_prog_DSYMUTIL+:} false; then :
Chris@19 8111 $as_echo_n "(cached) " >&6
Chris@19 8112 else
Chris@19 8113 if test -n "$DSYMUTIL"; then
Chris@19 8114 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
Chris@19 8115 else
Chris@19 8116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 8117 for as_dir in $PATH
Chris@19 8118 do
Chris@19 8119 IFS=$as_save_IFS
Chris@19 8120 test -z "$as_dir" && as_dir=.
Chris@19 8121 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 8122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 8123 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Chris@19 8124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 8125 break 2
Chris@19 8126 fi
Chris@19 8127 done
Chris@19 8128 done
Chris@19 8129 IFS=$as_save_IFS
Chris@19 8130
Chris@19 8131 fi
Chris@19 8132 fi
Chris@19 8133 DSYMUTIL=$ac_cv_prog_DSYMUTIL
Chris@19 8134 if test -n "$DSYMUTIL"; then
Chris@19 8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
Chris@19 8136 $as_echo "$DSYMUTIL" >&6; }
Chris@19 8137 else
Chris@19 8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 8139 $as_echo "no" >&6; }
Chris@19 8140 fi
Chris@19 8141
Chris@19 8142
Chris@19 8143 fi
Chris@19 8144 if test -z "$ac_cv_prog_DSYMUTIL"; then
Chris@19 8145 ac_ct_DSYMUTIL=$DSYMUTIL
Chris@19 8146 # Extract the first word of "dsymutil", so it can be a program name with args.
Chris@19 8147 set dummy dsymutil; ac_word=$2
Chris@19 8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 8149 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 8150 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Chris@19 8151 $as_echo_n "(cached) " >&6
Chris@19 8152 else
Chris@19 8153 if test -n "$ac_ct_DSYMUTIL"; then
Chris@19 8154 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
Chris@19 8155 else
Chris@19 8156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 8157 for as_dir in $PATH
Chris@19 8158 do
Chris@19 8159 IFS=$as_save_IFS
Chris@19 8160 test -z "$as_dir" && as_dir=.
Chris@19 8161 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 8162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 8163 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Chris@19 8164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 8165 break 2
Chris@19 8166 fi
Chris@19 8167 done
Chris@19 8168 done
Chris@19 8169 IFS=$as_save_IFS
Chris@19 8170
Chris@19 8171 fi
Chris@19 8172 fi
Chris@19 8173 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
Chris@19 8174 if test -n "$ac_ct_DSYMUTIL"; then
Chris@19 8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
Chris@19 8176 $as_echo "$ac_ct_DSYMUTIL" >&6; }
Chris@19 8177 else
Chris@19 8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 8179 $as_echo "no" >&6; }
Chris@19 8180 fi
Chris@19 8181
Chris@19 8182 if test "x$ac_ct_DSYMUTIL" = x; then
Chris@19 8183 DSYMUTIL=":"
Chris@19 8184 else
Chris@19 8185 case $cross_compiling:$ac_tool_warned in
Chris@19 8186 yes:)
Chris@19 8187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@19 8188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@19 8189 ac_tool_warned=yes ;;
Chris@19 8190 esac
Chris@19 8191 DSYMUTIL=$ac_ct_DSYMUTIL
Chris@19 8192 fi
Chris@19 8193 else
Chris@19 8194 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
Chris@19 8195 fi
Chris@19 8196
Chris@19 8197 if test -n "$ac_tool_prefix"; then
Chris@19 8198 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
Chris@19 8199 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Chris@19 8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 8201 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 8202 if ${ac_cv_prog_NMEDIT+:} false; then :
Chris@19 8203 $as_echo_n "(cached) " >&6
Chris@19 8204 else
Chris@19 8205 if test -n "$NMEDIT"; then
Chris@19 8206 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
Chris@19 8207 else
Chris@19 8208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 8209 for as_dir in $PATH
Chris@19 8210 do
Chris@19 8211 IFS=$as_save_IFS
Chris@19 8212 test -z "$as_dir" && as_dir=.
Chris@19 8213 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 8214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 8215 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Chris@19 8216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 8217 break 2
Chris@19 8218 fi
Chris@19 8219 done
Chris@19 8220 done
Chris@19 8221 IFS=$as_save_IFS
Chris@19 8222
Chris@19 8223 fi
Chris@19 8224 fi
Chris@19 8225 NMEDIT=$ac_cv_prog_NMEDIT
Chris@19 8226 if test -n "$NMEDIT"; then
Chris@19 8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
Chris@19 8228 $as_echo "$NMEDIT" >&6; }
Chris@19 8229 else
Chris@19 8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 8231 $as_echo "no" >&6; }
Chris@19 8232 fi
Chris@19 8233
Chris@19 8234
Chris@19 8235 fi
Chris@19 8236 if test -z "$ac_cv_prog_NMEDIT"; then
Chris@19 8237 ac_ct_NMEDIT=$NMEDIT
Chris@19 8238 # Extract the first word of "nmedit", so it can be a program name with args.
Chris@19 8239 set dummy nmedit; ac_word=$2
Chris@19 8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 8241 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 8242 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Chris@19 8243 $as_echo_n "(cached) " >&6
Chris@19 8244 else
Chris@19 8245 if test -n "$ac_ct_NMEDIT"; then
Chris@19 8246 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
Chris@19 8247 else
Chris@19 8248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 8249 for as_dir in $PATH
Chris@19 8250 do
Chris@19 8251 IFS=$as_save_IFS
Chris@19 8252 test -z "$as_dir" && as_dir=.
Chris@19 8253 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 8254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 8255 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Chris@19 8256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 8257 break 2
Chris@19 8258 fi
Chris@19 8259 done
Chris@19 8260 done
Chris@19 8261 IFS=$as_save_IFS
Chris@19 8262
Chris@19 8263 fi
Chris@19 8264 fi
Chris@19 8265 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
Chris@19 8266 if test -n "$ac_ct_NMEDIT"; then
Chris@19 8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
Chris@19 8268 $as_echo "$ac_ct_NMEDIT" >&6; }
Chris@19 8269 else
Chris@19 8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 8271 $as_echo "no" >&6; }
Chris@19 8272 fi
Chris@19 8273
Chris@19 8274 if test "x$ac_ct_NMEDIT" = x; then
Chris@19 8275 NMEDIT=":"
Chris@19 8276 else
Chris@19 8277 case $cross_compiling:$ac_tool_warned in
Chris@19 8278 yes:)
Chris@19 8279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@19 8280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@19 8281 ac_tool_warned=yes ;;
Chris@19 8282 esac
Chris@19 8283 NMEDIT=$ac_ct_NMEDIT
Chris@19 8284 fi
Chris@19 8285 else
Chris@19 8286 NMEDIT="$ac_cv_prog_NMEDIT"
Chris@19 8287 fi
Chris@19 8288
Chris@19 8289 if test -n "$ac_tool_prefix"; then
Chris@19 8290 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
Chris@19 8291 set dummy ${ac_tool_prefix}lipo; ac_word=$2
Chris@19 8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 8293 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 8294 if ${ac_cv_prog_LIPO+:} false; then :
Chris@19 8295 $as_echo_n "(cached) " >&6
Chris@19 8296 else
Chris@19 8297 if test -n "$LIPO"; then
Chris@19 8298 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
Chris@19 8299 else
Chris@19 8300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 8301 for as_dir in $PATH
Chris@19 8302 do
Chris@19 8303 IFS=$as_save_IFS
Chris@19 8304 test -z "$as_dir" && as_dir=.
Chris@19 8305 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 8306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 8307 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Chris@19 8308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 8309 break 2
Chris@19 8310 fi
Chris@19 8311 done
Chris@19 8312 done
Chris@19 8313 IFS=$as_save_IFS
Chris@19 8314
Chris@19 8315 fi
Chris@19 8316 fi
Chris@19 8317 LIPO=$ac_cv_prog_LIPO
Chris@19 8318 if test -n "$LIPO"; then
Chris@19 8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
Chris@19 8320 $as_echo "$LIPO" >&6; }
Chris@19 8321 else
Chris@19 8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 8323 $as_echo "no" >&6; }
Chris@19 8324 fi
Chris@19 8325
Chris@19 8326
Chris@19 8327 fi
Chris@19 8328 if test -z "$ac_cv_prog_LIPO"; then
Chris@19 8329 ac_ct_LIPO=$LIPO
Chris@19 8330 # Extract the first word of "lipo", so it can be a program name with args.
Chris@19 8331 set dummy lipo; ac_word=$2
Chris@19 8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 8333 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 8334 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Chris@19 8335 $as_echo_n "(cached) " >&6
Chris@19 8336 else
Chris@19 8337 if test -n "$ac_ct_LIPO"; then
Chris@19 8338 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
Chris@19 8339 else
Chris@19 8340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 8341 for as_dir in $PATH
Chris@19 8342 do
Chris@19 8343 IFS=$as_save_IFS
Chris@19 8344 test -z "$as_dir" && as_dir=.
Chris@19 8345 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 8346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 8347 ac_cv_prog_ac_ct_LIPO="lipo"
Chris@19 8348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 8349 break 2
Chris@19 8350 fi
Chris@19 8351 done
Chris@19 8352 done
Chris@19 8353 IFS=$as_save_IFS
Chris@19 8354
Chris@19 8355 fi
Chris@19 8356 fi
Chris@19 8357 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
Chris@19 8358 if test -n "$ac_ct_LIPO"; then
Chris@19 8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
Chris@19 8360 $as_echo "$ac_ct_LIPO" >&6; }
Chris@19 8361 else
Chris@19 8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 8363 $as_echo "no" >&6; }
Chris@19 8364 fi
Chris@19 8365
Chris@19 8366 if test "x$ac_ct_LIPO" = x; then
Chris@19 8367 LIPO=":"
Chris@19 8368 else
Chris@19 8369 case $cross_compiling:$ac_tool_warned in
Chris@19 8370 yes:)
Chris@19 8371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@19 8372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@19 8373 ac_tool_warned=yes ;;
Chris@19 8374 esac
Chris@19 8375 LIPO=$ac_ct_LIPO
Chris@19 8376 fi
Chris@19 8377 else
Chris@19 8378 LIPO="$ac_cv_prog_LIPO"
Chris@19 8379 fi
Chris@19 8380
Chris@19 8381 if test -n "$ac_tool_prefix"; then
Chris@19 8382 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
Chris@19 8383 set dummy ${ac_tool_prefix}otool; ac_word=$2
Chris@19 8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 8385 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 8386 if ${ac_cv_prog_OTOOL+:} false; then :
Chris@19 8387 $as_echo_n "(cached) " >&6
Chris@19 8388 else
Chris@19 8389 if test -n "$OTOOL"; then
Chris@19 8390 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
Chris@19 8391 else
Chris@19 8392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 8393 for as_dir in $PATH
Chris@19 8394 do
Chris@19 8395 IFS=$as_save_IFS
Chris@19 8396 test -z "$as_dir" && as_dir=.
Chris@19 8397 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 8398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 8399 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Chris@19 8400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 8401 break 2
Chris@19 8402 fi
Chris@19 8403 done
Chris@19 8404 done
Chris@19 8405 IFS=$as_save_IFS
Chris@19 8406
Chris@19 8407 fi
Chris@19 8408 fi
Chris@19 8409 OTOOL=$ac_cv_prog_OTOOL
Chris@19 8410 if test -n "$OTOOL"; then
Chris@19 8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
Chris@19 8412 $as_echo "$OTOOL" >&6; }
Chris@19 8413 else
Chris@19 8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 8415 $as_echo "no" >&6; }
Chris@19 8416 fi
Chris@19 8417
Chris@19 8418
Chris@19 8419 fi
Chris@19 8420 if test -z "$ac_cv_prog_OTOOL"; then
Chris@19 8421 ac_ct_OTOOL=$OTOOL
Chris@19 8422 # Extract the first word of "otool", so it can be a program name with args.
Chris@19 8423 set dummy otool; ac_word=$2
Chris@19 8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 8425 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 8426 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Chris@19 8427 $as_echo_n "(cached) " >&6
Chris@19 8428 else
Chris@19 8429 if test -n "$ac_ct_OTOOL"; then
Chris@19 8430 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
Chris@19 8431 else
Chris@19 8432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 8433 for as_dir in $PATH
Chris@19 8434 do
Chris@19 8435 IFS=$as_save_IFS
Chris@19 8436 test -z "$as_dir" && as_dir=.
Chris@19 8437 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 8438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 8439 ac_cv_prog_ac_ct_OTOOL="otool"
Chris@19 8440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 8441 break 2
Chris@19 8442 fi
Chris@19 8443 done
Chris@19 8444 done
Chris@19 8445 IFS=$as_save_IFS
Chris@19 8446
Chris@19 8447 fi
Chris@19 8448 fi
Chris@19 8449 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
Chris@19 8450 if test -n "$ac_ct_OTOOL"; then
Chris@19 8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
Chris@19 8452 $as_echo "$ac_ct_OTOOL" >&6; }
Chris@19 8453 else
Chris@19 8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 8455 $as_echo "no" >&6; }
Chris@19 8456 fi
Chris@19 8457
Chris@19 8458 if test "x$ac_ct_OTOOL" = x; then
Chris@19 8459 OTOOL=":"
Chris@19 8460 else
Chris@19 8461 case $cross_compiling:$ac_tool_warned in
Chris@19 8462 yes:)
Chris@19 8463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@19 8464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@19 8465 ac_tool_warned=yes ;;
Chris@19 8466 esac
Chris@19 8467 OTOOL=$ac_ct_OTOOL
Chris@19 8468 fi
Chris@19 8469 else
Chris@19 8470 OTOOL="$ac_cv_prog_OTOOL"
Chris@19 8471 fi
Chris@19 8472
Chris@19 8473 if test -n "$ac_tool_prefix"; then
Chris@19 8474 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
Chris@19 8475 set dummy ${ac_tool_prefix}otool64; ac_word=$2
Chris@19 8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 8477 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 8478 if ${ac_cv_prog_OTOOL64+:} false; then :
Chris@19 8479 $as_echo_n "(cached) " >&6
Chris@19 8480 else
Chris@19 8481 if test -n "$OTOOL64"; then
Chris@19 8482 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
Chris@19 8483 else
Chris@19 8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 8485 for as_dir in $PATH
Chris@19 8486 do
Chris@19 8487 IFS=$as_save_IFS
Chris@19 8488 test -z "$as_dir" && as_dir=.
Chris@19 8489 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 8490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 8491 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Chris@19 8492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 8493 break 2
Chris@19 8494 fi
Chris@19 8495 done
Chris@19 8496 done
Chris@19 8497 IFS=$as_save_IFS
Chris@19 8498
Chris@19 8499 fi
Chris@19 8500 fi
Chris@19 8501 OTOOL64=$ac_cv_prog_OTOOL64
Chris@19 8502 if test -n "$OTOOL64"; then
Chris@19 8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
Chris@19 8504 $as_echo "$OTOOL64" >&6; }
Chris@19 8505 else
Chris@19 8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 8507 $as_echo "no" >&6; }
Chris@19 8508 fi
Chris@19 8509
Chris@19 8510
Chris@19 8511 fi
Chris@19 8512 if test -z "$ac_cv_prog_OTOOL64"; then
Chris@19 8513 ac_ct_OTOOL64=$OTOOL64
Chris@19 8514 # Extract the first word of "otool64", so it can be a program name with args.
Chris@19 8515 set dummy otool64; ac_word=$2
Chris@19 8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 8517 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 8518 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Chris@19 8519 $as_echo_n "(cached) " >&6
Chris@19 8520 else
Chris@19 8521 if test -n "$ac_ct_OTOOL64"; then
Chris@19 8522 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
Chris@19 8523 else
Chris@19 8524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 8525 for as_dir in $PATH
Chris@19 8526 do
Chris@19 8527 IFS=$as_save_IFS
Chris@19 8528 test -z "$as_dir" && as_dir=.
Chris@19 8529 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 8530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 8531 ac_cv_prog_ac_ct_OTOOL64="otool64"
Chris@19 8532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 8533 break 2
Chris@19 8534 fi
Chris@19 8535 done
Chris@19 8536 done
Chris@19 8537 IFS=$as_save_IFS
Chris@19 8538
Chris@19 8539 fi
Chris@19 8540 fi
Chris@19 8541 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
Chris@19 8542 if test -n "$ac_ct_OTOOL64"; then
Chris@19 8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
Chris@19 8544 $as_echo "$ac_ct_OTOOL64" >&6; }
Chris@19 8545 else
Chris@19 8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 8547 $as_echo "no" >&6; }
Chris@19 8548 fi
Chris@19 8549
Chris@19 8550 if test "x$ac_ct_OTOOL64" = x; then
Chris@19 8551 OTOOL64=":"
Chris@19 8552 else
Chris@19 8553 case $cross_compiling:$ac_tool_warned in
Chris@19 8554 yes:)
Chris@19 8555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@19 8556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@19 8557 ac_tool_warned=yes ;;
Chris@19 8558 esac
Chris@19 8559 OTOOL64=$ac_ct_OTOOL64
Chris@19 8560 fi
Chris@19 8561 else
Chris@19 8562 OTOOL64="$ac_cv_prog_OTOOL64"
Chris@19 8563 fi
Chris@19 8564
Chris@19 8565
Chris@19 8566
Chris@19 8567
Chris@19 8568
Chris@19 8569
Chris@19 8570
Chris@19 8571
Chris@19 8572
Chris@19 8573
Chris@19 8574
Chris@19 8575
Chris@19 8576
Chris@19 8577
Chris@19 8578
Chris@19 8579
Chris@19 8580
Chris@19 8581
Chris@19 8582
Chris@19 8583
Chris@19 8584
Chris@19 8585
Chris@19 8586
Chris@19 8587
Chris@19 8588
Chris@19 8589
Chris@19 8590
Chris@19 8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
Chris@19 8592 $as_echo_n "checking for -single_module linker flag... " >&6; }
Chris@19 8593 if ${lt_cv_apple_cc_single_mod+:} false; then :
Chris@19 8594 $as_echo_n "(cached) " >&6
Chris@19 8595 else
Chris@19 8596 lt_cv_apple_cc_single_mod=no
Chris@19 8597 if test -z "${LT_MULTI_MODULE}"; then
Chris@19 8598 # By default we will add the -single_module flag. You can override
Chris@19 8599 # by either setting the environment variable LT_MULTI_MODULE
Chris@19 8600 # non-empty at configure time, or by adding -multi_module to the
Chris@19 8601 # link flags.
Chris@19 8602 rm -rf libconftest.dylib*
Chris@19 8603 echo "int foo(void){return 1;}" > conftest.c
Chris@19 8604 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
Chris@19 8605 -dynamiclib -Wl,-single_module conftest.c" >&5
Chris@19 8606 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
Chris@19 8607 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
Chris@19 8608 _lt_result=$?
Chris@19 8609 # If there is a non-empty error log, and "single_module"
Chris@19 8610 # appears in it, assume the flag caused a linker warning
Chris@19 8611 if test -s conftest.err && $GREP single_module conftest.err; then
Chris@19 8612 cat conftest.err >&5
Chris@19 8613 # Otherwise, if the output was created with a 0 exit code from
Chris@19 8614 # the compiler, it worked.
Chris@19 8615 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
Chris@19 8616 lt_cv_apple_cc_single_mod=yes
Chris@19 8617 else
Chris@19 8618 cat conftest.err >&5
Chris@19 8619 fi
Chris@19 8620 rm -rf libconftest.dylib*
Chris@19 8621 rm -f conftest.*
Chris@19 8622 fi
Chris@19 8623 fi
Chris@19 8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
Chris@19 8625 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Chris@19 8626
Chris@19 8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
Chris@19 8628 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Chris@19 8629 if ${lt_cv_ld_exported_symbols_list+:} false; then :
Chris@19 8630 $as_echo_n "(cached) " >&6
Chris@19 8631 else
Chris@19 8632 lt_cv_ld_exported_symbols_list=no
Chris@19 8633 save_LDFLAGS=$LDFLAGS
Chris@19 8634 echo "_main" > conftest.sym
Chris@19 8635 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Chris@19 8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 8637 /* end confdefs.h. */
Chris@19 8638
Chris@19 8639 int
Chris@19 8640 main ()
Chris@19 8641 {
Chris@19 8642
Chris@19 8643 ;
Chris@19 8644 return 0;
Chris@19 8645 }
Chris@19 8646 _ACEOF
Chris@19 8647 if ac_fn_c_try_link "$LINENO"; then :
Chris@19 8648 lt_cv_ld_exported_symbols_list=yes
Chris@19 8649 else
Chris@19 8650 lt_cv_ld_exported_symbols_list=no
Chris@19 8651 fi
Chris@19 8652 rm -f core conftest.err conftest.$ac_objext \
Chris@19 8653 conftest$ac_exeext conftest.$ac_ext
Chris@19 8654 LDFLAGS="$save_LDFLAGS"
Chris@19 8655
Chris@19 8656 fi
Chris@19 8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
Chris@19 8658 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Chris@19 8659
Chris@19 8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
Chris@19 8661 $as_echo_n "checking for -force_load linker flag... " >&6; }
Chris@19 8662 if ${lt_cv_ld_force_load+:} false; then :
Chris@19 8663 $as_echo_n "(cached) " >&6
Chris@19 8664 else
Chris@19 8665 lt_cv_ld_force_load=no
Chris@19 8666 cat > conftest.c << _LT_EOF
Chris@19 8667 int forced_loaded() { return 2;}
Chris@19 8668 _LT_EOF
Chris@19 8669 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
Chris@19 8670 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
Chris@19 8671 echo "$AR cru libconftest.a conftest.o" >&5
Chris@19 8672 $AR cru libconftest.a conftest.o 2>&5
Chris@19 8673 echo "$RANLIB libconftest.a" >&5
Chris@19 8674 $RANLIB libconftest.a 2>&5
Chris@19 8675 cat > conftest.c << _LT_EOF
Chris@19 8676 int main() { return 0;}
Chris@19 8677 _LT_EOF
Chris@19 8678 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
Chris@19 8679 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
Chris@19 8680 _lt_result=$?
Chris@19 8681 if test -s conftest.err && $GREP force_load conftest.err; then
Chris@19 8682 cat conftest.err >&5
Chris@19 8683 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
Chris@19 8684 lt_cv_ld_force_load=yes
Chris@19 8685 else
Chris@19 8686 cat conftest.err >&5
Chris@19 8687 fi
Chris@19 8688 rm -f conftest.err libconftest.a conftest conftest.c
Chris@19 8689 rm -rf conftest.dSYM
Chris@19 8690
Chris@19 8691 fi
Chris@19 8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
Chris@19 8693 $as_echo "$lt_cv_ld_force_load" >&6; }
Chris@19 8694 case $host_os in
Chris@19 8695 rhapsody* | darwin1.[012])
Chris@19 8696 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
Chris@19 8697 darwin1.*)
Chris@19 8698 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
Chris@19 8699 darwin*) # darwin 5.x on
Chris@19 8700 # if running on 10.5 or later, the deployment target defaults
Chris@19 8701 # to the OS version, if on x86, and 10.4, the deployment
Chris@19 8702 # target defaults to 10.4. Don't you love it?
Chris@19 8703 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
Chris@19 8704 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
Chris@19 8705 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
Chris@19 8706 10.[012]*)
Chris@19 8707 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
Chris@19 8708 10.*)
Chris@19 8709 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
Chris@19 8710 esac
Chris@19 8711 ;;
Chris@19 8712 esac
Chris@19 8713 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
Chris@19 8714 _lt_dar_single_mod='$single_module'
Chris@19 8715 fi
Chris@19 8716 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
Chris@19 8717 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
Chris@19 8718 else
Chris@19 8719 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
Chris@19 8720 fi
Chris@19 8721 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
Chris@19 8722 _lt_dsymutil='~$DSYMUTIL $lib || :'
Chris@19 8723 else
Chris@19 8724 _lt_dsymutil=
Chris@19 8725 fi
Chris@19 8726 ;;
Chris@19 8727 esac
Chris@19 8728
Chris@19 8729 ac_ext=c
Chris@19 8730 ac_cpp='$CPP $CPPFLAGS'
Chris@19 8731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@19 8732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 8733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@19 8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Chris@19 8735 $as_echo_n "checking how to run the C preprocessor... " >&6; }
Chris@19 8736 # On Suns, sometimes $CPP names a directory.
Chris@19 8737 if test -n "$CPP" && test -d "$CPP"; then
Chris@19 8738 CPP=
Chris@19 8739 fi
Chris@19 8740 if test -z "$CPP"; then
Chris@19 8741 if ${ac_cv_prog_CPP+:} false; then :
Chris@19 8742 $as_echo_n "(cached) " >&6
Chris@19 8743 else
Chris@19 8744 # Double quotes because CPP needs to be expanded
Chris@19 8745 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
Chris@19 8746 do
Chris@19 8747 ac_preproc_ok=false
Chris@19 8748 for ac_c_preproc_warn_flag in '' yes
Chris@19 8749 do
Chris@19 8750 # Use a header file that comes with gcc, so configuring glibc
Chris@19 8751 # with a fresh cross-compiler works.
Chris@19 8752 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@19 8753 # <limits.h> exists even on freestanding compilers.
Chris@19 8754 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@19 8755 # not just through cpp. "Syntax error" is here to catch this case.
Chris@19 8756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 8757 /* end confdefs.h. */
Chris@19 8758 #ifdef __STDC__
Chris@19 8759 # include <limits.h>
Chris@19 8760 #else
Chris@19 8761 # include <assert.h>
Chris@19 8762 #endif
Chris@19 8763 Syntax error
Chris@19 8764 _ACEOF
Chris@19 8765 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@19 8766
Chris@19 8767 else
Chris@19 8768 # Broken: fails on valid input.
Chris@19 8769 continue
Chris@19 8770 fi
Chris@19 8771 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@19 8772
Chris@19 8773 # OK, works on sane cases. Now check whether nonexistent headers
Chris@19 8774 # can be detected and how.
Chris@19 8775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 8776 /* end confdefs.h. */
Chris@19 8777 #include <ac_nonexistent.h>
Chris@19 8778 _ACEOF
Chris@19 8779 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@19 8780 # Broken: success on invalid input.
Chris@19 8781 continue
Chris@19 8782 else
Chris@19 8783 # Passes both tests.
Chris@19 8784 ac_preproc_ok=:
Chris@19 8785 break
Chris@19 8786 fi
Chris@19 8787 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@19 8788
Chris@19 8789 done
Chris@19 8790 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@19 8791 rm -f conftest.i conftest.err conftest.$ac_ext
Chris@19 8792 if $ac_preproc_ok; then :
Chris@19 8793 break
Chris@19 8794 fi
Chris@19 8795
Chris@19 8796 done
Chris@19 8797 ac_cv_prog_CPP=$CPP
Chris@19 8798
Chris@19 8799 fi
Chris@19 8800 CPP=$ac_cv_prog_CPP
Chris@19 8801 else
Chris@19 8802 ac_cv_prog_CPP=$CPP
Chris@19 8803 fi
Chris@19 8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Chris@19 8805 $as_echo "$CPP" >&6; }
Chris@19 8806 ac_preproc_ok=false
Chris@19 8807 for ac_c_preproc_warn_flag in '' yes
Chris@19 8808 do
Chris@19 8809 # Use a header file that comes with gcc, so configuring glibc
Chris@19 8810 # with a fresh cross-compiler works.
Chris@19 8811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@19 8812 # <limits.h> exists even on freestanding compilers.
Chris@19 8813 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@19 8814 # not just through cpp. "Syntax error" is here to catch this case.
Chris@19 8815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 8816 /* end confdefs.h. */
Chris@19 8817 #ifdef __STDC__
Chris@19 8818 # include <limits.h>
Chris@19 8819 #else
Chris@19 8820 # include <assert.h>
Chris@19 8821 #endif
Chris@19 8822 Syntax error
Chris@19 8823 _ACEOF
Chris@19 8824 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@19 8825
Chris@19 8826 else
Chris@19 8827 # Broken: fails on valid input.
Chris@19 8828 continue
Chris@19 8829 fi
Chris@19 8830 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@19 8831
Chris@19 8832 # OK, works on sane cases. Now check whether nonexistent headers
Chris@19 8833 # can be detected and how.
Chris@19 8834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 8835 /* end confdefs.h. */
Chris@19 8836 #include <ac_nonexistent.h>
Chris@19 8837 _ACEOF
Chris@19 8838 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@19 8839 # Broken: success on invalid input.
Chris@19 8840 continue
Chris@19 8841 else
Chris@19 8842 # Passes both tests.
Chris@19 8843 ac_preproc_ok=:
Chris@19 8844 break
Chris@19 8845 fi
Chris@19 8846 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@19 8847
Chris@19 8848 done
Chris@19 8849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@19 8850 rm -f conftest.i conftest.err conftest.$ac_ext
Chris@19 8851 if $ac_preproc_ok; then :
Chris@19 8852
Chris@19 8853 else
Chris@19 8854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@19 8855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@19 8856 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
Chris@19 8857 See \`config.log' for more details" "$LINENO" 5; }
Chris@19 8858 fi
Chris@19 8859
Chris@19 8860 ac_ext=c
Chris@19 8861 ac_cpp='$CPP $CPPFLAGS'
Chris@19 8862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@19 8863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 8864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@19 8865
Chris@19 8866
Chris@19 8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Chris@19 8868 $as_echo_n "checking for ANSI C header files... " >&6; }
Chris@19 8869 if ${ac_cv_header_stdc+:} false; then :
Chris@19 8870 $as_echo_n "(cached) " >&6
Chris@19 8871 else
Chris@19 8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 8873 /* end confdefs.h. */
Chris@19 8874 #include <stdlib.h>
Chris@19 8875 #include <stdarg.h>
Chris@19 8876 #include <string.h>
Chris@19 8877 #include <float.h>
Chris@19 8878
Chris@19 8879 int
Chris@19 8880 main ()
Chris@19 8881 {
Chris@19 8882
Chris@19 8883 ;
Chris@19 8884 return 0;
Chris@19 8885 }
Chris@19 8886 _ACEOF
Chris@19 8887 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 8888 ac_cv_header_stdc=yes
Chris@19 8889 else
Chris@19 8890 ac_cv_header_stdc=no
Chris@19 8891 fi
Chris@19 8892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 8893
Chris@19 8894 if test $ac_cv_header_stdc = yes; then
Chris@19 8895 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Chris@19 8896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 8897 /* end confdefs.h. */
Chris@19 8898 #include <string.h>
Chris@19 8899
Chris@19 8900 _ACEOF
Chris@19 8901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@19 8902 $EGREP "memchr" >/dev/null 2>&1; then :
Chris@19 8903
Chris@19 8904 else
Chris@19 8905 ac_cv_header_stdc=no
Chris@19 8906 fi
Chris@19 8907 rm -f conftest*
Chris@19 8908
Chris@19 8909 fi
Chris@19 8910
Chris@19 8911 if test $ac_cv_header_stdc = yes; then
Chris@19 8912 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Chris@19 8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 8914 /* end confdefs.h. */
Chris@19 8915 #include <stdlib.h>
Chris@19 8916
Chris@19 8917 _ACEOF
Chris@19 8918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@19 8919 $EGREP "free" >/dev/null 2>&1; then :
Chris@19 8920
Chris@19 8921 else
Chris@19 8922 ac_cv_header_stdc=no
Chris@19 8923 fi
Chris@19 8924 rm -f conftest*
Chris@19 8925
Chris@19 8926 fi
Chris@19 8927
Chris@19 8928 if test $ac_cv_header_stdc = yes; then
Chris@19 8929 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Chris@19 8930 if test "$cross_compiling" = yes; then :
Chris@19 8931 :
Chris@19 8932 else
Chris@19 8933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 8934 /* end confdefs.h. */
Chris@19 8935 #include <ctype.h>
Chris@19 8936 #include <stdlib.h>
Chris@19 8937 #if ((' ' & 0x0FF) == 0x020)
Chris@19 8938 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
Chris@19 8939 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Chris@19 8940 #else
Chris@19 8941 # define ISLOWER(c) \
Chris@19 8942 (('a' <= (c) && (c) <= 'i') \
Chris@19 8943 || ('j' <= (c) && (c) <= 'r') \
Chris@19 8944 || ('s' <= (c) && (c) <= 'z'))
Chris@19 8945 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
Chris@19 8946 #endif
Chris@19 8947
Chris@19 8948 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Chris@19 8949 int
Chris@19 8950 main ()
Chris@19 8951 {
Chris@19 8952 int i;
Chris@19 8953 for (i = 0; i < 256; i++)
Chris@19 8954 if (XOR (islower (i), ISLOWER (i))
Chris@19 8955 || toupper (i) != TOUPPER (i))
Chris@19 8956 return 2;
Chris@19 8957 return 0;
Chris@19 8958 }
Chris@19 8959 _ACEOF
Chris@19 8960 if ac_fn_c_try_run "$LINENO"; then :
Chris@19 8961
Chris@19 8962 else
Chris@19 8963 ac_cv_header_stdc=no
Chris@19 8964 fi
Chris@19 8965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@19 8966 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@19 8967 fi
Chris@19 8968
Chris@19 8969 fi
Chris@19 8970 fi
Chris@19 8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Chris@19 8972 $as_echo "$ac_cv_header_stdc" >&6; }
Chris@19 8973 if test $ac_cv_header_stdc = yes; then
Chris@19 8974
Chris@19 8975 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
Chris@19 8976
Chris@19 8977 fi
Chris@19 8978
Chris@19 8979 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
Chris@19 8980 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Chris@19 8981 inttypes.h stdint.h unistd.h
Chris@19 8982 do :
Chris@19 8983 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Chris@19 8984 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
Chris@19 8985 "
Chris@19 8986 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@19 8987 cat >>confdefs.h <<_ACEOF
Chris@19 8988 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris@19 8989 _ACEOF
Chris@19 8990
Chris@19 8991 fi
Chris@19 8992
Chris@19 8993 done
Chris@19 8994
Chris@19 8995
Chris@19 8996 for ac_header in dlfcn.h
Chris@19 8997 do :
Chris@19 8998 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
Chris@19 8999 "
Chris@19 9000 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Chris@19 9001 cat >>confdefs.h <<_ACEOF
Chris@19 9002 #define HAVE_DLFCN_H 1
Chris@19 9003 _ACEOF
Chris@19 9004
Chris@19 9005 fi
Chris@19 9006
Chris@19 9007 done
Chris@19 9008
Chris@19 9009
Chris@19 9010
Chris@19 9011
Chris@19 9012
Chris@19 9013 # Set options
Chris@19 9014
Chris@19 9015
Chris@19 9016
Chris@19 9017 enable_dlopen=no
Chris@19 9018
Chris@19 9019
Chris@19 9020
Chris@19 9021
Chris@19 9022 # Check whether --enable-static was given.
Chris@19 9023 if test "${enable_static+set}" = set; then :
Chris@19 9024 enableval=$enable_static; p=${PACKAGE-default}
Chris@19 9025 case $enableval in
Chris@19 9026 yes) enable_static=yes ;;
Chris@19 9027 no) enable_static=no ;;
Chris@19 9028 *)
Chris@19 9029 enable_static=no
Chris@19 9030 # Look at the argument we got. We use all the common list separators.
Chris@19 9031 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
Chris@19 9032 for pkg in $enableval; do
Chris@19 9033 IFS="$lt_save_ifs"
Chris@19 9034 if test "X$pkg" = "X$p"; then
Chris@19 9035 enable_static=yes
Chris@19 9036 fi
Chris@19 9037 done
Chris@19 9038 IFS="$lt_save_ifs"
Chris@19 9039 ;;
Chris@19 9040 esac
Chris@19 9041 else
Chris@19 9042 enable_static=yes
Chris@19 9043 fi
Chris@19 9044
Chris@19 9045
Chris@19 9046
Chris@19 9047
Chris@19 9048
Chris@19 9049
Chris@19 9050
Chris@19 9051
Chris@19 9052
Chris@19 9053
Chris@19 9054 # Check whether --with-pic was given.
Chris@19 9055 if test "${with_pic+set}" = set; then :
Chris@19 9056 withval=$with_pic; lt_p=${PACKAGE-default}
Chris@19 9057 case $withval in
Chris@19 9058 yes|no) pic_mode=$withval ;;
Chris@19 9059 *)
Chris@19 9060 pic_mode=default
Chris@19 9061 # Look at the argument we got. We use all the common list separators.
Chris@19 9062 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
Chris@19 9063 for lt_pkg in $withval; do
Chris@19 9064 IFS="$lt_save_ifs"
Chris@19 9065 if test "X$lt_pkg" = "X$lt_p"; then
Chris@19 9066 pic_mode=yes
Chris@19 9067 fi
Chris@19 9068 done
Chris@19 9069 IFS="$lt_save_ifs"
Chris@19 9070 ;;
Chris@19 9071 esac
Chris@19 9072 else
Chris@19 9073 pic_mode=default
Chris@19 9074 fi
Chris@19 9075
Chris@19 9076
Chris@19 9077 test -z "$pic_mode" && pic_mode=default
Chris@19 9078
Chris@19 9079
Chris@19 9080
Chris@19 9081
Chris@19 9082
Chris@19 9083
Chris@19 9084
Chris@19 9085 # Check whether --enable-fast-install was given.
Chris@19 9086 if test "${enable_fast_install+set}" = set; then :
Chris@19 9087 enableval=$enable_fast_install; p=${PACKAGE-default}
Chris@19 9088 case $enableval in
Chris@19 9089 yes) enable_fast_install=yes ;;
Chris@19 9090 no) enable_fast_install=no ;;
Chris@19 9091 *)
Chris@19 9092 enable_fast_install=no
Chris@19 9093 # Look at the argument we got. We use all the common list separators.
Chris@19 9094 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
Chris@19 9095 for pkg in $enableval; do
Chris@19 9096 IFS="$lt_save_ifs"
Chris@19 9097 if test "X$pkg" = "X$p"; then
Chris@19 9098 enable_fast_install=yes
Chris@19 9099 fi
Chris@19 9100 done
Chris@19 9101 IFS="$lt_save_ifs"
Chris@19 9102 ;;
Chris@19 9103 esac
Chris@19 9104 else
Chris@19 9105 enable_fast_install=yes
Chris@19 9106 fi
Chris@19 9107
Chris@19 9108
Chris@19 9109
Chris@19 9110
Chris@19 9111
Chris@19 9112
Chris@19 9113
Chris@19 9114
Chris@19 9115
Chris@19 9116
Chris@19 9117
Chris@19 9118 # This can be used to rebuild libtool when needed
Chris@19 9119 LIBTOOL_DEPS="$ltmain"
Chris@19 9120
Chris@19 9121 # Always use our own libtool.
Chris@19 9122 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
Chris@19 9123
Chris@19 9124
Chris@19 9125
Chris@19 9126
Chris@19 9127
Chris@19 9128
Chris@19 9129
Chris@19 9130
Chris@19 9131
Chris@19 9132
Chris@19 9133
Chris@19 9134
Chris@19 9135
Chris@19 9136
Chris@19 9137
Chris@19 9138
Chris@19 9139
Chris@19 9140
Chris@19 9141
Chris@19 9142
Chris@19 9143
Chris@19 9144
Chris@19 9145
Chris@19 9146
Chris@19 9147
Chris@19 9148
Chris@19 9149
Chris@19 9150
Chris@19 9151
Chris@19 9152
Chris@19 9153 test -z "$LN_S" && LN_S="ln -s"
Chris@19 9154
Chris@19 9155
Chris@19 9156
Chris@19 9157
Chris@19 9158
Chris@19 9159
Chris@19 9160
Chris@19 9161
Chris@19 9162
Chris@19 9163
Chris@19 9164
Chris@19 9165
Chris@19 9166
Chris@19 9167
Chris@19 9168 if test -n "${ZSH_VERSION+set}" ; then
Chris@19 9169 setopt NO_GLOB_SUBST
Chris@19 9170 fi
Chris@19 9171
Chris@19 9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
Chris@19 9173 $as_echo_n "checking for objdir... " >&6; }
Chris@19 9174 if ${lt_cv_objdir+:} false; then :
Chris@19 9175 $as_echo_n "(cached) " >&6
Chris@19 9176 else
Chris@19 9177 rm -f .libs 2>/dev/null
Chris@19 9178 mkdir .libs 2>/dev/null
Chris@19 9179 if test -d .libs; then
Chris@19 9180 lt_cv_objdir=.libs
Chris@19 9181 else
Chris@19 9182 # MS-DOS does not allow filenames that begin with a dot.
Chris@19 9183 lt_cv_objdir=_libs
Chris@19 9184 fi
Chris@19 9185 rmdir .libs 2>/dev/null
Chris@19 9186 fi
Chris@19 9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
Chris@19 9188 $as_echo "$lt_cv_objdir" >&6; }
Chris@19 9189 objdir=$lt_cv_objdir
Chris@19 9190
Chris@19 9191
Chris@19 9192
Chris@19 9193
Chris@19 9194
Chris@19 9195 cat >>confdefs.h <<_ACEOF
Chris@19 9196 #define LT_OBJDIR "$lt_cv_objdir/"
Chris@19 9197 _ACEOF
Chris@19 9198
Chris@19 9199
Chris@19 9200
Chris@19 9201
Chris@19 9202 case $host_os in
Chris@19 9203 aix3*)
Chris@19 9204 # AIX sometimes has problems with the GCC collect2 program. For some
Chris@19 9205 # reason, if we set the COLLECT_NAMES environment variable, the problems
Chris@19 9206 # vanish in a puff of smoke.
Chris@19 9207 if test "X${COLLECT_NAMES+set}" != Xset; then
Chris@19 9208 COLLECT_NAMES=
Chris@19 9209 export COLLECT_NAMES
Chris@19 9210 fi
Chris@19 9211 ;;
Chris@19 9212 esac
Chris@19 9213
Chris@19 9214 # Global variables:
Chris@19 9215 ofile=libtool
Chris@19 9216 can_build_shared=yes
Chris@19 9217
Chris@19 9218 # All known linkers require a `.a' archive for static linking (except MSVC,
Chris@19 9219 # which needs '.lib').
Chris@19 9220 libext=a
Chris@19 9221
Chris@19 9222 with_gnu_ld="$lt_cv_prog_gnu_ld"
Chris@19 9223
Chris@19 9224 old_CC="$CC"
Chris@19 9225 old_CFLAGS="$CFLAGS"
Chris@19 9226
Chris@19 9227 # Set sane defaults for various variables
Chris@19 9228 test -z "$CC" && CC=cc
Chris@19 9229 test -z "$LTCC" && LTCC=$CC
Chris@19 9230 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
Chris@19 9231 test -z "$LD" && LD=ld
Chris@19 9232 test -z "$ac_objext" && ac_objext=o
Chris@19 9233
Chris@19 9234 for cc_temp in $compiler""; do
Chris@19 9235 case $cc_temp in
Chris@19 9236 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
Chris@19 9237 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
Chris@19 9238 \-*) ;;
Chris@19 9239 *) break;;
Chris@19 9240 esac
Chris@19 9241 done
Chris@19 9242 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Chris@19 9243
Chris@19 9244
Chris@19 9245 # Only perform the check for file, if the check method requires it
Chris@19 9246 test -z "$MAGIC_CMD" && MAGIC_CMD=file
Chris@19 9247 case $deplibs_check_method in
Chris@19 9248 file_magic*)
Chris@19 9249 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Chris@19 9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
Chris@19 9251 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Chris@19 9252 if ${lt_cv_path_MAGIC_CMD+:} false; then :
Chris@19 9253 $as_echo_n "(cached) " >&6
Chris@19 9254 else
Chris@19 9255 case $MAGIC_CMD in
Chris@19 9256 [\\/*] | ?:[\\/]*)
Chris@19 9257 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
Chris@19 9258 ;;
Chris@19 9259 *)
Chris@19 9260 lt_save_MAGIC_CMD="$MAGIC_CMD"
Chris@19 9261 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@19 9262 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
Chris@19 9263 for ac_dir in $ac_dummy; do
Chris@19 9264 IFS="$lt_save_ifs"
Chris@19 9265 test -z "$ac_dir" && ac_dir=.
Chris@19 9266 if test -f $ac_dir/${ac_tool_prefix}file; then
Chris@19 9267 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
Chris@19 9268 if test -n "$file_magic_test_file"; then
Chris@19 9269 case $deplibs_check_method in
Chris@19 9270 "file_magic "*)
Chris@19 9271 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Chris@19 9272 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Chris@19 9273 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
Chris@19 9274 $EGREP "$file_magic_regex" > /dev/null; then
Chris@19 9275 :
Chris@19 9276 else
Chris@19 9277 cat <<_LT_EOF 1>&2
Chris@19 9278
Chris@19 9279 *** Warning: the command libtool uses to detect shared libraries,
Chris@19 9280 *** $file_magic_cmd, produces output that libtool cannot recognize.
Chris@19 9281 *** The result is that libtool may fail to recognize shared libraries
Chris@19 9282 *** as such. This will affect the creation of libtool libraries that
Chris@19 9283 *** depend on shared libraries, but programs linked with such libtool
Chris@19 9284 *** libraries will work regardless of this problem. Nevertheless, you
Chris@19 9285 *** may want to report the problem to your system manager and/or to
Chris@19 9286 *** bug-libtool@gnu.org
Chris@19 9287
Chris@19 9288 _LT_EOF
Chris@19 9289 fi ;;
Chris@19 9290 esac
Chris@19 9291 fi
Chris@19 9292 break
Chris@19 9293 fi
Chris@19 9294 done
Chris@19 9295 IFS="$lt_save_ifs"
Chris@19 9296 MAGIC_CMD="$lt_save_MAGIC_CMD"
Chris@19 9297 ;;
Chris@19 9298 esac
Chris@19 9299 fi
Chris@19 9300
Chris@19 9301 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Chris@19 9302 if test -n "$MAGIC_CMD"; then
Chris@19 9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Chris@19 9304 $as_echo "$MAGIC_CMD" >&6; }
Chris@19 9305 else
Chris@19 9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 9307 $as_echo "no" >&6; }
Chris@19 9308 fi
Chris@19 9309
Chris@19 9310
Chris@19 9311
Chris@19 9312
Chris@19 9313
Chris@19 9314 if test -z "$lt_cv_path_MAGIC_CMD"; then
Chris@19 9315 if test -n "$ac_tool_prefix"; then
Chris@19 9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
Chris@19 9317 $as_echo_n "checking for file... " >&6; }
Chris@19 9318 if ${lt_cv_path_MAGIC_CMD+:} false; then :
Chris@19 9319 $as_echo_n "(cached) " >&6
Chris@19 9320 else
Chris@19 9321 case $MAGIC_CMD in
Chris@19 9322 [\\/*] | ?:[\\/]*)
Chris@19 9323 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
Chris@19 9324 ;;
Chris@19 9325 *)
Chris@19 9326 lt_save_MAGIC_CMD="$MAGIC_CMD"
Chris@19 9327 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@19 9328 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
Chris@19 9329 for ac_dir in $ac_dummy; do
Chris@19 9330 IFS="$lt_save_ifs"
Chris@19 9331 test -z "$ac_dir" && ac_dir=.
Chris@19 9332 if test -f $ac_dir/file; then
Chris@19 9333 lt_cv_path_MAGIC_CMD="$ac_dir/file"
Chris@19 9334 if test -n "$file_magic_test_file"; then
Chris@19 9335 case $deplibs_check_method in
Chris@19 9336 "file_magic "*)
Chris@19 9337 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Chris@19 9338 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Chris@19 9339 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
Chris@19 9340 $EGREP "$file_magic_regex" > /dev/null; then
Chris@19 9341 :
Chris@19 9342 else
Chris@19 9343 cat <<_LT_EOF 1>&2
Chris@19 9344
Chris@19 9345 *** Warning: the command libtool uses to detect shared libraries,
Chris@19 9346 *** $file_magic_cmd, produces output that libtool cannot recognize.
Chris@19 9347 *** The result is that libtool may fail to recognize shared libraries
Chris@19 9348 *** as such. This will affect the creation of libtool libraries that
Chris@19 9349 *** depend on shared libraries, but programs linked with such libtool
Chris@19 9350 *** libraries will work regardless of this problem. Nevertheless, you
Chris@19 9351 *** may want to report the problem to your system manager and/or to
Chris@19 9352 *** bug-libtool@gnu.org
Chris@19 9353
Chris@19 9354 _LT_EOF
Chris@19 9355 fi ;;
Chris@19 9356 esac
Chris@19 9357 fi
Chris@19 9358 break
Chris@19 9359 fi
Chris@19 9360 done
Chris@19 9361 IFS="$lt_save_ifs"
Chris@19 9362 MAGIC_CMD="$lt_save_MAGIC_CMD"
Chris@19 9363 ;;
Chris@19 9364 esac
Chris@19 9365 fi
Chris@19 9366
Chris@19 9367 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Chris@19 9368 if test -n "$MAGIC_CMD"; then
Chris@19 9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Chris@19 9370 $as_echo "$MAGIC_CMD" >&6; }
Chris@19 9371 else
Chris@19 9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 9373 $as_echo "no" >&6; }
Chris@19 9374 fi
Chris@19 9375
Chris@19 9376
Chris@19 9377 else
Chris@19 9378 MAGIC_CMD=:
Chris@19 9379 fi
Chris@19 9380 fi
Chris@19 9381
Chris@19 9382 fi
Chris@19 9383 ;;
Chris@19 9384 esac
Chris@19 9385
Chris@19 9386 # Use C for the default configuration in the libtool script
Chris@19 9387
Chris@19 9388 lt_save_CC="$CC"
Chris@19 9389 ac_ext=c
Chris@19 9390 ac_cpp='$CPP $CPPFLAGS'
Chris@19 9391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@19 9392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 9393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@19 9394
Chris@19 9395
Chris@19 9396 # Source file extension for C test sources.
Chris@19 9397 ac_ext=c
Chris@19 9398
Chris@19 9399 # Object file extension for compiled C test sources.
Chris@19 9400 objext=o
Chris@19 9401 objext=$objext
Chris@19 9402
Chris@19 9403 # Code to be used in simple compile tests
Chris@19 9404 lt_simple_compile_test_code="int some_variable = 0;"
Chris@19 9405
Chris@19 9406 # Code to be used in simple link tests
Chris@19 9407 lt_simple_link_test_code='int main(){return(0);}'
Chris@19 9408
Chris@19 9409
Chris@19 9410
Chris@19 9411
Chris@19 9412
Chris@19 9413
Chris@19 9414
Chris@19 9415 # If no C compiler was specified, use CC.
Chris@19 9416 LTCC=${LTCC-"$CC"}
Chris@19 9417
Chris@19 9418 # If no C compiler flags were specified, use CFLAGS.
Chris@19 9419 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Chris@19 9420
Chris@19 9421 # Allow CC to be a program name with arguments.
Chris@19 9422 compiler=$CC
Chris@19 9423
Chris@19 9424 # Save the default compiler, since it gets overwritten when the other
Chris@19 9425 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
Chris@19 9426 compiler_DEFAULT=$CC
Chris@19 9427
Chris@19 9428 # save warnings/boilerplate of simple test code
Chris@19 9429 ac_outfile=conftest.$ac_objext
Chris@19 9430 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Chris@19 9431 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@19 9432 _lt_compiler_boilerplate=`cat conftest.err`
Chris@19 9433 $RM conftest*
Chris@19 9434
Chris@19 9435 ac_outfile=conftest.$ac_objext
Chris@19 9436 echo "$lt_simple_link_test_code" >conftest.$ac_ext
Chris@19 9437 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@19 9438 _lt_linker_boilerplate=`cat conftest.err`
Chris@19 9439 $RM -r conftest*
Chris@19 9440
Chris@19 9441
Chris@19 9442 ## CAVEAT EMPTOR:
Chris@19 9443 ## There is no encapsulation within the following macros, do not change
Chris@19 9444 ## the running order or otherwise move them around unless you know exactly
Chris@19 9445 ## what you are doing...
Chris@19 9446 if test -n "$compiler"; then
Chris@19 9447
Chris@19 9448 lt_prog_compiler_no_builtin_flag=
Chris@19 9449
Chris@19 9450 if test "$GCC" = yes; then
Chris@19 9451 case $cc_basename in
Chris@19 9452 nvcc*)
Chris@19 9453 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
Chris@19 9454 *)
Chris@19 9455 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
Chris@19 9456 esac
Chris@19 9457
Chris@19 9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Chris@19 9459 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Chris@19 9460 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Chris@19 9461 $as_echo_n "(cached) " >&6
Chris@19 9462 else
Chris@19 9463 lt_cv_prog_compiler_rtti_exceptions=no
Chris@19 9464 ac_outfile=conftest.$ac_objext
Chris@19 9465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@19 9466 lt_compiler_flag="-fno-rtti -fno-exceptions"
Chris@19 9467 # Insert the option either (1) after the last *FLAGS variable, or
Chris@19 9468 # (2) before a word containing "conftest.", or (3) at the end.
Chris@19 9469 # Note that $ac_compile itself does not contain backslashes and begins
Chris@19 9470 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@19 9471 # The option is referenced via a variable to avoid confusing sed.
Chris@19 9472 lt_compile=`echo "$ac_compile" | $SED \
Chris@19 9473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@19 9474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@19 9475 -e 's:$: $lt_compiler_flag:'`
Chris@19 9476 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@19 9477 (eval "$lt_compile" 2>conftest.err)
Chris@19 9478 ac_status=$?
Chris@19 9479 cat conftest.err >&5
Chris@19 9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@19 9481 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@19 9482 # The compiler can only warn and ignore the option if not recognized
Chris@19 9483 # So say no if there are warnings other than the usual output.
Chris@19 9484 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Chris@19 9485 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@19 9486 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Chris@19 9487 lt_cv_prog_compiler_rtti_exceptions=yes
Chris@19 9488 fi
Chris@19 9489 fi
Chris@19 9490 $RM conftest*
Chris@19 9491
Chris@19 9492 fi
Chris@19 9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Chris@19 9494 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Chris@19 9495
Chris@19 9496 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
Chris@19 9497 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
Chris@19 9498 else
Chris@19 9499 :
Chris@19 9500 fi
Chris@19 9501
Chris@19 9502 fi
Chris@19 9503
Chris@19 9504
Chris@19 9505
Chris@19 9506
Chris@19 9507
Chris@19 9508
Chris@19 9509 lt_prog_compiler_wl=
Chris@19 9510 lt_prog_compiler_pic=
Chris@19 9511 lt_prog_compiler_static=
Chris@19 9512
Chris@19 9513
Chris@19 9514 if test "$GCC" = yes; then
Chris@19 9515 lt_prog_compiler_wl='-Wl,'
Chris@19 9516 lt_prog_compiler_static='-static'
Chris@19 9517
Chris@19 9518 case $host_os in
Chris@19 9519 aix*)
Chris@19 9520 # All AIX code is PIC.
Chris@19 9521 if test "$host_cpu" = ia64; then
Chris@19 9522 # AIX 5 now supports IA64 processor
Chris@19 9523 lt_prog_compiler_static='-Bstatic'
Chris@19 9524 fi
Chris@19 9525 ;;
Chris@19 9526
Chris@19 9527 amigaos*)
Chris@19 9528 case $host_cpu in
Chris@19 9529 powerpc)
Chris@19 9530 # see comment about AmigaOS4 .so support
Chris@19 9531 lt_prog_compiler_pic='-fPIC'
Chris@19 9532 ;;
Chris@19 9533 m68k)
Chris@19 9534 # FIXME: we need at least 68020 code to build shared libraries, but
Chris@19 9535 # adding the `-m68020' flag to GCC prevents building anything better,
Chris@19 9536 # like `-m68040'.
Chris@19 9537 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
Chris@19 9538 ;;
Chris@19 9539 esac
Chris@19 9540 ;;
Chris@19 9541
Chris@19 9542 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Chris@19 9543 # PIC is the default for these OSes.
Chris@19 9544 ;;
Chris@19 9545
Chris@19 9546 mingw* | cygwin* | pw32* | os2* | cegcc*)
Chris@19 9547 # This hack is so that the source file can tell whether it is being
Chris@19 9548 # built for inclusion in a dll (and should export symbols for example).
Chris@19 9549 # Although the cygwin gcc ignores -fPIC, still need this for old-style
Chris@19 9550 # (--disable-auto-import) libraries
Chris@19 9551 lt_prog_compiler_pic='-DDLL_EXPORT'
Chris@19 9552 ;;
Chris@19 9553
Chris@19 9554 darwin* | rhapsody*)
Chris@19 9555 # PIC is the default on this platform
Chris@19 9556 # Common symbols not allowed in MH_DYLIB files
Chris@19 9557 lt_prog_compiler_pic='-fno-common'
Chris@19 9558 ;;
Chris@19 9559
Chris@19 9560 haiku*)
Chris@19 9561 # PIC is the default for Haiku.
Chris@19 9562 # The "-static" flag exists, but is broken.
Chris@19 9563 lt_prog_compiler_static=
Chris@19 9564 ;;
Chris@19 9565
Chris@19 9566 hpux*)
Chris@19 9567 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
Chris@19 9568 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
Chris@19 9569 # sets the default TLS model and affects inlining.
Chris@19 9570 case $host_cpu in
Chris@19 9571 hppa*64*)
Chris@19 9572 # +Z the default
Chris@19 9573 ;;
Chris@19 9574 *)
Chris@19 9575 lt_prog_compiler_pic='-fPIC'
Chris@19 9576 ;;
Chris@19 9577 esac
Chris@19 9578 ;;
Chris@19 9579
Chris@19 9580 interix[3-9]*)
Chris@19 9581 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
Chris@19 9582 # Instead, we relocate shared libraries at runtime.
Chris@19 9583 ;;
Chris@19 9584
Chris@19 9585 msdosdjgpp*)
Chris@19 9586 # Just because we use GCC doesn't mean we suddenly get shared libraries
Chris@19 9587 # on systems that don't support them.
Chris@19 9588 lt_prog_compiler_can_build_shared=no
Chris@19 9589 enable_shared=no
Chris@19 9590 ;;
Chris@19 9591
Chris@19 9592 *nto* | *qnx*)
Chris@19 9593 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@19 9594 # it will coredump.
Chris@19 9595 lt_prog_compiler_pic='-fPIC -shared'
Chris@19 9596 ;;
Chris@19 9597
Chris@19 9598 sysv4*MP*)
Chris@19 9599 if test -d /usr/nec; then
Chris@19 9600 lt_prog_compiler_pic=-Kconform_pic
Chris@19 9601 fi
Chris@19 9602 ;;
Chris@19 9603
Chris@19 9604 *)
Chris@19 9605 lt_prog_compiler_pic='-fPIC'
Chris@19 9606 ;;
Chris@19 9607 esac
Chris@19 9608
Chris@19 9609 case $cc_basename in
Chris@19 9610 nvcc*) # Cuda Compiler Driver 2.2
Chris@19 9611 lt_prog_compiler_wl='-Xlinker '
Chris@19 9612 if test -n "$lt_prog_compiler_pic"; then
Chris@19 9613 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
Chris@19 9614 fi
Chris@19 9615 ;;
Chris@19 9616 esac
Chris@19 9617 else
Chris@19 9618 # PORTME Check for flag to pass linker flags through the system compiler.
Chris@19 9619 case $host_os in
Chris@19 9620 aix*)
Chris@19 9621 lt_prog_compiler_wl='-Wl,'
Chris@19 9622 if test "$host_cpu" = ia64; then
Chris@19 9623 # AIX 5 now supports IA64 processor
Chris@19 9624 lt_prog_compiler_static='-Bstatic'
Chris@19 9625 else
Chris@19 9626 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
Chris@19 9627 fi
Chris@19 9628 ;;
Chris@19 9629
Chris@19 9630 mingw* | cygwin* | pw32* | os2* | cegcc*)
Chris@19 9631 # This hack is so that the source file can tell whether it is being
Chris@19 9632 # built for inclusion in a dll (and should export symbols for example).
Chris@19 9633 lt_prog_compiler_pic='-DDLL_EXPORT'
Chris@19 9634 ;;
Chris@19 9635
Chris@19 9636 hpux9* | hpux10* | hpux11*)
Chris@19 9637 lt_prog_compiler_wl='-Wl,'
Chris@19 9638 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
Chris@19 9639 # not for PA HP-UX.
Chris@19 9640 case $host_cpu in
Chris@19 9641 hppa*64*|ia64*)
Chris@19 9642 # +Z the default
Chris@19 9643 ;;
Chris@19 9644 *)
Chris@19 9645 lt_prog_compiler_pic='+Z'
Chris@19 9646 ;;
Chris@19 9647 esac
Chris@19 9648 # Is there a better lt_prog_compiler_static that works with the bundled CC?
Chris@19 9649 lt_prog_compiler_static='${wl}-a ${wl}archive'
Chris@19 9650 ;;
Chris@19 9651
Chris@19 9652 irix5* | irix6* | nonstopux*)
Chris@19 9653 lt_prog_compiler_wl='-Wl,'
Chris@19 9654 # PIC (with -KPIC) is the default.
Chris@19 9655 lt_prog_compiler_static='-non_shared'
Chris@19 9656 ;;
Chris@19 9657
Chris@19 9658 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@19 9659 case $cc_basename in
Chris@19 9660 # old Intel for x86_64 which still supported -KPIC.
Chris@19 9661 ecc*)
Chris@19 9662 lt_prog_compiler_wl='-Wl,'
Chris@19 9663 lt_prog_compiler_pic='-KPIC'
Chris@19 9664 lt_prog_compiler_static='-static'
Chris@19 9665 ;;
Chris@19 9666 # icc used to be incompatible with GCC.
Chris@19 9667 # ICC 10 doesn't accept -KPIC any more.
Chris@19 9668 icc* | ifort*)
Chris@19 9669 lt_prog_compiler_wl='-Wl,'
Chris@19 9670 lt_prog_compiler_pic='-fPIC'
Chris@19 9671 lt_prog_compiler_static='-static'
Chris@19 9672 ;;
Chris@19 9673 # Lahey Fortran 8.1.
Chris@19 9674 lf95*)
Chris@19 9675 lt_prog_compiler_wl='-Wl,'
Chris@19 9676 lt_prog_compiler_pic='--shared'
Chris@19 9677 lt_prog_compiler_static='--static'
Chris@19 9678 ;;
Chris@19 9679 nagfor*)
Chris@19 9680 # NAG Fortran compiler
Chris@19 9681 lt_prog_compiler_wl='-Wl,-Wl,,'
Chris@19 9682 lt_prog_compiler_pic='-PIC'
Chris@19 9683 lt_prog_compiler_static='-Bstatic'
Chris@19 9684 ;;
Chris@19 9685 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Chris@19 9686 # Portland Group compilers (*not* the Pentium gcc compiler,
Chris@19 9687 # which looks to be a dead project)
Chris@19 9688 lt_prog_compiler_wl='-Wl,'
Chris@19 9689 lt_prog_compiler_pic='-fpic'
Chris@19 9690 lt_prog_compiler_static='-Bstatic'
Chris@19 9691 ;;
Chris@19 9692 ccc*)
Chris@19 9693 lt_prog_compiler_wl='-Wl,'
Chris@19 9694 # All Alpha code is PIC.
Chris@19 9695 lt_prog_compiler_static='-non_shared'
Chris@19 9696 ;;
Chris@19 9697 xl* | bgxl* | bgf* | mpixl*)
Chris@19 9698 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Chris@19 9699 lt_prog_compiler_wl='-Wl,'
Chris@19 9700 lt_prog_compiler_pic='-qpic'
Chris@19 9701 lt_prog_compiler_static='-qstaticlink'
Chris@19 9702 ;;
Chris@19 9703 *)
Chris@19 9704 case `$CC -V 2>&1 | sed 5q` in
Chris@19 9705 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
Chris@19 9706 # Sun Fortran 8.3 passes all unrecognized flags to the linker
Chris@19 9707 lt_prog_compiler_pic='-KPIC'
Chris@19 9708 lt_prog_compiler_static='-Bstatic'
Chris@19 9709 lt_prog_compiler_wl=''
Chris@19 9710 ;;
Chris@19 9711 *Sun\ F* | *Sun*Fortran*)
Chris@19 9712 lt_prog_compiler_pic='-KPIC'
Chris@19 9713 lt_prog_compiler_static='-Bstatic'
Chris@19 9714 lt_prog_compiler_wl='-Qoption ld '
Chris@19 9715 ;;
Chris@19 9716 *Sun\ C*)
Chris@19 9717 # Sun C 5.9
Chris@19 9718 lt_prog_compiler_pic='-KPIC'
Chris@19 9719 lt_prog_compiler_static='-Bstatic'
Chris@19 9720 lt_prog_compiler_wl='-Wl,'
Chris@19 9721 ;;
Chris@19 9722 *Intel*\ [CF]*Compiler*)
Chris@19 9723 lt_prog_compiler_wl='-Wl,'
Chris@19 9724 lt_prog_compiler_pic='-fPIC'
Chris@19 9725 lt_prog_compiler_static='-static'
Chris@19 9726 ;;
Chris@19 9727 *Portland\ Group*)
Chris@19 9728 lt_prog_compiler_wl='-Wl,'
Chris@19 9729 lt_prog_compiler_pic='-fpic'
Chris@19 9730 lt_prog_compiler_static='-Bstatic'
Chris@19 9731 ;;
Chris@19 9732 esac
Chris@19 9733 ;;
Chris@19 9734 esac
Chris@19 9735 ;;
Chris@19 9736
Chris@19 9737 newsos6)
Chris@19 9738 lt_prog_compiler_pic='-KPIC'
Chris@19 9739 lt_prog_compiler_static='-Bstatic'
Chris@19 9740 ;;
Chris@19 9741
Chris@19 9742 *nto* | *qnx*)
Chris@19 9743 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@19 9744 # it will coredump.
Chris@19 9745 lt_prog_compiler_pic='-fPIC -shared'
Chris@19 9746 ;;
Chris@19 9747
Chris@19 9748 osf3* | osf4* | osf5*)
Chris@19 9749 lt_prog_compiler_wl='-Wl,'
Chris@19 9750 # All OSF/1 code is PIC.
Chris@19 9751 lt_prog_compiler_static='-non_shared'
Chris@19 9752 ;;
Chris@19 9753
Chris@19 9754 rdos*)
Chris@19 9755 lt_prog_compiler_static='-non_shared'
Chris@19 9756 ;;
Chris@19 9757
Chris@19 9758 solaris*)
Chris@19 9759 lt_prog_compiler_pic='-KPIC'
Chris@19 9760 lt_prog_compiler_static='-Bstatic'
Chris@19 9761 case $cc_basename in
Chris@19 9762 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Chris@19 9763 lt_prog_compiler_wl='-Qoption ld ';;
Chris@19 9764 *)
Chris@19 9765 lt_prog_compiler_wl='-Wl,';;
Chris@19 9766 esac
Chris@19 9767 ;;
Chris@19 9768
Chris@19 9769 sunos4*)
Chris@19 9770 lt_prog_compiler_wl='-Qoption ld '
Chris@19 9771 lt_prog_compiler_pic='-PIC'
Chris@19 9772 lt_prog_compiler_static='-Bstatic'
Chris@19 9773 ;;
Chris@19 9774
Chris@19 9775 sysv4 | sysv4.2uw2* | sysv4.3*)
Chris@19 9776 lt_prog_compiler_wl='-Wl,'
Chris@19 9777 lt_prog_compiler_pic='-KPIC'
Chris@19 9778 lt_prog_compiler_static='-Bstatic'
Chris@19 9779 ;;
Chris@19 9780
Chris@19 9781 sysv4*MP*)
Chris@19 9782 if test -d /usr/nec ;then
Chris@19 9783 lt_prog_compiler_pic='-Kconform_pic'
Chris@19 9784 lt_prog_compiler_static='-Bstatic'
Chris@19 9785 fi
Chris@19 9786 ;;
Chris@19 9787
Chris@19 9788 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
Chris@19 9789 lt_prog_compiler_wl='-Wl,'
Chris@19 9790 lt_prog_compiler_pic='-KPIC'
Chris@19 9791 lt_prog_compiler_static='-Bstatic'
Chris@19 9792 ;;
Chris@19 9793
Chris@19 9794 unicos*)
Chris@19 9795 lt_prog_compiler_wl='-Wl,'
Chris@19 9796 lt_prog_compiler_can_build_shared=no
Chris@19 9797 ;;
Chris@19 9798
Chris@19 9799 uts4*)
Chris@19 9800 lt_prog_compiler_pic='-pic'
Chris@19 9801 lt_prog_compiler_static='-Bstatic'
Chris@19 9802 ;;
Chris@19 9803
Chris@19 9804 *)
Chris@19 9805 lt_prog_compiler_can_build_shared=no
Chris@19 9806 ;;
Chris@19 9807 esac
Chris@19 9808 fi
Chris@19 9809
Chris@19 9810 case $host_os in
Chris@19 9811 # For platforms which do not support PIC, -DPIC is meaningless:
Chris@19 9812 *djgpp*)
Chris@19 9813 lt_prog_compiler_pic=
Chris@19 9814 ;;
Chris@19 9815 *)
Chris@19 9816 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
Chris@19 9817 ;;
Chris@19 9818 esac
Chris@19 9819
Chris@19 9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
Chris@19 9821 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Chris@19 9822 if ${lt_cv_prog_compiler_pic+:} false; then :
Chris@19 9823 $as_echo_n "(cached) " >&6
Chris@19 9824 else
Chris@19 9825 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
Chris@19 9826 fi
Chris@19 9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
Chris@19 9828 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
Chris@19 9829 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
Chris@19 9830
Chris@19 9831 #
Chris@19 9832 # Check to make sure the PIC flag actually works.
Chris@19 9833 #
Chris@19 9834 if test -n "$lt_prog_compiler_pic"; then
Chris@19 9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
Chris@19 9836 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Chris@19 9837 if ${lt_cv_prog_compiler_pic_works+:} false; then :
Chris@19 9838 $as_echo_n "(cached) " >&6
Chris@19 9839 else
Chris@19 9840 lt_cv_prog_compiler_pic_works=no
Chris@19 9841 ac_outfile=conftest.$ac_objext
Chris@19 9842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@19 9843 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
Chris@19 9844 # Insert the option either (1) after the last *FLAGS variable, or
Chris@19 9845 # (2) before a word containing "conftest.", or (3) at the end.
Chris@19 9846 # Note that $ac_compile itself does not contain backslashes and begins
Chris@19 9847 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@19 9848 # The option is referenced via a variable to avoid confusing sed.
Chris@19 9849 lt_compile=`echo "$ac_compile" | $SED \
Chris@19 9850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@19 9851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@19 9852 -e 's:$: $lt_compiler_flag:'`
Chris@19 9853 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@19 9854 (eval "$lt_compile" 2>conftest.err)
Chris@19 9855 ac_status=$?
Chris@19 9856 cat conftest.err >&5
Chris@19 9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@19 9858 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@19 9859 # The compiler can only warn and ignore the option if not recognized
Chris@19 9860 # So say no if there are warnings other than the usual output.
Chris@19 9861 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Chris@19 9862 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@19 9863 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Chris@19 9864 lt_cv_prog_compiler_pic_works=yes
Chris@19 9865 fi
Chris@19 9866 fi
Chris@19 9867 $RM conftest*
Chris@19 9868
Chris@19 9869 fi
Chris@19 9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
Chris@19 9871 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
Chris@19 9872
Chris@19 9873 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
Chris@19 9874 case $lt_prog_compiler_pic in
Chris@19 9875 "" | " "*) ;;
Chris@19 9876 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
Chris@19 9877 esac
Chris@19 9878 else
Chris@19 9879 lt_prog_compiler_pic=
Chris@19 9880 lt_prog_compiler_can_build_shared=no
Chris@19 9881 fi
Chris@19 9882
Chris@19 9883 fi
Chris@19 9884
Chris@19 9885
Chris@19 9886
Chris@19 9887
Chris@19 9888
Chris@19 9889
Chris@19 9890
Chris@19 9891
Chris@19 9892
Chris@19 9893
Chris@19 9894
Chris@19 9895 #
Chris@19 9896 # Check to make sure the static flag actually works.
Chris@19 9897 #
Chris@19 9898 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Chris@19 9899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
Chris@19 9900 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Chris@19 9901 if ${lt_cv_prog_compiler_static_works+:} false; then :
Chris@19 9902 $as_echo_n "(cached) " >&6
Chris@19 9903 else
Chris@19 9904 lt_cv_prog_compiler_static_works=no
Chris@19 9905 save_LDFLAGS="$LDFLAGS"
Chris@19 9906 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Chris@19 9907 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Chris@19 9908 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Chris@19 9909 # The linker can only warn and ignore the option if not recognized
Chris@19 9910 # So say no if there are warnings
Chris@19 9911 if test -s conftest.err; then
Chris@19 9912 # Append any errors to the config.log.
Chris@19 9913 cat conftest.err 1>&5
Chris@19 9914 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Chris@19 9915 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@19 9916 if diff conftest.exp conftest.er2 >/dev/null; then
Chris@19 9917 lt_cv_prog_compiler_static_works=yes
Chris@19 9918 fi
Chris@19 9919 else
Chris@19 9920 lt_cv_prog_compiler_static_works=yes
Chris@19 9921 fi
Chris@19 9922 fi
Chris@19 9923 $RM -r conftest*
Chris@19 9924 LDFLAGS="$save_LDFLAGS"
Chris@19 9925
Chris@19 9926 fi
Chris@19 9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
Chris@19 9928 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
Chris@19 9929
Chris@19 9930 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
Chris@19 9931 :
Chris@19 9932 else
Chris@19 9933 lt_prog_compiler_static=
Chris@19 9934 fi
Chris@19 9935
Chris@19 9936
Chris@19 9937
Chris@19 9938
Chris@19 9939
Chris@19 9940
Chris@19 9941
Chris@19 9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@19 9943 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@19 9944 if ${lt_cv_prog_compiler_c_o+:} false; then :
Chris@19 9945 $as_echo_n "(cached) " >&6
Chris@19 9946 else
Chris@19 9947 lt_cv_prog_compiler_c_o=no
Chris@19 9948 $RM -r conftest 2>/dev/null
Chris@19 9949 mkdir conftest
Chris@19 9950 cd conftest
Chris@19 9951 mkdir out
Chris@19 9952 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@19 9953
Chris@19 9954 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@19 9955 # Insert the option either (1) after the last *FLAGS variable, or
Chris@19 9956 # (2) before a word containing "conftest.", or (3) at the end.
Chris@19 9957 # Note that $ac_compile itself does not contain backslashes and begins
Chris@19 9958 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@19 9959 lt_compile=`echo "$ac_compile" | $SED \
Chris@19 9960 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@19 9961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@19 9962 -e 's:$: $lt_compiler_flag:'`
Chris@19 9963 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@19 9964 (eval "$lt_compile" 2>out/conftest.err)
Chris@19 9965 ac_status=$?
Chris@19 9966 cat out/conftest.err >&5
Chris@19 9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@19 9968 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@19 9969 then
Chris@19 9970 # The compiler can only warn and ignore the option if not recognized
Chris@19 9971 # So say no if there are warnings
Chris@19 9972 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@19 9973 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@19 9974 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@19 9975 lt_cv_prog_compiler_c_o=yes
Chris@19 9976 fi
Chris@19 9977 fi
Chris@19 9978 chmod u+w . 2>&5
Chris@19 9979 $RM conftest*
Chris@19 9980 # SGI C++ compiler will create directory out/ii_files/ for
Chris@19 9981 # template instantiation
Chris@19 9982 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@19 9983 $RM out/* && rmdir out
Chris@19 9984 cd ..
Chris@19 9985 $RM -r conftest
Chris@19 9986 $RM conftest*
Chris@19 9987
Chris@19 9988 fi
Chris@19 9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Chris@19 9990 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Chris@19 9991
Chris@19 9992
Chris@19 9993
Chris@19 9994
Chris@19 9995
Chris@19 9996
Chris@19 9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@19 9998 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@19 9999 if ${lt_cv_prog_compiler_c_o+:} false; then :
Chris@19 10000 $as_echo_n "(cached) " >&6
Chris@19 10001 else
Chris@19 10002 lt_cv_prog_compiler_c_o=no
Chris@19 10003 $RM -r conftest 2>/dev/null
Chris@19 10004 mkdir conftest
Chris@19 10005 cd conftest
Chris@19 10006 mkdir out
Chris@19 10007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@19 10008
Chris@19 10009 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@19 10010 # Insert the option either (1) after the last *FLAGS variable, or
Chris@19 10011 # (2) before a word containing "conftest.", or (3) at the end.
Chris@19 10012 # Note that $ac_compile itself does not contain backslashes and begins
Chris@19 10013 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@19 10014 lt_compile=`echo "$ac_compile" | $SED \
Chris@19 10015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@19 10016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@19 10017 -e 's:$: $lt_compiler_flag:'`
Chris@19 10018 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@19 10019 (eval "$lt_compile" 2>out/conftest.err)
Chris@19 10020 ac_status=$?
Chris@19 10021 cat out/conftest.err >&5
Chris@19 10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@19 10023 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@19 10024 then
Chris@19 10025 # The compiler can only warn and ignore the option if not recognized
Chris@19 10026 # So say no if there are warnings
Chris@19 10027 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@19 10028 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@19 10029 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@19 10030 lt_cv_prog_compiler_c_o=yes
Chris@19 10031 fi
Chris@19 10032 fi
Chris@19 10033 chmod u+w . 2>&5
Chris@19 10034 $RM conftest*
Chris@19 10035 # SGI C++ compiler will create directory out/ii_files/ for
Chris@19 10036 # template instantiation
Chris@19 10037 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@19 10038 $RM out/* && rmdir out
Chris@19 10039 cd ..
Chris@19 10040 $RM -r conftest
Chris@19 10041 $RM conftest*
Chris@19 10042
Chris@19 10043 fi
Chris@19 10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Chris@19 10045 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Chris@19 10046
Chris@19 10047
Chris@19 10048
Chris@19 10049
Chris@19 10050 hard_links="nottested"
Chris@19 10051 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
Chris@19 10052 # do not overwrite the value of need_locks provided by the user
Chris@19 10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Chris@19 10054 $as_echo_n "checking if we can lock with hard links... " >&6; }
Chris@19 10055 hard_links=yes
Chris@19 10056 $RM conftest*
Chris@19 10057 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@19 10058 touch conftest.a
Chris@19 10059 ln conftest.a conftest.b 2>&5 || hard_links=no
Chris@19 10060 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@19 10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Chris@19 10062 $as_echo "$hard_links" >&6; }
Chris@19 10063 if test "$hard_links" = no; then
Chris@19 10064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
Chris@19 10065 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
Chris@19 10066 need_locks=warn
Chris@19 10067 fi
Chris@19 10068 else
Chris@19 10069 need_locks=no
Chris@19 10070 fi
Chris@19 10071
Chris@19 10072
Chris@19 10073
Chris@19 10074
Chris@19 10075
Chris@19 10076
Chris@19 10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Chris@19 10078 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Chris@19 10079
Chris@19 10080 runpath_var=
Chris@19 10081 allow_undefined_flag=
Chris@19 10082 always_export_symbols=no
Chris@19 10083 archive_cmds=
Chris@19 10084 archive_expsym_cmds=
Chris@19 10085 compiler_needs_object=no
Chris@19 10086 enable_shared_with_static_runtimes=no
Chris@19 10087 export_dynamic_flag_spec=
Chris@19 10088 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Chris@19 10089 hardcode_automatic=no
Chris@19 10090 hardcode_direct=no
Chris@19 10091 hardcode_direct_absolute=no
Chris@19 10092 hardcode_libdir_flag_spec=
Chris@19 10093 hardcode_libdir_separator=
Chris@19 10094 hardcode_minus_L=no
Chris@19 10095 hardcode_shlibpath_var=unsupported
Chris@19 10096 inherit_rpath=no
Chris@19 10097 link_all_deplibs=unknown
Chris@19 10098 module_cmds=
Chris@19 10099 module_expsym_cmds=
Chris@19 10100 old_archive_from_new_cmds=
Chris@19 10101 old_archive_from_expsyms_cmds=
Chris@19 10102 thread_safe_flag_spec=
Chris@19 10103 whole_archive_flag_spec=
Chris@19 10104 # include_expsyms should be a list of space-separated symbols to be *always*
Chris@19 10105 # included in the symbol list
Chris@19 10106 include_expsyms=
Chris@19 10107 # exclude_expsyms can be an extended regexp of symbols to exclude
Chris@19 10108 # it will be wrapped by ` (' and `)$', so one must not match beginning or
Chris@19 10109 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
Chris@19 10110 # as well as any symbol that contains `d'.
Chris@19 10111 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Chris@19 10112 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
Chris@19 10113 # platforms (ab)use it in PIC code, but their linkers get confused if
Chris@19 10114 # the symbol is explicitly referenced. Since portable code cannot
Chris@19 10115 # rely on this symbol name, it's probably fine to never include it in
Chris@19 10116 # preloaded symbol tables.
Chris@19 10117 # Exclude shared library initialization/finalization symbols.
Chris@19 10118 extract_expsyms_cmds=
Chris@19 10119
Chris@19 10120 case $host_os in
Chris@19 10121 cygwin* | mingw* | pw32* | cegcc*)
Chris@19 10122 # FIXME: the MSVC++ port hasn't been tested in a loooong time
Chris@19 10123 # When not using gcc, we currently assume that we are using
Chris@19 10124 # Microsoft Visual C++.
Chris@19 10125 if test "$GCC" != yes; then
Chris@19 10126 with_gnu_ld=no
Chris@19 10127 fi
Chris@19 10128 ;;
Chris@19 10129 interix*)
Chris@19 10130 # we just hope/assume this is gcc and not c89 (= MSVC++)
Chris@19 10131 with_gnu_ld=yes
Chris@19 10132 ;;
Chris@19 10133 openbsd*)
Chris@19 10134 with_gnu_ld=no
Chris@19 10135 ;;
Chris@19 10136 esac
Chris@19 10137
Chris@19 10138 ld_shlibs=yes
Chris@19 10139
Chris@19 10140 # On some targets, GNU ld is compatible enough with the native linker
Chris@19 10141 # that we're better off using the native interface for both.
Chris@19 10142 lt_use_gnu_ld_interface=no
Chris@19 10143 if test "$with_gnu_ld" = yes; then
Chris@19 10144 case $host_os in
Chris@19 10145 aix*)
Chris@19 10146 # The AIX port of GNU ld has always aspired to compatibility
Chris@19 10147 # with the native linker. However, as the warning in the GNU ld
Chris@19 10148 # block says, versions before 2.19.5* couldn't really create working
Chris@19 10149 # shared libraries, regardless of the interface used.
Chris@19 10150 case `$LD -v 2>&1` in
Chris@19 10151 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
Chris@19 10152 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
Chris@19 10153 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
Chris@19 10154 *)
Chris@19 10155 lt_use_gnu_ld_interface=yes
Chris@19 10156 ;;
Chris@19 10157 esac
Chris@19 10158 ;;
Chris@19 10159 *)
Chris@19 10160 lt_use_gnu_ld_interface=yes
Chris@19 10161 ;;
Chris@19 10162 esac
Chris@19 10163 fi
Chris@19 10164
Chris@19 10165 if test "$lt_use_gnu_ld_interface" = yes; then
Chris@19 10166 # If archive_cmds runs LD, not CC, wlarc should be empty
Chris@19 10167 wlarc='${wl}'
Chris@19 10168
Chris@19 10169 # Set some defaults for GNU ld with shared library support. These
Chris@19 10170 # are reset later if shared libraries are not supported. Putting them
Chris@19 10171 # here allows them to be overridden if necessary.
Chris@19 10172 runpath_var=LD_RUN_PATH
Chris@19 10173 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@19 10174 export_dynamic_flag_spec='${wl}--export-dynamic'
Chris@19 10175 # ancient GNU ld didn't support --whole-archive et. al.
Chris@19 10176 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
Chris@19 10177 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
Chris@19 10178 else
Chris@19 10179 whole_archive_flag_spec=
Chris@19 10180 fi
Chris@19 10181 supports_anon_versioning=no
Chris@19 10182 case `$LD -v 2>&1` in
Chris@19 10183 *GNU\ gold*) supports_anon_versioning=yes ;;
Chris@19 10184 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
Chris@19 10185 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
Chris@19 10186 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
Chris@19 10187 *\ 2.11.*) ;; # other 2.11 versions
Chris@19 10188 *) supports_anon_versioning=yes ;;
Chris@19 10189 esac
Chris@19 10190
Chris@19 10191 # See if GNU ld supports shared libraries.
Chris@19 10192 case $host_os in
Chris@19 10193 aix[3-9]*)
Chris@19 10194 # On AIX/PPC, the GNU linker is very broken
Chris@19 10195 if test "$host_cpu" != ia64; then
Chris@19 10196 ld_shlibs=no
Chris@19 10197 cat <<_LT_EOF 1>&2
Chris@19 10198
Chris@19 10199 *** Warning: the GNU linker, at least up to release 2.19, is reported
Chris@19 10200 *** to be unable to reliably create shared libraries on AIX.
Chris@19 10201 *** Therefore, libtool is disabling shared libraries support. If you
Chris@19 10202 *** really care for shared libraries, you may want to install binutils
Chris@19 10203 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
Chris@19 10204 *** You will then need to restart the configuration process.
Chris@19 10205
Chris@19 10206 _LT_EOF
Chris@19 10207 fi
Chris@19 10208 ;;
Chris@19 10209
Chris@19 10210 amigaos*)
Chris@19 10211 case $host_cpu in
Chris@19 10212 powerpc)
Chris@19 10213 # see comment about AmigaOS4 .so support
Chris@19 10214 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@19 10215 archive_expsym_cmds=''
Chris@19 10216 ;;
Chris@19 10217 m68k)
Chris@19 10218 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
Chris@19 10219 hardcode_libdir_flag_spec='-L$libdir'
Chris@19 10220 hardcode_minus_L=yes
Chris@19 10221 ;;
Chris@19 10222 esac
Chris@19 10223 ;;
Chris@19 10224
Chris@19 10225 beos*)
Chris@19 10226 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@19 10227 allow_undefined_flag=unsupported
Chris@19 10228 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
Chris@19 10229 # support --undefined. This deserves some investigation. FIXME
Chris@19 10230 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@19 10231 else
Chris@19 10232 ld_shlibs=no
Chris@19 10233 fi
Chris@19 10234 ;;
Chris@19 10235
Chris@19 10236 cygwin* | mingw* | pw32* | cegcc*)
Chris@19 10237 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
Chris@19 10238 # as there is no search path for DLLs.
Chris@19 10239 hardcode_libdir_flag_spec='-L$libdir'
Chris@19 10240 export_dynamic_flag_spec='${wl}--export-all-symbols'
Chris@19 10241 allow_undefined_flag=unsupported
Chris@19 10242 always_export_symbols=no
Chris@19 10243 enable_shared_with_static_runtimes=yes
Chris@19 10244 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
Chris@19 10245 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
Chris@19 10246
Chris@19 10247 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Chris@19 10248 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Chris@19 10249 # If the export-symbols file already is a .def file (1st line
Chris@19 10250 # is EXPORTS), use it as is; otherwise, prepend...
Chris@19 10251 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
Chris@19 10252 cp $export_symbols $output_objdir/$soname.def;
Chris@19 10253 else
Chris@19 10254 echo EXPORTS > $output_objdir/$soname.def;
Chris@19 10255 cat $export_symbols >> $output_objdir/$soname.def;
Chris@19 10256 fi~
Chris@19 10257 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Chris@19 10258 else
Chris@19 10259 ld_shlibs=no
Chris@19 10260 fi
Chris@19 10261 ;;
Chris@19 10262
Chris@19 10263 haiku*)
Chris@19 10264 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@19 10265 link_all_deplibs=yes
Chris@19 10266 ;;
Chris@19 10267
Chris@19 10268 interix[3-9]*)
Chris@19 10269 hardcode_direct=no
Chris@19 10270 hardcode_shlibpath_var=no
Chris@19 10271 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
Chris@19 10272 export_dynamic_flag_spec='${wl}-E'
Chris@19 10273 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
Chris@19 10274 # Instead, shared libraries are loaded at an image base (0x10000000 by
Chris@19 10275 # default) and relocated if they conflict, which is a slow very memory
Chris@19 10276 # consuming and fragmenting process. To avoid this, we pick a random,
Chris@19 10277 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
Chris@19 10278 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Chris@19 10279 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
Chris@19 10280 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
Chris@19 10281 ;;
Chris@19 10282
Chris@19 10283 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@19 10284 tmp_diet=no
Chris@19 10285 if test "$host_os" = linux-dietlibc; then
Chris@19 10286 case $cc_basename in
Chris@19 10287 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
Chris@19 10288 esac
Chris@19 10289 fi
Chris@19 10290 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
Chris@19 10291 && test "$tmp_diet" = no
Chris@19 10292 then
Chris@19 10293 tmp_addflag=' $pic_flag'
Chris@19 10294 tmp_sharedflag='-shared'
Chris@19 10295 case $cc_basename,$host_cpu in
Chris@19 10296 pgcc*) # Portland Group C compiler
Chris@19 10297 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Chris@19 10298 tmp_addflag=' $pic_flag'
Chris@19 10299 ;;
Chris@19 10300 pgf77* | pgf90* | pgf95* | pgfortran*)
Chris@19 10301 # Portland Group f77 and f90 compilers
Chris@19 10302 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Chris@19 10303 tmp_addflag=' $pic_flag -Mnomain' ;;
Chris@19 10304 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Chris@19 10305 tmp_addflag=' -i_dynamic' ;;
Chris@19 10306 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
Chris@19 10307 tmp_addflag=' -i_dynamic -nofor_main' ;;
Chris@19 10308 ifc* | ifort*) # Intel Fortran compiler
Chris@19 10309 tmp_addflag=' -nofor_main' ;;
Chris@19 10310 lf95*) # Lahey Fortran 8.1
Chris@19 10311 whole_archive_flag_spec=
Chris@19 10312 tmp_sharedflag='--shared' ;;
Chris@19 10313 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Chris@19 10314 tmp_sharedflag='-qmkshrobj'
Chris@19 10315 tmp_addflag= ;;
Chris@19 10316 nvcc*) # Cuda Compiler Driver 2.2
Chris@19 10317 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Chris@19 10318 compiler_needs_object=yes
Chris@19 10319 ;;
Chris@19 10320 esac
Chris@19 10321 case `$CC -V 2>&1 | sed 5q` in
Chris@19 10322 *Sun\ C*) # Sun C 5.9
Chris@19 10323 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Chris@19 10324 compiler_needs_object=yes
Chris@19 10325 tmp_sharedflag='-G' ;;
Chris@19 10326 *Sun\ F*) # Sun Fortran 8.3
Chris@19 10327 tmp_sharedflag='-G' ;;
Chris@19 10328 esac
Chris@19 10329 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@19 10330
Chris@19 10331 if test "x$supports_anon_versioning" = xyes; then
Chris@19 10332 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Chris@19 10333 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@19 10334 echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@19 10335 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
Chris@19 10336 fi
Chris@19 10337
Chris@19 10338 case $cc_basename in
Chris@19 10339 xlf* | bgf* | bgxlf* | mpixlf*)
Chris@19 10340 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
Chris@19 10341 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
Chris@19 10342 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@19 10343 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Chris@19 10344 if test "x$supports_anon_versioning" = xyes; then
Chris@19 10345 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Chris@19 10346 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@19 10347 echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@19 10348 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Chris@19 10349 fi
Chris@19 10350 ;;
Chris@19 10351 esac
Chris@19 10352 else
Chris@19 10353 ld_shlibs=no
Chris@19 10354 fi
Chris@19 10355 ;;
Chris@19 10356
Chris@19 10357 netbsd*)
Chris@19 10358 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@19 10359 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
Chris@19 10360 wlarc=
Chris@19 10361 else
Chris@19 10362 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@19 10363 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@19 10364 fi
Chris@19 10365 ;;
Chris@19 10366
Chris@19 10367 solaris*)
Chris@19 10368 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Chris@19 10369 ld_shlibs=no
Chris@19 10370 cat <<_LT_EOF 1>&2
Chris@19 10371
Chris@19 10372 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
Chris@19 10373 *** create shared libraries on Solaris systems. Therefore, libtool
Chris@19 10374 *** is disabling shared libraries support. We urge you to upgrade GNU
Chris@19 10375 *** binutils to release 2.9.1 or newer. Another option is to modify
Chris@19 10376 *** your PATH or compiler configuration so that the native linker is
Chris@19 10377 *** used, and then restart.
Chris@19 10378
Chris@19 10379 _LT_EOF
Chris@19 10380 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@19 10381 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@19 10382 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@19 10383 else
Chris@19 10384 ld_shlibs=no
Chris@19 10385 fi
Chris@19 10386 ;;
Chris@19 10387
Chris@19 10388 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
Chris@19 10389 case `$LD -v 2>&1` in
Chris@19 10390 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
Chris@19 10391 ld_shlibs=no
Chris@19 10392 cat <<_LT_EOF 1>&2
Chris@19 10393
Chris@19 10394 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
Chris@19 10395 *** reliably create shared libraries on SCO systems. Therefore, libtool
Chris@19 10396 *** is disabling shared libraries support. We urge you to upgrade GNU
Chris@19 10397 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
Chris@19 10398 *** your PATH or compiler configuration so that the native linker is
Chris@19 10399 *** used, and then restart.
Chris@19 10400
Chris@19 10401 _LT_EOF
Chris@19 10402 ;;
Chris@19 10403 *)
Chris@19 10404 # For security reasons, it is highly recommended that you always
Chris@19 10405 # use absolute paths for naming shared libraries, and exclude the
Chris@19 10406 # DT_RUNPATH tag from executables and libraries. But doing so
Chris@19 10407 # requires that you compile everything twice, which is a pain.
Chris@19 10408 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@19 10409 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@19 10410 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@19 10411 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@19 10412 else
Chris@19 10413 ld_shlibs=no
Chris@19 10414 fi
Chris@19 10415 ;;
Chris@19 10416 esac
Chris@19 10417 ;;
Chris@19 10418
Chris@19 10419 sunos4*)
Chris@19 10420 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@19 10421 wlarc=
Chris@19 10422 hardcode_direct=yes
Chris@19 10423 hardcode_shlibpath_var=no
Chris@19 10424 ;;
Chris@19 10425
Chris@19 10426 *)
Chris@19 10427 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@19 10428 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@19 10429 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@19 10430 else
Chris@19 10431 ld_shlibs=no
Chris@19 10432 fi
Chris@19 10433 ;;
Chris@19 10434 esac
Chris@19 10435
Chris@19 10436 if test "$ld_shlibs" = no; then
Chris@19 10437 runpath_var=
Chris@19 10438 hardcode_libdir_flag_spec=
Chris@19 10439 export_dynamic_flag_spec=
Chris@19 10440 whole_archive_flag_spec=
Chris@19 10441 fi
Chris@19 10442 else
Chris@19 10443 # PORTME fill in a description of your system's linker (not GNU ld)
Chris@19 10444 case $host_os in
Chris@19 10445 aix3*)
Chris@19 10446 allow_undefined_flag=unsupported
Chris@19 10447 always_export_symbols=yes
Chris@19 10448 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
Chris@19 10449 # Note: this linker hardcodes the directories in LIBPATH if there
Chris@19 10450 # are no directories specified by -L.
Chris@19 10451 hardcode_minus_L=yes
Chris@19 10452 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
Chris@19 10453 # Neither direct hardcoding nor static linking is supported with a
Chris@19 10454 # broken collect2.
Chris@19 10455 hardcode_direct=unsupported
Chris@19 10456 fi
Chris@19 10457 ;;
Chris@19 10458
Chris@19 10459 aix[4-9]*)
Chris@19 10460 if test "$host_cpu" = ia64; then
Chris@19 10461 # On IA64, the linker does run time linking by default, so we don't
Chris@19 10462 # have to do anything special.
Chris@19 10463 aix_use_runtimelinking=no
Chris@19 10464 exp_sym_flag='-Bexport'
Chris@19 10465 no_entry_flag=""
Chris@19 10466 else
Chris@19 10467 # If we're using GNU nm, then we don't want the "-C" option.
Chris@19 10468 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Chris@19 10469 # Also, AIX nm treats weak defined symbols like other global
Chris@19 10470 # defined symbols, whereas GNU nm marks them as "W".
Chris@19 10471 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Chris@19 10472 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Chris@19 10473 else
Chris@19 10474 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Chris@19 10475 fi
Chris@19 10476 aix_use_runtimelinking=no
Chris@19 10477
Chris@19 10478 # Test if we are trying to use run time linking or normal
Chris@19 10479 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Chris@19 10480 # need to do runtime linking.
Chris@19 10481 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Chris@19 10482 for ld_flag in $LDFLAGS; do
Chris@19 10483 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
Chris@19 10484 aix_use_runtimelinking=yes
Chris@19 10485 break
Chris@19 10486 fi
Chris@19 10487 done
Chris@19 10488 ;;
Chris@19 10489 esac
Chris@19 10490
Chris@19 10491 exp_sym_flag='-bexport'
Chris@19 10492 no_entry_flag='-bnoentry'
Chris@19 10493 fi
Chris@19 10494
Chris@19 10495 # When large executables or shared objects are built, AIX ld can
Chris@19 10496 # have problems creating the table of contents. If linking a library
Chris@19 10497 # or program results in "error TOC overflow" add -mminimal-toc to
Chris@19 10498 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
Chris@19 10499 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
Chris@19 10500
Chris@19 10501 archive_cmds=''
Chris@19 10502 hardcode_direct=yes
Chris@19 10503 hardcode_direct_absolute=yes
Chris@19 10504 hardcode_libdir_separator=':'
Chris@19 10505 link_all_deplibs=yes
Chris@19 10506 file_list_spec='${wl}-f,'
Chris@19 10507
Chris@19 10508 if test "$GCC" = yes; then
Chris@19 10509 case $host_os in aix4.[012]|aix4.[012].*)
Chris@19 10510 # We only want to do this on AIX 4.2 and lower, the check
Chris@19 10511 # below for broken collect2 doesn't work under 4.3+
Chris@19 10512 collect2name=`${CC} -print-prog-name=collect2`
Chris@19 10513 if test -f "$collect2name" &&
Chris@19 10514 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Chris@19 10515 then
Chris@19 10516 # We have reworked collect2
Chris@19 10517 :
Chris@19 10518 else
Chris@19 10519 # We have old collect2
Chris@19 10520 hardcode_direct=unsupported
Chris@19 10521 # It fails to find uninstalled libraries when the uninstalled
Chris@19 10522 # path is not listed in the libpath. Setting hardcode_minus_L
Chris@19 10523 # to unsupported forces relinking
Chris@19 10524 hardcode_minus_L=yes
Chris@19 10525 hardcode_libdir_flag_spec='-L$libdir'
Chris@19 10526 hardcode_libdir_separator=
Chris@19 10527 fi
Chris@19 10528 ;;
Chris@19 10529 esac
Chris@19 10530 shared_flag='-shared'
Chris@19 10531 if test "$aix_use_runtimelinking" = yes; then
Chris@19 10532 shared_flag="$shared_flag "'${wl}-G'
Chris@19 10533 fi
Chris@19 10534 else
Chris@19 10535 # not using gcc
Chris@19 10536 if test "$host_cpu" = ia64; then
Chris@19 10537 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
Chris@19 10538 # chokes on -Wl,-G. The following line is correct:
Chris@19 10539 shared_flag='-G'
Chris@19 10540 else
Chris@19 10541 if test "$aix_use_runtimelinking" = yes; then
Chris@19 10542 shared_flag='${wl}-G'
Chris@19 10543 else
Chris@19 10544 shared_flag='${wl}-bM:SRE'
Chris@19 10545 fi
Chris@19 10546 fi
Chris@19 10547 fi
Chris@19 10548
Chris@19 10549 export_dynamic_flag_spec='${wl}-bexpall'
Chris@19 10550 # It seems that -bexpall does not export symbols beginning with
Chris@19 10551 # underscore (_), so it is better to generate a list of symbols to export.
Chris@19 10552 always_export_symbols=yes
Chris@19 10553 if test "$aix_use_runtimelinking" = yes; then
Chris@19 10554 # Warning - without using the other runtime loading flags (-brtl),
Chris@19 10555 # -berok will link without error, but may produce a broken library.
Chris@19 10556 allow_undefined_flag='-berok'
Chris@19 10557 # Determine the default libpath from the value encoded in an
Chris@19 10558 # empty executable.
Chris@19 10559 if test "${lt_cv_aix_libpath+set}" = set; then
Chris@19 10560 aix_libpath=$lt_cv_aix_libpath
Chris@19 10561 else
Chris@19 10562 if ${lt_cv_aix_libpath_+:} false; then :
Chris@19 10563 $as_echo_n "(cached) " >&6
Chris@19 10564 else
Chris@19 10565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 10566 /* end confdefs.h. */
Chris@19 10567
Chris@19 10568 int
Chris@19 10569 main ()
Chris@19 10570 {
Chris@19 10571
Chris@19 10572 ;
Chris@19 10573 return 0;
Chris@19 10574 }
Chris@19 10575 _ACEOF
Chris@19 10576 if ac_fn_c_try_link "$LINENO"; then :
Chris@19 10577
Chris@19 10578 lt_aix_libpath_sed='
Chris@19 10579 /Import File Strings/,/^$/ {
Chris@19 10580 /^0/ {
Chris@19 10581 s/^0 *\([^ ]*\) *$/\1/
Chris@19 10582 p
Chris@19 10583 }
Chris@19 10584 }'
Chris@19 10585 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@19 10586 # Check for a 64-bit object if we didn't find anything.
Chris@19 10587 if test -z "$lt_cv_aix_libpath_"; then
Chris@19 10588 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@19 10589 fi
Chris@19 10590 fi
Chris@19 10591 rm -f core conftest.err conftest.$ac_objext \
Chris@19 10592 conftest$ac_exeext conftest.$ac_ext
Chris@19 10593 if test -z "$lt_cv_aix_libpath_"; then
Chris@19 10594 lt_cv_aix_libpath_="/usr/lib:/lib"
Chris@19 10595 fi
Chris@19 10596
Chris@19 10597 fi
Chris@19 10598
Chris@19 10599 aix_libpath=$lt_cv_aix_libpath_
Chris@19 10600 fi
Chris@19 10601
Chris@19 10602 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Chris@19 10603 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
Chris@19 10604 else
Chris@19 10605 if test "$host_cpu" = ia64; then
Chris@19 10606 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
Chris@19 10607 allow_undefined_flag="-z nodefs"
Chris@19 10608 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
Chris@19 10609 else
Chris@19 10610 # Determine the default libpath from the value encoded in an
Chris@19 10611 # empty executable.
Chris@19 10612 if test "${lt_cv_aix_libpath+set}" = set; then
Chris@19 10613 aix_libpath=$lt_cv_aix_libpath
Chris@19 10614 else
Chris@19 10615 if ${lt_cv_aix_libpath_+:} false; then :
Chris@19 10616 $as_echo_n "(cached) " >&6
Chris@19 10617 else
Chris@19 10618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 10619 /* end confdefs.h. */
Chris@19 10620
Chris@19 10621 int
Chris@19 10622 main ()
Chris@19 10623 {
Chris@19 10624
Chris@19 10625 ;
Chris@19 10626 return 0;
Chris@19 10627 }
Chris@19 10628 _ACEOF
Chris@19 10629 if ac_fn_c_try_link "$LINENO"; then :
Chris@19 10630
Chris@19 10631 lt_aix_libpath_sed='
Chris@19 10632 /Import File Strings/,/^$/ {
Chris@19 10633 /^0/ {
Chris@19 10634 s/^0 *\([^ ]*\) *$/\1/
Chris@19 10635 p
Chris@19 10636 }
Chris@19 10637 }'
Chris@19 10638 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@19 10639 # Check for a 64-bit object if we didn't find anything.
Chris@19 10640 if test -z "$lt_cv_aix_libpath_"; then
Chris@19 10641 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@19 10642 fi
Chris@19 10643 fi
Chris@19 10644 rm -f core conftest.err conftest.$ac_objext \
Chris@19 10645 conftest$ac_exeext conftest.$ac_ext
Chris@19 10646 if test -z "$lt_cv_aix_libpath_"; then
Chris@19 10647 lt_cv_aix_libpath_="/usr/lib:/lib"
Chris@19 10648 fi
Chris@19 10649
Chris@19 10650 fi
Chris@19 10651
Chris@19 10652 aix_libpath=$lt_cv_aix_libpath_
Chris@19 10653 fi
Chris@19 10654
Chris@19 10655 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Chris@19 10656 # Warning - without using the other run time loading flags,
Chris@19 10657 # -berok will link without error, but may produce a broken library.
Chris@19 10658 no_undefined_flag=' ${wl}-bernotok'
Chris@19 10659 allow_undefined_flag=' ${wl}-berok'
Chris@19 10660 if test "$with_gnu_ld" = yes; then
Chris@19 10661 # We only use this code for GNU lds that support --whole-archive.
Chris@19 10662 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
Chris@19 10663 else
Chris@19 10664 # Exported symbols can be pulled into shared objects from archives
Chris@19 10665 whole_archive_flag_spec='$convenience'
Chris@19 10666 fi
Chris@19 10667 archive_cmds_need_lc=yes
Chris@19 10668 # This is similar to how AIX traditionally builds its shared libraries.
Chris@19 10669 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
Chris@19 10670 fi
Chris@19 10671 fi
Chris@19 10672 ;;
Chris@19 10673
Chris@19 10674 amigaos*)
Chris@19 10675 case $host_cpu in
Chris@19 10676 powerpc)
Chris@19 10677 # see comment about AmigaOS4 .so support
Chris@19 10678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@19 10679 archive_expsym_cmds=''
Chris@19 10680 ;;
Chris@19 10681 m68k)
Chris@19 10682 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
Chris@19 10683 hardcode_libdir_flag_spec='-L$libdir'
Chris@19 10684 hardcode_minus_L=yes
Chris@19 10685 ;;
Chris@19 10686 esac
Chris@19 10687 ;;
Chris@19 10688
Chris@19 10689 bsdi[45]*)
Chris@19 10690 export_dynamic_flag_spec=-rdynamic
Chris@19 10691 ;;
Chris@19 10692
Chris@19 10693 cygwin* | mingw* | pw32* | cegcc*)
Chris@19 10694 # When not using gcc, we currently assume that we are using
Chris@19 10695 # Microsoft Visual C++.
Chris@19 10696 # hardcode_libdir_flag_spec is actually meaningless, as there is
Chris@19 10697 # no search path for DLLs.
Chris@19 10698 case $cc_basename in
Chris@19 10699 cl*)
Chris@19 10700 # Native MSVC
Chris@19 10701 hardcode_libdir_flag_spec=' '
Chris@19 10702 allow_undefined_flag=unsupported
Chris@19 10703 always_export_symbols=yes
Chris@19 10704 file_list_spec='@'
Chris@19 10705 # Tell ltmain to make .lib files, not .a files.
Chris@19 10706 libext=lib
Chris@19 10707 # Tell ltmain to make .dll files, not .so files.
Chris@19 10708 shrext_cmds=".dll"
Chris@19 10709 # FIXME: Setting linknames here is a bad hack.
Chris@19 10710 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
Chris@19 10711 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
Chris@19 10712 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
Chris@19 10713 else
Chris@19 10714 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
Chris@19 10715 fi~
Chris@19 10716 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
Chris@19 10717 linknames='
Chris@19 10718 # The linker will not automatically build a static lib if we build a DLL.
Chris@19 10719 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
Chris@19 10720 enable_shared_with_static_runtimes=yes
Chris@19 10721 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
Chris@19 10722 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
Chris@19 10723 # Don't use ranlib
Chris@19 10724 old_postinstall_cmds='chmod 644 $oldlib'
Chris@19 10725 postlink_cmds='lt_outputfile="@OUTPUT@"~
Chris@19 10726 lt_tool_outputfile="@TOOL_OUTPUT@"~
Chris@19 10727 case $lt_outputfile in
Chris@19 10728 *.exe|*.EXE) ;;
Chris@19 10729 *)
Chris@19 10730 lt_outputfile="$lt_outputfile.exe"
Chris@19 10731 lt_tool_outputfile="$lt_tool_outputfile.exe"
Chris@19 10732 ;;
Chris@19 10733 esac~
Chris@19 10734 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
Chris@19 10735 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
Chris@19 10736 $RM "$lt_outputfile.manifest";
Chris@19 10737 fi'
Chris@19 10738 ;;
Chris@19 10739 *)
Chris@19 10740 # Assume MSVC wrapper
Chris@19 10741 hardcode_libdir_flag_spec=' '
Chris@19 10742 allow_undefined_flag=unsupported
Chris@19 10743 # Tell ltmain to make .lib files, not .a files.
Chris@19 10744 libext=lib
Chris@19 10745 # Tell ltmain to make .dll files, not .so files.
Chris@19 10746 shrext_cmds=".dll"
Chris@19 10747 # FIXME: Setting linknames here is a bad hack.
Chris@19 10748 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
Chris@19 10749 # The linker will automatically build a .lib file if we build a DLL.
Chris@19 10750 old_archive_from_new_cmds='true'
Chris@19 10751 # FIXME: Should let the user specify the lib program.
Chris@19 10752 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
Chris@19 10753 enable_shared_with_static_runtimes=yes
Chris@19 10754 ;;
Chris@19 10755 esac
Chris@19 10756 ;;
Chris@19 10757
Chris@19 10758 darwin* | rhapsody*)
Chris@19 10759
Chris@19 10760
Chris@19 10761 archive_cmds_need_lc=no
Chris@19 10762 hardcode_direct=no
Chris@19 10763 hardcode_automatic=yes
Chris@19 10764 hardcode_shlibpath_var=unsupported
Chris@19 10765 if test "$lt_cv_ld_force_load" = "yes"; then
Chris@19 10766 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
Chris@19 10767
Chris@19 10768 else
Chris@19 10769 whole_archive_flag_spec=''
Chris@19 10770 fi
Chris@19 10771 link_all_deplibs=yes
Chris@19 10772 allow_undefined_flag="$_lt_dar_allow_undefined"
Chris@19 10773 case $cc_basename in
Chris@19 10774 ifort*) _lt_dar_can_shared=yes ;;
Chris@19 10775 *) _lt_dar_can_shared=$GCC ;;
Chris@19 10776 esac
Chris@19 10777 if test "$_lt_dar_can_shared" = "yes"; then
Chris@19 10778 output_verbose_link_cmd=func_echo_all
Chris@19 10779 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
Chris@19 10780 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
Chris@19 10781 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
Chris@19 10782 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
Chris@19 10783
Chris@19 10784 else
Chris@19 10785 ld_shlibs=no
Chris@19 10786 fi
Chris@19 10787
Chris@19 10788 ;;
Chris@19 10789
Chris@19 10790 dgux*)
Chris@19 10791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@19 10792 hardcode_libdir_flag_spec='-L$libdir'
Chris@19 10793 hardcode_shlibpath_var=no
Chris@19 10794 ;;
Chris@19 10795
Chris@19 10796 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
Chris@19 10797 # support. Future versions do this automatically, but an explicit c++rt0.o
Chris@19 10798 # does not break anything, and helps significantly (at the cost of a little
Chris@19 10799 # extra space).
Chris@19 10800 freebsd2.2*)
Chris@19 10801 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
Chris@19 10802 hardcode_libdir_flag_spec='-R$libdir'
Chris@19 10803 hardcode_direct=yes
Chris@19 10804 hardcode_shlibpath_var=no
Chris@19 10805 ;;
Chris@19 10806
Chris@19 10807 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Chris@19 10808 freebsd2.*)
Chris@19 10809 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@19 10810 hardcode_direct=yes
Chris@19 10811 hardcode_minus_L=yes
Chris@19 10812 hardcode_shlibpath_var=no
Chris@19 10813 ;;
Chris@19 10814
Chris@19 10815 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Chris@19 10816 freebsd* | dragonfly*)
Chris@19 10817 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 10818 hardcode_libdir_flag_spec='-R$libdir'
Chris@19 10819 hardcode_direct=yes
Chris@19 10820 hardcode_shlibpath_var=no
Chris@19 10821 ;;
Chris@19 10822
Chris@19 10823 hpux9*)
Chris@19 10824 if test "$GCC" = yes; then
Chris@19 10825 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
Chris@19 10826 else
Chris@19 10827 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
Chris@19 10828 fi
Chris@19 10829 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Chris@19 10830 hardcode_libdir_separator=:
Chris@19 10831 hardcode_direct=yes
Chris@19 10832
Chris@19 10833 # hardcode_minus_L: Not really in the search PATH,
Chris@19 10834 # but as the default location of the library.
Chris@19 10835 hardcode_minus_L=yes
Chris@19 10836 export_dynamic_flag_spec='${wl}-E'
Chris@19 10837 ;;
Chris@19 10838
Chris@19 10839 hpux10*)
Chris@19 10840 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
Chris@19 10841 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 10842 else
Chris@19 10843 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
Chris@19 10844 fi
Chris@19 10845 if test "$with_gnu_ld" = no; then
Chris@19 10846 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Chris@19 10847 hardcode_libdir_separator=:
Chris@19 10848 hardcode_direct=yes
Chris@19 10849 hardcode_direct_absolute=yes
Chris@19 10850 export_dynamic_flag_spec='${wl}-E'
Chris@19 10851 # hardcode_minus_L: Not really in the search PATH,
Chris@19 10852 # but as the default location of the library.
Chris@19 10853 hardcode_minus_L=yes
Chris@19 10854 fi
Chris@19 10855 ;;
Chris@19 10856
Chris@19 10857 hpux11*)
Chris@19 10858 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
Chris@19 10859 case $host_cpu in
Chris@19 10860 hppa*64*)
Chris@19 10861 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 10862 ;;
Chris@19 10863 ia64*)
Chris@19 10864 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 10865 ;;
Chris@19 10866 *)
Chris@19 10867 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 10868 ;;
Chris@19 10869 esac
Chris@19 10870 else
Chris@19 10871 case $host_cpu in
Chris@19 10872 hppa*64*)
Chris@19 10873 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 10874 ;;
Chris@19 10875 ia64*)
Chris@19 10876 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 10877 ;;
Chris@19 10878 *)
Chris@19 10879
Chris@19 10880 # Older versions of the 11.00 compiler do not understand -b yet
Chris@19 10881 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
Chris@19 10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
Chris@19 10883 $as_echo_n "checking if $CC understands -b... " >&6; }
Chris@19 10884 if ${lt_cv_prog_compiler__b+:} false; then :
Chris@19 10885 $as_echo_n "(cached) " >&6
Chris@19 10886 else
Chris@19 10887 lt_cv_prog_compiler__b=no
Chris@19 10888 save_LDFLAGS="$LDFLAGS"
Chris@19 10889 LDFLAGS="$LDFLAGS -b"
Chris@19 10890 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Chris@19 10891 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Chris@19 10892 # The linker can only warn and ignore the option if not recognized
Chris@19 10893 # So say no if there are warnings
Chris@19 10894 if test -s conftest.err; then
Chris@19 10895 # Append any errors to the config.log.
Chris@19 10896 cat conftest.err 1>&5
Chris@19 10897 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Chris@19 10898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@19 10899 if diff conftest.exp conftest.er2 >/dev/null; then
Chris@19 10900 lt_cv_prog_compiler__b=yes
Chris@19 10901 fi
Chris@19 10902 else
Chris@19 10903 lt_cv_prog_compiler__b=yes
Chris@19 10904 fi
Chris@19 10905 fi
Chris@19 10906 $RM -r conftest*
Chris@19 10907 LDFLAGS="$save_LDFLAGS"
Chris@19 10908
Chris@19 10909 fi
Chris@19 10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
Chris@19 10911 $as_echo "$lt_cv_prog_compiler__b" >&6; }
Chris@19 10912
Chris@19 10913 if test x"$lt_cv_prog_compiler__b" = xyes; then
Chris@19 10914 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 10915 else
Chris@19 10916 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
Chris@19 10917 fi
Chris@19 10918
Chris@19 10919 ;;
Chris@19 10920 esac
Chris@19 10921 fi
Chris@19 10922 if test "$with_gnu_ld" = no; then
Chris@19 10923 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Chris@19 10924 hardcode_libdir_separator=:
Chris@19 10925
Chris@19 10926 case $host_cpu in
Chris@19 10927 hppa*64*|ia64*)
Chris@19 10928 hardcode_direct=no
Chris@19 10929 hardcode_shlibpath_var=no
Chris@19 10930 ;;
Chris@19 10931 *)
Chris@19 10932 hardcode_direct=yes
Chris@19 10933 hardcode_direct_absolute=yes
Chris@19 10934 export_dynamic_flag_spec='${wl}-E'
Chris@19 10935
Chris@19 10936 # hardcode_minus_L: Not really in the search PATH,
Chris@19 10937 # but as the default location of the library.
Chris@19 10938 hardcode_minus_L=yes
Chris@19 10939 ;;
Chris@19 10940 esac
Chris@19 10941 fi
Chris@19 10942 ;;
Chris@19 10943
Chris@19 10944 irix5* | irix6* | nonstopux*)
Chris@19 10945 if test "$GCC" = yes; then
Chris@19 10946 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Chris@19 10947 # Try to use the -exported_symbol ld option, if it does not
Chris@19 10948 # work, assume that -exports_file does not work either and
Chris@19 10949 # implicitly export all symbols.
Chris@19 10950 # This should be the same for all languages, so no per-tag cache variable.
Chris@19 10951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
Chris@19 10952 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
Chris@19 10953 if ${lt_cv_irix_exported_symbol+:} false; then :
Chris@19 10954 $as_echo_n "(cached) " >&6
Chris@19 10955 else
Chris@19 10956 save_LDFLAGS="$LDFLAGS"
Chris@19 10957 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
Chris@19 10958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 10959 /* end confdefs.h. */
Chris@19 10960 int foo (void) { return 0; }
Chris@19 10961 _ACEOF
Chris@19 10962 if ac_fn_c_try_link "$LINENO"; then :
Chris@19 10963 lt_cv_irix_exported_symbol=yes
Chris@19 10964 else
Chris@19 10965 lt_cv_irix_exported_symbol=no
Chris@19 10966 fi
Chris@19 10967 rm -f core conftest.err conftest.$ac_objext \
Chris@19 10968 conftest$ac_exeext conftest.$ac_ext
Chris@19 10969 LDFLAGS="$save_LDFLAGS"
Chris@19 10970 fi
Chris@19 10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
Chris@19 10972 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
Chris@19 10973 if test "$lt_cv_irix_exported_symbol" = yes; then
Chris@19 10974 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
Chris@19 10975 fi
Chris@19 10976 else
Chris@19 10977 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
Chris@19 10978 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
Chris@19 10979 fi
Chris@19 10980 archive_cmds_need_lc='no'
Chris@19 10981 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@19 10982 hardcode_libdir_separator=:
Chris@19 10983 inherit_rpath=yes
Chris@19 10984 link_all_deplibs=yes
Chris@19 10985 ;;
Chris@19 10986
Chris@19 10987 netbsd*)
Chris@19 10988 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@19 10989 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
Chris@19 10990 else
Chris@19 10991 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
Chris@19 10992 fi
Chris@19 10993 hardcode_libdir_flag_spec='-R$libdir'
Chris@19 10994 hardcode_direct=yes
Chris@19 10995 hardcode_shlibpath_var=no
Chris@19 10996 ;;
Chris@19 10997
Chris@19 10998 newsos6)
Chris@19 10999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@19 11000 hardcode_direct=yes
Chris@19 11001 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@19 11002 hardcode_libdir_separator=:
Chris@19 11003 hardcode_shlibpath_var=no
Chris@19 11004 ;;
Chris@19 11005
Chris@19 11006 *nto* | *qnx*)
Chris@19 11007 ;;
Chris@19 11008
Chris@19 11009 openbsd*)
Chris@19 11010 if test -f /usr/libexec/ld.so; then
Chris@19 11011 hardcode_direct=yes
Chris@19 11012 hardcode_shlibpath_var=no
Chris@19 11013 hardcode_direct_absolute=yes
Chris@19 11014 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@19 11015 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 11016 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
Chris@19 11017 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
Chris@19 11018 export_dynamic_flag_spec='${wl}-E'
Chris@19 11019 else
Chris@19 11020 case $host_os in
Chris@19 11021 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
Chris@19 11022 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@19 11023 hardcode_libdir_flag_spec='-R$libdir'
Chris@19 11024 ;;
Chris@19 11025 *)
Chris@19 11026 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 11027 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
Chris@19 11028 ;;
Chris@19 11029 esac
Chris@19 11030 fi
Chris@19 11031 else
Chris@19 11032 ld_shlibs=no
Chris@19 11033 fi
Chris@19 11034 ;;
Chris@19 11035
Chris@19 11036 os2*)
Chris@19 11037 hardcode_libdir_flag_spec='-L$libdir'
Chris@19 11038 hardcode_minus_L=yes
Chris@19 11039 allow_undefined_flag=unsupported
Chris@19 11040 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
Chris@19 11041 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
Chris@19 11042 ;;
Chris@19 11043
Chris@19 11044 osf3*)
Chris@19 11045 if test "$GCC" = yes; then
Chris@19 11046 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Chris@19 11047 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Chris@19 11048 else
Chris@19 11049 allow_undefined_flag=' -expect_unresolved \*'
Chris@19 11050 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
Chris@19 11051 fi
Chris@19 11052 archive_cmds_need_lc='no'
Chris@19 11053 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@19 11054 hardcode_libdir_separator=:
Chris@19 11055 ;;
Chris@19 11056
Chris@19 11057 osf4* | osf5*) # as osf3* with the addition of -msym flag
Chris@19 11058 if test "$GCC" = yes; then
Chris@19 11059 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Chris@19 11060 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Chris@19 11061 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@19 11062 else
Chris@19 11063 allow_undefined_flag=' -expect_unresolved \*'
Chris@19 11064 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
Chris@19 11065 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
Chris@19 11066 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
Chris@19 11067
Chris@19 11068 # Both c and cxx compiler support -rpath directly
Chris@19 11069 hardcode_libdir_flag_spec='-rpath $libdir'
Chris@19 11070 fi
Chris@19 11071 archive_cmds_need_lc='no'
Chris@19 11072 hardcode_libdir_separator=:
Chris@19 11073 ;;
Chris@19 11074
Chris@19 11075 solaris*)
Chris@19 11076 no_undefined_flag=' -z defs'
Chris@19 11077 if test "$GCC" = yes; then
Chris@19 11078 wlarc='${wl}'
Chris@19 11079 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 11080 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@19 11081 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Chris@19 11082 else
Chris@19 11083 case `$CC -V 2>&1` in
Chris@19 11084 *"Compilers 5.0"*)
Chris@19 11085 wlarc=''
Chris@19 11086 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@19 11087 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@19 11088 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
Chris@19 11089 ;;
Chris@19 11090 *)
Chris@19 11091 wlarc='${wl}'
Chris@19 11092 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 11093 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@19 11094 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Chris@19 11095 ;;
Chris@19 11096 esac
Chris@19 11097 fi
Chris@19 11098 hardcode_libdir_flag_spec='-R$libdir'
Chris@19 11099 hardcode_shlibpath_var=no
Chris@19 11100 case $host_os in
Chris@19 11101 solaris2.[0-5] | solaris2.[0-5].*) ;;
Chris@19 11102 *)
Chris@19 11103 # The compiler driver will combine and reorder linker options,
Chris@19 11104 # but understands `-z linker_flag'. GCC discards it without `$wl',
Chris@19 11105 # but is careful enough not to reorder.
Chris@19 11106 # Supported since Solaris 2.6 (maybe 2.5.1?)
Chris@19 11107 if test "$GCC" = yes; then
Chris@19 11108 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
Chris@19 11109 else
Chris@19 11110 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
Chris@19 11111 fi
Chris@19 11112 ;;
Chris@19 11113 esac
Chris@19 11114 link_all_deplibs=yes
Chris@19 11115 ;;
Chris@19 11116
Chris@19 11117 sunos4*)
Chris@19 11118 if test "x$host_vendor" = xsequent; then
Chris@19 11119 # Use $CC to link under sequent, because it throws in some extra .o
Chris@19 11120 # files that make .init and .fini sections work.
Chris@19 11121 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 11122 else
Chris@19 11123 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
Chris@19 11124 fi
Chris@19 11125 hardcode_libdir_flag_spec='-L$libdir'
Chris@19 11126 hardcode_direct=yes
Chris@19 11127 hardcode_minus_L=yes
Chris@19 11128 hardcode_shlibpath_var=no
Chris@19 11129 ;;
Chris@19 11130
Chris@19 11131 sysv4)
Chris@19 11132 case $host_vendor in
Chris@19 11133 sni)
Chris@19 11134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@19 11135 hardcode_direct=yes # is this really true???
Chris@19 11136 ;;
Chris@19 11137 siemens)
Chris@19 11138 ## LD is ld it makes a PLAMLIB
Chris@19 11139 ## CC just makes a GrossModule.
Chris@19 11140 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
Chris@19 11141 reload_cmds='$CC -r -o $output$reload_objs'
Chris@19 11142 hardcode_direct=no
Chris@19 11143 ;;
Chris@19 11144 motorola)
Chris@19 11145 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@19 11146 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
Chris@19 11147 ;;
Chris@19 11148 esac
Chris@19 11149 runpath_var='LD_RUN_PATH'
Chris@19 11150 hardcode_shlibpath_var=no
Chris@19 11151 ;;
Chris@19 11152
Chris@19 11153 sysv4.3*)
Chris@19 11154 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@19 11155 hardcode_shlibpath_var=no
Chris@19 11156 export_dynamic_flag_spec='-Bexport'
Chris@19 11157 ;;
Chris@19 11158
Chris@19 11159 sysv4*MP*)
Chris@19 11160 if test -d /usr/nec; then
Chris@19 11161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@19 11162 hardcode_shlibpath_var=no
Chris@19 11163 runpath_var=LD_RUN_PATH
Chris@19 11164 hardcode_runpath_var=yes
Chris@19 11165 ld_shlibs=yes
Chris@19 11166 fi
Chris@19 11167 ;;
Chris@19 11168
Chris@19 11169 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Chris@19 11170 no_undefined_flag='${wl}-z,text'
Chris@19 11171 archive_cmds_need_lc=no
Chris@19 11172 hardcode_shlibpath_var=no
Chris@19 11173 runpath_var='LD_RUN_PATH'
Chris@19 11174
Chris@19 11175 if test "$GCC" = yes; then
Chris@19 11176 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 11177 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 11178 else
Chris@19 11179 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 11180 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 11181 fi
Chris@19 11182 ;;
Chris@19 11183
Chris@19 11184 sysv5* | sco3.2v5* | sco5v6*)
Chris@19 11185 # Note: We can NOT use -z defs as we might desire, because we do not
Chris@19 11186 # link with -lc, and that would cause any symbols used from libc to
Chris@19 11187 # always be unresolved, which means just about no library would
Chris@19 11188 # ever link correctly. If we're not using GNU ld we use -z text
Chris@19 11189 # though, which does catch some bad symbols but isn't as heavy-handed
Chris@19 11190 # as -z defs.
Chris@19 11191 no_undefined_flag='${wl}-z,text'
Chris@19 11192 allow_undefined_flag='${wl}-z,nodefs'
Chris@19 11193 archive_cmds_need_lc=no
Chris@19 11194 hardcode_shlibpath_var=no
Chris@19 11195 hardcode_libdir_flag_spec='${wl}-R,$libdir'
Chris@19 11196 hardcode_libdir_separator=':'
Chris@19 11197 link_all_deplibs=yes
Chris@19 11198 export_dynamic_flag_spec='${wl}-Bexport'
Chris@19 11199 runpath_var='LD_RUN_PATH'
Chris@19 11200
Chris@19 11201 if test "$GCC" = yes; then
Chris@19 11202 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 11203 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 11204 else
Chris@19 11205 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 11206 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 11207 fi
Chris@19 11208 ;;
Chris@19 11209
Chris@19 11210 uts4*)
Chris@19 11211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@19 11212 hardcode_libdir_flag_spec='-L$libdir'
Chris@19 11213 hardcode_shlibpath_var=no
Chris@19 11214 ;;
Chris@19 11215
Chris@19 11216 *)
Chris@19 11217 ld_shlibs=no
Chris@19 11218 ;;
Chris@19 11219 esac
Chris@19 11220
Chris@19 11221 if test x$host_vendor = xsni; then
Chris@19 11222 case $host in
Chris@19 11223 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Chris@19 11224 export_dynamic_flag_spec='${wl}-Blargedynsym'
Chris@19 11225 ;;
Chris@19 11226 esac
Chris@19 11227 fi
Chris@19 11228 fi
Chris@19 11229
Chris@19 11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
Chris@19 11231 $as_echo "$ld_shlibs" >&6; }
Chris@19 11232 test "$ld_shlibs" = no && can_build_shared=no
Chris@19 11233
Chris@19 11234 with_gnu_ld=$with_gnu_ld
Chris@19 11235
Chris@19 11236
Chris@19 11237
Chris@19 11238
Chris@19 11239
Chris@19 11240
Chris@19 11241
Chris@19 11242
Chris@19 11243
Chris@19 11244
Chris@19 11245
Chris@19 11246
Chris@19 11247
Chris@19 11248
Chris@19 11249
Chris@19 11250 #
Chris@19 11251 # Do we need to explicitly link libc?
Chris@19 11252 #
Chris@19 11253 case "x$archive_cmds_need_lc" in
Chris@19 11254 x|xyes)
Chris@19 11255 # Assume -lc should be added
Chris@19 11256 archive_cmds_need_lc=yes
Chris@19 11257
Chris@19 11258 if test "$enable_shared" = yes && test "$GCC" = yes; then
Chris@19 11259 case $archive_cmds in
Chris@19 11260 *'~'*)
Chris@19 11261 # FIXME: we may have to deal with multi-command sequences.
Chris@19 11262 ;;
Chris@19 11263 '$CC '*)
Chris@19 11264 # Test whether the compiler implicitly links with -lc since on some
Chris@19 11265 # systems, -lgcc has to come before -lc. If gcc already passes -lc
Chris@19 11266 # to ld, don't add -lc before -lgcc.
Chris@19 11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Chris@19 11268 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Chris@19 11269 if ${lt_cv_archive_cmds_need_lc+:} false; then :
Chris@19 11270 $as_echo_n "(cached) " >&6
Chris@19 11271 else
Chris@19 11272 $RM conftest*
Chris@19 11273 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@19 11274
Chris@19 11275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@19 11276 (eval $ac_compile) 2>&5
Chris@19 11277 ac_status=$?
Chris@19 11278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@19 11279 test $ac_status = 0; } 2>conftest.err; then
Chris@19 11280 soname=conftest
Chris@19 11281 lib=conftest
Chris@19 11282 libobjs=conftest.$ac_objext
Chris@19 11283 deplibs=
Chris@19 11284 wl=$lt_prog_compiler_wl
Chris@19 11285 pic_flag=$lt_prog_compiler_pic
Chris@19 11286 compiler_flags=-v
Chris@19 11287 linker_flags=-v
Chris@19 11288 verstring=
Chris@19 11289 output_objdir=.
Chris@19 11290 libname=conftest
Chris@19 11291 lt_save_allow_undefined_flag=$allow_undefined_flag
Chris@19 11292 allow_undefined_flag=
Chris@19 11293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Chris@19 11294 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Chris@19 11295 ac_status=$?
Chris@19 11296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@19 11297 test $ac_status = 0; }
Chris@19 11298 then
Chris@19 11299 lt_cv_archive_cmds_need_lc=no
Chris@19 11300 else
Chris@19 11301 lt_cv_archive_cmds_need_lc=yes
Chris@19 11302 fi
Chris@19 11303 allow_undefined_flag=$lt_save_allow_undefined_flag
Chris@19 11304 else
Chris@19 11305 cat conftest.err 1>&5
Chris@19 11306 fi
Chris@19 11307 $RM conftest*
Chris@19 11308
Chris@19 11309 fi
Chris@19 11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
Chris@19 11311 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
Chris@19 11312 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Chris@19 11313 ;;
Chris@19 11314 esac
Chris@19 11315 fi
Chris@19 11316 ;;
Chris@19 11317 esac
Chris@19 11318
Chris@19 11319
Chris@19 11320
Chris@19 11321
Chris@19 11322
Chris@19 11323
Chris@19 11324
Chris@19 11325
Chris@19 11326
Chris@19 11327
Chris@19 11328
Chris@19 11329
Chris@19 11330
Chris@19 11331
Chris@19 11332
Chris@19 11333
Chris@19 11334
Chris@19 11335
Chris@19 11336
Chris@19 11337
Chris@19 11338
Chris@19 11339
Chris@19 11340
Chris@19 11341
Chris@19 11342
Chris@19 11343
Chris@19 11344
Chris@19 11345
Chris@19 11346
Chris@19 11347
Chris@19 11348
Chris@19 11349
Chris@19 11350
Chris@19 11351
Chris@19 11352
Chris@19 11353
Chris@19 11354
Chris@19 11355
Chris@19 11356
Chris@19 11357
Chris@19 11358
Chris@19 11359
Chris@19 11360
Chris@19 11361
Chris@19 11362
Chris@19 11363
Chris@19 11364
Chris@19 11365
Chris@19 11366
Chris@19 11367
Chris@19 11368
Chris@19 11369
Chris@19 11370
Chris@19 11371
Chris@19 11372
Chris@19 11373
Chris@19 11374
Chris@19 11375
Chris@19 11376
Chris@19 11377
Chris@19 11378
Chris@19 11379
Chris@19 11380
Chris@19 11381
Chris@19 11382
Chris@19 11383
Chris@19 11384
Chris@19 11385
Chris@19 11386
Chris@19 11387
Chris@19 11388
Chris@19 11389
Chris@19 11390
Chris@19 11391
Chris@19 11392
Chris@19 11393
Chris@19 11394
Chris@19 11395
Chris@19 11396
Chris@19 11397
Chris@19 11398
Chris@19 11399
Chris@19 11400
Chris@19 11401
Chris@19 11402
Chris@19 11403
Chris@19 11404
Chris@19 11405
Chris@19 11406
Chris@19 11407
Chris@19 11408
Chris@19 11409
Chris@19 11410
Chris@19 11411
Chris@19 11412
Chris@19 11413
Chris@19 11414
Chris@19 11415
Chris@19 11416
Chris@19 11417
Chris@19 11418
Chris@19 11419
Chris@19 11420
Chris@19 11421
Chris@19 11422
Chris@19 11423
Chris@19 11424
Chris@19 11425
Chris@19 11426
Chris@19 11427
Chris@19 11428
Chris@19 11429
Chris@19 11430
Chris@19 11431
Chris@19 11432
Chris@19 11433
Chris@19 11434
Chris@19 11435
Chris@19 11436
Chris@19 11437
Chris@19 11438
Chris@19 11439
Chris@19 11440
Chris@19 11441
Chris@19 11442
Chris@19 11443
Chris@19 11444
Chris@19 11445
Chris@19 11446
Chris@19 11447
Chris@19 11448
Chris@19 11449
Chris@19 11450
Chris@19 11451
Chris@19 11452
Chris@19 11453
Chris@19 11454
Chris@19 11455
Chris@19 11456
Chris@19 11457
Chris@19 11458
Chris@19 11459
Chris@19 11460
Chris@19 11461
Chris@19 11462
Chris@19 11463
Chris@19 11464
Chris@19 11465
Chris@19 11466
Chris@19 11467
Chris@19 11468
Chris@19 11469
Chris@19 11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Chris@19 11471 $as_echo_n "checking dynamic linker characteristics... " >&6; }
Chris@19 11472
Chris@19 11473 if test "$GCC" = yes; then
Chris@19 11474 case $host_os in
Chris@19 11475 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
Chris@19 11476 *) lt_awk_arg="/^libraries:/" ;;
Chris@19 11477 esac
Chris@19 11478 case $host_os in
Chris@19 11479 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
Chris@19 11480 *) lt_sed_strip_eq="s,=/,/,g" ;;
Chris@19 11481 esac
Chris@19 11482 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
Chris@19 11483 case $lt_search_path_spec in
Chris@19 11484 *\;*)
Chris@19 11485 # if the path contains ";" then we assume it to be the separator
Chris@19 11486 # otherwise default to the standard path separator (i.e. ":") - it is
Chris@19 11487 # assumed that no part of a normal pathname contains ";" but that should
Chris@19 11488 # okay in the real world where ";" in dirpaths is itself problematic.
Chris@19 11489 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
Chris@19 11490 ;;
Chris@19 11491 *)
Chris@19 11492 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
Chris@19 11493 ;;
Chris@19 11494 esac
Chris@19 11495 # Ok, now we have the path, separated by spaces, we can step through it
Chris@19 11496 # and add multilib dir if necessary.
Chris@19 11497 lt_tmp_lt_search_path_spec=
Chris@19 11498 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
Chris@19 11499 for lt_sys_path in $lt_search_path_spec; do
Chris@19 11500 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
Chris@19 11501 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
Chris@19 11502 else
Chris@19 11503 test -d "$lt_sys_path" && \
Chris@19 11504 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
Chris@19 11505 fi
Chris@19 11506 done
Chris@19 11507 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Chris@19 11508 BEGIN {RS=" "; FS="/|\n";} {
Chris@19 11509 lt_foo="";
Chris@19 11510 lt_count=0;
Chris@19 11511 for (lt_i = NF; lt_i > 0; lt_i--) {
Chris@19 11512 if ($lt_i != "" && $lt_i != ".") {
Chris@19 11513 if ($lt_i == "..") {
Chris@19 11514 lt_count++;
Chris@19 11515 } else {
Chris@19 11516 if (lt_count == 0) {
Chris@19 11517 lt_foo="/" $lt_i lt_foo;
Chris@19 11518 } else {
Chris@19 11519 lt_count--;
Chris@19 11520 }
Chris@19 11521 }
Chris@19 11522 }
Chris@19 11523 }
Chris@19 11524 if (lt_foo != "") { lt_freq[lt_foo]++; }
Chris@19 11525 if (lt_freq[lt_foo] == 1) { print lt_foo; }
Chris@19 11526 }'`
Chris@19 11527 # AWK program above erroneously prepends '/' to C:/dos/paths
Chris@19 11528 # for these hosts.
Chris@19 11529 case $host_os in
Chris@19 11530 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
Chris@19 11531 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
Chris@19 11532 esac
Chris@19 11533 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Chris@19 11534 else
Chris@19 11535 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Chris@19 11536 fi
Chris@19 11537 library_names_spec=
Chris@19 11538 libname_spec='lib$name'
Chris@19 11539 soname_spec=
Chris@19 11540 shrext_cmds=".so"
Chris@19 11541 postinstall_cmds=
Chris@19 11542 postuninstall_cmds=
Chris@19 11543 finish_cmds=
Chris@19 11544 finish_eval=
Chris@19 11545 shlibpath_var=
Chris@19 11546 shlibpath_overrides_runpath=unknown
Chris@19 11547 version_type=none
Chris@19 11548 dynamic_linker="$host_os ld.so"
Chris@19 11549 sys_lib_dlsearch_path_spec="/lib /usr/lib"
Chris@19 11550 need_lib_prefix=unknown
Chris@19 11551 hardcode_into_libs=no
Chris@19 11552
Chris@19 11553 # when you set need_version to no, make sure it does not cause -set_version
Chris@19 11554 # flags to be left without arguments
Chris@19 11555 need_version=unknown
Chris@19 11556
Chris@19 11557 case $host_os in
Chris@19 11558 aix3*)
Chris@19 11559 version_type=linux # correct to gnu/linux during the next big refactor
Chris@19 11560 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
Chris@19 11561 shlibpath_var=LIBPATH
Chris@19 11562
Chris@19 11563 # AIX 3 has no versioning support, so we append a major version to the name.
Chris@19 11564 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 11565 ;;
Chris@19 11566
Chris@19 11567 aix[4-9]*)
Chris@19 11568 version_type=linux # correct to gnu/linux during the next big refactor
Chris@19 11569 need_lib_prefix=no
Chris@19 11570 need_version=no
Chris@19 11571 hardcode_into_libs=yes
Chris@19 11572 if test "$host_cpu" = ia64; then
Chris@19 11573 # AIX 5 supports IA64
Chris@19 11574 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
Chris@19 11575 shlibpath_var=LD_LIBRARY_PATH
Chris@19 11576 else
Chris@19 11577 # With GCC up to 2.95.x, collect2 would create an import file
Chris@19 11578 # for dependence libraries. The import file would start with
Chris@19 11579 # the line `#! .'. This would cause the generated library to
Chris@19 11580 # depend on `.', always an invalid library. This was fixed in
Chris@19 11581 # development snapshots of GCC prior to 3.0.
Chris@19 11582 case $host_os in
Chris@19 11583 aix4 | aix4.[01] | aix4.[01].*)
Chris@19 11584 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
Chris@19 11585 echo ' yes '
Chris@19 11586 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
Chris@19 11587 :
Chris@19 11588 else
Chris@19 11589 can_build_shared=no
Chris@19 11590 fi
Chris@19 11591 ;;
Chris@19 11592 esac
Chris@19 11593 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
Chris@19 11594 # soname into executable. Probably we can add versioning support to
Chris@19 11595 # collect2, so additional links can be useful in future.
Chris@19 11596 if test "$aix_use_runtimelinking" = yes; then
Chris@19 11597 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
Chris@19 11598 # instead of lib<name>.a to let people know that these are not
Chris@19 11599 # typical AIX shared libraries.
Chris@19 11600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@19 11601 else
Chris@19 11602 # We preserve .a as extension for shared libraries through AIX4.2
Chris@19 11603 # and later when we are not doing run time linking.
Chris@19 11604 library_names_spec='${libname}${release}.a $libname.a'
Chris@19 11605 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 11606 fi
Chris@19 11607 shlibpath_var=LIBPATH
Chris@19 11608 fi
Chris@19 11609 ;;
Chris@19 11610
Chris@19 11611 amigaos*)
Chris@19 11612 case $host_cpu in
Chris@19 11613 powerpc)
Chris@19 11614 # Since July 2007 AmigaOS4 officially supports .so libraries.
Chris@19 11615 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Chris@19 11616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@19 11617 ;;
Chris@19 11618 m68k)
Chris@19 11619 library_names_spec='$libname.ixlibrary $libname.a'
Chris@19 11620 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Chris@19 11621 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
Chris@19 11622 ;;
Chris@19 11623 esac
Chris@19 11624 ;;
Chris@19 11625
Chris@19 11626 beos*)
Chris@19 11627 library_names_spec='${libname}${shared_ext}'
Chris@19 11628 dynamic_linker="$host_os ld.so"
Chris@19 11629 shlibpath_var=LIBRARY_PATH
Chris@19 11630 ;;
Chris@19 11631
Chris@19 11632 bsdi[45]*)
Chris@19 11633 version_type=linux # correct to gnu/linux during the next big refactor
Chris@19 11634 need_version=no
Chris@19 11635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@19 11636 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 11637 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
Chris@19 11638 shlibpath_var=LD_LIBRARY_PATH
Chris@19 11639 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
Chris@19 11640 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
Chris@19 11641 # the default ld.so.conf also contains /usr/contrib/lib and
Chris@19 11642 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
Chris@19 11643 # libtool to hard-code these into programs
Chris@19 11644 ;;
Chris@19 11645
Chris@19 11646 cygwin* | mingw* | pw32* | cegcc*)
Chris@19 11647 version_type=windows
Chris@19 11648 shrext_cmds=".dll"
Chris@19 11649 need_version=no
Chris@19 11650 need_lib_prefix=no
Chris@19 11651
Chris@19 11652 case $GCC,$cc_basename in
Chris@19 11653 yes,*)
Chris@19 11654 # gcc
Chris@19 11655 library_names_spec='$libname.dll.a'
Chris@19 11656 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@19 11657 postinstall_cmds='base_file=`basename \${file}`~
Chris@19 11658 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Chris@19 11659 dldir=$destdir/`dirname \$dlpath`~
Chris@19 11660 test -d \$dldir || mkdir -p \$dldir~
Chris@19 11661 $install_prog $dir/$dlname \$dldir/$dlname~
Chris@19 11662 chmod a+x \$dldir/$dlname~
Chris@19 11663 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
Chris@19 11664 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
Chris@19 11665 fi'
Chris@19 11666 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@19 11667 dlpath=$dir/\$dldll~
Chris@19 11668 $RM \$dlpath'
Chris@19 11669 shlibpath_overrides_runpath=yes
Chris@19 11670
Chris@19 11671 case $host_os in
Chris@19 11672 cygwin*)
Chris@19 11673 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Chris@19 11674 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@19 11675
Chris@19 11676 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Chris@19 11677 ;;
Chris@19 11678 mingw* | cegcc*)
Chris@19 11679 # MinGW DLLs use traditional 'lib' prefix
Chris@19 11680 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@19 11681 ;;
Chris@19 11682 pw32*)
Chris@19 11683 # pw32 DLLs use 'pw' prefix rather than 'lib'
Chris@19 11684 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@19 11685 ;;
Chris@19 11686 esac
Chris@19 11687 dynamic_linker='Win32 ld.exe'
Chris@19 11688 ;;
Chris@19 11689
Chris@19 11690 *,cl*)
Chris@19 11691 # Native MSVC
Chris@19 11692 libname_spec='$name'
Chris@19 11693 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@19 11694 library_names_spec='${libname}.dll.lib'
Chris@19 11695
Chris@19 11696 case $build_os in
Chris@19 11697 mingw*)
Chris@19 11698 sys_lib_search_path_spec=
Chris@19 11699 lt_save_ifs=$IFS
Chris@19 11700 IFS=';'
Chris@19 11701 for lt_path in $LIB
Chris@19 11702 do
Chris@19 11703 IFS=$lt_save_ifs
Chris@19 11704 # Let DOS variable expansion print the short 8.3 style file name.
Chris@19 11705 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
Chris@19 11706 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
Chris@19 11707 done
Chris@19 11708 IFS=$lt_save_ifs
Chris@19 11709 # Convert to MSYS style.
Chris@19 11710 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
Chris@19 11711 ;;
Chris@19 11712 cygwin*)
Chris@19 11713 # Convert to unix form, then to dos form, then back to unix form
Chris@19 11714 # but this time dos style (no spaces!) so that the unix form looks
Chris@19 11715 # like /cygdrive/c/PROGRA~1:/cygdr...
Chris@19 11716 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
Chris@19 11717 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
Chris@19 11718 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@19 11719 ;;
Chris@19 11720 *)
Chris@19 11721 sys_lib_search_path_spec="$LIB"
Chris@19 11722 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
Chris@19 11723 # It is most probably a Windows format PATH.
Chris@19 11724 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Chris@19 11725 else
Chris@19 11726 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@19 11727 fi
Chris@19 11728 # FIXME: find the short name or the path components, as spaces are
Chris@19 11729 # common. (e.g. "Program Files" -> "PROGRA~1")
Chris@19 11730 ;;
Chris@19 11731 esac
Chris@19 11732
Chris@19 11733 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@19 11734 postinstall_cmds='base_file=`basename \${file}`~
Chris@19 11735 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Chris@19 11736 dldir=$destdir/`dirname \$dlpath`~
Chris@19 11737 test -d \$dldir || mkdir -p \$dldir~
Chris@19 11738 $install_prog $dir/$dlname \$dldir/$dlname'
Chris@19 11739 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@19 11740 dlpath=$dir/\$dldll~
Chris@19 11741 $RM \$dlpath'
Chris@19 11742 shlibpath_overrides_runpath=yes
Chris@19 11743 dynamic_linker='Win32 link.exe'
Chris@19 11744 ;;
Chris@19 11745
Chris@19 11746 *)
Chris@19 11747 # Assume MSVC wrapper
Chris@19 11748 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Chris@19 11749 dynamic_linker='Win32 ld.exe'
Chris@19 11750 ;;
Chris@19 11751 esac
Chris@19 11752 # FIXME: first we should search . and the directory the executable is in
Chris@19 11753 shlibpath_var=PATH
Chris@19 11754 ;;
Chris@19 11755
Chris@19 11756 darwin* | rhapsody*)
Chris@19 11757 dynamic_linker="$host_os dyld"
Chris@19 11758 version_type=darwin
Chris@19 11759 need_lib_prefix=no
Chris@19 11760 need_version=no
Chris@19 11761 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Chris@19 11762 soname_spec='${libname}${release}${major}$shared_ext'
Chris@19 11763 shlibpath_overrides_runpath=yes
Chris@19 11764 shlibpath_var=DYLD_LIBRARY_PATH
Chris@19 11765 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Chris@19 11766
Chris@19 11767 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
Chris@19 11768 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
Chris@19 11769 ;;
Chris@19 11770
Chris@19 11771 dgux*)
Chris@19 11772 version_type=linux # correct to gnu/linux during the next big refactor
Chris@19 11773 need_lib_prefix=no
Chris@19 11774 need_version=no
Chris@19 11775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
Chris@19 11776 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 11777 shlibpath_var=LD_LIBRARY_PATH
Chris@19 11778 ;;
Chris@19 11779
Chris@19 11780 freebsd* | dragonfly*)
Chris@19 11781 # DragonFly does not have aout. When/if they implement a new
Chris@19 11782 # versioning mechanism, adjust this.
Chris@19 11783 if test -x /usr/bin/objformat; then
Chris@19 11784 objformat=`/usr/bin/objformat`
Chris@19 11785 else
Chris@19 11786 case $host_os in
Chris@19 11787 freebsd[23].*) objformat=aout ;;
Chris@19 11788 *) objformat=elf ;;
Chris@19 11789 esac
Chris@19 11790 fi
Chris@19 11791 version_type=freebsd-$objformat
Chris@19 11792 case $version_type in
Chris@19 11793 freebsd-elf*)
Chris@19 11794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@19 11795 need_version=no
Chris@19 11796 need_lib_prefix=no
Chris@19 11797 ;;
Chris@19 11798 freebsd-*)
Chris@19 11799 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
Chris@19 11800 need_version=yes
Chris@19 11801 ;;
Chris@19 11802 esac
Chris@19 11803 shlibpath_var=LD_LIBRARY_PATH
Chris@19 11804 case $host_os in
Chris@19 11805 freebsd2.*)
Chris@19 11806 shlibpath_overrides_runpath=yes
Chris@19 11807 ;;
Chris@19 11808 freebsd3.[01]* | freebsdelf3.[01]*)
Chris@19 11809 shlibpath_overrides_runpath=yes
Chris@19 11810 hardcode_into_libs=yes
Chris@19 11811 ;;
Chris@19 11812 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
Chris@19 11813 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Chris@19 11814 shlibpath_overrides_runpath=no
Chris@19 11815 hardcode_into_libs=yes
Chris@19 11816 ;;
Chris@19 11817 *) # from 4.6 on, and DragonFly
Chris@19 11818 shlibpath_overrides_runpath=yes
Chris@19 11819 hardcode_into_libs=yes
Chris@19 11820 ;;
Chris@19 11821 esac
Chris@19 11822 ;;
Chris@19 11823
Chris@19 11824 gnu*)
Chris@19 11825 version_type=linux # correct to gnu/linux during the next big refactor
Chris@19 11826 need_lib_prefix=no
Chris@19 11827 need_version=no
Chris@19 11828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
Chris@19 11829 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 11830 shlibpath_var=LD_LIBRARY_PATH
Chris@19 11831 shlibpath_overrides_runpath=no
Chris@19 11832 hardcode_into_libs=yes
Chris@19 11833 ;;
Chris@19 11834
Chris@19 11835 haiku*)
Chris@19 11836 version_type=linux # correct to gnu/linux during the next big refactor
Chris@19 11837 need_lib_prefix=no
Chris@19 11838 need_version=no
Chris@19 11839 dynamic_linker="$host_os runtime_loader"
Chris@19 11840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
Chris@19 11841 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 11842 shlibpath_var=LIBRARY_PATH
Chris@19 11843 shlibpath_overrides_runpath=yes
Chris@19 11844 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Chris@19 11845 hardcode_into_libs=yes
Chris@19 11846 ;;
Chris@19 11847
Chris@19 11848 hpux9* | hpux10* | hpux11*)
Chris@19 11849 # Give a soname corresponding to the major version so that dld.sl refuses to
Chris@19 11850 # link against other versions.
Chris@19 11851 version_type=sunos
Chris@19 11852 need_lib_prefix=no
Chris@19 11853 need_version=no
Chris@19 11854 case $host_cpu in
Chris@19 11855 ia64*)
Chris@19 11856 shrext_cmds='.so'
Chris@19 11857 hardcode_into_libs=yes
Chris@19 11858 dynamic_linker="$host_os dld.so"
Chris@19 11859 shlibpath_var=LD_LIBRARY_PATH
Chris@19 11860 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@19 11861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@19 11862 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 11863 if test "X$HPUX_IA64_MODE" = X32; then
Chris@19 11864 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Chris@19 11865 else
Chris@19 11866 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Chris@19 11867 fi
Chris@19 11868 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@19 11869 ;;
Chris@19 11870 hppa*64*)
Chris@19 11871 shrext_cmds='.sl'
Chris@19 11872 hardcode_into_libs=yes
Chris@19 11873 dynamic_linker="$host_os dld.sl"
Chris@19 11874 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
Chris@19 11875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@19 11876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@19 11877 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 11878 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
Chris@19 11879 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@19 11880 ;;
Chris@19 11881 *)
Chris@19 11882 shrext_cmds='.sl'
Chris@19 11883 dynamic_linker="$host_os dld.sl"
Chris@19 11884 shlibpath_var=SHLIB_PATH
Chris@19 11885 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Chris@19 11886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@19 11887 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 11888 ;;
Chris@19 11889 esac
Chris@19 11890 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Chris@19 11891 postinstall_cmds='chmod 555 $lib'
Chris@19 11892 # or fails outright, so override atomically:
Chris@19 11893 install_override_mode=555
Chris@19 11894 ;;
Chris@19 11895
Chris@19 11896 interix[3-9]*)
Chris@19 11897 version_type=linux # correct to gnu/linux during the next big refactor
Chris@19 11898 need_lib_prefix=no
Chris@19 11899 need_version=no
Chris@19 11900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@19 11901 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 11902 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
Chris@19 11903 shlibpath_var=LD_LIBRARY_PATH
Chris@19 11904 shlibpath_overrides_runpath=no
Chris@19 11905 hardcode_into_libs=yes
Chris@19 11906 ;;
Chris@19 11907
Chris@19 11908 irix5* | irix6* | nonstopux*)
Chris@19 11909 case $host_os in
Chris@19 11910 nonstopux*) version_type=nonstopux ;;
Chris@19 11911 *)
Chris@19 11912 if test "$lt_cv_prog_gnu_ld" = yes; then
Chris@19 11913 version_type=linux # correct to gnu/linux during the next big refactor
Chris@19 11914 else
Chris@19 11915 version_type=irix
Chris@19 11916 fi ;;
Chris@19 11917 esac
Chris@19 11918 need_lib_prefix=no
Chris@19 11919 need_version=no
Chris@19 11920 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 11921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@19 11922 case $host_os in
Chris@19 11923 irix5* | nonstopux*)
Chris@19 11924 libsuff= shlibsuff=
Chris@19 11925 ;;
Chris@19 11926 *)
Chris@19 11927 case $LD in # libtool.m4 will add one of these switches to LD
Chris@19 11928 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
Chris@19 11929 libsuff= shlibsuff= libmagic=32-bit;;
Chris@19 11930 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
Chris@19 11931 libsuff=32 shlibsuff=N32 libmagic=N32;;
Chris@19 11932 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
Chris@19 11933 libsuff=64 shlibsuff=64 libmagic=64-bit;;
Chris@19 11934 *) libsuff= shlibsuff= libmagic=never-match;;
Chris@19 11935 esac
Chris@19 11936 ;;
Chris@19 11937 esac
Chris@19 11938 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
Chris@19 11939 shlibpath_overrides_runpath=no
Chris@19 11940 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
Chris@19 11941 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
Chris@19 11942 hardcode_into_libs=yes
Chris@19 11943 ;;
Chris@19 11944
Chris@19 11945 # No shared lib support for Linux oldld, aout, or coff.
Chris@19 11946 linux*oldld* | linux*aout* | linux*coff*)
Chris@19 11947 dynamic_linker=no
Chris@19 11948 ;;
Chris@19 11949
Chris@19 11950 # This must be glibc/ELF.
Chris@19 11951 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@19 11952 version_type=linux # correct to gnu/linux during the next big refactor
Chris@19 11953 need_lib_prefix=no
Chris@19 11954 need_version=no
Chris@19 11955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@19 11956 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 11957 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
Chris@19 11958 shlibpath_var=LD_LIBRARY_PATH
Chris@19 11959 shlibpath_overrides_runpath=no
Chris@19 11960
Chris@19 11961 # Some binutils ld are patched to set DT_RUNPATH
Chris@19 11962 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
Chris@19 11963 $as_echo_n "(cached) " >&6
Chris@19 11964 else
Chris@19 11965 lt_cv_shlibpath_overrides_runpath=no
Chris@19 11966 save_LDFLAGS=$LDFLAGS
Chris@19 11967 save_libdir=$libdir
Chris@19 11968 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
Chris@19 11969 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
Chris@19 11970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 11971 /* end confdefs.h. */
Chris@19 11972
Chris@19 11973 int
Chris@19 11974 main ()
Chris@19 11975 {
Chris@19 11976
Chris@19 11977 ;
Chris@19 11978 return 0;
Chris@19 11979 }
Chris@19 11980 _ACEOF
Chris@19 11981 if ac_fn_c_try_link "$LINENO"; then :
Chris@19 11982 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
Chris@19 11983 lt_cv_shlibpath_overrides_runpath=yes
Chris@19 11984 fi
Chris@19 11985 fi
Chris@19 11986 rm -f core conftest.err conftest.$ac_objext \
Chris@19 11987 conftest$ac_exeext conftest.$ac_ext
Chris@19 11988 LDFLAGS=$save_LDFLAGS
Chris@19 11989 libdir=$save_libdir
Chris@19 11990
Chris@19 11991 fi
Chris@19 11992
Chris@19 11993 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Chris@19 11994
Chris@19 11995 # This implies no fast_install, which is unacceptable.
Chris@19 11996 # Some rework will be needed to allow for fast_install
Chris@19 11997 # before this can be enabled.
Chris@19 11998 hardcode_into_libs=yes
Chris@19 11999
Chris@19 12000 # Append ld.so.conf contents to the search path
Chris@19 12001 if test -f /etc/ld.so.conf; then
Chris@19 12002 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
Chris@19 12003 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
Chris@19 12004 fi
Chris@19 12005
Chris@19 12006 # We used to test for /lib/ld.so.1 and disable shared libraries on
Chris@19 12007 # powerpc, because MkLinux only supported shared libraries with the
Chris@19 12008 # GNU dynamic linker. Since this was broken with cross compilers,
Chris@19 12009 # most powerpc-linux boxes support dynamic linking these days and
Chris@19 12010 # people can always --disable-shared, the test was removed, and we
Chris@19 12011 # assume the GNU/Linux dynamic linker is in use.
Chris@19 12012 dynamic_linker='GNU/Linux ld.so'
Chris@19 12013 ;;
Chris@19 12014
Chris@19 12015 netbsd*)
Chris@19 12016 version_type=sunos
Chris@19 12017 need_lib_prefix=no
Chris@19 12018 need_version=no
Chris@19 12019 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@19 12020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@19 12021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@19 12022 dynamic_linker='NetBSD (a.out) ld.so'
Chris@19 12023 else
Chris@19 12024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@19 12025 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 12026 dynamic_linker='NetBSD ld.elf_so'
Chris@19 12027 fi
Chris@19 12028 shlibpath_var=LD_LIBRARY_PATH
Chris@19 12029 shlibpath_overrides_runpath=yes
Chris@19 12030 hardcode_into_libs=yes
Chris@19 12031 ;;
Chris@19 12032
Chris@19 12033 newsos6)
Chris@19 12034 version_type=linux # correct to gnu/linux during the next big refactor
Chris@19 12035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@19 12036 shlibpath_var=LD_LIBRARY_PATH
Chris@19 12037 shlibpath_overrides_runpath=yes
Chris@19 12038 ;;
Chris@19 12039
Chris@19 12040 *nto* | *qnx*)
Chris@19 12041 version_type=qnx
Chris@19 12042 need_lib_prefix=no
Chris@19 12043 need_version=no
Chris@19 12044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@19 12045 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 12046 shlibpath_var=LD_LIBRARY_PATH
Chris@19 12047 shlibpath_overrides_runpath=no
Chris@19 12048 hardcode_into_libs=yes
Chris@19 12049 dynamic_linker='ldqnx.so'
Chris@19 12050 ;;
Chris@19 12051
Chris@19 12052 openbsd*)
Chris@19 12053 version_type=sunos
Chris@19 12054 sys_lib_dlsearch_path_spec="/usr/lib"
Chris@19 12055 need_lib_prefix=no
Chris@19 12056 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
Chris@19 12057 case $host_os in
Chris@19 12058 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
Chris@19 12059 *) need_version=no ;;
Chris@19 12060 esac
Chris@19 12061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@19 12062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@19 12063 shlibpath_var=LD_LIBRARY_PATH
Chris@19 12064 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@19 12065 case $host_os in
Chris@19 12066 openbsd2.[89] | openbsd2.[89].*)
Chris@19 12067 shlibpath_overrides_runpath=no
Chris@19 12068 ;;
Chris@19 12069 *)
Chris@19 12070 shlibpath_overrides_runpath=yes
Chris@19 12071 ;;
Chris@19 12072 esac
Chris@19 12073 else
Chris@19 12074 shlibpath_overrides_runpath=yes
Chris@19 12075 fi
Chris@19 12076 ;;
Chris@19 12077
Chris@19 12078 os2*)
Chris@19 12079 libname_spec='$name'
Chris@19 12080 shrext_cmds=".dll"
Chris@19 12081 need_lib_prefix=no
Chris@19 12082 library_names_spec='$libname${shared_ext} $libname.a'
Chris@19 12083 dynamic_linker='OS/2 ld.exe'
Chris@19 12084 shlibpath_var=LIBPATH
Chris@19 12085 ;;
Chris@19 12086
Chris@19 12087 osf3* | osf4* | osf5*)
Chris@19 12088 version_type=osf
Chris@19 12089 need_lib_prefix=no
Chris@19 12090 need_version=no
Chris@19 12091 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 12092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@19 12093 shlibpath_var=LD_LIBRARY_PATH
Chris@19 12094 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Chris@19 12095 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
Chris@19 12096 ;;
Chris@19 12097
Chris@19 12098 rdos*)
Chris@19 12099 dynamic_linker=no
Chris@19 12100 ;;
Chris@19 12101
Chris@19 12102 solaris*)
Chris@19 12103 version_type=linux # correct to gnu/linux during the next big refactor
Chris@19 12104 need_lib_prefix=no
Chris@19 12105 need_version=no
Chris@19 12106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@19 12107 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 12108 shlibpath_var=LD_LIBRARY_PATH
Chris@19 12109 shlibpath_overrides_runpath=yes
Chris@19 12110 hardcode_into_libs=yes
Chris@19 12111 # ldd complains unless libraries are executable
Chris@19 12112 postinstall_cmds='chmod +x $lib'
Chris@19 12113 ;;
Chris@19 12114
Chris@19 12115 sunos4*)
Chris@19 12116 version_type=sunos
Chris@19 12117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@19 12118 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
Chris@19 12119 shlibpath_var=LD_LIBRARY_PATH
Chris@19 12120 shlibpath_overrides_runpath=yes
Chris@19 12121 if test "$with_gnu_ld" = yes; then
Chris@19 12122 need_lib_prefix=no
Chris@19 12123 fi
Chris@19 12124 need_version=yes
Chris@19 12125 ;;
Chris@19 12126
Chris@19 12127 sysv4 | sysv4.3*)
Chris@19 12128 version_type=linux # correct to gnu/linux during the next big refactor
Chris@19 12129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@19 12130 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 12131 shlibpath_var=LD_LIBRARY_PATH
Chris@19 12132 case $host_vendor in
Chris@19 12133 sni)
Chris@19 12134 shlibpath_overrides_runpath=no
Chris@19 12135 need_lib_prefix=no
Chris@19 12136 runpath_var=LD_RUN_PATH
Chris@19 12137 ;;
Chris@19 12138 siemens)
Chris@19 12139 need_lib_prefix=no
Chris@19 12140 ;;
Chris@19 12141 motorola)
Chris@19 12142 need_lib_prefix=no
Chris@19 12143 need_version=no
Chris@19 12144 shlibpath_overrides_runpath=no
Chris@19 12145 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
Chris@19 12146 ;;
Chris@19 12147 esac
Chris@19 12148 ;;
Chris@19 12149
Chris@19 12150 sysv4*MP*)
Chris@19 12151 if test -d /usr/nec ;then
Chris@19 12152 version_type=linux # correct to gnu/linux during the next big refactor
Chris@19 12153 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
Chris@19 12154 soname_spec='$libname${shared_ext}.$major'
Chris@19 12155 shlibpath_var=LD_LIBRARY_PATH
Chris@19 12156 fi
Chris@19 12157 ;;
Chris@19 12158
Chris@19 12159 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Chris@19 12160 version_type=freebsd-elf
Chris@19 12161 need_lib_prefix=no
Chris@19 12162 need_version=no
Chris@19 12163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@19 12164 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 12165 shlibpath_var=LD_LIBRARY_PATH
Chris@19 12166 shlibpath_overrides_runpath=yes
Chris@19 12167 hardcode_into_libs=yes
Chris@19 12168 if test "$with_gnu_ld" = yes; then
Chris@19 12169 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Chris@19 12170 else
Chris@19 12171 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Chris@19 12172 case $host_os in
Chris@19 12173 sco3.2v5*)
Chris@19 12174 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
Chris@19 12175 ;;
Chris@19 12176 esac
Chris@19 12177 fi
Chris@19 12178 sys_lib_dlsearch_path_spec='/usr/lib'
Chris@19 12179 ;;
Chris@19 12180
Chris@19 12181 tpf*)
Chris@19 12182 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Chris@19 12183 version_type=linux # correct to gnu/linux during the next big refactor
Chris@19 12184 need_lib_prefix=no
Chris@19 12185 need_version=no
Chris@19 12186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@19 12187 shlibpath_var=LD_LIBRARY_PATH
Chris@19 12188 shlibpath_overrides_runpath=no
Chris@19 12189 hardcode_into_libs=yes
Chris@19 12190 ;;
Chris@19 12191
Chris@19 12192 uts4*)
Chris@19 12193 version_type=linux # correct to gnu/linux during the next big refactor
Chris@19 12194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@19 12195 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 12196 shlibpath_var=LD_LIBRARY_PATH
Chris@19 12197 ;;
Chris@19 12198
Chris@19 12199 *)
Chris@19 12200 dynamic_linker=no
Chris@19 12201 ;;
Chris@19 12202 esac
Chris@19 12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Chris@19 12204 $as_echo "$dynamic_linker" >&6; }
Chris@19 12205 test "$dynamic_linker" = no && can_build_shared=no
Chris@19 12206
Chris@19 12207 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Chris@19 12208 if test "$GCC" = yes; then
Chris@19 12209 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
Chris@19 12210 fi
Chris@19 12211
Chris@19 12212 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
Chris@19 12213 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
Chris@19 12214 fi
Chris@19 12215 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
Chris@19 12216 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
Chris@19 12217 fi
Chris@19 12218
Chris@19 12219
Chris@19 12220
Chris@19 12221
Chris@19 12222
Chris@19 12223
Chris@19 12224
Chris@19 12225
Chris@19 12226
Chris@19 12227
Chris@19 12228
Chris@19 12229
Chris@19 12230
Chris@19 12231
Chris@19 12232
Chris@19 12233
Chris@19 12234
Chris@19 12235
Chris@19 12236
Chris@19 12237
Chris@19 12238
Chris@19 12239
Chris@19 12240
Chris@19 12241
Chris@19 12242
Chris@19 12243
Chris@19 12244
Chris@19 12245
Chris@19 12246
Chris@19 12247
Chris@19 12248
Chris@19 12249
Chris@19 12250
Chris@19 12251
Chris@19 12252
Chris@19 12253
Chris@19 12254
Chris@19 12255
Chris@19 12256
Chris@19 12257
Chris@19 12258
Chris@19 12259
Chris@19 12260
Chris@19 12261
Chris@19 12262
Chris@19 12263
Chris@19 12264
Chris@19 12265
Chris@19 12266
Chris@19 12267
Chris@19 12268
Chris@19 12269
Chris@19 12270
Chris@19 12271
Chris@19 12272
Chris@19 12273
Chris@19 12274
Chris@19 12275
Chris@19 12276
Chris@19 12277
Chris@19 12278
Chris@19 12279
Chris@19 12280
Chris@19 12281
Chris@19 12282
Chris@19 12283
Chris@19 12284
Chris@19 12285
Chris@19 12286
Chris@19 12287
Chris@19 12288
Chris@19 12289
Chris@19 12290
Chris@19 12291
Chris@19 12292
Chris@19 12293
Chris@19 12294
Chris@19 12295
Chris@19 12296
Chris@19 12297
Chris@19 12298
Chris@19 12299
Chris@19 12300
Chris@19 12301
Chris@19 12302
Chris@19 12303
Chris@19 12304
Chris@19 12305
Chris@19 12306
Chris@19 12307
Chris@19 12308
Chris@19 12309
Chris@19 12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Chris@19 12311 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Chris@19 12312 hardcode_action=
Chris@19 12313 if test -n "$hardcode_libdir_flag_spec" ||
Chris@19 12314 test -n "$runpath_var" ||
Chris@19 12315 test "X$hardcode_automatic" = "Xyes" ; then
Chris@19 12316
Chris@19 12317 # We can hardcode non-existent directories.
Chris@19 12318 if test "$hardcode_direct" != no &&
Chris@19 12319 # If the only mechanism to avoid hardcoding is shlibpath_var, we
Chris@19 12320 # have to relink, otherwise we might link with an installed library
Chris@19 12321 # when we should be linking with a yet-to-be-installed one
Chris@19 12322 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
Chris@19 12323 test "$hardcode_minus_L" != no; then
Chris@19 12324 # Linking always hardcodes the temporary library directory.
Chris@19 12325 hardcode_action=relink
Chris@19 12326 else
Chris@19 12327 # We can link without hardcoding, and we can hardcode nonexisting dirs.
Chris@19 12328 hardcode_action=immediate
Chris@19 12329 fi
Chris@19 12330 else
Chris@19 12331 # We cannot hardcode anything, or else we can only hardcode existing
Chris@19 12332 # directories.
Chris@19 12333 hardcode_action=unsupported
Chris@19 12334 fi
Chris@19 12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
Chris@19 12336 $as_echo "$hardcode_action" >&6; }
Chris@19 12337
Chris@19 12338 if test "$hardcode_action" = relink ||
Chris@19 12339 test "$inherit_rpath" = yes; then
Chris@19 12340 # Fast installation is not supported
Chris@19 12341 enable_fast_install=no
Chris@19 12342 elif test "$shlibpath_overrides_runpath" = yes ||
Chris@19 12343 test "$enable_shared" = no; then
Chris@19 12344 # Fast installation is not necessary
Chris@19 12345 enable_fast_install=needless
Chris@19 12346 fi
Chris@19 12347
Chris@19 12348
Chris@19 12349
Chris@19 12350
Chris@19 12351
Chris@19 12352
Chris@19 12353 if test "x$enable_dlopen" != xyes; then
Chris@19 12354 enable_dlopen=unknown
Chris@19 12355 enable_dlopen_self=unknown
Chris@19 12356 enable_dlopen_self_static=unknown
Chris@19 12357 else
Chris@19 12358 lt_cv_dlopen=no
Chris@19 12359 lt_cv_dlopen_libs=
Chris@19 12360
Chris@19 12361 case $host_os in
Chris@19 12362 beos*)
Chris@19 12363 lt_cv_dlopen="load_add_on"
Chris@19 12364 lt_cv_dlopen_libs=
Chris@19 12365 lt_cv_dlopen_self=yes
Chris@19 12366 ;;
Chris@19 12367
Chris@19 12368 mingw* | pw32* | cegcc*)
Chris@19 12369 lt_cv_dlopen="LoadLibrary"
Chris@19 12370 lt_cv_dlopen_libs=
Chris@19 12371 ;;
Chris@19 12372
Chris@19 12373 cygwin*)
Chris@19 12374 lt_cv_dlopen="dlopen"
Chris@19 12375 lt_cv_dlopen_libs=
Chris@19 12376 ;;
Chris@19 12377
Chris@19 12378 darwin*)
Chris@19 12379 # if libdl is installed we need to link against it
Chris@19 12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Chris@19 12381 $as_echo_n "checking for dlopen in -ldl... " >&6; }
Chris@19 12382 if ${ac_cv_lib_dl_dlopen+:} false; then :
Chris@19 12383 $as_echo_n "(cached) " >&6
Chris@19 12384 else
Chris@19 12385 ac_check_lib_save_LIBS=$LIBS
Chris@19 12386 LIBS="-ldl $LIBS"
Chris@19 12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 12388 /* end confdefs.h. */
Chris@19 12389
Chris@19 12390 /* Override any GCC internal prototype to avoid an error.
Chris@19 12391 Use char because int might match the return type of a GCC
Chris@19 12392 builtin and then its argument prototype would still apply. */
Chris@19 12393 #ifdef __cplusplus
Chris@19 12394 extern "C"
Chris@19 12395 #endif
Chris@19 12396 char dlopen ();
Chris@19 12397 int
Chris@19 12398 main ()
Chris@19 12399 {
Chris@19 12400 return dlopen ();
Chris@19 12401 ;
Chris@19 12402 return 0;
Chris@19 12403 }
Chris@19 12404 _ACEOF
Chris@19 12405 if ac_fn_c_try_link "$LINENO"; then :
Chris@19 12406 ac_cv_lib_dl_dlopen=yes
Chris@19 12407 else
Chris@19 12408 ac_cv_lib_dl_dlopen=no
Chris@19 12409 fi
Chris@19 12410 rm -f core conftest.err conftest.$ac_objext \
Chris@19 12411 conftest$ac_exeext conftest.$ac_ext
Chris@19 12412 LIBS=$ac_check_lib_save_LIBS
Chris@19 12413 fi
Chris@19 12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Chris@19 12415 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Chris@19 12416 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Chris@19 12417 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
Chris@19 12418 else
Chris@19 12419
Chris@19 12420 lt_cv_dlopen="dyld"
Chris@19 12421 lt_cv_dlopen_libs=
Chris@19 12422 lt_cv_dlopen_self=yes
Chris@19 12423
Chris@19 12424 fi
Chris@19 12425
Chris@19 12426 ;;
Chris@19 12427
Chris@19 12428 *)
Chris@19 12429 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
Chris@19 12430 if test "x$ac_cv_func_shl_load" = xyes; then :
Chris@19 12431 lt_cv_dlopen="shl_load"
Chris@19 12432 else
Chris@19 12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
Chris@19 12434 $as_echo_n "checking for shl_load in -ldld... " >&6; }
Chris@19 12435 if ${ac_cv_lib_dld_shl_load+:} false; then :
Chris@19 12436 $as_echo_n "(cached) " >&6
Chris@19 12437 else
Chris@19 12438 ac_check_lib_save_LIBS=$LIBS
Chris@19 12439 LIBS="-ldld $LIBS"
Chris@19 12440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 12441 /* end confdefs.h. */
Chris@19 12442
Chris@19 12443 /* Override any GCC internal prototype to avoid an error.
Chris@19 12444 Use char because int might match the return type of a GCC
Chris@19 12445 builtin and then its argument prototype would still apply. */
Chris@19 12446 #ifdef __cplusplus
Chris@19 12447 extern "C"
Chris@19 12448 #endif
Chris@19 12449 char shl_load ();
Chris@19 12450 int
Chris@19 12451 main ()
Chris@19 12452 {
Chris@19 12453 return shl_load ();
Chris@19 12454 ;
Chris@19 12455 return 0;
Chris@19 12456 }
Chris@19 12457 _ACEOF
Chris@19 12458 if ac_fn_c_try_link "$LINENO"; then :
Chris@19 12459 ac_cv_lib_dld_shl_load=yes
Chris@19 12460 else
Chris@19 12461 ac_cv_lib_dld_shl_load=no
Chris@19 12462 fi
Chris@19 12463 rm -f core conftest.err conftest.$ac_objext \
Chris@19 12464 conftest$ac_exeext conftest.$ac_ext
Chris@19 12465 LIBS=$ac_check_lib_save_LIBS
Chris@19 12466 fi
Chris@19 12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
Chris@19 12468 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Chris@19 12469 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Chris@19 12470 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
Chris@19 12471 else
Chris@19 12472 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
Chris@19 12473 if test "x$ac_cv_func_dlopen" = xyes; then :
Chris@19 12474 lt_cv_dlopen="dlopen"
Chris@19 12475 else
Chris@19 12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Chris@19 12477 $as_echo_n "checking for dlopen in -ldl... " >&6; }
Chris@19 12478 if ${ac_cv_lib_dl_dlopen+:} false; then :
Chris@19 12479 $as_echo_n "(cached) " >&6
Chris@19 12480 else
Chris@19 12481 ac_check_lib_save_LIBS=$LIBS
Chris@19 12482 LIBS="-ldl $LIBS"
Chris@19 12483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 12484 /* end confdefs.h. */
Chris@19 12485
Chris@19 12486 /* Override any GCC internal prototype to avoid an error.
Chris@19 12487 Use char because int might match the return type of a GCC
Chris@19 12488 builtin and then its argument prototype would still apply. */
Chris@19 12489 #ifdef __cplusplus
Chris@19 12490 extern "C"
Chris@19 12491 #endif
Chris@19 12492 char dlopen ();
Chris@19 12493 int
Chris@19 12494 main ()
Chris@19 12495 {
Chris@19 12496 return dlopen ();
Chris@19 12497 ;
Chris@19 12498 return 0;
Chris@19 12499 }
Chris@19 12500 _ACEOF
Chris@19 12501 if ac_fn_c_try_link "$LINENO"; then :
Chris@19 12502 ac_cv_lib_dl_dlopen=yes
Chris@19 12503 else
Chris@19 12504 ac_cv_lib_dl_dlopen=no
Chris@19 12505 fi
Chris@19 12506 rm -f core conftest.err conftest.$ac_objext \
Chris@19 12507 conftest$ac_exeext conftest.$ac_ext
Chris@19 12508 LIBS=$ac_check_lib_save_LIBS
Chris@19 12509 fi
Chris@19 12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Chris@19 12511 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Chris@19 12512 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Chris@19 12513 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
Chris@19 12514 else
Chris@19 12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
Chris@19 12516 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
Chris@19 12517 if ${ac_cv_lib_svld_dlopen+:} false; then :
Chris@19 12518 $as_echo_n "(cached) " >&6
Chris@19 12519 else
Chris@19 12520 ac_check_lib_save_LIBS=$LIBS
Chris@19 12521 LIBS="-lsvld $LIBS"
Chris@19 12522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 12523 /* end confdefs.h. */
Chris@19 12524
Chris@19 12525 /* Override any GCC internal prototype to avoid an error.
Chris@19 12526 Use char because int might match the return type of a GCC
Chris@19 12527 builtin and then its argument prototype would still apply. */
Chris@19 12528 #ifdef __cplusplus
Chris@19 12529 extern "C"
Chris@19 12530 #endif
Chris@19 12531 char dlopen ();
Chris@19 12532 int
Chris@19 12533 main ()
Chris@19 12534 {
Chris@19 12535 return dlopen ();
Chris@19 12536 ;
Chris@19 12537 return 0;
Chris@19 12538 }
Chris@19 12539 _ACEOF
Chris@19 12540 if ac_fn_c_try_link "$LINENO"; then :
Chris@19 12541 ac_cv_lib_svld_dlopen=yes
Chris@19 12542 else
Chris@19 12543 ac_cv_lib_svld_dlopen=no
Chris@19 12544 fi
Chris@19 12545 rm -f core conftest.err conftest.$ac_objext \
Chris@19 12546 conftest$ac_exeext conftest.$ac_ext
Chris@19 12547 LIBS=$ac_check_lib_save_LIBS
Chris@19 12548 fi
Chris@19 12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
Chris@19 12550 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Chris@19 12551 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Chris@19 12552 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
Chris@19 12553 else
Chris@19 12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
Chris@19 12555 $as_echo_n "checking for dld_link in -ldld... " >&6; }
Chris@19 12556 if ${ac_cv_lib_dld_dld_link+:} false; then :
Chris@19 12557 $as_echo_n "(cached) " >&6
Chris@19 12558 else
Chris@19 12559 ac_check_lib_save_LIBS=$LIBS
Chris@19 12560 LIBS="-ldld $LIBS"
Chris@19 12561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 12562 /* end confdefs.h. */
Chris@19 12563
Chris@19 12564 /* Override any GCC internal prototype to avoid an error.
Chris@19 12565 Use char because int might match the return type of a GCC
Chris@19 12566 builtin and then its argument prototype would still apply. */
Chris@19 12567 #ifdef __cplusplus
Chris@19 12568 extern "C"
Chris@19 12569 #endif
Chris@19 12570 char dld_link ();
Chris@19 12571 int
Chris@19 12572 main ()
Chris@19 12573 {
Chris@19 12574 return dld_link ();
Chris@19 12575 ;
Chris@19 12576 return 0;
Chris@19 12577 }
Chris@19 12578 _ACEOF
Chris@19 12579 if ac_fn_c_try_link "$LINENO"; then :
Chris@19 12580 ac_cv_lib_dld_dld_link=yes
Chris@19 12581 else
Chris@19 12582 ac_cv_lib_dld_dld_link=no
Chris@19 12583 fi
Chris@19 12584 rm -f core conftest.err conftest.$ac_objext \
Chris@19 12585 conftest$ac_exeext conftest.$ac_ext
Chris@19 12586 LIBS=$ac_check_lib_save_LIBS
Chris@19 12587 fi
Chris@19 12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
Chris@19 12589 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Chris@19 12590 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Chris@19 12591 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
Chris@19 12592 fi
Chris@19 12593
Chris@19 12594
Chris@19 12595 fi
Chris@19 12596
Chris@19 12597
Chris@19 12598 fi
Chris@19 12599
Chris@19 12600
Chris@19 12601 fi
Chris@19 12602
Chris@19 12603
Chris@19 12604 fi
Chris@19 12605
Chris@19 12606
Chris@19 12607 fi
Chris@19 12608
Chris@19 12609 ;;
Chris@19 12610 esac
Chris@19 12611
Chris@19 12612 if test "x$lt_cv_dlopen" != xno; then
Chris@19 12613 enable_dlopen=yes
Chris@19 12614 else
Chris@19 12615 enable_dlopen=no
Chris@19 12616 fi
Chris@19 12617
Chris@19 12618 case $lt_cv_dlopen in
Chris@19 12619 dlopen)
Chris@19 12620 save_CPPFLAGS="$CPPFLAGS"
Chris@19 12621 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Chris@19 12622
Chris@19 12623 save_LDFLAGS="$LDFLAGS"
Chris@19 12624 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Chris@19 12625
Chris@19 12626 save_LIBS="$LIBS"
Chris@19 12627 LIBS="$lt_cv_dlopen_libs $LIBS"
Chris@19 12628
Chris@19 12629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
Chris@19 12630 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
Chris@19 12631 if ${lt_cv_dlopen_self+:} false; then :
Chris@19 12632 $as_echo_n "(cached) " >&6
Chris@19 12633 else
Chris@19 12634 if test "$cross_compiling" = yes; then :
Chris@19 12635 lt_cv_dlopen_self=cross
Chris@19 12636 else
Chris@19 12637 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Chris@19 12638 lt_status=$lt_dlunknown
Chris@19 12639 cat > conftest.$ac_ext <<_LT_EOF
Chris@19 12640 #line $LINENO "configure"
Chris@19 12641 #include "confdefs.h"
Chris@19 12642
Chris@19 12643 #if HAVE_DLFCN_H
Chris@19 12644 #include <dlfcn.h>
Chris@19 12645 #endif
Chris@19 12646
Chris@19 12647 #include <stdio.h>
Chris@19 12648
Chris@19 12649 #ifdef RTLD_GLOBAL
Chris@19 12650 # define LT_DLGLOBAL RTLD_GLOBAL
Chris@19 12651 #else
Chris@19 12652 # ifdef DL_GLOBAL
Chris@19 12653 # define LT_DLGLOBAL DL_GLOBAL
Chris@19 12654 # else
Chris@19 12655 # define LT_DLGLOBAL 0
Chris@19 12656 # endif
Chris@19 12657 #endif
Chris@19 12658
Chris@19 12659 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Chris@19 12660 find out it does not work in some platform. */
Chris@19 12661 #ifndef LT_DLLAZY_OR_NOW
Chris@19 12662 # ifdef RTLD_LAZY
Chris@19 12663 # define LT_DLLAZY_OR_NOW RTLD_LAZY
Chris@19 12664 # else
Chris@19 12665 # ifdef DL_LAZY
Chris@19 12666 # define LT_DLLAZY_OR_NOW DL_LAZY
Chris@19 12667 # else
Chris@19 12668 # ifdef RTLD_NOW
Chris@19 12669 # define LT_DLLAZY_OR_NOW RTLD_NOW
Chris@19 12670 # else
Chris@19 12671 # ifdef DL_NOW
Chris@19 12672 # define LT_DLLAZY_OR_NOW DL_NOW
Chris@19 12673 # else
Chris@19 12674 # define LT_DLLAZY_OR_NOW 0
Chris@19 12675 # endif
Chris@19 12676 # endif
Chris@19 12677 # endif
Chris@19 12678 # endif
Chris@19 12679 #endif
Chris@19 12680
Chris@19 12681 /* When -fvisbility=hidden is used, assume the code has been annotated
Chris@19 12682 correspondingly for the symbols needed. */
Chris@19 12683 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Chris@19 12684 int fnord () __attribute__((visibility("default")));
Chris@19 12685 #endif
Chris@19 12686
Chris@19 12687 int fnord () { return 42; }
Chris@19 12688 int main ()
Chris@19 12689 {
Chris@19 12690 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Chris@19 12691 int status = $lt_dlunknown;
Chris@19 12692
Chris@19 12693 if (self)
Chris@19 12694 {
Chris@19 12695 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Chris@19 12696 else
Chris@19 12697 {
Chris@19 12698 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Chris@19 12699 else puts (dlerror ());
Chris@19 12700 }
Chris@19 12701 /* dlclose (self); */
Chris@19 12702 }
Chris@19 12703 else
Chris@19 12704 puts (dlerror ());
Chris@19 12705
Chris@19 12706 return status;
Chris@19 12707 }
Chris@19 12708 _LT_EOF
Chris@19 12709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Chris@19 12710 (eval $ac_link) 2>&5
Chris@19 12711 ac_status=$?
Chris@19 12712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@19 12713 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Chris@19 12714 (./conftest; exit; ) >&5 2>/dev/null
Chris@19 12715 lt_status=$?
Chris@19 12716 case x$lt_status in
Chris@19 12717 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
Chris@19 12718 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Chris@19 12719 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
Chris@19 12720 esac
Chris@19 12721 else :
Chris@19 12722 # compilation failed
Chris@19 12723 lt_cv_dlopen_self=no
Chris@19 12724 fi
Chris@19 12725 fi
Chris@19 12726 rm -fr conftest*
Chris@19 12727
Chris@19 12728
Chris@19 12729 fi
Chris@19 12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
Chris@19 12731 $as_echo "$lt_cv_dlopen_self" >&6; }
Chris@19 12732
Chris@19 12733 if test "x$lt_cv_dlopen_self" = xyes; then
Chris@19 12734 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Chris@19 12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
Chris@19 12736 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Chris@19 12737 if ${lt_cv_dlopen_self_static+:} false; then :
Chris@19 12738 $as_echo_n "(cached) " >&6
Chris@19 12739 else
Chris@19 12740 if test "$cross_compiling" = yes; then :
Chris@19 12741 lt_cv_dlopen_self_static=cross
Chris@19 12742 else
Chris@19 12743 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Chris@19 12744 lt_status=$lt_dlunknown
Chris@19 12745 cat > conftest.$ac_ext <<_LT_EOF
Chris@19 12746 #line $LINENO "configure"
Chris@19 12747 #include "confdefs.h"
Chris@19 12748
Chris@19 12749 #if HAVE_DLFCN_H
Chris@19 12750 #include <dlfcn.h>
Chris@19 12751 #endif
Chris@19 12752
Chris@19 12753 #include <stdio.h>
Chris@19 12754
Chris@19 12755 #ifdef RTLD_GLOBAL
Chris@19 12756 # define LT_DLGLOBAL RTLD_GLOBAL
Chris@19 12757 #else
Chris@19 12758 # ifdef DL_GLOBAL
Chris@19 12759 # define LT_DLGLOBAL DL_GLOBAL
Chris@19 12760 # else
Chris@19 12761 # define LT_DLGLOBAL 0
Chris@19 12762 # endif
Chris@19 12763 #endif
Chris@19 12764
Chris@19 12765 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Chris@19 12766 find out it does not work in some platform. */
Chris@19 12767 #ifndef LT_DLLAZY_OR_NOW
Chris@19 12768 # ifdef RTLD_LAZY
Chris@19 12769 # define LT_DLLAZY_OR_NOW RTLD_LAZY
Chris@19 12770 # else
Chris@19 12771 # ifdef DL_LAZY
Chris@19 12772 # define LT_DLLAZY_OR_NOW DL_LAZY
Chris@19 12773 # else
Chris@19 12774 # ifdef RTLD_NOW
Chris@19 12775 # define LT_DLLAZY_OR_NOW RTLD_NOW
Chris@19 12776 # else
Chris@19 12777 # ifdef DL_NOW
Chris@19 12778 # define LT_DLLAZY_OR_NOW DL_NOW
Chris@19 12779 # else
Chris@19 12780 # define LT_DLLAZY_OR_NOW 0
Chris@19 12781 # endif
Chris@19 12782 # endif
Chris@19 12783 # endif
Chris@19 12784 # endif
Chris@19 12785 #endif
Chris@19 12786
Chris@19 12787 /* When -fvisbility=hidden is used, assume the code has been annotated
Chris@19 12788 correspondingly for the symbols needed. */
Chris@19 12789 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Chris@19 12790 int fnord () __attribute__((visibility("default")));
Chris@19 12791 #endif
Chris@19 12792
Chris@19 12793 int fnord () { return 42; }
Chris@19 12794 int main ()
Chris@19 12795 {
Chris@19 12796 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Chris@19 12797 int status = $lt_dlunknown;
Chris@19 12798
Chris@19 12799 if (self)
Chris@19 12800 {
Chris@19 12801 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Chris@19 12802 else
Chris@19 12803 {
Chris@19 12804 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Chris@19 12805 else puts (dlerror ());
Chris@19 12806 }
Chris@19 12807 /* dlclose (self); */
Chris@19 12808 }
Chris@19 12809 else
Chris@19 12810 puts (dlerror ());
Chris@19 12811
Chris@19 12812 return status;
Chris@19 12813 }
Chris@19 12814 _LT_EOF
Chris@19 12815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Chris@19 12816 (eval $ac_link) 2>&5
Chris@19 12817 ac_status=$?
Chris@19 12818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@19 12819 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Chris@19 12820 (./conftest; exit; ) >&5 2>/dev/null
Chris@19 12821 lt_status=$?
Chris@19 12822 case x$lt_status in
Chris@19 12823 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
Chris@19 12824 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Chris@19 12825 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
Chris@19 12826 esac
Chris@19 12827 else :
Chris@19 12828 # compilation failed
Chris@19 12829 lt_cv_dlopen_self_static=no
Chris@19 12830 fi
Chris@19 12831 fi
Chris@19 12832 rm -fr conftest*
Chris@19 12833
Chris@19 12834
Chris@19 12835 fi
Chris@19 12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
Chris@19 12837 $as_echo "$lt_cv_dlopen_self_static" >&6; }
Chris@19 12838 fi
Chris@19 12839
Chris@19 12840 CPPFLAGS="$save_CPPFLAGS"
Chris@19 12841 LDFLAGS="$save_LDFLAGS"
Chris@19 12842 LIBS="$save_LIBS"
Chris@19 12843 ;;
Chris@19 12844 esac
Chris@19 12845
Chris@19 12846 case $lt_cv_dlopen_self in
Chris@19 12847 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
Chris@19 12848 *) enable_dlopen_self=unknown ;;
Chris@19 12849 esac
Chris@19 12850
Chris@19 12851 case $lt_cv_dlopen_self_static in
Chris@19 12852 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
Chris@19 12853 *) enable_dlopen_self_static=unknown ;;
Chris@19 12854 esac
Chris@19 12855 fi
Chris@19 12856
Chris@19 12857
Chris@19 12858
Chris@19 12859
Chris@19 12860
Chris@19 12861
Chris@19 12862
Chris@19 12863
Chris@19 12864
Chris@19 12865
Chris@19 12866
Chris@19 12867
Chris@19 12868
Chris@19 12869
Chris@19 12870
Chris@19 12871
Chris@19 12872
Chris@19 12873 striplib=
Chris@19 12874 old_striplib=
Chris@19 12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
Chris@19 12876 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
Chris@19 12877 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
Chris@19 12878 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
Chris@19 12879 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Chris@19 12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@19 12881 $as_echo "yes" >&6; }
Chris@19 12882 else
Chris@19 12883 # FIXME - insert some real tests, host_os isn't really good enough
Chris@19 12884 case $host_os in
Chris@19 12885 darwin*)
Chris@19 12886 if test -n "$STRIP" ; then
Chris@19 12887 striplib="$STRIP -x"
Chris@19 12888 old_striplib="$STRIP -S"
Chris@19 12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@19 12890 $as_echo "yes" >&6; }
Chris@19 12891 else
Chris@19 12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 12893 $as_echo "no" >&6; }
Chris@19 12894 fi
Chris@19 12895 ;;
Chris@19 12896 *)
Chris@19 12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 12898 $as_echo "no" >&6; }
Chris@19 12899 ;;
Chris@19 12900 esac
Chris@19 12901 fi
Chris@19 12902
Chris@19 12903
Chris@19 12904
Chris@19 12905
Chris@19 12906
Chris@19 12907
Chris@19 12908
Chris@19 12909
Chris@19 12910
Chris@19 12911
Chris@19 12912
Chris@19 12913
Chris@19 12914 # Report which library types will actually be built
Chris@19 12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
Chris@19 12916 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
Chris@19 12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
Chris@19 12918 $as_echo "$can_build_shared" >&6; }
Chris@19 12919
Chris@19 12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
Chris@19 12921 $as_echo_n "checking whether to build shared libraries... " >&6; }
Chris@19 12922 test "$can_build_shared" = "no" && enable_shared=no
Chris@19 12923
Chris@19 12924 # On AIX, shared libraries and static libraries use the same namespace, and
Chris@19 12925 # are all built from PIC.
Chris@19 12926 case $host_os in
Chris@19 12927 aix3*)
Chris@19 12928 test "$enable_shared" = yes && enable_static=no
Chris@19 12929 if test -n "$RANLIB"; then
Chris@19 12930 archive_cmds="$archive_cmds~\$RANLIB \$lib"
Chris@19 12931 postinstall_cmds='$RANLIB $lib'
Chris@19 12932 fi
Chris@19 12933 ;;
Chris@19 12934
Chris@19 12935 aix[4-9]*)
Chris@19 12936 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
Chris@19 12937 test "$enable_shared" = yes && enable_static=no
Chris@19 12938 fi
Chris@19 12939 ;;
Chris@19 12940 esac
Chris@19 12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
Chris@19 12942 $as_echo "$enable_shared" >&6; }
Chris@19 12943
Chris@19 12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
Chris@19 12945 $as_echo_n "checking whether to build static libraries... " >&6; }
Chris@19 12946 # Make sure either enable_shared or enable_static is yes.
Chris@19 12947 test "$enable_shared" = yes || enable_static=yes
Chris@19 12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
Chris@19 12949 $as_echo "$enable_static" >&6; }
Chris@19 12950
Chris@19 12951
Chris@19 12952
Chris@19 12953
Chris@19 12954 fi
Chris@19 12955 ac_ext=c
Chris@19 12956 ac_cpp='$CPP $CPPFLAGS'
Chris@19 12957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@19 12958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 12959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@19 12960
Chris@19 12961 CC="$lt_save_CC"
Chris@19 12962
Chris@19 12963
Chris@19 12964
Chris@19 12965
Chris@19 12966
Chris@19 12967
Chris@19 12968
Chris@19 12969
Chris@19 12970
Chris@19 12971
Chris@19 12972
Chris@19 12973
Chris@19 12974
Chris@19 12975
Chris@19 12976
Chris@19 12977 ac_config_commands="$ac_config_commands libtool"
Chris@19 12978
Chris@19 12979
Chris@19 12980
Chris@19 12981
Chris@19 12982 # Only expand once:
Chris@19 12983
Chris@19 12984
Chris@19 12985
Chris@19 12986 # Extract the first word of "ocamlbuild", so it can be a program name with args.
Chris@19 12987 set dummy ocamlbuild; ac_word=$2
Chris@19 12988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 12989 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 12990 if ${ac_cv_prog_OCAMLBUILD+:} false; then :
Chris@19 12991 $as_echo_n "(cached) " >&6
Chris@19 12992 else
Chris@19 12993 if test -n "$OCAMLBUILD"; then
Chris@19 12994 ac_cv_prog_OCAMLBUILD="$OCAMLBUILD" # Let the user override the test.
Chris@19 12995 else
Chris@19 12996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 12997 for as_dir in $PATH
Chris@19 12998 do
Chris@19 12999 IFS=$as_save_IFS
Chris@19 13000 test -z "$as_dir" && as_dir=.
Chris@19 13001 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 13002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 13003 ac_cv_prog_OCAMLBUILD="ocamlbuild"
Chris@19 13004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 13005 break 2
Chris@19 13006 fi
Chris@19 13007 done
Chris@19 13008 done
Chris@19 13009 IFS=$as_save_IFS
Chris@19 13010
Chris@19 13011 fi
Chris@19 13012 fi
Chris@19 13013 OCAMLBUILD=$ac_cv_prog_OCAMLBUILD
Chris@19 13014 if test -n "$OCAMLBUILD"; then
Chris@19 13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLBUILD" >&5
Chris@19 13016 $as_echo "$OCAMLBUILD" >&6; }
Chris@19 13017 else
Chris@19 13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 13019 $as_echo "no" >&6; }
Chris@19 13020 fi
Chris@19 13021
Chris@19 13022
Chris@19 13023
Chris@19 13024
Chris@19 13025 # Check whether --enable-mpi was given.
Chris@19 13026 if test "${enable_mpi+set}" = set; then :
Chris@19 13027 enableval=$enable_mpi; enable_mpi=$enableval
Chris@19 13028 else
Chris@19 13029 enable_mpi=no
Chris@19 13030 fi
Chris@19 13031
Chris@19 13032
Chris@19 13033 if test "$enable_mpi" = "yes"; then
Chris@19 13034 if test $PRECISION = q; then
Chris@19 13035 as_fn_error $? "quad precision is not supported in MPI" "$LINENO" 5
Chris@19 13036 fi
Chris@19 13037
Chris@19 13038
Chris@19 13039
Chris@19 13040
Chris@19 13041
Chris@19 13042 for ac_prog in mpicc hcc mpcc mpcc_r mpxlc cmpicc
Chris@19 13043 do
Chris@19 13044 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@19 13045 set dummy $ac_prog; ac_word=$2
Chris@19 13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 13047 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 13048 if ${ac_cv_prog_MPICC+:} false; then :
Chris@19 13049 $as_echo_n "(cached) " >&6
Chris@19 13050 else
Chris@19 13051 if test -n "$MPICC"; then
Chris@19 13052 ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
Chris@19 13053 else
Chris@19 13054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 13055 for as_dir in $PATH
Chris@19 13056 do
Chris@19 13057 IFS=$as_save_IFS
Chris@19 13058 test -z "$as_dir" && as_dir=.
Chris@19 13059 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 13060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 13061 ac_cv_prog_MPICC="$ac_prog"
Chris@19 13062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 13063 break 2
Chris@19 13064 fi
Chris@19 13065 done
Chris@19 13066 done
Chris@19 13067 IFS=$as_save_IFS
Chris@19 13068
Chris@19 13069 fi
Chris@19 13070 fi
Chris@19 13071 MPICC=$ac_cv_prog_MPICC
Chris@19 13072 if test -n "$MPICC"; then
Chris@19 13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
Chris@19 13074 $as_echo "$MPICC" >&6; }
Chris@19 13075 else
Chris@19 13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 13077 $as_echo "no" >&6; }
Chris@19 13078 fi
Chris@19 13079
Chris@19 13080
Chris@19 13081 test -n "$MPICC" && break
Chris@19 13082 done
Chris@19 13083 test -n "$MPICC" || MPICC="$CC"
Chris@19 13084
Chris@19 13085 acx_mpi_save_CC="$CC"
Chris@19 13086 CC="$MPICC"
Chris@19 13087
Chris@19 13088
Chris@19 13089
Chris@19 13090 if test x = x"$MPILIBS"; then
Chris@19 13091 ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
Chris@19 13092 if test "x$ac_cv_func_MPI_Init" = xyes; then :
Chris@19 13093 MPILIBS=" "
Chris@19 13094 fi
Chris@19 13095
Chris@19 13096 fi
Chris@19 13097 if test x = x"$MPILIBS"; then
Chris@19 13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
Chris@19 13099 $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
Chris@19 13100 if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
Chris@19 13101 $as_echo_n "(cached) " >&6
Chris@19 13102 else
Chris@19 13103 ac_check_lib_save_LIBS=$LIBS
Chris@19 13104 LIBS="-lmpi $LIBS"
Chris@19 13105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 13106 /* end confdefs.h. */
Chris@19 13107
Chris@19 13108 /* Override any GCC internal prototype to avoid an error.
Chris@19 13109 Use char because int might match the return type of a GCC
Chris@19 13110 builtin and then its argument prototype would still apply. */
Chris@19 13111 #ifdef __cplusplus
Chris@19 13112 extern "C"
Chris@19 13113 #endif
Chris@19 13114 char MPI_Init ();
Chris@19 13115 int
Chris@19 13116 main ()
Chris@19 13117 {
Chris@19 13118 return MPI_Init ();
Chris@19 13119 ;
Chris@19 13120 return 0;
Chris@19 13121 }
Chris@19 13122 _ACEOF
Chris@19 13123 if ac_fn_c_try_link "$LINENO"; then :
Chris@19 13124 ac_cv_lib_mpi_MPI_Init=yes
Chris@19 13125 else
Chris@19 13126 ac_cv_lib_mpi_MPI_Init=no
Chris@19 13127 fi
Chris@19 13128 rm -f core conftest.err conftest.$ac_objext \
Chris@19 13129 conftest$ac_exeext conftest.$ac_ext
Chris@19 13130 LIBS=$ac_check_lib_save_LIBS
Chris@19 13131 fi
Chris@19 13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
Chris@19 13133 $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
Chris@19 13134 if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
Chris@19 13135 MPILIBS="-lmpi"
Chris@19 13136 fi
Chris@19 13137
Chris@19 13138 fi
Chris@19 13139 if test x = x"$MPILIBS"; then
Chris@19 13140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
Chris@19 13141 $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
Chris@19 13142 if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
Chris@19 13143 $as_echo_n "(cached) " >&6
Chris@19 13144 else
Chris@19 13145 ac_check_lib_save_LIBS=$LIBS
Chris@19 13146 LIBS="-lmpich $LIBS"
Chris@19 13147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 13148 /* end confdefs.h. */
Chris@19 13149
Chris@19 13150 /* Override any GCC internal prototype to avoid an error.
Chris@19 13151 Use char because int might match the return type of a GCC
Chris@19 13152 builtin and then its argument prototype would still apply. */
Chris@19 13153 #ifdef __cplusplus
Chris@19 13154 extern "C"
Chris@19 13155 #endif
Chris@19 13156 char MPI_Init ();
Chris@19 13157 int
Chris@19 13158 main ()
Chris@19 13159 {
Chris@19 13160 return MPI_Init ();
Chris@19 13161 ;
Chris@19 13162 return 0;
Chris@19 13163 }
Chris@19 13164 _ACEOF
Chris@19 13165 if ac_fn_c_try_link "$LINENO"; then :
Chris@19 13166 ac_cv_lib_mpich_MPI_Init=yes
Chris@19 13167 else
Chris@19 13168 ac_cv_lib_mpich_MPI_Init=no
Chris@19 13169 fi
Chris@19 13170 rm -f core conftest.err conftest.$ac_objext \
Chris@19 13171 conftest$ac_exeext conftest.$ac_ext
Chris@19 13172 LIBS=$ac_check_lib_save_LIBS
Chris@19 13173 fi
Chris@19 13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
Chris@19 13175 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
Chris@19 13176 if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
Chris@19 13177 MPILIBS="-lmpich"
Chris@19 13178 fi
Chris@19 13179
Chris@19 13180 fi
Chris@19 13181
Chris@19 13182 if test x != x"$MPILIBS"; then
Chris@19 13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
Chris@19 13184 $as_echo_n "checking for mpi.h... " >&6; }
Chris@19 13185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 13186 /* end confdefs.h. */
Chris@19 13187 #include <mpi.h>
Chris@19 13188 int
Chris@19 13189 main ()
Chris@19 13190 {
Chris@19 13191
Chris@19 13192 ;
Chris@19 13193 return 0;
Chris@19 13194 }
Chris@19 13195 _ACEOF
Chris@19 13196 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@19 13198 $as_echo "yes" >&6; }
Chris@19 13199 else
Chris@19 13200 MPILIBS=""
Chris@19 13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 13202 $as_echo "no" >&6; }
Chris@19 13203 fi
Chris@19 13204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 13205 fi
Chris@19 13206
Chris@19 13207 CC="$acx_mpi_save_CC"
Chris@19 13208
Chris@19 13209
Chris@19 13210
Chris@19 13211 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
Chris@19 13212 if test x = x"$MPILIBS"; then
Chris@19 13213 as_fn_error $? "could not find mpi library for --enable-mpi" "$LINENO" 5
Chris@19 13214 :
Chris@19 13215 else
Chris@19 13216
Chris@19 13217 $as_echo "#define HAVE_MPI 1" >>confdefs.h
Chris@19 13218
Chris@19 13219 :
Chris@19 13220 fi
Chris@19 13221
Chris@19 13222 # Extract the first word of "mpirun", so it can be a program name with args.
Chris@19 13223 set dummy mpirun; ac_word=$2
Chris@19 13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 13225 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 13226 if ${ac_cv_prog_MPIRUN+:} false; then :
Chris@19 13227 $as_echo_n "(cached) " >&6
Chris@19 13228 else
Chris@19 13229 if test -n "$MPIRUN"; then
Chris@19 13230 ac_cv_prog_MPIRUN="$MPIRUN" # Let the user override the test.
Chris@19 13231 else
Chris@19 13232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 13233 for as_dir in $PATH
Chris@19 13234 do
Chris@19 13235 IFS=$as_save_IFS
Chris@19 13236 test -z "$as_dir" && as_dir=.
Chris@19 13237 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 13238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 13239 ac_cv_prog_MPIRUN="mpirun"
Chris@19 13240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 13241 break 2
Chris@19 13242 fi
Chris@19 13243 done
Chris@19 13244 done
Chris@19 13245 IFS=$as_save_IFS
Chris@19 13246
Chris@19 13247 fi
Chris@19 13248 fi
Chris@19 13249 MPIRUN=$ac_cv_prog_MPIRUN
Chris@19 13250 if test -n "$MPIRUN"; then
Chris@19 13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIRUN" >&5
Chris@19 13252 $as_echo "$MPIRUN" >&6; }
Chris@19 13253 else
Chris@19 13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 13255 $as_echo "no" >&6; }
Chris@19 13256 fi
Chris@19 13257
Chris@19 13258
Chris@19 13259
Chris@19 13260
Chris@19 13261 save_CC=$CC
Chris@19 13262 CC=$MPICC
Chris@19 13263 # The cast to long int works around a bug in the HP C Compiler
Chris@19 13264 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@19 13265 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@19 13266 # This bug is HP SR number 8606223364.
Chris@19 13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of MPI_Fint" >&5
Chris@19 13268 $as_echo_n "checking size of MPI_Fint... " >&6; }
Chris@19 13269 if ${ac_cv_sizeof_MPI_Fint+:} false; then :
Chris@19 13270 $as_echo_n "(cached) " >&6
Chris@19 13271 else
Chris@19 13272 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (MPI_Fint))" "ac_cv_sizeof_MPI_Fint" "#include <mpi.h>
Chris@19 13273 "; then :
Chris@19 13274
Chris@19 13275 else
Chris@19 13276 if test "$ac_cv_type_MPI_Fint" = yes; then
Chris@19 13277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@19 13278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@19 13279 as_fn_error 77 "cannot compute sizeof (MPI_Fint)
Chris@19 13280 See \`config.log' for more details" "$LINENO" 5; }
Chris@19 13281 else
Chris@19 13282 ac_cv_sizeof_MPI_Fint=0
Chris@19 13283 fi
Chris@19 13284 fi
Chris@19 13285
Chris@19 13286 fi
Chris@19 13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_MPI_Fint" >&5
Chris@19 13288 $as_echo "$ac_cv_sizeof_MPI_Fint" >&6; }
Chris@19 13289
Chris@19 13290
Chris@19 13291
Chris@19 13292 cat >>confdefs.h <<_ACEOF
Chris@19 13293 #define SIZEOF_MPI_FINT $ac_cv_sizeof_MPI_Fint
Chris@19 13294 _ACEOF
Chris@19 13295
Chris@19 13296
Chris@19 13297 CC=$save_CC
Chris@19 13298 if test 0 = $ac_cv_sizeof_MPI_Fint; then
Chris@19 13299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sizeof(MPI_Fint) test failed" >&5
Chris@19 13300 $as_echo "$as_me: WARNING: sizeof(MPI_Fint) test failed" >&2;};
Chris@19 13301 # The cast to long int works around a bug in the HP C Compiler
Chris@19 13302 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@19 13303 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@19 13304 # This bug is HP SR number 8606223364.
Chris@19 13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Chris@19 13306 $as_echo_n "checking size of int... " >&6; }
Chris@19 13307 if ${ac_cv_sizeof_int+:} false; then :
Chris@19 13308 $as_echo_n "(cached) " >&6
Chris@19 13309 else
Chris@19 13310 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
Chris@19 13311
Chris@19 13312 else
Chris@19 13313 if test "$ac_cv_type_int" = yes; then
Chris@19 13314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@19 13315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@19 13316 as_fn_error 77 "cannot compute sizeof (int)
Chris@19 13317 See \`config.log' for more details" "$LINENO" 5; }
Chris@19 13318 else
Chris@19 13319 ac_cv_sizeof_int=0
Chris@19 13320 fi
Chris@19 13321 fi
Chris@19 13322
Chris@19 13323 fi
Chris@19 13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Chris@19 13325 $as_echo "$ac_cv_sizeof_int" >&6; }
Chris@19 13326
Chris@19 13327
Chris@19 13328
Chris@19 13329 cat >>confdefs.h <<_ACEOF
Chris@19 13330 #define SIZEOF_INT $ac_cv_sizeof_int
Chris@19 13331 _ACEOF
Chris@19 13332
Chris@19 13333
Chris@19 13334 if test 0 = $ac_cv_sizeof_int; then as_fn_error $? "sizeof(int) test failed" "$LINENO" 5; fi
Chris@19 13335 ac_cv_sizeof_MPI_Fint=$ac_cv_sizeof_int
Chris@19 13336 fi
Chris@19 13337 C_MPI_FINT=C_INT`expr $ac_cv_sizeof_MPI_Fint \* 8`_T
Chris@19 13338
Chris@19 13339 fi
Chris@19 13340 if test "$enable_mpi" = "yes"; then
Chris@19 13341 MPI_TRUE=
Chris@19 13342 MPI_FALSE='#'
Chris@19 13343 else
Chris@19 13344 MPI_TRUE='#'
Chris@19 13345 MPI_FALSE=
Chris@19 13346 fi
Chris@19 13347
Chris@19 13348
Chris@19 13349
Chris@19 13350
Chris@19 13351
Chris@19 13352
Chris@19 13353
Chris@19 13354
Chris@19 13355 # Try to determine "good" native compiler flags if none specified via CFLAGS
Chris@19 13356 if test "$ac_test_CFLAGS" != "set"; then
Chris@19 13357 CFLAGS=""
Chris@19 13358 case $ax_cv_c_compiler_vendor in
Chris@19 13359 dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
Chris@19 13360 ;;
Chris@19 13361
Chris@19 13362 sun) CFLAGS="-native -fast -xO5 -dalign"
Chris@19 13363 ;;
Chris@19 13364
Chris@19 13365 hp) CFLAGS="+Oall +Optrs_ansi +DSnative"
Chris@19 13366 ;;
Chris@19 13367
Chris@19 13368 ibm) xlc_opt="-qtune=auto"
Chris@19 13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
Chris@19 13370 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
Chris@19 13371 ax_save_FLAGS=$CFLAGS
Chris@19 13372 CFLAGS="$xlc_opt"
Chris@19 13373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 13374 /* end confdefs.h. */
Chris@19 13375
Chris@19 13376 int
Chris@19 13377 main ()
Chris@19 13378 {
Chris@19 13379
Chris@19 13380 ;
Chris@19 13381 return 0;
Chris@19 13382 }
Chris@19 13383 _ACEOF
Chris@19 13384 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 13385 eval `$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=yes
Chris@19 13386 else
Chris@19 13387 eval `$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=no
Chris@19 13388 fi
Chris@19 13389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 13390 CFLAGS=$ax_save_FLAGS
Chris@19 13391 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`
Chris@19 13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@19 13393 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@19 13394 if test "x$ax_check_compiler_flags" = xyes; then
Chris@19 13395 CFLAGS="-O3 -qansialias -w $xlc_opt"
Chris@19 13396 else
Chris@19 13397 CFLAGS="-O3 -qansialias -w"
Chris@19 13398 echo "******************************************************"
Chris@19 13399 echo "* You seem to have the IBM C compiler. It is *"
Chris@19 13400 echo "* recommended for best performance that you use: *"
Chris@19 13401 echo "* *"
Chris@19 13402 echo "* CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
Chris@19 13403 echo "* ^^^ ^^^ *"
Chris@19 13404 echo "* where xxx is pwr2, pwr3, 604, or whatever kind of *"
Chris@19 13405 echo "* CPU you have. (Set the CFLAGS environment var. *"
Chris@19 13406 echo "* and re-run configure.) For more info, man cc. *"
Chris@19 13407 echo "******************************************************"
Chris@19 13408 fi
Chris@19 13409
Chris@19 13410 ;;
Chris@19 13411
Chris@19 13412 intel) CFLAGS="-O3"
Chris@19 13413 # Intel seems to have changed the spelling of this flag recently
Chris@19 13414 icc_ansi_alias="unknown"
Chris@19 13415 for flag in -ansi-alias -ansi_alias; do
Chris@19 13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
Chris@19 13417 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
Chris@19 13418 ax_save_FLAGS=$CFLAGS
Chris@19 13419 CFLAGS="$flag"
Chris@19 13420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 13421 /* end confdefs.h. */
Chris@19 13422
Chris@19 13423 int
Chris@19 13424 main ()
Chris@19 13425 {
Chris@19 13426
Chris@19 13427 ;
Chris@19 13428 return 0;
Chris@19 13429 }
Chris@19 13430 _ACEOF
Chris@19 13431 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 13432 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=yes
Chris@19 13433 else
Chris@19 13434 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=no
Chris@19 13435 fi
Chris@19 13436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 13437 CFLAGS=$ax_save_FLAGS
Chris@19 13438 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`
Chris@19 13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@19 13440 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@19 13441 if test "x$ax_check_compiler_flags" = xyes; then
Chris@19 13442 icc_ansi_alias=$flag; break
Chris@19 13443 else
Chris@19 13444 :
Chris@19 13445 fi
Chris@19 13446
Chris@19 13447 done
Chris@19 13448 if test "x$icc_ansi_alias" != xunknown; then
Chris@19 13449 CFLAGS="$CFLAGS $icc_ansi_alias"
Chris@19 13450 fi
Chris@19 13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
Chris@19 13452 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
Chris@19 13453 if ${ax_cv_c_flags__malign_double+:} false; then :
Chris@19 13454 $as_echo_n "(cached) " >&6
Chris@19 13455 else
Chris@19 13456
Chris@19 13457 ax_save_FLAGS=$CFLAGS
Chris@19 13458 CFLAGS="-malign-double"
Chris@19 13459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 13460 /* end confdefs.h. */
Chris@19 13461
Chris@19 13462 int
Chris@19 13463 main ()
Chris@19 13464 {
Chris@19 13465
Chris@19 13466 ;
Chris@19 13467 return 0;
Chris@19 13468 }
Chris@19 13469 _ACEOF
Chris@19 13470 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 13471 ax_cv_c_flags__malign_double=yes
Chris@19 13472 else
Chris@19 13473 ax_cv_c_flags__malign_double=no
Chris@19 13474 fi
Chris@19 13475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 13476 CFLAGS=$ax_save_FLAGS
Chris@19 13477 fi
Chris@19 13478
Chris@19 13479 eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double
Chris@19 13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@19 13481 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@19 13482 if test "x$ax_check_compiler_flags" = xyes; then
Chris@19 13483 CFLAGS="$CFLAGS -malign-double"
Chris@19 13484 else
Chris@19 13485 :
Chris@19 13486 fi
Chris@19 13487
Chris@19 13488 # We used to check for architecture flags here, e.g. -xHost etc.,
Chris@19 13489 # but these flags are problematic. On icc-12.0.0, "-mavx -xHost"
Chris@19 13490 # overrides -mavx with -xHost, generating SSE2 code instead of AVX
Chris@19 13491 # code. ICC does not seem to support -mtune=host or equivalent
Chris@19 13492 # non-ABI changing flag.
Chris@19 13493 ;;
Chris@19 13494
Chris@19 13495 gnu)
Chris@19 13496 # Default optimization flags for gcc on all systems.
Chris@19 13497 # Somehow -O3 does not imply -fomit-frame-pointer on ia32
Chris@19 13498 CFLAGS="-O3 -fomit-frame-pointer"
Chris@19 13499
Chris@19 13500 # tune for the host by default
Chris@19 13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mtune=native" >&5
Chris@19 13502 $as_echo_n "checking whether C compiler accepts -mtune=native... " >&6; }
Chris@19 13503 if ${ax_cv_c_flags__mtune_native+:} false; then :
Chris@19 13504 $as_echo_n "(cached) " >&6
Chris@19 13505 else
Chris@19 13506
Chris@19 13507 ax_save_FLAGS=$CFLAGS
Chris@19 13508 CFLAGS="-mtune=native"
Chris@19 13509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 13510 /* end confdefs.h. */
Chris@19 13511
Chris@19 13512 int
Chris@19 13513 main ()
Chris@19 13514 {
Chris@19 13515
Chris@19 13516 ;
Chris@19 13517 return 0;
Chris@19 13518 }
Chris@19 13519 _ACEOF
Chris@19 13520 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 13521 ax_cv_c_flags__mtune_native=yes
Chris@19 13522 else
Chris@19 13523 ax_cv_c_flags__mtune_native=no
Chris@19 13524 fi
Chris@19 13525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 13526 CFLAGS=$ax_save_FLAGS
Chris@19 13527 fi
Chris@19 13528
Chris@19 13529 eval ax_check_compiler_flags=$ax_cv_c_flags__mtune_native
Chris@19 13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@19 13531 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@19 13532 if test "x$ax_check_compiler_flags" = xyes; then
Chris@19 13533 CFLAGS="$CFLAGS -mtune=native"
Chris@19 13534 else
Chris@19 13535 :
Chris@19 13536 fi
Chris@19 13537
Chris@19 13538
Chris@19 13539 # -malign-double for x86 systems
Chris@19 13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
Chris@19 13541 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
Chris@19 13542 if ${ax_cv_c_flags__malign_double+:} false; then :
Chris@19 13543 $as_echo_n "(cached) " >&6
Chris@19 13544 else
Chris@19 13545
Chris@19 13546 ax_save_FLAGS=$CFLAGS
Chris@19 13547 CFLAGS="-malign-double"
Chris@19 13548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 13549 /* end confdefs.h. */
Chris@19 13550
Chris@19 13551 int
Chris@19 13552 main ()
Chris@19 13553 {
Chris@19 13554
Chris@19 13555 ;
Chris@19 13556 return 0;
Chris@19 13557 }
Chris@19 13558 _ACEOF
Chris@19 13559 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 13560 ax_cv_c_flags__malign_double=yes
Chris@19 13561 else
Chris@19 13562 ax_cv_c_flags__malign_double=no
Chris@19 13563 fi
Chris@19 13564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 13565 CFLAGS=$ax_save_FLAGS
Chris@19 13566 fi
Chris@19 13567
Chris@19 13568 eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double
Chris@19 13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@19 13570 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@19 13571 if test "x$ax_check_compiler_flags" = xyes; then
Chris@19 13572 CFLAGS="$CFLAGS -malign-double"
Chris@19 13573 else
Chris@19 13574 :
Chris@19 13575 fi
Chris@19 13576
Chris@19 13577
Chris@19 13578 # -fstrict-aliasing for gcc-2.95+
Chris@19 13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
Chris@19 13580 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
Chris@19 13581 if ${ax_cv_c_flags__fstrict_aliasing+:} false; then :
Chris@19 13582 $as_echo_n "(cached) " >&6
Chris@19 13583 else
Chris@19 13584
Chris@19 13585 ax_save_FLAGS=$CFLAGS
Chris@19 13586 CFLAGS="-fstrict-aliasing"
Chris@19 13587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 13588 /* end confdefs.h. */
Chris@19 13589
Chris@19 13590 int
Chris@19 13591 main ()
Chris@19 13592 {
Chris@19 13593
Chris@19 13594 ;
Chris@19 13595 return 0;
Chris@19 13596 }
Chris@19 13597 _ACEOF
Chris@19 13598 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 13599 ax_cv_c_flags__fstrict_aliasing=yes
Chris@19 13600 else
Chris@19 13601 ax_cv_c_flags__fstrict_aliasing=no
Chris@19 13602 fi
Chris@19 13603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 13604 CFLAGS=$ax_save_FLAGS
Chris@19 13605 fi
Chris@19 13606
Chris@19 13607 eval ax_check_compiler_flags=$ax_cv_c_flags__fstrict_aliasing
Chris@19 13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@19 13609 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@19 13610 if test "x$ax_check_compiler_flags" = xyes; then
Chris@19 13611 CFLAGS="$CFLAGS -fstrict-aliasing"
Chris@19 13612 else
Chris@19 13613 :
Chris@19 13614 fi
Chris@19 13615
Chris@19 13616
Chris@19 13617 # -fno-schedule-insns is pretty much required on all risc
Chris@19 13618 # processors.
Chris@19 13619 #
Chris@19 13620 # gcc performs one pass of instruction scheduling, then a pass of
Chris@19 13621 # register allocation, then another pass of instruction
Chris@19 13622 # scheduling. The first pass reorders instructions in a way that
Chris@19 13623 # is pretty much the worst possible for the purposes of register
Chris@19 13624 # allocation. We disable the first pass.
Chris@19 13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-schedule-insns" >&5
Chris@19 13626 $as_echo_n "checking whether C compiler accepts -fno-schedule-insns... " >&6; }
Chris@19 13627 if ${ax_cv_c_flags__fno_schedule_insns+:} false; then :
Chris@19 13628 $as_echo_n "(cached) " >&6
Chris@19 13629 else
Chris@19 13630
Chris@19 13631 ax_save_FLAGS=$CFLAGS
Chris@19 13632 CFLAGS="-fno-schedule-insns"
Chris@19 13633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 13634 /* end confdefs.h. */
Chris@19 13635
Chris@19 13636 int
Chris@19 13637 main ()
Chris@19 13638 {
Chris@19 13639
Chris@19 13640 ;
Chris@19 13641 return 0;
Chris@19 13642 }
Chris@19 13643 _ACEOF
Chris@19 13644 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 13645 ax_cv_c_flags__fno_schedule_insns=yes
Chris@19 13646 else
Chris@19 13647 ax_cv_c_flags__fno_schedule_insns=no
Chris@19 13648 fi
Chris@19 13649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 13650 CFLAGS=$ax_save_FLAGS
Chris@19 13651 fi
Chris@19 13652
Chris@19 13653 eval ax_check_compiler_flags=$ax_cv_c_flags__fno_schedule_insns
Chris@19 13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@19 13655 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@19 13656 if test "x$ax_check_compiler_flags" = xyes; then
Chris@19 13657 CFLAGS="$CFLAGS -fno-schedule-insns"
Chris@19 13658 else
Chris@19 13659 :
Chris@19 13660 fi
Chris@19 13661
Chris@19 13662
Chris@19 13663 # note that we enable "unsafe" fp optimization with other compilers, too
Chris@19 13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
Chris@19 13665 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
Chris@19 13666 if ${ax_cv_c_flags__ffast_math+:} false; then :
Chris@19 13667 $as_echo_n "(cached) " >&6
Chris@19 13668 else
Chris@19 13669
Chris@19 13670 ax_save_FLAGS=$CFLAGS
Chris@19 13671 CFLAGS="-ffast-math"
Chris@19 13672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 13673 /* end confdefs.h. */
Chris@19 13674
Chris@19 13675 int
Chris@19 13676 main ()
Chris@19 13677 {
Chris@19 13678
Chris@19 13679 ;
Chris@19 13680 return 0;
Chris@19 13681 }
Chris@19 13682 _ACEOF
Chris@19 13683 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 13684 ax_cv_c_flags__ffast_math=yes
Chris@19 13685 else
Chris@19 13686 ax_cv_c_flags__ffast_math=no
Chris@19 13687 fi
Chris@19 13688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 13689 CFLAGS=$ax_save_FLAGS
Chris@19 13690 fi
Chris@19 13691
Chris@19 13692 eval ax_check_compiler_flags=$ax_cv_c_flags__ffast_math
Chris@19 13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@19 13694 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@19 13695 if test "x$ax_check_compiler_flags" = xyes; then
Chris@19 13696 CFLAGS="$CFLAGS -ffast-math"
Chris@19 13697 else
Chris@19 13698 :
Chris@19 13699 fi
Chris@19 13700
Chris@19 13701
Chris@19 13702 ;;
Chris@19 13703 esac
Chris@19 13704
Chris@19 13705 if test -z "$CFLAGS"; then
Chris@19 13706 echo ""
Chris@19 13707 echo "********************************************************"
Chris@19 13708 echo "* WARNING: Don't know the best CFLAGS for this system *"
Chris@19 13709 echo "* Use ./configure CFLAGS=... to specify your own flags *"
Chris@19 13710 echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
Chris@19 13711 echo "********************************************************"
Chris@19 13712 echo ""
Chris@19 13713 CFLAGS="-O3"
Chris@19 13714 fi
Chris@19 13715
Chris@19 13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
Chris@19 13717 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
Chris@19 13718 ax_save_FLAGS=$CFLAGS
Chris@19 13719 CFLAGS="$CFLAGS"
Chris@19 13720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 13721 /* end confdefs.h. */
Chris@19 13722
Chris@19 13723 int
Chris@19 13724 main ()
Chris@19 13725 {
Chris@19 13726
Chris@19 13727 ;
Chris@19 13728 return 0;
Chris@19 13729 }
Chris@19 13730 _ACEOF
Chris@19 13731 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 13732 eval `$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=yes
Chris@19 13733 else
Chris@19 13734 eval `$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=no
Chris@19 13735 fi
Chris@19 13736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 13737 CFLAGS=$ax_save_FLAGS
Chris@19 13738 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`
Chris@19 13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@19 13740 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@19 13741 if test "x$ax_check_compiler_flags" = xyes; then
Chris@19 13742 :
Chris@19 13743 else
Chris@19 13744
Chris@19 13745 echo ""
Chris@19 13746 echo "********************************************************"
Chris@19 13747 echo "* WARNING: The guessed CFLAGS don't seem to work with *"
Chris@19 13748 echo "* your compiler. *"
Chris@19 13749 echo "* Use ./configure CFLAGS=... to specify your own flags *"
Chris@19 13750 echo "********************************************************"
Chris@19 13751 echo ""
Chris@19 13752 CFLAGS=""
Chris@19 13753
Chris@19 13754 fi
Chris@19 13755
Chris@19 13756
Chris@19 13757 fi
Chris@19 13758
Chris@19 13759
Chris@19 13760 case "${ax_cv_c_compiler_vendor}" in
Chris@19 13761 intel) # Stop icc from defining __GNUC__, except on MacOS where this fails
Chris@19 13762 case "${host_os}" in
Chris@19 13763 *darwin*) ;; # icc -no-gcc fails to compile some system headers
Chris@19 13764 *)
Chris@19 13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -no-gcc" >&5
Chris@19 13766 $as_echo_n "checking whether C compiler accepts -no-gcc... " >&6; }
Chris@19 13767 if ${ax_cv_c_flags__no_gcc+:} false; then :
Chris@19 13768 $as_echo_n "(cached) " >&6
Chris@19 13769 else
Chris@19 13770
Chris@19 13771 ax_save_FLAGS=$CFLAGS
Chris@19 13772 CFLAGS="-no-gcc"
Chris@19 13773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 13774 /* end confdefs.h. */
Chris@19 13775
Chris@19 13776 int
Chris@19 13777 main ()
Chris@19 13778 {
Chris@19 13779
Chris@19 13780 ;
Chris@19 13781 return 0;
Chris@19 13782 }
Chris@19 13783 _ACEOF
Chris@19 13784 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 13785 ax_cv_c_flags__no_gcc=yes
Chris@19 13786 else
Chris@19 13787 ax_cv_c_flags__no_gcc=no
Chris@19 13788 fi
Chris@19 13789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 13790 CFLAGS=$ax_save_FLAGS
Chris@19 13791 fi
Chris@19 13792
Chris@19 13793 eval ax_check_compiler_flags=$ax_cv_c_flags__no_gcc
Chris@19 13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@19 13795 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@19 13796 if test "x$ax_check_compiler_flags" = xyes; then
Chris@19 13797 CC="$CC -no-gcc"
Chris@19 13798 else
Chris@19 13799 :
Chris@19 13800 fi
Chris@19 13801
Chris@19 13802 ;;
Chris@19 13803 esac
Chris@19 13804 ;;
Chris@19 13805
Chris@19 13806 hp) # must (sometimes) manually increase cpp limits to handle fftw3.h
Chris@19 13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wp,-H128000" >&5
Chris@19 13808 $as_echo_n "checking whether C compiler accepts -Wp,-H128000... " >&6; }
Chris@19 13809 if ${ax_cv_c_flags__Wp+:} false; then :
Chris@19 13810 $as_echo_n "(cached) " >&6
Chris@19 13811 else
Chris@19 13812
Chris@19 13813 ax_save_FLAGS=$CFLAGS
Chris@19 13814 CFLAGS="-Wp,-H128000"
Chris@19 13815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 13816 /* end confdefs.h. */
Chris@19 13817
Chris@19 13818 int
Chris@19 13819 main ()
Chris@19 13820 {
Chris@19 13821
Chris@19 13822 ;
Chris@19 13823 return 0;
Chris@19 13824 }
Chris@19 13825 _ACEOF
Chris@19 13826 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 13827 ax_cv_c_flags__Wp=yes
Chris@19 13828 else
Chris@19 13829 ax_cv_c_flags__Wp=no
Chris@19 13830 fi
Chris@19 13831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 13832 CFLAGS=$ax_save_FLAGS
Chris@19 13833 fi
Chris@19 13834
Chris@19 13835 eval ax_check_compiler_flags=$ax_cv_c_flags__Wp
Chris@19 13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@19 13837 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@19 13838 if test "x$ax_check_compiler_flags" = xyes; then
Chris@19 13839 CC="$CC -Wp,-H128000"
Chris@19 13840 else
Chris@19 13841 :
Chris@19 13842 fi
Chris@19 13843
Chris@19 13844 ;;
Chris@19 13845
Chris@19 13846 portland) # -Masmkeyword required for asm("") cycle counters
Chris@19 13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Masmkeyword" >&5
Chris@19 13848 $as_echo_n "checking whether C compiler accepts -Masmkeyword... " >&6; }
Chris@19 13849 if ${ax_cv_c_flags__Masmkeyword+:} false; then :
Chris@19 13850 $as_echo_n "(cached) " >&6
Chris@19 13851 else
Chris@19 13852
Chris@19 13853 ax_save_FLAGS=$CFLAGS
Chris@19 13854 CFLAGS="-Masmkeyword"
Chris@19 13855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 13856 /* end confdefs.h. */
Chris@19 13857
Chris@19 13858 int
Chris@19 13859 main ()
Chris@19 13860 {
Chris@19 13861
Chris@19 13862 ;
Chris@19 13863 return 0;
Chris@19 13864 }
Chris@19 13865 _ACEOF
Chris@19 13866 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 13867 ax_cv_c_flags__Masmkeyword=yes
Chris@19 13868 else
Chris@19 13869 ax_cv_c_flags__Masmkeyword=no
Chris@19 13870 fi
Chris@19 13871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 13872 CFLAGS=$ax_save_FLAGS
Chris@19 13873 fi
Chris@19 13874
Chris@19 13875 eval ax_check_compiler_flags=$ax_cv_c_flags__Masmkeyword
Chris@19 13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@19 13877 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@19 13878 if test "x$ax_check_compiler_flags" = xyes; then
Chris@19 13879 CC="$CC -Masmkeyword"
Chris@19 13880 else
Chris@19 13881 :
Chris@19 13882 fi
Chris@19 13883
Chris@19 13884 ;;
Chris@19 13885 esac
Chris@19 13886
Chris@19 13887 case "${ax_cv_c_compiler_vendor}" in
Chris@19 13888 gnu|intel)
Chris@19 13889 # SSE/SSE2
Chris@19 13890 if test "$have_sse2" = "yes" -a "x$SSE2_CFLAGS" = x; then
Chris@19 13891 if test "$PRECISION" = d; then flag=msse2; else flag=msse; fi
Chris@19 13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -$flag" >&5
Chris@19 13893 $as_echo_n "checking whether C compiler accepts -$flag... " >&6; }
Chris@19 13894 ax_save_FLAGS=$CFLAGS
Chris@19 13895 CFLAGS="-$flag"
Chris@19 13896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 13897 /* end confdefs.h. */
Chris@19 13898
Chris@19 13899 int
Chris@19 13900 main ()
Chris@19 13901 {
Chris@19 13902
Chris@19 13903 ;
Chris@19 13904 return 0;
Chris@19 13905 }
Chris@19 13906 _ACEOF
Chris@19 13907 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 13908 eval `$as_echo "ax_cv_c_flags_-$flag" | $as_tr_sh`=yes
Chris@19 13909 else
Chris@19 13910 eval `$as_echo "ax_cv_c_flags_-$flag" | $as_tr_sh`=no
Chris@19 13911 fi
Chris@19 13912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 13913 CFLAGS=$ax_save_FLAGS
Chris@19 13914 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_-$flag" | $as_tr_sh`
Chris@19 13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@19 13916 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@19 13917 if test "x$ax_check_compiler_flags" = xyes; then
Chris@19 13918 SSE2_CFLAGS="-$flag"
Chris@19 13919 else
Chris@19 13920 as_fn_error $? "Need a version of gcc with -$flag" "$LINENO" 5
Chris@19 13921 fi
Chris@19 13922
Chris@19 13923 fi
Chris@19 13924
Chris@19 13925 # AVX
Chris@19 13926 if test "$have_avx" = "yes" -a "x$AVX_CFLAGS" = x; then
Chris@19 13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5
Chris@19 13928 $as_echo_n "checking whether C compiler accepts -mavx... " >&6; }
Chris@19 13929 if ${ax_cv_c_flags__mavx+:} false; then :
Chris@19 13930 $as_echo_n "(cached) " >&6
Chris@19 13931 else
Chris@19 13932
Chris@19 13933 ax_save_FLAGS=$CFLAGS
Chris@19 13934 CFLAGS="-mavx"
Chris@19 13935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 13936 /* end confdefs.h. */
Chris@19 13937
Chris@19 13938 int
Chris@19 13939 main ()
Chris@19 13940 {
Chris@19 13941
Chris@19 13942 ;
Chris@19 13943 return 0;
Chris@19 13944 }
Chris@19 13945 _ACEOF
Chris@19 13946 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 13947 ax_cv_c_flags__mavx=yes
Chris@19 13948 else
Chris@19 13949 ax_cv_c_flags__mavx=no
Chris@19 13950 fi
Chris@19 13951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 13952 CFLAGS=$ax_save_FLAGS
Chris@19 13953 fi
Chris@19 13954
Chris@19 13955 eval ax_check_compiler_flags=$ax_cv_c_flags__mavx
Chris@19 13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@19 13957 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@19 13958 if test "x$ax_check_compiler_flags" = xyes; then
Chris@19 13959 AVX_CFLAGS="-mavx"
Chris@19 13960 else
Chris@19 13961 as_fn_error $? "Need a version of gcc with -mavx" "$LINENO" 5
Chris@19 13962 fi
Chris@19 13963
Chris@19 13964 fi
Chris@19 13965
Chris@19 13966 if test "$have_altivec" = "yes" -a "x$ALTIVEC_CFLAGS" = x; then
Chris@19 13967 # -DFAKE__VEC__ is a workaround because gcc-3.3 does not
Chris@19 13968 # #define __VEC__ with -maltivec.
Chris@19 13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -faltivec" >&5
Chris@19 13970 $as_echo_n "checking whether C compiler accepts -faltivec... " >&6; }
Chris@19 13971 if ${ax_cv_c_flags__faltivec+:} false; then :
Chris@19 13972 $as_echo_n "(cached) " >&6
Chris@19 13973 else
Chris@19 13974
Chris@19 13975 ax_save_FLAGS=$CFLAGS
Chris@19 13976 CFLAGS="-faltivec"
Chris@19 13977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 13978 /* end confdefs.h. */
Chris@19 13979
Chris@19 13980 int
Chris@19 13981 main ()
Chris@19 13982 {
Chris@19 13983
Chris@19 13984 ;
Chris@19 13985 return 0;
Chris@19 13986 }
Chris@19 13987 _ACEOF
Chris@19 13988 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 13989 ax_cv_c_flags__faltivec=yes
Chris@19 13990 else
Chris@19 13991 ax_cv_c_flags__faltivec=no
Chris@19 13992 fi
Chris@19 13993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 13994 CFLAGS=$ax_save_FLAGS
Chris@19 13995 fi
Chris@19 13996
Chris@19 13997 eval ax_check_compiler_flags=$ax_cv_c_flags__faltivec
Chris@19 13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@19 13999 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@19 14000 if test "x$ax_check_compiler_flags" = xyes; then
Chris@19 14001 ALTIVEC_CFLAGS="-faltivec"
Chris@19 14002 else
Chris@19 14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maltivec -mabi=altivec" >&5
Chris@19 14004 $as_echo_n "checking whether C compiler accepts -maltivec -mabi=altivec... " >&6; }
Chris@19 14005 if ${ax_cv_c_flags__maltivec__mabi_altivec+:} false; then :
Chris@19 14006 $as_echo_n "(cached) " >&6
Chris@19 14007 else
Chris@19 14008
Chris@19 14009 ax_save_FLAGS=$CFLAGS
Chris@19 14010 CFLAGS="-maltivec -mabi=altivec"
Chris@19 14011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 14012 /* end confdefs.h. */
Chris@19 14013
Chris@19 14014 int
Chris@19 14015 main ()
Chris@19 14016 {
Chris@19 14017
Chris@19 14018 ;
Chris@19 14019 return 0;
Chris@19 14020 }
Chris@19 14021 _ACEOF
Chris@19 14022 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 14023 ax_cv_c_flags__maltivec__mabi_altivec=yes
Chris@19 14024 else
Chris@19 14025 ax_cv_c_flags__maltivec__mabi_altivec=no
Chris@19 14026 fi
Chris@19 14027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 14028 CFLAGS=$ax_save_FLAGS
Chris@19 14029 fi
Chris@19 14030
Chris@19 14031 eval ax_check_compiler_flags=$ax_cv_c_flags__maltivec__mabi_altivec
Chris@19 14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@19 14033 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@19 14034 if test "x$ax_check_compiler_flags" = xyes; then
Chris@19 14035 ALTIVEC_CFLAGS="-maltivec -mabi=altivec -DFAKE__VEC__"
Chris@19 14036 else
Chris@19 14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvec" >&5
Chris@19 14038 $as_echo_n "checking whether C compiler accepts -fvec... " >&6; }
Chris@19 14039 if ${ax_cv_c_flags__fvec+:} false; then :
Chris@19 14040 $as_echo_n "(cached) " >&6
Chris@19 14041 else
Chris@19 14042
Chris@19 14043 ax_save_FLAGS=$CFLAGS
Chris@19 14044 CFLAGS="-fvec"
Chris@19 14045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 14046 /* end confdefs.h. */
Chris@19 14047
Chris@19 14048 int
Chris@19 14049 main ()
Chris@19 14050 {
Chris@19 14051
Chris@19 14052 ;
Chris@19 14053 return 0;
Chris@19 14054 }
Chris@19 14055 _ACEOF
Chris@19 14056 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 14057 ax_cv_c_flags__fvec=yes
Chris@19 14058 else
Chris@19 14059 ax_cv_c_flags__fvec=no
Chris@19 14060 fi
Chris@19 14061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 14062 CFLAGS=$ax_save_FLAGS
Chris@19 14063 fi
Chris@19 14064
Chris@19 14065 eval ax_check_compiler_flags=$ax_cv_c_flags__fvec
Chris@19 14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@19 14067 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@19 14068 if test "x$ax_check_compiler_flags" = xyes; then
Chris@19 14069 ALTIVEC_CFLAGS="-fvec"
Chris@19 14070 else
Chris@19 14071 as_fn_error $? "Need a version of gcc with -maltivec" "$LINENO" 5
Chris@19 14072 fi
Chris@19 14073
Chris@19 14074 fi
Chris@19 14075
Chris@19 14076 fi
Chris@19 14077
Chris@19 14078 fi
Chris@19 14079
Chris@19 14080 if test "$have_neon" = "yes" -a "x$NEON_CFLAGS" = x; then
Chris@19 14081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mfpu=neon" >&5
Chris@19 14082 $as_echo_n "checking whether C compiler accepts -mfpu=neon... " >&6; }
Chris@19 14083 if ${ax_cv_c_flags__mfpu_neon+:} false; then :
Chris@19 14084 $as_echo_n "(cached) " >&6
Chris@19 14085 else
Chris@19 14086
Chris@19 14087 ax_save_FLAGS=$CFLAGS
Chris@19 14088 CFLAGS="-mfpu=neon"
Chris@19 14089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 14090 /* end confdefs.h. */
Chris@19 14091
Chris@19 14092 int
Chris@19 14093 main ()
Chris@19 14094 {
Chris@19 14095
Chris@19 14096 ;
Chris@19 14097 return 0;
Chris@19 14098 }
Chris@19 14099 _ACEOF
Chris@19 14100 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 14101 ax_cv_c_flags__mfpu_neon=yes
Chris@19 14102 else
Chris@19 14103 ax_cv_c_flags__mfpu_neon=no
Chris@19 14104 fi
Chris@19 14105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 14106 CFLAGS=$ax_save_FLAGS
Chris@19 14107 fi
Chris@19 14108
Chris@19 14109 eval ax_check_compiler_flags=$ax_cv_c_flags__mfpu_neon
Chris@19 14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@19 14111 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@19 14112 if test "x$ax_check_compiler_flags" = xyes; then
Chris@19 14113 NEON_CFLAGS="-mfpu=neon"
Chris@19 14114 else
Chris@19 14115 as_fn_error $? "Need a version of gcc with -mfpu=neon" "$LINENO" 5
Chris@19 14116 fi
Chris@19 14117
Chris@19 14118 fi
Chris@19 14119
Chris@19 14120 ;;
Chris@19 14121 esac
Chris@19 14122
Chris@19 14123
Chris@19 14124
Chris@19 14125
Chris@19 14126
Chris@19 14127
Chris@19 14128 if test "$with_incoming_stack_boundary"x != "no"x; then
Chris@19 14129 case "${ax_cv_c_compiler_vendor}" in
Chris@19 14130 gnu)
Chris@19 14131 tentative_flags="-mincoming-stack-boundary=$with_incoming_stack_boundary";
Chris@19 14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $tentative_flags" >&5
Chris@19 14133 $as_echo_n "checking whether C compiler accepts $tentative_flags... " >&6; }
Chris@19 14134 ax_save_FLAGS=$CFLAGS
Chris@19 14135 CFLAGS="$tentative_flags"
Chris@19 14136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 14137 /* end confdefs.h. */
Chris@19 14138
Chris@19 14139 int
Chris@19 14140 main ()
Chris@19 14141 {
Chris@19 14142
Chris@19 14143 ;
Chris@19 14144 return 0;
Chris@19 14145 }
Chris@19 14146 _ACEOF
Chris@19 14147 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 14148 eval `$as_echo "ax_cv_c_flags_$tentative_flags" | $as_tr_sh`=yes
Chris@19 14149 else
Chris@19 14150 eval `$as_echo "ax_cv_c_flags_$tentative_flags" | $as_tr_sh`=no
Chris@19 14151 fi
Chris@19 14152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 14153 CFLAGS=$ax_save_FLAGS
Chris@19 14154 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$tentative_flags" | $as_tr_sh`
Chris@19 14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@19 14156 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@19 14157 if test "x$ax_check_compiler_flags" = xyes; then
Chris@19 14158 STACK_ALIGN_CFLAGS=$tentative_flags
Chris@19 14159 else
Chris@19 14160 :
Chris@19 14161 fi
Chris@19 14162
Chris@19 14163 ;;
Chris@19 14164 esac
Chris@19 14165 fi
Chris@19 14166
Chris@19 14167
Chris@19 14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Chris@19 14169 $as_echo_n "checking for ANSI C header files... " >&6; }
Chris@19 14170 if ${ac_cv_header_stdc+:} false; then :
Chris@19 14171 $as_echo_n "(cached) " >&6
Chris@19 14172 else
Chris@19 14173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 14174 /* end confdefs.h. */
Chris@19 14175 #include <stdlib.h>
Chris@19 14176 #include <stdarg.h>
Chris@19 14177 #include <string.h>
Chris@19 14178 #include <float.h>
Chris@19 14179
Chris@19 14180 int
Chris@19 14181 main ()
Chris@19 14182 {
Chris@19 14183
Chris@19 14184 ;
Chris@19 14185 return 0;
Chris@19 14186 }
Chris@19 14187 _ACEOF
Chris@19 14188 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 14189 ac_cv_header_stdc=yes
Chris@19 14190 else
Chris@19 14191 ac_cv_header_stdc=no
Chris@19 14192 fi
Chris@19 14193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 14194
Chris@19 14195 if test $ac_cv_header_stdc = yes; then
Chris@19 14196 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Chris@19 14197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 14198 /* end confdefs.h. */
Chris@19 14199 #include <string.h>
Chris@19 14200
Chris@19 14201 _ACEOF
Chris@19 14202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@19 14203 $EGREP "memchr" >/dev/null 2>&1; then :
Chris@19 14204
Chris@19 14205 else
Chris@19 14206 ac_cv_header_stdc=no
Chris@19 14207 fi
Chris@19 14208 rm -f conftest*
Chris@19 14209
Chris@19 14210 fi
Chris@19 14211
Chris@19 14212 if test $ac_cv_header_stdc = yes; then
Chris@19 14213 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Chris@19 14214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 14215 /* end confdefs.h. */
Chris@19 14216 #include <stdlib.h>
Chris@19 14217
Chris@19 14218 _ACEOF
Chris@19 14219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@19 14220 $EGREP "free" >/dev/null 2>&1; then :
Chris@19 14221
Chris@19 14222 else
Chris@19 14223 ac_cv_header_stdc=no
Chris@19 14224 fi
Chris@19 14225 rm -f conftest*
Chris@19 14226
Chris@19 14227 fi
Chris@19 14228
Chris@19 14229 if test $ac_cv_header_stdc = yes; then
Chris@19 14230 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Chris@19 14231 if test "$cross_compiling" = yes; then :
Chris@19 14232 :
Chris@19 14233 else
Chris@19 14234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 14235 /* end confdefs.h. */
Chris@19 14236 #include <ctype.h>
Chris@19 14237 #include <stdlib.h>
Chris@19 14238 #if ((' ' & 0x0FF) == 0x020)
Chris@19 14239 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
Chris@19 14240 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Chris@19 14241 #else
Chris@19 14242 # define ISLOWER(c) \
Chris@19 14243 (('a' <= (c) && (c) <= 'i') \
Chris@19 14244 || ('j' <= (c) && (c) <= 'r') \
Chris@19 14245 || ('s' <= (c) && (c) <= 'z'))
Chris@19 14246 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
Chris@19 14247 #endif
Chris@19 14248
Chris@19 14249 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Chris@19 14250 int
Chris@19 14251 main ()
Chris@19 14252 {
Chris@19 14253 int i;
Chris@19 14254 for (i = 0; i < 256; i++)
Chris@19 14255 if (XOR (islower (i), ISLOWER (i))
Chris@19 14256 || toupper (i) != TOUPPER (i))
Chris@19 14257 return 2;
Chris@19 14258 return 0;
Chris@19 14259 }
Chris@19 14260 _ACEOF
Chris@19 14261 if ac_fn_c_try_run "$LINENO"; then :
Chris@19 14262
Chris@19 14263 else
Chris@19 14264 ac_cv_header_stdc=no
Chris@19 14265 fi
Chris@19 14266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@19 14267 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@19 14268 fi
Chris@19 14269
Chris@19 14270 fi
Chris@19 14271 fi
Chris@19 14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Chris@19 14273 $as_echo "$ac_cv_header_stdc" >&6; }
Chris@19 14274 if test $ac_cv_header_stdc = yes; then
Chris@19 14275
Chris@19 14276 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
Chris@19 14277
Chris@19 14278 fi
Chris@19 14279
Chris@19 14280 for ac_header in libintl.h malloc.h stddef.h stdlib.h string.h strings.h sys/time.h unistd.h limits.h c_asm.h intrinsics.h stdint.h mach/mach_time.h sys/sysctl.h
Chris@19 14281 do :
Chris@19 14282 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Chris@19 14283 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Chris@19 14284 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@19 14285 cat >>confdefs.h <<_ACEOF
Chris@19 14286 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris@19 14287 _ACEOF
Chris@19 14288
Chris@19 14289 fi
Chris@19 14290
Chris@19 14291 done
Chris@19 14292
Chris@19 14293
Chris@19 14294 save_CFLAGS="$CFLAGS"
Chris@19 14295 save_CPPFLAGS="$CPPFLAGS"
Chris@19 14296 CFLAGS="$CFLAGS $ALTIVEC_CFLAGS"
Chris@19 14297 CPPFLAGS="$CPPFLAGS $ALTIVEC_CFLAGS"
Chris@19 14298 for ac_header in altivec.h
Chris@19 14299 do :
Chris@19 14300 ac_fn_c_check_header_mongrel "$LINENO" "altivec.h" "ac_cv_header_altivec_h" "$ac_includes_default"
Chris@19 14301 if test "x$ac_cv_header_altivec_h" = xyes; then :
Chris@19 14302 cat >>confdefs.h <<_ACEOF
Chris@19 14303 #define HAVE_ALTIVEC_H 1
Chris@19 14304 _ACEOF
Chris@19 14305
Chris@19 14306 fi
Chris@19 14307
Chris@19 14308 done
Chris@19 14309
Chris@19 14310 CFLAGS="$save_CFLAGS"
Chris@19 14311 CPPFLAGS="$save_CPPFLAGS"
Chris@19 14312
Chris@19 14313
Chris@19 14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Chris@19 14315 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Chris@19 14316 if ${ac_cv_c_const+:} false; then :
Chris@19 14317 $as_echo_n "(cached) " >&6
Chris@19 14318 else
Chris@19 14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 14320 /* end confdefs.h. */
Chris@19 14321
Chris@19 14322 int
Chris@19 14323 main ()
Chris@19 14324 {
Chris@19 14325
Chris@19 14326 #ifndef __cplusplus
Chris@19 14327 /* Ultrix mips cc rejects this sort of thing. */
Chris@19 14328 typedef int charset[2];
Chris@19 14329 const charset cs = { 0, 0 };
Chris@19 14330 /* SunOS 4.1.1 cc rejects this. */
Chris@19 14331 char const *const *pcpcc;
Chris@19 14332 char **ppc;
Chris@19 14333 /* NEC SVR4.0.2 mips cc rejects this. */
Chris@19 14334 struct point {int x, y;};
Chris@19 14335 static struct point const zero = {0,0};
Chris@19 14336 /* AIX XL C 1.02.0.0 rejects this.
Chris@19 14337 It does not let you subtract one const X* pointer from another in
Chris@19 14338 an arm of an if-expression whose if-part is not a constant
Chris@19 14339 expression */
Chris@19 14340 const char *g = "string";
Chris@19 14341 pcpcc = &g + (g ? g-g : 0);
Chris@19 14342 /* HPUX 7.0 cc rejects these. */
Chris@19 14343 ++pcpcc;
Chris@19 14344 ppc = (char**) pcpcc;
Chris@19 14345 pcpcc = (char const *const *) ppc;
Chris@19 14346 { /* SCO 3.2v4 cc rejects this sort of thing. */
Chris@19 14347 char tx;
Chris@19 14348 char *t = &tx;
Chris@19 14349 char const *s = 0 ? (char *) 0 : (char const *) 0;
Chris@19 14350
Chris@19 14351 *t++ = 0;
Chris@19 14352 if (s) return 0;
Chris@19 14353 }
Chris@19 14354 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
Chris@19 14355 int x[] = {25, 17};
Chris@19 14356 const int *foo = &x[0];
Chris@19 14357 ++foo;
Chris@19 14358 }
Chris@19 14359 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
Chris@19 14360 typedef const int *iptr;
Chris@19 14361 iptr p = 0;
Chris@19 14362 ++p;
Chris@19 14363 }
Chris@19 14364 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Chris@19 14365 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
Chris@19 14366 struct s { int j; const int *ap[3]; } bx;
Chris@19 14367 struct s *b = &bx; b->j = 5;
Chris@19 14368 }
Chris@19 14369 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
Chris@19 14370 const int foo = 10;
Chris@19 14371 if (!foo) return 0;
Chris@19 14372 }
Chris@19 14373 return !cs[0] && !zero.x;
Chris@19 14374 #endif
Chris@19 14375
Chris@19 14376 ;
Chris@19 14377 return 0;
Chris@19 14378 }
Chris@19 14379 _ACEOF
Chris@19 14380 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 14381 ac_cv_c_const=yes
Chris@19 14382 else
Chris@19 14383 ac_cv_c_const=no
Chris@19 14384 fi
Chris@19 14385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 14386 fi
Chris@19 14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Chris@19 14388 $as_echo "$ac_cv_c_const" >&6; }
Chris@19 14389 if test $ac_cv_c_const = no; then
Chris@19 14390
Chris@19 14391 $as_echo "#define const /**/" >>confdefs.h
Chris@19 14392
Chris@19 14393 fi
Chris@19 14394
Chris@19 14395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Chris@19 14396 $as_echo_n "checking for inline... " >&6; }
Chris@19 14397 if ${ac_cv_c_inline+:} false; then :
Chris@19 14398 $as_echo_n "(cached) " >&6
Chris@19 14399 else
Chris@19 14400 ac_cv_c_inline=no
Chris@19 14401 for ac_kw in inline __inline__ __inline; do
Chris@19 14402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 14403 /* end confdefs.h. */
Chris@19 14404 #ifndef __cplusplus
Chris@19 14405 typedef int foo_t;
Chris@19 14406 static $ac_kw foo_t static_foo () {return 0; }
Chris@19 14407 $ac_kw foo_t foo () {return 0; }
Chris@19 14408 #endif
Chris@19 14409
Chris@19 14410 _ACEOF
Chris@19 14411 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 14412 ac_cv_c_inline=$ac_kw
Chris@19 14413 fi
Chris@19 14414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 14415 test "$ac_cv_c_inline" != no && break
Chris@19 14416 done
Chris@19 14417
Chris@19 14418 fi
Chris@19 14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Chris@19 14420 $as_echo "$ac_cv_c_inline" >&6; }
Chris@19 14421
Chris@19 14422 case $ac_cv_c_inline in
Chris@19 14423 inline | yes) ;;
Chris@19 14424 *)
Chris@19 14425 case $ac_cv_c_inline in
Chris@19 14426 no) ac_val=;;
Chris@19 14427 *) ac_val=$ac_cv_c_inline;;
Chris@19 14428 esac
Chris@19 14429 cat >>confdefs.h <<_ACEOF
Chris@19 14430 #ifndef __cplusplus
Chris@19 14431 #define inline $ac_val
Chris@19 14432 #endif
Chris@19 14433 _ACEOF
Chris@19 14434 ;;
Chris@19 14435 esac
Chris@19 14436
Chris@19 14437 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Chris@19 14438 if test "x$ac_cv_type_size_t" = xyes; then :
Chris@19 14439
Chris@19 14440 else
Chris@19 14441
Chris@19 14442 cat >>confdefs.h <<_ACEOF
Chris@19 14443 #define size_t unsigned int
Chris@19 14444 _ACEOF
Chris@19 14445
Chris@19 14446 fi
Chris@19 14447
Chris@19 14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
Chris@19 14449 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
Chris@19 14450 if ${ac_cv_header_time+:} false; then :
Chris@19 14451 $as_echo_n "(cached) " >&6
Chris@19 14452 else
Chris@19 14453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 14454 /* end confdefs.h. */
Chris@19 14455 #include <sys/types.h>
Chris@19 14456 #include <sys/time.h>
Chris@19 14457 #include <time.h>
Chris@19 14458
Chris@19 14459 int
Chris@19 14460 main ()
Chris@19 14461 {
Chris@19 14462 if ((struct tm *) 0)
Chris@19 14463 return 0;
Chris@19 14464 ;
Chris@19 14465 return 0;
Chris@19 14466 }
Chris@19 14467 _ACEOF
Chris@19 14468 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 14469 ac_cv_header_time=yes
Chris@19 14470 else
Chris@19 14471 ac_cv_header_time=no
Chris@19 14472 fi
Chris@19 14473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 14474 fi
Chris@19 14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
Chris@19 14476 $as_echo "$ac_cv_header_time" >&6; }
Chris@19 14477 if test $ac_cv_header_time = yes; then
Chris@19 14478
Chris@19 14479 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
Chris@19 14480
Chris@19 14481 fi
Chris@19 14482
Chris@19 14483 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
Chris@19 14484 if test "x$ac_cv_type_long_double" = xyes; then :
Chris@19 14485
Chris@19 14486 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
Chris@19 14487
Chris@19 14488 else
Chris@19 14489
Chris@19 14490 if test $PRECISION = l; then
Chris@19 14491 as_fn_error $? "long double is not a supported type with your compiler." "$LINENO" 5
Chris@19 14492 fi
Chris@19 14493
Chris@19 14494 fi
Chris@19 14495
Chris@19 14496 ac_fn_c_check_type "$LINENO" "hrtime_t" "ac_cv_type_hrtime_t" "
Chris@19 14497 #if HAVE_SYS_TIME_H
Chris@19 14498 #include <sys/time.h>
Chris@19 14499 #endif
Chris@19 14500
Chris@19 14501 "
Chris@19 14502 if test "x$ac_cv_type_hrtime_t" = xyes; then :
Chris@19 14503
Chris@19 14504 $as_echo "#define HAVE_HRTIME_T 1" >>confdefs.h
Chris@19 14505
Chris@19 14506 fi
Chris@19 14507
Chris@19 14508
Chris@19 14509 # The cast to long int works around a bug in the HP C Compiler
Chris@19 14510 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@19 14511 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@19 14512 # This bug is HP SR number 8606223364.
Chris@19 14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Chris@19 14514 $as_echo_n "checking size of int... " >&6; }
Chris@19 14515 if ${ac_cv_sizeof_int+:} false; then :
Chris@19 14516 $as_echo_n "(cached) " >&6
Chris@19 14517 else
Chris@19 14518 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
Chris@19 14519
Chris@19 14520 else
Chris@19 14521 if test "$ac_cv_type_int" = yes; then
Chris@19 14522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@19 14523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@19 14524 as_fn_error 77 "cannot compute sizeof (int)
Chris@19 14525 See \`config.log' for more details" "$LINENO" 5; }
Chris@19 14526 else
Chris@19 14527 ac_cv_sizeof_int=0
Chris@19 14528 fi
Chris@19 14529 fi
Chris@19 14530
Chris@19 14531 fi
Chris@19 14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Chris@19 14533 $as_echo "$ac_cv_sizeof_int" >&6; }
Chris@19 14534
Chris@19 14535
Chris@19 14536
Chris@19 14537 cat >>confdefs.h <<_ACEOF
Chris@19 14538 #define SIZEOF_INT $ac_cv_sizeof_int
Chris@19 14539 _ACEOF
Chris@19 14540
Chris@19 14541
Chris@19 14542 # The cast to long int works around a bug in the HP C Compiler
Chris@19 14543 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@19 14544 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@19 14545 # This bug is HP SR number 8606223364.
Chris@19 14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
Chris@19 14547 $as_echo_n "checking size of unsigned int... " >&6; }
Chris@19 14548 if ${ac_cv_sizeof_unsigned_int+:} false; then :
Chris@19 14549 $as_echo_n "(cached) " >&6
Chris@19 14550 else
Chris@19 14551 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
Chris@19 14552
Chris@19 14553 else
Chris@19 14554 if test "$ac_cv_type_unsigned_int" = yes; then
Chris@19 14555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@19 14556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@19 14557 as_fn_error 77 "cannot compute sizeof (unsigned int)
Chris@19 14558 See \`config.log' for more details" "$LINENO" 5; }
Chris@19 14559 else
Chris@19 14560 ac_cv_sizeof_unsigned_int=0
Chris@19 14561 fi
Chris@19 14562 fi
Chris@19 14563
Chris@19 14564 fi
Chris@19 14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
Chris@19 14566 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
Chris@19 14567
Chris@19 14568
Chris@19 14569
Chris@19 14570 cat >>confdefs.h <<_ACEOF
Chris@19 14571 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
Chris@19 14572 _ACEOF
Chris@19 14573
Chris@19 14574
Chris@19 14575 # The cast to long int works around a bug in the HP C Compiler
Chris@19 14576 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@19 14577 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@19 14578 # This bug is HP SR number 8606223364.
Chris@19 14579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Chris@19 14580 $as_echo_n "checking size of long... " >&6; }
Chris@19 14581 if ${ac_cv_sizeof_long+:} false; then :
Chris@19 14582 $as_echo_n "(cached) " >&6
Chris@19 14583 else
Chris@19 14584 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
Chris@19 14585
Chris@19 14586 else
Chris@19 14587 if test "$ac_cv_type_long" = yes; then
Chris@19 14588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@19 14589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@19 14590 as_fn_error 77 "cannot compute sizeof (long)
Chris@19 14591 See \`config.log' for more details" "$LINENO" 5; }
Chris@19 14592 else
Chris@19 14593 ac_cv_sizeof_long=0
Chris@19 14594 fi
Chris@19 14595 fi
Chris@19 14596
Chris@19 14597 fi
Chris@19 14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Chris@19 14599 $as_echo "$ac_cv_sizeof_long" >&6; }
Chris@19 14600
Chris@19 14601
Chris@19 14602
Chris@19 14603 cat >>confdefs.h <<_ACEOF
Chris@19 14604 #define SIZEOF_LONG $ac_cv_sizeof_long
Chris@19 14605 _ACEOF
Chris@19 14606
Chris@19 14607
Chris@19 14608 # The cast to long int works around a bug in the HP C Compiler
Chris@19 14609 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@19 14610 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@19 14611 # This bug is HP SR number 8606223364.
Chris@19 14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
Chris@19 14613 $as_echo_n "checking size of unsigned long... " >&6; }
Chris@19 14614 if ${ac_cv_sizeof_unsigned_long+:} false; then :
Chris@19 14615 $as_echo_n "(cached) " >&6
Chris@19 14616 else
Chris@19 14617 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
Chris@19 14618
Chris@19 14619 else
Chris@19 14620 if test "$ac_cv_type_unsigned_long" = yes; then
Chris@19 14621 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@19 14622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@19 14623 as_fn_error 77 "cannot compute sizeof (unsigned long)
Chris@19 14624 See \`config.log' for more details" "$LINENO" 5; }
Chris@19 14625 else
Chris@19 14626 ac_cv_sizeof_unsigned_long=0
Chris@19 14627 fi
Chris@19 14628 fi
Chris@19 14629
Chris@19 14630 fi
Chris@19 14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
Chris@19 14632 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
Chris@19 14633
Chris@19 14634
Chris@19 14635
Chris@19 14636 cat >>confdefs.h <<_ACEOF
Chris@19 14637 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
Chris@19 14638 _ACEOF
Chris@19 14639
Chris@19 14640
Chris@19 14641 # The cast to long int works around a bug in the HP C Compiler
Chris@19 14642 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@19 14643 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@19 14644 # This bug is HP SR number 8606223364.
Chris@19 14645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Chris@19 14646 $as_echo_n "checking size of long long... " >&6; }
Chris@19 14647 if ${ac_cv_sizeof_long_long+:} false; then :
Chris@19 14648 $as_echo_n "(cached) " >&6
Chris@19 14649 else
Chris@19 14650 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
Chris@19 14651
Chris@19 14652 else
Chris@19 14653 if test "$ac_cv_type_long_long" = yes; then
Chris@19 14654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@19 14655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@19 14656 as_fn_error 77 "cannot compute sizeof (long long)
Chris@19 14657 See \`config.log' for more details" "$LINENO" 5; }
Chris@19 14658 else
Chris@19 14659 ac_cv_sizeof_long_long=0
Chris@19 14660 fi
Chris@19 14661 fi
Chris@19 14662
Chris@19 14663 fi
Chris@19 14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Chris@19 14665 $as_echo "$ac_cv_sizeof_long_long" >&6; }
Chris@19 14666
Chris@19 14667
Chris@19 14668
Chris@19 14669 cat >>confdefs.h <<_ACEOF
Chris@19 14670 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Chris@19 14671 _ACEOF
Chris@19 14672
Chris@19 14673
Chris@19 14674 # The cast to long int works around a bug in the HP C Compiler
Chris@19 14675 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@19 14676 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@19 14677 # This bug is HP SR number 8606223364.
Chris@19 14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
Chris@19 14679 $as_echo_n "checking size of unsigned long long... " >&6; }
Chris@19 14680 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
Chris@19 14681 $as_echo_n "(cached) " >&6
Chris@19 14682 else
Chris@19 14683 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
Chris@19 14684
Chris@19 14685 else
Chris@19 14686 if test "$ac_cv_type_unsigned_long_long" = yes; then
Chris@19 14687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@19 14688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@19 14689 as_fn_error 77 "cannot compute sizeof (unsigned long long)
Chris@19 14690 See \`config.log' for more details" "$LINENO" 5; }
Chris@19 14691 else
Chris@19 14692 ac_cv_sizeof_unsigned_long_long=0
Chris@19 14693 fi
Chris@19 14694 fi
Chris@19 14695
Chris@19 14696 fi
Chris@19 14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
Chris@19 14698 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
Chris@19 14699
Chris@19 14700
Chris@19 14701
Chris@19 14702 cat >>confdefs.h <<_ACEOF
Chris@19 14703 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
Chris@19 14704 _ACEOF
Chris@19 14705
Chris@19 14706
Chris@19 14707 # The cast to long int works around a bug in the HP C Compiler
Chris@19 14708 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@19 14709 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@19 14710 # This bug is HP SR number 8606223364.
Chris@19 14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
Chris@19 14712 $as_echo_n "checking size of size_t... " >&6; }
Chris@19 14713 if ${ac_cv_sizeof_size_t+:} false; then :
Chris@19 14714 $as_echo_n "(cached) " >&6
Chris@19 14715 else
Chris@19 14716 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
Chris@19 14717
Chris@19 14718 else
Chris@19 14719 if test "$ac_cv_type_size_t" = yes; then
Chris@19 14720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@19 14721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@19 14722 as_fn_error 77 "cannot compute sizeof (size_t)
Chris@19 14723 See \`config.log' for more details" "$LINENO" 5; }
Chris@19 14724 else
Chris@19 14725 ac_cv_sizeof_size_t=0
Chris@19 14726 fi
Chris@19 14727 fi
Chris@19 14728
Chris@19 14729 fi
Chris@19 14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
Chris@19 14731 $as_echo "$ac_cv_sizeof_size_t" >&6; }
Chris@19 14732
Chris@19 14733
Chris@19 14734
Chris@19 14735 cat >>confdefs.h <<_ACEOF
Chris@19 14736 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
Chris@19 14737 _ACEOF
Chris@19 14738
Chris@19 14739
Chris@19 14740 # The cast to long int works around a bug in the HP C Compiler
Chris@19 14741 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@19 14742 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@19 14743 # This bug is HP SR number 8606223364.
Chris@19 14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5
Chris@19 14745 $as_echo_n "checking size of ptrdiff_t... " >&6; }
Chris@19 14746 if ${ac_cv_sizeof_ptrdiff_t+:} false; then :
Chris@19 14747 $as_echo_n "(cached) " >&6
Chris@19 14748 else
Chris@19 14749 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t" "$ac_includes_default"; then :
Chris@19 14750
Chris@19 14751 else
Chris@19 14752 if test "$ac_cv_type_ptrdiff_t" = yes; then
Chris@19 14753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@19 14754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@19 14755 as_fn_error 77 "cannot compute sizeof (ptrdiff_t)
Chris@19 14756 See \`config.log' for more details" "$LINENO" 5; }
Chris@19 14757 else
Chris@19 14758 ac_cv_sizeof_ptrdiff_t=0
Chris@19 14759 fi
Chris@19 14760 fi
Chris@19 14761
Chris@19 14762 fi
Chris@19 14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5
Chris@19 14764 $as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; }
Chris@19 14765
Chris@19 14766
Chris@19 14767
Chris@19 14768 cat >>confdefs.h <<_ACEOF
Chris@19 14769 #define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
Chris@19 14770 _ACEOF
Chris@19 14771
Chris@19 14772
Chris@19 14773
Chris@19 14774 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default
Chris@19 14775 #ifdef HAVE_STDINT_H
Chris@19 14776 # include <stdint.h>
Chris@19 14777 #endif
Chris@19 14778 "
Chris@19 14779 if test "x$ac_cv_type_uintptr_t" = xyes; then :
Chris@19 14780
Chris@19 14781 cat >>confdefs.h <<_ACEOF
Chris@19 14782 #define HAVE_UINTPTR_T 1
Chris@19 14783 _ACEOF
Chris@19 14784
Chris@19 14785
Chris@19 14786 else
Chris@19 14787 # The cast to long int works around a bug in the HP C Compiler
Chris@19 14788 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@19 14789 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@19 14790 # This bug is HP SR number 8606223364.
Chris@19 14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
Chris@19 14792 $as_echo_n "checking size of void *... " >&6; }
Chris@19 14793 if ${ac_cv_sizeof_void_p+:} false; then :
Chris@19 14794 $as_echo_n "(cached) " >&6
Chris@19 14795 else
Chris@19 14796 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
Chris@19 14797
Chris@19 14798 else
Chris@19 14799 if test "$ac_cv_type_void_p" = yes; then
Chris@19 14800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@19 14801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@19 14802 as_fn_error 77 "cannot compute sizeof (void *)
Chris@19 14803 See \`config.log' for more details" "$LINENO" 5; }
Chris@19 14804 else
Chris@19 14805 ac_cv_sizeof_void_p=0
Chris@19 14806 fi
Chris@19 14807 fi
Chris@19 14808
Chris@19 14809 fi
Chris@19 14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
Chris@19 14811 $as_echo "$ac_cv_sizeof_void_p" >&6; }
Chris@19 14812
Chris@19 14813
Chris@19 14814
Chris@19 14815 cat >>confdefs.h <<_ACEOF
Chris@19 14816 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
Chris@19 14817 _ACEOF
Chris@19 14818
Chris@19 14819
Chris@19 14820 fi
Chris@19 14821
Chris@19 14822
Chris@19 14823 # The cast to long int works around a bug in the HP C Compiler
Chris@19 14824 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@19 14825 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@19 14826 # This bug is HP SR number 8606223364.
Chris@19 14827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
Chris@19 14828 $as_echo_n "checking size of float... " >&6; }
Chris@19 14829 if ${ac_cv_sizeof_float+:} false; then :
Chris@19 14830 $as_echo_n "(cached) " >&6
Chris@19 14831 else
Chris@19 14832 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
Chris@19 14833
Chris@19 14834 else
Chris@19 14835 if test "$ac_cv_type_float" = yes; then
Chris@19 14836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@19 14837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@19 14838 as_fn_error 77 "cannot compute sizeof (float)
Chris@19 14839 See \`config.log' for more details" "$LINENO" 5; }
Chris@19 14840 else
Chris@19 14841 ac_cv_sizeof_float=0
Chris@19 14842 fi
Chris@19 14843 fi
Chris@19 14844
Chris@19 14845 fi
Chris@19 14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
Chris@19 14847 $as_echo "$ac_cv_sizeof_float" >&6; }
Chris@19 14848
Chris@19 14849
Chris@19 14850
Chris@19 14851 cat >>confdefs.h <<_ACEOF
Chris@19 14852 #define SIZEOF_FLOAT $ac_cv_sizeof_float
Chris@19 14853 _ACEOF
Chris@19 14854
Chris@19 14855
Chris@19 14856 # The cast to long int works around a bug in the HP C Compiler
Chris@19 14857 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@19 14858 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@19 14859 # This bug is HP SR number 8606223364.
Chris@19 14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
Chris@19 14861 $as_echo_n "checking size of double... " >&6; }
Chris@19 14862 if ${ac_cv_sizeof_double+:} false; then :
Chris@19 14863 $as_echo_n "(cached) " >&6
Chris@19 14864 else
Chris@19 14865 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
Chris@19 14866
Chris@19 14867 else
Chris@19 14868 if test "$ac_cv_type_double" = yes; then
Chris@19 14869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@19 14870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@19 14871 as_fn_error 77 "cannot compute sizeof (double)
Chris@19 14872 See \`config.log' for more details" "$LINENO" 5; }
Chris@19 14873 else
Chris@19 14874 ac_cv_sizeof_double=0
Chris@19 14875 fi
Chris@19 14876 fi
Chris@19 14877
Chris@19 14878 fi
Chris@19 14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
Chris@19 14880 $as_echo "$ac_cv_sizeof_double" >&6; }
Chris@19 14881
Chris@19 14882
Chris@19 14883
Chris@19 14884 cat >>confdefs.h <<_ACEOF
Chris@19 14885 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
Chris@19 14886 _ACEOF
Chris@19 14887
Chris@19 14888
Chris@19 14889
Chris@19 14890 # The cast to long int works around a bug in the HP C Compiler
Chris@19 14891 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@19 14892 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@19 14893 # This bug is HP SR number 8606223364.
Chris@19 14894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fftw_r2r_kind" >&5
Chris@19 14895 $as_echo_n "checking size of fftw_r2r_kind... " >&6; }
Chris@19 14896 if ${ac_cv_sizeof_fftw_r2r_kind+:} false; then :
Chris@19 14897 $as_echo_n "(cached) " >&6
Chris@19 14898 else
Chris@19 14899 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fftw_r2r_kind))" "ac_cv_sizeof_fftw_r2r_kind" "typedef enum {
Chris@19 14900 FFTW_R2HC=0, FFTW_HC2R=1, FFTW_DHT=2,
Chris@19 14901 FFTW_REDFT00=3, FFTW_REDFT01=4, FFTW_REDFT10=5, FFTW_REDFT11=6,
Chris@19 14902 FFTW_RODFT00=7, FFTW_RODFT01=8, FFTW_RODFT10=9, FFTW_RODFT11=10
Chris@19 14903 } fftw_r2r_kind;
Chris@19 14904 "; then :
Chris@19 14905
Chris@19 14906 else
Chris@19 14907 if test "$ac_cv_type_fftw_r2r_kind" = yes; then
Chris@19 14908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@19 14909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@19 14910 as_fn_error 77 "cannot compute sizeof (fftw_r2r_kind)
Chris@19 14911 See \`config.log' for more details" "$LINENO" 5; }
Chris@19 14912 else
Chris@19 14913 ac_cv_sizeof_fftw_r2r_kind=0
Chris@19 14914 fi
Chris@19 14915 fi
Chris@19 14916
Chris@19 14917 fi
Chris@19 14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fftw_r2r_kind" >&5
Chris@19 14919 $as_echo "$ac_cv_sizeof_fftw_r2r_kind" >&6; }
Chris@19 14920
Chris@19 14921
Chris@19 14922
Chris@19 14923 cat >>confdefs.h <<_ACEOF
Chris@19 14924 #define SIZEOF_FFTW_R2R_KIND $ac_cv_sizeof_fftw_r2r_kind
Chris@19 14925 _ACEOF
Chris@19 14926
Chris@19 14927
Chris@19 14928 if test 0 = $ac_cv_sizeof_fftw_r2r_kind; then as_fn_error $? "sizeof(fftw_r2r_kind) test failed" "$LINENO" 5; fi
Chris@19 14929 C_FFTW_R2R_KIND=C_INT`expr $ac_cv_sizeof_fftw_r2r_kind \* 8`_T
Chris@19 14930
Chris@19 14931
Chris@19 14932 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
Chris@19 14933 # for constant arguments. Useless!
Chris@19 14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Chris@19 14935 $as_echo_n "checking for working alloca.h... " >&6; }
Chris@19 14936 if ${ac_cv_working_alloca_h+:} false; then :
Chris@19 14937 $as_echo_n "(cached) " >&6
Chris@19 14938 else
Chris@19 14939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 14940 /* end confdefs.h. */
Chris@19 14941 #include <alloca.h>
Chris@19 14942 int
Chris@19 14943 main ()
Chris@19 14944 {
Chris@19 14945 char *p = (char *) alloca (2 * sizeof (int));
Chris@19 14946 if (p) return 0;
Chris@19 14947 ;
Chris@19 14948 return 0;
Chris@19 14949 }
Chris@19 14950 _ACEOF
Chris@19 14951 if ac_fn_c_try_link "$LINENO"; then :
Chris@19 14952 ac_cv_working_alloca_h=yes
Chris@19 14953 else
Chris@19 14954 ac_cv_working_alloca_h=no
Chris@19 14955 fi
Chris@19 14956 rm -f core conftest.err conftest.$ac_objext \
Chris@19 14957 conftest$ac_exeext conftest.$ac_ext
Chris@19 14958 fi
Chris@19 14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Chris@19 14960 $as_echo "$ac_cv_working_alloca_h" >&6; }
Chris@19 14961 if test $ac_cv_working_alloca_h = yes; then
Chris@19 14962
Chris@19 14963 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Chris@19 14964
Chris@19 14965 fi
Chris@19 14966
Chris@19 14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Chris@19 14968 $as_echo_n "checking for alloca... " >&6; }
Chris@19 14969 if ${ac_cv_func_alloca_works+:} false; then :
Chris@19 14970 $as_echo_n "(cached) " >&6
Chris@19 14971 else
Chris@19 14972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 14973 /* end confdefs.h. */
Chris@19 14974 #ifdef __GNUC__
Chris@19 14975 # define alloca __builtin_alloca
Chris@19 14976 #else
Chris@19 14977 # ifdef _MSC_VER
Chris@19 14978 # include <malloc.h>
Chris@19 14979 # define alloca _alloca
Chris@19 14980 # else
Chris@19 14981 # ifdef HAVE_ALLOCA_H
Chris@19 14982 # include <alloca.h>
Chris@19 14983 # else
Chris@19 14984 # ifdef _AIX
Chris@19 14985 #pragma alloca
Chris@19 14986 # else
Chris@19 14987 # ifndef alloca /* predefined by HP cc +Olibcalls */
Chris@19 14988 void *alloca (size_t);
Chris@19 14989 # endif
Chris@19 14990 # endif
Chris@19 14991 # endif
Chris@19 14992 # endif
Chris@19 14993 #endif
Chris@19 14994
Chris@19 14995 int
Chris@19 14996 main ()
Chris@19 14997 {
Chris@19 14998 char *p = (char *) alloca (1);
Chris@19 14999 if (p) return 0;
Chris@19 15000 ;
Chris@19 15001 return 0;
Chris@19 15002 }
Chris@19 15003 _ACEOF
Chris@19 15004 if ac_fn_c_try_link "$LINENO"; then :
Chris@19 15005 ac_cv_func_alloca_works=yes
Chris@19 15006 else
Chris@19 15007 ac_cv_func_alloca_works=no
Chris@19 15008 fi
Chris@19 15009 rm -f core conftest.err conftest.$ac_objext \
Chris@19 15010 conftest$ac_exeext conftest.$ac_ext
Chris@19 15011 fi
Chris@19 15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Chris@19 15013 $as_echo "$ac_cv_func_alloca_works" >&6; }
Chris@19 15014
Chris@19 15015 if test $ac_cv_func_alloca_works = yes; then
Chris@19 15016
Chris@19 15017 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Chris@19 15018
Chris@19 15019 else
Chris@19 15020 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
Chris@19 15021 # that cause trouble. Some versions do not even contain alloca or
Chris@19 15022 # contain a buggy version. If you still want to use their alloca,
Chris@19 15023 # use ar to extract alloca.o from them instead of compiling alloca.c.
Chris@19 15024
Chris@19 15025 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Chris@19 15026
Chris@19 15027 $as_echo "#define C_ALLOCA 1" >>confdefs.h
Chris@19 15028
Chris@19 15029
Chris@19 15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Chris@19 15031 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Chris@19 15032 if ${ac_cv_os_cray+:} false; then :
Chris@19 15033 $as_echo_n "(cached) " >&6
Chris@19 15034 else
Chris@19 15035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 15036 /* end confdefs.h. */
Chris@19 15037 #if defined CRAY && ! defined CRAY2
Chris@19 15038 webecray
Chris@19 15039 #else
Chris@19 15040 wenotbecray
Chris@19 15041 #endif
Chris@19 15042
Chris@19 15043 _ACEOF
Chris@19 15044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@19 15045 $EGREP "webecray" >/dev/null 2>&1; then :
Chris@19 15046 ac_cv_os_cray=yes
Chris@19 15047 else
Chris@19 15048 ac_cv_os_cray=no
Chris@19 15049 fi
Chris@19 15050 rm -f conftest*
Chris@19 15051
Chris@19 15052 fi
Chris@19 15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Chris@19 15054 $as_echo "$ac_cv_os_cray" >&6; }
Chris@19 15055 if test $ac_cv_os_cray = yes; then
Chris@19 15056 for ac_func in _getb67 GETB67 getb67; do
Chris@19 15057 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Chris@19 15058 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Chris@19 15059 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Chris@19 15060
Chris@19 15061 cat >>confdefs.h <<_ACEOF
Chris@19 15062 #define CRAY_STACKSEG_END $ac_func
Chris@19 15063 _ACEOF
Chris@19 15064
Chris@19 15065 break
Chris@19 15066 fi
Chris@19 15067
Chris@19 15068 done
Chris@19 15069 fi
Chris@19 15070
Chris@19 15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Chris@19 15072 $as_echo_n "checking stack direction for C alloca... " >&6; }
Chris@19 15073 if ${ac_cv_c_stack_direction+:} false; then :
Chris@19 15074 $as_echo_n "(cached) " >&6
Chris@19 15075 else
Chris@19 15076 if test "$cross_compiling" = yes; then :
Chris@19 15077 ac_cv_c_stack_direction=0
Chris@19 15078 else
Chris@19 15079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 15080 /* end confdefs.h. */
Chris@19 15081 $ac_includes_default
Chris@19 15082 int
Chris@19 15083 find_stack_direction (int *addr, int depth)
Chris@19 15084 {
Chris@19 15085 int dir, dummy = 0;
Chris@19 15086 if (! addr)
Chris@19 15087 addr = &dummy;
Chris@19 15088 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
Chris@19 15089 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
Chris@19 15090 return dir + dummy;
Chris@19 15091 }
Chris@19 15092
Chris@19 15093 int
Chris@19 15094 main (int argc, char **argv)
Chris@19 15095 {
Chris@19 15096 return find_stack_direction (0, argc + !argv + 20) < 0;
Chris@19 15097 }
Chris@19 15098 _ACEOF
Chris@19 15099 if ac_fn_c_try_run "$LINENO"; then :
Chris@19 15100 ac_cv_c_stack_direction=1
Chris@19 15101 else
Chris@19 15102 ac_cv_c_stack_direction=-1
Chris@19 15103 fi
Chris@19 15104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@19 15105 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@19 15106 fi
Chris@19 15107
Chris@19 15108 fi
Chris@19 15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Chris@19 15110 $as_echo "$ac_cv_c_stack_direction" >&6; }
Chris@19 15111 cat >>confdefs.h <<_ACEOF
Chris@19 15112 #define STACK_DIRECTION $ac_cv_c_stack_direction
Chris@19 15113 _ACEOF
Chris@19 15114
Chris@19 15115
Chris@19 15116 fi
Chris@19 15117
Chris@19 15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
Chris@19 15119 $as_echo_n "checking for working strtod... " >&6; }
Chris@19 15120 if ${ac_cv_func_strtod+:} false; then :
Chris@19 15121 $as_echo_n "(cached) " >&6
Chris@19 15122 else
Chris@19 15123 if test "$cross_compiling" = yes; then :
Chris@19 15124 ac_cv_func_strtod=no
Chris@19 15125 else
Chris@19 15126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 15127 /* end confdefs.h. */
Chris@19 15128
Chris@19 15129 $ac_includes_default
Chris@19 15130 #ifndef strtod
Chris@19 15131 double strtod ();
Chris@19 15132 #endif
Chris@19 15133 int
Chris@19 15134 main()
Chris@19 15135 {
Chris@19 15136 {
Chris@19 15137 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
Chris@19 15138 char *string = " +69";
Chris@19 15139 char *term;
Chris@19 15140 double value;
Chris@19 15141 value = strtod (string, &term);
Chris@19 15142 if (value != 69 || term != (string + 4))
Chris@19 15143 return 1;
Chris@19 15144 }
Chris@19 15145
Chris@19 15146 {
Chris@19 15147 /* Under Solaris 2.4, strtod returns the wrong value for the
Chris@19 15148 terminating character under some conditions. */
Chris@19 15149 char *string = "NaN";
Chris@19 15150 char *term;
Chris@19 15151 strtod (string, &term);
Chris@19 15152 if (term != string && *(term - 1) == 0)
Chris@19 15153 return 1;
Chris@19 15154 }
Chris@19 15155 return 0;
Chris@19 15156 }
Chris@19 15157
Chris@19 15158 _ACEOF
Chris@19 15159 if ac_fn_c_try_run "$LINENO"; then :
Chris@19 15160 ac_cv_func_strtod=yes
Chris@19 15161 else
Chris@19 15162 ac_cv_func_strtod=no
Chris@19 15163 fi
Chris@19 15164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@19 15165 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@19 15166 fi
Chris@19 15167
Chris@19 15168 fi
Chris@19 15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
Chris@19 15170 $as_echo "$ac_cv_func_strtod" >&6; }
Chris@19 15171 if test $ac_cv_func_strtod = no; then
Chris@19 15172 case " $LIBOBJS " in
Chris@19 15173 *" strtod.$ac_objext "* ) ;;
Chris@19 15174 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
Chris@19 15175 ;;
Chris@19 15176 esac
Chris@19 15177
Chris@19 15178 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
Chris@19 15179 if test "x$ac_cv_func_pow" = xyes; then :
Chris@19 15180
Chris@19 15181 fi
Chris@19 15182
Chris@19 15183 if test $ac_cv_func_pow = no; then
Chris@19 15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
Chris@19 15185 $as_echo_n "checking for pow in -lm... " >&6; }
Chris@19 15186 if ${ac_cv_lib_m_pow+:} false; then :
Chris@19 15187 $as_echo_n "(cached) " >&6
Chris@19 15188 else
Chris@19 15189 ac_check_lib_save_LIBS=$LIBS
Chris@19 15190 LIBS="-lm $LIBS"
Chris@19 15191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 15192 /* end confdefs.h. */
Chris@19 15193
Chris@19 15194 /* Override any GCC internal prototype to avoid an error.
Chris@19 15195 Use char because int might match the return type of a GCC
Chris@19 15196 builtin and then its argument prototype would still apply. */
Chris@19 15197 #ifdef __cplusplus
Chris@19 15198 extern "C"
Chris@19 15199 #endif
Chris@19 15200 char pow ();
Chris@19 15201 int
Chris@19 15202 main ()
Chris@19 15203 {
Chris@19 15204 return pow ();
Chris@19 15205 ;
Chris@19 15206 return 0;
Chris@19 15207 }
Chris@19 15208 _ACEOF
Chris@19 15209 if ac_fn_c_try_link "$LINENO"; then :
Chris@19 15210 ac_cv_lib_m_pow=yes
Chris@19 15211 else
Chris@19 15212 ac_cv_lib_m_pow=no
Chris@19 15213 fi
Chris@19 15214 rm -f core conftest.err conftest.$ac_objext \
Chris@19 15215 conftest$ac_exeext conftest.$ac_ext
Chris@19 15216 LIBS=$ac_check_lib_save_LIBS
Chris@19 15217 fi
Chris@19 15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
Chris@19 15219 $as_echo "$ac_cv_lib_m_pow" >&6; }
Chris@19 15220 if test "x$ac_cv_lib_m_pow" = xyes; then :
Chris@19 15221 POW_LIB=-lm
Chris@19 15222 else
Chris@19 15223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
Chris@19 15224 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
Chris@19 15225 fi
Chris@19 15226
Chris@19 15227 fi
Chris@19 15228
Chris@19 15229 fi
Chris@19 15230
Chris@19 15231 for ac_func in vprintf
Chris@19 15232 do :
Chris@19 15233 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
Chris@19 15234 if test "x$ac_cv_func_vprintf" = xyes; then :
Chris@19 15235 cat >>confdefs.h <<_ACEOF
Chris@19 15236 #define HAVE_VPRINTF 1
Chris@19 15237 _ACEOF
Chris@19 15238
Chris@19 15239 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
Chris@19 15240 if test "x$ac_cv_func__doprnt" = xyes; then :
Chris@19 15241
Chris@19 15242 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Chris@19 15243
Chris@19 15244 fi
Chris@19 15245
Chris@19 15246 fi
Chris@19 15247 done
Chris@19 15248
Chris@19 15249
Chris@19 15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
Chris@19 15251 $as_echo_n "checking for sin in -lm... " >&6; }
Chris@19 15252 if ${ac_cv_lib_m_sin+:} false; then :
Chris@19 15253 $as_echo_n "(cached) " >&6
Chris@19 15254 else
Chris@19 15255 ac_check_lib_save_LIBS=$LIBS
Chris@19 15256 LIBS="-lm $LIBS"
Chris@19 15257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 15258 /* end confdefs.h. */
Chris@19 15259
Chris@19 15260 /* Override any GCC internal prototype to avoid an error.
Chris@19 15261 Use char because int might match the return type of a GCC
Chris@19 15262 builtin and then its argument prototype would still apply. */
Chris@19 15263 #ifdef __cplusplus
Chris@19 15264 extern "C"
Chris@19 15265 #endif
Chris@19 15266 char sin ();
Chris@19 15267 int
Chris@19 15268 main ()
Chris@19 15269 {
Chris@19 15270 return sin ();
Chris@19 15271 ;
Chris@19 15272 return 0;
Chris@19 15273 }
Chris@19 15274 _ACEOF
Chris@19 15275 if ac_fn_c_try_link "$LINENO"; then :
Chris@19 15276 ac_cv_lib_m_sin=yes
Chris@19 15277 else
Chris@19 15278 ac_cv_lib_m_sin=no
Chris@19 15279 fi
Chris@19 15280 rm -f core conftest.err conftest.$ac_objext \
Chris@19 15281 conftest$ac_exeext conftest.$ac_ext
Chris@19 15282 LIBS=$ac_check_lib_save_LIBS
Chris@19 15283 fi
Chris@19 15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
Chris@19 15285 $as_echo "$ac_cv_lib_m_sin" >&6; }
Chris@19 15286 if test "x$ac_cv_lib_m_sin" = xyes; then :
Chris@19 15287 cat >>confdefs.h <<_ACEOF
Chris@19 15288 #define HAVE_LIBM 1
Chris@19 15289 _ACEOF
Chris@19 15290
Chris@19 15291 LIBS="-lm $LIBS"
Chris@19 15292
Chris@19 15293 fi
Chris@19 15294
Chris@19 15295
Chris@19 15296 if test $PRECISION = q; then
Chris@19 15297
Chris@19 15298
Chris@19 15299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gcc 4.6.0 or later" >&5
Chris@19 15300 $as_echo_n "checking whether we are using gcc 4.6.0 or later... " >&6; }
Chris@19 15301 if ${ax_cv_gcc_4_6_0+:} false; then :
Chris@19 15302 $as_echo_n "(cached) " >&6
Chris@19 15303 else
Chris@19 15304
Chris@19 15305 ax_cv_gcc_4_6_0=no
Chris@19 15306 if test "$GCC" = "yes"; then
Chris@19 15307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 15308 /* end confdefs.h. */
Chris@19 15309
Chris@19 15310 #ifdef __GNUC__
Chris@19 15311 # if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ > 6) \
Chris@19 15312 || (__GNUC__ == 4 && __GNUC_MINOR__ == 6 && __GNUC_PATCHLEVEL__ >= 0)
Chris@19 15313 yes;
Chris@19 15314 # endif
Chris@19 15315 #endif
Chris@19 15316
Chris@19 15317 _ACEOF
Chris@19 15318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@19 15319 $EGREP "yes" >/dev/null 2>&1; then :
Chris@19 15320 ax_cv_gcc_4_6_0=yes
Chris@19 15321 fi
Chris@19 15322 rm -f conftest*
Chris@19 15323
Chris@19 15324 fi
Chris@19 15325
Chris@19 15326 fi
Chris@19 15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_4_6_0" >&5
Chris@19 15328 $as_echo "$ax_cv_gcc_4_6_0" >&6; }
Chris@19 15329 if test "$ax_cv_gcc_4_6_0" = yes; then
Chris@19 15330 :
Chris@19 15331 else
Chris@19 15332 as_fn_error $? "gcc 4.6 or later required for quad precision support" "$LINENO" 5
Chris@19 15333 fi
Chris@19 15334
Chris@19 15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinq in -lquadmath" >&5
Chris@19 15336 $as_echo_n "checking for sinq in -lquadmath... " >&6; }
Chris@19 15337 if ${ac_cv_lib_quadmath_sinq+:} false; then :
Chris@19 15338 $as_echo_n "(cached) " >&6
Chris@19 15339 else
Chris@19 15340 ac_check_lib_save_LIBS=$LIBS
Chris@19 15341 LIBS="-lquadmath $LIBS"
Chris@19 15342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 15343 /* end confdefs.h. */
Chris@19 15344
Chris@19 15345 /* Override any GCC internal prototype to avoid an error.
Chris@19 15346 Use char because int might match the return type of a GCC
Chris@19 15347 builtin and then its argument prototype would still apply. */
Chris@19 15348 #ifdef __cplusplus
Chris@19 15349 extern "C"
Chris@19 15350 #endif
Chris@19 15351 char sinq ();
Chris@19 15352 int
Chris@19 15353 main ()
Chris@19 15354 {
Chris@19 15355 return sinq ();
Chris@19 15356 ;
Chris@19 15357 return 0;
Chris@19 15358 }
Chris@19 15359 _ACEOF
Chris@19 15360 if ac_fn_c_try_link "$LINENO"; then :
Chris@19 15361 ac_cv_lib_quadmath_sinq=yes
Chris@19 15362 else
Chris@19 15363 ac_cv_lib_quadmath_sinq=no
Chris@19 15364 fi
Chris@19 15365 rm -f core conftest.err conftest.$ac_objext \
Chris@19 15366 conftest$ac_exeext conftest.$ac_ext
Chris@19 15367 LIBS=$ac_check_lib_save_LIBS
Chris@19 15368 fi
Chris@19 15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quadmath_sinq" >&5
Chris@19 15370 $as_echo "$ac_cv_lib_quadmath_sinq" >&6; }
Chris@19 15371 if test "x$ac_cv_lib_quadmath_sinq" = xyes; then :
Chris@19 15372 cat >>confdefs.h <<_ACEOF
Chris@19 15373 #define HAVE_LIBQUADMATH 1
Chris@19 15374 _ACEOF
Chris@19 15375
Chris@19 15376 LIBS="-lquadmath $LIBS"
Chris@19 15377
Chris@19 15378 else
Chris@19 15379 as_fn_error $? "quad precision requires libquadmath for quad-precision trigonometric routines" "$LINENO" 5
Chris@19 15380 fi
Chris@19 15381
Chris@19 15382 LIBQUADMATH=-lquadmath
Chris@19 15383 fi
Chris@19 15384
Chris@19 15385
Chris@19 15386 for ac_func in BSDgettimeofday gettimeofday gethrtime read_real_time time_base_to_time drand48 sqrt memset posix_memalign memalign _mm_malloc _mm_free clock_gettime mach_absolute_time sysctl abort sinl cosl snprintf
Chris@19 15387 do :
Chris@19 15388 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Chris@19 15389 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Chris@19 15390 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Chris@19 15391 cat >>confdefs.h <<_ACEOF
Chris@19 15392 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Chris@19 15393 _ACEOF
Chris@19 15394
Chris@19 15395 fi
Chris@19 15396 done
Chris@19 15397
Chris@19 15398 ac_fn_c_check_decl "$LINENO" "sinl" "ac_cv_have_decl_sinl" "#include <math.h>
Chris@19 15399 "
Chris@19 15400 if test "x$ac_cv_have_decl_sinl" = xyes; then :
Chris@19 15401 ac_have_decl=1
Chris@19 15402 else
Chris@19 15403 ac_have_decl=0
Chris@19 15404 fi
Chris@19 15405
Chris@19 15406 cat >>confdefs.h <<_ACEOF
Chris@19 15407 #define HAVE_DECL_SINL $ac_have_decl
Chris@19 15408 _ACEOF
Chris@19 15409 ac_fn_c_check_decl "$LINENO" "cosl" "ac_cv_have_decl_cosl" "#include <math.h>
Chris@19 15410 "
Chris@19 15411 if test "x$ac_cv_have_decl_cosl" = xyes; then :
Chris@19 15412 ac_have_decl=1
Chris@19 15413 else
Chris@19 15414 ac_have_decl=0
Chris@19 15415 fi
Chris@19 15416
Chris@19 15417 cat >>confdefs.h <<_ACEOF
Chris@19 15418 #define HAVE_DECL_COSL $ac_have_decl
Chris@19 15419 _ACEOF
Chris@19 15420 ac_fn_c_check_decl "$LINENO" "sinq" "ac_cv_have_decl_sinq" "#include <math.h>
Chris@19 15421 "
Chris@19 15422 if test "x$ac_cv_have_decl_sinq" = xyes; then :
Chris@19 15423 ac_have_decl=1
Chris@19 15424 else
Chris@19 15425 ac_have_decl=0
Chris@19 15426 fi
Chris@19 15427
Chris@19 15428 cat >>confdefs.h <<_ACEOF
Chris@19 15429 #define HAVE_DECL_SINQ $ac_have_decl
Chris@19 15430 _ACEOF
Chris@19 15431 ac_fn_c_check_decl "$LINENO" "cosq" "ac_cv_have_decl_cosq" "#include <math.h>
Chris@19 15432 "
Chris@19 15433 if test "x$ac_cv_have_decl_cosq" = xyes; then :
Chris@19 15434 ac_have_decl=1
Chris@19 15435 else
Chris@19 15436 ac_have_decl=0
Chris@19 15437 fi
Chris@19 15438
Chris@19 15439 cat >>confdefs.h <<_ACEOF
Chris@19 15440 #define HAVE_DECL_COSQ $ac_have_decl
Chris@19 15441 _ACEOF
Chris@19 15442
Chris@19 15443 ac_fn_c_check_decl "$LINENO" "memalign" "ac_cv_have_decl_memalign" "
Chris@19 15444 #ifdef HAVE_MALLOC_H
Chris@19 15445 #include <malloc.h>
Chris@19 15446 #endif
Chris@19 15447 "
Chris@19 15448 if test "x$ac_cv_have_decl_memalign" = xyes; then :
Chris@19 15449 ac_have_decl=1
Chris@19 15450 else
Chris@19 15451 ac_have_decl=0
Chris@19 15452 fi
Chris@19 15453
Chris@19 15454 cat >>confdefs.h <<_ACEOF
Chris@19 15455 #define HAVE_DECL_MEMALIGN $ac_have_decl
Chris@19 15456 _ACEOF
Chris@19 15457
Chris@19 15458 ac_fn_c_check_decl "$LINENO" "drand48" "ac_cv_have_decl_drand48" "$ac_includes_default"
Chris@19 15459 if test "x$ac_cv_have_decl_drand48" = xyes; then :
Chris@19 15460 ac_have_decl=1
Chris@19 15461 else
Chris@19 15462 ac_have_decl=0
Chris@19 15463 fi
Chris@19 15464
Chris@19 15465 cat >>confdefs.h <<_ACEOF
Chris@19 15466 #define HAVE_DECL_DRAND48 $ac_have_decl
Chris@19 15467 _ACEOF
Chris@19 15468 ac_fn_c_check_decl "$LINENO" "srand48" "ac_cv_have_decl_srand48" "$ac_includes_default"
Chris@19 15469 if test "x$ac_cv_have_decl_srand48" = xyes; then :
Chris@19 15470 ac_have_decl=1
Chris@19 15471 else
Chris@19 15472 ac_have_decl=0
Chris@19 15473 fi
Chris@19 15474
Chris@19 15475 cat >>confdefs.h <<_ACEOF
Chris@19 15476 #define HAVE_DECL_SRAND48 $ac_have_decl
Chris@19 15477 _ACEOF
Chris@19 15478 ac_fn_c_check_decl "$LINENO" "posix_memalign" "ac_cv_have_decl_posix_memalign" "$ac_includes_default"
Chris@19 15479 if test "x$ac_cv_have_decl_posix_memalign" = xyes; then :
Chris@19 15480 ac_have_decl=1
Chris@19 15481 else
Chris@19 15482 ac_have_decl=0
Chris@19 15483 fi
Chris@19 15484
Chris@19 15485 cat >>confdefs.h <<_ACEOF
Chris@19 15486 #define HAVE_DECL_POSIX_MEMALIGN $ac_have_decl
Chris@19 15487 _ACEOF
Chris@19 15488
Chris@19 15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _rtc intrinsic" >&5
Chris@19 15490 $as_echo_n "checking for _rtc intrinsic... " >&6; }
Chris@19 15491 rtc_ok=yes
Chris@19 15492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 15493 /* end confdefs.h. */
Chris@19 15494 #ifdef HAVE_INTRINSICS_H
Chris@19 15495 #include <intrinsics.h>
Chris@19 15496 #endif
Chris@19 15497 int
Chris@19 15498 main ()
Chris@19 15499 {
Chris@19 15500 _rtc()
Chris@19 15501 ;
Chris@19 15502 return 0;
Chris@19 15503 }
Chris@19 15504 _ACEOF
Chris@19 15505 if ac_fn_c_try_link "$LINENO"; then :
Chris@19 15506
Chris@19 15507 $as_echo "#define HAVE__RTC 1" >>confdefs.h
Chris@19 15508
Chris@19 15509 else
Chris@19 15510 rtc_ok=no
Chris@19 15511 fi
Chris@19 15512 rm -f core conftest.err conftest.$ac_objext \
Chris@19 15513 conftest$ac_exeext conftest.$ac_ext
Chris@19 15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rtc_ok" >&5
Chris@19 15515 $as_echo "$rtc_ok" >&6; }
Chris@19 15516
Chris@19 15517 if test "$PRECISION" = "l"; then
Chris@19 15518 for ac_func in cosl sinl tanl
Chris@19 15519 do :
Chris@19 15520 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Chris@19 15521 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Chris@19 15522 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Chris@19 15523 cat >>confdefs.h <<_ACEOF
Chris@19 15524 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Chris@19 15525 _ACEOF
Chris@19 15526
Chris@19 15527 else
Chris@19 15528 as_fn_error $? "long-double precision requires long-double trigonometric routines" "$LINENO" 5
Chris@19 15529 fi
Chris@19 15530 done
Chris@19 15531
Chris@19 15532 fi
Chris@19 15533
Chris@19 15534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
Chris@19 15535 $as_echo_n "checking for isnan... " >&6; }
Chris@19 15536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 15537 /* end confdefs.h. */
Chris@19 15538 #include <math.h>
Chris@19 15539
Chris@19 15540 int
Chris@19 15541 main ()
Chris@19 15542 {
Chris@19 15543 if (!isnan(3.14159)) isnan(2.7183);
Chris@19 15544 ;
Chris@19 15545 return 0;
Chris@19 15546 }
Chris@19 15547 _ACEOF
Chris@19 15548 if ac_fn_c_try_link "$LINENO"; then :
Chris@19 15549 ok=yes
Chris@19 15550 else
Chris@19 15551 ok=no
Chris@19 15552 fi
Chris@19 15553 rm -f core conftest.err conftest.$ac_objext \
Chris@19 15554 conftest$ac_exeext conftest.$ac_ext
Chris@19 15555 if test "$ok" = "yes"; then
Chris@19 15556
Chris@19 15557 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
Chris@19 15558
Chris@19 15559 fi
Chris@19 15560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ok}" >&5
Chris@19 15561 $as_echo "${ok}" >&6; }
Chris@19 15562
Chris@19 15563
Chris@19 15564
Chris@19 15565 ax_gcc_aligns_stack=no
Chris@19 15566 if test "$GCC" = "yes"; then
Chris@19 15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpreferred-stack-boundary=4" >&5
Chris@19 15568 $as_echo_n "checking whether C compiler accepts -mpreferred-stack-boundary=4... " >&6; }
Chris@19 15569 if ${ax_cv_c_flags__mpreferred_stack_boundary_4+:} false; then :
Chris@19 15570 $as_echo_n "(cached) " >&6
Chris@19 15571 else
Chris@19 15572
Chris@19 15573 ax_save_FLAGS=$CFLAGS
Chris@19 15574 CFLAGS="-mpreferred-stack-boundary=4"
Chris@19 15575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 15576 /* end confdefs.h. */
Chris@19 15577
Chris@19 15578 int
Chris@19 15579 main ()
Chris@19 15580 {
Chris@19 15581
Chris@19 15582 ;
Chris@19 15583 return 0;
Chris@19 15584 }
Chris@19 15585 _ACEOF
Chris@19 15586 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 15587 ax_cv_c_flags__mpreferred_stack_boundary_4=yes
Chris@19 15588 else
Chris@19 15589 ax_cv_c_flags__mpreferred_stack_boundary_4=no
Chris@19 15590 fi
Chris@19 15591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 15592 CFLAGS=$ax_save_FLAGS
Chris@19 15593 fi
Chris@19 15594
Chris@19 15595 eval ax_check_compiler_flags=$ax_cv_c_flags__mpreferred_stack_boundary_4
Chris@19 15596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@19 15597 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@19 15598 if test "x$ax_check_compiler_flags" = xyes; then
Chris@19 15599
Chris@19 15600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the stack is at least 8-byte aligned by gcc" >&5
Chris@19 15601 $as_echo_n "checking whether the stack is at least 8-byte aligned by gcc... " >&6; }
Chris@19 15602 save_CFLAGS="$CFLAGS"
Chris@19 15603 CFLAGS="-O"
Chris@19 15604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
Chris@19 15605 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
Chris@19 15606 if ${ax_cv_c_flags__malign_double+:} false; then :
Chris@19 15607 $as_echo_n "(cached) " >&6
Chris@19 15608 else
Chris@19 15609
Chris@19 15610 ax_save_FLAGS=$CFLAGS
Chris@19 15611 CFLAGS="-malign-double"
Chris@19 15612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 15613 /* end confdefs.h. */
Chris@19 15614
Chris@19 15615 int
Chris@19 15616 main ()
Chris@19 15617 {
Chris@19 15618
Chris@19 15619 ;
Chris@19 15620 return 0;
Chris@19 15621 }
Chris@19 15622 _ACEOF
Chris@19 15623 if ac_fn_c_try_compile "$LINENO"; then :
Chris@19 15624 ax_cv_c_flags__malign_double=yes
Chris@19 15625 else
Chris@19 15626 ax_cv_c_flags__malign_double=no
Chris@19 15627 fi
Chris@19 15628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 15629 CFLAGS=$ax_save_FLAGS
Chris@19 15630 fi
Chris@19 15631
Chris@19 15632 eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double
Chris@19 15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@19 15634 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@19 15635 if test "x$ax_check_compiler_flags" = xyes; then
Chris@19 15636 CFLAGS="$CFLAGS -malign-double"
Chris@19 15637 else
Chris@19 15638 :
Chris@19 15639 fi
Chris@19 15640
Chris@19 15641 if test "$cross_compiling" = yes; then :
Chris@19 15642
Chris@19 15643
Chris@19 15644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gcc 3.0.0 or later" >&5
Chris@19 15645 $as_echo_n "checking whether we are using gcc 3.0.0 or later... " >&6; }
Chris@19 15646 if ${ax_cv_gcc_3_0_0+:} false; then :
Chris@19 15647 $as_echo_n "(cached) " >&6
Chris@19 15648 else
Chris@19 15649
Chris@19 15650 ax_cv_gcc_3_0_0=no
Chris@19 15651 if test "$GCC" = "yes"; then
Chris@19 15652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 15653 /* end confdefs.h. */
Chris@19 15654
Chris@19 15655 #ifdef __GNUC__
Chris@19 15656 # if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ > 0) \
Chris@19 15657 || (__GNUC__ == 3 && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ >= 0)
Chris@19 15658 yes;
Chris@19 15659 # endif
Chris@19 15660 #endif
Chris@19 15661
Chris@19 15662 _ACEOF
Chris@19 15663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@19 15664 $EGREP "yes" >/dev/null 2>&1; then :
Chris@19 15665 ax_cv_gcc_3_0_0=yes
Chris@19 15666 fi
Chris@19 15667 rm -f conftest*
Chris@19 15668
Chris@19 15669 fi
Chris@19 15670
Chris@19 15671 fi
Chris@19 15672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_3_0_0" >&5
Chris@19 15673 $as_echo "$ax_cv_gcc_3_0_0" >&6; }
Chris@19 15674 if test "$ax_cv_gcc_3_0_0" = yes; then
Chris@19 15675 ax_gcc_stack_align_bug=no
Chris@19 15676 else
Chris@19 15677 ax_gcc_stack_align_bug=yes
Chris@19 15678 fi
Chris@19 15679
Chris@19 15680 else
Chris@19 15681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 15682 /* end confdefs.h. */
Chris@19 15683 #include <stdlib.h>
Chris@19 15684 # include <stdio.h>
Chris@19 15685 struct yuck { int blechh; };
Chris@19 15686 int one(void) { return 1; }
Chris@19 15687 struct yuck ick(void) { struct yuck y; y.blechh = 3; return y; }
Chris@19 15688 # define CHK_ALIGN(x) if ((((long) &(x)) & 0x7)) { fprintf(stderr, "bad alignment of " #x "\n"); exit(1); }
Chris@19 15689 void blah(int foo) { double foobar; CHK_ALIGN(foobar); }
Chris@19 15690 int main2(void) {double ok1; struct yuck y; double ok2; CHK_ALIGN(ok1);
Chris@19 15691 CHK_ALIGN(ok2); y = ick(); blah(one()); return 0;}
Chris@19 15692 int main(void) { if ((((long) (__builtin_alloca(0))) & 0x7)) __builtin_alloca(4); return main2(); }
Chris@19 15693
Chris@19 15694 _ACEOF
Chris@19 15695 if ac_fn_c_try_run "$LINENO"; then :
Chris@19 15696 ax_gcc_aligns_stack=yes; ax_gcc_stack_align_bug=no
Chris@19 15697 else
Chris@19 15698 ax_gcc_stack_align_bug=yes
Chris@19 15699 fi
Chris@19 15700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@19 15701 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@19 15702 fi
Chris@19 15703
Chris@19 15704 CFLAGS="$save_CFLAGS"
Chris@19 15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_gcc_aligns_stack" >&5
Chris@19 15706 $as_echo "$ax_gcc_aligns_stack" >&6; }
Chris@19 15707
Chris@19 15708 else
Chris@19 15709 :
Chris@19 15710 fi
Chris@19 15711
Chris@19 15712 fi
Chris@19 15713 if test "$ax_gcc_aligns_stack" = yes; then
Chris@19 15714 :
Chris@19 15715 else
Chris@19 15716 :
Chris@19 15717 fi
Chris@19 15718
Chris@19 15719
Chris@19 15720 if test "${enable_debug}" = "yes"; then
Chris@19 15721 CFLAGS="-g"
Chris@19 15722 fi
Chris@19 15723
Chris@19 15724 if test "$enable_debug" = yes || test "$USE_MAINTAINER_MODE" = yes; then
Chris@19 15725 if test "$ac_test_CFLAGS" != "set"; then
Chris@19 15726 if test $ac_cv_c_compiler_gnu = yes; then
Chris@19 15727 CFLAGS="$CFLAGS -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic -Wno-long-long -Wshadow -Wbad-function-cast -Wwrite-strings -Wstrict-prototypes -Wredundant-decls -Wnested-externs" # -Wundef -Wconversion -Wmissing-prototypes -Wmissing-declarations
Chris@19 15728 fi
Chris@19 15729 fi
Chris@19 15730 fi
Chris@19 15731
Chris@19 15732
Chris@19 15733 # Check whether --enable-fortran was given.
Chris@19 15734 if test "${enable_fortran+set}" = set; then :
Chris@19 15735 enableval=$enable_fortran; enable_fortran=$enableval
Chris@19 15736 else
Chris@19 15737 enable_fortran=yes
Chris@19 15738 fi
Chris@19 15739
Chris@19 15740
Chris@19 15741 if test "$enable_fortran" = "yes"; then
Chris@19 15742 ac_ext=f
Chris@19 15743 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@19 15744 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 15745 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@19 15746 if test -n "$ac_tool_prefix"; then
Chris@19 15747 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
Chris@19 15748 do
Chris@19 15749 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@19 15750 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@19 15751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 15752 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 15753 if ${ac_cv_prog_F77+:} false; then :
Chris@19 15754 $as_echo_n "(cached) " >&6
Chris@19 15755 else
Chris@19 15756 if test -n "$F77"; then
Chris@19 15757 ac_cv_prog_F77="$F77" # Let the user override the test.
Chris@19 15758 else
Chris@19 15759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 15760 for as_dir in $PATH
Chris@19 15761 do
Chris@19 15762 IFS=$as_save_IFS
Chris@19 15763 test -z "$as_dir" && as_dir=.
Chris@19 15764 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 15765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 15766 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
Chris@19 15767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 15768 break 2
Chris@19 15769 fi
Chris@19 15770 done
Chris@19 15771 done
Chris@19 15772 IFS=$as_save_IFS
Chris@19 15773
Chris@19 15774 fi
Chris@19 15775 fi
Chris@19 15776 F77=$ac_cv_prog_F77
Chris@19 15777 if test -n "$F77"; then
Chris@19 15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
Chris@19 15779 $as_echo "$F77" >&6; }
Chris@19 15780 else
Chris@19 15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 15782 $as_echo "no" >&6; }
Chris@19 15783 fi
Chris@19 15784
Chris@19 15785
Chris@19 15786 test -n "$F77" && break
Chris@19 15787 done
Chris@19 15788 fi
Chris@19 15789 if test -z "$F77"; then
Chris@19 15790 ac_ct_F77=$F77
Chris@19 15791 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
Chris@19 15792 do
Chris@19 15793 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@19 15794 set dummy $ac_prog; ac_word=$2
Chris@19 15795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 15796 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 15797 if ${ac_cv_prog_ac_ct_F77+:} false; then :
Chris@19 15798 $as_echo_n "(cached) " >&6
Chris@19 15799 else
Chris@19 15800 if test -n "$ac_ct_F77"; then
Chris@19 15801 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
Chris@19 15802 else
Chris@19 15803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 15804 for as_dir in $PATH
Chris@19 15805 do
Chris@19 15806 IFS=$as_save_IFS
Chris@19 15807 test -z "$as_dir" && as_dir=.
Chris@19 15808 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 15809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 15810 ac_cv_prog_ac_ct_F77="$ac_prog"
Chris@19 15811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 15812 break 2
Chris@19 15813 fi
Chris@19 15814 done
Chris@19 15815 done
Chris@19 15816 IFS=$as_save_IFS
Chris@19 15817
Chris@19 15818 fi
Chris@19 15819 fi
Chris@19 15820 ac_ct_F77=$ac_cv_prog_ac_ct_F77
Chris@19 15821 if test -n "$ac_ct_F77"; then
Chris@19 15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
Chris@19 15823 $as_echo "$ac_ct_F77" >&6; }
Chris@19 15824 else
Chris@19 15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 15826 $as_echo "no" >&6; }
Chris@19 15827 fi
Chris@19 15828
Chris@19 15829
Chris@19 15830 test -n "$ac_ct_F77" && break
Chris@19 15831 done
Chris@19 15832
Chris@19 15833 if test "x$ac_ct_F77" = x; then
Chris@19 15834 F77=""
Chris@19 15835 else
Chris@19 15836 case $cross_compiling:$ac_tool_warned in
Chris@19 15837 yes:)
Chris@19 15838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@19 15839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@19 15840 ac_tool_warned=yes ;;
Chris@19 15841 esac
Chris@19 15842 F77=$ac_ct_F77
Chris@19 15843 fi
Chris@19 15844 fi
Chris@19 15845
Chris@19 15846
Chris@19 15847 # Provide some information about the compiler.
Chris@19 15848 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
Chris@19 15849 set X $ac_compile
Chris@19 15850 ac_compiler=$2
Chris@19 15851 for ac_option in --version -v -V -qversion; do
Chris@19 15852 { { ac_try="$ac_compiler $ac_option >&5"
Chris@19 15853 case "(($ac_try" in
Chris@19 15854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@19 15855 *) ac_try_echo=$ac_try;;
Chris@19 15856 esac
Chris@19 15857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@19 15858 $as_echo "$ac_try_echo"; } >&5
Chris@19 15859 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Chris@19 15860 ac_status=$?
Chris@19 15861 if test -s conftest.err; then
Chris@19 15862 sed '10a\
Chris@19 15863 ... rest of stderr output deleted ...
Chris@19 15864 10q' conftest.err >conftest.er1
Chris@19 15865 cat conftest.er1 >&5
Chris@19 15866 fi
Chris@19 15867 rm -f conftest.er1 conftest.err
Chris@19 15868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@19 15869 test $ac_status = 0; }
Chris@19 15870 done
Chris@19 15871 rm -f a.out
Chris@19 15872
Chris@19 15873 # If we don't use `.F' as extension, the preprocessor is not run on the
Chris@19 15874 # input file. (Note that this only needs to work for GNU compilers.)
Chris@19 15875 ac_save_ext=$ac_ext
Chris@19 15876 ac_ext=F
Chris@19 15877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
Chris@19 15878 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
Chris@19 15879 if ${ac_cv_f77_compiler_gnu+:} false; then :
Chris@19 15880 $as_echo_n "(cached) " >&6
Chris@19 15881 else
Chris@19 15882 cat > conftest.$ac_ext <<_ACEOF
Chris@19 15883 program main
Chris@19 15884 #ifndef __GNUC__
Chris@19 15885 choke me
Chris@19 15886 #endif
Chris@19 15887
Chris@19 15888 end
Chris@19 15889 _ACEOF
Chris@19 15890 if ac_fn_f77_try_compile "$LINENO"; then :
Chris@19 15891 ac_compiler_gnu=yes
Chris@19 15892 else
Chris@19 15893 ac_compiler_gnu=no
Chris@19 15894 fi
Chris@19 15895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 15896 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
Chris@19 15897
Chris@19 15898 fi
Chris@19 15899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
Chris@19 15900 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
Chris@19 15901 ac_ext=$ac_save_ext
Chris@19 15902 ac_test_FFLAGS=${FFLAGS+set}
Chris@19 15903 ac_save_FFLAGS=$FFLAGS
Chris@19 15904 FFLAGS=
Chris@19 15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
Chris@19 15906 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
Chris@19 15907 if ${ac_cv_prog_f77_g+:} false; then :
Chris@19 15908 $as_echo_n "(cached) " >&6
Chris@19 15909 else
Chris@19 15910 FFLAGS=-g
Chris@19 15911 cat > conftest.$ac_ext <<_ACEOF
Chris@19 15912 program main
Chris@19 15913
Chris@19 15914 end
Chris@19 15915 _ACEOF
Chris@19 15916 if ac_fn_f77_try_compile "$LINENO"; then :
Chris@19 15917 ac_cv_prog_f77_g=yes
Chris@19 15918 else
Chris@19 15919 ac_cv_prog_f77_g=no
Chris@19 15920 fi
Chris@19 15921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 15922
Chris@19 15923 fi
Chris@19 15924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
Chris@19 15925 $as_echo "$ac_cv_prog_f77_g" >&6; }
Chris@19 15926 if test "$ac_test_FFLAGS" = set; then
Chris@19 15927 FFLAGS=$ac_save_FFLAGS
Chris@19 15928 elif test $ac_cv_prog_f77_g = yes; then
Chris@19 15929 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
Chris@19 15930 FFLAGS="-g -O2"
Chris@19 15931 else
Chris@19 15932 FFLAGS="-g"
Chris@19 15933 fi
Chris@19 15934 else
Chris@19 15935 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
Chris@19 15936 FFLAGS="-O2"
Chris@19 15937 else
Chris@19 15938 FFLAGS=
Chris@19 15939 fi
Chris@19 15940 fi
Chris@19 15941
Chris@19 15942 if test $ac_compiler_gnu = yes; then
Chris@19 15943 G77=yes
Chris@19 15944 else
Chris@19 15945 G77=
Chris@19 15946 fi
Chris@19 15947 ac_ext=c
Chris@19 15948 ac_cpp='$CPP $CPPFLAGS'
Chris@19 15949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@19 15950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 15951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@19 15952
Chris@19 15953 ac_ext=f
Chris@19 15954 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@19 15955 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 15956 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@19 15957
Chris@19 15958 if test -z "$F77" || test "X$F77" = "Xno"; then
Chris@19 15959 _lt_disable_F77=yes
Chris@19 15960 fi
Chris@19 15961
Chris@19 15962 archive_cmds_need_lc_F77=no
Chris@19 15963 allow_undefined_flag_F77=
Chris@19 15964 always_export_symbols_F77=no
Chris@19 15965 archive_expsym_cmds_F77=
Chris@19 15966 export_dynamic_flag_spec_F77=
Chris@19 15967 hardcode_direct_F77=no
Chris@19 15968 hardcode_direct_absolute_F77=no
Chris@19 15969 hardcode_libdir_flag_spec_F77=
Chris@19 15970 hardcode_libdir_separator_F77=
Chris@19 15971 hardcode_minus_L_F77=no
Chris@19 15972 hardcode_automatic_F77=no
Chris@19 15973 inherit_rpath_F77=no
Chris@19 15974 module_cmds_F77=
Chris@19 15975 module_expsym_cmds_F77=
Chris@19 15976 link_all_deplibs_F77=unknown
Chris@19 15977 old_archive_cmds_F77=$old_archive_cmds
Chris@19 15978 reload_flag_F77=$reload_flag
Chris@19 15979 reload_cmds_F77=$reload_cmds
Chris@19 15980 no_undefined_flag_F77=
Chris@19 15981 whole_archive_flag_spec_F77=
Chris@19 15982 enable_shared_with_static_runtimes_F77=no
Chris@19 15983
Chris@19 15984 # Source file extension for f77 test sources.
Chris@19 15985 ac_ext=f
Chris@19 15986
Chris@19 15987 # Object file extension for compiled f77 test sources.
Chris@19 15988 objext=o
Chris@19 15989 objext_F77=$objext
Chris@19 15990
Chris@19 15991 # No sense in running all these tests if we already determined that
Chris@19 15992 # the F77 compiler isn't working. Some variables (like enable_shared)
Chris@19 15993 # are currently assumed to apply to all compilers on this platform,
Chris@19 15994 # and will be corrupted by setting them based on a non-working compiler.
Chris@19 15995 if test "$_lt_disable_F77" != yes; then
Chris@19 15996 # Code to be used in simple compile tests
Chris@19 15997 lt_simple_compile_test_code="\
Chris@19 15998 subroutine t
Chris@19 15999 return
Chris@19 16000 end
Chris@19 16001 "
Chris@19 16002
Chris@19 16003 # Code to be used in simple link tests
Chris@19 16004 lt_simple_link_test_code="\
Chris@19 16005 program t
Chris@19 16006 end
Chris@19 16007 "
Chris@19 16008
Chris@19 16009 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
Chris@19 16010
Chris@19 16011
Chris@19 16012
Chris@19 16013
Chris@19 16014
Chris@19 16015
Chris@19 16016 # If no C compiler was specified, use CC.
Chris@19 16017 LTCC=${LTCC-"$CC"}
Chris@19 16018
Chris@19 16019 # If no C compiler flags were specified, use CFLAGS.
Chris@19 16020 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Chris@19 16021
Chris@19 16022 # Allow CC to be a program name with arguments.
Chris@19 16023 compiler=$CC
Chris@19 16024
Chris@19 16025
Chris@19 16026 # save warnings/boilerplate of simple test code
Chris@19 16027 ac_outfile=conftest.$ac_objext
Chris@19 16028 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Chris@19 16029 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@19 16030 _lt_compiler_boilerplate=`cat conftest.err`
Chris@19 16031 $RM conftest*
Chris@19 16032
Chris@19 16033 ac_outfile=conftest.$ac_objext
Chris@19 16034 echo "$lt_simple_link_test_code" >conftest.$ac_ext
Chris@19 16035 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@19 16036 _lt_linker_boilerplate=`cat conftest.err`
Chris@19 16037 $RM -r conftest*
Chris@19 16038
Chris@19 16039
Chris@19 16040 # Allow CC to be a program name with arguments.
Chris@19 16041 lt_save_CC="$CC"
Chris@19 16042 lt_save_GCC=$GCC
Chris@19 16043 lt_save_CFLAGS=$CFLAGS
Chris@19 16044 CC=${F77-"f77"}
Chris@19 16045 CFLAGS=$FFLAGS
Chris@19 16046 compiler=$CC
Chris@19 16047 compiler_F77=$CC
Chris@19 16048 for cc_temp in $compiler""; do
Chris@19 16049 case $cc_temp in
Chris@19 16050 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
Chris@19 16051 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
Chris@19 16052 \-*) ;;
Chris@19 16053 *) break;;
Chris@19 16054 esac
Chris@19 16055 done
Chris@19 16056 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Chris@19 16057
Chris@19 16058 GCC=$G77
Chris@19 16059 if test -n "$compiler"; then
Chris@19 16060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
Chris@19 16061 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
Chris@19 16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
Chris@19 16063 $as_echo "$can_build_shared" >&6; }
Chris@19 16064
Chris@19 16065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
Chris@19 16066 $as_echo_n "checking whether to build shared libraries... " >&6; }
Chris@19 16067 test "$can_build_shared" = "no" && enable_shared=no
Chris@19 16068
Chris@19 16069 # On AIX, shared libraries and static libraries use the same namespace, and
Chris@19 16070 # are all built from PIC.
Chris@19 16071 case $host_os in
Chris@19 16072 aix3*)
Chris@19 16073 test "$enable_shared" = yes && enable_static=no
Chris@19 16074 if test -n "$RANLIB"; then
Chris@19 16075 archive_cmds="$archive_cmds~\$RANLIB \$lib"
Chris@19 16076 postinstall_cmds='$RANLIB $lib'
Chris@19 16077 fi
Chris@19 16078 ;;
Chris@19 16079 aix[4-9]*)
Chris@19 16080 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
Chris@19 16081 test "$enable_shared" = yes && enable_static=no
Chris@19 16082 fi
Chris@19 16083 ;;
Chris@19 16084 esac
Chris@19 16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
Chris@19 16086 $as_echo "$enable_shared" >&6; }
Chris@19 16087
Chris@19 16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
Chris@19 16089 $as_echo_n "checking whether to build static libraries... " >&6; }
Chris@19 16090 # Make sure either enable_shared or enable_static is yes.
Chris@19 16091 test "$enable_shared" = yes || enable_static=yes
Chris@19 16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
Chris@19 16093 $as_echo "$enable_static" >&6; }
Chris@19 16094
Chris@19 16095 GCC_F77="$G77"
Chris@19 16096 LD_F77="$LD"
Chris@19 16097
Chris@19 16098 ## CAVEAT EMPTOR:
Chris@19 16099 ## There is no encapsulation within the following macros, do not change
Chris@19 16100 ## the running order or otherwise move them around unless you know exactly
Chris@19 16101 ## what you are doing...
Chris@19 16102 lt_prog_compiler_wl_F77=
Chris@19 16103 lt_prog_compiler_pic_F77=
Chris@19 16104 lt_prog_compiler_static_F77=
Chris@19 16105
Chris@19 16106
Chris@19 16107 if test "$GCC" = yes; then
Chris@19 16108 lt_prog_compiler_wl_F77='-Wl,'
Chris@19 16109 lt_prog_compiler_static_F77='-static'
Chris@19 16110
Chris@19 16111 case $host_os in
Chris@19 16112 aix*)
Chris@19 16113 # All AIX code is PIC.
Chris@19 16114 if test "$host_cpu" = ia64; then
Chris@19 16115 # AIX 5 now supports IA64 processor
Chris@19 16116 lt_prog_compiler_static_F77='-Bstatic'
Chris@19 16117 fi
Chris@19 16118 ;;
Chris@19 16119
Chris@19 16120 amigaos*)
Chris@19 16121 case $host_cpu in
Chris@19 16122 powerpc)
Chris@19 16123 # see comment about AmigaOS4 .so support
Chris@19 16124 lt_prog_compiler_pic_F77='-fPIC'
Chris@19 16125 ;;
Chris@19 16126 m68k)
Chris@19 16127 # FIXME: we need at least 68020 code to build shared libraries, but
Chris@19 16128 # adding the `-m68020' flag to GCC prevents building anything better,
Chris@19 16129 # like `-m68040'.
Chris@19 16130 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
Chris@19 16131 ;;
Chris@19 16132 esac
Chris@19 16133 ;;
Chris@19 16134
Chris@19 16135 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Chris@19 16136 # PIC is the default for these OSes.
Chris@19 16137 ;;
Chris@19 16138
Chris@19 16139 mingw* | cygwin* | pw32* | os2* | cegcc*)
Chris@19 16140 # This hack is so that the source file can tell whether it is being
Chris@19 16141 # built for inclusion in a dll (and should export symbols for example).
Chris@19 16142 # Although the cygwin gcc ignores -fPIC, still need this for old-style
Chris@19 16143 # (--disable-auto-import) libraries
Chris@19 16144 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
Chris@19 16145 ;;
Chris@19 16146
Chris@19 16147 darwin* | rhapsody*)
Chris@19 16148 # PIC is the default on this platform
Chris@19 16149 # Common symbols not allowed in MH_DYLIB files
Chris@19 16150 lt_prog_compiler_pic_F77='-fno-common'
Chris@19 16151 ;;
Chris@19 16152
Chris@19 16153 haiku*)
Chris@19 16154 # PIC is the default for Haiku.
Chris@19 16155 # The "-static" flag exists, but is broken.
Chris@19 16156 lt_prog_compiler_static_F77=
Chris@19 16157 ;;
Chris@19 16158
Chris@19 16159 hpux*)
Chris@19 16160 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
Chris@19 16161 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
Chris@19 16162 # sets the default TLS model and affects inlining.
Chris@19 16163 case $host_cpu in
Chris@19 16164 hppa*64*)
Chris@19 16165 # +Z the default
Chris@19 16166 ;;
Chris@19 16167 *)
Chris@19 16168 lt_prog_compiler_pic_F77='-fPIC'
Chris@19 16169 ;;
Chris@19 16170 esac
Chris@19 16171 ;;
Chris@19 16172
Chris@19 16173 interix[3-9]*)
Chris@19 16174 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
Chris@19 16175 # Instead, we relocate shared libraries at runtime.
Chris@19 16176 ;;
Chris@19 16177
Chris@19 16178 msdosdjgpp*)
Chris@19 16179 # Just because we use GCC doesn't mean we suddenly get shared libraries
Chris@19 16180 # on systems that don't support them.
Chris@19 16181 lt_prog_compiler_can_build_shared_F77=no
Chris@19 16182 enable_shared=no
Chris@19 16183 ;;
Chris@19 16184
Chris@19 16185 *nto* | *qnx*)
Chris@19 16186 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@19 16187 # it will coredump.
Chris@19 16188 lt_prog_compiler_pic_F77='-fPIC -shared'
Chris@19 16189 ;;
Chris@19 16190
Chris@19 16191 sysv4*MP*)
Chris@19 16192 if test -d /usr/nec; then
Chris@19 16193 lt_prog_compiler_pic_F77=-Kconform_pic
Chris@19 16194 fi
Chris@19 16195 ;;
Chris@19 16196
Chris@19 16197 *)
Chris@19 16198 lt_prog_compiler_pic_F77='-fPIC'
Chris@19 16199 ;;
Chris@19 16200 esac
Chris@19 16201
Chris@19 16202 case $cc_basename in
Chris@19 16203 nvcc*) # Cuda Compiler Driver 2.2
Chris@19 16204 lt_prog_compiler_wl_F77='-Xlinker '
Chris@19 16205 if test -n "$lt_prog_compiler_pic_F77"; then
Chris@19 16206 lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77"
Chris@19 16207 fi
Chris@19 16208 ;;
Chris@19 16209 esac
Chris@19 16210 else
Chris@19 16211 # PORTME Check for flag to pass linker flags through the system compiler.
Chris@19 16212 case $host_os in
Chris@19 16213 aix*)
Chris@19 16214 lt_prog_compiler_wl_F77='-Wl,'
Chris@19 16215 if test "$host_cpu" = ia64; then
Chris@19 16216 # AIX 5 now supports IA64 processor
Chris@19 16217 lt_prog_compiler_static_F77='-Bstatic'
Chris@19 16218 else
Chris@19 16219 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
Chris@19 16220 fi
Chris@19 16221 ;;
Chris@19 16222
Chris@19 16223 mingw* | cygwin* | pw32* | os2* | cegcc*)
Chris@19 16224 # This hack is so that the source file can tell whether it is being
Chris@19 16225 # built for inclusion in a dll (and should export symbols for example).
Chris@19 16226 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
Chris@19 16227 ;;
Chris@19 16228
Chris@19 16229 hpux9* | hpux10* | hpux11*)
Chris@19 16230 lt_prog_compiler_wl_F77='-Wl,'
Chris@19 16231 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
Chris@19 16232 # not for PA HP-UX.
Chris@19 16233 case $host_cpu in
Chris@19 16234 hppa*64*|ia64*)
Chris@19 16235 # +Z the default
Chris@19 16236 ;;
Chris@19 16237 *)
Chris@19 16238 lt_prog_compiler_pic_F77='+Z'
Chris@19 16239 ;;
Chris@19 16240 esac
Chris@19 16241 # Is there a better lt_prog_compiler_static that works with the bundled CC?
Chris@19 16242 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
Chris@19 16243 ;;
Chris@19 16244
Chris@19 16245 irix5* | irix6* | nonstopux*)
Chris@19 16246 lt_prog_compiler_wl_F77='-Wl,'
Chris@19 16247 # PIC (with -KPIC) is the default.
Chris@19 16248 lt_prog_compiler_static_F77='-non_shared'
Chris@19 16249 ;;
Chris@19 16250
Chris@19 16251 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@19 16252 case $cc_basename in
Chris@19 16253 # old Intel for x86_64 which still supported -KPIC.
Chris@19 16254 ecc*)
Chris@19 16255 lt_prog_compiler_wl_F77='-Wl,'
Chris@19 16256 lt_prog_compiler_pic_F77='-KPIC'
Chris@19 16257 lt_prog_compiler_static_F77='-static'
Chris@19 16258 ;;
Chris@19 16259 # icc used to be incompatible with GCC.
Chris@19 16260 # ICC 10 doesn't accept -KPIC any more.
Chris@19 16261 icc* | ifort*)
Chris@19 16262 lt_prog_compiler_wl_F77='-Wl,'
Chris@19 16263 lt_prog_compiler_pic_F77='-fPIC'
Chris@19 16264 lt_prog_compiler_static_F77='-static'
Chris@19 16265 ;;
Chris@19 16266 # Lahey Fortran 8.1.
Chris@19 16267 lf95*)
Chris@19 16268 lt_prog_compiler_wl_F77='-Wl,'
Chris@19 16269 lt_prog_compiler_pic_F77='--shared'
Chris@19 16270 lt_prog_compiler_static_F77='--static'
Chris@19 16271 ;;
Chris@19 16272 nagfor*)
Chris@19 16273 # NAG Fortran compiler
Chris@19 16274 lt_prog_compiler_wl_F77='-Wl,-Wl,,'
Chris@19 16275 lt_prog_compiler_pic_F77='-PIC'
Chris@19 16276 lt_prog_compiler_static_F77='-Bstatic'
Chris@19 16277 ;;
Chris@19 16278 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Chris@19 16279 # Portland Group compilers (*not* the Pentium gcc compiler,
Chris@19 16280 # which looks to be a dead project)
Chris@19 16281 lt_prog_compiler_wl_F77='-Wl,'
Chris@19 16282 lt_prog_compiler_pic_F77='-fpic'
Chris@19 16283 lt_prog_compiler_static_F77='-Bstatic'
Chris@19 16284 ;;
Chris@19 16285 ccc*)
Chris@19 16286 lt_prog_compiler_wl_F77='-Wl,'
Chris@19 16287 # All Alpha code is PIC.
Chris@19 16288 lt_prog_compiler_static_F77='-non_shared'
Chris@19 16289 ;;
Chris@19 16290 xl* | bgxl* | bgf* | mpixl*)
Chris@19 16291 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Chris@19 16292 lt_prog_compiler_wl_F77='-Wl,'
Chris@19 16293 lt_prog_compiler_pic_F77='-qpic'
Chris@19 16294 lt_prog_compiler_static_F77='-qstaticlink'
Chris@19 16295 ;;
Chris@19 16296 *)
Chris@19 16297 case `$CC -V 2>&1 | sed 5q` in
Chris@19 16298 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
Chris@19 16299 # Sun Fortran 8.3 passes all unrecognized flags to the linker
Chris@19 16300 lt_prog_compiler_pic_F77='-KPIC'
Chris@19 16301 lt_prog_compiler_static_F77='-Bstatic'
Chris@19 16302 lt_prog_compiler_wl_F77=''
Chris@19 16303 ;;
Chris@19 16304 *Sun\ F* | *Sun*Fortran*)
Chris@19 16305 lt_prog_compiler_pic_F77='-KPIC'
Chris@19 16306 lt_prog_compiler_static_F77='-Bstatic'
Chris@19 16307 lt_prog_compiler_wl_F77='-Qoption ld '
Chris@19 16308 ;;
Chris@19 16309 *Sun\ C*)
Chris@19 16310 # Sun C 5.9
Chris@19 16311 lt_prog_compiler_pic_F77='-KPIC'
Chris@19 16312 lt_prog_compiler_static_F77='-Bstatic'
Chris@19 16313 lt_prog_compiler_wl_F77='-Wl,'
Chris@19 16314 ;;
Chris@19 16315 *Intel*\ [CF]*Compiler*)
Chris@19 16316 lt_prog_compiler_wl_F77='-Wl,'
Chris@19 16317 lt_prog_compiler_pic_F77='-fPIC'
Chris@19 16318 lt_prog_compiler_static_F77='-static'
Chris@19 16319 ;;
Chris@19 16320 *Portland\ Group*)
Chris@19 16321 lt_prog_compiler_wl_F77='-Wl,'
Chris@19 16322 lt_prog_compiler_pic_F77='-fpic'
Chris@19 16323 lt_prog_compiler_static_F77='-Bstatic'
Chris@19 16324 ;;
Chris@19 16325 esac
Chris@19 16326 ;;
Chris@19 16327 esac
Chris@19 16328 ;;
Chris@19 16329
Chris@19 16330 newsos6)
Chris@19 16331 lt_prog_compiler_pic_F77='-KPIC'
Chris@19 16332 lt_prog_compiler_static_F77='-Bstatic'
Chris@19 16333 ;;
Chris@19 16334
Chris@19 16335 *nto* | *qnx*)
Chris@19 16336 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@19 16337 # it will coredump.
Chris@19 16338 lt_prog_compiler_pic_F77='-fPIC -shared'
Chris@19 16339 ;;
Chris@19 16340
Chris@19 16341 osf3* | osf4* | osf5*)
Chris@19 16342 lt_prog_compiler_wl_F77='-Wl,'
Chris@19 16343 # All OSF/1 code is PIC.
Chris@19 16344 lt_prog_compiler_static_F77='-non_shared'
Chris@19 16345 ;;
Chris@19 16346
Chris@19 16347 rdos*)
Chris@19 16348 lt_prog_compiler_static_F77='-non_shared'
Chris@19 16349 ;;
Chris@19 16350
Chris@19 16351 solaris*)
Chris@19 16352 lt_prog_compiler_pic_F77='-KPIC'
Chris@19 16353 lt_prog_compiler_static_F77='-Bstatic'
Chris@19 16354 case $cc_basename in
Chris@19 16355 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Chris@19 16356 lt_prog_compiler_wl_F77='-Qoption ld ';;
Chris@19 16357 *)
Chris@19 16358 lt_prog_compiler_wl_F77='-Wl,';;
Chris@19 16359 esac
Chris@19 16360 ;;
Chris@19 16361
Chris@19 16362 sunos4*)
Chris@19 16363 lt_prog_compiler_wl_F77='-Qoption ld '
Chris@19 16364 lt_prog_compiler_pic_F77='-PIC'
Chris@19 16365 lt_prog_compiler_static_F77='-Bstatic'
Chris@19 16366 ;;
Chris@19 16367
Chris@19 16368 sysv4 | sysv4.2uw2* | sysv4.3*)
Chris@19 16369 lt_prog_compiler_wl_F77='-Wl,'
Chris@19 16370 lt_prog_compiler_pic_F77='-KPIC'
Chris@19 16371 lt_prog_compiler_static_F77='-Bstatic'
Chris@19 16372 ;;
Chris@19 16373
Chris@19 16374 sysv4*MP*)
Chris@19 16375 if test -d /usr/nec ;then
Chris@19 16376 lt_prog_compiler_pic_F77='-Kconform_pic'
Chris@19 16377 lt_prog_compiler_static_F77='-Bstatic'
Chris@19 16378 fi
Chris@19 16379 ;;
Chris@19 16380
Chris@19 16381 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
Chris@19 16382 lt_prog_compiler_wl_F77='-Wl,'
Chris@19 16383 lt_prog_compiler_pic_F77='-KPIC'
Chris@19 16384 lt_prog_compiler_static_F77='-Bstatic'
Chris@19 16385 ;;
Chris@19 16386
Chris@19 16387 unicos*)
Chris@19 16388 lt_prog_compiler_wl_F77='-Wl,'
Chris@19 16389 lt_prog_compiler_can_build_shared_F77=no
Chris@19 16390 ;;
Chris@19 16391
Chris@19 16392 uts4*)
Chris@19 16393 lt_prog_compiler_pic_F77='-pic'
Chris@19 16394 lt_prog_compiler_static_F77='-Bstatic'
Chris@19 16395 ;;
Chris@19 16396
Chris@19 16397 *)
Chris@19 16398 lt_prog_compiler_can_build_shared_F77=no
Chris@19 16399 ;;
Chris@19 16400 esac
Chris@19 16401 fi
Chris@19 16402
Chris@19 16403 case $host_os in
Chris@19 16404 # For platforms which do not support PIC, -DPIC is meaningless:
Chris@19 16405 *djgpp*)
Chris@19 16406 lt_prog_compiler_pic_F77=
Chris@19 16407 ;;
Chris@19 16408 *)
Chris@19 16409 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
Chris@19 16410 ;;
Chris@19 16411 esac
Chris@19 16412
Chris@19 16413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
Chris@19 16414 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Chris@19 16415 if ${lt_cv_prog_compiler_pic_F77+:} false; then :
Chris@19 16416 $as_echo_n "(cached) " >&6
Chris@19 16417 else
Chris@19 16418 lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77
Chris@19 16419 fi
Chris@19 16420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5
Chris@19 16421 $as_echo "$lt_cv_prog_compiler_pic_F77" >&6; }
Chris@19 16422 lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77
Chris@19 16423
Chris@19 16424 #
Chris@19 16425 # Check to make sure the PIC flag actually works.
Chris@19 16426 #
Chris@19 16427 if test -n "$lt_prog_compiler_pic_F77"; then
Chris@19 16428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
Chris@19 16429 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
Chris@19 16430 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
Chris@19 16431 $as_echo_n "(cached) " >&6
Chris@19 16432 else
Chris@19 16433 lt_cv_prog_compiler_pic_works_F77=no
Chris@19 16434 ac_outfile=conftest.$ac_objext
Chris@19 16435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@19 16436 lt_compiler_flag="$lt_prog_compiler_pic_F77"
Chris@19 16437 # Insert the option either (1) after the last *FLAGS variable, or
Chris@19 16438 # (2) before a word containing "conftest.", or (3) at the end.
Chris@19 16439 # Note that $ac_compile itself does not contain backslashes and begins
Chris@19 16440 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@19 16441 # The option is referenced via a variable to avoid confusing sed.
Chris@19 16442 lt_compile=`echo "$ac_compile" | $SED \
Chris@19 16443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@19 16444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@19 16445 -e 's:$: $lt_compiler_flag:'`
Chris@19 16446 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@19 16447 (eval "$lt_compile" 2>conftest.err)
Chris@19 16448 ac_status=$?
Chris@19 16449 cat conftest.err >&5
Chris@19 16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@19 16451 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@19 16452 # The compiler can only warn and ignore the option if not recognized
Chris@19 16453 # So say no if there are warnings other than the usual output.
Chris@19 16454 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Chris@19 16455 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@19 16456 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Chris@19 16457 lt_cv_prog_compiler_pic_works_F77=yes
Chris@19 16458 fi
Chris@19 16459 fi
Chris@19 16460 $RM conftest*
Chris@19 16461
Chris@19 16462 fi
Chris@19 16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
Chris@19 16464 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
Chris@19 16465
Chris@19 16466 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
Chris@19 16467 case $lt_prog_compiler_pic_F77 in
Chris@19 16468 "" | " "*) ;;
Chris@19 16469 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
Chris@19 16470 esac
Chris@19 16471 else
Chris@19 16472 lt_prog_compiler_pic_F77=
Chris@19 16473 lt_prog_compiler_can_build_shared_F77=no
Chris@19 16474 fi
Chris@19 16475
Chris@19 16476 fi
Chris@19 16477
Chris@19 16478
Chris@19 16479
Chris@19 16480
Chris@19 16481
Chris@19 16482 #
Chris@19 16483 # Check to make sure the static flag actually works.
Chris@19 16484 #
Chris@19 16485 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
Chris@19 16486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
Chris@19 16487 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Chris@19 16488 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
Chris@19 16489 $as_echo_n "(cached) " >&6
Chris@19 16490 else
Chris@19 16491 lt_cv_prog_compiler_static_works_F77=no
Chris@19 16492 save_LDFLAGS="$LDFLAGS"
Chris@19 16493 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Chris@19 16494 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Chris@19 16495 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Chris@19 16496 # The linker can only warn and ignore the option if not recognized
Chris@19 16497 # So say no if there are warnings
Chris@19 16498 if test -s conftest.err; then
Chris@19 16499 # Append any errors to the config.log.
Chris@19 16500 cat conftest.err 1>&5
Chris@19 16501 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Chris@19 16502 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@19 16503 if diff conftest.exp conftest.er2 >/dev/null; then
Chris@19 16504 lt_cv_prog_compiler_static_works_F77=yes
Chris@19 16505 fi
Chris@19 16506 else
Chris@19 16507 lt_cv_prog_compiler_static_works_F77=yes
Chris@19 16508 fi
Chris@19 16509 fi
Chris@19 16510 $RM -r conftest*
Chris@19 16511 LDFLAGS="$save_LDFLAGS"
Chris@19 16512
Chris@19 16513 fi
Chris@19 16514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
Chris@19 16515 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
Chris@19 16516
Chris@19 16517 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
Chris@19 16518 :
Chris@19 16519 else
Chris@19 16520 lt_prog_compiler_static_F77=
Chris@19 16521 fi
Chris@19 16522
Chris@19 16523
Chris@19 16524
Chris@19 16525
Chris@19 16526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@19 16527 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@19 16528 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
Chris@19 16529 $as_echo_n "(cached) " >&6
Chris@19 16530 else
Chris@19 16531 lt_cv_prog_compiler_c_o_F77=no
Chris@19 16532 $RM -r conftest 2>/dev/null
Chris@19 16533 mkdir conftest
Chris@19 16534 cd conftest
Chris@19 16535 mkdir out
Chris@19 16536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@19 16537
Chris@19 16538 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@19 16539 # Insert the option either (1) after the last *FLAGS variable, or
Chris@19 16540 # (2) before a word containing "conftest.", or (3) at the end.
Chris@19 16541 # Note that $ac_compile itself does not contain backslashes and begins
Chris@19 16542 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@19 16543 lt_compile=`echo "$ac_compile" | $SED \
Chris@19 16544 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@19 16545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@19 16546 -e 's:$: $lt_compiler_flag:'`
Chris@19 16547 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@19 16548 (eval "$lt_compile" 2>out/conftest.err)
Chris@19 16549 ac_status=$?
Chris@19 16550 cat out/conftest.err >&5
Chris@19 16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@19 16552 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@19 16553 then
Chris@19 16554 # The compiler can only warn and ignore the option if not recognized
Chris@19 16555 # So say no if there are warnings
Chris@19 16556 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@19 16557 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@19 16558 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@19 16559 lt_cv_prog_compiler_c_o_F77=yes
Chris@19 16560 fi
Chris@19 16561 fi
Chris@19 16562 chmod u+w . 2>&5
Chris@19 16563 $RM conftest*
Chris@19 16564 # SGI C++ compiler will create directory out/ii_files/ for
Chris@19 16565 # template instantiation
Chris@19 16566 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@19 16567 $RM out/* && rmdir out
Chris@19 16568 cd ..
Chris@19 16569 $RM -r conftest
Chris@19 16570 $RM conftest*
Chris@19 16571
Chris@19 16572 fi
Chris@19 16573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
Chris@19 16574 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
Chris@19 16575
Chris@19 16576
Chris@19 16577
Chris@19 16578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@19 16579 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@19 16580 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
Chris@19 16581 $as_echo_n "(cached) " >&6
Chris@19 16582 else
Chris@19 16583 lt_cv_prog_compiler_c_o_F77=no
Chris@19 16584 $RM -r conftest 2>/dev/null
Chris@19 16585 mkdir conftest
Chris@19 16586 cd conftest
Chris@19 16587 mkdir out
Chris@19 16588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@19 16589
Chris@19 16590 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@19 16591 # Insert the option either (1) after the last *FLAGS variable, or
Chris@19 16592 # (2) before a word containing "conftest.", or (3) at the end.
Chris@19 16593 # Note that $ac_compile itself does not contain backslashes and begins
Chris@19 16594 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@19 16595 lt_compile=`echo "$ac_compile" | $SED \
Chris@19 16596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@19 16597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@19 16598 -e 's:$: $lt_compiler_flag:'`
Chris@19 16599 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@19 16600 (eval "$lt_compile" 2>out/conftest.err)
Chris@19 16601 ac_status=$?
Chris@19 16602 cat out/conftest.err >&5
Chris@19 16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@19 16604 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@19 16605 then
Chris@19 16606 # The compiler can only warn and ignore the option if not recognized
Chris@19 16607 # So say no if there are warnings
Chris@19 16608 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@19 16609 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@19 16610 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@19 16611 lt_cv_prog_compiler_c_o_F77=yes
Chris@19 16612 fi
Chris@19 16613 fi
Chris@19 16614 chmod u+w . 2>&5
Chris@19 16615 $RM conftest*
Chris@19 16616 # SGI C++ compiler will create directory out/ii_files/ for
Chris@19 16617 # template instantiation
Chris@19 16618 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@19 16619 $RM out/* && rmdir out
Chris@19 16620 cd ..
Chris@19 16621 $RM -r conftest
Chris@19 16622 $RM conftest*
Chris@19 16623
Chris@19 16624 fi
Chris@19 16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
Chris@19 16626 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
Chris@19 16627
Chris@19 16628
Chris@19 16629
Chris@19 16630
Chris@19 16631 hard_links="nottested"
Chris@19 16632 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
Chris@19 16633 # do not overwrite the value of need_locks provided by the user
Chris@19 16634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Chris@19 16635 $as_echo_n "checking if we can lock with hard links... " >&6; }
Chris@19 16636 hard_links=yes
Chris@19 16637 $RM conftest*
Chris@19 16638 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@19 16639 touch conftest.a
Chris@19 16640 ln conftest.a conftest.b 2>&5 || hard_links=no
Chris@19 16641 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@19 16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Chris@19 16643 $as_echo "$hard_links" >&6; }
Chris@19 16644 if test "$hard_links" = no; then
Chris@19 16645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
Chris@19 16646 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
Chris@19 16647 need_locks=warn
Chris@19 16648 fi
Chris@19 16649 else
Chris@19 16650 need_locks=no
Chris@19 16651 fi
Chris@19 16652
Chris@19 16653
Chris@19 16654
Chris@19 16655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Chris@19 16656 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Chris@19 16657
Chris@19 16658 runpath_var=
Chris@19 16659 allow_undefined_flag_F77=
Chris@19 16660 always_export_symbols_F77=no
Chris@19 16661 archive_cmds_F77=
Chris@19 16662 archive_expsym_cmds_F77=
Chris@19 16663 compiler_needs_object_F77=no
Chris@19 16664 enable_shared_with_static_runtimes_F77=no
Chris@19 16665 export_dynamic_flag_spec_F77=
Chris@19 16666 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Chris@19 16667 hardcode_automatic_F77=no
Chris@19 16668 hardcode_direct_F77=no
Chris@19 16669 hardcode_direct_absolute_F77=no
Chris@19 16670 hardcode_libdir_flag_spec_F77=
Chris@19 16671 hardcode_libdir_separator_F77=
Chris@19 16672 hardcode_minus_L_F77=no
Chris@19 16673 hardcode_shlibpath_var_F77=unsupported
Chris@19 16674 inherit_rpath_F77=no
Chris@19 16675 link_all_deplibs_F77=unknown
Chris@19 16676 module_cmds_F77=
Chris@19 16677 module_expsym_cmds_F77=
Chris@19 16678 old_archive_from_new_cmds_F77=
Chris@19 16679 old_archive_from_expsyms_cmds_F77=
Chris@19 16680 thread_safe_flag_spec_F77=
Chris@19 16681 whole_archive_flag_spec_F77=
Chris@19 16682 # include_expsyms should be a list of space-separated symbols to be *always*
Chris@19 16683 # included in the symbol list
Chris@19 16684 include_expsyms_F77=
Chris@19 16685 # exclude_expsyms can be an extended regexp of symbols to exclude
Chris@19 16686 # it will be wrapped by ` (' and `)$', so one must not match beginning or
Chris@19 16687 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
Chris@19 16688 # as well as any symbol that contains `d'.
Chris@19 16689 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Chris@19 16690 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
Chris@19 16691 # platforms (ab)use it in PIC code, but their linkers get confused if
Chris@19 16692 # the symbol is explicitly referenced. Since portable code cannot
Chris@19 16693 # rely on this symbol name, it's probably fine to never include it in
Chris@19 16694 # preloaded symbol tables.
Chris@19 16695 # Exclude shared library initialization/finalization symbols.
Chris@19 16696 extract_expsyms_cmds=
Chris@19 16697
Chris@19 16698 case $host_os in
Chris@19 16699 cygwin* | mingw* | pw32* | cegcc*)
Chris@19 16700 # FIXME: the MSVC++ port hasn't been tested in a loooong time
Chris@19 16701 # When not using gcc, we currently assume that we are using
Chris@19 16702 # Microsoft Visual C++.
Chris@19 16703 if test "$GCC" != yes; then
Chris@19 16704 with_gnu_ld=no
Chris@19 16705 fi
Chris@19 16706 ;;
Chris@19 16707 interix*)
Chris@19 16708 # we just hope/assume this is gcc and not c89 (= MSVC++)
Chris@19 16709 with_gnu_ld=yes
Chris@19 16710 ;;
Chris@19 16711 openbsd*)
Chris@19 16712 with_gnu_ld=no
Chris@19 16713 ;;
Chris@19 16714 esac
Chris@19 16715
Chris@19 16716 ld_shlibs_F77=yes
Chris@19 16717
Chris@19 16718 # On some targets, GNU ld is compatible enough with the native linker
Chris@19 16719 # that we're better off using the native interface for both.
Chris@19 16720 lt_use_gnu_ld_interface=no
Chris@19 16721 if test "$with_gnu_ld" = yes; then
Chris@19 16722 case $host_os in
Chris@19 16723 aix*)
Chris@19 16724 # The AIX port of GNU ld has always aspired to compatibility
Chris@19 16725 # with the native linker. However, as the warning in the GNU ld
Chris@19 16726 # block says, versions before 2.19.5* couldn't really create working
Chris@19 16727 # shared libraries, regardless of the interface used.
Chris@19 16728 case `$LD -v 2>&1` in
Chris@19 16729 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
Chris@19 16730 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
Chris@19 16731 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
Chris@19 16732 *)
Chris@19 16733 lt_use_gnu_ld_interface=yes
Chris@19 16734 ;;
Chris@19 16735 esac
Chris@19 16736 ;;
Chris@19 16737 *)
Chris@19 16738 lt_use_gnu_ld_interface=yes
Chris@19 16739 ;;
Chris@19 16740 esac
Chris@19 16741 fi
Chris@19 16742
Chris@19 16743 if test "$lt_use_gnu_ld_interface" = yes; then
Chris@19 16744 # If archive_cmds runs LD, not CC, wlarc should be empty
Chris@19 16745 wlarc='${wl}'
Chris@19 16746
Chris@19 16747 # Set some defaults for GNU ld with shared library support. These
Chris@19 16748 # are reset later if shared libraries are not supported. Putting them
Chris@19 16749 # here allows them to be overridden if necessary.
Chris@19 16750 runpath_var=LD_RUN_PATH
Chris@19 16751 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
Chris@19 16752 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
Chris@19 16753 # ancient GNU ld didn't support --whole-archive et. al.
Chris@19 16754 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
Chris@19 16755 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
Chris@19 16756 else
Chris@19 16757 whole_archive_flag_spec_F77=
Chris@19 16758 fi
Chris@19 16759 supports_anon_versioning=no
Chris@19 16760 case `$LD -v 2>&1` in
Chris@19 16761 *GNU\ gold*) supports_anon_versioning=yes ;;
Chris@19 16762 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
Chris@19 16763 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
Chris@19 16764 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
Chris@19 16765 *\ 2.11.*) ;; # other 2.11 versions
Chris@19 16766 *) supports_anon_versioning=yes ;;
Chris@19 16767 esac
Chris@19 16768
Chris@19 16769 # See if GNU ld supports shared libraries.
Chris@19 16770 case $host_os in
Chris@19 16771 aix[3-9]*)
Chris@19 16772 # On AIX/PPC, the GNU linker is very broken
Chris@19 16773 if test "$host_cpu" != ia64; then
Chris@19 16774 ld_shlibs_F77=no
Chris@19 16775 cat <<_LT_EOF 1>&2
Chris@19 16776
Chris@19 16777 *** Warning: the GNU linker, at least up to release 2.19, is reported
Chris@19 16778 *** to be unable to reliably create shared libraries on AIX.
Chris@19 16779 *** Therefore, libtool is disabling shared libraries support. If you
Chris@19 16780 *** really care for shared libraries, you may want to install binutils
Chris@19 16781 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
Chris@19 16782 *** You will then need to restart the configuration process.
Chris@19 16783
Chris@19 16784 _LT_EOF
Chris@19 16785 fi
Chris@19 16786 ;;
Chris@19 16787
Chris@19 16788 amigaos*)
Chris@19 16789 case $host_cpu in
Chris@19 16790 powerpc)
Chris@19 16791 # see comment about AmigaOS4 .so support
Chris@19 16792 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@19 16793 archive_expsym_cmds_F77=''
Chris@19 16794 ;;
Chris@19 16795 m68k)
Chris@19 16796 archive_cmds_F77='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
Chris@19 16797 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@19 16798 hardcode_minus_L_F77=yes
Chris@19 16799 ;;
Chris@19 16800 esac
Chris@19 16801 ;;
Chris@19 16802
Chris@19 16803 beos*)
Chris@19 16804 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@19 16805 allow_undefined_flag_F77=unsupported
Chris@19 16806 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
Chris@19 16807 # support --undefined. This deserves some investigation. FIXME
Chris@19 16808 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@19 16809 else
Chris@19 16810 ld_shlibs_F77=no
Chris@19 16811 fi
Chris@19 16812 ;;
Chris@19 16813
Chris@19 16814 cygwin* | mingw* | pw32* | cegcc*)
Chris@19 16815 # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
Chris@19 16816 # as there is no search path for DLLs.
Chris@19 16817 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@19 16818 export_dynamic_flag_spec_F77='${wl}--export-all-symbols'
Chris@19 16819 allow_undefined_flag_F77=unsupported
Chris@19 16820 always_export_symbols_F77=no
Chris@19 16821 enable_shared_with_static_runtimes_F77=yes
Chris@19 16822 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
Chris@19 16823 exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
Chris@19 16824
Chris@19 16825 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Chris@19 16826 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Chris@19 16827 # If the export-symbols file already is a .def file (1st line
Chris@19 16828 # is EXPORTS), use it as is; otherwise, prepend...
Chris@19 16829 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
Chris@19 16830 cp $export_symbols $output_objdir/$soname.def;
Chris@19 16831 else
Chris@19 16832 echo EXPORTS > $output_objdir/$soname.def;
Chris@19 16833 cat $export_symbols >> $output_objdir/$soname.def;
Chris@19 16834 fi~
Chris@19 16835 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Chris@19 16836 else
Chris@19 16837 ld_shlibs_F77=no
Chris@19 16838 fi
Chris@19 16839 ;;
Chris@19 16840
Chris@19 16841 haiku*)
Chris@19 16842 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@19 16843 link_all_deplibs_F77=yes
Chris@19 16844 ;;
Chris@19 16845
Chris@19 16846 interix[3-9]*)
Chris@19 16847 hardcode_direct_F77=no
Chris@19 16848 hardcode_shlibpath_var_F77=no
Chris@19 16849 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
Chris@19 16850 export_dynamic_flag_spec_F77='${wl}-E'
Chris@19 16851 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
Chris@19 16852 # Instead, shared libraries are loaded at an image base (0x10000000 by
Chris@19 16853 # default) and relocated if they conflict, which is a slow very memory
Chris@19 16854 # consuming and fragmenting process. To avoid this, we pick a random,
Chris@19 16855 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
Chris@19 16856 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Chris@19 16857 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
Chris@19 16858 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
Chris@19 16859 ;;
Chris@19 16860
Chris@19 16861 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@19 16862 tmp_diet=no
Chris@19 16863 if test "$host_os" = linux-dietlibc; then
Chris@19 16864 case $cc_basename in
Chris@19 16865 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
Chris@19 16866 esac
Chris@19 16867 fi
Chris@19 16868 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
Chris@19 16869 && test "$tmp_diet" = no
Chris@19 16870 then
Chris@19 16871 tmp_addflag=' $pic_flag'
Chris@19 16872 tmp_sharedflag='-shared'
Chris@19 16873 case $cc_basename,$host_cpu in
Chris@19 16874 pgcc*) # Portland Group C compiler
Chris@19 16875 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Chris@19 16876 tmp_addflag=' $pic_flag'
Chris@19 16877 ;;
Chris@19 16878 pgf77* | pgf90* | pgf95* | pgfortran*)
Chris@19 16879 # Portland Group f77 and f90 compilers
Chris@19 16880 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Chris@19 16881 tmp_addflag=' $pic_flag -Mnomain' ;;
Chris@19 16882 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Chris@19 16883 tmp_addflag=' -i_dynamic' ;;
Chris@19 16884 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
Chris@19 16885 tmp_addflag=' -i_dynamic -nofor_main' ;;
Chris@19 16886 ifc* | ifort*) # Intel Fortran compiler
Chris@19 16887 tmp_addflag=' -nofor_main' ;;
Chris@19 16888 lf95*) # Lahey Fortran 8.1
Chris@19 16889 whole_archive_flag_spec_F77=
Chris@19 16890 tmp_sharedflag='--shared' ;;
Chris@19 16891 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Chris@19 16892 tmp_sharedflag='-qmkshrobj'
Chris@19 16893 tmp_addflag= ;;
Chris@19 16894 nvcc*) # Cuda Compiler Driver 2.2
Chris@19 16895 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Chris@19 16896 compiler_needs_object_F77=yes
Chris@19 16897 ;;
Chris@19 16898 esac
Chris@19 16899 case `$CC -V 2>&1 | sed 5q` in
Chris@19 16900 *Sun\ C*) # Sun C 5.9
Chris@19 16901 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Chris@19 16902 compiler_needs_object_F77=yes
Chris@19 16903 tmp_sharedflag='-G' ;;
Chris@19 16904 *Sun\ F*) # Sun Fortran 8.3
Chris@19 16905 tmp_sharedflag='-G' ;;
Chris@19 16906 esac
Chris@19 16907 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@19 16908
Chris@19 16909 if test "x$supports_anon_versioning" = xyes; then
Chris@19 16910 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
Chris@19 16911 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@19 16912 echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@19 16913 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
Chris@19 16914 fi
Chris@19 16915
Chris@19 16916 case $cc_basename in
Chris@19 16917 xlf* | bgf* | bgxlf* | mpixlf*)
Chris@19 16918 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
Chris@19 16919 whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
Chris@19 16920 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
Chris@19 16921 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Chris@19 16922 if test "x$supports_anon_versioning" = xyes; then
Chris@19 16923 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
Chris@19 16924 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@19 16925 echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@19 16926 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Chris@19 16927 fi
Chris@19 16928 ;;
Chris@19 16929 esac
Chris@19 16930 else
Chris@19 16931 ld_shlibs_F77=no
Chris@19 16932 fi
Chris@19 16933 ;;
Chris@19 16934
Chris@19 16935 netbsd*)
Chris@19 16936 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@19 16937 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
Chris@19 16938 wlarc=
Chris@19 16939 else
Chris@19 16940 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@19 16941 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@19 16942 fi
Chris@19 16943 ;;
Chris@19 16944
Chris@19 16945 solaris*)
Chris@19 16946 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Chris@19 16947 ld_shlibs_F77=no
Chris@19 16948 cat <<_LT_EOF 1>&2
Chris@19 16949
Chris@19 16950 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
Chris@19 16951 *** create shared libraries on Solaris systems. Therefore, libtool
Chris@19 16952 *** is disabling shared libraries support. We urge you to upgrade GNU
Chris@19 16953 *** binutils to release 2.9.1 or newer. Another option is to modify
Chris@19 16954 *** your PATH or compiler configuration so that the native linker is
Chris@19 16955 *** used, and then restart.
Chris@19 16956
Chris@19 16957 _LT_EOF
Chris@19 16958 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@19 16959 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@19 16960 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@19 16961 else
Chris@19 16962 ld_shlibs_F77=no
Chris@19 16963 fi
Chris@19 16964 ;;
Chris@19 16965
Chris@19 16966 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
Chris@19 16967 case `$LD -v 2>&1` in
Chris@19 16968 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
Chris@19 16969 ld_shlibs_F77=no
Chris@19 16970 cat <<_LT_EOF 1>&2
Chris@19 16971
Chris@19 16972 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
Chris@19 16973 *** reliably create shared libraries on SCO systems. Therefore, libtool
Chris@19 16974 *** is disabling shared libraries support. We urge you to upgrade GNU
Chris@19 16975 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
Chris@19 16976 *** your PATH or compiler configuration so that the native linker is
Chris@19 16977 *** used, and then restart.
Chris@19 16978
Chris@19 16979 _LT_EOF
Chris@19 16980 ;;
Chris@19 16981 *)
Chris@19 16982 # For security reasons, it is highly recommended that you always
Chris@19 16983 # use absolute paths for naming shared libraries, and exclude the
Chris@19 16984 # DT_RUNPATH tag from executables and libraries. But doing so
Chris@19 16985 # requires that you compile everything twice, which is a pain.
Chris@19 16986 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@19 16987 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
Chris@19 16988 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@19 16989 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@19 16990 else
Chris@19 16991 ld_shlibs_F77=no
Chris@19 16992 fi
Chris@19 16993 ;;
Chris@19 16994 esac
Chris@19 16995 ;;
Chris@19 16996
Chris@19 16997 sunos4*)
Chris@19 16998 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@19 16999 wlarc=
Chris@19 17000 hardcode_direct_F77=yes
Chris@19 17001 hardcode_shlibpath_var_F77=no
Chris@19 17002 ;;
Chris@19 17003
Chris@19 17004 *)
Chris@19 17005 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@19 17006 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@19 17007 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@19 17008 else
Chris@19 17009 ld_shlibs_F77=no
Chris@19 17010 fi
Chris@19 17011 ;;
Chris@19 17012 esac
Chris@19 17013
Chris@19 17014 if test "$ld_shlibs_F77" = no; then
Chris@19 17015 runpath_var=
Chris@19 17016 hardcode_libdir_flag_spec_F77=
Chris@19 17017 export_dynamic_flag_spec_F77=
Chris@19 17018 whole_archive_flag_spec_F77=
Chris@19 17019 fi
Chris@19 17020 else
Chris@19 17021 # PORTME fill in a description of your system's linker (not GNU ld)
Chris@19 17022 case $host_os in
Chris@19 17023 aix3*)
Chris@19 17024 allow_undefined_flag_F77=unsupported
Chris@19 17025 always_export_symbols_F77=yes
Chris@19 17026 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
Chris@19 17027 # Note: this linker hardcodes the directories in LIBPATH if there
Chris@19 17028 # are no directories specified by -L.
Chris@19 17029 hardcode_minus_L_F77=yes
Chris@19 17030 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
Chris@19 17031 # Neither direct hardcoding nor static linking is supported with a
Chris@19 17032 # broken collect2.
Chris@19 17033 hardcode_direct_F77=unsupported
Chris@19 17034 fi
Chris@19 17035 ;;
Chris@19 17036
Chris@19 17037 aix[4-9]*)
Chris@19 17038 if test "$host_cpu" = ia64; then
Chris@19 17039 # On IA64, the linker does run time linking by default, so we don't
Chris@19 17040 # have to do anything special.
Chris@19 17041 aix_use_runtimelinking=no
Chris@19 17042 exp_sym_flag='-Bexport'
Chris@19 17043 no_entry_flag=""
Chris@19 17044 else
Chris@19 17045 # If we're using GNU nm, then we don't want the "-C" option.
Chris@19 17046 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Chris@19 17047 # Also, AIX nm treats weak defined symbols like other global
Chris@19 17048 # defined symbols, whereas GNU nm marks them as "W".
Chris@19 17049 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Chris@19 17050 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Chris@19 17051 else
Chris@19 17052 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Chris@19 17053 fi
Chris@19 17054 aix_use_runtimelinking=no
Chris@19 17055
Chris@19 17056 # Test if we are trying to use run time linking or normal
Chris@19 17057 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Chris@19 17058 # need to do runtime linking.
Chris@19 17059 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Chris@19 17060 for ld_flag in $LDFLAGS; do
Chris@19 17061 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
Chris@19 17062 aix_use_runtimelinking=yes
Chris@19 17063 break
Chris@19 17064 fi
Chris@19 17065 done
Chris@19 17066 ;;
Chris@19 17067 esac
Chris@19 17068
Chris@19 17069 exp_sym_flag='-bexport'
Chris@19 17070 no_entry_flag='-bnoentry'
Chris@19 17071 fi
Chris@19 17072
Chris@19 17073 # When large executables or shared objects are built, AIX ld can
Chris@19 17074 # have problems creating the table of contents. If linking a library
Chris@19 17075 # or program results in "error TOC overflow" add -mminimal-toc to
Chris@19 17076 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
Chris@19 17077 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
Chris@19 17078
Chris@19 17079 archive_cmds_F77=''
Chris@19 17080 hardcode_direct_F77=yes
Chris@19 17081 hardcode_direct_absolute_F77=yes
Chris@19 17082 hardcode_libdir_separator_F77=':'
Chris@19 17083 link_all_deplibs_F77=yes
Chris@19 17084 file_list_spec_F77='${wl}-f,'
Chris@19 17085
Chris@19 17086 if test "$GCC" = yes; then
Chris@19 17087 case $host_os in aix4.[012]|aix4.[012].*)
Chris@19 17088 # We only want to do this on AIX 4.2 and lower, the check
Chris@19 17089 # below for broken collect2 doesn't work under 4.3+
Chris@19 17090 collect2name=`${CC} -print-prog-name=collect2`
Chris@19 17091 if test -f "$collect2name" &&
Chris@19 17092 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Chris@19 17093 then
Chris@19 17094 # We have reworked collect2
Chris@19 17095 :
Chris@19 17096 else
Chris@19 17097 # We have old collect2
Chris@19 17098 hardcode_direct_F77=unsupported
Chris@19 17099 # It fails to find uninstalled libraries when the uninstalled
Chris@19 17100 # path is not listed in the libpath. Setting hardcode_minus_L
Chris@19 17101 # to unsupported forces relinking
Chris@19 17102 hardcode_minus_L_F77=yes
Chris@19 17103 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@19 17104 hardcode_libdir_separator_F77=
Chris@19 17105 fi
Chris@19 17106 ;;
Chris@19 17107 esac
Chris@19 17108 shared_flag='-shared'
Chris@19 17109 if test "$aix_use_runtimelinking" = yes; then
Chris@19 17110 shared_flag="$shared_flag "'${wl}-G'
Chris@19 17111 fi
Chris@19 17112 else
Chris@19 17113 # not using gcc
Chris@19 17114 if test "$host_cpu" = ia64; then
Chris@19 17115 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
Chris@19 17116 # chokes on -Wl,-G. The following line is correct:
Chris@19 17117 shared_flag='-G'
Chris@19 17118 else
Chris@19 17119 if test "$aix_use_runtimelinking" = yes; then
Chris@19 17120 shared_flag='${wl}-G'
Chris@19 17121 else
Chris@19 17122 shared_flag='${wl}-bM:SRE'
Chris@19 17123 fi
Chris@19 17124 fi
Chris@19 17125 fi
Chris@19 17126
Chris@19 17127 export_dynamic_flag_spec_F77='${wl}-bexpall'
Chris@19 17128 # It seems that -bexpall does not export symbols beginning with
Chris@19 17129 # underscore (_), so it is better to generate a list of symbols to export.
Chris@19 17130 always_export_symbols_F77=yes
Chris@19 17131 if test "$aix_use_runtimelinking" = yes; then
Chris@19 17132 # Warning - without using the other runtime loading flags (-brtl),
Chris@19 17133 # -berok will link without error, but may produce a broken library.
Chris@19 17134 allow_undefined_flag_F77='-berok'
Chris@19 17135 # Determine the default libpath from the value encoded in an
Chris@19 17136 # empty executable.
Chris@19 17137 if test "${lt_cv_aix_libpath+set}" = set; then
Chris@19 17138 aix_libpath=$lt_cv_aix_libpath
Chris@19 17139 else
Chris@19 17140 if ${lt_cv_aix_libpath__F77+:} false; then :
Chris@19 17141 $as_echo_n "(cached) " >&6
Chris@19 17142 else
Chris@19 17143 cat > conftest.$ac_ext <<_ACEOF
Chris@19 17144 program main
Chris@19 17145
Chris@19 17146 end
Chris@19 17147 _ACEOF
Chris@19 17148 if ac_fn_f77_try_link "$LINENO"; then :
Chris@19 17149
Chris@19 17150 lt_aix_libpath_sed='
Chris@19 17151 /Import File Strings/,/^$/ {
Chris@19 17152 /^0/ {
Chris@19 17153 s/^0 *\([^ ]*\) *$/\1/
Chris@19 17154 p
Chris@19 17155 }
Chris@19 17156 }'
Chris@19 17157 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@19 17158 # Check for a 64-bit object if we didn't find anything.
Chris@19 17159 if test -z "$lt_cv_aix_libpath__F77"; then
Chris@19 17160 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@19 17161 fi
Chris@19 17162 fi
Chris@19 17163 rm -f core conftest.err conftest.$ac_objext \
Chris@19 17164 conftest$ac_exeext conftest.$ac_ext
Chris@19 17165 if test -z "$lt_cv_aix_libpath__F77"; then
Chris@19 17166 lt_cv_aix_libpath__F77="/usr/lib:/lib"
Chris@19 17167 fi
Chris@19 17168
Chris@19 17169 fi
Chris@19 17170
Chris@19 17171 aix_libpath=$lt_cv_aix_libpath__F77
Chris@19 17172 fi
Chris@19 17173
Chris@19 17174 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Chris@19 17175 archive_expsym_cmds_F77='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
Chris@19 17176 else
Chris@19 17177 if test "$host_cpu" = ia64; then
Chris@19 17178 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
Chris@19 17179 allow_undefined_flag_F77="-z nodefs"
Chris@19 17180 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
Chris@19 17181 else
Chris@19 17182 # Determine the default libpath from the value encoded in an
Chris@19 17183 # empty executable.
Chris@19 17184 if test "${lt_cv_aix_libpath+set}" = set; then
Chris@19 17185 aix_libpath=$lt_cv_aix_libpath
Chris@19 17186 else
Chris@19 17187 if ${lt_cv_aix_libpath__F77+:} false; then :
Chris@19 17188 $as_echo_n "(cached) " >&6
Chris@19 17189 else
Chris@19 17190 cat > conftest.$ac_ext <<_ACEOF
Chris@19 17191 program main
Chris@19 17192
Chris@19 17193 end
Chris@19 17194 _ACEOF
Chris@19 17195 if ac_fn_f77_try_link "$LINENO"; then :
Chris@19 17196
Chris@19 17197 lt_aix_libpath_sed='
Chris@19 17198 /Import File Strings/,/^$/ {
Chris@19 17199 /^0/ {
Chris@19 17200 s/^0 *\([^ ]*\) *$/\1/
Chris@19 17201 p
Chris@19 17202 }
Chris@19 17203 }'
Chris@19 17204 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@19 17205 # Check for a 64-bit object if we didn't find anything.
Chris@19 17206 if test -z "$lt_cv_aix_libpath__F77"; then
Chris@19 17207 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@19 17208 fi
Chris@19 17209 fi
Chris@19 17210 rm -f core conftest.err conftest.$ac_objext \
Chris@19 17211 conftest$ac_exeext conftest.$ac_ext
Chris@19 17212 if test -z "$lt_cv_aix_libpath__F77"; then
Chris@19 17213 lt_cv_aix_libpath__F77="/usr/lib:/lib"
Chris@19 17214 fi
Chris@19 17215
Chris@19 17216 fi
Chris@19 17217
Chris@19 17218 aix_libpath=$lt_cv_aix_libpath__F77
Chris@19 17219 fi
Chris@19 17220
Chris@19 17221 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Chris@19 17222 # Warning - without using the other run time loading flags,
Chris@19 17223 # -berok will link without error, but may produce a broken library.
Chris@19 17224 no_undefined_flag_F77=' ${wl}-bernotok'
Chris@19 17225 allow_undefined_flag_F77=' ${wl}-berok'
Chris@19 17226 if test "$with_gnu_ld" = yes; then
Chris@19 17227 # We only use this code for GNU lds that support --whole-archive.
Chris@19 17228 whole_archive_flag_spec_F77='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
Chris@19 17229 else
Chris@19 17230 # Exported symbols can be pulled into shared objects from archives
Chris@19 17231 whole_archive_flag_spec_F77='$convenience'
Chris@19 17232 fi
Chris@19 17233 archive_cmds_need_lc_F77=yes
Chris@19 17234 # This is similar to how AIX traditionally builds its shared libraries.
Chris@19 17235 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
Chris@19 17236 fi
Chris@19 17237 fi
Chris@19 17238 ;;
Chris@19 17239
Chris@19 17240 amigaos*)
Chris@19 17241 case $host_cpu in
Chris@19 17242 powerpc)
Chris@19 17243 # see comment about AmigaOS4 .so support
Chris@19 17244 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@19 17245 archive_expsym_cmds_F77=''
Chris@19 17246 ;;
Chris@19 17247 m68k)
Chris@19 17248 archive_cmds_F77='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
Chris@19 17249 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@19 17250 hardcode_minus_L_F77=yes
Chris@19 17251 ;;
Chris@19 17252 esac
Chris@19 17253 ;;
Chris@19 17254
Chris@19 17255 bsdi[45]*)
Chris@19 17256 export_dynamic_flag_spec_F77=-rdynamic
Chris@19 17257 ;;
Chris@19 17258
Chris@19 17259 cygwin* | mingw* | pw32* | cegcc*)
Chris@19 17260 # When not using gcc, we currently assume that we are using
Chris@19 17261 # Microsoft Visual C++.
Chris@19 17262 # hardcode_libdir_flag_spec is actually meaningless, as there is
Chris@19 17263 # no search path for DLLs.
Chris@19 17264 case $cc_basename in
Chris@19 17265 cl*)
Chris@19 17266 # Native MSVC
Chris@19 17267 hardcode_libdir_flag_spec_F77=' '
Chris@19 17268 allow_undefined_flag_F77=unsupported
Chris@19 17269 always_export_symbols_F77=yes
Chris@19 17270 file_list_spec_F77='@'
Chris@19 17271 # Tell ltmain to make .lib files, not .a files.
Chris@19 17272 libext=lib
Chris@19 17273 # Tell ltmain to make .dll files, not .so files.
Chris@19 17274 shrext_cmds=".dll"
Chris@19 17275 # FIXME: Setting linknames here is a bad hack.
Chris@19 17276 archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
Chris@19 17277 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
Chris@19 17278 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
Chris@19 17279 else
Chris@19 17280 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
Chris@19 17281 fi~
Chris@19 17282 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
Chris@19 17283 linknames='
Chris@19 17284 # The linker will not automatically build a static lib if we build a DLL.
Chris@19 17285 # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true'
Chris@19 17286 enable_shared_with_static_runtimes_F77=yes
Chris@19 17287 exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
Chris@19 17288 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
Chris@19 17289 # Don't use ranlib
Chris@19 17290 old_postinstall_cmds_F77='chmod 644 $oldlib'
Chris@19 17291 postlink_cmds_F77='lt_outputfile="@OUTPUT@"~
Chris@19 17292 lt_tool_outputfile="@TOOL_OUTPUT@"~
Chris@19 17293 case $lt_outputfile in
Chris@19 17294 *.exe|*.EXE) ;;
Chris@19 17295 *)
Chris@19 17296 lt_outputfile="$lt_outputfile.exe"
Chris@19 17297 lt_tool_outputfile="$lt_tool_outputfile.exe"
Chris@19 17298 ;;
Chris@19 17299 esac~
Chris@19 17300 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
Chris@19 17301 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
Chris@19 17302 $RM "$lt_outputfile.manifest";
Chris@19 17303 fi'
Chris@19 17304 ;;
Chris@19 17305 *)
Chris@19 17306 # Assume MSVC wrapper
Chris@19 17307 hardcode_libdir_flag_spec_F77=' '
Chris@19 17308 allow_undefined_flag_F77=unsupported
Chris@19 17309 # Tell ltmain to make .lib files, not .a files.
Chris@19 17310 libext=lib
Chris@19 17311 # Tell ltmain to make .dll files, not .so files.
Chris@19 17312 shrext_cmds=".dll"
Chris@19 17313 # FIXME: Setting linknames here is a bad hack.
Chris@19 17314 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
Chris@19 17315 # The linker will automatically build a .lib file if we build a DLL.
Chris@19 17316 old_archive_from_new_cmds_F77='true'
Chris@19 17317 # FIXME: Should let the user specify the lib program.
Chris@19 17318 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
Chris@19 17319 enable_shared_with_static_runtimes_F77=yes
Chris@19 17320 ;;
Chris@19 17321 esac
Chris@19 17322 ;;
Chris@19 17323
Chris@19 17324 darwin* | rhapsody*)
Chris@19 17325
Chris@19 17326
Chris@19 17327 archive_cmds_need_lc_F77=no
Chris@19 17328 hardcode_direct_F77=no
Chris@19 17329 hardcode_automatic_F77=yes
Chris@19 17330 hardcode_shlibpath_var_F77=unsupported
Chris@19 17331 if test "$lt_cv_ld_force_load" = "yes"; then
Chris@19 17332 whole_archive_flag_spec_F77='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
Chris@19 17333 compiler_needs_object_F77=yes
Chris@19 17334 else
Chris@19 17335 whole_archive_flag_spec_F77=''
Chris@19 17336 fi
Chris@19 17337 link_all_deplibs_F77=yes
Chris@19 17338 allow_undefined_flag_F77="$_lt_dar_allow_undefined"
Chris@19 17339 case $cc_basename in
Chris@19 17340 ifort*) _lt_dar_can_shared=yes ;;
Chris@19 17341 *) _lt_dar_can_shared=$GCC ;;
Chris@19 17342 esac
Chris@19 17343 if test "$_lt_dar_can_shared" = "yes"; then
Chris@19 17344 output_verbose_link_cmd=func_echo_all
Chris@19 17345 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
Chris@19 17346 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
Chris@19 17347 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
Chris@19 17348 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
Chris@19 17349
Chris@19 17350 else
Chris@19 17351 ld_shlibs_F77=no
Chris@19 17352 fi
Chris@19 17353
Chris@19 17354 ;;
Chris@19 17355
Chris@19 17356 dgux*)
Chris@19 17357 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@19 17358 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@19 17359 hardcode_shlibpath_var_F77=no
Chris@19 17360 ;;
Chris@19 17361
Chris@19 17362 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
Chris@19 17363 # support. Future versions do this automatically, but an explicit c++rt0.o
Chris@19 17364 # does not break anything, and helps significantly (at the cost of a little
Chris@19 17365 # extra space).
Chris@19 17366 freebsd2.2*)
Chris@19 17367 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
Chris@19 17368 hardcode_libdir_flag_spec_F77='-R$libdir'
Chris@19 17369 hardcode_direct_F77=yes
Chris@19 17370 hardcode_shlibpath_var_F77=no
Chris@19 17371 ;;
Chris@19 17372
Chris@19 17373 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Chris@19 17374 freebsd2.*)
Chris@19 17375 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@19 17376 hardcode_direct_F77=yes
Chris@19 17377 hardcode_minus_L_F77=yes
Chris@19 17378 hardcode_shlibpath_var_F77=no
Chris@19 17379 ;;
Chris@19 17380
Chris@19 17381 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Chris@19 17382 freebsd* | dragonfly*)
Chris@19 17383 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 17384 hardcode_libdir_flag_spec_F77='-R$libdir'
Chris@19 17385 hardcode_direct_F77=yes
Chris@19 17386 hardcode_shlibpath_var_F77=no
Chris@19 17387 ;;
Chris@19 17388
Chris@19 17389 hpux9*)
Chris@19 17390 if test "$GCC" = yes; then
Chris@19 17391 archive_cmds_F77='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
Chris@19 17392 else
Chris@19 17393 archive_cmds_F77='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
Chris@19 17394 fi
Chris@19 17395 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
Chris@19 17396 hardcode_libdir_separator_F77=:
Chris@19 17397 hardcode_direct_F77=yes
Chris@19 17398
Chris@19 17399 # hardcode_minus_L: Not really in the search PATH,
Chris@19 17400 # but as the default location of the library.
Chris@19 17401 hardcode_minus_L_F77=yes
Chris@19 17402 export_dynamic_flag_spec_F77='${wl}-E'
Chris@19 17403 ;;
Chris@19 17404
Chris@19 17405 hpux10*)
Chris@19 17406 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
Chris@19 17407 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 17408 else
Chris@19 17409 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
Chris@19 17410 fi
Chris@19 17411 if test "$with_gnu_ld" = no; then
Chris@19 17412 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
Chris@19 17413 hardcode_libdir_separator_F77=:
Chris@19 17414 hardcode_direct_F77=yes
Chris@19 17415 hardcode_direct_absolute_F77=yes
Chris@19 17416 export_dynamic_flag_spec_F77='${wl}-E'
Chris@19 17417 # hardcode_minus_L: Not really in the search PATH,
Chris@19 17418 # but as the default location of the library.
Chris@19 17419 hardcode_minus_L_F77=yes
Chris@19 17420 fi
Chris@19 17421 ;;
Chris@19 17422
Chris@19 17423 hpux11*)
Chris@19 17424 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
Chris@19 17425 case $host_cpu in
Chris@19 17426 hppa*64*)
Chris@19 17427 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 17428 ;;
Chris@19 17429 ia64*)
Chris@19 17430 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 17431 ;;
Chris@19 17432 *)
Chris@19 17433 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 17434 ;;
Chris@19 17435 esac
Chris@19 17436 else
Chris@19 17437 case $host_cpu in
Chris@19 17438 hppa*64*)
Chris@19 17439 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 17440 ;;
Chris@19 17441 ia64*)
Chris@19 17442 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 17443 ;;
Chris@19 17444 *)
Chris@19 17445 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 17446 ;;
Chris@19 17447 esac
Chris@19 17448 fi
Chris@19 17449 if test "$with_gnu_ld" = no; then
Chris@19 17450 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
Chris@19 17451 hardcode_libdir_separator_F77=:
Chris@19 17452
Chris@19 17453 case $host_cpu in
Chris@19 17454 hppa*64*|ia64*)
Chris@19 17455 hardcode_direct_F77=no
Chris@19 17456 hardcode_shlibpath_var_F77=no
Chris@19 17457 ;;
Chris@19 17458 *)
Chris@19 17459 hardcode_direct_F77=yes
Chris@19 17460 hardcode_direct_absolute_F77=yes
Chris@19 17461 export_dynamic_flag_spec_F77='${wl}-E'
Chris@19 17462
Chris@19 17463 # hardcode_minus_L: Not really in the search PATH,
Chris@19 17464 # but as the default location of the library.
Chris@19 17465 hardcode_minus_L_F77=yes
Chris@19 17466 ;;
Chris@19 17467 esac
Chris@19 17468 fi
Chris@19 17469 ;;
Chris@19 17470
Chris@19 17471 irix5* | irix6* | nonstopux*)
Chris@19 17472 if test "$GCC" = yes; then
Chris@19 17473 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Chris@19 17474 # Try to use the -exported_symbol ld option, if it does not
Chris@19 17475 # work, assume that -exports_file does not work either and
Chris@19 17476 # implicitly export all symbols.
Chris@19 17477 # This should be the same for all languages, so no per-tag cache variable.
Chris@19 17478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
Chris@19 17479 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
Chris@19 17480 if ${lt_cv_irix_exported_symbol+:} false; then :
Chris@19 17481 $as_echo_n "(cached) " >&6
Chris@19 17482 else
Chris@19 17483 save_LDFLAGS="$LDFLAGS"
Chris@19 17484 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
Chris@19 17485 cat > conftest.$ac_ext <<_ACEOF
Chris@19 17486
Chris@19 17487 subroutine foo
Chris@19 17488 end
Chris@19 17489 _ACEOF
Chris@19 17490 if ac_fn_f77_try_link "$LINENO"; then :
Chris@19 17491 lt_cv_irix_exported_symbol=yes
Chris@19 17492 else
Chris@19 17493 lt_cv_irix_exported_symbol=no
Chris@19 17494 fi
Chris@19 17495 rm -f core conftest.err conftest.$ac_objext \
Chris@19 17496 conftest$ac_exeext conftest.$ac_ext
Chris@19 17497 LDFLAGS="$save_LDFLAGS"
Chris@19 17498 fi
Chris@19 17499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
Chris@19 17500 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
Chris@19 17501 if test "$lt_cv_irix_exported_symbol" = yes; then
Chris@19 17502 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
Chris@19 17503 fi
Chris@19 17504 else
Chris@19 17505 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
Chris@19 17506 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
Chris@19 17507 fi
Chris@19 17508 archive_cmds_need_lc_F77='no'
Chris@19 17509 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
Chris@19 17510 hardcode_libdir_separator_F77=:
Chris@19 17511 inherit_rpath_F77=yes
Chris@19 17512 link_all_deplibs_F77=yes
Chris@19 17513 ;;
Chris@19 17514
Chris@19 17515 netbsd*)
Chris@19 17516 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@19 17517 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
Chris@19 17518 else
Chris@19 17519 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
Chris@19 17520 fi
Chris@19 17521 hardcode_libdir_flag_spec_F77='-R$libdir'
Chris@19 17522 hardcode_direct_F77=yes
Chris@19 17523 hardcode_shlibpath_var_F77=no
Chris@19 17524 ;;
Chris@19 17525
Chris@19 17526 newsos6)
Chris@19 17527 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@19 17528 hardcode_direct_F77=yes
Chris@19 17529 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
Chris@19 17530 hardcode_libdir_separator_F77=:
Chris@19 17531 hardcode_shlibpath_var_F77=no
Chris@19 17532 ;;
Chris@19 17533
Chris@19 17534 *nto* | *qnx*)
Chris@19 17535 ;;
Chris@19 17536
Chris@19 17537 openbsd*)
Chris@19 17538 if test -f /usr/libexec/ld.so; then
Chris@19 17539 hardcode_direct_F77=yes
Chris@19 17540 hardcode_shlibpath_var_F77=no
Chris@19 17541 hardcode_direct_absolute_F77=yes
Chris@19 17542 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@19 17543 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 17544 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
Chris@19 17545 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
Chris@19 17546 export_dynamic_flag_spec_F77='${wl}-E'
Chris@19 17547 else
Chris@19 17548 case $host_os in
Chris@19 17549 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
Chris@19 17550 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@19 17551 hardcode_libdir_flag_spec_F77='-R$libdir'
Chris@19 17552 ;;
Chris@19 17553 *)
Chris@19 17554 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 17555 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
Chris@19 17556 ;;
Chris@19 17557 esac
Chris@19 17558 fi
Chris@19 17559 else
Chris@19 17560 ld_shlibs_F77=no
Chris@19 17561 fi
Chris@19 17562 ;;
Chris@19 17563
Chris@19 17564 os2*)
Chris@19 17565 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@19 17566 hardcode_minus_L_F77=yes
Chris@19 17567 allow_undefined_flag_F77=unsupported
Chris@19 17568 archive_cmds_F77='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
Chris@19 17569 old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
Chris@19 17570 ;;
Chris@19 17571
Chris@19 17572 osf3*)
Chris@19 17573 if test "$GCC" = yes; then
Chris@19 17574 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
Chris@19 17575 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Chris@19 17576 else
Chris@19 17577 allow_undefined_flag_F77=' -expect_unresolved \*'
Chris@19 17578 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
Chris@19 17579 fi
Chris@19 17580 archive_cmds_need_lc_F77='no'
Chris@19 17581 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
Chris@19 17582 hardcode_libdir_separator_F77=:
Chris@19 17583 ;;
Chris@19 17584
Chris@19 17585 osf4* | osf5*) # as osf3* with the addition of -msym flag
Chris@19 17586 if test "$GCC" = yes; then
Chris@19 17587 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
Chris@19 17588 archive_cmds_F77='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Chris@19 17589 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
Chris@19 17590 else
Chris@19 17591 allow_undefined_flag_F77=' -expect_unresolved \*'
Chris@19 17592 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
Chris@19 17593 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
Chris@19 17594 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
Chris@19 17595
Chris@19 17596 # Both c and cxx compiler support -rpath directly
Chris@19 17597 hardcode_libdir_flag_spec_F77='-rpath $libdir'
Chris@19 17598 fi
Chris@19 17599 archive_cmds_need_lc_F77='no'
Chris@19 17600 hardcode_libdir_separator_F77=:
Chris@19 17601 ;;
Chris@19 17602
Chris@19 17603 solaris*)
Chris@19 17604 no_undefined_flag_F77=' -z defs'
Chris@19 17605 if test "$GCC" = yes; then
Chris@19 17606 wlarc='${wl}'
Chris@19 17607 archive_cmds_F77='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 17608 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@19 17609 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Chris@19 17610 else
Chris@19 17611 case `$CC -V 2>&1` in
Chris@19 17612 *"Compilers 5.0"*)
Chris@19 17613 wlarc=''
Chris@19 17614 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@19 17615 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@19 17616 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
Chris@19 17617 ;;
Chris@19 17618 *)
Chris@19 17619 wlarc='${wl}'
Chris@19 17620 archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 17621 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@19 17622 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Chris@19 17623 ;;
Chris@19 17624 esac
Chris@19 17625 fi
Chris@19 17626 hardcode_libdir_flag_spec_F77='-R$libdir'
Chris@19 17627 hardcode_shlibpath_var_F77=no
Chris@19 17628 case $host_os in
Chris@19 17629 solaris2.[0-5] | solaris2.[0-5].*) ;;
Chris@19 17630 *)
Chris@19 17631 # The compiler driver will combine and reorder linker options,
Chris@19 17632 # but understands `-z linker_flag'. GCC discards it without `$wl',
Chris@19 17633 # but is careful enough not to reorder.
Chris@19 17634 # Supported since Solaris 2.6 (maybe 2.5.1?)
Chris@19 17635 if test "$GCC" = yes; then
Chris@19 17636 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
Chris@19 17637 else
Chris@19 17638 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
Chris@19 17639 fi
Chris@19 17640 ;;
Chris@19 17641 esac
Chris@19 17642 link_all_deplibs_F77=yes
Chris@19 17643 ;;
Chris@19 17644
Chris@19 17645 sunos4*)
Chris@19 17646 if test "x$host_vendor" = xsequent; then
Chris@19 17647 # Use $CC to link under sequent, because it throws in some extra .o
Chris@19 17648 # files that make .init and .fini sections work.
Chris@19 17649 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 17650 else
Chris@19 17651 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
Chris@19 17652 fi
Chris@19 17653 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@19 17654 hardcode_direct_F77=yes
Chris@19 17655 hardcode_minus_L_F77=yes
Chris@19 17656 hardcode_shlibpath_var_F77=no
Chris@19 17657 ;;
Chris@19 17658
Chris@19 17659 sysv4)
Chris@19 17660 case $host_vendor in
Chris@19 17661 sni)
Chris@19 17662 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@19 17663 hardcode_direct_F77=yes # is this really true???
Chris@19 17664 ;;
Chris@19 17665 siemens)
Chris@19 17666 ## LD is ld it makes a PLAMLIB
Chris@19 17667 ## CC just makes a GrossModule.
Chris@19 17668 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
Chris@19 17669 reload_cmds_F77='$CC -r -o $output$reload_objs'
Chris@19 17670 hardcode_direct_F77=no
Chris@19 17671 ;;
Chris@19 17672 motorola)
Chris@19 17673 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@19 17674 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
Chris@19 17675 ;;
Chris@19 17676 esac
Chris@19 17677 runpath_var='LD_RUN_PATH'
Chris@19 17678 hardcode_shlibpath_var_F77=no
Chris@19 17679 ;;
Chris@19 17680
Chris@19 17681 sysv4.3*)
Chris@19 17682 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@19 17683 hardcode_shlibpath_var_F77=no
Chris@19 17684 export_dynamic_flag_spec_F77='-Bexport'
Chris@19 17685 ;;
Chris@19 17686
Chris@19 17687 sysv4*MP*)
Chris@19 17688 if test -d /usr/nec; then
Chris@19 17689 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@19 17690 hardcode_shlibpath_var_F77=no
Chris@19 17691 runpath_var=LD_RUN_PATH
Chris@19 17692 hardcode_runpath_var=yes
Chris@19 17693 ld_shlibs_F77=yes
Chris@19 17694 fi
Chris@19 17695 ;;
Chris@19 17696
Chris@19 17697 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Chris@19 17698 no_undefined_flag_F77='${wl}-z,text'
Chris@19 17699 archive_cmds_need_lc_F77=no
Chris@19 17700 hardcode_shlibpath_var_F77=no
Chris@19 17701 runpath_var='LD_RUN_PATH'
Chris@19 17702
Chris@19 17703 if test "$GCC" = yes; then
Chris@19 17704 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 17705 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 17706 else
Chris@19 17707 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 17708 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 17709 fi
Chris@19 17710 ;;
Chris@19 17711
Chris@19 17712 sysv5* | sco3.2v5* | sco5v6*)
Chris@19 17713 # Note: We can NOT use -z defs as we might desire, because we do not
Chris@19 17714 # link with -lc, and that would cause any symbols used from libc to
Chris@19 17715 # always be unresolved, which means just about no library would
Chris@19 17716 # ever link correctly. If we're not using GNU ld we use -z text
Chris@19 17717 # though, which does catch some bad symbols but isn't as heavy-handed
Chris@19 17718 # as -z defs.
Chris@19 17719 no_undefined_flag_F77='${wl}-z,text'
Chris@19 17720 allow_undefined_flag_F77='${wl}-z,nodefs'
Chris@19 17721 archive_cmds_need_lc_F77=no
Chris@19 17722 hardcode_shlibpath_var_F77=no
Chris@19 17723 hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
Chris@19 17724 hardcode_libdir_separator_F77=':'
Chris@19 17725 link_all_deplibs_F77=yes
Chris@19 17726 export_dynamic_flag_spec_F77='${wl}-Bexport'
Chris@19 17727 runpath_var='LD_RUN_PATH'
Chris@19 17728
Chris@19 17729 if test "$GCC" = yes; then
Chris@19 17730 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 17731 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 17732 else
Chris@19 17733 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 17734 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@19 17735 fi
Chris@19 17736 ;;
Chris@19 17737
Chris@19 17738 uts4*)
Chris@19 17739 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@19 17740 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@19 17741 hardcode_shlibpath_var_F77=no
Chris@19 17742 ;;
Chris@19 17743
Chris@19 17744 *)
Chris@19 17745 ld_shlibs_F77=no
Chris@19 17746 ;;
Chris@19 17747 esac
Chris@19 17748
Chris@19 17749 if test x$host_vendor = xsni; then
Chris@19 17750 case $host in
Chris@19 17751 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Chris@19 17752 export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
Chris@19 17753 ;;
Chris@19 17754 esac
Chris@19 17755 fi
Chris@19 17756 fi
Chris@19 17757
Chris@19 17758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
Chris@19 17759 $as_echo "$ld_shlibs_F77" >&6; }
Chris@19 17760 test "$ld_shlibs_F77" = no && can_build_shared=no
Chris@19 17761
Chris@19 17762 with_gnu_ld_F77=$with_gnu_ld
Chris@19 17763
Chris@19 17764
Chris@19 17765
Chris@19 17766
Chris@19 17767
Chris@19 17768
Chris@19 17769 #
Chris@19 17770 # Do we need to explicitly link libc?
Chris@19 17771 #
Chris@19 17772 case "x$archive_cmds_need_lc_F77" in
Chris@19 17773 x|xyes)
Chris@19 17774 # Assume -lc should be added
Chris@19 17775 archive_cmds_need_lc_F77=yes
Chris@19 17776
Chris@19 17777 if test "$enable_shared" = yes && test "$GCC" = yes; then
Chris@19 17778 case $archive_cmds_F77 in
Chris@19 17779 *'~'*)
Chris@19 17780 # FIXME: we may have to deal with multi-command sequences.
Chris@19 17781 ;;
Chris@19 17782 '$CC '*)
Chris@19 17783 # Test whether the compiler implicitly links with -lc since on some
Chris@19 17784 # systems, -lgcc has to come before -lc. If gcc already passes -lc
Chris@19 17785 # to ld, don't add -lc before -lgcc.
Chris@19 17786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Chris@19 17787 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Chris@19 17788 if ${lt_cv_archive_cmds_need_lc_F77+:} false; then :
Chris@19 17789 $as_echo_n "(cached) " >&6
Chris@19 17790 else
Chris@19 17791 $RM conftest*
Chris@19 17792 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@19 17793
Chris@19 17794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@19 17795 (eval $ac_compile) 2>&5
Chris@19 17796 ac_status=$?
Chris@19 17797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@19 17798 test $ac_status = 0; } 2>conftest.err; then
Chris@19 17799 soname=conftest
Chris@19 17800 lib=conftest
Chris@19 17801 libobjs=conftest.$ac_objext
Chris@19 17802 deplibs=
Chris@19 17803 wl=$lt_prog_compiler_wl_F77
Chris@19 17804 pic_flag=$lt_prog_compiler_pic_F77
Chris@19 17805 compiler_flags=-v
Chris@19 17806 linker_flags=-v
Chris@19 17807 verstring=
Chris@19 17808 output_objdir=.
Chris@19 17809 libname=conftest
Chris@19 17810 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
Chris@19 17811 allow_undefined_flag_F77=
Chris@19 17812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Chris@19 17813 (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Chris@19 17814 ac_status=$?
Chris@19 17815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@19 17816 test $ac_status = 0; }
Chris@19 17817 then
Chris@19 17818 lt_cv_archive_cmds_need_lc_F77=no
Chris@19 17819 else
Chris@19 17820 lt_cv_archive_cmds_need_lc_F77=yes
Chris@19 17821 fi
Chris@19 17822 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
Chris@19 17823 else
Chris@19 17824 cat conftest.err 1>&5
Chris@19 17825 fi
Chris@19 17826 $RM conftest*
Chris@19 17827
Chris@19 17828 fi
Chris@19 17829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5
Chris@19 17830 $as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; }
Chris@19 17831 archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77
Chris@19 17832 ;;
Chris@19 17833 esac
Chris@19 17834 fi
Chris@19 17835 ;;
Chris@19 17836 esac
Chris@19 17837
Chris@19 17838
Chris@19 17839
Chris@19 17840
Chris@19 17841
Chris@19 17842
Chris@19 17843
Chris@19 17844
Chris@19 17845
Chris@19 17846
Chris@19 17847
Chris@19 17848
Chris@19 17849
Chris@19 17850
Chris@19 17851
Chris@19 17852
Chris@19 17853
Chris@19 17854
Chris@19 17855
Chris@19 17856
Chris@19 17857
Chris@19 17858
Chris@19 17859
Chris@19 17860
Chris@19 17861
Chris@19 17862
Chris@19 17863
Chris@19 17864
Chris@19 17865
Chris@19 17866
Chris@19 17867
Chris@19 17868
Chris@19 17869
Chris@19 17870
Chris@19 17871
Chris@19 17872
Chris@19 17873
Chris@19 17874
Chris@19 17875
Chris@19 17876
Chris@19 17877
Chris@19 17878
Chris@19 17879
Chris@19 17880
Chris@19 17881
Chris@19 17882
Chris@19 17883
Chris@19 17884
Chris@19 17885
Chris@19 17886
Chris@19 17887
Chris@19 17888
Chris@19 17889
Chris@19 17890
Chris@19 17891
Chris@19 17892
Chris@19 17893
Chris@19 17894
Chris@19 17895
Chris@19 17896
Chris@19 17897
Chris@19 17898
Chris@19 17899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Chris@19 17900 $as_echo_n "checking dynamic linker characteristics... " >&6; }
Chris@19 17901
Chris@19 17902 library_names_spec=
Chris@19 17903 libname_spec='lib$name'
Chris@19 17904 soname_spec=
Chris@19 17905 shrext_cmds=".so"
Chris@19 17906 postinstall_cmds=
Chris@19 17907 postuninstall_cmds=
Chris@19 17908 finish_cmds=
Chris@19 17909 finish_eval=
Chris@19 17910 shlibpath_var=
Chris@19 17911 shlibpath_overrides_runpath=unknown
Chris@19 17912 version_type=none
Chris@19 17913 dynamic_linker="$host_os ld.so"
Chris@19 17914 sys_lib_dlsearch_path_spec="/lib /usr/lib"
Chris@19 17915 need_lib_prefix=unknown
Chris@19 17916 hardcode_into_libs=no
Chris@19 17917
Chris@19 17918 # when you set need_version to no, make sure it does not cause -set_version
Chris@19 17919 # flags to be left without arguments
Chris@19 17920 need_version=unknown
Chris@19 17921
Chris@19 17922 case $host_os in
Chris@19 17923 aix3*)
Chris@19 17924 version_type=linux # correct to gnu/linux during the next big refactor
Chris@19 17925 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
Chris@19 17926 shlibpath_var=LIBPATH
Chris@19 17927
Chris@19 17928 # AIX 3 has no versioning support, so we append a major version to the name.
Chris@19 17929 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 17930 ;;
Chris@19 17931
Chris@19 17932 aix[4-9]*)
Chris@19 17933 version_type=linux # correct to gnu/linux during the next big refactor
Chris@19 17934 need_lib_prefix=no
Chris@19 17935 need_version=no
Chris@19 17936 hardcode_into_libs=yes
Chris@19 17937 if test "$host_cpu" = ia64; then
Chris@19 17938 # AIX 5 supports IA64
Chris@19 17939 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
Chris@19 17940 shlibpath_var=LD_LIBRARY_PATH
Chris@19 17941 else
Chris@19 17942 # With GCC up to 2.95.x, collect2 would create an import file
Chris@19 17943 # for dependence libraries. The import file would start with
Chris@19 17944 # the line `#! .'. This would cause the generated library to
Chris@19 17945 # depend on `.', always an invalid library. This was fixed in
Chris@19 17946 # development snapshots of GCC prior to 3.0.
Chris@19 17947 case $host_os in
Chris@19 17948 aix4 | aix4.[01] | aix4.[01].*)
Chris@19 17949 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
Chris@19 17950 echo ' yes '
Chris@19 17951 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
Chris@19 17952 :
Chris@19 17953 else
Chris@19 17954 can_build_shared=no
Chris@19 17955 fi
Chris@19 17956 ;;
Chris@19 17957 esac
Chris@19 17958 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
Chris@19 17959 # soname into executable. Probably we can add versioning support to
Chris@19 17960 # collect2, so additional links can be useful in future.
Chris@19 17961 if test "$aix_use_runtimelinking" = yes; then
Chris@19 17962 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
Chris@19 17963 # instead of lib<name>.a to let people know that these are not
Chris@19 17964 # typical AIX shared libraries.
Chris@19 17965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@19 17966 else
Chris@19 17967 # We preserve .a as extension for shared libraries through AIX4.2
Chris@19 17968 # and later when we are not doing run time linking.
Chris@19 17969 library_names_spec='${libname}${release}.a $libname.a'
Chris@19 17970 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 17971 fi
Chris@19 17972 shlibpath_var=LIBPATH
Chris@19 17973 fi
Chris@19 17974 ;;
Chris@19 17975
Chris@19 17976 amigaos*)
Chris@19 17977 case $host_cpu in
Chris@19 17978 powerpc)
Chris@19 17979 # Since July 2007 AmigaOS4 officially supports .so libraries.
Chris@19 17980 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Chris@19 17981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@19 17982 ;;
Chris@19 17983 m68k)
Chris@19 17984 library_names_spec='$libname.ixlibrary $libname.a'
Chris@19 17985 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Chris@19 17986 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
Chris@19 17987 ;;
Chris@19 17988 esac
Chris@19 17989 ;;
Chris@19 17990
Chris@19 17991 beos*)
Chris@19 17992 library_names_spec='${libname}${shared_ext}'
Chris@19 17993 dynamic_linker="$host_os ld.so"
Chris@19 17994 shlibpath_var=LIBRARY_PATH
Chris@19 17995 ;;
Chris@19 17996
Chris@19 17997 bsdi[45]*)
Chris@19 17998 version_type=linux # correct to gnu/linux during the next big refactor
Chris@19 17999 need_version=no
Chris@19 18000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@19 18001 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 18002 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
Chris@19 18003 shlibpath_var=LD_LIBRARY_PATH
Chris@19 18004 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
Chris@19 18005 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
Chris@19 18006 # the default ld.so.conf also contains /usr/contrib/lib and
Chris@19 18007 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
Chris@19 18008 # libtool to hard-code these into programs
Chris@19 18009 ;;
Chris@19 18010
Chris@19 18011 cygwin* | mingw* | pw32* | cegcc*)
Chris@19 18012 version_type=windows
Chris@19 18013 shrext_cmds=".dll"
Chris@19 18014 need_version=no
Chris@19 18015 need_lib_prefix=no
Chris@19 18016
Chris@19 18017 case $GCC,$cc_basename in
Chris@19 18018 yes,*)
Chris@19 18019 # gcc
Chris@19 18020 library_names_spec='$libname.dll.a'
Chris@19 18021 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@19 18022 postinstall_cmds='base_file=`basename \${file}`~
Chris@19 18023 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Chris@19 18024 dldir=$destdir/`dirname \$dlpath`~
Chris@19 18025 test -d \$dldir || mkdir -p \$dldir~
Chris@19 18026 $install_prog $dir/$dlname \$dldir/$dlname~
Chris@19 18027 chmod a+x \$dldir/$dlname~
Chris@19 18028 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
Chris@19 18029 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
Chris@19 18030 fi'
Chris@19 18031 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@19 18032 dlpath=$dir/\$dldll~
Chris@19 18033 $RM \$dlpath'
Chris@19 18034 shlibpath_overrides_runpath=yes
Chris@19 18035
Chris@19 18036 case $host_os in
Chris@19 18037 cygwin*)
Chris@19 18038 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Chris@19 18039 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@19 18040
Chris@19 18041 ;;
Chris@19 18042 mingw* | cegcc*)
Chris@19 18043 # MinGW DLLs use traditional 'lib' prefix
Chris@19 18044 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@19 18045 ;;
Chris@19 18046 pw32*)
Chris@19 18047 # pw32 DLLs use 'pw' prefix rather than 'lib'
Chris@19 18048 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@19 18049 ;;
Chris@19 18050 esac
Chris@19 18051 dynamic_linker='Win32 ld.exe'
Chris@19 18052 ;;
Chris@19 18053
Chris@19 18054 *,cl*)
Chris@19 18055 # Native MSVC
Chris@19 18056 libname_spec='$name'
Chris@19 18057 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@19 18058 library_names_spec='${libname}.dll.lib'
Chris@19 18059
Chris@19 18060 case $build_os in
Chris@19 18061 mingw*)
Chris@19 18062 sys_lib_search_path_spec=
Chris@19 18063 lt_save_ifs=$IFS
Chris@19 18064 IFS=';'
Chris@19 18065 for lt_path in $LIB
Chris@19 18066 do
Chris@19 18067 IFS=$lt_save_ifs
Chris@19 18068 # Let DOS variable expansion print the short 8.3 style file name.
Chris@19 18069 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
Chris@19 18070 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
Chris@19 18071 done
Chris@19 18072 IFS=$lt_save_ifs
Chris@19 18073 # Convert to MSYS style.
Chris@19 18074 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
Chris@19 18075 ;;
Chris@19 18076 cygwin*)
Chris@19 18077 # Convert to unix form, then to dos form, then back to unix form
Chris@19 18078 # but this time dos style (no spaces!) so that the unix form looks
Chris@19 18079 # like /cygdrive/c/PROGRA~1:/cygdr...
Chris@19 18080 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
Chris@19 18081 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
Chris@19 18082 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@19 18083 ;;
Chris@19 18084 *)
Chris@19 18085 sys_lib_search_path_spec="$LIB"
Chris@19 18086 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
Chris@19 18087 # It is most probably a Windows format PATH.
Chris@19 18088 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Chris@19 18089 else
Chris@19 18090 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@19 18091 fi
Chris@19 18092 # FIXME: find the short name or the path components, as spaces are
Chris@19 18093 # common. (e.g. "Program Files" -> "PROGRA~1")
Chris@19 18094 ;;
Chris@19 18095 esac
Chris@19 18096
Chris@19 18097 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@19 18098 postinstall_cmds='base_file=`basename \${file}`~
Chris@19 18099 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Chris@19 18100 dldir=$destdir/`dirname \$dlpath`~
Chris@19 18101 test -d \$dldir || mkdir -p \$dldir~
Chris@19 18102 $install_prog $dir/$dlname \$dldir/$dlname'
Chris@19 18103 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@19 18104 dlpath=$dir/\$dldll~
Chris@19 18105 $RM \$dlpath'
Chris@19 18106 shlibpath_overrides_runpath=yes
Chris@19 18107 dynamic_linker='Win32 link.exe'
Chris@19 18108 ;;
Chris@19 18109
Chris@19 18110 *)
Chris@19 18111 # Assume MSVC wrapper
Chris@19 18112 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Chris@19 18113 dynamic_linker='Win32 ld.exe'
Chris@19 18114 ;;
Chris@19 18115 esac
Chris@19 18116 # FIXME: first we should search . and the directory the executable is in
Chris@19 18117 shlibpath_var=PATH
Chris@19 18118 ;;
Chris@19 18119
Chris@19 18120 darwin* | rhapsody*)
Chris@19 18121 dynamic_linker="$host_os dyld"
Chris@19 18122 version_type=darwin
Chris@19 18123 need_lib_prefix=no
Chris@19 18124 need_version=no
Chris@19 18125 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Chris@19 18126 soname_spec='${libname}${release}${major}$shared_ext'
Chris@19 18127 shlibpath_overrides_runpath=yes
Chris@19 18128 shlibpath_var=DYLD_LIBRARY_PATH
Chris@19 18129 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Chris@19 18130
Chris@19 18131 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
Chris@19 18132 ;;
Chris@19 18133
Chris@19 18134 dgux*)
Chris@19 18135 version_type=linux # correct to gnu/linux during the next big refactor
Chris@19 18136 need_lib_prefix=no
Chris@19 18137 need_version=no
Chris@19 18138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
Chris@19 18139 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 18140 shlibpath_var=LD_LIBRARY_PATH
Chris@19 18141 ;;
Chris@19 18142
Chris@19 18143 freebsd* | dragonfly*)
Chris@19 18144 # DragonFly does not have aout. When/if they implement a new
Chris@19 18145 # versioning mechanism, adjust this.
Chris@19 18146 if test -x /usr/bin/objformat; then
Chris@19 18147 objformat=`/usr/bin/objformat`
Chris@19 18148 else
Chris@19 18149 case $host_os in
Chris@19 18150 freebsd[23].*) objformat=aout ;;
Chris@19 18151 *) objformat=elf ;;
Chris@19 18152 esac
Chris@19 18153 fi
Chris@19 18154 version_type=freebsd-$objformat
Chris@19 18155 case $version_type in
Chris@19 18156 freebsd-elf*)
Chris@19 18157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@19 18158 need_version=no
Chris@19 18159 need_lib_prefix=no
Chris@19 18160 ;;
Chris@19 18161 freebsd-*)
Chris@19 18162 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
Chris@19 18163 need_version=yes
Chris@19 18164 ;;
Chris@19 18165 esac
Chris@19 18166 shlibpath_var=LD_LIBRARY_PATH
Chris@19 18167 case $host_os in
Chris@19 18168 freebsd2.*)
Chris@19 18169 shlibpath_overrides_runpath=yes
Chris@19 18170 ;;
Chris@19 18171 freebsd3.[01]* | freebsdelf3.[01]*)
Chris@19 18172 shlibpath_overrides_runpath=yes
Chris@19 18173 hardcode_into_libs=yes
Chris@19 18174 ;;
Chris@19 18175 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
Chris@19 18176 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Chris@19 18177 shlibpath_overrides_runpath=no
Chris@19 18178 hardcode_into_libs=yes
Chris@19 18179 ;;
Chris@19 18180 *) # from 4.6 on, and DragonFly
Chris@19 18181 shlibpath_overrides_runpath=yes
Chris@19 18182 hardcode_into_libs=yes
Chris@19 18183 ;;
Chris@19 18184 esac
Chris@19 18185 ;;
Chris@19 18186
Chris@19 18187 gnu*)
Chris@19 18188 version_type=linux # correct to gnu/linux during the next big refactor
Chris@19 18189 need_lib_prefix=no
Chris@19 18190 need_version=no
Chris@19 18191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
Chris@19 18192 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 18193 shlibpath_var=LD_LIBRARY_PATH
Chris@19 18194 shlibpath_overrides_runpath=no
Chris@19 18195 hardcode_into_libs=yes
Chris@19 18196 ;;
Chris@19 18197
Chris@19 18198 haiku*)
Chris@19 18199 version_type=linux # correct to gnu/linux during the next big refactor
Chris@19 18200 need_lib_prefix=no
Chris@19 18201 need_version=no
Chris@19 18202 dynamic_linker="$host_os runtime_loader"
Chris@19 18203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
Chris@19 18204 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 18205 shlibpath_var=LIBRARY_PATH
Chris@19 18206 shlibpath_overrides_runpath=yes
Chris@19 18207 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Chris@19 18208 hardcode_into_libs=yes
Chris@19 18209 ;;
Chris@19 18210
Chris@19 18211 hpux9* | hpux10* | hpux11*)
Chris@19 18212 # Give a soname corresponding to the major version so that dld.sl refuses to
Chris@19 18213 # link against other versions.
Chris@19 18214 version_type=sunos
Chris@19 18215 need_lib_prefix=no
Chris@19 18216 need_version=no
Chris@19 18217 case $host_cpu in
Chris@19 18218 ia64*)
Chris@19 18219 shrext_cmds='.so'
Chris@19 18220 hardcode_into_libs=yes
Chris@19 18221 dynamic_linker="$host_os dld.so"
Chris@19 18222 shlibpath_var=LD_LIBRARY_PATH
Chris@19 18223 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@19 18224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@19 18225 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 18226 if test "X$HPUX_IA64_MODE" = X32; then
Chris@19 18227 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Chris@19 18228 else
Chris@19 18229 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Chris@19 18230 fi
Chris@19 18231 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@19 18232 ;;
Chris@19 18233 hppa*64*)
Chris@19 18234 shrext_cmds='.sl'
Chris@19 18235 hardcode_into_libs=yes
Chris@19 18236 dynamic_linker="$host_os dld.sl"
Chris@19 18237 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
Chris@19 18238 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@19 18239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@19 18240 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 18241 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
Chris@19 18242 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@19 18243 ;;
Chris@19 18244 *)
Chris@19 18245 shrext_cmds='.sl'
Chris@19 18246 dynamic_linker="$host_os dld.sl"
Chris@19 18247 shlibpath_var=SHLIB_PATH
Chris@19 18248 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Chris@19 18249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@19 18250 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 18251 ;;
Chris@19 18252 esac
Chris@19 18253 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Chris@19 18254 postinstall_cmds='chmod 555 $lib'
Chris@19 18255 # or fails outright, so override atomically:
Chris@19 18256 install_override_mode=555
Chris@19 18257 ;;
Chris@19 18258
Chris@19 18259 interix[3-9]*)
Chris@19 18260 version_type=linux # correct to gnu/linux during the next big refactor
Chris@19 18261 need_lib_prefix=no
Chris@19 18262 need_version=no
Chris@19 18263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@19 18264 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 18265 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
Chris@19 18266 shlibpath_var=LD_LIBRARY_PATH
Chris@19 18267 shlibpath_overrides_runpath=no
Chris@19 18268 hardcode_into_libs=yes
Chris@19 18269 ;;
Chris@19 18270
Chris@19 18271 irix5* | irix6* | nonstopux*)
Chris@19 18272 case $host_os in
Chris@19 18273 nonstopux*) version_type=nonstopux ;;
Chris@19 18274 *)
Chris@19 18275 if test "$lt_cv_prog_gnu_ld" = yes; then
Chris@19 18276 version_type=linux # correct to gnu/linux during the next big refactor
Chris@19 18277 else
Chris@19 18278 version_type=irix
Chris@19 18279 fi ;;
Chris@19 18280 esac
Chris@19 18281 need_lib_prefix=no
Chris@19 18282 need_version=no
Chris@19 18283 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 18284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@19 18285 case $host_os in
Chris@19 18286 irix5* | nonstopux*)
Chris@19 18287 libsuff= shlibsuff=
Chris@19 18288 ;;
Chris@19 18289 *)
Chris@19 18290 case $LD in # libtool.m4 will add one of these switches to LD
Chris@19 18291 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
Chris@19 18292 libsuff= shlibsuff= libmagic=32-bit;;
Chris@19 18293 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
Chris@19 18294 libsuff=32 shlibsuff=N32 libmagic=N32;;
Chris@19 18295 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
Chris@19 18296 libsuff=64 shlibsuff=64 libmagic=64-bit;;
Chris@19 18297 *) libsuff= shlibsuff= libmagic=never-match;;
Chris@19 18298 esac
Chris@19 18299 ;;
Chris@19 18300 esac
Chris@19 18301 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
Chris@19 18302 shlibpath_overrides_runpath=no
Chris@19 18303 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
Chris@19 18304 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
Chris@19 18305 hardcode_into_libs=yes
Chris@19 18306 ;;
Chris@19 18307
Chris@19 18308 # No shared lib support for Linux oldld, aout, or coff.
Chris@19 18309 linux*oldld* | linux*aout* | linux*coff*)
Chris@19 18310 dynamic_linker=no
Chris@19 18311 ;;
Chris@19 18312
Chris@19 18313 # This must be glibc/ELF.
Chris@19 18314 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@19 18315 version_type=linux # correct to gnu/linux during the next big refactor
Chris@19 18316 need_lib_prefix=no
Chris@19 18317 need_version=no
Chris@19 18318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@19 18319 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 18320 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
Chris@19 18321 shlibpath_var=LD_LIBRARY_PATH
Chris@19 18322 shlibpath_overrides_runpath=no
Chris@19 18323
Chris@19 18324 # Some binutils ld are patched to set DT_RUNPATH
Chris@19 18325 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
Chris@19 18326 $as_echo_n "(cached) " >&6
Chris@19 18327 else
Chris@19 18328 lt_cv_shlibpath_overrides_runpath=no
Chris@19 18329 save_LDFLAGS=$LDFLAGS
Chris@19 18330 save_libdir=$libdir
Chris@19 18331 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
Chris@19 18332 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
Chris@19 18333 cat > conftest.$ac_ext <<_ACEOF
Chris@19 18334 program main
Chris@19 18335
Chris@19 18336 end
Chris@19 18337 _ACEOF
Chris@19 18338 if ac_fn_f77_try_link "$LINENO"; then :
Chris@19 18339 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
Chris@19 18340 lt_cv_shlibpath_overrides_runpath=yes
Chris@19 18341 fi
Chris@19 18342 fi
Chris@19 18343 rm -f core conftest.err conftest.$ac_objext \
Chris@19 18344 conftest$ac_exeext conftest.$ac_ext
Chris@19 18345 LDFLAGS=$save_LDFLAGS
Chris@19 18346 libdir=$save_libdir
Chris@19 18347
Chris@19 18348 fi
Chris@19 18349
Chris@19 18350 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Chris@19 18351
Chris@19 18352 # This implies no fast_install, which is unacceptable.
Chris@19 18353 # Some rework will be needed to allow for fast_install
Chris@19 18354 # before this can be enabled.
Chris@19 18355 hardcode_into_libs=yes
Chris@19 18356
Chris@19 18357 # Append ld.so.conf contents to the search path
Chris@19 18358 if test -f /etc/ld.so.conf; then
Chris@19 18359 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
Chris@19 18360 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
Chris@19 18361 fi
Chris@19 18362
Chris@19 18363 # We used to test for /lib/ld.so.1 and disable shared libraries on
Chris@19 18364 # powerpc, because MkLinux only supported shared libraries with the
Chris@19 18365 # GNU dynamic linker. Since this was broken with cross compilers,
Chris@19 18366 # most powerpc-linux boxes support dynamic linking these days and
Chris@19 18367 # people can always --disable-shared, the test was removed, and we
Chris@19 18368 # assume the GNU/Linux dynamic linker is in use.
Chris@19 18369 dynamic_linker='GNU/Linux ld.so'
Chris@19 18370 ;;
Chris@19 18371
Chris@19 18372 netbsd*)
Chris@19 18373 version_type=sunos
Chris@19 18374 need_lib_prefix=no
Chris@19 18375 need_version=no
Chris@19 18376 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@19 18377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@19 18378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@19 18379 dynamic_linker='NetBSD (a.out) ld.so'
Chris@19 18380 else
Chris@19 18381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@19 18382 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 18383 dynamic_linker='NetBSD ld.elf_so'
Chris@19 18384 fi
Chris@19 18385 shlibpath_var=LD_LIBRARY_PATH
Chris@19 18386 shlibpath_overrides_runpath=yes
Chris@19 18387 hardcode_into_libs=yes
Chris@19 18388 ;;
Chris@19 18389
Chris@19 18390 newsos6)
Chris@19 18391 version_type=linux # correct to gnu/linux during the next big refactor
Chris@19 18392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@19 18393 shlibpath_var=LD_LIBRARY_PATH
Chris@19 18394 shlibpath_overrides_runpath=yes
Chris@19 18395 ;;
Chris@19 18396
Chris@19 18397 *nto* | *qnx*)
Chris@19 18398 version_type=qnx
Chris@19 18399 need_lib_prefix=no
Chris@19 18400 need_version=no
Chris@19 18401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@19 18402 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 18403 shlibpath_var=LD_LIBRARY_PATH
Chris@19 18404 shlibpath_overrides_runpath=no
Chris@19 18405 hardcode_into_libs=yes
Chris@19 18406 dynamic_linker='ldqnx.so'
Chris@19 18407 ;;
Chris@19 18408
Chris@19 18409 openbsd*)
Chris@19 18410 version_type=sunos
Chris@19 18411 sys_lib_dlsearch_path_spec="/usr/lib"
Chris@19 18412 need_lib_prefix=no
Chris@19 18413 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
Chris@19 18414 case $host_os in
Chris@19 18415 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
Chris@19 18416 *) need_version=no ;;
Chris@19 18417 esac
Chris@19 18418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@19 18419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@19 18420 shlibpath_var=LD_LIBRARY_PATH
Chris@19 18421 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@19 18422 case $host_os in
Chris@19 18423 openbsd2.[89] | openbsd2.[89].*)
Chris@19 18424 shlibpath_overrides_runpath=no
Chris@19 18425 ;;
Chris@19 18426 *)
Chris@19 18427 shlibpath_overrides_runpath=yes
Chris@19 18428 ;;
Chris@19 18429 esac
Chris@19 18430 else
Chris@19 18431 shlibpath_overrides_runpath=yes
Chris@19 18432 fi
Chris@19 18433 ;;
Chris@19 18434
Chris@19 18435 os2*)
Chris@19 18436 libname_spec='$name'
Chris@19 18437 shrext_cmds=".dll"
Chris@19 18438 need_lib_prefix=no
Chris@19 18439 library_names_spec='$libname${shared_ext} $libname.a'
Chris@19 18440 dynamic_linker='OS/2 ld.exe'
Chris@19 18441 shlibpath_var=LIBPATH
Chris@19 18442 ;;
Chris@19 18443
Chris@19 18444 osf3* | osf4* | osf5*)
Chris@19 18445 version_type=osf
Chris@19 18446 need_lib_prefix=no
Chris@19 18447 need_version=no
Chris@19 18448 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 18449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@19 18450 shlibpath_var=LD_LIBRARY_PATH
Chris@19 18451 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Chris@19 18452 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
Chris@19 18453 ;;
Chris@19 18454
Chris@19 18455 rdos*)
Chris@19 18456 dynamic_linker=no
Chris@19 18457 ;;
Chris@19 18458
Chris@19 18459 solaris*)
Chris@19 18460 version_type=linux # correct to gnu/linux during the next big refactor
Chris@19 18461 need_lib_prefix=no
Chris@19 18462 need_version=no
Chris@19 18463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@19 18464 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 18465 shlibpath_var=LD_LIBRARY_PATH
Chris@19 18466 shlibpath_overrides_runpath=yes
Chris@19 18467 hardcode_into_libs=yes
Chris@19 18468 # ldd complains unless libraries are executable
Chris@19 18469 postinstall_cmds='chmod +x $lib'
Chris@19 18470 ;;
Chris@19 18471
Chris@19 18472 sunos4*)
Chris@19 18473 version_type=sunos
Chris@19 18474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@19 18475 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
Chris@19 18476 shlibpath_var=LD_LIBRARY_PATH
Chris@19 18477 shlibpath_overrides_runpath=yes
Chris@19 18478 if test "$with_gnu_ld" = yes; then
Chris@19 18479 need_lib_prefix=no
Chris@19 18480 fi
Chris@19 18481 need_version=yes
Chris@19 18482 ;;
Chris@19 18483
Chris@19 18484 sysv4 | sysv4.3*)
Chris@19 18485 version_type=linux # correct to gnu/linux during the next big refactor
Chris@19 18486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@19 18487 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 18488 shlibpath_var=LD_LIBRARY_PATH
Chris@19 18489 case $host_vendor in
Chris@19 18490 sni)
Chris@19 18491 shlibpath_overrides_runpath=no
Chris@19 18492 need_lib_prefix=no
Chris@19 18493 runpath_var=LD_RUN_PATH
Chris@19 18494 ;;
Chris@19 18495 siemens)
Chris@19 18496 need_lib_prefix=no
Chris@19 18497 ;;
Chris@19 18498 motorola)
Chris@19 18499 need_lib_prefix=no
Chris@19 18500 need_version=no
Chris@19 18501 shlibpath_overrides_runpath=no
Chris@19 18502 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
Chris@19 18503 ;;
Chris@19 18504 esac
Chris@19 18505 ;;
Chris@19 18506
Chris@19 18507 sysv4*MP*)
Chris@19 18508 if test -d /usr/nec ;then
Chris@19 18509 version_type=linux # correct to gnu/linux during the next big refactor
Chris@19 18510 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
Chris@19 18511 soname_spec='$libname${shared_ext}.$major'
Chris@19 18512 shlibpath_var=LD_LIBRARY_PATH
Chris@19 18513 fi
Chris@19 18514 ;;
Chris@19 18515
Chris@19 18516 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Chris@19 18517 version_type=freebsd-elf
Chris@19 18518 need_lib_prefix=no
Chris@19 18519 need_version=no
Chris@19 18520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@19 18521 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 18522 shlibpath_var=LD_LIBRARY_PATH
Chris@19 18523 shlibpath_overrides_runpath=yes
Chris@19 18524 hardcode_into_libs=yes
Chris@19 18525 if test "$with_gnu_ld" = yes; then
Chris@19 18526 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Chris@19 18527 else
Chris@19 18528 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Chris@19 18529 case $host_os in
Chris@19 18530 sco3.2v5*)
Chris@19 18531 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
Chris@19 18532 ;;
Chris@19 18533 esac
Chris@19 18534 fi
Chris@19 18535 sys_lib_dlsearch_path_spec='/usr/lib'
Chris@19 18536 ;;
Chris@19 18537
Chris@19 18538 tpf*)
Chris@19 18539 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Chris@19 18540 version_type=linux # correct to gnu/linux during the next big refactor
Chris@19 18541 need_lib_prefix=no
Chris@19 18542 need_version=no
Chris@19 18543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@19 18544 shlibpath_var=LD_LIBRARY_PATH
Chris@19 18545 shlibpath_overrides_runpath=no
Chris@19 18546 hardcode_into_libs=yes
Chris@19 18547 ;;
Chris@19 18548
Chris@19 18549 uts4*)
Chris@19 18550 version_type=linux # correct to gnu/linux during the next big refactor
Chris@19 18551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@19 18552 soname_spec='${libname}${release}${shared_ext}$major'
Chris@19 18553 shlibpath_var=LD_LIBRARY_PATH
Chris@19 18554 ;;
Chris@19 18555
Chris@19 18556 *)
Chris@19 18557 dynamic_linker=no
Chris@19 18558 ;;
Chris@19 18559 esac
Chris@19 18560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Chris@19 18561 $as_echo "$dynamic_linker" >&6; }
Chris@19 18562 test "$dynamic_linker" = no && can_build_shared=no
Chris@19 18563
Chris@19 18564 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Chris@19 18565 if test "$GCC" = yes; then
Chris@19 18566 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
Chris@19 18567 fi
Chris@19 18568
Chris@19 18569 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
Chris@19 18570 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
Chris@19 18571 fi
Chris@19 18572 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
Chris@19 18573 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
Chris@19 18574 fi
Chris@19 18575
Chris@19 18576
Chris@19 18577
Chris@19 18578
Chris@19 18579
Chris@19 18580
Chris@19 18581
Chris@19 18582
Chris@19 18583
Chris@19 18584
Chris@19 18585
Chris@19 18586
Chris@19 18587
Chris@19 18588
Chris@19 18589
Chris@19 18590
Chris@19 18591
Chris@19 18592
Chris@19 18593
Chris@19 18594
Chris@19 18595
Chris@19 18596
Chris@19 18597
Chris@19 18598
Chris@19 18599
Chris@19 18600
Chris@19 18601
Chris@19 18602
Chris@19 18603
Chris@19 18604
Chris@19 18605
Chris@19 18606
Chris@19 18607
Chris@19 18608
Chris@19 18609
Chris@19 18610
Chris@19 18611
Chris@19 18612
Chris@19 18613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Chris@19 18614 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Chris@19 18615 hardcode_action_F77=
Chris@19 18616 if test -n "$hardcode_libdir_flag_spec_F77" ||
Chris@19 18617 test -n "$runpath_var_F77" ||
Chris@19 18618 test "X$hardcode_automatic_F77" = "Xyes" ; then
Chris@19 18619
Chris@19 18620 # We can hardcode non-existent directories.
Chris@19 18621 if test "$hardcode_direct_F77" != no &&
Chris@19 18622 # If the only mechanism to avoid hardcoding is shlibpath_var, we
Chris@19 18623 # have to relink, otherwise we might link with an installed library
Chris@19 18624 # when we should be linking with a yet-to-be-installed one
Chris@19 18625 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
Chris@19 18626 test "$hardcode_minus_L_F77" != no; then
Chris@19 18627 # Linking always hardcodes the temporary library directory.
Chris@19 18628 hardcode_action_F77=relink
Chris@19 18629 else
Chris@19 18630 # We can link without hardcoding, and we can hardcode nonexisting dirs.
Chris@19 18631 hardcode_action_F77=immediate
Chris@19 18632 fi
Chris@19 18633 else
Chris@19 18634 # We cannot hardcode anything, or else we can only hardcode existing
Chris@19 18635 # directories.
Chris@19 18636 hardcode_action_F77=unsupported
Chris@19 18637 fi
Chris@19 18638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
Chris@19 18639 $as_echo "$hardcode_action_F77" >&6; }
Chris@19 18640
Chris@19 18641 if test "$hardcode_action_F77" = relink ||
Chris@19 18642 test "$inherit_rpath_F77" = yes; then
Chris@19 18643 # Fast installation is not supported
Chris@19 18644 enable_fast_install=no
Chris@19 18645 elif test "$shlibpath_overrides_runpath" = yes ||
Chris@19 18646 test "$enable_shared" = no; then
Chris@19 18647 # Fast installation is not necessary
Chris@19 18648 enable_fast_install=needless
Chris@19 18649 fi
Chris@19 18650
Chris@19 18651
Chris@19 18652
Chris@19 18653
Chris@19 18654
Chris@19 18655
Chris@19 18656
Chris@19 18657 fi # test -n "$compiler"
Chris@19 18658
Chris@19 18659 GCC=$lt_save_GCC
Chris@19 18660 CC="$lt_save_CC"
Chris@19 18661 CFLAGS="$lt_save_CFLAGS"
Chris@19 18662 fi # test "$_lt_disable_F77" != yes
Chris@19 18663
Chris@19 18664 ac_ext=c
Chris@19 18665 ac_cpp='$CPP $CPPFLAGS'
Chris@19 18666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@19 18667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 18668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@19 18669
Chris@19 18670
Chris@19 18671 if test -z "$F77"; then
Chris@19 18672 enable_fortran=no
Chris@19 18673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Couldn't find f77 compiler; using default Fortran wrappers." >&5
Chris@19 18674 $as_echo "$as_me: WARNING: *** Couldn't find f77 compiler; using default Fortran wrappers." >&2;}
Chris@19 18675 else
Chris@19 18676 ac_ext=f
Chris@19 18677 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@19 18678 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 18679 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@19 18680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5
Chris@19 18681 $as_echo_n "checking how to get verbose linking output from $F77... " >&6; }
Chris@19 18682 if ${ac_cv_prog_f77_v+:} false; then :
Chris@19 18683 $as_echo_n "(cached) " >&6
Chris@19 18684 else
Chris@19 18685 cat > conftest.$ac_ext <<_ACEOF
Chris@19 18686 program main
Chris@19 18687
Chris@19 18688 end
Chris@19 18689 _ACEOF
Chris@19 18690 if ac_fn_f77_try_compile "$LINENO"; then :
Chris@19 18691 ac_cv_prog_f77_v=
Chris@19 18692 # Try some options frequently used verbose output
Chris@19 18693 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
Chris@19 18694 cat > conftest.$ac_ext <<_ACEOF
Chris@19 18695 program main
Chris@19 18696
Chris@19 18697 end
Chris@19 18698 _ACEOF
Chris@19 18699
Chris@19 18700 # Compile and link our simple test program by passing a flag (argument
Chris@19 18701 # 1 to this macro) to the Fortran compiler in order to get
Chris@19 18702 # "verbose" output that we can then parse for the Fortran linker
Chris@19 18703 # flags.
Chris@19 18704 ac_save_FFLAGS=$FFLAGS
Chris@19 18705 FFLAGS="$FFLAGS $ac_verb"
Chris@19 18706 eval "set x $ac_link"
Chris@19 18707 shift
Chris@19 18708 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
Chris@19 18709 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
Chris@19 18710 # LIBRARY_PATH; skip all such settings.
Chris@19 18711 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
Chris@19 18712 sed '/^Driving:/d; /^Configured with:/d;
Chris@19 18713 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
Chris@19 18714 $as_echo "$ac_f77_v_output" >&5
Chris@19 18715 FFLAGS=$ac_save_FFLAGS
Chris@19 18716
Chris@19 18717 rm -rf conftest*
Chris@19 18718
Chris@19 18719 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
Chris@19 18720 # /foo, /bar, and /baz are search directories for the Fortran linker.
Chris@19 18721 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
Chris@19 18722 ac_f77_v_output="`echo $ac_f77_v_output |
Chris@19 18723 grep 'LPATH is:' |
Chris@19 18724 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
Chris@19 18725
Chris@19 18726 # FIXME: we keep getting bitten by quoted arguments; a more general fix
Chris@19 18727 # that detects unbalanced quotes in FLIBS should be implemented
Chris@19 18728 # and (ugh) tested at some point.
Chris@19 18729 case $ac_f77_v_output in
Chris@19 18730 # With xlf replace commas with spaces,
Chris@19 18731 # and remove "-link" and closing parenthesis.
Chris@19 18732 *xlfentry*)
Chris@19 18733 ac_f77_v_output=`echo $ac_f77_v_output |
Chris@19 18734 sed '
Chris@19 18735 s/,/ /g
Chris@19 18736 s/ -link / /g
Chris@19 18737 s/) *$//
Chris@19 18738 '
Chris@19 18739 ` ;;
Chris@19 18740
Chris@19 18741 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
Chris@19 18742 # $LIBS confuse us, and the libraries appear later in the output anyway).
Chris@19 18743 *mGLOB_options_string*)
Chris@19 18744 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
Chris@19 18745
Chris@19 18746 # Portland Group compiler has singly- or doubly-quoted -cmdline argument
Chris@19 18747 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
Chris@19 18748 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
Chris@19 18749 *-cmdline\ * | *-ignore\ * | *-def\ *)
Chris@19 18750 ac_f77_v_output=`echo $ac_f77_v_output | sed "\
Chris@19 18751 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
Chris@19 18752 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
Chris@19 18753 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
Chris@19 18754
Chris@19 18755 # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
Chris@19 18756 *fort77*f2c*gcc*)
Chris@19 18757 ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n '
Chris@19 18758 /:[ ]\+Running[ ]\{1,\}"gcc"/{
Chris@19 18759 /"-c"/d
Chris@19 18760 /[.]c"*/d
Chris@19 18761 s/^.*"gcc"/"gcc"/
Chris@19 18762 s/"//gp
Chris@19 18763 }'` ;;
Chris@19 18764
Chris@19 18765 # If we are using Cray Fortran then delete quotes.
Chris@19 18766 *cft90*)
Chris@19 18767 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
Chris@19 18768 esac
Chris@19 18769
Chris@19 18770
Chris@19 18771 # look for -l* and *.a constructs in the output
Chris@19 18772 for ac_arg in $ac_f77_v_output; do
Chris@19 18773 case $ac_arg in
Chris@19 18774 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
Chris@19 18775 ac_cv_prog_f77_v=$ac_verb
Chris@19 18776 break 2 ;;
Chris@19 18777 esac
Chris@19 18778 done
Chris@19 18779 done
Chris@19 18780 if test -z "$ac_cv_prog_f77_v"; then
Chris@19 18781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5
Chris@19 18782 $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
Chris@19 18783 fi
Chris@19 18784 else
Chris@19 18785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
Chris@19 18786 $as_echo "$as_me: WARNING: compilation failed" >&2;}
Chris@19 18787 fi
Chris@19 18788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 18789
Chris@19 18790 fi
Chris@19 18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5
Chris@19 18792 $as_echo "$ac_cv_prog_f77_v" >&6; }
Chris@19 18793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5
Chris@19 18794 $as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; }
Chris@19 18795 if ${ac_cv_f77_libs+:} false; then :
Chris@19 18796 $as_echo_n "(cached) " >&6
Chris@19 18797 else
Chris@19 18798 if test "x$FLIBS" != "x"; then
Chris@19 18799 ac_cv_f77_libs="$FLIBS" # Let the user override the test.
Chris@19 18800 else
Chris@19 18801
Chris@19 18802 cat > conftest.$ac_ext <<_ACEOF
Chris@19 18803 program main
Chris@19 18804
Chris@19 18805 end
Chris@19 18806 _ACEOF
Chris@19 18807
Chris@19 18808 # Compile and link our simple test program by passing a flag (argument
Chris@19 18809 # 1 to this macro) to the Fortran compiler in order to get
Chris@19 18810 # "verbose" output that we can then parse for the Fortran linker
Chris@19 18811 # flags.
Chris@19 18812 ac_save_FFLAGS=$FFLAGS
Chris@19 18813 FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
Chris@19 18814 eval "set x $ac_link"
Chris@19 18815 shift
Chris@19 18816 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
Chris@19 18817 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
Chris@19 18818 # LIBRARY_PATH; skip all such settings.
Chris@19 18819 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
Chris@19 18820 sed '/^Driving:/d; /^Configured with:/d;
Chris@19 18821 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
Chris@19 18822 $as_echo "$ac_f77_v_output" >&5
Chris@19 18823 FFLAGS=$ac_save_FFLAGS
Chris@19 18824
Chris@19 18825 rm -rf conftest*
Chris@19 18826
Chris@19 18827 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
Chris@19 18828 # /foo, /bar, and /baz are search directories for the Fortran linker.
Chris@19 18829 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
Chris@19 18830 ac_f77_v_output="`echo $ac_f77_v_output |
Chris@19 18831 grep 'LPATH is:' |
Chris@19 18832 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
Chris@19 18833
Chris@19 18834 # FIXME: we keep getting bitten by quoted arguments; a more general fix
Chris@19 18835 # that detects unbalanced quotes in FLIBS should be implemented
Chris@19 18836 # and (ugh) tested at some point.
Chris@19 18837 case $ac_f77_v_output in
Chris@19 18838 # With xlf replace commas with spaces,
Chris@19 18839 # and remove "-link" and closing parenthesis.
Chris@19 18840 *xlfentry*)
Chris@19 18841 ac_f77_v_output=`echo $ac_f77_v_output |
Chris@19 18842 sed '
Chris@19 18843 s/,/ /g
Chris@19 18844 s/ -link / /g
Chris@19 18845 s/) *$//
Chris@19 18846 '
Chris@19 18847 ` ;;
Chris@19 18848
Chris@19 18849 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
Chris@19 18850 # $LIBS confuse us, and the libraries appear later in the output anyway).
Chris@19 18851 *mGLOB_options_string*)
Chris@19 18852 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
Chris@19 18853
Chris@19 18854 # Portland Group compiler has singly- or doubly-quoted -cmdline argument
Chris@19 18855 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
Chris@19 18856 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
Chris@19 18857 *-cmdline\ * | *-ignore\ * | *-def\ *)
Chris@19 18858 ac_f77_v_output=`echo $ac_f77_v_output | sed "\
Chris@19 18859 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
Chris@19 18860 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
Chris@19 18861 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
Chris@19 18862
Chris@19 18863 # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
Chris@19 18864 *fort77*f2c*gcc*)
Chris@19 18865 ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n '
Chris@19 18866 /:[ ]\+Running[ ]\{1,\}"gcc"/{
Chris@19 18867 /"-c"/d
Chris@19 18868 /[.]c"*/d
Chris@19 18869 s/^.*"gcc"/"gcc"/
Chris@19 18870 s/"//gp
Chris@19 18871 }'` ;;
Chris@19 18872
Chris@19 18873 # If we are using Cray Fortran then delete quotes.
Chris@19 18874 *cft90*)
Chris@19 18875 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
Chris@19 18876 esac
Chris@19 18877
Chris@19 18878
Chris@19 18879
Chris@19 18880 ac_cv_f77_libs=
Chris@19 18881
Chris@19 18882 # Save positional arguments (if any)
Chris@19 18883 ac_save_positional="$@"
Chris@19 18884
Chris@19 18885 set X $ac_f77_v_output
Chris@19 18886 while test $# != 1; do
Chris@19 18887 shift
Chris@19 18888 ac_arg=$1
Chris@19 18889 case $ac_arg in
Chris@19 18890 [\\/]*.a | ?:[\\/]*.a)
Chris@19 18891 ac_exists=false
Chris@19 18892 for ac_i in $ac_cv_f77_libs; do
Chris@19 18893 if test x"$ac_arg" = x"$ac_i"; then
Chris@19 18894 ac_exists=true
Chris@19 18895 break
Chris@19 18896 fi
Chris@19 18897 done
Chris@19 18898
Chris@19 18899 if test x"$ac_exists" = xtrue; then :
Chris@19 18900
Chris@19 18901 else
Chris@19 18902 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
Chris@19 18903 fi
Chris@19 18904 ;;
Chris@19 18905 -bI:*)
Chris@19 18906 ac_exists=false
Chris@19 18907 for ac_i in $ac_cv_f77_libs; do
Chris@19 18908 if test x"$ac_arg" = x"$ac_i"; then
Chris@19 18909 ac_exists=true
Chris@19 18910 break
Chris@19 18911 fi
Chris@19 18912 done
Chris@19 18913
Chris@19 18914 if test x"$ac_exists" = xtrue; then :
Chris@19 18915
Chris@19 18916 else
Chris@19 18917 if test "$ac_compiler_gnu" = yes; then
Chris@19 18918 for ac_link_opt in $ac_arg; do
Chris@19 18919 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
Chris@19 18920 done
Chris@19 18921 else
Chris@19 18922 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
Chris@19 18923 fi
Chris@19 18924 fi
Chris@19 18925 ;;
Chris@19 18926 # Ignore these flags.
Chris@19 18927 -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
Chris@19 18928 |-LANG:=* | -LIST:* | -LNO:* | -link)
Chris@19 18929 ;;
Chris@19 18930 -lkernel32)
Chris@19 18931 case $host_os in
Chris@19 18932 *cygwin*) ;;
Chris@19 18933 *) ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
Chris@19 18934 ;;
Chris@19 18935 esac
Chris@19 18936 ;;
Chris@19 18937 -[LRuYz])
Chris@19 18938 # These flags, when seen by themselves, take an argument.
Chris@19 18939 # We remove the space between option and argument and re-iterate
Chris@19 18940 # unless we find an empty arg or a new option (starting with -)
Chris@19 18941 case $2 in
Chris@19 18942 "" | -*);;
Chris@19 18943 *)
Chris@19 18944 ac_arg="$ac_arg$2"
Chris@19 18945 shift; shift
Chris@19 18946 set X $ac_arg "$@"
Chris@19 18947 ;;
Chris@19 18948 esac
Chris@19 18949 ;;
Chris@19 18950 -YP,*)
Chris@19 18951 for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
Chris@19 18952 ac_exists=false
Chris@19 18953 for ac_i in $ac_cv_f77_libs; do
Chris@19 18954 if test x"$ac_j" = x"$ac_i"; then
Chris@19 18955 ac_exists=true
Chris@19 18956 break
Chris@19 18957 fi
Chris@19 18958 done
Chris@19 18959
Chris@19 18960 if test x"$ac_exists" = xtrue; then :
Chris@19 18961
Chris@19 18962 else
Chris@19 18963 ac_arg="$ac_arg $ac_j"
Chris@19 18964 ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
Chris@19 18965 fi
Chris@19 18966 done
Chris@19 18967 ;;
Chris@19 18968 -[lLR]*)
Chris@19 18969 ac_exists=false
Chris@19 18970 for ac_i in $ac_cv_f77_libs; do
Chris@19 18971 if test x"$ac_arg" = x"$ac_i"; then
Chris@19 18972 ac_exists=true
Chris@19 18973 break
Chris@19 18974 fi
Chris@19 18975 done
Chris@19 18976
Chris@19 18977 if test x"$ac_exists" = xtrue; then :
Chris@19 18978
Chris@19 18979 else
Chris@19 18980 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
Chris@19 18981 fi
Chris@19 18982 ;;
Chris@19 18983 -zallextract*| -zdefaultextract)
Chris@19 18984 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
Chris@19 18985 ;;
Chris@19 18986 # Ignore everything else.
Chris@19 18987 esac
Chris@19 18988 done
Chris@19 18989 # restore positional arguments
Chris@19 18990 set X $ac_save_positional; shift
Chris@19 18991
Chris@19 18992 # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
Chris@19 18993 # then we insist that the "run path" must be an absolute path (i.e. it
Chris@19 18994 # must begin with a "/").
Chris@19 18995 case `(uname -sr) 2>/dev/null` in
Chris@19 18996 "SunOS 5"*)
Chris@19 18997 ac_ld_run_path=`$as_echo "$ac_f77_v_output" |
Chris@19 18998 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
Chris@19 18999 test "x$ac_ld_run_path" != x &&
Chris@19 19000 if test "$ac_compiler_gnu" = yes; then
Chris@19 19001 for ac_link_opt in $ac_ld_run_path; do
Chris@19 19002 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
Chris@19 19003 done
Chris@19 19004 else
Chris@19 19005 ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
Chris@19 19006 fi
Chris@19 19007 ;;
Chris@19 19008 esac
Chris@19 19009 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
Chris@19 19010
Chris@19 19011 fi
Chris@19 19012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5
Chris@19 19013 $as_echo "$ac_cv_f77_libs" >&6; }
Chris@19 19014 FLIBS="$ac_cv_f77_libs"
Chris@19 19015
Chris@19 19016
Chris@19 19017 ac_ext=c
Chris@19 19018 ac_cpp='$CPP $CPPFLAGS'
Chris@19 19019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@19 19020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 19021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@19 19022
Chris@19 19023 ac_ext=f
Chris@19 19024 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@19 19025 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 19026 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@19 19027
Chris@19 19028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran 77 libraries" >&5
Chris@19 19029 $as_echo_n "checking for dummy main to link with Fortran 77 libraries... " >&6; }
Chris@19 19030 if ${ac_cv_f77_dummy_main+:} false; then :
Chris@19 19031 $as_echo_n "(cached) " >&6
Chris@19 19032 else
Chris@19 19033 ac_f77_dm_save_LIBS=$LIBS
Chris@19 19034 LIBS="$LIBS $FLIBS"
Chris@19 19035 ac_fortran_dm_var=F77_DUMMY_MAIN
Chris@19 19036 ac_ext=c
Chris@19 19037 ac_cpp='$CPP $CPPFLAGS'
Chris@19 19038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@19 19039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 19040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@19 19041
Chris@19 19042 # First, try linking without a dummy main:
Chris@19 19043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 19044 /* end confdefs.h. */
Chris@19 19045
Chris@19 19046 #ifdef F77_DUMMY_MAIN
Chris@19 19047
Chris@19 19048 # ifdef __cplusplus
Chris@19 19049 extern "C"
Chris@19 19050 # endif
Chris@19 19051 int F77_DUMMY_MAIN() { return 1; }
Chris@19 19052
Chris@19 19053 #endif
Chris@19 19054 int
Chris@19 19055 main ()
Chris@19 19056 {
Chris@19 19057
Chris@19 19058 ;
Chris@19 19059 return 0;
Chris@19 19060 }
Chris@19 19061 _ACEOF
Chris@19 19062 if ac_fn_c_try_link "$LINENO"; then :
Chris@19 19063 ac_cv_fortran_dummy_main=none
Chris@19 19064 else
Chris@19 19065 ac_cv_fortran_dummy_main=unknown
Chris@19 19066 fi
Chris@19 19067 rm -f core conftest.err conftest.$ac_objext \
Chris@19 19068 conftest$ac_exeext conftest.$ac_ext
Chris@19 19069
Chris@19 19070 if test $ac_cv_fortran_dummy_main = unknown; then
Chris@19 19071 for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
Chris@19 19072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 19073 /* end confdefs.h. */
Chris@19 19074 #define $ac_fortran_dm_var $ac_func
Chris@19 19075 #ifdef F77_DUMMY_MAIN
Chris@19 19076
Chris@19 19077 # ifdef __cplusplus
Chris@19 19078 extern "C"
Chris@19 19079 # endif
Chris@19 19080 int F77_DUMMY_MAIN() { return 1; }
Chris@19 19081
Chris@19 19082 #endif
Chris@19 19083 int
Chris@19 19084 main ()
Chris@19 19085 {
Chris@19 19086
Chris@19 19087 ;
Chris@19 19088 return 0;
Chris@19 19089 }
Chris@19 19090 _ACEOF
Chris@19 19091 if ac_fn_c_try_link "$LINENO"; then :
Chris@19 19092 ac_cv_fortran_dummy_main=$ac_func; break
Chris@19 19093 fi
Chris@19 19094 rm -f core conftest.err conftest.$ac_objext \
Chris@19 19095 conftest$ac_exeext conftest.$ac_ext
Chris@19 19096 done
Chris@19 19097 fi
Chris@19 19098 ac_ext=f
Chris@19 19099 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@19 19100 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 19101 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@19 19102 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
Chris@19 19103 rm -rf conftest*
Chris@19 19104 LIBS=$ac_f77_dm_save_LIBS
Chris@19 19105
Chris@19 19106 fi
Chris@19 19107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5
Chris@19 19108 $as_echo "$ac_cv_f77_dummy_main" >&6; }
Chris@19 19109 F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
Chris@19 19110 if test "$F77_DUMMY_MAIN" != unknown; then :
Chris@19 19111 if test $F77_DUMMY_MAIN != none; then
Chris@19 19112
Chris@19 19113 cat >>confdefs.h <<_ACEOF
Chris@19 19114 #define F77_DUMMY_MAIN $F77_DUMMY_MAIN
Chris@19 19115 _ACEOF
Chris@19 19116
Chris@19 19117 if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
Chris@19 19118
Chris@19 19119 $as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
Chris@19 19120
Chris@19 19121 fi
Chris@19 19122 fi
Chris@19 19123 else
Chris@19 19124 enable_fortran=no
Chris@19 19125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Couldn't figure out how to link C and Fortran; using default Fortran wrappers." >&5
Chris@19 19126 $as_echo "$as_me: WARNING: *** Couldn't figure out how to link C and Fortran; using default Fortran wrappers." >&2;}
Chris@19 19127 fi
Chris@19 19128
Chris@19 19129 ac_ext=c
Chris@19 19130 ac_cpp='$CPP $CPPFLAGS'
Chris@19 19131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@19 19132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 19133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@19 19134
Chris@19 19135 fi
Chris@19 19136 else
Chris@19 19137
Chris@19 19138 $as_echo "#define DISABLE_FORTRAN 1" >>confdefs.h
Chris@19 19139
Chris@19 19140 fi
Chris@19 19141
Chris@19 19142 if test "x$enable_fortran" = xyes; then
Chris@19 19143 ac_ext=f
Chris@19 19144 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@19 19145 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 19146 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@19 19147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5
Chris@19 19148 $as_echo_n "checking for Fortran 77 name-mangling scheme... " >&6; }
Chris@19 19149 if ${ac_cv_f77_mangling+:} false; then :
Chris@19 19150 $as_echo_n "(cached) " >&6
Chris@19 19151 else
Chris@19 19152 cat > conftest.$ac_ext <<_ACEOF
Chris@19 19153 subroutine foobar()
Chris@19 19154 return
Chris@19 19155 end
Chris@19 19156 subroutine foo_bar()
Chris@19 19157 return
Chris@19 19158 end
Chris@19 19159 _ACEOF
Chris@19 19160 if ac_fn_f77_try_compile "$LINENO"; then :
Chris@19 19161 mv conftest.$ac_objext cfortran_test.$ac_objext
Chris@19 19162
Chris@19 19163 ac_save_LIBS=$LIBS
Chris@19 19164 LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
Chris@19 19165
Chris@19 19166 ac_ext=c
Chris@19 19167 ac_cpp='$CPP $CPPFLAGS'
Chris@19 19168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@19 19169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 19170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@19 19171 ac_success=no
Chris@19 19172 for ac_foobar in foobar FOOBAR; do
Chris@19 19173 for ac_underscore in "" "_"; do
Chris@19 19174 ac_func="$ac_foobar$ac_underscore"
Chris@19 19175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 19176 /* end confdefs.h. */
Chris@19 19177
Chris@19 19178 /* Override any GCC internal prototype to avoid an error.
Chris@19 19179 Use char because int might match the return type of a GCC
Chris@19 19180 builtin and then its argument prototype would still apply. */
Chris@19 19181 #ifdef __cplusplus
Chris@19 19182 extern "C"
Chris@19 19183 #endif
Chris@19 19184 char $ac_func ();
Chris@19 19185 #ifdef F77_DUMMY_MAIN
Chris@19 19186
Chris@19 19187 # ifdef __cplusplus
Chris@19 19188 extern "C"
Chris@19 19189 # endif
Chris@19 19190 int F77_DUMMY_MAIN() { return 1; }
Chris@19 19191
Chris@19 19192 #endif
Chris@19 19193 int
Chris@19 19194 main ()
Chris@19 19195 {
Chris@19 19196 return $ac_func ();
Chris@19 19197 ;
Chris@19 19198 return 0;
Chris@19 19199 }
Chris@19 19200 _ACEOF
Chris@19 19201 if ac_fn_c_try_link "$LINENO"; then :
Chris@19 19202 ac_success=yes; break 2
Chris@19 19203 fi
Chris@19 19204 rm -f core conftest.err conftest.$ac_objext \
Chris@19 19205 conftest$ac_exeext conftest.$ac_ext
Chris@19 19206 done
Chris@19 19207 done
Chris@19 19208 ac_ext=f
Chris@19 19209 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@19 19210 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 19211 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@19 19212
Chris@19 19213 if test "$ac_success" = "yes"; then
Chris@19 19214 case $ac_foobar in
Chris@19 19215 foobar)
Chris@19 19216 ac_case=lower
Chris@19 19217 ac_foo_bar=foo_bar
Chris@19 19218 ;;
Chris@19 19219 FOOBAR)
Chris@19 19220 ac_case=upper
Chris@19 19221 ac_foo_bar=FOO_BAR
Chris@19 19222 ;;
Chris@19 19223 esac
Chris@19 19224
Chris@19 19225 ac_ext=c
Chris@19 19226 ac_cpp='$CPP $CPPFLAGS'
Chris@19 19227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@19 19228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 19229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@19 19230 ac_success_extra=no
Chris@19 19231 for ac_extra in "" "_"; do
Chris@19 19232 ac_func="$ac_foo_bar$ac_underscore$ac_extra"
Chris@19 19233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 19234 /* end confdefs.h. */
Chris@19 19235
Chris@19 19236 /* Override any GCC internal prototype to avoid an error.
Chris@19 19237 Use char because int might match the return type of a GCC
Chris@19 19238 builtin and then its argument prototype would still apply. */
Chris@19 19239 #ifdef __cplusplus
Chris@19 19240 extern "C"
Chris@19 19241 #endif
Chris@19 19242 char $ac_func ();
Chris@19 19243 #ifdef F77_DUMMY_MAIN
Chris@19 19244
Chris@19 19245 # ifdef __cplusplus
Chris@19 19246 extern "C"
Chris@19 19247 # endif
Chris@19 19248 int F77_DUMMY_MAIN() { return 1; }
Chris@19 19249
Chris@19 19250 #endif
Chris@19 19251 int
Chris@19 19252 main ()
Chris@19 19253 {
Chris@19 19254 return $ac_func ();
Chris@19 19255 ;
Chris@19 19256 return 0;
Chris@19 19257 }
Chris@19 19258 _ACEOF
Chris@19 19259 if ac_fn_c_try_link "$LINENO"; then :
Chris@19 19260 ac_success_extra=yes; break
Chris@19 19261 fi
Chris@19 19262 rm -f core conftest.err conftest.$ac_objext \
Chris@19 19263 conftest$ac_exeext conftest.$ac_ext
Chris@19 19264 done
Chris@19 19265 ac_ext=f
Chris@19 19266 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@19 19267 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 19268 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@19 19269
Chris@19 19270 if test "$ac_success_extra" = "yes"; then
Chris@19 19271 ac_cv_f77_mangling="$ac_case case"
Chris@19 19272 if test -z "$ac_underscore"; then
Chris@19 19273 ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
Chris@19 19274 else
Chris@19 19275 ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
Chris@19 19276 fi
Chris@19 19277 if test -z "$ac_extra"; then
Chris@19 19278 ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
Chris@19 19279 else
Chris@19 19280 ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
Chris@19 19281 fi
Chris@19 19282 else
Chris@19 19283 ac_cv_f77_mangling="unknown"
Chris@19 19284 fi
Chris@19 19285 else
Chris@19 19286 ac_cv_f77_mangling="unknown"
Chris@19 19287 fi
Chris@19 19288
Chris@19 19289 LIBS=$ac_save_LIBS
Chris@19 19290 rm -rf conftest*
Chris@19 19291 rm -f cfortran_test*
Chris@19 19292 else
Chris@19 19293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@19 19294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@19 19295 as_fn_error $? "cannot compile a simple Fortran program
Chris@19 19296 See \`config.log' for more details" "$LINENO" 5; }
Chris@19 19297 fi
Chris@19 19298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@19 19299
Chris@19 19300 fi
Chris@19 19301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_mangling" >&5
Chris@19 19302 $as_echo "$ac_cv_f77_mangling" >&6; }
Chris@19 19303
Chris@19 19304 ac_ext=c
Chris@19 19305 ac_cpp='$CPP $CPPFLAGS'
Chris@19 19306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@19 19307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 19308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@19 19309
Chris@19 19310 ac_ext=f
Chris@19 19311 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@19 19312 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 19313 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@19 19314 case $ac_cv_f77_mangling in
Chris@19 19315 "lower case, no underscore, no extra underscore")
Chris@19 19316 $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
Chris@19 19317
Chris@19 19318 $as_echo "#define F77_FUNC_(name,NAME) name" >>confdefs.h
Chris@19 19319 ;;
Chris@19 19320 "lower case, no underscore, extra underscore")
Chris@19 19321 $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
Chris@19 19322
Chris@19 19323 $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
Chris@19 19324 ;;
Chris@19 19325 "lower case, underscore, no extra underscore")
Chris@19 19326 $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
Chris@19 19327
Chris@19 19328 $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
Chris@19 19329 ;;
Chris@19 19330 "lower case, underscore, extra underscore")
Chris@19 19331 $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
Chris@19 19332
Chris@19 19333 $as_echo "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h
Chris@19 19334 ;;
Chris@19 19335 "upper case, no underscore, no extra underscore")
Chris@19 19336 $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
Chris@19 19337
Chris@19 19338 $as_echo "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h
Chris@19 19339 ;;
Chris@19 19340 "upper case, no underscore, extra underscore")
Chris@19 19341 $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
Chris@19 19342
Chris@19 19343 $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
Chris@19 19344 ;;
Chris@19 19345 "upper case, underscore, no extra underscore")
Chris@19 19346 $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
Chris@19 19347
Chris@19 19348 $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
Chris@19 19349 ;;
Chris@19 19350 "upper case, underscore, extra underscore")
Chris@19 19351 $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
Chris@19 19352
Chris@19 19353 $as_echo "#define F77_FUNC_(name,NAME) NAME ## __" >>confdefs.h
Chris@19 19354 ;;
Chris@19 19355 *)
Chris@19 19356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
Chris@19 19357 $as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
Chris@19 19358 ;;
Chris@19 19359 esac
Chris@19 19360
Chris@19 19361 ac_ext=c
Chris@19 19362 ac_cpp='$CPP $CPPFLAGS'
Chris@19 19363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@19 19364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 19365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@19 19366
Chris@19 19367 ac_ext=f
Chris@19 19368 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@19 19369 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 19370 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@19 19371 case $ac_cv_f77_mangling in
Chris@19 19372 upper*) ac_val="F77FOO" ;;
Chris@19 19373 lower*) ac_val="f77foo" ;;
Chris@19 19374 *) ac_val="unknown" ;;
Chris@19 19375 esac
Chris@19 19376 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
Chris@19 19377
Chris@19 19378 f77foo="$ac_val"
Chris@19 19379
Chris@19 19380 ac_ext=c
Chris@19 19381 ac_cpp='$CPP $CPPFLAGS'
Chris@19 19382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@19 19383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 19384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@19 19385
Chris@19 19386 ac_ext=f
Chris@19 19387 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@19 19388 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 19389 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@19 19390 case $ac_cv_f77_mangling in
Chris@19 19391 upper*) ac_val="F77_FOO" ;;
Chris@19 19392 lower*) ac_val="f77_foo" ;;
Chris@19 19393 *) ac_val="unknown" ;;
Chris@19 19394 esac
Chris@19 19395 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
Chris@19 19396 case $ac_cv_f77_mangling in *," extra underscore"*) ac_val="$ac_val"_ ;; esac
Chris@19 19397
Chris@19 19398 f77_foo="$ac_val"
Chris@19 19399
Chris@19 19400 ac_ext=c
Chris@19 19401 ac_cpp='$CPP $CPPFLAGS'
Chris@19 19402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@19 19403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 19404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@19 19405
Chris@19 19406 f77_foo2=`echo $f77foo | sed 's/77/77_/'`
Chris@19 19407 if test "$f77_foo" = "$f77_foo2"; then
Chris@19 19408
Chris@19 19409 $as_echo "#define F77_FUNC_EQUIV 1" >>confdefs.h
Chris@19 19410
Chris@19 19411
Chris@19 19412 # Include g77 wrappers by default for GNU systems or gfortran
Chris@19 19413 with_g77_wrappers=$ac_cv_f77_compiler_gnu
Chris@19 19414 case $host_os in *gnu*) with_g77_wrappers=yes ;; esac
Chris@19 19415 fi
Chris@19 19416 else
Chris@19 19417 with_g77_wrappers=no
Chris@19 19418 fi
Chris@19 19419
Chris@19 19420
Chris@19 19421 # Check whether --with-g77-wrappers was given.
Chris@19 19422 if test "${with_g77_wrappers+set}" = set; then :
Chris@19 19423 withval=$with_g77_wrappers; with_g77_wrappers=$withval
Chris@19 19424 fi
Chris@19 19425
Chris@19 19426 if test "x$with_g77_wrappers" = "xyes"; then
Chris@19 19427
Chris@19 19428 $as_echo "#define WITH_G77_WRAPPERS 1" >>confdefs.h
Chris@19 19429
Chris@19 19430 fi
Chris@19 19431
Chris@19 19432 have_smp="no"
Chris@19 19433 # Check whether --enable-openmp was given.
Chris@19 19434 if test "${enable_openmp+set}" = set; then :
Chris@19 19435 enableval=$enable_openmp; enable_openmp=$enableval
Chris@19 19436 else
Chris@19 19437 enable_openmp=no
Chris@19 19438 fi
Chris@19 19439
Chris@19 19440
Chris@19 19441 if test "$enable_openmp" = "yes"; then
Chris@19 19442
Chris@19 19443 $as_echo "#define HAVE_OPENMP 1" >>confdefs.h
Chris@19 19444
Chris@19 19445
Chris@19 19446
Chris@19 19447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP flag of C compiler" >&5
Chris@19 19448 $as_echo_n "checking for OpenMP flag of C compiler... " >&6; }
Chris@19 19449 if ${ax_cv_c_openmp+:} false; then :
Chris@19 19450 $as_echo_n "(cached) " >&6
Chris@19 19451 else
Chris@19 19452 saveCFLAGS=$CFLAGS
Chris@19 19453 ax_cv_c_openmp=unknown
Chris@19 19454 # Flags to try: -fopenmp (gcc), -openmp (icc), -mp (SGI & PGI),
Chris@19 19455 # -xopenmp (Sun), -omp (Tru64), -qsmp=omp (AIX), none
Chris@19 19456 ax_openmp_flags="-fopenmp -openmp -mp -xopenmp -omp -qsmp=omp none"
Chris@19 19457 if test "x$OPENMP_CFLAGS" != x; then
Chris@19 19458 ax_openmp_flags="$OPENMP_CFLAGS $ax_openmp_flags"
Chris@19 19459 fi
Chris@19 19460 for ax_openmp_flag in $ax_openmp_flags; do
Chris@19 19461 case $ax_openmp_flag in
Chris@19 19462 none) CFLAGS=$saveC ;;
Chris@19 19463 *) CFLAGS="$saveCFLAGS $ax_openmp_flag" ;;
Chris@19 19464 esac
Chris@19 19465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 19466 /* end confdefs.h. */
Chris@19 19467
Chris@19 19468 /* Override any GCC internal prototype to avoid an error.
Chris@19 19469 Use char because int might match the return type of a GCC
Chris@19 19470 builtin and then its argument prototype would still apply. */
Chris@19 19471 #ifdef __cplusplus
Chris@19 19472 extern "C"
Chris@19 19473 #endif
Chris@19 19474 char omp_set_num_threads ();
Chris@19 19475 #ifdef F77_DUMMY_MAIN
Chris@19 19476
Chris@19 19477 # ifdef __cplusplus
Chris@19 19478 extern "C"
Chris@19 19479 # endif
Chris@19 19480 int F77_DUMMY_MAIN() { return 1; }
Chris@19 19481
Chris@19 19482 #endif
Chris@19 19483 int
Chris@19 19484 main ()
Chris@19 19485 {
Chris@19 19486 return omp_set_num_threads ();
Chris@19 19487 ;
Chris@19 19488 return 0;
Chris@19 19489 }
Chris@19 19490 _ACEOF
Chris@19 19491 if ac_fn_c_try_link "$LINENO"; then :
Chris@19 19492 ax_cv_c_openmp=$ax_openmp_flag; break
Chris@19 19493 fi
Chris@19 19494 rm -f core conftest.err conftest.$ac_objext \
Chris@19 19495 conftest$ac_exeext conftest.$ac_ext
Chris@19 19496 done
Chris@19 19497 CFLAGS=$saveCFLAGS
Chris@19 19498
Chris@19 19499 fi
Chris@19 19500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_openmp" >&5
Chris@19 19501 $as_echo "$ax_cv_c_openmp" >&6; }
Chris@19 19502 if test "x$ax_cv_c_openmp" = "xunknown"; then
Chris@19 19503 as_fn_error $? "don't know how to enable OpenMP" "$LINENO" 5
Chris@19 19504 else
Chris@19 19505 if test "x$ax_cv_c_openmp" != "xnone"; then
Chris@19 19506 OPENMP_CFLAGS=$ax_cv_c_openmp
Chris@19 19507 fi
Chris@19 19508
Chris@19 19509 $as_echo "#define HAVE_OPENMP 1" >>confdefs.h
Chris@19 19510
Chris@19 19511 fi
Chris@19 19512
Chris@19 19513
Chris@19 19514 fi
Chris@19 19515
Chris@19 19516 # Check whether --enable-threads was given.
Chris@19 19517 if test "${enable_threads+set}" = set; then :
Chris@19 19518 enableval=$enable_threads; enable_threads=$enableval
Chris@19 19519 else
Chris@19 19520 enable_threads=no
Chris@19 19521 fi
Chris@19 19522
Chris@19 19523
Chris@19 19524 if test "$enable_threads" = "yes"; then
Chris@19 19525
Chris@19 19526 $as_echo "#define HAVE_THREADS 1" >>confdefs.h
Chris@19 19527
Chris@19 19528 fi
Chris@19 19529
Chris@19 19530
Chris@19 19531 # Check whether --with-combined-threads was given.
Chris@19 19532 if test "${with_combined_threads+set}" = set; then :
Chris@19 19533 withval=$with_combined_threads; with_combined_threads=$withval
Chris@19 19534 else
Chris@19 19535 with_combined_threads=no
Chris@19 19536 fi
Chris@19 19537
Chris@19 19538
Chris@19 19539 if test "$with_combined_threads" = yes; then
Chris@19 19540 if test "$enable_openmp" = "yes"; then
Chris@19 19541 as_fn_error $? "--with-combined-threads incompatible with --enable-openmp" "$LINENO" 5
Chris@19 19542 fi
Chris@19 19543 if test "$enable_threads" != "yes"; then
Chris@19 19544 as_fn_error $? "--with-combined-threads requires --enable-threads" "$LINENO" 5
Chris@19 19545 fi
Chris@19 19546 fi
Chris@19 19547
Chris@19 19548 THREADLIBS=""
Chris@19 19549 if test "$enable_threads" = "yes"; then
Chris@19 19550 # Win32 threads are the default on Windows:
Chris@19 19551 if test -z "$THREADLIBS"; then
Chris@19 19552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32 threads" >&5
Chris@19 19553 $as_echo_n "checking for Win32 threads... " >&6; }
Chris@19 19554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 19555 /* end confdefs.h. */
Chris@19 19556 #include <windows.h>
Chris@19 19557 #ifdef F77_DUMMY_MAIN
Chris@19 19558
Chris@19 19559 # ifdef __cplusplus
Chris@19 19560 extern "C"
Chris@19 19561 # endif
Chris@19 19562 int F77_DUMMY_MAIN() { return 1; }
Chris@19 19563
Chris@19 19564 #endif
Chris@19 19565 int
Chris@19 19566 main ()
Chris@19 19567 {
Chris@19 19568 _beginthreadex(0,0,0,0,0,0);
Chris@19 19569 ;
Chris@19 19570 return 0;
Chris@19 19571 }
Chris@19 19572 _ACEOF
Chris@19 19573 if ac_fn_c_try_link "$LINENO"; then :
Chris@19 19574 THREADLIBS=" "; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@19 19575 $as_echo "yes" >&6; }
Chris@19 19576 else
Chris@19 19577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 19578 $as_echo "no" >&6; }
Chris@19 19579 fi
Chris@19 19580 rm -f core conftest.err conftest.$ac_objext \
Chris@19 19581 conftest$ac_exeext conftest.$ac_ext
Chris@19 19582 fi
Chris@19 19583
Chris@19 19584 # POSIX threads, the default choice everywhere else:
Chris@19 19585 if test -z "$THREADLIBS"; then
Chris@19 19586
Chris@19 19587
Chris@19 19588
Chris@19 19589 ac_ext=c
Chris@19 19590 ac_cpp='$CPP $CPPFLAGS'
Chris@19 19591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@19 19592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 19593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@19 19594
Chris@19 19595 acx_pthread_ok=no
Chris@19 19596
Chris@19 19597 # We used to check for pthread.h first, but this fails if pthread.h
Chris@19 19598 # requires special compiler flags (e.g. on True64 or Sequent).
Chris@19 19599 # It gets checked for in the link test anyway.
Chris@19 19600
Chris@19 19601 # First of all, check if the user has set any of the PTHREAD_LIBS,
Chris@19 19602 # etcetera environment variables, and if threads linking works using
Chris@19 19603 # them:
Chris@19 19604 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
Chris@19 19605 save_CFLAGS="$CFLAGS"
Chris@19 19606 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
Chris@19 19607 save_LIBS="$LIBS"
Chris@19 19608 LIBS="$PTHREAD_LIBS $LIBS"
Chris@19 19609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
Chris@19 19610 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
Chris@19 19611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 19612 /* end confdefs.h. */
Chris@19 19613
Chris@19 19614 /* Override any GCC internal prototype to avoid an error.
Chris@19 19615 Use char because int might match the return type of a GCC
Chris@19 19616 builtin and then its argument prototype would still apply. */
Chris@19 19617 #ifdef __cplusplus
Chris@19 19618 extern "C"
Chris@19 19619 #endif
Chris@19 19620 char pthread_join ();
Chris@19 19621 #ifdef F77_DUMMY_MAIN
Chris@19 19622
Chris@19 19623 # ifdef __cplusplus
Chris@19 19624 extern "C"
Chris@19 19625 # endif
Chris@19 19626 int F77_DUMMY_MAIN() { return 1; }
Chris@19 19627
Chris@19 19628 #endif
Chris@19 19629 int
Chris@19 19630 main ()
Chris@19 19631 {
Chris@19 19632 return pthread_join ();
Chris@19 19633 ;
Chris@19 19634 return 0;
Chris@19 19635 }
Chris@19 19636 _ACEOF
Chris@19 19637 if ac_fn_c_try_link "$LINENO"; then :
Chris@19 19638 acx_pthread_ok=yes
Chris@19 19639 fi
Chris@19 19640 rm -f core conftest.err conftest.$ac_objext \
Chris@19 19641 conftest$ac_exeext conftest.$ac_ext
Chris@19 19642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
Chris@19 19643 $as_echo "$acx_pthread_ok" >&6; }
Chris@19 19644 if test x"$acx_pthread_ok" = xno; then
Chris@19 19645 PTHREAD_LIBS=""
Chris@19 19646 PTHREAD_CFLAGS=""
Chris@19 19647 fi
Chris@19 19648 LIBS="$save_LIBS"
Chris@19 19649 CFLAGS="$save_CFLAGS"
Chris@19 19650 fi
Chris@19 19651
Chris@19 19652 # We must check for the threads library under a number of different
Chris@19 19653 # names; the ordering is very important because some systems
Chris@19 19654 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
Chris@19 19655 # libraries is broken (non-POSIX).
Chris@19 19656
Chris@19 19657 # Create a list of thread flags to try. Items starting with a "-" are
Chris@19 19658 # C compiler flags, and other items are library names, except for "none"
Chris@19 19659 # which indicates that we try without any flags at all, and "pthread-config"
Chris@19 19660 # which is a program returning the flags for the Pth emulation library.
Chris@19 19661
Chris@19 19662 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
Chris@19 19663
Chris@19 19664 # The ordering *is* (sometimes) important. Some notes on the
Chris@19 19665 # individual items follow:
Chris@19 19666
Chris@19 19667 # pthreads: AIX (must check this before -lpthread)
Chris@19 19668 # none: in case threads are in libc; should be tried before -Kthread and
Chris@19 19669 # other compiler flags to prevent continual compiler warnings
Chris@19 19670 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
Chris@19 19671 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
Chris@19 19672 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
Chris@19 19673 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
Chris@19 19674 # -pthreads: Solaris/gcc
Chris@19 19675 # -mthreads: Mingw32/gcc, Lynx/gcc
Chris@19 19676 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
Chris@19 19677 # doesn't hurt to check since this sometimes defines pthreads too;
Chris@19 19678 # also defines -D_REENTRANT)
Chris@19 19679 # ... -mt is also the pthreads flag for HP/aCC
Chris@19 19680 # (where it should come before -mthreads to avoid spurious warnings)
Chris@19 19681 # pthread: Linux, etcetera
Chris@19 19682 # --thread-safe: KAI C++
Chris@19 19683 # pthread-config: use pthread-config program (for GNU Pth library)
Chris@19 19684
Chris@19 19685 case "${host_cpu}-${host_os}" in
Chris@19 19686 *solaris*)
Chris@19 19687
Chris@19 19688 # On Solaris (at least, for some versions), libc contains stubbed
Chris@19 19689 # (non-functional) versions of the pthreads routines, so link-based
Chris@19 19690 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
Chris@19 19691 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
Chris@19 19692 # a function called by this macro, so we could check for that, but
Chris@19 19693 # who knows whether they'll stub that too in a future libc.) So,
Chris@19 19694 # we'll just look for -pthreads and -lpthread first:
Chris@19 19695
Chris@19 19696 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
Chris@19 19697 ;;
Chris@19 19698 esac
Chris@19 19699
Chris@19 19700 if test x"$acx_pthread_ok" = xno; then
Chris@19 19701 for flag in $acx_pthread_flags; do
Chris@19 19702
Chris@19 19703 case $flag in
Chris@19 19704 none)
Chris@19 19705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
Chris@19 19706 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
Chris@19 19707 ;;
Chris@19 19708
Chris@19 19709 -*)
Chris@19 19710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
Chris@19 19711 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
Chris@19 19712 PTHREAD_CFLAGS="$flag"
Chris@19 19713 ;;
Chris@19 19714
Chris@19 19715 pthread-config)
Chris@19 19716 # Extract the first word of "pthread-config", so it can be a program name with args.
Chris@19 19717 set dummy pthread-config; ac_word=$2
Chris@19 19718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 19719 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 19720 if ${ac_cv_prog_acx_pthread_config+:} false; then :
Chris@19 19721 $as_echo_n "(cached) " >&6
Chris@19 19722 else
Chris@19 19723 if test -n "$acx_pthread_config"; then
Chris@19 19724 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
Chris@19 19725 else
Chris@19 19726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 19727 for as_dir in $PATH
Chris@19 19728 do
Chris@19 19729 IFS=$as_save_IFS
Chris@19 19730 test -z "$as_dir" && as_dir=.
Chris@19 19731 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 19732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 19733 ac_cv_prog_acx_pthread_config="yes"
Chris@19 19734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 19735 break 2
Chris@19 19736 fi
Chris@19 19737 done
Chris@19 19738 done
Chris@19 19739 IFS=$as_save_IFS
Chris@19 19740
Chris@19 19741 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
Chris@19 19742 fi
Chris@19 19743 fi
Chris@19 19744 acx_pthread_config=$ac_cv_prog_acx_pthread_config
Chris@19 19745 if test -n "$acx_pthread_config"; then
Chris@19 19746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
Chris@19 19747 $as_echo "$acx_pthread_config" >&6; }
Chris@19 19748 else
Chris@19 19749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 19750 $as_echo "no" >&6; }
Chris@19 19751 fi
Chris@19 19752
Chris@19 19753
Chris@19 19754 if test x"$acx_pthread_config" = xno; then continue; fi
Chris@19 19755 PTHREAD_CFLAGS="`pthread-config --cflags`"
Chris@19 19756 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
Chris@19 19757 ;;
Chris@19 19758
Chris@19 19759 *)
Chris@19 19760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
Chris@19 19761 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
Chris@19 19762 PTHREAD_LIBS="-l$flag"
Chris@19 19763 ;;
Chris@19 19764 esac
Chris@19 19765
Chris@19 19766 save_LIBS="$LIBS"
Chris@19 19767 save_CFLAGS="$CFLAGS"
Chris@19 19768 LIBS="$PTHREAD_LIBS $LIBS"
Chris@19 19769 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
Chris@19 19770
Chris@19 19771 # Check for various functions. We must include pthread.h,
Chris@19 19772 # since some functions may be macros. (On the Sequent, we
Chris@19 19773 # need a special flag -Kthread to make this header compile.)
Chris@19 19774 # We check for pthread_join because it is in -lpthread on IRIX
Chris@19 19775 # while pthread_create is in libc. We check for pthread_attr_init
Chris@19 19776 # due to DEC craziness with -lpthreads. We check for
Chris@19 19777 # pthread_cleanup_push because it is one of the few pthread
Chris@19 19778 # functions on Solaris that doesn't have a non-functional libc stub.
Chris@19 19779 # We try pthread_create on general principles.
Chris@19 19780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 19781 /* end confdefs.h. */
Chris@19 19782 #include <pthread.h>
Chris@19 19783 #ifdef F77_DUMMY_MAIN
Chris@19 19784
Chris@19 19785 # ifdef __cplusplus
Chris@19 19786 extern "C"
Chris@19 19787 # endif
Chris@19 19788 int F77_DUMMY_MAIN() { return 1; }
Chris@19 19789
Chris@19 19790 #endif
Chris@19 19791 int
Chris@19 19792 main ()
Chris@19 19793 {
Chris@19 19794 pthread_t th; pthread_join(th, (void**) 0);
Chris@19 19795 pthread_attr_init((pthread_attr_t*) 0);
Chris@19 19796 pthread_cleanup_push((void(*)(void *)) 0, (void*) 0);
Chris@19 19797 pthread_create((pthread_t*) 0, (pthread_attr_t*) 0,
Chris@19 19798 (void*(*)(void *)) 0, (void*) 0);
Chris@19 19799 pthread_cleanup_pop(0);
Chris@19 19800 ;
Chris@19 19801 return 0;
Chris@19 19802 }
Chris@19 19803 _ACEOF
Chris@19 19804 if ac_fn_c_try_link "$LINENO"; then :
Chris@19 19805 acx_pthread_ok=yes
Chris@19 19806 fi
Chris@19 19807 rm -f core conftest.err conftest.$ac_objext \
Chris@19 19808 conftest$ac_exeext conftest.$ac_ext
Chris@19 19809
Chris@19 19810 LIBS="$save_LIBS"
Chris@19 19811 CFLAGS="$save_CFLAGS"
Chris@19 19812
Chris@19 19813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
Chris@19 19814 $as_echo "$acx_pthread_ok" >&6; }
Chris@19 19815 if test "x$acx_pthread_ok" = xyes; then
Chris@19 19816 break;
Chris@19 19817 fi
Chris@19 19818
Chris@19 19819 PTHREAD_LIBS=""
Chris@19 19820 PTHREAD_CFLAGS=""
Chris@19 19821 done
Chris@19 19822 fi
Chris@19 19823
Chris@19 19824 # Various other checks:
Chris@19 19825 if test "x$acx_pthread_ok" = xyes; then
Chris@19 19826 save_LIBS="$LIBS"
Chris@19 19827 LIBS="$PTHREAD_LIBS $LIBS"
Chris@19 19828 save_CFLAGS="$CFLAGS"
Chris@19 19829 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
Chris@19 19830
Chris@19 19831 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
Chris@19 19832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
Chris@19 19833 $as_echo_n "checking for joinable pthread attribute... " >&6; }
Chris@19 19834 attr_name=unknown
Chris@19 19835 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
Chris@19 19836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 19837 /* end confdefs.h. */
Chris@19 19838 #include <pthread.h>
Chris@19 19839 #ifdef F77_DUMMY_MAIN
Chris@19 19840
Chris@19 19841 # ifdef __cplusplus
Chris@19 19842 extern "C"
Chris@19 19843 # endif
Chris@19 19844 int F77_DUMMY_MAIN() { return 1; }
Chris@19 19845
Chris@19 19846 #endif
Chris@19 19847 int
Chris@19 19848 main ()
Chris@19 19849 {
Chris@19 19850 int attr=$attr; return attr;
Chris@19 19851 ;
Chris@19 19852 return 0;
Chris@19 19853 }
Chris@19 19854 _ACEOF
Chris@19 19855 if ac_fn_c_try_link "$LINENO"; then :
Chris@19 19856 attr_name=$attr; break
Chris@19 19857 fi
Chris@19 19858 rm -f core conftest.err conftest.$ac_objext \
Chris@19 19859 conftest$ac_exeext conftest.$ac_ext
Chris@19 19860 done
Chris@19 19861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
Chris@19 19862 $as_echo "$attr_name" >&6; }
Chris@19 19863 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
Chris@19 19864
Chris@19 19865 cat >>confdefs.h <<_ACEOF
Chris@19 19866 #define PTHREAD_CREATE_JOINABLE $attr_name
Chris@19 19867 _ACEOF
Chris@19 19868
Chris@19 19869 fi
Chris@19 19870
Chris@19 19871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
Chris@19 19872 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
Chris@19 19873 flag=no
Chris@19 19874 case "${host_cpu}-${host_os}" in
Chris@19 19875 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
Chris@19 19876 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
Chris@19 19877 esac
Chris@19 19878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
Chris@19 19879 $as_echo "${flag}" >&6; }
Chris@19 19880 if test "x$flag" != xno; then
Chris@19 19881 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
Chris@19 19882 fi
Chris@19 19883
Chris@19 19884 LIBS="$save_LIBS"
Chris@19 19885 CFLAGS="$save_CFLAGS"
Chris@19 19886
Chris@19 19887 # More AIX lossage: must compile with xlc_r or cc_r
Chris@19 19888 if test x"$GCC" != xyes; then
Chris@19 19889 for ac_prog in xlc_r cc_r
Chris@19 19890 do
Chris@19 19891 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@19 19892 set dummy $ac_prog; ac_word=$2
Chris@19 19893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@19 19894 $as_echo_n "checking for $ac_word... " >&6; }
Chris@19 19895 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
Chris@19 19896 $as_echo_n "(cached) " >&6
Chris@19 19897 else
Chris@19 19898 if test -n "$PTHREAD_CC"; then
Chris@19 19899 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
Chris@19 19900 else
Chris@19 19901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 19902 for as_dir in $PATH
Chris@19 19903 do
Chris@19 19904 IFS=$as_save_IFS
Chris@19 19905 test -z "$as_dir" && as_dir=.
Chris@19 19906 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@19 19907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@19 19908 ac_cv_prog_PTHREAD_CC="$ac_prog"
Chris@19 19909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@19 19910 break 2
Chris@19 19911 fi
Chris@19 19912 done
Chris@19 19913 done
Chris@19 19914 IFS=$as_save_IFS
Chris@19 19915
Chris@19 19916 fi
Chris@19 19917 fi
Chris@19 19918 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
Chris@19 19919 if test -n "$PTHREAD_CC"; then
Chris@19 19920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
Chris@19 19921 $as_echo "$PTHREAD_CC" >&6; }
Chris@19 19922 else
Chris@19 19923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@19 19924 $as_echo "no" >&6; }
Chris@19 19925 fi
Chris@19 19926
Chris@19 19927
Chris@19 19928 test -n "$PTHREAD_CC" && break
Chris@19 19929 done
Chris@19 19930 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
Chris@19 19931
Chris@19 19932 else
Chris@19 19933 PTHREAD_CC=$CC
Chris@19 19934 fi
Chris@19 19935 else
Chris@19 19936 PTHREAD_CC="$CC"
Chris@19 19937 fi
Chris@19 19938
Chris@19 19939
Chris@19 19940
Chris@19 19941
Chris@19 19942
Chris@19 19943 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
Chris@19 19944 if test x"$acx_pthread_ok" = xyes; then
Chris@19 19945 THREADLIBS="$PTHREAD_LIBS "
Chris@19 19946 CC="$PTHREAD_CC"
Chris@19 19947
Chris@19 19948 $as_echo "#define USING_POSIX_THREADS 1" >>confdefs.h
Chris@19 19949
Chris@19 19950 :
Chris@19 19951 else
Chris@19 19952 acx_pthread_ok=no
Chris@19 19953
Chris@19 19954 fi
Chris@19 19955 ac_ext=c
Chris@19 19956 ac_cpp='$CPP $CPPFLAGS'
Chris@19 19957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@19 19958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@19 19959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@19 19960
Chris@19 19961
Chris@19 19962 fi
Chris@19 19963
Chris@19 19964 if test -z "$THREADLIBS"; then
Chris@19 19965 as_fn_error $? "couldn't find threads library for --enable-threads" "$LINENO" 5
Chris@19 19966 fi
Chris@19 19967
Chris@19 19968 $as_echo "#define HAVE_THREADS 1" >>confdefs.h
Chris@19 19969
Chris@19 19970 fi
Chris@19 19971
Chris@19 19972 if test "$enable_threads" = "yes"; then
Chris@19 19973 THREADS_TRUE=
Chris@19 19974 THREADS_FALSE='#'
Chris@19 19975 else
Chris@19 19976 THREADS_TRUE='#'
Chris@19 19977 THREADS_FALSE=
Chris@19 19978 fi
Chris@19 19979
Chris@19 19980 if test "$enable_openmp" = "yes"; then
Chris@19 19981 OPENMP_TRUE=
Chris@19 19982 OPENMP_FALSE='#'
Chris@19 19983 else
Chris@19 19984 OPENMP_TRUE='#'
Chris@19 19985 OPENMP_FALSE=
Chris@19 19986 fi
Chris@19 19987
Chris@19 19988 if test "$enable_threads" = "yes" -o "$enable_openmp" = "yes"; then
Chris@19 19989 SMP_TRUE=
Chris@19 19990 SMP_FALSE='#'
Chris@19 19991 else
Chris@19 19992 SMP_TRUE='#'
Chris@19 19993 SMP_FALSE=
Chris@19 19994 fi
Chris@19 19995
Chris@19 19996 if test x"$with_combined_threads" = xyes; then
Chris@19 19997 COMBINED_THREADS_TRUE=
Chris@19 19998 COMBINED_THREADS_FALSE='#'
Chris@19 19999 else
Chris@19 20000 COMBINED_THREADS_TRUE='#'
Chris@19 20001 COMBINED_THREADS_FALSE=
Chris@19 20002 fi
Chris@19 20003
Chris@19 20004
Chris@19 20005
Chris@19 20006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a cycle counter is available" >&5
Chris@19 20007 $as_echo_n "checking whether a cycle counter is available... " >&6; }
Chris@19 20008 save_CPPFLAGS=$CPPFLAGS
Chris@19 20009 CPPFLAGS="$CPPFLAGS -I$srcdir/kernel"
Chris@19 20010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@19 20011 /* end confdefs.h. */
Chris@19 20012 #include "cycle.h"
Chris@19 20013 #ifndef HAVE_TICK_COUNTER
Chris@19 20014 # error No cycle counter
Chris@19 20015 #endif
Chris@19 20016 _ACEOF
Chris@19 20017 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@19 20018 ok=yes
Chris@19 20019 else
Chris@19 20020 ok=no
Chris@19 20021 fi
Chris@19 20022 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@19 20023 CPPFLAGS=$save_CPPFLAGS
Chris@19 20024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ok" >&5
Chris@19 20025 $as_echo "$ok" >&6; }
Chris@19 20026 if test $ok = no && test "x$with_slow_timer" = xno; then
Chris@19 20027 echo "***************************************************************"
Chris@19 20028 echo "WARNING: No cycle counter found. FFTW will use ESTIMATE mode "
Chris@19 20029 echo " for all plans. See the manual for more information."
Chris@19 20030 echo "***************************************************************"
Chris@19 20031 fi
Chris@19 20032
Chris@19 20033
Chris@19 20034
Chris@19 20035 cat >>confdefs.h <<_ACEOF
Chris@19 20036 #define FFTW_CC "$CC $CFLAGS"
Chris@19 20037 _ACEOF
Chris@19 20038
Chris@19 20039
Chris@19 20040 ac_config_files="$ac_config_files Makefile support/Makefile genfft/Makefile kernel/Makefile simd-support/Makefile dft/Makefile dft/scalar/Makefile dft/scalar/codelets/Makefile dft/simd/Makefile dft/simd/common/Makefile dft/simd/sse2/Makefile dft/simd/avx/Makefile dft/simd/altivec/Makefile dft/simd/neon/Makefile rdft/Makefile rdft/scalar/Makefile rdft/scalar/r2cf/Makefile rdft/scalar/r2cb/Makefile rdft/scalar/r2r/Makefile rdft/simd/Makefile rdft/simd/common/Makefile rdft/simd/sse2/Makefile rdft/simd/avx/Makefile rdft/simd/altivec/Makefile rdft/simd/neon/Makefile reodft/Makefile threads/Makefile api/Makefile mpi/Makefile libbench2/Makefile tests/Makefile doc/Makefile doc/FAQ/Makefile tools/Makefile tools/fftw_wisdom.1 tools/fftw-wisdom-to-conf m4/Makefile fftw.pc"
Chris@19 20041
Chris@19 20042
Chris@19 20043 cat >confcache <<\_ACEOF
Chris@19 20044 # This file is a shell script that caches the results of configure
Chris@19 20045 # tests run on this system so they can be shared between configure
Chris@19 20046 # scripts and configure runs, see configure's option --config-cache.
Chris@19 20047 # It is not useful on other systems. If it contains results you don't
Chris@19 20048 # want to keep, you may remove or edit it.
Chris@19 20049 #
Chris@19 20050 # config.status only pays attention to the cache file if you give it
Chris@19 20051 # the --recheck option to rerun configure.
Chris@19 20052 #
Chris@19 20053 # `ac_cv_env_foo' variables (set or unset) will be overridden when
Chris@19 20054 # loading this file, other *unset* `ac_cv_foo' will be assigned the
Chris@19 20055 # following values.
Chris@19 20056
Chris@19 20057 _ACEOF
Chris@19 20058
Chris@19 20059 # The following way of writing the cache mishandles newlines in values,
Chris@19 20060 # but we know of no workaround that is simple, portable, and efficient.
Chris@19 20061 # So, we kill variables containing newlines.
Chris@19 20062 # Ultrix sh set writes to stderr and can't be redirected directly,
Chris@19 20063 # and sets the high bit in the cache file unless we assign to the vars.
Chris@19 20064 (
Chris@19 20065 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
Chris@19 20066 eval ac_val=\$$ac_var
Chris@19 20067 case $ac_val in #(
Chris@19 20068 *${as_nl}*)
Chris@19 20069 case $ac_var in #(
Chris@19 20070 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Chris@19 20071 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Chris@19 20072 esac
Chris@19 20073 case $ac_var in #(
Chris@19 20074 _ | IFS | as_nl) ;; #(
Chris@19 20075 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Chris@19 20076 *) { eval $ac_var=; unset $ac_var;} ;;
Chris@19 20077 esac ;;
Chris@19 20078 esac
Chris@19 20079 done
Chris@19 20080
Chris@19 20081 (set) 2>&1 |
Chris@19 20082 case $as_nl`(ac_space=' '; set) 2>&1` in #(
Chris@19 20083 *${as_nl}ac_space=\ *)
Chris@19 20084 # `set' does not quote correctly, so add quotes: double-quote
Chris@19 20085 # substitution turns \\\\ into \\, and sed turns \\ into \.
Chris@19 20086 sed -n \
Chris@19 20087 "s/'/'\\\\''/g;
Chris@19 20088 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Chris@19 20089 ;; #(
Chris@19 20090 *)
Chris@19 20091 # `set' quotes correctly as required by POSIX, so do not add quotes.
Chris@19 20092 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Chris@19 20093 ;;
Chris@19 20094 esac |
Chris@19 20095 sort
Chris@19 20096 ) |
Chris@19 20097 sed '
Chris@19 20098 /^ac_cv_env_/b end
Chris@19 20099 t clear
Chris@19 20100 :clear
Chris@19 20101 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
Chris@19 20102 t end
Chris@19 20103 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
Chris@19 20104 :end' >>confcache
Chris@19 20105 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
Chris@19 20106 if test -w "$cache_file"; then
Chris@19 20107 if test "x$cache_file" != "x/dev/null"; then
Chris@19 20108 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Chris@19 20109 $as_echo "$as_me: updating cache $cache_file" >&6;}
Chris@19 20110 if test ! -f "$cache_file" || test -h "$cache_file"; then
Chris@19 20111 cat confcache >"$cache_file"
Chris@19 20112 else
Chris@19 20113 case $cache_file in #(
Chris@19 20114 */* | ?:*)
Chris@19 20115 mv -f confcache "$cache_file"$$ &&
Chris@19 20116 mv -f "$cache_file"$$ "$cache_file" ;; #(
Chris@19 20117 *)
Chris@19 20118 mv -f confcache "$cache_file" ;;
Chris@19 20119 esac
Chris@19 20120 fi
Chris@19 20121 fi
Chris@19 20122 else
Chris@19 20123 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Chris@19 20124 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Chris@19 20125 fi
Chris@19 20126 fi
Chris@19 20127 rm -f confcache
Chris@19 20128
Chris@19 20129 test "x$prefix" = xNONE && prefix=$ac_default_prefix
Chris@19 20130 # Let make expand exec_prefix.
Chris@19 20131 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
Chris@19 20132
Chris@19 20133 DEFS=-DHAVE_CONFIG_H
Chris@19 20134
Chris@19 20135 ac_libobjs=
Chris@19 20136 ac_ltlibobjs=
Chris@19 20137 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
Chris@19 20138 # 1. Remove the extension, and $U if already installed.
Chris@19 20139 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Chris@19 20140 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Chris@19 20141 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
Chris@19 20142 # will be set to the directory where LIBOBJS objects are built.
Chris@19 20143 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
Chris@19 20144 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Chris@19 20145 done
Chris@19 20146 LIBOBJS=$ac_libobjs
Chris@19 20147
Chris@19 20148 LTLIBOBJS=$ac_ltlibobjs
Chris@19 20149
Chris@19 20150
Chris@19 20151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
Chris@19 20152 $as_echo_n "checking that generated files are newer than configure... " >&6; }
Chris@19 20153 if test -n "$am_sleep_pid"; then
Chris@19 20154 # Hide warnings about reused PIDs.
Chris@19 20155 wait $am_sleep_pid 2>/dev/null
Chris@19 20156 fi
Chris@19 20157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
Chris@19 20158 $as_echo "done" >&6; }
Chris@19 20159 if test -n "$EXEEXT"; then
Chris@19 20160 am__EXEEXT_TRUE=
Chris@19 20161 am__EXEEXT_FALSE='#'
Chris@19 20162 else
Chris@19 20163 am__EXEEXT_TRUE='#'
Chris@19 20164 am__EXEEXT_FALSE=
Chris@19 20165 fi
Chris@19 20166
Chris@19 20167 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
Chris@19 20168 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
Chris@19 20169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@19 20170 fi
Chris@19 20171 if test -z "${SINGLE_TRUE}" && test -z "${SINGLE_FALSE}"; then
Chris@19 20172 as_fn_error $? "conditional \"SINGLE\" was never defined.
Chris@19 20173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@19 20174 fi
Chris@19 20175 if test -z "${LDOUBLE_TRUE}" && test -z "${LDOUBLE_FALSE}"; then
Chris@19 20176 as_fn_error $? "conditional \"LDOUBLE\" was never defined.
Chris@19 20177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@19 20178 fi
Chris@19 20179 if test -z "${QUAD_TRUE}" && test -z "${QUAD_FALSE}"; then
Chris@19 20180 as_fn_error $? "conditional \"QUAD\" was never defined.
Chris@19 20181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@19 20182 fi
Chris@19 20183 if test -z "${HAVE_SSE2_TRUE}" && test -z "${HAVE_SSE2_FALSE}"; then
Chris@19 20184 as_fn_error $? "conditional \"HAVE_SSE2\" was never defined.
Chris@19 20185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@19 20186 fi
Chris@19 20187 if test -z "${HAVE_AVX_TRUE}" && test -z "${HAVE_AVX_FALSE}"; then
Chris@19 20188 as_fn_error $? "conditional \"HAVE_AVX\" was never defined.
Chris@19 20189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@19 20190 fi
Chris@19 20191 if test -z "${HAVE_ALTIVEC_TRUE}" && test -z "${HAVE_ALTIVEC_FALSE}"; then
Chris@19 20192 as_fn_error $? "conditional \"HAVE_ALTIVEC\" was never defined.
Chris@19 20193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@19 20194 fi
Chris@19 20195 if test -z "${HAVE_NEON_TRUE}" && test -z "${HAVE_NEON_FALSE}"; then
Chris@19 20196 as_fn_error $? "conditional \"HAVE_NEON\" was never defined.
Chris@19 20197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@19 20198 fi
Chris@19 20199 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Chris@19 20200 as_fn_error $? "conditional \"AMDEP\" was never defined.
Chris@19 20201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@19 20202 fi
Chris@19 20203 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Chris@19 20204 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Chris@19 20205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@19 20206 fi
Chris@19 20207 if test -z "${MPI_TRUE}" && test -z "${MPI_FALSE}"; then
Chris@19 20208 as_fn_error $? "conditional \"MPI\" was never defined.
Chris@19 20209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@19 20210 fi
Chris@19 20211 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
Chris@19 20212 as_fn_error $? "conditional \"THREADS\" was never defined.
Chris@19 20213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@19 20214 fi
Chris@19 20215 if test -z "${OPENMP_TRUE}" && test -z "${OPENMP_FALSE}"; then
Chris@19 20216 as_fn_error $? "conditional \"OPENMP\" was never defined.
Chris@19 20217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@19 20218 fi
Chris@19 20219 if test -z "${SMP_TRUE}" && test -z "${SMP_FALSE}"; then
Chris@19 20220 as_fn_error $? "conditional \"SMP\" was never defined.
Chris@19 20221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@19 20222 fi
Chris@19 20223 if test -z "${COMBINED_THREADS_TRUE}" && test -z "${COMBINED_THREADS_FALSE}"; then
Chris@19 20224 as_fn_error $? "conditional \"COMBINED_THREADS\" was never defined.
Chris@19 20225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@19 20226 fi
Chris@19 20227
Chris@19 20228 : "${CONFIG_STATUS=./config.status}"
Chris@19 20229 ac_write_fail=0
Chris@19 20230 ac_clean_files_save=$ac_clean_files
Chris@19 20231 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Chris@19 20232 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Chris@19 20233 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Chris@19 20234 as_write_fail=0
Chris@19 20235 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Chris@19 20236 #! $SHELL
Chris@19 20237 # Generated by $as_me.
Chris@19 20238 # Run this file to recreate the current configuration.
Chris@19 20239 # Compiler output produced by configure, useful for debugging
Chris@19 20240 # configure, is in config.log if it exists.
Chris@19 20241
Chris@19 20242 debug=false
Chris@19 20243 ac_cs_recheck=false
Chris@19 20244 ac_cs_silent=false
Chris@19 20245
Chris@19 20246 SHELL=\${CONFIG_SHELL-$SHELL}
Chris@19 20247 export SHELL
Chris@19 20248 _ASEOF
Chris@19 20249 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
Chris@19 20250 ## -------------------- ##
Chris@19 20251 ## M4sh Initialization. ##
Chris@19 20252 ## -------------------- ##
Chris@19 20253
Chris@19 20254 # Be more Bourne compatible
Chris@19 20255 DUALCASE=1; export DUALCASE # for MKS sh
Chris@19 20256 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Chris@19 20257 emulate sh
Chris@19 20258 NULLCMD=:
Chris@19 20259 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Chris@19 20260 # is contrary to our usage. Disable this feature.
Chris@19 20261 alias -g '${1+"$@"}'='"$@"'
Chris@19 20262 setopt NO_GLOB_SUBST
Chris@19 20263 else
Chris@19 20264 case `(set -o) 2>/dev/null` in #(
Chris@19 20265 *posix*) :
Chris@19 20266 set -o posix ;; #(
Chris@19 20267 *) :
Chris@19 20268 ;;
Chris@19 20269 esac
Chris@19 20270 fi
Chris@19 20271
Chris@19 20272
Chris@19 20273 as_nl='
Chris@19 20274 '
Chris@19 20275 export as_nl
Chris@19 20276 # Printing a long string crashes Solaris 7 /usr/bin/printf.
Chris@19 20277 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@19 20278 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@19 20279 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@19 20280 # Prefer a ksh shell builtin over an external printf program on Solaris,
Chris@19 20281 # but without wasting forks for bash or zsh.
Chris@19 20282 if test -z "$BASH_VERSION$ZSH_VERSION" \
Chris@19 20283 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@19 20284 as_echo='print -r --'
Chris@19 20285 as_echo_n='print -rn --'
Chris@19 20286 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@19 20287 as_echo='printf %s\n'
Chris@19 20288 as_echo_n='printf %s'
Chris@19 20289 else
Chris@19 20290 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
Chris@19 20291 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
Chris@19 20292 as_echo_n='/usr/ucb/echo -n'
Chris@19 20293 else
Chris@19 20294 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
Chris@19 20295 as_echo_n_body='eval
Chris@19 20296 arg=$1;
Chris@19 20297 case $arg in #(
Chris@19 20298 *"$as_nl"*)
Chris@19 20299 expr "X$arg" : "X\\(.*\\)$as_nl";
Chris@19 20300 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
Chris@19 20301 esac;
Chris@19 20302 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
Chris@19 20303 '
Chris@19 20304 export as_echo_n_body
Chris@19 20305 as_echo_n='sh -c $as_echo_n_body as_echo'
Chris@19 20306 fi
Chris@19 20307 export as_echo_body
Chris@19 20308 as_echo='sh -c $as_echo_body as_echo'
Chris@19 20309 fi
Chris@19 20310
Chris@19 20311 # The user is always right.
Chris@19 20312 if test "${PATH_SEPARATOR+set}" != set; then
Chris@19 20313 PATH_SEPARATOR=:
Chris@19 20314 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
Chris@19 20315 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
Chris@19 20316 PATH_SEPARATOR=';'
Chris@19 20317 }
Chris@19 20318 fi
Chris@19 20319
Chris@19 20320
Chris@19 20321 # IFS
Chris@19 20322 # We need space, tab and new line, in precisely that order. Quoting is
Chris@19 20323 # there to prevent editors from complaining about space-tab.
Chris@19 20324 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
Chris@19 20325 # splitting by setting IFS to empty value.)
Chris@19 20326 IFS=" "" $as_nl"
Chris@19 20327
Chris@19 20328 # Find who we are. Look in the path if we contain no directory separator.
Chris@19 20329 as_myself=
Chris@19 20330 case $0 in #((
Chris@19 20331 *[\\/]* ) as_myself=$0 ;;
Chris@19 20332 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@19 20333 for as_dir in $PATH
Chris@19 20334 do
Chris@19 20335 IFS=$as_save_IFS
Chris@19 20336 test -z "$as_dir" && as_dir=.
Chris@19 20337 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
Chris@19 20338 done
Chris@19 20339 IFS=$as_save_IFS
Chris@19 20340
Chris@19 20341 ;;
Chris@19 20342 esac
Chris@19 20343 # We did not find ourselves, most probably we were run as `sh COMMAND'
Chris@19 20344 # in which case we are not to be found in the path.
Chris@19 20345 if test "x$as_myself" = x; then
Chris@19 20346 as_myself=$0
Chris@19 20347 fi
Chris@19 20348 if test ! -f "$as_myself"; then
Chris@19 20349 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Chris@19 20350 exit 1
Chris@19 20351 fi
Chris@19 20352
Chris@19 20353 # Unset variables that we do not need and which cause bugs (e.g. in
Chris@19 20354 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
Chris@19 20355 # suppresses any "Segmentation fault" message there. '((' could
Chris@19 20356 # trigger a bug in pdksh 5.2.14.
Chris@19 20357 for as_var in BASH_ENV ENV MAIL MAILPATH
Chris@19 20358 do eval test x\${$as_var+set} = xset \
Chris@19 20359 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Chris@19 20360 done
Chris@19 20361 PS1='$ '
Chris@19 20362 PS2='> '
Chris@19 20363 PS4='+ '
Chris@19 20364
Chris@19 20365 # NLS nuisances.
Chris@19 20366 LC_ALL=C
Chris@19 20367 export LC_ALL
Chris@19 20368 LANGUAGE=C
Chris@19 20369 export LANGUAGE
Chris@19 20370
Chris@19 20371 # CDPATH.
Chris@19 20372 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@19 20373
Chris@19 20374
Chris@19 20375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
Chris@19 20376 # ----------------------------------------
Chris@19 20377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
Chris@19 20378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Chris@19 20379 # script with STATUS, using 1 if that was 0.
Chris@19 20380 as_fn_error ()
Chris@19 20381 {
Chris@19 20382 as_status=$1; test $as_status -eq 0 && as_status=1
Chris@19 20383 if test "$4"; then
Chris@19 20384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@19 20385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Chris@19 20386 fi
Chris@19 20387 $as_echo "$as_me: error: $2" >&2
Chris@19 20388 as_fn_exit $as_status
Chris@19 20389 } # as_fn_error
Chris@19 20390
Chris@19 20391
Chris@19 20392 # as_fn_set_status STATUS
Chris@19 20393 # -----------------------
Chris@19 20394 # Set $? to STATUS, without forking.
Chris@19 20395 as_fn_set_status ()
Chris@19 20396 {
Chris@19 20397 return $1
Chris@19 20398 } # as_fn_set_status
Chris@19 20399
Chris@19 20400 # as_fn_exit STATUS
Chris@19 20401 # -----------------
Chris@19 20402 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
Chris@19 20403 as_fn_exit ()
Chris@19 20404 {
Chris@19 20405 set +e
Chris@19 20406 as_fn_set_status $1
Chris@19 20407 exit $1
Chris@19 20408 } # as_fn_exit
Chris@19 20409
Chris@19 20410 # as_fn_unset VAR
Chris@19 20411 # ---------------
Chris@19 20412 # Portably unset VAR.
Chris@19 20413 as_fn_unset ()
Chris@19 20414 {
Chris@19 20415 { eval $1=; unset $1;}
Chris@19 20416 }
Chris@19 20417 as_unset=as_fn_unset
Chris@19 20418 # as_fn_append VAR VALUE
Chris@19 20419 # ----------------------
Chris@19 20420 # Append the text in VALUE to the end of the definition contained in VAR. Take
Chris@19 20421 # advantage of any shell optimizations that allow amortized linear growth over
Chris@19 20422 # repeated appends, instead of the typical quadratic growth present in naive
Chris@19 20423 # implementations.
Chris@19 20424 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
Chris@19 20425 eval 'as_fn_append ()
Chris@19 20426 {
Chris@19 20427 eval $1+=\$2
Chris@19 20428 }'
Chris@19 20429 else
Chris@19 20430 as_fn_append ()
Chris@19 20431 {
Chris@19 20432 eval $1=\$$1\$2
Chris@19 20433 }
Chris@19 20434 fi # as_fn_append
Chris@19 20435
Chris@19 20436 # as_fn_arith ARG...
Chris@19 20437 # ------------------
Chris@19 20438 # Perform arithmetic evaluation on the ARGs, and store the result in the
Chris@19 20439 # global $as_val. Take advantage of shells that can avoid forks. The arguments
Chris@19 20440 # must be portable across $(()) and expr.
Chris@19 20441 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
Chris@19 20442 eval 'as_fn_arith ()
Chris@19 20443 {
Chris@19 20444 as_val=$(( $* ))
Chris@19 20445 }'
Chris@19 20446 else
Chris@19 20447 as_fn_arith ()
Chris@19 20448 {
Chris@19 20449 as_val=`expr "$@" || test $? -eq 1`
Chris@19 20450 }
Chris@19 20451 fi # as_fn_arith
Chris@19 20452
Chris@19 20453
Chris@19 20454 if expr a : '\(a\)' >/dev/null 2>&1 &&
Chris@19 20455 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Chris@19 20456 as_expr=expr
Chris@19 20457 else
Chris@19 20458 as_expr=false
Chris@19 20459 fi
Chris@19 20460
Chris@19 20461 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Chris@19 20462 as_basename=basename
Chris@19 20463 else
Chris@19 20464 as_basename=false
Chris@19 20465 fi
Chris@19 20466
Chris@19 20467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
Chris@19 20468 as_dirname=dirname
Chris@19 20469 else
Chris@19 20470 as_dirname=false
Chris@19 20471 fi
Chris@19 20472
Chris@19 20473 as_me=`$as_basename -- "$0" ||
Chris@19 20474 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
Chris@19 20475 X"$0" : 'X\(//\)$' \| \
Chris@19 20476 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Chris@19 20477 $as_echo X/"$0" |
Chris@19 20478 sed '/^.*\/\([^/][^/]*\)\/*$/{
Chris@19 20479 s//\1/
Chris@19 20480 q
Chris@19 20481 }
Chris@19 20482 /^X\/\(\/\/\)$/{
Chris@19 20483 s//\1/
Chris@19 20484 q
Chris@19 20485 }
Chris@19 20486 /^X\/\(\/\).*/{
Chris@19 20487 s//\1/
Chris@19 20488 q
Chris@19 20489 }
Chris@19 20490 s/.*/./; q'`
Chris@19 20491
Chris@19 20492 # Avoid depending upon Character Ranges.
Chris@19 20493 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
Chris@19 20494 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
Chris@19 20495 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
Chris@19 20496 as_cr_digits='0123456789'
Chris@19 20497 as_cr_alnum=$as_cr_Letters$as_cr_digits
Chris@19 20498
Chris@19 20499 ECHO_C= ECHO_N= ECHO_T=
Chris@19 20500 case `echo -n x` in #(((((
Chris@19 20501 -n*)
Chris@19 20502 case `echo 'xy\c'` in
Chris@19 20503 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Chris@19 20504 xy) ECHO_C='\c';;
Chris@19 20505 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
Chris@19 20506 ECHO_T=' ';;
Chris@19 20507 esac;;
Chris@19 20508 *)
Chris@19 20509 ECHO_N='-n';;
Chris@19 20510 esac
Chris@19 20511
Chris@19 20512 rm -f conf$$ conf$$.exe conf$$.file
Chris@19 20513 if test -d conf$$.dir; then
Chris@19 20514 rm -f conf$$.dir/conf$$.file
Chris@19 20515 else
Chris@19 20516 rm -f conf$$.dir
Chris@19 20517 mkdir conf$$.dir 2>/dev/null
Chris@19 20518 fi
Chris@19 20519 if (echo >conf$$.file) 2>/dev/null; then
Chris@19 20520 if ln -s conf$$.file conf$$ 2>/dev/null; then
Chris@19 20521 as_ln_s='ln -s'
Chris@19 20522 # ... but there are two gotchas:
Chris@19 20523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
Chris@19 20524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Chris@19 20525 # In both cases, we have to default to `cp -pR'.
Chris@19 20526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Chris@19 20527 as_ln_s='cp -pR'
Chris@19 20528 elif ln conf$$.file conf$$ 2>/dev/null; then
Chris@19 20529 as_ln_s=ln
Chris@19 20530 else
Chris@19 20531 as_ln_s='cp -pR'
Chris@19 20532 fi
Chris@19 20533 else
Chris@19 20534 as_ln_s='cp -pR'
Chris@19 20535 fi
Chris@19 20536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
Chris@19 20537 rmdir conf$$.dir 2>/dev/null
Chris@19 20538
Chris@19 20539
Chris@19 20540 # as_fn_mkdir_p
Chris@19 20541 # -------------
Chris@19 20542 # Create "$as_dir" as a directory, including parents if necessary.
Chris@19 20543 as_fn_mkdir_p ()
Chris@19 20544 {
Chris@19 20545
Chris@19 20546 case $as_dir in #(
Chris@19 20547 -*) as_dir=./$as_dir;;
Chris@19 20548 esac
Chris@19 20549 test -d "$as_dir" || eval $as_mkdir_p || {
Chris@19 20550 as_dirs=
Chris@19 20551 while :; do
Chris@19 20552 case $as_dir in #(
Chris@19 20553 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Chris@19 20554 *) as_qdir=$as_dir;;
Chris@19 20555 esac
Chris@19 20556 as_dirs="'$as_qdir' $as_dirs"
Chris@19 20557 as_dir=`$as_dirname -- "$as_dir" ||
Chris@19 20558 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@19 20559 X"$as_dir" : 'X\(//\)[^/]' \| \
Chris@19 20560 X"$as_dir" : 'X\(//\)$' \| \
Chris@19 20561 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Chris@19 20562 $as_echo X"$as_dir" |
Chris@19 20563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@19 20564 s//\1/
Chris@19 20565 q
Chris@19 20566 }
Chris@19 20567 /^X\(\/\/\)[^/].*/{
Chris@19 20568 s//\1/
Chris@19 20569 q
Chris@19 20570 }
Chris@19 20571 /^X\(\/\/\)$/{
Chris@19 20572 s//\1/
Chris@19 20573 q
Chris@19 20574 }
Chris@19 20575 /^X\(\/\).*/{
Chris@19 20576 s//\1/
Chris@19 20577 q
Chris@19 20578 }
Chris@19 20579 s/.*/./; q'`
Chris@19 20580 test -d "$as_dir" && break
Chris@19 20581 done
Chris@19 20582 test -z "$as_dirs" || eval "mkdir $as_dirs"
Chris@19 20583 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Chris@19 20584
Chris@19 20585
Chris@19 20586 } # as_fn_mkdir_p
Chris@19 20587 if mkdir -p . 2>/dev/null; then
Chris@19 20588 as_mkdir_p='mkdir -p "$as_dir"'
Chris@19 20589 else
Chris@19 20590 test -d ./-p && rmdir ./-p
Chris@19 20591 as_mkdir_p=false
Chris@19 20592 fi
Chris@19 20593
Chris@19 20594
Chris@19 20595 # as_fn_executable_p FILE
Chris@19 20596 # -----------------------
Chris@19 20597 # Test if FILE is an executable regular file.
Chris@19 20598 as_fn_executable_p ()
Chris@19 20599 {
Chris@19 20600 test -f "$1" && test -x "$1"
Chris@19 20601 } # as_fn_executable_p
Chris@19 20602 as_test_x='test -x'
Chris@19 20603 as_executable_p=as_fn_executable_p
Chris@19 20604
Chris@19 20605 # Sed expression to map a string onto a valid CPP name.
Chris@19 20606 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Chris@19 20607
Chris@19 20608 # Sed expression to map a string onto a valid variable name.
Chris@19 20609 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Chris@19 20610
Chris@19 20611
Chris@19 20612 exec 6>&1
Chris@19 20613 ## ----------------------------------- ##
Chris@19 20614 ## Main body of $CONFIG_STATUS script. ##
Chris@19 20615 ## ----------------------------------- ##
Chris@19 20616 _ASEOF
Chris@19 20617 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Chris@19 20618
Chris@19 20619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@19 20620 # Save the log message, to keep $0 and so on meaningful, and to
Chris@19 20621 # report actual input values of CONFIG_FILES etc. instead of their
Chris@19 20622 # values after options handling.
Chris@19 20623 ac_log="
Chris@19 20624 This file was extended by fftw $as_me 3.3.4, which was
Chris@19 20625 generated by GNU Autoconf 2.69. Invocation command line was
Chris@19 20626
Chris@19 20627 CONFIG_FILES = $CONFIG_FILES
Chris@19 20628 CONFIG_HEADERS = $CONFIG_HEADERS
Chris@19 20629 CONFIG_LINKS = $CONFIG_LINKS
Chris@19 20630 CONFIG_COMMANDS = $CONFIG_COMMANDS
Chris@19 20631 $ $0 $@
Chris@19 20632
Chris@19 20633 on `(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@19 20634 "
Chris@19 20635
Chris@19 20636 _ACEOF
Chris@19 20637
Chris@19 20638 case $ac_config_files in *"
Chris@19 20639 "*) set x $ac_config_files; shift; ac_config_files=$*;;
Chris@19 20640 esac
Chris@19 20641
Chris@19 20642 case $ac_config_headers in *"
Chris@19 20643 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
Chris@19 20644 esac
Chris@19 20645
Chris@19 20646
Chris@19 20647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@19 20648 # Files that config.status was made for.
Chris@19 20649 config_files="$ac_config_files"
Chris@19 20650 config_headers="$ac_config_headers"
Chris@19 20651 config_commands="$ac_config_commands"
Chris@19 20652
Chris@19 20653 _ACEOF
Chris@19 20654
Chris@19 20655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@19 20656 ac_cs_usage="\
Chris@19 20657 \`$as_me' instantiates files and other configuration actions
Chris@19 20658 from templates according to the current configuration. Unless the files
Chris@19 20659 and actions are specified as TAGs, all are instantiated by default.
Chris@19 20660
Chris@19 20661 Usage: $0 [OPTION]... [TAG]...
Chris@19 20662
Chris@19 20663 -h, --help print this help, then exit
Chris@19 20664 -V, --version print version number and configuration settings, then exit
Chris@19 20665 --config print configuration, then exit
Chris@19 20666 -q, --quiet, --silent
Chris@19 20667 do not print progress messages
Chris@19 20668 -d, --debug don't remove temporary files
Chris@19 20669 --recheck update $as_me by reconfiguring in the same conditions
Chris@19 20670 --file=FILE[:TEMPLATE]
Chris@19 20671 instantiate the configuration file FILE
Chris@19 20672 --header=FILE[:TEMPLATE]
Chris@19 20673 instantiate the configuration header FILE
Chris@19 20674
Chris@19 20675 Configuration files:
Chris@19 20676 $config_files
Chris@19 20677
Chris@19 20678 Configuration headers:
Chris@19 20679 $config_headers
Chris@19 20680
Chris@19 20681 Configuration commands:
Chris@19 20682 $config_commands
Chris@19 20683
Chris@19 20684 Report bugs to <fftw@fftw.org>."
Chris@19 20685
Chris@19 20686 _ACEOF
Chris@19 20687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@19 20688 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Chris@19 20689 ac_cs_version="\\
Chris@19 20690 fftw config.status 3.3.4
Chris@19 20691 configured by $0, generated by GNU Autoconf 2.69,
Chris@19 20692 with options \\"\$ac_cs_config\\"
Chris@19 20693
Chris@19 20694 Copyright (C) 2012 Free Software Foundation, Inc.
Chris@19 20695 This config.status script is free software; the Free Software Foundation
Chris@19 20696 gives unlimited permission to copy, distribute and modify it."
Chris@19 20697
Chris@19 20698 ac_pwd='$ac_pwd'
Chris@19 20699 srcdir='$srcdir'
Chris@19 20700 INSTALL='$INSTALL'
Chris@19 20701 MKDIR_P='$MKDIR_P'
Chris@19 20702 AWK='$AWK'
Chris@19 20703 test -n "\$AWK" || AWK=awk
Chris@19 20704 _ACEOF
Chris@19 20705
Chris@19 20706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@19 20707 # The default lists apply if the user does not specify any file.
Chris@19 20708 ac_need_defaults=:
Chris@19 20709 while test $# != 0
Chris@19 20710 do
Chris@19 20711 case $1 in
Chris@19 20712 --*=?*)
Chris@19 20713 ac_option=`expr "X$1" : 'X\([^=]*\)='`
Chris@19 20714 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Chris@19 20715 ac_shift=:
Chris@19 20716 ;;
Chris@19 20717 --*=)
Chris@19 20718 ac_option=`expr "X$1" : 'X\([^=]*\)='`
Chris@19 20719 ac_optarg=
Chris@19 20720 ac_shift=:
Chris@19 20721 ;;
Chris@19 20722 *)
Chris@19 20723 ac_option=$1
Chris@19 20724 ac_optarg=$2
Chris@19 20725 ac_shift=shift
Chris@19 20726 ;;
Chris@19 20727 esac
Chris@19 20728
Chris@19 20729 case $ac_option in
Chris@19 20730 # Handling of the options.
Chris@19 20731 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Chris@19 20732 ac_cs_recheck=: ;;
Chris@19 20733 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Chris@19 20734 $as_echo "$ac_cs_version"; exit ;;
Chris@19 20735 --config | --confi | --conf | --con | --co | --c )
Chris@19 20736 $as_echo "$ac_cs_config"; exit ;;
Chris@19 20737 --debug | --debu | --deb | --de | --d | -d )
Chris@19 20738 debug=: ;;
Chris@19 20739 --file | --fil | --fi | --f )
Chris@19 20740 $ac_shift
Chris@19 20741 case $ac_optarg in
Chris@19 20742 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@19 20743 '') as_fn_error $? "missing file argument" ;;
Chris@19 20744 esac
Chris@19 20745 as_fn_append CONFIG_FILES " '$ac_optarg'"
Chris@19 20746 ac_need_defaults=false;;
Chris@19 20747 --header | --heade | --head | --hea )
Chris@19 20748 $ac_shift
Chris@19 20749 case $ac_optarg in
Chris@19 20750 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@19 20751 esac
Chris@19 20752 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Chris@19 20753 ac_need_defaults=false;;
Chris@19 20754 --he | --h)
Chris@19 20755 # Conflict between --help and --header
Chris@19 20756 as_fn_error $? "ambiguous option: \`$1'
Chris@19 20757 Try \`$0 --help' for more information.";;
Chris@19 20758 --help | --hel | -h )
Chris@19 20759 $as_echo "$ac_cs_usage"; exit ;;
Chris@19 20760 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@19 20761 | -silent | --silent | --silen | --sile | --sil | --si | --s)
Chris@19 20762 ac_cs_silent=: ;;
Chris@19 20763
Chris@19 20764 # This is an error.
Chris@19 20765 -*) as_fn_error $? "unrecognized option: \`$1'
Chris@19 20766 Try \`$0 --help' for more information." ;;
Chris@19 20767
Chris@19 20768 *) as_fn_append ac_config_targets " $1"
Chris@19 20769 ac_need_defaults=false ;;
Chris@19 20770
Chris@19 20771 esac
Chris@19 20772 shift
Chris@19 20773 done
Chris@19 20774
Chris@19 20775 ac_configure_extra_args=
Chris@19 20776
Chris@19 20777 if $ac_cs_silent; then
Chris@19 20778 exec 6>/dev/null
Chris@19 20779 ac_configure_extra_args="$ac_configure_extra_args --silent"
Chris@19 20780 fi
Chris@19 20781
Chris@19 20782 _ACEOF
Chris@19 20783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@19 20784 if \$ac_cs_recheck; then
Chris@19 20785 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Chris@19 20786 shift
Chris@19 20787 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
Chris@19 20788 CONFIG_SHELL='$SHELL'
Chris@19 20789 export CONFIG_SHELL
Chris@19 20790 exec "\$@"
Chris@19 20791 fi
Chris@19 20792
Chris@19 20793 _ACEOF
Chris@19 20794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@19 20795 exec 5>>config.log
Chris@19 20796 {
Chris@19 20797 echo
Chris@19 20798 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
Chris@19 20799 ## Running $as_me. ##
Chris@19 20800 _ASBOX
Chris@19 20801 $as_echo "$ac_log"
Chris@19 20802 } >&5
Chris@19 20803
Chris@19 20804 _ACEOF
Chris@19 20805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@19 20806 #
Chris@19 20807 # INIT-COMMANDS
Chris@19 20808 #
Chris@19 20809 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
Chris@19 20810
Chris@19 20811
Chris@19 20812 # The HP-UX ksh and POSIX shell print the target directory to stdout
Chris@19 20813 # if CDPATH is set.
Chris@19 20814 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@19 20815
Chris@19 20816 sed_quote_subst='$sed_quote_subst'
Chris@19 20817 double_quote_subst='$double_quote_subst'
Chris@19 20818 delay_variable_subst='$delay_variable_subst'
Chris@19 20819 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
Chris@19 20820 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
Chris@19 20821 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
Chris@19 20822 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
Chris@19 20823 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
Chris@19 20824 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
Chris@19 20825 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
Chris@19 20826 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
Chris@19 20827 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
Chris@19 20828 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
Chris@19 20829 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
Chris@19 20830 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
Chris@19 20831 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
Chris@19 20832 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
Chris@19 20833 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
Chris@19 20834 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
Chris@19 20835 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
Chris@19 20836 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
Chris@19 20837 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
Chris@19 20838 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
Chris@19 20839 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
Chris@19 20840 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
Chris@19 20841 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
Chris@19 20842 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
Chris@19 20843 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
Chris@19 20844 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
Chris@19 20845 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
Chris@19 20846 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
Chris@19 20847 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
Chris@19 20848 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
Chris@19 20849 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
Chris@19 20850 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
Chris@19 20851 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
Chris@19 20852 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
Chris@19 20853 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
Chris@19 20854 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
Chris@19 20855 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
Chris@19 20856 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
Chris@19 20857 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
Chris@19 20858 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
Chris@19 20859 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
Chris@19 20860 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
Chris@19 20861 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
Chris@19 20862 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
Chris@19 20863 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
Chris@19 20864 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
Chris@19 20865 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@19 20866 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@19 20867 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
Chris@19 20868 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
Chris@19 20869 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
Chris@19 20870 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
Chris@19 20871 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
Chris@19 20872 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
Chris@19 20873 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
Chris@19 20874 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
Chris@19 20875 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
Chris@19 20876 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
Chris@19 20877 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
Chris@19 20878 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
Chris@19 20879 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
Chris@19 20880 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
Chris@19 20881 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
Chris@19 20882 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
Chris@19 20883 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
Chris@19 20884 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
Chris@19 20885 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
Chris@19 20886 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
Chris@19 20887 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
Chris@19 20888 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
Chris@19 20889 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
Chris@19 20890 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
Chris@19 20891 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
Chris@19 20892 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
Chris@19 20893 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
Chris@19 20894 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
Chris@19 20895 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
Chris@19 20896 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
Chris@19 20897 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
Chris@19 20898 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
Chris@19 20899 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
Chris@19 20900 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
Chris@19 20901 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
Chris@19 20902 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
Chris@19 20903 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
Chris@19 20904 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
Chris@19 20905 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
Chris@19 20906 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
Chris@19 20907 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
Chris@19 20908 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
Chris@19 20909 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
Chris@19 20910 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
Chris@19 20911 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
Chris@19 20912 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
Chris@19 20913 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
Chris@19 20914 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
Chris@19 20915 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
Chris@19 20916 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
Chris@19 20917 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
Chris@19 20918 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
Chris@19 20919 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
Chris@19 20920 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
Chris@19 20921 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
Chris@19 20922 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
Chris@19 20923 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
Chris@19 20924 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
Chris@19 20925 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
Chris@19 20926 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
Chris@19 20927 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
Chris@19 20928 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
Chris@19 20929 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
Chris@19 20930 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
Chris@19 20931 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
Chris@19 20932 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
Chris@19 20933 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
Chris@19 20934 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
Chris@19 20935 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
Chris@19 20936 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
Chris@19 20937 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@19 20938 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@19 20939 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
Chris@19 20940 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
Chris@19 20941 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
Chris@19 20942 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
Chris@19 20943 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
Chris@19 20944 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
Chris@19 20945 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
Chris@19 20946 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
Chris@19 20947 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
Chris@19 20948 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
Chris@19 20949 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
Chris@19 20950 LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20951 reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20952 reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20953 old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20954 compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20955 GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20956 lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20957 lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20958 lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20959 lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20960 lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20961 archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20962 enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20963 export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20964 whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20965 compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20966 old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20967 old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20968 archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20969 archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20970 module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20971 module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20972 with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20973 allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20974 no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20975 hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20976 hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20977 hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20978 hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20979 hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20980 hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20981 hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20982 inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20983 link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20984 always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20985 export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20986 exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20987 include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20988 prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20989 postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20990 file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20991 hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
Chris@19 20992
Chris@19 20993 LTCC='$LTCC'
Chris@19 20994 LTCFLAGS='$LTCFLAGS'
Chris@19 20995 compiler='$compiler_DEFAULT'
Chris@19 20996
Chris@19 20997 # A function that is used when there is no print builtin or printf.
Chris@19 20998 func_fallback_echo ()
Chris@19 20999 {
Chris@19 21000 eval 'cat <<_LTECHO_EOF
Chris@19 21001 \$1
Chris@19 21002 _LTECHO_EOF'
Chris@19 21003 }
Chris@19 21004
Chris@19 21005 # Quote evaled strings.
Chris@19 21006 for var in AS \
Chris@19 21007 DLLTOOL \
Chris@19 21008 OBJDUMP \
Chris@19 21009 SHELL \
Chris@19 21010 ECHO \
Chris@19 21011 PATH_SEPARATOR \
Chris@19 21012 SED \
Chris@19 21013 GREP \
Chris@19 21014 EGREP \
Chris@19 21015 FGREP \
Chris@19 21016 LD \
Chris@19 21017 NM \
Chris@19 21018 LN_S \
Chris@19 21019 lt_SP2NL \
Chris@19 21020 lt_NL2SP \
Chris@19 21021 reload_flag \
Chris@19 21022 deplibs_check_method \
Chris@19 21023 file_magic_cmd \
Chris@19 21024 file_magic_glob \
Chris@19 21025 want_nocaseglob \
Chris@19 21026 sharedlib_from_linklib_cmd \
Chris@19 21027 AR \
Chris@19 21028 AR_FLAGS \
Chris@19 21029 archiver_list_spec \
Chris@19 21030 STRIP \
Chris@19 21031 RANLIB \
Chris@19 21032 CC \
Chris@19 21033 CFLAGS \
Chris@19 21034 compiler \
Chris@19 21035 lt_cv_sys_global_symbol_pipe \
Chris@19 21036 lt_cv_sys_global_symbol_to_cdecl \
Chris@19 21037 lt_cv_sys_global_symbol_to_c_name_address \
Chris@19 21038 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Chris@19 21039 nm_file_list_spec \
Chris@19 21040 lt_prog_compiler_no_builtin_flag \
Chris@19 21041 lt_prog_compiler_pic \
Chris@19 21042 lt_prog_compiler_wl \
Chris@19 21043 lt_prog_compiler_static \
Chris@19 21044 lt_cv_prog_compiler_c_o \
Chris@19 21045 need_locks \
Chris@19 21046 MANIFEST_TOOL \
Chris@19 21047 DSYMUTIL \
Chris@19 21048 NMEDIT \
Chris@19 21049 LIPO \
Chris@19 21050 OTOOL \
Chris@19 21051 OTOOL64 \
Chris@19 21052 shrext_cmds \
Chris@19 21053 export_dynamic_flag_spec \
Chris@19 21054 whole_archive_flag_spec \
Chris@19 21055 compiler_needs_object \
Chris@19 21056 with_gnu_ld \
Chris@19 21057 allow_undefined_flag \
Chris@19 21058 no_undefined_flag \
Chris@19 21059 hardcode_libdir_flag_spec \
Chris@19 21060 hardcode_libdir_separator \
Chris@19 21061 exclude_expsyms \
Chris@19 21062 include_expsyms \
Chris@19 21063 file_list_spec \
Chris@19 21064 variables_saved_for_relink \
Chris@19 21065 libname_spec \
Chris@19 21066 library_names_spec \
Chris@19 21067 soname_spec \
Chris@19 21068 install_override_mode \
Chris@19 21069 finish_eval \
Chris@19 21070 old_striplib \
Chris@19 21071 striplib \
Chris@19 21072 LD_F77 \
Chris@19 21073 reload_flag_F77 \
Chris@19 21074 compiler_F77 \
Chris@19 21075 lt_prog_compiler_no_builtin_flag_F77 \
Chris@19 21076 lt_prog_compiler_pic_F77 \
Chris@19 21077 lt_prog_compiler_wl_F77 \
Chris@19 21078 lt_prog_compiler_static_F77 \
Chris@19 21079 lt_cv_prog_compiler_c_o_F77 \
Chris@19 21080 export_dynamic_flag_spec_F77 \
Chris@19 21081 whole_archive_flag_spec_F77 \
Chris@19 21082 compiler_needs_object_F77 \
Chris@19 21083 with_gnu_ld_F77 \
Chris@19 21084 allow_undefined_flag_F77 \
Chris@19 21085 no_undefined_flag_F77 \
Chris@19 21086 hardcode_libdir_flag_spec_F77 \
Chris@19 21087 hardcode_libdir_separator_F77 \
Chris@19 21088 exclude_expsyms_F77 \
Chris@19 21089 include_expsyms_F77 \
Chris@19 21090 file_list_spec_F77; do
Chris@19 21091 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Chris@19 21092 *[\\\\\\\`\\"\\\$]*)
Chris@19 21093 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
Chris@19 21094 ;;
Chris@19 21095 *)
Chris@19 21096 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
Chris@19 21097 ;;
Chris@19 21098 esac
Chris@19 21099 done
Chris@19 21100
Chris@19 21101 # Double-quote double-evaled strings.
Chris@19 21102 for var in reload_cmds \
Chris@19 21103 old_postinstall_cmds \
Chris@19 21104 old_postuninstall_cmds \
Chris@19 21105 old_archive_cmds \
Chris@19 21106 extract_expsyms_cmds \
Chris@19 21107 old_archive_from_new_cmds \
Chris@19 21108 old_archive_from_expsyms_cmds \
Chris@19 21109 archive_cmds \
Chris@19 21110 archive_expsym_cmds \
Chris@19 21111 module_cmds \
Chris@19 21112 module_expsym_cmds \
Chris@19 21113 export_symbols_cmds \
Chris@19 21114 prelink_cmds \
Chris@19 21115 postlink_cmds \
Chris@19 21116 postinstall_cmds \
Chris@19 21117 postuninstall_cmds \
Chris@19 21118 finish_cmds \
Chris@19 21119 sys_lib_search_path_spec \
Chris@19 21120 sys_lib_dlsearch_path_spec \
Chris@19 21121 reload_cmds_F77 \
Chris@19 21122 old_archive_cmds_F77 \
Chris@19 21123 old_archive_from_new_cmds_F77 \
Chris@19 21124 old_archive_from_expsyms_cmds_F77 \
Chris@19 21125 archive_cmds_F77 \
Chris@19 21126 archive_expsym_cmds_F77 \
Chris@19 21127 module_cmds_F77 \
Chris@19 21128 module_expsym_cmds_F77 \
Chris@19 21129 export_symbols_cmds_F77 \
Chris@19 21130 prelink_cmds_F77 \
Chris@19 21131 postlink_cmds_F77; do
Chris@19 21132 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Chris@19 21133 *[\\\\\\\`\\"\\\$]*)
Chris@19 21134 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
Chris@19 21135 ;;
Chris@19 21136 *)
Chris@19 21137 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
Chris@19 21138 ;;
Chris@19 21139 esac
Chris@19 21140 done
Chris@19 21141
Chris@19 21142 ac_aux_dir='$ac_aux_dir'
Chris@19 21143 xsi_shell='$xsi_shell'
Chris@19 21144 lt_shell_append='$lt_shell_append'
Chris@19 21145
Chris@19 21146 # See if we are running on zsh, and set the options which allow our
Chris@19 21147 # commands through without removal of \ escapes INIT.
Chris@19 21148 if test -n "\${ZSH_VERSION+set}" ; then
Chris@19 21149 setopt NO_GLOB_SUBST
Chris@19 21150 fi
Chris@19 21151
Chris@19 21152
Chris@19 21153 PACKAGE='$PACKAGE'
Chris@19 21154 VERSION='$VERSION'
Chris@19 21155 TIMESTAMP='$TIMESTAMP'
Chris@19 21156 RM='$RM'
Chris@19 21157 ofile='$ofile'
Chris@19 21158
Chris@19 21159
Chris@19 21160
Chris@19 21161
Chris@19 21162
Chris@19 21163
Chris@19 21164 _ACEOF
Chris@19 21165
Chris@19 21166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@19 21167
Chris@19 21168 # Handling of arguments.
Chris@19 21169 for ac_config_target in $ac_config_targets
Chris@19 21170 do
Chris@19 21171 case $ac_config_target in
Chris@19 21172 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
Chris@19 21173 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Chris@19 21174 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Chris@19 21175 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Chris@19 21176 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
Chris@19 21177 "genfft/Makefile") CONFIG_FILES="$CONFIG_FILES genfft/Makefile" ;;
Chris@19 21178 "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
Chris@19 21179 "simd-support/Makefile") CONFIG_FILES="$CONFIG_FILES simd-support/Makefile" ;;
Chris@19 21180 "dft/Makefile") CONFIG_FILES="$CONFIG_FILES dft/Makefile" ;;
Chris@19 21181 "dft/scalar/Makefile") CONFIG_FILES="$CONFIG_FILES dft/scalar/Makefile" ;;
Chris@19 21182 "dft/scalar/codelets/Makefile") CONFIG_FILES="$CONFIG_FILES dft/scalar/codelets/Makefile" ;;
Chris@19 21183 "dft/simd/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/Makefile" ;;
Chris@19 21184 "dft/simd/common/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/common/Makefile" ;;
Chris@19 21185 "dft/simd/sse2/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/sse2/Makefile" ;;
Chris@19 21186 "dft/simd/avx/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx/Makefile" ;;
Chris@19 21187 "dft/simd/altivec/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/altivec/Makefile" ;;
Chris@19 21188 "dft/simd/neon/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/neon/Makefile" ;;
Chris@19 21189 "rdft/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/Makefile" ;;
Chris@19 21190 "rdft/scalar/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/Makefile" ;;
Chris@19 21191 "rdft/scalar/r2cf/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/r2cf/Makefile" ;;
Chris@19 21192 "rdft/scalar/r2cb/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/r2cb/Makefile" ;;
Chris@19 21193 "rdft/scalar/r2r/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/r2r/Makefile" ;;
Chris@19 21194 "rdft/simd/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/Makefile" ;;
Chris@19 21195 "rdft/simd/common/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/common/Makefile" ;;
Chris@19 21196 "rdft/simd/sse2/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/sse2/Makefile" ;;
Chris@19 21197 "rdft/simd/avx/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx/Makefile" ;;
Chris@19 21198 "rdft/simd/altivec/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/altivec/Makefile" ;;
Chris@19 21199 "rdft/simd/neon/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/neon/Makefile" ;;
Chris@19 21200 "reodft/Makefile") CONFIG_FILES="$CONFIG_FILES reodft/Makefile" ;;
Chris@19 21201 "threads/Makefile") CONFIG_FILES="$CONFIG_FILES threads/Makefile" ;;
Chris@19 21202 "api/Makefile") CONFIG_FILES="$CONFIG_FILES api/Makefile" ;;
Chris@19 21203 "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;;
Chris@19 21204 "libbench2/Makefile") CONFIG_FILES="$CONFIG_FILES libbench2/Makefile" ;;
Chris@19 21205 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
Chris@19 21206 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
Chris@19 21207 "doc/FAQ/Makefile") CONFIG_FILES="$CONFIG_FILES doc/FAQ/Makefile" ;;
Chris@19 21208 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
Chris@19 21209 "tools/fftw_wisdom.1") CONFIG_FILES="$CONFIG_FILES tools/fftw_wisdom.1" ;;
Chris@19 21210 "tools/fftw-wisdom-to-conf") CONFIG_FILES="$CONFIG_FILES tools/fftw-wisdom-to-conf" ;;
Chris@19 21211 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
Chris@19 21212 "fftw.pc") CONFIG_FILES="$CONFIG_FILES fftw.pc" ;;
Chris@19 21213
Chris@19 21214 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Chris@19 21215 esac
Chris@19 21216 done
Chris@19 21217
Chris@19 21218
Chris@19 21219 # If the user did not use the arguments to specify the items to instantiate,
Chris@19 21220 # then the envvar interface is used. Set only those that are not.
Chris@19 21221 # We use the long form for the default assignment because of an extremely
Chris@19 21222 # bizarre bug on SunOS 4.1.3.
Chris@19 21223 if $ac_need_defaults; then
Chris@19 21224 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Chris@19 21225 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Chris@19 21226 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
Chris@19 21227 fi
Chris@19 21228
Chris@19 21229 # Have a temporary directory for convenience. Make it in the build tree
Chris@19 21230 # simply because there is no reason against having it here, and in addition,
Chris@19 21231 # creating and moving files from /tmp can sometimes cause problems.
Chris@19 21232 # Hook for its removal unless debugging.
Chris@19 21233 # Note that there is a small window in which the directory will not be cleaned:
Chris@19 21234 # after its creation but before its name has been assigned to `$tmp'.
Chris@19 21235 $debug ||
Chris@19 21236 {
Chris@19 21237 tmp= ac_tmp=
Chris@19 21238 trap 'exit_status=$?
Chris@19 21239 : "${ac_tmp:=$tmp}"
Chris@19 21240 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Chris@19 21241 ' 0
Chris@19 21242 trap 'as_fn_exit 1' 1 2 13 15
Chris@19 21243 }
Chris@19 21244 # Create a (secure) tmp directory for tmp files.
Chris@19 21245
Chris@19 21246 {
Chris@19 21247 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Chris@19 21248 test -d "$tmp"
Chris@19 21249 } ||
Chris@19 21250 {
Chris@19 21251 tmp=./conf$$-$RANDOM
Chris@19 21252 (umask 077 && mkdir "$tmp")
Chris@19 21253 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Chris@19 21254 ac_tmp=$tmp
Chris@19 21255
Chris@19 21256 # Set up the scripts for CONFIG_FILES section.
Chris@19 21257 # No need to generate them if there are no CONFIG_FILES.
Chris@19 21258 # This happens for instance with `./config.status config.h'.
Chris@19 21259 if test -n "$CONFIG_FILES"; then
Chris@19 21260
Chris@19 21261
Chris@19 21262 ac_cr=`echo X | tr X '\015'`
Chris@19 21263 # On cygwin, bash can eat \r inside `` if the user requested igncr.
Chris@19 21264 # But we know of no other shell where ac_cr would be empty at this
Chris@19 21265 # point, so we can use a bashism as a fallback.
Chris@19 21266 if test "x$ac_cr" = x; then
Chris@19 21267 eval ac_cr=\$\'\\r\'
Chris@19 21268 fi
Chris@19 21269 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
Chris@19 21270 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Chris@19 21271 ac_cs_awk_cr='\\r'
Chris@19 21272 else
Chris@19 21273 ac_cs_awk_cr=$ac_cr
Chris@19 21274 fi
Chris@19 21275
Chris@19 21276 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Chris@19 21277 _ACEOF
Chris@19 21278
Chris@19 21279
Chris@19 21280 {
Chris@19 21281 echo "cat >conf$$subs.awk <<_ACEOF" &&
Chris@19 21282 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
Chris@19 21283 echo "_ACEOF"
Chris@19 21284 } >conf$$subs.sh ||
Chris@19 21285 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@19 21286 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Chris@19 21287 ac_delim='%!_!# '
Chris@19 21288 for ac_last_try in false false false false false :; do
Chris@19 21289 . ./conf$$subs.sh ||
Chris@19 21290 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@19 21291
Chris@19 21292 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
Chris@19 21293 if test $ac_delim_n = $ac_delim_num; then
Chris@19 21294 break
Chris@19 21295 elif $ac_last_try; then
Chris@19 21296 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@19 21297 else
Chris@19 21298 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Chris@19 21299 fi
Chris@19 21300 done
Chris@19 21301 rm -f conf$$subs.sh
Chris@19 21302
Chris@19 21303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@19 21304 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Chris@19 21305 _ACEOF
Chris@19 21306 sed -n '
Chris@19 21307 h
Chris@19 21308 s/^/S["/; s/!.*/"]=/
Chris@19 21309 p
Chris@19 21310 g
Chris@19 21311 s/^[^!]*!//
Chris@19 21312 :repl
Chris@19 21313 t repl
Chris@19 21314 s/'"$ac_delim"'$//
Chris@19 21315 t delim
Chris@19 21316 :nl
Chris@19 21317 h
Chris@19 21318 s/\(.\{148\}\)..*/\1/
Chris@19 21319 t more1
Chris@19 21320 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
Chris@19 21321 p
Chris@19 21322 n
Chris@19 21323 b repl
Chris@19 21324 :more1
Chris@19 21325 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
Chris@19 21326 p
Chris@19 21327 g
Chris@19 21328 s/.\{148\}//
Chris@19 21329 t nl
Chris@19 21330 :delim
Chris@19 21331 h
Chris@19 21332 s/\(.\{148\}\)..*/\1/
Chris@19 21333 t more2
Chris@19 21334 s/["\\]/\\&/g; s/^/"/; s/$/"/
Chris@19 21335 p
Chris@19 21336 b
Chris@19 21337 :more2
Chris@19 21338 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
Chris@19 21339 p
Chris@19 21340 g
Chris@19 21341 s/.\{148\}//
Chris@19 21342 t delim
Chris@19 21343 ' <conf$$subs.awk | sed '
Chris@19 21344 /^[^""]/{
Chris@19 21345 N
Chris@19 21346 s/\n//
Chris@19 21347 }
Chris@19 21348 ' >>$CONFIG_STATUS || ac_write_fail=1
Chris@19 21349 rm -f conf$$subs.awk
Chris@19 21350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@19 21351 _ACAWK
Chris@19 21352 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Chris@19 21353 for (key in S) S_is_set[key] = 1
Chris@19 21354 FS = ""
Chris@19 21355
Chris@19 21356 }
Chris@19 21357 {
Chris@19 21358 line = $ 0
Chris@19 21359 nfields = split(line, field, "@")
Chris@19 21360 substed = 0
Chris@19 21361 len = length(field[1])
Chris@19 21362 for (i = 2; i < nfields; i++) {
Chris@19 21363 key = field[i]
Chris@19 21364 keylen = length(key)
Chris@19 21365 if (S_is_set[key]) {
Chris@19 21366 value = S[key]
Chris@19 21367 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
Chris@19 21368 len += length(value) + length(field[++i])
Chris@19 21369 substed = 1
Chris@19 21370 } else
Chris@19 21371 len += 1 + keylen
Chris@19 21372 }
Chris@19 21373
Chris@19 21374 print line
Chris@19 21375 }
Chris@19 21376
Chris@19 21377 _ACAWK
Chris@19 21378 _ACEOF
Chris@19 21379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@19 21380 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
Chris@19 21381 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
Chris@19 21382 else
Chris@19 21383 cat
Chris@19 21384 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
Chris@19 21385 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Chris@19 21386 _ACEOF
Chris@19 21387
Chris@19 21388 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
Chris@19 21389 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Chris@19 21390 # trailing colons and then remove the whole line if VPATH becomes empty
Chris@19 21391 # (actually we leave an empty line to preserve line numbers).
Chris@19 21392 if test "x$srcdir" = x.; then
Chris@19 21393 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
Chris@19 21394 h
Chris@19 21395 s///
Chris@19 21396 s/^/:/
Chris@19 21397 s/[ ]*$/:/
Chris@19 21398 s/:\$(srcdir):/:/g
Chris@19 21399 s/:\${srcdir}:/:/g
Chris@19 21400 s/:@srcdir@:/:/g
Chris@19 21401 s/^:*//
Chris@19 21402 s/:*$//
Chris@19 21403 x
Chris@19 21404 s/\(=[ ]*\).*/\1/
Chris@19 21405 G
Chris@19 21406 s/\n//
Chris@19 21407 s/^[^=]*=[ ]*$//
Chris@19 21408 }'
Chris@19 21409 fi
Chris@19 21410
Chris@19 21411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@19 21412 fi # test -n "$CONFIG_FILES"
Chris@19 21413
Chris@19 21414 # Set up the scripts for CONFIG_HEADERS section.
Chris@19 21415 # No need to generate them if there are no CONFIG_HEADERS.
Chris@19 21416 # This happens for instance with `./config.status Makefile'.
Chris@19 21417 if test -n "$CONFIG_HEADERS"; then
Chris@19 21418 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Chris@19 21419 BEGIN {
Chris@19 21420 _ACEOF
Chris@19 21421
Chris@19 21422 # Transform confdefs.h into an awk script `defines.awk', embedded as
Chris@19 21423 # here-document in config.status, that substitutes the proper values into
Chris@19 21424 # config.h.in to produce config.h.
Chris@19 21425
Chris@19 21426 # Create a delimiter string that does not exist in confdefs.h, to ease
Chris@19 21427 # handling of long lines.
Chris@19 21428 ac_delim='%!_!# '
Chris@19 21429 for ac_last_try in false false :; do
Chris@19 21430 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
Chris@19 21431 if test -z "$ac_tt"; then
Chris@19 21432 break
Chris@19 21433 elif $ac_last_try; then
Chris@19 21434 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Chris@19 21435 else
Chris@19 21436 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Chris@19 21437 fi
Chris@19 21438 done
Chris@19 21439
Chris@19 21440 # For the awk script, D is an array of macro values keyed by name,
Chris@19 21441 # likewise P contains macro parameters if any. Preserve backslash
Chris@19 21442 # newline sequences.
Chris@19 21443
Chris@19 21444 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
Chris@19 21445 sed -n '
Chris@19 21446 s/.\{148\}/&'"$ac_delim"'/g
Chris@19 21447 t rset
Chris@19 21448 :rset
Chris@19 21449 s/^[ ]*#[ ]*define[ ][ ]*/ /
Chris@19 21450 t def
Chris@19 21451 d
Chris@19 21452 :def
Chris@19 21453 s/\\$//
Chris@19 21454 t bsnl
Chris@19 21455 s/["\\]/\\&/g
Chris@19 21456 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
Chris@19 21457 D["\1"]=" \3"/p
Chris@19 21458 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
Chris@19 21459 d
Chris@19 21460 :bsnl
Chris@19 21461 s/["\\]/\\&/g
Chris@19 21462 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
Chris@19 21463 D["\1"]=" \3\\\\\\n"\\/p
Chris@19 21464 t cont
Chris@19 21465 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
Chris@19 21466 t cont
Chris@19 21467 d
Chris@19 21468 :cont
Chris@19 21469 n
Chris@19 21470 s/.\{148\}/&'"$ac_delim"'/g
Chris@19 21471 t clear
Chris@19 21472 :clear
Chris@19 21473 s/\\$//
Chris@19 21474 t bsnlc
Chris@19 21475 s/["\\]/\\&/g; s/^/"/; s/$/"/p
Chris@19 21476 d
Chris@19 21477 :bsnlc
Chris@19 21478 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
Chris@19 21479 b cont
Chris@19 21480 ' <confdefs.h | sed '
Chris@19 21481 s/'"$ac_delim"'/"\\\
Chris@19 21482 "/g' >>$CONFIG_STATUS || ac_write_fail=1
Chris@19 21483
Chris@19 21484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@19 21485 for (key in D) D_is_set[key] = 1
Chris@19 21486 FS = ""
Chris@19 21487 }
Chris@19 21488 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
Chris@19 21489 line = \$ 0
Chris@19 21490 split(line, arg, " ")
Chris@19 21491 if (arg[1] == "#") {
Chris@19 21492 defundef = arg[2]
Chris@19 21493 mac1 = arg[3]
Chris@19 21494 } else {
Chris@19 21495 defundef = substr(arg[1], 2)
Chris@19 21496 mac1 = arg[2]
Chris@19 21497 }
Chris@19 21498 split(mac1, mac2, "(") #)
Chris@19 21499 macro = mac2[1]
Chris@19 21500 prefix = substr(line, 1, index(line, defundef) - 1)
Chris@19 21501 if (D_is_set[macro]) {
Chris@19 21502 # Preserve the white space surrounding the "#".
Chris@19 21503 print prefix "define", macro P[macro] D[macro]
Chris@19 21504 next
Chris@19 21505 } else {
Chris@19 21506 # Replace #undef with comments. This is necessary, for example,
Chris@19 21507 # in the case of _POSIX_SOURCE, which is predefined and required
Chris@19 21508 # on some systems where configure will not decide to define it.
Chris@19 21509 if (defundef == "undef") {
Chris@19 21510 print "/*", prefix defundef, macro, "*/"
Chris@19 21511 next
Chris@19 21512 }
Chris@19 21513 }
Chris@19 21514 }
Chris@19 21515 { print }
Chris@19 21516 _ACAWK
Chris@19 21517 _ACEOF
Chris@19 21518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@19 21519 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Chris@19 21520 fi # test -n "$CONFIG_HEADERS"
Chris@19 21521
Chris@19 21522
Chris@19 21523 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Chris@19 21524 shift
Chris@19 21525 for ac_tag
Chris@19 21526 do
Chris@19 21527 case $ac_tag in
Chris@19 21528 :[FHLC]) ac_mode=$ac_tag; continue;;
Chris@19 21529 esac
Chris@19 21530 case $ac_mode$ac_tag in
Chris@19 21531 :[FHL]*:*);;
Chris@19 21532 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Chris@19 21533 :[FH]-) ac_tag=-:-;;
Chris@19 21534 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
Chris@19 21535 esac
Chris@19 21536 ac_save_IFS=$IFS
Chris@19 21537 IFS=:
Chris@19 21538 set x $ac_tag
Chris@19 21539 IFS=$ac_save_IFS
Chris@19 21540 shift
Chris@19 21541 ac_file=$1
Chris@19 21542 shift
Chris@19 21543
Chris@19 21544 case $ac_mode in
Chris@19 21545 :L) ac_source=$1;;
Chris@19 21546 :[FH])
Chris@19 21547 ac_file_inputs=
Chris@19 21548 for ac_f
Chris@19 21549 do
Chris@19 21550 case $ac_f in
Chris@19 21551 -) ac_f="$ac_tmp/stdin";;
Chris@19 21552 *) # Look for the file first in the build tree, then in the source tree
Chris@19 21553 # (if the path is not absolute). The absolute path cannot be DOS-style,
Chris@19 21554 # because $ac_f cannot contain `:'.
Chris@19 21555 test -f "$ac_f" ||
Chris@19 21556 case $ac_f in
Chris@19 21557 [\\/$]*) false;;
Chris@19 21558 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
Chris@19 21559 esac ||
Chris@19 21560 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Chris@19 21561 esac
Chris@19 21562 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Chris@19 21563 as_fn_append ac_file_inputs " '$ac_f'"
Chris@19 21564 done
Chris@19 21565
Chris@19 21566 # Let's still pretend it is `configure' which instantiates (i.e., don't
Chris@19 21567 # use $as_me), people would be surprised to read:
Chris@19 21568 # /* config.h. Generated by config.status. */
Chris@19 21569 configure_input='Generated from '`
Chris@19 21570 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
Chris@19 21571 `' by configure.'
Chris@19 21572 if test x"$ac_file" != x-; then
Chris@19 21573 configure_input="$ac_file. $configure_input"
Chris@19 21574 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Chris@19 21575 $as_echo "$as_me: creating $ac_file" >&6;}
Chris@19 21576 fi
Chris@19 21577 # Neutralize special characters interpreted by sed in replacement strings.
Chris@19 21578 case $configure_input in #(
Chris@19 21579 *\&* | *\|* | *\\* )
Chris@19 21580 ac_sed_conf_input=`$as_echo "$configure_input" |
Chris@19 21581 sed 's/[\\\\&|]/\\\\&/g'`;; #(
Chris@19 21582 *) ac_sed_conf_input=$configure_input;;
Chris@19 21583 esac
Chris@19 21584
Chris@19 21585 case $ac_tag in
Chris@19 21586 *:-:* | *:-) cat >"$ac_tmp/stdin" \
Chris@19 21587 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Chris@19 21588 esac
Chris@19 21589 ;;
Chris@19 21590 esac
Chris@19 21591
Chris@19 21592 ac_dir=`$as_dirname -- "$ac_file" ||
Chris@19 21593 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@19 21594 X"$ac_file" : 'X\(//\)[^/]' \| \
Chris@19 21595 X"$ac_file" : 'X\(//\)$' \| \
Chris@19 21596 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Chris@19 21597 $as_echo X"$ac_file" |
Chris@19 21598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@19 21599 s//\1/
Chris@19 21600 q
Chris@19 21601 }
Chris@19 21602 /^X\(\/\/\)[^/].*/{
Chris@19 21603 s//\1/
Chris@19 21604 q
Chris@19 21605 }
Chris@19 21606 /^X\(\/\/\)$/{
Chris@19 21607 s//\1/
Chris@19 21608 q
Chris@19 21609 }
Chris@19 21610 /^X\(\/\).*/{
Chris@19 21611 s//\1/
Chris@19 21612 q
Chris@19 21613 }
Chris@19 21614 s/.*/./; q'`
Chris@19 21615 as_dir="$ac_dir"; as_fn_mkdir_p
Chris@19 21616 ac_builddir=.
Chris@19 21617
Chris@19 21618 case "$ac_dir" in
Chris@19 21619 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@19 21620 *)
Chris@19 21621 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Chris@19 21622 # A ".." for each directory in $ac_dir_suffix.
Chris@19 21623 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Chris@19 21624 case $ac_top_builddir_sub in
Chris@19 21625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@19 21626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
Chris@19 21627 esac ;;
Chris@19 21628 esac
Chris@19 21629 ac_abs_top_builddir=$ac_pwd
Chris@19 21630 ac_abs_builddir=$ac_pwd$ac_dir_suffix
Chris@19 21631 # for backward compatibility:
Chris@19 21632 ac_top_builddir=$ac_top_build_prefix
Chris@19 21633
Chris@19 21634 case $srcdir in
Chris@19 21635 .) # We are building in place.
Chris@19 21636 ac_srcdir=.
Chris@19 21637 ac_top_srcdir=$ac_top_builddir_sub
Chris@19 21638 ac_abs_top_srcdir=$ac_pwd ;;
Chris@19 21639 [\\/]* | ?:[\\/]* ) # Absolute name.
Chris@19 21640 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@19 21641 ac_top_srcdir=$srcdir
Chris@19 21642 ac_abs_top_srcdir=$srcdir ;;
Chris@19 21643 *) # Relative name.
Chris@19 21644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
Chris@19 21645 ac_top_srcdir=$ac_top_build_prefix$srcdir
Chris@19 21646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Chris@19 21647 esac
Chris@19 21648 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Chris@19 21649
Chris@19 21650
Chris@19 21651 case $ac_mode in
Chris@19 21652 :F)
Chris@19 21653 #
Chris@19 21654 # CONFIG_FILE
Chris@19 21655 #
Chris@19 21656
Chris@19 21657 case $INSTALL in
Chris@19 21658 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Chris@19 21659 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Chris@19 21660 esac
Chris@19 21661 ac_MKDIR_P=$MKDIR_P
Chris@19 21662 case $MKDIR_P in
Chris@19 21663 [\\/$]* | ?:[\\/]* ) ;;
Chris@19 21664 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
Chris@19 21665 esac
Chris@19 21666 _ACEOF
Chris@19 21667
Chris@19 21668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@19 21669 # If the template does not know about datarootdir, expand it.
Chris@19 21670 # FIXME: This hack should be removed a few years after 2.60.
Chris@19 21671 ac_datarootdir_hack=; ac_datarootdir_seen=
Chris@19 21672 ac_sed_dataroot='
Chris@19 21673 /datarootdir/ {
Chris@19 21674 p
Chris@19 21675 q
Chris@19 21676 }
Chris@19 21677 /@datadir@/p
Chris@19 21678 /@docdir@/p
Chris@19 21679 /@infodir@/p
Chris@19 21680 /@localedir@/p
Chris@19 21681 /@mandir@/p'
Chris@19 21682 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Chris@19 21683 *datarootdir*) ac_datarootdir_seen=yes;;
Chris@19 21684 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Chris@19 21685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
Chris@19 21686 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Chris@19 21687 _ACEOF
Chris@19 21688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@19 21689 ac_datarootdir_hack='
Chris@19 21690 s&@datadir@&$datadir&g
Chris@19 21691 s&@docdir@&$docdir&g
Chris@19 21692 s&@infodir@&$infodir&g
Chris@19 21693 s&@localedir@&$localedir&g
Chris@19 21694 s&@mandir@&$mandir&g
Chris@19 21695 s&\\\${datarootdir}&$datarootdir&g' ;;
Chris@19 21696 esac
Chris@19 21697 _ACEOF
Chris@19 21698
Chris@19 21699 # Neutralize VPATH when `$srcdir' = `.'.
Chris@19 21700 # Shell code in configure.ac might set extrasub.
Chris@19 21701 # FIXME: do we really want to maintain this feature?
Chris@19 21702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@19 21703 ac_sed_extra="$ac_vpsub
Chris@19 21704 $extrasub
Chris@19 21705 _ACEOF
Chris@19 21706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@19 21707 :t
Chris@19 21708 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Chris@19 21709 s|@configure_input@|$ac_sed_conf_input|;t t
Chris@19 21710 s&@top_builddir@&$ac_top_builddir_sub&;t t
Chris@19 21711 s&@top_build_prefix@&$ac_top_build_prefix&;t t
Chris@19 21712 s&@srcdir@&$ac_srcdir&;t t
Chris@19 21713 s&@abs_srcdir@&$ac_abs_srcdir&;t t
Chris@19 21714 s&@top_srcdir@&$ac_top_srcdir&;t t
Chris@19 21715 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
Chris@19 21716 s&@builddir@&$ac_builddir&;t t
Chris@19 21717 s&@abs_builddir@&$ac_abs_builddir&;t t
Chris@19 21718 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Chris@19 21719 s&@INSTALL@&$ac_INSTALL&;t t
Chris@19 21720 s&@MKDIR_P@&$ac_MKDIR_P&;t t
Chris@19 21721 $ac_datarootdir_hack
Chris@19 21722 "
Chris@19 21723 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
Chris@19 21724 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@19 21725
Chris@19 21726 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Chris@19 21727 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
Chris@19 21728 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
Chris@19 21729 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Chris@19 21730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Chris@19 21731 which seems to be undefined. Please make sure it is defined" >&5
Chris@19 21732 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Chris@19 21733 which seems to be undefined. Please make sure it is defined" >&2;}
Chris@19 21734
Chris@19 21735 rm -f "$ac_tmp/stdin"
Chris@19 21736 case $ac_file in
Chris@19 21737 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
Chris@19 21738 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Chris@19 21739 esac \
Chris@19 21740 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@19 21741 ;;
Chris@19 21742 :H)
Chris@19 21743 #
Chris@19 21744 # CONFIG_HEADER
Chris@19 21745 #
Chris@19 21746 if test x"$ac_file" != x-; then
Chris@19 21747 {
Chris@19 21748 $as_echo "/* $configure_input */" \
Chris@19 21749 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
Chris@19 21750 } >"$ac_tmp/config.h" \
Chris@19 21751 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@19 21752 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Chris@19 21753 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Chris@19 21754 $as_echo "$as_me: $ac_file is unchanged" >&6;}
Chris@19 21755 else
Chris@19 21756 rm -f "$ac_file"
Chris@19 21757 mv "$ac_tmp/config.h" "$ac_file" \
Chris@19 21758 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@19 21759 fi
Chris@19 21760 else
Chris@19 21761 $as_echo "/* $configure_input */" \
Chris@19 21762 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
Chris@19 21763 || as_fn_error $? "could not create -" "$LINENO" 5
Chris@19 21764 fi
Chris@19 21765 # Compute "$ac_file"'s index in $config_headers.
Chris@19 21766 _am_arg="$ac_file"
Chris@19 21767 _am_stamp_count=1
Chris@19 21768 for _am_header in $config_headers :; do
Chris@19 21769 case $_am_header in
Chris@19 21770 $_am_arg | $_am_arg:* )
Chris@19 21771 break ;;
Chris@19 21772 * )
Chris@19 21773 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
Chris@19 21774 esac
Chris@19 21775 done
Chris@19 21776 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
Chris@19 21777 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@19 21778 X"$_am_arg" : 'X\(//\)[^/]' \| \
Chris@19 21779 X"$_am_arg" : 'X\(//\)$' \| \
Chris@19 21780 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
Chris@19 21781 $as_echo X"$_am_arg" |
Chris@19 21782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@19 21783 s//\1/
Chris@19 21784 q
Chris@19 21785 }
Chris@19 21786 /^X\(\/\/\)[^/].*/{
Chris@19 21787 s//\1/
Chris@19 21788 q
Chris@19 21789 }
Chris@19 21790 /^X\(\/\/\)$/{
Chris@19 21791 s//\1/
Chris@19 21792 q
Chris@19 21793 }
Chris@19 21794 /^X\(\/\).*/{
Chris@19 21795 s//\1/
Chris@19 21796 q
Chris@19 21797 }
Chris@19 21798 s/.*/./; q'`/stamp-h$_am_stamp_count
Chris@19 21799 ;;
Chris@19 21800
Chris@19 21801 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Chris@19 21802 $as_echo "$as_me: executing $ac_file commands" >&6;}
Chris@19 21803 ;;
Chris@19 21804 esac
Chris@19 21805
Chris@19 21806
Chris@19 21807 case $ac_file$ac_mode in
Chris@19 21808 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
Chris@19 21809 # Older Autoconf quotes --file arguments for eval, but not when files
Chris@19 21810 # are listed without --file. Let's play safe and only enable the eval
Chris@19 21811 # if we detect the quoting.
Chris@19 21812 case $CONFIG_FILES in
Chris@19 21813 *\'*) eval set x "$CONFIG_FILES" ;;
Chris@19 21814 *) set x $CONFIG_FILES ;;
Chris@19 21815 esac
Chris@19 21816 shift
Chris@19 21817 for mf
Chris@19 21818 do
Chris@19 21819 # Strip MF so we end up with the name of the file.
Chris@19 21820 mf=`echo "$mf" | sed -e 's/:.*$//'`
Chris@19 21821 # Check whether this is an Automake generated Makefile or not.
Chris@19 21822 # We used to match only the files named 'Makefile.in', but
Chris@19 21823 # some people rename them; so instead we look at the file content.
Chris@19 21824 # Grep'ing the first line is not enough: some people post-process
Chris@19 21825 # each Makefile.in and add a new line on top of each file to say so.
Chris@19 21826 # Grep'ing the whole file is not good either: AIX grep has a line
Chris@19 21827 # limit of 2048, but all sed's we know have understand at least 4000.
Chris@19 21828 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
Chris@19 21829 dirpart=`$as_dirname -- "$mf" ||
Chris@19 21830 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@19 21831 X"$mf" : 'X\(//\)[^/]' \| \
Chris@19 21832 X"$mf" : 'X\(//\)$' \| \
Chris@19 21833 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Chris@19 21834 $as_echo X"$mf" |
Chris@19 21835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@19 21836 s//\1/
Chris@19 21837 q
Chris@19 21838 }
Chris@19 21839 /^X\(\/\/\)[^/].*/{
Chris@19 21840 s//\1/
Chris@19 21841 q
Chris@19 21842 }
Chris@19 21843 /^X\(\/\/\)$/{
Chris@19 21844 s//\1/
Chris@19 21845 q
Chris@19 21846 }
Chris@19 21847 /^X\(\/\).*/{
Chris@19 21848 s//\1/
Chris@19 21849 q
Chris@19 21850 }
Chris@19 21851 s/.*/./; q'`
Chris@19 21852 else
Chris@19 21853 continue
Chris@19 21854 fi
Chris@19 21855 # Extract the definition of DEPDIR, am__include, and am__quote
Chris@19 21856 # from the Makefile without running 'make'.
Chris@19 21857 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
Chris@19 21858 test -z "$DEPDIR" && continue
Chris@19 21859 am__include=`sed -n 's/^am__include = //p' < "$mf"`
Chris@19 21860 test -z "$am__include" && continue
Chris@19 21861 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Chris@19 21862 # Find all dependency output files, they are included files with
Chris@19 21863 # $(DEPDIR) in their names. We invoke sed twice because it is the
Chris@19 21864 # simplest approach to changing $(DEPDIR) to its actual value in the
Chris@19 21865 # expansion.
Chris@19 21866 for file in `sed -n "
Chris@19 21867 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Chris@19 21868 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
Chris@19 21869 # Make sure the directory exists.
Chris@19 21870 test -f "$dirpart/$file" && continue
Chris@19 21871 fdir=`$as_dirname -- "$file" ||
Chris@19 21872 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@19 21873 X"$file" : 'X\(//\)[^/]' \| \
Chris@19 21874 X"$file" : 'X\(//\)$' \| \
Chris@19 21875 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Chris@19 21876 $as_echo X"$file" |
Chris@19 21877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@19 21878 s//\1/
Chris@19 21879 q
Chris@19 21880 }
Chris@19 21881 /^X\(\/\/\)[^/].*/{
Chris@19 21882 s//\1/
Chris@19 21883 q
Chris@19 21884 }
Chris@19 21885 /^X\(\/\/\)$/{
Chris@19 21886 s//\1/
Chris@19 21887 q
Chris@19 21888 }
Chris@19 21889 /^X\(\/\).*/{
Chris@19 21890 s//\1/
Chris@19 21891 q
Chris@19 21892 }
Chris@19 21893 s/.*/./; q'`
Chris@19 21894 as_dir=$dirpart/$fdir; as_fn_mkdir_p
Chris@19 21895 # echo "creating $dirpart/$file"
Chris@19 21896 echo '# dummy' > "$dirpart/$file"
Chris@19 21897 done
Chris@19 21898 done
Chris@19 21899 }
Chris@19 21900 ;;
Chris@19 21901 "libtool":C)
Chris@19 21902
Chris@19 21903 # See if we are running on zsh, and set the options which allow our
Chris@19 21904 # commands through without removal of \ escapes.
Chris@19 21905 if test -n "${ZSH_VERSION+set}" ; then
Chris@19 21906 setopt NO_GLOB_SUBST
Chris@19 21907 fi
Chris@19 21908
Chris@19 21909 cfgfile="${ofile}T"
Chris@19 21910 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
Chris@19 21911 $RM "$cfgfile"
Chris@19 21912
Chris@19 21913 cat <<_LT_EOF >> "$cfgfile"
Chris@19 21914 #! $SHELL
Chris@19 21915
Chris@19 21916 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
Chris@19 21917 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
Chris@19 21918 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
Chris@19 21919 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
Chris@19 21920 #
Chris@19 21921 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
Chris@19 21922 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
Chris@19 21923 # Foundation, Inc.
Chris@19 21924 # Written by Gordon Matzigkeit, 1996
Chris@19 21925 #
Chris@19 21926 # This file is part of GNU Libtool.
Chris@19 21927 #
Chris@19 21928 # GNU Libtool is free software; you can redistribute it and/or
Chris@19 21929 # modify it under the terms of the GNU General Public License as
Chris@19 21930 # published by the Free Software Foundation; either version 2 of
Chris@19 21931 # the License, or (at your option) any later version.
Chris@19 21932 #
Chris@19 21933 # As a special exception to the GNU General Public License,
Chris@19 21934 # if you distribute this file as part of a program or library that
Chris@19 21935 # is built using GNU Libtool, you may include this file under the
Chris@19 21936 # same distribution terms that you use for the rest of that program.
Chris@19 21937 #
Chris@19 21938 # GNU Libtool is distributed in the hope that it will be useful,
Chris@19 21939 # but WITHOUT ANY WARRANTY; without even the implied warranty of
Chris@19 21940 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Chris@19 21941 # GNU General Public License for more details.
Chris@19 21942 #
Chris@19 21943 # You should have received a copy of the GNU General Public License
Chris@19 21944 # along with GNU Libtool; see the file COPYING. If not, a copy
Chris@19 21945 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
Chris@19 21946 # obtained by writing to the Free Software Foundation, Inc.,
Chris@19 21947 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Chris@19 21948
Chris@19 21949
Chris@19 21950 # The names of the tagged configurations supported by this script.
Chris@19 21951 available_tags="F77 "
Chris@19 21952
Chris@19 21953 # ### BEGIN LIBTOOL CONFIG
Chris@19 21954
Chris@19 21955 # Whether or not to build shared libraries.
Chris@19 21956 build_libtool_libs=$enable_shared
Chris@19 21957
Chris@19 21958 # Assembler program.
Chris@19 21959 AS=$lt_AS
Chris@19 21960
Chris@19 21961 # DLL creation program.
Chris@19 21962 DLLTOOL=$lt_DLLTOOL
Chris@19 21963
Chris@19 21964 # Object dumper program.
Chris@19 21965 OBJDUMP=$lt_OBJDUMP
Chris@19 21966
Chris@19 21967 # Which release of libtool.m4 was used?
Chris@19 21968 macro_version=$macro_version
Chris@19 21969 macro_revision=$macro_revision
Chris@19 21970
Chris@19 21971 # Whether or not to build static libraries.
Chris@19 21972 build_old_libs=$enable_static
Chris@19 21973
Chris@19 21974 # What type of objects to build.
Chris@19 21975 pic_mode=$pic_mode
Chris@19 21976
Chris@19 21977 # Whether or not to optimize for fast installation.
Chris@19 21978 fast_install=$enable_fast_install
Chris@19 21979
Chris@19 21980 # Shell to use when invoking shell scripts.
Chris@19 21981 SHELL=$lt_SHELL
Chris@19 21982
Chris@19 21983 # An echo program that protects backslashes.
Chris@19 21984 ECHO=$lt_ECHO
Chris@19 21985
Chris@19 21986 # The PATH separator for the build system.
Chris@19 21987 PATH_SEPARATOR=$lt_PATH_SEPARATOR
Chris@19 21988
Chris@19 21989 # The host system.
Chris@19 21990 host_alias=$host_alias
Chris@19 21991 host=$host
Chris@19 21992 host_os=$host_os
Chris@19 21993
Chris@19 21994 # The build system.
Chris@19 21995 build_alias=$build_alias
Chris@19 21996 build=$build
Chris@19 21997 build_os=$build_os
Chris@19 21998
Chris@19 21999 # A sed program that does not truncate output.
Chris@19 22000 SED=$lt_SED
Chris@19 22001
Chris@19 22002 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
Chris@19 22003 Xsed="\$SED -e 1s/^X//"
Chris@19 22004
Chris@19 22005 # A grep program that handles long lines.
Chris@19 22006 GREP=$lt_GREP
Chris@19 22007
Chris@19 22008 # An ERE matcher.
Chris@19 22009 EGREP=$lt_EGREP
Chris@19 22010
Chris@19 22011 # A literal string matcher.
Chris@19 22012 FGREP=$lt_FGREP
Chris@19 22013
Chris@19 22014 # A BSD- or MS-compatible name lister.
Chris@19 22015 NM=$lt_NM
Chris@19 22016
Chris@19 22017 # Whether we need soft or hard links.
Chris@19 22018 LN_S=$lt_LN_S
Chris@19 22019
Chris@19 22020 # What is the maximum length of a command?
Chris@19 22021 max_cmd_len=$max_cmd_len
Chris@19 22022
Chris@19 22023 # Object file suffix (normally "o").
Chris@19 22024 objext=$ac_objext
Chris@19 22025
Chris@19 22026 # Executable file suffix (normally "").
Chris@19 22027 exeext=$exeext
Chris@19 22028
Chris@19 22029 # whether the shell understands "unset".
Chris@19 22030 lt_unset=$lt_unset
Chris@19 22031
Chris@19 22032 # turn spaces into newlines.
Chris@19 22033 SP2NL=$lt_lt_SP2NL
Chris@19 22034
Chris@19 22035 # turn newlines into spaces.
Chris@19 22036 NL2SP=$lt_lt_NL2SP
Chris@19 22037
Chris@19 22038 # convert \$build file names to \$host format.
Chris@19 22039 to_host_file_cmd=$lt_cv_to_host_file_cmd
Chris@19 22040
Chris@19 22041 # convert \$build files to toolchain format.
Chris@19 22042 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Chris@19 22043
Chris@19 22044 # Method to check whether dependent libraries are shared objects.
Chris@19 22045 deplibs_check_method=$lt_deplibs_check_method
Chris@19 22046
Chris@19 22047 # Command to use when deplibs_check_method = "file_magic".
Chris@19 22048 file_magic_cmd=$lt_file_magic_cmd
Chris@19 22049
Chris@19 22050 # How to find potential files when deplibs_check_method = "file_magic".
Chris@19 22051 file_magic_glob=$lt_file_magic_glob
Chris@19 22052
Chris@19 22053 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
Chris@19 22054 want_nocaseglob=$lt_want_nocaseglob
Chris@19 22055
Chris@19 22056 # Command to associate shared and link libraries.
Chris@19 22057 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
Chris@19 22058
Chris@19 22059 # The archiver.
Chris@19 22060 AR=$lt_AR
Chris@19 22061
Chris@19 22062 # Flags to create an archive.
Chris@19 22063 AR_FLAGS=$lt_AR_FLAGS
Chris@19 22064
Chris@19 22065 # How to feed a file listing to the archiver.
Chris@19 22066 archiver_list_spec=$lt_archiver_list_spec
Chris@19 22067
Chris@19 22068 # A symbol stripping program.
Chris@19 22069 STRIP=$lt_STRIP
Chris@19 22070
Chris@19 22071 # Commands used to install an old-style archive.
Chris@19 22072 RANLIB=$lt_RANLIB
Chris@19 22073 old_postinstall_cmds=$lt_old_postinstall_cmds
Chris@19 22074 old_postuninstall_cmds=$lt_old_postuninstall_cmds
Chris@19 22075
Chris@19 22076 # Whether to use a lock for old archive extraction.
Chris@19 22077 lock_old_archive_extraction=$lock_old_archive_extraction
Chris@19 22078
Chris@19 22079 # A C compiler.
Chris@19 22080 LTCC=$lt_CC
Chris@19 22081
Chris@19 22082 # LTCC compiler flags.
Chris@19 22083 LTCFLAGS=$lt_CFLAGS
Chris@19 22084
Chris@19 22085 # Take the output of nm and produce a listing of raw symbols and C names.
Chris@19 22086 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
Chris@19 22087
Chris@19 22088 # Transform the output of nm in a proper C declaration.
Chris@19 22089 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
Chris@19 22090
Chris@19 22091 # Transform the output of nm in a C name address pair.
Chris@19 22092 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
Chris@19 22093
Chris@19 22094 # Transform the output of nm in a C name address pair when lib prefix is needed.
Chris@19 22095 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
Chris@19 22096
Chris@19 22097 # Specify filename containing input files for \$NM.
Chris@19 22098 nm_file_list_spec=$lt_nm_file_list_spec
Chris@19 22099
Chris@19 22100 # The root where to search for dependent libraries,and in which our libraries should be installed.
Chris@19 22101 lt_sysroot=$lt_sysroot
Chris@19 22102
Chris@19 22103 # The name of the directory that contains temporary libtool files.
Chris@19 22104 objdir=$objdir
Chris@19 22105
Chris@19 22106 # Used to examine libraries when file_magic_cmd begins with "file".
Chris@19 22107 MAGIC_CMD=$MAGIC_CMD
Chris@19 22108
Chris@19 22109 # Must we lock files when doing compilation?
Chris@19 22110 need_locks=$lt_need_locks
Chris@19 22111
Chris@19 22112 # Manifest tool.
Chris@19 22113 MANIFEST_TOOL=$lt_MANIFEST_TOOL
Chris@19 22114
Chris@19 22115 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
Chris@19 22116 DSYMUTIL=$lt_DSYMUTIL
Chris@19 22117
Chris@19 22118 # Tool to change global to local symbols on Mac OS X.
Chris@19 22119 NMEDIT=$lt_NMEDIT
Chris@19 22120
Chris@19 22121 # Tool to manipulate fat objects and archives on Mac OS X.
Chris@19 22122 LIPO=$lt_LIPO
Chris@19 22123
Chris@19 22124 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
Chris@19 22125 OTOOL=$lt_OTOOL
Chris@19 22126
Chris@19 22127 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
Chris@19 22128 OTOOL64=$lt_OTOOL64
Chris@19 22129
Chris@19 22130 # Old archive suffix (normally "a").
Chris@19 22131 libext=$libext
Chris@19 22132
Chris@19 22133 # Shared library suffix (normally ".so").
Chris@19 22134 shrext_cmds=$lt_shrext_cmds
Chris@19 22135
Chris@19 22136 # The commands to extract the exported symbol list from a shared archive.
Chris@19 22137 extract_expsyms_cmds=$lt_extract_expsyms_cmds
Chris@19 22138
Chris@19 22139 # Variables whose values should be saved in libtool wrapper scripts and
Chris@19 22140 # restored at link time.
Chris@19 22141 variables_saved_for_relink=$lt_variables_saved_for_relink
Chris@19 22142
Chris@19 22143 # Do we need the "lib" prefix for modules?
Chris@19 22144 need_lib_prefix=$need_lib_prefix
Chris@19 22145
Chris@19 22146 # Do we need a version for libraries?
Chris@19 22147 need_version=$need_version
Chris@19 22148
Chris@19 22149 # Library versioning type.
Chris@19 22150 version_type=$version_type
Chris@19 22151
Chris@19 22152 # Shared library runtime path variable.
Chris@19 22153 runpath_var=$runpath_var
Chris@19 22154
Chris@19 22155 # Shared library path variable.
Chris@19 22156 shlibpath_var=$shlibpath_var
Chris@19 22157
Chris@19 22158 # Is shlibpath searched before the hard-coded library search path?
Chris@19 22159 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
Chris@19 22160
Chris@19 22161 # Format of library name prefix.
Chris@19 22162 libname_spec=$lt_libname_spec
Chris@19 22163
Chris@19 22164 # List of archive names. First name is the real one, the rest are links.
Chris@19 22165 # The last name is the one that the linker finds with -lNAME
Chris@19 22166 library_names_spec=$lt_library_names_spec
Chris@19 22167
Chris@19 22168 # The coded name of the library, if different from the real name.
Chris@19 22169 soname_spec=$lt_soname_spec
Chris@19 22170
Chris@19 22171 # Permission mode override for installation of shared libraries.
Chris@19 22172 install_override_mode=$lt_install_override_mode
Chris@19 22173
Chris@19 22174 # Command to use after installation of a shared archive.
Chris@19 22175 postinstall_cmds=$lt_postinstall_cmds
Chris@19 22176
Chris@19 22177 # Command to use after uninstallation of a shared archive.
Chris@19 22178 postuninstall_cmds=$lt_postuninstall_cmds
Chris@19 22179
Chris@19 22180 # Commands used to finish a libtool library installation in a directory.
Chris@19 22181 finish_cmds=$lt_finish_cmds
Chris@19 22182
Chris@19 22183 # As "finish_cmds", except a single script fragment to be evaled but
Chris@19 22184 # not shown.
Chris@19 22185 finish_eval=$lt_finish_eval
Chris@19 22186
Chris@19 22187 # Whether we should hardcode library paths into libraries.
Chris@19 22188 hardcode_into_libs=$hardcode_into_libs
Chris@19 22189
Chris@19 22190 # Compile-time system search path for libraries.
Chris@19 22191 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
Chris@19 22192
Chris@19 22193 # Run-time system search path for libraries.
Chris@19 22194 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
Chris@19 22195
Chris@19 22196 # Whether dlopen is supported.
Chris@19 22197 dlopen_support=$enable_dlopen
Chris@19 22198
Chris@19 22199 # Whether dlopen of programs is supported.
Chris@19 22200 dlopen_self=$enable_dlopen_self
Chris@19 22201
Chris@19 22202 # Whether dlopen of statically linked programs is supported.
Chris@19 22203 dlopen_self_static=$enable_dlopen_self_static
Chris@19 22204
Chris@19 22205 # Commands to strip libraries.
Chris@19 22206 old_striplib=$lt_old_striplib
Chris@19 22207 striplib=$lt_striplib
Chris@19 22208
Chris@19 22209
Chris@19 22210 # The linker used to build libraries.
Chris@19 22211 LD=$lt_LD
Chris@19 22212
Chris@19 22213 # How to create reloadable object files.
Chris@19 22214 reload_flag=$lt_reload_flag
Chris@19 22215 reload_cmds=$lt_reload_cmds
Chris@19 22216
Chris@19 22217 # Commands used to build an old-style archive.
Chris@19 22218 old_archive_cmds=$lt_old_archive_cmds
Chris@19 22219
Chris@19 22220 # A language specific compiler.
Chris@19 22221 CC=$lt_compiler
Chris@19 22222
Chris@19 22223 # Is the compiler the GNU compiler?
Chris@19 22224 with_gcc=$GCC
Chris@19 22225
Chris@19 22226 # Compiler flag to turn off builtin functions.
Chris@19 22227 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
Chris@19 22228
Chris@19 22229 # Additional compiler flags for building library objects.
Chris@19 22230 pic_flag=$lt_lt_prog_compiler_pic
Chris@19 22231
Chris@19 22232 # How to pass a linker flag through the compiler.
Chris@19 22233 wl=$lt_lt_prog_compiler_wl
Chris@19 22234
Chris@19 22235 # Compiler flag to prevent dynamic linking.
Chris@19 22236 link_static_flag=$lt_lt_prog_compiler_static
Chris@19 22237
Chris@19 22238 # Does compiler simultaneously support -c and -o options?
Chris@19 22239 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
Chris@19 22240
Chris@19 22241 # Whether or not to add -lc for building shared libraries.
Chris@19 22242 build_libtool_need_lc=$archive_cmds_need_lc
Chris@19 22243
Chris@19 22244 # Whether or not to disallow shared libs when runtime libs are static.
Chris@19 22245 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
Chris@19 22246
Chris@19 22247 # Compiler flag to allow reflexive dlopens.
Chris@19 22248 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
Chris@19 22249
Chris@19 22250 # Compiler flag to generate shared objects directly from archives.
Chris@19 22251 whole_archive_flag_spec=$lt_whole_archive_flag_spec
Chris@19 22252
Chris@19 22253 # Whether the compiler copes with passing no objects directly.
Chris@19 22254 compiler_needs_object=$lt_compiler_needs_object
Chris@19 22255
Chris@19 22256 # Create an old-style archive from a shared archive.
Chris@19 22257 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
Chris@19 22258
Chris@19 22259 # Create a temporary old-style archive to link instead of a shared archive.
Chris@19 22260 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
Chris@19 22261
Chris@19 22262 # Commands used to build a shared archive.
Chris@19 22263 archive_cmds=$lt_archive_cmds
Chris@19 22264 archive_expsym_cmds=$lt_archive_expsym_cmds
Chris@19 22265
Chris@19 22266 # Commands used to build a loadable module if different from building
Chris@19 22267 # a shared archive.
Chris@19 22268 module_cmds=$lt_module_cmds
Chris@19 22269 module_expsym_cmds=$lt_module_expsym_cmds
Chris@19 22270
Chris@19 22271 # Whether we are building with GNU ld or not.
Chris@19 22272 with_gnu_ld=$lt_with_gnu_ld
Chris@19 22273
Chris@19 22274 # Flag that allows shared libraries with undefined symbols to be built.
Chris@19 22275 allow_undefined_flag=$lt_allow_undefined_flag
Chris@19 22276
Chris@19 22277 # Flag that enforces no undefined symbols.
Chris@19 22278 no_undefined_flag=$lt_no_undefined_flag
Chris@19 22279
Chris@19 22280 # Flag to hardcode \$libdir into a binary during linking.
Chris@19 22281 # This must work even if \$libdir does not exist
Chris@19 22282 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
Chris@19 22283
Chris@19 22284 # Whether we need a single "-rpath" flag with a separated argument.
Chris@19 22285 hardcode_libdir_separator=$lt_hardcode_libdir_separator
Chris@19 22286
Chris@19 22287 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
Chris@19 22288 # DIR into the resulting binary.
Chris@19 22289 hardcode_direct=$hardcode_direct
Chris@19 22290
Chris@19 22291 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
Chris@19 22292 # DIR into the resulting binary and the resulting library dependency is
Chris@19 22293 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
Chris@19 22294 # library is relocated.
Chris@19 22295 hardcode_direct_absolute=$hardcode_direct_absolute
Chris@19 22296
Chris@19 22297 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
Chris@19 22298 # into the resulting binary.
Chris@19 22299 hardcode_minus_L=$hardcode_minus_L
Chris@19 22300
Chris@19 22301 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
Chris@19 22302 # into the resulting binary.
Chris@19 22303 hardcode_shlibpath_var=$hardcode_shlibpath_var
Chris@19 22304
Chris@19 22305 # Set to "yes" if building a shared library automatically hardcodes DIR
Chris@19 22306 # into the library and all subsequent libraries and executables linked
Chris@19 22307 # against it.
Chris@19 22308 hardcode_automatic=$hardcode_automatic
Chris@19 22309
Chris@19 22310 # Set to yes if linker adds runtime paths of dependent libraries
Chris@19 22311 # to runtime path list.
Chris@19 22312 inherit_rpath=$inherit_rpath
Chris@19 22313
Chris@19 22314 # Whether libtool must link a program against all its dependency libraries.
Chris@19 22315 link_all_deplibs=$link_all_deplibs
Chris@19 22316
Chris@19 22317 # Set to "yes" if exported symbols are required.
Chris@19 22318 always_export_symbols=$always_export_symbols
Chris@19 22319
Chris@19 22320 # The commands to list exported symbols.
Chris@19 22321 export_symbols_cmds=$lt_export_symbols_cmds
Chris@19 22322
Chris@19 22323 # Symbols that should not be listed in the preloaded symbols.
Chris@19 22324 exclude_expsyms=$lt_exclude_expsyms
Chris@19 22325
Chris@19 22326 # Symbols that must always be exported.
Chris@19 22327 include_expsyms=$lt_include_expsyms
Chris@19 22328
Chris@19 22329 # Commands necessary for linking programs (against libraries) with templates.
Chris@19 22330 prelink_cmds=$lt_prelink_cmds
Chris@19 22331
Chris@19 22332 # Commands necessary for finishing linking programs.
Chris@19 22333 postlink_cmds=$lt_postlink_cmds
Chris@19 22334
Chris@19 22335 # Specify filename containing input files.
Chris@19 22336 file_list_spec=$lt_file_list_spec
Chris@19 22337
Chris@19 22338 # How to hardcode a shared library path into an executable.
Chris@19 22339 hardcode_action=$hardcode_action
Chris@19 22340
Chris@19 22341 # ### END LIBTOOL CONFIG
Chris@19 22342
Chris@19 22343 _LT_EOF
Chris@19 22344
Chris@19 22345 case $host_os in
Chris@19 22346 aix3*)
Chris@19 22347 cat <<\_LT_EOF >> "$cfgfile"
Chris@19 22348 # AIX sometimes has problems with the GCC collect2 program. For some
Chris@19 22349 # reason, if we set the COLLECT_NAMES environment variable, the problems
Chris@19 22350 # vanish in a puff of smoke.
Chris@19 22351 if test "X${COLLECT_NAMES+set}" != Xset; then
Chris@19 22352 COLLECT_NAMES=
Chris@19 22353 export COLLECT_NAMES
Chris@19 22354 fi
Chris@19 22355 _LT_EOF
Chris@19 22356 ;;
Chris@19 22357 esac
Chris@19 22358
Chris@19 22359
Chris@19 22360 ltmain="$ac_aux_dir/ltmain.sh"
Chris@19 22361
Chris@19 22362
Chris@19 22363 # We use sed instead of cat because bash on DJGPP gets confused if
Chris@19 22364 # if finds mixed CR/LF and LF-only lines. Since sed operates in
Chris@19 22365 # text mode, it properly converts lines to CR/LF. This bash problem
Chris@19 22366 # is reportedly fixed, but why not run on old versions too?
Chris@19 22367 sed '$q' "$ltmain" >> "$cfgfile" \
Chris@19 22368 || (rm -f "$cfgfile"; exit 1)
Chris@19 22369
Chris@19 22370 if test x"$xsi_shell" = xyes; then
Chris@19 22371 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
Chris@19 22372 func_dirname ()\
Chris@19 22373 {\
Chris@19 22374 \ case ${1} in\
Chris@19 22375 \ */*) func_dirname_result="${1%/*}${2}" ;;\
Chris@19 22376 \ * ) func_dirname_result="${3}" ;;\
Chris@19 22377 \ esac\
Chris@19 22378 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
Chris@19 22379 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@19 22380 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@19 22381 test 0 -eq $? || _lt_function_replace_fail=:
Chris@19 22382
Chris@19 22383
Chris@19 22384 sed -e '/^func_basename ()$/,/^} # func_basename /c\
Chris@19 22385 func_basename ()\
Chris@19 22386 {\
Chris@19 22387 \ func_basename_result="${1##*/}"\
Chris@19 22388 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
Chris@19 22389 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@19 22390 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@19 22391 test 0 -eq $? || _lt_function_replace_fail=:
Chris@19 22392
Chris@19 22393
Chris@19 22394 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
Chris@19 22395 func_dirname_and_basename ()\
Chris@19 22396 {\
Chris@19 22397 \ case ${1} in\
Chris@19 22398 \ */*) func_dirname_result="${1%/*}${2}" ;;\
Chris@19 22399 \ * ) func_dirname_result="${3}" ;;\
Chris@19 22400 \ esac\
Chris@19 22401 \ func_basename_result="${1##*/}"\
Chris@19 22402 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
Chris@19 22403 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@19 22404 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@19 22405 test 0 -eq $? || _lt_function_replace_fail=:
Chris@19 22406
Chris@19 22407
Chris@19 22408 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
Chris@19 22409 func_stripname ()\
Chris@19 22410 {\
Chris@19 22411 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
Chris@19 22412 \ # positional parameters, so assign one to ordinary parameter first.\
Chris@19 22413 \ func_stripname_result=${3}\
Chris@19 22414 \ func_stripname_result=${func_stripname_result#"${1}"}\
Chris@19 22415 \ func_stripname_result=${func_stripname_result%"${2}"}\
Chris@19 22416 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
Chris@19 22417 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@19 22418 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@19 22419 test 0 -eq $? || _lt_function_replace_fail=:
Chris@19 22420
Chris@19 22421
Chris@19 22422 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
Chris@19 22423 func_split_long_opt ()\
Chris@19 22424 {\
Chris@19 22425 \ func_split_long_opt_name=${1%%=*}\
Chris@19 22426 \ func_split_long_opt_arg=${1#*=}\
Chris@19 22427 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
Chris@19 22428 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@19 22429 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@19 22430 test 0 -eq $? || _lt_function_replace_fail=:
Chris@19 22431
Chris@19 22432
Chris@19 22433 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
Chris@19 22434 func_split_short_opt ()\
Chris@19 22435 {\
Chris@19 22436 \ func_split_short_opt_arg=${1#??}\
Chris@19 22437 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
Chris@19 22438 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
Chris@19 22439 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@19 22440 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@19 22441 test 0 -eq $? || _lt_function_replace_fail=:
Chris@19 22442
Chris@19 22443
Chris@19 22444 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
Chris@19 22445 func_lo2o ()\
Chris@19 22446 {\
Chris@19 22447 \ case ${1} in\
Chris@19 22448 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
Chris@19 22449 \ *) func_lo2o_result=${1} ;;\
Chris@19 22450 \ esac\
Chris@19 22451 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
Chris@19 22452 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@19 22453 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@19 22454 test 0 -eq $? || _lt_function_replace_fail=:
Chris@19 22455
Chris@19 22456
Chris@19 22457 sed -e '/^func_xform ()$/,/^} # func_xform /c\
Chris@19 22458 func_xform ()\
Chris@19 22459 {\
Chris@19 22460 func_xform_result=${1%.*}.lo\
Chris@19 22461 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
Chris@19 22462 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@19 22463 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@19 22464 test 0 -eq $? || _lt_function_replace_fail=:
Chris@19 22465
Chris@19 22466
Chris@19 22467 sed -e '/^func_arith ()$/,/^} # func_arith /c\
Chris@19 22468 func_arith ()\
Chris@19 22469 {\
Chris@19 22470 func_arith_result=$(( $* ))\
Chris@19 22471 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
Chris@19 22472 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@19 22473 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@19 22474 test 0 -eq $? || _lt_function_replace_fail=:
Chris@19 22475
Chris@19 22476
Chris@19 22477 sed -e '/^func_len ()$/,/^} # func_len /c\
Chris@19 22478 func_len ()\
Chris@19 22479 {\
Chris@19 22480 func_len_result=${#1}\
Chris@19 22481 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
Chris@19 22482 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@19 22483 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@19 22484 test 0 -eq $? || _lt_function_replace_fail=:
Chris@19 22485
Chris@19 22486 fi
Chris@19 22487
Chris@19 22488 if test x"$lt_shell_append" = xyes; then
Chris@19 22489 sed -e '/^func_append ()$/,/^} # func_append /c\
Chris@19 22490 func_append ()\
Chris@19 22491 {\
Chris@19 22492 eval "${1}+=\\${2}"\
Chris@19 22493 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
Chris@19 22494 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@19 22495 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@19 22496 test 0 -eq $? || _lt_function_replace_fail=:
Chris@19 22497
Chris@19 22498
Chris@19 22499 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
Chris@19 22500 func_append_quoted ()\
Chris@19 22501 {\
Chris@19 22502 \ func_quote_for_eval "${2}"\
Chris@19 22503 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
Chris@19 22504 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
Chris@19 22505 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@19 22506 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@19 22507 test 0 -eq $? || _lt_function_replace_fail=:
Chris@19 22508
Chris@19 22509
Chris@19 22510 # Save a `func_append' function call where possible by direct use of '+='
Chris@19 22511 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
Chris@19 22512 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@19 22513 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@19 22514 test 0 -eq $? || _lt_function_replace_fail=:
Chris@19 22515 else
Chris@19 22516 # Save a `func_append' function call even when '+=' is not available
Chris@19 22517 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
Chris@19 22518 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@19 22519 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@19 22520 test 0 -eq $? || _lt_function_replace_fail=:
Chris@19 22521 fi
Chris@19 22522
Chris@19 22523 if test x"$_lt_function_replace_fail" = x":"; then
Chris@19 22524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
Chris@19 22525 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
Chris@19 22526 fi
Chris@19 22527
Chris@19 22528
Chris@19 22529 mv -f "$cfgfile" "$ofile" ||
Chris@19 22530 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
Chris@19 22531 chmod +x "$ofile"
Chris@19 22532
Chris@19 22533
Chris@19 22534 cat <<_LT_EOF >> "$ofile"
Chris@19 22535
Chris@19 22536 # ### BEGIN LIBTOOL TAG CONFIG: F77
Chris@19 22537
Chris@19 22538 # The linker used to build libraries.
Chris@19 22539 LD=$lt_LD_F77
Chris@19 22540
Chris@19 22541 # How to create reloadable object files.
Chris@19 22542 reload_flag=$lt_reload_flag_F77
Chris@19 22543 reload_cmds=$lt_reload_cmds_F77
Chris@19 22544
Chris@19 22545 # Commands used to build an old-style archive.
Chris@19 22546 old_archive_cmds=$lt_old_archive_cmds_F77
Chris@19 22547
Chris@19 22548 # A language specific compiler.
Chris@19 22549 CC=$lt_compiler_F77
Chris@19 22550
Chris@19 22551 # Is the compiler the GNU compiler?
Chris@19 22552 with_gcc=$GCC_F77
Chris@19 22553
Chris@19 22554 # Compiler flag to turn off builtin functions.
Chris@19 22555 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
Chris@19 22556
Chris@19 22557 # Additional compiler flags for building library objects.
Chris@19 22558 pic_flag=$lt_lt_prog_compiler_pic_F77
Chris@19 22559
Chris@19 22560 # How to pass a linker flag through the compiler.
Chris@19 22561 wl=$lt_lt_prog_compiler_wl_F77
Chris@19 22562
Chris@19 22563 # Compiler flag to prevent dynamic linking.
Chris@19 22564 link_static_flag=$lt_lt_prog_compiler_static_F77
Chris@19 22565
Chris@19 22566 # Does compiler simultaneously support -c and -o options?
Chris@19 22567 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
Chris@19 22568
Chris@19 22569 # Whether or not to add -lc for building shared libraries.
Chris@19 22570 build_libtool_need_lc=$archive_cmds_need_lc_F77
Chris@19 22571
Chris@19 22572 # Whether or not to disallow shared libs when runtime libs are static.
Chris@19 22573 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
Chris@19 22574
Chris@19 22575 # Compiler flag to allow reflexive dlopens.
Chris@19 22576 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
Chris@19 22577
Chris@19 22578 # Compiler flag to generate shared objects directly from archives.
Chris@19 22579 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
Chris@19 22580
Chris@19 22581 # Whether the compiler copes with passing no objects directly.
Chris@19 22582 compiler_needs_object=$lt_compiler_needs_object_F77
Chris@19 22583
Chris@19 22584 # Create an old-style archive from a shared archive.
Chris@19 22585 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
Chris@19 22586
Chris@19 22587 # Create a temporary old-style archive to link instead of a shared archive.
Chris@19 22588 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
Chris@19 22589
Chris@19 22590 # Commands used to build a shared archive.
Chris@19 22591 archive_cmds=$lt_archive_cmds_F77
Chris@19 22592 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
Chris@19 22593
Chris@19 22594 # Commands used to build a loadable module if different from building
Chris@19 22595 # a shared archive.
Chris@19 22596 module_cmds=$lt_module_cmds_F77
Chris@19 22597 module_expsym_cmds=$lt_module_expsym_cmds_F77
Chris@19 22598
Chris@19 22599 # Whether we are building with GNU ld or not.
Chris@19 22600 with_gnu_ld=$lt_with_gnu_ld_F77
Chris@19 22601
Chris@19 22602 # Flag that allows shared libraries with undefined symbols to be built.
Chris@19 22603 allow_undefined_flag=$lt_allow_undefined_flag_F77
Chris@19 22604
Chris@19 22605 # Flag that enforces no undefined symbols.
Chris@19 22606 no_undefined_flag=$lt_no_undefined_flag_F77
Chris@19 22607
Chris@19 22608 # Flag to hardcode \$libdir into a binary during linking.
Chris@19 22609 # This must work even if \$libdir does not exist
Chris@19 22610 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
Chris@19 22611
Chris@19 22612 # Whether we need a single "-rpath" flag with a separated argument.
Chris@19 22613 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
Chris@19 22614
Chris@19 22615 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
Chris@19 22616 # DIR into the resulting binary.
Chris@19 22617 hardcode_direct=$hardcode_direct_F77
Chris@19 22618
Chris@19 22619 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
Chris@19 22620 # DIR into the resulting binary and the resulting library dependency is
Chris@19 22621 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
Chris@19 22622 # library is relocated.
Chris@19 22623 hardcode_direct_absolute=$hardcode_direct_absolute_F77
Chris@19 22624
Chris@19 22625 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
Chris@19 22626 # into the resulting binary.
Chris@19 22627 hardcode_minus_L=$hardcode_minus_L_F77
Chris@19 22628
Chris@19 22629 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
Chris@19 22630 # into the resulting binary.
Chris@19 22631 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
Chris@19 22632
Chris@19 22633 # Set to "yes" if building a shared library automatically hardcodes DIR
Chris@19 22634 # into the library and all subsequent libraries and executables linked
Chris@19 22635 # against it.
Chris@19 22636 hardcode_automatic=$hardcode_automatic_F77
Chris@19 22637
Chris@19 22638 # Set to yes if linker adds runtime paths of dependent libraries
Chris@19 22639 # to runtime path list.
Chris@19 22640 inherit_rpath=$inherit_rpath_F77
Chris@19 22641
Chris@19 22642 # Whether libtool must link a program against all its dependency libraries.
Chris@19 22643 link_all_deplibs=$link_all_deplibs_F77
Chris@19 22644
Chris@19 22645 # Set to "yes" if exported symbols are required.
Chris@19 22646 always_export_symbols=$always_export_symbols_F77
Chris@19 22647
Chris@19 22648 # The commands to list exported symbols.
Chris@19 22649 export_symbols_cmds=$lt_export_symbols_cmds_F77
Chris@19 22650
Chris@19 22651 # Symbols that should not be listed in the preloaded symbols.
Chris@19 22652 exclude_expsyms=$lt_exclude_expsyms_F77
Chris@19 22653
Chris@19 22654 # Symbols that must always be exported.
Chris@19 22655 include_expsyms=$lt_include_expsyms_F77
Chris@19 22656
Chris@19 22657 # Commands necessary for linking programs (against libraries) with templates.
Chris@19 22658 prelink_cmds=$lt_prelink_cmds_F77
Chris@19 22659
Chris@19 22660 # Commands necessary for finishing linking programs.
Chris@19 22661 postlink_cmds=$lt_postlink_cmds_F77
Chris@19 22662
Chris@19 22663 # Specify filename containing input files.
Chris@19 22664 file_list_spec=$lt_file_list_spec_F77
Chris@19 22665
Chris@19 22666 # How to hardcode a shared library path into an executable.
Chris@19 22667 hardcode_action=$hardcode_action_F77
Chris@19 22668
Chris@19 22669 # ### END LIBTOOL TAG CONFIG: F77
Chris@19 22670 _LT_EOF
Chris@19 22671
Chris@19 22672 ;;
Chris@19 22673
Chris@19 22674 esac
Chris@19 22675 done # for ac_tag
Chris@19 22676
Chris@19 22677
Chris@19 22678 as_fn_exit 0
Chris@19 22679 _ACEOF
Chris@19 22680 ac_clean_files=$ac_clean_files_save
Chris@19 22681
Chris@19 22682 test $ac_write_fail = 0 ||
Chris@19 22683 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Chris@19 22684
Chris@19 22685
Chris@19 22686 # configure is writing to config.log, and then calls config.status.
Chris@19 22687 # config.status does its own redirection, appending to config.log.
Chris@19 22688 # Unfortunately, on DOS this fails, as config.log is still kept open
Chris@19 22689 # by configure, so config.status won't be able to write to it; its
Chris@19 22690 # output is simply discarded. So we exec the FD to /dev/null,
Chris@19 22691 # effectively closing config.log, so it can be properly (re)opened and
Chris@19 22692 # appended to by config.status. When coming back to configure, we
Chris@19 22693 # need to make the FD available again.
Chris@19 22694 if test "$no_create" != yes; then
Chris@19 22695 ac_cs_success=:
Chris@19 22696 ac_config_status_args=
Chris@19 22697 test "$silent" = yes &&
Chris@19 22698 ac_config_status_args="$ac_config_status_args --quiet"
Chris@19 22699 exec 5>/dev/null
Chris@19 22700 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Chris@19 22701 exec 5>>config.log
Chris@19 22702 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
Chris@19 22703 # would make configure fail if this is the last instruction.
Chris@19 22704 $ac_cs_success || as_fn_exit 1
Chris@19 22705 fi
Chris@19 22706 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Chris@19 22707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Chris@19 22708 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Chris@19 22709 fi
Chris@19 22710