annotate src/fftw-3.3.8/configure @ 84:08ae793730bd

Add null config files
author Chris Cannam
date Mon, 02 Mar 2020 14:03:47 +0000
parents d0c2a83c1364
children
rev   line source
Chris@82 1 #! /bin/sh
Chris@82 2 # Guess values for system-dependent variables and create Makefiles.
Chris@82 3 # Generated by GNU Autoconf 2.69 for fftw 3.3.8.
Chris@82 4 #
Chris@82 5 # Report bugs to <fftw@fftw.org>.
Chris@82 6 #
Chris@82 7 #
Chris@82 8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Chris@82 9 #
Chris@82 10 #
Chris@82 11 # This configure script is free software; the Free Software Foundation
Chris@82 12 # gives unlimited permission to copy, distribute and modify it.
Chris@82 13 ## -------------------- ##
Chris@82 14 ## M4sh Initialization. ##
Chris@82 15 ## -------------------- ##
Chris@82 16
Chris@82 17 # Be more Bourne compatible
Chris@82 18 DUALCASE=1; export DUALCASE # for MKS sh
Chris@82 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Chris@82 20 emulate sh
Chris@82 21 NULLCMD=:
Chris@82 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Chris@82 23 # is contrary to our usage. Disable this feature.
Chris@82 24 alias -g '${1+"$@"}'='"$@"'
Chris@82 25 setopt NO_GLOB_SUBST
Chris@82 26 else
Chris@82 27 case `(set -o) 2>/dev/null` in #(
Chris@82 28 *posix*) :
Chris@82 29 set -o posix ;; #(
Chris@82 30 *) :
Chris@82 31 ;;
Chris@82 32 esac
Chris@82 33 fi
Chris@82 34
Chris@82 35
Chris@82 36 as_nl='
Chris@82 37 '
Chris@82 38 export as_nl
Chris@82 39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
Chris@82 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@82 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@82 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@82 43 # Prefer a ksh shell builtin over an external printf program on Solaris,
Chris@82 44 # but without wasting forks for bash or zsh.
Chris@82 45 if test -z "$BASH_VERSION$ZSH_VERSION" \
Chris@82 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@82 47 as_echo='print -r --'
Chris@82 48 as_echo_n='print -rn --'
Chris@82 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@82 50 as_echo='printf %s\n'
Chris@82 51 as_echo_n='printf %s'
Chris@82 52 else
Chris@82 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
Chris@82 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
Chris@82 55 as_echo_n='/usr/ucb/echo -n'
Chris@82 56 else
Chris@82 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
Chris@82 58 as_echo_n_body='eval
Chris@82 59 arg=$1;
Chris@82 60 case $arg in #(
Chris@82 61 *"$as_nl"*)
Chris@82 62 expr "X$arg" : "X\\(.*\\)$as_nl";
Chris@82 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
Chris@82 64 esac;
Chris@82 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
Chris@82 66 '
Chris@82 67 export as_echo_n_body
Chris@82 68 as_echo_n='sh -c $as_echo_n_body as_echo'
Chris@82 69 fi
Chris@82 70 export as_echo_body
Chris@82 71 as_echo='sh -c $as_echo_body as_echo'
Chris@82 72 fi
Chris@82 73
Chris@82 74 # The user is always right.
Chris@82 75 if test "${PATH_SEPARATOR+set}" != set; then
Chris@82 76 PATH_SEPARATOR=:
Chris@82 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
Chris@82 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
Chris@82 79 PATH_SEPARATOR=';'
Chris@82 80 }
Chris@82 81 fi
Chris@82 82
Chris@82 83
Chris@82 84 # IFS
Chris@82 85 # We need space, tab and new line, in precisely that order. Quoting is
Chris@82 86 # there to prevent editors from complaining about space-tab.
Chris@82 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
Chris@82 88 # splitting by setting IFS to empty value.)
Chris@82 89 IFS=" "" $as_nl"
Chris@82 90
Chris@82 91 # Find who we are. Look in the path if we contain no directory separator.
Chris@82 92 as_myself=
Chris@82 93 case $0 in #((
Chris@82 94 *[\\/]* ) as_myself=$0 ;;
Chris@82 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 96 for as_dir in $PATH
Chris@82 97 do
Chris@82 98 IFS=$as_save_IFS
Chris@82 99 test -z "$as_dir" && as_dir=.
Chris@82 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
Chris@82 101 done
Chris@82 102 IFS=$as_save_IFS
Chris@82 103
Chris@82 104 ;;
Chris@82 105 esac
Chris@82 106 # We did not find ourselves, most probably we were run as `sh COMMAND'
Chris@82 107 # in which case we are not to be found in the path.
Chris@82 108 if test "x$as_myself" = x; then
Chris@82 109 as_myself=$0
Chris@82 110 fi
Chris@82 111 if test ! -f "$as_myself"; then
Chris@82 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Chris@82 113 exit 1
Chris@82 114 fi
Chris@82 115
Chris@82 116 # Unset variables that we do not need and which cause bugs (e.g. in
Chris@82 117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
Chris@82 118 # suppresses any "Segmentation fault" message there. '((' could
Chris@82 119 # trigger a bug in pdksh 5.2.14.
Chris@82 120 for as_var in BASH_ENV ENV MAIL MAILPATH
Chris@82 121 do eval test x\${$as_var+set} = xset \
Chris@82 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Chris@82 123 done
Chris@82 124 PS1='$ '
Chris@82 125 PS2='> '
Chris@82 126 PS4='+ '
Chris@82 127
Chris@82 128 # NLS nuisances.
Chris@82 129 LC_ALL=C
Chris@82 130 export LC_ALL
Chris@82 131 LANGUAGE=C
Chris@82 132 export LANGUAGE
Chris@82 133
Chris@82 134 # CDPATH.
Chris@82 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@82 136
Chris@82 137 # Use a proper internal environment variable to ensure we don't fall
Chris@82 138 # into an infinite loop, continuously re-executing ourselves.
Chris@82 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
Chris@82 140 _as_can_reexec=no; export _as_can_reexec;
Chris@82 141 # We cannot yet assume a decent shell, so we have to provide a
Chris@82 142 # neutralization value for shells without unset; and this also
Chris@82 143 # works around shells that cannot unset nonexistent variables.
Chris@82 144 # Preserve -v and -x to the replacement shell.
Chris@82 145 BASH_ENV=/dev/null
Chris@82 146 ENV=/dev/null
Chris@82 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
Chris@82 148 case $- in # ((((
Chris@82 149 *v*x* | *x*v* ) as_opts=-vx ;;
Chris@82 150 *v* ) as_opts=-v ;;
Chris@82 151 *x* ) as_opts=-x ;;
Chris@82 152 * ) as_opts= ;;
Chris@82 153 esac
Chris@82 154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
Chris@82 155 # Admittedly, this is quite paranoid, since all the known shells bail
Chris@82 156 # out after a failed `exec'.
Chris@82 157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
Chris@82 158 as_fn_exit 255
Chris@82 159 fi
Chris@82 160 # We don't want this to propagate to other subprocesses.
Chris@82 161 { _as_can_reexec=; unset _as_can_reexec;}
Chris@82 162 if test "x$CONFIG_SHELL" = x; then
Chris@82 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
Chris@82 164 emulate sh
Chris@82 165 NULLCMD=:
Chris@82 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
Chris@82 167 # is contrary to our usage. Disable this feature.
Chris@82 168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
Chris@82 169 setopt NO_GLOB_SUBST
Chris@82 170 else
Chris@82 171 case \`(set -o) 2>/dev/null\` in #(
Chris@82 172 *posix*) :
Chris@82 173 set -o posix ;; #(
Chris@82 174 *) :
Chris@82 175 ;;
Chris@82 176 esac
Chris@82 177 fi
Chris@82 178 "
Chris@82 179 as_required="as_fn_return () { (exit \$1); }
Chris@82 180 as_fn_success () { as_fn_return 0; }
Chris@82 181 as_fn_failure () { as_fn_return 1; }
Chris@82 182 as_fn_ret_success () { return 0; }
Chris@82 183 as_fn_ret_failure () { return 1; }
Chris@82 184
Chris@82 185 exitcode=0
Chris@82 186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
Chris@82 187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
Chris@82 188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
Chris@82 189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
Chris@82 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
Chris@82 191
Chris@82 192 else
Chris@82 193 exitcode=1; echo positional parameters were not saved.
Chris@82 194 fi
Chris@82 195 test x\$exitcode = x0 || exit 1
Chris@82 196 test -x / || exit 1"
Chris@82 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
Chris@82 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
Chris@82 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
Chris@82 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
Chris@82 201
Chris@82 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
Chris@82 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@82 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
Chris@82 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
Chris@82 206 PATH=/empty FPATH=/empty; export PATH FPATH
Chris@82 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
Chris@82 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
Chris@82 209 test \$(( 1 + 1 )) = 2 || exit 1"
Chris@82 210 if (eval "$as_required") 2>/dev/null; then :
Chris@82 211 as_have_required=yes
Chris@82 212 else
Chris@82 213 as_have_required=no
Chris@82 214 fi
Chris@82 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
Chris@82 216
Chris@82 217 else
Chris@82 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 219 as_found=false
Chris@82 220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Chris@82 221 do
Chris@82 222 IFS=$as_save_IFS
Chris@82 223 test -z "$as_dir" && as_dir=.
Chris@82 224 as_found=:
Chris@82 225 case $as_dir in #(
Chris@82 226 /*)
Chris@82 227 for as_base in sh bash ksh sh5; do
Chris@82 228 # Try only shells that exist, to save several forks.
Chris@82 229 as_shell=$as_dir/$as_base
Chris@82 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
Chris@82 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
Chris@82 232 CONFIG_SHELL=$as_shell as_have_required=yes
Chris@82 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
Chris@82 234 break 2
Chris@82 235 fi
Chris@82 236 fi
Chris@82 237 done;;
Chris@82 238 esac
Chris@82 239 as_found=false
Chris@82 240 done
Chris@82 241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
Chris@82 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
Chris@82 243 CONFIG_SHELL=$SHELL as_have_required=yes
Chris@82 244 fi; }
Chris@82 245 IFS=$as_save_IFS
Chris@82 246
Chris@82 247
Chris@82 248 if test "x$CONFIG_SHELL" != x; then :
Chris@82 249 export CONFIG_SHELL
Chris@82 250 # We cannot yet assume a decent shell, so we have to provide a
Chris@82 251 # neutralization value for shells without unset; and this also
Chris@82 252 # works around shells that cannot unset nonexistent variables.
Chris@82 253 # Preserve -v and -x to the replacement shell.
Chris@82 254 BASH_ENV=/dev/null
Chris@82 255 ENV=/dev/null
Chris@82 256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
Chris@82 257 case $- in # ((((
Chris@82 258 *v*x* | *x*v* ) as_opts=-vx ;;
Chris@82 259 *v* ) as_opts=-v ;;
Chris@82 260 *x* ) as_opts=-x ;;
Chris@82 261 * ) as_opts= ;;
Chris@82 262 esac
Chris@82 263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
Chris@82 264 # Admittedly, this is quite paranoid, since all the known shells bail
Chris@82 265 # out after a failed `exec'.
Chris@82 266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
Chris@82 267 exit 255
Chris@82 268 fi
Chris@82 269
Chris@82 270 if test x$as_have_required = xno; then :
Chris@82 271 $as_echo "$0: This script requires a shell more modern than all"
Chris@82 272 $as_echo "$0: the shells that I found on your system."
Chris@82 273 if test x${ZSH_VERSION+set} = xset ; then
Chris@82 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
Chris@82 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
Chris@82 276 else
Chris@82 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and fftw@fftw.org
Chris@82 278 $0: about your system, including any error possibly output
Chris@82 279 $0: before this message. Then install a modern shell, or
Chris@82 280 $0: manually run the script under such a shell if you do
Chris@82 281 $0: have one."
Chris@82 282 fi
Chris@82 283 exit 1
Chris@82 284 fi
Chris@82 285 fi
Chris@82 286 fi
Chris@82 287 SHELL=${CONFIG_SHELL-/bin/sh}
Chris@82 288 export SHELL
Chris@82 289 # Unset more variables known to interfere with behavior of common tools.
Chris@82 290 CLICOLOR_FORCE= GREP_OPTIONS=
Chris@82 291 unset CLICOLOR_FORCE GREP_OPTIONS
Chris@82 292
Chris@82 293 ## --------------------- ##
Chris@82 294 ## M4sh Shell Functions. ##
Chris@82 295 ## --------------------- ##
Chris@82 296 # as_fn_unset VAR
Chris@82 297 # ---------------
Chris@82 298 # Portably unset VAR.
Chris@82 299 as_fn_unset ()
Chris@82 300 {
Chris@82 301 { eval $1=; unset $1;}
Chris@82 302 }
Chris@82 303 as_unset=as_fn_unset
Chris@82 304
Chris@82 305 # as_fn_set_status STATUS
Chris@82 306 # -----------------------
Chris@82 307 # Set $? to STATUS, without forking.
Chris@82 308 as_fn_set_status ()
Chris@82 309 {
Chris@82 310 return $1
Chris@82 311 } # as_fn_set_status
Chris@82 312
Chris@82 313 # as_fn_exit STATUS
Chris@82 314 # -----------------
Chris@82 315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
Chris@82 316 as_fn_exit ()
Chris@82 317 {
Chris@82 318 set +e
Chris@82 319 as_fn_set_status $1
Chris@82 320 exit $1
Chris@82 321 } # as_fn_exit
Chris@82 322
Chris@82 323 # as_fn_mkdir_p
Chris@82 324 # -------------
Chris@82 325 # Create "$as_dir" as a directory, including parents if necessary.
Chris@82 326 as_fn_mkdir_p ()
Chris@82 327 {
Chris@82 328
Chris@82 329 case $as_dir in #(
Chris@82 330 -*) as_dir=./$as_dir;;
Chris@82 331 esac
Chris@82 332 test -d "$as_dir" || eval $as_mkdir_p || {
Chris@82 333 as_dirs=
Chris@82 334 while :; do
Chris@82 335 case $as_dir in #(
Chris@82 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Chris@82 337 *) as_qdir=$as_dir;;
Chris@82 338 esac
Chris@82 339 as_dirs="'$as_qdir' $as_dirs"
Chris@82 340 as_dir=`$as_dirname -- "$as_dir" ||
Chris@82 341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@82 342 X"$as_dir" : 'X\(//\)[^/]' \| \
Chris@82 343 X"$as_dir" : 'X\(//\)$' \| \
Chris@82 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Chris@82 345 $as_echo X"$as_dir" |
Chris@82 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@82 347 s//\1/
Chris@82 348 q
Chris@82 349 }
Chris@82 350 /^X\(\/\/\)[^/].*/{
Chris@82 351 s//\1/
Chris@82 352 q
Chris@82 353 }
Chris@82 354 /^X\(\/\/\)$/{
Chris@82 355 s//\1/
Chris@82 356 q
Chris@82 357 }
Chris@82 358 /^X\(\/\).*/{
Chris@82 359 s//\1/
Chris@82 360 q
Chris@82 361 }
Chris@82 362 s/.*/./; q'`
Chris@82 363 test -d "$as_dir" && break
Chris@82 364 done
Chris@82 365 test -z "$as_dirs" || eval "mkdir $as_dirs"
Chris@82 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Chris@82 367
Chris@82 368
Chris@82 369 } # as_fn_mkdir_p
Chris@82 370
Chris@82 371 # as_fn_executable_p FILE
Chris@82 372 # -----------------------
Chris@82 373 # Test if FILE is an executable regular file.
Chris@82 374 as_fn_executable_p ()
Chris@82 375 {
Chris@82 376 test -f "$1" && test -x "$1"
Chris@82 377 } # as_fn_executable_p
Chris@82 378 # as_fn_append VAR VALUE
Chris@82 379 # ----------------------
Chris@82 380 # Append the text in VALUE to the end of the definition contained in VAR. Take
Chris@82 381 # advantage of any shell optimizations that allow amortized linear growth over
Chris@82 382 # repeated appends, instead of the typical quadratic growth present in naive
Chris@82 383 # implementations.
Chris@82 384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
Chris@82 385 eval 'as_fn_append ()
Chris@82 386 {
Chris@82 387 eval $1+=\$2
Chris@82 388 }'
Chris@82 389 else
Chris@82 390 as_fn_append ()
Chris@82 391 {
Chris@82 392 eval $1=\$$1\$2
Chris@82 393 }
Chris@82 394 fi # as_fn_append
Chris@82 395
Chris@82 396 # as_fn_arith ARG...
Chris@82 397 # ------------------
Chris@82 398 # Perform arithmetic evaluation on the ARGs, and store the result in the
Chris@82 399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
Chris@82 400 # must be portable across $(()) and expr.
Chris@82 401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
Chris@82 402 eval 'as_fn_arith ()
Chris@82 403 {
Chris@82 404 as_val=$(( $* ))
Chris@82 405 }'
Chris@82 406 else
Chris@82 407 as_fn_arith ()
Chris@82 408 {
Chris@82 409 as_val=`expr "$@" || test $? -eq 1`
Chris@82 410 }
Chris@82 411 fi # as_fn_arith
Chris@82 412
Chris@82 413
Chris@82 414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
Chris@82 415 # ----------------------------------------
Chris@82 416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
Chris@82 417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Chris@82 418 # script with STATUS, using 1 if that was 0.
Chris@82 419 as_fn_error ()
Chris@82 420 {
Chris@82 421 as_status=$1; test $as_status -eq 0 && as_status=1
Chris@82 422 if test "$4"; then
Chris@82 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@82 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Chris@82 425 fi
Chris@82 426 $as_echo "$as_me: error: $2" >&2
Chris@82 427 as_fn_exit $as_status
Chris@82 428 } # as_fn_error
Chris@82 429
Chris@82 430 if expr a : '\(a\)' >/dev/null 2>&1 &&
Chris@82 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Chris@82 432 as_expr=expr
Chris@82 433 else
Chris@82 434 as_expr=false
Chris@82 435 fi
Chris@82 436
Chris@82 437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Chris@82 438 as_basename=basename
Chris@82 439 else
Chris@82 440 as_basename=false
Chris@82 441 fi
Chris@82 442
Chris@82 443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
Chris@82 444 as_dirname=dirname
Chris@82 445 else
Chris@82 446 as_dirname=false
Chris@82 447 fi
Chris@82 448
Chris@82 449 as_me=`$as_basename -- "$0" ||
Chris@82 450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
Chris@82 451 X"$0" : 'X\(//\)$' \| \
Chris@82 452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Chris@82 453 $as_echo X/"$0" |
Chris@82 454 sed '/^.*\/\([^/][^/]*\)\/*$/{
Chris@82 455 s//\1/
Chris@82 456 q
Chris@82 457 }
Chris@82 458 /^X\/\(\/\/\)$/{
Chris@82 459 s//\1/
Chris@82 460 q
Chris@82 461 }
Chris@82 462 /^X\/\(\/\).*/{
Chris@82 463 s//\1/
Chris@82 464 q
Chris@82 465 }
Chris@82 466 s/.*/./; q'`
Chris@82 467
Chris@82 468 # Avoid depending upon Character Ranges.
Chris@82 469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
Chris@82 470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
Chris@82 471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
Chris@82 472 as_cr_digits='0123456789'
Chris@82 473 as_cr_alnum=$as_cr_Letters$as_cr_digits
Chris@82 474
Chris@82 475
Chris@82 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
Chris@82 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
Chris@82 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
Chris@82 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
Chris@82 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Chris@82 481 sed -n '
Chris@82 482 p
Chris@82 483 /[$]LINENO/=
Chris@82 484 ' <$as_myself |
Chris@82 485 sed '
Chris@82 486 s/[$]LINENO.*/&-/
Chris@82 487 t lineno
Chris@82 488 b
Chris@82 489 :lineno
Chris@82 490 N
Chris@82 491 :loop
Chris@82 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Chris@82 493 t loop
Chris@82 494 s/-\n.*//
Chris@82 495 ' >$as_me.lineno &&
Chris@82 496 chmod +x "$as_me.lineno" ||
Chris@82 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Chris@82 498
Chris@82 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
Chris@82 500 # already done that, so ensure we don't try to do so again and fall
Chris@82 501 # in an infinite loop. This has already happened in practice.
Chris@82 502 _as_can_reexec=no; export _as_can_reexec
Chris@82 503 # Don't try to exec as it changes $[0], causing all sort of problems
Chris@82 504 # (the dirname of $[0] is not the place where we might find the
Chris@82 505 # original and so on. Autoconf is especially sensitive to this).
Chris@82 506 . "./$as_me.lineno"
Chris@82 507 # Exit status is that of the last command.
Chris@82 508 exit
Chris@82 509 }
Chris@82 510
Chris@82 511 ECHO_C= ECHO_N= ECHO_T=
Chris@82 512 case `echo -n x` in #(((((
Chris@82 513 -n*)
Chris@82 514 case `echo 'xy\c'` in
Chris@82 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Chris@82 516 xy) ECHO_C='\c';;
Chris@82 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
Chris@82 518 ECHO_T=' ';;
Chris@82 519 esac;;
Chris@82 520 *)
Chris@82 521 ECHO_N='-n';;
Chris@82 522 esac
Chris@82 523
Chris@82 524 rm -f conf$$ conf$$.exe conf$$.file
Chris@82 525 if test -d conf$$.dir; then
Chris@82 526 rm -f conf$$.dir/conf$$.file
Chris@82 527 else
Chris@82 528 rm -f conf$$.dir
Chris@82 529 mkdir conf$$.dir 2>/dev/null
Chris@82 530 fi
Chris@82 531 if (echo >conf$$.file) 2>/dev/null; then
Chris@82 532 if ln -s conf$$.file conf$$ 2>/dev/null; then
Chris@82 533 as_ln_s='ln -s'
Chris@82 534 # ... but there are two gotchas:
Chris@82 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
Chris@82 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Chris@82 537 # In both cases, we have to default to `cp -pR'.
Chris@82 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Chris@82 539 as_ln_s='cp -pR'
Chris@82 540 elif ln conf$$.file conf$$ 2>/dev/null; then
Chris@82 541 as_ln_s=ln
Chris@82 542 else
Chris@82 543 as_ln_s='cp -pR'
Chris@82 544 fi
Chris@82 545 else
Chris@82 546 as_ln_s='cp -pR'
Chris@82 547 fi
Chris@82 548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
Chris@82 549 rmdir conf$$.dir 2>/dev/null
Chris@82 550
Chris@82 551 if mkdir -p . 2>/dev/null; then
Chris@82 552 as_mkdir_p='mkdir -p "$as_dir"'
Chris@82 553 else
Chris@82 554 test -d ./-p && rmdir ./-p
Chris@82 555 as_mkdir_p=false
Chris@82 556 fi
Chris@82 557
Chris@82 558 as_test_x='test -x'
Chris@82 559 as_executable_p=as_fn_executable_p
Chris@82 560
Chris@82 561 # Sed expression to map a string onto a valid CPP name.
Chris@82 562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Chris@82 563
Chris@82 564 # Sed expression to map a string onto a valid variable name.
Chris@82 565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Chris@82 566
Chris@82 567 SHELL=${CONFIG_SHELL-/bin/sh}
Chris@82 568
Chris@82 569
Chris@82 570 test -n "$DJDIR" || exec 7<&0 </dev/null
Chris@82 571 exec 6>&1
Chris@82 572
Chris@82 573 # Name of the host.
Chris@82 574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Chris@82 575 # so uname gets run too.
Chris@82 576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@82 577
Chris@82 578 #
Chris@82 579 # Initializations.
Chris@82 580 #
Chris@82 581 ac_default_prefix=/usr/local
Chris@82 582 ac_clean_files=
Chris@82 583 ac_config_libobj_dir=.
Chris@82 584 LIBOBJS=
Chris@82 585 cross_compiling=no
Chris@82 586 subdirs=
Chris@82 587 MFLAGS=
Chris@82 588 MAKEFLAGS=
Chris@82 589
Chris@82 590 # Identity of this package.
Chris@82 591 PACKAGE_NAME='fftw'
Chris@82 592 PACKAGE_TARNAME='fftw'
Chris@82 593 PACKAGE_VERSION='3.3.8'
Chris@82 594 PACKAGE_STRING='fftw 3.3.8'
Chris@82 595 PACKAGE_BUGREPORT='fftw@fftw.org'
Chris@82 596 PACKAGE_URL=''
Chris@82 597
Chris@82 598 ac_unique_file="kernel/ifftw.h"
Chris@82 599 # Factoring default headers for most tests.
Chris@82 600 ac_includes_default="\
Chris@82 601 #include <stdio.h>
Chris@82 602 #ifdef HAVE_SYS_TYPES_H
Chris@82 603 # include <sys/types.h>
Chris@82 604 #endif
Chris@82 605 #ifdef HAVE_SYS_STAT_H
Chris@82 606 # include <sys/stat.h>
Chris@82 607 #endif
Chris@82 608 #ifdef STDC_HEADERS
Chris@82 609 # include <stdlib.h>
Chris@82 610 # include <stddef.h>
Chris@82 611 #else
Chris@82 612 # ifdef HAVE_STDLIB_H
Chris@82 613 # include <stdlib.h>
Chris@82 614 # endif
Chris@82 615 #endif
Chris@82 616 #ifdef HAVE_STRING_H
Chris@82 617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Chris@82 618 # include <memory.h>
Chris@82 619 # endif
Chris@82 620 # include <string.h>
Chris@82 621 #endif
Chris@82 622 #ifdef HAVE_STRINGS_H
Chris@82 623 # include <strings.h>
Chris@82 624 #endif
Chris@82 625 #ifdef HAVE_INTTYPES_H
Chris@82 626 # include <inttypes.h>
Chris@82 627 #endif
Chris@82 628 #ifdef HAVE_STDINT_H
Chris@82 629 # include <stdint.h>
Chris@82 630 #endif
Chris@82 631 #ifdef HAVE_UNISTD_H
Chris@82 632 # include <unistd.h>
Chris@82 633 #endif"
Chris@82 634
Chris@82 635 ac_subst_vars='am__EXEEXT_FALSE
Chris@82 636 am__EXEEXT_TRUE
Chris@82 637 LTLIBOBJS
Chris@82 638 COMBINED_THREADS_FALSE
Chris@82 639 COMBINED_THREADS_TRUE
Chris@82 640 SMP_FALSE
Chris@82 641 SMP_TRUE
Chris@82 642 OPENMP_FALSE
Chris@82 643 OPENMP_TRUE
Chris@82 644 THREADS_FALSE
Chris@82 645 THREADS_TRUE
Chris@82 646 THREADLIBS
Chris@82 647 PTHREAD_CFLAGS
Chris@82 648 PTHREAD_LIBS
Chris@82 649 PTHREAD_CC
Chris@82 650 acx_pthread_config
Chris@82 651 OPENMP_CFLAGS
Chris@82 652 FLIBS
Chris@82 653 ac_ct_F77
Chris@82 654 FFLAGS
Chris@82 655 F77
Chris@82 656 INDENT
Chris@82 657 LIBQUADMATH
Chris@82 658 LIBOBJS
Chris@82 659 POW_LIB
Chris@82 660 ALLOCA
Chris@82 661 C_FFTW_R2R_KIND
Chris@82 662 STACK_ALIGN_CFLAGS
Chris@82 663 NEON_CFLAGS
Chris@82 664 VSX_CFLAGS
Chris@82 665 ALTIVEC_CFLAGS
Chris@82 666 KCVI_CFLAGS
Chris@82 667 AVX512_CFLAGS
Chris@82 668 AVX2_CFLAGS
Chris@82 669 AVX_CFLAGS
Chris@82 670 SSE2_CFLAGS
Chris@82 671 MPI_FALSE
Chris@82 672 MPI_TRUE
Chris@82 673 C_MPI_FINT
Chris@82 674 MPIRUN
Chris@82 675 MPILIBS
Chris@82 676 MPICC
Chris@82 677 OCAMLBUILD
Chris@82 678 CPP
Chris@82 679 LT_SYS_LIBRARY_PATH
Chris@82 680 OTOOL64
Chris@82 681 OTOOL
Chris@82 682 LIPO
Chris@82 683 NMEDIT
Chris@82 684 DSYMUTIL
Chris@82 685 MANIFEST_TOOL
Chris@82 686 RANLIB
Chris@82 687 ac_ct_AR
Chris@82 688 AR
Chris@82 689 NM
Chris@82 690 ac_ct_DUMPBIN
Chris@82 691 DUMPBIN
Chris@82 692 LD
Chris@82 693 FGREP
Chris@82 694 EGREP
Chris@82 695 GREP
Chris@82 696 SED
Chris@82 697 LIBTOOL
Chris@82 698 OBJDUMP
Chris@82 699 DLLTOOL
Chris@82 700 AS
Chris@82 701 LN_S
Chris@82 702 am__fastdepCC_FALSE
Chris@82 703 am__fastdepCC_TRUE
Chris@82 704 CCDEPMODE
Chris@82 705 am__nodep
Chris@82 706 AMDEPBACKSLASH
Chris@82 707 AMDEP_FALSE
Chris@82 708 AMDEP_TRUE
Chris@82 709 am__quote
Chris@82 710 am__include
Chris@82 711 DEPDIR
Chris@82 712 OBJEXT
Chris@82 713 EXEEXT
Chris@82 714 ac_ct_CC
Chris@82 715 CPPFLAGS
Chris@82 716 LDFLAGS
Chris@82 717 CFLAGS
Chris@82 718 CC
Chris@82 719 PREC_SUFFIX
Chris@82 720 HAVE_GENERIC_SIMD256_FALSE
Chris@82 721 HAVE_GENERIC_SIMD256_TRUE
Chris@82 722 HAVE_GENERIC_SIMD128_FALSE
Chris@82 723 HAVE_GENERIC_SIMD128_TRUE
Chris@82 724 HAVE_NEON_FALSE
Chris@82 725 HAVE_NEON_TRUE
Chris@82 726 HAVE_VSX_FALSE
Chris@82 727 HAVE_VSX_TRUE
Chris@82 728 HAVE_ALTIVEC_FALSE
Chris@82 729 HAVE_ALTIVEC_TRUE
Chris@82 730 HAVE_KCVI_FALSE
Chris@82 731 HAVE_KCVI_TRUE
Chris@82 732 HAVE_AVX_128_FMA_FALSE
Chris@82 733 HAVE_AVX_128_FMA_TRUE
Chris@82 734 AVX_128_FMA_CFLAGS
Chris@82 735 HAVE_AVX512_FALSE
Chris@82 736 HAVE_AVX512_TRUE
Chris@82 737 HAVE_AVX2_FALSE
Chris@82 738 HAVE_AVX2_TRUE
Chris@82 739 HAVE_AVX_FALSE
Chris@82 740 HAVE_AVX_TRUE
Chris@82 741 HAVE_SSE2_FALSE
Chris@82 742 HAVE_SSE2_TRUE
Chris@82 743 CHECK_PL_OPTS
Chris@82 744 PRECISION
Chris@82 745 QUAD_FALSE
Chris@82 746 QUAD_TRUE
Chris@82 747 LDOUBLE_FALSE
Chris@82 748 LDOUBLE_TRUE
Chris@82 749 SINGLE_FALSE
Chris@82 750 SINGLE_TRUE
Chris@82 751 BUILD_DOC_FALSE
Chris@82 752 BUILD_DOC_TRUE
Chris@82 753 host_os
Chris@82 754 host_vendor
Chris@82 755 host_cpu
Chris@82 756 host
Chris@82 757 build_os
Chris@82 758 build_vendor
Chris@82 759 build_cpu
Chris@82 760 build
Chris@82 761 SHARED_VERSION_INFO
Chris@82 762 MAINT
Chris@82 763 MAINTAINER_MODE_FALSE
Chris@82 764 MAINTAINER_MODE_TRUE
Chris@82 765 AM_BACKSLASH
Chris@82 766 AM_DEFAULT_VERBOSITY
Chris@82 767 AM_DEFAULT_V
Chris@82 768 AM_V
Chris@82 769 am__untar
Chris@82 770 am__tar
Chris@82 771 AMTAR
Chris@82 772 am__leading_dot
Chris@82 773 SET_MAKE
Chris@82 774 AWK
Chris@82 775 mkdir_p
Chris@82 776 MKDIR_P
Chris@82 777 INSTALL_STRIP_PROGRAM
Chris@82 778 STRIP
Chris@82 779 install_sh
Chris@82 780 MAKEINFO
Chris@82 781 AUTOHEADER
Chris@82 782 AUTOMAKE
Chris@82 783 AUTOCONF
Chris@82 784 ACLOCAL
Chris@82 785 VERSION
Chris@82 786 PACKAGE
Chris@82 787 CYGPATH_W
Chris@82 788 am__isrc
Chris@82 789 INSTALL_DATA
Chris@82 790 INSTALL_SCRIPT
Chris@82 791 INSTALL_PROGRAM
Chris@82 792 target_alias
Chris@82 793 host_alias
Chris@82 794 build_alias
Chris@82 795 LIBS
Chris@82 796 ECHO_T
Chris@82 797 ECHO_N
Chris@82 798 ECHO_C
Chris@82 799 DEFS
Chris@82 800 mandir
Chris@82 801 localedir
Chris@82 802 libdir
Chris@82 803 psdir
Chris@82 804 pdfdir
Chris@82 805 dvidir
Chris@82 806 htmldir
Chris@82 807 infodir
Chris@82 808 docdir
Chris@82 809 oldincludedir
Chris@82 810 includedir
Chris@82 811 runstatedir
Chris@82 812 localstatedir
Chris@82 813 sharedstatedir
Chris@82 814 sysconfdir
Chris@82 815 datadir
Chris@82 816 datarootdir
Chris@82 817 libexecdir
Chris@82 818 sbindir
Chris@82 819 bindir
Chris@82 820 program_transform_name
Chris@82 821 prefix
Chris@82 822 exec_prefix
Chris@82 823 PACKAGE_URL
Chris@82 824 PACKAGE_BUGREPORT
Chris@82 825 PACKAGE_STRING
Chris@82 826 PACKAGE_VERSION
Chris@82 827 PACKAGE_TARNAME
Chris@82 828 PACKAGE_NAME
Chris@82 829 PATH_SEPARATOR
Chris@82 830 SHELL'
Chris@82 831 ac_subst_files=''
Chris@82 832 ac_user_opts='
Chris@82 833 enable_option_checking
Chris@82 834 enable_silent_rules
Chris@82 835 enable_maintainer_mode
Chris@82 836 enable_shared
Chris@82 837 enable_debug
Chris@82 838 enable_doc
Chris@82 839 enable_random_estimator
Chris@82 840 enable_alloca
Chris@82 841 enable_single
Chris@82 842 enable_float
Chris@82 843 enable_long_double
Chris@82 844 enable_quad_precision
Chris@82 845 enable_sse
Chris@82 846 enable_sse2
Chris@82 847 enable_avx
Chris@82 848 enable_avx2
Chris@82 849 enable_avx512
Chris@82 850 enable_avx_128_fma
Chris@82 851 enable_kcvi
Chris@82 852 enable_altivec
Chris@82 853 enable_vsx
Chris@82 854 enable_neon
Chris@82 855 enable_armv8_pmccntr_el0
Chris@82 856 enable_armv8_cntvct_el0
Chris@82 857 enable_armv7a_cntvct
Chris@82 858 enable_armv7a_pmccntr
Chris@82 859 enable_generic_simd128
Chris@82 860 enable_generic_simd256
Chris@82 861 with_slow_timer
Chris@82 862 enable_mips_zbus_timer
Chris@82 863 with_our_malloc
Chris@82 864 with_our_malloc16
Chris@82 865 with_windows_f77_mangling
Chris@82 866 with_incoming_stack_boundary
Chris@82 867 enable_fma
Chris@82 868 enable_dependency_tracking
Chris@82 869 enable_static
Chris@82 870 with_pic
Chris@82 871 enable_fast_install
Chris@82 872 with_aix_soname
Chris@82 873 with_gnu_ld
Chris@82 874 with_sysroot
Chris@82 875 enable_libtool_lock
Chris@82 876 enable_mpi
Chris@82 877 enable_fortran
Chris@82 878 with_g77_wrappers
Chris@82 879 enable_openmp
Chris@82 880 enable_threads
Chris@82 881 with_combined_threads
Chris@82 882 '
Chris@82 883 ac_precious_vars='build_alias
Chris@82 884 host_alias
Chris@82 885 target_alias
Chris@82 886 CC
Chris@82 887 CFLAGS
Chris@82 888 LDFLAGS
Chris@82 889 LIBS
Chris@82 890 CPPFLAGS
Chris@82 891 LT_SYS_LIBRARY_PATH
Chris@82 892 CPP
Chris@82 893 MPICC
Chris@82 894 F77
Chris@82 895 FFLAGS'
Chris@82 896
Chris@82 897
Chris@82 898 # Initialize some variables set by options.
Chris@82 899 ac_init_help=
Chris@82 900 ac_init_version=false
Chris@82 901 ac_unrecognized_opts=
Chris@82 902 ac_unrecognized_sep=
Chris@82 903 # The variables have the same names as the options, with
Chris@82 904 # dashes changed to underlines.
Chris@82 905 cache_file=/dev/null
Chris@82 906 exec_prefix=NONE
Chris@82 907 no_create=
Chris@82 908 no_recursion=
Chris@82 909 prefix=NONE
Chris@82 910 program_prefix=NONE
Chris@82 911 program_suffix=NONE
Chris@82 912 program_transform_name=s,x,x,
Chris@82 913 silent=
Chris@82 914 site=
Chris@82 915 srcdir=
Chris@82 916 verbose=
Chris@82 917 x_includes=NONE
Chris@82 918 x_libraries=NONE
Chris@82 919
Chris@82 920 # Installation directory options.
Chris@82 921 # These are left unexpanded so users can "make install exec_prefix=/foo"
Chris@82 922 # and all the variables that are supposed to be based on exec_prefix
Chris@82 923 # by default will actually change.
Chris@82 924 # Use braces instead of parens because sh, perl, etc. also accept them.
Chris@82 925 # (The list follows the same order as the GNU Coding Standards.)
Chris@82 926 bindir='${exec_prefix}/bin'
Chris@82 927 sbindir='${exec_prefix}/sbin'
Chris@82 928 libexecdir='${exec_prefix}/libexec'
Chris@82 929 datarootdir='${prefix}/share'
Chris@82 930 datadir='${datarootdir}'
Chris@82 931 sysconfdir='${prefix}/etc'
Chris@82 932 sharedstatedir='${prefix}/com'
Chris@82 933 localstatedir='${prefix}/var'
Chris@82 934 runstatedir='${localstatedir}/run'
Chris@82 935 includedir='${prefix}/include'
Chris@82 936 oldincludedir='/usr/include'
Chris@82 937 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
Chris@82 938 infodir='${datarootdir}/info'
Chris@82 939 htmldir='${docdir}'
Chris@82 940 dvidir='${docdir}'
Chris@82 941 pdfdir='${docdir}'
Chris@82 942 psdir='${docdir}'
Chris@82 943 libdir='${exec_prefix}/lib'
Chris@82 944 localedir='${datarootdir}/locale'
Chris@82 945 mandir='${datarootdir}/man'
Chris@82 946
Chris@82 947 ac_prev=
Chris@82 948 ac_dashdash=
Chris@82 949 for ac_option
Chris@82 950 do
Chris@82 951 # If the previous option needs an argument, assign it.
Chris@82 952 if test -n "$ac_prev"; then
Chris@82 953 eval $ac_prev=\$ac_option
Chris@82 954 ac_prev=
Chris@82 955 continue
Chris@82 956 fi
Chris@82 957
Chris@82 958 case $ac_option in
Chris@82 959 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
Chris@82 960 *=) ac_optarg= ;;
Chris@82 961 *) ac_optarg=yes ;;
Chris@82 962 esac
Chris@82 963
Chris@82 964 # Accept the important Cygnus configure options, so we can diagnose typos.
Chris@82 965
Chris@82 966 case $ac_dashdash$ac_option in
Chris@82 967 --)
Chris@82 968 ac_dashdash=yes ;;
Chris@82 969
Chris@82 970 -bindir | --bindir | --bindi | --bind | --bin | --bi)
Chris@82 971 ac_prev=bindir ;;
Chris@82 972 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Chris@82 973 bindir=$ac_optarg ;;
Chris@82 974
Chris@82 975 -build | --build | --buil | --bui | --bu)
Chris@82 976 ac_prev=build_alias ;;
Chris@82 977 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Chris@82 978 build_alias=$ac_optarg ;;
Chris@82 979
Chris@82 980 -cache-file | --cache-file | --cache-fil | --cache-fi \
Chris@82 981 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
Chris@82 982 ac_prev=cache_file ;;
Chris@82 983 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
Chris@82 984 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Chris@82 985 cache_file=$ac_optarg ;;
Chris@82 986
Chris@82 987 --config-cache | -C)
Chris@82 988 cache_file=config.cache ;;
Chris@82 989
Chris@82 990 -datadir | --datadir | --datadi | --datad)
Chris@82 991 ac_prev=datadir ;;
Chris@82 992 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Chris@82 993 datadir=$ac_optarg ;;
Chris@82 994
Chris@82 995 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
Chris@82 996 | --dataroo | --dataro | --datar)
Chris@82 997 ac_prev=datarootdir ;;
Chris@82 998 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
Chris@82 999 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
Chris@82 1000 datarootdir=$ac_optarg ;;
Chris@82 1001
Chris@82 1002 -disable-* | --disable-*)
Chris@82 1003 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Chris@82 1004 # Reject names that are not valid shell variable names.
Chris@82 1005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@82 1006 as_fn_error $? "invalid feature name: $ac_useropt"
Chris@82 1007 ac_useropt_orig=$ac_useropt
Chris@82 1008 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@82 1009 case $ac_user_opts in
Chris@82 1010 *"
Chris@82 1011 "enable_$ac_useropt"
Chris@82 1012 "*) ;;
Chris@82 1013 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
Chris@82 1014 ac_unrecognized_sep=', ';;
Chris@82 1015 esac
Chris@82 1016 eval enable_$ac_useropt=no ;;
Chris@82 1017
Chris@82 1018 -docdir | --docdir | --docdi | --doc | --do)
Chris@82 1019 ac_prev=docdir ;;
Chris@82 1020 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
Chris@82 1021 docdir=$ac_optarg ;;
Chris@82 1022
Chris@82 1023 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
Chris@82 1024 ac_prev=dvidir ;;
Chris@82 1025 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
Chris@82 1026 dvidir=$ac_optarg ;;
Chris@82 1027
Chris@82 1028 -enable-* | --enable-*)
Chris@82 1029 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Chris@82 1030 # Reject names that are not valid shell variable names.
Chris@82 1031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@82 1032 as_fn_error $? "invalid feature name: $ac_useropt"
Chris@82 1033 ac_useropt_orig=$ac_useropt
Chris@82 1034 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@82 1035 case $ac_user_opts in
Chris@82 1036 *"
Chris@82 1037 "enable_$ac_useropt"
Chris@82 1038 "*) ;;
Chris@82 1039 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
Chris@82 1040 ac_unrecognized_sep=', ';;
Chris@82 1041 esac
Chris@82 1042 eval enable_$ac_useropt=\$ac_optarg ;;
Chris@82 1043
Chris@82 1044 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
Chris@82 1045 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
Chris@82 1046 | --exec | --exe | --ex)
Chris@82 1047 ac_prev=exec_prefix ;;
Chris@82 1048 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
Chris@82 1049 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
Chris@82 1050 | --exec=* | --exe=* | --ex=*)
Chris@82 1051 exec_prefix=$ac_optarg ;;
Chris@82 1052
Chris@82 1053 -gas | --gas | --ga | --g)
Chris@82 1054 # Obsolete; use --with-gas.
Chris@82 1055 with_gas=yes ;;
Chris@82 1056
Chris@82 1057 -help | --help | --hel | --he | -h)
Chris@82 1058 ac_init_help=long ;;
Chris@82 1059 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
Chris@82 1060 ac_init_help=recursive ;;
Chris@82 1061 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
Chris@82 1062 ac_init_help=short ;;
Chris@82 1063
Chris@82 1064 -host | --host | --hos | --ho)
Chris@82 1065 ac_prev=host_alias ;;
Chris@82 1066 -host=* | --host=* | --hos=* | --ho=*)
Chris@82 1067 host_alias=$ac_optarg ;;
Chris@82 1068
Chris@82 1069 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
Chris@82 1070 ac_prev=htmldir ;;
Chris@82 1071 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
Chris@82 1072 | --ht=*)
Chris@82 1073 htmldir=$ac_optarg ;;
Chris@82 1074
Chris@82 1075 -includedir | --includedir | --includedi | --included | --include \
Chris@82 1076 | --includ | --inclu | --incl | --inc)
Chris@82 1077 ac_prev=includedir ;;
Chris@82 1078 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
Chris@82 1079 | --includ=* | --inclu=* | --incl=* | --inc=*)
Chris@82 1080 includedir=$ac_optarg ;;
Chris@82 1081
Chris@82 1082 -infodir | --infodir | --infodi | --infod | --info | --inf)
Chris@82 1083 ac_prev=infodir ;;
Chris@82 1084 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Chris@82 1085 infodir=$ac_optarg ;;
Chris@82 1086
Chris@82 1087 -libdir | --libdir | --libdi | --libd)
Chris@82 1088 ac_prev=libdir ;;
Chris@82 1089 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Chris@82 1090 libdir=$ac_optarg ;;
Chris@82 1091
Chris@82 1092 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
Chris@82 1093 | --libexe | --libex | --libe)
Chris@82 1094 ac_prev=libexecdir ;;
Chris@82 1095 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
Chris@82 1096 | --libexe=* | --libex=* | --libe=*)
Chris@82 1097 libexecdir=$ac_optarg ;;
Chris@82 1098
Chris@82 1099 -localedir | --localedir | --localedi | --localed | --locale)
Chris@82 1100 ac_prev=localedir ;;
Chris@82 1101 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
Chris@82 1102 localedir=$ac_optarg ;;
Chris@82 1103
Chris@82 1104 -localstatedir | --localstatedir | --localstatedi | --localstated \
Chris@82 1105 | --localstate | --localstat | --localsta | --localst | --locals)
Chris@82 1106 ac_prev=localstatedir ;;
Chris@82 1107 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Chris@82 1108 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Chris@82 1109 localstatedir=$ac_optarg ;;
Chris@82 1110
Chris@82 1111 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
Chris@82 1112 ac_prev=mandir ;;
Chris@82 1113 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Chris@82 1114 mandir=$ac_optarg ;;
Chris@82 1115
Chris@82 1116 -nfp | --nfp | --nf)
Chris@82 1117 # Obsolete; use --without-fp.
Chris@82 1118 with_fp=no ;;
Chris@82 1119
Chris@82 1120 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Chris@82 1121 | --no-cr | --no-c | -n)
Chris@82 1122 no_create=yes ;;
Chris@82 1123
Chris@82 1124 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
Chris@82 1125 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
Chris@82 1126 no_recursion=yes ;;
Chris@82 1127
Chris@82 1128 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
Chris@82 1129 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
Chris@82 1130 | --oldin | --oldi | --old | --ol | --o)
Chris@82 1131 ac_prev=oldincludedir ;;
Chris@82 1132 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
Chris@82 1133 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
Chris@82 1134 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Chris@82 1135 oldincludedir=$ac_optarg ;;
Chris@82 1136
Chris@82 1137 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
Chris@82 1138 ac_prev=prefix ;;
Chris@82 1139 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Chris@82 1140 prefix=$ac_optarg ;;
Chris@82 1141
Chris@82 1142 -program-prefix | --program-prefix | --program-prefi | --program-pref \
Chris@82 1143 | --program-pre | --program-pr | --program-p)
Chris@82 1144 ac_prev=program_prefix ;;
Chris@82 1145 -program-prefix=* | --program-prefix=* | --program-prefi=* \
Chris@82 1146 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Chris@82 1147 program_prefix=$ac_optarg ;;
Chris@82 1148
Chris@82 1149 -program-suffix | --program-suffix | --program-suffi | --program-suff \
Chris@82 1150 | --program-suf | --program-su | --program-s)
Chris@82 1151 ac_prev=program_suffix ;;
Chris@82 1152 -program-suffix=* | --program-suffix=* | --program-suffi=* \
Chris@82 1153 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Chris@82 1154 program_suffix=$ac_optarg ;;
Chris@82 1155
Chris@82 1156 -program-transform-name | --program-transform-name \
Chris@82 1157 | --program-transform-nam | --program-transform-na \
Chris@82 1158 | --program-transform-n | --program-transform- \
Chris@82 1159 | --program-transform | --program-transfor \
Chris@82 1160 | --program-transfo | --program-transf \
Chris@82 1161 | --program-trans | --program-tran \
Chris@82 1162 | --progr-tra | --program-tr | --program-t)
Chris@82 1163 ac_prev=program_transform_name ;;
Chris@82 1164 -program-transform-name=* | --program-transform-name=* \
Chris@82 1165 | --program-transform-nam=* | --program-transform-na=* \
Chris@82 1166 | --program-transform-n=* | --program-transform-=* \
Chris@82 1167 | --program-transform=* | --program-transfor=* \
Chris@82 1168 | --program-transfo=* | --program-transf=* \
Chris@82 1169 | --program-trans=* | --program-tran=* \
Chris@82 1170 | --progr-tra=* | --program-tr=* | --program-t=*)
Chris@82 1171 program_transform_name=$ac_optarg ;;
Chris@82 1172
Chris@82 1173 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
Chris@82 1174 ac_prev=pdfdir ;;
Chris@82 1175 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
Chris@82 1176 pdfdir=$ac_optarg ;;
Chris@82 1177
Chris@82 1178 -psdir | --psdir | --psdi | --psd | --ps)
Chris@82 1179 ac_prev=psdir ;;
Chris@82 1180 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
Chris@82 1181 psdir=$ac_optarg ;;
Chris@82 1182
Chris@82 1183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@82 1184 | -silent | --silent | --silen | --sile | --sil)
Chris@82 1185 silent=yes ;;
Chris@82 1186
Chris@82 1187 -runstatedir | --runstatedir | --runstatedi | --runstated \
Chris@82 1188 | --runstate | --runstat | --runsta | --runst | --runs \
Chris@82 1189 | --run | --ru | --r)
Chris@82 1190 ac_prev=runstatedir ;;
Chris@82 1191 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
Chris@82 1192 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
Chris@82 1193 | --run=* | --ru=* | --r=*)
Chris@82 1194 runstatedir=$ac_optarg ;;
Chris@82 1195
Chris@82 1196 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
Chris@82 1197 ac_prev=sbindir ;;
Chris@82 1198 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
Chris@82 1199 | --sbi=* | --sb=*)
Chris@82 1200 sbindir=$ac_optarg ;;
Chris@82 1201
Chris@82 1202 -sharedstatedir | --sharedstatedir | --sharedstatedi \
Chris@82 1203 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
Chris@82 1204 | --sharedst | --shareds | --shared | --share | --shar \
Chris@82 1205 | --sha | --sh)
Chris@82 1206 ac_prev=sharedstatedir ;;
Chris@82 1207 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
Chris@82 1208 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
Chris@82 1209 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
Chris@82 1210 | --sha=* | --sh=*)
Chris@82 1211 sharedstatedir=$ac_optarg ;;
Chris@82 1212
Chris@82 1213 -site | --site | --sit)
Chris@82 1214 ac_prev=site ;;
Chris@82 1215 -site=* | --site=* | --sit=*)
Chris@82 1216 site=$ac_optarg ;;
Chris@82 1217
Chris@82 1218 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
Chris@82 1219 ac_prev=srcdir ;;
Chris@82 1220 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Chris@82 1221 srcdir=$ac_optarg ;;
Chris@82 1222
Chris@82 1223 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
Chris@82 1224 | --syscon | --sysco | --sysc | --sys | --sy)
Chris@82 1225 ac_prev=sysconfdir ;;
Chris@82 1226 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
Chris@82 1227 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Chris@82 1228 sysconfdir=$ac_optarg ;;
Chris@82 1229
Chris@82 1230 -target | --target | --targe | --targ | --tar | --ta | --t)
Chris@82 1231 ac_prev=target_alias ;;
Chris@82 1232 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Chris@82 1233 target_alias=$ac_optarg ;;
Chris@82 1234
Chris@82 1235 -v | -verbose | --verbose | --verbos | --verbo | --verb)
Chris@82 1236 verbose=yes ;;
Chris@82 1237
Chris@82 1238 -version | --version | --versio | --versi | --vers | -V)
Chris@82 1239 ac_init_version=: ;;
Chris@82 1240
Chris@82 1241 -with-* | --with-*)
Chris@82 1242 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Chris@82 1243 # Reject names that are not valid shell variable names.
Chris@82 1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@82 1245 as_fn_error $? "invalid package name: $ac_useropt"
Chris@82 1246 ac_useropt_orig=$ac_useropt
Chris@82 1247 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@82 1248 case $ac_user_opts in
Chris@82 1249 *"
Chris@82 1250 "with_$ac_useropt"
Chris@82 1251 "*) ;;
Chris@82 1252 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
Chris@82 1253 ac_unrecognized_sep=', ';;
Chris@82 1254 esac
Chris@82 1255 eval with_$ac_useropt=\$ac_optarg ;;
Chris@82 1256
Chris@82 1257 -without-* | --without-*)
Chris@82 1258 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Chris@82 1259 # Reject names that are not valid shell variable names.
Chris@82 1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@82 1261 as_fn_error $? "invalid package name: $ac_useropt"
Chris@82 1262 ac_useropt_orig=$ac_useropt
Chris@82 1263 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@82 1264 case $ac_user_opts in
Chris@82 1265 *"
Chris@82 1266 "with_$ac_useropt"
Chris@82 1267 "*) ;;
Chris@82 1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
Chris@82 1269 ac_unrecognized_sep=', ';;
Chris@82 1270 esac
Chris@82 1271 eval with_$ac_useropt=no ;;
Chris@82 1272
Chris@82 1273 --x)
Chris@82 1274 # Obsolete; use --with-x.
Chris@82 1275 with_x=yes ;;
Chris@82 1276
Chris@82 1277 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
Chris@82 1278 | --x-incl | --x-inc | --x-in | --x-i)
Chris@82 1279 ac_prev=x_includes ;;
Chris@82 1280 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
Chris@82 1281 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Chris@82 1282 x_includes=$ac_optarg ;;
Chris@82 1283
Chris@82 1284 -x-libraries | --x-libraries | --x-librarie | --x-librari \
Chris@82 1285 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
Chris@82 1286 ac_prev=x_libraries ;;
Chris@82 1287 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
Chris@82 1288 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Chris@82 1289 x_libraries=$ac_optarg ;;
Chris@82 1290
Chris@82 1291 -*) as_fn_error $? "unrecognized option: \`$ac_option'
Chris@82 1292 Try \`$0 --help' for more information"
Chris@82 1293 ;;
Chris@82 1294
Chris@82 1295 *=*)
Chris@82 1296 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
Chris@82 1297 # Reject names that are not valid shell variable names.
Chris@82 1298 case $ac_envvar in #(
Chris@82 1299 '' | [0-9]* | *[!_$as_cr_alnum]* )
Chris@82 1300 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Chris@82 1301 esac
Chris@82 1302 eval $ac_envvar=\$ac_optarg
Chris@82 1303 export $ac_envvar ;;
Chris@82 1304
Chris@82 1305 *)
Chris@82 1306 # FIXME: should be removed in autoconf 3.0.
Chris@82 1307 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Chris@82 1308 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Chris@82 1309 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Chris@82 1310 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Chris@82 1311 ;;
Chris@82 1312
Chris@82 1313 esac
Chris@82 1314 done
Chris@82 1315
Chris@82 1316 if test -n "$ac_prev"; then
Chris@82 1317 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Chris@82 1318 as_fn_error $? "missing argument to $ac_option"
Chris@82 1319 fi
Chris@82 1320
Chris@82 1321 if test -n "$ac_unrecognized_opts"; then
Chris@82 1322 case $enable_option_checking in
Chris@82 1323 no) ;;
Chris@82 1324 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Chris@82 1325 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Chris@82 1326 esac
Chris@82 1327 fi
Chris@82 1328
Chris@82 1329 # Check all directory arguments for consistency.
Chris@82 1330 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
Chris@82 1331 datadir sysconfdir sharedstatedir localstatedir includedir \
Chris@82 1332 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Chris@82 1333 libdir localedir mandir runstatedir
Chris@82 1334 do
Chris@82 1335 eval ac_val=\$$ac_var
Chris@82 1336 # Remove trailing slashes.
Chris@82 1337 case $ac_val in
Chris@82 1338 */ )
Chris@82 1339 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
Chris@82 1340 eval $ac_var=\$ac_val;;
Chris@82 1341 esac
Chris@82 1342 # Be sure to have absolute directory names.
Chris@82 1343 case $ac_val in
Chris@82 1344 [\\/$]* | ?:[\\/]* ) continue;;
Chris@82 1345 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Chris@82 1346 esac
Chris@82 1347 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Chris@82 1348 done
Chris@82 1349
Chris@82 1350 # There might be people who depend on the old broken behavior: `$host'
Chris@82 1351 # used to hold the argument of --host etc.
Chris@82 1352 # FIXME: To remove some day.
Chris@82 1353 build=$build_alias
Chris@82 1354 host=$host_alias
Chris@82 1355 target=$target_alias
Chris@82 1356
Chris@82 1357 # FIXME: To remove some day.
Chris@82 1358 if test "x$host_alias" != x; then
Chris@82 1359 if test "x$build_alias" = x; then
Chris@82 1360 cross_compiling=maybe
Chris@82 1361 elif test "x$build_alias" != "x$host_alias"; then
Chris@82 1362 cross_compiling=yes
Chris@82 1363 fi
Chris@82 1364 fi
Chris@82 1365
Chris@82 1366 ac_tool_prefix=
Chris@82 1367 test -n "$host_alias" && ac_tool_prefix=$host_alias-
Chris@82 1368
Chris@82 1369 test "$silent" = yes && exec 6>/dev/null
Chris@82 1370
Chris@82 1371
Chris@82 1372 ac_pwd=`pwd` && test -n "$ac_pwd" &&
Chris@82 1373 ac_ls_di=`ls -di .` &&
Chris@82 1374 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Chris@82 1375 as_fn_error $? "working directory cannot be determined"
Chris@82 1376 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Chris@82 1377 as_fn_error $? "pwd does not report name of working directory"
Chris@82 1378
Chris@82 1379
Chris@82 1380 # Find the source files, if location was not specified.
Chris@82 1381 if test -z "$srcdir"; then
Chris@82 1382 ac_srcdir_defaulted=yes
Chris@82 1383 # Try the directory containing this script, then the parent directory.
Chris@82 1384 ac_confdir=`$as_dirname -- "$as_myself" ||
Chris@82 1385 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@82 1386 X"$as_myself" : 'X\(//\)[^/]' \| \
Chris@82 1387 X"$as_myself" : 'X\(//\)$' \| \
Chris@82 1388 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
Chris@82 1389 $as_echo X"$as_myself" |
Chris@82 1390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@82 1391 s//\1/
Chris@82 1392 q
Chris@82 1393 }
Chris@82 1394 /^X\(\/\/\)[^/].*/{
Chris@82 1395 s//\1/
Chris@82 1396 q
Chris@82 1397 }
Chris@82 1398 /^X\(\/\/\)$/{
Chris@82 1399 s//\1/
Chris@82 1400 q
Chris@82 1401 }
Chris@82 1402 /^X\(\/\).*/{
Chris@82 1403 s//\1/
Chris@82 1404 q
Chris@82 1405 }
Chris@82 1406 s/.*/./; q'`
Chris@82 1407 srcdir=$ac_confdir
Chris@82 1408 if test ! -r "$srcdir/$ac_unique_file"; then
Chris@82 1409 srcdir=..
Chris@82 1410 fi
Chris@82 1411 else
Chris@82 1412 ac_srcdir_defaulted=no
Chris@82 1413 fi
Chris@82 1414 if test ! -r "$srcdir/$ac_unique_file"; then
Chris@82 1415 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Chris@82 1416 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Chris@82 1417 fi
Chris@82 1418 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
Chris@82 1419 ac_abs_confdir=`(
Chris@82 1420 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Chris@82 1421 pwd)`
Chris@82 1422 # When building in place, set srcdir=.
Chris@82 1423 if test "$ac_abs_confdir" = "$ac_pwd"; then
Chris@82 1424 srcdir=.
Chris@82 1425 fi
Chris@82 1426 # Remove unnecessary trailing slashes from srcdir.
Chris@82 1427 # Double slashes in file names in object file debugging info
Chris@82 1428 # mess up M-x gdb in Emacs.
Chris@82 1429 case $srcdir in
Chris@82 1430 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
Chris@82 1431 esac
Chris@82 1432 for ac_var in $ac_precious_vars; do
Chris@82 1433 eval ac_env_${ac_var}_set=\${${ac_var}+set}
Chris@82 1434 eval ac_env_${ac_var}_value=\$${ac_var}
Chris@82 1435 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
Chris@82 1436 eval ac_cv_env_${ac_var}_value=\$${ac_var}
Chris@82 1437 done
Chris@82 1438
Chris@82 1439 #
Chris@82 1440 # Report the --help message.
Chris@82 1441 #
Chris@82 1442 if test "$ac_init_help" = "long"; then
Chris@82 1443 # Omit some internal or obsolete options to make the list less imposing.
Chris@82 1444 # This message is too long to be a string in the A/UX 3.1 sh.
Chris@82 1445 cat <<_ACEOF
Chris@82 1446 \`configure' configures fftw 3.3.8 to adapt to many kinds of systems.
Chris@82 1447
Chris@82 1448 Usage: $0 [OPTION]... [VAR=VALUE]...
Chris@82 1449
Chris@82 1450 To assign environment variables (e.g., CC, CFLAGS...), specify them as
Chris@82 1451 VAR=VALUE. See below for descriptions of some of the useful variables.
Chris@82 1452
Chris@82 1453 Defaults for the options are specified in brackets.
Chris@82 1454
Chris@82 1455 Configuration:
Chris@82 1456 -h, --help display this help and exit
Chris@82 1457 --help=short display options specific to this package
Chris@82 1458 --help=recursive display the short help of all the included packages
Chris@82 1459 -V, --version display version information and exit
Chris@82 1460 -q, --quiet, --silent do not print \`checking ...' messages
Chris@82 1461 --cache-file=FILE cache test results in FILE [disabled]
Chris@82 1462 -C, --config-cache alias for \`--cache-file=config.cache'
Chris@82 1463 -n, --no-create do not create output files
Chris@82 1464 --srcdir=DIR find the sources in DIR [configure dir or \`..']
Chris@82 1465
Chris@82 1466 Installation directories:
Chris@82 1467 --prefix=PREFIX install architecture-independent files in PREFIX
Chris@82 1468 [$ac_default_prefix]
Chris@82 1469 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Chris@82 1470 [PREFIX]
Chris@82 1471
Chris@82 1472 By default, \`make install' will install all the files in
Chris@82 1473 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
Chris@82 1474 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
Chris@82 1475 for instance \`--prefix=\$HOME'.
Chris@82 1476
Chris@82 1477 For better control, use the options below.
Chris@82 1478
Chris@82 1479 Fine tuning of the installation directories:
Chris@82 1480 --bindir=DIR user executables [EPREFIX/bin]
Chris@82 1481 --sbindir=DIR system admin executables [EPREFIX/sbin]
Chris@82 1482 --libexecdir=DIR program executables [EPREFIX/libexec]
Chris@82 1483 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
Chris@82 1484 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
Chris@82 1485 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Chris@82 1486 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
Chris@82 1487 --libdir=DIR object code libraries [EPREFIX/lib]
Chris@82 1488 --includedir=DIR C header files [PREFIX/include]
Chris@82 1489 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Chris@82 1490 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
Chris@82 1491 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
Chris@82 1492 --infodir=DIR info documentation [DATAROOTDIR/info]
Chris@82 1493 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
Chris@82 1494 --mandir=DIR man documentation [DATAROOTDIR/man]
Chris@82 1495 --docdir=DIR documentation root [DATAROOTDIR/doc/fftw]
Chris@82 1496 --htmldir=DIR html documentation [DOCDIR]
Chris@82 1497 --dvidir=DIR dvi documentation [DOCDIR]
Chris@82 1498 --pdfdir=DIR pdf documentation [DOCDIR]
Chris@82 1499 --psdir=DIR ps documentation [DOCDIR]
Chris@82 1500 _ACEOF
Chris@82 1501
Chris@82 1502 cat <<\_ACEOF
Chris@82 1503
Chris@82 1504 Program names:
Chris@82 1505 --program-prefix=PREFIX prepend PREFIX to installed program names
Chris@82 1506 --program-suffix=SUFFIX append SUFFIX to installed program names
Chris@82 1507 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
Chris@82 1508
Chris@82 1509 System types:
Chris@82 1510 --build=BUILD configure for building on BUILD [guessed]
Chris@82 1511 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Chris@82 1512 _ACEOF
Chris@82 1513 fi
Chris@82 1514
Chris@82 1515 if test -n "$ac_init_help"; then
Chris@82 1516 case $ac_init_help in
Chris@82 1517 short | recursive ) echo "Configuration of fftw 3.3.8:";;
Chris@82 1518 esac
Chris@82 1519 cat <<\_ACEOF
Chris@82 1520
Chris@82 1521 Optional Features:
Chris@82 1522 --disable-option-checking ignore unrecognized --enable/--with options
Chris@82 1523 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
Chris@82 1524 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Chris@82 1525 --enable-silent-rules less verbose build output (undo: "make V=1")
Chris@82 1526 --disable-silent-rules verbose build output (undo: "make V=0")
Chris@82 1527 --enable-maintainer-mode
Chris@82 1528 enable make rules and dependencies not useful (and
Chris@82 1529 sometimes confusing) to the casual installer
Chris@82 1530 --enable-shared[=PKGS] build shared libraries [default=no]
Chris@82 1531 --enable-debug compile fftw with extra runtime checks for debugging
Chris@82 1532 --disable-doc disable building the documentation
Chris@82 1533 --enable-random-estimator
Chris@82 1534 enable pseudorandom estimator (debugging hack)
Chris@82 1535 --disable-alloca disable use of the alloca() function (may be broken
Chris@82 1536 on mingw64)
Chris@82 1537 --enable-single compile fftw in single precision
Chris@82 1538 --enable-float synonym for --enable-single
Chris@82 1539 --enable-long-double compile fftw in long-double precision
Chris@82 1540 --enable-quad-precision compile fftw in quadruple precision if available
Chris@82 1541 --enable-sse enable SSE optimizations
Chris@82 1542 --enable-sse2 enable SSE/SSE2 optimizations
Chris@82 1543 --enable-avx enable AVX optimizations
Chris@82 1544 --enable-avx2 enable AVX2 optimizations
Chris@82 1545 --enable-avx512 enable AVX512 optimizations
Chris@82 1546 --enable-avx-128-fma enable AVX128/FMA optimizations
Chris@82 1547 --enable-kcvi enable Knights Corner vector instructions
Chris@82 1548 optimizations
Chris@82 1549 --enable-altivec enable Altivec optimizations
Chris@82 1550 --enable-vsx enable IBM VSX optimizations
Chris@82 1551 --enable-neon enable ARM NEON optimizations
Chris@82 1552 --enable-armv8-pmccntr-el0
Chris@82 1553 enable the cycle counter on ARMv8 via the
Chris@82 1554 PMCCNTR_EL0 register (see README-perfcounters for
Chris@82 1555 details and mandatory instructions)
Chris@82 1556 --enable-armv8-cntvct-el0
Chris@82 1557 enable the cycle counter on ARMv8 via the CNTVCT_EL0
Chris@82 1558 register (see README-perfcounters for details and
Chris@82 1559 mandatory instructions)
Chris@82 1560 --enable-armv7a-cntvct enable the cycle counter on Armv7a via the CNTVCT
Chris@82 1561 register (see README-perfcounters for details and
Chris@82 1562 mandatory instructions)
Chris@82 1563 --enable-armv7a-pmccntr enable the cycle counter on Armv7a via the PMCCNTR
Chris@82 1564 register (see README-perfcounters for details and
Chris@82 1565 mandatory instructions)
Chris@82 1566 --enable-generic-simd128
Chris@82 1567 enable generic (gcc) 128-bit SIMD optimizations
Chris@82 1568 --enable-generic-simd256
Chris@82 1569 enable generic (gcc) 256-bit SIMD optimizations
Chris@82 1570 --enable-mips-zbus-timer
Chris@82 1571 use MIPS ZBus cycle-counter
Chris@82 1572 --enable-fma enable if the machine architecture "naturally"
Chris@82 1573 prefers fused multiply-add instructions
Chris@82 1574 --enable-dependency-tracking
Chris@82 1575 do not reject slow dependency extractors
Chris@82 1576 --disable-dependency-tracking
Chris@82 1577 speeds up one-time build
Chris@82 1578 --enable-static[=PKGS] build static libraries [default=yes]
Chris@82 1579 --enable-fast-install[=PKGS]
Chris@82 1580 optimize for fast installation [default=yes]
Chris@82 1581 --disable-libtool-lock avoid locking (might break parallel builds)
Chris@82 1582 --enable-mpi compile FFTW MPI library
Chris@82 1583 --disable-fortran don't include Fortran-callable wrappers
Chris@82 1584 --enable-openmp use OpenMP directives for parallelism
Chris@82 1585 --enable-threads compile FFTW SMP threads library
Chris@82 1586
Chris@82 1587 Optional Packages:
Chris@82 1588 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
Chris@82 1589 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Chris@82 1590 --with-slow-timer use low-precision timers (SLOW)
Chris@82 1591 --with-our-malloc use our aligned malloc (helpful for Win32)
Chris@82 1592 --with-our-malloc16 Obsolete alias for --with-our-malloc16
Chris@82 1593 --with-windows-f77-mangling
Chris@82 1594 use common Win32 Fortran interface styles
Chris@82 1595 --with-incoming-stack-boundary=X
Chris@82 1596 Assume that stack is aligned to (1<<X) bytes
Chris@82 1597 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
Chris@82 1598 both]
Chris@82 1599 --with-aix-soname=aix|svr4|both
Chris@82 1600 shared library versioning (aka "SONAME") variant to
Chris@82 1601 provide on AIX, [default=aix].
Chris@82 1602 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Chris@82 1603 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
Chris@82 1604 compiler's sysroot if not specified).
Chris@82 1605 --with-g77-wrappers force inclusion of g77-compatible wrappers in
Chris@82 1606 addition to any other Fortran compiler that is
Chris@82 1607 detected
Chris@82 1608 --with-combined-threads combine threads into main libfftw3
Chris@82 1609
Chris@82 1610 Some influential environment variables:
Chris@82 1611 CC C compiler command
Chris@82 1612 CFLAGS C compiler flags
Chris@82 1613 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
Chris@82 1614 nonstandard directory <lib dir>
Chris@82 1615 LIBS libraries to pass to the linker, e.g. -l<library>
Chris@82 1616 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Chris@82 1617 you have headers in a nonstandard directory <include dir>
Chris@82 1618 LT_SYS_LIBRARY_PATH
Chris@82 1619 User-defined run-time library search path.
Chris@82 1620 CPP C preprocessor
Chris@82 1621 MPICC MPI C compiler command
Chris@82 1622 F77 Fortran 77 compiler command
Chris@82 1623 FFLAGS Fortran 77 compiler flags
Chris@82 1624
Chris@82 1625 Use these variables to override the choices made by `configure' or to help
Chris@82 1626 it to find libraries and programs with nonstandard names/locations.
Chris@82 1627
Chris@82 1628 Report bugs to <fftw@fftw.org>.
Chris@82 1629 _ACEOF
Chris@82 1630 ac_status=$?
Chris@82 1631 fi
Chris@82 1632
Chris@82 1633 if test "$ac_init_help" = "recursive"; then
Chris@82 1634 # If there are subdirs, report their specific --help.
Chris@82 1635 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Chris@82 1636 test -d "$ac_dir" ||
Chris@82 1637 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
Chris@82 1638 continue
Chris@82 1639 ac_builddir=.
Chris@82 1640
Chris@82 1641 case "$ac_dir" in
Chris@82 1642 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@82 1643 *)
Chris@82 1644 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Chris@82 1645 # A ".." for each directory in $ac_dir_suffix.
Chris@82 1646 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Chris@82 1647 case $ac_top_builddir_sub in
Chris@82 1648 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@82 1649 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
Chris@82 1650 esac ;;
Chris@82 1651 esac
Chris@82 1652 ac_abs_top_builddir=$ac_pwd
Chris@82 1653 ac_abs_builddir=$ac_pwd$ac_dir_suffix
Chris@82 1654 # for backward compatibility:
Chris@82 1655 ac_top_builddir=$ac_top_build_prefix
Chris@82 1656
Chris@82 1657 case $srcdir in
Chris@82 1658 .) # We are building in place.
Chris@82 1659 ac_srcdir=.
Chris@82 1660 ac_top_srcdir=$ac_top_builddir_sub
Chris@82 1661 ac_abs_top_srcdir=$ac_pwd ;;
Chris@82 1662 [\\/]* | ?:[\\/]* ) # Absolute name.
Chris@82 1663 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@82 1664 ac_top_srcdir=$srcdir
Chris@82 1665 ac_abs_top_srcdir=$srcdir ;;
Chris@82 1666 *) # Relative name.
Chris@82 1667 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
Chris@82 1668 ac_top_srcdir=$ac_top_build_prefix$srcdir
Chris@82 1669 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Chris@82 1670 esac
Chris@82 1671 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Chris@82 1672
Chris@82 1673 cd "$ac_dir" || { ac_status=$?; continue; }
Chris@82 1674 # Check for guested configure.
Chris@82 1675 if test -f "$ac_srcdir/configure.gnu"; then
Chris@82 1676 echo &&
Chris@82 1677 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
Chris@82 1678 elif test -f "$ac_srcdir/configure"; then
Chris@82 1679 echo &&
Chris@82 1680 $SHELL "$ac_srcdir/configure" --help=recursive
Chris@82 1681 else
Chris@82 1682 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Chris@82 1683 fi || ac_status=$?
Chris@82 1684 cd "$ac_pwd" || { ac_status=$?; break; }
Chris@82 1685 done
Chris@82 1686 fi
Chris@82 1687
Chris@82 1688 test -n "$ac_init_help" && exit $ac_status
Chris@82 1689 if $ac_init_version; then
Chris@82 1690 cat <<\_ACEOF
Chris@82 1691 fftw configure 3.3.8
Chris@82 1692 generated by GNU Autoconf 2.69
Chris@82 1693
Chris@82 1694 Copyright (C) 2012 Free Software Foundation, Inc.
Chris@82 1695 This configure script is free software; the Free Software Foundation
Chris@82 1696 gives unlimited permission to copy, distribute and modify it.
Chris@82 1697 _ACEOF
Chris@82 1698 exit
Chris@82 1699 fi
Chris@82 1700
Chris@82 1701 ## ------------------------ ##
Chris@82 1702 ## Autoconf initialization. ##
Chris@82 1703 ## ------------------------ ##
Chris@82 1704
Chris@82 1705 # ac_fn_c_try_compile LINENO
Chris@82 1706 # --------------------------
Chris@82 1707 # Try to compile conftest.$ac_ext, and return whether this succeeded.
Chris@82 1708 ac_fn_c_try_compile ()
Chris@82 1709 {
Chris@82 1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@82 1711 rm -f conftest.$ac_objext
Chris@82 1712 if { { ac_try="$ac_compile"
Chris@82 1713 case "(($ac_try" in
Chris@82 1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@82 1715 *) ac_try_echo=$ac_try;;
Chris@82 1716 esac
Chris@82 1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@82 1718 $as_echo "$ac_try_echo"; } >&5
Chris@82 1719 (eval "$ac_compile") 2>conftest.err
Chris@82 1720 ac_status=$?
Chris@82 1721 if test -s conftest.err; then
Chris@82 1722 grep -v '^ *+' conftest.err >conftest.er1
Chris@82 1723 cat conftest.er1 >&5
Chris@82 1724 mv -f conftest.er1 conftest.err
Chris@82 1725 fi
Chris@82 1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@82 1727 test $ac_status = 0; } && {
Chris@82 1728 test -z "$ac_c_werror_flag" ||
Chris@82 1729 test ! -s conftest.err
Chris@82 1730 } && test -s conftest.$ac_objext; then :
Chris@82 1731 ac_retval=0
Chris@82 1732 else
Chris@82 1733 $as_echo "$as_me: failed program was:" >&5
Chris@82 1734 sed 's/^/| /' conftest.$ac_ext >&5
Chris@82 1735
Chris@82 1736 ac_retval=1
Chris@82 1737 fi
Chris@82 1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@82 1739 as_fn_set_status $ac_retval
Chris@82 1740
Chris@82 1741 } # ac_fn_c_try_compile
Chris@82 1742
Chris@82 1743 # ac_fn_c_try_link LINENO
Chris@82 1744 # -----------------------
Chris@82 1745 # Try to link conftest.$ac_ext, and return whether this succeeded.
Chris@82 1746 ac_fn_c_try_link ()
Chris@82 1747 {
Chris@82 1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@82 1749 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@82 1750 if { { ac_try="$ac_link"
Chris@82 1751 case "(($ac_try" in
Chris@82 1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@82 1753 *) ac_try_echo=$ac_try;;
Chris@82 1754 esac
Chris@82 1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@82 1756 $as_echo "$ac_try_echo"; } >&5
Chris@82 1757 (eval "$ac_link") 2>conftest.err
Chris@82 1758 ac_status=$?
Chris@82 1759 if test -s conftest.err; then
Chris@82 1760 grep -v '^ *+' conftest.err >conftest.er1
Chris@82 1761 cat conftest.er1 >&5
Chris@82 1762 mv -f conftest.er1 conftest.err
Chris@82 1763 fi
Chris@82 1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@82 1765 test $ac_status = 0; } && {
Chris@82 1766 test -z "$ac_c_werror_flag" ||
Chris@82 1767 test ! -s conftest.err
Chris@82 1768 } && test -s conftest$ac_exeext && {
Chris@82 1769 test "$cross_compiling" = yes ||
Chris@82 1770 test -x conftest$ac_exeext
Chris@82 1771 }; then :
Chris@82 1772 ac_retval=0
Chris@82 1773 else
Chris@82 1774 $as_echo "$as_me: failed program was:" >&5
Chris@82 1775 sed 's/^/| /' conftest.$ac_ext >&5
Chris@82 1776
Chris@82 1777 ac_retval=1
Chris@82 1778 fi
Chris@82 1779 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
Chris@82 1780 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
Chris@82 1781 # interfere with the next link command; also delete a directory that is
Chris@82 1782 # left behind by Apple's compiler. We do this before executing the actions.
Chris@82 1783 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris@82 1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@82 1785 as_fn_set_status $ac_retval
Chris@82 1786
Chris@82 1787 } # ac_fn_c_try_link
Chris@82 1788
Chris@82 1789 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
Chris@82 1790 # -------------------------------------------------------
Chris@82 1791 # Tests whether HEADER exists and can be compiled using the include files in
Chris@82 1792 # INCLUDES, setting the cache variable VAR accordingly.
Chris@82 1793 ac_fn_c_check_header_compile ()
Chris@82 1794 {
Chris@82 1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@82 1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@82 1797 $as_echo_n "checking for $2... " >&6; }
Chris@82 1798 if eval \${$3+:} false; then :
Chris@82 1799 $as_echo_n "(cached) " >&6
Chris@82 1800 else
Chris@82 1801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 1802 /* end confdefs.h. */
Chris@82 1803 $4
Chris@82 1804 #include <$2>
Chris@82 1805 _ACEOF
Chris@82 1806 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 1807 eval "$3=yes"
Chris@82 1808 else
Chris@82 1809 eval "$3=no"
Chris@82 1810 fi
Chris@82 1811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 1812 fi
Chris@82 1813 eval ac_res=\$$3
Chris@82 1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@82 1815 $as_echo "$ac_res" >&6; }
Chris@82 1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@82 1817
Chris@82 1818 } # ac_fn_c_check_header_compile
Chris@82 1819
Chris@82 1820 # ac_fn_c_try_cpp LINENO
Chris@82 1821 # ----------------------
Chris@82 1822 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
Chris@82 1823 ac_fn_c_try_cpp ()
Chris@82 1824 {
Chris@82 1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@82 1826 if { { ac_try="$ac_cpp conftest.$ac_ext"
Chris@82 1827 case "(($ac_try" in
Chris@82 1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@82 1829 *) ac_try_echo=$ac_try;;
Chris@82 1830 esac
Chris@82 1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@82 1832 $as_echo "$ac_try_echo"; } >&5
Chris@82 1833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
Chris@82 1834 ac_status=$?
Chris@82 1835 if test -s conftest.err; then
Chris@82 1836 grep -v '^ *+' conftest.err >conftest.er1
Chris@82 1837 cat conftest.er1 >&5
Chris@82 1838 mv -f conftest.er1 conftest.err
Chris@82 1839 fi
Chris@82 1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@82 1841 test $ac_status = 0; } > conftest.i && {
Chris@82 1842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
Chris@82 1843 test ! -s conftest.err
Chris@82 1844 }; then :
Chris@82 1845 ac_retval=0
Chris@82 1846 else
Chris@82 1847 $as_echo "$as_me: failed program was:" >&5
Chris@82 1848 sed 's/^/| /' conftest.$ac_ext >&5
Chris@82 1849
Chris@82 1850 ac_retval=1
Chris@82 1851 fi
Chris@82 1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@82 1853 as_fn_set_status $ac_retval
Chris@82 1854
Chris@82 1855 } # ac_fn_c_try_cpp
Chris@82 1856
Chris@82 1857 # ac_fn_c_try_run LINENO
Chris@82 1858 # ----------------------
Chris@82 1859 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
Chris@82 1860 # that executables *can* be run.
Chris@82 1861 ac_fn_c_try_run ()
Chris@82 1862 {
Chris@82 1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@82 1864 if { { ac_try="$ac_link"
Chris@82 1865 case "(($ac_try" in
Chris@82 1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@82 1867 *) ac_try_echo=$ac_try;;
Chris@82 1868 esac
Chris@82 1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@82 1870 $as_echo "$ac_try_echo"; } >&5
Chris@82 1871 (eval "$ac_link") 2>&5
Chris@82 1872 ac_status=$?
Chris@82 1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@82 1874 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
Chris@82 1875 { { case "(($ac_try" in
Chris@82 1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@82 1877 *) ac_try_echo=$ac_try;;
Chris@82 1878 esac
Chris@82 1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@82 1880 $as_echo "$ac_try_echo"; } >&5
Chris@82 1881 (eval "$ac_try") 2>&5
Chris@82 1882 ac_status=$?
Chris@82 1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@82 1884 test $ac_status = 0; }; }; then :
Chris@82 1885 ac_retval=0
Chris@82 1886 else
Chris@82 1887 $as_echo "$as_me: program exited with status $ac_status" >&5
Chris@82 1888 $as_echo "$as_me: failed program was:" >&5
Chris@82 1889 sed 's/^/| /' conftest.$ac_ext >&5
Chris@82 1890
Chris@82 1891 ac_retval=$ac_status
Chris@82 1892 fi
Chris@82 1893 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris@82 1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@82 1895 as_fn_set_status $ac_retval
Chris@82 1896
Chris@82 1897 } # ac_fn_c_try_run
Chris@82 1898
Chris@82 1899 # ac_fn_c_check_func LINENO FUNC VAR
Chris@82 1900 # ----------------------------------
Chris@82 1901 # Tests whether FUNC exists, setting the cache variable VAR accordingly
Chris@82 1902 ac_fn_c_check_func ()
Chris@82 1903 {
Chris@82 1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@82 1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@82 1906 $as_echo_n "checking for $2... " >&6; }
Chris@82 1907 if eval \${$3+:} false; then :
Chris@82 1908 $as_echo_n "(cached) " >&6
Chris@82 1909 else
Chris@82 1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 1911 /* end confdefs.h. */
Chris@82 1912 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
Chris@82 1913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
Chris@82 1914 #define $2 innocuous_$2
Chris@82 1915
Chris@82 1916 /* System header to define __stub macros and hopefully few prototypes,
Chris@82 1917 which can conflict with char $2 (); below.
Chris@82 1918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@82 1919 <limits.h> exists even on freestanding compilers. */
Chris@82 1920
Chris@82 1921 #ifdef __STDC__
Chris@82 1922 # include <limits.h>
Chris@82 1923 #else
Chris@82 1924 # include <assert.h>
Chris@82 1925 #endif
Chris@82 1926
Chris@82 1927 #undef $2
Chris@82 1928
Chris@82 1929 /* Override any GCC internal prototype to avoid an error.
Chris@82 1930 Use char because int might match the return type of a GCC
Chris@82 1931 builtin and then its argument prototype would still apply. */
Chris@82 1932 #ifdef __cplusplus
Chris@82 1933 extern "C"
Chris@82 1934 #endif
Chris@82 1935 char $2 ();
Chris@82 1936 /* The GNU C library defines this for functions which it implements
Chris@82 1937 to always fail with ENOSYS. Some functions are actually named
Chris@82 1938 something starting with __ and the normal name is an alias. */
Chris@82 1939 #if defined __stub_$2 || defined __stub___$2
Chris@82 1940 choke me
Chris@82 1941 #endif
Chris@82 1942
Chris@82 1943 int
Chris@82 1944 main ()
Chris@82 1945 {
Chris@82 1946 return $2 ();
Chris@82 1947 ;
Chris@82 1948 return 0;
Chris@82 1949 }
Chris@82 1950 _ACEOF
Chris@82 1951 if ac_fn_c_try_link "$LINENO"; then :
Chris@82 1952 eval "$3=yes"
Chris@82 1953 else
Chris@82 1954 eval "$3=no"
Chris@82 1955 fi
Chris@82 1956 rm -f core conftest.err conftest.$ac_objext \
Chris@82 1957 conftest$ac_exeext conftest.$ac_ext
Chris@82 1958 fi
Chris@82 1959 eval ac_res=\$$3
Chris@82 1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@82 1961 $as_echo "$ac_res" >&6; }
Chris@82 1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@82 1963
Chris@82 1964 } # ac_fn_c_check_func
Chris@82 1965
Chris@82 1966 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
Chris@82 1967 # --------------------------------------------
Chris@82 1968 # Tries to find the compile-time value of EXPR in a program that includes
Chris@82 1969 # INCLUDES, setting VAR accordingly. Returns whether the value could be
Chris@82 1970 # computed
Chris@82 1971 ac_fn_c_compute_int ()
Chris@82 1972 {
Chris@82 1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@82 1974 if test "$cross_compiling" = yes; then
Chris@82 1975 # Depending upon the size, compute the lo and hi bounds.
Chris@82 1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 1977 /* end confdefs.h. */
Chris@82 1978 $4
Chris@82 1979 int
Chris@82 1980 main ()
Chris@82 1981 {
Chris@82 1982 static int test_array [1 - 2 * !(($2) >= 0)];
Chris@82 1983 test_array [0] = 0;
Chris@82 1984 return test_array [0];
Chris@82 1985
Chris@82 1986 ;
Chris@82 1987 return 0;
Chris@82 1988 }
Chris@82 1989 _ACEOF
Chris@82 1990 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 1991 ac_lo=0 ac_mid=0
Chris@82 1992 while :; do
Chris@82 1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 1994 /* end confdefs.h. */
Chris@82 1995 $4
Chris@82 1996 int
Chris@82 1997 main ()
Chris@82 1998 {
Chris@82 1999 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Chris@82 2000 test_array [0] = 0;
Chris@82 2001 return test_array [0];
Chris@82 2002
Chris@82 2003 ;
Chris@82 2004 return 0;
Chris@82 2005 }
Chris@82 2006 _ACEOF
Chris@82 2007 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 2008 ac_hi=$ac_mid; break
Chris@82 2009 else
Chris@82 2010 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
Chris@82 2011 if test $ac_lo -le $ac_mid; then
Chris@82 2012 ac_lo= ac_hi=
Chris@82 2013 break
Chris@82 2014 fi
Chris@82 2015 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
Chris@82 2016 fi
Chris@82 2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 2018 done
Chris@82 2019 else
Chris@82 2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 2021 /* end confdefs.h. */
Chris@82 2022 $4
Chris@82 2023 int
Chris@82 2024 main ()
Chris@82 2025 {
Chris@82 2026 static int test_array [1 - 2 * !(($2) < 0)];
Chris@82 2027 test_array [0] = 0;
Chris@82 2028 return test_array [0];
Chris@82 2029
Chris@82 2030 ;
Chris@82 2031 return 0;
Chris@82 2032 }
Chris@82 2033 _ACEOF
Chris@82 2034 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 2035 ac_hi=-1 ac_mid=-1
Chris@82 2036 while :; do
Chris@82 2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 2038 /* end confdefs.h. */
Chris@82 2039 $4
Chris@82 2040 int
Chris@82 2041 main ()
Chris@82 2042 {
Chris@82 2043 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Chris@82 2044 test_array [0] = 0;
Chris@82 2045 return test_array [0];
Chris@82 2046
Chris@82 2047 ;
Chris@82 2048 return 0;
Chris@82 2049 }
Chris@82 2050 _ACEOF
Chris@82 2051 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 2052 ac_lo=$ac_mid; break
Chris@82 2053 else
Chris@82 2054 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
Chris@82 2055 if test $ac_mid -le $ac_hi; then
Chris@82 2056 ac_lo= ac_hi=
Chris@82 2057 break
Chris@82 2058 fi
Chris@82 2059 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
Chris@82 2060 fi
Chris@82 2061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 2062 done
Chris@82 2063 else
Chris@82 2064 ac_lo= ac_hi=
Chris@82 2065 fi
Chris@82 2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 2067 fi
Chris@82 2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 2069 # Binary search between lo and hi bounds.
Chris@82 2070 while test "x$ac_lo" != "x$ac_hi"; do
Chris@82 2071 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
Chris@82 2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 2073 /* end confdefs.h. */
Chris@82 2074 $4
Chris@82 2075 int
Chris@82 2076 main ()
Chris@82 2077 {
Chris@82 2078 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Chris@82 2079 test_array [0] = 0;
Chris@82 2080 return test_array [0];
Chris@82 2081
Chris@82 2082 ;
Chris@82 2083 return 0;
Chris@82 2084 }
Chris@82 2085 _ACEOF
Chris@82 2086 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 2087 ac_hi=$ac_mid
Chris@82 2088 else
Chris@82 2089 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
Chris@82 2090 fi
Chris@82 2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 2092 done
Chris@82 2093 case $ac_lo in #((
Chris@82 2094 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
Chris@82 2095 '') ac_retval=1 ;;
Chris@82 2096 esac
Chris@82 2097 else
Chris@82 2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 2099 /* end confdefs.h. */
Chris@82 2100 $4
Chris@82 2101 static long int longval () { return $2; }
Chris@82 2102 static unsigned long int ulongval () { return $2; }
Chris@82 2103 #include <stdio.h>
Chris@82 2104 #include <stdlib.h>
Chris@82 2105 int
Chris@82 2106 main ()
Chris@82 2107 {
Chris@82 2108
Chris@82 2109 FILE *f = fopen ("conftest.val", "w");
Chris@82 2110 if (! f)
Chris@82 2111 return 1;
Chris@82 2112 if (($2) < 0)
Chris@82 2113 {
Chris@82 2114 long int i = longval ();
Chris@82 2115 if (i != ($2))
Chris@82 2116 return 1;
Chris@82 2117 fprintf (f, "%ld", i);
Chris@82 2118 }
Chris@82 2119 else
Chris@82 2120 {
Chris@82 2121 unsigned long int i = ulongval ();
Chris@82 2122 if (i != ($2))
Chris@82 2123 return 1;
Chris@82 2124 fprintf (f, "%lu", i);
Chris@82 2125 }
Chris@82 2126 /* Do not output a trailing newline, as this causes \r\n confusion
Chris@82 2127 on some platforms. */
Chris@82 2128 return ferror (f) || fclose (f) != 0;
Chris@82 2129
Chris@82 2130 ;
Chris@82 2131 return 0;
Chris@82 2132 }
Chris@82 2133 _ACEOF
Chris@82 2134 if ac_fn_c_try_run "$LINENO"; then :
Chris@82 2135 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
Chris@82 2136 else
Chris@82 2137 ac_retval=1
Chris@82 2138 fi
Chris@82 2139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@82 2140 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@82 2141 rm -f conftest.val
Chris@82 2142
Chris@82 2143 fi
Chris@82 2144 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@82 2145 as_fn_set_status $ac_retval
Chris@82 2146
Chris@82 2147 } # ac_fn_c_compute_int
Chris@82 2148
Chris@82 2149 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
Chris@82 2150 # -------------------------------------------------------
Chris@82 2151 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
Chris@82 2152 # the include files in INCLUDES and setting the cache variable VAR
Chris@82 2153 # accordingly.
Chris@82 2154 ac_fn_c_check_header_mongrel ()
Chris@82 2155 {
Chris@82 2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@82 2157 if eval \${$3+:} false; then :
Chris@82 2158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@82 2159 $as_echo_n "checking for $2... " >&6; }
Chris@82 2160 if eval \${$3+:} false; then :
Chris@82 2161 $as_echo_n "(cached) " >&6
Chris@82 2162 fi
Chris@82 2163 eval ac_res=\$$3
Chris@82 2164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@82 2165 $as_echo "$ac_res" >&6; }
Chris@82 2166 else
Chris@82 2167 # Is the header compilable?
Chris@82 2168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
Chris@82 2169 $as_echo_n "checking $2 usability... " >&6; }
Chris@82 2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 2171 /* end confdefs.h. */
Chris@82 2172 $4
Chris@82 2173 #include <$2>
Chris@82 2174 _ACEOF
Chris@82 2175 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 2176 ac_header_compiler=yes
Chris@82 2177 else
Chris@82 2178 ac_header_compiler=no
Chris@82 2179 fi
Chris@82 2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
Chris@82 2182 $as_echo "$ac_header_compiler" >&6; }
Chris@82 2183
Chris@82 2184 # Is the header present?
Chris@82 2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
Chris@82 2186 $as_echo_n "checking $2 presence... " >&6; }
Chris@82 2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 2188 /* end confdefs.h. */
Chris@82 2189 #include <$2>
Chris@82 2190 _ACEOF
Chris@82 2191 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@82 2192 ac_header_preproc=yes
Chris@82 2193 else
Chris@82 2194 ac_header_preproc=no
Chris@82 2195 fi
Chris@82 2196 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@82 2197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
Chris@82 2198 $as_echo "$ac_header_preproc" >&6; }
Chris@82 2199
Chris@82 2200 # So? What about this header?
Chris@82 2201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
Chris@82 2202 yes:no: )
Chris@82 2203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
Chris@82 2204 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
Chris@82 2205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
Chris@82 2206 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Chris@82 2207 ;;
Chris@82 2208 no:yes:* )
Chris@82 2209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
Chris@82 2210 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
Chris@82 2211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
Chris@82 2212 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
Chris@82 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
Chris@82 2214 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
Chris@82 2215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
Chris@82 2216 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
Chris@82 2217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
Chris@82 2218 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Chris@82 2219 ( $as_echo "## ---------------------------- ##
Chris@82 2220 ## Report this to fftw@fftw.org ##
Chris@82 2221 ## ---------------------------- ##"
Chris@82 2222 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris@82 2223 ;;
Chris@82 2224 esac
Chris@82 2225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@82 2226 $as_echo_n "checking for $2... " >&6; }
Chris@82 2227 if eval \${$3+:} false; then :
Chris@82 2228 $as_echo_n "(cached) " >&6
Chris@82 2229 else
Chris@82 2230 eval "$3=\$ac_header_compiler"
Chris@82 2231 fi
Chris@82 2232 eval ac_res=\$$3
Chris@82 2233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@82 2234 $as_echo "$ac_res" >&6; }
Chris@82 2235 fi
Chris@82 2236 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@82 2237
Chris@82 2238 } # ac_fn_c_check_header_mongrel
Chris@82 2239
Chris@82 2240 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
Chris@82 2241 # -------------------------------------------
Chris@82 2242 # Tests whether TYPE exists after having included INCLUDES, setting cache
Chris@82 2243 # variable VAR accordingly.
Chris@82 2244 ac_fn_c_check_type ()
Chris@82 2245 {
Chris@82 2246 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@82 2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@82 2248 $as_echo_n "checking for $2... " >&6; }
Chris@82 2249 if eval \${$3+:} false; then :
Chris@82 2250 $as_echo_n "(cached) " >&6
Chris@82 2251 else
Chris@82 2252 eval "$3=no"
Chris@82 2253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 2254 /* end confdefs.h. */
Chris@82 2255 $4
Chris@82 2256 int
Chris@82 2257 main ()
Chris@82 2258 {
Chris@82 2259 if (sizeof ($2))
Chris@82 2260 return 0;
Chris@82 2261 ;
Chris@82 2262 return 0;
Chris@82 2263 }
Chris@82 2264 _ACEOF
Chris@82 2265 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 2267 /* end confdefs.h. */
Chris@82 2268 $4
Chris@82 2269 int
Chris@82 2270 main ()
Chris@82 2271 {
Chris@82 2272 if (sizeof (($2)))
Chris@82 2273 return 0;
Chris@82 2274 ;
Chris@82 2275 return 0;
Chris@82 2276 }
Chris@82 2277 _ACEOF
Chris@82 2278 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 2279
Chris@82 2280 else
Chris@82 2281 eval "$3=yes"
Chris@82 2282 fi
Chris@82 2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 2284 fi
Chris@82 2285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 2286 fi
Chris@82 2287 eval ac_res=\$$3
Chris@82 2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@82 2289 $as_echo "$ac_res" >&6; }
Chris@82 2290 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@82 2291
Chris@82 2292 } # ac_fn_c_check_type
Chris@82 2293
Chris@82 2294 # ac_fn_c_find_uintX_t LINENO BITS VAR
Chris@82 2295 # ------------------------------------
Chris@82 2296 # Finds an unsigned integer type with width BITS, setting cache variable VAR
Chris@82 2297 # accordingly.
Chris@82 2298 ac_fn_c_find_uintX_t ()
Chris@82 2299 {
Chris@82 2300 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@82 2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
Chris@82 2302 $as_echo_n "checking for uint$2_t... " >&6; }
Chris@82 2303 if eval \${$3+:} false; then :
Chris@82 2304 $as_echo_n "(cached) " >&6
Chris@82 2305 else
Chris@82 2306 eval "$3=no"
Chris@82 2307 # Order is important - never check a type that is potentially smaller
Chris@82 2308 # than half of the expected target width.
Chris@82 2309 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
Chris@82 2310 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
Chris@82 2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 2312 /* end confdefs.h. */
Chris@82 2313 $ac_includes_default
Chris@82 2314 int
Chris@82 2315 main ()
Chris@82 2316 {
Chris@82 2317 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
Chris@82 2318 test_array [0] = 0;
Chris@82 2319 return test_array [0];
Chris@82 2320
Chris@82 2321 ;
Chris@82 2322 return 0;
Chris@82 2323 }
Chris@82 2324 _ACEOF
Chris@82 2325 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 2326 case $ac_type in #(
Chris@82 2327 uint$2_t) :
Chris@82 2328 eval "$3=yes" ;; #(
Chris@82 2329 *) :
Chris@82 2330 eval "$3=\$ac_type" ;;
Chris@82 2331 esac
Chris@82 2332 fi
Chris@82 2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 2334 if eval test \"x\$"$3"\" = x"no"; then :
Chris@82 2335
Chris@82 2336 else
Chris@82 2337 break
Chris@82 2338 fi
Chris@82 2339 done
Chris@82 2340 fi
Chris@82 2341 eval ac_res=\$$3
Chris@82 2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@82 2343 $as_echo "$ac_res" >&6; }
Chris@82 2344 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@82 2345
Chris@82 2346 } # ac_fn_c_find_uintX_t
Chris@82 2347
Chris@82 2348 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
Chris@82 2349 # ---------------------------------------------
Chris@82 2350 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
Chris@82 2351 # accordingly.
Chris@82 2352 ac_fn_c_check_decl ()
Chris@82 2353 {
Chris@82 2354 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@82 2355 as_decl_name=`echo $2|sed 's/ *(.*//'`
Chris@82 2356 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
Chris@82 2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
Chris@82 2358 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
Chris@82 2359 if eval \${$3+:} false; then :
Chris@82 2360 $as_echo_n "(cached) " >&6
Chris@82 2361 else
Chris@82 2362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 2363 /* end confdefs.h. */
Chris@82 2364 $4
Chris@82 2365 int
Chris@82 2366 main ()
Chris@82 2367 {
Chris@82 2368 #ifndef $as_decl_name
Chris@82 2369 #ifdef __cplusplus
Chris@82 2370 (void) $as_decl_use;
Chris@82 2371 #else
Chris@82 2372 (void) $as_decl_name;
Chris@82 2373 #endif
Chris@82 2374 #endif
Chris@82 2375
Chris@82 2376 ;
Chris@82 2377 return 0;
Chris@82 2378 }
Chris@82 2379 _ACEOF
Chris@82 2380 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 2381 eval "$3=yes"
Chris@82 2382 else
Chris@82 2383 eval "$3=no"
Chris@82 2384 fi
Chris@82 2385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 2386 fi
Chris@82 2387 eval ac_res=\$$3
Chris@82 2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@82 2389 $as_echo "$ac_res" >&6; }
Chris@82 2390 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@82 2391
Chris@82 2392 } # ac_fn_c_check_decl
Chris@82 2393
Chris@82 2394 # ac_fn_f77_try_compile LINENO
Chris@82 2395 # ----------------------------
Chris@82 2396 # Try to compile conftest.$ac_ext, and return whether this succeeded.
Chris@82 2397 ac_fn_f77_try_compile ()
Chris@82 2398 {
Chris@82 2399 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@82 2400 rm -f conftest.$ac_objext
Chris@82 2401 if { { ac_try="$ac_compile"
Chris@82 2402 case "(($ac_try" in
Chris@82 2403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@82 2404 *) ac_try_echo=$ac_try;;
Chris@82 2405 esac
Chris@82 2406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@82 2407 $as_echo "$ac_try_echo"; } >&5
Chris@82 2408 (eval "$ac_compile") 2>conftest.err
Chris@82 2409 ac_status=$?
Chris@82 2410 if test -s conftest.err; then
Chris@82 2411 grep -v '^ *+' conftest.err >conftest.er1
Chris@82 2412 cat conftest.er1 >&5
Chris@82 2413 mv -f conftest.er1 conftest.err
Chris@82 2414 fi
Chris@82 2415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@82 2416 test $ac_status = 0; } && {
Chris@82 2417 test -z "$ac_f77_werror_flag" ||
Chris@82 2418 test ! -s conftest.err
Chris@82 2419 } && test -s conftest.$ac_objext; then :
Chris@82 2420 ac_retval=0
Chris@82 2421 else
Chris@82 2422 $as_echo "$as_me: failed program was:" >&5
Chris@82 2423 sed 's/^/| /' conftest.$ac_ext >&5
Chris@82 2424
Chris@82 2425 ac_retval=1
Chris@82 2426 fi
Chris@82 2427 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@82 2428 as_fn_set_status $ac_retval
Chris@82 2429
Chris@82 2430 } # ac_fn_f77_try_compile
Chris@82 2431
Chris@82 2432 # ac_fn_f77_try_link LINENO
Chris@82 2433 # -------------------------
Chris@82 2434 # Try to link conftest.$ac_ext, and return whether this succeeded.
Chris@82 2435 ac_fn_f77_try_link ()
Chris@82 2436 {
Chris@82 2437 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@82 2438 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@82 2439 if { { ac_try="$ac_link"
Chris@82 2440 case "(($ac_try" in
Chris@82 2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@82 2442 *) ac_try_echo=$ac_try;;
Chris@82 2443 esac
Chris@82 2444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@82 2445 $as_echo "$ac_try_echo"; } >&5
Chris@82 2446 (eval "$ac_link") 2>conftest.err
Chris@82 2447 ac_status=$?
Chris@82 2448 if test -s conftest.err; then
Chris@82 2449 grep -v '^ *+' conftest.err >conftest.er1
Chris@82 2450 cat conftest.er1 >&5
Chris@82 2451 mv -f conftest.er1 conftest.err
Chris@82 2452 fi
Chris@82 2453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@82 2454 test $ac_status = 0; } && {
Chris@82 2455 test -z "$ac_f77_werror_flag" ||
Chris@82 2456 test ! -s conftest.err
Chris@82 2457 } && test -s conftest$ac_exeext && {
Chris@82 2458 test "$cross_compiling" = yes ||
Chris@82 2459 test -x conftest$ac_exeext
Chris@82 2460 }; then :
Chris@82 2461 ac_retval=0
Chris@82 2462 else
Chris@82 2463 $as_echo "$as_me: failed program was:" >&5
Chris@82 2464 sed 's/^/| /' conftest.$ac_ext >&5
Chris@82 2465
Chris@82 2466 ac_retval=1
Chris@82 2467 fi
Chris@82 2468 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
Chris@82 2469 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
Chris@82 2470 # interfere with the next link command; also delete a directory that is
Chris@82 2471 # left behind by Apple's compiler. We do this before executing the actions.
Chris@82 2472 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris@82 2473 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@82 2474 as_fn_set_status $ac_retval
Chris@82 2475
Chris@82 2476 } # ac_fn_f77_try_link
Chris@82 2477 cat >config.log <<_ACEOF
Chris@82 2478 This file contains any messages produced by compilers while
Chris@82 2479 running configure, to aid debugging if configure makes a mistake.
Chris@82 2480
Chris@82 2481 It was created by fftw $as_me 3.3.8, which was
Chris@82 2482 generated by GNU Autoconf 2.69. Invocation command line was
Chris@82 2483
Chris@82 2484 $ $0 $@
Chris@82 2485
Chris@82 2486 _ACEOF
Chris@82 2487 exec 5>>config.log
Chris@82 2488 {
Chris@82 2489 cat <<_ASUNAME
Chris@82 2490 ## --------- ##
Chris@82 2491 ## Platform. ##
Chris@82 2492 ## --------- ##
Chris@82 2493
Chris@82 2494 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@82 2495 uname -m = `(uname -m) 2>/dev/null || echo unknown`
Chris@82 2496 uname -r = `(uname -r) 2>/dev/null || echo unknown`
Chris@82 2497 uname -s = `(uname -s) 2>/dev/null || echo unknown`
Chris@82 2498 uname -v = `(uname -v) 2>/dev/null || echo unknown`
Chris@82 2499
Chris@82 2500 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
Chris@82 2501 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
Chris@82 2502
Chris@82 2503 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
Chris@82 2504 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
Chris@82 2505 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Chris@82 2506 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Chris@82 2507 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
Chris@82 2508 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
Chris@82 2509 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
Chris@82 2510
Chris@82 2511 _ASUNAME
Chris@82 2512
Chris@82 2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 2514 for as_dir in $PATH
Chris@82 2515 do
Chris@82 2516 IFS=$as_save_IFS
Chris@82 2517 test -z "$as_dir" && as_dir=.
Chris@82 2518 $as_echo "PATH: $as_dir"
Chris@82 2519 done
Chris@82 2520 IFS=$as_save_IFS
Chris@82 2521
Chris@82 2522 } >&5
Chris@82 2523
Chris@82 2524 cat >&5 <<_ACEOF
Chris@82 2525
Chris@82 2526
Chris@82 2527 ## ----------- ##
Chris@82 2528 ## Core tests. ##
Chris@82 2529 ## ----------- ##
Chris@82 2530
Chris@82 2531 _ACEOF
Chris@82 2532
Chris@82 2533
Chris@82 2534 # Keep a trace of the command line.
Chris@82 2535 # Strip out --no-create and --no-recursion so they do not pile up.
Chris@82 2536 # Strip out --silent because we don't want to record it for future runs.
Chris@82 2537 # Also quote any args containing shell meta-characters.
Chris@82 2538 # Make two passes to allow for proper duplicate-argument suppression.
Chris@82 2539 ac_configure_args=
Chris@82 2540 ac_configure_args0=
Chris@82 2541 ac_configure_args1=
Chris@82 2542 ac_must_keep_next=false
Chris@82 2543 for ac_pass in 1 2
Chris@82 2544 do
Chris@82 2545 for ac_arg
Chris@82 2546 do
Chris@82 2547 case $ac_arg in
Chris@82 2548 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
Chris@82 2549 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@82 2550 | -silent | --silent | --silen | --sile | --sil)
Chris@82 2551 continue ;;
Chris@82 2552 *\'*)
Chris@82 2553 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@82 2554 esac
Chris@82 2555 case $ac_pass in
Chris@82 2556 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Chris@82 2557 2)
Chris@82 2558 as_fn_append ac_configure_args1 " '$ac_arg'"
Chris@82 2559 if test $ac_must_keep_next = true; then
Chris@82 2560 ac_must_keep_next=false # Got value, back to normal.
Chris@82 2561 else
Chris@82 2562 case $ac_arg in
Chris@82 2563 *=* | --config-cache | -C | -disable-* | --disable-* \
Chris@82 2564 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
Chris@82 2565 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
Chris@82 2566 | -with-* | --with-* | -without-* | --without-* | --x)
Chris@82 2567 case "$ac_configure_args0 " in
Chris@82 2568 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
Chris@82 2569 esac
Chris@82 2570 ;;
Chris@82 2571 -* ) ac_must_keep_next=true ;;
Chris@82 2572 esac
Chris@82 2573 fi
Chris@82 2574 as_fn_append ac_configure_args " '$ac_arg'"
Chris@82 2575 ;;
Chris@82 2576 esac
Chris@82 2577 done
Chris@82 2578 done
Chris@82 2579 { ac_configure_args0=; unset ac_configure_args0;}
Chris@82 2580 { ac_configure_args1=; unset ac_configure_args1;}
Chris@82 2581
Chris@82 2582 # When interrupted or exit'd, cleanup temporary files, and complete
Chris@82 2583 # config.log. We remove comments because anyway the quotes in there
Chris@82 2584 # would cause problems or look ugly.
Chris@82 2585 # WARNING: Use '\'' to represent an apostrophe within the trap.
Chris@82 2586 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Chris@82 2587 trap 'exit_status=$?
Chris@82 2588 # Save into config.log some information that might help in debugging.
Chris@82 2589 {
Chris@82 2590 echo
Chris@82 2591
Chris@82 2592 $as_echo "## ---------------- ##
Chris@82 2593 ## Cache variables. ##
Chris@82 2594 ## ---------------- ##"
Chris@82 2595 echo
Chris@82 2596 # The following way of writing the cache mishandles newlines in values,
Chris@82 2597 (
Chris@82 2598 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
Chris@82 2599 eval ac_val=\$$ac_var
Chris@82 2600 case $ac_val in #(
Chris@82 2601 *${as_nl}*)
Chris@82 2602 case $ac_var in #(
Chris@82 2603 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Chris@82 2604 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Chris@82 2605 esac
Chris@82 2606 case $ac_var in #(
Chris@82 2607 _ | IFS | as_nl) ;; #(
Chris@82 2608 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Chris@82 2609 *) { eval $ac_var=; unset $ac_var;} ;;
Chris@82 2610 esac ;;
Chris@82 2611 esac
Chris@82 2612 done
Chris@82 2613 (set) 2>&1 |
Chris@82 2614 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
Chris@82 2615 *${as_nl}ac_space=\ *)
Chris@82 2616 sed -n \
Chris@82 2617 "s/'\''/'\''\\\\'\'''\''/g;
Chris@82 2618 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
Chris@82 2619 ;; #(
Chris@82 2620 *)
Chris@82 2621 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Chris@82 2622 ;;
Chris@82 2623 esac |
Chris@82 2624 sort
Chris@82 2625 )
Chris@82 2626 echo
Chris@82 2627
Chris@82 2628 $as_echo "## ----------------- ##
Chris@82 2629 ## Output variables. ##
Chris@82 2630 ## ----------------- ##"
Chris@82 2631 echo
Chris@82 2632 for ac_var in $ac_subst_vars
Chris@82 2633 do
Chris@82 2634 eval ac_val=\$$ac_var
Chris@82 2635 case $ac_val in
Chris@82 2636 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Chris@82 2637 esac
Chris@82 2638 $as_echo "$ac_var='\''$ac_val'\''"
Chris@82 2639 done | sort
Chris@82 2640 echo
Chris@82 2641
Chris@82 2642 if test -n "$ac_subst_files"; then
Chris@82 2643 $as_echo "## ------------------- ##
Chris@82 2644 ## File substitutions. ##
Chris@82 2645 ## ------------------- ##"
Chris@82 2646 echo
Chris@82 2647 for ac_var in $ac_subst_files
Chris@82 2648 do
Chris@82 2649 eval ac_val=\$$ac_var
Chris@82 2650 case $ac_val in
Chris@82 2651 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Chris@82 2652 esac
Chris@82 2653 $as_echo "$ac_var='\''$ac_val'\''"
Chris@82 2654 done | sort
Chris@82 2655 echo
Chris@82 2656 fi
Chris@82 2657
Chris@82 2658 if test -s confdefs.h; then
Chris@82 2659 $as_echo "## ----------- ##
Chris@82 2660 ## confdefs.h. ##
Chris@82 2661 ## ----------- ##"
Chris@82 2662 echo
Chris@82 2663 cat confdefs.h
Chris@82 2664 echo
Chris@82 2665 fi
Chris@82 2666 test "$ac_signal" != 0 &&
Chris@82 2667 $as_echo "$as_me: caught signal $ac_signal"
Chris@82 2668 $as_echo "$as_me: exit $exit_status"
Chris@82 2669 } >&5
Chris@82 2670 rm -f core *.core core.conftest.* &&
Chris@82 2671 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Chris@82 2672 exit $exit_status
Chris@82 2673 ' 0
Chris@82 2674 for ac_signal in 1 2 13 15; do
Chris@82 2675 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Chris@82 2676 done
Chris@82 2677 ac_signal=0
Chris@82 2678
Chris@82 2679 # confdefs.h avoids OS command line length limits that DEFS can exceed.
Chris@82 2680 rm -f -r conftest* confdefs.h
Chris@82 2681
Chris@82 2682 $as_echo "/* confdefs.h */" > confdefs.h
Chris@82 2683
Chris@82 2684 # Predefined preprocessor variables.
Chris@82 2685
Chris@82 2686 cat >>confdefs.h <<_ACEOF
Chris@82 2687 #define PACKAGE_NAME "$PACKAGE_NAME"
Chris@82 2688 _ACEOF
Chris@82 2689
Chris@82 2690 cat >>confdefs.h <<_ACEOF
Chris@82 2691 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
Chris@82 2692 _ACEOF
Chris@82 2693
Chris@82 2694 cat >>confdefs.h <<_ACEOF
Chris@82 2695 #define PACKAGE_VERSION "$PACKAGE_VERSION"
Chris@82 2696 _ACEOF
Chris@82 2697
Chris@82 2698 cat >>confdefs.h <<_ACEOF
Chris@82 2699 #define PACKAGE_STRING "$PACKAGE_STRING"
Chris@82 2700 _ACEOF
Chris@82 2701
Chris@82 2702 cat >>confdefs.h <<_ACEOF
Chris@82 2703 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
Chris@82 2704 _ACEOF
Chris@82 2705
Chris@82 2706 cat >>confdefs.h <<_ACEOF
Chris@82 2707 #define PACKAGE_URL "$PACKAGE_URL"
Chris@82 2708 _ACEOF
Chris@82 2709
Chris@82 2710
Chris@82 2711 # Let the site file select an alternate cache file if it wants to.
Chris@82 2712 # Prefer an explicitly selected file to automatically selected ones.
Chris@82 2713 ac_site_file1=NONE
Chris@82 2714 ac_site_file2=NONE
Chris@82 2715 if test -n "$CONFIG_SITE"; then
Chris@82 2716 # We do not want a PATH search for config.site.
Chris@82 2717 case $CONFIG_SITE in #((
Chris@82 2718 -*) ac_site_file1=./$CONFIG_SITE;;
Chris@82 2719 */*) ac_site_file1=$CONFIG_SITE;;
Chris@82 2720 *) ac_site_file1=./$CONFIG_SITE;;
Chris@82 2721 esac
Chris@82 2722 elif test "x$prefix" != xNONE; then
Chris@82 2723 ac_site_file1=$prefix/share/config.site
Chris@82 2724 ac_site_file2=$prefix/etc/config.site
Chris@82 2725 else
Chris@82 2726 ac_site_file1=$ac_default_prefix/share/config.site
Chris@82 2727 ac_site_file2=$ac_default_prefix/etc/config.site
Chris@82 2728 fi
Chris@82 2729 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Chris@82 2730 do
Chris@82 2731 test "x$ac_site_file" = xNONE && continue
Chris@82 2732 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Chris@82 2733 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Chris@82 2734 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
Chris@82 2735 sed 's/^/| /' "$ac_site_file" >&5
Chris@82 2736 . "$ac_site_file" \
Chris@82 2737 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@82 2738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@82 2739 as_fn_error $? "failed to load site script $ac_site_file
Chris@82 2740 See \`config.log' for more details" "$LINENO" 5; }
Chris@82 2741 fi
Chris@82 2742 done
Chris@82 2743
Chris@82 2744 if test -r "$cache_file"; then
Chris@82 2745 # Some versions of bash will fail to source /dev/null (special files
Chris@82 2746 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
Chris@82 2747 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Chris@82 2748 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Chris@82 2749 $as_echo "$as_me: loading cache $cache_file" >&6;}
Chris@82 2750 case $cache_file in
Chris@82 2751 [\\/]* | ?:[\\/]* ) . "$cache_file";;
Chris@82 2752 *) . "./$cache_file";;
Chris@82 2753 esac
Chris@82 2754 fi
Chris@82 2755 else
Chris@82 2756 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Chris@82 2757 $as_echo "$as_me: creating cache $cache_file" >&6;}
Chris@82 2758 >$cache_file
Chris@82 2759 fi
Chris@82 2760
Chris@82 2761 # Check that the precious variables saved in the cache have kept the same
Chris@82 2762 # value.
Chris@82 2763 ac_cache_corrupted=false
Chris@82 2764 for ac_var in $ac_precious_vars; do
Chris@82 2765 eval ac_old_set=\$ac_cv_env_${ac_var}_set
Chris@82 2766 eval ac_new_set=\$ac_env_${ac_var}_set
Chris@82 2767 eval ac_old_val=\$ac_cv_env_${ac_var}_value
Chris@82 2768 eval ac_new_val=\$ac_env_${ac_var}_value
Chris@82 2769 case $ac_old_set,$ac_new_set in
Chris@82 2770 set,)
Chris@82 2771 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Chris@82 2772 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Chris@82 2773 ac_cache_corrupted=: ;;
Chris@82 2774 ,set)
Chris@82 2775 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
Chris@82 2776 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Chris@82 2777 ac_cache_corrupted=: ;;
Chris@82 2778 ,);;
Chris@82 2779 *)
Chris@82 2780 if test "x$ac_old_val" != "x$ac_new_val"; then
Chris@82 2781 # differences in whitespace do not lead to failure.
Chris@82 2782 ac_old_val_w=`echo x $ac_old_val`
Chris@82 2783 ac_new_val_w=`echo x $ac_new_val`
Chris@82 2784 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Chris@82 2785 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Chris@82 2786 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Chris@82 2787 ac_cache_corrupted=:
Chris@82 2788 else
Chris@82 2789 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Chris@82 2790 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
Chris@82 2791 eval $ac_var=\$ac_old_val
Chris@82 2792 fi
Chris@82 2793 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Chris@82 2794 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Chris@82 2795 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Chris@82 2796 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Chris@82 2797 fi;;
Chris@82 2798 esac
Chris@82 2799 # Pass precious variables to config.status.
Chris@82 2800 if test "$ac_new_set" = set; then
Chris@82 2801 case $ac_new_val in
Chris@82 2802 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@82 2803 *) ac_arg=$ac_var=$ac_new_val ;;
Chris@82 2804 esac
Chris@82 2805 case " $ac_configure_args " in
Chris@82 2806 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Chris@82 2807 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Chris@82 2808 esac
Chris@82 2809 fi
Chris@82 2810 done
Chris@82 2811 if $ac_cache_corrupted; then
Chris@82 2812 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@82 2813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@82 2814 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Chris@82 2815 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Chris@82 2816 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Chris@82 2817 fi
Chris@82 2818 ## -------------------- ##
Chris@82 2819 ## Main body of script. ##
Chris@82 2820 ## -------------------- ##
Chris@82 2821
Chris@82 2822 ac_ext=c
Chris@82 2823 ac_cpp='$CPP $CPPFLAGS'
Chris@82 2824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@82 2825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 2826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@82 2827
Chris@82 2828
Chris@82 2829
Chris@82 2830
Chris@82 2831 SHARED_VERSION_INFO="8:8:5" # CURRENT:REVISION:AGE
Chris@82 2832
Chris@82 2833 am__api_version='1.15'
Chris@82 2834
Chris@82 2835 ac_aux_dir=
Chris@82 2836 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Chris@82 2837 if test -f "$ac_dir/install-sh"; then
Chris@82 2838 ac_aux_dir=$ac_dir
Chris@82 2839 ac_install_sh="$ac_aux_dir/install-sh -c"
Chris@82 2840 break
Chris@82 2841 elif test -f "$ac_dir/install.sh"; then
Chris@82 2842 ac_aux_dir=$ac_dir
Chris@82 2843 ac_install_sh="$ac_aux_dir/install.sh -c"
Chris@82 2844 break
Chris@82 2845 elif test -f "$ac_dir/shtool"; then
Chris@82 2846 ac_aux_dir=$ac_dir
Chris@82 2847 ac_install_sh="$ac_aux_dir/shtool install -c"
Chris@82 2848 break
Chris@82 2849 fi
Chris@82 2850 done
Chris@82 2851 if test -z "$ac_aux_dir"; then
Chris@82 2852 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Chris@82 2853 fi
Chris@82 2854
Chris@82 2855 # These three variables are undocumented and unsupported,
Chris@82 2856 # and are intended to be withdrawn in a future Autoconf release.
Chris@82 2857 # They can cause serious problems if a builder's source tree is in a directory
Chris@82 2858 # whose full name contains unusual characters.
Chris@82 2859 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
Chris@82 2860 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
Chris@82 2861 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
Chris@82 2862
Chris@82 2863
Chris@82 2864 # Find a good install program. We prefer a C program (faster),
Chris@82 2865 # so one script is as good as another. But avoid the broken or
Chris@82 2866 # incompatible versions:
Chris@82 2867 # SysV /etc/install, /usr/sbin/install
Chris@82 2868 # SunOS /usr/etc/install
Chris@82 2869 # IRIX /sbin/install
Chris@82 2870 # AIX /bin/install
Chris@82 2871 # AmigaOS /C/install, which installs bootblocks on floppy discs
Chris@82 2872 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Chris@82 2873 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
Chris@82 2874 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Chris@82 2875 # OS/2's system install, which has a completely different semantic
Chris@82 2876 # ./install, which can be erroneously created by make from ./install.sh.
Chris@82 2877 # Reject install programs that cannot install multiple files.
Chris@82 2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Chris@82 2879 $as_echo_n "checking for a BSD-compatible install... " >&6; }
Chris@82 2880 if test -z "$INSTALL"; then
Chris@82 2881 if ${ac_cv_path_install+:} false; then :
Chris@82 2882 $as_echo_n "(cached) " >&6
Chris@82 2883 else
Chris@82 2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 2885 for as_dir in $PATH
Chris@82 2886 do
Chris@82 2887 IFS=$as_save_IFS
Chris@82 2888 test -z "$as_dir" && as_dir=.
Chris@82 2889 # Account for people who put trailing slashes in PATH elements.
Chris@82 2890 case $as_dir/ in #((
Chris@82 2891 ./ | .// | /[cC]/* | \
Chris@82 2892 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Chris@82 2893 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Chris@82 2894 /usr/ucb/* ) ;;
Chris@82 2895 *)
Chris@82 2896 # OSF1 and SCO ODT 3.0 have their own names for install.
Chris@82 2897 # Don't use installbsd from OSF since it installs stuff as root
Chris@82 2898 # by default.
Chris@82 2899 for ac_prog in ginstall scoinst install; do
Chris@82 2900 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 2901 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Chris@82 2902 if test $ac_prog = install &&
Chris@82 2903 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Chris@82 2904 # AIX install. It has an incompatible calling convention.
Chris@82 2905 :
Chris@82 2906 elif test $ac_prog = install &&
Chris@82 2907 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Chris@82 2908 # program-specific install script used by HP pwplus--don't use.
Chris@82 2909 :
Chris@82 2910 else
Chris@82 2911 rm -rf conftest.one conftest.two conftest.dir
Chris@82 2912 echo one > conftest.one
Chris@82 2913 echo two > conftest.two
Chris@82 2914 mkdir conftest.dir
Chris@82 2915 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
Chris@82 2916 test -s conftest.one && test -s conftest.two &&
Chris@82 2917 test -s conftest.dir/conftest.one &&
Chris@82 2918 test -s conftest.dir/conftest.two
Chris@82 2919 then
Chris@82 2920 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
Chris@82 2921 break 3
Chris@82 2922 fi
Chris@82 2923 fi
Chris@82 2924 fi
Chris@82 2925 done
Chris@82 2926 done
Chris@82 2927 ;;
Chris@82 2928 esac
Chris@82 2929
Chris@82 2930 done
Chris@82 2931 IFS=$as_save_IFS
Chris@82 2932
Chris@82 2933 rm -rf conftest.one conftest.two conftest.dir
Chris@82 2934
Chris@82 2935 fi
Chris@82 2936 if test "${ac_cv_path_install+set}" = set; then
Chris@82 2937 INSTALL=$ac_cv_path_install
Chris@82 2938 else
Chris@82 2939 # As a last resort, use the slow shell script. Don't cache a
Chris@82 2940 # value for INSTALL within a source directory, because that will
Chris@82 2941 # break other packages using the cache if that directory is
Chris@82 2942 # removed, or if the value is a relative name.
Chris@82 2943 INSTALL=$ac_install_sh
Chris@82 2944 fi
Chris@82 2945 fi
Chris@82 2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Chris@82 2947 $as_echo "$INSTALL" >&6; }
Chris@82 2948
Chris@82 2949 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
Chris@82 2950 # It thinks the first close brace ends the variable substitution.
Chris@82 2951 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Chris@82 2952
Chris@82 2953 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Chris@82 2954
Chris@82 2955 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Chris@82 2956
Chris@82 2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
Chris@82 2958 $as_echo_n "checking whether build environment is sane... " >&6; }
Chris@82 2959 # Reject unsafe characters in $srcdir or the absolute working directory
Chris@82 2960 # name. Accept space and tab only in the latter.
Chris@82 2961 am_lf='
Chris@82 2962 '
Chris@82 2963 case `pwd` in
Chris@82 2964 *[\\\"\#\$\&\'\`$am_lf]*)
Chris@82 2965 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
Chris@82 2966 esac
Chris@82 2967 case $srcdir in
Chris@82 2968 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Chris@82 2969 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
Chris@82 2970 esac
Chris@82 2971
Chris@82 2972 # Do 'set' in a subshell so we don't clobber the current shell's
Chris@82 2973 # arguments. Must try -L first in case configure is actually a
Chris@82 2974 # symlink; some systems play weird games with the mod time of symlinks
Chris@82 2975 # (eg FreeBSD returns the mod time of the symlink's containing
Chris@82 2976 # directory).
Chris@82 2977 if (
Chris@82 2978 am_has_slept=no
Chris@82 2979 for am_try in 1 2; do
Chris@82 2980 echo "timestamp, slept: $am_has_slept" > conftest.file
Chris@82 2981 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Chris@82 2982 if test "$*" = "X"; then
Chris@82 2983 # -L didn't work.
Chris@82 2984 set X `ls -t "$srcdir/configure" conftest.file`
Chris@82 2985 fi
Chris@82 2986 if test "$*" != "X $srcdir/configure conftest.file" \
Chris@82 2987 && test "$*" != "X conftest.file $srcdir/configure"; then
Chris@82 2988
Chris@82 2989 # If neither matched, then we have a broken ls. This can happen
Chris@82 2990 # if, for instance, CONFIG_SHELL is bash and it inherits a
Chris@82 2991 # broken ls alias from the environment. This has actually
Chris@82 2992 # happened. Such a system could not be considered "sane".
Chris@82 2993 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
Chris@82 2994 alias in your environment" "$LINENO" 5
Chris@82 2995 fi
Chris@82 2996 if test "$2" = conftest.file || test $am_try -eq 2; then
Chris@82 2997 break
Chris@82 2998 fi
Chris@82 2999 # Just in case.
Chris@82 3000 sleep 1
Chris@82 3001 am_has_slept=yes
Chris@82 3002 done
Chris@82 3003 test "$2" = conftest.file
Chris@82 3004 )
Chris@82 3005 then
Chris@82 3006 # Ok.
Chris@82 3007 :
Chris@82 3008 else
Chris@82 3009 as_fn_error $? "newly created file is older than distributed files!
Chris@82 3010 Check your system clock" "$LINENO" 5
Chris@82 3011 fi
Chris@82 3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@82 3013 $as_echo "yes" >&6; }
Chris@82 3014 # If we didn't sleep, we still need to ensure time stamps of config.status and
Chris@82 3015 # generated files are strictly newer.
Chris@82 3016 am_sleep_pid=
Chris@82 3017 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
Chris@82 3018 ( sleep 1 ) &
Chris@82 3019 am_sleep_pid=$!
Chris@82 3020 fi
Chris@82 3021
Chris@82 3022 rm -f conftest.file
Chris@82 3023
Chris@82 3024 test "$program_prefix" != NONE &&
Chris@82 3025 program_transform_name="s&^&$program_prefix&;$program_transform_name"
Chris@82 3026 # Use a double $ so make ignores it.
Chris@82 3027 test "$program_suffix" != NONE &&
Chris@82 3028 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Chris@82 3029 # Double any \ or $.
Chris@82 3030 # By default was `s,x,x', remove it if useless.
Chris@82 3031 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
Chris@82 3032 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Chris@82 3033
Chris@82 3034 # Expand $ac_aux_dir to an absolute path.
Chris@82 3035 am_aux_dir=`cd "$ac_aux_dir" && pwd`
Chris@82 3036
Chris@82 3037 if test x"${MISSING+set}" != xset; then
Chris@82 3038 case $am_aux_dir in
Chris@82 3039 *\ * | *\ *)
Chris@82 3040 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
Chris@82 3041 *)
Chris@82 3042 MISSING="\${SHELL} $am_aux_dir/missing" ;;
Chris@82 3043 esac
Chris@82 3044 fi
Chris@82 3045 # Use eval to expand $SHELL
Chris@82 3046 if eval "$MISSING --is-lightweight"; then
Chris@82 3047 am_missing_run="$MISSING "
Chris@82 3048 else
Chris@82 3049 am_missing_run=
Chris@82 3050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
Chris@82 3051 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
Chris@82 3052 fi
Chris@82 3053
Chris@82 3054 if test x"${install_sh+set}" != xset; then
Chris@82 3055 case $am_aux_dir in
Chris@82 3056 *\ * | *\ *)
Chris@82 3057 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
Chris@82 3058 *)
Chris@82 3059 install_sh="\${SHELL} $am_aux_dir/install-sh"
Chris@82 3060 esac
Chris@82 3061 fi
Chris@82 3062
Chris@82 3063 # Installed binaries are usually stripped using 'strip' when the user
Chris@82 3064 # run "make install-strip". However 'strip' might not be the right
Chris@82 3065 # tool to use in cross-compilation environments, therefore Automake
Chris@82 3066 # will honor the 'STRIP' environment variable to overrule this program.
Chris@82 3067 if test "$cross_compiling" != no; then
Chris@82 3068 if test -n "$ac_tool_prefix"; then
Chris@82 3069 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
Chris@82 3070 set dummy ${ac_tool_prefix}strip; ac_word=$2
Chris@82 3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 3072 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 3073 if ${ac_cv_prog_STRIP+:} false; then :
Chris@82 3074 $as_echo_n "(cached) " >&6
Chris@82 3075 else
Chris@82 3076 if test -n "$STRIP"; then
Chris@82 3077 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
Chris@82 3078 else
Chris@82 3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 3080 for as_dir in $PATH
Chris@82 3081 do
Chris@82 3082 IFS=$as_save_IFS
Chris@82 3083 test -z "$as_dir" && as_dir=.
Chris@82 3084 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 3085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 3086 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Chris@82 3087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 3088 break 2
Chris@82 3089 fi
Chris@82 3090 done
Chris@82 3091 done
Chris@82 3092 IFS=$as_save_IFS
Chris@82 3093
Chris@82 3094 fi
Chris@82 3095 fi
Chris@82 3096 STRIP=$ac_cv_prog_STRIP
Chris@82 3097 if test -n "$STRIP"; then
Chris@82 3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Chris@82 3099 $as_echo "$STRIP" >&6; }
Chris@82 3100 else
Chris@82 3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 3102 $as_echo "no" >&6; }
Chris@82 3103 fi
Chris@82 3104
Chris@82 3105
Chris@82 3106 fi
Chris@82 3107 if test -z "$ac_cv_prog_STRIP"; then
Chris@82 3108 ac_ct_STRIP=$STRIP
Chris@82 3109 # Extract the first word of "strip", so it can be a program name with args.
Chris@82 3110 set dummy strip; ac_word=$2
Chris@82 3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 3112 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 3113 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Chris@82 3114 $as_echo_n "(cached) " >&6
Chris@82 3115 else
Chris@82 3116 if test -n "$ac_ct_STRIP"; then
Chris@82 3117 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Chris@82 3118 else
Chris@82 3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 3120 for as_dir in $PATH
Chris@82 3121 do
Chris@82 3122 IFS=$as_save_IFS
Chris@82 3123 test -z "$as_dir" && as_dir=.
Chris@82 3124 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 3125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 3126 ac_cv_prog_ac_ct_STRIP="strip"
Chris@82 3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 3128 break 2
Chris@82 3129 fi
Chris@82 3130 done
Chris@82 3131 done
Chris@82 3132 IFS=$as_save_IFS
Chris@82 3133
Chris@82 3134 fi
Chris@82 3135 fi
Chris@82 3136 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
Chris@82 3137 if test -n "$ac_ct_STRIP"; then
Chris@82 3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Chris@82 3139 $as_echo "$ac_ct_STRIP" >&6; }
Chris@82 3140 else
Chris@82 3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 3142 $as_echo "no" >&6; }
Chris@82 3143 fi
Chris@82 3144
Chris@82 3145 if test "x$ac_ct_STRIP" = x; then
Chris@82 3146 STRIP=":"
Chris@82 3147 else
Chris@82 3148 case $cross_compiling:$ac_tool_warned in
Chris@82 3149 yes:)
Chris@82 3150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@82 3151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@82 3152 ac_tool_warned=yes ;;
Chris@82 3153 esac
Chris@82 3154 STRIP=$ac_ct_STRIP
Chris@82 3155 fi
Chris@82 3156 else
Chris@82 3157 STRIP="$ac_cv_prog_STRIP"
Chris@82 3158 fi
Chris@82 3159
Chris@82 3160 fi
Chris@82 3161 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
Chris@82 3162
Chris@82 3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
Chris@82 3164 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
Chris@82 3165 if test -z "$MKDIR_P"; then
Chris@82 3166 if ${ac_cv_path_mkdir+:} false; then :
Chris@82 3167 $as_echo_n "(cached) " >&6
Chris@82 3168 else
Chris@82 3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 3170 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
Chris@82 3171 do
Chris@82 3172 IFS=$as_save_IFS
Chris@82 3173 test -z "$as_dir" && as_dir=.
Chris@82 3174 for ac_prog in mkdir gmkdir; do
Chris@82 3175 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 3176 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Chris@82 3177 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
Chris@82 3178 'mkdir (GNU coreutils) '* | \
Chris@82 3179 'mkdir (coreutils) '* | \
Chris@82 3180 'mkdir (fileutils) '4.1*)
Chris@82 3181 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
Chris@82 3182 break 3;;
Chris@82 3183 esac
Chris@82 3184 done
Chris@82 3185 done
Chris@82 3186 done
Chris@82 3187 IFS=$as_save_IFS
Chris@82 3188
Chris@82 3189 fi
Chris@82 3190
Chris@82 3191 test -d ./--version && rmdir ./--version
Chris@82 3192 if test "${ac_cv_path_mkdir+set}" = set; then
Chris@82 3193 MKDIR_P="$ac_cv_path_mkdir -p"
Chris@82 3194 else
Chris@82 3195 # As a last resort, use the slow shell script. Don't cache a
Chris@82 3196 # value for MKDIR_P within a source directory, because that will
Chris@82 3197 # break other packages using the cache if that directory is
Chris@82 3198 # removed, or if the value is a relative name.
Chris@82 3199 MKDIR_P="$ac_install_sh -d"
Chris@82 3200 fi
Chris@82 3201 fi
Chris@82 3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
Chris@82 3203 $as_echo "$MKDIR_P" >&6; }
Chris@82 3204
Chris@82 3205 for ac_prog in gawk mawk nawk awk
Chris@82 3206 do
Chris@82 3207 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@82 3208 set dummy $ac_prog; ac_word=$2
Chris@82 3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 3210 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 3211 if ${ac_cv_prog_AWK+:} false; then :
Chris@82 3212 $as_echo_n "(cached) " >&6
Chris@82 3213 else
Chris@82 3214 if test -n "$AWK"; then
Chris@82 3215 ac_cv_prog_AWK="$AWK" # Let the user override the test.
Chris@82 3216 else
Chris@82 3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 3218 for as_dir in $PATH
Chris@82 3219 do
Chris@82 3220 IFS=$as_save_IFS
Chris@82 3221 test -z "$as_dir" && as_dir=.
Chris@82 3222 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 3223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 3224 ac_cv_prog_AWK="$ac_prog"
Chris@82 3225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 3226 break 2
Chris@82 3227 fi
Chris@82 3228 done
Chris@82 3229 done
Chris@82 3230 IFS=$as_save_IFS
Chris@82 3231
Chris@82 3232 fi
Chris@82 3233 fi
Chris@82 3234 AWK=$ac_cv_prog_AWK
Chris@82 3235 if test -n "$AWK"; then
Chris@82 3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Chris@82 3237 $as_echo "$AWK" >&6; }
Chris@82 3238 else
Chris@82 3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 3240 $as_echo "no" >&6; }
Chris@82 3241 fi
Chris@82 3242
Chris@82 3243
Chris@82 3244 test -n "$AWK" && break
Chris@82 3245 done
Chris@82 3246
Chris@82 3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Chris@82 3248 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
Chris@82 3249 set x ${MAKE-make}
Chris@82 3250 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Chris@82 3251 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Chris@82 3252 $as_echo_n "(cached) " >&6
Chris@82 3253 else
Chris@82 3254 cat >conftest.make <<\_ACEOF
Chris@82 3255 SHELL = /bin/sh
Chris@82 3256 all:
Chris@82 3257 @echo '@@@%%%=$(MAKE)=@@@%%%'
Chris@82 3258 _ACEOF
Chris@82 3259 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Chris@82 3260 case `${MAKE-make} -f conftest.make 2>/dev/null` in
Chris@82 3261 *@@@%%%=?*=@@@%%%*)
Chris@82 3262 eval ac_cv_prog_make_${ac_make}_set=yes;;
Chris@82 3263 *)
Chris@82 3264 eval ac_cv_prog_make_${ac_make}_set=no;;
Chris@82 3265 esac
Chris@82 3266 rm -f conftest.make
Chris@82 3267 fi
Chris@82 3268 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Chris@82 3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@82 3270 $as_echo "yes" >&6; }
Chris@82 3271 SET_MAKE=
Chris@82 3272 else
Chris@82 3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 3274 $as_echo "no" >&6; }
Chris@82 3275 SET_MAKE="MAKE=${MAKE-make}"
Chris@82 3276 fi
Chris@82 3277
Chris@82 3278 rm -rf .tst 2>/dev/null
Chris@82 3279 mkdir .tst 2>/dev/null
Chris@82 3280 if test -d .tst; then
Chris@82 3281 am__leading_dot=.
Chris@82 3282 else
Chris@82 3283 am__leading_dot=_
Chris@82 3284 fi
Chris@82 3285 rmdir .tst 2>/dev/null
Chris@82 3286
Chris@82 3287 # Check whether --enable-silent-rules was given.
Chris@82 3288 if test "${enable_silent_rules+set}" = set; then :
Chris@82 3289 enableval=$enable_silent_rules;
Chris@82 3290 fi
Chris@82 3291
Chris@82 3292 case $enable_silent_rules in # (((
Chris@82 3293 yes) AM_DEFAULT_VERBOSITY=0;;
Chris@82 3294 no) AM_DEFAULT_VERBOSITY=1;;
Chris@82 3295 *) AM_DEFAULT_VERBOSITY=1;;
Chris@82 3296 esac
Chris@82 3297 am_make=${MAKE-make}
Chris@82 3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
Chris@82 3299 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
Chris@82 3300 if ${am_cv_make_support_nested_variables+:} false; then :
Chris@82 3301 $as_echo_n "(cached) " >&6
Chris@82 3302 else
Chris@82 3303 if $as_echo 'TRUE=$(BAR$(V))
Chris@82 3304 BAR0=false
Chris@82 3305 BAR1=true
Chris@82 3306 V=1
Chris@82 3307 am__doit:
Chris@82 3308 @$(TRUE)
Chris@82 3309 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
Chris@82 3310 am_cv_make_support_nested_variables=yes
Chris@82 3311 else
Chris@82 3312 am_cv_make_support_nested_variables=no
Chris@82 3313 fi
Chris@82 3314 fi
Chris@82 3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
Chris@82 3316 $as_echo "$am_cv_make_support_nested_variables" >&6; }
Chris@82 3317 if test $am_cv_make_support_nested_variables = yes; then
Chris@82 3318 AM_V='$(V)'
Chris@82 3319 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
Chris@82 3320 else
Chris@82 3321 AM_V=$AM_DEFAULT_VERBOSITY
Chris@82 3322 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
Chris@82 3323 fi
Chris@82 3324 AM_BACKSLASH='\'
Chris@82 3325
Chris@82 3326 if test "`cd $srcdir && pwd`" != "`pwd`"; then
Chris@82 3327 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
Chris@82 3328 # is not polluted with repeated "-I."
Chris@82 3329 am__isrc=' -I$(srcdir)'
Chris@82 3330 # test to see if srcdir already configured
Chris@82 3331 if test -f $srcdir/config.status; then
Chris@82 3332 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Chris@82 3333 fi
Chris@82 3334 fi
Chris@82 3335
Chris@82 3336 # test whether we have cygpath
Chris@82 3337 if test -z "$CYGPATH_W"; then
Chris@82 3338 if (cygpath --version) >/dev/null 2>/dev/null; then
Chris@82 3339 CYGPATH_W='cygpath -w'
Chris@82 3340 else
Chris@82 3341 CYGPATH_W=echo
Chris@82 3342 fi
Chris@82 3343 fi
Chris@82 3344
Chris@82 3345
Chris@82 3346 # Define the identity of the package.
Chris@82 3347 PACKAGE='fftw'
Chris@82 3348 VERSION='3.3.8'
Chris@82 3349
Chris@82 3350
Chris@82 3351 cat >>confdefs.h <<_ACEOF
Chris@82 3352 #define PACKAGE "$PACKAGE"
Chris@82 3353 _ACEOF
Chris@82 3354
Chris@82 3355
Chris@82 3356 cat >>confdefs.h <<_ACEOF
Chris@82 3357 #define VERSION "$VERSION"
Chris@82 3358 _ACEOF
Chris@82 3359
Chris@82 3360 # Some tools Automake needs.
Chris@82 3361
Chris@82 3362 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
Chris@82 3363
Chris@82 3364
Chris@82 3365 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
Chris@82 3366
Chris@82 3367
Chris@82 3368 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
Chris@82 3369
Chris@82 3370
Chris@82 3371 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
Chris@82 3372
Chris@82 3373
Chris@82 3374 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
Chris@82 3375
Chris@82 3376 # For better backward compatibility. To be removed once Automake 1.9.x
Chris@82 3377 # dies out for good. For more background, see:
Chris@82 3378 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
Chris@82 3379 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
Chris@82 3380 mkdir_p='$(MKDIR_P)'
Chris@82 3381
Chris@82 3382 # We need awk for the "check" target (and possibly the TAP driver). The
Chris@82 3383 # system "awk" is bad on some platforms.
Chris@82 3384 # Always define AMTAR for backward compatibility. Yes, it's still used
Chris@82 3385 # in the wild :-( We should find a proper way to deprecate it ...
Chris@82 3386 AMTAR='$${TAR-tar}'
Chris@82 3387
Chris@82 3388
Chris@82 3389 # We'll loop over all known methods to create a tar archive until one works.
Chris@82 3390 _am_tools='gnutar pax cpio none'
Chris@82 3391
Chris@82 3392 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
Chris@82 3393
Chris@82 3394
Chris@82 3395
Chris@82 3396
Chris@82 3397
Chris@82 3398
Chris@82 3399 # POSIX will say in a future version that running "rm -f" with no argument
Chris@82 3400 # is OK; and we want to be able to make that assumption in our Makefile
Chris@82 3401 # recipes. So use an aggressive probe to check that the usage we want is
Chris@82 3402 # actually supported "in the wild" to an acceptable degree.
Chris@82 3403 # See automake bug#10828.
Chris@82 3404 # To make any issue more visible, cause the running configure to be aborted
Chris@82 3405 # by default if the 'rm' program in use doesn't match our expectations; the
Chris@82 3406 # user can still override this though.
Chris@82 3407 if rm -f && rm -fr && rm -rf; then : OK; else
Chris@82 3408 cat >&2 <<'END'
Chris@82 3409 Oops!
Chris@82 3410
Chris@82 3411 Your 'rm' program seems unable to run without file operands specified
Chris@82 3412 on the command line, even when the '-f' option is present. This is contrary
Chris@82 3413 to the behaviour of most rm programs out there, and not conforming with
Chris@82 3414 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
Chris@82 3415
Chris@82 3416 Please tell bug-automake@gnu.org about your system, including the value
Chris@82 3417 of your $PATH and any error possibly output before this message. This
Chris@82 3418 can help us improve future automake versions.
Chris@82 3419
Chris@82 3420 END
Chris@82 3421 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
Chris@82 3422 echo 'Configuration will proceed anyway, since you have set the' >&2
Chris@82 3423 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
Chris@82 3424 echo >&2
Chris@82 3425 else
Chris@82 3426 cat >&2 <<'END'
Chris@82 3427 Aborting the configuration process, to ensure you take notice of the issue.
Chris@82 3428
Chris@82 3429 You can download and install GNU coreutils to get an 'rm' implementation
Chris@82 3430 that behaves properly: <http://www.gnu.org/software/coreutils/>.
Chris@82 3431
Chris@82 3432 If you want to complete the configuration process using your problematic
Chris@82 3433 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
Chris@82 3434 to "yes", and re-run configure.
Chris@82 3435
Chris@82 3436 END
Chris@82 3437 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
Chris@82 3438 fi
Chris@82 3439 fi
Chris@82 3440
Chris@82 3441 ac_config_headers="$ac_config_headers config.h"
Chris@82 3442
Chris@82 3443
Chris@82 3444
Chris@82 3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
Chris@82 3446 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
Chris@82 3447 # Check whether --enable-maintainer-mode was given.
Chris@82 3448 if test "${enable_maintainer_mode+set}" = set; then :
Chris@82 3449 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
Chris@82 3450 else
Chris@82 3451 USE_MAINTAINER_MODE=no
Chris@82 3452 fi
Chris@82 3453
Chris@82 3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
Chris@82 3455 $as_echo "$USE_MAINTAINER_MODE" >&6; }
Chris@82 3456 if test $USE_MAINTAINER_MODE = yes; then
Chris@82 3457 MAINTAINER_MODE_TRUE=
Chris@82 3458 MAINTAINER_MODE_FALSE='#'
Chris@82 3459 else
Chris@82 3460 MAINTAINER_MODE_TRUE='#'
Chris@82 3461 MAINTAINER_MODE_FALSE=
Chris@82 3462 fi
Chris@82 3463
Chris@82 3464 MAINT=$MAINTAINER_MODE_TRUE
Chris@82 3465
Chris@82 3466
Chris@82 3467
Chris@82 3468 # Check whether --enable-shared was given.
Chris@82 3469 if test "${enable_shared+set}" = set; then :
Chris@82 3470 enableval=$enable_shared; p=${PACKAGE-default}
Chris@82 3471 case $enableval in
Chris@82 3472 yes) enable_shared=yes ;;
Chris@82 3473 no) enable_shared=no ;;
Chris@82 3474 *)
Chris@82 3475 enable_shared=no
Chris@82 3476 # Look at the argument we got. We use all the common list separators.
Chris@82 3477 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Chris@82 3478 for pkg in $enableval; do
Chris@82 3479 IFS=$lt_save_ifs
Chris@82 3480 if test "X$pkg" = "X$p"; then
Chris@82 3481 enable_shared=yes
Chris@82 3482 fi
Chris@82 3483 done
Chris@82 3484 IFS=$lt_save_ifs
Chris@82 3485 ;;
Chris@82 3486 esac
Chris@82 3487 else
Chris@82 3488 enable_shared=no
Chris@82 3489 fi
Chris@82 3490
Chris@82 3491
Chris@82 3492
Chris@82 3493
Chris@82 3494
Chris@82 3495
Chris@82 3496
Chris@82 3497
Chris@82 3498 # Make sure we can run config.sub.
Chris@82 3499 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Chris@82 3500 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Chris@82 3501
Chris@82 3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Chris@82 3503 $as_echo_n "checking build system type... " >&6; }
Chris@82 3504 if ${ac_cv_build+:} false; then :
Chris@82 3505 $as_echo_n "(cached) " >&6
Chris@82 3506 else
Chris@82 3507 ac_build_alias=$build_alias
Chris@82 3508 test "x$ac_build_alias" = x &&
Chris@82 3509 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
Chris@82 3510 test "x$ac_build_alias" = x &&
Chris@82 3511 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Chris@82 3512 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Chris@82 3513 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Chris@82 3514
Chris@82 3515 fi
Chris@82 3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Chris@82 3517 $as_echo "$ac_cv_build" >&6; }
Chris@82 3518 case $ac_cv_build in
Chris@82 3519 *-*-*) ;;
Chris@82 3520 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Chris@82 3521 esac
Chris@82 3522 build=$ac_cv_build
Chris@82 3523 ac_save_IFS=$IFS; IFS='-'
Chris@82 3524 set x $ac_cv_build
Chris@82 3525 shift
Chris@82 3526 build_cpu=$1
Chris@82 3527 build_vendor=$2
Chris@82 3528 shift; shift
Chris@82 3529 # Remember, the first character of IFS is used to create $*,
Chris@82 3530 # except with old shells:
Chris@82 3531 build_os=$*
Chris@82 3532 IFS=$ac_save_IFS
Chris@82 3533 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Chris@82 3534
Chris@82 3535
Chris@82 3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Chris@82 3537 $as_echo_n "checking host system type... " >&6; }
Chris@82 3538 if ${ac_cv_host+:} false; then :
Chris@82 3539 $as_echo_n "(cached) " >&6
Chris@82 3540 else
Chris@82 3541 if test "x$host_alias" = x; then
Chris@82 3542 ac_cv_host=$ac_cv_build
Chris@82 3543 else
Chris@82 3544 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Chris@82 3545 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Chris@82 3546 fi
Chris@82 3547
Chris@82 3548 fi
Chris@82 3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Chris@82 3550 $as_echo "$ac_cv_host" >&6; }
Chris@82 3551 case $ac_cv_host in
Chris@82 3552 *-*-*) ;;
Chris@82 3553 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Chris@82 3554 esac
Chris@82 3555 host=$ac_cv_host
Chris@82 3556 ac_save_IFS=$IFS; IFS='-'
Chris@82 3557 set x $ac_cv_host
Chris@82 3558 shift
Chris@82 3559 host_cpu=$1
Chris@82 3560 host_vendor=$2
Chris@82 3561 shift; shift
Chris@82 3562 # Remember, the first character of IFS is used to create $*,
Chris@82 3563 # except with old shells:
Chris@82 3564 host_os=$*
Chris@82 3565 IFS=$ac_save_IFS
Chris@82 3566 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Chris@82 3567
Chris@82 3568
Chris@82 3569
Chris@82 3570 case "${host_cpu}" in
Chris@82 3571 powerpc*) arch_prefers_fma=yes;;
Chris@82 3572 ia64*) arch_prefers_fma=yes;;
Chris@82 3573 hppa*) arch_prefers_fma=yes;;
Chris@82 3574 mips64*) arch_prefers_fma=yes;;
Chris@82 3575 *) arch_prefers_fma=no;;
Chris@82 3576 esac
Chris@82 3577
Chris@82 3578 # Check whether --enable-debug was given.
Chris@82 3579 if test "${enable_debug+set}" = set; then :
Chris@82 3580 enableval=$enable_debug; ok=$enableval
Chris@82 3581 else
Chris@82 3582 ok=no
Chris@82 3583 fi
Chris@82 3584
Chris@82 3585 if test "$ok" = "yes"; then
Chris@82 3586
Chris@82 3587 $as_echo "#define FFTW_DEBUG 1" >>confdefs.h
Chris@82 3588
Chris@82 3589 fi
Chris@82 3590
Chris@82 3591 # Check whether --enable-doc was given.
Chris@82 3592 if test "${enable_doc+set}" = set; then :
Chris@82 3593 enableval=$enable_doc; build_doc=$enableval
Chris@82 3594 else
Chris@82 3595 build_doc=yes
Chris@82 3596 fi
Chris@82 3597
Chris@82 3598 if test x"$build_doc" = xyes; then
Chris@82 3599 BUILD_DOC_TRUE=
Chris@82 3600 BUILD_DOC_FALSE='#'
Chris@82 3601 else
Chris@82 3602 BUILD_DOC_TRUE='#'
Chris@82 3603 BUILD_DOC_FALSE=
Chris@82 3604 fi
Chris@82 3605
Chris@82 3606
Chris@82 3607 # Check whether --enable-random-estimator was given.
Chris@82 3608 if test "${enable_random_estimator+set}" = set; then :
Chris@82 3609 enableval=$enable_random_estimator; ok=$enableval
Chris@82 3610 else
Chris@82 3611 ok=no
Chris@82 3612 fi
Chris@82 3613
Chris@82 3614 if test "$ok" = "yes"; then
Chris@82 3615
Chris@82 3616 $as_echo "#define FFTW_RANDOM_ESTIMATOR 1" >>confdefs.h
Chris@82 3617
Chris@82 3618 CHECK_PL_OPTS="--estimate"
Chris@82 3619 fi
Chris@82 3620
Chris@82 3621 # Check whether --enable-alloca was given.
Chris@82 3622 if test "${enable_alloca+set}" = set; then :
Chris@82 3623 enableval=$enable_alloca; ok=$enableval
Chris@82 3624 else
Chris@82 3625 ok=yes
Chris@82 3626 fi
Chris@82 3627
Chris@82 3628 if test "$ok" = "yes"; then
Chris@82 3629
Chris@82 3630 $as_echo "#define FFTW_ENABLE_ALLOCA 1" >>confdefs.h
Chris@82 3631
Chris@82 3632 fi
Chris@82 3633
Chris@82 3634 # Check whether --enable-single was given.
Chris@82 3635 if test "${enable_single+set}" = set; then :
Chris@82 3636 enableval=$enable_single; ok=$enableval
Chris@82 3637 else
Chris@82 3638 ok=no
Chris@82 3639 fi
Chris@82 3640
Chris@82 3641 # Check whether --enable-float was given.
Chris@82 3642 if test "${enable_float+set}" = set; then :
Chris@82 3643 enableval=$enable_float; ok=$enableval
Chris@82 3644 fi
Chris@82 3645
Chris@82 3646 if test "$ok" = "yes"; then
Chris@82 3647
Chris@82 3648 $as_echo "#define FFTW_SINGLE 1" >>confdefs.h
Chris@82 3649
Chris@82 3650
Chris@82 3651 $as_echo "#define BENCHFFT_SINGLE 1" >>confdefs.h
Chris@82 3652
Chris@82 3653 PRECISION=s
Chris@82 3654 else
Chris@82 3655 PRECISION=d
Chris@82 3656 fi
Chris@82 3657 if test "$ok" = "yes"; then
Chris@82 3658 SINGLE_TRUE=
Chris@82 3659 SINGLE_FALSE='#'
Chris@82 3660 else
Chris@82 3661 SINGLE_TRUE='#'
Chris@82 3662 SINGLE_FALSE=
Chris@82 3663 fi
Chris@82 3664
Chris@82 3665
Chris@82 3666 # Check whether --enable-long-double was given.
Chris@82 3667 if test "${enable_long_double+set}" = set; then :
Chris@82 3668 enableval=$enable_long_double; ok=$enableval
Chris@82 3669 else
Chris@82 3670 ok=no
Chris@82 3671 fi
Chris@82 3672
Chris@82 3673 if test "$ok" = "yes"; then
Chris@82 3674 if test "$PRECISION" = "s"; then
Chris@82 3675 as_fn_error $? "--enable-single/--enable-long-double conflict" "$LINENO" 5
Chris@82 3676 fi
Chris@82 3677
Chris@82 3678 $as_echo "#define FFTW_LDOUBLE 1" >>confdefs.h
Chris@82 3679
Chris@82 3680
Chris@82 3681 $as_echo "#define BENCHFFT_LDOUBLE 1" >>confdefs.h
Chris@82 3682
Chris@82 3683 PRECISION=l
Chris@82 3684 fi
Chris@82 3685 if test "$ok" = "yes"; then
Chris@82 3686 LDOUBLE_TRUE=
Chris@82 3687 LDOUBLE_FALSE='#'
Chris@82 3688 else
Chris@82 3689 LDOUBLE_TRUE='#'
Chris@82 3690 LDOUBLE_FALSE=
Chris@82 3691 fi
Chris@82 3692
Chris@82 3693
Chris@82 3694 # Check whether --enable-quad-precision was given.
Chris@82 3695 if test "${enable_quad_precision+set}" = set; then :
Chris@82 3696 enableval=$enable_quad_precision; ok=$enableval
Chris@82 3697 else
Chris@82 3698 ok=no
Chris@82 3699 fi
Chris@82 3700
Chris@82 3701 if test "$ok" = "yes"; then
Chris@82 3702 if test "$PRECISION" != "d"; then
Chris@82 3703 as_fn_error $? "conflicting precisions specified" "$LINENO" 5
Chris@82 3704 fi
Chris@82 3705
Chris@82 3706 $as_echo "#define FFTW_QUAD 1" >>confdefs.h
Chris@82 3707
Chris@82 3708
Chris@82 3709 $as_echo "#define BENCHFFT_QUAD 1" >>confdefs.h
Chris@82 3710
Chris@82 3711 PRECISION=q
Chris@82 3712 fi
Chris@82 3713 if test "$ok" = "yes"; then
Chris@82 3714 QUAD_TRUE=
Chris@82 3715 QUAD_FALSE='#'
Chris@82 3716 else
Chris@82 3717 QUAD_TRUE='#'
Chris@82 3718 QUAD_FALSE=
Chris@82 3719 fi
Chris@82 3720
Chris@82 3721
Chris@82 3722
Chris@82 3723
Chris@82 3724
Chris@82 3725 # Check whether --enable-sse was given.
Chris@82 3726 if test "${enable_sse+set}" = set; then :
Chris@82 3727 enableval=$enable_sse; have_sse=$enableval
Chris@82 3728 else
Chris@82 3729 have_sse=no
Chris@82 3730 fi
Chris@82 3731
Chris@82 3732 if test "$have_sse" = "yes"; then
Chris@82 3733 if test "$PRECISION" != "s"; then
Chris@82 3734 as_fn_error $? "SSE requires single precision" "$LINENO" 5
Chris@82 3735 fi
Chris@82 3736 fi
Chris@82 3737
Chris@82 3738 # Check whether --enable-sse2 was given.
Chris@82 3739 if test "${enable_sse2+set}" = set; then :
Chris@82 3740 enableval=$enable_sse2; have_sse2=$enableval
Chris@82 3741 else
Chris@82 3742 have_sse2=no
Chris@82 3743 fi
Chris@82 3744
Chris@82 3745 if test "$have_sse" = "yes"; then have_sse2=yes; fi
Chris@82 3746 if test "$have_sse2" = "yes"; then
Chris@82 3747
Chris@82 3748 $as_echo "#define HAVE_SSE2 1" >>confdefs.h
Chris@82 3749
Chris@82 3750 if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then
Chris@82 3751 as_fn_error $? "SSE2 requires single or double precision" "$LINENO" 5
Chris@82 3752 fi
Chris@82 3753 fi
Chris@82 3754 if test "$have_sse2" = "yes"; then
Chris@82 3755 HAVE_SSE2_TRUE=
Chris@82 3756 HAVE_SSE2_FALSE='#'
Chris@82 3757 else
Chris@82 3758 HAVE_SSE2_TRUE='#'
Chris@82 3759 HAVE_SSE2_FALSE=
Chris@82 3760 fi
Chris@82 3761
Chris@82 3762
Chris@82 3763 # Check whether --enable-avx was given.
Chris@82 3764 if test "${enable_avx+set}" = set; then :
Chris@82 3765 enableval=$enable_avx; have_avx=$enableval
Chris@82 3766 else
Chris@82 3767 have_avx=no
Chris@82 3768 fi
Chris@82 3769
Chris@82 3770 if test "$have_avx" = "yes"; then
Chris@82 3771
Chris@82 3772 $as_echo "#define HAVE_AVX 1" >>confdefs.h
Chris@82 3773
Chris@82 3774 if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then
Chris@82 3775 as_fn_error $? "AVX requires single or double precision" "$LINENO" 5
Chris@82 3776 fi
Chris@82 3777 fi
Chris@82 3778 if test "$have_avx" = "yes"; then
Chris@82 3779 HAVE_AVX_TRUE=
Chris@82 3780 HAVE_AVX_FALSE='#'
Chris@82 3781 else
Chris@82 3782 HAVE_AVX_TRUE='#'
Chris@82 3783 HAVE_AVX_FALSE=
Chris@82 3784 fi
Chris@82 3785
Chris@82 3786
Chris@82 3787 # Check whether --enable-avx2 was given.
Chris@82 3788 if test "${enable_avx2+set}" = set; then :
Chris@82 3789 enableval=$enable_avx2; have_avx2=$enableval
Chris@82 3790 else
Chris@82 3791 have_avx2=no
Chris@82 3792 fi
Chris@82 3793
Chris@82 3794 if test "$have_avx2" = "yes"; then
Chris@82 3795
Chris@82 3796 $as_echo "#define HAVE_AVX2 1" >>confdefs.h
Chris@82 3797
Chris@82 3798 if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then
Chris@82 3799 as_fn_error $? "AVX2 requires single or double precision" "$LINENO" 5
Chris@82 3800 fi
Chris@82 3801 fi
Chris@82 3802 if test "$have_avx2" = "yes"; then
Chris@82 3803 HAVE_AVX2_TRUE=
Chris@82 3804 HAVE_AVX2_FALSE='#'
Chris@82 3805 else
Chris@82 3806 HAVE_AVX2_TRUE='#'
Chris@82 3807 HAVE_AVX2_FALSE=
Chris@82 3808 fi
Chris@82 3809
Chris@82 3810
Chris@82 3811 # Check whether --enable-avx512 was given.
Chris@82 3812 if test "${enable_avx512+set}" = set; then :
Chris@82 3813 enableval=$enable_avx512; have_avx512=$enableval
Chris@82 3814 else
Chris@82 3815 have_avx512=no
Chris@82 3816 fi
Chris@82 3817
Chris@82 3818 if test "$have_avx512" = "yes"; then
Chris@82 3819
Chris@82 3820 $as_echo "#define HAVE_AVX512 1" >>confdefs.h
Chris@82 3821
Chris@82 3822 if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then
Chris@82 3823 as_fn_error $? "AVX512 requires single or double precision" "$LINENO" 5
Chris@82 3824 fi
Chris@82 3825 fi
Chris@82 3826 if test "$have_avx512" = "yes"; then
Chris@82 3827 HAVE_AVX512_TRUE=
Chris@82 3828 HAVE_AVX512_FALSE='#'
Chris@82 3829 else
Chris@82 3830 HAVE_AVX512_TRUE='#'
Chris@82 3831 HAVE_AVX512_FALSE=
Chris@82 3832 fi
Chris@82 3833
Chris@82 3834
Chris@82 3835 # Check whether --enable-avx-128-fma was given.
Chris@82 3836 if test "${enable_avx_128_fma+set}" = set; then :
Chris@82 3837 enableval=$enable_avx_128_fma; have_avx_128_fma=$enableval
Chris@82 3838 else
Chris@82 3839 have_avx_128_fma=no
Chris@82 3840 fi
Chris@82 3841
Chris@82 3842 if test "$have_avx_128_fma" = "yes"; then
Chris@82 3843
Chris@82 3844 $as_echo "#define HAVE_AVX_128_FMA 1" >>confdefs.h
Chris@82 3845
Chris@82 3846 AVX_128_FMA_CFLAGS="${AVX_CFLAGS} -mfma4"
Chris@82 3847
Chris@82 3848 fi
Chris@82 3849 if test "$have_avx_128_fma" = "yes"; then
Chris@82 3850 HAVE_AVX_128_FMA_TRUE=
Chris@82 3851 HAVE_AVX_128_FMA_FALSE='#'
Chris@82 3852 else
Chris@82 3853 HAVE_AVX_128_FMA_TRUE='#'
Chris@82 3854 HAVE_AVX_128_FMA_FALSE=
Chris@82 3855 fi
Chris@82 3856
Chris@82 3857
Chris@82 3858 # Check whether --enable-kcvi was given.
Chris@82 3859 if test "${enable_kcvi+set}" = set; then :
Chris@82 3860 enableval=$enable_kcvi; have_kcvi=$enableval
Chris@82 3861 else
Chris@82 3862 have_kcvi=no
Chris@82 3863 fi
Chris@82 3864
Chris@82 3865 if test "$have_kcvi" = "yes"; then
Chris@82 3866
Chris@82 3867 $as_echo "#define HAVE_KCVI 1" >>confdefs.h
Chris@82 3868
Chris@82 3869 if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then
Chris@82 3870 as_fn_error $? "Knights Corner vector instructions requires single or double precision" "$LINENO" 5
Chris@82 3871 fi
Chris@82 3872 fi
Chris@82 3873 if test "$have_kcvi" = "yes"; then
Chris@82 3874 HAVE_KCVI_TRUE=
Chris@82 3875 HAVE_KCVI_FALSE='#'
Chris@82 3876 else
Chris@82 3877 HAVE_KCVI_TRUE='#'
Chris@82 3878 HAVE_KCVI_FALSE=
Chris@82 3879 fi
Chris@82 3880
Chris@82 3881
Chris@82 3882 # Check whether --enable-altivec was given.
Chris@82 3883 if test "${enable_altivec+set}" = set; then :
Chris@82 3884 enableval=$enable_altivec; have_altivec=$enableval
Chris@82 3885 else
Chris@82 3886 have_altivec=no
Chris@82 3887 fi
Chris@82 3888
Chris@82 3889 if test "$have_altivec" = "yes"; then
Chris@82 3890
Chris@82 3891 $as_echo "#define HAVE_ALTIVEC 1" >>confdefs.h
Chris@82 3892
Chris@82 3893 if test "$PRECISION" != "s"; then
Chris@82 3894 as_fn_error $? "Altivec requires single precision" "$LINENO" 5
Chris@82 3895 fi
Chris@82 3896 fi
Chris@82 3897 if test "$have_altivec" = "yes"; then
Chris@82 3898 HAVE_ALTIVEC_TRUE=
Chris@82 3899 HAVE_ALTIVEC_FALSE='#'
Chris@82 3900 else
Chris@82 3901 HAVE_ALTIVEC_TRUE='#'
Chris@82 3902 HAVE_ALTIVEC_FALSE=
Chris@82 3903 fi
Chris@82 3904
Chris@82 3905
Chris@82 3906 # Check whether --enable-vsx was given.
Chris@82 3907 if test "${enable_vsx+set}" = set; then :
Chris@82 3908 enableval=$enable_vsx; have_vsx=$enableval
Chris@82 3909 else
Chris@82 3910 have_vsx=no
Chris@82 3911 fi
Chris@82 3912
Chris@82 3913 if test "$have_vsx" = "yes"; then
Chris@82 3914
Chris@82 3915 $as_echo "#define HAVE_VSX 1" >>confdefs.h
Chris@82 3916
Chris@82 3917 fi
Chris@82 3918 if test "$have_vsx" = "yes"; then
Chris@82 3919 HAVE_VSX_TRUE=
Chris@82 3920 HAVE_VSX_FALSE='#'
Chris@82 3921 else
Chris@82 3922 HAVE_VSX_TRUE='#'
Chris@82 3923 HAVE_VSX_FALSE=
Chris@82 3924 fi
Chris@82 3925
Chris@82 3926
Chris@82 3927 # Check whether --enable-neon was given.
Chris@82 3928 if test "${enable_neon+set}" = set; then :
Chris@82 3929 enableval=$enable_neon; have_neon=$enableval
Chris@82 3930 else
Chris@82 3931 have_neon=no
Chris@82 3932 fi
Chris@82 3933
Chris@82 3934 if test "$have_neon" = "yes"; then
Chris@82 3935
Chris@82 3936 $as_echo "#define HAVE_NEON 1" >>confdefs.h
Chris@82 3937
Chris@82 3938 case "${host_cpu}" in
Chris@82 3939 aarch64)
Chris@82 3940 ;;
Chris@82 3941 *)
Chris@82 3942 if test "$PRECISION" != "s"; then
Chris@82 3943 as_fn_error $? "NEON requires single precision" "$LINENO" 5
Chris@82 3944 fi
Chris@82 3945 ;;
Chris@82 3946 esac
Chris@82 3947 fi
Chris@82 3948 if test "$have_neon" = "yes"; then
Chris@82 3949 HAVE_NEON_TRUE=
Chris@82 3950 HAVE_NEON_FALSE='#'
Chris@82 3951 else
Chris@82 3952 HAVE_NEON_TRUE='#'
Chris@82 3953 HAVE_NEON_FALSE=
Chris@82 3954 fi
Chris@82 3955
Chris@82 3956
Chris@82 3957 # Check whether --enable-armv8-pmccntr-el0 was given.
Chris@82 3958 if test "${enable_armv8_pmccntr_el0+set}" = set; then :
Chris@82 3959 enableval=$enable_armv8_pmccntr_el0; have_armv8pmccntrel0=$enableval
Chris@82 3960 fi
Chris@82 3961
Chris@82 3962 if test "$have_armv8pmccntrel0"x = "yes"x; then
Chris@82 3963
Chris@82 3964 $as_echo "#define HAVE_ARMV8_PMCCNTR_EL0 1" >>confdefs.h
Chris@82 3965
Chris@82 3966 fi
Chris@82 3967
Chris@82 3968 # Check whether --enable-armv8-cntvct-el0 was given.
Chris@82 3969 if test "${enable_armv8_cntvct_el0+set}" = set; then :
Chris@82 3970 enableval=$enable_armv8_cntvct_el0; have_armv8cntvctel0=$enableval
Chris@82 3971 fi
Chris@82 3972
Chris@82 3973 if test "$have_armv8cntvctel0"x = "yes"x; then
Chris@82 3974
Chris@82 3975 $as_echo "#define HAVE_ARMV8_CNTVCT_EL0 1" >>confdefs.h
Chris@82 3976
Chris@82 3977 fi
Chris@82 3978
Chris@82 3979 # Check whether --enable-armv7a-cntvct was given.
Chris@82 3980 if test "${enable_armv7a_cntvct+set}" = set; then :
Chris@82 3981 enableval=$enable_armv7a_cntvct; have_armv7acntvct=$enableval
Chris@82 3982 fi
Chris@82 3983
Chris@82 3984 if test "$have_armv7acntvct"x = "yes"x; then
Chris@82 3985
Chris@82 3986 $as_echo "#define HAVE_ARMV7A_CNTVCT 1" >>confdefs.h
Chris@82 3987
Chris@82 3988 fi
Chris@82 3989
Chris@82 3990 # Check whether --enable-armv7a-pmccntr was given.
Chris@82 3991 if test "${enable_armv7a_pmccntr+set}" = set; then :
Chris@82 3992 enableval=$enable_armv7a_pmccntr; have_armv7apmccntr=$enableval
Chris@82 3993 fi
Chris@82 3994
Chris@82 3995 if test "$have_armv7apmccntr"x = "yes"x; then
Chris@82 3996
Chris@82 3997 $as_echo "#define HAVE_ARMV7A_PMCCNTR 1" >>confdefs.h
Chris@82 3998
Chris@82 3999 fi
Chris@82 4000
Chris@82 4001 # Check whether --enable-generic-simd128 was given.
Chris@82 4002 if test "${enable_generic_simd128+set}" = set; then :
Chris@82 4003 enableval=$enable_generic_simd128; have_generic_simd128=$enableval
Chris@82 4004 else
Chris@82 4005 have_generic_simd128=no
Chris@82 4006 fi
Chris@82 4007
Chris@82 4008 if test "$have_generic_simd128" = "yes"; then
Chris@82 4009
Chris@82 4010 $as_echo "#define HAVE_GENERIC_SIMD128 1" >>confdefs.h
Chris@82 4011
Chris@82 4012 fi
Chris@82 4013 if test "$have_generic_simd128" = "yes"; then
Chris@82 4014 HAVE_GENERIC_SIMD128_TRUE=
Chris@82 4015 HAVE_GENERIC_SIMD128_FALSE='#'
Chris@82 4016 else
Chris@82 4017 HAVE_GENERIC_SIMD128_TRUE='#'
Chris@82 4018 HAVE_GENERIC_SIMD128_FALSE=
Chris@82 4019 fi
Chris@82 4020
Chris@82 4021
Chris@82 4022 # Check whether --enable-generic-simd256 was given.
Chris@82 4023 if test "${enable_generic_simd256+set}" = set; then :
Chris@82 4024 enableval=$enable_generic_simd256; have_generic_simd256=$enableval
Chris@82 4025 else
Chris@82 4026 have_generic_simd256=no
Chris@82 4027 fi
Chris@82 4028
Chris@82 4029 if test "$have_generic_simd256" = "yes"; then
Chris@82 4030
Chris@82 4031 $as_echo "#define HAVE_GENERIC_SIMD256 1" >>confdefs.h
Chris@82 4032
Chris@82 4033 fi
Chris@82 4034 if test "$have_generic_simd256" = "yes"; then
Chris@82 4035 HAVE_GENERIC_SIMD256_TRUE=
Chris@82 4036 HAVE_GENERIC_SIMD256_FALSE='#'
Chris@82 4037 else
Chris@82 4038 HAVE_GENERIC_SIMD256_TRUE='#'
Chris@82 4039 HAVE_GENERIC_SIMD256_FALSE=
Chris@82 4040 fi
Chris@82 4041
Chris@82 4042
Chris@82 4043
Chris@82 4044
Chris@82 4045
Chris@82 4046 # Check whether --with-slow-timer was given.
Chris@82 4047 if test "${with_slow_timer+set}" = set; then :
Chris@82 4048 withval=$with_slow_timer; with_slow_timer=$withval
Chris@82 4049 else
Chris@82 4050 with_slow_timer=no
Chris@82 4051 fi
Chris@82 4052
Chris@82 4053 if test "$with_slow_timer" = "yes"; then
Chris@82 4054
Chris@82 4055 $as_echo "#define WITH_SLOW_TIMER 1" >>confdefs.h
Chris@82 4056
Chris@82 4057 fi
Chris@82 4058
Chris@82 4059 # Check whether --enable-mips_zbus_timer was given.
Chris@82 4060 if test "${enable_mips_zbus_timer+set}" = set; then :
Chris@82 4061 enableval=$enable_mips_zbus_timer; have_mips_zbus_timer=$enableval
Chris@82 4062 else
Chris@82 4063 have_mips_zbus_timer=no
Chris@82 4064 fi
Chris@82 4065
Chris@82 4066 if test "$have_mips_zbus_timer" = "yes"; then
Chris@82 4067
Chris@82 4068 $as_echo "#define HAVE_MIPS_ZBUS_TIMER 1" >>confdefs.h
Chris@82 4069
Chris@82 4070 fi
Chris@82 4071
Chris@82 4072
Chris@82 4073 # Check whether --with-our-malloc was given.
Chris@82 4074 if test "${with_our_malloc+set}" = set; then :
Chris@82 4075 withval=$with_our_malloc; with_our_malloc=$withval
Chris@82 4076 else
Chris@82 4077 with_our_malloc=no
Chris@82 4078 fi
Chris@82 4079
Chris@82 4080
Chris@82 4081 # Check whether --with-our-malloc16 was given.
Chris@82 4082 if test "${with_our_malloc16+set}" = set; then :
Chris@82 4083 withval=$with_our_malloc16; with_our_malloc=$withval
Chris@82 4084 fi
Chris@82 4085
Chris@82 4086 if test "$with_our_malloc" = "yes"; then
Chris@82 4087
Chris@82 4088 $as_echo "#define WITH_OUR_MALLOC 1" >>confdefs.h
Chris@82 4089
Chris@82 4090 fi
Chris@82 4091
Chris@82 4092
Chris@82 4093 # Check whether --with-windows-f77-mangling was given.
Chris@82 4094 if test "${with_windows_f77_mangling+set}" = set; then :
Chris@82 4095 withval=$with_windows_f77_mangling; with_windows_f77_mangling=$withval
Chris@82 4096 else
Chris@82 4097 with_windows_f77_mangling=no
Chris@82 4098 fi
Chris@82 4099
Chris@82 4100 if test "$with_windows_f77_mangling" = "yes"; then
Chris@82 4101
Chris@82 4102 $as_echo "#define WINDOWS_F77_MANGLING 1" >>confdefs.h
Chris@82 4103
Chris@82 4104 fi
Chris@82 4105
Chris@82 4106
Chris@82 4107 # Check whether --with-incoming-stack-boundary was given.
Chris@82 4108 if test "${with_incoming_stack_boundary+set}" = set; then :
Chris@82 4109 withval=$with_incoming_stack_boundary; with_incoming_stack_boundary=$withval
Chris@82 4110 else
Chris@82 4111 with_incoming_stack_boundary=no
Chris@82 4112 fi
Chris@82 4113
Chris@82 4114
Chris@82 4115
Chris@82 4116 # Check whether --enable-fma was given.
Chris@82 4117 if test "${enable_fma+set}" = set; then :
Chris@82 4118 enableval=$enable_fma; arch_prefers_fma=$enableval
Chris@82 4119 fi
Chris@82 4120
Chris@82 4121 if test "$arch_prefers_fma"x = "yes"x; then
Chris@82 4122
Chris@82 4123 $as_echo "#define ARCH_PREFERS_FMA 1" >>confdefs.h
Chris@82 4124
Chris@82 4125 fi
Chris@82 4126
Chris@82 4127 case "$PRECISION" in
Chris@82 4128 s) PREC_SUFFIX=f;;
Chris@82 4129 d) PREC_SUFFIX=;;
Chris@82 4130 l) PREC_SUFFIX=l;;
Chris@82 4131 q) PREC_SUFFIX=q;;
Chris@82 4132 esac
Chris@82 4133
Chris@82 4134
Chris@82 4135 ac_ext=c
Chris@82 4136 ac_cpp='$CPP $CPPFLAGS'
Chris@82 4137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@82 4138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 4139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@82 4140 if test -n "$ac_tool_prefix"; then
Chris@82 4141 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
Chris@82 4142 set dummy ${ac_tool_prefix}gcc; ac_word=$2
Chris@82 4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 4144 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 4145 if ${ac_cv_prog_CC+:} false; then :
Chris@82 4146 $as_echo_n "(cached) " >&6
Chris@82 4147 else
Chris@82 4148 if test -n "$CC"; then
Chris@82 4149 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@82 4150 else
Chris@82 4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 4152 for as_dir in $PATH
Chris@82 4153 do
Chris@82 4154 IFS=$as_save_IFS
Chris@82 4155 test -z "$as_dir" && as_dir=.
Chris@82 4156 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 4157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 4158 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Chris@82 4159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 4160 break 2
Chris@82 4161 fi
Chris@82 4162 done
Chris@82 4163 done
Chris@82 4164 IFS=$as_save_IFS
Chris@82 4165
Chris@82 4166 fi
Chris@82 4167 fi
Chris@82 4168 CC=$ac_cv_prog_CC
Chris@82 4169 if test -n "$CC"; then
Chris@82 4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@82 4171 $as_echo "$CC" >&6; }
Chris@82 4172 else
Chris@82 4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 4174 $as_echo "no" >&6; }
Chris@82 4175 fi
Chris@82 4176
Chris@82 4177
Chris@82 4178 fi
Chris@82 4179 if test -z "$ac_cv_prog_CC"; then
Chris@82 4180 ac_ct_CC=$CC
Chris@82 4181 # Extract the first word of "gcc", so it can be a program name with args.
Chris@82 4182 set dummy gcc; ac_word=$2
Chris@82 4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 4184 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 4185 if ${ac_cv_prog_ac_ct_CC+:} false; then :
Chris@82 4186 $as_echo_n "(cached) " >&6
Chris@82 4187 else
Chris@82 4188 if test -n "$ac_ct_CC"; then
Chris@82 4189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
Chris@82 4190 else
Chris@82 4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 4192 for as_dir in $PATH
Chris@82 4193 do
Chris@82 4194 IFS=$as_save_IFS
Chris@82 4195 test -z "$as_dir" && as_dir=.
Chris@82 4196 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 4197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 4198 ac_cv_prog_ac_ct_CC="gcc"
Chris@82 4199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 4200 break 2
Chris@82 4201 fi
Chris@82 4202 done
Chris@82 4203 done
Chris@82 4204 IFS=$as_save_IFS
Chris@82 4205
Chris@82 4206 fi
Chris@82 4207 fi
Chris@82 4208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
Chris@82 4209 if test -n "$ac_ct_CC"; then
Chris@82 4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Chris@82 4211 $as_echo "$ac_ct_CC" >&6; }
Chris@82 4212 else
Chris@82 4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 4214 $as_echo "no" >&6; }
Chris@82 4215 fi
Chris@82 4216
Chris@82 4217 if test "x$ac_ct_CC" = x; then
Chris@82 4218 CC=""
Chris@82 4219 else
Chris@82 4220 case $cross_compiling:$ac_tool_warned in
Chris@82 4221 yes:)
Chris@82 4222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@82 4223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@82 4224 ac_tool_warned=yes ;;
Chris@82 4225 esac
Chris@82 4226 CC=$ac_ct_CC
Chris@82 4227 fi
Chris@82 4228 else
Chris@82 4229 CC="$ac_cv_prog_CC"
Chris@82 4230 fi
Chris@82 4231
Chris@82 4232 if test -z "$CC"; then
Chris@82 4233 if test -n "$ac_tool_prefix"; then
Chris@82 4234 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Chris@82 4235 set dummy ${ac_tool_prefix}cc; ac_word=$2
Chris@82 4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 4237 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 4238 if ${ac_cv_prog_CC+:} false; then :
Chris@82 4239 $as_echo_n "(cached) " >&6
Chris@82 4240 else
Chris@82 4241 if test -n "$CC"; then
Chris@82 4242 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@82 4243 else
Chris@82 4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 4245 for as_dir in $PATH
Chris@82 4246 do
Chris@82 4247 IFS=$as_save_IFS
Chris@82 4248 test -z "$as_dir" && as_dir=.
Chris@82 4249 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 4250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 4251 ac_cv_prog_CC="${ac_tool_prefix}cc"
Chris@82 4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 4253 break 2
Chris@82 4254 fi
Chris@82 4255 done
Chris@82 4256 done
Chris@82 4257 IFS=$as_save_IFS
Chris@82 4258
Chris@82 4259 fi
Chris@82 4260 fi
Chris@82 4261 CC=$ac_cv_prog_CC
Chris@82 4262 if test -n "$CC"; then
Chris@82 4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@82 4264 $as_echo "$CC" >&6; }
Chris@82 4265 else
Chris@82 4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 4267 $as_echo "no" >&6; }
Chris@82 4268 fi
Chris@82 4269
Chris@82 4270
Chris@82 4271 fi
Chris@82 4272 fi
Chris@82 4273 if test -z "$CC"; then
Chris@82 4274 # Extract the first word of "cc", so it can be a program name with args.
Chris@82 4275 set dummy cc; ac_word=$2
Chris@82 4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 4277 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 4278 if ${ac_cv_prog_CC+:} false; then :
Chris@82 4279 $as_echo_n "(cached) " >&6
Chris@82 4280 else
Chris@82 4281 if test -n "$CC"; then
Chris@82 4282 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@82 4283 else
Chris@82 4284 ac_prog_rejected=no
Chris@82 4285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 4286 for as_dir in $PATH
Chris@82 4287 do
Chris@82 4288 IFS=$as_save_IFS
Chris@82 4289 test -z "$as_dir" && as_dir=.
Chris@82 4290 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 4291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 4292 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
Chris@82 4293 ac_prog_rejected=yes
Chris@82 4294 continue
Chris@82 4295 fi
Chris@82 4296 ac_cv_prog_CC="cc"
Chris@82 4297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 4298 break 2
Chris@82 4299 fi
Chris@82 4300 done
Chris@82 4301 done
Chris@82 4302 IFS=$as_save_IFS
Chris@82 4303
Chris@82 4304 if test $ac_prog_rejected = yes; then
Chris@82 4305 # We found a bogon in the path, so make sure we never use it.
Chris@82 4306 set dummy $ac_cv_prog_CC
Chris@82 4307 shift
Chris@82 4308 if test $# != 0; then
Chris@82 4309 # We chose a different compiler from the bogus one.
Chris@82 4310 # However, it has the same basename, so the bogon will be chosen
Chris@82 4311 # first if we set CC to just the basename; use the full file name.
Chris@82 4312 shift
Chris@82 4313 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Chris@82 4314 fi
Chris@82 4315 fi
Chris@82 4316 fi
Chris@82 4317 fi
Chris@82 4318 CC=$ac_cv_prog_CC
Chris@82 4319 if test -n "$CC"; then
Chris@82 4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@82 4321 $as_echo "$CC" >&6; }
Chris@82 4322 else
Chris@82 4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 4324 $as_echo "no" >&6; }
Chris@82 4325 fi
Chris@82 4326
Chris@82 4327
Chris@82 4328 fi
Chris@82 4329 if test -z "$CC"; then
Chris@82 4330 if test -n "$ac_tool_prefix"; then
Chris@82 4331 for ac_prog in cl.exe
Chris@82 4332 do
Chris@82 4333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@82 4334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@82 4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 4336 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 4337 if ${ac_cv_prog_CC+:} false; then :
Chris@82 4338 $as_echo_n "(cached) " >&6
Chris@82 4339 else
Chris@82 4340 if test -n "$CC"; then
Chris@82 4341 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@82 4342 else
Chris@82 4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 4344 for as_dir in $PATH
Chris@82 4345 do
Chris@82 4346 IFS=$as_save_IFS
Chris@82 4347 test -z "$as_dir" && as_dir=.
Chris@82 4348 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 4349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 4350 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Chris@82 4351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 4352 break 2
Chris@82 4353 fi
Chris@82 4354 done
Chris@82 4355 done
Chris@82 4356 IFS=$as_save_IFS
Chris@82 4357
Chris@82 4358 fi
Chris@82 4359 fi
Chris@82 4360 CC=$ac_cv_prog_CC
Chris@82 4361 if test -n "$CC"; then
Chris@82 4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@82 4363 $as_echo "$CC" >&6; }
Chris@82 4364 else
Chris@82 4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 4366 $as_echo "no" >&6; }
Chris@82 4367 fi
Chris@82 4368
Chris@82 4369
Chris@82 4370 test -n "$CC" && break
Chris@82 4371 done
Chris@82 4372 fi
Chris@82 4373 if test -z "$CC"; then
Chris@82 4374 ac_ct_CC=$CC
Chris@82 4375 for ac_prog in cl.exe
Chris@82 4376 do
Chris@82 4377 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@82 4378 set dummy $ac_prog; ac_word=$2
Chris@82 4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 4380 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 4381 if ${ac_cv_prog_ac_ct_CC+:} false; then :
Chris@82 4382 $as_echo_n "(cached) " >&6
Chris@82 4383 else
Chris@82 4384 if test -n "$ac_ct_CC"; then
Chris@82 4385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
Chris@82 4386 else
Chris@82 4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 4388 for as_dir in $PATH
Chris@82 4389 do
Chris@82 4390 IFS=$as_save_IFS
Chris@82 4391 test -z "$as_dir" && as_dir=.
Chris@82 4392 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 4393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 4394 ac_cv_prog_ac_ct_CC="$ac_prog"
Chris@82 4395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 4396 break 2
Chris@82 4397 fi
Chris@82 4398 done
Chris@82 4399 done
Chris@82 4400 IFS=$as_save_IFS
Chris@82 4401
Chris@82 4402 fi
Chris@82 4403 fi
Chris@82 4404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
Chris@82 4405 if test -n "$ac_ct_CC"; then
Chris@82 4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Chris@82 4407 $as_echo "$ac_ct_CC" >&6; }
Chris@82 4408 else
Chris@82 4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 4410 $as_echo "no" >&6; }
Chris@82 4411 fi
Chris@82 4412
Chris@82 4413
Chris@82 4414 test -n "$ac_ct_CC" && break
Chris@82 4415 done
Chris@82 4416
Chris@82 4417 if test "x$ac_ct_CC" = x; then
Chris@82 4418 CC=""
Chris@82 4419 else
Chris@82 4420 case $cross_compiling:$ac_tool_warned in
Chris@82 4421 yes:)
Chris@82 4422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@82 4423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@82 4424 ac_tool_warned=yes ;;
Chris@82 4425 esac
Chris@82 4426 CC=$ac_ct_CC
Chris@82 4427 fi
Chris@82 4428 fi
Chris@82 4429
Chris@82 4430 fi
Chris@82 4431
Chris@82 4432
Chris@82 4433 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@82 4434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@82 4435 as_fn_error $? "no acceptable C compiler found in \$PATH
Chris@82 4436 See \`config.log' for more details" "$LINENO" 5; }
Chris@82 4437
Chris@82 4438 # Provide some information about the compiler.
Chris@82 4439 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Chris@82 4440 set X $ac_compile
Chris@82 4441 ac_compiler=$2
Chris@82 4442 for ac_option in --version -v -V -qversion; do
Chris@82 4443 { { ac_try="$ac_compiler $ac_option >&5"
Chris@82 4444 case "(($ac_try" in
Chris@82 4445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@82 4446 *) ac_try_echo=$ac_try;;
Chris@82 4447 esac
Chris@82 4448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@82 4449 $as_echo "$ac_try_echo"; } >&5
Chris@82 4450 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Chris@82 4451 ac_status=$?
Chris@82 4452 if test -s conftest.err; then
Chris@82 4453 sed '10a\
Chris@82 4454 ... rest of stderr output deleted ...
Chris@82 4455 10q' conftest.err >conftest.er1
Chris@82 4456 cat conftest.er1 >&5
Chris@82 4457 fi
Chris@82 4458 rm -f conftest.er1 conftest.err
Chris@82 4459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@82 4460 test $ac_status = 0; }
Chris@82 4461 done
Chris@82 4462
Chris@82 4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 4464 /* end confdefs.h. */
Chris@82 4465
Chris@82 4466 int
Chris@82 4467 main ()
Chris@82 4468 {
Chris@82 4469
Chris@82 4470 ;
Chris@82 4471 return 0;
Chris@82 4472 }
Chris@82 4473 _ACEOF
Chris@82 4474 ac_clean_files_save=$ac_clean_files
Chris@82 4475 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Chris@82 4476 # Try to create an executable without -o first, disregard a.out.
Chris@82 4477 # It will help us diagnose broken compilers, and finding out an intuition
Chris@82 4478 # of exeext.
Chris@82 4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
Chris@82 4480 $as_echo_n "checking whether the C compiler works... " >&6; }
Chris@82 4481 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Chris@82 4482
Chris@82 4483 # The possible output files:
Chris@82 4484 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
Chris@82 4485
Chris@82 4486 ac_rmfiles=
Chris@82 4487 for ac_file in $ac_files
Chris@82 4488 do
Chris@82 4489 case $ac_file in
Chris@82 4490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Chris@82 4491 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
Chris@82 4492 esac
Chris@82 4493 done
Chris@82 4494 rm -f $ac_rmfiles
Chris@82 4495
Chris@82 4496 if { { ac_try="$ac_link_default"
Chris@82 4497 case "(($ac_try" in
Chris@82 4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@82 4499 *) ac_try_echo=$ac_try;;
Chris@82 4500 esac
Chris@82 4501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@82 4502 $as_echo "$ac_try_echo"; } >&5
Chris@82 4503 (eval "$ac_link_default") 2>&5
Chris@82 4504 ac_status=$?
Chris@82 4505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@82 4506 test $ac_status = 0; }; then :
Chris@82 4507 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
Chris@82 4508 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
Chris@82 4509 # in a Makefile. We should not override ac_cv_exeext if it was cached,
Chris@82 4510 # so that the user can short-circuit this test for compilers unknown to
Chris@82 4511 # Autoconf.
Chris@82 4512 for ac_file in $ac_files ''
Chris@82 4513 do
Chris@82 4514 test -f "$ac_file" || continue
Chris@82 4515 case $ac_file in
Chris@82 4516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Chris@82 4517 ;;
Chris@82 4518 [ab].out )
Chris@82 4519 # We found the default executable, but exeext='' is most
Chris@82 4520 # certainly right.
Chris@82 4521 break;;
Chris@82 4522 *.* )
Chris@82 4523 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Chris@82 4524 then :; else
Chris@82 4525 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Chris@82 4526 fi
Chris@82 4527 # We set ac_cv_exeext here because the later test for it is not
Chris@82 4528 # safe: cross compilers may not add the suffix if given an `-o'
Chris@82 4529 # argument, so we may need to know it at that point already.
Chris@82 4530 # Even if this section looks crufty: it has the advantage of
Chris@82 4531 # actually working.
Chris@82 4532 break;;
Chris@82 4533 * )
Chris@82 4534 break;;
Chris@82 4535 esac
Chris@82 4536 done
Chris@82 4537 test "$ac_cv_exeext" = no && ac_cv_exeext=
Chris@82 4538
Chris@82 4539 else
Chris@82 4540 ac_file=''
Chris@82 4541 fi
Chris@82 4542 if test -z "$ac_file"; then :
Chris@82 4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 4544 $as_echo "no" >&6; }
Chris@82 4545 $as_echo "$as_me: failed program was:" >&5
Chris@82 4546 sed 's/^/| /' conftest.$ac_ext >&5
Chris@82 4547
Chris@82 4548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@82 4549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@82 4550 as_fn_error 77 "C compiler cannot create executables
Chris@82 4551 See \`config.log' for more details" "$LINENO" 5; }
Chris@82 4552 else
Chris@82 4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@82 4554 $as_echo "yes" >&6; }
Chris@82 4555 fi
Chris@82 4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
Chris@82 4557 $as_echo_n "checking for C compiler default output file name... " >&6; }
Chris@82 4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
Chris@82 4559 $as_echo "$ac_file" >&6; }
Chris@82 4560 ac_exeext=$ac_cv_exeext
Chris@82 4561
Chris@82 4562 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Chris@82 4563 ac_clean_files=$ac_clean_files_save
Chris@82 4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Chris@82 4565 $as_echo_n "checking for suffix of executables... " >&6; }
Chris@82 4566 if { { ac_try="$ac_link"
Chris@82 4567 case "(($ac_try" in
Chris@82 4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@82 4569 *) ac_try_echo=$ac_try;;
Chris@82 4570 esac
Chris@82 4571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@82 4572 $as_echo "$ac_try_echo"; } >&5
Chris@82 4573 (eval "$ac_link") 2>&5
Chris@82 4574 ac_status=$?
Chris@82 4575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@82 4576 test $ac_status = 0; }; then :
Chris@82 4577 # If both `conftest.exe' and `conftest' are `present' (well, observable)
Chris@82 4578 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
Chris@82 4579 # work properly (i.e., refer to `conftest.exe'), while it won't with
Chris@82 4580 # `rm'.
Chris@82 4581 for ac_file in conftest.exe conftest conftest.*; do
Chris@82 4582 test -f "$ac_file" || continue
Chris@82 4583 case $ac_file in
Chris@82 4584 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Chris@82 4585 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Chris@82 4586 break;;
Chris@82 4587 * ) break;;
Chris@82 4588 esac
Chris@82 4589 done
Chris@82 4590 else
Chris@82 4591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@82 4592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@82 4593 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
Chris@82 4594 See \`config.log' for more details" "$LINENO" 5; }
Chris@82 4595 fi
Chris@82 4596 rm -f conftest conftest$ac_cv_exeext
Chris@82 4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Chris@82 4598 $as_echo "$ac_cv_exeext" >&6; }
Chris@82 4599
Chris@82 4600 rm -f conftest.$ac_ext
Chris@82 4601 EXEEXT=$ac_cv_exeext
Chris@82 4602 ac_exeext=$EXEEXT
Chris@82 4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 4604 /* end confdefs.h. */
Chris@82 4605 #include <stdio.h>
Chris@82 4606 int
Chris@82 4607 main ()
Chris@82 4608 {
Chris@82 4609 FILE *f = fopen ("conftest.out", "w");
Chris@82 4610 return ferror (f) || fclose (f) != 0;
Chris@82 4611
Chris@82 4612 ;
Chris@82 4613 return 0;
Chris@82 4614 }
Chris@82 4615 _ACEOF
Chris@82 4616 ac_clean_files="$ac_clean_files conftest.out"
Chris@82 4617 # Check that the compiler produces executables we can run. If not, either
Chris@82 4618 # the compiler is broken, or we cross compile.
Chris@82 4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
Chris@82 4620 $as_echo_n "checking whether we are cross compiling... " >&6; }
Chris@82 4621 if test "$cross_compiling" != yes; then
Chris@82 4622 { { ac_try="$ac_link"
Chris@82 4623 case "(($ac_try" in
Chris@82 4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@82 4625 *) ac_try_echo=$ac_try;;
Chris@82 4626 esac
Chris@82 4627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@82 4628 $as_echo "$ac_try_echo"; } >&5
Chris@82 4629 (eval "$ac_link") 2>&5
Chris@82 4630 ac_status=$?
Chris@82 4631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@82 4632 test $ac_status = 0; }
Chris@82 4633 if { ac_try='./conftest$ac_cv_exeext'
Chris@82 4634 { { case "(($ac_try" in
Chris@82 4635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@82 4636 *) ac_try_echo=$ac_try;;
Chris@82 4637 esac
Chris@82 4638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@82 4639 $as_echo "$ac_try_echo"; } >&5
Chris@82 4640 (eval "$ac_try") 2>&5
Chris@82 4641 ac_status=$?
Chris@82 4642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@82 4643 test $ac_status = 0; }; }; then
Chris@82 4644 cross_compiling=no
Chris@82 4645 else
Chris@82 4646 if test "$cross_compiling" = maybe; then
Chris@82 4647 cross_compiling=yes
Chris@82 4648 else
Chris@82 4649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@82 4650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@82 4651 as_fn_error $? "cannot run C compiled programs.
Chris@82 4652 If you meant to cross compile, use \`--host'.
Chris@82 4653 See \`config.log' for more details" "$LINENO" 5; }
Chris@82 4654 fi
Chris@82 4655 fi
Chris@82 4656 fi
Chris@82 4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
Chris@82 4658 $as_echo "$cross_compiling" >&6; }
Chris@82 4659
Chris@82 4660 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
Chris@82 4661 ac_clean_files=$ac_clean_files_save
Chris@82 4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Chris@82 4663 $as_echo_n "checking for suffix of object files... " >&6; }
Chris@82 4664 if ${ac_cv_objext+:} false; then :
Chris@82 4665 $as_echo_n "(cached) " >&6
Chris@82 4666 else
Chris@82 4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 4668 /* end confdefs.h. */
Chris@82 4669
Chris@82 4670 int
Chris@82 4671 main ()
Chris@82 4672 {
Chris@82 4673
Chris@82 4674 ;
Chris@82 4675 return 0;
Chris@82 4676 }
Chris@82 4677 _ACEOF
Chris@82 4678 rm -f conftest.o conftest.obj
Chris@82 4679 if { { ac_try="$ac_compile"
Chris@82 4680 case "(($ac_try" in
Chris@82 4681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@82 4682 *) ac_try_echo=$ac_try;;
Chris@82 4683 esac
Chris@82 4684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@82 4685 $as_echo "$ac_try_echo"; } >&5
Chris@82 4686 (eval "$ac_compile") 2>&5
Chris@82 4687 ac_status=$?
Chris@82 4688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@82 4689 test $ac_status = 0; }; then :
Chris@82 4690 for ac_file in conftest.o conftest.obj conftest.*; do
Chris@82 4691 test -f "$ac_file" || continue;
Chris@82 4692 case $ac_file in
Chris@82 4693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Chris@82 4694 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
Chris@82 4695 break;;
Chris@82 4696 esac
Chris@82 4697 done
Chris@82 4698 else
Chris@82 4699 $as_echo "$as_me: failed program was:" >&5
Chris@82 4700 sed 's/^/| /' conftest.$ac_ext >&5
Chris@82 4701
Chris@82 4702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@82 4703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@82 4704 as_fn_error $? "cannot compute suffix of object files: cannot compile
Chris@82 4705 See \`config.log' for more details" "$LINENO" 5; }
Chris@82 4706 fi
Chris@82 4707 rm -f conftest.$ac_cv_objext conftest.$ac_ext
Chris@82 4708 fi
Chris@82 4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Chris@82 4710 $as_echo "$ac_cv_objext" >&6; }
Chris@82 4711 OBJEXT=$ac_cv_objext
Chris@82 4712 ac_objext=$OBJEXT
Chris@82 4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Chris@82 4714 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Chris@82 4715 if ${ac_cv_c_compiler_gnu+:} false; then :
Chris@82 4716 $as_echo_n "(cached) " >&6
Chris@82 4717 else
Chris@82 4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 4719 /* end confdefs.h. */
Chris@82 4720
Chris@82 4721 int
Chris@82 4722 main ()
Chris@82 4723 {
Chris@82 4724 #ifndef __GNUC__
Chris@82 4725 choke me
Chris@82 4726 #endif
Chris@82 4727
Chris@82 4728 ;
Chris@82 4729 return 0;
Chris@82 4730 }
Chris@82 4731 _ACEOF
Chris@82 4732 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 4733 ac_compiler_gnu=yes
Chris@82 4734 else
Chris@82 4735 ac_compiler_gnu=no
Chris@82 4736 fi
Chris@82 4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 4738 ac_cv_c_compiler_gnu=$ac_compiler_gnu
Chris@82 4739
Chris@82 4740 fi
Chris@82 4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Chris@82 4742 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
Chris@82 4743 if test $ac_compiler_gnu = yes; then
Chris@82 4744 GCC=yes
Chris@82 4745 else
Chris@82 4746 GCC=
Chris@82 4747 fi
Chris@82 4748 ac_test_CFLAGS=${CFLAGS+set}
Chris@82 4749 ac_save_CFLAGS=$CFLAGS
Chris@82 4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Chris@82 4751 $as_echo_n "checking whether $CC accepts -g... " >&6; }
Chris@82 4752 if ${ac_cv_prog_cc_g+:} false; then :
Chris@82 4753 $as_echo_n "(cached) " >&6
Chris@82 4754 else
Chris@82 4755 ac_save_c_werror_flag=$ac_c_werror_flag
Chris@82 4756 ac_c_werror_flag=yes
Chris@82 4757 ac_cv_prog_cc_g=no
Chris@82 4758 CFLAGS="-g"
Chris@82 4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 4760 /* end confdefs.h. */
Chris@82 4761
Chris@82 4762 int
Chris@82 4763 main ()
Chris@82 4764 {
Chris@82 4765
Chris@82 4766 ;
Chris@82 4767 return 0;
Chris@82 4768 }
Chris@82 4769 _ACEOF
Chris@82 4770 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 4771 ac_cv_prog_cc_g=yes
Chris@82 4772 else
Chris@82 4773 CFLAGS=""
Chris@82 4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 4775 /* end confdefs.h. */
Chris@82 4776
Chris@82 4777 int
Chris@82 4778 main ()
Chris@82 4779 {
Chris@82 4780
Chris@82 4781 ;
Chris@82 4782 return 0;
Chris@82 4783 }
Chris@82 4784 _ACEOF
Chris@82 4785 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 4786
Chris@82 4787 else
Chris@82 4788 ac_c_werror_flag=$ac_save_c_werror_flag
Chris@82 4789 CFLAGS="-g"
Chris@82 4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 4791 /* end confdefs.h. */
Chris@82 4792
Chris@82 4793 int
Chris@82 4794 main ()
Chris@82 4795 {
Chris@82 4796
Chris@82 4797 ;
Chris@82 4798 return 0;
Chris@82 4799 }
Chris@82 4800 _ACEOF
Chris@82 4801 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 4802 ac_cv_prog_cc_g=yes
Chris@82 4803 fi
Chris@82 4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 4805 fi
Chris@82 4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 4807 fi
Chris@82 4808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 4809 ac_c_werror_flag=$ac_save_c_werror_flag
Chris@82 4810 fi
Chris@82 4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Chris@82 4812 $as_echo "$ac_cv_prog_cc_g" >&6; }
Chris@82 4813 if test "$ac_test_CFLAGS" = set; then
Chris@82 4814 CFLAGS=$ac_save_CFLAGS
Chris@82 4815 elif test $ac_cv_prog_cc_g = yes; then
Chris@82 4816 if test "$GCC" = yes; then
Chris@82 4817 CFLAGS="-g -O2"
Chris@82 4818 else
Chris@82 4819 CFLAGS="-g"
Chris@82 4820 fi
Chris@82 4821 else
Chris@82 4822 if test "$GCC" = yes; then
Chris@82 4823 CFLAGS="-O2"
Chris@82 4824 else
Chris@82 4825 CFLAGS=
Chris@82 4826 fi
Chris@82 4827 fi
Chris@82 4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Chris@82 4829 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Chris@82 4830 if ${ac_cv_prog_cc_c89+:} false; then :
Chris@82 4831 $as_echo_n "(cached) " >&6
Chris@82 4832 else
Chris@82 4833 ac_cv_prog_cc_c89=no
Chris@82 4834 ac_save_CC=$CC
Chris@82 4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 4836 /* end confdefs.h. */
Chris@82 4837 #include <stdarg.h>
Chris@82 4838 #include <stdio.h>
Chris@82 4839 struct stat;
Chris@82 4840 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
Chris@82 4841 struct buf { int x; };
Chris@82 4842 FILE * (*rcsopen) (struct buf *, struct stat *, int);
Chris@82 4843 static char *e (p, i)
Chris@82 4844 char **p;
Chris@82 4845 int i;
Chris@82 4846 {
Chris@82 4847 return p[i];
Chris@82 4848 }
Chris@82 4849 static char *f (char * (*g) (char **, int), char **p, ...)
Chris@82 4850 {
Chris@82 4851 char *s;
Chris@82 4852 va_list v;
Chris@82 4853 va_start (v,p);
Chris@82 4854 s = g (p, va_arg (v,int));
Chris@82 4855 va_end (v);
Chris@82 4856 return s;
Chris@82 4857 }
Chris@82 4858
Chris@82 4859 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
Chris@82 4860 function prototypes and stuff, but not '\xHH' hex character constants.
Chris@82 4861 These don't provoke an error unfortunately, instead are silently treated
Chris@82 4862 as 'x'. The following induces an error, until -std is added to get
Chris@82 4863 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
Chris@82 4864 array size at least. It's necessary to write '\x00'==0 to get something
Chris@82 4865 that's true only with -std. */
Chris@82 4866 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
Chris@82 4867
Chris@82 4868 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
Chris@82 4869 inside strings and character constants. */
Chris@82 4870 #define FOO(x) 'x'
Chris@82 4871 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
Chris@82 4872
Chris@82 4873 int test (int i, double x);
Chris@82 4874 struct s1 {int (*f) (int a);};
Chris@82 4875 struct s2 {int (*f) (double a);};
Chris@82 4876 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
Chris@82 4877 int argc;
Chris@82 4878 char **argv;
Chris@82 4879 int
Chris@82 4880 main ()
Chris@82 4881 {
Chris@82 4882 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
Chris@82 4883 ;
Chris@82 4884 return 0;
Chris@82 4885 }
Chris@82 4886 _ACEOF
Chris@82 4887 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
Chris@82 4888 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Chris@82 4889 do
Chris@82 4890 CC="$ac_save_CC $ac_arg"
Chris@82 4891 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 4892 ac_cv_prog_cc_c89=$ac_arg
Chris@82 4893 fi
Chris@82 4894 rm -f core conftest.err conftest.$ac_objext
Chris@82 4895 test "x$ac_cv_prog_cc_c89" != "xno" && break
Chris@82 4896 done
Chris@82 4897 rm -f conftest.$ac_ext
Chris@82 4898 CC=$ac_save_CC
Chris@82 4899
Chris@82 4900 fi
Chris@82 4901 # AC_CACHE_VAL
Chris@82 4902 case "x$ac_cv_prog_cc_c89" in
Chris@82 4903 x)
Chris@82 4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Chris@82 4905 $as_echo "none needed" >&6; } ;;
Chris@82 4906 xno)
Chris@82 4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Chris@82 4908 $as_echo "unsupported" >&6; } ;;
Chris@82 4909 *)
Chris@82 4910 CC="$CC $ac_cv_prog_cc_c89"
Chris@82 4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Chris@82 4912 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Chris@82 4913 esac
Chris@82 4914 if test "x$ac_cv_prog_cc_c89" != xno; then :
Chris@82 4915
Chris@82 4916 fi
Chris@82 4917
Chris@82 4918 ac_ext=c
Chris@82 4919 ac_cpp='$CPP $CPPFLAGS'
Chris@82 4920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@82 4921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 4922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@82 4923
Chris@82 4924 ac_ext=c
Chris@82 4925 ac_cpp='$CPP $CPPFLAGS'
Chris@82 4926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@82 4927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 4928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@82 4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
Chris@82 4930 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
Chris@82 4931 if ${am_cv_prog_cc_c_o+:} false; then :
Chris@82 4932 $as_echo_n "(cached) " >&6
Chris@82 4933 else
Chris@82 4934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 4935 /* end confdefs.h. */
Chris@82 4936
Chris@82 4937 int
Chris@82 4938 main ()
Chris@82 4939 {
Chris@82 4940
Chris@82 4941 ;
Chris@82 4942 return 0;
Chris@82 4943 }
Chris@82 4944 _ACEOF
Chris@82 4945 # Make sure it works both with $CC and with simple cc.
Chris@82 4946 # Following AC_PROG_CC_C_O, we do the test twice because some
Chris@82 4947 # compilers refuse to overwrite an existing .o file with -o,
Chris@82 4948 # though they will create one.
Chris@82 4949 am_cv_prog_cc_c_o=yes
Chris@82 4950 for am_i in 1 2; do
Chris@82 4951 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
Chris@82 4952 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
Chris@82 4953 ac_status=$?
Chris@82 4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@82 4955 (exit $ac_status); } \
Chris@82 4956 && test -f conftest2.$ac_objext; then
Chris@82 4957 : OK
Chris@82 4958 else
Chris@82 4959 am_cv_prog_cc_c_o=no
Chris@82 4960 break
Chris@82 4961 fi
Chris@82 4962 done
Chris@82 4963 rm -f core conftest*
Chris@82 4964 unset am_i
Chris@82 4965 fi
Chris@82 4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
Chris@82 4967 $as_echo "$am_cv_prog_cc_c_o" >&6; }
Chris@82 4968 if test "$am_cv_prog_cc_c_o" != yes; then
Chris@82 4969 # Losing compiler, so override with the script.
Chris@82 4970 # FIXME: It is wrong to rewrite CC.
Chris@82 4971 # But if we don't then we get into trouble of one sort or another.
Chris@82 4972 # A longer-term fix would be to have automake use am__CC in this case,
Chris@82 4973 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
Chris@82 4974 CC="$am_aux_dir/compile $CC"
Chris@82 4975 fi
Chris@82 4976 ac_ext=c
Chris@82 4977 ac_cpp='$CPP $CPPFLAGS'
Chris@82 4978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@82 4979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 4980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@82 4981
Chris@82 4982 DEPDIR="${am__leading_dot}deps"
Chris@82 4983
Chris@82 4984 ac_config_commands="$ac_config_commands depfiles"
Chris@82 4985
Chris@82 4986
Chris@82 4987 am_make=${MAKE-make}
Chris@82 4988 cat > confinc << 'END'
Chris@82 4989 am__doit:
Chris@82 4990 @echo this is the am__doit target
Chris@82 4991 .PHONY: am__doit
Chris@82 4992 END
Chris@82 4993 # If we don't find an include directive, just comment out the code.
Chris@82 4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
Chris@82 4995 $as_echo_n "checking for style of include used by $am_make... " >&6; }
Chris@82 4996 am__include="#"
Chris@82 4997 am__quote=
Chris@82 4998 _am_result=none
Chris@82 4999 # First try GNU make style include.
Chris@82 5000 echo "include confinc" > confmf
Chris@82 5001 # Ignore all kinds of additional output from 'make'.
Chris@82 5002 case `$am_make -s -f confmf 2> /dev/null` in #(
Chris@82 5003 *the\ am__doit\ target*)
Chris@82 5004 am__include=include
Chris@82 5005 am__quote=
Chris@82 5006 _am_result=GNU
Chris@82 5007 ;;
Chris@82 5008 esac
Chris@82 5009 # Now try BSD make style include.
Chris@82 5010 if test "$am__include" = "#"; then
Chris@82 5011 echo '.include "confinc"' > confmf
Chris@82 5012 case `$am_make -s -f confmf 2> /dev/null` in #(
Chris@82 5013 *the\ am__doit\ target*)
Chris@82 5014 am__include=.include
Chris@82 5015 am__quote="\""
Chris@82 5016 _am_result=BSD
Chris@82 5017 ;;
Chris@82 5018 esac
Chris@82 5019 fi
Chris@82 5020
Chris@82 5021
Chris@82 5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
Chris@82 5023 $as_echo "$_am_result" >&6; }
Chris@82 5024 rm -f confinc confmf
Chris@82 5025
Chris@82 5026 # Check whether --enable-dependency-tracking was given.
Chris@82 5027 if test "${enable_dependency_tracking+set}" = set; then :
Chris@82 5028 enableval=$enable_dependency_tracking;
Chris@82 5029 fi
Chris@82 5030
Chris@82 5031 if test "x$enable_dependency_tracking" != xno; then
Chris@82 5032 am_depcomp="$ac_aux_dir/depcomp"
Chris@82 5033 AMDEPBACKSLASH='\'
Chris@82 5034 am__nodep='_no'
Chris@82 5035 fi
Chris@82 5036 if test "x$enable_dependency_tracking" != xno; then
Chris@82 5037 AMDEP_TRUE=
Chris@82 5038 AMDEP_FALSE='#'
Chris@82 5039 else
Chris@82 5040 AMDEP_TRUE='#'
Chris@82 5041 AMDEP_FALSE=
Chris@82 5042 fi
Chris@82 5043
Chris@82 5044
Chris@82 5045
Chris@82 5046 depcc="$CC" am_compiler_list=
Chris@82 5047
Chris@82 5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Chris@82 5049 $as_echo_n "checking dependency style of $depcc... " >&6; }
Chris@82 5050 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
Chris@82 5051 $as_echo_n "(cached) " >&6
Chris@82 5052 else
Chris@82 5053 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
Chris@82 5054 # We make a subdir and do the tests there. Otherwise we can end up
Chris@82 5055 # making bogus files that we don't know about and never remove. For
Chris@82 5056 # instance it was reported that on HP-UX the gcc test will end up
Chris@82 5057 # making a dummy file named 'D' -- because '-MD' means "put the output
Chris@82 5058 # in D".
Chris@82 5059 rm -rf conftest.dir
Chris@82 5060 mkdir conftest.dir
Chris@82 5061 # Copy depcomp to subdir because otherwise we won't find it if we're
Chris@82 5062 # using a relative directory.
Chris@82 5063 cp "$am_depcomp" conftest.dir
Chris@82 5064 cd conftest.dir
Chris@82 5065 # We will build objects and dependencies in a subdirectory because
Chris@82 5066 # it helps to detect inapplicable dependency modes. For instance
Chris@82 5067 # both Tru64's cc and ICC support -MD to output dependencies as a
Chris@82 5068 # side effect of compilation, but ICC will put the dependencies in
Chris@82 5069 # the current directory while Tru64 will put them in the object
Chris@82 5070 # directory.
Chris@82 5071 mkdir sub
Chris@82 5072
Chris@82 5073 am_cv_CC_dependencies_compiler_type=none
Chris@82 5074 if test "$am_compiler_list" = ""; then
Chris@82 5075 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
Chris@82 5076 fi
Chris@82 5077 am__universal=false
Chris@82 5078 case " $depcc " in #(
Chris@82 5079 *\ -arch\ *\ -arch\ *) am__universal=true ;;
Chris@82 5080 esac
Chris@82 5081
Chris@82 5082 for depmode in $am_compiler_list; do
Chris@82 5083 # Setup a source with many dependencies, because some compilers
Chris@82 5084 # like to wrap large dependency lists on column 80 (with \), and
Chris@82 5085 # we should not choose a depcomp mode which is confused by this.
Chris@82 5086 #
Chris@82 5087 # We need to recreate these files for each test, as the compiler may
Chris@82 5088 # overwrite some of them when testing with obscure command lines.
Chris@82 5089 # This happens at least with the AIX C compiler.
Chris@82 5090 : > sub/conftest.c
Chris@82 5091 for i in 1 2 3 4 5 6; do
Chris@82 5092 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Chris@82 5093 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
Chris@82 5094 # Solaris 10 /bin/sh.
Chris@82 5095 echo '/* dummy */' > sub/conftst$i.h
Chris@82 5096 done
Chris@82 5097 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Chris@82 5098
Chris@82 5099 # We check with '-c' and '-o' for the sake of the "dashmstdout"
Chris@82 5100 # mode. It turns out that the SunPro C++ compiler does not properly
Chris@82 5101 # handle '-M -o', and we need to detect this. Also, some Intel
Chris@82 5102 # versions had trouble with output in subdirs.
Chris@82 5103 am__obj=sub/conftest.${OBJEXT-o}
Chris@82 5104 am__minus_obj="-o $am__obj"
Chris@82 5105 case $depmode in
Chris@82 5106 gcc)
Chris@82 5107 # This depmode causes a compiler race in universal mode.
Chris@82 5108 test "$am__universal" = false || continue
Chris@82 5109 ;;
Chris@82 5110 nosideeffect)
Chris@82 5111 # After this tag, mechanisms are not by side-effect, so they'll
Chris@82 5112 # only be used when explicitly requested.
Chris@82 5113 if test "x$enable_dependency_tracking" = xyes; then
Chris@82 5114 continue
Chris@82 5115 else
Chris@82 5116 break
Chris@82 5117 fi
Chris@82 5118 ;;
Chris@82 5119 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
Chris@82 5120 # This compiler won't grok '-c -o', but also, the minuso test has
Chris@82 5121 # not run yet. These depmodes are late enough in the game, and
Chris@82 5122 # so weak that their functioning should not be impacted.
Chris@82 5123 am__obj=conftest.${OBJEXT-o}
Chris@82 5124 am__minus_obj=
Chris@82 5125 ;;
Chris@82 5126 none) break ;;
Chris@82 5127 esac
Chris@82 5128 if depmode=$depmode \
Chris@82 5129 source=sub/conftest.c object=$am__obj \
Chris@82 5130 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Chris@82 5131 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Chris@82 5132 >/dev/null 2>conftest.err &&
Chris@82 5133 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Chris@82 5134 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Chris@82 5135 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Chris@82 5136 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Chris@82 5137 # icc doesn't choke on unknown options, it will just issue warnings
Chris@82 5138 # or remarks (even with -Werror). So we grep stderr for any message
Chris@82 5139 # that says an option was ignored or not supported.
Chris@82 5140 # When given -MP, icc 7.0 and 7.1 complain thusly:
Chris@82 5141 # icc: Command line warning: ignoring option '-M'; no argument required
Chris@82 5142 # The diagnosis changed in icc 8.0:
Chris@82 5143 # icc: Command line remark: option '-MP' not supported
Chris@82 5144 if (grep 'ignoring option' conftest.err ||
Chris@82 5145 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Chris@82 5146 am_cv_CC_dependencies_compiler_type=$depmode
Chris@82 5147 break
Chris@82 5148 fi
Chris@82 5149 fi
Chris@82 5150 done
Chris@82 5151
Chris@82 5152 cd ..
Chris@82 5153 rm -rf conftest.dir
Chris@82 5154 else
Chris@82 5155 am_cv_CC_dependencies_compiler_type=none
Chris@82 5156 fi
Chris@82 5157
Chris@82 5158 fi
Chris@82 5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
Chris@82 5160 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Chris@82 5161 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
Chris@82 5162
Chris@82 5163 if
Chris@82 5164 test "x$enable_dependency_tracking" != xno \
Chris@82 5165 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
Chris@82 5166 am__fastdepCC_TRUE=
Chris@82 5167 am__fastdepCC_FALSE='#'
Chris@82 5168 else
Chris@82 5169 am__fastdepCC_TRUE='#'
Chris@82 5170 am__fastdepCC_FALSE=
Chris@82 5171 fi
Chris@82 5172
Chris@82 5173
Chris@82 5174
Chris@82 5175
Chris@82 5176
Chris@82 5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
Chris@82 5178 $as_echo_n "checking for C compiler vendor... " >&6; }
Chris@82 5179 if ${ax_cv_c_compiler_vendor+:} false; then :
Chris@82 5180 $as_echo_n "(cached) " >&6
Chris@82 5181 else
Chris@82 5182 ax_cv_c_compiler_vendor=unknown
Chris@82 5183 # note: don't check for gcc first since some other compilers define __GNUC__
Chris@82 5184 for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__ibmxl__,__xlc__,__xlC__,__IBMC__,__IBMCPP__ pathscale:__PATHCC__,__PATHSCALE__ clang:__clang__ 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@82 5185 vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")"
Chris@82 5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 5187 /* end confdefs.h. */
Chris@82 5188
Chris@82 5189 int
Chris@82 5190 main ()
Chris@82 5191 {
Chris@82 5192
Chris@82 5193 #if !($vencpp)
Chris@82 5194 thisisanerror;
Chris@82 5195 #endif
Chris@82 5196
Chris@82 5197 ;
Chris@82 5198 return 0;
Chris@82 5199 }
Chris@82 5200 _ACEOF
Chris@82 5201 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 5202 ax_cv_c_compiler_vendor=`echo $ventest | cut -d: -f1`; break
Chris@82 5203 fi
Chris@82 5204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 5205 done
Chris@82 5206
Chris@82 5207 fi
Chris@82 5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
Chris@82 5209 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
Chris@82 5210
Chris@82 5211 case $ac_cv_prog_cc_stdc in #(
Chris@82 5212 no) :
Chris@82 5213 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
Chris@82 5214 *) :
Chris@82 5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
Chris@82 5216 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
Chris@82 5217 if ${ac_cv_prog_cc_c99+:} false; then :
Chris@82 5218 $as_echo_n "(cached) " >&6
Chris@82 5219 else
Chris@82 5220 ac_cv_prog_cc_c99=no
Chris@82 5221 ac_save_CC=$CC
Chris@82 5222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 5223 /* end confdefs.h. */
Chris@82 5224 #include <stdarg.h>
Chris@82 5225 #include <stdbool.h>
Chris@82 5226 #include <stdlib.h>
Chris@82 5227 #include <wchar.h>
Chris@82 5228 #include <stdio.h>
Chris@82 5229
Chris@82 5230 // Check varargs macros. These examples are taken from C99 6.10.3.5.
Chris@82 5231 #define debug(...) fprintf (stderr, __VA_ARGS__)
Chris@82 5232 #define showlist(...) puts (#__VA_ARGS__)
Chris@82 5233 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
Chris@82 5234 static void
Chris@82 5235 test_varargs_macros (void)
Chris@82 5236 {
Chris@82 5237 int x = 1234;
Chris@82 5238 int y = 5678;
Chris@82 5239 debug ("Flag");
Chris@82 5240 debug ("X = %d\n", x);
Chris@82 5241 showlist (The first, second, and third items.);
Chris@82 5242 report (x>y, "x is %d but y is %d", x, y);
Chris@82 5243 }
Chris@82 5244
Chris@82 5245 // Check long long types.
Chris@82 5246 #define BIG64 18446744073709551615ull
Chris@82 5247 #define BIG32 4294967295ul
Chris@82 5248 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
Chris@82 5249 #if !BIG_OK
Chris@82 5250 your preprocessor is broken;
Chris@82 5251 #endif
Chris@82 5252 #if BIG_OK
Chris@82 5253 #else
Chris@82 5254 your preprocessor is broken;
Chris@82 5255 #endif
Chris@82 5256 static long long int bignum = -9223372036854775807LL;
Chris@82 5257 static unsigned long long int ubignum = BIG64;
Chris@82 5258
Chris@82 5259 struct incomplete_array
Chris@82 5260 {
Chris@82 5261 int datasize;
Chris@82 5262 double data[];
Chris@82 5263 };
Chris@82 5264
Chris@82 5265 struct named_init {
Chris@82 5266 int number;
Chris@82 5267 const wchar_t *name;
Chris@82 5268 double average;
Chris@82 5269 };
Chris@82 5270
Chris@82 5271 typedef const char *ccp;
Chris@82 5272
Chris@82 5273 static inline int
Chris@82 5274 test_restrict (ccp restrict text)
Chris@82 5275 {
Chris@82 5276 // See if C++-style comments work.
Chris@82 5277 // Iterate through items via the restricted pointer.
Chris@82 5278 // Also check for declarations in for loops.
Chris@82 5279 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
Chris@82 5280 continue;
Chris@82 5281 return 0;
Chris@82 5282 }
Chris@82 5283
Chris@82 5284 // Check varargs and va_copy.
Chris@82 5285 static void
Chris@82 5286 test_varargs (const char *format, ...)
Chris@82 5287 {
Chris@82 5288 va_list args;
Chris@82 5289 va_start (args, format);
Chris@82 5290 va_list args_copy;
Chris@82 5291 va_copy (args_copy, args);
Chris@82 5292
Chris@82 5293 const char *str;
Chris@82 5294 int number;
Chris@82 5295 float fnumber;
Chris@82 5296
Chris@82 5297 while (*format)
Chris@82 5298 {
Chris@82 5299 switch (*format++)
Chris@82 5300 {
Chris@82 5301 case 's': // string
Chris@82 5302 str = va_arg (args_copy, const char *);
Chris@82 5303 break;
Chris@82 5304 case 'd': // int
Chris@82 5305 number = va_arg (args_copy, int);
Chris@82 5306 break;
Chris@82 5307 case 'f': // float
Chris@82 5308 fnumber = va_arg (args_copy, double);
Chris@82 5309 break;
Chris@82 5310 default:
Chris@82 5311 break;
Chris@82 5312 }
Chris@82 5313 }
Chris@82 5314 va_end (args_copy);
Chris@82 5315 va_end (args);
Chris@82 5316 }
Chris@82 5317
Chris@82 5318 int
Chris@82 5319 main ()
Chris@82 5320 {
Chris@82 5321
Chris@82 5322 // Check bool.
Chris@82 5323 _Bool success = false;
Chris@82 5324
Chris@82 5325 // Check restrict.
Chris@82 5326 if (test_restrict ("String literal") == 0)
Chris@82 5327 success = true;
Chris@82 5328 char *restrict newvar = "Another string";
Chris@82 5329
Chris@82 5330 // Check varargs.
Chris@82 5331 test_varargs ("s, d' f .", "string", 65, 34.234);
Chris@82 5332 test_varargs_macros ();
Chris@82 5333
Chris@82 5334 // Check flexible array members.
Chris@82 5335 struct incomplete_array *ia =
Chris@82 5336 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
Chris@82 5337 ia->datasize = 10;
Chris@82 5338 for (int i = 0; i < ia->datasize; ++i)
Chris@82 5339 ia->data[i] = i * 1.234;
Chris@82 5340
Chris@82 5341 // Check named initializers.
Chris@82 5342 struct named_init ni = {
Chris@82 5343 .number = 34,
Chris@82 5344 .name = L"Test wide string",
Chris@82 5345 .average = 543.34343,
Chris@82 5346 };
Chris@82 5347
Chris@82 5348 ni.number = 58;
Chris@82 5349
Chris@82 5350 int dynamic_array[ni.number];
Chris@82 5351 dynamic_array[ni.number - 1] = 543;
Chris@82 5352
Chris@82 5353 // work around unused variable warnings
Chris@82 5354 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
Chris@82 5355 || dynamic_array[ni.number - 1] != 543);
Chris@82 5356
Chris@82 5357 ;
Chris@82 5358 return 0;
Chris@82 5359 }
Chris@82 5360 _ACEOF
Chris@82 5361 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
Chris@82 5362 do
Chris@82 5363 CC="$ac_save_CC $ac_arg"
Chris@82 5364 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 5365 ac_cv_prog_cc_c99=$ac_arg
Chris@82 5366 fi
Chris@82 5367 rm -f core conftest.err conftest.$ac_objext
Chris@82 5368 test "x$ac_cv_prog_cc_c99" != "xno" && break
Chris@82 5369 done
Chris@82 5370 rm -f conftest.$ac_ext
Chris@82 5371 CC=$ac_save_CC
Chris@82 5372
Chris@82 5373 fi
Chris@82 5374 # AC_CACHE_VAL
Chris@82 5375 case "x$ac_cv_prog_cc_c99" in
Chris@82 5376 x)
Chris@82 5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Chris@82 5378 $as_echo "none needed" >&6; } ;;
Chris@82 5379 xno)
Chris@82 5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Chris@82 5381 $as_echo "unsupported" >&6; } ;;
Chris@82 5382 *)
Chris@82 5383 CC="$CC $ac_cv_prog_cc_c99"
Chris@82 5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
Chris@82 5385 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
Chris@82 5386 esac
Chris@82 5387 if test "x$ac_cv_prog_cc_c99" != xno; then :
Chris@82 5388 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
Chris@82 5389 else
Chris@82 5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Chris@82 5391 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Chris@82 5392 if ${ac_cv_prog_cc_c89+:} false; then :
Chris@82 5393 $as_echo_n "(cached) " >&6
Chris@82 5394 else
Chris@82 5395 ac_cv_prog_cc_c89=no
Chris@82 5396 ac_save_CC=$CC
Chris@82 5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 5398 /* end confdefs.h. */
Chris@82 5399 #include <stdarg.h>
Chris@82 5400 #include <stdio.h>
Chris@82 5401 struct stat;
Chris@82 5402 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
Chris@82 5403 struct buf { int x; };
Chris@82 5404 FILE * (*rcsopen) (struct buf *, struct stat *, int);
Chris@82 5405 static char *e (p, i)
Chris@82 5406 char **p;
Chris@82 5407 int i;
Chris@82 5408 {
Chris@82 5409 return p[i];
Chris@82 5410 }
Chris@82 5411 static char *f (char * (*g) (char **, int), char **p, ...)
Chris@82 5412 {
Chris@82 5413 char *s;
Chris@82 5414 va_list v;
Chris@82 5415 va_start (v,p);
Chris@82 5416 s = g (p, va_arg (v,int));
Chris@82 5417 va_end (v);
Chris@82 5418 return s;
Chris@82 5419 }
Chris@82 5420
Chris@82 5421 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
Chris@82 5422 function prototypes and stuff, but not '\xHH' hex character constants.
Chris@82 5423 These don't provoke an error unfortunately, instead are silently treated
Chris@82 5424 as 'x'. The following induces an error, until -std is added to get
Chris@82 5425 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
Chris@82 5426 array size at least. It's necessary to write '\x00'==0 to get something
Chris@82 5427 that's true only with -std. */
Chris@82 5428 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
Chris@82 5429
Chris@82 5430 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
Chris@82 5431 inside strings and character constants. */
Chris@82 5432 #define FOO(x) 'x'
Chris@82 5433 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
Chris@82 5434
Chris@82 5435 int test (int i, double x);
Chris@82 5436 struct s1 {int (*f) (int a);};
Chris@82 5437 struct s2 {int (*f) (double a);};
Chris@82 5438 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
Chris@82 5439 int argc;
Chris@82 5440 char **argv;
Chris@82 5441 int
Chris@82 5442 main ()
Chris@82 5443 {
Chris@82 5444 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
Chris@82 5445 ;
Chris@82 5446 return 0;
Chris@82 5447 }
Chris@82 5448 _ACEOF
Chris@82 5449 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
Chris@82 5450 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Chris@82 5451 do
Chris@82 5452 CC="$ac_save_CC $ac_arg"
Chris@82 5453 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 5454 ac_cv_prog_cc_c89=$ac_arg
Chris@82 5455 fi
Chris@82 5456 rm -f core conftest.err conftest.$ac_objext
Chris@82 5457 test "x$ac_cv_prog_cc_c89" != "xno" && break
Chris@82 5458 done
Chris@82 5459 rm -f conftest.$ac_ext
Chris@82 5460 CC=$ac_save_CC
Chris@82 5461
Chris@82 5462 fi
Chris@82 5463 # AC_CACHE_VAL
Chris@82 5464 case "x$ac_cv_prog_cc_c89" in
Chris@82 5465 x)
Chris@82 5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Chris@82 5467 $as_echo "none needed" >&6; } ;;
Chris@82 5468 xno)
Chris@82 5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Chris@82 5470 $as_echo "unsupported" >&6; } ;;
Chris@82 5471 *)
Chris@82 5472 CC="$CC $ac_cv_prog_cc_c89"
Chris@82 5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Chris@82 5474 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Chris@82 5475 esac
Chris@82 5476 if test "x$ac_cv_prog_cc_c89" != xno; then :
Chris@82 5477 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
Chris@82 5478 else
Chris@82 5479 ac_cv_prog_cc_stdc=no
Chris@82 5480 fi
Chris@82 5481
Chris@82 5482 fi
Chris@82 5483 ;;
Chris@82 5484 esac
Chris@82 5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
Chris@82 5486 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
Chris@82 5487 if ${ac_cv_prog_cc_stdc+:} false; then :
Chris@82 5488 $as_echo_n "(cached) " >&6
Chris@82 5489 fi
Chris@82 5490
Chris@82 5491 case $ac_cv_prog_cc_stdc in #(
Chris@82 5492 no) :
Chris@82 5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Chris@82 5494 $as_echo "unsupported" >&6; } ;; #(
Chris@82 5495 '') :
Chris@82 5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Chris@82 5497 $as_echo "none needed" >&6; } ;; #(
Chris@82 5498 *) :
Chris@82 5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
Chris@82 5500 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
Chris@82 5501 esac
Chris@82 5502
Chris@82 5503
Chris@82 5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Chris@82 5505 $as_echo_n "checking whether ln -s works... " >&6; }
Chris@82 5506 LN_S=$as_ln_s
Chris@82 5507 if test "$LN_S" = "ln -s"; then
Chris@82 5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@82 5509 $as_echo "yes" >&6; }
Chris@82 5510 else
Chris@82 5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Chris@82 5512 $as_echo "no, using $LN_S" >&6; }
Chris@82 5513 fi
Chris@82 5514
Chris@82 5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Chris@82 5516 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
Chris@82 5517 set x ${MAKE-make}
Chris@82 5518 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Chris@82 5519 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Chris@82 5520 $as_echo_n "(cached) " >&6
Chris@82 5521 else
Chris@82 5522 cat >conftest.make <<\_ACEOF
Chris@82 5523 SHELL = /bin/sh
Chris@82 5524 all:
Chris@82 5525 @echo '@@@%%%=$(MAKE)=@@@%%%'
Chris@82 5526 _ACEOF
Chris@82 5527 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Chris@82 5528 case `${MAKE-make} -f conftest.make 2>/dev/null` in
Chris@82 5529 *@@@%%%=?*=@@@%%%*)
Chris@82 5530 eval ac_cv_prog_make_${ac_make}_set=yes;;
Chris@82 5531 *)
Chris@82 5532 eval ac_cv_prog_make_${ac_make}_set=no;;
Chris@82 5533 esac
Chris@82 5534 rm -f conftest.make
Chris@82 5535 fi
Chris@82 5536 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Chris@82 5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@82 5538 $as_echo "yes" >&6; }
Chris@82 5539 SET_MAKE=
Chris@82 5540 else
Chris@82 5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 5542 $as_echo "no" >&6; }
Chris@82 5543 SET_MAKE="MAKE=${MAKE-make}"
Chris@82 5544 fi
Chris@82 5545
Chris@82 5546 enable_win32_dll=yes
Chris@82 5547
Chris@82 5548 case $host in
Chris@82 5549 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
Chris@82 5550 if test -n "$ac_tool_prefix"; then
Chris@82 5551 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
Chris@82 5552 set dummy ${ac_tool_prefix}as; ac_word=$2
Chris@82 5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 5554 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 5555 if ${ac_cv_prog_AS+:} false; then :
Chris@82 5556 $as_echo_n "(cached) " >&6
Chris@82 5557 else
Chris@82 5558 if test -n "$AS"; then
Chris@82 5559 ac_cv_prog_AS="$AS" # Let the user override the test.
Chris@82 5560 else
Chris@82 5561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 5562 for as_dir in $PATH
Chris@82 5563 do
Chris@82 5564 IFS=$as_save_IFS
Chris@82 5565 test -z "$as_dir" && as_dir=.
Chris@82 5566 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 5567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 5568 ac_cv_prog_AS="${ac_tool_prefix}as"
Chris@82 5569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 5570 break 2
Chris@82 5571 fi
Chris@82 5572 done
Chris@82 5573 done
Chris@82 5574 IFS=$as_save_IFS
Chris@82 5575
Chris@82 5576 fi
Chris@82 5577 fi
Chris@82 5578 AS=$ac_cv_prog_AS
Chris@82 5579 if test -n "$AS"; then
Chris@82 5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
Chris@82 5581 $as_echo "$AS" >&6; }
Chris@82 5582 else
Chris@82 5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 5584 $as_echo "no" >&6; }
Chris@82 5585 fi
Chris@82 5586
Chris@82 5587
Chris@82 5588 fi
Chris@82 5589 if test -z "$ac_cv_prog_AS"; then
Chris@82 5590 ac_ct_AS=$AS
Chris@82 5591 # Extract the first word of "as", so it can be a program name with args.
Chris@82 5592 set dummy as; ac_word=$2
Chris@82 5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 5594 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 5595 if ${ac_cv_prog_ac_ct_AS+:} false; then :
Chris@82 5596 $as_echo_n "(cached) " >&6
Chris@82 5597 else
Chris@82 5598 if test -n "$ac_ct_AS"; then
Chris@82 5599 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
Chris@82 5600 else
Chris@82 5601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 5602 for as_dir in $PATH
Chris@82 5603 do
Chris@82 5604 IFS=$as_save_IFS
Chris@82 5605 test -z "$as_dir" && as_dir=.
Chris@82 5606 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 5607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 5608 ac_cv_prog_ac_ct_AS="as"
Chris@82 5609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 5610 break 2
Chris@82 5611 fi
Chris@82 5612 done
Chris@82 5613 done
Chris@82 5614 IFS=$as_save_IFS
Chris@82 5615
Chris@82 5616 fi
Chris@82 5617 fi
Chris@82 5618 ac_ct_AS=$ac_cv_prog_ac_ct_AS
Chris@82 5619 if test -n "$ac_ct_AS"; then
Chris@82 5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
Chris@82 5621 $as_echo "$ac_ct_AS" >&6; }
Chris@82 5622 else
Chris@82 5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 5624 $as_echo "no" >&6; }
Chris@82 5625 fi
Chris@82 5626
Chris@82 5627 if test "x$ac_ct_AS" = x; then
Chris@82 5628 AS="false"
Chris@82 5629 else
Chris@82 5630 case $cross_compiling:$ac_tool_warned in
Chris@82 5631 yes:)
Chris@82 5632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@82 5633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@82 5634 ac_tool_warned=yes ;;
Chris@82 5635 esac
Chris@82 5636 AS=$ac_ct_AS
Chris@82 5637 fi
Chris@82 5638 else
Chris@82 5639 AS="$ac_cv_prog_AS"
Chris@82 5640 fi
Chris@82 5641
Chris@82 5642 if test -n "$ac_tool_prefix"; then
Chris@82 5643 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
Chris@82 5644 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Chris@82 5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 5646 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 5647 if ${ac_cv_prog_DLLTOOL+:} false; then :
Chris@82 5648 $as_echo_n "(cached) " >&6
Chris@82 5649 else
Chris@82 5650 if test -n "$DLLTOOL"; then
Chris@82 5651 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
Chris@82 5652 else
Chris@82 5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 5654 for as_dir in $PATH
Chris@82 5655 do
Chris@82 5656 IFS=$as_save_IFS
Chris@82 5657 test -z "$as_dir" && as_dir=.
Chris@82 5658 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 5659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 5660 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
Chris@82 5661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 5662 break 2
Chris@82 5663 fi
Chris@82 5664 done
Chris@82 5665 done
Chris@82 5666 IFS=$as_save_IFS
Chris@82 5667
Chris@82 5668 fi
Chris@82 5669 fi
Chris@82 5670 DLLTOOL=$ac_cv_prog_DLLTOOL
Chris@82 5671 if test -n "$DLLTOOL"; then
Chris@82 5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
Chris@82 5673 $as_echo "$DLLTOOL" >&6; }
Chris@82 5674 else
Chris@82 5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 5676 $as_echo "no" >&6; }
Chris@82 5677 fi
Chris@82 5678
Chris@82 5679
Chris@82 5680 fi
Chris@82 5681 if test -z "$ac_cv_prog_DLLTOOL"; then
Chris@82 5682 ac_ct_DLLTOOL=$DLLTOOL
Chris@82 5683 # Extract the first word of "dlltool", so it can be a program name with args.
Chris@82 5684 set dummy dlltool; ac_word=$2
Chris@82 5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 5686 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 5687 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
Chris@82 5688 $as_echo_n "(cached) " >&6
Chris@82 5689 else
Chris@82 5690 if test -n "$ac_ct_DLLTOOL"; then
Chris@82 5691 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
Chris@82 5692 else
Chris@82 5693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 5694 for as_dir in $PATH
Chris@82 5695 do
Chris@82 5696 IFS=$as_save_IFS
Chris@82 5697 test -z "$as_dir" && as_dir=.
Chris@82 5698 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 5699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 5700 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
Chris@82 5701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 5702 break 2
Chris@82 5703 fi
Chris@82 5704 done
Chris@82 5705 done
Chris@82 5706 IFS=$as_save_IFS
Chris@82 5707
Chris@82 5708 fi
Chris@82 5709 fi
Chris@82 5710 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
Chris@82 5711 if test -n "$ac_ct_DLLTOOL"; then
Chris@82 5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
Chris@82 5713 $as_echo "$ac_ct_DLLTOOL" >&6; }
Chris@82 5714 else
Chris@82 5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 5716 $as_echo "no" >&6; }
Chris@82 5717 fi
Chris@82 5718
Chris@82 5719 if test "x$ac_ct_DLLTOOL" = x; then
Chris@82 5720 DLLTOOL="false"
Chris@82 5721 else
Chris@82 5722 case $cross_compiling:$ac_tool_warned in
Chris@82 5723 yes:)
Chris@82 5724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@82 5725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@82 5726 ac_tool_warned=yes ;;
Chris@82 5727 esac
Chris@82 5728 DLLTOOL=$ac_ct_DLLTOOL
Chris@82 5729 fi
Chris@82 5730 else
Chris@82 5731 DLLTOOL="$ac_cv_prog_DLLTOOL"
Chris@82 5732 fi
Chris@82 5733
Chris@82 5734 if test -n "$ac_tool_prefix"; then
Chris@82 5735 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
Chris@82 5736 set dummy ${ac_tool_prefix}objdump; ac_word=$2
Chris@82 5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 5738 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 5739 if ${ac_cv_prog_OBJDUMP+:} false; then :
Chris@82 5740 $as_echo_n "(cached) " >&6
Chris@82 5741 else
Chris@82 5742 if test -n "$OBJDUMP"; then
Chris@82 5743 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
Chris@82 5744 else
Chris@82 5745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 5746 for as_dir in $PATH
Chris@82 5747 do
Chris@82 5748 IFS=$as_save_IFS
Chris@82 5749 test -z "$as_dir" && as_dir=.
Chris@82 5750 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 5751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 5752 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Chris@82 5753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 5754 break 2
Chris@82 5755 fi
Chris@82 5756 done
Chris@82 5757 done
Chris@82 5758 IFS=$as_save_IFS
Chris@82 5759
Chris@82 5760 fi
Chris@82 5761 fi
Chris@82 5762 OBJDUMP=$ac_cv_prog_OBJDUMP
Chris@82 5763 if test -n "$OBJDUMP"; then
Chris@82 5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
Chris@82 5765 $as_echo "$OBJDUMP" >&6; }
Chris@82 5766 else
Chris@82 5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 5768 $as_echo "no" >&6; }
Chris@82 5769 fi
Chris@82 5770
Chris@82 5771
Chris@82 5772 fi
Chris@82 5773 if test -z "$ac_cv_prog_OBJDUMP"; then
Chris@82 5774 ac_ct_OBJDUMP=$OBJDUMP
Chris@82 5775 # Extract the first word of "objdump", so it can be a program name with args.
Chris@82 5776 set dummy objdump; ac_word=$2
Chris@82 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 5778 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 5779 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Chris@82 5780 $as_echo_n "(cached) " >&6
Chris@82 5781 else
Chris@82 5782 if test -n "$ac_ct_OBJDUMP"; then
Chris@82 5783 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
Chris@82 5784 else
Chris@82 5785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 5786 for as_dir in $PATH
Chris@82 5787 do
Chris@82 5788 IFS=$as_save_IFS
Chris@82 5789 test -z "$as_dir" && as_dir=.
Chris@82 5790 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 5791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 5792 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Chris@82 5793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 5794 break 2
Chris@82 5795 fi
Chris@82 5796 done
Chris@82 5797 done
Chris@82 5798 IFS=$as_save_IFS
Chris@82 5799
Chris@82 5800 fi
Chris@82 5801 fi
Chris@82 5802 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
Chris@82 5803 if test -n "$ac_ct_OBJDUMP"; then
Chris@82 5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
Chris@82 5805 $as_echo "$ac_ct_OBJDUMP" >&6; }
Chris@82 5806 else
Chris@82 5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 5808 $as_echo "no" >&6; }
Chris@82 5809 fi
Chris@82 5810
Chris@82 5811 if test "x$ac_ct_OBJDUMP" = x; then
Chris@82 5812 OBJDUMP="false"
Chris@82 5813 else
Chris@82 5814 case $cross_compiling:$ac_tool_warned in
Chris@82 5815 yes:)
Chris@82 5816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@82 5817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@82 5818 ac_tool_warned=yes ;;
Chris@82 5819 esac
Chris@82 5820 OBJDUMP=$ac_ct_OBJDUMP
Chris@82 5821 fi
Chris@82 5822 else
Chris@82 5823 OBJDUMP="$ac_cv_prog_OBJDUMP"
Chris@82 5824 fi
Chris@82 5825
Chris@82 5826 ;;
Chris@82 5827 esac
Chris@82 5828
Chris@82 5829 test -z "$AS" && AS=as
Chris@82 5830
Chris@82 5831
Chris@82 5832
Chris@82 5833
Chris@82 5834
Chris@82 5835 test -z "$DLLTOOL" && DLLTOOL=dlltool
Chris@82 5836
Chris@82 5837
Chris@82 5838
Chris@82 5839
Chris@82 5840
Chris@82 5841 test -z "$OBJDUMP" && OBJDUMP=objdump
Chris@82 5842
Chris@82 5843
Chris@82 5844
Chris@82 5845
Chris@82 5846
Chris@82 5847
Chris@82 5848
Chris@82 5849 case `pwd` in
Chris@82 5850 *\ * | *\ *)
Chris@82 5851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
Chris@82 5852 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
Chris@82 5853 esac
Chris@82 5854
Chris@82 5855
Chris@82 5856
Chris@82 5857 macro_version='2.4.6'
Chris@82 5858 macro_revision='2.4.6'
Chris@82 5859
Chris@82 5860
Chris@82 5861
Chris@82 5862
Chris@82 5863
Chris@82 5864
Chris@82 5865
Chris@82 5866
Chris@82 5867
Chris@82 5868
Chris@82 5869
Chris@82 5870
Chris@82 5871
Chris@82 5872 ltmain=$ac_aux_dir/ltmain.sh
Chris@82 5873
Chris@82 5874 # Backslashify metacharacters that are still active within
Chris@82 5875 # double-quoted strings.
Chris@82 5876 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
Chris@82 5877
Chris@82 5878 # Same as above, but do not quote variable references.
Chris@82 5879 double_quote_subst='s/\(["`\\]\)/\\\1/g'
Chris@82 5880
Chris@82 5881 # Sed substitution to delay expansion of an escaped shell variable in a
Chris@82 5882 # double_quote_subst'ed string.
Chris@82 5883 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
Chris@82 5884
Chris@82 5885 # Sed substitution to delay expansion of an escaped single quote.
Chris@82 5886 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
Chris@82 5887
Chris@82 5888 # Sed substitution to avoid accidental globbing in evaled expressions
Chris@82 5889 no_glob_subst='s/\*/\\\*/g'
Chris@82 5890
Chris@82 5891 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@82 5892 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
Chris@82 5893 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
Chris@82 5894
Chris@82 5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
Chris@82 5896 $as_echo_n "checking how to print strings... " >&6; }
Chris@82 5897 # Test print first, because it will be a builtin if present.
Chris@82 5898 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
Chris@82 5899 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
Chris@82 5900 ECHO='print -r --'
Chris@82 5901 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
Chris@82 5902 ECHO='printf %s\n'
Chris@82 5903 else
Chris@82 5904 # Use this function as a fallback that always works.
Chris@82 5905 func_fallback_echo ()
Chris@82 5906 {
Chris@82 5907 eval 'cat <<_LTECHO_EOF
Chris@82 5908 $1
Chris@82 5909 _LTECHO_EOF'
Chris@82 5910 }
Chris@82 5911 ECHO='func_fallback_echo'
Chris@82 5912 fi
Chris@82 5913
Chris@82 5914 # func_echo_all arg...
Chris@82 5915 # Invoke $ECHO with all args, space-separated.
Chris@82 5916 func_echo_all ()
Chris@82 5917 {
Chris@82 5918 $ECHO ""
Chris@82 5919 }
Chris@82 5920
Chris@82 5921 case $ECHO in
Chris@82 5922 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
Chris@82 5923 $as_echo "printf" >&6; } ;;
Chris@82 5924 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
Chris@82 5925 $as_echo "print -r" >&6; } ;;
Chris@82 5926 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
Chris@82 5927 $as_echo "cat" >&6; } ;;
Chris@82 5928 esac
Chris@82 5929
Chris@82 5930
Chris@82 5931
Chris@82 5932
Chris@82 5933
Chris@82 5934
Chris@82 5935
Chris@82 5936
Chris@82 5937
Chris@82 5938
Chris@82 5939
Chris@82 5940
Chris@82 5941
Chris@82 5942
Chris@82 5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
Chris@82 5944 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
Chris@82 5945 if ${ac_cv_path_SED+:} false; then :
Chris@82 5946 $as_echo_n "(cached) " >&6
Chris@82 5947 else
Chris@82 5948 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
Chris@82 5949 for ac_i in 1 2 3 4 5 6 7; do
Chris@82 5950 ac_script="$ac_script$as_nl$ac_script"
Chris@82 5951 done
Chris@82 5952 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
Chris@82 5953 { ac_script=; unset ac_script;}
Chris@82 5954 if test -z "$SED"; then
Chris@82 5955 ac_path_SED_found=false
Chris@82 5956 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@82 5957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 5958 for as_dir in $PATH
Chris@82 5959 do
Chris@82 5960 IFS=$as_save_IFS
Chris@82 5961 test -z "$as_dir" && as_dir=.
Chris@82 5962 for ac_prog in sed gsed; do
Chris@82 5963 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 5964 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Chris@82 5965 as_fn_executable_p "$ac_path_SED" || continue
Chris@82 5966 # Check for GNU ac_path_SED and select it if it is found.
Chris@82 5967 # Check for GNU $ac_path_SED
Chris@82 5968 case `"$ac_path_SED" --version 2>&1` in
Chris@82 5969 *GNU*)
Chris@82 5970 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
Chris@82 5971 *)
Chris@82 5972 ac_count=0
Chris@82 5973 $as_echo_n 0123456789 >"conftest.in"
Chris@82 5974 while :
Chris@82 5975 do
Chris@82 5976 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@82 5977 mv "conftest.tmp" "conftest.in"
Chris@82 5978 cp "conftest.in" "conftest.nl"
Chris@82 5979 $as_echo '' >> "conftest.nl"
Chris@82 5980 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@82 5981 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@82 5982 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@82 5983 if test $ac_count -gt ${ac_path_SED_max-0}; then
Chris@82 5984 # Best one so far, save it but keep looking for a better one
Chris@82 5985 ac_cv_path_SED="$ac_path_SED"
Chris@82 5986 ac_path_SED_max=$ac_count
Chris@82 5987 fi
Chris@82 5988 # 10*(2^10) chars as input seems more than enough
Chris@82 5989 test $ac_count -gt 10 && break
Chris@82 5990 done
Chris@82 5991 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@82 5992 esac
Chris@82 5993
Chris@82 5994 $ac_path_SED_found && break 3
Chris@82 5995 done
Chris@82 5996 done
Chris@82 5997 done
Chris@82 5998 IFS=$as_save_IFS
Chris@82 5999 if test -z "$ac_cv_path_SED"; then
Chris@82 6000 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Chris@82 6001 fi
Chris@82 6002 else
Chris@82 6003 ac_cv_path_SED=$SED
Chris@82 6004 fi
Chris@82 6005
Chris@82 6006 fi
Chris@82 6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
Chris@82 6008 $as_echo "$ac_cv_path_SED" >&6; }
Chris@82 6009 SED="$ac_cv_path_SED"
Chris@82 6010 rm -f conftest.sed
Chris@82 6011
Chris@82 6012 test -z "$SED" && SED=sed
Chris@82 6013 Xsed="$SED -e 1s/^X//"
Chris@82 6014
Chris@82 6015
Chris@82 6016
Chris@82 6017
Chris@82 6018
Chris@82 6019
Chris@82 6020
Chris@82 6021
Chris@82 6022
Chris@82 6023
Chris@82 6024
Chris@82 6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Chris@82 6026 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Chris@82 6027 if ${ac_cv_path_GREP+:} false; then :
Chris@82 6028 $as_echo_n "(cached) " >&6
Chris@82 6029 else
Chris@82 6030 if test -z "$GREP"; then
Chris@82 6031 ac_path_GREP_found=false
Chris@82 6032 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@82 6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 6034 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@82 6035 do
Chris@82 6036 IFS=$as_save_IFS
Chris@82 6037 test -z "$as_dir" && as_dir=.
Chris@82 6038 for ac_prog in grep ggrep; do
Chris@82 6039 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 6040 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@82 6041 as_fn_executable_p "$ac_path_GREP" || continue
Chris@82 6042 # Check for GNU ac_path_GREP and select it if it is found.
Chris@82 6043 # Check for GNU $ac_path_GREP
Chris@82 6044 case `"$ac_path_GREP" --version 2>&1` in
Chris@82 6045 *GNU*)
Chris@82 6046 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
Chris@82 6047 *)
Chris@82 6048 ac_count=0
Chris@82 6049 $as_echo_n 0123456789 >"conftest.in"
Chris@82 6050 while :
Chris@82 6051 do
Chris@82 6052 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@82 6053 mv "conftest.tmp" "conftest.in"
Chris@82 6054 cp "conftest.in" "conftest.nl"
Chris@82 6055 $as_echo 'GREP' >> "conftest.nl"
Chris@82 6056 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@82 6057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@82 6058 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@82 6059 if test $ac_count -gt ${ac_path_GREP_max-0}; then
Chris@82 6060 # Best one so far, save it but keep looking for a better one
Chris@82 6061 ac_cv_path_GREP="$ac_path_GREP"
Chris@82 6062 ac_path_GREP_max=$ac_count
Chris@82 6063 fi
Chris@82 6064 # 10*(2^10) chars as input seems more than enough
Chris@82 6065 test $ac_count -gt 10 && break
Chris@82 6066 done
Chris@82 6067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@82 6068 esac
Chris@82 6069
Chris@82 6070 $ac_path_GREP_found && break 3
Chris@82 6071 done
Chris@82 6072 done
Chris@82 6073 done
Chris@82 6074 IFS=$as_save_IFS
Chris@82 6075 if test -z "$ac_cv_path_GREP"; then
Chris@82 6076 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@82 6077 fi
Chris@82 6078 else
Chris@82 6079 ac_cv_path_GREP=$GREP
Chris@82 6080 fi
Chris@82 6081
Chris@82 6082 fi
Chris@82 6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Chris@82 6084 $as_echo "$ac_cv_path_GREP" >&6; }
Chris@82 6085 GREP="$ac_cv_path_GREP"
Chris@82 6086
Chris@82 6087
Chris@82 6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Chris@82 6089 $as_echo_n "checking for egrep... " >&6; }
Chris@82 6090 if ${ac_cv_path_EGREP+:} false; then :
Chris@82 6091 $as_echo_n "(cached) " >&6
Chris@82 6092 else
Chris@82 6093 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
Chris@82 6094 then ac_cv_path_EGREP="$GREP -E"
Chris@82 6095 else
Chris@82 6096 if test -z "$EGREP"; then
Chris@82 6097 ac_path_EGREP_found=false
Chris@82 6098 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@82 6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 6100 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@82 6101 do
Chris@82 6102 IFS=$as_save_IFS
Chris@82 6103 test -z "$as_dir" && as_dir=.
Chris@82 6104 for ac_prog in egrep; do
Chris@82 6105 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 6106 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@82 6107 as_fn_executable_p "$ac_path_EGREP" || continue
Chris@82 6108 # Check for GNU ac_path_EGREP and select it if it is found.
Chris@82 6109 # Check for GNU $ac_path_EGREP
Chris@82 6110 case `"$ac_path_EGREP" --version 2>&1` in
Chris@82 6111 *GNU*)
Chris@82 6112 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
Chris@82 6113 *)
Chris@82 6114 ac_count=0
Chris@82 6115 $as_echo_n 0123456789 >"conftest.in"
Chris@82 6116 while :
Chris@82 6117 do
Chris@82 6118 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@82 6119 mv "conftest.tmp" "conftest.in"
Chris@82 6120 cp "conftest.in" "conftest.nl"
Chris@82 6121 $as_echo 'EGREP' >> "conftest.nl"
Chris@82 6122 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@82 6123 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@82 6124 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@82 6125 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
Chris@82 6126 # Best one so far, save it but keep looking for a better one
Chris@82 6127 ac_cv_path_EGREP="$ac_path_EGREP"
Chris@82 6128 ac_path_EGREP_max=$ac_count
Chris@82 6129 fi
Chris@82 6130 # 10*(2^10) chars as input seems more than enough
Chris@82 6131 test $ac_count -gt 10 && break
Chris@82 6132 done
Chris@82 6133 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@82 6134 esac
Chris@82 6135
Chris@82 6136 $ac_path_EGREP_found && break 3
Chris@82 6137 done
Chris@82 6138 done
Chris@82 6139 done
Chris@82 6140 IFS=$as_save_IFS
Chris@82 6141 if test -z "$ac_cv_path_EGREP"; then
Chris@82 6142 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@82 6143 fi
Chris@82 6144 else
Chris@82 6145 ac_cv_path_EGREP=$EGREP
Chris@82 6146 fi
Chris@82 6147
Chris@82 6148 fi
Chris@82 6149 fi
Chris@82 6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Chris@82 6151 $as_echo "$ac_cv_path_EGREP" >&6; }
Chris@82 6152 EGREP="$ac_cv_path_EGREP"
Chris@82 6153
Chris@82 6154
Chris@82 6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
Chris@82 6156 $as_echo_n "checking for fgrep... " >&6; }
Chris@82 6157 if ${ac_cv_path_FGREP+:} false; then :
Chris@82 6158 $as_echo_n "(cached) " >&6
Chris@82 6159 else
Chris@82 6160 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
Chris@82 6161 then ac_cv_path_FGREP="$GREP -F"
Chris@82 6162 else
Chris@82 6163 if test -z "$FGREP"; then
Chris@82 6164 ac_path_FGREP_found=false
Chris@82 6165 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@82 6166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 6167 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@82 6168 do
Chris@82 6169 IFS=$as_save_IFS
Chris@82 6170 test -z "$as_dir" && as_dir=.
Chris@82 6171 for ac_prog in fgrep; do
Chris@82 6172 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 6173 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@82 6174 as_fn_executable_p "$ac_path_FGREP" || continue
Chris@82 6175 # Check for GNU ac_path_FGREP and select it if it is found.
Chris@82 6176 # Check for GNU $ac_path_FGREP
Chris@82 6177 case `"$ac_path_FGREP" --version 2>&1` in
Chris@82 6178 *GNU*)
Chris@82 6179 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
Chris@82 6180 *)
Chris@82 6181 ac_count=0
Chris@82 6182 $as_echo_n 0123456789 >"conftest.in"
Chris@82 6183 while :
Chris@82 6184 do
Chris@82 6185 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@82 6186 mv "conftest.tmp" "conftest.in"
Chris@82 6187 cp "conftest.in" "conftest.nl"
Chris@82 6188 $as_echo 'FGREP' >> "conftest.nl"
Chris@82 6189 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@82 6190 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@82 6191 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@82 6192 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
Chris@82 6193 # Best one so far, save it but keep looking for a better one
Chris@82 6194 ac_cv_path_FGREP="$ac_path_FGREP"
Chris@82 6195 ac_path_FGREP_max=$ac_count
Chris@82 6196 fi
Chris@82 6197 # 10*(2^10) chars as input seems more than enough
Chris@82 6198 test $ac_count -gt 10 && break
Chris@82 6199 done
Chris@82 6200 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@82 6201 esac
Chris@82 6202
Chris@82 6203 $ac_path_FGREP_found && break 3
Chris@82 6204 done
Chris@82 6205 done
Chris@82 6206 done
Chris@82 6207 IFS=$as_save_IFS
Chris@82 6208 if test -z "$ac_cv_path_FGREP"; then
Chris@82 6209 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@82 6210 fi
Chris@82 6211 else
Chris@82 6212 ac_cv_path_FGREP=$FGREP
Chris@82 6213 fi
Chris@82 6214
Chris@82 6215 fi
Chris@82 6216 fi
Chris@82 6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
Chris@82 6218 $as_echo "$ac_cv_path_FGREP" >&6; }
Chris@82 6219 FGREP="$ac_cv_path_FGREP"
Chris@82 6220
Chris@82 6221
Chris@82 6222 test -z "$GREP" && GREP=grep
Chris@82 6223
Chris@82 6224
Chris@82 6225
Chris@82 6226
Chris@82 6227
Chris@82 6228
Chris@82 6229
Chris@82 6230
Chris@82 6231
Chris@82 6232
Chris@82 6233
Chris@82 6234
Chris@82 6235
Chris@82 6236
Chris@82 6237
Chris@82 6238
Chris@82 6239
Chris@82 6240
Chris@82 6241
Chris@82 6242 # Check whether --with-gnu-ld was given.
Chris@82 6243 if test "${with_gnu_ld+set}" = set; then :
Chris@82 6244 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
Chris@82 6245 else
Chris@82 6246 with_gnu_ld=no
Chris@82 6247 fi
Chris@82 6248
Chris@82 6249 ac_prog=ld
Chris@82 6250 if test yes = "$GCC"; then
Chris@82 6251 # Check if gcc -print-prog-name=ld gives a path.
Chris@82 6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
Chris@82 6253 $as_echo_n "checking for ld used by $CC... " >&6; }
Chris@82 6254 case $host in
Chris@82 6255 *-*-mingw*)
Chris@82 6256 # gcc leaves a trailing carriage return, which upsets mingw
Chris@82 6257 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
Chris@82 6258 *)
Chris@82 6259 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
Chris@82 6260 esac
Chris@82 6261 case $ac_prog in
Chris@82 6262 # Accept absolute paths.
Chris@82 6263 [\\/]* | ?:[\\/]*)
Chris@82 6264 re_direlt='/[^/][^/]*/\.\./'
Chris@82 6265 # Canonicalize the pathname of ld
Chris@82 6266 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
Chris@82 6267 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
Chris@82 6268 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Chris@82 6269 done
Chris@82 6270 test -z "$LD" && LD=$ac_prog
Chris@82 6271 ;;
Chris@82 6272 "")
Chris@82 6273 # If it fails, then pretend we aren't using GCC.
Chris@82 6274 ac_prog=ld
Chris@82 6275 ;;
Chris@82 6276 *)
Chris@82 6277 # If it is relative, then search for the first ld in PATH.
Chris@82 6278 with_gnu_ld=unknown
Chris@82 6279 ;;
Chris@82 6280 esac
Chris@82 6281 elif test yes = "$with_gnu_ld"; then
Chris@82 6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Chris@82 6283 $as_echo_n "checking for GNU ld... " >&6; }
Chris@82 6284 else
Chris@82 6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Chris@82 6286 $as_echo_n "checking for non-GNU ld... " >&6; }
Chris@82 6287 fi
Chris@82 6288 if ${lt_cv_path_LD+:} false; then :
Chris@82 6289 $as_echo_n "(cached) " >&6
Chris@82 6290 else
Chris@82 6291 if test -z "$LD"; then
Chris@82 6292 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Chris@82 6293 for ac_dir in $PATH; do
Chris@82 6294 IFS=$lt_save_ifs
Chris@82 6295 test -z "$ac_dir" && ac_dir=.
Chris@82 6296 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Chris@82 6297 lt_cv_path_LD=$ac_dir/$ac_prog
Chris@82 6298 # Check to see if the program is GNU ld. I'd rather use --version,
Chris@82 6299 # but apparently some variants of GNU ld only accept -v.
Chris@82 6300 # Break only if it was the GNU/non-GNU ld that we prefer.
Chris@82 6301 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
Chris@82 6302 *GNU* | *'with BFD'*)
Chris@82 6303 test no != "$with_gnu_ld" && break
Chris@82 6304 ;;
Chris@82 6305 *)
Chris@82 6306 test yes != "$with_gnu_ld" && break
Chris@82 6307 ;;
Chris@82 6308 esac
Chris@82 6309 fi
Chris@82 6310 done
Chris@82 6311 IFS=$lt_save_ifs
Chris@82 6312 else
Chris@82 6313 lt_cv_path_LD=$LD # Let the user override the test with a path.
Chris@82 6314 fi
Chris@82 6315 fi
Chris@82 6316
Chris@82 6317 LD=$lt_cv_path_LD
Chris@82 6318 if test -n "$LD"; then
Chris@82 6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Chris@82 6320 $as_echo "$LD" >&6; }
Chris@82 6321 else
Chris@82 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 6323 $as_echo "no" >&6; }
Chris@82 6324 fi
Chris@82 6325 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Chris@82 6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Chris@82 6327 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Chris@82 6328 if ${lt_cv_prog_gnu_ld+:} false; then :
Chris@82 6329 $as_echo_n "(cached) " >&6
Chris@82 6330 else
Chris@82 6331 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Chris@82 6332 case `$LD -v 2>&1 </dev/null` in
Chris@82 6333 *GNU* | *'with BFD'*)
Chris@82 6334 lt_cv_prog_gnu_ld=yes
Chris@82 6335 ;;
Chris@82 6336 *)
Chris@82 6337 lt_cv_prog_gnu_ld=no
Chris@82 6338 ;;
Chris@82 6339 esac
Chris@82 6340 fi
Chris@82 6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
Chris@82 6342 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
Chris@82 6343 with_gnu_ld=$lt_cv_prog_gnu_ld
Chris@82 6344
Chris@82 6345
Chris@82 6346
Chris@82 6347
Chris@82 6348
Chris@82 6349
Chris@82 6350
Chris@82 6351
Chris@82 6352
Chris@82 6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
Chris@82 6354 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Chris@82 6355 if ${lt_cv_path_NM+:} false; then :
Chris@82 6356 $as_echo_n "(cached) " >&6
Chris@82 6357 else
Chris@82 6358 if test -n "$NM"; then
Chris@82 6359 # Let the user override the test.
Chris@82 6360 lt_cv_path_NM=$NM
Chris@82 6361 else
Chris@82 6362 lt_nm_to_check=${ac_tool_prefix}nm
Chris@82 6363 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
Chris@82 6364 lt_nm_to_check="$lt_nm_to_check nm"
Chris@82 6365 fi
Chris@82 6366 for lt_tmp_nm in $lt_nm_to_check; do
Chris@82 6367 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Chris@82 6368 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
Chris@82 6369 IFS=$lt_save_ifs
Chris@82 6370 test -z "$ac_dir" && ac_dir=.
Chris@82 6371 tmp_nm=$ac_dir/$lt_tmp_nm
Chris@82 6372 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
Chris@82 6373 # Check to see if the nm accepts a BSD-compat flag.
Chris@82 6374 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
Chris@82 6375 # nm: unknown option "B" ignored
Chris@82 6376 # Tru64's nm complains that /dev/null is an invalid object file
Chris@82 6377 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
Chris@82 6378 case $build_os in
Chris@82 6379 mingw*) lt_bad_file=conftest.nm/nofile ;;
Chris@82 6380 *) lt_bad_file=/dev/null ;;
Chris@82 6381 esac
Chris@82 6382 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
Chris@82 6383 *$lt_bad_file* | *'Invalid file or object type'*)
Chris@82 6384 lt_cv_path_NM="$tmp_nm -B"
Chris@82 6385 break 2
Chris@82 6386 ;;
Chris@82 6387 *)
Chris@82 6388 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
Chris@82 6389 */dev/null*)
Chris@82 6390 lt_cv_path_NM="$tmp_nm -p"
Chris@82 6391 break 2
Chris@82 6392 ;;
Chris@82 6393 *)
Chris@82 6394 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
Chris@82 6395 continue # so that we can try to find one that supports BSD flags
Chris@82 6396 ;;
Chris@82 6397 esac
Chris@82 6398 ;;
Chris@82 6399 esac
Chris@82 6400 fi
Chris@82 6401 done
Chris@82 6402 IFS=$lt_save_ifs
Chris@82 6403 done
Chris@82 6404 : ${lt_cv_path_NM=no}
Chris@82 6405 fi
Chris@82 6406 fi
Chris@82 6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
Chris@82 6408 $as_echo "$lt_cv_path_NM" >&6; }
Chris@82 6409 if test no != "$lt_cv_path_NM"; then
Chris@82 6410 NM=$lt_cv_path_NM
Chris@82 6411 else
Chris@82 6412 # Didn't find any BSD compatible name lister, look for dumpbin.
Chris@82 6413 if test -n "$DUMPBIN"; then :
Chris@82 6414 # Let the user override the test.
Chris@82 6415 else
Chris@82 6416 if test -n "$ac_tool_prefix"; then
Chris@82 6417 for ac_prog in dumpbin "link -dump"
Chris@82 6418 do
Chris@82 6419 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@82 6420 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@82 6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 6422 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 6423 if ${ac_cv_prog_DUMPBIN+:} false; then :
Chris@82 6424 $as_echo_n "(cached) " >&6
Chris@82 6425 else
Chris@82 6426 if test -n "$DUMPBIN"; then
Chris@82 6427 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
Chris@82 6428 else
Chris@82 6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 6430 for as_dir in $PATH
Chris@82 6431 do
Chris@82 6432 IFS=$as_save_IFS
Chris@82 6433 test -z "$as_dir" && as_dir=.
Chris@82 6434 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 6435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 6436 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Chris@82 6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 6438 break 2
Chris@82 6439 fi
Chris@82 6440 done
Chris@82 6441 done
Chris@82 6442 IFS=$as_save_IFS
Chris@82 6443
Chris@82 6444 fi
Chris@82 6445 fi
Chris@82 6446 DUMPBIN=$ac_cv_prog_DUMPBIN
Chris@82 6447 if test -n "$DUMPBIN"; then
Chris@82 6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
Chris@82 6449 $as_echo "$DUMPBIN" >&6; }
Chris@82 6450 else
Chris@82 6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 6452 $as_echo "no" >&6; }
Chris@82 6453 fi
Chris@82 6454
Chris@82 6455
Chris@82 6456 test -n "$DUMPBIN" && break
Chris@82 6457 done
Chris@82 6458 fi
Chris@82 6459 if test -z "$DUMPBIN"; then
Chris@82 6460 ac_ct_DUMPBIN=$DUMPBIN
Chris@82 6461 for ac_prog in dumpbin "link -dump"
Chris@82 6462 do
Chris@82 6463 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@82 6464 set dummy $ac_prog; ac_word=$2
Chris@82 6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 6466 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 6467 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Chris@82 6468 $as_echo_n "(cached) " >&6
Chris@82 6469 else
Chris@82 6470 if test -n "$ac_ct_DUMPBIN"; then
Chris@82 6471 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
Chris@82 6472 else
Chris@82 6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 6474 for as_dir in $PATH
Chris@82 6475 do
Chris@82 6476 IFS=$as_save_IFS
Chris@82 6477 test -z "$as_dir" && as_dir=.
Chris@82 6478 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 6479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 6480 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Chris@82 6481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 6482 break 2
Chris@82 6483 fi
Chris@82 6484 done
Chris@82 6485 done
Chris@82 6486 IFS=$as_save_IFS
Chris@82 6487
Chris@82 6488 fi
Chris@82 6489 fi
Chris@82 6490 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
Chris@82 6491 if test -n "$ac_ct_DUMPBIN"; then
Chris@82 6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
Chris@82 6493 $as_echo "$ac_ct_DUMPBIN" >&6; }
Chris@82 6494 else
Chris@82 6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 6496 $as_echo "no" >&6; }
Chris@82 6497 fi
Chris@82 6498
Chris@82 6499
Chris@82 6500 test -n "$ac_ct_DUMPBIN" && break
Chris@82 6501 done
Chris@82 6502
Chris@82 6503 if test "x$ac_ct_DUMPBIN" = x; then
Chris@82 6504 DUMPBIN=":"
Chris@82 6505 else
Chris@82 6506 case $cross_compiling:$ac_tool_warned in
Chris@82 6507 yes:)
Chris@82 6508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@82 6509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@82 6510 ac_tool_warned=yes ;;
Chris@82 6511 esac
Chris@82 6512 DUMPBIN=$ac_ct_DUMPBIN
Chris@82 6513 fi
Chris@82 6514 fi
Chris@82 6515
Chris@82 6516 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
Chris@82 6517 *COFF*)
Chris@82 6518 DUMPBIN="$DUMPBIN -symbols -headers"
Chris@82 6519 ;;
Chris@82 6520 *)
Chris@82 6521 DUMPBIN=:
Chris@82 6522 ;;
Chris@82 6523 esac
Chris@82 6524 fi
Chris@82 6525
Chris@82 6526 if test : != "$DUMPBIN"; then
Chris@82 6527 NM=$DUMPBIN
Chris@82 6528 fi
Chris@82 6529 fi
Chris@82 6530 test -z "$NM" && NM=nm
Chris@82 6531
Chris@82 6532
Chris@82 6533
Chris@82 6534
Chris@82 6535
Chris@82 6536
Chris@82 6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
Chris@82 6538 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
Chris@82 6539 if ${lt_cv_nm_interface+:} false; then :
Chris@82 6540 $as_echo_n "(cached) " >&6
Chris@82 6541 else
Chris@82 6542 lt_cv_nm_interface="BSD nm"
Chris@82 6543 echo "int some_variable = 0;" > conftest.$ac_ext
Chris@82 6544 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
Chris@82 6545 (eval "$ac_compile" 2>conftest.err)
Chris@82 6546 cat conftest.err >&5
Chris@82 6547 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Chris@82 6548 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
Chris@82 6549 cat conftest.err >&5
Chris@82 6550 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
Chris@82 6551 cat conftest.out >&5
Chris@82 6552 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
Chris@82 6553 lt_cv_nm_interface="MS dumpbin"
Chris@82 6554 fi
Chris@82 6555 rm -f conftest*
Chris@82 6556 fi
Chris@82 6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
Chris@82 6558 $as_echo "$lt_cv_nm_interface" >&6; }
Chris@82 6559
Chris@82 6560 # find the maximum length of command line arguments
Chris@82 6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
Chris@82 6562 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
Chris@82 6563 if ${lt_cv_sys_max_cmd_len+:} false; then :
Chris@82 6564 $as_echo_n "(cached) " >&6
Chris@82 6565 else
Chris@82 6566 i=0
Chris@82 6567 teststring=ABCD
Chris@82 6568
Chris@82 6569 case $build_os in
Chris@82 6570 msdosdjgpp*)
Chris@82 6571 # On DJGPP, this test can blow up pretty badly due to problems in libc
Chris@82 6572 # (any single argument exceeding 2000 bytes causes a buffer overrun
Chris@82 6573 # during glob expansion). Even if it were fixed, the result of this
Chris@82 6574 # check would be larger than it should be.
Chris@82 6575 lt_cv_sys_max_cmd_len=12288; # 12K is about right
Chris@82 6576 ;;
Chris@82 6577
Chris@82 6578 gnu*)
Chris@82 6579 # Under GNU Hurd, this test is not required because there is
Chris@82 6580 # no limit to the length of command line arguments.
Chris@82 6581 # Libtool will interpret -1 as no limit whatsoever
Chris@82 6582 lt_cv_sys_max_cmd_len=-1;
Chris@82 6583 ;;
Chris@82 6584
Chris@82 6585 cygwin* | mingw* | cegcc*)
Chris@82 6586 # On Win9x/ME, this test blows up -- it succeeds, but takes
Chris@82 6587 # about 5 minutes as the teststring grows exponentially.
Chris@82 6588 # Worse, since 9x/ME are not pre-emptively multitasking,
Chris@82 6589 # you end up with a "frozen" computer, even though with patience
Chris@82 6590 # the test eventually succeeds (with a max line length of 256k).
Chris@82 6591 # Instead, let's just punt: use the minimum linelength reported by
Chris@82 6592 # all of the supported platforms: 8192 (on NT/2K/XP).
Chris@82 6593 lt_cv_sys_max_cmd_len=8192;
Chris@82 6594 ;;
Chris@82 6595
Chris@82 6596 mint*)
Chris@82 6597 # On MiNT this can take a long time and run out of memory.
Chris@82 6598 lt_cv_sys_max_cmd_len=8192;
Chris@82 6599 ;;
Chris@82 6600
Chris@82 6601 amigaos*)
Chris@82 6602 # On AmigaOS with pdksh, this test takes hours, literally.
Chris@82 6603 # So we just punt and use a minimum line length of 8192.
Chris@82 6604 lt_cv_sys_max_cmd_len=8192;
Chris@82 6605 ;;
Chris@82 6606
Chris@82 6607 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
Chris@82 6608 # This has been around since 386BSD, at least. Likely further.
Chris@82 6609 if test -x /sbin/sysctl; then
Chris@82 6610 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
Chris@82 6611 elif test -x /usr/sbin/sysctl; then
Chris@82 6612 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
Chris@82 6613 else
Chris@82 6614 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Chris@82 6615 fi
Chris@82 6616 # And add a safety zone
Chris@82 6617 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Chris@82 6618 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Chris@82 6619 ;;
Chris@82 6620
Chris@82 6621 interix*)
Chris@82 6622 # We know the value 262144 and hardcode it with a safety zone (like BSD)
Chris@82 6623 lt_cv_sys_max_cmd_len=196608
Chris@82 6624 ;;
Chris@82 6625
Chris@82 6626 os2*)
Chris@82 6627 # The test takes a long time on OS/2.
Chris@82 6628 lt_cv_sys_max_cmd_len=8192
Chris@82 6629 ;;
Chris@82 6630
Chris@82 6631 osf*)
Chris@82 6632 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
Chris@82 6633 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
Chris@82 6634 # nice to cause kernel panics so lets avoid the loop below.
Chris@82 6635 # First set a reasonable default.
Chris@82 6636 lt_cv_sys_max_cmd_len=16384
Chris@82 6637 #
Chris@82 6638 if test -x /sbin/sysconfig; then
Chris@82 6639 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
Chris@82 6640 *1*) lt_cv_sys_max_cmd_len=-1 ;;
Chris@82 6641 esac
Chris@82 6642 fi
Chris@82 6643 ;;
Chris@82 6644 sco3.2v5*)
Chris@82 6645 lt_cv_sys_max_cmd_len=102400
Chris@82 6646 ;;
Chris@82 6647 sysv5* | sco5v6* | sysv4.2uw2*)
Chris@82 6648 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
Chris@82 6649 if test -n "$kargmax"; then
Chris@82 6650 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
Chris@82 6651 else
Chris@82 6652 lt_cv_sys_max_cmd_len=32768
Chris@82 6653 fi
Chris@82 6654 ;;
Chris@82 6655 *)
Chris@82 6656 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
Chris@82 6657 if test -n "$lt_cv_sys_max_cmd_len" && \
Chris@82 6658 test undefined != "$lt_cv_sys_max_cmd_len"; then
Chris@82 6659 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Chris@82 6660 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Chris@82 6661 else
Chris@82 6662 # Make teststring a little bigger before we do anything with it.
Chris@82 6663 # a 1K string should be a reasonable start.
Chris@82 6664 for i in 1 2 3 4 5 6 7 8; do
Chris@82 6665 teststring=$teststring$teststring
Chris@82 6666 done
Chris@82 6667 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
Chris@82 6668 # If test is not a shell built-in, we'll probably end up computing a
Chris@82 6669 # maximum length that is only half of the actual maximum length, but
Chris@82 6670 # we can't tell.
Chris@82 6671 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
Chris@82 6672 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Chris@82 6673 test 17 != "$i" # 1/2 MB should be enough
Chris@82 6674 do
Chris@82 6675 i=`expr $i + 1`
Chris@82 6676 teststring=$teststring$teststring
Chris@82 6677 done
Chris@82 6678 # Only check the string length outside the loop.
Chris@82 6679 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
Chris@82 6680 teststring=
Chris@82 6681 # Add a significant safety factor because C++ compilers can tack on
Chris@82 6682 # massive amounts of additional arguments before passing them to the
Chris@82 6683 # linker. It appears as though 1/2 is a usable value.
Chris@82 6684 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
Chris@82 6685 fi
Chris@82 6686 ;;
Chris@82 6687 esac
Chris@82 6688
Chris@82 6689 fi
Chris@82 6690
Chris@82 6691 if test -n "$lt_cv_sys_max_cmd_len"; then
Chris@82 6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
Chris@82 6693 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
Chris@82 6694 else
Chris@82 6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
Chris@82 6696 $as_echo "none" >&6; }
Chris@82 6697 fi
Chris@82 6698 max_cmd_len=$lt_cv_sys_max_cmd_len
Chris@82 6699
Chris@82 6700
Chris@82 6701
Chris@82 6702
Chris@82 6703
Chris@82 6704
Chris@82 6705 : ${CP="cp -f"}
Chris@82 6706 : ${MV="mv -f"}
Chris@82 6707 : ${RM="rm -f"}
Chris@82 6708
Chris@82 6709 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Chris@82 6710 lt_unset=unset
Chris@82 6711 else
Chris@82 6712 lt_unset=false
Chris@82 6713 fi
Chris@82 6714
Chris@82 6715
Chris@82 6716
Chris@82 6717
Chris@82 6718
Chris@82 6719 # test EBCDIC or ASCII
Chris@82 6720 case `echo X|tr X '\101'` in
Chris@82 6721 A) # ASCII based system
Chris@82 6722 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
Chris@82 6723 lt_SP2NL='tr \040 \012'
Chris@82 6724 lt_NL2SP='tr \015\012 \040\040'
Chris@82 6725 ;;
Chris@82 6726 *) # EBCDIC based system
Chris@82 6727 lt_SP2NL='tr \100 \n'
Chris@82 6728 lt_NL2SP='tr \r\n \100\100'
Chris@82 6729 ;;
Chris@82 6730 esac
Chris@82 6731
Chris@82 6732
Chris@82 6733
Chris@82 6734
Chris@82 6735
Chris@82 6736
Chris@82 6737
Chris@82 6738
Chris@82 6739
Chris@82 6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
Chris@82 6741 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
Chris@82 6742 if ${lt_cv_to_host_file_cmd+:} false; then :
Chris@82 6743 $as_echo_n "(cached) " >&6
Chris@82 6744 else
Chris@82 6745 case $host in
Chris@82 6746 *-*-mingw* )
Chris@82 6747 case $build in
Chris@82 6748 *-*-mingw* ) # actually msys
Chris@82 6749 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
Chris@82 6750 ;;
Chris@82 6751 *-*-cygwin* )
Chris@82 6752 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
Chris@82 6753 ;;
Chris@82 6754 * ) # otherwise, assume *nix
Chris@82 6755 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
Chris@82 6756 ;;
Chris@82 6757 esac
Chris@82 6758 ;;
Chris@82 6759 *-*-cygwin* )
Chris@82 6760 case $build in
Chris@82 6761 *-*-mingw* ) # actually msys
Chris@82 6762 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
Chris@82 6763 ;;
Chris@82 6764 *-*-cygwin* )
Chris@82 6765 lt_cv_to_host_file_cmd=func_convert_file_noop
Chris@82 6766 ;;
Chris@82 6767 * ) # otherwise, assume *nix
Chris@82 6768 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
Chris@82 6769 ;;
Chris@82 6770 esac
Chris@82 6771 ;;
Chris@82 6772 * ) # unhandled hosts (and "normal" native builds)
Chris@82 6773 lt_cv_to_host_file_cmd=func_convert_file_noop
Chris@82 6774 ;;
Chris@82 6775 esac
Chris@82 6776
Chris@82 6777 fi
Chris@82 6778
Chris@82 6779 to_host_file_cmd=$lt_cv_to_host_file_cmd
Chris@82 6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
Chris@82 6781 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
Chris@82 6782
Chris@82 6783
Chris@82 6784
Chris@82 6785
Chris@82 6786
Chris@82 6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
Chris@82 6788 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
Chris@82 6789 if ${lt_cv_to_tool_file_cmd+:} false; then :
Chris@82 6790 $as_echo_n "(cached) " >&6
Chris@82 6791 else
Chris@82 6792 #assume ordinary cross tools, or native build.
Chris@82 6793 lt_cv_to_tool_file_cmd=func_convert_file_noop
Chris@82 6794 case $host in
Chris@82 6795 *-*-mingw* )
Chris@82 6796 case $build in
Chris@82 6797 *-*-mingw* ) # actually msys
Chris@82 6798 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
Chris@82 6799 ;;
Chris@82 6800 esac
Chris@82 6801 ;;
Chris@82 6802 esac
Chris@82 6803
Chris@82 6804 fi
Chris@82 6805
Chris@82 6806 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Chris@82 6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
Chris@82 6808 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
Chris@82 6809
Chris@82 6810
Chris@82 6811
Chris@82 6812
Chris@82 6813
Chris@82 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
Chris@82 6815 $as_echo_n "checking for $LD option to reload object files... " >&6; }
Chris@82 6816 if ${lt_cv_ld_reload_flag+:} false; then :
Chris@82 6817 $as_echo_n "(cached) " >&6
Chris@82 6818 else
Chris@82 6819 lt_cv_ld_reload_flag='-r'
Chris@82 6820 fi
Chris@82 6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
Chris@82 6822 $as_echo "$lt_cv_ld_reload_flag" >&6; }
Chris@82 6823 reload_flag=$lt_cv_ld_reload_flag
Chris@82 6824 case $reload_flag in
Chris@82 6825 "" | " "*) ;;
Chris@82 6826 *) reload_flag=" $reload_flag" ;;
Chris@82 6827 esac
Chris@82 6828 reload_cmds='$LD$reload_flag -o $output$reload_objs'
Chris@82 6829 case $host_os in
Chris@82 6830 cygwin* | mingw* | pw32* | cegcc*)
Chris@82 6831 if test yes != "$GCC"; then
Chris@82 6832 reload_cmds=false
Chris@82 6833 fi
Chris@82 6834 ;;
Chris@82 6835 darwin*)
Chris@82 6836 if test yes = "$GCC"; then
Chris@82 6837 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
Chris@82 6838 else
Chris@82 6839 reload_cmds='$LD$reload_flag -o $output$reload_objs'
Chris@82 6840 fi
Chris@82 6841 ;;
Chris@82 6842 esac
Chris@82 6843
Chris@82 6844
Chris@82 6845
Chris@82 6846
Chris@82 6847
Chris@82 6848
Chris@82 6849
Chris@82 6850
Chris@82 6851
Chris@82 6852 if test -n "$ac_tool_prefix"; then
Chris@82 6853 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
Chris@82 6854 set dummy ${ac_tool_prefix}objdump; ac_word=$2
Chris@82 6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 6856 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 6857 if ${ac_cv_prog_OBJDUMP+:} false; then :
Chris@82 6858 $as_echo_n "(cached) " >&6
Chris@82 6859 else
Chris@82 6860 if test -n "$OBJDUMP"; then
Chris@82 6861 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
Chris@82 6862 else
Chris@82 6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 6864 for as_dir in $PATH
Chris@82 6865 do
Chris@82 6866 IFS=$as_save_IFS
Chris@82 6867 test -z "$as_dir" && as_dir=.
Chris@82 6868 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 6869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 6870 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Chris@82 6871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 6872 break 2
Chris@82 6873 fi
Chris@82 6874 done
Chris@82 6875 done
Chris@82 6876 IFS=$as_save_IFS
Chris@82 6877
Chris@82 6878 fi
Chris@82 6879 fi
Chris@82 6880 OBJDUMP=$ac_cv_prog_OBJDUMP
Chris@82 6881 if test -n "$OBJDUMP"; then
Chris@82 6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
Chris@82 6883 $as_echo "$OBJDUMP" >&6; }
Chris@82 6884 else
Chris@82 6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 6886 $as_echo "no" >&6; }
Chris@82 6887 fi
Chris@82 6888
Chris@82 6889
Chris@82 6890 fi
Chris@82 6891 if test -z "$ac_cv_prog_OBJDUMP"; then
Chris@82 6892 ac_ct_OBJDUMP=$OBJDUMP
Chris@82 6893 # Extract the first word of "objdump", so it can be a program name with args.
Chris@82 6894 set dummy objdump; ac_word=$2
Chris@82 6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 6896 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 6897 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Chris@82 6898 $as_echo_n "(cached) " >&6
Chris@82 6899 else
Chris@82 6900 if test -n "$ac_ct_OBJDUMP"; then
Chris@82 6901 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
Chris@82 6902 else
Chris@82 6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 6904 for as_dir in $PATH
Chris@82 6905 do
Chris@82 6906 IFS=$as_save_IFS
Chris@82 6907 test -z "$as_dir" && as_dir=.
Chris@82 6908 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 6909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 6910 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Chris@82 6911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 6912 break 2
Chris@82 6913 fi
Chris@82 6914 done
Chris@82 6915 done
Chris@82 6916 IFS=$as_save_IFS
Chris@82 6917
Chris@82 6918 fi
Chris@82 6919 fi
Chris@82 6920 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
Chris@82 6921 if test -n "$ac_ct_OBJDUMP"; then
Chris@82 6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
Chris@82 6923 $as_echo "$ac_ct_OBJDUMP" >&6; }
Chris@82 6924 else
Chris@82 6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 6926 $as_echo "no" >&6; }
Chris@82 6927 fi
Chris@82 6928
Chris@82 6929 if test "x$ac_ct_OBJDUMP" = x; then
Chris@82 6930 OBJDUMP="false"
Chris@82 6931 else
Chris@82 6932 case $cross_compiling:$ac_tool_warned in
Chris@82 6933 yes:)
Chris@82 6934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@82 6935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@82 6936 ac_tool_warned=yes ;;
Chris@82 6937 esac
Chris@82 6938 OBJDUMP=$ac_ct_OBJDUMP
Chris@82 6939 fi
Chris@82 6940 else
Chris@82 6941 OBJDUMP="$ac_cv_prog_OBJDUMP"
Chris@82 6942 fi
Chris@82 6943
Chris@82 6944 test -z "$OBJDUMP" && OBJDUMP=objdump
Chris@82 6945
Chris@82 6946
Chris@82 6947
Chris@82 6948
Chris@82 6949
Chris@82 6950
Chris@82 6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
Chris@82 6952 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
Chris@82 6953 if ${lt_cv_deplibs_check_method+:} false; then :
Chris@82 6954 $as_echo_n "(cached) " >&6
Chris@82 6955 else
Chris@82 6956 lt_cv_file_magic_cmd='$MAGIC_CMD'
Chris@82 6957 lt_cv_file_magic_test_file=
Chris@82 6958 lt_cv_deplibs_check_method='unknown'
Chris@82 6959 # Need to set the preceding variable on all platforms that support
Chris@82 6960 # interlibrary dependencies.
Chris@82 6961 # 'none' -- dependencies not supported.
Chris@82 6962 # 'unknown' -- same as none, but documents that we really don't know.
Chris@82 6963 # 'pass_all' -- all dependencies passed with no checks.
Chris@82 6964 # 'test_compile' -- check by making test program.
Chris@82 6965 # 'file_magic [[regex]]' -- check by looking for files in library path
Chris@82 6966 # that responds to the $file_magic_cmd with a given extended regex.
Chris@82 6967 # If you have 'file' or equivalent on your system and you're not sure
Chris@82 6968 # whether 'pass_all' will *always* work, you probably want this one.
Chris@82 6969
Chris@82 6970 case $host_os in
Chris@82 6971 aix[4-9]*)
Chris@82 6972 lt_cv_deplibs_check_method=pass_all
Chris@82 6973 ;;
Chris@82 6974
Chris@82 6975 beos*)
Chris@82 6976 lt_cv_deplibs_check_method=pass_all
Chris@82 6977 ;;
Chris@82 6978
Chris@82 6979 bsdi[45]*)
Chris@82 6980 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
Chris@82 6981 lt_cv_file_magic_cmd='/usr/bin/file -L'
Chris@82 6982 lt_cv_file_magic_test_file=/shlib/libc.so
Chris@82 6983 ;;
Chris@82 6984
Chris@82 6985 cygwin*)
Chris@82 6986 # func_win32_libid is a shell function defined in ltmain.sh
Chris@82 6987 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Chris@82 6988 lt_cv_file_magic_cmd='func_win32_libid'
Chris@82 6989 ;;
Chris@82 6990
Chris@82 6991 mingw* | pw32*)
Chris@82 6992 # Base MSYS/MinGW do not provide the 'file' command needed by
Chris@82 6993 # func_win32_libid shell function, so use a weaker test based on 'objdump',
Chris@82 6994 # unless we find 'file', for example because we are cross-compiling.
Chris@82 6995 if ( file / ) >/dev/null 2>&1; then
Chris@82 6996 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Chris@82 6997 lt_cv_file_magic_cmd='func_win32_libid'
Chris@82 6998 else
Chris@82 6999 # Keep this pattern in sync with the one in func_win32_libid.
Chris@82 7000 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
Chris@82 7001 lt_cv_file_magic_cmd='$OBJDUMP -f'
Chris@82 7002 fi
Chris@82 7003 ;;
Chris@82 7004
Chris@82 7005 cegcc*)
Chris@82 7006 # use the weaker test based on 'objdump'. See mingw*.
Chris@82 7007 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
Chris@82 7008 lt_cv_file_magic_cmd='$OBJDUMP -f'
Chris@82 7009 ;;
Chris@82 7010
Chris@82 7011 darwin* | rhapsody*)
Chris@82 7012 lt_cv_deplibs_check_method=pass_all
Chris@82 7013 ;;
Chris@82 7014
Chris@82 7015 freebsd* | dragonfly*)
Chris@82 7016 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Chris@82 7017 case $host_cpu in
Chris@82 7018 i*86 )
Chris@82 7019 # Not sure whether the presence of OpenBSD here was a mistake.
Chris@82 7020 # Let's accept both of them until this is cleared up.
Chris@82 7021 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
Chris@82 7022 lt_cv_file_magic_cmd=/usr/bin/file
Chris@82 7023 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
Chris@82 7024 ;;
Chris@82 7025 esac
Chris@82 7026 else
Chris@82 7027 lt_cv_deplibs_check_method=pass_all
Chris@82 7028 fi
Chris@82 7029 ;;
Chris@82 7030
Chris@82 7031 haiku*)
Chris@82 7032 lt_cv_deplibs_check_method=pass_all
Chris@82 7033 ;;
Chris@82 7034
Chris@82 7035 hpux10.20* | hpux11*)
Chris@82 7036 lt_cv_file_magic_cmd=/usr/bin/file
Chris@82 7037 case $host_cpu in
Chris@82 7038 ia64*)
Chris@82 7039 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
Chris@82 7040 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
Chris@82 7041 ;;
Chris@82 7042 hppa*64*)
Chris@82 7043 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@82 7044 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
Chris@82 7045 ;;
Chris@82 7046 *)
Chris@82 7047 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
Chris@82 7048 lt_cv_file_magic_test_file=/usr/lib/libc.sl
Chris@82 7049 ;;
Chris@82 7050 esac
Chris@82 7051 ;;
Chris@82 7052
Chris@82 7053 interix[3-9]*)
Chris@82 7054 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
Chris@82 7055 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
Chris@82 7056 ;;
Chris@82 7057
Chris@82 7058 irix5* | irix6* | nonstopux*)
Chris@82 7059 case $LD in
Chris@82 7060 *-32|*"-32 ") libmagic=32-bit;;
Chris@82 7061 *-n32|*"-n32 ") libmagic=N32;;
Chris@82 7062 *-64|*"-64 ") libmagic=64-bit;;
Chris@82 7063 *) libmagic=never-match;;
Chris@82 7064 esac
Chris@82 7065 lt_cv_deplibs_check_method=pass_all
Chris@82 7066 ;;
Chris@82 7067
Chris@82 7068 # This must be glibc/ELF.
Chris@82 7069 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Chris@82 7070 lt_cv_deplibs_check_method=pass_all
Chris@82 7071 ;;
Chris@82 7072
Chris@82 7073 netbsd* | netbsdelf*-gnu)
Chris@82 7074 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Chris@82 7075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Chris@82 7076 else
Chris@82 7077 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
Chris@82 7078 fi
Chris@82 7079 ;;
Chris@82 7080
Chris@82 7081 newos6*)
Chris@82 7082 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
Chris@82 7083 lt_cv_file_magic_cmd=/usr/bin/file
Chris@82 7084 lt_cv_file_magic_test_file=/usr/lib/libnls.so
Chris@82 7085 ;;
Chris@82 7086
Chris@82 7087 *nto* | *qnx*)
Chris@82 7088 lt_cv_deplibs_check_method=pass_all
Chris@82 7089 ;;
Chris@82 7090
Chris@82 7091 openbsd* | bitrig*)
Chris@82 7092 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Chris@82 7093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
Chris@82 7094 else
Chris@82 7095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Chris@82 7096 fi
Chris@82 7097 ;;
Chris@82 7098
Chris@82 7099 osf3* | osf4* | osf5*)
Chris@82 7100 lt_cv_deplibs_check_method=pass_all
Chris@82 7101 ;;
Chris@82 7102
Chris@82 7103 rdos*)
Chris@82 7104 lt_cv_deplibs_check_method=pass_all
Chris@82 7105 ;;
Chris@82 7106
Chris@82 7107 solaris*)
Chris@82 7108 lt_cv_deplibs_check_method=pass_all
Chris@82 7109 ;;
Chris@82 7110
Chris@82 7111 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Chris@82 7112 lt_cv_deplibs_check_method=pass_all
Chris@82 7113 ;;
Chris@82 7114
Chris@82 7115 sysv4 | sysv4.3*)
Chris@82 7116 case $host_vendor in
Chris@82 7117 motorola)
Chris@82 7118 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@82 7119 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
Chris@82 7120 ;;
Chris@82 7121 ncr)
Chris@82 7122 lt_cv_deplibs_check_method=pass_all
Chris@82 7123 ;;
Chris@82 7124 sequent)
Chris@82 7125 lt_cv_file_magic_cmd='/bin/file'
Chris@82 7126 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
Chris@82 7127 ;;
Chris@82 7128 sni)
Chris@82 7129 lt_cv_file_magic_cmd='/bin/file'
Chris@82 7130 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
Chris@82 7131 lt_cv_file_magic_test_file=/lib/libc.so
Chris@82 7132 ;;
Chris@82 7133 siemens)
Chris@82 7134 lt_cv_deplibs_check_method=pass_all
Chris@82 7135 ;;
Chris@82 7136 pc)
Chris@82 7137 lt_cv_deplibs_check_method=pass_all
Chris@82 7138 ;;
Chris@82 7139 esac
Chris@82 7140 ;;
Chris@82 7141
Chris@82 7142 tpf*)
Chris@82 7143 lt_cv_deplibs_check_method=pass_all
Chris@82 7144 ;;
Chris@82 7145 os2*)
Chris@82 7146 lt_cv_deplibs_check_method=pass_all
Chris@82 7147 ;;
Chris@82 7148 esac
Chris@82 7149
Chris@82 7150 fi
Chris@82 7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
Chris@82 7152 $as_echo "$lt_cv_deplibs_check_method" >&6; }
Chris@82 7153
Chris@82 7154 file_magic_glob=
Chris@82 7155 want_nocaseglob=no
Chris@82 7156 if test "$build" = "$host"; then
Chris@82 7157 case $host_os in
Chris@82 7158 mingw* | pw32*)
Chris@82 7159 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
Chris@82 7160 want_nocaseglob=yes
Chris@82 7161 else
Chris@82 7162 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
Chris@82 7163 fi
Chris@82 7164 ;;
Chris@82 7165 esac
Chris@82 7166 fi
Chris@82 7167
Chris@82 7168 file_magic_cmd=$lt_cv_file_magic_cmd
Chris@82 7169 deplibs_check_method=$lt_cv_deplibs_check_method
Chris@82 7170 test -z "$deplibs_check_method" && deplibs_check_method=unknown
Chris@82 7171
Chris@82 7172
Chris@82 7173
Chris@82 7174
Chris@82 7175
Chris@82 7176
Chris@82 7177
Chris@82 7178
Chris@82 7179
Chris@82 7180
Chris@82 7181
Chris@82 7182
Chris@82 7183
Chris@82 7184
Chris@82 7185
Chris@82 7186
Chris@82 7187
Chris@82 7188
Chris@82 7189
Chris@82 7190
Chris@82 7191
Chris@82 7192
Chris@82 7193 if test -n "$ac_tool_prefix"; then
Chris@82 7194 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
Chris@82 7195 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Chris@82 7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 7197 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 7198 if ${ac_cv_prog_DLLTOOL+:} false; then :
Chris@82 7199 $as_echo_n "(cached) " >&6
Chris@82 7200 else
Chris@82 7201 if test -n "$DLLTOOL"; then
Chris@82 7202 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
Chris@82 7203 else
Chris@82 7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 7205 for as_dir in $PATH
Chris@82 7206 do
Chris@82 7207 IFS=$as_save_IFS
Chris@82 7208 test -z "$as_dir" && as_dir=.
Chris@82 7209 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 7210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 7211 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
Chris@82 7212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 7213 break 2
Chris@82 7214 fi
Chris@82 7215 done
Chris@82 7216 done
Chris@82 7217 IFS=$as_save_IFS
Chris@82 7218
Chris@82 7219 fi
Chris@82 7220 fi
Chris@82 7221 DLLTOOL=$ac_cv_prog_DLLTOOL
Chris@82 7222 if test -n "$DLLTOOL"; then
Chris@82 7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
Chris@82 7224 $as_echo "$DLLTOOL" >&6; }
Chris@82 7225 else
Chris@82 7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 7227 $as_echo "no" >&6; }
Chris@82 7228 fi
Chris@82 7229
Chris@82 7230
Chris@82 7231 fi
Chris@82 7232 if test -z "$ac_cv_prog_DLLTOOL"; then
Chris@82 7233 ac_ct_DLLTOOL=$DLLTOOL
Chris@82 7234 # Extract the first word of "dlltool", so it can be a program name with args.
Chris@82 7235 set dummy dlltool; ac_word=$2
Chris@82 7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 7237 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 7238 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
Chris@82 7239 $as_echo_n "(cached) " >&6
Chris@82 7240 else
Chris@82 7241 if test -n "$ac_ct_DLLTOOL"; then
Chris@82 7242 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
Chris@82 7243 else
Chris@82 7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 7245 for as_dir in $PATH
Chris@82 7246 do
Chris@82 7247 IFS=$as_save_IFS
Chris@82 7248 test -z "$as_dir" && as_dir=.
Chris@82 7249 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 7250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 7251 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
Chris@82 7252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 7253 break 2
Chris@82 7254 fi
Chris@82 7255 done
Chris@82 7256 done
Chris@82 7257 IFS=$as_save_IFS
Chris@82 7258
Chris@82 7259 fi
Chris@82 7260 fi
Chris@82 7261 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
Chris@82 7262 if test -n "$ac_ct_DLLTOOL"; then
Chris@82 7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
Chris@82 7264 $as_echo "$ac_ct_DLLTOOL" >&6; }
Chris@82 7265 else
Chris@82 7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 7267 $as_echo "no" >&6; }
Chris@82 7268 fi
Chris@82 7269
Chris@82 7270 if test "x$ac_ct_DLLTOOL" = x; then
Chris@82 7271 DLLTOOL="false"
Chris@82 7272 else
Chris@82 7273 case $cross_compiling:$ac_tool_warned in
Chris@82 7274 yes:)
Chris@82 7275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@82 7276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@82 7277 ac_tool_warned=yes ;;
Chris@82 7278 esac
Chris@82 7279 DLLTOOL=$ac_ct_DLLTOOL
Chris@82 7280 fi
Chris@82 7281 else
Chris@82 7282 DLLTOOL="$ac_cv_prog_DLLTOOL"
Chris@82 7283 fi
Chris@82 7284
Chris@82 7285 test -z "$DLLTOOL" && DLLTOOL=dlltool
Chris@82 7286
Chris@82 7287
Chris@82 7288
Chris@82 7289
Chris@82 7290
Chris@82 7291
Chris@82 7292
Chris@82 7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
Chris@82 7294 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
Chris@82 7295 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
Chris@82 7296 $as_echo_n "(cached) " >&6
Chris@82 7297 else
Chris@82 7298 lt_cv_sharedlib_from_linklib_cmd='unknown'
Chris@82 7299
Chris@82 7300 case $host_os in
Chris@82 7301 cygwin* | mingw* | pw32* | cegcc*)
Chris@82 7302 # two different shell functions defined in ltmain.sh;
Chris@82 7303 # decide which one to use based on capabilities of $DLLTOOL
Chris@82 7304 case `$DLLTOOL --help 2>&1` in
Chris@82 7305 *--identify-strict*)
Chris@82 7306 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
Chris@82 7307 ;;
Chris@82 7308 *)
Chris@82 7309 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
Chris@82 7310 ;;
Chris@82 7311 esac
Chris@82 7312 ;;
Chris@82 7313 *)
Chris@82 7314 # fallback: assume linklib IS sharedlib
Chris@82 7315 lt_cv_sharedlib_from_linklib_cmd=$ECHO
Chris@82 7316 ;;
Chris@82 7317 esac
Chris@82 7318
Chris@82 7319 fi
Chris@82 7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
Chris@82 7321 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
Chris@82 7322 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
Chris@82 7323 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
Chris@82 7324
Chris@82 7325
Chris@82 7326
Chris@82 7327
Chris@82 7328
Chris@82 7329
Chris@82 7330
Chris@82 7331 if test -n "$ac_tool_prefix"; then
Chris@82 7332 for ac_prog in ar
Chris@82 7333 do
Chris@82 7334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@82 7335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@82 7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 7337 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 7338 if ${ac_cv_prog_AR+:} false; then :
Chris@82 7339 $as_echo_n "(cached) " >&6
Chris@82 7340 else
Chris@82 7341 if test -n "$AR"; then
Chris@82 7342 ac_cv_prog_AR="$AR" # Let the user override the test.
Chris@82 7343 else
Chris@82 7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 7345 for as_dir in $PATH
Chris@82 7346 do
Chris@82 7347 IFS=$as_save_IFS
Chris@82 7348 test -z "$as_dir" && as_dir=.
Chris@82 7349 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 7350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 7351 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Chris@82 7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 7353 break 2
Chris@82 7354 fi
Chris@82 7355 done
Chris@82 7356 done
Chris@82 7357 IFS=$as_save_IFS
Chris@82 7358
Chris@82 7359 fi
Chris@82 7360 fi
Chris@82 7361 AR=$ac_cv_prog_AR
Chris@82 7362 if test -n "$AR"; then
Chris@82 7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Chris@82 7364 $as_echo "$AR" >&6; }
Chris@82 7365 else
Chris@82 7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 7367 $as_echo "no" >&6; }
Chris@82 7368 fi
Chris@82 7369
Chris@82 7370
Chris@82 7371 test -n "$AR" && break
Chris@82 7372 done
Chris@82 7373 fi
Chris@82 7374 if test -z "$AR"; then
Chris@82 7375 ac_ct_AR=$AR
Chris@82 7376 for ac_prog in ar
Chris@82 7377 do
Chris@82 7378 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@82 7379 set dummy $ac_prog; ac_word=$2
Chris@82 7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 7381 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 7382 if ${ac_cv_prog_ac_ct_AR+:} false; then :
Chris@82 7383 $as_echo_n "(cached) " >&6
Chris@82 7384 else
Chris@82 7385 if test -n "$ac_ct_AR"; then
Chris@82 7386 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Chris@82 7387 else
Chris@82 7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 7389 for as_dir in $PATH
Chris@82 7390 do
Chris@82 7391 IFS=$as_save_IFS
Chris@82 7392 test -z "$as_dir" && as_dir=.
Chris@82 7393 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 7394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 7395 ac_cv_prog_ac_ct_AR="$ac_prog"
Chris@82 7396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 7397 break 2
Chris@82 7398 fi
Chris@82 7399 done
Chris@82 7400 done
Chris@82 7401 IFS=$as_save_IFS
Chris@82 7402
Chris@82 7403 fi
Chris@82 7404 fi
Chris@82 7405 ac_ct_AR=$ac_cv_prog_ac_ct_AR
Chris@82 7406 if test -n "$ac_ct_AR"; then
Chris@82 7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Chris@82 7408 $as_echo "$ac_ct_AR" >&6; }
Chris@82 7409 else
Chris@82 7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 7411 $as_echo "no" >&6; }
Chris@82 7412 fi
Chris@82 7413
Chris@82 7414
Chris@82 7415 test -n "$ac_ct_AR" && break
Chris@82 7416 done
Chris@82 7417
Chris@82 7418 if test "x$ac_ct_AR" = x; then
Chris@82 7419 AR="false"
Chris@82 7420 else
Chris@82 7421 case $cross_compiling:$ac_tool_warned in
Chris@82 7422 yes:)
Chris@82 7423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@82 7424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@82 7425 ac_tool_warned=yes ;;
Chris@82 7426 esac
Chris@82 7427 AR=$ac_ct_AR
Chris@82 7428 fi
Chris@82 7429 fi
Chris@82 7430
Chris@82 7431 : ${AR=ar}
Chris@82 7432 : ${AR_FLAGS=cru}
Chris@82 7433
Chris@82 7434
Chris@82 7435
Chris@82 7436
Chris@82 7437
Chris@82 7438
Chris@82 7439
Chris@82 7440
Chris@82 7441
Chris@82 7442
Chris@82 7443
Chris@82 7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
Chris@82 7445 $as_echo_n "checking for archiver @FILE support... " >&6; }
Chris@82 7446 if ${lt_cv_ar_at_file+:} false; then :
Chris@82 7447 $as_echo_n "(cached) " >&6
Chris@82 7448 else
Chris@82 7449 lt_cv_ar_at_file=no
Chris@82 7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 7451 /* end confdefs.h. */
Chris@82 7452
Chris@82 7453 int
Chris@82 7454 main ()
Chris@82 7455 {
Chris@82 7456
Chris@82 7457 ;
Chris@82 7458 return 0;
Chris@82 7459 }
Chris@82 7460 _ACEOF
Chris@82 7461 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 7462 echo conftest.$ac_objext > conftest.lst
Chris@82 7463 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
Chris@82 7464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
Chris@82 7465 (eval $lt_ar_try) 2>&5
Chris@82 7466 ac_status=$?
Chris@82 7467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@82 7468 test $ac_status = 0; }
Chris@82 7469 if test 0 -eq "$ac_status"; then
Chris@82 7470 # Ensure the archiver fails upon bogus file names.
Chris@82 7471 rm -f conftest.$ac_objext libconftest.a
Chris@82 7472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
Chris@82 7473 (eval $lt_ar_try) 2>&5
Chris@82 7474 ac_status=$?
Chris@82 7475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@82 7476 test $ac_status = 0; }
Chris@82 7477 if test 0 -ne "$ac_status"; then
Chris@82 7478 lt_cv_ar_at_file=@
Chris@82 7479 fi
Chris@82 7480 fi
Chris@82 7481 rm -f conftest.* libconftest.a
Chris@82 7482
Chris@82 7483 fi
Chris@82 7484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 7485
Chris@82 7486 fi
Chris@82 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
Chris@82 7488 $as_echo "$lt_cv_ar_at_file" >&6; }
Chris@82 7489
Chris@82 7490 if test no = "$lt_cv_ar_at_file"; then
Chris@82 7491 archiver_list_spec=
Chris@82 7492 else
Chris@82 7493 archiver_list_spec=$lt_cv_ar_at_file
Chris@82 7494 fi
Chris@82 7495
Chris@82 7496
Chris@82 7497
Chris@82 7498
Chris@82 7499
Chris@82 7500
Chris@82 7501
Chris@82 7502 if test -n "$ac_tool_prefix"; then
Chris@82 7503 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
Chris@82 7504 set dummy ${ac_tool_prefix}strip; ac_word=$2
Chris@82 7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 7506 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 7507 if ${ac_cv_prog_STRIP+:} false; then :
Chris@82 7508 $as_echo_n "(cached) " >&6
Chris@82 7509 else
Chris@82 7510 if test -n "$STRIP"; then
Chris@82 7511 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
Chris@82 7512 else
Chris@82 7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 7514 for as_dir in $PATH
Chris@82 7515 do
Chris@82 7516 IFS=$as_save_IFS
Chris@82 7517 test -z "$as_dir" && as_dir=.
Chris@82 7518 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 7519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 7520 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Chris@82 7521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 7522 break 2
Chris@82 7523 fi
Chris@82 7524 done
Chris@82 7525 done
Chris@82 7526 IFS=$as_save_IFS
Chris@82 7527
Chris@82 7528 fi
Chris@82 7529 fi
Chris@82 7530 STRIP=$ac_cv_prog_STRIP
Chris@82 7531 if test -n "$STRIP"; then
Chris@82 7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Chris@82 7533 $as_echo "$STRIP" >&6; }
Chris@82 7534 else
Chris@82 7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 7536 $as_echo "no" >&6; }
Chris@82 7537 fi
Chris@82 7538
Chris@82 7539
Chris@82 7540 fi
Chris@82 7541 if test -z "$ac_cv_prog_STRIP"; then
Chris@82 7542 ac_ct_STRIP=$STRIP
Chris@82 7543 # Extract the first word of "strip", so it can be a program name with args.
Chris@82 7544 set dummy strip; ac_word=$2
Chris@82 7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 7546 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 7547 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Chris@82 7548 $as_echo_n "(cached) " >&6
Chris@82 7549 else
Chris@82 7550 if test -n "$ac_ct_STRIP"; then
Chris@82 7551 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Chris@82 7552 else
Chris@82 7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 7554 for as_dir in $PATH
Chris@82 7555 do
Chris@82 7556 IFS=$as_save_IFS
Chris@82 7557 test -z "$as_dir" && as_dir=.
Chris@82 7558 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 7559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 7560 ac_cv_prog_ac_ct_STRIP="strip"
Chris@82 7561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 7562 break 2
Chris@82 7563 fi
Chris@82 7564 done
Chris@82 7565 done
Chris@82 7566 IFS=$as_save_IFS
Chris@82 7567
Chris@82 7568 fi
Chris@82 7569 fi
Chris@82 7570 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
Chris@82 7571 if test -n "$ac_ct_STRIP"; then
Chris@82 7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Chris@82 7573 $as_echo "$ac_ct_STRIP" >&6; }
Chris@82 7574 else
Chris@82 7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 7576 $as_echo "no" >&6; }
Chris@82 7577 fi
Chris@82 7578
Chris@82 7579 if test "x$ac_ct_STRIP" = x; then
Chris@82 7580 STRIP=":"
Chris@82 7581 else
Chris@82 7582 case $cross_compiling:$ac_tool_warned in
Chris@82 7583 yes:)
Chris@82 7584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@82 7585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@82 7586 ac_tool_warned=yes ;;
Chris@82 7587 esac
Chris@82 7588 STRIP=$ac_ct_STRIP
Chris@82 7589 fi
Chris@82 7590 else
Chris@82 7591 STRIP="$ac_cv_prog_STRIP"
Chris@82 7592 fi
Chris@82 7593
Chris@82 7594 test -z "$STRIP" && STRIP=:
Chris@82 7595
Chris@82 7596
Chris@82 7597
Chris@82 7598
Chris@82 7599
Chris@82 7600
Chris@82 7601 if test -n "$ac_tool_prefix"; then
Chris@82 7602 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
Chris@82 7603 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Chris@82 7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 7605 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 7606 if ${ac_cv_prog_RANLIB+:} false; then :
Chris@82 7607 $as_echo_n "(cached) " >&6
Chris@82 7608 else
Chris@82 7609 if test -n "$RANLIB"; then
Chris@82 7610 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
Chris@82 7611 else
Chris@82 7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 7613 for as_dir in $PATH
Chris@82 7614 do
Chris@82 7615 IFS=$as_save_IFS
Chris@82 7616 test -z "$as_dir" && as_dir=.
Chris@82 7617 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 7618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 7619 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Chris@82 7620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 7621 break 2
Chris@82 7622 fi
Chris@82 7623 done
Chris@82 7624 done
Chris@82 7625 IFS=$as_save_IFS
Chris@82 7626
Chris@82 7627 fi
Chris@82 7628 fi
Chris@82 7629 RANLIB=$ac_cv_prog_RANLIB
Chris@82 7630 if test -n "$RANLIB"; then
Chris@82 7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Chris@82 7632 $as_echo "$RANLIB" >&6; }
Chris@82 7633 else
Chris@82 7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 7635 $as_echo "no" >&6; }
Chris@82 7636 fi
Chris@82 7637
Chris@82 7638
Chris@82 7639 fi
Chris@82 7640 if test -z "$ac_cv_prog_RANLIB"; then
Chris@82 7641 ac_ct_RANLIB=$RANLIB
Chris@82 7642 # Extract the first word of "ranlib", so it can be a program name with args.
Chris@82 7643 set dummy ranlib; ac_word=$2
Chris@82 7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 7645 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 7646 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Chris@82 7647 $as_echo_n "(cached) " >&6
Chris@82 7648 else
Chris@82 7649 if test -n "$ac_ct_RANLIB"; then
Chris@82 7650 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Chris@82 7651 else
Chris@82 7652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 7653 for as_dir in $PATH
Chris@82 7654 do
Chris@82 7655 IFS=$as_save_IFS
Chris@82 7656 test -z "$as_dir" && as_dir=.
Chris@82 7657 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 7658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 7659 ac_cv_prog_ac_ct_RANLIB="ranlib"
Chris@82 7660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 7661 break 2
Chris@82 7662 fi
Chris@82 7663 done
Chris@82 7664 done
Chris@82 7665 IFS=$as_save_IFS
Chris@82 7666
Chris@82 7667 fi
Chris@82 7668 fi
Chris@82 7669 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
Chris@82 7670 if test -n "$ac_ct_RANLIB"; then
Chris@82 7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Chris@82 7672 $as_echo "$ac_ct_RANLIB" >&6; }
Chris@82 7673 else
Chris@82 7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 7675 $as_echo "no" >&6; }
Chris@82 7676 fi
Chris@82 7677
Chris@82 7678 if test "x$ac_ct_RANLIB" = x; then
Chris@82 7679 RANLIB=":"
Chris@82 7680 else
Chris@82 7681 case $cross_compiling:$ac_tool_warned in
Chris@82 7682 yes:)
Chris@82 7683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@82 7684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@82 7685 ac_tool_warned=yes ;;
Chris@82 7686 esac
Chris@82 7687 RANLIB=$ac_ct_RANLIB
Chris@82 7688 fi
Chris@82 7689 else
Chris@82 7690 RANLIB="$ac_cv_prog_RANLIB"
Chris@82 7691 fi
Chris@82 7692
Chris@82 7693 test -z "$RANLIB" && RANLIB=:
Chris@82 7694
Chris@82 7695
Chris@82 7696
Chris@82 7697
Chris@82 7698
Chris@82 7699
Chris@82 7700 # Determine commands to create old-style static archives.
Chris@82 7701 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
Chris@82 7702 old_postinstall_cmds='chmod 644 $oldlib'
Chris@82 7703 old_postuninstall_cmds=
Chris@82 7704
Chris@82 7705 if test -n "$RANLIB"; then
Chris@82 7706 case $host_os in
Chris@82 7707 bitrig* | openbsd*)
Chris@82 7708 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
Chris@82 7709 ;;
Chris@82 7710 *)
Chris@82 7711 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
Chris@82 7712 ;;
Chris@82 7713 esac
Chris@82 7714 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
Chris@82 7715 fi
Chris@82 7716
Chris@82 7717 case $host_os in
Chris@82 7718 darwin*)
Chris@82 7719 lock_old_archive_extraction=yes ;;
Chris@82 7720 *)
Chris@82 7721 lock_old_archive_extraction=no ;;
Chris@82 7722 esac
Chris@82 7723
Chris@82 7724
Chris@82 7725
Chris@82 7726
Chris@82 7727
Chris@82 7728
Chris@82 7729
Chris@82 7730
Chris@82 7731
Chris@82 7732
Chris@82 7733
Chris@82 7734
Chris@82 7735
Chris@82 7736
Chris@82 7737
Chris@82 7738
Chris@82 7739
Chris@82 7740
Chris@82 7741
Chris@82 7742
Chris@82 7743
Chris@82 7744
Chris@82 7745
Chris@82 7746
Chris@82 7747
Chris@82 7748
Chris@82 7749
Chris@82 7750
Chris@82 7751
Chris@82 7752
Chris@82 7753
Chris@82 7754
Chris@82 7755
Chris@82 7756
Chris@82 7757
Chris@82 7758
Chris@82 7759
Chris@82 7760
Chris@82 7761
Chris@82 7762 # If no C compiler was specified, use CC.
Chris@82 7763 LTCC=${LTCC-"$CC"}
Chris@82 7764
Chris@82 7765 # If no C compiler flags were specified, use CFLAGS.
Chris@82 7766 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Chris@82 7767
Chris@82 7768 # Allow CC to be a program name with arguments.
Chris@82 7769 compiler=$CC
Chris@82 7770
Chris@82 7771
Chris@82 7772 # Check for command to grab the raw symbol name followed by C symbol from nm.
Chris@82 7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
Chris@82 7774 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Chris@82 7775 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Chris@82 7776 $as_echo_n "(cached) " >&6
Chris@82 7777 else
Chris@82 7778
Chris@82 7779 # These are sane defaults that work on at least a few old systems.
Chris@82 7780 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
Chris@82 7781
Chris@82 7782 # Character class describing NM global symbol codes.
Chris@82 7783 symcode='[BCDEGRST]'
Chris@82 7784
Chris@82 7785 # Regexp to match symbols that can be accessed directly from C.
Chris@82 7786 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
Chris@82 7787
Chris@82 7788 # Define system-specific variables.
Chris@82 7789 case $host_os in
Chris@82 7790 aix*)
Chris@82 7791 symcode='[BCDT]'
Chris@82 7792 ;;
Chris@82 7793 cygwin* | mingw* | pw32* | cegcc*)
Chris@82 7794 symcode='[ABCDGISTW]'
Chris@82 7795 ;;
Chris@82 7796 hpux*)
Chris@82 7797 if test ia64 = "$host_cpu"; then
Chris@82 7798 symcode='[ABCDEGRST]'
Chris@82 7799 fi
Chris@82 7800 ;;
Chris@82 7801 irix* | nonstopux*)
Chris@82 7802 symcode='[BCDEGRST]'
Chris@82 7803 ;;
Chris@82 7804 osf*)
Chris@82 7805 symcode='[BCDEGQRST]'
Chris@82 7806 ;;
Chris@82 7807 solaris*)
Chris@82 7808 symcode='[BDRT]'
Chris@82 7809 ;;
Chris@82 7810 sco3.2v5*)
Chris@82 7811 symcode='[DT]'
Chris@82 7812 ;;
Chris@82 7813 sysv4.2uw2*)
Chris@82 7814 symcode='[DT]'
Chris@82 7815 ;;
Chris@82 7816 sysv5* | sco5v6* | unixware* | OpenUNIX*)
Chris@82 7817 symcode='[ABDT]'
Chris@82 7818 ;;
Chris@82 7819 sysv4)
Chris@82 7820 symcode='[DFNSTU]'
Chris@82 7821 ;;
Chris@82 7822 esac
Chris@82 7823
Chris@82 7824 # If we're using GNU nm, then use its standard symbol codes.
Chris@82 7825 case `$NM -V 2>&1` in
Chris@82 7826 *GNU* | *'with BFD'*)
Chris@82 7827 symcode='[ABCDGIRSTW]' ;;
Chris@82 7828 esac
Chris@82 7829
Chris@82 7830 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Chris@82 7831 # Gets list of data symbols to import.
Chris@82 7832 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
Chris@82 7833 # Adjust the below global symbol transforms to fixup imported variables.
Chris@82 7834 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
Chris@82 7835 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
Chris@82 7836 lt_c_name_lib_hook="\
Chris@82 7837 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
Chris@82 7838 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
Chris@82 7839 else
Chris@82 7840 # Disable hooks by default.
Chris@82 7841 lt_cv_sys_global_symbol_to_import=
Chris@82 7842 lt_cdecl_hook=
Chris@82 7843 lt_c_name_hook=
Chris@82 7844 lt_c_name_lib_hook=
Chris@82 7845 fi
Chris@82 7846
Chris@82 7847 # Transform an extracted symbol line into a proper C declaration.
Chris@82 7848 # Some systems (esp. on ia64) link data and code symbols differently,
Chris@82 7849 # so use this general approach.
Chris@82 7850 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
Chris@82 7851 $lt_cdecl_hook\
Chris@82 7852 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
Chris@82 7853 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
Chris@82 7854
Chris@82 7855 # Transform an extracted symbol line into symbol name and symbol address
Chris@82 7856 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
Chris@82 7857 $lt_c_name_hook\
Chris@82 7858 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
Chris@82 7859 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
Chris@82 7860
Chris@82 7861 # Transform an extracted symbol line into symbol name with lib prefix and
Chris@82 7862 # symbol address.
Chris@82 7863 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
Chris@82 7864 $lt_c_name_lib_hook\
Chris@82 7865 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
Chris@82 7866 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
Chris@82 7867 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
Chris@82 7868
Chris@82 7869 # Handle CRLF in mingw tool chain
Chris@82 7870 opt_cr=
Chris@82 7871 case $build_os in
Chris@82 7872 mingw*)
Chris@82 7873 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
Chris@82 7874 ;;
Chris@82 7875 esac
Chris@82 7876
Chris@82 7877 # Try without a prefix underscore, then with it.
Chris@82 7878 for ac_symprfx in "" "_"; do
Chris@82 7879
Chris@82 7880 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
Chris@82 7881 symxfrm="\\1 $ac_symprfx\\2 \\2"
Chris@82 7882
Chris@82 7883 # Write the raw and C identifiers.
Chris@82 7884 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Chris@82 7885 # Fake it for dumpbin and say T for any non-static function,
Chris@82 7886 # D for any global variable and I for any imported variable.
Chris@82 7887 # Also find C++ and __fastcall symbols from MSVC++,
Chris@82 7888 # which start with @ or ?.
Chris@82 7889 lt_cv_sys_global_symbol_pipe="$AWK '"\
Chris@82 7890 " {last_section=section; section=\$ 3};"\
Chris@82 7891 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
Chris@82 7892 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
Chris@82 7893 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
Chris@82 7894 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
Chris@82 7895 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
Chris@82 7896 " \$ 0!~/External *\|/{next};"\
Chris@82 7897 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
Chris@82 7898 " {if(hide[section]) next};"\
Chris@82 7899 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
Chris@82 7900 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
Chris@82 7901 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
Chris@82 7902 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
Chris@82 7903 " ' prfx=^$ac_symprfx"
Chris@82 7904 else
Chris@82 7905 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
Chris@82 7906 fi
Chris@82 7907 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
Chris@82 7908
Chris@82 7909 # Check to see that the pipe works correctly.
Chris@82 7910 pipe_works=no
Chris@82 7911
Chris@82 7912 rm -f conftest*
Chris@82 7913 cat > conftest.$ac_ext <<_LT_EOF
Chris@82 7914 #ifdef __cplusplus
Chris@82 7915 extern "C" {
Chris@82 7916 #endif
Chris@82 7917 char nm_test_var;
Chris@82 7918 void nm_test_func(void);
Chris@82 7919 void nm_test_func(void){}
Chris@82 7920 #ifdef __cplusplus
Chris@82 7921 }
Chris@82 7922 #endif
Chris@82 7923 int main(){nm_test_var='a';nm_test_func();return(0);}
Chris@82 7924 _LT_EOF
Chris@82 7925
Chris@82 7926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@82 7927 (eval $ac_compile) 2>&5
Chris@82 7928 ac_status=$?
Chris@82 7929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@82 7930 test $ac_status = 0; }; then
Chris@82 7931 # Now try to grab the symbols.
Chris@82 7932 nlist=conftest.nm
Chris@82 7933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
Chris@82 7934 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
Chris@82 7935 ac_status=$?
Chris@82 7936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@82 7937 test $ac_status = 0; } && test -s "$nlist"; then
Chris@82 7938 # Try sorting and uniquifying the output.
Chris@82 7939 if sort "$nlist" | uniq > "$nlist"T; then
Chris@82 7940 mv -f "$nlist"T "$nlist"
Chris@82 7941 else
Chris@82 7942 rm -f "$nlist"T
Chris@82 7943 fi
Chris@82 7944
Chris@82 7945 # Make sure that we snagged all the symbols we need.
Chris@82 7946 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
Chris@82 7947 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
Chris@82 7948 cat <<_LT_EOF > conftest.$ac_ext
Chris@82 7949 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
Chris@82 7950 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
Chris@82 7951 /* DATA imports from DLLs on WIN32 can't be const, because runtime
Chris@82 7952 relocations are performed -- see ld's documentation on pseudo-relocs. */
Chris@82 7953 # define LT_DLSYM_CONST
Chris@82 7954 #elif defined __osf__
Chris@82 7955 /* This system does not cope well with relocations in const data. */
Chris@82 7956 # define LT_DLSYM_CONST
Chris@82 7957 #else
Chris@82 7958 # define LT_DLSYM_CONST const
Chris@82 7959 #endif
Chris@82 7960
Chris@82 7961 #ifdef __cplusplus
Chris@82 7962 extern "C" {
Chris@82 7963 #endif
Chris@82 7964
Chris@82 7965 _LT_EOF
Chris@82 7966 # Now generate the symbol file.
Chris@82 7967 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
Chris@82 7968
Chris@82 7969 cat <<_LT_EOF >> conftest.$ac_ext
Chris@82 7970
Chris@82 7971 /* The mapping between symbol names and symbols. */
Chris@82 7972 LT_DLSYM_CONST struct {
Chris@82 7973 const char *name;
Chris@82 7974 void *address;
Chris@82 7975 }
Chris@82 7976 lt__PROGRAM__LTX_preloaded_symbols[] =
Chris@82 7977 {
Chris@82 7978 { "@PROGRAM@", (void *) 0 },
Chris@82 7979 _LT_EOF
Chris@82 7980 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
Chris@82 7981 cat <<\_LT_EOF >> conftest.$ac_ext
Chris@82 7982 {0, (void *) 0}
Chris@82 7983 };
Chris@82 7984
Chris@82 7985 /* This works around a problem in FreeBSD linker */
Chris@82 7986 #ifdef FREEBSD_WORKAROUND
Chris@82 7987 static const void *lt_preloaded_setup() {
Chris@82 7988 return lt__PROGRAM__LTX_preloaded_symbols;
Chris@82 7989 }
Chris@82 7990 #endif
Chris@82 7991
Chris@82 7992 #ifdef __cplusplus
Chris@82 7993 }
Chris@82 7994 #endif
Chris@82 7995 _LT_EOF
Chris@82 7996 # Now try linking the two files.
Chris@82 7997 mv conftest.$ac_objext conftstm.$ac_objext
Chris@82 7998 lt_globsym_save_LIBS=$LIBS
Chris@82 7999 lt_globsym_save_CFLAGS=$CFLAGS
Chris@82 8000 LIBS=conftstm.$ac_objext
Chris@82 8001 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Chris@82 8002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Chris@82 8003 (eval $ac_link) 2>&5
Chris@82 8004 ac_status=$?
Chris@82 8005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@82 8006 test $ac_status = 0; } && test -s conftest$ac_exeext; then
Chris@82 8007 pipe_works=yes
Chris@82 8008 fi
Chris@82 8009 LIBS=$lt_globsym_save_LIBS
Chris@82 8010 CFLAGS=$lt_globsym_save_CFLAGS
Chris@82 8011 else
Chris@82 8012 echo "cannot find nm_test_func in $nlist" >&5
Chris@82 8013 fi
Chris@82 8014 else
Chris@82 8015 echo "cannot find nm_test_var in $nlist" >&5
Chris@82 8016 fi
Chris@82 8017 else
Chris@82 8018 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
Chris@82 8019 fi
Chris@82 8020 else
Chris@82 8021 echo "$progname: failed program was:" >&5
Chris@82 8022 cat conftest.$ac_ext >&5
Chris@82 8023 fi
Chris@82 8024 rm -rf conftest* conftst*
Chris@82 8025
Chris@82 8026 # Do not use the global_symbol_pipe unless it works.
Chris@82 8027 if test yes = "$pipe_works"; then
Chris@82 8028 break
Chris@82 8029 else
Chris@82 8030 lt_cv_sys_global_symbol_pipe=
Chris@82 8031 fi
Chris@82 8032 done
Chris@82 8033
Chris@82 8034 fi
Chris@82 8035
Chris@82 8036 if test -z "$lt_cv_sys_global_symbol_pipe"; then
Chris@82 8037 lt_cv_sys_global_symbol_to_cdecl=
Chris@82 8038 fi
Chris@82 8039 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Chris@82 8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
Chris@82 8041 $as_echo "failed" >&6; }
Chris@82 8042 else
Chris@82 8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
Chris@82 8044 $as_echo "ok" >&6; }
Chris@82 8045 fi
Chris@82 8046
Chris@82 8047 # Response file support.
Chris@82 8048 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Chris@82 8049 nm_file_list_spec='@'
Chris@82 8050 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
Chris@82 8051 nm_file_list_spec='@'
Chris@82 8052 fi
Chris@82 8053
Chris@82 8054
Chris@82 8055
Chris@82 8056
Chris@82 8057
Chris@82 8058
Chris@82 8059
Chris@82 8060
Chris@82 8061
Chris@82 8062
Chris@82 8063
Chris@82 8064
Chris@82 8065
Chris@82 8066
Chris@82 8067
Chris@82 8068
Chris@82 8069
Chris@82 8070
Chris@82 8071
Chris@82 8072
Chris@82 8073
Chris@82 8074
Chris@82 8075
Chris@82 8076
Chris@82 8077
Chris@82 8078
Chris@82 8079
Chris@82 8080
Chris@82 8081
Chris@82 8082
Chris@82 8083
Chris@82 8084
Chris@82 8085
Chris@82 8086
Chris@82 8087
Chris@82 8088
Chris@82 8089
Chris@82 8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
Chris@82 8091 $as_echo_n "checking for sysroot... " >&6; }
Chris@82 8092
Chris@82 8093 # Check whether --with-sysroot was given.
Chris@82 8094 if test "${with_sysroot+set}" = set; then :
Chris@82 8095 withval=$with_sysroot;
Chris@82 8096 else
Chris@82 8097 with_sysroot=no
Chris@82 8098 fi
Chris@82 8099
Chris@82 8100
Chris@82 8101 lt_sysroot=
Chris@82 8102 case $with_sysroot in #(
Chris@82 8103 yes)
Chris@82 8104 if test yes = "$GCC"; then
Chris@82 8105 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
Chris@82 8106 fi
Chris@82 8107 ;; #(
Chris@82 8108 /*)
Chris@82 8109 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
Chris@82 8110 ;; #(
Chris@82 8111 no|'')
Chris@82 8112 ;; #(
Chris@82 8113 *)
Chris@82 8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
Chris@82 8115 $as_echo "$with_sysroot" >&6; }
Chris@82 8116 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
Chris@82 8117 ;;
Chris@82 8118 esac
Chris@82 8119
Chris@82 8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
Chris@82 8121 $as_echo "${lt_sysroot:-no}" >&6; }
Chris@82 8122
Chris@82 8123
Chris@82 8124
Chris@82 8125
Chris@82 8126
Chris@82 8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
Chris@82 8128 $as_echo_n "checking for a working dd... " >&6; }
Chris@82 8129 if ${ac_cv_path_lt_DD+:} false; then :
Chris@82 8130 $as_echo_n "(cached) " >&6
Chris@82 8131 else
Chris@82 8132 printf 0123456789abcdef0123456789abcdef >conftest.i
Chris@82 8133 cat conftest.i conftest.i >conftest2.i
Chris@82 8134 : ${lt_DD:=$DD}
Chris@82 8135 if test -z "$lt_DD"; then
Chris@82 8136 ac_path_lt_DD_found=false
Chris@82 8137 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@82 8138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 8139 for as_dir in $PATH
Chris@82 8140 do
Chris@82 8141 IFS=$as_save_IFS
Chris@82 8142 test -z "$as_dir" && as_dir=.
Chris@82 8143 for ac_prog in dd; do
Chris@82 8144 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 8145 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
Chris@82 8146 as_fn_executable_p "$ac_path_lt_DD" || continue
Chris@82 8147 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
Chris@82 8148 cmp -s conftest.i conftest.out \
Chris@82 8149 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
Chris@82 8150 fi
Chris@82 8151 $ac_path_lt_DD_found && break 3
Chris@82 8152 done
Chris@82 8153 done
Chris@82 8154 done
Chris@82 8155 IFS=$as_save_IFS
Chris@82 8156 if test -z "$ac_cv_path_lt_DD"; then
Chris@82 8157 :
Chris@82 8158 fi
Chris@82 8159 else
Chris@82 8160 ac_cv_path_lt_DD=$lt_DD
Chris@82 8161 fi
Chris@82 8162
Chris@82 8163 rm -f conftest.i conftest2.i conftest.out
Chris@82 8164 fi
Chris@82 8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
Chris@82 8166 $as_echo "$ac_cv_path_lt_DD" >&6; }
Chris@82 8167
Chris@82 8168
Chris@82 8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
Chris@82 8170 $as_echo_n "checking how to truncate binary pipes... " >&6; }
Chris@82 8171 if ${lt_cv_truncate_bin+:} false; then :
Chris@82 8172 $as_echo_n "(cached) " >&6
Chris@82 8173 else
Chris@82 8174 printf 0123456789abcdef0123456789abcdef >conftest.i
Chris@82 8175 cat conftest.i conftest.i >conftest2.i
Chris@82 8176 lt_cv_truncate_bin=
Chris@82 8177 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
Chris@82 8178 cmp -s conftest.i conftest.out \
Chris@82 8179 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
Chris@82 8180 fi
Chris@82 8181 rm -f conftest.i conftest2.i conftest.out
Chris@82 8182 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
Chris@82 8183 fi
Chris@82 8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
Chris@82 8185 $as_echo "$lt_cv_truncate_bin" >&6; }
Chris@82 8186
Chris@82 8187
Chris@82 8188
Chris@82 8189
Chris@82 8190
Chris@82 8191
Chris@82 8192
Chris@82 8193 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
Chris@82 8194 func_cc_basename ()
Chris@82 8195 {
Chris@82 8196 for cc_temp in $*""; do
Chris@82 8197 case $cc_temp in
Chris@82 8198 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
Chris@82 8199 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
Chris@82 8200 \-*) ;;
Chris@82 8201 *) break;;
Chris@82 8202 esac
Chris@82 8203 done
Chris@82 8204 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Chris@82 8205 }
Chris@82 8206
Chris@82 8207 # Check whether --enable-libtool-lock was given.
Chris@82 8208 if test "${enable_libtool_lock+set}" = set; then :
Chris@82 8209 enableval=$enable_libtool_lock;
Chris@82 8210 fi
Chris@82 8211
Chris@82 8212 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
Chris@82 8213
Chris@82 8214 # Some flags need to be propagated to the compiler or linker for good
Chris@82 8215 # libtool support.
Chris@82 8216 case $host in
Chris@82 8217 ia64-*-hpux*)
Chris@82 8218 # Find out what ABI is being produced by ac_compile, and set mode
Chris@82 8219 # options accordingly.
Chris@82 8220 echo 'int i;' > conftest.$ac_ext
Chris@82 8221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@82 8222 (eval $ac_compile) 2>&5
Chris@82 8223 ac_status=$?
Chris@82 8224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@82 8225 test $ac_status = 0; }; then
Chris@82 8226 case `/usr/bin/file conftest.$ac_objext` in
Chris@82 8227 *ELF-32*)
Chris@82 8228 HPUX_IA64_MODE=32
Chris@82 8229 ;;
Chris@82 8230 *ELF-64*)
Chris@82 8231 HPUX_IA64_MODE=64
Chris@82 8232 ;;
Chris@82 8233 esac
Chris@82 8234 fi
Chris@82 8235 rm -rf conftest*
Chris@82 8236 ;;
Chris@82 8237 *-*-irix6*)
Chris@82 8238 # Find out what ABI is being produced by ac_compile, and set linker
Chris@82 8239 # options accordingly.
Chris@82 8240 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
Chris@82 8241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@82 8242 (eval $ac_compile) 2>&5
Chris@82 8243 ac_status=$?
Chris@82 8244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@82 8245 test $ac_status = 0; }; then
Chris@82 8246 if test yes = "$lt_cv_prog_gnu_ld"; then
Chris@82 8247 case `/usr/bin/file conftest.$ac_objext` in
Chris@82 8248 *32-bit*)
Chris@82 8249 LD="${LD-ld} -melf32bsmip"
Chris@82 8250 ;;
Chris@82 8251 *N32*)
Chris@82 8252 LD="${LD-ld} -melf32bmipn32"
Chris@82 8253 ;;
Chris@82 8254 *64-bit*)
Chris@82 8255 LD="${LD-ld} -melf64bmip"
Chris@82 8256 ;;
Chris@82 8257 esac
Chris@82 8258 else
Chris@82 8259 case `/usr/bin/file conftest.$ac_objext` in
Chris@82 8260 *32-bit*)
Chris@82 8261 LD="${LD-ld} -32"
Chris@82 8262 ;;
Chris@82 8263 *N32*)
Chris@82 8264 LD="${LD-ld} -n32"
Chris@82 8265 ;;
Chris@82 8266 *64-bit*)
Chris@82 8267 LD="${LD-ld} -64"
Chris@82 8268 ;;
Chris@82 8269 esac
Chris@82 8270 fi
Chris@82 8271 fi
Chris@82 8272 rm -rf conftest*
Chris@82 8273 ;;
Chris@82 8274
Chris@82 8275 mips64*-*linux*)
Chris@82 8276 # Find out what ABI is being produced by ac_compile, and set linker
Chris@82 8277 # options accordingly.
Chris@82 8278 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
Chris@82 8279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@82 8280 (eval $ac_compile) 2>&5
Chris@82 8281 ac_status=$?
Chris@82 8282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@82 8283 test $ac_status = 0; }; then
Chris@82 8284 emul=elf
Chris@82 8285 case `/usr/bin/file conftest.$ac_objext` in
Chris@82 8286 *32-bit*)
Chris@82 8287 emul="${emul}32"
Chris@82 8288 ;;
Chris@82 8289 *64-bit*)
Chris@82 8290 emul="${emul}64"
Chris@82 8291 ;;
Chris@82 8292 esac
Chris@82 8293 case `/usr/bin/file conftest.$ac_objext` in
Chris@82 8294 *MSB*)
Chris@82 8295 emul="${emul}btsmip"
Chris@82 8296 ;;
Chris@82 8297 *LSB*)
Chris@82 8298 emul="${emul}ltsmip"
Chris@82 8299 ;;
Chris@82 8300 esac
Chris@82 8301 case `/usr/bin/file conftest.$ac_objext` in
Chris@82 8302 *N32*)
Chris@82 8303 emul="${emul}n32"
Chris@82 8304 ;;
Chris@82 8305 esac
Chris@82 8306 LD="${LD-ld} -m $emul"
Chris@82 8307 fi
Chris@82 8308 rm -rf conftest*
Chris@82 8309 ;;
Chris@82 8310
Chris@82 8311 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
Chris@82 8312 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Chris@82 8313 # Find out what ABI is being produced by ac_compile, and set linker
Chris@82 8314 # options accordingly. Note that the listed cases only cover the
Chris@82 8315 # situations where additional linker options are needed (such as when
Chris@82 8316 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
Chris@82 8317 # vice versa); the common cases where no linker options are needed do
Chris@82 8318 # not appear in the list.
Chris@82 8319 echo 'int i;' > conftest.$ac_ext
Chris@82 8320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@82 8321 (eval $ac_compile) 2>&5
Chris@82 8322 ac_status=$?
Chris@82 8323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@82 8324 test $ac_status = 0; }; then
Chris@82 8325 case `/usr/bin/file conftest.o` in
Chris@82 8326 *32-bit*)
Chris@82 8327 case $host in
Chris@82 8328 x86_64-*kfreebsd*-gnu)
Chris@82 8329 LD="${LD-ld} -m elf_i386_fbsd"
Chris@82 8330 ;;
Chris@82 8331 x86_64-*linux*)
Chris@82 8332 case `/usr/bin/file conftest.o` in
Chris@82 8333 *x86-64*)
Chris@82 8334 LD="${LD-ld} -m elf32_x86_64"
Chris@82 8335 ;;
Chris@82 8336 *)
Chris@82 8337 LD="${LD-ld} -m elf_i386"
Chris@82 8338 ;;
Chris@82 8339 esac
Chris@82 8340 ;;
Chris@82 8341 powerpc64le-*linux*)
Chris@82 8342 LD="${LD-ld} -m elf32lppclinux"
Chris@82 8343 ;;
Chris@82 8344 powerpc64-*linux*)
Chris@82 8345 LD="${LD-ld} -m elf32ppclinux"
Chris@82 8346 ;;
Chris@82 8347 s390x-*linux*)
Chris@82 8348 LD="${LD-ld} -m elf_s390"
Chris@82 8349 ;;
Chris@82 8350 sparc64-*linux*)
Chris@82 8351 LD="${LD-ld} -m elf32_sparc"
Chris@82 8352 ;;
Chris@82 8353 esac
Chris@82 8354 ;;
Chris@82 8355 *64-bit*)
Chris@82 8356 case $host in
Chris@82 8357 x86_64-*kfreebsd*-gnu)
Chris@82 8358 LD="${LD-ld} -m elf_x86_64_fbsd"
Chris@82 8359 ;;
Chris@82 8360 x86_64-*linux*)
Chris@82 8361 LD="${LD-ld} -m elf_x86_64"
Chris@82 8362 ;;
Chris@82 8363 powerpcle-*linux*)
Chris@82 8364 LD="${LD-ld} -m elf64lppc"
Chris@82 8365 ;;
Chris@82 8366 powerpc-*linux*)
Chris@82 8367 LD="${LD-ld} -m elf64ppc"
Chris@82 8368 ;;
Chris@82 8369 s390*-*linux*|s390*-*tpf*)
Chris@82 8370 LD="${LD-ld} -m elf64_s390"
Chris@82 8371 ;;
Chris@82 8372 sparc*-*linux*)
Chris@82 8373 LD="${LD-ld} -m elf64_sparc"
Chris@82 8374 ;;
Chris@82 8375 esac
Chris@82 8376 ;;
Chris@82 8377 esac
Chris@82 8378 fi
Chris@82 8379 rm -rf conftest*
Chris@82 8380 ;;
Chris@82 8381
Chris@82 8382 *-*-sco3.2v5*)
Chris@82 8383 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
Chris@82 8384 SAVE_CFLAGS=$CFLAGS
Chris@82 8385 CFLAGS="$CFLAGS -belf"
Chris@82 8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
Chris@82 8387 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Chris@82 8388 if ${lt_cv_cc_needs_belf+:} false; then :
Chris@82 8389 $as_echo_n "(cached) " >&6
Chris@82 8390 else
Chris@82 8391 ac_ext=c
Chris@82 8392 ac_cpp='$CPP $CPPFLAGS'
Chris@82 8393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@82 8394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 8395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@82 8396
Chris@82 8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 8398 /* end confdefs.h. */
Chris@82 8399
Chris@82 8400 int
Chris@82 8401 main ()
Chris@82 8402 {
Chris@82 8403
Chris@82 8404 ;
Chris@82 8405 return 0;
Chris@82 8406 }
Chris@82 8407 _ACEOF
Chris@82 8408 if ac_fn_c_try_link "$LINENO"; then :
Chris@82 8409 lt_cv_cc_needs_belf=yes
Chris@82 8410 else
Chris@82 8411 lt_cv_cc_needs_belf=no
Chris@82 8412 fi
Chris@82 8413 rm -f core conftest.err conftest.$ac_objext \
Chris@82 8414 conftest$ac_exeext conftest.$ac_ext
Chris@82 8415 ac_ext=c
Chris@82 8416 ac_cpp='$CPP $CPPFLAGS'
Chris@82 8417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@82 8418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 8419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@82 8420
Chris@82 8421 fi
Chris@82 8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
Chris@82 8423 $as_echo "$lt_cv_cc_needs_belf" >&6; }
Chris@82 8424 if test yes != "$lt_cv_cc_needs_belf"; then
Chris@82 8425 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
Chris@82 8426 CFLAGS=$SAVE_CFLAGS
Chris@82 8427 fi
Chris@82 8428 ;;
Chris@82 8429 *-*solaris*)
Chris@82 8430 # Find out what ABI is being produced by ac_compile, and set linker
Chris@82 8431 # options accordingly.
Chris@82 8432 echo 'int i;' > conftest.$ac_ext
Chris@82 8433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@82 8434 (eval $ac_compile) 2>&5
Chris@82 8435 ac_status=$?
Chris@82 8436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@82 8437 test $ac_status = 0; }; then
Chris@82 8438 case `/usr/bin/file conftest.o` in
Chris@82 8439 *64-bit*)
Chris@82 8440 case $lt_cv_prog_gnu_ld in
Chris@82 8441 yes*)
Chris@82 8442 case $host in
Chris@82 8443 i?86-*-solaris*|x86_64-*-solaris*)
Chris@82 8444 LD="${LD-ld} -m elf_x86_64"
Chris@82 8445 ;;
Chris@82 8446 sparc*-*-solaris*)
Chris@82 8447 LD="${LD-ld} -m elf64_sparc"
Chris@82 8448 ;;
Chris@82 8449 esac
Chris@82 8450 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
Chris@82 8451 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
Chris@82 8452 LD=${LD-ld}_sol2
Chris@82 8453 fi
Chris@82 8454 ;;
Chris@82 8455 *)
Chris@82 8456 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
Chris@82 8457 LD="${LD-ld} -64"
Chris@82 8458 fi
Chris@82 8459 ;;
Chris@82 8460 esac
Chris@82 8461 ;;
Chris@82 8462 esac
Chris@82 8463 fi
Chris@82 8464 rm -rf conftest*
Chris@82 8465 ;;
Chris@82 8466 esac
Chris@82 8467
Chris@82 8468 need_locks=$enable_libtool_lock
Chris@82 8469
Chris@82 8470 if test -n "$ac_tool_prefix"; then
Chris@82 8471 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
Chris@82 8472 set dummy ${ac_tool_prefix}mt; ac_word=$2
Chris@82 8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 8474 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 8475 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
Chris@82 8476 $as_echo_n "(cached) " >&6
Chris@82 8477 else
Chris@82 8478 if test -n "$MANIFEST_TOOL"; then
Chris@82 8479 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
Chris@82 8480 else
Chris@82 8481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 8482 for as_dir in $PATH
Chris@82 8483 do
Chris@82 8484 IFS=$as_save_IFS
Chris@82 8485 test -z "$as_dir" && as_dir=.
Chris@82 8486 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 8487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 8488 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
Chris@82 8489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 8490 break 2
Chris@82 8491 fi
Chris@82 8492 done
Chris@82 8493 done
Chris@82 8494 IFS=$as_save_IFS
Chris@82 8495
Chris@82 8496 fi
Chris@82 8497 fi
Chris@82 8498 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
Chris@82 8499 if test -n "$MANIFEST_TOOL"; then
Chris@82 8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
Chris@82 8501 $as_echo "$MANIFEST_TOOL" >&6; }
Chris@82 8502 else
Chris@82 8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 8504 $as_echo "no" >&6; }
Chris@82 8505 fi
Chris@82 8506
Chris@82 8507
Chris@82 8508 fi
Chris@82 8509 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
Chris@82 8510 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
Chris@82 8511 # Extract the first word of "mt", so it can be a program name with args.
Chris@82 8512 set dummy mt; ac_word=$2
Chris@82 8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 8514 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 8515 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
Chris@82 8516 $as_echo_n "(cached) " >&6
Chris@82 8517 else
Chris@82 8518 if test -n "$ac_ct_MANIFEST_TOOL"; then
Chris@82 8519 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
Chris@82 8520 else
Chris@82 8521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 8522 for as_dir in $PATH
Chris@82 8523 do
Chris@82 8524 IFS=$as_save_IFS
Chris@82 8525 test -z "$as_dir" && as_dir=.
Chris@82 8526 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 8527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 8528 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
Chris@82 8529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 8530 break 2
Chris@82 8531 fi
Chris@82 8532 done
Chris@82 8533 done
Chris@82 8534 IFS=$as_save_IFS
Chris@82 8535
Chris@82 8536 fi
Chris@82 8537 fi
Chris@82 8538 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
Chris@82 8539 if test -n "$ac_ct_MANIFEST_TOOL"; then
Chris@82 8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
Chris@82 8541 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
Chris@82 8542 else
Chris@82 8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 8544 $as_echo "no" >&6; }
Chris@82 8545 fi
Chris@82 8546
Chris@82 8547 if test "x$ac_ct_MANIFEST_TOOL" = x; then
Chris@82 8548 MANIFEST_TOOL=":"
Chris@82 8549 else
Chris@82 8550 case $cross_compiling:$ac_tool_warned in
Chris@82 8551 yes:)
Chris@82 8552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@82 8553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@82 8554 ac_tool_warned=yes ;;
Chris@82 8555 esac
Chris@82 8556 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
Chris@82 8557 fi
Chris@82 8558 else
Chris@82 8559 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
Chris@82 8560 fi
Chris@82 8561
Chris@82 8562 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
Chris@82 8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
Chris@82 8564 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
Chris@82 8565 if ${lt_cv_path_mainfest_tool+:} false; then :
Chris@82 8566 $as_echo_n "(cached) " >&6
Chris@82 8567 else
Chris@82 8568 lt_cv_path_mainfest_tool=no
Chris@82 8569 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
Chris@82 8570 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
Chris@82 8571 cat conftest.err >&5
Chris@82 8572 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
Chris@82 8573 lt_cv_path_mainfest_tool=yes
Chris@82 8574 fi
Chris@82 8575 rm -f conftest*
Chris@82 8576 fi
Chris@82 8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
Chris@82 8578 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
Chris@82 8579 if test yes != "$lt_cv_path_mainfest_tool"; then
Chris@82 8580 MANIFEST_TOOL=:
Chris@82 8581 fi
Chris@82 8582
Chris@82 8583
Chris@82 8584
Chris@82 8585
Chris@82 8586
Chris@82 8587
Chris@82 8588 case $host_os in
Chris@82 8589 rhapsody* | darwin*)
Chris@82 8590 if test -n "$ac_tool_prefix"; then
Chris@82 8591 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
Chris@82 8592 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Chris@82 8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 8594 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 8595 if ${ac_cv_prog_DSYMUTIL+:} false; then :
Chris@82 8596 $as_echo_n "(cached) " >&6
Chris@82 8597 else
Chris@82 8598 if test -n "$DSYMUTIL"; then
Chris@82 8599 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
Chris@82 8600 else
Chris@82 8601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 8602 for as_dir in $PATH
Chris@82 8603 do
Chris@82 8604 IFS=$as_save_IFS
Chris@82 8605 test -z "$as_dir" && as_dir=.
Chris@82 8606 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 8607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 8608 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Chris@82 8609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 8610 break 2
Chris@82 8611 fi
Chris@82 8612 done
Chris@82 8613 done
Chris@82 8614 IFS=$as_save_IFS
Chris@82 8615
Chris@82 8616 fi
Chris@82 8617 fi
Chris@82 8618 DSYMUTIL=$ac_cv_prog_DSYMUTIL
Chris@82 8619 if test -n "$DSYMUTIL"; then
Chris@82 8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
Chris@82 8621 $as_echo "$DSYMUTIL" >&6; }
Chris@82 8622 else
Chris@82 8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 8624 $as_echo "no" >&6; }
Chris@82 8625 fi
Chris@82 8626
Chris@82 8627
Chris@82 8628 fi
Chris@82 8629 if test -z "$ac_cv_prog_DSYMUTIL"; then
Chris@82 8630 ac_ct_DSYMUTIL=$DSYMUTIL
Chris@82 8631 # Extract the first word of "dsymutil", so it can be a program name with args.
Chris@82 8632 set dummy dsymutil; ac_word=$2
Chris@82 8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 8634 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 8635 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Chris@82 8636 $as_echo_n "(cached) " >&6
Chris@82 8637 else
Chris@82 8638 if test -n "$ac_ct_DSYMUTIL"; then
Chris@82 8639 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
Chris@82 8640 else
Chris@82 8641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 8642 for as_dir in $PATH
Chris@82 8643 do
Chris@82 8644 IFS=$as_save_IFS
Chris@82 8645 test -z "$as_dir" && as_dir=.
Chris@82 8646 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 8647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 8648 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Chris@82 8649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 8650 break 2
Chris@82 8651 fi
Chris@82 8652 done
Chris@82 8653 done
Chris@82 8654 IFS=$as_save_IFS
Chris@82 8655
Chris@82 8656 fi
Chris@82 8657 fi
Chris@82 8658 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
Chris@82 8659 if test -n "$ac_ct_DSYMUTIL"; then
Chris@82 8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
Chris@82 8661 $as_echo "$ac_ct_DSYMUTIL" >&6; }
Chris@82 8662 else
Chris@82 8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 8664 $as_echo "no" >&6; }
Chris@82 8665 fi
Chris@82 8666
Chris@82 8667 if test "x$ac_ct_DSYMUTIL" = x; then
Chris@82 8668 DSYMUTIL=":"
Chris@82 8669 else
Chris@82 8670 case $cross_compiling:$ac_tool_warned in
Chris@82 8671 yes:)
Chris@82 8672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@82 8673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@82 8674 ac_tool_warned=yes ;;
Chris@82 8675 esac
Chris@82 8676 DSYMUTIL=$ac_ct_DSYMUTIL
Chris@82 8677 fi
Chris@82 8678 else
Chris@82 8679 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
Chris@82 8680 fi
Chris@82 8681
Chris@82 8682 if test -n "$ac_tool_prefix"; then
Chris@82 8683 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
Chris@82 8684 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Chris@82 8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 8686 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 8687 if ${ac_cv_prog_NMEDIT+:} false; then :
Chris@82 8688 $as_echo_n "(cached) " >&6
Chris@82 8689 else
Chris@82 8690 if test -n "$NMEDIT"; then
Chris@82 8691 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
Chris@82 8692 else
Chris@82 8693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 8694 for as_dir in $PATH
Chris@82 8695 do
Chris@82 8696 IFS=$as_save_IFS
Chris@82 8697 test -z "$as_dir" && as_dir=.
Chris@82 8698 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 8699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 8700 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Chris@82 8701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 8702 break 2
Chris@82 8703 fi
Chris@82 8704 done
Chris@82 8705 done
Chris@82 8706 IFS=$as_save_IFS
Chris@82 8707
Chris@82 8708 fi
Chris@82 8709 fi
Chris@82 8710 NMEDIT=$ac_cv_prog_NMEDIT
Chris@82 8711 if test -n "$NMEDIT"; then
Chris@82 8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
Chris@82 8713 $as_echo "$NMEDIT" >&6; }
Chris@82 8714 else
Chris@82 8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 8716 $as_echo "no" >&6; }
Chris@82 8717 fi
Chris@82 8718
Chris@82 8719
Chris@82 8720 fi
Chris@82 8721 if test -z "$ac_cv_prog_NMEDIT"; then
Chris@82 8722 ac_ct_NMEDIT=$NMEDIT
Chris@82 8723 # Extract the first word of "nmedit", so it can be a program name with args.
Chris@82 8724 set dummy nmedit; ac_word=$2
Chris@82 8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 8726 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 8727 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Chris@82 8728 $as_echo_n "(cached) " >&6
Chris@82 8729 else
Chris@82 8730 if test -n "$ac_ct_NMEDIT"; then
Chris@82 8731 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
Chris@82 8732 else
Chris@82 8733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 8734 for as_dir in $PATH
Chris@82 8735 do
Chris@82 8736 IFS=$as_save_IFS
Chris@82 8737 test -z "$as_dir" && as_dir=.
Chris@82 8738 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 8739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 8740 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Chris@82 8741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 8742 break 2
Chris@82 8743 fi
Chris@82 8744 done
Chris@82 8745 done
Chris@82 8746 IFS=$as_save_IFS
Chris@82 8747
Chris@82 8748 fi
Chris@82 8749 fi
Chris@82 8750 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
Chris@82 8751 if test -n "$ac_ct_NMEDIT"; then
Chris@82 8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
Chris@82 8753 $as_echo "$ac_ct_NMEDIT" >&6; }
Chris@82 8754 else
Chris@82 8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 8756 $as_echo "no" >&6; }
Chris@82 8757 fi
Chris@82 8758
Chris@82 8759 if test "x$ac_ct_NMEDIT" = x; then
Chris@82 8760 NMEDIT=":"
Chris@82 8761 else
Chris@82 8762 case $cross_compiling:$ac_tool_warned in
Chris@82 8763 yes:)
Chris@82 8764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@82 8765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@82 8766 ac_tool_warned=yes ;;
Chris@82 8767 esac
Chris@82 8768 NMEDIT=$ac_ct_NMEDIT
Chris@82 8769 fi
Chris@82 8770 else
Chris@82 8771 NMEDIT="$ac_cv_prog_NMEDIT"
Chris@82 8772 fi
Chris@82 8773
Chris@82 8774 if test -n "$ac_tool_prefix"; then
Chris@82 8775 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
Chris@82 8776 set dummy ${ac_tool_prefix}lipo; ac_word=$2
Chris@82 8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 8778 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 8779 if ${ac_cv_prog_LIPO+:} false; then :
Chris@82 8780 $as_echo_n "(cached) " >&6
Chris@82 8781 else
Chris@82 8782 if test -n "$LIPO"; then
Chris@82 8783 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
Chris@82 8784 else
Chris@82 8785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 8786 for as_dir in $PATH
Chris@82 8787 do
Chris@82 8788 IFS=$as_save_IFS
Chris@82 8789 test -z "$as_dir" && as_dir=.
Chris@82 8790 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 8791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 8792 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Chris@82 8793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 8794 break 2
Chris@82 8795 fi
Chris@82 8796 done
Chris@82 8797 done
Chris@82 8798 IFS=$as_save_IFS
Chris@82 8799
Chris@82 8800 fi
Chris@82 8801 fi
Chris@82 8802 LIPO=$ac_cv_prog_LIPO
Chris@82 8803 if test -n "$LIPO"; then
Chris@82 8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
Chris@82 8805 $as_echo "$LIPO" >&6; }
Chris@82 8806 else
Chris@82 8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 8808 $as_echo "no" >&6; }
Chris@82 8809 fi
Chris@82 8810
Chris@82 8811
Chris@82 8812 fi
Chris@82 8813 if test -z "$ac_cv_prog_LIPO"; then
Chris@82 8814 ac_ct_LIPO=$LIPO
Chris@82 8815 # Extract the first word of "lipo", so it can be a program name with args.
Chris@82 8816 set dummy lipo; ac_word=$2
Chris@82 8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 8818 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 8819 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Chris@82 8820 $as_echo_n "(cached) " >&6
Chris@82 8821 else
Chris@82 8822 if test -n "$ac_ct_LIPO"; then
Chris@82 8823 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
Chris@82 8824 else
Chris@82 8825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 8826 for as_dir in $PATH
Chris@82 8827 do
Chris@82 8828 IFS=$as_save_IFS
Chris@82 8829 test -z "$as_dir" && as_dir=.
Chris@82 8830 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 8831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 8832 ac_cv_prog_ac_ct_LIPO="lipo"
Chris@82 8833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 8834 break 2
Chris@82 8835 fi
Chris@82 8836 done
Chris@82 8837 done
Chris@82 8838 IFS=$as_save_IFS
Chris@82 8839
Chris@82 8840 fi
Chris@82 8841 fi
Chris@82 8842 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
Chris@82 8843 if test -n "$ac_ct_LIPO"; then
Chris@82 8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
Chris@82 8845 $as_echo "$ac_ct_LIPO" >&6; }
Chris@82 8846 else
Chris@82 8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 8848 $as_echo "no" >&6; }
Chris@82 8849 fi
Chris@82 8850
Chris@82 8851 if test "x$ac_ct_LIPO" = x; then
Chris@82 8852 LIPO=":"
Chris@82 8853 else
Chris@82 8854 case $cross_compiling:$ac_tool_warned in
Chris@82 8855 yes:)
Chris@82 8856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@82 8857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@82 8858 ac_tool_warned=yes ;;
Chris@82 8859 esac
Chris@82 8860 LIPO=$ac_ct_LIPO
Chris@82 8861 fi
Chris@82 8862 else
Chris@82 8863 LIPO="$ac_cv_prog_LIPO"
Chris@82 8864 fi
Chris@82 8865
Chris@82 8866 if test -n "$ac_tool_prefix"; then
Chris@82 8867 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
Chris@82 8868 set dummy ${ac_tool_prefix}otool; ac_word=$2
Chris@82 8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 8870 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 8871 if ${ac_cv_prog_OTOOL+:} false; then :
Chris@82 8872 $as_echo_n "(cached) " >&6
Chris@82 8873 else
Chris@82 8874 if test -n "$OTOOL"; then
Chris@82 8875 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
Chris@82 8876 else
Chris@82 8877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 8878 for as_dir in $PATH
Chris@82 8879 do
Chris@82 8880 IFS=$as_save_IFS
Chris@82 8881 test -z "$as_dir" && as_dir=.
Chris@82 8882 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 8883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 8884 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Chris@82 8885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 8886 break 2
Chris@82 8887 fi
Chris@82 8888 done
Chris@82 8889 done
Chris@82 8890 IFS=$as_save_IFS
Chris@82 8891
Chris@82 8892 fi
Chris@82 8893 fi
Chris@82 8894 OTOOL=$ac_cv_prog_OTOOL
Chris@82 8895 if test -n "$OTOOL"; then
Chris@82 8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
Chris@82 8897 $as_echo "$OTOOL" >&6; }
Chris@82 8898 else
Chris@82 8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 8900 $as_echo "no" >&6; }
Chris@82 8901 fi
Chris@82 8902
Chris@82 8903
Chris@82 8904 fi
Chris@82 8905 if test -z "$ac_cv_prog_OTOOL"; then
Chris@82 8906 ac_ct_OTOOL=$OTOOL
Chris@82 8907 # Extract the first word of "otool", so it can be a program name with args.
Chris@82 8908 set dummy otool; ac_word=$2
Chris@82 8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 8910 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 8911 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Chris@82 8912 $as_echo_n "(cached) " >&6
Chris@82 8913 else
Chris@82 8914 if test -n "$ac_ct_OTOOL"; then
Chris@82 8915 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
Chris@82 8916 else
Chris@82 8917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 8918 for as_dir in $PATH
Chris@82 8919 do
Chris@82 8920 IFS=$as_save_IFS
Chris@82 8921 test -z "$as_dir" && as_dir=.
Chris@82 8922 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 8923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 8924 ac_cv_prog_ac_ct_OTOOL="otool"
Chris@82 8925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 8926 break 2
Chris@82 8927 fi
Chris@82 8928 done
Chris@82 8929 done
Chris@82 8930 IFS=$as_save_IFS
Chris@82 8931
Chris@82 8932 fi
Chris@82 8933 fi
Chris@82 8934 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
Chris@82 8935 if test -n "$ac_ct_OTOOL"; then
Chris@82 8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
Chris@82 8937 $as_echo "$ac_ct_OTOOL" >&6; }
Chris@82 8938 else
Chris@82 8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 8940 $as_echo "no" >&6; }
Chris@82 8941 fi
Chris@82 8942
Chris@82 8943 if test "x$ac_ct_OTOOL" = x; then
Chris@82 8944 OTOOL=":"
Chris@82 8945 else
Chris@82 8946 case $cross_compiling:$ac_tool_warned in
Chris@82 8947 yes:)
Chris@82 8948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@82 8949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@82 8950 ac_tool_warned=yes ;;
Chris@82 8951 esac
Chris@82 8952 OTOOL=$ac_ct_OTOOL
Chris@82 8953 fi
Chris@82 8954 else
Chris@82 8955 OTOOL="$ac_cv_prog_OTOOL"
Chris@82 8956 fi
Chris@82 8957
Chris@82 8958 if test -n "$ac_tool_prefix"; then
Chris@82 8959 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
Chris@82 8960 set dummy ${ac_tool_prefix}otool64; ac_word=$2
Chris@82 8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 8962 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 8963 if ${ac_cv_prog_OTOOL64+:} false; then :
Chris@82 8964 $as_echo_n "(cached) " >&6
Chris@82 8965 else
Chris@82 8966 if test -n "$OTOOL64"; then
Chris@82 8967 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
Chris@82 8968 else
Chris@82 8969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 8970 for as_dir in $PATH
Chris@82 8971 do
Chris@82 8972 IFS=$as_save_IFS
Chris@82 8973 test -z "$as_dir" && as_dir=.
Chris@82 8974 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 8975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 8976 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Chris@82 8977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 8978 break 2
Chris@82 8979 fi
Chris@82 8980 done
Chris@82 8981 done
Chris@82 8982 IFS=$as_save_IFS
Chris@82 8983
Chris@82 8984 fi
Chris@82 8985 fi
Chris@82 8986 OTOOL64=$ac_cv_prog_OTOOL64
Chris@82 8987 if test -n "$OTOOL64"; then
Chris@82 8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
Chris@82 8989 $as_echo "$OTOOL64" >&6; }
Chris@82 8990 else
Chris@82 8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 8992 $as_echo "no" >&6; }
Chris@82 8993 fi
Chris@82 8994
Chris@82 8995
Chris@82 8996 fi
Chris@82 8997 if test -z "$ac_cv_prog_OTOOL64"; then
Chris@82 8998 ac_ct_OTOOL64=$OTOOL64
Chris@82 8999 # Extract the first word of "otool64", so it can be a program name with args.
Chris@82 9000 set dummy otool64; ac_word=$2
Chris@82 9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 9002 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 9003 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Chris@82 9004 $as_echo_n "(cached) " >&6
Chris@82 9005 else
Chris@82 9006 if test -n "$ac_ct_OTOOL64"; then
Chris@82 9007 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
Chris@82 9008 else
Chris@82 9009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 9010 for as_dir in $PATH
Chris@82 9011 do
Chris@82 9012 IFS=$as_save_IFS
Chris@82 9013 test -z "$as_dir" && as_dir=.
Chris@82 9014 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 9015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 9016 ac_cv_prog_ac_ct_OTOOL64="otool64"
Chris@82 9017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 9018 break 2
Chris@82 9019 fi
Chris@82 9020 done
Chris@82 9021 done
Chris@82 9022 IFS=$as_save_IFS
Chris@82 9023
Chris@82 9024 fi
Chris@82 9025 fi
Chris@82 9026 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
Chris@82 9027 if test -n "$ac_ct_OTOOL64"; then
Chris@82 9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
Chris@82 9029 $as_echo "$ac_ct_OTOOL64" >&6; }
Chris@82 9030 else
Chris@82 9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 9032 $as_echo "no" >&6; }
Chris@82 9033 fi
Chris@82 9034
Chris@82 9035 if test "x$ac_ct_OTOOL64" = x; then
Chris@82 9036 OTOOL64=":"
Chris@82 9037 else
Chris@82 9038 case $cross_compiling:$ac_tool_warned in
Chris@82 9039 yes:)
Chris@82 9040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@82 9041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@82 9042 ac_tool_warned=yes ;;
Chris@82 9043 esac
Chris@82 9044 OTOOL64=$ac_ct_OTOOL64
Chris@82 9045 fi
Chris@82 9046 else
Chris@82 9047 OTOOL64="$ac_cv_prog_OTOOL64"
Chris@82 9048 fi
Chris@82 9049
Chris@82 9050
Chris@82 9051
Chris@82 9052
Chris@82 9053
Chris@82 9054
Chris@82 9055
Chris@82 9056
Chris@82 9057
Chris@82 9058
Chris@82 9059
Chris@82 9060
Chris@82 9061
Chris@82 9062
Chris@82 9063
Chris@82 9064
Chris@82 9065
Chris@82 9066
Chris@82 9067
Chris@82 9068
Chris@82 9069
Chris@82 9070
Chris@82 9071
Chris@82 9072
Chris@82 9073
Chris@82 9074
Chris@82 9075
Chris@82 9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
Chris@82 9077 $as_echo_n "checking for -single_module linker flag... " >&6; }
Chris@82 9078 if ${lt_cv_apple_cc_single_mod+:} false; then :
Chris@82 9079 $as_echo_n "(cached) " >&6
Chris@82 9080 else
Chris@82 9081 lt_cv_apple_cc_single_mod=no
Chris@82 9082 if test -z "$LT_MULTI_MODULE"; then
Chris@82 9083 # By default we will add the -single_module flag. You can override
Chris@82 9084 # by either setting the environment variable LT_MULTI_MODULE
Chris@82 9085 # non-empty at configure time, or by adding -multi_module to the
Chris@82 9086 # link flags.
Chris@82 9087 rm -rf libconftest.dylib*
Chris@82 9088 echo "int foo(void){return 1;}" > conftest.c
Chris@82 9089 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
Chris@82 9090 -dynamiclib -Wl,-single_module conftest.c" >&5
Chris@82 9091 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
Chris@82 9092 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
Chris@82 9093 _lt_result=$?
Chris@82 9094 # If there is a non-empty error log, and "single_module"
Chris@82 9095 # appears in it, assume the flag caused a linker warning
Chris@82 9096 if test -s conftest.err && $GREP single_module conftest.err; then
Chris@82 9097 cat conftest.err >&5
Chris@82 9098 # Otherwise, if the output was created with a 0 exit code from
Chris@82 9099 # the compiler, it worked.
Chris@82 9100 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
Chris@82 9101 lt_cv_apple_cc_single_mod=yes
Chris@82 9102 else
Chris@82 9103 cat conftest.err >&5
Chris@82 9104 fi
Chris@82 9105 rm -rf libconftest.dylib*
Chris@82 9106 rm -f conftest.*
Chris@82 9107 fi
Chris@82 9108 fi
Chris@82 9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
Chris@82 9110 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Chris@82 9111
Chris@82 9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
Chris@82 9113 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Chris@82 9114 if ${lt_cv_ld_exported_symbols_list+:} false; then :
Chris@82 9115 $as_echo_n "(cached) " >&6
Chris@82 9116 else
Chris@82 9117 lt_cv_ld_exported_symbols_list=no
Chris@82 9118 save_LDFLAGS=$LDFLAGS
Chris@82 9119 echo "_main" > conftest.sym
Chris@82 9120 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Chris@82 9121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 9122 /* end confdefs.h. */
Chris@82 9123
Chris@82 9124 int
Chris@82 9125 main ()
Chris@82 9126 {
Chris@82 9127
Chris@82 9128 ;
Chris@82 9129 return 0;
Chris@82 9130 }
Chris@82 9131 _ACEOF
Chris@82 9132 if ac_fn_c_try_link "$LINENO"; then :
Chris@82 9133 lt_cv_ld_exported_symbols_list=yes
Chris@82 9134 else
Chris@82 9135 lt_cv_ld_exported_symbols_list=no
Chris@82 9136 fi
Chris@82 9137 rm -f core conftest.err conftest.$ac_objext \
Chris@82 9138 conftest$ac_exeext conftest.$ac_ext
Chris@82 9139 LDFLAGS=$save_LDFLAGS
Chris@82 9140
Chris@82 9141 fi
Chris@82 9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
Chris@82 9143 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Chris@82 9144
Chris@82 9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
Chris@82 9146 $as_echo_n "checking for -force_load linker flag... " >&6; }
Chris@82 9147 if ${lt_cv_ld_force_load+:} false; then :
Chris@82 9148 $as_echo_n "(cached) " >&6
Chris@82 9149 else
Chris@82 9150 lt_cv_ld_force_load=no
Chris@82 9151 cat > conftest.c << _LT_EOF
Chris@82 9152 int forced_loaded() { return 2;}
Chris@82 9153 _LT_EOF
Chris@82 9154 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
Chris@82 9155 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
Chris@82 9156 echo "$AR cru libconftest.a conftest.o" >&5
Chris@82 9157 $AR cru libconftest.a conftest.o 2>&5
Chris@82 9158 echo "$RANLIB libconftest.a" >&5
Chris@82 9159 $RANLIB libconftest.a 2>&5
Chris@82 9160 cat > conftest.c << _LT_EOF
Chris@82 9161 int main() { return 0;}
Chris@82 9162 _LT_EOF
Chris@82 9163 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
Chris@82 9164 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
Chris@82 9165 _lt_result=$?
Chris@82 9166 if test -s conftest.err && $GREP force_load conftest.err; then
Chris@82 9167 cat conftest.err >&5
Chris@82 9168 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
Chris@82 9169 lt_cv_ld_force_load=yes
Chris@82 9170 else
Chris@82 9171 cat conftest.err >&5
Chris@82 9172 fi
Chris@82 9173 rm -f conftest.err libconftest.a conftest conftest.c
Chris@82 9174 rm -rf conftest.dSYM
Chris@82 9175
Chris@82 9176 fi
Chris@82 9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
Chris@82 9178 $as_echo "$lt_cv_ld_force_load" >&6; }
Chris@82 9179 case $host_os in
Chris@82 9180 rhapsody* | darwin1.[012])
Chris@82 9181 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
Chris@82 9182 darwin1.*)
Chris@82 9183 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
Chris@82 9184 darwin*) # darwin 5.x on
Chris@82 9185 # if running on 10.5 or later, the deployment target defaults
Chris@82 9186 # to the OS version, if on x86, and 10.4, the deployment
Chris@82 9187 # target defaults to 10.4. Don't you love it?
Chris@82 9188 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
Chris@82 9189 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
Chris@82 9190 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
Chris@82 9191 10.[012][,.]*)
Chris@82 9192 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
Chris@82 9193 10.*)
Chris@82 9194 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
Chris@82 9195 esac
Chris@82 9196 ;;
Chris@82 9197 esac
Chris@82 9198 if test yes = "$lt_cv_apple_cc_single_mod"; then
Chris@82 9199 _lt_dar_single_mod='$single_module'
Chris@82 9200 fi
Chris@82 9201 if test yes = "$lt_cv_ld_exported_symbols_list"; then
Chris@82 9202 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
Chris@82 9203 else
Chris@82 9204 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
Chris@82 9205 fi
Chris@82 9206 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
Chris@82 9207 _lt_dsymutil='~$DSYMUTIL $lib || :'
Chris@82 9208 else
Chris@82 9209 _lt_dsymutil=
Chris@82 9210 fi
Chris@82 9211 ;;
Chris@82 9212 esac
Chris@82 9213
Chris@82 9214 # func_munge_path_list VARIABLE PATH
Chris@82 9215 # -----------------------------------
Chris@82 9216 # VARIABLE is name of variable containing _space_ separated list of
Chris@82 9217 # directories to be munged by the contents of PATH, which is string
Chris@82 9218 # having a format:
Chris@82 9219 # "DIR[:DIR]:"
Chris@82 9220 # string "DIR[ DIR]" will be prepended to VARIABLE
Chris@82 9221 # ":DIR[:DIR]"
Chris@82 9222 # string "DIR[ DIR]" will be appended to VARIABLE
Chris@82 9223 # "DIRP[:DIRP]::[DIRA:]DIRA"
Chris@82 9224 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
Chris@82 9225 # "DIRA[ DIRA]" will be appended to VARIABLE
Chris@82 9226 # "DIR[:DIR]"
Chris@82 9227 # VARIABLE will be replaced by "DIR[ DIR]"
Chris@82 9228 func_munge_path_list ()
Chris@82 9229 {
Chris@82 9230 case x$2 in
Chris@82 9231 x)
Chris@82 9232 ;;
Chris@82 9233 *:)
Chris@82 9234 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
Chris@82 9235 ;;
Chris@82 9236 x:*)
Chris@82 9237 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
Chris@82 9238 ;;
Chris@82 9239 *::*)
Chris@82 9240 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
Chris@82 9241 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
Chris@82 9242 ;;
Chris@82 9243 *)
Chris@82 9244 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
Chris@82 9245 ;;
Chris@82 9246 esac
Chris@82 9247 }
Chris@82 9248
Chris@82 9249 ac_ext=c
Chris@82 9250 ac_cpp='$CPP $CPPFLAGS'
Chris@82 9251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@82 9252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 9253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@82 9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Chris@82 9255 $as_echo_n "checking how to run the C preprocessor... " >&6; }
Chris@82 9256 # On Suns, sometimes $CPP names a directory.
Chris@82 9257 if test -n "$CPP" && test -d "$CPP"; then
Chris@82 9258 CPP=
Chris@82 9259 fi
Chris@82 9260 if test -z "$CPP"; then
Chris@82 9261 if ${ac_cv_prog_CPP+:} false; then :
Chris@82 9262 $as_echo_n "(cached) " >&6
Chris@82 9263 else
Chris@82 9264 # Double quotes because CPP needs to be expanded
Chris@82 9265 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
Chris@82 9266 do
Chris@82 9267 ac_preproc_ok=false
Chris@82 9268 for ac_c_preproc_warn_flag in '' yes
Chris@82 9269 do
Chris@82 9270 # Use a header file that comes with gcc, so configuring glibc
Chris@82 9271 # with a fresh cross-compiler works.
Chris@82 9272 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@82 9273 # <limits.h> exists even on freestanding compilers.
Chris@82 9274 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@82 9275 # not just through cpp. "Syntax error" is here to catch this case.
Chris@82 9276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 9277 /* end confdefs.h. */
Chris@82 9278 #ifdef __STDC__
Chris@82 9279 # include <limits.h>
Chris@82 9280 #else
Chris@82 9281 # include <assert.h>
Chris@82 9282 #endif
Chris@82 9283 Syntax error
Chris@82 9284 _ACEOF
Chris@82 9285 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@82 9286
Chris@82 9287 else
Chris@82 9288 # Broken: fails on valid input.
Chris@82 9289 continue
Chris@82 9290 fi
Chris@82 9291 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@82 9292
Chris@82 9293 # OK, works on sane cases. Now check whether nonexistent headers
Chris@82 9294 # can be detected and how.
Chris@82 9295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 9296 /* end confdefs.h. */
Chris@82 9297 #include <ac_nonexistent.h>
Chris@82 9298 _ACEOF
Chris@82 9299 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@82 9300 # Broken: success on invalid input.
Chris@82 9301 continue
Chris@82 9302 else
Chris@82 9303 # Passes both tests.
Chris@82 9304 ac_preproc_ok=:
Chris@82 9305 break
Chris@82 9306 fi
Chris@82 9307 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@82 9308
Chris@82 9309 done
Chris@82 9310 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@82 9311 rm -f conftest.i conftest.err conftest.$ac_ext
Chris@82 9312 if $ac_preproc_ok; then :
Chris@82 9313 break
Chris@82 9314 fi
Chris@82 9315
Chris@82 9316 done
Chris@82 9317 ac_cv_prog_CPP=$CPP
Chris@82 9318
Chris@82 9319 fi
Chris@82 9320 CPP=$ac_cv_prog_CPP
Chris@82 9321 else
Chris@82 9322 ac_cv_prog_CPP=$CPP
Chris@82 9323 fi
Chris@82 9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Chris@82 9325 $as_echo "$CPP" >&6; }
Chris@82 9326 ac_preproc_ok=false
Chris@82 9327 for ac_c_preproc_warn_flag in '' yes
Chris@82 9328 do
Chris@82 9329 # Use a header file that comes with gcc, so configuring glibc
Chris@82 9330 # with a fresh cross-compiler works.
Chris@82 9331 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@82 9332 # <limits.h> exists even on freestanding compilers.
Chris@82 9333 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@82 9334 # not just through cpp. "Syntax error" is here to catch this case.
Chris@82 9335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 9336 /* end confdefs.h. */
Chris@82 9337 #ifdef __STDC__
Chris@82 9338 # include <limits.h>
Chris@82 9339 #else
Chris@82 9340 # include <assert.h>
Chris@82 9341 #endif
Chris@82 9342 Syntax error
Chris@82 9343 _ACEOF
Chris@82 9344 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@82 9345
Chris@82 9346 else
Chris@82 9347 # Broken: fails on valid input.
Chris@82 9348 continue
Chris@82 9349 fi
Chris@82 9350 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@82 9351
Chris@82 9352 # OK, works on sane cases. Now check whether nonexistent headers
Chris@82 9353 # can be detected and how.
Chris@82 9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 9355 /* end confdefs.h. */
Chris@82 9356 #include <ac_nonexistent.h>
Chris@82 9357 _ACEOF
Chris@82 9358 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@82 9359 # Broken: success on invalid input.
Chris@82 9360 continue
Chris@82 9361 else
Chris@82 9362 # Passes both tests.
Chris@82 9363 ac_preproc_ok=:
Chris@82 9364 break
Chris@82 9365 fi
Chris@82 9366 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@82 9367
Chris@82 9368 done
Chris@82 9369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@82 9370 rm -f conftest.i conftest.err conftest.$ac_ext
Chris@82 9371 if $ac_preproc_ok; then :
Chris@82 9372
Chris@82 9373 else
Chris@82 9374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@82 9375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@82 9376 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
Chris@82 9377 See \`config.log' for more details" "$LINENO" 5; }
Chris@82 9378 fi
Chris@82 9379
Chris@82 9380 ac_ext=c
Chris@82 9381 ac_cpp='$CPP $CPPFLAGS'
Chris@82 9382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@82 9383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 9384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@82 9385
Chris@82 9386
Chris@82 9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Chris@82 9388 $as_echo_n "checking for ANSI C header files... " >&6; }
Chris@82 9389 if ${ac_cv_header_stdc+:} false; then :
Chris@82 9390 $as_echo_n "(cached) " >&6
Chris@82 9391 else
Chris@82 9392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 9393 /* end confdefs.h. */
Chris@82 9394 #include <stdlib.h>
Chris@82 9395 #include <stdarg.h>
Chris@82 9396 #include <string.h>
Chris@82 9397 #include <float.h>
Chris@82 9398
Chris@82 9399 int
Chris@82 9400 main ()
Chris@82 9401 {
Chris@82 9402
Chris@82 9403 ;
Chris@82 9404 return 0;
Chris@82 9405 }
Chris@82 9406 _ACEOF
Chris@82 9407 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 9408 ac_cv_header_stdc=yes
Chris@82 9409 else
Chris@82 9410 ac_cv_header_stdc=no
Chris@82 9411 fi
Chris@82 9412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 9413
Chris@82 9414 if test $ac_cv_header_stdc = yes; then
Chris@82 9415 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Chris@82 9416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 9417 /* end confdefs.h. */
Chris@82 9418 #include <string.h>
Chris@82 9419
Chris@82 9420 _ACEOF
Chris@82 9421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@82 9422 $EGREP "memchr" >/dev/null 2>&1; then :
Chris@82 9423
Chris@82 9424 else
Chris@82 9425 ac_cv_header_stdc=no
Chris@82 9426 fi
Chris@82 9427 rm -f conftest*
Chris@82 9428
Chris@82 9429 fi
Chris@82 9430
Chris@82 9431 if test $ac_cv_header_stdc = yes; then
Chris@82 9432 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Chris@82 9433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 9434 /* end confdefs.h. */
Chris@82 9435 #include <stdlib.h>
Chris@82 9436
Chris@82 9437 _ACEOF
Chris@82 9438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@82 9439 $EGREP "free" >/dev/null 2>&1; then :
Chris@82 9440
Chris@82 9441 else
Chris@82 9442 ac_cv_header_stdc=no
Chris@82 9443 fi
Chris@82 9444 rm -f conftest*
Chris@82 9445
Chris@82 9446 fi
Chris@82 9447
Chris@82 9448 if test $ac_cv_header_stdc = yes; then
Chris@82 9449 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Chris@82 9450 if test "$cross_compiling" = yes; then :
Chris@82 9451 :
Chris@82 9452 else
Chris@82 9453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 9454 /* end confdefs.h. */
Chris@82 9455 #include <ctype.h>
Chris@82 9456 #include <stdlib.h>
Chris@82 9457 #if ((' ' & 0x0FF) == 0x020)
Chris@82 9458 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
Chris@82 9459 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Chris@82 9460 #else
Chris@82 9461 # define ISLOWER(c) \
Chris@82 9462 (('a' <= (c) && (c) <= 'i') \
Chris@82 9463 || ('j' <= (c) && (c) <= 'r') \
Chris@82 9464 || ('s' <= (c) && (c) <= 'z'))
Chris@82 9465 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
Chris@82 9466 #endif
Chris@82 9467
Chris@82 9468 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Chris@82 9469 int
Chris@82 9470 main ()
Chris@82 9471 {
Chris@82 9472 int i;
Chris@82 9473 for (i = 0; i < 256; i++)
Chris@82 9474 if (XOR (islower (i), ISLOWER (i))
Chris@82 9475 || toupper (i) != TOUPPER (i))
Chris@82 9476 return 2;
Chris@82 9477 return 0;
Chris@82 9478 }
Chris@82 9479 _ACEOF
Chris@82 9480 if ac_fn_c_try_run "$LINENO"; then :
Chris@82 9481
Chris@82 9482 else
Chris@82 9483 ac_cv_header_stdc=no
Chris@82 9484 fi
Chris@82 9485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@82 9486 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@82 9487 fi
Chris@82 9488
Chris@82 9489 fi
Chris@82 9490 fi
Chris@82 9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Chris@82 9492 $as_echo "$ac_cv_header_stdc" >&6; }
Chris@82 9493 if test $ac_cv_header_stdc = yes; then
Chris@82 9494
Chris@82 9495 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
Chris@82 9496
Chris@82 9497 fi
Chris@82 9498
Chris@82 9499 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
Chris@82 9500 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Chris@82 9501 inttypes.h stdint.h unistd.h
Chris@82 9502 do :
Chris@82 9503 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Chris@82 9504 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
Chris@82 9505 "
Chris@82 9506 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@82 9507 cat >>confdefs.h <<_ACEOF
Chris@82 9508 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris@82 9509 _ACEOF
Chris@82 9510
Chris@82 9511 fi
Chris@82 9512
Chris@82 9513 done
Chris@82 9514
Chris@82 9515
Chris@82 9516 for ac_header in dlfcn.h
Chris@82 9517 do :
Chris@82 9518 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
Chris@82 9519 "
Chris@82 9520 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Chris@82 9521 cat >>confdefs.h <<_ACEOF
Chris@82 9522 #define HAVE_DLFCN_H 1
Chris@82 9523 _ACEOF
Chris@82 9524
Chris@82 9525 fi
Chris@82 9526
Chris@82 9527 done
Chris@82 9528
Chris@82 9529
Chris@82 9530
Chris@82 9531
Chris@82 9532
Chris@82 9533 # Set options
Chris@82 9534
Chris@82 9535
Chris@82 9536
Chris@82 9537 enable_dlopen=no
Chris@82 9538
Chris@82 9539
Chris@82 9540
Chris@82 9541
Chris@82 9542 # Check whether --enable-static was given.
Chris@82 9543 if test "${enable_static+set}" = set; then :
Chris@82 9544 enableval=$enable_static; p=${PACKAGE-default}
Chris@82 9545 case $enableval in
Chris@82 9546 yes) enable_static=yes ;;
Chris@82 9547 no) enable_static=no ;;
Chris@82 9548 *)
Chris@82 9549 enable_static=no
Chris@82 9550 # Look at the argument we got. We use all the common list separators.
Chris@82 9551 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Chris@82 9552 for pkg in $enableval; do
Chris@82 9553 IFS=$lt_save_ifs
Chris@82 9554 if test "X$pkg" = "X$p"; then
Chris@82 9555 enable_static=yes
Chris@82 9556 fi
Chris@82 9557 done
Chris@82 9558 IFS=$lt_save_ifs
Chris@82 9559 ;;
Chris@82 9560 esac
Chris@82 9561 else
Chris@82 9562 enable_static=yes
Chris@82 9563 fi
Chris@82 9564
Chris@82 9565
Chris@82 9566
Chris@82 9567
Chris@82 9568
Chris@82 9569
Chris@82 9570
Chris@82 9571
Chris@82 9572
Chris@82 9573
Chris@82 9574 # Check whether --with-pic was given.
Chris@82 9575 if test "${with_pic+set}" = set; then :
Chris@82 9576 withval=$with_pic; lt_p=${PACKAGE-default}
Chris@82 9577 case $withval in
Chris@82 9578 yes|no) pic_mode=$withval ;;
Chris@82 9579 *)
Chris@82 9580 pic_mode=default
Chris@82 9581 # Look at the argument we got. We use all the common list separators.
Chris@82 9582 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Chris@82 9583 for lt_pkg in $withval; do
Chris@82 9584 IFS=$lt_save_ifs
Chris@82 9585 if test "X$lt_pkg" = "X$lt_p"; then
Chris@82 9586 pic_mode=yes
Chris@82 9587 fi
Chris@82 9588 done
Chris@82 9589 IFS=$lt_save_ifs
Chris@82 9590 ;;
Chris@82 9591 esac
Chris@82 9592 else
Chris@82 9593 pic_mode=default
Chris@82 9594 fi
Chris@82 9595
Chris@82 9596
Chris@82 9597
Chris@82 9598
Chris@82 9599
Chris@82 9600
Chris@82 9601
Chris@82 9602
Chris@82 9603 # Check whether --enable-fast-install was given.
Chris@82 9604 if test "${enable_fast_install+set}" = set; then :
Chris@82 9605 enableval=$enable_fast_install; p=${PACKAGE-default}
Chris@82 9606 case $enableval in
Chris@82 9607 yes) enable_fast_install=yes ;;
Chris@82 9608 no) enable_fast_install=no ;;
Chris@82 9609 *)
Chris@82 9610 enable_fast_install=no
Chris@82 9611 # Look at the argument we got. We use all the common list separators.
Chris@82 9612 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Chris@82 9613 for pkg in $enableval; do
Chris@82 9614 IFS=$lt_save_ifs
Chris@82 9615 if test "X$pkg" = "X$p"; then
Chris@82 9616 enable_fast_install=yes
Chris@82 9617 fi
Chris@82 9618 done
Chris@82 9619 IFS=$lt_save_ifs
Chris@82 9620 ;;
Chris@82 9621 esac
Chris@82 9622 else
Chris@82 9623 enable_fast_install=yes
Chris@82 9624 fi
Chris@82 9625
Chris@82 9626
Chris@82 9627
Chris@82 9628
Chris@82 9629
Chris@82 9630
Chris@82 9631
Chris@82 9632
Chris@82 9633 shared_archive_member_spec=
Chris@82 9634 case $host,$enable_shared in
Chris@82 9635 power*-*-aix[5-9]*,yes)
Chris@82 9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
Chris@82 9637 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
Chris@82 9638
Chris@82 9639 # Check whether --with-aix-soname was given.
Chris@82 9640 if test "${with_aix_soname+set}" = set; then :
Chris@82 9641 withval=$with_aix_soname; case $withval in
Chris@82 9642 aix|svr4|both)
Chris@82 9643 ;;
Chris@82 9644 *)
Chris@82 9645 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
Chris@82 9646 ;;
Chris@82 9647 esac
Chris@82 9648 lt_cv_with_aix_soname=$with_aix_soname
Chris@82 9649 else
Chris@82 9650 if ${lt_cv_with_aix_soname+:} false; then :
Chris@82 9651 $as_echo_n "(cached) " >&6
Chris@82 9652 else
Chris@82 9653 lt_cv_with_aix_soname=aix
Chris@82 9654 fi
Chris@82 9655
Chris@82 9656 with_aix_soname=$lt_cv_with_aix_soname
Chris@82 9657 fi
Chris@82 9658
Chris@82 9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
Chris@82 9660 $as_echo "$with_aix_soname" >&6; }
Chris@82 9661 if test aix != "$with_aix_soname"; then
Chris@82 9662 # For the AIX way of multilib, we name the shared archive member
Chris@82 9663 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
Chris@82 9664 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
Chris@82 9665 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
Chris@82 9666 # the AIX toolchain works better with OBJECT_MODE set (default 32).
Chris@82 9667 if test 64 = "${OBJECT_MODE-32}"; then
Chris@82 9668 shared_archive_member_spec=shr_64
Chris@82 9669 else
Chris@82 9670 shared_archive_member_spec=shr
Chris@82 9671 fi
Chris@82 9672 fi
Chris@82 9673 ;;
Chris@82 9674 *)
Chris@82 9675 with_aix_soname=aix
Chris@82 9676 ;;
Chris@82 9677 esac
Chris@82 9678
Chris@82 9679
Chris@82 9680
Chris@82 9681
Chris@82 9682
Chris@82 9683
Chris@82 9684
Chris@82 9685
Chris@82 9686
Chris@82 9687
Chris@82 9688 # This can be used to rebuild libtool when needed
Chris@82 9689 LIBTOOL_DEPS=$ltmain
Chris@82 9690
Chris@82 9691 # Always use our own libtool.
Chris@82 9692 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
Chris@82 9693
Chris@82 9694
Chris@82 9695
Chris@82 9696
Chris@82 9697
Chris@82 9698
Chris@82 9699
Chris@82 9700
Chris@82 9701
Chris@82 9702
Chris@82 9703
Chris@82 9704
Chris@82 9705
Chris@82 9706
Chris@82 9707
Chris@82 9708
Chris@82 9709
Chris@82 9710
Chris@82 9711
Chris@82 9712
Chris@82 9713
Chris@82 9714
Chris@82 9715
Chris@82 9716
Chris@82 9717
Chris@82 9718
Chris@82 9719
Chris@82 9720
Chris@82 9721
Chris@82 9722
Chris@82 9723 test -z "$LN_S" && LN_S="ln -s"
Chris@82 9724
Chris@82 9725
Chris@82 9726
Chris@82 9727
Chris@82 9728
Chris@82 9729
Chris@82 9730
Chris@82 9731
Chris@82 9732
Chris@82 9733
Chris@82 9734
Chris@82 9735
Chris@82 9736
Chris@82 9737
Chris@82 9738 if test -n "${ZSH_VERSION+set}"; then
Chris@82 9739 setopt NO_GLOB_SUBST
Chris@82 9740 fi
Chris@82 9741
Chris@82 9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
Chris@82 9743 $as_echo_n "checking for objdir... " >&6; }
Chris@82 9744 if ${lt_cv_objdir+:} false; then :
Chris@82 9745 $as_echo_n "(cached) " >&6
Chris@82 9746 else
Chris@82 9747 rm -f .libs 2>/dev/null
Chris@82 9748 mkdir .libs 2>/dev/null
Chris@82 9749 if test -d .libs; then
Chris@82 9750 lt_cv_objdir=.libs
Chris@82 9751 else
Chris@82 9752 # MS-DOS does not allow filenames that begin with a dot.
Chris@82 9753 lt_cv_objdir=_libs
Chris@82 9754 fi
Chris@82 9755 rmdir .libs 2>/dev/null
Chris@82 9756 fi
Chris@82 9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
Chris@82 9758 $as_echo "$lt_cv_objdir" >&6; }
Chris@82 9759 objdir=$lt_cv_objdir
Chris@82 9760
Chris@82 9761
Chris@82 9762
Chris@82 9763
Chris@82 9764
Chris@82 9765 cat >>confdefs.h <<_ACEOF
Chris@82 9766 #define LT_OBJDIR "$lt_cv_objdir/"
Chris@82 9767 _ACEOF
Chris@82 9768
Chris@82 9769
Chris@82 9770
Chris@82 9771
Chris@82 9772 case $host_os in
Chris@82 9773 aix3*)
Chris@82 9774 # AIX sometimes has problems with the GCC collect2 program. For some
Chris@82 9775 # reason, if we set the COLLECT_NAMES environment variable, the problems
Chris@82 9776 # vanish in a puff of smoke.
Chris@82 9777 if test set != "${COLLECT_NAMES+set}"; then
Chris@82 9778 COLLECT_NAMES=
Chris@82 9779 export COLLECT_NAMES
Chris@82 9780 fi
Chris@82 9781 ;;
Chris@82 9782 esac
Chris@82 9783
Chris@82 9784 # Global variables:
Chris@82 9785 ofile=libtool
Chris@82 9786 can_build_shared=yes
Chris@82 9787
Chris@82 9788 # All known linkers require a '.a' archive for static linking (except MSVC,
Chris@82 9789 # which needs '.lib').
Chris@82 9790 libext=a
Chris@82 9791
Chris@82 9792 with_gnu_ld=$lt_cv_prog_gnu_ld
Chris@82 9793
Chris@82 9794 old_CC=$CC
Chris@82 9795 old_CFLAGS=$CFLAGS
Chris@82 9796
Chris@82 9797 # Set sane defaults for various variables
Chris@82 9798 test -z "$CC" && CC=cc
Chris@82 9799 test -z "$LTCC" && LTCC=$CC
Chris@82 9800 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
Chris@82 9801 test -z "$LD" && LD=ld
Chris@82 9802 test -z "$ac_objext" && ac_objext=o
Chris@82 9803
Chris@82 9804 func_cc_basename $compiler
Chris@82 9805 cc_basename=$func_cc_basename_result
Chris@82 9806
Chris@82 9807
Chris@82 9808 # Only perform the check for file, if the check method requires it
Chris@82 9809 test -z "$MAGIC_CMD" && MAGIC_CMD=file
Chris@82 9810 case $deplibs_check_method in
Chris@82 9811 file_magic*)
Chris@82 9812 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Chris@82 9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
Chris@82 9814 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Chris@82 9815 if ${lt_cv_path_MAGIC_CMD+:} false; then :
Chris@82 9816 $as_echo_n "(cached) " >&6
Chris@82 9817 else
Chris@82 9818 case $MAGIC_CMD in
Chris@82 9819 [\\/*] | ?:[\\/]*)
Chris@82 9820 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
Chris@82 9821 ;;
Chris@82 9822 *)
Chris@82 9823 lt_save_MAGIC_CMD=$MAGIC_CMD
Chris@82 9824 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Chris@82 9825 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
Chris@82 9826 for ac_dir in $ac_dummy; do
Chris@82 9827 IFS=$lt_save_ifs
Chris@82 9828 test -z "$ac_dir" && ac_dir=.
Chris@82 9829 if test -f "$ac_dir/${ac_tool_prefix}file"; then
Chris@82 9830 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
Chris@82 9831 if test -n "$file_magic_test_file"; then
Chris@82 9832 case $deplibs_check_method in
Chris@82 9833 "file_magic "*)
Chris@82 9834 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Chris@82 9835 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Chris@82 9836 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
Chris@82 9837 $EGREP "$file_magic_regex" > /dev/null; then
Chris@82 9838 :
Chris@82 9839 else
Chris@82 9840 cat <<_LT_EOF 1>&2
Chris@82 9841
Chris@82 9842 *** Warning: the command libtool uses to detect shared libraries,
Chris@82 9843 *** $file_magic_cmd, produces output that libtool cannot recognize.
Chris@82 9844 *** The result is that libtool may fail to recognize shared libraries
Chris@82 9845 *** as such. This will affect the creation of libtool libraries that
Chris@82 9846 *** depend on shared libraries, but programs linked with such libtool
Chris@82 9847 *** libraries will work regardless of this problem. Nevertheless, you
Chris@82 9848 *** may want to report the problem to your system manager and/or to
Chris@82 9849 *** bug-libtool@gnu.org
Chris@82 9850
Chris@82 9851 _LT_EOF
Chris@82 9852 fi ;;
Chris@82 9853 esac
Chris@82 9854 fi
Chris@82 9855 break
Chris@82 9856 fi
Chris@82 9857 done
Chris@82 9858 IFS=$lt_save_ifs
Chris@82 9859 MAGIC_CMD=$lt_save_MAGIC_CMD
Chris@82 9860 ;;
Chris@82 9861 esac
Chris@82 9862 fi
Chris@82 9863
Chris@82 9864 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Chris@82 9865 if test -n "$MAGIC_CMD"; then
Chris@82 9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Chris@82 9867 $as_echo "$MAGIC_CMD" >&6; }
Chris@82 9868 else
Chris@82 9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 9870 $as_echo "no" >&6; }
Chris@82 9871 fi
Chris@82 9872
Chris@82 9873
Chris@82 9874
Chris@82 9875
Chris@82 9876
Chris@82 9877 if test -z "$lt_cv_path_MAGIC_CMD"; then
Chris@82 9878 if test -n "$ac_tool_prefix"; then
Chris@82 9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
Chris@82 9880 $as_echo_n "checking for file... " >&6; }
Chris@82 9881 if ${lt_cv_path_MAGIC_CMD+:} false; then :
Chris@82 9882 $as_echo_n "(cached) " >&6
Chris@82 9883 else
Chris@82 9884 case $MAGIC_CMD in
Chris@82 9885 [\\/*] | ?:[\\/]*)
Chris@82 9886 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
Chris@82 9887 ;;
Chris@82 9888 *)
Chris@82 9889 lt_save_MAGIC_CMD=$MAGIC_CMD
Chris@82 9890 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Chris@82 9891 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
Chris@82 9892 for ac_dir in $ac_dummy; do
Chris@82 9893 IFS=$lt_save_ifs
Chris@82 9894 test -z "$ac_dir" && ac_dir=.
Chris@82 9895 if test -f "$ac_dir/file"; then
Chris@82 9896 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
Chris@82 9897 if test -n "$file_magic_test_file"; then
Chris@82 9898 case $deplibs_check_method in
Chris@82 9899 "file_magic "*)
Chris@82 9900 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Chris@82 9901 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Chris@82 9902 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
Chris@82 9903 $EGREP "$file_magic_regex" > /dev/null; then
Chris@82 9904 :
Chris@82 9905 else
Chris@82 9906 cat <<_LT_EOF 1>&2
Chris@82 9907
Chris@82 9908 *** Warning: the command libtool uses to detect shared libraries,
Chris@82 9909 *** $file_magic_cmd, produces output that libtool cannot recognize.
Chris@82 9910 *** The result is that libtool may fail to recognize shared libraries
Chris@82 9911 *** as such. This will affect the creation of libtool libraries that
Chris@82 9912 *** depend on shared libraries, but programs linked with such libtool
Chris@82 9913 *** libraries will work regardless of this problem. Nevertheless, you
Chris@82 9914 *** may want to report the problem to your system manager and/or to
Chris@82 9915 *** bug-libtool@gnu.org
Chris@82 9916
Chris@82 9917 _LT_EOF
Chris@82 9918 fi ;;
Chris@82 9919 esac
Chris@82 9920 fi
Chris@82 9921 break
Chris@82 9922 fi
Chris@82 9923 done
Chris@82 9924 IFS=$lt_save_ifs
Chris@82 9925 MAGIC_CMD=$lt_save_MAGIC_CMD
Chris@82 9926 ;;
Chris@82 9927 esac
Chris@82 9928 fi
Chris@82 9929
Chris@82 9930 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Chris@82 9931 if test -n "$MAGIC_CMD"; then
Chris@82 9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Chris@82 9933 $as_echo "$MAGIC_CMD" >&6; }
Chris@82 9934 else
Chris@82 9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 9936 $as_echo "no" >&6; }
Chris@82 9937 fi
Chris@82 9938
Chris@82 9939
Chris@82 9940 else
Chris@82 9941 MAGIC_CMD=:
Chris@82 9942 fi
Chris@82 9943 fi
Chris@82 9944
Chris@82 9945 fi
Chris@82 9946 ;;
Chris@82 9947 esac
Chris@82 9948
Chris@82 9949 # Use C for the default configuration in the libtool script
Chris@82 9950
Chris@82 9951 lt_save_CC=$CC
Chris@82 9952 ac_ext=c
Chris@82 9953 ac_cpp='$CPP $CPPFLAGS'
Chris@82 9954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@82 9955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 9956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@82 9957
Chris@82 9958
Chris@82 9959 # Source file extension for C test sources.
Chris@82 9960 ac_ext=c
Chris@82 9961
Chris@82 9962 # Object file extension for compiled C test sources.
Chris@82 9963 objext=o
Chris@82 9964 objext=$objext
Chris@82 9965
Chris@82 9966 # Code to be used in simple compile tests
Chris@82 9967 lt_simple_compile_test_code="int some_variable = 0;"
Chris@82 9968
Chris@82 9969 # Code to be used in simple link tests
Chris@82 9970 lt_simple_link_test_code='int main(){return(0);}'
Chris@82 9971
Chris@82 9972
Chris@82 9973
Chris@82 9974
Chris@82 9975
Chris@82 9976
Chris@82 9977
Chris@82 9978 # If no C compiler was specified, use CC.
Chris@82 9979 LTCC=${LTCC-"$CC"}
Chris@82 9980
Chris@82 9981 # If no C compiler flags were specified, use CFLAGS.
Chris@82 9982 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Chris@82 9983
Chris@82 9984 # Allow CC to be a program name with arguments.
Chris@82 9985 compiler=$CC
Chris@82 9986
Chris@82 9987 # Save the default compiler, since it gets overwritten when the other
Chris@82 9988 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
Chris@82 9989 compiler_DEFAULT=$CC
Chris@82 9990
Chris@82 9991 # save warnings/boilerplate of simple test code
Chris@82 9992 ac_outfile=conftest.$ac_objext
Chris@82 9993 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Chris@82 9994 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@82 9995 _lt_compiler_boilerplate=`cat conftest.err`
Chris@82 9996 $RM conftest*
Chris@82 9997
Chris@82 9998 ac_outfile=conftest.$ac_objext
Chris@82 9999 echo "$lt_simple_link_test_code" >conftest.$ac_ext
Chris@82 10000 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@82 10001 _lt_linker_boilerplate=`cat conftest.err`
Chris@82 10002 $RM -r conftest*
Chris@82 10003
Chris@82 10004
Chris@82 10005 ## CAVEAT EMPTOR:
Chris@82 10006 ## There is no encapsulation within the following macros, do not change
Chris@82 10007 ## the running order or otherwise move them around unless you know exactly
Chris@82 10008 ## what you are doing...
Chris@82 10009 if test -n "$compiler"; then
Chris@82 10010
Chris@82 10011 lt_prog_compiler_no_builtin_flag=
Chris@82 10012
Chris@82 10013 if test yes = "$GCC"; then
Chris@82 10014 case $cc_basename in
Chris@82 10015 nvcc*)
Chris@82 10016 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
Chris@82 10017 *)
Chris@82 10018 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
Chris@82 10019 esac
Chris@82 10020
Chris@82 10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Chris@82 10022 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Chris@82 10023 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Chris@82 10024 $as_echo_n "(cached) " >&6
Chris@82 10025 else
Chris@82 10026 lt_cv_prog_compiler_rtti_exceptions=no
Chris@82 10027 ac_outfile=conftest.$ac_objext
Chris@82 10028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@82 10029 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
Chris@82 10030 # Insert the option either (1) after the last *FLAGS variable, or
Chris@82 10031 # (2) before a word containing "conftest.", or (3) at the end.
Chris@82 10032 # Note that $ac_compile itself does not contain backslashes and begins
Chris@82 10033 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@82 10034 # The option is referenced via a variable to avoid confusing sed.
Chris@82 10035 lt_compile=`echo "$ac_compile" | $SED \
Chris@82 10036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@82 10037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@82 10038 -e 's:$: $lt_compiler_flag:'`
Chris@82 10039 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@82 10040 (eval "$lt_compile" 2>conftest.err)
Chris@82 10041 ac_status=$?
Chris@82 10042 cat conftest.err >&5
Chris@82 10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@82 10044 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@82 10045 # The compiler can only warn and ignore the option if not recognized
Chris@82 10046 # So say no if there are warnings other than the usual output.
Chris@82 10047 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Chris@82 10048 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@82 10049 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Chris@82 10050 lt_cv_prog_compiler_rtti_exceptions=yes
Chris@82 10051 fi
Chris@82 10052 fi
Chris@82 10053 $RM conftest*
Chris@82 10054
Chris@82 10055 fi
Chris@82 10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Chris@82 10057 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Chris@82 10058
Chris@82 10059 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
Chris@82 10060 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
Chris@82 10061 else
Chris@82 10062 :
Chris@82 10063 fi
Chris@82 10064
Chris@82 10065 fi
Chris@82 10066
Chris@82 10067
Chris@82 10068
Chris@82 10069
Chris@82 10070
Chris@82 10071
Chris@82 10072 lt_prog_compiler_wl=
Chris@82 10073 lt_prog_compiler_pic=
Chris@82 10074 lt_prog_compiler_static=
Chris@82 10075
Chris@82 10076
Chris@82 10077 if test yes = "$GCC"; then
Chris@82 10078 lt_prog_compiler_wl='-Wl,'
Chris@82 10079 lt_prog_compiler_static='-static'
Chris@82 10080
Chris@82 10081 case $host_os in
Chris@82 10082 aix*)
Chris@82 10083 # All AIX code is PIC.
Chris@82 10084 if test ia64 = "$host_cpu"; then
Chris@82 10085 # AIX 5 now supports IA64 processor
Chris@82 10086 lt_prog_compiler_static='-Bstatic'
Chris@82 10087 fi
Chris@82 10088 lt_prog_compiler_pic='-fPIC'
Chris@82 10089 ;;
Chris@82 10090
Chris@82 10091 amigaos*)
Chris@82 10092 case $host_cpu in
Chris@82 10093 powerpc)
Chris@82 10094 # see comment about AmigaOS4 .so support
Chris@82 10095 lt_prog_compiler_pic='-fPIC'
Chris@82 10096 ;;
Chris@82 10097 m68k)
Chris@82 10098 # FIXME: we need at least 68020 code to build shared libraries, but
Chris@82 10099 # adding the '-m68020' flag to GCC prevents building anything better,
Chris@82 10100 # like '-m68040'.
Chris@82 10101 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
Chris@82 10102 ;;
Chris@82 10103 esac
Chris@82 10104 ;;
Chris@82 10105
Chris@82 10106 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Chris@82 10107 # PIC is the default for these OSes.
Chris@82 10108 ;;
Chris@82 10109
Chris@82 10110 mingw* | cygwin* | pw32* | os2* | cegcc*)
Chris@82 10111 # This hack is so that the source file can tell whether it is being
Chris@82 10112 # built for inclusion in a dll (and should export symbols for example).
Chris@82 10113 # Although the cygwin gcc ignores -fPIC, still need this for old-style
Chris@82 10114 # (--disable-auto-import) libraries
Chris@82 10115 lt_prog_compiler_pic='-DDLL_EXPORT'
Chris@82 10116 case $host_os in
Chris@82 10117 os2*)
Chris@82 10118 lt_prog_compiler_static='$wl-static'
Chris@82 10119 ;;
Chris@82 10120 esac
Chris@82 10121 ;;
Chris@82 10122
Chris@82 10123 darwin* | rhapsody*)
Chris@82 10124 # PIC is the default on this platform
Chris@82 10125 # Common symbols not allowed in MH_DYLIB files
Chris@82 10126 lt_prog_compiler_pic='-fno-common'
Chris@82 10127 ;;
Chris@82 10128
Chris@82 10129 haiku*)
Chris@82 10130 # PIC is the default for Haiku.
Chris@82 10131 # The "-static" flag exists, but is broken.
Chris@82 10132 lt_prog_compiler_static=
Chris@82 10133 ;;
Chris@82 10134
Chris@82 10135 hpux*)
Chris@82 10136 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
Chris@82 10137 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
Chris@82 10138 # sets the default TLS model and affects inlining.
Chris@82 10139 case $host_cpu in
Chris@82 10140 hppa*64*)
Chris@82 10141 # +Z the default
Chris@82 10142 ;;
Chris@82 10143 *)
Chris@82 10144 lt_prog_compiler_pic='-fPIC'
Chris@82 10145 ;;
Chris@82 10146 esac
Chris@82 10147 ;;
Chris@82 10148
Chris@82 10149 interix[3-9]*)
Chris@82 10150 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
Chris@82 10151 # Instead, we relocate shared libraries at runtime.
Chris@82 10152 ;;
Chris@82 10153
Chris@82 10154 msdosdjgpp*)
Chris@82 10155 # Just because we use GCC doesn't mean we suddenly get shared libraries
Chris@82 10156 # on systems that don't support them.
Chris@82 10157 lt_prog_compiler_can_build_shared=no
Chris@82 10158 enable_shared=no
Chris@82 10159 ;;
Chris@82 10160
Chris@82 10161 *nto* | *qnx*)
Chris@82 10162 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@82 10163 # it will coredump.
Chris@82 10164 lt_prog_compiler_pic='-fPIC -shared'
Chris@82 10165 ;;
Chris@82 10166
Chris@82 10167 sysv4*MP*)
Chris@82 10168 if test -d /usr/nec; then
Chris@82 10169 lt_prog_compiler_pic=-Kconform_pic
Chris@82 10170 fi
Chris@82 10171 ;;
Chris@82 10172
Chris@82 10173 *)
Chris@82 10174 lt_prog_compiler_pic='-fPIC'
Chris@82 10175 ;;
Chris@82 10176 esac
Chris@82 10177
Chris@82 10178 case $cc_basename in
Chris@82 10179 nvcc*) # Cuda Compiler Driver 2.2
Chris@82 10180 lt_prog_compiler_wl='-Xlinker '
Chris@82 10181 if test -n "$lt_prog_compiler_pic"; then
Chris@82 10182 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
Chris@82 10183 fi
Chris@82 10184 ;;
Chris@82 10185 esac
Chris@82 10186 else
Chris@82 10187 # PORTME Check for flag to pass linker flags through the system compiler.
Chris@82 10188 case $host_os in
Chris@82 10189 aix*)
Chris@82 10190 lt_prog_compiler_wl='-Wl,'
Chris@82 10191 if test ia64 = "$host_cpu"; then
Chris@82 10192 # AIX 5 now supports IA64 processor
Chris@82 10193 lt_prog_compiler_static='-Bstatic'
Chris@82 10194 else
Chris@82 10195 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
Chris@82 10196 fi
Chris@82 10197 ;;
Chris@82 10198
Chris@82 10199 darwin* | rhapsody*)
Chris@82 10200 # PIC is the default on this platform
Chris@82 10201 # Common symbols not allowed in MH_DYLIB files
Chris@82 10202 lt_prog_compiler_pic='-fno-common'
Chris@82 10203 case $cc_basename in
Chris@82 10204 nagfor*)
Chris@82 10205 # NAG Fortran compiler
Chris@82 10206 lt_prog_compiler_wl='-Wl,-Wl,,'
Chris@82 10207 lt_prog_compiler_pic='-PIC'
Chris@82 10208 lt_prog_compiler_static='-Bstatic'
Chris@82 10209 ;;
Chris@82 10210 esac
Chris@82 10211 ;;
Chris@82 10212
Chris@82 10213 mingw* | cygwin* | pw32* | os2* | cegcc*)
Chris@82 10214 # This hack is so that the source file can tell whether it is being
Chris@82 10215 # built for inclusion in a dll (and should export symbols for example).
Chris@82 10216 lt_prog_compiler_pic='-DDLL_EXPORT'
Chris@82 10217 case $host_os in
Chris@82 10218 os2*)
Chris@82 10219 lt_prog_compiler_static='$wl-static'
Chris@82 10220 ;;
Chris@82 10221 esac
Chris@82 10222 ;;
Chris@82 10223
Chris@82 10224 hpux9* | hpux10* | hpux11*)
Chris@82 10225 lt_prog_compiler_wl='-Wl,'
Chris@82 10226 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
Chris@82 10227 # not for PA HP-UX.
Chris@82 10228 case $host_cpu in
Chris@82 10229 hppa*64*|ia64*)
Chris@82 10230 # +Z the default
Chris@82 10231 ;;
Chris@82 10232 *)
Chris@82 10233 lt_prog_compiler_pic='+Z'
Chris@82 10234 ;;
Chris@82 10235 esac
Chris@82 10236 # Is there a better lt_prog_compiler_static that works with the bundled CC?
Chris@82 10237 lt_prog_compiler_static='$wl-a ${wl}archive'
Chris@82 10238 ;;
Chris@82 10239
Chris@82 10240 irix5* | irix6* | nonstopux*)
Chris@82 10241 lt_prog_compiler_wl='-Wl,'
Chris@82 10242 # PIC (with -KPIC) is the default.
Chris@82 10243 lt_prog_compiler_static='-non_shared'
Chris@82 10244 ;;
Chris@82 10245
Chris@82 10246 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Chris@82 10247 case $cc_basename in
Chris@82 10248 # old Intel for x86_64, which still supported -KPIC.
Chris@82 10249 ecc*)
Chris@82 10250 lt_prog_compiler_wl='-Wl,'
Chris@82 10251 lt_prog_compiler_pic='-KPIC'
Chris@82 10252 lt_prog_compiler_static='-static'
Chris@82 10253 ;;
Chris@82 10254 # icc used to be incompatible with GCC.
Chris@82 10255 # ICC 10 doesn't accept -KPIC any more.
Chris@82 10256 icc* | ifort*)
Chris@82 10257 lt_prog_compiler_wl='-Wl,'
Chris@82 10258 lt_prog_compiler_pic='-fPIC'
Chris@82 10259 lt_prog_compiler_static='-static'
Chris@82 10260 ;;
Chris@82 10261 # Lahey Fortran 8.1.
Chris@82 10262 lf95*)
Chris@82 10263 lt_prog_compiler_wl='-Wl,'
Chris@82 10264 lt_prog_compiler_pic='--shared'
Chris@82 10265 lt_prog_compiler_static='--static'
Chris@82 10266 ;;
Chris@82 10267 nagfor*)
Chris@82 10268 # NAG Fortran compiler
Chris@82 10269 lt_prog_compiler_wl='-Wl,-Wl,,'
Chris@82 10270 lt_prog_compiler_pic='-PIC'
Chris@82 10271 lt_prog_compiler_static='-Bstatic'
Chris@82 10272 ;;
Chris@82 10273 tcc*)
Chris@82 10274 # Fabrice Bellard et al's Tiny C Compiler
Chris@82 10275 lt_prog_compiler_wl='-Wl,'
Chris@82 10276 lt_prog_compiler_pic='-fPIC'
Chris@82 10277 lt_prog_compiler_static='-static'
Chris@82 10278 ;;
Chris@82 10279 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Chris@82 10280 # Portland Group compilers (*not* the Pentium gcc compiler,
Chris@82 10281 # which looks to be a dead project)
Chris@82 10282 lt_prog_compiler_wl='-Wl,'
Chris@82 10283 lt_prog_compiler_pic='-fpic'
Chris@82 10284 lt_prog_compiler_static='-Bstatic'
Chris@82 10285 ;;
Chris@82 10286 ccc*)
Chris@82 10287 lt_prog_compiler_wl='-Wl,'
Chris@82 10288 # All Alpha code is PIC.
Chris@82 10289 lt_prog_compiler_static='-non_shared'
Chris@82 10290 ;;
Chris@82 10291 xl* | bgxl* | bgf* | mpixl*)
Chris@82 10292 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Chris@82 10293 lt_prog_compiler_wl='-Wl,'
Chris@82 10294 lt_prog_compiler_pic='-qpic'
Chris@82 10295 lt_prog_compiler_static='-qstaticlink'
Chris@82 10296 ;;
Chris@82 10297 *)
Chris@82 10298 case `$CC -V 2>&1 | sed 5q` in
Chris@82 10299 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
Chris@82 10300 # Sun Fortran 8.3 passes all unrecognized flags to the linker
Chris@82 10301 lt_prog_compiler_pic='-KPIC'
Chris@82 10302 lt_prog_compiler_static='-Bstatic'
Chris@82 10303 lt_prog_compiler_wl=''
Chris@82 10304 ;;
Chris@82 10305 *Sun\ F* | *Sun*Fortran*)
Chris@82 10306 lt_prog_compiler_pic='-KPIC'
Chris@82 10307 lt_prog_compiler_static='-Bstatic'
Chris@82 10308 lt_prog_compiler_wl='-Qoption ld '
Chris@82 10309 ;;
Chris@82 10310 *Sun\ C*)
Chris@82 10311 # Sun C 5.9
Chris@82 10312 lt_prog_compiler_pic='-KPIC'
Chris@82 10313 lt_prog_compiler_static='-Bstatic'
Chris@82 10314 lt_prog_compiler_wl='-Wl,'
Chris@82 10315 ;;
Chris@82 10316 *Intel*\ [CF]*Compiler*)
Chris@82 10317 lt_prog_compiler_wl='-Wl,'
Chris@82 10318 lt_prog_compiler_pic='-fPIC'
Chris@82 10319 lt_prog_compiler_static='-static'
Chris@82 10320 ;;
Chris@82 10321 *Portland\ Group*)
Chris@82 10322 lt_prog_compiler_wl='-Wl,'
Chris@82 10323 lt_prog_compiler_pic='-fpic'
Chris@82 10324 lt_prog_compiler_static='-Bstatic'
Chris@82 10325 ;;
Chris@82 10326 esac
Chris@82 10327 ;;
Chris@82 10328 esac
Chris@82 10329 ;;
Chris@82 10330
Chris@82 10331 newsos6)
Chris@82 10332 lt_prog_compiler_pic='-KPIC'
Chris@82 10333 lt_prog_compiler_static='-Bstatic'
Chris@82 10334 ;;
Chris@82 10335
Chris@82 10336 *nto* | *qnx*)
Chris@82 10337 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@82 10338 # it will coredump.
Chris@82 10339 lt_prog_compiler_pic='-fPIC -shared'
Chris@82 10340 ;;
Chris@82 10341
Chris@82 10342 osf3* | osf4* | osf5*)
Chris@82 10343 lt_prog_compiler_wl='-Wl,'
Chris@82 10344 # All OSF/1 code is PIC.
Chris@82 10345 lt_prog_compiler_static='-non_shared'
Chris@82 10346 ;;
Chris@82 10347
Chris@82 10348 rdos*)
Chris@82 10349 lt_prog_compiler_static='-non_shared'
Chris@82 10350 ;;
Chris@82 10351
Chris@82 10352 solaris*)
Chris@82 10353 lt_prog_compiler_pic='-KPIC'
Chris@82 10354 lt_prog_compiler_static='-Bstatic'
Chris@82 10355 case $cc_basename in
Chris@82 10356 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Chris@82 10357 lt_prog_compiler_wl='-Qoption ld ';;
Chris@82 10358 *)
Chris@82 10359 lt_prog_compiler_wl='-Wl,';;
Chris@82 10360 esac
Chris@82 10361 ;;
Chris@82 10362
Chris@82 10363 sunos4*)
Chris@82 10364 lt_prog_compiler_wl='-Qoption ld '
Chris@82 10365 lt_prog_compiler_pic='-PIC'
Chris@82 10366 lt_prog_compiler_static='-Bstatic'
Chris@82 10367 ;;
Chris@82 10368
Chris@82 10369 sysv4 | sysv4.2uw2* | sysv4.3*)
Chris@82 10370 lt_prog_compiler_wl='-Wl,'
Chris@82 10371 lt_prog_compiler_pic='-KPIC'
Chris@82 10372 lt_prog_compiler_static='-Bstatic'
Chris@82 10373 ;;
Chris@82 10374
Chris@82 10375 sysv4*MP*)
Chris@82 10376 if test -d /usr/nec; then
Chris@82 10377 lt_prog_compiler_pic='-Kconform_pic'
Chris@82 10378 lt_prog_compiler_static='-Bstatic'
Chris@82 10379 fi
Chris@82 10380 ;;
Chris@82 10381
Chris@82 10382 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
Chris@82 10383 lt_prog_compiler_wl='-Wl,'
Chris@82 10384 lt_prog_compiler_pic='-KPIC'
Chris@82 10385 lt_prog_compiler_static='-Bstatic'
Chris@82 10386 ;;
Chris@82 10387
Chris@82 10388 unicos*)
Chris@82 10389 lt_prog_compiler_wl='-Wl,'
Chris@82 10390 lt_prog_compiler_can_build_shared=no
Chris@82 10391 ;;
Chris@82 10392
Chris@82 10393 uts4*)
Chris@82 10394 lt_prog_compiler_pic='-pic'
Chris@82 10395 lt_prog_compiler_static='-Bstatic'
Chris@82 10396 ;;
Chris@82 10397
Chris@82 10398 *)
Chris@82 10399 lt_prog_compiler_can_build_shared=no
Chris@82 10400 ;;
Chris@82 10401 esac
Chris@82 10402 fi
Chris@82 10403
Chris@82 10404 case $host_os in
Chris@82 10405 # For platforms that do not support PIC, -DPIC is meaningless:
Chris@82 10406 *djgpp*)
Chris@82 10407 lt_prog_compiler_pic=
Chris@82 10408 ;;
Chris@82 10409 *)
Chris@82 10410 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
Chris@82 10411 ;;
Chris@82 10412 esac
Chris@82 10413
Chris@82 10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
Chris@82 10415 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Chris@82 10416 if ${lt_cv_prog_compiler_pic+:} false; then :
Chris@82 10417 $as_echo_n "(cached) " >&6
Chris@82 10418 else
Chris@82 10419 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
Chris@82 10420 fi
Chris@82 10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
Chris@82 10422 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
Chris@82 10423 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
Chris@82 10424
Chris@82 10425 #
Chris@82 10426 # Check to make sure the PIC flag actually works.
Chris@82 10427 #
Chris@82 10428 if test -n "$lt_prog_compiler_pic"; then
Chris@82 10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
Chris@82 10430 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Chris@82 10431 if ${lt_cv_prog_compiler_pic_works+:} false; then :
Chris@82 10432 $as_echo_n "(cached) " >&6
Chris@82 10433 else
Chris@82 10434 lt_cv_prog_compiler_pic_works=no
Chris@82 10435 ac_outfile=conftest.$ac_objext
Chris@82 10436 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@82 10437 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
Chris@82 10438 # Insert the option either (1) after the last *FLAGS variable, or
Chris@82 10439 # (2) before a word containing "conftest.", or (3) at the end.
Chris@82 10440 # Note that $ac_compile itself does not contain backslashes and begins
Chris@82 10441 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@82 10442 # The option is referenced via a variable to avoid confusing sed.
Chris@82 10443 lt_compile=`echo "$ac_compile" | $SED \
Chris@82 10444 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@82 10445 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@82 10446 -e 's:$: $lt_compiler_flag:'`
Chris@82 10447 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@82 10448 (eval "$lt_compile" 2>conftest.err)
Chris@82 10449 ac_status=$?
Chris@82 10450 cat conftest.err >&5
Chris@82 10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@82 10452 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@82 10453 # The compiler can only warn and ignore the option if not recognized
Chris@82 10454 # So say no if there are warnings other than the usual output.
Chris@82 10455 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Chris@82 10456 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@82 10457 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Chris@82 10458 lt_cv_prog_compiler_pic_works=yes
Chris@82 10459 fi
Chris@82 10460 fi
Chris@82 10461 $RM conftest*
Chris@82 10462
Chris@82 10463 fi
Chris@82 10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
Chris@82 10465 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
Chris@82 10466
Chris@82 10467 if test yes = "$lt_cv_prog_compiler_pic_works"; then
Chris@82 10468 case $lt_prog_compiler_pic in
Chris@82 10469 "" | " "*) ;;
Chris@82 10470 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
Chris@82 10471 esac
Chris@82 10472 else
Chris@82 10473 lt_prog_compiler_pic=
Chris@82 10474 lt_prog_compiler_can_build_shared=no
Chris@82 10475 fi
Chris@82 10476
Chris@82 10477 fi
Chris@82 10478
Chris@82 10479
Chris@82 10480
Chris@82 10481
Chris@82 10482
Chris@82 10483
Chris@82 10484
Chris@82 10485
Chris@82 10486
Chris@82 10487
Chris@82 10488
Chris@82 10489 #
Chris@82 10490 # Check to make sure the static flag actually works.
Chris@82 10491 #
Chris@82 10492 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Chris@82 10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
Chris@82 10494 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Chris@82 10495 if ${lt_cv_prog_compiler_static_works+:} false; then :
Chris@82 10496 $as_echo_n "(cached) " >&6
Chris@82 10497 else
Chris@82 10498 lt_cv_prog_compiler_static_works=no
Chris@82 10499 save_LDFLAGS=$LDFLAGS
Chris@82 10500 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Chris@82 10501 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Chris@82 10502 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Chris@82 10503 # The linker can only warn and ignore the option if not recognized
Chris@82 10504 # So say no if there are warnings
Chris@82 10505 if test -s conftest.err; then
Chris@82 10506 # Append any errors to the config.log.
Chris@82 10507 cat conftest.err 1>&5
Chris@82 10508 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Chris@82 10509 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@82 10510 if diff conftest.exp conftest.er2 >/dev/null; then
Chris@82 10511 lt_cv_prog_compiler_static_works=yes
Chris@82 10512 fi
Chris@82 10513 else
Chris@82 10514 lt_cv_prog_compiler_static_works=yes
Chris@82 10515 fi
Chris@82 10516 fi
Chris@82 10517 $RM -r conftest*
Chris@82 10518 LDFLAGS=$save_LDFLAGS
Chris@82 10519
Chris@82 10520 fi
Chris@82 10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
Chris@82 10522 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
Chris@82 10523
Chris@82 10524 if test yes = "$lt_cv_prog_compiler_static_works"; then
Chris@82 10525 :
Chris@82 10526 else
Chris@82 10527 lt_prog_compiler_static=
Chris@82 10528 fi
Chris@82 10529
Chris@82 10530
Chris@82 10531
Chris@82 10532
Chris@82 10533
Chris@82 10534
Chris@82 10535
Chris@82 10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@82 10537 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@82 10538 if ${lt_cv_prog_compiler_c_o+:} false; then :
Chris@82 10539 $as_echo_n "(cached) " >&6
Chris@82 10540 else
Chris@82 10541 lt_cv_prog_compiler_c_o=no
Chris@82 10542 $RM -r conftest 2>/dev/null
Chris@82 10543 mkdir conftest
Chris@82 10544 cd conftest
Chris@82 10545 mkdir out
Chris@82 10546 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@82 10547
Chris@82 10548 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@82 10549 # Insert the option either (1) after the last *FLAGS variable, or
Chris@82 10550 # (2) before a word containing "conftest.", or (3) at the end.
Chris@82 10551 # Note that $ac_compile itself does not contain backslashes and begins
Chris@82 10552 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@82 10553 lt_compile=`echo "$ac_compile" | $SED \
Chris@82 10554 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@82 10555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@82 10556 -e 's:$: $lt_compiler_flag:'`
Chris@82 10557 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@82 10558 (eval "$lt_compile" 2>out/conftest.err)
Chris@82 10559 ac_status=$?
Chris@82 10560 cat out/conftest.err >&5
Chris@82 10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@82 10562 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@82 10563 then
Chris@82 10564 # The compiler can only warn and ignore the option if not recognized
Chris@82 10565 # So say no if there are warnings
Chris@82 10566 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@82 10567 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@82 10568 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@82 10569 lt_cv_prog_compiler_c_o=yes
Chris@82 10570 fi
Chris@82 10571 fi
Chris@82 10572 chmod u+w . 2>&5
Chris@82 10573 $RM conftest*
Chris@82 10574 # SGI C++ compiler will create directory out/ii_files/ for
Chris@82 10575 # template instantiation
Chris@82 10576 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@82 10577 $RM out/* && rmdir out
Chris@82 10578 cd ..
Chris@82 10579 $RM -r conftest
Chris@82 10580 $RM conftest*
Chris@82 10581
Chris@82 10582 fi
Chris@82 10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Chris@82 10584 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Chris@82 10585
Chris@82 10586
Chris@82 10587
Chris@82 10588
Chris@82 10589
Chris@82 10590
Chris@82 10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@82 10592 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@82 10593 if ${lt_cv_prog_compiler_c_o+:} false; then :
Chris@82 10594 $as_echo_n "(cached) " >&6
Chris@82 10595 else
Chris@82 10596 lt_cv_prog_compiler_c_o=no
Chris@82 10597 $RM -r conftest 2>/dev/null
Chris@82 10598 mkdir conftest
Chris@82 10599 cd conftest
Chris@82 10600 mkdir out
Chris@82 10601 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@82 10602
Chris@82 10603 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@82 10604 # Insert the option either (1) after the last *FLAGS variable, or
Chris@82 10605 # (2) before a word containing "conftest.", or (3) at the end.
Chris@82 10606 # Note that $ac_compile itself does not contain backslashes and begins
Chris@82 10607 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@82 10608 lt_compile=`echo "$ac_compile" | $SED \
Chris@82 10609 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@82 10610 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@82 10611 -e 's:$: $lt_compiler_flag:'`
Chris@82 10612 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@82 10613 (eval "$lt_compile" 2>out/conftest.err)
Chris@82 10614 ac_status=$?
Chris@82 10615 cat out/conftest.err >&5
Chris@82 10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@82 10617 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@82 10618 then
Chris@82 10619 # The compiler can only warn and ignore the option if not recognized
Chris@82 10620 # So say no if there are warnings
Chris@82 10621 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@82 10622 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@82 10623 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@82 10624 lt_cv_prog_compiler_c_o=yes
Chris@82 10625 fi
Chris@82 10626 fi
Chris@82 10627 chmod u+w . 2>&5
Chris@82 10628 $RM conftest*
Chris@82 10629 # SGI C++ compiler will create directory out/ii_files/ for
Chris@82 10630 # template instantiation
Chris@82 10631 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@82 10632 $RM out/* && rmdir out
Chris@82 10633 cd ..
Chris@82 10634 $RM -r conftest
Chris@82 10635 $RM conftest*
Chris@82 10636
Chris@82 10637 fi
Chris@82 10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Chris@82 10639 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Chris@82 10640
Chris@82 10641
Chris@82 10642
Chris@82 10643
Chris@82 10644 hard_links=nottested
Chris@82 10645 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
Chris@82 10646 # do not overwrite the value of need_locks provided by the user
Chris@82 10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Chris@82 10648 $as_echo_n "checking if we can lock with hard links... " >&6; }
Chris@82 10649 hard_links=yes
Chris@82 10650 $RM conftest*
Chris@82 10651 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@82 10652 touch conftest.a
Chris@82 10653 ln conftest.a conftest.b 2>&5 || hard_links=no
Chris@82 10654 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@82 10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Chris@82 10656 $as_echo "$hard_links" >&6; }
Chris@82 10657 if test no = "$hard_links"; then
Chris@82 10658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
Chris@82 10659 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
Chris@82 10660 need_locks=warn
Chris@82 10661 fi
Chris@82 10662 else
Chris@82 10663 need_locks=no
Chris@82 10664 fi
Chris@82 10665
Chris@82 10666
Chris@82 10667
Chris@82 10668
Chris@82 10669
Chris@82 10670
Chris@82 10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Chris@82 10672 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Chris@82 10673
Chris@82 10674 runpath_var=
Chris@82 10675 allow_undefined_flag=
Chris@82 10676 always_export_symbols=no
Chris@82 10677 archive_cmds=
Chris@82 10678 archive_expsym_cmds=
Chris@82 10679 compiler_needs_object=no
Chris@82 10680 enable_shared_with_static_runtimes=no
Chris@82 10681 export_dynamic_flag_spec=
Chris@82 10682 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Chris@82 10683 hardcode_automatic=no
Chris@82 10684 hardcode_direct=no
Chris@82 10685 hardcode_direct_absolute=no
Chris@82 10686 hardcode_libdir_flag_spec=
Chris@82 10687 hardcode_libdir_separator=
Chris@82 10688 hardcode_minus_L=no
Chris@82 10689 hardcode_shlibpath_var=unsupported
Chris@82 10690 inherit_rpath=no
Chris@82 10691 link_all_deplibs=unknown
Chris@82 10692 module_cmds=
Chris@82 10693 module_expsym_cmds=
Chris@82 10694 old_archive_from_new_cmds=
Chris@82 10695 old_archive_from_expsyms_cmds=
Chris@82 10696 thread_safe_flag_spec=
Chris@82 10697 whole_archive_flag_spec=
Chris@82 10698 # include_expsyms should be a list of space-separated symbols to be *always*
Chris@82 10699 # included in the symbol list
Chris@82 10700 include_expsyms=
Chris@82 10701 # exclude_expsyms can be an extended regexp of symbols to exclude
Chris@82 10702 # it will be wrapped by ' (' and ')$', so one must not match beginning or
Chris@82 10703 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
Chris@82 10704 # as well as any symbol that contains 'd'.
Chris@82 10705 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Chris@82 10706 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
Chris@82 10707 # platforms (ab)use it in PIC code, but their linkers get confused if
Chris@82 10708 # the symbol is explicitly referenced. Since portable code cannot
Chris@82 10709 # rely on this symbol name, it's probably fine to never include it in
Chris@82 10710 # preloaded symbol tables.
Chris@82 10711 # Exclude shared library initialization/finalization symbols.
Chris@82 10712 extract_expsyms_cmds=
Chris@82 10713
Chris@82 10714 case $host_os in
Chris@82 10715 cygwin* | mingw* | pw32* | cegcc*)
Chris@82 10716 # FIXME: the MSVC++ port hasn't been tested in a loooong time
Chris@82 10717 # When not using gcc, we currently assume that we are using
Chris@82 10718 # Microsoft Visual C++.
Chris@82 10719 if test yes != "$GCC"; then
Chris@82 10720 with_gnu_ld=no
Chris@82 10721 fi
Chris@82 10722 ;;
Chris@82 10723 interix*)
Chris@82 10724 # we just hope/assume this is gcc and not c89 (= MSVC++)
Chris@82 10725 with_gnu_ld=yes
Chris@82 10726 ;;
Chris@82 10727 openbsd* | bitrig*)
Chris@82 10728 with_gnu_ld=no
Chris@82 10729 ;;
Chris@82 10730 linux* | k*bsd*-gnu | gnu*)
Chris@82 10731 link_all_deplibs=no
Chris@82 10732 ;;
Chris@82 10733 esac
Chris@82 10734
Chris@82 10735 ld_shlibs=yes
Chris@82 10736
Chris@82 10737 # On some targets, GNU ld is compatible enough with the native linker
Chris@82 10738 # that we're better off using the native interface for both.
Chris@82 10739 lt_use_gnu_ld_interface=no
Chris@82 10740 if test yes = "$with_gnu_ld"; then
Chris@82 10741 case $host_os in
Chris@82 10742 aix*)
Chris@82 10743 # The AIX port of GNU ld has always aspired to compatibility
Chris@82 10744 # with the native linker. However, as the warning in the GNU ld
Chris@82 10745 # block says, versions before 2.19.5* couldn't really create working
Chris@82 10746 # shared libraries, regardless of the interface used.
Chris@82 10747 case `$LD -v 2>&1` in
Chris@82 10748 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
Chris@82 10749 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
Chris@82 10750 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
Chris@82 10751 *)
Chris@82 10752 lt_use_gnu_ld_interface=yes
Chris@82 10753 ;;
Chris@82 10754 esac
Chris@82 10755 ;;
Chris@82 10756 *)
Chris@82 10757 lt_use_gnu_ld_interface=yes
Chris@82 10758 ;;
Chris@82 10759 esac
Chris@82 10760 fi
Chris@82 10761
Chris@82 10762 if test yes = "$lt_use_gnu_ld_interface"; then
Chris@82 10763 # If archive_cmds runs LD, not CC, wlarc should be empty
Chris@82 10764 wlarc='$wl'
Chris@82 10765
Chris@82 10766 # Set some defaults for GNU ld with shared library support. These
Chris@82 10767 # are reset later if shared libraries are not supported. Putting them
Chris@82 10768 # here allows them to be overridden if necessary.
Chris@82 10769 runpath_var=LD_RUN_PATH
Chris@82 10770 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Chris@82 10771 export_dynamic_flag_spec='$wl--export-dynamic'
Chris@82 10772 # ancient GNU ld didn't support --whole-archive et. al.
Chris@82 10773 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
Chris@82 10774 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
Chris@82 10775 else
Chris@82 10776 whole_archive_flag_spec=
Chris@82 10777 fi
Chris@82 10778 supports_anon_versioning=no
Chris@82 10779 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
Chris@82 10780 *GNU\ gold*) supports_anon_versioning=yes ;;
Chris@82 10781 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
Chris@82 10782 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
Chris@82 10783 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
Chris@82 10784 *\ 2.11.*) ;; # other 2.11 versions
Chris@82 10785 *) supports_anon_versioning=yes ;;
Chris@82 10786 esac
Chris@82 10787
Chris@82 10788 # See if GNU ld supports shared libraries.
Chris@82 10789 case $host_os in
Chris@82 10790 aix[3-9]*)
Chris@82 10791 # On AIX/PPC, the GNU linker is very broken
Chris@82 10792 if test ia64 != "$host_cpu"; then
Chris@82 10793 ld_shlibs=no
Chris@82 10794 cat <<_LT_EOF 1>&2
Chris@82 10795
Chris@82 10796 *** Warning: the GNU linker, at least up to release 2.19, is reported
Chris@82 10797 *** to be unable to reliably create shared libraries on AIX.
Chris@82 10798 *** Therefore, libtool is disabling shared libraries support. If you
Chris@82 10799 *** really care for shared libraries, you may want to install binutils
Chris@82 10800 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
Chris@82 10801 *** You will then need to restart the configuration process.
Chris@82 10802
Chris@82 10803 _LT_EOF
Chris@82 10804 fi
Chris@82 10805 ;;
Chris@82 10806
Chris@82 10807 amigaos*)
Chris@82 10808 case $host_cpu in
Chris@82 10809 powerpc)
Chris@82 10810 # see comment about AmigaOS4 .so support
Chris@82 10811 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@82 10812 archive_expsym_cmds=''
Chris@82 10813 ;;
Chris@82 10814 m68k)
Chris@82 10815 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@82 10816 hardcode_libdir_flag_spec='-L$libdir'
Chris@82 10817 hardcode_minus_L=yes
Chris@82 10818 ;;
Chris@82 10819 esac
Chris@82 10820 ;;
Chris@82 10821
Chris@82 10822 beos*)
Chris@82 10823 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@82 10824 allow_undefined_flag=unsupported
Chris@82 10825 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
Chris@82 10826 # support --undefined. This deserves some investigation. FIXME
Chris@82 10827 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@82 10828 else
Chris@82 10829 ld_shlibs=no
Chris@82 10830 fi
Chris@82 10831 ;;
Chris@82 10832
Chris@82 10833 cygwin* | mingw* | pw32* | cegcc*)
Chris@82 10834 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
Chris@82 10835 # as there is no search path for DLLs.
Chris@82 10836 hardcode_libdir_flag_spec='-L$libdir'
Chris@82 10837 export_dynamic_flag_spec='$wl--export-all-symbols'
Chris@82 10838 allow_undefined_flag=unsupported
Chris@82 10839 always_export_symbols=no
Chris@82 10840 enable_shared_with_static_runtimes=yes
Chris@82 10841 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@82 10842 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
Chris@82 10843
Chris@82 10844 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Chris@82 10845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Chris@82 10846 # If the export-symbols file already is a .def file, use it as
Chris@82 10847 # is; otherwise, prepend EXPORTS...
Chris@82 10848 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
Chris@82 10849 cp $export_symbols $output_objdir/$soname.def;
Chris@82 10850 else
Chris@82 10851 echo EXPORTS > $output_objdir/$soname.def;
Chris@82 10852 cat $export_symbols >> $output_objdir/$soname.def;
Chris@82 10853 fi~
Chris@82 10854 $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@82 10855 else
Chris@82 10856 ld_shlibs=no
Chris@82 10857 fi
Chris@82 10858 ;;
Chris@82 10859
Chris@82 10860 haiku*)
Chris@82 10861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@82 10862 link_all_deplibs=yes
Chris@82 10863 ;;
Chris@82 10864
Chris@82 10865 os2*)
Chris@82 10866 hardcode_libdir_flag_spec='-L$libdir'
Chris@82 10867 hardcode_minus_L=yes
Chris@82 10868 allow_undefined_flag=unsupported
Chris@82 10869 shrext_cmds=.dll
Chris@82 10870 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
Chris@82 10871 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
Chris@82 10872 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
Chris@82 10873 $ECHO EXPORTS >> $output_objdir/$libname.def~
Chris@82 10874 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
Chris@82 10875 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
Chris@82 10876 emximp -o $lib $output_objdir/$libname.def'
Chris@82 10877 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
Chris@82 10878 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
Chris@82 10879 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
Chris@82 10880 $ECHO EXPORTS >> $output_objdir/$libname.def~
Chris@82 10881 prefix_cmds="$SED"~
Chris@82 10882 if test EXPORTS = "`$SED 1q $export_symbols`"; then
Chris@82 10883 prefix_cmds="$prefix_cmds -e 1d";
Chris@82 10884 fi~
Chris@82 10885 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
Chris@82 10886 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
Chris@82 10887 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
Chris@82 10888 emximp -o $lib $output_objdir/$libname.def'
Chris@82 10889 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
Chris@82 10890 enable_shared_with_static_runtimes=yes
Chris@82 10891 ;;
Chris@82 10892
Chris@82 10893 interix[3-9]*)
Chris@82 10894 hardcode_direct=no
Chris@82 10895 hardcode_shlibpath_var=no
Chris@82 10896 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
Chris@82 10897 export_dynamic_flag_spec='$wl-E'
Chris@82 10898 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
Chris@82 10899 # Instead, shared libraries are loaded at an image base (0x10000000 by
Chris@82 10900 # default) and relocated if they conflict, which is a slow very memory
Chris@82 10901 # consuming and fragmenting process. To avoid this, we pick a random,
Chris@82 10902 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
Chris@82 10903 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Chris@82 10904 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@82 10905 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@82 10906 ;;
Chris@82 10907
Chris@82 10908 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@82 10909 tmp_diet=no
Chris@82 10910 if test linux-dietlibc = "$host_os"; then
Chris@82 10911 case $cc_basename in
Chris@82 10912 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
Chris@82 10913 esac
Chris@82 10914 fi
Chris@82 10915 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
Chris@82 10916 && test no = "$tmp_diet"
Chris@82 10917 then
Chris@82 10918 tmp_addflag=' $pic_flag'
Chris@82 10919 tmp_sharedflag='-shared'
Chris@82 10920 case $cc_basename,$host_cpu in
Chris@82 10921 pgcc*) # Portland Group C compiler
Chris@82 10922 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@82 10923 tmp_addflag=' $pic_flag'
Chris@82 10924 ;;
Chris@82 10925 pgf77* | pgf90* | pgf95* | pgfortran*)
Chris@82 10926 # Portland Group f77 and f90 compilers
Chris@82 10927 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@82 10928 tmp_addflag=' $pic_flag -Mnomain' ;;
Chris@82 10929 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Chris@82 10930 tmp_addflag=' -i_dynamic' ;;
Chris@82 10931 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
Chris@82 10932 tmp_addflag=' -i_dynamic -nofor_main' ;;
Chris@82 10933 ifc* | ifort*) # Intel Fortran compiler
Chris@82 10934 tmp_addflag=' -nofor_main' ;;
Chris@82 10935 lf95*) # Lahey Fortran 8.1
Chris@82 10936 whole_archive_flag_spec=
Chris@82 10937 tmp_sharedflag='--shared' ;;
Chris@82 10938 nagfor*) # NAGFOR 5.3
Chris@82 10939 tmp_sharedflag='-Wl,-shared' ;;
Chris@82 10940 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Chris@82 10941 tmp_sharedflag='-qmkshrobj'
Chris@82 10942 tmp_addflag= ;;
Chris@82 10943 nvcc*) # Cuda Compiler Driver 2.2
Chris@82 10944 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@82 10945 compiler_needs_object=yes
Chris@82 10946 ;;
Chris@82 10947 esac
Chris@82 10948 case `$CC -V 2>&1 | sed 5q` in
Chris@82 10949 *Sun\ C*) # Sun C 5.9
Chris@82 10950 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@82 10951 compiler_needs_object=yes
Chris@82 10952 tmp_sharedflag='-G' ;;
Chris@82 10953 *Sun\ F*) # Sun Fortran 8.3
Chris@82 10954 tmp_sharedflag='-G' ;;
Chris@82 10955 esac
Chris@82 10956 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@82 10957
Chris@82 10958 if test yes = "$supports_anon_versioning"; then
Chris@82 10959 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Chris@82 10960 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@82 10961 echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@82 10962 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
Chris@82 10963 fi
Chris@82 10964
Chris@82 10965 case $cc_basename in
Chris@82 10966 tcc*)
Chris@82 10967 export_dynamic_flag_spec='-rdynamic'
Chris@82 10968 ;;
Chris@82 10969 xlf* | bgf* | bgxlf* | mpixlf*)
Chris@82 10970 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
Chris@82 10971 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
Chris@82 10972 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Chris@82 10973 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Chris@82 10974 if test yes = "$supports_anon_versioning"; then
Chris@82 10975 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Chris@82 10976 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@82 10977 echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@82 10978 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Chris@82 10979 fi
Chris@82 10980 ;;
Chris@82 10981 esac
Chris@82 10982 else
Chris@82 10983 ld_shlibs=no
Chris@82 10984 fi
Chris@82 10985 ;;
Chris@82 10986
Chris@82 10987 netbsd* | netbsdelf*-gnu)
Chris@82 10988 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@82 10989 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
Chris@82 10990 wlarc=
Chris@82 10991 else
Chris@82 10992 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@82 10993 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@82 10994 fi
Chris@82 10995 ;;
Chris@82 10996
Chris@82 10997 solaris*)
Chris@82 10998 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Chris@82 10999 ld_shlibs=no
Chris@82 11000 cat <<_LT_EOF 1>&2
Chris@82 11001
Chris@82 11002 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
Chris@82 11003 *** create shared libraries on Solaris systems. Therefore, libtool
Chris@82 11004 *** is disabling shared libraries support. We urge you to upgrade GNU
Chris@82 11005 *** binutils to release 2.9.1 or newer. Another option is to modify
Chris@82 11006 *** your PATH or compiler configuration so that the native linker is
Chris@82 11007 *** used, and then restart.
Chris@82 11008
Chris@82 11009 _LT_EOF
Chris@82 11010 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@82 11011 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@82 11012 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@82 11013 else
Chris@82 11014 ld_shlibs=no
Chris@82 11015 fi
Chris@82 11016 ;;
Chris@82 11017
Chris@82 11018 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
Chris@82 11019 case `$LD -v 2>&1` in
Chris@82 11020 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
Chris@82 11021 ld_shlibs=no
Chris@82 11022 cat <<_LT_EOF 1>&2
Chris@82 11023
Chris@82 11024 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
Chris@82 11025 *** reliably create shared libraries on SCO systems. Therefore, libtool
Chris@82 11026 *** is disabling shared libraries support. We urge you to upgrade GNU
Chris@82 11027 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
Chris@82 11028 *** your PATH or compiler configuration so that the native linker is
Chris@82 11029 *** used, and then restart.
Chris@82 11030
Chris@82 11031 _LT_EOF
Chris@82 11032 ;;
Chris@82 11033 *)
Chris@82 11034 # For security reasons, it is highly recommended that you always
Chris@82 11035 # use absolute paths for naming shared libraries, and exclude the
Chris@82 11036 # DT_RUNPATH tag from executables and libraries. But doing so
Chris@82 11037 # requires that you compile everything twice, which is a pain.
Chris@82 11038 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@82 11039 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Chris@82 11040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@82 11041 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Chris@82 11042 else
Chris@82 11043 ld_shlibs=no
Chris@82 11044 fi
Chris@82 11045 ;;
Chris@82 11046 esac
Chris@82 11047 ;;
Chris@82 11048
Chris@82 11049 sunos4*)
Chris@82 11050 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@82 11051 wlarc=
Chris@82 11052 hardcode_direct=yes
Chris@82 11053 hardcode_shlibpath_var=no
Chris@82 11054 ;;
Chris@82 11055
Chris@82 11056 *)
Chris@82 11057 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@82 11058 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@82 11059 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@82 11060 else
Chris@82 11061 ld_shlibs=no
Chris@82 11062 fi
Chris@82 11063 ;;
Chris@82 11064 esac
Chris@82 11065
Chris@82 11066 if test no = "$ld_shlibs"; then
Chris@82 11067 runpath_var=
Chris@82 11068 hardcode_libdir_flag_spec=
Chris@82 11069 export_dynamic_flag_spec=
Chris@82 11070 whole_archive_flag_spec=
Chris@82 11071 fi
Chris@82 11072 else
Chris@82 11073 # PORTME fill in a description of your system's linker (not GNU ld)
Chris@82 11074 case $host_os in
Chris@82 11075 aix3*)
Chris@82 11076 allow_undefined_flag=unsupported
Chris@82 11077 always_export_symbols=yes
Chris@82 11078 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@82 11079 # Note: this linker hardcodes the directories in LIBPATH if there
Chris@82 11080 # are no directories specified by -L.
Chris@82 11081 hardcode_minus_L=yes
Chris@82 11082 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
Chris@82 11083 # Neither direct hardcoding nor static linking is supported with a
Chris@82 11084 # broken collect2.
Chris@82 11085 hardcode_direct=unsupported
Chris@82 11086 fi
Chris@82 11087 ;;
Chris@82 11088
Chris@82 11089 aix[4-9]*)
Chris@82 11090 if test ia64 = "$host_cpu"; then
Chris@82 11091 # On IA64, the linker does run time linking by default, so we don't
Chris@82 11092 # have to do anything special.
Chris@82 11093 aix_use_runtimelinking=no
Chris@82 11094 exp_sym_flag='-Bexport'
Chris@82 11095 no_entry_flag=
Chris@82 11096 else
Chris@82 11097 # If we're using GNU nm, then we don't want the "-C" option.
Chris@82 11098 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
Chris@82 11099 # Without the "-l" option, or with the "-B" option, AIX nm treats
Chris@82 11100 # weak defined symbols like other global defined symbols, whereas
Chris@82 11101 # GNU nm marks them as "W".
Chris@82 11102 # While the 'weak' keyword is ignored in the Export File, we need
Chris@82 11103 # it in the Import File for the 'aix-soname' feature, so we have
Chris@82 11104 # to replace the "-B" option with "-P" for AIX nm.
Chris@82 11105 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Chris@82 11106 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
Chris@82 11107 else
Chris@82 11108 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
Chris@82 11109 fi
Chris@82 11110 aix_use_runtimelinking=no
Chris@82 11111
Chris@82 11112 # Test if we are trying to use run time linking or normal
Chris@82 11113 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Chris@82 11114 # have runtime linking enabled, and use it for executables.
Chris@82 11115 # For shared libraries, we enable/disable runtime linking
Chris@82 11116 # depending on the kind of the shared library created -
Chris@82 11117 # when "with_aix_soname,aix_use_runtimelinking" is:
Chris@82 11118 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
Chris@82 11119 # "aix,yes" lib.so shared, rtl:yes, for executables
Chris@82 11120 # lib.a static archive
Chris@82 11121 # "both,no" lib.so.V(shr.o) shared, rtl:yes
Chris@82 11122 # lib.a(lib.so.V) shared, rtl:no, for executables
Chris@82 11123 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
Chris@82 11124 # lib.a(lib.so.V) shared, rtl:no
Chris@82 11125 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
Chris@82 11126 # lib.a static archive
Chris@82 11127 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Chris@82 11128 for ld_flag in $LDFLAGS; do
Chris@82 11129 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
Chris@82 11130 aix_use_runtimelinking=yes
Chris@82 11131 break
Chris@82 11132 fi
Chris@82 11133 done
Chris@82 11134 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
Chris@82 11135 # With aix-soname=svr4, we create the lib.so.V shared archives only,
Chris@82 11136 # so we don't have lib.a shared libs to link our executables.
Chris@82 11137 # We have to force runtime linking in this case.
Chris@82 11138 aix_use_runtimelinking=yes
Chris@82 11139 LDFLAGS="$LDFLAGS -Wl,-brtl"
Chris@82 11140 fi
Chris@82 11141 ;;
Chris@82 11142 esac
Chris@82 11143
Chris@82 11144 exp_sym_flag='-bexport'
Chris@82 11145 no_entry_flag='-bnoentry'
Chris@82 11146 fi
Chris@82 11147
Chris@82 11148 # When large executables or shared objects are built, AIX ld can
Chris@82 11149 # have problems creating the table of contents. If linking a library
Chris@82 11150 # or program results in "error TOC overflow" add -mminimal-toc to
Chris@82 11151 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
Chris@82 11152 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
Chris@82 11153
Chris@82 11154 archive_cmds=''
Chris@82 11155 hardcode_direct=yes
Chris@82 11156 hardcode_direct_absolute=yes
Chris@82 11157 hardcode_libdir_separator=':'
Chris@82 11158 link_all_deplibs=yes
Chris@82 11159 file_list_spec='$wl-f,'
Chris@82 11160 case $with_aix_soname,$aix_use_runtimelinking in
Chris@82 11161 aix,*) ;; # traditional, no import file
Chris@82 11162 svr4,* | *,yes) # use import file
Chris@82 11163 # The Import File defines what to hardcode.
Chris@82 11164 hardcode_direct=no
Chris@82 11165 hardcode_direct_absolute=no
Chris@82 11166 ;;
Chris@82 11167 esac
Chris@82 11168
Chris@82 11169 if test yes = "$GCC"; then
Chris@82 11170 case $host_os in aix4.[012]|aix4.[012].*)
Chris@82 11171 # We only want to do this on AIX 4.2 and lower, the check
Chris@82 11172 # below for broken collect2 doesn't work under 4.3+
Chris@82 11173 collect2name=`$CC -print-prog-name=collect2`
Chris@82 11174 if test -f "$collect2name" &&
Chris@82 11175 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Chris@82 11176 then
Chris@82 11177 # We have reworked collect2
Chris@82 11178 :
Chris@82 11179 else
Chris@82 11180 # We have old collect2
Chris@82 11181 hardcode_direct=unsupported
Chris@82 11182 # It fails to find uninstalled libraries when the uninstalled
Chris@82 11183 # path is not listed in the libpath. Setting hardcode_minus_L
Chris@82 11184 # to unsupported forces relinking
Chris@82 11185 hardcode_minus_L=yes
Chris@82 11186 hardcode_libdir_flag_spec='-L$libdir'
Chris@82 11187 hardcode_libdir_separator=
Chris@82 11188 fi
Chris@82 11189 ;;
Chris@82 11190 esac
Chris@82 11191 shared_flag='-shared'
Chris@82 11192 if test yes = "$aix_use_runtimelinking"; then
Chris@82 11193 shared_flag="$shared_flag "'$wl-G'
Chris@82 11194 fi
Chris@82 11195 # Need to ensure runtime linking is disabled for the traditional
Chris@82 11196 # shared library, or the linker may eventually find shared libraries
Chris@82 11197 # /with/ Import File - we do not want to mix them.
Chris@82 11198 shared_flag_aix='-shared'
Chris@82 11199 shared_flag_svr4='-shared $wl-G'
Chris@82 11200 else
Chris@82 11201 # not using gcc
Chris@82 11202 if test ia64 = "$host_cpu"; then
Chris@82 11203 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
Chris@82 11204 # chokes on -Wl,-G. The following line is correct:
Chris@82 11205 shared_flag='-G'
Chris@82 11206 else
Chris@82 11207 if test yes = "$aix_use_runtimelinking"; then
Chris@82 11208 shared_flag='$wl-G'
Chris@82 11209 else
Chris@82 11210 shared_flag='$wl-bM:SRE'
Chris@82 11211 fi
Chris@82 11212 shared_flag_aix='$wl-bM:SRE'
Chris@82 11213 shared_flag_svr4='$wl-G'
Chris@82 11214 fi
Chris@82 11215 fi
Chris@82 11216
Chris@82 11217 export_dynamic_flag_spec='$wl-bexpall'
Chris@82 11218 # It seems that -bexpall does not export symbols beginning with
Chris@82 11219 # underscore (_), so it is better to generate a list of symbols to export.
Chris@82 11220 always_export_symbols=yes
Chris@82 11221 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
Chris@82 11222 # Warning - without using the other runtime loading flags (-brtl),
Chris@82 11223 # -berok will link without error, but may produce a broken library.
Chris@82 11224 allow_undefined_flag='-berok'
Chris@82 11225 # Determine the default libpath from the value encoded in an
Chris@82 11226 # empty executable.
Chris@82 11227 if test set = "${lt_cv_aix_libpath+set}"; then
Chris@82 11228 aix_libpath=$lt_cv_aix_libpath
Chris@82 11229 else
Chris@82 11230 if ${lt_cv_aix_libpath_+:} false; then :
Chris@82 11231 $as_echo_n "(cached) " >&6
Chris@82 11232 else
Chris@82 11233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 11234 /* end confdefs.h. */
Chris@82 11235
Chris@82 11236 int
Chris@82 11237 main ()
Chris@82 11238 {
Chris@82 11239
Chris@82 11240 ;
Chris@82 11241 return 0;
Chris@82 11242 }
Chris@82 11243 _ACEOF
Chris@82 11244 if ac_fn_c_try_link "$LINENO"; then :
Chris@82 11245
Chris@82 11246 lt_aix_libpath_sed='
Chris@82 11247 /Import File Strings/,/^$/ {
Chris@82 11248 /^0/ {
Chris@82 11249 s/^0 *\([^ ]*\) *$/\1/
Chris@82 11250 p
Chris@82 11251 }
Chris@82 11252 }'
Chris@82 11253 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@82 11254 # Check for a 64-bit object if we didn't find anything.
Chris@82 11255 if test -z "$lt_cv_aix_libpath_"; then
Chris@82 11256 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@82 11257 fi
Chris@82 11258 fi
Chris@82 11259 rm -f core conftest.err conftest.$ac_objext \
Chris@82 11260 conftest$ac_exeext conftest.$ac_ext
Chris@82 11261 if test -z "$lt_cv_aix_libpath_"; then
Chris@82 11262 lt_cv_aix_libpath_=/usr/lib:/lib
Chris@82 11263 fi
Chris@82 11264
Chris@82 11265 fi
Chris@82 11266
Chris@82 11267 aix_libpath=$lt_cv_aix_libpath_
Chris@82 11268 fi
Chris@82 11269
Chris@82 11270 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
Chris@82 11271 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
Chris@82 11272 else
Chris@82 11273 if test ia64 = "$host_cpu"; then
Chris@82 11274 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
Chris@82 11275 allow_undefined_flag="-z nodefs"
Chris@82 11276 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@82 11277 else
Chris@82 11278 # Determine the default libpath from the value encoded in an
Chris@82 11279 # empty executable.
Chris@82 11280 if test set = "${lt_cv_aix_libpath+set}"; then
Chris@82 11281 aix_libpath=$lt_cv_aix_libpath
Chris@82 11282 else
Chris@82 11283 if ${lt_cv_aix_libpath_+:} false; then :
Chris@82 11284 $as_echo_n "(cached) " >&6
Chris@82 11285 else
Chris@82 11286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 11287 /* end confdefs.h. */
Chris@82 11288
Chris@82 11289 int
Chris@82 11290 main ()
Chris@82 11291 {
Chris@82 11292
Chris@82 11293 ;
Chris@82 11294 return 0;
Chris@82 11295 }
Chris@82 11296 _ACEOF
Chris@82 11297 if ac_fn_c_try_link "$LINENO"; then :
Chris@82 11298
Chris@82 11299 lt_aix_libpath_sed='
Chris@82 11300 /Import File Strings/,/^$/ {
Chris@82 11301 /^0/ {
Chris@82 11302 s/^0 *\([^ ]*\) *$/\1/
Chris@82 11303 p
Chris@82 11304 }
Chris@82 11305 }'
Chris@82 11306 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@82 11307 # Check for a 64-bit object if we didn't find anything.
Chris@82 11308 if test -z "$lt_cv_aix_libpath_"; then
Chris@82 11309 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@82 11310 fi
Chris@82 11311 fi
Chris@82 11312 rm -f core conftest.err conftest.$ac_objext \
Chris@82 11313 conftest$ac_exeext conftest.$ac_ext
Chris@82 11314 if test -z "$lt_cv_aix_libpath_"; then
Chris@82 11315 lt_cv_aix_libpath_=/usr/lib:/lib
Chris@82 11316 fi
Chris@82 11317
Chris@82 11318 fi
Chris@82 11319
Chris@82 11320 aix_libpath=$lt_cv_aix_libpath_
Chris@82 11321 fi
Chris@82 11322
Chris@82 11323 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
Chris@82 11324 # Warning - without using the other run time loading flags,
Chris@82 11325 # -berok will link without error, but may produce a broken library.
Chris@82 11326 no_undefined_flag=' $wl-bernotok'
Chris@82 11327 allow_undefined_flag=' $wl-berok'
Chris@82 11328 if test yes = "$with_gnu_ld"; then
Chris@82 11329 # We only use this code for GNU lds that support --whole-archive.
Chris@82 11330 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
Chris@82 11331 else
Chris@82 11332 # Exported symbols can be pulled into shared objects from archives
Chris@82 11333 whole_archive_flag_spec='$convenience'
Chris@82 11334 fi
Chris@82 11335 archive_cmds_need_lc=yes
Chris@82 11336 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
Chris@82 11337 # -brtl affects multiple linker settings, -berok does not and is overridden later
Chris@82 11338 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
Chris@82 11339 if test svr4 != "$with_aix_soname"; then
Chris@82 11340 # This is similar to how AIX traditionally builds its shared libraries.
Chris@82 11341 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
Chris@82 11342 fi
Chris@82 11343 if test aix != "$with_aix_soname"; then
Chris@82 11344 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
Chris@82 11345 else
Chris@82 11346 # used by -dlpreopen to get the symbols
Chris@82 11347 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
Chris@82 11348 fi
Chris@82 11349 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
Chris@82 11350 fi
Chris@82 11351 fi
Chris@82 11352 ;;
Chris@82 11353
Chris@82 11354 amigaos*)
Chris@82 11355 case $host_cpu in
Chris@82 11356 powerpc)
Chris@82 11357 # see comment about AmigaOS4 .so support
Chris@82 11358 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@82 11359 archive_expsym_cmds=''
Chris@82 11360 ;;
Chris@82 11361 m68k)
Chris@82 11362 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@82 11363 hardcode_libdir_flag_spec='-L$libdir'
Chris@82 11364 hardcode_minus_L=yes
Chris@82 11365 ;;
Chris@82 11366 esac
Chris@82 11367 ;;
Chris@82 11368
Chris@82 11369 bsdi[45]*)
Chris@82 11370 export_dynamic_flag_spec=-rdynamic
Chris@82 11371 ;;
Chris@82 11372
Chris@82 11373 cygwin* | mingw* | pw32* | cegcc*)
Chris@82 11374 # When not using gcc, we currently assume that we are using
Chris@82 11375 # Microsoft Visual C++.
Chris@82 11376 # hardcode_libdir_flag_spec is actually meaningless, as there is
Chris@82 11377 # no search path for DLLs.
Chris@82 11378 case $cc_basename in
Chris@82 11379 cl*)
Chris@82 11380 # Native MSVC
Chris@82 11381 hardcode_libdir_flag_spec=' '
Chris@82 11382 allow_undefined_flag=unsupported
Chris@82 11383 always_export_symbols=yes
Chris@82 11384 file_list_spec='@'
Chris@82 11385 # Tell ltmain to make .lib files, not .a files.
Chris@82 11386 libext=lib
Chris@82 11387 # Tell ltmain to make .dll files, not .so files.
Chris@82 11388 shrext_cmds=.dll
Chris@82 11389 # FIXME: Setting linknames here is a bad hack.
Chris@82 11390 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
Chris@82 11391 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
Chris@82 11392 cp "$export_symbols" "$output_objdir/$soname.def";
Chris@82 11393 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
Chris@82 11394 else
Chris@82 11395 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
Chris@82 11396 fi~
Chris@82 11397 $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@82 11398 linknames='
Chris@82 11399 # The linker will not automatically build a static lib if we build a DLL.
Chris@82 11400 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
Chris@82 11401 enable_shared_with_static_runtimes=yes
Chris@82 11402 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
Chris@82 11403 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
Chris@82 11404 # Don't use ranlib
Chris@82 11405 old_postinstall_cmds='chmod 644 $oldlib'
Chris@82 11406 postlink_cmds='lt_outputfile="@OUTPUT@"~
Chris@82 11407 lt_tool_outputfile="@TOOL_OUTPUT@"~
Chris@82 11408 case $lt_outputfile in
Chris@82 11409 *.exe|*.EXE) ;;
Chris@82 11410 *)
Chris@82 11411 lt_outputfile=$lt_outputfile.exe
Chris@82 11412 lt_tool_outputfile=$lt_tool_outputfile.exe
Chris@82 11413 ;;
Chris@82 11414 esac~
Chris@82 11415 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
Chris@82 11416 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
Chris@82 11417 $RM "$lt_outputfile.manifest";
Chris@82 11418 fi'
Chris@82 11419 ;;
Chris@82 11420 *)
Chris@82 11421 # Assume MSVC wrapper
Chris@82 11422 hardcode_libdir_flag_spec=' '
Chris@82 11423 allow_undefined_flag=unsupported
Chris@82 11424 # Tell ltmain to make .lib files, not .a files.
Chris@82 11425 libext=lib
Chris@82 11426 # Tell ltmain to make .dll files, not .so files.
Chris@82 11427 shrext_cmds=.dll
Chris@82 11428 # FIXME: Setting linknames here is a bad hack.
Chris@82 11429 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
Chris@82 11430 # The linker will automatically build a .lib file if we build a DLL.
Chris@82 11431 old_archive_from_new_cmds='true'
Chris@82 11432 # FIXME: Should let the user specify the lib program.
Chris@82 11433 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
Chris@82 11434 enable_shared_with_static_runtimes=yes
Chris@82 11435 ;;
Chris@82 11436 esac
Chris@82 11437 ;;
Chris@82 11438
Chris@82 11439 darwin* | rhapsody*)
Chris@82 11440
Chris@82 11441
Chris@82 11442 archive_cmds_need_lc=no
Chris@82 11443 hardcode_direct=no
Chris@82 11444 hardcode_automatic=yes
Chris@82 11445 hardcode_shlibpath_var=unsupported
Chris@82 11446 if test yes = "$lt_cv_ld_force_load"; then
Chris@82 11447 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@82 11448
Chris@82 11449 else
Chris@82 11450 whole_archive_flag_spec=''
Chris@82 11451 fi
Chris@82 11452 link_all_deplibs=yes
Chris@82 11453 allow_undefined_flag=$_lt_dar_allow_undefined
Chris@82 11454 case $cc_basename in
Chris@82 11455 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
Chris@82 11456 *) _lt_dar_can_shared=$GCC ;;
Chris@82 11457 esac
Chris@82 11458 if test yes = "$_lt_dar_can_shared"; then
Chris@82 11459 output_verbose_link_cmd=func_echo_all
Chris@82 11460 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@82 11461 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
Chris@82 11462 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@82 11463 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@82 11464
Chris@82 11465 else
Chris@82 11466 ld_shlibs=no
Chris@82 11467 fi
Chris@82 11468
Chris@82 11469 ;;
Chris@82 11470
Chris@82 11471 dgux*)
Chris@82 11472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@82 11473 hardcode_libdir_flag_spec='-L$libdir'
Chris@82 11474 hardcode_shlibpath_var=no
Chris@82 11475 ;;
Chris@82 11476
Chris@82 11477 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
Chris@82 11478 # support. Future versions do this automatically, but an explicit c++rt0.o
Chris@82 11479 # does not break anything, and helps significantly (at the cost of a little
Chris@82 11480 # extra space).
Chris@82 11481 freebsd2.2*)
Chris@82 11482 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
Chris@82 11483 hardcode_libdir_flag_spec='-R$libdir'
Chris@82 11484 hardcode_direct=yes
Chris@82 11485 hardcode_shlibpath_var=no
Chris@82 11486 ;;
Chris@82 11487
Chris@82 11488 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Chris@82 11489 freebsd2.*)
Chris@82 11490 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@82 11491 hardcode_direct=yes
Chris@82 11492 hardcode_minus_L=yes
Chris@82 11493 hardcode_shlibpath_var=no
Chris@82 11494 ;;
Chris@82 11495
Chris@82 11496 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Chris@82 11497 freebsd* | dragonfly*)
Chris@82 11498 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 11499 hardcode_libdir_flag_spec='-R$libdir'
Chris@82 11500 hardcode_direct=yes
Chris@82 11501 hardcode_shlibpath_var=no
Chris@82 11502 ;;
Chris@82 11503
Chris@82 11504 hpux9*)
Chris@82 11505 if test yes = "$GCC"; then
Chris@82 11506 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
Chris@82 11507 else
Chris@82 11508 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
Chris@82 11509 fi
Chris@82 11510 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Chris@82 11511 hardcode_libdir_separator=:
Chris@82 11512 hardcode_direct=yes
Chris@82 11513
Chris@82 11514 # hardcode_minus_L: Not really in the search PATH,
Chris@82 11515 # but as the default location of the library.
Chris@82 11516 hardcode_minus_L=yes
Chris@82 11517 export_dynamic_flag_spec='$wl-E'
Chris@82 11518 ;;
Chris@82 11519
Chris@82 11520 hpux10*)
Chris@82 11521 if test yes,no = "$GCC,$with_gnu_ld"; then
Chris@82 11522 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 11523 else
Chris@82 11524 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
Chris@82 11525 fi
Chris@82 11526 if test no = "$with_gnu_ld"; then
Chris@82 11527 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Chris@82 11528 hardcode_libdir_separator=:
Chris@82 11529 hardcode_direct=yes
Chris@82 11530 hardcode_direct_absolute=yes
Chris@82 11531 export_dynamic_flag_spec='$wl-E'
Chris@82 11532 # hardcode_minus_L: Not really in the search PATH,
Chris@82 11533 # but as the default location of the library.
Chris@82 11534 hardcode_minus_L=yes
Chris@82 11535 fi
Chris@82 11536 ;;
Chris@82 11537
Chris@82 11538 hpux11*)
Chris@82 11539 if test yes,no = "$GCC,$with_gnu_ld"; then
Chris@82 11540 case $host_cpu in
Chris@82 11541 hppa*64*)
Chris@82 11542 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 11543 ;;
Chris@82 11544 ia64*)
Chris@82 11545 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 11546 ;;
Chris@82 11547 *)
Chris@82 11548 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 11549 ;;
Chris@82 11550 esac
Chris@82 11551 else
Chris@82 11552 case $host_cpu in
Chris@82 11553 hppa*64*)
Chris@82 11554 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 11555 ;;
Chris@82 11556 ia64*)
Chris@82 11557 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 11558 ;;
Chris@82 11559 *)
Chris@82 11560
Chris@82 11561 # Older versions of the 11.00 compiler do not understand -b yet
Chris@82 11562 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
Chris@82 11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
Chris@82 11564 $as_echo_n "checking if $CC understands -b... " >&6; }
Chris@82 11565 if ${lt_cv_prog_compiler__b+:} false; then :
Chris@82 11566 $as_echo_n "(cached) " >&6
Chris@82 11567 else
Chris@82 11568 lt_cv_prog_compiler__b=no
Chris@82 11569 save_LDFLAGS=$LDFLAGS
Chris@82 11570 LDFLAGS="$LDFLAGS -b"
Chris@82 11571 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Chris@82 11572 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Chris@82 11573 # The linker can only warn and ignore the option if not recognized
Chris@82 11574 # So say no if there are warnings
Chris@82 11575 if test -s conftest.err; then
Chris@82 11576 # Append any errors to the config.log.
Chris@82 11577 cat conftest.err 1>&5
Chris@82 11578 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Chris@82 11579 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@82 11580 if diff conftest.exp conftest.er2 >/dev/null; then
Chris@82 11581 lt_cv_prog_compiler__b=yes
Chris@82 11582 fi
Chris@82 11583 else
Chris@82 11584 lt_cv_prog_compiler__b=yes
Chris@82 11585 fi
Chris@82 11586 fi
Chris@82 11587 $RM -r conftest*
Chris@82 11588 LDFLAGS=$save_LDFLAGS
Chris@82 11589
Chris@82 11590 fi
Chris@82 11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
Chris@82 11592 $as_echo "$lt_cv_prog_compiler__b" >&6; }
Chris@82 11593
Chris@82 11594 if test yes = "$lt_cv_prog_compiler__b"; then
Chris@82 11595 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 11596 else
Chris@82 11597 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
Chris@82 11598 fi
Chris@82 11599
Chris@82 11600 ;;
Chris@82 11601 esac
Chris@82 11602 fi
Chris@82 11603 if test no = "$with_gnu_ld"; then
Chris@82 11604 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Chris@82 11605 hardcode_libdir_separator=:
Chris@82 11606
Chris@82 11607 case $host_cpu in
Chris@82 11608 hppa*64*|ia64*)
Chris@82 11609 hardcode_direct=no
Chris@82 11610 hardcode_shlibpath_var=no
Chris@82 11611 ;;
Chris@82 11612 *)
Chris@82 11613 hardcode_direct=yes
Chris@82 11614 hardcode_direct_absolute=yes
Chris@82 11615 export_dynamic_flag_spec='$wl-E'
Chris@82 11616
Chris@82 11617 # hardcode_minus_L: Not really in the search PATH,
Chris@82 11618 # but as the default location of the library.
Chris@82 11619 hardcode_minus_L=yes
Chris@82 11620 ;;
Chris@82 11621 esac
Chris@82 11622 fi
Chris@82 11623 ;;
Chris@82 11624
Chris@82 11625 irix5* | irix6* | nonstopux*)
Chris@82 11626 if test yes = "$GCC"; then
Chris@82 11627 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@82 11628 # Try to use the -exported_symbol ld option, if it does not
Chris@82 11629 # work, assume that -exports_file does not work either and
Chris@82 11630 # implicitly export all symbols.
Chris@82 11631 # This should be the same for all languages, so no per-tag cache variable.
Chris@82 11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
Chris@82 11633 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
Chris@82 11634 if ${lt_cv_irix_exported_symbol+:} false; then :
Chris@82 11635 $as_echo_n "(cached) " >&6
Chris@82 11636 else
Chris@82 11637 save_LDFLAGS=$LDFLAGS
Chris@82 11638 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
Chris@82 11639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 11640 /* end confdefs.h. */
Chris@82 11641 int foo (void) { return 0; }
Chris@82 11642 _ACEOF
Chris@82 11643 if ac_fn_c_try_link "$LINENO"; then :
Chris@82 11644 lt_cv_irix_exported_symbol=yes
Chris@82 11645 else
Chris@82 11646 lt_cv_irix_exported_symbol=no
Chris@82 11647 fi
Chris@82 11648 rm -f core conftest.err conftest.$ac_objext \
Chris@82 11649 conftest$ac_exeext conftest.$ac_ext
Chris@82 11650 LDFLAGS=$save_LDFLAGS
Chris@82 11651 fi
Chris@82 11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
Chris@82 11653 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
Chris@82 11654 if test yes = "$lt_cv_irix_exported_symbol"; then
Chris@82 11655 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@82 11656 fi
Chris@82 11657 link_all_deplibs=no
Chris@82 11658 else
Chris@82 11659 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@82 11660 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@82 11661 fi
Chris@82 11662 archive_cmds_need_lc='no'
Chris@82 11663 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Chris@82 11664 hardcode_libdir_separator=:
Chris@82 11665 inherit_rpath=yes
Chris@82 11666 link_all_deplibs=yes
Chris@82 11667 ;;
Chris@82 11668
Chris@82 11669 linux*)
Chris@82 11670 case $cc_basename in
Chris@82 11671 tcc*)
Chris@82 11672 # Fabrice Bellard et al's Tiny C Compiler
Chris@82 11673 ld_shlibs=yes
Chris@82 11674 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 11675 ;;
Chris@82 11676 esac
Chris@82 11677 ;;
Chris@82 11678
Chris@82 11679 netbsd* | netbsdelf*-gnu)
Chris@82 11680 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@82 11681 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
Chris@82 11682 else
Chris@82 11683 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
Chris@82 11684 fi
Chris@82 11685 hardcode_libdir_flag_spec='-R$libdir'
Chris@82 11686 hardcode_direct=yes
Chris@82 11687 hardcode_shlibpath_var=no
Chris@82 11688 ;;
Chris@82 11689
Chris@82 11690 newsos6)
Chris@82 11691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@82 11692 hardcode_direct=yes
Chris@82 11693 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Chris@82 11694 hardcode_libdir_separator=:
Chris@82 11695 hardcode_shlibpath_var=no
Chris@82 11696 ;;
Chris@82 11697
Chris@82 11698 *nto* | *qnx*)
Chris@82 11699 ;;
Chris@82 11700
Chris@82 11701 openbsd* | bitrig*)
Chris@82 11702 if test -f /usr/libexec/ld.so; then
Chris@82 11703 hardcode_direct=yes
Chris@82 11704 hardcode_shlibpath_var=no
Chris@82 11705 hardcode_direct_absolute=yes
Chris@82 11706 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Chris@82 11707 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 11708 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
Chris@82 11709 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
Chris@82 11710 export_dynamic_flag_spec='$wl-E'
Chris@82 11711 else
Chris@82 11712 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 11713 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
Chris@82 11714 fi
Chris@82 11715 else
Chris@82 11716 ld_shlibs=no
Chris@82 11717 fi
Chris@82 11718 ;;
Chris@82 11719
Chris@82 11720 os2*)
Chris@82 11721 hardcode_libdir_flag_spec='-L$libdir'
Chris@82 11722 hardcode_minus_L=yes
Chris@82 11723 allow_undefined_flag=unsupported
Chris@82 11724 shrext_cmds=.dll
Chris@82 11725 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
Chris@82 11726 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
Chris@82 11727 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
Chris@82 11728 $ECHO EXPORTS >> $output_objdir/$libname.def~
Chris@82 11729 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
Chris@82 11730 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
Chris@82 11731 emximp -o $lib $output_objdir/$libname.def'
Chris@82 11732 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
Chris@82 11733 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
Chris@82 11734 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
Chris@82 11735 $ECHO EXPORTS >> $output_objdir/$libname.def~
Chris@82 11736 prefix_cmds="$SED"~
Chris@82 11737 if test EXPORTS = "`$SED 1q $export_symbols`"; then
Chris@82 11738 prefix_cmds="$prefix_cmds -e 1d";
Chris@82 11739 fi~
Chris@82 11740 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
Chris@82 11741 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
Chris@82 11742 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
Chris@82 11743 emximp -o $lib $output_objdir/$libname.def'
Chris@82 11744 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
Chris@82 11745 enable_shared_with_static_runtimes=yes
Chris@82 11746 ;;
Chris@82 11747
Chris@82 11748 osf3*)
Chris@82 11749 if test yes = "$GCC"; then
Chris@82 11750 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
Chris@82 11751 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@82 11752 else
Chris@82 11753 allow_undefined_flag=' -expect_unresolved \*'
Chris@82 11754 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@82 11755 fi
Chris@82 11756 archive_cmds_need_lc='no'
Chris@82 11757 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Chris@82 11758 hardcode_libdir_separator=:
Chris@82 11759 ;;
Chris@82 11760
Chris@82 11761 osf4* | osf5*) # as osf3* with the addition of -msym flag
Chris@82 11762 if test yes = "$GCC"; then
Chris@82 11763 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
Chris@82 11764 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@82 11765 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Chris@82 11766 else
Chris@82 11767 allow_undefined_flag=' -expect_unresolved \*'
Chris@82 11768 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@82 11769 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@82 11770 $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@82 11771
Chris@82 11772 # Both c and cxx compiler support -rpath directly
Chris@82 11773 hardcode_libdir_flag_spec='-rpath $libdir'
Chris@82 11774 fi
Chris@82 11775 archive_cmds_need_lc='no'
Chris@82 11776 hardcode_libdir_separator=:
Chris@82 11777 ;;
Chris@82 11778
Chris@82 11779 solaris*)
Chris@82 11780 no_undefined_flag=' -z defs'
Chris@82 11781 if test yes = "$GCC"; then
Chris@82 11782 wlarc='$wl'
Chris@82 11783 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 11784 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@82 11785 $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@82 11786 else
Chris@82 11787 case `$CC -V 2>&1` in
Chris@82 11788 *"Compilers 5.0"*)
Chris@82 11789 wlarc=''
Chris@82 11790 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@82 11791 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@82 11792 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
Chris@82 11793 ;;
Chris@82 11794 *)
Chris@82 11795 wlarc='$wl'
Chris@82 11796 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 11797 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@82 11798 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Chris@82 11799 ;;
Chris@82 11800 esac
Chris@82 11801 fi
Chris@82 11802 hardcode_libdir_flag_spec='-R$libdir'
Chris@82 11803 hardcode_shlibpath_var=no
Chris@82 11804 case $host_os in
Chris@82 11805 solaris2.[0-5] | solaris2.[0-5].*) ;;
Chris@82 11806 *)
Chris@82 11807 # The compiler driver will combine and reorder linker options,
Chris@82 11808 # but understands '-z linker_flag'. GCC discards it without '$wl',
Chris@82 11809 # but is careful enough not to reorder.
Chris@82 11810 # Supported since Solaris 2.6 (maybe 2.5.1?)
Chris@82 11811 if test yes = "$GCC"; then
Chris@82 11812 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
Chris@82 11813 else
Chris@82 11814 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
Chris@82 11815 fi
Chris@82 11816 ;;
Chris@82 11817 esac
Chris@82 11818 link_all_deplibs=yes
Chris@82 11819 ;;
Chris@82 11820
Chris@82 11821 sunos4*)
Chris@82 11822 if test sequent = "$host_vendor"; then
Chris@82 11823 # Use $CC to link under sequent, because it throws in some extra .o
Chris@82 11824 # files that make .init and .fini sections work.
Chris@82 11825 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 11826 else
Chris@82 11827 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
Chris@82 11828 fi
Chris@82 11829 hardcode_libdir_flag_spec='-L$libdir'
Chris@82 11830 hardcode_direct=yes
Chris@82 11831 hardcode_minus_L=yes
Chris@82 11832 hardcode_shlibpath_var=no
Chris@82 11833 ;;
Chris@82 11834
Chris@82 11835 sysv4)
Chris@82 11836 case $host_vendor in
Chris@82 11837 sni)
Chris@82 11838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@82 11839 hardcode_direct=yes # is this really true???
Chris@82 11840 ;;
Chris@82 11841 siemens)
Chris@82 11842 ## LD is ld it makes a PLAMLIB
Chris@82 11843 ## CC just makes a GrossModule.
Chris@82 11844 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
Chris@82 11845 reload_cmds='$CC -r -o $output$reload_objs'
Chris@82 11846 hardcode_direct=no
Chris@82 11847 ;;
Chris@82 11848 motorola)
Chris@82 11849 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@82 11850 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
Chris@82 11851 ;;
Chris@82 11852 esac
Chris@82 11853 runpath_var='LD_RUN_PATH'
Chris@82 11854 hardcode_shlibpath_var=no
Chris@82 11855 ;;
Chris@82 11856
Chris@82 11857 sysv4.3*)
Chris@82 11858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@82 11859 hardcode_shlibpath_var=no
Chris@82 11860 export_dynamic_flag_spec='-Bexport'
Chris@82 11861 ;;
Chris@82 11862
Chris@82 11863 sysv4*MP*)
Chris@82 11864 if test -d /usr/nec; then
Chris@82 11865 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@82 11866 hardcode_shlibpath_var=no
Chris@82 11867 runpath_var=LD_RUN_PATH
Chris@82 11868 hardcode_runpath_var=yes
Chris@82 11869 ld_shlibs=yes
Chris@82 11870 fi
Chris@82 11871 ;;
Chris@82 11872
Chris@82 11873 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Chris@82 11874 no_undefined_flag='$wl-z,text'
Chris@82 11875 archive_cmds_need_lc=no
Chris@82 11876 hardcode_shlibpath_var=no
Chris@82 11877 runpath_var='LD_RUN_PATH'
Chris@82 11878
Chris@82 11879 if test yes = "$GCC"; then
Chris@82 11880 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 11881 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 11882 else
Chris@82 11883 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 11884 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 11885 fi
Chris@82 11886 ;;
Chris@82 11887
Chris@82 11888 sysv5* | sco3.2v5* | sco5v6*)
Chris@82 11889 # Note: We CANNOT use -z defs as we might desire, because we do not
Chris@82 11890 # link with -lc, and that would cause any symbols used from libc to
Chris@82 11891 # always be unresolved, which means just about no library would
Chris@82 11892 # ever link correctly. If we're not using GNU ld we use -z text
Chris@82 11893 # though, which does catch some bad symbols but isn't as heavy-handed
Chris@82 11894 # as -z defs.
Chris@82 11895 no_undefined_flag='$wl-z,text'
Chris@82 11896 allow_undefined_flag='$wl-z,nodefs'
Chris@82 11897 archive_cmds_need_lc=no
Chris@82 11898 hardcode_shlibpath_var=no
Chris@82 11899 hardcode_libdir_flag_spec='$wl-R,$libdir'
Chris@82 11900 hardcode_libdir_separator=':'
Chris@82 11901 link_all_deplibs=yes
Chris@82 11902 export_dynamic_flag_spec='$wl-Bexport'
Chris@82 11903 runpath_var='LD_RUN_PATH'
Chris@82 11904
Chris@82 11905 if test yes = "$GCC"; then
Chris@82 11906 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 11907 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 11908 else
Chris@82 11909 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 11910 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 11911 fi
Chris@82 11912 ;;
Chris@82 11913
Chris@82 11914 uts4*)
Chris@82 11915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@82 11916 hardcode_libdir_flag_spec='-L$libdir'
Chris@82 11917 hardcode_shlibpath_var=no
Chris@82 11918 ;;
Chris@82 11919
Chris@82 11920 *)
Chris@82 11921 ld_shlibs=no
Chris@82 11922 ;;
Chris@82 11923 esac
Chris@82 11924
Chris@82 11925 if test sni = "$host_vendor"; then
Chris@82 11926 case $host in
Chris@82 11927 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Chris@82 11928 export_dynamic_flag_spec='$wl-Blargedynsym'
Chris@82 11929 ;;
Chris@82 11930 esac
Chris@82 11931 fi
Chris@82 11932 fi
Chris@82 11933
Chris@82 11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
Chris@82 11935 $as_echo "$ld_shlibs" >&6; }
Chris@82 11936 test no = "$ld_shlibs" && can_build_shared=no
Chris@82 11937
Chris@82 11938 with_gnu_ld=$with_gnu_ld
Chris@82 11939
Chris@82 11940
Chris@82 11941
Chris@82 11942
Chris@82 11943
Chris@82 11944
Chris@82 11945
Chris@82 11946
Chris@82 11947
Chris@82 11948
Chris@82 11949
Chris@82 11950
Chris@82 11951
Chris@82 11952
Chris@82 11953
Chris@82 11954 #
Chris@82 11955 # Do we need to explicitly link libc?
Chris@82 11956 #
Chris@82 11957 case "x$archive_cmds_need_lc" in
Chris@82 11958 x|xyes)
Chris@82 11959 # Assume -lc should be added
Chris@82 11960 archive_cmds_need_lc=yes
Chris@82 11961
Chris@82 11962 if test yes,yes = "$GCC,$enable_shared"; then
Chris@82 11963 case $archive_cmds in
Chris@82 11964 *'~'*)
Chris@82 11965 # FIXME: we may have to deal with multi-command sequences.
Chris@82 11966 ;;
Chris@82 11967 '$CC '*)
Chris@82 11968 # Test whether the compiler implicitly links with -lc since on some
Chris@82 11969 # systems, -lgcc has to come before -lc. If gcc already passes -lc
Chris@82 11970 # to ld, don't add -lc before -lgcc.
Chris@82 11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Chris@82 11972 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Chris@82 11973 if ${lt_cv_archive_cmds_need_lc+:} false; then :
Chris@82 11974 $as_echo_n "(cached) " >&6
Chris@82 11975 else
Chris@82 11976 $RM conftest*
Chris@82 11977 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@82 11978
Chris@82 11979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@82 11980 (eval $ac_compile) 2>&5
Chris@82 11981 ac_status=$?
Chris@82 11982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@82 11983 test $ac_status = 0; } 2>conftest.err; then
Chris@82 11984 soname=conftest
Chris@82 11985 lib=conftest
Chris@82 11986 libobjs=conftest.$ac_objext
Chris@82 11987 deplibs=
Chris@82 11988 wl=$lt_prog_compiler_wl
Chris@82 11989 pic_flag=$lt_prog_compiler_pic
Chris@82 11990 compiler_flags=-v
Chris@82 11991 linker_flags=-v
Chris@82 11992 verstring=
Chris@82 11993 output_objdir=.
Chris@82 11994 libname=conftest
Chris@82 11995 lt_save_allow_undefined_flag=$allow_undefined_flag
Chris@82 11996 allow_undefined_flag=
Chris@82 11997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Chris@82 11998 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Chris@82 11999 ac_status=$?
Chris@82 12000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@82 12001 test $ac_status = 0; }
Chris@82 12002 then
Chris@82 12003 lt_cv_archive_cmds_need_lc=no
Chris@82 12004 else
Chris@82 12005 lt_cv_archive_cmds_need_lc=yes
Chris@82 12006 fi
Chris@82 12007 allow_undefined_flag=$lt_save_allow_undefined_flag
Chris@82 12008 else
Chris@82 12009 cat conftest.err 1>&5
Chris@82 12010 fi
Chris@82 12011 $RM conftest*
Chris@82 12012
Chris@82 12013 fi
Chris@82 12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
Chris@82 12015 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
Chris@82 12016 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Chris@82 12017 ;;
Chris@82 12018 esac
Chris@82 12019 fi
Chris@82 12020 ;;
Chris@82 12021 esac
Chris@82 12022
Chris@82 12023
Chris@82 12024
Chris@82 12025
Chris@82 12026
Chris@82 12027
Chris@82 12028
Chris@82 12029
Chris@82 12030
Chris@82 12031
Chris@82 12032
Chris@82 12033
Chris@82 12034
Chris@82 12035
Chris@82 12036
Chris@82 12037
Chris@82 12038
Chris@82 12039
Chris@82 12040
Chris@82 12041
Chris@82 12042
Chris@82 12043
Chris@82 12044
Chris@82 12045
Chris@82 12046
Chris@82 12047
Chris@82 12048
Chris@82 12049
Chris@82 12050
Chris@82 12051
Chris@82 12052
Chris@82 12053
Chris@82 12054
Chris@82 12055
Chris@82 12056
Chris@82 12057
Chris@82 12058
Chris@82 12059
Chris@82 12060
Chris@82 12061
Chris@82 12062
Chris@82 12063
Chris@82 12064
Chris@82 12065
Chris@82 12066
Chris@82 12067
Chris@82 12068
Chris@82 12069
Chris@82 12070
Chris@82 12071
Chris@82 12072
Chris@82 12073
Chris@82 12074
Chris@82 12075
Chris@82 12076
Chris@82 12077
Chris@82 12078
Chris@82 12079
Chris@82 12080
Chris@82 12081
Chris@82 12082
Chris@82 12083
Chris@82 12084
Chris@82 12085
Chris@82 12086
Chris@82 12087
Chris@82 12088
Chris@82 12089
Chris@82 12090
Chris@82 12091
Chris@82 12092
Chris@82 12093
Chris@82 12094
Chris@82 12095
Chris@82 12096
Chris@82 12097
Chris@82 12098
Chris@82 12099
Chris@82 12100
Chris@82 12101
Chris@82 12102
Chris@82 12103
Chris@82 12104
Chris@82 12105
Chris@82 12106
Chris@82 12107
Chris@82 12108
Chris@82 12109
Chris@82 12110
Chris@82 12111
Chris@82 12112
Chris@82 12113
Chris@82 12114
Chris@82 12115
Chris@82 12116
Chris@82 12117
Chris@82 12118
Chris@82 12119
Chris@82 12120
Chris@82 12121
Chris@82 12122
Chris@82 12123
Chris@82 12124
Chris@82 12125
Chris@82 12126
Chris@82 12127
Chris@82 12128
Chris@82 12129
Chris@82 12130
Chris@82 12131
Chris@82 12132
Chris@82 12133
Chris@82 12134
Chris@82 12135
Chris@82 12136
Chris@82 12137
Chris@82 12138
Chris@82 12139
Chris@82 12140
Chris@82 12141
Chris@82 12142
Chris@82 12143
Chris@82 12144
Chris@82 12145
Chris@82 12146
Chris@82 12147
Chris@82 12148
Chris@82 12149
Chris@82 12150
Chris@82 12151
Chris@82 12152
Chris@82 12153
Chris@82 12154
Chris@82 12155
Chris@82 12156
Chris@82 12157
Chris@82 12158
Chris@82 12159
Chris@82 12160
Chris@82 12161
Chris@82 12162
Chris@82 12163
Chris@82 12164
Chris@82 12165
Chris@82 12166
Chris@82 12167
Chris@82 12168
Chris@82 12169
Chris@82 12170
Chris@82 12171
Chris@82 12172
Chris@82 12173
Chris@82 12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Chris@82 12175 $as_echo_n "checking dynamic linker characteristics... " >&6; }
Chris@82 12176
Chris@82 12177 if test yes = "$GCC"; then
Chris@82 12178 case $host_os in
Chris@82 12179 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
Chris@82 12180 *) lt_awk_arg='/^libraries:/' ;;
Chris@82 12181 esac
Chris@82 12182 case $host_os in
Chris@82 12183 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
Chris@82 12184 *) lt_sed_strip_eq='s|=/|/|g' ;;
Chris@82 12185 esac
Chris@82 12186 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
Chris@82 12187 case $lt_search_path_spec in
Chris@82 12188 *\;*)
Chris@82 12189 # if the path contains ";" then we assume it to be the separator
Chris@82 12190 # otherwise default to the standard path separator (i.e. ":") - it is
Chris@82 12191 # assumed that no part of a normal pathname contains ";" but that should
Chris@82 12192 # okay in the real world where ";" in dirpaths is itself problematic.
Chris@82 12193 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
Chris@82 12194 ;;
Chris@82 12195 *)
Chris@82 12196 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
Chris@82 12197 ;;
Chris@82 12198 esac
Chris@82 12199 # Ok, now we have the path, separated by spaces, we can step through it
Chris@82 12200 # and add multilib dir if necessary...
Chris@82 12201 lt_tmp_lt_search_path_spec=
Chris@82 12202 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
Chris@82 12203 # ...but if some path component already ends with the multilib dir we assume
Chris@82 12204 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
Chris@82 12205 case "$lt_multi_os_dir; $lt_search_path_spec " in
Chris@82 12206 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
Chris@82 12207 lt_multi_os_dir=
Chris@82 12208 ;;
Chris@82 12209 esac
Chris@82 12210 for lt_sys_path in $lt_search_path_spec; do
Chris@82 12211 if test -d "$lt_sys_path$lt_multi_os_dir"; then
Chris@82 12212 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
Chris@82 12213 elif test -n "$lt_multi_os_dir"; then
Chris@82 12214 test -d "$lt_sys_path" && \
Chris@82 12215 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
Chris@82 12216 fi
Chris@82 12217 done
Chris@82 12218 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Chris@82 12219 BEGIN {RS = " "; FS = "/|\n";} {
Chris@82 12220 lt_foo = "";
Chris@82 12221 lt_count = 0;
Chris@82 12222 for (lt_i = NF; lt_i > 0; lt_i--) {
Chris@82 12223 if ($lt_i != "" && $lt_i != ".") {
Chris@82 12224 if ($lt_i == "..") {
Chris@82 12225 lt_count++;
Chris@82 12226 } else {
Chris@82 12227 if (lt_count == 0) {
Chris@82 12228 lt_foo = "/" $lt_i lt_foo;
Chris@82 12229 } else {
Chris@82 12230 lt_count--;
Chris@82 12231 }
Chris@82 12232 }
Chris@82 12233 }
Chris@82 12234 }
Chris@82 12235 if (lt_foo != "") { lt_freq[lt_foo]++; }
Chris@82 12236 if (lt_freq[lt_foo] == 1) { print lt_foo; }
Chris@82 12237 }'`
Chris@82 12238 # AWK program above erroneously prepends '/' to C:/dos/paths
Chris@82 12239 # for these hosts.
Chris@82 12240 case $host_os in
Chris@82 12241 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
Chris@82 12242 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
Chris@82 12243 esac
Chris@82 12244 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Chris@82 12245 else
Chris@82 12246 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Chris@82 12247 fi
Chris@82 12248 library_names_spec=
Chris@82 12249 libname_spec='lib$name'
Chris@82 12250 soname_spec=
Chris@82 12251 shrext_cmds=.so
Chris@82 12252 postinstall_cmds=
Chris@82 12253 postuninstall_cmds=
Chris@82 12254 finish_cmds=
Chris@82 12255 finish_eval=
Chris@82 12256 shlibpath_var=
Chris@82 12257 shlibpath_overrides_runpath=unknown
Chris@82 12258 version_type=none
Chris@82 12259 dynamic_linker="$host_os ld.so"
Chris@82 12260 sys_lib_dlsearch_path_spec="/lib /usr/lib"
Chris@82 12261 need_lib_prefix=unknown
Chris@82 12262 hardcode_into_libs=no
Chris@82 12263
Chris@82 12264 # when you set need_version to no, make sure it does not cause -set_version
Chris@82 12265 # flags to be left without arguments
Chris@82 12266 need_version=unknown
Chris@82 12267
Chris@82 12268
Chris@82 12269
Chris@82 12270 case $host_os in
Chris@82 12271 aix3*)
Chris@82 12272 version_type=linux # correct to gnu/linux during the next big refactor
Chris@82 12273 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
Chris@82 12274 shlibpath_var=LIBPATH
Chris@82 12275
Chris@82 12276 # AIX 3 has no versioning support, so we append a major version to the name.
Chris@82 12277 soname_spec='$libname$release$shared_ext$major'
Chris@82 12278 ;;
Chris@82 12279
Chris@82 12280 aix[4-9]*)
Chris@82 12281 version_type=linux # correct to gnu/linux during the next big refactor
Chris@82 12282 need_lib_prefix=no
Chris@82 12283 need_version=no
Chris@82 12284 hardcode_into_libs=yes
Chris@82 12285 if test ia64 = "$host_cpu"; then
Chris@82 12286 # AIX 5 supports IA64
Chris@82 12287 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
Chris@82 12288 shlibpath_var=LD_LIBRARY_PATH
Chris@82 12289 else
Chris@82 12290 # With GCC up to 2.95.x, collect2 would create an import file
Chris@82 12291 # for dependence libraries. The import file would start with
Chris@82 12292 # the line '#! .'. This would cause the generated library to
Chris@82 12293 # depend on '.', always an invalid library. This was fixed in
Chris@82 12294 # development snapshots of GCC prior to 3.0.
Chris@82 12295 case $host_os in
Chris@82 12296 aix4 | aix4.[01] | aix4.[01].*)
Chris@82 12297 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
Chris@82 12298 echo ' yes '
Chris@82 12299 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
Chris@82 12300 :
Chris@82 12301 else
Chris@82 12302 can_build_shared=no
Chris@82 12303 fi
Chris@82 12304 ;;
Chris@82 12305 esac
Chris@82 12306 # Using Import Files as archive members, it is possible to support
Chris@82 12307 # filename-based versioning of shared library archives on AIX. While
Chris@82 12308 # this would work for both with and without runtime linking, it will
Chris@82 12309 # prevent static linking of such archives. So we do filename-based
Chris@82 12310 # shared library versioning with .so extension only, which is used
Chris@82 12311 # when both runtime linking and shared linking is enabled.
Chris@82 12312 # Unfortunately, runtime linking may impact performance, so we do
Chris@82 12313 # not want this to be the default eventually. Also, we use the
Chris@82 12314 # versioned .so libs for executables only if there is the -brtl
Chris@82 12315 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
Chris@82 12316 # To allow for filename-based versioning support, we need to create
Chris@82 12317 # libNAME.so.V as an archive file, containing:
Chris@82 12318 # *) an Import File, referring to the versioned filename of the
Chris@82 12319 # archive as well as the shared archive member, telling the
Chris@82 12320 # bitwidth (32 or 64) of that shared object, and providing the
Chris@82 12321 # list of exported symbols of that shared object, eventually
Chris@82 12322 # decorated with the 'weak' keyword
Chris@82 12323 # *) the shared object with the F_LOADONLY flag set, to really avoid
Chris@82 12324 # it being seen by the linker.
Chris@82 12325 # At run time we better use the real file rather than another symlink,
Chris@82 12326 # but for link time we create the symlink libNAME.so -> libNAME.so.V
Chris@82 12327
Chris@82 12328 case $with_aix_soname,$aix_use_runtimelinking in
Chris@82 12329 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
Chris@82 12330 # soname into executable. Probably we can add versioning support to
Chris@82 12331 # collect2, so additional links can be useful in future.
Chris@82 12332 aix,yes) # traditional libtool
Chris@82 12333 dynamic_linker='AIX unversionable lib.so'
Chris@82 12334 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
Chris@82 12335 # instead of lib<name>.a to let people know that these are not
Chris@82 12336 # typical AIX shared libraries.
Chris@82 12337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 12338 ;;
Chris@82 12339 aix,no) # traditional AIX only
Chris@82 12340 dynamic_linker='AIX lib.a(lib.so.V)'
Chris@82 12341 # We preserve .a as extension for shared libraries through AIX4.2
Chris@82 12342 # and later when we are not doing run time linking.
Chris@82 12343 library_names_spec='$libname$release.a $libname.a'
Chris@82 12344 soname_spec='$libname$release$shared_ext$major'
Chris@82 12345 ;;
Chris@82 12346 svr4,*) # full svr4 only
Chris@82 12347 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
Chris@82 12348 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
Chris@82 12349 # We do not specify a path in Import Files, so LIBPATH fires.
Chris@82 12350 shlibpath_overrides_runpath=yes
Chris@82 12351 ;;
Chris@82 12352 *,yes) # both, prefer svr4
Chris@82 12353 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
Chris@82 12354 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
Chris@82 12355 # unpreferred sharedlib libNAME.a needs extra handling
Chris@82 12356 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
Chris@82 12357 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
Chris@82 12358 # We do not specify a path in Import Files, so LIBPATH fires.
Chris@82 12359 shlibpath_overrides_runpath=yes
Chris@82 12360 ;;
Chris@82 12361 *,no) # both, prefer aix
Chris@82 12362 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
Chris@82 12363 library_names_spec='$libname$release.a $libname.a'
Chris@82 12364 soname_spec='$libname$release$shared_ext$major'
Chris@82 12365 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
Chris@82 12366 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
Chris@82 12367 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
Chris@82 12368 ;;
Chris@82 12369 esac
Chris@82 12370 shlibpath_var=LIBPATH
Chris@82 12371 fi
Chris@82 12372 ;;
Chris@82 12373
Chris@82 12374 amigaos*)
Chris@82 12375 case $host_cpu in
Chris@82 12376 powerpc)
Chris@82 12377 # Since July 2007 AmigaOS4 officially supports .so libraries.
Chris@82 12378 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Chris@82 12379 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 12380 ;;
Chris@82 12381 m68k)
Chris@82 12382 library_names_spec='$libname.ixlibrary $libname.a'
Chris@82 12383 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Chris@82 12384 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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@82 12385 ;;
Chris@82 12386 esac
Chris@82 12387 ;;
Chris@82 12388
Chris@82 12389 beos*)
Chris@82 12390 library_names_spec='$libname$shared_ext'
Chris@82 12391 dynamic_linker="$host_os ld.so"
Chris@82 12392 shlibpath_var=LIBRARY_PATH
Chris@82 12393 ;;
Chris@82 12394
Chris@82 12395 bsdi[45]*)
Chris@82 12396 version_type=linux # correct to gnu/linux during the next big refactor
Chris@82 12397 need_version=no
Chris@82 12398 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 12399 soname_spec='$libname$release$shared_ext$major'
Chris@82 12400 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
Chris@82 12401 shlibpath_var=LD_LIBRARY_PATH
Chris@82 12402 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
Chris@82 12403 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
Chris@82 12404 # the default ld.so.conf also contains /usr/contrib/lib and
Chris@82 12405 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
Chris@82 12406 # libtool to hard-code these into programs
Chris@82 12407 ;;
Chris@82 12408
Chris@82 12409 cygwin* | mingw* | pw32* | cegcc*)
Chris@82 12410 version_type=windows
Chris@82 12411 shrext_cmds=.dll
Chris@82 12412 need_version=no
Chris@82 12413 need_lib_prefix=no
Chris@82 12414
Chris@82 12415 case $GCC,$cc_basename in
Chris@82 12416 yes,*)
Chris@82 12417 # gcc
Chris@82 12418 library_names_spec='$libname.dll.a'
Chris@82 12419 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@82 12420 postinstall_cmds='base_file=`basename \$file`~
Chris@82 12421 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Chris@82 12422 dldir=$destdir/`dirname \$dlpath`~
Chris@82 12423 test -d \$dldir || mkdir -p \$dldir~
Chris@82 12424 $install_prog $dir/$dlname \$dldir/$dlname~
Chris@82 12425 chmod a+x \$dldir/$dlname~
Chris@82 12426 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
Chris@82 12427 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
Chris@82 12428 fi'
Chris@82 12429 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@82 12430 dlpath=$dir/\$dldll~
Chris@82 12431 $RM \$dlpath'
Chris@82 12432 shlibpath_overrides_runpath=yes
Chris@82 12433
Chris@82 12434 case $host_os in
Chris@82 12435 cygwin*)
Chris@82 12436 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Chris@82 12437 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Chris@82 12438
Chris@82 12439 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Chris@82 12440 ;;
Chris@82 12441 mingw* | cegcc*)
Chris@82 12442 # MinGW DLLs use traditional 'lib' prefix
Chris@82 12443 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Chris@82 12444 ;;
Chris@82 12445 pw32*)
Chris@82 12446 # pw32 DLLs use 'pw' prefix rather than 'lib'
Chris@82 12447 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Chris@82 12448 ;;
Chris@82 12449 esac
Chris@82 12450 dynamic_linker='Win32 ld.exe'
Chris@82 12451 ;;
Chris@82 12452
Chris@82 12453 *,cl*)
Chris@82 12454 # Native MSVC
Chris@82 12455 libname_spec='$name'
Chris@82 12456 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Chris@82 12457 library_names_spec='$libname.dll.lib'
Chris@82 12458
Chris@82 12459 case $build_os in
Chris@82 12460 mingw*)
Chris@82 12461 sys_lib_search_path_spec=
Chris@82 12462 lt_save_ifs=$IFS
Chris@82 12463 IFS=';'
Chris@82 12464 for lt_path in $LIB
Chris@82 12465 do
Chris@82 12466 IFS=$lt_save_ifs
Chris@82 12467 # Let DOS variable expansion print the short 8.3 style file name.
Chris@82 12468 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
Chris@82 12469 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
Chris@82 12470 done
Chris@82 12471 IFS=$lt_save_ifs
Chris@82 12472 # Convert to MSYS style.
Chris@82 12473 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@82 12474 ;;
Chris@82 12475 cygwin*)
Chris@82 12476 # Convert to unix form, then to dos form, then back to unix form
Chris@82 12477 # but this time dos style (no spaces!) so that the unix form looks
Chris@82 12478 # like /cygdrive/c/PROGRA~1:/cygdr...
Chris@82 12479 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
Chris@82 12480 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
Chris@82 12481 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@82 12482 ;;
Chris@82 12483 *)
Chris@82 12484 sys_lib_search_path_spec=$LIB
Chris@82 12485 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
Chris@82 12486 # It is most probably a Windows format PATH.
Chris@82 12487 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Chris@82 12488 else
Chris@82 12489 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@82 12490 fi
Chris@82 12491 # FIXME: find the short name or the path components, as spaces are
Chris@82 12492 # common. (e.g. "Program Files" -> "PROGRA~1")
Chris@82 12493 ;;
Chris@82 12494 esac
Chris@82 12495
Chris@82 12496 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@82 12497 postinstall_cmds='base_file=`basename \$file`~
Chris@82 12498 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Chris@82 12499 dldir=$destdir/`dirname \$dlpath`~
Chris@82 12500 test -d \$dldir || mkdir -p \$dldir~
Chris@82 12501 $install_prog $dir/$dlname \$dldir/$dlname'
Chris@82 12502 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@82 12503 dlpath=$dir/\$dldll~
Chris@82 12504 $RM \$dlpath'
Chris@82 12505 shlibpath_overrides_runpath=yes
Chris@82 12506 dynamic_linker='Win32 link.exe'
Chris@82 12507 ;;
Chris@82 12508
Chris@82 12509 *)
Chris@82 12510 # Assume MSVC wrapper
Chris@82 12511 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
Chris@82 12512 dynamic_linker='Win32 ld.exe'
Chris@82 12513 ;;
Chris@82 12514 esac
Chris@82 12515 # FIXME: first we should search . and the directory the executable is in
Chris@82 12516 shlibpath_var=PATH
Chris@82 12517 ;;
Chris@82 12518
Chris@82 12519 darwin* | rhapsody*)
Chris@82 12520 dynamic_linker="$host_os dyld"
Chris@82 12521 version_type=darwin
Chris@82 12522 need_lib_prefix=no
Chris@82 12523 need_version=no
Chris@82 12524 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
Chris@82 12525 soname_spec='$libname$release$major$shared_ext'
Chris@82 12526 shlibpath_overrides_runpath=yes
Chris@82 12527 shlibpath_var=DYLD_LIBRARY_PATH
Chris@82 12528 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Chris@82 12529
Chris@82 12530 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
Chris@82 12531 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
Chris@82 12532 ;;
Chris@82 12533
Chris@82 12534 dgux*)
Chris@82 12535 version_type=linux # correct to gnu/linux during the next big refactor
Chris@82 12536 need_lib_prefix=no
Chris@82 12537 need_version=no
Chris@82 12538 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 12539 soname_spec='$libname$release$shared_ext$major'
Chris@82 12540 shlibpath_var=LD_LIBRARY_PATH
Chris@82 12541 ;;
Chris@82 12542
Chris@82 12543 freebsd* | dragonfly*)
Chris@82 12544 # DragonFly does not have aout. When/if they implement a new
Chris@82 12545 # versioning mechanism, adjust this.
Chris@82 12546 if test -x /usr/bin/objformat; then
Chris@82 12547 objformat=`/usr/bin/objformat`
Chris@82 12548 else
Chris@82 12549 case $host_os in
Chris@82 12550 freebsd[23].*) objformat=aout ;;
Chris@82 12551 *) objformat=elf ;;
Chris@82 12552 esac
Chris@82 12553 fi
Chris@82 12554 version_type=freebsd-$objformat
Chris@82 12555 case $version_type in
Chris@82 12556 freebsd-elf*)
Chris@82 12557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 12558 soname_spec='$libname$release$shared_ext$major'
Chris@82 12559 need_version=no
Chris@82 12560 need_lib_prefix=no
Chris@82 12561 ;;
Chris@82 12562 freebsd-*)
Chris@82 12563 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Chris@82 12564 need_version=yes
Chris@82 12565 ;;
Chris@82 12566 esac
Chris@82 12567 shlibpath_var=LD_LIBRARY_PATH
Chris@82 12568 case $host_os in
Chris@82 12569 freebsd2.*)
Chris@82 12570 shlibpath_overrides_runpath=yes
Chris@82 12571 ;;
Chris@82 12572 freebsd3.[01]* | freebsdelf3.[01]*)
Chris@82 12573 shlibpath_overrides_runpath=yes
Chris@82 12574 hardcode_into_libs=yes
Chris@82 12575 ;;
Chris@82 12576 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
Chris@82 12577 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Chris@82 12578 shlibpath_overrides_runpath=no
Chris@82 12579 hardcode_into_libs=yes
Chris@82 12580 ;;
Chris@82 12581 *) # from 4.6 on, and DragonFly
Chris@82 12582 shlibpath_overrides_runpath=yes
Chris@82 12583 hardcode_into_libs=yes
Chris@82 12584 ;;
Chris@82 12585 esac
Chris@82 12586 ;;
Chris@82 12587
Chris@82 12588 haiku*)
Chris@82 12589 version_type=linux # correct to gnu/linux during the next big refactor
Chris@82 12590 need_lib_prefix=no
Chris@82 12591 need_version=no
Chris@82 12592 dynamic_linker="$host_os runtime_loader"
Chris@82 12593 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 12594 soname_spec='$libname$release$shared_ext$major'
Chris@82 12595 shlibpath_var=LIBRARY_PATH
Chris@82 12596 shlibpath_overrides_runpath=no
Chris@82 12597 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Chris@82 12598 hardcode_into_libs=yes
Chris@82 12599 ;;
Chris@82 12600
Chris@82 12601 hpux9* | hpux10* | hpux11*)
Chris@82 12602 # Give a soname corresponding to the major version so that dld.sl refuses to
Chris@82 12603 # link against other versions.
Chris@82 12604 version_type=sunos
Chris@82 12605 need_lib_prefix=no
Chris@82 12606 need_version=no
Chris@82 12607 case $host_cpu in
Chris@82 12608 ia64*)
Chris@82 12609 shrext_cmds='.so'
Chris@82 12610 hardcode_into_libs=yes
Chris@82 12611 dynamic_linker="$host_os dld.so"
Chris@82 12612 shlibpath_var=LD_LIBRARY_PATH
Chris@82 12613 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@82 12614 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 12615 soname_spec='$libname$release$shared_ext$major'
Chris@82 12616 if test 32 = "$HPUX_IA64_MODE"; then
Chris@82 12617 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Chris@82 12618 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
Chris@82 12619 else
Chris@82 12620 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Chris@82 12621 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
Chris@82 12622 fi
Chris@82 12623 ;;
Chris@82 12624 hppa*64*)
Chris@82 12625 shrext_cmds='.sl'
Chris@82 12626 hardcode_into_libs=yes
Chris@82 12627 dynamic_linker="$host_os dld.sl"
Chris@82 12628 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
Chris@82 12629 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@82 12630 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 12631 soname_spec='$libname$release$shared_ext$major'
Chris@82 12632 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
Chris@82 12633 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@82 12634 ;;
Chris@82 12635 *)
Chris@82 12636 shrext_cmds='.sl'
Chris@82 12637 dynamic_linker="$host_os dld.sl"
Chris@82 12638 shlibpath_var=SHLIB_PATH
Chris@82 12639 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Chris@82 12640 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 12641 soname_spec='$libname$release$shared_ext$major'
Chris@82 12642 ;;
Chris@82 12643 esac
Chris@82 12644 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Chris@82 12645 postinstall_cmds='chmod 555 $lib'
Chris@82 12646 # or fails outright, so override atomically:
Chris@82 12647 install_override_mode=555
Chris@82 12648 ;;
Chris@82 12649
Chris@82 12650 interix[3-9]*)
Chris@82 12651 version_type=linux # correct to gnu/linux during the next big refactor
Chris@82 12652 need_lib_prefix=no
Chris@82 12653 need_version=no
Chris@82 12654 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 12655 soname_spec='$libname$release$shared_ext$major'
Chris@82 12656 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
Chris@82 12657 shlibpath_var=LD_LIBRARY_PATH
Chris@82 12658 shlibpath_overrides_runpath=no
Chris@82 12659 hardcode_into_libs=yes
Chris@82 12660 ;;
Chris@82 12661
Chris@82 12662 irix5* | irix6* | nonstopux*)
Chris@82 12663 case $host_os in
Chris@82 12664 nonstopux*) version_type=nonstopux ;;
Chris@82 12665 *)
Chris@82 12666 if test yes = "$lt_cv_prog_gnu_ld"; then
Chris@82 12667 version_type=linux # correct to gnu/linux during the next big refactor
Chris@82 12668 else
Chris@82 12669 version_type=irix
Chris@82 12670 fi ;;
Chris@82 12671 esac
Chris@82 12672 need_lib_prefix=no
Chris@82 12673 need_version=no
Chris@82 12674 soname_spec='$libname$release$shared_ext$major'
Chris@82 12675 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
Chris@82 12676 case $host_os in
Chris@82 12677 irix5* | nonstopux*)
Chris@82 12678 libsuff= shlibsuff=
Chris@82 12679 ;;
Chris@82 12680 *)
Chris@82 12681 case $LD in # libtool.m4 will add one of these switches to LD
Chris@82 12682 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
Chris@82 12683 libsuff= shlibsuff= libmagic=32-bit;;
Chris@82 12684 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
Chris@82 12685 libsuff=32 shlibsuff=N32 libmagic=N32;;
Chris@82 12686 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
Chris@82 12687 libsuff=64 shlibsuff=64 libmagic=64-bit;;
Chris@82 12688 *) libsuff= shlibsuff= libmagic=never-match;;
Chris@82 12689 esac
Chris@82 12690 ;;
Chris@82 12691 esac
Chris@82 12692 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
Chris@82 12693 shlibpath_overrides_runpath=no
Chris@82 12694 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
Chris@82 12695 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
Chris@82 12696 hardcode_into_libs=yes
Chris@82 12697 ;;
Chris@82 12698
Chris@82 12699 # No shared lib support for Linux oldld, aout, or coff.
Chris@82 12700 linux*oldld* | linux*aout* | linux*coff*)
Chris@82 12701 dynamic_linker=no
Chris@82 12702 ;;
Chris@82 12703
Chris@82 12704 linux*android*)
Chris@82 12705 version_type=none # Android doesn't support versioned libraries.
Chris@82 12706 need_lib_prefix=no
Chris@82 12707 need_version=no
Chris@82 12708 library_names_spec='$libname$release$shared_ext'
Chris@82 12709 soname_spec='$libname$release$shared_ext'
Chris@82 12710 finish_cmds=
Chris@82 12711 shlibpath_var=LD_LIBRARY_PATH
Chris@82 12712 shlibpath_overrides_runpath=yes
Chris@82 12713
Chris@82 12714 # This implies no fast_install, which is unacceptable.
Chris@82 12715 # Some rework will be needed to allow for fast_install
Chris@82 12716 # before this can be enabled.
Chris@82 12717 hardcode_into_libs=yes
Chris@82 12718
Chris@82 12719 dynamic_linker='Android linker'
Chris@82 12720 # Don't embed -rpath directories since the linker doesn't support them.
Chris@82 12721 hardcode_libdir_flag_spec='-L$libdir'
Chris@82 12722 ;;
Chris@82 12723
Chris@82 12724 # This must be glibc/ELF.
Chris@82 12725 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Chris@82 12726 version_type=linux # correct to gnu/linux during the next big refactor
Chris@82 12727 need_lib_prefix=no
Chris@82 12728 need_version=no
Chris@82 12729 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 12730 soname_spec='$libname$release$shared_ext$major'
Chris@82 12731 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
Chris@82 12732 shlibpath_var=LD_LIBRARY_PATH
Chris@82 12733 shlibpath_overrides_runpath=no
Chris@82 12734
Chris@82 12735 # Some binutils ld are patched to set DT_RUNPATH
Chris@82 12736 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
Chris@82 12737 $as_echo_n "(cached) " >&6
Chris@82 12738 else
Chris@82 12739 lt_cv_shlibpath_overrides_runpath=no
Chris@82 12740 save_LDFLAGS=$LDFLAGS
Chris@82 12741 save_libdir=$libdir
Chris@82 12742 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
Chris@82 12743 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
Chris@82 12744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 12745 /* end confdefs.h. */
Chris@82 12746
Chris@82 12747 int
Chris@82 12748 main ()
Chris@82 12749 {
Chris@82 12750
Chris@82 12751 ;
Chris@82 12752 return 0;
Chris@82 12753 }
Chris@82 12754 _ACEOF
Chris@82 12755 if ac_fn_c_try_link "$LINENO"; then :
Chris@82 12756 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
Chris@82 12757 lt_cv_shlibpath_overrides_runpath=yes
Chris@82 12758 fi
Chris@82 12759 fi
Chris@82 12760 rm -f core conftest.err conftest.$ac_objext \
Chris@82 12761 conftest$ac_exeext conftest.$ac_ext
Chris@82 12762 LDFLAGS=$save_LDFLAGS
Chris@82 12763 libdir=$save_libdir
Chris@82 12764
Chris@82 12765 fi
Chris@82 12766
Chris@82 12767 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Chris@82 12768
Chris@82 12769 # This implies no fast_install, which is unacceptable.
Chris@82 12770 # Some rework will be needed to allow for fast_install
Chris@82 12771 # before this can be enabled.
Chris@82 12772 hardcode_into_libs=yes
Chris@82 12773
Chris@82 12774 # Ideally, we could use ldconfig to report *all* directores which are
Chris@82 12775 # searched for libraries, however this is still not possible. Aside from not
Chris@82 12776 # being certain /sbin/ldconfig is available, command
Chris@82 12777 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
Chris@82 12778 # even though it is searched at run-time. Try to do the best guess by
Chris@82 12779 # appending ld.so.conf contents (and includes) to the search path.
Chris@82 12780 if test -f /etc/ld.so.conf; then
Chris@82 12781 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@82 12782 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
Chris@82 12783 fi
Chris@82 12784
Chris@82 12785 # We used to test for /lib/ld.so.1 and disable shared libraries on
Chris@82 12786 # powerpc, because MkLinux only supported shared libraries with the
Chris@82 12787 # GNU dynamic linker. Since this was broken with cross compilers,
Chris@82 12788 # most powerpc-linux boxes support dynamic linking these days and
Chris@82 12789 # people can always --disable-shared, the test was removed, and we
Chris@82 12790 # assume the GNU/Linux dynamic linker is in use.
Chris@82 12791 dynamic_linker='GNU/Linux ld.so'
Chris@82 12792 ;;
Chris@82 12793
Chris@82 12794 netbsdelf*-gnu)
Chris@82 12795 version_type=linux
Chris@82 12796 need_lib_prefix=no
Chris@82 12797 need_version=no
Chris@82 12798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@82 12799 soname_spec='${libname}${release}${shared_ext}$major'
Chris@82 12800 shlibpath_var=LD_LIBRARY_PATH
Chris@82 12801 shlibpath_overrides_runpath=no
Chris@82 12802 hardcode_into_libs=yes
Chris@82 12803 dynamic_linker='NetBSD ld.elf_so'
Chris@82 12804 ;;
Chris@82 12805
Chris@82 12806 netbsd*)
Chris@82 12807 version_type=sunos
Chris@82 12808 need_lib_prefix=no
Chris@82 12809 need_version=no
Chris@82 12810 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@82 12811 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Chris@82 12812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@82 12813 dynamic_linker='NetBSD (a.out) ld.so'
Chris@82 12814 else
Chris@82 12815 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 12816 soname_spec='$libname$release$shared_ext$major'
Chris@82 12817 dynamic_linker='NetBSD ld.elf_so'
Chris@82 12818 fi
Chris@82 12819 shlibpath_var=LD_LIBRARY_PATH
Chris@82 12820 shlibpath_overrides_runpath=yes
Chris@82 12821 hardcode_into_libs=yes
Chris@82 12822 ;;
Chris@82 12823
Chris@82 12824 newsos6)
Chris@82 12825 version_type=linux # correct to gnu/linux during the next big refactor
Chris@82 12826 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 12827 shlibpath_var=LD_LIBRARY_PATH
Chris@82 12828 shlibpath_overrides_runpath=yes
Chris@82 12829 ;;
Chris@82 12830
Chris@82 12831 *nto* | *qnx*)
Chris@82 12832 version_type=qnx
Chris@82 12833 need_lib_prefix=no
Chris@82 12834 need_version=no
Chris@82 12835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 12836 soname_spec='$libname$release$shared_ext$major'
Chris@82 12837 shlibpath_var=LD_LIBRARY_PATH
Chris@82 12838 shlibpath_overrides_runpath=no
Chris@82 12839 hardcode_into_libs=yes
Chris@82 12840 dynamic_linker='ldqnx.so'
Chris@82 12841 ;;
Chris@82 12842
Chris@82 12843 openbsd* | bitrig*)
Chris@82 12844 version_type=sunos
Chris@82 12845 sys_lib_dlsearch_path_spec=/usr/lib
Chris@82 12846 need_lib_prefix=no
Chris@82 12847 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Chris@82 12848 need_version=no
Chris@82 12849 else
Chris@82 12850 need_version=yes
Chris@82 12851 fi
Chris@82 12852 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Chris@82 12853 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@82 12854 shlibpath_var=LD_LIBRARY_PATH
Chris@82 12855 shlibpath_overrides_runpath=yes
Chris@82 12856 ;;
Chris@82 12857
Chris@82 12858 os2*)
Chris@82 12859 libname_spec='$name'
Chris@82 12860 version_type=windows
Chris@82 12861 shrext_cmds=.dll
Chris@82 12862 need_version=no
Chris@82 12863 need_lib_prefix=no
Chris@82 12864 # OS/2 can only load a DLL with a base name of 8 characters or less.
Chris@82 12865 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
Chris@82 12866 v=$($ECHO $release$versuffix | tr -d .-);
Chris@82 12867 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
Chris@82 12868 $ECHO $n$v`$shared_ext'
Chris@82 12869 library_names_spec='${libname}_dll.$libext'
Chris@82 12870 dynamic_linker='OS/2 ld.exe'
Chris@82 12871 shlibpath_var=BEGINLIBPATH
Chris@82 12872 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Chris@82 12873 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@82 12874 postinstall_cmds='base_file=`basename \$file`~
Chris@82 12875 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
Chris@82 12876 dldir=$destdir/`dirname \$dlpath`~
Chris@82 12877 test -d \$dldir || mkdir -p \$dldir~
Chris@82 12878 $install_prog $dir/$dlname \$dldir/$dlname~
Chris@82 12879 chmod a+x \$dldir/$dlname~
Chris@82 12880 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
Chris@82 12881 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
Chris@82 12882 fi'
Chris@82 12883 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
Chris@82 12884 dlpath=$dir/\$dldll~
Chris@82 12885 $RM \$dlpath'
Chris@82 12886 ;;
Chris@82 12887
Chris@82 12888 osf3* | osf4* | osf5*)
Chris@82 12889 version_type=osf
Chris@82 12890 need_lib_prefix=no
Chris@82 12891 need_version=no
Chris@82 12892 soname_spec='$libname$release$shared_ext$major'
Chris@82 12893 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 12894 shlibpath_var=LD_LIBRARY_PATH
Chris@82 12895 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Chris@82 12896 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@82 12897 ;;
Chris@82 12898
Chris@82 12899 rdos*)
Chris@82 12900 dynamic_linker=no
Chris@82 12901 ;;
Chris@82 12902
Chris@82 12903 solaris*)
Chris@82 12904 version_type=linux # correct to gnu/linux during the next big refactor
Chris@82 12905 need_lib_prefix=no
Chris@82 12906 need_version=no
Chris@82 12907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 12908 soname_spec='$libname$release$shared_ext$major'
Chris@82 12909 shlibpath_var=LD_LIBRARY_PATH
Chris@82 12910 shlibpath_overrides_runpath=yes
Chris@82 12911 hardcode_into_libs=yes
Chris@82 12912 # ldd complains unless libraries are executable
Chris@82 12913 postinstall_cmds='chmod +x $lib'
Chris@82 12914 ;;
Chris@82 12915
Chris@82 12916 sunos4*)
Chris@82 12917 version_type=sunos
Chris@82 12918 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Chris@82 12919 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
Chris@82 12920 shlibpath_var=LD_LIBRARY_PATH
Chris@82 12921 shlibpath_overrides_runpath=yes
Chris@82 12922 if test yes = "$with_gnu_ld"; then
Chris@82 12923 need_lib_prefix=no
Chris@82 12924 fi
Chris@82 12925 need_version=yes
Chris@82 12926 ;;
Chris@82 12927
Chris@82 12928 sysv4 | sysv4.3*)
Chris@82 12929 version_type=linux # correct to gnu/linux during the next big refactor
Chris@82 12930 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 12931 soname_spec='$libname$release$shared_ext$major'
Chris@82 12932 shlibpath_var=LD_LIBRARY_PATH
Chris@82 12933 case $host_vendor in
Chris@82 12934 sni)
Chris@82 12935 shlibpath_overrides_runpath=no
Chris@82 12936 need_lib_prefix=no
Chris@82 12937 runpath_var=LD_RUN_PATH
Chris@82 12938 ;;
Chris@82 12939 siemens)
Chris@82 12940 need_lib_prefix=no
Chris@82 12941 ;;
Chris@82 12942 motorola)
Chris@82 12943 need_lib_prefix=no
Chris@82 12944 need_version=no
Chris@82 12945 shlibpath_overrides_runpath=no
Chris@82 12946 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
Chris@82 12947 ;;
Chris@82 12948 esac
Chris@82 12949 ;;
Chris@82 12950
Chris@82 12951 sysv4*MP*)
Chris@82 12952 if test -d /usr/nec; then
Chris@82 12953 version_type=linux # correct to gnu/linux during the next big refactor
Chris@82 12954 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
Chris@82 12955 soname_spec='$libname$shared_ext.$major'
Chris@82 12956 shlibpath_var=LD_LIBRARY_PATH
Chris@82 12957 fi
Chris@82 12958 ;;
Chris@82 12959
Chris@82 12960 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Chris@82 12961 version_type=sco
Chris@82 12962 need_lib_prefix=no
Chris@82 12963 need_version=no
Chris@82 12964 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
Chris@82 12965 soname_spec='$libname$release$shared_ext$major'
Chris@82 12966 shlibpath_var=LD_LIBRARY_PATH
Chris@82 12967 shlibpath_overrides_runpath=yes
Chris@82 12968 hardcode_into_libs=yes
Chris@82 12969 if test yes = "$with_gnu_ld"; then
Chris@82 12970 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Chris@82 12971 else
Chris@82 12972 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Chris@82 12973 case $host_os in
Chris@82 12974 sco3.2v5*)
Chris@82 12975 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
Chris@82 12976 ;;
Chris@82 12977 esac
Chris@82 12978 fi
Chris@82 12979 sys_lib_dlsearch_path_spec='/usr/lib'
Chris@82 12980 ;;
Chris@82 12981
Chris@82 12982 tpf*)
Chris@82 12983 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Chris@82 12984 version_type=linux # correct to gnu/linux during the next big refactor
Chris@82 12985 need_lib_prefix=no
Chris@82 12986 need_version=no
Chris@82 12987 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 12988 shlibpath_var=LD_LIBRARY_PATH
Chris@82 12989 shlibpath_overrides_runpath=no
Chris@82 12990 hardcode_into_libs=yes
Chris@82 12991 ;;
Chris@82 12992
Chris@82 12993 uts4*)
Chris@82 12994 version_type=linux # correct to gnu/linux during the next big refactor
Chris@82 12995 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 12996 soname_spec='$libname$release$shared_ext$major'
Chris@82 12997 shlibpath_var=LD_LIBRARY_PATH
Chris@82 12998 ;;
Chris@82 12999
Chris@82 13000 *)
Chris@82 13001 dynamic_linker=no
Chris@82 13002 ;;
Chris@82 13003 esac
Chris@82 13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Chris@82 13005 $as_echo "$dynamic_linker" >&6; }
Chris@82 13006 test no = "$dynamic_linker" && can_build_shared=no
Chris@82 13007
Chris@82 13008 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Chris@82 13009 if test yes = "$GCC"; then
Chris@82 13010 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
Chris@82 13011 fi
Chris@82 13012
Chris@82 13013 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
Chris@82 13014 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
Chris@82 13015 fi
Chris@82 13016
Chris@82 13017 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
Chris@82 13018 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
Chris@82 13019 fi
Chris@82 13020
Chris@82 13021 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
Chris@82 13022 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
Chris@82 13023
Chris@82 13024 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
Chris@82 13025 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
Chris@82 13026
Chris@82 13027 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
Chris@82 13028 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
Chris@82 13029
Chris@82 13030
Chris@82 13031
Chris@82 13032
Chris@82 13033
Chris@82 13034
Chris@82 13035
Chris@82 13036
Chris@82 13037
Chris@82 13038
Chris@82 13039
Chris@82 13040
Chris@82 13041
Chris@82 13042
Chris@82 13043
Chris@82 13044
Chris@82 13045
Chris@82 13046
Chris@82 13047
Chris@82 13048
Chris@82 13049
Chris@82 13050
Chris@82 13051
Chris@82 13052
Chris@82 13053
Chris@82 13054
Chris@82 13055
Chris@82 13056
Chris@82 13057
Chris@82 13058
Chris@82 13059
Chris@82 13060
Chris@82 13061
Chris@82 13062
Chris@82 13063
Chris@82 13064
Chris@82 13065
Chris@82 13066
Chris@82 13067
Chris@82 13068
Chris@82 13069
Chris@82 13070
Chris@82 13071
Chris@82 13072
Chris@82 13073
Chris@82 13074
Chris@82 13075
Chris@82 13076
Chris@82 13077
Chris@82 13078
Chris@82 13079
Chris@82 13080
Chris@82 13081
Chris@82 13082
Chris@82 13083
Chris@82 13084
Chris@82 13085
Chris@82 13086
Chris@82 13087
Chris@82 13088
Chris@82 13089
Chris@82 13090
Chris@82 13091
Chris@82 13092
Chris@82 13093
Chris@82 13094
Chris@82 13095
Chris@82 13096
Chris@82 13097
Chris@82 13098
Chris@82 13099
Chris@82 13100
Chris@82 13101
Chris@82 13102
Chris@82 13103
Chris@82 13104
Chris@82 13105
Chris@82 13106
Chris@82 13107
Chris@82 13108
Chris@82 13109
Chris@82 13110
Chris@82 13111
Chris@82 13112
Chris@82 13113
Chris@82 13114
Chris@82 13115
Chris@82 13116
Chris@82 13117
Chris@82 13118
Chris@82 13119
Chris@82 13120
Chris@82 13121
Chris@82 13122
Chris@82 13123
Chris@82 13124
Chris@82 13125
Chris@82 13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Chris@82 13127 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Chris@82 13128 hardcode_action=
Chris@82 13129 if test -n "$hardcode_libdir_flag_spec" ||
Chris@82 13130 test -n "$runpath_var" ||
Chris@82 13131 test yes = "$hardcode_automatic"; then
Chris@82 13132
Chris@82 13133 # We can hardcode non-existent directories.
Chris@82 13134 if test no != "$hardcode_direct" &&
Chris@82 13135 # If the only mechanism to avoid hardcoding is shlibpath_var, we
Chris@82 13136 # have to relink, otherwise we might link with an installed library
Chris@82 13137 # when we should be linking with a yet-to-be-installed one
Chris@82 13138 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
Chris@82 13139 test no != "$hardcode_minus_L"; then
Chris@82 13140 # Linking always hardcodes the temporary library directory.
Chris@82 13141 hardcode_action=relink
Chris@82 13142 else
Chris@82 13143 # We can link without hardcoding, and we can hardcode nonexisting dirs.
Chris@82 13144 hardcode_action=immediate
Chris@82 13145 fi
Chris@82 13146 else
Chris@82 13147 # We cannot hardcode anything, or else we can only hardcode existing
Chris@82 13148 # directories.
Chris@82 13149 hardcode_action=unsupported
Chris@82 13150 fi
Chris@82 13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
Chris@82 13152 $as_echo "$hardcode_action" >&6; }
Chris@82 13153
Chris@82 13154 if test relink = "$hardcode_action" ||
Chris@82 13155 test yes = "$inherit_rpath"; then
Chris@82 13156 # Fast installation is not supported
Chris@82 13157 enable_fast_install=no
Chris@82 13158 elif test yes = "$shlibpath_overrides_runpath" ||
Chris@82 13159 test no = "$enable_shared"; then
Chris@82 13160 # Fast installation is not necessary
Chris@82 13161 enable_fast_install=needless
Chris@82 13162 fi
Chris@82 13163
Chris@82 13164
Chris@82 13165
Chris@82 13166
Chris@82 13167
Chris@82 13168
Chris@82 13169 if test yes != "$enable_dlopen"; then
Chris@82 13170 enable_dlopen=unknown
Chris@82 13171 enable_dlopen_self=unknown
Chris@82 13172 enable_dlopen_self_static=unknown
Chris@82 13173 else
Chris@82 13174 lt_cv_dlopen=no
Chris@82 13175 lt_cv_dlopen_libs=
Chris@82 13176
Chris@82 13177 case $host_os in
Chris@82 13178 beos*)
Chris@82 13179 lt_cv_dlopen=load_add_on
Chris@82 13180 lt_cv_dlopen_libs=
Chris@82 13181 lt_cv_dlopen_self=yes
Chris@82 13182 ;;
Chris@82 13183
Chris@82 13184 mingw* | pw32* | cegcc*)
Chris@82 13185 lt_cv_dlopen=LoadLibrary
Chris@82 13186 lt_cv_dlopen_libs=
Chris@82 13187 ;;
Chris@82 13188
Chris@82 13189 cygwin*)
Chris@82 13190 lt_cv_dlopen=dlopen
Chris@82 13191 lt_cv_dlopen_libs=
Chris@82 13192 ;;
Chris@82 13193
Chris@82 13194 darwin*)
Chris@82 13195 # if libdl is installed we need to link against it
Chris@82 13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Chris@82 13197 $as_echo_n "checking for dlopen in -ldl... " >&6; }
Chris@82 13198 if ${ac_cv_lib_dl_dlopen+:} false; then :
Chris@82 13199 $as_echo_n "(cached) " >&6
Chris@82 13200 else
Chris@82 13201 ac_check_lib_save_LIBS=$LIBS
Chris@82 13202 LIBS="-ldl $LIBS"
Chris@82 13203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 13204 /* end confdefs.h. */
Chris@82 13205
Chris@82 13206 /* Override any GCC internal prototype to avoid an error.
Chris@82 13207 Use char because int might match the return type of a GCC
Chris@82 13208 builtin and then its argument prototype would still apply. */
Chris@82 13209 #ifdef __cplusplus
Chris@82 13210 extern "C"
Chris@82 13211 #endif
Chris@82 13212 char dlopen ();
Chris@82 13213 int
Chris@82 13214 main ()
Chris@82 13215 {
Chris@82 13216 return dlopen ();
Chris@82 13217 ;
Chris@82 13218 return 0;
Chris@82 13219 }
Chris@82 13220 _ACEOF
Chris@82 13221 if ac_fn_c_try_link "$LINENO"; then :
Chris@82 13222 ac_cv_lib_dl_dlopen=yes
Chris@82 13223 else
Chris@82 13224 ac_cv_lib_dl_dlopen=no
Chris@82 13225 fi
Chris@82 13226 rm -f core conftest.err conftest.$ac_objext \
Chris@82 13227 conftest$ac_exeext conftest.$ac_ext
Chris@82 13228 LIBS=$ac_check_lib_save_LIBS
Chris@82 13229 fi
Chris@82 13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Chris@82 13231 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Chris@82 13232 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Chris@82 13233 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
Chris@82 13234 else
Chris@82 13235
Chris@82 13236 lt_cv_dlopen=dyld
Chris@82 13237 lt_cv_dlopen_libs=
Chris@82 13238 lt_cv_dlopen_self=yes
Chris@82 13239
Chris@82 13240 fi
Chris@82 13241
Chris@82 13242 ;;
Chris@82 13243
Chris@82 13244 tpf*)
Chris@82 13245 # Don't try to run any link tests for TPF. We know it's impossible
Chris@82 13246 # because TPF is a cross-compiler, and we know how we open DSOs.
Chris@82 13247 lt_cv_dlopen=dlopen
Chris@82 13248 lt_cv_dlopen_libs=
Chris@82 13249 lt_cv_dlopen_self=no
Chris@82 13250 ;;
Chris@82 13251
Chris@82 13252 *)
Chris@82 13253 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
Chris@82 13254 if test "x$ac_cv_func_shl_load" = xyes; then :
Chris@82 13255 lt_cv_dlopen=shl_load
Chris@82 13256 else
Chris@82 13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
Chris@82 13258 $as_echo_n "checking for shl_load in -ldld... " >&6; }
Chris@82 13259 if ${ac_cv_lib_dld_shl_load+:} false; then :
Chris@82 13260 $as_echo_n "(cached) " >&6
Chris@82 13261 else
Chris@82 13262 ac_check_lib_save_LIBS=$LIBS
Chris@82 13263 LIBS="-ldld $LIBS"
Chris@82 13264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 13265 /* end confdefs.h. */
Chris@82 13266
Chris@82 13267 /* Override any GCC internal prototype to avoid an error.
Chris@82 13268 Use char because int might match the return type of a GCC
Chris@82 13269 builtin and then its argument prototype would still apply. */
Chris@82 13270 #ifdef __cplusplus
Chris@82 13271 extern "C"
Chris@82 13272 #endif
Chris@82 13273 char shl_load ();
Chris@82 13274 int
Chris@82 13275 main ()
Chris@82 13276 {
Chris@82 13277 return shl_load ();
Chris@82 13278 ;
Chris@82 13279 return 0;
Chris@82 13280 }
Chris@82 13281 _ACEOF
Chris@82 13282 if ac_fn_c_try_link "$LINENO"; then :
Chris@82 13283 ac_cv_lib_dld_shl_load=yes
Chris@82 13284 else
Chris@82 13285 ac_cv_lib_dld_shl_load=no
Chris@82 13286 fi
Chris@82 13287 rm -f core conftest.err conftest.$ac_objext \
Chris@82 13288 conftest$ac_exeext conftest.$ac_ext
Chris@82 13289 LIBS=$ac_check_lib_save_LIBS
Chris@82 13290 fi
Chris@82 13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
Chris@82 13292 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Chris@82 13293 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Chris@82 13294 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
Chris@82 13295 else
Chris@82 13296 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
Chris@82 13297 if test "x$ac_cv_func_dlopen" = xyes; then :
Chris@82 13298 lt_cv_dlopen=dlopen
Chris@82 13299 else
Chris@82 13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Chris@82 13301 $as_echo_n "checking for dlopen in -ldl... " >&6; }
Chris@82 13302 if ${ac_cv_lib_dl_dlopen+:} false; then :
Chris@82 13303 $as_echo_n "(cached) " >&6
Chris@82 13304 else
Chris@82 13305 ac_check_lib_save_LIBS=$LIBS
Chris@82 13306 LIBS="-ldl $LIBS"
Chris@82 13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 13308 /* end confdefs.h. */
Chris@82 13309
Chris@82 13310 /* Override any GCC internal prototype to avoid an error.
Chris@82 13311 Use char because int might match the return type of a GCC
Chris@82 13312 builtin and then its argument prototype would still apply. */
Chris@82 13313 #ifdef __cplusplus
Chris@82 13314 extern "C"
Chris@82 13315 #endif
Chris@82 13316 char dlopen ();
Chris@82 13317 int
Chris@82 13318 main ()
Chris@82 13319 {
Chris@82 13320 return dlopen ();
Chris@82 13321 ;
Chris@82 13322 return 0;
Chris@82 13323 }
Chris@82 13324 _ACEOF
Chris@82 13325 if ac_fn_c_try_link "$LINENO"; then :
Chris@82 13326 ac_cv_lib_dl_dlopen=yes
Chris@82 13327 else
Chris@82 13328 ac_cv_lib_dl_dlopen=no
Chris@82 13329 fi
Chris@82 13330 rm -f core conftest.err conftest.$ac_objext \
Chris@82 13331 conftest$ac_exeext conftest.$ac_ext
Chris@82 13332 LIBS=$ac_check_lib_save_LIBS
Chris@82 13333 fi
Chris@82 13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Chris@82 13335 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Chris@82 13336 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Chris@82 13337 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
Chris@82 13338 else
Chris@82 13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
Chris@82 13340 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
Chris@82 13341 if ${ac_cv_lib_svld_dlopen+:} false; then :
Chris@82 13342 $as_echo_n "(cached) " >&6
Chris@82 13343 else
Chris@82 13344 ac_check_lib_save_LIBS=$LIBS
Chris@82 13345 LIBS="-lsvld $LIBS"
Chris@82 13346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 13347 /* end confdefs.h. */
Chris@82 13348
Chris@82 13349 /* Override any GCC internal prototype to avoid an error.
Chris@82 13350 Use char because int might match the return type of a GCC
Chris@82 13351 builtin and then its argument prototype would still apply. */
Chris@82 13352 #ifdef __cplusplus
Chris@82 13353 extern "C"
Chris@82 13354 #endif
Chris@82 13355 char dlopen ();
Chris@82 13356 int
Chris@82 13357 main ()
Chris@82 13358 {
Chris@82 13359 return dlopen ();
Chris@82 13360 ;
Chris@82 13361 return 0;
Chris@82 13362 }
Chris@82 13363 _ACEOF
Chris@82 13364 if ac_fn_c_try_link "$LINENO"; then :
Chris@82 13365 ac_cv_lib_svld_dlopen=yes
Chris@82 13366 else
Chris@82 13367 ac_cv_lib_svld_dlopen=no
Chris@82 13368 fi
Chris@82 13369 rm -f core conftest.err conftest.$ac_objext \
Chris@82 13370 conftest$ac_exeext conftest.$ac_ext
Chris@82 13371 LIBS=$ac_check_lib_save_LIBS
Chris@82 13372 fi
Chris@82 13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
Chris@82 13374 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Chris@82 13375 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Chris@82 13376 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
Chris@82 13377 else
Chris@82 13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
Chris@82 13379 $as_echo_n "checking for dld_link in -ldld... " >&6; }
Chris@82 13380 if ${ac_cv_lib_dld_dld_link+:} false; then :
Chris@82 13381 $as_echo_n "(cached) " >&6
Chris@82 13382 else
Chris@82 13383 ac_check_lib_save_LIBS=$LIBS
Chris@82 13384 LIBS="-ldld $LIBS"
Chris@82 13385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 13386 /* end confdefs.h. */
Chris@82 13387
Chris@82 13388 /* Override any GCC internal prototype to avoid an error.
Chris@82 13389 Use char because int might match the return type of a GCC
Chris@82 13390 builtin and then its argument prototype would still apply. */
Chris@82 13391 #ifdef __cplusplus
Chris@82 13392 extern "C"
Chris@82 13393 #endif
Chris@82 13394 char dld_link ();
Chris@82 13395 int
Chris@82 13396 main ()
Chris@82 13397 {
Chris@82 13398 return dld_link ();
Chris@82 13399 ;
Chris@82 13400 return 0;
Chris@82 13401 }
Chris@82 13402 _ACEOF
Chris@82 13403 if ac_fn_c_try_link "$LINENO"; then :
Chris@82 13404 ac_cv_lib_dld_dld_link=yes
Chris@82 13405 else
Chris@82 13406 ac_cv_lib_dld_dld_link=no
Chris@82 13407 fi
Chris@82 13408 rm -f core conftest.err conftest.$ac_objext \
Chris@82 13409 conftest$ac_exeext conftest.$ac_ext
Chris@82 13410 LIBS=$ac_check_lib_save_LIBS
Chris@82 13411 fi
Chris@82 13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
Chris@82 13413 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Chris@82 13414 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Chris@82 13415 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
Chris@82 13416 fi
Chris@82 13417
Chris@82 13418
Chris@82 13419 fi
Chris@82 13420
Chris@82 13421
Chris@82 13422 fi
Chris@82 13423
Chris@82 13424
Chris@82 13425 fi
Chris@82 13426
Chris@82 13427
Chris@82 13428 fi
Chris@82 13429
Chris@82 13430
Chris@82 13431 fi
Chris@82 13432
Chris@82 13433 ;;
Chris@82 13434 esac
Chris@82 13435
Chris@82 13436 if test no = "$lt_cv_dlopen"; then
Chris@82 13437 enable_dlopen=no
Chris@82 13438 else
Chris@82 13439 enable_dlopen=yes
Chris@82 13440 fi
Chris@82 13441
Chris@82 13442 case $lt_cv_dlopen in
Chris@82 13443 dlopen)
Chris@82 13444 save_CPPFLAGS=$CPPFLAGS
Chris@82 13445 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Chris@82 13446
Chris@82 13447 save_LDFLAGS=$LDFLAGS
Chris@82 13448 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Chris@82 13449
Chris@82 13450 save_LIBS=$LIBS
Chris@82 13451 LIBS="$lt_cv_dlopen_libs $LIBS"
Chris@82 13452
Chris@82 13453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
Chris@82 13454 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
Chris@82 13455 if ${lt_cv_dlopen_self+:} false; then :
Chris@82 13456 $as_echo_n "(cached) " >&6
Chris@82 13457 else
Chris@82 13458 if test yes = "$cross_compiling"; then :
Chris@82 13459 lt_cv_dlopen_self=cross
Chris@82 13460 else
Chris@82 13461 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Chris@82 13462 lt_status=$lt_dlunknown
Chris@82 13463 cat > conftest.$ac_ext <<_LT_EOF
Chris@82 13464 #line $LINENO "configure"
Chris@82 13465 #include "confdefs.h"
Chris@82 13466
Chris@82 13467 #if HAVE_DLFCN_H
Chris@82 13468 #include <dlfcn.h>
Chris@82 13469 #endif
Chris@82 13470
Chris@82 13471 #include <stdio.h>
Chris@82 13472
Chris@82 13473 #ifdef RTLD_GLOBAL
Chris@82 13474 # define LT_DLGLOBAL RTLD_GLOBAL
Chris@82 13475 #else
Chris@82 13476 # ifdef DL_GLOBAL
Chris@82 13477 # define LT_DLGLOBAL DL_GLOBAL
Chris@82 13478 # else
Chris@82 13479 # define LT_DLGLOBAL 0
Chris@82 13480 # endif
Chris@82 13481 #endif
Chris@82 13482
Chris@82 13483 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Chris@82 13484 find out it does not work in some platform. */
Chris@82 13485 #ifndef LT_DLLAZY_OR_NOW
Chris@82 13486 # ifdef RTLD_LAZY
Chris@82 13487 # define LT_DLLAZY_OR_NOW RTLD_LAZY
Chris@82 13488 # else
Chris@82 13489 # ifdef DL_LAZY
Chris@82 13490 # define LT_DLLAZY_OR_NOW DL_LAZY
Chris@82 13491 # else
Chris@82 13492 # ifdef RTLD_NOW
Chris@82 13493 # define LT_DLLAZY_OR_NOW RTLD_NOW
Chris@82 13494 # else
Chris@82 13495 # ifdef DL_NOW
Chris@82 13496 # define LT_DLLAZY_OR_NOW DL_NOW
Chris@82 13497 # else
Chris@82 13498 # define LT_DLLAZY_OR_NOW 0
Chris@82 13499 # endif
Chris@82 13500 # endif
Chris@82 13501 # endif
Chris@82 13502 # endif
Chris@82 13503 #endif
Chris@82 13504
Chris@82 13505 /* When -fvisibility=hidden is used, assume the code has been annotated
Chris@82 13506 correspondingly for the symbols needed. */
Chris@82 13507 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Chris@82 13508 int fnord () __attribute__((visibility("default")));
Chris@82 13509 #endif
Chris@82 13510
Chris@82 13511 int fnord () { return 42; }
Chris@82 13512 int main ()
Chris@82 13513 {
Chris@82 13514 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Chris@82 13515 int status = $lt_dlunknown;
Chris@82 13516
Chris@82 13517 if (self)
Chris@82 13518 {
Chris@82 13519 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Chris@82 13520 else
Chris@82 13521 {
Chris@82 13522 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Chris@82 13523 else puts (dlerror ());
Chris@82 13524 }
Chris@82 13525 /* dlclose (self); */
Chris@82 13526 }
Chris@82 13527 else
Chris@82 13528 puts (dlerror ());
Chris@82 13529
Chris@82 13530 return status;
Chris@82 13531 }
Chris@82 13532 _LT_EOF
Chris@82 13533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Chris@82 13534 (eval $ac_link) 2>&5
Chris@82 13535 ac_status=$?
Chris@82 13536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@82 13537 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
Chris@82 13538 (./conftest; exit; ) >&5 2>/dev/null
Chris@82 13539 lt_status=$?
Chris@82 13540 case x$lt_status in
Chris@82 13541 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
Chris@82 13542 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Chris@82 13543 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
Chris@82 13544 esac
Chris@82 13545 else :
Chris@82 13546 # compilation failed
Chris@82 13547 lt_cv_dlopen_self=no
Chris@82 13548 fi
Chris@82 13549 fi
Chris@82 13550 rm -fr conftest*
Chris@82 13551
Chris@82 13552
Chris@82 13553 fi
Chris@82 13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
Chris@82 13555 $as_echo "$lt_cv_dlopen_self" >&6; }
Chris@82 13556
Chris@82 13557 if test yes = "$lt_cv_dlopen_self"; then
Chris@82 13558 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Chris@82 13559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
Chris@82 13560 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Chris@82 13561 if ${lt_cv_dlopen_self_static+:} false; then :
Chris@82 13562 $as_echo_n "(cached) " >&6
Chris@82 13563 else
Chris@82 13564 if test yes = "$cross_compiling"; then :
Chris@82 13565 lt_cv_dlopen_self_static=cross
Chris@82 13566 else
Chris@82 13567 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Chris@82 13568 lt_status=$lt_dlunknown
Chris@82 13569 cat > conftest.$ac_ext <<_LT_EOF
Chris@82 13570 #line $LINENO "configure"
Chris@82 13571 #include "confdefs.h"
Chris@82 13572
Chris@82 13573 #if HAVE_DLFCN_H
Chris@82 13574 #include <dlfcn.h>
Chris@82 13575 #endif
Chris@82 13576
Chris@82 13577 #include <stdio.h>
Chris@82 13578
Chris@82 13579 #ifdef RTLD_GLOBAL
Chris@82 13580 # define LT_DLGLOBAL RTLD_GLOBAL
Chris@82 13581 #else
Chris@82 13582 # ifdef DL_GLOBAL
Chris@82 13583 # define LT_DLGLOBAL DL_GLOBAL
Chris@82 13584 # else
Chris@82 13585 # define LT_DLGLOBAL 0
Chris@82 13586 # endif
Chris@82 13587 #endif
Chris@82 13588
Chris@82 13589 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Chris@82 13590 find out it does not work in some platform. */
Chris@82 13591 #ifndef LT_DLLAZY_OR_NOW
Chris@82 13592 # ifdef RTLD_LAZY
Chris@82 13593 # define LT_DLLAZY_OR_NOW RTLD_LAZY
Chris@82 13594 # else
Chris@82 13595 # ifdef DL_LAZY
Chris@82 13596 # define LT_DLLAZY_OR_NOW DL_LAZY
Chris@82 13597 # else
Chris@82 13598 # ifdef RTLD_NOW
Chris@82 13599 # define LT_DLLAZY_OR_NOW RTLD_NOW
Chris@82 13600 # else
Chris@82 13601 # ifdef DL_NOW
Chris@82 13602 # define LT_DLLAZY_OR_NOW DL_NOW
Chris@82 13603 # else
Chris@82 13604 # define LT_DLLAZY_OR_NOW 0
Chris@82 13605 # endif
Chris@82 13606 # endif
Chris@82 13607 # endif
Chris@82 13608 # endif
Chris@82 13609 #endif
Chris@82 13610
Chris@82 13611 /* When -fvisibility=hidden is used, assume the code has been annotated
Chris@82 13612 correspondingly for the symbols needed. */
Chris@82 13613 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Chris@82 13614 int fnord () __attribute__((visibility("default")));
Chris@82 13615 #endif
Chris@82 13616
Chris@82 13617 int fnord () { return 42; }
Chris@82 13618 int main ()
Chris@82 13619 {
Chris@82 13620 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Chris@82 13621 int status = $lt_dlunknown;
Chris@82 13622
Chris@82 13623 if (self)
Chris@82 13624 {
Chris@82 13625 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Chris@82 13626 else
Chris@82 13627 {
Chris@82 13628 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Chris@82 13629 else puts (dlerror ());
Chris@82 13630 }
Chris@82 13631 /* dlclose (self); */
Chris@82 13632 }
Chris@82 13633 else
Chris@82 13634 puts (dlerror ());
Chris@82 13635
Chris@82 13636 return status;
Chris@82 13637 }
Chris@82 13638 _LT_EOF
Chris@82 13639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Chris@82 13640 (eval $ac_link) 2>&5
Chris@82 13641 ac_status=$?
Chris@82 13642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@82 13643 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
Chris@82 13644 (./conftest; exit; ) >&5 2>/dev/null
Chris@82 13645 lt_status=$?
Chris@82 13646 case x$lt_status in
Chris@82 13647 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
Chris@82 13648 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Chris@82 13649 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
Chris@82 13650 esac
Chris@82 13651 else :
Chris@82 13652 # compilation failed
Chris@82 13653 lt_cv_dlopen_self_static=no
Chris@82 13654 fi
Chris@82 13655 fi
Chris@82 13656 rm -fr conftest*
Chris@82 13657
Chris@82 13658
Chris@82 13659 fi
Chris@82 13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
Chris@82 13661 $as_echo "$lt_cv_dlopen_self_static" >&6; }
Chris@82 13662 fi
Chris@82 13663
Chris@82 13664 CPPFLAGS=$save_CPPFLAGS
Chris@82 13665 LDFLAGS=$save_LDFLAGS
Chris@82 13666 LIBS=$save_LIBS
Chris@82 13667 ;;
Chris@82 13668 esac
Chris@82 13669
Chris@82 13670 case $lt_cv_dlopen_self in
Chris@82 13671 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
Chris@82 13672 *) enable_dlopen_self=unknown ;;
Chris@82 13673 esac
Chris@82 13674
Chris@82 13675 case $lt_cv_dlopen_self_static in
Chris@82 13676 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
Chris@82 13677 *) enable_dlopen_self_static=unknown ;;
Chris@82 13678 esac
Chris@82 13679 fi
Chris@82 13680
Chris@82 13681
Chris@82 13682
Chris@82 13683
Chris@82 13684
Chris@82 13685
Chris@82 13686
Chris@82 13687
Chris@82 13688
Chris@82 13689
Chris@82 13690
Chris@82 13691
Chris@82 13692
Chris@82 13693
Chris@82 13694
Chris@82 13695
Chris@82 13696
Chris@82 13697 striplib=
Chris@82 13698 old_striplib=
Chris@82 13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
Chris@82 13700 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
Chris@82 13701 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
Chris@82 13702 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
Chris@82 13703 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Chris@82 13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@82 13705 $as_echo "yes" >&6; }
Chris@82 13706 else
Chris@82 13707 # FIXME - insert some real tests, host_os isn't really good enough
Chris@82 13708 case $host_os in
Chris@82 13709 darwin*)
Chris@82 13710 if test -n "$STRIP"; then
Chris@82 13711 striplib="$STRIP -x"
Chris@82 13712 old_striplib="$STRIP -S"
Chris@82 13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@82 13714 $as_echo "yes" >&6; }
Chris@82 13715 else
Chris@82 13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 13717 $as_echo "no" >&6; }
Chris@82 13718 fi
Chris@82 13719 ;;
Chris@82 13720 *)
Chris@82 13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 13722 $as_echo "no" >&6; }
Chris@82 13723 ;;
Chris@82 13724 esac
Chris@82 13725 fi
Chris@82 13726
Chris@82 13727
Chris@82 13728
Chris@82 13729
Chris@82 13730
Chris@82 13731
Chris@82 13732
Chris@82 13733
Chris@82 13734
Chris@82 13735
Chris@82 13736
Chris@82 13737
Chris@82 13738 # Report what library types will actually be built
Chris@82 13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
Chris@82 13740 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
Chris@82 13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
Chris@82 13742 $as_echo "$can_build_shared" >&6; }
Chris@82 13743
Chris@82 13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
Chris@82 13745 $as_echo_n "checking whether to build shared libraries... " >&6; }
Chris@82 13746 test no = "$can_build_shared" && enable_shared=no
Chris@82 13747
Chris@82 13748 # On AIX, shared libraries and static libraries use the same namespace, and
Chris@82 13749 # are all built from PIC.
Chris@82 13750 case $host_os in
Chris@82 13751 aix3*)
Chris@82 13752 test yes = "$enable_shared" && enable_static=no
Chris@82 13753 if test -n "$RANLIB"; then
Chris@82 13754 archive_cmds="$archive_cmds~\$RANLIB \$lib"
Chris@82 13755 postinstall_cmds='$RANLIB $lib'
Chris@82 13756 fi
Chris@82 13757 ;;
Chris@82 13758
Chris@82 13759 aix[4-9]*)
Chris@82 13760 if test ia64 != "$host_cpu"; then
Chris@82 13761 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
Chris@82 13762 yes,aix,yes) ;; # shared object as lib.so file only
Chris@82 13763 yes,svr4,*) ;; # shared object as lib.so archive member only
Chris@82 13764 yes,*) enable_static=no ;; # shared object in lib.a archive as well
Chris@82 13765 esac
Chris@82 13766 fi
Chris@82 13767 ;;
Chris@82 13768 esac
Chris@82 13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
Chris@82 13770 $as_echo "$enable_shared" >&6; }
Chris@82 13771
Chris@82 13772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
Chris@82 13773 $as_echo_n "checking whether to build static libraries... " >&6; }
Chris@82 13774 # Make sure either enable_shared or enable_static is yes.
Chris@82 13775 test yes = "$enable_shared" || enable_static=yes
Chris@82 13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
Chris@82 13777 $as_echo "$enable_static" >&6; }
Chris@82 13778
Chris@82 13779
Chris@82 13780
Chris@82 13781
Chris@82 13782 fi
Chris@82 13783 ac_ext=c
Chris@82 13784 ac_cpp='$CPP $CPPFLAGS'
Chris@82 13785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@82 13786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 13787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@82 13788
Chris@82 13789 CC=$lt_save_CC
Chris@82 13790
Chris@82 13791
Chris@82 13792
Chris@82 13793
Chris@82 13794
Chris@82 13795
Chris@82 13796
Chris@82 13797
Chris@82 13798
Chris@82 13799
Chris@82 13800
Chris@82 13801
Chris@82 13802
Chris@82 13803
Chris@82 13804
Chris@82 13805 ac_config_commands="$ac_config_commands libtool"
Chris@82 13806
Chris@82 13807
Chris@82 13808
Chris@82 13809
Chris@82 13810 # Only expand once:
Chris@82 13811
Chris@82 13812
Chris@82 13813 if test -n "$ac_tool_prefix"; then
Chris@82 13814 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
Chris@82 13815 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Chris@82 13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 13817 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 13818 if ${ac_cv_prog_RANLIB+:} false; then :
Chris@82 13819 $as_echo_n "(cached) " >&6
Chris@82 13820 else
Chris@82 13821 if test -n "$RANLIB"; then
Chris@82 13822 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
Chris@82 13823 else
Chris@82 13824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 13825 for as_dir in $PATH
Chris@82 13826 do
Chris@82 13827 IFS=$as_save_IFS
Chris@82 13828 test -z "$as_dir" && as_dir=.
Chris@82 13829 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 13830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 13831 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Chris@82 13832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 13833 break 2
Chris@82 13834 fi
Chris@82 13835 done
Chris@82 13836 done
Chris@82 13837 IFS=$as_save_IFS
Chris@82 13838
Chris@82 13839 fi
Chris@82 13840 fi
Chris@82 13841 RANLIB=$ac_cv_prog_RANLIB
Chris@82 13842 if test -n "$RANLIB"; then
Chris@82 13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Chris@82 13844 $as_echo "$RANLIB" >&6; }
Chris@82 13845 else
Chris@82 13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 13847 $as_echo "no" >&6; }
Chris@82 13848 fi
Chris@82 13849
Chris@82 13850
Chris@82 13851 fi
Chris@82 13852 if test -z "$ac_cv_prog_RANLIB"; then
Chris@82 13853 ac_ct_RANLIB=$RANLIB
Chris@82 13854 # Extract the first word of "ranlib", so it can be a program name with args.
Chris@82 13855 set dummy ranlib; ac_word=$2
Chris@82 13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 13857 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 13858 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Chris@82 13859 $as_echo_n "(cached) " >&6
Chris@82 13860 else
Chris@82 13861 if test -n "$ac_ct_RANLIB"; then
Chris@82 13862 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Chris@82 13863 else
Chris@82 13864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 13865 for as_dir in $PATH
Chris@82 13866 do
Chris@82 13867 IFS=$as_save_IFS
Chris@82 13868 test -z "$as_dir" && as_dir=.
Chris@82 13869 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 13870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 13871 ac_cv_prog_ac_ct_RANLIB="ranlib"
Chris@82 13872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 13873 break 2
Chris@82 13874 fi
Chris@82 13875 done
Chris@82 13876 done
Chris@82 13877 IFS=$as_save_IFS
Chris@82 13878
Chris@82 13879 fi
Chris@82 13880 fi
Chris@82 13881 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
Chris@82 13882 if test -n "$ac_ct_RANLIB"; then
Chris@82 13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Chris@82 13884 $as_echo "$ac_ct_RANLIB" >&6; }
Chris@82 13885 else
Chris@82 13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 13887 $as_echo "no" >&6; }
Chris@82 13888 fi
Chris@82 13889
Chris@82 13890 if test "x$ac_ct_RANLIB" = x; then
Chris@82 13891 RANLIB=":"
Chris@82 13892 else
Chris@82 13893 case $cross_compiling:$ac_tool_warned in
Chris@82 13894 yes:)
Chris@82 13895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@82 13896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@82 13897 ac_tool_warned=yes ;;
Chris@82 13898 esac
Chris@82 13899 RANLIB=$ac_ct_RANLIB
Chris@82 13900 fi
Chris@82 13901 else
Chris@82 13902 RANLIB="$ac_cv_prog_RANLIB"
Chris@82 13903 fi
Chris@82 13904
Chris@82 13905
Chris@82 13906 # Extract the first word of "ocamlbuild", so it can be a program name with args.
Chris@82 13907 set dummy ocamlbuild; ac_word=$2
Chris@82 13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 13909 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 13910 if ${ac_cv_prog_OCAMLBUILD+:} false; then :
Chris@82 13911 $as_echo_n "(cached) " >&6
Chris@82 13912 else
Chris@82 13913 if test -n "$OCAMLBUILD"; then
Chris@82 13914 ac_cv_prog_OCAMLBUILD="$OCAMLBUILD" # Let the user override the test.
Chris@82 13915 else
Chris@82 13916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 13917 for as_dir in $PATH
Chris@82 13918 do
Chris@82 13919 IFS=$as_save_IFS
Chris@82 13920 test -z "$as_dir" && as_dir=.
Chris@82 13921 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 13922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 13923 ac_cv_prog_OCAMLBUILD="ocamlbuild"
Chris@82 13924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 13925 break 2
Chris@82 13926 fi
Chris@82 13927 done
Chris@82 13928 done
Chris@82 13929 IFS=$as_save_IFS
Chris@82 13930
Chris@82 13931 fi
Chris@82 13932 fi
Chris@82 13933 OCAMLBUILD=$ac_cv_prog_OCAMLBUILD
Chris@82 13934 if test -n "$OCAMLBUILD"; then
Chris@82 13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLBUILD" >&5
Chris@82 13936 $as_echo "$OCAMLBUILD" >&6; }
Chris@82 13937 else
Chris@82 13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 13939 $as_echo "no" >&6; }
Chris@82 13940 fi
Chris@82 13941
Chris@82 13942
Chris@82 13943
Chris@82 13944
Chris@82 13945 # Check whether --enable-mpi was given.
Chris@82 13946 if test "${enable_mpi+set}" = set; then :
Chris@82 13947 enableval=$enable_mpi; enable_mpi=$enableval
Chris@82 13948 else
Chris@82 13949 enable_mpi=no
Chris@82 13950 fi
Chris@82 13951
Chris@82 13952
Chris@82 13953 if test "$enable_mpi" = "yes"; then
Chris@82 13954 if test $PRECISION = q; then
Chris@82 13955 as_fn_error $? "quad precision is not supported in MPI" "$LINENO" 5
Chris@82 13956 fi
Chris@82 13957
Chris@82 13958
Chris@82 13959
Chris@82 13960
Chris@82 13961
Chris@82 13962 for ac_prog in mpicc hcc mpcc mpcc_r mpxlc cmpicc
Chris@82 13963 do
Chris@82 13964 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@82 13965 set dummy $ac_prog; ac_word=$2
Chris@82 13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 13967 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 13968 if ${ac_cv_prog_MPICC+:} false; then :
Chris@82 13969 $as_echo_n "(cached) " >&6
Chris@82 13970 else
Chris@82 13971 if test -n "$MPICC"; then
Chris@82 13972 ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
Chris@82 13973 else
Chris@82 13974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 13975 for as_dir in $PATH
Chris@82 13976 do
Chris@82 13977 IFS=$as_save_IFS
Chris@82 13978 test -z "$as_dir" && as_dir=.
Chris@82 13979 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 13980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 13981 ac_cv_prog_MPICC="$ac_prog"
Chris@82 13982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 13983 break 2
Chris@82 13984 fi
Chris@82 13985 done
Chris@82 13986 done
Chris@82 13987 IFS=$as_save_IFS
Chris@82 13988
Chris@82 13989 fi
Chris@82 13990 fi
Chris@82 13991 MPICC=$ac_cv_prog_MPICC
Chris@82 13992 if test -n "$MPICC"; then
Chris@82 13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
Chris@82 13994 $as_echo "$MPICC" >&6; }
Chris@82 13995 else
Chris@82 13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 13997 $as_echo "no" >&6; }
Chris@82 13998 fi
Chris@82 13999
Chris@82 14000
Chris@82 14001 test -n "$MPICC" && break
Chris@82 14002 done
Chris@82 14003 test -n "$MPICC" || MPICC="$CC"
Chris@82 14004
Chris@82 14005 acx_mpi_save_CC="$CC"
Chris@82 14006 CC="$MPICC"
Chris@82 14007
Chris@82 14008
Chris@82 14009
Chris@82 14010 if test x = x"$MPILIBS"; then
Chris@82 14011 ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
Chris@82 14012 if test "x$ac_cv_func_MPI_Init" = xyes; then :
Chris@82 14013 MPILIBS=" "
Chris@82 14014 fi
Chris@82 14015
Chris@82 14016 fi
Chris@82 14017 if test x = x"$MPILIBS"; then
Chris@82 14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
Chris@82 14019 $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
Chris@82 14020 if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
Chris@82 14021 $as_echo_n "(cached) " >&6
Chris@82 14022 else
Chris@82 14023 ac_check_lib_save_LIBS=$LIBS
Chris@82 14024 LIBS="-lmpi $LIBS"
Chris@82 14025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 14026 /* end confdefs.h. */
Chris@82 14027
Chris@82 14028 /* Override any GCC internal prototype to avoid an error.
Chris@82 14029 Use char because int might match the return type of a GCC
Chris@82 14030 builtin and then its argument prototype would still apply. */
Chris@82 14031 #ifdef __cplusplus
Chris@82 14032 extern "C"
Chris@82 14033 #endif
Chris@82 14034 char MPI_Init ();
Chris@82 14035 int
Chris@82 14036 main ()
Chris@82 14037 {
Chris@82 14038 return MPI_Init ();
Chris@82 14039 ;
Chris@82 14040 return 0;
Chris@82 14041 }
Chris@82 14042 _ACEOF
Chris@82 14043 if ac_fn_c_try_link "$LINENO"; then :
Chris@82 14044 ac_cv_lib_mpi_MPI_Init=yes
Chris@82 14045 else
Chris@82 14046 ac_cv_lib_mpi_MPI_Init=no
Chris@82 14047 fi
Chris@82 14048 rm -f core conftest.err conftest.$ac_objext \
Chris@82 14049 conftest$ac_exeext conftest.$ac_ext
Chris@82 14050 LIBS=$ac_check_lib_save_LIBS
Chris@82 14051 fi
Chris@82 14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
Chris@82 14053 $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
Chris@82 14054 if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
Chris@82 14055 MPILIBS="-lmpi"
Chris@82 14056 fi
Chris@82 14057
Chris@82 14058 fi
Chris@82 14059 if test x = x"$MPILIBS"; then
Chris@82 14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
Chris@82 14061 $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
Chris@82 14062 if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
Chris@82 14063 $as_echo_n "(cached) " >&6
Chris@82 14064 else
Chris@82 14065 ac_check_lib_save_LIBS=$LIBS
Chris@82 14066 LIBS="-lmpich $LIBS"
Chris@82 14067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 14068 /* end confdefs.h. */
Chris@82 14069
Chris@82 14070 /* Override any GCC internal prototype to avoid an error.
Chris@82 14071 Use char because int might match the return type of a GCC
Chris@82 14072 builtin and then its argument prototype would still apply. */
Chris@82 14073 #ifdef __cplusplus
Chris@82 14074 extern "C"
Chris@82 14075 #endif
Chris@82 14076 char MPI_Init ();
Chris@82 14077 int
Chris@82 14078 main ()
Chris@82 14079 {
Chris@82 14080 return MPI_Init ();
Chris@82 14081 ;
Chris@82 14082 return 0;
Chris@82 14083 }
Chris@82 14084 _ACEOF
Chris@82 14085 if ac_fn_c_try_link "$LINENO"; then :
Chris@82 14086 ac_cv_lib_mpich_MPI_Init=yes
Chris@82 14087 else
Chris@82 14088 ac_cv_lib_mpich_MPI_Init=no
Chris@82 14089 fi
Chris@82 14090 rm -f core conftest.err conftest.$ac_objext \
Chris@82 14091 conftest$ac_exeext conftest.$ac_ext
Chris@82 14092 LIBS=$ac_check_lib_save_LIBS
Chris@82 14093 fi
Chris@82 14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
Chris@82 14095 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
Chris@82 14096 if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
Chris@82 14097 MPILIBS="-lmpich"
Chris@82 14098 fi
Chris@82 14099
Chris@82 14100 fi
Chris@82 14101
Chris@82 14102 if test x != x"$MPILIBS"; then
Chris@82 14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
Chris@82 14104 $as_echo_n "checking for mpi.h... " >&6; }
Chris@82 14105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 14106 /* end confdefs.h. */
Chris@82 14107 #include <mpi.h>
Chris@82 14108 int
Chris@82 14109 main ()
Chris@82 14110 {
Chris@82 14111
Chris@82 14112 ;
Chris@82 14113 return 0;
Chris@82 14114 }
Chris@82 14115 _ACEOF
Chris@82 14116 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@82 14118 $as_echo "yes" >&6; }
Chris@82 14119 else
Chris@82 14120 MPILIBS=""
Chris@82 14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 14122 $as_echo "no" >&6; }
Chris@82 14123 fi
Chris@82 14124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 14125 fi
Chris@82 14126
Chris@82 14127 CC="$acx_mpi_save_CC"
Chris@82 14128
Chris@82 14129
Chris@82 14130
Chris@82 14131 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
Chris@82 14132 if test x = x"$MPILIBS"; then
Chris@82 14133 as_fn_error $? "could not find mpi library for --enable-mpi" "$LINENO" 5
Chris@82 14134 :
Chris@82 14135 else
Chris@82 14136
Chris@82 14137 $as_echo "#define HAVE_MPI 1" >>confdefs.h
Chris@82 14138
Chris@82 14139 :
Chris@82 14140 fi
Chris@82 14141
Chris@82 14142 # Extract the first word of "mpirun", so it can be a program name with args.
Chris@82 14143 set dummy mpirun; ac_word=$2
Chris@82 14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 14145 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 14146 if ${ac_cv_prog_MPIRUN+:} false; then :
Chris@82 14147 $as_echo_n "(cached) " >&6
Chris@82 14148 else
Chris@82 14149 if test -n "$MPIRUN"; then
Chris@82 14150 ac_cv_prog_MPIRUN="$MPIRUN" # Let the user override the test.
Chris@82 14151 else
Chris@82 14152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 14153 for as_dir in $PATH
Chris@82 14154 do
Chris@82 14155 IFS=$as_save_IFS
Chris@82 14156 test -z "$as_dir" && as_dir=.
Chris@82 14157 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 14158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 14159 ac_cv_prog_MPIRUN="mpirun"
Chris@82 14160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 14161 break 2
Chris@82 14162 fi
Chris@82 14163 done
Chris@82 14164 done
Chris@82 14165 IFS=$as_save_IFS
Chris@82 14166
Chris@82 14167 fi
Chris@82 14168 fi
Chris@82 14169 MPIRUN=$ac_cv_prog_MPIRUN
Chris@82 14170 if test -n "$MPIRUN"; then
Chris@82 14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIRUN" >&5
Chris@82 14172 $as_echo "$MPIRUN" >&6; }
Chris@82 14173 else
Chris@82 14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 14175 $as_echo "no" >&6; }
Chris@82 14176 fi
Chris@82 14177
Chris@82 14178
Chris@82 14179
Chris@82 14180
Chris@82 14181 save_CC=$CC
Chris@82 14182 CC=$MPICC
Chris@82 14183 # The cast to long int works around a bug in the HP C Compiler
Chris@82 14184 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@82 14185 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@82 14186 # This bug is HP SR number 8606223364.
Chris@82 14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of MPI_Fint" >&5
Chris@82 14188 $as_echo_n "checking size of MPI_Fint... " >&6; }
Chris@82 14189 if ${ac_cv_sizeof_MPI_Fint+:} false; then :
Chris@82 14190 $as_echo_n "(cached) " >&6
Chris@82 14191 else
Chris@82 14192 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (MPI_Fint))" "ac_cv_sizeof_MPI_Fint" "#include <mpi.h>
Chris@82 14193 "; then :
Chris@82 14194
Chris@82 14195 else
Chris@82 14196 if test "$ac_cv_type_MPI_Fint" = yes; then
Chris@82 14197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@82 14198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@82 14199 as_fn_error 77 "cannot compute sizeof (MPI_Fint)
Chris@82 14200 See \`config.log' for more details" "$LINENO" 5; }
Chris@82 14201 else
Chris@82 14202 ac_cv_sizeof_MPI_Fint=0
Chris@82 14203 fi
Chris@82 14204 fi
Chris@82 14205
Chris@82 14206 fi
Chris@82 14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_MPI_Fint" >&5
Chris@82 14208 $as_echo "$ac_cv_sizeof_MPI_Fint" >&6; }
Chris@82 14209
Chris@82 14210
Chris@82 14211
Chris@82 14212 cat >>confdefs.h <<_ACEOF
Chris@82 14213 #define SIZEOF_MPI_FINT $ac_cv_sizeof_MPI_Fint
Chris@82 14214 _ACEOF
Chris@82 14215
Chris@82 14216
Chris@82 14217 CC=$save_CC
Chris@82 14218 if test 0 = $ac_cv_sizeof_MPI_Fint; then
Chris@82 14219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sizeof(MPI_Fint) test failed" >&5
Chris@82 14220 $as_echo "$as_me: WARNING: sizeof(MPI_Fint) test failed" >&2;};
Chris@82 14221 # The cast to long int works around a bug in the HP C Compiler
Chris@82 14222 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@82 14223 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@82 14224 # This bug is HP SR number 8606223364.
Chris@82 14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Chris@82 14226 $as_echo_n "checking size of int... " >&6; }
Chris@82 14227 if ${ac_cv_sizeof_int+:} false; then :
Chris@82 14228 $as_echo_n "(cached) " >&6
Chris@82 14229 else
Chris@82 14230 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
Chris@82 14231
Chris@82 14232 else
Chris@82 14233 if test "$ac_cv_type_int" = yes; then
Chris@82 14234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@82 14235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@82 14236 as_fn_error 77 "cannot compute sizeof (int)
Chris@82 14237 See \`config.log' for more details" "$LINENO" 5; }
Chris@82 14238 else
Chris@82 14239 ac_cv_sizeof_int=0
Chris@82 14240 fi
Chris@82 14241 fi
Chris@82 14242
Chris@82 14243 fi
Chris@82 14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Chris@82 14245 $as_echo "$ac_cv_sizeof_int" >&6; }
Chris@82 14246
Chris@82 14247
Chris@82 14248
Chris@82 14249 cat >>confdefs.h <<_ACEOF
Chris@82 14250 #define SIZEOF_INT $ac_cv_sizeof_int
Chris@82 14251 _ACEOF
Chris@82 14252
Chris@82 14253
Chris@82 14254 if test 0 = $ac_cv_sizeof_int; then as_fn_error $? "sizeof(int) test failed" "$LINENO" 5; fi
Chris@82 14255 ac_cv_sizeof_MPI_Fint=$ac_cv_sizeof_int
Chris@82 14256 fi
Chris@82 14257 C_MPI_FINT=C_INT`expr $ac_cv_sizeof_MPI_Fint \* 8`_T
Chris@82 14258
Chris@82 14259 fi
Chris@82 14260 if test "$enable_mpi" = "yes"; then
Chris@82 14261 MPI_TRUE=
Chris@82 14262 MPI_FALSE='#'
Chris@82 14263 else
Chris@82 14264 MPI_TRUE='#'
Chris@82 14265 MPI_FALSE=
Chris@82 14266 fi
Chris@82 14267
Chris@82 14268
Chris@82 14269
Chris@82 14270
Chris@82 14271
Chris@82 14272
Chris@82 14273
Chris@82 14274
Chris@82 14275 # Try to determine "good" native compiler flags if none specified via CFLAGS
Chris@82 14276 if test "$ac_test_CFLAGS" != "set"; then
Chris@82 14277 CFLAGS=""
Chris@82 14278 case $ax_cv_c_compiler_vendor in
Chris@82 14279 dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
Chris@82 14280 ;;
Chris@82 14281
Chris@82 14282 sun) CFLAGS="-native -fast -xO5 -dalign"
Chris@82 14283 ;;
Chris@82 14284
Chris@82 14285 hp) CFLAGS="+Oall +Optrs_ansi +DSnative"
Chris@82 14286 ;;
Chris@82 14287
Chris@82 14288 ibm) xlc_opt="-qarch=auto -qtune=auto"
Chris@82 14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
Chris@82 14290 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
Chris@82 14291 ax_save_FLAGS=$CFLAGS
Chris@82 14292 CFLAGS="$xlc_opt"
Chris@82 14293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 14294 /* end confdefs.h. */
Chris@82 14295
Chris@82 14296 int
Chris@82 14297 main ()
Chris@82 14298 {
Chris@82 14299
Chris@82 14300 ;
Chris@82 14301 return 0;
Chris@82 14302 }
Chris@82 14303 _ACEOF
Chris@82 14304 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 14305 eval `$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=yes
Chris@82 14306 else
Chris@82 14307 eval `$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=no
Chris@82 14308 fi
Chris@82 14309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 14310 CFLAGS=$ax_save_FLAGS
Chris@82 14311 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`
Chris@82 14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 14313 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 14314 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 14315 CFLAGS="-O3 -qalias=ansi -w $xlc_opt"
Chris@82 14316 else
Chris@82 14317 CFLAGS="-O3 -qalias=ansi -w"
Chris@82 14318 fi
Chris@82 14319
Chris@82 14320 ;;
Chris@82 14321
Chris@82 14322 intel) CFLAGS="-O3"
Chris@82 14323 # Intel seems to have changed the spelling of this flag recently
Chris@82 14324 icc_ansi_alias="unknown"
Chris@82 14325 for flag in -ansi-alias -ansi_alias; do
Chris@82 14326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
Chris@82 14327 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
Chris@82 14328 ax_save_FLAGS=$CFLAGS
Chris@82 14329 CFLAGS="$flag"
Chris@82 14330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 14331 /* end confdefs.h. */
Chris@82 14332
Chris@82 14333 int
Chris@82 14334 main ()
Chris@82 14335 {
Chris@82 14336
Chris@82 14337 ;
Chris@82 14338 return 0;
Chris@82 14339 }
Chris@82 14340 _ACEOF
Chris@82 14341 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 14342 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=yes
Chris@82 14343 else
Chris@82 14344 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=no
Chris@82 14345 fi
Chris@82 14346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 14347 CFLAGS=$ax_save_FLAGS
Chris@82 14348 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`
Chris@82 14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 14350 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 14351 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 14352 icc_ansi_alias=$flag; break
Chris@82 14353 else
Chris@82 14354 :
Chris@82 14355 fi
Chris@82 14356
Chris@82 14357 done
Chris@82 14358 if test "x$icc_ansi_alias" != xunknown; then
Chris@82 14359 CFLAGS="$CFLAGS $icc_ansi_alias"
Chris@82 14360 fi
Chris@82 14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
Chris@82 14362 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
Chris@82 14363 if ${ax_cv_c_flags__malign_double+:} false; then :
Chris@82 14364 $as_echo_n "(cached) " >&6
Chris@82 14365 else
Chris@82 14366
Chris@82 14367 ax_save_FLAGS=$CFLAGS
Chris@82 14368 CFLAGS="-malign-double"
Chris@82 14369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 14370 /* end confdefs.h. */
Chris@82 14371
Chris@82 14372 int
Chris@82 14373 main ()
Chris@82 14374 {
Chris@82 14375
Chris@82 14376 ;
Chris@82 14377 return 0;
Chris@82 14378 }
Chris@82 14379 _ACEOF
Chris@82 14380 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 14381 ax_cv_c_flags__malign_double=yes
Chris@82 14382 else
Chris@82 14383 ax_cv_c_flags__malign_double=no
Chris@82 14384 fi
Chris@82 14385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 14386 CFLAGS=$ax_save_FLAGS
Chris@82 14387 fi
Chris@82 14388
Chris@82 14389 eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double
Chris@82 14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 14391 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 14392 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 14393 CFLAGS="$CFLAGS -malign-double"
Chris@82 14394 else
Chris@82 14395 :
Chris@82 14396 fi
Chris@82 14397
Chris@82 14398 # We used to check for architecture flags here, e.g. -xHost etc.,
Chris@82 14399 # but these flags are problematic. On icc-12.0.0, "-mavx -xHost"
Chris@82 14400 # overrides -mavx with -xHost, generating SSE2 code instead of AVX
Chris@82 14401 # code. ICC does not seem to support -mtune=host or equivalent
Chris@82 14402 # non-ABI changing flag.
Chris@82 14403 ;;
Chris@82 14404
Chris@82 14405 clang)
Chris@82 14406 CFLAGS="-O3 -fomit-frame-pointer"
Chris@82 14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mtune=native" >&5
Chris@82 14408 $as_echo_n "checking whether C compiler accepts -mtune=native... " >&6; }
Chris@82 14409 if ${ax_cv_c_flags__mtune_native+:} false; then :
Chris@82 14410 $as_echo_n "(cached) " >&6
Chris@82 14411 else
Chris@82 14412
Chris@82 14413 ax_save_FLAGS=$CFLAGS
Chris@82 14414 CFLAGS="-mtune=native"
Chris@82 14415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 14416 /* end confdefs.h. */
Chris@82 14417
Chris@82 14418 int
Chris@82 14419 main ()
Chris@82 14420 {
Chris@82 14421
Chris@82 14422 ;
Chris@82 14423 return 0;
Chris@82 14424 }
Chris@82 14425 _ACEOF
Chris@82 14426 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 14427 ax_cv_c_flags__mtune_native=yes
Chris@82 14428 else
Chris@82 14429 ax_cv_c_flags__mtune_native=no
Chris@82 14430 fi
Chris@82 14431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 14432 CFLAGS=$ax_save_FLAGS
Chris@82 14433 fi
Chris@82 14434
Chris@82 14435 eval ax_check_compiler_flags=$ax_cv_c_flags__mtune_native
Chris@82 14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 14437 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 14438 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 14439 CFLAGS="$CFLAGS -mtune=native"
Chris@82 14440 else
Chris@82 14441 :
Chris@82 14442 fi
Chris@82 14443
Chris@82 14444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
Chris@82 14445 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
Chris@82 14446 if ${ax_cv_c_flags__fstrict_aliasing+:} false; then :
Chris@82 14447 $as_echo_n "(cached) " >&6
Chris@82 14448 else
Chris@82 14449
Chris@82 14450 ax_save_FLAGS=$CFLAGS
Chris@82 14451 CFLAGS="-fstrict-aliasing"
Chris@82 14452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 14453 /* end confdefs.h. */
Chris@82 14454
Chris@82 14455 int
Chris@82 14456 main ()
Chris@82 14457 {
Chris@82 14458
Chris@82 14459 ;
Chris@82 14460 return 0;
Chris@82 14461 }
Chris@82 14462 _ACEOF
Chris@82 14463 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 14464 ax_cv_c_flags__fstrict_aliasing=yes
Chris@82 14465 else
Chris@82 14466 ax_cv_c_flags__fstrict_aliasing=no
Chris@82 14467 fi
Chris@82 14468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 14469 CFLAGS=$ax_save_FLAGS
Chris@82 14470 fi
Chris@82 14471
Chris@82 14472 eval ax_check_compiler_flags=$ax_cv_c_flags__fstrict_aliasing
Chris@82 14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 14474 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 14475 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 14476 CFLAGS="$CFLAGS -fstrict-aliasing"
Chris@82 14477 else
Chris@82 14478 :
Chris@82 14479 fi
Chris@82 14480
Chris@82 14481 ;;
Chris@82 14482
Chris@82 14483 gnu)
Chris@82 14484 # Default optimization flags for gcc on all systems.
Chris@82 14485 # Somehow -O3 does not imply -fomit-frame-pointer on ia32
Chris@82 14486 CFLAGS="-O3 -fomit-frame-pointer"
Chris@82 14487
Chris@82 14488 # tune for the host by default
Chris@82 14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mtune=native" >&5
Chris@82 14490 $as_echo_n "checking whether C compiler accepts -mtune=native... " >&6; }
Chris@82 14491 if ${ax_cv_c_flags__mtune_native+:} false; then :
Chris@82 14492 $as_echo_n "(cached) " >&6
Chris@82 14493 else
Chris@82 14494
Chris@82 14495 ax_save_FLAGS=$CFLAGS
Chris@82 14496 CFLAGS="-mtune=native"
Chris@82 14497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 14498 /* end confdefs.h. */
Chris@82 14499
Chris@82 14500 int
Chris@82 14501 main ()
Chris@82 14502 {
Chris@82 14503
Chris@82 14504 ;
Chris@82 14505 return 0;
Chris@82 14506 }
Chris@82 14507 _ACEOF
Chris@82 14508 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 14509 ax_cv_c_flags__mtune_native=yes
Chris@82 14510 else
Chris@82 14511 ax_cv_c_flags__mtune_native=no
Chris@82 14512 fi
Chris@82 14513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 14514 CFLAGS=$ax_save_FLAGS
Chris@82 14515 fi
Chris@82 14516
Chris@82 14517 eval ax_check_compiler_flags=$ax_cv_c_flags__mtune_native
Chris@82 14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 14519 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 14520 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 14521 CFLAGS="$CFLAGS -mtune=native"
Chris@82 14522 else
Chris@82 14523 :
Chris@82 14524 fi
Chris@82 14525
Chris@82 14526
Chris@82 14527 # -malign-double for x86 systems
Chris@82 14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
Chris@82 14529 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
Chris@82 14530 if ${ax_cv_c_flags__malign_double+:} false; then :
Chris@82 14531 $as_echo_n "(cached) " >&6
Chris@82 14532 else
Chris@82 14533
Chris@82 14534 ax_save_FLAGS=$CFLAGS
Chris@82 14535 CFLAGS="-malign-double"
Chris@82 14536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 14537 /* end confdefs.h. */
Chris@82 14538
Chris@82 14539 int
Chris@82 14540 main ()
Chris@82 14541 {
Chris@82 14542
Chris@82 14543 ;
Chris@82 14544 return 0;
Chris@82 14545 }
Chris@82 14546 _ACEOF
Chris@82 14547 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 14548 ax_cv_c_flags__malign_double=yes
Chris@82 14549 else
Chris@82 14550 ax_cv_c_flags__malign_double=no
Chris@82 14551 fi
Chris@82 14552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 14553 CFLAGS=$ax_save_FLAGS
Chris@82 14554 fi
Chris@82 14555
Chris@82 14556 eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double
Chris@82 14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 14558 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 14559 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 14560 CFLAGS="$CFLAGS -malign-double"
Chris@82 14561 else
Chris@82 14562 :
Chris@82 14563 fi
Chris@82 14564
Chris@82 14565
Chris@82 14566 # -fstrict-aliasing for gcc-2.95+
Chris@82 14567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
Chris@82 14568 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
Chris@82 14569 if ${ax_cv_c_flags__fstrict_aliasing+:} false; then :
Chris@82 14570 $as_echo_n "(cached) " >&6
Chris@82 14571 else
Chris@82 14572
Chris@82 14573 ax_save_FLAGS=$CFLAGS
Chris@82 14574 CFLAGS="-fstrict-aliasing"
Chris@82 14575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 14576 /* end confdefs.h. */
Chris@82 14577
Chris@82 14578 int
Chris@82 14579 main ()
Chris@82 14580 {
Chris@82 14581
Chris@82 14582 ;
Chris@82 14583 return 0;
Chris@82 14584 }
Chris@82 14585 _ACEOF
Chris@82 14586 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 14587 ax_cv_c_flags__fstrict_aliasing=yes
Chris@82 14588 else
Chris@82 14589 ax_cv_c_flags__fstrict_aliasing=no
Chris@82 14590 fi
Chris@82 14591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 14592 CFLAGS=$ax_save_FLAGS
Chris@82 14593 fi
Chris@82 14594
Chris@82 14595 eval ax_check_compiler_flags=$ax_cv_c_flags__fstrict_aliasing
Chris@82 14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 14597 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 14598 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 14599 CFLAGS="$CFLAGS -fstrict-aliasing"
Chris@82 14600 else
Chris@82 14601 :
Chris@82 14602 fi
Chris@82 14603
Chris@82 14604
Chris@82 14605 # -fno-schedule-insns is pretty much required on all risc
Chris@82 14606 # processors.
Chris@82 14607 #
Chris@82 14608 # gcc performs one pass of instruction scheduling, then a pass of
Chris@82 14609 # register allocation, then another pass of instruction
Chris@82 14610 # scheduling. The first pass reorders instructions in a way that
Chris@82 14611 # is pretty much the worst possible for the purposes of register
Chris@82 14612 # allocation. We disable the first pass.
Chris@82 14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-schedule-insns" >&5
Chris@82 14614 $as_echo_n "checking whether C compiler accepts -fno-schedule-insns... " >&6; }
Chris@82 14615 if ${ax_cv_c_flags__fno_schedule_insns+:} false; then :
Chris@82 14616 $as_echo_n "(cached) " >&6
Chris@82 14617 else
Chris@82 14618
Chris@82 14619 ax_save_FLAGS=$CFLAGS
Chris@82 14620 CFLAGS="-fno-schedule-insns"
Chris@82 14621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 14622 /* end confdefs.h. */
Chris@82 14623
Chris@82 14624 int
Chris@82 14625 main ()
Chris@82 14626 {
Chris@82 14627
Chris@82 14628 ;
Chris@82 14629 return 0;
Chris@82 14630 }
Chris@82 14631 _ACEOF
Chris@82 14632 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 14633 ax_cv_c_flags__fno_schedule_insns=yes
Chris@82 14634 else
Chris@82 14635 ax_cv_c_flags__fno_schedule_insns=no
Chris@82 14636 fi
Chris@82 14637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 14638 CFLAGS=$ax_save_FLAGS
Chris@82 14639 fi
Chris@82 14640
Chris@82 14641 eval ax_check_compiler_flags=$ax_cv_c_flags__fno_schedule_insns
Chris@82 14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 14643 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 14644 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 14645 CFLAGS="$CFLAGS -fno-schedule-insns"
Chris@82 14646 else
Chris@82 14647 :
Chris@82 14648 fi
Chris@82 14649
Chris@82 14650
Chris@82 14651 # flags to enable power ISA 2.07 instructions with gcc (always true with vsx)
Chris@82 14652 if test "$have_vsx" = "yes"; then
Chris@82 14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mcpu=power8" >&5
Chris@82 14654 $as_echo_n "checking whether C compiler accepts -mcpu=power8... " >&6; }
Chris@82 14655 if ${ax_cv_c_flags__mcpu_power8+:} false; then :
Chris@82 14656 $as_echo_n "(cached) " >&6
Chris@82 14657 else
Chris@82 14658
Chris@82 14659 ax_save_FLAGS=$CFLAGS
Chris@82 14660 CFLAGS="-mcpu=power8"
Chris@82 14661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 14662 /* end confdefs.h. */
Chris@82 14663
Chris@82 14664 int
Chris@82 14665 main ()
Chris@82 14666 {
Chris@82 14667
Chris@82 14668 ;
Chris@82 14669 return 0;
Chris@82 14670 }
Chris@82 14671 _ACEOF
Chris@82 14672 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 14673 ax_cv_c_flags__mcpu_power8=yes
Chris@82 14674 else
Chris@82 14675 ax_cv_c_flags__mcpu_power8=no
Chris@82 14676 fi
Chris@82 14677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 14678 CFLAGS=$ax_save_FLAGS
Chris@82 14679 fi
Chris@82 14680
Chris@82 14681 eval ax_check_compiler_flags=$ax_cv_c_flags__mcpu_power8
Chris@82 14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 14683 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 14684 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 14685 CFLAGS="$CFLAGS -mcpu=power8"
Chris@82 14686 else
Chris@82 14687 :
Chris@82 14688 fi
Chris@82 14689
Chris@82 14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpower8-fusion" >&5
Chris@82 14691 $as_echo_n "checking whether C compiler accepts -mpower8-fusion... " >&6; }
Chris@82 14692 if ${ax_cv_c_flags__mpower8_fusion+:} false; then :
Chris@82 14693 $as_echo_n "(cached) " >&6
Chris@82 14694 else
Chris@82 14695
Chris@82 14696 ax_save_FLAGS=$CFLAGS
Chris@82 14697 CFLAGS="-mpower8-fusion"
Chris@82 14698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 14699 /* end confdefs.h. */
Chris@82 14700
Chris@82 14701 int
Chris@82 14702 main ()
Chris@82 14703 {
Chris@82 14704
Chris@82 14705 ;
Chris@82 14706 return 0;
Chris@82 14707 }
Chris@82 14708 _ACEOF
Chris@82 14709 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 14710 ax_cv_c_flags__mpower8_fusion=yes
Chris@82 14711 else
Chris@82 14712 ax_cv_c_flags__mpower8_fusion=no
Chris@82 14713 fi
Chris@82 14714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 14715 CFLAGS=$ax_save_FLAGS
Chris@82 14716 fi
Chris@82 14717
Chris@82 14718 eval ax_check_compiler_flags=$ax_cv_c_flags__mpower8_fusion
Chris@82 14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 14720 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 14721 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 14722 CFLAGS="$CFLAGS -mpower8-fusion"
Chris@82 14723 else
Chris@82 14724 :
Chris@82 14725 fi
Chris@82 14726
Chris@82 14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpower8-vector" >&5
Chris@82 14728 $as_echo_n "checking whether C compiler accepts -mpower8-vector... " >&6; }
Chris@82 14729 if ${ax_cv_c_flags__mpower8_vector+:} false; then :
Chris@82 14730 $as_echo_n "(cached) " >&6
Chris@82 14731 else
Chris@82 14732
Chris@82 14733 ax_save_FLAGS=$CFLAGS
Chris@82 14734 CFLAGS="-mpower8-vector"
Chris@82 14735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 14736 /* end confdefs.h. */
Chris@82 14737
Chris@82 14738 int
Chris@82 14739 main ()
Chris@82 14740 {
Chris@82 14741
Chris@82 14742 ;
Chris@82 14743 return 0;
Chris@82 14744 }
Chris@82 14745 _ACEOF
Chris@82 14746 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 14747 ax_cv_c_flags__mpower8_vector=yes
Chris@82 14748 else
Chris@82 14749 ax_cv_c_flags__mpower8_vector=no
Chris@82 14750 fi
Chris@82 14751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 14752 CFLAGS=$ax_save_FLAGS
Chris@82 14753 fi
Chris@82 14754
Chris@82 14755 eval ax_check_compiler_flags=$ax_cv_c_flags__mpower8_vector
Chris@82 14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 14757 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 14758 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 14759 CFLAGS="$CFLAGS -mpower8-vector"
Chris@82 14760 else
Chris@82 14761 :
Chris@82 14762 fi
Chris@82 14763
Chris@82 14764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mdirect-move" >&5
Chris@82 14765 $as_echo_n "checking whether C compiler accepts -mdirect-move... " >&6; }
Chris@82 14766 if ${ax_cv_c_flags__mdirect_move+:} false; then :
Chris@82 14767 $as_echo_n "(cached) " >&6
Chris@82 14768 else
Chris@82 14769
Chris@82 14770 ax_save_FLAGS=$CFLAGS
Chris@82 14771 CFLAGS="-mdirect-move"
Chris@82 14772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 14773 /* end confdefs.h. */
Chris@82 14774
Chris@82 14775 int
Chris@82 14776 main ()
Chris@82 14777 {
Chris@82 14778
Chris@82 14779 ;
Chris@82 14780 return 0;
Chris@82 14781 }
Chris@82 14782 _ACEOF
Chris@82 14783 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 14784 ax_cv_c_flags__mdirect_move=yes
Chris@82 14785 else
Chris@82 14786 ax_cv_c_flags__mdirect_move=no
Chris@82 14787 fi
Chris@82 14788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 14789 CFLAGS=$ax_save_FLAGS
Chris@82 14790 fi
Chris@82 14791
Chris@82 14792 eval ax_check_compiler_flags=$ax_cv_c_flags__mdirect_move
Chris@82 14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 14794 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 14795 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 14796 CFLAGS="$CFLAGS -mdirect-move"
Chris@82 14797 else
Chris@82 14798 :
Chris@82 14799 fi
Chris@82 14800
Chris@82 14801 fi
Chris@82 14802 ;;
Chris@82 14803 esac
Chris@82 14804
Chris@82 14805 if test -z "$CFLAGS"; then
Chris@82 14806 echo ""
Chris@82 14807 echo "********************************************************"
Chris@82 14808 echo "* WARNING: Don't know the best CFLAGS for this system *"
Chris@82 14809 echo "* Use ./configure CFLAGS=... to specify your own flags *"
Chris@82 14810 echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
Chris@82 14811 echo "********************************************************"
Chris@82 14812 echo ""
Chris@82 14813 CFLAGS="-O3"
Chris@82 14814 fi
Chris@82 14815
Chris@82 14816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
Chris@82 14817 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
Chris@82 14818 ax_save_FLAGS=$CFLAGS
Chris@82 14819 CFLAGS="$CFLAGS"
Chris@82 14820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 14821 /* end confdefs.h. */
Chris@82 14822
Chris@82 14823 int
Chris@82 14824 main ()
Chris@82 14825 {
Chris@82 14826
Chris@82 14827 ;
Chris@82 14828 return 0;
Chris@82 14829 }
Chris@82 14830 _ACEOF
Chris@82 14831 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 14832 eval `$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=yes
Chris@82 14833 else
Chris@82 14834 eval `$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=no
Chris@82 14835 fi
Chris@82 14836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 14837 CFLAGS=$ax_save_FLAGS
Chris@82 14838 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`
Chris@82 14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 14840 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 14841 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 14842 :
Chris@82 14843 else
Chris@82 14844
Chris@82 14845 echo ""
Chris@82 14846 echo "********************************************************"
Chris@82 14847 echo "* WARNING: The guessed CFLAGS don't seem to work with *"
Chris@82 14848 echo "* your compiler. *"
Chris@82 14849 echo "* Use ./configure CFLAGS=... to specify your own flags *"
Chris@82 14850 echo "********************************************************"
Chris@82 14851 echo ""
Chris@82 14852 CFLAGS=""
Chris@82 14853
Chris@82 14854 fi
Chris@82 14855
Chris@82 14856
Chris@82 14857 fi
Chris@82 14858
Chris@82 14859
Chris@82 14860 case "${ax_cv_c_compiler_vendor}" in
Chris@82 14861 intel) # Stop icc from defining __GNUC__, except on MacOS where this fails
Chris@82 14862 case "${host_os}" in
Chris@82 14863 *darwin*) ;; # icc -no-gcc fails to compile some system headers
Chris@82 14864 *)
Chris@82 14865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -no-gcc" >&5
Chris@82 14866 $as_echo_n "checking whether C compiler accepts -no-gcc... " >&6; }
Chris@82 14867 if ${ax_cv_c_flags__no_gcc+:} false; then :
Chris@82 14868 $as_echo_n "(cached) " >&6
Chris@82 14869 else
Chris@82 14870
Chris@82 14871 ax_save_FLAGS=$CFLAGS
Chris@82 14872 CFLAGS="-no-gcc"
Chris@82 14873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 14874 /* end confdefs.h. */
Chris@82 14875
Chris@82 14876 int
Chris@82 14877 main ()
Chris@82 14878 {
Chris@82 14879
Chris@82 14880 ;
Chris@82 14881 return 0;
Chris@82 14882 }
Chris@82 14883 _ACEOF
Chris@82 14884 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 14885 ax_cv_c_flags__no_gcc=yes
Chris@82 14886 else
Chris@82 14887 ax_cv_c_flags__no_gcc=no
Chris@82 14888 fi
Chris@82 14889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 14890 CFLAGS=$ax_save_FLAGS
Chris@82 14891 fi
Chris@82 14892
Chris@82 14893 eval ax_check_compiler_flags=$ax_cv_c_flags__no_gcc
Chris@82 14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 14895 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 14896 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 14897 CC="$CC -no-gcc"
Chris@82 14898 else
Chris@82 14899 :
Chris@82 14900 fi
Chris@82 14901
Chris@82 14902 ;;
Chris@82 14903 esac
Chris@82 14904 ;;
Chris@82 14905
Chris@82 14906 hp) # must (sometimes) manually increase cpp limits to handle fftw3.h
Chris@82 14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wp,-H128000" >&5
Chris@82 14908 $as_echo_n "checking whether C compiler accepts -Wp,-H128000... " >&6; }
Chris@82 14909 if ${ax_cv_c_flags__Wp+:} false; then :
Chris@82 14910 $as_echo_n "(cached) " >&6
Chris@82 14911 else
Chris@82 14912
Chris@82 14913 ax_save_FLAGS=$CFLAGS
Chris@82 14914 CFLAGS="-Wp,-H128000"
Chris@82 14915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 14916 /* end confdefs.h. */
Chris@82 14917
Chris@82 14918 int
Chris@82 14919 main ()
Chris@82 14920 {
Chris@82 14921
Chris@82 14922 ;
Chris@82 14923 return 0;
Chris@82 14924 }
Chris@82 14925 _ACEOF
Chris@82 14926 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 14927 ax_cv_c_flags__Wp=yes
Chris@82 14928 else
Chris@82 14929 ax_cv_c_flags__Wp=no
Chris@82 14930 fi
Chris@82 14931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 14932 CFLAGS=$ax_save_FLAGS
Chris@82 14933 fi
Chris@82 14934
Chris@82 14935 eval ax_check_compiler_flags=$ax_cv_c_flags__Wp
Chris@82 14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 14937 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 14938 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 14939 CC="$CC -Wp,-H128000"
Chris@82 14940 else
Chris@82 14941 :
Chris@82 14942 fi
Chris@82 14943
Chris@82 14944 ;;
Chris@82 14945
Chris@82 14946 portland) # -Masmkeyword required for asm("") cycle counters
Chris@82 14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Masmkeyword" >&5
Chris@82 14948 $as_echo_n "checking whether C compiler accepts -Masmkeyword... " >&6; }
Chris@82 14949 if ${ax_cv_c_flags__Masmkeyword+:} false; then :
Chris@82 14950 $as_echo_n "(cached) " >&6
Chris@82 14951 else
Chris@82 14952
Chris@82 14953 ax_save_FLAGS=$CFLAGS
Chris@82 14954 CFLAGS="-Masmkeyword"
Chris@82 14955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 14956 /* end confdefs.h. */
Chris@82 14957
Chris@82 14958 int
Chris@82 14959 main ()
Chris@82 14960 {
Chris@82 14961
Chris@82 14962 ;
Chris@82 14963 return 0;
Chris@82 14964 }
Chris@82 14965 _ACEOF
Chris@82 14966 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 14967 ax_cv_c_flags__Masmkeyword=yes
Chris@82 14968 else
Chris@82 14969 ax_cv_c_flags__Masmkeyword=no
Chris@82 14970 fi
Chris@82 14971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 14972 CFLAGS=$ax_save_FLAGS
Chris@82 14973 fi
Chris@82 14974
Chris@82 14975 eval ax_check_compiler_flags=$ax_cv_c_flags__Masmkeyword
Chris@82 14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 14977 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 14978 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 14979 CC="$CC -Masmkeyword"
Chris@82 14980 else
Chris@82 14981 :
Chris@82 14982 fi
Chris@82 14983
Chris@82 14984 ;;
Chris@82 14985 esac
Chris@82 14986
Chris@82 14987 case "${ax_cv_c_compiler_vendor}" in
Chris@82 14988 gnu|intel)
Chris@82 14989 # SSE/SSE2
Chris@82 14990 if test "$have_sse2" = "yes" -a "x$SSE2_CFLAGS" = x; then
Chris@82 14991 if test "$PRECISION" = d; then flag=msse2; else flag=msse; fi
Chris@82 14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -$flag" >&5
Chris@82 14993 $as_echo_n "checking whether C compiler accepts -$flag... " >&6; }
Chris@82 14994 ax_save_FLAGS=$CFLAGS
Chris@82 14995 CFLAGS="-$flag"
Chris@82 14996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 14997 /* end confdefs.h. */
Chris@82 14998
Chris@82 14999 int
Chris@82 15000 main ()
Chris@82 15001 {
Chris@82 15002
Chris@82 15003 ;
Chris@82 15004 return 0;
Chris@82 15005 }
Chris@82 15006 _ACEOF
Chris@82 15007 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 15008 eval `$as_echo "ax_cv_c_flags_-$flag" | $as_tr_sh`=yes
Chris@82 15009 else
Chris@82 15010 eval `$as_echo "ax_cv_c_flags_-$flag" | $as_tr_sh`=no
Chris@82 15011 fi
Chris@82 15012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 15013 CFLAGS=$ax_save_FLAGS
Chris@82 15014 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_-$flag" | $as_tr_sh`
Chris@82 15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 15016 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 15017 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 15018 SSE2_CFLAGS="-$flag"
Chris@82 15019 else
Chris@82 15020 as_fn_error $? "Need a version of gcc with -$flag" "$LINENO" 5
Chris@82 15021 fi
Chris@82 15022
Chris@82 15023 fi
Chris@82 15024
Chris@82 15025 # AVX
Chris@82 15026 if test "$have_avx" = "yes" -a "x$AVX_CFLAGS" = x; then
Chris@82 15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5
Chris@82 15028 $as_echo_n "checking whether C compiler accepts -mavx... " >&6; }
Chris@82 15029 if ${ax_cv_c_flags__mavx+:} false; then :
Chris@82 15030 $as_echo_n "(cached) " >&6
Chris@82 15031 else
Chris@82 15032
Chris@82 15033 ax_save_FLAGS=$CFLAGS
Chris@82 15034 CFLAGS="-mavx"
Chris@82 15035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 15036 /* end confdefs.h. */
Chris@82 15037
Chris@82 15038 int
Chris@82 15039 main ()
Chris@82 15040 {
Chris@82 15041
Chris@82 15042 ;
Chris@82 15043 return 0;
Chris@82 15044 }
Chris@82 15045 _ACEOF
Chris@82 15046 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 15047 ax_cv_c_flags__mavx=yes
Chris@82 15048 else
Chris@82 15049 ax_cv_c_flags__mavx=no
Chris@82 15050 fi
Chris@82 15051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 15052 CFLAGS=$ax_save_FLAGS
Chris@82 15053 fi
Chris@82 15054
Chris@82 15055 eval ax_check_compiler_flags=$ax_cv_c_flags__mavx
Chris@82 15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 15057 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 15058 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 15059 AVX_CFLAGS="-mavx"
Chris@82 15060 else
Chris@82 15061 as_fn_error $? "Need a version of gcc with -mavx" "$LINENO" 5
Chris@82 15062 fi
Chris@82 15063
Chris@82 15064 fi
Chris@82 15065
Chris@82 15066 # AVX2
Chris@82 15067 # gcc-4.8 works with -march=core-avx2, but -mavx2 is not enough.
Chris@82 15068 # Later versions seem to happy with -mavx2, so try the arch one first.
Chris@82 15069 if test "$have_avx2" = "yes" -a "x$AVX2_CFLAGS" = x; then
Chris@82 15070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -march=core-avx2" >&5
Chris@82 15071 $as_echo_n "checking whether C compiler accepts -march=core-avx2... " >&6; }
Chris@82 15072 if ${ax_cv_c_flags__march_core_avx2+:} false; then :
Chris@82 15073 $as_echo_n "(cached) " >&6
Chris@82 15074 else
Chris@82 15075
Chris@82 15076 ax_save_FLAGS=$CFLAGS
Chris@82 15077 CFLAGS="-march=core-avx2"
Chris@82 15078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 15079 /* end confdefs.h. */
Chris@82 15080
Chris@82 15081 int
Chris@82 15082 main ()
Chris@82 15083 {
Chris@82 15084
Chris@82 15085 ;
Chris@82 15086 return 0;
Chris@82 15087 }
Chris@82 15088 _ACEOF
Chris@82 15089 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 15090 ax_cv_c_flags__march_core_avx2=yes
Chris@82 15091 else
Chris@82 15092 ax_cv_c_flags__march_core_avx2=no
Chris@82 15093 fi
Chris@82 15094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 15095 CFLAGS=$ax_save_FLAGS
Chris@82 15096 fi
Chris@82 15097
Chris@82 15098 eval ax_check_compiler_flags=$ax_cv_c_flags__march_core_avx2
Chris@82 15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 15100 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 15101 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 15102 AVX2_CFLAGS="-march=core-avx2"
Chris@82 15103 else
Chris@82 15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5
Chris@82 15105 $as_echo_n "checking whether C compiler accepts -mavx2... " >&6; }
Chris@82 15106 if ${ax_cv_c_flags__mavx2+:} false; then :
Chris@82 15107 $as_echo_n "(cached) " >&6
Chris@82 15108 else
Chris@82 15109
Chris@82 15110 ax_save_FLAGS=$CFLAGS
Chris@82 15111 CFLAGS="-mavx2"
Chris@82 15112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 15113 /* end confdefs.h. */
Chris@82 15114
Chris@82 15115 int
Chris@82 15116 main ()
Chris@82 15117 {
Chris@82 15118
Chris@82 15119 ;
Chris@82 15120 return 0;
Chris@82 15121 }
Chris@82 15122 _ACEOF
Chris@82 15123 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 15124 ax_cv_c_flags__mavx2=yes
Chris@82 15125 else
Chris@82 15126 ax_cv_c_flags__mavx2=no
Chris@82 15127 fi
Chris@82 15128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 15129 CFLAGS=$ax_save_FLAGS
Chris@82 15130 fi
Chris@82 15131
Chris@82 15132 eval ax_check_compiler_flags=$ax_cv_c_flags__mavx2
Chris@82 15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 15134 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 15135 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 15136 AVX2_CFLAGS="-mavx2"
Chris@82 15137 else
Chris@82 15138 as_fn_error $? "Need a version of gcc with either -march=core-avx2 or -mavx2" "$LINENO" 5
Chris@82 15139 fi
Chris@82 15140
Chris@82 15141 fi
Chris@82 15142
Chris@82 15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mfma" >&5
Chris@82 15144 $as_echo_n "checking whether C compiler accepts -mfma... " >&6; }
Chris@82 15145 if ${ax_cv_c_flags__mfma+:} false; then :
Chris@82 15146 $as_echo_n "(cached) " >&6
Chris@82 15147 else
Chris@82 15148
Chris@82 15149 ax_save_FLAGS=$CFLAGS
Chris@82 15150 CFLAGS="-mfma"
Chris@82 15151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 15152 /* end confdefs.h. */
Chris@82 15153
Chris@82 15154 int
Chris@82 15155 main ()
Chris@82 15156 {
Chris@82 15157
Chris@82 15158 ;
Chris@82 15159 return 0;
Chris@82 15160 }
Chris@82 15161 _ACEOF
Chris@82 15162 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 15163 ax_cv_c_flags__mfma=yes
Chris@82 15164 else
Chris@82 15165 ax_cv_c_flags__mfma=no
Chris@82 15166 fi
Chris@82 15167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 15168 CFLAGS=$ax_save_FLAGS
Chris@82 15169 fi
Chris@82 15170
Chris@82 15171 eval ax_check_compiler_flags=$ax_cv_c_flags__mfma
Chris@82 15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 15173 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 15174 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 15175 AVX2_CFLAGS="$AVX2_CFLAGS -mfma"
Chris@82 15176 else
Chris@82 15177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need a version of gcc with -mfma (harmless for icc)" >&5
Chris@82 15178 $as_echo "$as_me: WARNING: Need a version of gcc with -mfma (harmless for icc)" >&2;}
Chris@82 15179 fi
Chris@82 15180
Chris@82 15181 fi
Chris@82 15182
Chris@82 15183 # AVX512
Chris@82 15184 if test "$have_avx512" = "yes" -a "x$AVX512_CFLAGS" = x; then
Chris@82 15185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx512f" >&5
Chris@82 15186 $as_echo_n "checking whether C compiler accepts -mavx512f... " >&6; }
Chris@82 15187 if ${ax_cv_c_flags__mavx512f+:} false; then :
Chris@82 15188 $as_echo_n "(cached) " >&6
Chris@82 15189 else
Chris@82 15190
Chris@82 15191 ax_save_FLAGS=$CFLAGS
Chris@82 15192 CFLAGS="-mavx512f"
Chris@82 15193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 15194 /* end confdefs.h. */
Chris@82 15195
Chris@82 15196 int
Chris@82 15197 main ()
Chris@82 15198 {
Chris@82 15199
Chris@82 15200 ;
Chris@82 15201 return 0;
Chris@82 15202 }
Chris@82 15203 _ACEOF
Chris@82 15204 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 15205 ax_cv_c_flags__mavx512f=yes
Chris@82 15206 else
Chris@82 15207 ax_cv_c_flags__mavx512f=no
Chris@82 15208 fi
Chris@82 15209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 15210 CFLAGS=$ax_save_FLAGS
Chris@82 15211 fi
Chris@82 15212
Chris@82 15213 eval ax_check_compiler_flags=$ax_cv_c_flags__mavx512f
Chris@82 15214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 15215 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 15216 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 15217 AVX512_CFLAGS="-mavx512f"
Chris@82 15218 else
Chris@82 15219 as_fn_error $? "Need a version of gcc with -mavx512f" "$LINENO" 5
Chris@82 15220 fi
Chris@82 15221
Chris@82 15222 fi
Chris@82 15223
Chris@82 15224 if test "$host_vendor" = "apple"; then
Chris@82 15225 # We need to tell gcc to use an external assembler to get AVX/AVX2 with gcc on OS X
Chris@82 15226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wa,-q" >&5
Chris@82 15227 $as_echo_n "checking whether C compiler accepts -Wa,-q... " >&6; }
Chris@82 15228 if ${ax_cv_c_flags__Wa+:} false; then :
Chris@82 15229 $as_echo_n "(cached) " >&6
Chris@82 15230 else
Chris@82 15231
Chris@82 15232 ax_save_FLAGS=$CFLAGS
Chris@82 15233 CFLAGS="-Wa,-q"
Chris@82 15234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 15235 /* end confdefs.h. */
Chris@82 15236
Chris@82 15237 int
Chris@82 15238 main ()
Chris@82 15239 {
Chris@82 15240
Chris@82 15241 ;
Chris@82 15242 return 0;
Chris@82 15243 }
Chris@82 15244 _ACEOF
Chris@82 15245 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 15246 ax_cv_c_flags__Wa=yes
Chris@82 15247 else
Chris@82 15248 ax_cv_c_flags__Wa=no
Chris@82 15249 fi
Chris@82 15250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 15251 CFLAGS=$ax_save_FLAGS
Chris@82 15252 fi
Chris@82 15253
Chris@82 15254 eval ax_check_compiler_flags=$ax_cv_c_flags__Wa
Chris@82 15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 15256 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 15257 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 15258 CFLAGS="$CFLAGS -Wa,-q"
Chris@82 15259 else
Chris@82 15260 :
Chris@82 15261 fi
Chris@82 15262
Chris@82 15263 # Disable the new compact unwinding format so we avoid warnings/potential errors.
Chris@82 15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wl,-no_compact_unwind" >&5
Chris@82 15265 $as_echo_n "checking whether C compiler accepts -Wl,-no_compact_unwind... " >&6; }
Chris@82 15266 if ${ax_cv_c_flags__Wl+:} false; then :
Chris@82 15267 $as_echo_n "(cached) " >&6
Chris@82 15268 else
Chris@82 15269
Chris@82 15270 ax_save_FLAGS=$CFLAGS
Chris@82 15271 CFLAGS="-Wl,-no_compact_unwind"
Chris@82 15272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 15273 /* end confdefs.h. */
Chris@82 15274
Chris@82 15275 int
Chris@82 15276 main ()
Chris@82 15277 {
Chris@82 15278
Chris@82 15279 ;
Chris@82 15280 return 0;
Chris@82 15281 }
Chris@82 15282 _ACEOF
Chris@82 15283 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 15284 ax_cv_c_flags__Wl=yes
Chris@82 15285 else
Chris@82 15286 ax_cv_c_flags__Wl=no
Chris@82 15287 fi
Chris@82 15288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 15289 CFLAGS=$ax_save_FLAGS
Chris@82 15290 fi
Chris@82 15291
Chris@82 15292 eval ax_check_compiler_flags=$ax_cv_c_flags__Wl
Chris@82 15293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 15294 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 15295 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 15296 CFLAGS="$CFLAGS -Wl,-no_compact_unwind"
Chris@82 15297 else
Chris@82 15298 :
Chris@82 15299 fi
Chris@82 15300
Chris@82 15301 fi
Chris@82 15302
Chris@82 15303 # KCVI
Chris@82 15304 if test "$have_kcvi" = "yes" -a "x$KCVI_CFLAGS" = x; then
Chris@82 15305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mmic" >&5
Chris@82 15306 $as_echo_n "checking whether C compiler accepts -mmic... " >&6; }
Chris@82 15307 if ${ax_cv_c_flags__mmic+:} false; then :
Chris@82 15308 $as_echo_n "(cached) " >&6
Chris@82 15309 else
Chris@82 15310
Chris@82 15311 ax_save_FLAGS=$CFLAGS
Chris@82 15312 CFLAGS="-mmic"
Chris@82 15313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 15314 /* end confdefs.h. */
Chris@82 15315
Chris@82 15316 int
Chris@82 15317 main ()
Chris@82 15318 {
Chris@82 15319
Chris@82 15320 ;
Chris@82 15321 return 0;
Chris@82 15322 }
Chris@82 15323 _ACEOF
Chris@82 15324 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 15325 ax_cv_c_flags__mmic=yes
Chris@82 15326 else
Chris@82 15327 ax_cv_c_flags__mmic=no
Chris@82 15328 fi
Chris@82 15329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 15330 CFLAGS=$ax_save_FLAGS
Chris@82 15331 fi
Chris@82 15332
Chris@82 15333 eval ax_check_compiler_flags=$ax_cv_c_flags__mmic
Chris@82 15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 15335 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 15336 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 15337 KCVI_CFLAGS="-mmic"
Chris@82 15338 else
Chris@82 15339 as_fn_error $? "Need a version of icc with -mmic" "$LINENO" 5
Chris@82 15340 fi
Chris@82 15341
Chris@82 15342 fi
Chris@82 15343
Chris@82 15344 if test "$have_altivec" = "yes" -a "x$ALTIVEC_CFLAGS" = x; then
Chris@82 15345 # -DFAKE__VEC__ is a workaround because gcc-3.3 does not
Chris@82 15346 # #define __VEC__ with -maltivec.
Chris@82 15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -faltivec" >&5
Chris@82 15348 $as_echo_n "checking whether C compiler accepts -faltivec... " >&6; }
Chris@82 15349 if ${ax_cv_c_flags__faltivec+:} false; then :
Chris@82 15350 $as_echo_n "(cached) " >&6
Chris@82 15351 else
Chris@82 15352
Chris@82 15353 ax_save_FLAGS=$CFLAGS
Chris@82 15354 CFLAGS="-faltivec"
Chris@82 15355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 15356 /* end confdefs.h. */
Chris@82 15357
Chris@82 15358 int
Chris@82 15359 main ()
Chris@82 15360 {
Chris@82 15361
Chris@82 15362 ;
Chris@82 15363 return 0;
Chris@82 15364 }
Chris@82 15365 _ACEOF
Chris@82 15366 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 15367 ax_cv_c_flags__faltivec=yes
Chris@82 15368 else
Chris@82 15369 ax_cv_c_flags__faltivec=no
Chris@82 15370 fi
Chris@82 15371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 15372 CFLAGS=$ax_save_FLAGS
Chris@82 15373 fi
Chris@82 15374
Chris@82 15375 eval ax_check_compiler_flags=$ax_cv_c_flags__faltivec
Chris@82 15376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 15377 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 15378 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 15379 ALTIVEC_CFLAGS="-faltivec"
Chris@82 15380 else
Chris@82 15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maltivec -mabi=altivec" >&5
Chris@82 15382 $as_echo_n "checking whether C compiler accepts -maltivec -mabi=altivec... " >&6; }
Chris@82 15383 if ${ax_cv_c_flags__maltivec__mabi_altivec+:} false; then :
Chris@82 15384 $as_echo_n "(cached) " >&6
Chris@82 15385 else
Chris@82 15386
Chris@82 15387 ax_save_FLAGS=$CFLAGS
Chris@82 15388 CFLAGS="-maltivec -mabi=altivec"
Chris@82 15389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 15390 /* end confdefs.h. */
Chris@82 15391
Chris@82 15392 int
Chris@82 15393 main ()
Chris@82 15394 {
Chris@82 15395
Chris@82 15396 ;
Chris@82 15397 return 0;
Chris@82 15398 }
Chris@82 15399 _ACEOF
Chris@82 15400 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 15401 ax_cv_c_flags__maltivec__mabi_altivec=yes
Chris@82 15402 else
Chris@82 15403 ax_cv_c_flags__maltivec__mabi_altivec=no
Chris@82 15404 fi
Chris@82 15405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 15406 CFLAGS=$ax_save_FLAGS
Chris@82 15407 fi
Chris@82 15408
Chris@82 15409 eval ax_check_compiler_flags=$ax_cv_c_flags__maltivec__mabi_altivec
Chris@82 15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 15411 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 15412 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 15413 ALTIVEC_CFLAGS="-maltivec -mabi=altivec -DFAKE__VEC__"
Chris@82 15414 else
Chris@82 15415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvec" >&5
Chris@82 15416 $as_echo_n "checking whether C compiler accepts -fvec... " >&6; }
Chris@82 15417 if ${ax_cv_c_flags__fvec+:} false; then :
Chris@82 15418 $as_echo_n "(cached) " >&6
Chris@82 15419 else
Chris@82 15420
Chris@82 15421 ax_save_FLAGS=$CFLAGS
Chris@82 15422 CFLAGS="-fvec"
Chris@82 15423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 15424 /* end confdefs.h. */
Chris@82 15425
Chris@82 15426 int
Chris@82 15427 main ()
Chris@82 15428 {
Chris@82 15429
Chris@82 15430 ;
Chris@82 15431 return 0;
Chris@82 15432 }
Chris@82 15433 _ACEOF
Chris@82 15434 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 15435 ax_cv_c_flags__fvec=yes
Chris@82 15436 else
Chris@82 15437 ax_cv_c_flags__fvec=no
Chris@82 15438 fi
Chris@82 15439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 15440 CFLAGS=$ax_save_FLAGS
Chris@82 15441 fi
Chris@82 15442
Chris@82 15443 eval ax_check_compiler_flags=$ax_cv_c_flags__fvec
Chris@82 15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 15445 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 15446 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 15447 ALTIVEC_CFLAGS="-fvec"
Chris@82 15448 else
Chris@82 15449 as_fn_error $? "Need a version of gcc with -maltivec" "$LINENO" 5
Chris@82 15450 fi
Chris@82 15451
Chris@82 15452 fi
Chris@82 15453
Chris@82 15454 fi
Chris@82 15455
Chris@82 15456 fi
Chris@82 15457
Chris@82 15458 case "${host_cpu}" in
Chris@82 15459 aarch64)
Chris@82 15460 ;;
Chris@82 15461 *)
Chris@82 15462 if test "$have_neon" = "yes" -a "x$NEON_CFLAGS" = x; then
Chris@82 15463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mfpu=neon" >&5
Chris@82 15464 $as_echo_n "checking whether C compiler accepts -mfpu=neon... " >&6; }
Chris@82 15465 if ${ax_cv_c_flags__mfpu_neon+:} false; then :
Chris@82 15466 $as_echo_n "(cached) " >&6
Chris@82 15467 else
Chris@82 15468
Chris@82 15469 ax_save_FLAGS=$CFLAGS
Chris@82 15470 CFLAGS="-mfpu=neon"
Chris@82 15471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 15472 /* end confdefs.h. */
Chris@82 15473
Chris@82 15474 int
Chris@82 15475 main ()
Chris@82 15476 {
Chris@82 15477
Chris@82 15478 ;
Chris@82 15479 return 0;
Chris@82 15480 }
Chris@82 15481 _ACEOF
Chris@82 15482 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 15483 ax_cv_c_flags__mfpu_neon=yes
Chris@82 15484 else
Chris@82 15485 ax_cv_c_flags__mfpu_neon=no
Chris@82 15486 fi
Chris@82 15487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 15488 CFLAGS=$ax_save_FLAGS
Chris@82 15489 fi
Chris@82 15490
Chris@82 15491 eval ax_check_compiler_flags=$ax_cv_c_flags__mfpu_neon
Chris@82 15492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 15493 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 15494 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 15495 NEON_CFLAGS="-mfpu=neon"
Chris@82 15496 else
Chris@82 15497 as_fn_error $? "Need a version of gcc with -mfpu=neon" "$LINENO" 5
Chris@82 15498 fi
Chris@82 15499
Chris@82 15500 fi
Chris@82 15501 ;;
Chris@82 15502 esac
Chris@82 15503
Chris@82 15504 if test "$have_vsx" = "yes" -a "x$VSX_CFLAGS" = x; then
Chris@82 15505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mvsx" >&5
Chris@82 15506 $as_echo_n "checking whether C compiler accepts -mvsx... " >&6; }
Chris@82 15507 if ${ax_cv_c_flags__mvsx+:} false; then :
Chris@82 15508 $as_echo_n "(cached) " >&6
Chris@82 15509 else
Chris@82 15510
Chris@82 15511 ax_save_FLAGS=$CFLAGS
Chris@82 15512 CFLAGS="-mvsx"
Chris@82 15513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 15514 /* end confdefs.h. */
Chris@82 15515
Chris@82 15516 int
Chris@82 15517 main ()
Chris@82 15518 {
Chris@82 15519
Chris@82 15520 ;
Chris@82 15521 return 0;
Chris@82 15522 }
Chris@82 15523 _ACEOF
Chris@82 15524 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 15525 ax_cv_c_flags__mvsx=yes
Chris@82 15526 else
Chris@82 15527 ax_cv_c_flags__mvsx=no
Chris@82 15528 fi
Chris@82 15529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 15530 CFLAGS=$ax_save_FLAGS
Chris@82 15531 fi
Chris@82 15532
Chris@82 15533 eval ax_check_compiler_flags=$ax_cv_c_flags__mvsx
Chris@82 15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 15535 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 15536 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 15537 VSX_CFLAGS="-mvsx"
Chris@82 15538 else
Chris@82 15539 as_fn_error $? "Need a version of gcc with -mvsx" "$LINENO" 5
Chris@82 15540 fi
Chris@82 15541
Chris@82 15542 fi
Chris@82 15543
Chris@82 15544 ;;
Chris@82 15545
Chris@82 15546 clang)
Chris@82 15547
Chris@82 15548 if test "$have_avx" = "yes" -a "x$AVX_CFLAGS" = x; then
Chris@82 15549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5
Chris@82 15550 $as_echo_n "checking whether C compiler accepts -mavx... " >&6; }
Chris@82 15551 if ${ax_cv_c_flags__mavx+:} false; then :
Chris@82 15552 $as_echo_n "(cached) " >&6
Chris@82 15553 else
Chris@82 15554
Chris@82 15555 ax_save_FLAGS=$CFLAGS
Chris@82 15556 CFLAGS="-mavx"
Chris@82 15557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 15558 /* end confdefs.h. */
Chris@82 15559
Chris@82 15560 int
Chris@82 15561 main ()
Chris@82 15562 {
Chris@82 15563
Chris@82 15564 ;
Chris@82 15565 return 0;
Chris@82 15566 }
Chris@82 15567 _ACEOF
Chris@82 15568 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 15569 ax_cv_c_flags__mavx=yes
Chris@82 15570 else
Chris@82 15571 ax_cv_c_flags__mavx=no
Chris@82 15572 fi
Chris@82 15573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 15574 CFLAGS=$ax_save_FLAGS
Chris@82 15575 fi
Chris@82 15576
Chris@82 15577 eval ax_check_compiler_flags=$ax_cv_c_flags__mavx
Chris@82 15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 15579 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 15580 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 15581 AVX_CFLAGS="-mavx"
Chris@82 15582 else
Chris@82 15583 as_fn_error $? "Need a version of clang with -mavx" "$LINENO" 5
Chris@82 15584 fi
Chris@82 15585
Chris@82 15586 fi
Chris@82 15587
Chris@82 15588 if test "$have_avx2" = "yes" -a "x$AVX2_CFLAGS" = x; then
Chris@82 15589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5
Chris@82 15590 $as_echo_n "checking whether C compiler accepts -mavx2... " >&6; }
Chris@82 15591 if ${ax_cv_c_flags__mavx2+:} false; then :
Chris@82 15592 $as_echo_n "(cached) " >&6
Chris@82 15593 else
Chris@82 15594
Chris@82 15595 ax_save_FLAGS=$CFLAGS
Chris@82 15596 CFLAGS="-mavx2"
Chris@82 15597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 15598 /* end confdefs.h. */
Chris@82 15599
Chris@82 15600 int
Chris@82 15601 main ()
Chris@82 15602 {
Chris@82 15603
Chris@82 15604 ;
Chris@82 15605 return 0;
Chris@82 15606 }
Chris@82 15607 _ACEOF
Chris@82 15608 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 15609 ax_cv_c_flags__mavx2=yes
Chris@82 15610 else
Chris@82 15611 ax_cv_c_flags__mavx2=no
Chris@82 15612 fi
Chris@82 15613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 15614 CFLAGS=$ax_save_FLAGS
Chris@82 15615 fi
Chris@82 15616
Chris@82 15617 eval ax_check_compiler_flags=$ax_cv_c_flags__mavx2
Chris@82 15618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 15619 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 15620 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 15621 AVX2_CFLAGS="-mavx2"
Chris@82 15622 else
Chris@82 15623 as_fn_error $? "Need a version of clang with -mavx2" "$LINENO" 5
Chris@82 15624 fi
Chris@82 15625
Chris@82 15626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mfma" >&5
Chris@82 15627 $as_echo_n "checking whether C compiler accepts -mfma... " >&6; }
Chris@82 15628 if ${ax_cv_c_flags__mfma+:} false; then :
Chris@82 15629 $as_echo_n "(cached) " >&6
Chris@82 15630 else
Chris@82 15631
Chris@82 15632 ax_save_FLAGS=$CFLAGS
Chris@82 15633 CFLAGS="-mfma"
Chris@82 15634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 15635 /* end confdefs.h. */
Chris@82 15636
Chris@82 15637 int
Chris@82 15638 main ()
Chris@82 15639 {
Chris@82 15640
Chris@82 15641 ;
Chris@82 15642 return 0;
Chris@82 15643 }
Chris@82 15644 _ACEOF
Chris@82 15645 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 15646 ax_cv_c_flags__mfma=yes
Chris@82 15647 else
Chris@82 15648 ax_cv_c_flags__mfma=no
Chris@82 15649 fi
Chris@82 15650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 15651 CFLAGS=$ax_save_FLAGS
Chris@82 15652 fi
Chris@82 15653
Chris@82 15654 eval ax_check_compiler_flags=$ax_cv_c_flags__mfma
Chris@82 15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 15656 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 15657 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 15658 AVX2_CFLAGS="$AVX2_CFLAGS -mfma"
Chris@82 15659 else
Chris@82 15660 :
Chris@82 15661 fi
Chris@82 15662
Chris@82 15663 fi
Chris@82 15664
Chris@82 15665 if test "$have_vsx" = "yes" -a "x$VSX_CFLAGS" = x; then
Chris@82 15666 # clang appears to need both -mvsx and -maltivec for VSX
Chris@82 15667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maltivec" >&5
Chris@82 15668 $as_echo_n "checking whether C compiler accepts -maltivec... " >&6; }
Chris@82 15669 if ${ax_cv_c_flags__maltivec+:} false; then :
Chris@82 15670 $as_echo_n "(cached) " >&6
Chris@82 15671 else
Chris@82 15672
Chris@82 15673 ax_save_FLAGS=$CFLAGS
Chris@82 15674 CFLAGS="-maltivec"
Chris@82 15675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 15676 /* end confdefs.h. */
Chris@82 15677
Chris@82 15678 int
Chris@82 15679 main ()
Chris@82 15680 {
Chris@82 15681
Chris@82 15682 ;
Chris@82 15683 return 0;
Chris@82 15684 }
Chris@82 15685 _ACEOF
Chris@82 15686 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 15687 ax_cv_c_flags__maltivec=yes
Chris@82 15688 else
Chris@82 15689 ax_cv_c_flags__maltivec=no
Chris@82 15690 fi
Chris@82 15691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 15692 CFLAGS=$ax_save_FLAGS
Chris@82 15693 fi
Chris@82 15694
Chris@82 15695 eval ax_check_compiler_flags=$ax_cv_c_flags__maltivec
Chris@82 15696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 15697 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 15698 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 15699 VSX_CFLAGS="-maltivec"
Chris@82 15700 else
Chris@82 15701 as_fn_error $? "Need a version of gcc with -maltivec" "$LINENO" 5
Chris@82 15702 fi
Chris@82 15703
Chris@82 15704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mvsx" >&5
Chris@82 15705 $as_echo_n "checking whether C compiler accepts -mvsx... " >&6; }
Chris@82 15706 if ${ax_cv_c_flags__mvsx+:} false; then :
Chris@82 15707 $as_echo_n "(cached) " >&6
Chris@82 15708 else
Chris@82 15709
Chris@82 15710 ax_save_FLAGS=$CFLAGS
Chris@82 15711 CFLAGS="-mvsx"
Chris@82 15712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 15713 /* end confdefs.h. */
Chris@82 15714
Chris@82 15715 int
Chris@82 15716 main ()
Chris@82 15717 {
Chris@82 15718
Chris@82 15719 ;
Chris@82 15720 return 0;
Chris@82 15721 }
Chris@82 15722 _ACEOF
Chris@82 15723 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 15724 ax_cv_c_flags__mvsx=yes
Chris@82 15725 else
Chris@82 15726 ax_cv_c_flags__mvsx=no
Chris@82 15727 fi
Chris@82 15728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 15729 CFLAGS=$ax_save_FLAGS
Chris@82 15730 fi
Chris@82 15731
Chris@82 15732 eval ax_check_compiler_flags=$ax_cv_c_flags__mvsx
Chris@82 15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 15734 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 15735 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 15736 VSX_CFLAGS="-mvsx $VSX_CFLAGS"
Chris@82 15737 else
Chris@82 15738 as_fn_error $? "Need a version of gcc with -mvsx" "$LINENO" 5
Chris@82 15739 fi
Chris@82 15740
Chris@82 15741 fi
Chris@82 15742 ;;
Chris@82 15743
Chris@82 15744 ibm)
Chris@82 15745 if test "$have_vsx" = "yes" -a "x$VSX_CFLAGS" = x; then
Chris@82 15746 # Note that IBM xlC uses -qaltivec for VSX too.
Chris@82 15747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -qaltivec" >&5
Chris@82 15748 $as_echo_n "checking whether C compiler accepts -qaltivec... " >&6; }
Chris@82 15749 if ${ax_cv_c_flags__qaltivec+:} false; then :
Chris@82 15750 $as_echo_n "(cached) " >&6
Chris@82 15751 else
Chris@82 15752
Chris@82 15753 ax_save_FLAGS=$CFLAGS
Chris@82 15754 CFLAGS="-qaltivec"
Chris@82 15755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 15756 /* end confdefs.h. */
Chris@82 15757
Chris@82 15758 int
Chris@82 15759 main ()
Chris@82 15760 {
Chris@82 15761
Chris@82 15762 ;
Chris@82 15763 return 0;
Chris@82 15764 }
Chris@82 15765 _ACEOF
Chris@82 15766 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 15767 ax_cv_c_flags__qaltivec=yes
Chris@82 15768 else
Chris@82 15769 ax_cv_c_flags__qaltivec=no
Chris@82 15770 fi
Chris@82 15771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 15772 CFLAGS=$ax_save_FLAGS
Chris@82 15773 fi
Chris@82 15774
Chris@82 15775 eval ax_check_compiler_flags=$ax_cv_c_flags__qaltivec
Chris@82 15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 15777 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 15778 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 15779 VSX_CFLAGS="-qaltivec"
Chris@82 15780 else
Chris@82 15781 as_fn_error $? "Need a version of gcc with -qaltivec" "$LINENO" 5
Chris@82 15782 fi
Chris@82 15783
Chris@82 15784 fi
Chris@82 15785 ;;
Chris@82 15786 esac
Chris@82 15787
Chris@82 15788
Chris@82 15789
Chris@82 15790
Chris@82 15791
Chris@82 15792
Chris@82 15793
Chris@82 15794
Chris@82 15795
Chris@82 15796
Chris@82 15797 if test "$with_incoming_stack_boundary"x != "no"x; then
Chris@82 15798 case "${ax_cv_c_compiler_vendor}" in
Chris@82 15799 gnu)
Chris@82 15800 tentative_flags="-mincoming-stack-boundary=$with_incoming_stack_boundary";
Chris@82 15801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $tentative_flags" >&5
Chris@82 15802 $as_echo_n "checking whether C compiler accepts $tentative_flags... " >&6; }
Chris@82 15803 ax_save_FLAGS=$CFLAGS
Chris@82 15804 CFLAGS="$tentative_flags"
Chris@82 15805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 15806 /* end confdefs.h. */
Chris@82 15807
Chris@82 15808 int
Chris@82 15809 main ()
Chris@82 15810 {
Chris@82 15811
Chris@82 15812 ;
Chris@82 15813 return 0;
Chris@82 15814 }
Chris@82 15815 _ACEOF
Chris@82 15816 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 15817 eval `$as_echo "ax_cv_c_flags_$tentative_flags" | $as_tr_sh`=yes
Chris@82 15818 else
Chris@82 15819 eval `$as_echo "ax_cv_c_flags_$tentative_flags" | $as_tr_sh`=no
Chris@82 15820 fi
Chris@82 15821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 15822 CFLAGS=$ax_save_FLAGS
Chris@82 15823 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$tentative_flags" | $as_tr_sh`
Chris@82 15824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 15825 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 15826 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 15827 STACK_ALIGN_CFLAGS=$tentative_flags
Chris@82 15828 else
Chris@82 15829 :
Chris@82 15830 fi
Chris@82 15831
Chris@82 15832 ;;
Chris@82 15833 esac
Chris@82 15834 fi
Chris@82 15835
Chris@82 15836
Chris@82 15837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Chris@82 15838 $as_echo_n "checking for ANSI C header files... " >&6; }
Chris@82 15839 if ${ac_cv_header_stdc+:} false; then :
Chris@82 15840 $as_echo_n "(cached) " >&6
Chris@82 15841 else
Chris@82 15842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 15843 /* end confdefs.h. */
Chris@82 15844 #include <stdlib.h>
Chris@82 15845 #include <stdarg.h>
Chris@82 15846 #include <string.h>
Chris@82 15847 #include <float.h>
Chris@82 15848
Chris@82 15849 int
Chris@82 15850 main ()
Chris@82 15851 {
Chris@82 15852
Chris@82 15853 ;
Chris@82 15854 return 0;
Chris@82 15855 }
Chris@82 15856 _ACEOF
Chris@82 15857 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 15858 ac_cv_header_stdc=yes
Chris@82 15859 else
Chris@82 15860 ac_cv_header_stdc=no
Chris@82 15861 fi
Chris@82 15862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 15863
Chris@82 15864 if test $ac_cv_header_stdc = yes; then
Chris@82 15865 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Chris@82 15866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 15867 /* end confdefs.h. */
Chris@82 15868 #include <string.h>
Chris@82 15869
Chris@82 15870 _ACEOF
Chris@82 15871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@82 15872 $EGREP "memchr" >/dev/null 2>&1; then :
Chris@82 15873
Chris@82 15874 else
Chris@82 15875 ac_cv_header_stdc=no
Chris@82 15876 fi
Chris@82 15877 rm -f conftest*
Chris@82 15878
Chris@82 15879 fi
Chris@82 15880
Chris@82 15881 if test $ac_cv_header_stdc = yes; then
Chris@82 15882 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Chris@82 15883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 15884 /* end confdefs.h. */
Chris@82 15885 #include <stdlib.h>
Chris@82 15886
Chris@82 15887 _ACEOF
Chris@82 15888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@82 15889 $EGREP "free" >/dev/null 2>&1; then :
Chris@82 15890
Chris@82 15891 else
Chris@82 15892 ac_cv_header_stdc=no
Chris@82 15893 fi
Chris@82 15894 rm -f conftest*
Chris@82 15895
Chris@82 15896 fi
Chris@82 15897
Chris@82 15898 if test $ac_cv_header_stdc = yes; then
Chris@82 15899 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Chris@82 15900 if test "$cross_compiling" = yes; then :
Chris@82 15901 :
Chris@82 15902 else
Chris@82 15903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 15904 /* end confdefs.h. */
Chris@82 15905 #include <ctype.h>
Chris@82 15906 #include <stdlib.h>
Chris@82 15907 #if ((' ' & 0x0FF) == 0x020)
Chris@82 15908 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
Chris@82 15909 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Chris@82 15910 #else
Chris@82 15911 # define ISLOWER(c) \
Chris@82 15912 (('a' <= (c) && (c) <= 'i') \
Chris@82 15913 || ('j' <= (c) && (c) <= 'r') \
Chris@82 15914 || ('s' <= (c) && (c) <= 'z'))
Chris@82 15915 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
Chris@82 15916 #endif
Chris@82 15917
Chris@82 15918 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Chris@82 15919 int
Chris@82 15920 main ()
Chris@82 15921 {
Chris@82 15922 int i;
Chris@82 15923 for (i = 0; i < 256; i++)
Chris@82 15924 if (XOR (islower (i), ISLOWER (i))
Chris@82 15925 || toupper (i) != TOUPPER (i))
Chris@82 15926 return 2;
Chris@82 15927 return 0;
Chris@82 15928 }
Chris@82 15929 _ACEOF
Chris@82 15930 if ac_fn_c_try_run "$LINENO"; then :
Chris@82 15931
Chris@82 15932 else
Chris@82 15933 ac_cv_header_stdc=no
Chris@82 15934 fi
Chris@82 15935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@82 15936 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@82 15937 fi
Chris@82 15938
Chris@82 15939 fi
Chris@82 15940 fi
Chris@82 15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Chris@82 15942 $as_echo "$ac_cv_header_stdc" >&6; }
Chris@82 15943 if test $ac_cv_header_stdc = yes; then
Chris@82 15944
Chris@82 15945 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
Chris@82 15946
Chris@82 15947 fi
Chris@82 15948
Chris@82 15949 for ac_header in fcntl.h fenv.h limits.h malloc.h stddef.h sys/time.h
Chris@82 15950 do :
Chris@82 15951 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Chris@82 15952 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Chris@82 15953 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@82 15954 cat >>confdefs.h <<_ACEOF
Chris@82 15955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris@82 15956 _ACEOF
Chris@82 15957
Chris@82 15958 fi
Chris@82 15959
Chris@82 15960 done
Chris@82 15961
Chris@82 15962
Chris@82 15963 save_CFLAGS="$CFLAGS"
Chris@82 15964 save_CPPFLAGS="$CPPFLAGS"
Chris@82 15965 CFLAGS="$CFLAGS $ALTIVEC_CFLAGS $VSX_CFLAGS"
Chris@82 15966 CPPFLAGS="$CPPFLAGS $ALTIVEC_CFLAGS $VSX_CFLAGS"
Chris@82 15967 for ac_header in altivec.h
Chris@82 15968 do :
Chris@82 15969 ac_fn_c_check_header_mongrel "$LINENO" "altivec.h" "ac_cv_header_altivec_h" "$ac_includes_default"
Chris@82 15970 if test "x$ac_cv_header_altivec_h" = xyes; then :
Chris@82 15971 cat >>confdefs.h <<_ACEOF
Chris@82 15972 #define HAVE_ALTIVEC_H 1
Chris@82 15973 _ACEOF
Chris@82 15974
Chris@82 15975 fi
Chris@82 15976
Chris@82 15977 done
Chris@82 15978
Chris@82 15979 CFLAGS="$save_CFLAGS"
Chris@82 15980 CPPFLAGS="$save_CPPFLAGS"
Chris@82 15981
Chris@82 15982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Chris@82 15983 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Chris@82 15984 if ${ac_cv_c_const+:} false; then :
Chris@82 15985 $as_echo_n "(cached) " >&6
Chris@82 15986 else
Chris@82 15987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 15988 /* end confdefs.h. */
Chris@82 15989
Chris@82 15990 int
Chris@82 15991 main ()
Chris@82 15992 {
Chris@82 15993
Chris@82 15994 #ifndef __cplusplus
Chris@82 15995 /* Ultrix mips cc rejects this sort of thing. */
Chris@82 15996 typedef int charset[2];
Chris@82 15997 const charset cs = { 0, 0 };
Chris@82 15998 /* SunOS 4.1.1 cc rejects this. */
Chris@82 15999 char const *const *pcpcc;
Chris@82 16000 char **ppc;
Chris@82 16001 /* NEC SVR4.0.2 mips cc rejects this. */
Chris@82 16002 struct point {int x, y;};
Chris@82 16003 static struct point const zero = {0,0};
Chris@82 16004 /* AIX XL C 1.02.0.0 rejects this.
Chris@82 16005 It does not let you subtract one const X* pointer from another in
Chris@82 16006 an arm of an if-expression whose if-part is not a constant
Chris@82 16007 expression */
Chris@82 16008 const char *g = "string";
Chris@82 16009 pcpcc = &g + (g ? g-g : 0);
Chris@82 16010 /* HPUX 7.0 cc rejects these. */
Chris@82 16011 ++pcpcc;
Chris@82 16012 ppc = (char**) pcpcc;
Chris@82 16013 pcpcc = (char const *const *) ppc;
Chris@82 16014 { /* SCO 3.2v4 cc rejects this sort of thing. */
Chris@82 16015 char tx;
Chris@82 16016 char *t = &tx;
Chris@82 16017 char const *s = 0 ? (char *) 0 : (char const *) 0;
Chris@82 16018
Chris@82 16019 *t++ = 0;
Chris@82 16020 if (s) return 0;
Chris@82 16021 }
Chris@82 16022 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
Chris@82 16023 int x[] = {25, 17};
Chris@82 16024 const int *foo = &x[0];
Chris@82 16025 ++foo;
Chris@82 16026 }
Chris@82 16027 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
Chris@82 16028 typedef const int *iptr;
Chris@82 16029 iptr p = 0;
Chris@82 16030 ++p;
Chris@82 16031 }
Chris@82 16032 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Chris@82 16033 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
Chris@82 16034 struct s { int j; const int *ap[3]; } bx;
Chris@82 16035 struct s *b = &bx; b->j = 5;
Chris@82 16036 }
Chris@82 16037 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
Chris@82 16038 const int foo = 10;
Chris@82 16039 if (!foo) return 0;
Chris@82 16040 }
Chris@82 16041 return !cs[0] && !zero.x;
Chris@82 16042 #endif
Chris@82 16043
Chris@82 16044 ;
Chris@82 16045 return 0;
Chris@82 16046 }
Chris@82 16047 _ACEOF
Chris@82 16048 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 16049 ac_cv_c_const=yes
Chris@82 16050 else
Chris@82 16051 ac_cv_c_const=no
Chris@82 16052 fi
Chris@82 16053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 16054 fi
Chris@82 16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Chris@82 16056 $as_echo "$ac_cv_c_const" >&6; }
Chris@82 16057 if test $ac_cv_c_const = no; then
Chris@82 16058
Chris@82 16059 $as_echo "#define const /**/" >>confdefs.h
Chris@82 16060
Chris@82 16061 fi
Chris@82 16062
Chris@82 16063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Chris@82 16064 $as_echo_n "checking for inline... " >&6; }
Chris@82 16065 if ${ac_cv_c_inline+:} false; then :
Chris@82 16066 $as_echo_n "(cached) " >&6
Chris@82 16067 else
Chris@82 16068 ac_cv_c_inline=no
Chris@82 16069 for ac_kw in inline __inline__ __inline; do
Chris@82 16070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 16071 /* end confdefs.h. */
Chris@82 16072 #ifndef __cplusplus
Chris@82 16073 typedef int foo_t;
Chris@82 16074 static $ac_kw foo_t static_foo () {return 0; }
Chris@82 16075 $ac_kw foo_t foo () {return 0; }
Chris@82 16076 #endif
Chris@82 16077
Chris@82 16078 _ACEOF
Chris@82 16079 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 16080 ac_cv_c_inline=$ac_kw
Chris@82 16081 fi
Chris@82 16082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 16083 test "$ac_cv_c_inline" != no && break
Chris@82 16084 done
Chris@82 16085
Chris@82 16086 fi
Chris@82 16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Chris@82 16088 $as_echo "$ac_cv_c_inline" >&6; }
Chris@82 16089
Chris@82 16090 case $ac_cv_c_inline in
Chris@82 16091 inline | yes) ;;
Chris@82 16092 *)
Chris@82 16093 case $ac_cv_c_inline in
Chris@82 16094 no) ac_val=;;
Chris@82 16095 *) ac_val=$ac_cv_c_inline;;
Chris@82 16096 esac
Chris@82 16097 cat >>confdefs.h <<_ACEOF
Chris@82 16098 #ifndef __cplusplus
Chris@82 16099 #define inline $ac_val
Chris@82 16100 #endif
Chris@82 16101 _ACEOF
Chris@82 16102 ;;
Chris@82 16103 esac
Chris@82 16104
Chris@82 16105 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Chris@82 16106 if test "x$ac_cv_type_size_t" = xyes; then :
Chris@82 16107
Chris@82 16108 else
Chris@82 16109
Chris@82 16110 cat >>confdefs.h <<_ACEOF
Chris@82 16111 #define size_t unsigned int
Chris@82 16112 _ACEOF
Chris@82 16113
Chris@82 16114 fi
Chris@82 16115
Chris@82 16116 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
Chris@82 16117 case $ac_cv_c_uint32_t in #(
Chris@82 16118 no|yes) ;; #(
Chris@82 16119 *)
Chris@82 16120
Chris@82 16121 $as_echo "#define _UINT32_T 1" >>confdefs.h
Chris@82 16122
Chris@82 16123
Chris@82 16124 cat >>confdefs.h <<_ACEOF
Chris@82 16125 #define uint32_t $ac_cv_c_uint32_t
Chris@82 16126 _ACEOF
Chris@82 16127 ;;
Chris@82 16128 esac
Chris@82 16129
Chris@82 16130 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
Chris@82 16131 case $ac_cv_c_uint64_t in #(
Chris@82 16132 no|yes) ;; #(
Chris@82 16133 *)
Chris@82 16134
Chris@82 16135 $as_echo "#define _UINT64_T 1" >>confdefs.h
Chris@82 16136
Chris@82 16137
Chris@82 16138 cat >>confdefs.h <<_ACEOF
Chris@82 16139 #define uint64_t $ac_cv_c_uint64_t
Chris@82 16140 _ACEOF
Chris@82 16141 ;;
Chris@82 16142 esac
Chris@82 16143
Chris@82 16144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
Chris@82 16145 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
Chris@82 16146 if ${ac_cv_header_time+:} false; then :
Chris@82 16147 $as_echo_n "(cached) " >&6
Chris@82 16148 else
Chris@82 16149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 16150 /* end confdefs.h. */
Chris@82 16151 #include <sys/types.h>
Chris@82 16152 #include <sys/time.h>
Chris@82 16153 #include <time.h>
Chris@82 16154
Chris@82 16155 int
Chris@82 16156 main ()
Chris@82 16157 {
Chris@82 16158 if ((struct tm *) 0)
Chris@82 16159 return 0;
Chris@82 16160 ;
Chris@82 16161 return 0;
Chris@82 16162 }
Chris@82 16163 _ACEOF
Chris@82 16164 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 16165 ac_cv_header_time=yes
Chris@82 16166 else
Chris@82 16167 ac_cv_header_time=no
Chris@82 16168 fi
Chris@82 16169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 16170 fi
Chris@82 16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
Chris@82 16172 $as_echo "$ac_cv_header_time" >&6; }
Chris@82 16173 if test $ac_cv_header_time = yes; then
Chris@82 16174
Chris@82 16175 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
Chris@82 16176
Chris@82 16177 fi
Chris@82 16178
Chris@82 16179 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
Chris@82 16180 if test "x$ac_cv_type_long_double" = xyes; then :
Chris@82 16181
Chris@82 16182 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
Chris@82 16183
Chris@82 16184 else
Chris@82 16185
Chris@82 16186 if test $PRECISION = l; then
Chris@82 16187 as_fn_error $? "long double is not a supported type with your compiler." "$LINENO" 5
Chris@82 16188 fi
Chris@82 16189
Chris@82 16190 fi
Chris@82 16191
Chris@82 16192 ac_fn_c_check_type "$LINENO" "hrtime_t" "ac_cv_type_hrtime_t" "
Chris@82 16193 #if HAVE_SYS_TIME_H
Chris@82 16194 #include <sys/time.h>
Chris@82 16195 #endif
Chris@82 16196
Chris@82 16197 "
Chris@82 16198 if test "x$ac_cv_type_hrtime_t" = xyes; then :
Chris@82 16199
Chris@82 16200 $as_echo "#define HAVE_HRTIME_T 1" >>confdefs.h
Chris@82 16201
Chris@82 16202 fi
Chris@82 16203
Chris@82 16204
Chris@82 16205 # The cast to long int works around a bug in the HP C Compiler
Chris@82 16206 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@82 16207 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@82 16208 # This bug is HP SR number 8606223364.
Chris@82 16209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Chris@82 16210 $as_echo_n "checking size of int... " >&6; }
Chris@82 16211 if ${ac_cv_sizeof_int+:} false; then :
Chris@82 16212 $as_echo_n "(cached) " >&6
Chris@82 16213 else
Chris@82 16214 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
Chris@82 16215
Chris@82 16216 else
Chris@82 16217 if test "$ac_cv_type_int" = yes; then
Chris@82 16218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@82 16219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@82 16220 as_fn_error 77 "cannot compute sizeof (int)
Chris@82 16221 See \`config.log' for more details" "$LINENO" 5; }
Chris@82 16222 else
Chris@82 16223 ac_cv_sizeof_int=0
Chris@82 16224 fi
Chris@82 16225 fi
Chris@82 16226
Chris@82 16227 fi
Chris@82 16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Chris@82 16229 $as_echo "$ac_cv_sizeof_int" >&6; }
Chris@82 16230
Chris@82 16231
Chris@82 16232
Chris@82 16233 cat >>confdefs.h <<_ACEOF
Chris@82 16234 #define SIZEOF_INT $ac_cv_sizeof_int
Chris@82 16235 _ACEOF
Chris@82 16236
Chris@82 16237
Chris@82 16238 # The cast to long int works around a bug in the HP C Compiler
Chris@82 16239 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@82 16240 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@82 16241 # This bug is HP SR number 8606223364.
Chris@82 16242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
Chris@82 16243 $as_echo_n "checking size of unsigned int... " >&6; }
Chris@82 16244 if ${ac_cv_sizeof_unsigned_int+:} false; then :
Chris@82 16245 $as_echo_n "(cached) " >&6
Chris@82 16246 else
Chris@82 16247 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
Chris@82 16248
Chris@82 16249 else
Chris@82 16250 if test "$ac_cv_type_unsigned_int" = yes; then
Chris@82 16251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@82 16252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@82 16253 as_fn_error 77 "cannot compute sizeof (unsigned int)
Chris@82 16254 See \`config.log' for more details" "$LINENO" 5; }
Chris@82 16255 else
Chris@82 16256 ac_cv_sizeof_unsigned_int=0
Chris@82 16257 fi
Chris@82 16258 fi
Chris@82 16259
Chris@82 16260 fi
Chris@82 16261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
Chris@82 16262 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
Chris@82 16263
Chris@82 16264
Chris@82 16265
Chris@82 16266 cat >>confdefs.h <<_ACEOF
Chris@82 16267 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
Chris@82 16268 _ACEOF
Chris@82 16269
Chris@82 16270
Chris@82 16271 # The cast to long int works around a bug in the HP C Compiler
Chris@82 16272 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@82 16273 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@82 16274 # This bug is HP SR number 8606223364.
Chris@82 16275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Chris@82 16276 $as_echo_n "checking size of long... " >&6; }
Chris@82 16277 if ${ac_cv_sizeof_long+:} false; then :
Chris@82 16278 $as_echo_n "(cached) " >&6
Chris@82 16279 else
Chris@82 16280 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
Chris@82 16281
Chris@82 16282 else
Chris@82 16283 if test "$ac_cv_type_long" = yes; then
Chris@82 16284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@82 16285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@82 16286 as_fn_error 77 "cannot compute sizeof (long)
Chris@82 16287 See \`config.log' for more details" "$LINENO" 5; }
Chris@82 16288 else
Chris@82 16289 ac_cv_sizeof_long=0
Chris@82 16290 fi
Chris@82 16291 fi
Chris@82 16292
Chris@82 16293 fi
Chris@82 16294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Chris@82 16295 $as_echo "$ac_cv_sizeof_long" >&6; }
Chris@82 16296
Chris@82 16297
Chris@82 16298
Chris@82 16299 cat >>confdefs.h <<_ACEOF
Chris@82 16300 #define SIZEOF_LONG $ac_cv_sizeof_long
Chris@82 16301 _ACEOF
Chris@82 16302
Chris@82 16303
Chris@82 16304 # The cast to long int works around a bug in the HP C Compiler
Chris@82 16305 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@82 16306 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@82 16307 # This bug is HP SR number 8606223364.
Chris@82 16308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
Chris@82 16309 $as_echo_n "checking size of unsigned long... " >&6; }
Chris@82 16310 if ${ac_cv_sizeof_unsigned_long+:} false; then :
Chris@82 16311 $as_echo_n "(cached) " >&6
Chris@82 16312 else
Chris@82 16313 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
Chris@82 16314
Chris@82 16315 else
Chris@82 16316 if test "$ac_cv_type_unsigned_long" = yes; then
Chris@82 16317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@82 16318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@82 16319 as_fn_error 77 "cannot compute sizeof (unsigned long)
Chris@82 16320 See \`config.log' for more details" "$LINENO" 5; }
Chris@82 16321 else
Chris@82 16322 ac_cv_sizeof_unsigned_long=0
Chris@82 16323 fi
Chris@82 16324 fi
Chris@82 16325
Chris@82 16326 fi
Chris@82 16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
Chris@82 16328 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
Chris@82 16329
Chris@82 16330
Chris@82 16331
Chris@82 16332 cat >>confdefs.h <<_ACEOF
Chris@82 16333 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
Chris@82 16334 _ACEOF
Chris@82 16335
Chris@82 16336
Chris@82 16337 # The cast to long int works around a bug in the HP C Compiler
Chris@82 16338 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@82 16339 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@82 16340 # This bug is HP SR number 8606223364.
Chris@82 16341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Chris@82 16342 $as_echo_n "checking size of long long... " >&6; }
Chris@82 16343 if ${ac_cv_sizeof_long_long+:} false; then :
Chris@82 16344 $as_echo_n "(cached) " >&6
Chris@82 16345 else
Chris@82 16346 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
Chris@82 16347
Chris@82 16348 else
Chris@82 16349 if test "$ac_cv_type_long_long" = yes; then
Chris@82 16350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@82 16351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@82 16352 as_fn_error 77 "cannot compute sizeof (long long)
Chris@82 16353 See \`config.log' for more details" "$LINENO" 5; }
Chris@82 16354 else
Chris@82 16355 ac_cv_sizeof_long_long=0
Chris@82 16356 fi
Chris@82 16357 fi
Chris@82 16358
Chris@82 16359 fi
Chris@82 16360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Chris@82 16361 $as_echo "$ac_cv_sizeof_long_long" >&6; }
Chris@82 16362
Chris@82 16363
Chris@82 16364
Chris@82 16365 cat >>confdefs.h <<_ACEOF
Chris@82 16366 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Chris@82 16367 _ACEOF
Chris@82 16368
Chris@82 16369
Chris@82 16370 # The cast to long int works around a bug in the HP C Compiler
Chris@82 16371 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@82 16372 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@82 16373 # This bug is HP SR number 8606223364.
Chris@82 16374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
Chris@82 16375 $as_echo_n "checking size of unsigned long long... " >&6; }
Chris@82 16376 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
Chris@82 16377 $as_echo_n "(cached) " >&6
Chris@82 16378 else
Chris@82 16379 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
Chris@82 16380
Chris@82 16381 else
Chris@82 16382 if test "$ac_cv_type_unsigned_long_long" = yes; then
Chris@82 16383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@82 16384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@82 16385 as_fn_error 77 "cannot compute sizeof (unsigned long long)
Chris@82 16386 See \`config.log' for more details" "$LINENO" 5; }
Chris@82 16387 else
Chris@82 16388 ac_cv_sizeof_unsigned_long_long=0
Chris@82 16389 fi
Chris@82 16390 fi
Chris@82 16391
Chris@82 16392 fi
Chris@82 16393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
Chris@82 16394 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
Chris@82 16395
Chris@82 16396
Chris@82 16397
Chris@82 16398 cat >>confdefs.h <<_ACEOF
Chris@82 16399 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
Chris@82 16400 _ACEOF
Chris@82 16401
Chris@82 16402
Chris@82 16403 # The cast to long int works around a bug in the HP C Compiler
Chris@82 16404 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@82 16405 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@82 16406 # This bug is HP SR number 8606223364.
Chris@82 16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
Chris@82 16408 $as_echo_n "checking size of size_t... " >&6; }
Chris@82 16409 if ${ac_cv_sizeof_size_t+:} false; then :
Chris@82 16410 $as_echo_n "(cached) " >&6
Chris@82 16411 else
Chris@82 16412 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
Chris@82 16413
Chris@82 16414 else
Chris@82 16415 if test "$ac_cv_type_size_t" = yes; then
Chris@82 16416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@82 16417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@82 16418 as_fn_error 77 "cannot compute sizeof (size_t)
Chris@82 16419 See \`config.log' for more details" "$LINENO" 5; }
Chris@82 16420 else
Chris@82 16421 ac_cv_sizeof_size_t=0
Chris@82 16422 fi
Chris@82 16423 fi
Chris@82 16424
Chris@82 16425 fi
Chris@82 16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
Chris@82 16427 $as_echo "$ac_cv_sizeof_size_t" >&6; }
Chris@82 16428
Chris@82 16429
Chris@82 16430
Chris@82 16431 cat >>confdefs.h <<_ACEOF
Chris@82 16432 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
Chris@82 16433 _ACEOF
Chris@82 16434
Chris@82 16435
Chris@82 16436 # The cast to long int works around a bug in the HP C Compiler
Chris@82 16437 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@82 16438 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@82 16439 # This bug is HP SR number 8606223364.
Chris@82 16440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5
Chris@82 16441 $as_echo_n "checking size of ptrdiff_t... " >&6; }
Chris@82 16442 if ${ac_cv_sizeof_ptrdiff_t+:} false; then :
Chris@82 16443 $as_echo_n "(cached) " >&6
Chris@82 16444 else
Chris@82 16445 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t" "$ac_includes_default"; then :
Chris@82 16446
Chris@82 16447 else
Chris@82 16448 if test "$ac_cv_type_ptrdiff_t" = yes; then
Chris@82 16449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@82 16450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@82 16451 as_fn_error 77 "cannot compute sizeof (ptrdiff_t)
Chris@82 16452 See \`config.log' for more details" "$LINENO" 5; }
Chris@82 16453 else
Chris@82 16454 ac_cv_sizeof_ptrdiff_t=0
Chris@82 16455 fi
Chris@82 16456 fi
Chris@82 16457
Chris@82 16458 fi
Chris@82 16459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5
Chris@82 16460 $as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; }
Chris@82 16461
Chris@82 16462
Chris@82 16463
Chris@82 16464 cat >>confdefs.h <<_ACEOF
Chris@82 16465 #define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
Chris@82 16466 _ACEOF
Chris@82 16467
Chris@82 16468
Chris@82 16469
Chris@82 16470 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
Chris@82 16471 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
Chris@82 16472
Chris@82 16473 cat >>confdefs.h <<_ACEOF
Chris@82 16474 #define HAVE_PTRDIFF_T 1
Chris@82 16475 _ACEOF
Chris@82 16476
Chris@82 16477
Chris@82 16478 fi
Chris@82 16479
Chris@82 16480 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default
Chris@82 16481 #ifdef HAVE_STDINT_H
Chris@82 16482 # include <stdint.h>
Chris@82 16483 #endif
Chris@82 16484 "
Chris@82 16485 if test "x$ac_cv_type_uintptr_t" = xyes; then :
Chris@82 16486
Chris@82 16487 cat >>confdefs.h <<_ACEOF
Chris@82 16488 #define HAVE_UINTPTR_T 1
Chris@82 16489 _ACEOF
Chris@82 16490
Chris@82 16491
Chris@82 16492 else
Chris@82 16493 # The cast to long int works around a bug in the HP C Compiler
Chris@82 16494 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@82 16495 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@82 16496 # This bug is HP SR number 8606223364.
Chris@82 16497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
Chris@82 16498 $as_echo_n "checking size of void *... " >&6; }
Chris@82 16499 if ${ac_cv_sizeof_void_p+:} false; then :
Chris@82 16500 $as_echo_n "(cached) " >&6
Chris@82 16501 else
Chris@82 16502 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
Chris@82 16503
Chris@82 16504 else
Chris@82 16505 if test "$ac_cv_type_void_p" = yes; then
Chris@82 16506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@82 16507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@82 16508 as_fn_error 77 "cannot compute sizeof (void *)
Chris@82 16509 See \`config.log' for more details" "$LINENO" 5; }
Chris@82 16510 else
Chris@82 16511 ac_cv_sizeof_void_p=0
Chris@82 16512 fi
Chris@82 16513 fi
Chris@82 16514
Chris@82 16515 fi
Chris@82 16516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
Chris@82 16517 $as_echo "$ac_cv_sizeof_void_p" >&6; }
Chris@82 16518
Chris@82 16519
Chris@82 16520
Chris@82 16521 cat >>confdefs.h <<_ACEOF
Chris@82 16522 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
Chris@82 16523 _ACEOF
Chris@82 16524
Chris@82 16525
Chris@82 16526 fi
Chris@82 16527
Chris@82 16528
Chris@82 16529 # The cast to long int works around a bug in the HP C Compiler
Chris@82 16530 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@82 16531 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@82 16532 # This bug is HP SR number 8606223364.
Chris@82 16533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
Chris@82 16534 $as_echo_n "checking size of float... " >&6; }
Chris@82 16535 if ${ac_cv_sizeof_float+:} false; then :
Chris@82 16536 $as_echo_n "(cached) " >&6
Chris@82 16537 else
Chris@82 16538 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
Chris@82 16539
Chris@82 16540 else
Chris@82 16541 if test "$ac_cv_type_float" = yes; then
Chris@82 16542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@82 16543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@82 16544 as_fn_error 77 "cannot compute sizeof (float)
Chris@82 16545 See \`config.log' for more details" "$LINENO" 5; }
Chris@82 16546 else
Chris@82 16547 ac_cv_sizeof_float=0
Chris@82 16548 fi
Chris@82 16549 fi
Chris@82 16550
Chris@82 16551 fi
Chris@82 16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
Chris@82 16553 $as_echo "$ac_cv_sizeof_float" >&6; }
Chris@82 16554
Chris@82 16555
Chris@82 16556
Chris@82 16557 cat >>confdefs.h <<_ACEOF
Chris@82 16558 #define SIZEOF_FLOAT $ac_cv_sizeof_float
Chris@82 16559 _ACEOF
Chris@82 16560
Chris@82 16561
Chris@82 16562 # The cast to long int works around a bug in the HP C Compiler
Chris@82 16563 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@82 16564 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@82 16565 # This bug is HP SR number 8606223364.
Chris@82 16566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
Chris@82 16567 $as_echo_n "checking size of double... " >&6; }
Chris@82 16568 if ${ac_cv_sizeof_double+:} false; then :
Chris@82 16569 $as_echo_n "(cached) " >&6
Chris@82 16570 else
Chris@82 16571 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
Chris@82 16572
Chris@82 16573 else
Chris@82 16574 if test "$ac_cv_type_double" = yes; then
Chris@82 16575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@82 16576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@82 16577 as_fn_error 77 "cannot compute sizeof (double)
Chris@82 16578 See \`config.log' for more details" "$LINENO" 5; }
Chris@82 16579 else
Chris@82 16580 ac_cv_sizeof_double=0
Chris@82 16581 fi
Chris@82 16582 fi
Chris@82 16583
Chris@82 16584 fi
Chris@82 16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
Chris@82 16586 $as_echo "$ac_cv_sizeof_double" >&6; }
Chris@82 16587
Chris@82 16588
Chris@82 16589
Chris@82 16590 cat >>confdefs.h <<_ACEOF
Chris@82 16591 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
Chris@82 16592 _ACEOF
Chris@82 16593
Chris@82 16594
Chris@82 16595
Chris@82 16596 # The cast to long int works around a bug in the HP C Compiler
Chris@82 16597 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
Chris@82 16598 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
Chris@82 16599 # This bug is HP SR number 8606223364.
Chris@82 16600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fftw_r2r_kind" >&5
Chris@82 16601 $as_echo_n "checking size of fftw_r2r_kind... " >&6; }
Chris@82 16602 if ${ac_cv_sizeof_fftw_r2r_kind+:} false; then :
Chris@82 16603 $as_echo_n "(cached) " >&6
Chris@82 16604 else
Chris@82 16605 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fftw_r2r_kind))" "ac_cv_sizeof_fftw_r2r_kind" "typedef enum {
Chris@82 16606 FFTW_R2HC=0, FFTW_HC2R=1, FFTW_DHT=2,
Chris@82 16607 FFTW_REDFT00=3, FFTW_REDFT01=4, FFTW_REDFT10=5, FFTW_REDFT11=6,
Chris@82 16608 FFTW_RODFT00=7, FFTW_RODFT01=8, FFTW_RODFT10=9, FFTW_RODFT11=10
Chris@82 16609 } fftw_r2r_kind;
Chris@82 16610 "; then :
Chris@82 16611
Chris@82 16612 else
Chris@82 16613 if test "$ac_cv_type_fftw_r2r_kind" = yes; then
Chris@82 16614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@82 16615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@82 16616 as_fn_error 77 "cannot compute sizeof (fftw_r2r_kind)
Chris@82 16617 See \`config.log' for more details" "$LINENO" 5; }
Chris@82 16618 else
Chris@82 16619 ac_cv_sizeof_fftw_r2r_kind=0
Chris@82 16620 fi
Chris@82 16621 fi
Chris@82 16622
Chris@82 16623 fi
Chris@82 16624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fftw_r2r_kind" >&5
Chris@82 16625 $as_echo "$ac_cv_sizeof_fftw_r2r_kind" >&6; }
Chris@82 16626
Chris@82 16627
Chris@82 16628
Chris@82 16629 cat >>confdefs.h <<_ACEOF
Chris@82 16630 #define SIZEOF_FFTW_R2R_KIND $ac_cv_sizeof_fftw_r2r_kind
Chris@82 16631 _ACEOF
Chris@82 16632
Chris@82 16633
Chris@82 16634 if test 0 = $ac_cv_sizeof_fftw_r2r_kind; then as_fn_error $? "sizeof(fftw_r2r_kind) test failed" "$LINENO" 5; fi
Chris@82 16635 C_FFTW_R2R_KIND=C_INT`expr $ac_cv_sizeof_fftw_r2r_kind \* 8`_T
Chris@82 16636
Chris@82 16637
Chris@82 16638 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
Chris@82 16639 # for constant arguments. Useless!
Chris@82 16640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Chris@82 16641 $as_echo_n "checking for working alloca.h... " >&6; }
Chris@82 16642 if ${ac_cv_working_alloca_h+:} false; then :
Chris@82 16643 $as_echo_n "(cached) " >&6
Chris@82 16644 else
Chris@82 16645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 16646 /* end confdefs.h. */
Chris@82 16647 #include <alloca.h>
Chris@82 16648 int
Chris@82 16649 main ()
Chris@82 16650 {
Chris@82 16651 char *p = (char *) alloca (2 * sizeof (int));
Chris@82 16652 if (p) return 0;
Chris@82 16653 ;
Chris@82 16654 return 0;
Chris@82 16655 }
Chris@82 16656 _ACEOF
Chris@82 16657 if ac_fn_c_try_link "$LINENO"; then :
Chris@82 16658 ac_cv_working_alloca_h=yes
Chris@82 16659 else
Chris@82 16660 ac_cv_working_alloca_h=no
Chris@82 16661 fi
Chris@82 16662 rm -f core conftest.err conftest.$ac_objext \
Chris@82 16663 conftest$ac_exeext conftest.$ac_ext
Chris@82 16664 fi
Chris@82 16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Chris@82 16666 $as_echo "$ac_cv_working_alloca_h" >&6; }
Chris@82 16667 if test $ac_cv_working_alloca_h = yes; then
Chris@82 16668
Chris@82 16669 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Chris@82 16670
Chris@82 16671 fi
Chris@82 16672
Chris@82 16673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Chris@82 16674 $as_echo_n "checking for alloca... " >&6; }
Chris@82 16675 if ${ac_cv_func_alloca_works+:} false; then :
Chris@82 16676 $as_echo_n "(cached) " >&6
Chris@82 16677 else
Chris@82 16678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 16679 /* end confdefs.h. */
Chris@82 16680 #ifdef __GNUC__
Chris@82 16681 # define alloca __builtin_alloca
Chris@82 16682 #else
Chris@82 16683 # ifdef _MSC_VER
Chris@82 16684 # include <malloc.h>
Chris@82 16685 # define alloca _alloca
Chris@82 16686 # else
Chris@82 16687 # ifdef HAVE_ALLOCA_H
Chris@82 16688 # include <alloca.h>
Chris@82 16689 # else
Chris@82 16690 # ifdef _AIX
Chris@82 16691 #pragma alloca
Chris@82 16692 # else
Chris@82 16693 # ifndef alloca /* predefined by HP cc +Olibcalls */
Chris@82 16694 void *alloca (size_t);
Chris@82 16695 # endif
Chris@82 16696 # endif
Chris@82 16697 # endif
Chris@82 16698 # endif
Chris@82 16699 #endif
Chris@82 16700
Chris@82 16701 int
Chris@82 16702 main ()
Chris@82 16703 {
Chris@82 16704 char *p = (char *) alloca (1);
Chris@82 16705 if (p) return 0;
Chris@82 16706 ;
Chris@82 16707 return 0;
Chris@82 16708 }
Chris@82 16709 _ACEOF
Chris@82 16710 if ac_fn_c_try_link "$LINENO"; then :
Chris@82 16711 ac_cv_func_alloca_works=yes
Chris@82 16712 else
Chris@82 16713 ac_cv_func_alloca_works=no
Chris@82 16714 fi
Chris@82 16715 rm -f core conftest.err conftest.$ac_objext \
Chris@82 16716 conftest$ac_exeext conftest.$ac_ext
Chris@82 16717 fi
Chris@82 16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Chris@82 16719 $as_echo "$ac_cv_func_alloca_works" >&6; }
Chris@82 16720
Chris@82 16721 if test $ac_cv_func_alloca_works = yes; then
Chris@82 16722
Chris@82 16723 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Chris@82 16724
Chris@82 16725 else
Chris@82 16726 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
Chris@82 16727 # that cause trouble. Some versions do not even contain alloca or
Chris@82 16728 # contain a buggy version. If you still want to use their alloca,
Chris@82 16729 # use ar to extract alloca.o from them instead of compiling alloca.c.
Chris@82 16730
Chris@82 16731 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Chris@82 16732
Chris@82 16733 $as_echo "#define C_ALLOCA 1" >>confdefs.h
Chris@82 16734
Chris@82 16735
Chris@82 16736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Chris@82 16737 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Chris@82 16738 if ${ac_cv_os_cray+:} false; then :
Chris@82 16739 $as_echo_n "(cached) " >&6
Chris@82 16740 else
Chris@82 16741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 16742 /* end confdefs.h. */
Chris@82 16743 #if defined CRAY && ! defined CRAY2
Chris@82 16744 webecray
Chris@82 16745 #else
Chris@82 16746 wenotbecray
Chris@82 16747 #endif
Chris@82 16748
Chris@82 16749 _ACEOF
Chris@82 16750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@82 16751 $EGREP "webecray" >/dev/null 2>&1; then :
Chris@82 16752 ac_cv_os_cray=yes
Chris@82 16753 else
Chris@82 16754 ac_cv_os_cray=no
Chris@82 16755 fi
Chris@82 16756 rm -f conftest*
Chris@82 16757
Chris@82 16758 fi
Chris@82 16759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Chris@82 16760 $as_echo "$ac_cv_os_cray" >&6; }
Chris@82 16761 if test $ac_cv_os_cray = yes; then
Chris@82 16762 for ac_func in _getb67 GETB67 getb67; do
Chris@82 16763 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Chris@82 16764 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Chris@82 16765 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Chris@82 16766
Chris@82 16767 cat >>confdefs.h <<_ACEOF
Chris@82 16768 #define CRAY_STACKSEG_END $ac_func
Chris@82 16769 _ACEOF
Chris@82 16770
Chris@82 16771 break
Chris@82 16772 fi
Chris@82 16773
Chris@82 16774 done
Chris@82 16775 fi
Chris@82 16776
Chris@82 16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Chris@82 16778 $as_echo_n "checking stack direction for C alloca... " >&6; }
Chris@82 16779 if ${ac_cv_c_stack_direction+:} false; then :
Chris@82 16780 $as_echo_n "(cached) " >&6
Chris@82 16781 else
Chris@82 16782 if test "$cross_compiling" = yes; then :
Chris@82 16783 ac_cv_c_stack_direction=0
Chris@82 16784 else
Chris@82 16785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 16786 /* end confdefs.h. */
Chris@82 16787 $ac_includes_default
Chris@82 16788 int
Chris@82 16789 find_stack_direction (int *addr, int depth)
Chris@82 16790 {
Chris@82 16791 int dir, dummy = 0;
Chris@82 16792 if (! addr)
Chris@82 16793 addr = &dummy;
Chris@82 16794 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
Chris@82 16795 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
Chris@82 16796 return dir + dummy;
Chris@82 16797 }
Chris@82 16798
Chris@82 16799 int
Chris@82 16800 main (int argc, char **argv)
Chris@82 16801 {
Chris@82 16802 return find_stack_direction (0, argc + !argv + 20) < 0;
Chris@82 16803 }
Chris@82 16804 _ACEOF
Chris@82 16805 if ac_fn_c_try_run "$LINENO"; then :
Chris@82 16806 ac_cv_c_stack_direction=1
Chris@82 16807 else
Chris@82 16808 ac_cv_c_stack_direction=-1
Chris@82 16809 fi
Chris@82 16810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@82 16811 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@82 16812 fi
Chris@82 16813
Chris@82 16814 fi
Chris@82 16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Chris@82 16816 $as_echo "$ac_cv_c_stack_direction" >&6; }
Chris@82 16817 cat >>confdefs.h <<_ACEOF
Chris@82 16818 #define STACK_DIRECTION $ac_cv_c_stack_direction
Chris@82 16819 _ACEOF
Chris@82 16820
Chris@82 16821
Chris@82 16822 fi
Chris@82 16823
Chris@82 16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
Chris@82 16825 $as_echo_n "checking for working strtod... " >&6; }
Chris@82 16826 if ${ac_cv_func_strtod+:} false; then :
Chris@82 16827 $as_echo_n "(cached) " >&6
Chris@82 16828 else
Chris@82 16829 if test "$cross_compiling" = yes; then :
Chris@82 16830 ac_cv_func_strtod=no
Chris@82 16831 else
Chris@82 16832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 16833 /* end confdefs.h. */
Chris@82 16834
Chris@82 16835 $ac_includes_default
Chris@82 16836 #ifndef strtod
Chris@82 16837 double strtod ();
Chris@82 16838 #endif
Chris@82 16839 int
Chris@82 16840 main()
Chris@82 16841 {
Chris@82 16842 {
Chris@82 16843 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
Chris@82 16844 char *string = " +69";
Chris@82 16845 char *term;
Chris@82 16846 double value;
Chris@82 16847 value = strtod (string, &term);
Chris@82 16848 if (value != 69 || term != (string + 4))
Chris@82 16849 return 1;
Chris@82 16850 }
Chris@82 16851
Chris@82 16852 {
Chris@82 16853 /* Under Solaris 2.4, strtod returns the wrong value for the
Chris@82 16854 terminating character under some conditions. */
Chris@82 16855 char *string = "NaN";
Chris@82 16856 char *term;
Chris@82 16857 strtod (string, &term);
Chris@82 16858 if (term != string && *(term - 1) == 0)
Chris@82 16859 return 1;
Chris@82 16860 }
Chris@82 16861 return 0;
Chris@82 16862 }
Chris@82 16863
Chris@82 16864 _ACEOF
Chris@82 16865 if ac_fn_c_try_run "$LINENO"; then :
Chris@82 16866 ac_cv_func_strtod=yes
Chris@82 16867 else
Chris@82 16868 ac_cv_func_strtod=no
Chris@82 16869 fi
Chris@82 16870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@82 16871 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@82 16872 fi
Chris@82 16873
Chris@82 16874 fi
Chris@82 16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
Chris@82 16876 $as_echo "$ac_cv_func_strtod" >&6; }
Chris@82 16877 if test $ac_cv_func_strtod = no; then
Chris@82 16878 case " $LIBOBJS " in
Chris@82 16879 *" strtod.$ac_objext "* ) ;;
Chris@82 16880 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
Chris@82 16881 ;;
Chris@82 16882 esac
Chris@82 16883
Chris@82 16884 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
Chris@82 16885 if test "x$ac_cv_func_pow" = xyes; then :
Chris@82 16886
Chris@82 16887 fi
Chris@82 16888
Chris@82 16889 if test $ac_cv_func_pow = no; then
Chris@82 16890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
Chris@82 16891 $as_echo_n "checking for pow in -lm... " >&6; }
Chris@82 16892 if ${ac_cv_lib_m_pow+:} false; then :
Chris@82 16893 $as_echo_n "(cached) " >&6
Chris@82 16894 else
Chris@82 16895 ac_check_lib_save_LIBS=$LIBS
Chris@82 16896 LIBS="-lm $LIBS"
Chris@82 16897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 16898 /* end confdefs.h. */
Chris@82 16899
Chris@82 16900 /* Override any GCC internal prototype to avoid an error.
Chris@82 16901 Use char because int might match the return type of a GCC
Chris@82 16902 builtin and then its argument prototype would still apply. */
Chris@82 16903 #ifdef __cplusplus
Chris@82 16904 extern "C"
Chris@82 16905 #endif
Chris@82 16906 char pow ();
Chris@82 16907 int
Chris@82 16908 main ()
Chris@82 16909 {
Chris@82 16910 return pow ();
Chris@82 16911 ;
Chris@82 16912 return 0;
Chris@82 16913 }
Chris@82 16914 _ACEOF
Chris@82 16915 if ac_fn_c_try_link "$LINENO"; then :
Chris@82 16916 ac_cv_lib_m_pow=yes
Chris@82 16917 else
Chris@82 16918 ac_cv_lib_m_pow=no
Chris@82 16919 fi
Chris@82 16920 rm -f core conftest.err conftest.$ac_objext \
Chris@82 16921 conftest$ac_exeext conftest.$ac_ext
Chris@82 16922 LIBS=$ac_check_lib_save_LIBS
Chris@82 16923 fi
Chris@82 16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
Chris@82 16925 $as_echo "$ac_cv_lib_m_pow" >&6; }
Chris@82 16926 if test "x$ac_cv_lib_m_pow" = xyes; then :
Chris@82 16927 POW_LIB=-lm
Chris@82 16928 else
Chris@82 16929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
Chris@82 16930 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
Chris@82 16931 fi
Chris@82 16932
Chris@82 16933 fi
Chris@82 16934
Chris@82 16935 fi
Chris@82 16936
Chris@82 16937 for ac_func in vprintf
Chris@82 16938 do :
Chris@82 16939 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
Chris@82 16940 if test "x$ac_cv_func_vprintf" = xyes; then :
Chris@82 16941 cat >>confdefs.h <<_ACEOF
Chris@82 16942 #define HAVE_VPRINTF 1
Chris@82 16943 _ACEOF
Chris@82 16944
Chris@82 16945 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
Chris@82 16946 if test "x$ac_cv_func__doprnt" = xyes; then :
Chris@82 16947
Chris@82 16948 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Chris@82 16949
Chris@82 16950 fi
Chris@82 16951
Chris@82 16952 fi
Chris@82 16953 done
Chris@82 16954
Chris@82 16955
Chris@82 16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
Chris@82 16957 $as_echo_n "checking for sin in -lm... " >&6; }
Chris@82 16958 if ${ac_cv_lib_m_sin+:} false; then :
Chris@82 16959 $as_echo_n "(cached) " >&6
Chris@82 16960 else
Chris@82 16961 ac_check_lib_save_LIBS=$LIBS
Chris@82 16962 LIBS="-lm $LIBS"
Chris@82 16963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 16964 /* end confdefs.h. */
Chris@82 16965
Chris@82 16966 /* Override any GCC internal prototype to avoid an error.
Chris@82 16967 Use char because int might match the return type of a GCC
Chris@82 16968 builtin and then its argument prototype would still apply. */
Chris@82 16969 #ifdef __cplusplus
Chris@82 16970 extern "C"
Chris@82 16971 #endif
Chris@82 16972 char sin ();
Chris@82 16973 int
Chris@82 16974 main ()
Chris@82 16975 {
Chris@82 16976 return sin ();
Chris@82 16977 ;
Chris@82 16978 return 0;
Chris@82 16979 }
Chris@82 16980 _ACEOF
Chris@82 16981 if ac_fn_c_try_link "$LINENO"; then :
Chris@82 16982 ac_cv_lib_m_sin=yes
Chris@82 16983 else
Chris@82 16984 ac_cv_lib_m_sin=no
Chris@82 16985 fi
Chris@82 16986 rm -f core conftest.err conftest.$ac_objext \
Chris@82 16987 conftest$ac_exeext conftest.$ac_ext
Chris@82 16988 LIBS=$ac_check_lib_save_LIBS
Chris@82 16989 fi
Chris@82 16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
Chris@82 16991 $as_echo "$ac_cv_lib_m_sin" >&6; }
Chris@82 16992 if test "x$ac_cv_lib_m_sin" = xyes; then :
Chris@82 16993 cat >>confdefs.h <<_ACEOF
Chris@82 16994 #define HAVE_LIBM 1
Chris@82 16995 _ACEOF
Chris@82 16996
Chris@82 16997 LIBS="-lm $LIBS"
Chris@82 16998
Chris@82 16999 fi
Chris@82 17000
Chris@82 17001
Chris@82 17002 if test $PRECISION = q; then
Chris@82 17003
Chris@82 17004
Chris@82 17005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gcc 4.6.0 or later" >&5
Chris@82 17006 $as_echo_n "checking whether we are using gcc 4.6.0 or later... " >&6; }
Chris@82 17007 if ${ax_cv_gcc_4_6_0+:} false; then :
Chris@82 17008 $as_echo_n "(cached) " >&6
Chris@82 17009 else
Chris@82 17010
Chris@82 17011 ax_cv_gcc_4_6_0=no
Chris@82 17012 if test "$GCC" = "yes"; then
Chris@82 17013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 17014 /* end confdefs.h. */
Chris@82 17015
Chris@82 17016 #ifdef __GNUC__
Chris@82 17017 # if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ > 6) \
Chris@82 17018 || (__GNUC__ == 4 && __GNUC_MINOR__ == 6 && __GNUC_PATCHLEVEL__ >= 0)
Chris@82 17019 yes;
Chris@82 17020 # endif
Chris@82 17021 #endif
Chris@82 17022
Chris@82 17023 _ACEOF
Chris@82 17024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@82 17025 $EGREP "yes" >/dev/null 2>&1; then :
Chris@82 17026 ax_cv_gcc_4_6_0=yes
Chris@82 17027 fi
Chris@82 17028 rm -f conftest*
Chris@82 17029
Chris@82 17030 fi
Chris@82 17031
Chris@82 17032 fi
Chris@82 17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_4_6_0" >&5
Chris@82 17034 $as_echo "$ax_cv_gcc_4_6_0" >&6; }
Chris@82 17035 if test "$ax_cv_gcc_4_6_0" = yes; then
Chris@82 17036 :
Chris@82 17037 else
Chris@82 17038 as_fn_error $? "gcc 4.6 or later required for quad precision support" "$LINENO" 5
Chris@82 17039 fi
Chris@82 17040
Chris@82 17041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinq in -lquadmath" >&5
Chris@82 17042 $as_echo_n "checking for sinq in -lquadmath... " >&6; }
Chris@82 17043 if ${ac_cv_lib_quadmath_sinq+:} false; then :
Chris@82 17044 $as_echo_n "(cached) " >&6
Chris@82 17045 else
Chris@82 17046 ac_check_lib_save_LIBS=$LIBS
Chris@82 17047 LIBS="-lquadmath $LIBS"
Chris@82 17048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 17049 /* end confdefs.h. */
Chris@82 17050
Chris@82 17051 /* Override any GCC internal prototype to avoid an error.
Chris@82 17052 Use char because int might match the return type of a GCC
Chris@82 17053 builtin and then its argument prototype would still apply. */
Chris@82 17054 #ifdef __cplusplus
Chris@82 17055 extern "C"
Chris@82 17056 #endif
Chris@82 17057 char sinq ();
Chris@82 17058 int
Chris@82 17059 main ()
Chris@82 17060 {
Chris@82 17061 return sinq ();
Chris@82 17062 ;
Chris@82 17063 return 0;
Chris@82 17064 }
Chris@82 17065 _ACEOF
Chris@82 17066 if ac_fn_c_try_link "$LINENO"; then :
Chris@82 17067 ac_cv_lib_quadmath_sinq=yes
Chris@82 17068 else
Chris@82 17069 ac_cv_lib_quadmath_sinq=no
Chris@82 17070 fi
Chris@82 17071 rm -f core conftest.err conftest.$ac_objext \
Chris@82 17072 conftest$ac_exeext conftest.$ac_ext
Chris@82 17073 LIBS=$ac_check_lib_save_LIBS
Chris@82 17074 fi
Chris@82 17075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quadmath_sinq" >&5
Chris@82 17076 $as_echo "$ac_cv_lib_quadmath_sinq" >&6; }
Chris@82 17077 if test "x$ac_cv_lib_quadmath_sinq" = xyes; then :
Chris@82 17078 cat >>confdefs.h <<_ACEOF
Chris@82 17079 #define HAVE_LIBQUADMATH 1
Chris@82 17080 _ACEOF
Chris@82 17081
Chris@82 17082 LIBS="-lquadmath $LIBS"
Chris@82 17083
Chris@82 17084 else
Chris@82 17085 as_fn_error $? "quad precision requires libquadmath for quad-precision trigonometric routines" "$LINENO" 5
Chris@82 17086 fi
Chris@82 17087
Chris@82 17088 LIBQUADMATH=-lquadmath
Chris@82 17089 fi
Chris@82 17090
Chris@82 17091
Chris@82 17092 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 memmove strchr getpagesize
Chris@82 17093 do :
Chris@82 17094 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Chris@82 17095 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Chris@82 17096 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Chris@82 17097 cat >>confdefs.h <<_ACEOF
Chris@82 17098 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Chris@82 17099 _ACEOF
Chris@82 17100
Chris@82 17101 fi
Chris@82 17102 done
Chris@82 17103
Chris@82 17104 ac_fn_c_check_decl "$LINENO" "sinl" "ac_cv_have_decl_sinl" "#include <math.h>
Chris@82 17105 "
Chris@82 17106 if test "x$ac_cv_have_decl_sinl" = xyes; then :
Chris@82 17107 ac_have_decl=1
Chris@82 17108 else
Chris@82 17109 ac_have_decl=0
Chris@82 17110 fi
Chris@82 17111
Chris@82 17112 cat >>confdefs.h <<_ACEOF
Chris@82 17113 #define HAVE_DECL_SINL $ac_have_decl
Chris@82 17114 _ACEOF
Chris@82 17115 ac_fn_c_check_decl "$LINENO" "cosl" "ac_cv_have_decl_cosl" "#include <math.h>
Chris@82 17116 "
Chris@82 17117 if test "x$ac_cv_have_decl_cosl" = xyes; then :
Chris@82 17118 ac_have_decl=1
Chris@82 17119 else
Chris@82 17120 ac_have_decl=0
Chris@82 17121 fi
Chris@82 17122
Chris@82 17123 cat >>confdefs.h <<_ACEOF
Chris@82 17124 #define HAVE_DECL_COSL $ac_have_decl
Chris@82 17125 _ACEOF
Chris@82 17126 ac_fn_c_check_decl "$LINENO" "sinq" "ac_cv_have_decl_sinq" "#include <math.h>
Chris@82 17127 "
Chris@82 17128 if test "x$ac_cv_have_decl_sinq" = xyes; then :
Chris@82 17129 ac_have_decl=1
Chris@82 17130 else
Chris@82 17131 ac_have_decl=0
Chris@82 17132 fi
Chris@82 17133
Chris@82 17134 cat >>confdefs.h <<_ACEOF
Chris@82 17135 #define HAVE_DECL_SINQ $ac_have_decl
Chris@82 17136 _ACEOF
Chris@82 17137 ac_fn_c_check_decl "$LINENO" "cosq" "ac_cv_have_decl_cosq" "#include <math.h>
Chris@82 17138 "
Chris@82 17139 if test "x$ac_cv_have_decl_cosq" = xyes; then :
Chris@82 17140 ac_have_decl=1
Chris@82 17141 else
Chris@82 17142 ac_have_decl=0
Chris@82 17143 fi
Chris@82 17144
Chris@82 17145 cat >>confdefs.h <<_ACEOF
Chris@82 17146 #define HAVE_DECL_COSQ $ac_have_decl
Chris@82 17147 _ACEOF
Chris@82 17148
Chris@82 17149 ac_fn_c_check_decl "$LINENO" "memalign" "ac_cv_have_decl_memalign" "
Chris@82 17150 #ifdef HAVE_MALLOC_H
Chris@82 17151 #include <malloc.h>
Chris@82 17152 #endif
Chris@82 17153 "
Chris@82 17154 if test "x$ac_cv_have_decl_memalign" = xyes; then :
Chris@82 17155 ac_have_decl=1
Chris@82 17156 else
Chris@82 17157 ac_have_decl=0
Chris@82 17158 fi
Chris@82 17159
Chris@82 17160 cat >>confdefs.h <<_ACEOF
Chris@82 17161 #define HAVE_DECL_MEMALIGN $ac_have_decl
Chris@82 17162 _ACEOF
Chris@82 17163
Chris@82 17164 ac_fn_c_check_decl "$LINENO" "drand48" "ac_cv_have_decl_drand48" "$ac_includes_default"
Chris@82 17165 if test "x$ac_cv_have_decl_drand48" = xyes; then :
Chris@82 17166 ac_have_decl=1
Chris@82 17167 else
Chris@82 17168 ac_have_decl=0
Chris@82 17169 fi
Chris@82 17170
Chris@82 17171 cat >>confdefs.h <<_ACEOF
Chris@82 17172 #define HAVE_DECL_DRAND48 $ac_have_decl
Chris@82 17173 _ACEOF
Chris@82 17174 ac_fn_c_check_decl "$LINENO" "srand48" "ac_cv_have_decl_srand48" "$ac_includes_default"
Chris@82 17175 if test "x$ac_cv_have_decl_srand48" = xyes; then :
Chris@82 17176 ac_have_decl=1
Chris@82 17177 else
Chris@82 17178 ac_have_decl=0
Chris@82 17179 fi
Chris@82 17180
Chris@82 17181 cat >>confdefs.h <<_ACEOF
Chris@82 17182 #define HAVE_DECL_SRAND48 $ac_have_decl
Chris@82 17183 _ACEOF
Chris@82 17184 ac_fn_c_check_decl "$LINENO" "posix_memalign" "ac_cv_have_decl_posix_memalign" "$ac_includes_default"
Chris@82 17185 if test "x$ac_cv_have_decl_posix_memalign" = xyes; then :
Chris@82 17186 ac_have_decl=1
Chris@82 17187 else
Chris@82 17188 ac_have_decl=0
Chris@82 17189 fi
Chris@82 17190
Chris@82 17191 cat >>confdefs.h <<_ACEOF
Chris@82 17192 #define HAVE_DECL_POSIX_MEMALIGN $ac_have_decl
Chris@82 17193 _ACEOF
Chris@82 17194
Chris@82 17195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _rtc intrinsic" >&5
Chris@82 17196 $as_echo_n "checking for _rtc intrinsic... " >&6; }
Chris@82 17197 rtc_ok=yes
Chris@82 17198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 17199 /* end confdefs.h. */
Chris@82 17200 #ifdef HAVE_INTRINSICS_H
Chris@82 17201 #include <intrinsics.h>
Chris@82 17202 #endif
Chris@82 17203 int
Chris@82 17204 main ()
Chris@82 17205 {
Chris@82 17206 _rtc()
Chris@82 17207 ;
Chris@82 17208 return 0;
Chris@82 17209 }
Chris@82 17210 _ACEOF
Chris@82 17211 if ac_fn_c_try_link "$LINENO"; then :
Chris@82 17212
Chris@82 17213 $as_echo "#define HAVE__RTC 1" >>confdefs.h
Chris@82 17214
Chris@82 17215 else
Chris@82 17216 rtc_ok=no
Chris@82 17217 fi
Chris@82 17218 rm -f core conftest.err conftest.$ac_objext \
Chris@82 17219 conftest$ac_exeext conftest.$ac_ext
Chris@82 17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rtc_ok" >&5
Chris@82 17221 $as_echo "$rtc_ok" >&6; }
Chris@82 17222
Chris@82 17223 if test "$PRECISION" = "l"; then
Chris@82 17224 for ac_func in cosl sinl tanl
Chris@82 17225 do :
Chris@82 17226 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Chris@82 17227 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Chris@82 17228 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Chris@82 17229 cat >>confdefs.h <<_ACEOF
Chris@82 17230 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Chris@82 17231 _ACEOF
Chris@82 17232
Chris@82 17233 else
Chris@82 17234 as_fn_error $? "long-double precision requires long-double trigonometric routines" "$LINENO" 5
Chris@82 17235 fi
Chris@82 17236 done
Chris@82 17237
Chris@82 17238 fi
Chris@82 17239
Chris@82 17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
Chris@82 17241 $as_echo_n "checking for isnan... " >&6; }
Chris@82 17242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 17243 /* end confdefs.h. */
Chris@82 17244 #include <math.h>
Chris@82 17245
Chris@82 17246 int
Chris@82 17247 main ()
Chris@82 17248 {
Chris@82 17249 if (!isnan(3.14159)) isnan(2.7183);
Chris@82 17250 ;
Chris@82 17251 return 0;
Chris@82 17252 }
Chris@82 17253 _ACEOF
Chris@82 17254 if ac_fn_c_try_link "$LINENO"; then :
Chris@82 17255 ok=yes
Chris@82 17256 else
Chris@82 17257 ok=no
Chris@82 17258 fi
Chris@82 17259 rm -f core conftest.err conftest.$ac_objext \
Chris@82 17260 conftest$ac_exeext conftest.$ac_ext
Chris@82 17261 if test "$ok" = "yes"; then
Chris@82 17262
Chris@82 17263 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
Chris@82 17264
Chris@82 17265 fi
Chris@82 17266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ok}" >&5
Chris@82 17267 $as_echo "${ok}" >&6; }
Chris@82 17268
Chris@82 17269
Chris@82 17270
Chris@82 17271 ax_gcc_aligns_stack=no
Chris@82 17272 if test "$GCC" = "yes"; then
Chris@82 17273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpreferred-stack-boundary=4" >&5
Chris@82 17274 $as_echo_n "checking whether C compiler accepts -mpreferred-stack-boundary=4... " >&6; }
Chris@82 17275 if ${ax_cv_c_flags__mpreferred_stack_boundary_4+:} false; then :
Chris@82 17276 $as_echo_n "(cached) " >&6
Chris@82 17277 else
Chris@82 17278
Chris@82 17279 ax_save_FLAGS=$CFLAGS
Chris@82 17280 CFLAGS="-mpreferred-stack-boundary=4"
Chris@82 17281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 17282 /* end confdefs.h. */
Chris@82 17283
Chris@82 17284 int
Chris@82 17285 main ()
Chris@82 17286 {
Chris@82 17287
Chris@82 17288 ;
Chris@82 17289 return 0;
Chris@82 17290 }
Chris@82 17291 _ACEOF
Chris@82 17292 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 17293 ax_cv_c_flags__mpreferred_stack_boundary_4=yes
Chris@82 17294 else
Chris@82 17295 ax_cv_c_flags__mpreferred_stack_boundary_4=no
Chris@82 17296 fi
Chris@82 17297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 17298 CFLAGS=$ax_save_FLAGS
Chris@82 17299 fi
Chris@82 17300
Chris@82 17301 eval ax_check_compiler_flags=$ax_cv_c_flags__mpreferred_stack_boundary_4
Chris@82 17302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 17303 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 17304 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 17305
Chris@82 17306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the stack is at least 8-byte aligned by gcc" >&5
Chris@82 17307 $as_echo_n "checking whether the stack is at least 8-byte aligned by gcc... " >&6; }
Chris@82 17308 save_CFLAGS="$CFLAGS"
Chris@82 17309 CFLAGS="-O"
Chris@82 17310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
Chris@82 17311 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
Chris@82 17312 if ${ax_cv_c_flags__malign_double+:} false; then :
Chris@82 17313 $as_echo_n "(cached) " >&6
Chris@82 17314 else
Chris@82 17315
Chris@82 17316 ax_save_FLAGS=$CFLAGS
Chris@82 17317 CFLAGS="-malign-double"
Chris@82 17318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 17319 /* end confdefs.h. */
Chris@82 17320
Chris@82 17321 int
Chris@82 17322 main ()
Chris@82 17323 {
Chris@82 17324
Chris@82 17325 ;
Chris@82 17326 return 0;
Chris@82 17327 }
Chris@82 17328 _ACEOF
Chris@82 17329 if ac_fn_c_try_compile "$LINENO"; then :
Chris@82 17330 ax_cv_c_flags__malign_double=yes
Chris@82 17331 else
Chris@82 17332 ax_cv_c_flags__malign_double=no
Chris@82 17333 fi
Chris@82 17334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 17335 CFLAGS=$ax_save_FLAGS
Chris@82 17336 fi
Chris@82 17337
Chris@82 17338 eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double
Chris@82 17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
Chris@82 17340 $as_echo "$ax_check_compiler_flags" >&6; }
Chris@82 17341 if test "x$ax_check_compiler_flags" = xyes; then
Chris@82 17342 CFLAGS="$CFLAGS -malign-double"
Chris@82 17343 else
Chris@82 17344 :
Chris@82 17345 fi
Chris@82 17346
Chris@82 17347 if test "$cross_compiling" = yes; then :
Chris@82 17348
Chris@82 17349
Chris@82 17350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gcc 3.0.0 or later" >&5
Chris@82 17351 $as_echo_n "checking whether we are using gcc 3.0.0 or later... " >&6; }
Chris@82 17352 if ${ax_cv_gcc_3_0_0+:} false; then :
Chris@82 17353 $as_echo_n "(cached) " >&6
Chris@82 17354 else
Chris@82 17355
Chris@82 17356 ax_cv_gcc_3_0_0=no
Chris@82 17357 if test "$GCC" = "yes"; then
Chris@82 17358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 17359 /* end confdefs.h. */
Chris@82 17360
Chris@82 17361 #ifdef __GNUC__
Chris@82 17362 # if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ > 0) \
Chris@82 17363 || (__GNUC__ == 3 && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ >= 0)
Chris@82 17364 yes;
Chris@82 17365 # endif
Chris@82 17366 #endif
Chris@82 17367
Chris@82 17368 _ACEOF
Chris@82 17369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@82 17370 $EGREP "yes" >/dev/null 2>&1; then :
Chris@82 17371 ax_cv_gcc_3_0_0=yes
Chris@82 17372 fi
Chris@82 17373 rm -f conftest*
Chris@82 17374
Chris@82 17375 fi
Chris@82 17376
Chris@82 17377 fi
Chris@82 17378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_3_0_0" >&5
Chris@82 17379 $as_echo "$ax_cv_gcc_3_0_0" >&6; }
Chris@82 17380 if test "$ax_cv_gcc_3_0_0" = yes; then
Chris@82 17381 ax_gcc_stack_align_bug=no
Chris@82 17382 else
Chris@82 17383 ax_gcc_stack_align_bug=yes
Chris@82 17384 fi
Chris@82 17385
Chris@82 17386 else
Chris@82 17387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 17388 /* end confdefs.h. */
Chris@82 17389 #include <stdlib.h>
Chris@82 17390 # include <stdio.h>
Chris@82 17391 struct yuck { int blechh; };
Chris@82 17392 int one(void) { return 1; }
Chris@82 17393 struct yuck ick(void) { struct yuck y; y.blechh = 3; return y; }
Chris@82 17394 # define CHK_ALIGN(x) if ((((long) &(x)) & 0x7)) { fprintf(stderr, "bad alignment of " #x "\n"); exit(1); }
Chris@82 17395 void blah(int foo) { double foobar; CHK_ALIGN(foobar); }
Chris@82 17396 int main2(void) {double ok1; struct yuck y; double ok2; CHK_ALIGN(ok1);
Chris@82 17397 CHK_ALIGN(ok2); y = ick(); blah(one()); return 0;}
Chris@82 17398 int main(void) { if ((((long) (__builtin_alloca(0))) & 0x7)) __builtin_alloca(4); return main2(); }
Chris@82 17399
Chris@82 17400 _ACEOF
Chris@82 17401 if ac_fn_c_try_run "$LINENO"; then :
Chris@82 17402 ax_gcc_aligns_stack=yes; ax_gcc_stack_align_bug=no
Chris@82 17403 else
Chris@82 17404 ax_gcc_stack_align_bug=yes
Chris@82 17405 fi
Chris@82 17406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@82 17407 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@82 17408 fi
Chris@82 17409
Chris@82 17410 CFLAGS="$save_CFLAGS"
Chris@82 17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_gcc_aligns_stack" >&5
Chris@82 17412 $as_echo "$ax_gcc_aligns_stack" >&6; }
Chris@82 17413
Chris@82 17414 else
Chris@82 17415 :
Chris@82 17416 fi
Chris@82 17417
Chris@82 17418 fi
Chris@82 17419 if test "$ax_gcc_aligns_stack" = yes; then
Chris@82 17420 :
Chris@82 17421 else
Chris@82 17422 :
Chris@82 17423 fi
Chris@82 17424
Chris@82 17425
Chris@82 17426 if test "${enable_debug}" = "yes"; then
Chris@82 17427 CFLAGS="-g"
Chris@82 17428 fi
Chris@82 17429
Chris@82 17430 if test "$enable_debug" = yes || test "$USE_MAINTAINER_MODE" = yes; then
Chris@82 17431 if test "$ac_test_CFLAGS" != "set"; then
Chris@82 17432 if test $ac_cv_c_compiler_gnu = yes; then
Chris@82 17433 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@82 17434 fi
Chris@82 17435 fi
Chris@82 17436 fi
Chris@82 17437
Chris@82 17438 if test "$USE_MAINTAINER_MODE" = yes; then
Chris@82 17439 # Extract the first word of "indent", so it can be a program name with args.
Chris@82 17440 set dummy indent; ac_word=$2
Chris@82 17441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 17442 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 17443 if ${ac_cv_path_INDENT+:} false; then :
Chris@82 17444 $as_echo_n "(cached) " >&6
Chris@82 17445 else
Chris@82 17446 case $INDENT in
Chris@82 17447 [\\/]* | ?:[\\/]*)
Chris@82 17448 ac_cv_path_INDENT="$INDENT" # Let the user override the test with a path.
Chris@82 17449 ;;
Chris@82 17450 *)
Chris@82 17451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 17452 for as_dir in $PATH
Chris@82 17453 do
Chris@82 17454 IFS=$as_save_IFS
Chris@82 17455 test -z "$as_dir" && as_dir=.
Chris@82 17456 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 17457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 17458 ac_cv_path_INDENT="$as_dir/$ac_word$ac_exec_ext"
Chris@82 17459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 17460 break 2
Chris@82 17461 fi
Chris@82 17462 done
Chris@82 17463 done
Chris@82 17464 IFS=$as_save_IFS
Chris@82 17465
Chris@82 17466 test -z "$ac_cv_path_INDENT" && ac_cv_path_INDENT="indent"
Chris@82 17467 ;;
Chris@82 17468 esac
Chris@82 17469 fi
Chris@82 17470 INDENT=$ac_cv_path_INDENT
Chris@82 17471 if test -n "$INDENT"; then
Chris@82 17472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INDENT" >&5
Chris@82 17473 $as_echo "$INDENT" >&6; }
Chris@82 17474 else
Chris@82 17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 17476 $as_echo "no" >&6; }
Chris@82 17477 fi
Chris@82 17478
Chris@82 17479
Chris@82 17480 # if INDENT is set to 'indent' then we didn't find indent
Chris@82 17481 if test "$INDENT" != indent ; then
Chris@82 17482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $INDENT is GNU indent" >&5
Chris@82 17483 $as_echo_n "checking if $INDENT is GNU indent... " >&6; }
Chris@82 17484 if $INDENT --version 2>/dev/null | head -n 1|grep "GNU indent" > /dev/null ; then
Chris@82 17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@82 17486 $as_echo "yes" >&6; }
Chris@82 17487 INDENT="$INDENT -kr -cs -i5 -l800 -fca -nfc1 -sc -sob -cli4 -TR -Tplanner -TV"
Chris@82 17488 else
Chris@82 17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 17490 $as_echo "no" >&6; }
Chris@82 17491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $INDENT does not appear to be GNU indent." >&5
Chris@82 17492 $as_echo "$as_me: WARNING: $INDENT does not appear to be GNU indent." >&2;}
Chris@82 17493 fi
Chris@82 17494 else
Chris@82 17495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no indent program found: codelets will be ugly" >&5
Chris@82 17496 $as_echo "$as_me: WARNING: no indent program found: codelets will be ugly" >&2;}
Chris@82 17497 INDENT=cat
Chris@82 17498 fi
Chris@82 17499 fi
Chris@82 17500
Chris@82 17501
Chris@82 17502 # Check whether --enable-fortran was given.
Chris@82 17503 if test "${enable_fortran+set}" = set; then :
Chris@82 17504 enableval=$enable_fortran; enable_fortran=$enableval
Chris@82 17505 else
Chris@82 17506 enable_fortran=yes
Chris@82 17507 fi
Chris@82 17508
Chris@82 17509
Chris@82 17510 if test "$enable_fortran" = "yes"; then
Chris@82 17511 ac_ext=f
Chris@82 17512 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@82 17513 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 17514 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@82 17515 if test -n "$ac_tool_prefix"; then
Chris@82 17516 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@82 17517 do
Chris@82 17518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@82 17519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@82 17520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 17521 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 17522 if ${ac_cv_prog_F77+:} false; then :
Chris@82 17523 $as_echo_n "(cached) " >&6
Chris@82 17524 else
Chris@82 17525 if test -n "$F77"; then
Chris@82 17526 ac_cv_prog_F77="$F77" # Let the user override the test.
Chris@82 17527 else
Chris@82 17528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 17529 for as_dir in $PATH
Chris@82 17530 do
Chris@82 17531 IFS=$as_save_IFS
Chris@82 17532 test -z "$as_dir" && as_dir=.
Chris@82 17533 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 17534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 17535 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
Chris@82 17536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 17537 break 2
Chris@82 17538 fi
Chris@82 17539 done
Chris@82 17540 done
Chris@82 17541 IFS=$as_save_IFS
Chris@82 17542
Chris@82 17543 fi
Chris@82 17544 fi
Chris@82 17545 F77=$ac_cv_prog_F77
Chris@82 17546 if test -n "$F77"; then
Chris@82 17547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
Chris@82 17548 $as_echo "$F77" >&6; }
Chris@82 17549 else
Chris@82 17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 17551 $as_echo "no" >&6; }
Chris@82 17552 fi
Chris@82 17553
Chris@82 17554
Chris@82 17555 test -n "$F77" && break
Chris@82 17556 done
Chris@82 17557 fi
Chris@82 17558 if test -z "$F77"; then
Chris@82 17559 ac_ct_F77=$F77
Chris@82 17560 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@82 17561 do
Chris@82 17562 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@82 17563 set dummy $ac_prog; ac_word=$2
Chris@82 17564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 17565 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 17566 if ${ac_cv_prog_ac_ct_F77+:} false; then :
Chris@82 17567 $as_echo_n "(cached) " >&6
Chris@82 17568 else
Chris@82 17569 if test -n "$ac_ct_F77"; then
Chris@82 17570 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
Chris@82 17571 else
Chris@82 17572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 17573 for as_dir in $PATH
Chris@82 17574 do
Chris@82 17575 IFS=$as_save_IFS
Chris@82 17576 test -z "$as_dir" && as_dir=.
Chris@82 17577 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 17578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 17579 ac_cv_prog_ac_ct_F77="$ac_prog"
Chris@82 17580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 17581 break 2
Chris@82 17582 fi
Chris@82 17583 done
Chris@82 17584 done
Chris@82 17585 IFS=$as_save_IFS
Chris@82 17586
Chris@82 17587 fi
Chris@82 17588 fi
Chris@82 17589 ac_ct_F77=$ac_cv_prog_ac_ct_F77
Chris@82 17590 if test -n "$ac_ct_F77"; then
Chris@82 17591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
Chris@82 17592 $as_echo "$ac_ct_F77" >&6; }
Chris@82 17593 else
Chris@82 17594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 17595 $as_echo "no" >&6; }
Chris@82 17596 fi
Chris@82 17597
Chris@82 17598
Chris@82 17599 test -n "$ac_ct_F77" && break
Chris@82 17600 done
Chris@82 17601
Chris@82 17602 if test "x$ac_ct_F77" = x; then
Chris@82 17603 F77=""
Chris@82 17604 else
Chris@82 17605 case $cross_compiling:$ac_tool_warned in
Chris@82 17606 yes:)
Chris@82 17607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@82 17608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@82 17609 ac_tool_warned=yes ;;
Chris@82 17610 esac
Chris@82 17611 F77=$ac_ct_F77
Chris@82 17612 fi
Chris@82 17613 fi
Chris@82 17614
Chris@82 17615
Chris@82 17616 # Provide some information about the compiler.
Chris@82 17617 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
Chris@82 17618 set X $ac_compile
Chris@82 17619 ac_compiler=$2
Chris@82 17620 for ac_option in --version -v -V -qversion; do
Chris@82 17621 { { ac_try="$ac_compiler $ac_option >&5"
Chris@82 17622 case "(($ac_try" in
Chris@82 17623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@82 17624 *) ac_try_echo=$ac_try;;
Chris@82 17625 esac
Chris@82 17626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@82 17627 $as_echo "$ac_try_echo"; } >&5
Chris@82 17628 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Chris@82 17629 ac_status=$?
Chris@82 17630 if test -s conftest.err; then
Chris@82 17631 sed '10a\
Chris@82 17632 ... rest of stderr output deleted ...
Chris@82 17633 10q' conftest.err >conftest.er1
Chris@82 17634 cat conftest.er1 >&5
Chris@82 17635 fi
Chris@82 17636 rm -f conftest.er1 conftest.err
Chris@82 17637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@82 17638 test $ac_status = 0; }
Chris@82 17639 done
Chris@82 17640 rm -f a.out
Chris@82 17641
Chris@82 17642 # If we don't use `.F' as extension, the preprocessor is not run on the
Chris@82 17643 # input file. (Note that this only needs to work for GNU compilers.)
Chris@82 17644 ac_save_ext=$ac_ext
Chris@82 17645 ac_ext=F
Chris@82 17646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
Chris@82 17647 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
Chris@82 17648 if ${ac_cv_f77_compiler_gnu+:} false; then :
Chris@82 17649 $as_echo_n "(cached) " >&6
Chris@82 17650 else
Chris@82 17651 cat > conftest.$ac_ext <<_ACEOF
Chris@82 17652 program main
Chris@82 17653 #ifndef __GNUC__
Chris@82 17654 choke me
Chris@82 17655 #endif
Chris@82 17656
Chris@82 17657 end
Chris@82 17658 _ACEOF
Chris@82 17659 if ac_fn_f77_try_compile "$LINENO"; then :
Chris@82 17660 ac_compiler_gnu=yes
Chris@82 17661 else
Chris@82 17662 ac_compiler_gnu=no
Chris@82 17663 fi
Chris@82 17664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 17665 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
Chris@82 17666
Chris@82 17667 fi
Chris@82 17668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
Chris@82 17669 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
Chris@82 17670 ac_ext=$ac_save_ext
Chris@82 17671 ac_test_FFLAGS=${FFLAGS+set}
Chris@82 17672 ac_save_FFLAGS=$FFLAGS
Chris@82 17673 FFLAGS=
Chris@82 17674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
Chris@82 17675 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
Chris@82 17676 if ${ac_cv_prog_f77_g+:} false; then :
Chris@82 17677 $as_echo_n "(cached) " >&6
Chris@82 17678 else
Chris@82 17679 FFLAGS=-g
Chris@82 17680 cat > conftest.$ac_ext <<_ACEOF
Chris@82 17681 program main
Chris@82 17682
Chris@82 17683 end
Chris@82 17684 _ACEOF
Chris@82 17685 if ac_fn_f77_try_compile "$LINENO"; then :
Chris@82 17686 ac_cv_prog_f77_g=yes
Chris@82 17687 else
Chris@82 17688 ac_cv_prog_f77_g=no
Chris@82 17689 fi
Chris@82 17690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 17691
Chris@82 17692 fi
Chris@82 17693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
Chris@82 17694 $as_echo "$ac_cv_prog_f77_g" >&6; }
Chris@82 17695 if test "$ac_test_FFLAGS" = set; then
Chris@82 17696 FFLAGS=$ac_save_FFLAGS
Chris@82 17697 elif test $ac_cv_prog_f77_g = yes; then
Chris@82 17698 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
Chris@82 17699 FFLAGS="-g -O2"
Chris@82 17700 else
Chris@82 17701 FFLAGS="-g"
Chris@82 17702 fi
Chris@82 17703 else
Chris@82 17704 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
Chris@82 17705 FFLAGS="-O2"
Chris@82 17706 else
Chris@82 17707 FFLAGS=
Chris@82 17708 fi
Chris@82 17709 fi
Chris@82 17710
Chris@82 17711 if test $ac_compiler_gnu = yes; then
Chris@82 17712 G77=yes
Chris@82 17713 else
Chris@82 17714 G77=
Chris@82 17715 fi
Chris@82 17716 ac_ext=c
Chris@82 17717 ac_cpp='$CPP $CPPFLAGS'
Chris@82 17718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@82 17719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 17720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@82 17721
Chris@82 17722 ac_ext=f
Chris@82 17723 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@82 17724 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 17725 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@82 17726
Chris@82 17727 if test -z "$F77" || test no = "$F77"; then
Chris@82 17728 _lt_disable_F77=yes
Chris@82 17729 fi
Chris@82 17730
Chris@82 17731 archive_cmds_need_lc_F77=no
Chris@82 17732 allow_undefined_flag_F77=
Chris@82 17733 always_export_symbols_F77=no
Chris@82 17734 archive_expsym_cmds_F77=
Chris@82 17735 export_dynamic_flag_spec_F77=
Chris@82 17736 hardcode_direct_F77=no
Chris@82 17737 hardcode_direct_absolute_F77=no
Chris@82 17738 hardcode_libdir_flag_spec_F77=
Chris@82 17739 hardcode_libdir_separator_F77=
Chris@82 17740 hardcode_minus_L_F77=no
Chris@82 17741 hardcode_automatic_F77=no
Chris@82 17742 inherit_rpath_F77=no
Chris@82 17743 module_cmds_F77=
Chris@82 17744 module_expsym_cmds_F77=
Chris@82 17745 link_all_deplibs_F77=unknown
Chris@82 17746 old_archive_cmds_F77=$old_archive_cmds
Chris@82 17747 reload_flag_F77=$reload_flag
Chris@82 17748 reload_cmds_F77=$reload_cmds
Chris@82 17749 no_undefined_flag_F77=
Chris@82 17750 whole_archive_flag_spec_F77=
Chris@82 17751 enable_shared_with_static_runtimes_F77=no
Chris@82 17752
Chris@82 17753 # Source file extension for f77 test sources.
Chris@82 17754 ac_ext=f
Chris@82 17755
Chris@82 17756 # Object file extension for compiled f77 test sources.
Chris@82 17757 objext=o
Chris@82 17758 objext_F77=$objext
Chris@82 17759
Chris@82 17760 # No sense in running all these tests if we already determined that
Chris@82 17761 # the F77 compiler isn't working. Some variables (like enable_shared)
Chris@82 17762 # are currently assumed to apply to all compilers on this platform,
Chris@82 17763 # and will be corrupted by setting them based on a non-working compiler.
Chris@82 17764 if test yes != "$_lt_disable_F77"; then
Chris@82 17765 # Code to be used in simple compile tests
Chris@82 17766 lt_simple_compile_test_code="\
Chris@82 17767 subroutine t
Chris@82 17768 return
Chris@82 17769 end
Chris@82 17770 "
Chris@82 17771
Chris@82 17772 # Code to be used in simple link tests
Chris@82 17773 lt_simple_link_test_code="\
Chris@82 17774 program t
Chris@82 17775 end
Chris@82 17776 "
Chris@82 17777
Chris@82 17778 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
Chris@82 17779
Chris@82 17780
Chris@82 17781
Chris@82 17782
Chris@82 17783
Chris@82 17784
Chris@82 17785 # If no C compiler was specified, use CC.
Chris@82 17786 LTCC=${LTCC-"$CC"}
Chris@82 17787
Chris@82 17788 # If no C compiler flags were specified, use CFLAGS.
Chris@82 17789 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Chris@82 17790
Chris@82 17791 # Allow CC to be a program name with arguments.
Chris@82 17792 compiler=$CC
Chris@82 17793
Chris@82 17794
Chris@82 17795 # save warnings/boilerplate of simple test code
Chris@82 17796 ac_outfile=conftest.$ac_objext
Chris@82 17797 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Chris@82 17798 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@82 17799 _lt_compiler_boilerplate=`cat conftest.err`
Chris@82 17800 $RM conftest*
Chris@82 17801
Chris@82 17802 ac_outfile=conftest.$ac_objext
Chris@82 17803 echo "$lt_simple_link_test_code" >conftest.$ac_ext
Chris@82 17804 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@82 17805 _lt_linker_boilerplate=`cat conftest.err`
Chris@82 17806 $RM -r conftest*
Chris@82 17807
Chris@82 17808
Chris@82 17809 # Allow CC to be a program name with arguments.
Chris@82 17810 lt_save_CC=$CC
Chris@82 17811 lt_save_GCC=$GCC
Chris@82 17812 lt_save_CFLAGS=$CFLAGS
Chris@82 17813 CC=${F77-"f77"}
Chris@82 17814 CFLAGS=$FFLAGS
Chris@82 17815 compiler=$CC
Chris@82 17816 compiler_F77=$CC
Chris@82 17817 func_cc_basename $compiler
Chris@82 17818 cc_basename=$func_cc_basename_result
Chris@82 17819
Chris@82 17820 GCC=$G77
Chris@82 17821 if test -n "$compiler"; then
Chris@82 17822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
Chris@82 17823 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
Chris@82 17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
Chris@82 17825 $as_echo "$can_build_shared" >&6; }
Chris@82 17826
Chris@82 17827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
Chris@82 17828 $as_echo_n "checking whether to build shared libraries... " >&6; }
Chris@82 17829 test no = "$can_build_shared" && enable_shared=no
Chris@82 17830
Chris@82 17831 # On AIX, shared libraries and static libraries use the same namespace, and
Chris@82 17832 # are all built from PIC.
Chris@82 17833 case $host_os in
Chris@82 17834 aix3*)
Chris@82 17835 test yes = "$enable_shared" && enable_static=no
Chris@82 17836 if test -n "$RANLIB"; then
Chris@82 17837 archive_cmds="$archive_cmds~\$RANLIB \$lib"
Chris@82 17838 postinstall_cmds='$RANLIB $lib'
Chris@82 17839 fi
Chris@82 17840 ;;
Chris@82 17841 aix[4-9]*)
Chris@82 17842 if test ia64 != "$host_cpu"; then
Chris@82 17843 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
Chris@82 17844 yes,aix,yes) ;; # shared object as lib.so file only
Chris@82 17845 yes,svr4,*) ;; # shared object as lib.so archive member only
Chris@82 17846 yes,*) enable_static=no ;; # shared object in lib.a archive as well
Chris@82 17847 esac
Chris@82 17848 fi
Chris@82 17849 ;;
Chris@82 17850 esac
Chris@82 17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
Chris@82 17852 $as_echo "$enable_shared" >&6; }
Chris@82 17853
Chris@82 17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
Chris@82 17855 $as_echo_n "checking whether to build static libraries... " >&6; }
Chris@82 17856 # Make sure either enable_shared or enable_static is yes.
Chris@82 17857 test yes = "$enable_shared" || enable_static=yes
Chris@82 17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
Chris@82 17859 $as_echo "$enable_static" >&6; }
Chris@82 17860
Chris@82 17861 GCC_F77=$G77
Chris@82 17862 LD_F77=$LD
Chris@82 17863
Chris@82 17864 ## CAVEAT EMPTOR:
Chris@82 17865 ## There is no encapsulation within the following macros, do not change
Chris@82 17866 ## the running order or otherwise move them around unless you know exactly
Chris@82 17867 ## what you are doing...
Chris@82 17868 lt_prog_compiler_wl_F77=
Chris@82 17869 lt_prog_compiler_pic_F77=
Chris@82 17870 lt_prog_compiler_static_F77=
Chris@82 17871
Chris@82 17872
Chris@82 17873 if test yes = "$GCC"; then
Chris@82 17874 lt_prog_compiler_wl_F77='-Wl,'
Chris@82 17875 lt_prog_compiler_static_F77='-static'
Chris@82 17876
Chris@82 17877 case $host_os in
Chris@82 17878 aix*)
Chris@82 17879 # All AIX code is PIC.
Chris@82 17880 if test ia64 = "$host_cpu"; then
Chris@82 17881 # AIX 5 now supports IA64 processor
Chris@82 17882 lt_prog_compiler_static_F77='-Bstatic'
Chris@82 17883 fi
Chris@82 17884 lt_prog_compiler_pic_F77='-fPIC'
Chris@82 17885 ;;
Chris@82 17886
Chris@82 17887 amigaos*)
Chris@82 17888 case $host_cpu in
Chris@82 17889 powerpc)
Chris@82 17890 # see comment about AmigaOS4 .so support
Chris@82 17891 lt_prog_compiler_pic_F77='-fPIC'
Chris@82 17892 ;;
Chris@82 17893 m68k)
Chris@82 17894 # FIXME: we need at least 68020 code to build shared libraries, but
Chris@82 17895 # adding the '-m68020' flag to GCC prevents building anything better,
Chris@82 17896 # like '-m68040'.
Chris@82 17897 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
Chris@82 17898 ;;
Chris@82 17899 esac
Chris@82 17900 ;;
Chris@82 17901
Chris@82 17902 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Chris@82 17903 # PIC is the default for these OSes.
Chris@82 17904 ;;
Chris@82 17905
Chris@82 17906 mingw* | cygwin* | pw32* | os2* | cegcc*)
Chris@82 17907 # This hack is so that the source file can tell whether it is being
Chris@82 17908 # built for inclusion in a dll (and should export symbols for example).
Chris@82 17909 # Although the cygwin gcc ignores -fPIC, still need this for old-style
Chris@82 17910 # (--disable-auto-import) libraries
Chris@82 17911 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
Chris@82 17912 case $host_os in
Chris@82 17913 os2*)
Chris@82 17914 lt_prog_compiler_static_F77='$wl-static'
Chris@82 17915 ;;
Chris@82 17916 esac
Chris@82 17917 ;;
Chris@82 17918
Chris@82 17919 darwin* | rhapsody*)
Chris@82 17920 # PIC is the default on this platform
Chris@82 17921 # Common symbols not allowed in MH_DYLIB files
Chris@82 17922 lt_prog_compiler_pic_F77='-fno-common'
Chris@82 17923 ;;
Chris@82 17924
Chris@82 17925 haiku*)
Chris@82 17926 # PIC is the default for Haiku.
Chris@82 17927 # The "-static" flag exists, but is broken.
Chris@82 17928 lt_prog_compiler_static_F77=
Chris@82 17929 ;;
Chris@82 17930
Chris@82 17931 hpux*)
Chris@82 17932 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
Chris@82 17933 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
Chris@82 17934 # sets the default TLS model and affects inlining.
Chris@82 17935 case $host_cpu in
Chris@82 17936 hppa*64*)
Chris@82 17937 # +Z the default
Chris@82 17938 ;;
Chris@82 17939 *)
Chris@82 17940 lt_prog_compiler_pic_F77='-fPIC'
Chris@82 17941 ;;
Chris@82 17942 esac
Chris@82 17943 ;;
Chris@82 17944
Chris@82 17945 interix[3-9]*)
Chris@82 17946 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
Chris@82 17947 # Instead, we relocate shared libraries at runtime.
Chris@82 17948 ;;
Chris@82 17949
Chris@82 17950 msdosdjgpp*)
Chris@82 17951 # Just because we use GCC doesn't mean we suddenly get shared libraries
Chris@82 17952 # on systems that don't support them.
Chris@82 17953 lt_prog_compiler_can_build_shared_F77=no
Chris@82 17954 enable_shared=no
Chris@82 17955 ;;
Chris@82 17956
Chris@82 17957 *nto* | *qnx*)
Chris@82 17958 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@82 17959 # it will coredump.
Chris@82 17960 lt_prog_compiler_pic_F77='-fPIC -shared'
Chris@82 17961 ;;
Chris@82 17962
Chris@82 17963 sysv4*MP*)
Chris@82 17964 if test -d /usr/nec; then
Chris@82 17965 lt_prog_compiler_pic_F77=-Kconform_pic
Chris@82 17966 fi
Chris@82 17967 ;;
Chris@82 17968
Chris@82 17969 *)
Chris@82 17970 lt_prog_compiler_pic_F77='-fPIC'
Chris@82 17971 ;;
Chris@82 17972 esac
Chris@82 17973
Chris@82 17974 case $cc_basename in
Chris@82 17975 nvcc*) # Cuda Compiler Driver 2.2
Chris@82 17976 lt_prog_compiler_wl_F77='-Xlinker '
Chris@82 17977 if test -n "$lt_prog_compiler_pic_F77"; then
Chris@82 17978 lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77"
Chris@82 17979 fi
Chris@82 17980 ;;
Chris@82 17981 esac
Chris@82 17982 else
Chris@82 17983 # PORTME Check for flag to pass linker flags through the system compiler.
Chris@82 17984 case $host_os in
Chris@82 17985 aix*)
Chris@82 17986 lt_prog_compiler_wl_F77='-Wl,'
Chris@82 17987 if test ia64 = "$host_cpu"; then
Chris@82 17988 # AIX 5 now supports IA64 processor
Chris@82 17989 lt_prog_compiler_static_F77='-Bstatic'
Chris@82 17990 else
Chris@82 17991 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
Chris@82 17992 fi
Chris@82 17993 ;;
Chris@82 17994
Chris@82 17995 darwin* | rhapsody*)
Chris@82 17996 # PIC is the default on this platform
Chris@82 17997 # Common symbols not allowed in MH_DYLIB files
Chris@82 17998 lt_prog_compiler_pic_F77='-fno-common'
Chris@82 17999 case $cc_basename in
Chris@82 18000 nagfor*)
Chris@82 18001 # NAG Fortran compiler
Chris@82 18002 lt_prog_compiler_wl_F77='-Wl,-Wl,,'
Chris@82 18003 lt_prog_compiler_pic_F77='-PIC'
Chris@82 18004 lt_prog_compiler_static_F77='-Bstatic'
Chris@82 18005 ;;
Chris@82 18006 esac
Chris@82 18007 ;;
Chris@82 18008
Chris@82 18009 mingw* | cygwin* | pw32* | os2* | cegcc*)
Chris@82 18010 # This hack is so that the source file can tell whether it is being
Chris@82 18011 # built for inclusion in a dll (and should export symbols for example).
Chris@82 18012 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
Chris@82 18013 case $host_os in
Chris@82 18014 os2*)
Chris@82 18015 lt_prog_compiler_static_F77='$wl-static'
Chris@82 18016 ;;
Chris@82 18017 esac
Chris@82 18018 ;;
Chris@82 18019
Chris@82 18020 hpux9* | hpux10* | hpux11*)
Chris@82 18021 lt_prog_compiler_wl_F77='-Wl,'
Chris@82 18022 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
Chris@82 18023 # not for PA HP-UX.
Chris@82 18024 case $host_cpu in
Chris@82 18025 hppa*64*|ia64*)
Chris@82 18026 # +Z the default
Chris@82 18027 ;;
Chris@82 18028 *)
Chris@82 18029 lt_prog_compiler_pic_F77='+Z'
Chris@82 18030 ;;
Chris@82 18031 esac
Chris@82 18032 # Is there a better lt_prog_compiler_static that works with the bundled CC?
Chris@82 18033 lt_prog_compiler_static_F77='$wl-a ${wl}archive'
Chris@82 18034 ;;
Chris@82 18035
Chris@82 18036 irix5* | irix6* | nonstopux*)
Chris@82 18037 lt_prog_compiler_wl_F77='-Wl,'
Chris@82 18038 # PIC (with -KPIC) is the default.
Chris@82 18039 lt_prog_compiler_static_F77='-non_shared'
Chris@82 18040 ;;
Chris@82 18041
Chris@82 18042 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Chris@82 18043 case $cc_basename in
Chris@82 18044 # old Intel for x86_64, which still supported -KPIC.
Chris@82 18045 ecc*)
Chris@82 18046 lt_prog_compiler_wl_F77='-Wl,'
Chris@82 18047 lt_prog_compiler_pic_F77='-KPIC'
Chris@82 18048 lt_prog_compiler_static_F77='-static'
Chris@82 18049 ;;
Chris@82 18050 # icc used to be incompatible with GCC.
Chris@82 18051 # ICC 10 doesn't accept -KPIC any more.
Chris@82 18052 icc* | ifort*)
Chris@82 18053 lt_prog_compiler_wl_F77='-Wl,'
Chris@82 18054 lt_prog_compiler_pic_F77='-fPIC'
Chris@82 18055 lt_prog_compiler_static_F77='-static'
Chris@82 18056 ;;
Chris@82 18057 # Lahey Fortran 8.1.
Chris@82 18058 lf95*)
Chris@82 18059 lt_prog_compiler_wl_F77='-Wl,'
Chris@82 18060 lt_prog_compiler_pic_F77='--shared'
Chris@82 18061 lt_prog_compiler_static_F77='--static'
Chris@82 18062 ;;
Chris@82 18063 nagfor*)
Chris@82 18064 # NAG Fortran compiler
Chris@82 18065 lt_prog_compiler_wl_F77='-Wl,-Wl,,'
Chris@82 18066 lt_prog_compiler_pic_F77='-PIC'
Chris@82 18067 lt_prog_compiler_static_F77='-Bstatic'
Chris@82 18068 ;;
Chris@82 18069 tcc*)
Chris@82 18070 # Fabrice Bellard et al's Tiny C Compiler
Chris@82 18071 lt_prog_compiler_wl_F77='-Wl,'
Chris@82 18072 lt_prog_compiler_pic_F77='-fPIC'
Chris@82 18073 lt_prog_compiler_static_F77='-static'
Chris@82 18074 ;;
Chris@82 18075 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Chris@82 18076 # Portland Group compilers (*not* the Pentium gcc compiler,
Chris@82 18077 # which looks to be a dead project)
Chris@82 18078 lt_prog_compiler_wl_F77='-Wl,'
Chris@82 18079 lt_prog_compiler_pic_F77='-fpic'
Chris@82 18080 lt_prog_compiler_static_F77='-Bstatic'
Chris@82 18081 ;;
Chris@82 18082 ccc*)
Chris@82 18083 lt_prog_compiler_wl_F77='-Wl,'
Chris@82 18084 # All Alpha code is PIC.
Chris@82 18085 lt_prog_compiler_static_F77='-non_shared'
Chris@82 18086 ;;
Chris@82 18087 xl* | bgxl* | bgf* | mpixl*)
Chris@82 18088 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Chris@82 18089 lt_prog_compiler_wl_F77='-Wl,'
Chris@82 18090 lt_prog_compiler_pic_F77='-qpic'
Chris@82 18091 lt_prog_compiler_static_F77='-qstaticlink'
Chris@82 18092 ;;
Chris@82 18093 *)
Chris@82 18094 case `$CC -V 2>&1 | sed 5q` in
Chris@82 18095 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
Chris@82 18096 # Sun Fortran 8.3 passes all unrecognized flags to the linker
Chris@82 18097 lt_prog_compiler_pic_F77='-KPIC'
Chris@82 18098 lt_prog_compiler_static_F77='-Bstatic'
Chris@82 18099 lt_prog_compiler_wl_F77=''
Chris@82 18100 ;;
Chris@82 18101 *Sun\ F* | *Sun*Fortran*)
Chris@82 18102 lt_prog_compiler_pic_F77='-KPIC'
Chris@82 18103 lt_prog_compiler_static_F77='-Bstatic'
Chris@82 18104 lt_prog_compiler_wl_F77='-Qoption ld '
Chris@82 18105 ;;
Chris@82 18106 *Sun\ C*)
Chris@82 18107 # Sun C 5.9
Chris@82 18108 lt_prog_compiler_pic_F77='-KPIC'
Chris@82 18109 lt_prog_compiler_static_F77='-Bstatic'
Chris@82 18110 lt_prog_compiler_wl_F77='-Wl,'
Chris@82 18111 ;;
Chris@82 18112 *Intel*\ [CF]*Compiler*)
Chris@82 18113 lt_prog_compiler_wl_F77='-Wl,'
Chris@82 18114 lt_prog_compiler_pic_F77='-fPIC'
Chris@82 18115 lt_prog_compiler_static_F77='-static'
Chris@82 18116 ;;
Chris@82 18117 *Portland\ Group*)
Chris@82 18118 lt_prog_compiler_wl_F77='-Wl,'
Chris@82 18119 lt_prog_compiler_pic_F77='-fpic'
Chris@82 18120 lt_prog_compiler_static_F77='-Bstatic'
Chris@82 18121 ;;
Chris@82 18122 esac
Chris@82 18123 ;;
Chris@82 18124 esac
Chris@82 18125 ;;
Chris@82 18126
Chris@82 18127 newsos6)
Chris@82 18128 lt_prog_compiler_pic_F77='-KPIC'
Chris@82 18129 lt_prog_compiler_static_F77='-Bstatic'
Chris@82 18130 ;;
Chris@82 18131
Chris@82 18132 *nto* | *qnx*)
Chris@82 18133 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@82 18134 # it will coredump.
Chris@82 18135 lt_prog_compiler_pic_F77='-fPIC -shared'
Chris@82 18136 ;;
Chris@82 18137
Chris@82 18138 osf3* | osf4* | osf5*)
Chris@82 18139 lt_prog_compiler_wl_F77='-Wl,'
Chris@82 18140 # All OSF/1 code is PIC.
Chris@82 18141 lt_prog_compiler_static_F77='-non_shared'
Chris@82 18142 ;;
Chris@82 18143
Chris@82 18144 rdos*)
Chris@82 18145 lt_prog_compiler_static_F77='-non_shared'
Chris@82 18146 ;;
Chris@82 18147
Chris@82 18148 solaris*)
Chris@82 18149 lt_prog_compiler_pic_F77='-KPIC'
Chris@82 18150 lt_prog_compiler_static_F77='-Bstatic'
Chris@82 18151 case $cc_basename in
Chris@82 18152 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Chris@82 18153 lt_prog_compiler_wl_F77='-Qoption ld ';;
Chris@82 18154 *)
Chris@82 18155 lt_prog_compiler_wl_F77='-Wl,';;
Chris@82 18156 esac
Chris@82 18157 ;;
Chris@82 18158
Chris@82 18159 sunos4*)
Chris@82 18160 lt_prog_compiler_wl_F77='-Qoption ld '
Chris@82 18161 lt_prog_compiler_pic_F77='-PIC'
Chris@82 18162 lt_prog_compiler_static_F77='-Bstatic'
Chris@82 18163 ;;
Chris@82 18164
Chris@82 18165 sysv4 | sysv4.2uw2* | sysv4.3*)
Chris@82 18166 lt_prog_compiler_wl_F77='-Wl,'
Chris@82 18167 lt_prog_compiler_pic_F77='-KPIC'
Chris@82 18168 lt_prog_compiler_static_F77='-Bstatic'
Chris@82 18169 ;;
Chris@82 18170
Chris@82 18171 sysv4*MP*)
Chris@82 18172 if test -d /usr/nec; then
Chris@82 18173 lt_prog_compiler_pic_F77='-Kconform_pic'
Chris@82 18174 lt_prog_compiler_static_F77='-Bstatic'
Chris@82 18175 fi
Chris@82 18176 ;;
Chris@82 18177
Chris@82 18178 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
Chris@82 18179 lt_prog_compiler_wl_F77='-Wl,'
Chris@82 18180 lt_prog_compiler_pic_F77='-KPIC'
Chris@82 18181 lt_prog_compiler_static_F77='-Bstatic'
Chris@82 18182 ;;
Chris@82 18183
Chris@82 18184 unicos*)
Chris@82 18185 lt_prog_compiler_wl_F77='-Wl,'
Chris@82 18186 lt_prog_compiler_can_build_shared_F77=no
Chris@82 18187 ;;
Chris@82 18188
Chris@82 18189 uts4*)
Chris@82 18190 lt_prog_compiler_pic_F77='-pic'
Chris@82 18191 lt_prog_compiler_static_F77='-Bstatic'
Chris@82 18192 ;;
Chris@82 18193
Chris@82 18194 *)
Chris@82 18195 lt_prog_compiler_can_build_shared_F77=no
Chris@82 18196 ;;
Chris@82 18197 esac
Chris@82 18198 fi
Chris@82 18199
Chris@82 18200 case $host_os in
Chris@82 18201 # For platforms that do not support PIC, -DPIC is meaningless:
Chris@82 18202 *djgpp*)
Chris@82 18203 lt_prog_compiler_pic_F77=
Chris@82 18204 ;;
Chris@82 18205 *)
Chris@82 18206 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
Chris@82 18207 ;;
Chris@82 18208 esac
Chris@82 18209
Chris@82 18210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
Chris@82 18211 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Chris@82 18212 if ${lt_cv_prog_compiler_pic_F77+:} false; then :
Chris@82 18213 $as_echo_n "(cached) " >&6
Chris@82 18214 else
Chris@82 18215 lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77
Chris@82 18216 fi
Chris@82 18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5
Chris@82 18218 $as_echo "$lt_cv_prog_compiler_pic_F77" >&6; }
Chris@82 18219 lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77
Chris@82 18220
Chris@82 18221 #
Chris@82 18222 # Check to make sure the PIC flag actually works.
Chris@82 18223 #
Chris@82 18224 if test -n "$lt_prog_compiler_pic_F77"; then
Chris@82 18225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
Chris@82 18226 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
Chris@82 18227 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
Chris@82 18228 $as_echo_n "(cached) " >&6
Chris@82 18229 else
Chris@82 18230 lt_cv_prog_compiler_pic_works_F77=no
Chris@82 18231 ac_outfile=conftest.$ac_objext
Chris@82 18232 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@82 18233 lt_compiler_flag="$lt_prog_compiler_pic_F77" ## exclude from sc_useless_quotes_in_assignment
Chris@82 18234 # Insert the option either (1) after the last *FLAGS variable, or
Chris@82 18235 # (2) before a word containing "conftest.", or (3) at the end.
Chris@82 18236 # Note that $ac_compile itself does not contain backslashes and begins
Chris@82 18237 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@82 18238 # The option is referenced via a variable to avoid confusing sed.
Chris@82 18239 lt_compile=`echo "$ac_compile" | $SED \
Chris@82 18240 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@82 18241 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@82 18242 -e 's:$: $lt_compiler_flag:'`
Chris@82 18243 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@82 18244 (eval "$lt_compile" 2>conftest.err)
Chris@82 18245 ac_status=$?
Chris@82 18246 cat conftest.err >&5
Chris@82 18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@82 18248 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@82 18249 # The compiler can only warn and ignore the option if not recognized
Chris@82 18250 # So say no if there are warnings other than the usual output.
Chris@82 18251 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Chris@82 18252 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@82 18253 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Chris@82 18254 lt_cv_prog_compiler_pic_works_F77=yes
Chris@82 18255 fi
Chris@82 18256 fi
Chris@82 18257 $RM conftest*
Chris@82 18258
Chris@82 18259 fi
Chris@82 18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
Chris@82 18261 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
Chris@82 18262
Chris@82 18263 if test yes = "$lt_cv_prog_compiler_pic_works_F77"; then
Chris@82 18264 case $lt_prog_compiler_pic_F77 in
Chris@82 18265 "" | " "*) ;;
Chris@82 18266 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
Chris@82 18267 esac
Chris@82 18268 else
Chris@82 18269 lt_prog_compiler_pic_F77=
Chris@82 18270 lt_prog_compiler_can_build_shared_F77=no
Chris@82 18271 fi
Chris@82 18272
Chris@82 18273 fi
Chris@82 18274
Chris@82 18275
Chris@82 18276
Chris@82 18277
Chris@82 18278
Chris@82 18279 #
Chris@82 18280 # Check to make sure the static flag actually works.
Chris@82 18281 #
Chris@82 18282 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
Chris@82 18283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
Chris@82 18284 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Chris@82 18285 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
Chris@82 18286 $as_echo_n "(cached) " >&6
Chris@82 18287 else
Chris@82 18288 lt_cv_prog_compiler_static_works_F77=no
Chris@82 18289 save_LDFLAGS=$LDFLAGS
Chris@82 18290 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Chris@82 18291 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Chris@82 18292 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Chris@82 18293 # The linker can only warn and ignore the option if not recognized
Chris@82 18294 # So say no if there are warnings
Chris@82 18295 if test -s conftest.err; then
Chris@82 18296 # Append any errors to the config.log.
Chris@82 18297 cat conftest.err 1>&5
Chris@82 18298 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Chris@82 18299 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@82 18300 if diff conftest.exp conftest.er2 >/dev/null; then
Chris@82 18301 lt_cv_prog_compiler_static_works_F77=yes
Chris@82 18302 fi
Chris@82 18303 else
Chris@82 18304 lt_cv_prog_compiler_static_works_F77=yes
Chris@82 18305 fi
Chris@82 18306 fi
Chris@82 18307 $RM -r conftest*
Chris@82 18308 LDFLAGS=$save_LDFLAGS
Chris@82 18309
Chris@82 18310 fi
Chris@82 18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
Chris@82 18312 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
Chris@82 18313
Chris@82 18314 if test yes = "$lt_cv_prog_compiler_static_works_F77"; then
Chris@82 18315 :
Chris@82 18316 else
Chris@82 18317 lt_prog_compiler_static_F77=
Chris@82 18318 fi
Chris@82 18319
Chris@82 18320
Chris@82 18321
Chris@82 18322
Chris@82 18323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@82 18324 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@82 18325 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
Chris@82 18326 $as_echo_n "(cached) " >&6
Chris@82 18327 else
Chris@82 18328 lt_cv_prog_compiler_c_o_F77=no
Chris@82 18329 $RM -r conftest 2>/dev/null
Chris@82 18330 mkdir conftest
Chris@82 18331 cd conftest
Chris@82 18332 mkdir out
Chris@82 18333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@82 18334
Chris@82 18335 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@82 18336 # Insert the option either (1) after the last *FLAGS variable, or
Chris@82 18337 # (2) before a word containing "conftest.", or (3) at the end.
Chris@82 18338 # Note that $ac_compile itself does not contain backslashes and begins
Chris@82 18339 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@82 18340 lt_compile=`echo "$ac_compile" | $SED \
Chris@82 18341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@82 18342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@82 18343 -e 's:$: $lt_compiler_flag:'`
Chris@82 18344 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@82 18345 (eval "$lt_compile" 2>out/conftest.err)
Chris@82 18346 ac_status=$?
Chris@82 18347 cat out/conftest.err >&5
Chris@82 18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@82 18349 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@82 18350 then
Chris@82 18351 # The compiler can only warn and ignore the option if not recognized
Chris@82 18352 # So say no if there are warnings
Chris@82 18353 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@82 18354 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@82 18355 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@82 18356 lt_cv_prog_compiler_c_o_F77=yes
Chris@82 18357 fi
Chris@82 18358 fi
Chris@82 18359 chmod u+w . 2>&5
Chris@82 18360 $RM conftest*
Chris@82 18361 # SGI C++ compiler will create directory out/ii_files/ for
Chris@82 18362 # template instantiation
Chris@82 18363 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@82 18364 $RM out/* && rmdir out
Chris@82 18365 cd ..
Chris@82 18366 $RM -r conftest
Chris@82 18367 $RM conftest*
Chris@82 18368
Chris@82 18369 fi
Chris@82 18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
Chris@82 18371 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
Chris@82 18372
Chris@82 18373
Chris@82 18374
Chris@82 18375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@82 18376 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@82 18377 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
Chris@82 18378 $as_echo_n "(cached) " >&6
Chris@82 18379 else
Chris@82 18380 lt_cv_prog_compiler_c_o_F77=no
Chris@82 18381 $RM -r conftest 2>/dev/null
Chris@82 18382 mkdir conftest
Chris@82 18383 cd conftest
Chris@82 18384 mkdir out
Chris@82 18385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@82 18386
Chris@82 18387 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@82 18388 # Insert the option either (1) after the last *FLAGS variable, or
Chris@82 18389 # (2) before a word containing "conftest.", or (3) at the end.
Chris@82 18390 # Note that $ac_compile itself does not contain backslashes and begins
Chris@82 18391 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@82 18392 lt_compile=`echo "$ac_compile" | $SED \
Chris@82 18393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@82 18394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@82 18395 -e 's:$: $lt_compiler_flag:'`
Chris@82 18396 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@82 18397 (eval "$lt_compile" 2>out/conftest.err)
Chris@82 18398 ac_status=$?
Chris@82 18399 cat out/conftest.err >&5
Chris@82 18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@82 18401 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@82 18402 then
Chris@82 18403 # The compiler can only warn and ignore the option if not recognized
Chris@82 18404 # So say no if there are warnings
Chris@82 18405 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@82 18406 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@82 18407 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@82 18408 lt_cv_prog_compiler_c_o_F77=yes
Chris@82 18409 fi
Chris@82 18410 fi
Chris@82 18411 chmod u+w . 2>&5
Chris@82 18412 $RM conftest*
Chris@82 18413 # SGI C++ compiler will create directory out/ii_files/ for
Chris@82 18414 # template instantiation
Chris@82 18415 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@82 18416 $RM out/* && rmdir out
Chris@82 18417 cd ..
Chris@82 18418 $RM -r conftest
Chris@82 18419 $RM conftest*
Chris@82 18420
Chris@82 18421 fi
Chris@82 18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
Chris@82 18423 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
Chris@82 18424
Chris@82 18425
Chris@82 18426
Chris@82 18427
Chris@82 18428 hard_links=nottested
Chris@82 18429 if test no = "$lt_cv_prog_compiler_c_o_F77" && test no != "$need_locks"; then
Chris@82 18430 # do not overwrite the value of need_locks provided by the user
Chris@82 18431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Chris@82 18432 $as_echo_n "checking if we can lock with hard links... " >&6; }
Chris@82 18433 hard_links=yes
Chris@82 18434 $RM conftest*
Chris@82 18435 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@82 18436 touch conftest.a
Chris@82 18437 ln conftest.a conftest.b 2>&5 || hard_links=no
Chris@82 18438 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@82 18439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Chris@82 18440 $as_echo "$hard_links" >&6; }
Chris@82 18441 if test no = "$hard_links"; then
Chris@82 18442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
Chris@82 18443 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
Chris@82 18444 need_locks=warn
Chris@82 18445 fi
Chris@82 18446 else
Chris@82 18447 need_locks=no
Chris@82 18448 fi
Chris@82 18449
Chris@82 18450
Chris@82 18451
Chris@82 18452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Chris@82 18453 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Chris@82 18454
Chris@82 18455 runpath_var=
Chris@82 18456 allow_undefined_flag_F77=
Chris@82 18457 always_export_symbols_F77=no
Chris@82 18458 archive_cmds_F77=
Chris@82 18459 archive_expsym_cmds_F77=
Chris@82 18460 compiler_needs_object_F77=no
Chris@82 18461 enable_shared_with_static_runtimes_F77=no
Chris@82 18462 export_dynamic_flag_spec_F77=
Chris@82 18463 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Chris@82 18464 hardcode_automatic_F77=no
Chris@82 18465 hardcode_direct_F77=no
Chris@82 18466 hardcode_direct_absolute_F77=no
Chris@82 18467 hardcode_libdir_flag_spec_F77=
Chris@82 18468 hardcode_libdir_separator_F77=
Chris@82 18469 hardcode_minus_L_F77=no
Chris@82 18470 hardcode_shlibpath_var_F77=unsupported
Chris@82 18471 inherit_rpath_F77=no
Chris@82 18472 link_all_deplibs_F77=unknown
Chris@82 18473 module_cmds_F77=
Chris@82 18474 module_expsym_cmds_F77=
Chris@82 18475 old_archive_from_new_cmds_F77=
Chris@82 18476 old_archive_from_expsyms_cmds_F77=
Chris@82 18477 thread_safe_flag_spec_F77=
Chris@82 18478 whole_archive_flag_spec_F77=
Chris@82 18479 # include_expsyms should be a list of space-separated symbols to be *always*
Chris@82 18480 # included in the symbol list
Chris@82 18481 include_expsyms_F77=
Chris@82 18482 # exclude_expsyms can be an extended regexp of symbols to exclude
Chris@82 18483 # it will be wrapped by ' (' and ')$', so one must not match beginning or
Chris@82 18484 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
Chris@82 18485 # as well as any symbol that contains 'd'.
Chris@82 18486 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Chris@82 18487 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
Chris@82 18488 # platforms (ab)use it in PIC code, but their linkers get confused if
Chris@82 18489 # the symbol is explicitly referenced. Since portable code cannot
Chris@82 18490 # rely on this symbol name, it's probably fine to never include it in
Chris@82 18491 # preloaded symbol tables.
Chris@82 18492 # Exclude shared library initialization/finalization symbols.
Chris@82 18493 extract_expsyms_cmds=
Chris@82 18494
Chris@82 18495 case $host_os in
Chris@82 18496 cygwin* | mingw* | pw32* | cegcc*)
Chris@82 18497 # FIXME: the MSVC++ port hasn't been tested in a loooong time
Chris@82 18498 # When not using gcc, we currently assume that we are using
Chris@82 18499 # Microsoft Visual C++.
Chris@82 18500 if test yes != "$GCC"; then
Chris@82 18501 with_gnu_ld=no
Chris@82 18502 fi
Chris@82 18503 ;;
Chris@82 18504 interix*)
Chris@82 18505 # we just hope/assume this is gcc and not c89 (= MSVC++)
Chris@82 18506 with_gnu_ld=yes
Chris@82 18507 ;;
Chris@82 18508 openbsd* | bitrig*)
Chris@82 18509 with_gnu_ld=no
Chris@82 18510 ;;
Chris@82 18511 linux* | k*bsd*-gnu | gnu*)
Chris@82 18512 link_all_deplibs_F77=no
Chris@82 18513 ;;
Chris@82 18514 esac
Chris@82 18515
Chris@82 18516 ld_shlibs_F77=yes
Chris@82 18517
Chris@82 18518 # On some targets, GNU ld is compatible enough with the native linker
Chris@82 18519 # that we're better off using the native interface for both.
Chris@82 18520 lt_use_gnu_ld_interface=no
Chris@82 18521 if test yes = "$with_gnu_ld"; then
Chris@82 18522 case $host_os in
Chris@82 18523 aix*)
Chris@82 18524 # The AIX port of GNU ld has always aspired to compatibility
Chris@82 18525 # with the native linker. However, as the warning in the GNU ld
Chris@82 18526 # block says, versions before 2.19.5* couldn't really create working
Chris@82 18527 # shared libraries, regardless of the interface used.
Chris@82 18528 case `$LD -v 2>&1` in
Chris@82 18529 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
Chris@82 18530 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
Chris@82 18531 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
Chris@82 18532 *)
Chris@82 18533 lt_use_gnu_ld_interface=yes
Chris@82 18534 ;;
Chris@82 18535 esac
Chris@82 18536 ;;
Chris@82 18537 *)
Chris@82 18538 lt_use_gnu_ld_interface=yes
Chris@82 18539 ;;
Chris@82 18540 esac
Chris@82 18541 fi
Chris@82 18542
Chris@82 18543 if test yes = "$lt_use_gnu_ld_interface"; then
Chris@82 18544 # If archive_cmds runs LD, not CC, wlarc should be empty
Chris@82 18545 wlarc='$wl'
Chris@82 18546
Chris@82 18547 # Set some defaults for GNU ld with shared library support. These
Chris@82 18548 # are reset later if shared libraries are not supported. Putting them
Chris@82 18549 # here allows them to be overridden if necessary.
Chris@82 18550 runpath_var=LD_RUN_PATH
Chris@82 18551 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
Chris@82 18552 export_dynamic_flag_spec_F77='$wl--export-dynamic'
Chris@82 18553 # ancient GNU ld didn't support --whole-archive et. al.
Chris@82 18554 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
Chris@82 18555 whole_archive_flag_spec_F77=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
Chris@82 18556 else
Chris@82 18557 whole_archive_flag_spec_F77=
Chris@82 18558 fi
Chris@82 18559 supports_anon_versioning=no
Chris@82 18560 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
Chris@82 18561 *GNU\ gold*) supports_anon_versioning=yes ;;
Chris@82 18562 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
Chris@82 18563 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
Chris@82 18564 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
Chris@82 18565 *\ 2.11.*) ;; # other 2.11 versions
Chris@82 18566 *) supports_anon_versioning=yes ;;
Chris@82 18567 esac
Chris@82 18568
Chris@82 18569 # See if GNU ld supports shared libraries.
Chris@82 18570 case $host_os in
Chris@82 18571 aix[3-9]*)
Chris@82 18572 # On AIX/PPC, the GNU linker is very broken
Chris@82 18573 if test ia64 != "$host_cpu"; then
Chris@82 18574 ld_shlibs_F77=no
Chris@82 18575 cat <<_LT_EOF 1>&2
Chris@82 18576
Chris@82 18577 *** Warning: the GNU linker, at least up to release 2.19, is reported
Chris@82 18578 *** to be unable to reliably create shared libraries on AIX.
Chris@82 18579 *** Therefore, libtool is disabling shared libraries support. If you
Chris@82 18580 *** really care for shared libraries, you may want to install binutils
Chris@82 18581 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
Chris@82 18582 *** You will then need to restart the configuration process.
Chris@82 18583
Chris@82 18584 _LT_EOF
Chris@82 18585 fi
Chris@82 18586 ;;
Chris@82 18587
Chris@82 18588 amigaos*)
Chris@82 18589 case $host_cpu in
Chris@82 18590 powerpc)
Chris@82 18591 # see comment about AmigaOS4 .so support
Chris@82 18592 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@82 18593 archive_expsym_cmds_F77=''
Chris@82 18594 ;;
Chris@82 18595 m68k)
Chris@82 18596 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@82 18597 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@82 18598 hardcode_minus_L_F77=yes
Chris@82 18599 ;;
Chris@82 18600 esac
Chris@82 18601 ;;
Chris@82 18602
Chris@82 18603 beos*)
Chris@82 18604 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@82 18605 allow_undefined_flag_F77=unsupported
Chris@82 18606 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
Chris@82 18607 # support --undefined. This deserves some investigation. FIXME
Chris@82 18608 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@82 18609 else
Chris@82 18610 ld_shlibs_F77=no
Chris@82 18611 fi
Chris@82 18612 ;;
Chris@82 18613
Chris@82 18614 cygwin* | mingw* | pw32* | cegcc*)
Chris@82 18615 # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
Chris@82 18616 # as there is no search path for DLLs.
Chris@82 18617 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@82 18618 export_dynamic_flag_spec_F77='$wl--export-all-symbols'
Chris@82 18619 allow_undefined_flag_F77=unsupported
Chris@82 18620 always_export_symbols_F77=no
Chris@82 18621 enable_shared_with_static_runtimes_F77=yes
Chris@82 18622 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@82 18623 exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
Chris@82 18624
Chris@82 18625 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Chris@82 18626 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Chris@82 18627 # If the export-symbols file already is a .def file, use it as
Chris@82 18628 # is; otherwise, prepend EXPORTS...
Chris@82 18629 archive_expsym_cmds_F77='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
Chris@82 18630 cp $export_symbols $output_objdir/$soname.def;
Chris@82 18631 else
Chris@82 18632 echo EXPORTS > $output_objdir/$soname.def;
Chris@82 18633 cat $export_symbols >> $output_objdir/$soname.def;
Chris@82 18634 fi~
Chris@82 18635 $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@82 18636 else
Chris@82 18637 ld_shlibs_F77=no
Chris@82 18638 fi
Chris@82 18639 ;;
Chris@82 18640
Chris@82 18641 haiku*)
Chris@82 18642 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@82 18643 link_all_deplibs_F77=yes
Chris@82 18644 ;;
Chris@82 18645
Chris@82 18646 os2*)
Chris@82 18647 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@82 18648 hardcode_minus_L_F77=yes
Chris@82 18649 allow_undefined_flag_F77=unsupported
Chris@82 18650 shrext_cmds=.dll
Chris@82 18651 archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
Chris@82 18652 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
Chris@82 18653 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
Chris@82 18654 $ECHO EXPORTS >> $output_objdir/$libname.def~
Chris@82 18655 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
Chris@82 18656 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
Chris@82 18657 emximp -o $lib $output_objdir/$libname.def'
Chris@82 18658 archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
Chris@82 18659 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
Chris@82 18660 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
Chris@82 18661 $ECHO EXPORTS >> $output_objdir/$libname.def~
Chris@82 18662 prefix_cmds="$SED"~
Chris@82 18663 if test EXPORTS = "`$SED 1q $export_symbols`"; then
Chris@82 18664 prefix_cmds="$prefix_cmds -e 1d";
Chris@82 18665 fi~
Chris@82 18666 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
Chris@82 18667 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
Chris@82 18668 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
Chris@82 18669 emximp -o $lib $output_objdir/$libname.def'
Chris@82 18670 old_archive_From_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
Chris@82 18671 enable_shared_with_static_runtimes_F77=yes
Chris@82 18672 ;;
Chris@82 18673
Chris@82 18674 interix[3-9]*)
Chris@82 18675 hardcode_direct_F77=no
Chris@82 18676 hardcode_shlibpath_var_F77=no
Chris@82 18677 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir'
Chris@82 18678 export_dynamic_flag_spec_F77='$wl-E'
Chris@82 18679 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
Chris@82 18680 # Instead, shared libraries are loaded at an image base (0x10000000 by
Chris@82 18681 # default) and relocated if they conflict, which is a slow very memory
Chris@82 18682 # consuming and fragmenting process. To avoid this, we pick a random,
Chris@82 18683 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
Chris@82 18684 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Chris@82 18685 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@82 18686 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@82 18687 ;;
Chris@82 18688
Chris@82 18689 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@82 18690 tmp_diet=no
Chris@82 18691 if test linux-dietlibc = "$host_os"; then
Chris@82 18692 case $cc_basename in
Chris@82 18693 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
Chris@82 18694 esac
Chris@82 18695 fi
Chris@82 18696 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
Chris@82 18697 && test no = "$tmp_diet"
Chris@82 18698 then
Chris@82 18699 tmp_addflag=' $pic_flag'
Chris@82 18700 tmp_sharedflag='-shared'
Chris@82 18701 case $cc_basename,$host_cpu in
Chris@82 18702 pgcc*) # Portland Group C compiler
Chris@82 18703 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@82 18704 tmp_addflag=' $pic_flag'
Chris@82 18705 ;;
Chris@82 18706 pgf77* | pgf90* | pgf95* | pgfortran*)
Chris@82 18707 # Portland Group f77 and f90 compilers
Chris@82 18708 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@82 18709 tmp_addflag=' $pic_flag -Mnomain' ;;
Chris@82 18710 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Chris@82 18711 tmp_addflag=' -i_dynamic' ;;
Chris@82 18712 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
Chris@82 18713 tmp_addflag=' -i_dynamic -nofor_main' ;;
Chris@82 18714 ifc* | ifort*) # Intel Fortran compiler
Chris@82 18715 tmp_addflag=' -nofor_main' ;;
Chris@82 18716 lf95*) # Lahey Fortran 8.1
Chris@82 18717 whole_archive_flag_spec_F77=
Chris@82 18718 tmp_sharedflag='--shared' ;;
Chris@82 18719 nagfor*) # NAGFOR 5.3
Chris@82 18720 tmp_sharedflag='-Wl,-shared' ;;
Chris@82 18721 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Chris@82 18722 tmp_sharedflag='-qmkshrobj'
Chris@82 18723 tmp_addflag= ;;
Chris@82 18724 nvcc*) # Cuda Compiler Driver 2.2
Chris@82 18725 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@82 18726 compiler_needs_object_F77=yes
Chris@82 18727 ;;
Chris@82 18728 esac
Chris@82 18729 case `$CC -V 2>&1 | sed 5q` in
Chris@82 18730 *Sun\ C*) # Sun C 5.9
Chris@82 18731 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@82 18732 compiler_needs_object_F77=yes
Chris@82 18733 tmp_sharedflag='-G' ;;
Chris@82 18734 *Sun\ F*) # Sun Fortran 8.3
Chris@82 18735 tmp_sharedflag='-G' ;;
Chris@82 18736 esac
Chris@82 18737 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@82 18738
Chris@82 18739 if test yes = "$supports_anon_versioning"; then
Chris@82 18740 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
Chris@82 18741 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@82 18742 echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@82 18743 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
Chris@82 18744 fi
Chris@82 18745
Chris@82 18746 case $cc_basename in
Chris@82 18747 tcc*)
Chris@82 18748 export_dynamic_flag_spec_F77='-rdynamic'
Chris@82 18749 ;;
Chris@82 18750 xlf* | bgf* | bgxlf* | mpixlf*)
Chris@82 18751 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
Chris@82 18752 whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
Chris@82 18753 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
Chris@82 18754 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Chris@82 18755 if test yes = "$supports_anon_versioning"; then
Chris@82 18756 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
Chris@82 18757 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@82 18758 echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@82 18759 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Chris@82 18760 fi
Chris@82 18761 ;;
Chris@82 18762 esac
Chris@82 18763 else
Chris@82 18764 ld_shlibs_F77=no
Chris@82 18765 fi
Chris@82 18766 ;;
Chris@82 18767
Chris@82 18768 netbsd* | netbsdelf*-gnu)
Chris@82 18769 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@82 18770 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
Chris@82 18771 wlarc=
Chris@82 18772 else
Chris@82 18773 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@82 18774 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@82 18775 fi
Chris@82 18776 ;;
Chris@82 18777
Chris@82 18778 solaris*)
Chris@82 18779 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Chris@82 18780 ld_shlibs_F77=no
Chris@82 18781 cat <<_LT_EOF 1>&2
Chris@82 18782
Chris@82 18783 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
Chris@82 18784 *** create shared libraries on Solaris systems. Therefore, libtool
Chris@82 18785 *** is disabling shared libraries support. We urge you to upgrade GNU
Chris@82 18786 *** binutils to release 2.9.1 or newer. Another option is to modify
Chris@82 18787 *** your PATH or compiler configuration so that the native linker is
Chris@82 18788 *** used, and then restart.
Chris@82 18789
Chris@82 18790 _LT_EOF
Chris@82 18791 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@82 18792 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@82 18793 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@82 18794 else
Chris@82 18795 ld_shlibs_F77=no
Chris@82 18796 fi
Chris@82 18797 ;;
Chris@82 18798
Chris@82 18799 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
Chris@82 18800 case `$LD -v 2>&1` in
Chris@82 18801 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
Chris@82 18802 ld_shlibs_F77=no
Chris@82 18803 cat <<_LT_EOF 1>&2
Chris@82 18804
Chris@82 18805 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
Chris@82 18806 *** reliably create shared libraries on SCO systems. Therefore, libtool
Chris@82 18807 *** is disabling shared libraries support. We urge you to upgrade GNU
Chris@82 18808 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
Chris@82 18809 *** your PATH or compiler configuration so that the native linker is
Chris@82 18810 *** used, and then restart.
Chris@82 18811
Chris@82 18812 _LT_EOF
Chris@82 18813 ;;
Chris@82 18814 *)
Chris@82 18815 # For security reasons, it is highly recommended that you always
Chris@82 18816 # use absolute paths for naming shared libraries, and exclude the
Chris@82 18817 # DT_RUNPATH tag from executables and libraries. But doing so
Chris@82 18818 # requires that you compile everything twice, which is a pain.
Chris@82 18819 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@82 18820 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
Chris@82 18821 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@82 18822 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Chris@82 18823 else
Chris@82 18824 ld_shlibs_F77=no
Chris@82 18825 fi
Chris@82 18826 ;;
Chris@82 18827 esac
Chris@82 18828 ;;
Chris@82 18829
Chris@82 18830 sunos4*)
Chris@82 18831 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@82 18832 wlarc=
Chris@82 18833 hardcode_direct_F77=yes
Chris@82 18834 hardcode_shlibpath_var_F77=no
Chris@82 18835 ;;
Chris@82 18836
Chris@82 18837 *)
Chris@82 18838 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@82 18839 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@82 18840 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@82 18841 else
Chris@82 18842 ld_shlibs_F77=no
Chris@82 18843 fi
Chris@82 18844 ;;
Chris@82 18845 esac
Chris@82 18846
Chris@82 18847 if test no = "$ld_shlibs_F77"; then
Chris@82 18848 runpath_var=
Chris@82 18849 hardcode_libdir_flag_spec_F77=
Chris@82 18850 export_dynamic_flag_spec_F77=
Chris@82 18851 whole_archive_flag_spec_F77=
Chris@82 18852 fi
Chris@82 18853 else
Chris@82 18854 # PORTME fill in a description of your system's linker (not GNU ld)
Chris@82 18855 case $host_os in
Chris@82 18856 aix3*)
Chris@82 18857 allow_undefined_flag_F77=unsupported
Chris@82 18858 always_export_symbols_F77=yes
Chris@82 18859 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@82 18860 # Note: this linker hardcodes the directories in LIBPATH if there
Chris@82 18861 # are no directories specified by -L.
Chris@82 18862 hardcode_minus_L_F77=yes
Chris@82 18863 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
Chris@82 18864 # Neither direct hardcoding nor static linking is supported with a
Chris@82 18865 # broken collect2.
Chris@82 18866 hardcode_direct_F77=unsupported
Chris@82 18867 fi
Chris@82 18868 ;;
Chris@82 18869
Chris@82 18870 aix[4-9]*)
Chris@82 18871 if test ia64 = "$host_cpu"; then
Chris@82 18872 # On IA64, the linker does run time linking by default, so we don't
Chris@82 18873 # have to do anything special.
Chris@82 18874 aix_use_runtimelinking=no
Chris@82 18875 exp_sym_flag='-Bexport'
Chris@82 18876 no_entry_flag=
Chris@82 18877 else
Chris@82 18878 # If we're using GNU nm, then we don't want the "-C" option.
Chris@82 18879 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
Chris@82 18880 # Without the "-l" option, or with the "-B" option, AIX nm treats
Chris@82 18881 # weak defined symbols like other global defined symbols, whereas
Chris@82 18882 # GNU nm marks them as "W".
Chris@82 18883 # While the 'weak' keyword is ignored in the Export File, we need
Chris@82 18884 # it in the Import File for the 'aix-soname' feature, so we have
Chris@82 18885 # to replace the "-B" option with "-P" for AIX nm.
Chris@82 18886 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Chris@82 18887 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
Chris@82 18888 else
Chris@82 18889 export_symbols_cmds_F77='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
Chris@82 18890 fi
Chris@82 18891 aix_use_runtimelinking=no
Chris@82 18892
Chris@82 18893 # Test if we are trying to use run time linking or normal
Chris@82 18894 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Chris@82 18895 # have runtime linking enabled, and use it for executables.
Chris@82 18896 # For shared libraries, we enable/disable runtime linking
Chris@82 18897 # depending on the kind of the shared library created -
Chris@82 18898 # when "with_aix_soname,aix_use_runtimelinking" is:
Chris@82 18899 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
Chris@82 18900 # "aix,yes" lib.so shared, rtl:yes, for executables
Chris@82 18901 # lib.a static archive
Chris@82 18902 # "both,no" lib.so.V(shr.o) shared, rtl:yes
Chris@82 18903 # lib.a(lib.so.V) shared, rtl:no, for executables
Chris@82 18904 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
Chris@82 18905 # lib.a(lib.so.V) shared, rtl:no
Chris@82 18906 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
Chris@82 18907 # lib.a static archive
Chris@82 18908 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Chris@82 18909 for ld_flag in $LDFLAGS; do
Chris@82 18910 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
Chris@82 18911 aix_use_runtimelinking=yes
Chris@82 18912 break
Chris@82 18913 fi
Chris@82 18914 done
Chris@82 18915 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
Chris@82 18916 # With aix-soname=svr4, we create the lib.so.V shared archives only,
Chris@82 18917 # so we don't have lib.a shared libs to link our executables.
Chris@82 18918 # We have to force runtime linking in this case.
Chris@82 18919 aix_use_runtimelinking=yes
Chris@82 18920 LDFLAGS="$LDFLAGS -Wl,-brtl"
Chris@82 18921 fi
Chris@82 18922 ;;
Chris@82 18923 esac
Chris@82 18924
Chris@82 18925 exp_sym_flag='-bexport'
Chris@82 18926 no_entry_flag='-bnoentry'
Chris@82 18927 fi
Chris@82 18928
Chris@82 18929 # When large executables or shared objects are built, AIX ld can
Chris@82 18930 # have problems creating the table of contents. If linking a library
Chris@82 18931 # or program results in "error TOC overflow" add -mminimal-toc to
Chris@82 18932 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
Chris@82 18933 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
Chris@82 18934
Chris@82 18935 archive_cmds_F77=''
Chris@82 18936 hardcode_direct_F77=yes
Chris@82 18937 hardcode_direct_absolute_F77=yes
Chris@82 18938 hardcode_libdir_separator_F77=':'
Chris@82 18939 link_all_deplibs_F77=yes
Chris@82 18940 file_list_spec_F77='$wl-f,'
Chris@82 18941 case $with_aix_soname,$aix_use_runtimelinking in
Chris@82 18942 aix,*) ;; # traditional, no import file
Chris@82 18943 svr4,* | *,yes) # use import file
Chris@82 18944 # The Import File defines what to hardcode.
Chris@82 18945 hardcode_direct_F77=no
Chris@82 18946 hardcode_direct_absolute_F77=no
Chris@82 18947 ;;
Chris@82 18948 esac
Chris@82 18949
Chris@82 18950 if test yes = "$GCC"; then
Chris@82 18951 case $host_os in aix4.[012]|aix4.[012].*)
Chris@82 18952 # We only want to do this on AIX 4.2 and lower, the check
Chris@82 18953 # below for broken collect2 doesn't work under 4.3+
Chris@82 18954 collect2name=`$CC -print-prog-name=collect2`
Chris@82 18955 if test -f "$collect2name" &&
Chris@82 18956 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Chris@82 18957 then
Chris@82 18958 # We have reworked collect2
Chris@82 18959 :
Chris@82 18960 else
Chris@82 18961 # We have old collect2
Chris@82 18962 hardcode_direct_F77=unsupported
Chris@82 18963 # It fails to find uninstalled libraries when the uninstalled
Chris@82 18964 # path is not listed in the libpath. Setting hardcode_minus_L
Chris@82 18965 # to unsupported forces relinking
Chris@82 18966 hardcode_minus_L_F77=yes
Chris@82 18967 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@82 18968 hardcode_libdir_separator_F77=
Chris@82 18969 fi
Chris@82 18970 ;;
Chris@82 18971 esac
Chris@82 18972 shared_flag='-shared'
Chris@82 18973 if test yes = "$aix_use_runtimelinking"; then
Chris@82 18974 shared_flag="$shared_flag "'$wl-G'
Chris@82 18975 fi
Chris@82 18976 # Need to ensure runtime linking is disabled for the traditional
Chris@82 18977 # shared library, or the linker may eventually find shared libraries
Chris@82 18978 # /with/ Import File - we do not want to mix them.
Chris@82 18979 shared_flag_aix='-shared'
Chris@82 18980 shared_flag_svr4='-shared $wl-G'
Chris@82 18981 else
Chris@82 18982 # not using gcc
Chris@82 18983 if test ia64 = "$host_cpu"; then
Chris@82 18984 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
Chris@82 18985 # chokes on -Wl,-G. The following line is correct:
Chris@82 18986 shared_flag='-G'
Chris@82 18987 else
Chris@82 18988 if test yes = "$aix_use_runtimelinking"; then
Chris@82 18989 shared_flag='$wl-G'
Chris@82 18990 else
Chris@82 18991 shared_flag='$wl-bM:SRE'
Chris@82 18992 fi
Chris@82 18993 shared_flag_aix='$wl-bM:SRE'
Chris@82 18994 shared_flag_svr4='$wl-G'
Chris@82 18995 fi
Chris@82 18996 fi
Chris@82 18997
Chris@82 18998 export_dynamic_flag_spec_F77='$wl-bexpall'
Chris@82 18999 # It seems that -bexpall does not export symbols beginning with
Chris@82 19000 # underscore (_), so it is better to generate a list of symbols to export.
Chris@82 19001 always_export_symbols_F77=yes
Chris@82 19002 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
Chris@82 19003 # Warning - without using the other runtime loading flags (-brtl),
Chris@82 19004 # -berok will link without error, but may produce a broken library.
Chris@82 19005 allow_undefined_flag_F77='-berok'
Chris@82 19006 # Determine the default libpath from the value encoded in an
Chris@82 19007 # empty executable.
Chris@82 19008 if test set = "${lt_cv_aix_libpath+set}"; then
Chris@82 19009 aix_libpath=$lt_cv_aix_libpath
Chris@82 19010 else
Chris@82 19011 if ${lt_cv_aix_libpath__F77+:} false; then :
Chris@82 19012 $as_echo_n "(cached) " >&6
Chris@82 19013 else
Chris@82 19014 cat > conftest.$ac_ext <<_ACEOF
Chris@82 19015 program main
Chris@82 19016
Chris@82 19017 end
Chris@82 19018 _ACEOF
Chris@82 19019 if ac_fn_f77_try_link "$LINENO"; then :
Chris@82 19020
Chris@82 19021 lt_aix_libpath_sed='
Chris@82 19022 /Import File Strings/,/^$/ {
Chris@82 19023 /^0/ {
Chris@82 19024 s/^0 *\([^ ]*\) *$/\1/
Chris@82 19025 p
Chris@82 19026 }
Chris@82 19027 }'
Chris@82 19028 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@82 19029 # Check for a 64-bit object if we didn't find anything.
Chris@82 19030 if test -z "$lt_cv_aix_libpath__F77"; then
Chris@82 19031 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@82 19032 fi
Chris@82 19033 fi
Chris@82 19034 rm -f core conftest.err conftest.$ac_objext \
Chris@82 19035 conftest$ac_exeext conftest.$ac_ext
Chris@82 19036 if test -z "$lt_cv_aix_libpath__F77"; then
Chris@82 19037 lt_cv_aix_libpath__F77=/usr/lib:/lib
Chris@82 19038 fi
Chris@82 19039
Chris@82 19040 fi
Chris@82 19041
Chris@82 19042 aix_libpath=$lt_cv_aix_libpath__F77
Chris@82 19043 fi
Chris@82 19044
Chris@82 19045 hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath"
Chris@82 19046 archive_expsym_cmds_F77='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
Chris@82 19047 else
Chris@82 19048 if test ia64 = "$host_cpu"; then
Chris@82 19049 hardcode_libdir_flag_spec_F77='$wl-R $libdir:/usr/lib:/lib'
Chris@82 19050 allow_undefined_flag_F77="-z nodefs"
Chris@82 19051 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@82 19052 else
Chris@82 19053 # Determine the default libpath from the value encoded in an
Chris@82 19054 # empty executable.
Chris@82 19055 if test set = "${lt_cv_aix_libpath+set}"; then
Chris@82 19056 aix_libpath=$lt_cv_aix_libpath
Chris@82 19057 else
Chris@82 19058 if ${lt_cv_aix_libpath__F77+:} false; then :
Chris@82 19059 $as_echo_n "(cached) " >&6
Chris@82 19060 else
Chris@82 19061 cat > conftest.$ac_ext <<_ACEOF
Chris@82 19062 program main
Chris@82 19063
Chris@82 19064 end
Chris@82 19065 _ACEOF
Chris@82 19066 if ac_fn_f77_try_link "$LINENO"; then :
Chris@82 19067
Chris@82 19068 lt_aix_libpath_sed='
Chris@82 19069 /Import File Strings/,/^$/ {
Chris@82 19070 /^0/ {
Chris@82 19071 s/^0 *\([^ ]*\) *$/\1/
Chris@82 19072 p
Chris@82 19073 }
Chris@82 19074 }'
Chris@82 19075 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@82 19076 # Check for a 64-bit object if we didn't find anything.
Chris@82 19077 if test -z "$lt_cv_aix_libpath__F77"; then
Chris@82 19078 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@82 19079 fi
Chris@82 19080 fi
Chris@82 19081 rm -f core conftest.err conftest.$ac_objext \
Chris@82 19082 conftest$ac_exeext conftest.$ac_ext
Chris@82 19083 if test -z "$lt_cv_aix_libpath__F77"; then
Chris@82 19084 lt_cv_aix_libpath__F77=/usr/lib:/lib
Chris@82 19085 fi
Chris@82 19086
Chris@82 19087 fi
Chris@82 19088
Chris@82 19089 aix_libpath=$lt_cv_aix_libpath__F77
Chris@82 19090 fi
Chris@82 19091
Chris@82 19092 hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath"
Chris@82 19093 # Warning - without using the other run time loading flags,
Chris@82 19094 # -berok will link without error, but may produce a broken library.
Chris@82 19095 no_undefined_flag_F77=' $wl-bernotok'
Chris@82 19096 allow_undefined_flag_F77=' $wl-berok'
Chris@82 19097 if test yes = "$with_gnu_ld"; then
Chris@82 19098 # We only use this code for GNU lds that support --whole-archive.
Chris@82 19099 whole_archive_flag_spec_F77='$wl--whole-archive$convenience $wl--no-whole-archive'
Chris@82 19100 else
Chris@82 19101 # Exported symbols can be pulled into shared objects from archives
Chris@82 19102 whole_archive_flag_spec_F77='$convenience'
Chris@82 19103 fi
Chris@82 19104 archive_cmds_need_lc_F77=yes
Chris@82 19105 archive_expsym_cmds_F77='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
Chris@82 19106 # -brtl affects multiple linker settings, -berok does not and is overridden later
Chris@82 19107 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
Chris@82 19108 if test svr4 != "$with_aix_soname"; then
Chris@82 19109 # This is similar to how AIX traditionally builds its shared libraries.
Chris@82 19110 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
Chris@82 19111 fi
Chris@82 19112 if test aix != "$with_aix_soname"; then
Chris@82 19113 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
Chris@82 19114 else
Chris@82 19115 # used by -dlpreopen to get the symbols
Chris@82 19116 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
Chris@82 19117 fi
Chris@82 19118 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$RM -r $output_objdir/$realname.d'
Chris@82 19119 fi
Chris@82 19120 fi
Chris@82 19121 ;;
Chris@82 19122
Chris@82 19123 amigaos*)
Chris@82 19124 case $host_cpu in
Chris@82 19125 powerpc)
Chris@82 19126 # see comment about AmigaOS4 .so support
Chris@82 19127 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@82 19128 archive_expsym_cmds_F77=''
Chris@82 19129 ;;
Chris@82 19130 m68k)
Chris@82 19131 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@82 19132 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@82 19133 hardcode_minus_L_F77=yes
Chris@82 19134 ;;
Chris@82 19135 esac
Chris@82 19136 ;;
Chris@82 19137
Chris@82 19138 bsdi[45]*)
Chris@82 19139 export_dynamic_flag_spec_F77=-rdynamic
Chris@82 19140 ;;
Chris@82 19141
Chris@82 19142 cygwin* | mingw* | pw32* | cegcc*)
Chris@82 19143 # When not using gcc, we currently assume that we are using
Chris@82 19144 # Microsoft Visual C++.
Chris@82 19145 # hardcode_libdir_flag_spec is actually meaningless, as there is
Chris@82 19146 # no search path for DLLs.
Chris@82 19147 case $cc_basename in
Chris@82 19148 cl*)
Chris@82 19149 # Native MSVC
Chris@82 19150 hardcode_libdir_flag_spec_F77=' '
Chris@82 19151 allow_undefined_flag_F77=unsupported
Chris@82 19152 always_export_symbols_F77=yes
Chris@82 19153 file_list_spec_F77='@'
Chris@82 19154 # Tell ltmain to make .lib files, not .a files.
Chris@82 19155 libext=lib
Chris@82 19156 # Tell ltmain to make .dll files, not .so files.
Chris@82 19157 shrext_cmds=.dll
Chris@82 19158 # FIXME: Setting linknames here is a bad hack.
Chris@82 19159 archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
Chris@82 19160 archive_expsym_cmds_F77='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
Chris@82 19161 cp "$export_symbols" "$output_objdir/$soname.def";
Chris@82 19162 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
Chris@82 19163 else
Chris@82 19164 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
Chris@82 19165 fi~
Chris@82 19166 $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@82 19167 linknames='
Chris@82 19168 # The linker will not automatically build a static lib if we build a DLL.
Chris@82 19169 # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true'
Chris@82 19170 enable_shared_with_static_runtimes_F77=yes
Chris@82 19171 exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
Chris@82 19172 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@82 19173 # Don't use ranlib
Chris@82 19174 old_postinstall_cmds_F77='chmod 644 $oldlib'
Chris@82 19175 postlink_cmds_F77='lt_outputfile="@OUTPUT@"~
Chris@82 19176 lt_tool_outputfile="@TOOL_OUTPUT@"~
Chris@82 19177 case $lt_outputfile in
Chris@82 19178 *.exe|*.EXE) ;;
Chris@82 19179 *)
Chris@82 19180 lt_outputfile=$lt_outputfile.exe
Chris@82 19181 lt_tool_outputfile=$lt_tool_outputfile.exe
Chris@82 19182 ;;
Chris@82 19183 esac~
Chris@82 19184 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
Chris@82 19185 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
Chris@82 19186 $RM "$lt_outputfile.manifest";
Chris@82 19187 fi'
Chris@82 19188 ;;
Chris@82 19189 *)
Chris@82 19190 # Assume MSVC wrapper
Chris@82 19191 hardcode_libdir_flag_spec_F77=' '
Chris@82 19192 allow_undefined_flag_F77=unsupported
Chris@82 19193 # Tell ltmain to make .lib files, not .a files.
Chris@82 19194 libext=lib
Chris@82 19195 # Tell ltmain to make .dll files, not .so files.
Chris@82 19196 shrext_cmds=.dll
Chris@82 19197 # FIXME: Setting linknames here is a bad hack.
Chris@82 19198 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
Chris@82 19199 # The linker will automatically build a .lib file if we build a DLL.
Chris@82 19200 old_archive_from_new_cmds_F77='true'
Chris@82 19201 # FIXME: Should let the user specify the lib program.
Chris@82 19202 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
Chris@82 19203 enable_shared_with_static_runtimes_F77=yes
Chris@82 19204 ;;
Chris@82 19205 esac
Chris@82 19206 ;;
Chris@82 19207
Chris@82 19208 darwin* | rhapsody*)
Chris@82 19209
Chris@82 19210
Chris@82 19211 archive_cmds_need_lc_F77=no
Chris@82 19212 hardcode_direct_F77=no
Chris@82 19213 hardcode_automatic_F77=yes
Chris@82 19214 hardcode_shlibpath_var_F77=unsupported
Chris@82 19215 if test yes = "$lt_cv_ld_force_load"; then
Chris@82 19216 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@82 19217 compiler_needs_object_F77=yes
Chris@82 19218 else
Chris@82 19219 whole_archive_flag_spec_F77=''
Chris@82 19220 fi
Chris@82 19221 link_all_deplibs_F77=yes
Chris@82 19222 allow_undefined_flag_F77=$_lt_dar_allow_undefined
Chris@82 19223 case $cc_basename in
Chris@82 19224 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
Chris@82 19225 *) _lt_dar_can_shared=$GCC ;;
Chris@82 19226 esac
Chris@82 19227 if test yes = "$_lt_dar_can_shared"; then
Chris@82 19228 output_verbose_link_cmd=func_echo_all
Chris@82 19229 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@82 19230 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
Chris@82 19231 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@82 19232 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@82 19233
Chris@82 19234 else
Chris@82 19235 ld_shlibs_F77=no
Chris@82 19236 fi
Chris@82 19237
Chris@82 19238 ;;
Chris@82 19239
Chris@82 19240 dgux*)
Chris@82 19241 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@82 19242 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@82 19243 hardcode_shlibpath_var_F77=no
Chris@82 19244 ;;
Chris@82 19245
Chris@82 19246 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
Chris@82 19247 # support. Future versions do this automatically, but an explicit c++rt0.o
Chris@82 19248 # does not break anything, and helps significantly (at the cost of a little
Chris@82 19249 # extra space).
Chris@82 19250 freebsd2.2*)
Chris@82 19251 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
Chris@82 19252 hardcode_libdir_flag_spec_F77='-R$libdir'
Chris@82 19253 hardcode_direct_F77=yes
Chris@82 19254 hardcode_shlibpath_var_F77=no
Chris@82 19255 ;;
Chris@82 19256
Chris@82 19257 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Chris@82 19258 freebsd2.*)
Chris@82 19259 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@82 19260 hardcode_direct_F77=yes
Chris@82 19261 hardcode_minus_L_F77=yes
Chris@82 19262 hardcode_shlibpath_var_F77=no
Chris@82 19263 ;;
Chris@82 19264
Chris@82 19265 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Chris@82 19266 freebsd* | dragonfly*)
Chris@82 19267 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 19268 hardcode_libdir_flag_spec_F77='-R$libdir'
Chris@82 19269 hardcode_direct_F77=yes
Chris@82 19270 hardcode_shlibpath_var_F77=no
Chris@82 19271 ;;
Chris@82 19272
Chris@82 19273 hpux9*)
Chris@82 19274 if test yes = "$GCC"; then
Chris@82 19275 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
Chris@82 19276 else
Chris@82 19277 archive_cmds_F77='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
Chris@82 19278 fi
Chris@82 19279 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir'
Chris@82 19280 hardcode_libdir_separator_F77=:
Chris@82 19281 hardcode_direct_F77=yes
Chris@82 19282
Chris@82 19283 # hardcode_minus_L: Not really in the search PATH,
Chris@82 19284 # but as the default location of the library.
Chris@82 19285 hardcode_minus_L_F77=yes
Chris@82 19286 export_dynamic_flag_spec_F77='$wl-E'
Chris@82 19287 ;;
Chris@82 19288
Chris@82 19289 hpux10*)
Chris@82 19290 if test yes,no = "$GCC,$with_gnu_ld"; then
Chris@82 19291 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 19292 else
Chris@82 19293 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
Chris@82 19294 fi
Chris@82 19295 if test no = "$with_gnu_ld"; then
Chris@82 19296 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir'
Chris@82 19297 hardcode_libdir_separator_F77=:
Chris@82 19298 hardcode_direct_F77=yes
Chris@82 19299 hardcode_direct_absolute_F77=yes
Chris@82 19300 export_dynamic_flag_spec_F77='$wl-E'
Chris@82 19301 # hardcode_minus_L: Not really in the search PATH,
Chris@82 19302 # but as the default location of the library.
Chris@82 19303 hardcode_minus_L_F77=yes
Chris@82 19304 fi
Chris@82 19305 ;;
Chris@82 19306
Chris@82 19307 hpux11*)
Chris@82 19308 if test yes,no = "$GCC,$with_gnu_ld"; then
Chris@82 19309 case $host_cpu in
Chris@82 19310 hppa*64*)
Chris@82 19311 archive_cmds_F77='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 19312 ;;
Chris@82 19313 ia64*)
Chris@82 19314 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 19315 ;;
Chris@82 19316 *)
Chris@82 19317 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 19318 ;;
Chris@82 19319 esac
Chris@82 19320 else
Chris@82 19321 case $host_cpu in
Chris@82 19322 hppa*64*)
Chris@82 19323 archive_cmds_F77='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 19324 ;;
Chris@82 19325 ia64*)
Chris@82 19326 archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 19327 ;;
Chris@82 19328 *)
Chris@82 19329 archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 19330 ;;
Chris@82 19331 esac
Chris@82 19332 fi
Chris@82 19333 if test no = "$with_gnu_ld"; then
Chris@82 19334 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir'
Chris@82 19335 hardcode_libdir_separator_F77=:
Chris@82 19336
Chris@82 19337 case $host_cpu in
Chris@82 19338 hppa*64*|ia64*)
Chris@82 19339 hardcode_direct_F77=no
Chris@82 19340 hardcode_shlibpath_var_F77=no
Chris@82 19341 ;;
Chris@82 19342 *)
Chris@82 19343 hardcode_direct_F77=yes
Chris@82 19344 hardcode_direct_absolute_F77=yes
Chris@82 19345 export_dynamic_flag_spec_F77='$wl-E'
Chris@82 19346
Chris@82 19347 # hardcode_minus_L: Not really in the search PATH,
Chris@82 19348 # but as the default location of the library.
Chris@82 19349 hardcode_minus_L_F77=yes
Chris@82 19350 ;;
Chris@82 19351 esac
Chris@82 19352 fi
Chris@82 19353 ;;
Chris@82 19354
Chris@82 19355 irix5* | irix6* | nonstopux*)
Chris@82 19356 if test yes = "$GCC"; then
Chris@82 19357 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@82 19358 # Try to use the -exported_symbol ld option, if it does not
Chris@82 19359 # work, assume that -exports_file does not work either and
Chris@82 19360 # implicitly export all symbols.
Chris@82 19361 # This should be the same for all languages, so no per-tag cache variable.
Chris@82 19362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
Chris@82 19363 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
Chris@82 19364 if ${lt_cv_irix_exported_symbol+:} false; then :
Chris@82 19365 $as_echo_n "(cached) " >&6
Chris@82 19366 else
Chris@82 19367 save_LDFLAGS=$LDFLAGS
Chris@82 19368 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
Chris@82 19369 cat > conftest.$ac_ext <<_ACEOF
Chris@82 19370
Chris@82 19371 subroutine foo
Chris@82 19372 end
Chris@82 19373 _ACEOF
Chris@82 19374 if ac_fn_f77_try_link "$LINENO"; then :
Chris@82 19375 lt_cv_irix_exported_symbol=yes
Chris@82 19376 else
Chris@82 19377 lt_cv_irix_exported_symbol=no
Chris@82 19378 fi
Chris@82 19379 rm -f core conftest.err conftest.$ac_objext \
Chris@82 19380 conftest$ac_exeext conftest.$ac_ext
Chris@82 19381 LDFLAGS=$save_LDFLAGS
Chris@82 19382 fi
Chris@82 19383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
Chris@82 19384 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
Chris@82 19385 if test yes = "$lt_cv_irix_exported_symbol"; then
Chris@82 19386 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@82 19387 fi
Chris@82 19388 link_all_deplibs_F77=no
Chris@82 19389 else
Chris@82 19390 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@82 19391 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@82 19392 fi
Chris@82 19393 archive_cmds_need_lc_F77='no'
Chris@82 19394 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
Chris@82 19395 hardcode_libdir_separator_F77=:
Chris@82 19396 inherit_rpath_F77=yes
Chris@82 19397 link_all_deplibs_F77=yes
Chris@82 19398 ;;
Chris@82 19399
Chris@82 19400 linux*)
Chris@82 19401 case $cc_basename in
Chris@82 19402 tcc*)
Chris@82 19403 # Fabrice Bellard et al's Tiny C Compiler
Chris@82 19404 ld_shlibs_F77=yes
Chris@82 19405 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 19406 ;;
Chris@82 19407 esac
Chris@82 19408 ;;
Chris@82 19409
Chris@82 19410 netbsd* | netbsdelf*-gnu)
Chris@82 19411 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@82 19412 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
Chris@82 19413 else
Chris@82 19414 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
Chris@82 19415 fi
Chris@82 19416 hardcode_libdir_flag_spec_F77='-R$libdir'
Chris@82 19417 hardcode_direct_F77=yes
Chris@82 19418 hardcode_shlibpath_var_F77=no
Chris@82 19419 ;;
Chris@82 19420
Chris@82 19421 newsos6)
Chris@82 19422 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@82 19423 hardcode_direct_F77=yes
Chris@82 19424 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
Chris@82 19425 hardcode_libdir_separator_F77=:
Chris@82 19426 hardcode_shlibpath_var_F77=no
Chris@82 19427 ;;
Chris@82 19428
Chris@82 19429 *nto* | *qnx*)
Chris@82 19430 ;;
Chris@82 19431
Chris@82 19432 openbsd* | bitrig*)
Chris@82 19433 if test -f /usr/libexec/ld.so; then
Chris@82 19434 hardcode_direct_F77=yes
Chris@82 19435 hardcode_shlibpath_var_F77=no
Chris@82 19436 hardcode_direct_absolute_F77=yes
Chris@82 19437 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Chris@82 19438 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 19439 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
Chris@82 19440 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir'
Chris@82 19441 export_dynamic_flag_spec_F77='$wl-E'
Chris@82 19442 else
Chris@82 19443 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 19444 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir'
Chris@82 19445 fi
Chris@82 19446 else
Chris@82 19447 ld_shlibs_F77=no
Chris@82 19448 fi
Chris@82 19449 ;;
Chris@82 19450
Chris@82 19451 os2*)
Chris@82 19452 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@82 19453 hardcode_minus_L_F77=yes
Chris@82 19454 allow_undefined_flag_F77=unsupported
Chris@82 19455 shrext_cmds=.dll
Chris@82 19456 archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
Chris@82 19457 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
Chris@82 19458 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
Chris@82 19459 $ECHO EXPORTS >> $output_objdir/$libname.def~
Chris@82 19460 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
Chris@82 19461 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
Chris@82 19462 emximp -o $lib $output_objdir/$libname.def'
Chris@82 19463 archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
Chris@82 19464 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
Chris@82 19465 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
Chris@82 19466 $ECHO EXPORTS >> $output_objdir/$libname.def~
Chris@82 19467 prefix_cmds="$SED"~
Chris@82 19468 if test EXPORTS = "`$SED 1q $export_symbols`"; then
Chris@82 19469 prefix_cmds="$prefix_cmds -e 1d";
Chris@82 19470 fi~
Chris@82 19471 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
Chris@82 19472 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
Chris@82 19473 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
Chris@82 19474 emximp -o $lib $output_objdir/$libname.def'
Chris@82 19475 old_archive_From_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
Chris@82 19476 enable_shared_with_static_runtimes_F77=yes
Chris@82 19477 ;;
Chris@82 19478
Chris@82 19479 osf3*)
Chris@82 19480 if test yes = "$GCC"; then
Chris@82 19481 allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*'
Chris@82 19482 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@82 19483 else
Chris@82 19484 allow_undefined_flag_F77=' -expect_unresolved \*'
Chris@82 19485 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@82 19486 fi
Chris@82 19487 archive_cmds_need_lc_F77='no'
Chris@82 19488 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
Chris@82 19489 hardcode_libdir_separator_F77=:
Chris@82 19490 ;;
Chris@82 19491
Chris@82 19492 osf4* | osf5*) # as osf3* with the addition of -msym flag
Chris@82 19493 if test yes = "$GCC"; then
Chris@82 19494 allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*'
Chris@82 19495 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@82 19496 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
Chris@82 19497 else
Chris@82 19498 allow_undefined_flag_F77=' -expect_unresolved \*'
Chris@82 19499 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@82 19500 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@82 19501 $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@82 19502
Chris@82 19503 # Both c and cxx compiler support -rpath directly
Chris@82 19504 hardcode_libdir_flag_spec_F77='-rpath $libdir'
Chris@82 19505 fi
Chris@82 19506 archive_cmds_need_lc_F77='no'
Chris@82 19507 hardcode_libdir_separator_F77=:
Chris@82 19508 ;;
Chris@82 19509
Chris@82 19510 solaris*)
Chris@82 19511 no_undefined_flag_F77=' -z defs'
Chris@82 19512 if test yes = "$GCC"; then
Chris@82 19513 wlarc='$wl'
Chris@82 19514 archive_cmds_F77='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 19515 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@82 19516 $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@82 19517 else
Chris@82 19518 case `$CC -V 2>&1` in
Chris@82 19519 *"Compilers 5.0"*)
Chris@82 19520 wlarc=''
Chris@82 19521 archive_cmds_F77='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@82 19522 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@82 19523 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
Chris@82 19524 ;;
Chris@82 19525 *)
Chris@82 19526 wlarc='$wl'
Chris@82 19527 archive_cmds_F77='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 19528 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@82 19529 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Chris@82 19530 ;;
Chris@82 19531 esac
Chris@82 19532 fi
Chris@82 19533 hardcode_libdir_flag_spec_F77='-R$libdir'
Chris@82 19534 hardcode_shlibpath_var_F77=no
Chris@82 19535 case $host_os in
Chris@82 19536 solaris2.[0-5] | solaris2.[0-5].*) ;;
Chris@82 19537 *)
Chris@82 19538 # The compiler driver will combine and reorder linker options,
Chris@82 19539 # but understands '-z linker_flag'. GCC discards it without '$wl',
Chris@82 19540 # but is careful enough not to reorder.
Chris@82 19541 # Supported since Solaris 2.6 (maybe 2.5.1?)
Chris@82 19542 if test yes = "$GCC"; then
Chris@82 19543 whole_archive_flag_spec_F77='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
Chris@82 19544 else
Chris@82 19545 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
Chris@82 19546 fi
Chris@82 19547 ;;
Chris@82 19548 esac
Chris@82 19549 link_all_deplibs_F77=yes
Chris@82 19550 ;;
Chris@82 19551
Chris@82 19552 sunos4*)
Chris@82 19553 if test sequent = "$host_vendor"; then
Chris@82 19554 # Use $CC to link under sequent, because it throws in some extra .o
Chris@82 19555 # files that make .init and .fini sections work.
Chris@82 19556 archive_cmds_F77='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 19557 else
Chris@82 19558 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
Chris@82 19559 fi
Chris@82 19560 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@82 19561 hardcode_direct_F77=yes
Chris@82 19562 hardcode_minus_L_F77=yes
Chris@82 19563 hardcode_shlibpath_var_F77=no
Chris@82 19564 ;;
Chris@82 19565
Chris@82 19566 sysv4)
Chris@82 19567 case $host_vendor in
Chris@82 19568 sni)
Chris@82 19569 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@82 19570 hardcode_direct_F77=yes # is this really true???
Chris@82 19571 ;;
Chris@82 19572 siemens)
Chris@82 19573 ## LD is ld it makes a PLAMLIB
Chris@82 19574 ## CC just makes a GrossModule.
Chris@82 19575 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
Chris@82 19576 reload_cmds_F77='$CC -r -o $output$reload_objs'
Chris@82 19577 hardcode_direct_F77=no
Chris@82 19578 ;;
Chris@82 19579 motorola)
Chris@82 19580 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@82 19581 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
Chris@82 19582 ;;
Chris@82 19583 esac
Chris@82 19584 runpath_var='LD_RUN_PATH'
Chris@82 19585 hardcode_shlibpath_var_F77=no
Chris@82 19586 ;;
Chris@82 19587
Chris@82 19588 sysv4.3*)
Chris@82 19589 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@82 19590 hardcode_shlibpath_var_F77=no
Chris@82 19591 export_dynamic_flag_spec_F77='-Bexport'
Chris@82 19592 ;;
Chris@82 19593
Chris@82 19594 sysv4*MP*)
Chris@82 19595 if test -d /usr/nec; then
Chris@82 19596 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@82 19597 hardcode_shlibpath_var_F77=no
Chris@82 19598 runpath_var=LD_RUN_PATH
Chris@82 19599 hardcode_runpath_var=yes
Chris@82 19600 ld_shlibs_F77=yes
Chris@82 19601 fi
Chris@82 19602 ;;
Chris@82 19603
Chris@82 19604 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Chris@82 19605 no_undefined_flag_F77='$wl-z,text'
Chris@82 19606 archive_cmds_need_lc_F77=no
Chris@82 19607 hardcode_shlibpath_var_F77=no
Chris@82 19608 runpath_var='LD_RUN_PATH'
Chris@82 19609
Chris@82 19610 if test yes = "$GCC"; then
Chris@82 19611 archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 19612 archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 19613 else
Chris@82 19614 archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 19615 archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 19616 fi
Chris@82 19617 ;;
Chris@82 19618
Chris@82 19619 sysv5* | sco3.2v5* | sco5v6*)
Chris@82 19620 # Note: We CANNOT use -z defs as we might desire, because we do not
Chris@82 19621 # link with -lc, and that would cause any symbols used from libc to
Chris@82 19622 # always be unresolved, which means just about no library would
Chris@82 19623 # ever link correctly. If we're not using GNU ld we use -z text
Chris@82 19624 # though, which does catch some bad symbols but isn't as heavy-handed
Chris@82 19625 # as -z defs.
Chris@82 19626 no_undefined_flag_F77='$wl-z,text'
Chris@82 19627 allow_undefined_flag_F77='$wl-z,nodefs'
Chris@82 19628 archive_cmds_need_lc_F77=no
Chris@82 19629 hardcode_shlibpath_var_F77=no
Chris@82 19630 hardcode_libdir_flag_spec_F77='$wl-R,$libdir'
Chris@82 19631 hardcode_libdir_separator_F77=':'
Chris@82 19632 link_all_deplibs_F77=yes
Chris@82 19633 export_dynamic_flag_spec_F77='$wl-Bexport'
Chris@82 19634 runpath_var='LD_RUN_PATH'
Chris@82 19635
Chris@82 19636 if test yes = "$GCC"; then
Chris@82 19637 archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 19638 archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 19639 else
Chris@82 19640 archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 19641 archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@82 19642 fi
Chris@82 19643 ;;
Chris@82 19644
Chris@82 19645 uts4*)
Chris@82 19646 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@82 19647 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@82 19648 hardcode_shlibpath_var_F77=no
Chris@82 19649 ;;
Chris@82 19650
Chris@82 19651 *)
Chris@82 19652 ld_shlibs_F77=no
Chris@82 19653 ;;
Chris@82 19654 esac
Chris@82 19655
Chris@82 19656 if test sni = "$host_vendor"; then
Chris@82 19657 case $host in
Chris@82 19658 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Chris@82 19659 export_dynamic_flag_spec_F77='$wl-Blargedynsym'
Chris@82 19660 ;;
Chris@82 19661 esac
Chris@82 19662 fi
Chris@82 19663 fi
Chris@82 19664
Chris@82 19665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
Chris@82 19666 $as_echo "$ld_shlibs_F77" >&6; }
Chris@82 19667 test no = "$ld_shlibs_F77" && can_build_shared=no
Chris@82 19668
Chris@82 19669 with_gnu_ld_F77=$with_gnu_ld
Chris@82 19670
Chris@82 19671
Chris@82 19672
Chris@82 19673
Chris@82 19674
Chris@82 19675
Chris@82 19676 #
Chris@82 19677 # Do we need to explicitly link libc?
Chris@82 19678 #
Chris@82 19679 case "x$archive_cmds_need_lc_F77" in
Chris@82 19680 x|xyes)
Chris@82 19681 # Assume -lc should be added
Chris@82 19682 archive_cmds_need_lc_F77=yes
Chris@82 19683
Chris@82 19684 if test yes,yes = "$GCC,$enable_shared"; then
Chris@82 19685 case $archive_cmds_F77 in
Chris@82 19686 *'~'*)
Chris@82 19687 # FIXME: we may have to deal with multi-command sequences.
Chris@82 19688 ;;
Chris@82 19689 '$CC '*)
Chris@82 19690 # Test whether the compiler implicitly links with -lc since on some
Chris@82 19691 # systems, -lgcc has to come before -lc. If gcc already passes -lc
Chris@82 19692 # to ld, don't add -lc before -lgcc.
Chris@82 19693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Chris@82 19694 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Chris@82 19695 if ${lt_cv_archive_cmds_need_lc_F77+:} false; then :
Chris@82 19696 $as_echo_n "(cached) " >&6
Chris@82 19697 else
Chris@82 19698 $RM conftest*
Chris@82 19699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@82 19700
Chris@82 19701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@82 19702 (eval $ac_compile) 2>&5
Chris@82 19703 ac_status=$?
Chris@82 19704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@82 19705 test $ac_status = 0; } 2>conftest.err; then
Chris@82 19706 soname=conftest
Chris@82 19707 lib=conftest
Chris@82 19708 libobjs=conftest.$ac_objext
Chris@82 19709 deplibs=
Chris@82 19710 wl=$lt_prog_compiler_wl_F77
Chris@82 19711 pic_flag=$lt_prog_compiler_pic_F77
Chris@82 19712 compiler_flags=-v
Chris@82 19713 linker_flags=-v
Chris@82 19714 verstring=
Chris@82 19715 output_objdir=.
Chris@82 19716 libname=conftest
Chris@82 19717 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
Chris@82 19718 allow_undefined_flag_F77=
Chris@82 19719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Chris@82 19720 (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Chris@82 19721 ac_status=$?
Chris@82 19722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@82 19723 test $ac_status = 0; }
Chris@82 19724 then
Chris@82 19725 lt_cv_archive_cmds_need_lc_F77=no
Chris@82 19726 else
Chris@82 19727 lt_cv_archive_cmds_need_lc_F77=yes
Chris@82 19728 fi
Chris@82 19729 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
Chris@82 19730 else
Chris@82 19731 cat conftest.err 1>&5
Chris@82 19732 fi
Chris@82 19733 $RM conftest*
Chris@82 19734
Chris@82 19735 fi
Chris@82 19736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5
Chris@82 19737 $as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; }
Chris@82 19738 archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77
Chris@82 19739 ;;
Chris@82 19740 esac
Chris@82 19741 fi
Chris@82 19742 ;;
Chris@82 19743 esac
Chris@82 19744
Chris@82 19745
Chris@82 19746
Chris@82 19747
Chris@82 19748
Chris@82 19749
Chris@82 19750
Chris@82 19751
Chris@82 19752
Chris@82 19753
Chris@82 19754
Chris@82 19755
Chris@82 19756
Chris@82 19757
Chris@82 19758
Chris@82 19759
Chris@82 19760
Chris@82 19761
Chris@82 19762
Chris@82 19763
Chris@82 19764
Chris@82 19765
Chris@82 19766
Chris@82 19767
Chris@82 19768
Chris@82 19769
Chris@82 19770
Chris@82 19771
Chris@82 19772
Chris@82 19773
Chris@82 19774
Chris@82 19775
Chris@82 19776
Chris@82 19777
Chris@82 19778
Chris@82 19779
Chris@82 19780
Chris@82 19781
Chris@82 19782
Chris@82 19783
Chris@82 19784
Chris@82 19785
Chris@82 19786
Chris@82 19787
Chris@82 19788
Chris@82 19789
Chris@82 19790
Chris@82 19791
Chris@82 19792
Chris@82 19793
Chris@82 19794
Chris@82 19795
Chris@82 19796
Chris@82 19797
Chris@82 19798
Chris@82 19799
Chris@82 19800
Chris@82 19801
Chris@82 19802
Chris@82 19803
Chris@82 19804
Chris@82 19805
Chris@82 19806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Chris@82 19807 $as_echo_n "checking dynamic linker characteristics... " >&6; }
Chris@82 19808
Chris@82 19809 library_names_spec=
Chris@82 19810 libname_spec='lib$name'
Chris@82 19811 soname_spec=
Chris@82 19812 shrext_cmds=.so
Chris@82 19813 postinstall_cmds=
Chris@82 19814 postuninstall_cmds=
Chris@82 19815 finish_cmds=
Chris@82 19816 finish_eval=
Chris@82 19817 shlibpath_var=
Chris@82 19818 shlibpath_overrides_runpath=unknown
Chris@82 19819 version_type=none
Chris@82 19820 dynamic_linker="$host_os ld.so"
Chris@82 19821 sys_lib_dlsearch_path_spec="/lib /usr/lib"
Chris@82 19822 need_lib_prefix=unknown
Chris@82 19823 hardcode_into_libs=no
Chris@82 19824
Chris@82 19825 # when you set need_version to no, make sure it does not cause -set_version
Chris@82 19826 # flags to be left without arguments
Chris@82 19827 need_version=unknown
Chris@82 19828
Chris@82 19829
Chris@82 19830
Chris@82 19831 case $host_os in
Chris@82 19832 aix3*)
Chris@82 19833 version_type=linux # correct to gnu/linux during the next big refactor
Chris@82 19834 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
Chris@82 19835 shlibpath_var=LIBPATH
Chris@82 19836
Chris@82 19837 # AIX 3 has no versioning support, so we append a major version to the name.
Chris@82 19838 soname_spec='$libname$release$shared_ext$major'
Chris@82 19839 ;;
Chris@82 19840
Chris@82 19841 aix[4-9]*)
Chris@82 19842 version_type=linux # correct to gnu/linux during the next big refactor
Chris@82 19843 need_lib_prefix=no
Chris@82 19844 need_version=no
Chris@82 19845 hardcode_into_libs=yes
Chris@82 19846 if test ia64 = "$host_cpu"; then
Chris@82 19847 # AIX 5 supports IA64
Chris@82 19848 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
Chris@82 19849 shlibpath_var=LD_LIBRARY_PATH
Chris@82 19850 else
Chris@82 19851 # With GCC up to 2.95.x, collect2 would create an import file
Chris@82 19852 # for dependence libraries. The import file would start with
Chris@82 19853 # the line '#! .'. This would cause the generated library to
Chris@82 19854 # depend on '.', always an invalid library. This was fixed in
Chris@82 19855 # development snapshots of GCC prior to 3.0.
Chris@82 19856 case $host_os in
Chris@82 19857 aix4 | aix4.[01] | aix4.[01].*)
Chris@82 19858 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
Chris@82 19859 echo ' yes '
Chris@82 19860 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
Chris@82 19861 :
Chris@82 19862 else
Chris@82 19863 can_build_shared=no
Chris@82 19864 fi
Chris@82 19865 ;;
Chris@82 19866 esac
Chris@82 19867 # Using Import Files as archive members, it is possible to support
Chris@82 19868 # filename-based versioning of shared library archives on AIX. While
Chris@82 19869 # this would work for both with and without runtime linking, it will
Chris@82 19870 # prevent static linking of such archives. So we do filename-based
Chris@82 19871 # shared library versioning with .so extension only, which is used
Chris@82 19872 # when both runtime linking and shared linking is enabled.
Chris@82 19873 # Unfortunately, runtime linking may impact performance, so we do
Chris@82 19874 # not want this to be the default eventually. Also, we use the
Chris@82 19875 # versioned .so libs for executables only if there is the -brtl
Chris@82 19876 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
Chris@82 19877 # To allow for filename-based versioning support, we need to create
Chris@82 19878 # libNAME.so.V as an archive file, containing:
Chris@82 19879 # *) an Import File, referring to the versioned filename of the
Chris@82 19880 # archive as well as the shared archive member, telling the
Chris@82 19881 # bitwidth (32 or 64) of that shared object, and providing the
Chris@82 19882 # list of exported symbols of that shared object, eventually
Chris@82 19883 # decorated with the 'weak' keyword
Chris@82 19884 # *) the shared object with the F_LOADONLY flag set, to really avoid
Chris@82 19885 # it being seen by the linker.
Chris@82 19886 # At run time we better use the real file rather than another symlink,
Chris@82 19887 # but for link time we create the symlink libNAME.so -> libNAME.so.V
Chris@82 19888
Chris@82 19889 case $with_aix_soname,$aix_use_runtimelinking in
Chris@82 19890 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
Chris@82 19891 # soname into executable. Probably we can add versioning support to
Chris@82 19892 # collect2, so additional links can be useful in future.
Chris@82 19893 aix,yes) # traditional libtool
Chris@82 19894 dynamic_linker='AIX unversionable lib.so'
Chris@82 19895 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
Chris@82 19896 # instead of lib<name>.a to let people know that these are not
Chris@82 19897 # typical AIX shared libraries.
Chris@82 19898 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 19899 ;;
Chris@82 19900 aix,no) # traditional AIX only
Chris@82 19901 dynamic_linker='AIX lib.a(lib.so.V)'
Chris@82 19902 # We preserve .a as extension for shared libraries through AIX4.2
Chris@82 19903 # and later when we are not doing run time linking.
Chris@82 19904 library_names_spec='$libname$release.a $libname.a'
Chris@82 19905 soname_spec='$libname$release$shared_ext$major'
Chris@82 19906 ;;
Chris@82 19907 svr4,*) # full svr4 only
Chris@82 19908 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
Chris@82 19909 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
Chris@82 19910 # We do not specify a path in Import Files, so LIBPATH fires.
Chris@82 19911 shlibpath_overrides_runpath=yes
Chris@82 19912 ;;
Chris@82 19913 *,yes) # both, prefer svr4
Chris@82 19914 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
Chris@82 19915 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
Chris@82 19916 # unpreferred sharedlib libNAME.a needs extra handling
Chris@82 19917 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
Chris@82 19918 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
Chris@82 19919 # We do not specify a path in Import Files, so LIBPATH fires.
Chris@82 19920 shlibpath_overrides_runpath=yes
Chris@82 19921 ;;
Chris@82 19922 *,no) # both, prefer aix
Chris@82 19923 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
Chris@82 19924 library_names_spec='$libname$release.a $libname.a'
Chris@82 19925 soname_spec='$libname$release$shared_ext$major'
Chris@82 19926 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
Chris@82 19927 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
Chris@82 19928 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
Chris@82 19929 ;;
Chris@82 19930 esac
Chris@82 19931 shlibpath_var=LIBPATH
Chris@82 19932 fi
Chris@82 19933 ;;
Chris@82 19934
Chris@82 19935 amigaos*)
Chris@82 19936 case $host_cpu in
Chris@82 19937 powerpc)
Chris@82 19938 # Since July 2007 AmigaOS4 officially supports .so libraries.
Chris@82 19939 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Chris@82 19940 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 19941 ;;
Chris@82 19942 m68k)
Chris@82 19943 library_names_spec='$libname.ixlibrary $libname.a'
Chris@82 19944 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Chris@82 19945 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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@82 19946 ;;
Chris@82 19947 esac
Chris@82 19948 ;;
Chris@82 19949
Chris@82 19950 beos*)
Chris@82 19951 library_names_spec='$libname$shared_ext'
Chris@82 19952 dynamic_linker="$host_os ld.so"
Chris@82 19953 shlibpath_var=LIBRARY_PATH
Chris@82 19954 ;;
Chris@82 19955
Chris@82 19956 bsdi[45]*)
Chris@82 19957 version_type=linux # correct to gnu/linux during the next big refactor
Chris@82 19958 need_version=no
Chris@82 19959 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 19960 soname_spec='$libname$release$shared_ext$major'
Chris@82 19961 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
Chris@82 19962 shlibpath_var=LD_LIBRARY_PATH
Chris@82 19963 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
Chris@82 19964 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
Chris@82 19965 # the default ld.so.conf also contains /usr/contrib/lib and
Chris@82 19966 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
Chris@82 19967 # libtool to hard-code these into programs
Chris@82 19968 ;;
Chris@82 19969
Chris@82 19970 cygwin* | mingw* | pw32* | cegcc*)
Chris@82 19971 version_type=windows
Chris@82 19972 shrext_cmds=.dll
Chris@82 19973 need_version=no
Chris@82 19974 need_lib_prefix=no
Chris@82 19975
Chris@82 19976 case $GCC,$cc_basename in
Chris@82 19977 yes,*)
Chris@82 19978 # gcc
Chris@82 19979 library_names_spec='$libname.dll.a'
Chris@82 19980 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@82 19981 postinstall_cmds='base_file=`basename \$file`~
Chris@82 19982 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Chris@82 19983 dldir=$destdir/`dirname \$dlpath`~
Chris@82 19984 test -d \$dldir || mkdir -p \$dldir~
Chris@82 19985 $install_prog $dir/$dlname \$dldir/$dlname~
Chris@82 19986 chmod a+x \$dldir/$dlname~
Chris@82 19987 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
Chris@82 19988 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
Chris@82 19989 fi'
Chris@82 19990 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@82 19991 dlpath=$dir/\$dldll~
Chris@82 19992 $RM \$dlpath'
Chris@82 19993 shlibpath_overrides_runpath=yes
Chris@82 19994
Chris@82 19995 case $host_os in
Chris@82 19996 cygwin*)
Chris@82 19997 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Chris@82 19998 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Chris@82 19999
Chris@82 20000 ;;
Chris@82 20001 mingw* | cegcc*)
Chris@82 20002 # MinGW DLLs use traditional 'lib' prefix
Chris@82 20003 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Chris@82 20004 ;;
Chris@82 20005 pw32*)
Chris@82 20006 # pw32 DLLs use 'pw' prefix rather than 'lib'
Chris@82 20007 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Chris@82 20008 ;;
Chris@82 20009 esac
Chris@82 20010 dynamic_linker='Win32 ld.exe'
Chris@82 20011 ;;
Chris@82 20012
Chris@82 20013 *,cl*)
Chris@82 20014 # Native MSVC
Chris@82 20015 libname_spec='$name'
Chris@82 20016 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Chris@82 20017 library_names_spec='$libname.dll.lib'
Chris@82 20018
Chris@82 20019 case $build_os in
Chris@82 20020 mingw*)
Chris@82 20021 sys_lib_search_path_spec=
Chris@82 20022 lt_save_ifs=$IFS
Chris@82 20023 IFS=';'
Chris@82 20024 for lt_path in $LIB
Chris@82 20025 do
Chris@82 20026 IFS=$lt_save_ifs
Chris@82 20027 # Let DOS variable expansion print the short 8.3 style file name.
Chris@82 20028 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
Chris@82 20029 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
Chris@82 20030 done
Chris@82 20031 IFS=$lt_save_ifs
Chris@82 20032 # Convert to MSYS style.
Chris@82 20033 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@82 20034 ;;
Chris@82 20035 cygwin*)
Chris@82 20036 # Convert to unix form, then to dos form, then back to unix form
Chris@82 20037 # but this time dos style (no spaces!) so that the unix form looks
Chris@82 20038 # like /cygdrive/c/PROGRA~1:/cygdr...
Chris@82 20039 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
Chris@82 20040 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
Chris@82 20041 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@82 20042 ;;
Chris@82 20043 *)
Chris@82 20044 sys_lib_search_path_spec=$LIB
Chris@82 20045 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
Chris@82 20046 # It is most probably a Windows format PATH.
Chris@82 20047 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Chris@82 20048 else
Chris@82 20049 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@82 20050 fi
Chris@82 20051 # FIXME: find the short name or the path components, as spaces are
Chris@82 20052 # common. (e.g. "Program Files" -> "PROGRA~1")
Chris@82 20053 ;;
Chris@82 20054 esac
Chris@82 20055
Chris@82 20056 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@82 20057 postinstall_cmds='base_file=`basename \$file`~
Chris@82 20058 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Chris@82 20059 dldir=$destdir/`dirname \$dlpath`~
Chris@82 20060 test -d \$dldir || mkdir -p \$dldir~
Chris@82 20061 $install_prog $dir/$dlname \$dldir/$dlname'
Chris@82 20062 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@82 20063 dlpath=$dir/\$dldll~
Chris@82 20064 $RM \$dlpath'
Chris@82 20065 shlibpath_overrides_runpath=yes
Chris@82 20066 dynamic_linker='Win32 link.exe'
Chris@82 20067 ;;
Chris@82 20068
Chris@82 20069 *)
Chris@82 20070 # Assume MSVC wrapper
Chris@82 20071 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
Chris@82 20072 dynamic_linker='Win32 ld.exe'
Chris@82 20073 ;;
Chris@82 20074 esac
Chris@82 20075 # FIXME: first we should search . and the directory the executable is in
Chris@82 20076 shlibpath_var=PATH
Chris@82 20077 ;;
Chris@82 20078
Chris@82 20079 darwin* | rhapsody*)
Chris@82 20080 dynamic_linker="$host_os dyld"
Chris@82 20081 version_type=darwin
Chris@82 20082 need_lib_prefix=no
Chris@82 20083 need_version=no
Chris@82 20084 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
Chris@82 20085 soname_spec='$libname$release$major$shared_ext'
Chris@82 20086 shlibpath_overrides_runpath=yes
Chris@82 20087 shlibpath_var=DYLD_LIBRARY_PATH
Chris@82 20088 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Chris@82 20089
Chris@82 20090 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
Chris@82 20091 ;;
Chris@82 20092
Chris@82 20093 dgux*)
Chris@82 20094 version_type=linux # correct to gnu/linux during the next big refactor
Chris@82 20095 need_lib_prefix=no
Chris@82 20096 need_version=no
Chris@82 20097 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 20098 soname_spec='$libname$release$shared_ext$major'
Chris@82 20099 shlibpath_var=LD_LIBRARY_PATH
Chris@82 20100 ;;
Chris@82 20101
Chris@82 20102 freebsd* | dragonfly*)
Chris@82 20103 # DragonFly does not have aout. When/if they implement a new
Chris@82 20104 # versioning mechanism, adjust this.
Chris@82 20105 if test -x /usr/bin/objformat; then
Chris@82 20106 objformat=`/usr/bin/objformat`
Chris@82 20107 else
Chris@82 20108 case $host_os in
Chris@82 20109 freebsd[23].*) objformat=aout ;;
Chris@82 20110 *) objformat=elf ;;
Chris@82 20111 esac
Chris@82 20112 fi
Chris@82 20113 version_type=freebsd-$objformat
Chris@82 20114 case $version_type in
Chris@82 20115 freebsd-elf*)
Chris@82 20116 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 20117 soname_spec='$libname$release$shared_ext$major'
Chris@82 20118 need_version=no
Chris@82 20119 need_lib_prefix=no
Chris@82 20120 ;;
Chris@82 20121 freebsd-*)
Chris@82 20122 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Chris@82 20123 need_version=yes
Chris@82 20124 ;;
Chris@82 20125 esac
Chris@82 20126 shlibpath_var=LD_LIBRARY_PATH
Chris@82 20127 case $host_os in
Chris@82 20128 freebsd2.*)
Chris@82 20129 shlibpath_overrides_runpath=yes
Chris@82 20130 ;;
Chris@82 20131 freebsd3.[01]* | freebsdelf3.[01]*)
Chris@82 20132 shlibpath_overrides_runpath=yes
Chris@82 20133 hardcode_into_libs=yes
Chris@82 20134 ;;
Chris@82 20135 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
Chris@82 20136 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Chris@82 20137 shlibpath_overrides_runpath=no
Chris@82 20138 hardcode_into_libs=yes
Chris@82 20139 ;;
Chris@82 20140 *) # from 4.6 on, and DragonFly
Chris@82 20141 shlibpath_overrides_runpath=yes
Chris@82 20142 hardcode_into_libs=yes
Chris@82 20143 ;;
Chris@82 20144 esac
Chris@82 20145 ;;
Chris@82 20146
Chris@82 20147 haiku*)
Chris@82 20148 version_type=linux # correct to gnu/linux during the next big refactor
Chris@82 20149 need_lib_prefix=no
Chris@82 20150 need_version=no
Chris@82 20151 dynamic_linker="$host_os runtime_loader"
Chris@82 20152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 20153 soname_spec='$libname$release$shared_ext$major'
Chris@82 20154 shlibpath_var=LIBRARY_PATH
Chris@82 20155 shlibpath_overrides_runpath=no
Chris@82 20156 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Chris@82 20157 hardcode_into_libs=yes
Chris@82 20158 ;;
Chris@82 20159
Chris@82 20160 hpux9* | hpux10* | hpux11*)
Chris@82 20161 # Give a soname corresponding to the major version so that dld.sl refuses to
Chris@82 20162 # link against other versions.
Chris@82 20163 version_type=sunos
Chris@82 20164 need_lib_prefix=no
Chris@82 20165 need_version=no
Chris@82 20166 case $host_cpu in
Chris@82 20167 ia64*)
Chris@82 20168 shrext_cmds='.so'
Chris@82 20169 hardcode_into_libs=yes
Chris@82 20170 dynamic_linker="$host_os dld.so"
Chris@82 20171 shlibpath_var=LD_LIBRARY_PATH
Chris@82 20172 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@82 20173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 20174 soname_spec='$libname$release$shared_ext$major'
Chris@82 20175 if test 32 = "$HPUX_IA64_MODE"; then
Chris@82 20176 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Chris@82 20177 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
Chris@82 20178 else
Chris@82 20179 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Chris@82 20180 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
Chris@82 20181 fi
Chris@82 20182 ;;
Chris@82 20183 hppa*64*)
Chris@82 20184 shrext_cmds='.sl'
Chris@82 20185 hardcode_into_libs=yes
Chris@82 20186 dynamic_linker="$host_os dld.sl"
Chris@82 20187 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
Chris@82 20188 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@82 20189 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 20190 soname_spec='$libname$release$shared_ext$major'
Chris@82 20191 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
Chris@82 20192 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@82 20193 ;;
Chris@82 20194 *)
Chris@82 20195 shrext_cmds='.sl'
Chris@82 20196 dynamic_linker="$host_os dld.sl"
Chris@82 20197 shlibpath_var=SHLIB_PATH
Chris@82 20198 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Chris@82 20199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 20200 soname_spec='$libname$release$shared_ext$major'
Chris@82 20201 ;;
Chris@82 20202 esac
Chris@82 20203 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Chris@82 20204 postinstall_cmds='chmod 555 $lib'
Chris@82 20205 # or fails outright, so override atomically:
Chris@82 20206 install_override_mode=555
Chris@82 20207 ;;
Chris@82 20208
Chris@82 20209 interix[3-9]*)
Chris@82 20210 version_type=linux # correct to gnu/linux during the next big refactor
Chris@82 20211 need_lib_prefix=no
Chris@82 20212 need_version=no
Chris@82 20213 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 20214 soname_spec='$libname$release$shared_ext$major'
Chris@82 20215 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
Chris@82 20216 shlibpath_var=LD_LIBRARY_PATH
Chris@82 20217 shlibpath_overrides_runpath=no
Chris@82 20218 hardcode_into_libs=yes
Chris@82 20219 ;;
Chris@82 20220
Chris@82 20221 irix5* | irix6* | nonstopux*)
Chris@82 20222 case $host_os in
Chris@82 20223 nonstopux*) version_type=nonstopux ;;
Chris@82 20224 *)
Chris@82 20225 if test yes = "$lt_cv_prog_gnu_ld"; then
Chris@82 20226 version_type=linux # correct to gnu/linux during the next big refactor
Chris@82 20227 else
Chris@82 20228 version_type=irix
Chris@82 20229 fi ;;
Chris@82 20230 esac
Chris@82 20231 need_lib_prefix=no
Chris@82 20232 need_version=no
Chris@82 20233 soname_spec='$libname$release$shared_ext$major'
Chris@82 20234 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
Chris@82 20235 case $host_os in
Chris@82 20236 irix5* | nonstopux*)
Chris@82 20237 libsuff= shlibsuff=
Chris@82 20238 ;;
Chris@82 20239 *)
Chris@82 20240 case $LD in # libtool.m4 will add one of these switches to LD
Chris@82 20241 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
Chris@82 20242 libsuff= shlibsuff= libmagic=32-bit;;
Chris@82 20243 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
Chris@82 20244 libsuff=32 shlibsuff=N32 libmagic=N32;;
Chris@82 20245 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
Chris@82 20246 libsuff=64 shlibsuff=64 libmagic=64-bit;;
Chris@82 20247 *) libsuff= shlibsuff= libmagic=never-match;;
Chris@82 20248 esac
Chris@82 20249 ;;
Chris@82 20250 esac
Chris@82 20251 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
Chris@82 20252 shlibpath_overrides_runpath=no
Chris@82 20253 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
Chris@82 20254 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
Chris@82 20255 hardcode_into_libs=yes
Chris@82 20256 ;;
Chris@82 20257
Chris@82 20258 # No shared lib support for Linux oldld, aout, or coff.
Chris@82 20259 linux*oldld* | linux*aout* | linux*coff*)
Chris@82 20260 dynamic_linker=no
Chris@82 20261 ;;
Chris@82 20262
Chris@82 20263 linux*android*)
Chris@82 20264 version_type=none # Android doesn't support versioned libraries.
Chris@82 20265 need_lib_prefix=no
Chris@82 20266 need_version=no
Chris@82 20267 library_names_spec='$libname$release$shared_ext'
Chris@82 20268 soname_spec='$libname$release$shared_ext'
Chris@82 20269 finish_cmds=
Chris@82 20270 shlibpath_var=LD_LIBRARY_PATH
Chris@82 20271 shlibpath_overrides_runpath=yes
Chris@82 20272
Chris@82 20273 # This implies no fast_install, which is unacceptable.
Chris@82 20274 # Some rework will be needed to allow for fast_install
Chris@82 20275 # before this can be enabled.
Chris@82 20276 hardcode_into_libs=yes
Chris@82 20277
Chris@82 20278 dynamic_linker='Android linker'
Chris@82 20279 # Don't embed -rpath directories since the linker doesn't support them.
Chris@82 20280 hardcode_libdir_flag_spec_F77='-L$libdir'
Chris@82 20281 ;;
Chris@82 20282
Chris@82 20283 # This must be glibc/ELF.
Chris@82 20284 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Chris@82 20285 version_type=linux # correct to gnu/linux during the next big refactor
Chris@82 20286 need_lib_prefix=no
Chris@82 20287 need_version=no
Chris@82 20288 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 20289 soname_spec='$libname$release$shared_ext$major'
Chris@82 20290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
Chris@82 20291 shlibpath_var=LD_LIBRARY_PATH
Chris@82 20292 shlibpath_overrides_runpath=no
Chris@82 20293
Chris@82 20294 # Some binutils ld are patched to set DT_RUNPATH
Chris@82 20295 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
Chris@82 20296 $as_echo_n "(cached) " >&6
Chris@82 20297 else
Chris@82 20298 lt_cv_shlibpath_overrides_runpath=no
Chris@82 20299 save_LDFLAGS=$LDFLAGS
Chris@82 20300 save_libdir=$libdir
Chris@82 20301 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
Chris@82 20302 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
Chris@82 20303 cat > conftest.$ac_ext <<_ACEOF
Chris@82 20304 program main
Chris@82 20305
Chris@82 20306 end
Chris@82 20307 _ACEOF
Chris@82 20308 if ac_fn_f77_try_link "$LINENO"; then :
Chris@82 20309 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
Chris@82 20310 lt_cv_shlibpath_overrides_runpath=yes
Chris@82 20311 fi
Chris@82 20312 fi
Chris@82 20313 rm -f core conftest.err conftest.$ac_objext \
Chris@82 20314 conftest$ac_exeext conftest.$ac_ext
Chris@82 20315 LDFLAGS=$save_LDFLAGS
Chris@82 20316 libdir=$save_libdir
Chris@82 20317
Chris@82 20318 fi
Chris@82 20319
Chris@82 20320 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Chris@82 20321
Chris@82 20322 # This implies no fast_install, which is unacceptable.
Chris@82 20323 # Some rework will be needed to allow for fast_install
Chris@82 20324 # before this can be enabled.
Chris@82 20325 hardcode_into_libs=yes
Chris@82 20326
Chris@82 20327 # Ideally, we could use ldconfig to report *all* directores which are
Chris@82 20328 # searched for libraries, however this is still not possible. Aside from not
Chris@82 20329 # being certain /sbin/ldconfig is available, command
Chris@82 20330 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
Chris@82 20331 # even though it is searched at run-time. Try to do the best guess by
Chris@82 20332 # appending ld.so.conf contents (and includes) to the search path.
Chris@82 20333 if test -f /etc/ld.so.conf; then
Chris@82 20334 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@82 20335 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
Chris@82 20336 fi
Chris@82 20337
Chris@82 20338 # We used to test for /lib/ld.so.1 and disable shared libraries on
Chris@82 20339 # powerpc, because MkLinux only supported shared libraries with the
Chris@82 20340 # GNU dynamic linker. Since this was broken with cross compilers,
Chris@82 20341 # most powerpc-linux boxes support dynamic linking these days and
Chris@82 20342 # people can always --disable-shared, the test was removed, and we
Chris@82 20343 # assume the GNU/Linux dynamic linker is in use.
Chris@82 20344 dynamic_linker='GNU/Linux ld.so'
Chris@82 20345 ;;
Chris@82 20346
Chris@82 20347 netbsdelf*-gnu)
Chris@82 20348 version_type=linux
Chris@82 20349 need_lib_prefix=no
Chris@82 20350 need_version=no
Chris@82 20351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Chris@82 20352 soname_spec='${libname}${release}${shared_ext}$major'
Chris@82 20353 shlibpath_var=LD_LIBRARY_PATH
Chris@82 20354 shlibpath_overrides_runpath=no
Chris@82 20355 hardcode_into_libs=yes
Chris@82 20356 dynamic_linker='NetBSD ld.elf_so'
Chris@82 20357 ;;
Chris@82 20358
Chris@82 20359 netbsd*)
Chris@82 20360 version_type=sunos
Chris@82 20361 need_lib_prefix=no
Chris@82 20362 need_version=no
Chris@82 20363 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@82 20364 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Chris@82 20365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@82 20366 dynamic_linker='NetBSD (a.out) ld.so'
Chris@82 20367 else
Chris@82 20368 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 20369 soname_spec='$libname$release$shared_ext$major'
Chris@82 20370 dynamic_linker='NetBSD ld.elf_so'
Chris@82 20371 fi
Chris@82 20372 shlibpath_var=LD_LIBRARY_PATH
Chris@82 20373 shlibpath_overrides_runpath=yes
Chris@82 20374 hardcode_into_libs=yes
Chris@82 20375 ;;
Chris@82 20376
Chris@82 20377 newsos6)
Chris@82 20378 version_type=linux # correct to gnu/linux during the next big refactor
Chris@82 20379 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 20380 shlibpath_var=LD_LIBRARY_PATH
Chris@82 20381 shlibpath_overrides_runpath=yes
Chris@82 20382 ;;
Chris@82 20383
Chris@82 20384 *nto* | *qnx*)
Chris@82 20385 version_type=qnx
Chris@82 20386 need_lib_prefix=no
Chris@82 20387 need_version=no
Chris@82 20388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 20389 soname_spec='$libname$release$shared_ext$major'
Chris@82 20390 shlibpath_var=LD_LIBRARY_PATH
Chris@82 20391 shlibpath_overrides_runpath=no
Chris@82 20392 hardcode_into_libs=yes
Chris@82 20393 dynamic_linker='ldqnx.so'
Chris@82 20394 ;;
Chris@82 20395
Chris@82 20396 openbsd* | bitrig*)
Chris@82 20397 version_type=sunos
Chris@82 20398 sys_lib_dlsearch_path_spec=/usr/lib
Chris@82 20399 need_lib_prefix=no
Chris@82 20400 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Chris@82 20401 need_version=no
Chris@82 20402 else
Chris@82 20403 need_version=yes
Chris@82 20404 fi
Chris@82 20405 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Chris@82 20406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@82 20407 shlibpath_var=LD_LIBRARY_PATH
Chris@82 20408 shlibpath_overrides_runpath=yes
Chris@82 20409 ;;
Chris@82 20410
Chris@82 20411 os2*)
Chris@82 20412 libname_spec='$name'
Chris@82 20413 version_type=windows
Chris@82 20414 shrext_cmds=.dll
Chris@82 20415 need_version=no
Chris@82 20416 need_lib_prefix=no
Chris@82 20417 # OS/2 can only load a DLL with a base name of 8 characters or less.
Chris@82 20418 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
Chris@82 20419 v=$($ECHO $release$versuffix | tr -d .-);
Chris@82 20420 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
Chris@82 20421 $ECHO $n$v`$shared_ext'
Chris@82 20422 library_names_spec='${libname}_dll.$libext'
Chris@82 20423 dynamic_linker='OS/2 ld.exe'
Chris@82 20424 shlibpath_var=BEGINLIBPATH
Chris@82 20425 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Chris@82 20426 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@82 20427 postinstall_cmds='base_file=`basename \$file`~
Chris@82 20428 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
Chris@82 20429 dldir=$destdir/`dirname \$dlpath`~
Chris@82 20430 test -d \$dldir || mkdir -p \$dldir~
Chris@82 20431 $install_prog $dir/$dlname \$dldir/$dlname~
Chris@82 20432 chmod a+x \$dldir/$dlname~
Chris@82 20433 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
Chris@82 20434 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
Chris@82 20435 fi'
Chris@82 20436 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
Chris@82 20437 dlpath=$dir/\$dldll~
Chris@82 20438 $RM \$dlpath'
Chris@82 20439 ;;
Chris@82 20440
Chris@82 20441 osf3* | osf4* | osf5*)
Chris@82 20442 version_type=osf
Chris@82 20443 need_lib_prefix=no
Chris@82 20444 need_version=no
Chris@82 20445 soname_spec='$libname$release$shared_ext$major'
Chris@82 20446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 20447 shlibpath_var=LD_LIBRARY_PATH
Chris@82 20448 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Chris@82 20449 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@82 20450 ;;
Chris@82 20451
Chris@82 20452 rdos*)
Chris@82 20453 dynamic_linker=no
Chris@82 20454 ;;
Chris@82 20455
Chris@82 20456 solaris*)
Chris@82 20457 version_type=linux # correct to gnu/linux during the next big refactor
Chris@82 20458 need_lib_prefix=no
Chris@82 20459 need_version=no
Chris@82 20460 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 20461 soname_spec='$libname$release$shared_ext$major'
Chris@82 20462 shlibpath_var=LD_LIBRARY_PATH
Chris@82 20463 shlibpath_overrides_runpath=yes
Chris@82 20464 hardcode_into_libs=yes
Chris@82 20465 # ldd complains unless libraries are executable
Chris@82 20466 postinstall_cmds='chmod +x $lib'
Chris@82 20467 ;;
Chris@82 20468
Chris@82 20469 sunos4*)
Chris@82 20470 version_type=sunos
Chris@82 20471 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Chris@82 20472 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
Chris@82 20473 shlibpath_var=LD_LIBRARY_PATH
Chris@82 20474 shlibpath_overrides_runpath=yes
Chris@82 20475 if test yes = "$with_gnu_ld"; then
Chris@82 20476 need_lib_prefix=no
Chris@82 20477 fi
Chris@82 20478 need_version=yes
Chris@82 20479 ;;
Chris@82 20480
Chris@82 20481 sysv4 | sysv4.3*)
Chris@82 20482 version_type=linux # correct to gnu/linux during the next big refactor
Chris@82 20483 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 20484 soname_spec='$libname$release$shared_ext$major'
Chris@82 20485 shlibpath_var=LD_LIBRARY_PATH
Chris@82 20486 case $host_vendor in
Chris@82 20487 sni)
Chris@82 20488 shlibpath_overrides_runpath=no
Chris@82 20489 need_lib_prefix=no
Chris@82 20490 runpath_var=LD_RUN_PATH
Chris@82 20491 ;;
Chris@82 20492 siemens)
Chris@82 20493 need_lib_prefix=no
Chris@82 20494 ;;
Chris@82 20495 motorola)
Chris@82 20496 need_lib_prefix=no
Chris@82 20497 need_version=no
Chris@82 20498 shlibpath_overrides_runpath=no
Chris@82 20499 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
Chris@82 20500 ;;
Chris@82 20501 esac
Chris@82 20502 ;;
Chris@82 20503
Chris@82 20504 sysv4*MP*)
Chris@82 20505 if test -d /usr/nec; then
Chris@82 20506 version_type=linux # correct to gnu/linux during the next big refactor
Chris@82 20507 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
Chris@82 20508 soname_spec='$libname$shared_ext.$major'
Chris@82 20509 shlibpath_var=LD_LIBRARY_PATH
Chris@82 20510 fi
Chris@82 20511 ;;
Chris@82 20512
Chris@82 20513 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Chris@82 20514 version_type=sco
Chris@82 20515 need_lib_prefix=no
Chris@82 20516 need_version=no
Chris@82 20517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
Chris@82 20518 soname_spec='$libname$release$shared_ext$major'
Chris@82 20519 shlibpath_var=LD_LIBRARY_PATH
Chris@82 20520 shlibpath_overrides_runpath=yes
Chris@82 20521 hardcode_into_libs=yes
Chris@82 20522 if test yes = "$with_gnu_ld"; then
Chris@82 20523 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Chris@82 20524 else
Chris@82 20525 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Chris@82 20526 case $host_os in
Chris@82 20527 sco3.2v5*)
Chris@82 20528 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
Chris@82 20529 ;;
Chris@82 20530 esac
Chris@82 20531 fi
Chris@82 20532 sys_lib_dlsearch_path_spec='/usr/lib'
Chris@82 20533 ;;
Chris@82 20534
Chris@82 20535 tpf*)
Chris@82 20536 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Chris@82 20537 version_type=linux # correct to gnu/linux during the next big refactor
Chris@82 20538 need_lib_prefix=no
Chris@82 20539 need_version=no
Chris@82 20540 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 20541 shlibpath_var=LD_LIBRARY_PATH
Chris@82 20542 shlibpath_overrides_runpath=no
Chris@82 20543 hardcode_into_libs=yes
Chris@82 20544 ;;
Chris@82 20545
Chris@82 20546 uts4*)
Chris@82 20547 version_type=linux # correct to gnu/linux during the next big refactor
Chris@82 20548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@82 20549 soname_spec='$libname$release$shared_ext$major'
Chris@82 20550 shlibpath_var=LD_LIBRARY_PATH
Chris@82 20551 ;;
Chris@82 20552
Chris@82 20553 *)
Chris@82 20554 dynamic_linker=no
Chris@82 20555 ;;
Chris@82 20556 esac
Chris@82 20557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Chris@82 20558 $as_echo "$dynamic_linker" >&6; }
Chris@82 20559 test no = "$dynamic_linker" && can_build_shared=no
Chris@82 20560
Chris@82 20561 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Chris@82 20562 if test yes = "$GCC"; then
Chris@82 20563 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
Chris@82 20564 fi
Chris@82 20565
Chris@82 20566 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
Chris@82 20567 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
Chris@82 20568 fi
Chris@82 20569
Chris@82 20570 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
Chris@82 20571 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
Chris@82 20572 fi
Chris@82 20573
Chris@82 20574 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
Chris@82 20575 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
Chris@82 20576
Chris@82 20577 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
Chris@82 20578 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
Chris@82 20579
Chris@82 20580 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
Chris@82 20581 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
Chris@82 20582
Chris@82 20583
Chris@82 20584
Chris@82 20585
Chris@82 20586
Chris@82 20587
Chris@82 20588
Chris@82 20589
Chris@82 20590
Chris@82 20591
Chris@82 20592
Chris@82 20593
Chris@82 20594
Chris@82 20595
Chris@82 20596
Chris@82 20597
Chris@82 20598
Chris@82 20599
Chris@82 20600
Chris@82 20601
Chris@82 20602
Chris@82 20603
Chris@82 20604
Chris@82 20605
Chris@82 20606
Chris@82 20607
Chris@82 20608
Chris@82 20609
Chris@82 20610
Chris@82 20611
Chris@82 20612
Chris@82 20613
Chris@82 20614
Chris@82 20615
Chris@82 20616
Chris@82 20617
Chris@82 20618
Chris@82 20619
Chris@82 20620
Chris@82 20621
Chris@82 20622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Chris@82 20623 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Chris@82 20624 hardcode_action_F77=
Chris@82 20625 if test -n "$hardcode_libdir_flag_spec_F77" ||
Chris@82 20626 test -n "$runpath_var_F77" ||
Chris@82 20627 test yes = "$hardcode_automatic_F77"; then
Chris@82 20628
Chris@82 20629 # We can hardcode non-existent directories.
Chris@82 20630 if test no != "$hardcode_direct_F77" &&
Chris@82 20631 # If the only mechanism to avoid hardcoding is shlibpath_var, we
Chris@82 20632 # have to relink, otherwise we might link with an installed library
Chris@82 20633 # when we should be linking with a yet-to-be-installed one
Chris@82 20634 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" &&
Chris@82 20635 test no != "$hardcode_minus_L_F77"; then
Chris@82 20636 # Linking always hardcodes the temporary library directory.
Chris@82 20637 hardcode_action_F77=relink
Chris@82 20638 else
Chris@82 20639 # We can link without hardcoding, and we can hardcode nonexisting dirs.
Chris@82 20640 hardcode_action_F77=immediate
Chris@82 20641 fi
Chris@82 20642 else
Chris@82 20643 # We cannot hardcode anything, or else we can only hardcode existing
Chris@82 20644 # directories.
Chris@82 20645 hardcode_action_F77=unsupported
Chris@82 20646 fi
Chris@82 20647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
Chris@82 20648 $as_echo "$hardcode_action_F77" >&6; }
Chris@82 20649
Chris@82 20650 if test relink = "$hardcode_action_F77" ||
Chris@82 20651 test yes = "$inherit_rpath_F77"; then
Chris@82 20652 # Fast installation is not supported
Chris@82 20653 enable_fast_install=no
Chris@82 20654 elif test yes = "$shlibpath_overrides_runpath" ||
Chris@82 20655 test no = "$enable_shared"; then
Chris@82 20656 # Fast installation is not necessary
Chris@82 20657 enable_fast_install=needless
Chris@82 20658 fi
Chris@82 20659
Chris@82 20660
Chris@82 20661
Chris@82 20662
Chris@82 20663
Chris@82 20664
Chris@82 20665
Chris@82 20666 fi # test -n "$compiler"
Chris@82 20667
Chris@82 20668 GCC=$lt_save_GCC
Chris@82 20669 CC=$lt_save_CC
Chris@82 20670 CFLAGS=$lt_save_CFLAGS
Chris@82 20671 fi # test yes != "$_lt_disable_F77"
Chris@82 20672
Chris@82 20673 ac_ext=c
Chris@82 20674 ac_cpp='$CPP $CPPFLAGS'
Chris@82 20675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@82 20676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 20677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@82 20678
Chris@82 20679
Chris@82 20680 if test -z "$F77"; then
Chris@82 20681 enable_fortran=no
Chris@82 20682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Couldn't find f77 compiler; using default Fortran wrappers." >&5
Chris@82 20683 $as_echo "$as_me: WARNING: *** Couldn't find f77 compiler; using default Fortran wrappers." >&2;}
Chris@82 20684 else
Chris@82 20685 ac_ext=f
Chris@82 20686 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@82 20687 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 20688 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@82 20689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5
Chris@82 20690 $as_echo_n "checking how to get verbose linking output from $F77... " >&6; }
Chris@82 20691 if ${ac_cv_prog_f77_v+:} false; then :
Chris@82 20692 $as_echo_n "(cached) " >&6
Chris@82 20693 else
Chris@82 20694 cat > conftest.$ac_ext <<_ACEOF
Chris@82 20695 program main
Chris@82 20696
Chris@82 20697 end
Chris@82 20698 _ACEOF
Chris@82 20699 if ac_fn_f77_try_compile "$LINENO"; then :
Chris@82 20700 ac_cv_prog_f77_v=
Chris@82 20701 # Try some options frequently used verbose output
Chris@82 20702 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
Chris@82 20703 cat > conftest.$ac_ext <<_ACEOF
Chris@82 20704 program main
Chris@82 20705
Chris@82 20706 end
Chris@82 20707 _ACEOF
Chris@82 20708
Chris@82 20709 # Compile and link our simple test program by passing a flag (argument
Chris@82 20710 # 1 to this macro) to the Fortran compiler in order to get
Chris@82 20711 # "verbose" output that we can then parse for the Fortran linker
Chris@82 20712 # flags.
Chris@82 20713 ac_save_FFLAGS=$FFLAGS
Chris@82 20714 FFLAGS="$FFLAGS $ac_verb"
Chris@82 20715 eval "set x $ac_link"
Chris@82 20716 shift
Chris@82 20717 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
Chris@82 20718 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
Chris@82 20719 # LIBRARY_PATH; skip all such settings.
Chris@82 20720 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
Chris@82 20721 sed '/^Driving:/d; /^Configured with:/d;
Chris@82 20722 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
Chris@82 20723 $as_echo "$ac_f77_v_output" >&5
Chris@82 20724 FFLAGS=$ac_save_FFLAGS
Chris@82 20725
Chris@82 20726 rm -rf conftest*
Chris@82 20727
Chris@82 20728 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
Chris@82 20729 # /foo, /bar, and /baz are search directories for the Fortran linker.
Chris@82 20730 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
Chris@82 20731 ac_f77_v_output="`echo $ac_f77_v_output |
Chris@82 20732 grep 'LPATH is:' |
Chris@82 20733 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
Chris@82 20734
Chris@82 20735 # FIXME: we keep getting bitten by quoted arguments; a more general fix
Chris@82 20736 # that detects unbalanced quotes in FLIBS should be implemented
Chris@82 20737 # and (ugh) tested at some point.
Chris@82 20738 case $ac_f77_v_output in
Chris@82 20739 # With xlf replace commas with spaces,
Chris@82 20740 # and remove "-link" and closing parenthesis.
Chris@82 20741 *xlfentry*)
Chris@82 20742 ac_f77_v_output=`echo $ac_f77_v_output |
Chris@82 20743 sed '
Chris@82 20744 s/,/ /g
Chris@82 20745 s/ -link / /g
Chris@82 20746 s/) *$//
Chris@82 20747 '
Chris@82 20748 ` ;;
Chris@82 20749
Chris@82 20750 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
Chris@82 20751 # $LIBS confuse us, and the libraries appear later in the output anyway).
Chris@82 20752 *mGLOB_options_string*)
Chris@82 20753 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
Chris@82 20754
Chris@82 20755 # Portland Group compiler has singly- or doubly-quoted -cmdline argument
Chris@82 20756 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
Chris@82 20757 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
Chris@82 20758 *-cmdline\ * | *-ignore\ * | *-def\ *)
Chris@82 20759 ac_f77_v_output=`echo $ac_f77_v_output | sed "\
Chris@82 20760 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
Chris@82 20761 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
Chris@82 20762 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
Chris@82 20763
Chris@82 20764 # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
Chris@82 20765 *fort77*f2c*gcc*)
Chris@82 20766 ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n '
Chris@82 20767 /:[ ]\+Running[ ]\{1,\}"gcc"/{
Chris@82 20768 /"-c"/d
Chris@82 20769 /[.]c"*/d
Chris@82 20770 s/^.*"gcc"/"gcc"/
Chris@82 20771 s/"//gp
Chris@82 20772 }'` ;;
Chris@82 20773
Chris@82 20774 # If we are using Cray Fortran then delete quotes.
Chris@82 20775 *cft90*)
Chris@82 20776 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
Chris@82 20777 esac
Chris@82 20778
Chris@82 20779
Chris@82 20780 # look for -l* and *.a constructs in the output
Chris@82 20781 for ac_arg in $ac_f77_v_output; do
Chris@82 20782 case $ac_arg in
Chris@82 20783 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
Chris@82 20784 ac_cv_prog_f77_v=$ac_verb
Chris@82 20785 break 2 ;;
Chris@82 20786 esac
Chris@82 20787 done
Chris@82 20788 done
Chris@82 20789 if test -z "$ac_cv_prog_f77_v"; then
Chris@82 20790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5
Chris@82 20791 $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
Chris@82 20792 fi
Chris@82 20793 else
Chris@82 20794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
Chris@82 20795 $as_echo "$as_me: WARNING: compilation failed" >&2;}
Chris@82 20796 fi
Chris@82 20797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 20798
Chris@82 20799 fi
Chris@82 20800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5
Chris@82 20801 $as_echo "$ac_cv_prog_f77_v" >&6; }
Chris@82 20802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5
Chris@82 20803 $as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; }
Chris@82 20804 if ${ac_cv_f77_libs+:} false; then :
Chris@82 20805 $as_echo_n "(cached) " >&6
Chris@82 20806 else
Chris@82 20807 if test "x$FLIBS" != "x"; then
Chris@82 20808 ac_cv_f77_libs="$FLIBS" # Let the user override the test.
Chris@82 20809 else
Chris@82 20810
Chris@82 20811 cat > conftest.$ac_ext <<_ACEOF
Chris@82 20812 program main
Chris@82 20813
Chris@82 20814 end
Chris@82 20815 _ACEOF
Chris@82 20816
Chris@82 20817 # Compile and link our simple test program by passing a flag (argument
Chris@82 20818 # 1 to this macro) to the Fortran compiler in order to get
Chris@82 20819 # "verbose" output that we can then parse for the Fortran linker
Chris@82 20820 # flags.
Chris@82 20821 ac_save_FFLAGS=$FFLAGS
Chris@82 20822 FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
Chris@82 20823 eval "set x $ac_link"
Chris@82 20824 shift
Chris@82 20825 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
Chris@82 20826 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
Chris@82 20827 # LIBRARY_PATH; skip all such settings.
Chris@82 20828 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
Chris@82 20829 sed '/^Driving:/d; /^Configured with:/d;
Chris@82 20830 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
Chris@82 20831 $as_echo "$ac_f77_v_output" >&5
Chris@82 20832 FFLAGS=$ac_save_FFLAGS
Chris@82 20833
Chris@82 20834 rm -rf conftest*
Chris@82 20835
Chris@82 20836 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
Chris@82 20837 # /foo, /bar, and /baz are search directories for the Fortran linker.
Chris@82 20838 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
Chris@82 20839 ac_f77_v_output="`echo $ac_f77_v_output |
Chris@82 20840 grep 'LPATH is:' |
Chris@82 20841 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
Chris@82 20842
Chris@82 20843 # FIXME: we keep getting bitten by quoted arguments; a more general fix
Chris@82 20844 # that detects unbalanced quotes in FLIBS should be implemented
Chris@82 20845 # and (ugh) tested at some point.
Chris@82 20846 case $ac_f77_v_output in
Chris@82 20847 # With xlf replace commas with spaces,
Chris@82 20848 # and remove "-link" and closing parenthesis.
Chris@82 20849 *xlfentry*)
Chris@82 20850 ac_f77_v_output=`echo $ac_f77_v_output |
Chris@82 20851 sed '
Chris@82 20852 s/,/ /g
Chris@82 20853 s/ -link / /g
Chris@82 20854 s/) *$//
Chris@82 20855 '
Chris@82 20856 ` ;;
Chris@82 20857
Chris@82 20858 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
Chris@82 20859 # $LIBS confuse us, and the libraries appear later in the output anyway).
Chris@82 20860 *mGLOB_options_string*)
Chris@82 20861 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
Chris@82 20862
Chris@82 20863 # Portland Group compiler has singly- or doubly-quoted -cmdline argument
Chris@82 20864 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
Chris@82 20865 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
Chris@82 20866 *-cmdline\ * | *-ignore\ * | *-def\ *)
Chris@82 20867 ac_f77_v_output=`echo $ac_f77_v_output | sed "\
Chris@82 20868 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
Chris@82 20869 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
Chris@82 20870 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
Chris@82 20871
Chris@82 20872 # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
Chris@82 20873 *fort77*f2c*gcc*)
Chris@82 20874 ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n '
Chris@82 20875 /:[ ]\+Running[ ]\{1,\}"gcc"/{
Chris@82 20876 /"-c"/d
Chris@82 20877 /[.]c"*/d
Chris@82 20878 s/^.*"gcc"/"gcc"/
Chris@82 20879 s/"//gp
Chris@82 20880 }'` ;;
Chris@82 20881
Chris@82 20882 # If we are using Cray Fortran then delete quotes.
Chris@82 20883 *cft90*)
Chris@82 20884 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
Chris@82 20885 esac
Chris@82 20886
Chris@82 20887
Chris@82 20888
Chris@82 20889 ac_cv_f77_libs=
Chris@82 20890
Chris@82 20891 # Save positional arguments (if any)
Chris@82 20892 ac_save_positional="$@"
Chris@82 20893
Chris@82 20894 set X $ac_f77_v_output
Chris@82 20895 while test $# != 1; do
Chris@82 20896 shift
Chris@82 20897 ac_arg=$1
Chris@82 20898 case $ac_arg in
Chris@82 20899 [\\/]*.a | ?:[\\/]*.a)
Chris@82 20900 ac_exists=false
Chris@82 20901 for ac_i in $ac_cv_f77_libs; do
Chris@82 20902 if test x"$ac_arg" = x"$ac_i"; then
Chris@82 20903 ac_exists=true
Chris@82 20904 break
Chris@82 20905 fi
Chris@82 20906 done
Chris@82 20907
Chris@82 20908 if test x"$ac_exists" = xtrue; then :
Chris@82 20909
Chris@82 20910 else
Chris@82 20911 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
Chris@82 20912 fi
Chris@82 20913 ;;
Chris@82 20914 -bI:*)
Chris@82 20915 ac_exists=false
Chris@82 20916 for ac_i in $ac_cv_f77_libs; do
Chris@82 20917 if test x"$ac_arg" = x"$ac_i"; then
Chris@82 20918 ac_exists=true
Chris@82 20919 break
Chris@82 20920 fi
Chris@82 20921 done
Chris@82 20922
Chris@82 20923 if test x"$ac_exists" = xtrue; then :
Chris@82 20924
Chris@82 20925 else
Chris@82 20926 if test "$ac_compiler_gnu" = yes; then
Chris@82 20927 for ac_link_opt in $ac_arg; do
Chris@82 20928 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
Chris@82 20929 done
Chris@82 20930 else
Chris@82 20931 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
Chris@82 20932 fi
Chris@82 20933 fi
Chris@82 20934 ;;
Chris@82 20935 # Ignore these flags.
Chris@82 20936 -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
Chris@82 20937 |-LANG:=* | -LIST:* | -LNO:* | -link)
Chris@82 20938 ;;
Chris@82 20939 -lkernel32)
Chris@82 20940 case $host_os in
Chris@82 20941 *cygwin*) ;;
Chris@82 20942 *) ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
Chris@82 20943 ;;
Chris@82 20944 esac
Chris@82 20945 ;;
Chris@82 20946 -[LRuYz])
Chris@82 20947 # These flags, when seen by themselves, take an argument.
Chris@82 20948 # We remove the space between option and argument and re-iterate
Chris@82 20949 # unless we find an empty arg or a new option (starting with -)
Chris@82 20950 case $2 in
Chris@82 20951 "" | -*);;
Chris@82 20952 *)
Chris@82 20953 ac_arg="$ac_arg$2"
Chris@82 20954 shift; shift
Chris@82 20955 set X $ac_arg "$@"
Chris@82 20956 ;;
Chris@82 20957 esac
Chris@82 20958 ;;
Chris@82 20959 -YP,*)
Chris@82 20960 for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
Chris@82 20961 ac_exists=false
Chris@82 20962 for ac_i in $ac_cv_f77_libs; do
Chris@82 20963 if test x"$ac_j" = x"$ac_i"; then
Chris@82 20964 ac_exists=true
Chris@82 20965 break
Chris@82 20966 fi
Chris@82 20967 done
Chris@82 20968
Chris@82 20969 if test x"$ac_exists" = xtrue; then :
Chris@82 20970
Chris@82 20971 else
Chris@82 20972 ac_arg="$ac_arg $ac_j"
Chris@82 20973 ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
Chris@82 20974 fi
Chris@82 20975 done
Chris@82 20976 ;;
Chris@82 20977 -[lLR]*)
Chris@82 20978 ac_exists=false
Chris@82 20979 for ac_i in $ac_cv_f77_libs; do
Chris@82 20980 if test x"$ac_arg" = x"$ac_i"; then
Chris@82 20981 ac_exists=true
Chris@82 20982 break
Chris@82 20983 fi
Chris@82 20984 done
Chris@82 20985
Chris@82 20986 if test x"$ac_exists" = xtrue; then :
Chris@82 20987
Chris@82 20988 else
Chris@82 20989 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
Chris@82 20990 fi
Chris@82 20991 ;;
Chris@82 20992 -zallextract*| -zdefaultextract)
Chris@82 20993 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
Chris@82 20994 ;;
Chris@82 20995 # Ignore everything else.
Chris@82 20996 esac
Chris@82 20997 done
Chris@82 20998 # restore positional arguments
Chris@82 20999 set X $ac_save_positional; shift
Chris@82 21000
Chris@82 21001 # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
Chris@82 21002 # then we insist that the "run path" must be an absolute path (i.e. it
Chris@82 21003 # must begin with a "/").
Chris@82 21004 case `(uname -sr) 2>/dev/null` in
Chris@82 21005 "SunOS 5"*)
Chris@82 21006 ac_ld_run_path=`$as_echo "$ac_f77_v_output" |
Chris@82 21007 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
Chris@82 21008 test "x$ac_ld_run_path" != x &&
Chris@82 21009 if test "$ac_compiler_gnu" = yes; then
Chris@82 21010 for ac_link_opt in $ac_ld_run_path; do
Chris@82 21011 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
Chris@82 21012 done
Chris@82 21013 else
Chris@82 21014 ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
Chris@82 21015 fi
Chris@82 21016 ;;
Chris@82 21017 esac
Chris@82 21018 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
Chris@82 21019
Chris@82 21020 fi
Chris@82 21021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5
Chris@82 21022 $as_echo "$ac_cv_f77_libs" >&6; }
Chris@82 21023 FLIBS="$ac_cv_f77_libs"
Chris@82 21024
Chris@82 21025
Chris@82 21026 ac_ext=c
Chris@82 21027 ac_cpp='$CPP $CPPFLAGS'
Chris@82 21028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@82 21029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 21030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@82 21031
Chris@82 21032 ac_ext=f
Chris@82 21033 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@82 21034 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 21035 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@82 21036
Chris@82 21037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran 77 libraries" >&5
Chris@82 21038 $as_echo_n "checking for dummy main to link with Fortran 77 libraries... " >&6; }
Chris@82 21039 if ${ac_cv_f77_dummy_main+:} false; then :
Chris@82 21040 $as_echo_n "(cached) " >&6
Chris@82 21041 else
Chris@82 21042 ac_f77_dm_save_LIBS=$LIBS
Chris@82 21043 LIBS="$LIBS $FLIBS"
Chris@82 21044 ac_fortran_dm_var=F77_DUMMY_MAIN
Chris@82 21045 ac_ext=c
Chris@82 21046 ac_cpp='$CPP $CPPFLAGS'
Chris@82 21047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@82 21048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 21049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@82 21050
Chris@82 21051 # First, try linking without a dummy main:
Chris@82 21052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 21053 /* end confdefs.h. */
Chris@82 21054
Chris@82 21055 #ifdef F77_DUMMY_MAIN
Chris@82 21056
Chris@82 21057 # ifdef __cplusplus
Chris@82 21058 extern "C"
Chris@82 21059 # endif
Chris@82 21060 int F77_DUMMY_MAIN() { return 1; }
Chris@82 21061
Chris@82 21062 #endif
Chris@82 21063 int
Chris@82 21064 main ()
Chris@82 21065 {
Chris@82 21066
Chris@82 21067 ;
Chris@82 21068 return 0;
Chris@82 21069 }
Chris@82 21070 _ACEOF
Chris@82 21071 if ac_fn_c_try_link "$LINENO"; then :
Chris@82 21072 ac_cv_fortran_dummy_main=none
Chris@82 21073 else
Chris@82 21074 ac_cv_fortran_dummy_main=unknown
Chris@82 21075 fi
Chris@82 21076 rm -f core conftest.err conftest.$ac_objext \
Chris@82 21077 conftest$ac_exeext conftest.$ac_ext
Chris@82 21078
Chris@82 21079 if test $ac_cv_fortran_dummy_main = unknown; then
Chris@82 21080 for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
Chris@82 21081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 21082 /* end confdefs.h. */
Chris@82 21083 #define $ac_fortran_dm_var $ac_func
Chris@82 21084 #ifdef F77_DUMMY_MAIN
Chris@82 21085
Chris@82 21086 # ifdef __cplusplus
Chris@82 21087 extern "C"
Chris@82 21088 # endif
Chris@82 21089 int F77_DUMMY_MAIN() { return 1; }
Chris@82 21090
Chris@82 21091 #endif
Chris@82 21092 int
Chris@82 21093 main ()
Chris@82 21094 {
Chris@82 21095
Chris@82 21096 ;
Chris@82 21097 return 0;
Chris@82 21098 }
Chris@82 21099 _ACEOF
Chris@82 21100 if ac_fn_c_try_link "$LINENO"; then :
Chris@82 21101 ac_cv_fortran_dummy_main=$ac_func; break
Chris@82 21102 fi
Chris@82 21103 rm -f core conftest.err conftest.$ac_objext \
Chris@82 21104 conftest$ac_exeext conftest.$ac_ext
Chris@82 21105 done
Chris@82 21106 fi
Chris@82 21107 ac_ext=f
Chris@82 21108 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@82 21109 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 21110 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@82 21111 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
Chris@82 21112 rm -rf conftest*
Chris@82 21113 LIBS=$ac_f77_dm_save_LIBS
Chris@82 21114
Chris@82 21115 fi
Chris@82 21116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5
Chris@82 21117 $as_echo "$ac_cv_f77_dummy_main" >&6; }
Chris@82 21118 F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
Chris@82 21119 if test "$F77_DUMMY_MAIN" != unknown; then :
Chris@82 21120 if test $F77_DUMMY_MAIN != none; then
Chris@82 21121
Chris@82 21122 cat >>confdefs.h <<_ACEOF
Chris@82 21123 #define F77_DUMMY_MAIN $F77_DUMMY_MAIN
Chris@82 21124 _ACEOF
Chris@82 21125
Chris@82 21126 if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
Chris@82 21127
Chris@82 21128 $as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
Chris@82 21129
Chris@82 21130 fi
Chris@82 21131 fi
Chris@82 21132 else
Chris@82 21133 enable_fortran=no
Chris@82 21134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Couldn't figure out how to link C and Fortran; using default Fortran wrappers." >&5
Chris@82 21135 $as_echo "$as_me: WARNING: *** Couldn't figure out how to link C and Fortran; using default Fortran wrappers." >&2;}
Chris@82 21136 fi
Chris@82 21137
Chris@82 21138 ac_ext=c
Chris@82 21139 ac_cpp='$CPP $CPPFLAGS'
Chris@82 21140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@82 21141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 21142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@82 21143
Chris@82 21144 fi
Chris@82 21145 else
Chris@82 21146
Chris@82 21147 $as_echo "#define DISABLE_FORTRAN 1" >>confdefs.h
Chris@82 21148
Chris@82 21149 fi
Chris@82 21150
Chris@82 21151 if test "x$enable_fortran" = xyes; then
Chris@82 21152 ac_ext=f
Chris@82 21153 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@82 21154 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 21155 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@82 21156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5
Chris@82 21157 $as_echo_n "checking for Fortran 77 name-mangling scheme... " >&6; }
Chris@82 21158 if ${ac_cv_f77_mangling+:} false; then :
Chris@82 21159 $as_echo_n "(cached) " >&6
Chris@82 21160 else
Chris@82 21161 cat > conftest.$ac_ext <<_ACEOF
Chris@82 21162 subroutine foobar()
Chris@82 21163 return
Chris@82 21164 end
Chris@82 21165 subroutine foo_bar()
Chris@82 21166 return
Chris@82 21167 end
Chris@82 21168 _ACEOF
Chris@82 21169 if ac_fn_f77_try_compile "$LINENO"; then :
Chris@82 21170 mv conftest.$ac_objext cfortran_test.$ac_objext
Chris@82 21171
Chris@82 21172 ac_save_LIBS=$LIBS
Chris@82 21173 LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
Chris@82 21174
Chris@82 21175 ac_ext=c
Chris@82 21176 ac_cpp='$CPP $CPPFLAGS'
Chris@82 21177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@82 21178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 21179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@82 21180 ac_success=no
Chris@82 21181 for ac_foobar in foobar FOOBAR; do
Chris@82 21182 for ac_underscore in "" "_"; do
Chris@82 21183 ac_func="$ac_foobar$ac_underscore"
Chris@82 21184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 21185 /* end confdefs.h. */
Chris@82 21186
Chris@82 21187 /* Override any GCC internal prototype to avoid an error.
Chris@82 21188 Use char because int might match the return type of a GCC
Chris@82 21189 builtin and then its argument prototype would still apply. */
Chris@82 21190 #ifdef __cplusplus
Chris@82 21191 extern "C"
Chris@82 21192 #endif
Chris@82 21193 char $ac_func ();
Chris@82 21194 #ifdef F77_DUMMY_MAIN
Chris@82 21195
Chris@82 21196 # ifdef __cplusplus
Chris@82 21197 extern "C"
Chris@82 21198 # endif
Chris@82 21199 int F77_DUMMY_MAIN() { return 1; }
Chris@82 21200
Chris@82 21201 #endif
Chris@82 21202 int
Chris@82 21203 main ()
Chris@82 21204 {
Chris@82 21205 return $ac_func ();
Chris@82 21206 ;
Chris@82 21207 return 0;
Chris@82 21208 }
Chris@82 21209 _ACEOF
Chris@82 21210 if ac_fn_c_try_link "$LINENO"; then :
Chris@82 21211 ac_success=yes; break 2
Chris@82 21212 fi
Chris@82 21213 rm -f core conftest.err conftest.$ac_objext \
Chris@82 21214 conftest$ac_exeext conftest.$ac_ext
Chris@82 21215 done
Chris@82 21216 done
Chris@82 21217 ac_ext=f
Chris@82 21218 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@82 21219 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 21220 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@82 21221
Chris@82 21222 if test "$ac_success" = "yes"; then
Chris@82 21223 case $ac_foobar in
Chris@82 21224 foobar)
Chris@82 21225 ac_case=lower
Chris@82 21226 ac_foo_bar=foo_bar
Chris@82 21227 ;;
Chris@82 21228 FOOBAR)
Chris@82 21229 ac_case=upper
Chris@82 21230 ac_foo_bar=FOO_BAR
Chris@82 21231 ;;
Chris@82 21232 esac
Chris@82 21233
Chris@82 21234 ac_ext=c
Chris@82 21235 ac_cpp='$CPP $CPPFLAGS'
Chris@82 21236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@82 21237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 21238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@82 21239 ac_success_extra=no
Chris@82 21240 for ac_extra in "" "_"; do
Chris@82 21241 ac_func="$ac_foo_bar$ac_underscore$ac_extra"
Chris@82 21242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 21243 /* end confdefs.h. */
Chris@82 21244
Chris@82 21245 /* Override any GCC internal prototype to avoid an error.
Chris@82 21246 Use char because int might match the return type of a GCC
Chris@82 21247 builtin and then its argument prototype would still apply. */
Chris@82 21248 #ifdef __cplusplus
Chris@82 21249 extern "C"
Chris@82 21250 #endif
Chris@82 21251 char $ac_func ();
Chris@82 21252 #ifdef F77_DUMMY_MAIN
Chris@82 21253
Chris@82 21254 # ifdef __cplusplus
Chris@82 21255 extern "C"
Chris@82 21256 # endif
Chris@82 21257 int F77_DUMMY_MAIN() { return 1; }
Chris@82 21258
Chris@82 21259 #endif
Chris@82 21260 int
Chris@82 21261 main ()
Chris@82 21262 {
Chris@82 21263 return $ac_func ();
Chris@82 21264 ;
Chris@82 21265 return 0;
Chris@82 21266 }
Chris@82 21267 _ACEOF
Chris@82 21268 if ac_fn_c_try_link "$LINENO"; then :
Chris@82 21269 ac_success_extra=yes; break
Chris@82 21270 fi
Chris@82 21271 rm -f core conftest.err conftest.$ac_objext \
Chris@82 21272 conftest$ac_exeext conftest.$ac_ext
Chris@82 21273 done
Chris@82 21274 ac_ext=f
Chris@82 21275 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@82 21276 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 21277 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@82 21278
Chris@82 21279 if test "$ac_success_extra" = "yes"; then
Chris@82 21280 ac_cv_f77_mangling="$ac_case case"
Chris@82 21281 if test -z "$ac_underscore"; then
Chris@82 21282 ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
Chris@82 21283 else
Chris@82 21284 ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
Chris@82 21285 fi
Chris@82 21286 if test -z "$ac_extra"; then
Chris@82 21287 ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
Chris@82 21288 else
Chris@82 21289 ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
Chris@82 21290 fi
Chris@82 21291 else
Chris@82 21292 ac_cv_f77_mangling="unknown"
Chris@82 21293 fi
Chris@82 21294 else
Chris@82 21295 ac_cv_f77_mangling="unknown"
Chris@82 21296 fi
Chris@82 21297
Chris@82 21298 LIBS=$ac_save_LIBS
Chris@82 21299 rm -rf conftest*
Chris@82 21300 rm -f cfortran_test*
Chris@82 21301 else
Chris@82 21302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@82 21303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@82 21304 as_fn_error $? "cannot compile a simple Fortran program
Chris@82 21305 See \`config.log' for more details" "$LINENO" 5; }
Chris@82 21306 fi
Chris@82 21307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@82 21308
Chris@82 21309 fi
Chris@82 21310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_mangling" >&5
Chris@82 21311 $as_echo "$ac_cv_f77_mangling" >&6; }
Chris@82 21312
Chris@82 21313 ac_ext=c
Chris@82 21314 ac_cpp='$CPP $CPPFLAGS'
Chris@82 21315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@82 21316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 21317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@82 21318
Chris@82 21319 ac_ext=f
Chris@82 21320 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@82 21321 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 21322 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@82 21323 case $ac_cv_f77_mangling in
Chris@82 21324 "lower case, no underscore, no extra underscore")
Chris@82 21325 $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
Chris@82 21326
Chris@82 21327 $as_echo "#define F77_FUNC_(name,NAME) name" >>confdefs.h
Chris@82 21328 ;;
Chris@82 21329 "lower case, no underscore, extra underscore")
Chris@82 21330 $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
Chris@82 21331
Chris@82 21332 $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
Chris@82 21333 ;;
Chris@82 21334 "lower case, underscore, no extra underscore")
Chris@82 21335 $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
Chris@82 21336
Chris@82 21337 $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
Chris@82 21338 ;;
Chris@82 21339 "lower case, underscore, extra underscore")
Chris@82 21340 $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
Chris@82 21341
Chris@82 21342 $as_echo "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h
Chris@82 21343 ;;
Chris@82 21344 "upper case, no underscore, no extra underscore")
Chris@82 21345 $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
Chris@82 21346
Chris@82 21347 $as_echo "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h
Chris@82 21348 ;;
Chris@82 21349 "upper case, no underscore, extra underscore")
Chris@82 21350 $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
Chris@82 21351
Chris@82 21352 $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
Chris@82 21353 ;;
Chris@82 21354 "upper case, underscore, no extra underscore")
Chris@82 21355 $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
Chris@82 21356
Chris@82 21357 $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
Chris@82 21358 ;;
Chris@82 21359 "upper case, underscore, extra underscore")
Chris@82 21360 $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
Chris@82 21361
Chris@82 21362 $as_echo "#define F77_FUNC_(name,NAME) NAME ## __" >>confdefs.h
Chris@82 21363 ;;
Chris@82 21364 *)
Chris@82 21365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
Chris@82 21366 $as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
Chris@82 21367 ;;
Chris@82 21368 esac
Chris@82 21369
Chris@82 21370 ac_ext=c
Chris@82 21371 ac_cpp='$CPP $CPPFLAGS'
Chris@82 21372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@82 21373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 21374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@82 21375
Chris@82 21376 ac_ext=f
Chris@82 21377 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@82 21378 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 21379 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@82 21380 case $ac_cv_f77_mangling in
Chris@82 21381 upper*) ac_val="F77FOO" ;;
Chris@82 21382 lower*) ac_val="f77foo" ;;
Chris@82 21383 *) ac_val="unknown" ;;
Chris@82 21384 esac
Chris@82 21385 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
Chris@82 21386
Chris@82 21387 f77foo="$ac_val"
Chris@82 21388
Chris@82 21389 ac_ext=c
Chris@82 21390 ac_cpp='$CPP $CPPFLAGS'
Chris@82 21391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@82 21392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 21393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@82 21394
Chris@82 21395 ac_ext=f
Chris@82 21396 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
Chris@82 21397 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 21398 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
Chris@82 21399 case $ac_cv_f77_mangling in
Chris@82 21400 upper*) ac_val="F77_FOO" ;;
Chris@82 21401 lower*) ac_val="f77_foo" ;;
Chris@82 21402 *) ac_val="unknown" ;;
Chris@82 21403 esac
Chris@82 21404 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
Chris@82 21405 case $ac_cv_f77_mangling in *," extra underscore"*) ac_val="$ac_val"_ ;; esac
Chris@82 21406
Chris@82 21407 f77_foo="$ac_val"
Chris@82 21408
Chris@82 21409 ac_ext=c
Chris@82 21410 ac_cpp='$CPP $CPPFLAGS'
Chris@82 21411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@82 21412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 21413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@82 21414
Chris@82 21415 f77_foo2=`echo $f77foo | sed 's/77/77_/'`
Chris@82 21416 if test "$f77_foo" = "$f77_foo2"; then
Chris@82 21417
Chris@82 21418 $as_echo "#define F77_FUNC_EQUIV 1" >>confdefs.h
Chris@82 21419
Chris@82 21420
Chris@82 21421 # Include g77 wrappers by default for GNU systems or gfortran
Chris@82 21422 with_g77_wrappers=$ac_cv_f77_compiler_gnu
Chris@82 21423 case $host_os in *gnu*) with_g77_wrappers=yes ;; esac
Chris@82 21424 fi
Chris@82 21425 else
Chris@82 21426 with_g77_wrappers=no
Chris@82 21427 fi
Chris@82 21428
Chris@82 21429
Chris@82 21430 # Check whether --with-g77-wrappers was given.
Chris@82 21431 if test "${with_g77_wrappers+set}" = set; then :
Chris@82 21432 withval=$with_g77_wrappers; with_g77_wrappers=$withval
Chris@82 21433 fi
Chris@82 21434
Chris@82 21435 if test "x$with_g77_wrappers" = "xyes"; then
Chris@82 21436
Chris@82 21437 $as_echo "#define WITH_G77_WRAPPERS 1" >>confdefs.h
Chris@82 21438
Chris@82 21439 fi
Chris@82 21440
Chris@82 21441 have_smp="no"
Chris@82 21442 # Check whether --enable-openmp was given.
Chris@82 21443 if test "${enable_openmp+set}" = set; then :
Chris@82 21444 enableval=$enable_openmp; enable_openmp=$enableval
Chris@82 21445 else
Chris@82 21446 enable_openmp=no
Chris@82 21447 fi
Chris@82 21448
Chris@82 21449
Chris@82 21450 if test "$enable_openmp" = "yes"; then
Chris@82 21451
Chris@82 21452 $as_echo "#define HAVE_OPENMP 1" >>confdefs.h
Chris@82 21453
Chris@82 21454
Chris@82 21455
Chris@82 21456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP flag of C compiler" >&5
Chris@82 21457 $as_echo_n "checking for OpenMP flag of C compiler... " >&6; }
Chris@82 21458 if ${ax_cv_c_openmp+:} false; then :
Chris@82 21459 $as_echo_n "(cached) " >&6
Chris@82 21460 else
Chris@82 21461 saveCFLAGS=$CFLAGS
Chris@82 21462 ax_cv_c_openmp=unknown
Chris@82 21463 # Flags to try: -fopenmp (gcc), -openmp (icc), -mp (SGI & PGI),
Chris@82 21464 # -xopenmp (Sun), -omp (Tru64), -qsmp=omp (AIX), none
Chris@82 21465 ax_openmp_flags="-fopenmp -openmp -mp -xopenmp -omp -qsmp=omp none"
Chris@82 21466 if test "x$OPENMP_CFLAGS" != x; then
Chris@82 21467 ax_openmp_flags="$OPENMP_CFLAGS $ax_openmp_flags"
Chris@82 21468 fi
Chris@82 21469 for ax_openmp_flag in $ax_openmp_flags; do
Chris@82 21470 case $ax_openmp_flag in
Chris@82 21471 none) CFLAGS=$saveC ;;
Chris@82 21472 *) CFLAGS="$saveCFLAGS $ax_openmp_flag" ;;
Chris@82 21473 esac
Chris@82 21474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 21475 /* end confdefs.h. */
Chris@82 21476
Chris@82 21477 /* Override any GCC internal prototype to avoid an error.
Chris@82 21478 Use char because int might match the return type of a GCC
Chris@82 21479 builtin and then its argument prototype would still apply. */
Chris@82 21480 #ifdef __cplusplus
Chris@82 21481 extern "C"
Chris@82 21482 #endif
Chris@82 21483 char omp_set_num_threads ();
Chris@82 21484 #ifdef F77_DUMMY_MAIN
Chris@82 21485
Chris@82 21486 # ifdef __cplusplus
Chris@82 21487 extern "C"
Chris@82 21488 # endif
Chris@82 21489 int F77_DUMMY_MAIN() { return 1; }
Chris@82 21490
Chris@82 21491 #endif
Chris@82 21492 int
Chris@82 21493 main ()
Chris@82 21494 {
Chris@82 21495 return omp_set_num_threads ();
Chris@82 21496 ;
Chris@82 21497 return 0;
Chris@82 21498 }
Chris@82 21499 _ACEOF
Chris@82 21500 if ac_fn_c_try_link "$LINENO"; then :
Chris@82 21501 ax_cv_c_openmp=$ax_openmp_flag; break
Chris@82 21502 fi
Chris@82 21503 rm -f core conftest.err conftest.$ac_objext \
Chris@82 21504 conftest$ac_exeext conftest.$ac_ext
Chris@82 21505 done
Chris@82 21506 CFLAGS=$saveCFLAGS
Chris@82 21507
Chris@82 21508 fi
Chris@82 21509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_openmp" >&5
Chris@82 21510 $as_echo "$ax_cv_c_openmp" >&6; }
Chris@82 21511 if test "x$ax_cv_c_openmp" = "xunknown"; then
Chris@82 21512 as_fn_error $? "don't know how to enable OpenMP" "$LINENO" 5
Chris@82 21513 else
Chris@82 21514 if test "x$ax_cv_c_openmp" != "xnone"; then
Chris@82 21515 OPENMP_CFLAGS=$ax_cv_c_openmp
Chris@82 21516 fi
Chris@82 21517
Chris@82 21518 $as_echo "#define HAVE_OPENMP 1" >>confdefs.h
Chris@82 21519
Chris@82 21520 fi
Chris@82 21521
Chris@82 21522
Chris@82 21523 fi
Chris@82 21524
Chris@82 21525 # Check whether --enable-threads was given.
Chris@82 21526 if test "${enable_threads+set}" = set; then :
Chris@82 21527 enableval=$enable_threads; enable_threads=$enableval
Chris@82 21528 else
Chris@82 21529 enable_threads=no
Chris@82 21530 fi
Chris@82 21531
Chris@82 21532
Chris@82 21533 if test "$enable_threads" = "yes"; then
Chris@82 21534
Chris@82 21535 $as_echo "#define HAVE_THREADS 1" >>confdefs.h
Chris@82 21536
Chris@82 21537 fi
Chris@82 21538
Chris@82 21539
Chris@82 21540 # Check whether --with-combined-threads was given.
Chris@82 21541 if test "${with_combined_threads+set}" = set; then :
Chris@82 21542 withval=$with_combined_threads; with_combined_threads=$withval
Chris@82 21543 else
Chris@82 21544 with_combined_threads=no
Chris@82 21545 fi
Chris@82 21546
Chris@82 21547
Chris@82 21548 if test "$with_combined_threads" = yes; then
Chris@82 21549 if test "$enable_openmp" = "yes"; then
Chris@82 21550 as_fn_error $? "--with-combined-threads incompatible with --enable-openmp" "$LINENO" 5
Chris@82 21551 fi
Chris@82 21552 if test "$enable_threads" != "yes"; then
Chris@82 21553 as_fn_error $? "--with-combined-threads requires --enable-threads" "$LINENO" 5
Chris@82 21554 fi
Chris@82 21555 fi
Chris@82 21556
Chris@82 21557 THREADLIBS=""
Chris@82 21558 if test "$enable_threads" = "yes"; then
Chris@82 21559 # Win32 threads are the default on Windows:
Chris@82 21560 if test -z "$THREADLIBS"; then
Chris@82 21561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32 threads" >&5
Chris@82 21562 $as_echo_n "checking for Win32 threads... " >&6; }
Chris@82 21563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 21564 /* end confdefs.h. */
Chris@82 21565 #include <windows.h>
Chris@82 21566 #ifdef F77_DUMMY_MAIN
Chris@82 21567
Chris@82 21568 # ifdef __cplusplus
Chris@82 21569 extern "C"
Chris@82 21570 # endif
Chris@82 21571 int F77_DUMMY_MAIN() { return 1; }
Chris@82 21572
Chris@82 21573 #endif
Chris@82 21574 int
Chris@82 21575 main ()
Chris@82 21576 {
Chris@82 21577 _beginthreadex(0,0,0,0,0,0);
Chris@82 21578 ;
Chris@82 21579 return 0;
Chris@82 21580 }
Chris@82 21581 _ACEOF
Chris@82 21582 if ac_fn_c_try_link "$LINENO"; then :
Chris@82 21583 THREADLIBS=" "; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@82 21584 $as_echo "yes" >&6; }
Chris@82 21585 else
Chris@82 21586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 21587 $as_echo "no" >&6; }
Chris@82 21588 fi
Chris@82 21589 rm -f core conftest.err conftest.$ac_objext \
Chris@82 21590 conftest$ac_exeext conftest.$ac_ext
Chris@82 21591 fi
Chris@82 21592
Chris@82 21593 # POSIX threads, the default choice everywhere else:
Chris@82 21594 if test -z "$THREADLIBS"; then
Chris@82 21595
Chris@82 21596
Chris@82 21597
Chris@82 21598 ac_ext=c
Chris@82 21599 ac_cpp='$CPP $CPPFLAGS'
Chris@82 21600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@82 21601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 21602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@82 21603
Chris@82 21604 acx_pthread_ok=no
Chris@82 21605
Chris@82 21606 # We used to check for pthread.h first, but this fails if pthread.h
Chris@82 21607 # requires special compiler flags (e.g. on True64 or Sequent).
Chris@82 21608 # It gets checked for in the link test anyway.
Chris@82 21609
Chris@82 21610 # First of all, check if the user has set any of the PTHREAD_LIBS,
Chris@82 21611 # etcetera environment variables, and if threads linking works using
Chris@82 21612 # them:
Chris@82 21613 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
Chris@82 21614 save_CFLAGS="$CFLAGS"
Chris@82 21615 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
Chris@82 21616 save_LIBS="$LIBS"
Chris@82 21617 LIBS="$PTHREAD_LIBS $LIBS"
Chris@82 21618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
Chris@82 21619 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
Chris@82 21620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 21621 /* end confdefs.h. */
Chris@82 21622
Chris@82 21623 /* Override any GCC internal prototype to avoid an error.
Chris@82 21624 Use char because int might match the return type of a GCC
Chris@82 21625 builtin and then its argument prototype would still apply. */
Chris@82 21626 #ifdef __cplusplus
Chris@82 21627 extern "C"
Chris@82 21628 #endif
Chris@82 21629 char pthread_join ();
Chris@82 21630 #ifdef F77_DUMMY_MAIN
Chris@82 21631
Chris@82 21632 # ifdef __cplusplus
Chris@82 21633 extern "C"
Chris@82 21634 # endif
Chris@82 21635 int F77_DUMMY_MAIN() { return 1; }
Chris@82 21636
Chris@82 21637 #endif
Chris@82 21638 int
Chris@82 21639 main ()
Chris@82 21640 {
Chris@82 21641 return pthread_join ();
Chris@82 21642 ;
Chris@82 21643 return 0;
Chris@82 21644 }
Chris@82 21645 _ACEOF
Chris@82 21646 if ac_fn_c_try_link "$LINENO"; then :
Chris@82 21647 acx_pthread_ok=yes
Chris@82 21648 fi
Chris@82 21649 rm -f core conftest.err conftest.$ac_objext \
Chris@82 21650 conftest$ac_exeext conftest.$ac_ext
Chris@82 21651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
Chris@82 21652 $as_echo "$acx_pthread_ok" >&6; }
Chris@82 21653 if test x"$acx_pthread_ok" = xno; then
Chris@82 21654 PTHREAD_LIBS=""
Chris@82 21655 PTHREAD_CFLAGS=""
Chris@82 21656 fi
Chris@82 21657 LIBS="$save_LIBS"
Chris@82 21658 CFLAGS="$save_CFLAGS"
Chris@82 21659 fi
Chris@82 21660
Chris@82 21661 # We must check for the threads library under a number of different
Chris@82 21662 # names; the ordering is very important because some systems
Chris@82 21663 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
Chris@82 21664 # libraries is broken (non-POSIX).
Chris@82 21665
Chris@82 21666 # Create a list of thread flags to try. Items starting with a "-" are
Chris@82 21667 # C compiler flags, and other items are library names, except for "none"
Chris@82 21668 # which indicates that we try without any flags at all, and "pthread-config"
Chris@82 21669 # which is a program returning the flags for the Pth emulation library.
Chris@82 21670
Chris@82 21671 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
Chris@82 21672
Chris@82 21673 # The ordering *is* (sometimes) important. Some notes on the
Chris@82 21674 # individual items follow:
Chris@82 21675
Chris@82 21676 # pthreads: AIX (must check this before -lpthread)
Chris@82 21677 # none: in case threads are in libc; should be tried before -Kthread and
Chris@82 21678 # other compiler flags to prevent continual compiler warnings
Chris@82 21679 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
Chris@82 21680 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
Chris@82 21681 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
Chris@82 21682 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
Chris@82 21683 # -pthreads: Solaris/gcc
Chris@82 21684 # -mthreads: Mingw32/gcc, Lynx/gcc
Chris@82 21685 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
Chris@82 21686 # doesn't hurt to check since this sometimes defines pthreads too;
Chris@82 21687 # also defines -D_REENTRANT)
Chris@82 21688 # ... -mt is also the pthreads flag for HP/aCC
Chris@82 21689 # (where it should come before -mthreads to avoid spurious warnings)
Chris@82 21690 # pthread: Linux, etcetera
Chris@82 21691 # --thread-safe: KAI C++
Chris@82 21692 # pthread-config: use pthread-config program (for GNU Pth library)
Chris@82 21693
Chris@82 21694 case "${host_cpu}-${host_os}" in
Chris@82 21695 *solaris*)
Chris@82 21696
Chris@82 21697 # On Solaris (at least, for some versions), libc contains stubbed
Chris@82 21698 # (non-functional) versions of the pthreads routines, so link-based
Chris@82 21699 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
Chris@82 21700 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
Chris@82 21701 # a function called by this macro, so we could check for that, but
Chris@82 21702 # who knows whether they'll stub that too in a future libc.) So,
Chris@82 21703 # we'll just look for -pthreads and -lpthread first:
Chris@82 21704
Chris@82 21705 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
Chris@82 21706 ;;
Chris@82 21707 esac
Chris@82 21708
Chris@82 21709 if test x"$acx_pthread_ok" = xno; then
Chris@82 21710 for flag in $acx_pthread_flags; do
Chris@82 21711
Chris@82 21712 case $flag in
Chris@82 21713 none)
Chris@82 21714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
Chris@82 21715 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
Chris@82 21716 ;;
Chris@82 21717
Chris@82 21718 -*)
Chris@82 21719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
Chris@82 21720 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
Chris@82 21721 PTHREAD_CFLAGS="$flag"
Chris@82 21722 ;;
Chris@82 21723
Chris@82 21724 pthread-config)
Chris@82 21725 # Extract the first word of "pthread-config", so it can be a program name with args.
Chris@82 21726 set dummy pthread-config; ac_word=$2
Chris@82 21727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 21728 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 21729 if ${ac_cv_prog_acx_pthread_config+:} false; then :
Chris@82 21730 $as_echo_n "(cached) " >&6
Chris@82 21731 else
Chris@82 21732 if test -n "$acx_pthread_config"; then
Chris@82 21733 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
Chris@82 21734 else
Chris@82 21735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 21736 for as_dir in $PATH
Chris@82 21737 do
Chris@82 21738 IFS=$as_save_IFS
Chris@82 21739 test -z "$as_dir" && as_dir=.
Chris@82 21740 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 21741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 21742 ac_cv_prog_acx_pthread_config="yes"
Chris@82 21743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 21744 break 2
Chris@82 21745 fi
Chris@82 21746 done
Chris@82 21747 done
Chris@82 21748 IFS=$as_save_IFS
Chris@82 21749
Chris@82 21750 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
Chris@82 21751 fi
Chris@82 21752 fi
Chris@82 21753 acx_pthread_config=$ac_cv_prog_acx_pthread_config
Chris@82 21754 if test -n "$acx_pthread_config"; then
Chris@82 21755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
Chris@82 21756 $as_echo "$acx_pthread_config" >&6; }
Chris@82 21757 else
Chris@82 21758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 21759 $as_echo "no" >&6; }
Chris@82 21760 fi
Chris@82 21761
Chris@82 21762
Chris@82 21763 if test x"$acx_pthread_config" = xno; then continue; fi
Chris@82 21764 PTHREAD_CFLAGS="`pthread-config --cflags`"
Chris@82 21765 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
Chris@82 21766 ;;
Chris@82 21767
Chris@82 21768 *)
Chris@82 21769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
Chris@82 21770 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
Chris@82 21771 PTHREAD_LIBS="-l$flag"
Chris@82 21772 ;;
Chris@82 21773 esac
Chris@82 21774
Chris@82 21775 save_LIBS="$LIBS"
Chris@82 21776 save_CFLAGS="$CFLAGS"
Chris@82 21777 LIBS="$PTHREAD_LIBS $LIBS"
Chris@82 21778 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
Chris@82 21779
Chris@82 21780 # Check for various functions. We must include pthread.h,
Chris@82 21781 # since some functions may be macros. (On the Sequent, we
Chris@82 21782 # need a special flag -Kthread to make this header compile.)
Chris@82 21783 # We check for pthread_join because it is in -lpthread on IRIX
Chris@82 21784 # while pthread_create is in libc. We check for pthread_attr_init
Chris@82 21785 # due to DEC craziness with -lpthreads. We check for
Chris@82 21786 # pthread_cleanup_push because it is one of the few pthread
Chris@82 21787 # functions on Solaris that doesn't have a non-functional libc stub.
Chris@82 21788 # We try pthread_create on general principles.
Chris@82 21789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 21790 /* end confdefs.h. */
Chris@82 21791 #include <pthread.h>
Chris@82 21792 #ifdef F77_DUMMY_MAIN
Chris@82 21793
Chris@82 21794 # ifdef __cplusplus
Chris@82 21795 extern "C"
Chris@82 21796 # endif
Chris@82 21797 int F77_DUMMY_MAIN() { return 1; }
Chris@82 21798
Chris@82 21799 #endif
Chris@82 21800 int
Chris@82 21801 main ()
Chris@82 21802 {
Chris@82 21803 pthread_t th; pthread_join(th, (void**) 0);
Chris@82 21804 pthread_attr_init((pthread_attr_t*) 0);
Chris@82 21805 pthread_cleanup_push((void(*)(void *)) 0, (void*) 0);
Chris@82 21806 pthread_create((pthread_t*) 0, (pthread_attr_t*) 0,
Chris@82 21807 (void*(*)(void *)) 0, (void*) 0);
Chris@82 21808 pthread_cleanup_pop(0);
Chris@82 21809 ;
Chris@82 21810 return 0;
Chris@82 21811 }
Chris@82 21812 _ACEOF
Chris@82 21813 if ac_fn_c_try_link "$LINENO"; then :
Chris@82 21814 acx_pthread_ok=yes
Chris@82 21815 fi
Chris@82 21816 rm -f core conftest.err conftest.$ac_objext \
Chris@82 21817 conftest$ac_exeext conftest.$ac_ext
Chris@82 21818
Chris@82 21819 LIBS="$save_LIBS"
Chris@82 21820 CFLAGS="$save_CFLAGS"
Chris@82 21821
Chris@82 21822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
Chris@82 21823 $as_echo "$acx_pthread_ok" >&6; }
Chris@82 21824 if test "x$acx_pthread_ok" = xyes; then
Chris@82 21825 break;
Chris@82 21826 fi
Chris@82 21827
Chris@82 21828 PTHREAD_LIBS=""
Chris@82 21829 PTHREAD_CFLAGS=""
Chris@82 21830 done
Chris@82 21831 fi
Chris@82 21832
Chris@82 21833 # Various other checks:
Chris@82 21834 if test "x$acx_pthread_ok" = xyes; then
Chris@82 21835 save_LIBS="$LIBS"
Chris@82 21836 LIBS="$PTHREAD_LIBS $LIBS"
Chris@82 21837 save_CFLAGS="$CFLAGS"
Chris@82 21838 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
Chris@82 21839
Chris@82 21840 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
Chris@82 21841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
Chris@82 21842 $as_echo_n "checking for joinable pthread attribute... " >&6; }
Chris@82 21843 attr_name=unknown
Chris@82 21844 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
Chris@82 21845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 21846 /* end confdefs.h. */
Chris@82 21847 #include <pthread.h>
Chris@82 21848 #ifdef F77_DUMMY_MAIN
Chris@82 21849
Chris@82 21850 # ifdef __cplusplus
Chris@82 21851 extern "C"
Chris@82 21852 # endif
Chris@82 21853 int F77_DUMMY_MAIN() { return 1; }
Chris@82 21854
Chris@82 21855 #endif
Chris@82 21856 int
Chris@82 21857 main ()
Chris@82 21858 {
Chris@82 21859 int attr=$attr; return attr;
Chris@82 21860 ;
Chris@82 21861 return 0;
Chris@82 21862 }
Chris@82 21863 _ACEOF
Chris@82 21864 if ac_fn_c_try_link "$LINENO"; then :
Chris@82 21865 attr_name=$attr; break
Chris@82 21866 fi
Chris@82 21867 rm -f core conftest.err conftest.$ac_objext \
Chris@82 21868 conftest$ac_exeext conftest.$ac_ext
Chris@82 21869 done
Chris@82 21870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
Chris@82 21871 $as_echo "$attr_name" >&6; }
Chris@82 21872 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
Chris@82 21873
Chris@82 21874 cat >>confdefs.h <<_ACEOF
Chris@82 21875 #define PTHREAD_CREATE_JOINABLE $attr_name
Chris@82 21876 _ACEOF
Chris@82 21877
Chris@82 21878 fi
Chris@82 21879
Chris@82 21880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
Chris@82 21881 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
Chris@82 21882 flag=no
Chris@82 21883 case "${host_cpu}-${host_os}" in
Chris@82 21884 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
Chris@82 21885 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
Chris@82 21886 esac
Chris@82 21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
Chris@82 21888 $as_echo "${flag}" >&6; }
Chris@82 21889 if test "x$flag" != xno; then
Chris@82 21890 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
Chris@82 21891 fi
Chris@82 21892
Chris@82 21893 LIBS="$save_LIBS"
Chris@82 21894 CFLAGS="$save_CFLAGS"
Chris@82 21895
Chris@82 21896 # More AIX lossage: must compile with xlc_r or cc_r
Chris@82 21897 if test x"$GCC" != xyes; then
Chris@82 21898 for ac_prog in xlc_r cc_r
Chris@82 21899 do
Chris@82 21900 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@82 21901 set dummy $ac_prog; ac_word=$2
Chris@82 21902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@82 21903 $as_echo_n "checking for $ac_word... " >&6; }
Chris@82 21904 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
Chris@82 21905 $as_echo_n "(cached) " >&6
Chris@82 21906 else
Chris@82 21907 if test -n "$PTHREAD_CC"; then
Chris@82 21908 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
Chris@82 21909 else
Chris@82 21910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 21911 for as_dir in $PATH
Chris@82 21912 do
Chris@82 21913 IFS=$as_save_IFS
Chris@82 21914 test -z "$as_dir" && as_dir=.
Chris@82 21915 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@82 21916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@82 21917 ac_cv_prog_PTHREAD_CC="$ac_prog"
Chris@82 21918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@82 21919 break 2
Chris@82 21920 fi
Chris@82 21921 done
Chris@82 21922 done
Chris@82 21923 IFS=$as_save_IFS
Chris@82 21924
Chris@82 21925 fi
Chris@82 21926 fi
Chris@82 21927 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
Chris@82 21928 if test -n "$PTHREAD_CC"; then
Chris@82 21929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
Chris@82 21930 $as_echo "$PTHREAD_CC" >&6; }
Chris@82 21931 else
Chris@82 21932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@82 21933 $as_echo "no" >&6; }
Chris@82 21934 fi
Chris@82 21935
Chris@82 21936
Chris@82 21937 test -n "$PTHREAD_CC" && break
Chris@82 21938 done
Chris@82 21939 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
Chris@82 21940
Chris@82 21941 else
Chris@82 21942 PTHREAD_CC=$CC
Chris@82 21943 fi
Chris@82 21944 else
Chris@82 21945 PTHREAD_CC="$CC"
Chris@82 21946 fi
Chris@82 21947
Chris@82 21948
Chris@82 21949
Chris@82 21950
Chris@82 21951
Chris@82 21952 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
Chris@82 21953 if test x"$acx_pthread_ok" = xyes; then
Chris@82 21954 THREADLIBS="$PTHREAD_LIBS "
Chris@82 21955 CC="$PTHREAD_CC"
Chris@82 21956
Chris@82 21957 $as_echo "#define USING_POSIX_THREADS 1" >>confdefs.h
Chris@82 21958
Chris@82 21959 :
Chris@82 21960 else
Chris@82 21961 acx_pthread_ok=no
Chris@82 21962
Chris@82 21963 fi
Chris@82 21964 ac_ext=c
Chris@82 21965 ac_cpp='$CPP $CPPFLAGS'
Chris@82 21966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@82 21967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@82 21968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@82 21969
Chris@82 21970
Chris@82 21971 fi
Chris@82 21972
Chris@82 21973 if test -z "$THREADLIBS"; then
Chris@82 21974 as_fn_error $? "couldn't find threads library for --enable-threads" "$LINENO" 5
Chris@82 21975 fi
Chris@82 21976
Chris@82 21977 $as_echo "#define HAVE_THREADS 1" >>confdefs.h
Chris@82 21978
Chris@82 21979 fi
Chris@82 21980
Chris@82 21981 if test "$enable_threads" = "yes"; then
Chris@82 21982 THREADS_TRUE=
Chris@82 21983 THREADS_FALSE='#'
Chris@82 21984 else
Chris@82 21985 THREADS_TRUE='#'
Chris@82 21986 THREADS_FALSE=
Chris@82 21987 fi
Chris@82 21988
Chris@82 21989 if test "$enable_openmp" = "yes"; then
Chris@82 21990 OPENMP_TRUE=
Chris@82 21991 OPENMP_FALSE='#'
Chris@82 21992 else
Chris@82 21993 OPENMP_TRUE='#'
Chris@82 21994 OPENMP_FALSE=
Chris@82 21995 fi
Chris@82 21996
Chris@82 21997 if test "$enable_threads" = "yes" -o "$enable_openmp" = "yes"; then
Chris@82 21998 SMP_TRUE=
Chris@82 21999 SMP_FALSE='#'
Chris@82 22000 else
Chris@82 22001 SMP_TRUE='#'
Chris@82 22002 SMP_FALSE=
Chris@82 22003 fi
Chris@82 22004
Chris@82 22005 if test x"$with_combined_threads" = xyes; then
Chris@82 22006 COMBINED_THREADS_TRUE=
Chris@82 22007 COMBINED_THREADS_FALSE='#'
Chris@82 22008 else
Chris@82 22009 COMBINED_THREADS_TRUE='#'
Chris@82 22010 COMBINED_THREADS_FALSE=
Chris@82 22011 fi
Chris@82 22012
Chris@82 22013
Chris@82 22014
Chris@82 22015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a cycle counter is available" >&5
Chris@82 22016 $as_echo_n "checking whether a cycle counter is available... " >&6; }
Chris@82 22017 save_CPPFLAGS=$CPPFLAGS
Chris@82 22018 CPPFLAGS="$CPPFLAGS -I$srcdir/kernel"
Chris@82 22019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@82 22020 /* end confdefs.h. */
Chris@82 22021 #include "cycle.h"
Chris@82 22022 #ifndef HAVE_TICK_COUNTER
Chris@82 22023 # error No cycle counter
Chris@82 22024 #endif
Chris@82 22025 _ACEOF
Chris@82 22026 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@82 22027 ok=yes
Chris@82 22028 else
Chris@82 22029 ok=no
Chris@82 22030 fi
Chris@82 22031 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@82 22032 CPPFLAGS=$save_CPPFLAGS
Chris@82 22033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ok" >&5
Chris@82 22034 $as_echo "$ok" >&6; }
Chris@82 22035 if test $ok = no && test "x$with_slow_timer" = xno; then
Chris@82 22036 echo "***************************************************************"
Chris@82 22037 echo "WARNING: No cycle counter found. FFTW will use ESTIMATE mode "
Chris@82 22038 echo " for all plans. See the manual for more information."
Chris@82 22039 echo "***************************************************************"
Chris@82 22040 fi
Chris@82 22041
Chris@82 22042
Chris@82 22043
Chris@82 22044 cat >>confdefs.h <<_ACEOF
Chris@82 22045 #define FFTW_CC "$CC $CFLAGS"
Chris@82 22046 _ACEOF
Chris@82 22047
Chris@82 22048
Chris@82 22049 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/avx-128-fma/Makefile dft/simd/avx2/Makefile dft/simd/avx2-128/Makefile dft/simd/avx512/Makefile dft/simd/kcvi/Makefile dft/simd/altivec/Makefile dft/simd/vsx/Makefile dft/simd/neon/Makefile dft/simd/generic-simd128/Makefile dft/simd/generic-simd256/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/avx-128-fma/Makefile rdft/simd/avx2/Makefile rdft/simd/avx2-128/Makefile rdft/simd/avx512/Makefile rdft/simd/kcvi/Makefile rdft/simd/altivec/Makefile rdft/simd/vsx/Makefile rdft/simd/neon/Makefile rdft/simd/generic-simd128/Makefile rdft/simd/generic-simd256/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@82 22050
Chris@82 22051
Chris@82 22052 cat >confcache <<\_ACEOF
Chris@82 22053 # This file is a shell script that caches the results of configure
Chris@82 22054 # tests run on this system so they can be shared between configure
Chris@82 22055 # scripts and configure runs, see configure's option --config-cache.
Chris@82 22056 # It is not useful on other systems. If it contains results you don't
Chris@82 22057 # want to keep, you may remove or edit it.
Chris@82 22058 #
Chris@82 22059 # config.status only pays attention to the cache file if you give it
Chris@82 22060 # the --recheck option to rerun configure.
Chris@82 22061 #
Chris@82 22062 # `ac_cv_env_foo' variables (set or unset) will be overridden when
Chris@82 22063 # loading this file, other *unset* `ac_cv_foo' will be assigned the
Chris@82 22064 # following values.
Chris@82 22065
Chris@82 22066 _ACEOF
Chris@82 22067
Chris@82 22068 # The following way of writing the cache mishandles newlines in values,
Chris@82 22069 # but we know of no workaround that is simple, portable, and efficient.
Chris@82 22070 # So, we kill variables containing newlines.
Chris@82 22071 # Ultrix sh set writes to stderr and can't be redirected directly,
Chris@82 22072 # and sets the high bit in the cache file unless we assign to the vars.
Chris@82 22073 (
Chris@82 22074 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
Chris@82 22075 eval ac_val=\$$ac_var
Chris@82 22076 case $ac_val in #(
Chris@82 22077 *${as_nl}*)
Chris@82 22078 case $ac_var in #(
Chris@82 22079 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Chris@82 22080 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Chris@82 22081 esac
Chris@82 22082 case $ac_var in #(
Chris@82 22083 _ | IFS | as_nl) ;; #(
Chris@82 22084 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Chris@82 22085 *) { eval $ac_var=; unset $ac_var;} ;;
Chris@82 22086 esac ;;
Chris@82 22087 esac
Chris@82 22088 done
Chris@82 22089
Chris@82 22090 (set) 2>&1 |
Chris@82 22091 case $as_nl`(ac_space=' '; set) 2>&1` in #(
Chris@82 22092 *${as_nl}ac_space=\ *)
Chris@82 22093 # `set' does not quote correctly, so add quotes: double-quote
Chris@82 22094 # substitution turns \\\\ into \\, and sed turns \\ into \.
Chris@82 22095 sed -n \
Chris@82 22096 "s/'/'\\\\''/g;
Chris@82 22097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Chris@82 22098 ;; #(
Chris@82 22099 *)
Chris@82 22100 # `set' quotes correctly as required by POSIX, so do not add quotes.
Chris@82 22101 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Chris@82 22102 ;;
Chris@82 22103 esac |
Chris@82 22104 sort
Chris@82 22105 ) |
Chris@82 22106 sed '
Chris@82 22107 /^ac_cv_env_/b end
Chris@82 22108 t clear
Chris@82 22109 :clear
Chris@82 22110 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
Chris@82 22111 t end
Chris@82 22112 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
Chris@82 22113 :end' >>confcache
Chris@82 22114 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
Chris@82 22115 if test -w "$cache_file"; then
Chris@82 22116 if test "x$cache_file" != "x/dev/null"; then
Chris@82 22117 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Chris@82 22118 $as_echo "$as_me: updating cache $cache_file" >&6;}
Chris@82 22119 if test ! -f "$cache_file" || test -h "$cache_file"; then
Chris@82 22120 cat confcache >"$cache_file"
Chris@82 22121 else
Chris@82 22122 case $cache_file in #(
Chris@82 22123 */* | ?:*)
Chris@82 22124 mv -f confcache "$cache_file"$$ &&
Chris@82 22125 mv -f "$cache_file"$$ "$cache_file" ;; #(
Chris@82 22126 *)
Chris@82 22127 mv -f confcache "$cache_file" ;;
Chris@82 22128 esac
Chris@82 22129 fi
Chris@82 22130 fi
Chris@82 22131 else
Chris@82 22132 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Chris@82 22133 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Chris@82 22134 fi
Chris@82 22135 fi
Chris@82 22136 rm -f confcache
Chris@82 22137
Chris@82 22138 test "x$prefix" = xNONE && prefix=$ac_default_prefix
Chris@82 22139 # Let make expand exec_prefix.
Chris@82 22140 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
Chris@82 22141
Chris@82 22142 DEFS=-DHAVE_CONFIG_H
Chris@82 22143
Chris@82 22144 ac_libobjs=
Chris@82 22145 ac_ltlibobjs=
Chris@82 22146 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
Chris@82 22147 # 1. Remove the extension, and $U if already installed.
Chris@82 22148 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Chris@82 22149 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Chris@82 22150 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
Chris@82 22151 # will be set to the directory where LIBOBJS objects are built.
Chris@82 22152 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
Chris@82 22153 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Chris@82 22154 done
Chris@82 22155 LIBOBJS=$ac_libobjs
Chris@82 22156
Chris@82 22157 LTLIBOBJS=$ac_ltlibobjs
Chris@82 22158
Chris@82 22159
Chris@82 22160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
Chris@82 22161 $as_echo_n "checking that generated files are newer than configure... " >&6; }
Chris@82 22162 if test -n "$am_sleep_pid"; then
Chris@82 22163 # Hide warnings about reused PIDs.
Chris@82 22164 wait $am_sleep_pid 2>/dev/null
Chris@82 22165 fi
Chris@82 22166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
Chris@82 22167 $as_echo "done" >&6; }
Chris@82 22168 if test -n "$EXEEXT"; then
Chris@82 22169 am__EXEEXT_TRUE=
Chris@82 22170 am__EXEEXT_FALSE='#'
Chris@82 22171 else
Chris@82 22172 am__EXEEXT_TRUE='#'
Chris@82 22173 am__EXEEXT_FALSE=
Chris@82 22174 fi
Chris@82 22175
Chris@82 22176 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
Chris@82 22177 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
Chris@82 22178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@82 22179 fi
Chris@82 22180 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
Chris@82 22181 as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
Chris@82 22182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@82 22183 fi
Chris@82 22184 if test -z "${SINGLE_TRUE}" && test -z "${SINGLE_FALSE}"; then
Chris@82 22185 as_fn_error $? "conditional \"SINGLE\" was never defined.
Chris@82 22186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@82 22187 fi
Chris@82 22188 if test -z "${LDOUBLE_TRUE}" && test -z "${LDOUBLE_FALSE}"; then
Chris@82 22189 as_fn_error $? "conditional \"LDOUBLE\" was never defined.
Chris@82 22190 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@82 22191 fi
Chris@82 22192 if test -z "${QUAD_TRUE}" && test -z "${QUAD_FALSE}"; then
Chris@82 22193 as_fn_error $? "conditional \"QUAD\" was never defined.
Chris@82 22194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@82 22195 fi
Chris@82 22196 if test -z "${HAVE_SSE2_TRUE}" && test -z "${HAVE_SSE2_FALSE}"; then
Chris@82 22197 as_fn_error $? "conditional \"HAVE_SSE2\" was never defined.
Chris@82 22198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@82 22199 fi
Chris@82 22200 if test -z "${HAVE_AVX_TRUE}" && test -z "${HAVE_AVX_FALSE}"; then
Chris@82 22201 as_fn_error $? "conditional \"HAVE_AVX\" was never defined.
Chris@82 22202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@82 22203 fi
Chris@82 22204 if test -z "${HAVE_AVX2_TRUE}" && test -z "${HAVE_AVX2_FALSE}"; then
Chris@82 22205 as_fn_error $? "conditional \"HAVE_AVX2\" was never defined.
Chris@82 22206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@82 22207 fi
Chris@82 22208 if test -z "${HAVE_AVX512_TRUE}" && test -z "${HAVE_AVX512_FALSE}"; then
Chris@82 22209 as_fn_error $? "conditional \"HAVE_AVX512\" was never defined.
Chris@82 22210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@82 22211 fi
Chris@82 22212 if test -z "${HAVE_AVX_128_FMA_TRUE}" && test -z "${HAVE_AVX_128_FMA_FALSE}"; then
Chris@82 22213 as_fn_error $? "conditional \"HAVE_AVX_128_FMA\" was never defined.
Chris@82 22214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@82 22215 fi
Chris@82 22216 if test -z "${HAVE_KCVI_TRUE}" && test -z "${HAVE_KCVI_FALSE}"; then
Chris@82 22217 as_fn_error $? "conditional \"HAVE_KCVI\" was never defined.
Chris@82 22218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@82 22219 fi
Chris@82 22220 if test -z "${HAVE_ALTIVEC_TRUE}" && test -z "${HAVE_ALTIVEC_FALSE}"; then
Chris@82 22221 as_fn_error $? "conditional \"HAVE_ALTIVEC\" was never defined.
Chris@82 22222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@82 22223 fi
Chris@82 22224 if test -z "${HAVE_VSX_TRUE}" && test -z "${HAVE_VSX_FALSE}"; then
Chris@82 22225 as_fn_error $? "conditional \"HAVE_VSX\" was never defined.
Chris@82 22226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@82 22227 fi
Chris@82 22228 if test -z "${HAVE_NEON_TRUE}" && test -z "${HAVE_NEON_FALSE}"; then
Chris@82 22229 as_fn_error $? "conditional \"HAVE_NEON\" was never defined.
Chris@82 22230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@82 22231 fi
Chris@82 22232 if test -z "${HAVE_GENERIC_SIMD128_TRUE}" && test -z "${HAVE_GENERIC_SIMD128_FALSE}"; then
Chris@82 22233 as_fn_error $? "conditional \"HAVE_GENERIC_SIMD128\" was never defined.
Chris@82 22234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@82 22235 fi
Chris@82 22236 if test -z "${HAVE_GENERIC_SIMD256_TRUE}" && test -z "${HAVE_GENERIC_SIMD256_FALSE}"; then
Chris@82 22237 as_fn_error $? "conditional \"HAVE_GENERIC_SIMD256\" was never defined.
Chris@82 22238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@82 22239 fi
Chris@82 22240 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Chris@82 22241 as_fn_error $? "conditional \"AMDEP\" was never defined.
Chris@82 22242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@82 22243 fi
Chris@82 22244 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Chris@82 22245 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Chris@82 22246 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@82 22247 fi
Chris@82 22248 if test -z "${MPI_TRUE}" && test -z "${MPI_FALSE}"; then
Chris@82 22249 as_fn_error $? "conditional \"MPI\" was never defined.
Chris@82 22250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@82 22251 fi
Chris@82 22252 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
Chris@82 22253 as_fn_error $? "conditional \"THREADS\" was never defined.
Chris@82 22254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@82 22255 fi
Chris@82 22256 if test -z "${OPENMP_TRUE}" && test -z "${OPENMP_FALSE}"; then
Chris@82 22257 as_fn_error $? "conditional \"OPENMP\" was never defined.
Chris@82 22258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@82 22259 fi
Chris@82 22260 if test -z "${SMP_TRUE}" && test -z "${SMP_FALSE}"; then
Chris@82 22261 as_fn_error $? "conditional \"SMP\" was never defined.
Chris@82 22262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@82 22263 fi
Chris@82 22264 if test -z "${COMBINED_THREADS_TRUE}" && test -z "${COMBINED_THREADS_FALSE}"; then
Chris@82 22265 as_fn_error $? "conditional \"COMBINED_THREADS\" was never defined.
Chris@82 22266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@82 22267 fi
Chris@82 22268
Chris@82 22269 : "${CONFIG_STATUS=./config.status}"
Chris@82 22270 ac_write_fail=0
Chris@82 22271 ac_clean_files_save=$ac_clean_files
Chris@82 22272 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Chris@82 22273 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Chris@82 22274 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Chris@82 22275 as_write_fail=0
Chris@82 22276 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Chris@82 22277 #! $SHELL
Chris@82 22278 # Generated by $as_me.
Chris@82 22279 # Run this file to recreate the current configuration.
Chris@82 22280 # Compiler output produced by configure, useful for debugging
Chris@82 22281 # configure, is in config.log if it exists.
Chris@82 22282
Chris@82 22283 debug=false
Chris@82 22284 ac_cs_recheck=false
Chris@82 22285 ac_cs_silent=false
Chris@82 22286
Chris@82 22287 SHELL=\${CONFIG_SHELL-$SHELL}
Chris@82 22288 export SHELL
Chris@82 22289 _ASEOF
Chris@82 22290 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
Chris@82 22291 ## -------------------- ##
Chris@82 22292 ## M4sh Initialization. ##
Chris@82 22293 ## -------------------- ##
Chris@82 22294
Chris@82 22295 # Be more Bourne compatible
Chris@82 22296 DUALCASE=1; export DUALCASE # for MKS sh
Chris@82 22297 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Chris@82 22298 emulate sh
Chris@82 22299 NULLCMD=:
Chris@82 22300 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Chris@82 22301 # is contrary to our usage. Disable this feature.
Chris@82 22302 alias -g '${1+"$@"}'='"$@"'
Chris@82 22303 setopt NO_GLOB_SUBST
Chris@82 22304 else
Chris@82 22305 case `(set -o) 2>/dev/null` in #(
Chris@82 22306 *posix*) :
Chris@82 22307 set -o posix ;; #(
Chris@82 22308 *) :
Chris@82 22309 ;;
Chris@82 22310 esac
Chris@82 22311 fi
Chris@82 22312
Chris@82 22313
Chris@82 22314 as_nl='
Chris@82 22315 '
Chris@82 22316 export as_nl
Chris@82 22317 # Printing a long string crashes Solaris 7 /usr/bin/printf.
Chris@82 22318 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@82 22319 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@82 22320 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@82 22321 # Prefer a ksh shell builtin over an external printf program on Solaris,
Chris@82 22322 # but without wasting forks for bash or zsh.
Chris@82 22323 if test -z "$BASH_VERSION$ZSH_VERSION" \
Chris@82 22324 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@82 22325 as_echo='print -r --'
Chris@82 22326 as_echo_n='print -rn --'
Chris@82 22327 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@82 22328 as_echo='printf %s\n'
Chris@82 22329 as_echo_n='printf %s'
Chris@82 22330 else
Chris@82 22331 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
Chris@82 22332 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
Chris@82 22333 as_echo_n='/usr/ucb/echo -n'
Chris@82 22334 else
Chris@82 22335 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
Chris@82 22336 as_echo_n_body='eval
Chris@82 22337 arg=$1;
Chris@82 22338 case $arg in #(
Chris@82 22339 *"$as_nl"*)
Chris@82 22340 expr "X$arg" : "X\\(.*\\)$as_nl";
Chris@82 22341 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
Chris@82 22342 esac;
Chris@82 22343 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
Chris@82 22344 '
Chris@82 22345 export as_echo_n_body
Chris@82 22346 as_echo_n='sh -c $as_echo_n_body as_echo'
Chris@82 22347 fi
Chris@82 22348 export as_echo_body
Chris@82 22349 as_echo='sh -c $as_echo_body as_echo'
Chris@82 22350 fi
Chris@82 22351
Chris@82 22352 # The user is always right.
Chris@82 22353 if test "${PATH_SEPARATOR+set}" != set; then
Chris@82 22354 PATH_SEPARATOR=:
Chris@82 22355 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
Chris@82 22356 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
Chris@82 22357 PATH_SEPARATOR=';'
Chris@82 22358 }
Chris@82 22359 fi
Chris@82 22360
Chris@82 22361
Chris@82 22362 # IFS
Chris@82 22363 # We need space, tab and new line, in precisely that order. Quoting is
Chris@82 22364 # there to prevent editors from complaining about space-tab.
Chris@82 22365 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
Chris@82 22366 # splitting by setting IFS to empty value.)
Chris@82 22367 IFS=" "" $as_nl"
Chris@82 22368
Chris@82 22369 # Find who we are. Look in the path if we contain no directory separator.
Chris@82 22370 as_myself=
Chris@82 22371 case $0 in #((
Chris@82 22372 *[\\/]* ) as_myself=$0 ;;
Chris@82 22373 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@82 22374 for as_dir in $PATH
Chris@82 22375 do
Chris@82 22376 IFS=$as_save_IFS
Chris@82 22377 test -z "$as_dir" && as_dir=.
Chris@82 22378 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
Chris@82 22379 done
Chris@82 22380 IFS=$as_save_IFS
Chris@82 22381
Chris@82 22382 ;;
Chris@82 22383 esac
Chris@82 22384 # We did not find ourselves, most probably we were run as `sh COMMAND'
Chris@82 22385 # in which case we are not to be found in the path.
Chris@82 22386 if test "x$as_myself" = x; then
Chris@82 22387 as_myself=$0
Chris@82 22388 fi
Chris@82 22389 if test ! -f "$as_myself"; then
Chris@82 22390 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Chris@82 22391 exit 1
Chris@82 22392 fi
Chris@82 22393
Chris@82 22394 # Unset variables that we do not need and which cause bugs (e.g. in
Chris@82 22395 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
Chris@82 22396 # suppresses any "Segmentation fault" message there. '((' could
Chris@82 22397 # trigger a bug in pdksh 5.2.14.
Chris@82 22398 for as_var in BASH_ENV ENV MAIL MAILPATH
Chris@82 22399 do eval test x\${$as_var+set} = xset \
Chris@82 22400 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Chris@82 22401 done
Chris@82 22402 PS1='$ '
Chris@82 22403 PS2='> '
Chris@82 22404 PS4='+ '
Chris@82 22405
Chris@82 22406 # NLS nuisances.
Chris@82 22407 LC_ALL=C
Chris@82 22408 export LC_ALL
Chris@82 22409 LANGUAGE=C
Chris@82 22410 export LANGUAGE
Chris@82 22411
Chris@82 22412 # CDPATH.
Chris@82 22413 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@82 22414
Chris@82 22415
Chris@82 22416 # as_fn_error STATUS ERROR [LINENO LOG_FD]
Chris@82 22417 # ----------------------------------------
Chris@82 22418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
Chris@82 22419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Chris@82 22420 # script with STATUS, using 1 if that was 0.
Chris@82 22421 as_fn_error ()
Chris@82 22422 {
Chris@82 22423 as_status=$1; test $as_status -eq 0 && as_status=1
Chris@82 22424 if test "$4"; then
Chris@82 22425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@82 22426 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Chris@82 22427 fi
Chris@82 22428 $as_echo "$as_me: error: $2" >&2
Chris@82 22429 as_fn_exit $as_status
Chris@82 22430 } # as_fn_error
Chris@82 22431
Chris@82 22432
Chris@82 22433 # as_fn_set_status STATUS
Chris@82 22434 # -----------------------
Chris@82 22435 # Set $? to STATUS, without forking.
Chris@82 22436 as_fn_set_status ()
Chris@82 22437 {
Chris@82 22438 return $1
Chris@82 22439 } # as_fn_set_status
Chris@82 22440
Chris@82 22441 # as_fn_exit STATUS
Chris@82 22442 # -----------------
Chris@82 22443 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
Chris@82 22444 as_fn_exit ()
Chris@82 22445 {
Chris@82 22446 set +e
Chris@82 22447 as_fn_set_status $1
Chris@82 22448 exit $1
Chris@82 22449 } # as_fn_exit
Chris@82 22450
Chris@82 22451 # as_fn_unset VAR
Chris@82 22452 # ---------------
Chris@82 22453 # Portably unset VAR.
Chris@82 22454 as_fn_unset ()
Chris@82 22455 {
Chris@82 22456 { eval $1=; unset $1;}
Chris@82 22457 }
Chris@82 22458 as_unset=as_fn_unset
Chris@82 22459 # as_fn_append VAR VALUE
Chris@82 22460 # ----------------------
Chris@82 22461 # Append the text in VALUE to the end of the definition contained in VAR. Take
Chris@82 22462 # advantage of any shell optimizations that allow amortized linear growth over
Chris@82 22463 # repeated appends, instead of the typical quadratic growth present in naive
Chris@82 22464 # implementations.
Chris@82 22465 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
Chris@82 22466 eval 'as_fn_append ()
Chris@82 22467 {
Chris@82 22468 eval $1+=\$2
Chris@82 22469 }'
Chris@82 22470 else
Chris@82 22471 as_fn_append ()
Chris@82 22472 {
Chris@82 22473 eval $1=\$$1\$2
Chris@82 22474 }
Chris@82 22475 fi # as_fn_append
Chris@82 22476
Chris@82 22477 # as_fn_arith ARG...
Chris@82 22478 # ------------------
Chris@82 22479 # Perform arithmetic evaluation on the ARGs, and store the result in the
Chris@82 22480 # global $as_val. Take advantage of shells that can avoid forks. The arguments
Chris@82 22481 # must be portable across $(()) and expr.
Chris@82 22482 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
Chris@82 22483 eval 'as_fn_arith ()
Chris@82 22484 {
Chris@82 22485 as_val=$(( $* ))
Chris@82 22486 }'
Chris@82 22487 else
Chris@82 22488 as_fn_arith ()
Chris@82 22489 {
Chris@82 22490 as_val=`expr "$@" || test $? -eq 1`
Chris@82 22491 }
Chris@82 22492 fi # as_fn_arith
Chris@82 22493
Chris@82 22494
Chris@82 22495 if expr a : '\(a\)' >/dev/null 2>&1 &&
Chris@82 22496 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Chris@82 22497 as_expr=expr
Chris@82 22498 else
Chris@82 22499 as_expr=false
Chris@82 22500 fi
Chris@82 22501
Chris@82 22502 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Chris@82 22503 as_basename=basename
Chris@82 22504 else
Chris@82 22505 as_basename=false
Chris@82 22506 fi
Chris@82 22507
Chris@82 22508 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
Chris@82 22509 as_dirname=dirname
Chris@82 22510 else
Chris@82 22511 as_dirname=false
Chris@82 22512 fi
Chris@82 22513
Chris@82 22514 as_me=`$as_basename -- "$0" ||
Chris@82 22515 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
Chris@82 22516 X"$0" : 'X\(//\)$' \| \
Chris@82 22517 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Chris@82 22518 $as_echo X/"$0" |
Chris@82 22519 sed '/^.*\/\([^/][^/]*\)\/*$/{
Chris@82 22520 s//\1/
Chris@82 22521 q
Chris@82 22522 }
Chris@82 22523 /^X\/\(\/\/\)$/{
Chris@82 22524 s//\1/
Chris@82 22525 q
Chris@82 22526 }
Chris@82 22527 /^X\/\(\/\).*/{
Chris@82 22528 s//\1/
Chris@82 22529 q
Chris@82 22530 }
Chris@82 22531 s/.*/./; q'`
Chris@82 22532
Chris@82 22533 # Avoid depending upon Character Ranges.
Chris@82 22534 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
Chris@82 22535 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
Chris@82 22536 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
Chris@82 22537 as_cr_digits='0123456789'
Chris@82 22538 as_cr_alnum=$as_cr_Letters$as_cr_digits
Chris@82 22539
Chris@82 22540 ECHO_C= ECHO_N= ECHO_T=
Chris@82 22541 case `echo -n x` in #(((((
Chris@82 22542 -n*)
Chris@82 22543 case `echo 'xy\c'` in
Chris@82 22544 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Chris@82 22545 xy) ECHO_C='\c';;
Chris@82 22546 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
Chris@82 22547 ECHO_T=' ';;
Chris@82 22548 esac;;
Chris@82 22549 *)
Chris@82 22550 ECHO_N='-n';;
Chris@82 22551 esac
Chris@82 22552
Chris@82 22553 rm -f conf$$ conf$$.exe conf$$.file
Chris@82 22554 if test -d conf$$.dir; then
Chris@82 22555 rm -f conf$$.dir/conf$$.file
Chris@82 22556 else
Chris@82 22557 rm -f conf$$.dir
Chris@82 22558 mkdir conf$$.dir 2>/dev/null
Chris@82 22559 fi
Chris@82 22560 if (echo >conf$$.file) 2>/dev/null; then
Chris@82 22561 if ln -s conf$$.file conf$$ 2>/dev/null; then
Chris@82 22562 as_ln_s='ln -s'
Chris@82 22563 # ... but there are two gotchas:
Chris@82 22564 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
Chris@82 22565 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Chris@82 22566 # In both cases, we have to default to `cp -pR'.
Chris@82 22567 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Chris@82 22568 as_ln_s='cp -pR'
Chris@82 22569 elif ln conf$$.file conf$$ 2>/dev/null; then
Chris@82 22570 as_ln_s=ln
Chris@82 22571 else
Chris@82 22572 as_ln_s='cp -pR'
Chris@82 22573 fi
Chris@82 22574 else
Chris@82 22575 as_ln_s='cp -pR'
Chris@82 22576 fi
Chris@82 22577 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
Chris@82 22578 rmdir conf$$.dir 2>/dev/null
Chris@82 22579
Chris@82 22580
Chris@82 22581 # as_fn_mkdir_p
Chris@82 22582 # -------------
Chris@82 22583 # Create "$as_dir" as a directory, including parents if necessary.
Chris@82 22584 as_fn_mkdir_p ()
Chris@82 22585 {
Chris@82 22586
Chris@82 22587 case $as_dir in #(
Chris@82 22588 -*) as_dir=./$as_dir;;
Chris@82 22589 esac
Chris@82 22590 test -d "$as_dir" || eval $as_mkdir_p || {
Chris@82 22591 as_dirs=
Chris@82 22592 while :; do
Chris@82 22593 case $as_dir in #(
Chris@82 22594 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Chris@82 22595 *) as_qdir=$as_dir;;
Chris@82 22596 esac
Chris@82 22597 as_dirs="'$as_qdir' $as_dirs"
Chris@82 22598 as_dir=`$as_dirname -- "$as_dir" ||
Chris@82 22599 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@82 22600 X"$as_dir" : 'X\(//\)[^/]' \| \
Chris@82 22601 X"$as_dir" : 'X\(//\)$' \| \
Chris@82 22602 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Chris@82 22603 $as_echo X"$as_dir" |
Chris@82 22604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@82 22605 s//\1/
Chris@82 22606 q
Chris@82 22607 }
Chris@82 22608 /^X\(\/\/\)[^/].*/{
Chris@82 22609 s//\1/
Chris@82 22610 q
Chris@82 22611 }
Chris@82 22612 /^X\(\/\/\)$/{
Chris@82 22613 s//\1/
Chris@82 22614 q
Chris@82 22615 }
Chris@82 22616 /^X\(\/\).*/{
Chris@82 22617 s//\1/
Chris@82 22618 q
Chris@82 22619 }
Chris@82 22620 s/.*/./; q'`
Chris@82 22621 test -d "$as_dir" && break
Chris@82 22622 done
Chris@82 22623 test -z "$as_dirs" || eval "mkdir $as_dirs"
Chris@82 22624 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Chris@82 22625
Chris@82 22626
Chris@82 22627 } # as_fn_mkdir_p
Chris@82 22628 if mkdir -p . 2>/dev/null; then
Chris@82 22629 as_mkdir_p='mkdir -p "$as_dir"'
Chris@82 22630 else
Chris@82 22631 test -d ./-p && rmdir ./-p
Chris@82 22632 as_mkdir_p=false
Chris@82 22633 fi
Chris@82 22634
Chris@82 22635
Chris@82 22636 # as_fn_executable_p FILE
Chris@82 22637 # -----------------------
Chris@82 22638 # Test if FILE is an executable regular file.
Chris@82 22639 as_fn_executable_p ()
Chris@82 22640 {
Chris@82 22641 test -f "$1" && test -x "$1"
Chris@82 22642 } # as_fn_executable_p
Chris@82 22643 as_test_x='test -x'
Chris@82 22644 as_executable_p=as_fn_executable_p
Chris@82 22645
Chris@82 22646 # Sed expression to map a string onto a valid CPP name.
Chris@82 22647 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Chris@82 22648
Chris@82 22649 # Sed expression to map a string onto a valid variable name.
Chris@82 22650 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Chris@82 22651
Chris@82 22652
Chris@82 22653 exec 6>&1
Chris@82 22654 ## ----------------------------------- ##
Chris@82 22655 ## Main body of $CONFIG_STATUS script. ##
Chris@82 22656 ## ----------------------------------- ##
Chris@82 22657 _ASEOF
Chris@82 22658 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Chris@82 22659
Chris@82 22660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@82 22661 # Save the log message, to keep $0 and so on meaningful, and to
Chris@82 22662 # report actual input values of CONFIG_FILES etc. instead of their
Chris@82 22663 # values after options handling.
Chris@82 22664 ac_log="
Chris@82 22665 This file was extended by fftw $as_me 3.3.8, which was
Chris@82 22666 generated by GNU Autoconf 2.69. Invocation command line was
Chris@82 22667
Chris@82 22668 CONFIG_FILES = $CONFIG_FILES
Chris@82 22669 CONFIG_HEADERS = $CONFIG_HEADERS
Chris@82 22670 CONFIG_LINKS = $CONFIG_LINKS
Chris@82 22671 CONFIG_COMMANDS = $CONFIG_COMMANDS
Chris@82 22672 $ $0 $@
Chris@82 22673
Chris@82 22674 on `(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@82 22675 "
Chris@82 22676
Chris@82 22677 _ACEOF
Chris@82 22678
Chris@82 22679 case $ac_config_files in *"
Chris@82 22680 "*) set x $ac_config_files; shift; ac_config_files=$*;;
Chris@82 22681 esac
Chris@82 22682
Chris@82 22683 case $ac_config_headers in *"
Chris@82 22684 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
Chris@82 22685 esac
Chris@82 22686
Chris@82 22687
Chris@82 22688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@82 22689 # Files that config.status was made for.
Chris@82 22690 config_files="$ac_config_files"
Chris@82 22691 config_headers="$ac_config_headers"
Chris@82 22692 config_commands="$ac_config_commands"
Chris@82 22693
Chris@82 22694 _ACEOF
Chris@82 22695
Chris@82 22696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@82 22697 ac_cs_usage="\
Chris@82 22698 \`$as_me' instantiates files and other configuration actions
Chris@82 22699 from templates according to the current configuration. Unless the files
Chris@82 22700 and actions are specified as TAGs, all are instantiated by default.
Chris@82 22701
Chris@82 22702 Usage: $0 [OPTION]... [TAG]...
Chris@82 22703
Chris@82 22704 -h, --help print this help, then exit
Chris@82 22705 -V, --version print version number and configuration settings, then exit
Chris@82 22706 --config print configuration, then exit
Chris@82 22707 -q, --quiet, --silent
Chris@82 22708 do not print progress messages
Chris@82 22709 -d, --debug don't remove temporary files
Chris@82 22710 --recheck update $as_me by reconfiguring in the same conditions
Chris@82 22711 --file=FILE[:TEMPLATE]
Chris@82 22712 instantiate the configuration file FILE
Chris@82 22713 --header=FILE[:TEMPLATE]
Chris@82 22714 instantiate the configuration header FILE
Chris@82 22715
Chris@82 22716 Configuration files:
Chris@82 22717 $config_files
Chris@82 22718
Chris@82 22719 Configuration headers:
Chris@82 22720 $config_headers
Chris@82 22721
Chris@82 22722 Configuration commands:
Chris@82 22723 $config_commands
Chris@82 22724
Chris@82 22725 Report bugs to <fftw@fftw.org>."
Chris@82 22726
Chris@82 22727 _ACEOF
Chris@82 22728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@82 22729 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Chris@82 22730 ac_cs_version="\\
Chris@82 22731 fftw config.status 3.3.8
Chris@82 22732 configured by $0, generated by GNU Autoconf 2.69,
Chris@82 22733 with options \\"\$ac_cs_config\\"
Chris@82 22734
Chris@82 22735 Copyright (C) 2012 Free Software Foundation, Inc.
Chris@82 22736 This config.status script is free software; the Free Software Foundation
Chris@82 22737 gives unlimited permission to copy, distribute and modify it."
Chris@82 22738
Chris@82 22739 ac_pwd='$ac_pwd'
Chris@82 22740 srcdir='$srcdir'
Chris@82 22741 INSTALL='$INSTALL'
Chris@82 22742 MKDIR_P='$MKDIR_P'
Chris@82 22743 AWK='$AWK'
Chris@82 22744 test -n "\$AWK" || AWK=awk
Chris@82 22745 _ACEOF
Chris@82 22746
Chris@82 22747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@82 22748 # The default lists apply if the user does not specify any file.
Chris@82 22749 ac_need_defaults=:
Chris@82 22750 while test $# != 0
Chris@82 22751 do
Chris@82 22752 case $1 in
Chris@82 22753 --*=?*)
Chris@82 22754 ac_option=`expr "X$1" : 'X\([^=]*\)='`
Chris@82 22755 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Chris@82 22756 ac_shift=:
Chris@82 22757 ;;
Chris@82 22758 --*=)
Chris@82 22759 ac_option=`expr "X$1" : 'X\([^=]*\)='`
Chris@82 22760 ac_optarg=
Chris@82 22761 ac_shift=:
Chris@82 22762 ;;
Chris@82 22763 *)
Chris@82 22764 ac_option=$1
Chris@82 22765 ac_optarg=$2
Chris@82 22766 ac_shift=shift
Chris@82 22767 ;;
Chris@82 22768 esac
Chris@82 22769
Chris@82 22770 case $ac_option in
Chris@82 22771 # Handling of the options.
Chris@82 22772 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Chris@82 22773 ac_cs_recheck=: ;;
Chris@82 22774 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Chris@82 22775 $as_echo "$ac_cs_version"; exit ;;
Chris@82 22776 --config | --confi | --conf | --con | --co | --c )
Chris@82 22777 $as_echo "$ac_cs_config"; exit ;;
Chris@82 22778 --debug | --debu | --deb | --de | --d | -d )
Chris@82 22779 debug=: ;;
Chris@82 22780 --file | --fil | --fi | --f )
Chris@82 22781 $ac_shift
Chris@82 22782 case $ac_optarg in
Chris@82 22783 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@82 22784 '') as_fn_error $? "missing file argument" ;;
Chris@82 22785 esac
Chris@82 22786 as_fn_append CONFIG_FILES " '$ac_optarg'"
Chris@82 22787 ac_need_defaults=false;;
Chris@82 22788 --header | --heade | --head | --hea )
Chris@82 22789 $ac_shift
Chris@82 22790 case $ac_optarg in
Chris@82 22791 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@82 22792 esac
Chris@82 22793 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Chris@82 22794 ac_need_defaults=false;;
Chris@82 22795 --he | --h)
Chris@82 22796 # Conflict between --help and --header
Chris@82 22797 as_fn_error $? "ambiguous option: \`$1'
Chris@82 22798 Try \`$0 --help' for more information.";;
Chris@82 22799 --help | --hel | -h )
Chris@82 22800 $as_echo "$ac_cs_usage"; exit ;;
Chris@82 22801 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@82 22802 | -silent | --silent | --silen | --sile | --sil | --si | --s)
Chris@82 22803 ac_cs_silent=: ;;
Chris@82 22804
Chris@82 22805 # This is an error.
Chris@82 22806 -*) as_fn_error $? "unrecognized option: \`$1'
Chris@82 22807 Try \`$0 --help' for more information." ;;
Chris@82 22808
Chris@82 22809 *) as_fn_append ac_config_targets " $1"
Chris@82 22810 ac_need_defaults=false ;;
Chris@82 22811
Chris@82 22812 esac
Chris@82 22813 shift
Chris@82 22814 done
Chris@82 22815
Chris@82 22816 ac_configure_extra_args=
Chris@82 22817
Chris@82 22818 if $ac_cs_silent; then
Chris@82 22819 exec 6>/dev/null
Chris@82 22820 ac_configure_extra_args="$ac_configure_extra_args --silent"
Chris@82 22821 fi
Chris@82 22822
Chris@82 22823 _ACEOF
Chris@82 22824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@82 22825 if \$ac_cs_recheck; then
Chris@82 22826 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Chris@82 22827 shift
Chris@82 22828 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
Chris@82 22829 CONFIG_SHELL='$SHELL'
Chris@82 22830 export CONFIG_SHELL
Chris@82 22831 exec "\$@"
Chris@82 22832 fi
Chris@82 22833
Chris@82 22834 _ACEOF
Chris@82 22835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@82 22836 exec 5>>config.log
Chris@82 22837 {
Chris@82 22838 echo
Chris@82 22839 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
Chris@82 22840 ## Running $as_me. ##
Chris@82 22841 _ASBOX
Chris@82 22842 $as_echo "$ac_log"
Chris@82 22843 } >&5
Chris@82 22844
Chris@82 22845 _ACEOF
Chris@82 22846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@82 22847 #
Chris@82 22848 # INIT-COMMANDS
Chris@82 22849 #
Chris@82 22850 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
Chris@82 22851
Chris@82 22852
Chris@82 22853 # The HP-UX ksh and POSIX shell print the target directory to stdout
Chris@82 22854 # if CDPATH is set.
Chris@82 22855 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@82 22856
Chris@82 22857 sed_quote_subst='$sed_quote_subst'
Chris@82 22858 double_quote_subst='$double_quote_subst'
Chris@82 22859 delay_variable_subst='$delay_variable_subst'
Chris@82 22860 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
Chris@82 22861 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
Chris@82 22862 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
Chris@82 22863 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
Chris@82 22864 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
Chris@82 22865 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
Chris@82 22866 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
Chris@82 22867 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
Chris@82 22868 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
Chris@82 22869 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
Chris@82 22870 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
Chris@82 22871 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
Chris@82 22872 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
Chris@82 22873 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
Chris@82 22874 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
Chris@82 22875 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
Chris@82 22876 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
Chris@82 22877 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
Chris@82 22878 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
Chris@82 22879 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
Chris@82 22880 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
Chris@82 22881 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
Chris@82 22882 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
Chris@82 22883 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
Chris@82 22884 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
Chris@82 22885 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
Chris@82 22886 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
Chris@82 22887 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
Chris@82 22888 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
Chris@82 22889 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
Chris@82 22890 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
Chris@82 22891 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
Chris@82 22892 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
Chris@82 22893 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
Chris@82 22894 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
Chris@82 22895 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
Chris@82 22896 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
Chris@82 22897 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
Chris@82 22898 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
Chris@82 22899 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
Chris@82 22900 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
Chris@82 22901 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
Chris@82 22902 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
Chris@82 22903 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
Chris@82 22904 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
Chris@82 22905 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
Chris@82 22906 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
Chris@82 22907 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@82 22908 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@82 22909 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
Chris@82 22910 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
Chris@82 22911 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
Chris@82 22912 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
Chris@82 22913 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
Chris@82 22914 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
Chris@82 22915 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
Chris@82 22916 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
Chris@82 22917 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
Chris@82 22918 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@82 22919 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@82 22920 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
Chris@82 22921 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
Chris@82 22922 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
Chris@82 22923 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
Chris@82 22924 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
Chris@82 22925 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
Chris@82 22926 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
Chris@82 22927 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
Chris@82 22928 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
Chris@82 22929 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
Chris@82 22930 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
Chris@82 22931 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
Chris@82 22932 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
Chris@82 22933 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
Chris@82 22934 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
Chris@82 22935 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
Chris@82 22936 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
Chris@82 22937 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
Chris@82 22938 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
Chris@82 22939 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
Chris@82 22940 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
Chris@82 22941 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
Chris@82 22942 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
Chris@82 22943 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
Chris@82 22944 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
Chris@82 22945 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
Chris@82 22946 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
Chris@82 22947 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
Chris@82 22948 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
Chris@82 22949 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
Chris@82 22950 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
Chris@82 22951 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
Chris@82 22952 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
Chris@82 22953 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
Chris@82 22954 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
Chris@82 22955 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
Chris@82 22956 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
Chris@82 22957 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
Chris@82 22958 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
Chris@82 22959 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
Chris@82 22960 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
Chris@82 22961 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
Chris@82 22962 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
Chris@82 22963 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
Chris@82 22964 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
Chris@82 22965 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
Chris@82 22966 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
Chris@82 22967 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
Chris@82 22968 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
Chris@82 22969 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
Chris@82 22970 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
Chris@82 22971 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
Chris@82 22972 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
Chris@82 22973 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
Chris@82 22974 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
Chris@82 22975 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
Chris@82 22976 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
Chris@82 22977 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
Chris@82 22978 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
Chris@82 22979 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
Chris@82 22980 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
Chris@82 22981 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
Chris@82 22982 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@82 22983 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@82 22984 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
Chris@82 22985 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
Chris@82 22986 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
Chris@82 22987 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
Chris@82 22988 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
Chris@82 22989 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
Chris@82 22990 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
Chris@82 22991 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
Chris@82 22992 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
Chris@82 22993 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
Chris@82 22994 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
Chris@82 22995 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
Chris@82 22996 LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 22997 reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 22998 reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 22999 old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23000 compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23001 GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23002 lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23003 lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23004 lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23005 lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23006 lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23007 archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23008 enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23009 export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23010 whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23011 compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23012 old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23013 old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23014 archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23015 archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23016 module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23017 module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23018 with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23019 allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23020 no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23021 hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23022 hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23023 hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23024 hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23025 hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23026 hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23027 hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23028 inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23029 link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23030 always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23031 export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23032 exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23033 include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23034 prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23035 postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23036 file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23037 hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
Chris@82 23038
Chris@82 23039 LTCC='$LTCC'
Chris@82 23040 LTCFLAGS='$LTCFLAGS'
Chris@82 23041 compiler='$compiler_DEFAULT'
Chris@82 23042
Chris@82 23043 # A function that is used when there is no print builtin or printf.
Chris@82 23044 func_fallback_echo ()
Chris@82 23045 {
Chris@82 23046 eval 'cat <<_LTECHO_EOF
Chris@82 23047 \$1
Chris@82 23048 _LTECHO_EOF'
Chris@82 23049 }
Chris@82 23050
Chris@82 23051 # Quote evaled strings.
Chris@82 23052 for var in AS \
Chris@82 23053 DLLTOOL \
Chris@82 23054 OBJDUMP \
Chris@82 23055 SHELL \
Chris@82 23056 ECHO \
Chris@82 23057 PATH_SEPARATOR \
Chris@82 23058 SED \
Chris@82 23059 GREP \
Chris@82 23060 EGREP \
Chris@82 23061 FGREP \
Chris@82 23062 LD \
Chris@82 23063 NM \
Chris@82 23064 LN_S \
Chris@82 23065 lt_SP2NL \
Chris@82 23066 lt_NL2SP \
Chris@82 23067 reload_flag \
Chris@82 23068 deplibs_check_method \
Chris@82 23069 file_magic_cmd \
Chris@82 23070 file_magic_glob \
Chris@82 23071 want_nocaseglob \
Chris@82 23072 sharedlib_from_linklib_cmd \
Chris@82 23073 AR \
Chris@82 23074 AR_FLAGS \
Chris@82 23075 archiver_list_spec \
Chris@82 23076 STRIP \
Chris@82 23077 RANLIB \
Chris@82 23078 CC \
Chris@82 23079 CFLAGS \
Chris@82 23080 compiler \
Chris@82 23081 lt_cv_sys_global_symbol_pipe \
Chris@82 23082 lt_cv_sys_global_symbol_to_cdecl \
Chris@82 23083 lt_cv_sys_global_symbol_to_import \
Chris@82 23084 lt_cv_sys_global_symbol_to_c_name_address \
Chris@82 23085 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Chris@82 23086 lt_cv_nm_interface \
Chris@82 23087 nm_file_list_spec \
Chris@82 23088 lt_cv_truncate_bin \
Chris@82 23089 lt_prog_compiler_no_builtin_flag \
Chris@82 23090 lt_prog_compiler_pic \
Chris@82 23091 lt_prog_compiler_wl \
Chris@82 23092 lt_prog_compiler_static \
Chris@82 23093 lt_cv_prog_compiler_c_o \
Chris@82 23094 need_locks \
Chris@82 23095 MANIFEST_TOOL \
Chris@82 23096 DSYMUTIL \
Chris@82 23097 NMEDIT \
Chris@82 23098 LIPO \
Chris@82 23099 OTOOL \
Chris@82 23100 OTOOL64 \
Chris@82 23101 shrext_cmds \
Chris@82 23102 export_dynamic_flag_spec \
Chris@82 23103 whole_archive_flag_spec \
Chris@82 23104 compiler_needs_object \
Chris@82 23105 with_gnu_ld \
Chris@82 23106 allow_undefined_flag \
Chris@82 23107 no_undefined_flag \
Chris@82 23108 hardcode_libdir_flag_spec \
Chris@82 23109 hardcode_libdir_separator \
Chris@82 23110 exclude_expsyms \
Chris@82 23111 include_expsyms \
Chris@82 23112 file_list_spec \
Chris@82 23113 variables_saved_for_relink \
Chris@82 23114 libname_spec \
Chris@82 23115 library_names_spec \
Chris@82 23116 soname_spec \
Chris@82 23117 install_override_mode \
Chris@82 23118 finish_eval \
Chris@82 23119 old_striplib \
Chris@82 23120 striplib \
Chris@82 23121 LD_F77 \
Chris@82 23122 reload_flag_F77 \
Chris@82 23123 compiler_F77 \
Chris@82 23124 lt_prog_compiler_no_builtin_flag_F77 \
Chris@82 23125 lt_prog_compiler_pic_F77 \
Chris@82 23126 lt_prog_compiler_wl_F77 \
Chris@82 23127 lt_prog_compiler_static_F77 \
Chris@82 23128 lt_cv_prog_compiler_c_o_F77 \
Chris@82 23129 export_dynamic_flag_spec_F77 \
Chris@82 23130 whole_archive_flag_spec_F77 \
Chris@82 23131 compiler_needs_object_F77 \
Chris@82 23132 with_gnu_ld_F77 \
Chris@82 23133 allow_undefined_flag_F77 \
Chris@82 23134 no_undefined_flag_F77 \
Chris@82 23135 hardcode_libdir_flag_spec_F77 \
Chris@82 23136 hardcode_libdir_separator_F77 \
Chris@82 23137 exclude_expsyms_F77 \
Chris@82 23138 include_expsyms_F77 \
Chris@82 23139 file_list_spec_F77; do
Chris@82 23140 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Chris@82 23141 *[\\\\\\\`\\"\\\$]*)
Chris@82 23142 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
Chris@82 23143 ;;
Chris@82 23144 *)
Chris@82 23145 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
Chris@82 23146 ;;
Chris@82 23147 esac
Chris@82 23148 done
Chris@82 23149
Chris@82 23150 # Double-quote double-evaled strings.
Chris@82 23151 for var in reload_cmds \
Chris@82 23152 old_postinstall_cmds \
Chris@82 23153 old_postuninstall_cmds \
Chris@82 23154 old_archive_cmds \
Chris@82 23155 extract_expsyms_cmds \
Chris@82 23156 old_archive_from_new_cmds \
Chris@82 23157 old_archive_from_expsyms_cmds \
Chris@82 23158 archive_cmds \
Chris@82 23159 archive_expsym_cmds \
Chris@82 23160 module_cmds \
Chris@82 23161 module_expsym_cmds \
Chris@82 23162 export_symbols_cmds \
Chris@82 23163 prelink_cmds \
Chris@82 23164 postlink_cmds \
Chris@82 23165 postinstall_cmds \
Chris@82 23166 postuninstall_cmds \
Chris@82 23167 finish_cmds \
Chris@82 23168 sys_lib_search_path_spec \
Chris@82 23169 configure_time_dlsearch_path \
Chris@82 23170 configure_time_lt_sys_library_path \
Chris@82 23171 reload_cmds_F77 \
Chris@82 23172 old_archive_cmds_F77 \
Chris@82 23173 old_archive_from_new_cmds_F77 \
Chris@82 23174 old_archive_from_expsyms_cmds_F77 \
Chris@82 23175 archive_cmds_F77 \
Chris@82 23176 archive_expsym_cmds_F77 \
Chris@82 23177 module_cmds_F77 \
Chris@82 23178 module_expsym_cmds_F77 \
Chris@82 23179 export_symbols_cmds_F77 \
Chris@82 23180 prelink_cmds_F77 \
Chris@82 23181 postlink_cmds_F77; do
Chris@82 23182 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Chris@82 23183 *[\\\\\\\`\\"\\\$]*)
Chris@82 23184 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
Chris@82 23185 ;;
Chris@82 23186 *)
Chris@82 23187 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
Chris@82 23188 ;;
Chris@82 23189 esac
Chris@82 23190 done
Chris@82 23191
Chris@82 23192 ac_aux_dir='$ac_aux_dir'
Chris@82 23193
Chris@82 23194 # See if we are running on zsh, and set the options that allow our
Chris@82 23195 # commands through without removal of \ escapes INIT.
Chris@82 23196 if test -n "\${ZSH_VERSION+set}"; then
Chris@82 23197 setopt NO_GLOB_SUBST
Chris@82 23198 fi
Chris@82 23199
Chris@82 23200
Chris@82 23201 PACKAGE='$PACKAGE'
Chris@82 23202 VERSION='$VERSION'
Chris@82 23203 RM='$RM'
Chris@82 23204 ofile='$ofile'
Chris@82 23205
Chris@82 23206
Chris@82 23207
Chris@82 23208
Chris@82 23209
Chris@82 23210
Chris@82 23211 _ACEOF
Chris@82 23212
Chris@82 23213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@82 23214
Chris@82 23215 # Handling of arguments.
Chris@82 23216 for ac_config_target in $ac_config_targets
Chris@82 23217 do
Chris@82 23218 case $ac_config_target in
Chris@82 23219 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
Chris@82 23220 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Chris@82 23221 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Chris@82 23222 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Chris@82 23223 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
Chris@82 23224 "genfft/Makefile") CONFIG_FILES="$CONFIG_FILES genfft/Makefile" ;;
Chris@82 23225 "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
Chris@82 23226 "simd-support/Makefile") CONFIG_FILES="$CONFIG_FILES simd-support/Makefile" ;;
Chris@82 23227 "dft/Makefile") CONFIG_FILES="$CONFIG_FILES dft/Makefile" ;;
Chris@82 23228 "dft/scalar/Makefile") CONFIG_FILES="$CONFIG_FILES dft/scalar/Makefile" ;;
Chris@82 23229 "dft/scalar/codelets/Makefile") CONFIG_FILES="$CONFIG_FILES dft/scalar/codelets/Makefile" ;;
Chris@82 23230 "dft/simd/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/Makefile" ;;
Chris@82 23231 "dft/simd/common/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/common/Makefile" ;;
Chris@82 23232 "dft/simd/sse2/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/sse2/Makefile" ;;
Chris@82 23233 "dft/simd/avx/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx/Makefile" ;;
Chris@82 23234 "dft/simd/avx-128-fma/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx-128-fma/Makefile" ;;
Chris@82 23235 "dft/simd/avx2/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx2/Makefile" ;;
Chris@82 23236 "dft/simd/avx2-128/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx2-128/Makefile" ;;
Chris@82 23237 "dft/simd/avx512/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx512/Makefile" ;;
Chris@82 23238 "dft/simd/kcvi/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/kcvi/Makefile" ;;
Chris@82 23239 "dft/simd/altivec/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/altivec/Makefile" ;;
Chris@82 23240 "dft/simd/vsx/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/vsx/Makefile" ;;
Chris@82 23241 "dft/simd/neon/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/neon/Makefile" ;;
Chris@82 23242 "dft/simd/generic-simd128/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/generic-simd128/Makefile" ;;
Chris@82 23243 "dft/simd/generic-simd256/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/generic-simd256/Makefile" ;;
Chris@82 23244 "rdft/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/Makefile" ;;
Chris@82 23245 "rdft/scalar/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/Makefile" ;;
Chris@82 23246 "rdft/scalar/r2cf/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/r2cf/Makefile" ;;
Chris@82 23247 "rdft/scalar/r2cb/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/r2cb/Makefile" ;;
Chris@82 23248 "rdft/scalar/r2r/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/r2r/Makefile" ;;
Chris@82 23249 "rdft/simd/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/Makefile" ;;
Chris@82 23250 "rdft/simd/common/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/common/Makefile" ;;
Chris@82 23251 "rdft/simd/sse2/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/sse2/Makefile" ;;
Chris@82 23252 "rdft/simd/avx/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx/Makefile" ;;
Chris@82 23253 "rdft/simd/avx-128-fma/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx-128-fma/Makefile" ;;
Chris@82 23254 "rdft/simd/avx2/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx2/Makefile" ;;
Chris@82 23255 "rdft/simd/avx2-128/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx2-128/Makefile" ;;
Chris@82 23256 "rdft/simd/avx512/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx512/Makefile" ;;
Chris@82 23257 "rdft/simd/kcvi/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/kcvi/Makefile" ;;
Chris@82 23258 "rdft/simd/altivec/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/altivec/Makefile" ;;
Chris@82 23259 "rdft/simd/vsx/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/vsx/Makefile" ;;
Chris@82 23260 "rdft/simd/neon/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/neon/Makefile" ;;
Chris@82 23261 "rdft/simd/generic-simd128/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/generic-simd128/Makefile" ;;
Chris@82 23262 "rdft/simd/generic-simd256/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/generic-simd256/Makefile" ;;
Chris@82 23263 "reodft/Makefile") CONFIG_FILES="$CONFIG_FILES reodft/Makefile" ;;
Chris@82 23264 "threads/Makefile") CONFIG_FILES="$CONFIG_FILES threads/Makefile" ;;
Chris@82 23265 "api/Makefile") CONFIG_FILES="$CONFIG_FILES api/Makefile" ;;
Chris@82 23266 "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;;
Chris@82 23267 "libbench2/Makefile") CONFIG_FILES="$CONFIG_FILES libbench2/Makefile" ;;
Chris@82 23268 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
Chris@82 23269 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
Chris@82 23270 "doc/FAQ/Makefile") CONFIG_FILES="$CONFIG_FILES doc/FAQ/Makefile" ;;
Chris@82 23271 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
Chris@82 23272 "tools/fftw_wisdom.1") CONFIG_FILES="$CONFIG_FILES tools/fftw_wisdom.1" ;;
Chris@82 23273 "tools/fftw-wisdom-to-conf") CONFIG_FILES="$CONFIG_FILES tools/fftw-wisdom-to-conf" ;;
Chris@82 23274 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
Chris@82 23275 "fftw.pc") CONFIG_FILES="$CONFIG_FILES fftw.pc" ;;
Chris@82 23276
Chris@82 23277 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Chris@82 23278 esac
Chris@82 23279 done
Chris@82 23280
Chris@82 23281
Chris@82 23282 # If the user did not use the arguments to specify the items to instantiate,
Chris@82 23283 # then the envvar interface is used. Set only those that are not.
Chris@82 23284 # We use the long form for the default assignment because of an extremely
Chris@82 23285 # bizarre bug on SunOS 4.1.3.
Chris@82 23286 if $ac_need_defaults; then
Chris@82 23287 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Chris@82 23288 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Chris@82 23289 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
Chris@82 23290 fi
Chris@82 23291
Chris@82 23292 # Have a temporary directory for convenience. Make it in the build tree
Chris@82 23293 # simply because there is no reason against having it here, and in addition,
Chris@82 23294 # creating and moving files from /tmp can sometimes cause problems.
Chris@82 23295 # Hook for its removal unless debugging.
Chris@82 23296 # Note that there is a small window in which the directory will not be cleaned:
Chris@82 23297 # after its creation but before its name has been assigned to `$tmp'.
Chris@82 23298 $debug ||
Chris@82 23299 {
Chris@82 23300 tmp= ac_tmp=
Chris@82 23301 trap 'exit_status=$?
Chris@82 23302 : "${ac_tmp:=$tmp}"
Chris@82 23303 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Chris@82 23304 ' 0
Chris@82 23305 trap 'as_fn_exit 1' 1 2 13 15
Chris@82 23306 }
Chris@82 23307 # Create a (secure) tmp directory for tmp files.
Chris@82 23308
Chris@82 23309 {
Chris@82 23310 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Chris@82 23311 test -d "$tmp"
Chris@82 23312 } ||
Chris@82 23313 {
Chris@82 23314 tmp=./conf$$-$RANDOM
Chris@82 23315 (umask 077 && mkdir "$tmp")
Chris@82 23316 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Chris@82 23317 ac_tmp=$tmp
Chris@82 23318
Chris@82 23319 # Set up the scripts for CONFIG_FILES section.
Chris@82 23320 # No need to generate them if there are no CONFIG_FILES.
Chris@82 23321 # This happens for instance with `./config.status config.h'.
Chris@82 23322 if test -n "$CONFIG_FILES"; then
Chris@82 23323
Chris@82 23324
Chris@82 23325 ac_cr=`echo X | tr X '\015'`
Chris@82 23326 # On cygwin, bash can eat \r inside `` if the user requested igncr.
Chris@82 23327 # But we know of no other shell where ac_cr would be empty at this
Chris@82 23328 # point, so we can use a bashism as a fallback.
Chris@82 23329 if test "x$ac_cr" = x; then
Chris@82 23330 eval ac_cr=\$\'\\r\'
Chris@82 23331 fi
Chris@82 23332 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
Chris@82 23333 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Chris@82 23334 ac_cs_awk_cr='\\r'
Chris@82 23335 else
Chris@82 23336 ac_cs_awk_cr=$ac_cr
Chris@82 23337 fi
Chris@82 23338
Chris@82 23339 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Chris@82 23340 _ACEOF
Chris@82 23341
Chris@82 23342
Chris@82 23343 {
Chris@82 23344 echo "cat >conf$$subs.awk <<_ACEOF" &&
Chris@82 23345 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
Chris@82 23346 echo "_ACEOF"
Chris@82 23347 } >conf$$subs.sh ||
Chris@82 23348 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@82 23349 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Chris@82 23350 ac_delim='%!_!# '
Chris@82 23351 for ac_last_try in false false false false false :; do
Chris@82 23352 . ./conf$$subs.sh ||
Chris@82 23353 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@82 23354
Chris@82 23355 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
Chris@82 23356 if test $ac_delim_n = $ac_delim_num; then
Chris@82 23357 break
Chris@82 23358 elif $ac_last_try; then
Chris@82 23359 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@82 23360 else
Chris@82 23361 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Chris@82 23362 fi
Chris@82 23363 done
Chris@82 23364 rm -f conf$$subs.sh
Chris@82 23365
Chris@82 23366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@82 23367 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Chris@82 23368 _ACEOF
Chris@82 23369 sed -n '
Chris@82 23370 h
Chris@82 23371 s/^/S["/; s/!.*/"]=/
Chris@82 23372 p
Chris@82 23373 g
Chris@82 23374 s/^[^!]*!//
Chris@82 23375 :repl
Chris@82 23376 t repl
Chris@82 23377 s/'"$ac_delim"'$//
Chris@82 23378 t delim
Chris@82 23379 :nl
Chris@82 23380 h
Chris@82 23381 s/\(.\{148\}\)..*/\1/
Chris@82 23382 t more1
Chris@82 23383 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
Chris@82 23384 p
Chris@82 23385 n
Chris@82 23386 b repl
Chris@82 23387 :more1
Chris@82 23388 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
Chris@82 23389 p
Chris@82 23390 g
Chris@82 23391 s/.\{148\}//
Chris@82 23392 t nl
Chris@82 23393 :delim
Chris@82 23394 h
Chris@82 23395 s/\(.\{148\}\)..*/\1/
Chris@82 23396 t more2
Chris@82 23397 s/["\\]/\\&/g; s/^/"/; s/$/"/
Chris@82 23398 p
Chris@82 23399 b
Chris@82 23400 :more2
Chris@82 23401 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
Chris@82 23402 p
Chris@82 23403 g
Chris@82 23404 s/.\{148\}//
Chris@82 23405 t delim
Chris@82 23406 ' <conf$$subs.awk | sed '
Chris@82 23407 /^[^""]/{
Chris@82 23408 N
Chris@82 23409 s/\n//
Chris@82 23410 }
Chris@82 23411 ' >>$CONFIG_STATUS || ac_write_fail=1
Chris@82 23412 rm -f conf$$subs.awk
Chris@82 23413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@82 23414 _ACAWK
Chris@82 23415 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Chris@82 23416 for (key in S) S_is_set[key] = 1
Chris@82 23417 FS = ""
Chris@82 23418
Chris@82 23419 }
Chris@82 23420 {
Chris@82 23421 line = $ 0
Chris@82 23422 nfields = split(line, field, "@")
Chris@82 23423 substed = 0
Chris@82 23424 len = length(field[1])
Chris@82 23425 for (i = 2; i < nfields; i++) {
Chris@82 23426 key = field[i]
Chris@82 23427 keylen = length(key)
Chris@82 23428 if (S_is_set[key]) {
Chris@82 23429 value = S[key]
Chris@82 23430 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
Chris@82 23431 len += length(value) + length(field[++i])
Chris@82 23432 substed = 1
Chris@82 23433 } else
Chris@82 23434 len += 1 + keylen
Chris@82 23435 }
Chris@82 23436
Chris@82 23437 print line
Chris@82 23438 }
Chris@82 23439
Chris@82 23440 _ACAWK
Chris@82 23441 _ACEOF
Chris@82 23442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@82 23443 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
Chris@82 23444 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
Chris@82 23445 else
Chris@82 23446 cat
Chris@82 23447 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
Chris@82 23448 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Chris@82 23449 _ACEOF
Chris@82 23450
Chris@82 23451 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
Chris@82 23452 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Chris@82 23453 # trailing colons and then remove the whole line if VPATH becomes empty
Chris@82 23454 # (actually we leave an empty line to preserve line numbers).
Chris@82 23455 if test "x$srcdir" = x.; then
Chris@82 23456 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
Chris@82 23457 h
Chris@82 23458 s///
Chris@82 23459 s/^/:/
Chris@82 23460 s/[ ]*$/:/
Chris@82 23461 s/:\$(srcdir):/:/g
Chris@82 23462 s/:\${srcdir}:/:/g
Chris@82 23463 s/:@srcdir@:/:/g
Chris@82 23464 s/^:*//
Chris@82 23465 s/:*$//
Chris@82 23466 x
Chris@82 23467 s/\(=[ ]*\).*/\1/
Chris@82 23468 G
Chris@82 23469 s/\n//
Chris@82 23470 s/^[^=]*=[ ]*$//
Chris@82 23471 }'
Chris@82 23472 fi
Chris@82 23473
Chris@82 23474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@82 23475 fi # test -n "$CONFIG_FILES"
Chris@82 23476
Chris@82 23477 # Set up the scripts for CONFIG_HEADERS section.
Chris@82 23478 # No need to generate them if there are no CONFIG_HEADERS.
Chris@82 23479 # This happens for instance with `./config.status Makefile'.
Chris@82 23480 if test -n "$CONFIG_HEADERS"; then
Chris@82 23481 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Chris@82 23482 BEGIN {
Chris@82 23483 _ACEOF
Chris@82 23484
Chris@82 23485 # Transform confdefs.h into an awk script `defines.awk', embedded as
Chris@82 23486 # here-document in config.status, that substitutes the proper values into
Chris@82 23487 # config.h.in to produce config.h.
Chris@82 23488
Chris@82 23489 # Create a delimiter string that does not exist in confdefs.h, to ease
Chris@82 23490 # handling of long lines.
Chris@82 23491 ac_delim='%!_!# '
Chris@82 23492 for ac_last_try in false false :; do
Chris@82 23493 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
Chris@82 23494 if test -z "$ac_tt"; then
Chris@82 23495 break
Chris@82 23496 elif $ac_last_try; then
Chris@82 23497 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Chris@82 23498 else
Chris@82 23499 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Chris@82 23500 fi
Chris@82 23501 done
Chris@82 23502
Chris@82 23503 # For the awk script, D is an array of macro values keyed by name,
Chris@82 23504 # likewise P contains macro parameters if any. Preserve backslash
Chris@82 23505 # newline sequences.
Chris@82 23506
Chris@82 23507 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
Chris@82 23508 sed -n '
Chris@82 23509 s/.\{148\}/&'"$ac_delim"'/g
Chris@82 23510 t rset
Chris@82 23511 :rset
Chris@82 23512 s/^[ ]*#[ ]*define[ ][ ]*/ /
Chris@82 23513 t def
Chris@82 23514 d
Chris@82 23515 :def
Chris@82 23516 s/\\$//
Chris@82 23517 t bsnl
Chris@82 23518 s/["\\]/\\&/g
Chris@82 23519 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
Chris@82 23520 D["\1"]=" \3"/p
Chris@82 23521 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
Chris@82 23522 d
Chris@82 23523 :bsnl
Chris@82 23524 s/["\\]/\\&/g
Chris@82 23525 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
Chris@82 23526 D["\1"]=" \3\\\\\\n"\\/p
Chris@82 23527 t cont
Chris@82 23528 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
Chris@82 23529 t cont
Chris@82 23530 d
Chris@82 23531 :cont
Chris@82 23532 n
Chris@82 23533 s/.\{148\}/&'"$ac_delim"'/g
Chris@82 23534 t clear
Chris@82 23535 :clear
Chris@82 23536 s/\\$//
Chris@82 23537 t bsnlc
Chris@82 23538 s/["\\]/\\&/g; s/^/"/; s/$/"/p
Chris@82 23539 d
Chris@82 23540 :bsnlc
Chris@82 23541 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
Chris@82 23542 b cont
Chris@82 23543 ' <confdefs.h | sed '
Chris@82 23544 s/'"$ac_delim"'/"\\\
Chris@82 23545 "/g' >>$CONFIG_STATUS || ac_write_fail=1
Chris@82 23546
Chris@82 23547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@82 23548 for (key in D) D_is_set[key] = 1
Chris@82 23549 FS = ""
Chris@82 23550 }
Chris@82 23551 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
Chris@82 23552 line = \$ 0
Chris@82 23553 split(line, arg, " ")
Chris@82 23554 if (arg[1] == "#") {
Chris@82 23555 defundef = arg[2]
Chris@82 23556 mac1 = arg[3]
Chris@82 23557 } else {
Chris@82 23558 defundef = substr(arg[1], 2)
Chris@82 23559 mac1 = arg[2]
Chris@82 23560 }
Chris@82 23561 split(mac1, mac2, "(") #)
Chris@82 23562 macro = mac2[1]
Chris@82 23563 prefix = substr(line, 1, index(line, defundef) - 1)
Chris@82 23564 if (D_is_set[macro]) {
Chris@82 23565 # Preserve the white space surrounding the "#".
Chris@82 23566 print prefix "define", macro P[macro] D[macro]
Chris@82 23567 next
Chris@82 23568 } else {
Chris@82 23569 # Replace #undef with comments. This is necessary, for example,
Chris@82 23570 # in the case of _POSIX_SOURCE, which is predefined and required
Chris@82 23571 # on some systems where configure will not decide to define it.
Chris@82 23572 if (defundef == "undef") {
Chris@82 23573 print "/*", prefix defundef, macro, "*/"
Chris@82 23574 next
Chris@82 23575 }
Chris@82 23576 }
Chris@82 23577 }
Chris@82 23578 { print }
Chris@82 23579 _ACAWK
Chris@82 23580 _ACEOF
Chris@82 23581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@82 23582 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Chris@82 23583 fi # test -n "$CONFIG_HEADERS"
Chris@82 23584
Chris@82 23585
Chris@82 23586 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Chris@82 23587 shift
Chris@82 23588 for ac_tag
Chris@82 23589 do
Chris@82 23590 case $ac_tag in
Chris@82 23591 :[FHLC]) ac_mode=$ac_tag; continue;;
Chris@82 23592 esac
Chris@82 23593 case $ac_mode$ac_tag in
Chris@82 23594 :[FHL]*:*);;
Chris@82 23595 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Chris@82 23596 :[FH]-) ac_tag=-:-;;
Chris@82 23597 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
Chris@82 23598 esac
Chris@82 23599 ac_save_IFS=$IFS
Chris@82 23600 IFS=:
Chris@82 23601 set x $ac_tag
Chris@82 23602 IFS=$ac_save_IFS
Chris@82 23603 shift
Chris@82 23604 ac_file=$1
Chris@82 23605 shift
Chris@82 23606
Chris@82 23607 case $ac_mode in
Chris@82 23608 :L) ac_source=$1;;
Chris@82 23609 :[FH])
Chris@82 23610 ac_file_inputs=
Chris@82 23611 for ac_f
Chris@82 23612 do
Chris@82 23613 case $ac_f in
Chris@82 23614 -) ac_f="$ac_tmp/stdin";;
Chris@82 23615 *) # Look for the file first in the build tree, then in the source tree
Chris@82 23616 # (if the path is not absolute). The absolute path cannot be DOS-style,
Chris@82 23617 # because $ac_f cannot contain `:'.
Chris@82 23618 test -f "$ac_f" ||
Chris@82 23619 case $ac_f in
Chris@82 23620 [\\/$]*) false;;
Chris@82 23621 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
Chris@82 23622 esac ||
Chris@82 23623 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Chris@82 23624 esac
Chris@82 23625 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Chris@82 23626 as_fn_append ac_file_inputs " '$ac_f'"
Chris@82 23627 done
Chris@82 23628
Chris@82 23629 # Let's still pretend it is `configure' which instantiates (i.e., don't
Chris@82 23630 # use $as_me), people would be surprised to read:
Chris@82 23631 # /* config.h. Generated by config.status. */
Chris@82 23632 configure_input='Generated from '`
Chris@82 23633 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
Chris@82 23634 `' by configure.'
Chris@82 23635 if test x"$ac_file" != x-; then
Chris@82 23636 configure_input="$ac_file. $configure_input"
Chris@82 23637 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Chris@82 23638 $as_echo "$as_me: creating $ac_file" >&6;}
Chris@82 23639 fi
Chris@82 23640 # Neutralize special characters interpreted by sed in replacement strings.
Chris@82 23641 case $configure_input in #(
Chris@82 23642 *\&* | *\|* | *\\* )
Chris@82 23643 ac_sed_conf_input=`$as_echo "$configure_input" |
Chris@82 23644 sed 's/[\\\\&|]/\\\\&/g'`;; #(
Chris@82 23645 *) ac_sed_conf_input=$configure_input;;
Chris@82 23646 esac
Chris@82 23647
Chris@82 23648 case $ac_tag in
Chris@82 23649 *:-:* | *:-) cat >"$ac_tmp/stdin" \
Chris@82 23650 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Chris@82 23651 esac
Chris@82 23652 ;;
Chris@82 23653 esac
Chris@82 23654
Chris@82 23655 ac_dir=`$as_dirname -- "$ac_file" ||
Chris@82 23656 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@82 23657 X"$ac_file" : 'X\(//\)[^/]' \| \
Chris@82 23658 X"$ac_file" : 'X\(//\)$' \| \
Chris@82 23659 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Chris@82 23660 $as_echo X"$ac_file" |
Chris@82 23661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@82 23662 s//\1/
Chris@82 23663 q
Chris@82 23664 }
Chris@82 23665 /^X\(\/\/\)[^/].*/{
Chris@82 23666 s//\1/
Chris@82 23667 q
Chris@82 23668 }
Chris@82 23669 /^X\(\/\/\)$/{
Chris@82 23670 s//\1/
Chris@82 23671 q
Chris@82 23672 }
Chris@82 23673 /^X\(\/\).*/{
Chris@82 23674 s//\1/
Chris@82 23675 q
Chris@82 23676 }
Chris@82 23677 s/.*/./; q'`
Chris@82 23678 as_dir="$ac_dir"; as_fn_mkdir_p
Chris@82 23679 ac_builddir=.
Chris@82 23680
Chris@82 23681 case "$ac_dir" in
Chris@82 23682 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@82 23683 *)
Chris@82 23684 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Chris@82 23685 # A ".." for each directory in $ac_dir_suffix.
Chris@82 23686 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Chris@82 23687 case $ac_top_builddir_sub in
Chris@82 23688 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@82 23689 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
Chris@82 23690 esac ;;
Chris@82 23691 esac
Chris@82 23692 ac_abs_top_builddir=$ac_pwd
Chris@82 23693 ac_abs_builddir=$ac_pwd$ac_dir_suffix
Chris@82 23694 # for backward compatibility:
Chris@82 23695 ac_top_builddir=$ac_top_build_prefix
Chris@82 23696
Chris@82 23697 case $srcdir in
Chris@82 23698 .) # We are building in place.
Chris@82 23699 ac_srcdir=.
Chris@82 23700 ac_top_srcdir=$ac_top_builddir_sub
Chris@82 23701 ac_abs_top_srcdir=$ac_pwd ;;
Chris@82 23702 [\\/]* | ?:[\\/]* ) # Absolute name.
Chris@82 23703 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@82 23704 ac_top_srcdir=$srcdir
Chris@82 23705 ac_abs_top_srcdir=$srcdir ;;
Chris@82 23706 *) # Relative name.
Chris@82 23707 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
Chris@82 23708 ac_top_srcdir=$ac_top_build_prefix$srcdir
Chris@82 23709 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Chris@82 23710 esac
Chris@82 23711 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Chris@82 23712
Chris@82 23713
Chris@82 23714 case $ac_mode in
Chris@82 23715 :F)
Chris@82 23716 #
Chris@82 23717 # CONFIG_FILE
Chris@82 23718 #
Chris@82 23719
Chris@82 23720 case $INSTALL in
Chris@82 23721 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Chris@82 23722 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Chris@82 23723 esac
Chris@82 23724 ac_MKDIR_P=$MKDIR_P
Chris@82 23725 case $MKDIR_P in
Chris@82 23726 [\\/$]* | ?:[\\/]* ) ;;
Chris@82 23727 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
Chris@82 23728 esac
Chris@82 23729 _ACEOF
Chris@82 23730
Chris@82 23731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@82 23732 # If the template does not know about datarootdir, expand it.
Chris@82 23733 # FIXME: This hack should be removed a few years after 2.60.
Chris@82 23734 ac_datarootdir_hack=; ac_datarootdir_seen=
Chris@82 23735 ac_sed_dataroot='
Chris@82 23736 /datarootdir/ {
Chris@82 23737 p
Chris@82 23738 q
Chris@82 23739 }
Chris@82 23740 /@datadir@/p
Chris@82 23741 /@docdir@/p
Chris@82 23742 /@infodir@/p
Chris@82 23743 /@localedir@/p
Chris@82 23744 /@mandir@/p'
Chris@82 23745 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Chris@82 23746 *datarootdir*) ac_datarootdir_seen=yes;;
Chris@82 23747 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Chris@82 23748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
Chris@82 23749 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Chris@82 23750 _ACEOF
Chris@82 23751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@82 23752 ac_datarootdir_hack='
Chris@82 23753 s&@datadir@&$datadir&g
Chris@82 23754 s&@docdir@&$docdir&g
Chris@82 23755 s&@infodir@&$infodir&g
Chris@82 23756 s&@localedir@&$localedir&g
Chris@82 23757 s&@mandir@&$mandir&g
Chris@82 23758 s&\\\${datarootdir}&$datarootdir&g' ;;
Chris@82 23759 esac
Chris@82 23760 _ACEOF
Chris@82 23761
Chris@82 23762 # Neutralize VPATH when `$srcdir' = `.'.
Chris@82 23763 # Shell code in configure.ac might set extrasub.
Chris@82 23764 # FIXME: do we really want to maintain this feature?
Chris@82 23765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@82 23766 ac_sed_extra="$ac_vpsub
Chris@82 23767 $extrasub
Chris@82 23768 _ACEOF
Chris@82 23769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@82 23770 :t
Chris@82 23771 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Chris@82 23772 s|@configure_input@|$ac_sed_conf_input|;t t
Chris@82 23773 s&@top_builddir@&$ac_top_builddir_sub&;t t
Chris@82 23774 s&@top_build_prefix@&$ac_top_build_prefix&;t t
Chris@82 23775 s&@srcdir@&$ac_srcdir&;t t
Chris@82 23776 s&@abs_srcdir@&$ac_abs_srcdir&;t t
Chris@82 23777 s&@top_srcdir@&$ac_top_srcdir&;t t
Chris@82 23778 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
Chris@82 23779 s&@builddir@&$ac_builddir&;t t
Chris@82 23780 s&@abs_builddir@&$ac_abs_builddir&;t t
Chris@82 23781 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Chris@82 23782 s&@INSTALL@&$ac_INSTALL&;t t
Chris@82 23783 s&@MKDIR_P@&$ac_MKDIR_P&;t t
Chris@82 23784 $ac_datarootdir_hack
Chris@82 23785 "
Chris@82 23786 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
Chris@82 23787 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@82 23788
Chris@82 23789 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Chris@82 23790 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
Chris@82 23791 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
Chris@82 23792 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Chris@82 23793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Chris@82 23794 which seems to be undefined. Please make sure it is defined" >&5
Chris@82 23795 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Chris@82 23796 which seems to be undefined. Please make sure it is defined" >&2;}
Chris@82 23797
Chris@82 23798 rm -f "$ac_tmp/stdin"
Chris@82 23799 case $ac_file in
Chris@82 23800 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
Chris@82 23801 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Chris@82 23802 esac \
Chris@82 23803 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@82 23804 ;;
Chris@82 23805 :H)
Chris@82 23806 #
Chris@82 23807 # CONFIG_HEADER
Chris@82 23808 #
Chris@82 23809 if test x"$ac_file" != x-; then
Chris@82 23810 {
Chris@82 23811 $as_echo "/* $configure_input */" \
Chris@82 23812 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
Chris@82 23813 } >"$ac_tmp/config.h" \
Chris@82 23814 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@82 23815 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Chris@82 23816 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Chris@82 23817 $as_echo "$as_me: $ac_file is unchanged" >&6;}
Chris@82 23818 else
Chris@82 23819 rm -f "$ac_file"
Chris@82 23820 mv "$ac_tmp/config.h" "$ac_file" \
Chris@82 23821 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@82 23822 fi
Chris@82 23823 else
Chris@82 23824 $as_echo "/* $configure_input */" \
Chris@82 23825 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
Chris@82 23826 || as_fn_error $? "could not create -" "$LINENO" 5
Chris@82 23827 fi
Chris@82 23828 # Compute "$ac_file"'s index in $config_headers.
Chris@82 23829 _am_arg="$ac_file"
Chris@82 23830 _am_stamp_count=1
Chris@82 23831 for _am_header in $config_headers :; do
Chris@82 23832 case $_am_header in
Chris@82 23833 $_am_arg | $_am_arg:* )
Chris@82 23834 break ;;
Chris@82 23835 * )
Chris@82 23836 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
Chris@82 23837 esac
Chris@82 23838 done
Chris@82 23839 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
Chris@82 23840 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@82 23841 X"$_am_arg" : 'X\(//\)[^/]' \| \
Chris@82 23842 X"$_am_arg" : 'X\(//\)$' \| \
Chris@82 23843 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
Chris@82 23844 $as_echo X"$_am_arg" |
Chris@82 23845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@82 23846 s//\1/
Chris@82 23847 q
Chris@82 23848 }
Chris@82 23849 /^X\(\/\/\)[^/].*/{
Chris@82 23850 s//\1/
Chris@82 23851 q
Chris@82 23852 }
Chris@82 23853 /^X\(\/\/\)$/{
Chris@82 23854 s//\1/
Chris@82 23855 q
Chris@82 23856 }
Chris@82 23857 /^X\(\/\).*/{
Chris@82 23858 s//\1/
Chris@82 23859 q
Chris@82 23860 }
Chris@82 23861 s/.*/./; q'`/stamp-h$_am_stamp_count
Chris@82 23862 ;;
Chris@82 23863
Chris@82 23864 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Chris@82 23865 $as_echo "$as_me: executing $ac_file commands" >&6;}
Chris@82 23866 ;;
Chris@82 23867 esac
Chris@82 23868
Chris@82 23869
Chris@82 23870 case $ac_file$ac_mode in
Chris@82 23871 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
Chris@82 23872 # Older Autoconf quotes --file arguments for eval, but not when files
Chris@82 23873 # are listed without --file. Let's play safe and only enable the eval
Chris@82 23874 # if we detect the quoting.
Chris@82 23875 case $CONFIG_FILES in
Chris@82 23876 *\'*) eval set x "$CONFIG_FILES" ;;
Chris@82 23877 *) set x $CONFIG_FILES ;;
Chris@82 23878 esac
Chris@82 23879 shift
Chris@82 23880 for mf
Chris@82 23881 do
Chris@82 23882 # Strip MF so we end up with the name of the file.
Chris@82 23883 mf=`echo "$mf" | sed -e 's/:.*$//'`
Chris@82 23884 # Check whether this is an Automake generated Makefile or not.
Chris@82 23885 # We used to match only the files named 'Makefile.in', but
Chris@82 23886 # some people rename them; so instead we look at the file content.
Chris@82 23887 # Grep'ing the first line is not enough: some people post-process
Chris@82 23888 # each Makefile.in and add a new line on top of each file to say so.
Chris@82 23889 # Grep'ing the whole file is not good either: AIX grep has a line
Chris@82 23890 # limit of 2048, but all sed's we know have understand at least 4000.
Chris@82 23891 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
Chris@82 23892 dirpart=`$as_dirname -- "$mf" ||
Chris@82 23893 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@82 23894 X"$mf" : 'X\(//\)[^/]' \| \
Chris@82 23895 X"$mf" : 'X\(//\)$' \| \
Chris@82 23896 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Chris@82 23897 $as_echo X"$mf" |
Chris@82 23898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@82 23899 s//\1/
Chris@82 23900 q
Chris@82 23901 }
Chris@82 23902 /^X\(\/\/\)[^/].*/{
Chris@82 23903 s//\1/
Chris@82 23904 q
Chris@82 23905 }
Chris@82 23906 /^X\(\/\/\)$/{
Chris@82 23907 s//\1/
Chris@82 23908 q
Chris@82 23909 }
Chris@82 23910 /^X\(\/\).*/{
Chris@82 23911 s//\1/
Chris@82 23912 q
Chris@82 23913 }
Chris@82 23914 s/.*/./; q'`
Chris@82 23915 else
Chris@82 23916 continue
Chris@82 23917 fi
Chris@82 23918 # Extract the definition of DEPDIR, am__include, and am__quote
Chris@82 23919 # from the Makefile without running 'make'.
Chris@82 23920 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
Chris@82 23921 test -z "$DEPDIR" && continue
Chris@82 23922 am__include=`sed -n 's/^am__include = //p' < "$mf"`
Chris@82 23923 test -z "$am__include" && continue
Chris@82 23924 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Chris@82 23925 # Find all dependency output files, they are included files with
Chris@82 23926 # $(DEPDIR) in their names. We invoke sed twice because it is the
Chris@82 23927 # simplest approach to changing $(DEPDIR) to its actual value in the
Chris@82 23928 # expansion.
Chris@82 23929 for file in `sed -n "
Chris@82 23930 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Chris@82 23931 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
Chris@82 23932 # Make sure the directory exists.
Chris@82 23933 test -f "$dirpart/$file" && continue
Chris@82 23934 fdir=`$as_dirname -- "$file" ||
Chris@82 23935 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@82 23936 X"$file" : 'X\(//\)[^/]' \| \
Chris@82 23937 X"$file" : 'X\(//\)$' \| \
Chris@82 23938 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Chris@82 23939 $as_echo X"$file" |
Chris@82 23940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@82 23941 s//\1/
Chris@82 23942 q
Chris@82 23943 }
Chris@82 23944 /^X\(\/\/\)[^/].*/{
Chris@82 23945 s//\1/
Chris@82 23946 q
Chris@82 23947 }
Chris@82 23948 /^X\(\/\/\)$/{
Chris@82 23949 s//\1/
Chris@82 23950 q
Chris@82 23951 }
Chris@82 23952 /^X\(\/\).*/{
Chris@82 23953 s//\1/
Chris@82 23954 q
Chris@82 23955 }
Chris@82 23956 s/.*/./; q'`
Chris@82 23957 as_dir=$dirpart/$fdir; as_fn_mkdir_p
Chris@82 23958 # echo "creating $dirpart/$file"
Chris@82 23959 echo '# dummy' > "$dirpart/$file"
Chris@82 23960 done
Chris@82 23961 done
Chris@82 23962 }
Chris@82 23963 ;;
Chris@82 23964 "libtool":C)
Chris@82 23965
Chris@82 23966 # See if we are running on zsh, and set the options that allow our
Chris@82 23967 # commands through without removal of \ escapes.
Chris@82 23968 if test -n "${ZSH_VERSION+set}"; then
Chris@82 23969 setopt NO_GLOB_SUBST
Chris@82 23970 fi
Chris@82 23971
Chris@82 23972 cfgfile=${ofile}T
Chris@82 23973 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
Chris@82 23974 $RM "$cfgfile"
Chris@82 23975
Chris@82 23976 cat <<_LT_EOF >> "$cfgfile"
Chris@82 23977 #! $SHELL
Chris@82 23978 # Generated automatically by $as_me ($PACKAGE) $VERSION
Chris@82 23979 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
Chris@82 23980
Chris@82 23981 # Provide generalized library-building support services.
Chris@82 23982 # Written by Gordon Matzigkeit, 1996
Chris@82 23983
Chris@82 23984 # Copyright (C) 2014 Free Software Foundation, Inc.
Chris@82 23985 # This is free software; see the source for copying conditions. There is NO
Chris@82 23986 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Chris@82 23987
Chris@82 23988 # GNU Libtool is free software; you can redistribute it and/or modify
Chris@82 23989 # it under the terms of the GNU General Public License as published by
Chris@82 23990 # the Free Software Foundation; either version 2 of of the License, or
Chris@82 23991 # (at your option) any later version.
Chris@82 23992 #
Chris@82 23993 # As a special exception to the GNU General Public License, if you
Chris@82 23994 # distribute this file as part of a program or library that is built
Chris@82 23995 # using GNU Libtool, you may include this file under the same
Chris@82 23996 # distribution terms that you use for the rest of that program.
Chris@82 23997 #
Chris@82 23998 # GNU Libtool is distributed in the hope that it will be useful, but
Chris@82 23999 # WITHOUT ANY WARRANTY; without even the implied warranty of
Chris@82 24000 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Chris@82 24001 # GNU General Public License for more details.
Chris@82 24002 #
Chris@82 24003 # You should have received a copy of the GNU General Public License
Chris@82 24004 # along with this program. If not, see <http://www.gnu.org/licenses/>.
Chris@82 24005
Chris@82 24006
Chris@82 24007 # The names of the tagged configurations supported by this script.
Chris@82 24008 available_tags='F77 '
Chris@82 24009
Chris@82 24010 # Configured defaults for sys_lib_dlsearch_path munging.
Chris@82 24011 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
Chris@82 24012
Chris@82 24013 # ### BEGIN LIBTOOL CONFIG
Chris@82 24014
Chris@82 24015 # Whether or not to build shared libraries.
Chris@82 24016 build_libtool_libs=$enable_shared
Chris@82 24017
Chris@82 24018 # Assembler program.
Chris@82 24019 AS=$lt_AS
Chris@82 24020
Chris@82 24021 # DLL creation program.
Chris@82 24022 DLLTOOL=$lt_DLLTOOL
Chris@82 24023
Chris@82 24024 # Object dumper program.
Chris@82 24025 OBJDUMP=$lt_OBJDUMP
Chris@82 24026
Chris@82 24027 # Which release of libtool.m4 was used?
Chris@82 24028 macro_version=$macro_version
Chris@82 24029 macro_revision=$macro_revision
Chris@82 24030
Chris@82 24031 # Whether or not to build static libraries.
Chris@82 24032 build_old_libs=$enable_static
Chris@82 24033
Chris@82 24034 # What type of objects to build.
Chris@82 24035 pic_mode=$pic_mode
Chris@82 24036
Chris@82 24037 # Whether or not to optimize for fast installation.
Chris@82 24038 fast_install=$enable_fast_install
Chris@82 24039
Chris@82 24040 # Shared archive member basename,for filename based shared library versioning on AIX.
Chris@82 24041 shared_archive_member_spec=$shared_archive_member_spec
Chris@82 24042
Chris@82 24043 # Shell to use when invoking shell scripts.
Chris@82 24044 SHELL=$lt_SHELL
Chris@82 24045
Chris@82 24046 # An echo program that protects backslashes.
Chris@82 24047 ECHO=$lt_ECHO
Chris@82 24048
Chris@82 24049 # The PATH separator for the build system.
Chris@82 24050 PATH_SEPARATOR=$lt_PATH_SEPARATOR
Chris@82 24051
Chris@82 24052 # The host system.
Chris@82 24053 host_alias=$host_alias
Chris@82 24054 host=$host
Chris@82 24055 host_os=$host_os
Chris@82 24056
Chris@82 24057 # The build system.
Chris@82 24058 build_alias=$build_alias
Chris@82 24059 build=$build
Chris@82 24060 build_os=$build_os
Chris@82 24061
Chris@82 24062 # A sed program that does not truncate output.
Chris@82 24063 SED=$lt_SED
Chris@82 24064
Chris@82 24065 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
Chris@82 24066 Xsed="\$SED -e 1s/^X//"
Chris@82 24067
Chris@82 24068 # A grep program that handles long lines.
Chris@82 24069 GREP=$lt_GREP
Chris@82 24070
Chris@82 24071 # An ERE matcher.
Chris@82 24072 EGREP=$lt_EGREP
Chris@82 24073
Chris@82 24074 # A literal string matcher.
Chris@82 24075 FGREP=$lt_FGREP
Chris@82 24076
Chris@82 24077 # A BSD- or MS-compatible name lister.
Chris@82 24078 NM=$lt_NM
Chris@82 24079
Chris@82 24080 # Whether we need soft or hard links.
Chris@82 24081 LN_S=$lt_LN_S
Chris@82 24082
Chris@82 24083 # What is the maximum length of a command?
Chris@82 24084 max_cmd_len=$max_cmd_len
Chris@82 24085
Chris@82 24086 # Object file suffix (normally "o").
Chris@82 24087 objext=$ac_objext
Chris@82 24088
Chris@82 24089 # Executable file suffix (normally "").
Chris@82 24090 exeext=$exeext
Chris@82 24091
Chris@82 24092 # whether the shell understands "unset".
Chris@82 24093 lt_unset=$lt_unset
Chris@82 24094
Chris@82 24095 # turn spaces into newlines.
Chris@82 24096 SP2NL=$lt_lt_SP2NL
Chris@82 24097
Chris@82 24098 # turn newlines into spaces.
Chris@82 24099 NL2SP=$lt_lt_NL2SP
Chris@82 24100
Chris@82 24101 # convert \$build file names to \$host format.
Chris@82 24102 to_host_file_cmd=$lt_cv_to_host_file_cmd
Chris@82 24103
Chris@82 24104 # convert \$build files to toolchain format.
Chris@82 24105 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Chris@82 24106
Chris@82 24107 # Method to check whether dependent libraries are shared objects.
Chris@82 24108 deplibs_check_method=$lt_deplibs_check_method
Chris@82 24109
Chris@82 24110 # Command to use when deplibs_check_method = "file_magic".
Chris@82 24111 file_magic_cmd=$lt_file_magic_cmd
Chris@82 24112
Chris@82 24113 # How to find potential files when deplibs_check_method = "file_magic".
Chris@82 24114 file_magic_glob=$lt_file_magic_glob
Chris@82 24115
Chris@82 24116 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
Chris@82 24117 want_nocaseglob=$lt_want_nocaseglob
Chris@82 24118
Chris@82 24119 # Command to associate shared and link libraries.
Chris@82 24120 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
Chris@82 24121
Chris@82 24122 # The archiver.
Chris@82 24123 AR=$lt_AR
Chris@82 24124
Chris@82 24125 # Flags to create an archive.
Chris@82 24126 AR_FLAGS=$lt_AR_FLAGS
Chris@82 24127
Chris@82 24128 # How to feed a file listing to the archiver.
Chris@82 24129 archiver_list_spec=$lt_archiver_list_spec
Chris@82 24130
Chris@82 24131 # A symbol stripping program.
Chris@82 24132 STRIP=$lt_STRIP
Chris@82 24133
Chris@82 24134 # Commands used to install an old-style archive.
Chris@82 24135 RANLIB=$lt_RANLIB
Chris@82 24136 old_postinstall_cmds=$lt_old_postinstall_cmds
Chris@82 24137 old_postuninstall_cmds=$lt_old_postuninstall_cmds
Chris@82 24138
Chris@82 24139 # Whether to use a lock for old archive extraction.
Chris@82 24140 lock_old_archive_extraction=$lock_old_archive_extraction
Chris@82 24141
Chris@82 24142 # A C compiler.
Chris@82 24143 LTCC=$lt_CC
Chris@82 24144
Chris@82 24145 # LTCC compiler flags.
Chris@82 24146 LTCFLAGS=$lt_CFLAGS
Chris@82 24147
Chris@82 24148 # Take the output of nm and produce a listing of raw symbols and C names.
Chris@82 24149 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
Chris@82 24150
Chris@82 24151 # Transform the output of nm in a proper C declaration.
Chris@82 24152 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
Chris@82 24153
Chris@82 24154 # Transform the output of nm into a list of symbols to manually relocate.
Chris@82 24155 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
Chris@82 24156
Chris@82 24157 # Transform the output of nm in a C name address pair.
Chris@82 24158 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
Chris@82 24159
Chris@82 24160 # Transform the output of nm in a C name address pair when lib prefix is needed.
Chris@82 24161 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
Chris@82 24162
Chris@82 24163 # The name lister interface.
Chris@82 24164 nm_interface=$lt_lt_cv_nm_interface
Chris@82 24165
Chris@82 24166 # Specify filename containing input files for \$NM.
Chris@82 24167 nm_file_list_spec=$lt_nm_file_list_spec
Chris@82 24168
Chris@82 24169 # The root where to search for dependent libraries,and where our libraries should be installed.
Chris@82 24170 lt_sysroot=$lt_sysroot
Chris@82 24171
Chris@82 24172 # Command to truncate a binary pipe.
Chris@82 24173 lt_truncate_bin=$lt_lt_cv_truncate_bin
Chris@82 24174
Chris@82 24175 # The name of the directory that contains temporary libtool files.
Chris@82 24176 objdir=$objdir
Chris@82 24177
Chris@82 24178 # Used to examine libraries when file_magic_cmd begins with "file".
Chris@82 24179 MAGIC_CMD=$MAGIC_CMD
Chris@82 24180
Chris@82 24181 # Must we lock files when doing compilation?
Chris@82 24182 need_locks=$lt_need_locks
Chris@82 24183
Chris@82 24184 # Manifest tool.
Chris@82 24185 MANIFEST_TOOL=$lt_MANIFEST_TOOL
Chris@82 24186
Chris@82 24187 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
Chris@82 24188 DSYMUTIL=$lt_DSYMUTIL
Chris@82 24189
Chris@82 24190 # Tool to change global to local symbols on Mac OS X.
Chris@82 24191 NMEDIT=$lt_NMEDIT
Chris@82 24192
Chris@82 24193 # Tool to manipulate fat objects and archives on Mac OS X.
Chris@82 24194 LIPO=$lt_LIPO
Chris@82 24195
Chris@82 24196 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
Chris@82 24197 OTOOL=$lt_OTOOL
Chris@82 24198
Chris@82 24199 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
Chris@82 24200 OTOOL64=$lt_OTOOL64
Chris@82 24201
Chris@82 24202 # Old archive suffix (normally "a").
Chris@82 24203 libext=$libext
Chris@82 24204
Chris@82 24205 # Shared library suffix (normally ".so").
Chris@82 24206 shrext_cmds=$lt_shrext_cmds
Chris@82 24207
Chris@82 24208 # The commands to extract the exported symbol list from a shared archive.
Chris@82 24209 extract_expsyms_cmds=$lt_extract_expsyms_cmds
Chris@82 24210
Chris@82 24211 # Variables whose values should be saved in libtool wrapper scripts and
Chris@82 24212 # restored at link time.
Chris@82 24213 variables_saved_for_relink=$lt_variables_saved_for_relink
Chris@82 24214
Chris@82 24215 # Do we need the "lib" prefix for modules?
Chris@82 24216 need_lib_prefix=$need_lib_prefix
Chris@82 24217
Chris@82 24218 # Do we need a version for libraries?
Chris@82 24219 need_version=$need_version
Chris@82 24220
Chris@82 24221 # Library versioning type.
Chris@82 24222 version_type=$version_type
Chris@82 24223
Chris@82 24224 # Shared library runtime path variable.
Chris@82 24225 runpath_var=$runpath_var
Chris@82 24226
Chris@82 24227 # Shared library path variable.
Chris@82 24228 shlibpath_var=$shlibpath_var
Chris@82 24229
Chris@82 24230 # Is shlibpath searched before the hard-coded library search path?
Chris@82 24231 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
Chris@82 24232
Chris@82 24233 # Format of library name prefix.
Chris@82 24234 libname_spec=$lt_libname_spec
Chris@82 24235
Chris@82 24236 # List of archive names. First name is the real one, the rest are links.
Chris@82 24237 # The last name is the one that the linker finds with -lNAME
Chris@82 24238 library_names_spec=$lt_library_names_spec
Chris@82 24239
Chris@82 24240 # The coded name of the library, if different from the real name.
Chris@82 24241 soname_spec=$lt_soname_spec
Chris@82 24242
Chris@82 24243 # Permission mode override for installation of shared libraries.
Chris@82 24244 install_override_mode=$lt_install_override_mode
Chris@82 24245
Chris@82 24246 # Command to use after installation of a shared archive.
Chris@82 24247 postinstall_cmds=$lt_postinstall_cmds
Chris@82 24248
Chris@82 24249 # Command to use after uninstallation of a shared archive.
Chris@82 24250 postuninstall_cmds=$lt_postuninstall_cmds
Chris@82 24251
Chris@82 24252 # Commands used to finish a libtool library installation in a directory.
Chris@82 24253 finish_cmds=$lt_finish_cmds
Chris@82 24254
Chris@82 24255 # As "finish_cmds", except a single script fragment to be evaled but
Chris@82 24256 # not shown.
Chris@82 24257 finish_eval=$lt_finish_eval
Chris@82 24258
Chris@82 24259 # Whether we should hardcode library paths into libraries.
Chris@82 24260 hardcode_into_libs=$hardcode_into_libs
Chris@82 24261
Chris@82 24262 # Compile-time system search path for libraries.
Chris@82 24263 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
Chris@82 24264
Chris@82 24265 # Detected run-time system search path for libraries.
Chris@82 24266 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
Chris@82 24267
Chris@82 24268 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
Chris@82 24269 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
Chris@82 24270
Chris@82 24271 # Whether dlopen is supported.
Chris@82 24272 dlopen_support=$enable_dlopen
Chris@82 24273
Chris@82 24274 # Whether dlopen of programs is supported.
Chris@82 24275 dlopen_self=$enable_dlopen_self
Chris@82 24276
Chris@82 24277 # Whether dlopen of statically linked programs is supported.
Chris@82 24278 dlopen_self_static=$enable_dlopen_self_static
Chris@82 24279
Chris@82 24280 # Commands to strip libraries.
Chris@82 24281 old_striplib=$lt_old_striplib
Chris@82 24282 striplib=$lt_striplib
Chris@82 24283
Chris@82 24284
Chris@82 24285 # The linker used to build libraries.
Chris@82 24286 LD=$lt_LD
Chris@82 24287
Chris@82 24288 # How to create reloadable object files.
Chris@82 24289 reload_flag=$lt_reload_flag
Chris@82 24290 reload_cmds=$lt_reload_cmds
Chris@82 24291
Chris@82 24292 # Commands used to build an old-style archive.
Chris@82 24293 old_archive_cmds=$lt_old_archive_cmds
Chris@82 24294
Chris@82 24295 # A language specific compiler.
Chris@82 24296 CC=$lt_compiler
Chris@82 24297
Chris@82 24298 # Is the compiler the GNU compiler?
Chris@82 24299 with_gcc=$GCC
Chris@82 24300
Chris@82 24301 # Compiler flag to turn off builtin functions.
Chris@82 24302 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
Chris@82 24303
Chris@82 24304 # Additional compiler flags for building library objects.
Chris@82 24305 pic_flag=$lt_lt_prog_compiler_pic
Chris@82 24306
Chris@82 24307 # How to pass a linker flag through the compiler.
Chris@82 24308 wl=$lt_lt_prog_compiler_wl
Chris@82 24309
Chris@82 24310 # Compiler flag to prevent dynamic linking.
Chris@82 24311 link_static_flag=$lt_lt_prog_compiler_static
Chris@82 24312
Chris@82 24313 # Does compiler simultaneously support -c and -o options?
Chris@82 24314 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
Chris@82 24315
Chris@82 24316 # Whether or not to add -lc for building shared libraries.
Chris@82 24317 build_libtool_need_lc=$archive_cmds_need_lc
Chris@82 24318
Chris@82 24319 # Whether or not to disallow shared libs when runtime libs are static.
Chris@82 24320 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
Chris@82 24321
Chris@82 24322 # Compiler flag to allow reflexive dlopens.
Chris@82 24323 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
Chris@82 24324
Chris@82 24325 # Compiler flag to generate shared objects directly from archives.
Chris@82 24326 whole_archive_flag_spec=$lt_whole_archive_flag_spec
Chris@82 24327
Chris@82 24328 # Whether the compiler copes with passing no objects directly.
Chris@82 24329 compiler_needs_object=$lt_compiler_needs_object
Chris@82 24330
Chris@82 24331 # Create an old-style archive from a shared archive.
Chris@82 24332 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
Chris@82 24333
Chris@82 24334 # Create a temporary old-style archive to link instead of a shared archive.
Chris@82 24335 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
Chris@82 24336
Chris@82 24337 # Commands used to build a shared archive.
Chris@82 24338 archive_cmds=$lt_archive_cmds
Chris@82 24339 archive_expsym_cmds=$lt_archive_expsym_cmds
Chris@82 24340
Chris@82 24341 # Commands used to build a loadable module if different from building
Chris@82 24342 # a shared archive.
Chris@82 24343 module_cmds=$lt_module_cmds
Chris@82 24344 module_expsym_cmds=$lt_module_expsym_cmds
Chris@82 24345
Chris@82 24346 # Whether we are building with GNU ld or not.
Chris@82 24347 with_gnu_ld=$lt_with_gnu_ld
Chris@82 24348
Chris@82 24349 # Flag that allows shared libraries with undefined symbols to be built.
Chris@82 24350 allow_undefined_flag=$lt_allow_undefined_flag
Chris@82 24351
Chris@82 24352 # Flag that enforces no undefined symbols.
Chris@82 24353 no_undefined_flag=$lt_no_undefined_flag
Chris@82 24354
Chris@82 24355 # Flag to hardcode \$libdir into a binary during linking.
Chris@82 24356 # This must work even if \$libdir does not exist
Chris@82 24357 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
Chris@82 24358
Chris@82 24359 # Whether we need a single "-rpath" flag with a separated argument.
Chris@82 24360 hardcode_libdir_separator=$lt_hardcode_libdir_separator
Chris@82 24361
Chris@82 24362 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Chris@82 24363 # DIR into the resulting binary.
Chris@82 24364 hardcode_direct=$hardcode_direct
Chris@82 24365
Chris@82 24366 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Chris@82 24367 # DIR into the resulting binary and the resulting library dependency is
Chris@82 24368 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
Chris@82 24369 # library is relocated.
Chris@82 24370 hardcode_direct_absolute=$hardcode_direct_absolute
Chris@82 24371
Chris@82 24372 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
Chris@82 24373 # into the resulting binary.
Chris@82 24374 hardcode_minus_L=$hardcode_minus_L
Chris@82 24375
Chris@82 24376 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
Chris@82 24377 # into the resulting binary.
Chris@82 24378 hardcode_shlibpath_var=$hardcode_shlibpath_var
Chris@82 24379
Chris@82 24380 # Set to "yes" if building a shared library automatically hardcodes DIR
Chris@82 24381 # into the library and all subsequent libraries and executables linked
Chris@82 24382 # against it.
Chris@82 24383 hardcode_automatic=$hardcode_automatic
Chris@82 24384
Chris@82 24385 # Set to yes if linker adds runtime paths of dependent libraries
Chris@82 24386 # to runtime path list.
Chris@82 24387 inherit_rpath=$inherit_rpath
Chris@82 24388
Chris@82 24389 # Whether libtool must link a program against all its dependency libraries.
Chris@82 24390 link_all_deplibs=$link_all_deplibs
Chris@82 24391
Chris@82 24392 # Set to "yes" if exported symbols are required.
Chris@82 24393 always_export_symbols=$always_export_symbols
Chris@82 24394
Chris@82 24395 # The commands to list exported symbols.
Chris@82 24396 export_symbols_cmds=$lt_export_symbols_cmds
Chris@82 24397
Chris@82 24398 # Symbols that should not be listed in the preloaded symbols.
Chris@82 24399 exclude_expsyms=$lt_exclude_expsyms
Chris@82 24400
Chris@82 24401 # Symbols that must always be exported.
Chris@82 24402 include_expsyms=$lt_include_expsyms
Chris@82 24403
Chris@82 24404 # Commands necessary for linking programs (against libraries) with templates.
Chris@82 24405 prelink_cmds=$lt_prelink_cmds
Chris@82 24406
Chris@82 24407 # Commands necessary for finishing linking programs.
Chris@82 24408 postlink_cmds=$lt_postlink_cmds
Chris@82 24409
Chris@82 24410 # Specify filename containing input files.
Chris@82 24411 file_list_spec=$lt_file_list_spec
Chris@82 24412
Chris@82 24413 # How to hardcode a shared library path into an executable.
Chris@82 24414 hardcode_action=$hardcode_action
Chris@82 24415
Chris@82 24416 # ### END LIBTOOL CONFIG
Chris@82 24417
Chris@82 24418 _LT_EOF
Chris@82 24419
Chris@82 24420 cat <<'_LT_EOF' >> "$cfgfile"
Chris@82 24421
Chris@82 24422 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
Chris@82 24423
Chris@82 24424 # func_munge_path_list VARIABLE PATH
Chris@82 24425 # -----------------------------------
Chris@82 24426 # VARIABLE is name of variable containing _space_ separated list of
Chris@82 24427 # directories to be munged by the contents of PATH, which is string
Chris@82 24428 # having a format:
Chris@82 24429 # "DIR[:DIR]:"
Chris@82 24430 # string "DIR[ DIR]" will be prepended to VARIABLE
Chris@82 24431 # ":DIR[:DIR]"
Chris@82 24432 # string "DIR[ DIR]" will be appended to VARIABLE
Chris@82 24433 # "DIRP[:DIRP]::[DIRA:]DIRA"
Chris@82 24434 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
Chris@82 24435 # "DIRA[ DIRA]" will be appended to VARIABLE
Chris@82 24436 # "DIR[:DIR]"
Chris@82 24437 # VARIABLE will be replaced by "DIR[ DIR]"
Chris@82 24438 func_munge_path_list ()
Chris@82 24439 {
Chris@82 24440 case x$2 in
Chris@82 24441 x)
Chris@82 24442 ;;
Chris@82 24443 *:)
Chris@82 24444 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
Chris@82 24445 ;;
Chris@82 24446 x:*)
Chris@82 24447 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
Chris@82 24448 ;;
Chris@82 24449 *::*)
Chris@82 24450 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
Chris@82 24451 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
Chris@82 24452 ;;
Chris@82 24453 *)
Chris@82 24454 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
Chris@82 24455 ;;
Chris@82 24456 esac
Chris@82 24457 }
Chris@82 24458
Chris@82 24459
Chris@82 24460 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
Chris@82 24461 func_cc_basename ()
Chris@82 24462 {
Chris@82 24463 for cc_temp in $*""; do
Chris@82 24464 case $cc_temp in
Chris@82 24465 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
Chris@82 24466 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
Chris@82 24467 \-*) ;;
Chris@82 24468 *) break;;
Chris@82 24469 esac
Chris@82 24470 done
Chris@82 24471 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Chris@82 24472 }
Chris@82 24473
Chris@82 24474
Chris@82 24475 # ### END FUNCTIONS SHARED WITH CONFIGURE
Chris@82 24476
Chris@82 24477 _LT_EOF
Chris@82 24478
Chris@82 24479 case $host_os in
Chris@82 24480 aix3*)
Chris@82 24481 cat <<\_LT_EOF >> "$cfgfile"
Chris@82 24482 # AIX sometimes has problems with the GCC collect2 program. For some
Chris@82 24483 # reason, if we set the COLLECT_NAMES environment variable, the problems
Chris@82 24484 # vanish in a puff of smoke.
Chris@82 24485 if test set != "${COLLECT_NAMES+set}"; then
Chris@82 24486 COLLECT_NAMES=
Chris@82 24487 export COLLECT_NAMES
Chris@82 24488 fi
Chris@82 24489 _LT_EOF
Chris@82 24490 ;;
Chris@82 24491 esac
Chris@82 24492
Chris@82 24493
Chris@82 24494 ltmain=$ac_aux_dir/ltmain.sh
Chris@82 24495
Chris@82 24496
Chris@82 24497 # We use sed instead of cat because bash on DJGPP gets confused if
Chris@82 24498 # if finds mixed CR/LF and LF-only lines. Since sed operates in
Chris@82 24499 # text mode, it properly converts lines to CR/LF. This bash problem
Chris@82 24500 # is reportedly fixed, but why not run on old versions too?
Chris@82 24501 sed '$q' "$ltmain" >> "$cfgfile" \
Chris@82 24502 || (rm -f "$cfgfile"; exit 1)
Chris@82 24503
Chris@82 24504 mv -f "$cfgfile" "$ofile" ||
Chris@82 24505 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
Chris@82 24506 chmod +x "$ofile"
Chris@82 24507
Chris@82 24508
Chris@82 24509 cat <<_LT_EOF >> "$ofile"
Chris@82 24510
Chris@82 24511 # ### BEGIN LIBTOOL TAG CONFIG: F77
Chris@82 24512
Chris@82 24513 # The linker used to build libraries.
Chris@82 24514 LD=$lt_LD_F77
Chris@82 24515
Chris@82 24516 # How to create reloadable object files.
Chris@82 24517 reload_flag=$lt_reload_flag_F77
Chris@82 24518 reload_cmds=$lt_reload_cmds_F77
Chris@82 24519
Chris@82 24520 # Commands used to build an old-style archive.
Chris@82 24521 old_archive_cmds=$lt_old_archive_cmds_F77
Chris@82 24522
Chris@82 24523 # A language specific compiler.
Chris@82 24524 CC=$lt_compiler_F77
Chris@82 24525
Chris@82 24526 # Is the compiler the GNU compiler?
Chris@82 24527 with_gcc=$GCC_F77
Chris@82 24528
Chris@82 24529 # Compiler flag to turn off builtin functions.
Chris@82 24530 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
Chris@82 24531
Chris@82 24532 # Additional compiler flags for building library objects.
Chris@82 24533 pic_flag=$lt_lt_prog_compiler_pic_F77
Chris@82 24534
Chris@82 24535 # How to pass a linker flag through the compiler.
Chris@82 24536 wl=$lt_lt_prog_compiler_wl_F77
Chris@82 24537
Chris@82 24538 # Compiler flag to prevent dynamic linking.
Chris@82 24539 link_static_flag=$lt_lt_prog_compiler_static_F77
Chris@82 24540
Chris@82 24541 # Does compiler simultaneously support -c and -o options?
Chris@82 24542 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
Chris@82 24543
Chris@82 24544 # Whether or not to add -lc for building shared libraries.
Chris@82 24545 build_libtool_need_lc=$archive_cmds_need_lc_F77
Chris@82 24546
Chris@82 24547 # Whether or not to disallow shared libs when runtime libs are static.
Chris@82 24548 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
Chris@82 24549
Chris@82 24550 # Compiler flag to allow reflexive dlopens.
Chris@82 24551 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
Chris@82 24552
Chris@82 24553 # Compiler flag to generate shared objects directly from archives.
Chris@82 24554 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
Chris@82 24555
Chris@82 24556 # Whether the compiler copes with passing no objects directly.
Chris@82 24557 compiler_needs_object=$lt_compiler_needs_object_F77
Chris@82 24558
Chris@82 24559 # Create an old-style archive from a shared archive.
Chris@82 24560 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
Chris@82 24561
Chris@82 24562 # Create a temporary old-style archive to link instead of a shared archive.
Chris@82 24563 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
Chris@82 24564
Chris@82 24565 # Commands used to build a shared archive.
Chris@82 24566 archive_cmds=$lt_archive_cmds_F77
Chris@82 24567 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
Chris@82 24568
Chris@82 24569 # Commands used to build a loadable module if different from building
Chris@82 24570 # a shared archive.
Chris@82 24571 module_cmds=$lt_module_cmds_F77
Chris@82 24572 module_expsym_cmds=$lt_module_expsym_cmds_F77
Chris@82 24573
Chris@82 24574 # Whether we are building with GNU ld or not.
Chris@82 24575 with_gnu_ld=$lt_with_gnu_ld_F77
Chris@82 24576
Chris@82 24577 # Flag that allows shared libraries with undefined symbols to be built.
Chris@82 24578 allow_undefined_flag=$lt_allow_undefined_flag_F77
Chris@82 24579
Chris@82 24580 # Flag that enforces no undefined symbols.
Chris@82 24581 no_undefined_flag=$lt_no_undefined_flag_F77
Chris@82 24582
Chris@82 24583 # Flag to hardcode \$libdir into a binary during linking.
Chris@82 24584 # This must work even if \$libdir does not exist
Chris@82 24585 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
Chris@82 24586
Chris@82 24587 # Whether we need a single "-rpath" flag with a separated argument.
Chris@82 24588 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
Chris@82 24589
Chris@82 24590 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Chris@82 24591 # DIR into the resulting binary.
Chris@82 24592 hardcode_direct=$hardcode_direct_F77
Chris@82 24593
Chris@82 24594 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Chris@82 24595 # DIR into the resulting binary and the resulting library dependency is
Chris@82 24596 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
Chris@82 24597 # library is relocated.
Chris@82 24598 hardcode_direct_absolute=$hardcode_direct_absolute_F77
Chris@82 24599
Chris@82 24600 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
Chris@82 24601 # into the resulting binary.
Chris@82 24602 hardcode_minus_L=$hardcode_minus_L_F77
Chris@82 24603
Chris@82 24604 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
Chris@82 24605 # into the resulting binary.
Chris@82 24606 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
Chris@82 24607
Chris@82 24608 # Set to "yes" if building a shared library automatically hardcodes DIR
Chris@82 24609 # into the library and all subsequent libraries and executables linked
Chris@82 24610 # against it.
Chris@82 24611 hardcode_automatic=$hardcode_automatic_F77
Chris@82 24612
Chris@82 24613 # Set to yes if linker adds runtime paths of dependent libraries
Chris@82 24614 # to runtime path list.
Chris@82 24615 inherit_rpath=$inherit_rpath_F77
Chris@82 24616
Chris@82 24617 # Whether libtool must link a program against all its dependency libraries.
Chris@82 24618 link_all_deplibs=$link_all_deplibs_F77
Chris@82 24619
Chris@82 24620 # Set to "yes" if exported symbols are required.
Chris@82 24621 always_export_symbols=$always_export_symbols_F77
Chris@82 24622
Chris@82 24623 # The commands to list exported symbols.
Chris@82 24624 export_symbols_cmds=$lt_export_symbols_cmds_F77
Chris@82 24625
Chris@82 24626 # Symbols that should not be listed in the preloaded symbols.
Chris@82 24627 exclude_expsyms=$lt_exclude_expsyms_F77
Chris@82 24628
Chris@82 24629 # Symbols that must always be exported.
Chris@82 24630 include_expsyms=$lt_include_expsyms_F77
Chris@82 24631
Chris@82 24632 # Commands necessary for linking programs (against libraries) with templates.
Chris@82 24633 prelink_cmds=$lt_prelink_cmds_F77
Chris@82 24634
Chris@82 24635 # Commands necessary for finishing linking programs.
Chris@82 24636 postlink_cmds=$lt_postlink_cmds_F77
Chris@82 24637
Chris@82 24638 # Specify filename containing input files.
Chris@82 24639 file_list_spec=$lt_file_list_spec_F77
Chris@82 24640
Chris@82 24641 # How to hardcode a shared library path into an executable.
Chris@82 24642 hardcode_action=$hardcode_action_F77
Chris@82 24643
Chris@82 24644 # ### END LIBTOOL TAG CONFIG: F77
Chris@82 24645 _LT_EOF
Chris@82 24646
Chris@82 24647 ;;
Chris@82 24648
Chris@82 24649 esac
Chris@82 24650 done # for ac_tag
Chris@82 24651
Chris@82 24652
Chris@82 24653 as_fn_exit 0
Chris@82 24654 _ACEOF
Chris@82 24655 ac_clean_files=$ac_clean_files_save
Chris@82 24656
Chris@82 24657 test $ac_write_fail = 0 ||
Chris@82 24658 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Chris@82 24659
Chris@82 24660
Chris@82 24661 # configure is writing to config.log, and then calls config.status.
Chris@82 24662 # config.status does its own redirection, appending to config.log.
Chris@82 24663 # Unfortunately, on DOS this fails, as config.log is still kept open
Chris@82 24664 # by configure, so config.status won't be able to write to it; its
Chris@82 24665 # output is simply discarded. So we exec the FD to /dev/null,
Chris@82 24666 # effectively closing config.log, so it can be properly (re)opened and
Chris@82 24667 # appended to by config.status. When coming back to configure, we
Chris@82 24668 # need to make the FD available again.
Chris@82 24669 if test "$no_create" != yes; then
Chris@82 24670 ac_cs_success=:
Chris@82 24671 ac_config_status_args=
Chris@82 24672 test "$silent" = yes &&
Chris@82 24673 ac_config_status_args="$ac_config_status_args --quiet"
Chris@82 24674 exec 5>/dev/null
Chris@82 24675 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Chris@82 24676 exec 5>>config.log
Chris@82 24677 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
Chris@82 24678 # would make configure fail if this is the last instruction.
Chris@82 24679 $ac_cs_success || as_fn_exit 1
Chris@82 24680 fi
Chris@82 24681 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Chris@82 24682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Chris@82 24683 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Chris@82 24684 fi
Chris@82 24685