annotate src/fftw-3.3.3/configure @ 83:ae30d91d2ffe

Replace these with versions built using an older toolset (so as to avoid ABI compatibilities when linking on Ubuntu 14.04 for packaging purposes)
author Chris Cannam
date Fri, 07 Feb 2020 11:51:13 +0000
parents 37bf6b4a2645
children
rev   line source
Chris@10 1 #! /bin/sh
Chris@10 2 # Guess values for system-dependent variables and create Makefiles.
Chris@10 3 # Generated by GNU Autoconf 2.69 for fftw 3.3.3.
Chris@10 4 #
Chris@10 5 # Report bugs to <fftw@fftw.org>.
Chris@10 6 #
Chris@10 7 #
Chris@10 8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Chris@10 9 #
Chris@10 10 #
Chris@10 11 # This configure script is free software; the Free Software Foundation
Chris@10 12 # gives unlimited permission to copy, distribute and modify it.
Chris@10 13 ## -------------------- ##
Chris@10 14 ## M4sh Initialization. ##
Chris@10 15 ## -------------------- ##
Chris@10 16
Chris@10 17 # Be more Bourne compatible
Chris@10 18 DUALCASE=1; export DUALCASE # for MKS sh
Chris@10 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Chris@10 20 emulate sh
Chris@10 21 NULLCMD=:
Chris@10 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Chris@10 23 # is contrary to our usage. Disable this feature.
Chris@10 24 alias -g '${1+"$@"}'='"$@"'
Chris@10 25 setopt NO_GLOB_SUBST
Chris@10 26 else
Chris@10 27 case `(set -o) 2>/dev/null` in #(
Chris@10 28 *posix*) :
Chris@10 29 set -o posix ;; #(
Chris@10 30 *) :
Chris@10 31 ;;
Chris@10 32 esac
Chris@10 33 fi
Chris@10 34
Chris@10 35
Chris@10 36 as_nl='
Chris@10 37 '
Chris@10 38 export as_nl
Chris@10 39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
Chris@10 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@10 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@10 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@10 43 # Prefer a ksh shell builtin over an external printf program on Solaris,
Chris@10 44 # but without wasting forks for bash or zsh.
Chris@10 45 if test -z "$BASH_VERSION$ZSH_VERSION" \
Chris@10 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@10 47 as_echo='print -r --'
Chris@10 48 as_echo_n='print -rn --'
Chris@10 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@10 50 as_echo='printf %s\n'
Chris@10 51 as_echo_n='printf %s'
Chris@10 52 else
Chris@10 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
Chris@10 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
Chris@10 55 as_echo_n='/usr/ucb/echo -n'
Chris@10 56 else
Chris@10 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
Chris@10 58 as_echo_n_body='eval
Chris@10 59 arg=$1;
Chris@10 60 case $arg in #(
Chris@10 61 *"$as_nl"*)
Chris@10 62 expr "X$arg" : "X\\(.*\\)$as_nl";
Chris@10 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
Chris@10 64 esac;
Chris@10 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
Chris@10 66 '
Chris@10 67 export as_echo_n_body
Chris@10 68 as_echo_n='sh -c $as_echo_n_body as_echo'
Chris@10 69 fi
Chris@10 70 export as_echo_body
Chris@10 71 as_echo='sh -c $as_echo_body as_echo'
Chris@10 72 fi
Chris@10 73
Chris@10 74 # The user is always right.
Chris@10 75 if test "${PATH_SEPARATOR+set}" != set; then
Chris@10 76 PATH_SEPARATOR=:
Chris@10 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
Chris@10 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
Chris@10 79 PATH_SEPARATOR=';'
Chris@10 80 }
Chris@10 81 fi
Chris@10 82
Chris@10 83
Chris@10 84 # IFS
Chris@10 85 # We need space, tab and new line, in precisely that order. Quoting is
Chris@10 86 # there to prevent editors from complaining about space-tab.
Chris@10 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
Chris@10 88 # splitting by setting IFS to empty value.)
Chris@10 89 IFS=" "" $as_nl"
Chris@10 90
Chris@10 91 # Find who we are. Look in the path if we contain no directory separator.
Chris@10 92 as_myself=
Chris@10 93 case $0 in #((
Chris@10 94 *[\\/]* ) as_myself=$0 ;;
Chris@10 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 96 for as_dir in $PATH
Chris@10 97 do
Chris@10 98 IFS=$as_save_IFS
Chris@10 99 test -z "$as_dir" && as_dir=.
Chris@10 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
Chris@10 101 done
Chris@10 102 IFS=$as_save_IFS
Chris@10 103
Chris@10 104 ;;
Chris@10 105 esac
Chris@10 106 # We did not find ourselves, most probably we were run as `sh COMMAND'
Chris@10 107 # in which case we are not to be found in the path.
Chris@10 108 if test "x$as_myself" = x; then
Chris@10 109 as_myself=$0
Chris@10 110 fi
Chris@10 111 if test ! -f "$as_myself"; then
Chris@10 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Chris@10 113 exit 1
Chris@10 114 fi
Chris@10 115
Chris@10 116 # Unset variables that we do not need and which cause bugs (e.g. in
Chris@10 117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
Chris@10 118 # suppresses any "Segmentation fault" message there. '((' could
Chris@10 119 # trigger a bug in pdksh 5.2.14.
Chris@10 120 for as_var in BASH_ENV ENV MAIL MAILPATH
Chris@10 121 do eval test x\${$as_var+set} = xset \
Chris@10 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Chris@10 123 done
Chris@10 124 PS1='$ '
Chris@10 125 PS2='> '
Chris@10 126 PS4='+ '
Chris@10 127
Chris@10 128 # NLS nuisances.
Chris@10 129 LC_ALL=C
Chris@10 130 export LC_ALL
Chris@10 131 LANGUAGE=C
Chris@10 132 export LANGUAGE
Chris@10 133
Chris@10 134 # CDPATH.
Chris@10 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@10 136
Chris@10 137 # Use a proper internal environment variable to ensure we don't fall
Chris@10 138 # into an infinite loop, continuously re-executing ourselves.
Chris@10 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
Chris@10 140 _as_can_reexec=no; export _as_can_reexec;
Chris@10 141 # We cannot yet assume a decent shell, so we have to provide a
Chris@10 142 # neutralization value for shells without unset; and this also
Chris@10 143 # works around shells that cannot unset nonexistent variables.
Chris@10 144 # Preserve -v and -x to the replacement shell.
Chris@10 145 BASH_ENV=/dev/null
Chris@10 146 ENV=/dev/null
Chris@10 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
Chris@10 148 case $- in # ((((
Chris@10 149 *v*x* | *x*v* ) as_opts=-vx ;;
Chris@10 150 *v* ) as_opts=-v ;;
Chris@10 151 *x* ) as_opts=-x ;;
Chris@10 152 * ) as_opts= ;;
Chris@10 153 esac
Chris@10 154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
Chris@10 155 # Admittedly, this is quite paranoid, since all the known shells bail
Chris@10 156 # out after a failed `exec'.
Chris@10 157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
Chris@10 158 as_fn_exit 255
Chris@10 159 fi
Chris@10 160 # We don't want this to propagate to other subprocesses.
Chris@10 161 { _as_can_reexec=; unset _as_can_reexec;}
Chris@10 162 if test "x$CONFIG_SHELL" = x; then
Chris@10 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
Chris@10 164 emulate sh
Chris@10 165 NULLCMD=:
Chris@10 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
Chris@10 167 # is contrary to our usage. Disable this feature.
Chris@10 168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
Chris@10 169 setopt NO_GLOB_SUBST
Chris@10 170 else
Chris@10 171 case \`(set -o) 2>/dev/null\` in #(
Chris@10 172 *posix*) :
Chris@10 173 set -o posix ;; #(
Chris@10 174 *) :
Chris@10 175 ;;
Chris@10 176 esac
Chris@10 177 fi
Chris@10 178 "
Chris@10 179 as_required="as_fn_return () { (exit \$1); }
Chris@10 180 as_fn_success () { as_fn_return 0; }
Chris@10 181 as_fn_failure () { as_fn_return 1; }
Chris@10 182 as_fn_ret_success () { return 0; }
Chris@10 183 as_fn_ret_failure () { return 1; }
Chris@10 184
Chris@10 185 exitcode=0
Chris@10 186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
Chris@10 187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
Chris@10 188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
Chris@10 189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
Chris@10 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
Chris@10 191
Chris@10 192 else
Chris@10 193 exitcode=1; echo positional parameters were not saved.
Chris@10 194 fi
Chris@10 195 test x\$exitcode = x0 || exit 1
Chris@10 196 test -x / || exit 1"
Chris@10 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
Chris@10 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
Chris@10 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
Chris@10 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
Chris@10 201
Chris@10 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
Chris@10 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@10 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
Chris@10 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
Chris@10 206 PATH=/empty FPATH=/empty; export PATH FPATH
Chris@10 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
Chris@10 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
Chris@10 209 test \$(( 1 + 1 )) = 2 || exit 1"
Chris@10 210 if (eval "$as_required") 2>/dev/null; then :
Chris@10 211 as_have_required=yes
Chris@10 212 else
Chris@10 213 as_have_required=no
Chris@10 214 fi
Chris@10 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
Chris@10 216
Chris@10 217 else
Chris@10 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 219 as_found=false
Chris@10 220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Chris@10 221 do
Chris@10 222 IFS=$as_save_IFS
Chris@10 223 test -z "$as_dir" && as_dir=.
Chris@10 224 as_found=:
Chris@10 225 case $as_dir in #(
Chris@10 226 /*)
Chris@10 227 for as_base in sh bash ksh sh5; do
Chris@10 228 # Try only shells that exist, to save several forks.
Chris@10 229 as_shell=$as_dir/$as_base
Chris@10 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
Chris@10 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
Chris@10 232 CONFIG_SHELL=$as_shell as_have_required=yes
Chris@10 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
Chris@10 234 break 2
Chris@10 235 fi
Chris@10 236 fi
Chris@10 237 done;;
Chris@10 238 esac
Chris@10 239 as_found=false
Chris@10 240 done
Chris@10 241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
Chris@10 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
Chris@10 243 CONFIG_SHELL=$SHELL as_have_required=yes
Chris@10 244 fi; }
Chris@10 245 IFS=$as_save_IFS
Chris@10 246
Chris@10 247
Chris@10 248 if test "x$CONFIG_SHELL" != x; then :
Chris@10 249 export CONFIG_SHELL
Chris@10 250 # We cannot yet assume a decent shell, so we have to provide a
Chris@10 251 # neutralization value for shells without unset; and this also
Chris@10 252 # works around shells that cannot unset nonexistent variables.
Chris@10 253 # Preserve -v and -x to the replacement shell.
Chris@10 254 BASH_ENV=/dev/null
Chris@10 255 ENV=/dev/null
Chris@10 256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
Chris@10 257 case $- in # ((((
Chris@10 258 *v*x* | *x*v* ) as_opts=-vx ;;
Chris@10 259 *v* ) as_opts=-v ;;
Chris@10 260 *x* ) as_opts=-x ;;
Chris@10 261 * ) as_opts= ;;
Chris@10 262 esac
Chris@10 263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
Chris@10 264 # Admittedly, this is quite paranoid, since all the known shells bail
Chris@10 265 # out after a failed `exec'.
Chris@10 266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
Chris@10 267 exit 255
Chris@10 268 fi
Chris@10 269
Chris@10 270 if test x$as_have_required = xno; then :
Chris@10 271 $as_echo "$0: This script requires a shell more modern than all"
Chris@10 272 $as_echo "$0: the shells that I found on your system."
Chris@10 273 if test x${ZSH_VERSION+set} = xset ; then
Chris@10 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
Chris@10 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
Chris@10 276 else
Chris@10 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and fftw@fftw.org
Chris@10 278 $0: about your system, including any error possibly output
Chris@10 279 $0: before this message. Then install a modern shell, or
Chris@10 280 $0: manually run the script under such a shell if you do
Chris@10 281 $0: have one."
Chris@10 282 fi
Chris@10 283 exit 1
Chris@10 284 fi
Chris@10 285 fi
Chris@10 286 fi
Chris@10 287 SHELL=${CONFIG_SHELL-/bin/sh}
Chris@10 288 export SHELL
Chris@10 289 # Unset more variables known to interfere with behavior of common tools.
Chris@10 290 CLICOLOR_FORCE= GREP_OPTIONS=
Chris@10 291 unset CLICOLOR_FORCE GREP_OPTIONS
Chris@10 292
Chris@10 293 ## --------------------- ##
Chris@10 294 ## M4sh Shell Functions. ##
Chris@10 295 ## --------------------- ##
Chris@10 296 # as_fn_unset VAR
Chris@10 297 # ---------------
Chris@10 298 # Portably unset VAR.
Chris@10 299 as_fn_unset ()
Chris@10 300 {
Chris@10 301 { eval $1=; unset $1;}
Chris@10 302 }
Chris@10 303 as_unset=as_fn_unset
Chris@10 304
Chris@10 305 # as_fn_set_status STATUS
Chris@10 306 # -----------------------
Chris@10 307 # Set $? to STATUS, without forking.
Chris@10 308 as_fn_set_status ()
Chris@10 309 {
Chris@10 310 return $1
Chris@10 311 } # as_fn_set_status
Chris@10 312
Chris@10 313 # as_fn_exit STATUS
Chris@10 314 # -----------------
Chris@10 315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
Chris@10 316 as_fn_exit ()
Chris@10 317 {
Chris@10 318 set +e
Chris@10 319 as_fn_set_status $1
Chris@10 320 exit $1
Chris@10 321 } # as_fn_exit
Chris@10 322
Chris@10 323 # as_fn_mkdir_p
Chris@10 324 # -------------
Chris@10 325 # Create "$as_dir" as a directory, including parents if necessary.
Chris@10 326 as_fn_mkdir_p ()
Chris@10 327 {
Chris@10 328
Chris@10 329 case $as_dir in #(
Chris@10 330 -*) as_dir=./$as_dir;;
Chris@10 331 esac
Chris@10 332 test -d "$as_dir" || eval $as_mkdir_p || {
Chris@10 333 as_dirs=
Chris@10 334 while :; do
Chris@10 335 case $as_dir in #(
Chris@10 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Chris@10 337 *) as_qdir=$as_dir;;
Chris@10 338 esac
Chris@10 339 as_dirs="'$as_qdir' $as_dirs"
Chris@10 340 as_dir=`$as_dirname -- "$as_dir" ||
Chris@10 341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@10 342 X"$as_dir" : 'X\(//\)[^/]' \| \
Chris@10 343 X"$as_dir" : 'X\(//\)$' \| \
Chris@10 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Chris@10 345 $as_echo X"$as_dir" |
Chris@10 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@10 347 s//\1/
Chris@10 348 q
Chris@10 349 }
Chris@10 350 /^X\(\/\/\)[^/].*/{
Chris@10 351 s//\1/
Chris@10 352 q
Chris@10 353 }
Chris@10 354 /^X\(\/\/\)$/{
Chris@10 355 s//\1/
Chris@10 356 q
Chris@10 357 }
Chris@10 358 /^X\(\/\).*/{
Chris@10 359 s//\1/
Chris@10 360 q
Chris@10 361 }
Chris@10 362 s/.*/./; q'`
Chris@10 363 test -d "$as_dir" && break
Chris@10 364 done
Chris@10 365 test -z "$as_dirs" || eval "mkdir $as_dirs"
Chris@10 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Chris@10 367
Chris@10 368
Chris@10 369 } # as_fn_mkdir_p
Chris@10 370
Chris@10 371 # as_fn_executable_p FILE
Chris@10 372 # -----------------------
Chris@10 373 # Test if FILE is an executable regular file.
Chris@10 374 as_fn_executable_p ()
Chris@10 375 {
Chris@10 376 test -f "$1" && test -x "$1"
Chris@10 377 } # as_fn_executable_p
Chris@10 378 # as_fn_append VAR VALUE
Chris@10 379 # ----------------------
Chris@10 380 # Append the text in VALUE to the end of the definition contained in VAR. Take
Chris@10 381 # advantage of any shell optimizations that allow amortized linear growth over
Chris@10 382 # repeated appends, instead of the typical quadratic growth present in naive
Chris@10 383 # implementations.
Chris@10 384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
Chris@10 385 eval 'as_fn_append ()
Chris@10 386 {
Chris@10 387 eval $1+=\$2
Chris@10 388 }'
Chris@10 389 else
Chris@10 390 as_fn_append ()
Chris@10 391 {
Chris@10 392 eval $1=\$$1\$2
Chris@10 393 }
Chris@10 394 fi # as_fn_append
Chris@10 395
Chris@10 396 # as_fn_arith ARG...
Chris@10 397 # ------------------
Chris@10 398 # Perform arithmetic evaluation on the ARGs, and store the result in the
Chris@10 399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
Chris@10 400 # must be portable across $(()) and expr.
Chris@10 401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
Chris@10 402 eval 'as_fn_arith ()
Chris@10 403 {
Chris@10 404 as_val=$(( $* ))
Chris@10 405 }'
Chris@10 406 else
Chris@10 407 as_fn_arith ()
Chris@10 408 {
Chris@10 409 as_val=`expr "$@" || test $? -eq 1`
Chris@10 410 }
Chris@10 411 fi # as_fn_arith
Chris@10 412
Chris@10 413
Chris@10 414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
Chris@10 415 # ----------------------------------------
Chris@10 416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
Chris@10 417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Chris@10 418 # script with STATUS, using 1 if that was 0.
Chris@10 419 as_fn_error ()
Chris@10 420 {
Chris@10 421 as_status=$1; test $as_status -eq 0 && as_status=1
Chris@10 422 if test "$4"; then
Chris@10 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@10 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Chris@10 425 fi
Chris@10 426 $as_echo "$as_me: error: $2" >&2
Chris@10 427 as_fn_exit $as_status
Chris@10 428 } # as_fn_error
Chris@10 429
Chris@10 430 if expr a : '\(a\)' >/dev/null 2>&1 &&
Chris@10 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Chris@10 432 as_expr=expr
Chris@10 433 else
Chris@10 434 as_expr=false
Chris@10 435 fi
Chris@10 436
Chris@10 437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Chris@10 438 as_basename=basename
Chris@10 439 else
Chris@10 440 as_basename=false
Chris@10 441 fi
Chris@10 442
Chris@10 443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
Chris@10 444 as_dirname=dirname
Chris@10 445 else
Chris@10 446 as_dirname=false
Chris@10 447 fi
Chris@10 448
Chris@10 449 as_me=`$as_basename -- "$0" ||
Chris@10 450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
Chris@10 451 X"$0" : 'X\(//\)$' \| \
Chris@10 452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Chris@10 453 $as_echo X/"$0" |
Chris@10 454 sed '/^.*\/\([^/][^/]*\)\/*$/{
Chris@10 455 s//\1/
Chris@10 456 q
Chris@10 457 }
Chris@10 458 /^X\/\(\/\/\)$/{
Chris@10 459 s//\1/
Chris@10 460 q
Chris@10 461 }
Chris@10 462 /^X\/\(\/\).*/{
Chris@10 463 s//\1/
Chris@10 464 q
Chris@10 465 }
Chris@10 466 s/.*/./; q'`
Chris@10 467
Chris@10 468 # Avoid depending upon Character Ranges.
Chris@10 469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
Chris@10 470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
Chris@10 471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
Chris@10 472 as_cr_digits='0123456789'
Chris@10 473 as_cr_alnum=$as_cr_Letters$as_cr_digits
Chris@10 474
Chris@10 475
Chris@10 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
Chris@10 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
Chris@10 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
Chris@10 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
Chris@10 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Chris@10 481 sed -n '
Chris@10 482 p
Chris@10 483 /[$]LINENO/=
Chris@10 484 ' <$as_myself |
Chris@10 485 sed '
Chris@10 486 s/[$]LINENO.*/&-/
Chris@10 487 t lineno
Chris@10 488 b
Chris@10 489 :lineno
Chris@10 490 N
Chris@10 491 :loop
Chris@10 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Chris@10 493 t loop
Chris@10 494 s/-\n.*//
Chris@10 495 ' >$as_me.lineno &&
Chris@10 496 chmod +x "$as_me.lineno" ||
Chris@10 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Chris@10 498
Chris@10 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
Chris@10 500 # already done that, so ensure we don't try to do so again and fall
Chris@10 501 # in an infinite loop. This has already happened in practice.
Chris@10 502 _as_can_reexec=no; export _as_can_reexec
Chris@10 503 # Don't try to exec as it changes $[0], causing all sort of problems
Chris@10 504 # (the dirname of $[0] is not the place where we might find the
Chris@10 505 # original and so on. Autoconf is especially sensitive to this).
Chris@10 506 . "./$as_me.lineno"
Chris@10 507 # Exit status is that of the last command.
Chris@10 508 exit
Chris@10 509 }
Chris@10 510
Chris@10 511 ECHO_C= ECHO_N= ECHO_T=
Chris@10 512 case `echo -n x` in #(((((
Chris@10 513 -n*)
Chris@10 514 case `echo 'xy\c'` in
Chris@10 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Chris@10 516 xy) ECHO_C='\c';;
Chris@10 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
Chris@10 518 ECHO_T=' ';;
Chris@10 519 esac;;
Chris@10 520 *)
Chris@10 521 ECHO_N='-n';;
Chris@10 522 esac
Chris@10 523
Chris@10 524 rm -f conf$$ conf$$.exe conf$$.file
Chris@10 525 if test -d conf$$.dir; then
Chris@10 526 rm -f conf$$.dir/conf$$.file
Chris@10 527 else
Chris@10 528 rm -f conf$$.dir
Chris@10 529 mkdir conf$$.dir 2>/dev/null
Chris@10 530 fi
Chris@10 531 if (echo >conf$$.file) 2>/dev/null; then
Chris@10 532 if ln -s conf$$.file conf$$ 2>/dev/null; then
Chris@10 533 as_ln_s='ln -s'
Chris@10 534 # ... but there are two gotchas:
Chris@10 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
Chris@10 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Chris@10 537 # In both cases, we have to default to `cp -pR'.
Chris@10 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Chris@10 539 as_ln_s='cp -pR'
Chris@10 540 elif ln conf$$.file conf$$ 2>/dev/null; then
Chris@10 541 as_ln_s=ln
Chris@10 542 else
Chris@10 543 as_ln_s='cp -pR'
Chris@10 544 fi
Chris@10 545 else
Chris@10 546 as_ln_s='cp -pR'
Chris@10 547 fi
Chris@10 548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
Chris@10 549 rmdir conf$$.dir 2>/dev/null
Chris@10 550
Chris@10 551 if mkdir -p . 2>/dev/null; then
Chris@10 552 as_mkdir_p='mkdir -p "$as_dir"'
Chris@10 553 else
Chris@10 554 test -d ./-p && rmdir ./-p
Chris@10 555 as_mkdir_p=false
Chris@10 556 fi
Chris@10 557
Chris@10 558 as_test_x='test -x'
Chris@10 559 as_executable_p=as_fn_executable_p
Chris@10 560
Chris@10 561 # Sed expression to map a string onto a valid CPP name.
Chris@10 562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Chris@10 563
Chris@10 564 # Sed expression to map a string onto a valid variable name.
Chris@10 565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Chris@10 566
Chris@10 567 SHELL=${CONFIG_SHELL-/bin/sh}
Chris@10 568
Chris@10 569
Chris@10 570 test -n "$DJDIR" || exec 7<&0 </dev/null
Chris@10 571 exec 6>&1
Chris@10 572
Chris@10 573 # Name of the host.
Chris@10 574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Chris@10 575 # so uname gets run too.
Chris@10 576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@10 577
Chris@10 578 #
Chris@10 579 # Initializations.
Chris@10 580 #
Chris@10 581 ac_default_prefix=/usr/local
Chris@10 582 ac_clean_files=
Chris@10 583 ac_config_libobj_dir=.
Chris@10 584 LIBOBJS=
Chris@10 585 cross_compiling=no
Chris@10 586 subdirs=
Chris@10 587 MFLAGS=
Chris@10 588 MAKEFLAGS=
Chris@10 589
Chris@10 590 # Identity of this package.
Chris@10 591 PACKAGE_NAME='fftw'
Chris@10 592 PACKAGE_TARNAME='fftw'
Chris@10 593 PACKAGE_VERSION='3.3.3'
Chris@10 594 PACKAGE_STRING='fftw 3.3.3'
Chris@10 595 PACKAGE_BUGREPORT='fftw@fftw.org'
Chris@10 596 PACKAGE_URL=''
Chris@10 597
Chris@10 598 ac_unique_file="kernel/ifftw.h"
Chris@10 599 # Factoring default headers for most tests.
Chris@10 600 ac_includes_default="\
Chris@10 601 #include <stdio.h>
Chris@10 602 #ifdef HAVE_SYS_TYPES_H
Chris@10 603 # include <sys/types.h>
Chris@10 604 #endif
Chris@10 605 #ifdef HAVE_SYS_STAT_H
Chris@10 606 # include <sys/stat.h>
Chris@10 607 #endif
Chris@10 608 #ifdef STDC_HEADERS
Chris@10 609 # include <stdlib.h>
Chris@10 610 # include <stddef.h>
Chris@10 611 #else
Chris@10 612 # ifdef HAVE_STDLIB_H
Chris@10 613 # include <stdlib.h>
Chris@10 614 # endif
Chris@10 615 #endif
Chris@10 616 #ifdef HAVE_STRING_H
Chris@10 617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Chris@10 618 # include <memory.h>
Chris@10 619 # endif
Chris@10 620 # include <string.h>
Chris@10 621 #endif
Chris@10 622 #ifdef HAVE_STRINGS_H
Chris@10 623 # include <strings.h>
Chris@10 624 #endif
Chris@10 625 #ifdef HAVE_INTTYPES_H
Chris@10 626 # include <inttypes.h>
Chris@10 627 #endif
Chris@10 628 #ifdef HAVE_STDINT_H
Chris@10 629 # include <stdint.h>
Chris@10 630 #endif
Chris@10 631 #ifdef HAVE_UNISTD_H
Chris@10 632 # include <unistd.h>
Chris@10 633 #endif"
Chris@10 634
Chris@10 635 ac_subst_vars='am__EXEEXT_FALSE
Chris@10 636 am__EXEEXT_TRUE
Chris@10 637 LTLIBOBJS
Chris@10 638 COMBINED_THREADS_FALSE
Chris@10 639 COMBINED_THREADS_TRUE
Chris@10 640 SMP_FALSE
Chris@10 641 SMP_TRUE
Chris@10 642 OPENMP_FALSE
Chris@10 643 OPENMP_TRUE
Chris@10 644 THREADS_FALSE
Chris@10 645 THREADS_TRUE
Chris@10 646 THREADLIBS
Chris@10 647 PTHREAD_CFLAGS
Chris@10 648 PTHREAD_LIBS
Chris@10 649 PTHREAD_CC
Chris@10 650 acx_pthread_config
Chris@10 651 OPENMP_CFLAGS
Chris@10 652 FLIBS
Chris@10 653 ac_ct_F77
Chris@10 654 FFLAGS
Chris@10 655 F77
Chris@10 656 LIBQUADMATH
Chris@10 657 LIBOBJS
Chris@10 658 POW_LIB
Chris@10 659 ALLOCA
Chris@10 660 C_FFTW_R2R_KIND
Chris@10 661 STACK_ALIGN_CFLAGS
Chris@10 662 NEON_CFLAGS
Chris@10 663 ALTIVEC_CFLAGS
Chris@10 664 AVX_CFLAGS
Chris@10 665 SSE2_CFLAGS
Chris@10 666 MPI_FALSE
Chris@10 667 MPI_TRUE
Chris@10 668 C_MPI_FINT
Chris@10 669 MPIRUN
Chris@10 670 MPILIBS
Chris@10 671 MPICC
Chris@10 672 OCAMLBUILD
Chris@10 673 CPP
Chris@10 674 OTOOL64
Chris@10 675 OTOOL
Chris@10 676 LIPO
Chris@10 677 NMEDIT
Chris@10 678 DSYMUTIL
Chris@10 679 MANIFEST_TOOL
Chris@10 680 RANLIB
Chris@10 681 ac_ct_AR
Chris@10 682 AR
Chris@10 683 NM
Chris@10 684 ac_ct_DUMPBIN
Chris@10 685 DUMPBIN
Chris@10 686 LD
Chris@10 687 FGREP
Chris@10 688 EGREP
Chris@10 689 GREP
Chris@10 690 SED
Chris@10 691 LIBTOOL
Chris@10 692 OBJDUMP
Chris@10 693 DLLTOOL
Chris@10 694 AS
Chris@10 695 LN_S
Chris@10 696 am__fastdepCC_FALSE
Chris@10 697 am__fastdepCC_TRUE
Chris@10 698 CCDEPMODE
Chris@10 699 am__nodep
Chris@10 700 AMDEPBACKSLASH
Chris@10 701 AMDEP_FALSE
Chris@10 702 AMDEP_TRUE
Chris@10 703 am__quote
Chris@10 704 am__include
Chris@10 705 DEPDIR
Chris@10 706 OBJEXT
Chris@10 707 EXEEXT
Chris@10 708 ac_ct_CC
Chris@10 709 CPPFLAGS
Chris@10 710 LDFLAGS
Chris@10 711 CFLAGS
Chris@10 712 CC
Chris@10 713 PREC_SUFFIX
Chris@10 714 HAVE_NEON_FALSE
Chris@10 715 HAVE_NEON_TRUE
Chris@10 716 HAVE_ALTIVEC_FALSE
Chris@10 717 HAVE_ALTIVEC_TRUE
Chris@10 718 HAVE_AVX_FALSE
Chris@10 719 HAVE_AVX_TRUE
Chris@10 720 HAVE_SSE2_FALSE
Chris@10 721 HAVE_SSE2_TRUE
Chris@10 722 CHECK_PL_OPTS
Chris@10 723 PRECISION
Chris@10 724 QUAD_FALSE
Chris@10 725 QUAD_TRUE
Chris@10 726 LDOUBLE_FALSE
Chris@10 727 LDOUBLE_TRUE
Chris@10 728 SINGLE_FALSE
Chris@10 729 SINGLE_TRUE
Chris@10 730 host_os
Chris@10 731 host_vendor
Chris@10 732 host_cpu
Chris@10 733 host
Chris@10 734 build_os
Chris@10 735 build_vendor
Chris@10 736 build_cpu
Chris@10 737 build
Chris@10 738 SHARED_VERSION_INFO
Chris@10 739 MAINT
Chris@10 740 MAINTAINER_MODE_FALSE
Chris@10 741 MAINTAINER_MODE_TRUE
Chris@10 742 am__untar
Chris@10 743 am__tar
Chris@10 744 AMTAR
Chris@10 745 am__leading_dot
Chris@10 746 SET_MAKE
Chris@10 747 AWK
Chris@10 748 mkdir_p
Chris@10 749 MKDIR_P
Chris@10 750 INSTALL_STRIP_PROGRAM
Chris@10 751 STRIP
Chris@10 752 install_sh
Chris@10 753 MAKEINFO
Chris@10 754 AUTOHEADER
Chris@10 755 AUTOMAKE
Chris@10 756 AUTOCONF
Chris@10 757 ACLOCAL
Chris@10 758 VERSION
Chris@10 759 PACKAGE
Chris@10 760 CYGPATH_W
Chris@10 761 am__isrc
Chris@10 762 INSTALL_DATA
Chris@10 763 INSTALL_SCRIPT
Chris@10 764 INSTALL_PROGRAM
Chris@10 765 target_alias
Chris@10 766 host_alias
Chris@10 767 build_alias
Chris@10 768 LIBS
Chris@10 769 ECHO_T
Chris@10 770 ECHO_N
Chris@10 771 ECHO_C
Chris@10 772 DEFS
Chris@10 773 mandir
Chris@10 774 localedir
Chris@10 775 libdir
Chris@10 776 psdir
Chris@10 777 pdfdir
Chris@10 778 dvidir
Chris@10 779 htmldir
Chris@10 780 infodir
Chris@10 781 docdir
Chris@10 782 oldincludedir
Chris@10 783 includedir
Chris@10 784 localstatedir
Chris@10 785 sharedstatedir
Chris@10 786 sysconfdir
Chris@10 787 datadir
Chris@10 788 datarootdir
Chris@10 789 libexecdir
Chris@10 790 sbindir
Chris@10 791 bindir
Chris@10 792 program_transform_name
Chris@10 793 prefix
Chris@10 794 exec_prefix
Chris@10 795 PACKAGE_URL
Chris@10 796 PACKAGE_BUGREPORT
Chris@10 797 PACKAGE_STRING
Chris@10 798 PACKAGE_VERSION
Chris@10 799 PACKAGE_TARNAME
Chris@10 800 PACKAGE_NAME
Chris@10 801 PATH_SEPARATOR
Chris@10 802 SHELL'
Chris@10 803 ac_subst_files=''
Chris@10 804 ac_user_opts='
Chris@10 805 enable_option_checking
Chris@10 806 enable_maintainer_mode
Chris@10 807 enable_shared
Chris@10 808 enable_fma
Chris@10 809 enable_debug
Chris@10 810 enable_debug_malloc
Chris@10 811 enable_debug_alignment
Chris@10 812 enable_random_estimator
Chris@10 813 enable_alloca
Chris@10 814 enable_single
Chris@10 815 enable_float
Chris@10 816 enable_long_double
Chris@10 817 enable_quad_precision
Chris@10 818 enable_sse
Chris@10 819 enable_sse2
Chris@10 820 enable_avx
Chris@10 821 enable_altivec
Chris@10 822 enable_neon
Chris@10 823 with_slow_timer
Chris@10 824 enable_mips_zbus_timer
Chris@10 825 with_our_malloc
Chris@10 826 with_our_malloc16
Chris@10 827 with_windows_f77_mangling
Chris@10 828 with_incoming_stack_boundary
Chris@10 829 enable_dependency_tracking
Chris@10 830 enable_static
Chris@10 831 with_pic
Chris@10 832 enable_fast_install
Chris@10 833 with_gnu_ld
Chris@10 834 with_sysroot
Chris@10 835 enable_libtool_lock
Chris@10 836 enable_mpi
Chris@10 837 enable_fortran
Chris@10 838 with_g77_wrappers
Chris@10 839 enable_openmp
Chris@10 840 enable_threads
Chris@10 841 with_combined_threads
Chris@10 842 '
Chris@10 843 ac_precious_vars='build_alias
Chris@10 844 host_alias
Chris@10 845 target_alias
Chris@10 846 CC
Chris@10 847 CFLAGS
Chris@10 848 LDFLAGS
Chris@10 849 LIBS
Chris@10 850 CPPFLAGS
Chris@10 851 CPP
Chris@10 852 MPICC
Chris@10 853 F77
Chris@10 854 FFLAGS'
Chris@10 855
Chris@10 856
Chris@10 857 # Initialize some variables set by options.
Chris@10 858 ac_init_help=
Chris@10 859 ac_init_version=false
Chris@10 860 ac_unrecognized_opts=
Chris@10 861 ac_unrecognized_sep=
Chris@10 862 # The variables have the same names as the options, with
Chris@10 863 # dashes changed to underlines.
Chris@10 864 cache_file=/dev/null
Chris@10 865 exec_prefix=NONE
Chris@10 866 no_create=
Chris@10 867 no_recursion=
Chris@10 868 prefix=NONE
Chris@10 869 program_prefix=NONE
Chris@10 870 program_suffix=NONE
Chris@10 871 program_transform_name=s,x,x,
Chris@10 872 silent=
Chris@10 873 site=
Chris@10 874 srcdir=
Chris@10 875 verbose=
Chris@10 876 x_includes=NONE
Chris@10 877 x_libraries=NONE
Chris@10 878
Chris@10 879 # Installation directory options.
Chris@10 880 # These are left unexpanded so users can "make install exec_prefix=/foo"
Chris@10 881 # and all the variables that are supposed to be based on exec_prefix
Chris@10 882 # by default will actually change.
Chris@10 883 # Use braces instead of parens because sh, perl, etc. also accept them.
Chris@10 884 # (The list follows the same order as the GNU Coding Standards.)
Chris@10 885 bindir='${exec_prefix}/bin'
Chris@10 886 sbindir='${exec_prefix}/sbin'
Chris@10 887 libexecdir='${exec_prefix}/libexec'
Chris@10 888 datarootdir='${prefix}/share'
Chris@10 889 datadir='${datarootdir}'
Chris@10 890 sysconfdir='${prefix}/etc'
Chris@10 891 sharedstatedir='${prefix}/com'
Chris@10 892 localstatedir='${prefix}/var'
Chris@10 893 includedir='${prefix}/include'
Chris@10 894 oldincludedir='/usr/include'
Chris@10 895 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
Chris@10 896 infodir='${datarootdir}/info'
Chris@10 897 htmldir='${docdir}'
Chris@10 898 dvidir='${docdir}'
Chris@10 899 pdfdir='${docdir}'
Chris@10 900 psdir='${docdir}'
Chris@10 901 libdir='${exec_prefix}/lib'
Chris@10 902 localedir='${datarootdir}/locale'
Chris@10 903 mandir='${datarootdir}/man'
Chris@10 904
Chris@10 905 ac_prev=
Chris@10 906 ac_dashdash=
Chris@10 907 for ac_option
Chris@10 908 do
Chris@10 909 # If the previous option needs an argument, assign it.
Chris@10 910 if test -n "$ac_prev"; then
Chris@10 911 eval $ac_prev=\$ac_option
Chris@10 912 ac_prev=
Chris@10 913 continue
Chris@10 914 fi
Chris@10 915
Chris@10 916 case $ac_option in
Chris@10 917 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
Chris@10 918 *=) ac_optarg= ;;
Chris@10 919 *) ac_optarg=yes ;;
Chris@10 920 esac
Chris@10 921
Chris@10 922 # Accept the important Cygnus configure options, so we can diagnose typos.
Chris@10 923
Chris@10 924 case $ac_dashdash$ac_option in
Chris@10 925 --)
Chris@10 926 ac_dashdash=yes ;;
Chris@10 927
Chris@10 928 -bindir | --bindir | --bindi | --bind | --bin | --bi)
Chris@10 929 ac_prev=bindir ;;
Chris@10 930 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Chris@10 931 bindir=$ac_optarg ;;
Chris@10 932
Chris@10 933 -build | --build | --buil | --bui | --bu)
Chris@10 934 ac_prev=build_alias ;;
Chris@10 935 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Chris@10 936 build_alias=$ac_optarg ;;
Chris@10 937
Chris@10 938 -cache-file | --cache-file | --cache-fil | --cache-fi \
Chris@10 939 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
Chris@10 940 ac_prev=cache_file ;;
Chris@10 941 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
Chris@10 942 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Chris@10 943 cache_file=$ac_optarg ;;
Chris@10 944
Chris@10 945 --config-cache | -C)
Chris@10 946 cache_file=config.cache ;;
Chris@10 947
Chris@10 948 -datadir | --datadir | --datadi | --datad)
Chris@10 949 ac_prev=datadir ;;
Chris@10 950 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Chris@10 951 datadir=$ac_optarg ;;
Chris@10 952
Chris@10 953 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
Chris@10 954 | --dataroo | --dataro | --datar)
Chris@10 955 ac_prev=datarootdir ;;
Chris@10 956 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
Chris@10 957 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
Chris@10 958 datarootdir=$ac_optarg ;;
Chris@10 959
Chris@10 960 -disable-* | --disable-*)
Chris@10 961 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Chris@10 962 # Reject names that are not valid shell variable names.
Chris@10 963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@10 964 as_fn_error $? "invalid feature name: $ac_useropt"
Chris@10 965 ac_useropt_orig=$ac_useropt
Chris@10 966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@10 967 case $ac_user_opts in
Chris@10 968 *"
Chris@10 969 "enable_$ac_useropt"
Chris@10 970 "*) ;;
Chris@10 971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
Chris@10 972 ac_unrecognized_sep=', ';;
Chris@10 973 esac
Chris@10 974 eval enable_$ac_useropt=no ;;
Chris@10 975
Chris@10 976 -docdir | --docdir | --docdi | --doc | --do)
Chris@10 977 ac_prev=docdir ;;
Chris@10 978 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
Chris@10 979 docdir=$ac_optarg ;;
Chris@10 980
Chris@10 981 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
Chris@10 982 ac_prev=dvidir ;;
Chris@10 983 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
Chris@10 984 dvidir=$ac_optarg ;;
Chris@10 985
Chris@10 986 -enable-* | --enable-*)
Chris@10 987 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Chris@10 988 # Reject names that are not valid shell variable names.
Chris@10 989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@10 990 as_fn_error $? "invalid feature name: $ac_useropt"
Chris@10 991 ac_useropt_orig=$ac_useropt
Chris@10 992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@10 993 case $ac_user_opts in
Chris@10 994 *"
Chris@10 995 "enable_$ac_useropt"
Chris@10 996 "*) ;;
Chris@10 997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
Chris@10 998 ac_unrecognized_sep=', ';;
Chris@10 999 esac
Chris@10 1000 eval enable_$ac_useropt=\$ac_optarg ;;
Chris@10 1001
Chris@10 1002 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
Chris@10 1003 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
Chris@10 1004 | --exec | --exe | --ex)
Chris@10 1005 ac_prev=exec_prefix ;;
Chris@10 1006 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
Chris@10 1007 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
Chris@10 1008 | --exec=* | --exe=* | --ex=*)
Chris@10 1009 exec_prefix=$ac_optarg ;;
Chris@10 1010
Chris@10 1011 -gas | --gas | --ga | --g)
Chris@10 1012 # Obsolete; use --with-gas.
Chris@10 1013 with_gas=yes ;;
Chris@10 1014
Chris@10 1015 -help | --help | --hel | --he | -h)
Chris@10 1016 ac_init_help=long ;;
Chris@10 1017 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
Chris@10 1018 ac_init_help=recursive ;;
Chris@10 1019 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
Chris@10 1020 ac_init_help=short ;;
Chris@10 1021
Chris@10 1022 -host | --host | --hos | --ho)
Chris@10 1023 ac_prev=host_alias ;;
Chris@10 1024 -host=* | --host=* | --hos=* | --ho=*)
Chris@10 1025 host_alias=$ac_optarg ;;
Chris@10 1026
Chris@10 1027 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
Chris@10 1028 ac_prev=htmldir ;;
Chris@10 1029 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
Chris@10 1030 | --ht=*)
Chris@10 1031 htmldir=$ac_optarg ;;
Chris@10 1032
Chris@10 1033 -includedir | --includedir | --includedi | --included | --include \
Chris@10 1034 | --includ | --inclu | --incl | --inc)
Chris@10 1035 ac_prev=includedir ;;
Chris@10 1036 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
Chris@10 1037 | --includ=* | --inclu=* | --incl=* | --inc=*)
Chris@10 1038 includedir=$ac_optarg ;;
Chris@10 1039
Chris@10 1040 -infodir | --infodir | --infodi | --infod | --info | --inf)
Chris@10 1041 ac_prev=infodir ;;
Chris@10 1042 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Chris@10 1043 infodir=$ac_optarg ;;
Chris@10 1044
Chris@10 1045 -libdir | --libdir | --libdi | --libd)
Chris@10 1046 ac_prev=libdir ;;
Chris@10 1047 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Chris@10 1048 libdir=$ac_optarg ;;
Chris@10 1049
Chris@10 1050 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
Chris@10 1051 | --libexe | --libex | --libe)
Chris@10 1052 ac_prev=libexecdir ;;
Chris@10 1053 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
Chris@10 1054 | --libexe=* | --libex=* | --libe=*)
Chris@10 1055 libexecdir=$ac_optarg ;;
Chris@10 1056
Chris@10 1057 -localedir | --localedir | --localedi | --localed | --locale)
Chris@10 1058 ac_prev=localedir ;;
Chris@10 1059 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
Chris@10 1060 localedir=$ac_optarg ;;
Chris@10 1061
Chris@10 1062 -localstatedir | --localstatedir | --localstatedi | --localstated \
Chris@10 1063 | --localstate | --localstat | --localsta | --localst | --locals)
Chris@10 1064 ac_prev=localstatedir ;;
Chris@10 1065 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Chris@10 1066 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Chris@10 1067 localstatedir=$ac_optarg ;;
Chris@10 1068
Chris@10 1069 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
Chris@10 1070 ac_prev=mandir ;;
Chris@10 1071 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Chris@10 1072 mandir=$ac_optarg ;;
Chris@10 1073
Chris@10 1074 -nfp | --nfp | --nf)
Chris@10 1075 # Obsolete; use --without-fp.
Chris@10 1076 with_fp=no ;;
Chris@10 1077
Chris@10 1078 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Chris@10 1079 | --no-cr | --no-c | -n)
Chris@10 1080 no_create=yes ;;
Chris@10 1081
Chris@10 1082 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
Chris@10 1083 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
Chris@10 1084 no_recursion=yes ;;
Chris@10 1085
Chris@10 1086 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
Chris@10 1087 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
Chris@10 1088 | --oldin | --oldi | --old | --ol | --o)
Chris@10 1089 ac_prev=oldincludedir ;;
Chris@10 1090 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
Chris@10 1091 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
Chris@10 1092 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Chris@10 1093 oldincludedir=$ac_optarg ;;
Chris@10 1094
Chris@10 1095 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
Chris@10 1096 ac_prev=prefix ;;
Chris@10 1097 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Chris@10 1098 prefix=$ac_optarg ;;
Chris@10 1099
Chris@10 1100 -program-prefix | --program-prefix | --program-prefi | --program-pref \
Chris@10 1101 | --program-pre | --program-pr | --program-p)
Chris@10 1102 ac_prev=program_prefix ;;
Chris@10 1103 -program-prefix=* | --program-prefix=* | --program-prefi=* \
Chris@10 1104 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Chris@10 1105 program_prefix=$ac_optarg ;;
Chris@10 1106
Chris@10 1107 -program-suffix | --program-suffix | --program-suffi | --program-suff \
Chris@10 1108 | --program-suf | --program-su | --program-s)
Chris@10 1109 ac_prev=program_suffix ;;
Chris@10 1110 -program-suffix=* | --program-suffix=* | --program-suffi=* \
Chris@10 1111 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Chris@10 1112 program_suffix=$ac_optarg ;;
Chris@10 1113
Chris@10 1114 -program-transform-name | --program-transform-name \
Chris@10 1115 | --program-transform-nam | --program-transform-na \
Chris@10 1116 | --program-transform-n | --program-transform- \
Chris@10 1117 | --program-transform | --program-transfor \
Chris@10 1118 | --program-transfo | --program-transf \
Chris@10 1119 | --program-trans | --program-tran \
Chris@10 1120 | --progr-tra | --program-tr | --program-t)
Chris@10 1121 ac_prev=program_transform_name ;;
Chris@10 1122 -program-transform-name=* | --program-transform-name=* \
Chris@10 1123 | --program-transform-nam=* | --program-transform-na=* \
Chris@10 1124 | --program-transform-n=* | --program-transform-=* \
Chris@10 1125 | --program-transform=* | --program-transfor=* \
Chris@10 1126 | --program-transfo=* | --program-transf=* \
Chris@10 1127 | --program-trans=* | --program-tran=* \
Chris@10 1128 | --progr-tra=* | --program-tr=* | --program-t=*)
Chris@10 1129 program_transform_name=$ac_optarg ;;
Chris@10 1130
Chris@10 1131 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
Chris@10 1132 ac_prev=pdfdir ;;
Chris@10 1133 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
Chris@10 1134 pdfdir=$ac_optarg ;;
Chris@10 1135
Chris@10 1136 -psdir | --psdir | --psdi | --psd | --ps)
Chris@10 1137 ac_prev=psdir ;;
Chris@10 1138 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
Chris@10 1139 psdir=$ac_optarg ;;
Chris@10 1140
Chris@10 1141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@10 1142 | -silent | --silent | --silen | --sile | --sil)
Chris@10 1143 silent=yes ;;
Chris@10 1144
Chris@10 1145 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
Chris@10 1146 ac_prev=sbindir ;;
Chris@10 1147 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
Chris@10 1148 | --sbi=* | --sb=*)
Chris@10 1149 sbindir=$ac_optarg ;;
Chris@10 1150
Chris@10 1151 -sharedstatedir | --sharedstatedir | --sharedstatedi \
Chris@10 1152 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
Chris@10 1153 | --sharedst | --shareds | --shared | --share | --shar \
Chris@10 1154 | --sha | --sh)
Chris@10 1155 ac_prev=sharedstatedir ;;
Chris@10 1156 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
Chris@10 1157 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
Chris@10 1158 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
Chris@10 1159 | --sha=* | --sh=*)
Chris@10 1160 sharedstatedir=$ac_optarg ;;
Chris@10 1161
Chris@10 1162 -site | --site | --sit)
Chris@10 1163 ac_prev=site ;;
Chris@10 1164 -site=* | --site=* | --sit=*)
Chris@10 1165 site=$ac_optarg ;;
Chris@10 1166
Chris@10 1167 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
Chris@10 1168 ac_prev=srcdir ;;
Chris@10 1169 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Chris@10 1170 srcdir=$ac_optarg ;;
Chris@10 1171
Chris@10 1172 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
Chris@10 1173 | --syscon | --sysco | --sysc | --sys | --sy)
Chris@10 1174 ac_prev=sysconfdir ;;
Chris@10 1175 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
Chris@10 1176 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Chris@10 1177 sysconfdir=$ac_optarg ;;
Chris@10 1178
Chris@10 1179 -target | --target | --targe | --targ | --tar | --ta | --t)
Chris@10 1180 ac_prev=target_alias ;;
Chris@10 1181 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Chris@10 1182 target_alias=$ac_optarg ;;
Chris@10 1183
Chris@10 1184 -v | -verbose | --verbose | --verbos | --verbo | --verb)
Chris@10 1185 verbose=yes ;;
Chris@10 1186
Chris@10 1187 -version | --version | --versio | --versi | --vers | -V)
Chris@10 1188 ac_init_version=: ;;
Chris@10 1189
Chris@10 1190 -with-* | --with-*)
Chris@10 1191 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Chris@10 1192 # Reject names that are not valid shell variable names.
Chris@10 1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@10 1194 as_fn_error $? "invalid package name: $ac_useropt"
Chris@10 1195 ac_useropt_orig=$ac_useropt
Chris@10 1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@10 1197 case $ac_user_opts in
Chris@10 1198 *"
Chris@10 1199 "with_$ac_useropt"
Chris@10 1200 "*) ;;
Chris@10 1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
Chris@10 1202 ac_unrecognized_sep=', ';;
Chris@10 1203 esac
Chris@10 1204 eval with_$ac_useropt=\$ac_optarg ;;
Chris@10 1205
Chris@10 1206 -without-* | --without-*)
Chris@10 1207 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Chris@10 1208 # Reject names that are not valid shell variable names.
Chris@10 1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@10 1210 as_fn_error $? "invalid package name: $ac_useropt"
Chris@10 1211 ac_useropt_orig=$ac_useropt
Chris@10 1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@10 1213 case $ac_user_opts in
Chris@10 1214 *"
Chris@10 1215 "with_$ac_useropt"
Chris@10 1216 "*) ;;
Chris@10 1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
Chris@10 1218 ac_unrecognized_sep=', ';;
Chris@10 1219 esac
Chris@10 1220 eval with_$ac_useropt=no ;;
Chris@10 1221
Chris@10 1222 --x)
Chris@10 1223 # Obsolete; use --with-x.
Chris@10 1224 with_x=yes ;;
Chris@10 1225
Chris@10 1226 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
Chris@10 1227 | --x-incl | --x-inc | --x-in | --x-i)
Chris@10 1228 ac_prev=x_includes ;;
Chris@10 1229 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
Chris@10 1230 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Chris@10 1231 x_includes=$ac_optarg ;;
Chris@10 1232
Chris@10 1233 -x-libraries | --x-libraries | --x-librarie | --x-librari \
Chris@10 1234 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
Chris@10 1235 ac_prev=x_libraries ;;
Chris@10 1236 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
Chris@10 1237 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Chris@10 1238 x_libraries=$ac_optarg ;;
Chris@10 1239
Chris@10 1240 -*) as_fn_error $? "unrecognized option: \`$ac_option'
Chris@10 1241 Try \`$0 --help' for more information"
Chris@10 1242 ;;
Chris@10 1243
Chris@10 1244 *=*)
Chris@10 1245 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
Chris@10 1246 # Reject names that are not valid shell variable names.
Chris@10 1247 case $ac_envvar in #(
Chris@10 1248 '' | [0-9]* | *[!_$as_cr_alnum]* )
Chris@10 1249 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Chris@10 1250 esac
Chris@10 1251 eval $ac_envvar=\$ac_optarg
Chris@10 1252 export $ac_envvar ;;
Chris@10 1253
Chris@10 1254 *)
Chris@10 1255 # FIXME: should be removed in autoconf 3.0.
Chris@10 1256 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Chris@10 1257 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Chris@10 1258 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Chris@10 1259 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Chris@10 1260 ;;
Chris@10 1261
Chris@10 1262 esac
Chris@10 1263 done
Chris@10 1264
Chris@10 1265 if test -n "$ac_prev"; then
Chris@10 1266 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Chris@10 1267 as_fn_error $? "missing argument to $ac_option"
Chris@10 1268 fi
Chris@10 1269
Chris@10 1270 if test -n "$ac_unrecognized_opts"; then
Chris@10 1271 case $enable_option_checking in
Chris@10 1272 no) ;;
Chris@10 1273 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Chris@10 1274 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Chris@10 1275 esac
Chris@10 1276 fi
Chris@10 1277
Chris@10 1278 # Check all directory arguments for consistency.
Chris@10 1279 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
Chris@10 1280 datadir sysconfdir sharedstatedir localstatedir includedir \
Chris@10 1281 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Chris@10 1282 libdir localedir mandir
Chris@10 1283 do
Chris@10 1284 eval ac_val=\$$ac_var
Chris@10 1285 # Remove trailing slashes.
Chris@10 1286 case $ac_val in
Chris@10 1287 */ )
Chris@10 1288 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
Chris@10 1289 eval $ac_var=\$ac_val;;
Chris@10 1290 esac
Chris@10 1291 # Be sure to have absolute directory names.
Chris@10 1292 case $ac_val in
Chris@10 1293 [\\/$]* | ?:[\\/]* ) continue;;
Chris@10 1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Chris@10 1295 esac
Chris@10 1296 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Chris@10 1297 done
Chris@10 1298
Chris@10 1299 # There might be people who depend on the old broken behavior: `$host'
Chris@10 1300 # used to hold the argument of --host etc.
Chris@10 1301 # FIXME: To remove some day.
Chris@10 1302 build=$build_alias
Chris@10 1303 host=$host_alias
Chris@10 1304 target=$target_alias
Chris@10 1305
Chris@10 1306 # FIXME: To remove some day.
Chris@10 1307 if test "x$host_alias" != x; then
Chris@10 1308 if test "x$build_alias" = x; then
Chris@10 1309 cross_compiling=maybe
Chris@10 1310 elif test "x$build_alias" != "x$host_alias"; then
Chris@10 1311 cross_compiling=yes
Chris@10 1312 fi
Chris@10 1313 fi
Chris@10 1314
Chris@10 1315 ac_tool_prefix=
Chris@10 1316 test -n "$host_alias" && ac_tool_prefix=$host_alias-
Chris@10 1317
Chris@10 1318 test "$silent" = yes && exec 6>/dev/null
Chris@10 1319
Chris@10 1320
Chris@10 1321 ac_pwd=`pwd` && test -n "$ac_pwd" &&
Chris@10 1322 ac_ls_di=`ls -di .` &&
Chris@10 1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Chris@10 1324 as_fn_error $? "working directory cannot be determined"
Chris@10 1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Chris@10 1326 as_fn_error $? "pwd does not report name of working directory"
Chris@10 1327
Chris@10 1328
Chris@10 1329 # Find the source files, if location was not specified.
Chris@10 1330 if test -z "$srcdir"; then
Chris@10 1331 ac_srcdir_defaulted=yes
Chris@10 1332 # Try the directory containing this script, then the parent directory.
Chris@10 1333 ac_confdir=`$as_dirname -- "$as_myself" ||
Chris@10 1334 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@10 1335 X"$as_myself" : 'X\(//\)[^/]' \| \
Chris@10 1336 X"$as_myself" : 'X\(//\)$' \| \
Chris@10 1337 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
Chris@10 1338 $as_echo X"$as_myself" |
Chris@10 1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@10 1340 s//\1/
Chris@10 1341 q
Chris@10 1342 }
Chris@10 1343 /^X\(\/\/\)[^/].*/{
Chris@10 1344 s//\1/
Chris@10 1345 q
Chris@10 1346 }
Chris@10 1347 /^X\(\/\/\)$/{
Chris@10 1348 s//\1/
Chris@10 1349 q
Chris@10 1350 }
Chris@10 1351 /^X\(\/\).*/{
Chris@10 1352 s//\1/
Chris@10 1353 q
Chris@10 1354 }
Chris@10 1355 s/.*/./; q'`
Chris@10 1356 srcdir=$ac_confdir
Chris@10 1357 if test ! -r "$srcdir/$ac_unique_file"; then
Chris@10 1358 srcdir=..
Chris@10 1359 fi
Chris@10 1360 else
Chris@10 1361 ac_srcdir_defaulted=no
Chris@10 1362 fi
Chris@10 1363 if test ! -r "$srcdir/$ac_unique_file"; then
Chris@10 1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Chris@10 1365 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Chris@10 1366 fi
Chris@10 1367 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
Chris@10 1368 ac_abs_confdir=`(
Chris@10 1369 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Chris@10 1370 pwd)`
Chris@10 1371 # When building in place, set srcdir=.
Chris@10 1372 if test "$ac_abs_confdir" = "$ac_pwd"; then
Chris@10 1373 srcdir=.
Chris@10 1374 fi
Chris@10 1375 # Remove unnecessary trailing slashes from srcdir.
Chris@10 1376 # Double slashes in file names in object file debugging info
Chris@10 1377 # mess up M-x gdb in Emacs.
Chris@10 1378 case $srcdir in
Chris@10 1379 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
Chris@10 1380 esac
Chris@10 1381 for ac_var in $ac_precious_vars; do
Chris@10 1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
Chris@10 1383 eval ac_env_${ac_var}_value=\$${ac_var}
Chris@10 1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
Chris@10 1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
Chris@10 1386 done
Chris@10 1387
Chris@10 1388 #
Chris@10 1389 # Report the --help message.
Chris@10 1390 #
Chris@10 1391 if test "$ac_init_help" = "long"; then
Chris@10 1392 # Omit some internal or obsolete options to make the list less imposing.
Chris@10 1393 # This message is too long to be a string in the A/UX 3.1 sh.
Chris@10 1394 cat <<_ACEOF
Chris@10 1395 \`configure' configures fftw 3.3.3 to adapt to many kinds of systems.
Chris@10 1396
Chris@10 1397 Usage: $0 [OPTION]... [VAR=VALUE]...
Chris@10 1398
Chris@10 1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
Chris@10 1400 VAR=VALUE. See below for descriptions of some of the useful variables.
Chris@10 1401
Chris@10 1402 Defaults for the options are specified in brackets.
Chris@10 1403
Chris@10 1404 Configuration:
Chris@10 1405 -h, --help display this help and exit
Chris@10 1406 --help=short display options specific to this package
Chris@10 1407 --help=recursive display the short help of all the included packages
Chris@10 1408 -V, --version display version information and exit
Chris@10 1409 -q, --quiet, --silent do not print \`checking ...' messages
Chris@10 1410 --cache-file=FILE cache test results in FILE [disabled]
Chris@10 1411 -C, --config-cache alias for \`--cache-file=config.cache'
Chris@10 1412 -n, --no-create do not create output files
Chris@10 1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
Chris@10 1414
Chris@10 1415 Installation directories:
Chris@10 1416 --prefix=PREFIX install architecture-independent files in PREFIX
Chris@10 1417 [$ac_default_prefix]
Chris@10 1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Chris@10 1419 [PREFIX]
Chris@10 1420
Chris@10 1421 By default, \`make install' will install all the files in
Chris@10 1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
Chris@10 1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
Chris@10 1424 for instance \`--prefix=\$HOME'.
Chris@10 1425
Chris@10 1426 For better control, use the options below.
Chris@10 1427
Chris@10 1428 Fine tuning of the installation directories:
Chris@10 1429 --bindir=DIR user executables [EPREFIX/bin]
Chris@10 1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
Chris@10 1431 --libexecdir=DIR program executables [EPREFIX/libexec]
Chris@10 1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
Chris@10 1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
Chris@10 1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Chris@10 1435 --libdir=DIR object code libraries [EPREFIX/lib]
Chris@10 1436 --includedir=DIR C header files [PREFIX/include]
Chris@10 1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Chris@10 1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
Chris@10 1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
Chris@10 1440 --infodir=DIR info documentation [DATAROOTDIR/info]
Chris@10 1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
Chris@10 1442 --mandir=DIR man documentation [DATAROOTDIR/man]
Chris@10 1443 --docdir=DIR documentation root [DATAROOTDIR/doc/fftw]
Chris@10 1444 --htmldir=DIR html documentation [DOCDIR]
Chris@10 1445 --dvidir=DIR dvi documentation [DOCDIR]
Chris@10 1446 --pdfdir=DIR pdf documentation [DOCDIR]
Chris@10 1447 --psdir=DIR ps documentation [DOCDIR]
Chris@10 1448 _ACEOF
Chris@10 1449
Chris@10 1450 cat <<\_ACEOF
Chris@10 1451
Chris@10 1452 Program names:
Chris@10 1453 --program-prefix=PREFIX prepend PREFIX to installed program names
Chris@10 1454 --program-suffix=SUFFIX append SUFFIX to installed program names
Chris@10 1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
Chris@10 1456
Chris@10 1457 System types:
Chris@10 1458 --build=BUILD configure for building on BUILD [guessed]
Chris@10 1459 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Chris@10 1460 _ACEOF
Chris@10 1461 fi
Chris@10 1462
Chris@10 1463 if test -n "$ac_init_help"; then
Chris@10 1464 case $ac_init_help in
Chris@10 1465 short | recursive ) echo "Configuration of fftw 3.3.3:";;
Chris@10 1466 esac
Chris@10 1467 cat <<\_ACEOF
Chris@10 1468
Chris@10 1469 Optional Features:
Chris@10 1470 --disable-option-checking ignore unrecognized --enable/--with options
Chris@10 1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
Chris@10 1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Chris@10 1473 --enable-maintainer-mode enable make rules and dependencies not useful
Chris@10 1474 (and sometimes confusing) to the casual installer
Chris@10 1475 --enable-shared[=PKGS] build shared libraries [default=no]
Chris@10 1476 --enable-fma enable optimizations for machines with fused
Chris@10 1477 multiply-add
Chris@10 1478 --enable-debug compile fftw with extra runtime checks for debugging
Chris@10 1479 --enable-debug-malloc enable malloc debugging version
Chris@10 1480 --enable-debug-alignment
Chris@10 1481 enable alignment debugging hacks
Chris@10 1482 --enable-random-estimator
Chris@10 1483 enable pseudorandom estimator (debugging hack)
Chris@10 1484 --disable-alloca disable use of the alloca() function (may be broken
Chris@10 1485 on mingw64)
Chris@10 1486 --enable-single compile fftw in single precision
Chris@10 1487 --enable-float synonym for --enable-single
Chris@10 1488 --enable-long-double compile fftw in long-double precision
Chris@10 1489 --enable-quad-precision compile fftw in quadruple precision if available
Chris@10 1490 --enable-sse enable SSE optimizations
Chris@10 1491 --enable-sse2 enable SSE/SSE2 optimizations
Chris@10 1492 --enable-avx enable AVX optimizations
Chris@10 1493 --enable-altivec enable Altivec optimizations
Chris@10 1494 --enable-neon enable ARM NEON optimizations
Chris@10 1495 --enable-mips-zbus-timer
Chris@10 1496 use MIPS ZBus cycle-counter
Chris@10 1497 --disable-dependency-tracking speeds up one-time build
Chris@10 1498 --enable-dependency-tracking do not reject slow dependency extractors
Chris@10 1499 --enable-static[=PKGS] build static libraries [default=yes]
Chris@10 1500 --enable-fast-install[=PKGS]
Chris@10 1501 optimize for fast installation [default=yes]
Chris@10 1502 --disable-libtool-lock avoid locking (might break parallel builds)
Chris@10 1503 --enable-mpi compile FFTW MPI library
Chris@10 1504 --disable-fortran don't include Fortran-callable wrappers
Chris@10 1505 --enable-openmp use OpenMP directives for parallelism
Chris@10 1506 --enable-threads compile FFTW SMP threads library
Chris@10 1507
Chris@10 1508 Optional Packages:
Chris@10 1509 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
Chris@10 1510 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Chris@10 1511 --with-slow-timer use low-precision timers (SLOW)
Chris@10 1512 --with-our-malloc use our aligned malloc (helpful for Win32)
Chris@10 1513 --with-our-malloc16 Obsolete alias for --with-our-malloc16
Chris@10 1514 --with-windows-f77-mangling
Chris@10 1515 use common Win32 Fortran interface styles
Chris@10 1516 --with-incoming-stack-boundary=X
Chris@10 1517 Assume that stack is aligned to (1<<X) bytes
Chris@10 1518 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
Chris@10 1519 both]
Chris@10 1520 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Chris@10 1521 --with-sysroot=DIR Search for dependent libraries within DIR
Chris@10 1522 (or the compiler's sysroot if not specified).
Chris@10 1523 --with-g77-wrappers force inclusion of g77-compatible wrappers in
Chris@10 1524 addition to any other Fortran compiler that is
Chris@10 1525 detected
Chris@10 1526 --with-combined-threads combine threads into main libfftw3
Chris@10 1527
Chris@10 1528 Some influential environment variables:
Chris@10 1529 CC C compiler command
Chris@10 1530 CFLAGS C compiler flags
Chris@10 1531 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
Chris@10 1532 nonstandard directory <lib dir>
Chris@10 1533 LIBS libraries to pass to the linker, e.g. -l<library>
Chris@10 1534 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Chris@10 1535 you have headers in a nonstandard directory <include dir>
Chris@10 1536 CPP C preprocessor
Chris@10 1537 MPICC MPI C compiler command
Chris@10 1538 F77 Fortran 77 compiler command
Chris@10 1539 FFLAGS Fortran 77 compiler flags
Chris@10 1540
Chris@10 1541 Use these variables to override the choices made by `configure' or to help
Chris@10 1542 it to find libraries and programs with nonstandard names/locations.
Chris@10 1543
Chris@10 1544 Report bugs to <fftw@fftw.org>.
Chris@10 1545 _ACEOF
Chris@10 1546 ac_status=$?
Chris@10 1547 fi
Chris@10 1548
Chris@10 1549 if test "$ac_init_help" = "recursive"; then
Chris@10 1550 # If there are subdirs, report their specific --help.
Chris@10 1551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Chris@10 1552 test -d "$ac_dir" ||
Chris@10 1553 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
Chris@10 1554 continue
Chris@10 1555 ac_builddir=.
Chris@10 1556
Chris@10 1557 case "$ac_dir" in
Chris@10 1558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@10 1559 *)
Chris@10 1560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Chris@10 1561 # A ".." for each directory in $ac_dir_suffix.
Chris@10 1562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Chris@10 1563 case $ac_top_builddir_sub in
Chris@10 1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@10 1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
Chris@10 1566 esac ;;
Chris@10 1567 esac
Chris@10 1568 ac_abs_top_builddir=$ac_pwd
Chris@10 1569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
Chris@10 1570 # for backward compatibility:
Chris@10 1571 ac_top_builddir=$ac_top_build_prefix
Chris@10 1572
Chris@10 1573 case $srcdir in
Chris@10 1574 .) # We are building in place.
Chris@10 1575 ac_srcdir=.
Chris@10 1576 ac_top_srcdir=$ac_top_builddir_sub
Chris@10 1577 ac_abs_top_srcdir=$ac_pwd ;;
Chris@10 1578 [\\/]* | ?:[\\/]* ) # Absolute name.
Chris@10 1579 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@10 1580 ac_top_srcdir=$srcdir
Chris@10 1581 ac_abs_top_srcdir=$srcdir ;;
Chris@10 1582 *) # Relative name.
Chris@10 1583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
Chris@10 1584 ac_top_srcdir=$ac_top_build_prefix$srcdir
Chris@10 1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Chris@10 1586 esac
Chris@10 1587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Chris@10 1588
Chris@10 1589 cd "$ac_dir" || { ac_status=$?; continue; }
Chris@10 1590 # Check for guested configure.
Chris@10 1591 if test -f "$ac_srcdir/configure.gnu"; then
Chris@10 1592 echo &&
Chris@10 1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
Chris@10 1594 elif test -f "$ac_srcdir/configure"; then
Chris@10 1595 echo &&
Chris@10 1596 $SHELL "$ac_srcdir/configure" --help=recursive
Chris@10 1597 else
Chris@10 1598 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Chris@10 1599 fi || ac_status=$?
Chris@10 1600 cd "$ac_pwd" || { ac_status=$?; break; }
Chris@10 1601 done
Chris@10 1602 fi
Chris@10 1603
Chris@10 1604 test -n "$ac_init_help" && exit $ac_status
Chris@10 1605 if $ac_init_version; then
Chris@10 1606 cat <<\_ACEOF
Chris@10 1607 fftw configure 3.3.3
Chris@10 1608 generated by GNU Autoconf 2.69
Chris@10 1609
Chris@10 1610 Copyright (C) 2012 Free Software Foundation, Inc.
Chris@10 1611 This configure script is free software; the Free Software Foundation
Chris@10 1612 gives unlimited permission to copy, distribute and modify it.
Chris@10 1613 _ACEOF
Chris@10 1614 exit
Chris@10 1615 fi
Chris@10 1616
Chris@10 1617 ## ------------------------ ##
Chris@10 1618 ## Autoconf initialization. ##
Chris@10 1619 ## ------------------------ ##
Chris@10 1620
Chris@10 1621 # ac_fn_c_try_compile LINENO
Chris@10 1622 # --------------------------
Chris@10 1623 # Try to compile conftest.$ac_ext, and return whether this succeeded.
Chris@10 1624 ac_fn_c_try_compile ()
Chris@10 1625 {
Chris@10 1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@10 1627 rm -f conftest.$ac_objext
Chris@10 1628 if { { ac_try="$ac_compile"
Chris@10 1629 case "(($ac_try" in
Chris@10 1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@10 1631 *) ac_try_echo=$ac_try;;
Chris@10 1632 esac
Chris@10 1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@10 1634 $as_echo "$ac_try_echo"; } >&5
Chris@10 1635 (eval "$ac_compile") 2>conftest.err
Chris@10 1636 ac_status=$?
Chris@10 1637 if test -s conftest.err; then
Chris@10 1638 grep -v '^ *+' conftest.err >conftest.er1
Chris@10 1639 cat conftest.er1 >&5
Chris@10 1640 mv -f conftest.er1 conftest.err
Chris@10 1641 fi
Chris@10 1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 1643 test $ac_status = 0; } && {
Chris@10 1644 test -z "$ac_c_werror_flag" ||
Chris@10 1645 test ! -s conftest.err
Chris@10 1646 } && test -s conftest.$ac_objext; then :
Chris@10 1647 ac_retval=0
Chris@10 1648 else
Chris@10 1649 $as_echo "$as_me: failed program was:" >&5
Chris@10 1650 sed 's/^/| /' conftest.$ac_ext >&5
Chris@10 1651
Chris@10 1652 ac_retval=1
Chris@10 1653 fi
Chris@10 1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@10 1655 as_fn_set_status $ac_retval
Chris@10 1656
Chris@10 1657 } # ac_fn_c_try_compile
Chris@10 1658
Chris@10 1659 # ac_fn_c_try_link LINENO
Chris@10 1660 # -----------------------
Chris@10 1661 # Try to link conftest.$ac_ext, and return whether this succeeded.
Chris@10 1662 ac_fn_c_try_link ()
Chris@10 1663 {
Chris@10 1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@10 1665 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@10 1666 if { { ac_try="$ac_link"
Chris@10 1667 case "(($ac_try" in
Chris@10 1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@10 1669 *) ac_try_echo=$ac_try;;
Chris@10 1670 esac
Chris@10 1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@10 1672 $as_echo "$ac_try_echo"; } >&5
Chris@10 1673 (eval "$ac_link") 2>conftest.err
Chris@10 1674 ac_status=$?
Chris@10 1675 if test -s conftest.err; then
Chris@10 1676 grep -v '^ *+' conftest.err >conftest.er1
Chris@10 1677 cat conftest.er1 >&5
Chris@10 1678 mv -f conftest.er1 conftest.err
Chris@10 1679 fi
Chris@10 1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 1681 test $ac_status = 0; } && {
Chris@10 1682 test -z "$ac_c_werror_flag" ||
Chris@10 1683 test ! -s conftest.err
Chris@10 1684 } && test -s conftest$ac_exeext && {
Chris@10 1685 test "$cross_compiling" = yes ||
Chris@10 1686 test -x conftest$ac_exeext
Chris@10 1687 }; then :
Chris@10 1688 ac_retval=0
Chris@10 1689 else
Chris@10 1690 $as_echo "$as_me: failed program was:" >&5
Chris@10 1691 sed 's/^/| /' conftest.$ac_ext >&5
Chris@10 1692
Chris@10 1693 ac_retval=1
Chris@10 1694 fi
Chris@10 1695 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
Chris@10 1696 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
Chris@10 1697 # interfere with the next link command; also delete a directory that is
Chris@10 1698 # left behind by Apple's compiler. We do this before executing the actions.
Chris@10 1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris@10 1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@10 1701 as_fn_set_status $ac_retval
Chris@10 1702
Chris@10 1703 } # ac_fn_c_try_link
Chris@10 1704
Chris@10 1705 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
Chris@10 1706 # -------------------------------------------------------
Chris@10 1707 # Tests whether HEADER exists and can be compiled using the include files in
Chris@10 1708 # INCLUDES, setting the cache variable VAR accordingly.
Chris@10 1709 ac_fn_c_check_header_compile ()
Chris@10 1710 {
Chris@10 1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@10 1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@10 1713 $as_echo_n "checking for $2... " >&6; }
Chris@10 1714 if eval \${$3+:} false; then :
Chris@10 1715 $as_echo_n "(cached) " >&6
Chris@10 1716 else
Chris@10 1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 1718 /* end confdefs.h. */
Chris@10 1719 $4
Chris@10 1720 #include <$2>
Chris@10 1721 _ACEOF
Chris@10 1722 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 1723 eval "$3=yes"
Chris@10 1724 else
Chris@10 1725 eval "$3=no"
Chris@10 1726 fi
Chris@10 1727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 1728 fi
Chris@10 1729 eval ac_res=\$$3
Chris@10 1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@10 1731 $as_echo "$ac_res" >&6; }
Chris@10 1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@10 1733
Chris@10 1734 } # ac_fn_c_check_header_compile
Chris@10 1735
Chris@10 1736 # ac_fn_c_try_cpp LINENO
Chris@10 1737 # ----------------------
Chris@10 1738 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
Chris@10 1739 ac_fn_c_try_cpp ()
Chris@10 1740 {
Chris@10 1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@10 1742 if { { ac_try="$ac_cpp conftest.$ac_ext"
Chris@10 1743 case "(($ac_try" in
Chris@10 1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@10 1745 *) ac_try_echo=$ac_try;;
Chris@10 1746 esac
Chris@10 1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@10 1748 $as_echo "$ac_try_echo"; } >&5
Chris@10 1749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
Chris@10 1750 ac_status=$?
Chris@10 1751 if test -s conftest.err; then
Chris@10 1752 grep -v '^ *+' conftest.err >conftest.er1
Chris@10 1753 cat conftest.er1 >&5
Chris@10 1754 mv -f conftest.er1 conftest.err
Chris@10 1755 fi
Chris@10 1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 1757 test $ac_status = 0; } > conftest.i && {
Chris@10 1758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
Chris@10 1759 test ! -s conftest.err
Chris@10 1760 }; then :
Chris@10 1761 ac_retval=0
Chris@10 1762 else
Chris@10 1763 $as_echo "$as_me: failed program was:" >&5
Chris@10 1764 sed 's/^/| /' conftest.$ac_ext >&5
Chris@10 1765
Chris@10 1766 ac_retval=1
Chris@10 1767 fi
Chris@10 1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@10 1769 as_fn_set_status $ac_retval
Chris@10 1770
Chris@10 1771 } # ac_fn_c_try_cpp
Chris@10 1772
Chris@10 1773 # ac_fn_c_try_run LINENO
Chris@10 1774 # ----------------------
Chris@10 1775 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
Chris@10 1776 # that executables *can* be run.
Chris@10 1777 ac_fn_c_try_run ()
Chris@10 1778 {
Chris@10 1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@10 1780 if { { ac_try="$ac_link"
Chris@10 1781 case "(($ac_try" in
Chris@10 1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@10 1783 *) ac_try_echo=$ac_try;;
Chris@10 1784 esac
Chris@10 1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@10 1786 $as_echo "$ac_try_echo"; } >&5
Chris@10 1787 (eval "$ac_link") 2>&5
Chris@10 1788 ac_status=$?
Chris@10 1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 1790 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
Chris@10 1791 { { case "(($ac_try" in
Chris@10 1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@10 1793 *) ac_try_echo=$ac_try;;
Chris@10 1794 esac
Chris@10 1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@10 1796 $as_echo "$ac_try_echo"; } >&5
Chris@10 1797 (eval "$ac_try") 2>&5
Chris@10 1798 ac_status=$?
Chris@10 1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 1800 test $ac_status = 0; }; }; then :
Chris@10 1801 ac_retval=0
Chris@10 1802 else
Chris@10 1803 $as_echo "$as_me: program exited with status $ac_status" >&5
Chris@10 1804 $as_echo "$as_me: failed program was:" >&5
Chris@10 1805 sed 's/^/| /' conftest.$ac_ext >&5
Chris@10 1806
Chris@10 1807 ac_retval=$ac_status
Chris@10 1808 fi
Chris@10 1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris@10 1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@10 1811 as_fn_set_status $ac_retval
Chris@10 1812
Chris@10 1813 } # ac_fn_c_try_run
Chris@10 1814
Chris@10 1815 # ac_fn_c_check_func LINENO FUNC VAR
Chris@10 1816 # ----------------------------------
Chris@10 1817 # Tests whether FUNC exists, setting the cache variable VAR accordingly
Chris@10 1818 ac_fn_c_check_func ()
Chris@10 1819 {
Chris@10 1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@10 1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@10 1822 $as_echo_n "checking for $2... " >&6; }
Chris@10 1823 if eval \${$3+:} false; then :
Chris@10 1824 $as_echo_n "(cached) " >&6
Chris@10 1825 else
Chris@10 1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 1827 /* end confdefs.h. */
Chris@10 1828 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
Chris@10 1829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
Chris@10 1830 #define $2 innocuous_$2
Chris@10 1831
Chris@10 1832 /* System header to define __stub macros and hopefully few prototypes,
Chris@10 1833 which can conflict with char $2 (); below.
Chris@10 1834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@10 1835 <limits.h> exists even on freestanding compilers. */
Chris@10 1836
Chris@10 1837 #ifdef __STDC__
Chris@10 1838 # include <limits.h>
Chris@10 1839 #else
Chris@10 1840 # include <assert.h>
Chris@10 1841 #endif
Chris@10 1842
Chris@10 1843 #undef $2
Chris@10 1844
Chris@10 1845 /* Override any GCC internal prototype to avoid an error.
Chris@10 1846 Use char because int might match the return type of a GCC
Chris@10 1847 builtin and then its argument prototype would still apply. */
Chris@10 1848 #ifdef __cplusplus
Chris@10 1849 extern "C"
Chris@10 1850 #endif
Chris@10 1851 char $2 ();
Chris@10 1852 /* The GNU C library defines this for functions which it implements
Chris@10 1853 to always fail with ENOSYS. Some functions are actually named
Chris@10 1854 something starting with __ and the normal name is an alias. */
Chris@10 1855 #if defined __stub_$2 || defined __stub___$2
Chris@10 1856 choke me
Chris@10 1857 #endif
Chris@10 1858
Chris@10 1859 int
Chris@10 1860 main ()
Chris@10 1861 {
Chris@10 1862 return $2 ();
Chris@10 1863 ;
Chris@10 1864 return 0;
Chris@10 1865 }
Chris@10 1866 _ACEOF
Chris@10 1867 if ac_fn_c_try_link "$LINENO"; then :
Chris@10 1868 eval "$3=yes"
Chris@10 1869 else
Chris@10 1870 eval "$3=no"
Chris@10 1871 fi
Chris@10 1872 rm -f core conftest.err conftest.$ac_objext \
Chris@10 1873 conftest$ac_exeext conftest.$ac_ext
Chris@10 1874 fi
Chris@10 1875 eval ac_res=\$$3
Chris@10 1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@10 1877 $as_echo "$ac_res" >&6; }
Chris@10 1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@10 1879
Chris@10 1880 } # ac_fn_c_check_func
Chris@10 1881
Chris@10 1882 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
Chris@10 1883 # --------------------------------------------
Chris@10 1884 # Tries to find the compile-time value of EXPR in a program that includes
Chris@10 1885 # INCLUDES, setting VAR accordingly. Returns whether the value could be
Chris@10 1886 # computed
Chris@10 1887 ac_fn_c_compute_int ()
Chris@10 1888 {
Chris@10 1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@10 1890 if test "$cross_compiling" = yes; then
Chris@10 1891 # Depending upon the size, compute the lo and hi bounds.
Chris@10 1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 1893 /* end confdefs.h. */
Chris@10 1894 $4
Chris@10 1895 int
Chris@10 1896 main ()
Chris@10 1897 {
Chris@10 1898 static int test_array [1 - 2 * !(($2) >= 0)];
Chris@10 1899 test_array [0] = 0;
Chris@10 1900 return test_array [0];
Chris@10 1901
Chris@10 1902 ;
Chris@10 1903 return 0;
Chris@10 1904 }
Chris@10 1905 _ACEOF
Chris@10 1906 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 1907 ac_lo=0 ac_mid=0
Chris@10 1908 while :; do
Chris@10 1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 1910 /* end confdefs.h. */
Chris@10 1911 $4
Chris@10 1912 int
Chris@10 1913 main ()
Chris@10 1914 {
Chris@10 1915 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Chris@10 1916 test_array [0] = 0;
Chris@10 1917 return test_array [0];
Chris@10 1918
Chris@10 1919 ;
Chris@10 1920 return 0;
Chris@10 1921 }
Chris@10 1922 _ACEOF
Chris@10 1923 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 1924 ac_hi=$ac_mid; break
Chris@10 1925 else
Chris@10 1926 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
Chris@10 1927 if test $ac_lo -le $ac_mid; then
Chris@10 1928 ac_lo= ac_hi=
Chris@10 1929 break
Chris@10 1930 fi
Chris@10 1931 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
Chris@10 1932 fi
Chris@10 1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 1934 done
Chris@10 1935 else
Chris@10 1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 1937 /* end confdefs.h. */
Chris@10 1938 $4
Chris@10 1939 int
Chris@10 1940 main ()
Chris@10 1941 {
Chris@10 1942 static int test_array [1 - 2 * !(($2) < 0)];
Chris@10 1943 test_array [0] = 0;
Chris@10 1944 return test_array [0];
Chris@10 1945
Chris@10 1946 ;
Chris@10 1947 return 0;
Chris@10 1948 }
Chris@10 1949 _ACEOF
Chris@10 1950 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 1951 ac_hi=-1 ac_mid=-1
Chris@10 1952 while :; do
Chris@10 1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 1954 /* end confdefs.h. */
Chris@10 1955 $4
Chris@10 1956 int
Chris@10 1957 main ()
Chris@10 1958 {
Chris@10 1959 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Chris@10 1960 test_array [0] = 0;
Chris@10 1961 return test_array [0];
Chris@10 1962
Chris@10 1963 ;
Chris@10 1964 return 0;
Chris@10 1965 }
Chris@10 1966 _ACEOF
Chris@10 1967 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 1968 ac_lo=$ac_mid; break
Chris@10 1969 else
Chris@10 1970 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
Chris@10 1971 if test $ac_mid -le $ac_hi; then
Chris@10 1972 ac_lo= ac_hi=
Chris@10 1973 break
Chris@10 1974 fi
Chris@10 1975 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
Chris@10 1976 fi
Chris@10 1977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 1978 done
Chris@10 1979 else
Chris@10 1980 ac_lo= ac_hi=
Chris@10 1981 fi
Chris@10 1982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 1983 fi
Chris@10 1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 1985 # Binary search between lo and hi bounds.
Chris@10 1986 while test "x$ac_lo" != "x$ac_hi"; do
Chris@10 1987 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
Chris@10 1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 1989 /* end confdefs.h. */
Chris@10 1990 $4
Chris@10 1991 int
Chris@10 1992 main ()
Chris@10 1993 {
Chris@10 1994 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Chris@10 1995 test_array [0] = 0;
Chris@10 1996 return test_array [0];
Chris@10 1997
Chris@10 1998 ;
Chris@10 1999 return 0;
Chris@10 2000 }
Chris@10 2001 _ACEOF
Chris@10 2002 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 2003 ac_hi=$ac_mid
Chris@10 2004 else
Chris@10 2005 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
Chris@10 2006 fi
Chris@10 2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 2008 done
Chris@10 2009 case $ac_lo in #((
Chris@10 2010 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
Chris@10 2011 '') ac_retval=1 ;;
Chris@10 2012 esac
Chris@10 2013 else
Chris@10 2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 2015 /* end confdefs.h. */
Chris@10 2016 $4
Chris@10 2017 static long int longval () { return $2; }
Chris@10 2018 static unsigned long int ulongval () { return $2; }
Chris@10 2019 #include <stdio.h>
Chris@10 2020 #include <stdlib.h>
Chris@10 2021 int
Chris@10 2022 main ()
Chris@10 2023 {
Chris@10 2024
Chris@10 2025 FILE *f = fopen ("conftest.val", "w");
Chris@10 2026 if (! f)
Chris@10 2027 return 1;
Chris@10 2028 if (($2) < 0)
Chris@10 2029 {
Chris@10 2030 long int i = longval ();
Chris@10 2031 if (i != ($2))
Chris@10 2032 return 1;
Chris@10 2033 fprintf (f, "%ld", i);
Chris@10 2034 }
Chris@10 2035 else
Chris@10 2036 {
Chris@10 2037 unsigned long int i = ulongval ();
Chris@10 2038 if (i != ($2))
Chris@10 2039 return 1;
Chris@10 2040 fprintf (f, "%lu", i);
Chris@10 2041 }
Chris@10 2042 /* Do not output a trailing newline, as this causes \r\n confusion
Chris@10 2043 on some platforms. */
Chris@10 2044 return ferror (f) || fclose (f) != 0;
Chris@10 2045
Chris@10 2046 ;
Chris@10 2047 return 0;
Chris@10 2048 }
Chris@10 2049 _ACEOF
Chris@10 2050 if ac_fn_c_try_run "$LINENO"; then :
Chris@10 2051 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
Chris@10 2052 else
Chris@10 2053 ac_retval=1
Chris@10 2054 fi
Chris@10 2055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@10 2056 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@10 2057 rm -f conftest.val
Chris@10 2058
Chris@10 2059 fi
Chris@10 2060 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@10 2061 as_fn_set_status $ac_retval
Chris@10 2062
Chris@10 2063 } # ac_fn_c_compute_int
Chris@10 2064
Chris@10 2065 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
Chris@10 2066 # -------------------------------------------------------
Chris@10 2067 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
Chris@10 2068 # the include files in INCLUDES and setting the cache variable VAR
Chris@10 2069 # accordingly.
Chris@10 2070 ac_fn_c_check_header_mongrel ()
Chris@10 2071 {
Chris@10 2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@10 2073 if eval \${$3+:} false; then :
Chris@10 2074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@10 2075 $as_echo_n "checking for $2... " >&6; }
Chris@10 2076 if eval \${$3+:} false; then :
Chris@10 2077 $as_echo_n "(cached) " >&6
Chris@10 2078 fi
Chris@10 2079 eval ac_res=\$$3
Chris@10 2080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@10 2081 $as_echo "$ac_res" >&6; }
Chris@10 2082 else
Chris@10 2083 # Is the header compilable?
Chris@10 2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
Chris@10 2085 $as_echo_n "checking $2 usability... " >&6; }
Chris@10 2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 2087 /* end confdefs.h. */
Chris@10 2088 $4
Chris@10 2089 #include <$2>
Chris@10 2090 _ACEOF
Chris@10 2091 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 2092 ac_header_compiler=yes
Chris@10 2093 else
Chris@10 2094 ac_header_compiler=no
Chris@10 2095 fi
Chris@10 2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
Chris@10 2098 $as_echo "$ac_header_compiler" >&6; }
Chris@10 2099
Chris@10 2100 # Is the header present?
Chris@10 2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
Chris@10 2102 $as_echo_n "checking $2 presence... " >&6; }
Chris@10 2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 2104 /* end confdefs.h. */
Chris@10 2105 #include <$2>
Chris@10 2106 _ACEOF
Chris@10 2107 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@10 2108 ac_header_preproc=yes
Chris@10 2109 else
Chris@10 2110 ac_header_preproc=no
Chris@10 2111 fi
Chris@10 2112 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@10 2113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
Chris@10 2114 $as_echo "$ac_header_preproc" >&6; }
Chris@10 2115
Chris@10 2116 # So? What about this header?
Chris@10 2117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
Chris@10 2118 yes:no: )
Chris@10 2119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
Chris@10 2120 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
Chris@10 2121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
Chris@10 2122 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Chris@10 2123 ;;
Chris@10 2124 no:yes:* )
Chris@10 2125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
Chris@10 2126 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
Chris@10 2127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
Chris@10 2128 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
Chris@10 2129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
Chris@10 2130 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
Chris@10 2131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
Chris@10 2132 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
Chris@10 2133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
Chris@10 2134 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Chris@10 2135 ( $as_echo "## ---------------------------- ##
Chris@10 2136 ## Report this to fftw@fftw.org ##
Chris@10 2137 ## ---------------------------- ##"
Chris@10 2138 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris@10 2139 ;;
Chris@10 2140 esac
Chris@10 2141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@10 2142 $as_echo_n "checking for $2... " >&6; }
Chris@10 2143 if eval \${$3+:} false; then :
Chris@10 2144 $as_echo_n "(cached) " >&6
Chris@10 2145 else
Chris@10 2146 eval "$3=\$ac_header_compiler"
Chris@10 2147 fi
Chris@10 2148 eval ac_res=\$$3
Chris@10 2149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@10 2150 $as_echo "$ac_res" >&6; }
Chris@10 2151 fi
Chris@10 2152 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@10 2153
Chris@10 2154 } # ac_fn_c_check_header_mongrel
Chris@10 2155
Chris@10 2156 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
Chris@10 2157 # -------------------------------------------
Chris@10 2158 # Tests whether TYPE exists after having included INCLUDES, setting cache
Chris@10 2159 # variable VAR accordingly.
Chris@10 2160 ac_fn_c_check_type ()
Chris@10 2161 {
Chris@10 2162 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@10 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@10 2164 $as_echo_n "checking for $2... " >&6; }
Chris@10 2165 if eval \${$3+:} false; then :
Chris@10 2166 $as_echo_n "(cached) " >&6
Chris@10 2167 else
Chris@10 2168 eval "$3=no"
Chris@10 2169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 2170 /* end confdefs.h. */
Chris@10 2171 $4
Chris@10 2172 int
Chris@10 2173 main ()
Chris@10 2174 {
Chris@10 2175 if (sizeof ($2))
Chris@10 2176 return 0;
Chris@10 2177 ;
Chris@10 2178 return 0;
Chris@10 2179 }
Chris@10 2180 _ACEOF
Chris@10 2181 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 2183 /* end confdefs.h. */
Chris@10 2184 $4
Chris@10 2185 int
Chris@10 2186 main ()
Chris@10 2187 {
Chris@10 2188 if (sizeof (($2)))
Chris@10 2189 return 0;
Chris@10 2190 ;
Chris@10 2191 return 0;
Chris@10 2192 }
Chris@10 2193 _ACEOF
Chris@10 2194 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 2195
Chris@10 2196 else
Chris@10 2197 eval "$3=yes"
Chris@10 2198 fi
Chris@10 2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 2200 fi
Chris@10 2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 2202 fi
Chris@10 2203 eval ac_res=\$$3
Chris@10 2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@10 2205 $as_echo "$ac_res" >&6; }
Chris@10 2206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@10 2207
Chris@10 2208 } # ac_fn_c_check_type
Chris@10 2209
Chris@10 2210 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
Chris@10 2211 # ---------------------------------------------
Chris@10 2212 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
Chris@10 2213 # accordingly.
Chris@10 2214 ac_fn_c_check_decl ()
Chris@10 2215 {
Chris@10 2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@10 2217 as_decl_name=`echo $2|sed 's/ *(.*//'`
Chris@10 2218 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
Chris@10 2219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
Chris@10 2220 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
Chris@10 2221 if eval \${$3+:} false; then :
Chris@10 2222 $as_echo_n "(cached) " >&6
Chris@10 2223 else
Chris@10 2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 2225 /* end confdefs.h. */
Chris@10 2226 $4
Chris@10 2227 int
Chris@10 2228 main ()
Chris@10 2229 {
Chris@10 2230 #ifndef $as_decl_name
Chris@10 2231 #ifdef __cplusplus
Chris@10 2232 (void) $as_decl_use;
Chris@10 2233 #else
Chris@10 2234 (void) $as_decl_name;
Chris@10 2235 #endif
Chris@10 2236 #endif
Chris@10 2237
Chris@10 2238 ;
Chris@10 2239 return 0;
Chris@10 2240 }
Chris@10 2241 _ACEOF
Chris@10 2242 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 2243 eval "$3=yes"
Chris@10 2244 else
Chris@10 2245 eval "$3=no"
Chris@10 2246 fi
Chris@10 2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 2248 fi
Chris@10 2249 eval ac_res=\$$3
Chris@10 2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@10 2251 $as_echo "$ac_res" >&6; }
Chris@10 2252 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@10 2253
Chris@10 2254 } # ac_fn_c_check_decl
Chris@10 2255
Chris@10 2256 # ac_fn_f77_try_compile LINENO
Chris@10 2257 # ----------------------------
Chris@10 2258 # Try to compile conftest.$ac_ext, and return whether this succeeded.
Chris@10 2259 ac_fn_f77_try_compile ()
Chris@10 2260 {
Chris@10 2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@10 2262 rm -f conftest.$ac_objext
Chris@10 2263 if { { ac_try="$ac_compile"
Chris@10 2264 case "(($ac_try" in
Chris@10 2265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@10 2266 *) ac_try_echo=$ac_try;;
Chris@10 2267 esac
Chris@10 2268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@10 2269 $as_echo "$ac_try_echo"; } >&5
Chris@10 2270 (eval "$ac_compile") 2>conftest.err
Chris@10 2271 ac_status=$?
Chris@10 2272 if test -s conftest.err; then
Chris@10 2273 grep -v '^ *+' conftest.err >conftest.er1
Chris@10 2274 cat conftest.er1 >&5
Chris@10 2275 mv -f conftest.er1 conftest.err
Chris@10 2276 fi
Chris@10 2277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 2278 test $ac_status = 0; } && {
Chris@10 2279 test -z "$ac_f77_werror_flag" ||
Chris@10 2280 test ! -s conftest.err
Chris@10 2281 } && test -s conftest.$ac_objext; then :
Chris@10 2282 ac_retval=0
Chris@10 2283 else
Chris@10 2284 $as_echo "$as_me: failed program was:" >&5
Chris@10 2285 sed 's/^/| /' conftest.$ac_ext >&5
Chris@10 2286
Chris@10 2287 ac_retval=1
Chris@10 2288 fi
Chris@10 2289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@10 2290 as_fn_set_status $ac_retval
Chris@10 2291
Chris@10 2292 } # ac_fn_f77_try_compile
Chris@10 2293
Chris@10 2294 # ac_fn_f77_try_link LINENO
Chris@10 2295 # -------------------------
Chris@10 2296 # Try to link conftest.$ac_ext, and return whether this succeeded.
Chris@10 2297 ac_fn_f77_try_link ()
Chris@10 2298 {
Chris@10 2299 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@10 2300 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@10 2301 if { { ac_try="$ac_link"
Chris@10 2302 case "(($ac_try" in
Chris@10 2303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@10 2304 *) ac_try_echo=$ac_try;;
Chris@10 2305 esac
Chris@10 2306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@10 2307 $as_echo "$ac_try_echo"; } >&5
Chris@10 2308 (eval "$ac_link") 2>conftest.err
Chris@10 2309 ac_status=$?
Chris@10 2310 if test -s conftest.err; then
Chris@10 2311 grep -v '^ *+' conftest.err >conftest.er1
Chris@10 2312 cat conftest.er1 >&5
Chris@10 2313 mv -f conftest.er1 conftest.err
Chris@10 2314 fi
Chris@10 2315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 2316 test $ac_status = 0; } && {
Chris@10 2317 test -z "$ac_f77_werror_flag" ||
Chris@10 2318 test ! -s conftest.err
Chris@10 2319 } && test -s conftest$ac_exeext && {
Chris@10 2320 test "$cross_compiling" = yes ||
Chris@10 2321 test -x conftest$ac_exeext
Chris@10 2322 }; then :
Chris@10 2323 ac_retval=0
Chris@10 2324 else
Chris@10 2325 $as_echo "$as_me: failed program was:" >&5
Chris@10 2326 sed 's/^/| /' conftest.$ac_ext >&5
Chris@10 2327
Chris@10 2328 ac_retval=1
Chris@10 2329 fi
Chris@10 2330 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
Chris@10 2331 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
Chris@10 2332 # interfere with the next link command; also delete a directory that is
Chris@10 2333 # left behind by Apple's compiler. We do this before executing the actions.
Chris@10 2334 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris@10 2335 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@10 2336 as_fn_set_status $ac_retval
Chris@10 2337
Chris@10 2338 } # ac_fn_f77_try_link
Chris@10 2339 cat >config.log <<_ACEOF
Chris@10 2340 This file contains any messages produced by compilers while
Chris@10 2341 running configure, to aid debugging if configure makes a mistake.
Chris@10 2342
Chris@10 2343 It was created by fftw $as_me 3.3.3, which was
Chris@10 2344 generated by GNU Autoconf 2.69. Invocation command line was
Chris@10 2345
Chris@10 2346 $ $0 $@
Chris@10 2347
Chris@10 2348 _ACEOF
Chris@10 2349 exec 5>>config.log
Chris@10 2350 {
Chris@10 2351 cat <<_ASUNAME
Chris@10 2352 ## --------- ##
Chris@10 2353 ## Platform. ##
Chris@10 2354 ## --------- ##
Chris@10 2355
Chris@10 2356 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@10 2357 uname -m = `(uname -m) 2>/dev/null || echo unknown`
Chris@10 2358 uname -r = `(uname -r) 2>/dev/null || echo unknown`
Chris@10 2359 uname -s = `(uname -s) 2>/dev/null || echo unknown`
Chris@10 2360 uname -v = `(uname -v) 2>/dev/null || echo unknown`
Chris@10 2361
Chris@10 2362 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
Chris@10 2363 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
Chris@10 2364
Chris@10 2365 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
Chris@10 2366 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
Chris@10 2367 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Chris@10 2368 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Chris@10 2369 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
Chris@10 2370 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
Chris@10 2371 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
Chris@10 2372
Chris@10 2373 _ASUNAME
Chris@10 2374
Chris@10 2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 2376 for as_dir in $PATH
Chris@10 2377 do
Chris@10 2378 IFS=$as_save_IFS
Chris@10 2379 test -z "$as_dir" && as_dir=.
Chris@10 2380 $as_echo "PATH: $as_dir"
Chris@10 2381 done
Chris@10 2382 IFS=$as_save_IFS
Chris@10 2383
Chris@10 2384 } >&5
Chris@10 2385
Chris@10 2386 cat >&5 <<_ACEOF
Chris@10 2387
Chris@10 2388
Chris@10 2389 ## ----------- ##
Chris@10 2390 ## Core tests. ##
Chris@10 2391 ## ----------- ##
Chris@10 2392
Chris@10 2393 _ACEOF
Chris@10 2394
Chris@10 2395
Chris@10 2396 # Keep a trace of the command line.
Chris@10 2397 # Strip out --no-create and --no-recursion so they do not pile up.
Chris@10 2398 # Strip out --silent because we don't want to record it for future runs.
Chris@10 2399 # Also quote any args containing shell meta-characters.
Chris@10 2400 # Make two passes to allow for proper duplicate-argument suppression.
Chris@10 2401 ac_configure_args=
Chris@10 2402 ac_configure_args0=
Chris@10 2403 ac_configure_args1=
Chris@10 2404 ac_must_keep_next=false
Chris@10 2405 for ac_pass in 1 2
Chris@10 2406 do
Chris@10 2407 for ac_arg
Chris@10 2408 do
Chris@10 2409 case $ac_arg in
Chris@10 2410 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
Chris@10 2411 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@10 2412 | -silent | --silent | --silen | --sile | --sil)
Chris@10 2413 continue ;;
Chris@10 2414 *\'*)
Chris@10 2415 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@10 2416 esac
Chris@10 2417 case $ac_pass in
Chris@10 2418 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Chris@10 2419 2)
Chris@10 2420 as_fn_append ac_configure_args1 " '$ac_arg'"
Chris@10 2421 if test $ac_must_keep_next = true; then
Chris@10 2422 ac_must_keep_next=false # Got value, back to normal.
Chris@10 2423 else
Chris@10 2424 case $ac_arg in
Chris@10 2425 *=* | --config-cache | -C | -disable-* | --disable-* \
Chris@10 2426 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
Chris@10 2427 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
Chris@10 2428 | -with-* | --with-* | -without-* | --without-* | --x)
Chris@10 2429 case "$ac_configure_args0 " in
Chris@10 2430 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
Chris@10 2431 esac
Chris@10 2432 ;;
Chris@10 2433 -* ) ac_must_keep_next=true ;;
Chris@10 2434 esac
Chris@10 2435 fi
Chris@10 2436 as_fn_append ac_configure_args " '$ac_arg'"
Chris@10 2437 ;;
Chris@10 2438 esac
Chris@10 2439 done
Chris@10 2440 done
Chris@10 2441 { ac_configure_args0=; unset ac_configure_args0;}
Chris@10 2442 { ac_configure_args1=; unset ac_configure_args1;}
Chris@10 2443
Chris@10 2444 # When interrupted or exit'd, cleanup temporary files, and complete
Chris@10 2445 # config.log. We remove comments because anyway the quotes in there
Chris@10 2446 # would cause problems or look ugly.
Chris@10 2447 # WARNING: Use '\'' to represent an apostrophe within the trap.
Chris@10 2448 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Chris@10 2449 trap 'exit_status=$?
Chris@10 2450 # Save into config.log some information that might help in debugging.
Chris@10 2451 {
Chris@10 2452 echo
Chris@10 2453
Chris@10 2454 $as_echo "## ---------------- ##
Chris@10 2455 ## Cache variables. ##
Chris@10 2456 ## ---------------- ##"
Chris@10 2457 echo
Chris@10 2458 # The following way of writing the cache mishandles newlines in values,
Chris@10 2459 (
Chris@10 2460 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
Chris@10 2461 eval ac_val=\$$ac_var
Chris@10 2462 case $ac_val in #(
Chris@10 2463 *${as_nl}*)
Chris@10 2464 case $ac_var in #(
Chris@10 2465 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Chris@10 2466 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Chris@10 2467 esac
Chris@10 2468 case $ac_var in #(
Chris@10 2469 _ | IFS | as_nl) ;; #(
Chris@10 2470 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Chris@10 2471 *) { eval $ac_var=; unset $ac_var;} ;;
Chris@10 2472 esac ;;
Chris@10 2473 esac
Chris@10 2474 done
Chris@10 2475 (set) 2>&1 |
Chris@10 2476 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
Chris@10 2477 *${as_nl}ac_space=\ *)
Chris@10 2478 sed -n \
Chris@10 2479 "s/'\''/'\''\\\\'\'''\''/g;
Chris@10 2480 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
Chris@10 2481 ;; #(
Chris@10 2482 *)
Chris@10 2483 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Chris@10 2484 ;;
Chris@10 2485 esac |
Chris@10 2486 sort
Chris@10 2487 )
Chris@10 2488 echo
Chris@10 2489
Chris@10 2490 $as_echo "## ----------------- ##
Chris@10 2491 ## Output variables. ##
Chris@10 2492 ## ----------------- ##"
Chris@10 2493 echo
Chris@10 2494 for ac_var in $ac_subst_vars
Chris@10 2495 do
Chris@10 2496 eval ac_val=\$$ac_var
Chris@10 2497 case $ac_val in
Chris@10 2498 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Chris@10 2499 esac
Chris@10 2500 $as_echo "$ac_var='\''$ac_val'\''"
Chris@10 2501 done | sort
Chris@10 2502 echo
Chris@10 2503
Chris@10 2504 if test -n "$ac_subst_files"; then
Chris@10 2505 $as_echo "## ------------------- ##
Chris@10 2506 ## File substitutions. ##
Chris@10 2507 ## ------------------- ##"
Chris@10 2508 echo
Chris@10 2509 for ac_var in $ac_subst_files
Chris@10 2510 do
Chris@10 2511 eval ac_val=\$$ac_var
Chris@10 2512 case $ac_val in
Chris@10 2513 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Chris@10 2514 esac
Chris@10 2515 $as_echo "$ac_var='\''$ac_val'\''"
Chris@10 2516 done | sort
Chris@10 2517 echo
Chris@10 2518 fi
Chris@10 2519
Chris@10 2520 if test -s confdefs.h; then
Chris@10 2521 $as_echo "## ----------- ##
Chris@10 2522 ## confdefs.h. ##
Chris@10 2523 ## ----------- ##"
Chris@10 2524 echo
Chris@10 2525 cat confdefs.h
Chris@10 2526 echo
Chris@10 2527 fi
Chris@10 2528 test "$ac_signal" != 0 &&
Chris@10 2529 $as_echo "$as_me: caught signal $ac_signal"
Chris@10 2530 $as_echo "$as_me: exit $exit_status"
Chris@10 2531 } >&5
Chris@10 2532 rm -f core *.core core.conftest.* &&
Chris@10 2533 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Chris@10 2534 exit $exit_status
Chris@10 2535 ' 0
Chris@10 2536 for ac_signal in 1 2 13 15; do
Chris@10 2537 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Chris@10 2538 done
Chris@10 2539 ac_signal=0
Chris@10 2540
Chris@10 2541 # confdefs.h avoids OS command line length limits that DEFS can exceed.
Chris@10 2542 rm -f -r conftest* confdefs.h
Chris@10 2543
Chris@10 2544 $as_echo "/* confdefs.h */" > confdefs.h
Chris@10 2545
Chris@10 2546 # Predefined preprocessor variables.
Chris@10 2547
Chris@10 2548 cat >>confdefs.h <<_ACEOF
Chris@10 2549 #define PACKAGE_NAME "$PACKAGE_NAME"
Chris@10 2550 _ACEOF
Chris@10 2551
Chris@10 2552 cat >>confdefs.h <<_ACEOF
Chris@10 2553 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
Chris@10 2554 _ACEOF
Chris@10 2555
Chris@10 2556 cat >>confdefs.h <<_ACEOF
Chris@10 2557 #define PACKAGE_VERSION "$PACKAGE_VERSION"
Chris@10 2558 _ACEOF
Chris@10 2559
Chris@10 2560 cat >>confdefs.h <<_ACEOF
Chris@10 2561 #define PACKAGE_STRING "$PACKAGE_STRING"
Chris@10 2562 _ACEOF
Chris@10 2563
Chris@10 2564 cat >>confdefs.h <<_ACEOF
Chris@10 2565 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
Chris@10 2566 _ACEOF
Chris@10 2567
Chris@10 2568 cat >>confdefs.h <<_ACEOF
Chris@10 2569 #define PACKAGE_URL "$PACKAGE_URL"
Chris@10 2570 _ACEOF
Chris@10 2571
Chris@10 2572
Chris@10 2573 # Let the site file select an alternate cache file if it wants to.
Chris@10 2574 # Prefer an explicitly selected file to automatically selected ones.
Chris@10 2575 ac_site_file1=NONE
Chris@10 2576 ac_site_file2=NONE
Chris@10 2577 if test -n "$CONFIG_SITE"; then
Chris@10 2578 # We do not want a PATH search for config.site.
Chris@10 2579 case $CONFIG_SITE in #((
Chris@10 2580 -*) ac_site_file1=./$CONFIG_SITE;;
Chris@10 2581 */*) ac_site_file1=$CONFIG_SITE;;
Chris@10 2582 *) ac_site_file1=./$CONFIG_SITE;;
Chris@10 2583 esac
Chris@10 2584 elif test "x$prefix" != xNONE; then
Chris@10 2585 ac_site_file1=$prefix/share/config.site
Chris@10 2586 ac_site_file2=$prefix/etc/config.site
Chris@10 2587 else
Chris@10 2588 ac_site_file1=$ac_default_prefix/share/config.site
Chris@10 2589 ac_site_file2=$ac_default_prefix/etc/config.site
Chris@10 2590 fi
Chris@10 2591 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Chris@10 2592 do
Chris@10 2593 test "x$ac_site_file" = xNONE && continue
Chris@10 2594 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Chris@10 2595 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Chris@10 2596 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
Chris@10 2597 sed 's/^/| /' "$ac_site_file" >&5
Chris@10 2598 . "$ac_site_file" \
Chris@10 2599 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@10 2600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@10 2601 as_fn_error $? "failed to load site script $ac_site_file
Chris@10 2602 See \`config.log' for more details" "$LINENO" 5; }
Chris@10 2603 fi
Chris@10 2604 done
Chris@10 2605
Chris@10 2606 if test -r "$cache_file"; then
Chris@10 2607 # Some versions of bash will fail to source /dev/null (special files
Chris@10 2608 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
Chris@10 2609 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Chris@10 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Chris@10 2611 $as_echo "$as_me: loading cache $cache_file" >&6;}
Chris@10 2612 case $cache_file in
Chris@10 2613 [\\/]* | ?:[\\/]* ) . "$cache_file";;
Chris@10 2614 *) . "./$cache_file";;
Chris@10 2615 esac
Chris@10 2616 fi
Chris@10 2617 else
Chris@10 2618 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Chris@10 2619 $as_echo "$as_me: creating cache $cache_file" >&6;}
Chris@10 2620 >$cache_file
Chris@10 2621 fi
Chris@10 2622
Chris@10 2623 # Check that the precious variables saved in the cache have kept the same
Chris@10 2624 # value.
Chris@10 2625 ac_cache_corrupted=false
Chris@10 2626 for ac_var in $ac_precious_vars; do
Chris@10 2627 eval ac_old_set=\$ac_cv_env_${ac_var}_set
Chris@10 2628 eval ac_new_set=\$ac_env_${ac_var}_set
Chris@10 2629 eval ac_old_val=\$ac_cv_env_${ac_var}_value
Chris@10 2630 eval ac_new_val=\$ac_env_${ac_var}_value
Chris@10 2631 case $ac_old_set,$ac_new_set in
Chris@10 2632 set,)
Chris@10 2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Chris@10 2634 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Chris@10 2635 ac_cache_corrupted=: ;;
Chris@10 2636 ,set)
Chris@10 2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
Chris@10 2638 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Chris@10 2639 ac_cache_corrupted=: ;;
Chris@10 2640 ,);;
Chris@10 2641 *)
Chris@10 2642 if test "x$ac_old_val" != "x$ac_new_val"; then
Chris@10 2643 # differences in whitespace do not lead to failure.
Chris@10 2644 ac_old_val_w=`echo x $ac_old_val`
Chris@10 2645 ac_new_val_w=`echo x $ac_new_val`
Chris@10 2646 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Chris@10 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Chris@10 2648 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Chris@10 2649 ac_cache_corrupted=:
Chris@10 2650 else
Chris@10 2651 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Chris@10 2652 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
Chris@10 2653 eval $ac_var=\$ac_old_val
Chris@10 2654 fi
Chris@10 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Chris@10 2656 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Chris@10 2657 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Chris@10 2658 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Chris@10 2659 fi;;
Chris@10 2660 esac
Chris@10 2661 # Pass precious variables to config.status.
Chris@10 2662 if test "$ac_new_set" = set; then
Chris@10 2663 case $ac_new_val in
Chris@10 2664 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@10 2665 *) ac_arg=$ac_var=$ac_new_val ;;
Chris@10 2666 esac
Chris@10 2667 case " $ac_configure_args " in
Chris@10 2668 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Chris@10 2669 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Chris@10 2670 esac
Chris@10 2671 fi
Chris@10 2672 done
Chris@10 2673 if $ac_cache_corrupted; then
Chris@10 2674 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@10 2675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@10 2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Chris@10 2677 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Chris@10 2678 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Chris@10 2679 fi
Chris@10 2680 ## -------------------- ##
Chris@10 2681 ## Main body of script. ##
Chris@10 2682 ## -------------------- ##
Chris@10 2683
Chris@10 2684 ac_ext=c
Chris@10 2685 ac_cpp='$CPP $CPPFLAGS'
Chris@10 2686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@10 2687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 2688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@10 2689
Chris@10 2690
Chris@10 2691
Chris@10 2692 # fftw-3.1.x was 4:X:1
Chris@10 2693 # fftw-3.2.x was 5:X:2
Chris@10 2694 # fftw-3.3.x was 6:X:3
Chris@10 2695 SHARED_VERSION_INFO="6:2:3" # CURRENT:REVISION:AGE
Chris@10 2696
Chris@10 2697 am__api_version='1.11'
Chris@10 2698
Chris@10 2699 ac_aux_dir=
Chris@10 2700 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Chris@10 2701 if test -f "$ac_dir/install-sh"; then
Chris@10 2702 ac_aux_dir=$ac_dir
Chris@10 2703 ac_install_sh="$ac_aux_dir/install-sh -c"
Chris@10 2704 break
Chris@10 2705 elif test -f "$ac_dir/install.sh"; then
Chris@10 2706 ac_aux_dir=$ac_dir
Chris@10 2707 ac_install_sh="$ac_aux_dir/install.sh -c"
Chris@10 2708 break
Chris@10 2709 elif test -f "$ac_dir/shtool"; then
Chris@10 2710 ac_aux_dir=$ac_dir
Chris@10 2711 ac_install_sh="$ac_aux_dir/shtool install -c"
Chris@10 2712 break
Chris@10 2713 fi
Chris@10 2714 done
Chris@10 2715 if test -z "$ac_aux_dir"; then
Chris@10 2716 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Chris@10 2717 fi
Chris@10 2718
Chris@10 2719 # These three variables are undocumented and unsupported,
Chris@10 2720 # and are intended to be withdrawn in a future Autoconf release.
Chris@10 2721 # They can cause serious problems if a builder's source tree is in a directory
Chris@10 2722 # whose full name contains unusual characters.
Chris@10 2723 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
Chris@10 2724 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
Chris@10 2725 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
Chris@10 2726
Chris@10 2727
Chris@10 2728 # Find a good install program. We prefer a C program (faster),
Chris@10 2729 # so one script is as good as another. But avoid the broken or
Chris@10 2730 # incompatible versions:
Chris@10 2731 # SysV /etc/install, /usr/sbin/install
Chris@10 2732 # SunOS /usr/etc/install
Chris@10 2733 # IRIX /sbin/install
Chris@10 2734 # AIX /bin/install
Chris@10 2735 # AmigaOS /C/install, which installs bootblocks on floppy discs
Chris@10 2736 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Chris@10 2737 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
Chris@10 2738 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Chris@10 2739 # OS/2's system install, which has a completely different semantic
Chris@10 2740 # ./install, which can be erroneously created by make from ./install.sh.
Chris@10 2741 # Reject install programs that cannot install multiple files.
Chris@10 2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Chris@10 2743 $as_echo_n "checking for a BSD-compatible install... " >&6; }
Chris@10 2744 if test -z "$INSTALL"; then
Chris@10 2745 if ${ac_cv_path_install+:} false; then :
Chris@10 2746 $as_echo_n "(cached) " >&6
Chris@10 2747 else
Chris@10 2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 2749 for as_dir in $PATH
Chris@10 2750 do
Chris@10 2751 IFS=$as_save_IFS
Chris@10 2752 test -z "$as_dir" && as_dir=.
Chris@10 2753 # Account for people who put trailing slashes in PATH elements.
Chris@10 2754 case $as_dir/ in #((
Chris@10 2755 ./ | .// | /[cC]/* | \
Chris@10 2756 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Chris@10 2757 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Chris@10 2758 /usr/ucb/* ) ;;
Chris@10 2759 *)
Chris@10 2760 # OSF1 and SCO ODT 3.0 have their own names for install.
Chris@10 2761 # Don't use installbsd from OSF since it installs stuff as root
Chris@10 2762 # by default.
Chris@10 2763 for ac_prog in ginstall scoinst install; do
Chris@10 2764 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 2765 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Chris@10 2766 if test $ac_prog = install &&
Chris@10 2767 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Chris@10 2768 # AIX install. It has an incompatible calling convention.
Chris@10 2769 :
Chris@10 2770 elif test $ac_prog = install &&
Chris@10 2771 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Chris@10 2772 # program-specific install script used by HP pwplus--don't use.
Chris@10 2773 :
Chris@10 2774 else
Chris@10 2775 rm -rf conftest.one conftest.two conftest.dir
Chris@10 2776 echo one > conftest.one
Chris@10 2777 echo two > conftest.two
Chris@10 2778 mkdir conftest.dir
Chris@10 2779 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
Chris@10 2780 test -s conftest.one && test -s conftest.two &&
Chris@10 2781 test -s conftest.dir/conftest.one &&
Chris@10 2782 test -s conftest.dir/conftest.two
Chris@10 2783 then
Chris@10 2784 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
Chris@10 2785 break 3
Chris@10 2786 fi
Chris@10 2787 fi
Chris@10 2788 fi
Chris@10 2789 done
Chris@10 2790 done
Chris@10 2791 ;;
Chris@10 2792 esac
Chris@10 2793
Chris@10 2794 done
Chris@10 2795 IFS=$as_save_IFS
Chris@10 2796
Chris@10 2797 rm -rf conftest.one conftest.two conftest.dir
Chris@10 2798
Chris@10 2799 fi
Chris@10 2800 if test "${ac_cv_path_install+set}" = set; then
Chris@10 2801 INSTALL=$ac_cv_path_install
Chris@10 2802 else
Chris@10 2803 # As a last resort, use the slow shell script. Don't cache a
Chris@10 2804 # value for INSTALL within a source directory, because that will
Chris@10 2805 # break other packages using the cache if that directory is
Chris@10 2806 # removed, or if the value is a relative name.
Chris@10 2807 INSTALL=$ac_install_sh
Chris@10 2808 fi
Chris@10 2809 fi
Chris@10 2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Chris@10 2811 $as_echo "$INSTALL" >&6; }
Chris@10 2812
Chris@10 2813 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
Chris@10 2814 # It thinks the first close brace ends the variable substitution.
Chris@10 2815 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Chris@10 2816
Chris@10 2817 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Chris@10 2818
Chris@10 2819 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Chris@10 2820
Chris@10 2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
Chris@10 2822 $as_echo_n "checking whether build environment is sane... " >&6; }
Chris@10 2823 # Just in case
Chris@10 2824 sleep 1
Chris@10 2825 echo timestamp > conftest.file
Chris@10 2826 # Reject unsafe characters in $srcdir or the absolute working directory
Chris@10 2827 # name. Accept space and tab only in the latter.
Chris@10 2828 am_lf='
Chris@10 2829 '
Chris@10 2830 case `pwd` in
Chris@10 2831 *[\\\"\#\$\&\'\`$am_lf]*)
Chris@10 2832 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
Chris@10 2833 esac
Chris@10 2834 case $srcdir in
Chris@10 2835 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Chris@10 2836 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
Chris@10 2837 esac
Chris@10 2838
Chris@10 2839 # Do `set' in a subshell so we don't clobber the current shell's
Chris@10 2840 # arguments. Must try -L first in case configure is actually a
Chris@10 2841 # symlink; some systems play weird games with the mod time of symlinks
Chris@10 2842 # (eg FreeBSD returns the mod time of the symlink's containing
Chris@10 2843 # directory).
Chris@10 2844 if (
Chris@10 2845 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Chris@10 2846 if test "$*" = "X"; then
Chris@10 2847 # -L didn't work.
Chris@10 2848 set X `ls -t "$srcdir/configure" conftest.file`
Chris@10 2849 fi
Chris@10 2850 rm -f conftest.file
Chris@10 2851 if test "$*" != "X $srcdir/configure conftest.file" \
Chris@10 2852 && test "$*" != "X conftest.file $srcdir/configure"; then
Chris@10 2853
Chris@10 2854 # If neither matched, then we have a broken ls. This can happen
Chris@10 2855 # if, for instance, CONFIG_SHELL is bash and it inherits a
Chris@10 2856 # broken ls alias from the environment. This has actually
Chris@10 2857 # happened. Such a system could not be considered "sane".
Chris@10 2858 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
Chris@10 2859 alias in your environment" "$LINENO" 5
Chris@10 2860 fi
Chris@10 2861
Chris@10 2862 test "$2" = conftest.file
Chris@10 2863 )
Chris@10 2864 then
Chris@10 2865 # Ok.
Chris@10 2866 :
Chris@10 2867 else
Chris@10 2868 as_fn_error $? "newly created file is older than distributed files!
Chris@10 2869 Check your system clock" "$LINENO" 5
Chris@10 2870 fi
Chris@10 2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@10 2872 $as_echo "yes" >&6; }
Chris@10 2873 test "$program_prefix" != NONE &&
Chris@10 2874 program_transform_name="s&^&$program_prefix&;$program_transform_name"
Chris@10 2875 # Use a double $ so make ignores it.
Chris@10 2876 test "$program_suffix" != NONE &&
Chris@10 2877 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Chris@10 2878 # Double any \ or $.
Chris@10 2879 # By default was `s,x,x', remove it if useless.
Chris@10 2880 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
Chris@10 2881 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Chris@10 2882
Chris@10 2883 # expand $ac_aux_dir to an absolute path
Chris@10 2884 am_aux_dir=`cd $ac_aux_dir && pwd`
Chris@10 2885
Chris@10 2886 if test x"${MISSING+set}" != xset; then
Chris@10 2887 case $am_aux_dir in
Chris@10 2888 *\ * | *\ *)
Chris@10 2889 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
Chris@10 2890 *)
Chris@10 2891 MISSING="\${SHELL} $am_aux_dir/missing" ;;
Chris@10 2892 esac
Chris@10 2893 fi
Chris@10 2894 # Use eval to expand $SHELL
Chris@10 2895 if eval "$MISSING --run true"; then
Chris@10 2896 am_missing_run="$MISSING --run "
Chris@10 2897 else
Chris@10 2898 am_missing_run=
Chris@10 2899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
Chris@10 2900 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
Chris@10 2901 fi
Chris@10 2902
Chris@10 2903 if test x"${install_sh}" != xset; then
Chris@10 2904 case $am_aux_dir in
Chris@10 2905 *\ * | *\ *)
Chris@10 2906 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
Chris@10 2907 *)
Chris@10 2908 install_sh="\${SHELL} $am_aux_dir/install-sh"
Chris@10 2909 esac
Chris@10 2910 fi
Chris@10 2911
Chris@10 2912 # Installed binaries are usually stripped using `strip' when the user
Chris@10 2913 # run `make install-strip'. However `strip' might not be the right
Chris@10 2914 # tool to use in cross-compilation environments, therefore Automake
Chris@10 2915 # will honor the `STRIP' environment variable to overrule this program.
Chris@10 2916 if test "$cross_compiling" != no; then
Chris@10 2917 if test -n "$ac_tool_prefix"; then
Chris@10 2918 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
Chris@10 2919 set dummy ${ac_tool_prefix}strip; ac_word=$2
Chris@10 2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 2921 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 2922 if ${ac_cv_prog_STRIP+:} false; then :
Chris@10 2923 $as_echo_n "(cached) " >&6
Chris@10 2924 else
Chris@10 2925 if test -n "$STRIP"; then
Chris@10 2926 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
Chris@10 2927 else
Chris@10 2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 2929 for as_dir in $PATH
Chris@10 2930 do
Chris@10 2931 IFS=$as_save_IFS
Chris@10 2932 test -z "$as_dir" && as_dir=.
Chris@10 2933 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 2934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 2935 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Chris@10 2936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 2937 break 2
Chris@10 2938 fi
Chris@10 2939 done
Chris@10 2940 done
Chris@10 2941 IFS=$as_save_IFS
Chris@10 2942
Chris@10 2943 fi
Chris@10 2944 fi
Chris@10 2945 STRIP=$ac_cv_prog_STRIP
Chris@10 2946 if test -n "$STRIP"; then
Chris@10 2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Chris@10 2948 $as_echo "$STRIP" >&6; }
Chris@10 2949 else
Chris@10 2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 2951 $as_echo "no" >&6; }
Chris@10 2952 fi
Chris@10 2953
Chris@10 2954
Chris@10 2955 fi
Chris@10 2956 if test -z "$ac_cv_prog_STRIP"; then
Chris@10 2957 ac_ct_STRIP=$STRIP
Chris@10 2958 # Extract the first word of "strip", so it can be a program name with args.
Chris@10 2959 set dummy strip; ac_word=$2
Chris@10 2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 2961 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 2962 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Chris@10 2963 $as_echo_n "(cached) " >&6
Chris@10 2964 else
Chris@10 2965 if test -n "$ac_ct_STRIP"; then
Chris@10 2966 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Chris@10 2967 else
Chris@10 2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 2969 for as_dir in $PATH
Chris@10 2970 do
Chris@10 2971 IFS=$as_save_IFS
Chris@10 2972 test -z "$as_dir" && as_dir=.
Chris@10 2973 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 2974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 2975 ac_cv_prog_ac_ct_STRIP="strip"
Chris@10 2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 2977 break 2
Chris@10 2978 fi
Chris@10 2979 done
Chris@10 2980 done
Chris@10 2981 IFS=$as_save_IFS
Chris@10 2982
Chris@10 2983 fi
Chris@10 2984 fi
Chris@10 2985 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
Chris@10 2986 if test -n "$ac_ct_STRIP"; then
Chris@10 2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Chris@10 2988 $as_echo "$ac_ct_STRIP" >&6; }
Chris@10 2989 else
Chris@10 2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 2991 $as_echo "no" >&6; }
Chris@10 2992 fi
Chris@10 2993
Chris@10 2994 if test "x$ac_ct_STRIP" = x; then
Chris@10 2995 STRIP=":"
Chris@10 2996 else
Chris@10 2997 case $cross_compiling:$ac_tool_warned in
Chris@10 2998 yes:)
Chris@10 2999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@10 3000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@10 3001 ac_tool_warned=yes ;;
Chris@10 3002 esac
Chris@10 3003 STRIP=$ac_ct_STRIP
Chris@10 3004 fi
Chris@10 3005 else
Chris@10 3006 STRIP="$ac_cv_prog_STRIP"
Chris@10 3007 fi
Chris@10 3008
Chris@10 3009 fi
Chris@10 3010 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
Chris@10 3011
Chris@10 3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
Chris@10 3013 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
Chris@10 3014 if test -z "$MKDIR_P"; then
Chris@10 3015 if ${ac_cv_path_mkdir+:} false; then :
Chris@10 3016 $as_echo_n "(cached) " >&6
Chris@10 3017 else
Chris@10 3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 3019 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
Chris@10 3020 do
Chris@10 3021 IFS=$as_save_IFS
Chris@10 3022 test -z "$as_dir" && as_dir=.
Chris@10 3023 for ac_prog in mkdir gmkdir; do
Chris@10 3024 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 3025 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Chris@10 3026 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
Chris@10 3027 'mkdir (GNU coreutils) '* | \
Chris@10 3028 'mkdir (coreutils) '* | \
Chris@10 3029 'mkdir (fileutils) '4.1*)
Chris@10 3030 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
Chris@10 3031 break 3;;
Chris@10 3032 esac
Chris@10 3033 done
Chris@10 3034 done
Chris@10 3035 done
Chris@10 3036 IFS=$as_save_IFS
Chris@10 3037
Chris@10 3038 fi
Chris@10 3039
Chris@10 3040 test -d ./--version && rmdir ./--version
Chris@10 3041 if test "${ac_cv_path_mkdir+set}" = set; then
Chris@10 3042 MKDIR_P="$ac_cv_path_mkdir -p"
Chris@10 3043 else
Chris@10 3044 # As a last resort, use the slow shell script. Don't cache a
Chris@10 3045 # value for MKDIR_P within a source directory, because that will
Chris@10 3046 # break other packages using the cache if that directory is
Chris@10 3047 # removed, or if the value is a relative name.
Chris@10 3048 MKDIR_P="$ac_install_sh -d"
Chris@10 3049 fi
Chris@10 3050 fi
Chris@10 3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
Chris@10 3052 $as_echo "$MKDIR_P" >&6; }
Chris@10 3053
Chris@10 3054 mkdir_p="$MKDIR_P"
Chris@10 3055 case $mkdir_p in
Chris@10 3056 [\\/$]* | ?:[\\/]*) ;;
Chris@10 3057 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
Chris@10 3058 esac
Chris@10 3059
Chris@10 3060 for ac_prog in gawk mawk nawk awk
Chris@10 3061 do
Chris@10 3062 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@10 3063 set dummy $ac_prog; ac_word=$2
Chris@10 3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 3065 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 3066 if ${ac_cv_prog_AWK+:} false; then :
Chris@10 3067 $as_echo_n "(cached) " >&6
Chris@10 3068 else
Chris@10 3069 if test -n "$AWK"; then
Chris@10 3070 ac_cv_prog_AWK="$AWK" # Let the user override the test.
Chris@10 3071 else
Chris@10 3072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 3073 for as_dir in $PATH
Chris@10 3074 do
Chris@10 3075 IFS=$as_save_IFS
Chris@10 3076 test -z "$as_dir" && as_dir=.
Chris@10 3077 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 3078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 3079 ac_cv_prog_AWK="$ac_prog"
Chris@10 3080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 3081 break 2
Chris@10 3082 fi
Chris@10 3083 done
Chris@10 3084 done
Chris@10 3085 IFS=$as_save_IFS
Chris@10 3086
Chris@10 3087 fi
Chris@10 3088 fi
Chris@10 3089 AWK=$ac_cv_prog_AWK
Chris@10 3090 if test -n "$AWK"; then
Chris@10 3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Chris@10 3092 $as_echo "$AWK" >&6; }
Chris@10 3093 else
Chris@10 3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 3095 $as_echo "no" >&6; }
Chris@10 3096 fi
Chris@10 3097
Chris@10 3098
Chris@10 3099 test -n "$AWK" && break
Chris@10 3100 done
Chris@10 3101
Chris@10 3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Chris@10 3103 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
Chris@10 3104 set x ${MAKE-make}
Chris@10 3105 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Chris@10 3106 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Chris@10 3107 $as_echo_n "(cached) " >&6
Chris@10 3108 else
Chris@10 3109 cat >conftest.make <<\_ACEOF
Chris@10 3110 SHELL = /bin/sh
Chris@10 3111 all:
Chris@10 3112 @echo '@@@%%%=$(MAKE)=@@@%%%'
Chris@10 3113 _ACEOF
Chris@10 3114 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Chris@10 3115 case `${MAKE-make} -f conftest.make 2>/dev/null` in
Chris@10 3116 *@@@%%%=?*=@@@%%%*)
Chris@10 3117 eval ac_cv_prog_make_${ac_make}_set=yes;;
Chris@10 3118 *)
Chris@10 3119 eval ac_cv_prog_make_${ac_make}_set=no;;
Chris@10 3120 esac
Chris@10 3121 rm -f conftest.make
Chris@10 3122 fi
Chris@10 3123 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Chris@10 3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@10 3125 $as_echo "yes" >&6; }
Chris@10 3126 SET_MAKE=
Chris@10 3127 else
Chris@10 3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 3129 $as_echo "no" >&6; }
Chris@10 3130 SET_MAKE="MAKE=${MAKE-make}"
Chris@10 3131 fi
Chris@10 3132
Chris@10 3133 rm -rf .tst 2>/dev/null
Chris@10 3134 mkdir .tst 2>/dev/null
Chris@10 3135 if test -d .tst; then
Chris@10 3136 am__leading_dot=.
Chris@10 3137 else
Chris@10 3138 am__leading_dot=_
Chris@10 3139 fi
Chris@10 3140 rmdir .tst 2>/dev/null
Chris@10 3141
Chris@10 3142 if test "`cd $srcdir && pwd`" != "`pwd`"; then
Chris@10 3143 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
Chris@10 3144 # is not polluted with repeated "-I."
Chris@10 3145 am__isrc=' -I$(srcdir)'
Chris@10 3146 # test to see if srcdir already configured
Chris@10 3147 if test -f $srcdir/config.status; then
Chris@10 3148 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Chris@10 3149 fi
Chris@10 3150 fi
Chris@10 3151
Chris@10 3152 # test whether we have cygpath
Chris@10 3153 if test -z "$CYGPATH_W"; then
Chris@10 3154 if (cygpath --version) >/dev/null 2>/dev/null; then
Chris@10 3155 CYGPATH_W='cygpath -w'
Chris@10 3156 else
Chris@10 3157 CYGPATH_W=echo
Chris@10 3158 fi
Chris@10 3159 fi
Chris@10 3160
Chris@10 3161
Chris@10 3162 # Define the identity of the package.
Chris@10 3163 PACKAGE='fftw'
Chris@10 3164 VERSION='3.3.3'
Chris@10 3165
Chris@10 3166
Chris@10 3167 cat >>confdefs.h <<_ACEOF
Chris@10 3168 #define PACKAGE "$PACKAGE"
Chris@10 3169 _ACEOF
Chris@10 3170
Chris@10 3171
Chris@10 3172 cat >>confdefs.h <<_ACEOF
Chris@10 3173 #define VERSION "$VERSION"
Chris@10 3174 _ACEOF
Chris@10 3175
Chris@10 3176 # Some tools Automake needs.
Chris@10 3177
Chris@10 3178 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
Chris@10 3179
Chris@10 3180
Chris@10 3181 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
Chris@10 3182
Chris@10 3183
Chris@10 3184 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
Chris@10 3185
Chris@10 3186
Chris@10 3187 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
Chris@10 3188
Chris@10 3189
Chris@10 3190 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
Chris@10 3191
Chris@10 3192 # We need awk for the "check" target. The system "awk" is bad on
Chris@10 3193 # some platforms.
Chris@10 3194 # Always define AMTAR for backward compatibility. Yes, it's still used
Chris@10 3195 # in the wild :-( We should find a proper way to deprecate it ...
Chris@10 3196 AMTAR='$${TAR-tar}'
Chris@10 3197
Chris@10 3198 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
Chris@10 3199
Chris@10 3200
Chris@10 3201
Chris@10 3202
Chris@10 3203
Chris@10 3204 ac_config_headers="$ac_config_headers config.h"
Chris@10 3205
Chris@10 3206
Chris@10 3207
Chris@10 3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
Chris@10 3209 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
Chris@10 3210 # Check whether --enable-maintainer-mode was given.
Chris@10 3211 if test "${enable_maintainer_mode+set}" = set; then :
Chris@10 3212 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
Chris@10 3213 else
Chris@10 3214 USE_MAINTAINER_MODE=no
Chris@10 3215 fi
Chris@10 3216
Chris@10 3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
Chris@10 3218 $as_echo "$USE_MAINTAINER_MODE" >&6; }
Chris@10 3219 if test $USE_MAINTAINER_MODE = yes; then
Chris@10 3220 MAINTAINER_MODE_TRUE=
Chris@10 3221 MAINTAINER_MODE_FALSE='#'
Chris@10 3222 else
Chris@10 3223 MAINTAINER_MODE_TRUE='#'
Chris@10 3224 MAINTAINER_MODE_FALSE=
Chris@10 3225 fi
Chris@10 3226
Chris@10 3227 MAINT=$MAINTAINER_MODE_TRUE
Chris@10 3228
Chris@10 3229
Chris@10 3230
Chris@10 3231 # Check whether --enable-shared was given.
Chris@10 3232 if test "${enable_shared+set}" = set; then :
Chris@10 3233 enableval=$enable_shared; p=${PACKAGE-default}
Chris@10 3234 case $enableval in
Chris@10 3235 yes) enable_shared=yes ;;
Chris@10 3236 no) enable_shared=no ;;
Chris@10 3237 *)
Chris@10 3238 enable_shared=no
Chris@10 3239 # Look at the argument we got. We use all the common list separators.
Chris@10 3240 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
Chris@10 3241 for pkg in $enableval; do
Chris@10 3242 IFS="$lt_save_ifs"
Chris@10 3243 if test "X$pkg" = "X$p"; then
Chris@10 3244 enable_shared=yes
Chris@10 3245 fi
Chris@10 3246 done
Chris@10 3247 IFS="$lt_save_ifs"
Chris@10 3248 ;;
Chris@10 3249 esac
Chris@10 3250 else
Chris@10 3251 enable_shared=no
Chris@10 3252 fi
Chris@10 3253
Chris@10 3254
Chris@10 3255
Chris@10 3256
Chris@10 3257
Chris@10 3258
Chris@10 3259
Chris@10 3260
Chris@10 3261 # Make sure we can run config.sub.
Chris@10 3262 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Chris@10 3263 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Chris@10 3264
Chris@10 3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Chris@10 3266 $as_echo_n "checking build system type... " >&6; }
Chris@10 3267 if ${ac_cv_build+:} false; then :
Chris@10 3268 $as_echo_n "(cached) " >&6
Chris@10 3269 else
Chris@10 3270 ac_build_alias=$build_alias
Chris@10 3271 test "x$ac_build_alias" = x &&
Chris@10 3272 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
Chris@10 3273 test "x$ac_build_alias" = x &&
Chris@10 3274 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Chris@10 3275 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Chris@10 3276 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Chris@10 3277
Chris@10 3278 fi
Chris@10 3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Chris@10 3280 $as_echo "$ac_cv_build" >&6; }
Chris@10 3281 case $ac_cv_build in
Chris@10 3282 *-*-*) ;;
Chris@10 3283 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Chris@10 3284 esac
Chris@10 3285 build=$ac_cv_build
Chris@10 3286 ac_save_IFS=$IFS; IFS='-'
Chris@10 3287 set x $ac_cv_build
Chris@10 3288 shift
Chris@10 3289 build_cpu=$1
Chris@10 3290 build_vendor=$2
Chris@10 3291 shift; shift
Chris@10 3292 # Remember, the first character of IFS is used to create $*,
Chris@10 3293 # except with old shells:
Chris@10 3294 build_os=$*
Chris@10 3295 IFS=$ac_save_IFS
Chris@10 3296 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Chris@10 3297
Chris@10 3298
Chris@10 3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Chris@10 3300 $as_echo_n "checking host system type... " >&6; }
Chris@10 3301 if ${ac_cv_host+:} false; then :
Chris@10 3302 $as_echo_n "(cached) " >&6
Chris@10 3303 else
Chris@10 3304 if test "x$host_alias" = x; then
Chris@10 3305 ac_cv_host=$ac_cv_build
Chris@10 3306 else
Chris@10 3307 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Chris@10 3308 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Chris@10 3309 fi
Chris@10 3310
Chris@10 3311 fi
Chris@10 3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Chris@10 3313 $as_echo "$ac_cv_host" >&6; }
Chris@10 3314 case $ac_cv_host in
Chris@10 3315 *-*-*) ;;
Chris@10 3316 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Chris@10 3317 esac
Chris@10 3318 host=$ac_cv_host
Chris@10 3319 ac_save_IFS=$IFS; IFS='-'
Chris@10 3320 set x $ac_cv_host
Chris@10 3321 shift
Chris@10 3322 host_cpu=$1
Chris@10 3323 host_vendor=$2
Chris@10 3324 shift; shift
Chris@10 3325 # Remember, the first character of IFS is used to create $*,
Chris@10 3326 # except with old shells:
Chris@10 3327 host_os=$*
Chris@10 3328 IFS=$ac_save_IFS
Chris@10 3329 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Chris@10 3330
Chris@10 3331
Chris@10 3332
Chris@10 3333 case "${host_cpu}" in
Chris@10 3334 powerpc*) have_fma=yes;;
Chris@10 3335 ia64*) have_fma=yes;;
Chris@10 3336 hppa*) have_fma=yes;;
Chris@10 3337 mips64*) have_fma=yes;;
Chris@10 3338 *) have_fma=no;;
Chris@10 3339 esac
Chris@10 3340
Chris@10 3341 # Check whether --enable-fma was given.
Chris@10 3342 if test "${enable_fma+set}" = set; then :
Chris@10 3343 enableval=$enable_fma; have_fma=$enableval
Chris@10 3344 fi
Chris@10 3345
Chris@10 3346 if test "$have_fma"x = "yes"x; then
Chris@10 3347
Chris@10 3348 $as_echo "#define HAVE_FMA 1" >>confdefs.h
Chris@10 3349
Chris@10 3350 fi
Chris@10 3351
Chris@10 3352
Chris@10 3353 # Check whether --enable-debug was given.
Chris@10 3354 if test "${enable_debug+set}" = set; then :
Chris@10 3355 enableval=$enable_debug; ok=$enableval
Chris@10 3356 else
Chris@10 3357 ok=no
Chris@10 3358 fi
Chris@10 3359
Chris@10 3360 if test "$ok" = "yes"; then
Chris@10 3361
Chris@10 3362 $as_echo "#define FFTW_DEBUG 1" >>confdefs.h
Chris@10 3363
Chris@10 3364 debug_malloc=yes
Chris@10 3365 else
Chris@10 3366 debug_malloc=no
Chris@10 3367 fi
Chris@10 3368
Chris@10 3369 # Check whether --enable-debug-malloc was given.
Chris@10 3370 if test "${enable_debug_malloc+set}" = set; then :
Chris@10 3371 enableval=$enable_debug_malloc; ok=$enableval
Chris@10 3372 else
Chris@10 3373 ok=$debug_malloc
Chris@10 3374 fi
Chris@10 3375
Chris@10 3376 if test "$ok" = "yes"; then
Chris@10 3377
Chris@10 3378 $as_echo "#define FFTW_DEBUG_MALLOC 1" >>confdefs.h
Chris@10 3379
Chris@10 3380 fi
Chris@10 3381
Chris@10 3382 # Check whether --enable-debug-alignment was given.
Chris@10 3383 if test "${enable_debug_alignment+set}" = set; then :
Chris@10 3384 enableval=$enable_debug_alignment; ok=$enableval
Chris@10 3385 else
Chris@10 3386 ok=no
Chris@10 3387 fi
Chris@10 3388
Chris@10 3389 if test "$ok" = "yes"; then
Chris@10 3390
Chris@10 3391 $as_echo "#define FFTW_DEBUG_ALIGNMENT 1" >>confdefs.h
Chris@10 3392
Chris@10 3393 fi
Chris@10 3394
Chris@10 3395 # Check whether --enable-random-estimator was given.
Chris@10 3396 if test "${enable_random_estimator+set}" = set; then :
Chris@10 3397 enableval=$enable_random_estimator; ok=$enableval
Chris@10 3398 else
Chris@10 3399 ok=no
Chris@10 3400 fi
Chris@10 3401
Chris@10 3402 if test "$ok" = "yes"; then
Chris@10 3403
Chris@10 3404 $as_echo "#define FFTW_RANDOM_ESTIMATOR 1" >>confdefs.h
Chris@10 3405
Chris@10 3406 CHECK_PL_OPTS="--estimate"
Chris@10 3407 fi
Chris@10 3408
Chris@10 3409 # Check whether --enable-alloca was given.
Chris@10 3410 if test "${enable_alloca+set}" = set; then :
Chris@10 3411 enableval=$enable_alloca; ok=$enableval
Chris@10 3412 else
Chris@10 3413 ok=yes
Chris@10 3414 fi
Chris@10 3415
Chris@10 3416 if test "$ok" = "yes"; then
Chris@10 3417
Chris@10 3418 $as_echo "#define FFTW_ENABLE_ALLOCA 1" >>confdefs.h
Chris@10 3419
Chris@10 3420 fi
Chris@10 3421
Chris@10 3422 # Check whether --enable-single was given.
Chris@10 3423 if test "${enable_single+set}" = set; then :
Chris@10 3424 enableval=$enable_single; ok=$enableval
Chris@10 3425 else
Chris@10 3426 ok=no
Chris@10 3427 fi
Chris@10 3428
Chris@10 3429 # Check whether --enable-float was given.
Chris@10 3430 if test "${enable_float+set}" = set; then :
Chris@10 3431 enableval=$enable_float; ok=$enableval
Chris@10 3432 fi
Chris@10 3433
Chris@10 3434 if test "$ok" = "yes"; then
Chris@10 3435
Chris@10 3436 $as_echo "#define FFTW_SINGLE 1" >>confdefs.h
Chris@10 3437
Chris@10 3438
Chris@10 3439 $as_echo "#define BENCHFFT_SINGLE 1" >>confdefs.h
Chris@10 3440
Chris@10 3441 PRECISION=s
Chris@10 3442 else
Chris@10 3443 PRECISION=d
Chris@10 3444 fi
Chris@10 3445 if test "$ok" = "yes"; then
Chris@10 3446 SINGLE_TRUE=
Chris@10 3447 SINGLE_FALSE='#'
Chris@10 3448 else
Chris@10 3449 SINGLE_TRUE='#'
Chris@10 3450 SINGLE_FALSE=
Chris@10 3451 fi
Chris@10 3452
Chris@10 3453
Chris@10 3454 # Check whether --enable-long-double was given.
Chris@10 3455 if test "${enable_long_double+set}" = set; then :
Chris@10 3456 enableval=$enable_long_double; ok=$enableval
Chris@10 3457 else
Chris@10 3458 ok=no
Chris@10 3459 fi
Chris@10 3460
Chris@10 3461 if test "$ok" = "yes"; then
Chris@10 3462 if test "$PRECISION" = "s"; then
Chris@10 3463 as_fn_error $? "--enable-single/--enable-long-double conflict" "$LINENO" 5
Chris@10 3464 fi
Chris@10 3465
Chris@10 3466 $as_echo "#define FFTW_LDOUBLE 1" >>confdefs.h
Chris@10 3467
Chris@10 3468
Chris@10 3469 $as_echo "#define BENCHFFT_LDOUBLE 1" >>confdefs.h
Chris@10 3470
Chris@10 3471 PRECISION=l
Chris@10 3472 fi
Chris@10 3473 if test "$ok" = "yes"; then
Chris@10 3474 LDOUBLE_TRUE=
Chris@10 3475 LDOUBLE_FALSE='#'
Chris@10 3476 else
Chris@10 3477 LDOUBLE_TRUE='#'
Chris@10 3478 LDOUBLE_FALSE=
Chris@10 3479 fi
Chris@10 3480
Chris@10 3481
Chris@10 3482 # Check whether --enable-quad-precision was given.
Chris@10 3483 if test "${enable_quad_precision+set}" = set; then :
Chris@10 3484 enableval=$enable_quad_precision; ok=$enableval
Chris@10 3485 else
Chris@10 3486 ok=no
Chris@10 3487 fi
Chris@10 3488
Chris@10 3489 if test "$ok" = "yes"; then
Chris@10 3490 if test "$PRECISION" != "d"; then
Chris@10 3491 as_fn_error $? "conflicting precisions specified" "$LINENO" 5
Chris@10 3492 fi
Chris@10 3493
Chris@10 3494 $as_echo "#define FFTW_QUAD 1" >>confdefs.h
Chris@10 3495
Chris@10 3496
Chris@10 3497 $as_echo "#define BENCHFFT_QUAD 1" >>confdefs.h
Chris@10 3498
Chris@10 3499 PRECISION=q
Chris@10 3500 fi
Chris@10 3501 if test "$ok" = "yes"; then
Chris@10 3502 QUAD_TRUE=
Chris@10 3503 QUAD_FALSE='#'
Chris@10 3504 else
Chris@10 3505 QUAD_TRUE='#'
Chris@10 3506 QUAD_FALSE=
Chris@10 3507 fi
Chris@10 3508
Chris@10 3509
Chris@10 3510
Chris@10 3511
Chris@10 3512
Chris@10 3513 # Check whether --enable-sse was given.
Chris@10 3514 if test "${enable_sse+set}" = set; then :
Chris@10 3515 enableval=$enable_sse; have_sse=$enableval
Chris@10 3516 else
Chris@10 3517 have_sse=no
Chris@10 3518 fi
Chris@10 3519
Chris@10 3520 if test "$have_sse" = "yes"; then
Chris@10 3521 if test "$PRECISION" != "s"; then
Chris@10 3522 as_fn_error $? "SSE requires single precision" "$LINENO" 5
Chris@10 3523 fi
Chris@10 3524 fi
Chris@10 3525
Chris@10 3526 # Check whether --enable-sse2 was given.
Chris@10 3527 if test "${enable_sse2+set}" = set; then :
Chris@10 3528 enableval=$enable_sse2; have_sse2=$enableval
Chris@10 3529 else
Chris@10 3530 have_sse2=no
Chris@10 3531 fi
Chris@10 3532
Chris@10 3533 if test "$have_sse" = "yes"; then have_sse2=yes; fi
Chris@10 3534 if test "$have_sse2" = "yes"; then
Chris@10 3535
Chris@10 3536 $as_echo "#define HAVE_SSE2 1" >>confdefs.h
Chris@10 3537
Chris@10 3538 if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then
Chris@10 3539 as_fn_error $? "SSE2 requires single or double precision" "$LINENO" 5
Chris@10 3540 fi
Chris@10 3541 fi
Chris@10 3542 if test "$have_sse2" = "yes"; then
Chris@10 3543 HAVE_SSE2_TRUE=
Chris@10 3544 HAVE_SSE2_FALSE='#'
Chris@10 3545 else
Chris@10 3546 HAVE_SSE2_TRUE='#'
Chris@10 3547 HAVE_SSE2_FALSE=
Chris@10 3548 fi
Chris@10 3549
Chris@10 3550
Chris@10 3551 # Check whether --enable-avx was given.
Chris@10 3552 if test "${enable_avx+set}" = set; then :
Chris@10 3553 enableval=$enable_avx; have_avx=$enableval
Chris@10 3554 else
Chris@10 3555 have_avx=no
Chris@10 3556 fi
Chris@10 3557
Chris@10 3558 if test "$have_avx" = "yes"; then
Chris@10 3559
Chris@10 3560 $as_echo "#define HAVE_AVX 1" >>confdefs.h
Chris@10 3561
Chris@10 3562 if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then
Chris@10 3563 as_fn_error $? "AVX requires single or double precision" "$LINENO" 5
Chris@10 3564 fi
Chris@10 3565 fi
Chris@10 3566 if test "$have_avx" = "yes"; then
Chris@10 3567 HAVE_AVX_TRUE=
Chris@10 3568 HAVE_AVX_FALSE='#'
Chris@10 3569 else
Chris@10 3570 HAVE_AVX_TRUE='#'
Chris@10 3571 HAVE_AVX_FALSE=
Chris@10 3572 fi
Chris@10 3573
Chris@10 3574
Chris@10 3575 # Check whether --enable-altivec was given.
Chris@10 3576 if test "${enable_altivec+set}" = set; then :
Chris@10 3577 enableval=$enable_altivec; have_altivec=$enableval
Chris@10 3578 else
Chris@10 3579 have_altivec=no
Chris@10 3580 fi
Chris@10 3581
Chris@10 3582 if test "$have_altivec" = "yes"; then
Chris@10 3583
Chris@10 3584 $as_echo "#define HAVE_ALTIVEC 1" >>confdefs.h
Chris@10 3585
Chris@10 3586 if test "$PRECISION" != "s"; then
Chris@10 3587 as_fn_error $? "Altivec requires single precision" "$LINENO" 5
Chris@10 3588 fi
Chris@10 3589 fi
Chris@10 3590 if test "$have_altivec" = "yes"; then
Chris@10 3591 HAVE_ALTIVEC_TRUE=
Chris@10 3592 HAVE_ALTIVEC_FALSE='#'
Chris@10 3593 else
Chris@10 3594 HAVE_ALTIVEC_TRUE='#'
Chris@10 3595 HAVE_ALTIVEC_FALSE=
Chris@10 3596 fi
Chris@10 3597
Chris@10 3598
Chris@10 3599 # Check whether --enable-neon was given.
Chris@10 3600 if test "${enable_neon+set}" = set; then :
Chris@10 3601 enableval=$enable_neon; have_neon=$enableval
Chris@10 3602 else
Chris@10 3603 have_neon=no
Chris@10 3604 fi
Chris@10 3605
Chris@10 3606 if test "$have_neon" = "yes"; then
Chris@10 3607
Chris@10 3608 $as_echo "#define HAVE_NEON 1" >>confdefs.h
Chris@10 3609
Chris@10 3610 if test "$PRECISION" != "s"; then
Chris@10 3611 as_fn_error $? "NEON requires single precision" "$LINENO" 5
Chris@10 3612 fi
Chris@10 3613 fi
Chris@10 3614 if test "$have_neon" = "yes"; then
Chris@10 3615 HAVE_NEON_TRUE=
Chris@10 3616 HAVE_NEON_FALSE='#'
Chris@10 3617 else
Chris@10 3618 HAVE_NEON_TRUE='#'
Chris@10 3619 HAVE_NEON_FALSE=
Chris@10 3620 fi
Chris@10 3621
Chris@10 3622
Chris@10 3623
Chris@10 3624
Chris@10 3625 # Check whether --with-slow-timer was given.
Chris@10 3626 if test "${with_slow_timer+set}" = set; then :
Chris@10 3627 withval=$with_slow_timer; with_slow_timer=$withval
Chris@10 3628 else
Chris@10 3629 with_slow_timer=no
Chris@10 3630 fi
Chris@10 3631
Chris@10 3632 if test "$with_slow_timer" = "yes"; then
Chris@10 3633
Chris@10 3634 $as_echo "#define WITH_SLOW_TIMER 1" >>confdefs.h
Chris@10 3635
Chris@10 3636 fi
Chris@10 3637
Chris@10 3638 # Check whether --enable-mips_zbus_timer was given.
Chris@10 3639 if test "${enable_mips_zbus_timer+set}" = set; then :
Chris@10 3640 enableval=$enable_mips_zbus_timer; have_mips_zbus_timer=$enableval
Chris@10 3641 else
Chris@10 3642 have_mips_zbus_timer=no
Chris@10 3643 fi
Chris@10 3644
Chris@10 3645 if test "$have_mips_zbus_timer" = "yes"; then
Chris@10 3646
Chris@10 3647 $as_echo "#define HAVE_MIPS_ZBUS_TIMER 1" >>confdefs.h
Chris@10 3648
Chris@10 3649 fi
Chris@10 3650
Chris@10 3651
Chris@10 3652 # Check whether --with-our-malloc was given.
Chris@10 3653 if test "${with_our_malloc+set}" = set; then :
Chris@10 3654 withval=$with_our_malloc; with_our_malloc=$withval
Chris@10 3655 else
Chris@10 3656 with_our_malloc=no
Chris@10 3657 fi
Chris@10 3658
Chris@10 3659
Chris@10 3660 # Check whether --with-our-malloc16 was given.
Chris@10 3661 if test "${with_our_malloc16+set}" = set; then :
Chris@10 3662 withval=$with_our_malloc16; with_our_malloc=$withval
Chris@10 3663 fi
Chris@10 3664
Chris@10 3665 if test "$with_our_malloc" = "yes"; then
Chris@10 3666
Chris@10 3667 $as_echo "#define WITH_OUR_MALLOC 1" >>confdefs.h
Chris@10 3668
Chris@10 3669 fi
Chris@10 3670
Chris@10 3671
Chris@10 3672 # Check whether --with-windows-f77-mangling was given.
Chris@10 3673 if test "${with_windows_f77_mangling+set}" = set; then :
Chris@10 3674 withval=$with_windows_f77_mangling; with_windows_f77_mangling=$withval
Chris@10 3675 else
Chris@10 3676 with_windows_f77_mangling=no
Chris@10 3677 fi
Chris@10 3678
Chris@10 3679 if test "$with_windows_f77_mangling" = "yes"; then
Chris@10 3680
Chris@10 3681 $as_echo "#define WINDOWS_F77_MANGLING 1" >>confdefs.h
Chris@10 3682
Chris@10 3683 fi
Chris@10 3684
Chris@10 3685
Chris@10 3686 # Check whether --with-incoming-stack-boundary was given.
Chris@10 3687 if test "${with_incoming_stack_boundary+set}" = set; then :
Chris@10 3688 withval=$with_incoming_stack_boundary; with_incoming_stack_boundary=$withval
Chris@10 3689 else
Chris@10 3690 with_incoming_stack_boundary=no
Chris@10 3691 fi
Chris@10 3692
Chris@10 3693
Chris@10 3694 case "$PRECISION" in
Chris@10 3695 s) PREC_SUFFIX=f;;
Chris@10 3696 d) PREC_SUFFIX=;;
Chris@10 3697 l) PREC_SUFFIX=l;;
Chris@10 3698 q) PREC_SUFFIX=q;;
Chris@10 3699 esac
Chris@10 3700
Chris@10 3701
Chris@10 3702 ac_ext=c
Chris@10 3703 ac_cpp='$CPP $CPPFLAGS'
Chris@10 3704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@10 3705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 3706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@10 3707 if test -n "$ac_tool_prefix"; then
Chris@10 3708 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
Chris@10 3709 set dummy ${ac_tool_prefix}gcc; ac_word=$2
Chris@10 3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 3711 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 3712 if ${ac_cv_prog_CC+:} false; then :
Chris@10 3713 $as_echo_n "(cached) " >&6
Chris@10 3714 else
Chris@10 3715 if test -n "$CC"; then
Chris@10 3716 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@10 3717 else
Chris@10 3718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 3719 for as_dir in $PATH
Chris@10 3720 do
Chris@10 3721 IFS=$as_save_IFS
Chris@10 3722 test -z "$as_dir" && as_dir=.
Chris@10 3723 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 3724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 3725 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Chris@10 3726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 3727 break 2
Chris@10 3728 fi
Chris@10 3729 done
Chris@10 3730 done
Chris@10 3731 IFS=$as_save_IFS
Chris@10 3732
Chris@10 3733 fi
Chris@10 3734 fi
Chris@10 3735 CC=$ac_cv_prog_CC
Chris@10 3736 if test -n "$CC"; then
Chris@10 3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@10 3738 $as_echo "$CC" >&6; }
Chris@10 3739 else
Chris@10 3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 3741 $as_echo "no" >&6; }
Chris@10 3742 fi
Chris@10 3743
Chris@10 3744
Chris@10 3745 fi
Chris@10 3746 if test -z "$ac_cv_prog_CC"; then
Chris@10 3747 ac_ct_CC=$CC
Chris@10 3748 # Extract the first word of "gcc", so it can be a program name with args.
Chris@10 3749 set dummy gcc; ac_word=$2
Chris@10 3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 3751 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 3752 if ${ac_cv_prog_ac_ct_CC+:} false; then :
Chris@10 3753 $as_echo_n "(cached) " >&6
Chris@10 3754 else
Chris@10 3755 if test -n "$ac_ct_CC"; then
Chris@10 3756 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
Chris@10 3757 else
Chris@10 3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 3759 for as_dir in $PATH
Chris@10 3760 do
Chris@10 3761 IFS=$as_save_IFS
Chris@10 3762 test -z "$as_dir" && as_dir=.
Chris@10 3763 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 3764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 3765 ac_cv_prog_ac_ct_CC="gcc"
Chris@10 3766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 3767 break 2
Chris@10 3768 fi
Chris@10 3769 done
Chris@10 3770 done
Chris@10 3771 IFS=$as_save_IFS
Chris@10 3772
Chris@10 3773 fi
Chris@10 3774 fi
Chris@10 3775 ac_ct_CC=$ac_cv_prog_ac_ct_CC
Chris@10 3776 if test -n "$ac_ct_CC"; then
Chris@10 3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Chris@10 3778 $as_echo "$ac_ct_CC" >&6; }
Chris@10 3779 else
Chris@10 3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 3781 $as_echo "no" >&6; }
Chris@10 3782 fi
Chris@10 3783
Chris@10 3784 if test "x$ac_ct_CC" = x; then
Chris@10 3785 CC=""
Chris@10 3786 else
Chris@10 3787 case $cross_compiling:$ac_tool_warned in
Chris@10 3788 yes:)
Chris@10 3789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@10 3790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@10 3791 ac_tool_warned=yes ;;
Chris@10 3792 esac
Chris@10 3793 CC=$ac_ct_CC
Chris@10 3794 fi
Chris@10 3795 else
Chris@10 3796 CC="$ac_cv_prog_CC"
Chris@10 3797 fi
Chris@10 3798
Chris@10 3799 if test -z "$CC"; then
Chris@10 3800 if test -n "$ac_tool_prefix"; then
Chris@10 3801 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Chris@10 3802 set dummy ${ac_tool_prefix}cc; ac_word=$2
Chris@10 3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 3804 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 3805 if ${ac_cv_prog_CC+:} false; then :
Chris@10 3806 $as_echo_n "(cached) " >&6
Chris@10 3807 else
Chris@10 3808 if test -n "$CC"; then
Chris@10 3809 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@10 3810 else
Chris@10 3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 3812 for as_dir in $PATH
Chris@10 3813 do
Chris@10 3814 IFS=$as_save_IFS
Chris@10 3815 test -z "$as_dir" && as_dir=.
Chris@10 3816 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 3817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 3818 ac_cv_prog_CC="${ac_tool_prefix}cc"
Chris@10 3819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 3820 break 2
Chris@10 3821 fi
Chris@10 3822 done
Chris@10 3823 done
Chris@10 3824 IFS=$as_save_IFS
Chris@10 3825
Chris@10 3826 fi
Chris@10 3827 fi
Chris@10 3828 CC=$ac_cv_prog_CC
Chris@10 3829 if test -n "$CC"; then
Chris@10 3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@10 3831 $as_echo "$CC" >&6; }
Chris@10 3832 else
Chris@10 3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 3834 $as_echo "no" >&6; }
Chris@10 3835 fi
Chris@10 3836
Chris@10 3837
Chris@10 3838 fi
Chris@10 3839 fi
Chris@10 3840 if test -z "$CC"; then
Chris@10 3841 # Extract the first word of "cc", so it can be a program name with args.
Chris@10 3842 set dummy cc; ac_word=$2
Chris@10 3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 3844 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 3845 if ${ac_cv_prog_CC+:} false; then :
Chris@10 3846 $as_echo_n "(cached) " >&6
Chris@10 3847 else
Chris@10 3848 if test -n "$CC"; then
Chris@10 3849 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@10 3850 else
Chris@10 3851 ac_prog_rejected=no
Chris@10 3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 3853 for as_dir in $PATH
Chris@10 3854 do
Chris@10 3855 IFS=$as_save_IFS
Chris@10 3856 test -z "$as_dir" && as_dir=.
Chris@10 3857 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 3858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 3859 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
Chris@10 3860 ac_prog_rejected=yes
Chris@10 3861 continue
Chris@10 3862 fi
Chris@10 3863 ac_cv_prog_CC="cc"
Chris@10 3864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 3865 break 2
Chris@10 3866 fi
Chris@10 3867 done
Chris@10 3868 done
Chris@10 3869 IFS=$as_save_IFS
Chris@10 3870
Chris@10 3871 if test $ac_prog_rejected = yes; then
Chris@10 3872 # We found a bogon in the path, so make sure we never use it.
Chris@10 3873 set dummy $ac_cv_prog_CC
Chris@10 3874 shift
Chris@10 3875 if test $# != 0; then
Chris@10 3876 # We chose a different compiler from the bogus one.
Chris@10 3877 # However, it has the same basename, so the bogon will be chosen
Chris@10 3878 # first if we set CC to just the basename; use the full file name.
Chris@10 3879 shift
Chris@10 3880 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Chris@10 3881 fi
Chris@10 3882 fi
Chris@10 3883 fi
Chris@10 3884 fi
Chris@10 3885 CC=$ac_cv_prog_CC
Chris@10 3886 if test -n "$CC"; then
Chris@10 3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@10 3888 $as_echo "$CC" >&6; }
Chris@10 3889 else
Chris@10 3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 3891 $as_echo "no" >&6; }
Chris@10 3892 fi
Chris@10 3893
Chris@10 3894
Chris@10 3895 fi
Chris@10 3896 if test -z "$CC"; then
Chris@10 3897 if test -n "$ac_tool_prefix"; then
Chris@10 3898 for ac_prog in cl.exe
Chris@10 3899 do
Chris@10 3900 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@10 3901 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@10 3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 3903 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 3904 if ${ac_cv_prog_CC+:} false; then :
Chris@10 3905 $as_echo_n "(cached) " >&6
Chris@10 3906 else
Chris@10 3907 if test -n "$CC"; then
Chris@10 3908 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@10 3909 else
Chris@10 3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 3911 for as_dir in $PATH
Chris@10 3912 do
Chris@10 3913 IFS=$as_save_IFS
Chris@10 3914 test -z "$as_dir" && as_dir=.
Chris@10 3915 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 3916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 3917 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Chris@10 3918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 3919 break 2
Chris@10 3920 fi
Chris@10 3921 done
Chris@10 3922 done
Chris@10 3923 IFS=$as_save_IFS
Chris@10 3924
Chris@10 3925 fi
Chris@10 3926 fi
Chris@10 3927 CC=$ac_cv_prog_CC
Chris@10 3928 if test -n "$CC"; then
Chris@10 3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@10 3930 $as_echo "$CC" >&6; }
Chris@10 3931 else
Chris@10 3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 3933 $as_echo "no" >&6; }
Chris@10 3934 fi
Chris@10 3935
Chris@10 3936
Chris@10 3937 test -n "$CC" && break
Chris@10 3938 done
Chris@10 3939 fi
Chris@10 3940 if test -z "$CC"; then
Chris@10 3941 ac_ct_CC=$CC
Chris@10 3942 for ac_prog in cl.exe
Chris@10 3943 do
Chris@10 3944 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@10 3945 set dummy $ac_prog; ac_word=$2
Chris@10 3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 3947 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 3948 if ${ac_cv_prog_ac_ct_CC+:} false; then :
Chris@10 3949 $as_echo_n "(cached) " >&6
Chris@10 3950 else
Chris@10 3951 if test -n "$ac_ct_CC"; then
Chris@10 3952 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
Chris@10 3953 else
Chris@10 3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 3955 for as_dir in $PATH
Chris@10 3956 do
Chris@10 3957 IFS=$as_save_IFS
Chris@10 3958 test -z "$as_dir" && as_dir=.
Chris@10 3959 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 3960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 3961 ac_cv_prog_ac_ct_CC="$ac_prog"
Chris@10 3962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 3963 break 2
Chris@10 3964 fi
Chris@10 3965 done
Chris@10 3966 done
Chris@10 3967 IFS=$as_save_IFS
Chris@10 3968
Chris@10 3969 fi
Chris@10 3970 fi
Chris@10 3971 ac_ct_CC=$ac_cv_prog_ac_ct_CC
Chris@10 3972 if test -n "$ac_ct_CC"; then
Chris@10 3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Chris@10 3974 $as_echo "$ac_ct_CC" >&6; }
Chris@10 3975 else
Chris@10 3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 3977 $as_echo "no" >&6; }
Chris@10 3978 fi
Chris@10 3979
Chris@10 3980
Chris@10 3981 test -n "$ac_ct_CC" && break
Chris@10 3982 done
Chris@10 3983
Chris@10 3984 if test "x$ac_ct_CC" = x; then
Chris@10 3985 CC=""
Chris@10 3986 else
Chris@10 3987 case $cross_compiling:$ac_tool_warned in
Chris@10 3988 yes:)
Chris@10 3989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@10 3990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@10 3991 ac_tool_warned=yes ;;
Chris@10 3992 esac
Chris@10 3993 CC=$ac_ct_CC
Chris@10 3994 fi
Chris@10 3995 fi
Chris@10 3996
Chris@10 3997 fi
Chris@10 3998
Chris@10 3999
Chris@10 4000 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@10 4001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@10 4002 as_fn_error $? "no acceptable C compiler found in \$PATH
Chris@10 4003 See \`config.log' for more details" "$LINENO" 5; }
Chris@10 4004
Chris@10 4005 # Provide some information about the compiler.
Chris@10 4006 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Chris@10 4007 set X $ac_compile
Chris@10 4008 ac_compiler=$2
Chris@10 4009 for ac_option in --version -v -V -qversion; do
Chris@10 4010 { { ac_try="$ac_compiler $ac_option >&5"
Chris@10 4011 case "(($ac_try" in
Chris@10 4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@10 4013 *) ac_try_echo=$ac_try;;
Chris@10 4014 esac
Chris@10 4015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@10 4016 $as_echo "$ac_try_echo"; } >&5
Chris@10 4017 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Chris@10 4018 ac_status=$?
Chris@10 4019 if test -s conftest.err; then
Chris@10 4020 sed '10a\
Chris@10 4021 ... rest of stderr output deleted ...
Chris@10 4022 10q' conftest.err >conftest.er1
Chris@10 4023 cat conftest.er1 >&5
Chris@10 4024 fi
Chris@10 4025 rm -f conftest.er1 conftest.err
Chris@10 4026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 4027 test $ac_status = 0; }
Chris@10 4028 done
Chris@10 4029
Chris@10 4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 4031 /* end confdefs.h. */
Chris@10 4032
Chris@10 4033 int
Chris@10 4034 main ()
Chris@10 4035 {
Chris@10 4036
Chris@10 4037 ;
Chris@10 4038 return 0;
Chris@10 4039 }
Chris@10 4040 _ACEOF
Chris@10 4041 ac_clean_files_save=$ac_clean_files
Chris@10 4042 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Chris@10 4043 # Try to create an executable without -o first, disregard a.out.
Chris@10 4044 # It will help us diagnose broken compilers, and finding out an intuition
Chris@10 4045 # of exeext.
Chris@10 4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
Chris@10 4047 $as_echo_n "checking whether the C compiler works... " >&6; }
Chris@10 4048 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Chris@10 4049
Chris@10 4050 # The possible output files:
Chris@10 4051 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
Chris@10 4052
Chris@10 4053 ac_rmfiles=
Chris@10 4054 for ac_file in $ac_files
Chris@10 4055 do
Chris@10 4056 case $ac_file in
Chris@10 4057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Chris@10 4058 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
Chris@10 4059 esac
Chris@10 4060 done
Chris@10 4061 rm -f $ac_rmfiles
Chris@10 4062
Chris@10 4063 if { { ac_try="$ac_link_default"
Chris@10 4064 case "(($ac_try" in
Chris@10 4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@10 4066 *) ac_try_echo=$ac_try;;
Chris@10 4067 esac
Chris@10 4068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@10 4069 $as_echo "$ac_try_echo"; } >&5
Chris@10 4070 (eval "$ac_link_default") 2>&5
Chris@10 4071 ac_status=$?
Chris@10 4072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 4073 test $ac_status = 0; }; then :
Chris@10 4074 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
Chris@10 4075 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
Chris@10 4076 # in a Makefile. We should not override ac_cv_exeext if it was cached,
Chris@10 4077 # so that the user can short-circuit this test for compilers unknown to
Chris@10 4078 # Autoconf.
Chris@10 4079 for ac_file in $ac_files ''
Chris@10 4080 do
Chris@10 4081 test -f "$ac_file" || continue
Chris@10 4082 case $ac_file in
Chris@10 4083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Chris@10 4084 ;;
Chris@10 4085 [ab].out )
Chris@10 4086 # We found the default executable, but exeext='' is most
Chris@10 4087 # certainly right.
Chris@10 4088 break;;
Chris@10 4089 *.* )
Chris@10 4090 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Chris@10 4091 then :; else
Chris@10 4092 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Chris@10 4093 fi
Chris@10 4094 # We set ac_cv_exeext here because the later test for it is not
Chris@10 4095 # safe: cross compilers may not add the suffix if given an `-o'
Chris@10 4096 # argument, so we may need to know it at that point already.
Chris@10 4097 # Even if this section looks crufty: it has the advantage of
Chris@10 4098 # actually working.
Chris@10 4099 break;;
Chris@10 4100 * )
Chris@10 4101 break;;
Chris@10 4102 esac
Chris@10 4103 done
Chris@10 4104 test "$ac_cv_exeext" = no && ac_cv_exeext=
Chris@10 4105
Chris@10 4106 else
Chris@10 4107 ac_file=''
Chris@10 4108 fi
Chris@10 4109 if test -z "$ac_file"; then :
Chris@10 4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 4111 $as_echo "no" >&6; }
Chris@10 4112 $as_echo "$as_me: failed program was:" >&5
Chris@10 4113 sed 's/^/| /' conftest.$ac_ext >&5
Chris@10 4114
Chris@10 4115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@10 4116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@10 4117 as_fn_error 77 "C compiler cannot create executables
Chris@10 4118 See \`config.log' for more details" "$LINENO" 5; }
Chris@10 4119 else
Chris@10 4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@10 4121 $as_echo "yes" >&6; }
Chris@10 4122 fi
Chris@10 4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
Chris@10 4124 $as_echo_n "checking for C compiler default output file name... " >&6; }
Chris@10 4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
Chris@10 4126 $as_echo "$ac_file" >&6; }
Chris@10 4127 ac_exeext=$ac_cv_exeext
Chris@10 4128
Chris@10 4129 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Chris@10 4130 ac_clean_files=$ac_clean_files_save
Chris@10 4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Chris@10 4132 $as_echo_n "checking for suffix of executables... " >&6; }
Chris@10 4133 if { { ac_try="$ac_link"
Chris@10 4134 case "(($ac_try" in
Chris@10 4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@10 4136 *) ac_try_echo=$ac_try;;
Chris@10 4137 esac
Chris@10 4138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@10 4139 $as_echo "$ac_try_echo"; } >&5
Chris@10 4140 (eval "$ac_link") 2>&5
Chris@10 4141 ac_status=$?
Chris@10 4142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 4143 test $ac_status = 0; }; then :
Chris@10 4144 # If both `conftest.exe' and `conftest' are `present' (well, observable)
Chris@10 4145 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
Chris@10 4146 # work properly (i.e., refer to `conftest.exe'), while it won't with
Chris@10 4147 # `rm'.
Chris@10 4148 for ac_file in conftest.exe conftest conftest.*; do
Chris@10 4149 test -f "$ac_file" || continue
Chris@10 4150 case $ac_file in
Chris@10 4151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Chris@10 4152 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Chris@10 4153 break;;
Chris@10 4154 * ) break;;
Chris@10 4155 esac
Chris@10 4156 done
Chris@10 4157 else
Chris@10 4158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@10 4159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@10 4160 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
Chris@10 4161 See \`config.log' for more details" "$LINENO" 5; }
Chris@10 4162 fi
Chris@10 4163 rm -f conftest conftest$ac_cv_exeext
Chris@10 4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Chris@10 4165 $as_echo "$ac_cv_exeext" >&6; }
Chris@10 4166
Chris@10 4167 rm -f conftest.$ac_ext
Chris@10 4168 EXEEXT=$ac_cv_exeext
Chris@10 4169 ac_exeext=$EXEEXT
Chris@10 4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 4171 /* end confdefs.h. */
Chris@10 4172 #include <stdio.h>
Chris@10 4173 int
Chris@10 4174 main ()
Chris@10 4175 {
Chris@10 4176 FILE *f = fopen ("conftest.out", "w");
Chris@10 4177 return ferror (f) || fclose (f) != 0;
Chris@10 4178
Chris@10 4179 ;
Chris@10 4180 return 0;
Chris@10 4181 }
Chris@10 4182 _ACEOF
Chris@10 4183 ac_clean_files="$ac_clean_files conftest.out"
Chris@10 4184 # Check that the compiler produces executables we can run. If not, either
Chris@10 4185 # the compiler is broken, or we cross compile.
Chris@10 4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
Chris@10 4187 $as_echo_n "checking whether we are cross compiling... " >&6; }
Chris@10 4188 if test "$cross_compiling" != yes; then
Chris@10 4189 { { ac_try="$ac_link"
Chris@10 4190 case "(($ac_try" in
Chris@10 4191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@10 4192 *) ac_try_echo=$ac_try;;
Chris@10 4193 esac
Chris@10 4194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@10 4195 $as_echo "$ac_try_echo"; } >&5
Chris@10 4196 (eval "$ac_link") 2>&5
Chris@10 4197 ac_status=$?
Chris@10 4198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 4199 test $ac_status = 0; }
Chris@10 4200 if { ac_try='./conftest$ac_cv_exeext'
Chris@10 4201 { { case "(($ac_try" in
Chris@10 4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@10 4203 *) ac_try_echo=$ac_try;;
Chris@10 4204 esac
Chris@10 4205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@10 4206 $as_echo "$ac_try_echo"; } >&5
Chris@10 4207 (eval "$ac_try") 2>&5
Chris@10 4208 ac_status=$?
Chris@10 4209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 4210 test $ac_status = 0; }; }; then
Chris@10 4211 cross_compiling=no
Chris@10 4212 else
Chris@10 4213 if test "$cross_compiling" = maybe; then
Chris@10 4214 cross_compiling=yes
Chris@10 4215 else
Chris@10 4216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@10 4217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@10 4218 as_fn_error $? "cannot run C compiled programs.
Chris@10 4219 If you meant to cross compile, use \`--host'.
Chris@10 4220 See \`config.log' for more details" "$LINENO" 5; }
Chris@10 4221 fi
Chris@10 4222 fi
Chris@10 4223 fi
Chris@10 4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
Chris@10 4225 $as_echo "$cross_compiling" >&6; }
Chris@10 4226
Chris@10 4227 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
Chris@10 4228 ac_clean_files=$ac_clean_files_save
Chris@10 4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Chris@10 4230 $as_echo_n "checking for suffix of object files... " >&6; }
Chris@10 4231 if ${ac_cv_objext+:} false; then :
Chris@10 4232 $as_echo_n "(cached) " >&6
Chris@10 4233 else
Chris@10 4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 4235 /* end confdefs.h. */
Chris@10 4236
Chris@10 4237 int
Chris@10 4238 main ()
Chris@10 4239 {
Chris@10 4240
Chris@10 4241 ;
Chris@10 4242 return 0;
Chris@10 4243 }
Chris@10 4244 _ACEOF
Chris@10 4245 rm -f conftest.o conftest.obj
Chris@10 4246 if { { ac_try="$ac_compile"
Chris@10 4247 case "(($ac_try" in
Chris@10 4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@10 4249 *) ac_try_echo=$ac_try;;
Chris@10 4250 esac
Chris@10 4251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@10 4252 $as_echo "$ac_try_echo"; } >&5
Chris@10 4253 (eval "$ac_compile") 2>&5
Chris@10 4254 ac_status=$?
Chris@10 4255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 4256 test $ac_status = 0; }; then :
Chris@10 4257 for ac_file in conftest.o conftest.obj conftest.*; do
Chris@10 4258 test -f "$ac_file" || continue;
Chris@10 4259 case $ac_file in
Chris@10 4260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Chris@10 4261 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
Chris@10 4262 break;;
Chris@10 4263 esac
Chris@10 4264 done
Chris@10 4265 else
Chris@10 4266 $as_echo "$as_me: failed program was:" >&5
Chris@10 4267 sed 's/^/| /' conftest.$ac_ext >&5
Chris@10 4268
Chris@10 4269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@10 4270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@10 4271 as_fn_error $? "cannot compute suffix of object files: cannot compile
Chris@10 4272 See \`config.log' for more details" "$LINENO" 5; }
Chris@10 4273 fi
Chris@10 4274 rm -f conftest.$ac_cv_objext conftest.$ac_ext
Chris@10 4275 fi
Chris@10 4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Chris@10 4277 $as_echo "$ac_cv_objext" >&6; }
Chris@10 4278 OBJEXT=$ac_cv_objext
Chris@10 4279 ac_objext=$OBJEXT
Chris@10 4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Chris@10 4281 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Chris@10 4282 if ${ac_cv_c_compiler_gnu+:} false; then :
Chris@10 4283 $as_echo_n "(cached) " >&6
Chris@10 4284 else
Chris@10 4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 4286 /* end confdefs.h. */
Chris@10 4287
Chris@10 4288 int
Chris@10 4289 main ()
Chris@10 4290 {
Chris@10 4291 #ifndef __GNUC__
Chris@10 4292 choke me
Chris@10 4293 #endif
Chris@10 4294
Chris@10 4295 ;
Chris@10 4296 return 0;
Chris@10 4297 }
Chris@10 4298 _ACEOF
Chris@10 4299 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 4300 ac_compiler_gnu=yes
Chris@10 4301 else
Chris@10 4302 ac_compiler_gnu=no
Chris@10 4303 fi
Chris@10 4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 4305 ac_cv_c_compiler_gnu=$ac_compiler_gnu
Chris@10 4306
Chris@10 4307 fi
Chris@10 4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Chris@10 4309 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
Chris@10 4310 if test $ac_compiler_gnu = yes; then
Chris@10 4311 GCC=yes
Chris@10 4312 else
Chris@10 4313 GCC=
Chris@10 4314 fi
Chris@10 4315 ac_test_CFLAGS=${CFLAGS+set}
Chris@10 4316 ac_save_CFLAGS=$CFLAGS
Chris@10 4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Chris@10 4318 $as_echo_n "checking whether $CC accepts -g... " >&6; }
Chris@10 4319 if ${ac_cv_prog_cc_g+:} false; then :
Chris@10 4320 $as_echo_n "(cached) " >&6
Chris@10 4321 else
Chris@10 4322 ac_save_c_werror_flag=$ac_c_werror_flag
Chris@10 4323 ac_c_werror_flag=yes
Chris@10 4324 ac_cv_prog_cc_g=no
Chris@10 4325 CFLAGS="-g"
Chris@10 4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 4327 /* end confdefs.h. */
Chris@10 4328
Chris@10 4329 int
Chris@10 4330 main ()
Chris@10 4331 {
Chris@10 4332
Chris@10 4333 ;
Chris@10 4334 return 0;
Chris@10 4335 }
Chris@10 4336 _ACEOF
Chris@10 4337 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 4338 ac_cv_prog_cc_g=yes
Chris@10 4339 else
Chris@10 4340 CFLAGS=""
Chris@10 4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 4342 /* end confdefs.h. */
Chris@10 4343
Chris@10 4344 int
Chris@10 4345 main ()
Chris@10 4346 {
Chris@10 4347
Chris@10 4348 ;
Chris@10 4349 return 0;
Chris@10 4350 }
Chris@10 4351 _ACEOF
Chris@10 4352 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 4353
Chris@10 4354 else
Chris@10 4355 ac_c_werror_flag=$ac_save_c_werror_flag
Chris@10 4356 CFLAGS="-g"
Chris@10 4357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 4358 /* end confdefs.h. */
Chris@10 4359
Chris@10 4360 int
Chris@10 4361 main ()
Chris@10 4362 {
Chris@10 4363
Chris@10 4364 ;
Chris@10 4365 return 0;
Chris@10 4366 }
Chris@10 4367 _ACEOF
Chris@10 4368 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 4369 ac_cv_prog_cc_g=yes
Chris@10 4370 fi
Chris@10 4371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 4372 fi
Chris@10 4373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 4374 fi
Chris@10 4375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 4376 ac_c_werror_flag=$ac_save_c_werror_flag
Chris@10 4377 fi
Chris@10 4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Chris@10 4379 $as_echo "$ac_cv_prog_cc_g" >&6; }
Chris@10 4380 if test "$ac_test_CFLAGS" = set; then
Chris@10 4381 CFLAGS=$ac_save_CFLAGS
Chris@10 4382 elif test $ac_cv_prog_cc_g = yes; then
Chris@10 4383 if test "$GCC" = yes; then
Chris@10 4384 CFLAGS="-g -O2"
Chris@10 4385 else
Chris@10 4386 CFLAGS="-g"
Chris@10 4387 fi
Chris@10 4388 else
Chris@10 4389 if test "$GCC" = yes; then
Chris@10 4390 CFLAGS="-O2"
Chris@10 4391 else
Chris@10 4392 CFLAGS=
Chris@10 4393 fi
Chris@10 4394 fi
Chris@10 4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Chris@10 4396 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Chris@10 4397 if ${ac_cv_prog_cc_c89+:} false; then :
Chris@10 4398 $as_echo_n "(cached) " >&6
Chris@10 4399 else
Chris@10 4400 ac_cv_prog_cc_c89=no
Chris@10 4401 ac_save_CC=$CC
Chris@10 4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 4403 /* end confdefs.h. */
Chris@10 4404 #include <stdarg.h>
Chris@10 4405 #include <stdio.h>
Chris@10 4406 struct stat;
Chris@10 4407 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
Chris@10 4408 struct buf { int x; };
Chris@10 4409 FILE * (*rcsopen) (struct buf *, struct stat *, int);
Chris@10 4410 static char *e (p, i)
Chris@10 4411 char **p;
Chris@10 4412 int i;
Chris@10 4413 {
Chris@10 4414 return p[i];
Chris@10 4415 }
Chris@10 4416 static char *f (char * (*g) (char **, int), char **p, ...)
Chris@10 4417 {
Chris@10 4418 char *s;
Chris@10 4419 va_list v;
Chris@10 4420 va_start (v,p);
Chris@10 4421 s = g (p, va_arg (v,int));
Chris@10 4422 va_end (v);
Chris@10 4423 return s;
Chris@10 4424 }
Chris@10 4425
Chris@10 4426 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
Chris@10 4427 function prototypes and stuff, but not '\xHH' hex character constants.
Chris@10 4428 These don't provoke an error unfortunately, instead are silently treated
Chris@10 4429 as 'x'. The following induces an error, until -std is added to get
Chris@10 4430 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
Chris@10 4431 array size at least. It's necessary to write '\x00'==0 to get something
Chris@10 4432 that's true only with -std. */
Chris@10 4433 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
Chris@10 4434
Chris@10 4435 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
Chris@10 4436 inside strings and character constants. */
Chris@10 4437 #define FOO(x) 'x'
Chris@10 4438 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
Chris@10 4439
Chris@10 4440 int test (int i, double x);
Chris@10 4441 struct s1 {int (*f) (int a);};
Chris@10 4442 struct s2 {int (*f) (double a);};
Chris@10 4443 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
Chris@10 4444 int argc;
Chris@10 4445 char **argv;
Chris@10 4446 int
Chris@10 4447 main ()
Chris@10 4448 {
Chris@10 4449 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
Chris@10 4450 ;
Chris@10 4451 return 0;
Chris@10 4452 }
Chris@10 4453 _ACEOF
Chris@10 4454 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
Chris@10 4455 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Chris@10 4456 do
Chris@10 4457 CC="$ac_save_CC $ac_arg"
Chris@10 4458 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 4459 ac_cv_prog_cc_c89=$ac_arg
Chris@10 4460 fi
Chris@10 4461 rm -f core conftest.err conftest.$ac_objext
Chris@10 4462 test "x$ac_cv_prog_cc_c89" != "xno" && break
Chris@10 4463 done
Chris@10 4464 rm -f conftest.$ac_ext
Chris@10 4465 CC=$ac_save_CC
Chris@10 4466
Chris@10 4467 fi
Chris@10 4468 # AC_CACHE_VAL
Chris@10 4469 case "x$ac_cv_prog_cc_c89" in
Chris@10 4470 x)
Chris@10 4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Chris@10 4472 $as_echo "none needed" >&6; } ;;
Chris@10 4473 xno)
Chris@10 4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Chris@10 4475 $as_echo "unsupported" >&6; } ;;
Chris@10 4476 *)
Chris@10 4477 CC="$CC $ac_cv_prog_cc_c89"
Chris@10 4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Chris@10 4479 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Chris@10 4480 esac
Chris@10 4481 if test "x$ac_cv_prog_cc_c89" != xno; then :
Chris@10 4482
Chris@10 4483 fi
Chris@10 4484
Chris@10 4485 ac_ext=c
Chris@10 4486 ac_cpp='$CPP $CPPFLAGS'
Chris@10 4487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@10 4488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 4489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@10 4490 DEPDIR="${am__leading_dot}deps"
Chris@10 4491
Chris@10 4492 ac_config_commands="$ac_config_commands depfiles"
Chris@10 4493
Chris@10 4494
Chris@10 4495 am_make=${MAKE-make}
Chris@10 4496 cat > confinc << 'END'
Chris@10 4497 am__doit:
Chris@10 4498 @echo this is the am__doit target
Chris@10 4499 .PHONY: am__doit
Chris@10 4500 END
Chris@10 4501 # If we don't find an include directive, just comment out the code.
Chris@10 4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
Chris@10 4503 $as_echo_n "checking for style of include used by $am_make... " >&6; }
Chris@10 4504 am__include="#"
Chris@10 4505 am__quote=
Chris@10 4506 _am_result=none
Chris@10 4507 # First try GNU make style include.
Chris@10 4508 echo "include confinc" > confmf
Chris@10 4509 # Ignore all kinds of additional output from `make'.
Chris@10 4510 case `$am_make -s -f confmf 2> /dev/null` in #(
Chris@10 4511 *the\ am__doit\ target*)
Chris@10 4512 am__include=include
Chris@10 4513 am__quote=
Chris@10 4514 _am_result=GNU
Chris@10 4515 ;;
Chris@10 4516 esac
Chris@10 4517 # Now try BSD make style include.
Chris@10 4518 if test "$am__include" = "#"; then
Chris@10 4519 echo '.include "confinc"' > confmf
Chris@10 4520 case `$am_make -s -f confmf 2> /dev/null` in #(
Chris@10 4521 *the\ am__doit\ target*)
Chris@10 4522 am__include=.include
Chris@10 4523 am__quote="\""
Chris@10 4524 _am_result=BSD
Chris@10 4525 ;;
Chris@10 4526 esac
Chris@10 4527 fi
Chris@10 4528
Chris@10 4529
Chris@10 4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
Chris@10 4531 $as_echo "$_am_result" >&6; }
Chris@10 4532 rm -f confinc confmf
Chris@10 4533
Chris@10 4534 # Check whether --enable-dependency-tracking was given.
Chris@10 4535 if test "${enable_dependency_tracking+set}" = set; then :
Chris@10 4536 enableval=$enable_dependency_tracking;
Chris@10 4537 fi
Chris@10 4538
Chris@10 4539 if test "x$enable_dependency_tracking" != xno; then
Chris@10 4540 am_depcomp="$ac_aux_dir/depcomp"
Chris@10 4541 AMDEPBACKSLASH='\'
Chris@10 4542 am__nodep='_no'
Chris@10 4543 fi
Chris@10 4544 if test "x$enable_dependency_tracking" != xno; then
Chris@10 4545 AMDEP_TRUE=
Chris@10 4546 AMDEP_FALSE='#'
Chris@10 4547 else
Chris@10 4548 AMDEP_TRUE='#'
Chris@10 4549 AMDEP_FALSE=
Chris@10 4550 fi
Chris@10 4551
Chris@10 4552
Chris@10 4553
Chris@10 4554 depcc="$CC" am_compiler_list=
Chris@10 4555
Chris@10 4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Chris@10 4557 $as_echo_n "checking dependency style of $depcc... " >&6; }
Chris@10 4558 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
Chris@10 4559 $as_echo_n "(cached) " >&6
Chris@10 4560 else
Chris@10 4561 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
Chris@10 4562 # We make a subdir and do the tests there. Otherwise we can end up
Chris@10 4563 # making bogus files that we don't know about and never remove. For
Chris@10 4564 # instance it was reported that on HP-UX the gcc test will end up
Chris@10 4565 # making a dummy file named `D' -- because `-MD' means `put the output
Chris@10 4566 # in D'.
Chris@10 4567 rm -rf conftest.dir
Chris@10 4568 mkdir conftest.dir
Chris@10 4569 # Copy depcomp to subdir because otherwise we won't find it if we're
Chris@10 4570 # using a relative directory.
Chris@10 4571 cp "$am_depcomp" conftest.dir
Chris@10 4572 cd conftest.dir
Chris@10 4573 # We will build objects and dependencies in a subdirectory because
Chris@10 4574 # it helps to detect inapplicable dependency modes. For instance
Chris@10 4575 # both Tru64's cc and ICC support -MD to output dependencies as a
Chris@10 4576 # side effect of compilation, but ICC will put the dependencies in
Chris@10 4577 # the current directory while Tru64 will put them in the object
Chris@10 4578 # directory.
Chris@10 4579 mkdir sub
Chris@10 4580
Chris@10 4581 am_cv_CC_dependencies_compiler_type=none
Chris@10 4582 if test "$am_compiler_list" = ""; then
Chris@10 4583 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
Chris@10 4584 fi
Chris@10 4585 am__universal=false
Chris@10 4586 case " $depcc " in #(
Chris@10 4587 *\ -arch\ *\ -arch\ *) am__universal=true ;;
Chris@10 4588 esac
Chris@10 4589
Chris@10 4590 for depmode in $am_compiler_list; do
Chris@10 4591 # Setup a source with many dependencies, because some compilers
Chris@10 4592 # like to wrap large dependency lists on column 80 (with \), and
Chris@10 4593 # we should not choose a depcomp mode which is confused by this.
Chris@10 4594 #
Chris@10 4595 # We need to recreate these files for each test, as the compiler may
Chris@10 4596 # overwrite some of them when testing with obscure command lines.
Chris@10 4597 # This happens at least with the AIX C compiler.
Chris@10 4598 : > sub/conftest.c
Chris@10 4599 for i in 1 2 3 4 5 6; do
Chris@10 4600 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Chris@10 4601 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
Chris@10 4602 # Solaris 8's {/usr,}/bin/sh.
Chris@10 4603 touch sub/conftst$i.h
Chris@10 4604 done
Chris@10 4605 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Chris@10 4606
Chris@10 4607 # We check with `-c' and `-o' for the sake of the "dashmstdout"
Chris@10 4608 # mode. It turns out that the SunPro C++ compiler does not properly
Chris@10 4609 # handle `-M -o', and we need to detect this. Also, some Intel
Chris@10 4610 # versions had trouble with output in subdirs
Chris@10 4611 am__obj=sub/conftest.${OBJEXT-o}
Chris@10 4612 am__minus_obj="-o $am__obj"
Chris@10 4613 case $depmode in
Chris@10 4614 gcc)
Chris@10 4615 # This depmode causes a compiler race in universal mode.
Chris@10 4616 test "$am__universal" = false || continue
Chris@10 4617 ;;
Chris@10 4618 nosideeffect)
Chris@10 4619 # after this tag, mechanisms are not by side-effect, so they'll
Chris@10 4620 # only be used when explicitly requested
Chris@10 4621 if test "x$enable_dependency_tracking" = xyes; then
Chris@10 4622 continue
Chris@10 4623 else
Chris@10 4624 break
Chris@10 4625 fi
Chris@10 4626 ;;
Chris@10 4627 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
Chris@10 4628 # This compiler won't grok `-c -o', but also, the minuso test has
Chris@10 4629 # not run yet. These depmodes are late enough in the game, and
Chris@10 4630 # so weak that their functioning should not be impacted.
Chris@10 4631 am__obj=conftest.${OBJEXT-o}
Chris@10 4632 am__minus_obj=
Chris@10 4633 ;;
Chris@10 4634 none) break ;;
Chris@10 4635 esac
Chris@10 4636 if depmode=$depmode \
Chris@10 4637 source=sub/conftest.c object=$am__obj \
Chris@10 4638 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Chris@10 4639 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Chris@10 4640 >/dev/null 2>conftest.err &&
Chris@10 4641 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Chris@10 4642 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Chris@10 4643 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Chris@10 4644 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Chris@10 4645 # icc doesn't choke on unknown options, it will just issue warnings
Chris@10 4646 # or remarks (even with -Werror). So we grep stderr for any message
Chris@10 4647 # that says an option was ignored or not supported.
Chris@10 4648 # When given -MP, icc 7.0 and 7.1 complain thusly:
Chris@10 4649 # icc: Command line warning: ignoring option '-M'; no argument required
Chris@10 4650 # The diagnosis changed in icc 8.0:
Chris@10 4651 # icc: Command line remark: option '-MP' not supported
Chris@10 4652 if (grep 'ignoring option' conftest.err ||
Chris@10 4653 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Chris@10 4654 am_cv_CC_dependencies_compiler_type=$depmode
Chris@10 4655 break
Chris@10 4656 fi
Chris@10 4657 fi
Chris@10 4658 done
Chris@10 4659
Chris@10 4660 cd ..
Chris@10 4661 rm -rf conftest.dir
Chris@10 4662 else
Chris@10 4663 am_cv_CC_dependencies_compiler_type=none
Chris@10 4664 fi
Chris@10 4665
Chris@10 4666 fi
Chris@10 4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
Chris@10 4668 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Chris@10 4669 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
Chris@10 4670
Chris@10 4671 if
Chris@10 4672 test "x$enable_dependency_tracking" != xno \
Chris@10 4673 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
Chris@10 4674 am__fastdepCC_TRUE=
Chris@10 4675 am__fastdepCC_FALSE='#'
Chris@10 4676 else
Chris@10 4677 am__fastdepCC_TRUE='#'
Chris@10 4678 am__fastdepCC_FALSE=
Chris@10 4679 fi
Chris@10 4680
Chris@10 4681
Chris@10 4682 if test "x$CC" != xcc; then
Chris@10 4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
Chris@10 4684 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
Chris@10 4685 else
Chris@10 4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
Chris@10 4687 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
Chris@10 4688 fi
Chris@10 4689 set dummy $CC; ac_cc=`$as_echo "$2" |
Chris@10 4690 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
Chris@10 4691 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
Chris@10 4692 $as_echo_n "(cached) " >&6
Chris@10 4693 else
Chris@10 4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 4695 /* end confdefs.h. */
Chris@10 4696
Chris@10 4697 int
Chris@10 4698 main ()
Chris@10 4699 {
Chris@10 4700
Chris@10 4701 ;
Chris@10 4702 return 0;
Chris@10 4703 }
Chris@10 4704 _ACEOF
Chris@10 4705 # Make sure it works both with $CC and with simple cc.
Chris@10 4706 # We do the test twice because some compilers refuse to overwrite an
Chris@10 4707 # existing .o file with -o, though they will create one.
Chris@10 4708 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
Chris@10 4709 rm -f conftest2.*
Chris@10 4710 if { { case "(($ac_try" in
Chris@10 4711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@10 4712 *) ac_try_echo=$ac_try;;
Chris@10 4713 esac
Chris@10 4714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@10 4715 $as_echo "$ac_try_echo"; } >&5
Chris@10 4716 (eval "$ac_try") 2>&5
Chris@10 4717 ac_status=$?
Chris@10 4718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 4719 test $ac_status = 0; } &&
Chris@10 4720 test -f conftest2.$ac_objext && { { case "(($ac_try" in
Chris@10 4721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@10 4722 *) ac_try_echo=$ac_try;;
Chris@10 4723 esac
Chris@10 4724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@10 4725 $as_echo "$ac_try_echo"; } >&5
Chris@10 4726 (eval "$ac_try") 2>&5
Chris@10 4727 ac_status=$?
Chris@10 4728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 4729 test $ac_status = 0; };
Chris@10 4730 then
Chris@10 4731 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
Chris@10 4732 if test "x$CC" != xcc; then
Chris@10 4733 # Test first that cc exists at all.
Chris@10 4734 if { ac_try='cc -c conftest.$ac_ext >&5'
Chris@10 4735 { { case "(($ac_try" in
Chris@10 4736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@10 4737 *) ac_try_echo=$ac_try;;
Chris@10 4738 esac
Chris@10 4739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@10 4740 $as_echo "$ac_try_echo"; } >&5
Chris@10 4741 (eval "$ac_try") 2>&5
Chris@10 4742 ac_status=$?
Chris@10 4743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 4744 test $ac_status = 0; }; }; then
Chris@10 4745 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
Chris@10 4746 rm -f conftest2.*
Chris@10 4747 if { { case "(($ac_try" in
Chris@10 4748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@10 4749 *) ac_try_echo=$ac_try;;
Chris@10 4750 esac
Chris@10 4751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@10 4752 $as_echo "$ac_try_echo"; } >&5
Chris@10 4753 (eval "$ac_try") 2>&5
Chris@10 4754 ac_status=$?
Chris@10 4755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 4756 test $ac_status = 0; } &&
Chris@10 4757 test -f conftest2.$ac_objext && { { case "(($ac_try" in
Chris@10 4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@10 4759 *) ac_try_echo=$ac_try;;
Chris@10 4760 esac
Chris@10 4761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@10 4762 $as_echo "$ac_try_echo"; } >&5
Chris@10 4763 (eval "$ac_try") 2>&5
Chris@10 4764 ac_status=$?
Chris@10 4765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 4766 test $ac_status = 0; };
Chris@10 4767 then
Chris@10 4768 # cc works too.
Chris@10 4769 :
Chris@10 4770 else
Chris@10 4771 # cc exists but doesn't like -o.
Chris@10 4772 eval ac_cv_prog_cc_${ac_cc}_c_o=no
Chris@10 4773 fi
Chris@10 4774 fi
Chris@10 4775 fi
Chris@10 4776 else
Chris@10 4777 eval ac_cv_prog_cc_${ac_cc}_c_o=no
Chris@10 4778 fi
Chris@10 4779 rm -f core conftest*
Chris@10 4780
Chris@10 4781 fi
Chris@10 4782 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
Chris@10 4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@10 4784 $as_echo "yes" >&6; }
Chris@10 4785 else
Chris@10 4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 4787 $as_echo "no" >&6; }
Chris@10 4788
Chris@10 4789 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
Chris@10 4790
Chris@10 4791 fi
Chris@10 4792
Chris@10 4793 # FIXME: we rely on the cache variable name because
Chris@10 4794 # there is no other way.
Chris@10 4795 set dummy $CC
Chris@10 4796 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
Chris@10 4797 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
Chris@10 4798 if test "$am_t" != yes; then
Chris@10 4799 # Losing compiler, so override with the script.
Chris@10 4800 # FIXME: It is wrong to rewrite CC.
Chris@10 4801 # But if we don't then we get into trouble of one sort or another.
Chris@10 4802 # A longer-term fix would be to have automake use am__CC in this case,
Chris@10 4803 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
Chris@10 4804 CC="$am_aux_dir/compile $CC"
Chris@10 4805 fi
Chris@10 4806
Chris@10 4807
Chris@10 4808
Chris@10 4809
Chris@10 4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
Chris@10 4811 $as_echo_n "checking for C compiler vendor... " >&6; }
Chris@10 4812 if ${ax_cv_c_compiler_vendor+:} false; then :
Chris@10 4813 $as_echo_n "(cached) " >&6
Chris@10 4814 else
Chris@10 4815 ax_cv_c_compiler_vendor=unknown
Chris@10 4816 # note: don't check for gcc first since some other compilers define __GNUC__
Chris@10 4817 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@10 4818 vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")"
Chris@10 4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 4820 /* end confdefs.h. */
Chris@10 4821
Chris@10 4822 int
Chris@10 4823 main ()
Chris@10 4824 {
Chris@10 4825
Chris@10 4826 #if !($vencpp)
Chris@10 4827 thisisanerror;
Chris@10 4828 #endif
Chris@10 4829
Chris@10 4830 ;
Chris@10 4831 return 0;
Chris@10 4832 }
Chris@10 4833 _ACEOF
Chris@10 4834 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 4835 ax_cv_c_compiler_vendor=`echo $ventest | cut -d: -f1`; break
Chris@10 4836 fi
Chris@10 4837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 4838 done
Chris@10 4839
Chris@10 4840 fi
Chris@10 4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
Chris@10 4842 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
Chris@10 4843
Chris@10 4844 case $ac_cv_prog_cc_stdc in #(
Chris@10 4845 no) :
Chris@10 4846 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
Chris@10 4847 *) :
Chris@10 4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
Chris@10 4849 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
Chris@10 4850 if ${ac_cv_prog_cc_c99+:} false; then :
Chris@10 4851 $as_echo_n "(cached) " >&6
Chris@10 4852 else
Chris@10 4853 ac_cv_prog_cc_c99=no
Chris@10 4854 ac_save_CC=$CC
Chris@10 4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 4856 /* end confdefs.h. */
Chris@10 4857 #include <stdarg.h>
Chris@10 4858 #include <stdbool.h>
Chris@10 4859 #include <stdlib.h>
Chris@10 4860 #include <wchar.h>
Chris@10 4861 #include <stdio.h>
Chris@10 4862
Chris@10 4863 // Check varargs macros. These examples are taken from C99 6.10.3.5.
Chris@10 4864 #define debug(...) fprintf (stderr, __VA_ARGS__)
Chris@10 4865 #define showlist(...) puts (#__VA_ARGS__)
Chris@10 4866 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
Chris@10 4867 static void
Chris@10 4868 test_varargs_macros (void)
Chris@10 4869 {
Chris@10 4870 int x = 1234;
Chris@10 4871 int y = 5678;
Chris@10 4872 debug ("Flag");
Chris@10 4873 debug ("X = %d\n", x);
Chris@10 4874 showlist (The first, second, and third items.);
Chris@10 4875 report (x>y, "x is %d but y is %d", x, y);
Chris@10 4876 }
Chris@10 4877
Chris@10 4878 // Check long long types.
Chris@10 4879 #define BIG64 18446744073709551615ull
Chris@10 4880 #define BIG32 4294967295ul
Chris@10 4881 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
Chris@10 4882 #if !BIG_OK
Chris@10 4883 your preprocessor is broken;
Chris@10 4884 #endif
Chris@10 4885 #if BIG_OK
Chris@10 4886 #else
Chris@10 4887 your preprocessor is broken;
Chris@10 4888 #endif
Chris@10 4889 static long long int bignum = -9223372036854775807LL;
Chris@10 4890 static unsigned long long int ubignum = BIG64;
Chris@10 4891
Chris@10 4892 struct incomplete_array
Chris@10 4893 {
Chris@10 4894 int datasize;
Chris@10 4895 double data[];
Chris@10 4896 };
Chris@10 4897
Chris@10 4898 struct named_init {
Chris@10 4899 int number;
Chris@10 4900 const wchar_t *name;
Chris@10 4901 double average;
Chris@10 4902 };
Chris@10 4903
Chris@10 4904 typedef const char *ccp;
Chris@10 4905
Chris@10 4906 static inline int
Chris@10 4907 test_restrict (ccp restrict text)
Chris@10 4908 {
Chris@10 4909 // See if C++-style comments work.
Chris@10 4910 // Iterate through items via the restricted pointer.
Chris@10 4911 // Also check for declarations in for loops.
Chris@10 4912 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
Chris@10 4913 continue;
Chris@10 4914 return 0;
Chris@10 4915 }
Chris@10 4916
Chris@10 4917 // Check varargs and va_copy.
Chris@10 4918 static void
Chris@10 4919 test_varargs (const char *format, ...)
Chris@10 4920 {
Chris@10 4921 va_list args;
Chris@10 4922 va_start (args, format);
Chris@10 4923 va_list args_copy;
Chris@10 4924 va_copy (args_copy, args);
Chris@10 4925
Chris@10 4926 const char *str;
Chris@10 4927 int number;
Chris@10 4928 float fnumber;
Chris@10 4929
Chris@10 4930 while (*format)
Chris@10 4931 {
Chris@10 4932 switch (*format++)
Chris@10 4933 {
Chris@10 4934 case 's': // string
Chris@10 4935 str = va_arg (args_copy, const char *);
Chris@10 4936 break;
Chris@10 4937 case 'd': // int
Chris@10 4938 number = va_arg (args_copy, int);
Chris@10 4939 break;
Chris@10 4940 case 'f': // float
Chris@10 4941 fnumber = va_arg (args_copy, double);
Chris@10 4942 break;
Chris@10 4943 default:
Chris@10 4944 break;
Chris@10 4945 }
Chris@10 4946 }
Chris@10 4947 va_end (args_copy);
Chris@10 4948 va_end (args);
Chris@10 4949 }
Chris@10 4950
Chris@10 4951 int
Chris@10 4952 main ()
Chris@10 4953 {
Chris@10 4954
Chris@10 4955 // Check bool.
Chris@10 4956 _Bool success = false;
Chris@10 4957
Chris@10 4958 // Check restrict.
Chris@10 4959 if (test_restrict ("String literal") == 0)
Chris@10 4960 success = true;
Chris@10 4961 char *restrict newvar = "Another string";
Chris@10 4962
Chris@10 4963 // Check varargs.
Chris@10 4964 test_varargs ("s, d' f .", "string", 65, 34.234);
Chris@10 4965 test_varargs_macros ();
Chris@10 4966
Chris@10 4967 // Check flexible array members.
Chris@10 4968 struct incomplete_array *ia =
Chris@10 4969 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
Chris@10 4970 ia->datasize = 10;
Chris@10 4971 for (int i = 0; i < ia->datasize; ++i)
Chris@10 4972 ia->data[i] = i * 1.234;
Chris@10 4973
Chris@10 4974 // Check named initializers.
Chris@10 4975 struct named_init ni = {
Chris@10 4976 .number = 34,
Chris@10 4977 .name = L"Test wide string",
Chris@10 4978 .average = 543.34343,
Chris@10 4979 };
Chris@10 4980
Chris@10 4981 ni.number = 58;
Chris@10 4982
Chris@10 4983 int dynamic_array[ni.number];
Chris@10 4984 dynamic_array[ni.number - 1] = 543;
Chris@10 4985
Chris@10 4986 // work around unused variable warnings
Chris@10 4987 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
Chris@10 4988 || dynamic_array[ni.number - 1] != 543);
Chris@10 4989
Chris@10 4990 ;
Chris@10 4991 return 0;
Chris@10 4992 }
Chris@10 4993 _ACEOF
Chris@10 4994 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
Chris@10 4995 do
Chris@10 4996 CC="$ac_save_CC $ac_arg"
Chris@10 4997 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 4998 ac_cv_prog_cc_c99=$ac_arg
Chris@10 4999 fi
Chris@10 5000 rm -f core conftest.err conftest.$ac_objext
Chris@10 5001 test "x$ac_cv_prog_cc_c99" != "xno" && break
Chris@10 5002 done
Chris@10 5003 rm -f conftest.$ac_ext
Chris@10 5004 CC=$ac_save_CC
Chris@10 5005
Chris@10 5006 fi
Chris@10 5007 # AC_CACHE_VAL
Chris@10 5008 case "x$ac_cv_prog_cc_c99" in
Chris@10 5009 x)
Chris@10 5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Chris@10 5011 $as_echo "none needed" >&6; } ;;
Chris@10 5012 xno)
Chris@10 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Chris@10 5014 $as_echo "unsupported" >&6; } ;;
Chris@10 5015 *)
Chris@10 5016 CC="$CC $ac_cv_prog_cc_c99"
Chris@10 5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
Chris@10 5018 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
Chris@10 5019 esac
Chris@10 5020 if test "x$ac_cv_prog_cc_c99" != xno; then :
Chris@10 5021 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
Chris@10 5022 else
Chris@10 5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Chris@10 5024 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Chris@10 5025 if ${ac_cv_prog_cc_c89+:} false; then :
Chris@10 5026 $as_echo_n "(cached) " >&6
Chris@10 5027 else
Chris@10 5028 ac_cv_prog_cc_c89=no
Chris@10 5029 ac_save_CC=$CC
Chris@10 5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 5031 /* end confdefs.h. */
Chris@10 5032 #include <stdarg.h>
Chris@10 5033 #include <stdio.h>
Chris@10 5034 struct stat;
Chris@10 5035 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
Chris@10 5036 struct buf { int x; };
Chris@10 5037 FILE * (*rcsopen) (struct buf *, struct stat *, int);
Chris@10 5038 static char *e (p, i)
Chris@10 5039 char **p;
Chris@10 5040 int i;
Chris@10 5041 {
Chris@10 5042 return p[i];
Chris@10 5043 }
Chris@10 5044 static char *f (char * (*g) (char **, int), char **p, ...)
Chris@10 5045 {
Chris@10 5046 char *s;
Chris@10 5047 va_list v;
Chris@10 5048 va_start (v,p);
Chris@10 5049 s = g (p, va_arg (v,int));
Chris@10 5050 va_end (v);
Chris@10 5051 return s;
Chris@10 5052 }
Chris@10 5053
Chris@10 5054 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
Chris@10 5055 function prototypes and stuff, but not '\xHH' hex character constants.
Chris@10 5056 These don't provoke an error unfortunately, instead are silently treated
Chris@10 5057 as 'x'. The following induces an error, until -std is added to get
Chris@10 5058 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
Chris@10 5059 array size at least. It's necessary to write '\x00'==0 to get something
Chris@10 5060 that's true only with -std. */
Chris@10 5061 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
Chris@10 5062
Chris@10 5063 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
Chris@10 5064 inside strings and character constants. */
Chris@10 5065 #define FOO(x) 'x'
Chris@10 5066 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
Chris@10 5067
Chris@10 5068 int test (int i, double x);
Chris@10 5069 struct s1 {int (*f) (int a);};
Chris@10 5070 struct s2 {int (*f) (double a);};
Chris@10 5071 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
Chris@10 5072 int argc;
Chris@10 5073 char **argv;
Chris@10 5074 int
Chris@10 5075 main ()
Chris@10 5076 {
Chris@10 5077 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
Chris@10 5078 ;
Chris@10 5079 return 0;
Chris@10 5080 }
Chris@10 5081 _ACEOF
Chris@10 5082 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
Chris@10 5083 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Chris@10 5084 do
Chris@10 5085 CC="$ac_save_CC $ac_arg"
Chris@10 5086 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 5087 ac_cv_prog_cc_c89=$ac_arg
Chris@10 5088 fi
Chris@10 5089 rm -f core conftest.err conftest.$ac_objext
Chris@10 5090 test "x$ac_cv_prog_cc_c89" != "xno" && break
Chris@10 5091 done
Chris@10 5092 rm -f conftest.$ac_ext
Chris@10 5093 CC=$ac_save_CC
Chris@10 5094
Chris@10 5095 fi
Chris@10 5096 # AC_CACHE_VAL
Chris@10 5097 case "x$ac_cv_prog_cc_c89" in
Chris@10 5098 x)
Chris@10 5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Chris@10 5100 $as_echo "none needed" >&6; } ;;
Chris@10 5101 xno)
Chris@10 5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Chris@10 5103 $as_echo "unsupported" >&6; } ;;
Chris@10 5104 *)
Chris@10 5105 CC="$CC $ac_cv_prog_cc_c89"
Chris@10 5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Chris@10 5107 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Chris@10 5108 esac
Chris@10 5109 if test "x$ac_cv_prog_cc_c89" != xno; then :
Chris@10 5110 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
Chris@10 5111 else
Chris@10 5112 ac_cv_prog_cc_stdc=no
Chris@10 5113 fi
Chris@10 5114
Chris@10 5115 fi
Chris@10 5116 ;;
Chris@10 5117 esac
Chris@10 5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
Chris@10 5119 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
Chris@10 5120 if ${ac_cv_prog_cc_stdc+:} false; then :
Chris@10 5121 $as_echo_n "(cached) " >&6
Chris@10 5122 fi
Chris@10 5123
Chris@10 5124 case $ac_cv_prog_cc_stdc in #(
Chris@10 5125 no) :
Chris@10 5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Chris@10 5127 $as_echo "unsupported" >&6; } ;; #(
Chris@10 5128 '') :
Chris@10 5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Chris@10 5130 $as_echo "none needed" >&6; } ;; #(
Chris@10 5131 *) :
Chris@10 5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
Chris@10 5133 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
Chris@10 5134 esac
Chris@10 5135
Chris@10 5136
Chris@10 5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Chris@10 5138 $as_echo_n "checking whether ln -s works... " >&6; }
Chris@10 5139 LN_S=$as_ln_s
Chris@10 5140 if test "$LN_S" = "ln -s"; then
Chris@10 5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@10 5142 $as_echo "yes" >&6; }
Chris@10 5143 else
Chris@10 5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Chris@10 5145 $as_echo "no, using $LN_S" >&6; }
Chris@10 5146 fi
Chris@10 5147
Chris@10 5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Chris@10 5149 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
Chris@10 5150 set x ${MAKE-make}
Chris@10 5151 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Chris@10 5152 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Chris@10 5153 $as_echo_n "(cached) " >&6
Chris@10 5154 else
Chris@10 5155 cat >conftest.make <<\_ACEOF
Chris@10 5156 SHELL = /bin/sh
Chris@10 5157 all:
Chris@10 5158 @echo '@@@%%%=$(MAKE)=@@@%%%'
Chris@10 5159 _ACEOF
Chris@10 5160 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Chris@10 5161 case `${MAKE-make} -f conftest.make 2>/dev/null` in
Chris@10 5162 *@@@%%%=?*=@@@%%%*)
Chris@10 5163 eval ac_cv_prog_make_${ac_make}_set=yes;;
Chris@10 5164 *)
Chris@10 5165 eval ac_cv_prog_make_${ac_make}_set=no;;
Chris@10 5166 esac
Chris@10 5167 rm -f conftest.make
Chris@10 5168 fi
Chris@10 5169 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Chris@10 5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@10 5171 $as_echo "yes" >&6; }
Chris@10 5172 SET_MAKE=
Chris@10 5173 else
Chris@10 5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 5175 $as_echo "no" >&6; }
Chris@10 5176 SET_MAKE="MAKE=${MAKE-make}"
Chris@10 5177 fi
Chris@10 5178
Chris@10 5179 enable_win32_dll=yes
Chris@10 5180
Chris@10 5181 case $host in
Chris@10 5182 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
Chris@10 5183 if test -n "$ac_tool_prefix"; then
Chris@10 5184 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
Chris@10 5185 set dummy ${ac_tool_prefix}as; ac_word=$2
Chris@10 5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 5187 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 5188 if ${ac_cv_prog_AS+:} false; then :
Chris@10 5189 $as_echo_n "(cached) " >&6
Chris@10 5190 else
Chris@10 5191 if test -n "$AS"; then
Chris@10 5192 ac_cv_prog_AS="$AS" # Let the user override the test.
Chris@10 5193 else
Chris@10 5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 5195 for as_dir in $PATH
Chris@10 5196 do
Chris@10 5197 IFS=$as_save_IFS
Chris@10 5198 test -z "$as_dir" && as_dir=.
Chris@10 5199 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 5200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 5201 ac_cv_prog_AS="${ac_tool_prefix}as"
Chris@10 5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 5203 break 2
Chris@10 5204 fi
Chris@10 5205 done
Chris@10 5206 done
Chris@10 5207 IFS=$as_save_IFS
Chris@10 5208
Chris@10 5209 fi
Chris@10 5210 fi
Chris@10 5211 AS=$ac_cv_prog_AS
Chris@10 5212 if test -n "$AS"; then
Chris@10 5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
Chris@10 5214 $as_echo "$AS" >&6; }
Chris@10 5215 else
Chris@10 5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 5217 $as_echo "no" >&6; }
Chris@10 5218 fi
Chris@10 5219
Chris@10 5220
Chris@10 5221 fi
Chris@10 5222 if test -z "$ac_cv_prog_AS"; then
Chris@10 5223 ac_ct_AS=$AS
Chris@10 5224 # Extract the first word of "as", so it can be a program name with args.
Chris@10 5225 set dummy as; ac_word=$2
Chris@10 5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 5227 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 5228 if ${ac_cv_prog_ac_ct_AS+:} false; then :
Chris@10 5229 $as_echo_n "(cached) " >&6
Chris@10 5230 else
Chris@10 5231 if test -n "$ac_ct_AS"; then
Chris@10 5232 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
Chris@10 5233 else
Chris@10 5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 5235 for as_dir in $PATH
Chris@10 5236 do
Chris@10 5237 IFS=$as_save_IFS
Chris@10 5238 test -z "$as_dir" && as_dir=.
Chris@10 5239 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 5240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 5241 ac_cv_prog_ac_ct_AS="as"
Chris@10 5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 5243 break 2
Chris@10 5244 fi
Chris@10 5245 done
Chris@10 5246 done
Chris@10 5247 IFS=$as_save_IFS
Chris@10 5248
Chris@10 5249 fi
Chris@10 5250 fi
Chris@10 5251 ac_ct_AS=$ac_cv_prog_ac_ct_AS
Chris@10 5252 if test -n "$ac_ct_AS"; then
Chris@10 5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
Chris@10 5254 $as_echo "$ac_ct_AS" >&6; }
Chris@10 5255 else
Chris@10 5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 5257 $as_echo "no" >&6; }
Chris@10 5258 fi
Chris@10 5259
Chris@10 5260 if test "x$ac_ct_AS" = x; then
Chris@10 5261 AS="false"
Chris@10 5262 else
Chris@10 5263 case $cross_compiling:$ac_tool_warned in
Chris@10 5264 yes:)
Chris@10 5265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@10 5266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@10 5267 ac_tool_warned=yes ;;
Chris@10 5268 esac
Chris@10 5269 AS=$ac_ct_AS
Chris@10 5270 fi
Chris@10 5271 else
Chris@10 5272 AS="$ac_cv_prog_AS"
Chris@10 5273 fi
Chris@10 5274
Chris@10 5275 if test -n "$ac_tool_prefix"; then
Chris@10 5276 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
Chris@10 5277 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Chris@10 5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 5279 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 5280 if ${ac_cv_prog_DLLTOOL+:} false; then :
Chris@10 5281 $as_echo_n "(cached) " >&6
Chris@10 5282 else
Chris@10 5283 if test -n "$DLLTOOL"; then
Chris@10 5284 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
Chris@10 5285 else
Chris@10 5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 5287 for as_dir in $PATH
Chris@10 5288 do
Chris@10 5289 IFS=$as_save_IFS
Chris@10 5290 test -z "$as_dir" && as_dir=.
Chris@10 5291 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 5292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 5293 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
Chris@10 5294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 5295 break 2
Chris@10 5296 fi
Chris@10 5297 done
Chris@10 5298 done
Chris@10 5299 IFS=$as_save_IFS
Chris@10 5300
Chris@10 5301 fi
Chris@10 5302 fi
Chris@10 5303 DLLTOOL=$ac_cv_prog_DLLTOOL
Chris@10 5304 if test -n "$DLLTOOL"; then
Chris@10 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
Chris@10 5306 $as_echo "$DLLTOOL" >&6; }
Chris@10 5307 else
Chris@10 5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 5309 $as_echo "no" >&6; }
Chris@10 5310 fi
Chris@10 5311
Chris@10 5312
Chris@10 5313 fi
Chris@10 5314 if test -z "$ac_cv_prog_DLLTOOL"; then
Chris@10 5315 ac_ct_DLLTOOL=$DLLTOOL
Chris@10 5316 # Extract the first word of "dlltool", so it can be a program name with args.
Chris@10 5317 set dummy dlltool; ac_word=$2
Chris@10 5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 5319 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 5320 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
Chris@10 5321 $as_echo_n "(cached) " >&6
Chris@10 5322 else
Chris@10 5323 if test -n "$ac_ct_DLLTOOL"; then
Chris@10 5324 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
Chris@10 5325 else
Chris@10 5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 5327 for as_dir in $PATH
Chris@10 5328 do
Chris@10 5329 IFS=$as_save_IFS
Chris@10 5330 test -z "$as_dir" && as_dir=.
Chris@10 5331 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 5332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 5333 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
Chris@10 5334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 5335 break 2
Chris@10 5336 fi
Chris@10 5337 done
Chris@10 5338 done
Chris@10 5339 IFS=$as_save_IFS
Chris@10 5340
Chris@10 5341 fi
Chris@10 5342 fi
Chris@10 5343 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
Chris@10 5344 if test -n "$ac_ct_DLLTOOL"; then
Chris@10 5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
Chris@10 5346 $as_echo "$ac_ct_DLLTOOL" >&6; }
Chris@10 5347 else
Chris@10 5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 5349 $as_echo "no" >&6; }
Chris@10 5350 fi
Chris@10 5351
Chris@10 5352 if test "x$ac_ct_DLLTOOL" = x; then
Chris@10 5353 DLLTOOL="false"
Chris@10 5354 else
Chris@10 5355 case $cross_compiling:$ac_tool_warned in
Chris@10 5356 yes:)
Chris@10 5357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@10 5358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@10 5359 ac_tool_warned=yes ;;
Chris@10 5360 esac
Chris@10 5361 DLLTOOL=$ac_ct_DLLTOOL
Chris@10 5362 fi
Chris@10 5363 else
Chris@10 5364 DLLTOOL="$ac_cv_prog_DLLTOOL"
Chris@10 5365 fi
Chris@10 5366
Chris@10 5367 if test -n "$ac_tool_prefix"; then
Chris@10 5368 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
Chris@10 5369 set dummy ${ac_tool_prefix}objdump; ac_word=$2
Chris@10 5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 5371 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 5372 if ${ac_cv_prog_OBJDUMP+:} false; then :
Chris@10 5373 $as_echo_n "(cached) " >&6
Chris@10 5374 else
Chris@10 5375 if test -n "$OBJDUMP"; then
Chris@10 5376 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
Chris@10 5377 else
Chris@10 5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 5379 for as_dir in $PATH
Chris@10 5380 do
Chris@10 5381 IFS=$as_save_IFS
Chris@10 5382 test -z "$as_dir" && as_dir=.
Chris@10 5383 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 5384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 5385 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Chris@10 5386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 5387 break 2
Chris@10 5388 fi
Chris@10 5389 done
Chris@10 5390 done
Chris@10 5391 IFS=$as_save_IFS
Chris@10 5392
Chris@10 5393 fi
Chris@10 5394 fi
Chris@10 5395 OBJDUMP=$ac_cv_prog_OBJDUMP
Chris@10 5396 if test -n "$OBJDUMP"; then
Chris@10 5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
Chris@10 5398 $as_echo "$OBJDUMP" >&6; }
Chris@10 5399 else
Chris@10 5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 5401 $as_echo "no" >&6; }
Chris@10 5402 fi
Chris@10 5403
Chris@10 5404
Chris@10 5405 fi
Chris@10 5406 if test -z "$ac_cv_prog_OBJDUMP"; then
Chris@10 5407 ac_ct_OBJDUMP=$OBJDUMP
Chris@10 5408 # Extract the first word of "objdump", so it can be a program name with args.
Chris@10 5409 set dummy objdump; ac_word=$2
Chris@10 5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 5411 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 5412 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Chris@10 5413 $as_echo_n "(cached) " >&6
Chris@10 5414 else
Chris@10 5415 if test -n "$ac_ct_OBJDUMP"; then
Chris@10 5416 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
Chris@10 5417 else
Chris@10 5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 5419 for as_dir in $PATH
Chris@10 5420 do
Chris@10 5421 IFS=$as_save_IFS
Chris@10 5422 test -z "$as_dir" && as_dir=.
Chris@10 5423 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 5424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 5425 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Chris@10 5426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 5427 break 2
Chris@10 5428 fi
Chris@10 5429 done
Chris@10 5430 done
Chris@10 5431 IFS=$as_save_IFS
Chris@10 5432
Chris@10 5433 fi
Chris@10 5434 fi
Chris@10 5435 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
Chris@10 5436 if test -n "$ac_ct_OBJDUMP"; then
Chris@10 5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
Chris@10 5438 $as_echo "$ac_ct_OBJDUMP" >&6; }
Chris@10 5439 else
Chris@10 5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 5441 $as_echo "no" >&6; }
Chris@10 5442 fi
Chris@10 5443
Chris@10 5444 if test "x$ac_ct_OBJDUMP" = x; then
Chris@10 5445 OBJDUMP="false"
Chris@10 5446 else
Chris@10 5447 case $cross_compiling:$ac_tool_warned in
Chris@10 5448 yes:)
Chris@10 5449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@10 5450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@10 5451 ac_tool_warned=yes ;;
Chris@10 5452 esac
Chris@10 5453 OBJDUMP=$ac_ct_OBJDUMP
Chris@10 5454 fi
Chris@10 5455 else
Chris@10 5456 OBJDUMP="$ac_cv_prog_OBJDUMP"
Chris@10 5457 fi
Chris@10 5458
Chris@10 5459 ;;
Chris@10 5460 esac
Chris@10 5461
Chris@10 5462 test -z "$AS" && AS=as
Chris@10 5463
Chris@10 5464
Chris@10 5465
Chris@10 5466
Chris@10 5467
Chris@10 5468 test -z "$DLLTOOL" && DLLTOOL=dlltool
Chris@10 5469
Chris@10 5470
Chris@10 5471
Chris@10 5472
Chris@10 5473
Chris@10 5474 test -z "$OBJDUMP" && OBJDUMP=objdump
Chris@10 5475
Chris@10 5476
Chris@10 5477
Chris@10 5478
Chris@10 5479
Chris@10 5480
Chris@10 5481
Chris@10 5482 case `pwd` in
Chris@10 5483 *\ * | *\ *)
Chris@10 5484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
Chris@10 5485 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
Chris@10 5486 esac
Chris@10 5487
Chris@10 5488
Chris@10 5489
Chris@10 5490 macro_version='2.4.2'
Chris@10 5491 macro_revision='1.3337'
Chris@10 5492
Chris@10 5493
Chris@10 5494
Chris@10 5495
Chris@10 5496
Chris@10 5497
Chris@10 5498
Chris@10 5499
Chris@10 5500
Chris@10 5501
Chris@10 5502
Chris@10 5503
Chris@10 5504
Chris@10 5505 ltmain="$ac_aux_dir/ltmain.sh"
Chris@10 5506
Chris@10 5507 # Backslashify metacharacters that are still active within
Chris@10 5508 # double-quoted strings.
Chris@10 5509 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
Chris@10 5510
Chris@10 5511 # Same as above, but do not quote variable references.
Chris@10 5512 double_quote_subst='s/\(["`\\]\)/\\\1/g'
Chris@10 5513
Chris@10 5514 # Sed substitution to delay expansion of an escaped shell variable in a
Chris@10 5515 # double_quote_subst'ed string.
Chris@10 5516 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
Chris@10 5517
Chris@10 5518 # Sed substitution to delay expansion of an escaped single quote.
Chris@10 5519 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
Chris@10 5520
Chris@10 5521 # Sed substitution to avoid accidental globbing in evaled expressions
Chris@10 5522 no_glob_subst='s/\*/\\\*/g'
Chris@10 5523
Chris@10 5524 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@10 5525 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
Chris@10 5526 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
Chris@10 5527
Chris@10 5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
Chris@10 5529 $as_echo_n "checking how to print strings... " >&6; }
Chris@10 5530 # Test print first, because it will be a builtin if present.
Chris@10 5531 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
Chris@10 5532 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
Chris@10 5533 ECHO='print -r --'
Chris@10 5534 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
Chris@10 5535 ECHO='printf %s\n'
Chris@10 5536 else
Chris@10 5537 # Use this function as a fallback that always works.
Chris@10 5538 func_fallback_echo ()
Chris@10 5539 {
Chris@10 5540 eval 'cat <<_LTECHO_EOF
Chris@10 5541 $1
Chris@10 5542 _LTECHO_EOF'
Chris@10 5543 }
Chris@10 5544 ECHO='func_fallback_echo'
Chris@10 5545 fi
Chris@10 5546
Chris@10 5547 # func_echo_all arg...
Chris@10 5548 # Invoke $ECHO with all args, space-separated.
Chris@10 5549 func_echo_all ()
Chris@10 5550 {
Chris@10 5551 $ECHO ""
Chris@10 5552 }
Chris@10 5553
Chris@10 5554 case "$ECHO" in
Chris@10 5555 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
Chris@10 5556 $as_echo "printf" >&6; } ;;
Chris@10 5557 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
Chris@10 5558 $as_echo "print -r" >&6; } ;;
Chris@10 5559 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
Chris@10 5560 $as_echo "cat" >&6; } ;;
Chris@10 5561 esac
Chris@10 5562
Chris@10 5563
Chris@10 5564
Chris@10 5565
Chris@10 5566
Chris@10 5567
Chris@10 5568
Chris@10 5569
Chris@10 5570
Chris@10 5571
Chris@10 5572
Chris@10 5573
Chris@10 5574
Chris@10 5575
Chris@10 5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
Chris@10 5577 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
Chris@10 5578 if ${ac_cv_path_SED+:} false; then :
Chris@10 5579 $as_echo_n "(cached) " >&6
Chris@10 5580 else
Chris@10 5581 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
Chris@10 5582 for ac_i in 1 2 3 4 5 6 7; do
Chris@10 5583 ac_script="$ac_script$as_nl$ac_script"
Chris@10 5584 done
Chris@10 5585 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
Chris@10 5586 { ac_script=; unset ac_script;}
Chris@10 5587 if test -z "$SED"; then
Chris@10 5588 ac_path_SED_found=false
Chris@10 5589 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@10 5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 5591 for as_dir in $PATH
Chris@10 5592 do
Chris@10 5593 IFS=$as_save_IFS
Chris@10 5594 test -z "$as_dir" && as_dir=.
Chris@10 5595 for ac_prog in sed gsed; do
Chris@10 5596 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 5597 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Chris@10 5598 as_fn_executable_p "$ac_path_SED" || continue
Chris@10 5599 # Check for GNU ac_path_SED and select it if it is found.
Chris@10 5600 # Check for GNU $ac_path_SED
Chris@10 5601 case `"$ac_path_SED" --version 2>&1` in
Chris@10 5602 *GNU*)
Chris@10 5603 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
Chris@10 5604 *)
Chris@10 5605 ac_count=0
Chris@10 5606 $as_echo_n 0123456789 >"conftest.in"
Chris@10 5607 while :
Chris@10 5608 do
Chris@10 5609 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@10 5610 mv "conftest.tmp" "conftest.in"
Chris@10 5611 cp "conftest.in" "conftest.nl"
Chris@10 5612 $as_echo '' >> "conftest.nl"
Chris@10 5613 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@10 5614 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@10 5615 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@10 5616 if test $ac_count -gt ${ac_path_SED_max-0}; then
Chris@10 5617 # Best one so far, save it but keep looking for a better one
Chris@10 5618 ac_cv_path_SED="$ac_path_SED"
Chris@10 5619 ac_path_SED_max=$ac_count
Chris@10 5620 fi
Chris@10 5621 # 10*(2^10) chars as input seems more than enough
Chris@10 5622 test $ac_count -gt 10 && break
Chris@10 5623 done
Chris@10 5624 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@10 5625 esac
Chris@10 5626
Chris@10 5627 $ac_path_SED_found && break 3
Chris@10 5628 done
Chris@10 5629 done
Chris@10 5630 done
Chris@10 5631 IFS=$as_save_IFS
Chris@10 5632 if test -z "$ac_cv_path_SED"; then
Chris@10 5633 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Chris@10 5634 fi
Chris@10 5635 else
Chris@10 5636 ac_cv_path_SED=$SED
Chris@10 5637 fi
Chris@10 5638
Chris@10 5639 fi
Chris@10 5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
Chris@10 5641 $as_echo "$ac_cv_path_SED" >&6; }
Chris@10 5642 SED="$ac_cv_path_SED"
Chris@10 5643 rm -f conftest.sed
Chris@10 5644
Chris@10 5645 test -z "$SED" && SED=sed
Chris@10 5646 Xsed="$SED -e 1s/^X//"
Chris@10 5647
Chris@10 5648
Chris@10 5649
Chris@10 5650
Chris@10 5651
Chris@10 5652
Chris@10 5653
Chris@10 5654
Chris@10 5655
Chris@10 5656
Chris@10 5657
Chris@10 5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Chris@10 5659 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Chris@10 5660 if ${ac_cv_path_GREP+:} false; then :
Chris@10 5661 $as_echo_n "(cached) " >&6
Chris@10 5662 else
Chris@10 5663 if test -z "$GREP"; then
Chris@10 5664 ac_path_GREP_found=false
Chris@10 5665 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@10 5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 5667 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@10 5668 do
Chris@10 5669 IFS=$as_save_IFS
Chris@10 5670 test -z "$as_dir" && as_dir=.
Chris@10 5671 for ac_prog in grep ggrep; do
Chris@10 5672 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 5673 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@10 5674 as_fn_executable_p "$ac_path_GREP" || continue
Chris@10 5675 # Check for GNU ac_path_GREP and select it if it is found.
Chris@10 5676 # Check for GNU $ac_path_GREP
Chris@10 5677 case `"$ac_path_GREP" --version 2>&1` in
Chris@10 5678 *GNU*)
Chris@10 5679 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
Chris@10 5680 *)
Chris@10 5681 ac_count=0
Chris@10 5682 $as_echo_n 0123456789 >"conftest.in"
Chris@10 5683 while :
Chris@10 5684 do
Chris@10 5685 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@10 5686 mv "conftest.tmp" "conftest.in"
Chris@10 5687 cp "conftest.in" "conftest.nl"
Chris@10 5688 $as_echo 'GREP' >> "conftest.nl"
Chris@10 5689 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@10 5690 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@10 5691 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@10 5692 if test $ac_count -gt ${ac_path_GREP_max-0}; then
Chris@10 5693 # Best one so far, save it but keep looking for a better one
Chris@10 5694 ac_cv_path_GREP="$ac_path_GREP"
Chris@10 5695 ac_path_GREP_max=$ac_count
Chris@10 5696 fi
Chris@10 5697 # 10*(2^10) chars as input seems more than enough
Chris@10 5698 test $ac_count -gt 10 && break
Chris@10 5699 done
Chris@10 5700 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@10 5701 esac
Chris@10 5702
Chris@10 5703 $ac_path_GREP_found && break 3
Chris@10 5704 done
Chris@10 5705 done
Chris@10 5706 done
Chris@10 5707 IFS=$as_save_IFS
Chris@10 5708 if test -z "$ac_cv_path_GREP"; then
Chris@10 5709 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@10 5710 fi
Chris@10 5711 else
Chris@10 5712 ac_cv_path_GREP=$GREP
Chris@10 5713 fi
Chris@10 5714
Chris@10 5715 fi
Chris@10 5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Chris@10 5717 $as_echo "$ac_cv_path_GREP" >&6; }
Chris@10 5718 GREP="$ac_cv_path_GREP"
Chris@10 5719
Chris@10 5720
Chris@10 5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Chris@10 5722 $as_echo_n "checking for egrep... " >&6; }
Chris@10 5723 if ${ac_cv_path_EGREP+:} false; then :
Chris@10 5724 $as_echo_n "(cached) " >&6
Chris@10 5725 else
Chris@10 5726 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
Chris@10 5727 then ac_cv_path_EGREP="$GREP -E"
Chris@10 5728 else
Chris@10 5729 if test -z "$EGREP"; then
Chris@10 5730 ac_path_EGREP_found=false
Chris@10 5731 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@10 5732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 5733 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@10 5734 do
Chris@10 5735 IFS=$as_save_IFS
Chris@10 5736 test -z "$as_dir" && as_dir=.
Chris@10 5737 for ac_prog in egrep; do
Chris@10 5738 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 5739 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@10 5740 as_fn_executable_p "$ac_path_EGREP" || continue
Chris@10 5741 # Check for GNU ac_path_EGREP and select it if it is found.
Chris@10 5742 # Check for GNU $ac_path_EGREP
Chris@10 5743 case `"$ac_path_EGREP" --version 2>&1` in
Chris@10 5744 *GNU*)
Chris@10 5745 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
Chris@10 5746 *)
Chris@10 5747 ac_count=0
Chris@10 5748 $as_echo_n 0123456789 >"conftest.in"
Chris@10 5749 while :
Chris@10 5750 do
Chris@10 5751 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@10 5752 mv "conftest.tmp" "conftest.in"
Chris@10 5753 cp "conftest.in" "conftest.nl"
Chris@10 5754 $as_echo 'EGREP' >> "conftest.nl"
Chris@10 5755 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@10 5756 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@10 5757 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@10 5758 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
Chris@10 5759 # Best one so far, save it but keep looking for a better one
Chris@10 5760 ac_cv_path_EGREP="$ac_path_EGREP"
Chris@10 5761 ac_path_EGREP_max=$ac_count
Chris@10 5762 fi
Chris@10 5763 # 10*(2^10) chars as input seems more than enough
Chris@10 5764 test $ac_count -gt 10 && break
Chris@10 5765 done
Chris@10 5766 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@10 5767 esac
Chris@10 5768
Chris@10 5769 $ac_path_EGREP_found && break 3
Chris@10 5770 done
Chris@10 5771 done
Chris@10 5772 done
Chris@10 5773 IFS=$as_save_IFS
Chris@10 5774 if test -z "$ac_cv_path_EGREP"; then
Chris@10 5775 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@10 5776 fi
Chris@10 5777 else
Chris@10 5778 ac_cv_path_EGREP=$EGREP
Chris@10 5779 fi
Chris@10 5780
Chris@10 5781 fi
Chris@10 5782 fi
Chris@10 5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Chris@10 5784 $as_echo "$ac_cv_path_EGREP" >&6; }
Chris@10 5785 EGREP="$ac_cv_path_EGREP"
Chris@10 5786
Chris@10 5787
Chris@10 5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
Chris@10 5789 $as_echo_n "checking for fgrep... " >&6; }
Chris@10 5790 if ${ac_cv_path_FGREP+:} false; then :
Chris@10 5791 $as_echo_n "(cached) " >&6
Chris@10 5792 else
Chris@10 5793 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
Chris@10 5794 then ac_cv_path_FGREP="$GREP -F"
Chris@10 5795 else
Chris@10 5796 if test -z "$FGREP"; then
Chris@10 5797 ac_path_FGREP_found=false
Chris@10 5798 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@10 5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 5800 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@10 5801 do
Chris@10 5802 IFS=$as_save_IFS
Chris@10 5803 test -z "$as_dir" && as_dir=.
Chris@10 5804 for ac_prog in fgrep; do
Chris@10 5805 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 5806 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@10 5807 as_fn_executable_p "$ac_path_FGREP" || continue
Chris@10 5808 # Check for GNU ac_path_FGREP and select it if it is found.
Chris@10 5809 # Check for GNU $ac_path_FGREP
Chris@10 5810 case `"$ac_path_FGREP" --version 2>&1` in
Chris@10 5811 *GNU*)
Chris@10 5812 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
Chris@10 5813 *)
Chris@10 5814 ac_count=0
Chris@10 5815 $as_echo_n 0123456789 >"conftest.in"
Chris@10 5816 while :
Chris@10 5817 do
Chris@10 5818 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@10 5819 mv "conftest.tmp" "conftest.in"
Chris@10 5820 cp "conftest.in" "conftest.nl"
Chris@10 5821 $as_echo 'FGREP' >> "conftest.nl"
Chris@10 5822 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@10 5823 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@10 5824 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@10 5825 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
Chris@10 5826 # Best one so far, save it but keep looking for a better one
Chris@10 5827 ac_cv_path_FGREP="$ac_path_FGREP"
Chris@10 5828 ac_path_FGREP_max=$ac_count
Chris@10 5829 fi
Chris@10 5830 # 10*(2^10) chars as input seems more than enough
Chris@10 5831 test $ac_count -gt 10 && break
Chris@10 5832 done
Chris@10 5833 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@10 5834 esac
Chris@10 5835
Chris@10 5836 $ac_path_FGREP_found && break 3
Chris@10 5837 done
Chris@10 5838 done
Chris@10 5839 done
Chris@10 5840 IFS=$as_save_IFS
Chris@10 5841 if test -z "$ac_cv_path_FGREP"; then
Chris@10 5842 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@10 5843 fi
Chris@10 5844 else
Chris@10 5845 ac_cv_path_FGREP=$FGREP
Chris@10 5846 fi
Chris@10 5847
Chris@10 5848 fi
Chris@10 5849 fi
Chris@10 5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
Chris@10 5851 $as_echo "$ac_cv_path_FGREP" >&6; }
Chris@10 5852 FGREP="$ac_cv_path_FGREP"
Chris@10 5853
Chris@10 5854
Chris@10 5855 test -z "$GREP" && GREP=grep
Chris@10 5856
Chris@10 5857
Chris@10 5858
Chris@10 5859
Chris@10 5860
Chris@10 5861
Chris@10 5862
Chris@10 5863
Chris@10 5864
Chris@10 5865
Chris@10 5866
Chris@10 5867
Chris@10 5868
Chris@10 5869
Chris@10 5870
Chris@10 5871
Chris@10 5872
Chris@10 5873
Chris@10 5874
Chris@10 5875 # Check whether --with-gnu-ld was given.
Chris@10 5876 if test "${with_gnu_ld+set}" = set; then :
Chris@10 5877 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Chris@10 5878 else
Chris@10 5879 with_gnu_ld=no
Chris@10 5880 fi
Chris@10 5881
Chris@10 5882 ac_prog=ld
Chris@10 5883 if test "$GCC" = yes; then
Chris@10 5884 # Check if gcc -print-prog-name=ld gives a path.
Chris@10 5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
Chris@10 5886 $as_echo_n "checking for ld used by $CC... " >&6; }
Chris@10 5887 case $host in
Chris@10 5888 *-*-mingw*)
Chris@10 5889 # gcc leaves a trailing carriage return which upsets mingw
Chris@10 5890 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
Chris@10 5891 *)
Chris@10 5892 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
Chris@10 5893 esac
Chris@10 5894 case $ac_prog in
Chris@10 5895 # Accept absolute paths.
Chris@10 5896 [\\/]* | ?:[\\/]*)
Chris@10 5897 re_direlt='/[^/][^/]*/\.\./'
Chris@10 5898 # Canonicalize the pathname of ld
Chris@10 5899 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
Chris@10 5900 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
Chris@10 5901 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Chris@10 5902 done
Chris@10 5903 test -z "$LD" && LD="$ac_prog"
Chris@10 5904 ;;
Chris@10 5905 "")
Chris@10 5906 # If it fails, then pretend we aren't using GCC.
Chris@10 5907 ac_prog=ld
Chris@10 5908 ;;
Chris@10 5909 *)
Chris@10 5910 # If it is relative, then search for the first ld in PATH.
Chris@10 5911 with_gnu_ld=unknown
Chris@10 5912 ;;
Chris@10 5913 esac
Chris@10 5914 elif test "$with_gnu_ld" = yes; then
Chris@10 5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Chris@10 5916 $as_echo_n "checking for GNU ld... " >&6; }
Chris@10 5917 else
Chris@10 5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Chris@10 5919 $as_echo_n "checking for non-GNU ld... " >&6; }
Chris@10 5920 fi
Chris@10 5921 if ${lt_cv_path_LD+:} false; then :
Chris@10 5922 $as_echo_n "(cached) " >&6
Chris@10 5923 else
Chris@10 5924 if test -z "$LD"; then
Chris@10 5925 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@10 5926 for ac_dir in $PATH; do
Chris@10 5927 IFS="$lt_save_ifs"
Chris@10 5928 test -z "$ac_dir" && ac_dir=.
Chris@10 5929 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Chris@10 5930 lt_cv_path_LD="$ac_dir/$ac_prog"
Chris@10 5931 # Check to see if the program is GNU ld. I'd rather use --version,
Chris@10 5932 # but apparently some variants of GNU ld only accept -v.
Chris@10 5933 # Break only if it was the GNU/non-GNU ld that we prefer.
Chris@10 5934 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
Chris@10 5935 *GNU* | *'with BFD'*)
Chris@10 5936 test "$with_gnu_ld" != no && break
Chris@10 5937 ;;
Chris@10 5938 *)
Chris@10 5939 test "$with_gnu_ld" != yes && break
Chris@10 5940 ;;
Chris@10 5941 esac
Chris@10 5942 fi
Chris@10 5943 done
Chris@10 5944 IFS="$lt_save_ifs"
Chris@10 5945 else
Chris@10 5946 lt_cv_path_LD="$LD" # Let the user override the test with a path.
Chris@10 5947 fi
Chris@10 5948 fi
Chris@10 5949
Chris@10 5950 LD="$lt_cv_path_LD"
Chris@10 5951 if test -n "$LD"; then
Chris@10 5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Chris@10 5953 $as_echo "$LD" >&6; }
Chris@10 5954 else
Chris@10 5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 5956 $as_echo "no" >&6; }
Chris@10 5957 fi
Chris@10 5958 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Chris@10 5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Chris@10 5960 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Chris@10 5961 if ${lt_cv_prog_gnu_ld+:} false; then :
Chris@10 5962 $as_echo_n "(cached) " >&6
Chris@10 5963 else
Chris@10 5964 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Chris@10 5965 case `$LD -v 2>&1 </dev/null` in
Chris@10 5966 *GNU* | *'with BFD'*)
Chris@10 5967 lt_cv_prog_gnu_ld=yes
Chris@10 5968 ;;
Chris@10 5969 *)
Chris@10 5970 lt_cv_prog_gnu_ld=no
Chris@10 5971 ;;
Chris@10 5972 esac
Chris@10 5973 fi
Chris@10 5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
Chris@10 5975 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
Chris@10 5976 with_gnu_ld=$lt_cv_prog_gnu_ld
Chris@10 5977
Chris@10 5978
Chris@10 5979
Chris@10 5980
Chris@10 5981
Chris@10 5982
Chris@10 5983
Chris@10 5984
Chris@10 5985
Chris@10 5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
Chris@10 5987 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Chris@10 5988 if ${lt_cv_path_NM+:} false; then :
Chris@10 5989 $as_echo_n "(cached) " >&6
Chris@10 5990 else
Chris@10 5991 if test -n "$NM"; then
Chris@10 5992 # Let the user override the test.
Chris@10 5993 lt_cv_path_NM="$NM"
Chris@10 5994 else
Chris@10 5995 lt_nm_to_check="${ac_tool_prefix}nm"
Chris@10 5996 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
Chris@10 5997 lt_nm_to_check="$lt_nm_to_check nm"
Chris@10 5998 fi
Chris@10 5999 for lt_tmp_nm in $lt_nm_to_check; do
Chris@10 6000 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@10 6001 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
Chris@10 6002 IFS="$lt_save_ifs"
Chris@10 6003 test -z "$ac_dir" && ac_dir=.
Chris@10 6004 tmp_nm="$ac_dir/$lt_tmp_nm"
Chris@10 6005 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
Chris@10 6006 # Check to see if the nm accepts a BSD-compat flag.
Chris@10 6007 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
Chris@10 6008 # nm: unknown option "B" ignored
Chris@10 6009 # Tru64's nm complains that /dev/null is an invalid object file
Chris@10 6010 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
Chris@10 6011 */dev/null* | *'Invalid file or object type'*)
Chris@10 6012 lt_cv_path_NM="$tmp_nm -B"
Chris@10 6013 break
Chris@10 6014 ;;
Chris@10 6015 *)
Chris@10 6016 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
Chris@10 6017 */dev/null*)
Chris@10 6018 lt_cv_path_NM="$tmp_nm -p"
Chris@10 6019 break
Chris@10 6020 ;;
Chris@10 6021 *)
Chris@10 6022 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
Chris@10 6023 continue # so that we can try to find one that supports BSD flags
Chris@10 6024 ;;
Chris@10 6025 esac
Chris@10 6026 ;;
Chris@10 6027 esac
Chris@10 6028 fi
Chris@10 6029 done
Chris@10 6030 IFS="$lt_save_ifs"
Chris@10 6031 done
Chris@10 6032 : ${lt_cv_path_NM=no}
Chris@10 6033 fi
Chris@10 6034 fi
Chris@10 6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
Chris@10 6036 $as_echo "$lt_cv_path_NM" >&6; }
Chris@10 6037 if test "$lt_cv_path_NM" != "no"; then
Chris@10 6038 NM="$lt_cv_path_NM"
Chris@10 6039 else
Chris@10 6040 # Didn't find any BSD compatible name lister, look for dumpbin.
Chris@10 6041 if test -n "$DUMPBIN"; then :
Chris@10 6042 # Let the user override the test.
Chris@10 6043 else
Chris@10 6044 if test -n "$ac_tool_prefix"; then
Chris@10 6045 for ac_prog in dumpbin "link -dump"
Chris@10 6046 do
Chris@10 6047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@10 6048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@10 6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 6050 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 6051 if ${ac_cv_prog_DUMPBIN+:} false; then :
Chris@10 6052 $as_echo_n "(cached) " >&6
Chris@10 6053 else
Chris@10 6054 if test -n "$DUMPBIN"; then
Chris@10 6055 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
Chris@10 6056 else
Chris@10 6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 6058 for as_dir in $PATH
Chris@10 6059 do
Chris@10 6060 IFS=$as_save_IFS
Chris@10 6061 test -z "$as_dir" && as_dir=.
Chris@10 6062 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 6063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 6064 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Chris@10 6065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 6066 break 2
Chris@10 6067 fi
Chris@10 6068 done
Chris@10 6069 done
Chris@10 6070 IFS=$as_save_IFS
Chris@10 6071
Chris@10 6072 fi
Chris@10 6073 fi
Chris@10 6074 DUMPBIN=$ac_cv_prog_DUMPBIN
Chris@10 6075 if test -n "$DUMPBIN"; then
Chris@10 6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
Chris@10 6077 $as_echo "$DUMPBIN" >&6; }
Chris@10 6078 else
Chris@10 6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 6080 $as_echo "no" >&6; }
Chris@10 6081 fi
Chris@10 6082
Chris@10 6083
Chris@10 6084 test -n "$DUMPBIN" && break
Chris@10 6085 done
Chris@10 6086 fi
Chris@10 6087 if test -z "$DUMPBIN"; then
Chris@10 6088 ac_ct_DUMPBIN=$DUMPBIN
Chris@10 6089 for ac_prog in dumpbin "link -dump"
Chris@10 6090 do
Chris@10 6091 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@10 6092 set dummy $ac_prog; ac_word=$2
Chris@10 6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 6094 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 6095 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Chris@10 6096 $as_echo_n "(cached) " >&6
Chris@10 6097 else
Chris@10 6098 if test -n "$ac_ct_DUMPBIN"; then
Chris@10 6099 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
Chris@10 6100 else
Chris@10 6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 6102 for as_dir in $PATH
Chris@10 6103 do
Chris@10 6104 IFS=$as_save_IFS
Chris@10 6105 test -z "$as_dir" && as_dir=.
Chris@10 6106 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 6107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 6108 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Chris@10 6109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 6110 break 2
Chris@10 6111 fi
Chris@10 6112 done
Chris@10 6113 done
Chris@10 6114 IFS=$as_save_IFS
Chris@10 6115
Chris@10 6116 fi
Chris@10 6117 fi
Chris@10 6118 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
Chris@10 6119 if test -n "$ac_ct_DUMPBIN"; then
Chris@10 6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
Chris@10 6121 $as_echo "$ac_ct_DUMPBIN" >&6; }
Chris@10 6122 else
Chris@10 6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 6124 $as_echo "no" >&6; }
Chris@10 6125 fi
Chris@10 6126
Chris@10 6127
Chris@10 6128 test -n "$ac_ct_DUMPBIN" && break
Chris@10 6129 done
Chris@10 6130
Chris@10 6131 if test "x$ac_ct_DUMPBIN" = x; then
Chris@10 6132 DUMPBIN=":"
Chris@10 6133 else
Chris@10 6134 case $cross_compiling:$ac_tool_warned in
Chris@10 6135 yes:)
Chris@10 6136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@10 6137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@10 6138 ac_tool_warned=yes ;;
Chris@10 6139 esac
Chris@10 6140 DUMPBIN=$ac_ct_DUMPBIN
Chris@10 6141 fi
Chris@10 6142 fi
Chris@10 6143
Chris@10 6144 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
Chris@10 6145 *COFF*)
Chris@10 6146 DUMPBIN="$DUMPBIN -symbols"
Chris@10 6147 ;;
Chris@10 6148 *)
Chris@10 6149 DUMPBIN=:
Chris@10 6150 ;;
Chris@10 6151 esac
Chris@10 6152 fi
Chris@10 6153
Chris@10 6154 if test "$DUMPBIN" != ":"; then
Chris@10 6155 NM="$DUMPBIN"
Chris@10 6156 fi
Chris@10 6157 fi
Chris@10 6158 test -z "$NM" && NM=nm
Chris@10 6159
Chris@10 6160
Chris@10 6161
Chris@10 6162
Chris@10 6163
Chris@10 6164
Chris@10 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
Chris@10 6166 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
Chris@10 6167 if ${lt_cv_nm_interface+:} false; then :
Chris@10 6168 $as_echo_n "(cached) " >&6
Chris@10 6169 else
Chris@10 6170 lt_cv_nm_interface="BSD nm"
Chris@10 6171 echo "int some_variable = 0;" > conftest.$ac_ext
Chris@10 6172 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
Chris@10 6173 (eval "$ac_compile" 2>conftest.err)
Chris@10 6174 cat conftest.err >&5
Chris@10 6175 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Chris@10 6176 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
Chris@10 6177 cat conftest.err >&5
Chris@10 6178 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
Chris@10 6179 cat conftest.out >&5
Chris@10 6180 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
Chris@10 6181 lt_cv_nm_interface="MS dumpbin"
Chris@10 6182 fi
Chris@10 6183 rm -f conftest*
Chris@10 6184 fi
Chris@10 6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
Chris@10 6186 $as_echo "$lt_cv_nm_interface" >&6; }
Chris@10 6187
Chris@10 6188 # find the maximum length of command line arguments
Chris@10 6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
Chris@10 6190 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
Chris@10 6191 if ${lt_cv_sys_max_cmd_len+:} false; then :
Chris@10 6192 $as_echo_n "(cached) " >&6
Chris@10 6193 else
Chris@10 6194 i=0
Chris@10 6195 teststring="ABCD"
Chris@10 6196
Chris@10 6197 case $build_os in
Chris@10 6198 msdosdjgpp*)
Chris@10 6199 # On DJGPP, this test can blow up pretty badly due to problems in libc
Chris@10 6200 # (any single argument exceeding 2000 bytes causes a buffer overrun
Chris@10 6201 # during glob expansion). Even if it were fixed, the result of this
Chris@10 6202 # check would be larger than it should be.
Chris@10 6203 lt_cv_sys_max_cmd_len=12288; # 12K is about right
Chris@10 6204 ;;
Chris@10 6205
Chris@10 6206 gnu*)
Chris@10 6207 # Under GNU Hurd, this test is not required because there is
Chris@10 6208 # no limit to the length of command line arguments.
Chris@10 6209 # Libtool will interpret -1 as no limit whatsoever
Chris@10 6210 lt_cv_sys_max_cmd_len=-1;
Chris@10 6211 ;;
Chris@10 6212
Chris@10 6213 cygwin* | mingw* | cegcc*)
Chris@10 6214 # On Win9x/ME, this test blows up -- it succeeds, but takes
Chris@10 6215 # about 5 minutes as the teststring grows exponentially.
Chris@10 6216 # Worse, since 9x/ME are not pre-emptively multitasking,
Chris@10 6217 # you end up with a "frozen" computer, even though with patience
Chris@10 6218 # the test eventually succeeds (with a max line length of 256k).
Chris@10 6219 # Instead, let's just punt: use the minimum linelength reported by
Chris@10 6220 # all of the supported platforms: 8192 (on NT/2K/XP).
Chris@10 6221 lt_cv_sys_max_cmd_len=8192;
Chris@10 6222 ;;
Chris@10 6223
Chris@10 6224 mint*)
Chris@10 6225 # On MiNT this can take a long time and run out of memory.
Chris@10 6226 lt_cv_sys_max_cmd_len=8192;
Chris@10 6227 ;;
Chris@10 6228
Chris@10 6229 amigaos*)
Chris@10 6230 # On AmigaOS with pdksh, this test takes hours, literally.
Chris@10 6231 # So we just punt and use a minimum line length of 8192.
Chris@10 6232 lt_cv_sys_max_cmd_len=8192;
Chris@10 6233 ;;
Chris@10 6234
Chris@10 6235 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Chris@10 6236 # This has been around since 386BSD, at least. Likely further.
Chris@10 6237 if test -x /sbin/sysctl; then
Chris@10 6238 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
Chris@10 6239 elif test -x /usr/sbin/sysctl; then
Chris@10 6240 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
Chris@10 6241 else
Chris@10 6242 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Chris@10 6243 fi
Chris@10 6244 # And add a safety zone
Chris@10 6245 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Chris@10 6246 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Chris@10 6247 ;;
Chris@10 6248
Chris@10 6249 interix*)
Chris@10 6250 # We know the value 262144 and hardcode it with a safety zone (like BSD)
Chris@10 6251 lt_cv_sys_max_cmd_len=196608
Chris@10 6252 ;;
Chris@10 6253
Chris@10 6254 os2*)
Chris@10 6255 # The test takes a long time on OS/2.
Chris@10 6256 lt_cv_sys_max_cmd_len=8192
Chris@10 6257 ;;
Chris@10 6258
Chris@10 6259 osf*)
Chris@10 6260 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
Chris@10 6261 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
Chris@10 6262 # nice to cause kernel panics so lets avoid the loop below.
Chris@10 6263 # First set a reasonable default.
Chris@10 6264 lt_cv_sys_max_cmd_len=16384
Chris@10 6265 #
Chris@10 6266 if test -x /sbin/sysconfig; then
Chris@10 6267 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
Chris@10 6268 *1*) lt_cv_sys_max_cmd_len=-1 ;;
Chris@10 6269 esac
Chris@10 6270 fi
Chris@10 6271 ;;
Chris@10 6272 sco3.2v5*)
Chris@10 6273 lt_cv_sys_max_cmd_len=102400
Chris@10 6274 ;;
Chris@10 6275 sysv5* | sco5v6* | sysv4.2uw2*)
Chris@10 6276 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
Chris@10 6277 if test -n "$kargmax"; then
Chris@10 6278 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
Chris@10 6279 else
Chris@10 6280 lt_cv_sys_max_cmd_len=32768
Chris@10 6281 fi
Chris@10 6282 ;;
Chris@10 6283 *)
Chris@10 6284 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
Chris@10 6285 if test -n "$lt_cv_sys_max_cmd_len"; then
Chris@10 6286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Chris@10 6287 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Chris@10 6288 else
Chris@10 6289 # Make teststring a little bigger before we do anything with it.
Chris@10 6290 # a 1K string should be a reasonable start.
Chris@10 6291 for i in 1 2 3 4 5 6 7 8 ; do
Chris@10 6292 teststring=$teststring$teststring
Chris@10 6293 done
Chris@10 6294 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
Chris@10 6295 # If test is not a shell built-in, we'll probably end up computing a
Chris@10 6296 # maximum length that is only half of the actual maximum length, but
Chris@10 6297 # we can't tell.
Chris@10 6298 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
Chris@10 6299 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Chris@10 6300 test $i != 17 # 1/2 MB should be enough
Chris@10 6301 do
Chris@10 6302 i=`expr $i + 1`
Chris@10 6303 teststring=$teststring$teststring
Chris@10 6304 done
Chris@10 6305 # Only check the string length outside the loop.
Chris@10 6306 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
Chris@10 6307 teststring=
Chris@10 6308 # Add a significant safety factor because C++ compilers can tack on
Chris@10 6309 # massive amounts of additional arguments before passing them to the
Chris@10 6310 # linker. It appears as though 1/2 is a usable value.
Chris@10 6311 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
Chris@10 6312 fi
Chris@10 6313 ;;
Chris@10 6314 esac
Chris@10 6315
Chris@10 6316 fi
Chris@10 6317
Chris@10 6318 if test -n $lt_cv_sys_max_cmd_len ; then
Chris@10 6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
Chris@10 6320 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
Chris@10 6321 else
Chris@10 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
Chris@10 6323 $as_echo "none" >&6; }
Chris@10 6324 fi
Chris@10 6325 max_cmd_len=$lt_cv_sys_max_cmd_len
Chris@10 6326
Chris@10 6327
Chris@10 6328
Chris@10 6329
Chris@10 6330
Chris@10 6331
Chris@10 6332 : ${CP="cp -f"}
Chris@10 6333 : ${MV="mv -f"}
Chris@10 6334 : ${RM="rm -f"}
Chris@10 6335
Chris@10 6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
Chris@10 6337 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
Chris@10 6338 # Try some XSI features
Chris@10 6339 xsi_shell=no
Chris@10 6340 ( _lt_dummy="a/b/c"
Chris@10 6341 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
Chris@10 6342 = c,a/b,b/c, \
Chris@10 6343 && eval 'test $(( 1 + 1 )) -eq 2 \
Chris@10 6344 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
Chris@10 6345 && xsi_shell=yes
Chris@10 6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
Chris@10 6347 $as_echo "$xsi_shell" >&6; }
Chris@10 6348
Chris@10 6349
Chris@10 6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
Chris@10 6351 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
Chris@10 6352 lt_shell_append=no
Chris@10 6353 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
Chris@10 6354 >/dev/null 2>&1 \
Chris@10 6355 && lt_shell_append=yes
Chris@10 6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
Chris@10 6357 $as_echo "$lt_shell_append" >&6; }
Chris@10 6358
Chris@10 6359
Chris@10 6360 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Chris@10 6361 lt_unset=unset
Chris@10 6362 else
Chris@10 6363 lt_unset=false
Chris@10 6364 fi
Chris@10 6365
Chris@10 6366
Chris@10 6367
Chris@10 6368
Chris@10 6369
Chris@10 6370 # test EBCDIC or ASCII
Chris@10 6371 case `echo X|tr X '\101'` in
Chris@10 6372 A) # ASCII based system
Chris@10 6373 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
Chris@10 6374 lt_SP2NL='tr \040 \012'
Chris@10 6375 lt_NL2SP='tr \015\012 \040\040'
Chris@10 6376 ;;
Chris@10 6377 *) # EBCDIC based system
Chris@10 6378 lt_SP2NL='tr \100 \n'
Chris@10 6379 lt_NL2SP='tr \r\n \100\100'
Chris@10 6380 ;;
Chris@10 6381 esac
Chris@10 6382
Chris@10 6383
Chris@10 6384
Chris@10 6385
Chris@10 6386
Chris@10 6387
Chris@10 6388
Chris@10 6389
Chris@10 6390
Chris@10 6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
Chris@10 6392 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
Chris@10 6393 if ${lt_cv_to_host_file_cmd+:} false; then :
Chris@10 6394 $as_echo_n "(cached) " >&6
Chris@10 6395 else
Chris@10 6396 case $host in
Chris@10 6397 *-*-mingw* )
Chris@10 6398 case $build in
Chris@10 6399 *-*-mingw* ) # actually msys
Chris@10 6400 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
Chris@10 6401 ;;
Chris@10 6402 *-*-cygwin* )
Chris@10 6403 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
Chris@10 6404 ;;
Chris@10 6405 * ) # otherwise, assume *nix
Chris@10 6406 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
Chris@10 6407 ;;
Chris@10 6408 esac
Chris@10 6409 ;;
Chris@10 6410 *-*-cygwin* )
Chris@10 6411 case $build in
Chris@10 6412 *-*-mingw* ) # actually msys
Chris@10 6413 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
Chris@10 6414 ;;
Chris@10 6415 *-*-cygwin* )
Chris@10 6416 lt_cv_to_host_file_cmd=func_convert_file_noop
Chris@10 6417 ;;
Chris@10 6418 * ) # otherwise, assume *nix
Chris@10 6419 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
Chris@10 6420 ;;
Chris@10 6421 esac
Chris@10 6422 ;;
Chris@10 6423 * ) # unhandled hosts (and "normal" native builds)
Chris@10 6424 lt_cv_to_host_file_cmd=func_convert_file_noop
Chris@10 6425 ;;
Chris@10 6426 esac
Chris@10 6427
Chris@10 6428 fi
Chris@10 6429
Chris@10 6430 to_host_file_cmd=$lt_cv_to_host_file_cmd
Chris@10 6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
Chris@10 6432 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
Chris@10 6433
Chris@10 6434
Chris@10 6435
Chris@10 6436
Chris@10 6437
Chris@10 6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
Chris@10 6439 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
Chris@10 6440 if ${lt_cv_to_tool_file_cmd+:} false; then :
Chris@10 6441 $as_echo_n "(cached) " >&6
Chris@10 6442 else
Chris@10 6443 #assume ordinary cross tools, or native build.
Chris@10 6444 lt_cv_to_tool_file_cmd=func_convert_file_noop
Chris@10 6445 case $host in
Chris@10 6446 *-*-mingw* )
Chris@10 6447 case $build in
Chris@10 6448 *-*-mingw* ) # actually msys
Chris@10 6449 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
Chris@10 6450 ;;
Chris@10 6451 esac
Chris@10 6452 ;;
Chris@10 6453 esac
Chris@10 6454
Chris@10 6455 fi
Chris@10 6456
Chris@10 6457 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Chris@10 6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
Chris@10 6459 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
Chris@10 6460
Chris@10 6461
Chris@10 6462
Chris@10 6463
Chris@10 6464
Chris@10 6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
Chris@10 6466 $as_echo_n "checking for $LD option to reload object files... " >&6; }
Chris@10 6467 if ${lt_cv_ld_reload_flag+:} false; then :
Chris@10 6468 $as_echo_n "(cached) " >&6
Chris@10 6469 else
Chris@10 6470 lt_cv_ld_reload_flag='-r'
Chris@10 6471 fi
Chris@10 6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
Chris@10 6473 $as_echo "$lt_cv_ld_reload_flag" >&6; }
Chris@10 6474 reload_flag=$lt_cv_ld_reload_flag
Chris@10 6475 case $reload_flag in
Chris@10 6476 "" | " "*) ;;
Chris@10 6477 *) reload_flag=" $reload_flag" ;;
Chris@10 6478 esac
Chris@10 6479 reload_cmds='$LD$reload_flag -o $output$reload_objs'
Chris@10 6480 case $host_os in
Chris@10 6481 cygwin* | mingw* | pw32* | cegcc*)
Chris@10 6482 if test "$GCC" != yes; then
Chris@10 6483 reload_cmds=false
Chris@10 6484 fi
Chris@10 6485 ;;
Chris@10 6486 darwin*)
Chris@10 6487 if test "$GCC" = yes; then
Chris@10 6488 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
Chris@10 6489 else
Chris@10 6490 reload_cmds='$LD$reload_flag -o $output$reload_objs'
Chris@10 6491 fi
Chris@10 6492 ;;
Chris@10 6493 esac
Chris@10 6494
Chris@10 6495
Chris@10 6496
Chris@10 6497
Chris@10 6498
Chris@10 6499
Chris@10 6500
Chris@10 6501
Chris@10 6502
Chris@10 6503 if test -n "$ac_tool_prefix"; then
Chris@10 6504 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
Chris@10 6505 set dummy ${ac_tool_prefix}objdump; ac_word=$2
Chris@10 6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 6507 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 6508 if ${ac_cv_prog_OBJDUMP+:} false; then :
Chris@10 6509 $as_echo_n "(cached) " >&6
Chris@10 6510 else
Chris@10 6511 if test -n "$OBJDUMP"; then
Chris@10 6512 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
Chris@10 6513 else
Chris@10 6514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 6515 for as_dir in $PATH
Chris@10 6516 do
Chris@10 6517 IFS=$as_save_IFS
Chris@10 6518 test -z "$as_dir" && as_dir=.
Chris@10 6519 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 6520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 6521 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Chris@10 6522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 6523 break 2
Chris@10 6524 fi
Chris@10 6525 done
Chris@10 6526 done
Chris@10 6527 IFS=$as_save_IFS
Chris@10 6528
Chris@10 6529 fi
Chris@10 6530 fi
Chris@10 6531 OBJDUMP=$ac_cv_prog_OBJDUMP
Chris@10 6532 if test -n "$OBJDUMP"; then
Chris@10 6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
Chris@10 6534 $as_echo "$OBJDUMP" >&6; }
Chris@10 6535 else
Chris@10 6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 6537 $as_echo "no" >&6; }
Chris@10 6538 fi
Chris@10 6539
Chris@10 6540
Chris@10 6541 fi
Chris@10 6542 if test -z "$ac_cv_prog_OBJDUMP"; then
Chris@10 6543 ac_ct_OBJDUMP=$OBJDUMP
Chris@10 6544 # Extract the first word of "objdump", so it can be a program name with args.
Chris@10 6545 set dummy objdump; ac_word=$2
Chris@10 6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 6547 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 6548 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Chris@10 6549 $as_echo_n "(cached) " >&6
Chris@10 6550 else
Chris@10 6551 if test -n "$ac_ct_OBJDUMP"; then
Chris@10 6552 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
Chris@10 6553 else
Chris@10 6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 6555 for as_dir in $PATH
Chris@10 6556 do
Chris@10 6557 IFS=$as_save_IFS
Chris@10 6558 test -z "$as_dir" && as_dir=.
Chris@10 6559 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 6560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 6561 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Chris@10 6562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 6563 break 2
Chris@10 6564 fi
Chris@10 6565 done
Chris@10 6566 done
Chris@10 6567 IFS=$as_save_IFS
Chris@10 6568
Chris@10 6569 fi
Chris@10 6570 fi
Chris@10 6571 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
Chris@10 6572 if test -n "$ac_ct_OBJDUMP"; then
Chris@10 6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
Chris@10 6574 $as_echo "$ac_ct_OBJDUMP" >&6; }
Chris@10 6575 else
Chris@10 6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 6577 $as_echo "no" >&6; }
Chris@10 6578 fi
Chris@10 6579
Chris@10 6580 if test "x$ac_ct_OBJDUMP" = x; then
Chris@10 6581 OBJDUMP="false"
Chris@10 6582 else
Chris@10 6583 case $cross_compiling:$ac_tool_warned in
Chris@10 6584 yes:)
Chris@10 6585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@10 6586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@10 6587 ac_tool_warned=yes ;;
Chris@10 6588 esac
Chris@10 6589 OBJDUMP=$ac_ct_OBJDUMP
Chris@10 6590 fi
Chris@10 6591 else
Chris@10 6592 OBJDUMP="$ac_cv_prog_OBJDUMP"
Chris@10 6593 fi
Chris@10 6594
Chris@10 6595 test -z "$OBJDUMP" && OBJDUMP=objdump
Chris@10 6596
Chris@10 6597
Chris@10 6598
Chris@10 6599
Chris@10 6600
Chris@10 6601
Chris@10 6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
Chris@10 6603 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
Chris@10 6604 if ${lt_cv_deplibs_check_method+:} false; then :
Chris@10 6605 $as_echo_n "(cached) " >&6
Chris@10 6606 else
Chris@10 6607 lt_cv_file_magic_cmd='$MAGIC_CMD'
Chris@10 6608 lt_cv_file_magic_test_file=
Chris@10 6609 lt_cv_deplibs_check_method='unknown'
Chris@10 6610 # Need to set the preceding variable on all platforms that support
Chris@10 6611 # interlibrary dependencies.
Chris@10 6612 # 'none' -- dependencies not supported.
Chris@10 6613 # `unknown' -- same as none, but documents that we really don't know.
Chris@10 6614 # 'pass_all' -- all dependencies passed with no checks.
Chris@10 6615 # 'test_compile' -- check by making test program.
Chris@10 6616 # 'file_magic [[regex]]' -- check by looking for files in library path
Chris@10 6617 # which responds to the $file_magic_cmd with a given extended regex.
Chris@10 6618 # If you have `file' or equivalent on your system and you're not sure
Chris@10 6619 # whether `pass_all' will *always* work, you probably want this one.
Chris@10 6620
Chris@10 6621 case $host_os in
Chris@10 6622 aix[4-9]*)
Chris@10 6623 lt_cv_deplibs_check_method=pass_all
Chris@10 6624 ;;
Chris@10 6625
Chris@10 6626 beos*)
Chris@10 6627 lt_cv_deplibs_check_method=pass_all
Chris@10 6628 ;;
Chris@10 6629
Chris@10 6630 bsdi[45]*)
Chris@10 6631 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
Chris@10 6632 lt_cv_file_magic_cmd='/usr/bin/file -L'
Chris@10 6633 lt_cv_file_magic_test_file=/shlib/libc.so
Chris@10 6634 ;;
Chris@10 6635
Chris@10 6636 cygwin*)
Chris@10 6637 # func_win32_libid is a shell function defined in ltmain.sh
Chris@10 6638 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Chris@10 6639 lt_cv_file_magic_cmd='func_win32_libid'
Chris@10 6640 ;;
Chris@10 6641
Chris@10 6642 mingw* | pw32*)
Chris@10 6643 # Base MSYS/MinGW do not provide the 'file' command needed by
Chris@10 6644 # func_win32_libid shell function, so use a weaker test based on 'objdump',
Chris@10 6645 # unless we find 'file', for example because we are cross-compiling.
Chris@10 6646 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
Chris@10 6647 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
Chris@10 6648 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Chris@10 6649 lt_cv_file_magic_cmd='func_win32_libid'
Chris@10 6650 else
Chris@10 6651 # Keep this pattern in sync with the one in func_win32_libid.
Chris@10 6652 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
Chris@10 6653 lt_cv_file_magic_cmd='$OBJDUMP -f'
Chris@10 6654 fi
Chris@10 6655 ;;
Chris@10 6656
Chris@10 6657 cegcc*)
Chris@10 6658 # use the weaker test based on 'objdump'. See mingw*.
Chris@10 6659 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
Chris@10 6660 lt_cv_file_magic_cmd='$OBJDUMP -f'
Chris@10 6661 ;;
Chris@10 6662
Chris@10 6663 darwin* | rhapsody*)
Chris@10 6664 lt_cv_deplibs_check_method=pass_all
Chris@10 6665 ;;
Chris@10 6666
Chris@10 6667 freebsd* | dragonfly*)
Chris@10 6668 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Chris@10 6669 case $host_cpu in
Chris@10 6670 i*86 )
Chris@10 6671 # Not sure whether the presence of OpenBSD here was a mistake.
Chris@10 6672 # Let's accept both of them until this is cleared up.
Chris@10 6673 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
Chris@10 6674 lt_cv_file_magic_cmd=/usr/bin/file
Chris@10 6675 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
Chris@10 6676 ;;
Chris@10 6677 esac
Chris@10 6678 else
Chris@10 6679 lt_cv_deplibs_check_method=pass_all
Chris@10 6680 fi
Chris@10 6681 ;;
Chris@10 6682
Chris@10 6683 haiku*)
Chris@10 6684 lt_cv_deplibs_check_method=pass_all
Chris@10 6685 ;;
Chris@10 6686
Chris@10 6687 hpux10.20* | hpux11*)
Chris@10 6688 lt_cv_file_magic_cmd=/usr/bin/file
Chris@10 6689 case $host_cpu in
Chris@10 6690 ia64*)
Chris@10 6691 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
Chris@10 6692 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
Chris@10 6693 ;;
Chris@10 6694 hppa*64*)
Chris@10 6695 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@10 6696 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
Chris@10 6697 ;;
Chris@10 6698 *)
Chris@10 6699 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
Chris@10 6700 lt_cv_file_magic_test_file=/usr/lib/libc.sl
Chris@10 6701 ;;
Chris@10 6702 esac
Chris@10 6703 ;;
Chris@10 6704
Chris@10 6705 interix[3-9]*)
Chris@10 6706 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
Chris@10 6707 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
Chris@10 6708 ;;
Chris@10 6709
Chris@10 6710 irix5* | irix6* | nonstopux*)
Chris@10 6711 case $LD in
Chris@10 6712 *-32|*"-32 ") libmagic=32-bit;;
Chris@10 6713 *-n32|*"-n32 ") libmagic=N32;;
Chris@10 6714 *-64|*"-64 ") libmagic=64-bit;;
Chris@10 6715 *) libmagic=never-match;;
Chris@10 6716 esac
Chris@10 6717 lt_cv_deplibs_check_method=pass_all
Chris@10 6718 ;;
Chris@10 6719
Chris@10 6720 # This must be glibc/ELF.
Chris@10 6721 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Chris@10 6722 lt_cv_deplibs_check_method=pass_all
Chris@10 6723 ;;
Chris@10 6724
Chris@10 6725 netbsd* | netbsdelf*-gnu)
Chris@10 6726 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Chris@10 6727 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Chris@10 6728 else
Chris@10 6729 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
Chris@10 6730 fi
Chris@10 6731 ;;
Chris@10 6732
Chris@10 6733 newos6*)
Chris@10 6734 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
Chris@10 6735 lt_cv_file_magic_cmd=/usr/bin/file
Chris@10 6736 lt_cv_file_magic_test_file=/usr/lib/libnls.so
Chris@10 6737 ;;
Chris@10 6738
Chris@10 6739 *nto* | *qnx*)
Chris@10 6740 lt_cv_deplibs_check_method=pass_all
Chris@10 6741 ;;
Chris@10 6742
Chris@10 6743 openbsd*)
Chris@10 6744 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@10 6745 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
Chris@10 6746 else
Chris@10 6747 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Chris@10 6748 fi
Chris@10 6749 ;;
Chris@10 6750
Chris@10 6751 osf3* | osf4* | osf5*)
Chris@10 6752 lt_cv_deplibs_check_method=pass_all
Chris@10 6753 ;;
Chris@10 6754
Chris@10 6755 rdos*)
Chris@10 6756 lt_cv_deplibs_check_method=pass_all
Chris@10 6757 ;;
Chris@10 6758
Chris@10 6759 solaris*)
Chris@10 6760 lt_cv_deplibs_check_method=pass_all
Chris@10 6761 ;;
Chris@10 6762
Chris@10 6763 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Chris@10 6764 lt_cv_deplibs_check_method=pass_all
Chris@10 6765 ;;
Chris@10 6766
Chris@10 6767 sysv4 | sysv4.3*)
Chris@10 6768 case $host_vendor in
Chris@10 6769 motorola)
Chris@10 6770 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@10 6771 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
Chris@10 6772 ;;
Chris@10 6773 ncr)
Chris@10 6774 lt_cv_deplibs_check_method=pass_all
Chris@10 6775 ;;
Chris@10 6776 sequent)
Chris@10 6777 lt_cv_file_magic_cmd='/bin/file'
Chris@10 6778 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
Chris@10 6779 ;;
Chris@10 6780 sni)
Chris@10 6781 lt_cv_file_magic_cmd='/bin/file'
Chris@10 6782 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
Chris@10 6783 lt_cv_file_magic_test_file=/lib/libc.so
Chris@10 6784 ;;
Chris@10 6785 siemens)
Chris@10 6786 lt_cv_deplibs_check_method=pass_all
Chris@10 6787 ;;
Chris@10 6788 pc)
Chris@10 6789 lt_cv_deplibs_check_method=pass_all
Chris@10 6790 ;;
Chris@10 6791 esac
Chris@10 6792 ;;
Chris@10 6793
Chris@10 6794 tpf*)
Chris@10 6795 lt_cv_deplibs_check_method=pass_all
Chris@10 6796 ;;
Chris@10 6797 esac
Chris@10 6798
Chris@10 6799 fi
Chris@10 6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
Chris@10 6801 $as_echo "$lt_cv_deplibs_check_method" >&6; }
Chris@10 6802
Chris@10 6803 file_magic_glob=
Chris@10 6804 want_nocaseglob=no
Chris@10 6805 if test "$build" = "$host"; then
Chris@10 6806 case $host_os in
Chris@10 6807 mingw* | pw32*)
Chris@10 6808 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
Chris@10 6809 want_nocaseglob=yes
Chris@10 6810 else
Chris@10 6811 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
Chris@10 6812 fi
Chris@10 6813 ;;
Chris@10 6814 esac
Chris@10 6815 fi
Chris@10 6816
Chris@10 6817 file_magic_cmd=$lt_cv_file_magic_cmd
Chris@10 6818 deplibs_check_method=$lt_cv_deplibs_check_method
Chris@10 6819 test -z "$deplibs_check_method" && deplibs_check_method=unknown
Chris@10 6820
Chris@10 6821
Chris@10 6822
Chris@10 6823
Chris@10 6824
Chris@10 6825
Chris@10 6826
Chris@10 6827
Chris@10 6828
Chris@10 6829
Chris@10 6830
Chris@10 6831
Chris@10 6832
Chris@10 6833
Chris@10 6834
Chris@10 6835
Chris@10 6836
Chris@10 6837
Chris@10 6838
Chris@10 6839
Chris@10 6840
Chris@10 6841
Chris@10 6842 if test -n "$ac_tool_prefix"; then
Chris@10 6843 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
Chris@10 6844 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Chris@10 6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 6846 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 6847 if ${ac_cv_prog_DLLTOOL+:} false; then :
Chris@10 6848 $as_echo_n "(cached) " >&6
Chris@10 6849 else
Chris@10 6850 if test -n "$DLLTOOL"; then
Chris@10 6851 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
Chris@10 6852 else
Chris@10 6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 6854 for as_dir in $PATH
Chris@10 6855 do
Chris@10 6856 IFS=$as_save_IFS
Chris@10 6857 test -z "$as_dir" && as_dir=.
Chris@10 6858 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 6859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 6860 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
Chris@10 6861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 6862 break 2
Chris@10 6863 fi
Chris@10 6864 done
Chris@10 6865 done
Chris@10 6866 IFS=$as_save_IFS
Chris@10 6867
Chris@10 6868 fi
Chris@10 6869 fi
Chris@10 6870 DLLTOOL=$ac_cv_prog_DLLTOOL
Chris@10 6871 if test -n "$DLLTOOL"; then
Chris@10 6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
Chris@10 6873 $as_echo "$DLLTOOL" >&6; }
Chris@10 6874 else
Chris@10 6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 6876 $as_echo "no" >&6; }
Chris@10 6877 fi
Chris@10 6878
Chris@10 6879
Chris@10 6880 fi
Chris@10 6881 if test -z "$ac_cv_prog_DLLTOOL"; then
Chris@10 6882 ac_ct_DLLTOOL=$DLLTOOL
Chris@10 6883 # Extract the first word of "dlltool", so it can be a program name with args.
Chris@10 6884 set dummy dlltool; ac_word=$2
Chris@10 6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 6886 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 6887 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
Chris@10 6888 $as_echo_n "(cached) " >&6
Chris@10 6889 else
Chris@10 6890 if test -n "$ac_ct_DLLTOOL"; then
Chris@10 6891 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
Chris@10 6892 else
Chris@10 6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 6894 for as_dir in $PATH
Chris@10 6895 do
Chris@10 6896 IFS=$as_save_IFS
Chris@10 6897 test -z "$as_dir" && as_dir=.
Chris@10 6898 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 6899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 6900 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
Chris@10 6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 6902 break 2
Chris@10 6903 fi
Chris@10 6904 done
Chris@10 6905 done
Chris@10 6906 IFS=$as_save_IFS
Chris@10 6907
Chris@10 6908 fi
Chris@10 6909 fi
Chris@10 6910 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
Chris@10 6911 if test -n "$ac_ct_DLLTOOL"; then
Chris@10 6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
Chris@10 6913 $as_echo "$ac_ct_DLLTOOL" >&6; }
Chris@10 6914 else
Chris@10 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 6916 $as_echo "no" >&6; }
Chris@10 6917 fi
Chris@10 6918
Chris@10 6919 if test "x$ac_ct_DLLTOOL" = x; then
Chris@10 6920 DLLTOOL="false"
Chris@10 6921 else
Chris@10 6922 case $cross_compiling:$ac_tool_warned in
Chris@10 6923 yes:)
Chris@10 6924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@10 6925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@10 6926 ac_tool_warned=yes ;;
Chris@10 6927 esac
Chris@10 6928 DLLTOOL=$ac_ct_DLLTOOL
Chris@10 6929 fi
Chris@10 6930 else
Chris@10 6931 DLLTOOL="$ac_cv_prog_DLLTOOL"
Chris@10 6932 fi
Chris@10 6933
Chris@10 6934 test -z "$DLLTOOL" && DLLTOOL=dlltool
Chris@10 6935
Chris@10 6936
Chris@10 6937
Chris@10 6938
Chris@10 6939
Chris@10 6940
Chris@10 6941
Chris@10 6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
Chris@10 6943 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
Chris@10 6944 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
Chris@10 6945 $as_echo_n "(cached) " >&6
Chris@10 6946 else
Chris@10 6947 lt_cv_sharedlib_from_linklib_cmd='unknown'
Chris@10 6948
Chris@10 6949 case $host_os in
Chris@10 6950 cygwin* | mingw* | pw32* | cegcc*)
Chris@10 6951 # two different shell functions defined in ltmain.sh
Chris@10 6952 # decide which to use based on capabilities of $DLLTOOL
Chris@10 6953 case `$DLLTOOL --help 2>&1` in
Chris@10 6954 *--identify-strict*)
Chris@10 6955 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
Chris@10 6956 ;;
Chris@10 6957 *)
Chris@10 6958 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
Chris@10 6959 ;;
Chris@10 6960 esac
Chris@10 6961 ;;
Chris@10 6962 *)
Chris@10 6963 # fallback: assume linklib IS sharedlib
Chris@10 6964 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
Chris@10 6965 ;;
Chris@10 6966 esac
Chris@10 6967
Chris@10 6968 fi
Chris@10 6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
Chris@10 6970 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
Chris@10 6971 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
Chris@10 6972 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
Chris@10 6973
Chris@10 6974
Chris@10 6975
Chris@10 6976
Chris@10 6977
Chris@10 6978
Chris@10 6979
Chris@10 6980 if test -n "$ac_tool_prefix"; then
Chris@10 6981 for ac_prog in ar
Chris@10 6982 do
Chris@10 6983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@10 6984 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@10 6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 6986 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 6987 if ${ac_cv_prog_AR+:} false; then :
Chris@10 6988 $as_echo_n "(cached) " >&6
Chris@10 6989 else
Chris@10 6990 if test -n "$AR"; then
Chris@10 6991 ac_cv_prog_AR="$AR" # Let the user override the test.
Chris@10 6992 else
Chris@10 6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 6994 for as_dir in $PATH
Chris@10 6995 do
Chris@10 6996 IFS=$as_save_IFS
Chris@10 6997 test -z "$as_dir" && as_dir=.
Chris@10 6998 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 6999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 7000 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Chris@10 7001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 7002 break 2
Chris@10 7003 fi
Chris@10 7004 done
Chris@10 7005 done
Chris@10 7006 IFS=$as_save_IFS
Chris@10 7007
Chris@10 7008 fi
Chris@10 7009 fi
Chris@10 7010 AR=$ac_cv_prog_AR
Chris@10 7011 if test -n "$AR"; then
Chris@10 7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Chris@10 7013 $as_echo "$AR" >&6; }
Chris@10 7014 else
Chris@10 7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 7016 $as_echo "no" >&6; }
Chris@10 7017 fi
Chris@10 7018
Chris@10 7019
Chris@10 7020 test -n "$AR" && break
Chris@10 7021 done
Chris@10 7022 fi
Chris@10 7023 if test -z "$AR"; then
Chris@10 7024 ac_ct_AR=$AR
Chris@10 7025 for ac_prog in ar
Chris@10 7026 do
Chris@10 7027 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@10 7028 set dummy $ac_prog; ac_word=$2
Chris@10 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 7030 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 7031 if ${ac_cv_prog_ac_ct_AR+:} false; then :
Chris@10 7032 $as_echo_n "(cached) " >&6
Chris@10 7033 else
Chris@10 7034 if test -n "$ac_ct_AR"; then
Chris@10 7035 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Chris@10 7036 else
Chris@10 7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 7038 for as_dir in $PATH
Chris@10 7039 do
Chris@10 7040 IFS=$as_save_IFS
Chris@10 7041 test -z "$as_dir" && as_dir=.
Chris@10 7042 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 7043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 7044 ac_cv_prog_ac_ct_AR="$ac_prog"
Chris@10 7045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 7046 break 2
Chris@10 7047 fi
Chris@10 7048 done
Chris@10 7049 done
Chris@10 7050 IFS=$as_save_IFS
Chris@10 7051
Chris@10 7052 fi
Chris@10 7053 fi
Chris@10 7054 ac_ct_AR=$ac_cv_prog_ac_ct_AR
Chris@10 7055 if test -n "$ac_ct_AR"; then
Chris@10 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Chris@10 7057 $as_echo "$ac_ct_AR" >&6; }
Chris@10 7058 else
Chris@10 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 7060 $as_echo "no" >&6; }
Chris@10 7061 fi
Chris@10 7062
Chris@10 7063
Chris@10 7064 test -n "$ac_ct_AR" && break
Chris@10 7065 done
Chris@10 7066
Chris@10 7067 if test "x$ac_ct_AR" = x; then
Chris@10 7068 AR="false"
Chris@10 7069 else
Chris@10 7070 case $cross_compiling:$ac_tool_warned in
Chris@10 7071 yes:)
Chris@10 7072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@10 7073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@10 7074 ac_tool_warned=yes ;;
Chris@10 7075 esac
Chris@10 7076 AR=$ac_ct_AR
Chris@10 7077 fi
Chris@10 7078 fi
Chris@10 7079
Chris@10 7080 : ${AR=ar}
Chris@10 7081 : ${AR_FLAGS=cru}
Chris@10 7082
Chris@10 7083
Chris@10 7084
Chris@10 7085
Chris@10 7086
Chris@10 7087
Chris@10 7088
Chris@10 7089
Chris@10 7090
Chris@10 7091
Chris@10 7092
Chris@10 7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
Chris@10 7094 $as_echo_n "checking for archiver @FILE support... " >&6; }
Chris@10 7095 if ${lt_cv_ar_at_file+:} false; then :
Chris@10 7096 $as_echo_n "(cached) " >&6
Chris@10 7097 else
Chris@10 7098 lt_cv_ar_at_file=no
Chris@10 7099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 7100 /* end confdefs.h. */
Chris@10 7101
Chris@10 7102 int
Chris@10 7103 main ()
Chris@10 7104 {
Chris@10 7105
Chris@10 7106 ;
Chris@10 7107 return 0;
Chris@10 7108 }
Chris@10 7109 _ACEOF
Chris@10 7110 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 7111 echo conftest.$ac_objext > conftest.lst
Chris@10 7112 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
Chris@10 7113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
Chris@10 7114 (eval $lt_ar_try) 2>&5
Chris@10 7115 ac_status=$?
Chris@10 7116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 7117 test $ac_status = 0; }
Chris@10 7118 if test "$ac_status" -eq 0; then
Chris@10 7119 # Ensure the archiver fails upon bogus file names.
Chris@10 7120 rm -f conftest.$ac_objext libconftest.a
Chris@10 7121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
Chris@10 7122 (eval $lt_ar_try) 2>&5
Chris@10 7123 ac_status=$?
Chris@10 7124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 7125 test $ac_status = 0; }
Chris@10 7126 if test "$ac_status" -ne 0; then
Chris@10 7127 lt_cv_ar_at_file=@
Chris@10 7128 fi
Chris@10 7129 fi
Chris@10 7130 rm -f conftest.* libconftest.a
Chris@10 7131
Chris@10 7132 fi
Chris@10 7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 7134
Chris@10 7135 fi
Chris@10 7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
Chris@10 7137 $as_echo "$lt_cv_ar_at_file" >&6; }
Chris@10 7138
Chris@10 7139 if test "x$lt_cv_ar_at_file" = xno; then
Chris@10 7140 archiver_list_spec=
Chris@10 7141 else
Chris@10 7142 archiver_list_spec=$lt_cv_ar_at_file
Chris@10 7143 fi
Chris@10 7144
Chris@10 7145
Chris@10 7146
Chris@10 7147
Chris@10 7148
Chris@10 7149
Chris@10 7150
Chris@10 7151 if test -n "$ac_tool_prefix"; then
Chris@10 7152 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
Chris@10 7153 set dummy ${ac_tool_prefix}strip; ac_word=$2
Chris@10 7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 7155 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 7156 if ${ac_cv_prog_STRIP+:} false; then :
Chris@10 7157 $as_echo_n "(cached) " >&6
Chris@10 7158 else
Chris@10 7159 if test -n "$STRIP"; then
Chris@10 7160 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
Chris@10 7161 else
Chris@10 7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 7163 for as_dir in $PATH
Chris@10 7164 do
Chris@10 7165 IFS=$as_save_IFS
Chris@10 7166 test -z "$as_dir" && as_dir=.
Chris@10 7167 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 7168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 7169 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Chris@10 7170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 7171 break 2
Chris@10 7172 fi
Chris@10 7173 done
Chris@10 7174 done
Chris@10 7175 IFS=$as_save_IFS
Chris@10 7176
Chris@10 7177 fi
Chris@10 7178 fi
Chris@10 7179 STRIP=$ac_cv_prog_STRIP
Chris@10 7180 if test -n "$STRIP"; then
Chris@10 7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Chris@10 7182 $as_echo "$STRIP" >&6; }
Chris@10 7183 else
Chris@10 7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 7185 $as_echo "no" >&6; }
Chris@10 7186 fi
Chris@10 7187
Chris@10 7188
Chris@10 7189 fi
Chris@10 7190 if test -z "$ac_cv_prog_STRIP"; then
Chris@10 7191 ac_ct_STRIP=$STRIP
Chris@10 7192 # Extract the first word of "strip", so it can be a program name with args.
Chris@10 7193 set dummy strip; ac_word=$2
Chris@10 7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 7195 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 7196 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Chris@10 7197 $as_echo_n "(cached) " >&6
Chris@10 7198 else
Chris@10 7199 if test -n "$ac_ct_STRIP"; then
Chris@10 7200 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Chris@10 7201 else
Chris@10 7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 7203 for as_dir in $PATH
Chris@10 7204 do
Chris@10 7205 IFS=$as_save_IFS
Chris@10 7206 test -z "$as_dir" && as_dir=.
Chris@10 7207 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 7208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 7209 ac_cv_prog_ac_ct_STRIP="strip"
Chris@10 7210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 7211 break 2
Chris@10 7212 fi
Chris@10 7213 done
Chris@10 7214 done
Chris@10 7215 IFS=$as_save_IFS
Chris@10 7216
Chris@10 7217 fi
Chris@10 7218 fi
Chris@10 7219 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
Chris@10 7220 if test -n "$ac_ct_STRIP"; then
Chris@10 7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Chris@10 7222 $as_echo "$ac_ct_STRIP" >&6; }
Chris@10 7223 else
Chris@10 7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 7225 $as_echo "no" >&6; }
Chris@10 7226 fi
Chris@10 7227
Chris@10 7228 if test "x$ac_ct_STRIP" = x; then
Chris@10 7229 STRIP=":"
Chris@10 7230 else
Chris@10 7231 case $cross_compiling:$ac_tool_warned in
Chris@10 7232 yes:)
Chris@10 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@10 7234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@10 7235 ac_tool_warned=yes ;;
Chris@10 7236 esac
Chris@10 7237 STRIP=$ac_ct_STRIP
Chris@10 7238 fi
Chris@10 7239 else
Chris@10 7240 STRIP="$ac_cv_prog_STRIP"
Chris@10 7241 fi
Chris@10 7242
Chris@10 7243 test -z "$STRIP" && STRIP=:
Chris@10 7244
Chris@10 7245
Chris@10 7246
Chris@10 7247
Chris@10 7248
Chris@10 7249
Chris@10 7250 if test -n "$ac_tool_prefix"; then
Chris@10 7251 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
Chris@10 7252 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Chris@10 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 7254 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 7255 if ${ac_cv_prog_RANLIB+:} false; then :
Chris@10 7256 $as_echo_n "(cached) " >&6
Chris@10 7257 else
Chris@10 7258 if test -n "$RANLIB"; then
Chris@10 7259 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
Chris@10 7260 else
Chris@10 7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 7262 for as_dir in $PATH
Chris@10 7263 do
Chris@10 7264 IFS=$as_save_IFS
Chris@10 7265 test -z "$as_dir" && as_dir=.
Chris@10 7266 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 7267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 7268 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Chris@10 7269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 7270 break 2
Chris@10 7271 fi
Chris@10 7272 done
Chris@10 7273 done
Chris@10 7274 IFS=$as_save_IFS
Chris@10 7275
Chris@10 7276 fi
Chris@10 7277 fi
Chris@10 7278 RANLIB=$ac_cv_prog_RANLIB
Chris@10 7279 if test -n "$RANLIB"; then
Chris@10 7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Chris@10 7281 $as_echo "$RANLIB" >&6; }
Chris@10 7282 else
Chris@10 7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 7284 $as_echo "no" >&6; }
Chris@10 7285 fi
Chris@10 7286
Chris@10 7287
Chris@10 7288 fi
Chris@10 7289 if test -z "$ac_cv_prog_RANLIB"; then
Chris@10 7290 ac_ct_RANLIB=$RANLIB
Chris@10 7291 # Extract the first word of "ranlib", so it can be a program name with args.
Chris@10 7292 set dummy ranlib; ac_word=$2
Chris@10 7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 7294 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 7295 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Chris@10 7296 $as_echo_n "(cached) " >&6
Chris@10 7297 else
Chris@10 7298 if test -n "$ac_ct_RANLIB"; then
Chris@10 7299 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Chris@10 7300 else
Chris@10 7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 7302 for as_dir in $PATH
Chris@10 7303 do
Chris@10 7304 IFS=$as_save_IFS
Chris@10 7305 test -z "$as_dir" && as_dir=.
Chris@10 7306 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 7307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 7308 ac_cv_prog_ac_ct_RANLIB="ranlib"
Chris@10 7309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 7310 break 2
Chris@10 7311 fi
Chris@10 7312 done
Chris@10 7313 done
Chris@10 7314 IFS=$as_save_IFS
Chris@10 7315
Chris@10 7316 fi
Chris@10 7317 fi
Chris@10 7318 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
Chris@10 7319 if test -n "$ac_ct_RANLIB"; then
Chris@10 7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Chris@10 7321 $as_echo "$ac_ct_RANLIB" >&6; }
Chris@10 7322 else
Chris@10 7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 7324 $as_echo "no" >&6; }
Chris@10 7325 fi
Chris@10 7326
Chris@10 7327 if test "x$ac_ct_RANLIB" = x; then
Chris@10 7328 RANLIB=":"
Chris@10 7329 else
Chris@10 7330 case $cross_compiling:$ac_tool_warned in
Chris@10 7331 yes:)
Chris@10 7332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@10 7333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@10 7334 ac_tool_warned=yes ;;
Chris@10 7335 esac
Chris@10 7336 RANLIB=$ac_ct_RANLIB
Chris@10 7337 fi
Chris@10 7338 else
Chris@10 7339 RANLIB="$ac_cv_prog_RANLIB"
Chris@10 7340 fi
Chris@10 7341
Chris@10 7342 test -z "$RANLIB" && RANLIB=:
Chris@10 7343
Chris@10 7344
Chris@10 7345
Chris@10 7346
Chris@10 7347
Chris@10 7348
Chris@10 7349 # Determine commands to create old-style static archives.
Chris@10 7350 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
Chris@10 7351 old_postinstall_cmds='chmod 644 $oldlib'
Chris@10 7352 old_postuninstall_cmds=
Chris@10 7353
Chris@10 7354 if test -n "$RANLIB"; then
Chris@10 7355 case $host_os in
Chris@10 7356 openbsd*)
Chris@10 7357 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
Chris@10 7358 ;;
Chris@10 7359 *)
Chris@10 7360 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
Chris@10 7361 ;;
Chris@10 7362 esac
Chris@10 7363 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
Chris@10 7364 fi
Chris@10 7365
Chris@10 7366 case $host_os in
Chris@10 7367 darwin*)
Chris@10 7368 lock_old_archive_extraction=yes ;;
Chris@10 7369 *)
Chris@10 7370 lock_old_archive_extraction=no ;;
Chris@10 7371 esac
Chris@10 7372
Chris@10 7373
Chris@10 7374
Chris@10 7375
Chris@10 7376
Chris@10 7377
Chris@10 7378
Chris@10 7379
Chris@10 7380
Chris@10 7381
Chris@10 7382
Chris@10 7383
Chris@10 7384
Chris@10 7385
Chris@10 7386
Chris@10 7387
Chris@10 7388
Chris@10 7389
Chris@10 7390
Chris@10 7391
Chris@10 7392
Chris@10 7393
Chris@10 7394
Chris@10 7395
Chris@10 7396
Chris@10 7397
Chris@10 7398
Chris@10 7399
Chris@10 7400
Chris@10 7401
Chris@10 7402
Chris@10 7403
Chris@10 7404
Chris@10 7405
Chris@10 7406
Chris@10 7407
Chris@10 7408
Chris@10 7409
Chris@10 7410
Chris@10 7411 # If no C compiler was specified, use CC.
Chris@10 7412 LTCC=${LTCC-"$CC"}
Chris@10 7413
Chris@10 7414 # If no C compiler flags were specified, use CFLAGS.
Chris@10 7415 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Chris@10 7416
Chris@10 7417 # Allow CC to be a program name with arguments.
Chris@10 7418 compiler=$CC
Chris@10 7419
Chris@10 7420
Chris@10 7421 # Check for command to grab the raw symbol name followed by C symbol from nm.
Chris@10 7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
Chris@10 7423 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Chris@10 7424 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Chris@10 7425 $as_echo_n "(cached) " >&6
Chris@10 7426 else
Chris@10 7427
Chris@10 7428 # These are sane defaults that work on at least a few old systems.
Chris@10 7429 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
Chris@10 7430
Chris@10 7431 # Character class describing NM global symbol codes.
Chris@10 7432 symcode='[BCDEGRST]'
Chris@10 7433
Chris@10 7434 # Regexp to match symbols that can be accessed directly from C.
Chris@10 7435 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
Chris@10 7436
Chris@10 7437 # Define system-specific variables.
Chris@10 7438 case $host_os in
Chris@10 7439 aix*)
Chris@10 7440 symcode='[BCDT]'
Chris@10 7441 ;;
Chris@10 7442 cygwin* | mingw* | pw32* | cegcc*)
Chris@10 7443 symcode='[ABCDGISTW]'
Chris@10 7444 ;;
Chris@10 7445 hpux*)
Chris@10 7446 if test "$host_cpu" = ia64; then
Chris@10 7447 symcode='[ABCDEGRST]'
Chris@10 7448 fi
Chris@10 7449 ;;
Chris@10 7450 irix* | nonstopux*)
Chris@10 7451 symcode='[BCDEGRST]'
Chris@10 7452 ;;
Chris@10 7453 osf*)
Chris@10 7454 symcode='[BCDEGQRST]'
Chris@10 7455 ;;
Chris@10 7456 solaris*)
Chris@10 7457 symcode='[BDRT]'
Chris@10 7458 ;;
Chris@10 7459 sco3.2v5*)
Chris@10 7460 symcode='[DT]'
Chris@10 7461 ;;
Chris@10 7462 sysv4.2uw2*)
Chris@10 7463 symcode='[DT]'
Chris@10 7464 ;;
Chris@10 7465 sysv5* | sco5v6* | unixware* | OpenUNIX*)
Chris@10 7466 symcode='[ABDT]'
Chris@10 7467 ;;
Chris@10 7468 sysv4)
Chris@10 7469 symcode='[DFNSTU]'
Chris@10 7470 ;;
Chris@10 7471 esac
Chris@10 7472
Chris@10 7473 # If we're using GNU nm, then use its standard symbol codes.
Chris@10 7474 case `$NM -V 2>&1` in
Chris@10 7475 *GNU* | *'with BFD'*)
Chris@10 7476 symcode='[ABCDGIRSTW]' ;;
Chris@10 7477 esac
Chris@10 7478
Chris@10 7479 # Transform an extracted symbol line into a proper C declaration.
Chris@10 7480 # Some systems (esp. on ia64) link data and code symbols differently,
Chris@10 7481 # so use this general approach.
Chris@10 7482 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
Chris@10 7483
Chris@10 7484 # Transform an extracted symbol line into symbol name and symbol address
Chris@10 7485 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@10 7486 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@10 7487
Chris@10 7488 # Handle CRLF in mingw tool chain
Chris@10 7489 opt_cr=
Chris@10 7490 case $build_os in
Chris@10 7491 mingw*)
Chris@10 7492 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
Chris@10 7493 ;;
Chris@10 7494 esac
Chris@10 7495
Chris@10 7496 # Try without a prefix underscore, then with it.
Chris@10 7497 for ac_symprfx in "" "_"; do
Chris@10 7498
Chris@10 7499 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
Chris@10 7500 symxfrm="\\1 $ac_symprfx\\2 \\2"
Chris@10 7501
Chris@10 7502 # Write the raw and C identifiers.
Chris@10 7503 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Chris@10 7504 # Fake it for dumpbin and say T for any non-static function
Chris@10 7505 # and D for any global variable.
Chris@10 7506 # Also find C++ and __fastcall symbols from MSVC++,
Chris@10 7507 # which start with @ or ?.
Chris@10 7508 lt_cv_sys_global_symbol_pipe="$AWK '"\
Chris@10 7509 " {last_section=section; section=\$ 3};"\
Chris@10 7510 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
Chris@10 7511 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
Chris@10 7512 " \$ 0!~/External *\|/{next};"\
Chris@10 7513 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
Chris@10 7514 " {if(hide[section]) next};"\
Chris@10 7515 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
Chris@10 7516 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
Chris@10 7517 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
Chris@10 7518 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
Chris@10 7519 " ' prfx=^$ac_symprfx"
Chris@10 7520 else
Chris@10 7521 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
Chris@10 7522 fi
Chris@10 7523 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
Chris@10 7524
Chris@10 7525 # Check to see that the pipe works correctly.
Chris@10 7526 pipe_works=no
Chris@10 7527
Chris@10 7528 rm -f conftest*
Chris@10 7529 cat > conftest.$ac_ext <<_LT_EOF
Chris@10 7530 #ifdef __cplusplus
Chris@10 7531 extern "C" {
Chris@10 7532 #endif
Chris@10 7533 char nm_test_var;
Chris@10 7534 void nm_test_func(void);
Chris@10 7535 void nm_test_func(void){}
Chris@10 7536 #ifdef __cplusplus
Chris@10 7537 }
Chris@10 7538 #endif
Chris@10 7539 int main(){nm_test_var='a';nm_test_func();return(0);}
Chris@10 7540 _LT_EOF
Chris@10 7541
Chris@10 7542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@10 7543 (eval $ac_compile) 2>&5
Chris@10 7544 ac_status=$?
Chris@10 7545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 7546 test $ac_status = 0; }; then
Chris@10 7547 # Now try to grab the symbols.
Chris@10 7548 nlist=conftest.nm
Chris@10 7549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
Chris@10 7550 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
Chris@10 7551 ac_status=$?
Chris@10 7552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 7553 test $ac_status = 0; } && test -s "$nlist"; then
Chris@10 7554 # Try sorting and uniquifying the output.
Chris@10 7555 if sort "$nlist" | uniq > "$nlist"T; then
Chris@10 7556 mv -f "$nlist"T "$nlist"
Chris@10 7557 else
Chris@10 7558 rm -f "$nlist"T
Chris@10 7559 fi
Chris@10 7560
Chris@10 7561 # Make sure that we snagged all the symbols we need.
Chris@10 7562 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
Chris@10 7563 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
Chris@10 7564 cat <<_LT_EOF > conftest.$ac_ext
Chris@10 7565 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
Chris@10 7566 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
Chris@10 7567 /* DATA imports from DLLs on WIN32 con't be const, because runtime
Chris@10 7568 relocations are performed -- see ld's documentation on pseudo-relocs. */
Chris@10 7569 # define LT_DLSYM_CONST
Chris@10 7570 #elif defined(__osf__)
Chris@10 7571 /* This system does not cope well with relocations in const data. */
Chris@10 7572 # define LT_DLSYM_CONST
Chris@10 7573 #else
Chris@10 7574 # define LT_DLSYM_CONST const
Chris@10 7575 #endif
Chris@10 7576
Chris@10 7577 #ifdef __cplusplus
Chris@10 7578 extern "C" {
Chris@10 7579 #endif
Chris@10 7580
Chris@10 7581 _LT_EOF
Chris@10 7582 # Now generate the symbol file.
Chris@10 7583 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
Chris@10 7584
Chris@10 7585 cat <<_LT_EOF >> conftest.$ac_ext
Chris@10 7586
Chris@10 7587 /* The mapping between symbol names and symbols. */
Chris@10 7588 LT_DLSYM_CONST struct {
Chris@10 7589 const char *name;
Chris@10 7590 void *address;
Chris@10 7591 }
Chris@10 7592 lt__PROGRAM__LTX_preloaded_symbols[] =
Chris@10 7593 {
Chris@10 7594 { "@PROGRAM@", (void *) 0 },
Chris@10 7595 _LT_EOF
Chris@10 7596 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
Chris@10 7597 cat <<\_LT_EOF >> conftest.$ac_ext
Chris@10 7598 {0, (void *) 0}
Chris@10 7599 };
Chris@10 7600
Chris@10 7601 /* This works around a problem in FreeBSD linker */
Chris@10 7602 #ifdef FREEBSD_WORKAROUND
Chris@10 7603 static const void *lt_preloaded_setup() {
Chris@10 7604 return lt__PROGRAM__LTX_preloaded_symbols;
Chris@10 7605 }
Chris@10 7606 #endif
Chris@10 7607
Chris@10 7608 #ifdef __cplusplus
Chris@10 7609 }
Chris@10 7610 #endif
Chris@10 7611 _LT_EOF
Chris@10 7612 # Now try linking the two files.
Chris@10 7613 mv conftest.$ac_objext conftstm.$ac_objext
Chris@10 7614 lt_globsym_save_LIBS=$LIBS
Chris@10 7615 lt_globsym_save_CFLAGS=$CFLAGS
Chris@10 7616 LIBS="conftstm.$ac_objext"
Chris@10 7617 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Chris@10 7618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Chris@10 7619 (eval $ac_link) 2>&5
Chris@10 7620 ac_status=$?
Chris@10 7621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 7622 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
Chris@10 7623 pipe_works=yes
Chris@10 7624 fi
Chris@10 7625 LIBS=$lt_globsym_save_LIBS
Chris@10 7626 CFLAGS=$lt_globsym_save_CFLAGS
Chris@10 7627 else
Chris@10 7628 echo "cannot find nm_test_func in $nlist" >&5
Chris@10 7629 fi
Chris@10 7630 else
Chris@10 7631 echo "cannot find nm_test_var in $nlist" >&5
Chris@10 7632 fi
Chris@10 7633 else
Chris@10 7634 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
Chris@10 7635 fi
Chris@10 7636 else
Chris@10 7637 echo "$progname: failed program was:" >&5
Chris@10 7638 cat conftest.$ac_ext >&5
Chris@10 7639 fi
Chris@10 7640 rm -rf conftest* conftst*
Chris@10 7641
Chris@10 7642 # Do not use the global_symbol_pipe unless it works.
Chris@10 7643 if test "$pipe_works" = yes; then
Chris@10 7644 break
Chris@10 7645 else
Chris@10 7646 lt_cv_sys_global_symbol_pipe=
Chris@10 7647 fi
Chris@10 7648 done
Chris@10 7649
Chris@10 7650 fi
Chris@10 7651
Chris@10 7652 if test -z "$lt_cv_sys_global_symbol_pipe"; then
Chris@10 7653 lt_cv_sys_global_symbol_to_cdecl=
Chris@10 7654 fi
Chris@10 7655 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Chris@10 7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
Chris@10 7657 $as_echo "failed" >&6; }
Chris@10 7658 else
Chris@10 7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
Chris@10 7660 $as_echo "ok" >&6; }
Chris@10 7661 fi
Chris@10 7662
Chris@10 7663 # Response file support.
Chris@10 7664 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Chris@10 7665 nm_file_list_spec='@'
Chris@10 7666 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
Chris@10 7667 nm_file_list_spec='@'
Chris@10 7668 fi
Chris@10 7669
Chris@10 7670
Chris@10 7671
Chris@10 7672
Chris@10 7673
Chris@10 7674
Chris@10 7675
Chris@10 7676
Chris@10 7677
Chris@10 7678
Chris@10 7679
Chris@10 7680
Chris@10 7681
Chris@10 7682
Chris@10 7683
Chris@10 7684
Chris@10 7685
Chris@10 7686
Chris@10 7687
Chris@10 7688
Chris@10 7689
Chris@10 7690
Chris@10 7691
Chris@10 7692
Chris@10 7693
Chris@10 7694
Chris@10 7695
Chris@10 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
Chris@10 7697 $as_echo_n "checking for sysroot... " >&6; }
Chris@10 7698
Chris@10 7699 # Check whether --with-sysroot was given.
Chris@10 7700 if test "${with_sysroot+set}" = set; then :
Chris@10 7701 withval=$with_sysroot;
Chris@10 7702 else
Chris@10 7703 with_sysroot=no
Chris@10 7704 fi
Chris@10 7705
Chris@10 7706
Chris@10 7707 lt_sysroot=
Chris@10 7708 case ${with_sysroot} in #(
Chris@10 7709 yes)
Chris@10 7710 if test "$GCC" = yes; then
Chris@10 7711 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
Chris@10 7712 fi
Chris@10 7713 ;; #(
Chris@10 7714 /*)
Chris@10 7715 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
Chris@10 7716 ;; #(
Chris@10 7717 no|'')
Chris@10 7718 ;; #(
Chris@10 7719 *)
Chris@10 7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
Chris@10 7721 $as_echo "${with_sysroot}" >&6; }
Chris@10 7722 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
Chris@10 7723 ;;
Chris@10 7724 esac
Chris@10 7725
Chris@10 7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
Chris@10 7727 $as_echo "${lt_sysroot:-no}" >&6; }
Chris@10 7728
Chris@10 7729
Chris@10 7730
Chris@10 7731
Chris@10 7732
Chris@10 7733 # Check whether --enable-libtool-lock was given.
Chris@10 7734 if test "${enable_libtool_lock+set}" = set; then :
Chris@10 7735 enableval=$enable_libtool_lock;
Chris@10 7736 fi
Chris@10 7737
Chris@10 7738 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Chris@10 7739
Chris@10 7740 # Some flags need to be propagated to the compiler or linker for good
Chris@10 7741 # libtool support.
Chris@10 7742 case $host in
Chris@10 7743 ia64-*-hpux*)
Chris@10 7744 # Find out which ABI we are using.
Chris@10 7745 echo 'int i;' > conftest.$ac_ext
Chris@10 7746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@10 7747 (eval $ac_compile) 2>&5
Chris@10 7748 ac_status=$?
Chris@10 7749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 7750 test $ac_status = 0; }; then
Chris@10 7751 case `/usr/bin/file conftest.$ac_objext` in
Chris@10 7752 *ELF-32*)
Chris@10 7753 HPUX_IA64_MODE="32"
Chris@10 7754 ;;
Chris@10 7755 *ELF-64*)
Chris@10 7756 HPUX_IA64_MODE="64"
Chris@10 7757 ;;
Chris@10 7758 esac
Chris@10 7759 fi
Chris@10 7760 rm -rf conftest*
Chris@10 7761 ;;
Chris@10 7762 *-*-irix6*)
Chris@10 7763 # Find out which ABI we are using.
Chris@10 7764 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
Chris@10 7765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@10 7766 (eval $ac_compile) 2>&5
Chris@10 7767 ac_status=$?
Chris@10 7768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 7769 test $ac_status = 0; }; then
Chris@10 7770 if test "$lt_cv_prog_gnu_ld" = yes; then
Chris@10 7771 case `/usr/bin/file conftest.$ac_objext` in
Chris@10 7772 *32-bit*)
Chris@10 7773 LD="${LD-ld} -melf32bsmip"
Chris@10 7774 ;;
Chris@10 7775 *N32*)
Chris@10 7776 LD="${LD-ld} -melf32bmipn32"
Chris@10 7777 ;;
Chris@10 7778 *64-bit*)
Chris@10 7779 LD="${LD-ld} -melf64bmip"
Chris@10 7780 ;;
Chris@10 7781 esac
Chris@10 7782 else
Chris@10 7783 case `/usr/bin/file conftest.$ac_objext` in
Chris@10 7784 *32-bit*)
Chris@10 7785 LD="${LD-ld} -32"
Chris@10 7786 ;;
Chris@10 7787 *N32*)
Chris@10 7788 LD="${LD-ld} -n32"
Chris@10 7789 ;;
Chris@10 7790 *64-bit*)
Chris@10 7791 LD="${LD-ld} -64"
Chris@10 7792 ;;
Chris@10 7793 esac
Chris@10 7794 fi
Chris@10 7795 fi
Chris@10 7796 rm -rf conftest*
Chris@10 7797 ;;
Chris@10 7798
Chris@10 7799 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
Chris@10 7800 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Chris@10 7801 # Find out which ABI we are using.
Chris@10 7802 echo 'int i;' > conftest.$ac_ext
Chris@10 7803 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@10 7804 (eval $ac_compile) 2>&5
Chris@10 7805 ac_status=$?
Chris@10 7806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 7807 test $ac_status = 0; }; then
Chris@10 7808 case `/usr/bin/file conftest.o` in
Chris@10 7809 *32-bit*)
Chris@10 7810 case $host in
Chris@10 7811 x86_64-*kfreebsd*-gnu)
Chris@10 7812 LD="${LD-ld} -m elf_i386_fbsd"
Chris@10 7813 ;;
Chris@10 7814 x86_64-*linux*)
Chris@10 7815 LD="${LD-ld} -m elf_i386"
Chris@10 7816 ;;
Chris@10 7817 ppc64-*linux*|powerpc64-*linux*)
Chris@10 7818 LD="${LD-ld} -m elf32ppclinux"
Chris@10 7819 ;;
Chris@10 7820 s390x-*linux*)
Chris@10 7821 LD="${LD-ld} -m elf_s390"
Chris@10 7822 ;;
Chris@10 7823 sparc64-*linux*)
Chris@10 7824 LD="${LD-ld} -m elf32_sparc"
Chris@10 7825 ;;
Chris@10 7826 esac
Chris@10 7827 ;;
Chris@10 7828 *64-bit*)
Chris@10 7829 case $host in
Chris@10 7830 x86_64-*kfreebsd*-gnu)
Chris@10 7831 LD="${LD-ld} -m elf_x86_64_fbsd"
Chris@10 7832 ;;
Chris@10 7833 x86_64-*linux*)
Chris@10 7834 LD="${LD-ld} -m elf_x86_64"
Chris@10 7835 ;;
Chris@10 7836 ppc*-*linux*|powerpc*-*linux*)
Chris@10 7837 LD="${LD-ld} -m elf64ppc"
Chris@10 7838 ;;
Chris@10 7839 s390*-*linux*|s390*-*tpf*)
Chris@10 7840 LD="${LD-ld} -m elf64_s390"
Chris@10 7841 ;;
Chris@10 7842 sparc*-*linux*)
Chris@10 7843 LD="${LD-ld} -m elf64_sparc"
Chris@10 7844 ;;
Chris@10 7845 esac
Chris@10 7846 ;;
Chris@10 7847 esac
Chris@10 7848 fi
Chris@10 7849 rm -rf conftest*
Chris@10 7850 ;;
Chris@10 7851
Chris@10 7852 *-*-sco3.2v5*)
Chris@10 7853 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
Chris@10 7854 SAVE_CFLAGS="$CFLAGS"
Chris@10 7855 CFLAGS="$CFLAGS -belf"
Chris@10 7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
Chris@10 7857 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Chris@10 7858 if ${lt_cv_cc_needs_belf+:} false; then :
Chris@10 7859 $as_echo_n "(cached) " >&6
Chris@10 7860 else
Chris@10 7861 ac_ext=c
Chris@10 7862 ac_cpp='$CPP $CPPFLAGS'
Chris@10 7863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@10 7864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 7865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@10 7866
Chris@10 7867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 7868 /* end confdefs.h. */
Chris@10 7869
Chris@10 7870 int
Chris@10 7871 main ()
Chris@10 7872 {
Chris@10 7873
Chris@10 7874 ;
Chris@10 7875 return 0;
Chris@10 7876 }
Chris@10 7877 _ACEOF
Chris@10 7878 if ac_fn_c_try_link "$LINENO"; then :
Chris@10 7879 lt_cv_cc_needs_belf=yes
Chris@10 7880 else
Chris@10 7881 lt_cv_cc_needs_belf=no
Chris@10 7882 fi
Chris@10 7883 rm -f core conftest.err conftest.$ac_objext \
Chris@10 7884 conftest$ac_exeext conftest.$ac_ext
Chris@10 7885 ac_ext=c
Chris@10 7886 ac_cpp='$CPP $CPPFLAGS'
Chris@10 7887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@10 7888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 7889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@10 7890
Chris@10 7891 fi
Chris@10 7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
Chris@10 7893 $as_echo "$lt_cv_cc_needs_belf" >&6; }
Chris@10 7894 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
Chris@10 7895 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
Chris@10 7896 CFLAGS="$SAVE_CFLAGS"
Chris@10 7897 fi
Chris@10 7898 ;;
Chris@10 7899 *-*solaris*)
Chris@10 7900 # Find out which ABI we are using.
Chris@10 7901 echo 'int i;' > conftest.$ac_ext
Chris@10 7902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@10 7903 (eval $ac_compile) 2>&5
Chris@10 7904 ac_status=$?
Chris@10 7905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 7906 test $ac_status = 0; }; then
Chris@10 7907 case `/usr/bin/file conftest.o` in
Chris@10 7908 *64-bit*)
Chris@10 7909 case $lt_cv_prog_gnu_ld in
Chris@10 7910 yes*)
Chris@10 7911 case $host in
Chris@10 7912 i?86-*-solaris*)
Chris@10 7913 LD="${LD-ld} -m elf_x86_64"
Chris@10 7914 ;;
Chris@10 7915 sparc*-*-solaris*)
Chris@10 7916 LD="${LD-ld} -m elf64_sparc"
Chris@10 7917 ;;
Chris@10 7918 esac
Chris@10 7919 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
Chris@10 7920 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
Chris@10 7921 LD="${LD-ld}_sol2"
Chris@10 7922 fi
Chris@10 7923 ;;
Chris@10 7924 *)
Chris@10 7925 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
Chris@10 7926 LD="${LD-ld} -64"
Chris@10 7927 fi
Chris@10 7928 ;;
Chris@10 7929 esac
Chris@10 7930 ;;
Chris@10 7931 esac
Chris@10 7932 fi
Chris@10 7933 rm -rf conftest*
Chris@10 7934 ;;
Chris@10 7935 esac
Chris@10 7936
Chris@10 7937 need_locks="$enable_libtool_lock"
Chris@10 7938
Chris@10 7939 if test -n "$ac_tool_prefix"; then
Chris@10 7940 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
Chris@10 7941 set dummy ${ac_tool_prefix}mt; ac_word=$2
Chris@10 7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 7943 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 7944 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
Chris@10 7945 $as_echo_n "(cached) " >&6
Chris@10 7946 else
Chris@10 7947 if test -n "$MANIFEST_TOOL"; then
Chris@10 7948 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
Chris@10 7949 else
Chris@10 7950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 7951 for as_dir in $PATH
Chris@10 7952 do
Chris@10 7953 IFS=$as_save_IFS
Chris@10 7954 test -z "$as_dir" && as_dir=.
Chris@10 7955 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 7956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 7957 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
Chris@10 7958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 7959 break 2
Chris@10 7960 fi
Chris@10 7961 done
Chris@10 7962 done
Chris@10 7963 IFS=$as_save_IFS
Chris@10 7964
Chris@10 7965 fi
Chris@10 7966 fi
Chris@10 7967 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
Chris@10 7968 if test -n "$MANIFEST_TOOL"; then
Chris@10 7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
Chris@10 7970 $as_echo "$MANIFEST_TOOL" >&6; }
Chris@10 7971 else
Chris@10 7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 7973 $as_echo "no" >&6; }
Chris@10 7974 fi
Chris@10 7975
Chris@10 7976
Chris@10 7977 fi
Chris@10 7978 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
Chris@10 7979 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
Chris@10 7980 # Extract the first word of "mt", so it can be a program name with args.
Chris@10 7981 set dummy mt; ac_word=$2
Chris@10 7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 7983 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 7984 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
Chris@10 7985 $as_echo_n "(cached) " >&6
Chris@10 7986 else
Chris@10 7987 if test -n "$ac_ct_MANIFEST_TOOL"; then
Chris@10 7988 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
Chris@10 7989 else
Chris@10 7990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 7991 for as_dir in $PATH
Chris@10 7992 do
Chris@10 7993 IFS=$as_save_IFS
Chris@10 7994 test -z "$as_dir" && as_dir=.
Chris@10 7995 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 7996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 7997 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
Chris@10 7998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 7999 break 2
Chris@10 8000 fi
Chris@10 8001 done
Chris@10 8002 done
Chris@10 8003 IFS=$as_save_IFS
Chris@10 8004
Chris@10 8005 fi
Chris@10 8006 fi
Chris@10 8007 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
Chris@10 8008 if test -n "$ac_ct_MANIFEST_TOOL"; then
Chris@10 8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
Chris@10 8010 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
Chris@10 8011 else
Chris@10 8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 8013 $as_echo "no" >&6; }
Chris@10 8014 fi
Chris@10 8015
Chris@10 8016 if test "x$ac_ct_MANIFEST_TOOL" = x; then
Chris@10 8017 MANIFEST_TOOL=":"
Chris@10 8018 else
Chris@10 8019 case $cross_compiling:$ac_tool_warned in
Chris@10 8020 yes:)
Chris@10 8021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@10 8022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@10 8023 ac_tool_warned=yes ;;
Chris@10 8024 esac
Chris@10 8025 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
Chris@10 8026 fi
Chris@10 8027 else
Chris@10 8028 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
Chris@10 8029 fi
Chris@10 8030
Chris@10 8031 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
Chris@10 8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
Chris@10 8033 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
Chris@10 8034 if ${lt_cv_path_mainfest_tool+:} false; then :
Chris@10 8035 $as_echo_n "(cached) " >&6
Chris@10 8036 else
Chris@10 8037 lt_cv_path_mainfest_tool=no
Chris@10 8038 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
Chris@10 8039 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
Chris@10 8040 cat conftest.err >&5
Chris@10 8041 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
Chris@10 8042 lt_cv_path_mainfest_tool=yes
Chris@10 8043 fi
Chris@10 8044 rm -f conftest*
Chris@10 8045 fi
Chris@10 8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
Chris@10 8047 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
Chris@10 8048 if test "x$lt_cv_path_mainfest_tool" != xyes; then
Chris@10 8049 MANIFEST_TOOL=:
Chris@10 8050 fi
Chris@10 8051
Chris@10 8052
Chris@10 8053
Chris@10 8054
Chris@10 8055
Chris@10 8056
Chris@10 8057 case $host_os in
Chris@10 8058 rhapsody* | darwin*)
Chris@10 8059 if test -n "$ac_tool_prefix"; then
Chris@10 8060 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
Chris@10 8061 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Chris@10 8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 8063 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 8064 if ${ac_cv_prog_DSYMUTIL+:} false; then :
Chris@10 8065 $as_echo_n "(cached) " >&6
Chris@10 8066 else
Chris@10 8067 if test -n "$DSYMUTIL"; then
Chris@10 8068 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
Chris@10 8069 else
Chris@10 8070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 8071 for as_dir in $PATH
Chris@10 8072 do
Chris@10 8073 IFS=$as_save_IFS
Chris@10 8074 test -z "$as_dir" && as_dir=.
Chris@10 8075 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 8076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 8077 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Chris@10 8078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 8079 break 2
Chris@10 8080 fi
Chris@10 8081 done
Chris@10 8082 done
Chris@10 8083 IFS=$as_save_IFS
Chris@10 8084
Chris@10 8085 fi
Chris@10 8086 fi
Chris@10 8087 DSYMUTIL=$ac_cv_prog_DSYMUTIL
Chris@10 8088 if test -n "$DSYMUTIL"; then
Chris@10 8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
Chris@10 8090 $as_echo "$DSYMUTIL" >&6; }
Chris@10 8091 else
Chris@10 8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 8093 $as_echo "no" >&6; }
Chris@10 8094 fi
Chris@10 8095
Chris@10 8096
Chris@10 8097 fi
Chris@10 8098 if test -z "$ac_cv_prog_DSYMUTIL"; then
Chris@10 8099 ac_ct_DSYMUTIL=$DSYMUTIL
Chris@10 8100 # Extract the first word of "dsymutil", so it can be a program name with args.
Chris@10 8101 set dummy dsymutil; ac_word=$2
Chris@10 8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 8103 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 8104 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Chris@10 8105 $as_echo_n "(cached) " >&6
Chris@10 8106 else
Chris@10 8107 if test -n "$ac_ct_DSYMUTIL"; then
Chris@10 8108 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
Chris@10 8109 else
Chris@10 8110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 8111 for as_dir in $PATH
Chris@10 8112 do
Chris@10 8113 IFS=$as_save_IFS
Chris@10 8114 test -z "$as_dir" && as_dir=.
Chris@10 8115 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 8116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 8117 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Chris@10 8118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 8119 break 2
Chris@10 8120 fi
Chris@10 8121 done
Chris@10 8122 done
Chris@10 8123 IFS=$as_save_IFS
Chris@10 8124
Chris@10 8125 fi
Chris@10 8126 fi
Chris@10 8127 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
Chris@10 8128 if test -n "$ac_ct_DSYMUTIL"; then
Chris@10 8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
Chris@10 8130 $as_echo "$ac_ct_DSYMUTIL" >&6; }
Chris@10 8131 else
Chris@10 8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 8133 $as_echo "no" >&6; }
Chris@10 8134 fi
Chris@10 8135
Chris@10 8136 if test "x$ac_ct_DSYMUTIL" = x; then
Chris@10 8137 DSYMUTIL=":"
Chris@10 8138 else
Chris@10 8139 case $cross_compiling:$ac_tool_warned in
Chris@10 8140 yes:)
Chris@10 8141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@10 8142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@10 8143 ac_tool_warned=yes ;;
Chris@10 8144 esac
Chris@10 8145 DSYMUTIL=$ac_ct_DSYMUTIL
Chris@10 8146 fi
Chris@10 8147 else
Chris@10 8148 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
Chris@10 8149 fi
Chris@10 8150
Chris@10 8151 if test -n "$ac_tool_prefix"; then
Chris@10 8152 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
Chris@10 8153 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Chris@10 8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 8155 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 8156 if ${ac_cv_prog_NMEDIT+:} false; then :
Chris@10 8157 $as_echo_n "(cached) " >&6
Chris@10 8158 else
Chris@10 8159 if test -n "$NMEDIT"; then
Chris@10 8160 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
Chris@10 8161 else
Chris@10 8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 8163 for as_dir in $PATH
Chris@10 8164 do
Chris@10 8165 IFS=$as_save_IFS
Chris@10 8166 test -z "$as_dir" && as_dir=.
Chris@10 8167 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 8168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 8169 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Chris@10 8170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 8171 break 2
Chris@10 8172 fi
Chris@10 8173 done
Chris@10 8174 done
Chris@10 8175 IFS=$as_save_IFS
Chris@10 8176
Chris@10 8177 fi
Chris@10 8178 fi
Chris@10 8179 NMEDIT=$ac_cv_prog_NMEDIT
Chris@10 8180 if test -n "$NMEDIT"; then
Chris@10 8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
Chris@10 8182 $as_echo "$NMEDIT" >&6; }
Chris@10 8183 else
Chris@10 8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 8185 $as_echo "no" >&6; }
Chris@10 8186 fi
Chris@10 8187
Chris@10 8188
Chris@10 8189 fi
Chris@10 8190 if test -z "$ac_cv_prog_NMEDIT"; then
Chris@10 8191 ac_ct_NMEDIT=$NMEDIT
Chris@10 8192 # Extract the first word of "nmedit", so it can be a program name with args.
Chris@10 8193 set dummy nmedit; ac_word=$2
Chris@10 8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 8195 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 8196 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Chris@10 8197 $as_echo_n "(cached) " >&6
Chris@10 8198 else
Chris@10 8199 if test -n "$ac_ct_NMEDIT"; then
Chris@10 8200 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
Chris@10 8201 else
Chris@10 8202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 8203 for as_dir in $PATH
Chris@10 8204 do
Chris@10 8205 IFS=$as_save_IFS
Chris@10 8206 test -z "$as_dir" && as_dir=.
Chris@10 8207 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 8208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 8209 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Chris@10 8210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 8211 break 2
Chris@10 8212 fi
Chris@10 8213 done
Chris@10 8214 done
Chris@10 8215 IFS=$as_save_IFS
Chris@10 8216
Chris@10 8217 fi
Chris@10 8218 fi
Chris@10 8219 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
Chris@10 8220 if test -n "$ac_ct_NMEDIT"; then
Chris@10 8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
Chris@10 8222 $as_echo "$ac_ct_NMEDIT" >&6; }
Chris@10 8223 else
Chris@10 8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 8225 $as_echo "no" >&6; }
Chris@10 8226 fi
Chris@10 8227
Chris@10 8228 if test "x$ac_ct_NMEDIT" = x; then
Chris@10 8229 NMEDIT=":"
Chris@10 8230 else
Chris@10 8231 case $cross_compiling:$ac_tool_warned in
Chris@10 8232 yes:)
Chris@10 8233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@10 8234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@10 8235 ac_tool_warned=yes ;;
Chris@10 8236 esac
Chris@10 8237 NMEDIT=$ac_ct_NMEDIT
Chris@10 8238 fi
Chris@10 8239 else
Chris@10 8240 NMEDIT="$ac_cv_prog_NMEDIT"
Chris@10 8241 fi
Chris@10 8242
Chris@10 8243 if test -n "$ac_tool_prefix"; then
Chris@10 8244 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
Chris@10 8245 set dummy ${ac_tool_prefix}lipo; ac_word=$2
Chris@10 8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 8247 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 8248 if ${ac_cv_prog_LIPO+:} false; then :
Chris@10 8249 $as_echo_n "(cached) " >&6
Chris@10 8250 else
Chris@10 8251 if test -n "$LIPO"; then
Chris@10 8252 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
Chris@10 8253 else
Chris@10 8254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 8255 for as_dir in $PATH
Chris@10 8256 do
Chris@10 8257 IFS=$as_save_IFS
Chris@10 8258 test -z "$as_dir" && as_dir=.
Chris@10 8259 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 8260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 8261 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Chris@10 8262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 8263 break 2
Chris@10 8264 fi
Chris@10 8265 done
Chris@10 8266 done
Chris@10 8267 IFS=$as_save_IFS
Chris@10 8268
Chris@10 8269 fi
Chris@10 8270 fi
Chris@10 8271 LIPO=$ac_cv_prog_LIPO
Chris@10 8272 if test -n "$LIPO"; then
Chris@10 8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
Chris@10 8274 $as_echo "$LIPO" >&6; }
Chris@10 8275 else
Chris@10 8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 8277 $as_echo "no" >&6; }
Chris@10 8278 fi
Chris@10 8279
Chris@10 8280
Chris@10 8281 fi
Chris@10 8282 if test -z "$ac_cv_prog_LIPO"; then
Chris@10 8283 ac_ct_LIPO=$LIPO
Chris@10 8284 # Extract the first word of "lipo", so it can be a program name with args.
Chris@10 8285 set dummy lipo; ac_word=$2
Chris@10 8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 8287 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 8288 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Chris@10 8289 $as_echo_n "(cached) " >&6
Chris@10 8290 else
Chris@10 8291 if test -n "$ac_ct_LIPO"; then
Chris@10 8292 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
Chris@10 8293 else
Chris@10 8294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 8295 for as_dir in $PATH
Chris@10 8296 do
Chris@10 8297 IFS=$as_save_IFS
Chris@10 8298 test -z "$as_dir" && as_dir=.
Chris@10 8299 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 8300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 8301 ac_cv_prog_ac_ct_LIPO="lipo"
Chris@10 8302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 8303 break 2
Chris@10 8304 fi
Chris@10 8305 done
Chris@10 8306 done
Chris@10 8307 IFS=$as_save_IFS
Chris@10 8308
Chris@10 8309 fi
Chris@10 8310 fi
Chris@10 8311 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
Chris@10 8312 if test -n "$ac_ct_LIPO"; then
Chris@10 8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
Chris@10 8314 $as_echo "$ac_ct_LIPO" >&6; }
Chris@10 8315 else
Chris@10 8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 8317 $as_echo "no" >&6; }
Chris@10 8318 fi
Chris@10 8319
Chris@10 8320 if test "x$ac_ct_LIPO" = x; then
Chris@10 8321 LIPO=":"
Chris@10 8322 else
Chris@10 8323 case $cross_compiling:$ac_tool_warned in
Chris@10 8324 yes:)
Chris@10 8325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@10 8326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@10 8327 ac_tool_warned=yes ;;
Chris@10 8328 esac
Chris@10 8329 LIPO=$ac_ct_LIPO
Chris@10 8330 fi
Chris@10 8331 else
Chris@10 8332 LIPO="$ac_cv_prog_LIPO"
Chris@10 8333 fi
Chris@10 8334
Chris@10 8335 if test -n "$ac_tool_prefix"; then
Chris@10 8336 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
Chris@10 8337 set dummy ${ac_tool_prefix}otool; ac_word=$2
Chris@10 8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 8339 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 8340 if ${ac_cv_prog_OTOOL+:} false; then :
Chris@10 8341 $as_echo_n "(cached) " >&6
Chris@10 8342 else
Chris@10 8343 if test -n "$OTOOL"; then
Chris@10 8344 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
Chris@10 8345 else
Chris@10 8346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 8347 for as_dir in $PATH
Chris@10 8348 do
Chris@10 8349 IFS=$as_save_IFS
Chris@10 8350 test -z "$as_dir" && as_dir=.
Chris@10 8351 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 8352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 8353 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Chris@10 8354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 8355 break 2
Chris@10 8356 fi
Chris@10 8357 done
Chris@10 8358 done
Chris@10 8359 IFS=$as_save_IFS
Chris@10 8360
Chris@10 8361 fi
Chris@10 8362 fi
Chris@10 8363 OTOOL=$ac_cv_prog_OTOOL
Chris@10 8364 if test -n "$OTOOL"; then
Chris@10 8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
Chris@10 8366 $as_echo "$OTOOL" >&6; }
Chris@10 8367 else
Chris@10 8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 8369 $as_echo "no" >&6; }
Chris@10 8370 fi
Chris@10 8371
Chris@10 8372
Chris@10 8373 fi
Chris@10 8374 if test -z "$ac_cv_prog_OTOOL"; then
Chris@10 8375 ac_ct_OTOOL=$OTOOL
Chris@10 8376 # Extract the first word of "otool", so it can be a program name with args.
Chris@10 8377 set dummy otool; ac_word=$2
Chris@10 8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 8379 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 8380 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Chris@10 8381 $as_echo_n "(cached) " >&6
Chris@10 8382 else
Chris@10 8383 if test -n "$ac_ct_OTOOL"; then
Chris@10 8384 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
Chris@10 8385 else
Chris@10 8386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 8387 for as_dir in $PATH
Chris@10 8388 do
Chris@10 8389 IFS=$as_save_IFS
Chris@10 8390 test -z "$as_dir" && as_dir=.
Chris@10 8391 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 8392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 8393 ac_cv_prog_ac_ct_OTOOL="otool"
Chris@10 8394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 8395 break 2
Chris@10 8396 fi
Chris@10 8397 done
Chris@10 8398 done
Chris@10 8399 IFS=$as_save_IFS
Chris@10 8400
Chris@10 8401 fi
Chris@10 8402 fi
Chris@10 8403 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
Chris@10 8404 if test -n "$ac_ct_OTOOL"; then
Chris@10 8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
Chris@10 8406 $as_echo "$ac_ct_OTOOL" >&6; }
Chris@10 8407 else
Chris@10 8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 8409 $as_echo "no" >&6; }
Chris@10 8410 fi
Chris@10 8411
Chris@10 8412 if test "x$ac_ct_OTOOL" = x; then
Chris@10 8413 OTOOL=":"
Chris@10 8414 else
Chris@10 8415 case $cross_compiling:$ac_tool_warned in
Chris@10 8416 yes:)
Chris@10 8417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@10 8418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@10 8419 ac_tool_warned=yes ;;
Chris@10 8420 esac
Chris@10 8421 OTOOL=$ac_ct_OTOOL
Chris@10 8422 fi
Chris@10 8423 else
Chris@10 8424 OTOOL="$ac_cv_prog_OTOOL"
Chris@10 8425 fi
Chris@10 8426
Chris@10 8427 if test -n "$ac_tool_prefix"; then
Chris@10 8428 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
Chris@10 8429 set dummy ${ac_tool_prefix}otool64; ac_word=$2
Chris@10 8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 8431 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 8432 if ${ac_cv_prog_OTOOL64+:} false; then :
Chris@10 8433 $as_echo_n "(cached) " >&6
Chris@10 8434 else
Chris@10 8435 if test -n "$OTOOL64"; then
Chris@10 8436 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
Chris@10 8437 else
Chris@10 8438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 8439 for as_dir in $PATH
Chris@10 8440 do
Chris@10 8441 IFS=$as_save_IFS
Chris@10 8442 test -z "$as_dir" && as_dir=.
Chris@10 8443 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 8444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 8445 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Chris@10 8446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 8447 break 2
Chris@10 8448 fi
Chris@10 8449 done
Chris@10 8450 done
Chris@10 8451 IFS=$as_save_IFS
Chris@10 8452
Chris@10 8453 fi
Chris@10 8454 fi
Chris@10 8455 OTOOL64=$ac_cv_prog_OTOOL64
Chris@10 8456 if test -n "$OTOOL64"; then
Chris@10 8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
Chris@10 8458 $as_echo "$OTOOL64" >&6; }
Chris@10 8459 else
Chris@10 8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 8461 $as_echo "no" >&6; }
Chris@10 8462 fi
Chris@10 8463
Chris@10 8464
Chris@10 8465 fi
Chris@10 8466 if test -z "$ac_cv_prog_OTOOL64"; then
Chris@10 8467 ac_ct_OTOOL64=$OTOOL64
Chris@10 8468 # Extract the first word of "otool64", so it can be a program name with args.
Chris@10 8469 set dummy otool64; ac_word=$2
Chris@10 8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 8471 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 8472 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Chris@10 8473 $as_echo_n "(cached) " >&6
Chris@10 8474 else
Chris@10 8475 if test -n "$ac_ct_OTOOL64"; then
Chris@10 8476 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
Chris@10 8477 else
Chris@10 8478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 8479 for as_dir in $PATH
Chris@10 8480 do
Chris@10 8481 IFS=$as_save_IFS
Chris@10 8482 test -z "$as_dir" && as_dir=.
Chris@10 8483 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 8484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 8485 ac_cv_prog_ac_ct_OTOOL64="otool64"
Chris@10 8486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 8487 break 2
Chris@10 8488 fi
Chris@10 8489 done
Chris@10 8490 done
Chris@10 8491 IFS=$as_save_IFS
Chris@10 8492
Chris@10 8493 fi
Chris@10 8494 fi
Chris@10 8495 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
Chris@10 8496 if test -n "$ac_ct_OTOOL64"; then
Chris@10 8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
Chris@10 8498 $as_echo "$ac_ct_OTOOL64" >&6; }
Chris@10 8499 else
Chris@10 8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 8501 $as_echo "no" >&6; }
Chris@10 8502 fi
Chris@10 8503
Chris@10 8504 if test "x$ac_ct_OTOOL64" = x; then
Chris@10 8505 OTOOL64=":"
Chris@10 8506 else
Chris@10 8507 case $cross_compiling:$ac_tool_warned in
Chris@10 8508 yes:)
Chris@10 8509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@10 8510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@10 8511 ac_tool_warned=yes ;;
Chris@10 8512 esac
Chris@10 8513 OTOOL64=$ac_ct_OTOOL64
Chris@10 8514 fi
Chris@10 8515 else
Chris@10 8516 OTOOL64="$ac_cv_prog_OTOOL64"
Chris@10 8517 fi
Chris@10 8518
Chris@10 8519
Chris@10 8520
Chris@10 8521
Chris@10 8522
Chris@10 8523
Chris@10 8524
Chris@10 8525
Chris@10 8526
Chris@10 8527
Chris@10 8528
Chris@10 8529
Chris@10 8530
Chris@10 8531
Chris@10 8532
Chris@10 8533
Chris@10 8534
Chris@10 8535
Chris@10 8536
Chris@10 8537
Chris@10 8538
Chris@10 8539
Chris@10 8540
Chris@10 8541
Chris@10 8542
Chris@10 8543
Chris@10 8544
Chris@10 8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
Chris@10 8546 $as_echo_n "checking for -single_module linker flag... " >&6; }
Chris@10 8547 if ${lt_cv_apple_cc_single_mod+:} false; then :
Chris@10 8548 $as_echo_n "(cached) " >&6
Chris@10 8549 else
Chris@10 8550 lt_cv_apple_cc_single_mod=no
Chris@10 8551 if test -z "${LT_MULTI_MODULE}"; then
Chris@10 8552 # By default we will add the -single_module flag. You can override
Chris@10 8553 # by either setting the environment variable LT_MULTI_MODULE
Chris@10 8554 # non-empty at configure time, or by adding -multi_module to the
Chris@10 8555 # link flags.
Chris@10 8556 rm -rf libconftest.dylib*
Chris@10 8557 echo "int foo(void){return 1;}" > conftest.c
Chris@10 8558 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
Chris@10 8559 -dynamiclib -Wl,-single_module conftest.c" >&5
Chris@10 8560 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
Chris@10 8561 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
Chris@10 8562 _lt_result=$?
Chris@10 8563 # If there is a non-empty error log, and "single_module"
Chris@10 8564 # appears in it, assume the flag caused a linker warning
Chris@10 8565 if test -s conftest.err && $GREP single_module conftest.err; then
Chris@10 8566 cat conftest.err >&5
Chris@10 8567 # Otherwise, if the output was created with a 0 exit code from
Chris@10 8568 # the compiler, it worked.
Chris@10 8569 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
Chris@10 8570 lt_cv_apple_cc_single_mod=yes
Chris@10 8571 else
Chris@10 8572 cat conftest.err >&5
Chris@10 8573 fi
Chris@10 8574 rm -rf libconftest.dylib*
Chris@10 8575 rm -f conftest.*
Chris@10 8576 fi
Chris@10 8577 fi
Chris@10 8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
Chris@10 8579 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Chris@10 8580
Chris@10 8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
Chris@10 8582 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Chris@10 8583 if ${lt_cv_ld_exported_symbols_list+:} false; then :
Chris@10 8584 $as_echo_n "(cached) " >&6
Chris@10 8585 else
Chris@10 8586 lt_cv_ld_exported_symbols_list=no
Chris@10 8587 save_LDFLAGS=$LDFLAGS
Chris@10 8588 echo "_main" > conftest.sym
Chris@10 8589 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Chris@10 8590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 8591 /* end confdefs.h. */
Chris@10 8592
Chris@10 8593 int
Chris@10 8594 main ()
Chris@10 8595 {
Chris@10 8596
Chris@10 8597 ;
Chris@10 8598 return 0;
Chris@10 8599 }
Chris@10 8600 _ACEOF
Chris@10 8601 if ac_fn_c_try_link "$LINENO"; then :
Chris@10 8602 lt_cv_ld_exported_symbols_list=yes
Chris@10 8603 else
Chris@10 8604 lt_cv_ld_exported_symbols_list=no
Chris@10 8605 fi
Chris@10 8606 rm -f core conftest.err conftest.$ac_objext \
Chris@10 8607 conftest$ac_exeext conftest.$ac_ext
Chris@10 8608 LDFLAGS="$save_LDFLAGS"
Chris@10 8609
Chris@10 8610 fi
Chris@10 8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
Chris@10 8612 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Chris@10 8613
Chris@10 8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
Chris@10 8615 $as_echo_n "checking for -force_load linker flag... " >&6; }
Chris@10 8616 if ${lt_cv_ld_force_load+:} false; then :
Chris@10 8617 $as_echo_n "(cached) " >&6
Chris@10 8618 else
Chris@10 8619 lt_cv_ld_force_load=no
Chris@10 8620 cat > conftest.c << _LT_EOF
Chris@10 8621 int forced_loaded() { return 2;}
Chris@10 8622 _LT_EOF
Chris@10 8623 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
Chris@10 8624 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
Chris@10 8625 echo "$AR cru libconftest.a conftest.o" >&5
Chris@10 8626 $AR cru libconftest.a conftest.o 2>&5
Chris@10 8627 echo "$RANLIB libconftest.a" >&5
Chris@10 8628 $RANLIB libconftest.a 2>&5
Chris@10 8629 cat > conftest.c << _LT_EOF
Chris@10 8630 int main() { return 0;}
Chris@10 8631 _LT_EOF
Chris@10 8632 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
Chris@10 8633 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
Chris@10 8634 _lt_result=$?
Chris@10 8635 if test -s conftest.err && $GREP force_load conftest.err; then
Chris@10 8636 cat conftest.err >&5
Chris@10 8637 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
Chris@10 8638 lt_cv_ld_force_load=yes
Chris@10 8639 else
Chris@10 8640 cat conftest.err >&5
Chris@10 8641 fi
Chris@10 8642 rm -f conftest.err libconftest.a conftest conftest.c
Chris@10 8643 rm -rf conftest.dSYM
Chris@10 8644
Chris@10 8645 fi
Chris@10 8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
Chris@10 8647 $as_echo "$lt_cv_ld_force_load" >&6; }
Chris@10 8648 case $host_os in
Chris@10 8649 rhapsody* | darwin1.[012])
Chris@10 8650 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
Chris@10 8651 darwin1.*)
Chris@10 8652 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
Chris@10 8653 darwin*) # darwin 5.x on
Chris@10 8654 # if running on 10.5 or later, the deployment target defaults
Chris@10 8655 # to the OS version, if on x86, and 10.4, the deployment
Chris@10 8656 # target defaults to 10.4. Don't you love it?
Chris@10 8657 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
Chris@10 8658 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
Chris@10 8659 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
Chris@10 8660 10.[012]*)
Chris@10 8661 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
Chris@10 8662 10.*)
Chris@10 8663 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
Chris@10 8664 esac
Chris@10 8665 ;;
Chris@10 8666 esac
Chris@10 8667 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
Chris@10 8668 _lt_dar_single_mod='$single_module'
Chris@10 8669 fi
Chris@10 8670 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
Chris@10 8671 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
Chris@10 8672 else
Chris@10 8673 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
Chris@10 8674 fi
Chris@10 8675 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
Chris@10 8676 _lt_dsymutil='~$DSYMUTIL $lib || :'
Chris@10 8677 else
Chris@10 8678 _lt_dsymutil=
Chris@10 8679 fi
Chris@10 8680 ;;
Chris@10 8681 esac
Chris@10 8682
Chris@10 8683 ac_ext=c
Chris@10 8684 ac_cpp='$CPP $CPPFLAGS'
Chris@10 8685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@10 8686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 8687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@10 8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Chris@10 8689 $as_echo_n "checking how to run the C preprocessor... " >&6; }
Chris@10 8690 # On Suns, sometimes $CPP names a directory.
Chris@10 8691 if test -n "$CPP" && test -d "$CPP"; then
Chris@10 8692 CPP=
Chris@10 8693 fi
Chris@10 8694 if test -z "$CPP"; then
Chris@10 8695 if ${ac_cv_prog_CPP+:} false; then :
Chris@10 8696 $as_echo_n "(cached) " >&6
Chris@10 8697 else
Chris@10 8698 # Double quotes because CPP needs to be expanded
Chris@10 8699 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
Chris@10 8700 do
Chris@10 8701 ac_preproc_ok=false
Chris@10 8702 for ac_c_preproc_warn_flag in '' yes
Chris@10 8703 do
Chris@10 8704 # Use a header file that comes with gcc, so configuring glibc
Chris@10 8705 # with a fresh cross-compiler works.
Chris@10 8706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@10 8707 # <limits.h> exists even on freestanding compilers.
Chris@10 8708 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@10 8709 # not just through cpp. "Syntax error" is here to catch this case.
Chris@10 8710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 8711 /* end confdefs.h. */
Chris@10 8712 #ifdef __STDC__
Chris@10 8713 # include <limits.h>
Chris@10 8714 #else
Chris@10 8715 # include <assert.h>
Chris@10 8716 #endif
Chris@10 8717 Syntax error
Chris@10 8718 _ACEOF
Chris@10 8719 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@10 8720
Chris@10 8721 else
Chris@10 8722 # Broken: fails on valid input.
Chris@10 8723 continue
Chris@10 8724 fi
Chris@10 8725 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@10 8726
Chris@10 8727 # OK, works on sane cases. Now check whether nonexistent headers
Chris@10 8728 # can be detected and how.
Chris@10 8729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 8730 /* end confdefs.h. */
Chris@10 8731 #include <ac_nonexistent.h>
Chris@10 8732 _ACEOF
Chris@10 8733 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@10 8734 # Broken: success on invalid input.
Chris@10 8735 continue
Chris@10 8736 else
Chris@10 8737 # Passes both tests.
Chris@10 8738 ac_preproc_ok=:
Chris@10 8739 break
Chris@10 8740 fi
Chris@10 8741 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@10 8742
Chris@10 8743 done
Chris@10 8744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@10 8745 rm -f conftest.i conftest.err conftest.$ac_ext
Chris@10 8746 if $ac_preproc_ok; then :
Chris@10 8747 break
Chris@10 8748 fi
Chris@10 8749
Chris@10 8750 done
Chris@10 8751 ac_cv_prog_CPP=$CPP
Chris@10 8752
Chris@10 8753 fi
Chris@10 8754 CPP=$ac_cv_prog_CPP
Chris@10 8755 else
Chris@10 8756 ac_cv_prog_CPP=$CPP
Chris@10 8757 fi
Chris@10 8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Chris@10 8759 $as_echo "$CPP" >&6; }
Chris@10 8760 ac_preproc_ok=false
Chris@10 8761 for ac_c_preproc_warn_flag in '' yes
Chris@10 8762 do
Chris@10 8763 # Use a header file that comes with gcc, so configuring glibc
Chris@10 8764 # with a fresh cross-compiler works.
Chris@10 8765 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@10 8766 # <limits.h> exists even on freestanding compilers.
Chris@10 8767 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@10 8768 # not just through cpp. "Syntax error" is here to catch this case.
Chris@10 8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 8770 /* end confdefs.h. */
Chris@10 8771 #ifdef __STDC__
Chris@10 8772 # include <limits.h>
Chris@10 8773 #else
Chris@10 8774 # include <assert.h>
Chris@10 8775 #endif
Chris@10 8776 Syntax error
Chris@10 8777 _ACEOF
Chris@10 8778 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@10 8779
Chris@10 8780 else
Chris@10 8781 # Broken: fails on valid input.
Chris@10 8782 continue
Chris@10 8783 fi
Chris@10 8784 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@10 8785
Chris@10 8786 # OK, works on sane cases. Now check whether nonexistent headers
Chris@10 8787 # can be detected and how.
Chris@10 8788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 8789 /* end confdefs.h. */
Chris@10 8790 #include <ac_nonexistent.h>
Chris@10 8791 _ACEOF
Chris@10 8792 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@10 8793 # Broken: success on invalid input.
Chris@10 8794 continue
Chris@10 8795 else
Chris@10 8796 # Passes both tests.
Chris@10 8797 ac_preproc_ok=:
Chris@10 8798 break
Chris@10 8799 fi
Chris@10 8800 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@10 8801
Chris@10 8802 done
Chris@10 8803 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@10 8804 rm -f conftest.i conftest.err conftest.$ac_ext
Chris@10 8805 if $ac_preproc_ok; then :
Chris@10 8806
Chris@10 8807 else
Chris@10 8808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@10 8809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@10 8810 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
Chris@10 8811 See \`config.log' for more details" "$LINENO" 5; }
Chris@10 8812 fi
Chris@10 8813
Chris@10 8814 ac_ext=c
Chris@10 8815 ac_cpp='$CPP $CPPFLAGS'
Chris@10 8816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@10 8817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 8818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@10 8819
Chris@10 8820
Chris@10 8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Chris@10 8822 $as_echo_n "checking for ANSI C header files... " >&6; }
Chris@10 8823 if ${ac_cv_header_stdc+:} false; then :
Chris@10 8824 $as_echo_n "(cached) " >&6
Chris@10 8825 else
Chris@10 8826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 8827 /* end confdefs.h. */
Chris@10 8828 #include <stdlib.h>
Chris@10 8829 #include <stdarg.h>
Chris@10 8830 #include <string.h>
Chris@10 8831 #include <float.h>
Chris@10 8832
Chris@10 8833 int
Chris@10 8834 main ()
Chris@10 8835 {
Chris@10 8836
Chris@10 8837 ;
Chris@10 8838 return 0;
Chris@10 8839 }
Chris@10 8840 _ACEOF
Chris@10 8841 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 8842 ac_cv_header_stdc=yes
Chris@10 8843 else
Chris@10 8844 ac_cv_header_stdc=no
Chris@10 8845 fi
Chris@10 8846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 8847
Chris@10 8848 if test $ac_cv_header_stdc = yes; then
Chris@10 8849 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Chris@10 8850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 8851 /* end confdefs.h. */
Chris@10 8852 #include <string.h>
Chris@10 8853
Chris@10 8854 _ACEOF
Chris@10 8855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@10 8856 $EGREP "memchr" >/dev/null 2>&1; then :
Chris@10 8857
Chris@10 8858 else
Chris@10 8859 ac_cv_header_stdc=no
Chris@10 8860 fi
Chris@10 8861 rm -f conftest*
Chris@10 8862
Chris@10 8863 fi
Chris@10 8864
Chris@10 8865 if test $ac_cv_header_stdc = yes; then
Chris@10 8866 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Chris@10 8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 8868 /* end confdefs.h. */
Chris@10 8869 #include <stdlib.h>
Chris@10 8870
Chris@10 8871 _ACEOF
Chris@10 8872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@10 8873 $EGREP "free" >/dev/null 2>&1; then :
Chris@10 8874
Chris@10 8875 else
Chris@10 8876 ac_cv_header_stdc=no
Chris@10 8877 fi
Chris@10 8878 rm -f conftest*
Chris@10 8879
Chris@10 8880 fi
Chris@10 8881
Chris@10 8882 if test $ac_cv_header_stdc = yes; then
Chris@10 8883 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Chris@10 8884 if test "$cross_compiling" = yes; then :
Chris@10 8885 :
Chris@10 8886 else
Chris@10 8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 8888 /* end confdefs.h. */
Chris@10 8889 #include <ctype.h>
Chris@10 8890 #include <stdlib.h>
Chris@10 8891 #if ((' ' & 0x0FF) == 0x020)
Chris@10 8892 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
Chris@10 8893 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Chris@10 8894 #else
Chris@10 8895 # define ISLOWER(c) \
Chris@10 8896 (('a' <= (c) && (c) <= 'i') \
Chris@10 8897 || ('j' <= (c) && (c) <= 'r') \
Chris@10 8898 || ('s' <= (c) && (c) <= 'z'))
Chris@10 8899 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
Chris@10 8900 #endif
Chris@10 8901
Chris@10 8902 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Chris@10 8903 int
Chris@10 8904 main ()
Chris@10 8905 {
Chris@10 8906 int i;
Chris@10 8907 for (i = 0; i < 256; i++)
Chris@10 8908 if (XOR (islower (i), ISLOWER (i))
Chris@10 8909 || toupper (i) != TOUPPER (i))
Chris@10 8910 return 2;
Chris@10 8911 return 0;
Chris@10 8912 }
Chris@10 8913 _ACEOF
Chris@10 8914 if ac_fn_c_try_run "$LINENO"; then :
Chris@10 8915
Chris@10 8916 else
Chris@10 8917 ac_cv_header_stdc=no
Chris@10 8918 fi
Chris@10 8919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@10 8920 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@10 8921 fi
Chris@10 8922
Chris@10 8923 fi
Chris@10 8924 fi
Chris@10 8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Chris@10 8926 $as_echo "$ac_cv_header_stdc" >&6; }
Chris@10 8927 if test $ac_cv_header_stdc = yes; then
Chris@10 8928
Chris@10 8929 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
Chris@10 8930
Chris@10 8931 fi
Chris@10 8932
Chris@10 8933 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
Chris@10 8934 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Chris@10 8935 inttypes.h stdint.h unistd.h
Chris@10 8936 do :
Chris@10 8937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Chris@10 8938 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
Chris@10 8939 "
Chris@10 8940 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@10 8941 cat >>confdefs.h <<_ACEOF
Chris@10 8942 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris@10 8943 _ACEOF
Chris@10 8944
Chris@10 8945 fi
Chris@10 8946
Chris@10 8947 done
Chris@10 8948
Chris@10 8949
Chris@10 8950 for ac_header in dlfcn.h
Chris@10 8951 do :
Chris@10 8952 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
Chris@10 8953 "
Chris@10 8954 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Chris@10 8955 cat >>confdefs.h <<_ACEOF
Chris@10 8956 #define HAVE_DLFCN_H 1
Chris@10 8957 _ACEOF
Chris@10 8958
Chris@10 8959 fi
Chris@10 8960
Chris@10 8961 done
Chris@10 8962
Chris@10 8963
Chris@10 8964
Chris@10 8965
Chris@10 8966
Chris@10 8967 # Set options
Chris@10 8968
Chris@10 8969
Chris@10 8970
Chris@10 8971 enable_dlopen=no
Chris@10 8972
Chris@10 8973
Chris@10 8974
Chris@10 8975
Chris@10 8976 # Check whether --enable-static was given.
Chris@10 8977 if test "${enable_static+set}" = set; then :
Chris@10 8978 enableval=$enable_static; p=${PACKAGE-default}
Chris@10 8979 case $enableval in
Chris@10 8980 yes) enable_static=yes ;;
Chris@10 8981 no) enable_static=no ;;
Chris@10 8982 *)
Chris@10 8983 enable_static=no
Chris@10 8984 # Look at the argument we got. We use all the common list separators.
Chris@10 8985 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
Chris@10 8986 for pkg in $enableval; do
Chris@10 8987 IFS="$lt_save_ifs"
Chris@10 8988 if test "X$pkg" = "X$p"; then
Chris@10 8989 enable_static=yes
Chris@10 8990 fi
Chris@10 8991 done
Chris@10 8992 IFS="$lt_save_ifs"
Chris@10 8993 ;;
Chris@10 8994 esac
Chris@10 8995 else
Chris@10 8996 enable_static=yes
Chris@10 8997 fi
Chris@10 8998
Chris@10 8999
Chris@10 9000
Chris@10 9001
Chris@10 9002
Chris@10 9003
Chris@10 9004
Chris@10 9005
Chris@10 9006
Chris@10 9007
Chris@10 9008 # Check whether --with-pic was given.
Chris@10 9009 if test "${with_pic+set}" = set; then :
Chris@10 9010 withval=$with_pic; lt_p=${PACKAGE-default}
Chris@10 9011 case $withval in
Chris@10 9012 yes|no) pic_mode=$withval ;;
Chris@10 9013 *)
Chris@10 9014 pic_mode=default
Chris@10 9015 # Look at the argument we got. We use all the common list separators.
Chris@10 9016 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
Chris@10 9017 for lt_pkg in $withval; do
Chris@10 9018 IFS="$lt_save_ifs"
Chris@10 9019 if test "X$lt_pkg" = "X$lt_p"; then
Chris@10 9020 pic_mode=yes
Chris@10 9021 fi
Chris@10 9022 done
Chris@10 9023 IFS="$lt_save_ifs"
Chris@10 9024 ;;
Chris@10 9025 esac
Chris@10 9026 else
Chris@10 9027 pic_mode=default
Chris@10 9028 fi
Chris@10 9029
Chris@10 9030
Chris@10 9031 test -z "$pic_mode" && pic_mode=default
Chris@10 9032
Chris@10 9033
Chris@10 9034
Chris@10 9035
Chris@10 9036
Chris@10 9037
Chris@10 9038
Chris@10 9039 # Check whether --enable-fast-install was given.
Chris@10 9040 if test "${enable_fast_install+set}" = set; then :
Chris@10 9041 enableval=$enable_fast_install; p=${PACKAGE-default}
Chris@10 9042 case $enableval in
Chris@10 9043 yes) enable_fast_install=yes ;;
Chris@10 9044 no) enable_fast_install=no ;;
Chris@10 9045 *)
Chris@10 9046 enable_fast_install=no
Chris@10 9047 # Look at the argument we got. We use all the common list separators.
Chris@10 9048 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
Chris@10 9049 for pkg in $enableval; do
Chris@10 9050 IFS="$lt_save_ifs"
Chris@10 9051 if test "X$pkg" = "X$p"; then
Chris@10 9052 enable_fast_install=yes
Chris@10 9053 fi
Chris@10 9054 done
Chris@10 9055 IFS="$lt_save_ifs"
Chris@10 9056 ;;
Chris@10 9057 esac
Chris@10 9058 else
Chris@10 9059 enable_fast_install=yes
Chris@10 9060 fi
Chris@10 9061
Chris@10 9062
Chris@10 9063
Chris@10 9064
Chris@10 9065
Chris@10 9066
Chris@10 9067
Chris@10 9068
Chris@10 9069
Chris@10 9070
Chris@10 9071
Chris@10 9072 # This can be used to rebuild libtool when needed
Chris@10 9073 LIBTOOL_DEPS="$ltmain"
Chris@10 9074
Chris@10 9075 # Always use our own libtool.
Chris@10 9076 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
Chris@10 9077
Chris@10 9078
Chris@10 9079
Chris@10 9080
Chris@10 9081
Chris@10 9082
Chris@10 9083
Chris@10 9084
Chris@10 9085
Chris@10 9086
Chris@10 9087
Chris@10 9088
Chris@10 9089
Chris@10 9090
Chris@10 9091
Chris@10 9092
Chris@10 9093
Chris@10 9094
Chris@10 9095
Chris@10 9096
Chris@10 9097
Chris@10 9098
Chris@10 9099
Chris@10 9100
Chris@10 9101
Chris@10 9102
Chris@10 9103
Chris@10 9104
Chris@10 9105
Chris@10 9106
Chris@10 9107 test -z "$LN_S" && LN_S="ln -s"
Chris@10 9108
Chris@10 9109
Chris@10 9110
Chris@10 9111
Chris@10 9112
Chris@10 9113
Chris@10 9114
Chris@10 9115
Chris@10 9116
Chris@10 9117
Chris@10 9118
Chris@10 9119
Chris@10 9120
Chris@10 9121
Chris@10 9122 if test -n "${ZSH_VERSION+set}" ; then
Chris@10 9123 setopt NO_GLOB_SUBST
Chris@10 9124 fi
Chris@10 9125
Chris@10 9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
Chris@10 9127 $as_echo_n "checking for objdir... " >&6; }
Chris@10 9128 if ${lt_cv_objdir+:} false; then :
Chris@10 9129 $as_echo_n "(cached) " >&6
Chris@10 9130 else
Chris@10 9131 rm -f .libs 2>/dev/null
Chris@10 9132 mkdir .libs 2>/dev/null
Chris@10 9133 if test -d .libs; then
Chris@10 9134 lt_cv_objdir=.libs
Chris@10 9135 else
Chris@10 9136 # MS-DOS does not allow filenames that begin with a dot.
Chris@10 9137 lt_cv_objdir=_libs
Chris@10 9138 fi
Chris@10 9139 rmdir .libs 2>/dev/null
Chris@10 9140 fi
Chris@10 9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
Chris@10 9142 $as_echo "$lt_cv_objdir" >&6; }
Chris@10 9143 objdir=$lt_cv_objdir
Chris@10 9144
Chris@10 9145
Chris@10 9146
Chris@10 9147
Chris@10 9148
Chris@10 9149 cat >>confdefs.h <<_ACEOF
Chris@10 9150 #define LT_OBJDIR "$lt_cv_objdir/"
Chris@10 9151 _ACEOF
Chris@10 9152
Chris@10 9153
Chris@10 9154
Chris@10 9155
Chris@10 9156 case $host_os in
Chris@10 9157 aix3*)
Chris@10 9158 # AIX sometimes has problems with the GCC collect2 program. For some
Chris@10 9159 # reason, if we set the COLLECT_NAMES environment variable, the problems
Chris@10 9160 # vanish in a puff of smoke.
Chris@10 9161 if test "X${COLLECT_NAMES+set}" != Xset; then
Chris@10 9162 COLLECT_NAMES=
Chris@10 9163 export COLLECT_NAMES
Chris@10 9164 fi
Chris@10 9165 ;;
Chris@10 9166 esac
Chris@10 9167
Chris@10 9168 # Global variables:
Chris@10 9169 ofile=libtool
Chris@10 9170 can_build_shared=yes
Chris@10 9171
Chris@10 9172 # All known linkers require a `.a' archive for static linking (except MSVC,
Chris@10 9173 # which needs '.lib').
Chris@10 9174 libext=a
Chris@10 9175
Chris@10 9176 with_gnu_ld="$lt_cv_prog_gnu_ld"
Chris@10 9177
Chris@10 9178 old_CC="$CC"
Chris@10 9179 old_CFLAGS="$CFLAGS"
Chris@10 9180
Chris@10 9181 # Set sane defaults for various variables
Chris@10 9182 test -z "$CC" && CC=cc
Chris@10 9183 test -z "$LTCC" && LTCC=$CC
Chris@10 9184 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
Chris@10 9185 test -z "$LD" && LD=ld
Chris@10 9186 test -z "$ac_objext" && ac_objext=o
Chris@10 9187
Chris@10 9188 for cc_temp in $compiler""; do
Chris@10 9189 case $cc_temp in
Chris@10 9190 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
Chris@10 9191 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
Chris@10 9192 \-*) ;;
Chris@10 9193 *) break;;
Chris@10 9194 esac
Chris@10 9195 done
Chris@10 9196 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Chris@10 9197
Chris@10 9198
Chris@10 9199 # Only perform the check for file, if the check method requires it
Chris@10 9200 test -z "$MAGIC_CMD" && MAGIC_CMD=file
Chris@10 9201 case $deplibs_check_method in
Chris@10 9202 file_magic*)
Chris@10 9203 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Chris@10 9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
Chris@10 9205 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Chris@10 9206 if ${lt_cv_path_MAGIC_CMD+:} false; then :
Chris@10 9207 $as_echo_n "(cached) " >&6
Chris@10 9208 else
Chris@10 9209 case $MAGIC_CMD in
Chris@10 9210 [\\/*] | ?:[\\/]*)
Chris@10 9211 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
Chris@10 9212 ;;
Chris@10 9213 *)
Chris@10 9214 lt_save_MAGIC_CMD="$MAGIC_CMD"
Chris@10 9215 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@10 9216 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
Chris@10 9217 for ac_dir in $ac_dummy; do
Chris@10 9218 IFS="$lt_save_ifs"
Chris@10 9219 test -z "$ac_dir" && ac_dir=.
Chris@10 9220 if test -f $ac_dir/${ac_tool_prefix}file; then
Chris@10 9221 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
Chris@10 9222 if test -n "$file_magic_test_file"; then
Chris@10 9223 case $deplibs_check_method in
Chris@10 9224 "file_magic "*)
Chris@10 9225 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Chris@10 9226 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Chris@10 9227 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
Chris@10 9228 $EGREP "$file_magic_regex" > /dev/null; then
Chris@10 9229 :
Chris@10 9230 else
Chris@10 9231 cat <<_LT_EOF 1>&2
Chris@10 9232
Chris@10 9233 *** Warning: the command libtool uses to detect shared libraries,
Chris@10 9234 *** $file_magic_cmd, produces output that libtool cannot recognize.
Chris@10 9235 *** The result is that libtool may fail to recognize shared libraries
Chris@10 9236 *** as such. This will affect the creation of libtool libraries that
Chris@10 9237 *** depend on shared libraries, but programs linked with such libtool
Chris@10 9238 *** libraries will work regardless of this problem. Nevertheless, you
Chris@10 9239 *** may want to report the problem to your system manager and/or to
Chris@10 9240 *** bug-libtool@gnu.org
Chris@10 9241
Chris@10 9242 _LT_EOF
Chris@10 9243 fi ;;
Chris@10 9244 esac
Chris@10 9245 fi
Chris@10 9246 break
Chris@10 9247 fi
Chris@10 9248 done
Chris@10 9249 IFS="$lt_save_ifs"
Chris@10 9250 MAGIC_CMD="$lt_save_MAGIC_CMD"
Chris@10 9251 ;;
Chris@10 9252 esac
Chris@10 9253 fi
Chris@10 9254
Chris@10 9255 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Chris@10 9256 if test -n "$MAGIC_CMD"; then
Chris@10 9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Chris@10 9258 $as_echo "$MAGIC_CMD" >&6; }
Chris@10 9259 else
Chris@10 9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 9261 $as_echo "no" >&6; }
Chris@10 9262 fi
Chris@10 9263
Chris@10 9264
Chris@10 9265
Chris@10 9266
Chris@10 9267
Chris@10 9268 if test -z "$lt_cv_path_MAGIC_CMD"; then
Chris@10 9269 if test -n "$ac_tool_prefix"; then
Chris@10 9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
Chris@10 9271 $as_echo_n "checking for file... " >&6; }
Chris@10 9272 if ${lt_cv_path_MAGIC_CMD+:} false; then :
Chris@10 9273 $as_echo_n "(cached) " >&6
Chris@10 9274 else
Chris@10 9275 case $MAGIC_CMD in
Chris@10 9276 [\\/*] | ?:[\\/]*)
Chris@10 9277 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
Chris@10 9278 ;;
Chris@10 9279 *)
Chris@10 9280 lt_save_MAGIC_CMD="$MAGIC_CMD"
Chris@10 9281 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Chris@10 9282 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
Chris@10 9283 for ac_dir in $ac_dummy; do
Chris@10 9284 IFS="$lt_save_ifs"
Chris@10 9285 test -z "$ac_dir" && ac_dir=.
Chris@10 9286 if test -f $ac_dir/file; then
Chris@10 9287 lt_cv_path_MAGIC_CMD="$ac_dir/file"
Chris@10 9288 if test -n "$file_magic_test_file"; then
Chris@10 9289 case $deplibs_check_method in
Chris@10 9290 "file_magic "*)
Chris@10 9291 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Chris@10 9292 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Chris@10 9293 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
Chris@10 9294 $EGREP "$file_magic_regex" > /dev/null; then
Chris@10 9295 :
Chris@10 9296 else
Chris@10 9297 cat <<_LT_EOF 1>&2
Chris@10 9298
Chris@10 9299 *** Warning: the command libtool uses to detect shared libraries,
Chris@10 9300 *** $file_magic_cmd, produces output that libtool cannot recognize.
Chris@10 9301 *** The result is that libtool may fail to recognize shared libraries
Chris@10 9302 *** as such. This will affect the creation of libtool libraries that
Chris@10 9303 *** depend on shared libraries, but programs linked with such libtool
Chris@10 9304 *** libraries will work regardless of this problem. Nevertheless, you
Chris@10 9305 *** may want to report the problem to your system manager and/or to
Chris@10 9306 *** bug-libtool@gnu.org
Chris@10 9307
Chris@10 9308 _LT_EOF
Chris@10 9309 fi ;;
Chris@10 9310 esac
Chris@10 9311 fi
Chris@10 9312 break
Chris@10 9313 fi
Chris@10 9314 done
Chris@10 9315 IFS="$lt_save_ifs"
Chris@10 9316 MAGIC_CMD="$lt_save_MAGIC_CMD"
Chris@10 9317 ;;
Chris@10 9318 esac
Chris@10 9319 fi
Chris@10 9320
Chris@10 9321 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Chris@10 9322 if test -n "$MAGIC_CMD"; then
Chris@10 9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Chris@10 9324 $as_echo "$MAGIC_CMD" >&6; }
Chris@10 9325 else
Chris@10 9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 9327 $as_echo "no" >&6; }
Chris@10 9328 fi
Chris@10 9329
Chris@10 9330
Chris@10 9331 else
Chris@10 9332 MAGIC_CMD=:
Chris@10 9333 fi
Chris@10 9334 fi
Chris@10 9335
Chris@10 9336 fi
Chris@10 9337 ;;
Chris@10 9338 esac
Chris@10 9339
Chris@10 9340 # Use C for the default configuration in the libtool script
Chris@10 9341
Chris@10 9342 lt_save_CC="$CC"
Chris@10 9343 ac_ext=c
Chris@10 9344 ac_cpp='$CPP $CPPFLAGS'
Chris@10 9345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@10 9346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 9347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@10 9348
Chris@10 9349
Chris@10 9350 # Source file extension for C test sources.
Chris@10 9351 ac_ext=c
Chris@10 9352
Chris@10 9353 # Object file extension for compiled C test sources.
Chris@10 9354 objext=o
Chris@10 9355 objext=$objext
Chris@10 9356
Chris@10 9357 # Code to be used in simple compile tests
Chris@10 9358 lt_simple_compile_test_code="int some_variable = 0;"
Chris@10 9359
Chris@10 9360 # Code to be used in simple link tests
Chris@10 9361 lt_simple_link_test_code='int main(){return(0);}'
Chris@10 9362
Chris@10 9363
Chris@10 9364
Chris@10 9365
Chris@10 9366
Chris@10 9367
Chris@10 9368
Chris@10 9369 # If no C compiler was specified, use CC.
Chris@10 9370 LTCC=${LTCC-"$CC"}
Chris@10 9371
Chris@10 9372 # If no C compiler flags were specified, use CFLAGS.
Chris@10 9373 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Chris@10 9374
Chris@10 9375 # Allow CC to be a program name with arguments.
Chris@10 9376 compiler=$CC
Chris@10 9377
Chris@10 9378 # Save the default compiler, since it gets overwritten when the other
Chris@10 9379 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
Chris@10 9380 compiler_DEFAULT=$CC
Chris@10 9381
Chris@10 9382 # save warnings/boilerplate of simple test code
Chris@10 9383 ac_outfile=conftest.$ac_objext
Chris@10 9384 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Chris@10 9385 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@10 9386 _lt_compiler_boilerplate=`cat conftest.err`
Chris@10 9387 $RM conftest*
Chris@10 9388
Chris@10 9389 ac_outfile=conftest.$ac_objext
Chris@10 9390 echo "$lt_simple_link_test_code" >conftest.$ac_ext
Chris@10 9391 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@10 9392 _lt_linker_boilerplate=`cat conftest.err`
Chris@10 9393 $RM -r conftest*
Chris@10 9394
Chris@10 9395
Chris@10 9396 ## CAVEAT EMPTOR:
Chris@10 9397 ## There is no encapsulation within the following macros, do not change
Chris@10 9398 ## the running order or otherwise move them around unless you know exactly
Chris@10 9399 ## what you are doing...
Chris@10 9400 if test -n "$compiler"; then
Chris@10 9401
Chris@10 9402 lt_prog_compiler_no_builtin_flag=
Chris@10 9403
Chris@10 9404 if test "$GCC" = yes; then
Chris@10 9405 case $cc_basename in
Chris@10 9406 nvcc*)
Chris@10 9407 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
Chris@10 9408 *)
Chris@10 9409 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
Chris@10 9410 esac
Chris@10 9411
Chris@10 9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Chris@10 9413 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Chris@10 9414 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Chris@10 9415 $as_echo_n "(cached) " >&6
Chris@10 9416 else
Chris@10 9417 lt_cv_prog_compiler_rtti_exceptions=no
Chris@10 9418 ac_outfile=conftest.$ac_objext
Chris@10 9419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@10 9420 lt_compiler_flag="-fno-rtti -fno-exceptions"
Chris@10 9421 # Insert the option either (1) after the last *FLAGS variable, or
Chris@10 9422 # (2) before a word containing "conftest.", or (3) at the end.
Chris@10 9423 # Note that $ac_compile itself does not contain backslashes and begins
Chris@10 9424 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@10 9425 # The option is referenced via a variable to avoid confusing sed.
Chris@10 9426 lt_compile=`echo "$ac_compile" | $SED \
Chris@10 9427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@10 9428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@10 9429 -e 's:$: $lt_compiler_flag:'`
Chris@10 9430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@10 9431 (eval "$lt_compile" 2>conftest.err)
Chris@10 9432 ac_status=$?
Chris@10 9433 cat conftest.err >&5
Chris@10 9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@10 9435 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@10 9436 # The compiler can only warn and ignore the option if not recognized
Chris@10 9437 # So say no if there are warnings other than the usual output.
Chris@10 9438 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Chris@10 9439 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@10 9440 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Chris@10 9441 lt_cv_prog_compiler_rtti_exceptions=yes
Chris@10 9442 fi
Chris@10 9443 fi
Chris@10 9444 $RM conftest*
Chris@10 9445
Chris@10 9446 fi
Chris@10 9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Chris@10 9448 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Chris@10 9449
Chris@10 9450 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
Chris@10 9451 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
Chris@10 9452 else
Chris@10 9453 :
Chris@10 9454 fi
Chris@10 9455
Chris@10 9456 fi
Chris@10 9457
Chris@10 9458
Chris@10 9459
Chris@10 9460
Chris@10 9461
Chris@10 9462
Chris@10 9463 lt_prog_compiler_wl=
Chris@10 9464 lt_prog_compiler_pic=
Chris@10 9465 lt_prog_compiler_static=
Chris@10 9466
Chris@10 9467
Chris@10 9468 if test "$GCC" = yes; then
Chris@10 9469 lt_prog_compiler_wl='-Wl,'
Chris@10 9470 lt_prog_compiler_static='-static'
Chris@10 9471
Chris@10 9472 case $host_os in
Chris@10 9473 aix*)
Chris@10 9474 # All AIX code is PIC.
Chris@10 9475 if test "$host_cpu" = ia64; then
Chris@10 9476 # AIX 5 now supports IA64 processor
Chris@10 9477 lt_prog_compiler_static='-Bstatic'
Chris@10 9478 fi
Chris@10 9479 ;;
Chris@10 9480
Chris@10 9481 amigaos*)
Chris@10 9482 case $host_cpu in
Chris@10 9483 powerpc)
Chris@10 9484 # see comment about AmigaOS4 .so support
Chris@10 9485 lt_prog_compiler_pic='-fPIC'
Chris@10 9486 ;;
Chris@10 9487 m68k)
Chris@10 9488 # FIXME: we need at least 68020 code to build shared libraries, but
Chris@10 9489 # adding the `-m68020' flag to GCC prevents building anything better,
Chris@10 9490 # like `-m68040'.
Chris@10 9491 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
Chris@10 9492 ;;
Chris@10 9493 esac
Chris@10 9494 ;;
Chris@10 9495
Chris@10 9496 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Chris@10 9497 # PIC is the default for these OSes.
Chris@10 9498 ;;
Chris@10 9499
Chris@10 9500 mingw* | cygwin* | pw32* | os2* | cegcc*)
Chris@10 9501 # This hack is so that the source file can tell whether it is being
Chris@10 9502 # built for inclusion in a dll (and should export symbols for example).
Chris@10 9503 # Although the cygwin gcc ignores -fPIC, still need this for old-style
Chris@10 9504 # (--disable-auto-import) libraries
Chris@10 9505 lt_prog_compiler_pic='-DDLL_EXPORT'
Chris@10 9506 ;;
Chris@10 9507
Chris@10 9508 darwin* | rhapsody*)
Chris@10 9509 # PIC is the default on this platform
Chris@10 9510 # Common symbols not allowed in MH_DYLIB files
Chris@10 9511 lt_prog_compiler_pic='-fno-common'
Chris@10 9512 ;;
Chris@10 9513
Chris@10 9514 haiku*)
Chris@10 9515 # PIC is the default for Haiku.
Chris@10 9516 # The "-static" flag exists, but is broken.
Chris@10 9517 lt_prog_compiler_static=
Chris@10 9518 ;;
Chris@10 9519
Chris@10 9520 hpux*)
Chris@10 9521 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
Chris@10 9522 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
Chris@10 9523 # sets the default TLS model and affects inlining.
Chris@10 9524 case $host_cpu in
Chris@10 9525 hppa*64*)
Chris@10 9526 # +Z the default
Chris@10 9527 ;;
Chris@10 9528 *)
Chris@10 9529 lt_prog_compiler_pic='-fPIC'
Chris@10 9530 ;;
Chris@10 9531 esac
Chris@10 9532 ;;
Chris@10 9533
Chris@10 9534 interix[3-9]*)
Chris@10 9535 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
Chris@10 9536 # Instead, we relocate shared libraries at runtime.
Chris@10 9537 ;;
Chris@10 9538
Chris@10 9539 msdosdjgpp*)
Chris@10 9540 # Just because we use GCC doesn't mean we suddenly get shared libraries
Chris@10 9541 # on systems that don't support them.
Chris@10 9542 lt_prog_compiler_can_build_shared=no
Chris@10 9543 enable_shared=no
Chris@10 9544 ;;
Chris@10 9545
Chris@10 9546 *nto* | *qnx*)
Chris@10 9547 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@10 9548 # it will coredump.
Chris@10 9549 lt_prog_compiler_pic='-fPIC -shared'
Chris@10 9550 ;;
Chris@10 9551
Chris@10 9552 sysv4*MP*)
Chris@10 9553 if test -d /usr/nec; then
Chris@10 9554 lt_prog_compiler_pic=-Kconform_pic
Chris@10 9555 fi
Chris@10 9556 ;;
Chris@10 9557
Chris@10 9558 *)
Chris@10 9559 lt_prog_compiler_pic='-fPIC'
Chris@10 9560 ;;
Chris@10 9561 esac
Chris@10 9562
Chris@10 9563 case $cc_basename in
Chris@10 9564 nvcc*) # Cuda Compiler Driver 2.2
Chris@10 9565 lt_prog_compiler_wl='-Xlinker '
Chris@10 9566 if test -n "$lt_prog_compiler_pic"; then
Chris@10 9567 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
Chris@10 9568 fi
Chris@10 9569 ;;
Chris@10 9570 esac
Chris@10 9571 else
Chris@10 9572 # PORTME Check for flag to pass linker flags through the system compiler.
Chris@10 9573 case $host_os in
Chris@10 9574 aix*)
Chris@10 9575 lt_prog_compiler_wl='-Wl,'
Chris@10 9576 if test "$host_cpu" = ia64; then
Chris@10 9577 # AIX 5 now supports IA64 processor
Chris@10 9578 lt_prog_compiler_static='-Bstatic'
Chris@10 9579 else
Chris@10 9580 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
Chris@10 9581 fi
Chris@10 9582 ;;
Chris@10 9583
Chris@10 9584 mingw* | cygwin* | pw32* | os2* | cegcc*)
Chris@10 9585 # This hack is so that the source file can tell whether it is being
Chris@10 9586 # built for inclusion in a dll (and should export symbols for example).
Chris@10 9587 lt_prog_compiler_pic='-DDLL_EXPORT'
Chris@10 9588 ;;
Chris@10 9589
Chris@10 9590 hpux9* | hpux10* | hpux11*)
Chris@10 9591 lt_prog_compiler_wl='-Wl,'
Chris@10 9592 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
Chris@10 9593 # not for PA HP-UX.
Chris@10 9594 case $host_cpu in
Chris@10 9595 hppa*64*|ia64*)
Chris@10 9596 # +Z the default
Chris@10 9597 ;;
Chris@10 9598 *)
Chris@10 9599 lt_prog_compiler_pic='+Z'
Chris@10 9600 ;;
Chris@10 9601 esac
Chris@10 9602 # Is there a better lt_prog_compiler_static that works with the bundled CC?
Chris@10 9603 lt_prog_compiler_static='${wl}-a ${wl}archive'
Chris@10 9604 ;;
Chris@10 9605
Chris@10 9606 irix5* | irix6* | nonstopux*)
Chris@10 9607 lt_prog_compiler_wl='-Wl,'
Chris@10 9608 # PIC (with -KPIC) is the default.
Chris@10 9609 lt_prog_compiler_static='-non_shared'
Chris@10 9610 ;;
Chris@10 9611
Chris@10 9612 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Chris@10 9613 case $cc_basename in
Chris@10 9614 # old Intel for x86_64 which still supported -KPIC.
Chris@10 9615 ecc*)
Chris@10 9616 lt_prog_compiler_wl='-Wl,'
Chris@10 9617 lt_prog_compiler_pic='-KPIC'
Chris@10 9618 lt_prog_compiler_static='-static'
Chris@10 9619 ;;
Chris@10 9620 # icc used to be incompatible with GCC.
Chris@10 9621 # ICC 10 doesn't accept -KPIC any more.
Chris@10 9622 icc* | ifort*)
Chris@10 9623 lt_prog_compiler_wl='-Wl,'
Chris@10 9624 lt_prog_compiler_pic='-fPIC'
Chris@10 9625 lt_prog_compiler_static='-static'
Chris@10 9626 ;;
Chris@10 9627 # Lahey Fortran 8.1.
Chris@10 9628 lf95*)
Chris@10 9629 lt_prog_compiler_wl='-Wl,'
Chris@10 9630 lt_prog_compiler_pic='--shared'
Chris@10 9631 lt_prog_compiler_static='--static'
Chris@10 9632 ;;
Chris@10 9633 nagfor*)
Chris@10 9634 # NAG Fortran compiler
Chris@10 9635 lt_prog_compiler_wl='-Wl,-Wl,,'
Chris@10 9636 lt_prog_compiler_pic='-PIC'
Chris@10 9637 lt_prog_compiler_static='-Bstatic'
Chris@10 9638 ;;
Chris@10 9639 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Chris@10 9640 # Portland Group compilers (*not* the Pentium gcc compiler,
Chris@10 9641 # which looks to be a dead project)
Chris@10 9642 lt_prog_compiler_wl='-Wl,'
Chris@10 9643 lt_prog_compiler_pic='-fpic'
Chris@10 9644 lt_prog_compiler_static='-Bstatic'
Chris@10 9645 ;;
Chris@10 9646 ccc*)
Chris@10 9647 lt_prog_compiler_wl='-Wl,'
Chris@10 9648 # All Alpha code is PIC.
Chris@10 9649 lt_prog_compiler_static='-non_shared'
Chris@10 9650 ;;
Chris@10 9651 xl* | bgxl* | bgf* | mpixl*)
Chris@10 9652 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Chris@10 9653 lt_prog_compiler_wl='-Wl,'
Chris@10 9654 lt_prog_compiler_pic='-qpic'
Chris@10 9655 lt_prog_compiler_static='-qstaticlink'
Chris@10 9656 ;;
Chris@10 9657 *)
Chris@10 9658 case `$CC -V 2>&1 | sed 5q` in
Chris@10 9659 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
Chris@10 9660 # Sun Fortran 8.3 passes all unrecognized flags to the linker
Chris@10 9661 lt_prog_compiler_pic='-KPIC'
Chris@10 9662 lt_prog_compiler_static='-Bstatic'
Chris@10 9663 lt_prog_compiler_wl=''
Chris@10 9664 ;;
Chris@10 9665 *Sun\ F* | *Sun*Fortran*)
Chris@10 9666 lt_prog_compiler_pic='-KPIC'
Chris@10 9667 lt_prog_compiler_static='-Bstatic'
Chris@10 9668 lt_prog_compiler_wl='-Qoption ld '
Chris@10 9669 ;;
Chris@10 9670 *Sun\ C*)
Chris@10 9671 # Sun C 5.9
Chris@10 9672 lt_prog_compiler_pic='-KPIC'
Chris@10 9673 lt_prog_compiler_static='-Bstatic'
Chris@10 9674 lt_prog_compiler_wl='-Wl,'
Chris@10 9675 ;;
Chris@10 9676 *Intel*\ [CF]*Compiler*)
Chris@10 9677 lt_prog_compiler_wl='-Wl,'
Chris@10 9678 lt_prog_compiler_pic='-fPIC'
Chris@10 9679 lt_prog_compiler_static='-static'
Chris@10 9680 ;;
Chris@10 9681 *Portland\ Group*)
Chris@10 9682 lt_prog_compiler_wl='-Wl,'
Chris@10 9683 lt_prog_compiler_pic='-fpic'
Chris@10 9684 lt_prog_compiler_static='-Bstatic'
Chris@10 9685 ;;
Chris@10 9686 esac
Chris@10 9687 ;;
Chris@10 9688 esac
Chris@10 9689 ;;
Chris@10 9690
Chris@10 9691 newsos6)
Chris@10 9692 lt_prog_compiler_pic='-KPIC'
Chris@10 9693 lt_prog_compiler_static='-Bstatic'
Chris@10 9694 ;;
Chris@10 9695
Chris@10 9696 *nto* | *qnx*)
Chris@10 9697 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@10 9698 # it will coredump.
Chris@10 9699 lt_prog_compiler_pic='-fPIC -shared'
Chris@10 9700 ;;
Chris@10 9701
Chris@10 9702 osf3* | osf4* | osf5*)
Chris@10 9703 lt_prog_compiler_wl='-Wl,'
Chris@10 9704 # All OSF/1 code is PIC.
Chris@10 9705 lt_prog_compiler_static='-non_shared'
Chris@10 9706 ;;
Chris@10 9707
Chris@10 9708 rdos*)
Chris@10 9709 lt_prog_compiler_static='-non_shared'
Chris@10 9710 ;;
Chris@10 9711
Chris@10 9712 solaris*)
Chris@10 9713 lt_prog_compiler_pic='-KPIC'
Chris@10 9714 lt_prog_compiler_static='-Bstatic'
Chris@10 9715 case $cc_basename in
Chris@10 9716 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Chris@10 9717 lt_prog_compiler_wl='-Qoption ld ';;
Chris@10 9718 *)
Chris@10 9719 lt_prog_compiler_wl='-Wl,';;
Chris@10 9720 esac
Chris@10 9721 ;;
Chris@10 9722
Chris@10 9723 sunos4*)
Chris@10 9724 lt_prog_compiler_wl='-Qoption ld '
Chris@10 9725 lt_prog_compiler_pic='-PIC'
Chris@10 9726 lt_prog_compiler_static='-Bstatic'
Chris@10 9727 ;;
Chris@10 9728
Chris@10 9729 sysv4 | sysv4.2uw2* | sysv4.3*)
Chris@10 9730 lt_prog_compiler_wl='-Wl,'
Chris@10 9731 lt_prog_compiler_pic='-KPIC'
Chris@10 9732 lt_prog_compiler_static='-Bstatic'
Chris@10 9733 ;;
Chris@10 9734
Chris@10 9735 sysv4*MP*)
Chris@10 9736 if test -d /usr/nec ;then
Chris@10 9737 lt_prog_compiler_pic='-Kconform_pic'
Chris@10 9738 lt_prog_compiler_static='-Bstatic'
Chris@10 9739 fi
Chris@10 9740 ;;
Chris@10 9741
Chris@10 9742 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
Chris@10 9743 lt_prog_compiler_wl='-Wl,'
Chris@10 9744 lt_prog_compiler_pic='-KPIC'
Chris@10 9745 lt_prog_compiler_static='-Bstatic'
Chris@10 9746 ;;
Chris@10 9747
Chris@10 9748 unicos*)
Chris@10 9749 lt_prog_compiler_wl='-Wl,'
Chris@10 9750 lt_prog_compiler_can_build_shared=no
Chris@10 9751 ;;
Chris@10 9752
Chris@10 9753 uts4*)
Chris@10 9754 lt_prog_compiler_pic='-pic'
Chris@10 9755 lt_prog_compiler_static='-Bstatic'
Chris@10 9756 ;;
Chris@10 9757
Chris@10 9758 *)
Chris@10 9759 lt_prog_compiler_can_build_shared=no
Chris@10 9760 ;;
Chris@10 9761 esac
Chris@10 9762 fi
Chris@10 9763
Chris@10 9764 case $host_os in
Chris@10 9765 # For platforms which do not support PIC, -DPIC is meaningless:
Chris@10 9766 *djgpp*)
Chris@10 9767 lt_prog_compiler_pic=
Chris@10 9768 ;;
Chris@10 9769 *)
Chris@10 9770 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
Chris@10 9771 ;;
Chris@10 9772 esac
Chris@10 9773
Chris@10 9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
Chris@10 9775 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Chris@10 9776 if ${lt_cv_prog_compiler_pic+:} false; then :
Chris@10 9777 $as_echo_n "(cached) " >&6
Chris@10 9778 else
Chris@10 9779 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
Chris@10 9780 fi
Chris@10 9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
Chris@10 9782 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
Chris@10 9783 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
Chris@10 9784
Chris@10 9785 #
Chris@10 9786 # Check to make sure the PIC flag actually works.
Chris@10 9787 #
Chris@10 9788 if test -n "$lt_prog_compiler_pic"; then
Chris@10 9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
Chris@10 9790 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Chris@10 9791 if ${lt_cv_prog_compiler_pic_works+:} false; then :
Chris@10 9792 $as_echo_n "(cached) " >&6
Chris@10 9793 else
Chris@10 9794 lt_cv_prog_compiler_pic_works=no
Chris@10 9795 ac_outfile=conftest.$ac_objext
Chris@10 9796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@10 9797 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
Chris@10 9798 # Insert the option either (1) after the last *FLAGS variable, or
Chris@10 9799 # (2) before a word containing "conftest.", or (3) at the end.
Chris@10 9800 # Note that $ac_compile itself does not contain backslashes and begins
Chris@10 9801 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@10 9802 # The option is referenced via a variable to avoid confusing sed.
Chris@10 9803 lt_compile=`echo "$ac_compile" | $SED \
Chris@10 9804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@10 9805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@10 9806 -e 's:$: $lt_compiler_flag:'`
Chris@10 9807 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@10 9808 (eval "$lt_compile" 2>conftest.err)
Chris@10 9809 ac_status=$?
Chris@10 9810 cat conftest.err >&5
Chris@10 9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@10 9812 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@10 9813 # The compiler can only warn and ignore the option if not recognized
Chris@10 9814 # So say no if there are warnings other than the usual output.
Chris@10 9815 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Chris@10 9816 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@10 9817 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Chris@10 9818 lt_cv_prog_compiler_pic_works=yes
Chris@10 9819 fi
Chris@10 9820 fi
Chris@10 9821 $RM conftest*
Chris@10 9822
Chris@10 9823 fi
Chris@10 9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
Chris@10 9825 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
Chris@10 9826
Chris@10 9827 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
Chris@10 9828 case $lt_prog_compiler_pic in
Chris@10 9829 "" | " "*) ;;
Chris@10 9830 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
Chris@10 9831 esac
Chris@10 9832 else
Chris@10 9833 lt_prog_compiler_pic=
Chris@10 9834 lt_prog_compiler_can_build_shared=no
Chris@10 9835 fi
Chris@10 9836
Chris@10 9837 fi
Chris@10 9838
Chris@10 9839
Chris@10 9840
Chris@10 9841
Chris@10 9842
Chris@10 9843
Chris@10 9844
Chris@10 9845
Chris@10 9846
Chris@10 9847
Chris@10 9848
Chris@10 9849 #
Chris@10 9850 # Check to make sure the static flag actually works.
Chris@10 9851 #
Chris@10 9852 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Chris@10 9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
Chris@10 9854 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Chris@10 9855 if ${lt_cv_prog_compiler_static_works+:} false; then :
Chris@10 9856 $as_echo_n "(cached) " >&6
Chris@10 9857 else
Chris@10 9858 lt_cv_prog_compiler_static_works=no
Chris@10 9859 save_LDFLAGS="$LDFLAGS"
Chris@10 9860 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Chris@10 9861 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Chris@10 9862 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Chris@10 9863 # The linker can only warn and ignore the option if not recognized
Chris@10 9864 # So say no if there are warnings
Chris@10 9865 if test -s conftest.err; then
Chris@10 9866 # Append any errors to the config.log.
Chris@10 9867 cat conftest.err 1>&5
Chris@10 9868 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Chris@10 9869 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@10 9870 if diff conftest.exp conftest.er2 >/dev/null; then
Chris@10 9871 lt_cv_prog_compiler_static_works=yes
Chris@10 9872 fi
Chris@10 9873 else
Chris@10 9874 lt_cv_prog_compiler_static_works=yes
Chris@10 9875 fi
Chris@10 9876 fi
Chris@10 9877 $RM -r conftest*
Chris@10 9878 LDFLAGS="$save_LDFLAGS"
Chris@10 9879
Chris@10 9880 fi
Chris@10 9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
Chris@10 9882 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
Chris@10 9883
Chris@10 9884 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
Chris@10 9885 :
Chris@10 9886 else
Chris@10 9887 lt_prog_compiler_static=
Chris@10 9888 fi
Chris@10 9889
Chris@10 9890
Chris@10 9891
Chris@10 9892
Chris@10 9893
Chris@10 9894
Chris@10 9895
Chris@10 9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@10 9897 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@10 9898 if ${lt_cv_prog_compiler_c_o+:} false; then :
Chris@10 9899 $as_echo_n "(cached) " >&6
Chris@10 9900 else
Chris@10 9901 lt_cv_prog_compiler_c_o=no
Chris@10 9902 $RM -r conftest 2>/dev/null
Chris@10 9903 mkdir conftest
Chris@10 9904 cd conftest
Chris@10 9905 mkdir out
Chris@10 9906 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@10 9907
Chris@10 9908 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@10 9909 # Insert the option either (1) after the last *FLAGS variable, or
Chris@10 9910 # (2) before a word containing "conftest.", or (3) at the end.
Chris@10 9911 # Note that $ac_compile itself does not contain backslashes and begins
Chris@10 9912 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@10 9913 lt_compile=`echo "$ac_compile" | $SED \
Chris@10 9914 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@10 9915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@10 9916 -e 's:$: $lt_compiler_flag:'`
Chris@10 9917 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@10 9918 (eval "$lt_compile" 2>out/conftest.err)
Chris@10 9919 ac_status=$?
Chris@10 9920 cat out/conftest.err >&5
Chris@10 9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@10 9922 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@10 9923 then
Chris@10 9924 # The compiler can only warn and ignore the option if not recognized
Chris@10 9925 # So say no if there are warnings
Chris@10 9926 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@10 9927 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@10 9928 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@10 9929 lt_cv_prog_compiler_c_o=yes
Chris@10 9930 fi
Chris@10 9931 fi
Chris@10 9932 chmod u+w . 2>&5
Chris@10 9933 $RM conftest*
Chris@10 9934 # SGI C++ compiler will create directory out/ii_files/ for
Chris@10 9935 # template instantiation
Chris@10 9936 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@10 9937 $RM out/* && rmdir out
Chris@10 9938 cd ..
Chris@10 9939 $RM -r conftest
Chris@10 9940 $RM conftest*
Chris@10 9941
Chris@10 9942 fi
Chris@10 9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Chris@10 9944 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Chris@10 9945
Chris@10 9946
Chris@10 9947
Chris@10 9948
Chris@10 9949
Chris@10 9950
Chris@10 9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@10 9952 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@10 9953 if ${lt_cv_prog_compiler_c_o+:} false; then :
Chris@10 9954 $as_echo_n "(cached) " >&6
Chris@10 9955 else
Chris@10 9956 lt_cv_prog_compiler_c_o=no
Chris@10 9957 $RM -r conftest 2>/dev/null
Chris@10 9958 mkdir conftest
Chris@10 9959 cd conftest
Chris@10 9960 mkdir out
Chris@10 9961 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@10 9962
Chris@10 9963 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@10 9964 # Insert the option either (1) after the last *FLAGS variable, or
Chris@10 9965 # (2) before a word containing "conftest.", or (3) at the end.
Chris@10 9966 # Note that $ac_compile itself does not contain backslashes and begins
Chris@10 9967 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@10 9968 lt_compile=`echo "$ac_compile" | $SED \
Chris@10 9969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@10 9970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@10 9971 -e 's:$: $lt_compiler_flag:'`
Chris@10 9972 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@10 9973 (eval "$lt_compile" 2>out/conftest.err)
Chris@10 9974 ac_status=$?
Chris@10 9975 cat out/conftest.err >&5
Chris@10 9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@10 9977 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@10 9978 then
Chris@10 9979 # The compiler can only warn and ignore the option if not recognized
Chris@10 9980 # So say no if there are warnings
Chris@10 9981 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@10 9982 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@10 9983 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@10 9984 lt_cv_prog_compiler_c_o=yes
Chris@10 9985 fi
Chris@10 9986 fi
Chris@10 9987 chmod u+w . 2>&5
Chris@10 9988 $RM conftest*
Chris@10 9989 # SGI C++ compiler will create directory out/ii_files/ for
Chris@10 9990 # template instantiation
Chris@10 9991 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@10 9992 $RM out/* && rmdir out
Chris@10 9993 cd ..
Chris@10 9994 $RM -r conftest
Chris@10 9995 $RM conftest*
Chris@10 9996
Chris@10 9997 fi
Chris@10 9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Chris@10 9999 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Chris@10 10000
Chris@10 10001
Chris@10 10002
Chris@10 10003
Chris@10 10004 hard_links="nottested"
Chris@10 10005 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
Chris@10 10006 # do not overwrite the value of need_locks provided by the user
Chris@10 10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Chris@10 10008 $as_echo_n "checking if we can lock with hard links... " >&6; }
Chris@10 10009 hard_links=yes
Chris@10 10010 $RM conftest*
Chris@10 10011 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@10 10012 touch conftest.a
Chris@10 10013 ln conftest.a conftest.b 2>&5 || hard_links=no
Chris@10 10014 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@10 10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Chris@10 10016 $as_echo "$hard_links" >&6; }
Chris@10 10017 if test "$hard_links" = no; then
Chris@10 10018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
Chris@10 10019 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
Chris@10 10020 need_locks=warn
Chris@10 10021 fi
Chris@10 10022 else
Chris@10 10023 need_locks=no
Chris@10 10024 fi
Chris@10 10025
Chris@10 10026
Chris@10 10027
Chris@10 10028
Chris@10 10029
Chris@10 10030
Chris@10 10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Chris@10 10032 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Chris@10 10033
Chris@10 10034 runpath_var=
Chris@10 10035 allow_undefined_flag=
Chris@10 10036 always_export_symbols=no
Chris@10 10037 archive_cmds=
Chris@10 10038 archive_expsym_cmds=
Chris@10 10039 compiler_needs_object=no
Chris@10 10040 enable_shared_with_static_runtimes=no
Chris@10 10041 export_dynamic_flag_spec=
Chris@10 10042 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Chris@10 10043 hardcode_automatic=no
Chris@10 10044 hardcode_direct=no
Chris@10 10045 hardcode_direct_absolute=no
Chris@10 10046 hardcode_libdir_flag_spec=
Chris@10 10047 hardcode_libdir_separator=
Chris@10 10048 hardcode_minus_L=no
Chris@10 10049 hardcode_shlibpath_var=unsupported
Chris@10 10050 inherit_rpath=no
Chris@10 10051 link_all_deplibs=unknown
Chris@10 10052 module_cmds=
Chris@10 10053 module_expsym_cmds=
Chris@10 10054 old_archive_from_new_cmds=
Chris@10 10055 old_archive_from_expsyms_cmds=
Chris@10 10056 thread_safe_flag_spec=
Chris@10 10057 whole_archive_flag_spec=
Chris@10 10058 # include_expsyms should be a list of space-separated symbols to be *always*
Chris@10 10059 # included in the symbol list
Chris@10 10060 include_expsyms=
Chris@10 10061 # exclude_expsyms can be an extended regexp of symbols to exclude
Chris@10 10062 # it will be wrapped by ` (' and `)$', so one must not match beginning or
Chris@10 10063 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
Chris@10 10064 # as well as any symbol that contains `d'.
Chris@10 10065 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Chris@10 10066 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
Chris@10 10067 # platforms (ab)use it in PIC code, but their linkers get confused if
Chris@10 10068 # the symbol is explicitly referenced. Since portable code cannot
Chris@10 10069 # rely on this symbol name, it's probably fine to never include it in
Chris@10 10070 # preloaded symbol tables.
Chris@10 10071 # Exclude shared library initialization/finalization symbols.
Chris@10 10072 extract_expsyms_cmds=
Chris@10 10073
Chris@10 10074 case $host_os in
Chris@10 10075 cygwin* | mingw* | pw32* | cegcc*)
Chris@10 10076 # FIXME: the MSVC++ port hasn't been tested in a loooong time
Chris@10 10077 # When not using gcc, we currently assume that we are using
Chris@10 10078 # Microsoft Visual C++.
Chris@10 10079 if test "$GCC" != yes; then
Chris@10 10080 with_gnu_ld=no
Chris@10 10081 fi
Chris@10 10082 ;;
Chris@10 10083 interix*)
Chris@10 10084 # we just hope/assume this is gcc and not c89 (= MSVC++)
Chris@10 10085 with_gnu_ld=yes
Chris@10 10086 ;;
Chris@10 10087 openbsd*)
Chris@10 10088 with_gnu_ld=no
Chris@10 10089 ;;
Chris@10 10090 linux* | k*bsd*-gnu | gnu*)
Chris@10 10091 link_all_deplibs=no
Chris@10 10092 ;;
Chris@10 10093 esac
Chris@10 10094
Chris@10 10095 ld_shlibs=yes
Chris@10 10096
Chris@10 10097 # On some targets, GNU ld is compatible enough with the native linker
Chris@10 10098 # that we're better off using the native interface for both.
Chris@10 10099 lt_use_gnu_ld_interface=no
Chris@10 10100 if test "$with_gnu_ld" = yes; then
Chris@10 10101 case $host_os in
Chris@10 10102 aix*)
Chris@10 10103 # The AIX port of GNU ld has always aspired to compatibility
Chris@10 10104 # with the native linker. However, as the warning in the GNU ld
Chris@10 10105 # block says, versions before 2.19.5* couldn't really create working
Chris@10 10106 # shared libraries, regardless of the interface used.
Chris@10 10107 case `$LD -v 2>&1` in
Chris@10 10108 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
Chris@10 10109 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
Chris@10 10110 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
Chris@10 10111 *)
Chris@10 10112 lt_use_gnu_ld_interface=yes
Chris@10 10113 ;;
Chris@10 10114 esac
Chris@10 10115 ;;
Chris@10 10116 *)
Chris@10 10117 lt_use_gnu_ld_interface=yes
Chris@10 10118 ;;
Chris@10 10119 esac
Chris@10 10120 fi
Chris@10 10121
Chris@10 10122 if test "$lt_use_gnu_ld_interface" = yes; then
Chris@10 10123 # If archive_cmds runs LD, not CC, wlarc should be empty
Chris@10 10124 wlarc='${wl}'
Chris@10 10125
Chris@10 10126 # Set some defaults for GNU ld with shared library support. These
Chris@10 10127 # are reset later if shared libraries are not supported. Putting them
Chris@10 10128 # here allows them to be overridden if necessary.
Chris@10 10129 runpath_var=LD_RUN_PATH
Chris@10 10130 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@10 10131 export_dynamic_flag_spec='${wl}--export-dynamic'
Chris@10 10132 # ancient GNU ld didn't support --whole-archive et. al.
Chris@10 10133 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
Chris@10 10134 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
Chris@10 10135 else
Chris@10 10136 whole_archive_flag_spec=
Chris@10 10137 fi
Chris@10 10138 supports_anon_versioning=no
Chris@10 10139 case `$LD -v 2>&1` in
Chris@10 10140 *GNU\ gold*) supports_anon_versioning=yes ;;
Chris@10 10141 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
Chris@10 10142 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
Chris@10 10143 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
Chris@10 10144 *\ 2.11.*) ;; # other 2.11 versions
Chris@10 10145 *) supports_anon_versioning=yes ;;
Chris@10 10146 esac
Chris@10 10147
Chris@10 10148 # See if GNU ld supports shared libraries.
Chris@10 10149 case $host_os in
Chris@10 10150 aix[3-9]*)
Chris@10 10151 # On AIX/PPC, the GNU linker is very broken
Chris@10 10152 if test "$host_cpu" != ia64; then
Chris@10 10153 ld_shlibs=no
Chris@10 10154 cat <<_LT_EOF 1>&2
Chris@10 10155
Chris@10 10156 *** Warning: the GNU linker, at least up to release 2.19, is reported
Chris@10 10157 *** to be unable to reliably create shared libraries on AIX.
Chris@10 10158 *** Therefore, libtool is disabling shared libraries support. If you
Chris@10 10159 *** really care for shared libraries, you may want to install binutils
Chris@10 10160 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
Chris@10 10161 *** You will then need to restart the configuration process.
Chris@10 10162
Chris@10 10163 _LT_EOF
Chris@10 10164 fi
Chris@10 10165 ;;
Chris@10 10166
Chris@10 10167 amigaos*)
Chris@10 10168 case $host_cpu in
Chris@10 10169 powerpc)
Chris@10 10170 # see comment about AmigaOS4 .so support
Chris@10 10171 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@10 10172 archive_expsym_cmds=''
Chris@10 10173 ;;
Chris@10 10174 m68k)
Chris@10 10175 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@10 10176 hardcode_libdir_flag_spec='-L$libdir'
Chris@10 10177 hardcode_minus_L=yes
Chris@10 10178 ;;
Chris@10 10179 esac
Chris@10 10180 ;;
Chris@10 10181
Chris@10 10182 beos*)
Chris@10 10183 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@10 10184 allow_undefined_flag=unsupported
Chris@10 10185 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
Chris@10 10186 # support --undefined. This deserves some investigation. FIXME
Chris@10 10187 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@10 10188 else
Chris@10 10189 ld_shlibs=no
Chris@10 10190 fi
Chris@10 10191 ;;
Chris@10 10192
Chris@10 10193 cygwin* | mingw* | pw32* | cegcc*)
Chris@10 10194 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
Chris@10 10195 # as there is no search path for DLLs.
Chris@10 10196 hardcode_libdir_flag_spec='-L$libdir'
Chris@10 10197 export_dynamic_flag_spec='${wl}--export-all-symbols'
Chris@10 10198 allow_undefined_flag=unsupported
Chris@10 10199 always_export_symbols=no
Chris@10 10200 enable_shared_with_static_runtimes=yes
Chris@10 10201 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@10 10202 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
Chris@10 10203
Chris@10 10204 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Chris@10 10205 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Chris@10 10206 # If the export-symbols file already is a .def file (1st line
Chris@10 10207 # is EXPORTS), use it as is; otherwise, prepend...
Chris@10 10208 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
Chris@10 10209 cp $export_symbols $output_objdir/$soname.def;
Chris@10 10210 else
Chris@10 10211 echo EXPORTS > $output_objdir/$soname.def;
Chris@10 10212 cat $export_symbols >> $output_objdir/$soname.def;
Chris@10 10213 fi~
Chris@10 10214 $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@10 10215 else
Chris@10 10216 ld_shlibs=no
Chris@10 10217 fi
Chris@10 10218 ;;
Chris@10 10219
Chris@10 10220 haiku*)
Chris@10 10221 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@10 10222 link_all_deplibs=yes
Chris@10 10223 ;;
Chris@10 10224
Chris@10 10225 interix[3-9]*)
Chris@10 10226 hardcode_direct=no
Chris@10 10227 hardcode_shlibpath_var=no
Chris@10 10228 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
Chris@10 10229 export_dynamic_flag_spec='${wl}-E'
Chris@10 10230 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
Chris@10 10231 # Instead, shared libraries are loaded at an image base (0x10000000 by
Chris@10 10232 # default) and relocated if they conflict, which is a slow very memory
Chris@10 10233 # consuming and fragmenting process. To avoid this, we pick a random,
Chris@10 10234 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
Chris@10 10235 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Chris@10 10236 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@10 10237 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@10 10238 ;;
Chris@10 10239
Chris@10 10240 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@10 10241 tmp_diet=no
Chris@10 10242 if test "$host_os" = linux-dietlibc; then
Chris@10 10243 case $cc_basename in
Chris@10 10244 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
Chris@10 10245 esac
Chris@10 10246 fi
Chris@10 10247 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
Chris@10 10248 && test "$tmp_diet" = no
Chris@10 10249 then
Chris@10 10250 tmp_addflag=' $pic_flag'
Chris@10 10251 tmp_sharedflag='-shared'
Chris@10 10252 case $cc_basename,$host_cpu in
Chris@10 10253 pgcc*) # Portland Group C compiler
Chris@10 10254 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@10 10255 tmp_addflag=' $pic_flag'
Chris@10 10256 ;;
Chris@10 10257 pgf77* | pgf90* | pgf95* | pgfortran*)
Chris@10 10258 # Portland Group f77 and f90 compilers
Chris@10 10259 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@10 10260 tmp_addflag=' $pic_flag -Mnomain' ;;
Chris@10 10261 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Chris@10 10262 tmp_addflag=' -i_dynamic' ;;
Chris@10 10263 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
Chris@10 10264 tmp_addflag=' -i_dynamic -nofor_main' ;;
Chris@10 10265 ifc* | ifort*) # Intel Fortran compiler
Chris@10 10266 tmp_addflag=' -nofor_main' ;;
Chris@10 10267 lf95*) # Lahey Fortran 8.1
Chris@10 10268 whole_archive_flag_spec=
Chris@10 10269 tmp_sharedflag='--shared' ;;
Chris@10 10270 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Chris@10 10271 tmp_sharedflag='-qmkshrobj'
Chris@10 10272 tmp_addflag= ;;
Chris@10 10273 nvcc*) # Cuda Compiler Driver 2.2
Chris@10 10274 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@10 10275 compiler_needs_object=yes
Chris@10 10276 ;;
Chris@10 10277 esac
Chris@10 10278 case `$CC -V 2>&1 | sed 5q` in
Chris@10 10279 *Sun\ C*) # Sun C 5.9
Chris@10 10280 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@10 10281 compiler_needs_object=yes
Chris@10 10282 tmp_sharedflag='-G' ;;
Chris@10 10283 *Sun\ F*) # Sun Fortran 8.3
Chris@10 10284 tmp_sharedflag='-G' ;;
Chris@10 10285 esac
Chris@10 10286 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@10 10287
Chris@10 10288 if test "x$supports_anon_versioning" = xyes; then
Chris@10 10289 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Chris@10 10290 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@10 10291 echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@10 10292 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
Chris@10 10293 fi
Chris@10 10294
Chris@10 10295 case $cc_basename in
Chris@10 10296 xlf* | bgf* | bgxlf* | mpixlf*)
Chris@10 10297 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
Chris@10 10298 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
Chris@10 10299 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@10 10300 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Chris@10 10301 if test "x$supports_anon_versioning" = xyes; then
Chris@10 10302 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Chris@10 10303 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@10 10304 echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@10 10305 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Chris@10 10306 fi
Chris@10 10307 ;;
Chris@10 10308 esac
Chris@10 10309 else
Chris@10 10310 ld_shlibs=no
Chris@10 10311 fi
Chris@10 10312 ;;
Chris@10 10313
Chris@10 10314 netbsd* | netbsdelf*-gnu)
Chris@10 10315 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@10 10316 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
Chris@10 10317 wlarc=
Chris@10 10318 else
Chris@10 10319 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@10 10320 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@10 10321 fi
Chris@10 10322 ;;
Chris@10 10323
Chris@10 10324 solaris*)
Chris@10 10325 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Chris@10 10326 ld_shlibs=no
Chris@10 10327 cat <<_LT_EOF 1>&2
Chris@10 10328
Chris@10 10329 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
Chris@10 10330 *** create shared libraries on Solaris systems. Therefore, libtool
Chris@10 10331 *** is disabling shared libraries support. We urge you to upgrade GNU
Chris@10 10332 *** binutils to release 2.9.1 or newer. Another option is to modify
Chris@10 10333 *** your PATH or compiler configuration so that the native linker is
Chris@10 10334 *** used, and then restart.
Chris@10 10335
Chris@10 10336 _LT_EOF
Chris@10 10337 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@10 10338 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@10 10339 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@10 10340 else
Chris@10 10341 ld_shlibs=no
Chris@10 10342 fi
Chris@10 10343 ;;
Chris@10 10344
Chris@10 10345 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
Chris@10 10346 case `$LD -v 2>&1` in
Chris@10 10347 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
Chris@10 10348 ld_shlibs=no
Chris@10 10349 cat <<_LT_EOF 1>&2
Chris@10 10350
Chris@10 10351 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
Chris@10 10352 *** reliably create shared libraries on SCO systems. Therefore, libtool
Chris@10 10353 *** is disabling shared libraries support. We urge you to upgrade GNU
Chris@10 10354 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
Chris@10 10355 *** your PATH or compiler configuration so that the native linker is
Chris@10 10356 *** used, and then restart.
Chris@10 10357
Chris@10 10358 _LT_EOF
Chris@10 10359 ;;
Chris@10 10360 *)
Chris@10 10361 # For security reasons, it is highly recommended that you always
Chris@10 10362 # use absolute paths for naming shared libraries, and exclude the
Chris@10 10363 # DT_RUNPATH tag from executables and libraries. But doing so
Chris@10 10364 # requires that you compile everything twice, which is a pain.
Chris@10 10365 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@10 10366 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@10 10367 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@10 10368 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@10 10369 else
Chris@10 10370 ld_shlibs=no
Chris@10 10371 fi
Chris@10 10372 ;;
Chris@10 10373 esac
Chris@10 10374 ;;
Chris@10 10375
Chris@10 10376 sunos4*)
Chris@10 10377 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@10 10378 wlarc=
Chris@10 10379 hardcode_direct=yes
Chris@10 10380 hardcode_shlibpath_var=no
Chris@10 10381 ;;
Chris@10 10382
Chris@10 10383 *)
Chris@10 10384 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@10 10385 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@10 10386 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@10 10387 else
Chris@10 10388 ld_shlibs=no
Chris@10 10389 fi
Chris@10 10390 ;;
Chris@10 10391 esac
Chris@10 10392
Chris@10 10393 if test "$ld_shlibs" = no; then
Chris@10 10394 runpath_var=
Chris@10 10395 hardcode_libdir_flag_spec=
Chris@10 10396 export_dynamic_flag_spec=
Chris@10 10397 whole_archive_flag_spec=
Chris@10 10398 fi
Chris@10 10399 else
Chris@10 10400 # PORTME fill in a description of your system's linker (not GNU ld)
Chris@10 10401 case $host_os in
Chris@10 10402 aix3*)
Chris@10 10403 allow_undefined_flag=unsupported
Chris@10 10404 always_export_symbols=yes
Chris@10 10405 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@10 10406 # Note: this linker hardcodes the directories in LIBPATH if there
Chris@10 10407 # are no directories specified by -L.
Chris@10 10408 hardcode_minus_L=yes
Chris@10 10409 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
Chris@10 10410 # Neither direct hardcoding nor static linking is supported with a
Chris@10 10411 # broken collect2.
Chris@10 10412 hardcode_direct=unsupported
Chris@10 10413 fi
Chris@10 10414 ;;
Chris@10 10415
Chris@10 10416 aix[4-9]*)
Chris@10 10417 if test "$host_cpu" = ia64; then
Chris@10 10418 # On IA64, the linker does run time linking by default, so we don't
Chris@10 10419 # have to do anything special.
Chris@10 10420 aix_use_runtimelinking=no
Chris@10 10421 exp_sym_flag='-Bexport'
Chris@10 10422 no_entry_flag=""
Chris@10 10423 else
Chris@10 10424 # If we're using GNU nm, then we don't want the "-C" option.
Chris@10 10425 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Chris@10 10426 # Also, AIX nm treats weak defined symbols like other global
Chris@10 10427 # defined symbols, whereas GNU nm marks them as "W".
Chris@10 10428 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Chris@10 10429 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@10 10430 else
Chris@10 10431 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@10 10432 fi
Chris@10 10433 aix_use_runtimelinking=no
Chris@10 10434
Chris@10 10435 # Test if we are trying to use run time linking or normal
Chris@10 10436 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Chris@10 10437 # need to do runtime linking.
Chris@10 10438 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Chris@10 10439 for ld_flag in $LDFLAGS; do
Chris@10 10440 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
Chris@10 10441 aix_use_runtimelinking=yes
Chris@10 10442 break
Chris@10 10443 fi
Chris@10 10444 done
Chris@10 10445 ;;
Chris@10 10446 esac
Chris@10 10447
Chris@10 10448 exp_sym_flag='-bexport'
Chris@10 10449 no_entry_flag='-bnoentry'
Chris@10 10450 fi
Chris@10 10451
Chris@10 10452 # When large executables or shared objects are built, AIX ld can
Chris@10 10453 # have problems creating the table of contents. If linking a library
Chris@10 10454 # or program results in "error TOC overflow" add -mminimal-toc to
Chris@10 10455 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
Chris@10 10456 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
Chris@10 10457
Chris@10 10458 archive_cmds=''
Chris@10 10459 hardcode_direct=yes
Chris@10 10460 hardcode_direct_absolute=yes
Chris@10 10461 hardcode_libdir_separator=':'
Chris@10 10462 link_all_deplibs=yes
Chris@10 10463 file_list_spec='${wl}-f,'
Chris@10 10464
Chris@10 10465 if test "$GCC" = yes; then
Chris@10 10466 case $host_os in aix4.[012]|aix4.[012].*)
Chris@10 10467 # We only want to do this on AIX 4.2 and lower, the check
Chris@10 10468 # below for broken collect2 doesn't work under 4.3+
Chris@10 10469 collect2name=`${CC} -print-prog-name=collect2`
Chris@10 10470 if test -f "$collect2name" &&
Chris@10 10471 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Chris@10 10472 then
Chris@10 10473 # We have reworked collect2
Chris@10 10474 :
Chris@10 10475 else
Chris@10 10476 # We have old collect2
Chris@10 10477 hardcode_direct=unsupported
Chris@10 10478 # It fails to find uninstalled libraries when the uninstalled
Chris@10 10479 # path is not listed in the libpath. Setting hardcode_minus_L
Chris@10 10480 # to unsupported forces relinking
Chris@10 10481 hardcode_minus_L=yes
Chris@10 10482 hardcode_libdir_flag_spec='-L$libdir'
Chris@10 10483 hardcode_libdir_separator=
Chris@10 10484 fi
Chris@10 10485 ;;
Chris@10 10486 esac
Chris@10 10487 shared_flag='-shared'
Chris@10 10488 if test "$aix_use_runtimelinking" = yes; then
Chris@10 10489 shared_flag="$shared_flag "'${wl}-G'
Chris@10 10490 fi
Chris@10 10491 link_all_deplibs=no
Chris@10 10492 else
Chris@10 10493 # not using gcc
Chris@10 10494 if test "$host_cpu" = ia64; then
Chris@10 10495 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
Chris@10 10496 # chokes on -Wl,-G. The following line is correct:
Chris@10 10497 shared_flag='-G'
Chris@10 10498 else
Chris@10 10499 if test "$aix_use_runtimelinking" = yes; then
Chris@10 10500 shared_flag='${wl}-G'
Chris@10 10501 else
Chris@10 10502 shared_flag='${wl}-bM:SRE'
Chris@10 10503 fi
Chris@10 10504 fi
Chris@10 10505 fi
Chris@10 10506
Chris@10 10507 export_dynamic_flag_spec='${wl}-bexpall'
Chris@10 10508 # It seems that -bexpall does not export symbols beginning with
Chris@10 10509 # underscore (_), so it is better to generate a list of symbols to export.
Chris@10 10510 always_export_symbols=yes
Chris@10 10511 if test "$aix_use_runtimelinking" = yes; then
Chris@10 10512 # Warning - without using the other runtime loading flags (-brtl),
Chris@10 10513 # -berok will link without error, but may produce a broken library.
Chris@10 10514 allow_undefined_flag='-berok'
Chris@10 10515 # Determine the default libpath from the value encoded in an
Chris@10 10516 # empty executable.
Chris@10 10517 if test "${lt_cv_aix_libpath+set}" = set; then
Chris@10 10518 aix_libpath=$lt_cv_aix_libpath
Chris@10 10519 else
Chris@10 10520 if ${lt_cv_aix_libpath_+:} false; then :
Chris@10 10521 $as_echo_n "(cached) " >&6
Chris@10 10522 else
Chris@10 10523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 10524 /* end confdefs.h. */
Chris@10 10525
Chris@10 10526 int
Chris@10 10527 main ()
Chris@10 10528 {
Chris@10 10529
Chris@10 10530 ;
Chris@10 10531 return 0;
Chris@10 10532 }
Chris@10 10533 _ACEOF
Chris@10 10534 if ac_fn_c_try_link "$LINENO"; then :
Chris@10 10535
Chris@10 10536 lt_aix_libpath_sed='
Chris@10 10537 /Import File Strings/,/^$/ {
Chris@10 10538 /^0/ {
Chris@10 10539 s/^0 *\([^ ]*\) *$/\1/
Chris@10 10540 p
Chris@10 10541 }
Chris@10 10542 }'
Chris@10 10543 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@10 10544 # Check for a 64-bit object if we didn't find anything.
Chris@10 10545 if test -z "$lt_cv_aix_libpath_"; then
Chris@10 10546 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@10 10547 fi
Chris@10 10548 fi
Chris@10 10549 rm -f core conftest.err conftest.$ac_objext \
Chris@10 10550 conftest$ac_exeext conftest.$ac_ext
Chris@10 10551 if test -z "$lt_cv_aix_libpath_"; then
Chris@10 10552 lt_cv_aix_libpath_="/usr/lib:/lib"
Chris@10 10553 fi
Chris@10 10554
Chris@10 10555 fi
Chris@10 10556
Chris@10 10557 aix_libpath=$lt_cv_aix_libpath_
Chris@10 10558 fi
Chris@10 10559
Chris@10 10560 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Chris@10 10561 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@10 10562 else
Chris@10 10563 if test "$host_cpu" = ia64; then
Chris@10 10564 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
Chris@10 10565 allow_undefined_flag="-z nodefs"
Chris@10 10566 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@10 10567 else
Chris@10 10568 # Determine the default libpath from the value encoded in an
Chris@10 10569 # empty executable.
Chris@10 10570 if test "${lt_cv_aix_libpath+set}" = set; then
Chris@10 10571 aix_libpath=$lt_cv_aix_libpath
Chris@10 10572 else
Chris@10 10573 if ${lt_cv_aix_libpath_+:} false; then :
Chris@10 10574 $as_echo_n "(cached) " >&6
Chris@10 10575 else
Chris@10 10576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 10577 /* end confdefs.h. */
Chris@10 10578
Chris@10 10579 int
Chris@10 10580 main ()
Chris@10 10581 {
Chris@10 10582
Chris@10 10583 ;
Chris@10 10584 return 0;
Chris@10 10585 }
Chris@10 10586 _ACEOF
Chris@10 10587 if ac_fn_c_try_link "$LINENO"; then :
Chris@10 10588
Chris@10 10589 lt_aix_libpath_sed='
Chris@10 10590 /Import File Strings/,/^$/ {
Chris@10 10591 /^0/ {
Chris@10 10592 s/^0 *\([^ ]*\) *$/\1/
Chris@10 10593 p
Chris@10 10594 }
Chris@10 10595 }'
Chris@10 10596 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@10 10597 # Check for a 64-bit object if we didn't find anything.
Chris@10 10598 if test -z "$lt_cv_aix_libpath_"; then
Chris@10 10599 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@10 10600 fi
Chris@10 10601 fi
Chris@10 10602 rm -f core conftest.err conftest.$ac_objext \
Chris@10 10603 conftest$ac_exeext conftest.$ac_ext
Chris@10 10604 if test -z "$lt_cv_aix_libpath_"; then
Chris@10 10605 lt_cv_aix_libpath_="/usr/lib:/lib"
Chris@10 10606 fi
Chris@10 10607
Chris@10 10608 fi
Chris@10 10609
Chris@10 10610 aix_libpath=$lt_cv_aix_libpath_
Chris@10 10611 fi
Chris@10 10612
Chris@10 10613 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Chris@10 10614 # Warning - without using the other run time loading flags,
Chris@10 10615 # -berok will link without error, but may produce a broken library.
Chris@10 10616 no_undefined_flag=' ${wl}-bernotok'
Chris@10 10617 allow_undefined_flag=' ${wl}-berok'
Chris@10 10618 if test "$with_gnu_ld" = yes; then
Chris@10 10619 # We only use this code for GNU lds that support --whole-archive.
Chris@10 10620 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
Chris@10 10621 else
Chris@10 10622 # Exported symbols can be pulled into shared objects from archives
Chris@10 10623 whole_archive_flag_spec='$convenience'
Chris@10 10624 fi
Chris@10 10625 archive_cmds_need_lc=yes
Chris@10 10626 # This is similar to how AIX traditionally builds its shared libraries.
Chris@10 10627 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@10 10628 fi
Chris@10 10629 fi
Chris@10 10630 ;;
Chris@10 10631
Chris@10 10632 amigaos*)
Chris@10 10633 case $host_cpu in
Chris@10 10634 powerpc)
Chris@10 10635 # see comment about AmigaOS4 .so support
Chris@10 10636 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@10 10637 archive_expsym_cmds=''
Chris@10 10638 ;;
Chris@10 10639 m68k)
Chris@10 10640 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@10 10641 hardcode_libdir_flag_spec='-L$libdir'
Chris@10 10642 hardcode_minus_L=yes
Chris@10 10643 ;;
Chris@10 10644 esac
Chris@10 10645 ;;
Chris@10 10646
Chris@10 10647 bsdi[45]*)
Chris@10 10648 export_dynamic_flag_spec=-rdynamic
Chris@10 10649 ;;
Chris@10 10650
Chris@10 10651 cygwin* | mingw* | pw32* | cegcc*)
Chris@10 10652 # When not using gcc, we currently assume that we are using
Chris@10 10653 # Microsoft Visual C++.
Chris@10 10654 # hardcode_libdir_flag_spec is actually meaningless, as there is
Chris@10 10655 # no search path for DLLs.
Chris@10 10656 case $cc_basename in
Chris@10 10657 cl*)
Chris@10 10658 # Native MSVC
Chris@10 10659 hardcode_libdir_flag_spec=' '
Chris@10 10660 allow_undefined_flag=unsupported
Chris@10 10661 always_export_symbols=yes
Chris@10 10662 file_list_spec='@'
Chris@10 10663 # Tell ltmain to make .lib files, not .a files.
Chris@10 10664 libext=lib
Chris@10 10665 # Tell ltmain to make .dll files, not .so files.
Chris@10 10666 shrext_cmds=".dll"
Chris@10 10667 # FIXME: Setting linknames here is a bad hack.
Chris@10 10668 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
Chris@10 10669 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
Chris@10 10670 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
Chris@10 10671 else
Chris@10 10672 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
Chris@10 10673 fi~
Chris@10 10674 $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@10 10675 linknames='
Chris@10 10676 # The linker will not automatically build a static lib if we build a DLL.
Chris@10 10677 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
Chris@10 10678 enable_shared_with_static_runtimes=yes
Chris@10 10679 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
Chris@10 10680 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
Chris@10 10681 # Don't use ranlib
Chris@10 10682 old_postinstall_cmds='chmod 644 $oldlib'
Chris@10 10683 postlink_cmds='lt_outputfile="@OUTPUT@"~
Chris@10 10684 lt_tool_outputfile="@TOOL_OUTPUT@"~
Chris@10 10685 case $lt_outputfile in
Chris@10 10686 *.exe|*.EXE) ;;
Chris@10 10687 *)
Chris@10 10688 lt_outputfile="$lt_outputfile.exe"
Chris@10 10689 lt_tool_outputfile="$lt_tool_outputfile.exe"
Chris@10 10690 ;;
Chris@10 10691 esac~
Chris@10 10692 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
Chris@10 10693 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
Chris@10 10694 $RM "$lt_outputfile.manifest";
Chris@10 10695 fi'
Chris@10 10696 ;;
Chris@10 10697 *)
Chris@10 10698 # Assume MSVC wrapper
Chris@10 10699 hardcode_libdir_flag_spec=' '
Chris@10 10700 allow_undefined_flag=unsupported
Chris@10 10701 # Tell ltmain to make .lib files, not .a files.
Chris@10 10702 libext=lib
Chris@10 10703 # Tell ltmain to make .dll files, not .so files.
Chris@10 10704 shrext_cmds=".dll"
Chris@10 10705 # FIXME: Setting linknames here is a bad hack.
Chris@10 10706 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
Chris@10 10707 # The linker will automatically build a .lib file if we build a DLL.
Chris@10 10708 old_archive_from_new_cmds='true'
Chris@10 10709 # FIXME: Should let the user specify the lib program.
Chris@10 10710 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
Chris@10 10711 enable_shared_with_static_runtimes=yes
Chris@10 10712 ;;
Chris@10 10713 esac
Chris@10 10714 ;;
Chris@10 10715
Chris@10 10716 darwin* | rhapsody*)
Chris@10 10717
Chris@10 10718
Chris@10 10719 archive_cmds_need_lc=no
Chris@10 10720 hardcode_direct=no
Chris@10 10721 hardcode_automatic=yes
Chris@10 10722 hardcode_shlibpath_var=unsupported
Chris@10 10723 if test "$lt_cv_ld_force_load" = "yes"; then
Chris@10 10724 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@10 10725
Chris@10 10726 else
Chris@10 10727 whole_archive_flag_spec=''
Chris@10 10728 fi
Chris@10 10729 link_all_deplibs=yes
Chris@10 10730 allow_undefined_flag="$_lt_dar_allow_undefined"
Chris@10 10731 case $cc_basename in
Chris@10 10732 ifort*) _lt_dar_can_shared=yes ;;
Chris@10 10733 *) _lt_dar_can_shared=$GCC ;;
Chris@10 10734 esac
Chris@10 10735 if test "$_lt_dar_can_shared" = "yes"; then
Chris@10 10736 output_verbose_link_cmd=func_echo_all
Chris@10 10737 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@10 10738 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
Chris@10 10739 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@10 10740 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@10 10741
Chris@10 10742 else
Chris@10 10743 ld_shlibs=no
Chris@10 10744 fi
Chris@10 10745
Chris@10 10746 ;;
Chris@10 10747
Chris@10 10748 dgux*)
Chris@10 10749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@10 10750 hardcode_libdir_flag_spec='-L$libdir'
Chris@10 10751 hardcode_shlibpath_var=no
Chris@10 10752 ;;
Chris@10 10753
Chris@10 10754 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
Chris@10 10755 # support. Future versions do this automatically, but an explicit c++rt0.o
Chris@10 10756 # does not break anything, and helps significantly (at the cost of a little
Chris@10 10757 # extra space).
Chris@10 10758 freebsd2.2*)
Chris@10 10759 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
Chris@10 10760 hardcode_libdir_flag_spec='-R$libdir'
Chris@10 10761 hardcode_direct=yes
Chris@10 10762 hardcode_shlibpath_var=no
Chris@10 10763 ;;
Chris@10 10764
Chris@10 10765 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Chris@10 10766 freebsd2.*)
Chris@10 10767 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@10 10768 hardcode_direct=yes
Chris@10 10769 hardcode_minus_L=yes
Chris@10 10770 hardcode_shlibpath_var=no
Chris@10 10771 ;;
Chris@10 10772
Chris@10 10773 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Chris@10 10774 freebsd* | dragonfly*)
Chris@10 10775 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 10776 hardcode_libdir_flag_spec='-R$libdir'
Chris@10 10777 hardcode_direct=yes
Chris@10 10778 hardcode_shlibpath_var=no
Chris@10 10779 ;;
Chris@10 10780
Chris@10 10781 hpux9*)
Chris@10 10782 if test "$GCC" = yes; then
Chris@10 10783 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@10 10784 else
Chris@10 10785 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@10 10786 fi
Chris@10 10787 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Chris@10 10788 hardcode_libdir_separator=:
Chris@10 10789 hardcode_direct=yes
Chris@10 10790
Chris@10 10791 # hardcode_minus_L: Not really in the search PATH,
Chris@10 10792 # but as the default location of the library.
Chris@10 10793 hardcode_minus_L=yes
Chris@10 10794 export_dynamic_flag_spec='${wl}-E'
Chris@10 10795 ;;
Chris@10 10796
Chris@10 10797 hpux10*)
Chris@10 10798 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
Chris@10 10799 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 10800 else
Chris@10 10801 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
Chris@10 10802 fi
Chris@10 10803 if test "$with_gnu_ld" = no; then
Chris@10 10804 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Chris@10 10805 hardcode_libdir_separator=:
Chris@10 10806 hardcode_direct=yes
Chris@10 10807 hardcode_direct_absolute=yes
Chris@10 10808 export_dynamic_flag_spec='${wl}-E'
Chris@10 10809 # hardcode_minus_L: Not really in the search PATH,
Chris@10 10810 # but as the default location of the library.
Chris@10 10811 hardcode_minus_L=yes
Chris@10 10812 fi
Chris@10 10813 ;;
Chris@10 10814
Chris@10 10815 hpux11*)
Chris@10 10816 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
Chris@10 10817 case $host_cpu in
Chris@10 10818 hppa*64*)
Chris@10 10819 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 10820 ;;
Chris@10 10821 ia64*)
Chris@10 10822 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 10823 ;;
Chris@10 10824 *)
Chris@10 10825 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 10826 ;;
Chris@10 10827 esac
Chris@10 10828 else
Chris@10 10829 case $host_cpu in
Chris@10 10830 hppa*64*)
Chris@10 10831 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 10832 ;;
Chris@10 10833 ia64*)
Chris@10 10834 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 10835 ;;
Chris@10 10836 *)
Chris@10 10837
Chris@10 10838 # Older versions of the 11.00 compiler do not understand -b yet
Chris@10 10839 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
Chris@10 10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
Chris@10 10841 $as_echo_n "checking if $CC understands -b... " >&6; }
Chris@10 10842 if ${lt_cv_prog_compiler__b+:} false; then :
Chris@10 10843 $as_echo_n "(cached) " >&6
Chris@10 10844 else
Chris@10 10845 lt_cv_prog_compiler__b=no
Chris@10 10846 save_LDFLAGS="$LDFLAGS"
Chris@10 10847 LDFLAGS="$LDFLAGS -b"
Chris@10 10848 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Chris@10 10849 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Chris@10 10850 # The linker can only warn and ignore the option if not recognized
Chris@10 10851 # So say no if there are warnings
Chris@10 10852 if test -s conftest.err; then
Chris@10 10853 # Append any errors to the config.log.
Chris@10 10854 cat conftest.err 1>&5
Chris@10 10855 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Chris@10 10856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@10 10857 if diff conftest.exp conftest.er2 >/dev/null; then
Chris@10 10858 lt_cv_prog_compiler__b=yes
Chris@10 10859 fi
Chris@10 10860 else
Chris@10 10861 lt_cv_prog_compiler__b=yes
Chris@10 10862 fi
Chris@10 10863 fi
Chris@10 10864 $RM -r conftest*
Chris@10 10865 LDFLAGS="$save_LDFLAGS"
Chris@10 10866
Chris@10 10867 fi
Chris@10 10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
Chris@10 10869 $as_echo "$lt_cv_prog_compiler__b" >&6; }
Chris@10 10870
Chris@10 10871 if test x"$lt_cv_prog_compiler__b" = xyes; then
Chris@10 10872 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 10873 else
Chris@10 10874 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
Chris@10 10875 fi
Chris@10 10876
Chris@10 10877 ;;
Chris@10 10878 esac
Chris@10 10879 fi
Chris@10 10880 if test "$with_gnu_ld" = no; then
Chris@10 10881 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Chris@10 10882 hardcode_libdir_separator=:
Chris@10 10883
Chris@10 10884 case $host_cpu in
Chris@10 10885 hppa*64*|ia64*)
Chris@10 10886 hardcode_direct=no
Chris@10 10887 hardcode_shlibpath_var=no
Chris@10 10888 ;;
Chris@10 10889 *)
Chris@10 10890 hardcode_direct=yes
Chris@10 10891 hardcode_direct_absolute=yes
Chris@10 10892 export_dynamic_flag_spec='${wl}-E'
Chris@10 10893
Chris@10 10894 # hardcode_minus_L: Not really in the search PATH,
Chris@10 10895 # but as the default location of the library.
Chris@10 10896 hardcode_minus_L=yes
Chris@10 10897 ;;
Chris@10 10898 esac
Chris@10 10899 fi
Chris@10 10900 ;;
Chris@10 10901
Chris@10 10902 irix5* | irix6* | nonstopux*)
Chris@10 10903 if test "$GCC" = yes; then
Chris@10 10904 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@10 10905 # Try to use the -exported_symbol ld option, if it does not
Chris@10 10906 # work, assume that -exports_file does not work either and
Chris@10 10907 # implicitly export all symbols.
Chris@10 10908 # This should be the same for all languages, so no per-tag cache variable.
Chris@10 10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
Chris@10 10910 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
Chris@10 10911 if ${lt_cv_irix_exported_symbol+:} false; then :
Chris@10 10912 $as_echo_n "(cached) " >&6
Chris@10 10913 else
Chris@10 10914 save_LDFLAGS="$LDFLAGS"
Chris@10 10915 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
Chris@10 10916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 10917 /* end confdefs.h. */
Chris@10 10918 int foo (void) { return 0; }
Chris@10 10919 _ACEOF
Chris@10 10920 if ac_fn_c_try_link "$LINENO"; then :
Chris@10 10921 lt_cv_irix_exported_symbol=yes
Chris@10 10922 else
Chris@10 10923 lt_cv_irix_exported_symbol=no
Chris@10 10924 fi
Chris@10 10925 rm -f core conftest.err conftest.$ac_objext \
Chris@10 10926 conftest$ac_exeext conftest.$ac_ext
Chris@10 10927 LDFLAGS="$save_LDFLAGS"
Chris@10 10928 fi
Chris@10 10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
Chris@10 10930 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
Chris@10 10931 if test "$lt_cv_irix_exported_symbol" = yes; then
Chris@10 10932 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@10 10933 fi
Chris@10 10934 else
Chris@10 10935 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@10 10936 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@10 10937 fi
Chris@10 10938 archive_cmds_need_lc='no'
Chris@10 10939 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@10 10940 hardcode_libdir_separator=:
Chris@10 10941 inherit_rpath=yes
Chris@10 10942 link_all_deplibs=yes
Chris@10 10943 ;;
Chris@10 10944
Chris@10 10945 netbsd* | netbsdelf*-gnu)
Chris@10 10946 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@10 10947 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
Chris@10 10948 else
Chris@10 10949 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
Chris@10 10950 fi
Chris@10 10951 hardcode_libdir_flag_spec='-R$libdir'
Chris@10 10952 hardcode_direct=yes
Chris@10 10953 hardcode_shlibpath_var=no
Chris@10 10954 ;;
Chris@10 10955
Chris@10 10956 newsos6)
Chris@10 10957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@10 10958 hardcode_direct=yes
Chris@10 10959 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@10 10960 hardcode_libdir_separator=:
Chris@10 10961 hardcode_shlibpath_var=no
Chris@10 10962 ;;
Chris@10 10963
Chris@10 10964 *nto* | *qnx*)
Chris@10 10965 ;;
Chris@10 10966
Chris@10 10967 openbsd*)
Chris@10 10968 if test -f /usr/libexec/ld.so; then
Chris@10 10969 hardcode_direct=yes
Chris@10 10970 hardcode_shlibpath_var=no
Chris@10 10971 hardcode_direct_absolute=yes
Chris@10 10972 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@10 10973 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 10974 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
Chris@10 10975 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
Chris@10 10976 export_dynamic_flag_spec='${wl}-E'
Chris@10 10977 else
Chris@10 10978 case $host_os in
Chris@10 10979 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
Chris@10 10980 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@10 10981 hardcode_libdir_flag_spec='-R$libdir'
Chris@10 10982 ;;
Chris@10 10983 *)
Chris@10 10984 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 10985 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
Chris@10 10986 ;;
Chris@10 10987 esac
Chris@10 10988 fi
Chris@10 10989 else
Chris@10 10990 ld_shlibs=no
Chris@10 10991 fi
Chris@10 10992 ;;
Chris@10 10993
Chris@10 10994 os2*)
Chris@10 10995 hardcode_libdir_flag_spec='-L$libdir'
Chris@10 10996 hardcode_minus_L=yes
Chris@10 10997 allow_undefined_flag=unsupported
Chris@10 10998 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@10 10999 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
Chris@10 11000 ;;
Chris@10 11001
Chris@10 11002 osf3*)
Chris@10 11003 if test "$GCC" = yes; then
Chris@10 11004 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Chris@10 11005 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@10 11006 else
Chris@10 11007 allow_undefined_flag=' -expect_unresolved \*'
Chris@10 11008 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@10 11009 fi
Chris@10 11010 archive_cmds_need_lc='no'
Chris@10 11011 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@10 11012 hardcode_libdir_separator=:
Chris@10 11013 ;;
Chris@10 11014
Chris@10 11015 osf4* | osf5*) # as osf3* with the addition of -msym flag
Chris@10 11016 if test "$GCC" = yes; then
Chris@10 11017 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Chris@10 11018 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@10 11019 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Chris@10 11020 else
Chris@10 11021 allow_undefined_flag=' -expect_unresolved \*'
Chris@10 11022 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@10 11023 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@10 11024 $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@10 11025
Chris@10 11026 # Both c and cxx compiler support -rpath directly
Chris@10 11027 hardcode_libdir_flag_spec='-rpath $libdir'
Chris@10 11028 fi
Chris@10 11029 archive_cmds_need_lc='no'
Chris@10 11030 hardcode_libdir_separator=:
Chris@10 11031 ;;
Chris@10 11032
Chris@10 11033 solaris*)
Chris@10 11034 no_undefined_flag=' -z defs'
Chris@10 11035 if test "$GCC" = yes; then
Chris@10 11036 wlarc='${wl}'
Chris@10 11037 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 11038 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@10 11039 $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@10 11040 else
Chris@10 11041 case `$CC -V 2>&1` in
Chris@10 11042 *"Compilers 5.0"*)
Chris@10 11043 wlarc=''
Chris@10 11044 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@10 11045 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@10 11046 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
Chris@10 11047 ;;
Chris@10 11048 *)
Chris@10 11049 wlarc='${wl}'
Chris@10 11050 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 11051 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@10 11052 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Chris@10 11053 ;;
Chris@10 11054 esac
Chris@10 11055 fi
Chris@10 11056 hardcode_libdir_flag_spec='-R$libdir'
Chris@10 11057 hardcode_shlibpath_var=no
Chris@10 11058 case $host_os in
Chris@10 11059 solaris2.[0-5] | solaris2.[0-5].*) ;;
Chris@10 11060 *)
Chris@10 11061 # The compiler driver will combine and reorder linker options,
Chris@10 11062 # but understands `-z linker_flag'. GCC discards it without `$wl',
Chris@10 11063 # but is careful enough not to reorder.
Chris@10 11064 # Supported since Solaris 2.6 (maybe 2.5.1?)
Chris@10 11065 if test "$GCC" = yes; then
Chris@10 11066 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
Chris@10 11067 else
Chris@10 11068 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
Chris@10 11069 fi
Chris@10 11070 ;;
Chris@10 11071 esac
Chris@10 11072 link_all_deplibs=yes
Chris@10 11073 ;;
Chris@10 11074
Chris@10 11075 sunos4*)
Chris@10 11076 if test "x$host_vendor" = xsequent; then
Chris@10 11077 # Use $CC to link under sequent, because it throws in some extra .o
Chris@10 11078 # files that make .init and .fini sections work.
Chris@10 11079 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 11080 else
Chris@10 11081 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
Chris@10 11082 fi
Chris@10 11083 hardcode_libdir_flag_spec='-L$libdir'
Chris@10 11084 hardcode_direct=yes
Chris@10 11085 hardcode_minus_L=yes
Chris@10 11086 hardcode_shlibpath_var=no
Chris@10 11087 ;;
Chris@10 11088
Chris@10 11089 sysv4)
Chris@10 11090 case $host_vendor in
Chris@10 11091 sni)
Chris@10 11092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@10 11093 hardcode_direct=yes # is this really true???
Chris@10 11094 ;;
Chris@10 11095 siemens)
Chris@10 11096 ## LD is ld it makes a PLAMLIB
Chris@10 11097 ## CC just makes a GrossModule.
Chris@10 11098 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
Chris@10 11099 reload_cmds='$CC -r -o $output$reload_objs'
Chris@10 11100 hardcode_direct=no
Chris@10 11101 ;;
Chris@10 11102 motorola)
Chris@10 11103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@10 11104 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
Chris@10 11105 ;;
Chris@10 11106 esac
Chris@10 11107 runpath_var='LD_RUN_PATH'
Chris@10 11108 hardcode_shlibpath_var=no
Chris@10 11109 ;;
Chris@10 11110
Chris@10 11111 sysv4.3*)
Chris@10 11112 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@10 11113 hardcode_shlibpath_var=no
Chris@10 11114 export_dynamic_flag_spec='-Bexport'
Chris@10 11115 ;;
Chris@10 11116
Chris@10 11117 sysv4*MP*)
Chris@10 11118 if test -d /usr/nec; then
Chris@10 11119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@10 11120 hardcode_shlibpath_var=no
Chris@10 11121 runpath_var=LD_RUN_PATH
Chris@10 11122 hardcode_runpath_var=yes
Chris@10 11123 ld_shlibs=yes
Chris@10 11124 fi
Chris@10 11125 ;;
Chris@10 11126
Chris@10 11127 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Chris@10 11128 no_undefined_flag='${wl}-z,text'
Chris@10 11129 archive_cmds_need_lc=no
Chris@10 11130 hardcode_shlibpath_var=no
Chris@10 11131 runpath_var='LD_RUN_PATH'
Chris@10 11132
Chris@10 11133 if test "$GCC" = yes; then
Chris@10 11134 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 11135 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 11136 else
Chris@10 11137 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 11138 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 11139 fi
Chris@10 11140 ;;
Chris@10 11141
Chris@10 11142 sysv5* | sco3.2v5* | sco5v6*)
Chris@10 11143 # Note: We can NOT use -z defs as we might desire, because we do not
Chris@10 11144 # link with -lc, and that would cause any symbols used from libc to
Chris@10 11145 # always be unresolved, which means just about no library would
Chris@10 11146 # ever link correctly. If we're not using GNU ld we use -z text
Chris@10 11147 # though, which does catch some bad symbols but isn't as heavy-handed
Chris@10 11148 # as -z defs.
Chris@10 11149 no_undefined_flag='${wl}-z,text'
Chris@10 11150 allow_undefined_flag='${wl}-z,nodefs'
Chris@10 11151 archive_cmds_need_lc=no
Chris@10 11152 hardcode_shlibpath_var=no
Chris@10 11153 hardcode_libdir_flag_spec='${wl}-R,$libdir'
Chris@10 11154 hardcode_libdir_separator=':'
Chris@10 11155 link_all_deplibs=yes
Chris@10 11156 export_dynamic_flag_spec='${wl}-Bexport'
Chris@10 11157 runpath_var='LD_RUN_PATH'
Chris@10 11158
Chris@10 11159 if test "$GCC" = yes; then
Chris@10 11160 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 11161 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 11162 else
Chris@10 11163 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 11164 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 11165 fi
Chris@10 11166 ;;
Chris@10 11167
Chris@10 11168 uts4*)
Chris@10 11169 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@10 11170 hardcode_libdir_flag_spec='-L$libdir'
Chris@10 11171 hardcode_shlibpath_var=no
Chris@10 11172 ;;
Chris@10 11173
Chris@10 11174 *)
Chris@10 11175 ld_shlibs=no
Chris@10 11176 ;;
Chris@10 11177 esac
Chris@10 11178
Chris@10 11179 if test x$host_vendor = xsni; then
Chris@10 11180 case $host in
Chris@10 11181 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Chris@10 11182 export_dynamic_flag_spec='${wl}-Blargedynsym'
Chris@10 11183 ;;
Chris@10 11184 esac
Chris@10 11185 fi
Chris@10 11186 fi
Chris@10 11187
Chris@10 11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
Chris@10 11189 $as_echo "$ld_shlibs" >&6; }
Chris@10 11190 test "$ld_shlibs" = no && can_build_shared=no
Chris@10 11191
Chris@10 11192 with_gnu_ld=$with_gnu_ld
Chris@10 11193
Chris@10 11194
Chris@10 11195
Chris@10 11196
Chris@10 11197
Chris@10 11198
Chris@10 11199
Chris@10 11200
Chris@10 11201
Chris@10 11202
Chris@10 11203
Chris@10 11204
Chris@10 11205
Chris@10 11206
Chris@10 11207
Chris@10 11208 #
Chris@10 11209 # Do we need to explicitly link libc?
Chris@10 11210 #
Chris@10 11211 case "x$archive_cmds_need_lc" in
Chris@10 11212 x|xyes)
Chris@10 11213 # Assume -lc should be added
Chris@10 11214 archive_cmds_need_lc=yes
Chris@10 11215
Chris@10 11216 if test "$enable_shared" = yes && test "$GCC" = yes; then
Chris@10 11217 case $archive_cmds in
Chris@10 11218 *'~'*)
Chris@10 11219 # FIXME: we may have to deal with multi-command sequences.
Chris@10 11220 ;;
Chris@10 11221 '$CC '*)
Chris@10 11222 # Test whether the compiler implicitly links with -lc since on some
Chris@10 11223 # systems, -lgcc has to come before -lc. If gcc already passes -lc
Chris@10 11224 # to ld, don't add -lc before -lgcc.
Chris@10 11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Chris@10 11226 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Chris@10 11227 if ${lt_cv_archive_cmds_need_lc+:} false; then :
Chris@10 11228 $as_echo_n "(cached) " >&6
Chris@10 11229 else
Chris@10 11230 $RM conftest*
Chris@10 11231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@10 11232
Chris@10 11233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@10 11234 (eval $ac_compile) 2>&5
Chris@10 11235 ac_status=$?
Chris@10 11236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 11237 test $ac_status = 0; } 2>conftest.err; then
Chris@10 11238 soname=conftest
Chris@10 11239 lib=conftest
Chris@10 11240 libobjs=conftest.$ac_objext
Chris@10 11241 deplibs=
Chris@10 11242 wl=$lt_prog_compiler_wl
Chris@10 11243 pic_flag=$lt_prog_compiler_pic
Chris@10 11244 compiler_flags=-v
Chris@10 11245 linker_flags=-v
Chris@10 11246 verstring=
Chris@10 11247 output_objdir=.
Chris@10 11248 libname=conftest
Chris@10 11249 lt_save_allow_undefined_flag=$allow_undefined_flag
Chris@10 11250 allow_undefined_flag=
Chris@10 11251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Chris@10 11252 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Chris@10 11253 ac_status=$?
Chris@10 11254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 11255 test $ac_status = 0; }
Chris@10 11256 then
Chris@10 11257 lt_cv_archive_cmds_need_lc=no
Chris@10 11258 else
Chris@10 11259 lt_cv_archive_cmds_need_lc=yes
Chris@10 11260 fi
Chris@10 11261 allow_undefined_flag=$lt_save_allow_undefined_flag
Chris@10 11262 else
Chris@10 11263 cat conftest.err 1>&5
Chris@10 11264 fi
Chris@10 11265 $RM conftest*
Chris@10 11266
Chris@10 11267 fi
Chris@10 11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
Chris@10 11269 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
Chris@10 11270 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Chris@10 11271 ;;
Chris@10 11272 esac
Chris@10 11273 fi
Chris@10 11274 ;;
Chris@10 11275 esac
Chris@10 11276
Chris@10 11277
Chris@10 11278
Chris@10 11279
Chris@10 11280
Chris@10 11281
Chris@10 11282
Chris@10 11283
Chris@10 11284
Chris@10 11285
Chris@10 11286
Chris@10 11287
Chris@10 11288
Chris@10 11289
Chris@10 11290
Chris@10 11291
Chris@10 11292
Chris@10 11293
Chris@10 11294
Chris@10 11295
Chris@10 11296
Chris@10 11297
Chris@10 11298
Chris@10 11299
Chris@10 11300
Chris@10 11301
Chris@10 11302
Chris@10 11303
Chris@10 11304
Chris@10 11305
Chris@10 11306
Chris@10 11307
Chris@10 11308
Chris@10 11309
Chris@10 11310
Chris@10 11311
Chris@10 11312
Chris@10 11313
Chris@10 11314
Chris@10 11315
Chris@10 11316
Chris@10 11317
Chris@10 11318
Chris@10 11319
Chris@10 11320
Chris@10 11321
Chris@10 11322
Chris@10 11323
Chris@10 11324
Chris@10 11325
Chris@10 11326
Chris@10 11327
Chris@10 11328
Chris@10 11329
Chris@10 11330
Chris@10 11331
Chris@10 11332
Chris@10 11333
Chris@10 11334
Chris@10 11335
Chris@10 11336
Chris@10 11337
Chris@10 11338
Chris@10 11339
Chris@10 11340
Chris@10 11341
Chris@10 11342
Chris@10 11343
Chris@10 11344
Chris@10 11345
Chris@10 11346
Chris@10 11347
Chris@10 11348
Chris@10 11349
Chris@10 11350
Chris@10 11351
Chris@10 11352
Chris@10 11353
Chris@10 11354
Chris@10 11355
Chris@10 11356
Chris@10 11357
Chris@10 11358
Chris@10 11359
Chris@10 11360
Chris@10 11361
Chris@10 11362
Chris@10 11363
Chris@10 11364
Chris@10 11365
Chris@10 11366
Chris@10 11367
Chris@10 11368
Chris@10 11369
Chris@10 11370
Chris@10 11371
Chris@10 11372
Chris@10 11373
Chris@10 11374
Chris@10 11375
Chris@10 11376
Chris@10 11377
Chris@10 11378
Chris@10 11379
Chris@10 11380
Chris@10 11381
Chris@10 11382
Chris@10 11383
Chris@10 11384
Chris@10 11385
Chris@10 11386
Chris@10 11387
Chris@10 11388
Chris@10 11389
Chris@10 11390
Chris@10 11391
Chris@10 11392
Chris@10 11393
Chris@10 11394
Chris@10 11395
Chris@10 11396
Chris@10 11397
Chris@10 11398
Chris@10 11399
Chris@10 11400
Chris@10 11401
Chris@10 11402
Chris@10 11403
Chris@10 11404
Chris@10 11405
Chris@10 11406
Chris@10 11407
Chris@10 11408
Chris@10 11409
Chris@10 11410
Chris@10 11411
Chris@10 11412
Chris@10 11413
Chris@10 11414
Chris@10 11415
Chris@10 11416
Chris@10 11417
Chris@10 11418
Chris@10 11419
Chris@10 11420
Chris@10 11421
Chris@10 11422
Chris@10 11423
Chris@10 11424
Chris@10 11425
Chris@10 11426
Chris@10 11427
Chris@10 11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Chris@10 11429 $as_echo_n "checking dynamic linker characteristics... " >&6; }
Chris@10 11430
Chris@10 11431 if test "$GCC" = yes; then
Chris@10 11432 case $host_os in
Chris@10 11433 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
Chris@10 11434 *) lt_awk_arg="/^libraries:/" ;;
Chris@10 11435 esac
Chris@10 11436 case $host_os in
Chris@10 11437 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
Chris@10 11438 *) lt_sed_strip_eq="s,=/,/,g" ;;
Chris@10 11439 esac
Chris@10 11440 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
Chris@10 11441 case $lt_search_path_spec in
Chris@10 11442 *\;*)
Chris@10 11443 # if the path contains ";" then we assume it to be the separator
Chris@10 11444 # otherwise default to the standard path separator (i.e. ":") - it is
Chris@10 11445 # assumed that no part of a normal pathname contains ";" but that should
Chris@10 11446 # okay in the real world where ";" in dirpaths is itself problematic.
Chris@10 11447 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
Chris@10 11448 ;;
Chris@10 11449 *)
Chris@10 11450 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
Chris@10 11451 ;;
Chris@10 11452 esac
Chris@10 11453 # Ok, now we have the path, separated by spaces, we can step through it
Chris@10 11454 # and add multilib dir if necessary.
Chris@10 11455 lt_tmp_lt_search_path_spec=
Chris@10 11456 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
Chris@10 11457 for lt_sys_path in $lt_search_path_spec; do
Chris@10 11458 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
Chris@10 11459 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
Chris@10 11460 else
Chris@10 11461 test -d "$lt_sys_path" && \
Chris@10 11462 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
Chris@10 11463 fi
Chris@10 11464 done
Chris@10 11465 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Chris@10 11466 BEGIN {RS=" "; FS="/|\n";} {
Chris@10 11467 lt_foo="";
Chris@10 11468 lt_count=0;
Chris@10 11469 for (lt_i = NF; lt_i > 0; lt_i--) {
Chris@10 11470 if ($lt_i != "" && $lt_i != ".") {
Chris@10 11471 if ($lt_i == "..") {
Chris@10 11472 lt_count++;
Chris@10 11473 } else {
Chris@10 11474 if (lt_count == 0) {
Chris@10 11475 lt_foo="/" $lt_i lt_foo;
Chris@10 11476 } else {
Chris@10 11477 lt_count--;
Chris@10 11478 }
Chris@10 11479 }
Chris@10 11480 }
Chris@10 11481 }
Chris@10 11482 if (lt_foo != "") { lt_freq[lt_foo]++; }
Chris@10 11483 if (lt_freq[lt_foo] == 1) { print lt_foo; }
Chris@10 11484 }'`
Chris@10 11485 # AWK program above erroneously prepends '/' to C:/dos/paths
Chris@10 11486 # for these hosts.
Chris@10 11487 case $host_os in
Chris@10 11488 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
Chris@10 11489 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
Chris@10 11490 esac
Chris@10 11491 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Chris@10 11492 else
Chris@10 11493 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Chris@10 11494 fi
Chris@10 11495 library_names_spec=
Chris@10 11496 libname_spec='lib$name'
Chris@10 11497 soname_spec=
Chris@10 11498 shrext_cmds=".so"
Chris@10 11499 postinstall_cmds=
Chris@10 11500 postuninstall_cmds=
Chris@10 11501 finish_cmds=
Chris@10 11502 finish_eval=
Chris@10 11503 shlibpath_var=
Chris@10 11504 shlibpath_overrides_runpath=unknown
Chris@10 11505 version_type=none
Chris@10 11506 dynamic_linker="$host_os ld.so"
Chris@10 11507 sys_lib_dlsearch_path_spec="/lib /usr/lib"
Chris@10 11508 need_lib_prefix=unknown
Chris@10 11509 hardcode_into_libs=no
Chris@10 11510
Chris@10 11511 # when you set need_version to no, make sure it does not cause -set_version
Chris@10 11512 # flags to be left without arguments
Chris@10 11513 need_version=unknown
Chris@10 11514
Chris@10 11515 case $host_os in
Chris@10 11516 aix3*)
Chris@10 11517 version_type=linux # correct to gnu/linux during the next big refactor
Chris@10 11518 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
Chris@10 11519 shlibpath_var=LIBPATH
Chris@10 11520
Chris@10 11521 # AIX 3 has no versioning support, so we append a major version to the name.
Chris@10 11522 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 11523 ;;
Chris@10 11524
Chris@10 11525 aix[4-9]*)
Chris@10 11526 version_type=linux # correct to gnu/linux during the next big refactor
Chris@10 11527 need_lib_prefix=no
Chris@10 11528 need_version=no
Chris@10 11529 hardcode_into_libs=yes
Chris@10 11530 if test "$host_cpu" = ia64; then
Chris@10 11531 # AIX 5 supports IA64
Chris@10 11532 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
Chris@10 11533 shlibpath_var=LD_LIBRARY_PATH
Chris@10 11534 else
Chris@10 11535 # With GCC up to 2.95.x, collect2 would create an import file
Chris@10 11536 # for dependence libraries. The import file would start with
Chris@10 11537 # the line `#! .'. This would cause the generated library to
Chris@10 11538 # depend on `.', always an invalid library. This was fixed in
Chris@10 11539 # development snapshots of GCC prior to 3.0.
Chris@10 11540 case $host_os in
Chris@10 11541 aix4 | aix4.[01] | aix4.[01].*)
Chris@10 11542 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
Chris@10 11543 echo ' yes '
Chris@10 11544 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
Chris@10 11545 :
Chris@10 11546 else
Chris@10 11547 can_build_shared=no
Chris@10 11548 fi
Chris@10 11549 ;;
Chris@10 11550 esac
Chris@10 11551 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
Chris@10 11552 # soname into executable. Probably we can add versioning support to
Chris@10 11553 # collect2, so additional links can be useful in future.
Chris@10 11554 if test "$aix_use_runtimelinking" = yes; then
Chris@10 11555 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
Chris@10 11556 # instead of lib<name>.a to let people know that these are not
Chris@10 11557 # typical AIX shared libraries.
Chris@10 11558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@10 11559 else
Chris@10 11560 # We preserve .a as extension for shared libraries through AIX4.2
Chris@10 11561 # and later when we are not doing run time linking.
Chris@10 11562 library_names_spec='${libname}${release}.a $libname.a'
Chris@10 11563 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 11564 fi
Chris@10 11565 shlibpath_var=LIBPATH
Chris@10 11566 fi
Chris@10 11567 ;;
Chris@10 11568
Chris@10 11569 amigaos*)
Chris@10 11570 case $host_cpu in
Chris@10 11571 powerpc)
Chris@10 11572 # Since July 2007 AmigaOS4 officially supports .so libraries.
Chris@10 11573 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Chris@10 11574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@10 11575 ;;
Chris@10 11576 m68k)
Chris@10 11577 library_names_spec='$libname.ixlibrary $libname.a'
Chris@10 11578 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Chris@10 11579 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@10 11580 ;;
Chris@10 11581 esac
Chris@10 11582 ;;
Chris@10 11583
Chris@10 11584 beos*)
Chris@10 11585 library_names_spec='${libname}${shared_ext}'
Chris@10 11586 dynamic_linker="$host_os ld.so"
Chris@10 11587 shlibpath_var=LIBRARY_PATH
Chris@10 11588 ;;
Chris@10 11589
Chris@10 11590 bsdi[45]*)
Chris@10 11591 version_type=linux # correct to gnu/linux during the next big refactor
Chris@10 11592 need_version=no
Chris@10 11593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@10 11594 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 11595 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
Chris@10 11596 shlibpath_var=LD_LIBRARY_PATH
Chris@10 11597 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
Chris@10 11598 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
Chris@10 11599 # the default ld.so.conf also contains /usr/contrib/lib and
Chris@10 11600 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
Chris@10 11601 # libtool to hard-code these into programs
Chris@10 11602 ;;
Chris@10 11603
Chris@10 11604 cygwin* | mingw* | pw32* | cegcc*)
Chris@10 11605 version_type=windows
Chris@10 11606 shrext_cmds=".dll"
Chris@10 11607 need_version=no
Chris@10 11608 need_lib_prefix=no
Chris@10 11609
Chris@10 11610 case $GCC,$cc_basename in
Chris@10 11611 yes,*)
Chris@10 11612 # gcc
Chris@10 11613 library_names_spec='$libname.dll.a'
Chris@10 11614 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@10 11615 postinstall_cmds='base_file=`basename \${file}`~
Chris@10 11616 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Chris@10 11617 dldir=$destdir/`dirname \$dlpath`~
Chris@10 11618 test -d \$dldir || mkdir -p \$dldir~
Chris@10 11619 $install_prog $dir/$dlname \$dldir/$dlname~
Chris@10 11620 chmod a+x \$dldir/$dlname~
Chris@10 11621 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
Chris@10 11622 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
Chris@10 11623 fi'
Chris@10 11624 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@10 11625 dlpath=$dir/\$dldll~
Chris@10 11626 $RM \$dlpath'
Chris@10 11627 shlibpath_overrides_runpath=yes
Chris@10 11628
Chris@10 11629 case $host_os in
Chris@10 11630 cygwin*)
Chris@10 11631 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Chris@10 11632 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@10 11633
Chris@10 11634 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Chris@10 11635 ;;
Chris@10 11636 mingw* | cegcc*)
Chris@10 11637 # MinGW DLLs use traditional 'lib' prefix
Chris@10 11638 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@10 11639 ;;
Chris@10 11640 pw32*)
Chris@10 11641 # pw32 DLLs use 'pw' prefix rather than 'lib'
Chris@10 11642 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@10 11643 ;;
Chris@10 11644 esac
Chris@10 11645 dynamic_linker='Win32 ld.exe'
Chris@10 11646 ;;
Chris@10 11647
Chris@10 11648 *,cl*)
Chris@10 11649 # Native MSVC
Chris@10 11650 libname_spec='$name'
Chris@10 11651 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@10 11652 library_names_spec='${libname}.dll.lib'
Chris@10 11653
Chris@10 11654 case $build_os in
Chris@10 11655 mingw*)
Chris@10 11656 sys_lib_search_path_spec=
Chris@10 11657 lt_save_ifs=$IFS
Chris@10 11658 IFS=';'
Chris@10 11659 for lt_path in $LIB
Chris@10 11660 do
Chris@10 11661 IFS=$lt_save_ifs
Chris@10 11662 # Let DOS variable expansion print the short 8.3 style file name.
Chris@10 11663 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
Chris@10 11664 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
Chris@10 11665 done
Chris@10 11666 IFS=$lt_save_ifs
Chris@10 11667 # Convert to MSYS style.
Chris@10 11668 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@10 11669 ;;
Chris@10 11670 cygwin*)
Chris@10 11671 # Convert to unix form, then to dos form, then back to unix form
Chris@10 11672 # but this time dos style (no spaces!) so that the unix form looks
Chris@10 11673 # like /cygdrive/c/PROGRA~1:/cygdr...
Chris@10 11674 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
Chris@10 11675 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
Chris@10 11676 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@10 11677 ;;
Chris@10 11678 *)
Chris@10 11679 sys_lib_search_path_spec="$LIB"
Chris@10 11680 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
Chris@10 11681 # It is most probably a Windows format PATH.
Chris@10 11682 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Chris@10 11683 else
Chris@10 11684 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@10 11685 fi
Chris@10 11686 # FIXME: find the short name or the path components, as spaces are
Chris@10 11687 # common. (e.g. "Program Files" -> "PROGRA~1")
Chris@10 11688 ;;
Chris@10 11689 esac
Chris@10 11690
Chris@10 11691 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@10 11692 postinstall_cmds='base_file=`basename \${file}`~
Chris@10 11693 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Chris@10 11694 dldir=$destdir/`dirname \$dlpath`~
Chris@10 11695 test -d \$dldir || mkdir -p \$dldir~
Chris@10 11696 $install_prog $dir/$dlname \$dldir/$dlname'
Chris@10 11697 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@10 11698 dlpath=$dir/\$dldll~
Chris@10 11699 $RM \$dlpath'
Chris@10 11700 shlibpath_overrides_runpath=yes
Chris@10 11701 dynamic_linker='Win32 link.exe'
Chris@10 11702 ;;
Chris@10 11703
Chris@10 11704 *)
Chris@10 11705 # Assume MSVC wrapper
Chris@10 11706 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Chris@10 11707 dynamic_linker='Win32 ld.exe'
Chris@10 11708 ;;
Chris@10 11709 esac
Chris@10 11710 # FIXME: first we should search . and the directory the executable is in
Chris@10 11711 shlibpath_var=PATH
Chris@10 11712 ;;
Chris@10 11713
Chris@10 11714 darwin* | rhapsody*)
Chris@10 11715 dynamic_linker="$host_os dyld"
Chris@10 11716 version_type=darwin
Chris@10 11717 need_lib_prefix=no
Chris@10 11718 need_version=no
Chris@10 11719 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Chris@10 11720 soname_spec='${libname}${release}${major}$shared_ext'
Chris@10 11721 shlibpath_overrides_runpath=yes
Chris@10 11722 shlibpath_var=DYLD_LIBRARY_PATH
Chris@10 11723 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Chris@10 11724
Chris@10 11725 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
Chris@10 11726 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
Chris@10 11727 ;;
Chris@10 11728
Chris@10 11729 dgux*)
Chris@10 11730 version_type=linux # correct to gnu/linux during the next big refactor
Chris@10 11731 need_lib_prefix=no
Chris@10 11732 need_version=no
Chris@10 11733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
Chris@10 11734 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 11735 shlibpath_var=LD_LIBRARY_PATH
Chris@10 11736 ;;
Chris@10 11737
Chris@10 11738 freebsd* | dragonfly*)
Chris@10 11739 # DragonFly does not have aout. When/if they implement a new
Chris@10 11740 # versioning mechanism, adjust this.
Chris@10 11741 if test -x /usr/bin/objformat; then
Chris@10 11742 objformat=`/usr/bin/objformat`
Chris@10 11743 else
Chris@10 11744 case $host_os in
Chris@10 11745 freebsd[23].*) objformat=aout ;;
Chris@10 11746 *) objformat=elf ;;
Chris@10 11747 esac
Chris@10 11748 fi
Chris@10 11749 version_type=freebsd-$objformat
Chris@10 11750 case $version_type in
Chris@10 11751 freebsd-elf*)
Chris@10 11752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@10 11753 need_version=no
Chris@10 11754 need_lib_prefix=no
Chris@10 11755 ;;
Chris@10 11756 freebsd-*)
Chris@10 11757 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
Chris@10 11758 need_version=yes
Chris@10 11759 ;;
Chris@10 11760 esac
Chris@10 11761 shlibpath_var=LD_LIBRARY_PATH
Chris@10 11762 case $host_os in
Chris@10 11763 freebsd2.*)
Chris@10 11764 shlibpath_overrides_runpath=yes
Chris@10 11765 ;;
Chris@10 11766 freebsd3.[01]* | freebsdelf3.[01]*)
Chris@10 11767 shlibpath_overrides_runpath=yes
Chris@10 11768 hardcode_into_libs=yes
Chris@10 11769 ;;
Chris@10 11770 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
Chris@10 11771 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Chris@10 11772 shlibpath_overrides_runpath=no
Chris@10 11773 hardcode_into_libs=yes
Chris@10 11774 ;;
Chris@10 11775 *) # from 4.6 on, and DragonFly
Chris@10 11776 shlibpath_overrides_runpath=yes
Chris@10 11777 hardcode_into_libs=yes
Chris@10 11778 ;;
Chris@10 11779 esac
Chris@10 11780 ;;
Chris@10 11781
Chris@10 11782 haiku*)
Chris@10 11783 version_type=linux # correct to gnu/linux during the next big refactor
Chris@10 11784 need_lib_prefix=no
Chris@10 11785 need_version=no
Chris@10 11786 dynamic_linker="$host_os runtime_loader"
Chris@10 11787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
Chris@10 11788 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 11789 shlibpath_var=LIBRARY_PATH
Chris@10 11790 shlibpath_overrides_runpath=yes
Chris@10 11791 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Chris@10 11792 hardcode_into_libs=yes
Chris@10 11793 ;;
Chris@10 11794
Chris@10 11795 hpux9* | hpux10* | hpux11*)
Chris@10 11796 # Give a soname corresponding to the major version so that dld.sl refuses to
Chris@10 11797 # link against other versions.
Chris@10 11798 version_type=sunos
Chris@10 11799 need_lib_prefix=no
Chris@10 11800 need_version=no
Chris@10 11801 case $host_cpu in
Chris@10 11802 ia64*)
Chris@10 11803 shrext_cmds='.so'
Chris@10 11804 hardcode_into_libs=yes
Chris@10 11805 dynamic_linker="$host_os dld.so"
Chris@10 11806 shlibpath_var=LD_LIBRARY_PATH
Chris@10 11807 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@10 11808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@10 11809 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 11810 if test "X$HPUX_IA64_MODE" = X32; then
Chris@10 11811 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Chris@10 11812 else
Chris@10 11813 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Chris@10 11814 fi
Chris@10 11815 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@10 11816 ;;
Chris@10 11817 hppa*64*)
Chris@10 11818 shrext_cmds='.sl'
Chris@10 11819 hardcode_into_libs=yes
Chris@10 11820 dynamic_linker="$host_os dld.sl"
Chris@10 11821 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
Chris@10 11822 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@10 11823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@10 11824 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 11825 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
Chris@10 11826 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@10 11827 ;;
Chris@10 11828 *)
Chris@10 11829 shrext_cmds='.sl'
Chris@10 11830 dynamic_linker="$host_os dld.sl"
Chris@10 11831 shlibpath_var=SHLIB_PATH
Chris@10 11832 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Chris@10 11833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@10 11834 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 11835 ;;
Chris@10 11836 esac
Chris@10 11837 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Chris@10 11838 postinstall_cmds='chmod 555 $lib'
Chris@10 11839 # or fails outright, so override atomically:
Chris@10 11840 install_override_mode=555
Chris@10 11841 ;;
Chris@10 11842
Chris@10 11843 interix[3-9]*)
Chris@10 11844 version_type=linux # correct to gnu/linux during the next big refactor
Chris@10 11845 need_lib_prefix=no
Chris@10 11846 need_version=no
Chris@10 11847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@10 11848 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 11849 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
Chris@10 11850 shlibpath_var=LD_LIBRARY_PATH
Chris@10 11851 shlibpath_overrides_runpath=no
Chris@10 11852 hardcode_into_libs=yes
Chris@10 11853 ;;
Chris@10 11854
Chris@10 11855 irix5* | irix6* | nonstopux*)
Chris@10 11856 case $host_os in
Chris@10 11857 nonstopux*) version_type=nonstopux ;;
Chris@10 11858 *)
Chris@10 11859 if test "$lt_cv_prog_gnu_ld" = yes; then
Chris@10 11860 version_type=linux # correct to gnu/linux during the next big refactor
Chris@10 11861 else
Chris@10 11862 version_type=irix
Chris@10 11863 fi ;;
Chris@10 11864 esac
Chris@10 11865 need_lib_prefix=no
Chris@10 11866 need_version=no
Chris@10 11867 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 11868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@10 11869 case $host_os in
Chris@10 11870 irix5* | nonstopux*)
Chris@10 11871 libsuff= shlibsuff=
Chris@10 11872 ;;
Chris@10 11873 *)
Chris@10 11874 case $LD in # libtool.m4 will add one of these switches to LD
Chris@10 11875 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
Chris@10 11876 libsuff= shlibsuff= libmagic=32-bit;;
Chris@10 11877 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
Chris@10 11878 libsuff=32 shlibsuff=N32 libmagic=N32;;
Chris@10 11879 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
Chris@10 11880 libsuff=64 shlibsuff=64 libmagic=64-bit;;
Chris@10 11881 *) libsuff= shlibsuff= libmagic=never-match;;
Chris@10 11882 esac
Chris@10 11883 ;;
Chris@10 11884 esac
Chris@10 11885 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
Chris@10 11886 shlibpath_overrides_runpath=no
Chris@10 11887 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
Chris@10 11888 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
Chris@10 11889 hardcode_into_libs=yes
Chris@10 11890 ;;
Chris@10 11891
Chris@10 11892 # No shared lib support for Linux oldld, aout, or coff.
Chris@10 11893 linux*oldld* | linux*aout* | linux*coff*)
Chris@10 11894 dynamic_linker=no
Chris@10 11895 ;;
Chris@10 11896
Chris@10 11897 # This must be glibc/ELF.
Chris@10 11898 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Chris@10 11899 version_type=linux # correct to gnu/linux during the next big refactor
Chris@10 11900 need_lib_prefix=no
Chris@10 11901 need_version=no
Chris@10 11902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@10 11903 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 11904 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
Chris@10 11905 shlibpath_var=LD_LIBRARY_PATH
Chris@10 11906 shlibpath_overrides_runpath=no
Chris@10 11907
Chris@10 11908 # Some binutils ld are patched to set DT_RUNPATH
Chris@10 11909 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
Chris@10 11910 $as_echo_n "(cached) " >&6
Chris@10 11911 else
Chris@10 11912 lt_cv_shlibpath_overrides_runpath=no
Chris@10 11913 save_LDFLAGS=$LDFLAGS
Chris@10 11914 save_libdir=$libdir
Chris@10 11915 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
Chris@10 11916 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
Chris@10 11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 11918 /* end confdefs.h. */
Chris@10 11919
Chris@10 11920 int
Chris@10 11921 main ()
Chris@10 11922 {
Chris@10 11923
Chris@10 11924 ;
Chris@10 11925 return 0;
Chris@10 11926 }
Chris@10 11927 _ACEOF
Chris@10 11928 if ac_fn_c_try_link "$LINENO"; then :
Chris@10 11929 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
Chris@10 11930 lt_cv_shlibpath_overrides_runpath=yes
Chris@10 11931 fi
Chris@10 11932 fi
Chris@10 11933 rm -f core conftest.err conftest.$ac_objext \
Chris@10 11934 conftest$ac_exeext conftest.$ac_ext
Chris@10 11935 LDFLAGS=$save_LDFLAGS
Chris@10 11936 libdir=$save_libdir
Chris@10 11937
Chris@10 11938 fi
Chris@10 11939
Chris@10 11940 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Chris@10 11941
Chris@10 11942 # This implies no fast_install, which is unacceptable.
Chris@10 11943 # Some rework will be needed to allow for fast_install
Chris@10 11944 # before this can be enabled.
Chris@10 11945 hardcode_into_libs=yes
Chris@10 11946
Chris@10 11947 # Append ld.so.conf contents to the search path
Chris@10 11948 if test -f /etc/ld.so.conf; then
Chris@10 11949 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@10 11950 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
Chris@10 11951 fi
Chris@10 11952
Chris@10 11953 # We used to test for /lib/ld.so.1 and disable shared libraries on
Chris@10 11954 # powerpc, because MkLinux only supported shared libraries with the
Chris@10 11955 # GNU dynamic linker. Since this was broken with cross compilers,
Chris@10 11956 # most powerpc-linux boxes support dynamic linking these days and
Chris@10 11957 # people can always --disable-shared, the test was removed, and we
Chris@10 11958 # assume the GNU/Linux dynamic linker is in use.
Chris@10 11959 dynamic_linker='GNU/Linux ld.so'
Chris@10 11960 ;;
Chris@10 11961
Chris@10 11962 netbsdelf*-gnu)
Chris@10 11963 version_type=linux
Chris@10 11964 need_lib_prefix=no
Chris@10 11965 need_version=no
Chris@10 11966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@10 11967 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 11968 shlibpath_var=LD_LIBRARY_PATH
Chris@10 11969 shlibpath_overrides_runpath=no
Chris@10 11970 hardcode_into_libs=yes
Chris@10 11971 dynamic_linker='NetBSD ld.elf_so'
Chris@10 11972 ;;
Chris@10 11973
Chris@10 11974 netbsd*)
Chris@10 11975 version_type=sunos
Chris@10 11976 need_lib_prefix=no
Chris@10 11977 need_version=no
Chris@10 11978 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@10 11979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@10 11980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@10 11981 dynamic_linker='NetBSD (a.out) ld.so'
Chris@10 11982 else
Chris@10 11983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@10 11984 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 11985 dynamic_linker='NetBSD ld.elf_so'
Chris@10 11986 fi
Chris@10 11987 shlibpath_var=LD_LIBRARY_PATH
Chris@10 11988 shlibpath_overrides_runpath=yes
Chris@10 11989 hardcode_into_libs=yes
Chris@10 11990 ;;
Chris@10 11991
Chris@10 11992 newsos6)
Chris@10 11993 version_type=linux # correct to gnu/linux during the next big refactor
Chris@10 11994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@10 11995 shlibpath_var=LD_LIBRARY_PATH
Chris@10 11996 shlibpath_overrides_runpath=yes
Chris@10 11997 ;;
Chris@10 11998
Chris@10 11999 *nto* | *qnx*)
Chris@10 12000 version_type=qnx
Chris@10 12001 need_lib_prefix=no
Chris@10 12002 need_version=no
Chris@10 12003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@10 12004 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 12005 shlibpath_var=LD_LIBRARY_PATH
Chris@10 12006 shlibpath_overrides_runpath=no
Chris@10 12007 hardcode_into_libs=yes
Chris@10 12008 dynamic_linker='ldqnx.so'
Chris@10 12009 ;;
Chris@10 12010
Chris@10 12011 openbsd*)
Chris@10 12012 version_type=sunos
Chris@10 12013 sys_lib_dlsearch_path_spec="/usr/lib"
Chris@10 12014 need_lib_prefix=no
Chris@10 12015 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
Chris@10 12016 case $host_os in
Chris@10 12017 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
Chris@10 12018 *) need_version=no ;;
Chris@10 12019 esac
Chris@10 12020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@10 12021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@10 12022 shlibpath_var=LD_LIBRARY_PATH
Chris@10 12023 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@10 12024 case $host_os in
Chris@10 12025 openbsd2.[89] | openbsd2.[89].*)
Chris@10 12026 shlibpath_overrides_runpath=no
Chris@10 12027 ;;
Chris@10 12028 *)
Chris@10 12029 shlibpath_overrides_runpath=yes
Chris@10 12030 ;;
Chris@10 12031 esac
Chris@10 12032 else
Chris@10 12033 shlibpath_overrides_runpath=yes
Chris@10 12034 fi
Chris@10 12035 ;;
Chris@10 12036
Chris@10 12037 os2*)
Chris@10 12038 libname_spec='$name'
Chris@10 12039 shrext_cmds=".dll"
Chris@10 12040 need_lib_prefix=no
Chris@10 12041 library_names_spec='$libname${shared_ext} $libname.a'
Chris@10 12042 dynamic_linker='OS/2 ld.exe'
Chris@10 12043 shlibpath_var=LIBPATH
Chris@10 12044 ;;
Chris@10 12045
Chris@10 12046 osf3* | osf4* | osf5*)
Chris@10 12047 version_type=osf
Chris@10 12048 need_lib_prefix=no
Chris@10 12049 need_version=no
Chris@10 12050 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 12051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@10 12052 shlibpath_var=LD_LIBRARY_PATH
Chris@10 12053 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Chris@10 12054 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
Chris@10 12055 ;;
Chris@10 12056
Chris@10 12057 rdos*)
Chris@10 12058 dynamic_linker=no
Chris@10 12059 ;;
Chris@10 12060
Chris@10 12061 solaris*)
Chris@10 12062 version_type=linux # correct to gnu/linux during the next big refactor
Chris@10 12063 need_lib_prefix=no
Chris@10 12064 need_version=no
Chris@10 12065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@10 12066 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 12067 shlibpath_var=LD_LIBRARY_PATH
Chris@10 12068 shlibpath_overrides_runpath=yes
Chris@10 12069 hardcode_into_libs=yes
Chris@10 12070 # ldd complains unless libraries are executable
Chris@10 12071 postinstall_cmds='chmod +x $lib'
Chris@10 12072 ;;
Chris@10 12073
Chris@10 12074 sunos4*)
Chris@10 12075 version_type=sunos
Chris@10 12076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@10 12077 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
Chris@10 12078 shlibpath_var=LD_LIBRARY_PATH
Chris@10 12079 shlibpath_overrides_runpath=yes
Chris@10 12080 if test "$with_gnu_ld" = yes; then
Chris@10 12081 need_lib_prefix=no
Chris@10 12082 fi
Chris@10 12083 need_version=yes
Chris@10 12084 ;;
Chris@10 12085
Chris@10 12086 sysv4 | sysv4.3*)
Chris@10 12087 version_type=linux # correct to gnu/linux during the next big refactor
Chris@10 12088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@10 12089 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 12090 shlibpath_var=LD_LIBRARY_PATH
Chris@10 12091 case $host_vendor in
Chris@10 12092 sni)
Chris@10 12093 shlibpath_overrides_runpath=no
Chris@10 12094 need_lib_prefix=no
Chris@10 12095 runpath_var=LD_RUN_PATH
Chris@10 12096 ;;
Chris@10 12097 siemens)
Chris@10 12098 need_lib_prefix=no
Chris@10 12099 ;;
Chris@10 12100 motorola)
Chris@10 12101 need_lib_prefix=no
Chris@10 12102 need_version=no
Chris@10 12103 shlibpath_overrides_runpath=no
Chris@10 12104 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
Chris@10 12105 ;;
Chris@10 12106 esac
Chris@10 12107 ;;
Chris@10 12108
Chris@10 12109 sysv4*MP*)
Chris@10 12110 if test -d /usr/nec ;then
Chris@10 12111 version_type=linux # correct to gnu/linux during the next big refactor
Chris@10 12112 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
Chris@10 12113 soname_spec='$libname${shared_ext}.$major'
Chris@10 12114 shlibpath_var=LD_LIBRARY_PATH
Chris@10 12115 fi
Chris@10 12116 ;;
Chris@10 12117
Chris@10 12118 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Chris@10 12119 version_type=freebsd-elf
Chris@10 12120 need_lib_prefix=no
Chris@10 12121 need_version=no
Chris@10 12122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@10 12123 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 12124 shlibpath_var=LD_LIBRARY_PATH
Chris@10 12125 shlibpath_overrides_runpath=yes
Chris@10 12126 hardcode_into_libs=yes
Chris@10 12127 if test "$with_gnu_ld" = yes; then
Chris@10 12128 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Chris@10 12129 else
Chris@10 12130 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Chris@10 12131 case $host_os in
Chris@10 12132 sco3.2v5*)
Chris@10 12133 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
Chris@10 12134 ;;
Chris@10 12135 esac
Chris@10 12136 fi
Chris@10 12137 sys_lib_dlsearch_path_spec='/usr/lib'
Chris@10 12138 ;;
Chris@10 12139
Chris@10 12140 tpf*)
Chris@10 12141 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Chris@10 12142 version_type=linux # correct to gnu/linux during the next big refactor
Chris@10 12143 need_lib_prefix=no
Chris@10 12144 need_version=no
Chris@10 12145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@10 12146 shlibpath_var=LD_LIBRARY_PATH
Chris@10 12147 shlibpath_overrides_runpath=no
Chris@10 12148 hardcode_into_libs=yes
Chris@10 12149 ;;
Chris@10 12150
Chris@10 12151 uts4*)
Chris@10 12152 version_type=linux # correct to gnu/linux during the next big refactor
Chris@10 12153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@10 12154 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 12155 shlibpath_var=LD_LIBRARY_PATH
Chris@10 12156 ;;
Chris@10 12157
Chris@10 12158 *)
Chris@10 12159 dynamic_linker=no
Chris@10 12160 ;;
Chris@10 12161 esac
Chris@10 12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Chris@10 12163 $as_echo "$dynamic_linker" >&6; }
Chris@10 12164 test "$dynamic_linker" = no && can_build_shared=no
Chris@10 12165
Chris@10 12166 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Chris@10 12167 if test "$GCC" = yes; then
Chris@10 12168 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
Chris@10 12169 fi
Chris@10 12170
Chris@10 12171 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
Chris@10 12172 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
Chris@10 12173 fi
Chris@10 12174 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
Chris@10 12175 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
Chris@10 12176 fi
Chris@10 12177
Chris@10 12178
Chris@10 12179
Chris@10 12180
Chris@10 12181
Chris@10 12182
Chris@10 12183
Chris@10 12184
Chris@10 12185
Chris@10 12186
Chris@10 12187
Chris@10 12188
Chris@10 12189
Chris@10 12190
Chris@10 12191
Chris@10 12192
Chris@10 12193
Chris@10 12194
Chris@10 12195
Chris@10 12196
Chris@10 12197
Chris@10 12198
Chris@10 12199
Chris@10 12200
Chris@10 12201
Chris@10 12202
Chris@10 12203
Chris@10 12204
Chris@10 12205
Chris@10 12206
Chris@10 12207
Chris@10 12208
Chris@10 12209
Chris@10 12210
Chris@10 12211
Chris@10 12212
Chris@10 12213
Chris@10 12214
Chris@10 12215
Chris@10 12216
Chris@10 12217
Chris@10 12218
Chris@10 12219
Chris@10 12220
Chris@10 12221
Chris@10 12222
Chris@10 12223
Chris@10 12224
Chris@10 12225
Chris@10 12226
Chris@10 12227
Chris@10 12228
Chris@10 12229
Chris@10 12230
Chris@10 12231
Chris@10 12232
Chris@10 12233
Chris@10 12234
Chris@10 12235
Chris@10 12236
Chris@10 12237
Chris@10 12238
Chris@10 12239
Chris@10 12240
Chris@10 12241
Chris@10 12242
Chris@10 12243
Chris@10 12244
Chris@10 12245
Chris@10 12246
Chris@10 12247
Chris@10 12248
Chris@10 12249
Chris@10 12250
Chris@10 12251
Chris@10 12252
Chris@10 12253
Chris@10 12254
Chris@10 12255
Chris@10 12256
Chris@10 12257
Chris@10 12258
Chris@10 12259
Chris@10 12260
Chris@10 12261
Chris@10 12262
Chris@10 12263
Chris@10 12264
Chris@10 12265
Chris@10 12266
Chris@10 12267
Chris@10 12268
Chris@10 12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Chris@10 12270 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Chris@10 12271 hardcode_action=
Chris@10 12272 if test -n "$hardcode_libdir_flag_spec" ||
Chris@10 12273 test -n "$runpath_var" ||
Chris@10 12274 test "X$hardcode_automatic" = "Xyes" ; then
Chris@10 12275
Chris@10 12276 # We can hardcode non-existent directories.
Chris@10 12277 if test "$hardcode_direct" != no &&
Chris@10 12278 # If the only mechanism to avoid hardcoding is shlibpath_var, we
Chris@10 12279 # have to relink, otherwise we might link with an installed library
Chris@10 12280 # when we should be linking with a yet-to-be-installed one
Chris@10 12281 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
Chris@10 12282 test "$hardcode_minus_L" != no; then
Chris@10 12283 # Linking always hardcodes the temporary library directory.
Chris@10 12284 hardcode_action=relink
Chris@10 12285 else
Chris@10 12286 # We can link without hardcoding, and we can hardcode nonexisting dirs.
Chris@10 12287 hardcode_action=immediate
Chris@10 12288 fi
Chris@10 12289 else
Chris@10 12290 # We cannot hardcode anything, or else we can only hardcode existing
Chris@10 12291 # directories.
Chris@10 12292 hardcode_action=unsupported
Chris@10 12293 fi
Chris@10 12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
Chris@10 12295 $as_echo "$hardcode_action" >&6; }
Chris@10 12296
Chris@10 12297 if test "$hardcode_action" = relink ||
Chris@10 12298 test "$inherit_rpath" = yes; then
Chris@10 12299 # Fast installation is not supported
Chris@10 12300 enable_fast_install=no
Chris@10 12301 elif test "$shlibpath_overrides_runpath" = yes ||
Chris@10 12302 test "$enable_shared" = no; then
Chris@10 12303 # Fast installation is not necessary
Chris@10 12304 enable_fast_install=needless
Chris@10 12305 fi
Chris@10 12306
Chris@10 12307
Chris@10 12308
Chris@10 12309
Chris@10 12310
Chris@10 12311
Chris@10 12312 if test "x$enable_dlopen" != xyes; then
Chris@10 12313 enable_dlopen=unknown
Chris@10 12314 enable_dlopen_self=unknown
Chris@10 12315 enable_dlopen_self_static=unknown
Chris@10 12316 else
Chris@10 12317 lt_cv_dlopen=no
Chris@10 12318 lt_cv_dlopen_libs=
Chris@10 12319
Chris@10 12320 case $host_os in
Chris@10 12321 beos*)
Chris@10 12322 lt_cv_dlopen="load_add_on"
Chris@10 12323 lt_cv_dlopen_libs=
Chris@10 12324 lt_cv_dlopen_self=yes
Chris@10 12325 ;;
Chris@10 12326
Chris@10 12327 mingw* | pw32* | cegcc*)
Chris@10 12328 lt_cv_dlopen="LoadLibrary"
Chris@10 12329 lt_cv_dlopen_libs=
Chris@10 12330 ;;
Chris@10 12331
Chris@10 12332 cygwin*)
Chris@10 12333 lt_cv_dlopen="dlopen"
Chris@10 12334 lt_cv_dlopen_libs=
Chris@10 12335 ;;
Chris@10 12336
Chris@10 12337 darwin*)
Chris@10 12338 # if libdl is installed we need to link against it
Chris@10 12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Chris@10 12340 $as_echo_n "checking for dlopen in -ldl... " >&6; }
Chris@10 12341 if ${ac_cv_lib_dl_dlopen+:} false; then :
Chris@10 12342 $as_echo_n "(cached) " >&6
Chris@10 12343 else
Chris@10 12344 ac_check_lib_save_LIBS=$LIBS
Chris@10 12345 LIBS="-ldl $LIBS"
Chris@10 12346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 12347 /* end confdefs.h. */
Chris@10 12348
Chris@10 12349 /* Override any GCC internal prototype to avoid an error.
Chris@10 12350 Use char because int might match the return type of a GCC
Chris@10 12351 builtin and then its argument prototype would still apply. */
Chris@10 12352 #ifdef __cplusplus
Chris@10 12353 extern "C"
Chris@10 12354 #endif
Chris@10 12355 char dlopen ();
Chris@10 12356 int
Chris@10 12357 main ()
Chris@10 12358 {
Chris@10 12359 return dlopen ();
Chris@10 12360 ;
Chris@10 12361 return 0;
Chris@10 12362 }
Chris@10 12363 _ACEOF
Chris@10 12364 if ac_fn_c_try_link "$LINENO"; then :
Chris@10 12365 ac_cv_lib_dl_dlopen=yes
Chris@10 12366 else
Chris@10 12367 ac_cv_lib_dl_dlopen=no
Chris@10 12368 fi
Chris@10 12369 rm -f core conftest.err conftest.$ac_objext \
Chris@10 12370 conftest$ac_exeext conftest.$ac_ext
Chris@10 12371 LIBS=$ac_check_lib_save_LIBS
Chris@10 12372 fi
Chris@10 12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Chris@10 12374 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Chris@10 12375 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Chris@10 12376 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
Chris@10 12377 else
Chris@10 12378
Chris@10 12379 lt_cv_dlopen="dyld"
Chris@10 12380 lt_cv_dlopen_libs=
Chris@10 12381 lt_cv_dlopen_self=yes
Chris@10 12382
Chris@10 12383 fi
Chris@10 12384
Chris@10 12385 ;;
Chris@10 12386
Chris@10 12387 *)
Chris@10 12388 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
Chris@10 12389 if test "x$ac_cv_func_shl_load" = xyes; then :
Chris@10 12390 lt_cv_dlopen="shl_load"
Chris@10 12391 else
Chris@10 12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
Chris@10 12393 $as_echo_n "checking for shl_load in -ldld... " >&6; }
Chris@10 12394 if ${ac_cv_lib_dld_shl_load+:} false; then :
Chris@10 12395 $as_echo_n "(cached) " >&6
Chris@10 12396 else
Chris@10 12397 ac_check_lib_save_LIBS=$LIBS
Chris@10 12398 LIBS="-ldld $LIBS"
Chris@10 12399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 12400 /* end confdefs.h. */
Chris@10 12401
Chris@10 12402 /* Override any GCC internal prototype to avoid an error.
Chris@10 12403 Use char because int might match the return type of a GCC
Chris@10 12404 builtin and then its argument prototype would still apply. */
Chris@10 12405 #ifdef __cplusplus
Chris@10 12406 extern "C"
Chris@10 12407 #endif
Chris@10 12408 char shl_load ();
Chris@10 12409 int
Chris@10 12410 main ()
Chris@10 12411 {
Chris@10 12412 return shl_load ();
Chris@10 12413 ;
Chris@10 12414 return 0;
Chris@10 12415 }
Chris@10 12416 _ACEOF
Chris@10 12417 if ac_fn_c_try_link "$LINENO"; then :
Chris@10 12418 ac_cv_lib_dld_shl_load=yes
Chris@10 12419 else
Chris@10 12420 ac_cv_lib_dld_shl_load=no
Chris@10 12421 fi
Chris@10 12422 rm -f core conftest.err conftest.$ac_objext \
Chris@10 12423 conftest$ac_exeext conftest.$ac_ext
Chris@10 12424 LIBS=$ac_check_lib_save_LIBS
Chris@10 12425 fi
Chris@10 12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
Chris@10 12427 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Chris@10 12428 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Chris@10 12429 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
Chris@10 12430 else
Chris@10 12431 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
Chris@10 12432 if test "x$ac_cv_func_dlopen" = xyes; then :
Chris@10 12433 lt_cv_dlopen="dlopen"
Chris@10 12434 else
Chris@10 12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Chris@10 12436 $as_echo_n "checking for dlopen in -ldl... " >&6; }
Chris@10 12437 if ${ac_cv_lib_dl_dlopen+:} false; then :
Chris@10 12438 $as_echo_n "(cached) " >&6
Chris@10 12439 else
Chris@10 12440 ac_check_lib_save_LIBS=$LIBS
Chris@10 12441 LIBS="-ldl $LIBS"
Chris@10 12442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 12443 /* end confdefs.h. */
Chris@10 12444
Chris@10 12445 /* Override any GCC internal prototype to avoid an error.
Chris@10 12446 Use char because int might match the return type of a GCC
Chris@10 12447 builtin and then its argument prototype would still apply. */
Chris@10 12448 #ifdef __cplusplus
Chris@10 12449 extern "C"
Chris@10 12450 #endif
Chris@10 12451 char dlopen ();
Chris@10 12452 int
Chris@10 12453 main ()
Chris@10 12454 {
Chris@10 12455 return dlopen ();
Chris@10 12456 ;
Chris@10 12457 return 0;
Chris@10 12458 }
Chris@10 12459 _ACEOF
Chris@10 12460 if ac_fn_c_try_link "$LINENO"; then :
Chris@10 12461 ac_cv_lib_dl_dlopen=yes
Chris@10 12462 else
Chris@10 12463 ac_cv_lib_dl_dlopen=no
Chris@10 12464 fi
Chris@10 12465 rm -f core conftest.err conftest.$ac_objext \
Chris@10 12466 conftest$ac_exeext conftest.$ac_ext
Chris@10 12467 LIBS=$ac_check_lib_save_LIBS
Chris@10 12468 fi
Chris@10 12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Chris@10 12470 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Chris@10 12471 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Chris@10 12472 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
Chris@10 12473 else
Chris@10 12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
Chris@10 12475 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
Chris@10 12476 if ${ac_cv_lib_svld_dlopen+:} false; then :
Chris@10 12477 $as_echo_n "(cached) " >&6
Chris@10 12478 else
Chris@10 12479 ac_check_lib_save_LIBS=$LIBS
Chris@10 12480 LIBS="-lsvld $LIBS"
Chris@10 12481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 12482 /* end confdefs.h. */
Chris@10 12483
Chris@10 12484 /* Override any GCC internal prototype to avoid an error.
Chris@10 12485 Use char because int might match the return type of a GCC
Chris@10 12486 builtin and then its argument prototype would still apply. */
Chris@10 12487 #ifdef __cplusplus
Chris@10 12488 extern "C"
Chris@10 12489 #endif
Chris@10 12490 char dlopen ();
Chris@10 12491 int
Chris@10 12492 main ()
Chris@10 12493 {
Chris@10 12494 return dlopen ();
Chris@10 12495 ;
Chris@10 12496 return 0;
Chris@10 12497 }
Chris@10 12498 _ACEOF
Chris@10 12499 if ac_fn_c_try_link "$LINENO"; then :
Chris@10 12500 ac_cv_lib_svld_dlopen=yes
Chris@10 12501 else
Chris@10 12502 ac_cv_lib_svld_dlopen=no
Chris@10 12503 fi
Chris@10 12504 rm -f core conftest.err conftest.$ac_objext \
Chris@10 12505 conftest$ac_exeext conftest.$ac_ext
Chris@10 12506 LIBS=$ac_check_lib_save_LIBS
Chris@10 12507 fi
Chris@10 12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
Chris@10 12509 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Chris@10 12510 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Chris@10 12511 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
Chris@10 12512 else
Chris@10 12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
Chris@10 12514 $as_echo_n "checking for dld_link in -ldld... " >&6; }
Chris@10 12515 if ${ac_cv_lib_dld_dld_link+:} false; then :
Chris@10 12516 $as_echo_n "(cached) " >&6
Chris@10 12517 else
Chris@10 12518 ac_check_lib_save_LIBS=$LIBS
Chris@10 12519 LIBS="-ldld $LIBS"
Chris@10 12520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 12521 /* end confdefs.h. */
Chris@10 12522
Chris@10 12523 /* Override any GCC internal prototype to avoid an error.
Chris@10 12524 Use char because int might match the return type of a GCC
Chris@10 12525 builtin and then its argument prototype would still apply. */
Chris@10 12526 #ifdef __cplusplus
Chris@10 12527 extern "C"
Chris@10 12528 #endif
Chris@10 12529 char dld_link ();
Chris@10 12530 int
Chris@10 12531 main ()
Chris@10 12532 {
Chris@10 12533 return dld_link ();
Chris@10 12534 ;
Chris@10 12535 return 0;
Chris@10 12536 }
Chris@10 12537 _ACEOF
Chris@10 12538 if ac_fn_c_try_link "$LINENO"; then :
Chris@10 12539 ac_cv_lib_dld_dld_link=yes
Chris@10 12540 else
Chris@10 12541 ac_cv_lib_dld_dld_link=no
Chris@10 12542 fi
Chris@10 12543 rm -f core conftest.err conftest.$ac_objext \
Chris@10 12544 conftest$ac_exeext conftest.$ac_ext
Chris@10 12545 LIBS=$ac_check_lib_save_LIBS
Chris@10 12546 fi
Chris@10 12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
Chris@10 12548 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Chris@10 12549 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Chris@10 12550 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
Chris@10 12551 fi
Chris@10 12552
Chris@10 12553
Chris@10 12554 fi
Chris@10 12555
Chris@10 12556
Chris@10 12557 fi
Chris@10 12558
Chris@10 12559
Chris@10 12560 fi
Chris@10 12561
Chris@10 12562
Chris@10 12563 fi
Chris@10 12564
Chris@10 12565
Chris@10 12566 fi
Chris@10 12567
Chris@10 12568 ;;
Chris@10 12569 esac
Chris@10 12570
Chris@10 12571 if test "x$lt_cv_dlopen" != xno; then
Chris@10 12572 enable_dlopen=yes
Chris@10 12573 else
Chris@10 12574 enable_dlopen=no
Chris@10 12575 fi
Chris@10 12576
Chris@10 12577 case $lt_cv_dlopen in
Chris@10 12578 dlopen)
Chris@10 12579 save_CPPFLAGS="$CPPFLAGS"
Chris@10 12580 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Chris@10 12581
Chris@10 12582 save_LDFLAGS="$LDFLAGS"
Chris@10 12583 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Chris@10 12584
Chris@10 12585 save_LIBS="$LIBS"
Chris@10 12586 LIBS="$lt_cv_dlopen_libs $LIBS"
Chris@10 12587
Chris@10 12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
Chris@10 12589 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
Chris@10 12590 if ${lt_cv_dlopen_self+:} false; then :
Chris@10 12591 $as_echo_n "(cached) " >&6
Chris@10 12592 else
Chris@10 12593 if test "$cross_compiling" = yes; then :
Chris@10 12594 lt_cv_dlopen_self=cross
Chris@10 12595 else
Chris@10 12596 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Chris@10 12597 lt_status=$lt_dlunknown
Chris@10 12598 cat > conftest.$ac_ext <<_LT_EOF
Chris@10 12599 #line $LINENO "configure"
Chris@10 12600 #include "confdefs.h"
Chris@10 12601
Chris@10 12602 #if HAVE_DLFCN_H
Chris@10 12603 #include <dlfcn.h>
Chris@10 12604 #endif
Chris@10 12605
Chris@10 12606 #include <stdio.h>
Chris@10 12607
Chris@10 12608 #ifdef RTLD_GLOBAL
Chris@10 12609 # define LT_DLGLOBAL RTLD_GLOBAL
Chris@10 12610 #else
Chris@10 12611 # ifdef DL_GLOBAL
Chris@10 12612 # define LT_DLGLOBAL DL_GLOBAL
Chris@10 12613 # else
Chris@10 12614 # define LT_DLGLOBAL 0
Chris@10 12615 # endif
Chris@10 12616 #endif
Chris@10 12617
Chris@10 12618 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Chris@10 12619 find out it does not work in some platform. */
Chris@10 12620 #ifndef LT_DLLAZY_OR_NOW
Chris@10 12621 # ifdef RTLD_LAZY
Chris@10 12622 # define LT_DLLAZY_OR_NOW RTLD_LAZY
Chris@10 12623 # else
Chris@10 12624 # ifdef DL_LAZY
Chris@10 12625 # define LT_DLLAZY_OR_NOW DL_LAZY
Chris@10 12626 # else
Chris@10 12627 # ifdef RTLD_NOW
Chris@10 12628 # define LT_DLLAZY_OR_NOW RTLD_NOW
Chris@10 12629 # else
Chris@10 12630 # ifdef DL_NOW
Chris@10 12631 # define LT_DLLAZY_OR_NOW DL_NOW
Chris@10 12632 # else
Chris@10 12633 # define LT_DLLAZY_OR_NOW 0
Chris@10 12634 # endif
Chris@10 12635 # endif
Chris@10 12636 # endif
Chris@10 12637 # endif
Chris@10 12638 #endif
Chris@10 12639
Chris@10 12640 /* When -fvisbility=hidden is used, assume the code has been annotated
Chris@10 12641 correspondingly for the symbols needed. */
Chris@10 12642 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Chris@10 12643 int fnord () __attribute__((visibility("default")));
Chris@10 12644 #endif
Chris@10 12645
Chris@10 12646 int fnord () { return 42; }
Chris@10 12647 int main ()
Chris@10 12648 {
Chris@10 12649 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Chris@10 12650 int status = $lt_dlunknown;
Chris@10 12651
Chris@10 12652 if (self)
Chris@10 12653 {
Chris@10 12654 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Chris@10 12655 else
Chris@10 12656 {
Chris@10 12657 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Chris@10 12658 else puts (dlerror ());
Chris@10 12659 }
Chris@10 12660 /* dlclose (self); */
Chris@10 12661 }
Chris@10 12662 else
Chris@10 12663 puts (dlerror ());
Chris@10 12664
Chris@10 12665 return status;
Chris@10 12666 }
Chris@10 12667 _LT_EOF
Chris@10 12668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Chris@10 12669 (eval $ac_link) 2>&5
Chris@10 12670 ac_status=$?
Chris@10 12671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 12672 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Chris@10 12673 (./conftest; exit; ) >&5 2>/dev/null
Chris@10 12674 lt_status=$?
Chris@10 12675 case x$lt_status in
Chris@10 12676 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
Chris@10 12677 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Chris@10 12678 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
Chris@10 12679 esac
Chris@10 12680 else :
Chris@10 12681 # compilation failed
Chris@10 12682 lt_cv_dlopen_self=no
Chris@10 12683 fi
Chris@10 12684 fi
Chris@10 12685 rm -fr conftest*
Chris@10 12686
Chris@10 12687
Chris@10 12688 fi
Chris@10 12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
Chris@10 12690 $as_echo "$lt_cv_dlopen_self" >&6; }
Chris@10 12691
Chris@10 12692 if test "x$lt_cv_dlopen_self" = xyes; then
Chris@10 12693 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Chris@10 12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
Chris@10 12695 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Chris@10 12696 if ${lt_cv_dlopen_self_static+:} false; then :
Chris@10 12697 $as_echo_n "(cached) " >&6
Chris@10 12698 else
Chris@10 12699 if test "$cross_compiling" = yes; then :
Chris@10 12700 lt_cv_dlopen_self_static=cross
Chris@10 12701 else
Chris@10 12702 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Chris@10 12703 lt_status=$lt_dlunknown
Chris@10 12704 cat > conftest.$ac_ext <<_LT_EOF
Chris@10 12705 #line $LINENO "configure"
Chris@10 12706 #include "confdefs.h"
Chris@10 12707
Chris@10 12708 #if HAVE_DLFCN_H
Chris@10 12709 #include <dlfcn.h>
Chris@10 12710 #endif
Chris@10 12711
Chris@10 12712 #include <stdio.h>
Chris@10 12713
Chris@10 12714 #ifdef RTLD_GLOBAL
Chris@10 12715 # define LT_DLGLOBAL RTLD_GLOBAL
Chris@10 12716 #else
Chris@10 12717 # ifdef DL_GLOBAL
Chris@10 12718 # define LT_DLGLOBAL DL_GLOBAL
Chris@10 12719 # else
Chris@10 12720 # define LT_DLGLOBAL 0
Chris@10 12721 # endif
Chris@10 12722 #endif
Chris@10 12723
Chris@10 12724 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Chris@10 12725 find out it does not work in some platform. */
Chris@10 12726 #ifndef LT_DLLAZY_OR_NOW
Chris@10 12727 # ifdef RTLD_LAZY
Chris@10 12728 # define LT_DLLAZY_OR_NOW RTLD_LAZY
Chris@10 12729 # else
Chris@10 12730 # ifdef DL_LAZY
Chris@10 12731 # define LT_DLLAZY_OR_NOW DL_LAZY
Chris@10 12732 # else
Chris@10 12733 # ifdef RTLD_NOW
Chris@10 12734 # define LT_DLLAZY_OR_NOW RTLD_NOW
Chris@10 12735 # else
Chris@10 12736 # ifdef DL_NOW
Chris@10 12737 # define LT_DLLAZY_OR_NOW DL_NOW
Chris@10 12738 # else
Chris@10 12739 # define LT_DLLAZY_OR_NOW 0
Chris@10 12740 # endif
Chris@10 12741 # endif
Chris@10 12742 # endif
Chris@10 12743 # endif
Chris@10 12744 #endif
Chris@10 12745
Chris@10 12746 /* When -fvisbility=hidden is used, assume the code has been annotated
Chris@10 12747 correspondingly for the symbols needed. */
Chris@10 12748 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Chris@10 12749 int fnord () __attribute__((visibility("default")));
Chris@10 12750 #endif
Chris@10 12751
Chris@10 12752 int fnord () { return 42; }
Chris@10 12753 int main ()
Chris@10 12754 {
Chris@10 12755 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Chris@10 12756 int status = $lt_dlunknown;
Chris@10 12757
Chris@10 12758 if (self)
Chris@10 12759 {
Chris@10 12760 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Chris@10 12761 else
Chris@10 12762 {
Chris@10 12763 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Chris@10 12764 else puts (dlerror ());
Chris@10 12765 }
Chris@10 12766 /* dlclose (self); */
Chris@10 12767 }
Chris@10 12768 else
Chris@10 12769 puts (dlerror ());
Chris@10 12770
Chris@10 12771 return status;
Chris@10 12772 }
Chris@10 12773 _LT_EOF
Chris@10 12774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Chris@10 12775 (eval $ac_link) 2>&5
Chris@10 12776 ac_status=$?
Chris@10 12777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 12778 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Chris@10 12779 (./conftest; exit; ) >&5 2>/dev/null
Chris@10 12780 lt_status=$?
Chris@10 12781 case x$lt_status in
Chris@10 12782 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
Chris@10 12783 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Chris@10 12784 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
Chris@10 12785 esac
Chris@10 12786 else :
Chris@10 12787 # compilation failed
Chris@10 12788 lt_cv_dlopen_self_static=no
Chris@10 12789 fi
Chris@10 12790 fi
Chris@10 12791 rm -fr conftest*
Chris@10 12792
Chris@10 12793
Chris@10 12794 fi
Chris@10 12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
Chris@10 12796 $as_echo "$lt_cv_dlopen_self_static" >&6; }
Chris@10 12797 fi
Chris@10 12798
Chris@10 12799 CPPFLAGS="$save_CPPFLAGS"
Chris@10 12800 LDFLAGS="$save_LDFLAGS"
Chris@10 12801 LIBS="$save_LIBS"
Chris@10 12802 ;;
Chris@10 12803 esac
Chris@10 12804
Chris@10 12805 case $lt_cv_dlopen_self in
Chris@10 12806 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
Chris@10 12807 *) enable_dlopen_self=unknown ;;
Chris@10 12808 esac
Chris@10 12809
Chris@10 12810 case $lt_cv_dlopen_self_static in
Chris@10 12811 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
Chris@10 12812 *) enable_dlopen_self_static=unknown ;;
Chris@10 12813 esac
Chris@10 12814 fi
Chris@10 12815
Chris@10 12816
Chris@10 12817
Chris@10 12818
Chris@10 12819
Chris@10 12820
Chris@10 12821
Chris@10 12822
Chris@10 12823
Chris@10 12824
Chris@10 12825
Chris@10 12826
Chris@10 12827
Chris@10 12828
Chris@10 12829
Chris@10 12830
Chris@10 12831
Chris@10 12832 striplib=
Chris@10 12833 old_striplib=
Chris@10 12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
Chris@10 12835 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
Chris@10 12836 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
Chris@10 12837 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
Chris@10 12838 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Chris@10 12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@10 12840 $as_echo "yes" >&6; }
Chris@10 12841 else
Chris@10 12842 # FIXME - insert some real tests, host_os isn't really good enough
Chris@10 12843 case $host_os in
Chris@10 12844 darwin*)
Chris@10 12845 if test -n "$STRIP" ; then
Chris@10 12846 striplib="$STRIP -x"
Chris@10 12847 old_striplib="$STRIP -S"
Chris@10 12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@10 12849 $as_echo "yes" >&6; }
Chris@10 12850 else
Chris@10 12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 12852 $as_echo "no" >&6; }
Chris@10 12853 fi
Chris@10 12854 ;;
Chris@10 12855 *)
Chris@10 12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 12857 $as_echo "no" >&6; }
Chris@10 12858 ;;
Chris@10 12859 esac
Chris@10 12860 fi
Chris@10 12861
Chris@10 12862
Chris@10 12863
Chris@10 12864
Chris@10 12865
Chris@10 12866
Chris@10 12867
Chris@10 12868
Chris@10 12869
Chris@10 12870
Chris@10 12871
Chris@10 12872
Chris@10 12873 # Report which library types will actually be built
Chris@10 12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
Chris@10 12875 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
Chris@10 12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
Chris@10 12877 $as_echo "$can_build_shared" >&6; }
Chris@10 12878
Chris@10 12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
Chris@10 12880 $as_echo_n "checking whether to build shared libraries... " >&6; }
Chris@10 12881 test "$can_build_shared" = "no" && enable_shared=no
Chris@10 12882
Chris@10 12883 # On AIX, shared libraries and static libraries use the same namespace, and
Chris@10 12884 # are all built from PIC.
Chris@10 12885 case $host_os in
Chris@10 12886 aix3*)
Chris@10 12887 test "$enable_shared" = yes && enable_static=no
Chris@10 12888 if test -n "$RANLIB"; then
Chris@10 12889 archive_cmds="$archive_cmds~\$RANLIB \$lib"
Chris@10 12890 postinstall_cmds='$RANLIB $lib'
Chris@10 12891 fi
Chris@10 12892 ;;
Chris@10 12893
Chris@10 12894 aix[4-9]*)
Chris@10 12895 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
Chris@10 12896 test "$enable_shared" = yes && enable_static=no
Chris@10 12897 fi
Chris@10 12898 ;;
Chris@10 12899 esac
Chris@10 12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
Chris@10 12901 $as_echo "$enable_shared" >&6; }
Chris@10 12902
Chris@10 12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
Chris@10 12904 $as_echo_n "checking whether to build static libraries... " >&6; }
Chris@10 12905 # Make sure either enable_shared or enable_static is yes.
Chris@10 12906 test "$enable_shared" = yes || enable_static=yes
Chris@10 12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
Chris@10 12908 $as_echo "$enable_static" >&6; }
Chris@10 12909
Chris@10 12910
Chris@10 12911
Chris@10 12912
Chris@10 12913 fi
Chris@10 12914 ac_ext=c
Chris@10 12915 ac_cpp='$CPP $CPPFLAGS'
Chris@10 12916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@10 12917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 12918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@10 12919
Chris@10 12920 CC="$lt_save_CC"
Chris@10 12921
Chris@10 12922
Chris@10 12923
Chris@10 12924
Chris@10 12925
Chris@10 12926
Chris@10 12927
Chris@10 12928
Chris@10 12929
Chris@10 12930
Chris@10 12931
Chris@10 12932
Chris@10 12933
Chris@10 12934
Chris@10 12935
Chris@10 12936 ac_config_commands="$ac_config_commands libtool"
Chris@10 12937
Chris@10 12938
Chris@10 12939
Chris@10 12940
Chris@10 12941 # Only expand once:
Chris@10 12942
Chris@10 12943
Chris@10 12944
Chris@10 12945 # Extract the first word of "ocamlbuild", so it can be a program name with args.
Chris@10 12946 set dummy ocamlbuild; ac_word=$2
Chris@10 12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 12948 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 12949 if ${ac_cv_prog_OCAMLBUILD+:} false; then :
Chris@10 12950 $as_echo_n "(cached) " >&6
Chris@10 12951 else
Chris@10 12952 if test -n "$OCAMLBUILD"; then
Chris@10 12953 ac_cv_prog_OCAMLBUILD="$OCAMLBUILD" # Let the user override the test.
Chris@10 12954 else
Chris@10 12955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 12956 for as_dir in $PATH
Chris@10 12957 do
Chris@10 12958 IFS=$as_save_IFS
Chris@10 12959 test -z "$as_dir" && as_dir=.
Chris@10 12960 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 12961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 12962 ac_cv_prog_OCAMLBUILD="ocamlbuild"
Chris@10 12963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 12964 break 2
Chris@10 12965 fi
Chris@10 12966 done
Chris@10 12967 done
Chris@10 12968 IFS=$as_save_IFS
Chris@10 12969
Chris@10 12970 fi
Chris@10 12971 fi
Chris@10 12972 OCAMLBUILD=$ac_cv_prog_OCAMLBUILD
Chris@10 12973 if test -n "$OCAMLBUILD"; then
Chris@10 12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLBUILD" >&5
Chris@10 12975 $as_echo "$OCAMLBUILD" >&6; }
Chris@10 12976 else
Chris@10 12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 12978 $as_echo "no" >&6; }
Chris@10 12979 fi
Chris@10 12980
Chris@10 12981
Chris@10 12982
Chris@10 12983
Chris@10 12984 # Check whether --enable-mpi was given.
Chris@10 12985 if test "${enable_mpi+set}" = set; then :
Chris@10 12986 enableval=$enable_mpi; enable_mpi=$enableval
Chris@10 12987 else
Chris@10 12988 enable_mpi=no
Chris@10 12989 fi
Chris@10 12990
Chris@10 12991
Chris@10 12992 if test "$enable_mpi" = "yes"; then
Chris@10 12993 if test $PRECISION = q; then
Chris@10 12994 as_fn_error $? "quad precision is not supported in MPI" "$LINENO" 5
Chris@10 12995 fi
Chris@10 12996
Chris@10 12997
Chris@10 12998
Chris@10 12999
Chris@10 13000
Chris@10 13001 for ac_prog in mpicc hcc mpcc mpcc_r mpxlc cmpicc
Chris@10 13002 do
Chris@10 13003 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@10 13004 set dummy $ac_prog; ac_word=$2
Chris@10 13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 13006 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 13007 if ${ac_cv_prog_MPICC+:} false; then :
Chris@10 13008 $as_echo_n "(cached) " >&6
Chris@10 13009 else
Chris@10 13010 if test -n "$MPICC"; then
Chris@10 13011 ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
Chris@10 13012 else
Chris@10 13013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 13014 for as_dir in $PATH
Chris@10 13015 do
Chris@10 13016 IFS=$as_save_IFS
Chris@10 13017 test -z "$as_dir" && as_dir=.
Chris@10 13018 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 13019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 13020 ac_cv_prog_MPICC="$ac_prog"
Chris@10 13021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 13022 break 2
Chris@10 13023 fi
Chris@10 13024 done
Chris@10 13025 done
Chris@10 13026 IFS=$as_save_IFS
Chris@10 13027
Chris@10 13028 fi
Chris@10 13029 fi
Chris@10 13030 MPICC=$ac_cv_prog_MPICC
Chris@10 13031 if test -n "$MPICC"; then
Chris@10 13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
Chris@10 13033 $as_echo "$MPICC" >&6; }
Chris@10 13034 else
Chris@10 13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 13036 $as_echo "no" >&6; }
Chris@10 13037 fi
Chris@10 13038
Chris@10 13039
Chris@10 13040 test -n "$MPICC" && break
Chris@10 13041 done
Chris@10 13042 test -n "$MPICC" || MPICC="$CC"
Chris@10 13043
Chris@10 13044 acx_mpi_save_CC="$CC"
Chris@10 13045 CC="$MPICC"
Chris@10 13046
Chris@10 13047
Chris@10 13048
Chris@10 13049 if test x = x"$MPILIBS"; then
Chris@10 13050 ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
Chris@10 13051 if test "x$ac_cv_func_MPI_Init" = xyes; then :
Chris@10 13052 MPILIBS=" "
Chris@10 13053 fi
Chris@10 13054
Chris@10 13055 fi
Chris@10 13056 if test x = x"$MPILIBS"; then
Chris@10 13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
Chris@10 13058 $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
Chris@10 13059 if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
Chris@10 13060 $as_echo_n "(cached) " >&6
Chris@10 13061 else
Chris@10 13062 ac_check_lib_save_LIBS=$LIBS
Chris@10 13063 LIBS="-lmpi $LIBS"
Chris@10 13064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 13065 /* end confdefs.h. */
Chris@10 13066
Chris@10 13067 /* Override any GCC internal prototype to avoid an error.
Chris@10 13068 Use char because int might match the return type of a GCC
Chris@10 13069 builtin and then its argument prototype would still apply. */
Chris@10 13070 #ifdef __cplusplus
Chris@10 13071 extern "C"
Chris@10 13072 #endif
Chris@10 13073 char MPI_Init ();
Chris@10 13074 int
Chris@10 13075 main ()
Chris@10 13076 {
Chris@10 13077 return MPI_Init ();
Chris@10 13078 ;
Chris@10 13079 return 0;
Chris@10 13080 }
Chris@10 13081 _ACEOF
Chris@10 13082 if ac_fn_c_try_link "$LINENO"; then :
Chris@10 13083 ac_cv_lib_mpi_MPI_Init=yes
Chris@10 13084 else
Chris@10 13085 ac_cv_lib_mpi_MPI_Init=no
Chris@10 13086 fi
Chris@10 13087 rm -f core conftest.err conftest.$ac_objext \
Chris@10 13088 conftest$ac_exeext conftest.$ac_ext
Chris@10 13089 LIBS=$ac_check_lib_save_LIBS
Chris@10 13090 fi
Chris@10 13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
Chris@10 13092 $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
Chris@10 13093 if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
Chris@10 13094 MPILIBS="-lmpi"
Chris@10 13095 fi
Chris@10 13096
Chris@10 13097 fi
Chris@10 13098 if test x = x"$MPILIBS"; then
Chris@10 13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
Chris@10 13100 $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
Chris@10 13101 if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
Chris@10 13102 $as_echo_n "(cached) " >&6
Chris@10 13103 else
Chris@10 13104 ac_check_lib_save_LIBS=$LIBS
Chris@10 13105 LIBS="-lmpich $LIBS"
Chris@10 13106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 13107 /* end confdefs.h. */
Chris@10 13108
Chris@10 13109 /* Override any GCC internal prototype to avoid an error.
Chris@10 13110 Use char because int might match the return type of a GCC
Chris@10 13111 builtin and then its argument prototype would still apply. */
Chris@10 13112 #ifdef __cplusplus
Chris@10 13113 extern "C"
Chris@10 13114 #endif
Chris@10 13115 char MPI_Init ();
Chris@10 13116 int
Chris@10 13117 main ()
Chris@10 13118 {
Chris@10 13119 return MPI_Init ();
Chris@10 13120 ;
Chris@10 13121 return 0;
Chris@10 13122 }
Chris@10 13123 _ACEOF
Chris@10 13124 if ac_fn_c_try_link "$LINENO"; then :
Chris@10 13125 ac_cv_lib_mpich_MPI_Init=yes
Chris@10 13126 else
Chris@10 13127 ac_cv_lib_mpich_MPI_Init=no
Chris@10 13128 fi
Chris@10 13129 rm -f core conftest.err conftest.$ac_objext \
Chris@10 13130 conftest$ac_exeext conftest.$ac_ext
Chris@10 13131 LIBS=$ac_check_lib_save_LIBS
Chris@10 13132 fi
Chris@10 13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
Chris@10 13134 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
Chris@10 13135 if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
Chris@10 13136 MPILIBS="-lmpich"
Chris@10 13137 fi
Chris@10 13138
Chris@10 13139 fi
Chris@10 13140
Chris@10 13141 if test x != x"$MPILIBS"; then
Chris@10 13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
Chris@10 13143 $as_echo_n "checking for mpi.h... " >&6; }
Chris@10 13144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 13145 /* end confdefs.h. */
Chris@10 13146 #include <mpi.h>
Chris@10 13147 int
Chris@10 13148 main ()
Chris@10 13149 {
Chris@10 13150
Chris@10 13151 ;
Chris@10 13152 return 0;
Chris@10 13153 }
Chris@10 13154 _ACEOF
Chris@10 13155 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@10 13157 $as_echo "yes" >&6; }
Chris@10 13158 else
Chris@10 13159 MPILIBS=""
Chris@10 13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 13161 $as_echo "no" >&6; }
Chris@10 13162 fi
Chris@10 13163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 13164 fi
Chris@10 13165
Chris@10 13166 CC="$acx_mpi_save_CC"
Chris@10 13167
Chris@10 13168
Chris@10 13169
Chris@10 13170 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
Chris@10 13171 if test x = x"$MPILIBS"; then
Chris@10 13172 as_fn_error $? "could not find mpi library for --enable-mpi" "$LINENO" 5
Chris@10 13173 :
Chris@10 13174 else
Chris@10 13175
Chris@10 13176 $as_echo "#define HAVE_MPI 1" >>confdefs.h
Chris@10 13177
Chris@10 13178 :
Chris@10 13179 fi
Chris@10 13180
Chris@10 13181 # Extract the first word of "mpirun", so it can be a program name with args.
Chris@10 13182 set dummy mpirun; ac_word=$2
Chris@10 13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 13184 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 13185 if ${ac_cv_prog_MPIRUN+:} false; then :
Chris@10 13186 $as_echo_n "(cached) " >&6
Chris@10 13187 else
Chris@10 13188 if test -n "$MPIRUN"; then
Chris@10 13189 ac_cv_prog_MPIRUN="$MPIRUN" # Let the user override the test.
Chris@10 13190 else
Chris@10 13191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 13192 for as_dir in $PATH
Chris@10 13193 do
Chris@10 13194 IFS=$as_save_IFS
Chris@10 13195 test -z "$as_dir" && as_dir=.
Chris@10 13196 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 13197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 13198 ac_cv_prog_MPIRUN="mpirun"
Chris@10 13199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 13200 break 2
Chris@10 13201 fi
Chris@10 13202 done
Chris@10 13203 done
Chris@10 13204 IFS=$as_save_IFS
Chris@10 13205
Chris@10 13206 fi
Chris@10 13207 fi
Chris@10 13208 MPIRUN=$ac_cv_prog_MPIRUN
Chris@10 13209 if test -n "$MPIRUN"; then
Chris@10 13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIRUN" >&5
Chris@10 13211 $as_echo "$MPIRUN" >&6; }
Chris@10 13212 else
Chris@10 13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 13214 $as_echo "no" >&6; }
Chris@10 13215 fi
Chris@10 13216
Chris@10 13217
Chris@10 13218
Chris@10 13219
Chris@10 13220 save_CC=$CC
Chris@10 13221 CC=$MPICC
Chris@10 13222 # The cast to long int works around a bug in the HP C Compiler
Chris@10 13223 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@10 13224 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@10 13225 # This bug is HP SR number 8606223364.
Chris@10 13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of MPI_Fint" >&5
Chris@10 13227 $as_echo_n "checking size of MPI_Fint... " >&6; }
Chris@10 13228 if ${ac_cv_sizeof_MPI_Fint+:} false; then :
Chris@10 13229 $as_echo_n "(cached) " >&6
Chris@10 13230 else
Chris@10 13231 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (MPI_Fint))" "ac_cv_sizeof_MPI_Fint" "#include <mpi.h>
Chris@10 13232 "; then :
Chris@10 13233
Chris@10 13234 else
Chris@10 13235 if test "$ac_cv_type_MPI_Fint" = yes; then
Chris@10 13236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@10 13237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@10 13238 as_fn_error 77 "cannot compute sizeof (MPI_Fint)
Chris@10 13239 See \`config.log' for more details" "$LINENO" 5; }
Chris@10 13240 else
Chris@10 13241 ac_cv_sizeof_MPI_Fint=0
Chris@10 13242 fi
Chris@10 13243 fi
Chris@10 13244
Chris@10 13245 fi
Chris@10 13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_MPI_Fint" >&5
Chris@10 13247 $as_echo "$ac_cv_sizeof_MPI_Fint" >&6; }
Chris@10 13248
Chris@10 13249
Chris@10 13250
Chris@10 13251 cat >>confdefs.h <<_ACEOF
Chris@10 13252 #define SIZEOF_MPI_FINT $ac_cv_sizeof_MPI_Fint
Chris@10 13253 _ACEOF
Chris@10 13254
Chris@10 13255
Chris@10 13256 CC=$save_CC
Chris@10 13257 if test 0 = $ac_cv_sizeof_MPI_Fint; then
Chris@10 13258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sizeof(MPI_Fint) test failed" >&5
Chris@10 13259 $as_echo "$as_me: WARNING: sizeof(MPI_Fint) test failed" >&2;};
Chris@10 13260 # The cast to long int works around a bug in the HP C Compiler
Chris@10 13261 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@10 13262 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@10 13263 # This bug is HP SR number 8606223364.
Chris@10 13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Chris@10 13265 $as_echo_n "checking size of int... " >&6; }
Chris@10 13266 if ${ac_cv_sizeof_int+:} false; then :
Chris@10 13267 $as_echo_n "(cached) " >&6
Chris@10 13268 else
Chris@10 13269 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
Chris@10 13270
Chris@10 13271 else
Chris@10 13272 if test "$ac_cv_type_int" = yes; then
Chris@10 13273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@10 13274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@10 13275 as_fn_error 77 "cannot compute sizeof (int)
Chris@10 13276 See \`config.log' for more details" "$LINENO" 5; }
Chris@10 13277 else
Chris@10 13278 ac_cv_sizeof_int=0
Chris@10 13279 fi
Chris@10 13280 fi
Chris@10 13281
Chris@10 13282 fi
Chris@10 13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Chris@10 13284 $as_echo "$ac_cv_sizeof_int" >&6; }
Chris@10 13285
Chris@10 13286
Chris@10 13287
Chris@10 13288 cat >>confdefs.h <<_ACEOF
Chris@10 13289 #define SIZEOF_INT $ac_cv_sizeof_int
Chris@10 13290 _ACEOF
Chris@10 13291
Chris@10 13292
Chris@10 13293 if test 0 = $ac_cv_sizeof_int; then as_fn_error $? "sizeof(int) test failed" "$LINENO" 5; fi
Chris@10 13294 ac_cv_sizeof_MPI_Fint=$ac_cv_sizeof_int
Chris@10 13295 fi
Chris@10 13296 C_MPI_FINT=C_INT`expr $ac_cv_sizeof_MPI_Fint \* 8`_T
Chris@10 13297
Chris@10 13298 fi
Chris@10 13299 if test "$enable_mpi" = "yes"; then
Chris@10 13300 MPI_TRUE=
Chris@10 13301 MPI_FALSE='#'
Chris@10 13302 else
Chris@10 13303 MPI_TRUE='#'
Chris@10 13304 MPI_FALSE=
Chris@10 13305 fi
Chris@10 13306
Chris@10 13307
Chris@10 13308
Chris@10 13309
Chris@10 13310
Chris@10 13311
Chris@10 13312
Chris@10 13313
Chris@10 13314 # Try to determine "good" native compiler flags if none specified via CFLAGS
Chris@10 13315 if test "$ac_test_CFLAGS" != "set"; then
Chris@10 13316 CFLAGS=""
Chris@10 13317 case $ax_cv_c_compiler_vendor in
Chris@10 13318 dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
Chris@10 13319 ;;
Chris@10 13320
Chris@10 13321 sun) CFLAGS="-native -fast -xO5 -dalign"
Chris@10 13322 ;;
Chris@10 13323
Chris@10 13324 hp) CFLAGS="+Oall +Optrs_ansi +DSnative"
Chris@10 13325 ;;
Chris@10 13326
Chris@10 13327 ibm) xlc_opt="-qtune=auto"
Chris@10 13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
Chris@10 13329 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
Chris@10 13330 ax_save_FLAGS=$CFLAGS
Chris@10 13331 CFLAGS="$xlc_opt"
Chris@10 13332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 13333 /* end confdefs.h. */
Chris@10 13334
Chris@10 13335 int
Chris@10 13336 main ()
Chris@10 13337 {
Chris@10 13338
Chris@10 13339 ;
Chris@10 13340 return 0;
Chris@10 13341 }
Chris@10 13342 _ACEOF
Chris@10 13343 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 13344 eval `$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=yes
Chris@10 13345 else
Chris@10 13346 eval `$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=no
Chris@10 13347 fi
Chris@10 13348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 13349 CFLAGS=$ax_save_FLAGS
Chris@10 13350 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`
Chris@10 13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@10 13352 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@10 13353 if test "x$ax_check_compiler_flags" = xyes; then
Chris@10 13354 CFLAGS="-O3 -qansialias -w $xlc_opt"
Chris@10 13355 else
Chris@10 13356 CFLAGS="-O3 -qansialias -w"
Chris@10 13357 echo "******************************************************"
Chris@10 13358 echo "* You seem to have the IBM C compiler. It is *"
Chris@10 13359 echo "* recommended for best performance that you use: *"
Chris@10 13360 echo "* *"
Chris@10 13361 echo "* CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
Chris@10 13362 echo "* ^^^ ^^^ *"
Chris@10 13363 echo "* where xxx is pwr2, pwr3, 604, or whatever kind of *"
Chris@10 13364 echo "* CPU you have. (Set the CFLAGS environment var. *"
Chris@10 13365 echo "* and re-run configure.) For more info, man cc. *"
Chris@10 13366 echo "******************************************************"
Chris@10 13367 fi
Chris@10 13368
Chris@10 13369 ;;
Chris@10 13370
Chris@10 13371 intel) CFLAGS="-O3"
Chris@10 13372 # Intel seems to have changed the spelling of this flag recently
Chris@10 13373 icc_ansi_alias="unknown"
Chris@10 13374 for flag in -ansi-alias -ansi_alias; do
Chris@10 13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
Chris@10 13376 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
Chris@10 13377 ax_save_FLAGS=$CFLAGS
Chris@10 13378 CFLAGS="$flag"
Chris@10 13379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 13380 /* end confdefs.h. */
Chris@10 13381
Chris@10 13382 int
Chris@10 13383 main ()
Chris@10 13384 {
Chris@10 13385
Chris@10 13386 ;
Chris@10 13387 return 0;
Chris@10 13388 }
Chris@10 13389 _ACEOF
Chris@10 13390 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 13391 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=yes
Chris@10 13392 else
Chris@10 13393 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=no
Chris@10 13394 fi
Chris@10 13395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 13396 CFLAGS=$ax_save_FLAGS
Chris@10 13397 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`
Chris@10 13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@10 13399 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@10 13400 if test "x$ax_check_compiler_flags" = xyes; then
Chris@10 13401 icc_ansi_alias=$flag; break
Chris@10 13402 else
Chris@10 13403 :
Chris@10 13404 fi
Chris@10 13405
Chris@10 13406 done
Chris@10 13407 if test "x$icc_ansi_alias" != xunknown; then
Chris@10 13408 CFLAGS="$CFLAGS $icc_ansi_alias"
Chris@10 13409 fi
Chris@10 13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
Chris@10 13411 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
Chris@10 13412 if ${ax_cv_c_flags__malign_double+:} false; then :
Chris@10 13413 $as_echo_n "(cached) " >&6
Chris@10 13414 else
Chris@10 13415
Chris@10 13416 ax_save_FLAGS=$CFLAGS
Chris@10 13417 CFLAGS="-malign-double"
Chris@10 13418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 13419 /* end confdefs.h. */
Chris@10 13420
Chris@10 13421 int
Chris@10 13422 main ()
Chris@10 13423 {
Chris@10 13424
Chris@10 13425 ;
Chris@10 13426 return 0;
Chris@10 13427 }
Chris@10 13428 _ACEOF
Chris@10 13429 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 13430 ax_cv_c_flags__malign_double=yes
Chris@10 13431 else
Chris@10 13432 ax_cv_c_flags__malign_double=no
Chris@10 13433 fi
Chris@10 13434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 13435 CFLAGS=$ax_save_FLAGS
Chris@10 13436 fi
Chris@10 13437
Chris@10 13438 eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double
Chris@10 13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@10 13440 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@10 13441 if test "x$ax_check_compiler_flags" = xyes; then
Chris@10 13442 CFLAGS="$CFLAGS -malign-double"
Chris@10 13443 else
Chris@10 13444 :
Chris@10 13445 fi
Chris@10 13446
Chris@10 13447 # We used to check for architecture flags here, e.g. -xHost etc.,
Chris@10 13448 # but these flags are problematic. On icc-12.0.0, "-mavx -xHost"
Chris@10 13449 # overrides -mavx with -xHost, generating SSE2 code instead of AVX
Chris@10 13450 # code. ICC does not seem to support -mtune=host or equivalent
Chris@10 13451 # non-ABI changing flag.
Chris@10 13452 ;;
Chris@10 13453
Chris@10 13454 gnu)
Chris@10 13455 # Default optimization flags for gcc on all systems.
Chris@10 13456 # Somehow -O3 does not imply -fomit-frame-pointer on ia32
Chris@10 13457 CFLAGS="-O3 -fomit-frame-pointer"
Chris@10 13458
Chris@10 13459 # tune for the host by default
Chris@10 13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mtune=native" >&5
Chris@10 13461 $as_echo_n "checking whether C compiler accepts -mtune=native... " >&6; }
Chris@10 13462 if ${ax_cv_c_flags__mtune_native+:} false; then :
Chris@10 13463 $as_echo_n "(cached) " >&6
Chris@10 13464 else
Chris@10 13465
Chris@10 13466 ax_save_FLAGS=$CFLAGS
Chris@10 13467 CFLAGS="-mtune=native"
Chris@10 13468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 13469 /* end confdefs.h. */
Chris@10 13470
Chris@10 13471 int
Chris@10 13472 main ()
Chris@10 13473 {
Chris@10 13474
Chris@10 13475 ;
Chris@10 13476 return 0;
Chris@10 13477 }
Chris@10 13478 _ACEOF
Chris@10 13479 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 13480 ax_cv_c_flags__mtune_native=yes
Chris@10 13481 else
Chris@10 13482 ax_cv_c_flags__mtune_native=no
Chris@10 13483 fi
Chris@10 13484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 13485 CFLAGS=$ax_save_FLAGS
Chris@10 13486 fi
Chris@10 13487
Chris@10 13488 eval ax_check_compiler_flags=$ax_cv_c_flags__mtune_native
Chris@10 13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@10 13490 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@10 13491 if test "x$ax_check_compiler_flags" = xyes; then
Chris@10 13492 CFLAGS="$CFLAGS -mtune=native"
Chris@10 13493 else
Chris@10 13494 :
Chris@10 13495 fi
Chris@10 13496
Chris@10 13497
Chris@10 13498 # -malign-double for x86 systems
Chris@10 13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
Chris@10 13500 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
Chris@10 13501 if ${ax_cv_c_flags__malign_double+:} false; then :
Chris@10 13502 $as_echo_n "(cached) " >&6
Chris@10 13503 else
Chris@10 13504
Chris@10 13505 ax_save_FLAGS=$CFLAGS
Chris@10 13506 CFLAGS="-malign-double"
Chris@10 13507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 13508 /* end confdefs.h. */
Chris@10 13509
Chris@10 13510 int
Chris@10 13511 main ()
Chris@10 13512 {
Chris@10 13513
Chris@10 13514 ;
Chris@10 13515 return 0;
Chris@10 13516 }
Chris@10 13517 _ACEOF
Chris@10 13518 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 13519 ax_cv_c_flags__malign_double=yes
Chris@10 13520 else
Chris@10 13521 ax_cv_c_flags__malign_double=no
Chris@10 13522 fi
Chris@10 13523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 13524 CFLAGS=$ax_save_FLAGS
Chris@10 13525 fi
Chris@10 13526
Chris@10 13527 eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double
Chris@10 13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@10 13529 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@10 13530 if test "x$ax_check_compiler_flags" = xyes; then
Chris@10 13531 CFLAGS="$CFLAGS -malign-double"
Chris@10 13532 else
Chris@10 13533 :
Chris@10 13534 fi
Chris@10 13535
Chris@10 13536
Chris@10 13537 # -fstrict-aliasing for gcc-2.95+
Chris@10 13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
Chris@10 13539 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
Chris@10 13540 if ${ax_cv_c_flags__fstrict_aliasing+:} false; then :
Chris@10 13541 $as_echo_n "(cached) " >&6
Chris@10 13542 else
Chris@10 13543
Chris@10 13544 ax_save_FLAGS=$CFLAGS
Chris@10 13545 CFLAGS="-fstrict-aliasing"
Chris@10 13546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 13547 /* end confdefs.h. */
Chris@10 13548
Chris@10 13549 int
Chris@10 13550 main ()
Chris@10 13551 {
Chris@10 13552
Chris@10 13553 ;
Chris@10 13554 return 0;
Chris@10 13555 }
Chris@10 13556 _ACEOF
Chris@10 13557 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 13558 ax_cv_c_flags__fstrict_aliasing=yes
Chris@10 13559 else
Chris@10 13560 ax_cv_c_flags__fstrict_aliasing=no
Chris@10 13561 fi
Chris@10 13562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 13563 CFLAGS=$ax_save_FLAGS
Chris@10 13564 fi
Chris@10 13565
Chris@10 13566 eval ax_check_compiler_flags=$ax_cv_c_flags__fstrict_aliasing
Chris@10 13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@10 13568 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@10 13569 if test "x$ax_check_compiler_flags" = xyes; then
Chris@10 13570 CFLAGS="$CFLAGS -fstrict-aliasing"
Chris@10 13571 else
Chris@10 13572 :
Chris@10 13573 fi
Chris@10 13574
Chris@10 13575
Chris@10 13576 # -fno-schedule-insns is pretty much required on all risc
Chris@10 13577 # processors.
Chris@10 13578 #
Chris@10 13579 # gcc performs one pass of instruction scheduling, then a pass of
Chris@10 13580 # register allocation, then another pass of instruction
Chris@10 13581 # scheduling. The first pass reorders instructions in a way that
Chris@10 13582 # is pretty much the worst possible for the purposes of register
Chris@10 13583 # allocation. We disable the first pass.
Chris@10 13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-schedule-insns" >&5
Chris@10 13585 $as_echo_n "checking whether C compiler accepts -fno-schedule-insns... " >&6; }
Chris@10 13586 if ${ax_cv_c_flags__fno_schedule_insns+:} false; then :
Chris@10 13587 $as_echo_n "(cached) " >&6
Chris@10 13588 else
Chris@10 13589
Chris@10 13590 ax_save_FLAGS=$CFLAGS
Chris@10 13591 CFLAGS="-fno-schedule-insns"
Chris@10 13592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 13593 /* end confdefs.h. */
Chris@10 13594
Chris@10 13595 int
Chris@10 13596 main ()
Chris@10 13597 {
Chris@10 13598
Chris@10 13599 ;
Chris@10 13600 return 0;
Chris@10 13601 }
Chris@10 13602 _ACEOF
Chris@10 13603 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 13604 ax_cv_c_flags__fno_schedule_insns=yes
Chris@10 13605 else
Chris@10 13606 ax_cv_c_flags__fno_schedule_insns=no
Chris@10 13607 fi
Chris@10 13608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 13609 CFLAGS=$ax_save_FLAGS
Chris@10 13610 fi
Chris@10 13611
Chris@10 13612 eval ax_check_compiler_flags=$ax_cv_c_flags__fno_schedule_insns
Chris@10 13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@10 13614 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@10 13615 if test "x$ax_check_compiler_flags" = xyes; then
Chris@10 13616 CFLAGS="$CFLAGS -fno-schedule-insns"
Chris@10 13617 else
Chris@10 13618 :
Chris@10 13619 fi
Chris@10 13620
Chris@10 13621
Chris@10 13622 # note that we enable "unsafe" fp optimization with other compilers, too
Chris@10 13623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
Chris@10 13624 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
Chris@10 13625 if ${ax_cv_c_flags__ffast_math+:} false; then :
Chris@10 13626 $as_echo_n "(cached) " >&6
Chris@10 13627 else
Chris@10 13628
Chris@10 13629 ax_save_FLAGS=$CFLAGS
Chris@10 13630 CFLAGS="-ffast-math"
Chris@10 13631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 13632 /* end confdefs.h. */
Chris@10 13633
Chris@10 13634 int
Chris@10 13635 main ()
Chris@10 13636 {
Chris@10 13637
Chris@10 13638 ;
Chris@10 13639 return 0;
Chris@10 13640 }
Chris@10 13641 _ACEOF
Chris@10 13642 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 13643 ax_cv_c_flags__ffast_math=yes
Chris@10 13644 else
Chris@10 13645 ax_cv_c_flags__ffast_math=no
Chris@10 13646 fi
Chris@10 13647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 13648 CFLAGS=$ax_save_FLAGS
Chris@10 13649 fi
Chris@10 13650
Chris@10 13651 eval ax_check_compiler_flags=$ax_cv_c_flags__ffast_math
Chris@10 13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@10 13653 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@10 13654 if test "x$ax_check_compiler_flags" = xyes; then
Chris@10 13655 CFLAGS="$CFLAGS -ffast-math"
Chris@10 13656 else
Chris@10 13657 :
Chris@10 13658 fi
Chris@10 13659
Chris@10 13660
Chris@10 13661 ;;
Chris@10 13662 esac
Chris@10 13663
Chris@10 13664 if test -z "$CFLAGS"; then
Chris@10 13665 echo ""
Chris@10 13666 echo "********************************************************"
Chris@10 13667 echo "* WARNING: Don't know the best CFLAGS for this system *"
Chris@10 13668 echo "* Use ./configure CFLAGS=... to specify your own flags *"
Chris@10 13669 echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
Chris@10 13670 echo "********************************************************"
Chris@10 13671 echo ""
Chris@10 13672 CFLAGS="-O3"
Chris@10 13673 fi
Chris@10 13674
Chris@10 13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
Chris@10 13676 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
Chris@10 13677 ax_save_FLAGS=$CFLAGS
Chris@10 13678 CFLAGS="$CFLAGS"
Chris@10 13679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 13680 /* end confdefs.h. */
Chris@10 13681
Chris@10 13682 int
Chris@10 13683 main ()
Chris@10 13684 {
Chris@10 13685
Chris@10 13686 ;
Chris@10 13687 return 0;
Chris@10 13688 }
Chris@10 13689 _ACEOF
Chris@10 13690 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 13691 eval `$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=yes
Chris@10 13692 else
Chris@10 13693 eval `$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=no
Chris@10 13694 fi
Chris@10 13695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 13696 CFLAGS=$ax_save_FLAGS
Chris@10 13697 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`
Chris@10 13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@10 13699 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@10 13700 if test "x$ax_check_compiler_flags" = xyes; then
Chris@10 13701 :
Chris@10 13702 else
Chris@10 13703
Chris@10 13704 echo ""
Chris@10 13705 echo "********************************************************"
Chris@10 13706 echo "* WARNING: The guessed CFLAGS don't seem to work with *"
Chris@10 13707 echo "* your compiler. *"
Chris@10 13708 echo "* Use ./configure CFLAGS=... to specify your own flags *"
Chris@10 13709 echo "********************************************************"
Chris@10 13710 echo ""
Chris@10 13711 CFLAGS=""
Chris@10 13712
Chris@10 13713 fi
Chris@10 13714
Chris@10 13715
Chris@10 13716 fi
Chris@10 13717
Chris@10 13718
Chris@10 13719 case "${ax_cv_c_compiler_vendor}" in
Chris@10 13720 intel) # Stop icc from defining __GNUC__, except on MacOS where this fails
Chris@10 13721 case "${host_os}" in
Chris@10 13722 *darwin*) ;; # icc -no-gcc fails to compile some system headers
Chris@10 13723 *)
Chris@10 13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -no-gcc" >&5
Chris@10 13725 $as_echo_n "checking whether C compiler accepts -no-gcc... " >&6; }
Chris@10 13726 if ${ax_cv_c_flags__no_gcc+:} false; then :
Chris@10 13727 $as_echo_n "(cached) " >&6
Chris@10 13728 else
Chris@10 13729
Chris@10 13730 ax_save_FLAGS=$CFLAGS
Chris@10 13731 CFLAGS="-no-gcc"
Chris@10 13732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 13733 /* end confdefs.h. */
Chris@10 13734
Chris@10 13735 int
Chris@10 13736 main ()
Chris@10 13737 {
Chris@10 13738
Chris@10 13739 ;
Chris@10 13740 return 0;
Chris@10 13741 }
Chris@10 13742 _ACEOF
Chris@10 13743 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 13744 ax_cv_c_flags__no_gcc=yes
Chris@10 13745 else
Chris@10 13746 ax_cv_c_flags__no_gcc=no
Chris@10 13747 fi
Chris@10 13748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 13749 CFLAGS=$ax_save_FLAGS
Chris@10 13750 fi
Chris@10 13751
Chris@10 13752 eval ax_check_compiler_flags=$ax_cv_c_flags__no_gcc
Chris@10 13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@10 13754 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@10 13755 if test "x$ax_check_compiler_flags" = xyes; then
Chris@10 13756 CC="$CC -no-gcc"
Chris@10 13757 else
Chris@10 13758 :
Chris@10 13759 fi
Chris@10 13760
Chris@10 13761 ;;
Chris@10 13762 esac
Chris@10 13763 ;;
Chris@10 13764
Chris@10 13765 hp) # must (sometimes) manually increase cpp limits to handle fftw3.h
Chris@10 13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wp,-H128000" >&5
Chris@10 13767 $as_echo_n "checking whether C compiler accepts -Wp,-H128000... " >&6; }
Chris@10 13768 if ${ax_cv_c_flags__Wp+:} false; then :
Chris@10 13769 $as_echo_n "(cached) " >&6
Chris@10 13770 else
Chris@10 13771
Chris@10 13772 ax_save_FLAGS=$CFLAGS
Chris@10 13773 CFLAGS="-Wp,-H128000"
Chris@10 13774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 13775 /* end confdefs.h. */
Chris@10 13776
Chris@10 13777 int
Chris@10 13778 main ()
Chris@10 13779 {
Chris@10 13780
Chris@10 13781 ;
Chris@10 13782 return 0;
Chris@10 13783 }
Chris@10 13784 _ACEOF
Chris@10 13785 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 13786 ax_cv_c_flags__Wp=yes
Chris@10 13787 else
Chris@10 13788 ax_cv_c_flags__Wp=no
Chris@10 13789 fi
Chris@10 13790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 13791 CFLAGS=$ax_save_FLAGS
Chris@10 13792 fi
Chris@10 13793
Chris@10 13794 eval ax_check_compiler_flags=$ax_cv_c_flags__Wp
Chris@10 13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@10 13796 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@10 13797 if test "x$ax_check_compiler_flags" = xyes; then
Chris@10 13798 CC="$CC -Wp,-H128000"
Chris@10 13799 else
Chris@10 13800 :
Chris@10 13801 fi
Chris@10 13802
Chris@10 13803 ;;
Chris@10 13804
Chris@10 13805 portland) # -Masmkeyword required for asm("") cycle counters
Chris@10 13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Masmkeyword" >&5
Chris@10 13807 $as_echo_n "checking whether C compiler accepts -Masmkeyword... " >&6; }
Chris@10 13808 if ${ax_cv_c_flags__Masmkeyword+:} false; then :
Chris@10 13809 $as_echo_n "(cached) " >&6
Chris@10 13810 else
Chris@10 13811
Chris@10 13812 ax_save_FLAGS=$CFLAGS
Chris@10 13813 CFLAGS="-Masmkeyword"
Chris@10 13814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 13815 /* end confdefs.h. */
Chris@10 13816
Chris@10 13817 int
Chris@10 13818 main ()
Chris@10 13819 {
Chris@10 13820
Chris@10 13821 ;
Chris@10 13822 return 0;
Chris@10 13823 }
Chris@10 13824 _ACEOF
Chris@10 13825 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 13826 ax_cv_c_flags__Masmkeyword=yes
Chris@10 13827 else
Chris@10 13828 ax_cv_c_flags__Masmkeyword=no
Chris@10 13829 fi
Chris@10 13830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 13831 CFLAGS=$ax_save_FLAGS
Chris@10 13832 fi
Chris@10 13833
Chris@10 13834 eval ax_check_compiler_flags=$ax_cv_c_flags__Masmkeyword
Chris@10 13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@10 13836 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@10 13837 if test "x$ax_check_compiler_flags" = xyes; then
Chris@10 13838 CC="$CC -Masmkeyword"
Chris@10 13839 else
Chris@10 13840 :
Chris@10 13841 fi
Chris@10 13842
Chris@10 13843 ;;
Chris@10 13844 esac
Chris@10 13845
Chris@10 13846 case "${ax_cv_c_compiler_vendor}" in
Chris@10 13847 gnu|intel)
Chris@10 13848 # SSE/SSE2
Chris@10 13849 if test "$have_sse2" = "yes" -a "x$SSE2_CFLAGS" = x; then
Chris@10 13850 if test "$PRECISION" = d; then flag=msse2; else flag=msse; fi
Chris@10 13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -$flag" >&5
Chris@10 13852 $as_echo_n "checking whether C compiler accepts -$flag... " >&6; }
Chris@10 13853 ax_save_FLAGS=$CFLAGS
Chris@10 13854 CFLAGS="-$flag"
Chris@10 13855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 13856 /* end confdefs.h. */
Chris@10 13857
Chris@10 13858 int
Chris@10 13859 main ()
Chris@10 13860 {
Chris@10 13861
Chris@10 13862 ;
Chris@10 13863 return 0;
Chris@10 13864 }
Chris@10 13865 _ACEOF
Chris@10 13866 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 13867 eval `$as_echo "ax_cv_c_flags_-$flag" | $as_tr_sh`=yes
Chris@10 13868 else
Chris@10 13869 eval `$as_echo "ax_cv_c_flags_-$flag" | $as_tr_sh`=no
Chris@10 13870 fi
Chris@10 13871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 13872 CFLAGS=$ax_save_FLAGS
Chris@10 13873 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_-$flag" | $as_tr_sh`
Chris@10 13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@10 13875 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@10 13876 if test "x$ax_check_compiler_flags" = xyes; then
Chris@10 13877 SSE2_CFLAGS="-$flag"
Chris@10 13878 else
Chris@10 13879 as_fn_error $? "Need a version of gcc with -$flag" "$LINENO" 5
Chris@10 13880 fi
Chris@10 13881
Chris@10 13882 fi
Chris@10 13883
Chris@10 13884 # AVX
Chris@10 13885 if test "$have_avx" = "yes" -a "x$AVX_CFLAGS" = x; then
Chris@10 13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5
Chris@10 13887 $as_echo_n "checking whether C compiler accepts -mavx... " >&6; }
Chris@10 13888 if ${ax_cv_c_flags__mavx+:} false; then :
Chris@10 13889 $as_echo_n "(cached) " >&6
Chris@10 13890 else
Chris@10 13891
Chris@10 13892 ax_save_FLAGS=$CFLAGS
Chris@10 13893 CFLAGS="-mavx"
Chris@10 13894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 13895 /* end confdefs.h. */
Chris@10 13896
Chris@10 13897 int
Chris@10 13898 main ()
Chris@10 13899 {
Chris@10 13900
Chris@10 13901 ;
Chris@10 13902 return 0;
Chris@10 13903 }
Chris@10 13904 _ACEOF
Chris@10 13905 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 13906 ax_cv_c_flags__mavx=yes
Chris@10 13907 else
Chris@10 13908 ax_cv_c_flags__mavx=no
Chris@10 13909 fi
Chris@10 13910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 13911 CFLAGS=$ax_save_FLAGS
Chris@10 13912 fi
Chris@10 13913
Chris@10 13914 eval ax_check_compiler_flags=$ax_cv_c_flags__mavx
Chris@10 13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@10 13916 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@10 13917 if test "x$ax_check_compiler_flags" = xyes; then
Chris@10 13918 AVX_CFLAGS="-mavx"
Chris@10 13919 else
Chris@10 13920 as_fn_error $? "Need a version of gcc with -mavx" "$LINENO" 5
Chris@10 13921 fi
Chris@10 13922
Chris@10 13923 fi
Chris@10 13924
Chris@10 13925 if test "$have_altivec" = "yes" -a "x$ALTIVEC_CFLAGS" = x; then
Chris@10 13926 # -DFAKE__VEC__ is a workaround because gcc-3.3 does not
Chris@10 13927 # #define __VEC__ with -maltivec.
Chris@10 13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -faltivec" >&5
Chris@10 13929 $as_echo_n "checking whether C compiler accepts -faltivec... " >&6; }
Chris@10 13930 if ${ax_cv_c_flags__faltivec+:} false; then :
Chris@10 13931 $as_echo_n "(cached) " >&6
Chris@10 13932 else
Chris@10 13933
Chris@10 13934 ax_save_FLAGS=$CFLAGS
Chris@10 13935 CFLAGS="-faltivec"
Chris@10 13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 13937 /* end confdefs.h. */
Chris@10 13938
Chris@10 13939 int
Chris@10 13940 main ()
Chris@10 13941 {
Chris@10 13942
Chris@10 13943 ;
Chris@10 13944 return 0;
Chris@10 13945 }
Chris@10 13946 _ACEOF
Chris@10 13947 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 13948 ax_cv_c_flags__faltivec=yes
Chris@10 13949 else
Chris@10 13950 ax_cv_c_flags__faltivec=no
Chris@10 13951 fi
Chris@10 13952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 13953 CFLAGS=$ax_save_FLAGS
Chris@10 13954 fi
Chris@10 13955
Chris@10 13956 eval ax_check_compiler_flags=$ax_cv_c_flags__faltivec
Chris@10 13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@10 13958 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@10 13959 if test "x$ax_check_compiler_flags" = xyes; then
Chris@10 13960 ALTIVEC_CFLAGS="-faltivec"
Chris@10 13961 else
Chris@10 13962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maltivec -mabi=altivec" >&5
Chris@10 13963 $as_echo_n "checking whether C compiler accepts -maltivec -mabi=altivec... " >&6; }
Chris@10 13964 if ${ax_cv_c_flags__maltivec__mabi_altivec+:} false; then :
Chris@10 13965 $as_echo_n "(cached) " >&6
Chris@10 13966 else
Chris@10 13967
Chris@10 13968 ax_save_FLAGS=$CFLAGS
Chris@10 13969 CFLAGS="-maltivec -mabi=altivec"
Chris@10 13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 13971 /* end confdefs.h. */
Chris@10 13972
Chris@10 13973 int
Chris@10 13974 main ()
Chris@10 13975 {
Chris@10 13976
Chris@10 13977 ;
Chris@10 13978 return 0;
Chris@10 13979 }
Chris@10 13980 _ACEOF
Chris@10 13981 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 13982 ax_cv_c_flags__maltivec__mabi_altivec=yes
Chris@10 13983 else
Chris@10 13984 ax_cv_c_flags__maltivec__mabi_altivec=no
Chris@10 13985 fi
Chris@10 13986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 13987 CFLAGS=$ax_save_FLAGS
Chris@10 13988 fi
Chris@10 13989
Chris@10 13990 eval ax_check_compiler_flags=$ax_cv_c_flags__maltivec__mabi_altivec
Chris@10 13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@10 13992 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@10 13993 if test "x$ax_check_compiler_flags" = xyes; then
Chris@10 13994 ALTIVEC_CFLAGS="-maltivec -mabi=altivec -DFAKE__VEC__"
Chris@10 13995 else
Chris@10 13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvec" >&5
Chris@10 13997 $as_echo_n "checking whether C compiler accepts -fvec... " >&6; }
Chris@10 13998 if ${ax_cv_c_flags__fvec+:} false; then :
Chris@10 13999 $as_echo_n "(cached) " >&6
Chris@10 14000 else
Chris@10 14001
Chris@10 14002 ax_save_FLAGS=$CFLAGS
Chris@10 14003 CFLAGS="-fvec"
Chris@10 14004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 14005 /* end confdefs.h. */
Chris@10 14006
Chris@10 14007 int
Chris@10 14008 main ()
Chris@10 14009 {
Chris@10 14010
Chris@10 14011 ;
Chris@10 14012 return 0;
Chris@10 14013 }
Chris@10 14014 _ACEOF
Chris@10 14015 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 14016 ax_cv_c_flags__fvec=yes
Chris@10 14017 else
Chris@10 14018 ax_cv_c_flags__fvec=no
Chris@10 14019 fi
Chris@10 14020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 14021 CFLAGS=$ax_save_FLAGS
Chris@10 14022 fi
Chris@10 14023
Chris@10 14024 eval ax_check_compiler_flags=$ax_cv_c_flags__fvec
Chris@10 14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@10 14026 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@10 14027 if test "x$ax_check_compiler_flags" = xyes; then
Chris@10 14028 ALTIVEC_CFLAGS="-fvec"
Chris@10 14029 else
Chris@10 14030 as_fn_error $? "Need a version of gcc with -maltivec" "$LINENO" 5
Chris@10 14031 fi
Chris@10 14032
Chris@10 14033 fi
Chris@10 14034
Chris@10 14035 fi
Chris@10 14036
Chris@10 14037 fi
Chris@10 14038
Chris@10 14039 if test "$have_neon" = "yes" -a "x$NEON_CFLAGS" = x; then
Chris@10 14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mfpu=neon" >&5
Chris@10 14041 $as_echo_n "checking whether C compiler accepts -mfpu=neon... " >&6; }
Chris@10 14042 if ${ax_cv_c_flags__mfpu_neon+:} false; then :
Chris@10 14043 $as_echo_n "(cached) " >&6
Chris@10 14044 else
Chris@10 14045
Chris@10 14046 ax_save_FLAGS=$CFLAGS
Chris@10 14047 CFLAGS="-mfpu=neon"
Chris@10 14048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 14049 /* end confdefs.h. */
Chris@10 14050
Chris@10 14051 int
Chris@10 14052 main ()
Chris@10 14053 {
Chris@10 14054
Chris@10 14055 ;
Chris@10 14056 return 0;
Chris@10 14057 }
Chris@10 14058 _ACEOF
Chris@10 14059 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 14060 ax_cv_c_flags__mfpu_neon=yes
Chris@10 14061 else
Chris@10 14062 ax_cv_c_flags__mfpu_neon=no
Chris@10 14063 fi
Chris@10 14064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 14065 CFLAGS=$ax_save_FLAGS
Chris@10 14066 fi
Chris@10 14067
Chris@10 14068 eval ax_check_compiler_flags=$ax_cv_c_flags__mfpu_neon
Chris@10 14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@10 14070 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@10 14071 if test "x$ax_check_compiler_flags" = xyes; then
Chris@10 14072 NEON_CFLAGS="-mfpu=neon"
Chris@10 14073 else
Chris@10 14074 as_fn_error $? "Need a version of gcc with -mfpu=neon" "$LINENO" 5
Chris@10 14075 fi
Chris@10 14076
Chris@10 14077 fi
Chris@10 14078
Chris@10 14079 ;;
Chris@10 14080 esac
Chris@10 14081
Chris@10 14082
Chris@10 14083
Chris@10 14084
Chris@10 14085
Chris@10 14086
Chris@10 14087 if test "$with_incoming_stack_boundary"x != "no"x; then
Chris@10 14088 case "${ax_cv_c_compiler_vendor}" in
Chris@10 14089 gnu)
Chris@10 14090 tentative_flags="-mincoming-stack-boundary=$with_incoming_stack_boundary";
Chris@10 14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $tentative_flags" >&5
Chris@10 14092 $as_echo_n "checking whether C compiler accepts $tentative_flags... " >&6; }
Chris@10 14093 ax_save_FLAGS=$CFLAGS
Chris@10 14094 CFLAGS="$tentative_flags"
Chris@10 14095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 14096 /* end confdefs.h. */
Chris@10 14097
Chris@10 14098 int
Chris@10 14099 main ()
Chris@10 14100 {
Chris@10 14101
Chris@10 14102 ;
Chris@10 14103 return 0;
Chris@10 14104 }
Chris@10 14105 _ACEOF
Chris@10 14106 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 14107 eval `$as_echo "ax_cv_c_flags_$tentative_flags" | $as_tr_sh`=yes
Chris@10 14108 else
Chris@10 14109 eval `$as_echo "ax_cv_c_flags_$tentative_flags" | $as_tr_sh`=no
Chris@10 14110 fi
Chris@10 14111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 14112 CFLAGS=$ax_save_FLAGS
Chris@10 14113 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$tentative_flags" | $as_tr_sh`
Chris@10 14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@10 14115 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@10 14116 if test "x$ax_check_compiler_flags" = xyes; then
Chris@10 14117 STACK_ALIGN_CFLAGS=$tentative_flags
Chris@10 14118 else
Chris@10 14119 :
Chris@10 14120 fi
Chris@10 14121
Chris@10 14122 ;;
Chris@10 14123 esac
Chris@10 14124 fi
Chris@10 14125
Chris@10 14126
Chris@10 14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Chris@10 14128 $as_echo_n "checking for ANSI C header files... " >&6; }
Chris@10 14129 if ${ac_cv_header_stdc+:} false; then :
Chris@10 14130 $as_echo_n "(cached) " >&6
Chris@10 14131 else
Chris@10 14132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 14133 /* end confdefs.h. */
Chris@10 14134 #include <stdlib.h>
Chris@10 14135 #include <stdarg.h>
Chris@10 14136 #include <string.h>
Chris@10 14137 #include <float.h>
Chris@10 14138
Chris@10 14139 int
Chris@10 14140 main ()
Chris@10 14141 {
Chris@10 14142
Chris@10 14143 ;
Chris@10 14144 return 0;
Chris@10 14145 }
Chris@10 14146 _ACEOF
Chris@10 14147 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 14148 ac_cv_header_stdc=yes
Chris@10 14149 else
Chris@10 14150 ac_cv_header_stdc=no
Chris@10 14151 fi
Chris@10 14152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 14153
Chris@10 14154 if test $ac_cv_header_stdc = yes; then
Chris@10 14155 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Chris@10 14156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 14157 /* end confdefs.h. */
Chris@10 14158 #include <string.h>
Chris@10 14159
Chris@10 14160 _ACEOF
Chris@10 14161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@10 14162 $EGREP "memchr" >/dev/null 2>&1; then :
Chris@10 14163
Chris@10 14164 else
Chris@10 14165 ac_cv_header_stdc=no
Chris@10 14166 fi
Chris@10 14167 rm -f conftest*
Chris@10 14168
Chris@10 14169 fi
Chris@10 14170
Chris@10 14171 if test $ac_cv_header_stdc = yes; then
Chris@10 14172 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Chris@10 14173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 14174 /* end confdefs.h. */
Chris@10 14175 #include <stdlib.h>
Chris@10 14176
Chris@10 14177 _ACEOF
Chris@10 14178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@10 14179 $EGREP "free" >/dev/null 2>&1; then :
Chris@10 14180
Chris@10 14181 else
Chris@10 14182 ac_cv_header_stdc=no
Chris@10 14183 fi
Chris@10 14184 rm -f conftest*
Chris@10 14185
Chris@10 14186 fi
Chris@10 14187
Chris@10 14188 if test $ac_cv_header_stdc = yes; then
Chris@10 14189 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Chris@10 14190 if test "$cross_compiling" = yes; then :
Chris@10 14191 :
Chris@10 14192 else
Chris@10 14193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 14194 /* end confdefs.h. */
Chris@10 14195 #include <ctype.h>
Chris@10 14196 #include <stdlib.h>
Chris@10 14197 #if ((' ' & 0x0FF) == 0x020)
Chris@10 14198 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
Chris@10 14199 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Chris@10 14200 #else
Chris@10 14201 # define ISLOWER(c) \
Chris@10 14202 (('a' <= (c) && (c) <= 'i') \
Chris@10 14203 || ('j' <= (c) && (c) <= 'r') \
Chris@10 14204 || ('s' <= (c) && (c) <= 'z'))
Chris@10 14205 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
Chris@10 14206 #endif
Chris@10 14207
Chris@10 14208 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Chris@10 14209 int
Chris@10 14210 main ()
Chris@10 14211 {
Chris@10 14212 int i;
Chris@10 14213 for (i = 0; i < 256; i++)
Chris@10 14214 if (XOR (islower (i), ISLOWER (i))
Chris@10 14215 || toupper (i) != TOUPPER (i))
Chris@10 14216 return 2;
Chris@10 14217 return 0;
Chris@10 14218 }
Chris@10 14219 _ACEOF
Chris@10 14220 if ac_fn_c_try_run "$LINENO"; then :
Chris@10 14221
Chris@10 14222 else
Chris@10 14223 ac_cv_header_stdc=no
Chris@10 14224 fi
Chris@10 14225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@10 14226 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@10 14227 fi
Chris@10 14228
Chris@10 14229 fi
Chris@10 14230 fi
Chris@10 14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Chris@10 14232 $as_echo "$ac_cv_header_stdc" >&6; }
Chris@10 14233 if test $ac_cv_header_stdc = yes; then
Chris@10 14234
Chris@10 14235 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
Chris@10 14236
Chris@10 14237 fi
Chris@10 14238
Chris@10 14239 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@10 14240 do :
Chris@10 14241 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Chris@10 14242 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Chris@10 14243 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@10 14244 cat >>confdefs.h <<_ACEOF
Chris@10 14245 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris@10 14246 _ACEOF
Chris@10 14247
Chris@10 14248 fi
Chris@10 14249
Chris@10 14250 done
Chris@10 14251
Chris@10 14252
Chris@10 14253 save_CFLAGS="$CFLAGS"
Chris@10 14254 save_CPPFLAGS="$CPPFLAGS"
Chris@10 14255 CFLAGS="$CFLAGS $ALTIVEC_CFLAGS"
Chris@10 14256 CPPFLAGS="$CPPFLAGS $ALTIVEC_CFLAGS"
Chris@10 14257 for ac_header in altivec.h
Chris@10 14258 do :
Chris@10 14259 ac_fn_c_check_header_mongrel "$LINENO" "altivec.h" "ac_cv_header_altivec_h" "$ac_includes_default"
Chris@10 14260 if test "x$ac_cv_header_altivec_h" = xyes; then :
Chris@10 14261 cat >>confdefs.h <<_ACEOF
Chris@10 14262 #define HAVE_ALTIVEC_H 1
Chris@10 14263 _ACEOF
Chris@10 14264
Chris@10 14265 fi
Chris@10 14266
Chris@10 14267 done
Chris@10 14268
Chris@10 14269 CFLAGS="$save_CFLAGS"
Chris@10 14270 CPPFLAGS="$save_CPPFLAGS"
Chris@10 14271
Chris@10 14272
Chris@10 14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Chris@10 14274 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Chris@10 14275 if ${ac_cv_c_const+:} false; then :
Chris@10 14276 $as_echo_n "(cached) " >&6
Chris@10 14277 else
Chris@10 14278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 14279 /* end confdefs.h. */
Chris@10 14280
Chris@10 14281 int
Chris@10 14282 main ()
Chris@10 14283 {
Chris@10 14284
Chris@10 14285 #ifndef __cplusplus
Chris@10 14286 /* Ultrix mips cc rejects this sort of thing. */
Chris@10 14287 typedef int charset[2];
Chris@10 14288 const charset cs = { 0, 0 };
Chris@10 14289 /* SunOS 4.1.1 cc rejects this. */
Chris@10 14290 char const *const *pcpcc;
Chris@10 14291 char **ppc;
Chris@10 14292 /* NEC SVR4.0.2 mips cc rejects this. */
Chris@10 14293 struct point {int x, y;};
Chris@10 14294 static struct point const zero = {0,0};
Chris@10 14295 /* AIX XL C 1.02.0.0 rejects this.
Chris@10 14296 It does not let you subtract one const X* pointer from another in
Chris@10 14297 an arm of an if-expression whose if-part is not a constant
Chris@10 14298 expression */
Chris@10 14299 const char *g = "string";
Chris@10 14300 pcpcc = &g + (g ? g-g : 0);
Chris@10 14301 /* HPUX 7.0 cc rejects these. */
Chris@10 14302 ++pcpcc;
Chris@10 14303 ppc = (char**) pcpcc;
Chris@10 14304 pcpcc = (char const *const *) ppc;
Chris@10 14305 { /* SCO 3.2v4 cc rejects this sort of thing. */
Chris@10 14306 char tx;
Chris@10 14307 char *t = &tx;
Chris@10 14308 char const *s = 0 ? (char *) 0 : (char const *) 0;
Chris@10 14309
Chris@10 14310 *t++ = 0;
Chris@10 14311 if (s) return 0;
Chris@10 14312 }
Chris@10 14313 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
Chris@10 14314 int x[] = {25, 17};
Chris@10 14315 const int *foo = &x[0];
Chris@10 14316 ++foo;
Chris@10 14317 }
Chris@10 14318 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
Chris@10 14319 typedef const int *iptr;
Chris@10 14320 iptr p = 0;
Chris@10 14321 ++p;
Chris@10 14322 }
Chris@10 14323 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Chris@10 14324 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
Chris@10 14325 struct s { int j; const int *ap[3]; } bx;
Chris@10 14326 struct s *b = &bx; b->j = 5;
Chris@10 14327 }
Chris@10 14328 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
Chris@10 14329 const int foo = 10;
Chris@10 14330 if (!foo) return 0;
Chris@10 14331 }
Chris@10 14332 return !cs[0] && !zero.x;
Chris@10 14333 #endif
Chris@10 14334
Chris@10 14335 ;
Chris@10 14336 return 0;
Chris@10 14337 }
Chris@10 14338 _ACEOF
Chris@10 14339 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 14340 ac_cv_c_const=yes
Chris@10 14341 else
Chris@10 14342 ac_cv_c_const=no
Chris@10 14343 fi
Chris@10 14344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 14345 fi
Chris@10 14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Chris@10 14347 $as_echo "$ac_cv_c_const" >&6; }
Chris@10 14348 if test $ac_cv_c_const = no; then
Chris@10 14349
Chris@10 14350 $as_echo "#define const /**/" >>confdefs.h
Chris@10 14351
Chris@10 14352 fi
Chris@10 14353
Chris@10 14354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Chris@10 14355 $as_echo_n "checking for inline... " >&6; }
Chris@10 14356 if ${ac_cv_c_inline+:} false; then :
Chris@10 14357 $as_echo_n "(cached) " >&6
Chris@10 14358 else
Chris@10 14359 ac_cv_c_inline=no
Chris@10 14360 for ac_kw in inline __inline__ __inline; do
Chris@10 14361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 14362 /* end confdefs.h. */
Chris@10 14363 #ifndef __cplusplus
Chris@10 14364 typedef int foo_t;
Chris@10 14365 static $ac_kw foo_t static_foo () {return 0; }
Chris@10 14366 $ac_kw foo_t foo () {return 0; }
Chris@10 14367 #endif
Chris@10 14368
Chris@10 14369 _ACEOF
Chris@10 14370 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 14371 ac_cv_c_inline=$ac_kw
Chris@10 14372 fi
Chris@10 14373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 14374 test "$ac_cv_c_inline" != no && break
Chris@10 14375 done
Chris@10 14376
Chris@10 14377 fi
Chris@10 14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Chris@10 14379 $as_echo "$ac_cv_c_inline" >&6; }
Chris@10 14380
Chris@10 14381 case $ac_cv_c_inline in
Chris@10 14382 inline | yes) ;;
Chris@10 14383 *)
Chris@10 14384 case $ac_cv_c_inline in
Chris@10 14385 no) ac_val=;;
Chris@10 14386 *) ac_val=$ac_cv_c_inline;;
Chris@10 14387 esac
Chris@10 14388 cat >>confdefs.h <<_ACEOF
Chris@10 14389 #ifndef __cplusplus
Chris@10 14390 #define inline $ac_val
Chris@10 14391 #endif
Chris@10 14392 _ACEOF
Chris@10 14393 ;;
Chris@10 14394 esac
Chris@10 14395
Chris@10 14396 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Chris@10 14397 if test "x$ac_cv_type_size_t" = xyes; then :
Chris@10 14398
Chris@10 14399 else
Chris@10 14400
Chris@10 14401 cat >>confdefs.h <<_ACEOF
Chris@10 14402 #define size_t unsigned int
Chris@10 14403 _ACEOF
Chris@10 14404
Chris@10 14405 fi
Chris@10 14406
Chris@10 14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
Chris@10 14408 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
Chris@10 14409 if ${ac_cv_header_time+:} false; then :
Chris@10 14410 $as_echo_n "(cached) " >&6
Chris@10 14411 else
Chris@10 14412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 14413 /* end confdefs.h. */
Chris@10 14414 #include <sys/types.h>
Chris@10 14415 #include <sys/time.h>
Chris@10 14416 #include <time.h>
Chris@10 14417
Chris@10 14418 int
Chris@10 14419 main ()
Chris@10 14420 {
Chris@10 14421 if ((struct tm *) 0)
Chris@10 14422 return 0;
Chris@10 14423 ;
Chris@10 14424 return 0;
Chris@10 14425 }
Chris@10 14426 _ACEOF
Chris@10 14427 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 14428 ac_cv_header_time=yes
Chris@10 14429 else
Chris@10 14430 ac_cv_header_time=no
Chris@10 14431 fi
Chris@10 14432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 14433 fi
Chris@10 14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
Chris@10 14435 $as_echo "$ac_cv_header_time" >&6; }
Chris@10 14436 if test $ac_cv_header_time = yes; then
Chris@10 14437
Chris@10 14438 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
Chris@10 14439
Chris@10 14440 fi
Chris@10 14441
Chris@10 14442 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
Chris@10 14443 if test "x$ac_cv_type_long_double" = xyes; then :
Chris@10 14444
Chris@10 14445 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
Chris@10 14446
Chris@10 14447 else
Chris@10 14448
Chris@10 14449 if test $PRECISION = l; then
Chris@10 14450 as_fn_error $? "long double is not a supported type with your compiler." "$LINENO" 5
Chris@10 14451 fi
Chris@10 14452
Chris@10 14453 fi
Chris@10 14454
Chris@10 14455 ac_fn_c_check_type "$LINENO" "hrtime_t" "ac_cv_type_hrtime_t" "
Chris@10 14456 #if HAVE_SYS_TIME_H
Chris@10 14457 #include <sys/time.h>
Chris@10 14458 #endif
Chris@10 14459
Chris@10 14460 "
Chris@10 14461 if test "x$ac_cv_type_hrtime_t" = xyes; then :
Chris@10 14462
Chris@10 14463 $as_echo "#define HAVE_HRTIME_T 1" >>confdefs.h
Chris@10 14464
Chris@10 14465 fi
Chris@10 14466
Chris@10 14467
Chris@10 14468 # The cast to long int works around a bug in the HP C Compiler
Chris@10 14469 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@10 14470 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@10 14471 # This bug is HP SR number 8606223364.
Chris@10 14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Chris@10 14473 $as_echo_n "checking size of int... " >&6; }
Chris@10 14474 if ${ac_cv_sizeof_int+:} false; then :
Chris@10 14475 $as_echo_n "(cached) " >&6
Chris@10 14476 else
Chris@10 14477 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
Chris@10 14478
Chris@10 14479 else
Chris@10 14480 if test "$ac_cv_type_int" = yes; then
Chris@10 14481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@10 14482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@10 14483 as_fn_error 77 "cannot compute sizeof (int)
Chris@10 14484 See \`config.log' for more details" "$LINENO" 5; }
Chris@10 14485 else
Chris@10 14486 ac_cv_sizeof_int=0
Chris@10 14487 fi
Chris@10 14488 fi
Chris@10 14489
Chris@10 14490 fi
Chris@10 14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Chris@10 14492 $as_echo "$ac_cv_sizeof_int" >&6; }
Chris@10 14493
Chris@10 14494
Chris@10 14495
Chris@10 14496 cat >>confdefs.h <<_ACEOF
Chris@10 14497 #define SIZEOF_INT $ac_cv_sizeof_int
Chris@10 14498 _ACEOF
Chris@10 14499
Chris@10 14500
Chris@10 14501 # The cast to long int works around a bug in the HP C Compiler
Chris@10 14502 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@10 14503 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@10 14504 # This bug is HP SR number 8606223364.
Chris@10 14505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
Chris@10 14506 $as_echo_n "checking size of unsigned int... " >&6; }
Chris@10 14507 if ${ac_cv_sizeof_unsigned_int+:} false; then :
Chris@10 14508 $as_echo_n "(cached) " >&6
Chris@10 14509 else
Chris@10 14510 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
Chris@10 14511
Chris@10 14512 else
Chris@10 14513 if test "$ac_cv_type_unsigned_int" = yes; then
Chris@10 14514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@10 14515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@10 14516 as_fn_error 77 "cannot compute sizeof (unsigned int)
Chris@10 14517 See \`config.log' for more details" "$LINENO" 5; }
Chris@10 14518 else
Chris@10 14519 ac_cv_sizeof_unsigned_int=0
Chris@10 14520 fi
Chris@10 14521 fi
Chris@10 14522
Chris@10 14523 fi
Chris@10 14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
Chris@10 14525 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
Chris@10 14526
Chris@10 14527
Chris@10 14528
Chris@10 14529 cat >>confdefs.h <<_ACEOF
Chris@10 14530 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
Chris@10 14531 _ACEOF
Chris@10 14532
Chris@10 14533
Chris@10 14534 # The cast to long int works around a bug in the HP C Compiler
Chris@10 14535 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@10 14536 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@10 14537 # This bug is HP SR number 8606223364.
Chris@10 14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Chris@10 14539 $as_echo_n "checking size of long... " >&6; }
Chris@10 14540 if ${ac_cv_sizeof_long+:} false; then :
Chris@10 14541 $as_echo_n "(cached) " >&6
Chris@10 14542 else
Chris@10 14543 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
Chris@10 14544
Chris@10 14545 else
Chris@10 14546 if test "$ac_cv_type_long" = yes; then
Chris@10 14547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@10 14548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@10 14549 as_fn_error 77 "cannot compute sizeof (long)
Chris@10 14550 See \`config.log' for more details" "$LINENO" 5; }
Chris@10 14551 else
Chris@10 14552 ac_cv_sizeof_long=0
Chris@10 14553 fi
Chris@10 14554 fi
Chris@10 14555
Chris@10 14556 fi
Chris@10 14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Chris@10 14558 $as_echo "$ac_cv_sizeof_long" >&6; }
Chris@10 14559
Chris@10 14560
Chris@10 14561
Chris@10 14562 cat >>confdefs.h <<_ACEOF
Chris@10 14563 #define SIZEOF_LONG $ac_cv_sizeof_long
Chris@10 14564 _ACEOF
Chris@10 14565
Chris@10 14566
Chris@10 14567 # The cast to long int works around a bug in the HP C Compiler
Chris@10 14568 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@10 14569 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@10 14570 # This bug is HP SR number 8606223364.
Chris@10 14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
Chris@10 14572 $as_echo_n "checking size of unsigned long... " >&6; }
Chris@10 14573 if ${ac_cv_sizeof_unsigned_long+:} false; then :
Chris@10 14574 $as_echo_n "(cached) " >&6
Chris@10 14575 else
Chris@10 14576 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
Chris@10 14577
Chris@10 14578 else
Chris@10 14579 if test "$ac_cv_type_unsigned_long" = yes; then
Chris@10 14580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@10 14581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@10 14582 as_fn_error 77 "cannot compute sizeof (unsigned long)
Chris@10 14583 See \`config.log' for more details" "$LINENO" 5; }
Chris@10 14584 else
Chris@10 14585 ac_cv_sizeof_unsigned_long=0
Chris@10 14586 fi
Chris@10 14587 fi
Chris@10 14588
Chris@10 14589 fi
Chris@10 14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
Chris@10 14591 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
Chris@10 14592
Chris@10 14593
Chris@10 14594
Chris@10 14595 cat >>confdefs.h <<_ACEOF
Chris@10 14596 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
Chris@10 14597 _ACEOF
Chris@10 14598
Chris@10 14599
Chris@10 14600 # The cast to long int works around a bug in the HP C Compiler
Chris@10 14601 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@10 14602 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@10 14603 # This bug is HP SR number 8606223364.
Chris@10 14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Chris@10 14605 $as_echo_n "checking size of long long... " >&6; }
Chris@10 14606 if ${ac_cv_sizeof_long_long+:} false; then :
Chris@10 14607 $as_echo_n "(cached) " >&6
Chris@10 14608 else
Chris@10 14609 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
Chris@10 14610
Chris@10 14611 else
Chris@10 14612 if test "$ac_cv_type_long_long" = yes; then
Chris@10 14613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@10 14614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@10 14615 as_fn_error 77 "cannot compute sizeof (long long)
Chris@10 14616 See \`config.log' for more details" "$LINENO" 5; }
Chris@10 14617 else
Chris@10 14618 ac_cv_sizeof_long_long=0
Chris@10 14619 fi
Chris@10 14620 fi
Chris@10 14621
Chris@10 14622 fi
Chris@10 14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Chris@10 14624 $as_echo "$ac_cv_sizeof_long_long" >&6; }
Chris@10 14625
Chris@10 14626
Chris@10 14627
Chris@10 14628 cat >>confdefs.h <<_ACEOF
Chris@10 14629 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Chris@10 14630 _ACEOF
Chris@10 14631
Chris@10 14632
Chris@10 14633 # The cast to long int works around a bug in the HP C Compiler
Chris@10 14634 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@10 14635 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@10 14636 # This bug is HP SR number 8606223364.
Chris@10 14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
Chris@10 14638 $as_echo_n "checking size of unsigned long long... " >&6; }
Chris@10 14639 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
Chris@10 14640 $as_echo_n "(cached) " >&6
Chris@10 14641 else
Chris@10 14642 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
Chris@10 14643
Chris@10 14644 else
Chris@10 14645 if test "$ac_cv_type_unsigned_long_long" = yes; then
Chris@10 14646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@10 14647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@10 14648 as_fn_error 77 "cannot compute sizeof (unsigned long long)
Chris@10 14649 See \`config.log' for more details" "$LINENO" 5; }
Chris@10 14650 else
Chris@10 14651 ac_cv_sizeof_unsigned_long_long=0
Chris@10 14652 fi
Chris@10 14653 fi
Chris@10 14654
Chris@10 14655 fi
Chris@10 14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
Chris@10 14657 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
Chris@10 14658
Chris@10 14659
Chris@10 14660
Chris@10 14661 cat >>confdefs.h <<_ACEOF
Chris@10 14662 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
Chris@10 14663 _ACEOF
Chris@10 14664
Chris@10 14665
Chris@10 14666 # The cast to long int works around a bug in the HP C Compiler
Chris@10 14667 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@10 14668 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@10 14669 # This bug is HP SR number 8606223364.
Chris@10 14670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
Chris@10 14671 $as_echo_n "checking size of size_t... " >&6; }
Chris@10 14672 if ${ac_cv_sizeof_size_t+:} false; then :
Chris@10 14673 $as_echo_n "(cached) " >&6
Chris@10 14674 else
Chris@10 14675 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
Chris@10 14676
Chris@10 14677 else
Chris@10 14678 if test "$ac_cv_type_size_t" = yes; then
Chris@10 14679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@10 14680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@10 14681 as_fn_error 77 "cannot compute sizeof (size_t)
Chris@10 14682 See \`config.log' for more details" "$LINENO" 5; }
Chris@10 14683 else
Chris@10 14684 ac_cv_sizeof_size_t=0
Chris@10 14685 fi
Chris@10 14686 fi
Chris@10 14687
Chris@10 14688 fi
Chris@10 14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
Chris@10 14690 $as_echo "$ac_cv_sizeof_size_t" >&6; }
Chris@10 14691
Chris@10 14692
Chris@10 14693
Chris@10 14694 cat >>confdefs.h <<_ACEOF
Chris@10 14695 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
Chris@10 14696 _ACEOF
Chris@10 14697
Chris@10 14698
Chris@10 14699 # The cast to long int works around a bug in the HP C Compiler
Chris@10 14700 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@10 14701 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@10 14702 # This bug is HP SR number 8606223364.
Chris@10 14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5
Chris@10 14704 $as_echo_n "checking size of ptrdiff_t... " >&6; }
Chris@10 14705 if ${ac_cv_sizeof_ptrdiff_t+:} false; then :
Chris@10 14706 $as_echo_n "(cached) " >&6
Chris@10 14707 else
Chris@10 14708 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t" "$ac_includes_default"; then :
Chris@10 14709
Chris@10 14710 else
Chris@10 14711 if test "$ac_cv_type_ptrdiff_t" = yes; then
Chris@10 14712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@10 14713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@10 14714 as_fn_error 77 "cannot compute sizeof (ptrdiff_t)
Chris@10 14715 See \`config.log' for more details" "$LINENO" 5; }
Chris@10 14716 else
Chris@10 14717 ac_cv_sizeof_ptrdiff_t=0
Chris@10 14718 fi
Chris@10 14719 fi
Chris@10 14720
Chris@10 14721 fi
Chris@10 14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5
Chris@10 14723 $as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; }
Chris@10 14724
Chris@10 14725
Chris@10 14726
Chris@10 14727 cat >>confdefs.h <<_ACEOF
Chris@10 14728 #define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
Chris@10 14729 _ACEOF
Chris@10 14730
Chris@10 14731
Chris@10 14732
Chris@10 14733 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default
Chris@10 14734 #ifdef HAVE_STDINT_H
Chris@10 14735 # include <stdint.h>
Chris@10 14736 #endif
Chris@10 14737 "
Chris@10 14738 if test "x$ac_cv_type_uintptr_t" = xyes; then :
Chris@10 14739
Chris@10 14740 cat >>confdefs.h <<_ACEOF
Chris@10 14741 #define HAVE_UINTPTR_T 1
Chris@10 14742 _ACEOF
Chris@10 14743
Chris@10 14744
Chris@10 14745 else
Chris@10 14746 # The cast to long int works around a bug in the HP C Compiler
Chris@10 14747 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@10 14748 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@10 14749 # This bug is HP SR number 8606223364.
Chris@10 14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
Chris@10 14751 $as_echo_n "checking size of void *... " >&6; }
Chris@10 14752 if ${ac_cv_sizeof_void_p+:} false; then :
Chris@10 14753 $as_echo_n "(cached) " >&6
Chris@10 14754 else
Chris@10 14755 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
Chris@10 14756
Chris@10 14757 else
Chris@10 14758 if test "$ac_cv_type_void_p" = yes; then
Chris@10 14759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@10 14760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@10 14761 as_fn_error 77 "cannot compute sizeof (void *)
Chris@10 14762 See \`config.log' for more details" "$LINENO" 5; }
Chris@10 14763 else
Chris@10 14764 ac_cv_sizeof_void_p=0
Chris@10 14765 fi
Chris@10 14766 fi
Chris@10 14767
Chris@10 14768 fi
Chris@10 14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
Chris@10 14770 $as_echo "$ac_cv_sizeof_void_p" >&6; }
Chris@10 14771
Chris@10 14772
Chris@10 14773
Chris@10 14774 cat >>confdefs.h <<_ACEOF
Chris@10 14775 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
Chris@10 14776 _ACEOF
Chris@10 14777
Chris@10 14778
Chris@10 14779 fi
Chris@10 14780
Chris@10 14781
Chris@10 14782 # The cast to long int works around a bug in the HP C Compiler
Chris@10 14783 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@10 14784 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@10 14785 # This bug is HP SR number 8606223364.
Chris@10 14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
Chris@10 14787 $as_echo_n "checking size of float... " >&6; }
Chris@10 14788 if ${ac_cv_sizeof_float+:} false; then :
Chris@10 14789 $as_echo_n "(cached) " >&6
Chris@10 14790 else
Chris@10 14791 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
Chris@10 14792
Chris@10 14793 else
Chris@10 14794 if test "$ac_cv_type_float" = yes; then
Chris@10 14795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@10 14796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@10 14797 as_fn_error 77 "cannot compute sizeof (float)
Chris@10 14798 See \`config.log' for more details" "$LINENO" 5; }
Chris@10 14799 else
Chris@10 14800 ac_cv_sizeof_float=0
Chris@10 14801 fi
Chris@10 14802 fi
Chris@10 14803
Chris@10 14804 fi
Chris@10 14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
Chris@10 14806 $as_echo "$ac_cv_sizeof_float" >&6; }
Chris@10 14807
Chris@10 14808
Chris@10 14809
Chris@10 14810 cat >>confdefs.h <<_ACEOF
Chris@10 14811 #define SIZEOF_FLOAT $ac_cv_sizeof_float
Chris@10 14812 _ACEOF
Chris@10 14813
Chris@10 14814
Chris@10 14815 # The cast to long int works around a bug in the HP C Compiler
Chris@10 14816 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@10 14817 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@10 14818 # This bug is HP SR number 8606223364.
Chris@10 14819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
Chris@10 14820 $as_echo_n "checking size of double... " >&6; }
Chris@10 14821 if ${ac_cv_sizeof_double+:} false; then :
Chris@10 14822 $as_echo_n "(cached) " >&6
Chris@10 14823 else
Chris@10 14824 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
Chris@10 14825
Chris@10 14826 else
Chris@10 14827 if test "$ac_cv_type_double" = yes; then
Chris@10 14828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@10 14829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@10 14830 as_fn_error 77 "cannot compute sizeof (double)
Chris@10 14831 See \`config.log' for more details" "$LINENO" 5; }
Chris@10 14832 else
Chris@10 14833 ac_cv_sizeof_double=0
Chris@10 14834 fi
Chris@10 14835 fi
Chris@10 14836
Chris@10 14837 fi
Chris@10 14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
Chris@10 14839 $as_echo "$ac_cv_sizeof_double" >&6; }
Chris@10 14840
Chris@10 14841
Chris@10 14842
Chris@10 14843 cat >>confdefs.h <<_ACEOF
Chris@10 14844 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
Chris@10 14845 _ACEOF
Chris@10 14846
Chris@10 14847
Chris@10 14848
Chris@10 14849 # The cast to long int works around a bug in the HP C Compiler
Chris@10 14850 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@10 14851 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@10 14852 # This bug is HP SR number 8606223364.
Chris@10 14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fftw_r2r_kind" >&5
Chris@10 14854 $as_echo_n "checking size of fftw_r2r_kind... " >&6; }
Chris@10 14855 if ${ac_cv_sizeof_fftw_r2r_kind+:} false; then :
Chris@10 14856 $as_echo_n "(cached) " >&6
Chris@10 14857 else
Chris@10 14858 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fftw_r2r_kind))" "ac_cv_sizeof_fftw_r2r_kind" "typedef enum {
Chris@10 14859 FFTW_R2HC=0, FFTW_HC2R=1, FFTW_DHT=2,
Chris@10 14860 FFTW_REDFT00=3, FFTW_REDFT01=4, FFTW_REDFT10=5, FFTW_REDFT11=6,
Chris@10 14861 FFTW_RODFT00=7, FFTW_RODFT01=8, FFTW_RODFT10=9, FFTW_RODFT11=10
Chris@10 14862 } fftw_r2r_kind;
Chris@10 14863 "; then :
Chris@10 14864
Chris@10 14865 else
Chris@10 14866 if test "$ac_cv_type_fftw_r2r_kind" = yes; then
Chris@10 14867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@10 14868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@10 14869 as_fn_error 77 "cannot compute sizeof (fftw_r2r_kind)
Chris@10 14870 See \`config.log' for more details" "$LINENO" 5; }
Chris@10 14871 else
Chris@10 14872 ac_cv_sizeof_fftw_r2r_kind=0
Chris@10 14873 fi
Chris@10 14874 fi
Chris@10 14875
Chris@10 14876 fi
Chris@10 14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fftw_r2r_kind" >&5
Chris@10 14878 $as_echo "$ac_cv_sizeof_fftw_r2r_kind" >&6; }
Chris@10 14879
Chris@10 14880
Chris@10 14881
Chris@10 14882 cat >>confdefs.h <<_ACEOF
Chris@10 14883 #define SIZEOF_FFTW_R2R_KIND $ac_cv_sizeof_fftw_r2r_kind
Chris@10 14884 _ACEOF
Chris@10 14885
Chris@10 14886
Chris@10 14887 if test 0 = $ac_cv_sizeof_fftw_r2r_kind; then as_fn_error $? "sizeof(fftw_r2r_kind) test failed" "$LINENO" 5; fi
Chris@10 14888 C_FFTW_R2R_KIND=C_INT`expr $ac_cv_sizeof_fftw_r2r_kind \* 8`_T
Chris@10 14889
Chris@10 14890
Chris@10 14891 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
Chris@10 14892 # for constant arguments. Useless!
Chris@10 14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Chris@10 14894 $as_echo_n "checking for working alloca.h... " >&6; }
Chris@10 14895 if ${ac_cv_working_alloca_h+:} false; then :
Chris@10 14896 $as_echo_n "(cached) " >&6
Chris@10 14897 else
Chris@10 14898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 14899 /* end confdefs.h. */
Chris@10 14900 #include <alloca.h>
Chris@10 14901 int
Chris@10 14902 main ()
Chris@10 14903 {
Chris@10 14904 char *p = (char *) alloca (2 * sizeof (int));
Chris@10 14905 if (p) return 0;
Chris@10 14906 ;
Chris@10 14907 return 0;
Chris@10 14908 }
Chris@10 14909 _ACEOF
Chris@10 14910 if ac_fn_c_try_link "$LINENO"; then :
Chris@10 14911 ac_cv_working_alloca_h=yes
Chris@10 14912 else
Chris@10 14913 ac_cv_working_alloca_h=no
Chris@10 14914 fi
Chris@10 14915 rm -f core conftest.err conftest.$ac_objext \
Chris@10 14916 conftest$ac_exeext conftest.$ac_ext
Chris@10 14917 fi
Chris@10 14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Chris@10 14919 $as_echo "$ac_cv_working_alloca_h" >&6; }
Chris@10 14920 if test $ac_cv_working_alloca_h = yes; then
Chris@10 14921
Chris@10 14922 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Chris@10 14923
Chris@10 14924 fi
Chris@10 14925
Chris@10 14926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Chris@10 14927 $as_echo_n "checking for alloca... " >&6; }
Chris@10 14928 if ${ac_cv_func_alloca_works+:} false; then :
Chris@10 14929 $as_echo_n "(cached) " >&6
Chris@10 14930 else
Chris@10 14931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 14932 /* end confdefs.h. */
Chris@10 14933 #ifdef __GNUC__
Chris@10 14934 # define alloca __builtin_alloca
Chris@10 14935 #else
Chris@10 14936 # ifdef _MSC_VER
Chris@10 14937 # include <malloc.h>
Chris@10 14938 # define alloca _alloca
Chris@10 14939 # else
Chris@10 14940 # ifdef HAVE_ALLOCA_H
Chris@10 14941 # include <alloca.h>
Chris@10 14942 # else
Chris@10 14943 # ifdef _AIX
Chris@10 14944 #pragma alloca
Chris@10 14945 # else
Chris@10 14946 # ifndef alloca /* predefined by HP cc +Olibcalls */
Chris@10 14947 void *alloca (size_t);
Chris@10 14948 # endif
Chris@10 14949 # endif
Chris@10 14950 # endif
Chris@10 14951 # endif
Chris@10 14952 #endif
Chris@10 14953
Chris@10 14954 int
Chris@10 14955 main ()
Chris@10 14956 {
Chris@10 14957 char *p = (char *) alloca (1);
Chris@10 14958 if (p) return 0;
Chris@10 14959 ;
Chris@10 14960 return 0;
Chris@10 14961 }
Chris@10 14962 _ACEOF
Chris@10 14963 if ac_fn_c_try_link "$LINENO"; then :
Chris@10 14964 ac_cv_func_alloca_works=yes
Chris@10 14965 else
Chris@10 14966 ac_cv_func_alloca_works=no
Chris@10 14967 fi
Chris@10 14968 rm -f core conftest.err conftest.$ac_objext \
Chris@10 14969 conftest$ac_exeext conftest.$ac_ext
Chris@10 14970 fi
Chris@10 14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Chris@10 14972 $as_echo "$ac_cv_func_alloca_works" >&6; }
Chris@10 14973
Chris@10 14974 if test $ac_cv_func_alloca_works = yes; then
Chris@10 14975
Chris@10 14976 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Chris@10 14977
Chris@10 14978 else
Chris@10 14979 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
Chris@10 14980 # that cause trouble. Some versions do not even contain alloca or
Chris@10 14981 # contain a buggy version. If you still want to use their alloca,
Chris@10 14982 # use ar to extract alloca.o from them instead of compiling alloca.c.
Chris@10 14983
Chris@10 14984 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Chris@10 14985
Chris@10 14986 $as_echo "#define C_ALLOCA 1" >>confdefs.h
Chris@10 14987
Chris@10 14988
Chris@10 14989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Chris@10 14990 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Chris@10 14991 if ${ac_cv_os_cray+:} false; then :
Chris@10 14992 $as_echo_n "(cached) " >&6
Chris@10 14993 else
Chris@10 14994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 14995 /* end confdefs.h. */
Chris@10 14996 #if defined CRAY && ! defined CRAY2
Chris@10 14997 webecray
Chris@10 14998 #else
Chris@10 14999 wenotbecray
Chris@10 15000 #endif
Chris@10 15001
Chris@10 15002 _ACEOF
Chris@10 15003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@10 15004 $EGREP "webecray" >/dev/null 2>&1; then :
Chris@10 15005 ac_cv_os_cray=yes
Chris@10 15006 else
Chris@10 15007 ac_cv_os_cray=no
Chris@10 15008 fi
Chris@10 15009 rm -f conftest*
Chris@10 15010
Chris@10 15011 fi
Chris@10 15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Chris@10 15013 $as_echo "$ac_cv_os_cray" >&6; }
Chris@10 15014 if test $ac_cv_os_cray = yes; then
Chris@10 15015 for ac_func in _getb67 GETB67 getb67; do
Chris@10 15016 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Chris@10 15017 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Chris@10 15018 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Chris@10 15019
Chris@10 15020 cat >>confdefs.h <<_ACEOF
Chris@10 15021 #define CRAY_STACKSEG_END $ac_func
Chris@10 15022 _ACEOF
Chris@10 15023
Chris@10 15024 break
Chris@10 15025 fi
Chris@10 15026
Chris@10 15027 done
Chris@10 15028 fi
Chris@10 15029
Chris@10 15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Chris@10 15031 $as_echo_n "checking stack direction for C alloca... " >&6; }
Chris@10 15032 if ${ac_cv_c_stack_direction+:} false; then :
Chris@10 15033 $as_echo_n "(cached) " >&6
Chris@10 15034 else
Chris@10 15035 if test "$cross_compiling" = yes; then :
Chris@10 15036 ac_cv_c_stack_direction=0
Chris@10 15037 else
Chris@10 15038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 15039 /* end confdefs.h. */
Chris@10 15040 $ac_includes_default
Chris@10 15041 int
Chris@10 15042 find_stack_direction (int *addr, int depth)
Chris@10 15043 {
Chris@10 15044 int dir, dummy = 0;
Chris@10 15045 if (! addr)
Chris@10 15046 addr = &dummy;
Chris@10 15047 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
Chris@10 15048 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
Chris@10 15049 return dir + dummy;
Chris@10 15050 }
Chris@10 15051
Chris@10 15052 int
Chris@10 15053 main (int argc, char **argv)
Chris@10 15054 {
Chris@10 15055 return find_stack_direction (0, argc + !argv + 20) < 0;
Chris@10 15056 }
Chris@10 15057 _ACEOF
Chris@10 15058 if ac_fn_c_try_run "$LINENO"; then :
Chris@10 15059 ac_cv_c_stack_direction=1
Chris@10 15060 else
Chris@10 15061 ac_cv_c_stack_direction=-1
Chris@10 15062 fi
Chris@10 15063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@10 15064 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@10 15065 fi
Chris@10 15066
Chris@10 15067 fi
Chris@10 15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Chris@10 15069 $as_echo "$ac_cv_c_stack_direction" >&6; }
Chris@10 15070 cat >>confdefs.h <<_ACEOF
Chris@10 15071 #define STACK_DIRECTION $ac_cv_c_stack_direction
Chris@10 15072 _ACEOF
Chris@10 15073
Chris@10 15074
Chris@10 15075 fi
Chris@10 15076
Chris@10 15077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
Chris@10 15078 $as_echo_n "checking for working strtod... " >&6; }
Chris@10 15079 if ${ac_cv_func_strtod+:} false; then :
Chris@10 15080 $as_echo_n "(cached) " >&6
Chris@10 15081 else
Chris@10 15082 if test "$cross_compiling" = yes; then :
Chris@10 15083 ac_cv_func_strtod=no
Chris@10 15084 else
Chris@10 15085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 15086 /* end confdefs.h. */
Chris@10 15087
Chris@10 15088 $ac_includes_default
Chris@10 15089 #ifndef strtod
Chris@10 15090 double strtod ();
Chris@10 15091 #endif
Chris@10 15092 int
Chris@10 15093 main()
Chris@10 15094 {
Chris@10 15095 {
Chris@10 15096 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
Chris@10 15097 char *string = " +69";
Chris@10 15098 char *term;
Chris@10 15099 double value;
Chris@10 15100 value = strtod (string, &term);
Chris@10 15101 if (value != 69 || term != (string + 4))
Chris@10 15102 return 1;
Chris@10 15103 }
Chris@10 15104
Chris@10 15105 {
Chris@10 15106 /* Under Solaris 2.4, strtod returns the wrong value for the
Chris@10 15107 terminating character under some conditions. */
Chris@10 15108 char *string = "NaN";
Chris@10 15109 char *term;
Chris@10 15110 strtod (string, &term);
Chris@10 15111 if (term != string && *(term - 1) == 0)
Chris@10 15112 return 1;
Chris@10 15113 }
Chris@10 15114 return 0;
Chris@10 15115 }
Chris@10 15116
Chris@10 15117 _ACEOF
Chris@10 15118 if ac_fn_c_try_run "$LINENO"; then :
Chris@10 15119 ac_cv_func_strtod=yes
Chris@10 15120 else
Chris@10 15121 ac_cv_func_strtod=no
Chris@10 15122 fi
Chris@10 15123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@10 15124 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@10 15125 fi
Chris@10 15126
Chris@10 15127 fi
Chris@10 15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
Chris@10 15129 $as_echo "$ac_cv_func_strtod" >&6; }
Chris@10 15130 if test $ac_cv_func_strtod = no; then
Chris@10 15131 case " $LIBOBJS " in
Chris@10 15132 *" strtod.$ac_objext "* ) ;;
Chris@10 15133 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
Chris@10 15134 ;;
Chris@10 15135 esac
Chris@10 15136
Chris@10 15137 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
Chris@10 15138 if test "x$ac_cv_func_pow" = xyes; then :
Chris@10 15139
Chris@10 15140 fi
Chris@10 15141
Chris@10 15142 if test $ac_cv_func_pow = no; then
Chris@10 15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
Chris@10 15144 $as_echo_n "checking for pow in -lm... " >&6; }
Chris@10 15145 if ${ac_cv_lib_m_pow+:} false; then :
Chris@10 15146 $as_echo_n "(cached) " >&6
Chris@10 15147 else
Chris@10 15148 ac_check_lib_save_LIBS=$LIBS
Chris@10 15149 LIBS="-lm $LIBS"
Chris@10 15150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 15151 /* end confdefs.h. */
Chris@10 15152
Chris@10 15153 /* Override any GCC internal prototype to avoid an error.
Chris@10 15154 Use char because int might match the return type of a GCC
Chris@10 15155 builtin and then its argument prototype would still apply. */
Chris@10 15156 #ifdef __cplusplus
Chris@10 15157 extern "C"
Chris@10 15158 #endif
Chris@10 15159 char pow ();
Chris@10 15160 int
Chris@10 15161 main ()
Chris@10 15162 {
Chris@10 15163 return pow ();
Chris@10 15164 ;
Chris@10 15165 return 0;
Chris@10 15166 }
Chris@10 15167 _ACEOF
Chris@10 15168 if ac_fn_c_try_link "$LINENO"; then :
Chris@10 15169 ac_cv_lib_m_pow=yes
Chris@10 15170 else
Chris@10 15171 ac_cv_lib_m_pow=no
Chris@10 15172 fi
Chris@10 15173 rm -f core conftest.err conftest.$ac_objext \
Chris@10 15174 conftest$ac_exeext conftest.$ac_ext
Chris@10 15175 LIBS=$ac_check_lib_save_LIBS
Chris@10 15176 fi
Chris@10 15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
Chris@10 15178 $as_echo "$ac_cv_lib_m_pow" >&6; }
Chris@10 15179 if test "x$ac_cv_lib_m_pow" = xyes; then :
Chris@10 15180 POW_LIB=-lm
Chris@10 15181 else
Chris@10 15182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
Chris@10 15183 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
Chris@10 15184 fi
Chris@10 15185
Chris@10 15186 fi
Chris@10 15187
Chris@10 15188 fi
Chris@10 15189
Chris@10 15190 for ac_func in vprintf
Chris@10 15191 do :
Chris@10 15192 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
Chris@10 15193 if test "x$ac_cv_func_vprintf" = xyes; then :
Chris@10 15194 cat >>confdefs.h <<_ACEOF
Chris@10 15195 #define HAVE_VPRINTF 1
Chris@10 15196 _ACEOF
Chris@10 15197
Chris@10 15198 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
Chris@10 15199 if test "x$ac_cv_func__doprnt" = xyes; then :
Chris@10 15200
Chris@10 15201 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Chris@10 15202
Chris@10 15203 fi
Chris@10 15204
Chris@10 15205 fi
Chris@10 15206 done
Chris@10 15207
Chris@10 15208
Chris@10 15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
Chris@10 15210 $as_echo_n "checking for sin in -lm... " >&6; }
Chris@10 15211 if ${ac_cv_lib_m_sin+:} false; then :
Chris@10 15212 $as_echo_n "(cached) " >&6
Chris@10 15213 else
Chris@10 15214 ac_check_lib_save_LIBS=$LIBS
Chris@10 15215 LIBS="-lm $LIBS"
Chris@10 15216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 15217 /* end confdefs.h. */
Chris@10 15218
Chris@10 15219 /* Override any GCC internal prototype to avoid an error.
Chris@10 15220 Use char because int might match the return type of a GCC
Chris@10 15221 builtin and then its argument prototype would still apply. */
Chris@10 15222 #ifdef __cplusplus
Chris@10 15223 extern "C"
Chris@10 15224 #endif
Chris@10 15225 char sin ();
Chris@10 15226 int
Chris@10 15227 main ()
Chris@10 15228 {
Chris@10 15229 return sin ();
Chris@10 15230 ;
Chris@10 15231 return 0;
Chris@10 15232 }
Chris@10 15233 _ACEOF
Chris@10 15234 if ac_fn_c_try_link "$LINENO"; then :
Chris@10 15235 ac_cv_lib_m_sin=yes
Chris@10 15236 else
Chris@10 15237 ac_cv_lib_m_sin=no
Chris@10 15238 fi
Chris@10 15239 rm -f core conftest.err conftest.$ac_objext \
Chris@10 15240 conftest$ac_exeext conftest.$ac_ext
Chris@10 15241 LIBS=$ac_check_lib_save_LIBS
Chris@10 15242 fi
Chris@10 15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
Chris@10 15244 $as_echo "$ac_cv_lib_m_sin" >&6; }
Chris@10 15245 if test "x$ac_cv_lib_m_sin" = xyes; then :
Chris@10 15246 cat >>confdefs.h <<_ACEOF
Chris@10 15247 #define HAVE_LIBM 1
Chris@10 15248 _ACEOF
Chris@10 15249
Chris@10 15250 LIBS="-lm $LIBS"
Chris@10 15251
Chris@10 15252 fi
Chris@10 15253
Chris@10 15254
Chris@10 15255 if test $PRECISION = q; then
Chris@10 15256
Chris@10 15257
Chris@10 15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gcc 4.6.0 or later" >&5
Chris@10 15259 $as_echo_n "checking whether we are using gcc 4.6.0 or later... " >&6; }
Chris@10 15260 if ${ax_cv_gcc_4_6_0+:} false; then :
Chris@10 15261 $as_echo_n "(cached) " >&6
Chris@10 15262 else
Chris@10 15263
Chris@10 15264 ax_cv_gcc_4_6_0=no
Chris@10 15265 if test "$GCC" = "yes"; then
Chris@10 15266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 15267 /* end confdefs.h. */
Chris@10 15268
Chris@10 15269 #ifdef __GNUC__
Chris@10 15270 # if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ > 6) \
Chris@10 15271 || (__GNUC__ == 4 && __GNUC_MINOR__ == 6 && __GNUC_PATCHLEVEL__ >= 0)
Chris@10 15272 yes;
Chris@10 15273 # endif
Chris@10 15274 #endif
Chris@10 15275
Chris@10 15276 _ACEOF
Chris@10 15277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@10 15278 $EGREP "yes" >/dev/null 2>&1; then :
Chris@10 15279 ax_cv_gcc_4_6_0=yes
Chris@10 15280 fi
Chris@10 15281 rm -f conftest*
Chris@10 15282
Chris@10 15283 fi
Chris@10 15284
Chris@10 15285 fi
Chris@10 15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_4_6_0" >&5
Chris@10 15287 $as_echo "$ax_cv_gcc_4_6_0" >&6; }
Chris@10 15288 if test "$ax_cv_gcc_4_6_0" = yes; then
Chris@10 15289 :
Chris@10 15290 else
Chris@10 15291 as_fn_error $? "gcc 4.6 or later required for quad precision support" "$LINENO" 5
Chris@10 15292 fi
Chris@10 15293
Chris@10 15294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinq in -lquadmath" >&5
Chris@10 15295 $as_echo_n "checking for sinq in -lquadmath... " >&6; }
Chris@10 15296 if ${ac_cv_lib_quadmath_sinq+:} false; then :
Chris@10 15297 $as_echo_n "(cached) " >&6
Chris@10 15298 else
Chris@10 15299 ac_check_lib_save_LIBS=$LIBS
Chris@10 15300 LIBS="-lquadmath $LIBS"
Chris@10 15301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 15302 /* end confdefs.h. */
Chris@10 15303
Chris@10 15304 /* Override any GCC internal prototype to avoid an error.
Chris@10 15305 Use char because int might match the return type of a GCC
Chris@10 15306 builtin and then its argument prototype would still apply. */
Chris@10 15307 #ifdef __cplusplus
Chris@10 15308 extern "C"
Chris@10 15309 #endif
Chris@10 15310 char sinq ();
Chris@10 15311 int
Chris@10 15312 main ()
Chris@10 15313 {
Chris@10 15314 return sinq ();
Chris@10 15315 ;
Chris@10 15316 return 0;
Chris@10 15317 }
Chris@10 15318 _ACEOF
Chris@10 15319 if ac_fn_c_try_link "$LINENO"; then :
Chris@10 15320 ac_cv_lib_quadmath_sinq=yes
Chris@10 15321 else
Chris@10 15322 ac_cv_lib_quadmath_sinq=no
Chris@10 15323 fi
Chris@10 15324 rm -f core conftest.err conftest.$ac_objext \
Chris@10 15325 conftest$ac_exeext conftest.$ac_ext
Chris@10 15326 LIBS=$ac_check_lib_save_LIBS
Chris@10 15327 fi
Chris@10 15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quadmath_sinq" >&5
Chris@10 15329 $as_echo "$ac_cv_lib_quadmath_sinq" >&6; }
Chris@10 15330 if test "x$ac_cv_lib_quadmath_sinq" = xyes; then :
Chris@10 15331 cat >>confdefs.h <<_ACEOF
Chris@10 15332 #define HAVE_LIBQUADMATH 1
Chris@10 15333 _ACEOF
Chris@10 15334
Chris@10 15335 LIBS="-lquadmath $LIBS"
Chris@10 15336
Chris@10 15337 else
Chris@10 15338 as_fn_error $? "quad precision requires libquadmath for quad-precision trigonometric routines" "$LINENO" 5
Chris@10 15339 fi
Chris@10 15340
Chris@10 15341 LIBQUADMATH=-lquadmath
Chris@10 15342 fi
Chris@10 15343
Chris@10 15344
Chris@10 15345 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@10 15346 do :
Chris@10 15347 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Chris@10 15348 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Chris@10 15349 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Chris@10 15350 cat >>confdefs.h <<_ACEOF
Chris@10 15351 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Chris@10 15352 _ACEOF
Chris@10 15353
Chris@10 15354 fi
Chris@10 15355 done
Chris@10 15356
Chris@10 15357 ac_fn_c_check_decl "$LINENO" "drand48" "ac_cv_have_decl_drand48" "$ac_includes_default"
Chris@10 15358 if test "x$ac_cv_have_decl_drand48" = xyes; then :
Chris@10 15359 ac_have_decl=1
Chris@10 15360 else
Chris@10 15361 ac_have_decl=0
Chris@10 15362 fi
Chris@10 15363
Chris@10 15364 cat >>confdefs.h <<_ACEOF
Chris@10 15365 #define HAVE_DECL_DRAND48 $ac_have_decl
Chris@10 15366 _ACEOF
Chris@10 15367 ac_fn_c_check_decl "$LINENO" "srand48" "ac_cv_have_decl_srand48" "$ac_includes_default"
Chris@10 15368 if test "x$ac_cv_have_decl_srand48" = xyes; then :
Chris@10 15369 ac_have_decl=1
Chris@10 15370 else
Chris@10 15371 ac_have_decl=0
Chris@10 15372 fi
Chris@10 15373
Chris@10 15374 cat >>confdefs.h <<_ACEOF
Chris@10 15375 #define HAVE_DECL_SRAND48 $ac_have_decl
Chris@10 15376 _ACEOF
Chris@10 15377 ac_fn_c_check_decl "$LINENO" "memalign" "ac_cv_have_decl_memalign" "$ac_includes_default"
Chris@10 15378 if test "x$ac_cv_have_decl_memalign" = xyes; then :
Chris@10 15379 ac_have_decl=1
Chris@10 15380 else
Chris@10 15381 ac_have_decl=0
Chris@10 15382 fi
Chris@10 15383
Chris@10 15384 cat >>confdefs.h <<_ACEOF
Chris@10 15385 #define HAVE_DECL_MEMALIGN $ac_have_decl
Chris@10 15386 _ACEOF
Chris@10 15387 ac_fn_c_check_decl "$LINENO" "posix_memalign" "ac_cv_have_decl_posix_memalign" "$ac_includes_default"
Chris@10 15388 if test "x$ac_cv_have_decl_posix_memalign" = xyes; then :
Chris@10 15389 ac_have_decl=1
Chris@10 15390 else
Chris@10 15391 ac_have_decl=0
Chris@10 15392 fi
Chris@10 15393
Chris@10 15394 cat >>confdefs.h <<_ACEOF
Chris@10 15395 #define HAVE_DECL_POSIX_MEMALIGN $ac_have_decl
Chris@10 15396 _ACEOF
Chris@10 15397 ac_fn_c_check_decl "$LINENO" "sinl" "ac_cv_have_decl_sinl" "$ac_includes_default"
Chris@10 15398 if test "x$ac_cv_have_decl_sinl" = xyes; then :
Chris@10 15399 ac_have_decl=1
Chris@10 15400 else
Chris@10 15401 ac_have_decl=0
Chris@10 15402 fi
Chris@10 15403
Chris@10 15404 cat >>confdefs.h <<_ACEOF
Chris@10 15405 #define HAVE_DECL_SINL $ac_have_decl
Chris@10 15406 _ACEOF
Chris@10 15407 ac_fn_c_check_decl "$LINENO" "cosl" "ac_cv_have_decl_cosl" "$ac_includes_default"
Chris@10 15408 if test "x$ac_cv_have_decl_cosl" = xyes; then :
Chris@10 15409 ac_have_decl=1
Chris@10 15410 else
Chris@10 15411 ac_have_decl=0
Chris@10 15412 fi
Chris@10 15413
Chris@10 15414 cat >>confdefs.h <<_ACEOF
Chris@10 15415 #define HAVE_DECL_COSL $ac_have_decl
Chris@10 15416 _ACEOF
Chris@10 15417 ac_fn_c_check_decl "$LINENO" "sinq" "ac_cv_have_decl_sinq" "$ac_includes_default"
Chris@10 15418 if test "x$ac_cv_have_decl_sinq" = xyes; then :
Chris@10 15419 ac_have_decl=1
Chris@10 15420 else
Chris@10 15421 ac_have_decl=0
Chris@10 15422 fi
Chris@10 15423
Chris@10 15424 cat >>confdefs.h <<_ACEOF
Chris@10 15425 #define HAVE_DECL_SINQ $ac_have_decl
Chris@10 15426 _ACEOF
Chris@10 15427 ac_fn_c_check_decl "$LINENO" "cosq" "ac_cv_have_decl_cosq" "$ac_includes_default"
Chris@10 15428 if test "x$ac_cv_have_decl_cosq" = xyes; then :
Chris@10 15429 ac_have_decl=1
Chris@10 15430 else
Chris@10 15431 ac_have_decl=0
Chris@10 15432 fi
Chris@10 15433
Chris@10 15434 cat >>confdefs.h <<_ACEOF
Chris@10 15435 #define HAVE_DECL_COSQ $ac_have_decl
Chris@10 15436 _ACEOF
Chris@10 15437
Chris@10 15438
Chris@10 15439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _rtc intrinsic" >&5
Chris@10 15440 $as_echo_n "checking for _rtc intrinsic... " >&6; }
Chris@10 15441 rtc_ok=yes
Chris@10 15442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 15443 /* end confdefs.h. */
Chris@10 15444 #ifdef HAVE_INTRINSICS_H
Chris@10 15445 #include <intrinsics.h>
Chris@10 15446 #endif
Chris@10 15447 int
Chris@10 15448 main ()
Chris@10 15449 {
Chris@10 15450 _rtc()
Chris@10 15451 ;
Chris@10 15452 return 0;
Chris@10 15453 }
Chris@10 15454 _ACEOF
Chris@10 15455 if ac_fn_c_try_link "$LINENO"; then :
Chris@10 15456
Chris@10 15457 $as_echo "#define HAVE__RTC 1" >>confdefs.h
Chris@10 15458
Chris@10 15459 else
Chris@10 15460 rtc_ok=no
Chris@10 15461 fi
Chris@10 15462 rm -f core conftest.err conftest.$ac_objext \
Chris@10 15463 conftest$ac_exeext conftest.$ac_ext
Chris@10 15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rtc_ok" >&5
Chris@10 15465 $as_echo "$rtc_ok" >&6; }
Chris@10 15466
Chris@10 15467 if test "$PRECISION" = "l"; then
Chris@10 15468 for ac_func in cosl sinl tanl
Chris@10 15469 do :
Chris@10 15470 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Chris@10 15471 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Chris@10 15472 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Chris@10 15473 cat >>confdefs.h <<_ACEOF
Chris@10 15474 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Chris@10 15475 _ACEOF
Chris@10 15476
Chris@10 15477 else
Chris@10 15478 as_fn_error $? "long-double precision requires long-double trigonometric routines" "$LINENO" 5
Chris@10 15479 fi
Chris@10 15480 done
Chris@10 15481
Chris@10 15482 fi
Chris@10 15483
Chris@10 15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
Chris@10 15485 $as_echo_n "checking for isnan... " >&6; }
Chris@10 15486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 15487 /* end confdefs.h. */
Chris@10 15488 #include <math.h>
Chris@10 15489
Chris@10 15490 int
Chris@10 15491 main ()
Chris@10 15492 {
Chris@10 15493 if (!isnan(3.14159)) isnan(2.7183);
Chris@10 15494 ;
Chris@10 15495 return 0;
Chris@10 15496 }
Chris@10 15497 _ACEOF
Chris@10 15498 if ac_fn_c_try_link "$LINENO"; then :
Chris@10 15499 ok=yes
Chris@10 15500 else
Chris@10 15501 ok=no
Chris@10 15502 fi
Chris@10 15503 rm -f core conftest.err conftest.$ac_objext \
Chris@10 15504 conftest$ac_exeext conftest.$ac_ext
Chris@10 15505 if test "$ok" = "yes"; then
Chris@10 15506
Chris@10 15507 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
Chris@10 15508
Chris@10 15509 fi
Chris@10 15510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ok}" >&5
Chris@10 15511 $as_echo "${ok}" >&6; }
Chris@10 15512
Chris@10 15513
Chris@10 15514
Chris@10 15515 ax_gcc_aligns_stack=no
Chris@10 15516 if test "$GCC" = "yes"; then
Chris@10 15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpreferred-stack-boundary=4" >&5
Chris@10 15518 $as_echo_n "checking whether C compiler accepts -mpreferred-stack-boundary=4... " >&6; }
Chris@10 15519 if ${ax_cv_c_flags__mpreferred_stack_boundary_4+:} false; then :
Chris@10 15520 $as_echo_n "(cached) " >&6
Chris@10 15521 else
Chris@10 15522
Chris@10 15523 ax_save_FLAGS=$CFLAGS
Chris@10 15524 CFLAGS="-mpreferred-stack-boundary=4"
Chris@10 15525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 15526 /* end confdefs.h. */
Chris@10 15527
Chris@10 15528 int
Chris@10 15529 main ()
Chris@10 15530 {
Chris@10 15531
Chris@10 15532 ;
Chris@10 15533 return 0;
Chris@10 15534 }
Chris@10 15535 _ACEOF
Chris@10 15536 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 15537 ax_cv_c_flags__mpreferred_stack_boundary_4=yes
Chris@10 15538 else
Chris@10 15539 ax_cv_c_flags__mpreferred_stack_boundary_4=no
Chris@10 15540 fi
Chris@10 15541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 15542 CFLAGS=$ax_save_FLAGS
Chris@10 15543 fi
Chris@10 15544
Chris@10 15545 eval ax_check_compiler_flags=$ax_cv_c_flags__mpreferred_stack_boundary_4
Chris@10 15546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@10 15547 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@10 15548 if test "x$ax_check_compiler_flags" = xyes; then
Chris@10 15549
Chris@10 15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the stack is at least 8-byte aligned by gcc" >&5
Chris@10 15551 $as_echo_n "checking whether the stack is at least 8-byte aligned by gcc... " >&6; }
Chris@10 15552 save_CFLAGS="$CFLAGS"
Chris@10 15553 CFLAGS="-O"
Chris@10 15554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
Chris@10 15555 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
Chris@10 15556 if ${ax_cv_c_flags__malign_double+:} false; then :
Chris@10 15557 $as_echo_n "(cached) " >&6
Chris@10 15558 else
Chris@10 15559
Chris@10 15560 ax_save_FLAGS=$CFLAGS
Chris@10 15561 CFLAGS="-malign-double"
Chris@10 15562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 15563 /* end confdefs.h. */
Chris@10 15564
Chris@10 15565 int
Chris@10 15566 main ()
Chris@10 15567 {
Chris@10 15568
Chris@10 15569 ;
Chris@10 15570 return 0;
Chris@10 15571 }
Chris@10 15572 _ACEOF
Chris@10 15573 if ac_fn_c_try_compile "$LINENO"; then :
Chris@10 15574 ax_cv_c_flags__malign_double=yes
Chris@10 15575 else
Chris@10 15576 ax_cv_c_flags__malign_double=no
Chris@10 15577 fi
Chris@10 15578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 15579 CFLAGS=$ax_save_FLAGS
Chris@10 15580 fi
Chris@10 15581
Chris@10 15582 eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double
Chris@10 15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@10 15584 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@10 15585 if test "x$ax_check_compiler_flags" = xyes; then
Chris@10 15586 CFLAGS="$CFLAGS -malign-double"
Chris@10 15587 else
Chris@10 15588 :
Chris@10 15589 fi
Chris@10 15590
Chris@10 15591 if test "$cross_compiling" = yes; then :
Chris@10 15592
Chris@10 15593
Chris@10 15594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gcc 3.0.0 or later" >&5
Chris@10 15595 $as_echo_n "checking whether we are using gcc 3.0.0 or later... " >&6; }
Chris@10 15596 if ${ax_cv_gcc_3_0_0+:} false; then :
Chris@10 15597 $as_echo_n "(cached) " >&6
Chris@10 15598 else
Chris@10 15599
Chris@10 15600 ax_cv_gcc_3_0_0=no
Chris@10 15601 if test "$GCC" = "yes"; then
Chris@10 15602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 15603 /* end confdefs.h. */
Chris@10 15604
Chris@10 15605 #ifdef __GNUC__
Chris@10 15606 # if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ > 0) \
Chris@10 15607 || (__GNUC__ == 3 && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ >= 0)
Chris@10 15608 yes;
Chris@10 15609 # endif
Chris@10 15610 #endif
Chris@10 15611
Chris@10 15612 _ACEOF
Chris@10 15613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@10 15614 $EGREP "yes" >/dev/null 2>&1; then :
Chris@10 15615 ax_cv_gcc_3_0_0=yes
Chris@10 15616 fi
Chris@10 15617 rm -f conftest*
Chris@10 15618
Chris@10 15619 fi
Chris@10 15620
Chris@10 15621 fi
Chris@10 15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_3_0_0" >&5
Chris@10 15623 $as_echo "$ax_cv_gcc_3_0_0" >&6; }
Chris@10 15624 if test "$ax_cv_gcc_3_0_0" = yes; then
Chris@10 15625 ax_gcc_stack_align_bug=no
Chris@10 15626 else
Chris@10 15627 ax_gcc_stack_align_bug=yes
Chris@10 15628 fi
Chris@10 15629
Chris@10 15630 else
Chris@10 15631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 15632 /* end confdefs.h. */
Chris@10 15633 #include <stdlib.h>
Chris@10 15634 # include <stdio.h>
Chris@10 15635 struct yuck { int blechh; };
Chris@10 15636 int one(void) { return 1; }
Chris@10 15637 struct yuck ick(void) { struct yuck y; y.blechh = 3; return y; }
Chris@10 15638 # define CHK_ALIGN(x) if ((((long) &(x)) & 0x7)) { fprintf(stderr, "bad alignment of " #x "\n"); exit(1); }
Chris@10 15639 void blah(int foo) { double foobar; CHK_ALIGN(foobar); }
Chris@10 15640 int main2(void) {double ok1; struct yuck y; double ok2; CHK_ALIGN(ok1);
Chris@10 15641 CHK_ALIGN(ok2); y = ick(); blah(one()); return 0;}
Chris@10 15642 int main(void) { if ((((long) (__builtin_alloca(0))) & 0x7)) __builtin_alloca(4); return main2(); }
Chris@10 15643
Chris@10 15644 _ACEOF
Chris@10 15645 if ac_fn_c_try_run "$LINENO"; then :
Chris@10 15646 ax_gcc_aligns_stack=yes; ax_gcc_stack_align_bug=no
Chris@10 15647 else
Chris@10 15648 ax_gcc_stack_align_bug=yes
Chris@10 15649 fi
Chris@10 15650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@10 15651 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@10 15652 fi
Chris@10 15653
Chris@10 15654 CFLAGS="$save_CFLAGS"
Chris@10 15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_gcc_aligns_stack" >&5
Chris@10 15656 $as_echo "$ax_gcc_aligns_stack" >&6; }
Chris@10 15657
Chris@10 15658 else
Chris@10 15659 :
Chris@10 15660 fi
Chris@10 15661
Chris@10 15662 fi
Chris@10 15663 if test "$ax_gcc_aligns_stack" = yes; then
Chris@10 15664 :
Chris@10 15665 else
Chris@10 15666 :
Chris@10 15667 fi
Chris@10 15668
Chris@10 15669
Chris@10 15670 if test "${enable_debug}" = "yes"; then
Chris@10 15671 CFLAGS="-g"
Chris@10 15672 fi
Chris@10 15673
Chris@10 15674 if test "$enable_debug" = yes || test "$USE_MAINTAINER_MODE" = yes; then
Chris@10 15675 if test "$ac_test_CFLAGS" != "set"; then
Chris@10 15676 if test $ac_cv_c_compiler_gnu = yes; then
Chris@10 15677 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@10 15678 fi
Chris@10 15679 fi
Chris@10 15680 fi
Chris@10 15681
Chris@10 15682
Chris@10 15683 # Check whether --enable-fortran was given.
Chris@10 15684 if test "${enable_fortran+set}" = set; then :
Chris@10 15685 enableval=$enable_fortran; enable_fortran=$enableval
Chris@10 15686 else
Chris@10 15687 enable_fortran=yes
Chris@10 15688 fi
Chris@10 15689
Chris@10 15690
Chris@10 15691 if test "$enable_fortran" = "yes"; then
Chris@10 15692 ac_ext=f
Chris@10 15693 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@10 15694 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 15695 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@10 15696 if test -n "$ac_tool_prefix"; then
Chris@10 15697 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@10 15698 do
Chris@10 15699 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@10 15700 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@10 15701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 15702 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 15703 if ${ac_cv_prog_F77+:} false; then :
Chris@10 15704 $as_echo_n "(cached) " >&6
Chris@10 15705 else
Chris@10 15706 if test -n "$F77"; then
Chris@10 15707 ac_cv_prog_F77="$F77" # Let the user override the test.
Chris@10 15708 else
Chris@10 15709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 15710 for as_dir in $PATH
Chris@10 15711 do
Chris@10 15712 IFS=$as_save_IFS
Chris@10 15713 test -z "$as_dir" && as_dir=.
Chris@10 15714 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 15715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 15716 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
Chris@10 15717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 15718 break 2
Chris@10 15719 fi
Chris@10 15720 done
Chris@10 15721 done
Chris@10 15722 IFS=$as_save_IFS
Chris@10 15723
Chris@10 15724 fi
Chris@10 15725 fi
Chris@10 15726 F77=$ac_cv_prog_F77
Chris@10 15727 if test -n "$F77"; then
Chris@10 15728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
Chris@10 15729 $as_echo "$F77" >&6; }
Chris@10 15730 else
Chris@10 15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 15732 $as_echo "no" >&6; }
Chris@10 15733 fi
Chris@10 15734
Chris@10 15735
Chris@10 15736 test -n "$F77" && break
Chris@10 15737 done
Chris@10 15738 fi
Chris@10 15739 if test -z "$F77"; then
Chris@10 15740 ac_ct_F77=$F77
Chris@10 15741 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@10 15742 do
Chris@10 15743 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@10 15744 set dummy $ac_prog; ac_word=$2
Chris@10 15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 15746 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 15747 if ${ac_cv_prog_ac_ct_F77+:} false; then :
Chris@10 15748 $as_echo_n "(cached) " >&6
Chris@10 15749 else
Chris@10 15750 if test -n "$ac_ct_F77"; then
Chris@10 15751 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
Chris@10 15752 else
Chris@10 15753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 15754 for as_dir in $PATH
Chris@10 15755 do
Chris@10 15756 IFS=$as_save_IFS
Chris@10 15757 test -z "$as_dir" && as_dir=.
Chris@10 15758 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 15759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 15760 ac_cv_prog_ac_ct_F77="$ac_prog"
Chris@10 15761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 15762 break 2
Chris@10 15763 fi
Chris@10 15764 done
Chris@10 15765 done
Chris@10 15766 IFS=$as_save_IFS
Chris@10 15767
Chris@10 15768 fi
Chris@10 15769 fi
Chris@10 15770 ac_ct_F77=$ac_cv_prog_ac_ct_F77
Chris@10 15771 if test -n "$ac_ct_F77"; then
Chris@10 15772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
Chris@10 15773 $as_echo "$ac_ct_F77" >&6; }
Chris@10 15774 else
Chris@10 15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 15776 $as_echo "no" >&6; }
Chris@10 15777 fi
Chris@10 15778
Chris@10 15779
Chris@10 15780 test -n "$ac_ct_F77" && break
Chris@10 15781 done
Chris@10 15782
Chris@10 15783 if test "x$ac_ct_F77" = x; then
Chris@10 15784 F77=""
Chris@10 15785 else
Chris@10 15786 case $cross_compiling:$ac_tool_warned in
Chris@10 15787 yes:)
Chris@10 15788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@10 15789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@10 15790 ac_tool_warned=yes ;;
Chris@10 15791 esac
Chris@10 15792 F77=$ac_ct_F77
Chris@10 15793 fi
Chris@10 15794 fi
Chris@10 15795
Chris@10 15796
Chris@10 15797 # Provide some information about the compiler.
Chris@10 15798 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
Chris@10 15799 set X $ac_compile
Chris@10 15800 ac_compiler=$2
Chris@10 15801 for ac_option in --version -v -V -qversion; do
Chris@10 15802 { { ac_try="$ac_compiler $ac_option >&5"
Chris@10 15803 case "(($ac_try" in
Chris@10 15804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@10 15805 *) ac_try_echo=$ac_try;;
Chris@10 15806 esac
Chris@10 15807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@10 15808 $as_echo "$ac_try_echo"; } >&5
Chris@10 15809 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Chris@10 15810 ac_status=$?
Chris@10 15811 if test -s conftest.err; then
Chris@10 15812 sed '10a\
Chris@10 15813 ... rest of stderr output deleted ...
Chris@10 15814 10q' conftest.err >conftest.er1
Chris@10 15815 cat conftest.er1 >&5
Chris@10 15816 fi
Chris@10 15817 rm -f conftest.er1 conftest.err
Chris@10 15818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 15819 test $ac_status = 0; }
Chris@10 15820 done
Chris@10 15821 rm -f a.out
Chris@10 15822
Chris@10 15823 # If we don't use `.F' as extension, the preprocessor is not run on the
Chris@10 15824 # input file. (Note that this only needs to work for GNU compilers.)
Chris@10 15825 ac_save_ext=$ac_ext
Chris@10 15826 ac_ext=F
Chris@10 15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
Chris@10 15828 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
Chris@10 15829 if ${ac_cv_f77_compiler_gnu+:} false; then :
Chris@10 15830 $as_echo_n "(cached) " >&6
Chris@10 15831 else
Chris@10 15832 cat > conftest.$ac_ext <<_ACEOF
Chris@10 15833 program main
Chris@10 15834 #ifndef __GNUC__
Chris@10 15835 choke me
Chris@10 15836 #endif
Chris@10 15837
Chris@10 15838 end
Chris@10 15839 _ACEOF
Chris@10 15840 if ac_fn_f77_try_compile "$LINENO"; then :
Chris@10 15841 ac_compiler_gnu=yes
Chris@10 15842 else
Chris@10 15843 ac_compiler_gnu=no
Chris@10 15844 fi
Chris@10 15845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 15846 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
Chris@10 15847
Chris@10 15848 fi
Chris@10 15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
Chris@10 15850 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
Chris@10 15851 ac_ext=$ac_save_ext
Chris@10 15852 ac_test_FFLAGS=${FFLAGS+set}
Chris@10 15853 ac_save_FFLAGS=$FFLAGS
Chris@10 15854 FFLAGS=
Chris@10 15855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
Chris@10 15856 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
Chris@10 15857 if ${ac_cv_prog_f77_g+:} false; then :
Chris@10 15858 $as_echo_n "(cached) " >&6
Chris@10 15859 else
Chris@10 15860 FFLAGS=-g
Chris@10 15861 cat > conftest.$ac_ext <<_ACEOF
Chris@10 15862 program main
Chris@10 15863
Chris@10 15864 end
Chris@10 15865 _ACEOF
Chris@10 15866 if ac_fn_f77_try_compile "$LINENO"; then :
Chris@10 15867 ac_cv_prog_f77_g=yes
Chris@10 15868 else
Chris@10 15869 ac_cv_prog_f77_g=no
Chris@10 15870 fi
Chris@10 15871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 15872
Chris@10 15873 fi
Chris@10 15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
Chris@10 15875 $as_echo "$ac_cv_prog_f77_g" >&6; }
Chris@10 15876 if test "$ac_test_FFLAGS" = set; then
Chris@10 15877 FFLAGS=$ac_save_FFLAGS
Chris@10 15878 elif test $ac_cv_prog_f77_g = yes; then
Chris@10 15879 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
Chris@10 15880 FFLAGS="-g -O2"
Chris@10 15881 else
Chris@10 15882 FFLAGS="-g"
Chris@10 15883 fi
Chris@10 15884 else
Chris@10 15885 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
Chris@10 15886 FFLAGS="-O2"
Chris@10 15887 else
Chris@10 15888 FFLAGS=
Chris@10 15889 fi
Chris@10 15890 fi
Chris@10 15891
Chris@10 15892 if test $ac_compiler_gnu = yes; then
Chris@10 15893 G77=yes
Chris@10 15894 else
Chris@10 15895 G77=
Chris@10 15896 fi
Chris@10 15897 ac_ext=c
Chris@10 15898 ac_cpp='$CPP $CPPFLAGS'
Chris@10 15899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@10 15900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 15901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@10 15902
Chris@10 15903 ac_ext=f
Chris@10 15904 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@10 15905 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 15906 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@10 15907
Chris@10 15908 if test -z "$F77" || test "X$F77" = "Xno"; then
Chris@10 15909 _lt_disable_F77=yes
Chris@10 15910 fi
Chris@10 15911
Chris@10 15912 archive_cmds_need_lc_F77=no
Chris@10 15913 allow_undefined_flag_F77=
Chris@10 15914 always_export_symbols_F77=no
Chris@10 15915 archive_expsym_cmds_F77=
Chris@10 15916 export_dynamic_flag_spec_F77=
Chris@10 15917 hardcode_direct_F77=no
Chris@10 15918 hardcode_direct_absolute_F77=no
Chris@10 15919 hardcode_libdir_flag_spec_F77=
Chris@10 15920 hardcode_libdir_separator_F77=
Chris@10 15921 hardcode_minus_L_F77=no
Chris@10 15922 hardcode_automatic_F77=no
Chris@10 15923 inherit_rpath_F77=no
Chris@10 15924 module_cmds_F77=
Chris@10 15925 module_expsym_cmds_F77=
Chris@10 15926 link_all_deplibs_F77=unknown
Chris@10 15927 old_archive_cmds_F77=$old_archive_cmds
Chris@10 15928 reload_flag_F77=$reload_flag
Chris@10 15929 reload_cmds_F77=$reload_cmds
Chris@10 15930 no_undefined_flag_F77=
Chris@10 15931 whole_archive_flag_spec_F77=
Chris@10 15932 enable_shared_with_static_runtimes_F77=no
Chris@10 15933
Chris@10 15934 # Source file extension for f77 test sources.
Chris@10 15935 ac_ext=f
Chris@10 15936
Chris@10 15937 # Object file extension for compiled f77 test sources.
Chris@10 15938 objext=o
Chris@10 15939 objext_F77=$objext
Chris@10 15940
Chris@10 15941 # No sense in running all these tests if we already determined that
Chris@10 15942 # the F77 compiler isn't working. Some variables (like enable_shared)
Chris@10 15943 # are currently assumed to apply to all compilers on this platform,
Chris@10 15944 # and will be corrupted by setting them based on a non-working compiler.
Chris@10 15945 if test "$_lt_disable_F77" != yes; then
Chris@10 15946 # Code to be used in simple compile tests
Chris@10 15947 lt_simple_compile_test_code="\
Chris@10 15948 subroutine t
Chris@10 15949 return
Chris@10 15950 end
Chris@10 15951 "
Chris@10 15952
Chris@10 15953 # Code to be used in simple link tests
Chris@10 15954 lt_simple_link_test_code="\
Chris@10 15955 program t
Chris@10 15956 end
Chris@10 15957 "
Chris@10 15958
Chris@10 15959 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
Chris@10 15960
Chris@10 15961
Chris@10 15962
Chris@10 15963
Chris@10 15964
Chris@10 15965
Chris@10 15966 # If no C compiler was specified, use CC.
Chris@10 15967 LTCC=${LTCC-"$CC"}
Chris@10 15968
Chris@10 15969 # If no C compiler flags were specified, use CFLAGS.
Chris@10 15970 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Chris@10 15971
Chris@10 15972 # Allow CC to be a program name with arguments.
Chris@10 15973 compiler=$CC
Chris@10 15974
Chris@10 15975
Chris@10 15976 # save warnings/boilerplate of simple test code
Chris@10 15977 ac_outfile=conftest.$ac_objext
Chris@10 15978 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Chris@10 15979 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@10 15980 _lt_compiler_boilerplate=`cat conftest.err`
Chris@10 15981 $RM conftest*
Chris@10 15982
Chris@10 15983 ac_outfile=conftest.$ac_objext
Chris@10 15984 echo "$lt_simple_link_test_code" >conftest.$ac_ext
Chris@10 15985 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@10 15986 _lt_linker_boilerplate=`cat conftest.err`
Chris@10 15987 $RM -r conftest*
Chris@10 15988
Chris@10 15989
Chris@10 15990 # Allow CC to be a program name with arguments.
Chris@10 15991 lt_save_CC="$CC"
Chris@10 15992 lt_save_GCC=$GCC
Chris@10 15993 lt_save_CFLAGS=$CFLAGS
Chris@10 15994 CC=${F77-"f77"}
Chris@10 15995 CFLAGS=$FFLAGS
Chris@10 15996 compiler=$CC
Chris@10 15997 compiler_F77=$CC
Chris@10 15998 for cc_temp in $compiler""; do
Chris@10 15999 case $cc_temp in
Chris@10 16000 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
Chris@10 16001 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
Chris@10 16002 \-*) ;;
Chris@10 16003 *) break;;
Chris@10 16004 esac
Chris@10 16005 done
Chris@10 16006 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Chris@10 16007
Chris@10 16008 GCC=$G77
Chris@10 16009 if test -n "$compiler"; then
Chris@10 16010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
Chris@10 16011 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
Chris@10 16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
Chris@10 16013 $as_echo "$can_build_shared" >&6; }
Chris@10 16014
Chris@10 16015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
Chris@10 16016 $as_echo_n "checking whether to build shared libraries... " >&6; }
Chris@10 16017 test "$can_build_shared" = "no" && enable_shared=no
Chris@10 16018
Chris@10 16019 # On AIX, shared libraries and static libraries use the same namespace, and
Chris@10 16020 # are all built from PIC.
Chris@10 16021 case $host_os in
Chris@10 16022 aix3*)
Chris@10 16023 test "$enable_shared" = yes && enable_static=no
Chris@10 16024 if test -n "$RANLIB"; then
Chris@10 16025 archive_cmds="$archive_cmds~\$RANLIB \$lib"
Chris@10 16026 postinstall_cmds='$RANLIB $lib'
Chris@10 16027 fi
Chris@10 16028 ;;
Chris@10 16029 aix[4-9]*)
Chris@10 16030 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
Chris@10 16031 test "$enable_shared" = yes && enable_static=no
Chris@10 16032 fi
Chris@10 16033 ;;
Chris@10 16034 esac
Chris@10 16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
Chris@10 16036 $as_echo "$enable_shared" >&6; }
Chris@10 16037
Chris@10 16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
Chris@10 16039 $as_echo_n "checking whether to build static libraries... " >&6; }
Chris@10 16040 # Make sure either enable_shared or enable_static is yes.
Chris@10 16041 test "$enable_shared" = yes || enable_static=yes
Chris@10 16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
Chris@10 16043 $as_echo "$enable_static" >&6; }
Chris@10 16044
Chris@10 16045 GCC_F77="$G77"
Chris@10 16046 LD_F77="$LD"
Chris@10 16047
Chris@10 16048 ## CAVEAT EMPTOR:
Chris@10 16049 ## There is no encapsulation within the following macros, do not change
Chris@10 16050 ## the running order or otherwise move them around unless you know exactly
Chris@10 16051 ## what you are doing...
Chris@10 16052 lt_prog_compiler_wl_F77=
Chris@10 16053 lt_prog_compiler_pic_F77=
Chris@10 16054 lt_prog_compiler_static_F77=
Chris@10 16055
Chris@10 16056
Chris@10 16057 if test "$GCC" = yes; then
Chris@10 16058 lt_prog_compiler_wl_F77='-Wl,'
Chris@10 16059 lt_prog_compiler_static_F77='-static'
Chris@10 16060
Chris@10 16061 case $host_os in
Chris@10 16062 aix*)
Chris@10 16063 # All AIX code is PIC.
Chris@10 16064 if test "$host_cpu" = ia64; then
Chris@10 16065 # AIX 5 now supports IA64 processor
Chris@10 16066 lt_prog_compiler_static_F77='-Bstatic'
Chris@10 16067 fi
Chris@10 16068 ;;
Chris@10 16069
Chris@10 16070 amigaos*)
Chris@10 16071 case $host_cpu in
Chris@10 16072 powerpc)
Chris@10 16073 # see comment about AmigaOS4 .so support
Chris@10 16074 lt_prog_compiler_pic_F77='-fPIC'
Chris@10 16075 ;;
Chris@10 16076 m68k)
Chris@10 16077 # FIXME: we need at least 68020 code to build shared libraries, but
Chris@10 16078 # adding the `-m68020' flag to GCC prevents building anything better,
Chris@10 16079 # like `-m68040'.
Chris@10 16080 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
Chris@10 16081 ;;
Chris@10 16082 esac
Chris@10 16083 ;;
Chris@10 16084
Chris@10 16085 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Chris@10 16086 # PIC is the default for these OSes.
Chris@10 16087 ;;
Chris@10 16088
Chris@10 16089 mingw* | cygwin* | pw32* | os2* | cegcc*)
Chris@10 16090 # This hack is so that the source file can tell whether it is being
Chris@10 16091 # built for inclusion in a dll (and should export symbols for example).
Chris@10 16092 # Although the cygwin gcc ignores -fPIC, still need this for old-style
Chris@10 16093 # (--disable-auto-import) libraries
Chris@10 16094 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
Chris@10 16095 ;;
Chris@10 16096
Chris@10 16097 darwin* | rhapsody*)
Chris@10 16098 # PIC is the default on this platform
Chris@10 16099 # Common symbols not allowed in MH_DYLIB files
Chris@10 16100 lt_prog_compiler_pic_F77='-fno-common'
Chris@10 16101 ;;
Chris@10 16102
Chris@10 16103 haiku*)
Chris@10 16104 # PIC is the default for Haiku.
Chris@10 16105 # The "-static" flag exists, but is broken.
Chris@10 16106 lt_prog_compiler_static_F77=
Chris@10 16107 ;;
Chris@10 16108
Chris@10 16109 hpux*)
Chris@10 16110 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
Chris@10 16111 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
Chris@10 16112 # sets the default TLS model and affects inlining.
Chris@10 16113 case $host_cpu in
Chris@10 16114 hppa*64*)
Chris@10 16115 # +Z the default
Chris@10 16116 ;;
Chris@10 16117 *)
Chris@10 16118 lt_prog_compiler_pic_F77='-fPIC'
Chris@10 16119 ;;
Chris@10 16120 esac
Chris@10 16121 ;;
Chris@10 16122
Chris@10 16123 interix[3-9]*)
Chris@10 16124 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
Chris@10 16125 # Instead, we relocate shared libraries at runtime.
Chris@10 16126 ;;
Chris@10 16127
Chris@10 16128 msdosdjgpp*)
Chris@10 16129 # Just because we use GCC doesn't mean we suddenly get shared libraries
Chris@10 16130 # on systems that don't support them.
Chris@10 16131 lt_prog_compiler_can_build_shared_F77=no
Chris@10 16132 enable_shared=no
Chris@10 16133 ;;
Chris@10 16134
Chris@10 16135 *nto* | *qnx*)
Chris@10 16136 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@10 16137 # it will coredump.
Chris@10 16138 lt_prog_compiler_pic_F77='-fPIC -shared'
Chris@10 16139 ;;
Chris@10 16140
Chris@10 16141 sysv4*MP*)
Chris@10 16142 if test -d /usr/nec; then
Chris@10 16143 lt_prog_compiler_pic_F77=-Kconform_pic
Chris@10 16144 fi
Chris@10 16145 ;;
Chris@10 16146
Chris@10 16147 *)
Chris@10 16148 lt_prog_compiler_pic_F77='-fPIC'
Chris@10 16149 ;;
Chris@10 16150 esac
Chris@10 16151
Chris@10 16152 case $cc_basename in
Chris@10 16153 nvcc*) # Cuda Compiler Driver 2.2
Chris@10 16154 lt_prog_compiler_wl_F77='-Xlinker '
Chris@10 16155 if test -n "$lt_prog_compiler_pic_F77"; then
Chris@10 16156 lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77"
Chris@10 16157 fi
Chris@10 16158 ;;
Chris@10 16159 esac
Chris@10 16160 else
Chris@10 16161 # PORTME Check for flag to pass linker flags through the system compiler.
Chris@10 16162 case $host_os in
Chris@10 16163 aix*)
Chris@10 16164 lt_prog_compiler_wl_F77='-Wl,'
Chris@10 16165 if test "$host_cpu" = ia64; then
Chris@10 16166 # AIX 5 now supports IA64 processor
Chris@10 16167 lt_prog_compiler_static_F77='-Bstatic'
Chris@10 16168 else
Chris@10 16169 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
Chris@10 16170 fi
Chris@10 16171 ;;
Chris@10 16172
Chris@10 16173 mingw* | cygwin* | pw32* | os2* | cegcc*)
Chris@10 16174 # This hack is so that the source file can tell whether it is being
Chris@10 16175 # built for inclusion in a dll (and should export symbols for example).
Chris@10 16176 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
Chris@10 16177 ;;
Chris@10 16178
Chris@10 16179 hpux9* | hpux10* | hpux11*)
Chris@10 16180 lt_prog_compiler_wl_F77='-Wl,'
Chris@10 16181 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
Chris@10 16182 # not for PA HP-UX.
Chris@10 16183 case $host_cpu in
Chris@10 16184 hppa*64*|ia64*)
Chris@10 16185 # +Z the default
Chris@10 16186 ;;
Chris@10 16187 *)
Chris@10 16188 lt_prog_compiler_pic_F77='+Z'
Chris@10 16189 ;;
Chris@10 16190 esac
Chris@10 16191 # Is there a better lt_prog_compiler_static that works with the bundled CC?
Chris@10 16192 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
Chris@10 16193 ;;
Chris@10 16194
Chris@10 16195 irix5* | irix6* | nonstopux*)
Chris@10 16196 lt_prog_compiler_wl_F77='-Wl,'
Chris@10 16197 # PIC (with -KPIC) is the default.
Chris@10 16198 lt_prog_compiler_static_F77='-non_shared'
Chris@10 16199 ;;
Chris@10 16200
Chris@10 16201 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Chris@10 16202 case $cc_basename in
Chris@10 16203 # old Intel for x86_64 which still supported -KPIC.
Chris@10 16204 ecc*)
Chris@10 16205 lt_prog_compiler_wl_F77='-Wl,'
Chris@10 16206 lt_prog_compiler_pic_F77='-KPIC'
Chris@10 16207 lt_prog_compiler_static_F77='-static'
Chris@10 16208 ;;
Chris@10 16209 # icc used to be incompatible with GCC.
Chris@10 16210 # ICC 10 doesn't accept -KPIC any more.
Chris@10 16211 icc* | ifort*)
Chris@10 16212 lt_prog_compiler_wl_F77='-Wl,'
Chris@10 16213 lt_prog_compiler_pic_F77='-fPIC'
Chris@10 16214 lt_prog_compiler_static_F77='-static'
Chris@10 16215 ;;
Chris@10 16216 # Lahey Fortran 8.1.
Chris@10 16217 lf95*)
Chris@10 16218 lt_prog_compiler_wl_F77='-Wl,'
Chris@10 16219 lt_prog_compiler_pic_F77='--shared'
Chris@10 16220 lt_prog_compiler_static_F77='--static'
Chris@10 16221 ;;
Chris@10 16222 nagfor*)
Chris@10 16223 # NAG Fortran compiler
Chris@10 16224 lt_prog_compiler_wl_F77='-Wl,-Wl,,'
Chris@10 16225 lt_prog_compiler_pic_F77='-PIC'
Chris@10 16226 lt_prog_compiler_static_F77='-Bstatic'
Chris@10 16227 ;;
Chris@10 16228 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Chris@10 16229 # Portland Group compilers (*not* the Pentium gcc compiler,
Chris@10 16230 # which looks to be a dead project)
Chris@10 16231 lt_prog_compiler_wl_F77='-Wl,'
Chris@10 16232 lt_prog_compiler_pic_F77='-fpic'
Chris@10 16233 lt_prog_compiler_static_F77='-Bstatic'
Chris@10 16234 ;;
Chris@10 16235 ccc*)
Chris@10 16236 lt_prog_compiler_wl_F77='-Wl,'
Chris@10 16237 # All Alpha code is PIC.
Chris@10 16238 lt_prog_compiler_static_F77='-non_shared'
Chris@10 16239 ;;
Chris@10 16240 xl* | bgxl* | bgf* | mpixl*)
Chris@10 16241 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Chris@10 16242 lt_prog_compiler_wl_F77='-Wl,'
Chris@10 16243 lt_prog_compiler_pic_F77='-qpic'
Chris@10 16244 lt_prog_compiler_static_F77='-qstaticlink'
Chris@10 16245 ;;
Chris@10 16246 *)
Chris@10 16247 case `$CC -V 2>&1 | sed 5q` in
Chris@10 16248 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
Chris@10 16249 # Sun Fortran 8.3 passes all unrecognized flags to the linker
Chris@10 16250 lt_prog_compiler_pic_F77='-KPIC'
Chris@10 16251 lt_prog_compiler_static_F77='-Bstatic'
Chris@10 16252 lt_prog_compiler_wl_F77=''
Chris@10 16253 ;;
Chris@10 16254 *Sun\ F* | *Sun*Fortran*)
Chris@10 16255 lt_prog_compiler_pic_F77='-KPIC'
Chris@10 16256 lt_prog_compiler_static_F77='-Bstatic'
Chris@10 16257 lt_prog_compiler_wl_F77='-Qoption ld '
Chris@10 16258 ;;
Chris@10 16259 *Sun\ C*)
Chris@10 16260 # Sun C 5.9
Chris@10 16261 lt_prog_compiler_pic_F77='-KPIC'
Chris@10 16262 lt_prog_compiler_static_F77='-Bstatic'
Chris@10 16263 lt_prog_compiler_wl_F77='-Wl,'
Chris@10 16264 ;;
Chris@10 16265 *Intel*\ [CF]*Compiler*)
Chris@10 16266 lt_prog_compiler_wl_F77='-Wl,'
Chris@10 16267 lt_prog_compiler_pic_F77='-fPIC'
Chris@10 16268 lt_prog_compiler_static_F77='-static'
Chris@10 16269 ;;
Chris@10 16270 *Portland\ Group*)
Chris@10 16271 lt_prog_compiler_wl_F77='-Wl,'
Chris@10 16272 lt_prog_compiler_pic_F77='-fpic'
Chris@10 16273 lt_prog_compiler_static_F77='-Bstatic'
Chris@10 16274 ;;
Chris@10 16275 esac
Chris@10 16276 ;;
Chris@10 16277 esac
Chris@10 16278 ;;
Chris@10 16279
Chris@10 16280 newsos6)
Chris@10 16281 lt_prog_compiler_pic_F77='-KPIC'
Chris@10 16282 lt_prog_compiler_static_F77='-Bstatic'
Chris@10 16283 ;;
Chris@10 16284
Chris@10 16285 *nto* | *qnx*)
Chris@10 16286 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@10 16287 # it will coredump.
Chris@10 16288 lt_prog_compiler_pic_F77='-fPIC -shared'
Chris@10 16289 ;;
Chris@10 16290
Chris@10 16291 osf3* | osf4* | osf5*)
Chris@10 16292 lt_prog_compiler_wl_F77='-Wl,'
Chris@10 16293 # All OSF/1 code is PIC.
Chris@10 16294 lt_prog_compiler_static_F77='-non_shared'
Chris@10 16295 ;;
Chris@10 16296
Chris@10 16297 rdos*)
Chris@10 16298 lt_prog_compiler_static_F77='-non_shared'
Chris@10 16299 ;;
Chris@10 16300
Chris@10 16301 solaris*)
Chris@10 16302 lt_prog_compiler_pic_F77='-KPIC'
Chris@10 16303 lt_prog_compiler_static_F77='-Bstatic'
Chris@10 16304 case $cc_basename in
Chris@10 16305 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Chris@10 16306 lt_prog_compiler_wl_F77='-Qoption ld ';;
Chris@10 16307 *)
Chris@10 16308 lt_prog_compiler_wl_F77='-Wl,';;
Chris@10 16309 esac
Chris@10 16310 ;;
Chris@10 16311
Chris@10 16312 sunos4*)
Chris@10 16313 lt_prog_compiler_wl_F77='-Qoption ld '
Chris@10 16314 lt_prog_compiler_pic_F77='-PIC'
Chris@10 16315 lt_prog_compiler_static_F77='-Bstatic'
Chris@10 16316 ;;
Chris@10 16317
Chris@10 16318 sysv4 | sysv4.2uw2* | sysv4.3*)
Chris@10 16319 lt_prog_compiler_wl_F77='-Wl,'
Chris@10 16320 lt_prog_compiler_pic_F77='-KPIC'
Chris@10 16321 lt_prog_compiler_static_F77='-Bstatic'
Chris@10 16322 ;;
Chris@10 16323
Chris@10 16324 sysv4*MP*)
Chris@10 16325 if test -d /usr/nec ;then
Chris@10 16326 lt_prog_compiler_pic_F77='-Kconform_pic'
Chris@10 16327 lt_prog_compiler_static_F77='-Bstatic'
Chris@10 16328 fi
Chris@10 16329 ;;
Chris@10 16330
Chris@10 16331 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
Chris@10 16332 lt_prog_compiler_wl_F77='-Wl,'
Chris@10 16333 lt_prog_compiler_pic_F77='-KPIC'
Chris@10 16334 lt_prog_compiler_static_F77='-Bstatic'
Chris@10 16335 ;;
Chris@10 16336
Chris@10 16337 unicos*)
Chris@10 16338 lt_prog_compiler_wl_F77='-Wl,'
Chris@10 16339 lt_prog_compiler_can_build_shared_F77=no
Chris@10 16340 ;;
Chris@10 16341
Chris@10 16342 uts4*)
Chris@10 16343 lt_prog_compiler_pic_F77='-pic'
Chris@10 16344 lt_prog_compiler_static_F77='-Bstatic'
Chris@10 16345 ;;
Chris@10 16346
Chris@10 16347 *)
Chris@10 16348 lt_prog_compiler_can_build_shared_F77=no
Chris@10 16349 ;;
Chris@10 16350 esac
Chris@10 16351 fi
Chris@10 16352
Chris@10 16353 case $host_os in
Chris@10 16354 # For platforms which do not support PIC, -DPIC is meaningless:
Chris@10 16355 *djgpp*)
Chris@10 16356 lt_prog_compiler_pic_F77=
Chris@10 16357 ;;
Chris@10 16358 *)
Chris@10 16359 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
Chris@10 16360 ;;
Chris@10 16361 esac
Chris@10 16362
Chris@10 16363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
Chris@10 16364 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Chris@10 16365 if ${lt_cv_prog_compiler_pic_F77+:} false; then :
Chris@10 16366 $as_echo_n "(cached) " >&6
Chris@10 16367 else
Chris@10 16368 lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77
Chris@10 16369 fi
Chris@10 16370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5
Chris@10 16371 $as_echo "$lt_cv_prog_compiler_pic_F77" >&6; }
Chris@10 16372 lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77
Chris@10 16373
Chris@10 16374 #
Chris@10 16375 # Check to make sure the PIC flag actually works.
Chris@10 16376 #
Chris@10 16377 if test -n "$lt_prog_compiler_pic_F77"; then
Chris@10 16378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
Chris@10 16379 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
Chris@10 16380 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
Chris@10 16381 $as_echo_n "(cached) " >&6
Chris@10 16382 else
Chris@10 16383 lt_cv_prog_compiler_pic_works_F77=no
Chris@10 16384 ac_outfile=conftest.$ac_objext
Chris@10 16385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@10 16386 lt_compiler_flag="$lt_prog_compiler_pic_F77"
Chris@10 16387 # Insert the option either (1) after the last *FLAGS variable, or
Chris@10 16388 # (2) before a word containing "conftest.", or (3) at the end.
Chris@10 16389 # Note that $ac_compile itself does not contain backslashes and begins
Chris@10 16390 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@10 16391 # The option is referenced via a variable to avoid confusing sed.
Chris@10 16392 lt_compile=`echo "$ac_compile" | $SED \
Chris@10 16393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@10 16394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@10 16395 -e 's:$: $lt_compiler_flag:'`
Chris@10 16396 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@10 16397 (eval "$lt_compile" 2>conftest.err)
Chris@10 16398 ac_status=$?
Chris@10 16399 cat conftest.err >&5
Chris@10 16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@10 16401 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@10 16402 # The compiler can only warn and ignore the option if not recognized
Chris@10 16403 # So say no if there are warnings other than the usual output.
Chris@10 16404 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Chris@10 16405 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@10 16406 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Chris@10 16407 lt_cv_prog_compiler_pic_works_F77=yes
Chris@10 16408 fi
Chris@10 16409 fi
Chris@10 16410 $RM conftest*
Chris@10 16411
Chris@10 16412 fi
Chris@10 16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
Chris@10 16414 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
Chris@10 16415
Chris@10 16416 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
Chris@10 16417 case $lt_prog_compiler_pic_F77 in
Chris@10 16418 "" | " "*) ;;
Chris@10 16419 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
Chris@10 16420 esac
Chris@10 16421 else
Chris@10 16422 lt_prog_compiler_pic_F77=
Chris@10 16423 lt_prog_compiler_can_build_shared_F77=no
Chris@10 16424 fi
Chris@10 16425
Chris@10 16426 fi
Chris@10 16427
Chris@10 16428
Chris@10 16429
Chris@10 16430
Chris@10 16431
Chris@10 16432 #
Chris@10 16433 # Check to make sure the static flag actually works.
Chris@10 16434 #
Chris@10 16435 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
Chris@10 16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
Chris@10 16437 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Chris@10 16438 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
Chris@10 16439 $as_echo_n "(cached) " >&6
Chris@10 16440 else
Chris@10 16441 lt_cv_prog_compiler_static_works_F77=no
Chris@10 16442 save_LDFLAGS="$LDFLAGS"
Chris@10 16443 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Chris@10 16444 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Chris@10 16445 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Chris@10 16446 # The linker can only warn and ignore the option if not recognized
Chris@10 16447 # So say no if there are warnings
Chris@10 16448 if test -s conftest.err; then
Chris@10 16449 # Append any errors to the config.log.
Chris@10 16450 cat conftest.err 1>&5
Chris@10 16451 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Chris@10 16452 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@10 16453 if diff conftest.exp conftest.er2 >/dev/null; then
Chris@10 16454 lt_cv_prog_compiler_static_works_F77=yes
Chris@10 16455 fi
Chris@10 16456 else
Chris@10 16457 lt_cv_prog_compiler_static_works_F77=yes
Chris@10 16458 fi
Chris@10 16459 fi
Chris@10 16460 $RM -r conftest*
Chris@10 16461 LDFLAGS="$save_LDFLAGS"
Chris@10 16462
Chris@10 16463 fi
Chris@10 16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
Chris@10 16465 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
Chris@10 16466
Chris@10 16467 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
Chris@10 16468 :
Chris@10 16469 else
Chris@10 16470 lt_prog_compiler_static_F77=
Chris@10 16471 fi
Chris@10 16472
Chris@10 16473
Chris@10 16474
Chris@10 16475
Chris@10 16476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@10 16477 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@10 16478 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
Chris@10 16479 $as_echo_n "(cached) " >&6
Chris@10 16480 else
Chris@10 16481 lt_cv_prog_compiler_c_o_F77=no
Chris@10 16482 $RM -r conftest 2>/dev/null
Chris@10 16483 mkdir conftest
Chris@10 16484 cd conftest
Chris@10 16485 mkdir out
Chris@10 16486 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@10 16487
Chris@10 16488 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@10 16489 # Insert the option either (1) after the last *FLAGS variable, or
Chris@10 16490 # (2) before a word containing "conftest.", or (3) at the end.
Chris@10 16491 # Note that $ac_compile itself does not contain backslashes and begins
Chris@10 16492 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@10 16493 lt_compile=`echo "$ac_compile" | $SED \
Chris@10 16494 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@10 16495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@10 16496 -e 's:$: $lt_compiler_flag:'`
Chris@10 16497 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@10 16498 (eval "$lt_compile" 2>out/conftest.err)
Chris@10 16499 ac_status=$?
Chris@10 16500 cat out/conftest.err >&5
Chris@10 16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@10 16502 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@10 16503 then
Chris@10 16504 # The compiler can only warn and ignore the option if not recognized
Chris@10 16505 # So say no if there are warnings
Chris@10 16506 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@10 16507 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@10 16508 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@10 16509 lt_cv_prog_compiler_c_o_F77=yes
Chris@10 16510 fi
Chris@10 16511 fi
Chris@10 16512 chmod u+w . 2>&5
Chris@10 16513 $RM conftest*
Chris@10 16514 # SGI C++ compiler will create directory out/ii_files/ for
Chris@10 16515 # template instantiation
Chris@10 16516 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@10 16517 $RM out/* && rmdir out
Chris@10 16518 cd ..
Chris@10 16519 $RM -r conftest
Chris@10 16520 $RM conftest*
Chris@10 16521
Chris@10 16522 fi
Chris@10 16523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
Chris@10 16524 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
Chris@10 16525
Chris@10 16526
Chris@10 16527
Chris@10 16528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@10 16529 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@10 16530 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
Chris@10 16531 $as_echo_n "(cached) " >&6
Chris@10 16532 else
Chris@10 16533 lt_cv_prog_compiler_c_o_F77=no
Chris@10 16534 $RM -r conftest 2>/dev/null
Chris@10 16535 mkdir conftest
Chris@10 16536 cd conftest
Chris@10 16537 mkdir out
Chris@10 16538 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@10 16539
Chris@10 16540 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@10 16541 # Insert the option either (1) after the last *FLAGS variable, or
Chris@10 16542 # (2) before a word containing "conftest.", or (3) at the end.
Chris@10 16543 # Note that $ac_compile itself does not contain backslashes and begins
Chris@10 16544 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@10 16545 lt_compile=`echo "$ac_compile" | $SED \
Chris@10 16546 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@10 16547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@10 16548 -e 's:$: $lt_compiler_flag:'`
Chris@10 16549 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@10 16550 (eval "$lt_compile" 2>out/conftest.err)
Chris@10 16551 ac_status=$?
Chris@10 16552 cat out/conftest.err >&5
Chris@10 16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@10 16554 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@10 16555 then
Chris@10 16556 # The compiler can only warn and ignore the option if not recognized
Chris@10 16557 # So say no if there are warnings
Chris@10 16558 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@10 16559 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@10 16560 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@10 16561 lt_cv_prog_compiler_c_o_F77=yes
Chris@10 16562 fi
Chris@10 16563 fi
Chris@10 16564 chmod u+w . 2>&5
Chris@10 16565 $RM conftest*
Chris@10 16566 # SGI C++ compiler will create directory out/ii_files/ for
Chris@10 16567 # template instantiation
Chris@10 16568 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@10 16569 $RM out/* && rmdir out
Chris@10 16570 cd ..
Chris@10 16571 $RM -r conftest
Chris@10 16572 $RM conftest*
Chris@10 16573
Chris@10 16574 fi
Chris@10 16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
Chris@10 16576 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
Chris@10 16577
Chris@10 16578
Chris@10 16579
Chris@10 16580
Chris@10 16581 hard_links="nottested"
Chris@10 16582 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
Chris@10 16583 # do not overwrite the value of need_locks provided by the user
Chris@10 16584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Chris@10 16585 $as_echo_n "checking if we can lock with hard links... " >&6; }
Chris@10 16586 hard_links=yes
Chris@10 16587 $RM conftest*
Chris@10 16588 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@10 16589 touch conftest.a
Chris@10 16590 ln conftest.a conftest.b 2>&5 || hard_links=no
Chris@10 16591 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@10 16592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Chris@10 16593 $as_echo "$hard_links" >&6; }
Chris@10 16594 if test "$hard_links" = no; then
Chris@10 16595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
Chris@10 16596 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
Chris@10 16597 need_locks=warn
Chris@10 16598 fi
Chris@10 16599 else
Chris@10 16600 need_locks=no
Chris@10 16601 fi
Chris@10 16602
Chris@10 16603
Chris@10 16604
Chris@10 16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Chris@10 16606 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Chris@10 16607
Chris@10 16608 runpath_var=
Chris@10 16609 allow_undefined_flag_F77=
Chris@10 16610 always_export_symbols_F77=no
Chris@10 16611 archive_cmds_F77=
Chris@10 16612 archive_expsym_cmds_F77=
Chris@10 16613 compiler_needs_object_F77=no
Chris@10 16614 enable_shared_with_static_runtimes_F77=no
Chris@10 16615 export_dynamic_flag_spec_F77=
Chris@10 16616 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Chris@10 16617 hardcode_automatic_F77=no
Chris@10 16618 hardcode_direct_F77=no
Chris@10 16619 hardcode_direct_absolute_F77=no
Chris@10 16620 hardcode_libdir_flag_spec_F77=
Chris@10 16621 hardcode_libdir_separator_F77=
Chris@10 16622 hardcode_minus_L_F77=no
Chris@10 16623 hardcode_shlibpath_var_F77=unsupported
Chris@10 16624 inherit_rpath_F77=no
Chris@10 16625 link_all_deplibs_F77=unknown
Chris@10 16626 module_cmds_F77=
Chris@10 16627 module_expsym_cmds_F77=
Chris@10 16628 old_archive_from_new_cmds_F77=
Chris@10 16629 old_archive_from_expsyms_cmds_F77=
Chris@10 16630 thread_safe_flag_spec_F77=
Chris@10 16631 whole_archive_flag_spec_F77=
Chris@10 16632 # include_expsyms should be a list of space-separated symbols to be *always*
Chris@10 16633 # included in the symbol list
Chris@10 16634 include_expsyms_F77=
Chris@10 16635 # exclude_expsyms can be an extended regexp of symbols to exclude
Chris@10 16636 # it will be wrapped by ` (' and `)$', so one must not match beginning or
Chris@10 16637 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
Chris@10 16638 # as well as any symbol that contains `d'.
Chris@10 16639 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Chris@10 16640 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
Chris@10 16641 # platforms (ab)use it in PIC code, but their linkers get confused if
Chris@10 16642 # the symbol is explicitly referenced. Since portable code cannot
Chris@10 16643 # rely on this symbol name, it's probably fine to never include it in
Chris@10 16644 # preloaded symbol tables.
Chris@10 16645 # Exclude shared library initialization/finalization symbols.
Chris@10 16646 extract_expsyms_cmds=
Chris@10 16647
Chris@10 16648 case $host_os in
Chris@10 16649 cygwin* | mingw* | pw32* | cegcc*)
Chris@10 16650 # FIXME: the MSVC++ port hasn't been tested in a loooong time
Chris@10 16651 # When not using gcc, we currently assume that we are using
Chris@10 16652 # Microsoft Visual C++.
Chris@10 16653 if test "$GCC" != yes; then
Chris@10 16654 with_gnu_ld=no
Chris@10 16655 fi
Chris@10 16656 ;;
Chris@10 16657 interix*)
Chris@10 16658 # we just hope/assume this is gcc and not c89 (= MSVC++)
Chris@10 16659 with_gnu_ld=yes
Chris@10 16660 ;;
Chris@10 16661 openbsd*)
Chris@10 16662 with_gnu_ld=no
Chris@10 16663 ;;
Chris@10 16664 linux* | k*bsd*-gnu | gnu*)
Chris@10 16665 link_all_deplibs_F77=no
Chris@10 16666 ;;
Chris@10 16667 esac
Chris@10 16668
Chris@10 16669 ld_shlibs_F77=yes
Chris@10 16670
Chris@10 16671 # On some targets, GNU ld is compatible enough with the native linker
Chris@10 16672 # that we're better off using the native interface for both.
Chris@10 16673 lt_use_gnu_ld_interface=no
Chris@10 16674 if test "$with_gnu_ld" = yes; then
Chris@10 16675 case $host_os in
Chris@10 16676 aix*)
Chris@10 16677 # The AIX port of GNU ld has always aspired to compatibility
Chris@10 16678 # with the native linker. However, as the warning in the GNU ld
Chris@10 16679 # block says, versions before 2.19.5* couldn't really create working
Chris@10 16680 # shared libraries, regardless of the interface used.
Chris@10 16681 case `$LD -v 2>&1` in
Chris@10 16682 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
Chris@10 16683 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
Chris@10 16684 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
Chris@10 16685 *)
Chris@10 16686 lt_use_gnu_ld_interface=yes
Chris@10 16687 ;;
Chris@10 16688 esac
Chris@10 16689 ;;
Chris@10 16690 *)
Chris@10 16691 lt_use_gnu_ld_interface=yes
Chris@10 16692 ;;
Chris@10 16693 esac
Chris@10 16694 fi
Chris@10 16695
Chris@10 16696 if test "$lt_use_gnu_ld_interface" = yes; then
Chris@10 16697 # If archive_cmds runs LD, not CC, wlarc should be empty
Chris@10 16698 wlarc='${wl}'
Chris@10 16699
Chris@10 16700 # Set some defaults for GNU ld with shared library support. These
Chris@10 16701 # are reset later if shared libraries are not supported. Putting them
Chris@10 16702 # here allows them to be overridden if necessary.
Chris@10 16703 runpath_var=LD_RUN_PATH
Chris@10 16704 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
Chris@10 16705 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
Chris@10 16706 # ancient GNU ld didn't support --whole-archive et. al.
Chris@10 16707 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
Chris@10 16708 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
Chris@10 16709 else
Chris@10 16710 whole_archive_flag_spec_F77=
Chris@10 16711 fi
Chris@10 16712 supports_anon_versioning=no
Chris@10 16713 case `$LD -v 2>&1` in
Chris@10 16714 *GNU\ gold*) supports_anon_versioning=yes ;;
Chris@10 16715 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
Chris@10 16716 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
Chris@10 16717 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
Chris@10 16718 *\ 2.11.*) ;; # other 2.11 versions
Chris@10 16719 *) supports_anon_versioning=yes ;;
Chris@10 16720 esac
Chris@10 16721
Chris@10 16722 # See if GNU ld supports shared libraries.
Chris@10 16723 case $host_os in
Chris@10 16724 aix[3-9]*)
Chris@10 16725 # On AIX/PPC, the GNU linker is very broken
Chris@10 16726 if test "$host_cpu" != ia64; then
Chris@10 16727 ld_shlibs_F77=no
Chris@10 16728 cat <<_LT_EOF 1>&2
Chris@10 16729
Chris@10 16730 *** Warning: the GNU linker, at least up to release 2.19, is reported
Chris@10 16731 *** to be unable to reliably create shared libraries on AIX.
Chris@10 16732 *** Therefore, libtool is disabling shared libraries support. If you
Chris@10 16733 *** really care for shared libraries, you may want to install binutils
Chris@10 16734 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
Chris@10 16735 *** You will then need to restart the configuration process.
Chris@10 16736
Chris@10 16737 _LT_EOF
Chris@10 16738 fi
Chris@10 16739 ;;
Chris@10 16740
Chris@10 16741 amigaos*)
Chris@10 16742 case $host_cpu in
Chris@10 16743 powerpc)
Chris@10 16744 # see comment about AmigaOS4 .so support
Chris@10 16745 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@10 16746 archive_expsym_cmds_F77=''
Chris@10 16747 ;;
Chris@10 16748 m68k)
Chris@10 16749 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@10 16750 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@10 16751 hardcode_minus_L_F77=yes
Chris@10 16752 ;;
Chris@10 16753 esac
Chris@10 16754 ;;
Chris@10 16755
Chris@10 16756 beos*)
Chris@10 16757 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@10 16758 allow_undefined_flag_F77=unsupported
Chris@10 16759 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
Chris@10 16760 # support --undefined. This deserves some investigation. FIXME
Chris@10 16761 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@10 16762 else
Chris@10 16763 ld_shlibs_F77=no
Chris@10 16764 fi
Chris@10 16765 ;;
Chris@10 16766
Chris@10 16767 cygwin* | mingw* | pw32* | cegcc*)
Chris@10 16768 # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
Chris@10 16769 # as there is no search path for DLLs.
Chris@10 16770 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@10 16771 export_dynamic_flag_spec_F77='${wl}--export-all-symbols'
Chris@10 16772 allow_undefined_flag_F77=unsupported
Chris@10 16773 always_export_symbols_F77=no
Chris@10 16774 enable_shared_with_static_runtimes_F77=yes
Chris@10 16775 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@10 16776 exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
Chris@10 16777
Chris@10 16778 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Chris@10 16779 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Chris@10 16780 # If the export-symbols file already is a .def file (1st line
Chris@10 16781 # is EXPORTS), use it as is; otherwise, prepend...
Chris@10 16782 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
Chris@10 16783 cp $export_symbols $output_objdir/$soname.def;
Chris@10 16784 else
Chris@10 16785 echo EXPORTS > $output_objdir/$soname.def;
Chris@10 16786 cat $export_symbols >> $output_objdir/$soname.def;
Chris@10 16787 fi~
Chris@10 16788 $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@10 16789 else
Chris@10 16790 ld_shlibs_F77=no
Chris@10 16791 fi
Chris@10 16792 ;;
Chris@10 16793
Chris@10 16794 haiku*)
Chris@10 16795 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@10 16796 link_all_deplibs_F77=yes
Chris@10 16797 ;;
Chris@10 16798
Chris@10 16799 interix[3-9]*)
Chris@10 16800 hardcode_direct_F77=no
Chris@10 16801 hardcode_shlibpath_var_F77=no
Chris@10 16802 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
Chris@10 16803 export_dynamic_flag_spec_F77='${wl}-E'
Chris@10 16804 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
Chris@10 16805 # Instead, shared libraries are loaded at an image base (0x10000000 by
Chris@10 16806 # default) and relocated if they conflict, which is a slow very memory
Chris@10 16807 # consuming and fragmenting process. To avoid this, we pick a random,
Chris@10 16808 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
Chris@10 16809 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Chris@10 16810 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@10 16811 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@10 16812 ;;
Chris@10 16813
Chris@10 16814 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@10 16815 tmp_diet=no
Chris@10 16816 if test "$host_os" = linux-dietlibc; then
Chris@10 16817 case $cc_basename in
Chris@10 16818 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
Chris@10 16819 esac
Chris@10 16820 fi
Chris@10 16821 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
Chris@10 16822 && test "$tmp_diet" = no
Chris@10 16823 then
Chris@10 16824 tmp_addflag=' $pic_flag'
Chris@10 16825 tmp_sharedflag='-shared'
Chris@10 16826 case $cc_basename,$host_cpu in
Chris@10 16827 pgcc*) # Portland Group C compiler
Chris@10 16828 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@10 16829 tmp_addflag=' $pic_flag'
Chris@10 16830 ;;
Chris@10 16831 pgf77* | pgf90* | pgf95* | pgfortran*)
Chris@10 16832 # Portland Group f77 and f90 compilers
Chris@10 16833 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@10 16834 tmp_addflag=' $pic_flag -Mnomain' ;;
Chris@10 16835 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Chris@10 16836 tmp_addflag=' -i_dynamic' ;;
Chris@10 16837 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
Chris@10 16838 tmp_addflag=' -i_dynamic -nofor_main' ;;
Chris@10 16839 ifc* | ifort*) # Intel Fortran compiler
Chris@10 16840 tmp_addflag=' -nofor_main' ;;
Chris@10 16841 lf95*) # Lahey Fortran 8.1
Chris@10 16842 whole_archive_flag_spec_F77=
Chris@10 16843 tmp_sharedflag='--shared' ;;
Chris@10 16844 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Chris@10 16845 tmp_sharedflag='-qmkshrobj'
Chris@10 16846 tmp_addflag= ;;
Chris@10 16847 nvcc*) # Cuda Compiler Driver 2.2
Chris@10 16848 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@10 16849 compiler_needs_object_F77=yes
Chris@10 16850 ;;
Chris@10 16851 esac
Chris@10 16852 case `$CC -V 2>&1 | sed 5q` in
Chris@10 16853 *Sun\ C*) # Sun C 5.9
Chris@10 16854 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@10 16855 compiler_needs_object_F77=yes
Chris@10 16856 tmp_sharedflag='-G' ;;
Chris@10 16857 *Sun\ F*) # Sun Fortran 8.3
Chris@10 16858 tmp_sharedflag='-G' ;;
Chris@10 16859 esac
Chris@10 16860 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@10 16861
Chris@10 16862 if test "x$supports_anon_versioning" = xyes; then
Chris@10 16863 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
Chris@10 16864 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@10 16865 echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@10 16866 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
Chris@10 16867 fi
Chris@10 16868
Chris@10 16869 case $cc_basename in
Chris@10 16870 xlf* | bgf* | bgxlf* | mpixlf*)
Chris@10 16871 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
Chris@10 16872 whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
Chris@10 16873 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
Chris@10 16874 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Chris@10 16875 if test "x$supports_anon_versioning" = xyes; then
Chris@10 16876 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
Chris@10 16877 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@10 16878 echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@10 16879 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Chris@10 16880 fi
Chris@10 16881 ;;
Chris@10 16882 esac
Chris@10 16883 else
Chris@10 16884 ld_shlibs_F77=no
Chris@10 16885 fi
Chris@10 16886 ;;
Chris@10 16887
Chris@10 16888 netbsd* | netbsdelf*-gnu)
Chris@10 16889 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@10 16890 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
Chris@10 16891 wlarc=
Chris@10 16892 else
Chris@10 16893 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@10 16894 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@10 16895 fi
Chris@10 16896 ;;
Chris@10 16897
Chris@10 16898 solaris*)
Chris@10 16899 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Chris@10 16900 ld_shlibs_F77=no
Chris@10 16901 cat <<_LT_EOF 1>&2
Chris@10 16902
Chris@10 16903 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
Chris@10 16904 *** create shared libraries on Solaris systems. Therefore, libtool
Chris@10 16905 *** is disabling shared libraries support. We urge you to upgrade GNU
Chris@10 16906 *** binutils to release 2.9.1 or newer. Another option is to modify
Chris@10 16907 *** your PATH or compiler configuration so that the native linker is
Chris@10 16908 *** used, and then restart.
Chris@10 16909
Chris@10 16910 _LT_EOF
Chris@10 16911 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@10 16912 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@10 16913 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@10 16914 else
Chris@10 16915 ld_shlibs_F77=no
Chris@10 16916 fi
Chris@10 16917 ;;
Chris@10 16918
Chris@10 16919 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
Chris@10 16920 case `$LD -v 2>&1` in
Chris@10 16921 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
Chris@10 16922 ld_shlibs_F77=no
Chris@10 16923 cat <<_LT_EOF 1>&2
Chris@10 16924
Chris@10 16925 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
Chris@10 16926 *** reliably create shared libraries on SCO systems. Therefore, libtool
Chris@10 16927 *** is disabling shared libraries support. We urge you to upgrade GNU
Chris@10 16928 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
Chris@10 16929 *** your PATH or compiler configuration so that the native linker is
Chris@10 16930 *** used, and then restart.
Chris@10 16931
Chris@10 16932 _LT_EOF
Chris@10 16933 ;;
Chris@10 16934 *)
Chris@10 16935 # For security reasons, it is highly recommended that you always
Chris@10 16936 # use absolute paths for naming shared libraries, and exclude the
Chris@10 16937 # DT_RUNPATH tag from executables and libraries. But doing so
Chris@10 16938 # requires that you compile everything twice, which is a pain.
Chris@10 16939 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@10 16940 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
Chris@10 16941 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@10 16942 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Chris@10 16943 else
Chris@10 16944 ld_shlibs_F77=no
Chris@10 16945 fi
Chris@10 16946 ;;
Chris@10 16947 esac
Chris@10 16948 ;;
Chris@10 16949
Chris@10 16950 sunos4*)
Chris@10 16951 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@10 16952 wlarc=
Chris@10 16953 hardcode_direct_F77=yes
Chris@10 16954 hardcode_shlibpath_var_F77=no
Chris@10 16955 ;;
Chris@10 16956
Chris@10 16957 *)
Chris@10 16958 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@10 16959 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@10 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@10 16961 else
Chris@10 16962 ld_shlibs_F77=no
Chris@10 16963 fi
Chris@10 16964 ;;
Chris@10 16965 esac
Chris@10 16966
Chris@10 16967 if test "$ld_shlibs_F77" = no; then
Chris@10 16968 runpath_var=
Chris@10 16969 hardcode_libdir_flag_spec_F77=
Chris@10 16970 export_dynamic_flag_spec_F77=
Chris@10 16971 whole_archive_flag_spec_F77=
Chris@10 16972 fi
Chris@10 16973 else
Chris@10 16974 # PORTME fill in a description of your system's linker (not GNU ld)
Chris@10 16975 case $host_os in
Chris@10 16976 aix3*)
Chris@10 16977 allow_undefined_flag_F77=unsupported
Chris@10 16978 always_export_symbols_F77=yes
Chris@10 16979 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@10 16980 # Note: this linker hardcodes the directories in LIBPATH if there
Chris@10 16981 # are no directories specified by -L.
Chris@10 16982 hardcode_minus_L_F77=yes
Chris@10 16983 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
Chris@10 16984 # Neither direct hardcoding nor static linking is supported with a
Chris@10 16985 # broken collect2.
Chris@10 16986 hardcode_direct_F77=unsupported
Chris@10 16987 fi
Chris@10 16988 ;;
Chris@10 16989
Chris@10 16990 aix[4-9]*)
Chris@10 16991 if test "$host_cpu" = ia64; then
Chris@10 16992 # On IA64, the linker does run time linking by default, so we don't
Chris@10 16993 # have to do anything special.
Chris@10 16994 aix_use_runtimelinking=no
Chris@10 16995 exp_sym_flag='-Bexport'
Chris@10 16996 no_entry_flag=""
Chris@10 16997 else
Chris@10 16998 # If we're using GNU nm, then we don't want the "-C" option.
Chris@10 16999 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Chris@10 17000 # Also, AIX nm treats weak defined symbols like other global
Chris@10 17001 # defined symbols, whereas GNU nm marks them as "W".
Chris@10 17002 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Chris@10 17003 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@10 17004 else
Chris@10 17005 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@10 17006 fi
Chris@10 17007 aix_use_runtimelinking=no
Chris@10 17008
Chris@10 17009 # Test if we are trying to use run time linking or normal
Chris@10 17010 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Chris@10 17011 # need to do runtime linking.
Chris@10 17012 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Chris@10 17013 for ld_flag in $LDFLAGS; do
Chris@10 17014 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
Chris@10 17015 aix_use_runtimelinking=yes
Chris@10 17016 break
Chris@10 17017 fi
Chris@10 17018 done
Chris@10 17019 ;;
Chris@10 17020 esac
Chris@10 17021
Chris@10 17022 exp_sym_flag='-bexport'
Chris@10 17023 no_entry_flag='-bnoentry'
Chris@10 17024 fi
Chris@10 17025
Chris@10 17026 # When large executables or shared objects are built, AIX ld can
Chris@10 17027 # have problems creating the table of contents. If linking a library
Chris@10 17028 # or program results in "error TOC overflow" add -mminimal-toc to
Chris@10 17029 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
Chris@10 17030 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
Chris@10 17031
Chris@10 17032 archive_cmds_F77=''
Chris@10 17033 hardcode_direct_F77=yes
Chris@10 17034 hardcode_direct_absolute_F77=yes
Chris@10 17035 hardcode_libdir_separator_F77=':'
Chris@10 17036 link_all_deplibs_F77=yes
Chris@10 17037 file_list_spec_F77='${wl}-f,'
Chris@10 17038
Chris@10 17039 if test "$GCC" = yes; then
Chris@10 17040 case $host_os in aix4.[012]|aix4.[012].*)
Chris@10 17041 # We only want to do this on AIX 4.2 and lower, the check
Chris@10 17042 # below for broken collect2 doesn't work under 4.3+
Chris@10 17043 collect2name=`${CC} -print-prog-name=collect2`
Chris@10 17044 if test -f "$collect2name" &&
Chris@10 17045 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Chris@10 17046 then
Chris@10 17047 # We have reworked collect2
Chris@10 17048 :
Chris@10 17049 else
Chris@10 17050 # We have old collect2
Chris@10 17051 hardcode_direct_F77=unsupported
Chris@10 17052 # It fails to find uninstalled libraries when the uninstalled
Chris@10 17053 # path is not listed in the libpath. Setting hardcode_minus_L
Chris@10 17054 # to unsupported forces relinking
Chris@10 17055 hardcode_minus_L_F77=yes
Chris@10 17056 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@10 17057 hardcode_libdir_separator_F77=
Chris@10 17058 fi
Chris@10 17059 ;;
Chris@10 17060 esac
Chris@10 17061 shared_flag='-shared'
Chris@10 17062 if test "$aix_use_runtimelinking" = yes; then
Chris@10 17063 shared_flag="$shared_flag "'${wl}-G'
Chris@10 17064 fi
Chris@10 17065 link_all_deplibs_F77=no
Chris@10 17066 else
Chris@10 17067 # not using gcc
Chris@10 17068 if test "$host_cpu" = ia64; then
Chris@10 17069 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
Chris@10 17070 # chokes on -Wl,-G. The following line is correct:
Chris@10 17071 shared_flag='-G'
Chris@10 17072 else
Chris@10 17073 if test "$aix_use_runtimelinking" = yes; then
Chris@10 17074 shared_flag='${wl}-G'
Chris@10 17075 else
Chris@10 17076 shared_flag='${wl}-bM:SRE'
Chris@10 17077 fi
Chris@10 17078 fi
Chris@10 17079 fi
Chris@10 17080
Chris@10 17081 export_dynamic_flag_spec_F77='${wl}-bexpall'
Chris@10 17082 # It seems that -bexpall does not export symbols beginning with
Chris@10 17083 # underscore (_), so it is better to generate a list of symbols to export.
Chris@10 17084 always_export_symbols_F77=yes
Chris@10 17085 if test "$aix_use_runtimelinking" = yes; then
Chris@10 17086 # Warning - without using the other runtime loading flags (-brtl),
Chris@10 17087 # -berok will link without error, but may produce a broken library.
Chris@10 17088 allow_undefined_flag_F77='-berok'
Chris@10 17089 # Determine the default libpath from the value encoded in an
Chris@10 17090 # empty executable.
Chris@10 17091 if test "${lt_cv_aix_libpath+set}" = set; then
Chris@10 17092 aix_libpath=$lt_cv_aix_libpath
Chris@10 17093 else
Chris@10 17094 if ${lt_cv_aix_libpath__F77+:} false; then :
Chris@10 17095 $as_echo_n "(cached) " >&6
Chris@10 17096 else
Chris@10 17097 cat > conftest.$ac_ext <<_ACEOF
Chris@10 17098 program main
Chris@10 17099
Chris@10 17100 end
Chris@10 17101 _ACEOF
Chris@10 17102 if ac_fn_f77_try_link "$LINENO"; then :
Chris@10 17103
Chris@10 17104 lt_aix_libpath_sed='
Chris@10 17105 /Import File Strings/,/^$/ {
Chris@10 17106 /^0/ {
Chris@10 17107 s/^0 *\([^ ]*\) *$/\1/
Chris@10 17108 p
Chris@10 17109 }
Chris@10 17110 }'
Chris@10 17111 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@10 17112 # Check for a 64-bit object if we didn't find anything.
Chris@10 17113 if test -z "$lt_cv_aix_libpath__F77"; then
Chris@10 17114 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@10 17115 fi
Chris@10 17116 fi
Chris@10 17117 rm -f core conftest.err conftest.$ac_objext \
Chris@10 17118 conftest$ac_exeext conftest.$ac_ext
Chris@10 17119 if test -z "$lt_cv_aix_libpath__F77"; then
Chris@10 17120 lt_cv_aix_libpath__F77="/usr/lib:/lib"
Chris@10 17121 fi
Chris@10 17122
Chris@10 17123 fi
Chris@10 17124
Chris@10 17125 aix_libpath=$lt_cv_aix_libpath__F77
Chris@10 17126 fi
Chris@10 17127
Chris@10 17128 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Chris@10 17129 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@10 17130 else
Chris@10 17131 if test "$host_cpu" = ia64; then
Chris@10 17132 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
Chris@10 17133 allow_undefined_flag_F77="-z nodefs"
Chris@10 17134 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@10 17135 else
Chris@10 17136 # Determine the default libpath from the value encoded in an
Chris@10 17137 # empty executable.
Chris@10 17138 if test "${lt_cv_aix_libpath+set}" = set; then
Chris@10 17139 aix_libpath=$lt_cv_aix_libpath
Chris@10 17140 else
Chris@10 17141 if ${lt_cv_aix_libpath__F77+:} false; then :
Chris@10 17142 $as_echo_n "(cached) " >&6
Chris@10 17143 else
Chris@10 17144 cat > conftest.$ac_ext <<_ACEOF
Chris@10 17145 program main
Chris@10 17146
Chris@10 17147 end
Chris@10 17148 _ACEOF
Chris@10 17149 if ac_fn_f77_try_link "$LINENO"; then :
Chris@10 17150
Chris@10 17151 lt_aix_libpath_sed='
Chris@10 17152 /Import File Strings/,/^$/ {
Chris@10 17153 /^0/ {
Chris@10 17154 s/^0 *\([^ ]*\) *$/\1/
Chris@10 17155 p
Chris@10 17156 }
Chris@10 17157 }'
Chris@10 17158 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@10 17159 # Check for a 64-bit object if we didn't find anything.
Chris@10 17160 if test -z "$lt_cv_aix_libpath__F77"; then
Chris@10 17161 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@10 17162 fi
Chris@10 17163 fi
Chris@10 17164 rm -f core conftest.err conftest.$ac_objext \
Chris@10 17165 conftest$ac_exeext conftest.$ac_ext
Chris@10 17166 if test -z "$lt_cv_aix_libpath__F77"; then
Chris@10 17167 lt_cv_aix_libpath__F77="/usr/lib:/lib"
Chris@10 17168 fi
Chris@10 17169
Chris@10 17170 fi
Chris@10 17171
Chris@10 17172 aix_libpath=$lt_cv_aix_libpath__F77
Chris@10 17173 fi
Chris@10 17174
Chris@10 17175 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Chris@10 17176 # Warning - without using the other run time loading flags,
Chris@10 17177 # -berok will link without error, but may produce a broken library.
Chris@10 17178 no_undefined_flag_F77=' ${wl}-bernotok'
Chris@10 17179 allow_undefined_flag_F77=' ${wl}-berok'
Chris@10 17180 if test "$with_gnu_ld" = yes; then
Chris@10 17181 # We only use this code for GNU lds that support --whole-archive.
Chris@10 17182 whole_archive_flag_spec_F77='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
Chris@10 17183 else
Chris@10 17184 # Exported symbols can be pulled into shared objects from archives
Chris@10 17185 whole_archive_flag_spec_F77='$convenience'
Chris@10 17186 fi
Chris@10 17187 archive_cmds_need_lc_F77=yes
Chris@10 17188 # This is similar to how AIX traditionally builds its shared libraries.
Chris@10 17189 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@10 17190 fi
Chris@10 17191 fi
Chris@10 17192 ;;
Chris@10 17193
Chris@10 17194 amigaos*)
Chris@10 17195 case $host_cpu in
Chris@10 17196 powerpc)
Chris@10 17197 # see comment about AmigaOS4 .so support
Chris@10 17198 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Chris@10 17199 archive_expsym_cmds_F77=''
Chris@10 17200 ;;
Chris@10 17201 m68k)
Chris@10 17202 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@10 17203 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@10 17204 hardcode_minus_L_F77=yes
Chris@10 17205 ;;
Chris@10 17206 esac
Chris@10 17207 ;;
Chris@10 17208
Chris@10 17209 bsdi[45]*)
Chris@10 17210 export_dynamic_flag_spec_F77=-rdynamic
Chris@10 17211 ;;
Chris@10 17212
Chris@10 17213 cygwin* | mingw* | pw32* | cegcc*)
Chris@10 17214 # When not using gcc, we currently assume that we are using
Chris@10 17215 # Microsoft Visual C++.
Chris@10 17216 # hardcode_libdir_flag_spec is actually meaningless, as there is
Chris@10 17217 # no search path for DLLs.
Chris@10 17218 case $cc_basename in
Chris@10 17219 cl*)
Chris@10 17220 # Native MSVC
Chris@10 17221 hardcode_libdir_flag_spec_F77=' '
Chris@10 17222 allow_undefined_flag_F77=unsupported
Chris@10 17223 always_export_symbols_F77=yes
Chris@10 17224 file_list_spec_F77='@'
Chris@10 17225 # Tell ltmain to make .lib files, not .a files.
Chris@10 17226 libext=lib
Chris@10 17227 # Tell ltmain to make .dll files, not .so files.
Chris@10 17228 shrext_cmds=".dll"
Chris@10 17229 # FIXME: Setting linknames here is a bad hack.
Chris@10 17230 archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
Chris@10 17231 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
Chris@10 17232 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
Chris@10 17233 else
Chris@10 17234 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
Chris@10 17235 fi~
Chris@10 17236 $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@10 17237 linknames='
Chris@10 17238 # The linker will not automatically build a static lib if we build a DLL.
Chris@10 17239 # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true'
Chris@10 17240 enable_shared_with_static_runtimes_F77=yes
Chris@10 17241 exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
Chris@10 17242 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@10 17243 # Don't use ranlib
Chris@10 17244 old_postinstall_cmds_F77='chmod 644 $oldlib'
Chris@10 17245 postlink_cmds_F77='lt_outputfile="@OUTPUT@"~
Chris@10 17246 lt_tool_outputfile="@TOOL_OUTPUT@"~
Chris@10 17247 case $lt_outputfile in
Chris@10 17248 *.exe|*.EXE) ;;
Chris@10 17249 *)
Chris@10 17250 lt_outputfile="$lt_outputfile.exe"
Chris@10 17251 lt_tool_outputfile="$lt_tool_outputfile.exe"
Chris@10 17252 ;;
Chris@10 17253 esac~
Chris@10 17254 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
Chris@10 17255 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
Chris@10 17256 $RM "$lt_outputfile.manifest";
Chris@10 17257 fi'
Chris@10 17258 ;;
Chris@10 17259 *)
Chris@10 17260 # Assume MSVC wrapper
Chris@10 17261 hardcode_libdir_flag_spec_F77=' '
Chris@10 17262 allow_undefined_flag_F77=unsupported
Chris@10 17263 # Tell ltmain to make .lib files, not .a files.
Chris@10 17264 libext=lib
Chris@10 17265 # Tell ltmain to make .dll files, not .so files.
Chris@10 17266 shrext_cmds=".dll"
Chris@10 17267 # FIXME: Setting linknames here is a bad hack.
Chris@10 17268 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
Chris@10 17269 # The linker will automatically build a .lib file if we build a DLL.
Chris@10 17270 old_archive_from_new_cmds_F77='true'
Chris@10 17271 # FIXME: Should let the user specify the lib program.
Chris@10 17272 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
Chris@10 17273 enable_shared_with_static_runtimes_F77=yes
Chris@10 17274 ;;
Chris@10 17275 esac
Chris@10 17276 ;;
Chris@10 17277
Chris@10 17278 darwin* | rhapsody*)
Chris@10 17279
Chris@10 17280
Chris@10 17281 archive_cmds_need_lc_F77=no
Chris@10 17282 hardcode_direct_F77=no
Chris@10 17283 hardcode_automatic_F77=yes
Chris@10 17284 hardcode_shlibpath_var_F77=unsupported
Chris@10 17285 if test "$lt_cv_ld_force_load" = "yes"; then
Chris@10 17286 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@10 17287 compiler_needs_object_F77=yes
Chris@10 17288 else
Chris@10 17289 whole_archive_flag_spec_F77=''
Chris@10 17290 fi
Chris@10 17291 link_all_deplibs_F77=yes
Chris@10 17292 allow_undefined_flag_F77="$_lt_dar_allow_undefined"
Chris@10 17293 case $cc_basename in
Chris@10 17294 ifort*) _lt_dar_can_shared=yes ;;
Chris@10 17295 *) _lt_dar_can_shared=$GCC ;;
Chris@10 17296 esac
Chris@10 17297 if test "$_lt_dar_can_shared" = "yes"; then
Chris@10 17298 output_verbose_link_cmd=func_echo_all
Chris@10 17299 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@10 17300 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
Chris@10 17301 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@10 17302 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@10 17303
Chris@10 17304 else
Chris@10 17305 ld_shlibs_F77=no
Chris@10 17306 fi
Chris@10 17307
Chris@10 17308 ;;
Chris@10 17309
Chris@10 17310 dgux*)
Chris@10 17311 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@10 17312 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@10 17313 hardcode_shlibpath_var_F77=no
Chris@10 17314 ;;
Chris@10 17315
Chris@10 17316 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
Chris@10 17317 # support. Future versions do this automatically, but an explicit c++rt0.o
Chris@10 17318 # does not break anything, and helps significantly (at the cost of a little
Chris@10 17319 # extra space).
Chris@10 17320 freebsd2.2*)
Chris@10 17321 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
Chris@10 17322 hardcode_libdir_flag_spec_F77='-R$libdir'
Chris@10 17323 hardcode_direct_F77=yes
Chris@10 17324 hardcode_shlibpath_var_F77=no
Chris@10 17325 ;;
Chris@10 17326
Chris@10 17327 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Chris@10 17328 freebsd2.*)
Chris@10 17329 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@10 17330 hardcode_direct_F77=yes
Chris@10 17331 hardcode_minus_L_F77=yes
Chris@10 17332 hardcode_shlibpath_var_F77=no
Chris@10 17333 ;;
Chris@10 17334
Chris@10 17335 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Chris@10 17336 freebsd* | dragonfly*)
Chris@10 17337 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 17338 hardcode_libdir_flag_spec_F77='-R$libdir'
Chris@10 17339 hardcode_direct_F77=yes
Chris@10 17340 hardcode_shlibpath_var_F77=no
Chris@10 17341 ;;
Chris@10 17342
Chris@10 17343 hpux9*)
Chris@10 17344 if test "$GCC" = yes; then
Chris@10 17345 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@10 17346 else
Chris@10 17347 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@10 17348 fi
Chris@10 17349 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
Chris@10 17350 hardcode_libdir_separator_F77=:
Chris@10 17351 hardcode_direct_F77=yes
Chris@10 17352
Chris@10 17353 # hardcode_minus_L: Not really in the search PATH,
Chris@10 17354 # but as the default location of the library.
Chris@10 17355 hardcode_minus_L_F77=yes
Chris@10 17356 export_dynamic_flag_spec_F77='${wl}-E'
Chris@10 17357 ;;
Chris@10 17358
Chris@10 17359 hpux10*)
Chris@10 17360 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
Chris@10 17361 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 17362 else
Chris@10 17363 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
Chris@10 17364 fi
Chris@10 17365 if test "$with_gnu_ld" = no; then
Chris@10 17366 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
Chris@10 17367 hardcode_libdir_separator_F77=:
Chris@10 17368 hardcode_direct_F77=yes
Chris@10 17369 hardcode_direct_absolute_F77=yes
Chris@10 17370 export_dynamic_flag_spec_F77='${wl}-E'
Chris@10 17371 # hardcode_minus_L: Not really in the search PATH,
Chris@10 17372 # but as the default location of the library.
Chris@10 17373 hardcode_minus_L_F77=yes
Chris@10 17374 fi
Chris@10 17375 ;;
Chris@10 17376
Chris@10 17377 hpux11*)
Chris@10 17378 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
Chris@10 17379 case $host_cpu in
Chris@10 17380 hppa*64*)
Chris@10 17381 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 17382 ;;
Chris@10 17383 ia64*)
Chris@10 17384 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 17385 ;;
Chris@10 17386 *)
Chris@10 17387 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 17388 ;;
Chris@10 17389 esac
Chris@10 17390 else
Chris@10 17391 case $host_cpu in
Chris@10 17392 hppa*64*)
Chris@10 17393 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 17394 ;;
Chris@10 17395 ia64*)
Chris@10 17396 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 17397 ;;
Chris@10 17398 *)
Chris@10 17399 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 17400 ;;
Chris@10 17401 esac
Chris@10 17402 fi
Chris@10 17403 if test "$with_gnu_ld" = no; then
Chris@10 17404 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
Chris@10 17405 hardcode_libdir_separator_F77=:
Chris@10 17406
Chris@10 17407 case $host_cpu in
Chris@10 17408 hppa*64*|ia64*)
Chris@10 17409 hardcode_direct_F77=no
Chris@10 17410 hardcode_shlibpath_var_F77=no
Chris@10 17411 ;;
Chris@10 17412 *)
Chris@10 17413 hardcode_direct_F77=yes
Chris@10 17414 hardcode_direct_absolute_F77=yes
Chris@10 17415 export_dynamic_flag_spec_F77='${wl}-E'
Chris@10 17416
Chris@10 17417 # hardcode_minus_L: Not really in the search PATH,
Chris@10 17418 # but as the default location of the library.
Chris@10 17419 hardcode_minus_L_F77=yes
Chris@10 17420 ;;
Chris@10 17421 esac
Chris@10 17422 fi
Chris@10 17423 ;;
Chris@10 17424
Chris@10 17425 irix5* | irix6* | nonstopux*)
Chris@10 17426 if test "$GCC" = yes; then
Chris@10 17427 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@10 17428 # Try to use the -exported_symbol ld option, if it does not
Chris@10 17429 # work, assume that -exports_file does not work either and
Chris@10 17430 # implicitly export all symbols.
Chris@10 17431 # This should be the same for all languages, so no per-tag cache variable.
Chris@10 17432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
Chris@10 17433 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
Chris@10 17434 if ${lt_cv_irix_exported_symbol+:} false; then :
Chris@10 17435 $as_echo_n "(cached) " >&6
Chris@10 17436 else
Chris@10 17437 save_LDFLAGS="$LDFLAGS"
Chris@10 17438 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
Chris@10 17439 cat > conftest.$ac_ext <<_ACEOF
Chris@10 17440
Chris@10 17441 subroutine foo
Chris@10 17442 end
Chris@10 17443 _ACEOF
Chris@10 17444 if ac_fn_f77_try_link "$LINENO"; then :
Chris@10 17445 lt_cv_irix_exported_symbol=yes
Chris@10 17446 else
Chris@10 17447 lt_cv_irix_exported_symbol=no
Chris@10 17448 fi
Chris@10 17449 rm -f core conftest.err conftest.$ac_objext \
Chris@10 17450 conftest$ac_exeext conftest.$ac_ext
Chris@10 17451 LDFLAGS="$save_LDFLAGS"
Chris@10 17452 fi
Chris@10 17453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
Chris@10 17454 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
Chris@10 17455 if test "$lt_cv_irix_exported_symbol" = yes; then
Chris@10 17456 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@10 17457 fi
Chris@10 17458 else
Chris@10 17459 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@10 17460 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@10 17461 fi
Chris@10 17462 archive_cmds_need_lc_F77='no'
Chris@10 17463 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
Chris@10 17464 hardcode_libdir_separator_F77=:
Chris@10 17465 inherit_rpath_F77=yes
Chris@10 17466 link_all_deplibs_F77=yes
Chris@10 17467 ;;
Chris@10 17468
Chris@10 17469 netbsd* | netbsdelf*-gnu)
Chris@10 17470 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@10 17471 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
Chris@10 17472 else
Chris@10 17473 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
Chris@10 17474 fi
Chris@10 17475 hardcode_libdir_flag_spec_F77='-R$libdir'
Chris@10 17476 hardcode_direct_F77=yes
Chris@10 17477 hardcode_shlibpath_var_F77=no
Chris@10 17478 ;;
Chris@10 17479
Chris@10 17480 newsos6)
Chris@10 17481 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@10 17482 hardcode_direct_F77=yes
Chris@10 17483 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
Chris@10 17484 hardcode_libdir_separator_F77=:
Chris@10 17485 hardcode_shlibpath_var_F77=no
Chris@10 17486 ;;
Chris@10 17487
Chris@10 17488 *nto* | *qnx*)
Chris@10 17489 ;;
Chris@10 17490
Chris@10 17491 openbsd*)
Chris@10 17492 if test -f /usr/libexec/ld.so; then
Chris@10 17493 hardcode_direct_F77=yes
Chris@10 17494 hardcode_shlibpath_var_F77=no
Chris@10 17495 hardcode_direct_absolute_F77=yes
Chris@10 17496 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@10 17497 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 17498 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
Chris@10 17499 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
Chris@10 17500 export_dynamic_flag_spec_F77='${wl}-E'
Chris@10 17501 else
Chris@10 17502 case $host_os in
Chris@10 17503 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
Chris@10 17504 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@10 17505 hardcode_libdir_flag_spec_F77='-R$libdir'
Chris@10 17506 ;;
Chris@10 17507 *)
Chris@10 17508 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 17509 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
Chris@10 17510 ;;
Chris@10 17511 esac
Chris@10 17512 fi
Chris@10 17513 else
Chris@10 17514 ld_shlibs_F77=no
Chris@10 17515 fi
Chris@10 17516 ;;
Chris@10 17517
Chris@10 17518 os2*)
Chris@10 17519 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@10 17520 hardcode_minus_L_F77=yes
Chris@10 17521 allow_undefined_flag_F77=unsupported
Chris@10 17522 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@10 17523 old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
Chris@10 17524 ;;
Chris@10 17525
Chris@10 17526 osf3*)
Chris@10 17527 if test "$GCC" = yes; then
Chris@10 17528 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
Chris@10 17529 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@10 17530 else
Chris@10 17531 allow_undefined_flag_F77=' -expect_unresolved \*'
Chris@10 17532 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@10 17533 fi
Chris@10 17534 archive_cmds_need_lc_F77='no'
Chris@10 17535 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
Chris@10 17536 hardcode_libdir_separator_F77=:
Chris@10 17537 ;;
Chris@10 17538
Chris@10 17539 osf4* | osf5*) # as osf3* with the addition of -msym flag
Chris@10 17540 if test "$GCC" = yes; then
Chris@10 17541 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
Chris@10 17542 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@10 17543 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
Chris@10 17544 else
Chris@10 17545 allow_undefined_flag_F77=' -expect_unresolved \*'
Chris@10 17546 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@10 17547 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@10 17548 $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@10 17549
Chris@10 17550 # Both c and cxx compiler support -rpath directly
Chris@10 17551 hardcode_libdir_flag_spec_F77='-rpath $libdir'
Chris@10 17552 fi
Chris@10 17553 archive_cmds_need_lc_F77='no'
Chris@10 17554 hardcode_libdir_separator_F77=:
Chris@10 17555 ;;
Chris@10 17556
Chris@10 17557 solaris*)
Chris@10 17558 no_undefined_flag_F77=' -z defs'
Chris@10 17559 if test "$GCC" = yes; then
Chris@10 17560 wlarc='${wl}'
Chris@10 17561 archive_cmds_F77='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 17562 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@10 17563 $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@10 17564 else
Chris@10 17565 case `$CC -V 2>&1` in
Chris@10 17566 *"Compilers 5.0"*)
Chris@10 17567 wlarc=''
Chris@10 17568 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@10 17569 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@10 17570 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
Chris@10 17571 ;;
Chris@10 17572 *)
Chris@10 17573 wlarc='${wl}'
Chris@10 17574 archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 17575 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@10 17576 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Chris@10 17577 ;;
Chris@10 17578 esac
Chris@10 17579 fi
Chris@10 17580 hardcode_libdir_flag_spec_F77='-R$libdir'
Chris@10 17581 hardcode_shlibpath_var_F77=no
Chris@10 17582 case $host_os in
Chris@10 17583 solaris2.[0-5] | solaris2.[0-5].*) ;;
Chris@10 17584 *)
Chris@10 17585 # The compiler driver will combine and reorder linker options,
Chris@10 17586 # but understands `-z linker_flag'. GCC discards it without `$wl',
Chris@10 17587 # but is careful enough not to reorder.
Chris@10 17588 # Supported since Solaris 2.6 (maybe 2.5.1?)
Chris@10 17589 if test "$GCC" = yes; then
Chris@10 17590 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
Chris@10 17591 else
Chris@10 17592 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
Chris@10 17593 fi
Chris@10 17594 ;;
Chris@10 17595 esac
Chris@10 17596 link_all_deplibs_F77=yes
Chris@10 17597 ;;
Chris@10 17598
Chris@10 17599 sunos4*)
Chris@10 17600 if test "x$host_vendor" = xsequent; then
Chris@10 17601 # Use $CC to link under sequent, because it throws in some extra .o
Chris@10 17602 # files that make .init and .fini sections work.
Chris@10 17603 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 17604 else
Chris@10 17605 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
Chris@10 17606 fi
Chris@10 17607 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@10 17608 hardcode_direct_F77=yes
Chris@10 17609 hardcode_minus_L_F77=yes
Chris@10 17610 hardcode_shlibpath_var_F77=no
Chris@10 17611 ;;
Chris@10 17612
Chris@10 17613 sysv4)
Chris@10 17614 case $host_vendor in
Chris@10 17615 sni)
Chris@10 17616 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@10 17617 hardcode_direct_F77=yes # is this really true???
Chris@10 17618 ;;
Chris@10 17619 siemens)
Chris@10 17620 ## LD is ld it makes a PLAMLIB
Chris@10 17621 ## CC just makes a GrossModule.
Chris@10 17622 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
Chris@10 17623 reload_cmds_F77='$CC -r -o $output$reload_objs'
Chris@10 17624 hardcode_direct_F77=no
Chris@10 17625 ;;
Chris@10 17626 motorola)
Chris@10 17627 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@10 17628 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
Chris@10 17629 ;;
Chris@10 17630 esac
Chris@10 17631 runpath_var='LD_RUN_PATH'
Chris@10 17632 hardcode_shlibpath_var_F77=no
Chris@10 17633 ;;
Chris@10 17634
Chris@10 17635 sysv4.3*)
Chris@10 17636 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@10 17637 hardcode_shlibpath_var_F77=no
Chris@10 17638 export_dynamic_flag_spec_F77='-Bexport'
Chris@10 17639 ;;
Chris@10 17640
Chris@10 17641 sysv4*MP*)
Chris@10 17642 if test -d /usr/nec; then
Chris@10 17643 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@10 17644 hardcode_shlibpath_var_F77=no
Chris@10 17645 runpath_var=LD_RUN_PATH
Chris@10 17646 hardcode_runpath_var=yes
Chris@10 17647 ld_shlibs_F77=yes
Chris@10 17648 fi
Chris@10 17649 ;;
Chris@10 17650
Chris@10 17651 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Chris@10 17652 no_undefined_flag_F77='${wl}-z,text'
Chris@10 17653 archive_cmds_need_lc_F77=no
Chris@10 17654 hardcode_shlibpath_var_F77=no
Chris@10 17655 runpath_var='LD_RUN_PATH'
Chris@10 17656
Chris@10 17657 if test "$GCC" = yes; then
Chris@10 17658 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 17659 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 17660 else
Chris@10 17661 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 17662 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 17663 fi
Chris@10 17664 ;;
Chris@10 17665
Chris@10 17666 sysv5* | sco3.2v5* | sco5v6*)
Chris@10 17667 # Note: We can NOT use -z defs as we might desire, because we do not
Chris@10 17668 # link with -lc, and that would cause any symbols used from libc to
Chris@10 17669 # always be unresolved, which means just about no library would
Chris@10 17670 # ever link correctly. If we're not using GNU ld we use -z text
Chris@10 17671 # though, which does catch some bad symbols but isn't as heavy-handed
Chris@10 17672 # as -z defs.
Chris@10 17673 no_undefined_flag_F77='${wl}-z,text'
Chris@10 17674 allow_undefined_flag_F77='${wl}-z,nodefs'
Chris@10 17675 archive_cmds_need_lc_F77=no
Chris@10 17676 hardcode_shlibpath_var_F77=no
Chris@10 17677 hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
Chris@10 17678 hardcode_libdir_separator_F77=':'
Chris@10 17679 link_all_deplibs_F77=yes
Chris@10 17680 export_dynamic_flag_spec_F77='${wl}-Bexport'
Chris@10 17681 runpath_var='LD_RUN_PATH'
Chris@10 17682
Chris@10 17683 if test "$GCC" = yes; then
Chris@10 17684 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 17685 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 17686 else
Chris@10 17687 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 17688 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@10 17689 fi
Chris@10 17690 ;;
Chris@10 17691
Chris@10 17692 uts4*)
Chris@10 17693 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@10 17694 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@10 17695 hardcode_shlibpath_var_F77=no
Chris@10 17696 ;;
Chris@10 17697
Chris@10 17698 *)
Chris@10 17699 ld_shlibs_F77=no
Chris@10 17700 ;;
Chris@10 17701 esac
Chris@10 17702
Chris@10 17703 if test x$host_vendor = xsni; then
Chris@10 17704 case $host in
Chris@10 17705 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Chris@10 17706 export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
Chris@10 17707 ;;
Chris@10 17708 esac
Chris@10 17709 fi
Chris@10 17710 fi
Chris@10 17711
Chris@10 17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
Chris@10 17713 $as_echo "$ld_shlibs_F77" >&6; }
Chris@10 17714 test "$ld_shlibs_F77" = no && can_build_shared=no
Chris@10 17715
Chris@10 17716 with_gnu_ld_F77=$with_gnu_ld
Chris@10 17717
Chris@10 17718
Chris@10 17719
Chris@10 17720
Chris@10 17721
Chris@10 17722
Chris@10 17723 #
Chris@10 17724 # Do we need to explicitly link libc?
Chris@10 17725 #
Chris@10 17726 case "x$archive_cmds_need_lc_F77" in
Chris@10 17727 x|xyes)
Chris@10 17728 # Assume -lc should be added
Chris@10 17729 archive_cmds_need_lc_F77=yes
Chris@10 17730
Chris@10 17731 if test "$enable_shared" = yes && test "$GCC" = yes; then
Chris@10 17732 case $archive_cmds_F77 in
Chris@10 17733 *'~'*)
Chris@10 17734 # FIXME: we may have to deal with multi-command sequences.
Chris@10 17735 ;;
Chris@10 17736 '$CC '*)
Chris@10 17737 # Test whether the compiler implicitly links with -lc since on some
Chris@10 17738 # systems, -lgcc has to come before -lc. If gcc already passes -lc
Chris@10 17739 # to ld, don't add -lc before -lgcc.
Chris@10 17740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Chris@10 17741 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Chris@10 17742 if ${lt_cv_archive_cmds_need_lc_F77+:} false; then :
Chris@10 17743 $as_echo_n "(cached) " >&6
Chris@10 17744 else
Chris@10 17745 $RM conftest*
Chris@10 17746 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@10 17747
Chris@10 17748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@10 17749 (eval $ac_compile) 2>&5
Chris@10 17750 ac_status=$?
Chris@10 17751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 17752 test $ac_status = 0; } 2>conftest.err; then
Chris@10 17753 soname=conftest
Chris@10 17754 lib=conftest
Chris@10 17755 libobjs=conftest.$ac_objext
Chris@10 17756 deplibs=
Chris@10 17757 wl=$lt_prog_compiler_wl_F77
Chris@10 17758 pic_flag=$lt_prog_compiler_pic_F77
Chris@10 17759 compiler_flags=-v
Chris@10 17760 linker_flags=-v
Chris@10 17761 verstring=
Chris@10 17762 output_objdir=.
Chris@10 17763 libname=conftest
Chris@10 17764 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
Chris@10 17765 allow_undefined_flag_F77=
Chris@10 17766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Chris@10 17767 (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Chris@10 17768 ac_status=$?
Chris@10 17769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@10 17770 test $ac_status = 0; }
Chris@10 17771 then
Chris@10 17772 lt_cv_archive_cmds_need_lc_F77=no
Chris@10 17773 else
Chris@10 17774 lt_cv_archive_cmds_need_lc_F77=yes
Chris@10 17775 fi
Chris@10 17776 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
Chris@10 17777 else
Chris@10 17778 cat conftest.err 1>&5
Chris@10 17779 fi
Chris@10 17780 $RM conftest*
Chris@10 17781
Chris@10 17782 fi
Chris@10 17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5
Chris@10 17784 $as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; }
Chris@10 17785 archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77
Chris@10 17786 ;;
Chris@10 17787 esac
Chris@10 17788 fi
Chris@10 17789 ;;
Chris@10 17790 esac
Chris@10 17791
Chris@10 17792
Chris@10 17793
Chris@10 17794
Chris@10 17795
Chris@10 17796
Chris@10 17797
Chris@10 17798
Chris@10 17799
Chris@10 17800
Chris@10 17801
Chris@10 17802
Chris@10 17803
Chris@10 17804
Chris@10 17805
Chris@10 17806
Chris@10 17807
Chris@10 17808
Chris@10 17809
Chris@10 17810
Chris@10 17811
Chris@10 17812
Chris@10 17813
Chris@10 17814
Chris@10 17815
Chris@10 17816
Chris@10 17817
Chris@10 17818
Chris@10 17819
Chris@10 17820
Chris@10 17821
Chris@10 17822
Chris@10 17823
Chris@10 17824
Chris@10 17825
Chris@10 17826
Chris@10 17827
Chris@10 17828
Chris@10 17829
Chris@10 17830
Chris@10 17831
Chris@10 17832
Chris@10 17833
Chris@10 17834
Chris@10 17835
Chris@10 17836
Chris@10 17837
Chris@10 17838
Chris@10 17839
Chris@10 17840
Chris@10 17841
Chris@10 17842
Chris@10 17843
Chris@10 17844
Chris@10 17845
Chris@10 17846
Chris@10 17847
Chris@10 17848
Chris@10 17849
Chris@10 17850
Chris@10 17851
Chris@10 17852
Chris@10 17853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Chris@10 17854 $as_echo_n "checking dynamic linker characteristics... " >&6; }
Chris@10 17855
Chris@10 17856 library_names_spec=
Chris@10 17857 libname_spec='lib$name'
Chris@10 17858 soname_spec=
Chris@10 17859 shrext_cmds=".so"
Chris@10 17860 postinstall_cmds=
Chris@10 17861 postuninstall_cmds=
Chris@10 17862 finish_cmds=
Chris@10 17863 finish_eval=
Chris@10 17864 shlibpath_var=
Chris@10 17865 shlibpath_overrides_runpath=unknown
Chris@10 17866 version_type=none
Chris@10 17867 dynamic_linker="$host_os ld.so"
Chris@10 17868 sys_lib_dlsearch_path_spec="/lib /usr/lib"
Chris@10 17869 need_lib_prefix=unknown
Chris@10 17870 hardcode_into_libs=no
Chris@10 17871
Chris@10 17872 # when you set need_version to no, make sure it does not cause -set_version
Chris@10 17873 # flags to be left without arguments
Chris@10 17874 need_version=unknown
Chris@10 17875
Chris@10 17876 case $host_os in
Chris@10 17877 aix3*)
Chris@10 17878 version_type=linux # correct to gnu/linux during the next big refactor
Chris@10 17879 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
Chris@10 17880 shlibpath_var=LIBPATH
Chris@10 17881
Chris@10 17882 # AIX 3 has no versioning support, so we append a major version to the name.
Chris@10 17883 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 17884 ;;
Chris@10 17885
Chris@10 17886 aix[4-9]*)
Chris@10 17887 version_type=linux # correct to gnu/linux during the next big refactor
Chris@10 17888 need_lib_prefix=no
Chris@10 17889 need_version=no
Chris@10 17890 hardcode_into_libs=yes
Chris@10 17891 if test "$host_cpu" = ia64; then
Chris@10 17892 # AIX 5 supports IA64
Chris@10 17893 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
Chris@10 17894 shlibpath_var=LD_LIBRARY_PATH
Chris@10 17895 else
Chris@10 17896 # With GCC up to 2.95.x, collect2 would create an import file
Chris@10 17897 # for dependence libraries. The import file would start with
Chris@10 17898 # the line `#! .'. This would cause the generated library to
Chris@10 17899 # depend on `.', always an invalid library. This was fixed in
Chris@10 17900 # development snapshots of GCC prior to 3.0.
Chris@10 17901 case $host_os in
Chris@10 17902 aix4 | aix4.[01] | aix4.[01].*)
Chris@10 17903 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
Chris@10 17904 echo ' yes '
Chris@10 17905 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
Chris@10 17906 :
Chris@10 17907 else
Chris@10 17908 can_build_shared=no
Chris@10 17909 fi
Chris@10 17910 ;;
Chris@10 17911 esac
Chris@10 17912 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
Chris@10 17913 # soname into executable. Probably we can add versioning support to
Chris@10 17914 # collect2, so additional links can be useful in future.
Chris@10 17915 if test "$aix_use_runtimelinking" = yes; then
Chris@10 17916 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
Chris@10 17917 # instead of lib<name>.a to let people know that these are not
Chris@10 17918 # typical AIX shared libraries.
Chris@10 17919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@10 17920 else
Chris@10 17921 # We preserve .a as extension for shared libraries through AIX4.2
Chris@10 17922 # and later when we are not doing run time linking.
Chris@10 17923 library_names_spec='${libname}${release}.a $libname.a'
Chris@10 17924 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 17925 fi
Chris@10 17926 shlibpath_var=LIBPATH
Chris@10 17927 fi
Chris@10 17928 ;;
Chris@10 17929
Chris@10 17930 amigaos*)
Chris@10 17931 case $host_cpu in
Chris@10 17932 powerpc)
Chris@10 17933 # Since July 2007 AmigaOS4 officially supports .so libraries.
Chris@10 17934 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Chris@10 17935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@10 17936 ;;
Chris@10 17937 m68k)
Chris@10 17938 library_names_spec='$libname.ixlibrary $libname.a'
Chris@10 17939 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Chris@10 17940 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@10 17941 ;;
Chris@10 17942 esac
Chris@10 17943 ;;
Chris@10 17944
Chris@10 17945 beos*)
Chris@10 17946 library_names_spec='${libname}${shared_ext}'
Chris@10 17947 dynamic_linker="$host_os ld.so"
Chris@10 17948 shlibpath_var=LIBRARY_PATH
Chris@10 17949 ;;
Chris@10 17950
Chris@10 17951 bsdi[45]*)
Chris@10 17952 version_type=linux # correct to gnu/linux during the next big refactor
Chris@10 17953 need_version=no
Chris@10 17954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@10 17955 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 17956 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
Chris@10 17957 shlibpath_var=LD_LIBRARY_PATH
Chris@10 17958 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
Chris@10 17959 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
Chris@10 17960 # the default ld.so.conf also contains /usr/contrib/lib and
Chris@10 17961 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
Chris@10 17962 # libtool to hard-code these into programs
Chris@10 17963 ;;
Chris@10 17964
Chris@10 17965 cygwin* | mingw* | pw32* | cegcc*)
Chris@10 17966 version_type=windows
Chris@10 17967 shrext_cmds=".dll"
Chris@10 17968 need_version=no
Chris@10 17969 need_lib_prefix=no
Chris@10 17970
Chris@10 17971 case $GCC,$cc_basename in
Chris@10 17972 yes,*)
Chris@10 17973 # gcc
Chris@10 17974 library_names_spec='$libname.dll.a'
Chris@10 17975 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@10 17976 postinstall_cmds='base_file=`basename \${file}`~
Chris@10 17977 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Chris@10 17978 dldir=$destdir/`dirname \$dlpath`~
Chris@10 17979 test -d \$dldir || mkdir -p \$dldir~
Chris@10 17980 $install_prog $dir/$dlname \$dldir/$dlname~
Chris@10 17981 chmod a+x \$dldir/$dlname~
Chris@10 17982 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
Chris@10 17983 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
Chris@10 17984 fi'
Chris@10 17985 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@10 17986 dlpath=$dir/\$dldll~
Chris@10 17987 $RM \$dlpath'
Chris@10 17988 shlibpath_overrides_runpath=yes
Chris@10 17989
Chris@10 17990 case $host_os in
Chris@10 17991 cygwin*)
Chris@10 17992 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Chris@10 17993 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@10 17994
Chris@10 17995 ;;
Chris@10 17996 mingw* | cegcc*)
Chris@10 17997 # MinGW DLLs use traditional 'lib' prefix
Chris@10 17998 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@10 17999 ;;
Chris@10 18000 pw32*)
Chris@10 18001 # pw32 DLLs use 'pw' prefix rather than 'lib'
Chris@10 18002 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@10 18003 ;;
Chris@10 18004 esac
Chris@10 18005 dynamic_linker='Win32 ld.exe'
Chris@10 18006 ;;
Chris@10 18007
Chris@10 18008 *,cl*)
Chris@10 18009 # Native MSVC
Chris@10 18010 libname_spec='$name'
Chris@10 18011 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris@10 18012 library_names_spec='${libname}.dll.lib'
Chris@10 18013
Chris@10 18014 case $build_os in
Chris@10 18015 mingw*)
Chris@10 18016 sys_lib_search_path_spec=
Chris@10 18017 lt_save_ifs=$IFS
Chris@10 18018 IFS=';'
Chris@10 18019 for lt_path in $LIB
Chris@10 18020 do
Chris@10 18021 IFS=$lt_save_ifs
Chris@10 18022 # Let DOS variable expansion print the short 8.3 style file name.
Chris@10 18023 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
Chris@10 18024 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
Chris@10 18025 done
Chris@10 18026 IFS=$lt_save_ifs
Chris@10 18027 # Convert to MSYS style.
Chris@10 18028 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@10 18029 ;;
Chris@10 18030 cygwin*)
Chris@10 18031 # Convert to unix form, then to dos form, then back to unix form
Chris@10 18032 # but this time dos style (no spaces!) so that the unix form looks
Chris@10 18033 # like /cygdrive/c/PROGRA~1:/cygdr...
Chris@10 18034 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
Chris@10 18035 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
Chris@10 18036 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@10 18037 ;;
Chris@10 18038 *)
Chris@10 18039 sys_lib_search_path_spec="$LIB"
Chris@10 18040 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
Chris@10 18041 # It is most probably a Windows format PATH.
Chris@10 18042 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Chris@10 18043 else
Chris@10 18044 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@10 18045 fi
Chris@10 18046 # FIXME: find the short name or the path components, as spaces are
Chris@10 18047 # common. (e.g. "Program Files" -> "PROGRA~1")
Chris@10 18048 ;;
Chris@10 18049 esac
Chris@10 18050
Chris@10 18051 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@10 18052 postinstall_cmds='base_file=`basename \${file}`~
Chris@10 18053 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Chris@10 18054 dldir=$destdir/`dirname \$dlpath`~
Chris@10 18055 test -d \$dldir || mkdir -p \$dldir~
Chris@10 18056 $install_prog $dir/$dlname \$dldir/$dlname'
Chris@10 18057 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@10 18058 dlpath=$dir/\$dldll~
Chris@10 18059 $RM \$dlpath'
Chris@10 18060 shlibpath_overrides_runpath=yes
Chris@10 18061 dynamic_linker='Win32 link.exe'
Chris@10 18062 ;;
Chris@10 18063
Chris@10 18064 *)
Chris@10 18065 # Assume MSVC wrapper
Chris@10 18066 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Chris@10 18067 dynamic_linker='Win32 ld.exe'
Chris@10 18068 ;;
Chris@10 18069 esac
Chris@10 18070 # FIXME: first we should search . and the directory the executable is in
Chris@10 18071 shlibpath_var=PATH
Chris@10 18072 ;;
Chris@10 18073
Chris@10 18074 darwin* | rhapsody*)
Chris@10 18075 dynamic_linker="$host_os dyld"
Chris@10 18076 version_type=darwin
Chris@10 18077 need_lib_prefix=no
Chris@10 18078 need_version=no
Chris@10 18079 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Chris@10 18080 soname_spec='${libname}${release}${major}$shared_ext'
Chris@10 18081 shlibpath_overrides_runpath=yes
Chris@10 18082 shlibpath_var=DYLD_LIBRARY_PATH
Chris@10 18083 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Chris@10 18084
Chris@10 18085 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
Chris@10 18086 ;;
Chris@10 18087
Chris@10 18088 dgux*)
Chris@10 18089 version_type=linux # correct to gnu/linux during the next big refactor
Chris@10 18090 need_lib_prefix=no
Chris@10 18091 need_version=no
Chris@10 18092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
Chris@10 18093 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 18094 shlibpath_var=LD_LIBRARY_PATH
Chris@10 18095 ;;
Chris@10 18096
Chris@10 18097 freebsd* | dragonfly*)
Chris@10 18098 # DragonFly does not have aout. When/if they implement a new
Chris@10 18099 # versioning mechanism, adjust this.
Chris@10 18100 if test -x /usr/bin/objformat; then
Chris@10 18101 objformat=`/usr/bin/objformat`
Chris@10 18102 else
Chris@10 18103 case $host_os in
Chris@10 18104 freebsd[23].*) objformat=aout ;;
Chris@10 18105 *) objformat=elf ;;
Chris@10 18106 esac
Chris@10 18107 fi
Chris@10 18108 version_type=freebsd-$objformat
Chris@10 18109 case $version_type in
Chris@10 18110 freebsd-elf*)
Chris@10 18111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@10 18112 need_version=no
Chris@10 18113 need_lib_prefix=no
Chris@10 18114 ;;
Chris@10 18115 freebsd-*)
Chris@10 18116 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
Chris@10 18117 need_version=yes
Chris@10 18118 ;;
Chris@10 18119 esac
Chris@10 18120 shlibpath_var=LD_LIBRARY_PATH
Chris@10 18121 case $host_os in
Chris@10 18122 freebsd2.*)
Chris@10 18123 shlibpath_overrides_runpath=yes
Chris@10 18124 ;;
Chris@10 18125 freebsd3.[01]* | freebsdelf3.[01]*)
Chris@10 18126 shlibpath_overrides_runpath=yes
Chris@10 18127 hardcode_into_libs=yes
Chris@10 18128 ;;
Chris@10 18129 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
Chris@10 18130 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Chris@10 18131 shlibpath_overrides_runpath=no
Chris@10 18132 hardcode_into_libs=yes
Chris@10 18133 ;;
Chris@10 18134 *) # from 4.6 on, and DragonFly
Chris@10 18135 shlibpath_overrides_runpath=yes
Chris@10 18136 hardcode_into_libs=yes
Chris@10 18137 ;;
Chris@10 18138 esac
Chris@10 18139 ;;
Chris@10 18140
Chris@10 18141 haiku*)
Chris@10 18142 version_type=linux # correct to gnu/linux during the next big refactor
Chris@10 18143 need_lib_prefix=no
Chris@10 18144 need_version=no
Chris@10 18145 dynamic_linker="$host_os runtime_loader"
Chris@10 18146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
Chris@10 18147 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 18148 shlibpath_var=LIBRARY_PATH
Chris@10 18149 shlibpath_overrides_runpath=yes
Chris@10 18150 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Chris@10 18151 hardcode_into_libs=yes
Chris@10 18152 ;;
Chris@10 18153
Chris@10 18154 hpux9* | hpux10* | hpux11*)
Chris@10 18155 # Give a soname corresponding to the major version so that dld.sl refuses to
Chris@10 18156 # link against other versions.
Chris@10 18157 version_type=sunos
Chris@10 18158 need_lib_prefix=no
Chris@10 18159 need_version=no
Chris@10 18160 case $host_cpu in
Chris@10 18161 ia64*)
Chris@10 18162 shrext_cmds='.so'
Chris@10 18163 hardcode_into_libs=yes
Chris@10 18164 dynamic_linker="$host_os dld.so"
Chris@10 18165 shlibpath_var=LD_LIBRARY_PATH
Chris@10 18166 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@10 18167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@10 18168 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 18169 if test "X$HPUX_IA64_MODE" = X32; then
Chris@10 18170 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Chris@10 18171 else
Chris@10 18172 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Chris@10 18173 fi
Chris@10 18174 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@10 18175 ;;
Chris@10 18176 hppa*64*)
Chris@10 18177 shrext_cmds='.sl'
Chris@10 18178 hardcode_into_libs=yes
Chris@10 18179 dynamic_linker="$host_os dld.sl"
Chris@10 18180 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
Chris@10 18181 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@10 18182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@10 18183 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 18184 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
Chris@10 18185 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@10 18186 ;;
Chris@10 18187 *)
Chris@10 18188 shrext_cmds='.sl'
Chris@10 18189 dynamic_linker="$host_os dld.sl"
Chris@10 18190 shlibpath_var=SHLIB_PATH
Chris@10 18191 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Chris@10 18192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@10 18193 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 18194 ;;
Chris@10 18195 esac
Chris@10 18196 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Chris@10 18197 postinstall_cmds='chmod 555 $lib'
Chris@10 18198 # or fails outright, so override atomically:
Chris@10 18199 install_override_mode=555
Chris@10 18200 ;;
Chris@10 18201
Chris@10 18202 interix[3-9]*)
Chris@10 18203 version_type=linux # correct to gnu/linux during the next big refactor
Chris@10 18204 need_lib_prefix=no
Chris@10 18205 need_version=no
Chris@10 18206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@10 18207 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 18208 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
Chris@10 18209 shlibpath_var=LD_LIBRARY_PATH
Chris@10 18210 shlibpath_overrides_runpath=no
Chris@10 18211 hardcode_into_libs=yes
Chris@10 18212 ;;
Chris@10 18213
Chris@10 18214 irix5* | irix6* | nonstopux*)
Chris@10 18215 case $host_os in
Chris@10 18216 nonstopux*) version_type=nonstopux ;;
Chris@10 18217 *)
Chris@10 18218 if test "$lt_cv_prog_gnu_ld" = yes; then
Chris@10 18219 version_type=linux # correct to gnu/linux during the next big refactor
Chris@10 18220 else
Chris@10 18221 version_type=irix
Chris@10 18222 fi ;;
Chris@10 18223 esac
Chris@10 18224 need_lib_prefix=no
Chris@10 18225 need_version=no
Chris@10 18226 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 18227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@10 18228 case $host_os in
Chris@10 18229 irix5* | nonstopux*)
Chris@10 18230 libsuff= shlibsuff=
Chris@10 18231 ;;
Chris@10 18232 *)
Chris@10 18233 case $LD in # libtool.m4 will add one of these switches to LD
Chris@10 18234 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
Chris@10 18235 libsuff= shlibsuff= libmagic=32-bit;;
Chris@10 18236 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
Chris@10 18237 libsuff=32 shlibsuff=N32 libmagic=N32;;
Chris@10 18238 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
Chris@10 18239 libsuff=64 shlibsuff=64 libmagic=64-bit;;
Chris@10 18240 *) libsuff= shlibsuff= libmagic=never-match;;
Chris@10 18241 esac
Chris@10 18242 ;;
Chris@10 18243 esac
Chris@10 18244 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
Chris@10 18245 shlibpath_overrides_runpath=no
Chris@10 18246 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
Chris@10 18247 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
Chris@10 18248 hardcode_into_libs=yes
Chris@10 18249 ;;
Chris@10 18250
Chris@10 18251 # No shared lib support for Linux oldld, aout, or coff.
Chris@10 18252 linux*oldld* | linux*aout* | linux*coff*)
Chris@10 18253 dynamic_linker=no
Chris@10 18254 ;;
Chris@10 18255
Chris@10 18256 # This must be glibc/ELF.
Chris@10 18257 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Chris@10 18258 version_type=linux # correct to gnu/linux during the next big refactor
Chris@10 18259 need_lib_prefix=no
Chris@10 18260 need_version=no
Chris@10 18261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@10 18262 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 18263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
Chris@10 18264 shlibpath_var=LD_LIBRARY_PATH
Chris@10 18265 shlibpath_overrides_runpath=no
Chris@10 18266
Chris@10 18267 # Some binutils ld are patched to set DT_RUNPATH
Chris@10 18268 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
Chris@10 18269 $as_echo_n "(cached) " >&6
Chris@10 18270 else
Chris@10 18271 lt_cv_shlibpath_overrides_runpath=no
Chris@10 18272 save_LDFLAGS=$LDFLAGS
Chris@10 18273 save_libdir=$libdir
Chris@10 18274 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
Chris@10 18275 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
Chris@10 18276 cat > conftest.$ac_ext <<_ACEOF
Chris@10 18277 program main
Chris@10 18278
Chris@10 18279 end
Chris@10 18280 _ACEOF
Chris@10 18281 if ac_fn_f77_try_link "$LINENO"; then :
Chris@10 18282 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
Chris@10 18283 lt_cv_shlibpath_overrides_runpath=yes
Chris@10 18284 fi
Chris@10 18285 fi
Chris@10 18286 rm -f core conftest.err conftest.$ac_objext \
Chris@10 18287 conftest$ac_exeext conftest.$ac_ext
Chris@10 18288 LDFLAGS=$save_LDFLAGS
Chris@10 18289 libdir=$save_libdir
Chris@10 18290
Chris@10 18291 fi
Chris@10 18292
Chris@10 18293 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Chris@10 18294
Chris@10 18295 # This implies no fast_install, which is unacceptable.
Chris@10 18296 # Some rework will be needed to allow for fast_install
Chris@10 18297 # before this can be enabled.
Chris@10 18298 hardcode_into_libs=yes
Chris@10 18299
Chris@10 18300 # Append ld.so.conf contents to the search path
Chris@10 18301 if test -f /etc/ld.so.conf; then
Chris@10 18302 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@10 18303 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
Chris@10 18304 fi
Chris@10 18305
Chris@10 18306 # We used to test for /lib/ld.so.1 and disable shared libraries on
Chris@10 18307 # powerpc, because MkLinux only supported shared libraries with the
Chris@10 18308 # GNU dynamic linker. Since this was broken with cross compilers,
Chris@10 18309 # most powerpc-linux boxes support dynamic linking these days and
Chris@10 18310 # people can always --disable-shared, the test was removed, and we
Chris@10 18311 # assume the GNU/Linux dynamic linker is in use.
Chris@10 18312 dynamic_linker='GNU/Linux ld.so'
Chris@10 18313 ;;
Chris@10 18314
Chris@10 18315 netbsdelf*-gnu)
Chris@10 18316 version_type=linux
Chris@10 18317 need_lib_prefix=no
Chris@10 18318 need_version=no
Chris@10 18319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@10 18320 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 18321 shlibpath_var=LD_LIBRARY_PATH
Chris@10 18322 shlibpath_overrides_runpath=no
Chris@10 18323 hardcode_into_libs=yes
Chris@10 18324 dynamic_linker='NetBSD ld.elf_so'
Chris@10 18325 ;;
Chris@10 18326
Chris@10 18327 netbsd*)
Chris@10 18328 version_type=sunos
Chris@10 18329 need_lib_prefix=no
Chris@10 18330 need_version=no
Chris@10 18331 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@10 18332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@10 18333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@10 18334 dynamic_linker='NetBSD (a.out) ld.so'
Chris@10 18335 else
Chris@10 18336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@10 18337 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 18338 dynamic_linker='NetBSD ld.elf_so'
Chris@10 18339 fi
Chris@10 18340 shlibpath_var=LD_LIBRARY_PATH
Chris@10 18341 shlibpath_overrides_runpath=yes
Chris@10 18342 hardcode_into_libs=yes
Chris@10 18343 ;;
Chris@10 18344
Chris@10 18345 newsos6)
Chris@10 18346 version_type=linux # correct to gnu/linux during the next big refactor
Chris@10 18347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@10 18348 shlibpath_var=LD_LIBRARY_PATH
Chris@10 18349 shlibpath_overrides_runpath=yes
Chris@10 18350 ;;
Chris@10 18351
Chris@10 18352 *nto* | *qnx*)
Chris@10 18353 version_type=qnx
Chris@10 18354 need_lib_prefix=no
Chris@10 18355 need_version=no
Chris@10 18356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@10 18357 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 18358 shlibpath_var=LD_LIBRARY_PATH
Chris@10 18359 shlibpath_overrides_runpath=no
Chris@10 18360 hardcode_into_libs=yes
Chris@10 18361 dynamic_linker='ldqnx.so'
Chris@10 18362 ;;
Chris@10 18363
Chris@10 18364 openbsd*)
Chris@10 18365 version_type=sunos
Chris@10 18366 sys_lib_dlsearch_path_spec="/usr/lib"
Chris@10 18367 need_lib_prefix=no
Chris@10 18368 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
Chris@10 18369 case $host_os in
Chris@10 18370 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
Chris@10 18371 *) need_version=no ;;
Chris@10 18372 esac
Chris@10 18373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@10 18374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@10 18375 shlibpath_var=LD_LIBRARY_PATH
Chris@10 18376 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Chris@10 18377 case $host_os in
Chris@10 18378 openbsd2.[89] | openbsd2.[89].*)
Chris@10 18379 shlibpath_overrides_runpath=no
Chris@10 18380 ;;
Chris@10 18381 *)
Chris@10 18382 shlibpath_overrides_runpath=yes
Chris@10 18383 ;;
Chris@10 18384 esac
Chris@10 18385 else
Chris@10 18386 shlibpath_overrides_runpath=yes
Chris@10 18387 fi
Chris@10 18388 ;;
Chris@10 18389
Chris@10 18390 os2*)
Chris@10 18391 libname_spec='$name'
Chris@10 18392 shrext_cmds=".dll"
Chris@10 18393 need_lib_prefix=no
Chris@10 18394 library_names_spec='$libname${shared_ext} $libname.a'
Chris@10 18395 dynamic_linker='OS/2 ld.exe'
Chris@10 18396 shlibpath_var=LIBPATH
Chris@10 18397 ;;
Chris@10 18398
Chris@10 18399 osf3* | osf4* | osf5*)
Chris@10 18400 version_type=osf
Chris@10 18401 need_lib_prefix=no
Chris@10 18402 need_version=no
Chris@10 18403 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 18404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@10 18405 shlibpath_var=LD_LIBRARY_PATH
Chris@10 18406 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Chris@10 18407 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
Chris@10 18408 ;;
Chris@10 18409
Chris@10 18410 rdos*)
Chris@10 18411 dynamic_linker=no
Chris@10 18412 ;;
Chris@10 18413
Chris@10 18414 solaris*)
Chris@10 18415 version_type=linux # correct to gnu/linux during the next big refactor
Chris@10 18416 need_lib_prefix=no
Chris@10 18417 need_version=no
Chris@10 18418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@10 18419 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 18420 shlibpath_var=LD_LIBRARY_PATH
Chris@10 18421 shlibpath_overrides_runpath=yes
Chris@10 18422 hardcode_into_libs=yes
Chris@10 18423 # ldd complains unless libraries are executable
Chris@10 18424 postinstall_cmds='chmod +x $lib'
Chris@10 18425 ;;
Chris@10 18426
Chris@10 18427 sunos4*)
Chris@10 18428 version_type=sunos
Chris@10 18429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Chris@10 18430 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
Chris@10 18431 shlibpath_var=LD_LIBRARY_PATH
Chris@10 18432 shlibpath_overrides_runpath=yes
Chris@10 18433 if test "$with_gnu_ld" = yes; then
Chris@10 18434 need_lib_prefix=no
Chris@10 18435 fi
Chris@10 18436 need_version=yes
Chris@10 18437 ;;
Chris@10 18438
Chris@10 18439 sysv4 | sysv4.3*)
Chris@10 18440 version_type=linux # correct to gnu/linux during the next big refactor
Chris@10 18441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@10 18442 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 18443 shlibpath_var=LD_LIBRARY_PATH
Chris@10 18444 case $host_vendor in
Chris@10 18445 sni)
Chris@10 18446 shlibpath_overrides_runpath=no
Chris@10 18447 need_lib_prefix=no
Chris@10 18448 runpath_var=LD_RUN_PATH
Chris@10 18449 ;;
Chris@10 18450 siemens)
Chris@10 18451 need_lib_prefix=no
Chris@10 18452 ;;
Chris@10 18453 motorola)
Chris@10 18454 need_lib_prefix=no
Chris@10 18455 need_version=no
Chris@10 18456 shlibpath_overrides_runpath=no
Chris@10 18457 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
Chris@10 18458 ;;
Chris@10 18459 esac
Chris@10 18460 ;;
Chris@10 18461
Chris@10 18462 sysv4*MP*)
Chris@10 18463 if test -d /usr/nec ;then
Chris@10 18464 version_type=linux # correct to gnu/linux during the next big refactor
Chris@10 18465 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
Chris@10 18466 soname_spec='$libname${shared_ext}.$major'
Chris@10 18467 shlibpath_var=LD_LIBRARY_PATH
Chris@10 18468 fi
Chris@10 18469 ;;
Chris@10 18470
Chris@10 18471 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Chris@10 18472 version_type=freebsd-elf
Chris@10 18473 need_lib_prefix=no
Chris@10 18474 need_version=no
Chris@10 18475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Chris@10 18476 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 18477 shlibpath_var=LD_LIBRARY_PATH
Chris@10 18478 shlibpath_overrides_runpath=yes
Chris@10 18479 hardcode_into_libs=yes
Chris@10 18480 if test "$with_gnu_ld" = yes; then
Chris@10 18481 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Chris@10 18482 else
Chris@10 18483 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Chris@10 18484 case $host_os in
Chris@10 18485 sco3.2v5*)
Chris@10 18486 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
Chris@10 18487 ;;
Chris@10 18488 esac
Chris@10 18489 fi
Chris@10 18490 sys_lib_dlsearch_path_spec='/usr/lib'
Chris@10 18491 ;;
Chris@10 18492
Chris@10 18493 tpf*)
Chris@10 18494 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Chris@10 18495 version_type=linux # correct to gnu/linux during the next big refactor
Chris@10 18496 need_lib_prefix=no
Chris@10 18497 need_version=no
Chris@10 18498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@10 18499 shlibpath_var=LD_LIBRARY_PATH
Chris@10 18500 shlibpath_overrides_runpath=no
Chris@10 18501 hardcode_into_libs=yes
Chris@10 18502 ;;
Chris@10 18503
Chris@10 18504 uts4*)
Chris@10 18505 version_type=linux # correct to gnu/linux during the next big refactor
Chris@10 18506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Chris@10 18507 soname_spec='${libname}${release}${shared_ext}$major'
Chris@10 18508 shlibpath_var=LD_LIBRARY_PATH
Chris@10 18509 ;;
Chris@10 18510
Chris@10 18511 *)
Chris@10 18512 dynamic_linker=no
Chris@10 18513 ;;
Chris@10 18514 esac
Chris@10 18515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Chris@10 18516 $as_echo "$dynamic_linker" >&6; }
Chris@10 18517 test "$dynamic_linker" = no && can_build_shared=no
Chris@10 18518
Chris@10 18519 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Chris@10 18520 if test "$GCC" = yes; then
Chris@10 18521 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
Chris@10 18522 fi
Chris@10 18523
Chris@10 18524 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
Chris@10 18525 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
Chris@10 18526 fi
Chris@10 18527 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
Chris@10 18528 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
Chris@10 18529 fi
Chris@10 18530
Chris@10 18531
Chris@10 18532
Chris@10 18533
Chris@10 18534
Chris@10 18535
Chris@10 18536
Chris@10 18537
Chris@10 18538
Chris@10 18539
Chris@10 18540
Chris@10 18541
Chris@10 18542
Chris@10 18543
Chris@10 18544
Chris@10 18545
Chris@10 18546
Chris@10 18547
Chris@10 18548
Chris@10 18549
Chris@10 18550
Chris@10 18551
Chris@10 18552
Chris@10 18553
Chris@10 18554
Chris@10 18555
Chris@10 18556
Chris@10 18557
Chris@10 18558
Chris@10 18559
Chris@10 18560
Chris@10 18561
Chris@10 18562
Chris@10 18563
Chris@10 18564
Chris@10 18565
Chris@10 18566
Chris@10 18567
Chris@10 18568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Chris@10 18569 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Chris@10 18570 hardcode_action_F77=
Chris@10 18571 if test -n "$hardcode_libdir_flag_spec_F77" ||
Chris@10 18572 test -n "$runpath_var_F77" ||
Chris@10 18573 test "X$hardcode_automatic_F77" = "Xyes" ; then
Chris@10 18574
Chris@10 18575 # We can hardcode non-existent directories.
Chris@10 18576 if test "$hardcode_direct_F77" != no &&
Chris@10 18577 # If the only mechanism to avoid hardcoding is shlibpath_var, we
Chris@10 18578 # have to relink, otherwise we might link with an installed library
Chris@10 18579 # when we should be linking with a yet-to-be-installed one
Chris@10 18580 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
Chris@10 18581 test "$hardcode_minus_L_F77" != no; then
Chris@10 18582 # Linking always hardcodes the temporary library directory.
Chris@10 18583 hardcode_action_F77=relink
Chris@10 18584 else
Chris@10 18585 # We can link without hardcoding, and we can hardcode nonexisting dirs.
Chris@10 18586 hardcode_action_F77=immediate
Chris@10 18587 fi
Chris@10 18588 else
Chris@10 18589 # We cannot hardcode anything, or else we can only hardcode existing
Chris@10 18590 # directories.
Chris@10 18591 hardcode_action_F77=unsupported
Chris@10 18592 fi
Chris@10 18593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
Chris@10 18594 $as_echo "$hardcode_action_F77" >&6; }
Chris@10 18595
Chris@10 18596 if test "$hardcode_action_F77" = relink ||
Chris@10 18597 test "$inherit_rpath_F77" = yes; then
Chris@10 18598 # Fast installation is not supported
Chris@10 18599 enable_fast_install=no
Chris@10 18600 elif test "$shlibpath_overrides_runpath" = yes ||
Chris@10 18601 test "$enable_shared" = no; then
Chris@10 18602 # Fast installation is not necessary
Chris@10 18603 enable_fast_install=needless
Chris@10 18604 fi
Chris@10 18605
Chris@10 18606
Chris@10 18607
Chris@10 18608
Chris@10 18609
Chris@10 18610
Chris@10 18611
Chris@10 18612 fi # test -n "$compiler"
Chris@10 18613
Chris@10 18614 GCC=$lt_save_GCC
Chris@10 18615 CC="$lt_save_CC"
Chris@10 18616 CFLAGS="$lt_save_CFLAGS"
Chris@10 18617 fi # test "$_lt_disable_F77" != yes
Chris@10 18618
Chris@10 18619 ac_ext=c
Chris@10 18620 ac_cpp='$CPP $CPPFLAGS'
Chris@10 18621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@10 18622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 18623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@10 18624
Chris@10 18625
Chris@10 18626 if test -z "$F77"; then
Chris@10 18627 enable_fortran=no
Chris@10 18628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Couldn't find f77 compiler; using default Fortran wrappers." >&5
Chris@10 18629 $as_echo "$as_me: WARNING: *** Couldn't find f77 compiler; using default Fortran wrappers." >&2;}
Chris@10 18630 else
Chris@10 18631 ac_ext=f
Chris@10 18632 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@10 18633 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 18634 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@10 18635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5
Chris@10 18636 $as_echo_n "checking how to get verbose linking output from $F77... " >&6; }
Chris@10 18637 if ${ac_cv_prog_f77_v+:} false; then :
Chris@10 18638 $as_echo_n "(cached) " >&6
Chris@10 18639 else
Chris@10 18640 cat > conftest.$ac_ext <<_ACEOF
Chris@10 18641 program main
Chris@10 18642
Chris@10 18643 end
Chris@10 18644 _ACEOF
Chris@10 18645 if ac_fn_f77_try_compile "$LINENO"; then :
Chris@10 18646 ac_cv_prog_f77_v=
Chris@10 18647 # Try some options frequently used verbose output
Chris@10 18648 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
Chris@10 18649 cat > conftest.$ac_ext <<_ACEOF
Chris@10 18650 program main
Chris@10 18651
Chris@10 18652 end
Chris@10 18653 _ACEOF
Chris@10 18654
Chris@10 18655 # Compile and link our simple test program by passing a flag (argument
Chris@10 18656 # 1 to this macro) to the Fortran compiler in order to get
Chris@10 18657 # "verbose" output that we can then parse for the Fortran linker
Chris@10 18658 # flags.
Chris@10 18659 ac_save_FFLAGS=$FFLAGS
Chris@10 18660 FFLAGS="$FFLAGS $ac_verb"
Chris@10 18661 eval "set x $ac_link"
Chris@10 18662 shift
Chris@10 18663 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
Chris@10 18664 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
Chris@10 18665 # LIBRARY_PATH; skip all such settings.
Chris@10 18666 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
Chris@10 18667 sed '/^Driving:/d; /^Configured with:/d;
Chris@10 18668 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
Chris@10 18669 $as_echo "$ac_f77_v_output" >&5
Chris@10 18670 FFLAGS=$ac_save_FFLAGS
Chris@10 18671
Chris@10 18672 rm -rf conftest*
Chris@10 18673
Chris@10 18674 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
Chris@10 18675 # /foo, /bar, and /baz are search directories for the Fortran linker.
Chris@10 18676 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
Chris@10 18677 ac_f77_v_output="`echo $ac_f77_v_output |
Chris@10 18678 grep 'LPATH is:' |
Chris@10 18679 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
Chris@10 18680
Chris@10 18681 # FIXME: we keep getting bitten by quoted arguments; a more general fix
Chris@10 18682 # that detects unbalanced quotes in FLIBS should be implemented
Chris@10 18683 # and (ugh) tested at some point.
Chris@10 18684 case $ac_f77_v_output in
Chris@10 18685 # With xlf replace commas with spaces,
Chris@10 18686 # and remove "-link" and closing parenthesis.
Chris@10 18687 *xlfentry*)
Chris@10 18688 ac_f77_v_output=`echo $ac_f77_v_output |
Chris@10 18689 sed '
Chris@10 18690 s/,/ /g
Chris@10 18691 s/ -link / /g
Chris@10 18692 s/) *$//
Chris@10 18693 '
Chris@10 18694 ` ;;
Chris@10 18695
Chris@10 18696 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
Chris@10 18697 # $LIBS confuse us, and the libraries appear later in the output anyway).
Chris@10 18698 *mGLOB_options_string*)
Chris@10 18699 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
Chris@10 18700
Chris@10 18701 # Portland Group compiler has singly- or doubly-quoted -cmdline argument
Chris@10 18702 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
Chris@10 18703 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
Chris@10 18704 *-cmdline\ * | *-ignore\ * | *-def\ *)
Chris@10 18705 ac_f77_v_output=`echo $ac_f77_v_output | sed "\
Chris@10 18706 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
Chris@10 18707 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
Chris@10 18708 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
Chris@10 18709
Chris@10 18710 # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
Chris@10 18711 *fort77*f2c*gcc*)
Chris@10 18712 ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n '
Chris@10 18713 /:[ ]\+Running[ ]\{1,\}"gcc"/{
Chris@10 18714 /"-c"/d
Chris@10 18715 /[.]c"*/d
Chris@10 18716 s/^.*"gcc"/"gcc"/
Chris@10 18717 s/"//gp
Chris@10 18718 }'` ;;
Chris@10 18719
Chris@10 18720 # If we are using Cray Fortran then delete quotes.
Chris@10 18721 *cft90*)
Chris@10 18722 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
Chris@10 18723 esac
Chris@10 18724
Chris@10 18725
Chris@10 18726 # look for -l* and *.a constructs in the output
Chris@10 18727 for ac_arg in $ac_f77_v_output; do
Chris@10 18728 case $ac_arg in
Chris@10 18729 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
Chris@10 18730 ac_cv_prog_f77_v=$ac_verb
Chris@10 18731 break 2 ;;
Chris@10 18732 esac
Chris@10 18733 done
Chris@10 18734 done
Chris@10 18735 if test -z "$ac_cv_prog_f77_v"; then
Chris@10 18736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5
Chris@10 18737 $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
Chris@10 18738 fi
Chris@10 18739 else
Chris@10 18740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
Chris@10 18741 $as_echo "$as_me: WARNING: compilation failed" >&2;}
Chris@10 18742 fi
Chris@10 18743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 18744
Chris@10 18745 fi
Chris@10 18746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5
Chris@10 18747 $as_echo "$ac_cv_prog_f77_v" >&6; }
Chris@10 18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5
Chris@10 18749 $as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; }
Chris@10 18750 if ${ac_cv_f77_libs+:} false; then :
Chris@10 18751 $as_echo_n "(cached) " >&6
Chris@10 18752 else
Chris@10 18753 if test "x$FLIBS" != "x"; then
Chris@10 18754 ac_cv_f77_libs="$FLIBS" # Let the user override the test.
Chris@10 18755 else
Chris@10 18756
Chris@10 18757 cat > conftest.$ac_ext <<_ACEOF
Chris@10 18758 program main
Chris@10 18759
Chris@10 18760 end
Chris@10 18761 _ACEOF
Chris@10 18762
Chris@10 18763 # Compile and link our simple test program by passing a flag (argument
Chris@10 18764 # 1 to this macro) to the Fortran compiler in order to get
Chris@10 18765 # "verbose" output that we can then parse for the Fortran linker
Chris@10 18766 # flags.
Chris@10 18767 ac_save_FFLAGS=$FFLAGS
Chris@10 18768 FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
Chris@10 18769 eval "set x $ac_link"
Chris@10 18770 shift
Chris@10 18771 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
Chris@10 18772 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
Chris@10 18773 # LIBRARY_PATH; skip all such settings.
Chris@10 18774 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
Chris@10 18775 sed '/^Driving:/d; /^Configured with:/d;
Chris@10 18776 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
Chris@10 18777 $as_echo "$ac_f77_v_output" >&5
Chris@10 18778 FFLAGS=$ac_save_FFLAGS
Chris@10 18779
Chris@10 18780 rm -rf conftest*
Chris@10 18781
Chris@10 18782 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
Chris@10 18783 # /foo, /bar, and /baz are search directories for the Fortran linker.
Chris@10 18784 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
Chris@10 18785 ac_f77_v_output="`echo $ac_f77_v_output |
Chris@10 18786 grep 'LPATH is:' |
Chris@10 18787 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
Chris@10 18788
Chris@10 18789 # FIXME: we keep getting bitten by quoted arguments; a more general fix
Chris@10 18790 # that detects unbalanced quotes in FLIBS should be implemented
Chris@10 18791 # and (ugh) tested at some point.
Chris@10 18792 case $ac_f77_v_output in
Chris@10 18793 # With xlf replace commas with spaces,
Chris@10 18794 # and remove "-link" and closing parenthesis.
Chris@10 18795 *xlfentry*)
Chris@10 18796 ac_f77_v_output=`echo $ac_f77_v_output |
Chris@10 18797 sed '
Chris@10 18798 s/,/ /g
Chris@10 18799 s/ -link / /g
Chris@10 18800 s/) *$//
Chris@10 18801 '
Chris@10 18802 ` ;;
Chris@10 18803
Chris@10 18804 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
Chris@10 18805 # $LIBS confuse us, and the libraries appear later in the output anyway).
Chris@10 18806 *mGLOB_options_string*)
Chris@10 18807 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
Chris@10 18808
Chris@10 18809 # Portland Group compiler has singly- or doubly-quoted -cmdline argument
Chris@10 18810 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
Chris@10 18811 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
Chris@10 18812 *-cmdline\ * | *-ignore\ * | *-def\ *)
Chris@10 18813 ac_f77_v_output=`echo $ac_f77_v_output | sed "\
Chris@10 18814 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
Chris@10 18815 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
Chris@10 18816 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
Chris@10 18817
Chris@10 18818 # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
Chris@10 18819 *fort77*f2c*gcc*)
Chris@10 18820 ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n '
Chris@10 18821 /:[ ]\+Running[ ]\{1,\}"gcc"/{
Chris@10 18822 /"-c"/d
Chris@10 18823 /[.]c"*/d
Chris@10 18824 s/^.*"gcc"/"gcc"/
Chris@10 18825 s/"//gp
Chris@10 18826 }'` ;;
Chris@10 18827
Chris@10 18828 # If we are using Cray Fortran then delete quotes.
Chris@10 18829 *cft90*)
Chris@10 18830 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
Chris@10 18831 esac
Chris@10 18832
Chris@10 18833
Chris@10 18834
Chris@10 18835 ac_cv_f77_libs=
Chris@10 18836
Chris@10 18837 # Save positional arguments (if any)
Chris@10 18838 ac_save_positional="$@"
Chris@10 18839
Chris@10 18840 set X $ac_f77_v_output
Chris@10 18841 while test $# != 1; do
Chris@10 18842 shift
Chris@10 18843 ac_arg=$1
Chris@10 18844 case $ac_arg in
Chris@10 18845 [\\/]*.a | ?:[\\/]*.a)
Chris@10 18846 ac_exists=false
Chris@10 18847 for ac_i in $ac_cv_f77_libs; do
Chris@10 18848 if test x"$ac_arg" = x"$ac_i"; then
Chris@10 18849 ac_exists=true
Chris@10 18850 break
Chris@10 18851 fi
Chris@10 18852 done
Chris@10 18853
Chris@10 18854 if test x"$ac_exists" = xtrue; then :
Chris@10 18855
Chris@10 18856 else
Chris@10 18857 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
Chris@10 18858 fi
Chris@10 18859 ;;
Chris@10 18860 -bI:*)
Chris@10 18861 ac_exists=false
Chris@10 18862 for ac_i in $ac_cv_f77_libs; do
Chris@10 18863 if test x"$ac_arg" = x"$ac_i"; then
Chris@10 18864 ac_exists=true
Chris@10 18865 break
Chris@10 18866 fi
Chris@10 18867 done
Chris@10 18868
Chris@10 18869 if test x"$ac_exists" = xtrue; then :
Chris@10 18870
Chris@10 18871 else
Chris@10 18872 if test "$ac_compiler_gnu" = yes; then
Chris@10 18873 for ac_link_opt in $ac_arg; do
Chris@10 18874 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
Chris@10 18875 done
Chris@10 18876 else
Chris@10 18877 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
Chris@10 18878 fi
Chris@10 18879 fi
Chris@10 18880 ;;
Chris@10 18881 # Ignore these flags.
Chris@10 18882 -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
Chris@10 18883 |-LANG:=* | -LIST:* | -LNO:* | -link)
Chris@10 18884 ;;
Chris@10 18885 -lkernel32)
Chris@10 18886 case $host_os in
Chris@10 18887 *cygwin*) ;;
Chris@10 18888 *) ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
Chris@10 18889 ;;
Chris@10 18890 esac
Chris@10 18891 ;;
Chris@10 18892 -[LRuYz])
Chris@10 18893 # These flags, when seen by themselves, take an argument.
Chris@10 18894 # We remove the space between option and argument and re-iterate
Chris@10 18895 # unless we find an empty arg or a new option (starting with -)
Chris@10 18896 case $2 in
Chris@10 18897 "" | -*);;
Chris@10 18898 *)
Chris@10 18899 ac_arg="$ac_arg$2"
Chris@10 18900 shift; shift
Chris@10 18901 set X $ac_arg "$@"
Chris@10 18902 ;;
Chris@10 18903 esac
Chris@10 18904 ;;
Chris@10 18905 -YP,*)
Chris@10 18906 for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
Chris@10 18907 ac_exists=false
Chris@10 18908 for ac_i in $ac_cv_f77_libs; do
Chris@10 18909 if test x"$ac_j" = x"$ac_i"; then
Chris@10 18910 ac_exists=true
Chris@10 18911 break
Chris@10 18912 fi
Chris@10 18913 done
Chris@10 18914
Chris@10 18915 if test x"$ac_exists" = xtrue; then :
Chris@10 18916
Chris@10 18917 else
Chris@10 18918 ac_arg="$ac_arg $ac_j"
Chris@10 18919 ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
Chris@10 18920 fi
Chris@10 18921 done
Chris@10 18922 ;;
Chris@10 18923 -[lLR]*)
Chris@10 18924 ac_exists=false
Chris@10 18925 for ac_i in $ac_cv_f77_libs; do
Chris@10 18926 if test x"$ac_arg" = x"$ac_i"; then
Chris@10 18927 ac_exists=true
Chris@10 18928 break
Chris@10 18929 fi
Chris@10 18930 done
Chris@10 18931
Chris@10 18932 if test x"$ac_exists" = xtrue; then :
Chris@10 18933
Chris@10 18934 else
Chris@10 18935 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
Chris@10 18936 fi
Chris@10 18937 ;;
Chris@10 18938 -zallextract*| -zdefaultextract)
Chris@10 18939 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
Chris@10 18940 ;;
Chris@10 18941 # Ignore everything else.
Chris@10 18942 esac
Chris@10 18943 done
Chris@10 18944 # restore positional arguments
Chris@10 18945 set X $ac_save_positional; shift
Chris@10 18946
Chris@10 18947 # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
Chris@10 18948 # then we insist that the "run path" must be an absolute path (i.e. it
Chris@10 18949 # must begin with a "/").
Chris@10 18950 case `(uname -sr) 2>/dev/null` in
Chris@10 18951 "SunOS 5"*)
Chris@10 18952 ac_ld_run_path=`$as_echo "$ac_f77_v_output" |
Chris@10 18953 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
Chris@10 18954 test "x$ac_ld_run_path" != x &&
Chris@10 18955 if test "$ac_compiler_gnu" = yes; then
Chris@10 18956 for ac_link_opt in $ac_ld_run_path; do
Chris@10 18957 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
Chris@10 18958 done
Chris@10 18959 else
Chris@10 18960 ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
Chris@10 18961 fi
Chris@10 18962 ;;
Chris@10 18963 esac
Chris@10 18964 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
Chris@10 18965
Chris@10 18966 fi
Chris@10 18967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5
Chris@10 18968 $as_echo "$ac_cv_f77_libs" >&6; }
Chris@10 18969 FLIBS="$ac_cv_f77_libs"
Chris@10 18970
Chris@10 18971
Chris@10 18972 ac_ext=c
Chris@10 18973 ac_cpp='$CPP $CPPFLAGS'
Chris@10 18974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@10 18975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 18976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@10 18977
Chris@10 18978 ac_ext=f
Chris@10 18979 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@10 18980 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 18981 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@10 18982
Chris@10 18983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran 77 libraries" >&5
Chris@10 18984 $as_echo_n "checking for dummy main to link with Fortran 77 libraries... " >&6; }
Chris@10 18985 if ${ac_cv_f77_dummy_main+:} false; then :
Chris@10 18986 $as_echo_n "(cached) " >&6
Chris@10 18987 else
Chris@10 18988 ac_f77_dm_save_LIBS=$LIBS
Chris@10 18989 LIBS="$LIBS $FLIBS"
Chris@10 18990 ac_fortran_dm_var=F77_DUMMY_MAIN
Chris@10 18991 ac_ext=c
Chris@10 18992 ac_cpp='$CPP $CPPFLAGS'
Chris@10 18993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@10 18994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 18995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@10 18996
Chris@10 18997 # First, try linking without a dummy main:
Chris@10 18998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 18999 /* end confdefs.h. */
Chris@10 19000
Chris@10 19001 #ifdef F77_DUMMY_MAIN
Chris@10 19002
Chris@10 19003 # ifdef __cplusplus
Chris@10 19004 extern "C"
Chris@10 19005 # endif
Chris@10 19006 int F77_DUMMY_MAIN() { return 1; }
Chris@10 19007
Chris@10 19008 #endif
Chris@10 19009 int
Chris@10 19010 main ()
Chris@10 19011 {
Chris@10 19012
Chris@10 19013 ;
Chris@10 19014 return 0;
Chris@10 19015 }
Chris@10 19016 _ACEOF
Chris@10 19017 if ac_fn_c_try_link "$LINENO"; then :
Chris@10 19018 ac_cv_fortran_dummy_main=none
Chris@10 19019 else
Chris@10 19020 ac_cv_fortran_dummy_main=unknown
Chris@10 19021 fi
Chris@10 19022 rm -f core conftest.err conftest.$ac_objext \
Chris@10 19023 conftest$ac_exeext conftest.$ac_ext
Chris@10 19024
Chris@10 19025 if test $ac_cv_fortran_dummy_main = unknown; then
Chris@10 19026 for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
Chris@10 19027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 19028 /* end confdefs.h. */
Chris@10 19029 #define $ac_fortran_dm_var $ac_func
Chris@10 19030 #ifdef F77_DUMMY_MAIN
Chris@10 19031
Chris@10 19032 # ifdef __cplusplus
Chris@10 19033 extern "C"
Chris@10 19034 # endif
Chris@10 19035 int F77_DUMMY_MAIN() { return 1; }
Chris@10 19036
Chris@10 19037 #endif
Chris@10 19038 int
Chris@10 19039 main ()
Chris@10 19040 {
Chris@10 19041
Chris@10 19042 ;
Chris@10 19043 return 0;
Chris@10 19044 }
Chris@10 19045 _ACEOF
Chris@10 19046 if ac_fn_c_try_link "$LINENO"; then :
Chris@10 19047 ac_cv_fortran_dummy_main=$ac_func; break
Chris@10 19048 fi
Chris@10 19049 rm -f core conftest.err conftest.$ac_objext \
Chris@10 19050 conftest$ac_exeext conftest.$ac_ext
Chris@10 19051 done
Chris@10 19052 fi
Chris@10 19053 ac_ext=f
Chris@10 19054 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@10 19055 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 19056 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@10 19057 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
Chris@10 19058 rm -rf conftest*
Chris@10 19059 LIBS=$ac_f77_dm_save_LIBS
Chris@10 19060
Chris@10 19061 fi
Chris@10 19062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5
Chris@10 19063 $as_echo "$ac_cv_f77_dummy_main" >&6; }
Chris@10 19064 F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
Chris@10 19065 if test "$F77_DUMMY_MAIN" != unknown; then :
Chris@10 19066 if test $F77_DUMMY_MAIN != none; then
Chris@10 19067
Chris@10 19068 cat >>confdefs.h <<_ACEOF
Chris@10 19069 #define F77_DUMMY_MAIN $F77_DUMMY_MAIN
Chris@10 19070 _ACEOF
Chris@10 19071
Chris@10 19072 if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
Chris@10 19073
Chris@10 19074 $as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
Chris@10 19075
Chris@10 19076 fi
Chris@10 19077 fi
Chris@10 19078 else
Chris@10 19079 enable_fortran=no
Chris@10 19080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Couldn't figure out how to link C and Fortran; using default Fortran wrappers." >&5
Chris@10 19081 $as_echo "$as_me: WARNING: *** Couldn't figure out how to link C and Fortran; using default Fortran wrappers." >&2;}
Chris@10 19082 fi
Chris@10 19083
Chris@10 19084 ac_ext=c
Chris@10 19085 ac_cpp='$CPP $CPPFLAGS'
Chris@10 19086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@10 19087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 19088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@10 19089
Chris@10 19090 fi
Chris@10 19091 else
Chris@10 19092
Chris@10 19093 $as_echo "#define DISABLE_FORTRAN 1" >>confdefs.h
Chris@10 19094
Chris@10 19095 fi
Chris@10 19096
Chris@10 19097 if test "x$enable_fortran" = xyes; then
Chris@10 19098 ac_ext=f
Chris@10 19099 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@10 19100 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 19101 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@10 19102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5
Chris@10 19103 $as_echo_n "checking for Fortran 77 name-mangling scheme... " >&6; }
Chris@10 19104 if ${ac_cv_f77_mangling+:} false; then :
Chris@10 19105 $as_echo_n "(cached) " >&6
Chris@10 19106 else
Chris@10 19107 cat > conftest.$ac_ext <<_ACEOF
Chris@10 19108 subroutine foobar()
Chris@10 19109 return
Chris@10 19110 end
Chris@10 19111 subroutine foo_bar()
Chris@10 19112 return
Chris@10 19113 end
Chris@10 19114 _ACEOF
Chris@10 19115 if ac_fn_f77_try_compile "$LINENO"; then :
Chris@10 19116 mv conftest.$ac_objext cfortran_test.$ac_objext
Chris@10 19117
Chris@10 19118 ac_save_LIBS=$LIBS
Chris@10 19119 LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
Chris@10 19120
Chris@10 19121 ac_ext=c
Chris@10 19122 ac_cpp='$CPP $CPPFLAGS'
Chris@10 19123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@10 19124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 19125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@10 19126 ac_success=no
Chris@10 19127 for ac_foobar in foobar FOOBAR; do
Chris@10 19128 for ac_underscore in "" "_"; do
Chris@10 19129 ac_func="$ac_foobar$ac_underscore"
Chris@10 19130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 19131 /* end confdefs.h. */
Chris@10 19132
Chris@10 19133 /* Override any GCC internal prototype to avoid an error.
Chris@10 19134 Use char because int might match the return type of a GCC
Chris@10 19135 builtin and then its argument prototype would still apply. */
Chris@10 19136 #ifdef __cplusplus
Chris@10 19137 extern "C"
Chris@10 19138 #endif
Chris@10 19139 char $ac_func ();
Chris@10 19140 #ifdef F77_DUMMY_MAIN
Chris@10 19141
Chris@10 19142 # ifdef __cplusplus
Chris@10 19143 extern "C"
Chris@10 19144 # endif
Chris@10 19145 int F77_DUMMY_MAIN() { return 1; }
Chris@10 19146
Chris@10 19147 #endif
Chris@10 19148 int
Chris@10 19149 main ()
Chris@10 19150 {
Chris@10 19151 return $ac_func ();
Chris@10 19152 ;
Chris@10 19153 return 0;
Chris@10 19154 }
Chris@10 19155 _ACEOF
Chris@10 19156 if ac_fn_c_try_link "$LINENO"; then :
Chris@10 19157 ac_success=yes; break 2
Chris@10 19158 fi
Chris@10 19159 rm -f core conftest.err conftest.$ac_objext \
Chris@10 19160 conftest$ac_exeext conftest.$ac_ext
Chris@10 19161 done
Chris@10 19162 done
Chris@10 19163 ac_ext=f
Chris@10 19164 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@10 19165 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 19166 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@10 19167
Chris@10 19168 if test "$ac_success" = "yes"; then
Chris@10 19169 case $ac_foobar in
Chris@10 19170 foobar)
Chris@10 19171 ac_case=lower
Chris@10 19172 ac_foo_bar=foo_bar
Chris@10 19173 ;;
Chris@10 19174 FOOBAR)
Chris@10 19175 ac_case=upper
Chris@10 19176 ac_foo_bar=FOO_BAR
Chris@10 19177 ;;
Chris@10 19178 esac
Chris@10 19179
Chris@10 19180 ac_ext=c
Chris@10 19181 ac_cpp='$CPP $CPPFLAGS'
Chris@10 19182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@10 19183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 19184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@10 19185 ac_success_extra=no
Chris@10 19186 for ac_extra in "" "_"; do
Chris@10 19187 ac_func="$ac_foo_bar$ac_underscore$ac_extra"
Chris@10 19188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 19189 /* end confdefs.h. */
Chris@10 19190
Chris@10 19191 /* Override any GCC internal prototype to avoid an error.
Chris@10 19192 Use char because int might match the return type of a GCC
Chris@10 19193 builtin and then its argument prototype would still apply. */
Chris@10 19194 #ifdef __cplusplus
Chris@10 19195 extern "C"
Chris@10 19196 #endif
Chris@10 19197 char $ac_func ();
Chris@10 19198 #ifdef F77_DUMMY_MAIN
Chris@10 19199
Chris@10 19200 # ifdef __cplusplus
Chris@10 19201 extern "C"
Chris@10 19202 # endif
Chris@10 19203 int F77_DUMMY_MAIN() { return 1; }
Chris@10 19204
Chris@10 19205 #endif
Chris@10 19206 int
Chris@10 19207 main ()
Chris@10 19208 {
Chris@10 19209 return $ac_func ();
Chris@10 19210 ;
Chris@10 19211 return 0;
Chris@10 19212 }
Chris@10 19213 _ACEOF
Chris@10 19214 if ac_fn_c_try_link "$LINENO"; then :
Chris@10 19215 ac_success_extra=yes; break
Chris@10 19216 fi
Chris@10 19217 rm -f core conftest.err conftest.$ac_objext \
Chris@10 19218 conftest$ac_exeext conftest.$ac_ext
Chris@10 19219 done
Chris@10 19220 ac_ext=f
Chris@10 19221 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@10 19222 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 19223 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@10 19224
Chris@10 19225 if test "$ac_success_extra" = "yes"; then
Chris@10 19226 ac_cv_f77_mangling="$ac_case case"
Chris@10 19227 if test -z "$ac_underscore"; then
Chris@10 19228 ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
Chris@10 19229 else
Chris@10 19230 ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
Chris@10 19231 fi
Chris@10 19232 if test -z "$ac_extra"; then
Chris@10 19233 ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
Chris@10 19234 else
Chris@10 19235 ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
Chris@10 19236 fi
Chris@10 19237 else
Chris@10 19238 ac_cv_f77_mangling="unknown"
Chris@10 19239 fi
Chris@10 19240 else
Chris@10 19241 ac_cv_f77_mangling="unknown"
Chris@10 19242 fi
Chris@10 19243
Chris@10 19244 LIBS=$ac_save_LIBS
Chris@10 19245 rm -rf conftest*
Chris@10 19246 rm -f cfortran_test*
Chris@10 19247 else
Chris@10 19248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@10 19249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@10 19250 as_fn_error $? "cannot compile a simple Fortran program
Chris@10 19251 See \`config.log' for more details" "$LINENO" 5; }
Chris@10 19252 fi
Chris@10 19253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@10 19254
Chris@10 19255 fi
Chris@10 19256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_mangling" >&5
Chris@10 19257 $as_echo "$ac_cv_f77_mangling" >&6; }
Chris@10 19258
Chris@10 19259 ac_ext=c
Chris@10 19260 ac_cpp='$CPP $CPPFLAGS'
Chris@10 19261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@10 19262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 19263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@10 19264
Chris@10 19265 ac_ext=f
Chris@10 19266 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@10 19267 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 19268 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@10 19269 case $ac_cv_f77_mangling in
Chris@10 19270 "lower case, no underscore, no extra underscore")
Chris@10 19271 $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
Chris@10 19272
Chris@10 19273 $as_echo "#define F77_FUNC_(name,NAME) name" >>confdefs.h
Chris@10 19274 ;;
Chris@10 19275 "lower case, no underscore, extra underscore")
Chris@10 19276 $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
Chris@10 19277
Chris@10 19278 $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
Chris@10 19279 ;;
Chris@10 19280 "lower case, underscore, no extra underscore")
Chris@10 19281 $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
Chris@10 19282
Chris@10 19283 $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
Chris@10 19284 ;;
Chris@10 19285 "lower case, underscore, extra underscore")
Chris@10 19286 $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
Chris@10 19287
Chris@10 19288 $as_echo "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h
Chris@10 19289 ;;
Chris@10 19290 "upper case, no underscore, no extra underscore")
Chris@10 19291 $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
Chris@10 19292
Chris@10 19293 $as_echo "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h
Chris@10 19294 ;;
Chris@10 19295 "upper case, no underscore, extra underscore")
Chris@10 19296 $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
Chris@10 19297
Chris@10 19298 $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
Chris@10 19299 ;;
Chris@10 19300 "upper case, underscore, no extra underscore")
Chris@10 19301 $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
Chris@10 19302
Chris@10 19303 $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
Chris@10 19304 ;;
Chris@10 19305 "upper case, underscore, extra underscore")
Chris@10 19306 $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
Chris@10 19307
Chris@10 19308 $as_echo "#define F77_FUNC_(name,NAME) NAME ## __" >>confdefs.h
Chris@10 19309 ;;
Chris@10 19310 *)
Chris@10 19311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
Chris@10 19312 $as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
Chris@10 19313 ;;
Chris@10 19314 esac
Chris@10 19315
Chris@10 19316 ac_ext=c
Chris@10 19317 ac_cpp='$CPP $CPPFLAGS'
Chris@10 19318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@10 19319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 19320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@10 19321
Chris@10 19322 ac_ext=f
Chris@10 19323 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@10 19324 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 19325 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@10 19326 case $ac_cv_f77_mangling in
Chris@10 19327 upper*) ac_val="F77FOO" ;;
Chris@10 19328 lower*) ac_val="f77foo" ;;
Chris@10 19329 *) ac_val="unknown" ;;
Chris@10 19330 esac
Chris@10 19331 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
Chris@10 19332
Chris@10 19333 f77foo="$ac_val"
Chris@10 19334
Chris@10 19335 ac_ext=c
Chris@10 19336 ac_cpp='$CPP $CPPFLAGS'
Chris@10 19337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@10 19338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 19339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@10 19340
Chris@10 19341 ac_ext=f
Chris@10 19342 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@10 19343 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 19344 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@10 19345 case $ac_cv_f77_mangling in
Chris@10 19346 upper*) ac_val="F77_FOO" ;;
Chris@10 19347 lower*) ac_val="f77_foo" ;;
Chris@10 19348 *) ac_val="unknown" ;;
Chris@10 19349 esac
Chris@10 19350 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
Chris@10 19351 case $ac_cv_f77_mangling in *," extra underscore"*) ac_val="$ac_val"_ ;; esac
Chris@10 19352
Chris@10 19353 f77_foo="$ac_val"
Chris@10 19354
Chris@10 19355 ac_ext=c
Chris@10 19356 ac_cpp='$CPP $CPPFLAGS'
Chris@10 19357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@10 19358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 19359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@10 19360
Chris@10 19361 f77_foo2=`echo $f77foo | sed 's/77/77_/'`
Chris@10 19362 if test "$f77_foo" = "$f77_foo2"; then
Chris@10 19363
Chris@10 19364 $as_echo "#define F77_FUNC_EQUIV 1" >>confdefs.h
Chris@10 19365
Chris@10 19366
Chris@10 19367 # Include g77 wrappers by default for GNU systems or gfortran
Chris@10 19368 with_g77_wrappers=$ac_cv_f77_compiler_gnu
Chris@10 19369 case $host_os in *gnu*) with_g77_wrappers=yes ;; esac
Chris@10 19370 fi
Chris@10 19371 else
Chris@10 19372 with_g77_wrappers=no
Chris@10 19373 fi
Chris@10 19374
Chris@10 19375
Chris@10 19376 # Check whether --with-g77-wrappers was given.
Chris@10 19377 if test "${with_g77_wrappers+set}" = set; then :
Chris@10 19378 withval=$with_g77_wrappers; with_g77_wrappers=$withval
Chris@10 19379 fi
Chris@10 19380
Chris@10 19381 if test "x$with_g77_wrappers" = "xyes"; then
Chris@10 19382
Chris@10 19383 $as_echo "#define WITH_G77_WRAPPERS 1" >>confdefs.h
Chris@10 19384
Chris@10 19385 fi
Chris@10 19386
Chris@10 19387 have_smp="no"
Chris@10 19388 # Check whether --enable-openmp was given.
Chris@10 19389 if test "${enable_openmp+set}" = set; then :
Chris@10 19390 enableval=$enable_openmp; enable_openmp=$enableval
Chris@10 19391 else
Chris@10 19392 enable_openmp=no
Chris@10 19393 fi
Chris@10 19394
Chris@10 19395
Chris@10 19396 if test "$enable_openmp" = "yes"; then
Chris@10 19397
Chris@10 19398 $as_echo "#define HAVE_OPENMP 1" >>confdefs.h
Chris@10 19399
Chris@10 19400
Chris@10 19401
Chris@10 19402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP flag of C compiler" >&5
Chris@10 19403 $as_echo_n "checking for OpenMP flag of C compiler... " >&6; }
Chris@10 19404 if ${ax_cv_c_openmp+:} false; then :
Chris@10 19405 $as_echo_n "(cached) " >&6
Chris@10 19406 else
Chris@10 19407 saveCFLAGS=$CFLAGS
Chris@10 19408 ax_cv_c_openmp=unknown
Chris@10 19409 # Flags to try: -fopenmp (gcc), -openmp (icc), -mp (SGI & PGI),
Chris@10 19410 # -xopenmp (Sun), -omp (Tru64), -qsmp=omp (AIX), none
Chris@10 19411 ax_openmp_flags="-fopenmp -openmp -mp -xopenmp -omp -qsmp=omp none"
Chris@10 19412 if test "x$OPENMP_CFLAGS" != x; then
Chris@10 19413 ax_openmp_flags="$OPENMP_CFLAGS $ax_openmp_flags"
Chris@10 19414 fi
Chris@10 19415 for ax_openmp_flag in $ax_openmp_flags; do
Chris@10 19416 case $ax_openmp_flag in
Chris@10 19417 none) CFLAGS=$saveC ;;
Chris@10 19418 *) CFLAGS="$saveCFLAGS $ax_openmp_flag" ;;
Chris@10 19419 esac
Chris@10 19420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 19421 /* end confdefs.h. */
Chris@10 19422
Chris@10 19423 /* Override any GCC internal prototype to avoid an error.
Chris@10 19424 Use char because int might match the return type of a GCC
Chris@10 19425 builtin and then its argument prototype would still apply. */
Chris@10 19426 #ifdef __cplusplus
Chris@10 19427 extern "C"
Chris@10 19428 #endif
Chris@10 19429 char omp_set_num_threads ();
Chris@10 19430 #ifdef F77_DUMMY_MAIN
Chris@10 19431
Chris@10 19432 # ifdef __cplusplus
Chris@10 19433 extern "C"
Chris@10 19434 # endif
Chris@10 19435 int F77_DUMMY_MAIN() { return 1; }
Chris@10 19436
Chris@10 19437 #endif
Chris@10 19438 int
Chris@10 19439 main ()
Chris@10 19440 {
Chris@10 19441 return omp_set_num_threads ();
Chris@10 19442 ;
Chris@10 19443 return 0;
Chris@10 19444 }
Chris@10 19445 _ACEOF
Chris@10 19446 if ac_fn_c_try_link "$LINENO"; then :
Chris@10 19447 ax_cv_c_openmp=$ax_openmp_flag; break
Chris@10 19448 fi
Chris@10 19449 rm -f core conftest.err conftest.$ac_objext \
Chris@10 19450 conftest$ac_exeext conftest.$ac_ext
Chris@10 19451 done
Chris@10 19452 CFLAGS=$saveCFLAGS
Chris@10 19453
Chris@10 19454 fi
Chris@10 19455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_openmp" >&5
Chris@10 19456 $as_echo "$ax_cv_c_openmp" >&6; }
Chris@10 19457 if test "x$ax_cv_c_openmp" = "xunknown"; then
Chris@10 19458 as_fn_error $? "don't know how to enable OpenMP" "$LINENO" 5
Chris@10 19459 else
Chris@10 19460 if test "x$ax_cv_c_openmp" != "xnone"; then
Chris@10 19461 OPENMP_CFLAGS=$ax_cv_c_openmp
Chris@10 19462 fi
Chris@10 19463
Chris@10 19464 $as_echo "#define HAVE_OPENMP 1" >>confdefs.h
Chris@10 19465
Chris@10 19466 fi
Chris@10 19467
Chris@10 19468
Chris@10 19469 fi
Chris@10 19470
Chris@10 19471 # Check whether --enable-threads was given.
Chris@10 19472 if test "${enable_threads+set}" = set; then :
Chris@10 19473 enableval=$enable_threads; enable_threads=$enableval
Chris@10 19474 else
Chris@10 19475 enable_threads=no
Chris@10 19476 fi
Chris@10 19477
Chris@10 19478
Chris@10 19479 if test "$enable_threads" = "yes"; then
Chris@10 19480
Chris@10 19481 $as_echo "#define HAVE_THREADS 1" >>confdefs.h
Chris@10 19482
Chris@10 19483 fi
Chris@10 19484
Chris@10 19485
Chris@10 19486 # Check whether --with-combined-threads was given.
Chris@10 19487 if test "${with_combined_threads+set}" = set; then :
Chris@10 19488 withval=$with_combined_threads; with_combined_threads=$withval
Chris@10 19489 else
Chris@10 19490 with_combined_threads=no
Chris@10 19491 fi
Chris@10 19492
Chris@10 19493
Chris@10 19494 if test "$with_combined_threads" = yes; then
Chris@10 19495 if test "$enable_openmp" = "yes"; then
Chris@10 19496 as_fn_error $? "--with-combined-threads incompatible with --enable-openmp" "$LINENO" 5
Chris@10 19497 fi
Chris@10 19498 if test "$enable_threads" != "yes"; then
Chris@10 19499 as_fn_error $? "--with-combined-threads requires --enable-threads" "$LINENO" 5
Chris@10 19500 fi
Chris@10 19501 fi
Chris@10 19502
Chris@10 19503 THREADLIBS=""
Chris@10 19504 if test "$enable_threads" = "yes"; then
Chris@10 19505 # POSIX threads, the default choice:
Chris@10 19506 if test -z "$THREADLIBS"; then
Chris@10 19507
Chris@10 19508
Chris@10 19509
Chris@10 19510 ac_ext=c
Chris@10 19511 ac_cpp='$CPP $CPPFLAGS'
Chris@10 19512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@10 19513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 19514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@10 19515
Chris@10 19516 acx_pthread_ok=no
Chris@10 19517
Chris@10 19518 # We used to check for pthread.h first, but this fails if pthread.h
Chris@10 19519 # requires special compiler flags (e.g. on True64 or Sequent).
Chris@10 19520 # It gets checked for in the link test anyway.
Chris@10 19521
Chris@10 19522 # First of all, check if the user has set any of the PTHREAD_LIBS,
Chris@10 19523 # etcetera environment variables, and if threads linking works using
Chris@10 19524 # them:
Chris@10 19525 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
Chris@10 19526 save_CFLAGS="$CFLAGS"
Chris@10 19527 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
Chris@10 19528 save_LIBS="$LIBS"
Chris@10 19529 LIBS="$PTHREAD_LIBS $LIBS"
Chris@10 19530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
Chris@10 19531 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
Chris@10 19532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 19533 /* end confdefs.h. */
Chris@10 19534
Chris@10 19535 /* Override any GCC internal prototype to avoid an error.
Chris@10 19536 Use char because int might match the return type of a GCC
Chris@10 19537 builtin and then its argument prototype would still apply. */
Chris@10 19538 #ifdef __cplusplus
Chris@10 19539 extern "C"
Chris@10 19540 #endif
Chris@10 19541 char pthread_join ();
Chris@10 19542 #ifdef F77_DUMMY_MAIN
Chris@10 19543
Chris@10 19544 # ifdef __cplusplus
Chris@10 19545 extern "C"
Chris@10 19546 # endif
Chris@10 19547 int F77_DUMMY_MAIN() { return 1; }
Chris@10 19548
Chris@10 19549 #endif
Chris@10 19550 int
Chris@10 19551 main ()
Chris@10 19552 {
Chris@10 19553 return pthread_join ();
Chris@10 19554 ;
Chris@10 19555 return 0;
Chris@10 19556 }
Chris@10 19557 _ACEOF
Chris@10 19558 if ac_fn_c_try_link "$LINENO"; then :
Chris@10 19559 acx_pthread_ok=yes
Chris@10 19560 fi
Chris@10 19561 rm -f core conftest.err conftest.$ac_objext \
Chris@10 19562 conftest$ac_exeext conftest.$ac_ext
Chris@10 19563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
Chris@10 19564 $as_echo "$acx_pthread_ok" >&6; }
Chris@10 19565 if test x"$acx_pthread_ok" = xno; then
Chris@10 19566 PTHREAD_LIBS=""
Chris@10 19567 PTHREAD_CFLAGS=""
Chris@10 19568 fi
Chris@10 19569 LIBS="$save_LIBS"
Chris@10 19570 CFLAGS="$save_CFLAGS"
Chris@10 19571 fi
Chris@10 19572
Chris@10 19573 # We must check for the threads library under a number of different
Chris@10 19574 # names; the ordering is very important because some systems
Chris@10 19575 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
Chris@10 19576 # libraries is broken (non-POSIX).
Chris@10 19577
Chris@10 19578 # Create a list of thread flags to try. Items starting with a "-" are
Chris@10 19579 # C compiler flags, and other items are library names, except for "none"
Chris@10 19580 # which indicates that we try without any flags at all, and "pthread-config"
Chris@10 19581 # which is a program returning the flags for the Pth emulation library.
Chris@10 19582
Chris@10 19583 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
Chris@10 19584
Chris@10 19585 # The ordering *is* (sometimes) important. Some notes on the
Chris@10 19586 # individual items follow:
Chris@10 19587
Chris@10 19588 # pthreads: AIX (must check this before -lpthread)
Chris@10 19589 # none: in case threads are in libc; should be tried before -Kthread and
Chris@10 19590 # other compiler flags to prevent continual compiler warnings
Chris@10 19591 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
Chris@10 19592 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
Chris@10 19593 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
Chris@10 19594 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
Chris@10 19595 # -pthreads: Solaris/gcc
Chris@10 19596 # -mthreads: Mingw32/gcc, Lynx/gcc
Chris@10 19597 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
Chris@10 19598 # doesn't hurt to check since this sometimes defines pthreads too;
Chris@10 19599 # also defines -D_REENTRANT)
Chris@10 19600 # ... -mt is also the pthreads flag for HP/aCC
Chris@10 19601 # (where it should come before -mthreads to avoid spurious warnings)
Chris@10 19602 # pthread: Linux, etcetera
Chris@10 19603 # --thread-safe: KAI C++
Chris@10 19604 # pthread-config: use pthread-config program (for GNU Pth library)
Chris@10 19605
Chris@10 19606 case "${host_cpu}-${host_os}" in
Chris@10 19607 *solaris*)
Chris@10 19608
Chris@10 19609 # On Solaris (at least, for some versions), libc contains stubbed
Chris@10 19610 # (non-functional) versions of the pthreads routines, so link-based
Chris@10 19611 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
Chris@10 19612 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
Chris@10 19613 # a function called by this macro, so we could check for that, but
Chris@10 19614 # who knows whether they'll stub that too in a future libc.) So,
Chris@10 19615 # we'll just look for -pthreads and -lpthread first:
Chris@10 19616
Chris@10 19617 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
Chris@10 19618 ;;
Chris@10 19619 esac
Chris@10 19620
Chris@10 19621 if test x"$acx_pthread_ok" = xno; then
Chris@10 19622 for flag in $acx_pthread_flags; do
Chris@10 19623
Chris@10 19624 case $flag in
Chris@10 19625 none)
Chris@10 19626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
Chris@10 19627 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
Chris@10 19628 ;;
Chris@10 19629
Chris@10 19630 -*)
Chris@10 19631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
Chris@10 19632 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
Chris@10 19633 PTHREAD_CFLAGS="$flag"
Chris@10 19634 ;;
Chris@10 19635
Chris@10 19636 pthread-config)
Chris@10 19637 # Extract the first word of "pthread-config", so it can be a program name with args.
Chris@10 19638 set dummy pthread-config; ac_word=$2
Chris@10 19639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 19640 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 19641 if ${ac_cv_prog_acx_pthread_config+:} false; then :
Chris@10 19642 $as_echo_n "(cached) " >&6
Chris@10 19643 else
Chris@10 19644 if test -n "$acx_pthread_config"; then
Chris@10 19645 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
Chris@10 19646 else
Chris@10 19647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 19648 for as_dir in $PATH
Chris@10 19649 do
Chris@10 19650 IFS=$as_save_IFS
Chris@10 19651 test -z "$as_dir" && as_dir=.
Chris@10 19652 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 19653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 19654 ac_cv_prog_acx_pthread_config="yes"
Chris@10 19655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 19656 break 2
Chris@10 19657 fi
Chris@10 19658 done
Chris@10 19659 done
Chris@10 19660 IFS=$as_save_IFS
Chris@10 19661
Chris@10 19662 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
Chris@10 19663 fi
Chris@10 19664 fi
Chris@10 19665 acx_pthread_config=$ac_cv_prog_acx_pthread_config
Chris@10 19666 if test -n "$acx_pthread_config"; then
Chris@10 19667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
Chris@10 19668 $as_echo "$acx_pthread_config" >&6; }
Chris@10 19669 else
Chris@10 19670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 19671 $as_echo "no" >&6; }
Chris@10 19672 fi
Chris@10 19673
Chris@10 19674
Chris@10 19675 if test x"$acx_pthread_config" = xno; then continue; fi
Chris@10 19676 PTHREAD_CFLAGS="`pthread-config --cflags`"
Chris@10 19677 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
Chris@10 19678 ;;
Chris@10 19679
Chris@10 19680 *)
Chris@10 19681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
Chris@10 19682 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
Chris@10 19683 PTHREAD_LIBS="-l$flag"
Chris@10 19684 ;;
Chris@10 19685 esac
Chris@10 19686
Chris@10 19687 save_LIBS="$LIBS"
Chris@10 19688 save_CFLAGS="$CFLAGS"
Chris@10 19689 LIBS="$PTHREAD_LIBS $LIBS"
Chris@10 19690 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
Chris@10 19691
Chris@10 19692 # Check for various functions. We must include pthread.h,
Chris@10 19693 # since some functions may be macros. (On the Sequent, we
Chris@10 19694 # need a special flag -Kthread to make this header compile.)
Chris@10 19695 # We check for pthread_join because it is in -lpthread on IRIX
Chris@10 19696 # while pthread_create is in libc. We check for pthread_attr_init
Chris@10 19697 # due to DEC craziness with -lpthreads. We check for
Chris@10 19698 # pthread_cleanup_push because it is one of the few pthread
Chris@10 19699 # functions on Solaris that doesn't have a non-functional libc stub.
Chris@10 19700 # We try pthread_create on general principles.
Chris@10 19701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 19702 /* end confdefs.h. */
Chris@10 19703 #include <pthread.h>
Chris@10 19704 #ifdef F77_DUMMY_MAIN
Chris@10 19705
Chris@10 19706 # ifdef __cplusplus
Chris@10 19707 extern "C"
Chris@10 19708 # endif
Chris@10 19709 int F77_DUMMY_MAIN() { return 1; }
Chris@10 19710
Chris@10 19711 #endif
Chris@10 19712 int
Chris@10 19713 main ()
Chris@10 19714 {
Chris@10 19715 pthread_t th; pthread_join(th, (void**) 0);
Chris@10 19716 pthread_attr_init((pthread_attr_t*) 0);
Chris@10 19717 pthread_cleanup_push((void(*)(void *)) 0, (void*) 0);
Chris@10 19718 pthread_create((pthread_t*) 0, (pthread_attr_t*) 0,
Chris@10 19719 (void*(*)(void *)) 0, (void*) 0);
Chris@10 19720 pthread_cleanup_pop(0);
Chris@10 19721 ;
Chris@10 19722 return 0;
Chris@10 19723 }
Chris@10 19724 _ACEOF
Chris@10 19725 if ac_fn_c_try_link "$LINENO"; then :
Chris@10 19726 acx_pthread_ok=yes
Chris@10 19727 fi
Chris@10 19728 rm -f core conftest.err conftest.$ac_objext \
Chris@10 19729 conftest$ac_exeext conftest.$ac_ext
Chris@10 19730
Chris@10 19731 LIBS="$save_LIBS"
Chris@10 19732 CFLAGS="$save_CFLAGS"
Chris@10 19733
Chris@10 19734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
Chris@10 19735 $as_echo "$acx_pthread_ok" >&6; }
Chris@10 19736 if test "x$acx_pthread_ok" = xyes; then
Chris@10 19737 break;
Chris@10 19738 fi
Chris@10 19739
Chris@10 19740 PTHREAD_LIBS=""
Chris@10 19741 PTHREAD_CFLAGS=""
Chris@10 19742 done
Chris@10 19743 fi
Chris@10 19744
Chris@10 19745 # Various other checks:
Chris@10 19746 if test "x$acx_pthread_ok" = xyes; then
Chris@10 19747 save_LIBS="$LIBS"
Chris@10 19748 LIBS="$PTHREAD_LIBS $LIBS"
Chris@10 19749 save_CFLAGS="$CFLAGS"
Chris@10 19750 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
Chris@10 19751
Chris@10 19752 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
Chris@10 19753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
Chris@10 19754 $as_echo_n "checking for joinable pthread attribute... " >&6; }
Chris@10 19755 attr_name=unknown
Chris@10 19756 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
Chris@10 19757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 19758 /* end confdefs.h. */
Chris@10 19759 #include <pthread.h>
Chris@10 19760 #ifdef F77_DUMMY_MAIN
Chris@10 19761
Chris@10 19762 # ifdef __cplusplus
Chris@10 19763 extern "C"
Chris@10 19764 # endif
Chris@10 19765 int F77_DUMMY_MAIN() { return 1; }
Chris@10 19766
Chris@10 19767 #endif
Chris@10 19768 int
Chris@10 19769 main ()
Chris@10 19770 {
Chris@10 19771 int attr=$attr; return attr;
Chris@10 19772 ;
Chris@10 19773 return 0;
Chris@10 19774 }
Chris@10 19775 _ACEOF
Chris@10 19776 if ac_fn_c_try_link "$LINENO"; then :
Chris@10 19777 attr_name=$attr; break
Chris@10 19778 fi
Chris@10 19779 rm -f core conftest.err conftest.$ac_objext \
Chris@10 19780 conftest$ac_exeext conftest.$ac_ext
Chris@10 19781 done
Chris@10 19782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
Chris@10 19783 $as_echo "$attr_name" >&6; }
Chris@10 19784 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
Chris@10 19785
Chris@10 19786 cat >>confdefs.h <<_ACEOF
Chris@10 19787 #define PTHREAD_CREATE_JOINABLE $attr_name
Chris@10 19788 _ACEOF
Chris@10 19789
Chris@10 19790 fi
Chris@10 19791
Chris@10 19792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
Chris@10 19793 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
Chris@10 19794 flag=no
Chris@10 19795 case "${host_cpu}-${host_os}" in
Chris@10 19796 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
Chris@10 19797 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
Chris@10 19798 esac
Chris@10 19799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
Chris@10 19800 $as_echo "${flag}" >&6; }
Chris@10 19801 if test "x$flag" != xno; then
Chris@10 19802 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
Chris@10 19803 fi
Chris@10 19804
Chris@10 19805 LIBS="$save_LIBS"
Chris@10 19806 CFLAGS="$save_CFLAGS"
Chris@10 19807
Chris@10 19808 # More AIX lossage: must compile with xlc_r or cc_r
Chris@10 19809 if test x"$GCC" != xyes; then
Chris@10 19810 for ac_prog in xlc_r cc_r
Chris@10 19811 do
Chris@10 19812 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@10 19813 set dummy $ac_prog; ac_word=$2
Chris@10 19814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@10 19815 $as_echo_n "checking for $ac_word... " >&6; }
Chris@10 19816 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
Chris@10 19817 $as_echo_n "(cached) " >&6
Chris@10 19818 else
Chris@10 19819 if test -n "$PTHREAD_CC"; then
Chris@10 19820 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
Chris@10 19821 else
Chris@10 19822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 19823 for as_dir in $PATH
Chris@10 19824 do
Chris@10 19825 IFS=$as_save_IFS
Chris@10 19826 test -z "$as_dir" && as_dir=.
Chris@10 19827 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@10 19828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@10 19829 ac_cv_prog_PTHREAD_CC="$ac_prog"
Chris@10 19830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@10 19831 break 2
Chris@10 19832 fi
Chris@10 19833 done
Chris@10 19834 done
Chris@10 19835 IFS=$as_save_IFS
Chris@10 19836
Chris@10 19837 fi
Chris@10 19838 fi
Chris@10 19839 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
Chris@10 19840 if test -n "$PTHREAD_CC"; then
Chris@10 19841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
Chris@10 19842 $as_echo "$PTHREAD_CC" >&6; }
Chris@10 19843 else
Chris@10 19844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 19845 $as_echo "no" >&6; }
Chris@10 19846 fi
Chris@10 19847
Chris@10 19848
Chris@10 19849 test -n "$PTHREAD_CC" && break
Chris@10 19850 done
Chris@10 19851 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
Chris@10 19852
Chris@10 19853 else
Chris@10 19854 PTHREAD_CC=$CC
Chris@10 19855 fi
Chris@10 19856 else
Chris@10 19857 PTHREAD_CC="$CC"
Chris@10 19858 fi
Chris@10 19859
Chris@10 19860
Chris@10 19861
Chris@10 19862
Chris@10 19863
Chris@10 19864 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
Chris@10 19865 if test x"$acx_pthread_ok" = xyes; then
Chris@10 19866 THREADLIBS="$PTHREAD_LIBS "
Chris@10 19867 CC="$PTHREAD_CC"
Chris@10 19868
Chris@10 19869 $as_echo "#define USING_POSIX_THREADS 1" >>confdefs.h
Chris@10 19870
Chris@10 19871 :
Chris@10 19872 else
Chris@10 19873 acx_pthread_ok=no
Chris@10 19874
Chris@10 19875 fi
Chris@10 19876 ac_ext=c
Chris@10 19877 ac_cpp='$CPP $CPPFLAGS'
Chris@10 19878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@10 19879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@10 19880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@10 19881
Chris@10 19882
Chris@10 19883 fi
Chris@10 19884
Chris@10 19885 if test -z "$THREADLIBS"; then
Chris@10 19886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32 threads" >&5
Chris@10 19887 $as_echo_n "checking for Win32 threads... " >&6; }
Chris@10 19888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 19889 /* end confdefs.h. */
Chris@10 19890 #include <windows.h>
Chris@10 19891 #ifdef F77_DUMMY_MAIN
Chris@10 19892
Chris@10 19893 # ifdef __cplusplus
Chris@10 19894 extern "C"
Chris@10 19895 # endif
Chris@10 19896 int F77_DUMMY_MAIN() { return 1; }
Chris@10 19897
Chris@10 19898 #endif
Chris@10 19899 int
Chris@10 19900 main ()
Chris@10 19901 {
Chris@10 19902 _beginthreadex(0,0,0,0,0,0);
Chris@10 19903 ;
Chris@10 19904 return 0;
Chris@10 19905 }
Chris@10 19906 _ACEOF
Chris@10 19907 if ac_fn_c_try_link "$LINENO"; then :
Chris@10 19908 THREADLIBS=" "; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@10 19909 $as_echo "yes" >&6; }
Chris@10 19910 else
Chris@10 19911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@10 19912 $as_echo "no" >&6; }
Chris@10 19913 fi
Chris@10 19914 rm -f core conftest.err conftest.$ac_objext \
Chris@10 19915 conftest$ac_exeext conftest.$ac_ext
Chris@10 19916 fi
Chris@10 19917
Chris@10 19918 if test -z "$THREADLIBS"; then
Chris@10 19919 as_fn_error $? "couldn't find threads library for --enable-threads" "$LINENO" 5
Chris@10 19920 fi
Chris@10 19921
Chris@10 19922 $as_echo "#define HAVE_THREADS 1" >>confdefs.h
Chris@10 19923
Chris@10 19924 fi
Chris@10 19925
Chris@10 19926 if test "$enable_threads" = "yes"; then
Chris@10 19927 THREADS_TRUE=
Chris@10 19928 THREADS_FALSE='#'
Chris@10 19929 else
Chris@10 19930 THREADS_TRUE='#'
Chris@10 19931 THREADS_FALSE=
Chris@10 19932 fi
Chris@10 19933
Chris@10 19934 if test "$enable_openmp" = "yes"; then
Chris@10 19935 OPENMP_TRUE=
Chris@10 19936 OPENMP_FALSE='#'
Chris@10 19937 else
Chris@10 19938 OPENMP_TRUE='#'
Chris@10 19939 OPENMP_FALSE=
Chris@10 19940 fi
Chris@10 19941
Chris@10 19942 if test "$enable_threads" = "yes" -o "$enable_openmp" = "yes"; then
Chris@10 19943 SMP_TRUE=
Chris@10 19944 SMP_FALSE='#'
Chris@10 19945 else
Chris@10 19946 SMP_TRUE='#'
Chris@10 19947 SMP_FALSE=
Chris@10 19948 fi
Chris@10 19949
Chris@10 19950 if test x"$with_combined_threads" = xyes; then
Chris@10 19951 COMBINED_THREADS_TRUE=
Chris@10 19952 COMBINED_THREADS_FALSE='#'
Chris@10 19953 else
Chris@10 19954 COMBINED_THREADS_TRUE='#'
Chris@10 19955 COMBINED_THREADS_FALSE=
Chris@10 19956 fi
Chris@10 19957
Chris@10 19958
Chris@10 19959
Chris@10 19960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a cycle counter is available" >&5
Chris@10 19961 $as_echo_n "checking whether a cycle counter is available... " >&6; }
Chris@10 19962 save_CPPFLAGS=$CPPFLAGS
Chris@10 19963 CPPFLAGS="$CPPFLAGS -I$srcdir/kernel"
Chris@10 19964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@10 19965 /* end confdefs.h. */
Chris@10 19966 #include "cycle.h"
Chris@10 19967 #ifndef HAVE_TICK_COUNTER
Chris@10 19968 # error No cycle counter
Chris@10 19969 #endif
Chris@10 19970 _ACEOF
Chris@10 19971 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@10 19972 ok=yes
Chris@10 19973 else
Chris@10 19974 ok=no
Chris@10 19975 fi
Chris@10 19976 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@10 19977 CPPFLAGS=$save_CPPFLAGS
Chris@10 19978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ok" >&5
Chris@10 19979 $as_echo "$ok" >&6; }
Chris@10 19980 if test $ok = no && test "x$with_slow_timer" = xno; then
Chris@10 19981 echo "***************************************************************"
Chris@10 19982 echo "WARNING: No cycle counter found. FFTW will use ESTIMATE mode "
Chris@10 19983 echo " for all plans. See the manual for more information."
Chris@10 19984 echo "***************************************************************"
Chris@10 19985 fi
Chris@10 19986
Chris@10 19987
Chris@10 19988
Chris@10 19989 cat >>confdefs.h <<_ACEOF
Chris@10 19990 #define FFTW_CC "$CC $CFLAGS"
Chris@10 19991 _ACEOF
Chris@10 19992
Chris@10 19993
Chris@10 19994 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@10 19995
Chris@10 19996
Chris@10 19997 cat >confcache <<\_ACEOF
Chris@10 19998 # This file is a shell script that caches the results of configure
Chris@10 19999 # tests run on this system so they can be shared between configure
Chris@10 20000 # scripts and configure runs, see configure's option --config-cache.
Chris@10 20001 # It is not useful on other systems. If it contains results you don't
Chris@10 20002 # want to keep, you may remove or edit it.
Chris@10 20003 #
Chris@10 20004 # config.status only pays attention to the cache file if you give it
Chris@10 20005 # the --recheck option to rerun configure.
Chris@10 20006 #
Chris@10 20007 # `ac_cv_env_foo' variables (set or unset) will be overridden when
Chris@10 20008 # loading this file, other *unset* `ac_cv_foo' will be assigned the
Chris@10 20009 # following values.
Chris@10 20010
Chris@10 20011 _ACEOF
Chris@10 20012
Chris@10 20013 # The following way of writing the cache mishandles newlines in values,
Chris@10 20014 # but we know of no workaround that is simple, portable, and efficient.
Chris@10 20015 # So, we kill variables containing newlines.
Chris@10 20016 # Ultrix sh set writes to stderr and can't be redirected directly,
Chris@10 20017 # and sets the high bit in the cache file unless we assign to the vars.
Chris@10 20018 (
Chris@10 20019 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
Chris@10 20020 eval ac_val=\$$ac_var
Chris@10 20021 case $ac_val in #(
Chris@10 20022 *${as_nl}*)
Chris@10 20023 case $ac_var in #(
Chris@10 20024 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Chris@10 20025 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Chris@10 20026 esac
Chris@10 20027 case $ac_var in #(
Chris@10 20028 _ | IFS | as_nl) ;; #(
Chris@10 20029 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Chris@10 20030 *) { eval $ac_var=; unset $ac_var;} ;;
Chris@10 20031 esac ;;
Chris@10 20032 esac
Chris@10 20033 done
Chris@10 20034
Chris@10 20035 (set) 2>&1 |
Chris@10 20036 case $as_nl`(ac_space=' '; set) 2>&1` in #(
Chris@10 20037 *${as_nl}ac_space=\ *)
Chris@10 20038 # `set' does not quote correctly, so add quotes: double-quote
Chris@10 20039 # substitution turns \\\\ into \\, and sed turns \\ into \.
Chris@10 20040 sed -n \
Chris@10 20041 "s/'/'\\\\''/g;
Chris@10 20042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Chris@10 20043 ;; #(
Chris@10 20044 *)
Chris@10 20045 # `set' quotes correctly as required by POSIX, so do not add quotes.
Chris@10 20046 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Chris@10 20047 ;;
Chris@10 20048 esac |
Chris@10 20049 sort
Chris@10 20050 ) |
Chris@10 20051 sed '
Chris@10 20052 /^ac_cv_env_/b end
Chris@10 20053 t clear
Chris@10 20054 :clear
Chris@10 20055 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
Chris@10 20056 t end
Chris@10 20057 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
Chris@10 20058 :end' >>confcache
Chris@10 20059 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
Chris@10 20060 if test -w "$cache_file"; then
Chris@10 20061 if test "x$cache_file" != "x/dev/null"; then
Chris@10 20062 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Chris@10 20063 $as_echo "$as_me: updating cache $cache_file" >&6;}
Chris@10 20064 if test ! -f "$cache_file" || test -h "$cache_file"; then
Chris@10 20065 cat confcache >"$cache_file"
Chris@10 20066 else
Chris@10 20067 case $cache_file in #(
Chris@10 20068 */* | ?:*)
Chris@10 20069 mv -f confcache "$cache_file"$$ &&
Chris@10 20070 mv -f "$cache_file"$$ "$cache_file" ;; #(
Chris@10 20071 *)
Chris@10 20072 mv -f confcache "$cache_file" ;;
Chris@10 20073 esac
Chris@10 20074 fi
Chris@10 20075 fi
Chris@10 20076 else
Chris@10 20077 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Chris@10 20078 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Chris@10 20079 fi
Chris@10 20080 fi
Chris@10 20081 rm -f confcache
Chris@10 20082
Chris@10 20083 test "x$prefix" = xNONE && prefix=$ac_default_prefix
Chris@10 20084 # Let make expand exec_prefix.
Chris@10 20085 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
Chris@10 20086
Chris@10 20087 DEFS=-DHAVE_CONFIG_H
Chris@10 20088
Chris@10 20089 ac_libobjs=
Chris@10 20090 ac_ltlibobjs=
Chris@10 20091 U=
Chris@10 20092 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
Chris@10 20093 # 1. Remove the extension, and $U if already installed.
Chris@10 20094 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Chris@10 20095 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Chris@10 20096 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
Chris@10 20097 # will be set to the directory where LIBOBJS objects are built.
Chris@10 20098 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
Chris@10 20099 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Chris@10 20100 done
Chris@10 20101 LIBOBJS=$ac_libobjs
Chris@10 20102
Chris@10 20103 LTLIBOBJS=$ac_ltlibobjs
Chris@10 20104
Chris@10 20105
Chris@10 20106 if test -n "$EXEEXT"; then
Chris@10 20107 am__EXEEXT_TRUE=
Chris@10 20108 am__EXEEXT_FALSE='#'
Chris@10 20109 else
Chris@10 20110 am__EXEEXT_TRUE='#'
Chris@10 20111 am__EXEEXT_FALSE=
Chris@10 20112 fi
Chris@10 20113
Chris@10 20114 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
Chris@10 20115 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
Chris@10 20116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@10 20117 fi
Chris@10 20118 if test -z "${SINGLE_TRUE}" && test -z "${SINGLE_FALSE}"; then
Chris@10 20119 as_fn_error $? "conditional \"SINGLE\" was never defined.
Chris@10 20120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@10 20121 fi
Chris@10 20122 if test -z "${LDOUBLE_TRUE}" && test -z "${LDOUBLE_FALSE}"; then
Chris@10 20123 as_fn_error $? "conditional \"LDOUBLE\" was never defined.
Chris@10 20124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@10 20125 fi
Chris@10 20126 if test -z "${QUAD_TRUE}" && test -z "${QUAD_FALSE}"; then
Chris@10 20127 as_fn_error $? "conditional \"QUAD\" was never defined.
Chris@10 20128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@10 20129 fi
Chris@10 20130 if test -z "${HAVE_SSE2_TRUE}" && test -z "${HAVE_SSE2_FALSE}"; then
Chris@10 20131 as_fn_error $? "conditional \"HAVE_SSE2\" was never defined.
Chris@10 20132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@10 20133 fi
Chris@10 20134 if test -z "${HAVE_AVX_TRUE}" && test -z "${HAVE_AVX_FALSE}"; then
Chris@10 20135 as_fn_error $? "conditional \"HAVE_AVX\" was never defined.
Chris@10 20136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@10 20137 fi
Chris@10 20138 if test -z "${HAVE_ALTIVEC_TRUE}" && test -z "${HAVE_ALTIVEC_FALSE}"; then
Chris@10 20139 as_fn_error $? "conditional \"HAVE_ALTIVEC\" was never defined.
Chris@10 20140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@10 20141 fi
Chris@10 20142 if test -z "${HAVE_NEON_TRUE}" && test -z "${HAVE_NEON_FALSE}"; then
Chris@10 20143 as_fn_error $? "conditional \"HAVE_NEON\" was never defined.
Chris@10 20144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@10 20145 fi
Chris@10 20146 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Chris@10 20147 as_fn_error $? "conditional \"AMDEP\" was never defined.
Chris@10 20148 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@10 20149 fi
Chris@10 20150 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Chris@10 20151 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Chris@10 20152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@10 20153 fi
Chris@10 20154 if test -z "${MPI_TRUE}" && test -z "${MPI_FALSE}"; then
Chris@10 20155 as_fn_error $? "conditional \"MPI\" was never defined.
Chris@10 20156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@10 20157 fi
Chris@10 20158 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
Chris@10 20159 as_fn_error $? "conditional \"THREADS\" was never defined.
Chris@10 20160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@10 20161 fi
Chris@10 20162 if test -z "${OPENMP_TRUE}" && test -z "${OPENMP_FALSE}"; then
Chris@10 20163 as_fn_error $? "conditional \"OPENMP\" was never defined.
Chris@10 20164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@10 20165 fi
Chris@10 20166 if test -z "${SMP_TRUE}" && test -z "${SMP_FALSE}"; then
Chris@10 20167 as_fn_error $? "conditional \"SMP\" was never defined.
Chris@10 20168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@10 20169 fi
Chris@10 20170 if test -z "${COMBINED_THREADS_TRUE}" && test -z "${COMBINED_THREADS_FALSE}"; then
Chris@10 20171 as_fn_error $? "conditional \"COMBINED_THREADS\" was never defined.
Chris@10 20172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@10 20173 fi
Chris@10 20174
Chris@10 20175 : "${CONFIG_STATUS=./config.status}"
Chris@10 20176 ac_write_fail=0
Chris@10 20177 ac_clean_files_save=$ac_clean_files
Chris@10 20178 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Chris@10 20179 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Chris@10 20180 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Chris@10 20181 as_write_fail=0
Chris@10 20182 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Chris@10 20183 #! $SHELL
Chris@10 20184 # Generated by $as_me.
Chris@10 20185 # Run this file to recreate the current configuration.
Chris@10 20186 # Compiler output produced by configure, useful for debugging
Chris@10 20187 # configure, is in config.log if it exists.
Chris@10 20188
Chris@10 20189 debug=false
Chris@10 20190 ac_cs_recheck=false
Chris@10 20191 ac_cs_silent=false
Chris@10 20192
Chris@10 20193 SHELL=\${CONFIG_SHELL-$SHELL}
Chris@10 20194 export SHELL
Chris@10 20195 _ASEOF
Chris@10 20196 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
Chris@10 20197 ## -------------------- ##
Chris@10 20198 ## M4sh Initialization. ##
Chris@10 20199 ## -------------------- ##
Chris@10 20200
Chris@10 20201 # Be more Bourne compatible
Chris@10 20202 DUALCASE=1; export DUALCASE # for MKS sh
Chris@10 20203 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Chris@10 20204 emulate sh
Chris@10 20205 NULLCMD=:
Chris@10 20206 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Chris@10 20207 # is contrary to our usage. Disable this feature.
Chris@10 20208 alias -g '${1+"$@"}'='"$@"'
Chris@10 20209 setopt NO_GLOB_SUBST
Chris@10 20210 else
Chris@10 20211 case `(set -o) 2>/dev/null` in #(
Chris@10 20212 *posix*) :
Chris@10 20213 set -o posix ;; #(
Chris@10 20214 *) :
Chris@10 20215 ;;
Chris@10 20216 esac
Chris@10 20217 fi
Chris@10 20218
Chris@10 20219
Chris@10 20220 as_nl='
Chris@10 20221 '
Chris@10 20222 export as_nl
Chris@10 20223 # Printing a long string crashes Solaris 7 /usr/bin/printf.
Chris@10 20224 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@10 20225 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@10 20226 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@10 20227 # Prefer a ksh shell builtin over an external printf program on Solaris,
Chris@10 20228 # but without wasting forks for bash or zsh.
Chris@10 20229 if test -z "$BASH_VERSION$ZSH_VERSION" \
Chris@10 20230 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@10 20231 as_echo='print -r --'
Chris@10 20232 as_echo_n='print -rn --'
Chris@10 20233 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@10 20234 as_echo='printf %s\n'
Chris@10 20235 as_echo_n='printf %s'
Chris@10 20236 else
Chris@10 20237 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
Chris@10 20238 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
Chris@10 20239 as_echo_n='/usr/ucb/echo -n'
Chris@10 20240 else
Chris@10 20241 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
Chris@10 20242 as_echo_n_body='eval
Chris@10 20243 arg=$1;
Chris@10 20244 case $arg in #(
Chris@10 20245 *"$as_nl"*)
Chris@10 20246 expr "X$arg" : "X\\(.*\\)$as_nl";
Chris@10 20247 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
Chris@10 20248 esac;
Chris@10 20249 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
Chris@10 20250 '
Chris@10 20251 export as_echo_n_body
Chris@10 20252 as_echo_n='sh -c $as_echo_n_body as_echo'
Chris@10 20253 fi
Chris@10 20254 export as_echo_body
Chris@10 20255 as_echo='sh -c $as_echo_body as_echo'
Chris@10 20256 fi
Chris@10 20257
Chris@10 20258 # The user is always right.
Chris@10 20259 if test "${PATH_SEPARATOR+set}" != set; then
Chris@10 20260 PATH_SEPARATOR=:
Chris@10 20261 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
Chris@10 20262 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
Chris@10 20263 PATH_SEPARATOR=';'
Chris@10 20264 }
Chris@10 20265 fi
Chris@10 20266
Chris@10 20267
Chris@10 20268 # IFS
Chris@10 20269 # We need space, tab and new line, in precisely that order. Quoting is
Chris@10 20270 # there to prevent editors from complaining about space-tab.
Chris@10 20271 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
Chris@10 20272 # splitting by setting IFS to empty value.)
Chris@10 20273 IFS=" "" $as_nl"
Chris@10 20274
Chris@10 20275 # Find who we are. Look in the path if we contain no directory separator.
Chris@10 20276 as_myself=
Chris@10 20277 case $0 in #((
Chris@10 20278 *[\\/]* ) as_myself=$0 ;;
Chris@10 20279 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@10 20280 for as_dir in $PATH
Chris@10 20281 do
Chris@10 20282 IFS=$as_save_IFS
Chris@10 20283 test -z "$as_dir" && as_dir=.
Chris@10 20284 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
Chris@10 20285 done
Chris@10 20286 IFS=$as_save_IFS
Chris@10 20287
Chris@10 20288 ;;
Chris@10 20289 esac
Chris@10 20290 # We did not find ourselves, most probably we were run as `sh COMMAND'
Chris@10 20291 # in which case we are not to be found in the path.
Chris@10 20292 if test "x$as_myself" = x; then
Chris@10 20293 as_myself=$0
Chris@10 20294 fi
Chris@10 20295 if test ! -f "$as_myself"; then
Chris@10 20296 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Chris@10 20297 exit 1
Chris@10 20298 fi
Chris@10 20299
Chris@10 20300 # Unset variables that we do not need and which cause bugs (e.g. in
Chris@10 20301 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
Chris@10 20302 # suppresses any "Segmentation fault" message there. '((' could
Chris@10 20303 # trigger a bug in pdksh 5.2.14.
Chris@10 20304 for as_var in BASH_ENV ENV MAIL MAILPATH
Chris@10 20305 do eval test x\${$as_var+set} = xset \
Chris@10 20306 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Chris@10 20307 done
Chris@10 20308 PS1='$ '
Chris@10 20309 PS2='> '
Chris@10 20310 PS4='+ '
Chris@10 20311
Chris@10 20312 # NLS nuisances.
Chris@10 20313 LC_ALL=C
Chris@10 20314 export LC_ALL
Chris@10 20315 LANGUAGE=C
Chris@10 20316 export LANGUAGE
Chris@10 20317
Chris@10 20318 # CDPATH.
Chris@10 20319 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@10 20320
Chris@10 20321
Chris@10 20322 # as_fn_error STATUS ERROR [LINENO LOG_FD]
Chris@10 20323 # ----------------------------------------
Chris@10 20324 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
Chris@10 20325 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Chris@10 20326 # script with STATUS, using 1 if that was 0.
Chris@10 20327 as_fn_error ()
Chris@10 20328 {
Chris@10 20329 as_status=$1; test $as_status -eq 0 && as_status=1
Chris@10 20330 if test "$4"; then
Chris@10 20331 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@10 20332 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Chris@10 20333 fi
Chris@10 20334 $as_echo "$as_me: error: $2" >&2
Chris@10 20335 as_fn_exit $as_status
Chris@10 20336 } # as_fn_error
Chris@10 20337
Chris@10 20338
Chris@10 20339 # as_fn_set_status STATUS
Chris@10 20340 # -----------------------
Chris@10 20341 # Set $? to STATUS, without forking.
Chris@10 20342 as_fn_set_status ()
Chris@10 20343 {
Chris@10 20344 return $1
Chris@10 20345 } # as_fn_set_status
Chris@10 20346
Chris@10 20347 # as_fn_exit STATUS
Chris@10 20348 # -----------------
Chris@10 20349 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
Chris@10 20350 as_fn_exit ()
Chris@10 20351 {
Chris@10 20352 set +e
Chris@10 20353 as_fn_set_status $1
Chris@10 20354 exit $1
Chris@10 20355 } # as_fn_exit
Chris@10 20356
Chris@10 20357 # as_fn_unset VAR
Chris@10 20358 # ---------------
Chris@10 20359 # Portably unset VAR.
Chris@10 20360 as_fn_unset ()
Chris@10 20361 {
Chris@10 20362 { eval $1=; unset $1;}
Chris@10 20363 }
Chris@10 20364 as_unset=as_fn_unset
Chris@10 20365 # as_fn_append VAR VALUE
Chris@10 20366 # ----------------------
Chris@10 20367 # Append the text in VALUE to the end of the definition contained in VAR. Take
Chris@10 20368 # advantage of any shell optimizations that allow amortized linear growth over
Chris@10 20369 # repeated appends, instead of the typical quadratic growth present in naive
Chris@10 20370 # implementations.
Chris@10 20371 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
Chris@10 20372 eval 'as_fn_append ()
Chris@10 20373 {
Chris@10 20374 eval $1+=\$2
Chris@10 20375 }'
Chris@10 20376 else
Chris@10 20377 as_fn_append ()
Chris@10 20378 {
Chris@10 20379 eval $1=\$$1\$2
Chris@10 20380 }
Chris@10 20381 fi # as_fn_append
Chris@10 20382
Chris@10 20383 # as_fn_arith ARG...
Chris@10 20384 # ------------------
Chris@10 20385 # Perform arithmetic evaluation on the ARGs, and store the result in the
Chris@10 20386 # global $as_val. Take advantage of shells that can avoid forks. The arguments
Chris@10 20387 # must be portable across $(()) and expr.
Chris@10 20388 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
Chris@10 20389 eval 'as_fn_arith ()
Chris@10 20390 {
Chris@10 20391 as_val=$(( $* ))
Chris@10 20392 }'
Chris@10 20393 else
Chris@10 20394 as_fn_arith ()
Chris@10 20395 {
Chris@10 20396 as_val=`expr "$@" || test $? -eq 1`
Chris@10 20397 }
Chris@10 20398 fi # as_fn_arith
Chris@10 20399
Chris@10 20400
Chris@10 20401 if expr a : '\(a\)' >/dev/null 2>&1 &&
Chris@10 20402 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Chris@10 20403 as_expr=expr
Chris@10 20404 else
Chris@10 20405 as_expr=false
Chris@10 20406 fi
Chris@10 20407
Chris@10 20408 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Chris@10 20409 as_basename=basename
Chris@10 20410 else
Chris@10 20411 as_basename=false
Chris@10 20412 fi
Chris@10 20413
Chris@10 20414 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
Chris@10 20415 as_dirname=dirname
Chris@10 20416 else
Chris@10 20417 as_dirname=false
Chris@10 20418 fi
Chris@10 20419
Chris@10 20420 as_me=`$as_basename -- "$0" ||
Chris@10 20421 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
Chris@10 20422 X"$0" : 'X\(//\)$' \| \
Chris@10 20423 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Chris@10 20424 $as_echo X/"$0" |
Chris@10 20425 sed '/^.*\/\([^/][^/]*\)\/*$/{
Chris@10 20426 s//\1/
Chris@10 20427 q
Chris@10 20428 }
Chris@10 20429 /^X\/\(\/\/\)$/{
Chris@10 20430 s//\1/
Chris@10 20431 q
Chris@10 20432 }
Chris@10 20433 /^X\/\(\/\).*/{
Chris@10 20434 s//\1/
Chris@10 20435 q
Chris@10 20436 }
Chris@10 20437 s/.*/./; q'`
Chris@10 20438
Chris@10 20439 # Avoid depending upon Character Ranges.
Chris@10 20440 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
Chris@10 20441 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
Chris@10 20442 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
Chris@10 20443 as_cr_digits='0123456789'
Chris@10 20444 as_cr_alnum=$as_cr_Letters$as_cr_digits
Chris@10 20445
Chris@10 20446 ECHO_C= ECHO_N= ECHO_T=
Chris@10 20447 case `echo -n x` in #(((((
Chris@10 20448 -n*)
Chris@10 20449 case `echo 'xy\c'` in
Chris@10 20450 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Chris@10 20451 xy) ECHO_C='\c';;
Chris@10 20452 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
Chris@10 20453 ECHO_T=' ';;
Chris@10 20454 esac;;
Chris@10 20455 *)
Chris@10 20456 ECHO_N='-n';;
Chris@10 20457 esac
Chris@10 20458
Chris@10 20459 rm -f conf$$ conf$$.exe conf$$.file
Chris@10 20460 if test -d conf$$.dir; then
Chris@10 20461 rm -f conf$$.dir/conf$$.file
Chris@10 20462 else
Chris@10 20463 rm -f conf$$.dir
Chris@10 20464 mkdir conf$$.dir 2>/dev/null
Chris@10 20465 fi
Chris@10 20466 if (echo >conf$$.file) 2>/dev/null; then
Chris@10 20467 if ln -s conf$$.file conf$$ 2>/dev/null; then
Chris@10 20468 as_ln_s='ln -s'
Chris@10 20469 # ... but there are two gotchas:
Chris@10 20470 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
Chris@10 20471 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Chris@10 20472 # In both cases, we have to default to `cp -pR'.
Chris@10 20473 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Chris@10 20474 as_ln_s='cp -pR'
Chris@10 20475 elif ln conf$$.file conf$$ 2>/dev/null; then
Chris@10 20476 as_ln_s=ln
Chris@10 20477 else
Chris@10 20478 as_ln_s='cp -pR'
Chris@10 20479 fi
Chris@10 20480 else
Chris@10 20481 as_ln_s='cp -pR'
Chris@10 20482 fi
Chris@10 20483 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
Chris@10 20484 rmdir conf$$.dir 2>/dev/null
Chris@10 20485
Chris@10 20486
Chris@10 20487 # as_fn_mkdir_p
Chris@10 20488 # -------------
Chris@10 20489 # Create "$as_dir" as a directory, including parents if necessary.
Chris@10 20490 as_fn_mkdir_p ()
Chris@10 20491 {
Chris@10 20492
Chris@10 20493 case $as_dir in #(
Chris@10 20494 -*) as_dir=./$as_dir;;
Chris@10 20495 esac
Chris@10 20496 test -d "$as_dir" || eval $as_mkdir_p || {
Chris@10 20497 as_dirs=
Chris@10 20498 while :; do
Chris@10 20499 case $as_dir in #(
Chris@10 20500 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Chris@10 20501 *) as_qdir=$as_dir;;
Chris@10 20502 esac
Chris@10 20503 as_dirs="'$as_qdir' $as_dirs"
Chris@10 20504 as_dir=`$as_dirname -- "$as_dir" ||
Chris@10 20505 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@10 20506 X"$as_dir" : 'X\(//\)[^/]' \| \
Chris@10 20507 X"$as_dir" : 'X\(//\)$' \| \
Chris@10 20508 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Chris@10 20509 $as_echo X"$as_dir" |
Chris@10 20510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@10 20511 s//\1/
Chris@10 20512 q
Chris@10 20513 }
Chris@10 20514 /^X\(\/\/\)[^/].*/{
Chris@10 20515 s//\1/
Chris@10 20516 q
Chris@10 20517 }
Chris@10 20518 /^X\(\/\/\)$/{
Chris@10 20519 s//\1/
Chris@10 20520 q
Chris@10 20521 }
Chris@10 20522 /^X\(\/\).*/{
Chris@10 20523 s//\1/
Chris@10 20524 q
Chris@10 20525 }
Chris@10 20526 s/.*/./; q'`
Chris@10 20527 test -d "$as_dir" && break
Chris@10 20528 done
Chris@10 20529 test -z "$as_dirs" || eval "mkdir $as_dirs"
Chris@10 20530 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Chris@10 20531
Chris@10 20532
Chris@10 20533 } # as_fn_mkdir_p
Chris@10 20534 if mkdir -p . 2>/dev/null; then
Chris@10 20535 as_mkdir_p='mkdir -p "$as_dir"'
Chris@10 20536 else
Chris@10 20537 test -d ./-p && rmdir ./-p
Chris@10 20538 as_mkdir_p=false
Chris@10 20539 fi
Chris@10 20540
Chris@10 20541
Chris@10 20542 # as_fn_executable_p FILE
Chris@10 20543 # -----------------------
Chris@10 20544 # Test if FILE is an executable regular file.
Chris@10 20545 as_fn_executable_p ()
Chris@10 20546 {
Chris@10 20547 test -f "$1" && test -x "$1"
Chris@10 20548 } # as_fn_executable_p
Chris@10 20549 as_test_x='test -x'
Chris@10 20550 as_executable_p=as_fn_executable_p
Chris@10 20551
Chris@10 20552 # Sed expression to map a string onto a valid CPP name.
Chris@10 20553 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Chris@10 20554
Chris@10 20555 # Sed expression to map a string onto a valid variable name.
Chris@10 20556 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Chris@10 20557
Chris@10 20558
Chris@10 20559 exec 6>&1
Chris@10 20560 ## ----------------------------------- ##
Chris@10 20561 ## Main body of $CONFIG_STATUS script. ##
Chris@10 20562 ## ----------------------------------- ##
Chris@10 20563 _ASEOF
Chris@10 20564 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Chris@10 20565
Chris@10 20566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@10 20567 # Save the log message, to keep $0 and so on meaningful, and to
Chris@10 20568 # report actual input values of CONFIG_FILES etc. instead of their
Chris@10 20569 # values after options handling.
Chris@10 20570 ac_log="
Chris@10 20571 This file was extended by fftw $as_me 3.3.3, which was
Chris@10 20572 generated by GNU Autoconf 2.69. Invocation command line was
Chris@10 20573
Chris@10 20574 CONFIG_FILES = $CONFIG_FILES
Chris@10 20575 CONFIG_HEADERS = $CONFIG_HEADERS
Chris@10 20576 CONFIG_LINKS = $CONFIG_LINKS
Chris@10 20577 CONFIG_COMMANDS = $CONFIG_COMMANDS
Chris@10 20578 $ $0 $@
Chris@10 20579
Chris@10 20580 on `(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@10 20581 "
Chris@10 20582
Chris@10 20583 _ACEOF
Chris@10 20584
Chris@10 20585 case $ac_config_files in *"
Chris@10 20586 "*) set x $ac_config_files; shift; ac_config_files=$*;;
Chris@10 20587 esac
Chris@10 20588
Chris@10 20589 case $ac_config_headers in *"
Chris@10 20590 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
Chris@10 20591 esac
Chris@10 20592
Chris@10 20593
Chris@10 20594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@10 20595 # Files that config.status was made for.
Chris@10 20596 config_files="$ac_config_files"
Chris@10 20597 config_headers="$ac_config_headers"
Chris@10 20598 config_commands="$ac_config_commands"
Chris@10 20599
Chris@10 20600 _ACEOF
Chris@10 20601
Chris@10 20602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@10 20603 ac_cs_usage="\
Chris@10 20604 \`$as_me' instantiates files and other configuration actions
Chris@10 20605 from templates according to the current configuration. Unless the files
Chris@10 20606 and actions are specified as TAGs, all are instantiated by default.
Chris@10 20607
Chris@10 20608 Usage: $0 [OPTION]... [TAG]...
Chris@10 20609
Chris@10 20610 -h, --help print this help, then exit
Chris@10 20611 -V, --version print version number and configuration settings, then exit
Chris@10 20612 --config print configuration, then exit
Chris@10 20613 -q, --quiet, --silent
Chris@10 20614 do not print progress messages
Chris@10 20615 -d, --debug don't remove temporary files
Chris@10 20616 --recheck update $as_me by reconfiguring in the same conditions
Chris@10 20617 --file=FILE[:TEMPLATE]
Chris@10 20618 instantiate the configuration file FILE
Chris@10 20619 --header=FILE[:TEMPLATE]
Chris@10 20620 instantiate the configuration header FILE
Chris@10 20621
Chris@10 20622 Configuration files:
Chris@10 20623 $config_files
Chris@10 20624
Chris@10 20625 Configuration headers:
Chris@10 20626 $config_headers
Chris@10 20627
Chris@10 20628 Configuration commands:
Chris@10 20629 $config_commands
Chris@10 20630
Chris@10 20631 Report bugs to <fftw@fftw.org>."
Chris@10 20632
Chris@10 20633 _ACEOF
Chris@10 20634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@10 20635 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Chris@10 20636 ac_cs_version="\\
Chris@10 20637 fftw config.status 3.3.3
Chris@10 20638 configured by $0, generated by GNU Autoconf 2.69,
Chris@10 20639 with options \\"\$ac_cs_config\\"
Chris@10 20640
Chris@10 20641 Copyright (C) 2012 Free Software Foundation, Inc.
Chris@10 20642 This config.status script is free software; the Free Software Foundation
Chris@10 20643 gives unlimited permission to copy, distribute and modify it."
Chris@10 20644
Chris@10 20645 ac_pwd='$ac_pwd'
Chris@10 20646 srcdir='$srcdir'
Chris@10 20647 INSTALL='$INSTALL'
Chris@10 20648 MKDIR_P='$MKDIR_P'
Chris@10 20649 AWK='$AWK'
Chris@10 20650 test -n "\$AWK" || AWK=awk
Chris@10 20651 _ACEOF
Chris@10 20652
Chris@10 20653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@10 20654 # The default lists apply if the user does not specify any file.
Chris@10 20655 ac_need_defaults=:
Chris@10 20656 while test $# != 0
Chris@10 20657 do
Chris@10 20658 case $1 in
Chris@10 20659 --*=?*)
Chris@10 20660 ac_option=`expr "X$1" : 'X\([^=]*\)='`
Chris@10 20661 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Chris@10 20662 ac_shift=:
Chris@10 20663 ;;
Chris@10 20664 --*=)
Chris@10 20665 ac_option=`expr "X$1" : 'X\([^=]*\)='`
Chris@10 20666 ac_optarg=
Chris@10 20667 ac_shift=:
Chris@10 20668 ;;
Chris@10 20669 *)
Chris@10 20670 ac_option=$1
Chris@10 20671 ac_optarg=$2
Chris@10 20672 ac_shift=shift
Chris@10 20673 ;;
Chris@10 20674 esac
Chris@10 20675
Chris@10 20676 case $ac_option in
Chris@10 20677 # Handling of the options.
Chris@10 20678 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Chris@10 20679 ac_cs_recheck=: ;;
Chris@10 20680 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Chris@10 20681 $as_echo "$ac_cs_version"; exit ;;
Chris@10 20682 --config | --confi | --conf | --con | --co | --c )
Chris@10 20683 $as_echo "$ac_cs_config"; exit ;;
Chris@10 20684 --debug | --debu | --deb | --de | --d | -d )
Chris@10 20685 debug=: ;;
Chris@10 20686 --file | --fil | --fi | --f )
Chris@10 20687 $ac_shift
Chris@10 20688 case $ac_optarg in
Chris@10 20689 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@10 20690 '') as_fn_error $? "missing file argument" ;;
Chris@10 20691 esac
Chris@10 20692 as_fn_append CONFIG_FILES " '$ac_optarg'"
Chris@10 20693 ac_need_defaults=false;;
Chris@10 20694 --header | --heade | --head | --hea )
Chris@10 20695 $ac_shift
Chris@10 20696 case $ac_optarg in
Chris@10 20697 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@10 20698 esac
Chris@10 20699 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Chris@10 20700 ac_need_defaults=false;;
Chris@10 20701 --he | --h)
Chris@10 20702 # Conflict between --help and --header
Chris@10 20703 as_fn_error $? "ambiguous option: \`$1'
Chris@10 20704 Try \`$0 --help' for more information.";;
Chris@10 20705 --help | --hel | -h )
Chris@10 20706 $as_echo "$ac_cs_usage"; exit ;;
Chris@10 20707 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@10 20708 | -silent | --silent | --silen | --sile | --sil | --si | --s)
Chris@10 20709 ac_cs_silent=: ;;
Chris@10 20710
Chris@10 20711 # This is an error.
Chris@10 20712 -*) as_fn_error $? "unrecognized option: \`$1'
Chris@10 20713 Try \`$0 --help' for more information." ;;
Chris@10 20714
Chris@10 20715 *) as_fn_append ac_config_targets " $1"
Chris@10 20716 ac_need_defaults=false ;;
Chris@10 20717
Chris@10 20718 esac
Chris@10 20719 shift
Chris@10 20720 done
Chris@10 20721
Chris@10 20722 ac_configure_extra_args=
Chris@10 20723
Chris@10 20724 if $ac_cs_silent; then
Chris@10 20725 exec 6>/dev/null
Chris@10 20726 ac_configure_extra_args="$ac_configure_extra_args --silent"
Chris@10 20727 fi
Chris@10 20728
Chris@10 20729 _ACEOF
Chris@10 20730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@10 20731 if \$ac_cs_recheck; then
Chris@10 20732 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Chris@10 20733 shift
Chris@10 20734 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
Chris@10 20735 CONFIG_SHELL='$SHELL'
Chris@10 20736 export CONFIG_SHELL
Chris@10 20737 exec "\$@"
Chris@10 20738 fi
Chris@10 20739
Chris@10 20740 _ACEOF
Chris@10 20741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@10 20742 exec 5>>config.log
Chris@10 20743 {
Chris@10 20744 echo
Chris@10 20745 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
Chris@10 20746 ## Running $as_me. ##
Chris@10 20747 _ASBOX
Chris@10 20748 $as_echo "$ac_log"
Chris@10 20749 } >&5
Chris@10 20750
Chris@10 20751 _ACEOF
Chris@10 20752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@10 20753 #
Chris@10 20754 # INIT-COMMANDS
Chris@10 20755 #
Chris@10 20756 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
Chris@10 20757
Chris@10 20758
Chris@10 20759 # The HP-UX ksh and POSIX shell print the target directory to stdout
Chris@10 20760 # if CDPATH is set.
Chris@10 20761 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@10 20762
Chris@10 20763 sed_quote_subst='$sed_quote_subst'
Chris@10 20764 double_quote_subst='$double_quote_subst'
Chris@10 20765 delay_variable_subst='$delay_variable_subst'
Chris@10 20766 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
Chris@10 20767 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
Chris@10 20768 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
Chris@10 20769 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
Chris@10 20770 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
Chris@10 20771 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
Chris@10 20772 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
Chris@10 20773 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
Chris@10 20774 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
Chris@10 20775 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
Chris@10 20776 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
Chris@10 20777 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
Chris@10 20778 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
Chris@10 20779 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
Chris@10 20780 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
Chris@10 20781 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
Chris@10 20782 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
Chris@10 20783 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
Chris@10 20784 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
Chris@10 20785 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
Chris@10 20786 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
Chris@10 20787 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
Chris@10 20788 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
Chris@10 20789 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
Chris@10 20790 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
Chris@10 20791 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
Chris@10 20792 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
Chris@10 20793 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
Chris@10 20794 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
Chris@10 20795 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
Chris@10 20796 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
Chris@10 20797 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
Chris@10 20798 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
Chris@10 20799 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
Chris@10 20800 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
Chris@10 20801 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
Chris@10 20802 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
Chris@10 20803 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
Chris@10 20804 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
Chris@10 20805 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
Chris@10 20806 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
Chris@10 20807 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
Chris@10 20808 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
Chris@10 20809 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
Chris@10 20810 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
Chris@10 20811 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
Chris@10 20812 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@10 20813 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@10 20814 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
Chris@10 20815 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
Chris@10 20816 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
Chris@10 20817 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
Chris@10 20818 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
Chris@10 20819 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
Chris@10 20820 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
Chris@10 20821 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
Chris@10 20822 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@10 20823 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@10 20824 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
Chris@10 20825 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
Chris@10 20826 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
Chris@10 20827 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
Chris@10 20828 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
Chris@10 20829 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
Chris@10 20830 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
Chris@10 20831 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
Chris@10 20832 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
Chris@10 20833 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
Chris@10 20834 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
Chris@10 20835 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
Chris@10 20836 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
Chris@10 20837 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
Chris@10 20838 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
Chris@10 20839 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
Chris@10 20840 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
Chris@10 20841 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
Chris@10 20842 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
Chris@10 20843 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
Chris@10 20844 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
Chris@10 20845 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
Chris@10 20846 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
Chris@10 20847 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
Chris@10 20848 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
Chris@10 20849 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
Chris@10 20850 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
Chris@10 20851 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
Chris@10 20852 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
Chris@10 20853 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
Chris@10 20854 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
Chris@10 20855 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
Chris@10 20856 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
Chris@10 20857 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
Chris@10 20858 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
Chris@10 20859 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
Chris@10 20860 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
Chris@10 20861 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
Chris@10 20862 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
Chris@10 20863 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
Chris@10 20864 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
Chris@10 20865 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
Chris@10 20866 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
Chris@10 20867 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
Chris@10 20868 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
Chris@10 20869 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
Chris@10 20870 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
Chris@10 20871 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
Chris@10 20872 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
Chris@10 20873 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
Chris@10 20874 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
Chris@10 20875 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
Chris@10 20876 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
Chris@10 20877 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
Chris@10 20878 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
Chris@10 20879 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
Chris@10 20880 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
Chris@10 20881 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
Chris@10 20882 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
Chris@10 20883 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
Chris@10 20884 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@10 20885 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@10 20886 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
Chris@10 20887 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
Chris@10 20888 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
Chris@10 20889 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
Chris@10 20890 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
Chris@10 20891 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
Chris@10 20892 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
Chris@10 20893 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
Chris@10 20894 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
Chris@10 20895 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
Chris@10 20896 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
Chris@10 20897 LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20898 reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20899 reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20900 old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20901 compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20902 GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20903 lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20904 lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20905 lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20906 lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20907 lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20908 archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20909 enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20910 export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20911 whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20912 compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20913 old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20914 old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20915 archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20916 archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20917 module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20918 module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20919 with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20920 allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20921 no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20922 hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20923 hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20924 hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20925 hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20926 hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20927 hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20928 hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20929 inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20930 link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20931 always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20932 export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20933 exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20934 include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20935 prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20936 postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20937 file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20938 hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
Chris@10 20939
Chris@10 20940 LTCC='$LTCC'
Chris@10 20941 LTCFLAGS='$LTCFLAGS'
Chris@10 20942 compiler='$compiler_DEFAULT'
Chris@10 20943
Chris@10 20944 # A function that is used when there is no print builtin or printf.
Chris@10 20945 func_fallback_echo ()
Chris@10 20946 {
Chris@10 20947 eval 'cat <<_LTECHO_EOF
Chris@10 20948 \$1
Chris@10 20949 _LTECHO_EOF'
Chris@10 20950 }
Chris@10 20951
Chris@10 20952 # Quote evaled strings.
Chris@10 20953 for var in AS \
Chris@10 20954 DLLTOOL \
Chris@10 20955 OBJDUMP \
Chris@10 20956 SHELL \
Chris@10 20957 ECHO \
Chris@10 20958 PATH_SEPARATOR \
Chris@10 20959 SED \
Chris@10 20960 GREP \
Chris@10 20961 EGREP \
Chris@10 20962 FGREP \
Chris@10 20963 LD \
Chris@10 20964 NM \
Chris@10 20965 LN_S \
Chris@10 20966 lt_SP2NL \
Chris@10 20967 lt_NL2SP \
Chris@10 20968 reload_flag \
Chris@10 20969 deplibs_check_method \
Chris@10 20970 file_magic_cmd \
Chris@10 20971 file_magic_glob \
Chris@10 20972 want_nocaseglob \
Chris@10 20973 sharedlib_from_linklib_cmd \
Chris@10 20974 AR \
Chris@10 20975 AR_FLAGS \
Chris@10 20976 archiver_list_spec \
Chris@10 20977 STRIP \
Chris@10 20978 RANLIB \
Chris@10 20979 CC \
Chris@10 20980 CFLAGS \
Chris@10 20981 compiler \
Chris@10 20982 lt_cv_sys_global_symbol_pipe \
Chris@10 20983 lt_cv_sys_global_symbol_to_cdecl \
Chris@10 20984 lt_cv_sys_global_symbol_to_c_name_address \
Chris@10 20985 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Chris@10 20986 nm_file_list_spec \
Chris@10 20987 lt_prog_compiler_no_builtin_flag \
Chris@10 20988 lt_prog_compiler_pic \
Chris@10 20989 lt_prog_compiler_wl \
Chris@10 20990 lt_prog_compiler_static \
Chris@10 20991 lt_cv_prog_compiler_c_o \
Chris@10 20992 need_locks \
Chris@10 20993 MANIFEST_TOOL \
Chris@10 20994 DSYMUTIL \
Chris@10 20995 NMEDIT \
Chris@10 20996 LIPO \
Chris@10 20997 OTOOL \
Chris@10 20998 OTOOL64 \
Chris@10 20999 shrext_cmds \
Chris@10 21000 export_dynamic_flag_spec \
Chris@10 21001 whole_archive_flag_spec \
Chris@10 21002 compiler_needs_object \
Chris@10 21003 with_gnu_ld \
Chris@10 21004 allow_undefined_flag \
Chris@10 21005 no_undefined_flag \
Chris@10 21006 hardcode_libdir_flag_spec \
Chris@10 21007 hardcode_libdir_separator \
Chris@10 21008 exclude_expsyms \
Chris@10 21009 include_expsyms \
Chris@10 21010 file_list_spec \
Chris@10 21011 variables_saved_for_relink \
Chris@10 21012 libname_spec \
Chris@10 21013 library_names_spec \
Chris@10 21014 soname_spec \
Chris@10 21015 install_override_mode \
Chris@10 21016 finish_eval \
Chris@10 21017 old_striplib \
Chris@10 21018 striplib \
Chris@10 21019 LD_F77 \
Chris@10 21020 reload_flag_F77 \
Chris@10 21021 compiler_F77 \
Chris@10 21022 lt_prog_compiler_no_builtin_flag_F77 \
Chris@10 21023 lt_prog_compiler_pic_F77 \
Chris@10 21024 lt_prog_compiler_wl_F77 \
Chris@10 21025 lt_prog_compiler_static_F77 \
Chris@10 21026 lt_cv_prog_compiler_c_o_F77 \
Chris@10 21027 export_dynamic_flag_spec_F77 \
Chris@10 21028 whole_archive_flag_spec_F77 \
Chris@10 21029 compiler_needs_object_F77 \
Chris@10 21030 with_gnu_ld_F77 \
Chris@10 21031 allow_undefined_flag_F77 \
Chris@10 21032 no_undefined_flag_F77 \
Chris@10 21033 hardcode_libdir_flag_spec_F77 \
Chris@10 21034 hardcode_libdir_separator_F77 \
Chris@10 21035 exclude_expsyms_F77 \
Chris@10 21036 include_expsyms_F77 \
Chris@10 21037 file_list_spec_F77; do
Chris@10 21038 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Chris@10 21039 *[\\\\\\\`\\"\\\$]*)
Chris@10 21040 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
Chris@10 21041 ;;
Chris@10 21042 *)
Chris@10 21043 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
Chris@10 21044 ;;
Chris@10 21045 esac
Chris@10 21046 done
Chris@10 21047
Chris@10 21048 # Double-quote double-evaled strings.
Chris@10 21049 for var in reload_cmds \
Chris@10 21050 old_postinstall_cmds \
Chris@10 21051 old_postuninstall_cmds \
Chris@10 21052 old_archive_cmds \
Chris@10 21053 extract_expsyms_cmds \
Chris@10 21054 old_archive_from_new_cmds \
Chris@10 21055 old_archive_from_expsyms_cmds \
Chris@10 21056 archive_cmds \
Chris@10 21057 archive_expsym_cmds \
Chris@10 21058 module_cmds \
Chris@10 21059 module_expsym_cmds \
Chris@10 21060 export_symbols_cmds \
Chris@10 21061 prelink_cmds \
Chris@10 21062 postlink_cmds \
Chris@10 21063 postinstall_cmds \
Chris@10 21064 postuninstall_cmds \
Chris@10 21065 finish_cmds \
Chris@10 21066 sys_lib_search_path_spec \
Chris@10 21067 sys_lib_dlsearch_path_spec \
Chris@10 21068 reload_cmds_F77 \
Chris@10 21069 old_archive_cmds_F77 \
Chris@10 21070 old_archive_from_new_cmds_F77 \
Chris@10 21071 old_archive_from_expsyms_cmds_F77 \
Chris@10 21072 archive_cmds_F77 \
Chris@10 21073 archive_expsym_cmds_F77 \
Chris@10 21074 module_cmds_F77 \
Chris@10 21075 module_expsym_cmds_F77 \
Chris@10 21076 export_symbols_cmds_F77 \
Chris@10 21077 prelink_cmds_F77 \
Chris@10 21078 postlink_cmds_F77; do
Chris@10 21079 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Chris@10 21080 *[\\\\\\\`\\"\\\$]*)
Chris@10 21081 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
Chris@10 21082 ;;
Chris@10 21083 *)
Chris@10 21084 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
Chris@10 21085 ;;
Chris@10 21086 esac
Chris@10 21087 done
Chris@10 21088
Chris@10 21089 ac_aux_dir='$ac_aux_dir'
Chris@10 21090 xsi_shell='$xsi_shell'
Chris@10 21091 lt_shell_append='$lt_shell_append'
Chris@10 21092
Chris@10 21093 # See if we are running on zsh, and set the options which allow our
Chris@10 21094 # commands through without removal of \ escapes INIT.
Chris@10 21095 if test -n "\${ZSH_VERSION+set}" ; then
Chris@10 21096 setopt NO_GLOB_SUBST
Chris@10 21097 fi
Chris@10 21098
Chris@10 21099
Chris@10 21100 PACKAGE='$PACKAGE'
Chris@10 21101 VERSION='$VERSION'
Chris@10 21102 TIMESTAMP='$TIMESTAMP'
Chris@10 21103 RM='$RM'
Chris@10 21104 ofile='$ofile'
Chris@10 21105
Chris@10 21106
Chris@10 21107
Chris@10 21108
Chris@10 21109
Chris@10 21110
Chris@10 21111 _ACEOF
Chris@10 21112
Chris@10 21113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@10 21114
Chris@10 21115 # Handling of arguments.
Chris@10 21116 for ac_config_target in $ac_config_targets
Chris@10 21117 do
Chris@10 21118 case $ac_config_target in
Chris@10 21119 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
Chris@10 21120 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Chris@10 21121 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Chris@10 21122 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Chris@10 21123 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
Chris@10 21124 "genfft/Makefile") CONFIG_FILES="$CONFIG_FILES genfft/Makefile" ;;
Chris@10 21125 "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
Chris@10 21126 "simd-support/Makefile") CONFIG_FILES="$CONFIG_FILES simd-support/Makefile" ;;
Chris@10 21127 "dft/Makefile") CONFIG_FILES="$CONFIG_FILES dft/Makefile" ;;
Chris@10 21128 "dft/scalar/Makefile") CONFIG_FILES="$CONFIG_FILES dft/scalar/Makefile" ;;
Chris@10 21129 "dft/scalar/codelets/Makefile") CONFIG_FILES="$CONFIG_FILES dft/scalar/codelets/Makefile" ;;
Chris@10 21130 "dft/simd/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/Makefile" ;;
Chris@10 21131 "dft/simd/common/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/common/Makefile" ;;
Chris@10 21132 "dft/simd/sse2/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/sse2/Makefile" ;;
Chris@10 21133 "dft/simd/avx/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx/Makefile" ;;
Chris@10 21134 "dft/simd/altivec/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/altivec/Makefile" ;;
Chris@10 21135 "dft/simd/neon/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/neon/Makefile" ;;
Chris@10 21136 "rdft/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/Makefile" ;;
Chris@10 21137 "rdft/scalar/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/Makefile" ;;
Chris@10 21138 "rdft/scalar/r2cf/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/r2cf/Makefile" ;;
Chris@10 21139 "rdft/scalar/r2cb/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/r2cb/Makefile" ;;
Chris@10 21140 "rdft/scalar/r2r/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/r2r/Makefile" ;;
Chris@10 21141 "rdft/simd/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/Makefile" ;;
Chris@10 21142 "rdft/simd/common/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/common/Makefile" ;;
Chris@10 21143 "rdft/simd/sse2/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/sse2/Makefile" ;;
Chris@10 21144 "rdft/simd/avx/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx/Makefile" ;;
Chris@10 21145 "rdft/simd/altivec/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/altivec/Makefile" ;;
Chris@10 21146 "rdft/simd/neon/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/neon/Makefile" ;;
Chris@10 21147 "reodft/Makefile") CONFIG_FILES="$CONFIG_FILES reodft/Makefile" ;;
Chris@10 21148 "threads/Makefile") CONFIG_FILES="$CONFIG_FILES threads/Makefile" ;;
Chris@10 21149 "api/Makefile") CONFIG_FILES="$CONFIG_FILES api/Makefile" ;;
Chris@10 21150 "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;;
Chris@10 21151 "libbench2/Makefile") CONFIG_FILES="$CONFIG_FILES libbench2/Makefile" ;;
Chris@10 21152 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
Chris@10 21153 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
Chris@10 21154 "doc/FAQ/Makefile") CONFIG_FILES="$CONFIG_FILES doc/FAQ/Makefile" ;;
Chris@10 21155 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
Chris@10 21156 "tools/fftw_wisdom.1") CONFIG_FILES="$CONFIG_FILES tools/fftw_wisdom.1" ;;
Chris@10 21157 "tools/fftw-wisdom-to-conf") CONFIG_FILES="$CONFIG_FILES tools/fftw-wisdom-to-conf" ;;
Chris@10 21158 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
Chris@10 21159 "fftw.pc") CONFIG_FILES="$CONFIG_FILES fftw.pc" ;;
Chris@10 21160
Chris@10 21161 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Chris@10 21162 esac
Chris@10 21163 done
Chris@10 21164
Chris@10 21165
Chris@10 21166 # If the user did not use the arguments to specify the items to instantiate,
Chris@10 21167 # then the envvar interface is used. Set only those that are not.
Chris@10 21168 # We use the long form for the default assignment because of an extremely
Chris@10 21169 # bizarre bug on SunOS 4.1.3.
Chris@10 21170 if $ac_need_defaults; then
Chris@10 21171 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Chris@10 21172 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Chris@10 21173 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
Chris@10 21174 fi
Chris@10 21175
Chris@10 21176 # Have a temporary directory for convenience. Make it in the build tree
Chris@10 21177 # simply because there is no reason against having it here, and in addition,
Chris@10 21178 # creating and moving files from /tmp can sometimes cause problems.
Chris@10 21179 # Hook for its removal unless debugging.
Chris@10 21180 # Note that there is a small window in which the directory will not be cleaned:
Chris@10 21181 # after its creation but before its name has been assigned to `$tmp'.
Chris@10 21182 $debug ||
Chris@10 21183 {
Chris@10 21184 tmp= ac_tmp=
Chris@10 21185 trap 'exit_status=$?
Chris@10 21186 : "${ac_tmp:=$tmp}"
Chris@10 21187 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Chris@10 21188 ' 0
Chris@10 21189 trap 'as_fn_exit 1' 1 2 13 15
Chris@10 21190 }
Chris@10 21191 # Create a (secure) tmp directory for tmp files.
Chris@10 21192
Chris@10 21193 {
Chris@10 21194 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Chris@10 21195 test -d "$tmp"
Chris@10 21196 } ||
Chris@10 21197 {
Chris@10 21198 tmp=./conf$$-$RANDOM
Chris@10 21199 (umask 077 && mkdir "$tmp")
Chris@10 21200 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Chris@10 21201 ac_tmp=$tmp
Chris@10 21202
Chris@10 21203 # Set up the scripts for CONFIG_FILES section.
Chris@10 21204 # No need to generate them if there are no CONFIG_FILES.
Chris@10 21205 # This happens for instance with `./config.status config.h'.
Chris@10 21206 if test -n "$CONFIG_FILES"; then
Chris@10 21207
Chris@10 21208
Chris@10 21209 ac_cr=`echo X | tr X '\015'`
Chris@10 21210 # On cygwin, bash can eat \r inside `` if the user requested igncr.
Chris@10 21211 # But we know of no other shell where ac_cr would be empty at this
Chris@10 21212 # point, so we can use a bashism as a fallback.
Chris@10 21213 if test "x$ac_cr" = x; then
Chris@10 21214 eval ac_cr=\$\'\\r\'
Chris@10 21215 fi
Chris@10 21216 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
Chris@10 21217 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Chris@10 21218 ac_cs_awk_cr='\\r'
Chris@10 21219 else
Chris@10 21220 ac_cs_awk_cr=$ac_cr
Chris@10 21221 fi
Chris@10 21222
Chris@10 21223 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Chris@10 21224 _ACEOF
Chris@10 21225
Chris@10 21226
Chris@10 21227 {
Chris@10 21228 echo "cat >conf$$subs.awk <<_ACEOF" &&
Chris@10 21229 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
Chris@10 21230 echo "_ACEOF"
Chris@10 21231 } >conf$$subs.sh ||
Chris@10 21232 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@10 21233 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Chris@10 21234 ac_delim='%!_!# '
Chris@10 21235 for ac_last_try in false false false false false :; do
Chris@10 21236 . ./conf$$subs.sh ||
Chris@10 21237 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@10 21238
Chris@10 21239 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
Chris@10 21240 if test $ac_delim_n = $ac_delim_num; then
Chris@10 21241 break
Chris@10 21242 elif $ac_last_try; then
Chris@10 21243 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@10 21244 else
Chris@10 21245 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Chris@10 21246 fi
Chris@10 21247 done
Chris@10 21248 rm -f conf$$subs.sh
Chris@10 21249
Chris@10 21250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@10 21251 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Chris@10 21252 _ACEOF
Chris@10 21253 sed -n '
Chris@10 21254 h
Chris@10 21255 s/^/S["/; s/!.*/"]=/
Chris@10 21256 p
Chris@10 21257 g
Chris@10 21258 s/^[^!]*!//
Chris@10 21259 :repl
Chris@10 21260 t repl
Chris@10 21261 s/'"$ac_delim"'$//
Chris@10 21262 t delim
Chris@10 21263 :nl
Chris@10 21264 h
Chris@10 21265 s/\(.\{148\}\)..*/\1/
Chris@10 21266 t more1
Chris@10 21267 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
Chris@10 21268 p
Chris@10 21269 n
Chris@10 21270 b repl
Chris@10 21271 :more1
Chris@10 21272 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
Chris@10 21273 p
Chris@10 21274 g
Chris@10 21275 s/.\{148\}//
Chris@10 21276 t nl
Chris@10 21277 :delim
Chris@10 21278 h
Chris@10 21279 s/\(.\{148\}\)..*/\1/
Chris@10 21280 t more2
Chris@10 21281 s/["\\]/\\&/g; s/^/"/; s/$/"/
Chris@10 21282 p
Chris@10 21283 b
Chris@10 21284 :more2
Chris@10 21285 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
Chris@10 21286 p
Chris@10 21287 g
Chris@10 21288 s/.\{148\}//
Chris@10 21289 t delim
Chris@10 21290 ' <conf$$subs.awk | sed '
Chris@10 21291 /^[^""]/{
Chris@10 21292 N
Chris@10 21293 s/\n//
Chris@10 21294 }
Chris@10 21295 ' >>$CONFIG_STATUS || ac_write_fail=1
Chris@10 21296 rm -f conf$$subs.awk
Chris@10 21297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@10 21298 _ACAWK
Chris@10 21299 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Chris@10 21300 for (key in S) S_is_set[key] = 1
Chris@10 21301 FS = ""
Chris@10 21302
Chris@10 21303 }
Chris@10 21304 {
Chris@10 21305 line = $ 0
Chris@10 21306 nfields = split(line, field, "@")
Chris@10 21307 substed = 0
Chris@10 21308 len = length(field[1])
Chris@10 21309 for (i = 2; i < nfields; i++) {
Chris@10 21310 key = field[i]
Chris@10 21311 keylen = length(key)
Chris@10 21312 if (S_is_set[key]) {
Chris@10 21313 value = S[key]
Chris@10 21314 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
Chris@10 21315 len += length(value) + length(field[++i])
Chris@10 21316 substed = 1
Chris@10 21317 } else
Chris@10 21318 len += 1 + keylen
Chris@10 21319 }
Chris@10 21320
Chris@10 21321 print line
Chris@10 21322 }
Chris@10 21323
Chris@10 21324 _ACAWK
Chris@10 21325 _ACEOF
Chris@10 21326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@10 21327 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
Chris@10 21328 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
Chris@10 21329 else
Chris@10 21330 cat
Chris@10 21331 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
Chris@10 21332 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Chris@10 21333 _ACEOF
Chris@10 21334
Chris@10 21335 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
Chris@10 21336 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Chris@10 21337 # trailing colons and then remove the whole line if VPATH becomes empty
Chris@10 21338 # (actually we leave an empty line to preserve line numbers).
Chris@10 21339 if test "x$srcdir" = x.; then
Chris@10 21340 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
Chris@10 21341 h
Chris@10 21342 s///
Chris@10 21343 s/^/:/
Chris@10 21344 s/[ ]*$/:/
Chris@10 21345 s/:\$(srcdir):/:/g
Chris@10 21346 s/:\${srcdir}:/:/g
Chris@10 21347 s/:@srcdir@:/:/g
Chris@10 21348 s/^:*//
Chris@10 21349 s/:*$//
Chris@10 21350 x
Chris@10 21351 s/\(=[ ]*\).*/\1/
Chris@10 21352 G
Chris@10 21353 s/\n//
Chris@10 21354 s/^[^=]*=[ ]*$//
Chris@10 21355 }'
Chris@10 21356 fi
Chris@10 21357
Chris@10 21358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@10 21359 fi # test -n "$CONFIG_FILES"
Chris@10 21360
Chris@10 21361 # Set up the scripts for CONFIG_HEADERS section.
Chris@10 21362 # No need to generate them if there are no CONFIG_HEADERS.
Chris@10 21363 # This happens for instance with `./config.status Makefile'.
Chris@10 21364 if test -n "$CONFIG_HEADERS"; then
Chris@10 21365 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Chris@10 21366 BEGIN {
Chris@10 21367 _ACEOF
Chris@10 21368
Chris@10 21369 # Transform confdefs.h into an awk script `defines.awk', embedded as
Chris@10 21370 # here-document in config.status, that substitutes the proper values into
Chris@10 21371 # config.h.in to produce config.h.
Chris@10 21372
Chris@10 21373 # Create a delimiter string that does not exist in confdefs.h, to ease
Chris@10 21374 # handling of long lines.
Chris@10 21375 ac_delim='%!_!# '
Chris@10 21376 for ac_last_try in false false :; do
Chris@10 21377 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
Chris@10 21378 if test -z "$ac_tt"; then
Chris@10 21379 break
Chris@10 21380 elif $ac_last_try; then
Chris@10 21381 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Chris@10 21382 else
Chris@10 21383 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Chris@10 21384 fi
Chris@10 21385 done
Chris@10 21386
Chris@10 21387 # For the awk script, D is an array of macro values keyed by name,
Chris@10 21388 # likewise P contains macro parameters if any. Preserve backslash
Chris@10 21389 # newline sequences.
Chris@10 21390
Chris@10 21391 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
Chris@10 21392 sed -n '
Chris@10 21393 s/.\{148\}/&'"$ac_delim"'/g
Chris@10 21394 t rset
Chris@10 21395 :rset
Chris@10 21396 s/^[ ]*#[ ]*define[ ][ ]*/ /
Chris@10 21397 t def
Chris@10 21398 d
Chris@10 21399 :def
Chris@10 21400 s/\\$//
Chris@10 21401 t bsnl
Chris@10 21402 s/["\\]/\\&/g
Chris@10 21403 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
Chris@10 21404 D["\1"]=" \3"/p
Chris@10 21405 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
Chris@10 21406 d
Chris@10 21407 :bsnl
Chris@10 21408 s/["\\]/\\&/g
Chris@10 21409 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
Chris@10 21410 D["\1"]=" \3\\\\\\n"\\/p
Chris@10 21411 t cont
Chris@10 21412 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
Chris@10 21413 t cont
Chris@10 21414 d
Chris@10 21415 :cont
Chris@10 21416 n
Chris@10 21417 s/.\{148\}/&'"$ac_delim"'/g
Chris@10 21418 t clear
Chris@10 21419 :clear
Chris@10 21420 s/\\$//
Chris@10 21421 t bsnlc
Chris@10 21422 s/["\\]/\\&/g; s/^/"/; s/$/"/p
Chris@10 21423 d
Chris@10 21424 :bsnlc
Chris@10 21425 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
Chris@10 21426 b cont
Chris@10 21427 ' <confdefs.h | sed '
Chris@10 21428 s/'"$ac_delim"'/"\\\
Chris@10 21429 "/g' >>$CONFIG_STATUS || ac_write_fail=1
Chris@10 21430
Chris@10 21431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@10 21432 for (key in D) D_is_set[key] = 1
Chris@10 21433 FS = ""
Chris@10 21434 }
Chris@10 21435 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
Chris@10 21436 line = \$ 0
Chris@10 21437 split(line, arg, " ")
Chris@10 21438 if (arg[1] == "#") {
Chris@10 21439 defundef = arg[2]
Chris@10 21440 mac1 = arg[3]
Chris@10 21441 } else {
Chris@10 21442 defundef = substr(arg[1], 2)
Chris@10 21443 mac1 = arg[2]
Chris@10 21444 }
Chris@10 21445 split(mac1, mac2, "(") #)
Chris@10 21446 macro = mac2[1]
Chris@10 21447 prefix = substr(line, 1, index(line, defundef) - 1)
Chris@10 21448 if (D_is_set[macro]) {
Chris@10 21449 # Preserve the white space surrounding the "#".
Chris@10 21450 print prefix "define", macro P[macro] D[macro]
Chris@10 21451 next
Chris@10 21452 } else {
Chris@10 21453 # Replace #undef with comments. This is necessary, for example,
Chris@10 21454 # in the case of _POSIX_SOURCE, which is predefined and required
Chris@10 21455 # on some systems where configure will not decide to define it.
Chris@10 21456 if (defundef == "undef") {
Chris@10 21457 print "/*", prefix defundef, macro, "*/"
Chris@10 21458 next
Chris@10 21459 }
Chris@10 21460 }
Chris@10 21461 }
Chris@10 21462 { print }
Chris@10 21463 _ACAWK
Chris@10 21464 _ACEOF
Chris@10 21465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@10 21466 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Chris@10 21467 fi # test -n "$CONFIG_HEADERS"
Chris@10 21468
Chris@10 21469
Chris@10 21470 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Chris@10 21471 shift
Chris@10 21472 for ac_tag
Chris@10 21473 do
Chris@10 21474 case $ac_tag in
Chris@10 21475 :[FHLC]) ac_mode=$ac_tag; continue;;
Chris@10 21476 esac
Chris@10 21477 case $ac_mode$ac_tag in
Chris@10 21478 :[FHL]*:*);;
Chris@10 21479 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Chris@10 21480 :[FH]-) ac_tag=-:-;;
Chris@10 21481 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
Chris@10 21482 esac
Chris@10 21483 ac_save_IFS=$IFS
Chris@10 21484 IFS=:
Chris@10 21485 set x $ac_tag
Chris@10 21486 IFS=$ac_save_IFS
Chris@10 21487 shift
Chris@10 21488 ac_file=$1
Chris@10 21489 shift
Chris@10 21490
Chris@10 21491 case $ac_mode in
Chris@10 21492 :L) ac_source=$1;;
Chris@10 21493 :[FH])
Chris@10 21494 ac_file_inputs=
Chris@10 21495 for ac_f
Chris@10 21496 do
Chris@10 21497 case $ac_f in
Chris@10 21498 -) ac_f="$ac_tmp/stdin";;
Chris@10 21499 *) # Look for the file first in the build tree, then in the source tree
Chris@10 21500 # (if the path is not absolute). The absolute path cannot be DOS-style,
Chris@10 21501 # because $ac_f cannot contain `:'.
Chris@10 21502 test -f "$ac_f" ||
Chris@10 21503 case $ac_f in
Chris@10 21504 [\\/$]*) false;;
Chris@10 21505 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
Chris@10 21506 esac ||
Chris@10 21507 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Chris@10 21508 esac
Chris@10 21509 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Chris@10 21510 as_fn_append ac_file_inputs " '$ac_f'"
Chris@10 21511 done
Chris@10 21512
Chris@10 21513 # Let's still pretend it is `configure' which instantiates (i.e., don't
Chris@10 21514 # use $as_me), people would be surprised to read:
Chris@10 21515 # /* config.h. Generated by config.status. */
Chris@10 21516 configure_input='Generated from '`
Chris@10 21517 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
Chris@10 21518 `' by configure.'
Chris@10 21519 if test x"$ac_file" != x-; then
Chris@10 21520 configure_input="$ac_file. $configure_input"
Chris@10 21521 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Chris@10 21522 $as_echo "$as_me: creating $ac_file" >&6;}
Chris@10 21523 fi
Chris@10 21524 # Neutralize special characters interpreted by sed in replacement strings.
Chris@10 21525 case $configure_input in #(
Chris@10 21526 *\&* | *\|* | *\\* )
Chris@10 21527 ac_sed_conf_input=`$as_echo "$configure_input" |
Chris@10 21528 sed 's/[\\\\&|]/\\\\&/g'`;; #(
Chris@10 21529 *) ac_sed_conf_input=$configure_input;;
Chris@10 21530 esac
Chris@10 21531
Chris@10 21532 case $ac_tag in
Chris@10 21533 *:-:* | *:-) cat >"$ac_tmp/stdin" \
Chris@10 21534 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Chris@10 21535 esac
Chris@10 21536 ;;
Chris@10 21537 esac
Chris@10 21538
Chris@10 21539 ac_dir=`$as_dirname -- "$ac_file" ||
Chris@10 21540 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@10 21541 X"$ac_file" : 'X\(//\)[^/]' \| \
Chris@10 21542 X"$ac_file" : 'X\(//\)$' \| \
Chris@10 21543 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Chris@10 21544 $as_echo X"$ac_file" |
Chris@10 21545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@10 21546 s//\1/
Chris@10 21547 q
Chris@10 21548 }
Chris@10 21549 /^X\(\/\/\)[^/].*/{
Chris@10 21550 s//\1/
Chris@10 21551 q
Chris@10 21552 }
Chris@10 21553 /^X\(\/\/\)$/{
Chris@10 21554 s//\1/
Chris@10 21555 q
Chris@10 21556 }
Chris@10 21557 /^X\(\/\).*/{
Chris@10 21558 s//\1/
Chris@10 21559 q
Chris@10 21560 }
Chris@10 21561 s/.*/./; q'`
Chris@10 21562 as_dir="$ac_dir"; as_fn_mkdir_p
Chris@10 21563 ac_builddir=.
Chris@10 21564
Chris@10 21565 case "$ac_dir" in
Chris@10 21566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@10 21567 *)
Chris@10 21568 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Chris@10 21569 # A ".." for each directory in $ac_dir_suffix.
Chris@10 21570 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Chris@10 21571 case $ac_top_builddir_sub in
Chris@10 21572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@10 21573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
Chris@10 21574 esac ;;
Chris@10 21575 esac
Chris@10 21576 ac_abs_top_builddir=$ac_pwd
Chris@10 21577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
Chris@10 21578 # for backward compatibility:
Chris@10 21579 ac_top_builddir=$ac_top_build_prefix
Chris@10 21580
Chris@10 21581 case $srcdir in
Chris@10 21582 .) # We are building in place.
Chris@10 21583 ac_srcdir=.
Chris@10 21584 ac_top_srcdir=$ac_top_builddir_sub
Chris@10 21585 ac_abs_top_srcdir=$ac_pwd ;;
Chris@10 21586 [\\/]* | ?:[\\/]* ) # Absolute name.
Chris@10 21587 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@10 21588 ac_top_srcdir=$srcdir
Chris@10 21589 ac_abs_top_srcdir=$srcdir ;;
Chris@10 21590 *) # Relative name.
Chris@10 21591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
Chris@10 21592 ac_top_srcdir=$ac_top_build_prefix$srcdir
Chris@10 21593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Chris@10 21594 esac
Chris@10 21595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Chris@10 21596
Chris@10 21597
Chris@10 21598 case $ac_mode in
Chris@10 21599 :F)
Chris@10 21600 #
Chris@10 21601 # CONFIG_FILE
Chris@10 21602 #
Chris@10 21603
Chris@10 21604 case $INSTALL in
Chris@10 21605 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Chris@10 21606 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Chris@10 21607 esac
Chris@10 21608 ac_MKDIR_P=$MKDIR_P
Chris@10 21609 case $MKDIR_P in
Chris@10 21610 [\\/$]* | ?:[\\/]* ) ;;
Chris@10 21611 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
Chris@10 21612 esac
Chris@10 21613 _ACEOF
Chris@10 21614
Chris@10 21615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@10 21616 # If the template does not know about datarootdir, expand it.
Chris@10 21617 # FIXME: This hack should be removed a few years after 2.60.
Chris@10 21618 ac_datarootdir_hack=; ac_datarootdir_seen=
Chris@10 21619 ac_sed_dataroot='
Chris@10 21620 /datarootdir/ {
Chris@10 21621 p
Chris@10 21622 q
Chris@10 21623 }
Chris@10 21624 /@datadir@/p
Chris@10 21625 /@docdir@/p
Chris@10 21626 /@infodir@/p
Chris@10 21627 /@localedir@/p
Chris@10 21628 /@mandir@/p'
Chris@10 21629 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Chris@10 21630 *datarootdir*) ac_datarootdir_seen=yes;;
Chris@10 21631 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Chris@10 21632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
Chris@10 21633 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Chris@10 21634 _ACEOF
Chris@10 21635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@10 21636 ac_datarootdir_hack='
Chris@10 21637 s&@datadir@&$datadir&g
Chris@10 21638 s&@docdir@&$docdir&g
Chris@10 21639 s&@infodir@&$infodir&g
Chris@10 21640 s&@localedir@&$localedir&g
Chris@10 21641 s&@mandir@&$mandir&g
Chris@10 21642 s&\\\${datarootdir}&$datarootdir&g' ;;
Chris@10 21643 esac
Chris@10 21644 _ACEOF
Chris@10 21645
Chris@10 21646 # Neutralize VPATH when `$srcdir' = `.'.
Chris@10 21647 # Shell code in configure.ac might set extrasub.
Chris@10 21648 # FIXME: do we really want to maintain this feature?
Chris@10 21649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@10 21650 ac_sed_extra="$ac_vpsub
Chris@10 21651 $extrasub
Chris@10 21652 _ACEOF
Chris@10 21653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@10 21654 :t
Chris@10 21655 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Chris@10 21656 s|@configure_input@|$ac_sed_conf_input|;t t
Chris@10 21657 s&@top_builddir@&$ac_top_builddir_sub&;t t
Chris@10 21658 s&@top_build_prefix@&$ac_top_build_prefix&;t t
Chris@10 21659 s&@srcdir@&$ac_srcdir&;t t
Chris@10 21660 s&@abs_srcdir@&$ac_abs_srcdir&;t t
Chris@10 21661 s&@top_srcdir@&$ac_top_srcdir&;t t
Chris@10 21662 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
Chris@10 21663 s&@builddir@&$ac_builddir&;t t
Chris@10 21664 s&@abs_builddir@&$ac_abs_builddir&;t t
Chris@10 21665 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Chris@10 21666 s&@INSTALL@&$ac_INSTALL&;t t
Chris@10 21667 s&@MKDIR_P@&$ac_MKDIR_P&;t t
Chris@10 21668 $ac_datarootdir_hack
Chris@10 21669 "
Chris@10 21670 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
Chris@10 21671 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@10 21672
Chris@10 21673 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Chris@10 21674 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
Chris@10 21675 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
Chris@10 21676 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Chris@10 21677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Chris@10 21678 which seems to be undefined. Please make sure it is defined" >&5
Chris@10 21679 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Chris@10 21680 which seems to be undefined. Please make sure it is defined" >&2;}
Chris@10 21681
Chris@10 21682 rm -f "$ac_tmp/stdin"
Chris@10 21683 case $ac_file in
Chris@10 21684 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
Chris@10 21685 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Chris@10 21686 esac \
Chris@10 21687 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@10 21688 ;;
Chris@10 21689 :H)
Chris@10 21690 #
Chris@10 21691 # CONFIG_HEADER
Chris@10 21692 #
Chris@10 21693 if test x"$ac_file" != x-; then
Chris@10 21694 {
Chris@10 21695 $as_echo "/* $configure_input */" \
Chris@10 21696 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
Chris@10 21697 } >"$ac_tmp/config.h" \
Chris@10 21698 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@10 21699 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Chris@10 21700 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Chris@10 21701 $as_echo "$as_me: $ac_file is unchanged" >&6;}
Chris@10 21702 else
Chris@10 21703 rm -f "$ac_file"
Chris@10 21704 mv "$ac_tmp/config.h" "$ac_file" \
Chris@10 21705 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@10 21706 fi
Chris@10 21707 else
Chris@10 21708 $as_echo "/* $configure_input */" \
Chris@10 21709 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
Chris@10 21710 || as_fn_error $? "could not create -" "$LINENO" 5
Chris@10 21711 fi
Chris@10 21712 # Compute "$ac_file"'s index in $config_headers.
Chris@10 21713 _am_arg="$ac_file"
Chris@10 21714 _am_stamp_count=1
Chris@10 21715 for _am_header in $config_headers :; do
Chris@10 21716 case $_am_header in
Chris@10 21717 $_am_arg | $_am_arg:* )
Chris@10 21718 break ;;
Chris@10 21719 * )
Chris@10 21720 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
Chris@10 21721 esac
Chris@10 21722 done
Chris@10 21723 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
Chris@10 21724 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@10 21725 X"$_am_arg" : 'X\(//\)[^/]' \| \
Chris@10 21726 X"$_am_arg" : 'X\(//\)$' \| \
Chris@10 21727 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
Chris@10 21728 $as_echo X"$_am_arg" |
Chris@10 21729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@10 21730 s//\1/
Chris@10 21731 q
Chris@10 21732 }
Chris@10 21733 /^X\(\/\/\)[^/].*/{
Chris@10 21734 s//\1/
Chris@10 21735 q
Chris@10 21736 }
Chris@10 21737 /^X\(\/\/\)$/{
Chris@10 21738 s//\1/
Chris@10 21739 q
Chris@10 21740 }
Chris@10 21741 /^X\(\/\).*/{
Chris@10 21742 s//\1/
Chris@10 21743 q
Chris@10 21744 }
Chris@10 21745 s/.*/./; q'`/stamp-h$_am_stamp_count
Chris@10 21746 ;;
Chris@10 21747
Chris@10 21748 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Chris@10 21749 $as_echo "$as_me: executing $ac_file commands" >&6;}
Chris@10 21750 ;;
Chris@10 21751 esac
Chris@10 21752
Chris@10 21753
Chris@10 21754 case $ac_file$ac_mode in
Chris@10 21755 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
Chris@10 21756 # Autoconf 2.62 quotes --file arguments for eval, but not when files
Chris@10 21757 # are listed without --file. Let's play safe and only enable the eval
Chris@10 21758 # if we detect the quoting.
Chris@10 21759 case $CONFIG_FILES in
Chris@10 21760 *\'*) eval set x "$CONFIG_FILES" ;;
Chris@10 21761 *) set x $CONFIG_FILES ;;
Chris@10 21762 esac
Chris@10 21763 shift
Chris@10 21764 for mf
Chris@10 21765 do
Chris@10 21766 # Strip MF so we end up with the name of the file.
Chris@10 21767 mf=`echo "$mf" | sed -e 's/:.*$//'`
Chris@10 21768 # Check whether this is an Automake generated Makefile or not.
Chris@10 21769 # We used to match only the files named `Makefile.in', but
Chris@10 21770 # some people rename them; so instead we look at the file content.
Chris@10 21771 # Grep'ing the first line is not enough: some people post-process
Chris@10 21772 # each Makefile.in and add a new line on top of each file to say so.
Chris@10 21773 # Grep'ing the whole file is not good either: AIX grep has a line
Chris@10 21774 # limit of 2048, but all sed's we know have understand at least 4000.
Chris@10 21775 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
Chris@10 21776 dirpart=`$as_dirname -- "$mf" ||
Chris@10 21777 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@10 21778 X"$mf" : 'X\(//\)[^/]' \| \
Chris@10 21779 X"$mf" : 'X\(//\)$' \| \
Chris@10 21780 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Chris@10 21781 $as_echo X"$mf" |
Chris@10 21782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@10 21783 s//\1/
Chris@10 21784 q
Chris@10 21785 }
Chris@10 21786 /^X\(\/\/\)[^/].*/{
Chris@10 21787 s//\1/
Chris@10 21788 q
Chris@10 21789 }
Chris@10 21790 /^X\(\/\/\)$/{
Chris@10 21791 s//\1/
Chris@10 21792 q
Chris@10 21793 }
Chris@10 21794 /^X\(\/\).*/{
Chris@10 21795 s//\1/
Chris@10 21796 q
Chris@10 21797 }
Chris@10 21798 s/.*/./; q'`
Chris@10 21799 else
Chris@10 21800 continue
Chris@10 21801 fi
Chris@10 21802 # Extract the definition of DEPDIR, am__include, and am__quote
Chris@10 21803 # from the Makefile without running `make'.
Chris@10 21804 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
Chris@10 21805 test -z "$DEPDIR" && continue
Chris@10 21806 am__include=`sed -n 's/^am__include = //p' < "$mf"`
Chris@10 21807 test -z "am__include" && continue
Chris@10 21808 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Chris@10 21809 # When using ansi2knr, U may be empty or an underscore; expand it
Chris@10 21810 U=`sed -n 's/^U = //p' < "$mf"`
Chris@10 21811 # Find all dependency output files, they are included files with
Chris@10 21812 # $(DEPDIR) in their names. We invoke sed twice because it is the
Chris@10 21813 # simplest approach to changing $(DEPDIR) to its actual value in the
Chris@10 21814 # expansion.
Chris@10 21815 for file in `sed -n "
Chris@10 21816 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Chris@10 21817 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
Chris@10 21818 # Make sure the directory exists.
Chris@10 21819 test -f "$dirpart/$file" && continue
Chris@10 21820 fdir=`$as_dirname -- "$file" ||
Chris@10 21821 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@10 21822 X"$file" : 'X\(//\)[^/]' \| \
Chris@10 21823 X"$file" : 'X\(//\)$' \| \
Chris@10 21824 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Chris@10 21825 $as_echo X"$file" |
Chris@10 21826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@10 21827 s//\1/
Chris@10 21828 q
Chris@10 21829 }
Chris@10 21830 /^X\(\/\/\)[^/].*/{
Chris@10 21831 s//\1/
Chris@10 21832 q
Chris@10 21833 }
Chris@10 21834 /^X\(\/\/\)$/{
Chris@10 21835 s//\1/
Chris@10 21836 q
Chris@10 21837 }
Chris@10 21838 /^X\(\/\).*/{
Chris@10 21839 s//\1/
Chris@10 21840 q
Chris@10 21841 }
Chris@10 21842 s/.*/./; q'`
Chris@10 21843 as_dir=$dirpart/$fdir; as_fn_mkdir_p
Chris@10 21844 # echo "creating $dirpart/$file"
Chris@10 21845 echo '# dummy' > "$dirpart/$file"
Chris@10 21846 done
Chris@10 21847 done
Chris@10 21848 }
Chris@10 21849 ;;
Chris@10 21850 "libtool":C)
Chris@10 21851
Chris@10 21852 # See if we are running on zsh, and set the options which allow our
Chris@10 21853 # commands through without removal of \ escapes.
Chris@10 21854 if test -n "${ZSH_VERSION+set}" ; then
Chris@10 21855 setopt NO_GLOB_SUBST
Chris@10 21856 fi
Chris@10 21857
Chris@10 21858 cfgfile="${ofile}T"
Chris@10 21859 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
Chris@10 21860 $RM "$cfgfile"
Chris@10 21861
Chris@10 21862 cat <<_LT_EOF >> "$cfgfile"
Chris@10 21863 #! $SHELL
Chris@10 21864
Chris@10 21865 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
Chris@10 21866 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
Chris@10 21867 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
Chris@10 21868 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
Chris@10 21869 #
Chris@10 21870 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
Chris@10 21871 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
Chris@10 21872 # Foundation, Inc.
Chris@10 21873 # Written by Gordon Matzigkeit, 1996
Chris@10 21874 #
Chris@10 21875 # This file is part of GNU Libtool.
Chris@10 21876 #
Chris@10 21877 # GNU Libtool is free software; you can redistribute it and/or
Chris@10 21878 # modify it under the terms of the GNU General Public License as
Chris@10 21879 # published by the Free Software Foundation; either version 2 of
Chris@10 21880 # the License, or (at your option) any later version.
Chris@10 21881 #
Chris@10 21882 # As a special exception to the GNU General Public License,
Chris@10 21883 # if you distribute this file as part of a program or library that
Chris@10 21884 # is built using GNU Libtool, you may include this file under the
Chris@10 21885 # same distribution terms that you use for the rest of that program.
Chris@10 21886 #
Chris@10 21887 # GNU Libtool is distributed in the hope that it will be useful,
Chris@10 21888 # but WITHOUT ANY WARRANTY; without even the implied warranty of
Chris@10 21889 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Chris@10 21890 # GNU General Public License for more details.
Chris@10 21891 #
Chris@10 21892 # You should have received a copy of the GNU General Public License
Chris@10 21893 # along with GNU Libtool; see the file COPYING. If not, a copy
Chris@10 21894 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
Chris@10 21895 # obtained by writing to the Free Software Foundation, Inc.,
Chris@10 21896 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Chris@10 21897
Chris@10 21898
Chris@10 21899 # The names of the tagged configurations supported by this script.
Chris@10 21900 available_tags="F77 "
Chris@10 21901
Chris@10 21902 # ### BEGIN LIBTOOL CONFIG
Chris@10 21903
Chris@10 21904 # Whether or not to build shared libraries.
Chris@10 21905 build_libtool_libs=$enable_shared
Chris@10 21906
Chris@10 21907 # Assembler program.
Chris@10 21908 AS=$lt_AS
Chris@10 21909
Chris@10 21910 # DLL creation program.
Chris@10 21911 DLLTOOL=$lt_DLLTOOL
Chris@10 21912
Chris@10 21913 # Object dumper program.
Chris@10 21914 OBJDUMP=$lt_OBJDUMP
Chris@10 21915
Chris@10 21916 # Which release of libtool.m4 was used?
Chris@10 21917 macro_version=$macro_version
Chris@10 21918 macro_revision=$macro_revision
Chris@10 21919
Chris@10 21920 # Whether or not to build static libraries.
Chris@10 21921 build_old_libs=$enable_static
Chris@10 21922
Chris@10 21923 # What type of objects to build.
Chris@10 21924 pic_mode=$pic_mode
Chris@10 21925
Chris@10 21926 # Whether or not to optimize for fast installation.
Chris@10 21927 fast_install=$enable_fast_install
Chris@10 21928
Chris@10 21929 # Shell to use when invoking shell scripts.
Chris@10 21930 SHELL=$lt_SHELL
Chris@10 21931
Chris@10 21932 # An echo program that protects backslashes.
Chris@10 21933 ECHO=$lt_ECHO
Chris@10 21934
Chris@10 21935 # The PATH separator for the build system.
Chris@10 21936 PATH_SEPARATOR=$lt_PATH_SEPARATOR
Chris@10 21937
Chris@10 21938 # The host system.
Chris@10 21939 host_alias=$host_alias
Chris@10 21940 host=$host
Chris@10 21941 host_os=$host_os
Chris@10 21942
Chris@10 21943 # The build system.
Chris@10 21944 build_alias=$build_alias
Chris@10 21945 build=$build
Chris@10 21946 build_os=$build_os
Chris@10 21947
Chris@10 21948 # A sed program that does not truncate output.
Chris@10 21949 SED=$lt_SED
Chris@10 21950
Chris@10 21951 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
Chris@10 21952 Xsed="\$SED -e 1s/^X//"
Chris@10 21953
Chris@10 21954 # A grep program that handles long lines.
Chris@10 21955 GREP=$lt_GREP
Chris@10 21956
Chris@10 21957 # An ERE matcher.
Chris@10 21958 EGREP=$lt_EGREP
Chris@10 21959
Chris@10 21960 # A literal string matcher.
Chris@10 21961 FGREP=$lt_FGREP
Chris@10 21962
Chris@10 21963 # A BSD- or MS-compatible name lister.
Chris@10 21964 NM=$lt_NM
Chris@10 21965
Chris@10 21966 # Whether we need soft or hard links.
Chris@10 21967 LN_S=$lt_LN_S
Chris@10 21968
Chris@10 21969 # What is the maximum length of a command?
Chris@10 21970 max_cmd_len=$max_cmd_len
Chris@10 21971
Chris@10 21972 # Object file suffix (normally "o").
Chris@10 21973 objext=$ac_objext
Chris@10 21974
Chris@10 21975 # Executable file suffix (normally "").
Chris@10 21976 exeext=$exeext
Chris@10 21977
Chris@10 21978 # whether the shell understands "unset".
Chris@10 21979 lt_unset=$lt_unset
Chris@10 21980
Chris@10 21981 # turn spaces into newlines.
Chris@10 21982 SP2NL=$lt_lt_SP2NL
Chris@10 21983
Chris@10 21984 # turn newlines into spaces.
Chris@10 21985 NL2SP=$lt_lt_NL2SP
Chris@10 21986
Chris@10 21987 # convert \$build file names to \$host format.
Chris@10 21988 to_host_file_cmd=$lt_cv_to_host_file_cmd
Chris@10 21989
Chris@10 21990 # convert \$build files to toolchain format.
Chris@10 21991 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Chris@10 21992
Chris@10 21993 # Method to check whether dependent libraries are shared objects.
Chris@10 21994 deplibs_check_method=$lt_deplibs_check_method
Chris@10 21995
Chris@10 21996 # Command to use when deplibs_check_method = "file_magic".
Chris@10 21997 file_magic_cmd=$lt_file_magic_cmd
Chris@10 21998
Chris@10 21999 # How to find potential files when deplibs_check_method = "file_magic".
Chris@10 22000 file_magic_glob=$lt_file_magic_glob
Chris@10 22001
Chris@10 22002 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
Chris@10 22003 want_nocaseglob=$lt_want_nocaseglob
Chris@10 22004
Chris@10 22005 # Command to associate shared and link libraries.
Chris@10 22006 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
Chris@10 22007
Chris@10 22008 # The archiver.
Chris@10 22009 AR=$lt_AR
Chris@10 22010
Chris@10 22011 # Flags to create an archive.
Chris@10 22012 AR_FLAGS=$lt_AR_FLAGS
Chris@10 22013
Chris@10 22014 # How to feed a file listing to the archiver.
Chris@10 22015 archiver_list_spec=$lt_archiver_list_spec
Chris@10 22016
Chris@10 22017 # A symbol stripping program.
Chris@10 22018 STRIP=$lt_STRIP
Chris@10 22019
Chris@10 22020 # Commands used to install an old-style archive.
Chris@10 22021 RANLIB=$lt_RANLIB
Chris@10 22022 old_postinstall_cmds=$lt_old_postinstall_cmds
Chris@10 22023 old_postuninstall_cmds=$lt_old_postuninstall_cmds
Chris@10 22024
Chris@10 22025 # Whether to use a lock for old archive extraction.
Chris@10 22026 lock_old_archive_extraction=$lock_old_archive_extraction
Chris@10 22027
Chris@10 22028 # A C compiler.
Chris@10 22029 LTCC=$lt_CC
Chris@10 22030
Chris@10 22031 # LTCC compiler flags.
Chris@10 22032 LTCFLAGS=$lt_CFLAGS
Chris@10 22033
Chris@10 22034 # Take the output of nm and produce a listing of raw symbols and C names.
Chris@10 22035 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
Chris@10 22036
Chris@10 22037 # Transform the output of nm in a proper C declaration.
Chris@10 22038 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
Chris@10 22039
Chris@10 22040 # Transform the output of nm in a C name address pair.
Chris@10 22041 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
Chris@10 22042
Chris@10 22043 # Transform the output of nm in a C name address pair when lib prefix is needed.
Chris@10 22044 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
Chris@10 22045
Chris@10 22046 # Specify filename containing input files for \$NM.
Chris@10 22047 nm_file_list_spec=$lt_nm_file_list_spec
Chris@10 22048
Chris@10 22049 # The root where to search for dependent libraries,and in which our libraries should be installed.
Chris@10 22050 lt_sysroot=$lt_sysroot
Chris@10 22051
Chris@10 22052 # The name of the directory that contains temporary libtool files.
Chris@10 22053 objdir=$objdir
Chris@10 22054
Chris@10 22055 # Used to examine libraries when file_magic_cmd begins with "file".
Chris@10 22056 MAGIC_CMD=$MAGIC_CMD
Chris@10 22057
Chris@10 22058 # Must we lock files when doing compilation?
Chris@10 22059 need_locks=$lt_need_locks
Chris@10 22060
Chris@10 22061 # Manifest tool.
Chris@10 22062 MANIFEST_TOOL=$lt_MANIFEST_TOOL
Chris@10 22063
Chris@10 22064 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
Chris@10 22065 DSYMUTIL=$lt_DSYMUTIL
Chris@10 22066
Chris@10 22067 # Tool to change global to local symbols on Mac OS X.
Chris@10 22068 NMEDIT=$lt_NMEDIT
Chris@10 22069
Chris@10 22070 # Tool to manipulate fat objects and archives on Mac OS X.
Chris@10 22071 LIPO=$lt_LIPO
Chris@10 22072
Chris@10 22073 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
Chris@10 22074 OTOOL=$lt_OTOOL
Chris@10 22075
Chris@10 22076 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
Chris@10 22077 OTOOL64=$lt_OTOOL64
Chris@10 22078
Chris@10 22079 # Old archive suffix (normally "a").
Chris@10 22080 libext=$libext
Chris@10 22081
Chris@10 22082 # Shared library suffix (normally ".so").
Chris@10 22083 shrext_cmds=$lt_shrext_cmds
Chris@10 22084
Chris@10 22085 # The commands to extract the exported symbol list from a shared archive.
Chris@10 22086 extract_expsyms_cmds=$lt_extract_expsyms_cmds
Chris@10 22087
Chris@10 22088 # Variables whose values should be saved in libtool wrapper scripts and
Chris@10 22089 # restored at link time.
Chris@10 22090 variables_saved_for_relink=$lt_variables_saved_for_relink
Chris@10 22091
Chris@10 22092 # Do we need the "lib" prefix for modules?
Chris@10 22093 need_lib_prefix=$need_lib_prefix
Chris@10 22094
Chris@10 22095 # Do we need a version for libraries?
Chris@10 22096 need_version=$need_version
Chris@10 22097
Chris@10 22098 # Library versioning type.
Chris@10 22099 version_type=$version_type
Chris@10 22100
Chris@10 22101 # Shared library runtime path variable.
Chris@10 22102 runpath_var=$runpath_var
Chris@10 22103
Chris@10 22104 # Shared library path variable.
Chris@10 22105 shlibpath_var=$shlibpath_var
Chris@10 22106
Chris@10 22107 # Is shlibpath searched before the hard-coded library search path?
Chris@10 22108 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
Chris@10 22109
Chris@10 22110 # Format of library name prefix.
Chris@10 22111 libname_spec=$lt_libname_spec
Chris@10 22112
Chris@10 22113 # List of archive names. First name is the real one, the rest are links.
Chris@10 22114 # The last name is the one that the linker finds with -lNAME
Chris@10 22115 library_names_spec=$lt_library_names_spec
Chris@10 22116
Chris@10 22117 # The coded name of the library, if different from the real name.
Chris@10 22118 soname_spec=$lt_soname_spec
Chris@10 22119
Chris@10 22120 # Permission mode override for installation of shared libraries.
Chris@10 22121 install_override_mode=$lt_install_override_mode
Chris@10 22122
Chris@10 22123 # Command to use after installation of a shared archive.
Chris@10 22124 postinstall_cmds=$lt_postinstall_cmds
Chris@10 22125
Chris@10 22126 # Command to use after uninstallation of a shared archive.
Chris@10 22127 postuninstall_cmds=$lt_postuninstall_cmds
Chris@10 22128
Chris@10 22129 # Commands used to finish a libtool library installation in a directory.
Chris@10 22130 finish_cmds=$lt_finish_cmds
Chris@10 22131
Chris@10 22132 # As "finish_cmds", except a single script fragment to be evaled but
Chris@10 22133 # not shown.
Chris@10 22134 finish_eval=$lt_finish_eval
Chris@10 22135
Chris@10 22136 # Whether we should hardcode library paths into libraries.
Chris@10 22137 hardcode_into_libs=$hardcode_into_libs
Chris@10 22138
Chris@10 22139 # Compile-time system search path for libraries.
Chris@10 22140 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
Chris@10 22141
Chris@10 22142 # Run-time system search path for libraries.
Chris@10 22143 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
Chris@10 22144
Chris@10 22145 # Whether dlopen is supported.
Chris@10 22146 dlopen_support=$enable_dlopen
Chris@10 22147
Chris@10 22148 # Whether dlopen of programs is supported.
Chris@10 22149 dlopen_self=$enable_dlopen_self
Chris@10 22150
Chris@10 22151 # Whether dlopen of statically linked programs is supported.
Chris@10 22152 dlopen_self_static=$enable_dlopen_self_static
Chris@10 22153
Chris@10 22154 # Commands to strip libraries.
Chris@10 22155 old_striplib=$lt_old_striplib
Chris@10 22156 striplib=$lt_striplib
Chris@10 22157
Chris@10 22158
Chris@10 22159 # The linker used to build libraries.
Chris@10 22160 LD=$lt_LD
Chris@10 22161
Chris@10 22162 # How to create reloadable object files.
Chris@10 22163 reload_flag=$lt_reload_flag
Chris@10 22164 reload_cmds=$lt_reload_cmds
Chris@10 22165
Chris@10 22166 # Commands used to build an old-style archive.
Chris@10 22167 old_archive_cmds=$lt_old_archive_cmds
Chris@10 22168
Chris@10 22169 # A language specific compiler.
Chris@10 22170 CC=$lt_compiler
Chris@10 22171
Chris@10 22172 # Is the compiler the GNU compiler?
Chris@10 22173 with_gcc=$GCC
Chris@10 22174
Chris@10 22175 # Compiler flag to turn off builtin functions.
Chris@10 22176 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
Chris@10 22177
Chris@10 22178 # Additional compiler flags for building library objects.
Chris@10 22179 pic_flag=$lt_lt_prog_compiler_pic
Chris@10 22180
Chris@10 22181 # How to pass a linker flag through the compiler.
Chris@10 22182 wl=$lt_lt_prog_compiler_wl
Chris@10 22183
Chris@10 22184 # Compiler flag to prevent dynamic linking.
Chris@10 22185 link_static_flag=$lt_lt_prog_compiler_static
Chris@10 22186
Chris@10 22187 # Does compiler simultaneously support -c and -o options?
Chris@10 22188 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
Chris@10 22189
Chris@10 22190 # Whether or not to add -lc for building shared libraries.
Chris@10 22191 build_libtool_need_lc=$archive_cmds_need_lc
Chris@10 22192
Chris@10 22193 # Whether or not to disallow shared libs when runtime libs are static.
Chris@10 22194 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
Chris@10 22195
Chris@10 22196 # Compiler flag to allow reflexive dlopens.
Chris@10 22197 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
Chris@10 22198
Chris@10 22199 # Compiler flag to generate shared objects directly from archives.
Chris@10 22200 whole_archive_flag_spec=$lt_whole_archive_flag_spec
Chris@10 22201
Chris@10 22202 # Whether the compiler copes with passing no objects directly.
Chris@10 22203 compiler_needs_object=$lt_compiler_needs_object
Chris@10 22204
Chris@10 22205 # Create an old-style archive from a shared archive.
Chris@10 22206 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
Chris@10 22207
Chris@10 22208 # Create a temporary old-style archive to link instead of a shared archive.
Chris@10 22209 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
Chris@10 22210
Chris@10 22211 # Commands used to build a shared archive.
Chris@10 22212 archive_cmds=$lt_archive_cmds
Chris@10 22213 archive_expsym_cmds=$lt_archive_expsym_cmds
Chris@10 22214
Chris@10 22215 # Commands used to build a loadable module if different from building
Chris@10 22216 # a shared archive.
Chris@10 22217 module_cmds=$lt_module_cmds
Chris@10 22218 module_expsym_cmds=$lt_module_expsym_cmds
Chris@10 22219
Chris@10 22220 # Whether we are building with GNU ld or not.
Chris@10 22221 with_gnu_ld=$lt_with_gnu_ld
Chris@10 22222
Chris@10 22223 # Flag that allows shared libraries with undefined symbols to be built.
Chris@10 22224 allow_undefined_flag=$lt_allow_undefined_flag
Chris@10 22225
Chris@10 22226 # Flag that enforces no undefined symbols.
Chris@10 22227 no_undefined_flag=$lt_no_undefined_flag
Chris@10 22228
Chris@10 22229 # Flag to hardcode \$libdir into a binary during linking.
Chris@10 22230 # This must work even if \$libdir does not exist
Chris@10 22231 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
Chris@10 22232
Chris@10 22233 # Whether we need a single "-rpath" flag with a separated argument.
Chris@10 22234 hardcode_libdir_separator=$lt_hardcode_libdir_separator
Chris@10 22235
Chris@10 22236 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
Chris@10 22237 # DIR into the resulting binary.
Chris@10 22238 hardcode_direct=$hardcode_direct
Chris@10 22239
Chris@10 22240 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
Chris@10 22241 # DIR into the resulting binary and the resulting library dependency is
Chris@10 22242 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
Chris@10 22243 # library is relocated.
Chris@10 22244 hardcode_direct_absolute=$hardcode_direct_absolute
Chris@10 22245
Chris@10 22246 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
Chris@10 22247 # into the resulting binary.
Chris@10 22248 hardcode_minus_L=$hardcode_minus_L
Chris@10 22249
Chris@10 22250 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
Chris@10 22251 # into the resulting binary.
Chris@10 22252 hardcode_shlibpath_var=$hardcode_shlibpath_var
Chris@10 22253
Chris@10 22254 # Set to "yes" if building a shared library automatically hardcodes DIR
Chris@10 22255 # into the library and all subsequent libraries and executables linked
Chris@10 22256 # against it.
Chris@10 22257 hardcode_automatic=$hardcode_automatic
Chris@10 22258
Chris@10 22259 # Set to yes if linker adds runtime paths of dependent libraries
Chris@10 22260 # to runtime path list.
Chris@10 22261 inherit_rpath=$inherit_rpath
Chris@10 22262
Chris@10 22263 # Whether libtool must link a program against all its dependency libraries.
Chris@10 22264 link_all_deplibs=$link_all_deplibs
Chris@10 22265
Chris@10 22266 # Set to "yes" if exported symbols are required.
Chris@10 22267 always_export_symbols=$always_export_symbols
Chris@10 22268
Chris@10 22269 # The commands to list exported symbols.
Chris@10 22270 export_symbols_cmds=$lt_export_symbols_cmds
Chris@10 22271
Chris@10 22272 # Symbols that should not be listed in the preloaded symbols.
Chris@10 22273 exclude_expsyms=$lt_exclude_expsyms
Chris@10 22274
Chris@10 22275 # Symbols that must always be exported.
Chris@10 22276 include_expsyms=$lt_include_expsyms
Chris@10 22277
Chris@10 22278 # Commands necessary for linking programs (against libraries) with templates.
Chris@10 22279 prelink_cmds=$lt_prelink_cmds
Chris@10 22280
Chris@10 22281 # Commands necessary for finishing linking programs.
Chris@10 22282 postlink_cmds=$lt_postlink_cmds
Chris@10 22283
Chris@10 22284 # Specify filename containing input files.
Chris@10 22285 file_list_spec=$lt_file_list_spec
Chris@10 22286
Chris@10 22287 # How to hardcode a shared library path into an executable.
Chris@10 22288 hardcode_action=$hardcode_action
Chris@10 22289
Chris@10 22290 # ### END LIBTOOL CONFIG
Chris@10 22291
Chris@10 22292 _LT_EOF
Chris@10 22293
Chris@10 22294 case $host_os in
Chris@10 22295 aix3*)
Chris@10 22296 cat <<\_LT_EOF >> "$cfgfile"
Chris@10 22297 # AIX sometimes has problems with the GCC collect2 program. For some
Chris@10 22298 # reason, if we set the COLLECT_NAMES environment variable, the problems
Chris@10 22299 # vanish in a puff of smoke.
Chris@10 22300 if test "X${COLLECT_NAMES+set}" != Xset; then
Chris@10 22301 COLLECT_NAMES=
Chris@10 22302 export COLLECT_NAMES
Chris@10 22303 fi
Chris@10 22304 _LT_EOF
Chris@10 22305 ;;
Chris@10 22306 esac
Chris@10 22307
Chris@10 22308
Chris@10 22309 ltmain="$ac_aux_dir/ltmain.sh"
Chris@10 22310
Chris@10 22311
Chris@10 22312 # We use sed instead of cat because bash on DJGPP gets confused if
Chris@10 22313 # if finds mixed CR/LF and LF-only lines. Since sed operates in
Chris@10 22314 # text mode, it properly converts lines to CR/LF. This bash problem
Chris@10 22315 # is reportedly fixed, but why not run on old versions too?
Chris@10 22316 sed '$q' "$ltmain" >> "$cfgfile" \
Chris@10 22317 || (rm -f "$cfgfile"; exit 1)
Chris@10 22318
Chris@10 22319 if test x"$xsi_shell" = xyes; then
Chris@10 22320 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
Chris@10 22321 func_dirname ()\
Chris@10 22322 {\
Chris@10 22323 \ case ${1} in\
Chris@10 22324 \ */*) func_dirname_result="${1%/*}${2}" ;;\
Chris@10 22325 \ * ) func_dirname_result="${3}" ;;\
Chris@10 22326 \ esac\
Chris@10 22327 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
Chris@10 22328 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@10 22329 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@10 22330 test 0 -eq $? || _lt_function_replace_fail=:
Chris@10 22331
Chris@10 22332
Chris@10 22333 sed -e '/^func_basename ()$/,/^} # func_basename /c\
Chris@10 22334 func_basename ()\
Chris@10 22335 {\
Chris@10 22336 \ func_basename_result="${1##*/}"\
Chris@10 22337 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
Chris@10 22338 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@10 22339 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@10 22340 test 0 -eq $? || _lt_function_replace_fail=:
Chris@10 22341
Chris@10 22342
Chris@10 22343 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
Chris@10 22344 func_dirname_and_basename ()\
Chris@10 22345 {\
Chris@10 22346 \ case ${1} in\
Chris@10 22347 \ */*) func_dirname_result="${1%/*}${2}" ;;\
Chris@10 22348 \ * ) func_dirname_result="${3}" ;;\
Chris@10 22349 \ esac\
Chris@10 22350 \ func_basename_result="${1##*/}"\
Chris@10 22351 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
Chris@10 22352 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@10 22353 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@10 22354 test 0 -eq $? || _lt_function_replace_fail=:
Chris@10 22355
Chris@10 22356
Chris@10 22357 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
Chris@10 22358 func_stripname ()\
Chris@10 22359 {\
Chris@10 22360 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
Chris@10 22361 \ # positional parameters, so assign one to ordinary parameter first.\
Chris@10 22362 \ func_stripname_result=${3}\
Chris@10 22363 \ func_stripname_result=${func_stripname_result#"${1}"}\
Chris@10 22364 \ func_stripname_result=${func_stripname_result%"${2}"}\
Chris@10 22365 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
Chris@10 22366 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@10 22367 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@10 22368 test 0 -eq $? || _lt_function_replace_fail=:
Chris@10 22369
Chris@10 22370
Chris@10 22371 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
Chris@10 22372 func_split_long_opt ()\
Chris@10 22373 {\
Chris@10 22374 \ func_split_long_opt_name=${1%%=*}\
Chris@10 22375 \ func_split_long_opt_arg=${1#*=}\
Chris@10 22376 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
Chris@10 22377 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@10 22378 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@10 22379 test 0 -eq $? || _lt_function_replace_fail=:
Chris@10 22380
Chris@10 22381
Chris@10 22382 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
Chris@10 22383 func_split_short_opt ()\
Chris@10 22384 {\
Chris@10 22385 \ func_split_short_opt_arg=${1#??}\
Chris@10 22386 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
Chris@10 22387 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
Chris@10 22388 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@10 22389 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@10 22390 test 0 -eq $? || _lt_function_replace_fail=:
Chris@10 22391
Chris@10 22392
Chris@10 22393 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
Chris@10 22394 func_lo2o ()\
Chris@10 22395 {\
Chris@10 22396 \ case ${1} in\
Chris@10 22397 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
Chris@10 22398 \ *) func_lo2o_result=${1} ;;\
Chris@10 22399 \ esac\
Chris@10 22400 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
Chris@10 22401 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@10 22402 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@10 22403 test 0 -eq $? || _lt_function_replace_fail=:
Chris@10 22404
Chris@10 22405
Chris@10 22406 sed -e '/^func_xform ()$/,/^} # func_xform /c\
Chris@10 22407 func_xform ()\
Chris@10 22408 {\
Chris@10 22409 func_xform_result=${1%.*}.lo\
Chris@10 22410 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
Chris@10 22411 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@10 22412 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@10 22413 test 0 -eq $? || _lt_function_replace_fail=:
Chris@10 22414
Chris@10 22415
Chris@10 22416 sed -e '/^func_arith ()$/,/^} # func_arith /c\
Chris@10 22417 func_arith ()\
Chris@10 22418 {\
Chris@10 22419 func_arith_result=$(( $* ))\
Chris@10 22420 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
Chris@10 22421 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@10 22422 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@10 22423 test 0 -eq $? || _lt_function_replace_fail=:
Chris@10 22424
Chris@10 22425
Chris@10 22426 sed -e '/^func_len ()$/,/^} # func_len /c\
Chris@10 22427 func_len ()\
Chris@10 22428 {\
Chris@10 22429 func_len_result=${#1}\
Chris@10 22430 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
Chris@10 22431 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@10 22432 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@10 22433 test 0 -eq $? || _lt_function_replace_fail=:
Chris@10 22434
Chris@10 22435 fi
Chris@10 22436
Chris@10 22437 if test x"$lt_shell_append" = xyes; then
Chris@10 22438 sed -e '/^func_append ()$/,/^} # func_append /c\
Chris@10 22439 func_append ()\
Chris@10 22440 {\
Chris@10 22441 eval "${1}+=\\${2}"\
Chris@10 22442 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
Chris@10 22443 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@10 22444 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@10 22445 test 0 -eq $? || _lt_function_replace_fail=:
Chris@10 22446
Chris@10 22447
Chris@10 22448 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
Chris@10 22449 func_append_quoted ()\
Chris@10 22450 {\
Chris@10 22451 \ func_quote_for_eval "${2}"\
Chris@10 22452 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
Chris@10 22453 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
Chris@10 22454 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@10 22455 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@10 22456 test 0 -eq $? || _lt_function_replace_fail=:
Chris@10 22457
Chris@10 22458
Chris@10 22459 # Save a `func_append' function call where possible by direct use of '+='
Chris@10 22460 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
Chris@10 22461 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@10 22462 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@10 22463 test 0 -eq $? || _lt_function_replace_fail=:
Chris@10 22464 else
Chris@10 22465 # Save a `func_append' function call even when '+=' is not available
Chris@10 22466 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
Chris@10 22467 && mv -f "$cfgfile.tmp" "$cfgfile" \
Chris@10 22468 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
Chris@10 22469 test 0 -eq $? || _lt_function_replace_fail=:
Chris@10 22470 fi
Chris@10 22471
Chris@10 22472 if test x"$_lt_function_replace_fail" = x":"; then
Chris@10 22473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
Chris@10 22474 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
Chris@10 22475 fi
Chris@10 22476
Chris@10 22477
Chris@10 22478 mv -f "$cfgfile" "$ofile" ||
Chris@10 22479 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
Chris@10 22480 chmod +x "$ofile"
Chris@10 22481
Chris@10 22482
Chris@10 22483 cat <<_LT_EOF >> "$ofile"
Chris@10 22484
Chris@10 22485 # ### BEGIN LIBTOOL TAG CONFIG: F77
Chris@10 22486
Chris@10 22487 # The linker used to build libraries.
Chris@10 22488 LD=$lt_LD_F77
Chris@10 22489
Chris@10 22490 # How to create reloadable object files.
Chris@10 22491 reload_flag=$lt_reload_flag_F77
Chris@10 22492 reload_cmds=$lt_reload_cmds_F77
Chris@10 22493
Chris@10 22494 # Commands used to build an old-style archive.
Chris@10 22495 old_archive_cmds=$lt_old_archive_cmds_F77
Chris@10 22496
Chris@10 22497 # A language specific compiler.
Chris@10 22498 CC=$lt_compiler_F77
Chris@10 22499
Chris@10 22500 # Is the compiler the GNU compiler?
Chris@10 22501 with_gcc=$GCC_F77
Chris@10 22502
Chris@10 22503 # Compiler flag to turn off builtin functions.
Chris@10 22504 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
Chris@10 22505
Chris@10 22506 # Additional compiler flags for building library objects.
Chris@10 22507 pic_flag=$lt_lt_prog_compiler_pic_F77
Chris@10 22508
Chris@10 22509 # How to pass a linker flag through the compiler.
Chris@10 22510 wl=$lt_lt_prog_compiler_wl_F77
Chris@10 22511
Chris@10 22512 # Compiler flag to prevent dynamic linking.
Chris@10 22513 link_static_flag=$lt_lt_prog_compiler_static_F77
Chris@10 22514
Chris@10 22515 # Does compiler simultaneously support -c and -o options?
Chris@10 22516 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
Chris@10 22517
Chris@10 22518 # Whether or not to add -lc for building shared libraries.
Chris@10 22519 build_libtool_need_lc=$archive_cmds_need_lc_F77
Chris@10 22520
Chris@10 22521 # Whether or not to disallow shared libs when runtime libs are static.
Chris@10 22522 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
Chris@10 22523
Chris@10 22524 # Compiler flag to allow reflexive dlopens.
Chris@10 22525 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
Chris@10 22526
Chris@10 22527 # Compiler flag to generate shared objects directly from archives.
Chris@10 22528 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
Chris@10 22529
Chris@10 22530 # Whether the compiler copes with passing no objects directly.
Chris@10 22531 compiler_needs_object=$lt_compiler_needs_object_F77
Chris@10 22532
Chris@10 22533 # Create an old-style archive from a shared archive.
Chris@10 22534 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
Chris@10 22535
Chris@10 22536 # Create a temporary old-style archive to link instead of a shared archive.
Chris@10 22537 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
Chris@10 22538
Chris@10 22539 # Commands used to build a shared archive.
Chris@10 22540 archive_cmds=$lt_archive_cmds_F77
Chris@10 22541 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
Chris@10 22542
Chris@10 22543 # Commands used to build a loadable module if different from building
Chris@10 22544 # a shared archive.
Chris@10 22545 module_cmds=$lt_module_cmds_F77
Chris@10 22546 module_expsym_cmds=$lt_module_expsym_cmds_F77
Chris@10 22547
Chris@10 22548 # Whether we are building with GNU ld or not.
Chris@10 22549 with_gnu_ld=$lt_with_gnu_ld_F77
Chris@10 22550
Chris@10 22551 # Flag that allows shared libraries with undefined symbols to be built.
Chris@10 22552 allow_undefined_flag=$lt_allow_undefined_flag_F77
Chris@10 22553
Chris@10 22554 # Flag that enforces no undefined symbols.
Chris@10 22555 no_undefined_flag=$lt_no_undefined_flag_F77
Chris@10 22556
Chris@10 22557 # Flag to hardcode \$libdir into a binary during linking.
Chris@10 22558 # This must work even if \$libdir does not exist
Chris@10 22559 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
Chris@10 22560
Chris@10 22561 # Whether we need a single "-rpath" flag with a separated argument.
Chris@10 22562 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
Chris@10 22563
Chris@10 22564 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
Chris@10 22565 # DIR into the resulting binary.
Chris@10 22566 hardcode_direct=$hardcode_direct_F77
Chris@10 22567
Chris@10 22568 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
Chris@10 22569 # DIR into the resulting binary and the resulting library dependency is
Chris@10 22570 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
Chris@10 22571 # library is relocated.
Chris@10 22572 hardcode_direct_absolute=$hardcode_direct_absolute_F77
Chris@10 22573
Chris@10 22574 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
Chris@10 22575 # into the resulting binary.
Chris@10 22576 hardcode_minus_L=$hardcode_minus_L_F77
Chris@10 22577
Chris@10 22578 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
Chris@10 22579 # into the resulting binary.
Chris@10 22580 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
Chris@10 22581
Chris@10 22582 # Set to "yes" if building a shared library automatically hardcodes DIR
Chris@10 22583 # into the library and all subsequent libraries and executables linked
Chris@10 22584 # against it.
Chris@10 22585 hardcode_automatic=$hardcode_automatic_F77
Chris@10 22586
Chris@10 22587 # Set to yes if linker adds runtime paths of dependent libraries
Chris@10 22588 # to runtime path list.
Chris@10 22589 inherit_rpath=$inherit_rpath_F77
Chris@10 22590
Chris@10 22591 # Whether libtool must link a program against all its dependency libraries.
Chris@10 22592 link_all_deplibs=$link_all_deplibs_F77
Chris@10 22593
Chris@10 22594 # Set to "yes" if exported symbols are required.
Chris@10 22595 always_export_symbols=$always_export_symbols_F77
Chris@10 22596
Chris@10 22597 # The commands to list exported symbols.
Chris@10 22598 export_symbols_cmds=$lt_export_symbols_cmds_F77
Chris@10 22599
Chris@10 22600 # Symbols that should not be listed in the preloaded symbols.
Chris@10 22601 exclude_expsyms=$lt_exclude_expsyms_F77
Chris@10 22602
Chris@10 22603 # Symbols that must always be exported.
Chris@10 22604 include_expsyms=$lt_include_expsyms_F77
Chris@10 22605
Chris@10 22606 # Commands necessary for linking programs (against libraries) with templates.
Chris@10 22607 prelink_cmds=$lt_prelink_cmds_F77
Chris@10 22608
Chris@10 22609 # Commands necessary for finishing linking programs.
Chris@10 22610 postlink_cmds=$lt_postlink_cmds_F77
Chris@10 22611
Chris@10 22612 # Specify filename containing input files.
Chris@10 22613 file_list_spec=$lt_file_list_spec_F77
Chris@10 22614
Chris@10 22615 # How to hardcode a shared library path into an executable.
Chris@10 22616 hardcode_action=$hardcode_action_F77
Chris@10 22617
Chris@10 22618 # ### END LIBTOOL TAG CONFIG: F77
Chris@10 22619 _LT_EOF
Chris@10 22620
Chris@10 22621 ;;
Chris@10 22622
Chris@10 22623 esac
Chris@10 22624 done # for ac_tag
Chris@10 22625
Chris@10 22626
Chris@10 22627 as_fn_exit 0
Chris@10 22628 _ACEOF
Chris@10 22629 ac_clean_files=$ac_clean_files_save
Chris@10 22630
Chris@10 22631 test $ac_write_fail = 0 ||
Chris@10 22632 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Chris@10 22633
Chris@10 22634
Chris@10 22635 # configure is writing to config.log, and then calls config.status.
Chris@10 22636 # config.status does its own redirection, appending to config.log.
Chris@10 22637 # Unfortunately, on DOS this fails, as config.log is still kept open
Chris@10 22638 # by configure, so config.status won't be able to write to it; its
Chris@10 22639 # output is simply discarded. So we exec the FD to /dev/null,
Chris@10 22640 # effectively closing config.log, so it can be properly (re)opened and
Chris@10 22641 # appended to by config.status. When coming back to configure, we
Chris@10 22642 # need to make the FD available again.
Chris@10 22643 if test "$no_create" != yes; then
Chris@10 22644 ac_cs_success=:
Chris@10 22645 ac_config_status_args=
Chris@10 22646 test "$silent" = yes &&
Chris@10 22647 ac_config_status_args="$ac_config_status_args --quiet"
Chris@10 22648 exec 5>/dev/null
Chris@10 22649 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Chris@10 22650 exec 5>>config.log
Chris@10 22651 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
Chris@10 22652 # would make configure fail if this is the last instruction.
Chris@10 22653 $ac_cs_success || as_fn_exit 1
Chris@10 22654 fi
Chris@10 22655 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Chris@10 22656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Chris@10 22657 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Chris@10 22658 fi
Chris@10 22659